formatting

This commit is contained in:
Rachid Mrad 2024-11-18 19:59:43 -05:00
parent 4dec61990c
commit 7d92949e46
No known key found for this signature in database
14 changed files with 1554 additions and 1610 deletions

View file

@ -1,10 +1,5 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { hideElement, showElement } from './helpers.js';
/**
* An IIFE that changes the default clear behavior on comboboxes to the input field.
* We want the search bar to act soley as a search bar.
*/
export function loadInitialValuesForComboBoxes() {
var overrideDefaultClearButton = true;
var isTyping = false;
@ -118,5 +113,3 @@ export function loadInitialValuesForComboBoxes() {
}
}
}

View file

@ -1,10 +1,4 @@
// <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>>
// Event handlers.
var DEFAULT_ERROR = "Please check this field for errors.";
var INFORMATIVE = "info";
var WARNING = "warning";
var ERROR = "error";
var SUCCESS = "success";

View file

@ -1,7 +1,4 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { hookupYesNoListener, hookupRadioTogglerListener } from './helpers-radios.js';
import { getCsrfToken } from './get-csrf-token.js';
import { hookupYesNoListener, hookupRadioTogglerListener } from './radios.js';
import { initDomainValidators } from './domain-validators.js';
import { initFormsetsForms, triggerModalOnDsDataForm, nameserversFormListener } from './formset-forms.js';
import { initializeUrbanizationToggle } from './urbanization.js';
@ -43,6 +40,3 @@ initDomainsTable();
initDomainRequestsTable();
initMembersTable();
initMemberDomainsTable();

View file

@ -1,5 +1,5 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { hideElement, showElement } from './helpers.js';
/** An IIFE that intializes the requesting entity page.
* This page has a radio button that dynamically toggles some fields
* Within that, the dropdown also toggles some additional form elements.

View file

@ -1,5 +1,4 @@
import { hideElement, showElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
export class LoadTableBase {
constructor(sectionSelector) {

View file

@ -1,6 +1,6 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { getCsrfToken } from './get-csrf-token.js';
import { hideElement, showElement, scrollToElement } from './helpers.js';
import { initializeModals, unloadModals } from './helpers-uswds.js';
import { getCsrfToken } from './helpers-csrf-token.js';
import { LoadTableBase } from './table-base.js';
@ -391,12 +391,6 @@ export class DomainRequestsTable extends LoadTableBase {
}
}
/**
* An IIFE that listens for DOM Content to be loaded, then executes. This function
* initializes the domain requests list and associated functionality.
*
*/
export function initDomainRequestsTable() {
document.addEventListener('DOMContentLoaded', function() {
const domainRequestsSectionWrapper = document.getElementById('domain-requests');

View file

@ -1,5 +1,5 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { scrollToElement } from './helpers.js';
import { initializeTooltips } from './helpers-uswds.js';
import { LoadTableBase } from './table-base.js';
@ -141,12 +141,6 @@ export class DomainsTable extends LoadTableBase {
}
}
/**
* An IIFE that listens for DOM Content to be loaded, then executes. This function
* initializes the domains list and associated functionality.
*
*/
export function initDomainsTable() {
document.addEventListener('DOMContentLoaded', function() {
const isDomainsPage = document.getElementById("domains")
@ -158,7 +152,4 @@ export function initDomainsTable() {
}
}
});
}

View file

@ -1,6 +1,6 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { getCsrfToken } from './get-csrf-token.js';
import { getCsrfToken } from './helpers-csrf-token.js';
import { LoadTableBase } from './table-base.js';
@ -111,7 +111,6 @@ export class MemberDomainsTable extends LoadTableBase {
}
}
export function initMemberDomainsTable() {
document.addEventListener('DOMContentLoaded', function() {
const isMemberDomainsPage = document.getElementById("member-domains")

View file

@ -1,6 +1,4 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { getCsrfToken } from './get-csrf-token.js';
import { hideElement, showElement, scrollToElement } from './helpers.js';
import { LoadTableBase } from './table-base.js';
@ -355,13 +353,6 @@ export class MembersTable extends LoadTableBase {
}
}
/**
* An IIFE that listens for DOM Content to be loaded, then executes. This function
* initializes the members list and associated functionality.
*
*/
export function initMembersTable() {
document.addEventListener('DOMContentLoaded', function() {
const isMembersPage = document.getElementById("members")

View file

@ -1,21 +1,10 @@
import { hideElement, showElement, scrollToElement, toggleCaret } from './helpers.js';
import { initializeTooltips, initializeModals, unloadModals } from './helpers-uswds.js';
import { getCsrfToken } from './get-csrf-token.js';
/**
* An IIFE that displays confirmation modal on the user profile page
*/
export function userProfileListener() {
const showConfirmationModalTrigger = document.querySelector('.show-confirmation-modal');
if (showConfirmationModalTrigger) {
showConfirmationModalTrigger.click();
}
}
/**
* An IIFE that hooks up the edit buttons on the finish-user-setup page
*/
export function finishUserSetupListener() {
function getInputField(fieldName){