@nanahoshi/mona-ui 0.27.2 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/api/chart.md +2 -2
- package/docs/api/locales.md +8 -0
- package/docs/api/popup.md +1 -1
- package/docs/api/theme.md +2 -2
- package/docs/chart.md +14 -0
- package/docs/editor.md +2 -0
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2071 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +599 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +61 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +7 -3
- package/locales/pl-pl/package.json +4 -0
- package/locales/pl-pl/pl-pl.messages.json +536 -0
- package/package.json +66 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +354 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +540 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +18 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { takeUntilDestroyed } from
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { IndicatorIconComponent } from
|
|
9
|
-
import {
|
|
10
|
-
import { PopupCloseSource } from
|
|
11
|
-
import { MonaI18nService } from
|
|
12
|
-
import { Subject, filter } from
|
|
13
|
-
import { twMerge } from
|
|
14
|
-
import { cva } from
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, linkedSignal, model, output, untracked, viewChild } from "@angular/core";
|
|
4
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
5
|
+
import * as i1 from "@nanahoshi/mona-ui/dropdowns";
|
|
6
|
+
import { DROPDOWN_DATA_INPUT_TOKEN, DROPDOWN_POPUP_INPUT_TOKEN, DropdownDataHandlerDirective, DropdownFooterTemplateDirective, DropdownGroupHeaderTemplateDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, DropdownListPopupHandlerDirective, DropdownListService, DropdownLiveRegionDirective, DropdownNoDataTemplateDirective, DropdownPrefixTemplateDirective, DropdownService, dropdownPopupThemeVariants } from "@nanahoshi/mona-ui/dropdowns";
|
|
7
|
+
import { TYPEAHEAD_RESET_DELAY, createElementControlId, injectEffectiveDisabled, isTypeaheadKey, setupTypeahead, themeControlSurfaceClasses } from "@nanahoshi/mona-ui/internal";
|
|
8
|
+
import { IndicatorIconComponent } from "@nanahoshi/mona-ui/internal/indicator-icon";
|
|
9
|
+
import { ListComponent, ListFooterTemplateDirective, ListGroupHeaderTemplateDirective, ListHeaderTemplateDirective, ListItemTemplateDirective, ListNoDataTemplateDirective, ListService } from "@nanahoshi/mona-ui/internal/list";
|
|
10
|
+
import { PopupCloseSource } from "@nanahoshi/mona-ui/popup";
|
|
11
|
+
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
12
|
+
import { Subject, filter } from "rxjs";
|
|
13
|
+
import { twMerge } from "tailwind-merge";
|
|
14
|
+
import { cva } from "class-variance-authority";
|
|
15
|
+
var DropdownListValueTemplateDirective = class DropdownListValueTemplateDirective {
|
|
16
|
+
static {
|
|
17
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
18
|
+
minVersion: "12.0.0",
|
|
19
|
+
version: "22.2.6",
|
|
20
|
+
ngImport: i0,
|
|
21
|
+
type: DropdownListValueTemplateDirective,
|
|
22
|
+
deps: [],
|
|
23
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static {
|
|
27
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
|
+
minVersion: "14.0.0",
|
|
29
|
+
version: "22.2.6",
|
|
30
|
+
type: DropdownListValueTemplateDirective,
|
|
31
|
+
isStandalone: true,
|
|
32
|
+
selector: "ng-template[monaDropDownListValueTemplate]",
|
|
33
|
+
ngImport: i0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
31
36
|
};
|
|
32
|
-
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
38
|
+
minVersion: "12.0.0",
|
|
39
|
+
version: "22.2.6",
|
|
40
|
+
ngImport: i0,
|
|
41
|
+
type: DropdownListValueTemplateDirective,
|
|
42
|
+
decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{ selector: "ng-template[monaDropDownListValueTemplate]" }]
|
|
45
|
+
}]
|
|
46
|
+
});
|
|
47
|
+
const DROPDOWN_LIST_DEFAULT_MESSAGES = { clear: "Clear" };
|
|
33
48
|
const dropdownListInputThemeVariants = cva(`
|
|
34
49
|
inline-flex items-center
|
|
35
50
|
cursor-pointer select-none
|
|
@@ -40,657 +55,1107 @@ const dropdownListInputThemeVariants = cva(`
|
|
|
40
55
|
hover:bg-hover active:bg-active
|
|
41
56
|
focus-within:border-focus-indicator focus-within:ring-2 focus-within:ring-focus-indicator/35
|
|
42
57
|
`, {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
variants: {
|
|
59
|
+
disabled: {
|
|
60
|
+
true: `
|
|
46
61
|
pointer-events-none cursor-not-allowed
|
|
47
62
|
bg-disabled-background text-disabled-foreground
|
|
48
63
|
border-disabled-border shadow-none
|
|
49
64
|
`,
|
|
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
|
-
invalid: true,
|
|
80
|
-
class: "border-error ring-error/35"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
const dropdownListValueContainerThemeVariants = cva(`flex h-full w-full items-center overflow-hidden`, {
|
|
85
|
-
variants: {
|
|
86
|
-
hasTemplate: {
|
|
87
|
-
false: "[&>span]:truncate [&>span]:items-center [&>span]:inline-block"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
65
|
+
false: ""
|
|
66
|
+
},
|
|
67
|
+
expanded: {
|
|
68
|
+
true: "border-focus-indicator ring-2 ring-focus-indicator/35",
|
|
69
|
+
false: ""
|
|
70
|
+
},
|
|
71
|
+
hasPrefix: { false: "ps-2" },
|
|
72
|
+
invalid: {
|
|
73
|
+
true: "border-error ring-2 ring-error/35 focus-within:border-error focus-within:ring-error/35",
|
|
74
|
+
false: ""
|
|
75
|
+
},
|
|
76
|
+
rounded: {
|
|
77
|
+
none: "rounded-none",
|
|
78
|
+
small: "rounded-sm",
|
|
79
|
+
medium: "rounded-md",
|
|
80
|
+
large: "rounded-lg",
|
|
81
|
+
full: "rounded-full px-3"
|
|
82
|
+
},
|
|
83
|
+
size: {
|
|
84
|
+
large: "h-10 text-base",
|
|
85
|
+
medium: "h-9 text-sm",
|
|
86
|
+
small: "h-8 text-xs"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
compoundVariants: [{
|
|
90
|
+
expanded: true,
|
|
91
|
+
invalid: true,
|
|
92
|
+
class: "border-error ring-error/35"
|
|
93
|
+
}]
|
|
90
94
|
});
|
|
95
|
+
const dropdownListValueContainerThemeVariants = cva(`flex h-full w-full items-center overflow-hidden`, { variants: { hasTemplate: { false: "[&>span]:truncate [&>span]:items-center [&>span]:inline-block" } } });
|
|
91
96
|
const dropdownListAffixContainerThemeVariants = cva(`flex h-full flex-none items-center justify-center`);
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
PopupCloseSource.Scroll
|
|
97
|
+
const cancellingCloseSources = /* @__PURE__ */ new Set([
|
|
98
|
+
PopupCloseSource.BackdropClick,
|
|
99
|
+
PopupCloseSource.Escape,
|
|
100
|
+
PopupCloseSource.OutsideClick,
|
|
101
|
+
PopupCloseSource.Scroll
|
|
98
102
|
]);
|
|
99
|
-
class DropdownListComponent {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
103
|
+
var DropdownListComponent = class DropdownListComponent {
|
|
104
|
+
#destroyRef;
|
|
105
|
+
#dropdownListService;
|
|
106
|
+
#dropdownService;
|
|
107
|
+
#hostElementRef;
|
|
108
|
+
#i18n;
|
|
109
|
+
#listService;
|
|
110
|
+
#navigatedItem;
|
|
111
|
+
#typeaheadKey;
|
|
112
|
+
#lastTypeaheadKeyTime;
|
|
113
|
+
constructor() {
|
|
114
|
+
this.#destroyRef = inject(DestroyRef);
|
|
115
|
+
this.#dropdownListService = inject(DropdownListService);
|
|
116
|
+
this.#dropdownService = inject(DropdownService);
|
|
117
|
+
this.#hostElementRef = inject(ElementRef);
|
|
118
|
+
this.#i18n = inject(MonaI18nService);
|
|
119
|
+
this.#listService = inject(ListService);
|
|
120
|
+
this.#navigatedItem = linkedSignal(() => this.selectedDataItem(), ...ngDevMode ? [{ debugName: "#navigatedItem" }] : /* istanbul ignore next */ []);
|
|
121
|
+
this.#typeaheadKey = new Subject();
|
|
122
|
+
this.#lastTypeaheadKeyTime = Number.NEGATIVE_INFINITY;
|
|
123
|
+
this.activeDescendant = computed(() => {
|
|
124
|
+
const highlightedItem = this.#listService.highlightedItem();
|
|
125
|
+
return highlightedItem ? highlightedItem.uid : null;
|
|
126
|
+
}, ...ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []);
|
|
127
|
+
this.affixClass = computed(() => {
|
|
128
|
+
return dropdownListAffixContainerThemeVariants();
|
|
129
|
+
}, ...ngDevMode ? [{ debugName: "affixClass" }] : /* istanbul ignore next */ []);
|
|
130
|
+
this.baseClass = computed(() => {
|
|
131
|
+
const disabled = this.effectiveDisabled();
|
|
132
|
+
const expanded = this.expanded();
|
|
133
|
+
const hasPrefix = this.prefixTemplate() != null;
|
|
134
|
+
const invalid = this.invalidState();
|
|
135
|
+
const rounded = this.rounded();
|
|
136
|
+
const size = this.size();
|
|
137
|
+
const classes = dropdownListInputThemeVariants({
|
|
138
|
+
disabled,
|
|
139
|
+
expanded,
|
|
140
|
+
hasPrefix,
|
|
141
|
+
invalid,
|
|
142
|
+
rounded,
|
|
143
|
+
size
|
|
144
|
+
});
|
|
145
|
+
const userClass = this.userClass();
|
|
146
|
+
return twMerge(classes, userClass);
|
|
147
|
+
}, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
|
|
148
|
+
this.clearButtonVisible = computed(() => this.showClearButton() && this.selectedListItem() != null && !this.loading() && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "clearButtonVisible" }] : /* istanbul ignore next */ []);
|
|
149
|
+
this.effectiveAriaLabel = computed(() => this.ariaLabel() || (this.ariaLabelledBy() ? "" : this.placeholder()), ...ngDevMode ? [{ debugName: "effectiveAriaLabel" }] : /* istanbul ignore next */ []);
|
|
150
|
+
this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
|
|
151
|
+
this.expanded = computed(() => this.#dropdownService.popupRef() !== null, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
152
|
+
this.footerTemplate = contentChild(DropdownFooterTemplateDirective, {
|
|
153
|
+
...ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {},
|
|
154
|
+
read: TemplateRef
|
|
155
|
+
});
|
|
156
|
+
this.groupHeaderTemplate = contentChild(DropdownGroupHeaderTemplateDirective, {
|
|
157
|
+
...ngDevMode ? { debugName: "groupHeaderTemplate" } : /* istanbul ignore next */ {},
|
|
158
|
+
read: TemplateRef
|
|
159
|
+
});
|
|
160
|
+
this.headerTemplate = contentChild(DropdownHeaderTemplateDirective, {
|
|
161
|
+
...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
|
|
162
|
+
read: TemplateRef
|
|
163
|
+
});
|
|
164
|
+
this.invalidState = computed(() => this.touched() && (this.invalid() || this.required() && this.value() == null), ...ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []);
|
|
165
|
+
this.isEmpty = computed(() => !this.#listService.viewItems().any(), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
|
|
166
|
+
this.itemTemplate = contentChild(DropdownItemTemplateDirective, {
|
|
167
|
+
...ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {},
|
|
168
|
+
read: TemplateRef
|
|
169
|
+
});
|
|
170
|
+
this.listId = createElementControlId();
|
|
171
|
+
this.listPopupClass = computed(() => {
|
|
172
|
+
const rounded = this.rounded();
|
|
173
|
+
const size = this.size();
|
|
174
|
+
const userClass = this.popupClass();
|
|
175
|
+
const variantClass = dropdownPopupThemeVariants({
|
|
176
|
+
rounded,
|
|
177
|
+
size
|
|
178
|
+
});
|
|
179
|
+
const heightClass = this.popupHeight() ? "max-h-none" : "";
|
|
180
|
+
return twMerge(variantClass, heightClass, userClass);
|
|
181
|
+
}, ...ngDevMode ? [{ debugName: "listPopupClass" }] : /* istanbul ignore next */ []);
|
|
182
|
+
this.messages = this.#i18n.componentMessages("dropdownList", DROPDOWN_LIST_DEFAULT_MESSAGES);
|
|
183
|
+
this.noDataTemplate = contentChild(DropdownNoDataTemplateDirective, {
|
|
184
|
+
...ngDevMode ? { debugName: "noDataTemplate" } : /* istanbul ignore next */ {},
|
|
185
|
+
read: TemplateRef
|
|
186
|
+
});
|
|
187
|
+
this.popupTemplate = viewChild.required("popupTemplate", ...ngDevMode ? [{ debugName: "popupTemplate" }] : /* istanbul ignore next */ []);
|
|
188
|
+
this.prefixTemplate = contentChild(DropdownPrefixTemplateDirective, {
|
|
189
|
+
...ngDevMode ? { debugName: "prefixTemplate" } : /* istanbul ignore next */ {},
|
|
190
|
+
read: TemplateRef
|
|
191
|
+
});
|
|
192
|
+
this.selectableOptions = {
|
|
193
|
+
enabled: true,
|
|
194
|
+
mode: "single",
|
|
195
|
+
toggleable: false
|
|
196
|
+
};
|
|
197
|
+
this.selectedDataItem = computed(() => {
|
|
198
|
+
return this.selectedListItem()?.data ?? null;
|
|
199
|
+
}, ...ngDevMode ? [{ debugName: "selectedDataItem" }] : /* istanbul ignore next */ []);
|
|
200
|
+
this.selectedListItem = computed(() => {
|
|
201
|
+
return this.#listService.selectedListItems().firstOrDefault();
|
|
202
|
+
}, ...ngDevMode ? [{ debugName: "selectedListItem" }] : /* istanbul ignore next */ []);
|
|
203
|
+
this.valueContainerClass = computed(() => {
|
|
204
|
+
const hasTemplate = this.valueTemplate() != null;
|
|
205
|
+
return dropdownListValueContainerThemeVariants({ hasTemplate });
|
|
206
|
+
}, ...ngDevMode ? [{ debugName: "valueContainerClass" }] : /* istanbul ignore next */ []);
|
|
207
|
+
this.valueTemplate = contentChild(DropdownListValueTemplateDirective, {
|
|
208
|
+
...ngDevMode ? { debugName: "valueTemplate" } : /* istanbul ignore next */ {},
|
|
209
|
+
read: TemplateRef
|
|
210
|
+
});
|
|
211
|
+
this.valueText = computed(() => {
|
|
212
|
+
const listItem = this.selectedListItem();
|
|
213
|
+
if (!listItem) return "";
|
|
214
|
+
return this.#listService.getItemText(listItem);
|
|
215
|
+
}, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
|
|
216
|
+
this.ariaDescribedBy = input("", {
|
|
217
|
+
...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
|
|
218
|
+
alias: "aria-describedby"
|
|
219
|
+
});
|
|
220
|
+
this.ariaLabel = input("", {
|
|
221
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
222
|
+
alias: "aria-label"
|
|
223
|
+
});
|
|
224
|
+
this.ariaLabelledBy = input("", {
|
|
225
|
+
...ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {},
|
|
226
|
+
alias: "aria-labelledby"
|
|
227
|
+
});
|
|
228
|
+
this.close = output();
|
|
229
|
+
this.closed = output();
|
|
230
|
+
this.data = input([], ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
231
|
+
this.disabled = input(false, {
|
|
232
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
233
|
+
transform: booleanAttribute
|
|
234
|
+
});
|
|
235
|
+
this.invalid = input(false, {
|
|
236
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
237
|
+
transform: booleanAttribute
|
|
238
|
+
});
|
|
239
|
+
this.itemDisabled = input(...ngDevMode ? [void 0, { debugName: "itemDisabled" }] : /* istanbul ignore next */ []);
|
|
240
|
+
this.loading = input(false, {
|
|
241
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
242
|
+
transform: booleanAttribute
|
|
243
|
+
});
|
|
244
|
+
this.open = output();
|
|
245
|
+
this.opened = output();
|
|
246
|
+
this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
247
|
+
this.popupClass = input("", ...ngDevMode ? [{ debugName: "popupClass" }] : /* istanbul ignore next */ []);
|
|
248
|
+
this.popupHeight = input(null, ...ngDevMode ? [{ debugName: "popupHeight" }] : /* istanbul ignore next */ []);
|
|
249
|
+
this.popupWidth = input(null, ...ngDevMode ? [{ debugName: "popupWidth" }] : /* istanbul ignore next */ []);
|
|
250
|
+
this.readonly = input(false, {
|
|
251
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
252
|
+
transform: booleanAttribute
|
|
253
|
+
});
|
|
254
|
+
this.required = input(false, {
|
|
255
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
256
|
+
transform: booleanAttribute
|
|
257
|
+
});
|
|
258
|
+
this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
259
|
+
this.showClearButton = input(false, {
|
|
260
|
+
...ngDevMode ? { debugName: "showClearButton" } : /* istanbul ignore next */ {},
|
|
261
|
+
transform: booleanAttribute
|
|
262
|
+
});
|
|
263
|
+
this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
264
|
+
this.textField = input(...ngDevMode ? [void 0, { debugName: "textField" }] : /* istanbul ignore next */ []);
|
|
265
|
+
this.touch = output();
|
|
266
|
+
this.touched = input(false, {
|
|
267
|
+
...ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {},
|
|
268
|
+
transform: booleanAttribute
|
|
269
|
+
});
|
|
270
|
+
this.userClass = input("", {
|
|
271
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
272
|
+
alias: "class"
|
|
273
|
+
});
|
|
274
|
+
this.value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
275
|
+
this.valueField = input(...ngDevMode ? [void 0, { debugName: "valueField" }] : /* istanbul ignore next */ []);
|
|
276
|
+
this.valuePrimitive = input(false, {
|
|
277
|
+
...ngDevMode ? { debugName: "valuePrimitive" } : /* istanbul ignore next */ {},
|
|
278
|
+
transform: booleanAttribute
|
|
279
|
+
});
|
|
280
|
+
effect(() => {
|
|
281
|
+
const value = this.value();
|
|
282
|
+
const valueField = this.valueField();
|
|
283
|
+
this.valuePrimitive();
|
|
284
|
+
untracked(() => {
|
|
285
|
+
this.#listService.setValueField(valueField ?? "");
|
|
286
|
+
this.synchronizeSelection(value);
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
effect(() => {
|
|
290
|
+
const popupTemplate = this.popupTemplate();
|
|
291
|
+
untracked(() => this.#dropdownService.popupTemplate.set(popupTemplate));
|
|
292
|
+
});
|
|
293
|
+
afterNextRender({ read: () => {
|
|
294
|
+
this.initialize();
|
|
295
|
+
this.setSubscriptions();
|
|
296
|
+
} });
|
|
297
|
+
effect(() => {
|
|
298
|
+
const filterableOptions = this.#listService.filterableOptions();
|
|
299
|
+
untracked(() => {
|
|
300
|
+
if (filterableOptions.enabled) this.#listService.setNavigableOptions({ mode: "highlight" });
|
|
301
|
+
else this.#listService.setNavigableOptions({ mode: "select" });
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
focus(options) {
|
|
306
|
+
this.#hostElementRef.nativeElement?.focus(options);
|
|
307
|
+
}
|
|
308
|
+
setValue(value) {
|
|
309
|
+
this.updateValue(value);
|
|
310
|
+
}
|
|
311
|
+
onFocusOut(event) {
|
|
312
|
+
if (this.#destroyRef.destroyed) return;
|
|
313
|
+
const nextTarget = event.relatedTarget;
|
|
314
|
+
if (nextTarget instanceof Node) {
|
|
315
|
+
const popupElement = this.#dropdownService.popupRef()?.overlayRef.overlayElement;
|
|
316
|
+
if (this.#hostElementRef.nativeElement.contains(nextTarget) || popupElement?.contains(nextTarget)) return;
|
|
317
|
+
}
|
|
318
|
+
this.touch.emit();
|
|
319
|
+
}
|
|
320
|
+
onItemSelect(event) {
|
|
321
|
+
if (this.#listService.filterableOptions().enabled && event.source.via === "keyboard" && event.source.key !== "Enter") {
|
|
322
|
+
this.#navigatedItem.set(event.item.data);
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
this.updateValue(this.getControlValue(event.item.data));
|
|
326
|
+
if (event.source.via === "mouse" || event.source.key === "Enter" || event.source.key === "NumpadEnter") this.closePopup();
|
|
327
|
+
}
|
|
328
|
+
onPopupPointerDown(event) {
|
|
329
|
+
if (event.target?.tagName !== "INPUT") event.preventDefault();
|
|
330
|
+
}
|
|
331
|
+
onValueClear(event) {
|
|
332
|
+
if (this.effectiveDisabled() || this.readonly() || event instanceof KeyboardEvent && event.key !== "Enter" && event.key !== " ") return;
|
|
333
|
+
event.stopImmediatePropagation();
|
|
334
|
+
event.preventDefault();
|
|
335
|
+
this.updateValue(null);
|
|
336
|
+
this.#listService.clearSelections();
|
|
337
|
+
this.focus();
|
|
338
|
+
}
|
|
339
|
+
closePopup() {
|
|
340
|
+
this.#dropdownService.popupRef()?.close();
|
|
341
|
+
}
|
|
342
|
+
cycleThroughMatchedItems(buffer) {
|
|
343
|
+
const nextItem = this.#listService.cycleThroughMatchedItems(buffer);
|
|
344
|
+
if (!nextItem) return;
|
|
345
|
+
if (this.#listService.selectedListItems().contains(nextItem)) return;
|
|
346
|
+
this.#listService.selectItem(nextItem);
|
|
347
|
+
if (!this.expanded()) this.updateValue(this.getControlValue(nextItem.data));
|
|
348
|
+
else {
|
|
349
|
+
this.scrollToSelectedItem();
|
|
350
|
+
this.#navigatedItem.set(nextItem.data);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
getControlValue(dataItem) {
|
|
354
|
+
return this.valuePrimitive() ? this.#listService.getDataItemValue(dataItem) : dataItem;
|
|
355
|
+
}
|
|
356
|
+
handleEnterKey() {
|
|
357
|
+
if (!this.expanded()) {
|
|
358
|
+
this.#dropdownService.triggerPopupOpen$.next({});
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
const navigatedItem = this.#navigatedItem();
|
|
362
|
+
if (navigatedItem && this.value() !== this.getControlValue(navigatedItem)) this.updateValue(this.getControlValue(navigatedItem));
|
|
363
|
+
this.closePopup();
|
|
364
|
+
}
|
|
365
|
+
handleHomeEndKeys(event) {
|
|
366
|
+
const itemToSelect = event.key === "Home" ? this.#listService.viewItems().firstOrDefault() : this.#listService.viewItems().lastOrDefault();
|
|
367
|
+
if (!itemToSelect) return;
|
|
368
|
+
this.#listService.selectItem(itemToSelect, true, false);
|
|
369
|
+
if (!this.expanded()) this.updateValue(this.getControlValue(itemToSelect.data));
|
|
370
|
+
else this.#navigatedItem.set(itemToSelect.data);
|
|
371
|
+
}
|
|
372
|
+
initialize() {
|
|
373
|
+
this.#listService.setNavigableOptions({
|
|
374
|
+
enabled: true,
|
|
375
|
+
mode: "select"
|
|
376
|
+
});
|
|
377
|
+
this.#listService.setSelectableOptions(this.selectableOptions);
|
|
378
|
+
}
|
|
379
|
+
pushTypeaheadKey(key) {
|
|
380
|
+
this.#lastTypeaheadKeyTime = Date.now();
|
|
381
|
+
this.#typeaheadKey.next(key);
|
|
382
|
+
}
|
|
383
|
+
scrollToSelectedItem() {
|
|
384
|
+
const item = this.selectedListItem();
|
|
385
|
+
if (!item) return;
|
|
386
|
+
window.setTimeout(() => this.#listService.scrollToItem(item, false));
|
|
387
|
+
}
|
|
388
|
+
setArrowKeyNavigationSubscription() {
|
|
389
|
+
this.#dropdownListService.navigate$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe(({ item }) => {
|
|
390
|
+
if (!this.expanded()) this.updateValue(this.getControlValue(item.data));
|
|
391
|
+
else this.#navigatedItem.set(item.data);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
setFilterChangeSubscription() {
|
|
395
|
+
this.#listService.filterChange$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
|
|
396
|
+
if (event.filter) {
|
|
397
|
+
const item = this.#listService.getMatchingFilteredItem(event.filter);
|
|
398
|
+
if (item) this.#listService.highlightedItem.set(item);
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
setKeydownSubscription() {
|
|
403
|
+
this.#dropdownService.keydown$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
|
|
404
|
+
if (event.key === "Enter") {
|
|
405
|
+
event.preventDefault();
|
|
406
|
+
this.handleEnterKey();
|
|
407
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
408
|
+
event.preventDefault();
|
|
409
|
+
this.handleHomeEndKeys(event);
|
|
410
|
+
} else if (isTypeaheadKey(event.key, event)) this.pushTypeaheadKey(event.key);
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
setPopupCloseSubscriptions() {
|
|
414
|
+
this.#dropdownService.popupCloseComplete$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
|
|
415
|
+
if (cancellingCloseSources.has(event.via)) {
|
|
416
|
+
this.synchronizeSelection(this.value());
|
|
417
|
+
this.#navigatedItem.set(this.selectedDataItem());
|
|
418
|
+
} else {
|
|
419
|
+
const navigatedItem = this.#navigatedItem();
|
|
420
|
+
this.updateValue(navigatedItem ? this.getControlValue(navigatedItem) : null);
|
|
421
|
+
}
|
|
422
|
+
if (this.#dropdownService.focusCanReturn()) window.setTimeout(() => this.focus());
|
|
423
|
+
else if (!this.#destroyRef.destroyed) this.touch.emit();
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
setSubscriptions() {
|
|
427
|
+
this.setArrowKeyNavigationSubscription();
|
|
428
|
+
this.setKeydownSubscription();
|
|
429
|
+
this.setFilterChangeSubscription();
|
|
430
|
+
this.setPopupCloseSubscriptions();
|
|
431
|
+
this.setTypeaheadSpaceSubscription();
|
|
432
|
+
this.setTypeaheadSubscription();
|
|
433
|
+
}
|
|
434
|
+
setTypeaheadSpaceSubscription() {
|
|
435
|
+
this.#dropdownService.beforeKeydown$.pipe(takeUntilDestroyed(this.#destroyRef), filter((e) => e.originalEvent?.key === " " && Date.now() - this.#lastTypeaheadKeyTime < TYPEAHEAD_RESET_DELAY)).subscribe((event) => {
|
|
436
|
+
event.preventDefault();
|
|
437
|
+
event.originalEvent?.preventDefault();
|
|
438
|
+
this.pushTypeaheadKey(" ");
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
setTypeaheadSubscription() {
|
|
442
|
+
setupTypeahead(this.#typeaheadKey).pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((buffer) => this.cycleThroughMatchedItems(buffer));
|
|
443
|
+
}
|
|
444
|
+
synchronizeSelection(value) {
|
|
445
|
+
if (value == null) {
|
|
446
|
+
this.#listService.clearSelections();
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (this.valuePrimitive()) this.#listService.setSelectedKeys([value]);
|
|
450
|
+
else this.#listService.setSelectedDataItems([value]);
|
|
451
|
+
}
|
|
452
|
+
updateValue(value) {
|
|
453
|
+
if (this.value() !== value) this.value.set(value);
|
|
454
|
+
}
|
|
455
|
+
static {
|
|
456
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
457
|
+
minVersion: "12.0.0",
|
|
458
|
+
version: "22.2.6",
|
|
459
|
+
ngImport: i0,
|
|
460
|
+
type: DropdownListComponent,
|
|
461
|
+
deps: [],
|
|
462
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
static {
|
|
466
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
467
|
+
minVersion: "17.0.0",
|
|
468
|
+
version: "22.2.6",
|
|
469
|
+
type: DropdownListComponent,
|
|
470
|
+
isStandalone: true,
|
|
471
|
+
selector: "mona-dropdown-list",
|
|
472
|
+
inputs: {
|
|
473
|
+
ariaDescribedBy: {
|
|
474
|
+
classPropertyName: "ariaDescribedBy",
|
|
475
|
+
publicName: "aria-describedby",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
},
|
|
480
|
+
ariaLabel: {
|
|
481
|
+
classPropertyName: "ariaLabel",
|
|
482
|
+
publicName: "aria-label",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
},
|
|
487
|
+
ariaLabelledBy: {
|
|
488
|
+
classPropertyName: "ariaLabelledBy",
|
|
489
|
+
publicName: "aria-labelledby",
|
|
490
|
+
isSignal: true,
|
|
491
|
+
isRequired: false,
|
|
492
|
+
transformFunction: null
|
|
493
|
+
},
|
|
494
|
+
data: {
|
|
495
|
+
classPropertyName: "data",
|
|
496
|
+
publicName: "data",
|
|
497
|
+
isSignal: true,
|
|
498
|
+
isRequired: false,
|
|
499
|
+
transformFunction: null
|
|
500
|
+
},
|
|
501
|
+
disabled: {
|
|
502
|
+
classPropertyName: "disabled",
|
|
503
|
+
publicName: "disabled",
|
|
504
|
+
isSignal: true,
|
|
505
|
+
isRequired: false,
|
|
506
|
+
transformFunction: null
|
|
507
|
+
},
|
|
508
|
+
invalid: {
|
|
509
|
+
classPropertyName: "invalid",
|
|
510
|
+
publicName: "invalid",
|
|
511
|
+
isSignal: true,
|
|
512
|
+
isRequired: false,
|
|
513
|
+
transformFunction: null
|
|
514
|
+
},
|
|
515
|
+
itemDisabled: {
|
|
516
|
+
classPropertyName: "itemDisabled",
|
|
517
|
+
publicName: "itemDisabled",
|
|
518
|
+
isSignal: true,
|
|
519
|
+
isRequired: false,
|
|
520
|
+
transformFunction: null
|
|
521
|
+
},
|
|
522
|
+
loading: {
|
|
523
|
+
classPropertyName: "loading",
|
|
524
|
+
publicName: "loading",
|
|
525
|
+
isSignal: true,
|
|
526
|
+
isRequired: false,
|
|
527
|
+
transformFunction: null
|
|
528
|
+
},
|
|
529
|
+
placeholder: {
|
|
530
|
+
classPropertyName: "placeholder",
|
|
531
|
+
publicName: "placeholder",
|
|
532
|
+
isSignal: true,
|
|
533
|
+
isRequired: false,
|
|
534
|
+
transformFunction: null
|
|
535
|
+
},
|
|
536
|
+
popupClass: {
|
|
537
|
+
classPropertyName: "popupClass",
|
|
538
|
+
publicName: "popupClass",
|
|
539
|
+
isSignal: true,
|
|
540
|
+
isRequired: false,
|
|
541
|
+
transformFunction: null
|
|
542
|
+
},
|
|
543
|
+
popupHeight: {
|
|
544
|
+
classPropertyName: "popupHeight",
|
|
545
|
+
publicName: "popupHeight",
|
|
546
|
+
isSignal: true,
|
|
547
|
+
isRequired: false,
|
|
548
|
+
transformFunction: null
|
|
549
|
+
},
|
|
550
|
+
popupWidth: {
|
|
551
|
+
classPropertyName: "popupWidth",
|
|
552
|
+
publicName: "popupWidth",
|
|
553
|
+
isSignal: true,
|
|
554
|
+
isRequired: false,
|
|
555
|
+
transformFunction: null
|
|
556
|
+
},
|
|
557
|
+
readonly: {
|
|
558
|
+
classPropertyName: "readonly",
|
|
559
|
+
publicName: "readonly",
|
|
560
|
+
isSignal: true,
|
|
561
|
+
isRequired: false,
|
|
562
|
+
transformFunction: null
|
|
563
|
+
},
|
|
564
|
+
required: {
|
|
565
|
+
classPropertyName: "required",
|
|
566
|
+
publicName: "required",
|
|
567
|
+
isSignal: true,
|
|
568
|
+
isRequired: false,
|
|
569
|
+
transformFunction: null
|
|
570
|
+
},
|
|
571
|
+
rounded: {
|
|
572
|
+
classPropertyName: "rounded",
|
|
573
|
+
publicName: "rounded",
|
|
574
|
+
isSignal: true,
|
|
575
|
+
isRequired: false,
|
|
576
|
+
transformFunction: null
|
|
577
|
+
},
|
|
578
|
+
showClearButton: {
|
|
579
|
+
classPropertyName: "showClearButton",
|
|
580
|
+
publicName: "showClearButton",
|
|
581
|
+
isSignal: true,
|
|
582
|
+
isRequired: false,
|
|
583
|
+
transformFunction: null
|
|
584
|
+
},
|
|
585
|
+
size: {
|
|
586
|
+
classPropertyName: "size",
|
|
587
|
+
publicName: "size",
|
|
588
|
+
isSignal: true,
|
|
589
|
+
isRequired: false,
|
|
590
|
+
transformFunction: null
|
|
591
|
+
},
|
|
592
|
+
textField: {
|
|
593
|
+
classPropertyName: "textField",
|
|
594
|
+
publicName: "textField",
|
|
595
|
+
isSignal: true,
|
|
596
|
+
isRequired: false,
|
|
597
|
+
transformFunction: null
|
|
598
|
+
},
|
|
599
|
+
touched: {
|
|
600
|
+
classPropertyName: "touched",
|
|
601
|
+
publicName: "touched",
|
|
602
|
+
isSignal: true,
|
|
603
|
+
isRequired: false,
|
|
604
|
+
transformFunction: null
|
|
605
|
+
},
|
|
606
|
+
userClass: {
|
|
607
|
+
classPropertyName: "userClass",
|
|
608
|
+
publicName: "class",
|
|
609
|
+
isSignal: true,
|
|
610
|
+
isRequired: false,
|
|
611
|
+
transformFunction: null
|
|
612
|
+
},
|
|
613
|
+
value: {
|
|
614
|
+
classPropertyName: "value",
|
|
615
|
+
publicName: "value",
|
|
616
|
+
isSignal: true,
|
|
617
|
+
isRequired: false,
|
|
618
|
+
transformFunction: null
|
|
619
|
+
},
|
|
620
|
+
valueField: {
|
|
621
|
+
classPropertyName: "valueField",
|
|
622
|
+
publicName: "valueField",
|
|
623
|
+
isSignal: true,
|
|
624
|
+
isRequired: false,
|
|
625
|
+
transformFunction: null
|
|
626
|
+
},
|
|
627
|
+
valuePrimitive: {
|
|
628
|
+
classPropertyName: "valuePrimitive",
|
|
629
|
+
publicName: "valuePrimitive",
|
|
630
|
+
isSignal: true,
|
|
631
|
+
isRequired: false,
|
|
632
|
+
transformFunction: null
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
outputs: {
|
|
636
|
+
close: "close",
|
|
637
|
+
closed: "closed",
|
|
638
|
+
open: "open",
|
|
639
|
+
opened: "opened",
|
|
640
|
+
touch: "touch",
|
|
641
|
+
value: "valueChange"
|
|
642
|
+
},
|
|
643
|
+
host: {
|
|
644
|
+
listeners: { "focusout": "onFocusOut($event)" },
|
|
645
|
+
properties: {
|
|
646
|
+
"attr.aria-activedescendant": "activeDescendant()",
|
|
647
|
+
"attr.aria-busy": "loading() ? 'true' : undefined",
|
|
648
|
+
"attr.aria-controls": "listId",
|
|
649
|
+
"attr.aria-describedby": "ariaDescribedBy() || null",
|
|
650
|
+
"attr.aria-disabled": "effectiveDisabled() ? true : undefined",
|
|
651
|
+
"attr.aria-expanded": "expanded()",
|
|
652
|
+
"attr.aria-haspopup": "'listbox'",
|
|
653
|
+
"attr.aria-invalid": "invalidState() ? true : undefined",
|
|
654
|
+
"attr.aria-label": "effectiveAriaLabel() || null",
|
|
655
|
+
"attr.aria-labelledby": "ariaLabelledBy() || null",
|
|
656
|
+
"attr.aria-readonly": "readonly() ? true : undefined",
|
|
657
|
+
"attr.aria-required": "required() ? true : undefined",
|
|
658
|
+
"attr.data-disabled": "effectiveDisabled() || null",
|
|
659
|
+
"attr.data-invalid": "invalidState() || null",
|
|
660
|
+
"attr.data-readonly": "readonly() || null",
|
|
661
|
+
"attr.role": "'combobox'",
|
|
662
|
+
"attr.tabindex": "effectiveDisabled() ? null : 0",
|
|
663
|
+
"class": "baseClass()"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
providers: [
|
|
667
|
+
ListService,
|
|
668
|
+
DropdownService,
|
|
669
|
+
DropdownListService,
|
|
670
|
+
{
|
|
671
|
+
provide: DROPDOWN_DATA_INPUT_TOKEN,
|
|
672
|
+
useExisting: forwardRef(() => DropdownListComponent),
|
|
673
|
+
multi: false
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
provide: DROPDOWN_POPUP_INPUT_TOKEN,
|
|
677
|
+
useExisting: forwardRef(() => DropdownListComponent),
|
|
678
|
+
multi: false
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
queries: [
|
|
682
|
+
{
|
|
683
|
+
propertyName: "footerTemplate",
|
|
684
|
+
first: true,
|
|
685
|
+
predicate: DropdownFooterTemplateDirective,
|
|
686
|
+
descendants: true,
|
|
687
|
+
read: TemplateRef,
|
|
688
|
+
isSignal: true
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
propertyName: "groupHeaderTemplate",
|
|
692
|
+
first: true,
|
|
693
|
+
predicate: DropdownGroupHeaderTemplateDirective,
|
|
694
|
+
descendants: true,
|
|
695
|
+
read: TemplateRef,
|
|
696
|
+
isSignal: true
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
propertyName: "headerTemplate",
|
|
700
|
+
first: true,
|
|
701
|
+
predicate: DropdownHeaderTemplateDirective,
|
|
702
|
+
descendants: true,
|
|
703
|
+
read: TemplateRef,
|
|
704
|
+
isSignal: true
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
propertyName: "itemTemplate",
|
|
708
|
+
first: true,
|
|
709
|
+
predicate: DropdownItemTemplateDirective,
|
|
710
|
+
descendants: true,
|
|
711
|
+
read: TemplateRef,
|
|
712
|
+
isSignal: true
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
propertyName: "noDataTemplate",
|
|
716
|
+
first: true,
|
|
717
|
+
predicate: DropdownNoDataTemplateDirective,
|
|
718
|
+
descendants: true,
|
|
719
|
+
read: TemplateRef,
|
|
720
|
+
isSignal: true
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
propertyName: "prefixTemplate",
|
|
724
|
+
first: true,
|
|
725
|
+
predicate: DropdownPrefixTemplateDirective,
|
|
726
|
+
descendants: true,
|
|
727
|
+
read: TemplateRef,
|
|
728
|
+
isSignal: true
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
propertyName: "valueTemplate",
|
|
732
|
+
first: true,
|
|
733
|
+
predicate: DropdownListValueTemplateDirective,
|
|
734
|
+
descendants: true,
|
|
735
|
+
read: TemplateRef,
|
|
736
|
+
isSignal: true
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
viewQueries: [{
|
|
740
|
+
propertyName: "popupTemplate",
|
|
741
|
+
first: true,
|
|
742
|
+
predicate: ["popupTemplate"],
|
|
743
|
+
descendants: true,
|
|
744
|
+
isSignal: true
|
|
745
|
+
}],
|
|
746
|
+
hostDirectives: [
|
|
747
|
+
{ directive: i1.DropdownDataHandlerDirective },
|
|
748
|
+
{ directive: i1.DropdownListPopupHandlerDirective },
|
|
749
|
+
{ directive: i1.DropdownLiveRegionDirective }
|
|
750
|
+
],
|
|
751
|
+
ngImport: i0,
|
|
752
|
+
template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<span [class]=\"valueContainerClass()\">\n @if (!valueTemplate()) {\n <span>\n @if (selectedListItem()) {\n <span>{{ valueText() }}</span>\n } @else {\n <span>{{ placeholder() }}</span>\n }\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"valueTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItem() }\"></ng-container>\n }\n</span>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <div [class]=\"listPopupClass()\" (pointerdown)=\"onPopupPointerDown($event)\">\n <mona-list [listId]=\"listId\" [focusOnMount]=\"false\" [size]=\"size()\" (itemSelect)=\"onItemSelect($event)\">\n @if (footerTemplate()) {\n <ng-template monaListFooterTemplate>\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\"></ng-container>\n </ng-template>\n }\n @if (groupHeaderTemplate()) {\n <ng-template monaListGroupHeaderTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupHeaderTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (headerTemplate()) {\n <ng-template monaListHeaderTemplate>\n <ng-container [ngTemplateOutlet]=\"headerTemplate()\"></ng-container>\n </ng-template>\n }\n @if (itemTemplate()) {\n <ng-template monaListItemTemplate let-dataItem>\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem }\"></ng-container>\n </ng-template>\n }\n @if (noDataTemplate()) {\n <ng-template monaListNoDataTemplate>\n <ng-container [ngTemplateOutlet]=\"noDataTemplate()\"></ng-container>\n </ng-template>\n }\n </mona-list>\n </div>\n</ng-template>\n",
|
|
753
|
+
dependencies: [
|
|
754
|
+
{
|
|
755
|
+
kind: "directive",
|
|
756
|
+
type: NgTemplateOutlet,
|
|
757
|
+
selector: "[ngTemplateOutlet]",
|
|
758
|
+
inputs: [
|
|
759
|
+
"ngTemplateOutletContext",
|
|
760
|
+
"ngTemplateOutlet",
|
|
761
|
+
"ngTemplateOutletInjector"
|
|
762
|
+
]
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
kind: "component",
|
|
766
|
+
type: ListComponent,
|
|
767
|
+
selector: "mona-list",
|
|
768
|
+
inputs: [
|
|
769
|
+
"ariaLabel",
|
|
770
|
+
"ariaLabelledBy",
|
|
771
|
+
"busy",
|
|
772
|
+
"data",
|
|
773
|
+
"focusOnMount",
|
|
774
|
+
"height",
|
|
775
|
+
"listClass",
|
|
776
|
+
"listId",
|
|
777
|
+
"listItemClass",
|
|
778
|
+
"listItemStyle",
|
|
779
|
+
"listRole",
|
|
780
|
+
"listStyle",
|
|
781
|
+
"maxHeight",
|
|
782
|
+
"maxWidth",
|
|
783
|
+
"size",
|
|
784
|
+
"textField",
|
|
785
|
+
"width"
|
|
786
|
+
],
|
|
787
|
+
outputs: ["itemActivate", "itemSelect"]
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
kind: "directive",
|
|
791
|
+
type: ListItemTemplateDirective,
|
|
792
|
+
selector: "ng-template[monaListItemTemplate]"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
kind: "directive",
|
|
796
|
+
type: ListGroupHeaderTemplateDirective,
|
|
797
|
+
selector: "ng-template[monaListGroupHeaderTemplate]"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
kind: "directive",
|
|
801
|
+
type: ListFooterTemplateDirective,
|
|
802
|
+
selector: "ng-template[monaListFooterTemplate]"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
kind: "directive",
|
|
806
|
+
type: ListHeaderTemplateDirective,
|
|
807
|
+
selector: "ng-template[monaListHeaderTemplate]"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
kind: "directive",
|
|
811
|
+
type: ListNoDataTemplateDirective,
|
|
812
|
+
selector: "ng-template[monaListNoDataTemplate]"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
kind: "component",
|
|
816
|
+
type: IndicatorIconComponent,
|
|
817
|
+
selector: "mona-indicator-icon",
|
|
818
|
+
inputs: [
|
|
819
|
+
"icon",
|
|
820
|
+
"interactive",
|
|
821
|
+
"label",
|
|
822
|
+
"preset",
|
|
823
|
+
"size",
|
|
824
|
+
"class"
|
|
825
|
+
],
|
|
826
|
+
outputs: ["activate"]
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
833
|
+
minVersion: "12.0.0",
|
|
834
|
+
version: "22.2.6",
|
|
835
|
+
ngImport: i0,
|
|
836
|
+
type: DropdownListComponent,
|
|
837
|
+
decorators: [{
|
|
838
|
+
type: Component,
|
|
839
|
+
args: [{
|
|
840
|
+
selector: "mona-dropdown-list",
|
|
841
|
+
hostDirectives: [
|
|
842
|
+
DropdownDataHandlerDirective,
|
|
843
|
+
DropdownListPopupHandlerDirective,
|
|
844
|
+
DropdownLiveRegionDirective
|
|
845
|
+
],
|
|
846
|
+
providers: [
|
|
847
|
+
ListService,
|
|
848
|
+
DropdownService,
|
|
849
|
+
DropdownListService,
|
|
850
|
+
{
|
|
851
|
+
provide: DROPDOWN_DATA_INPUT_TOKEN,
|
|
852
|
+
useExisting: forwardRef(() => DropdownListComponent),
|
|
853
|
+
multi: false
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
provide: DROPDOWN_POPUP_INPUT_TOKEN,
|
|
857
|
+
useExisting: forwardRef(() => DropdownListComponent),
|
|
858
|
+
multi: false
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
imports: [
|
|
862
|
+
NgTemplateOutlet,
|
|
863
|
+
ListComponent,
|
|
864
|
+
ListItemTemplateDirective,
|
|
865
|
+
ListGroupHeaderTemplateDirective,
|
|
866
|
+
ListFooterTemplateDirective,
|
|
867
|
+
ListHeaderTemplateDirective,
|
|
868
|
+
ListNoDataTemplateDirective,
|
|
869
|
+
IndicatorIconComponent
|
|
870
|
+
],
|
|
871
|
+
host: {
|
|
872
|
+
"[attr.aria-activedescendant]": "activeDescendant()",
|
|
873
|
+
"[attr.aria-busy]": "loading() ? 'true' : undefined",
|
|
874
|
+
"[attr.aria-controls]": "listId",
|
|
875
|
+
"[attr.aria-describedby]": "ariaDescribedBy() || null",
|
|
876
|
+
"[attr.aria-disabled]": "effectiveDisabled() ? true : undefined",
|
|
877
|
+
"[attr.aria-expanded]": "expanded()",
|
|
878
|
+
"[attr.aria-haspopup]": "'listbox'",
|
|
879
|
+
"[attr.aria-invalid]": "invalidState() ? true : undefined",
|
|
880
|
+
"[attr.aria-label]": "effectiveAriaLabel() || null",
|
|
881
|
+
"[attr.aria-labelledby]": "ariaLabelledBy() || null",
|
|
882
|
+
"[attr.aria-readonly]": "readonly() ? true : undefined",
|
|
883
|
+
"[attr.aria-required]": "required() ? true : undefined",
|
|
884
|
+
"[attr.data-disabled]": "effectiveDisabled() || null",
|
|
885
|
+
"[attr.data-invalid]": "invalidState() || null",
|
|
886
|
+
"[attr.data-readonly]": "readonly() || null",
|
|
887
|
+
"[attr.role]": "'combobox'",
|
|
888
|
+
"[attr.tabindex]": "effectiveDisabled() ? null : 0",
|
|
889
|
+
"[class]": "baseClass()",
|
|
890
|
+
"(focusout)": "onFocusOut($event)"
|
|
891
|
+
},
|
|
892
|
+
template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<span [class]=\"valueContainerClass()\">\n @if (!valueTemplate()) {\n <span>\n @if (selectedListItem()) {\n <span>{{ valueText() }}</span>\n } @else {\n <span>{{ placeholder() }}</span>\n }\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"valueTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItem() }\"></ng-container>\n }\n</span>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <div [class]=\"listPopupClass()\" (pointerdown)=\"onPopupPointerDown($event)\">\n <mona-list [listId]=\"listId\" [focusOnMount]=\"false\" [size]=\"size()\" (itemSelect)=\"onItemSelect($event)\">\n @if (footerTemplate()) {\n <ng-template monaListFooterTemplate>\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\"></ng-container>\n </ng-template>\n }\n @if (groupHeaderTemplate()) {\n <ng-template monaListGroupHeaderTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupHeaderTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (headerTemplate()) {\n <ng-template monaListHeaderTemplate>\n <ng-container [ngTemplateOutlet]=\"headerTemplate()\"></ng-container>\n </ng-template>\n }\n @if (itemTemplate()) {\n <ng-template monaListItemTemplate let-dataItem>\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem }\"></ng-container>\n </ng-template>\n }\n @if (noDataTemplate()) {\n <ng-template monaListNoDataTemplate>\n <ng-container [ngTemplateOutlet]=\"noDataTemplate()\"></ng-container>\n </ng-template>\n }\n </mona-list>\n </div>\n</ng-template>\n"
|
|
893
|
+
}]
|
|
894
|
+
}],
|
|
895
|
+
ctorParameters: () => [],
|
|
896
|
+
propDecorators: {
|
|
897
|
+
footerTemplate: [{
|
|
898
|
+
type: i0.ContentChild,
|
|
899
|
+
args: [i0.forwardRef(() => DropdownFooterTemplateDirective), {
|
|
900
|
+
read: TemplateRef,
|
|
901
|
+
isSignal: true
|
|
902
|
+
}]
|
|
903
|
+
}],
|
|
904
|
+
groupHeaderTemplate: [{
|
|
905
|
+
type: i0.ContentChild,
|
|
906
|
+
args: [i0.forwardRef(() => DropdownGroupHeaderTemplateDirective), {
|
|
907
|
+
read: TemplateRef,
|
|
908
|
+
isSignal: true
|
|
909
|
+
}]
|
|
910
|
+
}],
|
|
911
|
+
headerTemplate: [{
|
|
912
|
+
type: i0.ContentChild,
|
|
913
|
+
args: [i0.forwardRef(() => DropdownHeaderTemplateDirective), {
|
|
914
|
+
read: TemplateRef,
|
|
915
|
+
isSignal: true
|
|
916
|
+
}]
|
|
917
|
+
}],
|
|
918
|
+
itemTemplate: [{
|
|
919
|
+
type: i0.ContentChild,
|
|
920
|
+
args: [i0.forwardRef(() => DropdownItemTemplateDirective), {
|
|
921
|
+
read: TemplateRef,
|
|
922
|
+
isSignal: true
|
|
923
|
+
}]
|
|
924
|
+
}],
|
|
925
|
+
noDataTemplate: [{
|
|
926
|
+
type: i0.ContentChild,
|
|
927
|
+
args: [i0.forwardRef(() => DropdownNoDataTemplateDirective), {
|
|
928
|
+
read: TemplateRef,
|
|
929
|
+
isSignal: true
|
|
930
|
+
}]
|
|
931
|
+
}],
|
|
932
|
+
popupTemplate: [{
|
|
933
|
+
type: i0.ViewChild,
|
|
934
|
+
args: ["popupTemplate", { isSignal: true }]
|
|
935
|
+
}],
|
|
936
|
+
prefixTemplate: [{
|
|
937
|
+
type: i0.ContentChild,
|
|
938
|
+
args: [i0.forwardRef(() => DropdownPrefixTemplateDirective), {
|
|
939
|
+
read: TemplateRef,
|
|
940
|
+
isSignal: true
|
|
941
|
+
}]
|
|
942
|
+
}],
|
|
943
|
+
valueTemplate: [{
|
|
944
|
+
type: i0.ContentChild,
|
|
945
|
+
args: [i0.forwardRef(() => DropdownListValueTemplateDirective), {
|
|
946
|
+
read: TemplateRef,
|
|
947
|
+
isSignal: true
|
|
948
|
+
}]
|
|
949
|
+
}],
|
|
950
|
+
ariaDescribedBy: [{
|
|
951
|
+
type: i0.Input,
|
|
952
|
+
args: [{
|
|
953
|
+
isSignal: true,
|
|
954
|
+
alias: "aria-describedby",
|
|
955
|
+
required: false
|
|
956
|
+
}]
|
|
957
|
+
}],
|
|
958
|
+
ariaLabel: [{
|
|
959
|
+
type: i0.Input,
|
|
960
|
+
args: [{
|
|
961
|
+
isSignal: true,
|
|
962
|
+
alias: "aria-label",
|
|
963
|
+
required: false
|
|
964
|
+
}]
|
|
965
|
+
}],
|
|
966
|
+
ariaLabelledBy: [{
|
|
967
|
+
type: i0.Input,
|
|
968
|
+
args: [{
|
|
969
|
+
isSignal: true,
|
|
970
|
+
alias: "aria-labelledby",
|
|
971
|
+
required: false
|
|
972
|
+
}]
|
|
973
|
+
}],
|
|
974
|
+
close: [{
|
|
975
|
+
type: i0.Output,
|
|
976
|
+
args: ["close"]
|
|
977
|
+
}],
|
|
978
|
+
closed: [{
|
|
979
|
+
type: i0.Output,
|
|
980
|
+
args: ["closed"]
|
|
981
|
+
}],
|
|
982
|
+
data: [{
|
|
983
|
+
type: i0.Input,
|
|
984
|
+
args: [{
|
|
985
|
+
isSignal: true,
|
|
986
|
+
alias: "data",
|
|
987
|
+
required: false
|
|
988
|
+
}]
|
|
989
|
+
}],
|
|
990
|
+
disabled: [{
|
|
991
|
+
type: i0.Input,
|
|
992
|
+
args: [{
|
|
993
|
+
isSignal: true,
|
|
994
|
+
alias: "disabled",
|
|
995
|
+
required: false
|
|
996
|
+
}]
|
|
997
|
+
}],
|
|
998
|
+
invalid: [{
|
|
999
|
+
type: i0.Input,
|
|
1000
|
+
args: [{
|
|
1001
|
+
isSignal: true,
|
|
1002
|
+
alias: "invalid",
|
|
1003
|
+
required: false
|
|
1004
|
+
}]
|
|
1005
|
+
}],
|
|
1006
|
+
itemDisabled: [{
|
|
1007
|
+
type: i0.Input,
|
|
1008
|
+
args: [{
|
|
1009
|
+
isSignal: true,
|
|
1010
|
+
alias: "itemDisabled",
|
|
1011
|
+
required: false
|
|
1012
|
+
}]
|
|
1013
|
+
}],
|
|
1014
|
+
loading: [{
|
|
1015
|
+
type: i0.Input,
|
|
1016
|
+
args: [{
|
|
1017
|
+
isSignal: true,
|
|
1018
|
+
alias: "loading",
|
|
1019
|
+
required: false
|
|
1020
|
+
}]
|
|
1021
|
+
}],
|
|
1022
|
+
open: [{
|
|
1023
|
+
type: i0.Output,
|
|
1024
|
+
args: ["open"]
|
|
1025
|
+
}],
|
|
1026
|
+
opened: [{
|
|
1027
|
+
type: i0.Output,
|
|
1028
|
+
args: ["opened"]
|
|
1029
|
+
}],
|
|
1030
|
+
placeholder: [{
|
|
1031
|
+
type: i0.Input,
|
|
1032
|
+
args: [{
|
|
1033
|
+
isSignal: true,
|
|
1034
|
+
alias: "placeholder",
|
|
1035
|
+
required: false
|
|
1036
|
+
}]
|
|
1037
|
+
}],
|
|
1038
|
+
popupClass: [{
|
|
1039
|
+
type: i0.Input,
|
|
1040
|
+
args: [{
|
|
1041
|
+
isSignal: true,
|
|
1042
|
+
alias: "popupClass",
|
|
1043
|
+
required: false
|
|
1044
|
+
}]
|
|
1045
|
+
}],
|
|
1046
|
+
popupHeight: [{
|
|
1047
|
+
type: i0.Input,
|
|
1048
|
+
args: [{
|
|
1049
|
+
isSignal: true,
|
|
1050
|
+
alias: "popupHeight",
|
|
1051
|
+
required: false
|
|
1052
|
+
}]
|
|
1053
|
+
}],
|
|
1054
|
+
popupWidth: [{
|
|
1055
|
+
type: i0.Input,
|
|
1056
|
+
args: [{
|
|
1057
|
+
isSignal: true,
|
|
1058
|
+
alias: "popupWidth",
|
|
1059
|
+
required: false
|
|
1060
|
+
}]
|
|
1061
|
+
}],
|
|
1062
|
+
readonly: [{
|
|
1063
|
+
type: i0.Input,
|
|
1064
|
+
args: [{
|
|
1065
|
+
isSignal: true,
|
|
1066
|
+
alias: "readonly",
|
|
1067
|
+
required: false
|
|
1068
|
+
}]
|
|
1069
|
+
}],
|
|
1070
|
+
required: [{
|
|
1071
|
+
type: i0.Input,
|
|
1072
|
+
args: [{
|
|
1073
|
+
isSignal: true,
|
|
1074
|
+
alias: "required",
|
|
1075
|
+
required: false
|
|
1076
|
+
}]
|
|
1077
|
+
}],
|
|
1078
|
+
rounded: [{
|
|
1079
|
+
type: i0.Input,
|
|
1080
|
+
args: [{
|
|
1081
|
+
isSignal: true,
|
|
1082
|
+
alias: "rounded",
|
|
1083
|
+
required: false
|
|
1084
|
+
}]
|
|
1085
|
+
}],
|
|
1086
|
+
showClearButton: [{
|
|
1087
|
+
type: i0.Input,
|
|
1088
|
+
args: [{
|
|
1089
|
+
isSignal: true,
|
|
1090
|
+
alias: "showClearButton",
|
|
1091
|
+
required: false
|
|
1092
|
+
}]
|
|
1093
|
+
}],
|
|
1094
|
+
size: [{
|
|
1095
|
+
type: i0.Input,
|
|
1096
|
+
args: [{
|
|
1097
|
+
isSignal: true,
|
|
1098
|
+
alias: "size",
|
|
1099
|
+
required: false
|
|
1100
|
+
}]
|
|
1101
|
+
}],
|
|
1102
|
+
textField: [{
|
|
1103
|
+
type: i0.Input,
|
|
1104
|
+
args: [{
|
|
1105
|
+
isSignal: true,
|
|
1106
|
+
alias: "textField",
|
|
1107
|
+
required: false
|
|
1108
|
+
}]
|
|
1109
|
+
}],
|
|
1110
|
+
touch: [{
|
|
1111
|
+
type: i0.Output,
|
|
1112
|
+
args: ["touch"]
|
|
1113
|
+
}],
|
|
1114
|
+
touched: [{
|
|
1115
|
+
type: i0.Input,
|
|
1116
|
+
args: [{
|
|
1117
|
+
isSignal: true,
|
|
1118
|
+
alias: "touched",
|
|
1119
|
+
required: false
|
|
1120
|
+
}]
|
|
1121
|
+
}],
|
|
1122
|
+
userClass: [{
|
|
1123
|
+
type: i0.Input,
|
|
1124
|
+
args: [{
|
|
1125
|
+
isSignal: true,
|
|
1126
|
+
alias: "class",
|
|
1127
|
+
required: false
|
|
1128
|
+
}]
|
|
1129
|
+
}],
|
|
1130
|
+
value: [{
|
|
1131
|
+
type: i0.Input,
|
|
1132
|
+
args: [{
|
|
1133
|
+
isSignal: true,
|
|
1134
|
+
alias: "value",
|
|
1135
|
+
required: false
|
|
1136
|
+
}]
|
|
1137
|
+
}, {
|
|
1138
|
+
type: i0.Output,
|
|
1139
|
+
args: ["valueChange"]
|
|
1140
|
+
}],
|
|
1141
|
+
valueField: [{
|
|
1142
|
+
type: i0.Input,
|
|
1143
|
+
args: [{
|
|
1144
|
+
isSignal: true,
|
|
1145
|
+
alias: "valueField",
|
|
1146
|
+
required: false
|
|
1147
|
+
}]
|
|
1148
|
+
}],
|
|
1149
|
+
valuePrimitive: [{
|
|
1150
|
+
type: i0.Input,
|
|
1151
|
+
args: [{
|
|
1152
|
+
isSignal: true,
|
|
1153
|
+
alias: "valuePrimitive",
|
|
1154
|
+
required: false
|
|
1155
|
+
}]
|
|
1156
|
+
}]
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
695
1159
|
export { DROPDOWN_LIST_DEFAULT_MESSAGES, DropdownListComponent, DropdownListValueTemplateDirective };
|
|
696
|
-
|
|
1160
|
+
|
|
1161
|
+
//# sourceMappingURL=nanahoshi-mona-ui-dropdown-list.mjs.map
|