@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
|
@@ -1,23 +1,103 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
import { IconRegistry } from "../../icon-registry.cjs";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
-
|
|
4
|
+
declare const icons: {
|
|
5
|
+
"logo-positive": {
|
|
6
|
+
class: string;
|
|
7
|
+
color: null;
|
|
8
|
+
};
|
|
9
|
+
"logo-negative": {
|
|
10
|
+
class: string;
|
|
11
|
+
color: null;
|
|
12
|
+
};
|
|
13
|
+
alarm: {
|
|
14
|
+
class: string;
|
|
15
|
+
color: null;
|
|
16
|
+
};
|
|
17
|
+
close: {
|
|
18
|
+
class: string;
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
information: {
|
|
22
|
+
class: string;
|
|
23
|
+
color: null;
|
|
24
|
+
};
|
|
25
|
+
error: {
|
|
26
|
+
class: string;
|
|
27
|
+
color: null;
|
|
28
|
+
};
|
|
29
|
+
success: {
|
|
30
|
+
class: string;
|
|
31
|
+
color: null;
|
|
32
|
+
};
|
|
33
|
+
warning: {
|
|
34
|
+
class: string;
|
|
35
|
+
color: null;
|
|
36
|
+
};
|
|
37
|
+
"pagination-chevron-left": {
|
|
38
|
+
class: string;
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
"pagination-chevron-right": {
|
|
42
|
+
class: string;
|
|
43
|
+
color: string;
|
|
44
|
+
};
|
|
45
|
+
profile: {
|
|
46
|
+
class: string;
|
|
47
|
+
color: null;
|
|
48
|
+
};
|
|
49
|
+
"chevron-up": {
|
|
50
|
+
class: string;
|
|
51
|
+
color: null;
|
|
52
|
+
};
|
|
53
|
+
"chevron-down": {
|
|
54
|
+
class: string;
|
|
55
|
+
color: null;
|
|
56
|
+
};
|
|
57
|
+
"chevron-left": {
|
|
58
|
+
class: string;
|
|
59
|
+
color: null;
|
|
60
|
+
};
|
|
61
|
+
"chevron-right": {
|
|
62
|
+
class: string;
|
|
63
|
+
color: null;
|
|
64
|
+
};
|
|
65
|
+
sort: {
|
|
66
|
+
class: string;
|
|
67
|
+
color: null;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
4
70
|
export declare const iconList: string[];
|
|
5
71
|
export type IconType = keyof typeof icons;
|
|
6
72
|
declare const cvaIcon: (props?: ({
|
|
7
|
-
icon?: string | number | null | undefined;
|
|
8
73
|
color?: "current" | "default" | "black" | "white" | null | undefined;
|
|
74
|
+
mode?: "mask" | "background" | "inline" | "static" | null | undefined;
|
|
9
75
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
76
|
export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
11
77
|
/**
|
|
12
78
|
* The icon component is a versatile UI element used to display small graphical symbols or images that represent actions, objects, or concepts within an application.
|
|
13
|
-
* The icon set is provided by DDS.
|
|
79
|
+
* The icon set is provided by DDS, and it also supports custom icons via the icon registry.
|
|
14
80
|
*
|
|
15
|
-
*
|
|
81
|
+
* For static DDS icons, the component uses the predefined icon set.
|
|
82
|
+
* For custom icons, it can dynamically load icons from various sources using the icon registry.
|
|
16
83
|
*
|
|
17
|
-
*
|
|
18
|
-
* In the development build, warnings will be displayed in the console, so please check there if you encounter any unexpected behavior.
|
|
84
|
+
* This component supports multiple rendering modes for enhanced security when using custom icons:
|
|
19
85
|
*
|
|
20
|
-
*
|
|
86
|
+
* - **mask** (default for custom icons): Uses CSS mask-image for secure rendering with color customization
|
|
87
|
+
* - **background**: Uses CSS background-image for secure rendering without color customization
|
|
88
|
+
* - **inline**: Traditional SVG rendering using innerHTML (use with caution)
|
|
89
|
+
* - **static** (for DDS icons): Uses predefined CSS classes from the DDS icon set
|
|
90
|
+
*
|
|
91
|
+
* **Security Note**: When using custom icons, especially with `inline` mode, ensure that the SVG content comes from trusted sources only.
|
|
92
|
+
* Untrusted input may lead to XSS vulnerabilities. Consider using `mask` or `background` modes for better security.
|
|
93
|
+
*
|
|
94
|
+
* To use a custom color, set the `color` property to `"current"` and apply the desired color using the CSS `color` property.
|
|
95
|
+
* This works out-of-the-box for mask and static modes, and can be achieved for inline mode with additional effort. The background mode does not support custom colors.
|
|
96
|
+
*
|
|
97
|
+
* If an icon cannot be loaded, a blank space will be displayed.
|
|
98
|
+
* In development builds, warnings will be shown in the console for debugging.
|
|
99
|
+
*
|
|
100
|
+
* @cssprop [--ddc-icon-size] - Icon size. If a value other than "current" is set for the `size` property, it will be automatically overwritten. This may also be set by a parent component such as `daikin-icon-button`.
|
|
21
101
|
*
|
|
22
102
|
* @example
|
|
23
103
|
*
|
|
@@ -26,15 +106,51 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
|
26
106
|
* ```
|
|
27
107
|
*
|
|
28
108
|
* ```html
|
|
109
|
+
* <!-- Using a DDS static icon -->
|
|
29
110
|
* <daikin-icon icon="information" color="black" size="m"></daikin-icon>
|
|
111
|
+
*
|
|
112
|
+
* <!-- Using a custom icon -->
|
|
113
|
+
* <daikin-icon icon="my-custom-icon" color="black" size="m"></daikin-icon>
|
|
114
|
+
*
|
|
115
|
+
* <script>
|
|
116
|
+
* import { iconRegistry } from "@daikin-oss/design-system-web-components/icon-registry.js";
|
|
117
|
+
*
|
|
118
|
+
* // Register with mask mode for secure rendering
|
|
119
|
+
* iconRegistry.register({
|
|
120
|
+
* name: "my-custom-icon",
|
|
121
|
+
* svg: {
|
|
122
|
+
* svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">...</svg>',
|
|
123
|
+
* mode: "mask",
|
|
124
|
+
* defaultColor: "#0066cc"
|
|
125
|
+
* },
|
|
126
|
+
* });
|
|
127
|
+
*
|
|
128
|
+
* // Register dynamic custom icons
|
|
129
|
+
* iconRegistry.register({
|
|
130
|
+
* match: /^custom-/,
|
|
131
|
+
* async fetch: (name) => {
|
|
132
|
+
* const response = await fetch(`/path/to/custom/icons/${name}.svg`);
|
|
133
|
+
* if (!response.ok) {
|
|
134
|
+
* throw new Error(`Failed to load custom icon "${name}"`);
|
|
135
|
+
* }
|
|
136
|
+
* return response.text();
|
|
137
|
+
* },
|
|
138
|
+
* });
|
|
139
|
+
* </script>
|
|
30
140
|
* ```
|
|
31
141
|
*/
|
|
32
142
|
export declare class DaikinIcon extends DDSElement {
|
|
33
143
|
static readonly styles: import('lit').CSSResult;
|
|
34
144
|
/**
|
|
35
|
-
* Specify
|
|
145
|
+
* Specify icon registry instance.
|
|
146
|
+
* Default is the global icon registry.
|
|
147
|
+
*/
|
|
148
|
+
registry: IconRegistry;
|
|
149
|
+
/**
|
|
150
|
+
* Specify the name of the icon.
|
|
151
|
+
* Can be a static DDS icon name or a custom icon name registered in the icon registry.
|
|
36
152
|
*/
|
|
37
|
-
icon:
|
|
153
|
+
icon: string | null;
|
|
38
154
|
/**
|
|
39
155
|
* Specify icon color
|
|
40
156
|
*/
|
|
@@ -44,6 +160,10 @@ export declare class DaikinIcon extends DDSElement {
|
|
|
44
160
|
* If "current" is set, `--ddc-icon-size` CSS variable will be used. `--ddc-icon-size` may be set by the parent component such as `daikin-icon-button`.
|
|
45
161
|
*/
|
|
46
162
|
size: "s" | "m" | "l" | "xl" | "current";
|
|
163
|
+
private _iconData;
|
|
164
|
+
connectedCallback(): void;
|
|
165
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
166
|
+
private loadIcon;
|
|
47
167
|
render(): import('lit-html').TemplateResult<1>;
|
|
48
168
|
}
|
|
49
169
|
declare global {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null } };
|
|
4
|
+
const iconsJson = {
|
|
5
|
+
icons
|
|
6
|
+
};
|
|
7
|
+
exports.default = iconsJson;
|
|
4
8
|
exports.icons = icons;
|
|
@@ -63,18 +63,6 @@ declare const _default: {
|
|
|
63
63
|
"sort": {
|
|
64
64
|
"class": "i-daikin-sort",
|
|
65
65
|
"color": null
|
|
66
|
-
},
|
|
67
|
-
"negative": {
|
|
68
|
-
"class": "i-daikin-error",
|
|
69
|
-
"color": null
|
|
70
|
-
},
|
|
71
|
-
"positive": {
|
|
72
|
-
"class": "i-daikin-success",
|
|
73
|
-
"color": null
|
|
74
|
-
},
|
|
75
|
-
"cross": {
|
|
76
|
-
"class": "i-daikin-close",
|
|
77
|
-
"color": null
|
|
78
66
|
}
|
|
79
67
|
}
|
|
80
68
|
}
|
|
@@ -89,6 +89,7 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSForm
|
|
|
89
89
|
this.buttonRole = null;
|
|
90
90
|
this.buttonAriaHaspopup = null;
|
|
91
91
|
this.buttonAriaExpanded = null;
|
|
92
|
+
this.size = "s";
|
|
92
93
|
this.addEventListener("click", (event) => {
|
|
93
94
|
if (this.disabled) {
|
|
94
95
|
event.stopImmediatePropagation();
|
|
@@ -146,8 +147,14 @@ exports.DaikinIconButton.styles = lit.css`
|
|
|
146
147
|
|
|
147
148
|
:host {
|
|
148
149
|
display: inline-block;
|
|
149
|
-
width: 2rem;
|
|
150
|
-
height: 2rem;
|
|
150
|
+
width: var(--ddc-icon-button-size, 2rem);
|
|
151
|
+
height: var(--ddc-icon-button-size, 2rem);
|
|
152
|
+
}
|
|
153
|
+
:host([size="s"]) {
|
|
154
|
+
--ddc-icon-button-size: 2rem; /* 32px */
|
|
155
|
+
}
|
|
156
|
+
:host([size="m"]) {
|
|
157
|
+
--ddc-icon-button-size: 3rem; /* 48px */
|
|
151
158
|
}
|
|
152
159
|
`;
|
|
153
160
|
__decorateClass([
|
|
@@ -177,6 +184,9 @@ __decorateClass([
|
|
|
177
184
|
__decorateClass([
|
|
178
185
|
decorators_js.property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
|
|
179
186
|
], exports.DaikinIconButton.prototype, "buttonAriaExpanded", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
decorators_js.property({ type: String, reflect: true })
|
|
189
|
+
], exports.DaikinIconButton.prototype, "size", 2);
|
|
180
190
|
__decorateClass([
|
|
181
191
|
decorators_js.query("button")
|
|
182
192
|
], exports.DaikinIconButton.prototype, "_button", 2);
|
|
@@ -75,6 +75,14 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
|
|
|
75
75
|
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
76
76
|
*/
|
|
77
77
|
buttonAriaExpanded: boolean | null;
|
|
78
|
+
/**
|
|
79
|
+
* Size of the button.
|
|
80
|
+
* - `s`: 32px * 32px
|
|
81
|
+
* - `m`: 48px * 48px
|
|
82
|
+
*
|
|
83
|
+
* Default is `s`.
|
|
84
|
+
*/
|
|
85
|
+
size: "s" | "m";
|
|
78
86
|
private _button;
|
|
79
87
|
constructor();
|
|
80
88
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -14,6 +14,8 @@ const daikinCarousel = require("./carousel/daikin-carousel.cjs");
|
|
|
14
14
|
const daikinCarouselItem = require("./carousel-item/daikin-carousel-item.cjs");
|
|
15
15
|
const daikinCheckbox = require("./checkbox/daikin-checkbox.cjs");
|
|
16
16
|
const daikinCheckboxGroup = require("./checkbox-group/daikin-checkbox-group.cjs");
|
|
17
|
+
const daikinChip = require("./chip/daikin-chip.cjs");
|
|
18
|
+
const daikinCombobox = require("./combobox/daikin-combobox.cjs");
|
|
17
19
|
const daikinDatePicker = require("./date-picker/daikin-date-picker.cjs");
|
|
18
20
|
const daikinDropdown = require("./dropdown/daikin-dropdown.cjs");
|
|
19
21
|
const daikinDropdownItem = require("./dropdown-item/daikin-dropdown-item.cjs");
|
|
@@ -35,6 +37,7 @@ const daikinProgressBar = require("./progress-bar/daikin-progress-bar.cjs");
|
|
|
35
37
|
const daikinProgressIndicator = require("./progress-indicator/daikin-progress-indicator.cjs");
|
|
36
38
|
const daikinProgressIndicatorItem = require("./progress-indicator-item/daikin-progress-indicator-item.cjs");
|
|
37
39
|
const daikinRadio = require("./radio/daikin-radio.cjs");
|
|
40
|
+
const daikinRadioGroup = require("./radio-group/daikin-radio-group.cjs");
|
|
38
41
|
const daikinSelect = require("./select/daikin-select.cjs");
|
|
39
42
|
const daikinSlider = require("./slider/daikin-slider.cjs");
|
|
40
43
|
const daikinTab = require("./tab/daikin-tab.cjs");
|
|
@@ -45,6 +48,8 @@ const daikinTableHeaderCell = require("./table-header-cell/daikin-table-header-c
|
|
|
45
48
|
const daikinTabs = require("./tabs/daikin-tabs.cjs");
|
|
46
49
|
const daikinTextArea = require("./text-area/daikin-text-area.cjs");
|
|
47
50
|
const daikinTextField = require("./text-field/daikin-text-field.cjs");
|
|
51
|
+
const daikinTextMaskedField = require("./text-masked-field/daikin-text-masked-field.cjs");
|
|
52
|
+
const daikinTimePicker = require("./time-picker/daikin-time-picker.cjs");
|
|
48
53
|
const daikinToastNotification = require("./toast-notification/daikin-toast-notification.cjs");
|
|
49
54
|
const daikinToastNotificationManager = require("./toast-notification-manager/daikin-toast-notification-manager.cjs");
|
|
50
55
|
const daikinToggle = require("./toggle/daikin-toggle.cjs");
|
|
@@ -108,6 +113,15 @@ Object.defineProperty(exports, "DaikinCheckboxGroup", {
|
|
|
108
113
|
enumerable: true,
|
|
109
114
|
get: () => daikinCheckboxGroup.DaikinCheckboxGroup
|
|
110
115
|
});
|
|
116
|
+
Object.defineProperty(exports, "DaikinChip", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: () => daikinChip.DaikinChip
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "DaikinCombobox", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: () => daikinCombobox.DaikinCombobox
|
|
123
|
+
});
|
|
124
|
+
exports.defaultFilterFn = daikinCombobox.defaultFilterFn;
|
|
111
125
|
Object.defineProperty(exports, "DaikinDatePicker", {
|
|
112
126
|
enumerable: true,
|
|
113
127
|
get: () => daikinDatePicker.DaikinDatePicker
|
|
@@ -193,6 +207,10 @@ Object.defineProperty(exports, "DaikinRadio", {
|
|
|
193
207
|
enumerable: true,
|
|
194
208
|
get: () => daikinRadio.DaikinRadio
|
|
195
209
|
});
|
|
210
|
+
Object.defineProperty(exports, "DaikinRadioGroup", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: () => daikinRadioGroup.DaikinRadioGroup
|
|
213
|
+
});
|
|
196
214
|
Object.defineProperty(exports, "DaikinSelect", {
|
|
197
215
|
enumerable: true,
|
|
198
216
|
get: () => daikinSelect.DaikinSelect
|
|
@@ -233,6 +251,24 @@ Object.defineProperty(exports, "DaikinTextField", {
|
|
|
233
251
|
enumerable: true,
|
|
234
252
|
get: () => daikinTextField.DaikinTextField
|
|
235
253
|
});
|
|
254
|
+
Object.defineProperty(exports, "DaikinTextMaskedField", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: () => daikinTextMaskedField.DaikinTextMaskedField
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "DaikinTimePicker", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: () => daikinTimePicker.DaikinTimePicker
|
|
261
|
+
});
|
|
262
|
+
exports.calcDigitInput = daikinTimePicker.calcDigitInput;
|
|
263
|
+
exports.formatPartsForUI = daikinTimePicker.formatPartsForUI;
|
|
264
|
+
exports.formatTimeForUI = daikinTimePicker.formatTimeForUI;
|
|
265
|
+
exports.from24HourFormat = daikinTimePicker.from24HourFormat;
|
|
266
|
+
exports.getTimeItemInSelection = daikinTimePicker.getTimeItemInSelection;
|
|
267
|
+
exports.isTimeOutOfRange = daikinTimePicker.isTimeOutOfRange;
|
|
268
|
+
exports.isValidValueTime = daikinTimePicker.isValidValueTime;
|
|
269
|
+
exports.parsePartsFromUIValue = daikinTimePicker.parsePartsFromUIValue;
|
|
270
|
+
exports.to24HourFormat = daikinTimePicker.to24HourFormat;
|
|
271
|
+
exports.tryParseTimeFromUIValue = daikinTimePicker.tryParseTimeFromUIValue;
|
|
236
272
|
Object.defineProperty(exports, "DaikinToastNotification", {
|
|
237
273
|
enumerable: true,
|
|
238
274
|
get: () => daikinToastNotification.DaikinToastNotification
|
|
@@ -12,6 +12,8 @@ export * from "./carousel/index.cjs";
|
|
|
12
12
|
export * from "./carousel-item/index.cjs";
|
|
13
13
|
export * from "./checkbox/index.cjs";
|
|
14
14
|
export * from "./checkbox-group/index.cjs";
|
|
15
|
+
export * from "./chip/index.cjs";
|
|
16
|
+
export * from "./combobox/index.cjs";
|
|
15
17
|
export * from "./date-picker/index.cjs";
|
|
16
18
|
export * from "./dropdown/index.cjs";
|
|
17
19
|
export * from "./dropdown-item/index.cjs";
|
|
@@ -33,6 +35,7 @@ export * from "./progress-bar/index.cjs";
|
|
|
33
35
|
export * from "./progress-indicator/index.cjs";
|
|
34
36
|
export * from "./progress-indicator-item/index.cjs";
|
|
35
37
|
export * from "./radio/index.cjs";
|
|
38
|
+
export * from "./radio-group/index.cjs";
|
|
36
39
|
export * from "./select/index.cjs";
|
|
37
40
|
export * from "./slider/index.cjs";
|
|
38
41
|
export * from "./tab/index.cjs";
|
|
@@ -43,6 +46,8 @@ export * from "./table-header-cell/index.cjs";
|
|
|
43
46
|
export * from "./tabs/index.cjs";
|
|
44
47
|
export * from "./text-area/index.cjs";
|
|
45
48
|
export * from "./text-field/index.cjs";
|
|
49
|
+
export * from "./text-masked-field/index.cjs";
|
|
50
|
+
export * from "./time-picker/index.cjs";
|
|
46
51
|
export * from "./toast-notification/index.cjs";
|
|
47
52
|
export * from "./toast-notification-manager/index.cjs";
|
|
48
53
|
export * from "./toggle/index.cjs";
|
|
@@ -184,7 +184,7 @@ __decorateClass([
|
|
|
184
184
|
], exports.DaikinInputGroup.prototype, "_textareas", 2);
|
|
185
185
|
__decorateClass([
|
|
186
186
|
decorators_js.queryAssignedElements({
|
|
187
|
-
selector: "daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-
|
|
187
|
+
selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker"
|
|
188
188
|
})
|
|
189
189
|
], exports.DaikinInputGroup.prototype, "_controls", 2);
|
|
190
190
|
__decorateClass([
|
|
@@ -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,8 +257,10 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
238
257
|
}
|
|
239
258
|
}
|
|
240
259
|
updated(changedProperties) {
|
|
241
|
-
|
|
242
|
-
if (
|
|
260
|
+
const sortChanged = changedProperties.has("headers") || changedProperties.has("sort") || changedProperties.has("order");
|
|
261
|
+
if (sortChanged) {
|
|
262
|
+
this._reflectSlotProperties();
|
|
263
|
+
}
|
|
243
264
|
}
|
|
244
265
|
};
|
|
245
266
|
exports.DaikinTable.styles = lit.css`
|
|
@@ -248,7 +269,7 @@ exports.DaikinTable.styles = lit.css`
|
|
|
248
269
|
:host {
|
|
249
270
|
display: block;
|
|
250
271
|
width: 100%;
|
|
251
|
-
overflow:
|
|
272
|
+
overflow: auto;
|
|
252
273
|
}
|
|
253
274
|
`;
|
|
254
275
|
__decorateClass([
|
|
@@ -268,10 +289,10 @@ __decorateClass([
|
|
|
268
289
|
], exports.DaikinTable.prototype, "selection", 2);
|
|
269
290
|
__decorateClass([
|
|
270
291
|
decorators_js.property({ type: String, reflect: true })
|
|
271
|
-
], exports.DaikinTable.prototype, "
|
|
292
|
+
], exports.DaikinTable.prototype, "sort", 2);
|
|
272
293
|
__decorateClass([
|
|
273
294
|
decorators_js.property({ type: String, reflect: true })
|
|
274
|
-
], exports.DaikinTable.prototype, "
|
|
295
|
+
], exports.DaikinTable.prototype, "order", 2);
|
|
275
296
|
__decorateClass([
|
|
276
297
|
decorators_js.property({ attribute: false })
|
|
277
298
|
], exports.DaikinTable.prototype, "sortFunction", 2);
|