@haloduck/ui 2.0.37 → 2.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/fesm2022/haloduck-ui.mjs +516 -222
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +11 -1
- package/package.json +1 -1
- package/public/i18n/haloduck/ko.json +1 -1
- package/src/tailwind.css +79 -1
package/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
109
109
|
placeholder: string;
|
|
110
110
|
atLeastOne: boolean;
|
|
111
111
|
showAll: boolean;
|
|
112
|
+
showAllItems: boolean;
|
|
112
113
|
options: Option[] | null;
|
|
113
114
|
layout: 'horizontal' | 'vertical';
|
|
114
115
|
labelWidth: string;
|
|
@@ -120,9 +121,14 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
120
121
|
selectedOptionIds: string[];
|
|
121
122
|
displayedSelectedOptions: Option[];
|
|
122
123
|
private selectedIdToDisplayOption;
|
|
124
|
+
manualInputValues: Record<string, string>;
|
|
125
|
+
activeManualKey: string | null;
|
|
123
126
|
onClick(event: MouseEvent): void;
|
|
124
127
|
onKeyDown(event: KeyboardEvent): void;
|
|
125
128
|
onDeselectOption(event: Event, option: Option): void;
|
|
129
|
+
onToggleOption(option: Option): void;
|
|
130
|
+
isOptionSelected(option: Option): boolean;
|
|
131
|
+
private isIdExclusive;
|
|
126
132
|
getSelectedValue(): string | string[] | null;
|
|
127
133
|
onChange: (_value: any) => void;
|
|
128
134
|
onTouched: () => void;
|
|
@@ -135,8 +141,12 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
135
141
|
ngOnChanges(changes: SimpleChanges): void;
|
|
136
142
|
private recomputeSelectedOptions;
|
|
137
143
|
private isManualSelection;
|
|
144
|
+
getManualKey(option: Option): string;
|
|
145
|
+
seedManualInputs(): void;
|
|
146
|
+
onManualInputChange(option: Option, value: string): void;
|
|
147
|
+
onManualInputBlur(option: Option): void;
|
|
138
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "haloduck-select", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "asButton": { "alias": "asButton"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useFilter": { "alias": "useFilter"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "atLeastOne": { "alias": "atLeastOne"; "required": false; }; "showAll": { "alias": "showAll"; "required": false; }; "options": { "alias": "options"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*", "buttonIcon"], true, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "haloduck-select", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "asButton": { "alias": "asButton"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useFilter": { "alias": "useFilter"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "atLeastOne": { "alias": "atLeastOne"; "required": false; }; "showAll": { "alias": "showAll"; "required": false; }; "showAllItems": { "alias": "showAllItems"; "required": false; }; "options": { "alias": "options"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*", "buttonIcon"], true, never>;
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
interface DateRange {
|
package/package.json
CHANGED
package/src/tailwind.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
--color-white: #fff;
|
|
39
39
|
--spacing: 0.25rem;
|
|
40
40
|
--breakpoint-xl: 80rem;
|
|
41
|
+
--container-xs: 20rem;
|
|
41
42
|
--container-md: 28rem;
|
|
42
43
|
--text-xs: 0.75rem;
|
|
43
44
|
--text-xs--line-height: calc(1 / 0.75);
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
--color-light-on-background: #091057;
|
|
80
81
|
--color-light-inactive: #d4c9be;
|
|
81
82
|
--color-light-on-inactive: #877f78;
|
|
82
|
-
--color-light-alternative: #
|
|
83
|
+
--color-light-alternative: #efefef;
|
|
83
84
|
--color-light-on-alternative: #625a56;
|
|
84
85
|
--color-dark-primary: #e91e63;
|
|
85
86
|
--color-dark-on-primary: #fff2eb;
|
|
@@ -297,6 +298,9 @@
|
|
|
297
298
|
.bottom-2 {
|
|
298
299
|
bottom: calc(var(--spacing) * 2);
|
|
299
300
|
}
|
|
301
|
+
.left-1\/2 {
|
|
302
|
+
left: calc(1/2 * 100%);
|
|
303
|
+
}
|
|
300
304
|
.isolate {
|
|
301
305
|
isolation: isolate;
|
|
302
306
|
}
|
|
@@ -306,6 +310,9 @@
|
|
|
306
310
|
.z-40 {
|
|
307
311
|
z-index: 40;
|
|
308
312
|
}
|
|
313
|
+
.z-1100 {
|
|
314
|
+
z-index: 1100;
|
|
315
|
+
}
|
|
309
316
|
.container {
|
|
310
317
|
width: 100%;
|
|
311
318
|
@media (width >= 40rem) {
|
|
@@ -393,6 +400,9 @@
|
|
|
393
400
|
.hidden {
|
|
394
401
|
display: none;
|
|
395
402
|
}
|
|
403
|
+
.inline {
|
|
404
|
+
display: inline;
|
|
405
|
+
}
|
|
396
406
|
.inline-block {
|
|
397
407
|
display: inline-block;
|
|
398
408
|
}
|
|
@@ -495,6 +505,9 @@
|
|
|
495
505
|
.w-\[2\.4rem\] {
|
|
496
506
|
width: 2.4rem;
|
|
497
507
|
}
|
|
508
|
+
.w-\[300px\] {
|
|
509
|
+
width: 300px;
|
|
510
|
+
}
|
|
498
511
|
.w-full {
|
|
499
512
|
width: 100%;
|
|
500
513
|
}
|
|
@@ -507,6 +520,9 @@
|
|
|
507
520
|
.max-w-md {
|
|
508
521
|
max-width: var(--container-md);
|
|
509
522
|
}
|
|
523
|
+
.max-w-xs {
|
|
524
|
+
max-width: var(--container-xs);
|
|
525
|
+
}
|
|
510
526
|
.min-w-96 {
|
|
511
527
|
min-width: calc(var(--spacing) * 96);
|
|
512
528
|
}
|
|
@@ -534,6 +550,10 @@
|
|
|
534
550
|
.origin-top-right {
|
|
535
551
|
transform-origin: top right;
|
|
536
552
|
}
|
|
553
|
+
.-translate-x-1\/2 {
|
|
554
|
+
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
555
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
556
|
+
}
|
|
537
557
|
.scale-100 {
|
|
538
558
|
--tw-scale-x: 100%;
|
|
539
559
|
--tw-scale-y: 100%;
|
|
@@ -552,6 +572,9 @@
|
|
|
552
572
|
.animate-spin {
|
|
553
573
|
animation: var(--animate-spin);
|
|
554
574
|
}
|
|
575
|
+
.cursor-not-allowed {
|
|
576
|
+
cursor: not-allowed;
|
|
577
|
+
}
|
|
555
578
|
.cursor-pointer {
|
|
556
579
|
cursor: pointer;
|
|
557
580
|
}
|
|
@@ -600,6 +623,9 @@
|
|
|
600
623
|
.gap-4 {
|
|
601
624
|
gap: calc(var(--spacing) * 4);
|
|
602
625
|
}
|
|
626
|
+
.gap-6 {
|
|
627
|
+
gap: calc(var(--spacing) * 6);
|
|
628
|
+
}
|
|
603
629
|
.gap-8 {
|
|
604
630
|
gap: calc(var(--spacing) * 8);
|
|
605
631
|
}
|
|
@@ -1144,9 +1170,15 @@
|
|
|
1144
1170
|
.line-through {
|
|
1145
1171
|
text-decoration-line: line-through;
|
|
1146
1172
|
}
|
|
1173
|
+
.accent-light-primary {
|
|
1174
|
+
accent-color: var(--color-light-primary);
|
|
1175
|
+
}
|
|
1147
1176
|
.opacity-0 {
|
|
1148
1177
|
opacity: 0%;
|
|
1149
1178
|
}
|
|
1179
|
+
.opacity-60 {
|
|
1180
|
+
opacity: 60%;
|
|
1181
|
+
}
|
|
1150
1182
|
.opacity-100 {
|
|
1151
1183
|
opacity: 100%;
|
|
1152
1184
|
}
|
|
@@ -1375,6 +1407,17 @@
|
|
|
1375
1407
|
}
|
|
1376
1408
|
}
|
|
1377
1409
|
}
|
|
1410
|
+
.focus\:ring-2 {
|
|
1411
|
+
&:focus {
|
|
1412
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1413
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
.focus\:ring-light-primary {
|
|
1417
|
+
&:focus {
|
|
1418
|
+
--tw-ring-color: var(--color-light-primary);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1378
1421
|
.focus\:outline-2 {
|
|
1379
1422
|
&:focus {
|
|
1380
1423
|
outline-style: var(--tw-outline-style);
|
|
@@ -1480,6 +1523,11 @@
|
|
|
1480
1523
|
padding-inline: calc(var(--spacing) * 8);
|
|
1481
1524
|
}
|
|
1482
1525
|
}
|
|
1526
|
+
.dark\:border-black {
|
|
1527
|
+
@media (prefers-color-scheme: dark) {
|
|
1528
|
+
border-color: var(--color-black);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1483
1531
|
.dark\:border-dark-inactive {
|
|
1484
1532
|
@media (prefers-color-scheme: dark) {
|
|
1485
1533
|
border-color: var(--color-dark-inactive);
|
|
@@ -1700,6 +1748,11 @@
|
|
|
1700
1748
|
}
|
|
1701
1749
|
}
|
|
1702
1750
|
}
|
|
1751
|
+
.dark\:accent-dark-primary {
|
|
1752
|
+
@media (prefers-color-scheme: dark) {
|
|
1753
|
+
accent-color: var(--color-dark-primary);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1703
1756
|
.dark\:ring-dark-inactive {
|
|
1704
1757
|
@media (prefers-color-scheme: dark) {
|
|
1705
1758
|
--tw-ring-color: var(--color-dark-inactive);
|
|
@@ -1787,6 +1840,13 @@
|
|
|
1787
1840
|
}
|
|
1788
1841
|
}
|
|
1789
1842
|
}
|
|
1843
|
+
.dark\:focus\:ring-dark-primary {
|
|
1844
|
+
@media (prefers-color-scheme: dark) {
|
|
1845
|
+
&:focus {
|
|
1846
|
+
--tw-ring-color: var(--color-dark-primary);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1790
1850
|
.dark\:focus\:outline-dark-primary {
|
|
1791
1851
|
@media (prefers-color-scheme: dark) {
|
|
1792
1852
|
&:focus {
|
|
@@ -1862,6 +1922,21 @@
|
|
|
1862
1922
|
}
|
|
1863
1923
|
}
|
|
1864
1924
|
}
|
|
1925
|
+
@property --tw-translate-x {
|
|
1926
|
+
syntax: "*";
|
|
1927
|
+
inherits: false;
|
|
1928
|
+
initial-value: 0;
|
|
1929
|
+
}
|
|
1930
|
+
@property --tw-translate-y {
|
|
1931
|
+
syntax: "*";
|
|
1932
|
+
inherits: false;
|
|
1933
|
+
initial-value: 0;
|
|
1934
|
+
}
|
|
1935
|
+
@property --tw-translate-z {
|
|
1936
|
+
syntax: "*";
|
|
1937
|
+
inherits: false;
|
|
1938
|
+
initial-value: 0;
|
|
1939
|
+
}
|
|
1865
1940
|
@property --tw-scale-x {
|
|
1866
1941
|
syntax: "*";
|
|
1867
1942
|
inherits: false;
|
|
@@ -2046,6 +2121,9 @@
|
|
|
2046
2121
|
@layer properties {
|
|
2047
2122
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
2048
2123
|
*, ::before, ::after, ::backdrop {
|
|
2124
|
+
--tw-translate-x: 0;
|
|
2125
|
+
--tw-translate-y: 0;
|
|
2126
|
+
--tw-translate-z: 0;
|
|
2049
2127
|
--tw-scale-x: 1;
|
|
2050
2128
|
--tw-scale-y: 1;
|
|
2051
2129
|
--tw-scale-z: 1;
|