@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,297 +1,281 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { ComponentScaleDirective } from
|
|
5
|
-
import * as i2 from
|
|
6
|
-
import { OverlayModule } from
|
|
7
|
-
import { MAT_OPTION_PARENT_COMPONENT, MatOption, MatPseudoCheckbox, MatRipple } from
|
|
8
|
-
import { MatSelect } from
|
|
9
|
-
import { takeUntil } from
|
|
10
|
-
import { FormFieldContext } from
|
|
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
|
-
this._keyManager.skipPredicate(predicate);
|
|
62
|
-
}
|
|
63
|
-
materialSetActiveItem(option) {
|
|
64
|
-
this._keyManager.setActiveItem(option);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/** Material does not currently expose an option host accessor publicly. */
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, ViewEncapsulation, booleanAttribute, effect, forwardRef, inject, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import * as i1 from "@ojiepermana/angular/component/utils/scale";
|
|
4
|
+
import { ComponentScaleDirective } from "@ojiepermana/angular/component/utils/scale";
|
|
5
|
+
import * as i2 from "@angular/cdk/overlay";
|
|
6
|
+
import { OverlayModule } from "@angular/cdk/overlay";
|
|
7
|
+
import { MAT_OPTION_PARENT_COMPONENT, MatOption, MatPseudoCheckbox, MatRipple } from "@angular/material/core";
|
|
8
|
+
import { MatSelect } from "@angular/material/select";
|
|
9
|
+
import { takeUntil } from "rxjs";
|
|
10
|
+
import { FormFieldContext } from "@ojiepermana/angular/component/form";
|
|
11
|
+
var SelectMaterialBridge = class extends MatSelect {
|
|
12
|
+
get materialValueId() {
|
|
13
|
+
return this._valueId;
|
|
14
|
+
}
|
|
15
|
+
get materialOverlayPanelClass() {
|
|
16
|
+
return this._overlayPanelClass;
|
|
17
|
+
}
|
|
18
|
+
get materialScrollStrategy() {
|
|
19
|
+
return this._scrollStrategy;
|
|
20
|
+
}
|
|
21
|
+
get materialPreferredOverlayOrigin() {
|
|
22
|
+
return this._preferredOverlayOrigin;
|
|
23
|
+
}
|
|
24
|
+
get materialPositions() {
|
|
25
|
+
return this._positions;
|
|
26
|
+
}
|
|
27
|
+
get materialOverlayWidth() {
|
|
28
|
+
return this._overlayWidth;
|
|
29
|
+
}
|
|
30
|
+
get materialPopoverLocation() {
|
|
31
|
+
return this._popoverLocation;
|
|
32
|
+
}
|
|
33
|
+
get materialAnimationsDisabled() {
|
|
34
|
+
return this._animationsDisabled;
|
|
35
|
+
}
|
|
36
|
+
get materialParentFormFieldColor() {
|
|
37
|
+
return this._parentFormField?.color;
|
|
38
|
+
}
|
|
39
|
+
get materialDestroyed() {
|
|
40
|
+
return this._destroy;
|
|
41
|
+
}
|
|
42
|
+
configureMaterialPositions(positions) {
|
|
43
|
+
this._positions = positions;
|
|
44
|
+
}
|
|
45
|
+
materialHandleOverlayKeydown(event) {
|
|
46
|
+
this._handleOverlayKeydown(event);
|
|
47
|
+
}
|
|
48
|
+
materialPanelAriaLabelledby() {
|
|
49
|
+
return this._getPanelAriaLabelledby();
|
|
50
|
+
}
|
|
51
|
+
materialHandleKeydown(event) {
|
|
52
|
+
this._handleKeydown(event);
|
|
53
|
+
}
|
|
54
|
+
materialConfigureSkipPredicate(predicate) {
|
|
55
|
+
this._keyManager.skipPredicate(predicate);
|
|
56
|
+
}
|
|
57
|
+
materialSetActiveItem(option) {
|
|
58
|
+
this._keyManager.setActiveItem(option);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
68
61
|
function materialOptionHost(option) {
|
|
69
|
-
|
|
62
|
+
return option._getHostElement();
|
|
70
63
|
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Keep the panel on top of the trigger, then let it grow toward the side of
|
|
74
|
-
* the viewport that has room. Logical `start`/`end` values preserve RTL.
|
|
75
|
-
*/
|
|
76
64
|
const ITEM_ALIGNED_POSITIONS = [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
65
|
+
{
|
|
66
|
+
originX: "start",
|
|
67
|
+
originY: "top",
|
|
68
|
+
overlayX: "start",
|
|
69
|
+
overlayY: "top"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
originX: "end",
|
|
73
|
+
originY: "top",
|
|
74
|
+
overlayX: "end",
|
|
75
|
+
overlayY: "top"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
originX: "start",
|
|
79
|
+
originY: "bottom",
|
|
80
|
+
overlayX: "start",
|
|
81
|
+
overlayY: "bottom",
|
|
82
|
+
panelClass: "mat-mdc-select-panel-above"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
originX: "end",
|
|
86
|
+
originY: "bottom",
|
|
87
|
+
overlayX: "end",
|
|
88
|
+
overlayY: "bottom",
|
|
89
|
+
panelClass: "mat-mdc-select-panel-above"
|
|
90
|
+
}
|
|
103
91
|
];
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: SelectComponent, isStandalone: true, selector: "SelectField", inputs: { search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, searchEmptyText: { classPropertyName: "searchEmptyText", publicName: "searchEmptyText", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "combobox", "aria-haspopup": "listbox" }, properties: { "attr.aria-describedby": "resolvedDescribedBy()" }, classAttribute: "mat-mdc-select" }, providers: [
|
|
292
|
-
{ provide: MatSelect, useExisting: forwardRef(() => SelectComponent) },
|
|
293
|
-
{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: forwardRef(() => SelectComponent) },
|
|
294
|
-
], viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], exportAs: ["matSelect"], usesInheritance: true, hostDirectives: [{ directive: i1.ComponentScaleDirective, inputs: ["radius", "radius", "density", "density"] }], ngImport: i0, template: `
|
|
92
|
+
var SelectComponent = class SelectComponent extends SelectMaterialBridge {
|
|
93
|
+
componentScale = inject(ComponentScaleDirective);
|
|
94
|
+
radius = this.componentScale.radius;
|
|
95
|
+
density = this.componentScale.density;
|
|
96
|
+
formFieldContext = inject(FormFieldContext, { optional: true });
|
|
97
|
+
search = input(false, {
|
|
98
|
+
...ngDevMode ? { debugName: "search" } : /* istanbul ignore next */ {},
|
|
99
|
+
transform: booleanAttribute
|
|
100
|
+
});
|
|
101
|
+
searchPlaceholder = input("Search options", ...ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
102
|
+
searchEmptyText = input("No options found.", ...ngDevMode ? [{ debugName: "searchEmptyText" }] : /* istanbul ignore next */ []);
|
|
103
|
+
searchQuery = signal("", ...ngDevMode ? [{ debugName: "searchQuery" }] : /* istanbul ignore next */ []);
|
|
104
|
+
visibleOptionCount = signal(0, ...ngDevMode ? [{ debugName: "visibleOptionCount" }] : /* istanbul ignore next */ []);
|
|
105
|
+
searchInput = viewChild("searchInput", ...ngDevMode ? [{ debugName: "searchInput" }] : /* istanbul ignore next */ []);
|
|
106
|
+
hiddenOptions = /* @__PURE__ */ new Set();
|
|
107
|
+
constructor() {
|
|
108
|
+
super();
|
|
109
|
+
this.configureMaterialPositions(ITEM_ALIGNED_POSITIONS);
|
|
110
|
+
effect(() => {
|
|
111
|
+
if (!this.search() && this.searchQuery()) this.resetSearch();
|
|
112
|
+
});
|
|
113
|
+
const ctx = this.formFieldContext;
|
|
114
|
+
if (ctx) this.errorStateMatcher = { isErrorState: () => ctx.invalid() };
|
|
115
|
+
}
|
|
116
|
+
resolvedDescribedBy() {
|
|
117
|
+
return this.formFieldContext?.describedBy() ?? this.userAriaDescribedBy ?? null;
|
|
118
|
+
}
|
|
119
|
+
ngOnInit() {
|
|
120
|
+
super.ngOnInit();
|
|
121
|
+
this.publishControl();
|
|
122
|
+
}
|
|
123
|
+
ngAfterViewInit() {
|
|
124
|
+
this.publishControl();
|
|
125
|
+
}
|
|
126
|
+
ngAfterContentInit() {
|
|
127
|
+
super.ngAfterContentInit();
|
|
128
|
+
this.materialConfigureSkipPredicate((option) => this.hiddenOptions.has(option) || !this.panelOpen && option.disabled);
|
|
129
|
+
this.options.changes.pipe(takeUntil(this.materialDestroyed)).subscribe(() => {
|
|
130
|
+
this.applySearch(this.searchQuery());
|
|
131
|
+
});
|
|
132
|
+
this.optionSelectionChanges.pipe(takeUntil(this.materialDestroyed)).subscribe((event) => {
|
|
133
|
+
if (event.isUserInput && this.multiple && this.search() && this.panelOpen) this.focusSearchInput();
|
|
134
|
+
});
|
|
135
|
+
this.visibleOptionCount.set(this.options.length);
|
|
136
|
+
}
|
|
137
|
+
open() {
|
|
138
|
+
const wasOpen = this.panelOpen;
|
|
139
|
+
super.open();
|
|
140
|
+
if (!wasOpen && this.panelOpen && this.search()) {
|
|
141
|
+
this.resetSearch();
|
|
142
|
+
this.focusSearchInput();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
close() {
|
|
146
|
+
const wasOpen = this.panelOpen;
|
|
147
|
+
super.close();
|
|
148
|
+
if (wasOpen) this.resetSearch();
|
|
149
|
+
}
|
|
150
|
+
onSearchInput(event) {
|
|
151
|
+
const query = event.target.value;
|
|
152
|
+
this.searchQuery.set(query);
|
|
153
|
+
this.applySearch(query);
|
|
154
|
+
}
|
|
155
|
+
onSearchKeydown(event) {
|
|
156
|
+
switch (event.key) {
|
|
157
|
+
case "ArrowDown":
|
|
158
|
+
case "ArrowUp":
|
|
159
|
+
case "PageDown":
|
|
160
|
+
case "PageUp":
|
|
161
|
+
case "Enter":
|
|
162
|
+
case "Tab":
|
|
163
|
+
this.materialHandleKeydown(event);
|
|
164
|
+
event.stopPropagation();
|
|
165
|
+
break;
|
|
166
|
+
case "Escape":
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
event.stopPropagation();
|
|
169
|
+
this.close();
|
|
170
|
+
this.focus();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
publishControl() {
|
|
174
|
+
const context = this.formFieldContext;
|
|
175
|
+
if (!context) return;
|
|
176
|
+
const control = this.ngControl?.control ?? null;
|
|
177
|
+
if (control !== context.control()) context.control.set(control);
|
|
178
|
+
}
|
|
179
|
+
resetSearch() {
|
|
180
|
+
this.searchQuery.set("");
|
|
181
|
+
this.applySearch("");
|
|
182
|
+
}
|
|
183
|
+
focusSearchInput() {
|
|
184
|
+
queueMicrotask(() => this.searchInput()?.nativeElement.focus());
|
|
185
|
+
}
|
|
186
|
+
applySearch(query) {
|
|
187
|
+
if (!this.options) return;
|
|
188
|
+
const normalizedQuery = query.trim().toLocaleLowerCase();
|
|
189
|
+
const groupVisibility = /* @__PURE__ */ new Map();
|
|
190
|
+
this.hiddenOptions.clear();
|
|
191
|
+
for (const option of this.options) {
|
|
192
|
+
const visible = !normalizedQuery || option.viewValue.toLocaleLowerCase().includes(normalizedQuery);
|
|
193
|
+
const optionElement = materialOptionHost(option);
|
|
194
|
+
optionElement.hidden = !visible;
|
|
195
|
+
if (!visible) this.hiddenOptions.add(option);
|
|
196
|
+
const groupElement = optionElement.closest("mat-optgroup");
|
|
197
|
+
if (groupElement) groupVisibility.set(groupElement, (groupVisibility.get(groupElement) ?? false) || visible);
|
|
198
|
+
}
|
|
199
|
+
for (const [groupElement, visible] of groupVisibility) groupElement.hidden = !visible;
|
|
200
|
+
const visibleOptions = this.options.filter((option) => !this.hiddenOptions.has(option));
|
|
201
|
+
this.visibleOptionCount.set(visibleOptions.length);
|
|
202
|
+
if (normalizedQuery && this.panelOpen) {
|
|
203
|
+
const activeOption = visibleOptions.find((option) => option.selected && !option.disabled) ?? visibleOptions.find((option) => !option.disabled);
|
|
204
|
+
this.materialSetActiveItem(activeOption ?? -1);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
208
|
+
minVersion: "12.0.0",
|
|
209
|
+
version: "22.2.2",
|
|
210
|
+
ngImport: i0,
|
|
211
|
+
type: SelectComponent,
|
|
212
|
+
deps: [],
|
|
213
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
214
|
+
});
|
|
215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
216
|
+
minVersion: "17.0.0",
|
|
217
|
+
version: "22.2.2",
|
|
218
|
+
type: SelectComponent,
|
|
219
|
+
isStandalone: true,
|
|
220
|
+
selector: "SelectField",
|
|
221
|
+
inputs: {
|
|
222
|
+
search: {
|
|
223
|
+
classPropertyName: "search",
|
|
224
|
+
publicName: "search",
|
|
225
|
+
isSignal: true,
|
|
226
|
+
isRequired: false,
|
|
227
|
+
transformFunction: null
|
|
228
|
+
},
|
|
229
|
+
searchPlaceholder: {
|
|
230
|
+
classPropertyName: "searchPlaceholder",
|
|
231
|
+
publicName: "searchPlaceholder",
|
|
232
|
+
isSignal: true,
|
|
233
|
+
isRequired: false,
|
|
234
|
+
transformFunction: null
|
|
235
|
+
},
|
|
236
|
+
searchEmptyText: {
|
|
237
|
+
classPropertyName: "searchEmptyText",
|
|
238
|
+
publicName: "searchEmptyText",
|
|
239
|
+
isSignal: true,
|
|
240
|
+
isRequired: false,
|
|
241
|
+
transformFunction: null
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
host: {
|
|
245
|
+
attributes: {
|
|
246
|
+
"role": "combobox",
|
|
247
|
+
"aria-haspopup": "listbox"
|
|
248
|
+
},
|
|
249
|
+
properties: { "attr.aria-describedby": "resolvedDescribedBy()" },
|
|
250
|
+
classAttribute: "mat-mdc-select"
|
|
251
|
+
},
|
|
252
|
+
providers: [{
|
|
253
|
+
provide: MatSelect,
|
|
254
|
+
useExisting: forwardRef(() => SelectComponent)
|
|
255
|
+
}, {
|
|
256
|
+
provide: MAT_OPTION_PARENT_COMPONENT,
|
|
257
|
+
useExisting: forwardRef(() => SelectComponent)
|
|
258
|
+
}],
|
|
259
|
+
viewQueries: [{
|
|
260
|
+
propertyName: "searchInput",
|
|
261
|
+
first: true,
|
|
262
|
+
predicate: ["searchInput"],
|
|
263
|
+
descendants: true,
|
|
264
|
+
isSignal: true
|
|
265
|
+
}],
|
|
266
|
+
exportAs: ["matSelect"],
|
|
267
|
+
usesInheritance: true,
|
|
268
|
+
hostDirectives: [{
|
|
269
|
+
directive: i1.ComponentScaleDirective,
|
|
270
|
+
inputs: [
|
|
271
|
+
"radius",
|
|
272
|
+
"radius",
|
|
273
|
+
"density",
|
|
274
|
+
"density"
|
|
275
|
+
]
|
|
276
|
+
}],
|
|
277
|
+
ngImport: i0,
|
|
278
|
+
template: `
|
|
295
279
|
<div
|
|
296
280
|
cdk-overlay-origin
|
|
297
281
|
class="mat-mdc-select-trigger"
|
|
@@ -390,24 +374,95 @@ class SelectComponent extends SelectMaterialBridge {
|
|
|
390
374
|
}
|
|
391
375
|
</div>
|
|
392
376
|
</ng-template>
|
|
393
|
-
`,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
377
|
+
`,
|
|
378
|
+
isInline: true,
|
|
379
|
+
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus:not(.mat-select-open){outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 1px hsl(var(--ring))}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"],
|
|
380
|
+
dependencies: [
|
|
381
|
+
{
|
|
382
|
+
kind: "ngmodule",
|
|
383
|
+
type: OverlayModule
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
kind: "directive",
|
|
387
|
+
type: i2.CdkConnectedOverlay,
|
|
388
|
+
selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
|
|
389
|
+
inputs: [
|
|
390
|
+
"cdkConnectedOverlayOrigin",
|
|
391
|
+
"cdkConnectedOverlayPositions",
|
|
392
|
+
"cdkConnectedOverlayPositionStrategy",
|
|
393
|
+
"cdkConnectedOverlayOffsetX",
|
|
394
|
+
"cdkConnectedOverlayOffsetY",
|
|
395
|
+
"cdkConnectedOverlayWidth",
|
|
396
|
+
"cdkConnectedOverlayHeight",
|
|
397
|
+
"cdkConnectedOverlayMinWidth",
|
|
398
|
+
"cdkConnectedOverlayMinHeight",
|
|
399
|
+
"cdkConnectedOverlayBackdropClass",
|
|
400
|
+
"cdkConnectedOverlayPanelClass",
|
|
401
|
+
"cdkConnectedOverlayViewportMargin",
|
|
402
|
+
"cdkConnectedOverlayScrollStrategy",
|
|
403
|
+
"cdkConnectedOverlayOpen",
|
|
404
|
+
"cdkConnectedOverlayDisableClose",
|
|
405
|
+
"cdkConnectedOverlayTransformOriginOn",
|
|
406
|
+
"cdkConnectedOverlayHasBackdrop",
|
|
407
|
+
"cdkConnectedOverlayLockPosition",
|
|
408
|
+
"cdkConnectedOverlayFlexibleDimensions",
|
|
409
|
+
"cdkConnectedOverlayGrowAfterOpen",
|
|
410
|
+
"cdkConnectedOverlayPush",
|
|
411
|
+
"cdkConnectedOverlayDisposeOnNavigation",
|
|
412
|
+
"cdkConnectedOverlayUsePopover",
|
|
413
|
+
"cdkConnectedOverlayMatchWidth",
|
|
414
|
+
"cdkConnectedOverlay"
|
|
415
|
+
],
|
|
416
|
+
outputs: [
|
|
417
|
+
"backdropClick",
|
|
418
|
+
"positionChange",
|
|
419
|
+
"attach",
|
|
420
|
+
"detach",
|
|
421
|
+
"overlayKeydown",
|
|
422
|
+
"overlayOutsideClick"
|
|
423
|
+
],
|
|
424
|
+
exportAs: ["cdkConnectedOverlay"]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
kind: "directive",
|
|
428
|
+
type: i2.CdkOverlayOrigin,
|
|
429
|
+
selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",
|
|
430
|
+
exportAs: ["cdkOverlayOrigin"]
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
437
|
+
minVersion: "12.0.0",
|
|
438
|
+
version: "22.2.2",
|
|
439
|
+
ngImport: i0,
|
|
440
|
+
type: SelectComponent,
|
|
441
|
+
decorators: [{
|
|
442
|
+
type: Component,
|
|
443
|
+
args: [{
|
|
444
|
+
selector: "SelectField",
|
|
445
|
+
hostDirectives: [{
|
|
446
|
+
directive: ComponentScaleDirective,
|
|
447
|
+
inputs: ["radius", "density"]
|
|
448
|
+
}],
|
|
449
|
+
exportAs: "matSelect",
|
|
450
|
+
encapsulation: ViewEncapsulation.None,
|
|
451
|
+
imports: [OverlayModule],
|
|
452
|
+
host: {
|
|
453
|
+
class: "mat-mdc-select",
|
|
454
|
+
role: "combobox",
|
|
455
|
+
"aria-haspopup": "listbox",
|
|
456
|
+
"[attr.aria-describedby]": "resolvedDescribedBy()"
|
|
457
|
+
},
|
|
458
|
+
providers: [{
|
|
459
|
+
provide: MatSelect,
|
|
460
|
+
useExisting: forwardRef(() => SelectComponent)
|
|
461
|
+
}, {
|
|
462
|
+
provide: MAT_OPTION_PARENT_COMPONENT,
|
|
463
|
+
useExisting: forwardRef(() => SelectComponent)
|
|
464
|
+
}],
|
|
465
|
+
template: `
|
|
411
466
|
<div
|
|
412
467
|
cdk-overlay-origin
|
|
413
468
|
class="mat-mdc-select-trigger"
|
|
@@ -506,30 +561,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
506
561
|
}
|
|
507
562
|
</div>
|
|
508
563
|
</ng-template>
|
|
509
|
-
`,
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
564
|
+
`,
|
|
565
|
+
styles: ["@keyframes _mat-select-enter{0%{opacity:0;transform:scaleY(.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{0%{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var( --mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12) )}.mat-mdc-select-disabled,.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var( --mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent) )}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media(forced-colors:active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;box-sizing:border-box;transform-origin:top center;border-radius:0 0 4px 4px;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-radius:4px 4px 0 0;transform-origin:bottom center}@media(forced-colors:active){div.mat-mdc-select-panel{outline:solid 1px}}.mat-select-panel-animations-enabled{animation:_mat-select-enter .12s cubic-bezier(0,0,.2,1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit .1s linear}.mat-mdc-select-placeholder{transition:color .4s .1333333333333s cubic-bezier(.25,.8,.25,1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-mdc-select-min-line:empty:before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n", "selectfield.mat-mdc-select{display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--control-height-md);padding:0;border:1px solid hsl(var(--input));border-radius:var(--radius-base);background:transparent;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);cursor:pointer}selectfield .mat-mdc-select-trigger{height:100%;padding:0 calc(var(--spacing-base) * 3)}selectfield.mat-mdc-select:focus:not(.mat-select-open){outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 1px hsl(var(--ring))}selectfield.mat-mdc-select-disabled{cursor:not-allowed;opacity:.5;background:hsl(var(--muted) / .4)}selectfield.mat-mdc-select-invalid{border-color:hsl(var(--destructive))}selectfield .mat-mdc-select-value{color:hsl(var(--foreground))}selectfield .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}selectfield .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}div.mat-mdc-select-panel.select-panel{--mat-select-panel-background-color: hsl(var(--popover));display:flex;flex-direction:column;background-color:hsl(var(--popover));color:hsl(var(--popover-foreground));border:1px solid hsl(var(--ring));border-radius:var(--radius-base);box-shadow:0 0 0 1px hsl(var(--ring)),var(--shadow-md, 0 8px 18px -14px hsl(var(--foreground) / .24));padding:calc(var(--spacing-base) * 1);overflow:hidden}.select-panel .select-options{min-height:0;overflow:auto;outline:none}.select-search{flex:0 0 auto;margin-block-end:calc(var(--spacing-base) * 1)}.select-search-input{box-sizing:border-box;width:100%;height:var(--control-height-md);border:1px solid hsl(var(--input));border-radius:var(--radius-base);outline:none;background:transparent;color:hsl(var(--popover-foreground));padding-inline:calc(var(--spacing-base) * 3);font:inherit}.select-search-input::placeholder{color:hsl(var(--muted-foreground))}.select-search-input:focus-visible{border-color:hsl(var(--input));box-shadow:none}.select-search-input::-webkit-search-cancel-button{cursor:pointer}.select-empty{color:hsl(var(--muted-foreground));padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);font-size:var(--text-sm);line-height:var(--text-sm--line-height);text-align:center}.select-panel .mat-mdc-option{--mat-option-label-text-color: hsl(var(--popover-foreground));--mat-option-label-text-font: var(--font-sans);--mat-option-label-text-size: var(--text-sm);--mat-option-label-text-line-height: var(--text-sm--line-height);--mat-option-label-text-weight: 400;--mat-option-hover-state-layer-color: hsl(var(--accent));--mat-option-focus-state-layer-color: hsl(var(--accent));--mat-option-selected-state-layer-color: hsl(var(--accent));--mat-option-selected-state-label-text-color: hsl(var(--accent-foreground));min-height:var(--control-height-md);border-radius:var(--radius-base)}.select-panel .mat-mdc-option+.mat-mdc-option{margin-block-start:calc(var(--spacing-base) * .5)}.select-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:hsl(var(--accent-foreground))}.select-panel .mat-mdc-optgroup-label{--mat-optgroup-label-text-color: hsl(var(--muted-foreground));--mat-optgroup-label-text-font: var(--font-sans);--mat-optgroup-label-text-size: var(--text-xs);min-height:var(--control-height-xs)}\n"]
|
|
566
|
+
}]
|
|
567
|
+
}],
|
|
568
|
+
ctorParameters: () => [],
|
|
569
|
+
propDecorators: {
|
|
570
|
+
search: [{
|
|
571
|
+
type: i0.Input,
|
|
572
|
+
args: [{
|
|
573
|
+
isSignal: true,
|
|
574
|
+
alias: "search",
|
|
575
|
+
required: false
|
|
576
|
+
}]
|
|
577
|
+
}],
|
|
578
|
+
searchPlaceholder: [{
|
|
579
|
+
type: i0.Input,
|
|
580
|
+
args: [{
|
|
581
|
+
isSignal: true,
|
|
582
|
+
alias: "searchPlaceholder",
|
|
583
|
+
required: false
|
|
584
|
+
}]
|
|
585
|
+
}],
|
|
586
|
+
searchEmptyText: [{
|
|
587
|
+
type: i0.Input,
|
|
588
|
+
args: [{
|
|
589
|
+
isSignal: true,
|
|
590
|
+
alias: "searchEmptyText",
|
|
591
|
+
required: false
|
|
592
|
+
}]
|
|
593
|
+
}],
|
|
594
|
+
searchInput: [{
|
|
595
|
+
type: i0.ViewChild,
|
|
596
|
+
args: ["searchInput", { isSignal: true }]
|
|
597
|
+
}]
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
var OptionComponent = class OptionComponent extends MatOption {
|
|
601
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
602
|
+
minVersion: "12.0.0",
|
|
603
|
+
version: "22.2.2",
|
|
604
|
+
ngImport: i0,
|
|
605
|
+
type: OptionComponent,
|
|
606
|
+
deps: null,
|
|
607
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
608
|
+
});
|
|
609
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
610
|
+
minVersion: "17.0.0",
|
|
611
|
+
version: "22.2.2",
|
|
612
|
+
type: OptionComponent,
|
|
613
|
+
isStandalone: true,
|
|
614
|
+
selector: "SelectItem",
|
|
615
|
+
providers: [{
|
|
616
|
+
provide: MatOption,
|
|
617
|
+
useExisting: forwardRef(() => OptionComponent)
|
|
618
|
+
}],
|
|
619
|
+
exportAs: ["matOption"],
|
|
620
|
+
usesInheritance: true,
|
|
621
|
+
ngImport: i0,
|
|
622
|
+
template: `
|
|
533
623
|
@if (multiple) {
|
|
534
624
|
<mat-pseudo-checkbox
|
|
535
625
|
class="mat-mdc-option-pseudo-checkbox"
|
|
@@ -564,11 +654,53 @@ class OptionComponent extends MatOption {
|
|
|
564
654
|
[matRippleTrigger]="_getHostElement()"
|
|
565
655
|
[matRippleDisabled]="disabled || disableRipple"
|
|
566
656
|
></div>
|
|
567
|
-
`,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
657
|
+
`,
|
|
658
|
+
isInline: true,
|
|
659
|
+
styles: [".mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var( --mat-option-hover-state-layer-color, color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent ) )}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var( --mat-option-focus-state-layer-color, color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent ) );outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover){background-color:var( --mat-option-selected-state-layer-color, var(--mat-sys-secondary-container) )}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var( --mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container) )}.mat-mdc-option.mdc-list-item{align-items:center;background:transparent}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{inset:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors:active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox)):after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox)):after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var( --mat-list-list-item-container-color, transparent )}.mat-mdc-option-active .mat-focus-indicator:before{content:\"\"}\n"],
|
|
660
|
+
dependencies: [{
|
|
661
|
+
kind: "component",
|
|
662
|
+
type: MatPseudoCheckbox,
|
|
663
|
+
selector: "mat-pseudo-checkbox",
|
|
664
|
+
inputs: [
|
|
665
|
+
"state",
|
|
666
|
+
"disabled",
|
|
667
|
+
"appearance"
|
|
668
|
+
]
|
|
669
|
+
}, {
|
|
670
|
+
kind: "directive",
|
|
671
|
+
type: MatRipple,
|
|
672
|
+
selector: "[mat-ripple], [matRipple]",
|
|
673
|
+
inputs: [
|
|
674
|
+
"matRippleColor",
|
|
675
|
+
"matRippleUnbounded",
|
|
676
|
+
"matRippleCentered",
|
|
677
|
+
"matRippleRadius",
|
|
678
|
+
"matRippleAnimation",
|
|
679
|
+
"matRippleDisabled",
|
|
680
|
+
"matRippleTrigger"
|
|
681
|
+
],
|
|
682
|
+
exportAs: ["matRipple"]
|
|
683
|
+
}],
|
|
684
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
688
|
+
minVersion: "12.0.0",
|
|
689
|
+
version: "22.2.2",
|
|
690
|
+
ngImport: i0,
|
|
691
|
+
type: OptionComponent,
|
|
692
|
+
decorators: [{
|
|
693
|
+
type: Component,
|
|
694
|
+
args: [{
|
|
695
|
+
selector: "SelectItem",
|
|
696
|
+
imports: [MatPseudoCheckbox, MatRipple],
|
|
697
|
+
encapsulation: ViewEncapsulation.None,
|
|
698
|
+
exportAs: "matOption",
|
|
699
|
+
providers: [{
|
|
700
|
+
provide: MatOption,
|
|
701
|
+
useExisting: forwardRef(() => OptionComponent)
|
|
702
|
+
}],
|
|
703
|
+
template: `
|
|
572
704
|
@if (multiple) {
|
|
573
705
|
<mat-pseudo-checkbox
|
|
574
706
|
class="mat-mdc-option-pseudo-checkbox"
|
|
@@ -603,11 +735,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
603
735
|
[matRippleTrigger]="_getHostElement()"
|
|
604
736
|
[matRippleDisabled]="disabled || disableRipple"
|
|
605
737
|
></div>
|
|
606
|
-
`,
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
export { OptionComponent, SelectComponent };
|
|
738
|
+
`,
|
|
739
|
+
styles: [".mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var( --mat-option-hover-state-layer-color, color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent ) )}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var( --mat-option-focus-state-layer-color, color-mix( in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent ) );outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover){background-color:var( --mat-option-selected-state-layer-color, var(--mat-sys-secondary-container) )}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var( --mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container) )}.mat-mdc-option.mdc-list-item{align-items:center;background:transparent}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{inset:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors:active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox)):after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox)):after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var( --mat-list-list-item-container-color, transparent )}.mat-mdc-option-active .mat-focus-indicator:before{content:\"\"}\n"]
|
|
740
|
+
}]
|
|
741
|
+
}]
|
|
742
|
+
});
|
|
743
|
+
export { OptionComponent, SelectComponent };
|