Skip to content

Commit

Permalink
more config
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick committed Nov 19, 2024
1 parent ffb01dc commit 6f9861d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ConfigError } from '../../errors/index.mjs'
import { ConfigurableComponent, configOverride } from '../configuration.mjs'

describe('GOVUKFrontendComponentConfigurable', () => {
describe('ComponentConfigurable', () => {
beforeEach(() => {
// Jest does not tidy the JSDOM document between tests
// so we need to take care of that ourselves
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'
import { ElementError } from '../../errors/index.mjs'
import { I18n } from '../../i18n.mjs'

Expand All @@ -15,9 +15,9 @@ import { I18n } from '../../i18n.mjs'
* attribute, which also provides accessibility.
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<AccordionConfig>
* @augments ConfigurableComponent<AccordionConfig>
*/
export class Accordion extends GOVUKFrontendComponentConfigurable {
export class Accordion extends ConfigurableComponent {
/** @private */
i18n

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'

const DEBOUNCE_TIMEOUT_IN_SECONDS = 1

/**
* JavaScript enhancements for the Button component
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<ButtonConfig>
* @augments ConfigurableComponent<ButtonConfig>
*/
export class Button extends GOVUKFrontendComponentConfigurable {
export class Button extends ConfigurableComponent {
/**
* @private
* @type {number | null}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { closestAttributeValue } from '../../common/closest-attribute-value.mjs'
import {
validateConfig,
GOVUKFrontendComponentConfigurable,
ConfigurableComponent,
configOverride
} from '../../common/configuration.mjs'
import { formatErrorMessage } from '../../common/index.mjs'
Expand All @@ -19,9 +19,9 @@ import { I18n } from '../../i18n.mjs'
* of the available characters/words has been entered.
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<CharacterCountConfig>
* @augments ConfigurableComponent<CharacterCountConfig>
*/
export class CharacterCount extends GOVUKFrontendComponentConfigurable {
export class CharacterCount extends ConfigurableComponent {
/** @private */
$textarea

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'
import { getFragmentFromUrl, setFocus } from '../../common/index.mjs'

/**
Expand All @@ -8,9 +8,9 @@ import { getFragmentFromUrl, setFocus } from '../../common/index.mjs'
* configuration.
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<ErrorSummaryConfig>
* @augments ConfigurableComponent<ErrorSummaryConfig>
*/
export class ErrorSummary extends GOVUKFrontendComponentConfigurable {
export class ErrorSummary extends ConfigurableComponent {
/**
* @param {Element | null} $root - HTML element to use for error summary
* @param {ErrorSummaryConfig} [config] - Error summary config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'
import { ElementError } from '../../errors/index.mjs'
import { I18n } from '../../i18n.mjs'

/**
* Exit this page component
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<ExitThisPageConfig>
* @augments ConfigurableComponent<ExitThisPageConfig>
*/
export class ExitThisPage extends GOVUKFrontendComponentConfigurable {
export class ExitThisPage extends ConfigurableComponent {
/** @private */
i18n

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'
import { setFocus } from '../../common/index.mjs'

/**
* Notification Banner component
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<NotificationBannerConfig>
* @augments ConfigurableComponent<NotificationBannerConfig>
*/
export class NotificationBanner extends GOVUKFrontendComponentConfigurable {
export class NotificationBanner extends ConfigurableComponent {
/**
* @param {Element | null} $root - HTML element to use for notification banner
* @param {NotificationBannerConfig} [config] - Notification banner config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { closestAttributeValue } from '../../common/closest-attribute-value.mjs'
import { GOVUKFrontendComponentConfigurable } from '../../common/configuration.mjs'
import { ConfigurableComponent } from '../../common/configuration.mjs'
import { ElementError } from '../../errors/index.mjs'
import { I18n } from '../../i18n.mjs'

/**
* Password input component
*
* @preserve
* @augments GOVUKFrontendComponentConfigurable<PasswordInputConfig>
* @augments ConfigurableComponent<PasswordInputConfig>
*/
export class PasswordInput extends GOVUKFrontendComponentConfigurable {
export class PasswordInput extends ConfigurableComponent {
/** @private */
i18n

Expand Down

0 comments on commit 6f9861d

Please sign in to comment.