@ncino/web-components 5.0.0-preview.2 → 5.0.0-preview.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index_html.js +1 -1
- package/dist/_virtual/index_react.js +1 -1
- package/dist/_virtual/preload-helper.js +1 -1
- package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
- package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
- package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
- package/dist/components/alert/gator/base/alert.gator.js +2 -2
- package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
- package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
- package/dist/components/avatar/gator/avatar.gator.js +2 -2
- package/dist/components/badge/gator/badge.gator.js +2 -2
- package/dist/components/banner/gator/banner.gator.js +2 -2
- package/dist/components/boolean/boolean.gator.js +6 -6
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
- package/dist/components/button/gator/button.gator.js +4 -4
- package/dist/components/button-group/gator/button-group.gator.js +2 -2
- package/dist/components/card/gator/footer/card-footer.gator.js +2 -2
- package/dist/components/card/gator/header/card-header.gator.js +2 -2
- package/dist/components/checkbox/checkbox.gator.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +13 -13
- package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
- package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
- package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
- package/dist/components/icon/gator/icon.gator.js +2 -2
- package/dist/components/illustration/gator/illustration.gator.js +2 -2
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
- package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
- package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
- package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
- package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
- package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
- package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
- package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
- package/dist/components/list/gator/list/list.gator.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
- package/dist/components/menu/base/gator/menu.gator.js +3 -3
- package/dist/components/menu/base/slds/menu.slds.js +2 -2
- package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
- package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
- package/dist/components/modal/gator/modal.gator.js +38 -39
- package/dist/components/page-header/gator/page-header.gator.js +2 -2
- package/dist/components/panel/gator/panel.gator.js +13 -13
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/pill/pill.slds.js +3 -3
- package/dist/components/popover/gator/popover.gator.js +10 -10
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.gator.js +2 -2
- package/dist/components/radio-group/radio-group.gator.js +2 -2
- package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
- package/dist/components/selector/gator/selector.gator.js +2 -2
- package/dist/components/switch/gator/switch.gator.js +2 -2
- package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
- package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
- package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
- package/dist/components/toast/gator/base/toast.gator.js +8 -9
- package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
- package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast-container/gator/toast-container.gator.js +18 -0
- package/dist/components/toast-container/index.js +1 -0
- package/dist/components/toaster/gator/toaster.gator.js +5 -0
- package/dist/components/toaster/index.js +1 -0
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.services.js +1 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
- package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
- package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +9 -9
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +1 -1
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +22 -22
- package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
- package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
- package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +11 -11
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
- package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
- package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive-helpers.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/repeat.js +5 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +8 -8
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/toast-container/gator/toast-container.gator.scss.js +1 -0
- package/dist/packages/web-components/src/components/toaster/gator/toaster.gator.scss.js +1 -0
- package/dist/packages/web-components/src/index.slds.scss.js +1 -1
- package/dist/services/toaster-service.js +1 -0
- package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
- package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
- package/dist/types/components/toast/toast.d.ts +14 -0
- package/dist/types/components/toast-container/gator/toast-container.gator.d.ts +15 -0
- package/dist/types/components/toast-container/gator/toast-container.gator.test.d.ts +0 -0
- package/dist/types/components/toast-container/index.d.ts +1 -0
- package/dist/types/components/toaster/gator/toaster.gator.d.ts +32 -0
- package/dist/types/components/toaster/gator/toaster.gator.test.d.ts +0 -0
- package/dist/types/components/toaster/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.gator.d.ts +2 -0
- package/dist/types/index.services.d.ts +1 -0
- package/dist/types/services/toaster-service.d.ts +117 -0
- package/dist/types/services/toaster-service.test.d.ts +1 -0
- package/dist/utils/accessibility-utils.js +1 -1
- package/dist/utils/datatestid-utils.js +1 -1
- package/dist/utils/lightdom-utils.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +15 -11
- package/web-types.json +182 -110
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.1_5fd2997ee9a97429a51e07bc2023c338/node_modules/@vitest/browser/context.js +0 -1
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as n}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import g from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import b from"../../../packages/web-components/src/components/page-header/gator/page-header.gator.scss.js";import{TestableLitElement as v}from"../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../breadcrumbs/gator/container/breadcrumbs.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../tabs/gator/tabset/tabset.gator.js";import"../../tabs/gator/tab/tab.gator.js";import{unsafeCSS as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as n}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import g from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import b from"../../../packages/web-components/src/components/page-header/gator/page-header.gator.scss.js";import{TestableLitElement as v}from"../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../breadcrumbs/gator/container/breadcrumbs.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../tabs/gator/tabset/tabset.gator.js";import"../../tabs/gator/tab/tab.gator.js";import{unsafeCSS as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(o,s,i,r)=>{for(var e=r>1?void 0:r?_(s,i):s,l=o.length-1,m;l>=0;l--)(m=o[l])&&(e=(r?m(s,i,e):m(e))||e);return r&&e&&f(s,i,e),e};let t=class extends v{constructor(){super(...arguments),this.title="",this.subtitle="",this._showBreadcrumbs=!1}updated(){this.shadowRoot?.querySelector('slot[name="breadcrumbs"]')?.assignedNodes().length>0&&(this._showBreadcrumbs=!0)}render(){return p`
|
|
2
2
|
<div class="ngc-page-header">
|
|
3
3
|
<div class="ngc-page-header-background">
|
|
4
4
|
<div class="ngc-page-header-left">
|
|
@@ -24,4 +24,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
|
|
|
24
24
|
<slot name="tabs"></slot>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
`}get breadcrumbClass(){return this._showBreadcrumbs?"ngc-page-header-breadcrumbs":""}};
|
|
27
|
+
`}get breadcrumbClass(){return this._showBreadcrumbs?"ngc-page-header-breadcrumbs":""}};t.styles=[d(g),d(u),d(b)];a([c()],t.prototype,"title",2);a([c()],t.prototype,"subtitle",2);a([h()],t.prototype,"_showBreadcrumbs",2);t=a([n("ngc-page-header")],t);export{t as NgcPageHeader};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as n}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as o}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import f from"../../../packages/web-components/src/components/panel/gator/panel.gator.scss.js";import g from"../../../packages/web-components/src/components/panel/gator/panel.gator.tokens.scss.js";import"../../card/gator/base/card.gator.js";import"../../card/gator/header/card-header.gator.js";import"../../icon-button/gator/icon-button.gator.js";import{createRef as y,ref as v}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{ifDefined as l}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{NgcComponent as u}from"../../../utils/components/ngc-component.js";import{unsafeCSS as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var b=Object.defineProperty,$=Object.getOwnPropertyDescriptor,e=(i,s,p,r)=>{for(var a=r>1?void 0:r?$(s,p):s,d=i.length-1,h;d>=0;d--)(h=i[d])&&(a=(r?h(s,p,a):h(a))||a);return r&&a&&b(s,p,a),a};let t=class extends u{constructor(){super(...arguments),this.type="overlay",this.open=!1,this.position="left",this.skeleton=!1,this.outlined=!1,this.anchorElement=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.static=!1,this.panelRef=y()}render(){return n`
|
|
2
2
|
<div ${v(this.panelRef)}
|
|
3
|
-
style=${
|
|
3
|
+
style=${l(this.anchorElement?`--anchor-element-offset: ${this.anchorElement?.offsetWidth}px;`:void 0)}
|
|
4
4
|
class="gator-panel gator-panel-${this.type} gator-panel-${this.position} gator-panel-${this.outlined?"outlined":"elevated"} ${this.open?"gator-panel-open":""}"
|
|
5
5
|
aria-hidden=${!this.open}
|
|
6
|
-
role=${
|
|
7
|
-
aria-modal=${
|
|
6
|
+
role=${l(this.static?void 0:"dialog")}
|
|
7
|
+
aria-modal=${l(this.static?void 0:"false")}
|
|
8
8
|
tabindex="-1"
|
|
9
|
-
aria-label=${
|
|
10
|
-
aria-labelledby=${
|
|
11
|
-
data-testid=${
|
|
9
|
+
aria-label=${l(this.ariaLabel||void 0)}
|
|
10
|
+
aria-labelledby=${l(this.ariaLabelledBy||void 0)}
|
|
11
|
+
data-testid=${l(this.dataTestid)}-panel
|
|
12
12
|
>
|
|
13
13
|
<div class="gator-panel-header">
|
|
14
|
-
${this.skeleton?
|
|
14
|
+
${this.skeleton?n`<ngc-text-detail skeleton></ngc-text-detail>`:n`<slot name="header"></slot>`}
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<div class="gator-panel-content">
|
|
18
|
-
${this.skeleton?this.gatorPanelContentLoadingMarkup:
|
|
18
|
+
${this.skeleton?this.gatorPanelContentLoadingMarkup:n`<slot name="body"></slot>`}
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
<div class="gator-panel-footer">
|
|
22
|
-
${this.skeleton?this.gatorPanelFooterLoadingMarkup:
|
|
22
|
+
${this.skeleton?this.gatorPanelFooterLoadingMarkup:n`<slot name="footer"></slot>`}
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
`}updated(){
|
|
25
|
+
`}updated(){this.anchorElement&&this.anchorElement?.style.setProperty("z-index","2")}get gatorPanelContentLoadingMarkup(){return n`
|
|
26
26
|
<ngc-text-detail skeleton></ngc-text-detail>
|
|
27
27
|
<ngc-text-detail skeleton></ngc-text-detail>
|
|
28
28
|
<ngc-text-detail skeleton></ngc-text-detail>
|
|
29
|
-
`}get gatorPanelFooterLoadingMarkup(){return
|
|
29
|
+
`}get gatorPanelFooterLoadingMarkup(){return n`
|
|
30
30
|
<div class="gator-panel-footer-loading">
|
|
31
31
|
<ngc-button skeleton></ngc-button>
|
|
32
32
|
<ngc-button skeleton></ngc-button>
|
|
33
33
|
</div>
|
|
34
|
-
`}closePanel(){
|
|
34
|
+
`}closePanel(){const i=()=>{this.open=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0}))};return this.type==="overlay"?(this.panelRef.value?.classList.add("gator-panel-close"),this.panelRef.value?.addEventListener("animationend",i,{once:!0})):(i(),null)}openPanel(){this.open=!0,this.dispatchEvent(new CustomEvent("open",{bubbles:!0})),this.panelRef.value?.addEventListener("animationend",()=>{this.panelRef.value?.focus()},{once:!0})}};t.styles=[...u.styles,c(f),c(g)];e([o({type:String})],t.prototype,"type",2);e([o({type:Boolean})],t.prototype,"open",2);e([o({type:String})],t.prototype,"position",2);e([o({type:Boolean})],t.prototype,"skeleton",2);e([o({type:Boolean})],t.prototype,"outlined",2);e([o({type:HTMLElement,attribute:"anchor-element"})],t.prototype,"anchorElement",2);e([o({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",2);e([o({type:String,attribute:"aria-labelledby"})],t.prototype,"ariaLabelledBy",2);e([o({type:Boolean})],t.prototype,"static",2);t=e([m("ngc-panel")],t);export{t as NgcPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{within as h,waitFor as d,expect as
|
|
1
|
+
import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const f=async({canvasElement:w,step:t})=>{const i=h(w);let l,o,c,n;await t("Scenario: Nested Panel Functionality",async()=>{await t("GIVEN the Story renders with the first panel open and the second panel closed",async()=>{l=await i.findByTestId("first-panel"),o=p(l,"first-panel-panel"),c=await i.findByTestId("second-panel"),n=p(c,"second-panel-panel"),await d(()=>e(o).toBeVisible()),e(n).not.toBeVisible()}),await t("WHEN I click on the list item with nested content to open the second panel",async()=>{i.getByTestId("list-item-with-nested").click()}),await t("THEN the second panel is opened relative to the first panel",async()=>{await d(()=>e(n).toBeVisible());const a=o?.offsetWidth;e(window.getComputedStyle(n).left).toBe(`${a}px`)}),await t("WHEN I click the collapse button in the first panel",async()=>{const a=i.getByText("Collapse");await s.click(a)}),await t("THEN I expect the second panel to have moved with the first panel",async()=>{e(window.getComputedStyle(o).width).toBe("56px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click the expand button in the first panel",async()=>{const a=i.getByTestId("expand-button");await s.click(a)}),await t("THEN I expect the first panel to expand and the second panel to move with it",async()=>{e(window.getComputedStyle(o).width).toBe("280px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click on the close button in the second panel",async()=>{const a=i.getByTestId("close-button");await s.click(a)}),await t("THEN I expect the second panel to be closed",async()=>{n.addEventListener("animationend",()=>{e(n).not.toBeVisible()},{once:!0})})})};export{f as nestedPanelTests};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import m from"../../packages/web-components/src/index.slds.scss.js";import{customElement as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as u}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NjcPill as h}from"./pill.js";import"../icon/slds/icon.slds.js";import{handleDataTestid as p}from"../../utils/datatestid-utils.js";import{unsafeCSS as f,css as _}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,c=(
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import m from"../../packages/web-components/src/index.slds.scss.js";import{customElement as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as u}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NjcPill as h}from"./pill.js";import"../icon/slds/icon.slds.js";import{handleDataTestid as p}from"../../utils/datatestid-utils.js";import{unsafeCSS as f,css as _}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,c=(l,t,r,e)=>{for(var s=e>1?void 0:e?v(t,r):t,i=l.length-1,n;i>=0;i--)(n=l[i])&&(s=(e?n(t,r,s):n(s))||s);return e&&s&&b(t,r,s),s};let o=class extends h{constructor(){super(...arguments),this.href=""}render(){return a`
|
|
2
2
|
<span class="${this.pillClasses}">
|
|
3
3
|
${this.href?this.linkHtml:this.labelHtml}
|
|
4
4
|
<button class="slds-button slds-button_icon slds-button_icon slds-pill__remove" title="TODO" @click="${this.removeClicked}">
|
|
@@ -16,8 +16,8 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
16
16
|
<span class="slds-pill__label" title="TODO">
|
|
17
17
|
<slot></slot>
|
|
18
18
|
</span>
|
|
19
|
-
`}updated(){
|
|
19
|
+
`}updated(){const l=this.shadowRoot?.querySelector("a");p(l,this.dataTestid,"link");const t=this.shadowRoot?.querySelector("button");p(t,this.dataTestid,"remove-button")}};o.styles=[f(m),_`
|
|
20
20
|
:host {
|
|
21
21
|
--sds-c-icon-color-foreground: currentColor;
|
|
22
22
|
}
|
|
23
|
-
`];c([u({type:String})],
|
|
23
|
+
`];c([u({type:String})],o.prototype,"href",2);o=c([d("nsc-pill")],o);export{o as NjcSldsPill};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{NjcPopover as
|
|
1
|
+
import{NjcPopover as u}from"../popover.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a,nothing as h}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as d}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{ref as f}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{customElement as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import v from"../../../packages/web-components/src/components/popover/gator/popover.gator.scss.js";import b from"../../../packages/web-components/src/components/popover/popover.scss.js";import _ from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import y from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{autoUpdate as P,computePosition as E,autoPlacement as k}from"../../../node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import w from"../../../packages/web-components/public/styles/gator/gator-global-styles.css.js";import{KEY_CONSTANTS as p}from"../../../consts/key-constants.js";import{msg as O}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var S=Object.getOwnPropertyDescriptor,$=(t,e,n,s)=>{for(var o=s>1?void 0:s?S(e,n):e,r=t.length-1,i;r>=0;r--)(i=t[r])&&(o=i(o)||o);return o};let c=class extends u{render(){return a`
|
|
2
2
|
<div
|
|
3
|
-
${
|
|
3
|
+
${f(this._popoverRef)}
|
|
4
4
|
id="${this.popoverId}"
|
|
5
5
|
class="gator-popover ${this._nubbinPositionClass} gator-popover-${this.size}"
|
|
6
6
|
aria-label="${this.title}"
|
|
@@ -10,26 +10,26 @@ import{NjcPopover as g}from"../popover.js";import"../../../node_modules/.pnpm/@l
|
|
|
10
10
|
${this._bodyMarkup}
|
|
11
11
|
${this._footerMarkup}
|
|
12
12
|
</div>
|
|
13
|
-
`}get _closeButtonMarkup(){return
|
|
13
|
+
`}get _closeButtonMarkup(){return a`
|
|
14
14
|
<ngc-icon-button
|
|
15
15
|
id="gator-popover-close"
|
|
16
|
-
.ariaLabel="${
|
|
16
|
+
.ariaLabel="${O("Close")} ${this.title}"
|
|
17
17
|
icon-name="exit"
|
|
18
18
|
size="xsmall"
|
|
19
19
|
@click="${this.hidePopover}"
|
|
20
20
|
@keydown="${this._handleKeyDown}"
|
|
21
21
|
></ngc-icon-button>
|
|
22
|
-
`}get _bodyMarkup(){return
|
|
22
|
+
`}get _bodyMarkup(){return a`
|
|
23
23
|
<div class="gator-popover-body">
|
|
24
24
|
<slot name="labels"></slot>
|
|
25
25
|
<div class="gator-popover-body-container">
|
|
26
|
-
${this.iconName?
|
|
26
|
+
${this.iconName?a`
|
|
27
27
|
<ngc-icon
|
|
28
28
|
name="${this.iconName}"
|
|
29
29
|
width="24"
|
|
30
30
|
height="24"
|
|
31
31
|
></ngc-icon>
|
|
32
|
-
`:
|
|
32
|
+
`:h}
|
|
33
33
|
|
|
34
34
|
<div class="gator-popover-body-content">
|
|
35
35
|
<span class="gator-popover-body-title">${this.title}</span>
|
|
@@ -40,10 +40,10 @@ import{NjcPopover as g}from"../popover.js";import"../../../node_modules/.pnpm/@l
|
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
|
-
`}get _footerMarkup(){return
|
|
43
|
+
`}get _footerMarkup(){return a`
|
|
44
44
|
<div class="gator-popover-divider"></div>
|
|
45
45
|
<div class="gator-popover-footer">
|
|
46
|
-
${this.errorText?
|
|
46
|
+
${this.errorText?a`<ngc-help-text icon error>${this.errorText}</ngc-help-text>`:h}
|
|
47
47
|
<slot name="footer"></slot>
|
|
48
48
|
</div>
|
|
49
|
-
`}get _computedPlacement(){return this.placement||this._placement}get _xPositionOffset(){return this._computedPlacement.includes("left")?-12+this.xOffset:this._computedPlacement.includes("right")?12+this.xOffset:0}get _yPositionOffset(){return this._computedPlacement.includes("top")?-12+this.yOffset:this._computedPlacement.includes("bottom")?12+this.yOffset:0}get _nubbinPositionClass(){return{"top-start":"gator-popover-nubbin_bottom-start",top:"gator-popover-nubbin_bottom-center","top-end":"gator-popover-nubbin_bottom-end","right-start":"gator-popover-nubbin_left-start",right:"gator-popover-nubbin_left-center","right-end":"gator-popover-nubbin_left-end","bottom-start":"gator-popover-nubbin_top-start",bottom:"gator-popover-nubbin_top-center","bottom-end":"gator-popover-nubbin_top-end","left-start":"gator-popover-nubbin_right-start",left:"gator-popover-nubbin_right-center","left-end":"gator-popover-nubbin_right-end"}[this._computedPlacement]}connectedCallback(){super.connectedCallback(),this.addTrackedEventListener(this.referenceElement,"keydown",t=>{(t.key===
|
|
49
|
+
`}get _computedPlacement(){return this.placement||this._placement}get _xPositionOffset(){return this._computedPlacement.includes("left")?-12+this.xOffset:this._computedPlacement.includes("right")?12+this.xOffset:0}get _yPositionOffset(){return this._computedPlacement.includes("top")?-12+this.yOffset:this._computedPlacement.includes("bottom")?12+this.yOffset:0}get _nubbinPositionClass(){return{"top-start":"gator-popover-nubbin_bottom-start",top:"gator-popover-nubbin_bottom-center","top-end":"gator-popover-nubbin_bottom-end","right-start":"gator-popover-nubbin_left-start",right:"gator-popover-nubbin_left-center","right-end":"gator-popover-nubbin_left-end","bottom-start":"gator-popover-nubbin_top-start",bottom:"gator-popover-nubbin_top-center","bottom-end":"gator-popover-nubbin_top-end","left-start":"gator-popover-nubbin_right-start",left:"gator-popover-nubbin_right-center","left-end":"gator-popover-nubbin_right-end"}[this._computedPlacement]}connectedCallback(){super.connectedCallback(),this.addTrackedEventListener(this.referenceElement,"keydown",t=>{(t.key===p.SPACE||t.key===p.ENTER)&&(t.preventDefault(),t.stopPropagation(),this.showPopover(!0))})}firstUpdated(){super.firstUpdated();const t=this.shadowRoot?.querySelector('slot[name="footer"]'),e=this.shadowRoot?.querySelector(".gator-popover-footer"),n=!!t&&t.assignedNodes().length>0,s=!!this.errorText;e&&(e.style.display=n||s?"flex":"none")}updated(t){super.updated(t),t.has("placement")&&(this._cleanup&&this._cleanup(),this.assignPosition(),this.requestUpdate())}assignPosition(){const t=this.referenceElement;if(!this._popoverRef||!this._popoverRef.value||!t)return;const e={placement:this.placement},n={middleware:[k({allowedPlacements:["top-start","top","top-end","right-start","right","right-end","bottom-start","bottom","bottom-end","left-start","left","left-end"],padding:5})]},o=!!this.placement?e:n;this._cleanup=P(t,this._popoverRef.value,async()=>{if(!this._popoverRef||!this._popoverRef.value||!t)return;const{x:r,y:i,placement:m}=await E(t,this._popoverRef.value,o);this._placement!==m&&(this._placement=m,this.requestUpdate()),Object.assign(this._popoverRef.value.style,{left:`${r+this._xPositionOffset}px`,top:`${i+this._yPositionOffset}px`})})}showPopover(t=!1){super.showPopover(t),this.addEventListener("keydown",this._handleKeyDown)}hidePopover(){super.hidePopover(),this.shadowRoot?.querySelector("#gator-popover-close")?.shadowRoot?.firstElementChild?.classList.remove("no-focus-visible")}_handleKeyDown(t){const n=(t.key===p.SPACE||t.key===p.ENTER)&&t.target?.id==="gator-popover-close";if((t.key===p.ESCAPE||n)&&(t.preventDefault(),this.hidePopover(),this.referenceElement.focus()),t.key===p.TAB){const s=this._getKeyboardFocusableElements(),o=this.shadowRoot?.activeElement??document.activeElement,r=s[0],i=s[s.length-1];o?.shadowRoot?.firstElementChild?.classList.remove("no-focus-visible"),t.shiftKey?o===r&&(t.preventDefault(),t.stopPropagation(),i.focus()):o===i&&(t.preventDefault(),t.stopPropagation(),r.focus())}}};c.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0,mode:"open"};c.styles=[l(v),l(b),l(_),l(y),l(w)];c=$([g("ngc-popover")],c);export{c as NgcPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{property as
|
|
1
|
+
import{property as r}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{createRef as u}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{generateRandomId as m}from"../../utils/string-utils.js";import{TestableLitElement as E}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{handleDataTestid as p}from"../../utils/datatestid-utils.js";import{getFirstFocusableElement as y,getFocusableElements as v}from"../../utils/accessibility-utils.js";var _=Object.defineProperty,n=(d,e,t,s)=>{for(var o=void 0,i=d.length-1,h;i>=0;i--)(h=d[i])&&(o=h(e,t,o)||o);return o&&_(e,t,o),o};class a extends E{constructor(){super(...arguments),this.referenceId="",this.title="",this.xOffset=0,this.yOffset=0,this.iconName=void 0,this.errorText=void 0,this.size="medium",this.showOnHover=!1,this._popoverRef=u(),this._forceOpen=!1,this._mousedInsidePopover=!1,this._placement="top",this.popoverId=m(),this.elementListeners=new WeakMap}firstUpdated(){if(this._popoverRef.value&&(this._popoverRef.value.style.visibility="hidden",this._popoverRef.value.style.opacity="0"),!this.referenceId)return;const e=this.referenceElement,t=this._popoverRef.value;let s;e.shadowRoot?.delegatesFocus?s=y(e):s=e,s&&(s.ariaDescribedByElements=[this]),e&&t&&(p(e,this.dataTestid,"trigger"),p(t,this.dataTestid,"popover"),e.shadowRoot?.firstElementChild?.setAttribute("aria-expanded","false"),this.showOnHover?this._addShowOnHoverEvents(e,t):this._addShowOnClickEvents(e,t))}updated(e){if(super.updated(e),e.has("showOnHover")&&e.get("showOnHover")!==void 0){const t=this.referenceElement,s=this._popoverRef.value;s&&(this.removeAllTrackedEventListeners(t),this.removeAllTrackedEventListeners(s),this.removeAllTrackedEventListeners(document),this.showOnHover?this._addShowOnHoverEvents(t,s):this._addShowOnClickEvents(t,s))}}get referenceElement(){let e=document.querySelector(`#${this.referenceId}`);return e||(e=document.querySelector(`[data-id="${this.referenceId}"]`)?.shadowRoot?.querySelector(`#${this.referenceId}`)),e}_addShowOnHoverEvents(e,t){this.addTrackedEventListener(e,"mouseenter",()=>this.showPopover()),this.addTrackedEventListener(e,"mouseleave",s=>this._handleMouseLeave(s,e,t)),this.addTrackedEventListener(e,"click",()=>this.showPopover(!0)),this.addTrackedEventListener(t,"mouseenter",()=>this.showPopover()),this.addTrackedEventListener(t,"mouseleave",s=>{if(this._mousedInsidePopover){this.hidePopover();return}this._handleMouseLeave(s,e,t)})}_addShowOnClickEvents(e,t){this.addTrackedEventListener(e,"click",()=>this.showPopover()),this.addTrackedEventListener(document,"click",s=>{const o=t.getBoundingClientRect(),i=s.target===e;!(this._isMouseInside(s,o,25)||this._hasPopoverAsParent(s.target))&&!i&&this.hidePopover()})}_hasPopoverAsParent(e){let t=e?.parentElement;for(;t&&t.tagName.toLowerCase()!=="ngc-popover";)t=t?.parentElement;return!!t}addTrackedEventListener(e,t,s,o={}){this.elementListeners.has(e)||this.elementListeners.set(e,[]),this.elementListeners.get(e).push({eventType:t,listener:s,options:o}),e.addEventListener(t,s,o)}removeAllTrackedEventListeners(e){if(!this.elementListeners.has(e))return;const t=this.elementListeners.get(e);for(const{eventType:s,listener:o,options:i}of t)e.removeEventListener(s,o,i);this.elementListeners.delete(e)}_handleMouseLeave(e,t,s){const o=t.getBoundingClientRect(),i=s.getBoundingClientRect(),h=this._isMouseInside(e,o,-5),l=this._isMouseInside(e,i,25);!h&&!l&&this.hidePopover(),l&&(this._mousedInsidePopover=!0)}_isMouseInside(e,t,s=0){const{left:o,right:i,top:h,bottom:l}=t,c=e.clientX,f=e.clientY;return c>=o-s&&c<=i+s&&f>=h-s&&f<=l+s}showPopover(e=!1){this.assignPosition();const t=this.referenceElement,s=this._popoverRef.value;s&&(s.style.visibility="visible",s.style.opacity="1"),t&&t.shadowRoot?.firstElementChild?.setAttribute("aria-expanded","true"),this._focusFirstElement(e)}hidePopover(){this._forceOpen||(this._popoverRef.value&&(this._popoverRef.value.style.visibility="hidden",this._popoverRef.value.style.opacity="0"),this.referenceElement&&this.referenceElement.shadowRoot?.firstElementChild?.setAttribute("aria-expanded","false"))}_getKeyboardFocusableElements(){let e=[];const t=this.shadowRoot?.querySelector('slot[name="footer"]');if(this.shadowRoot&&(e=e.concat(v(this.shadowRoot))),t){const s=Array.from(t.assignedElements());for(const o of s)e=e.concat(v(o))}return e.filter(s=>!s.hasAttribute("disabled")&&!s.hasAttribute("aria-hidden"))}_focusFirstElement(e=!1){const t=this._getKeyboardFocusableElements();if(t.length>0){const s=t[0];requestAnimationFrame(()=>{let o;e?o=s:(o=s.shadowRoot?.firstElementChild,o?.classList.add("no-focus-visible")),o?.focus()})}}assignPosition(){}disconnectedCallback(){this._cleanup&&this._cleanup(),super.disconnectedCallback()}}n([r({attribute:"reference-id"})],a.prototype,"referenceId");n([r({type:String})],a.prototype,"title");n([r()],a.prototype,"placement");n([r({type:Number,attribute:"x-offset"})],a.prototype,"xOffset");n([r({type:Number,attribute:"y-offset"})],a.prototype,"yOffset");n([r({type:String,attribute:"icon-name"})],a.prototype,"iconName");n([r({type:String,attribute:"error-text"})],a.prototype,"errorText");n([r()],a.prototype,"size");n([r({type:Boolean,attribute:"show-on-hover"})],a.prototype,"showOnHover");export{a as NjcPopover};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as u}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as f,getElementId as c}from"../../utils/string-utils.js";import b from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import v from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import y from"../../packages/web-components/src/components/radio/radio.gator.tokens.scss.js";import g from"../../packages/web-components/src/components/radio/radio.gator.scss.js";import"../icon/gator/icon.gator.js";import{TestableLitElement as x}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{createRef as R,ref as E}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{unsafeCSS as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as u}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as f,getElementId as c}from"../../utils/string-utils.js";import b from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import v from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import y from"../../packages/web-components/src/components/radio/radio.gator.tokens.scss.js";import g from"../../packages/web-components/src/components/radio/radio.gator.scss.js";import"../icon/gator/icon.gator.js";import{TestableLitElement as x}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{createRef as R,ref as E}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{unsafeCSS as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var T=Object.defineProperty,$=Object.getOwnPropertyDescriptor,i=(e,a,l,o)=>{for(var r=o>1?void 0:o?$(a,l):a,n=e.length-1,p;n>=0;n--)(p=e[n])&&(r=(o?p(a,l,r):p(r))||r);return o&&r&&T(a,l,r),r};let t=class extends x{constructor(){super(...arguments),this.id="",this.titleText="",this.value="",this.selected=!1,this.disabled=!1,this.hasError=!1,this.radioTabindex=-1,this.inputRef=R(),this._randomId=f()}updated(e){super.updated(e),e.has("hasError")&&this.inputRef.value&&this.inputRef.value.setCustomValidity(this.hasError?"true":""),e.has("selected")&&this.inputRef.value&&(this.inputRef.value.checked=this.selected)}render(){return h`
|
|
2
2
|
<div id="${this.elementId}-radio" class="gator-radio">
|
|
3
3
|
<div class="gator-radio-input-wrapper">
|
|
4
4
|
<div class="gator-radio-hover-overlay"></div>
|
|
@@ -19,4 +19,4 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
19
19
|
<slot></slot>
|
|
20
20
|
</label>
|
|
21
21
|
</div>
|
|
22
|
-
`}get elementId(){return c(this.id,this._randomId)}get tabindex(){let
|
|
22
|
+
`}get elementId(){return c(this.id,this._randomId)}get tabindex(){let e=this.radioTabindex;return this.selected&&(e=0),this.disabled&&(e=-1),e}handleChange(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:this.value}))}click(){this.disabled||this.inputRef.value?.click()}focus(){this.disabled||this.inputRef.value?.focus()}};t.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0,mode:"open"};t.styles=[d(y),d(g),d(b),d(v)];i([s({type:String})],t.prototype,"id",2);i([s({type:String,attribute:"title-text"})],t.prototype,"titleText",2);i([s({type:String})],t.prototype,"value",2);i([s({type:Boolean})],t.prototype,"selected",2);i([s({type:Boolean})],t.prototype,"disabled",2);i([s({type:Boolean,attribute:"has-error"})],t.prototype,"hasError",2);i([s({type:Number,attribute:"radio-tabindex"})],t.prototype,"radioTabindex",2);t=i([m("ngc-radio")],t);export{t as NgcRadio};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as g}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as a}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as f,getElementId as y}from"../../utils/string-utils.js";import{KEY_CONSTANTS as d}from"../../consts/key-constants.js";import b from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import $ from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import v from"../../packages/web-components/src/components/radio-group/radio-group.gator.scss.js";import"../radio/radio.gator.js";import"../icon/gator/icon.gator.js";import"../icon/gator/templates/add-link.js";import"../icon/gator/templates/airplane.js";import"../icon/gator/templates/alarm.js";import"../icon/gator/templates/apartment.js";import"../icon/gator/templates/arrow-around.js";import"../icon/gator/templates/arrow-down.js";import"../icon/gator/templates/arrow-left.js";import"../icon/gator/templates/arrow-line-left.js";import"../icon/gator/templates/arrow-line-right.js";import"../icon/gator/templates/arrow-right.js";import"../icon/gator/templates/arrow-up.js";import"../icon/gator/templates/bank.js";import"../icon/gator/templates/bell-disabled.js";import"../icon/gator/templates/bell.js";import"../icon/gator/templates/binoculars.js";import"../icon/gator/templates/book.js";import"../icon/gator/templates/box.js";import"../icon/gator/templates/cake.js";import"../icon/gator/templates/calculator.js";import"../icon/gator/templates/calendar.js";import"../icon/gator/templates/camera.js";import"../icon/gator/templates/caret-up-down.js";import"../icon/gator/templates/case.js";import"../icon/gator/templates/chart-bar-horizontal.js";import"../icon/gator/templates/chart-bar.js";import"../icon/gator/templates/chart-donut.js";import"../icon/gator/templates/chart-line.js";import"../icon/gator/templates/chart-pie.js";import"../icon/gator/templates/chart-rise.js";import"../icon/gator/templates/chart-scatter.js";import"../icon/gator/templates/chat.js";import"../icon/gator/templates/check-circle.js";import"../icon/gator/templates/check.js";import"../icon/gator/templates/checkbox-selected.js";import"../icon/gator/templates/checkbox.js";import"../icon/gator/templates/checkerboard.js";import"../icon/gator/templates/chevron-down.js";import"../icon/gator/templates/chevron-left.js";import"../icon/gator/templates/chevron-right.js";import"../icon/gator/templates/chevron-up.js";import"../icon/gator/templates/circle-arrow-down.js";import"../icon/gator/templates/circle-arrow-left.js";import"../icon/gator/templates/circle-arrow-right.js";import"../icon/gator/templates/circle-arrow-up.js";import"../icon/gator/templates/circle-dashed.js";import"../icon/gator/templates/circle-filled.js";import"../icon/gator/templates/circle.js";import"../icon/gator/templates/city.js";import"../icon/gator/templates/clipboard.js";import"../icon/gator/templates/clock-clockwise.js";import"../icon/gator/templates/clock-counter-clockwise.js";import"../icon/gator/templates/clock.js";import"../icon/gator/templates/collapse.js";import"../icon/gator/templates/cone.js";import"../icon/gator/templates/contact-info.js";import"../icon/gator/templates/copy.js";import"../icon/gator/templates/credit-card.js";import"../icon/gator/templates/crop.js";import"../icon/gator/templates/crosshairs.js";import"../icon/gator/templates/currency-dollar-simple.js";import"../icon/gator/templates/currency-eur.js";import"../icon/gator/templates/currency-gbp.js";import"../icon/gator/templates/currency-inr.js";import"../icon/gator/templates/currency-jpy.js";import"../icon/gator/templates/currency-krw.js";import"../icon/gator/templates/currency-kzt.js";import"../icon/gator/templates/currency-ngn.js";import"../icon/gator/templates/currency-rub.js";import"../icon/gator/templates/cursor-arrow.js";import"../icon/gator/templates/cursor-hand.js";import"../icon/gator/templates/cursor.js";import"../icon/gator/templates/dashboard.js";import"../icon/gator/templates/delete.js";import"../icon/gator/templates/dna.js";import"../icon/gator/templates/document-add.js";import"../icon/gator/templates/document-check.js";import"../icon/gator/templates/document-e-sign.js";import"../icon/gator/templates/document-image.js";import"../icon/gator/templates/document-pdf.js";import"../icon/gator/templates/document-sign.js";import"../icon/gator/templates/document-zip.js";import"../icon/gator/templates/document.js";import"../icon/gator/templates/dollar-bills.js";import"../icon/gator/templates/dollar-house.js";import"../icon/gator/templates/down-payment.js";import"../icon/gator/templates/download.js";import"../icon/gator/templates/drag-drop.js";import"../icon/gator/templates/earth.js";import"../icon/gator/templates/exclude-square.js";import"../icon/gator/templates/exit-circle.js";import"../icon/gator/templates/exit-left.js";import"../icon/gator/templates/exit.js";import"../icon/gator/templates/expand-arrows.js";import"../icon/gator/templates/expand.js";import"../icon/gator/templates/export.js";import"../icon/gator/templates/eye-closed.js";import"../icon/gator/templates/eye-crossed.js";import"../icon/gator/templates/eye.js";import"../icon/gator/templates/facebook-logo.js";import"../icon/gator/templates/file-code.js";import"../icon/gator/templates/files.js";import"../icon/gator/templates/filter-funnel.js";import"../icon/gator/templates/filters-2.js";import"../icon/gator/templates/filters.js";import"../icon/gator/templates/flags/flag-ad-andorra.js";import"../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../icon/gator/templates/flags/flag-af-afghanistan.js";import"../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../icon/gator/templates/flags/flag-ai-anguilla.js";import"../icon/gator/templates/flags/flag-al-albania.js";import"../icon/gator/templates/flags/flag-am-armenia.js";import"../icon/gator/templates/flags/flag-ao-angola.js";import"../icon/gator/templates/flags/flag-aq-antarctica.js";import"../icon/gator/templates/flags/flag-ar-argentina.js";import"../icon/gator/templates/flags/flag-as-american-smoa.js";import"../icon/gator/templates/flags/flag-at-austria.js";import"../icon/gator/templates/flags/flag-au-australia.js";import"../icon/gator/templates/flags/flag-aw-aruba.js";import"../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../icon/gator/templates/flags/flag-bb-barbados.js";import"../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../icon/gator/templates/flags/flag-be-belgium.js";import"../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../icon/gator/templates/flags/flag-bh-bahrain.js";import"../icon/gator/templates/flags/flag-bi-burundi.js";import"../icon/gator/templates/flags/flag-bj-benin.js";import"../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../icon/gator/templates/flags/flag-bm-bermuda.js";import"../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../icon/gator/templates/flags/flag-bo-bolivia.js";import"../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../icon/gator/templates/flags/flag-br-brazil.js";import"../icon/gator/templates/flags/flag-bs-bahamas.js";import"../icon/gator/templates/flags/flag-bt-bhutan.js";import"../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../icon/gator/templates/flags/flag-bw-botswana.js";import"../icon/gator/templates/flags/flag-by-belarus.js";import"../icon/gator/templates/flags/flag-bz-belize.js";import"../icon/gator/templates/flags/flag-ca-canada.js";import"../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-ch-switzerland.js";import"../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../icon/gator/templates/flags/flag-cl-chile.js";import"../icon/gator/templates/flags/flag-cm-cameroon.js";import"../icon/gator/templates/flags/flag-cn-china.js";import"../icon/gator/templates/flags/flag-co-colombia.js";import"../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../icon/gator/templates/flags/flag-cu-cuba.js";import"../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../icon/gator/templates/flags/flag-cw-curaçao.js";import"../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../icon/gator/templates/flags/flag-cy-cyprus.js";import"../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../icon/gator/templates/flags/flag-de-germany.js";import"../icon/gator/templates/flags/flag-dj-djibouti.js";import"../icon/gator/templates/flags/flag-dk-denmark.js";import"../icon/gator/templates/flags/flag-dm-dominica.js";import"../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../icon/gator/templates/flags/flag-dz-algeria.js";import"../icon/gator/templates/flags/flag-ec-ecuador.js";import"../icon/gator/templates/flags/flag-ee-estonia.js";import"../icon/gator/templates/flags/flag-eg-egypt.js";import"../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../icon/gator/templates/flags/flag-er-eritrea.js";import"../icon/gator/templates/flags/flag-es-sain.js";import"../icon/gator/templates/flags/flag-et-ethiopia.js";import"../icon/gator/templates/flags/flag-fi-finland.js";import"../icon/gator/templates/flags/flag-fj-fiji.js";import"../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../icon/gator/templates/flags/flag-fr-france.js";import"../icon/gator/templates/flags/flag-ga-gabon.js";import"../icon/gator/templates/flags/flag-gb-eng-england.js";import"../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../icon/gator/templates/flags/flag-gd-grenada.js";import"../icon/gator/templates/flags/flag-ge-georgia.js";import"../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../icon/gator/templates/flags/flag-gg-guernsey.js";import"../icon/gator/templates/flags/flag-gh-ghana.js";import"../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../icon/gator/templates/flags/flag-gl-greenland.js";import"../icon/gator/templates/flags/flag-gm-gambia.js";import"../icon/gator/templates/flags/flag-gn-guinea.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../icon/gator/templates/flags/flag-gr-greece.js";import"../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../icon/gator/templates/flags/flag-gt-guatemala.js";import"../icon/gator/templates/flags/flag-gu-guam.js";import"../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../icon/gator/templates/flags/flag-gy-guyana.js";import"../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../icon/gator/templates/flags/flag-hn-honduras.js";import"../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../icon/gator/templates/flags/flag-ht-haiti.js";import"../icon/gator/templates/flags/flag-hu-hungary.js";import"../icon/gator/templates/flags/flag-id-indonesia.js";import"../icon/gator/templates/flags/flag-ie-ireland.js";import"../icon/gator/templates/flags/flag-il-isreal.js";import"../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../icon/gator/templates/flags/flag-in-india.js";import"../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../icon/gator/templates/flags/flag-iq-iraq.js";import"../icon/gator/templates/flags/flag-ir-iran.js";import"../icon/gator/templates/flags/flag-is-iceland.js";import"../icon/gator/templates/flags/flag-it-italy.js";import"../icon/gator/templates/flags/flag-je-jersey.js";import"../icon/gator/templates/flags/flag-jm-jamaica.js";import"../icon/gator/templates/flags/flag-jo-jordan.js";import"../icon/gator/templates/flags/flag-jp-japan.js";import"../icon/gator/templates/flags/flag-ke-kenia.js";import"../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../icon/gator/templates/flags/flag-kh-cambodia.js";import"../icon/gator/templates/flags/flag-ki--kiribati.js";import"../icon/gator/templates/flags/flag-km-comoros.js";import"../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../icon/gator/templates/flags/flag-kp-korea-north.js";import"../icon/gator/templates/flags/flag-kr-korea-south.js";import"../icon/gator/templates/flags/flag-kw-kuwait.js";import"../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../icon/gator/templates/flags/flag-la-laos.js";import"../icon/gator/templates/flags/flag-lb-lebanon.js";import"../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../icon/gator/templates/flags/flag-lr-liberia.js";import"../icon/gator/templates/flags/flag-ls-lesotho.js";import"../icon/gator/templates/flags/flag-lt-lithuania.js";import"../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../icon/gator/templates/flags/flag-lv-latvia.js";import"../icon/gator/templates/flags/flag-ly-libya.js";import"../icon/gator/templates/flags/flag-ma-morocco.js";import"../icon/gator/templates/flags/flag-mc-monaco.js";import"../icon/gator/templates/flags/flag-md-moldova.js";import"../icon/gator/templates/flags/flag-me-montenegro.js";import"../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../icon/gator/templates/flags/flag-mg-madagascar.js";import"../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../icon/gator/templates/flags/flag-ml-mali.js";import"../icon/gator/templates/flags/flag-mm-myanmar.js";import"../icon/gator/templates/flags/flag-mn-mongolia.js";import"../icon/gator/templates/flags/flag-mo-macao.js";import"../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../icon/gator/templates/flags/flag-mq-martinique.js";import"../icon/gator/templates/flags/flag-mr-mauritania.js";import"../icon/gator/templates/flags/flag-ms-montserrat.js";import"../icon/gator/templates/flags/flag-mt-malta.js";import"../icon/gator/templates/flags/flag-mu-mauritius.js";import"../icon/gator/templates/flags/flag-mv-maldives.js";import"../icon/gator/templates/flags/flag-mw-malawi.js";import"../icon/gator/templates/flags/flag-mx-mexico.js";import"../icon/gator/templates/flags/flag-my-malaysia.js";import"../icon/gator/templates/flags/flag-mz-mozambique.js";import"../icon/gator/templates/flags/flag-na-namibia.js";import"../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../icon/gator/templates/flags/flag-ne-niger.js";import"../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../icon/gator/templates/flags/flag-ng-nigeria.js";import"../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../icon/gator/templates/flags/flag-nl-netherlands.js";import"../icon/gator/templates/flags/flag-no-norway.js";import"../icon/gator/templates/flags/flag-np-nepal.js";import"../icon/gator/templates/flags/flag-nr-nauru.js";import"../icon/gator/templates/flags/flag-nu-niue.js";import"../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../icon/gator/templates/flags/flag-om-oman.js";import"../icon/gator/templates/flags/flag-pa-panama.js";import"../icon/gator/templates/flags/flag-pe-peru.js";import"../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../icon/gator/templates/flags/flag-ph-philippines.js";import"../icon/gator/templates/flags/flag-pk-pakistan.js";import"../icon/gator/templates/flags/flag-pl-poland.js";import"../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../icon/gator/templates/flags/flag-pt-portugal.js";import"../icon/gator/templates/flags/flag-pw-palau.js";import"../icon/gator/templates/flags/flag-py-paraguay.js";import"../icon/gator/templates/flags/flag-qa-qatar.js";import"../icon/gator/templates/flags/flag-re-reunion.js";import"../icon/gator/templates/flags/flag-ro-romania.js";import"../icon/gator/templates/flags/flag-rs-srbia.js";import"../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../icon/gator/templates/flags/flag-rw-rwanda.js";import"../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../icon/gator/templates/flags/flag-sc-sychelles.js";import"../icon/gator/templates/flags/flag-sd-sdan.js";import"../icon/gator/templates/flags/flag-se-seden.js";import"../icon/gator/templates/flags/flag-sg-sngapore.js";import"../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../icon/gator/templates/flags/flag-si-sovenia.js";import"../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../icon/gator/templates/flags/flag-sk-sovakia.js";import"../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../icon/gator/templates/flags/flag-sn-snegal.js";import"../icon/gator/templates/flags/flag-so-smalia.js";import"../icon/gator/templates/flags/flag-sr-sriname.js";import"../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../icon/gator/templates/flags/flag-sy-sria.js";import"../icon/gator/templates/flags/flag-sz-saziland.js";import"../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../icon/gator/templates/flags/flag-td-chad.js";import"../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../icon/gator/templates/flags/flag-tg-togo.js";import"../icon/gator/templates/flags/flag-th-thailand.js";import"../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../icon/gator/templates/flags/flag-tk-tokelau.js";import"../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../icon/gator/templates/flags/flag-tn-tunisia.js";import"../icon/gator/templates/flags/flag-to-tonga.js";import"../icon/gator/templates/flags/flag-tr-turkey.js";import"../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../icon/gator/templates/flags/flag-tw-taiwan.js";import"../icon/gator/templates/flags/flag-tz-tanzania.js";import"../icon/gator/templates/flags/flag-ua-ukraine.js";import"../icon/gator/templates/flags/flag-ug-uganda.js";import"../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../icon/gator/templates/flags/flag-us-united-states.js";import"../icon/gator/templates/flags/flag-uy-uruguay.js";import"../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../icon/gator/templates/flags/flag-ve-venezuela.js";import"../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../icon/gator/templates/flags/flag-vn-vietnam.js";import"../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../icon/gator/templates/flags/flag-ws-smoa.js";import"../icon/gator/templates/flags/flag-ye-yemen.js";import"../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../icon/gator/templates/flags/flag-za-south-africa.js";import"../icon/gator/templates/flags/flag-zm-zambia.js";import"../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../icon/gator/templates/flame.js";import"../icon/gator/templates/flash-off.js";import"../icon/gator/templates/flash-on.js";import"../icon/gator/templates/folder.js";import"../icon/gator/templates/gauge.js";import"../icon/gator/templates/grid-four.js";import"../icon/gator/templates/grid-nine.js";import"../icon/gator/templates/hammer.js";import"../icon/gator/templates/hand-pointing.js";import"../icon/gator/templates/heart.js";import"../icon/gator/templates/home-door.js";import"../icon/gator/templates/home-finance-arrow.js";import"../icon/gator/templates/home-finance.js";import"../icon/gator/templates/home-search.js";import"../icon/gator/templates/house-simple.js";import"../icon/gator/templates/house.js";import"../icon/gator/templates/inbox.js";import"../icon/gator/templates/info.js";import"../icon/gator/templates/instagram-logo.js";import"../icon/gator/templates/interest-rate.js";import"../icon/gator/templates/invoice.js";import"../icon/gator/templates/kanban.js";import"../icon/gator/templates/label.js";import"../icon/gator/templates/laptop.js";import"../icon/gator/templates/layout.js";import"../icon/gator/templates/lightbulb-filament.js";import"../icon/gator/templates/lightbulb.js";import"../icon/gator/templates/link.js";import"../icon/gator/templates/linkedin-logo.js";import"../icon/gator/templates/list-star.js";import"../icon/gator/templates/list.js";import"../icon/gator/templates/loading-spinner-gif.js";import"../icon/gator/templates/loading.js";import"../icon/gator/templates/lock.js";import"../icon/gator/templates/magic-wand.js";import"../icon/gator/templates/mail-open.js";import"../icon/gator/templates/mail.js";import"../icon/gator/templates/mailbox.js";import"../icon/gator/templates/map.js";import"../icon/gator/templates/menu-hamburger.js";import"../icon/gator/templates/microsoft-excel-logo.js";import"../icon/gator/templates/microsoft-outlook-logo.js";import"../icon/gator/templates/microsoft-powerpoint-logo.js";import"../icon/gator/templates/microsoft-teams-logo.js";import"../icon/gator/templates/microsoft-word-logo.js";import"../icon/gator/templates/minus-circle.js";import"../icon/gator/templates/minus-square.js";import"../icon/gator/templates/minus.js";import"../icon/gator/templates/mobile-phone-2.js";import"../icon/gator/templates/monitor.js";import"../icon/gator/templates/move-doc.js";import"../icon/gator/templates/move.js";import"../icon/gator/templates/music.js";import"../icon/gator/templates/number-1.js";import"../icon/gator/templates/number-2.js";import"../icon/gator/templates/number-3.js";import"../icon/gator/templates/overflow-menu.js";import"../icon/gator/templates/paper-airplane.js";import"../icon/gator/templates/paperclip.js";import"../icon/gator/templates/payments/payment-amazon-pay.js";import"../icon/gator/templates/payments/payment-amex.js";import"../icon/gator/templates/payments/payment-apple-pay.js";import"../icon/gator/templates/payments/payment-discover.js";import"../icon/gator/templates/payments/payment-google-pay.js";import"../icon/gator/templates/payments/payment-mastercard.js";import"../icon/gator/templates/payments/payment-visa.js";import"../icon/gator/templates/pen.js";import"../icon/gator/templates/pencil-paper.js";import"../icon/gator/templates/pencil.js";import"../icon/gator/templates/people-multiple.js";import"../icon/gator/templates/people-share.js";import"../icon/gator/templates/percent.js";import"../icon/gator/templates/person-add.js";import"../icon/gator/templates/person-check.js";import"../icon/gator/templates/person-lock.js";import"../icon/gator/templates/person.js";import"../icon/gator/templates/phone-alert.js";import"../icon/gator/templates/phone-mobile.js";import"../icon/gator/templates/phone.js";import"../icon/gator/templates/picture.js";import"../icon/gator/templates/pin.js";import"../icon/gator/templates/pinterest-logo.js";import"../icon/gator/templates/plus-circle.js";import"../icon/gator/templates/plus.js";import"../icon/gator/templates/printer.js";import"../icon/gator/templates/question-chat-bubble.js";import"../icon/gator/templates/question-circle.js";import"../icon/gator/templates/question-mark.js";import"../icon/gator/templates/radio-selected.js";import"../icon/gator/templates/radio.js";import"../icon/gator/templates/receipt.js";import"../icon/gator/templates/restricted.js";import"../icon/gator/templates/sandals.js";import"../icon/gator/templates/save.js";import"../icon/gator/templates/screen.js";import"../icon/gator/templates/search.js";import"../icon/gator/templates/selection.js";import"../icon/gator/templates/settings.js";import"../icon/gator/templates/share-1.js";import"../icon/gator/templates/share-2.js";import"../icon/gator/templates/shield-lock.js";import"../icon/gator/templates/shield-warning.js";import"../icon/gator/templates/sidebar-simple.js";import"../icon/gator/templates/sidebar.js";import"../icon/gator/templates/smart-home.js";import"../icon/gator/templates/sort-arrow-solid-down.js";import"../icon/gator/templates/sort-arrow-solid-left.js";import"../icon/gator/templates/sort-arrow-solid-right.js";import"../icon/gator/templates/sort-arrow-solid-up-down.js";import"../icon/gator/templates/sort-arrow-solid-up.js";import"../icon/gator/templates/sort-reverse-variant.js";import"../icon/gator/templates/sort-variant.js";import"../icon/gator/templates/sparkle-filled.js";import"../icon/gator/templates/sparkle.js";import"../icon/gator/templates/speech-bubble.js";import"../icon/gator/templates/square-split-horizontal.js";import"../icon/gator/templates/square-split-vertical.js";import"../icon/gator/templates/square.js";import"../icon/gator/templates/stack.js";import"../icon/gator/templates/stamp.js";import"../icon/gator/templates/star-four-filled.js";import"../icon/gator/templates/star-four.js";import"../icon/gator/templates/star.js";import"../icon/gator/templates/stopwatch.js";import"../icon/gator/templates/sun.js";import"../icon/gator/templates/sync.js";import"../icon/gator/templates/tab-arrows.js";import"../icon/gator/templates/table.js";import"../icon/gator/templates/target.js";import"../icon/gator/templates/text-aa.js";import"../icon/gator/templates/thumbs-down.js";import"../icon/gator/templates/thumbs-up.js";import"../icon/gator/templates/tools.js";import"../icon/gator/templates/touch-id.js";import"../icon/gator/templates/trash.js";import"../icon/gator/templates/trend-up.js";import"../icon/gator/templates/twitter-logo.js";import"../icon/gator/templates/unlink.js";import"../icon/gator/templates/unlock.js";import"../icon/gator/templates/upload.js";import"../icon/gator/templates/video.js";import"../icon/gator/templates/waffle.js";import"../icon/gator/templates/warning-circle.js";import"../icon/gator/templates/warning-diamond.js";import"../icon/gator/templates/warning-octagon.js";import"../icon/gator/templates/warning.js";import"../icon/gator/templates/wet-sign.js";import"../icon/gator/templates/wifi-off.js";import"../icon/gator/templates/wifi.js";import"../icon/gator/templates/x-logo.js";import"../icon/gator/templates/yelp-logo.js";import"../icon/gator/templates/youtube-logo.js";import"../icon/gator/templates/zillow-logo.js";import"../input/gator/help-text/help-text.gator.js";import"../input/gator/input-label/input-label.gator.js";import{handleDataTestid as x}from"../../utils/datatestid-utils.js";import{TestableLitElement as E}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{ifDefined as u}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as c}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var T=Object.defineProperty,I=Object.getOwnPropertyDescriptor,s=(t,r,i,m)=>{for(var e=m>1?void 0:m?I(r,i):r,n=t.length-1,o;n>=0;n--)(o=t[n])&&(e=(m?o(r,i,e):o(e))||e);return m&&e&&T(r,i,e),e};let p=class extends E{constructor(){super(...arguments),this.id="",this.label="",this.helpText="",this.value="",this.disabled=!1,this.hasError=!1,this.errorMessage="",this.options=[],this._randomId=f()}render(){return l`
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as g}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as e}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as f,getElementId as y}from"../../utils/string-utils.js";import{KEY_CONSTANTS as d}from"../../consts/key-constants.js";import b from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import $ from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import v from"../../packages/web-components/src/components/radio-group/radio-group.gator.scss.js";import"../radio/radio.gator.js";import"../icon/gator/icon.gator.js";import"../icon/gator/templates/add-link.js";import"../icon/gator/templates/airplane.js";import"../icon/gator/templates/alarm.js";import"../icon/gator/templates/apartment.js";import"../icon/gator/templates/arrow-around.js";import"../icon/gator/templates/arrow-down.js";import"../icon/gator/templates/arrow-left.js";import"../icon/gator/templates/arrow-line-left.js";import"../icon/gator/templates/arrow-line-right.js";import"../icon/gator/templates/arrow-right.js";import"../icon/gator/templates/arrow-up.js";import"../icon/gator/templates/bank.js";import"../icon/gator/templates/bell-disabled.js";import"../icon/gator/templates/bell.js";import"../icon/gator/templates/binoculars.js";import"../icon/gator/templates/book.js";import"../icon/gator/templates/box.js";import"../icon/gator/templates/cake.js";import"../icon/gator/templates/calculator.js";import"../icon/gator/templates/calendar.js";import"../icon/gator/templates/camera.js";import"../icon/gator/templates/caret-up-down.js";import"../icon/gator/templates/case.js";import"../icon/gator/templates/chart-bar-horizontal.js";import"../icon/gator/templates/chart-bar.js";import"../icon/gator/templates/chart-donut.js";import"../icon/gator/templates/chart-line.js";import"../icon/gator/templates/chart-pie.js";import"../icon/gator/templates/chart-rise.js";import"../icon/gator/templates/chart-scatter.js";import"../icon/gator/templates/chat.js";import"../icon/gator/templates/check-circle.js";import"../icon/gator/templates/check.js";import"../icon/gator/templates/checkbox-selected.js";import"../icon/gator/templates/checkbox.js";import"../icon/gator/templates/checkerboard.js";import"../icon/gator/templates/chevron-down.js";import"../icon/gator/templates/chevron-left.js";import"../icon/gator/templates/chevron-right.js";import"../icon/gator/templates/chevron-up.js";import"../icon/gator/templates/circle-arrow-down.js";import"../icon/gator/templates/circle-arrow-left.js";import"../icon/gator/templates/circle-arrow-right.js";import"../icon/gator/templates/circle-arrow-up.js";import"../icon/gator/templates/circle-dashed.js";import"../icon/gator/templates/circle-filled.js";import"../icon/gator/templates/circle.js";import"../icon/gator/templates/city.js";import"../icon/gator/templates/clipboard.js";import"../icon/gator/templates/clock-clockwise.js";import"../icon/gator/templates/clock-counter-clockwise.js";import"../icon/gator/templates/clock.js";import"../icon/gator/templates/collapse.js";import"../icon/gator/templates/cone.js";import"../icon/gator/templates/contact-info.js";import"../icon/gator/templates/copy.js";import"../icon/gator/templates/credit-card.js";import"../icon/gator/templates/crop.js";import"../icon/gator/templates/crosshairs.js";import"../icon/gator/templates/currency-dollar-simple.js";import"../icon/gator/templates/currency-eur.js";import"../icon/gator/templates/currency-gbp.js";import"../icon/gator/templates/currency-inr.js";import"../icon/gator/templates/currency-jpy.js";import"../icon/gator/templates/currency-krw.js";import"../icon/gator/templates/currency-kzt.js";import"../icon/gator/templates/currency-ngn.js";import"../icon/gator/templates/currency-rub.js";import"../icon/gator/templates/cursor-arrow.js";import"../icon/gator/templates/cursor-hand.js";import"../icon/gator/templates/cursor.js";import"../icon/gator/templates/dashboard.js";import"../icon/gator/templates/delete.js";import"../icon/gator/templates/dna.js";import"../icon/gator/templates/document-add.js";import"../icon/gator/templates/document-check.js";import"../icon/gator/templates/document-e-sign.js";import"../icon/gator/templates/document-image.js";import"../icon/gator/templates/document-pdf.js";import"../icon/gator/templates/document-sign.js";import"../icon/gator/templates/document-zip.js";import"../icon/gator/templates/document.js";import"../icon/gator/templates/dollar-bills.js";import"../icon/gator/templates/dollar-house.js";import"../icon/gator/templates/down-payment.js";import"../icon/gator/templates/download.js";import"../icon/gator/templates/drag-drop.js";import"../icon/gator/templates/earth.js";import"../icon/gator/templates/exclude-square.js";import"../icon/gator/templates/exit-circle.js";import"../icon/gator/templates/exit-left.js";import"../icon/gator/templates/exit.js";import"../icon/gator/templates/expand-arrows.js";import"../icon/gator/templates/expand.js";import"../icon/gator/templates/export.js";import"../icon/gator/templates/eye-closed.js";import"../icon/gator/templates/eye-crossed.js";import"../icon/gator/templates/eye.js";import"../icon/gator/templates/facebook-logo.js";import"../icon/gator/templates/file-code.js";import"../icon/gator/templates/files.js";import"../icon/gator/templates/filter-funnel.js";import"../icon/gator/templates/filters-2.js";import"../icon/gator/templates/filters.js";import"../icon/gator/templates/flags/flag-ad-andorra.js";import"../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../icon/gator/templates/flags/flag-af-afghanistan.js";import"../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../icon/gator/templates/flags/flag-ai-anguilla.js";import"../icon/gator/templates/flags/flag-al-albania.js";import"../icon/gator/templates/flags/flag-am-armenia.js";import"../icon/gator/templates/flags/flag-ao-angola.js";import"../icon/gator/templates/flags/flag-aq-antarctica.js";import"../icon/gator/templates/flags/flag-ar-argentina.js";import"../icon/gator/templates/flags/flag-as-american-smoa.js";import"../icon/gator/templates/flags/flag-at-austria.js";import"../icon/gator/templates/flags/flag-au-australia.js";import"../icon/gator/templates/flags/flag-aw-aruba.js";import"../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../icon/gator/templates/flags/flag-bb-barbados.js";import"../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../icon/gator/templates/flags/flag-be-belgium.js";import"../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../icon/gator/templates/flags/flag-bh-bahrain.js";import"../icon/gator/templates/flags/flag-bi-burundi.js";import"../icon/gator/templates/flags/flag-bj-benin.js";import"../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../icon/gator/templates/flags/flag-bm-bermuda.js";import"../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../icon/gator/templates/flags/flag-bo-bolivia.js";import"../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../icon/gator/templates/flags/flag-br-brazil.js";import"../icon/gator/templates/flags/flag-bs-bahamas.js";import"../icon/gator/templates/flags/flag-bt-bhutan.js";import"../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../icon/gator/templates/flags/flag-bw-botswana.js";import"../icon/gator/templates/flags/flag-by-belarus.js";import"../icon/gator/templates/flags/flag-bz-belize.js";import"../icon/gator/templates/flags/flag-ca-canada.js";import"../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-ch-switzerland.js";import"../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../icon/gator/templates/flags/flag-cl-chile.js";import"../icon/gator/templates/flags/flag-cm-cameroon.js";import"../icon/gator/templates/flags/flag-cn-china.js";import"../icon/gator/templates/flags/flag-co-colombia.js";import"../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../icon/gator/templates/flags/flag-cu-cuba.js";import"../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../icon/gator/templates/flags/flag-cw-curaçao.js";import"../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../icon/gator/templates/flags/flag-cy-cyprus.js";import"../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../icon/gator/templates/flags/flag-de-germany.js";import"../icon/gator/templates/flags/flag-dj-djibouti.js";import"../icon/gator/templates/flags/flag-dk-denmark.js";import"../icon/gator/templates/flags/flag-dm-dominica.js";import"../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../icon/gator/templates/flags/flag-dz-algeria.js";import"../icon/gator/templates/flags/flag-ec-ecuador.js";import"../icon/gator/templates/flags/flag-ee-estonia.js";import"../icon/gator/templates/flags/flag-eg-egypt.js";import"../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../icon/gator/templates/flags/flag-er-eritrea.js";import"../icon/gator/templates/flags/flag-es-sain.js";import"../icon/gator/templates/flags/flag-et-ethiopia.js";import"../icon/gator/templates/flags/flag-fi-finland.js";import"../icon/gator/templates/flags/flag-fj-fiji.js";import"../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../icon/gator/templates/flags/flag-fr-france.js";import"../icon/gator/templates/flags/flag-ga-gabon.js";import"../icon/gator/templates/flags/flag-gb-eng-england.js";import"../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../icon/gator/templates/flags/flag-gd-grenada.js";import"../icon/gator/templates/flags/flag-ge-georgia.js";import"../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../icon/gator/templates/flags/flag-gg-guernsey.js";import"../icon/gator/templates/flags/flag-gh-ghana.js";import"../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../icon/gator/templates/flags/flag-gl-greenland.js";import"../icon/gator/templates/flags/flag-gm-gambia.js";import"../icon/gator/templates/flags/flag-gn-guinea.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../icon/gator/templates/flags/flag-gr-greece.js";import"../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../icon/gator/templates/flags/flag-gt-guatemala.js";import"../icon/gator/templates/flags/flag-gu-guam.js";import"../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../icon/gator/templates/flags/flag-gy-guyana.js";import"../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../icon/gator/templates/flags/flag-hn-honduras.js";import"../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../icon/gator/templates/flags/flag-ht-haiti.js";import"../icon/gator/templates/flags/flag-hu-hungary.js";import"../icon/gator/templates/flags/flag-id-indonesia.js";import"../icon/gator/templates/flags/flag-ie-ireland.js";import"../icon/gator/templates/flags/flag-il-isreal.js";import"../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../icon/gator/templates/flags/flag-in-india.js";import"../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../icon/gator/templates/flags/flag-iq-iraq.js";import"../icon/gator/templates/flags/flag-ir-iran.js";import"../icon/gator/templates/flags/flag-is-iceland.js";import"../icon/gator/templates/flags/flag-it-italy.js";import"../icon/gator/templates/flags/flag-je-jersey.js";import"../icon/gator/templates/flags/flag-jm-jamaica.js";import"../icon/gator/templates/flags/flag-jo-jordan.js";import"../icon/gator/templates/flags/flag-jp-japan.js";import"../icon/gator/templates/flags/flag-ke-kenia.js";import"../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../icon/gator/templates/flags/flag-kh-cambodia.js";import"../icon/gator/templates/flags/flag-ki--kiribati.js";import"../icon/gator/templates/flags/flag-km-comoros.js";import"../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../icon/gator/templates/flags/flag-kp-korea-north.js";import"../icon/gator/templates/flags/flag-kr-korea-south.js";import"../icon/gator/templates/flags/flag-kw-kuwait.js";import"../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../icon/gator/templates/flags/flag-la-laos.js";import"../icon/gator/templates/flags/flag-lb-lebanon.js";import"../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../icon/gator/templates/flags/flag-lr-liberia.js";import"../icon/gator/templates/flags/flag-ls-lesotho.js";import"../icon/gator/templates/flags/flag-lt-lithuania.js";import"../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../icon/gator/templates/flags/flag-lv-latvia.js";import"../icon/gator/templates/flags/flag-ly-libya.js";import"../icon/gator/templates/flags/flag-ma-morocco.js";import"../icon/gator/templates/flags/flag-mc-monaco.js";import"../icon/gator/templates/flags/flag-md-moldova.js";import"../icon/gator/templates/flags/flag-me-montenegro.js";import"../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../icon/gator/templates/flags/flag-mg-madagascar.js";import"../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../icon/gator/templates/flags/flag-ml-mali.js";import"../icon/gator/templates/flags/flag-mm-myanmar.js";import"../icon/gator/templates/flags/flag-mn-mongolia.js";import"../icon/gator/templates/flags/flag-mo-macao.js";import"../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../icon/gator/templates/flags/flag-mq-martinique.js";import"../icon/gator/templates/flags/flag-mr-mauritania.js";import"../icon/gator/templates/flags/flag-ms-montserrat.js";import"../icon/gator/templates/flags/flag-mt-malta.js";import"../icon/gator/templates/flags/flag-mu-mauritius.js";import"../icon/gator/templates/flags/flag-mv-maldives.js";import"../icon/gator/templates/flags/flag-mw-malawi.js";import"../icon/gator/templates/flags/flag-mx-mexico.js";import"../icon/gator/templates/flags/flag-my-malaysia.js";import"../icon/gator/templates/flags/flag-mz-mozambique.js";import"../icon/gator/templates/flags/flag-na-namibia.js";import"../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../icon/gator/templates/flags/flag-ne-niger.js";import"../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../icon/gator/templates/flags/flag-ng-nigeria.js";import"../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../icon/gator/templates/flags/flag-nl-netherlands.js";import"../icon/gator/templates/flags/flag-no-norway.js";import"../icon/gator/templates/flags/flag-np-nepal.js";import"../icon/gator/templates/flags/flag-nr-nauru.js";import"../icon/gator/templates/flags/flag-nu-niue.js";import"../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../icon/gator/templates/flags/flag-om-oman.js";import"../icon/gator/templates/flags/flag-pa-panama.js";import"../icon/gator/templates/flags/flag-pe-peru.js";import"../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../icon/gator/templates/flags/flag-ph-philippines.js";import"../icon/gator/templates/flags/flag-pk-pakistan.js";import"../icon/gator/templates/flags/flag-pl-poland.js";import"../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../icon/gator/templates/flags/flag-pt-portugal.js";import"../icon/gator/templates/flags/flag-pw-palau.js";import"../icon/gator/templates/flags/flag-py-paraguay.js";import"../icon/gator/templates/flags/flag-qa-qatar.js";import"../icon/gator/templates/flags/flag-re-reunion.js";import"../icon/gator/templates/flags/flag-ro-romania.js";import"../icon/gator/templates/flags/flag-rs-srbia.js";import"../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../icon/gator/templates/flags/flag-rw-rwanda.js";import"../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../icon/gator/templates/flags/flag-sc-sychelles.js";import"../icon/gator/templates/flags/flag-sd-sdan.js";import"../icon/gator/templates/flags/flag-se-seden.js";import"../icon/gator/templates/flags/flag-sg-sngapore.js";import"../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../icon/gator/templates/flags/flag-si-sovenia.js";import"../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../icon/gator/templates/flags/flag-sk-sovakia.js";import"../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../icon/gator/templates/flags/flag-sn-snegal.js";import"../icon/gator/templates/flags/flag-so-smalia.js";import"../icon/gator/templates/flags/flag-sr-sriname.js";import"../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../icon/gator/templates/flags/flag-sy-sria.js";import"../icon/gator/templates/flags/flag-sz-saziland.js";import"../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../icon/gator/templates/flags/flag-td-chad.js";import"../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../icon/gator/templates/flags/flag-tg-togo.js";import"../icon/gator/templates/flags/flag-th-thailand.js";import"../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../icon/gator/templates/flags/flag-tk-tokelau.js";import"../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../icon/gator/templates/flags/flag-tn-tunisia.js";import"../icon/gator/templates/flags/flag-to-tonga.js";import"../icon/gator/templates/flags/flag-tr-turkey.js";import"../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../icon/gator/templates/flags/flag-tw-taiwan.js";import"../icon/gator/templates/flags/flag-tz-tanzania.js";import"../icon/gator/templates/flags/flag-ua-ukraine.js";import"../icon/gator/templates/flags/flag-ug-uganda.js";import"../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../icon/gator/templates/flags/flag-us-united-states.js";import"../icon/gator/templates/flags/flag-uy-uruguay.js";import"../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../icon/gator/templates/flags/flag-ve-venezuela.js";import"../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../icon/gator/templates/flags/flag-vn-vietnam.js";import"../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../icon/gator/templates/flags/flag-ws-smoa.js";import"../icon/gator/templates/flags/flag-ye-yemen.js";import"../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../icon/gator/templates/flags/flag-za-south-africa.js";import"../icon/gator/templates/flags/flag-zm-zambia.js";import"../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../icon/gator/templates/flame.js";import"../icon/gator/templates/flash-off.js";import"../icon/gator/templates/flash-on.js";import"../icon/gator/templates/folder.js";import"../icon/gator/templates/gauge.js";import"../icon/gator/templates/grid-four.js";import"../icon/gator/templates/grid-nine.js";import"../icon/gator/templates/hammer.js";import"../icon/gator/templates/hand-pointing.js";import"../icon/gator/templates/heart.js";import"../icon/gator/templates/home-door.js";import"../icon/gator/templates/home-finance-arrow.js";import"../icon/gator/templates/home-finance.js";import"../icon/gator/templates/home-search.js";import"../icon/gator/templates/house-simple.js";import"../icon/gator/templates/house.js";import"../icon/gator/templates/inbox.js";import"../icon/gator/templates/info.js";import"../icon/gator/templates/instagram-logo.js";import"../icon/gator/templates/interest-rate.js";import"../icon/gator/templates/invoice.js";import"../icon/gator/templates/kanban.js";import"../icon/gator/templates/label.js";import"../icon/gator/templates/laptop.js";import"../icon/gator/templates/layout.js";import"../icon/gator/templates/lightbulb-filament.js";import"../icon/gator/templates/lightbulb.js";import"../icon/gator/templates/link.js";import"../icon/gator/templates/linkedin-logo.js";import"../icon/gator/templates/list-star.js";import"../icon/gator/templates/list.js";import"../icon/gator/templates/loading-spinner-gif.js";import"../icon/gator/templates/loading.js";import"../icon/gator/templates/lock.js";import"../icon/gator/templates/magic-wand.js";import"../icon/gator/templates/mail-open.js";import"../icon/gator/templates/mail.js";import"../icon/gator/templates/mailbox.js";import"../icon/gator/templates/map.js";import"../icon/gator/templates/menu-hamburger.js";import"../icon/gator/templates/microsoft-excel-logo.js";import"../icon/gator/templates/microsoft-outlook-logo.js";import"../icon/gator/templates/microsoft-powerpoint-logo.js";import"../icon/gator/templates/microsoft-teams-logo.js";import"../icon/gator/templates/microsoft-word-logo.js";import"../icon/gator/templates/minus-circle.js";import"../icon/gator/templates/minus-square.js";import"../icon/gator/templates/minus.js";import"../icon/gator/templates/mobile-phone-2.js";import"../icon/gator/templates/monitor.js";import"../icon/gator/templates/move-doc.js";import"../icon/gator/templates/move.js";import"../icon/gator/templates/music.js";import"../icon/gator/templates/number-1.js";import"../icon/gator/templates/number-2.js";import"../icon/gator/templates/number-3.js";import"../icon/gator/templates/overflow-menu.js";import"../icon/gator/templates/paper-airplane.js";import"../icon/gator/templates/paperclip.js";import"../icon/gator/templates/payments/payment-amazon-pay.js";import"../icon/gator/templates/payments/payment-amex.js";import"../icon/gator/templates/payments/payment-apple-pay.js";import"../icon/gator/templates/payments/payment-discover.js";import"../icon/gator/templates/payments/payment-google-pay.js";import"../icon/gator/templates/payments/payment-mastercard.js";import"../icon/gator/templates/payments/payment-visa.js";import"../icon/gator/templates/pen.js";import"../icon/gator/templates/pencil-paper.js";import"../icon/gator/templates/pencil.js";import"../icon/gator/templates/people-multiple.js";import"../icon/gator/templates/people-share.js";import"../icon/gator/templates/percent.js";import"../icon/gator/templates/person-add.js";import"../icon/gator/templates/person-check.js";import"../icon/gator/templates/person-lock.js";import"../icon/gator/templates/person.js";import"../icon/gator/templates/phone-alert.js";import"../icon/gator/templates/phone-mobile.js";import"../icon/gator/templates/phone.js";import"../icon/gator/templates/picture.js";import"../icon/gator/templates/pin.js";import"../icon/gator/templates/pinterest-logo.js";import"../icon/gator/templates/plus-circle.js";import"../icon/gator/templates/plus.js";import"../icon/gator/templates/printer.js";import"../icon/gator/templates/question-chat-bubble.js";import"../icon/gator/templates/question-circle.js";import"../icon/gator/templates/question-mark.js";import"../icon/gator/templates/radio-selected.js";import"../icon/gator/templates/radio.js";import"../icon/gator/templates/receipt.js";import"../icon/gator/templates/restricted.js";import"../icon/gator/templates/sandals.js";import"../icon/gator/templates/save.js";import"../icon/gator/templates/screen.js";import"../icon/gator/templates/search.js";import"../icon/gator/templates/selection.js";import"../icon/gator/templates/settings.js";import"../icon/gator/templates/share-1.js";import"../icon/gator/templates/share-2.js";import"../icon/gator/templates/shield-lock.js";import"../icon/gator/templates/shield-warning.js";import"../icon/gator/templates/sidebar-simple.js";import"../icon/gator/templates/sidebar.js";import"../icon/gator/templates/smart-home.js";import"../icon/gator/templates/sort-arrow-solid-down.js";import"../icon/gator/templates/sort-arrow-solid-left.js";import"../icon/gator/templates/sort-arrow-solid-right.js";import"../icon/gator/templates/sort-arrow-solid-up-down.js";import"../icon/gator/templates/sort-arrow-solid-up.js";import"../icon/gator/templates/sort-reverse-variant.js";import"../icon/gator/templates/sort-variant.js";import"../icon/gator/templates/sparkle-filled.js";import"../icon/gator/templates/sparkle.js";import"../icon/gator/templates/speech-bubble.js";import"../icon/gator/templates/square-split-horizontal.js";import"../icon/gator/templates/square-split-vertical.js";import"../icon/gator/templates/square.js";import"../icon/gator/templates/stack.js";import"../icon/gator/templates/stamp.js";import"../icon/gator/templates/star-four-filled.js";import"../icon/gator/templates/star-four.js";import"../icon/gator/templates/star.js";import"../icon/gator/templates/stopwatch.js";import"../icon/gator/templates/sun.js";import"../icon/gator/templates/sync.js";import"../icon/gator/templates/tab-arrows.js";import"../icon/gator/templates/table.js";import"../icon/gator/templates/target.js";import"../icon/gator/templates/text-aa.js";import"../icon/gator/templates/thumbs-down.js";import"../icon/gator/templates/thumbs-up.js";import"../icon/gator/templates/tools.js";import"../icon/gator/templates/touch-id.js";import"../icon/gator/templates/trash.js";import"../icon/gator/templates/trend-up.js";import"../icon/gator/templates/twitter-logo.js";import"../icon/gator/templates/unlink.js";import"../icon/gator/templates/unlock.js";import"../icon/gator/templates/upload.js";import"../icon/gator/templates/video.js";import"../icon/gator/templates/waffle.js";import"../icon/gator/templates/warning-circle.js";import"../icon/gator/templates/warning-diamond.js";import"../icon/gator/templates/warning-octagon.js";import"../icon/gator/templates/warning.js";import"../icon/gator/templates/wet-sign.js";import"../icon/gator/templates/wifi-off.js";import"../icon/gator/templates/wifi.js";import"../icon/gator/templates/x-logo.js";import"../icon/gator/templates/yelp-logo.js";import"../icon/gator/templates/youtube-logo.js";import"../icon/gator/templates/zillow-logo.js";import"../input/gator/help-text/help-text.gator.js";import"../input/gator/input-label/input-label.gator.js";import{handleDataTestid as x}from"../../utils/datatestid-utils.js";import{TestableLitElement as E}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{ifDefined as u}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as c}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var T=Object.defineProperty,I=Object.getOwnPropertyDescriptor,m=(t,r,s,a)=>{for(var p=a>1?void 0:a?I(r,s):r,n=t.length-1,i;n>=0;n--)(i=t[n])&&(p=(a?i(r,s,p):i(p))||p);return a&&p&&T(r,s,p),p};let o=class extends E{constructor(){super(...arguments),this.id="",this.label="",this.helpText="",this.value="",this.disabled=!1,this.hasError=!1,this.errorMessage="",this.options=[],this._randomId=f()}render(){return l`
|
|
2
2
|
<div class="gator-radio-group-container">
|
|
3
3
|
${this.label?l`<ngc-input-label id="${this.elementId}-label" data-testid=${u(this.labelDataTestid)}>${this.label}</ngc-input-label>`:null}
|
|
4
4
|
<div id="${this.elementId}-group"
|
|
@@ -25,4 +25,4 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
25
25
|
>
|
|
26
26
|
</ngc-radio>
|
|
27
27
|
`)}
|
|
28
|
-
`}get radioElements(){
|
|
28
|
+
`}get radioElements(){if(this.options.length>0)return this.shadowRoot?.querySelectorAll("ngc-radio");const t=this.shadowRoot?.querySelector("slot")?.assignedElements();return t&&t.length===1&&t[0]instanceof HTMLSlotElement?t[0].assignedElements():t}get describedBy(){const t=[];return this.errorMessage&&t.push(`${this.elementId}-error`),this.helpText&&t.push(`${this.elementId}-help`),t.join(" ")}handleRadioSelectionChange(t){const r=t;r.stopImmediatePropagation(),this.value=r.detail.value??r.detail,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))}handleRadioKeydown(t){const r=this.radioElements;if(r){const s=Array.from(r).findIndex(i=>i.selected),a=t.key===d.RIGHT||t.key===d.DOWN,p=t.key===d.LEFT||t.key===d.UP,n=t.key===d.SPACE;if(a||p||n){t.preventDefault();let i=s===-1?0:s;a?i=(i+1)%r.length:p?i=(i-1+r.length)%r.length:n&&s===-1&&(i=0);const h=r[i];h&&(h.focus(),h.click())}}}updated(){this.radioElements?.forEach((t,r)=>{t.selected=this.value===t.value,t.disabled=this.disabled,t.hasError=this.hasError,t.radioTabindex=this.getItemTabindex(r),x(t,this.dataTestid,`radio-${r}`)})}getItemTabindex(t){return t===0&&!this.value?0:-1}};o.styles=[c(b),c($),c(v)];m([e({type:String})],o.prototype,"id",2);m([e({type:String})],o.prototype,"label",2);m([e({type:String,attribute:"help-text"})],o.prototype,"helpText",2);m([e({type:String})],o.prototype,"value",2);m([e({type:Boolean})],o.prototype,"disabled",2);m([e({type:Boolean,attribute:"has-error"})],o.prototype,"hasError",2);m([e({type:String,attribute:"error-message"})],o.prototype,"errorMessage",2);m([e({type:Array})],o.prototype,"options",2);o=m([g("ngc-radio-group")],o);export{o as NgcRadioGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as g}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as o}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import c from"../../packages/web-components/src/components/selection-box-group/selection-box-group.gator.scss.js";import m from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{generateRandomId as b,getElementId as y}from"../../utils/string-utils.js";import"../selection-box/selection-box.gator.js";import"../radio-group/radio-group.gator.js";import"../checkbox-group/checkbox-group.gator.js";import{TestableLitElement as x}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{ifDefined as d}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as u}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=(e,r,s,h)=>{for(var a=h>1?void 0:h?v(r,s):r,n=e.length-1,p;n>=0;n--)(p=e[n])&&(a=(h?p(r,s,a):p(a))||a);return h&&a&&$(r,s,a),a};let t=class extends x{constructor(){super(...arguments),this.id="",this.options=[],this.disabled=!1,this.value=void 0,this.label="",this.helpText="",this.type="single-select",this.hasError=!1,this.errorMessage="",this._randomId=b()}render(){return l`${this.isSingleSelect?this.radioGroupMarkup:this.checkboxGroupMarkup}`}get elementId(){return y(this.id,this._randomId)}get radioGroupMarkup(){return l`
|
|
2
2
|
<ngc-radio-group
|
|
3
3
|
id=${this.id}
|
|
4
4
|
value=${d(this.value)}
|
|
@@ -11,7 +11,7 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
11
11
|
.dataTestid=${this.dataTestid}>
|
|
12
12
|
${this.optionsMarkup}
|
|
13
13
|
</ngc-radio-group>
|
|
14
|
-
`}get checkboxGroupMarkup(){return
|
|
14
|
+
`}get checkboxGroupMarkup(){return l`
|
|
15
15
|
<ngc-checkbox-group
|
|
16
16
|
id=${this.id}
|
|
17
17
|
value=${d(this.value)}
|
|
@@ -24,14 +24,14 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
24
24
|
.dataTestid=${this.dataTestid}>
|
|
25
25
|
${this.optionsMarkup}
|
|
26
26
|
</ngc-checkbox-group>
|
|
27
|
-
`}get optionsMarkup(){return
|
|
27
|
+
`}get optionsMarkup(){return l`${this.options.length>0?this.generatedRadiosFromOptionsProperty:l`<slot></slot>`}`}get selectionBoxType(){return this.isSingleSelect?"radio":"checkbox"}get isSingleSelect(){return this.type==="single-select"}get generatedRadiosFromOptionsProperty(){return this.options.map((e,r)=>l`
|
|
28
28
|
<ngc-selection-box
|
|
29
29
|
title-text=${e.title}
|
|
30
30
|
subtitle-text=${e.subtitle}
|
|
31
31
|
value=${e.value}
|
|
32
32
|
?selected=${this.isItemSelected(e.value)}
|
|
33
33
|
?disabled=${this.disabled}
|
|
34
|
-
box-tabindex=${this.getItemTabindex(
|
|
34
|
+
box-tabindex=${this.getItemTabindex(r)}
|
|
35
35
|
?has-error=${this.hasError}
|
|
36
36
|
type=${this.selectionBoxType}>
|
|
37
|
-
</ngc-selection-box>`)}get optionElements(){
|
|
37
|
+
</ngc-selection-box>`)}get optionElements(){return this.options.length>0?this.shadowRoot?.querySelectorAll("ngc-selection-box"):this.shadowRoot?.querySelector("slot")?.assignedElements()}isItemSelected(e){return this.value?this.isSingleSelect?this.value===e:this.value?.split(";").includes(e):!1}handleChange(e){const r=e;r.stopImmediatePropagation(),this.value=r.detail,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))}updated(){this.optionElements?.forEach((e,r)=>{const s=e;s.boxTabindex=this.getItemTabindex(r),s.type=this.selectionBoxType,s.disabled=this.disabled,s.selected=this.isItemSelected(s.getAttribute("value")??""),s.hasError=this.hasError})}getItemTabindex(e){return this.isSingleSelect?e===0&&!this.value?0:-1:0}};t.styles=[u(c),u(m)];i([o({type:String})],t.prototype,"id",2);i([o({type:Array})],t.prototype,"options",2);i([o({type:Boolean})],t.prototype,"disabled",2);i([o({type:String})],t.prototype,"value",2);i([o({type:String})],t.prototype,"label",2);i([o({type:String,attribute:"help-text"})],t.prototype,"helpText",2);i([o({type:String})],t.prototype,"type",2);i([o({type:Boolean,attribute:"has-error"})],t.prototype,"hasError",2);i([o({type:String,attribute:"error-message"})],t.prototype,"errorMessage",2);t=i([g("ngc-selection-box-group")],t);export{t as NgcSelectionBoxGroup};
|