@lilydesignsystem/angular-picker-bar 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/fesm2022/lilydesignsystem-angular-picker-bar.mjs +278 -15
- package/fesm2022/lilydesignsystem-angular-picker-bar.mjs.map +1 -1
- package/package.json +13 -12
- package/types/lilydesignsystem-angular-picker-bar.d.ts +122 -47
- package/types/lilydesignsystem-angular-picker-bar.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> **Link picker (0.3.0).** Pass `links` (and `labels.link`) to add a `link-picker` — a home icon opening the page links your app defines — as the leftmost icon. It renders only when both are given.
|
|
4
4
|
|
|
5
|
+
> **Time zone picker (0.5.0).** Set `labels().timeZone` and `timeZoneLocale` (plus `timeZones`, `timeZoneDate`, `timeZoneLabelFor`, `timeZoneNames`, and the two-way `timeZoneValue`) to add a `time-zone-picker` — time zones by UTC offset with their full names — right after the locale picker. It renders only when both the label and the locale are given. To name the text sizes in the reader's language pass `sizeLabels` through the text-size props (`textSizeLabels(pack)` / `LocaleTranslations.TextSizeLabels(locale)` from the locale-translations package).
|
|
6
|
+
|
|
5
7
|
A single page-header row that composes five of the Lily
|
|
6
8
|
[`*-picker` helpers](../index.md) — search, theme, locale, text size,
|
|
7
9
|
and share, in that order — with two catalog-wide defaults pre-wired, so
|
|
@@ -4,17 +4,21 @@ import { LinkPicker } from "@lilydesignsystem/angular-link-picker";
|
|
|
4
4
|
import { ThemePicker } from "@lilydesignsystem/angular-theme-picker";
|
|
5
5
|
import { LocalePicker } from "@lilydesignsystem/angular-locale-picker";
|
|
6
6
|
import { TextSizePicker } from "@lilydesignsystem/angular-text-size-picker";
|
|
7
|
+
import { DEFAULT_ZONES, TimeZonePicker } from "@lilydesignsystem/angular-time-zone-picker";
|
|
7
8
|
import { SharePicker } from "@lilydesignsystem/angular-share-picker";
|
|
8
9
|
import { SearchPicker } from "@lilydesignsystem/angular-search-picker";
|
|
9
10
|
const DEFAULT_THEMES = [
|
|
10
11
|
"abyss",
|
|
11
12
|
"acid",
|
|
12
13
|
"adobe-spectrum",
|
|
14
|
+
"ant-design",
|
|
13
15
|
"aqua",
|
|
16
|
+
"atlassian",
|
|
14
17
|
"autumn",
|
|
15
18
|
"black",
|
|
16
19
|
"bumblebee",
|
|
17
20
|
"business",
|
|
21
|
+
"cappuccino",
|
|
18
22
|
"caramellatte",
|
|
19
23
|
"cmyk",
|
|
20
24
|
"coffee",
|
|
@@ -25,23 +29,32 @@ const DEFAULT_THEMES = [
|
|
|
25
29
|
"dim",
|
|
26
30
|
"dracula",
|
|
27
31
|
"emerald",
|
|
32
|
+
"excel",
|
|
28
33
|
"fantasy",
|
|
34
|
+
"fluent",
|
|
29
35
|
"forest",
|
|
30
36
|
"garden",
|
|
37
|
+
"github-primer",
|
|
31
38
|
"halloween",
|
|
39
|
+
"ibm-carbon",
|
|
32
40
|
"lemonade",
|
|
33
41
|
"light",
|
|
42
|
+
"linear",
|
|
34
43
|
"lofi",
|
|
35
44
|
"luxury",
|
|
36
45
|
"mozilla-protocol",
|
|
37
46
|
"night",
|
|
38
47
|
"nord",
|
|
48
|
+
"notion",
|
|
39
49
|
"pastel",
|
|
40
50
|
"retro",
|
|
51
|
+
"salesforce",
|
|
52
|
+
"sap-fiori",
|
|
41
53
|
"silk",
|
|
42
54
|
"sunset",
|
|
43
55
|
"synthwave",
|
|
44
56
|
"valentine",
|
|
57
|
+
"vercel",
|
|
45
58
|
"winter",
|
|
46
59
|
"wireframe",
|
|
47
60
|
"united-kingdom-government-digital-service",
|
|
@@ -91,6 +104,16 @@ var PickerBar = class PickerBar {
|
|
|
91
104
|
this.localeTarget = input(null, ...ngDevMode ? [{ debugName: "localeTarget" }] : /* istanbul ignore next */ []);
|
|
92
105
|
this.localeApplyDir = input(true, ...ngDevMode ? [{ debugName: "localeApplyDir" }] : /* istanbul ignore next */ []);
|
|
93
106
|
this.localeLabels = input({}, ...ngDevMode ? [{ debugName: "localeLabels" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this.timeZoneLocale = input(void 0, ...ngDevMode ? [{ debugName: "timeZoneLocale" }] : /* istanbul ignore next */ []);
|
|
108
|
+
this.timeZones = input(DEFAULT_ZONES, ...ngDevMode ? [{ debugName: "timeZones" }] : /* istanbul ignore next */ []);
|
|
109
|
+
this.timeZoneDate = input(void 0, ...ngDevMode ? [{ debugName: "timeZoneDate" }] : /* istanbul ignore next */ []);
|
|
110
|
+
this.timeZoneLabelFor = input(void 0, ...ngDevMode ? [{ debugName: "timeZoneLabelFor" }] : /* istanbul ignore next */ []);
|
|
111
|
+
this.timeZoneNames = input(void 0, ...ngDevMode ? [{ debugName: "timeZoneNames" }] : /* istanbul ignore next */ []);
|
|
112
|
+
this.timeZoneValue = model("", ...ngDevMode ? [{ debugName: "timeZoneValue" }] : /* istanbul ignore next */ []);
|
|
113
|
+
this.timeZoneDefaultValue = input("", ...ngDevMode ? [{ debugName: "timeZoneDefaultValue" }] : /* istanbul ignore next */ []);
|
|
114
|
+
this.timeZoneStorageKey = input("", ...ngDevMode ? [{ debugName: "timeZoneStorageKey" }] : /* istanbul ignore next */ []);
|
|
115
|
+
this.timeZoneName = input("time-zone", ...ngDevMode ? [{ debugName: "timeZoneName" }] : /* istanbul ignore next */ []);
|
|
116
|
+
this.timeZoneTarget = input(null, ...ngDevMode ? [{ debugName: "timeZoneTarget" }] : /* istanbul ignore next */ []);
|
|
94
117
|
this.sizes = input(DEFAULT_SIZES, ...ngDevMode ? [{ debugName: "sizes" }] : /* istanbul ignore next */ []);
|
|
95
118
|
this.textSizeValue = model("", ...ngDevMode ? [{ debugName: "textSizeValue" }] : /* istanbul ignore next */ []);
|
|
96
119
|
this.textSizeDefaultValue = input("normal", ...ngDevMode ? [{ debugName: "textSizeDefaultValue" }] : /* istanbul ignore next */ []);
|
|
@@ -114,7 +137,7 @@ var PickerBar = class PickerBar {
|
|
|
114
137
|
static {
|
|
115
138
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
116
139
|
minVersion: "12.0.0",
|
|
117
|
-
version: "22.2.
|
|
140
|
+
version: "22.2.3",
|
|
118
141
|
ngImport: i0,
|
|
119
142
|
type: PickerBar,
|
|
120
143
|
deps: [],
|
|
@@ -124,7 +147,7 @@ var PickerBar = class PickerBar {
|
|
|
124
147
|
static {
|
|
125
148
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
126
149
|
minVersion: "17.0.0",
|
|
127
|
-
version: "22.2.
|
|
150
|
+
version: "22.2.3",
|
|
128
151
|
type: PickerBar,
|
|
129
152
|
isStandalone: true,
|
|
130
153
|
selector: "lily-picker-bar",
|
|
@@ -304,6 +327,76 @@ var PickerBar = class PickerBar {
|
|
|
304
327
|
isRequired: false,
|
|
305
328
|
transformFunction: null
|
|
306
329
|
},
|
|
330
|
+
timeZoneLocale: {
|
|
331
|
+
classPropertyName: "timeZoneLocale",
|
|
332
|
+
publicName: "timeZoneLocale",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: false,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
},
|
|
337
|
+
timeZones: {
|
|
338
|
+
classPropertyName: "timeZones",
|
|
339
|
+
publicName: "timeZones",
|
|
340
|
+
isSignal: true,
|
|
341
|
+
isRequired: false,
|
|
342
|
+
transformFunction: null
|
|
343
|
+
},
|
|
344
|
+
timeZoneDate: {
|
|
345
|
+
classPropertyName: "timeZoneDate",
|
|
346
|
+
publicName: "timeZoneDate",
|
|
347
|
+
isSignal: true,
|
|
348
|
+
isRequired: false,
|
|
349
|
+
transformFunction: null
|
|
350
|
+
},
|
|
351
|
+
timeZoneLabelFor: {
|
|
352
|
+
classPropertyName: "timeZoneLabelFor",
|
|
353
|
+
publicName: "timeZoneLabelFor",
|
|
354
|
+
isSignal: true,
|
|
355
|
+
isRequired: false,
|
|
356
|
+
transformFunction: null
|
|
357
|
+
},
|
|
358
|
+
timeZoneNames: {
|
|
359
|
+
classPropertyName: "timeZoneNames",
|
|
360
|
+
publicName: "timeZoneNames",
|
|
361
|
+
isSignal: true,
|
|
362
|
+
isRequired: false,
|
|
363
|
+
transformFunction: null
|
|
364
|
+
},
|
|
365
|
+
timeZoneValue: {
|
|
366
|
+
classPropertyName: "timeZoneValue",
|
|
367
|
+
publicName: "timeZoneValue",
|
|
368
|
+
isSignal: true,
|
|
369
|
+
isRequired: false,
|
|
370
|
+
transformFunction: null
|
|
371
|
+
},
|
|
372
|
+
timeZoneDefaultValue: {
|
|
373
|
+
classPropertyName: "timeZoneDefaultValue",
|
|
374
|
+
publicName: "timeZoneDefaultValue",
|
|
375
|
+
isSignal: true,
|
|
376
|
+
isRequired: false,
|
|
377
|
+
transformFunction: null
|
|
378
|
+
},
|
|
379
|
+
timeZoneStorageKey: {
|
|
380
|
+
classPropertyName: "timeZoneStorageKey",
|
|
381
|
+
publicName: "timeZoneStorageKey",
|
|
382
|
+
isSignal: true,
|
|
383
|
+
isRequired: false,
|
|
384
|
+
transformFunction: null
|
|
385
|
+
},
|
|
386
|
+
timeZoneName: {
|
|
387
|
+
classPropertyName: "timeZoneName",
|
|
388
|
+
publicName: "timeZoneName",
|
|
389
|
+
isSignal: true,
|
|
390
|
+
isRequired: false,
|
|
391
|
+
transformFunction: null
|
|
392
|
+
},
|
|
393
|
+
timeZoneTarget: {
|
|
394
|
+
classPropertyName: "timeZoneTarget",
|
|
395
|
+
publicName: "timeZoneTarget",
|
|
396
|
+
isSignal: true,
|
|
397
|
+
isRequired: false,
|
|
398
|
+
transformFunction: null
|
|
399
|
+
},
|
|
307
400
|
sizes: {
|
|
308
401
|
classPropertyName: "sizes",
|
|
309
402
|
publicName: "sizes",
|
|
@@ -423,6 +516,7 @@ var PickerBar = class PickerBar {
|
|
|
423
516
|
searched: "searched",
|
|
424
517
|
themeValue: "themeValueChange",
|
|
425
518
|
localeValue: "localeValueChange",
|
|
519
|
+
timeZoneValue: "timeZoneValueChange",
|
|
426
520
|
textSizeValue: "textSizeValueChange",
|
|
427
521
|
share: "share",
|
|
428
522
|
copy: "copy",
|
|
@@ -473,6 +567,21 @@ var PickerBar = class PickerBar {
|
|
|
473
567
|
[applyDir]="localeApplyDir()"
|
|
474
568
|
[localeLabels]="localeLabels()"
|
|
475
569
|
/>
|
|
570
|
+
@if (labels().timeZone && timeZoneLocale()) {
|
|
571
|
+
<lily-time-zone-picker
|
|
572
|
+
[label]="labels().timeZone!"
|
|
573
|
+
[locale]="timeZoneLocale()!"
|
|
574
|
+
[zones]="timeZones()"
|
|
575
|
+
[date]="timeZoneDate()"
|
|
576
|
+
[labelFor]="timeZoneLabelFor()"
|
|
577
|
+
[names]="timeZoneNames()"
|
|
578
|
+
[(value)]="timeZoneValue"
|
|
579
|
+
[defaultValue]="timeZoneDefaultValue()"
|
|
580
|
+
[storageKey]="timeZoneStorageKey()"
|
|
581
|
+
[name]="timeZoneName()"
|
|
582
|
+
[target]="timeZoneTarget()"
|
|
583
|
+
/>
|
|
584
|
+
}
|
|
476
585
|
<lily-text-size-picker
|
|
477
586
|
[label]="labels().textSize"
|
|
478
587
|
[sizes]="sizes()"
|
|
@@ -509,9 +618,11 @@ var PickerBar = class PickerBar {
|
|
|
509
618
|
"label",
|
|
510
619
|
"links",
|
|
511
620
|
"navigate",
|
|
512
|
-
"className"
|
|
621
|
+
"className",
|
|
622
|
+
"open",
|
|
623
|
+
"disabled"
|
|
513
624
|
],
|
|
514
|
-
outputs: ["navigated"]
|
|
625
|
+
outputs: ["navigated", "openChange"]
|
|
515
626
|
},
|
|
516
627
|
{
|
|
517
628
|
kind: "component",
|
|
@@ -525,9 +636,15 @@ var PickerBar = class PickerBar {
|
|
|
525
636
|
"value",
|
|
526
637
|
"action",
|
|
527
638
|
"navigate",
|
|
528
|
-
"className"
|
|
639
|
+
"className",
|
|
640
|
+
"open",
|
|
641
|
+
"disabled"
|
|
529
642
|
],
|
|
530
|
-
outputs: [
|
|
643
|
+
outputs: [
|
|
644
|
+
"valueChange",
|
|
645
|
+
"searched",
|
|
646
|
+
"openChange"
|
|
647
|
+
]
|
|
531
648
|
},
|
|
532
649
|
{
|
|
533
650
|
kind: "component",
|
|
@@ -545,9 +662,15 @@ var PickerBar = class PickerBar {
|
|
|
545
662
|
"extension",
|
|
546
663
|
"target",
|
|
547
664
|
"themeLabels",
|
|
548
|
-
"className"
|
|
665
|
+
"className",
|
|
666
|
+
"open",
|
|
667
|
+
"disabled"
|
|
549
668
|
],
|
|
550
|
-
outputs: [
|
|
669
|
+
outputs: [
|
|
670
|
+
"valueChange",
|
|
671
|
+
"themeChange",
|
|
672
|
+
"openChange"
|
|
673
|
+
]
|
|
551
674
|
},
|
|
552
675
|
{
|
|
553
676
|
kind: "component",
|
|
@@ -564,9 +687,15 @@ var PickerBar = class PickerBar {
|
|
|
564
687
|
"target",
|
|
565
688
|
"applyDir",
|
|
566
689
|
"localeLabels",
|
|
567
|
-
"className"
|
|
690
|
+
"className",
|
|
691
|
+
"open",
|
|
692
|
+
"disabled"
|
|
568
693
|
],
|
|
569
|
-
outputs: [
|
|
694
|
+
outputs: [
|
|
695
|
+
"valueChange",
|
|
696
|
+
"localeChange",
|
|
697
|
+
"openChange"
|
|
698
|
+
]
|
|
570
699
|
},
|
|
571
700
|
{
|
|
572
701
|
kind: "component",
|
|
@@ -581,9 +710,41 @@ var PickerBar = class PickerBar {
|
|
|
581
710
|
"name",
|
|
582
711
|
"target",
|
|
583
712
|
"sizeLabels",
|
|
584
|
-
"className"
|
|
713
|
+
"className",
|
|
714
|
+
"open",
|
|
715
|
+
"disabled"
|
|
585
716
|
],
|
|
586
|
-
outputs: [
|
|
717
|
+
outputs: [
|
|
718
|
+
"valueChange",
|
|
719
|
+
"sizeChange",
|
|
720
|
+
"openChange"
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
kind: "component",
|
|
725
|
+
type: TimeZonePicker,
|
|
726
|
+
selector: "lily-time-zone-picker",
|
|
727
|
+
inputs: [
|
|
728
|
+
"label",
|
|
729
|
+
"locale",
|
|
730
|
+
"zones",
|
|
731
|
+
"date",
|
|
732
|
+
"labelFor",
|
|
733
|
+
"names",
|
|
734
|
+
"value",
|
|
735
|
+
"defaultValue",
|
|
736
|
+
"storageKey",
|
|
737
|
+
"name",
|
|
738
|
+
"target",
|
|
739
|
+
"className",
|
|
740
|
+
"open",
|
|
741
|
+
"disabled"
|
|
742
|
+
],
|
|
743
|
+
outputs: [
|
|
744
|
+
"valueChange",
|
|
745
|
+
"zoneChange",
|
|
746
|
+
"openChange"
|
|
747
|
+
]
|
|
587
748
|
},
|
|
588
749
|
{
|
|
589
750
|
kind: "component",
|
|
@@ -599,12 +760,15 @@ var PickerBar = class PickerBar {
|
|
|
599
760
|
"copiedLabel",
|
|
600
761
|
"copyFailedLabel",
|
|
601
762
|
"strategy",
|
|
602
|
-
"className"
|
|
763
|
+
"className",
|
|
764
|
+
"open",
|
|
765
|
+
"disabled"
|
|
603
766
|
],
|
|
604
767
|
outputs: [
|
|
605
768
|
"share",
|
|
606
769
|
"copy",
|
|
607
|
-
"nativeShare"
|
|
770
|
+
"nativeShare",
|
|
771
|
+
"openChange"
|
|
608
772
|
]
|
|
609
773
|
}
|
|
610
774
|
],
|
|
@@ -614,7 +778,7 @@ var PickerBar = class PickerBar {
|
|
|
614
778
|
};
|
|
615
779
|
i0.ɵɵngDeclareClassMetadata({
|
|
616
780
|
minVersion: "12.0.0",
|
|
617
|
-
version: "22.2.
|
|
781
|
+
version: "22.2.3",
|
|
618
782
|
ngImport: i0,
|
|
619
783
|
type: PickerBar,
|
|
620
784
|
decorators: [{
|
|
@@ -628,6 +792,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
628
792
|
ThemePicker,
|
|
629
793
|
LocalePicker,
|
|
630
794
|
TextSizePicker,
|
|
795
|
+
TimeZonePicker,
|
|
631
796
|
SharePicker
|
|
632
797
|
],
|
|
633
798
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -675,6 +840,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
675
840
|
[applyDir]="localeApplyDir()"
|
|
676
841
|
[localeLabels]="localeLabels()"
|
|
677
842
|
/>
|
|
843
|
+
@if (labels().timeZone && timeZoneLocale()) {
|
|
844
|
+
<lily-time-zone-picker
|
|
845
|
+
[label]="labels().timeZone!"
|
|
846
|
+
[locale]="timeZoneLocale()!"
|
|
847
|
+
[zones]="timeZones()"
|
|
848
|
+
[date]="timeZoneDate()"
|
|
849
|
+
[labelFor]="timeZoneLabelFor()"
|
|
850
|
+
[names]="timeZoneNames()"
|
|
851
|
+
[(value)]="timeZoneValue"
|
|
852
|
+
[defaultValue]="timeZoneDefaultValue()"
|
|
853
|
+
[storageKey]="timeZoneStorageKey()"
|
|
854
|
+
[name]="timeZoneName()"
|
|
855
|
+
[target]="timeZoneTarget()"
|
|
856
|
+
/>
|
|
857
|
+
}
|
|
678
858
|
<lily-text-size-picker
|
|
679
859
|
[label]="labels().textSize"
|
|
680
860
|
[sizes]="sizes()"
|
|
@@ -921,6 +1101,89 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
921
1101
|
required: false
|
|
922
1102
|
}]
|
|
923
1103
|
}],
|
|
1104
|
+
timeZoneLocale: [{
|
|
1105
|
+
type: i0.Input,
|
|
1106
|
+
args: [{
|
|
1107
|
+
isSignal: true,
|
|
1108
|
+
alias: "timeZoneLocale",
|
|
1109
|
+
required: false
|
|
1110
|
+
}]
|
|
1111
|
+
}],
|
|
1112
|
+
timeZones: [{
|
|
1113
|
+
type: i0.Input,
|
|
1114
|
+
args: [{
|
|
1115
|
+
isSignal: true,
|
|
1116
|
+
alias: "timeZones",
|
|
1117
|
+
required: false
|
|
1118
|
+
}]
|
|
1119
|
+
}],
|
|
1120
|
+
timeZoneDate: [{
|
|
1121
|
+
type: i0.Input,
|
|
1122
|
+
args: [{
|
|
1123
|
+
isSignal: true,
|
|
1124
|
+
alias: "timeZoneDate",
|
|
1125
|
+
required: false
|
|
1126
|
+
}]
|
|
1127
|
+
}],
|
|
1128
|
+
timeZoneLabelFor: [{
|
|
1129
|
+
type: i0.Input,
|
|
1130
|
+
args: [{
|
|
1131
|
+
isSignal: true,
|
|
1132
|
+
alias: "timeZoneLabelFor",
|
|
1133
|
+
required: false
|
|
1134
|
+
}]
|
|
1135
|
+
}],
|
|
1136
|
+
timeZoneNames: [{
|
|
1137
|
+
type: i0.Input,
|
|
1138
|
+
args: [{
|
|
1139
|
+
isSignal: true,
|
|
1140
|
+
alias: "timeZoneNames",
|
|
1141
|
+
required: false
|
|
1142
|
+
}]
|
|
1143
|
+
}],
|
|
1144
|
+
timeZoneValue: [{
|
|
1145
|
+
type: i0.Input,
|
|
1146
|
+
args: [{
|
|
1147
|
+
isSignal: true,
|
|
1148
|
+
alias: "timeZoneValue",
|
|
1149
|
+
required: false
|
|
1150
|
+
}]
|
|
1151
|
+
}, {
|
|
1152
|
+
type: i0.Output,
|
|
1153
|
+
args: ["timeZoneValueChange"]
|
|
1154
|
+
}],
|
|
1155
|
+
timeZoneDefaultValue: [{
|
|
1156
|
+
type: i0.Input,
|
|
1157
|
+
args: [{
|
|
1158
|
+
isSignal: true,
|
|
1159
|
+
alias: "timeZoneDefaultValue",
|
|
1160
|
+
required: false
|
|
1161
|
+
}]
|
|
1162
|
+
}],
|
|
1163
|
+
timeZoneStorageKey: [{
|
|
1164
|
+
type: i0.Input,
|
|
1165
|
+
args: [{
|
|
1166
|
+
isSignal: true,
|
|
1167
|
+
alias: "timeZoneStorageKey",
|
|
1168
|
+
required: false
|
|
1169
|
+
}]
|
|
1170
|
+
}],
|
|
1171
|
+
timeZoneName: [{
|
|
1172
|
+
type: i0.Input,
|
|
1173
|
+
args: [{
|
|
1174
|
+
isSignal: true,
|
|
1175
|
+
alias: "timeZoneName",
|
|
1176
|
+
required: false
|
|
1177
|
+
}]
|
|
1178
|
+
}],
|
|
1179
|
+
timeZoneTarget: [{
|
|
1180
|
+
type: i0.Input,
|
|
1181
|
+
args: [{
|
|
1182
|
+
isSignal: true,
|
|
1183
|
+
alias: "timeZoneTarget",
|
|
1184
|
+
required: false
|
|
1185
|
+
}]
|
|
1186
|
+
}],
|
|
924
1187
|
sizes: [{
|
|
925
1188
|
type: i0.Input,
|
|
926
1189
|
args: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lilydesignsystem-angular-picker-bar.mjs","names":[],"sources":["../../picker-bar.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, model, output } from \"@angular/core\";\n\nimport {\n LinkPicker,\n type LinkItem,\n type LinkNavigatedEvent,\n} from \"@lilydesignsystem/angular-link-picker\";\nimport { ThemePicker } from \"@lilydesignsystem/angular-theme-picker\";\nimport { LocalePicker } from \"@lilydesignsystem/angular-locale-picker\";\nimport { TextSizePicker } from \"@lilydesignsystem/angular-text-size-picker\";\nimport {\n SharePicker,\n type ShareEvent,\n type ShareStrategy,\n type ShareTarget,\n} from \"@lilydesignsystem/angular-share-picker\";\nimport {\n SearchPicker,\n type SearchEvent,\n} from \"@lilydesignsystem/angular-search-picker\";\n\n/**\n * All 45 Lily reference theme slugs (see `themes/` at the repo root),\n * sorted alphabetically except the United Kingdom and United States\n * government/public-sector themes, which sort last as one alphabetical\n * group of their own. Mirrors `theme-picker`'s own title-casing of each\n * slug, so no `themeLabels` override is needed for these to read well.\n */\nexport const DEFAULT_THEMES: string[] = [\n \"abyss\",\n \"acid\",\n \"adobe-spectrum\",\n \"aqua\",\n \"autumn\",\n \"black\",\n \"bumblebee\",\n \"business\",\n \"caramellatte\",\n \"cmyk\",\n \"coffee\",\n \"corporate\",\n \"cupcake\",\n \"cyberpunk\",\n \"dark\",\n \"dim\",\n \"dracula\",\n \"emerald\",\n \"fantasy\",\n \"forest\",\n \"garden\",\n \"halloween\",\n \"lemonade\",\n \"light\",\n \"lofi\",\n \"luxury\",\n \"mozilla-protocol\",\n \"night\",\n \"nord\",\n \"pastel\",\n \"retro\",\n \"silk\",\n \"sunset\",\n \"synthwave\",\n \"valentine\",\n \"winter\",\n \"wireframe\",\n \"united-kingdom-government-digital-service\",\n \"united-kingdom-national-health-service-england-for-patients\",\n \"united-kingdom-national-health-service-england-for-practitioners\",\n \"united-kingdom-national-health-service-scotland-for-patients\",\n \"united-kingdom-national-health-service-scotland-for-practitioners\",\n \"united-kingdom-national-health-service-wales-for-patients\",\n \"united-kingdom-national-health-service-wales-for-practitioners\",\n \"united-states-web-design-system\",\n];\n\n/**\n * The seven-step text-size scale. Each slug title-cases to exactly the\n * requested label (\"largest\" → \"Largest\", …) via `text-size-picker`'s\n * own default `labelFor`, so no `sizeLabels` override is needed either.\n */\nexport const DEFAULT_SIZES: string[] = [\n \"largest\",\n \"larger\",\n \"large\",\n \"normal\",\n \"small\",\n \"smaller\",\n \"smallest\",\n];\n\n/** Accessible names for the pickers. Required — no English default (`link` only when `links` is given). */\nexport type PickerBarLabels = {\n /**\n * Accessible name for the link picker's button and list. Needed only when `links` is\n * supplied; the link picker renders only when both are present.\n */\n link?: string;\n /** Accessible name for the search picker's button and search landmark. */\n search: string;\n /** Accessible name for the search picker's text field. */\n searchInput: string;\n /** Accessible name for the search picker's ⏎ submit button. */\n searchSubmit: string;\n /** Accessible name for the theme picker's button and listbox. */\n theme: string;\n /** Accessible name for the locale picker's button and listbox. */\n locale: string;\n /** Accessible name for the text-size picker's button and listbox. */\n textSize: string;\n /** Accessible name for the share picker's button and list. */\n share: string;\n};\n\n/**\n * PickerBar — composes search-picker, theme-picker, locale-picker,\n * text-size-picker, and share-picker into one page-header row.\n *\n * A thin wrapper: it renders the five picker components, each imported\n * as a real npm dependency from its own published package, unmodified.\n * It pre-wires two catalog-specific defaults (`DEFAULT_THEMES`,\n * `DEFAULT_SIZES`) and flattens each wrapped picker's most commonly\n * needed optional props onto its own inputs — Angular has no spread\n * binding for component inputs, so unlike the canonical Svelte\n * contract's `*Props` bag, overrides here are named inputs rather than\n * an object spread. `motion-picker` and `date-time-picker` are\n * deliberately not included — see `spec/index.md` §1.\n */\n@Component({\n selector: \"lily-picker-bar\",\n standalone: true,\n imports: [LinkPicker, SearchPicker, ThemePicker, LocalePicker, TextSizePicker, SharePicker],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"picker-bar {{ className() }}\">\n @if (links().length > 0 && labels().link) {\n <lily-link-picker\n [label]=\"labels().link!\"\n [links]=\"links()\"\n [navigate]=\"linkNavigate()\"\n (navigated)=\"linkNavigated.emit($event)\"\n />\n }\n <lily-search-picker\n [label]=\"labels().search\"\n [inputLabel]=\"labels().searchInput\"\n [submitLabel]=\"labels().searchSubmit\"\n [placeholder]=\"searchPlaceholder()\"\n [(value)]=\"searchValue\"\n [action]=\"searchAction()\"\n [navigate]=\"searchNavigate()\"\n (searched)=\"searched.emit($event)\"\n />\n <lily-theme-picker\n [label]=\"labels().theme\"\n [themesUrl]=\"themesUrl()\"\n [themes]=\"themes()\"\n [(value)]=\"themeValue\"\n [defaultValue]=\"themeDefaultValue()\"\n [storageKey]=\"themeStorageKey()\"\n [detectFromSystem]=\"themeDetectFromSystem()\"\n [name]=\"themeName()\"\n [target]=\"themeTarget()\"\n [themeLabels]=\"themeLabels()\"\n />\n <lily-locale-picker\n [label]=\"labels().locale\"\n [locales]=\"locales()\"\n [(value)]=\"localeValue\"\n [defaultValue]=\"localeDefaultValue()\"\n [storageKey]=\"localeStorageKey()\"\n [detectFromNavigator]=\"localeDetectFromNavigator()\"\n [name]=\"localeName()\"\n [target]=\"localeTarget()\"\n [applyDir]=\"localeApplyDir()\"\n [localeLabels]=\"localeLabels()\"\n />\n <lily-text-size-picker\n [label]=\"labels().textSize\"\n [sizes]=\"sizes()\"\n [(value)]=\"textSizeValue\"\n [defaultValue]=\"textSizeDefaultValue()\"\n [storageKey]=\"textSizeStorageKey()\"\n [name]=\"textSizeName()\"\n [target]=\"textSizeTarget()\"\n [sizeLabels]=\"textSizeLabels()\"\n />\n <lily-share-picker\n [label]=\"labels().share\"\n [targets]=\"shareTargets()\"\n [url]=\"shareUrl()\"\n [title]=\"shareTitle()\"\n [text]=\"shareText()\"\n [copyLabel]=\"copyLabel()\"\n [copiedLabel]=\"copiedLabel()\"\n [copyFailedLabel]=\"copyFailedLabel()\"\n [strategy]=\"shareStrategy()\"\n (share)=\"share.emit($event)\"\n (copy)=\"copy.emit($event)\"\n (nativeShare)=\"nativeShare.emit($event)\"\n />\n </div>\n `,\n})\nexport class PickerBar {\n /** Accessible names for each picker. */\n readonly labels = input.required<PickerBarLabels>();\n\n // --- link-picker ---\n /**\n * Page links for the link picker (a home icon), which renders FIRST — leftmost. Defined by the\n * app; omitted or empty means no link picker (and `labels().link` is then unused).\n */\n readonly links = input<LinkItem[]>([]);\n /** Client-side navigation hook for the links, e.g. a router's `navigateByUrl`. */\n readonly linkNavigate = input<((href: string) => void) | undefined>(undefined);\n /** Fires after a page link is chosen. */\n readonly linkNavigated = output<LinkNavigatedEvent>();\n\n // --- search-picker ---\n /** Placeholder for the search field. No default (it would be English). */\n readonly searchPlaceholder = input<string | undefined>(undefined);\n /** Two-way bindable search text. */\n readonly searchValue = model<string>(\"\");\n /** Path the query is appended to (`${searchAction}?${query}`). */\n readonly searchAction = input<string>(\"/\");\n /** Performs the search navigation. Defaults to `location.assign(href)`. */\n readonly searchNavigate = input<((href: string) => void) | undefined>(undefined);\n /** Fires with the trimmed query and destination, before navigating. */\n readonly searched = output<SearchEvent>();\n\n // --- theme-picker ---\n /** Base URL of the themes directory, forwarded to ThemePicker. */\n readonly themesUrl = input.required<string>();\n /** Available theme slugs. Defaults to {@link DEFAULT_THEMES}. */\n readonly themes = input<string[]>(DEFAULT_THEMES);\n /** Two-way bindable current theme slug. */\n readonly themeValue = model<string>(\"\");\n readonly themeDefaultValue = input<string>(\"\");\n readonly themeStorageKey = input<string>(\"\");\n readonly themeDetectFromSystem = input<boolean>(false);\n readonly themeName = input<string>(\"theme\");\n readonly themeTarget = input<HTMLElement | null>(null);\n readonly themeLabels = input<Record<string, string>>({});\n\n // --- locale-picker ---\n /** Available locale codes. No catalog default exists — supply the set you support. */\n readonly locales = input.required<string[]>();\n /** Two-way bindable current locale code. */\n readonly localeValue = model<string>(\"\");\n readonly localeDefaultValue = input<string>(\"\");\n readonly localeStorageKey = input<string>(\"\");\n readonly localeDetectFromNavigator = input<boolean>(false);\n readonly localeName = input<string>(\"locale\");\n readonly localeTarget = input<HTMLElement | null>(null);\n readonly localeApplyDir = input<boolean>(true);\n readonly localeLabels = input<Record<string, string>>({});\n\n // --- text-size-picker ---\n /** Available size slugs. Defaults to {@link DEFAULT_SIZES}. */\n readonly sizes = input<string[]>(DEFAULT_SIZES);\n /** Two-way bindable current size slug. */\n readonly textSizeValue = model<string>(\"\");\n /**\n * `text-size-picker`'s own fallback (\"medium\", else `sizes[0]`) does\n * not fit the seven-slug scale — \"medium\" is not one of the seven,\n * and `sizes[0]` would silently start every consumer on \"Largest\".\n */\n readonly textSizeDefaultValue = input<string>(\"normal\");\n readonly textSizeStorageKey = input<string>(\"\");\n readonly textSizeName = input<string>(\"text-size\");\n readonly textSizeTarget = input<HTMLElement | null>(null);\n readonly textSizeLabels = input<Record<string, string>>({});\n\n // --- share-picker ---\n /** Destinations offered by the share picker. Empty is valid if `copyLabel` is set. */\n readonly shareTargets = input<ShareTarget[]>([]);\n readonly shareUrl = input<string>(\"\");\n readonly shareTitle = input<string>(\"\");\n readonly shareText = input<string>(\"\");\n readonly copyLabel = input<string>(\"\");\n readonly copiedLabel = input<string>(\"\");\n readonly copyFailedLabel = input<string>(\"\");\n readonly shareStrategy = input<ShareStrategy>(\"auto\");\n /** Fires after a share destination is chosen. */\n readonly share = output<ShareEvent>();\n /** Fires after the URL is copied. */\n readonly copy = output<string>();\n /** Fires when the native share sheet was used instead of the list. */\n readonly nativeShare = output<string>();\n\n /** Extra CSS class on the root. */\n readonly className = input<string>(\"\");\n}\n"],"mappings":";;;;;;;;AA4BA,MAAa,iBAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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AAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,eAAA,cAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAc,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,eAAA,YAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAW,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA;MAAA;MAAA;MAAA;KAAA;IAAA;GAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAyE/E,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EA5ErB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,YAAY;GACZ,SAAS;IAAC;IAAY;IAAc;IAAa;IAAc;IAAgB;GAAW;GAC1F,iBAAiB,wBAAwB;GACzC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEX,CAAA"}
|
|
1
|
+
{"version":3,"file":"lilydesignsystem-angular-picker-bar.mjs","names":[],"sources":["../../picker-bar.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, model, output } from \"@angular/core\";\n\nimport {\n LinkPicker,\n type LinkItem,\n type LinkNavigatedEvent,\n} from \"@lilydesignsystem/angular-link-picker\";\nimport { ThemePicker } from \"@lilydesignsystem/angular-theme-picker\";\nimport { LocalePicker } from \"@lilydesignsystem/angular-locale-picker\";\nimport { TextSizePicker } from \"@lilydesignsystem/angular-text-size-picker\";\nimport {\n TimeZonePicker,\n DEFAULT_ZONES,\n type ZoneInfo,\n type ZoneNames,\n} from \"@lilydesignsystem/angular-time-zone-picker\";\nimport {\n SharePicker,\n type ShareEvent,\n type ShareStrategy,\n type ShareTarget,\n} from \"@lilydesignsystem/angular-share-picker\";\nimport {\n SearchPicker,\n type SearchEvent,\n} from \"@lilydesignsystem/angular-search-picker\";\n\n/**\n * All 57 Lily reference theme slugs (see `themes/` at the repo root),\n * sorted alphabetically except the United Kingdom and United States\n * government/public-sector themes, which sort last as one alphabetical\n * group of their own. Mirrors `theme-picker`'s own title-casing of each\n * slug, so no `themeLabels` override is needed for these to read well.\n */\nexport const DEFAULT_THEMES: string[] = [\n \"abyss\",\n \"acid\",\n \"adobe-spectrum\",\n \"ant-design\",\n \"aqua\",\n \"atlassian\",\n \"autumn\",\n \"black\",\n \"bumblebee\",\n \"business\",\n \"cappuccino\",\n \"caramellatte\",\n \"cmyk\",\n \"coffee\",\n \"corporate\",\n \"cupcake\",\n \"cyberpunk\",\n \"dark\",\n \"dim\",\n \"dracula\",\n \"emerald\",\n \"excel\",\n \"fantasy\",\n \"fluent\",\n \"forest\",\n \"garden\",\n \"github-primer\",\n \"halloween\",\n \"ibm-carbon\",\n \"lemonade\",\n \"light\",\n \"linear\",\n \"lofi\",\n \"luxury\",\n \"mozilla-protocol\",\n \"night\",\n \"nord\",\n \"notion\",\n \"pastel\",\n \"retro\",\n \"salesforce\",\n \"sap-fiori\",\n \"silk\",\n \"sunset\",\n \"synthwave\",\n \"valentine\",\n \"vercel\",\n \"winter\",\n \"wireframe\",\n \"united-kingdom-government-digital-service\",\n \"united-kingdom-national-health-service-england-for-patients\",\n \"united-kingdom-national-health-service-england-for-practitioners\",\n \"united-kingdom-national-health-service-scotland-for-patients\",\n \"united-kingdom-national-health-service-scotland-for-practitioners\",\n \"united-kingdom-national-health-service-wales-for-patients\",\n \"united-kingdom-national-health-service-wales-for-practitioners\",\n \"united-states-web-design-system\",\n];\n\n/**\n * The seven-step text-size scale. Each slug title-cases to exactly the\n * requested label (\"largest\" → \"Largest\", …) via `text-size-picker`'s\n * own default `labelFor`, so no `sizeLabels` override is needed either.\n */\nexport const DEFAULT_SIZES: string[] = [\n \"largest\",\n \"larger\",\n \"large\",\n \"normal\",\n \"small\",\n \"smaller\",\n \"smallest\",\n];\n\n/** Accessible names for the pickers. Required — no English default (`link` only when `links` is given). */\nexport type PickerBarLabels = {\n /**\n * Accessible name for the link picker's button and list. Needed only when `links` is\n * supplied; the link picker renders only when both are present.\n */\n link?: string;\n /** Accessible name for the search picker's button and search landmark. */\n search: string;\n /** Accessible name for the search picker's text field. */\n searchInput: string;\n /** Accessible name for the search picker's ⏎ submit button. */\n searchSubmit: string;\n /** Accessible name for the theme picker's button and listbox. */\n theme: string;\n /** Accessible name for the locale picker's button and listbox. */\n locale: string;\n /** Accessible name for the text-size picker's button and listbox. */\n textSize: string;\n /**\n * Accessible name for the time-zone picker's button and listbox. Needed only when\n * `timeZoneLocale` is supplied; the time-zone picker renders only when both are present.\n */\n timeZone?: string;\n /** Accessible name for the share picker's button and list. */\n share: string;\n};\n\n/**\n * PickerBar — composes search-picker, theme-picker, locale-picker,\n * text-size-picker, and share-picker into one page-header row.\n *\n * A thin wrapper: it renders the five picker components, each imported\n * as a real npm dependency from its own published package, unmodified.\n * It pre-wires two catalog-specific defaults (`DEFAULT_THEMES`,\n * `DEFAULT_SIZES`) and flattens each wrapped picker's most commonly\n * needed optional props onto its own inputs — Angular has no spread\n * binding for component inputs, so unlike the canonical Svelte\n * contract's `*Props` bag, overrides here are named inputs rather than\n * an object spread. `motion-picker` and `date-time-picker` are\n * deliberately not included — see `spec/index.md` §1.\n */\n@Component({\n selector: \"lily-picker-bar\",\n standalone: true,\n imports: [LinkPicker, SearchPicker, ThemePicker, LocalePicker, TextSizePicker, TimeZonePicker, SharePicker],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"picker-bar {{ className() }}\">\n @if (links().length > 0 && labels().link) {\n <lily-link-picker\n [label]=\"labels().link!\"\n [links]=\"links()\"\n [navigate]=\"linkNavigate()\"\n (navigated)=\"linkNavigated.emit($event)\"\n />\n }\n <lily-search-picker\n [label]=\"labels().search\"\n [inputLabel]=\"labels().searchInput\"\n [submitLabel]=\"labels().searchSubmit\"\n [placeholder]=\"searchPlaceholder()\"\n [(value)]=\"searchValue\"\n [action]=\"searchAction()\"\n [navigate]=\"searchNavigate()\"\n (searched)=\"searched.emit($event)\"\n />\n <lily-theme-picker\n [label]=\"labels().theme\"\n [themesUrl]=\"themesUrl()\"\n [themes]=\"themes()\"\n [(value)]=\"themeValue\"\n [defaultValue]=\"themeDefaultValue()\"\n [storageKey]=\"themeStorageKey()\"\n [detectFromSystem]=\"themeDetectFromSystem()\"\n [name]=\"themeName()\"\n [target]=\"themeTarget()\"\n [themeLabels]=\"themeLabels()\"\n />\n <lily-locale-picker\n [label]=\"labels().locale\"\n [locales]=\"locales()\"\n [(value)]=\"localeValue\"\n [defaultValue]=\"localeDefaultValue()\"\n [storageKey]=\"localeStorageKey()\"\n [detectFromNavigator]=\"localeDetectFromNavigator()\"\n [name]=\"localeName()\"\n [target]=\"localeTarget()\"\n [applyDir]=\"localeApplyDir()\"\n [localeLabels]=\"localeLabels()\"\n />\n @if (labels().timeZone && timeZoneLocale()) {\n <lily-time-zone-picker\n [label]=\"labels().timeZone!\"\n [locale]=\"timeZoneLocale()!\"\n [zones]=\"timeZones()\"\n [date]=\"timeZoneDate()\"\n [labelFor]=\"timeZoneLabelFor()\"\n [names]=\"timeZoneNames()\"\n [(value)]=\"timeZoneValue\"\n [defaultValue]=\"timeZoneDefaultValue()\"\n [storageKey]=\"timeZoneStorageKey()\"\n [name]=\"timeZoneName()\"\n [target]=\"timeZoneTarget()\"\n />\n }\n <lily-text-size-picker\n [label]=\"labels().textSize\"\n [sizes]=\"sizes()\"\n [(value)]=\"textSizeValue\"\n [defaultValue]=\"textSizeDefaultValue()\"\n [storageKey]=\"textSizeStorageKey()\"\n [name]=\"textSizeName()\"\n [target]=\"textSizeTarget()\"\n [sizeLabels]=\"textSizeLabels()\"\n />\n <lily-share-picker\n [label]=\"labels().share\"\n [targets]=\"shareTargets()\"\n [url]=\"shareUrl()\"\n [title]=\"shareTitle()\"\n [text]=\"shareText()\"\n [copyLabel]=\"copyLabel()\"\n [copiedLabel]=\"copiedLabel()\"\n [copyFailedLabel]=\"copyFailedLabel()\"\n [strategy]=\"shareStrategy()\"\n (share)=\"share.emit($event)\"\n (copy)=\"copy.emit($event)\"\n (nativeShare)=\"nativeShare.emit($event)\"\n />\n </div>\n `,\n})\nexport class PickerBar {\n /** Accessible names for each picker. */\n readonly labels = input.required<PickerBarLabels>();\n\n // --- link-picker ---\n /**\n * Page links for the link picker (a home icon), which renders FIRST — leftmost. Defined by the\n * app; omitted or empty means no link picker (and `labels().link` is then unused).\n */\n readonly links = input<LinkItem[]>([]);\n /** Client-side navigation hook for the links, e.g. a router's `navigateByUrl`. */\n readonly linkNavigate = input<((href: string) => void) | undefined>(undefined);\n /** Fires after a page link is chosen. */\n readonly linkNavigated = output<LinkNavigatedEvent>();\n\n // --- search-picker ---\n /** Placeholder for the search field. No default (it would be English). */\n readonly searchPlaceholder = input<string | undefined>(undefined);\n /** Two-way bindable search text. */\n readonly searchValue = model<string>(\"\");\n /** Path the query is appended to (`${searchAction}?${query}`). */\n readonly searchAction = input<string>(\"/\");\n /** Performs the search navigation. Defaults to `location.assign(href)`. */\n readonly searchNavigate = input<((href: string) => void) | undefined>(undefined);\n /** Fires with the trimmed query and destination, before navigating. */\n readonly searched = output<SearchEvent>();\n\n // --- theme-picker ---\n /** Base URL of the themes directory, forwarded to ThemePicker. */\n readonly themesUrl = input.required<string>();\n /** Available theme slugs. Defaults to {@link DEFAULT_THEMES}. */\n readonly themes = input<string[]>(DEFAULT_THEMES);\n /** Two-way bindable current theme slug. */\n readonly themeValue = model<string>(\"\");\n readonly themeDefaultValue = input<string>(\"\");\n readonly themeStorageKey = input<string>(\"\");\n readonly themeDetectFromSystem = input<boolean>(false);\n readonly themeName = input<string>(\"theme\");\n readonly themeTarget = input<HTMLElement | null>(null);\n readonly themeLabels = input<Record<string, string>>({});\n\n // --- locale-picker ---\n /** Available locale codes. No catalog default exists — supply the set you support. */\n readonly locales = input.required<string[]>();\n /** Two-way bindable current locale code. */\n readonly localeValue = model<string>(\"\");\n readonly localeDefaultValue = input<string>(\"\");\n readonly localeStorageKey = input<string>(\"\");\n readonly localeDetectFromNavigator = input<boolean>(false);\n readonly localeName = input<string>(\"locale\");\n readonly localeTarget = input<HTMLElement | null>(null);\n readonly localeApplyDir = input<boolean>(true);\n readonly localeLabels = input<Record<string, string>>({});\n\n // --- time-zone-picker ---\n /**\n * The language that names and sorts the zones (BCP 47, e.g. `fr`). The time-zone picker, which sits\n * after the locale picker, renders only when this and `labels().timeZone` are both given.\n */\n readonly timeZoneLocale = input<string | undefined>(undefined);\n /** IANA zone ids on offer. Defaults to the picker's own 55. */\n readonly timeZones = input<readonly string[]>(DEFAULT_ZONES);\n /** The date the offsets are computed for (daylight time). Defaults to now. */\n readonly timeZoneDate = input<Date | undefined>(undefined);\n readonly timeZoneLabelFor = input<((zone: ZoneInfo) => string) | undefined>(undefined);\n /** CLDR zone names, e.g. `zoneNamesFrom(pack)` from the locale-translations package. */\n readonly timeZoneNames = input<ZoneNames | undefined>(undefined);\n /** Two-way bindable current IANA zone id. */\n readonly timeZoneValue = model<string>(\"\");\n readonly timeZoneDefaultValue = input<string>(\"\");\n readonly timeZoneStorageKey = input<string>(\"\");\n readonly timeZoneName = input<string>(\"time-zone\");\n readonly timeZoneTarget = input<HTMLElement | null>(null);\n\n // --- text-size-picker ---\n /** Available size slugs. Defaults to {@link DEFAULT_SIZES}. */\n readonly sizes = input<string[]>(DEFAULT_SIZES);\n /** Two-way bindable current size slug. */\n readonly textSizeValue = model<string>(\"\");\n /**\n * `text-size-picker`'s own fallback (\"medium\", else `sizes[0]`) does\n * not fit the seven-slug scale — \"medium\" is not one of the seven,\n * and `sizes[0]` would silently start every consumer on \"Largest\".\n */\n readonly textSizeDefaultValue = input<string>(\"normal\");\n readonly textSizeStorageKey = input<string>(\"\");\n readonly textSizeName = input<string>(\"text-size\");\n readonly textSizeTarget = input<HTMLElement | null>(null);\n readonly textSizeLabels = input<Record<string, string>>({});\n\n // --- share-picker ---\n /** Destinations offered by the share picker. Empty is valid if `copyLabel` is set. */\n readonly shareTargets = input<ShareTarget[]>([]);\n readonly shareUrl = input<string>(\"\");\n readonly shareTitle = input<string>(\"\");\n readonly shareText = input<string>(\"\");\n readonly copyLabel = input<string>(\"\");\n readonly copiedLabel = input<string>(\"\");\n readonly copyFailedLabel = input<string>(\"\");\n readonly shareStrategy = input<ShareStrategy>(\"auto\");\n /** Fires after a share destination is chosen. */\n readonly share = output<ShareEvent>();\n /** Fires after the URL is copied. */\n readonly copy = output<string>();\n /** Fires when the native share sheet was used instead of the list. */\n readonly nativeShare = output<string>();\n\n /** Extra CSS class on the root. */\n readonly className = input<string>(\"\");\n}\n"],"mappings":";;;;;;;;;AAkCA,MAAa,iBAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAOD,MAAa,gBAA0B;CACrC;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAuID,IAAa,YAAb,MAAa,UAAS;CA3FtB,cAAA;EA6FW,KAAA,SAAS,MAAM,SAA2B,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAO1C,KAAA,QAAQ,MAAkB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAE7B,KAAA,eAAe,MAA4C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,eAA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ignsystem/angular-picker-bar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"engines": {
|
|
5
|
-
"node": "
|
|
6
|
-
},
|
|
7
|
-
"description": "Lily Design System Angular picker bar: composes link-picker (optional), search-picker, theme-picker, locale-picker, text-size-picker, and share-picker into one page-header row. Headless, SSR-safe, no CSS.",
|
|
8
|
-
"peerDependencies": {
|
|
9
|
-
"@angular/core": ">=20.0.0 <23.0.0",
|
|
10
|
-
"@angular/common": ">=20.0.0 <23.0.0"
|
|
5
|
+
"node": ">=26"
|
|
11
6
|
},
|
|
7
|
+
"description": "Lily Design System Angular picker bar: composes link-picker (optional), search-picker, theme-picker, locale-picker, time-zone-picker (optional), text-size-picker, and share-picker into one page-header row. Headless, SSR-safe, no CSS.",
|
|
12
8
|
"dependencies": {
|
|
13
|
-
"@lilydesignsystem/angular-link-picker": "^0.1.
|
|
14
|
-
"@lilydesignsystem/angular-search-picker": "^0.1.0",
|
|
15
|
-
"@lilydesignsystem/angular-theme-picker": "^0.2.0",
|
|
9
|
+
"@lilydesignsystem/angular-link-picker": "^0.1.2",
|
|
16
10
|
"@lilydesignsystem/angular-locale-picker": "^0.2.0",
|
|
17
|
-
"@lilydesignsystem/angular-
|
|
11
|
+
"@lilydesignsystem/angular-search-picker": "^0.1.0",
|
|
18
12
|
"@lilydesignsystem/angular-share-picker": "^0.2.0",
|
|
13
|
+
"@lilydesignsystem/angular-text-size-picker": "^0.2.0",
|
|
14
|
+
"@lilydesignsystem/angular-time-zone-picker": "^0.1.0",
|
|
15
|
+
"@lilydesignsystem/angular-theme-picker": "^0.2.0",
|
|
19
16
|
"tslib": "^2.3.0"
|
|
20
17
|
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@angular/common": ">=20.0.0 <23.0.0",
|
|
20
|
+
"@angular/core": ">=20.0.0 <23.0.0"
|
|
21
|
+
},
|
|
21
22
|
"sideEffects": false,
|
|
22
23
|
"keywords": [
|
|
23
24
|
"lily",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"license": "MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause",
|
|
37
38
|
"repository": {
|
|
38
39
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/LilyDesignSystem/lily-design-system
|
|
40
|
+
"url": "git+https://github.com/LilyDesignSystem/lily-design-system.git",
|
|
40
41
|
"directory": "lily-design-system-angular-picker-bar"
|
|
41
42
|
},
|
|
42
43
|
"homepage": "https://lilydesignsystem.com/",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LinkItem, LinkNavigatedEvent } from "@lilydesignsystem/angular-link-picker";
|
|
2
|
+
import { ZoneInfo } from "@lilydesignsystem/angular-time-zone-picker";
|
|
2
3
|
import { ShareEvent, ShareStrategy, ShareTarget } from "@lilydesignsystem/angular-share-picker";
|
|
3
4
|
import { SearchEvent } from "@lilydesignsystem/angular-search-picker";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
|
-
* All
|
|
7
|
+
* All 57 Lily reference theme slugs (see `themes/` at the repo root),
|
|
7
8
|
* sorted alphabetically except the United Kingdom and United States
|
|
8
9
|
* government/public-sector themes, which sort last as one alphabetical
|
|
9
10
|
* group of their own. Mirrors `theme-picker`'s own title-casing of each
|
|
@@ -35,6 +36,11 @@ type PickerBarLabels = {
|
|
|
35
36
|
locale: string;
|
|
36
37
|
/** Accessible name for the text-size picker's button and listbox. */
|
|
37
38
|
textSize: string;
|
|
39
|
+
/**
|
|
40
|
+
* Accessible name for the time-zone picker's button and listbox. Needed only when
|
|
41
|
+
* `timeZoneLocale` is supplied; the time-zone picker renders only when both are present.
|
|
42
|
+
*/
|
|
43
|
+
timeZone?: string;
|
|
38
44
|
/** Accessible name for the share picker's button and list. */
|
|
39
45
|
share: string;
|
|
40
46
|
};
|
|
@@ -54,80 +60,98 @@ type PickerBarLabels = {
|
|
|
54
60
|
*/
|
|
55
61
|
export declare class PickerBar {
|
|
56
62
|
/** Accessible names for each picker. */
|
|
57
|
-
readonly labels: import("@angular/core").InputSignal<PickerBarLabels>;
|
|
63
|
+
readonly labels: import("@angular/core/types/core").InputSignal<PickerBarLabels>;
|
|
58
64
|
/**
|
|
59
65
|
* Page links for the link picker (a home icon), which renders FIRST — leftmost. Defined by the
|
|
60
66
|
* app; omitted or empty means no link picker (and `labels().link` is then unused).
|
|
61
67
|
*/
|
|
62
|
-
readonly links: import("@angular/core").InputSignal<LinkItem[]>;
|
|
68
|
+
readonly links: import("@angular/core/types/core").InputSignal<LinkItem[]>;
|
|
63
69
|
/** Client-side navigation hook for the links, e.g. a router's `navigateByUrl`. */
|
|
64
|
-
readonly linkNavigate: import("@angular/core").InputSignal<((href: string) => void) | undefined>;
|
|
70
|
+
readonly linkNavigate: import("@angular/core/types/core").InputSignal<((href: string) => void) | undefined>;
|
|
65
71
|
/** Fires after a page link is chosen. */
|
|
66
|
-
readonly linkNavigated: import("@angular/core").OutputEmitterRef<LinkNavigatedEvent>;
|
|
72
|
+
readonly linkNavigated: import("@angular/core/types/_api-chunk").OutputEmitterRef<LinkNavigatedEvent>;
|
|
67
73
|
/** Placeholder for the search field. No default (it would be English). */
|
|
68
|
-
readonly searchPlaceholder: import("@angular/core").InputSignal<string | undefined>;
|
|
74
|
+
readonly searchPlaceholder: import("@angular/core/types/core").InputSignal<string | undefined>;
|
|
69
75
|
/** Two-way bindable search text. */
|
|
70
|
-
readonly searchValue: import("@angular/core").ModelSignal<string>;
|
|
76
|
+
readonly searchValue: import("@angular/core/types/core").ModelSignal<string>;
|
|
71
77
|
/** Path the query is appended to (`${searchAction}?${query}`). */
|
|
72
|
-
readonly searchAction: import("@angular/core").InputSignal<string>;
|
|
78
|
+
readonly searchAction: import("@angular/core/types/core").InputSignal<string>;
|
|
73
79
|
/** Performs the search navigation. Defaults to `location.assign(href)`. */
|
|
74
|
-
readonly searchNavigate: import("@angular/core").InputSignal<((href: string) => void) | undefined>;
|
|
80
|
+
readonly searchNavigate: import("@angular/core/types/core").InputSignal<((href: string) => void) | undefined>;
|
|
75
81
|
/** Fires with the trimmed query and destination, before navigating. */
|
|
76
|
-
readonly searched: import("@angular/core").OutputEmitterRef<SearchEvent>;
|
|
82
|
+
readonly searched: import("@angular/core/types/_api-chunk").OutputEmitterRef<SearchEvent>;
|
|
77
83
|
/** Base URL of the themes directory, forwarded to ThemePicker. */
|
|
78
|
-
readonly themesUrl: import("@angular/core").InputSignal<string>;
|
|
84
|
+
readonly themesUrl: import("@angular/core/types/core").InputSignal<string>;
|
|
79
85
|
/** Available theme slugs. Defaults to {@link DEFAULT_THEMES}. */
|
|
80
|
-
readonly themes: import("@angular/core").InputSignal<string[]>;
|
|
86
|
+
readonly themes: import("@angular/core/types/core").InputSignal<string[]>;
|
|
81
87
|
/** Two-way bindable current theme slug. */
|
|
82
|
-
readonly themeValue: import("@angular/core").ModelSignal<string>;
|
|
83
|
-
readonly themeDefaultValue: import("@angular/core").InputSignal<string>;
|
|
84
|
-
readonly themeStorageKey: import("@angular/core").InputSignal<string>;
|
|
85
|
-
readonly themeDetectFromSystem: import("@angular/core").InputSignal<boolean>;
|
|
86
|
-
readonly themeName: import("@angular/core").InputSignal<string>;
|
|
87
|
-
readonly themeTarget: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
88
|
-
readonly themeLabels: import("@angular/core").InputSignal<Record<string, string>>;
|
|
88
|
+
readonly themeValue: import("@angular/core/types/core").ModelSignal<string>;
|
|
89
|
+
readonly themeDefaultValue: import("@angular/core/types/core").InputSignal<string>;
|
|
90
|
+
readonly themeStorageKey: import("@angular/core/types/core").InputSignal<string>;
|
|
91
|
+
readonly themeDetectFromSystem: import("@angular/core/types/core").InputSignal<boolean>;
|
|
92
|
+
readonly themeName: import("@angular/core/types/core").InputSignal<string>;
|
|
93
|
+
readonly themeTarget: import("@angular/core/types/core").InputSignal<HTMLElement | null>;
|
|
94
|
+
readonly themeLabels: import("@angular/core/types/core").InputSignal<Record<string, string>>;
|
|
89
95
|
/** Available locale codes. No catalog default exists — supply the set you support. */
|
|
90
|
-
readonly locales: import("@angular/core").InputSignal<string[]>;
|
|
96
|
+
readonly locales: import("@angular/core/types/core").InputSignal<string[]>;
|
|
91
97
|
/** Two-way bindable current locale code. */
|
|
92
|
-
readonly localeValue: import("@angular/core").ModelSignal<string>;
|
|
93
|
-
readonly localeDefaultValue: import("@angular/core").InputSignal<string>;
|
|
94
|
-
readonly localeStorageKey: import("@angular/core").InputSignal<string>;
|
|
95
|
-
readonly localeDetectFromNavigator: import("@angular/core").InputSignal<boolean>;
|
|
96
|
-
readonly localeName: import("@angular/core").InputSignal<string>;
|
|
97
|
-
readonly localeTarget: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
98
|
-
readonly localeApplyDir: import("@angular/core").InputSignal<boolean>;
|
|
99
|
-
readonly localeLabels: import("@angular/core").InputSignal<Record<string, string>>;
|
|
98
|
+
readonly localeValue: import("@angular/core/types/core").ModelSignal<string>;
|
|
99
|
+
readonly localeDefaultValue: import("@angular/core/types/core").InputSignal<string>;
|
|
100
|
+
readonly localeStorageKey: import("@angular/core/types/core").InputSignal<string>;
|
|
101
|
+
readonly localeDetectFromNavigator: import("@angular/core/types/core").InputSignal<boolean>;
|
|
102
|
+
readonly localeName: import("@angular/core/types/core").InputSignal<string>;
|
|
103
|
+
readonly localeTarget: import("@angular/core/types/core").InputSignal<HTMLElement | null>;
|
|
104
|
+
readonly localeApplyDir: import("@angular/core/types/core").InputSignal<boolean>;
|
|
105
|
+
readonly localeLabels: import("@angular/core/types/core").InputSignal<Record<string, string>>;
|
|
106
|
+
/**
|
|
107
|
+
* The language that names and sorts the zones (BCP 47, e.g. `fr`). The time-zone picker, which sits
|
|
108
|
+
* after the locale picker, renders only when this and `labels().timeZone` are both given.
|
|
109
|
+
*/
|
|
110
|
+
readonly timeZoneLocale: import("@angular/core/types/core").InputSignal<string | undefined>;
|
|
111
|
+
/** IANA zone ids on offer. Defaults to the picker's own 55. */
|
|
112
|
+
readonly timeZones: import("@angular/core/types/core").InputSignal<readonly string[]>;
|
|
113
|
+
/** The date the offsets are computed for (daylight time). Defaults to now. */
|
|
114
|
+
readonly timeZoneDate: import("@angular/core/types/core").InputSignal<Date | undefined>;
|
|
115
|
+
readonly timeZoneLabelFor: import("@angular/core/types/core").InputSignal<((zone: ZoneInfo) => string) | undefined>;
|
|
116
|
+
/** CLDR zone names, e.g. `zoneNamesFrom(pack)` from the locale-translations package. */
|
|
117
|
+
readonly timeZoneNames: import("@angular/core/types/core").InputSignal<Readonly<Record<string, string | readonly [string, string]>> | undefined>;
|
|
118
|
+
/** Two-way bindable current IANA zone id. */
|
|
119
|
+
readonly timeZoneValue: import("@angular/core/types/core").ModelSignal<string>;
|
|
120
|
+
readonly timeZoneDefaultValue: import("@angular/core/types/core").InputSignal<string>;
|
|
121
|
+
readonly timeZoneStorageKey: import("@angular/core/types/core").InputSignal<string>;
|
|
122
|
+
readonly timeZoneName: import("@angular/core/types/core").InputSignal<string>;
|
|
123
|
+
readonly timeZoneTarget: import("@angular/core/types/core").InputSignal<HTMLElement | null>;
|
|
100
124
|
/** Available size slugs. Defaults to {@link DEFAULT_SIZES}. */
|
|
101
|
-
readonly sizes: import("@angular/core").InputSignal<string[]>;
|
|
125
|
+
readonly sizes: import("@angular/core/types/core").InputSignal<string[]>;
|
|
102
126
|
/** Two-way bindable current size slug. */
|
|
103
|
-
readonly textSizeValue: import("@angular/core").ModelSignal<string>;
|
|
127
|
+
readonly textSizeValue: import("@angular/core/types/core").ModelSignal<string>;
|
|
104
128
|
/**
|
|
105
129
|
* `text-size-picker`'s own fallback ("medium", else `sizes[0]`) does
|
|
106
130
|
* not fit the seven-slug scale — "medium" is not one of the seven,
|
|
107
131
|
* and `sizes[0]` would silently start every consumer on "Largest".
|
|
108
132
|
*/
|
|
109
|
-
readonly textSizeDefaultValue: import("@angular/core").InputSignal<string>;
|
|
110
|
-
readonly textSizeStorageKey: import("@angular/core").InputSignal<string>;
|
|
111
|
-
readonly textSizeName: import("@angular/core").InputSignal<string>;
|
|
112
|
-
readonly textSizeTarget: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
113
|
-
readonly textSizeLabels: import("@angular/core").InputSignal<Record<string, string>>;
|
|
133
|
+
readonly textSizeDefaultValue: import("@angular/core/types/core").InputSignal<string>;
|
|
134
|
+
readonly textSizeStorageKey: import("@angular/core/types/core").InputSignal<string>;
|
|
135
|
+
readonly textSizeName: import("@angular/core/types/core").InputSignal<string>;
|
|
136
|
+
readonly textSizeTarget: import("@angular/core/types/core").InputSignal<HTMLElement | null>;
|
|
137
|
+
readonly textSizeLabels: import("@angular/core/types/core").InputSignal<Record<string, string>>;
|
|
114
138
|
/** Destinations offered by the share picker. Empty is valid if `copyLabel` is set. */
|
|
115
|
-
readonly shareTargets: import("@angular/core").InputSignal<ShareTarget[]>;
|
|
116
|
-
readonly shareUrl: import("@angular/core").InputSignal<string>;
|
|
117
|
-
readonly shareTitle: import("@angular/core").InputSignal<string>;
|
|
118
|
-
readonly shareText: import("@angular/core").InputSignal<string>;
|
|
119
|
-
readonly copyLabel: import("@angular/core").InputSignal<string>;
|
|
120
|
-
readonly copiedLabel: import("@angular/core").InputSignal<string>;
|
|
121
|
-
readonly copyFailedLabel: import("@angular/core").InputSignal<string>;
|
|
122
|
-
readonly shareStrategy: import("@angular/core").InputSignal<ShareStrategy>;
|
|
139
|
+
readonly shareTargets: import("@angular/core/types/core").InputSignal<ShareTarget[]>;
|
|
140
|
+
readonly shareUrl: import("@angular/core/types/core").InputSignal<string>;
|
|
141
|
+
readonly shareTitle: import("@angular/core/types/core").InputSignal<string>;
|
|
142
|
+
readonly shareText: import("@angular/core/types/core").InputSignal<string>;
|
|
143
|
+
readonly copyLabel: import("@angular/core/types/core").InputSignal<string>;
|
|
144
|
+
readonly copiedLabel: import("@angular/core/types/core").InputSignal<string>;
|
|
145
|
+
readonly copyFailedLabel: import("@angular/core/types/core").InputSignal<string>;
|
|
146
|
+
readonly shareStrategy: import("@angular/core/types/core").InputSignal<ShareStrategy>;
|
|
123
147
|
/** Fires after a share destination is chosen. */
|
|
124
|
-
readonly share: import("@angular/core").OutputEmitterRef<ShareEvent>;
|
|
148
|
+
readonly share: import("@angular/core/types/_api-chunk").OutputEmitterRef<ShareEvent>;
|
|
125
149
|
/** Fires after the URL is copied. */
|
|
126
|
-
readonly copy: import("@angular/core").OutputEmitterRef<string>;
|
|
150
|
+
readonly copy: import("@angular/core/types/_api-chunk").OutputEmitterRef<string>;
|
|
127
151
|
/** Fires when the native share sheet was used instead of the list. */
|
|
128
|
-
readonly nativeShare: import("@angular/core").OutputEmitterRef<string>;
|
|
152
|
+
readonly nativeShare: import("@angular/core/types/_api-chunk").OutputEmitterRef<string>;
|
|
129
153
|
/** Extra CSS class on the root. */
|
|
130
|
-
readonly className: import("@angular/core").InputSignal<string>;
|
|
154
|
+
readonly className: import("@angular/core/types/core").InputSignal<string>;
|
|
131
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<PickerBar, never>;
|
|
132
156
|
static ɵcmp: i0.ɵɵComponentDeclaration<PickerBar, "lily-picker-bar", never, {
|
|
133
157
|
"labels": {
|
|
@@ -255,6 +279,56 @@ export declare class PickerBar {
|
|
|
255
279
|
"required": false;
|
|
256
280
|
"isSignal": true;
|
|
257
281
|
};
|
|
282
|
+
"timeZoneLocale": {
|
|
283
|
+
"alias": "timeZoneLocale";
|
|
284
|
+
"required": false;
|
|
285
|
+
"isSignal": true;
|
|
286
|
+
};
|
|
287
|
+
"timeZones": {
|
|
288
|
+
"alias": "timeZones";
|
|
289
|
+
"required": false;
|
|
290
|
+
"isSignal": true;
|
|
291
|
+
};
|
|
292
|
+
"timeZoneDate": {
|
|
293
|
+
"alias": "timeZoneDate";
|
|
294
|
+
"required": false;
|
|
295
|
+
"isSignal": true;
|
|
296
|
+
};
|
|
297
|
+
"timeZoneLabelFor": {
|
|
298
|
+
"alias": "timeZoneLabelFor";
|
|
299
|
+
"required": false;
|
|
300
|
+
"isSignal": true;
|
|
301
|
+
};
|
|
302
|
+
"timeZoneNames": {
|
|
303
|
+
"alias": "timeZoneNames";
|
|
304
|
+
"required": false;
|
|
305
|
+
"isSignal": true;
|
|
306
|
+
};
|
|
307
|
+
"timeZoneValue": {
|
|
308
|
+
"alias": "timeZoneValue";
|
|
309
|
+
"required": false;
|
|
310
|
+
"isSignal": true;
|
|
311
|
+
};
|
|
312
|
+
"timeZoneDefaultValue": {
|
|
313
|
+
"alias": "timeZoneDefaultValue";
|
|
314
|
+
"required": false;
|
|
315
|
+
"isSignal": true;
|
|
316
|
+
};
|
|
317
|
+
"timeZoneStorageKey": {
|
|
318
|
+
"alias": "timeZoneStorageKey";
|
|
319
|
+
"required": false;
|
|
320
|
+
"isSignal": true;
|
|
321
|
+
};
|
|
322
|
+
"timeZoneName": {
|
|
323
|
+
"alias": "timeZoneName";
|
|
324
|
+
"required": false;
|
|
325
|
+
"isSignal": true;
|
|
326
|
+
};
|
|
327
|
+
"timeZoneTarget": {
|
|
328
|
+
"alias": "timeZoneTarget";
|
|
329
|
+
"required": false;
|
|
330
|
+
"isSignal": true;
|
|
331
|
+
};
|
|
258
332
|
"sizes": {
|
|
259
333
|
"alias": "sizes";
|
|
260
334
|
"required": false;
|
|
@@ -341,6 +415,7 @@ export declare class PickerBar {
|
|
|
341
415
|
"searched": "searched";
|
|
342
416
|
"themeValue": "themeValueChange";
|
|
343
417
|
"localeValue": "localeValueChange";
|
|
418
|
+
"timeZoneValue": "timeZoneValueChange";
|
|
344
419
|
"textSizeValue": "textSizeValueChange";
|
|
345
420
|
"share": "share";
|
|
346
421
|
"copy": "copy";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lilydesignsystem-angular-picker-bar.d.ts","names":[],"sources":["../../picker-bar.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"lilydesignsystem-angular-picker-bar.d.ts","names":[],"sources":["../../picker-bar.component.ts"],"mappings":";;;;;;;;;;;;qBAkCa;;;;;;qBAiEA;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