@daikin-oss/design-system-web-components 1.2.0 → 1.3.0-next.2
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 +85 -49
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs/components/calendar/daikin-calendar.cjs +2 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs/components/chip/index.cjs +7 -0
- package/dist/cjs/components/chip/index.d.cts +1 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs/components/combobox/index.cjs +8 -0
- package/dist/cjs/components/combobox/index.d.cts +1 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +31 -16
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +2 -1
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +52 -37
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +4 -3
- package/dist/cjs/components/icon/daikin-icon.cjs +117 -12
- package/dist/cjs/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs/components/icon/icons.json.cjs +6 -2
- package/dist/cjs/components/icon/icons.json.d.cts +0 -12
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +12 -2
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +8 -0
- package/dist/cjs/components/index.cjs +36 -0
- package/dist/cjs/components/index.d.cts +5 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +40 -13
- package/dist/cjs/components/list-item/daikin-list-item.cjs +2 -2
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +1 -1
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +3 -3
- package/dist/cjs/components/select/daikin-select.cjs +6 -1
- package/dist/cjs/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +33 -12
- package/dist/cjs/components/table/daikin-table.d.cts +67 -34
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +7 -0
- package/dist/cjs/components/text-field/daikin-text-field.cjs +191 -56
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +32 -3
- package/dist/cjs/components/text-field/number-utils.cjs +61 -0
- package/dist/cjs/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +577 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs/components/time-picker/index.cjs +17 -0
- package/dist/cjs/components/time-picker/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +12 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +8 -1
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs/icon-registry.cjs +170 -0
- package/dist/cjs/icon-registry.d.cts +120 -0
- package/dist/cjs/index.cjs +39 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/notification-common.d.cts +2 -2
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +2 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs-dev/components/chip/index.cjs +7 -0
- package/dist/cjs-dev/components/chip/index.d.cts +1 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs-dev/components/combobox/index.cjs +8 -0
- package/dist/cjs-dev/components/combobox/index.d.cts +1 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +31 -16
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +2 -1
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +52 -37
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +4 -3
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +141 -16
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs-dev/components/icon/icons.json.cjs +6 -2
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -12
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +12 -2
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +8 -0
- package/dist/cjs-dev/components/index.cjs +36 -0
- package/dist/cjs-dev/components/index.d.cts +5 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +40 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +2 -2
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +1 -1
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +3 -3
- package/dist/cjs-dev/components/select/daikin-select.cjs +6 -1
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +36 -15
- package/dist/cjs-dev/components/table/daikin-table.d.cts +67 -34
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +7 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +191 -56
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +32 -3
- package/dist/cjs-dev/components/text-field/number-utils.cjs +64 -0
- package/dist/cjs-dev/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs-dev/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs-dev/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +589 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs-dev/components/time-picker/index.cjs +17 -0
- package/dist/cjs-dev/components/time-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +12 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +8 -1
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs-dev/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs-dev/icon-registry.cjs +170 -0
- package/dist/cjs-dev/icon-registry.d.cts +120 -0
- package/dist/cjs-dev/index.cjs +39 -0
- package/dist/cjs-dev/index.d.cts +1 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/notification-common.d.cts +2 -2
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es/components/avatar/daikin-avatar.js +1 -0
- package/dist/es/components/calendar/daikin-calendar.js +2 -0
- package/dist/es/components/card-header/daikin-card-header.js +1 -1
- package/dist/es/components/carousel/daikin-carousel.js +7 -3
- package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -2
- package/dist/es/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es/components/chip/daikin-chip.js +107 -0
- package/dist/es/components/chip/index.d.ts +1 -0
- package/dist/es/components/chip/index.js +4 -0
- package/dist/es/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es/components/combobox/daikin-combobox.js +605 -0
- package/dist/es/components/combobox/index.d.ts +1 -0
- package/dist/es/components/combobox/index.js +5 -0
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +2 -1
- package/dist/es/components/date-picker/daikin-date-picker.js +32 -17
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +4 -3
- package/dist/es/components/dropdown/daikin-dropdown.js +52 -37
- package/dist/es/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es/components/icon/daikin-icon.js +118 -13
- package/dist/es/components/icon/icons.json.d.ts +0 -12
- package/dist/es/components/icon/icons.json.js +5 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +8 -0
- package/dist/es/components/icon-button/daikin-icon-button.js +12 -2
- package/dist/es/components/index.d.ts +5 -0
- package/dist/es/components/index.js +22 -1
- package/dist/es/components/input-group/daikin-input-group.d.ts +40 -13
- package/dist/es/components/input-group/daikin-input-group.js +1 -1
- package/dist/es/components/list-item/daikin-list-item.js +2 -2
- package/dist/es/components/modal-header/daikin-modal-header.js +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es/components/select/daikin-select.js +6 -1
- package/dist/es/components/tab/daikin-tab.js +1 -0
- package/dist/es/components/table/daikin-table.d.ts +67 -34
- package/dist/es/components/table/daikin-table.js +33 -12
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +7 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +31 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +32 -3
- package/dist/es/components/text-field/daikin-text-field.js +191 -56
- package/dist/es/components/text-field/number-utils.d.ts +26 -0
- package/dist/es/components/text-field/number-utils.js +61 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es/components/text-masked-field/index.d.ts +1 -0
- package/dist/es/components/text-masked-field/index.js +4 -0
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es/components/time-picker/daikin-time-picker.js +578 -0
- package/dist/es/components/time-picker/index.d.ts +1 -0
- package/dist/es/components/time-picker/index.js +14 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +8 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +12 -2
- package/dist/es/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es/icon-registry.d.ts +120 -0
- package/dist/es/icon-registry.js +170 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +25 -1
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/notification-common.d.ts +2 -2
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +1 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +2 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -1
- package/dist/es-dev/components/carousel/daikin-carousel.js +7 -3
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -2
- package/dist/es-dev/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es-dev/components/chip/daikin-chip.js +107 -0
- package/dist/es-dev/components/chip/index.d.ts +1 -0
- package/dist/es-dev/components/chip/index.js +4 -0
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es-dev/components/combobox/daikin-combobox.js +605 -0
- package/dist/es-dev/components/combobox/index.d.ts +1 -0
- package/dist/es-dev/components/combobox/index.js +5 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +2 -1
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +32 -17
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +4 -3
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +52 -37
- package/dist/es-dev/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es-dev/components/icon/daikin-icon.js +142 -17
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -12
- package/dist/es-dev/components/icon/icons.json.js +5 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +8 -0
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +12 -2
- package/dist/es-dev/components/index.d.ts +5 -0
- package/dist/es-dev/components/index.js +22 -1
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +40 -13
- package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
- package/dist/es-dev/components/list-item/daikin-list-item.js +2 -2
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es-dev/components/select/daikin-select.js +6 -1
- package/dist/es-dev/components/tab/daikin-tab.js +1 -0
- package/dist/es-dev/components/table/daikin-table.d.ts +67 -34
- package/dist/es-dev/components/table/daikin-table.js +36 -15
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +7 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +31 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +32 -3
- package/dist/es-dev/components/text-field/daikin-text-field.js +191 -56
- package/dist/es-dev/components/text-field/number-utils.d.ts +26 -0
- package/dist/es-dev/components/text-field/number-utils.js +64 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es-dev/components/text-masked-field/index.d.ts +1 -0
- package/dist/es-dev/components/text-masked-field/index.js +4 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +590 -0
- package/dist/es-dev/components/time-picker/index.d.ts +1 -0
- package/dist/es-dev/components/time-picker/index.js +14 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +8 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +12 -2
- package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es-dev/icon-registry.d.ts +120 -0
- package/dist/es-dev/icon-registry.js +170 -0
- package/dist/es-dev/index.d.ts +1 -0
- package/dist/es-dev/index.js +25 -1
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/notification-common.d.ts +2 -2
- package/icons/number-minus.svg +5 -0
- package/icons/number-plus.svg +5 -0
- package/package.json +14 -4
- package/icons/dropdown-chevron-down.svg +0 -3
|
@@ -5,12 +5,15 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
5
5
|
* This component is particularly useful for creating complex forms where clear communication and guidance are essential.
|
|
6
6
|
*
|
|
7
7
|
* Hierarchies:
|
|
8
|
+
* - `daikin-input-group` > `daikin-checkbox-group` > `daikin-checkbox`
|
|
9
|
+
* - `daikin-input-group` > `daikin-combobox`
|
|
8
10
|
* - `daikin-input-group` > `daikin-date-picker`
|
|
9
11
|
* - `daikin-input-group` > `daikin-dropdown` > `daikin-dropdown-item`
|
|
10
12
|
* - `daikin-input-group` > `daikin-radio-group` > `daikin-radio`
|
|
11
13
|
* - `daikin-input-group` > `daikin-select`
|
|
12
14
|
* - `daikin-input-group` > `daikin-text-area`
|
|
13
15
|
* - `daikin-input-group` > `daikin-text-field`
|
|
16
|
+
* - `daikin-input-group` > `daikin-time-picker`
|
|
14
17
|
*
|
|
15
18
|
* @slot - A slot for an input component. See **Hierarchies** for supported components.
|
|
16
19
|
*
|
|
@@ -19,14 +22,43 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
19
22
|
* ```js
|
|
20
23
|
* import "@daikin-oss/design-system-web-components/components/input-group/index.js";
|
|
21
24
|
* <!-- Import the following as necessary. -->
|
|
25
|
+
* import "@daikin-oss/design-system-web-components/components/checkbox-group/index.js";
|
|
26
|
+
* import "@daikin-oss/design-system-web-components/components/checkbox/index.js";
|
|
27
|
+
* import "@daikin-oss/design-system-web-components/components/combobox/index.js";
|
|
22
28
|
* import "@daikin-oss/design-system-web-components/components/date-picker/index.js";
|
|
23
29
|
* import "@daikin-oss/design-system-web-components/components/dropdown/index.js";
|
|
24
30
|
* import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
|
|
25
|
-
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
26
31
|
* import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
|
|
32
|
+
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
27
33
|
* import "@daikin-oss/design-system-web-components/components/select/index.js";
|
|
28
34
|
* import "@daikin-oss/design-system-web-components/components/text-area/index.js";
|
|
29
35
|
* import "@daikin-oss/design-system-web-components/components/text-field/index.js";
|
|
36
|
+
* import "@daikin-oss/design-system-web-components/components/time-picker/index.js";
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* With Checkbox Group:
|
|
40
|
+
*
|
|
41
|
+
* ```html
|
|
42
|
+
* <daikin-input-group>
|
|
43
|
+
* <daikin-checkbox-group>
|
|
44
|
+
* <daikin-checkbox name="name1" value="value1" label="Checkbox Item 1"></daikin-checkbox>
|
|
45
|
+
* <daikin-checkbox name="name2" value="value2" label="Checkbox Item 2"></daikin-checkbox>
|
|
46
|
+
* <daikin-checkbox name="name3" value="value3" label="Checkbox Item 3"></daikin-checkbox>
|
|
47
|
+
* </daikin-checkbox-group>
|
|
48
|
+
* </daikin-input-group>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* With Combobox:
|
|
52
|
+
*
|
|
53
|
+
* ```html
|
|
54
|
+
* <daikin-input-group>
|
|
55
|
+
* <daikin-combobox></daikin-combobox>
|
|
56
|
+
* </daikin-input-group>
|
|
57
|
+
*
|
|
58
|
+
* <script>
|
|
59
|
+
* const combobox = document.querySelector("daikin-combobox");
|
|
60
|
+
* combobox.items = ["Apple", "Banana", "Cherry"];
|
|
61
|
+
* </script>
|
|
30
62
|
* ```
|
|
31
63
|
*
|
|
32
64
|
* With Date Picker:
|
|
@@ -67,18 +99,6 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
67
99
|
* </daikin-input-group>
|
|
68
100
|
* ```
|
|
69
101
|
*
|
|
70
|
-
* With Checkbox Group:
|
|
71
|
-
*
|
|
72
|
-
* ```html
|
|
73
|
-
* <daikin-input-group>
|
|
74
|
-
* <daikin-checkbox-group>
|
|
75
|
-
* <daikin-checkbox name="name1" value="value1" label="Checkbox Item 1"></daikin-checkbox>
|
|
76
|
-
* <daikin-checkbox name="name2" value="value2" label="Checkbox Item 2"></daikin-checkbox>
|
|
77
|
-
* <daikin-checkbox name="name3" value="value3" label="Checkbox Item 3"></daikin-checkbox>
|
|
78
|
-
* </daikin-checkbox-group>
|
|
79
|
-
* </daikin-input-group>
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
102
|
* With Select:
|
|
83
103
|
*
|
|
84
104
|
* ```html
|
|
@@ -108,6 +128,13 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
108
128
|
* <daikin-text-area value="Content of TextArea"></daikin-text-area>
|
|
109
129
|
* </daikin-input-group>
|
|
110
130
|
* ```
|
|
131
|
+
*
|
|
132
|
+
* With Time Picker:
|
|
133
|
+
*
|
|
134
|
+
* ```html
|
|
135
|
+
* <daikin-input-group>
|
|
136
|
+
* <daikin-time-picker></daikin-time-picker>
|
|
137
|
+
* </daikin-input-group>
|
|
111
138
|
* ```
|
|
112
139
|
*/
|
|
113
140
|
export declare class DaikinInputGroup extends DDSElement {
|
|
@@ -55,7 +55,7 @@ const WRAPPER = classVarianceAuthority.cva([
|
|
|
55
55
|
"relative",
|
|
56
56
|
"break-all"
|
|
57
57
|
])();
|
|
58
|
-
const cvaIcon = classVarianceAuthority.cva(["icon-size-6"], {
|
|
58
|
+
const cvaIcon = classVarianceAuthority.cva(["icon-size-6", "slotted:flex-none"], {
|
|
59
59
|
variants: {
|
|
60
60
|
position: {
|
|
61
61
|
left: [],
|
|
@@ -97,7 +97,7 @@ exports.DaikinListItem = class DaikinListItem extends ddsElement.DDSElement {
|
|
|
97
97
|
name="left-icon"
|
|
98
98
|
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
99
99
|
>
|
|
100
|
-
<span class="block -ml-1"></span>
|
|
100
|
+
<span class="flex-none block -ml-1"></span>
|
|
101
101
|
</slot>
|
|
102
102
|
<slot class=${cvaContent({ disabled: this.disabled })}></slot>
|
|
103
103
|
</span>`;
|
|
@@ -31,7 +31,7 @@ const cvaTitle = classVarianceAuthority.cva([
|
|
|
31
31
|
])();
|
|
32
32
|
const cvaDescription = classVarianceAuthority.cva([
|
|
33
33
|
"flex-none",
|
|
34
|
-
"text-ddt-color-common-text-
|
|
34
|
+
"text-ddt-color-common-text-primary",
|
|
35
35
|
"font-daikinSerif",
|
|
36
36
|
"text-base",
|
|
37
37
|
"leading-normal",
|
|
@@ -83,9 +83,9 @@ const cvaBarContainer = classVarianceAuthority.cva(
|
|
|
83
83
|
const cvaHelper = classVarianceAuthority.cva(["text-sm", "leading-[130%]"], {
|
|
84
84
|
variants: {
|
|
85
85
|
variant: {
|
|
86
|
-
inprogress: ["text-ddt-color-common-text-
|
|
87
|
-
completed: ["text-ddt-color-common-text-
|
|
88
|
-
indeterminate: ["text-ddt-color-common-text-
|
|
86
|
+
inprogress: ["text-ddt-color-common-text-secondary"],
|
|
87
|
+
completed: ["text-ddt-color-common-text-secondary"],
|
|
88
|
+
indeterminate: ["text-ddt-color-common-text-secondary"],
|
|
89
89
|
error: ["text-ddt-color-common-danger-default", "font-bold"]
|
|
90
90
|
},
|
|
91
91
|
visible: {
|
|
@@ -23,7 +23,7 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
23
23
|
"w-full",
|
|
24
24
|
"h-full",
|
|
25
25
|
"relative",
|
|
26
|
-
"after:i-daikin-
|
|
26
|
+
"after:i-daikin-chevron-down",
|
|
27
27
|
"after:w-6",
|
|
28
28
|
"after:h-6",
|
|
29
29
|
"after:m-auto",
|
|
@@ -150,6 +150,11 @@ exports.DaikinSelect.styles = lit.css`
|
|
|
150
150
|
background: transparent;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
::slotted(select) {
|
|
154
|
+
background-color: var(--dds-color-common-surface-default) !important;
|
|
155
|
+
color: var(--ddt-color-common-text-primary) !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
153
158
|
${lit.unsafeCSS(tailwind.default)}
|
|
154
159
|
|
|
155
160
|
:host {
|
|
@@ -57,8 +57,8 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
57
57
|
this.selectable = false;
|
|
58
58
|
this.sortable = false;
|
|
59
59
|
this.selection = [];
|
|
60
|
-
this.order = null;
|
|
61
60
|
this.sort = null;
|
|
61
|
+
this.order = null;
|
|
62
62
|
this.sortFunction = null;
|
|
63
63
|
this._bulkRowsCheckState = "unchecked";
|
|
64
64
|
this._currentView = [];
|
|
@@ -134,28 +134,47 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
134
134
|
const selectionCount = this.selection.length;
|
|
135
135
|
this._bulkRowsCheckState = this._currentView.length === selectionCount ? "checked" : selectionCount ? "indeterminate" : "unchecked";
|
|
136
136
|
}
|
|
137
|
+
_reflectSlotProperties() {
|
|
138
|
+
var _a;
|
|
139
|
+
for (const { key } of this.headers) {
|
|
140
|
+
const headerCell = (_a = (this.shadowRoot ?? this).querySelector(
|
|
141
|
+
`slot[name="header:${CSS.escape(String(key))}"]`
|
|
142
|
+
)) == null ? void 0 : _a.assignedElements()[0];
|
|
143
|
+
if ((headerCell == null ? void 0 : headerCell.tagName) !== "DAIKIN-TABLE-HEADER-CELL") {
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
headerCell.order = this.sort === key ? this.order : null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
_handleSlotChange() {
|
|
150
|
+
this._reflectSlotProperties();
|
|
151
|
+
}
|
|
137
152
|
render() {
|
|
138
153
|
const createHeaderRow = () => repeat_js.repeat(
|
|
139
154
|
this.headers,
|
|
140
155
|
({ key }) => key,
|
|
141
|
-
({ key, label, alignment, sortable }) =>
|
|
156
|
+
({ key, label, alignment, sortable }) => {
|
|
157
|
+
const currentSort = this.sortable && this.sort === key ? this.order === "asc" ? "ascending" : "descending" : void 0;
|
|
158
|
+
return lit.html`<th
|
|
142
159
|
class="h-full p-0"
|
|
143
|
-
aria-sort=${ifDefined_js.ifDefined(
|
|
144
|
-
this.sortable && this.sort === key ? this.order === "asc" ? "ascending" : "descending" : void 0
|
|
145
|
-
)}
|
|
160
|
+
aria-sort=${ifDefined_js.ifDefined(currentSort)}
|
|
146
161
|
>
|
|
147
162
|
<slot
|
|
148
163
|
name=${`header:${key}`}
|
|
164
|
+
data-key=${key}
|
|
149
165
|
@change-sort=${(event) => this._handleClickSort(event, key)}
|
|
166
|
+
@slotchange=${this._handleSlotChange}
|
|
150
167
|
>
|
|
151
168
|
<daikin-table-header-cell
|
|
152
169
|
alignment=${alignment ?? "left"}
|
|
153
170
|
?sortable=${this.sortable && sortable}
|
|
171
|
+
order=${ifDefined_js.ifDefined(currentSort && this.order)}
|
|
154
172
|
>
|
|
155
173
|
${label}
|
|
156
174
|
</daikin-table-header-cell>
|
|
157
175
|
</slot>
|
|
158
|
-
</th
|
|
176
|
+
</th>`;
|
|
177
|
+
}
|
|
159
178
|
);
|
|
160
179
|
const createRow = (item) => repeat_js.repeat(
|
|
161
180
|
this.headers,
|
|
@@ -228,7 +247,7 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
228
247
|
</div>`;
|
|
229
248
|
}
|
|
230
249
|
willUpdate(changedProperties) {
|
|
231
|
-
const viewChanged = changedProperties.has("rows") || changedProperties.has("sort") || changedProperties.has("order") || changedProperties.has("sortFunction");
|
|
250
|
+
const viewChanged = changedProperties.has("headers") || changedProperties.has("rows") || changedProperties.has("sort") || changedProperties.has("order") || changedProperties.has("sortFunction");
|
|
232
251
|
const selectionChanged = changedProperties.has("selection");
|
|
233
252
|
if (viewChanged) {
|
|
234
253
|
this._updateCurrentView();
|
|
@@ -238,20 +257,22 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
238
257
|
}
|
|
239
258
|
}
|
|
240
259
|
updated(changedProperties) {
|
|
241
|
-
|
|
242
|
-
{
|
|
260
|
+
{
|
|
261
|
+
if (changedProperties.has("headers")) {
|
|
243
262
|
if (this.headers.length !== [...new Set(this.headers.map(({ key }) => key))].length) {
|
|
244
263
|
console.warn("The `key` values in `headers` are duplicated");
|
|
245
264
|
}
|
|
246
265
|
}
|
|
247
|
-
|
|
248
|
-
if (changedProperties.has("rows")) {
|
|
249
|
-
{
|
|
266
|
+
if (changedProperties.has("rows")) {
|
|
250
267
|
if (this.rows.length !== [...new Set(this.rows.map(({ id }) => id))].length) {
|
|
251
268
|
console.warn("The `id` values in `rows` are duplicated");
|
|
252
269
|
}
|
|
253
270
|
}
|
|
254
271
|
}
|
|
272
|
+
const sortChanged = changedProperties.has("headers") || changedProperties.has("sort") || changedProperties.has("order");
|
|
273
|
+
if (sortChanged) {
|
|
274
|
+
this._reflectSlotProperties();
|
|
275
|
+
}
|
|
255
276
|
}
|
|
256
277
|
};
|
|
257
278
|
exports.DaikinTable.styles = lit.css`
|
|
@@ -260,7 +281,7 @@ exports.DaikinTable.styles = lit.css`
|
|
|
260
281
|
:host {
|
|
261
282
|
display: block;
|
|
262
283
|
width: 100%;
|
|
263
|
-
overflow:
|
|
284
|
+
overflow: auto;
|
|
264
285
|
}
|
|
265
286
|
`;
|
|
266
287
|
__decorateClass([
|
|
@@ -280,10 +301,10 @@ __decorateClass([
|
|
|
280
301
|
], exports.DaikinTable.prototype, "selection", 2);
|
|
281
302
|
__decorateClass([
|
|
282
303
|
decorators_js.property({ type: String, reflect: true })
|
|
283
|
-
], exports.DaikinTable.prototype, "
|
|
304
|
+
], exports.DaikinTable.prototype, "sort", 2);
|
|
284
305
|
__decorateClass([
|
|
285
306
|
decorators_js.property({ type: String, reflect: true })
|
|
286
|
-
], exports.DaikinTable.prototype, "
|
|
307
|
+
], exports.DaikinTable.prototype, "order", 2);
|
|
287
308
|
__decorateClass([
|
|
288
309
|
decorators_js.property({ attribute: false })
|
|
289
310
|
], exports.DaikinTable.prototype, "sortFunction", 2);
|
|
@@ -9,9 +9,11 @@ export type HeaderType<T extends string = string> = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The table component is a component that can display multiple data objects in a tabular format.
|
|
11
11
|
*
|
|
12
|
-
* It is modeled on the HTML `<table>` element. However, unlike a normal `<table>` element, this component
|
|
12
|
+
* It is modeled on the HTML `<table>` element. However, unlike a normal `<table>` element, this component generates table structure automatically from data. You must provide the `headers` and `rows` properties to define the table structure and content. You can also customize table cell content by providing custom content in slots.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* By specifying the `rows` property, you can only display plain text content. If you need to display richer content within the row cells, such as an icon or a button, provide custom content using the cell slot pattern: ``slot=${`cell:${rows[j].id}:${headers[i].key}`}``
|
|
15
|
+
*
|
|
16
|
+
* By specifying the headers property, you can only display plain text, define text alignment and sorting buttons. If you need to display richer content within the header cells, such as an icon or a button, provide custom content using the cell slot pattern: ``slot=${`header:${headers[i].key}`}``
|
|
15
17
|
*
|
|
16
18
|
* The table provides two functions: checkboxes and sorting, and you can select the functions you need.
|
|
17
19
|
*
|
|
@@ -34,19 +36,8 @@ export type HeaderType<T extends string = string> = {
|
|
|
34
36
|
* ```
|
|
35
37
|
*
|
|
36
38
|
* ```html
|
|
37
|
-
* <daikin-table
|
|
38
|
-
* .
|
|
39
|
-
* { key: 'name', label: 'Name', sortable: true },
|
|
40
|
-
* { key: 'season', label: 'Season', sortable: true },
|
|
41
|
-
* { key: 'price', label: 'Price', alignment: 'right', sortable: false },
|
|
42
|
-
* ]"
|
|
43
|
-
* .rows="[
|
|
44
|
-
* { id: '1', name: 'Apple', season: 'Autumn', price: '$2' },
|
|
45
|
-
* { id: '2', name: 'Peach', season: 'Summer', price: '$4' },
|
|
46
|
-
* { id: '3', name: 'Orange', season: 'Winter', price: '$1' },
|
|
47
|
-
* { id: '4', name: 'Strawberry', season: 'Spring', price: '$4' },
|
|
48
|
-
* ]"
|
|
49
|
-
* >
|
|
39
|
+
* <daikin-table>
|
|
40
|
+
* <!-- By using a slot, you can add a subtitle below the content in the name column for each row. -->
|
|
50
41
|
* <daikin-table-cell slot="cell:1:name">
|
|
51
42
|
* Apple
|
|
52
43
|
* <span slot="subtitle">This is a autumn fruit.</span>
|
|
@@ -64,6 +55,22 @@ export type HeaderType<T extends string = string> = {
|
|
|
64
55
|
* <span slot="subtitle">This is a spring fruit.</span>
|
|
65
56
|
* </daikin-table-cell>
|
|
66
57
|
* </daikin-table>
|
|
58
|
+
*
|
|
59
|
+
* <script>
|
|
60
|
+
* // Set up the table data
|
|
61
|
+
* const tableElement = document.querySelector('daikin-table');
|
|
62
|
+
* tableElement.headers = [
|
|
63
|
+
* { key: 'name', label: 'Name', sortable: true },
|
|
64
|
+
* { key: 'season', label: 'Season', sortable: true },
|
|
65
|
+
* { key: 'price', label: 'Price', alignment: 'right', sortable: false },
|
|
66
|
+
* ];
|
|
67
|
+
* tableElement.rows = [
|
|
68
|
+
* { id: '1', name: 'Apple', season: 'Autumn', price: '$2' },
|
|
69
|
+
* { id: '2', name: 'Peach', season: 'Summer', price: '$4' },
|
|
70
|
+
* { id: '3', name: 'Orange', season: 'Winter', price: '$1' },
|
|
71
|
+
* { id: '4', name: 'Strawberry', season: 'Spring', price: '$4' },
|
|
72
|
+
* ];
|
|
73
|
+
* </script>
|
|
67
74
|
* ```
|
|
68
75
|
*/
|
|
69
76
|
export declare class DaikinTable<T extends {
|
|
@@ -72,51 +79,75 @@ export declare class DaikinTable<T extends {
|
|
|
72
79
|
static readonly styles: import('lit').CSSResult;
|
|
73
80
|
/**
|
|
74
81
|
* Headers of the table.
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* -
|
|
82
|
+
* An array of header configuration objects that define the table columns.
|
|
83
|
+
* Each object must have a unique `key` (used to match row data) and a `label` (displayed text).
|
|
84
|
+
*
|
|
85
|
+
* - key: The `key` value corresponds to the property name in the row data (excluding `id`). All `key` values must be unique within the headers array. Use only alphanumeric characters, `$`, and `_` in the `key`.
|
|
86
|
+
* - label: The text displayed in the header cells.
|
|
87
|
+
* - alignment: The text alignment direction. Defaults to left alignment if omitted.
|
|
88
|
+
* - sortable: When `sortable = true`, enables sorting for this column.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* [
|
|
92
|
+
* { key: 'name', label: 'Name', sortable: true },
|
|
93
|
+
* { key: 'price', label: 'Price', alignment: 'right', sortable: false },
|
|
94
|
+
* ]
|
|
79
95
|
*/
|
|
80
96
|
headers: readonly HeaderType<Extract<keyof T, string>>[];
|
|
81
97
|
/**
|
|
82
98
|
* Rows of the table.
|
|
83
|
-
* An array
|
|
84
|
-
*
|
|
99
|
+
* An array of data objects where each object represents a table row.
|
|
100
|
+
* Each object must have a unique `id` property and properties that match the `key` values defined in `headers`.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* [
|
|
104
|
+
* { id: '1', name: 'Apple', price: '$2' },
|
|
105
|
+
* { id: '2', name: 'Orange', price: '$1' },
|
|
106
|
+
* ]
|
|
85
107
|
*/
|
|
86
108
|
rows: T[];
|
|
87
109
|
/**
|
|
88
|
-
* Whether
|
|
89
|
-
*
|
|
110
|
+
* Whether to enable row selection.
|
|
111
|
+
* When `true`, a checkbox will be displayed to the left of each row.
|
|
90
112
|
*/
|
|
91
113
|
selectable: boolean;
|
|
92
114
|
/**
|
|
93
|
-
* Whether
|
|
94
|
-
*
|
|
115
|
+
* Whether to enable row sorting.
|
|
116
|
+
* When `true`, a sort button will be displayed to the right of each sortable header cell.
|
|
95
117
|
*/
|
|
96
118
|
sortable: boolean;
|
|
97
119
|
/**
|
|
98
|
-
* An array of `id`
|
|
120
|
+
* An array of `id` values for the selected rows.
|
|
99
121
|
*/
|
|
100
122
|
selection: string[];
|
|
101
|
-
/**
|
|
102
|
-
* Sort order of the table.
|
|
103
|
-
*/
|
|
104
|
-
order: "asc" | "desc" | null;
|
|
105
123
|
/**
|
|
106
124
|
* The `key` of the currently sorted column.
|
|
125
|
+
* Used with the `order` property to determine which column is sorted and in which direction.
|
|
126
|
+
*
|
|
127
|
+
* For example, if `sort = "name"` and `order = "asc"`, the table will be sorted by the "name" column in ascending order.
|
|
107
128
|
*/
|
|
108
129
|
sort: keyof T | null;
|
|
109
130
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
131
|
+
* The sort order of the table.
|
|
132
|
+
* Used with the `sort` property.
|
|
133
|
+
*
|
|
134
|
+
* - "asc": ascending order
|
|
135
|
+
* - "desc": descending order
|
|
136
|
+
*
|
|
137
|
+
* For example, if `sort = "price"` and `order = "desc"`, the table will be sorted by the "price" column in descending order.
|
|
138
|
+
*/
|
|
139
|
+
order: "asc" | "desc" | null;
|
|
140
|
+
/**
|
|
141
|
+
* Custom sort function for table columns.
|
|
142
|
+
* The function should return a comparison result for ascending order: `0`, `1`, or `-1`.
|
|
112
143
|
*/
|
|
113
144
|
sortFunction: {
|
|
114
145
|
[key in keyof T]?: (a: T, b: T, key: key) => number;
|
|
115
146
|
} | ((a: T, b: T, key: keyof T) => number) | false | null;
|
|
116
147
|
private _bulkRowsCheckState;
|
|
117
148
|
/**
|
|
118
|
-
* The rows displayed in the
|
|
119
|
-
*
|
|
149
|
+
* The rows currently displayed in the table.
|
|
150
|
+
* This is a sorted version of `rows`. Pagination may be added in the future.
|
|
120
151
|
*/
|
|
121
152
|
private _currentView;
|
|
122
153
|
private _currentTouchHoverRowId;
|
|
@@ -130,6 +161,8 @@ export declare class DaikinTable<T extends {
|
|
|
130
161
|
private _handleTouchStart;
|
|
131
162
|
private _handleTouchEnd;
|
|
132
163
|
private _updateHeaderCheckboxState;
|
|
164
|
+
private _reflectSlotProperties;
|
|
165
|
+
private _handleSlotChange;
|
|
133
166
|
render(): import('lit-html').TemplateResult<1>;
|
|
134
167
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
135
168
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
@@ -46,11 +46,31 @@ const cvaHeaderCell = classVarianceAuthority.cva(
|
|
|
46
46
|
"focus-visible:-outline-offset-2",
|
|
47
47
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
48
48
|
"after:flex-none",
|
|
49
|
-
"after:size-6"
|
|
50
|
-
"after:i-daikin-sort"
|
|
49
|
+
"after:size-6"
|
|
51
50
|
]
|
|
51
|
+
},
|
|
52
|
+
order: {
|
|
53
|
+
asc: [],
|
|
54
|
+
desc: []
|
|
52
55
|
}
|
|
53
|
-
}
|
|
56
|
+
},
|
|
57
|
+
compoundVariants: [
|
|
58
|
+
{
|
|
59
|
+
sortable: true,
|
|
60
|
+
order: null,
|
|
61
|
+
class: ["after:i-daikin-sort"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
sortable: true,
|
|
65
|
+
order: "asc",
|
|
66
|
+
class: ["after:i-daikin-chevron-up"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
sortable: true,
|
|
70
|
+
order: "desc",
|
|
71
|
+
class: ["after:i-daikin-chevron-up", "after:rotate-180"]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
54
74
|
}
|
|
55
75
|
);
|
|
56
76
|
exports.DaikinTableHeaderCell = class DaikinTableHeaderCell extends ddsElement.DDSElement {
|
|
@@ -58,14 +78,16 @@ exports.DaikinTableHeaderCell = class DaikinTableHeaderCell extends ddsElement.D
|
|
|
58
78
|
super(...arguments);
|
|
59
79
|
this.alignment = "left";
|
|
60
80
|
this.sortable = false;
|
|
81
|
+
this.order = null;
|
|
61
82
|
}
|
|
62
83
|
render() {
|
|
63
84
|
const headerCellCN = cvaHeaderCell({
|
|
64
85
|
alignment: this.alignment,
|
|
65
|
-
sortable: this.sortable
|
|
86
|
+
sortable: this.sortable,
|
|
87
|
+
order: this.order === "asc" || this.order === "desc" ? this.order : null
|
|
66
88
|
});
|
|
67
|
-
const content = lit.html`<slot name="left-icon" class="icon-size-6"></slot
|
|
68
|
-
|
|
89
|
+
const content = lit.html`<slot name="left-icon" class="icon-size-6"></slot
|
|
90
|
+
><slot></slot>`;
|
|
69
91
|
return this.sortable ? lit.html`<button
|
|
70
92
|
type="button"
|
|
71
93
|
class=${headerCellCN}
|
|
@@ -90,6 +112,9 @@ __decorateClass([
|
|
|
90
112
|
__decorateClass([
|
|
91
113
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
92
114
|
], exports.DaikinTableHeaderCell.prototype, "sortable", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
decorators_js.property({ type: String, reflect: true })
|
|
117
|
+
], exports.DaikinTableHeaderCell.prototype, "order", 2);
|
|
93
118
|
exports.DaikinTableHeaderCell = __decorateClass([
|
|
94
119
|
decorators.ddsElement("daikin-table-header-cell")
|
|
95
120
|
], exports.DaikinTableHeaderCell);
|
|
@@ -3,6 +3,7 @@ import { MergeVariantProps } from "../../type-utils.cjs";
|
|
|
3
3
|
declare const cvaHeaderCell: (props?: ({
|
|
4
4
|
alignment?: "center" | "right" | "left" | null | undefined;
|
|
5
5
|
sortable?: boolean | null | undefined;
|
|
6
|
+
order?: "desc" | "asc" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
8
|
type TableHeaderCellVariantProps = MergeVariantProps<typeof cvaHeaderCell>;
|
|
8
9
|
/**
|
|
@@ -44,6 +45,12 @@ export declare class DaikinTableHeaderCell extends DDSElement {
|
|
|
44
45
|
* It also makes the component emit the `change-sort` event when clicked.
|
|
45
46
|
*/
|
|
46
47
|
sortable: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The current sort order of the column.
|
|
50
|
+
* Can be "asc", "desc", or null if not sorted.
|
|
51
|
+
* Controlled by `daikin-table`.
|
|
52
|
+
*/
|
|
53
|
+
order: TableHeaderCellVariantProps["order"] | null;
|
|
47
54
|
render(): import('lit-html').TemplateResult<1>;
|
|
48
55
|
}
|
|
49
56
|
declare global {
|