@ncino/web-components 5.0.0-preview.1 → 5.0.0-preview.10
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/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +15 -5
- 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/table/gator/table-bulk-controls/table-bulk-controls.gator.js +16 -0
- package/dist/components/table/gator/table.gator.js +55 -36
- 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/@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +1 -0
- 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 +12 -12
- 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/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +1 -1
- 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/accordion/gator/base/accordion.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/chip/gator/chip.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/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js +1 -0
- 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/accordion/gator/group/accordion-group.gator.d.ts +5 -0
- package/dist/types/components/chip/chip.d.ts +10 -0
- package/dist/types/components/chip/gator/chip.gator.d.ts +1 -0
- package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
- package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +29 -0
- package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.test.d.ts +0 -0
- package/dist/types/components/table/gator/table.gator.d.ts +9 -0
- 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 +286 -113
- package/dist/_virtual/sourcemap-codec.umd.js +0 -1
- package/dist/_virtual/sourcemap-codec.umd2.js +0 -1
- 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/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.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 h}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 u from"../../../packages/web-components/src/components/selector/gator/selector.gator.scss.js";import m from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{customElement as y}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as
|
|
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"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import u from"../../../packages/web-components/src/components/selector/gator/selector.gator.scss.js";import m from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{customElement as y}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as b}from"../../../utils/components/testable-lit-element/testable-lit-element.js";import{KEY_CONSTANTS as p}from"../../../consts/key-constants.js";import{unsafeCSS as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,r=(e,i,a,o)=>{for(var s=o>1?void 0:o?g(i,a):i,n=e.length-1,d;n>=0;n--)(d=e[n])&&(s=(o?d(i,a,s):d(s))||s);return o&&s&&v(i,a,s),s};let t=class extends b{constructor(){super(...arguments),this.type=null,this.selected=!1,this.disabled=!1,this.current=!1,this.tabindex=0,this.role=null}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("click",this.handleClick)}updated(e){e.has("selected")&&(this.ariaSelected=this.selected.toString()),e.has("current")&&(this.ariaCurrent=this.current.toString()),e.has("disabled")&&(this.ariaDisabled=this.disabled.toString())}render(){return h`
|
|
2
2
|
<div class="gator-selector gator-selector_${this.type} ${this.selectedClass} ${this.disabledClass} ${this.currentClass}">
|
|
3
3
|
<div class="gator-selector-spacer-start"></div>
|
|
4
4
|
<div class="gator-selector-label">
|
|
@@ -6,4 +6,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
|
|
|
6
6
|
</div>
|
|
7
7
|
<div class="gator-selector-spacer-end"></div>
|
|
8
8
|
</div>
|
|
9
|
-
`}get selectedClass(){return this.selected?"gator-selector_selected":""}get disabledClass(){return this.disabled?"gator-selector_disabled":""}get currentClass(){return this.current?"gator-selector_current":""}handleKeydown(e){if(e.key===p.ENTER||e.key===p.SPACE){e.preventDefault(),this.handleClick(e);return}}handleClick(e){
|
|
9
|
+
`}get selectedClass(){return this.selected?"gator-selector_selected":""}get disabledClass(){return this.disabled?"gator-selector_disabled":""}get currentClass(){return this.current?"gator-selector_current":""}handleKeydown(e){if(e.key===p.ENTER||e.key===p.SPACE){e.preventDefault(),this.handleClick(e);return}}handleClick(e){e.preventDefault(),e.stopPropagation(),!this.disabled&&this.dispatchEvent(new CustomEvent("select",{bubbles:!0,detail:{value:this.textContent?.trim(),selected:this.selected}}))}};t.styles=[c(u),c(m),c(f)];r([l({type:String})],t.prototype,"type",2);r([l({type:Boolean})],t.prototype,"selected",2);r([l({type:Boolean})],t.prototype,"disabled",2);r([l({type:Boolean})],t.prototype,"current",2);r([l({type:Number})],t.prototype,"tabindex",2);r([l({type:String})],t.prototype,"role",2);t=r([y("ngc-selector")],t);export{t as NgcSelector};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcSwitch as
|
|
1
|
+
import{NjcSwitch as c}from"../switch.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as r}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{customElement as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import u from"../../../packages/web-components/src/components/switch/switch.tokens.scss.js";import p from"../../../packages/web-components/src/components/switch/gator/switch.gator.scss.js";import{unsafeCSS as n}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var w=Object.getOwnPropertyDescriptor,m=(t,o,h,a)=>{for(var e=a>1?void 0:a?w(o,h):o,i=t.length-1,l;i>=0;i--)(l=t[i])&&(e=l(e)||e);return e};let s=class extends c{constructor(){super(),this.addEventListener("click",this.handleClick)}updated(){const t=this.shadowRoot?.querySelector(".gator-switch");t?.classList.toggle("gator-switch-on",this.value),t?.classList.toggle("gator-switch-disabled",this.disabled)}render(){return r`
|
|
2
2
|
<div class="gator-switch-container">
|
|
3
3
|
<div id="${this._getContainerId()}" class="gator-switch">
|
|
4
4
|
<input id="${this._getInputId()}" role="switch" type="checkbox" .checked="${this.value}" .disabled="${this.disabled}" @keydown="${this.handleInputKeydown}" @click=${this.handleInputClick} />
|
|
@@ -6,4 +6,4 @@ import{NjcSwitch as d}from"../switch.js";import"../../../node_modules/.pnpm/@lit
|
|
|
6
6
|
</div>
|
|
7
7
|
${this.label?this._getLabelMarkup():""}
|
|
8
8
|
</div>
|
|
9
|
-
`}handleInputKeydown(t){t.key===" "&&(t.preventDefault(),this._toggleSwitch())}handleInputClick(t){t.stopImmediatePropagation()}handleClick(){this._toggleSwitch()}_toggleSwitch(){
|
|
9
|
+
`}handleInputKeydown(t){t.key===" "&&(t.preventDefault(),this._toggleSwitch())}handleInputClick(t){t.stopImmediatePropagation()}handleClick(){this._toggleSwitch()}_toggleSwitch(){if(!this.disabled){this.value=!this.value;const t=this.shadowRoot?.querySelector(".gator-switch");t?.classList.toggle("gator-switch-toggle-on",this.value),t?.classList.toggle("gator-switch-toggle-off",!this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0}))}}_getLabelMarkup(){return r`<label for="${this._getInputId()}">${this.label}</label>`}_getInputId(){return`${this.getElementId()}-input`}_getContainerId(){return`${this.getElementId()}-container`}};s.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0};s.styles=[n(u),n(p)];s=m([g("ngc-switch")],s);export{s as NgcSwitch};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as m,html as b}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 u}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{NgcComponent as f}from"../../../../utils/components/ngc-component.js";import d from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{msg as p}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"../../../checkbox/checkbox.gator.js";import{unsafeCSS as h}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Reflect.get,r=(l,o,s,a)=>{for(var t=a>1?void 0:a?g(o,s):o,i=l.length-1,n;i>=0;i--)(n=l[i])&&(t=(a?n(o,s,t):n(t))||t);return a&&t&&v(o,s,t),t},S=(l,o,s)=>_(y(l),s,o);let e=class extends f{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0,this.allSelected=!1}handleSelectAllChange(l){this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selected:l.detail.selected}}))}render(){return this.visible?b`
|
|
2
|
+
<div class="gator-table-bulk-controls" aria-live="polite">
|
|
3
|
+
<div class="gator-table-bulk-controls-selection">
|
|
4
|
+
<ngc-checkbox
|
|
5
|
+
title-text="${p("Select All")}"
|
|
6
|
+
hide-label
|
|
7
|
+
?selected="${this.allSelected}"
|
|
8
|
+
@change="${this.handleSelectAllChange}"
|
|
9
|
+
></ngc-checkbox>
|
|
10
|
+
<span class="gator-table-bulk-controls-count">${this.selectedRows} ${p("selected")}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="gator-table-bulk-controls-actions">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
`:m}focus(){}};e.styles=[...S(e,e,"styles"),h(d)];r([c({type:Boolean,reflect:!0})],e.prototype,"visible",2);r([c({type:Number})],e.prototype,"selectedRows",2);r([c({type:Number})],e.prototype,"totalRows",2);r([c({type:Boolean,reflect:!0})],e.prototype,"allSelected",2);e=r([u("ngc-table-bulk-controls")],e);export{e as NgcTableBulkControls};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as w,html as o}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 $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import T from"../../../packages/web-components/src/components/table/table.tokens.scss.js";import R from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import y from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import k from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{NjcTable as C}from"../table.js";import"../../checkbox/checkbox.gator.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import{unsafeHTML as P}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js";import{msg as b}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{KEY_CONSTANTS as S}from"../../../consts/key-constants.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,L=Object.getOwnPropertyDescriptor,c=(e,t,l,s)=>{for(var a=s>1?void 0:s?L(t,l):t,r=e.length-1,i;r>=0;r--)(i=e[r])&&(a=(s?i(t,l,a):i(a))||a);return s&&a&&v(t,l,a),a};let d=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.selectedRows=[],this._currentPage=1,this.justSelectedRow=null,this.showJumpLink=!1,this.handleKeyDown=e=>{e.key===S.TAB&&(e.shiftKey&&(this.showJumpLink=!0,this.requestUpdate()),document.removeEventListener("keydown",this.handleKeyDown,!0))}}updated(e){super.updated(e),e.has("data")&&(this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader))}render(){return this.columns?this.renderWrapper(this.getTableHeader(this.columns),this.getTableBody(this.columns,this.displayedRowData)):null}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return o`
|
|
2
|
+
<ngc-table-bulk-controls
|
|
3
|
+
?visible="${this.showBulkControls}"
|
|
4
|
+
.selectedRows="${this.selectedRows.length}"
|
|
5
|
+
.totalRows="${this.data.length}"
|
|
6
|
+
?allSelected="${this.selectedRows.length===this.data.length}"
|
|
7
|
+
@selectall="${this.handleSelectAll}"
|
|
8
|
+
>
|
|
9
|
+
<slot name="bulk-controls"></slot>
|
|
10
|
+
</ngc-table-bulk-controls>
|
|
2
11
|
<table class="gator-table ${this.tableElevatedClass}" role="grid"
|
|
3
12
|
aria-labelledby="${this.tableAriaLabelledBy}">
|
|
4
|
-
${
|
|
13
|
+
${e} ${t}
|
|
5
14
|
</table>
|
|
6
|
-
${this.includePagination?
|
|
15
|
+
${this.includePagination?o`
|
|
7
16
|
<ngc-table-pagination
|
|
8
17
|
items-per-page="${this.itemsPerPage}"
|
|
9
18
|
total-items="${this.data.length}"
|
|
@@ -11,31 +20,31 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
|
|
|
11
20
|
@pagechanged="${this.handlePageChanged}"
|
|
12
21
|
@itemsperpagechanged="${this.handleItemsPerPageChanged}"
|
|
13
22
|
></ngc-table-pagination>
|
|
14
|
-
`:
|
|
15
|
-
`}handlePageChanged(
|
|
23
|
+
`:w}
|
|
24
|
+
`}handlePageChanged(e){this._currentPage=e.detail.page}handleItemsPerPageChanged(e){this.itemsPerPage=e.detail.itemsPerPage}handleJumpLinkClick(e){const t=this.shadowRoot?.querySelector("ngc-table-bulk-controls");t&&t.focus()}handleJumpLinkBlur(){this.showJumpLink=!1,this.requestUpdate()}handleRowSelectCheckboxBlur(){setTimeout(()=>{const e=this.shadowRoot?.activeElement;(!e||!e.classList.contains("gator-table-jump-link"))&&(this.showJumpLink=!1,document.removeEventListener("keydown",this.handleKeyDown,!0),this.requestUpdate())},0)}getTableHeader(e){const t=e.map(this.getTableHeaderColumn);return this.selectable&&t.unshift(o`
|
|
16
25
|
<th id="col-select" scope="col">
|
|
17
26
|
<ngc-checkbox
|
|
18
|
-
title-text="${
|
|
27
|
+
title-text="${b("Select All")}"
|
|
19
28
|
hide-label
|
|
20
29
|
?selected="${this.selectedRows.length===this.data.length}"
|
|
21
30
|
@change="${l=>this.handleSelectAll(l)}"
|
|
22
31
|
></ngc-checkbox>
|
|
23
|
-
</th>`),
|
|
32
|
+
</th>`),o`
|
|
24
33
|
<thead role="rowgroup">
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
<tr role="row">
|
|
35
|
+
${t}
|
|
36
|
+
</tr>
|
|
28
37
|
</thead>
|
|
29
|
-
`}handleSelectAll(
|
|
30
|
-
<th id="${
|
|
31
|
-
${l.map(a=>this.getCategoryBody(a,
|
|
32
|
-
`}getCategoryBody(t
|
|
33
|
-
<tbody role="rowgroup" ${s?
|
|
38
|
+
`}handleSelectAll(e){const t=e.detail.selected;t?(this.data.forEach(l=>{l.isTableHeader||(l.selected=!0)}),this.selectedRows=this.data.filter(l=>!l.isTableHeader)):(this.data.forEach(l=>{l.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selectedRows:this.selectedRows,selected:t}})),this.requestUpdate()}getTableHeaderColumn(e){const t=`col-${e.field}`;return o`
|
|
39
|
+
<th id="${t}" scope="col">${e.name}</th>`}getTableBody(e,t){const l=[];let s={rows:[]};return t.forEach(a=>{a.isTableHeader?((s.rows.length>0||s.header)&&l.push(s),s={header:a,rows:[]}):s.rows.push(a)}),(s.rows.length>0||s.header)&&l.push(s),l.length===0&&t.length>0&&l.push({rows:t}),o`
|
|
40
|
+
${l.map(a=>this.getCategoryBody(a,e))}
|
|
41
|
+
`}getCategoryBody(e,t){let l="",s="",a="";e.header&&(l=e.header.headerText||e.header.categoryText||e.header.name||"Category",a=`category-${l.toLowerCase().replace(/\s+/g,"-")}`,s=a);const r=e.header?this.getTableHeaderRow(t,e.header):"",i=e.rows.map(h=>this.getTableBodyRow(h,t,a)),m=t.some(h=>h.includedInTotals===!0),n=e.rows.length>0&&m?this.getTotalRow(e.rows,t,a):"";return o`
|
|
42
|
+
<tbody role="rowgroup" ${s?o`aria-labelledby="${s}"`:""}>
|
|
43
|
+
${r}
|
|
34
44
|
${i}
|
|
35
|
-
${
|
|
36
|
-
${o}
|
|
45
|
+
${n}
|
|
37
46
|
</tbody>
|
|
38
|
-
`}getTotalRow(t,
|
|
47
|
+
`}getTotalRow(e,t,l){const s={};t.forEach(n=>{s[n.field]=0,n.includedInTotals&&e.forEach(h=>{const u=this.parseNumericValue(h[n.field]);u!==null&&(s[n.field]+=u)})});const a=l?`${l}-total`:"total-row",r=o`
|
|
39
48
|
<th
|
|
40
49
|
id="${a}"
|
|
41
50
|
scope="row"
|
|
@@ -43,45 +52,55 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
|
|
|
43
52
|
>
|
|
44
53
|
Total
|
|
45
54
|
</th>
|
|
46
|
-
`,
|
|
55
|
+
`,i=t.map(n=>{const h=`col-${n.field}`,u=[a,l,h].filter(Boolean).join(" ");return n.includedInTotals?o`
|
|
47
56
|
<td
|
|
48
57
|
role="gridcell"
|
|
49
|
-
headers="${
|
|
58
|
+
headers="${u}"
|
|
50
59
|
class="gator-table-total-cell"
|
|
51
60
|
>
|
|
52
|
-
${this.formatTotal(s[
|
|
61
|
+
${this.formatTotal(s[n.field],n)}
|
|
53
62
|
</td>
|
|
54
|
-
`:
|
|
63
|
+
`:o`
|
|
55
64
|
<td
|
|
56
65
|
role="gridcell"
|
|
57
66
|
class="gator-table-total-cell"
|
|
58
67
|
>
|
|
59
68
|
|
|
60
69
|
</td>
|
|
61
|
-
`}),
|
|
70
|
+
`}),m=this.selectable?[r,...i]:[r,...i.slice(1)];return o`
|
|
62
71
|
<tr role="row" class="gator-table-total-row">
|
|
63
|
-
${
|
|
72
|
+
${m}
|
|
64
73
|
</tr>
|
|
65
|
-
`}parseNumericValue(
|
|
74
|
+
`}parseNumericValue(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.replace(/[^0-9.-]/g,""),l=parseFloat(t);if(!isNaN(l))return l}return null}formatTotal(e,t){const l=typeof t.decimalPlaces=="number"?t.decimalPlaces:2,s=e.toFixed(l);return typeof t.cellRenderer=="function"?t.cellRenderer({[t.field]:s}):s}getTableBodyRow(e,t,l){const s=t.map(a=>this.getTableBodyCell(e,a,l));if(this.selectable){const a=l?`col-select ${l}`:"col-select",r=this.showJumpLink&&this.justSelectedRow===e;s.unshift(o`
|
|
66
75
|
<td role="gridcell" class="gator-table-checkbox-column" headers="${a}">
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
${r?o`
|
|
77
|
+
<ngc-button
|
|
78
|
+
variant="base"
|
|
79
|
+
class="gator-table-jump-link"
|
|
80
|
+
@click="${this.handleJumpLinkClick}"
|
|
81
|
+
@blur="${this.handleJumpLinkBlur}"
|
|
82
|
+
>
|
|
83
|
+
${b("Jump to bulk actions")}
|
|
84
|
+
</ngc-button>`:o`<ngc-checkbox
|
|
85
|
+
label="test"
|
|
86
|
+
?selected="${e.selected}"
|
|
87
|
+
@change="${i=>this.handleTableBodyRowSelected(i,e)}"
|
|
88
|
+
id="checkbox-${e.id||Math.random().toString(36).substring(2,11)}"
|
|
89
|
+
@blur="${this.handleRowSelectCheckboxBlur}"
|
|
90
|
+
></ngc-checkbox>`}
|
|
91
|
+
</td>`),r&&setTimeout(()=>{this.shadowRoot?.querySelector(".gator-table-jump-link")?.focus()},0)}return o`
|
|
92
|
+
<tr role="row" class="${this.selectable&&e.selected?"gator-table-row-selected":""}">
|
|
74
93
|
${s}
|
|
75
94
|
</tr>
|
|
76
|
-
`}getTableHeaderRow(t
|
|
95
|
+
`}getTableHeaderRow(e,t){const l=this.selectable?e.length+1:e.length,s=t.headerText||t.categoryText||t.name||"Category";return o`
|
|
77
96
|
<tr role="row" class="gator-table-category-header">
|
|
78
97
|
<th role="rowheader" colspan="${l}" scope="rowgroup" class="gator-table-header-cell"
|
|
79
98
|
id="${`category-${s.toLowerCase().replace(/\s+/g,"-")}`}">
|
|
80
99
|
${s}
|
|
81
100
|
</th>
|
|
82
101
|
</tr>
|
|
83
|
-
`}handleTableBodyRowSelected(t
|
|
102
|
+
`}handleTableBodyRowSelected(e,t){e.detail.selected?(t.selected=!0,this.selectedRows.push(t),this.justSelectedRow=t,this.showJumpLink=!1,document.addEventListener("keydown",this.handleKeyDown,!0)):(t.selected=!1,this.selectedRows=this.selectedRows.filter(l=>l!==t),this.justSelectedRow===t&&(this.justSelectedRow=null,this.showJumpLink=!1)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,detail:{data:t,selectedRows:this.selectedRows}})),this.requestUpdate()}get displayedRowData(){if(!this.includePagination)return this.data;const e=(this._currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.data.slice(e,t)}getTableBodyCell(e,t,l){const s=`col-${t.field}`,a=l?`${s} ${l}`:s;return o`
|
|
84
103
|
<td role="gridcell" headers="${a}">
|
|
85
|
-
${
|
|
104
|
+
${P(this.getValueForCell(e,t))}
|
|
86
105
|
</td>
|
|
87
|
-
`}getValueForCell(t
|
|
106
|
+
`}getValueForCell(e,t){return typeof t.cellRenderer=="function"?t.cellRenderer(e):e[t.field]}};d.styles=[p(k),p(y),p(T),p(R)];c([f({type:Boolean})],d.prototype,"elevated",2);c([f({type:Boolean,attribute:"include-pagination"})],d.prototype,"includePagination",2);c([g()],d.prototype,"selectedRows",2);c([g()],d.prototype,"_currentPage",2);c([g()],d.prototype,"justSelectedRow",2);c([g()],d.prototype,"showJumpLink",2);d=c([$("ngc-table")],d);export{d as NgcTable};
|
|
@@ -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 c}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 p}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import"../tab/tab.gator.js";import{KEY_CONSTANTS as b}from"../../../../consts/key-constants.js";import{createRef as f,ref as u}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{TestableLitElement as m}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import T from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.scss.js";import g from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js";import y from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import $ from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{ifDefined as I}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(t,e,
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as c}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 p}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import"../tab/tab.gator.js";import{KEY_CONSTANTS as b}from"../../../../consts/key-constants.js";import{createRef as f,ref as u}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{TestableLitElement as m}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import T from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.scss.js";import g from"../../../../packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js";import y from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import $ from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{ifDefined as I}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(t,e,i,o)=>{for(var a=o>1?void 0:o?S(e,i):e,n=t.length-1,h;n>=0;n--)(h=t[n])&&(a=(o?h(e,i,a):h(a))||a);return o&&a&&x(e,i,a),a};let s=class extends m{constructor(){super(...arguments),this.tabsetAriaLabelledByElements=[],this.tabsetAriaLabel=void 0,this.size="medium",this.activeTabIndex=0,this._contentRef=f(),this._tablistRef=f()}updated(t){super.updated(t),t.has("tabsetAriaLabelledByElements")&&(this._tablistRef.value.ariaLabelledByElements=this.tabsetAriaLabelledByElements)}render(){return this.tabs||(this.tabs=Array.from(this.querySelectorAll("ngc-tab"))),c`
|
|
2
2
|
<div class="gator-tabset">
|
|
3
3
|
<div ${u(this._tablistRef)} role="tablist" class="gator-tabset-header" aria-label=${I(this.tabsetAriaLabel)}>
|
|
4
4
|
${this.tabs.map((t,e)=>c`
|
|
@@ -6,7 +6,7 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
6
6
|
id="gator-tab-${e+1}"
|
|
7
7
|
role="tab"
|
|
8
8
|
tabindex="${this.getButtonTabIndex(e)}"
|
|
9
|
-
@keydown="${
|
|
9
|
+
@keydown="${i=>this.handleTabKeydown(i)}"
|
|
10
10
|
@click="${()=>this.activeTabIndex=e}"
|
|
11
11
|
aria-controls="gator-tabpanel-${e+1}"
|
|
12
12
|
aria-selected="${e===this.activeTabIndex}"
|
|
@@ -32,4 +32,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
32
32
|
${this.tabs[this.activeTabIndex]}
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
|
-
`}get tabSizeClass(){return this.size?`gator-tab-button-${this.size}`:""}get tabContainerSizeClass(){return this.size?`gator-tab-container-${this.size}`:""}get tabSpacerClass(){return this.size!="large"?"":"gator-tabset-spacer"}getButtonTabIndex(t){return t===this.activeTabIndex?"0":"-1"}handleTabKeydown(t){
|
|
35
|
+
`}get tabSizeClass(){return this.size?`gator-tab-button-${this.size}`:""}get tabContainerSizeClass(){return this.size?`gator-tab-container-${this.size}`:""}get tabSpacerClass(){return this.size!="large"?"":"gator-tabset-spacer"}getButtonTabIndex(t){return t===this.activeTabIndex?"0":"-1"}handleTabKeydown(t){if(!this.tabs)return;let e=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");if(t.key===b.RIGHT){if(this.activeTabIndex===this.tabs.length-1){this.focusFirstTab(),t.preventDefault();return}this.activeTabIndex++,e[this.activeTabIndex].focus()}else if(t.key===b.LEFT){if(this.activeTabIndex===0){this.focusLastTab(),t.preventDefault();return}this.activeTabIndex--,e[this.activeTabIndex].focus(),t.preventDefault()}else t.key===b.HOME?(this.focusFirstTab(),t.preventDefault()):t.key===b.END&&(this.focusLastTab(),t.preventDefault())}focusFirstTab(){let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.activeTabIndex=0,t[this.activeTabIndex].focus()}focusLastTab(){if(!this.tabs)return;let t=this.shadowRoot?.querySelectorAll(".gator-tabset-header [role=tab]");this.activeTabIndex=this.tabs.length-1,t[this.activeTabIndex].focus()}};s.styles=[l(T),l(g),l(y),l($)];r([d({type:String,attribute:"tabset-aria-labelled-by-elements"})],s.prototype,"tabsetAriaLabelledByElements",2);r([d({type:String,attribute:"tabset-aria-label"})],s.prototype,"tabsetAriaLabel",2);r([d({type:String})],s.prototype,"size",2);r([v()],s.prototype,"activeTabIndex",2);s=r([p("ngc-tabset")],s);export{s as NgcTabset};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import{NjcTextDetail as
|
|
2
|
-
<div class="gator-text-detail ${this.verticalClass}">
|
|
3
|
-
${this.
|
|
1
|
+
import{NjcTextDetail as m}from"../text-detail.js";import"../../chip/gator/chip.gator.js";import"../../card/gator/base/card.gator.js";import"../../card/gator/header/card-header.gator.js";import"../../card/gator/content/card-content.gator.js";import"../../card/gator/footer/card-footer.gator.js";import"../../skeleton-loader/gator/skeleton-loader.gator.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as e,nothing as u}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 h from"../../../packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js";import g from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import p from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{customElement as x}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{ifDefined as c}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{unsafeCSS as o}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,f=(t,s,n,l)=>{for(var i=l>1?void 0:l?v(s,n):s,a=t.length-1,d;a>=0;a--)(d=t[a])&&(i=d(i)||i);return i};let r=class extends m{updated(t){super.updated(t),t.has("skeleton")&&this.assignSlottedElementsSkeletonState()}render(){return e`
|
|
2
|
+
<div class="gator-text-detail ${this.verticalClass} ${this.skeleton?" gator-text-detail-loading":""}">
|
|
3
|
+
${this.textDetailMarkup}
|
|
4
4
|
</div>
|
|
5
|
-
`}get textDetailMarkup(){return
|
|
5
|
+
`}get textDetailMarkup(){return e`
|
|
6
6
|
<slot name="prepend"></slot>
|
|
7
7
|
|
|
8
8
|
<div class="gator-text-detail-content gator-text-detail_${this.size} ${this.invertTitleClass}">
|
|
9
9
|
<div class="gator-text-detail-title gator-text-detail-title_${this.size}"
|
|
10
|
-
data-testid=${
|
|
10
|
+
data-testid=${c(this.dataTestid)}-title
|
|
11
11
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
${this.skeleton?e`<ngc-skeleton-loader full-width height="24" radius="100"></ngc-skeleton-loader>`:e`
|
|
13
|
+
<slot name="content">
|
|
14
|
+
${this.title}
|
|
15
|
+
</slot>
|
|
16
|
+
`}
|
|
15
17
|
</div>
|
|
16
18
|
${this.textDetailSubtitleMarkup}
|
|
17
19
|
</div>
|
|
18
20
|
|
|
19
21
|
<slot name="append"></slot>
|
|
20
|
-
`}get verticalClass(){return this.vertical?"gator-text-detail_vertical":""}get invertTitleClass(){return this.invertTitle?"gator-text-detail-content_invert-title":""}get
|
|
21
|
-
<div class="gator-text-detail-loading ${this.invertTitleClass}">
|
|
22
|
-
<ngc-skeleton-loader full-width height="24" radius="100"></ngc-skeleton-loader>
|
|
23
|
-
<ngc-skeleton-loader width="62" height="18" radius="100"></ngc-skeleton-loader>
|
|
24
|
-
</div>
|
|
25
|
-
`}get textDetailSubtitleIconMarkup(){return this.subtitleIcon?t`<ngc-icon class="gator-text-detail-subtitle-icon" name="${this.subtitleIcon}"></ngc-icon>`:null}get textDetailSubtitleMarkup(){return this.subtitle?t`
|
|
22
|
+
`}get verticalClass(){return this.vertical?"gator-text-detail_vertical":""}get invertTitleClass(){return this.invertTitle?"gator-text-detail-content_invert-title":""}get textDetailSubtitleIconMarkup(){return this.subtitleIcon?e`<ngc-icon class="gator-text-detail-subtitle-icon" name="${this.subtitleIcon}"></ngc-icon>`:null}get textDetailSubtitleMarkup(){return this.subtitle?e`
|
|
26
23
|
<div class="gator-text-detail-subtitle gator-text-detail-subtitle_${this.size}"
|
|
27
|
-
data-testid=${
|
|
24
|
+
data-testid=${c(this.dataTestid)}-subtitle
|
|
28
25
|
>
|
|
29
|
-
${this.
|
|
30
|
-
|
|
26
|
+
${this.skeleton?e`<ngc-skeleton-loader width="62" height="18" radius="100"></ngc-skeleton-loader>`:e`
|
|
27
|
+
${this.subtitle}
|
|
28
|
+
${this.textDetailSubtitleIconMarkup}
|
|
29
|
+
`}
|
|
31
30
|
</div>
|
|
32
|
-
`:
|
|
31
|
+
`:u}assignSlottedElementsSkeletonState(){const t=this.shadowRoot?.querySelectorAll("slot");t&&t.forEach(s=>{s.assignedElements().forEach(i=>{i.tagName.toLowerCase().includes("ngc-")&&(i.skeleton=this.skeleton)})})}};r.styles=[o(h),o(g),o(p)];r=f([x("ngc-text-detail")],r);export{r as NgcTextDetail};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcComponent as d}from"../../../utils/components/ngc-component.js";import f from"../../../packages/web-components/src/components/time-picker/gator/time-picker.gator.scss.js";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 g}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{msg as
|
|
2
|
-
<div class="gator-time-picker" role="dialog" aria-modal="true" aria-label="${
|
|
1
|
+
import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcComponent as d}from"../../../utils/components/ngc-component.js";import f from"../../../packages/web-components/src/components/time-picker/gator/time-picker.gator.scss.js";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 g}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{msg as s}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{zeroPad as v}from"../../../utils/string-utils.js";import{KEY_CONSTANTS as r}from"../../../consts/key-constants.js";import"../../selector/gator/selector.gator.js";import"../../icon-button/gator/icon-button.gator.js";import"../../button/gator/button.gator.js";import{unsafeCSS as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,O=Reflect.get,l=(e,t,i,n)=>{for(var o=n>1?void 0:n?k(t,i):t,a=e.length-1,u;a>=0;a--)(u=e[a])&&(o=(n?u(t,i,o):u(o))||o);return n&&o&&y(t,i,o),o},$=(e,t,i)=>O(w(e),i,t);let c=class extends d{constructor(){super(...arguments),this.hour=null,this.minute=null,this.timeOfDay=null}async updated(e){super.updated(e),(e.has("hour")||e.has("minute"))&&(!this.hour&&!this.minute&&this.setToCurrentTime(),this.scrollToOptions())}firstUpdated(e){!this.hour&&!this.minute&&this.setToCurrentTime(),this.scrollToOptions()}setToCurrentTime(){const e=new Date;this.hour=e.getHours()%12||12,this.minute=e.getMinutes()}render(){return h`
|
|
2
|
+
<div class="gator-time-picker" role="dialog" aria-modal="true" aria-label="${s("Select Time")}" @keydown="${this.handleTopLevelKeyUp}">
|
|
3
3
|
<div class="gator-time-picker-selection">
|
|
4
4
|
<div class="gator-time-picker-hours">
|
|
5
5
|
<div class="gator-time-picker-header">
|
|
@@ -8,19 +8,19 @@ import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element
|
|
|
8
8
|
<div class="gator-time-picker-chevron">
|
|
9
9
|
<ngc-icon-button
|
|
10
10
|
@click="${this.selectPreviousHour}"
|
|
11
|
-
aria-label="${
|
|
11
|
+
aria-label="${s("Previous Hour")}"
|
|
12
12
|
size="medium"
|
|
13
13
|
icon-name="chevron-up"
|
|
14
14
|
tabindex="-1"
|
|
15
15
|
></ngc-icon-button>
|
|
16
16
|
</div>
|
|
17
|
-
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${
|
|
17
|
+
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${s("Hour Options")}">
|
|
18
18
|
${this.hourOptions}
|
|
19
19
|
</div>
|
|
20
20
|
<div class="gator-time-picker-chevron">
|
|
21
21
|
<ngc-icon-button
|
|
22
22
|
@click="${this.selectNextHour}"
|
|
23
|
-
aria-label="${
|
|
23
|
+
aria-label="${s("Next Hour")}"
|
|
24
24
|
size="medium"
|
|
25
25
|
icon-name="chevron-down"
|
|
26
26
|
tabindex="-1"
|
|
@@ -34,19 +34,19 @@ import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element
|
|
|
34
34
|
<div class="gator-time-picker-chevron">
|
|
35
35
|
<ngc-icon-button
|
|
36
36
|
@click="${this.selectPreviousMinute}"
|
|
37
|
-
aria-label="${
|
|
37
|
+
aria-label="${s("Previous Minute")}"
|
|
38
38
|
size="medium"
|
|
39
39
|
icon-name="chevron-up"
|
|
40
40
|
tabindex="-1"
|
|
41
41
|
></ngc-icon-button>
|
|
42
42
|
</div>
|
|
43
|
-
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${
|
|
43
|
+
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${s("Minute Options")}">
|
|
44
44
|
${this.minuteOptions}
|
|
45
45
|
</div>
|
|
46
46
|
<div class="gator-time-picker-chevron">
|
|
47
47
|
<ngc-icon-button
|
|
48
48
|
@click="${this.selectNextMinute}"
|
|
49
|
-
aria-label="${
|
|
49
|
+
aria-label="${s("Next Minute")}"
|
|
50
50
|
size="medium"
|
|
51
51
|
icon-name="chevron-down"
|
|
52
52
|
tabindex="-1"
|
|
@@ -55,7 +55,7 @@ import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element
|
|
|
55
55
|
</div>
|
|
56
56
|
<div class="gator-time-picker-time-of-day">
|
|
57
57
|
<div class="gator-time-picker-header"></div>
|
|
58
|
-
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${
|
|
58
|
+
<div class="gator-time-picker-options" tabindex="-1" role="listbox" aria-label="${s("Time of Day Options")}">
|
|
59
59
|
<ngc-selector
|
|
60
60
|
role="option"
|
|
61
61
|
aria-label="PM"
|
|
@@ -84,7 +84,7 @@ import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element
|
|
|
84
84
|
<div class="gator-time-picker-actions">
|
|
85
85
|
<div class="gator-time-picker-clear">
|
|
86
86
|
<ngc-button variant="base" @click="${this.sendClearEvent}">
|
|
87
|
-
${
|
|
87
|
+
${s("Clear")}
|
|
88
88
|
</ngc-button>
|
|
89
89
|
</div>
|
|
90
90
|
<div class="gator-time-picker-now">
|
|
@@ -93,33 +93,33 @@ import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element
|
|
|
93
93
|
@click="${this.sendNowEvent}"
|
|
94
94
|
@keydown="${this.handleNowButtonKeyDown}"
|
|
95
95
|
>
|
|
96
|
-
${
|
|
96
|
+
${s("Now")}
|
|
97
97
|
</ngc-button>
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
|
-
`}get pmShouldBeTabbable(){return this.timeOfDay?this.timeOfDay==="PM"?"0":"-1":!0}scrollToOptions(){
|
|
101
|
+
`}get pmShouldBeTabbable(){return this.timeOfDay?this.timeOfDay==="PM"?"0":"-1":!0}scrollToOptions(){const e=this.shadowRoot?.querySelector(".gator-time-picker-hours ngc-selector[selected]");e&&e.scrollIntoView({behavior:"smooth",block:"center"});const t=this.shadowRoot?.querySelector(".gator-time-picker-minutes ngc-selector[selected]");t&&t.scrollIntoView({behavior:"smooth",block:"center"})}get hourOptions(){return Array.from({length:12},(t,i)=>i+1).map(t=>{const i=v(t,2),n=this.hour==t||this.hour===0&&t===12;let o=-1;return(this.hour===t||this.hour===null)&&(o=0),h`
|
|
102
102
|
<ngc-selector
|
|
103
103
|
role="option"
|
|
104
104
|
type="base"
|
|
105
105
|
data-value="${i}"
|
|
106
|
-
?selected="${
|
|
106
|
+
?selected="${n}"
|
|
107
107
|
@select="${a=>this.handleSelectionChange(a,"hour")}"
|
|
108
|
-
tabindex="${
|
|
108
|
+
tabindex="${o}"
|
|
109
109
|
@keydown="${this.handleHourKeyDown}"
|
|
110
110
|
>
|
|
111
111
|
${i}
|
|
112
112
|
</ngc-selector>
|
|
113
|
-
`})}get minuteOptions(){return Array.from({length:60},(t,i)=>i+1).map(t=>{const i=t-1,
|
|
113
|
+
`})}get minuteOptions(){return Array.from({length:60},(t,i)=>i+1).map(t=>{const i=t-1,n=i-1<9?`0${i}`:i;return h`
|
|
114
114
|
<ngc-selector
|
|
115
115
|
role="option"
|
|
116
116
|
type="base"
|
|
117
|
-
data-value="${
|
|
117
|
+
data-value="${n}"
|
|
118
118
|
?selected="${this.minute===i}"
|
|
119
|
-
@select="${
|
|
119
|
+
@select="${o=>this.handleSelectionChange(o,"minute")}"
|
|
120
120
|
tabindex="${this.minute===i?"0":"-1"}"
|
|
121
121
|
@keydown="${this.handleMinuteKeyDown}"
|
|
122
122
|
>
|
|
123
|
-
${
|
|
123
|
+
${n}
|
|
124
124
|
</ngc-selector>
|
|
125
|
-
`})}handleMinuteKeyDown(e){e.key==
|
|
125
|
+
`})}handleMinuteKeyDown(e){e.key==r.UP&&(e.stopPropagation(),e.preventDefault(),this.focusPreviousMinute()),e.key==r.DOWN&&(e.stopPropagation(),e.preventDefault(),this.focusNextMinute())}handleHourKeyDown(e){if(e.key==r.TAB&&e.shiftKey){e.preventDefault();const t=this.shadowRoot?.querySelector(".gator-time-picker-now ngc-button");t&&t.focus()}e.key==r.UP&&(e.stopPropagation(),e.preventDefault(),this.focusPreviousHour()),e.key==r.DOWN&&(e.stopPropagation(),e.preventDefault(),this.focusNextHour())}selectNextHour(){if(this.hour&&this.hour<12){const e=this.hour+1;this.handleSelectionChange(new CustomEvent("change",{detail:{value:e}}),"hour")}}selectPreviousHour(){if(this.hour&&this.hour>1){const e=this.hour-1;this.handleSelectionChange(new CustomEvent("change",{detail:{value:e}}),"hour")}}selectNextMinute(){if(this.minute!=null&&this.minute<59){const e=this.minute+1;this.handleSelectionChange(new CustomEvent("change",{detail:{value:e}}),"minute")}}selectPreviousMinute(){if(this.minute!=null){const e=this.minute-1;this.handleSelectionChange(new CustomEvent("change",{detail:{value:e}}),"minute")}}handleSelectionChange(e,t){e.stopPropagation(),e.preventDefault();const i=e.detail.value;this.dispatchEvent(new CustomEvent("change",{bubbles:!1,composed:!0,detail:{[t]:i}}))}focusNextHour(){let e=this.shadowRoot?.querySelector(".gator-time-picker-hours .gator-time-picker-options ngc-selector[tabindex='0']");if(e){const t=e.nextElementSibling;t&&this.focusNewOption(t,e)}}focusPreviousHour(){let e=this.shadowRoot?.querySelector(".gator-time-picker-hours .gator-time-picker-options ngc-selector[tabindex='0']");if(e){const t=e.previousElementSibling;t&&this.focusNewOption(t,e)}}focusNextMinute(){let e=this.shadowRoot?.querySelector(".gator-time-picker-minutes .gator-time-picker-options ngc-selector[tabindex='0']");if(e){const t=e.nextElementSibling;t&&this.focusNewOption(t,e)}}focusPreviousMinute(){let e=this.shadowRoot?.querySelector(".gator-time-picker-minutes .gator-time-picker-options ngc-selector[tabindex='0']");if(e){const t=e.previousElementSibling;t&&this.focusNewOption(t,e)}}focusNewOption(e,t){t.setAttribute("tabindex","-1"),e.setAttribute("tabindex","0"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})}focusOtherTimeOfDayOption(e){if(e.key!=r.DOWN&&e.key!=r.UP)return;e.stopPropagation(),e.preventDefault();let t=this.shadowRoot?.querySelector(".gator-time-picker-time-of-day ngc-selector[tabindex='0']");if(t){let i=null;e.key==r.DOWN?i=t.nextElementSibling:i=t.previousElementSibling,i&&this.focusNewOption(i,t)}}sendClearEvent(){this.dispatchEvent(new CustomEvent("clear",{composed:!0}))}sendNowEvent(){this.dispatchEvent(new CustomEvent("now",{composed:!0}))}handleNowButtonKeyDown(e){e.key==r.TAB&&!e.shiftKey&&(e.preventDefault(),this.selectedHourElement&&this.selectedHourElement.focus())}get selectedHourElement(){return this.shadowRoot?.querySelector(".gator-time-picker-hours ngc-selector[selected]")}get firstHourElement(){return this.shadowRoot?.querySelector(".gator-time-picker-hours ngc-selector")}focus(){this.selectedHourElement?this.selectedHourElement.focus():this.firstHourElement.focus()}handleTopLevelKeyUp(e){e.key==r.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("close",{composed:!0})))}};c.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0};c.styles=[...$(c,c,"styles"),b(f)];l([m({type:Number})],c.prototype,"hour",2);l([m({type:Number})],c.prototype,"minute",2);l([m({attribute:"time-of-day"})],c.prototype,"timeOfDay",2);c=l([p("ngc-time-picker")],c);export{c as NgcTimePicker};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import{NjcToast as
|
|
1
|
+
import{NjcToast as m}from"../../toast.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as l,html as s}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 h from"../../../../packages/web-components/src/components/toast/gator/base/toast.gator.scss.js";import d from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import v from"../../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import"../../../icon-button/gator/icon-button.gator.js";import"../title/toast-title.gator.js";import"../subtitle/toast-subtitle.gator.js";import{unsafeCSS as r}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var b=Object.getOwnPropertyDescriptor,p=(t,o,u,n)=>{for(var i=n>1?void 0:n?b(o,u):o,e=t.length-1,c;e>=0;e--)(c=t[e])&&(i=c(i)||i);return i};let a=class extends m{render(){return s`
|
|
2
2
|
<div
|
|
3
3
|
class="gator-toast ${this.variantClass}"
|
|
4
4
|
role="${this.ariaRole}"
|
|
5
|
-
aria-live="polite"
|
|
6
5
|
>
|
|
7
6
|
${this.iconMarkup}
|
|
8
7
|
|
|
9
8
|
<div class="gator-toast-content-container">
|
|
10
9
|
<div class="gator-toast-content">
|
|
11
10
|
<slot name="content">
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
${this.title?s`<ngc-toast-title>${this.title}</ngc-toast-title>`:l}
|
|
12
|
+
${this.subtitle?s`<ngc-toast-subtitle>${this.subtitle}</ngc-toast-subtitle>`:l}
|
|
14
13
|
</slot>
|
|
15
14
|
</div>
|
|
16
15
|
|
|
@@ -19,16 +18,16 @@ import{NjcToast as u}from"../../toast.js";import"../../../../node_modules/.pnpm/
|
|
|
19
18
|
|
|
20
19
|
${this.dismissibleMarkup}
|
|
21
20
|
</div>
|
|
22
|
-
`}get ariaRole(){return this.sticky?"alertdialog":"alert"}get actionsSlot(){return this.querySelector('[slot="actions"]')?
|
|
21
|
+
`}get ariaRole(){return this.sticky?"alertdialog":"alert"}get actionsSlot(){return this.querySelector('[slot="actions"]')?s`
|
|
23
22
|
<div class="gator-toast-actions">
|
|
24
23
|
<slot name="actions"></slot>
|
|
25
24
|
</div>
|
|
26
|
-
`:null}get variantClass(){switch(this.variant){case"info":return"gator-toast_info";case"warning":return"gator-toast_warning";case"error":return"gator-toast_error";case"success":return"gator-toast_success";case"inverse":return"gator-toast_inverse";default:return"gator-toast_info"}}get iconMarkup(){let t="info";switch(this.variant){case"info":t="info";break;case"warning":t="warning";break;case"error":t="restricted";break;case"success":t="check-circle";break;case"inverse":t="info";break}return
|
|
25
|
+
`:null}get variantClass(){switch(this.variant){case"info":return"gator-toast_info";case"warning":return"gator-toast_warning";case"error":return"gator-toast_error";case"success":return"gator-toast_success";case"inverse":return"gator-toast_inverse";default:return"gator-toast_info"}}get iconMarkup(){let t="info";switch(this.variant){case"info":t="info";break;case"warning":t="warning";break;case"error":t="restricted";break;case"success":t="check-circle";break;case"inverse":t="info";break}return s`
|
|
27
26
|
<ngc-icon
|
|
28
27
|
name="${t}"
|
|
29
|
-
label="${this.statusIconLabel
|
|
28
|
+
label="${this.statusIconLabel?this.statusIconLabel:t}"
|
|
30
29
|
></ngc-icon>
|
|
31
|
-
`}get dismissibleMarkup(){return this.dismissible?
|
|
30
|
+
`}get dismissibleMarkup(){return this.dismissible?s`
|
|
32
31
|
<div class="gator-toast-dismiss-button">
|
|
33
32
|
<ngc-icon-button
|
|
34
33
|
aria-label="${this.exitIconLabel}"
|
|
@@ -37,4 +36,4 @@ import{NjcToast as u}from"../../toast.js";import"../../../../node_modules/.pnpm/
|
|
|
37
36
|
@click=${this.handleDismiss}
|
|
38
37
|
></ngc-icon-button>
|
|
39
38
|
</div>
|
|
40
|
-
`:null}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss",{bubbles:!0,composed:!0}))}};a.styles=[r(
|
|
39
|
+
`:null}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss",{bubbles:!0,composed:!0,detail:{id:this.id}}))}};a.styles=[r(h),r(d),r(v)];a=p([g("ngc-toast")],a);export{a as NgcToast};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{NjcToast as p}from"../../toast.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import{NjcToast as p}from"../../toast.js";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 f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import c from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../../../packages/web-components/src/components/toast/gator/subtitle/toast-subtitle.gator.scss.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,g=(s,e,a,m)=>{for(var t=m>1?void 0:m?v(e,a):e,r=s.length-1,i;r>=0;r--)(i=s[r])&&(t=i(t)||t);return t};let o=class extends p{render(){return n`
|
|
2
2
|
<div class="gator-toast-subtitle">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};
|
|
5
|
+
`}};o.styles=[l(c),l(u)];o=g([f("ngc-toast-subtitle")],o);export{o as NgcToastSubtitle};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{NjcToast as p}from"../../toast.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import{NjcToast as p}from"../../toast.js";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 f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import c from"../../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import v from"../../../../packages/web-components/src/components/toast/gator/title/toast-title.gator.scss.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.getOwnPropertyDescriptor,u=(e,s,a,m)=>{for(var t=m>1?void 0:m?g(s,a):s,r=e.length-1,i;r>=0;r--)(i=e[r])&&(t=i(t)||t);return t};let o=class extends p{render(){return n`
|
|
2
2
|
<div class="gator-toast-title">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};o.styles=[l(c),l(v)];o=u([
|
|
5
|
+
`}};o.styles=[l(c),l(v)];o=u([f("ngc-toast-title")],o);export{o as NgcToastTitle};
|