@ncino/web-components 5.0.0-preview.2 → 5.0.0-preview.3
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/avatar/gator/avatar.gator.js +2 -2
- package/dist/components/badge/gator/badge.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/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/tooltip/tooltip.js +1 -1
- 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/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/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/index.slds.scss.js +1 -1
- 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/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 +10 -10
- package/web-types.json +2 -3
- 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 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};
|
|
@@ -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 +1 @@
|
|
|
1
|
-
import{property as l}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{KEY_CONSTANTS as m}from"../../consts/key-constants.js";import{generateRandomId as _}from"../../utils/string-utils.js";import{TestableLitElement as v}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{handleDataTestid as c}from"../../utils/datatestid-utils.js";import{getFirstFocusableElement as y}from"../../utils/accessibility-utils.js";var T=Object.defineProperty,f=(h,e,
|
|
1
|
+
import{property as l}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{KEY_CONSTANTS as m}from"../../consts/key-constants.js";import{generateRandomId as _}from"../../utils/string-utils.js";import{TestableLitElement as v}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{handleDataTestid as c}from"../../utils/datatestid-utils.js";import{getFirstFocusableElement as y}from"../../utils/accessibility-utils.js";var T=Object.defineProperty,f=(h,e,i,o)=>{for(var t=void 0,s=h.length-1,r;s>=0;s--)(r=h[s])&&(t=r(e,i,t)||t);return t&&T(e,i,t),t};class d extends v{constructor(){super(...arguments),this.referenceId="",this.placement="top-end",this.xOffset=0,this.yOffset=0,this._tooltipRef=u(),this._forceOpen=!1,this._mousedInsideTooltip=!1,this.tooltipId=_()}firstUpdated(){if(this._tooltipRef.value&&(this._tooltipRef.value.style.visibility="hidden",this._tooltipRef.value.style.opacity="0"),!this.referenceId)return;const e=this.referenceElement,i=this._tooltipRef.value;if(e&&i){c(e,this.dataTestid,"trigger"),c(i,this.dataTestid,"tooltip");let o;e.shadowRoot?.delegatesFocus?o=y(e):o=e,o&&(o.ariaDescribedByElements=[this]),e.addEventListener("mouseenter",()=>this.showTooltip()),e.addEventListener("mouseleave",t=>this._handleMouseLeave(t,e,i)),e.addEventListener("focusin",()=>this.showTooltip()),e.addEventListener("focusout",()=>this.hideTooltip()),i.addEventListener("mouseenter",()=>this.showTooltip()),i.addEventListener("mouseleave",t=>{if(this._mousedInsideTooltip){this.hideTooltip();return}this._handleMouseLeave(t,e,i)}),document.addEventListener("keydown",t=>{t.key===m.ESCAPE&&(this._forceOpen=!1,this.hideTooltip())})}}get referenceElement(){let e=document.querySelector(`#${this.referenceId}`);return e||(e=document.querySelector(`[data-id="${this.referenceId}"]`)?.shadowRoot?.querySelector(`#${this.referenceId}`)),e}_handleMouseLeave(e,i,o){const t=i.getBoundingClientRect(),s=o.getBoundingClientRect(),r=this._isMouseInside(e,t,-5),n=this._isMouseInside(e,s,25);!r&&!n&&this.hideTooltip(),n&&(this._mousedInsideTooltip=!0)}_isMouseInside(e,i,o=0){const{left:t,right:s,top:r,bottom:n}=i,a=e.clientX,p=e.clientY;return a>=t-o&&a<=s+o&&p>=r-o&&p<=n+o}toggleTooltip(){this._forceOpen=!this._forceOpen,this._forceOpen?this.showTooltip():this.hideTooltip()}disconnectedCallback(){this._cleanup&&this._cleanup(),super.disconnectedCallback()}showTooltip(){this.assignPosition(),this._tooltipRef.value&&(this._tooltipRef.value.style.visibility="visible",this._tooltipRef.value.style.opacity="1")}hideTooltip(){this._forceOpen||this._tooltipRef.value&&(this._tooltipRef.value.style.visibility="hidden",this._tooltipRef.value.style.opacity="0")}assignPosition(){}}f([l({attribute:"reference-id"})],d.prototype,"referenceId");f([l()],d.prototype,"placement");f([l({type:Number,attribute:"x-offset"})],d.prototype,"xOffset");f([l({type:Number,attribute:"y-offset"})],d.prototype,"yOffset");export{d as NjcTooltip};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{Plugin as a,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{DomEmitterMixin as o}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as r}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/class
|
|
4
|
+
*/class _ extends a{adapter;_debouncedSave;_lastDocumentVersion;_savePromise;_domEmitter;_config;_pendingActions;_makeImmediateSave;_action=null;static get pluginName(){return"Autosave"}static get isOfficialPlugin(){return!0}static get requires(){return[n]}constructor(t){super(t);const e=t.config.get("autosave")||{},i=e.waitingTime||1e3;this.set("state","synchronized"),this._debouncedSave=r(this._save.bind(this),i),this._lastDocumentVersion=t.model.document.version,this._savePromise=null,this._domEmitter=new(o()),this._config=e,this._pendingActions=t.plugins.get(n),this._makeImmediateSave=!1}init(){const t=this.editor,e=t.model.document;this.listenTo(t,"ready",()=>{this.listenTo(e,"change:data",(i,s)=>{this._saveCallbacks.length&&s.isLocal&&(this.state==="synchronized"&&(this.state="waiting",this._setPendingAction()),this.state==="waiting"&&this._debouncedSave())})}),this.listenTo(t,"destroy",()=>this._flush(),{priority:"highest"});/* istanbul ignore next -- @preserve */this._domEmitter.listenTo(window,"beforeunload",(i,s)=>{this._pendingActions.hasAny&&(s.returnValue=this._pendingActions.first.message)})}destroy(){this._domEmitter.stopListening(),super.destroy()}save(){return this._debouncedSave.cancel(),this._save()}_flush(){this._debouncedSave.flush()}_save(){return this._savePromise?(this._makeImmediateSave=this.editor.model.document.version>this._lastDocumentVersion,this._savePromise):(this._setPendingAction(),this.state="saving",this._lastDocumentVersion=this.editor.model.document.version,this._savePromise=Promise.resolve().then(()=>Promise.all(this._saveCallbacks.map(t=>t(this.editor)))).finally(()=>{this._savePromise=null}).then(()=>{if(this._makeImmediateSave)return this._makeImmediateSave=!1,this._save();this.editor.model.document.version>this._lastDocumentVersion?(this.state="waiting",this._debouncedSave()):(this.state="synchronized",this._pendingActions.remove(this._action),this._action=null)}).catch(t=>{throw this.state="error",this.state="saving",this._debouncedSave(),t}),this._savePromise)}_setPendingAction(){const t=this.editor.t;this._action||(this._action=this._pendingActions.add(t("Saving changes")))}get _saveCallbacks(){const t=[];return this.adapter&&this.adapter.save&&t.push(this.adapter.save),this._config.save&&t.push(this._config.save),t}}export{_ as Autosave};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{Plugin as r,Command as B}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconBold as N,IconCode as U,IconItalic as w,IconStrikethrough as F,IconSubscript as R,IconSuperscript as v,IconUnderline as L}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as a}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{TwoStepCaretMovement as P,inlineHighlight as K}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/class
|
|
4
|
+
*/class d extends B{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,o=e.document.selection,c=t.forceValue===void 0?!this.value:t.forceValue;e.change(m=>{if(o.isCollapsed)c?m.setSelectionAttribute(this.attributeKey,!0):m.removeSelectionAttribute(this.attributeKey);else{const I=e.schema.getValidRanges(o.getRanges(),this.attributeKey);for(const n of I)c?m.setAttribute(this.attributeKey,c,n):m.removeAttribute(this.attributeKey,n)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,i=t.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(const o of i.getRanges())for(const c of o.getItems())if(e.checkAttribute(c,this.attributeKey))return c.hasAttribute(this.attributeKey);return!1}}const p="bold";class $ extends r{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:p}),t.model.schema.setAttributeProperties(p,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:p,view:"strong",upcastAlso:["b",i=>{const o=i.getStyle("font-weight");return o&&(o=="bold"||Number(o)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(p,new d(t,p)),t.keystrokes.set("CTRL+B",p),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function g({editor:s,commandName:t,plugin:e,icon:i,label:o,keystroke:c}){return m=>{const I=s.commands.get(t),n=new m(s.locale);return n.set({label:o,icon:i,keystroke:c,isToggleable:!0}),n.bind("isEnabled").to(I,"isEnabled"),n.bind("isOn").to(I,"value"),n instanceof a?n.set({role:"menuitemcheckbox"}):n.set({tooltip:!0}),e.listenTo(n,"execute",()=>{s.execute(t),s.editing.view.focus()}),n}}const x="bold";class H extends r{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:x,plugin:this,icon:N,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(x,()=>i(l)),t.ui.componentFactory.add("menuBar:"+x,()=>i(a))}}class st extends r{static get requires(){return[$,H]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}const u="code",q="ck-code_selected";class V extends r{static get pluginName(){return"CodeEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[P]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:u}),t.model.schema.setAttributeProperties(u,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:u,view:"code"}),t.commands.add(u,new d(t,u)),t.plugins.get(P).registerAttribute(u),K(t,u,"code",q),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}const S="code";class D extends r{static get pluginName(){return"CodeUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:S,plugin:this,icon:U,label:e("Code")});t.ui.componentFactory.add(S,()=>i(l)),t.ui.componentFactory.add("menuBar:"+S,()=>i(a))}}class rt extends r{static get requires(){return[V,D]}static get pluginName(){return"Code"}static get isOfficialPlugin(){return!0}}const h="italic";class G extends r{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:h}),t.model.schema.setAttributeProperties(h,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:h,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(h,new d(t,h)),t.keystrokes.set("CTRL+I",h),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const E="italic";class M extends r{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:E,plugin:this,icon:w,keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(E,()=>i(l)),t.ui.componentFactory.add("menuBar:"+E,()=>i(a))}}class nt extends r{static get requires(){return[G,M]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}const b="strikethrough";class _ extends r{static get pluginName(){return"StrikethroughEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:b}),t.model.schema.setAttributeProperties(b,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:b,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(b,new d(t,b)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const T="strikethrough";class X extends r{static get pluginName(){return"StrikethroughUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:T,plugin:this,icon:F,keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(T,()=>i(l)),t.ui.componentFactory.add("menuBar:"+T,()=>i(a))}}class ot extends r{static get requires(){return[_,X]}static get pluginName(){return"Strikethrough"}static get isOfficialPlugin(){return!0}}const f="subscript";class W extends r{static get pluginName(){return"SubscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:f}),t.model.schema.setAttributeProperties(f,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:f,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(f,new d(t,f))}}const A="subscript";class j extends r{static get pluginName(){return"SubscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:A,plugin:this,icon:R,label:e("Subscript")});t.ui.componentFactory.add(A,()=>i(l)),t.ui.componentFactory.add("menuBar:"+A,()=>i(a))}}class ct extends r{static get requires(){return[W,j]}static get pluginName(){return"Subscript"}static get isOfficialPlugin(){return!0}}const y="superscript";class z extends r{static get pluginName(){return"SuperscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:y}),t.model.schema.setAttributeProperties(y,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:y,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(y,new d(t,y))}}const C="superscript";class J extends r{static get pluginName(){return"SuperscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:C,plugin:this,icon:v,label:e("Superscript")});t.ui.componentFactory.add(C,()=>i(l)),t.ui.componentFactory.add("menuBar:"+C,()=>i(a))}}class at extends r{static get requires(){return[z,J]}static get pluginName(){return"Superscript"}static get isOfficialPlugin(){return!0}}const k="underline";class Q extends r{static get pluginName(){return"UnderlineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(k,new d(t,k)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const O="underline";class Y extends r{static get pluginName(){return"UnderlineUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:O,plugin:this,icon:L,label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(O,()=>i(l)),t.ui.componentFactory.add("menuBar:"+O,()=>i(a))}}class ut extends r{static get requires(){return[Q,Y]}static get pluginName(){return"Underline"}static get isOfficialPlugin(){return!0}}export{d as AttributeCommand,st as Bold,$ as BoldEditing,H as BoldUI,rt as Code,V as CodeEditing,D as CodeUI,nt as Italic,G as ItalicEditing,M as ItalicUI,ot as Strikethrough,_ as StrikethroughEditing,X as StrikethroughUI,ct as Subscript,W as SubscriptEditing,j as SubscriptUI,at as Superscript,z as SuperscriptEditing,J as SuperscriptUI,ut as Underline,Q as UnderlineEditing,Y as UnderlineUI};
|