@lucca-front/ng 22.1.0-rc.4 → 22.1.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 +6 -0
- package/fesm2022/lucca-front-ng-a11y.mjs +9 -9
- package/fesm2022/lucca-front-ng-activity-feed.mjs +12 -12
- package/fesm2022/lucca-front-ng-api.mjs +40 -40
- package/fesm2022/lucca-front-ng-app-layout.mjs +3 -3
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs +37 -36
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +3 -3
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +6 -6
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +12 -7
- package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs +3 -3
- package/fesm2022/lucca-front-ng-callout.mjs +24 -24
- package/fesm2022/lucca-front-ng-chip.mjs +4 -4
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +4 -4
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-code.mjs +3 -3
- package/fesm2022/lucca-front-ng-color.mjs +3 -3
- package/fesm2022/lucca-front-ng-comment.mjs +12 -12
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +3 -3
- package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-department.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-legal-units.mjs +8 -8
- package/fesm2022/lucca-front-ng-core-select-legal-units.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +3 -3
- package/fesm2022/lucca-front-ng-core-select-user.mjs +20 -20
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +73 -58
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +19 -19
- package/fesm2022/lucca-front-ng-data-table.mjs +40 -32
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +40 -40
- package/fesm2022/lucca-front-ng-date2.mjs +37 -34
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +24 -24
- package/fesm2022/lucca-front-ng-dialog.mjs +55 -48
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +3 -3
- package/fesm2022/lucca-front-ng-dropdown.mjs +42 -42
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +9 -9
- package/fesm2022/lucca-front-ng-error-page.mjs +3 -3
- package/fesm2022/lucca-front-ng-establishment.mjs +33 -33
- package/fesm2022/lucca-front-ng-fancy-box.mjs +3 -3
- package/fesm2022/lucca-front-ng-file-upload.mjs +33 -26
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills-core.mjs +6 -6
- package/fesm2022/lucca-front-ng-filter-pills.mjs +90 -21
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +3 -3
- package/fesm2022/lucca-front-ng-form-field.mjs +18 -18
- package/fesm2022/lucca-front-ng-form-header.mjs +3 -3
- package/fesm2022/lucca-front-ng-form-label.mjs +3 -3
- package/fesm2022/lucca-front-ng-form.mjs +3 -3
- package/fesm2022/lucca-front-ng-formly.mjs +58 -58
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +6 -6
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +6 -6
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +35 -35
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +68 -48
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +3 -3
- package/fesm2022/lucca-front-ng-grid.mjs +6 -6
- package/fesm2022/lucca-front-ng-highlight-data.mjs +3 -3
- package/fesm2022/lucca-front-ng-highlight-section.mjs +3 -3
- package/fesm2022/lucca-front-ng-highlight-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +9 -9
- package/fesm2022/lucca-front-ng-impersonation.mjs +3 -3
- package/fesm2022/lucca-front-ng-index-table.mjs +44 -38
- package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
- package/fesm2022/lucca-front-ng-input.mjs +21 -21
- package/fesm2022/lucca-front-ng-kbd.mjs +306 -0
- package/fesm2022/lucca-front-ng-kbd.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-link.mjs +6 -6
- package/fesm2022/lucca-front-ng-listbox.mjs +13 -10
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +6 -6
- package/fesm2022/lucca-front-ng-loading.mjs +51 -10
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +6 -6
- package/fesm2022/lucca-front-ng-markdown.mjs +3 -3
- package/fesm2022/lucca-front-ng-mobile-push.mjs +3 -3
- package/fesm2022/lucca-front-ng-modal.mjs +22 -22
- package/fesm2022/lucca-front-ng-multi-select.mjs +38 -38
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-number-format.mjs +6 -6
- package/fesm2022/lucca-front-ng-number.mjs +7 -7
- package/fesm2022/lucca-front-ng-option.mjs +130 -130
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +3 -3
- package/fesm2022/lucca-front-ng-pagination.mjs +3 -3
- package/fesm2022/lucca-front-ng-plg-push.mjs +3 -3
- package/fesm2022/lucca-front-ng-popover.mjs +17 -17
- package/fesm2022/lucca-front-ng-popover2.mjs +54 -21
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-priority-levels.mjs +3 -3
- package/fesm2022/lucca-front-ng-progress-bar.mjs +3 -3
- package/fesm2022/lucca-front-ng-progress-stepper.mjs +6 -6
- package/fesm2022/lucca-front-ng-read-more.mjs +6 -6
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-resource-card.mjs +12 -12
- package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
- package/fesm2022/lucca-front-ng-scroll-box.mjs +4 -4
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +9 -10
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +6 -6
- package/fesm2022/lucca-front-ng-segmented-control.mjs +6 -6
- package/fesm2022/lucca-front-ng-select.mjs +14 -14
- package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
- package/fesm2022/lucca-front-ng-simple-select.mjs +14 -14
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +6 -6
- package/fesm2022/lucca-front-ng-software-icon.mjs +3 -3
- package/fesm2022/lucca-front-ng-sortable-list.mjs +6 -6
- package/fesm2022/lucca-front-ng-status-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-table-of-content.mjs +6 -6
- package/fesm2022/lucca-front-ng-text-flow.mjs +4 -4
- package/fesm2022/lucca-front-ng-text-flow.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +18 -18
- package/fesm2022/lucca-front-ng-title.mjs +10 -10
- package/fesm2022/lucca-front-ng-toast.mjs +10 -10
- package/fesm2022/lucca-front-ng-tree-select.mjs +6 -6
- package/fesm2022/lucca-front-ng-user-popover.mjs +22 -22
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +59 -59
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +12 -12
- package/package.json +16 -6
- package/schematics/lib/local-deps/package-lock.json +7 -7
- package/schematics/lib/local-deps/package.json +1 -1
- package/src/definitions/option/_option-item.scss +7 -4
- package/types/lucca-front-ng-a11y.d.ts +1 -1
- package/types/lucca-front-ng-api.d.ts +3 -3
- package/types/lucca-front-ng-approbation-inbox.d.ts +3 -3
- package/types/lucca-front-ng-bubble-icon.d.ts +4 -1
- package/types/lucca-front-ng-chip.d.ts +1 -1
- package/types/lucca-front-ng-clear.d.ts +1 -1
- package/types/lucca-front-ng-comment.d.ts +3 -3
- package/types/lucca-front-ng-core-select-establishment.d.ts +1 -1
- package/types/lucca-front-ng-core-select.d.ts +18 -3
- package/types/lucca-front-ng-core.d.ts +3 -3
- package/types/lucca-front-ng-data-table.d.ts +7 -2
- package/types/lucca-front-ng-date.d.ts +2 -2
- package/types/lucca-front-ng-date2.d.ts +5 -2
- package/types/lucca-front-ng-department.d.ts +2 -2
- package/types/lucca-front-ng-dialog.d.ts +1 -1
- package/types/lucca-front-ng-establishment.d.ts +2 -2
- package/types/lucca-front-ng-file-upload.d.ts +8 -2
- package/types/lucca-front-ng-filter-pills.d.ts +11 -2
- package/types/lucca-front-ng-forms.d.ts +13 -3
- package/types/lucca-front-ng-index-table.d.ts +4 -2
- package/types/lucca-front-ng-kbd.d.ts +59 -0
- package/types/lucca-front-ng-listbox.d.ts +1 -0
- package/types/lucca-front-ng-loading.d.ts +16 -4
- package/types/lucca-front-ng-modal.d.ts +2 -2
- package/types/lucca-front-ng-multi-select.d.ts +1 -1
- package/types/lucca-front-ng-popover2.d.ts +1 -0
- package/types/lucca-front-ng-popup.d.ts +2 -2
- package/types/lucca-front-ng-read-more.d.ts +2 -2
- package/types/lucca-front-ng-sidepanel.d.ts +1 -1
- package/types/lucca-front-ng-simple-select.d.ts +1 -1
- package/types/lucca-front-ng-title.d.ts +2 -2
- package/types/lucca-front-ng-toast.d.ts +1 -1
- package/types/lucca-front-ng-user-popover.d.ts +0 -1
- package/types/lucca-front-ng-user.d.ts +2 -2
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { intlInputOptions } from '@lucca-front/ng/core';
|
|
4
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
5
|
+
import { IconComponent } from '@lucca-front/ng/icon';
|
|
6
|
+
|
|
7
|
+
const Translations = {
|
|
8
|
+
'nl-BE': {
|
|
9
|
+
alt: 'Alt',
|
|
10
|
+
option: 'Option',
|
|
11
|
+
control: 'Ctrl',
|
|
12
|
+
meta: 'Win',
|
|
13
|
+
command: 'Cmd',
|
|
14
|
+
shift: 'Shift',
|
|
15
|
+
tab: 'Tab',
|
|
16
|
+
space: 'Spatie',
|
|
17
|
+
enter: 'Enter',
|
|
18
|
+
escape: 'Esc',
|
|
19
|
+
backspace: 'Backspace',
|
|
20
|
+
delete: 'Delete',
|
|
21
|
+
home: 'Home',
|
|
22
|
+
end: 'End',
|
|
23
|
+
pageUp: 'Page Up',
|
|
24
|
+
pageDown: 'Page Down',
|
|
25
|
+
arrowUp: 'pijl omhoog',
|
|
26
|
+
arrowDown: 'pijl omlaag',
|
|
27
|
+
arrowLeft: 'pijl naar links',
|
|
28
|
+
arrowRight: 'pijl naar rechts',
|
|
29
|
+
},
|
|
30
|
+
fr: {
|
|
31
|
+
alt: 'Alt',
|
|
32
|
+
option: 'Option',
|
|
33
|
+
control: 'Ctrl',
|
|
34
|
+
meta: 'Win',
|
|
35
|
+
command: 'Cmd',
|
|
36
|
+
shift: 'Maj',
|
|
37
|
+
tab: 'Tab',
|
|
38
|
+
space: 'Espace',
|
|
39
|
+
enter: 'Entrée',
|
|
40
|
+
escape: 'Échap',
|
|
41
|
+
backspace: 'Retour arrière',
|
|
42
|
+
delete: 'Suppr',
|
|
43
|
+
home: 'Début',
|
|
44
|
+
end: 'Fin',
|
|
45
|
+
pageUp: 'Page préc',
|
|
46
|
+
pageDown: 'Page suiv',
|
|
47
|
+
arrowUp: 'flèche haut',
|
|
48
|
+
arrowDown: 'flèche bas',
|
|
49
|
+
arrowLeft: 'flèche gauche',
|
|
50
|
+
arrowRight: 'flèche droite',
|
|
51
|
+
},
|
|
52
|
+
de: {
|
|
53
|
+
alt: 'Alt',
|
|
54
|
+
option: 'Option',
|
|
55
|
+
control: 'Strg',
|
|
56
|
+
meta: 'Win',
|
|
57
|
+
command: 'Cmd',
|
|
58
|
+
shift: 'Umschalt',
|
|
59
|
+
tab: 'Tab',
|
|
60
|
+
space: 'Leertaste',
|
|
61
|
+
enter: 'Eingabe',
|
|
62
|
+
escape: 'Esc',
|
|
63
|
+
backspace: 'Rücktaste',
|
|
64
|
+
delete: 'Entf',
|
|
65
|
+
home: 'Pos1',
|
|
66
|
+
end: 'Ende',
|
|
67
|
+
pageUp: 'Bild auf',
|
|
68
|
+
pageDown: 'Bild ab',
|
|
69
|
+
arrowUp: 'Pfeil nach oben',
|
|
70
|
+
arrowDown: 'Pfeil nach unten',
|
|
71
|
+
arrowLeft: 'Pfeil nach links',
|
|
72
|
+
arrowRight: 'Pfeil nach rechts',
|
|
73
|
+
},
|
|
74
|
+
en: {
|
|
75
|
+
alt: 'Alt',
|
|
76
|
+
option: 'Option',
|
|
77
|
+
control: 'Ctrl',
|
|
78
|
+
meta: 'Win',
|
|
79
|
+
command: 'Cmd',
|
|
80
|
+
shift: 'Shift',
|
|
81
|
+
tab: 'Tab',
|
|
82
|
+
space: 'Space',
|
|
83
|
+
enter: 'Enter',
|
|
84
|
+
escape: 'Esc',
|
|
85
|
+
backspace: 'Backspace',
|
|
86
|
+
delete: 'Delete',
|
|
87
|
+
home: 'Home',
|
|
88
|
+
end: 'End',
|
|
89
|
+
pageUp: 'Page Up',
|
|
90
|
+
pageDown: 'Page Down',
|
|
91
|
+
arrowUp: 'up arrow',
|
|
92
|
+
arrowDown: 'down arrow',
|
|
93
|
+
arrowLeft: 'left arrow',
|
|
94
|
+
arrowRight: 'right arrow',
|
|
95
|
+
},
|
|
96
|
+
es: {
|
|
97
|
+
alt: 'Alt',
|
|
98
|
+
option: 'Opción',
|
|
99
|
+
control: 'Ctrl',
|
|
100
|
+
meta: 'Win',
|
|
101
|
+
command: 'Cmd',
|
|
102
|
+
shift: 'Mayús',
|
|
103
|
+
tab: 'Tab',
|
|
104
|
+
space: 'Espacio',
|
|
105
|
+
enter: 'Intro',
|
|
106
|
+
escape: 'Esc',
|
|
107
|
+
backspace: 'Retroceso',
|
|
108
|
+
delete: 'Supr',
|
|
109
|
+
home: 'Inicio',
|
|
110
|
+
end: 'Fin',
|
|
111
|
+
pageUp: 'Re Pág',
|
|
112
|
+
pageDown: 'Av Pág',
|
|
113
|
+
arrowUp: 'flecha arriba',
|
|
114
|
+
arrowDown: 'flecha abajo',
|
|
115
|
+
arrowLeft: 'flecha izquierda',
|
|
116
|
+
arrowRight: 'flecha derecha',
|
|
117
|
+
},
|
|
118
|
+
it: {
|
|
119
|
+
alt: 'Alt',
|
|
120
|
+
option: 'Opzione',
|
|
121
|
+
control: 'Ctrl',
|
|
122
|
+
meta: 'Win',
|
|
123
|
+
command: 'Cmd',
|
|
124
|
+
shift: 'Maiusc',
|
|
125
|
+
tab: 'Tab',
|
|
126
|
+
space: 'Spazio',
|
|
127
|
+
enter: 'Invio',
|
|
128
|
+
escape: 'Esc',
|
|
129
|
+
backspace: 'Backspace',
|
|
130
|
+
delete: 'Canc',
|
|
131
|
+
home: 'Home',
|
|
132
|
+
end: 'Fine',
|
|
133
|
+
pageUp: 'Pag su',
|
|
134
|
+
pageDown: 'Pag giù',
|
|
135
|
+
arrowUp: 'freccia su',
|
|
136
|
+
arrowDown: 'freccia giù',
|
|
137
|
+
arrowLeft: 'freccia sinistra',
|
|
138
|
+
arrowRight: 'freccia destra',
|
|
139
|
+
},
|
|
140
|
+
nl: {
|
|
141
|
+
alt: 'Alt',
|
|
142
|
+
option: 'Option',
|
|
143
|
+
control: 'Ctrl',
|
|
144
|
+
meta: 'Win',
|
|
145
|
+
command: 'Cmd',
|
|
146
|
+
shift: 'Shift',
|
|
147
|
+
tab: 'Tab',
|
|
148
|
+
space: 'Spatie',
|
|
149
|
+
enter: 'Enter',
|
|
150
|
+
escape: 'Esc',
|
|
151
|
+
backspace: 'Backspace',
|
|
152
|
+
delete: 'Delete',
|
|
153
|
+
home: 'Home',
|
|
154
|
+
end: 'End',
|
|
155
|
+
pageUp: 'Page Up',
|
|
156
|
+
pageDown: 'Page Down',
|
|
157
|
+
arrowUp: 'pijl omhoog',
|
|
158
|
+
arrowDown: 'pijl omlaag',
|
|
159
|
+
arrowLeft: 'pijl naar links',
|
|
160
|
+
arrowRight: 'pijl naar rechts',
|
|
161
|
+
},
|
|
162
|
+
pt: {
|
|
163
|
+
alt: 'Alt',
|
|
164
|
+
option: 'Option',
|
|
165
|
+
control: 'Ctrl',
|
|
166
|
+
meta: 'Win',
|
|
167
|
+
command: 'Cmd',
|
|
168
|
+
shift: 'Shift',
|
|
169
|
+
tab: 'Tab',
|
|
170
|
+
space: 'Espaço',
|
|
171
|
+
enter: 'Enter',
|
|
172
|
+
escape: 'Esc',
|
|
173
|
+
backspace: 'Backspace',
|
|
174
|
+
delete: 'Delete',
|
|
175
|
+
home: 'Home',
|
|
176
|
+
end: 'End',
|
|
177
|
+
pageUp: 'Page Up',
|
|
178
|
+
pageDown: 'Page Down',
|
|
179
|
+
arrowUp: 'seta para cima',
|
|
180
|
+
arrowDown: 'seta para baixo',
|
|
181
|
+
arrowLeft: 'seta para a esquerda',
|
|
182
|
+
arrowRight: 'seta para a direita',
|
|
183
|
+
},
|
|
184
|
+
pl: {
|
|
185
|
+
alt: 'Alt',
|
|
186
|
+
option: 'Option',
|
|
187
|
+
control: 'Ctrl',
|
|
188
|
+
meta: 'Win',
|
|
189
|
+
command: 'Cmd',
|
|
190
|
+
shift: 'Shift',
|
|
191
|
+
tab: 'Tab',
|
|
192
|
+
space: 'Spacja',
|
|
193
|
+
enter: 'Enter',
|
|
194
|
+
escape: 'Esc',
|
|
195
|
+
backspace: 'Backspace',
|
|
196
|
+
delete: 'Delete',
|
|
197
|
+
home: 'Home',
|
|
198
|
+
end: 'End',
|
|
199
|
+
pageUp: 'Page Up',
|
|
200
|
+
pageDown: 'Page Down',
|
|
201
|
+
arrowUp: 'strzałka w górę',
|
|
202
|
+
arrowDown: 'strzałka w dół',
|
|
203
|
+
arrowLeft: 'strzałka w lewo',
|
|
204
|
+
arrowRight: 'strzałka w prawo',
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
const LU_KBD_TRANSLATIONS = new InjectionToken('LuKbdTranslations', {
|
|
209
|
+
factory: () => luKbdTranslations,
|
|
210
|
+
});
|
|
211
|
+
const luKbdTranslations = Translations;
|
|
212
|
+
|
|
213
|
+
const LABELS = {
|
|
214
|
+
Alt: 'alt',
|
|
215
|
+
Control: 'control',
|
|
216
|
+
Meta: 'meta',
|
|
217
|
+
' ': 'space',
|
|
218
|
+
Escape: 'escape',
|
|
219
|
+
Home: 'home',
|
|
220
|
+
End: 'end',
|
|
221
|
+
};
|
|
222
|
+
const ICONS = {
|
|
223
|
+
Shift: ['arrowShift', 'shift'],
|
|
224
|
+
Tab: ['arrowLineRight', 'tab'],
|
|
225
|
+
Enter: ['arrowEnter', 'enter'],
|
|
226
|
+
Backspace: ['arrowBackspace', 'backspace'],
|
|
227
|
+
Delete: ['arrowDelete', 'delete'],
|
|
228
|
+
PageUp: ['arrowPageUp', 'pageUp'],
|
|
229
|
+
PageDown: ['arrowPageDown', 'pageDown'],
|
|
230
|
+
ArrowUp: ['arrowTop', 'arrowUp'],
|
|
231
|
+
ArrowDown: ['arrowBottom', 'arrowDown'],
|
|
232
|
+
ArrowLeft: ['arrowLeft', 'arrowLeft'],
|
|
233
|
+
ArrowRight: ['arrowRight', 'arrowRight'],
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Apple displays its modifiers as symbols: ⌥ Option and ⌘ Command
|
|
237
|
+
*/
|
|
238
|
+
const MAC_ICONS = {
|
|
239
|
+
...ICONS,
|
|
240
|
+
Alt: ['keyboardOption', 'option'],
|
|
241
|
+
Meta: ['keyboardCommand', 'command'],
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Conventional order of the modifiers, displayed before the other keys whatever their order in `keys`:
|
|
245
|
+
* Control, Option, Shift, Command on Mac (Apple Human Interface Guidelines), Windows key, Ctrl, Alt, Shift elsewhere
|
|
246
|
+
*/
|
|
247
|
+
const MAC_MODIFIERS = ['Control', 'Alt', 'Shift', 'Meta'];
|
|
248
|
+
const MODIFIERS = ['Meta', 'Control', 'Alt', 'Shift'];
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Whether the page runs on Apple platforms, whose modifiers differ (Option, Command)
|
|
252
|
+
*/
|
|
253
|
+
function isMacPlatform() {
|
|
254
|
+
return typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.userAgent);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
class KbdComponent {
|
|
258
|
+
constructor() {
|
|
259
|
+
this.#isMac = isMacPlatform();
|
|
260
|
+
/**
|
|
261
|
+
* Key, or combination of keys, to display, as named by `KeyboardEvent.key` (`'Escape'`, `['Control', 'n']`…).
|
|
262
|
+
* Keys follow the platform (Option and Command on Mac).
|
|
263
|
+
* Modifiers are displayed first, in the conventional order of the platform.
|
|
264
|
+
*/
|
|
265
|
+
this.keys = input.required(/* @ts-ignore */
|
|
266
|
+
...(ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []));
|
|
267
|
+
/**
|
|
268
|
+
* Overrides the default labels of the keys
|
|
269
|
+
*/
|
|
270
|
+
this.intl = input(...intlInputOptions(LU_KBD_TRANSLATIONS), /* @ts-ignore */
|
|
271
|
+
...(ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []));
|
|
272
|
+
this.displayedKeys = computed(() => {
|
|
273
|
+
const keys = this.keys();
|
|
274
|
+
const intl = this.intl();
|
|
275
|
+
const modifiers = this.#isMac ? MAC_MODIFIERS : MODIFIERS;
|
|
276
|
+
const given = typeof keys === 'string' ? [keys] : keys;
|
|
277
|
+
return [...modifiers.filter((modifier) => given.includes(modifier)), ...given.filter((key) => !modifiers.includes(key))].map((key) => this.#display(key, intl));
|
|
278
|
+
}, /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "displayedKeys" }] : /* istanbul ignore next */ []));
|
|
280
|
+
}
|
|
281
|
+
#isMac;
|
|
282
|
+
#display(key, intl) {
|
|
283
|
+
const icon = (this.#isMac ? MAC_ICONS : ICONS)[key];
|
|
284
|
+
if (icon) {
|
|
285
|
+
return { type: 'icon', icon: icon[0], label: intl[icon[1]] };
|
|
286
|
+
}
|
|
287
|
+
const label = LABELS[key];
|
|
288
|
+
if (label) {
|
|
289
|
+
return { type: 'text', label: intl[label] };
|
|
290
|
+
}
|
|
291
|
+
return { type: 'text', label: key.length === 1 ? key.toUpperCase() : key };
|
|
292
|
+
}
|
|
293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: KbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
294
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: KbdComponent, isStandalone: true, selector: "lu-kbd", inputs: { keys: { classPropertyName: "keys", publicName: "keys", isSignal: true, isRequired: true, transformFunction: null }, intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (displayedKeys().length === 1) {\n\t<span class=\"kbdWrapper\">\n\t\t<kbd class=\"kbd\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: displayedKeys()[0] }\" />\n\t\t</kbd>\n\t</span>\n} @else {\n\t<kbd class=\"kbdWrapper\">\n\t\t@for (key of displayedKeys(); track $index) {\n\t\t\t@if (!$first) {\n\t\t\t\t+\n\t\t\t}\n\t\t\t<kbd class=\"kbd\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: key }\" />\n\t\t\t</kbd>\n\t\t}\n\t</kbd>\n}\n\n<ng-template #content let-key>\n\t@switch (key.type) {\n\t\t@case (\"icon\") {\n\t\t\t<lu-icon [icon]=\"key.icon\" size=\"XXS\" [alt]=\"key.label\" />\n\t\t}\n\t\t@default {\n\t\t\t{{ key.label }}\n\t\t}\n\t}\n</ng-template>\n", styles: ["@layer components{.kbd{--components-kbd-paddingInline: var(--pr-t-spacings-50);--components-kbd-animationDelay: 0s;--components-kbd-animationDuration: calc(var(--components-kbd-animationPause) / .9);--components-kbd-animationName: var(--components-kbd-modifier-animationName);--components-kbd-animationOffset: 0s;--components-kbd-animationPause: calc(var(--commons-animations-durations-slow) * 3.5);--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none;align-items:center;background-color:var(--palettes-neutral-0);border:1px solid var(--palettes-neutral-200);border-radius:var(--pr-t-border-radius-small);box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-XS);inset-block-start:0;justify-content:center;min-block-size:var(--pr-t-spacings-250);min-inline-size:var(--pr-t-spacings-250);padding-inline:var(--components-kbd-paddingInline);position:relative;white-space:nowrap;animation-delay:calc(var(--components-kbd-animationDelay) + var(--components-kbd-animationOffset));animation-duration:var(--components-kbd-animationDuration);animation-iteration-count:infinite;animation-name:var(--components-kbd-animationName);animation-timing-function:step-end}.kbd:has(.lucca-icon){--components-kbd-paddingInline: 0}.kbd:nth-of-type(2){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 1)}.kbd:nth-of-type(3){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 2)}.kbd:nth-of-type(4){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 3)}.kbd:nth-of-type(5){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 4)}.kbd:last-of-type{--components-kbd-animationName: var(--components-kbd-last-animationName)}@keyframes kbdHold{10%,35%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}40%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}}@keyframes kbdTap{15%,25%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}20%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}}}@layer mods{@media(prefers-reduced-motion:reduce){.kbd{--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none}}}@layer components{.kbdWrapper{align-items:center;color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-S);gap:var(--pr-t-spacings-25);vertical-align:middle;white-space:nowrap}.kbdWrapper:has(.kbd:nth-of-type(2)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 0)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(3)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 1)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(4)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 2)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(5)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 3)) / .6)}}lu-kbd{display:contents}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
295
|
+
}
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: KbdComponent, decorators: [{
|
|
297
|
+
type: Component,
|
|
298
|
+
args: [{ selector: 'lu-kbd', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [IconComponent, NgTemplateOutlet], template: "@if (displayedKeys().length === 1) {\n\t<span class=\"kbdWrapper\">\n\t\t<kbd class=\"kbd\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: displayedKeys()[0] }\" />\n\t\t</kbd>\n\t</span>\n} @else {\n\t<kbd class=\"kbdWrapper\">\n\t\t@for (key of displayedKeys(); track $index) {\n\t\t\t@if (!$first) {\n\t\t\t\t+\n\t\t\t}\n\t\t\t<kbd class=\"kbd\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: key }\" />\n\t\t\t</kbd>\n\t\t}\n\t</kbd>\n}\n\n<ng-template #content let-key>\n\t@switch (key.type) {\n\t\t@case (\"icon\") {\n\t\t\t<lu-icon [icon]=\"key.icon\" size=\"XXS\" [alt]=\"key.label\" />\n\t\t}\n\t\t@default {\n\t\t\t{{ key.label }}\n\t\t}\n\t}\n</ng-template>\n", styles: ["@layer components{.kbd{--components-kbd-paddingInline: var(--pr-t-spacings-50);--components-kbd-animationDelay: 0s;--components-kbd-animationDuration: calc(var(--components-kbd-animationPause) / .9);--components-kbd-animationName: var(--components-kbd-modifier-animationName);--components-kbd-animationOffset: 0s;--components-kbd-animationPause: calc(var(--commons-animations-durations-slow) * 3.5);--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none;align-items:center;background-color:var(--palettes-neutral-0);border:1px solid var(--palettes-neutral-200);border-radius:var(--pr-t-border-radius-small);box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-XS);inset-block-start:0;justify-content:center;min-block-size:var(--pr-t-spacings-250);min-inline-size:var(--pr-t-spacings-250);padding-inline:var(--components-kbd-paddingInline);position:relative;white-space:nowrap;animation-delay:calc(var(--components-kbd-animationDelay) + var(--components-kbd-animationOffset));animation-duration:var(--components-kbd-animationDuration);animation-iteration-count:infinite;animation-name:var(--components-kbd-animationName);animation-timing-function:step-end}.kbd:has(.lucca-icon){--components-kbd-paddingInline: 0}.kbd:nth-of-type(2){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 1)}.kbd:nth-of-type(3){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 2)}.kbd:nth-of-type(4){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 3)}.kbd:nth-of-type(5){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 4)}.kbd:last-of-type{--components-kbd-animationName: var(--components-kbd-last-animationName)}@keyframes kbdHold{10%,35%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}40%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}}@keyframes kbdTap{15%,25%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}20%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}}}@layer mods{@media(prefers-reduced-motion:reduce){.kbd{--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none}}}@layer components{.kbdWrapper{align-items:center;color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-S);gap:var(--pr-t-spacings-25);vertical-align:middle;white-space:nowrap}.kbdWrapper:has(.kbd:nth-of-type(2)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 0)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(3)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 1)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(4)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 2)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(5)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 3)) / .6)}}lu-kbd{display:contents}\n"] }]
|
|
299
|
+
}], propDecorators: { keys: [{ type: i0.Input, args: [{ isSignal: true, alias: "keys", required: true }] }], intl: [{ type: i0.Input, args: [{ isSignal: true, alias: "intl", required: false }] }] } });
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Generated bundle index. Do not edit.
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
export { KbdComponent, LU_KBD_TRANSLATIONS, luKbdTranslations };
|
|
306
|
+
//# sourceMappingURL=lucca-front-ng-kbd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-kbd.mjs","sources":["../../../packages/ng/kbd/translations.ts","../../../packages/ng/kbd/kbd.translate.ts","../../../packages/ng/kbd/kbd.type.ts","../../../packages/ng/kbd/kbd.utils.ts","../../../packages/ng/kbd/kbd.component.ts","../../../packages/ng/kbd/kbd.component.html","../../../packages/ng/kbd/lucca-front-ng-kbd.ts"],"sourcesContent":["export const Translations = {\n\t'nl-BE': {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Shift',\n\t\ttab: 'Tab',\n\t\tspace: 'Spatie',\n\t\tenter: 'Enter',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Delete',\n\t\thome: 'Home',\n\t\tend: 'End',\n\t\tpageUp: 'Page Up',\n\t\tpageDown: 'Page Down',\n\t\tarrowUp: 'pijl omhoog',\n\t\tarrowDown: 'pijl omlaag',\n\t\tarrowLeft: 'pijl naar links',\n\t\tarrowRight: 'pijl naar rechts',\n\t},\n\tfr: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Maj',\n\t\ttab: 'Tab',\n\t\tspace: 'Espace',\n\t\tenter: 'Entrée',\n\t\tescape: 'Échap',\n\t\tbackspace: 'Retour arrière',\n\t\tdelete: 'Suppr',\n\t\thome: 'Début',\n\t\tend: 'Fin',\n\t\tpageUp: 'Page préc',\n\t\tpageDown: 'Page suiv',\n\t\tarrowUp: 'flèche haut',\n\t\tarrowDown: 'flèche bas',\n\t\tarrowLeft: 'flèche gauche',\n\t\tarrowRight: 'flèche droite',\n\t},\n\tde: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Strg',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Umschalt',\n\t\ttab: 'Tab',\n\t\tspace: 'Leertaste',\n\t\tenter: 'Eingabe',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Rücktaste',\n\t\tdelete: 'Entf',\n\t\thome: 'Pos1',\n\t\tend: 'Ende',\n\t\tpageUp: 'Bild auf',\n\t\tpageDown: 'Bild ab',\n\t\tarrowUp: 'Pfeil nach oben',\n\t\tarrowDown: 'Pfeil nach unten',\n\t\tarrowLeft: 'Pfeil nach links',\n\t\tarrowRight: 'Pfeil nach rechts',\n\t},\n\ten: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Shift',\n\t\ttab: 'Tab',\n\t\tspace: 'Space',\n\t\tenter: 'Enter',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Delete',\n\t\thome: 'Home',\n\t\tend: 'End',\n\t\tpageUp: 'Page Up',\n\t\tpageDown: 'Page Down',\n\t\tarrowUp: 'up arrow',\n\t\tarrowDown: 'down arrow',\n\t\tarrowLeft: 'left arrow',\n\t\tarrowRight: 'right arrow',\n\t},\n\tes: {\n\t\talt: 'Alt',\n\t\toption: 'Opción',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Mayús',\n\t\ttab: 'Tab',\n\t\tspace: 'Espacio',\n\t\tenter: 'Intro',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Retroceso',\n\t\tdelete: 'Supr',\n\t\thome: 'Inicio',\n\t\tend: 'Fin',\n\t\tpageUp: 'Re Pág',\n\t\tpageDown: 'Av Pág',\n\t\tarrowUp: 'flecha arriba',\n\t\tarrowDown: 'flecha abajo',\n\t\tarrowLeft: 'flecha izquierda',\n\t\tarrowRight: 'flecha derecha',\n\t},\n\tit: {\n\t\talt: 'Alt',\n\t\toption: 'Opzione',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Maiusc',\n\t\ttab: 'Tab',\n\t\tspace: 'Spazio',\n\t\tenter: 'Invio',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Canc',\n\t\thome: 'Home',\n\t\tend: 'Fine',\n\t\tpageUp: 'Pag su',\n\t\tpageDown: 'Pag giù',\n\t\tarrowUp: 'freccia su',\n\t\tarrowDown: 'freccia giù',\n\t\tarrowLeft: 'freccia sinistra',\n\t\tarrowRight: 'freccia destra',\n\t},\n\tnl: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Shift',\n\t\ttab: 'Tab',\n\t\tspace: 'Spatie',\n\t\tenter: 'Enter',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Delete',\n\t\thome: 'Home',\n\t\tend: 'End',\n\t\tpageUp: 'Page Up',\n\t\tpageDown: 'Page Down',\n\t\tarrowUp: 'pijl omhoog',\n\t\tarrowDown: 'pijl omlaag',\n\t\tarrowLeft: 'pijl naar links',\n\t\tarrowRight: 'pijl naar rechts',\n\t},\n\tpt: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Shift',\n\t\ttab: 'Tab',\n\t\tspace: 'Espaço',\n\t\tenter: 'Enter',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Delete',\n\t\thome: 'Home',\n\t\tend: 'End',\n\t\tpageUp: 'Page Up',\n\t\tpageDown: 'Page Down',\n\t\tarrowUp: 'seta para cima',\n\t\tarrowDown: 'seta para baixo',\n\t\tarrowLeft: 'seta para a esquerda',\n\t\tarrowRight: 'seta para a direita',\n\t},\n\tpl: {\n\t\talt: 'Alt',\n\t\toption: 'Option',\n\t\tcontrol: 'Ctrl',\n\t\tmeta: 'Win',\n\t\tcommand: 'Cmd',\n\t\tshift: 'Shift',\n\t\ttab: 'Tab',\n\t\tspace: 'Spacja',\n\t\tenter: 'Enter',\n\t\tescape: 'Esc',\n\t\tbackspace: 'Backspace',\n\t\tdelete: 'Delete',\n\t\thome: 'Home',\n\t\tend: 'End',\n\t\tpageUp: 'Page Up',\n\t\tpageDown: 'Page Down',\n\t\tarrowUp: 'strzałka w górę',\n\t\tarrowDown: 'strzałka w dół',\n\t\tarrowLeft: 'strzałka w lewo',\n\t\tarrowRight: 'strzałka w prawo',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_KBD_TRANSLATIONS = new InjectionToken('LuKbdTranslations', {\n\tfactory: () => luKbdTranslations,\n});\n\nexport interface LuKbdTranslations {\n\talt: string;\n\toption: string;\n\tcontrol: string;\n\tmeta: string;\n\tcommand: string;\n\tshift: string;\n\ttab: string;\n\tspace: string;\n\tenter: string;\n\tescape: string;\n\tbackspace: string;\n\tdelete: string;\n\thome: string;\n\tend: string;\n\tpageUp: string;\n\tpageDown: string;\n\tarrowUp: string;\n\tarrowDown: string;\n\tarrowLeft: string;\n\tarrowRight: string;\n}\n\nexport const luKbdTranslations: LuTranslation<LuKbdTranslations> = Translations;\n","import { LuccaIcon } from '@lucca-front/ng/icon';\nimport { LuKbdTranslations } from './kbd.translate';\n\nexport type KbdKey =\n\t| 'Alt'\n\t| 'Control'\n\t| 'Meta'\n\t| 'Shift'\n\t| 'Tab'\n\t| ' '\n\t| 'Enter'\n\t| 'Escape'\n\t| 'Backspace'\n\t| 'Delete'\n\t| 'Home'\n\t| 'End'\n\t| 'PageUp'\n\t| 'PageDown'\n\t| 'ArrowUp'\n\t| 'ArrowDown'\n\t| 'ArrowLeft'\n\t| 'ArrowRight'\n\t| (string & Record<never, never>);\n\nexport type DisplayedKey = { type: 'text'; label: string } | { type: 'icon'; label: string; icon: LuccaIcon };\n\nexport const LABELS: Partial<Record<KbdKey, keyof LuKbdTranslations>> = {\n\tAlt: 'alt',\n\tControl: 'control',\n\tMeta: 'meta',\n\t' ': 'space',\n\tEscape: 'escape',\n\tHome: 'home',\n\tEnd: 'end',\n};\n\nexport const ICONS: Partial<Record<KbdKey, [LuccaIcon, keyof LuKbdTranslations]>> = {\n\tShift: ['arrowShift', 'shift'],\n\tTab: ['arrowLineRight', 'tab'],\n\tEnter: ['arrowEnter', 'enter'],\n\tBackspace: ['arrowBackspace', 'backspace'],\n\tDelete: ['arrowDelete', 'delete'],\n\tPageUp: ['arrowPageUp', 'pageUp'],\n\tPageDown: ['arrowPageDown', 'pageDown'],\n\tArrowUp: ['arrowTop', 'arrowUp'],\n\tArrowDown: ['arrowBottom', 'arrowDown'],\n\tArrowLeft: ['arrowLeft', 'arrowLeft'],\n\tArrowRight: ['arrowRight', 'arrowRight'],\n};\n\n/**\n * Apple displays its modifiers as symbols: ⌥ Option and ⌘ Command\n */\nexport const MAC_ICONS: Partial<Record<KbdKey, [LuccaIcon, keyof LuKbdTranslations]>> = {\n\t...ICONS,\n\tAlt: ['keyboardOption', 'option'],\n\tMeta: ['keyboardCommand', 'command'],\n};\n\n/**\n * Conventional order of the modifiers, displayed before the other keys whatever their order in `keys`:\n * Control, Option, Shift, Command on Mac (Apple Human Interface Guidelines), Windows key, Ctrl, Alt, Shift elsewhere\n */\nexport const MAC_MODIFIERS: KbdKey[] = ['Control', 'Alt', 'Shift', 'Meta'];\nexport const MODIFIERS: KbdKey[] = ['Meta', 'Control', 'Alt', 'Shift'];\n","/**\n * Whether the page runs on Apple platforms, whose modifiers differ (Option, Command)\n */\nexport function isMacPlatform(): boolean {\n\treturn typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.userAgent);\n}\n","import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { intlInputOptions } from '@lucca-front/ng/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '@lucca-front/ng/icon';\nimport { LU_KBD_TRANSLATIONS, LuKbdTranslations } from './kbd.translate';\nimport { DisplayedKey, ICONS, KbdKey, LABELS, MAC_ICONS, MAC_MODIFIERS, MODIFIERS } from './kbd.type';\nimport { isMacPlatform } from './kbd.utils';\n\n@Component({\n\tselector: 'lu-kbd',\n\ttemplateUrl: './kbd.component.html',\n\tstyleUrl: './kbd.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [IconComponent, NgTemplateOutlet],\n})\nexport class KbdComponent {\n\treadonly #isMac = isMacPlatform();\n\n\t/**\n\t * Key, or combination of keys, to display, as named by `KeyboardEvent.key` (`'Escape'`, `['Control', 'n']`…).\n\t * Keys follow the platform (Option and Command on Mac).\n\t * Modifiers are displayed first, in the conventional order of the platform.\n\t */\n\treadonly keys = input.required<KbdKey | readonly KbdKey[]>();\n\n\t/**\n\t * Overrides the default labels of the keys\n\t */\n\treadonly intl = input(...intlInputOptions(LU_KBD_TRANSLATIONS));\n\n\treadonly displayedKeys = computed<DisplayedKey[]>(() => {\n\t\tconst keys = this.keys();\n\t\tconst intl = this.intl();\n\t\tconst modifiers = this.#isMac ? MAC_MODIFIERS : MODIFIERS;\n\t\tconst given = typeof keys === 'string' ? [keys] : keys;\n\t\treturn [...modifiers.filter((modifier) => given.includes(modifier)), ...given.filter((key) => !modifiers.includes(key))].map((key) => this.#display(key, intl));\n\t});\n\n\t#display(key: KbdKey, intl: LuKbdTranslations): DisplayedKey {\n\t\tconst icon = (this.#isMac ? MAC_ICONS : ICONS)[key];\n\t\tif (icon) {\n\t\t\treturn { type: 'icon', icon: icon[0], label: intl[icon[1]] };\n\t\t}\n\t\tconst label = LABELS[key];\n\t\tif (label) {\n\t\t\treturn { type: 'text', label: intl[label] };\n\t\t}\n\t\treturn { type: 'text', label: key.length === 1 ? key.toUpperCase() : key };\n\t}\n}\n","@if (displayedKeys().length === 1) {\n\t<span class=\"kbdWrapper\">\n\t\t<kbd class=\"kbd\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: displayedKeys()[0] }\" />\n\t\t</kbd>\n\t</span>\n} @else {\n\t<kbd class=\"kbdWrapper\">\n\t\t@for (key of displayedKeys(); track $index) {\n\t\t\t@if (!$first) {\n\t\t\t\t+\n\t\t\t}\n\t\t\t<kbd class=\"kbd\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: key }\" />\n\t\t\t</kbd>\n\t\t}\n\t</kbd>\n}\n\n<ng-template #content let-key>\n\t@switch (key.type) {\n\t\t@case (\"icon\") {\n\t\t\t<lu-icon [icon]=\"key.icon\" size=\"XXS\" [alt]=\"key.label\" />\n\t\t}\n\t\t@default {\n\t\t\t{{ key.label }}\n\t\t}\n\t}\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,YAAY,GAAG;AAC3B,IAAA,OAAO,EAAE;AACR,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,KAAK,EAAE,QAAQ;AACf,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,WAAW;AACrB,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,SAAS,EAAE,iBAAiB;AAC5B,QAAA,UAAU,EAAE,kBAAkB;AAC9B,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,OAAO,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AAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBzB,stBA6BA,EAAA,MAAA,EAAA,CAAA,iwGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDfW,aAAa,6GAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAE7B,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,QAAQ,EAAA,eAAA,EAGD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,aAAa,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,stBAAA,EAAA,MAAA,EAAA,CAAA,iwGAAA,CAAA,EAAA;;;AEd3C;;AAEG;;"}
|
|
@@ -47,10 +47,10 @@ class LuRouterLink extends RouterLink {
|
|
|
47
47
|
get publicReactiveHref() {
|
|
48
48
|
return this.reactiveHref;
|
|
49
49
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1
|
|
51
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuRouterLink, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
51
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: LuRouterLink, isStandalone: true, selector: "[luRouterLink]", usesInheritance: true, ngImport: i0 }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuRouterLink, decorators: [{
|
|
54
54
|
type: Directive,
|
|
55
55
|
args: [{
|
|
56
56
|
selector: '[luRouterLink]',
|
|
@@ -165,10 +165,10 @@ class LinkComponent {
|
|
|
165
165
|
// they all describe an internal route, so the serialized URL must carry the baseHref.
|
|
166
166
|
return this.location.prepareExternalUrl(serializedUrl);
|
|
167
167
|
}
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1
|
|
169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
169
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: LinkComponent, isStandalone: true, selector: "a[luLink], button[luLink]", inputs: { intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null }, luHref: { classPropertyName: "luHref", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLinkCommands: { classPropertyName: "routerLinkCommands", publicName: "luLink", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, decorationHover: { classPropertyName: "decorationHover", publicName: "decorationHover", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, hiddenIcon: { classPropertyName: "hiddenIcon", publicName: "hiddenIcon", isSignal: true, isRequired: false, transformFunction: null }, neutral: { classPropertyName: "neutral", publicName: "neutral", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "redirect()" }, properties: { "attr.href": "routerLink.publicReactiveHref()", "class.mod-decorationHover": "decorationHover()", "class.mod-icon": "external()", "class.mod-neutral": "neutral()", "class.mod-hiddenIcon": "hiddenIcon() || (this.insideIndexTable && external()) || (this.insideDataTable && external())", "class.is-disabled": "this.disabled()", "attr.rel": "external() && !disabled() ? \"noopener noreferrer\" : null", "attr.target": "external() && !disabled() ? \"_blank\" : null", "attr.role": "disabled() ? \"presentation\" : null" }, classAttribute: "link" }, hostDirectives: [{ directive: LuRouterLink, inputs: ["preserveFragment", "preserveFragment", "skipLocationChange", "skipLocationChange", "replaceUrl", "replaceUrl", "queryParams", "queryParams", "fragment", "fragment", "queryParamsHandling", "queryParamsHandling", "state", "state", "info", "info", "relativeTo", "relativeTo"] }], ngImport: i0, template: "<span class=\"link-text\"><ng-content /></span>\n@if (external()) {\n\t<span class=\"link-icon\">\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-arrowExternal\"></span>\n\t</span>\n\t<span class=\"pr-u-mask\">{{ intl().external }}</span>\n}\n", styles: ["@charset \"UTF-8\";@layer components{.link{--components-link-textDecoration: underline;--components-link-text-textDecoration: underline;--components-link-color: var(--commons-text-link-color);--components-link-color-hover: var(--commons-text-link-hover);--components-link-cursor: pointer;--components-link-icon-marginInlineStart: 0;--components-link-icon-opacity: 1;background-color:transparent;color:var(--components-link-color);cursor:var(--components-link-cursor);font-family:inherit;border:0;margin:0;padding:0;text-decoration:var(--components-link-textDecoration)}.link:not(:disabled,.is-disabled):hover{color:var(--components-link-color-hover)}.link:not(:disabled,.is-disabled):focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:2px;border-radius:var(--pr-t-border-radius-small)}.link .lucca-icon{text-decoration:none;font-size:1em;vertical-align:baseline;position:relative;inset-block-start:.075rem;margin-inline-start:var(--components-link-icon-marginInlineStart)}.link .link-text{text-decoration:var(--components-link-text-textDecoration)}.link-icon{white-space:nowrap;opacity:var(--components-link-icon-opacity);transition-property:opacity;transition-duration:var(--commons-animations-durations-fast)}.link-icon:before{content:\"\\a0\"/\"\"}}@layer mods{.link.mod-decorationHover{--components-link-textDecoration: none;--components-link-text-textDecoration: none}.link.mod-decorationHover:hover{--components-link-text-textDecoration: underline}.link.mod-decorationHover:hover:not(:has(.link-text)){--components-link-textDecoration: underline}.link.mod-neutral{--components-link-color: var(--pr-t-color-text);--components-link-color-hover: var(--palettes-neutral-900)}@media not (any-pointer:coarse){.link.mod-hiddenIcon:not(:hover,:focus-visible){--components-link-icon-opacity: 0}}.link:is(:disabled,.is-disabled){--components-link-color: var(--pr-t-color-text-disabled);--components-link-cursor: not-allowed}.link:has(.link-text){--components-link-textDecoration: none}.link:not(:has(.link-icon)){--components-link-icon-marginInlineStart: .2em}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
170
170
|
}
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LinkComponent, decorators: [{
|
|
172
172
|
type: Component,
|
|
173
173
|
args: [{ selector: 'a[luLink], button[luLink]', standalone: true, encapsulation: ViewEncapsulation.None, host: {
|
|
174
174
|
class: 'link',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Directive, inject, input, computed, contentChild, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
3
|
import { luBooleanAttribute } from '@lucca-front/ng/core';
|
|
4
|
+
import { ɵinjectRandomPercent as _injectRandomPercent } from '@lucca/prisme/core';
|
|
4
5
|
import { IconComponent } from '@lucca-front/ng/icon';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -13,10 +14,10 @@ const OPTION_INSTANCE = new InjectionToken('LuOptionInstance');
|
|
|
13
14
|
|
|
14
15
|
let nextId$1 = 0;
|
|
15
16
|
class Treeitem {
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1
|
|
17
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Treeitem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: Treeitem, isStandalone: true, selector: "[treeitem]", ngImport: i0 }); }
|
|
18
19
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Treeitem, decorators: [{
|
|
20
21
|
type: Directive,
|
|
21
22
|
args: [{
|
|
22
23
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -78,10 +79,10 @@ class OptionComponent {
|
|
|
78
79
|
#listboxRef;
|
|
79
80
|
#parentOptionRef;
|
|
80
81
|
#defaultGroupId;
|
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1
|
|
82
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: OptionComponent, isStandalone: true, selector: "lu-listbox-option", inputs: { elementId: { classPropertyName: "elementId", publicName: "elementId", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, mixed: { classPropertyName: "mixed", publicName: "mixed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hovered: { classPropertyName: "hovered", publicName: "hovered", isSignal: true, isRequired: false, transformFunction: null }, add: { classPropertyName: "add", publicName: "add", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, groupId: { classPropertyName: "groupId", publicName: "groupId", isSignal: true, isRequired: false, transformFunction: null }, select: { classPropertyName: "select", publicName: "select", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, treeitemLevel: { classPropertyName: "treeitemLevel", publicName: "treeitemLevel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "group() ? \"group\" : tree() ? \"treeitem\" : \"option\"", "attr.aria-labelledby": "group() ? groupLabelId() : null", "attr.aria-selected": "add() || group() || mixed() ? null : checked()", "attr.aria-checked": "!group() && mixed() ? \"mixed\" : null", "attr.aria-disabled": "disabled()", "attr.aria-hidden": "empty()", "attr.id": "empty() ? id() : elementId()", "class.is-selected": "checked()", "class.is-disabled": "disabled()", "class.mod-add": "add()", "class.mod-select": "select()" }, classAttribute: "listboxOption" }, providers: [{ provide: OPTION_INSTANCE, useExisting: forwardRef(() => OptionComponent) }], queries: [{ propertyName: "treeitemContent", first: true, predicate: Treeitem, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"listboxOption-content\" [class.is-hovered]=\"hovered()\" [attr.id]=\"group() ? groupLabelId() : null\">\n\t@if (multiple() && !add() && !selectAll() && !select()) {\n\t\t<span class=\"listboxOption-content-checkboxField checkboxField\" aria-hidden=\"true\">\n\t\t\t<span class=\"listboxOption-content-checkboxField-input checkboxField-input\"></span>\n\t\t\t<span class=\"checkboxField-icon\"><span class=\"checkboxField-icon-check\"></span></span>\n\t\t</span>\n\t}\n\t@if (add()) {\n\t\t<lu-icon icon=\"mathsPlus\" />\n\t}\n\t<ng-content />\n\t<ng-content select=\"[group-action]\" />\n\t@if (selectAll()) {\n\t\t<lu-listbox-option [elementId]=\"elementId() + '-selectAll'\" select>{{ selectAll() }}</lu-listbox-option>\n\t}\n</div>\n<ng-content select=\"[optgroup]\" />\n\n@if (hasTreeitems()) {\n\t<div class=\"listboxOptionWrapper\" role=\"group\" [attr.style]=\"'--components-listboxOptionWrapper-level: ' + wrapperLevel()\">\n\t\t<ng-content select=\"[treeitem]\" />\n\t</div>\n}\n", dependencies: [{ kind: "component", type: OptionComponent, selector: "lu-listbox-option", inputs: ["elementId", "checked", "mixed", "disabled", "hovered", "add", "group", "groupId", "select", "selectAll", "treeitemLevel"] }, { kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
83
84
|
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: OptionComponent, decorators: [{
|
|
85
86
|
type: Component,
|
|
86
87
|
args: [{ selector: 'lu-listbox-option', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
87
88
|
class: 'listboxOption',
|
|
@@ -123,13 +124,15 @@ class ListboxComponent {
|
|
|
123
124
|
this.statusMsg = input(null, /* @ts-ignore */
|
|
124
125
|
...(ngDevMode ? [{ debugName: "statusMsg" }] : /* istanbul ignore next */ []));
|
|
125
126
|
this.listboxId = `listbox${nextId++}`;
|
|
126
|
-
this
|
|
127
|
+
this.#randomPercent = _injectRandomPercent(20, 80);
|
|
128
|
+
this.skeletonWidth = computed(() => (this.state() === 'loading' ? this.#randomPercent() : null), /* @ts-ignore */
|
|
127
129
|
...(ngDevMode ? [{ debugName: "skeletonWidth" }] : /* istanbul ignore next */ []));
|
|
128
130
|
}
|
|
129
|
-
|
|
130
|
-
static { this.ɵ
|
|
131
|
+
#randomPercent;
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ListboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ListboxComponent, isStandalone: true, selector: "lu-listbox", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, statusMsg: { classPropertyName: "statusMsg", publicName: "statusMsg", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "tree() ? \"tree\" : \"listbox\"", "attr.aria-multiselectable": "multiple() ? true : null", "class.mod-multiple": "multiple()", "attr.aria-busy": "state() === \"loading\"", "attr.aria-describedby": "state() === \"empty\" ? listboxId : null" }, classAttribute: "listboxOptionWrapper" }, providers: [{ provide: LISTBOX_INSTANCE, useExisting: forwardRef(() => ListboxComponent) }], ngImport: i0, template: "<ng-content select=\"[listbox-header]\" />\n@if (state() !== \"empty\") {\n\t<ng-content />\n}\n@if (state() === \"empty\") {\n\t<lu-listbox-option empty>{{ statusMsg() }}</lu-listbox-option>\n} @else if (state() === \"loading\") {\n\t<lu-listbox-option class=\"skeleton is-loading\" inert=\"inert\">\n\t\t<span class=\"skeleton-item\" [style.--components-skeleton-text-width]=\"skeletonWidth()\"></span>\n\t</lu-listbox-option>\n\t<span class=\"pr-u-mask\">{{ statusMsg() }}</span>\n}\n", dependencies: [{ kind: "component", type: OptionComponent, selector: "lu-listbox-option", inputs: ["elementId", "checked", "mixed", "disabled", "hovered", "add", "group", "groupId", "select", "selectAll", "treeitemLevel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
131
134
|
}
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ListboxComponent, decorators: [{
|
|
133
136
|
type: Component,
|
|
134
137
|
args: [{ selector: 'lu-listbox', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
135
138
|
class: 'listboxOptionWrapper',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-listbox.mjs","sources":["../../../packages/ng/listbox/listbox.type.ts","../../../packages/ng/listbox/tokens.ts","../../../packages/ng/listbox/option/option.component.ts","../../../packages/ng/listbox/option/option.component.html","../../../packages/ng/listbox/listbox.component.ts","../../../packages/ng/listbox/listbox.component.html","../../../packages/ng/listbox/lucca-front-ng-listbox.ts"],"sourcesContent":["/**\n * Available ListboxComponent Types\n */\n\nexport const LISTBOX_STATE = ['loading', 'empty'] as const;\nexport type ListboxState = (typeof LISTBOX_STATE)[number];\n","import { InjectionToken } from '@angular/core';\nimport { ListboxComponent } from './listbox.component';\nimport { OptionComponent } from './option/option.component';\n\nexport const LISTBOX_INSTANCE = new InjectionToken<ListboxComponent>('LuListboxInstance');\nexport const OPTION_INSTANCE = new InjectionToken<OptionComponent>('LuOptionInstance');\n","import { ChangeDetectionStrategy, Component, computed, contentChild, Directive, forwardRef, inject, input, ViewEncapsulation } from '@angular/core';\nimport { luBooleanAttribute } from '@lucca-front/ng/core';\nimport { IconComponent } from '@lucca-front/ng/icon';\nimport { LISTBOX_INSTANCE, OPTION_INSTANCE } from '../tokens';\n\nlet nextId = 0;\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: '[treeitem]',\n})\nexport class Treeitem {}\n\n@Component({\n\tselector: 'lu-listbox-option',\n\ttemplateUrl: './option.component.html',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'listboxOption',\n\t\t'[attr.role]': 'group() ? \"group\" : tree() ? \"treeitem\" : \"option\"',\n\t\t'[attr.aria-labelledby]': 'group() ? groupLabelId() : null',\n\t\t'[attr.aria-selected]': 'add() || group() || mixed() ? null : checked()',\n\t\t'[attr.aria-checked]': '!group() && mixed() ? \"mixed\" : null',\n\t\t'[attr.aria-disabled]': 'disabled()',\n\t\t'[attr.aria-hidden]': 'empty()',\n\t\t// The empty status option is the target of the listbox `aria-describedby`, so it must\n\t\t// carry the listbox id even though no consumer sets an elementId on it.\n\t\t'[attr.id]': 'empty() ? id() : elementId()',\n\t\t'[class.is-selected]': 'checked()',\n\t\t'[class.is-disabled]': 'disabled()',\n\t\t'[class.mod-add]': 'add()',\n\t\t'[class.mod-select]': 'select()',\n\t},\n\timports: [IconComponent],\n\tproviders: [{ provide: OPTION_INSTANCE, useExisting: forwardRef(() => OptionComponent) }],\n})\nexport class OptionComponent {\n\t// Optional so the option can live outside a lu-listbox, e.g. a sticky \"add option\" row\n\t// rendered next to the listbox but inside the same scroll container.\n\t#listboxRef = inject(LISTBOX_INSTANCE, { optional: true });\n\t#parentOptionRef = inject(OPTION_INSTANCE, { skipSelf: true, optional: true });\n\n\treadonly elementId = input<string | null>(null);\n\n\treadonly checked = input(false, { transform: luBooleanAttribute });\n\n\treadonly mixed = input(false, { transform: luBooleanAttribute });\n\n\treadonly disabled = input(false, { transform: luBooleanAttribute });\n\n\treadonly hovered = input(false, { transform: luBooleanAttribute });\n\n\treadonly add = input(false, { transform: luBooleanAttribute });\n\n\treadonly group = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Overrides the generated id used to label the group, so consumers can provide\n\t * a deterministic id (e.g. derived from a select id and a group key).\n\t */\n\treadonly groupId = input<string | null>(null);\n\n\treadonly select = input(false, { transform: luBooleanAttribute });\n\n\treadonly selectAll = input<'string' | null>();\n\n\treadonly multiple = computed(() => this.#listboxRef?.multiple() ?? false);\n\treadonly tree = computed(() => this.#listboxRef?.tree() ?? false);\n\treadonly empty = computed(() => this.#listboxRef?.state() === 'empty');\n\treadonly id = computed(() => this.#listboxRef?.listboxId ?? null);\n\n\treadonly groupLabelId = computed(() => this.groupId() ?? this.#defaultGroupId);\n\n\treadonly #defaultGroupId = `group${nextId++}`;\n\n\treadonly treeitemContent = contentChild(Treeitem);\n\n\t/**\n\t * Depth of the nested `[treeitem]` wrapper, for consumers that hand their own projected\n\t * content over to this option: a content query does not cross an `ng-content` boundary, so\n\t * the option can then neither see those children nor derive the depth it sits at. Setting it\n\t * renders the wrapper and pins its level; leave it null to let both be worked out here.\n\t */\n\treadonly treeitemLevel = input<number | null>(null);\n\n\treadonly level: number = (this.#parentOptionRef?.level || 0) + 1;\n\n\treadonly hasTreeitems = computed(() => !!this.treeitemContent() || this.treeitemLevel() !== null);\n\n\treadonly wrapperLevel = computed(() => this.treeitemLevel() ?? this.level);\n}\n","<div class=\"listboxOption-content\" [class.is-hovered]=\"hovered()\" [attr.id]=\"group() ? groupLabelId() : null\">\n\t@if (multiple() && !add() && !selectAll() && !select()) {\n\t\t<span class=\"listboxOption-content-checkboxField checkboxField\" aria-hidden=\"true\">\n\t\t\t<span class=\"listboxOption-content-checkboxField-input checkboxField-input\"></span>\n\t\t\t<span class=\"checkboxField-icon\"><span class=\"checkboxField-icon-check\"></span></span>\n\t\t</span>\n\t}\n\t@if (add()) {\n\t\t<lu-icon icon=\"mathsPlus\" />\n\t}\n\t<ng-content />\n\t<ng-content select=\"[group-action]\" />\n\t@if (selectAll()) {\n\t\t<lu-listbox-option [elementId]=\"elementId() + '-selectAll'\" select>{{ selectAll() }}</lu-listbox-option>\n\t}\n</div>\n<ng-content select=\"[optgroup]\" />\n\n@if (hasTreeitems()) {\n\t<div class=\"listboxOptionWrapper\" role=\"group\" [attr.style]=\"'--components-listboxOptionWrapper-level: ' + wrapperLevel()\">\n\t\t<ng-content select=\"[treeitem]\" />\n\t</div>\n}\n","import { ChangeDetectionStrategy, Component, computed, forwardRef, input, ViewEncapsulation } from '@angular/core';\n\nimport { luBooleanAttribute } from '@lucca-front/ng/core';\nimport { ListboxState } from './listbox.type';\nimport { OptionComponent } from './option/option.component';\nimport { LISTBOX_INSTANCE } from './tokens';\n\nlet nextId = 0;\n\n@Component({\n\tselector: 'lu-listbox',\n\ttemplateUrl: './listbox.component.html',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'listboxOptionWrapper',\n\t\t'[attr.role]': 'tree() ? \"tree\" : \"listbox\"',\n\t\t'[attr.aria-multiselectable]': 'multiple() ? true : null',\n\t\t'[class.mod-multiple]': 'multiple()',\n\t\t'[attr.aria-busy]': 'state() === \"loading\"',\n\t\t'[attr.aria-describedby]': 'state() === \"empty\" ? listboxId : null',\n\t},\n\timports: [OptionComponent],\n\tproviders: [{ provide: LISTBOX_INSTANCE, useExisting: forwardRef(() => ListboxComponent) }],\n})\nexport class ListboxComponent {\n\t/**\n\t * Applies multiple mod to the listbox\n\t */\n\treadonly multiple = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Defines listbox role tree or listbox by default\n\t */\n\treadonly tree = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Listbox state\n\t */\n\treadonly state = input<ListboxState | null>(null);\n\n\t/**\n\t * Add message when listbox state loading or empty\n\t */\n\treadonly statusMsg = input<string | null>(null);\n\n\treadonly listboxId = `listbox${nextId++}`;\n\n\treadonly skeletonWidth = computed(() => (this.state() === 'loading' ? `${Math.floor(Math.random() * 60 + 20)}%` : null));\n}\n","<ng-content select=\"[listbox-header]\" />\n@if (state() !== \"empty\") {\n\t<ng-content />\n}\n@if (state() === \"empty\") {\n\t<lu-listbox-option empty>{{ statusMsg() }}</lu-listbox-option>\n} @else if (state() === \"loading\") {\n\t<lu-listbox-option class=\"skeleton is-loading\" inert=\"inert\">\n\t\t<span class=\"skeleton-item\" [style.--components-skeleton-text-width]=\"skeletonWidth()\"></span>\n\t</lu-listbox-option>\n\t<span class=\"pr-u-mask\">{{ statusMsg() }}</span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["nextId"],"mappings":";;;;;AAAA;;AAEG;MAEU,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO;;MCAnC,gBAAgB,GAAG,IAAI,cAAc,CAAmB,mBAAmB;MAC3E,eAAe,GAAG,IAAI,cAAc,CAAkB,kBAAkB;;ACArF,IAAIA,QAAM,GAAG,CAAC;MAMD,QAAQ,CAAA;8GAAR,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAJpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAEV,oBAAA,QAAQ,EAAE,YAAY;AACtB,iBAAA;;MA2BY,eAAe,CAAA;AAxB5B,IAAA,WAAA,GAAA;;;QA2BC,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAErE,IA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EAAE,uBAAuB;AAC3C,wBAAA,yBAAyB,EAAE,wCAAwC;AACnE,qBAAA,EAAA,OAAA,EACQ,CAAC,eAAe,CAAC,aACf,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,gBAAiB,CAAC,EAAE,CAAC,EAAA,QAAA,EAAA,yeAAA,EAAA;;;AEvB5F;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-listbox.mjs","sources":["../../../packages/ng/listbox/listbox.type.ts","../../../packages/ng/listbox/tokens.ts","../../../packages/ng/listbox/option/option.component.ts","../../../packages/ng/listbox/option/option.component.html","../../../packages/ng/listbox/listbox.component.ts","../../../packages/ng/listbox/listbox.component.html","../../../packages/ng/listbox/lucca-front-ng-listbox.ts"],"sourcesContent":["/**\n * Available ListboxComponent Types\n */\n\nexport const LISTBOX_STATE = ['loading', 'empty'] as const;\nexport type ListboxState = (typeof LISTBOX_STATE)[number];\n","import { InjectionToken } from '@angular/core';\nimport { ListboxComponent } from './listbox.component';\nimport { OptionComponent } from './option/option.component';\n\nexport const LISTBOX_INSTANCE = new InjectionToken<ListboxComponent>('LuListboxInstance');\nexport const OPTION_INSTANCE = new InjectionToken<OptionComponent>('LuOptionInstance');\n","import { ChangeDetectionStrategy, Component, computed, contentChild, Directive, forwardRef, inject, input, ViewEncapsulation } from '@angular/core';\nimport { luBooleanAttribute } from '@lucca-front/ng/core';\nimport { IconComponent } from '@lucca-front/ng/icon';\nimport { LISTBOX_INSTANCE, OPTION_INSTANCE } from '../tokens';\n\nlet nextId = 0;\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: '[treeitem]',\n})\nexport class Treeitem {}\n\n@Component({\n\tselector: 'lu-listbox-option',\n\ttemplateUrl: './option.component.html',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'listboxOption',\n\t\t'[attr.role]': 'group() ? \"group\" : tree() ? \"treeitem\" : \"option\"',\n\t\t'[attr.aria-labelledby]': 'group() ? groupLabelId() : null',\n\t\t'[attr.aria-selected]': 'add() || group() || mixed() ? null : checked()',\n\t\t'[attr.aria-checked]': '!group() && mixed() ? \"mixed\" : null',\n\t\t'[attr.aria-disabled]': 'disabled()',\n\t\t'[attr.aria-hidden]': 'empty()',\n\t\t// The empty status option is the target of the listbox `aria-describedby`, so it must\n\t\t// carry the listbox id even though no consumer sets an elementId on it.\n\t\t'[attr.id]': 'empty() ? id() : elementId()',\n\t\t'[class.is-selected]': 'checked()',\n\t\t'[class.is-disabled]': 'disabled()',\n\t\t'[class.mod-add]': 'add()',\n\t\t'[class.mod-select]': 'select()',\n\t},\n\timports: [IconComponent],\n\tproviders: [{ provide: OPTION_INSTANCE, useExisting: forwardRef(() => OptionComponent) }],\n})\nexport class OptionComponent {\n\t// Optional so the option can live outside a lu-listbox, e.g. a sticky \"add option\" row\n\t// rendered next to the listbox but inside the same scroll container.\n\t#listboxRef = inject(LISTBOX_INSTANCE, { optional: true });\n\t#parentOptionRef = inject(OPTION_INSTANCE, { skipSelf: true, optional: true });\n\n\treadonly elementId = input<string | null>(null);\n\n\treadonly checked = input(false, { transform: luBooleanAttribute });\n\n\treadonly mixed = input(false, { transform: luBooleanAttribute });\n\n\treadonly disabled = input(false, { transform: luBooleanAttribute });\n\n\treadonly hovered = input(false, { transform: luBooleanAttribute });\n\n\treadonly add = input(false, { transform: luBooleanAttribute });\n\n\treadonly group = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Overrides the generated id used to label the group, so consumers can provide\n\t * a deterministic id (e.g. derived from a select id and a group key).\n\t */\n\treadonly groupId = input<string | null>(null);\n\n\treadonly select = input(false, { transform: luBooleanAttribute });\n\n\treadonly selectAll = input<'string' | null>();\n\n\treadonly multiple = computed(() => this.#listboxRef?.multiple() ?? false);\n\treadonly tree = computed(() => this.#listboxRef?.tree() ?? false);\n\treadonly empty = computed(() => this.#listboxRef?.state() === 'empty');\n\treadonly id = computed(() => this.#listboxRef?.listboxId ?? null);\n\n\treadonly groupLabelId = computed(() => this.groupId() ?? this.#defaultGroupId);\n\n\treadonly #defaultGroupId = `group${nextId++}`;\n\n\treadonly treeitemContent = contentChild(Treeitem);\n\n\t/**\n\t * Depth of the nested `[treeitem]` wrapper, for consumers that hand their own projected\n\t * content over to this option: a content query does not cross an `ng-content` boundary, so\n\t * the option can then neither see those children nor derive the depth it sits at. Setting it\n\t * renders the wrapper and pins its level; leave it null to let both be worked out here.\n\t */\n\treadonly treeitemLevel = input<number | null>(null);\n\n\treadonly level: number = (this.#parentOptionRef?.level || 0) + 1;\n\n\treadonly hasTreeitems = computed(() => !!this.treeitemContent() || this.treeitemLevel() !== null);\n\n\treadonly wrapperLevel = computed(() => this.treeitemLevel() ?? this.level);\n}\n","<div class=\"listboxOption-content\" [class.is-hovered]=\"hovered()\" [attr.id]=\"group() ? groupLabelId() : null\">\n\t@if (multiple() && !add() && !selectAll() && !select()) {\n\t\t<span class=\"listboxOption-content-checkboxField checkboxField\" aria-hidden=\"true\">\n\t\t\t<span class=\"listboxOption-content-checkboxField-input checkboxField-input\"></span>\n\t\t\t<span class=\"checkboxField-icon\"><span class=\"checkboxField-icon-check\"></span></span>\n\t\t</span>\n\t}\n\t@if (add()) {\n\t\t<lu-icon icon=\"mathsPlus\" />\n\t}\n\t<ng-content />\n\t<ng-content select=\"[group-action]\" />\n\t@if (selectAll()) {\n\t\t<lu-listbox-option [elementId]=\"elementId() + '-selectAll'\" select>{{ selectAll() }}</lu-listbox-option>\n\t}\n</div>\n<ng-content select=\"[optgroup]\" />\n\n@if (hasTreeitems()) {\n\t<div class=\"listboxOptionWrapper\" role=\"group\" [attr.style]=\"'--components-listboxOptionWrapper-level: ' + wrapperLevel()\">\n\t\t<ng-content select=\"[treeitem]\" />\n\t</div>\n}\n","import { ChangeDetectionStrategy, Component, computed, forwardRef, input, ViewEncapsulation } from '@angular/core';\n\nimport { luBooleanAttribute } from '@lucca-front/ng/core';\nimport { ɵinjectRandomPercent } from '@lucca/prisme/core';\nimport { ListboxState } from './listbox.type';\nimport { OptionComponent } from './option/option.component';\nimport { LISTBOX_INSTANCE } from './tokens';\n\nlet nextId = 0;\n\n@Component({\n\tselector: 'lu-listbox',\n\ttemplateUrl: './listbox.component.html',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'listboxOptionWrapper',\n\t\t'[attr.role]': 'tree() ? \"tree\" : \"listbox\"',\n\t\t'[attr.aria-multiselectable]': 'multiple() ? true : null',\n\t\t'[class.mod-multiple]': 'multiple()',\n\t\t'[attr.aria-busy]': 'state() === \"loading\"',\n\t\t'[attr.aria-describedby]': 'state() === \"empty\" ? listboxId : null',\n\t},\n\timports: [OptionComponent],\n\tproviders: [{ provide: LISTBOX_INSTANCE, useExisting: forwardRef(() => ListboxComponent) }],\n})\nexport class ListboxComponent {\n\t/**\n\t * Applies multiple mod to the listbox\n\t */\n\treadonly multiple = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Defines listbox role tree or listbox by default\n\t */\n\treadonly tree = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Listbox state\n\t */\n\treadonly state = input<ListboxState | null>(null);\n\n\t/**\n\t * Add message when listbox state loading or empty\n\t */\n\treadonly statusMsg = input<string | null>(null);\n\n\treadonly listboxId = `listbox${nextId++}`;\n\n\treadonly #randomPercent = ɵinjectRandomPercent(20, 80);\n\n\treadonly skeletonWidth = computed(() => (this.state() === 'loading' ? this.#randomPercent() : null));\n}\n","<ng-content select=\"[listbox-header]\" />\n@if (state() !== \"empty\") {\n\t<ng-content />\n}\n@if (state() === \"empty\") {\n\t<lu-listbox-option empty>{{ statusMsg() }}</lu-listbox-option>\n} @else if (state() === \"loading\") {\n\t<lu-listbox-option class=\"skeleton is-loading\" inert=\"inert\">\n\t\t<span class=\"skeleton-item\" [style.--components-skeleton-text-width]=\"skeletonWidth()\"></span>\n\t</lu-listbox-option>\n\t<span class=\"pr-u-mask\">{{ statusMsg() }}</span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["nextId","ɵinjectRandomPercent"],"mappings":";;;;;;AAAA;;AAEG;MAEU,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO;;MCAnC,gBAAgB,GAAG,IAAI,cAAc,CAAmB,mBAAmB;MAC3E,eAAe,GAAG,IAAI,cAAc,CAAkB,kBAAkB;;ACArF,IAAIA,QAAM,GAAG,CAAC;MAMD,QAAQ,CAAA;8GAAR,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAJpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAEV,oBAAA,QAAQ,EAAE,YAAY;AACtB,iBAAA;;MA2BY,eAAe,CAAA;AAxB5B,IAAA,WAAA,GAAA;;;QA2BC,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1D,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAErE,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;QAEtC,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,kBAAkB,EAAA,CAAG;QAEzD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,kBAAkB,EAAA,CAAG;QAEvD,IAAA,CAAA,QAAQ,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