@cupra/ui-kit 1.0.0-canary.2 → 1.0.0-canary.21
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/README.md +24 -16
- package/dist/components/base/DsUiElement.js +47 -0
- package/dist/components/base/UiKitElement.js +82 -0
- package/dist/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist/components/ds-accordion/ds-accordion.js +124 -0
- package/dist/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist/components/ds-accordion/theme-config.js +26 -0
- package/dist/components/ds-avatar/ds-avatar.js +102 -0
- package/dist/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist/components/ds-badge/ds-badge.d.ts +18 -0
- package/dist/components/ds-badge/ds-badge.js +53 -0
- package/dist/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/common.styles.js +9 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
- package/dist/components/ds-bullets/ds-bullets.js +79 -0
- package/dist/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist/components/ds-button/ds-button.js +196 -0
- package/dist/components/ds-button/styles/common.styles.js +116 -0
- package/dist/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist/components/ds-chip/ds-chip.js +131 -0
- package/dist/components/ds-chip/styles/common.styles.js +25 -0
- package/dist/components/ds-chips/ds-chips.js +143 -0
- package/dist/components/ds-chips/styles/common.styles.js +94 -0
- package/dist/components/ds-currency/ds-currency.js +139 -0
- package/dist/components/ds-currency/styles/common.styles.js +17 -0
- package/dist/components/ds-dialog/ds-dialog.js +107 -0
- package/dist/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist/components/ds-divider/ds-divider.js +58 -0
- package/dist/components/ds-divider/styles/common.styles.js +13 -0
- package/dist/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist/components/ds-icon/ds-icon.js +105 -0
- package/dist/components/ds-icon/iconNames.d.ts +1 -1
- package/dist/components/ds-icon/iconNames.js +394 -0
- package/dist/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist/components/ds-input/ds-input.js +138 -0
- package/dist/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist/components/ds-link-button/ds-link-button.js +120 -0
- package/dist/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist/components/ds-logo/ds-logo.js +69 -0
- package/dist/components/ds-logo/styles/common.styles.js +18 -0
- package/dist/components/ds-main-title/ds-main-title.d.ts +10 -0
- package/dist/components/ds-main-title/ds-main-title.js +35 -0
- package/dist/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-main-title/styles/common.styles.js +19 -0
- package/dist/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist/components/ds-modal/ds-modal.js +215 -0
- package/dist/components/ds-modal/styles/common.styles.js +289 -0
- package/dist/components/ds-password-input/ds-password-input.js +43 -0
- package/dist/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist/components/ds-portal/ds-portal.js +41 -0
- package/dist/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist/components/ds-radio/ds-radio.js +111 -0
- package/dist/components/ds-radio/styles/common.styles.js +44 -0
- package/dist/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist/components/ds-rating/ds-rating.d.ts +14 -0
- package/dist/components/ds-rating/ds-rating.js +73 -0
- package/dist/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-rating/styles/common.styles.js +14 -0
- package/dist/components/ds-search/ds-search.js +210 -0
- package/dist/components/ds-search/styles/common.styles.js +61 -0
- package/dist/components/ds-search-input/ds-search-input.js +158 -0
- package/dist/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist/components/ds-select/ds-select.js +274 -0
- package/dist/components/ds-select/styles/common.styles.js +29 -0
- package/dist/components/ds-selection/ds-selection.js +57 -0
- package/dist/components/ds-selection/styles/common.styles.js +17 -0
- package/dist/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist/components/ds-slider/ds-slider.js +409 -0
- package/dist/components/ds-slider/styles/common.styles.js +61 -0
- package/dist/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist/components/ds-static-box/ds-static-box.js +77 -0
- package/dist/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist/components/ds-stepper/ds-stepper.js +57 -0
- package/dist/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist/components/ds-tabs/ds-tabs.js +203 -0
- package/dist/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist/components/ds-tabs/theme-config.js +14 -0
- package/dist/components/ds-tag/ds-tag.js +87 -0
- package/dist/components/ds-tag/styles/common.styles.js +20 -0
- package/dist/components/ds-text/ds-text.js +83 -0
- package/dist/components/ds-text/styles/common.styles.js +29 -0
- package/dist/components/ds-text-input/ds-text-input.js +100 -0
- package/dist/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist/components/ds-textarea/ds-textarea.js +87 -0
- package/dist/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist/components/ds-theme-provider/ds-theme-provider.js +90 -0
- package/dist/components/ds-theme-provider/themeContext.js +5 -0
- package/dist/components/ds-toast/ds-toast.js +95 -0
- package/dist/components/ds-toast/styles/common.styles.js +112 -0
- package/dist/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +38 -23
- package/dist/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/core/theme.constants.d.ts +1 -0
- package/dist/core/theme.constants.js +4 -0
- package/dist/decorators/customUiKitElement.js +23 -0
- package/dist/index.js +61 -9693
- package/dist/mixins/FormAssociatedMixin.js +14 -0
- package/dist/mixins/ViewportMixin.js +32 -0
- package/dist/mixins/inputStatesMixin.js +46 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist/styles/fonts-config.js +28 -0
- package/dist/utils/IconsManager.d.ts +1 -4
- package/dist/utils/IconsManager.js +39 -0
- package/dist/utils/PubSub.d.ts +0 -2
- package/dist/utils/PubSub.js +33 -0
- package/dist/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist/utils/arrayConverter.js +19 -0
- package/dist/utils/booleanConverter.js +4 -0
- package/dist/utils/componentFactory.js +167 -0
- package/dist/utils/cssQueries.js +16 -0
- package/dist/utils/cssWithTokens.js +11 -0
- package/dist/utils/formatNumber/formatNumber.js +54 -0
- package/dist/utils/htmlWithTokens.js +11 -0
- package/dist/utils/objectConverter.js +11 -0
- package/dist/utils/validateMaxLength.js +6 -0
- package/dist-react/components/base/DsUiElement.js +47 -0
- package/dist-react/components/base/UiKitElement.js +82 -0
- package/dist-react/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist-react/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist-react/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist-react/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist-react/components/ds-accordion/ds-accordion.js +124 -0
- package/dist-react/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist-react/components/ds-accordion/theme-config.js +26 -0
- package/dist-react/components/ds-avatar/ds-avatar.js +102 -0
- package/dist-react/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-badge/ds-badge.d.ts +18 -0
- package/dist-react/components/ds-badge/ds-badge.js +53 -0
- package/dist-react/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist-react/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist-react/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/common.styles.js +9 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
- package/dist-react/components/ds-bullets/ds-bullets.js +79 -0
- package/dist-react/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist-react/components/ds-button/ds-button.js +196 -0
- package/dist-react/components/ds-button/styles/common.styles.js +116 -0
- package/dist-react/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist-react/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist-react/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist-react/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist-react/components/ds-chip/ds-chip.js +131 -0
- package/dist-react/components/ds-chip/styles/common.styles.js +25 -0
- package/dist-react/components/ds-chips/ds-chips.js +143 -0
- package/dist-react/components/ds-chips/styles/common.styles.js +94 -0
- package/dist-react/components/ds-currency/ds-currency.js +139 -0
- package/dist-react/components/ds-currency/styles/common.styles.js +17 -0
- package/dist-react/components/ds-dialog/ds-dialog.js +107 -0
- package/dist-react/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist-react/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist-react/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist-react/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist-react/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist-react/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist-react/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist-react/components/ds-divider/ds-divider.js +58 -0
- package/dist-react/components/ds-divider/styles/common.styles.js +13 -0
- package/dist-react/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist-react/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist-react/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist-react/components/ds-icon/ds-icon.js +105 -0
- package/dist-react/components/ds-icon/iconNames.d.ts +1 -1
- package/dist-react/components/ds-icon/iconNames.js +394 -0
- package/dist-react/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist-react/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-input/ds-input.js +138 -0
- package/dist-react/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist-react/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist-react/components/ds-link-button/ds-link-button.js +120 -0
- package/dist-react/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist-react/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist-react/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist-react/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist-react/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist-react/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist-react/components/ds-logo/ds-logo.js +69 -0
- package/dist-react/components/ds-logo/styles/common.styles.js +18 -0
- package/dist-react/components/ds-main-title/ds-main-title.d.ts +10 -0
- package/dist-react/components/ds-main-title/ds-main-title.js +35 -0
- package/dist-react/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist-react/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist-react/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-main-title/styles/common.styles.js +19 -0
- package/dist-react/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist-react/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist-react/components/ds-modal/ds-modal.js +215 -0
- package/dist-react/components/ds-modal/styles/common.styles.js +289 -0
- package/dist-react/components/ds-password-input/ds-password-input.js +43 -0
- package/dist-react/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist-react/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist-react/components/ds-portal/ds-portal.js +41 -0
- package/dist-react/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist-react/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-radio/ds-radio.js +111 -0
- package/dist-react/components/ds-radio/styles/common.styles.js +44 -0
- package/dist-react/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist-react/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist-react/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist-react/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist-react/components/ds-rating/ds-rating.d.ts +14 -0
- package/dist-react/components/ds-rating/ds-rating.js +73 -0
- package/dist-react/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist-react/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist-react/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-rating/styles/common.styles.js +14 -0
- package/dist-react/components/ds-search/ds-search.js +210 -0
- package/dist-react/components/ds-search/styles/common.styles.js +61 -0
- package/dist-react/components/ds-search-input/ds-search-input.js +158 -0
- package/dist-react/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist-react/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist-react/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist-react/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist-react/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist-react/components/ds-select/ds-select.js +274 -0
- package/dist-react/components/ds-select/styles/common.styles.js +29 -0
- package/dist-react/components/ds-selection/ds-selection.js +57 -0
- package/dist-react/components/ds-selection/styles/common.styles.js +17 -0
- package/dist-react/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist-react/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist-react/components/ds-slider/ds-slider.js +409 -0
- package/dist-react/components/ds-slider/styles/common.styles.js +61 -0
- package/dist-react/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist-react/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist-react/components/ds-static-box/ds-static-box.js +77 -0
- package/dist-react/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist-react/components/ds-stepper/ds-stepper.js +57 -0
- package/dist-react/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist-react/components/ds-tabs/ds-tabs.js +203 -0
- package/dist-react/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist-react/components/ds-tabs/theme-config.js +14 -0
- package/dist-react/components/ds-tag/ds-tag.js +87 -0
- package/dist-react/components/ds-tag/styles/common.styles.js +20 -0
- package/dist-react/components/ds-text/ds-text.js +83 -0
- package/dist-react/components/ds-text/styles/common.styles.js +29 -0
- package/dist-react/components/ds-text-input/ds-text-input.js +100 -0
- package/dist-react/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-textarea/ds-textarea.js +87 -0
- package/dist-react/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist-react/components/ds-theme-provider/ds-theme-provider.js +90 -0
- package/dist-react/components/ds-theme-provider/themeContext.js +5 -0
- package/dist-react/components/ds-toast/ds-toast.js +95 -0
- package/dist-react/components/ds-toast/styles/common.styles.js +112 -0
- package/dist-react/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist-react/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist-react/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist-react/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist-react/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist-react/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.d.ts +38 -23
- package/dist-react/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist-react/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist-react/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist-react/components/index.d.ts +4 -1
- package/dist-react/core/theme.constants.d.ts +1 -0
- package/dist-react/core/theme.constants.js +4 -0
- package/dist-react/decorators/customUiKitElement.js +23 -0
- package/dist-react/index.js +61 -9618
- package/dist-react/mixins/FormAssociatedMixin.js +14 -0
- package/dist-react/mixins/ViewportMixin.js +32 -0
- package/dist-react/mixins/inputStatesMixin.js +46 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist-react/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist-react/styles/fonts-config.js +28 -0
- package/dist-react/utils/IconsManager.d.ts +1 -4
- package/dist-react/utils/IconsManager.js +39 -0
- package/dist-react/utils/PubSub.d.ts +0 -2
- package/dist-react/utils/PubSub.js +33 -0
- package/dist-react/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist-react/utils/arrayConverter.js +19 -0
- package/dist-react/utils/booleanConverter.js +4 -0
- package/dist-react/utils/componentFactory.js +90 -0
- package/dist-react/utils/cssQueries.js +16 -0
- package/dist-react/utils/cssWithTokens.js +11 -0
- package/dist-react/utils/formatNumber/formatNumber.js +54 -0
- package/dist-react/utils/htmlWithTokens.js +11 -0
- package/dist-react/utils/objectConverter.js +11 -0
- package/dist-react/utils/validateMaxLength.js +6 -0
- package/package.json +21 -6
- /package/{THIRD-PARTY-LICENSES.MD → THIRD_PARTY_LICENSES.MD} +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { UiKitElement as h } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as p } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as d } from "../../utils/booleanConverter.js";
|
|
4
|
+
import { htmlWithTokens as m } from "../../utils/htmlWithTokens.js";
|
|
5
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import { nothing as u, html as y } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
7
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
8
|
+
import { property as n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { state as f } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
10
|
+
import { classMap as b } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { commonStyles as v } from "./styles/common.styles.js";
|
|
12
|
+
var g = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (e, l, r, s) => {
|
|
13
|
+
for (var o = s > 1 ? void 0 : s ? k(l, r) : l, a = e.length - 1, c; a >= 0; a--)
|
|
14
|
+
(c = e[a]) && (o = (s ? c(l, r, o) : c(o)) || o);
|
|
15
|
+
return s && o && g(l, r, o), o;
|
|
16
|
+
};
|
|
17
|
+
let t = class extends h {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.mode = "light", this.size = "large", this.selected = !1, this.deselectable = !1, this.slottedText = "";
|
|
20
|
+
}
|
|
21
|
+
firstUpdated(e) {
|
|
22
|
+
super.firstUpdated(e);
|
|
23
|
+
const r = this.shadowRoot.querySelector("slot").assignedNodes({ flatten: !0 });
|
|
24
|
+
this.slottedText = r.filter((s) => s.nodeType === Node.TEXT_NODE).map((s) => s.textContent.trim()).join(" ");
|
|
25
|
+
}
|
|
26
|
+
get classes() {
|
|
27
|
+
return {
|
|
28
|
+
container: !0,
|
|
29
|
+
"ds-blur": !0,
|
|
30
|
+
[this.size]: !0,
|
|
31
|
+
[this.mode]: !!this.mode,
|
|
32
|
+
selected: this.selected,
|
|
33
|
+
deselectable: this.deselectable
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
get styleTokens() {
|
|
37
|
+
return m`
|
|
38
|
+
<style>
|
|
39
|
+
:host{
|
|
40
|
+
color-scheme: ${this.mode};
|
|
41
|
+
pointer-events: ${this.selected ? "none" : "visible"};
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
handleClick() {
|
|
47
|
+
this.selected || this.dispatchEvent(
|
|
48
|
+
new CustomEvent("select", {
|
|
49
|
+
bubbles: !0,
|
|
50
|
+
composed: !0,
|
|
51
|
+
detail: {
|
|
52
|
+
value: this.value
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
handleKeyDown(e) {
|
|
58
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.handleClick());
|
|
59
|
+
}
|
|
60
|
+
handleClickIcon(e) {
|
|
61
|
+
e.stopImmediatePropagation(), !(!this.deselectable || !this.selected) && this.dispatchEvent(
|
|
62
|
+
new CustomEvent("deselect", {
|
|
63
|
+
bubbles: !0,
|
|
64
|
+
composed: !0,
|
|
65
|
+
detail: {
|
|
66
|
+
value: this.value
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
handleKeyDownIcon(e) {
|
|
72
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.handleClickIcon(e));
|
|
73
|
+
}
|
|
74
|
+
get iconTemplate() {
|
|
75
|
+
if (!this.selected || !this.deselectable) return u;
|
|
76
|
+
const e = this.mode === "light" ? "dark" : "light";
|
|
77
|
+
return this.componentFactory.createIcon({
|
|
78
|
+
class: "icon",
|
|
79
|
+
"icon-name": "cross",
|
|
80
|
+
"data-testid": "ds-chip-icon",
|
|
81
|
+
"@click": this.handleClickIcon,
|
|
82
|
+
"@keydown": this.handleKeyDownIcon,
|
|
83
|
+
role: "button",
|
|
84
|
+
"aria-label": `deselect ${this.slottedText}`,
|
|
85
|
+
tabindex: "0",
|
|
86
|
+
mode: e
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return y`
|
|
91
|
+
${this.styleTokens}
|
|
92
|
+
<div
|
|
93
|
+
role="button"
|
|
94
|
+
aria-label=${`chip ${this.slottedText}`}
|
|
95
|
+
tabindex="0"
|
|
96
|
+
data-testid="ds-chip-container"
|
|
97
|
+
class=${b(this.classes)}
|
|
98
|
+
@click=${this.handleClick}
|
|
99
|
+
@keydown=${this.handleKeyDown}
|
|
100
|
+
>
|
|
101
|
+
<slot></slot>
|
|
102
|
+
${this.iconTemplate}
|
|
103
|
+
</div>
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
t.styles = [v];
|
|
108
|
+
i([
|
|
109
|
+
n({ type: String })
|
|
110
|
+
], t.prototype, "value", 2);
|
|
111
|
+
i([
|
|
112
|
+
n({ type: String, reflect: !0 })
|
|
113
|
+
], t.prototype, "mode", 2);
|
|
114
|
+
i([
|
|
115
|
+
n({ type: String, reflect: !0 })
|
|
116
|
+
], t.prototype, "size", 2);
|
|
117
|
+
i([
|
|
118
|
+
n({ type: Boolean, converter: d, reflect: !0 })
|
|
119
|
+
], t.prototype, "selected", 2);
|
|
120
|
+
i([
|
|
121
|
+
n({ type: Boolean, converter: d })
|
|
122
|
+
], t.prototype, "deselectable", 2);
|
|
123
|
+
i([
|
|
124
|
+
f()
|
|
125
|
+
], t.prototype, "slottedText", 2);
|
|
126
|
+
t = i([
|
|
127
|
+
p("ds-chip")
|
|
128
|
+
], t);
|
|
129
|
+
export {
|
|
130
|
+
t as DsChip
|
|
131
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = e`
|
|
6
|
+
:host {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
user-select: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
pointer-events: visible;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
export {
|
|
24
|
+
r as commonStyles
|
|
25
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { UiKitElement as p } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as d } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { arrayConverter as m } from "../../utils/arrayConverter.js";
|
|
4
|
+
import { booleanConverter as u } from "../../utils/booleanConverter.js";
|
|
5
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import { nothing as C, html as v } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
7
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
8
|
+
import { property as o } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { state as n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
10
|
+
import { query as f } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js";
|
|
11
|
+
import { queryAssignedElements as S } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js";
|
|
12
|
+
import { classMap as b } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
|
+
import { commonStyles as y } from "./styles/common.styles.js";
|
|
14
|
+
var g = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (e, t, s, i) => {
|
|
15
|
+
for (var r = i > 1 ? void 0 : i ? z(t, s) : t, a = e.length - 1, c; a >= 0; a--)
|
|
16
|
+
(c = e[a]) && (r = (i ? c(t, s, r) : c(r)) || r);
|
|
17
|
+
return i && r && g(t, s, r), r;
|
|
18
|
+
};
|
|
19
|
+
let l = class extends p {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), this.multiChoice = null, this.size = "medium", this.mode = "light", this.hasScrollLeft = !1, this.hasScrollRight = !1, this.resizeObserver = new ResizeObserver(() => {
|
|
22
|
+
this.handleScrollNav();
|
|
23
|
+
}), this.handleScrollNav = () => {
|
|
24
|
+
var t, s, i, r;
|
|
25
|
+
const e = ((t = this.chipsContainer) == null ? void 0 : t.scrollLeft) + ((s = this.chipsContainer) == null ? void 0 : s.clientWidth);
|
|
26
|
+
this.hasScrollLeft = ((i = this.chipsContainer) == null ? void 0 : i.scrollLeft) > 0, this.hasScrollRight = e < ((r = this.chipsContainer) == null ? void 0 : r.scrollWidth);
|
|
27
|
+
}, this.handleScrollLeft = () => {
|
|
28
|
+
this.chipsContainer.scrollBy({ left: -150, behavior: "smooth" });
|
|
29
|
+
}, this.handleScrollRight = () => {
|
|
30
|
+
this.chipsContainer.scrollBy({ left: 150, behavior: "smooth" });
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
firstUpdated() {
|
|
34
|
+
this.handleScrollNav(), this.resizeObserver.observe(this.chipsContainer), this.chips.forEach((e) => this.resizeObserver.observe(e)), window.addEventListener("resize", this.handleScrollNav), this.chipsContainer.addEventListener("scroll", this.handleScrollNav);
|
|
35
|
+
}
|
|
36
|
+
disconnectedCallback() {
|
|
37
|
+
super.disconnectedCallback(), this.resizeObserver.disconnect(), window.removeEventListener("resize", this.handleScrollNav), this.chipsContainer.removeEventListener("scroll", this.handleScrollNav);
|
|
38
|
+
}
|
|
39
|
+
getScrollButtonTemplate(e, t) {
|
|
40
|
+
if (e === "left" && !this.hasScrollLeft || e === "right" && !this.hasScrollRight)
|
|
41
|
+
return C;
|
|
42
|
+
const s = `arrow-${e}`;
|
|
43
|
+
return this.componentFactory.createIconButton({
|
|
44
|
+
class: `scroll-button ${e}`,
|
|
45
|
+
"data-testid": `scroll-button-${e}`,
|
|
46
|
+
"data-aria-label": `scroll-button-${e}`,
|
|
47
|
+
"@click": t,
|
|
48
|
+
size: this.size || "large",
|
|
49
|
+
"icon-name": s,
|
|
50
|
+
variant: "standard",
|
|
51
|
+
mode: this.mode
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
updated(e) {
|
|
55
|
+
super.updated(e), (e.has("selectedChips") || e.has("multiChoice") || e.has("size") || e.has("mode")) && this.updateChildChips();
|
|
56
|
+
}
|
|
57
|
+
updateChildChips() {
|
|
58
|
+
var e;
|
|
59
|
+
(e = this.chips) == null || e.forEach((t) => {
|
|
60
|
+
var s, i;
|
|
61
|
+
t.size = this.size, t.selected = (i = (s = this.selectedChips) == null ? void 0 : s.includes) == null ? void 0 : i.call(s, t.value), t.deselectable = !!this.multiChoice, t.mode = this.mode;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
get chipsContainerClasses() {
|
|
65
|
+
return {
|
|
66
|
+
"chips-container": !0,
|
|
67
|
+
"scroll-left": this.hasScrollLeft,
|
|
68
|
+
"scroll-right": this.hasScrollRight
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
handleSelect(e) {
|
|
72
|
+
var s, i;
|
|
73
|
+
let t;
|
|
74
|
+
this.multiChoice && !((i = (s = this.selectedChips) == null ? void 0 : s.includes) != null && i.call(s, e.detail.value)) ? t = [...this.selectedChips || [], e.detail.value] : t = [e.detail.value], this.selectedChips = t, this.updateChildChips(), this.dispatchEvent(
|
|
75
|
+
new CustomEvent("ds-chips:change", {
|
|
76
|
+
bubbles: !0,
|
|
77
|
+
composed: !0,
|
|
78
|
+
detail: {
|
|
79
|
+
selectedChips: t
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
handleDeselect(e) {
|
|
85
|
+
const t = [...(this.selectedChips || []).filter((s) => s !== e.detail.value)];
|
|
86
|
+
this.selectedChips = t, this.updateChildChips(), this.dispatchEvent(
|
|
87
|
+
new CustomEvent("ds-chips:change", {
|
|
88
|
+
bubbles: !0,
|
|
89
|
+
composed: !0,
|
|
90
|
+
detail: {
|
|
91
|
+
selectedChips: t
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
return v`
|
|
98
|
+
<div
|
|
99
|
+
class="container"
|
|
100
|
+
data-testid="ds-chips-container"
|
|
101
|
+
@select=${this.handleSelect}
|
|
102
|
+
@deselect=${this.handleDeselect}
|
|
103
|
+
>
|
|
104
|
+
${this.getScrollButtonTemplate("left", this.handleScrollLeft)}
|
|
105
|
+
<nav tabindex="0" class=${b(this.chipsContainerClasses)}>
|
|
106
|
+
<slot @slotchange=${this.updateChildChips}></slot>
|
|
107
|
+
</nav>
|
|
108
|
+
${this.getScrollButtonTemplate("right", this.handleScrollRight)}
|
|
109
|
+
</div>
|
|
110
|
+
`;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
l.styles = [y];
|
|
114
|
+
h([
|
|
115
|
+
o({ type: Array, attribute: "selected-chips", converter: m, reflect: !0 })
|
|
116
|
+
], l.prototype, "selectedChips", 2);
|
|
117
|
+
h([
|
|
118
|
+
o({ type: Boolean, attribute: "multi-choice", converter: u })
|
|
119
|
+
], l.prototype, "multiChoice", 2);
|
|
120
|
+
h([
|
|
121
|
+
o({ type: String })
|
|
122
|
+
], l.prototype, "size", 2);
|
|
123
|
+
h([
|
|
124
|
+
o({ type: String, reflect: !0 })
|
|
125
|
+
], l.prototype, "mode", 2);
|
|
126
|
+
h([
|
|
127
|
+
n()
|
|
128
|
+
], l.prototype, "hasScrollLeft", 2);
|
|
129
|
+
h([
|
|
130
|
+
n()
|
|
131
|
+
], l.prototype, "hasScrollRight", 2);
|
|
132
|
+
h([
|
|
133
|
+
S({ slot: "" })
|
|
134
|
+
], l.prototype, "chips", 2);
|
|
135
|
+
h([
|
|
136
|
+
f(".chips-container")
|
|
137
|
+
], l.prototype, "chipsContainer", 2);
|
|
138
|
+
l = h([
|
|
139
|
+
d("ds-chips")
|
|
140
|
+
], l);
|
|
141
|
+
export {
|
|
142
|
+
l as DsChips
|
|
143
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as t } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const a = t`
|
|
6
|
+
.container {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
position: relative;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
position: relative;
|
|
11
|
+
--ds-chips-fade-width: 54px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.chips-container {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
scrollbar-width: none;
|
|
20
|
+
scroll-behavior: smooth;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.chips-container.scroll-left:before {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: var(--ds-chips-fade-width);
|
|
29
|
+
height: 100%;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
background: linear-gradient(
|
|
32
|
+
to right,
|
|
33
|
+
var(--ds-chips-fade-color) 0%,
|
|
34
|
+
var(--ds-chips-fade-color) 40%,
|
|
35
|
+
rgba(255, 255, 255, 0) 100%
|
|
36
|
+
);
|
|
37
|
+
z-index: var(--ds-z-index-default, 1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.chips-container.scroll-right:after {
|
|
41
|
+
content: '';
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
width: var(--ds-chips-fade-width);
|
|
46
|
+
height: 100%;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
background: linear-gradient(
|
|
49
|
+
to left,
|
|
50
|
+
var(--ds-chips-fade-color) 0%,
|
|
51
|
+
var(--ds-chips-fade-color) 40%,
|
|
52
|
+
rgba(255, 255, 255, 0) 100%
|
|
53
|
+
);
|
|
54
|
+
z-index: var(--ds-z-index-default, 1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//.chips-container.scroll-left.scroll-right {
|
|
58
|
+
// mask-image: linear-gradient(
|
|
59
|
+
// to right,
|
|
60
|
+
// rgba(0, 0, 0, 0) 0px,
|
|
61
|
+
// rgba(0, 0, 0, 0) 32px,
|
|
62
|
+
// rgba(0, 0, 0, 1) 48px,
|
|
63
|
+
// rgba(0, 0, 0, 1) calc(100% - 48px),
|
|
64
|
+
// rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
65
|
+
// rgba(0, 0, 0, 0) 100%
|
|
66
|
+
// );
|
|
67
|
+
//}
|
|
68
|
+
|
|
69
|
+
.chips-container::-webkit-scrollbar {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
::slotted(*) {
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
flex: 0 1 auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.scroll-button {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0;
|
|
81
|
+
z-index: 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.scroll-button.left {
|
|
85
|
+
left: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.scroll-button.right {
|
|
89
|
+
right: 0;
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
export {
|
|
93
|
+
a as commonStyles
|
|
94
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { UiKitElement as y } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as g } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { formatNumber as l } from "../../utils/formatNumber/formatNumber.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { nothing as c, html as a } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
6
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
7
|
+
import { property as i } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { classMap as m } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { commonStyles as d } from "./styles/common.styles.js";
|
|
10
|
+
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (n, r, s, p) => {
|
|
11
|
+
for (var o = p > 1 ? void 0 : p ? b(r, s) : r, u = n.length - 1, h; u >= 0; u--)
|
|
12
|
+
(h = n[u]) && (o = (p ? h(r, s, o) : h(o)) || o);
|
|
13
|
+
return p && o && S(r, s, o), o;
|
|
14
|
+
};
|
|
15
|
+
let t = class extends y {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.minimumFractionDigits = 0, this.maximumFractionDigits = 20, this.amountSize = "medium", this.amountWeight = "medium", this.currencySize = "medium", this.currencyWeight = "medium", this.periodSize = "medium", this.periodWeight = "medium", this.noteSize = "medium", this.noteWeight = "medium";
|
|
18
|
+
}
|
|
19
|
+
get valueTemplate() {
|
|
20
|
+
const { formattedValue: n, unitSymbol: r, unitSymbolPosition: s } = l({
|
|
21
|
+
value: this.amountNumber ?? 0,
|
|
22
|
+
locale: this.locale,
|
|
23
|
+
style: "currency",
|
|
24
|
+
currency: this.currencyCode,
|
|
25
|
+
localeMatcher: "lookup",
|
|
26
|
+
minimumFractionDigits: this.minimumFractionDigits,
|
|
27
|
+
maximumFractionDigits: this.maximumFractionDigits
|
|
28
|
+
}), p = this.amountText || n, o = {
|
|
29
|
+
amount: !0,
|
|
30
|
+
text: !0,
|
|
31
|
+
[`size-${this.amountSize}`]: !0,
|
|
32
|
+
[`weight-${this.amountWeight}`]: !0
|
|
33
|
+
}, u = {
|
|
34
|
+
currency: !0,
|
|
35
|
+
left: s === "left",
|
|
36
|
+
right: s === "right",
|
|
37
|
+
text: !0,
|
|
38
|
+
[`size-${this.currencySize}`]: !0,
|
|
39
|
+
[`weight-${this.currencyWeight}`]: !0
|
|
40
|
+
};
|
|
41
|
+
return a`
|
|
42
|
+
${s === "left" ? a`<span class=${m(u)}>${r}</span>` : c}
|
|
43
|
+
<span class=${m(o)}>${p}</span>
|
|
44
|
+
${s === "right" ? a`<span class=${m(u)}>${r}</span>` : c}
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
get periodTemplate() {
|
|
48
|
+
if (!this.period) return c;
|
|
49
|
+
const n = new Intl.DisplayNames(this.locale, { type: "dateTimeField" }), r = {
|
|
50
|
+
period: !0,
|
|
51
|
+
text: !0,
|
|
52
|
+
[`size-${this.periodSize}`]: !0,
|
|
53
|
+
[`weight-${this.periodWeight}`]: !0
|
|
54
|
+
};
|
|
55
|
+
return a`
|
|
56
|
+
<span class=${m(r)}"period">/${n.of(this.period)}</span>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
get noteTemplate() {
|
|
60
|
+
if (!this.note) return c;
|
|
61
|
+
const n = {
|
|
62
|
+
note: !0,
|
|
63
|
+
text: !0,
|
|
64
|
+
[`size-${this.noteSize}`]: !0,
|
|
65
|
+
[`weight-${this.noteWeight}`]: !0
|
|
66
|
+
};
|
|
67
|
+
return a` <span class=${m(n)}>${this.note}</span> `;
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return a`
|
|
71
|
+
<div class="container">
|
|
72
|
+
${this.valueTemplate}
|
|
73
|
+
${this.noteTemplate}
|
|
74
|
+
${this.periodTemplate}
|
|
75
|
+
</div>
|
|
76
|
+
`;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
t.styles = [d];
|
|
80
|
+
e([
|
|
81
|
+
i({ type: String })
|
|
82
|
+
], t.prototype, "locale", 2);
|
|
83
|
+
e([
|
|
84
|
+
i({ type: String, attribute: "currency-code" })
|
|
85
|
+
], t.prototype, "currencyCode", 2);
|
|
86
|
+
e([
|
|
87
|
+
i({ type: String, attribute: "amount-text" })
|
|
88
|
+
], t.prototype, "amountText", 2);
|
|
89
|
+
e([
|
|
90
|
+
i({ type: Number, attribute: "amount-number" })
|
|
91
|
+
], t.prototype, "amountNumber", 2);
|
|
92
|
+
e([
|
|
93
|
+
i({ type: Number, attribute: "minimum-fraction-digits" })
|
|
94
|
+
], t.prototype, "minimumFractionDigits", 2);
|
|
95
|
+
e([
|
|
96
|
+
i({ type: Number, attribute: "maximum-fraction-digits" })
|
|
97
|
+
], t.prototype, "maximumFractionDigits", 2);
|
|
98
|
+
e([
|
|
99
|
+
i({ type: String })
|
|
100
|
+
], t.prototype, "period", 2);
|
|
101
|
+
e([
|
|
102
|
+
i({ type: String })
|
|
103
|
+
], t.prototype, "note", 2);
|
|
104
|
+
e([
|
|
105
|
+
i({ type: String, attribute: "thousand-separator" })
|
|
106
|
+
], t.prototype, "thousandSeparator", 2);
|
|
107
|
+
e([
|
|
108
|
+
i({ type: String, attribute: "fraction-separator" })
|
|
109
|
+
], t.prototype, "fractionSeparator", 2);
|
|
110
|
+
e([
|
|
111
|
+
i({ type: String, attribute: "amount-size" })
|
|
112
|
+
], t.prototype, "amountSize", 2);
|
|
113
|
+
e([
|
|
114
|
+
i({ type: String, attribute: "amount-weight" })
|
|
115
|
+
], t.prototype, "amountWeight", 2);
|
|
116
|
+
e([
|
|
117
|
+
i({ type: String, attribute: "currency-size" })
|
|
118
|
+
], t.prototype, "currencySize", 2);
|
|
119
|
+
e([
|
|
120
|
+
i({ type: String, attribute: "currency-weight" })
|
|
121
|
+
], t.prototype, "currencyWeight", 2);
|
|
122
|
+
e([
|
|
123
|
+
i({ type: String, attribute: "period-size" })
|
|
124
|
+
], t.prototype, "periodSize", 2);
|
|
125
|
+
e([
|
|
126
|
+
i({ type: String, attribute: "period-weight" })
|
|
127
|
+
], t.prototype, "periodWeight", 2);
|
|
128
|
+
e([
|
|
129
|
+
i({ type: String, attribute: "note-size" })
|
|
130
|
+
], t.prototype, "noteSize", 2);
|
|
131
|
+
e([
|
|
132
|
+
i({ type: String, attribute: "note-weight" })
|
|
133
|
+
], t.prototype, "noteWeight", 2);
|
|
134
|
+
t = e([
|
|
135
|
+
g("ds-currency")
|
|
136
|
+
], t);
|
|
137
|
+
export {
|
|
138
|
+
t as DsCurrency
|
|
139
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as i } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const s = i`
|
|
6
|
+
:host {
|
|
7
|
+
display: inline;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: flex-end;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
export {
|
|
16
|
+
s as commonStyles
|
|
17
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { UiKitElement as p } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as m } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as v } from "../../utils/booleanConverter.js";
|
|
4
|
+
import { debounce as u } from "../../utils/debounce.js";
|
|
5
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import { nothing as f, html as b } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
7
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
8
|
+
import { property as c } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { state as d } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
10
|
+
import { query as y } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js";
|
|
11
|
+
import { classMap as h } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
|
+
import { commonStyles as w } from "./styles/common.styles.js";
|
|
13
|
+
var O = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (e, t, r, n) => {
|
|
14
|
+
for (var o = n > 1 ? void 0 : n ? C(t, r) : t, l = e.length - 1, a; l >= 0; l--)
|
|
15
|
+
(a = e[l]) && (o = (n ? a(t, r, o) : a(o)) || o);
|
|
16
|
+
return n && o && O(t, r, o), o;
|
|
17
|
+
};
|
|
18
|
+
let s = class extends p {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.open = !1, this.size = "medium", this.hasBeenOpened = !1, this.hasScroll = !1, this.debouncedCheckScroll = u({ func: () => this.checkScroll() }), this.handleKeyDown = (e) => {
|
|
21
|
+
this.open && e.key === "Escape" && this.handleClose();
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
async updated(e) {
|
|
25
|
+
super.updated(e), !this.hasBeenOpened && e.has("open") && this.open && (this.hasBeenOpened = !0), e.has("open") && this.handleResizeObserver(), e.has("open") && this.open && (await this.updateComplete, this.requestUpdate());
|
|
26
|
+
}
|
|
27
|
+
async handleResizeObserver() {
|
|
28
|
+
var e;
|
|
29
|
+
document.body.style.overflow = this.open ? "hidden" : "", (e = this.resizeObserver) == null || e.disconnect(), this.content && (this.resizeObserver.observe(this.content), await new Promise(requestAnimationFrame), this.checkScroll());
|
|
30
|
+
}
|
|
31
|
+
get containerClasses() {
|
|
32
|
+
return {
|
|
33
|
+
container: !0,
|
|
34
|
+
close: !this.open,
|
|
35
|
+
"with-scroll": this.open && this.hasScroll
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
get dialogClasses() {
|
|
39
|
+
return {
|
|
40
|
+
dialog: !0,
|
|
41
|
+
[this.size]: !!this.size
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
handleClose() {
|
|
45
|
+
this.open = !1, this.dispatchEvent(
|
|
46
|
+
new Event("ds-dialog:close", {
|
|
47
|
+
bubbles: !0,
|
|
48
|
+
composed: !0
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
connectedCallback() {
|
|
53
|
+
super.connectedCallback(), window.addEventListener("keydown", this.handleKeyDown), this.resizeObserver = new ResizeObserver(this.debouncedCheckScroll), this.handleResizeObserver();
|
|
54
|
+
}
|
|
55
|
+
disconnectedCallback() {
|
|
56
|
+
var e;
|
|
57
|
+
super.disconnectedCallback(), window.removeEventListener("keydown", this.handleKeyDown), document.body.style.overflow = "", (e = this.resizeObserver) == null || e.disconnect();
|
|
58
|
+
}
|
|
59
|
+
checkScroll() {
|
|
60
|
+
var e, t;
|
|
61
|
+
this.hasScroll = ((e = this.content) == null ? void 0 : e.scrollHeight) > ((t = this.content) == null ? void 0 : t.clientHeight);
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return !this.hasBeenOpened && !this.open ? f : b`
|
|
65
|
+
<style>
|
|
66
|
+
:host {
|
|
67
|
+
display: ${this.open ? "flex" : "none"};
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
|
|
71
|
+
<div class=${h(this.containerClasses)}>
|
|
72
|
+
<div class="overlay" @click=${this.handleClose}></div>
|
|
73
|
+
<dialog ?open=${this.open} data-testid="ds-dialog-container" class=${h(this.dialogClasses)}>
|
|
74
|
+
<slot name="close-button" @click=${this.handleClose}></slot>
|
|
75
|
+
<div class="content-container">
|
|
76
|
+
<div tabindex="0" class="content ds-scroll">
|
|
77
|
+
<slot @slotchange=${this.handleResizeObserver}></slot>
|
|
78
|
+
</div>
|
|
79
|
+
<slot name="footer"></slot>
|
|
80
|
+
</div>
|
|
81
|
+
</dialog>
|
|
82
|
+
</div>
|
|
83
|
+
`;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
s.styles = [w];
|
|
87
|
+
i([
|
|
88
|
+
c({ type: Boolean, converter: v })
|
|
89
|
+
], s.prototype, "open", 2);
|
|
90
|
+
i([
|
|
91
|
+
c({ type: String })
|
|
92
|
+
], s.prototype, "size", 2);
|
|
93
|
+
i([
|
|
94
|
+
d()
|
|
95
|
+
], s.prototype, "hasBeenOpened", 2);
|
|
96
|
+
i([
|
|
97
|
+
d()
|
|
98
|
+
], s.prototype, "hasScroll", 2);
|
|
99
|
+
i([
|
|
100
|
+
y(".content")
|
|
101
|
+
], s.prototype, "content", 2);
|
|
102
|
+
s = i([
|
|
103
|
+
m("ds-dialog")
|
|
104
|
+
], s);
|
|
105
|
+
export {
|
|
106
|
+
s as DsDialog
|
|
107
|
+
};
|