@daikin-oss/design-system-web-components 1.0.0 → 1.2.0
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/CHANGELOG.md +127 -0
- package/LICENSE +1 -1
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/dds-form-element.cjs +139 -0
- package/dist/cjs/base/dds-form-element.d.cts +100 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -3
- package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +67 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs/components/button/daikin-button.cjs +35 -13
- package/dist/cjs/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs/components/calendar/daikin-calendar.cjs +547 -0
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs/components/calendar/index.cjs +7 -0
- package/dist/cjs/components/calendar/index.d.cts +1 -0
- package/dist/cjs/components/card/daikin-card.cjs +1 -1
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +13 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +13 -12
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +611 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +105 -0
- package/dist/cjs/components/date-picker/index.cjs +7 -0
- package/dist/cjs/components/date-picker/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +181 -86
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +48 -18
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +97 -36
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +6 -1
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +30 -14
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +18 -2
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +12 -2
- package/dist/cjs/components/index.cjs +55 -0
- package/dist/cjs/components/index.d.cts +11 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +22 -0
- package/dist/cjs/components/list/daikin-list.cjs +75 -3
- package/dist/cjs/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +25 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +33 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs/components/logo/index.cjs +7 -0
- package/dist/cjs/components/logo/index.d.cts +1 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs/components/menu/index.cjs +7 -0
- package/dist/cjs/components/menu/index.d.cts +1 -0
- package/dist/cjs/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs/components/modal/index.cjs +7 -0
- package/dist/cjs/components/modal/index.d.cts +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs/components/modal-footer/index.cjs +7 -0
- package/dist/cjs/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs/components/modal-header/index.cjs +7 -0
- package/dist/cjs/components/modal-header/index.d.cts +1 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +2 -2
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs/components/slider/index.cjs +7 -0
- package/dist/cjs/components/slider/index.d.cts +1 -0
- package/dist/cjs/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs/components/table/daikin-table.cjs +42 -4
- package/dist/cjs/components/table/daikin-table.d.cts +5 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +1 -1
- package/dist/cjs/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs/components/text-field/daikin-text-field.cjs +149 -52
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +28 -18
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +12 -6
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +3 -2
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs/controllers/click-outside.cjs +3 -1
- package/dist/cjs/controllers/focus-trap.cjs +42 -0
- package/dist/cjs/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs/index.cjs +55 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +151 -0
- package/dist/cjs/utils/calendar-common.d.cts +64 -0
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs/utils/notification-common.cjs +19 -15
- package/dist/cjs/utils/notification-common.d.cts +1 -1
- package/dist/cjs/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/dds-form-element.cjs +139 -0
- package/dist/cjs-dev/base/dds-form-element.d.cts +100 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -3
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +67 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +35 -13
- package/dist/cjs-dev/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +558 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs-dev/components/calendar/index.cjs +7 -0
- package/dist/cjs-dev/components/calendar/index.d.cts +1 -0
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -1
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +13 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +13 -12
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs-dev/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs-dev/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +622 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +105 -0
- package/dist/cjs-dev/components/date-picker/index.cjs +7 -0
- package/dist/cjs-dev/components/date-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +181 -86
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +48 -18
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +97 -36
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +6 -1
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +30 -14
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +18 -2
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +12 -2
- package/dist/cjs-dev/components/index.cjs +55 -0
- package/dist/cjs-dev/components/index.d.cts +11 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +22 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +75 -3
- package/dist/cjs-dev/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +25 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +33 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs-dev/components/logo/index.cjs +7 -0
- package/dist/cjs-dev/components/logo/index.d.cts +1 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs-dev/components/menu/index.cjs +7 -0
- package/dist/cjs-dev/components/menu/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs-dev/components/modal/index.cjs +7 -0
- package/dist/cjs-dev/components/modal/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs-dev/components/modal-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs-dev/components/modal-header/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +2 -2
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs-dev/components/slider/index.cjs +7 -0
- package/dist/cjs-dev/components/slider/index.d.cts +1 -0
- package/dist/cjs-dev/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs-dev/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +42 -4
- package/dist/cjs-dev/components/table/daikin-table.d.cts +5 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +1 -1
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +149 -52
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +28 -18
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +12 -6
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +3 -2
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs-dev/controllers/click-outside.cjs +3 -1
- package/dist/cjs-dev/controllers/focus-trap.cjs +42 -0
- package/dist/cjs-dev/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs-dev/index.cjs +55 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +151 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +64 -0
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs-dev/utils/notification-common.cjs +19 -15
- package/dist/cjs-dev/utils/notification-common.d.cts +1 -1
- package/dist/cjs-dev/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs-dev/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/dds-form-element.d.ts +100 -0
- package/dist/es/base/dds-form-element.js +139 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +7 -4
- package/dist/es/components/avatar/daikin-avatar.d.ts +67 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es/components/button/daikin-button.d.ts +20 -10
- package/dist/es/components/button/daikin-button.js +36 -14
- package/dist/es/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es/components/calendar/daikin-calendar.js +548 -0
- package/dist/es/components/calendar/index.d.ts +1 -0
- package/dist/es/components/calendar/index.js +4 -0
- package/dist/es/components/card/daikin-card.js +2 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es/components/card-header/daikin-card-header.js +1 -1
- package/dist/es/components/carousel/daikin-carousel.js +1 -1
- package/dist/es/components/carousel-item/daikin-carousel-item.js +1 -1
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +13 -12
- package/dist/es/components/checkbox/daikin-checkbox.js +14 -17
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es/components/checkbox-group/index.d.ts +1 -0
- package/dist/es/components/checkbox-group/index.js +4 -0
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +105 -0
- package/dist/es/components/date-picker/daikin-date-picker.js +612 -0
- package/dist/es/components/date-picker/index.d.ts +1 -0
- package/dist/es/components/date-picker/index.js +4 -0
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +48 -18
- package/dist/es/components/dropdown/daikin-dropdown.js +182 -87
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +6 -1
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +98 -37
- package/dist/es/components/icon/daikin-icon.js +1 -1
- package/dist/es/components/icon/icons.json.d.ts +30 -14
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +12 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +19 -3
- package/dist/es/components/index.d.ts +11 -0
- package/dist/es/components/index.js +22 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es/components/input-group/daikin-input-group.d.ts +22 -0
- package/dist/es/components/input-group/daikin-input-group.js +5 -5
- package/dist/es/components/link/daikin-link.js +1 -1
- package/dist/es/components/list/daikin-list.d.ts +16 -0
- package/dist/es/components/list/daikin-list.js +76 -4
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es/components/list-item/daikin-list-item.js +26 -6
- package/dist/es/components/loading/daikin-loading.d.ts +33 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- package/dist/es/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es/components/logo/daikin-logo.js +106 -0
- package/dist/es/components/logo/index.d.ts +1 -0
- package/dist/es/components/logo/index.js +4 -0
- package/dist/es/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es/components/menu/daikin-menu.js +206 -0
- package/dist/es/components/menu/index.d.ts +1 -0
- package/dist/es/components/menu/index.js +4 -0
- package/dist/es/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es/components/modal/daikin-modal.js +116 -0
- package/dist/es/components/modal/index.d.ts +1 -0
- package/dist/es/components/modal/index.js +4 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es/components/modal-footer/index.d.ts +1 -0
- package/dist/es/components/modal-footer/index.js +4 -0
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es/components/modal-header/index.d.ts +1 -0
- package/dist/es/components/modal-header/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.js +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es/components/radio/daikin-radio.js +5 -14
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es/components/select/daikin-select.js +1 -1
- package/dist/es/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es/components/slider/daikin-slider.js +264 -0
- package/dist/es/components/slider/index.d.ts +1 -0
- package/dist/es/components/slider/index.js +4 -0
- package/dist/es/components/slider/slider-utils.d.ts +37 -0
- package/dist/es/components/slider/slider-utils.js +57 -0
- package/dist/es/components/tab/daikin-tab.js +1 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es/components/table/daikin-table.d.ts +5 -0
- package/dist/es/components/table/daikin-table.js +43 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +1 -1
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +1 -1
- package/dist/es/components/tabs/daikin-tabs.js +3 -3
- package/dist/es/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es/components/text-area/daikin-text-area.js +5 -14
- package/dist/es/components/text-field/daikin-text-field.d.ts +28 -18
- package/dist/es/components/text-field/daikin-text-field.js +150 -53
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es/components/toggle/daikin-toggle.js +5 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +3 -2
- package/dist/es/components/tooltip/daikin-tooltip.js +13 -7
- package/dist/es/components/tree/daikin-tree.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es/controllers/click-outside.js +3 -1
- package/dist/es/controllers/focus-trap.d.ts +10 -0
- package/dist/es/controllers/focus-trap.js +42 -0
- package/dist/es/index.js +22 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +64 -0
- package/dist/es/utils/calendar-common.js +151 -0
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -0
- package/dist/es/utils/notification-common.d.ts +1 -1
- package/dist/es/utils/notification-common.js +19 -15
- package/dist/es/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es/{components/tabs → utils}/scroller.js +20 -12
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/dds-form-element.d.ts +100 -0
- package/dist/es-dev/base/dds-form-element.js +139 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +7 -4
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +67 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +20 -10
- package/dist/es-dev/components/button/daikin-button.js +36 -14
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +559 -0
- package/dist/es-dev/components/calendar/index.d.ts +1 -0
- package/dist/es-dev/components/calendar/index.js +4 -0
- package/dist/es-dev/components/card/daikin-card.js +2 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -1
- package/dist/es-dev/components/carousel/daikin-carousel.js +1 -1
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +1 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +13 -12
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +14 -17
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es-dev/components/checkbox-group/index.d.ts +1 -0
- package/dist/es-dev/components/checkbox-group/index.js +4 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +105 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +623 -0
- package/dist/es-dev/components/date-picker/index.d.ts +1 -0
- package/dist/es-dev/components/date-picker/index.js +4 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +48 -18
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +182 -87
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +6 -1
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +98 -37
- package/dist/es-dev/components/icon/daikin-icon.js +1 -1
- package/dist/es-dev/components/icon/icons.json.d.ts +30 -14
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +12 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +19 -3
- package/dist/es-dev/components/index.d.ts +11 -0
- package/dist/es-dev/components/index.js +22 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +22 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +5 -5
- package/dist/es-dev/components/link/daikin-link.js +1 -1
- package/dist/es-dev/components/list/daikin-list.d.ts +16 -0
- package/dist/es-dev/components/list/daikin-list.js +76 -4
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es-dev/components/list-item/daikin-list-item.js +26 -6
- package/dist/es-dev/components/loading/daikin-loading.d.ts +33 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- package/dist/es-dev/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es-dev/components/logo/daikin-logo.js +106 -0
- package/dist/es-dev/components/logo/index.d.ts +1 -0
- package/dist/es-dev/components/logo/index.js +4 -0
- package/dist/es-dev/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es-dev/components/menu/daikin-menu.js +206 -0
- package/dist/es-dev/components/menu/index.d.ts +1 -0
- package/dist/es-dev/components/menu/index.js +4 -0
- package/dist/es-dev/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es-dev/components/modal/daikin-modal.js +116 -0
- package/dist/es-dev/components/modal/index.d.ts +1 -0
- package/dist/es-dev/components/modal/index.js +4 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es-dev/components/modal-footer/index.d.ts +1 -0
- package/dist/es-dev/components/modal-footer/index.js +4 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es-dev/components/modal-header/index.d.ts +1 -0
- package/dist/es-dev/components/modal-header/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es-dev/components/radio/daikin-radio.js +5 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es-dev/components/select/daikin-select.js +1 -1
- package/dist/es-dev/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es-dev/components/slider/daikin-slider.js +264 -0
- package/dist/es-dev/components/slider/index.d.ts +1 -0
- package/dist/es-dev/components/slider/index.js +4 -0
- package/dist/es-dev/components/slider/slider-utils.d.ts +37 -0
- package/dist/es-dev/components/slider/slider-utils.js +57 -0
- package/dist/es-dev/components/tab/daikin-tab.js +1 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +5 -0
- package/dist/es-dev/components/table/daikin-table.js +43 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +1 -1
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +1 -1
- package/dist/es-dev/components/tabs/daikin-tabs.js +3 -3
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es-dev/components/text-area/daikin-text-area.js +5 -14
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +28 -18
- package/dist/es-dev/components/text-field/daikin-text-field.js +150 -53
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +3 -2
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +13 -7
- package/dist/es-dev/components/tree/daikin-tree.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es-dev/controllers/click-outside.js +3 -1
- package/dist/es-dev/controllers/focus-trap.d.ts +10 -0
- package/dist/es-dev/controllers/focus-trap.js +42 -0
- package/dist/es-dev/index.js +22 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +64 -0
- package/dist/es-dev/utils/calendar-common.js +151 -0
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -0
- package/dist/es-dev/utils/notification-common.d.ts +1 -1
- package/dist/es-dev/utils/notification-common.js +19 -15
- package/dist/es-dev/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es-dev/{components/tabs → utils}/scroller.js +20 -12
- package/icons/alarm.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/chevron-down.svg +3 -3
- package/icons/chevron-left.svg +2 -2
- package/icons/chevron-right.svg +2 -2
- package/icons/chevron-up.svg +2 -2
- package/icons/close.svg +3 -0
- package/icons/dropdown-chevron-down.svg +3 -3
- package/icons/error.svg +3 -0
- package/icons/information.svg +3 -0
- package/icons/logo-negative.svg +10 -0
- package/icons/logo-positive.svg +10 -0
- package/icons/password-hidden.svg +3 -0
- package/icons/password-visible.svg +3 -0
- package/icons/profile.svg +4 -0
- package/icons/pulldown-down.svg +3 -0
- package/icons/search.svg +3 -0
- package/icons/success.svg +3 -0
- package/icons/warning.svg +3 -0
- package/package.json +7 -3
- package/icons/cross.svg +0 -3
- package/icons/notification-close.svg +0 -5
- package/icons/status-alarm.svg +0 -5
- package/icons/status-error.svg +0 -3
- package/icons/status-information.svg +0 -5
- package/icons/status-negative.svg +0 -5
- package/icons/status-positive.svg +0 -5
- package/icons/status-warning.svg +0 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css,
|
|
2
|
+
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
3
|
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
6
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
7
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -33,10 +34,14 @@ const cvaRow = cva(
|
|
|
33
34
|
{
|
|
34
35
|
variants: {
|
|
35
36
|
selected: {
|
|
36
|
-
false: [
|
|
37
|
+
false: [
|
|
38
|
+
"group-[:not([data-hover])]:media-hover:bg-ddt-color-common-surface-hover",
|
|
39
|
+
"data-[hover]:bg-ddt-color-common-surface-hover"
|
|
40
|
+
],
|
|
37
41
|
true: [
|
|
38
42
|
"bg-ddt-color-common-surface-selected-default",
|
|
39
|
-
"hover:bg-ddt-color-common-surface-selected-hover"
|
|
43
|
+
"group-[:not([data-hover])]:media-hover:bg-ddt-color-common-surface-selected-hover",
|
|
44
|
+
"data-[hover]:bg-ddt-color-common-surface-selected-hover"
|
|
40
45
|
]
|
|
41
46
|
}
|
|
42
47
|
}
|
|
@@ -55,6 +60,8 @@ let DaikinTable = class extends DDSElement {
|
|
|
55
60
|
this.sortFunction = null;
|
|
56
61
|
this._bulkRowsCheckState = "unchecked";
|
|
57
62
|
this._currentView = [];
|
|
63
|
+
this._currentTouchHoverRowId = null;
|
|
64
|
+
this._tableRef = createRef();
|
|
58
65
|
}
|
|
59
66
|
_updateCurrentView() {
|
|
60
67
|
var _a;
|
|
@@ -102,6 +109,23 @@ let DaikinTable = class extends DDSElement {
|
|
|
102
109
|
}
|
|
103
110
|
this.dispatchEvent(new Event("change-sort"));
|
|
104
111
|
}
|
|
112
|
+
_handleTouchMove(event) {
|
|
113
|
+
var _a;
|
|
114
|
+
const touch = event.touches[0];
|
|
115
|
+
const row = touch && ((_a = (this.shadowRoot ?? document).elementsFromPoint(touch.clientX, touch.clientY).find(
|
|
116
|
+
(element) => {
|
|
117
|
+
var _a2;
|
|
118
|
+
return ((_a2 = this._tableRef.value) == null ? void 0 : _a2.contains(element)) && element.closest("tr");
|
|
119
|
+
}
|
|
120
|
+
)) == null ? void 0 : _a.closest("tr"));
|
|
121
|
+
this._currentTouchHoverRowId = (row == null ? void 0 : row.dataset.id) ?? null;
|
|
122
|
+
}
|
|
123
|
+
_handleTouchStart(event) {
|
|
124
|
+
this._handleTouchMove(event);
|
|
125
|
+
}
|
|
126
|
+
_handleTouchEnd() {
|
|
127
|
+
this._currentTouchHoverRowId = null;
|
|
128
|
+
}
|
|
105
129
|
_updateHeaderCheckboxState() {
|
|
106
130
|
const rowIdSet = new Set(this.rows.map(({ id }) => id));
|
|
107
131
|
this.selection = this.selection.filter((id) => rowIdSet.has(id));
|
|
@@ -143,7 +167,11 @@ let DaikinTable = class extends DDSElement {
|
|
|
143
167
|
</td>`
|
|
144
168
|
);
|
|
145
169
|
return html`<div class="flex flex-col gap-6 w-full font-daikinSerif">
|
|
146
|
-
<table
|
|
170
|
+
<table
|
|
171
|
+
${ref(this._tableRef)}
|
|
172
|
+
class="w-full group"
|
|
173
|
+
?data-hover=${this._currentTouchHoverRowId != null}
|
|
174
|
+
>
|
|
147
175
|
<thead>
|
|
148
176
|
<tr class="border-b border-b-ddt-color-divider">
|
|
149
177
|
${this.selectable ? html`<td class="w-12 p-0">
|
|
@@ -162,7 +190,11 @@ let DaikinTable = class extends DDSElement {
|
|
|
162
190
|
${createHeaderRow()}
|
|
163
191
|
</tr>
|
|
164
192
|
</thead>
|
|
165
|
-
<tbody
|
|
193
|
+
<tbody
|
|
194
|
+
@touchstart=${this._handleTouchStart}
|
|
195
|
+
@touchmove=${this._handleTouchMove}
|
|
196
|
+
@touchend=${this._handleTouchEnd}
|
|
197
|
+
>
|
|
166
198
|
${repeat(
|
|
167
199
|
this._currentView,
|
|
168
200
|
({ id }) => id,
|
|
@@ -170,6 +202,8 @@ let DaikinTable = class extends DDSElement {
|
|
|
170
202
|
class=${cvaRow({
|
|
171
203
|
selected: this.selectable && !!this.selection.find((id) => id === row.id)
|
|
172
204
|
})}
|
|
205
|
+
data-id=${row.id}
|
|
206
|
+
?data-hover=${this._currentTouchHoverRowId === row.id}
|
|
173
207
|
>
|
|
174
208
|
${this.selectable ? html`<td class="w-12 p-0">
|
|
175
209
|
<span
|
|
@@ -224,6 +258,7 @@ DaikinTable.styles = css`
|
|
|
224
258
|
:host {
|
|
225
259
|
display: block;
|
|
226
260
|
width: 100%;
|
|
261
|
+
overflow: scroll;
|
|
227
262
|
}
|
|
228
263
|
`;
|
|
229
264
|
__decorateClass([
|
|
@@ -256,6 +291,9 @@ __decorateClass([
|
|
|
256
291
|
__decorateClass([
|
|
257
292
|
state()
|
|
258
293
|
], DaikinTable.prototype, "_currentView", 2);
|
|
294
|
+
__decorateClass([
|
|
295
|
+
state()
|
|
296
|
+
], DaikinTable.prototype, "_currentTouchHoverRowId", 2);
|
|
259
297
|
DaikinTable = __decorateClass([
|
|
260
298
|
ddsElement("daikin-table")
|
|
261
299
|
], DaikinTable);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaCell: (props?: ({
|
|
4
|
-
alignment?: "
|
|
4
|
+
alignment?: "center" | "right" | "left" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
type TableCellVariantProps = MergeVariantProps<typeof cvaCell>;
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property } from "lit/decorators.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
5
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -25,7 +25,8 @@ const cvaCell = cva(
|
|
|
25
25
|
"min-h-12",
|
|
26
26
|
"px-4",
|
|
27
27
|
"py-3",
|
|
28
|
-
"text-ddt-color-common-text-primary"
|
|
28
|
+
"text-ddt-color-common-text-primary",
|
|
29
|
+
"break-all"
|
|
29
30
|
],
|
|
30
31
|
{
|
|
31
32
|
variants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaHeaderCell: (props?: ({
|
|
4
|
-
alignment?: "
|
|
4
|
+
alignment?: "center" | "right" | "left" | null | undefined;
|
|
5
5
|
sortable?: boolean | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
type TableHeaderCellVariantProps = MergeVariantProps<typeof cvaHeaderCell>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property } from "lit/decorators.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
5
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
5
5
|
import "../../base/define.js";
|
|
6
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
7
|
-
import { scrollIntoViewOnlyParent } from "
|
|
7
|
+
import { scrollIntoViewOnlyParent } from "../../utils/scroller.js";
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -92,7 +92,7 @@ let DaikinTabs = class extends DDSElement {
|
|
|
92
92
|
}
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
scrollIntoViewOnlyParent(selectedTab);
|
|
95
|
+
scrollIntoViewOnlyParent(selectedTab, "horizontal", false);
|
|
96
96
|
}
|
|
97
97
|
_updateTabStyle() {
|
|
98
98
|
const tabs = this._tabs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
3
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
4
4
|
/**
|
|
5
5
|
* The text area component is designed for multiline text input, similar to the HTML `<textarea>` tag.
|
|
@@ -24,18 +24,8 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
24
24
|
* <daikin-text-area name="name"></daikin-text-area>
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
export declare class DaikinTextArea extends
|
|
27
|
+
export declare class DaikinTextArea extends DDSFormElement {
|
|
28
28
|
static readonly styles: import('lit').CSSResult;
|
|
29
|
-
static readonly formAssociated = true;
|
|
30
|
-
private _internals;
|
|
31
|
-
/**
|
|
32
|
-
* The current value of the input, submitted as a name/value pair with form data.
|
|
33
|
-
*/
|
|
34
|
-
value: string;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the input, submitted as a name/value pair with form data.
|
|
37
|
-
*/
|
|
38
|
-
name: string;
|
|
39
29
|
/**
|
|
40
30
|
* Placeholder text.
|
|
41
31
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
-
import
|
|
5
|
+
import "../../base/dds-element.js";
|
|
6
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
7
|
import "../../base/define.js";
|
|
8
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
10
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -65,12 +66,9 @@ const cvaTextArea = cva(
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
let DaikinTextArea = class extends
|
|
69
|
+
let DaikinTextArea = class extends DDSFormElement {
|
|
69
70
|
constructor() {
|
|
70
71
|
super(...arguments);
|
|
71
|
-
this._internals = this.attachInternals();
|
|
72
|
-
this.value = "";
|
|
73
|
-
this.name = "";
|
|
74
72
|
this.placeholder = null;
|
|
75
73
|
this.disabled = false;
|
|
76
74
|
this.readonly = false;
|
|
@@ -83,7 +81,7 @@ let DaikinTextArea = class extends DDSElement {
|
|
|
83
81
|
return this.value.length;
|
|
84
82
|
}
|
|
85
83
|
_updateValue(value) {
|
|
86
|
-
this.
|
|
84
|
+
this.setFormValue(value);
|
|
87
85
|
}
|
|
88
86
|
_handleInput(e) {
|
|
89
87
|
this.value = e.target.value;
|
|
@@ -137,13 +135,6 @@ DaikinTextArea.styles = css`
|
|
|
137
135
|
position: relative;
|
|
138
136
|
}
|
|
139
137
|
`;
|
|
140
|
-
DaikinTextArea.formAssociated = true;
|
|
141
|
-
__decorateClass([
|
|
142
|
-
property({ type: String })
|
|
143
|
-
], DaikinTextArea.prototype, "value", 2);
|
|
144
|
-
__decorateClass([
|
|
145
|
-
property({ type: String, reflect: true })
|
|
146
|
-
], DaikinTextArea.prototype, "name", 2);
|
|
147
138
|
__decorateClass([
|
|
148
139
|
property({ type: String, reflect: true })
|
|
149
140
|
], DaikinTextArea.prototype, "placeholder", 2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import {
|
|
1
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
3
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
4
4
|
/**
|
|
5
5
|
* The text field component is a UI element that allows users to input single-line text data.
|
|
@@ -12,9 +12,13 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input>` element.
|
|
14
14
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
15
|
+
* @fires toggle - Emitted when the user toggles the password mask.
|
|
15
16
|
*
|
|
16
17
|
* @slot left-icon - Specify the icon you want to use on the left. You can also use something other than `daikin-icon`.
|
|
18
|
+
* Ignored if the type is "search" since the default icon is used.
|
|
19
|
+
*
|
|
17
20
|
* @slot right-icon - Specify the icon you want to use on the right. You can also use something other than `daikin-icon`.
|
|
21
|
+
* Ignored if the type is "search" since the default icon is used.
|
|
18
22
|
*
|
|
19
23
|
* @example
|
|
20
24
|
*
|
|
@@ -27,22 +31,12 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
27
31
|
* <daikin-text-field name="name"></daikin-text-field>
|
|
28
32
|
* ```
|
|
29
33
|
*/
|
|
30
|
-
export declare class DaikinTextField extends
|
|
34
|
+
export declare class DaikinTextField extends DDSFormElement {
|
|
31
35
|
static readonly styles: import('lit').CSSResult;
|
|
32
|
-
static readonly formAssociated = true;
|
|
33
|
-
private _internals;
|
|
34
36
|
/**
|
|
35
37
|
* Type of field.
|
|
36
38
|
*/
|
|
37
|
-
type: "text" | "email" | "tel" | "search";
|
|
38
|
-
/**
|
|
39
|
-
* The current value of the input, submitted as a name/value pair with form data.
|
|
40
|
-
*/
|
|
41
|
-
value: string;
|
|
42
|
-
/**
|
|
43
|
-
* The name of the input, submitted as a name/value pair with form data.
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
39
|
+
type: "text" | "password" | "email" | "tel" | "search";
|
|
46
40
|
/**
|
|
47
41
|
* Placeholder text.
|
|
48
42
|
*/
|
|
@@ -67,24 +61,40 @@ export declare class DaikinTextField extends DDSElement {
|
|
|
67
61
|
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
68
62
|
*/
|
|
69
63
|
error: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Minimum length of value.
|
|
66
|
+
*/
|
|
67
|
+
minlength: number | null;
|
|
70
68
|
/**
|
|
71
69
|
* Maximum length of value.
|
|
72
70
|
*/
|
|
73
|
-
maxlength
|
|
71
|
+
maxlength: number | null;
|
|
72
|
+
/**
|
|
73
|
+
* The pattern of value.
|
|
74
|
+
*/
|
|
75
|
+
pattern: string | null;
|
|
74
76
|
/**
|
|
75
77
|
* Value of `autocomplete` attribute of the internal `<input>`.
|
|
76
78
|
*/
|
|
77
79
|
autocomplete?: HTMLInputElement["autocomplete"];
|
|
80
|
+
/**
|
|
81
|
+
* When `type="password"`, whether to display the password with a black dot or as text.
|
|
82
|
+
*/
|
|
83
|
+
showPassword: boolean;
|
|
78
84
|
/**
|
|
79
85
|
* The label text used as the value of aria-label.
|
|
80
86
|
* Set automatically by `reflectInputGroup` method.
|
|
81
87
|
*/
|
|
82
88
|
private _label;
|
|
83
|
-
private
|
|
84
|
-
private
|
|
89
|
+
private _hasLeftSlot;
|
|
90
|
+
private _hasRightSlot;
|
|
91
|
+
private _handleChange;
|
|
85
92
|
private _handleSlotChange;
|
|
86
93
|
private _handleInput;
|
|
87
|
-
|
|
94
|
+
private _handleClearClick;
|
|
95
|
+
private _createIcon;
|
|
96
|
+
private _handleShowPasswordClick;
|
|
97
|
+
render(): TemplateResult<1>;
|
|
88
98
|
updated(changedProperties: PropertyValues<this>): void;
|
|
89
99
|
/**
|
|
90
100
|
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html, nothing } from "lit";
|
|
3
3
|
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
-
import
|
|
5
|
+
import "../../base/dds-element.js";
|
|
6
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
7
|
import "../../base/define.js";
|
|
8
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
10
|
+
import "../icon-button/daikin-icon-button.js";
|
|
9
11
|
var __defProp = Object.defineProperty;
|
|
10
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
13
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -24,7 +26,6 @@ const cvaInput = cva(
|
|
|
24
26
|
"h-full",
|
|
25
27
|
"bg-ddt-color-common-background-default",
|
|
26
28
|
"relative",
|
|
27
|
-
"px-2",
|
|
28
29
|
"rounded",
|
|
29
30
|
"overflow-hidden",
|
|
30
31
|
"font-daikinSerif",
|
|
@@ -38,12 +39,12 @@ const cvaInput = cva(
|
|
|
38
39
|
"define-[--color-state-focus,--color-base]/color-border",
|
|
39
40
|
"border",
|
|
40
41
|
"border-[--color-border]",
|
|
42
|
+
// Update `--color-base` depending on the state.
|
|
43
|
+
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
41
44
|
"enabled:text-ddt-color-common-text-primary",
|
|
42
45
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
43
46
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
44
47
|
"focus-visible:outline-2",
|
|
45
|
-
// Update `--color-base` depending on the state.
|
|
46
|
-
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
47
48
|
"disabled:var-color-ddt-color-common-disabled/color-base",
|
|
48
49
|
"disabled:text-ddt-color-common-disabled",
|
|
49
50
|
"disabled:bg-ddt-color-common-background-default",
|
|
@@ -67,6 +68,13 @@ const cvaInput = cva(
|
|
|
67
68
|
rightIcon: {
|
|
68
69
|
false: ["pr-4"],
|
|
69
70
|
true: ["pr-11"]
|
|
71
|
+
},
|
|
72
|
+
type: {
|
|
73
|
+
text: [],
|
|
74
|
+
password: [],
|
|
75
|
+
email: [],
|
|
76
|
+
tel: [],
|
|
77
|
+
search: ["[&::-webkit-search-cancel-button]:appearance-none"]
|
|
70
78
|
}
|
|
71
79
|
}
|
|
72
80
|
}
|
|
@@ -76,8 +84,8 @@ const cvaIcon = cva(
|
|
|
76
84
|
{
|
|
77
85
|
variants: {
|
|
78
86
|
icon: {
|
|
79
|
-
left: "left-3",
|
|
80
|
-
right: "right-3"
|
|
87
|
+
left: ["left-3"],
|
|
88
|
+
right: ["right-3"]
|
|
81
89
|
},
|
|
82
90
|
disabled: {
|
|
83
91
|
false: ["text-ddt-color-common-text-primary"],
|
|
@@ -86,21 +94,33 @@ const cvaIcon = cva(
|
|
|
86
94
|
}
|
|
87
95
|
}
|
|
88
96
|
);
|
|
89
|
-
|
|
97
|
+
const cvaShowPasswordIcon = cva(["icon-size-6"], {
|
|
98
|
+
variants: {
|
|
99
|
+
showPassword: {
|
|
100
|
+
false: ["i-daikin-password-hidden"],
|
|
101
|
+
true: ["i-daikin-password-visible"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
let DaikinTextField = class extends DDSFormElement {
|
|
90
106
|
constructor() {
|
|
91
107
|
super(...arguments);
|
|
92
|
-
this._internals = this.attachInternals();
|
|
93
108
|
this.type = "text";
|
|
94
|
-
this.value = "";
|
|
95
|
-
this.name = "";
|
|
96
109
|
this.placeholder = null;
|
|
97
110
|
this.readonly = false;
|
|
98
111
|
this.disabled = false;
|
|
99
112
|
this.required = false;
|
|
100
113
|
this.error = false;
|
|
114
|
+
this.minlength = null;
|
|
115
|
+
this.maxlength = null;
|
|
116
|
+
this.pattern = null;
|
|
117
|
+
this.showPassword = false;
|
|
101
118
|
this._label = null;
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
119
|
+
this._hasLeftSlot = false;
|
|
120
|
+
this._hasRightSlot = false;
|
|
121
|
+
}
|
|
122
|
+
_handleChange(event) {
|
|
123
|
+
this.dispatchEvent(new Event("change", event));
|
|
104
124
|
}
|
|
105
125
|
_handleSlotChange(event) {
|
|
106
126
|
const target = event.target;
|
|
@@ -108,60 +128,127 @@ let DaikinTextField = class extends DDSElement {
|
|
|
108
128
|
const hasIcon = !!target.assignedNodes().length;
|
|
109
129
|
switch (name) {
|
|
110
130
|
case "left-icon":
|
|
111
|
-
this.
|
|
131
|
+
this._hasLeftSlot = hasIcon;
|
|
112
132
|
break;
|
|
113
133
|
case "right-icon":
|
|
114
|
-
this.
|
|
134
|
+
this._hasRightSlot = hasIcon;
|
|
115
135
|
break;
|
|
116
136
|
}
|
|
117
137
|
}
|
|
118
|
-
_handleInput(
|
|
119
|
-
this.value =
|
|
120
|
-
this.
|
|
138
|
+
_handleInput(event) {
|
|
139
|
+
this.value = event.target.value;
|
|
140
|
+
this.setFormValue(this.value);
|
|
141
|
+
}
|
|
142
|
+
_handleClearClick() {
|
|
143
|
+
this.value = "";
|
|
144
|
+
}
|
|
145
|
+
_createIcon() {
|
|
146
|
+
switch (this.type) {
|
|
147
|
+
case "password":
|
|
148
|
+
return html`<daikin-icon-button
|
|
149
|
+
color="neutral"
|
|
150
|
+
variant="ghost"
|
|
151
|
+
?disabled=${this.disabled}
|
|
152
|
+
button-aria-label=${this.showPassword ? "Hide password" : "Show password"}
|
|
153
|
+
class="absolute right-3"
|
|
154
|
+
@click=${this._handleShowPasswordClick}
|
|
155
|
+
>
|
|
156
|
+
<span
|
|
157
|
+
class=${cvaShowPasswordIcon({ showPassword: this.showPassword })}
|
|
158
|
+
></span>
|
|
159
|
+
</daikin-icon-button>`;
|
|
160
|
+
case "search":
|
|
161
|
+
return html`<span
|
|
162
|
+
class=${cvaIcon({
|
|
163
|
+
icon: "left",
|
|
164
|
+
disabled: this.disabled
|
|
165
|
+
})}
|
|
166
|
+
>
|
|
167
|
+
<span class="i-daikin-search size-6"></span>
|
|
168
|
+
</span>
|
|
169
|
+
${!!this.value && !!this.value.length ? html`<daikin-icon-button
|
|
170
|
+
color="neutral"
|
|
171
|
+
variant="ghost"
|
|
172
|
+
?disabled=${this.disabled}
|
|
173
|
+
button-aria-label="Clear"
|
|
174
|
+
class="absolute right-3 size-6"
|
|
175
|
+
@click=${this._handleClearClick}
|
|
176
|
+
>
|
|
177
|
+
<span class="i-daikin-close"></span>
|
|
178
|
+
</daikin-icon-button>` : nothing}`;
|
|
179
|
+
default:
|
|
180
|
+
return html`<span
|
|
181
|
+
class=${cvaIcon({
|
|
182
|
+
icon: "left",
|
|
183
|
+
disabled: this.disabled
|
|
184
|
+
})}
|
|
185
|
+
>
|
|
186
|
+
<slot
|
|
187
|
+
name="left-icon"
|
|
188
|
+
class="icon-size-6"
|
|
189
|
+
@slotchange=${this._handleSlotChange}
|
|
190
|
+
></slot>
|
|
191
|
+
</span>
|
|
192
|
+
<span
|
|
193
|
+
class=${cvaIcon({
|
|
194
|
+
icon: "right",
|
|
195
|
+
disabled: this.disabled
|
|
196
|
+
})}
|
|
197
|
+
>
|
|
198
|
+
<slot
|
|
199
|
+
name="right-icon"
|
|
200
|
+
class="icon-size-6"
|
|
201
|
+
@slotchange=${this._handleSlotChange}
|
|
202
|
+
></slot>
|
|
203
|
+
</span>`;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
_handleShowPasswordClick() {
|
|
207
|
+
this.showPassword = !this.showPassword;
|
|
208
|
+
this.dispatchEvent(new Event("toggle"));
|
|
121
209
|
}
|
|
122
210
|
render() {
|
|
123
|
-
const
|
|
211
|
+
const error = !this.disabled && this.error;
|
|
212
|
+
const hasLeftSlot = this._hasLeftSlot;
|
|
213
|
+
const hasRightSlot = this._hasRightSlot;
|
|
214
|
+
const [leftIcon, rightIcon] = {
|
|
215
|
+
password: [false, true],
|
|
216
|
+
search: [true, !!this.value.length],
|
|
217
|
+
email: [hasLeftSlot, hasRightSlot],
|
|
218
|
+
tel: [hasLeftSlot, hasRightSlot],
|
|
219
|
+
text: [hasLeftSlot, hasRightSlot]
|
|
220
|
+
}[this.type];
|
|
221
|
+
const type = this.type === "password" && this.showPassword ? "text" : this.type;
|
|
124
222
|
return html`<input
|
|
125
223
|
class=${cvaInput({
|
|
126
|
-
error
|
|
127
|
-
leftIcon
|
|
128
|
-
rightIcon
|
|
224
|
+
error,
|
|
225
|
+
leftIcon,
|
|
226
|
+
rightIcon,
|
|
227
|
+
type: this.type
|
|
129
228
|
})}
|
|
130
|
-
type=${
|
|
229
|
+
type=${type}
|
|
131
230
|
placeholder=${ifDefined(this.placeholder ?? void 0)}
|
|
132
231
|
name=${ifDefined(this.name)}
|
|
133
|
-
|
|
232
|
+
minlength=${ifDefined(this.minlength ?? void 0)}
|
|
233
|
+
maxlength=${ifDefined(this.maxlength ?? void 0)}
|
|
234
|
+
pattern=${ifDefined(this.pattern ?? void 0)}
|
|
134
235
|
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
135
236
|
ifDefined(this.autocomplete)}
|
|
136
|
-
aria-label=${
|
|
137
|
-
ifDefined(this._label)}
|
|
237
|
+
aria-label=${ifDefined(this._label ?? void 0)}
|
|
138
238
|
.value=${this.value}
|
|
139
239
|
?disabled=${this.disabled}
|
|
140
240
|
?readonly=${this.readonly}
|
|
141
241
|
?required=${this.required}
|
|
142
|
-
@change=${
|
|
242
|
+
@change=${this._handleChange}
|
|
143
243
|
@input=${this._handleInput}
|
|
144
244
|
/>
|
|
145
|
-
|
|
146
|
-
<slot
|
|
147
|
-
name="left-icon"
|
|
148
|
-
class="icon-size-6"
|
|
149
|
-
@slotchange=${this._handleSlotChange}
|
|
150
|
-
></slot>
|
|
151
|
-
</div>
|
|
152
|
-
<div class=${cvaIcon({ icon: "right", disabled: this.disabled })}>
|
|
153
|
-
<slot
|
|
154
|
-
name="right-icon"
|
|
155
|
-
class="icon-size-6"
|
|
156
|
-
@slotchange=${this._handleSlotChange}
|
|
157
|
-
></slot>
|
|
158
|
-
</div>`;
|
|
245
|
+
${this._createIcon()}`;
|
|
159
246
|
}
|
|
160
247
|
updated(changedProperties) {
|
|
161
248
|
if (!changedProperties.has("value")) {
|
|
162
249
|
return;
|
|
163
250
|
}
|
|
164
|
-
this.
|
|
251
|
+
this.setFormValue(this.value);
|
|
165
252
|
}
|
|
166
253
|
/**
|
|
167
254
|
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
@@ -184,17 +271,18 @@ DaikinTextField.styles = css`
|
|
|
184
271
|
height: 3rem;
|
|
185
272
|
position: relative;
|
|
186
273
|
}
|
|
274
|
+
|
|
275
|
+
input::-ms-reveal {
|
|
276
|
+
display: none !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
input::-ms-clear {
|
|
280
|
+
display: none !important;
|
|
281
|
+
}
|
|
187
282
|
`;
|
|
188
|
-
DaikinTextField.formAssociated = true;
|
|
189
283
|
__decorateClass([
|
|
190
284
|
property({ type: String })
|
|
191
285
|
], DaikinTextField.prototype, "type", 2);
|
|
192
|
-
__decorateClass([
|
|
193
|
-
property({ type: String })
|
|
194
|
-
], DaikinTextField.prototype, "value", 2);
|
|
195
|
-
__decorateClass([
|
|
196
|
-
property({ type: String, reflect: true })
|
|
197
|
-
], DaikinTextField.prototype, "name", 2);
|
|
198
286
|
__decorateClass([
|
|
199
287
|
property({ type: String })
|
|
200
288
|
], DaikinTextField.prototype, "placeholder", 2);
|
|
@@ -211,20 +299,29 @@ __decorateClass([
|
|
|
211
299
|
property({ type: Boolean, reflect: true })
|
|
212
300
|
], DaikinTextField.prototype, "error", 2);
|
|
213
301
|
__decorateClass([
|
|
214
|
-
property({ type: Number })
|
|
302
|
+
property({ type: Number, reflect: true })
|
|
303
|
+
], DaikinTextField.prototype, "minlength", 2);
|
|
304
|
+
__decorateClass([
|
|
305
|
+
property({ type: Number, reflect: true })
|
|
215
306
|
], DaikinTextField.prototype, "maxlength", 2);
|
|
216
307
|
__decorateClass([
|
|
217
|
-
property({ type: String })
|
|
308
|
+
property({ type: String, reflect: true })
|
|
309
|
+
], DaikinTextField.prototype, "pattern", 2);
|
|
310
|
+
__decorateClass([
|
|
311
|
+
property({ type: String, reflect: true })
|
|
218
312
|
], DaikinTextField.prototype, "autocomplete", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
property({ type: Boolean, reflect: true, attribute: "show-password" })
|
|
315
|
+
], DaikinTextField.prototype, "showPassword", 2);
|
|
219
316
|
__decorateClass([
|
|
220
317
|
state()
|
|
221
318
|
], DaikinTextField.prototype, "_label", 2);
|
|
222
319
|
__decorateClass([
|
|
223
320
|
state()
|
|
224
|
-
], DaikinTextField.prototype, "
|
|
321
|
+
], DaikinTextField.prototype, "_hasLeftSlot", 2);
|
|
225
322
|
__decorateClass([
|
|
226
323
|
state()
|
|
227
|
-
], DaikinTextField.prototype, "
|
|
324
|
+
], DaikinTextField.prototype, "_hasRightSlot", 2);
|
|
228
325
|
DaikinTextField = __decorateClass([
|
|
229
326
|
ddsElement("daikin-text-field")
|
|
230
327
|
], DaikinTextField);
|
|
@@ -11,6 +11,8 @@ export type ToastNotificationVariantProps = MergeVariantProps<typeof cvaContaine
|
|
|
11
11
|
* Hierarchy:
|
|
12
12
|
* - `daikin-toast-notification-manager` > `daikin-toast-notification`
|
|
13
13
|
*
|
|
14
|
+
* @tokenImports ../../utils/notification-common.ts
|
|
15
|
+
*
|
|
14
16
|
* @fires close - A custom event emitted when a user clicks the close button.
|
|
15
17
|
*
|
|
16
18
|
* @slot A slot for the toast notification description content.
|