@nanahoshi/mona-ui 0.27.2 → 0.28.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/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 +2070 -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-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 +59 -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 +6 -2
- package/package.json +62 -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-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 +17 -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,40 +1,48 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { takeUntilDestroyed } from
|
|
5
|
-
import { RouterLink } from
|
|
6
|
-
import { LucideCircleX } from
|
|
7
|
-
import { ButtonDirective } from
|
|
8
|
-
import { MonaI18nService } from
|
|
9
|
-
import { fromEvent } from
|
|
10
|
-
import { twMerge } from
|
|
11
|
-
import { cva } from
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, isDevMode, model, output, viewChild } from "@angular/core";
|
|
4
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
5
|
+
import { RouterLink } from "@angular/router";
|
|
6
|
+
import { LucideCircleX } from "@lucide/angular";
|
|
7
|
+
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
8
|
+
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
9
|
+
import { fromEvent } from "rxjs";
|
|
10
|
+
import { twMerge } from "tailwind-merge";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
import { themeRaisedSurfaceClasses, themeSelectionBorderClasses } from "@nanahoshi/mona-ui/internal";
|
|
13
|
+
const CHIP_DEFAULT_MESSAGES = { removeLabel: (label) => label ? `Remove, ${label}` : "Remove, item" };
|
|
14
|
+
var ChipPrefixTemplateDirective = class ChipPrefixTemplateDirective {
|
|
15
|
+
static {
|
|
16
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
17
|
+
minVersion: "12.0.0",
|
|
18
|
+
version: "22.2.6",
|
|
19
|
+
ngImport: i0,
|
|
20
|
+
type: ChipPrefixTemplateDirective,
|
|
21
|
+
deps: [],
|
|
22
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
27
|
+
minVersion: "14.0.0",
|
|
28
|
+
version: "22.2.6",
|
|
29
|
+
type: ChipPrefixTemplateDirective,
|
|
30
|
+
isStandalone: true,
|
|
31
|
+
selector: "ng-template[monaChipPrefixTemplate]",
|
|
32
|
+
ngImport: i0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
18
35
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type: Directive,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: "ng-template[monaChipPrefixTemplate]"
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The removable, interactive chip's own control, beside the remove button. Its focus ring stays off that button.
|
|
37
|
-
*/
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
37
|
+
minVersion: "12.0.0",
|
|
38
|
+
version: "22.2.6",
|
|
39
|
+
ngImport: i0,
|
|
40
|
+
type: ChipPrefixTemplateDirective,
|
|
41
|
+
decorators: [{
|
|
42
|
+
type: Directive,
|
|
43
|
+
args: [{ selector: "ng-template[monaChipPrefixTemplate]" }]
|
|
44
|
+
}]
|
|
45
|
+
});
|
|
38
46
|
const CHIP_BODY_CONTROL_CLASSES = `
|
|
39
47
|
inline-flex items-center gap-1.5 [border-radius:inherit]
|
|
40
48
|
focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator
|
|
@@ -47,561 +55,774 @@ const chipThemeVariants = cva(`
|
|
|
47
55
|
[&_button[data-chip-remove='true']]:relative
|
|
48
56
|
[&_button[data-chip-remove='true']]:before:absolute
|
|
49
57
|
`, {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
variants: {
|
|
59
|
+
disabled: {
|
|
60
|
+
true: "pointer-events-none opacity-50 cursor-not-allowed select-none",
|
|
61
|
+
false: ""
|
|
62
|
+
},
|
|
63
|
+
interactive: {
|
|
64
|
+
true: `
|
|
57
65
|
cursor-pointer
|
|
58
66
|
focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-indicator
|
|
59
67
|
`,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
false: ""
|
|
69
|
+
},
|
|
70
|
+
look: {
|
|
71
|
+
default: `
|
|
64
72
|
${themeRaisedSurfaceClasses} text-foreground
|
|
65
73
|
border border-border
|
|
66
74
|
`,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
primary: "bg-primary text-primary-foreground",
|
|
76
|
+
success: "bg-success text-success-foreground",
|
|
77
|
+
error: "bg-error text-error-foreground",
|
|
78
|
+
warning: "bg-warning text-warning-foreground",
|
|
79
|
+
info: "bg-info text-info-foreground",
|
|
80
|
+
outline: "bg-transparent text-foreground border border-input-border",
|
|
81
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
82
|
+
ghost: "bg-transparent text-foreground shadow-none"
|
|
83
|
+
},
|
|
84
|
+
rounded: {
|
|
85
|
+
full: "rounded-full",
|
|
86
|
+
large: "rounded-lg",
|
|
87
|
+
medium: "rounded-md",
|
|
88
|
+
none: "rounded-none",
|
|
89
|
+
small: "rounded-sm"
|
|
90
|
+
},
|
|
91
|
+
size: {
|
|
92
|
+
small: `
|
|
85
93
|
px-1 py-0.5
|
|
86
94
|
[&_button[data-chip-remove='true']]:w-3
|
|
87
95
|
[&_button[data-chip-remove='true']]:h-3
|
|
88
96
|
[&_button[data-chip-remove='true']]:before:-inset-1.5
|
|
89
97
|
`,
|
|
90
|
-
|
|
98
|
+
medium: `
|
|
91
99
|
px-1.5 py-1
|
|
92
100
|
[&_button[data-chip-remove='true']]:w-4
|
|
93
101
|
[&_button[data-chip-remove='true']]:h-4
|
|
94
102
|
[&_button[data-chip-remove='true']]:before:-inset-1
|
|
95
103
|
`,
|
|
96
|
-
|
|
104
|
+
large: `
|
|
97
105
|
px-2 py-1.5
|
|
98
106
|
[&_button[data-chip-remove='true']]:w-5
|
|
99
107
|
[&_button[data-chip-remove='true']]:h-5
|
|
100
108
|
[&_button[data-chip-remove='true']]:before:-inset-0.5
|
|
101
109
|
`
|
|
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
|
-
class: `
|
|
110
|
+
},
|
|
111
|
+
selected: {
|
|
112
|
+
true: themeSelectionBorderClasses,
|
|
113
|
+
false: ""
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
compoundVariants: [
|
|
117
|
+
{
|
|
118
|
+
look: "default",
|
|
119
|
+
selected: true,
|
|
120
|
+
class: "after:-inset-px bg-(--color-selected) text-(--color-selected-foreground)"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
look: "primary",
|
|
124
|
+
selected: true,
|
|
125
|
+
class: "bg-primary-selected text-primary-foreground"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
look: "secondary",
|
|
129
|
+
selected: true,
|
|
130
|
+
class: "bg-secondary-selected text-secondary-foreground"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
look: "success",
|
|
134
|
+
selected: true,
|
|
135
|
+
class: "bg-success-selected text-success-foreground"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
look: "error",
|
|
139
|
+
selected: true,
|
|
140
|
+
class: "bg-error-selected text-error-foreground"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
look: "warning",
|
|
144
|
+
selected: true,
|
|
145
|
+
class: "bg-warning-selected text-warning-foreground"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
look: "info",
|
|
149
|
+
selected: true,
|
|
150
|
+
class: "bg-info-selected text-info-foreground"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
look: "outline",
|
|
154
|
+
selected: true,
|
|
155
|
+
class: "after:-inset-px bg-(--color-selected) text-(--color-selected-foreground)"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
look: "ghost",
|
|
159
|
+
selected: true,
|
|
160
|
+
class: "bg-(--color-selected) text-(--color-selected-foreground)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
look: "default",
|
|
164
|
+
interactive: true,
|
|
165
|
+
selected: false,
|
|
166
|
+
class: `
|
|
160
167
|
hover:bg-hover hover:text-foreground
|
|
161
168
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
162
169
|
`
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
look: "primary",
|
|
173
|
+
interactive: true,
|
|
174
|
+
selected: false,
|
|
175
|
+
class: `
|
|
169
176
|
hover:bg-primary-hover hover:text-primary-foreground
|
|
170
177
|
active:bg-primary-active active:text-primary-foreground
|
|
171
178
|
`
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
look: "secondary",
|
|
182
|
+
interactive: true,
|
|
183
|
+
selected: false,
|
|
184
|
+
class: `
|
|
178
185
|
hover:bg-secondary-hover hover:text-secondary-foreground
|
|
179
186
|
active:bg-secondary-active active:text-secondary-foreground
|
|
180
187
|
`
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
look: "success",
|
|
191
|
+
interactive: true,
|
|
192
|
+
selected: false,
|
|
193
|
+
class: `
|
|
187
194
|
hover:bg-success-hover hover:text-success-foreground
|
|
188
195
|
active:bg-success-active active:text-success-foreground
|
|
189
196
|
`
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
look: "error",
|
|
200
|
+
interactive: true,
|
|
201
|
+
selected: false,
|
|
202
|
+
class: `
|
|
196
203
|
hover:bg-error-hover hover:text-error-foreground
|
|
197
204
|
active:bg-error-active active:text-error-foreground
|
|
198
205
|
`
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
look: "warning",
|
|
209
|
+
interactive: true,
|
|
210
|
+
selected: false,
|
|
211
|
+
class: `
|
|
205
212
|
hover:bg-warning-hover hover:text-warning-foreground
|
|
206
213
|
active:bg-warning-active active:text-warning-foreground
|
|
207
214
|
`
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
look: "info",
|
|
218
|
+
interactive: true,
|
|
219
|
+
selected: false,
|
|
220
|
+
class: `
|
|
214
221
|
hover:bg-info-hover hover:text-info-foreground
|
|
215
222
|
active:bg-info-active active:text-info-foreground
|
|
216
223
|
`
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
look: "outline",
|
|
227
|
+
interactive: true,
|
|
228
|
+
selected: false,
|
|
229
|
+
class: `
|
|
223
230
|
hover:bg-hover hover:text-foreground
|
|
224
231
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
225
232
|
`
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
look: "ghost",
|
|
236
|
+
interactive: true,
|
|
237
|
+
selected: false,
|
|
238
|
+
class: `
|
|
232
239
|
hover:bg-hover hover:text-foreground
|
|
233
240
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
234
241
|
`
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
look: "default",
|
|
245
|
+
interactive: true,
|
|
246
|
+
selected: true,
|
|
247
|
+
class: `
|
|
241
248
|
hover:bg-(--color-selected-hover) hover:text-(--color-selected-hover-foreground)
|
|
242
249
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
243
250
|
`
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
look: "primary",
|
|
254
|
+
interactive: true,
|
|
255
|
+
selected: true,
|
|
256
|
+
class: `
|
|
250
257
|
hover:bg-primary-selected/95 hover:text-primary-foreground
|
|
251
258
|
active:bg-primary-selected/100 active:text-primary-foreground
|
|
252
259
|
`
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
look: "secondary",
|
|
263
|
+
interactive: true,
|
|
264
|
+
selected: true,
|
|
265
|
+
class: `
|
|
259
266
|
hover:bg-secondary-selected/95 hover:text-secondary-foreground
|
|
260
267
|
active:bg-secondary-selected/100 active:text-secondary-foreground
|
|
261
268
|
`
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
look: "success",
|
|
272
|
+
interactive: true,
|
|
273
|
+
selected: true,
|
|
274
|
+
class: `
|
|
268
275
|
hover:bg-success-selected/95 hover:text-success-foreground
|
|
269
276
|
active:bg-success-selected/100 active:text-success-foreground
|
|
270
277
|
`
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
look: "error",
|
|
281
|
+
interactive: true,
|
|
282
|
+
selected: true,
|
|
283
|
+
class: `
|
|
277
284
|
hover:bg-error-selected/95 hover:text-error-foreground
|
|
278
285
|
active:bg-error-selected/100 active:text-error-foreground
|
|
279
286
|
`
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
look: "warning",
|
|
290
|
+
interactive: true,
|
|
291
|
+
selected: true,
|
|
292
|
+
class: `
|
|
286
293
|
hover:bg-warning-selected/95 hover:text-warning-foreground
|
|
287
294
|
active:bg-warning-selected/100 active:text-warning-foreground
|
|
288
295
|
`
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
look: "info",
|
|
299
|
+
interactive: true,
|
|
300
|
+
selected: true,
|
|
301
|
+
class: `
|
|
295
302
|
hover:bg-info-selected/95 hover:text-info-foreground
|
|
296
303
|
active:bg-info-selected/100 active:text-info-foreground
|
|
297
304
|
`
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
look: "outline",
|
|
308
|
+
interactive: true,
|
|
309
|
+
selected: true,
|
|
310
|
+
class: `
|
|
304
311
|
hover:bg-(--color-selected-hover) hover:text-(--color-selected-hover-foreground)
|
|
305
312
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
306
313
|
`
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
look: "ghost",
|
|
317
|
+
interactive: true,
|
|
318
|
+
selected: true,
|
|
319
|
+
class: `
|
|
313
320
|
hover:bg-(--color-selected-hover) hover:text-(--color-selected-hover-foreground)
|
|
314
321
|
active:bg-(--color-selected-active) active:text-(--color-selected-active-foreground)
|
|
315
322
|
`
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
defaultVariants: {
|
|
326
|
+
interactive: false,
|
|
327
|
+
rounded: "medium",
|
|
328
|
+
selected: false
|
|
329
|
+
}
|
|
323
330
|
});
|
|
324
|
-
|
|
325
|
-
/** Projected controls keep their own clicks and keys. */
|
|
326
331
|
const PROJECTED_CONTROL_SELECTOR = "a[href], button, input, select, textarea, [role='button'], [role='link'], [tabindex]";
|
|
327
|
-
class ChipComponent {
|
|
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
|
-
|
|
332
|
+
var ChipComponent = class ChipComponent {
|
|
333
|
+
#destroyRef;
|
|
334
|
+
#elementRef;
|
|
335
|
+
#i18n;
|
|
336
|
+
#routerLink;
|
|
337
|
+
constructor() {
|
|
338
|
+
this.#destroyRef = inject(DestroyRef);
|
|
339
|
+
this.#elementRef = inject(ElementRef);
|
|
340
|
+
this.#i18n = inject(MonaI18nService);
|
|
341
|
+
this.#routerLink = inject(RouterLink, { optional: true });
|
|
342
|
+
this.ariaChecked = computed(() => {
|
|
343
|
+
if (!this.toggleable()) return;
|
|
344
|
+
return this.selected() ? "true" : "false";
|
|
345
|
+
}, ...ngDevMode ? [{ debugName: "ariaChecked" }] : /* istanbul ignore next */ []);
|
|
346
|
+
this.baseClass = computed(() => {
|
|
347
|
+
const disabled = this.disabled();
|
|
348
|
+
const interactive = this.bodyInteractive();
|
|
349
|
+
const look = this.look();
|
|
350
|
+
const rounded = this.rounded();
|
|
351
|
+
const size = this.size();
|
|
352
|
+
const selected = this.selected();
|
|
353
|
+
const userClass = this.userClass();
|
|
354
|
+
const variantClasses = chipThemeVariants({
|
|
355
|
+
disabled,
|
|
356
|
+
interactive,
|
|
357
|
+
look,
|
|
358
|
+
rounded,
|
|
359
|
+
size,
|
|
360
|
+
selected
|
|
361
|
+
});
|
|
362
|
+
return twMerge(variantClasses, userClass);
|
|
363
|
+
}, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
|
|
364
|
+
this.bodyClasses = computed(() => this.split() ? CHIP_BODY_CONTROL_CLASSES : "contents", ...ngDevMode ? [{ debugName: "bodyClasses" }] : /* istanbul ignore next */ []);
|
|
365
|
+
this.bodyElement = viewChild.required("body", ...ngDevMode ? [{ debugName: "bodyElement" }] : /* istanbul ignore next */ []);
|
|
366
|
+
this.bodyInteractive = computed(() => !this.disabled() && (this.toggleable() || this.isLink()), ...ngDevMode ? [{ debugName: "bodyInteractive" }] : /* istanbul ignore next */ []);
|
|
367
|
+
this.controlRole = computed(() => {
|
|
368
|
+
if (this.toggleable()) return "checkbox";
|
|
369
|
+
return this.isLink() ? "link" : null;
|
|
370
|
+
}, ...ngDevMode ? [{ debugName: "controlRole" }] : /* istanbul ignore next */ []);
|
|
371
|
+
this.effectiveTabIndex = computed(() => {
|
|
372
|
+
const explicitTabindex = this.tabindex();
|
|
373
|
+
if (!this.controlRole() && explicitTabindex == null) return null;
|
|
374
|
+
return this.disabled() ? -1 : explicitTabindex ?? 0;
|
|
375
|
+
}, ...ngDevMode ? [{ debugName: "effectiveTabIndex" }] : /* istanbul ignore next */ []);
|
|
376
|
+
this.hostRole = computed(() => {
|
|
377
|
+
if (this.split()) return "group";
|
|
378
|
+
return this.controlRole() ?? (this.ariaLabel() ? "group" : null);
|
|
379
|
+
}, ...ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []);
|
|
380
|
+
this.iconSize = computed(() => {
|
|
381
|
+
switch (this.size()) {
|
|
382
|
+
case "small": return 13;
|
|
383
|
+
case "medium": return 14;
|
|
384
|
+
case "large": return 16;
|
|
385
|
+
default: return 14;
|
|
386
|
+
}
|
|
387
|
+
}, ...ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []);
|
|
388
|
+
this.isLink = computed(() => !!this.#routerLink, ...ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []);
|
|
389
|
+
this.messages = this.#i18n.componentMessages("chip", CHIP_DEFAULT_MESSAGES);
|
|
390
|
+
this.prefixTemplate = contentChild(ChipPrefixTemplateDirective, {
|
|
391
|
+
...ngDevMode ? { debugName: "prefixTemplate" } : /* istanbul ignore next */ {},
|
|
392
|
+
read: TemplateRef
|
|
393
|
+
});
|
|
394
|
+
this.split = computed(() => this.removable() && !!this.controlRole(), ...ngDevMode ? [{ debugName: "split" }] : /* istanbul ignore next */ []);
|
|
395
|
+
this.ariaLabel = input("", {
|
|
396
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
397
|
+
alias: "aria-label"
|
|
398
|
+
});
|
|
399
|
+
this.contentClick = output();
|
|
400
|
+
this.disabled = input(false, {
|
|
401
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
402
|
+
transform: booleanAttribute
|
|
403
|
+
});
|
|
404
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
405
|
+
this.look = input("default", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
|
|
406
|
+
this.removable = input(false, {
|
|
407
|
+
...ngDevMode ? { debugName: "removable" } : /* istanbul ignore next */ {},
|
|
408
|
+
transform: booleanAttribute
|
|
409
|
+
});
|
|
410
|
+
this.remove = output();
|
|
411
|
+
this.removeLabel = input(...ngDevMode ? [void 0, { debugName: "removeLabel" }] : /* istanbul ignore next */ []);
|
|
412
|
+
this.removeTabIndex = input(0, ...ngDevMode ? [{ debugName: "removeTabIndex" }] : /* istanbul ignore next */ []);
|
|
413
|
+
this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
414
|
+
this.selected = model(false, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
415
|
+
this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
416
|
+
this.tabindex = input(...ngDevMode ? [void 0, { debugName: "tabindex" }] : /* istanbul ignore next */ []);
|
|
417
|
+
this.toggleable = input(false, {
|
|
418
|
+
...ngDevMode ? { debugName: "toggleable" } : /* istanbul ignore next */ {},
|
|
419
|
+
transform: booleanAttribute
|
|
420
|
+
});
|
|
421
|
+
this.userClass = input("", {
|
|
422
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
423
|
+
alias: "class"
|
|
424
|
+
});
|
|
425
|
+
this.value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
|
|
426
|
+
afterNextRender({ read: () => {
|
|
427
|
+
this.#setSubscriptions();
|
|
428
|
+
this.#warnIfRemoveHasNoName();
|
|
429
|
+
} });
|
|
430
|
+
}
|
|
431
|
+
onRemoveClick(event) {
|
|
432
|
+
if (this.disabled()) return;
|
|
433
|
+
event.stopPropagation();
|
|
434
|
+
this.remove.emit(event);
|
|
435
|
+
}
|
|
436
|
+
#handleActivation() {
|
|
437
|
+
if (!this.toggleable() || this.disabled()) return;
|
|
438
|
+
this.selected.set(!this.selected());
|
|
439
|
+
this.contentClick.emit();
|
|
440
|
+
}
|
|
441
|
+
#handleKeydown(event) {
|
|
442
|
+
const target = event.target;
|
|
443
|
+
const onControl = target === this.#elementRef.nativeElement || target === this.bodyElement().nativeElement;
|
|
444
|
+
if (this.disabled()) return;
|
|
445
|
+
if (event.key === "Delete" || event.key === "Backspace") {
|
|
446
|
+
if (this.removable() && (onControl || target.closest("button[data-chip-remove]"))) {
|
|
447
|
+
event.preventDefault();
|
|
448
|
+
this.remove.emit(event);
|
|
449
|
+
}
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
if (!onControl) return;
|
|
453
|
+
if (event.key === "Enter" && this.isLink()) {
|
|
454
|
+
event.preventDefault();
|
|
455
|
+
if (!event.repeat) this.#elementRef.nativeElement.click();
|
|
456
|
+
} else if ((event.key === "Enter" || event.key === " ") && this.toggleable()) {
|
|
457
|
+
event.preventDefault();
|
|
458
|
+
if (!event.repeat) this.#handleActivation();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
#isOnProjectedControl(event) {
|
|
462
|
+
const control = event.target.closest?.(PROJECTED_CONTROL_SELECTOR);
|
|
463
|
+
return !!control && control !== this.#elementRef.nativeElement && control !== this.bodyElement().nativeElement;
|
|
464
|
+
}
|
|
465
|
+
#setSubscriptions() {
|
|
466
|
+
const element = this.#elementRef.nativeElement;
|
|
467
|
+
fromEvent(element, "keydown").pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => this.#handleKeydown(event));
|
|
468
|
+
fromEvent(element, "click").pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
|
|
469
|
+
if (!this.#isOnProjectedControl(event)) this.#handleActivation();
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
#warnIfRemoveHasNoName() {
|
|
473
|
+
if (isDevMode() && this.removable() && !this.label() && !this.ariaLabel() && !this.removeLabel()) console.warn("[Mona Chip] A removable chip with projected content needs removeLabel or aria-label, or its remove button reads as a generic item.", this.#elementRef.nativeElement);
|
|
474
|
+
}
|
|
475
|
+
static {
|
|
476
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
477
|
+
minVersion: "12.0.0",
|
|
478
|
+
version: "22.2.6",
|
|
479
|
+
ngImport: i0,
|
|
480
|
+
type: ChipComponent,
|
|
481
|
+
deps: [],
|
|
482
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
static {
|
|
486
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
487
|
+
minVersion: "17.0.0",
|
|
488
|
+
version: "22.2.6",
|
|
489
|
+
type: ChipComponent,
|
|
490
|
+
isStandalone: true,
|
|
491
|
+
selector: "mona-chip",
|
|
492
|
+
inputs: {
|
|
493
|
+
ariaLabel: {
|
|
494
|
+
classPropertyName: "ariaLabel",
|
|
495
|
+
publicName: "aria-label",
|
|
496
|
+
isSignal: true,
|
|
497
|
+
isRequired: false,
|
|
498
|
+
transformFunction: null
|
|
499
|
+
},
|
|
500
|
+
disabled: {
|
|
501
|
+
classPropertyName: "disabled",
|
|
502
|
+
publicName: "disabled",
|
|
503
|
+
isSignal: true,
|
|
504
|
+
isRequired: false,
|
|
505
|
+
transformFunction: null
|
|
506
|
+
},
|
|
507
|
+
label: {
|
|
508
|
+
classPropertyName: "label",
|
|
509
|
+
publicName: "label",
|
|
510
|
+
isSignal: true,
|
|
511
|
+
isRequired: false,
|
|
512
|
+
transformFunction: null
|
|
513
|
+
},
|
|
514
|
+
look: {
|
|
515
|
+
classPropertyName: "look",
|
|
516
|
+
publicName: "look",
|
|
517
|
+
isSignal: true,
|
|
518
|
+
isRequired: false,
|
|
519
|
+
transformFunction: null
|
|
520
|
+
},
|
|
521
|
+
removable: {
|
|
522
|
+
classPropertyName: "removable",
|
|
523
|
+
publicName: "removable",
|
|
524
|
+
isSignal: true,
|
|
525
|
+
isRequired: false,
|
|
526
|
+
transformFunction: null
|
|
527
|
+
},
|
|
528
|
+
removeLabel: {
|
|
529
|
+
classPropertyName: "removeLabel",
|
|
530
|
+
publicName: "removeLabel",
|
|
531
|
+
isSignal: true,
|
|
532
|
+
isRequired: false,
|
|
533
|
+
transformFunction: null
|
|
534
|
+
},
|
|
535
|
+
removeTabIndex: {
|
|
536
|
+
classPropertyName: "removeTabIndex",
|
|
537
|
+
publicName: "removeTabIndex",
|
|
538
|
+
isSignal: true,
|
|
539
|
+
isRequired: false,
|
|
540
|
+
transformFunction: null
|
|
541
|
+
},
|
|
542
|
+
rounded: {
|
|
543
|
+
classPropertyName: "rounded",
|
|
544
|
+
publicName: "rounded",
|
|
545
|
+
isSignal: true,
|
|
546
|
+
isRequired: false,
|
|
547
|
+
transformFunction: null
|
|
548
|
+
},
|
|
549
|
+
selected: {
|
|
550
|
+
classPropertyName: "selected",
|
|
551
|
+
publicName: "selected",
|
|
552
|
+
isSignal: true,
|
|
553
|
+
isRequired: false,
|
|
554
|
+
transformFunction: null
|
|
555
|
+
},
|
|
556
|
+
size: {
|
|
557
|
+
classPropertyName: "size",
|
|
558
|
+
publicName: "size",
|
|
559
|
+
isSignal: true,
|
|
560
|
+
isRequired: false,
|
|
561
|
+
transformFunction: null
|
|
562
|
+
},
|
|
563
|
+
tabindex: {
|
|
564
|
+
classPropertyName: "tabindex",
|
|
565
|
+
publicName: "tabindex",
|
|
566
|
+
isSignal: true,
|
|
567
|
+
isRequired: false,
|
|
568
|
+
transformFunction: null
|
|
569
|
+
},
|
|
570
|
+
toggleable: {
|
|
571
|
+
classPropertyName: "toggleable",
|
|
572
|
+
publicName: "toggleable",
|
|
573
|
+
isSignal: true,
|
|
574
|
+
isRequired: false,
|
|
575
|
+
transformFunction: null
|
|
576
|
+
},
|
|
577
|
+
userClass: {
|
|
578
|
+
classPropertyName: "userClass",
|
|
579
|
+
publicName: "class",
|
|
580
|
+
isSignal: true,
|
|
581
|
+
isRequired: false,
|
|
582
|
+
transformFunction: null
|
|
583
|
+
},
|
|
584
|
+
value: {
|
|
585
|
+
classPropertyName: "value",
|
|
586
|
+
publicName: "value",
|
|
587
|
+
isSignal: true,
|
|
588
|
+
isRequired: false,
|
|
589
|
+
transformFunction: null
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
outputs: {
|
|
593
|
+
contentClick: "contentClick",
|
|
594
|
+
remove: "remove",
|
|
595
|
+
selected: "selectedChange"
|
|
596
|
+
},
|
|
597
|
+
host: { properties: {
|
|
598
|
+
"class": "baseClass()",
|
|
599
|
+
"attr.tabindex": "split() ? null : effectiveTabIndex()",
|
|
600
|
+
"attr.aria-disabled": "hostRole() && disabled() ? 'true' : null",
|
|
601
|
+
"attr.role": "hostRole()",
|
|
602
|
+
"attr.aria-checked": "split() ? null : ariaChecked()",
|
|
603
|
+
"attr.aria-label": "split() ? null : ariaLabel() || null"
|
|
604
|
+
} },
|
|
605
|
+
queries: [{
|
|
606
|
+
propertyName: "prefixTemplate",
|
|
607
|
+
first: true,
|
|
608
|
+
predicate: ChipPrefixTemplateDirective,
|
|
609
|
+
descendants: true,
|
|
610
|
+
read: TemplateRef,
|
|
611
|
+
isSignal: true
|
|
612
|
+
}],
|
|
613
|
+
viewQueries: [{
|
|
614
|
+
propertyName: "bodyElement",
|
|
615
|
+
first: true,
|
|
616
|
+
predicate: ["body"],
|
|
617
|
+
descendants: true,
|
|
618
|
+
isSignal: true
|
|
619
|
+
}],
|
|
620
|
+
ngImport: i0,
|
|
621
|
+
template: "<span\n #body\n [class]=\"bodyClasses()\"\n [attr.aria-checked]=\"split() ? ariaChecked() : null\"\n [attr.aria-disabled]=\"split() && disabled() ? 'true' : null\"\n [attr.aria-label]=\"split() ? ariaLabel() || null : null\"\n [attr.role]=\"split() ? controlRole() : null\"\n [attr.tabindex]=\"split() ? effectiveTabIndex() : null\">\n @if (prefixTemplate()) {\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n }\n\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</span>\n\n@if (removable()) {\n @let removeAriaLabel = removeLabel() || messages().removeLabel(label() || ariaLabel());\n <button\n monaButton\n look=\"link\"\n [iconOnly]=\"true\"\n [size]=\"'small'\"\n [attr.aria-label]=\"removeAriaLabel\"\n [tabindex]=\"removeTabIndex()\"\n [disabled]=\"disabled()\"\n (click)=\"onRemoveClick($event)\"\n [attr.data-chip-remove]=\"true\">\n <svg lucideCircleX [size]=\"iconSize()\"></svg>\n </button>\n}\n",
|
|
622
|
+
dependencies: [
|
|
623
|
+
{
|
|
624
|
+
kind: "directive",
|
|
625
|
+
type: ButtonDirective,
|
|
626
|
+
selector: "button[monaButton]",
|
|
627
|
+
inputs: [
|
|
628
|
+
"aria-haspopup",
|
|
629
|
+
"disabled",
|
|
630
|
+
"iconOnly",
|
|
631
|
+
"loading",
|
|
632
|
+
"look",
|
|
633
|
+
"rounded",
|
|
634
|
+
"selected",
|
|
635
|
+
"size",
|
|
636
|
+
"tabindex",
|
|
637
|
+
"toggleable",
|
|
638
|
+
"type",
|
|
639
|
+
"class",
|
|
640
|
+
"value"
|
|
641
|
+
],
|
|
642
|
+
outputs: ["lookChange", "selectedChange"]
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
kind: "directive",
|
|
646
|
+
type: NgTemplateOutlet,
|
|
647
|
+
selector: "[ngTemplateOutlet]",
|
|
648
|
+
inputs: [
|
|
649
|
+
"ngTemplateOutletContext",
|
|
650
|
+
"ngTemplateOutlet",
|
|
651
|
+
"ngTemplateOutletInjector"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
kind: "component",
|
|
656
|
+
type: LucideCircleX,
|
|
657
|
+
selector: "svg[lucideCircleX], svg[lucideXCircle]"
|
|
658
|
+
}
|
|
659
|
+
]
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
664
|
+
minVersion: "12.0.0",
|
|
665
|
+
version: "22.2.6",
|
|
666
|
+
ngImport: i0,
|
|
667
|
+
type: ChipComponent,
|
|
668
|
+
decorators: [{
|
|
669
|
+
type: Component,
|
|
670
|
+
args: [{
|
|
671
|
+
selector: "mona-chip",
|
|
672
|
+
imports: [
|
|
673
|
+
ButtonDirective,
|
|
674
|
+
NgTemplateOutlet,
|
|
675
|
+
LucideCircleX
|
|
676
|
+
],
|
|
677
|
+
host: {
|
|
678
|
+
"[class]": "baseClass()",
|
|
679
|
+
"[attr.tabindex]": "split() ? null : effectiveTabIndex()",
|
|
680
|
+
"[attr.aria-disabled]": "hostRole() && disabled() ? 'true' : null",
|
|
681
|
+
"[attr.role]": "hostRole()",
|
|
682
|
+
"[attr.aria-checked]": "split() ? null : ariaChecked()",
|
|
683
|
+
"[attr.aria-label]": "split() ? null : ariaLabel() || null"
|
|
684
|
+
},
|
|
685
|
+
template: "<span\n #body\n [class]=\"bodyClasses()\"\n [attr.aria-checked]=\"split() ? ariaChecked() : null\"\n [attr.aria-disabled]=\"split() && disabled() ? 'true' : null\"\n [attr.aria-label]=\"split() ? ariaLabel() || null : null\"\n [attr.role]=\"split() ? controlRole() : null\"\n [attr.tabindex]=\"split() ? effectiveTabIndex() : null\">\n @if (prefixTemplate()) {\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n }\n\n @if (label()) {\n <span>{{ label() }}</span>\n } @else {\n <ng-content></ng-content>\n }\n</span>\n\n@if (removable()) {\n @let removeAriaLabel = removeLabel() || messages().removeLabel(label() || ariaLabel());\n <button\n monaButton\n look=\"link\"\n [iconOnly]=\"true\"\n [size]=\"'small'\"\n [attr.aria-label]=\"removeAriaLabel\"\n [tabindex]=\"removeTabIndex()\"\n [disabled]=\"disabled()\"\n (click)=\"onRemoveClick($event)\"\n [attr.data-chip-remove]=\"true\">\n <svg lucideCircleX [size]=\"iconSize()\"></svg>\n </button>\n}\n"
|
|
686
|
+
}]
|
|
687
|
+
}],
|
|
688
|
+
ctorParameters: () => [],
|
|
689
|
+
propDecorators: {
|
|
690
|
+
bodyElement: [{
|
|
691
|
+
type: i0.ViewChild,
|
|
692
|
+
args: ["body", { isSignal: true }]
|
|
693
|
+
}],
|
|
694
|
+
prefixTemplate: [{
|
|
695
|
+
type: i0.ContentChild,
|
|
696
|
+
args: [i0.forwardRef(() => ChipPrefixTemplateDirective), {
|
|
697
|
+
read: TemplateRef,
|
|
698
|
+
isSignal: true
|
|
699
|
+
}]
|
|
700
|
+
}],
|
|
701
|
+
ariaLabel: [{
|
|
702
|
+
type: i0.Input,
|
|
703
|
+
args: [{
|
|
704
|
+
isSignal: true,
|
|
705
|
+
alias: "aria-label",
|
|
706
|
+
required: false
|
|
707
|
+
}]
|
|
708
|
+
}],
|
|
709
|
+
contentClick: [{
|
|
710
|
+
type: i0.Output,
|
|
711
|
+
args: ["contentClick"]
|
|
712
|
+
}],
|
|
713
|
+
disabled: [{
|
|
714
|
+
type: i0.Input,
|
|
715
|
+
args: [{
|
|
716
|
+
isSignal: true,
|
|
717
|
+
alias: "disabled",
|
|
718
|
+
required: false
|
|
719
|
+
}]
|
|
720
|
+
}],
|
|
721
|
+
label: [{
|
|
722
|
+
type: i0.Input,
|
|
723
|
+
args: [{
|
|
724
|
+
isSignal: true,
|
|
725
|
+
alias: "label",
|
|
726
|
+
required: false
|
|
727
|
+
}]
|
|
728
|
+
}],
|
|
729
|
+
look: [{
|
|
730
|
+
type: i0.Input,
|
|
731
|
+
args: [{
|
|
732
|
+
isSignal: true,
|
|
733
|
+
alias: "look",
|
|
734
|
+
required: false
|
|
735
|
+
}]
|
|
736
|
+
}],
|
|
737
|
+
removable: [{
|
|
738
|
+
type: i0.Input,
|
|
739
|
+
args: [{
|
|
740
|
+
isSignal: true,
|
|
741
|
+
alias: "removable",
|
|
742
|
+
required: false
|
|
743
|
+
}]
|
|
744
|
+
}],
|
|
745
|
+
remove: [{
|
|
746
|
+
type: i0.Output,
|
|
747
|
+
args: ["remove"]
|
|
748
|
+
}],
|
|
749
|
+
removeLabel: [{
|
|
750
|
+
type: i0.Input,
|
|
751
|
+
args: [{
|
|
752
|
+
isSignal: true,
|
|
753
|
+
alias: "removeLabel",
|
|
754
|
+
required: false
|
|
755
|
+
}]
|
|
756
|
+
}],
|
|
757
|
+
removeTabIndex: [{
|
|
758
|
+
type: i0.Input,
|
|
759
|
+
args: [{
|
|
760
|
+
isSignal: true,
|
|
761
|
+
alias: "removeTabIndex",
|
|
762
|
+
required: false
|
|
763
|
+
}]
|
|
764
|
+
}],
|
|
765
|
+
rounded: [{
|
|
766
|
+
type: i0.Input,
|
|
767
|
+
args: [{
|
|
768
|
+
isSignal: true,
|
|
769
|
+
alias: "rounded",
|
|
770
|
+
required: false
|
|
771
|
+
}]
|
|
772
|
+
}],
|
|
773
|
+
selected: [{
|
|
774
|
+
type: i0.Input,
|
|
775
|
+
args: [{
|
|
776
|
+
isSignal: true,
|
|
777
|
+
alias: "selected",
|
|
778
|
+
required: false
|
|
779
|
+
}]
|
|
780
|
+
}, {
|
|
781
|
+
type: i0.Output,
|
|
782
|
+
args: ["selectedChange"]
|
|
783
|
+
}],
|
|
784
|
+
size: [{
|
|
785
|
+
type: i0.Input,
|
|
786
|
+
args: [{
|
|
787
|
+
isSignal: true,
|
|
788
|
+
alias: "size",
|
|
789
|
+
required: false
|
|
790
|
+
}]
|
|
791
|
+
}],
|
|
792
|
+
tabindex: [{
|
|
793
|
+
type: i0.Input,
|
|
794
|
+
args: [{
|
|
795
|
+
isSignal: true,
|
|
796
|
+
alias: "tabindex",
|
|
797
|
+
required: false
|
|
798
|
+
}]
|
|
799
|
+
}],
|
|
800
|
+
toggleable: [{
|
|
801
|
+
type: i0.Input,
|
|
802
|
+
args: [{
|
|
803
|
+
isSignal: true,
|
|
804
|
+
alias: "toggleable",
|
|
805
|
+
required: false
|
|
806
|
+
}]
|
|
807
|
+
}],
|
|
808
|
+
userClass: [{
|
|
809
|
+
type: i0.Input,
|
|
810
|
+
args: [{
|
|
811
|
+
isSignal: true,
|
|
812
|
+
alias: "class",
|
|
813
|
+
required: false
|
|
814
|
+
}]
|
|
815
|
+
}],
|
|
816
|
+
value: [{
|
|
817
|
+
type: i0.Input,
|
|
818
|
+
args: [{
|
|
819
|
+
isSignal: true,
|
|
820
|
+
alias: "value",
|
|
821
|
+
required: false
|
|
822
|
+
}]
|
|
823
|
+
}]
|
|
824
|
+
}
|
|
825
|
+
});
|
|
606
826
|
export { CHIP_DEFAULT_MESSAGES, ChipComponent, ChipPrefixTemplateDirective };
|
|
607
|
-
|
|
827
|
+
|
|
828
|
+
//# sourceMappingURL=nanahoshi-mona-ui-chip.mjs.map
|