@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
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { unsafeCSS, css, LitElement, html, nothing } from "lit";
|
|
3
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { repeat } from "lit/directives/repeat.js";
|
|
6
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
7
|
+
import { tryParseDateFromProperty, parseDateFromProperty, cloneDate, isMonthOutOfRange, getDateByMonthOffsetClamped, formatDateForProperty, clampDate, isSameYearMonth, createDateClamped, calcWeeksOnCalendar, isDateOutOfRange, cvaIconButton, normalizeDate, DEFAULT_MIN_DATE, DEFAULT_MAX_DATE } from "../../utils/calendar-common.js";
|
|
8
|
+
import { scrollIntoViewOnlyParent } from "../../utils/scroller.js";
|
|
9
|
+
import "../icon-button/daikin-icon-button.js";
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
const MONTHS = [
|
|
21
|
+
["Jan", "January"],
|
|
22
|
+
["Feb", "February"],
|
|
23
|
+
["Mar", "March"],
|
|
24
|
+
["Apr", "April"],
|
|
25
|
+
["May", "May"],
|
|
26
|
+
["Jun", "June"],
|
|
27
|
+
["Jul", "July"],
|
|
28
|
+
["Aug", "August"],
|
|
29
|
+
["Sep", "September"],
|
|
30
|
+
["Oct", "October"],
|
|
31
|
+
["Nov", "November"],
|
|
32
|
+
["Dec", "December"]
|
|
33
|
+
];
|
|
34
|
+
const DAYS = [
|
|
35
|
+
["Sun", "Sunday"],
|
|
36
|
+
["Mon", "Monday"],
|
|
37
|
+
["Tue", "Tuesday"],
|
|
38
|
+
["Wed", "Wednesday"],
|
|
39
|
+
["Thu", "Thursday"],
|
|
40
|
+
["Fri", "Friday"],
|
|
41
|
+
["Sat", "Saturday"]
|
|
42
|
+
];
|
|
43
|
+
const cvaContentButton = cva(
|
|
44
|
+
[
|
|
45
|
+
"flex",
|
|
46
|
+
"items-center",
|
|
47
|
+
"justify-center",
|
|
48
|
+
"rounded-full",
|
|
49
|
+
"text-sm",
|
|
50
|
+
"outline",
|
|
51
|
+
"outline-2",
|
|
52
|
+
"outline-offset-2",
|
|
53
|
+
"outline-transparent",
|
|
54
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
55
|
+
"enabled:bg-[var(--color-primary)]",
|
|
56
|
+
"disabled:text-ddt-color-common-disabled"
|
|
57
|
+
],
|
|
58
|
+
{
|
|
59
|
+
variants: {
|
|
60
|
+
date: {
|
|
61
|
+
false: ["w-[calc((100%_-_3rem)/3)]", "h-8", "px-2"],
|
|
62
|
+
true: ["size-8"]
|
|
63
|
+
},
|
|
64
|
+
variant: {
|
|
65
|
+
default: [
|
|
66
|
+
"enabled:text-ddt-color-common-neutral-default",
|
|
67
|
+
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
68
|
+
"enabled:active:text-ddt-color-common-neutral-press",
|
|
69
|
+
"enabled:hover:var-color-ddt-color-common-surface-neutral-hover/color-primary",
|
|
70
|
+
"enabled:active:var-color-ddt-color-common-surface-neutral-press/color-primary"
|
|
71
|
+
],
|
|
72
|
+
selected: [
|
|
73
|
+
"enabled:text-ddt-color-common-text-inverse",
|
|
74
|
+
"var-color-ddt-color-common-brand-default/color-primary",
|
|
75
|
+
"hover:var-color-ddt-color-common-brand-hover/color-primary",
|
|
76
|
+
"active:var-color-ddt-color-common-brand-press/color-primary"
|
|
77
|
+
],
|
|
78
|
+
today: [
|
|
79
|
+
"enabled:text-ddt-color-common-neutral-default",
|
|
80
|
+
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
81
|
+
"enabled:active:text-ddt-color-common-neutral-press",
|
|
82
|
+
"enabled:border",
|
|
83
|
+
"enabled:border-ddt-color-common-neutral-default",
|
|
84
|
+
"enabled:hover:var-color-ddt-color-common-surface-neutral-hover/color-primary",
|
|
85
|
+
"enabled:active:var-color-ddt-color-common-surface-neutral-press/color-primary"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
function getToday() {
|
|
92
|
+
return normalizeDate(/* @__PURE__ */ new Date());
|
|
93
|
+
}
|
|
94
|
+
function getNextFocusDateByKey(date, event) {
|
|
95
|
+
const cloned = cloneDate(date);
|
|
96
|
+
const offset = {
|
|
97
|
+
ArrowUp: -7,
|
|
98
|
+
ArrowRight: 1,
|
|
99
|
+
ArrowDown: 7,
|
|
100
|
+
ArrowLeft: -1
|
|
101
|
+
}[event.key];
|
|
102
|
+
if (offset) {
|
|
103
|
+
cloned.setUTCDate(cloned.getUTCDate() + offset);
|
|
104
|
+
return cloned;
|
|
105
|
+
}
|
|
106
|
+
switch (event.key) {
|
|
107
|
+
case "Home":
|
|
108
|
+
cloned.setUTCDate(cloned.getUTCDate() - cloned.getUTCDay());
|
|
109
|
+
return cloned;
|
|
110
|
+
case "End":
|
|
111
|
+
cloned.setUTCDate(cloned.getUTCDate() + (6 - cloned.getUTCDay()));
|
|
112
|
+
return cloned;
|
|
113
|
+
case "PageUp":
|
|
114
|
+
return event.shiftKey ? getDateByMonthOffsetClamped(cloned, -12) : getDateByMonthOffsetClamped(cloned, -1);
|
|
115
|
+
case "PageDown":
|
|
116
|
+
return event.shiftKey ? getDateByMonthOffsetClamped(cloned, 12) : getDateByMonthOffsetClamped(cloned, 1);
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
let DaikinCalendar = class extends LitElement {
|
|
121
|
+
constructor() {
|
|
122
|
+
super(...arguments);
|
|
123
|
+
this.value = null;
|
|
124
|
+
this.min = "1900-01-01";
|
|
125
|
+
this.max = "2099-12-31";
|
|
126
|
+
this.defaultValue = null;
|
|
127
|
+
this.view = "day";
|
|
128
|
+
this._dateToBeFocused = null;
|
|
129
|
+
this._viewDate = getToday();
|
|
130
|
+
}
|
|
131
|
+
get _value() {
|
|
132
|
+
return tryParseDateFromProperty(this.value ?? "");
|
|
133
|
+
}
|
|
134
|
+
get _min() {
|
|
135
|
+
return tryParseDateFromProperty(this.min) ?? parseDateFromProperty(DEFAULT_MIN_DATE);
|
|
136
|
+
}
|
|
137
|
+
get _max() {
|
|
138
|
+
return tryParseDateFromProperty(this.max) ?? parseDateFromProperty(DEFAULT_MAX_DATE);
|
|
139
|
+
}
|
|
140
|
+
get _defaultValue() {
|
|
141
|
+
return tryParseDateFromProperty(this.defaultValue ?? "");
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The date that serves as the basis for the current view.
|
|
145
|
+
*/
|
|
146
|
+
get viewDate() {
|
|
147
|
+
return cloneDate(this._viewDate);
|
|
148
|
+
}
|
|
149
|
+
_emitSelect() {
|
|
150
|
+
this.dispatchEvent(
|
|
151
|
+
new Event("select", {
|
|
152
|
+
bubbles: true,
|
|
153
|
+
composed: true
|
|
154
|
+
})
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
_emitSelecting() {
|
|
158
|
+
this.dispatchEvent(
|
|
159
|
+
new Event("selecting", {
|
|
160
|
+
bubbles: true,
|
|
161
|
+
composed: true
|
|
162
|
+
})
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
_canNavigateMonth(date, offset) {
|
|
166
|
+
return !isMonthOutOfRange(
|
|
167
|
+
getDateByMonthOffsetClamped(date, offset),
|
|
168
|
+
this._min,
|
|
169
|
+
this._max
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
_navigateMonth(date, offset) {
|
|
173
|
+
this._viewDate = getDateByMonthOffsetClamped(date, offset);
|
|
174
|
+
}
|
|
175
|
+
_handleCalendarClick(date) {
|
|
176
|
+
this.value = formatDateForProperty(date);
|
|
177
|
+
this._emitSelect();
|
|
178
|
+
}
|
|
179
|
+
_handleMonthClick() {
|
|
180
|
+
this.view = this.view != "year" ? "year" : "month";
|
|
181
|
+
}
|
|
182
|
+
_handleYearAndMonthPickerClick(date) {
|
|
183
|
+
this.view = this.view === "year" ? "month" : "day";
|
|
184
|
+
this._viewDate = cloneDate(date);
|
|
185
|
+
this.value = formatDateForProperty(clampDate(date, this._min, this._max));
|
|
186
|
+
this._emitSelecting();
|
|
187
|
+
}
|
|
188
|
+
_handleCalendarKeyDown(event) {
|
|
189
|
+
const focused = (this.shadowRoot ?? this.ownerDocument).activeElement;
|
|
190
|
+
const focusedDateValue = focused == null ? void 0 : focused.dataset.date;
|
|
191
|
+
if (!focusedDateValue) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const focusedDate = parseDateFromProperty(focusedDateValue);
|
|
195
|
+
const nextFocusDate = getNextFocusDateByKey(focusedDate, event);
|
|
196
|
+
if (!nextFocusDate) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
event.preventDefault();
|
|
200
|
+
const dateToBeFocused = clampDate(nextFocusDate, this._min, this._max);
|
|
201
|
+
const dateButton = this.renderRoot.querySelector(
|
|
202
|
+
`[data-type=day][data-date="${formatDateForProperty(dateToBeFocused)}"]`
|
|
203
|
+
);
|
|
204
|
+
if (dateButton && isSameYearMonth(dateToBeFocused, focusedDate)) {
|
|
205
|
+
dateButton.focus();
|
|
206
|
+
} else {
|
|
207
|
+
this._dateToBeFocused = dateToBeFocused;
|
|
208
|
+
this._navigateMonth(
|
|
209
|
+
this._viewDate,
|
|
210
|
+
dateToBeFocused.getUTCFullYear() * 12 + dateToBeFocused.getUTCMonth() - (focusedDate.getUTCFullYear() * 12 + focusedDate.getUTCMonth())
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
_handleYearAndMonthPickerKeyDown(event) {
|
|
215
|
+
const offset = {
|
|
216
|
+
ArrowUp: -3,
|
|
217
|
+
ArrowRight: 1,
|
|
218
|
+
ArrowDown: 3,
|
|
219
|
+
ArrowLeft: -1
|
|
220
|
+
}[event.key];
|
|
221
|
+
if (!offset) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
const focused = (this.shadowRoot ?? this.ownerDocument).activeElement;
|
|
226
|
+
if (!focused) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const buttons = Array.from(
|
|
230
|
+
this.renderRoot.querySelectorAll(
|
|
231
|
+
`[data-type="${this.view}"]`
|
|
232
|
+
)
|
|
233
|
+
);
|
|
234
|
+
const focusedIndex = buttons.findIndex((button) => button === focused);
|
|
235
|
+
if (focusedIndex === -1) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const newIndex = (focusedIndex + offset + buttons.length) % buttons.length;
|
|
239
|
+
buttons[newIndex].focus();
|
|
240
|
+
}
|
|
241
|
+
_createYearAndMonthPickerContainer(children) {
|
|
242
|
+
return html`<div class="w-full h-72">
|
|
243
|
+
<div
|
|
244
|
+
role="radiogroup"
|
|
245
|
+
class="flex justify-start items-start flex-wrap gap-[1rem_1.5rem] w-full max-h-full pt-4 px-4 pb-4 overflow-auto"
|
|
246
|
+
@keydown=${this._handleYearAndMonthPickerKeyDown}
|
|
247
|
+
>
|
|
248
|
+
${children}
|
|
249
|
+
</div>
|
|
250
|
+
</div>`;
|
|
251
|
+
}
|
|
252
|
+
_createYearAndMonthPickerButton({
|
|
253
|
+
type,
|
|
254
|
+
disabled,
|
|
255
|
+
today,
|
|
256
|
+
selected,
|
|
257
|
+
focusable,
|
|
258
|
+
date,
|
|
259
|
+
text,
|
|
260
|
+
label
|
|
261
|
+
}) {
|
|
262
|
+
const variant = selected ? "selected" : today ? "today" : "default";
|
|
263
|
+
return html`<button
|
|
264
|
+
class=${cvaContentButton({ variant, date: false })}
|
|
265
|
+
?disabled=${disabled}
|
|
266
|
+
role="radio"
|
|
267
|
+
aria-checked=${selected}
|
|
268
|
+
aria-current=${today ? "date" : nothing}
|
|
269
|
+
aria-label=${ifDefined(label)}
|
|
270
|
+
data-type=${type}
|
|
271
|
+
tabindex=${focusable ? nothing : -1}
|
|
272
|
+
@click=${() => this._handleYearAndMonthPickerClick(date)}
|
|
273
|
+
>
|
|
274
|
+
${text}
|
|
275
|
+
</button>`;
|
|
276
|
+
}
|
|
277
|
+
_createYearPicker({
|
|
278
|
+
viewDate,
|
|
279
|
+
value,
|
|
280
|
+
min,
|
|
281
|
+
max
|
|
282
|
+
}) {
|
|
283
|
+
const selectedYear = value == null ? void 0 : value.getUTCFullYear();
|
|
284
|
+
const todayYear = getToday().getUTCFullYear();
|
|
285
|
+
const focusableYear = selectedYear ?? todayYear;
|
|
286
|
+
const years = Array.from(
|
|
287
|
+
{ length: max.getUTCFullYear() - min.getUTCFullYear() + 1 },
|
|
288
|
+
(_, index) => index + min.getUTCFullYear()
|
|
289
|
+
);
|
|
290
|
+
return this._createYearAndMonthPickerContainer(
|
|
291
|
+
html`${repeat(
|
|
292
|
+
years,
|
|
293
|
+
(year) => year,
|
|
294
|
+
(year) => {
|
|
295
|
+
const date = createDateClamped(
|
|
296
|
+
year,
|
|
297
|
+
viewDate.getUTCMonth(),
|
|
298
|
+
viewDate.getUTCDate()
|
|
299
|
+
);
|
|
300
|
+
return this._createYearAndMonthPickerButton({
|
|
301
|
+
type: "year",
|
|
302
|
+
disabled: false,
|
|
303
|
+
today: year === todayYear,
|
|
304
|
+
selected: year === selectedYear,
|
|
305
|
+
focusable: year === focusableYear,
|
|
306
|
+
date: clampDate(date, min, max),
|
|
307
|
+
text: String(year)
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
)}`
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
_createMonthPicker({
|
|
314
|
+
viewDate,
|
|
315
|
+
value,
|
|
316
|
+
min,
|
|
317
|
+
max
|
|
318
|
+
}) {
|
|
319
|
+
const today = getToday();
|
|
320
|
+
const year = viewDate.getUTCFullYear();
|
|
321
|
+
const selectedMonth = (value == null ? void 0 : value.getUTCFullYear()) === viewDate.getUTCFullYear() ? value.getUTCMonth() : void 0;
|
|
322
|
+
const todayMonth = year === today.getUTCFullYear() ? today.getUTCMonth() : void 0;
|
|
323
|
+
const focusableMonth = selectedMonth ?? todayMonth ?? (isSameYearMonth(min, viewDate) ? min.getUTCMonth() : 0);
|
|
324
|
+
return this._createYearAndMonthPickerContainer(
|
|
325
|
+
html`${repeat(
|
|
326
|
+
MONTHS,
|
|
327
|
+
([abbr]) => abbr,
|
|
328
|
+
([abbr, full], month) => {
|
|
329
|
+
const date = createDateClamped(
|
|
330
|
+
viewDate.getUTCFullYear(),
|
|
331
|
+
month,
|
|
332
|
+
viewDate.getUTCDate()
|
|
333
|
+
);
|
|
334
|
+
return this._createYearAndMonthPickerButton({
|
|
335
|
+
type: "month",
|
|
336
|
+
disabled: isMonthOutOfRange(date, min, max),
|
|
337
|
+
today: month === todayMonth,
|
|
338
|
+
selected: month === selectedMonth,
|
|
339
|
+
focusable: month === focusableMonth,
|
|
340
|
+
date: clampDate(date, min, max),
|
|
341
|
+
text: abbr,
|
|
342
|
+
label: full
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
)}`
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
_createDatePicker({
|
|
349
|
+
viewDate,
|
|
350
|
+
value,
|
|
351
|
+
min,
|
|
352
|
+
max
|
|
353
|
+
}) {
|
|
354
|
+
const today = getToday();
|
|
355
|
+
const weeks = calcWeeksOnCalendar(
|
|
356
|
+
viewDate.getUTCFullYear(),
|
|
357
|
+
viewDate.getUTCMonth()
|
|
358
|
+
);
|
|
359
|
+
const focusable = value && isSameYearMonth(viewDate, value) ? value : isSameYearMonth(viewDate, today) ? today : clampDate(viewDate, min, max);
|
|
360
|
+
return html`<div class="flex flex-col gap-2 w-full h-72" role="grid">
|
|
361
|
+
<div class="flex gap-1 flex-wrap w-full px-4" role="row">
|
|
362
|
+
${repeat(
|
|
363
|
+
DAYS,
|
|
364
|
+
([abbr]) => abbr,
|
|
365
|
+
([abbr, full]) => html`<div
|
|
366
|
+
class="flex justify-center items-center size-8 text-ddt-color-common-text-secondary text-xs font-bold leading-[1.3]"
|
|
367
|
+
role="columnheader"
|
|
368
|
+
aria-label=${full}
|
|
369
|
+
>
|
|
370
|
+
${abbr}
|
|
371
|
+
</div>`
|
|
372
|
+
)}
|
|
373
|
+
</div>
|
|
374
|
+
<div
|
|
375
|
+
class="flex flex-col gap-2 flex-wrap w-full px-4 pb-4"
|
|
376
|
+
role="rowgroup"
|
|
377
|
+
@keydown=${this._handleCalendarKeyDown}
|
|
378
|
+
>
|
|
379
|
+
${repeat(
|
|
380
|
+
weeks,
|
|
381
|
+
(week) => week[0].getTime(),
|
|
382
|
+
(week) => html`<div class="flex gap-1" role="row">
|
|
383
|
+
${repeat(
|
|
384
|
+
week,
|
|
385
|
+
(date) => date.getTime(),
|
|
386
|
+
(date) => html`<button
|
|
387
|
+
class=${cvaContentButton({
|
|
388
|
+
variant: date.getTime() === (value == null ? void 0 : value.getTime()) ? "selected" : date.getTime() === today.getTime() ? "today" : "default",
|
|
389
|
+
date: true
|
|
390
|
+
})}
|
|
391
|
+
role="gridcell"
|
|
392
|
+
?disabled=${isDateOutOfRange(date, min, max)}
|
|
393
|
+
tabindex=${ifDefined(
|
|
394
|
+
focusable.getTime() != date.getTime() ? -1 : void 0
|
|
395
|
+
)}
|
|
396
|
+
aria-current=${date.getTime() === today.getTime() ? "date" : nothing}
|
|
397
|
+
aria-selected=${date.getTime() === (value == null ? void 0 : value.getTime())}
|
|
398
|
+
data-type="day"
|
|
399
|
+
data-date=${formatDateForProperty(date)}
|
|
400
|
+
@click=${() => this._handleCalendarClick(date)}
|
|
401
|
+
>
|
|
402
|
+
${date.getUTCDate()}
|
|
403
|
+
</button>`
|
|
404
|
+
)}
|
|
405
|
+
</div>`
|
|
406
|
+
)}
|
|
407
|
+
</div>
|
|
408
|
+
</div>`;
|
|
409
|
+
}
|
|
410
|
+
render() {
|
|
411
|
+
const viewDate = this._viewDate;
|
|
412
|
+
const value = this._value;
|
|
413
|
+
const view = this.view;
|
|
414
|
+
const year = viewDate.getUTCFullYear();
|
|
415
|
+
const month = viewDate.getUTCMonth();
|
|
416
|
+
const pulldownLabel = {
|
|
417
|
+
year: "Switch to month view",
|
|
418
|
+
month: "Switch to year view",
|
|
419
|
+
day: "Switch to year view"
|
|
420
|
+
}[view];
|
|
421
|
+
const renderState = {
|
|
422
|
+
viewDate,
|
|
423
|
+
value,
|
|
424
|
+
min: this._min,
|
|
425
|
+
max: this._max
|
|
426
|
+
};
|
|
427
|
+
const picker = {
|
|
428
|
+
year: this._createYearPicker,
|
|
429
|
+
month: this._createMonthPicker,
|
|
430
|
+
day: this._createDatePicker
|
|
431
|
+
}[view].call(this, renderState);
|
|
432
|
+
return html`<div
|
|
433
|
+
class="flex items-stretch flex-col gap-2 w-[17.5rem] h-max pt-3 bg-ddt-color-common-background-default outline outline-1 -outline-offset-1 outline-ddt-color-divider rounded font-daikinSerif"
|
|
434
|
+
>
|
|
435
|
+
<div class="flex justify-between items-center pl-4 pr-3">
|
|
436
|
+
<div class="flex items-center gap-2">
|
|
437
|
+
<span
|
|
438
|
+
class="text-ddt-color-common-text-primary font-bold"
|
|
439
|
+
aria-live="polite"
|
|
440
|
+
>
|
|
441
|
+
${`${MONTHS[month][1]} ${year}`}
|
|
442
|
+
</span>
|
|
443
|
+
<daikin-icon-button
|
|
444
|
+
type="button"
|
|
445
|
+
variant="ghost"
|
|
446
|
+
color="neutral"
|
|
447
|
+
button-aria-label=${pulldownLabel}
|
|
448
|
+
@click=${this._handleMonthClick}
|
|
449
|
+
>
|
|
450
|
+
<span
|
|
451
|
+
class=${cvaIconButton({
|
|
452
|
+
intent: "pulldown",
|
|
453
|
+
rotate: view === "year" ? "inverse" : "default"
|
|
454
|
+
})}
|
|
455
|
+
></span>
|
|
456
|
+
</daikin-icon-button>
|
|
457
|
+
</div>
|
|
458
|
+
${view === "day" ? html`<div class="flex gap-2">
|
|
459
|
+
<daikin-icon-button
|
|
460
|
+
type="button"
|
|
461
|
+
variant="ghost"
|
|
462
|
+
color="neutral"
|
|
463
|
+
button-aria-label="Previous month"
|
|
464
|
+
?disabled=${!this._canNavigateMonth(viewDate, -1)}
|
|
465
|
+
@click=${() => this._navigateMonth(viewDate, -1)}
|
|
466
|
+
>
|
|
467
|
+
<span class=${cvaIconButton({ intent: "previous" })}></span>
|
|
468
|
+
</daikin-icon-button>
|
|
469
|
+
<daikin-icon-button
|
|
470
|
+
type="button"
|
|
471
|
+
variant="ghost"
|
|
472
|
+
color="neutral"
|
|
473
|
+
button-aria-label="Next month"
|
|
474
|
+
?disabled=${!this._canNavigateMonth(viewDate, 1)}
|
|
475
|
+
@click=${() => this._navigateMonth(viewDate, 1)}
|
|
476
|
+
>
|
|
477
|
+
<span class=${cvaIconButton({ intent: "next" })}></span>
|
|
478
|
+
</daikin-icon-button>
|
|
479
|
+
</div>` : nothing}
|
|
480
|
+
</div>
|
|
481
|
+
${picker}
|
|
482
|
+
</div>`;
|
|
483
|
+
}
|
|
484
|
+
willUpdate(changedProperties) {
|
|
485
|
+
{
|
|
486
|
+
for (const prop of ["value", "min", "max", "defaultValue"]) {
|
|
487
|
+
if (changedProperties.has(prop)) {
|
|
488
|
+
if (this[prop] && !tryParseDateFromProperty(this[prop])) {
|
|
489
|
+
console.warn(
|
|
490
|
+
`daikin-calendar: Invalid date "${this[prop]}" specified for ${prop}`
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (changedProperties.has("defaultValue") || changedProperties.has("value")) {
|
|
497
|
+
const base = this._value ?? this._defaultValue ?? getToday();
|
|
498
|
+
if (this._viewDate.getTime() !== base.getTime()) {
|
|
499
|
+
this._viewDate = cloneDate(base);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
updated(changedProperties) {
|
|
504
|
+
if (changedProperties.has("_viewDate") && this._dateToBeFocused != null) {
|
|
505
|
+
const dateButton = this.renderRoot.querySelector(
|
|
506
|
+
`[data-type=day][data-date="${formatDateForProperty(this._dateToBeFocused)}"]`
|
|
507
|
+
);
|
|
508
|
+
dateButton == null ? void 0 : dateButton.focus();
|
|
509
|
+
this._dateToBeFocused = null;
|
|
510
|
+
}
|
|
511
|
+
if (changedProperties.get("view") != null) {
|
|
512
|
+
const baseSelector = `[data-type="${this.view}"]`;
|
|
513
|
+
const target = this.renderRoot.querySelector(
|
|
514
|
+
`${baseSelector}[aria-checked=true], ${baseSelector}[aria-selected=true]`
|
|
515
|
+
) ?? this.renderRoot.querySelector(
|
|
516
|
+
`${baseSelector}[aria-current]`
|
|
517
|
+
) ?? this.renderRoot.querySelector(`${baseSelector}:enabled`);
|
|
518
|
+
if (target) {
|
|
519
|
+
if (this.view === "year" || this.view === "month") {
|
|
520
|
+
scrollIntoViewOnlyParent(target, "vertical", true);
|
|
521
|
+
}
|
|
522
|
+
target.focus();
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
DaikinCalendar.styles = css`
|
|
528
|
+
${unsafeCSS(tailwindStyles)}
|
|
529
|
+
|
|
530
|
+
:host {
|
|
531
|
+
display: block;
|
|
532
|
+
width: fit-content;
|
|
533
|
+
height: fit-content;
|
|
534
|
+
}
|
|
535
|
+
`;
|
|
536
|
+
__decorateClass([
|
|
537
|
+
property({ type: String, attribute: false })
|
|
538
|
+
], DaikinCalendar.prototype, "value", 2);
|
|
539
|
+
__decorateClass([
|
|
540
|
+
property({ type: String, reflect: true })
|
|
541
|
+
], DaikinCalendar.prototype, "min", 2);
|
|
542
|
+
__decorateClass([
|
|
543
|
+
property({ type: String, reflect: true })
|
|
544
|
+
], DaikinCalendar.prototype, "max", 2);
|
|
545
|
+
__decorateClass([
|
|
546
|
+
property({ type: String, reflect: true, attribute: "default-value" })
|
|
547
|
+
], DaikinCalendar.prototype, "defaultValue", 2);
|
|
548
|
+
__decorateClass([
|
|
549
|
+
property({ type: String, attribute: false })
|
|
550
|
+
], DaikinCalendar.prototype, "view", 2);
|
|
551
|
+
__decorateClass([
|
|
552
|
+
state()
|
|
553
|
+
], DaikinCalendar.prototype, "_viewDate", 2);
|
|
554
|
+
DaikinCalendar = __decorateClass([
|
|
555
|
+
customElement("daikin-calendar")
|
|
556
|
+
], DaikinCalendar);
|
|
557
|
+
export {
|
|
558
|
+
DaikinCalendar
|
|
559
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-calendar.js";
|
|
@@ -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";
|
|
@@ -21,7 +21,7 @@ const cvaContainer = cva(
|
|
|
21
21
|
"flex-col",
|
|
22
22
|
"gap-4",
|
|
23
23
|
"size-full",
|
|
24
|
-
"p-
|
|
24
|
+
"p-3",
|
|
25
25
|
"rounded-lg",
|
|
26
26
|
"bg-ddt-color-common-background-default"
|
|
27
27
|
],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
5
5
|
import "../../base/define.js";
|
|
@@ -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, queryAssignedElements, state } from "lit/decorators.js";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { property, queryAssignedElements, state } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
3
3
|
/**
|
|
4
4
|
* The checkbox component is a UI element that allows users to select one or more options from a list of choices.
|
|
5
5
|
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
@@ -7,6 +7,10 @@ import { DDSElement } from "../../base/index.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @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 type="checkbox">` element.
|
|
9
9
|
*
|
|
10
|
+
* @slot - A slot for the checkbox label content.
|
|
11
|
+
*
|
|
12
|
+
* @csspart label - Change the style of checkbox label.
|
|
13
|
+
*
|
|
10
14
|
* @example
|
|
11
15
|
*
|
|
12
16
|
* ```js
|
|
@@ -17,16 +21,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
17
21
|
* <daikin-checkbox label="Checkbox label" name="name" value="value"></daikin-checkbox>
|
|
18
22
|
* ```
|
|
19
23
|
*/
|
|
20
|
-
export declare class DaikinCheckbox extends
|
|
24
|
+
export declare class DaikinCheckbox extends DDSFormElement {
|
|
21
25
|
static readonly styles: import('lit').CSSResult;
|
|
22
|
-
/**
|
|
23
|
-
* The form name, submitted as a name/value pair when submitting the form.
|
|
24
|
-
*/
|
|
25
|
-
name: string;
|
|
26
|
-
/**
|
|
27
|
-
* The form value, submitted as a name/value pair when submitting the form.
|
|
28
|
-
*/
|
|
29
|
-
value: string;
|
|
30
26
|
/**
|
|
31
27
|
* Label text for the checkbox.
|
|
32
28
|
*/
|
|
@@ -45,6 +41,13 @@ export declare class DaikinCheckbox extends DDSElement {
|
|
|
45
41
|
* Specify the checkbox disabled state.
|
|
46
42
|
*/
|
|
47
43
|
disabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Specify the checkbox disabled state controlled by the parent component.
|
|
46
|
+
* Controlled by `daikin-checkbox-group`.
|
|
47
|
+
*
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
disabledByParent: boolean;
|
|
48
51
|
get checked(): boolean;
|
|
49
52
|
private get _labelHidden();
|
|
50
53
|
/**
|
|
@@ -53,8 +56,6 @@ export declare class DaikinCheckbox extends DDSElement {
|
|
|
53
56
|
* _Setter_: If `true` is set, it updates `checkState` to `"checked"`, and if `false` is set, it updates `checkState` to `"unchecked"`.
|
|
54
57
|
*/
|
|
55
58
|
set checked(value: boolean);
|
|
56
|
-
static readonly formAssociated = true;
|
|
57
|
-
private _internals;
|
|
58
59
|
private _updateFormValue;
|
|
59
60
|
private _handleClick;
|
|
60
61
|
private _handleChange;
|