@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,84 +1,104 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { classInputToClass } from
|
|
5
|
-
import { MonaI18nService } from
|
|
6
|
-
import { twMerge } from
|
|
7
|
-
import {
|
|
8
|
-
import { cva } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, Service, TemplateRef, computed, contentChild, contentChildren, effect, inject, input, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { classInputToClass } from "@nanahoshi/mona-ui/common";
|
|
5
|
+
import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
|
|
6
|
+
import { twMerge } from "tailwind-merge";
|
|
7
|
+
import { createElementControlId, themeRaisedBackdropClasses } from "@nanahoshi/mona-ui/internal";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
|
+
var CardContentDirective = class CardContentDirective {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.templateRef = inject(TemplateRef);
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.6",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: CardContentDirective,
|
|
19
|
+
deps: [],
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
25
|
+
minVersion: "14.0.0",
|
|
26
|
+
version: "22.2.6",
|
|
27
|
+
type: CardContentDirective,
|
|
28
|
+
isStandalone: true,
|
|
29
|
+
selector: "ng-template[monaCardContent]",
|
|
30
|
+
ngImport: i0
|
|
31
|
+
});
|
|
32
|
+
}
|
|
28
33
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
35
|
+
minVersion: "12.0.0",
|
|
36
|
+
version: "22.2.6",
|
|
37
|
+
ngImport: i0,
|
|
38
|
+
type: CardContentDirective,
|
|
39
|
+
decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{ selector: "ng-template[monaCardContent]" }]
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
44
|
+
const CARD_DEFAULT_MESSAGES = { actionsLabel: "Card actions" };
|
|
45
|
+
var CardService = class CardService {
|
|
46
|
+
constructor() {
|
|
47
|
+
this.actionTemplate = signal([], ...ngDevMode ? [{ debugName: "actionTemplate" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this.descriptionId = signal(null, ...ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.descriptionTemplate = signal(null, ...ngDevMode ? [{ debugName: "descriptionTemplate" }] : /* istanbul ignore next */ []);
|
|
50
|
+
this.footerClass = signal(void 0, ...ngDevMode ? [{ debugName: "footerClass" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.footerTemplate = signal(null, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.headerClass = signal(void 0, ...ngDevMode ? [{ debugName: "headerClass" }] : /* istanbul ignore next */ []);
|
|
53
|
+
this.headerTemplate = signal(null, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this.titleId = signal(null, ...ngDevMode ? [{ debugName: "titleId" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this.titleTemplate = signal(null, ...ngDevMode ? [{ debugName: "titleTemplate" }] : /* istanbul ignore next */ []);
|
|
56
|
+
}
|
|
57
|
+
static {
|
|
58
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
59
|
+
minVersion: "12.0.0",
|
|
60
|
+
version: "22.2.6",
|
|
61
|
+
ngImport: i0,
|
|
62
|
+
type: CardService,
|
|
63
|
+
deps: [],
|
|
64
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
this.ɵprov = i0.ɵɵngDeclareService({
|
|
69
|
+
minVersion: "22.0.0",
|
|
70
|
+
version: "22.2.6",
|
|
71
|
+
ngImport: i0,
|
|
72
|
+
type: CardService,
|
|
73
|
+
autoProvided: false
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
78
|
+
minVersion: "12.0.0",
|
|
79
|
+
version: "22.2.6",
|
|
80
|
+
ngImport: i0,
|
|
81
|
+
type: CardService,
|
|
82
|
+
decorators: [{
|
|
83
|
+
type: Service,
|
|
84
|
+
args: [{ autoProvided: false }]
|
|
85
|
+
}]
|
|
86
|
+
});
|
|
59
87
|
const roundedTopVariants = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
88
|
+
small: "rounded-t-sm",
|
|
89
|
+
medium: "rounded-t-md",
|
|
90
|
+
large: "rounded-t-lg",
|
|
91
|
+
xlarge: "rounded-t-xl",
|
|
92
|
+
xxlarge: "rounded-t-2xl",
|
|
93
|
+
none: "rounded-none"
|
|
66
94
|
};
|
|
67
95
|
const roundedBottomVariants = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
const roundedAllVariants = {
|
|
76
|
-
small: "rounded-sm",
|
|
77
|
-
medium: "rounded-md",
|
|
78
|
-
large: "rounded-lg",
|
|
79
|
-
xlarge: "rounded-xl",
|
|
80
|
-
xxlarge: "rounded-2xl",
|
|
81
|
-
none: "rounded-none"
|
|
96
|
+
small: "rounded-b-sm",
|
|
97
|
+
medium: "rounded-b-md",
|
|
98
|
+
large: "rounded-b-lg",
|
|
99
|
+
xlarge: "rounded-b-xl",
|
|
100
|
+
xxlarge: "rounded-b-2xl",
|
|
101
|
+
none: "rounded-none"
|
|
82
102
|
};
|
|
83
103
|
const cardBaseThemeVariants = cva(`
|
|
84
104
|
flex flex-col gap-2 py-4
|
|
@@ -86,19 +106,24 @@ const cardBaseThemeVariants = cva(`
|
|
|
86
106
|
border border-border
|
|
87
107
|
bg-(--color-card) text-(--color-card-foreground)
|
|
88
108
|
shadow-(--shadow-raised)
|
|
89
|
-
`, {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
109
|
+
`, { variants: {
|
|
110
|
+
rounded: {
|
|
111
|
+
small: "rounded-sm",
|
|
112
|
+
medium: "rounded-md",
|
|
113
|
+
large: "rounded-lg",
|
|
114
|
+
xlarge: "rounded-xl",
|
|
115
|
+
xxlarge: "rounded-2xl",
|
|
116
|
+
none: "rounded-none"
|
|
117
|
+
},
|
|
118
|
+
hasFooter: {
|
|
119
|
+
true: "pb-0",
|
|
120
|
+
false: ""
|
|
121
|
+
},
|
|
122
|
+
hasHeader: {
|
|
123
|
+
true: "pt-0",
|
|
124
|
+
false: ""
|
|
125
|
+
}
|
|
126
|
+
} });
|
|
102
127
|
const cardFooterThemeVariants = cva(`
|
|
103
128
|
flex flex-row
|
|
104
129
|
justify-between
|
|
@@ -106,236 +131,515 @@ const cardFooterThemeVariants = cva(`
|
|
|
106
131
|
p-4
|
|
107
132
|
border-t
|
|
108
133
|
border-border
|
|
109
|
-
`, {
|
|
110
|
-
variants: {
|
|
111
|
-
rounded: roundedBottomVariants
|
|
112
|
-
}
|
|
113
|
-
});
|
|
134
|
+
`, { variants: { rounded: roundedBottomVariants } });
|
|
114
135
|
const cardHeaderThemeVariants = cva(`
|
|
115
136
|
grid grid-cols-[1fr_auto] grid-rows-[auto_auto]
|
|
116
137
|
p-4 pb-0
|
|
117
|
-
`, {
|
|
118
|
-
variants: {
|
|
119
|
-
rounded: roundedTopVariants
|
|
120
|
-
}
|
|
121
|
-
});
|
|
138
|
+
`, { variants: { rounded: roundedTopVariants } });
|
|
122
139
|
const cardHeaderTitleThemeVariants = cva(`col-start-1 row-start-1 items-center`);
|
|
123
140
|
const cardHeaderDescriptionThemeVariants = cva(`col-start-1 row-start-2`);
|
|
124
141
|
const cardHeaderActionsThemeVariants = cva(`col-start-2 row-start-1 row-span-2 self-start justify-self-end`);
|
|
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
|
-
i0.ɵɵ
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
142
|
+
var CardComponent = class CardComponent {
|
|
143
|
+
constructor() {
|
|
144
|
+
this.#cardService = inject(CardService);
|
|
145
|
+
this.#i18n = inject(MonaI18nService);
|
|
146
|
+
this.actionTemplate = this.#cardService.actionTemplate.asReadonly();
|
|
147
|
+
this.actionsCellClass = cardHeaderActionsThemeVariants();
|
|
148
|
+
this.baseClass = computed(() => {
|
|
149
|
+
const rounded = this.rounded();
|
|
150
|
+
const hasHeader = !!this.headerTemplate();
|
|
151
|
+
const hasFooter = !!this.footerTemplate();
|
|
152
|
+
const variantClass = cardBaseThemeVariants({
|
|
153
|
+
rounded,
|
|
154
|
+
hasHeader,
|
|
155
|
+
hasFooter
|
|
156
|
+
});
|
|
157
|
+
const userClass = classInputToClass(this.userClass());
|
|
158
|
+
return twMerge(variantClass, userClass);
|
|
159
|
+
}, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
|
|
160
|
+
this.contentDirective = contentChild(CardContentDirective, ...ngDevMode ? [{ debugName: "contentDirective" }] : /* istanbul ignore next */ []);
|
|
161
|
+
this.descriptionCellClass = cardHeaderDescriptionThemeVariants();
|
|
162
|
+
this.descriptionCellId = computed(() => {
|
|
163
|
+
const id = this.descriptionId();
|
|
164
|
+
return id ? `${id}-cell` : null;
|
|
165
|
+
}, ...ngDevMode ? [{ debugName: "descriptionCellId" }] : /* istanbul ignore next */ []);
|
|
166
|
+
this.descriptionId = this.#cardService.descriptionId.asReadonly();
|
|
167
|
+
this.descriptionTemplate = this.#cardService.descriptionTemplate.asReadonly();
|
|
168
|
+
this.footerClass = computed(() => {
|
|
169
|
+
const rounded = this.rounded();
|
|
170
|
+
const variantClass = cardFooterThemeVariants({ rounded });
|
|
171
|
+
const userClass = classInputToClass(this.#cardService.footerClass());
|
|
172
|
+
return twMerge(variantClass, userClass);
|
|
173
|
+
}, ...ngDevMode ? [{ debugName: "footerClass" }] : /* istanbul ignore next */ []);
|
|
174
|
+
this.footerTemplate = this.#cardService.footerTemplate.asReadonly();
|
|
175
|
+
this.headerClass = computed(() => {
|
|
176
|
+
const rounded = this.rounded();
|
|
177
|
+
const variantClass = cardHeaderThemeVariants({ rounded });
|
|
178
|
+
const userClass = classInputToClass(this.#cardService.headerClass());
|
|
179
|
+
return twMerge(variantClass, userClass);
|
|
180
|
+
}, ...ngDevMode ? [{ debugName: "headerClass" }] : /* istanbul ignore next */ []);
|
|
181
|
+
this.headerTemplate = this.#cardService.headerTemplate.asReadonly();
|
|
182
|
+
this.messages = this.#i18n.componentMessages("card", CARD_DEFAULT_MESSAGES);
|
|
183
|
+
this.titleCellClass = cardHeaderTitleThemeVariants();
|
|
184
|
+
this.titleCellId = computed(() => {
|
|
185
|
+
const id = this.titleId();
|
|
186
|
+
return id ? `${id}-cell` : null;
|
|
187
|
+
}, ...ngDevMode ? [{ debugName: "titleCellId" }] : /* istanbul ignore next */ []);
|
|
188
|
+
this.titleId = this.#cardService.titleId.asReadonly();
|
|
189
|
+
this.titleTemplate = this.#cardService.titleTemplate.asReadonly();
|
|
190
|
+
this.role = input("group", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
191
|
+
this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
192
|
+
this.userClass = input("", {
|
|
193
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
194
|
+
alias: "class"
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
#cardService;
|
|
198
|
+
#i18n;
|
|
199
|
+
static {
|
|
200
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
201
|
+
minVersion: "12.0.0",
|
|
202
|
+
version: "22.2.6",
|
|
203
|
+
ngImport: i0,
|
|
204
|
+
type: CardComponent,
|
|
205
|
+
deps: [],
|
|
206
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
static {
|
|
210
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
211
|
+
minVersion: "17.0.0",
|
|
212
|
+
version: "22.2.6",
|
|
213
|
+
type: CardComponent,
|
|
214
|
+
isStandalone: true,
|
|
215
|
+
selector: "mona-card",
|
|
216
|
+
inputs: {
|
|
217
|
+
role: {
|
|
218
|
+
classPropertyName: "role",
|
|
219
|
+
publicName: "role",
|
|
220
|
+
isSignal: true,
|
|
221
|
+
isRequired: false,
|
|
222
|
+
transformFunction: null
|
|
223
|
+
},
|
|
224
|
+
rounded: {
|
|
225
|
+
classPropertyName: "rounded",
|
|
226
|
+
publicName: "rounded",
|
|
227
|
+
isSignal: true,
|
|
228
|
+
isRequired: false,
|
|
229
|
+
transformFunction: null
|
|
230
|
+
},
|
|
231
|
+
userClass: {
|
|
232
|
+
classPropertyName: "userClass",
|
|
233
|
+
publicName: "class",
|
|
234
|
+
isSignal: true,
|
|
235
|
+
isRequired: false,
|
|
236
|
+
transformFunction: null
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
host: { properties: {
|
|
240
|
+
"class": "baseClass()",
|
|
241
|
+
"attr.aria-describedby": "titleId() ? descriptionCellId() : null",
|
|
242
|
+
"attr.aria-labelledby": "titleCellId()",
|
|
243
|
+
"attr.role": "titleId() ? role() : null"
|
|
244
|
+
} },
|
|
245
|
+
providers: [CardService],
|
|
246
|
+
queries: [{
|
|
247
|
+
propertyName: "contentDirective",
|
|
248
|
+
first: true,
|
|
249
|
+
predicate: CardContentDirective,
|
|
250
|
+
descendants: true,
|
|
251
|
+
isSignal: true
|
|
252
|
+
}],
|
|
253
|
+
ngImport: i0,
|
|
254
|
+
template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container [ngTemplateOutlet]=\"titleTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\"\n />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n",
|
|
255
|
+
dependencies: [{
|
|
256
|
+
kind: "directive",
|
|
257
|
+
type: NgTemplateOutlet,
|
|
258
|
+
selector: "[ngTemplateOutlet]",
|
|
259
|
+
inputs: [
|
|
260
|
+
"ngTemplateOutletContext",
|
|
261
|
+
"ngTemplateOutlet",
|
|
262
|
+
"ngTemplateOutletInjector"
|
|
263
|
+
]
|
|
264
|
+
}]
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
269
|
+
minVersion: "12.0.0",
|
|
270
|
+
version: "22.2.6",
|
|
271
|
+
ngImport: i0,
|
|
272
|
+
type: CardComponent,
|
|
273
|
+
decorators: [{
|
|
274
|
+
type: Component,
|
|
275
|
+
args: [{
|
|
276
|
+
selector: "mona-card",
|
|
277
|
+
imports: [NgTemplateOutlet],
|
|
278
|
+
host: {
|
|
279
|
+
"[class]": "baseClass()",
|
|
280
|
+
"[attr.aria-describedby]": "titleId() ? descriptionCellId() : null",
|
|
281
|
+
"[attr.aria-labelledby]": "titleCellId()",
|
|
282
|
+
"[attr.role]": "titleId() ? role() : null"
|
|
283
|
+
},
|
|
284
|
+
providers: [CardService],
|
|
285
|
+
template: "@if (headerTemplate()) {\n <div [class]=\"headerClass()\">\n @if (titleTemplate()) {\n <div [class]=\"titleCellClass\" [attr.id]=\"titleCellId()\">\n <ng-container [ngTemplateOutlet]=\"titleTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: titleId() }\" />\n </div>\n }\n @if (descriptionTemplate()) {\n <div [class]=\"descriptionCellClass\" [attr.id]=\"descriptionCellId()\">\n <ng-container\n [ngTemplateOutlet]=\"descriptionTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: descriptionId() }\"\n />\n </div>\n }\n @if (actionTemplate().length > 0) {\n <div [class]=\"actionsCellClass\" role=\"group\" [attr.aria-label]=\"messages().actionsLabel\">\n @for (template of actionTemplate(); track template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n </div>\n }\n </div>\n}\n<ng-container [ngTemplateOutlet]=\"contentDirective()?.templateRef ?? null\" />\n@if (footerTemplate()) {\n <div [class]=\"footerClass()\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate()\" />\n </div>\n}\n"
|
|
286
|
+
}]
|
|
287
|
+
}],
|
|
288
|
+
propDecorators: {
|
|
289
|
+
contentDirective: [{
|
|
290
|
+
type: i0.ContentChild,
|
|
291
|
+
args: [i0.forwardRef(() => CardContentDirective), { isSignal: true }]
|
|
292
|
+
}],
|
|
293
|
+
role: [{
|
|
294
|
+
type: i0.Input,
|
|
295
|
+
args: [{
|
|
296
|
+
isSignal: true,
|
|
297
|
+
alias: "role",
|
|
298
|
+
required: false
|
|
299
|
+
}]
|
|
300
|
+
}],
|
|
301
|
+
rounded: [{
|
|
302
|
+
type: i0.Input,
|
|
303
|
+
args: [{
|
|
304
|
+
isSignal: true,
|
|
305
|
+
alias: "rounded",
|
|
306
|
+
required: false
|
|
307
|
+
}]
|
|
308
|
+
}],
|
|
309
|
+
userClass: [{
|
|
310
|
+
type: i0.Input,
|
|
311
|
+
args: [{
|
|
312
|
+
isSignal: true,
|
|
313
|
+
alias: "class",
|
|
314
|
+
required: false
|
|
315
|
+
}]
|
|
316
|
+
}]
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
var CardFooterComponent = class CardFooterComponent {
|
|
320
|
+
#cardService;
|
|
321
|
+
constructor() {
|
|
322
|
+
this.#cardService = inject(CardService);
|
|
323
|
+
this.footerTemplate = viewChild.required(TemplateRef, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
324
|
+
this.userClass = input("", {
|
|
325
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
326
|
+
alias: "class"
|
|
327
|
+
});
|
|
328
|
+
effect(() => {
|
|
329
|
+
this.#cardService.footerTemplate.set(this.footerTemplate());
|
|
330
|
+
this.#cardService.footerClass.set(this.userClass());
|
|
331
|
+
});
|
|
332
|
+
inject(DestroyRef).onDestroy(() => {
|
|
333
|
+
this.#cardService.footerTemplate.set(null);
|
|
334
|
+
this.#cardService.footerClass.set(null);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
static {
|
|
338
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
339
|
+
minVersion: "12.0.0",
|
|
340
|
+
version: "22.2.6",
|
|
341
|
+
ngImport: i0,
|
|
342
|
+
type: CardFooterComponent,
|
|
343
|
+
deps: [],
|
|
344
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
static {
|
|
348
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
349
|
+
minVersion: "17.2.0",
|
|
350
|
+
version: "22.2.6",
|
|
351
|
+
type: CardFooterComponent,
|
|
352
|
+
isStandalone: true,
|
|
353
|
+
selector: "mona-card-footer",
|
|
354
|
+
inputs: { userClass: {
|
|
355
|
+
classPropertyName: "userClass",
|
|
356
|
+
publicName: "class",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
} },
|
|
361
|
+
viewQueries: [{
|
|
362
|
+
propertyName: "footerTemplate",
|
|
363
|
+
first: true,
|
|
364
|
+
predicate: TemplateRef,
|
|
365
|
+
descendants: true,
|
|
366
|
+
isSignal: true
|
|
367
|
+
}],
|
|
368
|
+
ngImport: i0,
|
|
369
|
+
template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
374
|
+
minVersion: "12.0.0",
|
|
375
|
+
version: "22.2.6",
|
|
376
|
+
ngImport: i0,
|
|
377
|
+
type: CardFooterComponent,
|
|
378
|
+
decorators: [{
|
|
379
|
+
type: Component,
|
|
380
|
+
args: [{
|
|
381
|
+
selector: "mona-card-footer",
|
|
382
|
+
imports: [],
|
|
383
|
+
template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
384
|
+
}]
|
|
385
|
+
}],
|
|
386
|
+
ctorParameters: () => [],
|
|
387
|
+
propDecorators: {
|
|
388
|
+
footerTemplate: [{
|
|
389
|
+
type: i0.ViewChild,
|
|
390
|
+
args: [i0.forwardRef(() => TemplateRef), { isSignal: true }]
|
|
391
|
+
}],
|
|
392
|
+
userClass: [{
|
|
393
|
+
type: i0.Input,
|
|
394
|
+
args: [{
|
|
395
|
+
isSignal: true,
|
|
396
|
+
alias: "class",
|
|
397
|
+
required: false
|
|
398
|
+
}]
|
|
399
|
+
}]
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
var CardActionDirective = class CardActionDirective {
|
|
403
|
+
constructor() {
|
|
404
|
+
this.templateRef = inject(TemplateRef);
|
|
405
|
+
}
|
|
406
|
+
static {
|
|
407
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
408
|
+
minVersion: "12.0.0",
|
|
409
|
+
version: "22.2.6",
|
|
410
|
+
ngImport: i0,
|
|
411
|
+
type: CardActionDirective,
|
|
412
|
+
deps: [],
|
|
413
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
static {
|
|
417
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
418
|
+
minVersion: "14.0.0",
|
|
419
|
+
version: "22.2.6",
|
|
420
|
+
type: CardActionDirective,
|
|
421
|
+
isStandalone: true,
|
|
422
|
+
selector: "ng-template[monaCardAction]",
|
|
423
|
+
ngImport: i0
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
428
|
+
minVersion: "12.0.0",
|
|
429
|
+
version: "22.2.6",
|
|
430
|
+
ngImport: i0,
|
|
431
|
+
type: CardActionDirective,
|
|
432
|
+
decorators: [{
|
|
433
|
+
type: Directive,
|
|
434
|
+
args: [{ selector: "ng-template[monaCardAction]" }]
|
|
435
|
+
}]
|
|
436
|
+
});
|
|
437
|
+
var CardDescriptionDirective = class CardDescriptionDirective {
|
|
438
|
+
constructor() {
|
|
439
|
+
this.id = createElementControlId();
|
|
440
|
+
this.templateRef = inject(TemplateRef);
|
|
441
|
+
}
|
|
442
|
+
static ngTemplateContextGuard(_directive, _context) {
|
|
443
|
+
return true;
|
|
444
|
+
}
|
|
445
|
+
static {
|
|
446
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
447
|
+
minVersion: "12.0.0",
|
|
448
|
+
version: "22.2.6",
|
|
449
|
+
ngImport: i0,
|
|
450
|
+
type: CardDescriptionDirective,
|
|
451
|
+
deps: [],
|
|
452
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
static {
|
|
456
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
457
|
+
minVersion: "14.0.0",
|
|
458
|
+
version: "22.2.6",
|
|
459
|
+
type: CardDescriptionDirective,
|
|
460
|
+
isStandalone: true,
|
|
461
|
+
selector: "ng-template[monaCardDescription]",
|
|
462
|
+
ngImport: i0
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
467
|
+
minVersion: "12.0.0",
|
|
468
|
+
version: "22.2.6",
|
|
469
|
+
ngImport: i0,
|
|
470
|
+
type: CardDescriptionDirective,
|
|
471
|
+
decorators: [{
|
|
472
|
+
type: Directive,
|
|
473
|
+
args: [{ selector: "ng-template[monaCardDescription]" }]
|
|
474
|
+
}]
|
|
475
|
+
});
|
|
476
|
+
var CardTitleDirective = class CardTitleDirective {
|
|
477
|
+
constructor() {
|
|
478
|
+
this.id = createElementControlId();
|
|
479
|
+
this.templateRef = inject(TemplateRef);
|
|
480
|
+
}
|
|
481
|
+
static ngTemplateContextGuard(_directive, _context) {
|
|
482
|
+
return true;
|
|
483
|
+
}
|
|
484
|
+
static {
|
|
485
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
486
|
+
minVersion: "12.0.0",
|
|
487
|
+
version: "22.2.6",
|
|
488
|
+
ngImport: i0,
|
|
489
|
+
type: CardTitleDirective,
|
|
490
|
+
deps: [],
|
|
491
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
static {
|
|
495
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
496
|
+
minVersion: "14.0.0",
|
|
497
|
+
version: "22.2.6",
|
|
498
|
+
type: CardTitleDirective,
|
|
499
|
+
isStandalone: true,
|
|
500
|
+
selector: "ng-template[monaCardTitle]",
|
|
501
|
+
ngImport: i0
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
506
|
+
minVersion: "12.0.0",
|
|
507
|
+
version: "22.2.6",
|
|
508
|
+
ngImport: i0,
|
|
509
|
+
type: CardTitleDirective,
|
|
510
|
+
decorators: [{
|
|
511
|
+
type: Directive,
|
|
512
|
+
args: [{ selector: "ng-template[monaCardTitle]" }]
|
|
513
|
+
}]
|
|
514
|
+
});
|
|
515
|
+
var CardHeaderComponent = class CardHeaderComponent {
|
|
516
|
+
#cardService;
|
|
517
|
+
constructor() {
|
|
518
|
+
this.#cardService = inject(CardService);
|
|
519
|
+
this.actionDirective = contentChildren(CardActionDirective, ...ngDevMode ? [{ debugName: "actionDirective" }] : /* istanbul ignore next */ []);
|
|
520
|
+
this.descriptionDirective = contentChild(CardDescriptionDirective, ...ngDevMode ? [{ debugName: "descriptionDirective" }] : /* istanbul ignore next */ []);
|
|
521
|
+
this.headerTemplate = viewChild.required(TemplateRef, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
522
|
+
this.titleDirective = contentChild(CardTitleDirective, ...ngDevMode ? [{ debugName: "titleDirective" }] : /* istanbul ignore next */ []);
|
|
523
|
+
this.userClass = input("", {
|
|
524
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
525
|
+
alias: "class"
|
|
526
|
+
});
|
|
527
|
+
effect(() => {
|
|
528
|
+
this.#cardService.actionTemplate.set(this.actionDirective().map((directive) => directive.templateRef));
|
|
529
|
+
this.#cardService.descriptionId.set(this.descriptionDirective()?.id ?? null);
|
|
530
|
+
this.#cardService.descriptionTemplate.set(this.descriptionDirective()?.templateRef ?? null);
|
|
531
|
+
this.#cardService.headerTemplate.set(this.headerTemplate());
|
|
532
|
+
this.#cardService.headerClass.set(this.userClass());
|
|
533
|
+
this.#cardService.titleId.set(this.titleDirective()?.id ?? null);
|
|
534
|
+
this.#cardService.titleTemplate.set(this.titleDirective()?.templateRef ?? null);
|
|
535
|
+
});
|
|
536
|
+
inject(DestroyRef).onDestroy(() => {
|
|
537
|
+
this.#cardService.actionTemplate.set([]);
|
|
538
|
+
this.#cardService.descriptionId.set(null);
|
|
539
|
+
this.#cardService.descriptionTemplate.set(null);
|
|
540
|
+
this.#cardService.headerTemplate.set(null);
|
|
541
|
+
this.#cardService.headerClass.set(null);
|
|
542
|
+
this.#cardService.titleId.set(null);
|
|
543
|
+
this.#cardService.titleTemplate.set(null);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
static {
|
|
547
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
548
|
+
minVersion: "12.0.0",
|
|
549
|
+
version: "22.2.6",
|
|
550
|
+
ngImport: i0,
|
|
551
|
+
type: CardHeaderComponent,
|
|
552
|
+
deps: [],
|
|
553
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
static {
|
|
557
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
558
|
+
minVersion: "17.2.0",
|
|
559
|
+
version: "22.2.6",
|
|
560
|
+
type: CardHeaderComponent,
|
|
561
|
+
isStandalone: true,
|
|
562
|
+
selector: "mona-card-header",
|
|
563
|
+
inputs: { userClass: {
|
|
564
|
+
classPropertyName: "userClass",
|
|
565
|
+
publicName: "class",
|
|
566
|
+
isSignal: true,
|
|
567
|
+
isRequired: false,
|
|
568
|
+
transformFunction: null
|
|
569
|
+
} },
|
|
570
|
+
queries: [
|
|
571
|
+
{
|
|
572
|
+
propertyName: "actionDirective",
|
|
573
|
+
predicate: CardActionDirective,
|
|
574
|
+
isSignal: true
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
propertyName: "descriptionDirective",
|
|
578
|
+
first: true,
|
|
579
|
+
predicate: CardDescriptionDirective,
|
|
580
|
+
descendants: true,
|
|
581
|
+
isSignal: true
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
propertyName: "titleDirective",
|
|
585
|
+
first: true,
|
|
586
|
+
predicate: CardTitleDirective,
|
|
587
|
+
descendants: true,
|
|
588
|
+
isSignal: true
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
viewQueries: [{
|
|
592
|
+
propertyName: "headerTemplate",
|
|
593
|
+
first: true,
|
|
594
|
+
predicate: TemplateRef,
|
|
595
|
+
descendants: true,
|
|
596
|
+
isSignal: true
|
|
597
|
+
}],
|
|
598
|
+
ngImport: i0,
|
|
599
|
+
template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
604
|
+
minVersion: "12.0.0",
|
|
605
|
+
version: "22.2.6",
|
|
606
|
+
ngImport: i0,
|
|
607
|
+
type: CardHeaderComponent,
|
|
608
|
+
decorators: [{
|
|
609
|
+
type: Component,
|
|
610
|
+
args: [{
|
|
611
|
+
selector: "mona-card-header",
|
|
612
|
+
template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
613
|
+
}]
|
|
614
|
+
}],
|
|
615
|
+
ctorParameters: () => [],
|
|
616
|
+
propDecorators: {
|
|
617
|
+
actionDirective: [{
|
|
618
|
+
type: i0.ContentChildren,
|
|
619
|
+
args: [i0.forwardRef(() => CardActionDirective), { isSignal: true }]
|
|
620
|
+
}],
|
|
621
|
+
descriptionDirective: [{
|
|
622
|
+
type: i0.ContentChild,
|
|
623
|
+
args: [i0.forwardRef(() => CardDescriptionDirective), { isSignal: true }]
|
|
624
|
+
}],
|
|
625
|
+
headerTemplate: [{
|
|
626
|
+
type: i0.ViewChild,
|
|
627
|
+
args: [i0.forwardRef(() => TemplateRef), { isSignal: true }]
|
|
628
|
+
}],
|
|
629
|
+
titleDirective: [{
|
|
630
|
+
type: i0.ContentChild,
|
|
631
|
+
args: [i0.forwardRef(() => CardTitleDirective), { isSignal: true }]
|
|
632
|
+
}],
|
|
633
|
+
userClass: [{
|
|
634
|
+
type: i0.Input,
|
|
635
|
+
args: [{
|
|
636
|
+
isSignal: true,
|
|
637
|
+
alias: "class",
|
|
638
|
+
required: false
|
|
639
|
+
}]
|
|
640
|
+
}]
|
|
641
|
+
}
|
|
642
|
+
});
|
|
340
643
|
export { CARD_DEFAULT_MESSAGES, CardActionDirective, CardComponent, CardContentDirective, CardDescriptionDirective, CardFooterComponent, CardHeaderComponent, CardTitleDirective };
|
|
341
|
-
|
|
644
|
+
|
|
645
|
+
//# sourceMappingURL=nanahoshi-mona-ui-card.mjs.map
|