@ojiepermana/angular 22.1.14 → 22.2.1
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 +8 -6
- package/SUPPORT.md +3 -3
- package/chart/README.md +1 -1
- package/component/README.md +2 -2
- package/component/calendar/README.md +3 -15
- package/component/drawer/README.md +1 -2
- package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
- package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
- package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
- package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
- package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
- package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
- package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
- package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -5
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
- package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
- package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
- package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
- package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
- package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
- package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
- package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
- package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
- package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
- package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
- package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
- package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
- package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
- package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
- package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
- package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
- package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
- package/fesm2022/ojiepermana-angular-component.mjs +0 -10
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-DYuysKVf.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-COiTaw34.mjs +812 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-YIz0IsIb.mjs} +392 -207
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-D2vwEwBY.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-B5D7yXfb.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-CUb68MZH.mjs +1219 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-CrK16trj.mjs +327 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +544 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +139 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3256 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1125 -737
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1928 -553
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
- package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
- package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
- package/fesm2022/ojiepermana-angular.mjs +5 -24
- package/navigation/README.md +69 -18
- package/package.json +16 -12
- package/sdk/README.md +1 -1
- package/sdk/src/writer/index.js +2 -2
- package/theme/README.md +1 -1
- package/theme/layout/README.md +2 -4
- package/theme/page/README.md +50 -0
- package/theme/styles/README.md +10 -10
- package/theme/styles/css/base/prefers-dark.css +1 -1
- package/theme/styles/css/base/status.css +1 -1
- package/theme/styles/css/color/amber.css +1 -1
- package/theme/styles/css/color/blue.css +1 -1
- package/theme/styles/css/color/cyan.css +1 -1
- package/theme/styles/css/color/emerald.css +1 -1
- package/theme/styles/css/color/fuchsia.css +1 -1
- package/theme/styles/css/color/green.css +1 -1
- package/theme/styles/css/color/indigo.css +1 -1
- package/theme/styles/css/color/lime.css +1 -1
- package/theme/styles/css/color/orange.css +1 -1
- package/theme/styles/css/color/pink.css +1 -1
- package/theme/styles/css/color/purple.css +1 -1
- package/theme/styles/css/color/red.css +1 -1
- package/theme/styles/css/color/rose.css +1 -1
- package/theme/styles/css/color/sky.css +1 -1
- package/theme/styles/css/color/teal.css +1 -1
- package/theme/styles/css/color/violet.css +1 -1
- package/theme/styles/css/color/yellow.css +1 -1
- package/theme/styles/css/neutral/gray.css +1 -1
- package/theme/styles/css/neutral/mauve.css +1 -1
- package/theme/styles/css/neutral/mist.css +1 -1
- package/theme/styles/css/neutral/neutral.css +1 -1
- package/theme/styles/css/neutral/olive.css +1 -1
- package/theme/styles/css/neutral/slate.css +1 -1
- package/theme/styles/css/neutral/stone.css +1 -1
- package/theme/styles/css/neutral/taupe.css +1 -1
- package/theme/styles/css/neutral/zinc.css +1 -1
- package/types/ojiepermana-angular-chart-area.d.ts +126 -63
- package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
- package/types/ojiepermana-angular-chart-core.d.ts +409 -398
- package/types/ojiepermana-angular-chart-line.d.ts +141 -68
- package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
- package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
- package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
- package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
- package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
- package/types/ojiepermana-angular-chart.d.ts +3 -2
- package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
- package/types/ojiepermana-angular-component-alert.d.ts +69 -39
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
- package/types/ojiepermana-angular-component-badge.d.ts +36 -24
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
- package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
- package/types/ojiepermana-angular-component-button.d.ts +44 -27
- package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
- package/types/ojiepermana-angular-component-card.d.ts +112 -63
- package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
- package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
- package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
- package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
- package/types/ojiepermana-angular-component-command.d.ts +206 -121
- package/types/ojiepermana-angular-component-composer.d.ts +184 -84
- package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
- package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
- package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
- package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
- package/types/ojiepermana-angular-component-editor.d.ts +215 -117
- package/types/ojiepermana-angular-component-empty.d.ts +80 -45
- package/types/ojiepermana-angular-component-form.d.ts +185 -121
- package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
- package/types/ojiepermana-angular-component-icon.d.ts +87 -57
- package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
- package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
- package/types/ojiepermana-angular-component-input.d.ts +27 -17
- package/types/ojiepermana-angular-component-item.d.ts +160 -84
- package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
- package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
- package/types/ojiepermana-angular-component-label.d.ts +19 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
- package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
- package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
- package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
- package/types/ojiepermana-angular-component-popover.d.ts +94 -64
- package/types/ojiepermana-angular-component-progress.d.ts +45 -17
- package/types/ojiepermana-angular-component-radio.d.ts +129 -53
- package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
- package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
- package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
- package/types/ojiepermana-angular-component-select.d.ts +94 -77
- package/types/ojiepermana-angular-component-separator.d.ts +26 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
- package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
- package/types/ojiepermana-angular-component-slider.d.ts +140 -75
- package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
- package/types/ojiepermana-angular-component-switch.d.ts +97 -40
- package/types/ojiepermana-angular-component-table.d.ts +102 -50
- package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
- package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
- package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
- package/types/ojiepermana-angular-component-toast.d.ts +51 -55
- package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
- package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
- package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
- package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
- package/types/ojiepermana-angular-component-utils.d.ts +2 -2
- package/types/ojiepermana-angular-component.d.ts +1 -2
- package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
- package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
- package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
- package/types/ojiepermana-angular-navigation-types.d.ts +166 -125
- package/types/ojiepermana-angular-navigation.d.ts +708 -375
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +120 -86
- package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
- package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +446 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
- package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
- package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
- package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
- package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
- package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
- package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
- package/types/ojiepermana-angular-theme-page.d.ts +7 -5
- package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
- package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
- package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
- package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
- package/types/ojiepermana-angular-theme.d.ts +1 -2
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-Be3IqzG4.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
|
@@ -1,92 +1,184 @@
|
|
|
1
|
-
import { DOCUMENT, NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
import { cn, injectUniqueId } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, contentChildren, forwardRef, inject, input, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { cn, injectUniqueId } from "@ojiepermana/angular/component/utils/core";
|
|
6
|
+
var PillboxRovingOption = class {};
|
|
7
|
+
var PillboxContext = class {};
|
|
8
|
+
var PillboxSelectedDirective = class PillboxSelectedDirective {
|
|
9
|
+
template = inject(TemplateRef);
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.2",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: PillboxSelectedDirective,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
19
|
+
minVersion: "14.0.0",
|
|
20
|
+
version: "22.2.2",
|
|
21
|
+
type: PillboxSelectedDirective,
|
|
22
|
+
isStandalone: true,
|
|
23
|
+
selector: "ng-template[PillboxSelected]",
|
|
24
|
+
exportAs: ["PillboxSelected"],
|
|
25
|
+
ngImport: i0
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.2.2",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: PillboxSelectedDirective,
|
|
33
|
+
decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{
|
|
36
|
+
selector: "ng-template[PillboxSelected]",
|
|
37
|
+
exportAs: "PillboxSelected"
|
|
38
|
+
}]
|
|
39
|
+
}]
|
|
40
|
+
});
|
|
41
|
+
var PillboxOptionComponent = class PillboxOptionComponent extends PillboxRovingOption {
|
|
42
|
+
context = inject(PillboxContext);
|
|
43
|
+
element = inject(ElementRef);
|
|
44
|
+
selectedTemplate = contentChild(PillboxSelectedDirective, ...ngDevMode ? [{ debugName: "selectedTemplate" }] : /* istanbul ignore next */ []);
|
|
45
|
+
value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
46
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
47
|
+
selectedLabel = input("", ...ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []);
|
|
48
|
+
disabled = input(false, {
|
|
49
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
50
|
+
transform: booleanAttribute
|
|
51
|
+
});
|
|
52
|
+
filterable = input(true, {
|
|
53
|
+
...ngDevMode ? { debugName: "filterable" } : /* istanbul ignore next */ {},
|
|
54
|
+
transform: booleanAttribute
|
|
55
|
+
});
|
|
56
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
57
|
+
selectedChange = output();
|
|
58
|
+
selected = computed(() => this.context.optionSelected(this), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
59
|
+
visible = computed(() => this.context.optionVisible(this), ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
60
|
+
tabIndex = computed(() => this.context.optionTabIndex(this), ...ngDevMode ? [{ debugName: "tabIndex" }] : /* istanbul ignore next */ []);
|
|
61
|
+
classes = computed(() => cn("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", "data-[selected]:bg-accent data-[selected]:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
62
|
+
rovingVisible() {
|
|
63
|
+
return this.visible();
|
|
64
|
+
}
|
|
65
|
+
nativeElement() {
|
|
66
|
+
return this.element.nativeElement;
|
|
67
|
+
}
|
|
68
|
+
focus() {
|
|
69
|
+
this.element.nativeElement.focus();
|
|
70
|
+
}
|
|
71
|
+
textLabel() {
|
|
72
|
+
return (this.label() || this.element.nativeElement.textContent || String(this.value())).trim();
|
|
73
|
+
}
|
|
74
|
+
pillLabel() {
|
|
75
|
+
return (this.selectedLabel() || this.textLabel()).trim();
|
|
76
|
+
}
|
|
77
|
+
pillTemplate() {
|
|
78
|
+
return this.selectedTemplate()?.template ?? null;
|
|
79
|
+
}
|
|
80
|
+
handleClick(event) {
|
|
81
|
+
this.context.chooseOption(this, event);
|
|
82
|
+
}
|
|
83
|
+
handleFocus() {
|
|
84
|
+
this.context.activateOption(this);
|
|
85
|
+
}
|
|
86
|
+
handleKeydown(event) {
|
|
87
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
this.context.chooseOption(this, event);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.context.handleOptionKeydown(this, event);
|
|
93
|
+
}
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
95
|
+
minVersion: "12.0.0",
|
|
96
|
+
version: "22.2.2",
|
|
97
|
+
ngImport: i0,
|
|
98
|
+
type: PillboxOptionComponent,
|
|
99
|
+
deps: null,
|
|
100
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
101
|
+
});
|
|
102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
103
|
+
minVersion: "17.0.0",
|
|
104
|
+
version: "22.2.2",
|
|
105
|
+
type: PillboxOptionComponent,
|
|
106
|
+
isStandalone: true,
|
|
107
|
+
selector: "PillboxOption, button[PillboxOption]",
|
|
108
|
+
inputs: {
|
|
109
|
+
value: {
|
|
110
|
+
classPropertyName: "value",
|
|
111
|
+
publicName: "value",
|
|
112
|
+
isSignal: true,
|
|
113
|
+
isRequired: true,
|
|
114
|
+
transformFunction: null
|
|
115
|
+
},
|
|
116
|
+
label: {
|
|
117
|
+
classPropertyName: "label",
|
|
118
|
+
publicName: "label",
|
|
119
|
+
isSignal: true,
|
|
120
|
+
isRequired: false,
|
|
121
|
+
transformFunction: null
|
|
122
|
+
},
|
|
123
|
+
selectedLabel: {
|
|
124
|
+
classPropertyName: "selectedLabel",
|
|
125
|
+
publicName: "selectedLabel",
|
|
126
|
+
isSignal: true,
|
|
127
|
+
isRequired: false,
|
|
128
|
+
transformFunction: null
|
|
129
|
+
},
|
|
130
|
+
disabled: {
|
|
131
|
+
classPropertyName: "disabled",
|
|
132
|
+
publicName: "disabled",
|
|
133
|
+
isSignal: true,
|
|
134
|
+
isRequired: false,
|
|
135
|
+
transformFunction: null
|
|
136
|
+
},
|
|
137
|
+
filterable: {
|
|
138
|
+
classPropertyName: "filterable",
|
|
139
|
+
publicName: "filterable",
|
|
140
|
+
isSignal: true,
|
|
141
|
+
isRequired: false,
|
|
142
|
+
transformFunction: null
|
|
143
|
+
},
|
|
144
|
+
class: {
|
|
145
|
+
classPropertyName: "class",
|
|
146
|
+
publicName: "class",
|
|
147
|
+
isSignal: true,
|
|
148
|
+
isRequired: false,
|
|
149
|
+
transformFunction: null
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
outputs: { selectedChange: "selectedChange" },
|
|
153
|
+
host: {
|
|
154
|
+
attributes: { "type": "button" },
|
|
155
|
+
listeners: {
|
|
156
|
+
"click": "handleClick($event)",
|
|
157
|
+
"focus": "handleFocus()",
|
|
158
|
+
"keydown": "handleKeydown($any($event))"
|
|
159
|
+
},
|
|
160
|
+
properties: {
|
|
161
|
+
"class": "classes()",
|
|
162
|
+
"attr.data-slot": "\"pillbox-option\"",
|
|
163
|
+
"attr.data-selected": "selected() ? \"\" : null",
|
|
164
|
+
"attr.data-disabled": "disabled() ? \"\" : null",
|
|
165
|
+
"attr.role": "\"option\"",
|
|
166
|
+
"attr.aria-selected": "selected()",
|
|
167
|
+
"attr.aria-disabled": "disabled() ? \"true\" : null",
|
|
168
|
+
"attr.tabindex": "tabIndex()",
|
|
169
|
+
"hidden": "!visible()"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
queries: [{
|
|
173
|
+
propertyName: "selectedTemplate",
|
|
174
|
+
first: true,
|
|
175
|
+
predicate: PillboxSelectedDirective,
|
|
176
|
+
descendants: true,
|
|
177
|
+
isSignal: true
|
|
178
|
+
}],
|
|
179
|
+
usesInheritance: true,
|
|
180
|
+
ngImport: i0,
|
|
181
|
+
template: `
|
|
90
182
|
<span class="min-w-0 flex-1 truncate text-left"><ng-content /></span>
|
|
91
183
|
@if (selected()) {
|
|
92
184
|
<svg
|
|
@@ -102,28 +194,35 @@ class PillboxOptionComponent extends PillboxRovingOption {
|
|
|
102
194
|
<path d="M20 6 9 17l-5-5" />
|
|
103
195
|
</svg>
|
|
104
196
|
}
|
|
105
|
-
`,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
197
|
+
`,
|
|
198
|
+
isInline: true
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
202
|
+
minVersion: "12.0.0",
|
|
203
|
+
version: "22.2.2",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
type: PillboxOptionComponent,
|
|
206
|
+
decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{
|
|
209
|
+
selector: "PillboxOption, button[PillboxOption]",
|
|
210
|
+
host: {
|
|
211
|
+
type: "button",
|
|
212
|
+
"[class]": "classes()",
|
|
213
|
+
"[attr.data-slot]": "\"pillbox-option\"",
|
|
214
|
+
"[attr.data-selected]": "selected() ? \"\" : null",
|
|
215
|
+
"[attr.data-disabled]": "disabled() ? \"\" : null",
|
|
216
|
+
"[attr.role]": "\"option\"",
|
|
217
|
+
"[attr.aria-selected]": "selected()",
|
|
218
|
+
"[attr.aria-disabled]": "disabled() ? \"true\" : null",
|
|
219
|
+
"[attr.tabindex]": "tabIndex()",
|
|
220
|
+
"[hidden]": "!visible()",
|
|
221
|
+
"(click)": "handleClick($event)",
|
|
222
|
+
"(focus)": "handleFocus()",
|
|
223
|
+
"(keydown)": "handleKeydown($any($event))"
|
|
224
|
+
},
|
|
225
|
+
template: `
|
|
127
226
|
<span class="min-w-0 flex-1 truncate text-left"><ng-content /></span>
|
|
128
227
|
@if (selected()) {
|
|
129
228
|
<svg
|
|
@@ -139,484 +238,844 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
139
238
|
<path d="M20 6 9 17l-5-5" />
|
|
140
239
|
</svg>
|
|
141
240
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
class
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
241
|
+
`
|
|
242
|
+
}]
|
|
243
|
+
}],
|
|
244
|
+
propDecorators: {
|
|
245
|
+
selectedTemplate: [{
|
|
246
|
+
type: i0.ContentChild,
|
|
247
|
+
args: [i0.forwardRef(() => PillboxSelectedDirective), { isSignal: true }]
|
|
248
|
+
}],
|
|
249
|
+
value: [{
|
|
250
|
+
type: i0.Input,
|
|
251
|
+
args: [{
|
|
252
|
+
isSignal: true,
|
|
253
|
+
alias: "value",
|
|
254
|
+
required: true
|
|
255
|
+
}]
|
|
256
|
+
}],
|
|
257
|
+
label: [{
|
|
258
|
+
type: i0.Input,
|
|
259
|
+
args: [{
|
|
260
|
+
isSignal: true,
|
|
261
|
+
alias: "label",
|
|
262
|
+
required: false
|
|
263
|
+
}]
|
|
264
|
+
}],
|
|
265
|
+
selectedLabel: [{
|
|
266
|
+
type: i0.Input,
|
|
267
|
+
args: [{
|
|
268
|
+
isSignal: true,
|
|
269
|
+
alias: "selectedLabel",
|
|
270
|
+
required: false
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
disabled: [{
|
|
274
|
+
type: i0.Input,
|
|
275
|
+
args: [{
|
|
276
|
+
isSignal: true,
|
|
277
|
+
alias: "disabled",
|
|
278
|
+
required: false
|
|
279
|
+
}]
|
|
280
|
+
}],
|
|
281
|
+
filterable: [{
|
|
282
|
+
type: i0.Input,
|
|
283
|
+
args: [{
|
|
284
|
+
isSignal: true,
|
|
285
|
+
alias: "filterable",
|
|
286
|
+
required: false
|
|
287
|
+
}]
|
|
288
|
+
}],
|
|
289
|
+
class: [{
|
|
290
|
+
type: i0.Input,
|
|
291
|
+
args: [{
|
|
292
|
+
isSignal: true,
|
|
293
|
+
alias: "class",
|
|
294
|
+
required: false
|
|
295
|
+
}]
|
|
296
|
+
}],
|
|
297
|
+
selectedChange: [{
|
|
298
|
+
type: i0.Output,
|
|
299
|
+
args: ["selectedChange"]
|
|
300
|
+
}]
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
var PillboxOptionCreateComponent = class PillboxOptionCreateComponent extends PillboxRovingOption {
|
|
304
|
+
context = inject(PillboxContext);
|
|
305
|
+
element = inject(ElementRef);
|
|
306
|
+
minLength = input(1, {
|
|
307
|
+
...ngDevMode ? { debugName: "minLength" } : /* istanbul ignore next */ {},
|
|
308
|
+
transform: numberAttribute
|
|
309
|
+
});
|
|
310
|
+
disabled = input(false, {
|
|
311
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
312
|
+
transform: booleanAttribute
|
|
313
|
+
});
|
|
314
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
315
|
+
selected = output();
|
|
316
|
+
visible = computed(() => this.context.createVisible(this), ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
317
|
+
tabIndex = computed(() => this.context.optionTabIndex(this), ...ngDevMode ? [{ debugName: "tabIndex" }] : /* istanbul ignore next */ []);
|
|
318
|
+
classes = computed(() => cn("relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium text-primary outline-none transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", "aria-disabled:pointer-events-none aria-disabled:opacity-50", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
319
|
+
rovingVisible() {
|
|
320
|
+
return this.visible();
|
|
321
|
+
}
|
|
322
|
+
nativeElement() {
|
|
323
|
+
return this.element.nativeElement;
|
|
324
|
+
}
|
|
325
|
+
focus() {
|
|
326
|
+
this.element.nativeElement.focus();
|
|
327
|
+
}
|
|
328
|
+
handleClick(event) {
|
|
329
|
+
this.context.chooseCreate(this, event);
|
|
330
|
+
}
|
|
331
|
+
handleFocus() {
|
|
332
|
+
this.context.activateOption(this);
|
|
333
|
+
}
|
|
334
|
+
handleKeydown(event) {
|
|
335
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
336
|
+
event.preventDefault();
|
|
337
|
+
this.context.chooseCreate(this, event);
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
this.context.handleOptionKeydown(this, event);
|
|
341
|
+
}
|
|
342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
343
|
+
minVersion: "12.0.0",
|
|
344
|
+
version: "22.2.2",
|
|
345
|
+
ngImport: i0,
|
|
346
|
+
type: PillboxOptionCreateComponent,
|
|
347
|
+
deps: null,
|
|
348
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
349
|
+
});
|
|
350
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
351
|
+
minVersion: "17.1.0",
|
|
352
|
+
version: "22.2.2",
|
|
353
|
+
type: PillboxOptionCreateComponent,
|
|
354
|
+
isStandalone: true,
|
|
355
|
+
selector: "PillboxOptionCreate, button[PillboxOptionCreate]",
|
|
356
|
+
inputs: {
|
|
357
|
+
minLength: {
|
|
358
|
+
classPropertyName: "minLength",
|
|
359
|
+
publicName: "minLength",
|
|
360
|
+
isSignal: true,
|
|
361
|
+
isRequired: false,
|
|
362
|
+
transformFunction: null
|
|
363
|
+
},
|
|
364
|
+
disabled: {
|
|
365
|
+
classPropertyName: "disabled",
|
|
366
|
+
publicName: "disabled",
|
|
367
|
+
isSignal: true,
|
|
368
|
+
isRequired: false,
|
|
369
|
+
transformFunction: null
|
|
370
|
+
},
|
|
371
|
+
class: {
|
|
372
|
+
classPropertyName: "class",
|
|
373
|
+
publicName: "class",
|
|
374
|
+
isSignal: true,
|
|
375
|
+
isRequired: false,
|
|
376
|
+
transformFunction: null
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
outputs: { selected: "selected" },
|
|
380
|
+
host: {
|
|
381
|
+
attributes: { "type": "button" },
|
|
382
|
+
listeners: {
|
|
383
|
+
"click": "handleClick($event)",
|
|
384
|
+
"focus": "handleFocus()",
|
|
385
|
+
"keydown": "handleKeydown($any($event))"
|
|
386
|
+
},
|
|
387
|
+
properties: {
|
|
388
|
+
"class": "classes()",
|
|
389
|
+
"attr.data-slot": "\"pillbox-option-create\"",
|
|
390
|
+
"attr.role": "\"option\"",
|
|
391
|
+
"attr.tabindex": "tabIndex()",
|
|
392
|
+
"attr.aria-disabled": "disabled() ? \"true\" : null",
|
|
393
|
+
"hidden": "!visible()"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
usesInheritance: true,
|
|
397
|
+
ngImport: i0,
|
|
398
|
+
template: `<ng-content />`,
|
|
399
|
+
isInline: true
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
403
|
+
minVersion: "12.0.0",
|
|
404
|
+
version: "22.2.2",
|
|
405
|
+
ngImport: i0,
|
|
406
|
+
type: PillboxOptionCreateComponent,
|
|
407
|
+
decorators: [{
|
|
408
|
+
type: Component,
|
|
409
|
+
args: [{
|
|
410
|
+
selector: "PillboxOptionCreate, button[PillboxOptionCreate]",
|
|
411
|
+
host: {
|
|
412
|
+
type: "button",
|
|
413
|
+
"[class]": "classes()",
|
|
414
|
+
"[attr.data-slot]": "\"pillbox-option-create\"",
|
|
415
|
+
"[attr.role]": "\"option\"",
|
|
416
|
+
"[attr.tabindex]": "tabIndex()",
|
|
417
|
+
"[attr.aria-disabled]": "disabled() ? \"true\" : null",
|
|
418
|
+
"[hidden]": "!visible()",
|
|
419
|
+
"(click)": "handleClick($event)",
|
|
420
|
+
"(focus)": "handleFocus()",
|
|
421
|
+
"(keydown)": "handleKeydown($any($event))"
|
|
422
|
+
},
|
|
423
|
+
template: `<ng-content />`
|
|
424
|
+
}]
|
|
425
|
+
}],
|
|
426
|
+
propDecorators: {
|
|
427
|
+
minLength: [{
|
|
428
|
+
type: i0.Input,
|
|
429
|
+
args: [{
|
|
430
|
+
isSignal: true,
|
|
431
|
+
alias: "minLength",
|
|
432
|
+
required: false
|
|
433
|
+
}]
|
|
434
|
+
}],
|
|
435
|
+
disabled: [{
|
|
436
|
+
type: i0.Input,
|
|
437
|
+
args: [{
|
|
438
|
+
isSignal: true,
|
|
439
|
+
alias: "disabled",
|
|
440
|
+
required: false
|
|
441
|
+
}]
|
|
442
|
+
}],
|
|
443
|
+
class: [{
|
|
444
|
+
type: i0.Input,
|
|
445
|
+
args: [{
|
|
446
|
+
isSignal: true,
|
|
447
|
+
alias: "class",
|
|
448
|
+
required: false
|
|
449
|
+
}]
|
|
450
|
+
}],
|
|
451
|
+
selected: [{
|
|
452
|
+
type: i0.Output,
|
|
453
|
+
args: ["selected"]
|
|
454
|
+
}]
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
var PillboxOptionEmptyComponent = class PillboxOptionEmptyComponent {
|
|
458
|
+
context = inject(PillboxContext);
|
|
459
|
+
whenLoading = input("", ...ngDevMode ? [{ debugName: "whenLoading" }] : /* istanbul ignore next */ []);
|
|
460
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
461
|
+
classes = computed(() => cn("px-2 py-6 text-center text-sm text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
462
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
463
|
+
minVersion: "12.0.0",
|
|
464
|
+
version: "22.2.2",
|
|
465
|
+
ngImport: i0,
|
|
466
|
+
type: PillboxOptionEmptyComponent,
|
|
467
|
+
deps: [],
|
|
468
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
469
|
+
});
|
|
470
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
471
|
+
minVersion: "17.0.0",
|
|
472
|
+
version: "22.2.2",
|
|
473
|
+
type: PillboxOptionEmptyComponent,
|
|
474
|
+
isStandalone: true,
|
|
475
|
+
selector: "PillboxOptionEmpty",
|
|
476
|
+
inputs: {
|
|
477
|
+
whenLoading: {
|
|
478
|
+
classPropertyName: "whenLoading",
|
|
479
|
+
publicName: "whenLoading",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
class: {
|
|
485
|
+
classPropertyName: "class",
|
|
486
|
+
publicName: "class",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
host: {
|
|
493
|
+
attributes: { "role": "presentation" },
|
|
494
|
+
properties: {
|
|
495
|
+
"class": "classes()",
|
|
496
|
+
"attr.data-slot": "\"pillbox-option-empty\"",
|
|
497
|
+
"hidden": "!context.emptyVisible()"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
ngImport: i0,
|
|
501
|
+
template: `
|
|
214
502
|
@if (context.emptyMessage()) {
|
|
215
503
|
{{ context.emptyMessage() }}
|
|
216
504
|
} @else {
|
|
217
505
|
<ng-content />
|
|
218
506
|
}
|
|
219
|
-
`,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
507
|
+
`,
|
|
508
|
+
isInline: true
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
512
|
+
minVersion: "12.0.0",
|
|
513
|
+
version: "22.2.2",
|
|
514
|
+
ngImport: i0,
|
|
515
|
+
type: PillboxOptionEmptyComponent,
|
|
516
|
+
decorators: [{
|
|
517
|
+
type: Component,
|
|
518
|
+
args: [{
|
|
519
|
+
selector: "PillboxOptionEmpty",
|
|
520
|
+
host: {
|
|
521
|
+
"[class]": "classes()",
|
|
522
|
+
"[attr.data-slot]": "\"pillbox-option-empty\"",
|
|
523
|
+
role: "presentation",
|
|
524
|
+
"[hidden]": "!context.emptyVisible()"
|
|
525
|
+
},
|
|
526
|
+
template: `
|
|
232
527
|
@if (context.emptyMessage()) {
|
|
233
528
|
{{ context.emptyMessage() }}
|
|
234
529
|
} @else {
|
|
235
530
|
<ng-content />
|
|
236
531
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
532
|
+
`
|
|
533
|
+
}]
|
|
534
|
+
}],
|
|
535
|
+
propDecorators: {
|
|
536
|
+
whenLoading: [{
|
|
537
|
+
type: i0.Input,
|
|
538
|
+
args: [{
|
|
539
|
+
isSignal: true,
|
|
540
|
+
alias: "whenLoading",
|
|
541
|
+
required: false
|
|
542
|
+
}]
|
|
543
|
+
}],
|
|
544
|
+
class: [{
|
|
545
|
+
type: i0.Input,
|
|
546
|
+
args: [{
|
|
547
|
+
isSignal: true,
|
|
548
|
+
alias: "class",
|
|
549
|
+
required: false
|
|
550
|
+
}]
|
|
551
|
+
}]
|
|
552
|
+
}
|
|
553
|
+
});
|
|
241
554
|
const pillboxTriggerSizeClasses = {
|
|
242
|
-
|
|
243
|
-
|
|
555
|
+
default: "min-h-10 px-3 py-2 text-sm",
|
|
556
|
+
sm: "min-h-8 px-2.5 py-1.5 text-xs"
|
|
244
557
|
};
|
|
245
558
|
const pillboxPillSizeClasses = {
|
|
246
|
-
|
|
247
|
-
|
|
559
|
+
default: "min-h-6 px-2 text-xs",
|
|
560
|
+
sm: "min-h-5 px-1.5 text-2xs-plus"
|
|
248
561
|
};
|
|
249
|
-
class PillboxComponent extends PillboxContext {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
562
|
+
var PillboxComponent = class PillboxComponent extends PillboxContext {
|
|
563
|
+
element = inject(ElementRef);
|
|
564
|
+
document = inject(DOCUMENT);
|
|
565
|
+
destroyRef = inject(DestroyRef);
|
|
566
|
+
id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
567
|
+
placeholder = input("Choose options...", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
568
|
+
searchPlaceholder = input("Search...", ...ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
569
|
+
size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
570
|
+
variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
571
|
+
multiple = input(false, {
|
|
572
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
573
|
+
transform: booleanAttribute
|
|
574
|
+
});
|
|
575
|
+
searchable = input(false, {
|
|
576
|
+
...ngDevMode ? { debugName: "searchable" } : /* istanbul ignore next */ {},
|
|
577
|
+
transform: booleanAttribute
|
|
578
|
+
});
|
|
579
|
+
filter = input(true, {
|
|
580
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
581
|
+
transform: booleanAttribute
|
|
582
|
+
});
|
|
583
|
+
clearable = input(true, {
|
|
584
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
585
|
+
transform: booleanAttribute
|
|
586
|
+
});
|
|
587
|
+
disabled = input(false, {
|
|
588
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
589
|
+
transform: booleanAttribute
|
|
590
|
+
});
|
|
591
|
+
invalid = input(false, {
|
|
592
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
593
|
+
transform: booleanAttribute
|
|
594
|
+
});
|
|
595
|
+
loading = input(false, {
|
|
596
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
597
|
+
transform: booleanAttribute
|
|
598
|
+
});
|
|
599
|
+
compareWith = input(Object.is, ...ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []);
|
|
600
|
+
emptyText = input("No options found.", ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
|
|
601
|
+
loadingText = input("Loading...", ...ngDevMode ? [{ debugName: "loadingText" }] : /* istanbul ignore next */ []);
|
|
602
|
+
ariaLabel = input(null, {
|
|
603
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
604
|
+
alias: "aria-label"
|
|
605
|
+
});
|
|
606
|
+
ariaDescribedby = input(null, {
|
|
607
|
+
...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
|
|
608
|
+
alias: "aria-describedby"
|
|
609
|
+
});
|
|
610
|
+
ariaLabelledby = input(null, {
|
|
611
|
+
...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
|
|
612
|
+
alias: "aria-labelledby"
|
|
613
|
+
});
|
|
614
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
615
|
+
valueChange = output();
|
|
616
|
+
searchChange = output();
|
|
617
|
+
create = output();
|
|
618
|
+
openedChange = output();
|
|
619
|
+
query = signal("", ...ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []);
|
|
620
|
+
openState = signal(false, ...ngDevMode ? [{ debugName: "openState" }] : /* istanbul ignore next */ []);
|
|
621
|
+
selectedValues = signal([], ...ngDevMode ? [{ debugName: "selectedValues" }] : /* istanbul ignore next */ []);
|
|
622
|
+
activeOption = signal(null, ...ngDevMode ? [{ debugName: "activeOption" }] : /* istanbul ignore next */ []);
|
|
623
|
+
disabledFromControl = signal(false, ...ngDevMode ? [{ debugName: "disabledFromControl" }] : /* istanbul ignore next */ []);
|
|
624
|
+
generatedId = injectUniqueId("Pillbox");
|
|
625
|
+
trigger = viewChild.required("trigger", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
|
|
626
|
+
inlineSearch = viewChild("inlineSearch", ...ngDevMode ? [{ debugName: "inlineSearch" }] : /* istanbul ignore next */ []);
|
|
627
|
+
panelSearch = viewChild("panelSearch", ...ngDevMode ? [{ debugName: "panelSearch" }] : /* istanbul ignore next */ []);
|
|
628
|
+
options = contentChildren(PillboxOptionComponent, {
|
|
629
|
+
...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
|
|
630
|
+
descendants: true
|
|
631
|
+
});
|
|
632
|
+
createOptions = contentChildren(PillboxOptionCreateComponent, {
|
|
633
|
+
...ngDevMode ? { debugName: "createOptions" } : /* istanbul ignore next */ {},
|
|
634
|
+
descendants: true
|
|
635
|
+
});
|
|
636
|
+
emptyOptions = contentChildren(PillboxOptionEmptyComponent, {
|
|
637
|
+
...ngDevMode ? { debugName: "emptyOptions" } : /* istanbul ignore next */ {},
|
|
638
|
+
descendants: true
|
|
639
|
+
});
|
|
640
|
+
removeDocumentListener = null;
|
|
641
|
+
onChange = () => {};
|
|
642
|
+
onTouched = () => {};
|
|
643
|
+
panelId = `${this.generatedId}-panel`;
|
|
644
|
+
resolvedId = computed(() => this.id() ?? this.generatedId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
645
|
+
hasInlineSearch = computed(() => this.variant() === "combobox", ...ngDevMode ? [{ debugName: "hasInlineSearch" }] : /* istanbul ignore next */ []);
|
|
646
|
+
disabledState = computed(() => this.disabled() || this.disabledFromControl(), ...ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []);
|
|
647
|
+
classes = computed(() => cn("relative block w-full min-w-0 text-sm text-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
648
|
+
triggerClasses = computed(() => cn("flex w-full min-w-0 cursor-default items-center gap-2 rounded-md border border-input bg-background shadow-sm transition-colors", "focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background", "hover:bg-accent/20", pillboxTriggerSizeClasses[this.size()], this.invalid() ? "border-destructive ring-1 ring-destructive" : "", this.disabledState() ? "pointer-events-none cursor-not-allowed opacity-50" : ""), ...ngDevMode ? [{ debugName: "triggerClasses" }] : /* istanbul ignore next */ []);
|
|
649
|
+
pillClasses = computed(() => cn("inline-flex max-w-full shrink-0 items-center gap-1 rounded-md border border-border bg-muted font-medium text-muted-foreground", pillboxPillSizeClasses[this.size()]), ...ngDevMode ? [{ debugName: "pillClasses" }] : /* istanbul ignore next */ []);
|
|
650
|
+
panelClasses = computed(() => cn("absolute left-0 right-0 z-50 mt-1 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md", "min-w-full"), ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
|
|
651
|
+
selectedItems = computed(() => this.selectedValues().map((value) => {
|
|
652
|
+
const option = this.findOption(value);
|
|
653
|
+
return {
|
|
654
|
+
value,
|
|
655
|
+
label: option?.pillLabel() || String(value),
|
|
656
|
+
template: option?.pillTemplate() ?? null,
|
|
657
|
+
track: value
|
|
658
|
+
};
|
|
659
|
+
}), ...ngDevMode ? [{ debugName: "selectedItems" }] : /* istanbul ignore next */ []);
|
|
660
|
+
constructor() {
|
|
661
|
+
super();
|
|
662
|
+
this.destroyRef.onDestroy(() => this.removeOutsideListener());
|
|
663
|
+
}
|
|
664
|
+
rovingOptions = computed(() => {
|
|
665
|
+
return [...this.options(), ...this.createOptions()].filter((option) => option.rovingVisible() && !option.disabled()).sort((left, right) => left.nativeElement().compareDocumentPosition(right.nativeElement()) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
666
|
+
}, ...ngDevMode ? [{ debugName: "rovingOptions" }] : /* istanbul ignore next */ []);
|
|
667
|
+
optionTabIndex(option) {
|
|
668
|
+
const roving = this.rovingOptions();
|
|
669
|
+
if (roving.length === 0) return -1;
|
|
670
|
+
const active = this.activeOption();
|
|
671
|
+
return (active && roving.includes(active) ? active : roving[0]) === option ? 0 : -1;
|
|
672
|
+
}
|
|
673
|
+
activateOption(option) {
|
|
674
|
+
this.activeOption.set(option);
|
|
675
|
+
}
|
|
676
|
+
handleOptionKeydown(option, event) {
|
|
677
|
+
if (event.key === "Escape") {
|
|
678
|
+
event.preventDefault();
|
|
679
|
+
this.close();
|
|
680
|
+
this.focus();
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
const roving = this.rovingOptions();
|
|
684
|
+
if (roving.length === 0) return;
|
|
685
|
+
const current = roving.indexOf(option);
|
|
686
|
+
const next = this.rovingTarget(event.key, current, roving.length);
|
|
687
|
+
if (next === null) return;
|
|
688
|
+
event.preventDefault();
|
|
689
|
+
const target = roving[next];
|
|
690
|
+
if (!target) return;
|
|
691
|
+
this.activateOption(target);
|
|
692
|
+
target.focus();
|
|
693
|
+
}
|
|
694
|
+
rovingTarget(key, current, length) {
|
|
695
|
+
switch (key) {
|
|
696
|
+
case "ArrowDown": return current < 0 ? 0 : (current + 1) % length;
|
|
697
|
+
case "ArrowUp": return current < 0 ? length - 1 : (current - 1 + length) % length;
|
|
698
|
+
case "Home": return 0;
|
|
699
|
+
case "End": return length - 1;
|
|
700
|
+
default: return null;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
optionVisible(option) {
|
|
704
|
+
if (!this.filter() || !option.filterable()) return true;
|
|
705
|
+
const query = this.query().trim().toLowerCase();
|
|
706
|
+
if (!query) return true;
|
|
707
|
+
return option.textLabel().toLowerCase().includes(query);
|
|
708
|
+
}
|
|
709
|
+
optionSelected(option) {
|
|
710
|
+
return this.hasValue(option.value());
|
|
711
|
+
}
|
|
712
|
+
chooseOption(option, event) {
|
|
713
|
+
event.preventDefault();
|
|
714
|
+
event.stopPropagation();
|
|
715
|
+
if (this.disabledState() || option.disabled()) return;
|
|
716
|
+
if (this.multiple()) {
|
|
717
|
+
const value = option.value();
|
|
718
|
+
this.selectedValues.update((values) => values.some((entry) => this.sameValue(entry, value)) ? values.filter((entry) => !this.sameValue(entry, value)) : [...values, value]);
|
|
719
|
+
} else {
|
|
720
|
+
this.selectedValues.set([option.value()]);
|
|
721
|
+
this.close();
|
|
722
|
+
}
|
|
723
|
+
option.selectedChange.emit(option.value());
|
|
724
|
+
this.query.set("");
|
|
725
|
+
this.emitValue();
|
|
726
|
+
}
|
|
727
|
+
createVisible(option) {
|
|
728
|
+
const query = this.query().trim();
|
|
729
|
+
if (option.disabled() || query.length < option.minLength()) return false;
|
|
730
|
+
return !this.options().some((entry) => entry.textLabel().trim().toLowerCase() === query.toLowerCase());
|
|
731
|
+
}
|
|
732
|
+
chooseCreate(option, event) {
|
|
733
|
+
event.preventDefault();
|
|
734
|
+
event.stopPropagation();
|
|
735
|
+
const query = this.query().trim();
|
|
736
|
+
if (this.disabledState() || option.disabled() || !this.createVisible(option)) return;
|
|
737
|
+
option.selected.emit(query);
|
|
738
|
+
this.create.emit(query);
|
|
739
|
+
}
|
|
740
|
+
emptyVisible() {
|
|
741
|
+
return this.options().length > 0 && !this.hasVisibleOptions() && !this.hasVisibleCreateOption();
|
|
742
|
+
}
|
|
743
|
+
emptyMessage() {
|
|
744
|
+
const customEmptyOption = this.emptyOptions()[0];
|
|
745
|
+
if (this.loading()) return customEmptyOption?.whenLoading() || this.loadingText();
|
|
746
|
+
return customEmptyOption ? "" : this.emptyText();
|
|
747
|
+
}
|
|
748
|
+
handleTriggerClick() {
|
|
749
|
+
this.open();
|
|
750
|
+
}
|
|
751
|
+
handleTriggerKeydown(event) {
|
|
752
|
+
if (this.disabledState()) return;
|
|
753
|
+
event.preventDefault();
|
|
754
|
+
this.open();
|
|
755
|
+
}
|
|
756
|
+
handleSearchInput(event) {
|
|
757
|
+
const inputElement = event.target;
|
|
758
|
+
this.query.set(inputElement.value);
|
|
759
|
+
this.searchChange.emit(inputElement.value);
|
|
760
|
+
this.open();
|
|
761
|
+
}
|
|
762
|
+
handleInlineBackspace(event) {
|
|
763
|
+
if (event.target.value.length > 0 || this.selectedValues().length === 0) return;
|
|
764
|
+
event.preventDefault();
|
|
765
|
+
this.selectedValues.update((values) => values.slice(0, -1));
|
|
766
|
+
this.emitValue();
|
|
767
|
+
}
|
|
768
|
+
clearSearch(event) {
|
|
769
|
+
event.preventDefault();
|
|
770
|
+
event.stopPropagation();
|
|
771
|
+
this.query.set("");
|
|
772
|
+
this.searchChange.emit("");
|
|
773
|
+
this.focusSearchInput();
|
|
774
|
+
}
|
|
775
|
+
clear(event) {
|
|
776
|
+
event.preventDefault();
|
|
777
|
+
event.stopPropagation();
|
|
778
|
+
this.selectedValues.set([]);
|
|
779
|
+
this.emitValue();
|
|
780
|
+
}
|
|
781
|
+
removeSelected(value, event) {
|
|
782
|
+
event.preventDefault();
|
|
783
|
+
event.stopPropagation();
|
|
784
|
+
this.selectedValues.update((values) => values.filter((entry) => !this.sameValue(entry, value)));
|
|
785
|
+
this.emitValue();
|
|
786
|
+
}
|
|
787
|
+
open() {
|
|
788
|
+
if (this.disabledState() || this.openState()) return;
|
|
789
|
+
this.openState.set(true);
|
|
790
|
+
this.openedChange.emit(true);
|
|
791
|
+
queueMicrotask(() => {
|
|
792
|
+
this.focusSearchInput();
|
|
793
|
+
this.bindOutsideListener();
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
close() {
|
|
797
|
+
if (!this.openState()) return;
|
|
798
|
+
this.openState.set(false);
|
|
799
|
+
this.openedChange.emit(false);
|
|
800
|
+
this.removeOutsideListener();
|
|
801
|
+
this.activeOption.set(null);
|
|
802
|
+
this.onTouched();
|
|
803
|
+
}
|
|
804
|
+
focus() {
|
|
805
|
+
const inlineSearch = this.inlineSearch()?.nativeElement;
|
|
806
|
+
if (inlineSearch) {
|
|
807
|
+
inlineSearch.focus();
|
|
808
|
+
return;
|
|
809
|
+
}
|
|
810
|
+
this.trigger().nativeElement.focus();
|
|
811
|
+
}
|
|
812
|
+
writeValue(value) {
|
|
813
|
+
if (this.multiple()) {
|
|
814
|
+
this.selectedValues.set(Array.isArray(value) ? value : []);
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
this.selectedValues.set(value === null || value === void 0 ? [] : [value]);
|
|
818
|
+
}
|
|
819
|
+
registerOnChange(fn) {
|
|
820
|
+
this.onChange = fn;
|
|
821
|
+
}
|
|
822
|
+
registerOnTouched(fn) {
|
|
823
|
+
this.onTouched = fn;
|
|
824
|
+
}
|
|
825
|
+
setDisabledState(disabled) {
|
|
826
|
+
this.disabledFromControl.set(disabled);
|
|
827
|
+
}
|
|
828
|
+
emitValue() {
|
|
829
|
+
const nextValue = this.multiple() ? [...this.selectedValues()] : this.selectedValues()[0] ?? null;
|
|
830
|
+
this.onChange(nextValue);
|
|
831
|
+
this.valueChange.emit(nextValue);
|
|
832
|
+
}
|
|
833
|
+
hasValue(value) {
|
|
834
|
+
return this.selectedValues().some((entry) => this.sameValue(entry, value));
|
|
835
|
+
}
|
|
836
|
+
findOption(value) {
|
|
837
|
+
return this.options().find((option) => this.sameValue(option.value(), value));
|
|
838
|
+
}
|
|
839
|
+
hasVisibleOptions() {
|
|
840
|
+
return this.options().some((option) => this.optionVisible(option));
|
|
841
|
+
}
|
|
842
|
+
hasVisibleCreateOption() {
|
|
843
|
+
return this.createOptions().some((option) => this.createVisible(option));
|
|
844
|
+
}
|
|
845
|
+
sameValue(left, right) {
|
|
846
|
+
return this.compareWith()(left, right);
|
|
847
|
+
}
|
|
848
|
+
focusSearchInput() {
|
|
849
|
+
(this.variant() === "combobox" ? this.inlineSearch()?.nativeElement : this.panelSearch()?.nativeElement)?.focus();
|
|
850
|
+
}
|
|
851
|
+
bindOutsideListener() {
|
|
852
|
+
this.removeOutsideListener();
|
|
853
|
+
const listener = (event) => {
|
|
854
|
+
if (!this.element.nativeElement.contains(event.target)) this.close();
|
|
855
|
+
};
|
|
856
|
+
this.document.addEventListener("pointerdown", listener, true);
|
|
857
|
+
this.removeDocumentListener = () => this.document.removeEventListener("pointerdown", listener, true);
|
|
858
|
+
}
|
|
859
|
+
removeOutsideListener() {
|
|
860
|
+
this.removeDocumentListener?.();
|
|
861
|
+
this.removeDocumentListener = null;
|
|
862
|
+
}
|
|
863
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
864
|
+
minVersion: "12.0.0",
|
|
865
|
+
version: "22.2.2",
|
|
866
|
+
ngImport: i0,
|
|
867
|
+
type: PillboxComponent,
|
|
868
|
+
deps: [],
|
|
869
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
870
|
+
});
|
|
871
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
872
|
+
minVersion: "17.0.0",
|
|
873
|
+
version: "22.2.2",
|
|
874
|
+
type: PillboxComponent,
|
|
875
|
+
isStandalone: true,
|
|
876
|
+
selector: "Pillbox",
|
|
877
|
+
inputs: {
|
|
878
|
+
id: {
|
|
879
|
+
classPropertyName: "id",
|
|
880
|
+
publicName: "id",
|
|
881
|
+
isSignal: true,
|
|
882
|
+
isRequired: false,
|
|
883
|
+
transformFunction: null
|
|
884
|
+
},
|
|
885
|
+
placeholder: {
|
|
886
|
+
classPropertyName: "placeholder",
|
|
887
|
+
publicName: "placeholder",
|
|
888
|
+
isSignal: true,
|
|
889
|
+
isRequired: false,
|
|
890
|
+
transformFunction: null
|
|
891
|
+
},
|
|
892
|
+
searchPlaceholder: {
|
|
893
|
+
classPropertyName: "searchPlaceholder",
|
|
894
|
+
publicName: "searchPlaceholder",
|
|
895
|
+
isSignal: true,
|
|
896
|
+
isRequired: false,
|
|
897
|
+
transformFunction: null
|
|
898
|
+
},
|
|
899
|
+
size: {
|
|
900
|
+
classPropertyName: "size",
|
|
901
|
+
publicName: "size",
|
|
902
|
+
isSignal: true,
|
|
903
|
+
isRequired: false,
|
|
904
|
+
transformFunction: null
|
|
905
|
+
},
|
|
906
|
+
variant: {
|
|
907
|
+
classPropertyName: "variant",
|
|
908
|
+
publicName: "variant",
|
|
909
|
+
isSignal: true,
|
|
910
|
+
isRequired: false,
|
|
911
|
+
transformFunction: null
|
|
912
|
+
},
|
|
913
|
+
multiple: {
|
|
914
|
+
classPropertyName: "multiple",
|
|
915
|
+
publicName: "multiple",
|
|
916
|
+
isSignal: true,
|
|
917
|
+
isRequired: false,
|
|
918
|
+
transformFunction: null
|
|
919
|
+
},
|
|
920
|
+
searchable: {
|
|
921
|
+
classPropertyName: "searchable",
|
|
922
|
+
publicName: "searchable",
|
|
923
|
+
isSignal: true,
|
|
924
|
+
isRequired: false,
|
|
925
|
+
transformFunction: null
|
|
926
|
+
},
|
|
927
|
+
filter: {
|
|
928
|
+
classPropertyName: "filter",
|
|
929
|
+
publicName: "filter",
|
|
930
|
+
isSignal: true,
|
|
931
|
+
isRequired: false,
|
|
932
|
+
transformFunction: null
|
|
933
|
+
},
|
|
934
|
+
clearable: {
|
|
935
|
+
classPropertyName: "clearable",
|
|
936
|
+
publicName: "clearable",
|
|
937
|
+
isSignal: true,
|
|
938
|
+
isRequired: false,
|
|
939
|
+
transformFunction: null
|
|
940
|
+
},
|
|
941
|
+
disabled: {
|
|
942
|
+
classPropertyName: "disabled",
|
|
943
|
+
publicName: "disabled",
|
|
944
|
+
isSignal: true,
|
|
945
|
+
isRequired: false,
|
|
946
|
+
transformFunction: null
|
|
947
|
+
},
|
|
948
|
+
invalid: {
|
|
949
|
+
classPropertyName: "invalid",
|
|
950
|
+
publicName: "invalid",
|
|
951
|
+
isSignal: true,
|
|
952
|
+
isRequired: false,
|
|
953
|
+
transformFunction: null
|
|
954
|
+
},
|
|
955
|
+
loading: {
|
|
956
|
+
classPropertyName: "loading",
|
|
957
|
+
publicName: "loading",
|
|
958
|
+
isSignal: true,
|
|
959
|
+
isRequired: false,
|
|
960
|
+
transformFunction: null
|
|
961
|
+
},
|
|
962
|
+
compareWith: {
|
|
963
|
+
classPropertyName: "compareWith",
|
|
964
|
+
publicName: "compareWith",
|
|
965
|
+
isSignal: true,
|
|
966
|
+
isRequired: false,
|
|
967
|
+
transformFunction: null
|
|
968
|
+
},
|
|
969
|
+
emptyText: {
|
|
970
|
+
classPropertyName: "emptyText",
|
|
971
|
+
publicName: "emptyText",
|
|
972
|
+
isSignal: true,
|
|
973
|
+
isRequired: false,
|
|
974
|
+
transformFunction: null
|
|
975
|
+
},
|
|
976
|
+
loadingText: {
|
|
977
|
+
classPropertyName: "loadingText",
|
|
978
|
+
publicName: "loadingText",
|
|
979
|
+
isSignal: true,
|
|
980
|
+
isRequired: false,
|
|
981
|
+
transformFunction: null
|
|
982
|
+
},
|
|
983
|
+
ariaLabel: {
|
|
984
|
+
classPropertyName: "ariaLabel",
|
|
985
|
+
publicName: "aria-label",
|
|
986
|
+
isSignal: true,
|
|
987
|
+
isRequired: false,
|
|
988
|
+
transformFunction: null
|
|
989
|
+
},
|
|
990
|
+
ariaDescribedby: {
|
|
991
|
+
classPropertyName: "ariaDescribedby",
|
|
992
|
+
publicName: "aria-describedby",
|
|
993
|
+
isSignal: true,
|
|
994
|
+
isRequired: false,
|
|
995
|
+
transformFunction: null
|
|
996
|
+
},
|
|
997
|
+
ariaLabelledby: {
|
|
998
|
+
classPropertyName: "ariaLabelledby",
|
|
999
|
+
publicName: "aria-labelledby",
|
|
1000
|
+
isSignal: true,
|
|
1001
|
+
isRequired: false,
|
|
1002
|
+
transformFunction: null
|
|
1003
|
+
},
|
|
1004
|
+
class: {
|
|
1005
|
+
classPropertyName: "class",
|
|
1006
|
+
publicName: "class",
|
|
1007
|
+
isSignal: true,
|
|
1008
|
+
isRequired: false,
|
|
1009
|
+
transformFunction: null
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
outputs: {
|
|
1013
|
+
valueChange: "valueChange",
|
|
1014
|
+
searchChange: "searchChange",
|
|
1015
|
+
create: "create",
|
|
1016
|
+
openedChange: "openedChange"
|
|
1017
|
+
},
|
|
1018
|
+
host: { properties: {
|
|
1019
|
+
"class": "classes()",
|
|
1020
|
+
"attr.data-slot": "\"pillbox\"",
|
|
1021
|
+
"attr.data-open": "openState() ? \"\" : null",
|
|
1022
|
+
"attr.data-size": "size()",
|
|
1023
|
+
"attr.data-variant": "variant()"
|
|
1024
|
+
} },
|
|
1025
|
+
providers: [{
|
|
1026
|
+
provide: PillboxContext,
|
|
1027
|
+
useExisting: forwardRef(() => PillboxComponent)
|
|
1028
|
+
}, {
|
|
1029
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1030
|
+
useExisting: forwardRef(() => PillboxComponent),
|
|
1031
|
+
multi: true
|
|
1032
|
+
}],
|
|
1033
|
+
queries: [
|
|
1034
|
+
{
|
|
1035
|
+
propertyName: "options",
|
|
1036
|
+
predicate: PillboxOptionComponent,
|
|
1037
|
+
descendants: true,
|
|
1038
|
+
isSignal: true
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
propertyName: "createOptions",
|
|
1042
|
+
predicate: PillboxOptionCreateComponent,
|
|
1043
|
+
descendants: true,
|
|
1044
|
+
isSignal: true
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
propertyName: "emptyOptions",
|
|
1048
|
+
predicate: PillboxOptionEmptyComponent,
|
|
1049
|
+
descendants: true,
|
|
1050
|
+
isSignal: true
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
viewQueries: [
|
|
1054
|
+
{
|
|
1055
|
+
propertyName: "trigger",
|
|
1056
|
+
first: true,
|
|
1057
|
+
predicate: ["trigger"],
|
|
1058
|
+
descendants: true,
|
|
1059
|
+
isSignal: true
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
propertyName: "inlineSearch",
|
|
1063
|
+
first: true,
|
|
1064
|
+
predicate: ["inlineSearch"],
|
|
1065
|
+
descendants: true,
|
|
1066
|
+
isSignal: true
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
propertyName: "panelSearch",
|
|
1070
|
+
first: true,
|
|
1071
|
+
predicate: ["panelSearch"],
|
|
1072
|
+
descendants: true,
|
|
1073
|
+
isSignal: true
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
usesInheritance: true,
|
|
1077
|
+
ngImport: i0,
|
|
1078
|
+
template: `
|
|
620
1079
|
<div
|
|
621
1080
|
#trigger
|
|
622
1081
|
[attr.id]="resolvedId()"
|
|
@@ -793,25 +1252,46 @@ class PillboxComponent extends PillboxContext {
|
|
|
793
1252
|
<ng-content />
|
|
794
1253
|
</div>
|
|
795
1254
|
</div>
|
|
796
|
-
`,
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1255
|
+
`,
|
|
1256
|
+
isInline: true,
|
|
1257
|
+
dependencies: [{
|
|
1258
|
+
kind: "directive",
|
|
1259
|
+
type: NgTemplateOutlet,
|
|
1260
|
+
selector: "[ngTemplateOutlet]",
|
|
1261
|
+
inputs: [
|
|
1262
|
+
"ngTemplateOutletContext",
|
|
1263
|
+
"ngTemplateOutlet",
|
|
1264
|
+
"ngTemplateOutletInjector"
|
|
1265
|
+
]
|
|
1266
|
+
}]
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1270
|
+
minVersion: "12.0.0",
|
|
1271
|
+
version: "22.2.2",
|
|
1272
|
+
ngImport: i0,
|
|
1273
|
+
type: PillboxComponent,
|
|
1274
|
+
decorators: [{
|
|
1275
|
+
type: Component,
|
|
1276
|
+
args: [{
|
|
1277
|
+
selector: "Pillbox",
|
|
1278
|
+
imports: [NgTemplateOutlet],
|
|
1279
|
+
providers: [{
|
|
1280
|
+
provide: PillboxContext,
|
|
1281
|
+
useExisting: forwardRef(() => PillboxComponent)
|
|
1282
|
+
}, {
|
|
1283
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1284
|
+
useExisting: forwardRef(() => PillboxComponent),
|
|
1285
|
+
multi: true
|
|
1286
|
+
}],
|
|
1287
|
+
host: {
|
|
1288
|
+
"[class]": "classes()",
|
|
1289
|
+
"[attr.data-slot]": "\"pillbox\"",
|
|
1290
|
+
"[attr.data-open]": "openState() ? \"\" : null",
|
|
1291
|
+
"[attr.data-size]": "size()",
|
|
1292
|
+
"[attr.data-variant]": "variant()"
|
|
1293
|
+
},
|
|
1294
|
+
template: `
|
|
815
1295
|
<div
|
|
816
1296
|
#trigger
|
|
817
1297
|
[attr.id]="resolvedId()"
|
|
@@ -988,16 +1468,212 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
988
1468
|
<ng-content />
|
|
989
1469
|
</div>
|
|
990
1470
|
</div>
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1471
|
+
`
|
|
1472
|
+
}]
|
|
1473
|
+
}],
|
|
1474
|
+
ctorParameters: () => [],
|
|
1475
|
+
propDecorators: {
|
|
1476
|
+
id: [{
|
|
1477
|
+
type: i0.Input,
|
|
1478
|
+
args: [{
|
|
1479
|
+
isSignal: true,
|
|
1480
|
+
alias: "id",
|
|
1481
|
+
required: false
|
|
1482
|
+
}]
|
|
1483
|
+
}],
|
|
1484
|
+
placeholder: [{
|
|
1485
|
+
type: i0.Input,
|
|
1486
|
+
args: [{
|
|
1487
|
+
isSignal: true,
|
|
1488
|
+
alias: "placeholder",
|
|
1489
|
+
required: false
|
|
1490
|
+
}]
|
|
1491
|
+
}],
|
|
1492
|
+
searchPlaceholder: [{
|
|
1493
|
+
type: i0.Input,
|
|
1494
|
+
args: [{
|
|
1495
|
+
isSignal: true,
|
|
1496
|
+
alias: "searchPlaceholder",
|
|
1497
|
+
required: false
|
|
1498
|
+
}]
|
|
1499
|
+
}],
|
|
1500
|
+
size: [{
|
|
1501
|
+
type: i0.Input,
|
|
1502
|
+
args: [{
|
|
1503
|
+
isSignal: true,
|
|
1504
|
+
alias: "size",
|
|
1505
|
+
required: false
|
|
1506
|
+
}]
|
|
1507
|
+
}],
|
|
1508
|
+
variant: [{
|
|
1509
|
+
type: i0.Input,
|
|
1510
|
+
args: [{
|
|
1511
|
+
isSignal: true,
|
|
1512
|
+
alias: "variant",
|
|
1513
|
+
required: false
|
|
1514
|
+
}]
|
|
1515
|
+
}],
|
|
1516
|
+
multiple: [{
|
|
1517
|
+
type: i0.Input,
|
|
1518
|
+
args: [{
|
|
1519
|
+
isSignal: true,
|
|
1520
|
+
alias: "multiple",
|
|
1521
|
+
required: false
|
|
1522
|
+
}]
|
|
1523
|
+
}],
|
|
1524
|
+
searchable: [{
|
|
1525
|
+
type: i0.Input,
|
|
1526
|
+
args: [{
|
|
1527
|
+
isSignal: true,
|
|
1528
|
+
alias: "searchable",
|
|
1529
|
+
required: false
|
|
1530
|
+
}]
|
|
1531
|
+
}],
|
|
1532
|
+
filter: [{
|
|
1533
|
+
type: i0.Input,
|
|
1534
|
+
args: [{
|
|
1535
|
+
isSignal: true,
|
|
1536
|
+
alias: "filter",
|
|
1537
|
+
required: false
|
|
1538
|
+
}]
|
|
1539
|
+
}],
|
|
1540
|
+
clearable: [{
|
|
1541
|
+
type: i0.Input,
|
|
1542
|
+
args: [{
|
|
1543
|
+
isSignal: true,
|
|
1544
|
+
alias: "clearable",
|
|
1545
|
+
required: false
|
|
1546
|
+
}]
|
|
1547
|
+
}],
|
|
1548
|
+
disabled: [{
|
|
1549
|
+
type: i0.Input,
|
|
1550
|
+
args: [{
|
|
1551
|
+
isSignal: true,
|
|
1552
|
+
alias: "disabled",
|
|
1553
|
+
required: false
|
|
1554
|
+
}]
|
|
1555
|
+
}],
|
|
1556
|
+
invalid: [{
|
|
1557
|
+
type: i0.Input,
|
|
1558
|
+
args: [{
|
|
1559
|
+
isSignal: true,
|
|
1560
|
+
alias: "invalid",
|
|
1561
|
+
required: false
|
|
1562
|
+
}]
|
|
1563
|
+
}],
|
|
1564
|
+
loading: [{
|
|
1565
|
+
type: i0.Input,
|
|
1566
|
+
args: [{
|
|
1567
|
+
isSignal: true,
|
|
1568
|
+
alias: "loading",
|
|
1569
|
+
required: false
|
|
1570
|
+
}]
|
|
1571
|
+
}],
|
|
1572
|
+
compareWith: [{
|
|
1573
|
+
type: i0.Input,
|
|
1574
|
+
args: [{
|
|
1575
|
+
isSignal: true,
|
|
1576
|
+
alias: "compareWith",
|
|
1577
|
+
required: false
|
|
1578
|
+
}]
|
|
1579
|
+
}],
|
|
1580
|
+
emptyText: [{
|
|
1581
|
+
type: i0.Input,
|
|
1582
|
+
args: [{
|
|
1583
|
+
isSignal: true,
|
|
1584
|
+
alias: "emptyText",
|
|
1585
|
+
required: false
|
|
1586
|
+
}]
|
|
1587
|
+
}],
|
|
1588
|
+
loadingText: [{
|
|
1589
|
+
type: i0.Input,
|
|
1590
|
+
args: [{
|
|
1591
|
+
isSignal: true,
|
|
1592
|
+
alias: "loadingText",
|
|
1593
|
+
required: false
|
|
1594
|
+
}]
|
|
1595
|
+
}],
|
|
1596
|
+
ariaLabel: [{
|
|
1597
|
+
type: i0.Input,
|
|
1598
|
+
args: [{
|
|
1599
|
+
isSignal: true,
|
|
1600
|
+
alias: "aria-label",
|
|
1601
|
+
required: false
|
|
1602
|
+
}]
|
|
1603
|
+
}],
|
|
1604
|
+
ariaDescribedby: [{
|
|
1605
|
+
type: i0.Input,
|
|
1606
|
+
args: [{
|
|
1607
|
+
isSignal: true,
|
|
1608
|
+
alias: "aria-describedby",
|
|
1609
|
+
required: false
|
|
1610
|
+
}]
|
|
1611
|
+
}],
|
|
1612
|
+
ariaLabelledby: [{
|
|
1613
|
+
type: i0.Input,
|
|
1614
|
+
args: [{
|
|
1615
|
+
isSignal: true,
|
|
1616
|
+
alias: "aria-labelledby",
|
|
1617
|
+
required: false
|
|
1618
|
+
}]
|
|
1619
|
+
}],
|
|
1620
|
+
class: [{
|
|
1621
|
+
type: i0.Input,
|
|
1622
|
+
args: [{
|
|
1623
|
+
isSignal: true,
|
|
1624
|
+
alias: "class",
|
|
1625
|
+
required: false
|
|
1626
|
+
}]
|
|
1627
|
+
}],
|
|
1628
|
+
valueChange: [{
|
|
1629
|
+
type: i0.Output,
|
|
1630
|
+
args: ["valueChange"]
|
|
1631
|
+
}],
|
|
1632
|
+
searchChange: [{
|
|
1633
|
+
type: i0.Output,
|
|
1634
|
+
args: ["searchChange"]
|
|
1635
|
+
}],
|
|
1636
|
+
create: [{
|
|
1637
|
+
type: i0.Output,
|
|
1638
|
+
args: ["create"]
|
|
1639
|
+
}],
|
|
1640
|
+
openedChange: [{
|
|
1641
|
+
type: i0.Output,
|
|
1642
|
+
args: ["openedChange"]
|
|
1643
|
+
}],
|
|
1644
|
+
trigger: [{
|
|
1645
|
+
type: i0.ViewChild,
|
|
1646
|
+
args: ["trigger", { isSignal: true }]
|
|
1647
|
+
}],
|
|
1648
|
+
inlineSearch: [{
|
|
1649
|
+
type: i0.ViewChild,
|
|
1650
|
+
args: ["inlineSearch", { isSignal: true }]
|
|
1651
|
+
}],
|
|
1652
|
+
panelSearch: [{
|
|
1653
|
+
type: i0.ViewChild,
|
|
1654
|
+
args: ["panelSearch", { isSignal: true }]
|
|
1655
|
+
}],
|
|
1656
|
+
options: [{
|
|
1657
|
+
type: i0.ContentChildren,
|
|
1658
|
+
args: [i0.forwardRef(() => PillboxOptionComponent), {
|
|
1659
|
+
descendants: true,
|
|
1660
|
+
isSignal: true
|
|
1661
|
+
}]
|
|
1662
|
+
}],
|
|
1663
|
+
createOptions: [{
|
|
1664
|
+
type: i0.ContentChildren,
|
|
1665
|
+
args: [i0.forwardRef(() => PillboxOptionCreateComponent), {
|
|
1666
|
+
descendants: true,
|
|
1667
|
+
isSignal: true
|
|
1668
|
+
}]
|
|
1669
|
+
}],
|
|
1670
|
+
emptyOptions: [{
|
|
1671
|
+
type: i0.ContentChildren,
|
|
1672
|
+
args: [i0.forwardRef(() => PillboxOptionEmptyComponent), {
|
|
1673
|
+
descendants: true,
|
|
1674
|
+
isSignal: true
|
|
1675
|
+
}]
|
|
1676
|
+
}]
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
export { PillboxComponent, PillboxOptionComponent, PillboxOptionCreateComponent, PillboxOptionEmptyComponent, PillboxSelectedDirective };
|