@onemrvapublic/design-system 22.0.0-develop.9 → 22.0.1-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/card/src/onemrva-card.component.scss +23 -0
- package/fesm2022/onemrvapublic-design-system-card.mjs +32 -14
- package/fesm2022/onemrvapublic-design-system-card.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-collapsible-page-divider.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-layout.mjs +193 -59
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +7 -18
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +20 -10
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +24 -6
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +11 -3
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -3
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +39 -19
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +16 -6
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +16 -6
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +17 -7
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +17 -7
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +39 -9
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +18 -8
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +72 -22
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +43 -13
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +13 -3
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +23 -16
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +17 -7
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +17 -7
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +11 -14
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +18 -10
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +17 -7
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +15 -7
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +20 -16
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +56 -16
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +15 -7
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +22 -12
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +24 -6
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +48 -16
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +109 -90
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-timeline.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-timeline.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/mat-paginator/src/onemrva-mat-paginator.component.scss +2 -31
- package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +1 -0
- package/package.json +3 -3
- package/theme/overrides/_form-field.scss +2 -0
- package/theme/overrides/_select.scss +2 -1
- package/theme/overrides/_table.scss +8 -11
- package/theme/palettes/_palette.scss +1 -1
- package/types/onemrvapublic-design-system-card.d.ts +18 -9
- package/types/onemrvapublic-design-system-flag-icon.d.ts +10 -0
- package/types/onemrvapublic-design-system-layout.d.ts +132 -0
- package/types/onemrvapublic-design-system-mat-avatar.d.ts +4 -15
- package/types/onemrvapublic-design-system-mat-breadcrumb.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-carousel.d.ts +18 -0
- package/types/onemrvapublic-design-system-mat-choice-chip.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-copy-to-clipboard.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-country-item.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-datepicker-header.d.ts +8 -0
- package/types/onemrvapublic-design-system-mat-empty-row.d.ts +7 -0
- package/types/onemrvapublic-design-system-mat-file-upload.d.ts +20 -0
- package/types/onemrvapublic-design-system-mat-input-address.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-input-birthplace.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-input-country.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-input-enterprise-number.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-input-iban.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-input-phone.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-message-box.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-multi-select.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-navigation.d.ts +20 -0
- package/types/onemrvapublic-design-system-mat-notification.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-paginator.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-panel.d.ts +50 -0
- package/types/onemrvapublic-design-system-mat-pop-over.d.ts +30 -0
- package/types/onemrvapublic-design-system-mat-progress-bar.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-select-search.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-selectable-box.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-side-menu.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-skeleton.d.ts +4 -7
- package/types/onemrvapublic-design-system-mat-spinner.d.ts +8 -0
- package/types/onemrvapublic-design-system-mat-stepper.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-sticker.d.ts +8 -0
- package/types/onemrvapublic-design-system-mat-table-of-content.d.ts +10 -0
- package/types/onemrvapublic-design-system-mat-task-list.d.ts +40 -0
- package/types/onemrvapublic-design-system-mat-toast.d.ts +8 -0
- package/types/onemrvapublic-design-system-mat-tooltip.d.ts +10 -0
- package/types/onemrvapublic-design-system-page-error.d.ts +18 -0
- package/types/onemrvapublic-design-system-page-not-found.d.ts +32 -0
- package/types/onemrvapublic-design-system-shared.d.ts +13 -3
- package/types/onemrvapublic-design-system.d.ts +1 -1
|
@@ -3,6 +3,16 @@ import { input, viewChild, TemplateRef, ViewEncapsulation, Component, contentChi
|
|
|
3
3
|
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { MatExpansionPanel, MatExpansionPanelHeader } from '@angular/material/expansion';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Action button projected into an onemrva-mat-panel title.
|
|
8
|
+
*
|
|
9
|
+
* Exposes 1 input and 0 outputs.
|
|
10
|
+
* Inputs: customNgClass: any.
|
|
11
|
+
* Outputs: none.
|
|
12
|
+
*
|
|
13
|
+
* @MatKeywords panel, accordion, title, action, button
|
|
14
|
+
* @MatGroup Layout
|
|
15
|
+
*/
|
|
6
16
|
class OnemrvaMatPanelTitleActionComponent {
|
|
7
17
|
constructor() {
|
|
8
18
|
this.customNgClass = input(/* @ts-ignore */
|
|
@@ -10,14 +20,24 @@ class OnemrvaMatPanelTitleActionComponent {
|
|
|
10
20
|
this.template = viewChild(TemplateRef, /* @ts-ignore */
|
|
11
21
|
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
12
22
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelTitleActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: OnemrvaMatPanelTitleActionComponent, isStandalone: true, selector: "onemrva-mat-panel-title-action", inputs: { customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <div\n class=\"onemrva-mat-panel-title-action float-right\"\n [ngClass]=\"customNgClass()\"\n >\n <ng-content />\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
15
25
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelTitleActionComponent, decorators: [{
|
|
17
27
|
type: Component,
|
|
18
28
|
args: [{ selector: 'onemrva-mat-panel-title-action', standalone: true, encapsulation: ViewEncapsulation.None, imports: [NgClass], template: "<ng-template>\n <div\n class=\"onemrva-mat-panel-title-action float-right\"\n [ngClass]=\"customNgClass()\"\n >\n <ng-content />\n </div>\n</ng-template>\n" }]
|
|
19
29
|
}], propDecorators: { customNgClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "customNgClass", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
20
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Title slot for an onemrva-mat-panel header.
|
|
33
|
+
*
|
|
34
|
+
* Exposes 1 input and 0 outputs.
|
|
35
|
+
* Inputs: customNgClass: any.
|
|
36
|
+
* Outputs: none.
|
|
37
|
+
*
|
|
38
|
+
* @MatKeywords panel, accordion, title, header
|
|
39
|
+
* @MatGroup Layout
|
|
40
|
+
*/
|
|
21
41
|
class OnemrvaMatPanelTitleComponent {
|
|
22
42
|
constructor() {
|
|
23
43
|
this.customNgClass = input(/* @ts-ignore */
|
|
@@ -32,14 +52,24 @@ class OnemrvaMatPanelTitleComponent {
|
|
|
32
52
|
ngAfterViewInit() {
|
|
33
53
|
this.cd.detectChanges();
|
|
34
54
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: OnemrvaMatPanelTitleComponent, isStandalone: true, selector: "onemrva-mat-panel-title", inputs: { customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "content", first: true, predicate: OnemrvaMatPanelTitleActionComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <div class=\"onemrva-mat-panel-title\" [ngClass]=\"customNgClass()\">\n <ng-content />\n @if (content()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-title{font:var(--mat-sys-title-large);color:var(--mat-panel-title-color);display:flex;justify-content:space-between;width:100%;align-items:center}.is-expandable .onemrva-mat-panel-title{width:calc(100% - 50px)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
37
57
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelTitleComponent, decorators: [{
|
|
39
59
|
type: Component,
|
|
40
60
|
args: [{ selector: 'onemrva-mat-panel-title', standalone: true, encapsulation: ViewEncapsulation.None, imports: [NgClass, NgTemplateOutlet], template: "<ng-template>\n <div class=\"onemrva-mat-panel-title\" [ngClass]=\"customNgClass()\">\n <ng-content />\n @if (content()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-title{font:var(--mat-sys-title-large);color:var(--mat-panel-title-color);display:flex;justify-content:space-between;width:100%;align-items:center}.is-expandable .onemrva-mat-panel-title{width:calc(100% - 50px)}\n"] }]
|
|
41
61
|
}], propDecorators: { customNgClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "customNgClass", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPanelTitleActionComponent), { isSignal: true }] }] } });
|
|
42
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Content slot inside an onemrva-mat-panel.
|
|
65
|
+
*
|
|
66
|
+
* Exposes 1 input and 0 outputs.
|
|
67
|
+
* Inputs: customNgClass: any.
|
|
68
|
+
* Outputs: none.
|
|
69
|
+
*
|
|
70
|
+
* @MatKeywords panel, accordion, content, expansion
|
|
71
|
+
* @MatGroup Layout
|
|
72
|
+
*/
|
|
43
73
|
class OnemrvaMatPanelContentComponent {
|
|
44
74
|
constructor() {
|
|
45
75
|
this.customNgClass = input(/* @ts-ignore */
|
|
@@ -47,14 +77,24 @@ class OnemrvaMatPanelContentComponent {
|
|
|
47
77
|
this.template = viewChild(TemplateRef, /* @ts-ignore */
|
|
48
78
|
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
49
79
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
81
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: OnemrvaMatPanelContentComponent, isStandalone: true, selector: "onemrva-mat-panel-content", inputs: { customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <div class=\"onemrva-mat-panel-content\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-content:not(:empty){margin-top:var(--double-spacer);color:var(--mat-sys-on-surface)}.onemrva-mat-panel-content:not(:empty) p:last-child{margin:0}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
52
82
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelContentComponent, decorators: [{
|
|
54
84
|
type: Component,
|
|
55
85
|
args: [{ selector: 'onemrva-mat-panel-content', standalone: true, imports: [NgClass], template: "<ng-template>\n <div class=\"onemrva-mat-panel-content\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-content:not(:empty){margin-top:var(--double-spacer);color:var(--mat-sys-on-surface)}.onemrva-mat-panel-content:not(:empty) p:last-child{margin:0}\n"] }]
|
|
56
86
|
}], propDecorators: { customNgClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "customNgClass", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
57
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Icon slot inside an onemrva-mat-panel header.
|
|
90
|
+
*
|
|
91
|
+
* Exposes 1 input and 0 outputs.
|
|
92
|
+
* Inputs: customNgClass: any.
|
|
93
|
+
* Outputs: none.
|
|
94
|
+
*
|
|
95
|
+
* @MatKeywords panel, accordion, icon, header
|
|
96
|
+
* @MatGroup Layout
|
|
97
|
+
*/
|
|
58
98
|
class OnemrvaMatPanelIconComponent {
|
|
59
99
|
constructor() {
|
|
60
100
|
this.customNgClass = input(/* @ts-ignore */
|
|
@@ -62,15 +102,25 @@ class OnemrvaMatPanelIconComponent {
|
|
|
62
102
|
this.template = viewChild(TemplateRef, /* @ts-ignore */
|
|
63
103
|
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
64
104
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: OnemrvaMatPanelIconComponent, isStandalone: true, selector: "onemrva-mat-panel-icon", inputs: { customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <div class=\"onemrva-mat-panel-icon\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-icon{float:left;position:absolute;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
67
107
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelIconComponent, decorators: [{
|
|
69
109
|
type: Component,
|
|
70
110
|
args: [{ selector: 'onemrva-mat-panel-icon', standalone: true, imports: [NgClass], template: "<ng-template>\n <div class=\"onemrva-mat-panel-icon\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n", styles: [".onemrva-mat-panel-icon{float:left;position:absolute;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}\n"] }]
|
|
71
111
|
}], propDecorators: { customNgClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "customNgClass", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
72
112
|
|
|
73
113
|
let NEXT_ID = 0;
|
|
114
|
+
/**
|
|
115
|
+
* Collapsible expansion panel (accordion item) with header and body slots.
|
|
116
|
+
*
|
|
117
|
+
* Exposes 5 inputs and 1 output.
|
|
118
|
+
* Inputs: id, data_cy, disabled, expandable, expanded: boolean.
|
|
119
|
+
* Outputs: expandedChange: boolean.
|
|
120
|
+
*
|
|
121
|
+
* @MatKeywords panel, accordion, expansion, collapsible, expand, collapse
|
|
122
|
+
* @MatGroup Layout
|
|
123
|
+
*/
|
|
74
124
|
class OnemrvaMatPanelComponent {
|
|
75
125
|
constructor() {
|
|
76
126
|
this.id = input(`onemrva-mat-panel-${NEXT_ID++}`, /* @ts-ignore */
|
|
@@ -99,10 +149,10 @@ class OnemrvaMatPanelComponent {
|
|
|
99
149
|
ngAfterViewInit() {
|
|
100
150
|
this.cd.detectChanges();
|
|
101
151
|
}
|
|
102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
153
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: OnemrvaMatPanelComponent, isStandalone: true, selector: "onemrva-mat-panel", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, data_cy: { classPropertyName: "data_cy", publicName: "data_cy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedChange: "expandedChange" }, host: { properties: { "attr.id": "id()", "attr.data-cy": "data_cy()", "class.mat-disabled": "disabled()", "class.is-expandable": "expandable()" } }, queries: [{ propertyName: "panel", first: true, predicate: OnemrvaMatPanelComponent, descendants: true, isSignal: true }, { propertyName: "title", first: true, predicate: OnemrvaMatPanelTitleComponent, descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: OnemrvaMatPanelContentComponent, descendants: true, isSignal: true }, { propertyName: "icon", first: true, predicate: OnemrvaMatPanelIconComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@if (icon()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n}\n\n<div class=\"right-content\">\n @if (expandable()) {\n @if (title()?.template(); as titleTpl) {\n <mat-expansion-panel\n [expanded]=\"expanded()\"\n (expandedChange)=\"onChangeState($event)\"\n >\n <mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"titleTpl\" />\n </mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n </mat-expansion-panel>\n }\n } @else {\n @if (title()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n }\n</div>\n", styles: [":host{border-radius:var(--border-radius);border:1px solid var(--mat-sys-outline-variant);padding:var(--triple-spacer);display:block;position:relative;background:var(--mat-sys-surface-container-lowest)}:host.is-expandable{padding:0;--mat-expansion-header-expanded-state-height: 80px;--mat-expansion-header-collapsed-state-height: 80px;--mat-expansion-container-shape: var(--border-radius);--mat-expansion-container-background-color: transparent}:host.is-expandable mat-expansion-panel.mat-expanded mat-expansion-panel-header.mat-expansion-panel-header{border-bottom:1px solid var(--mat-sys-outline-variant)}:host.is-expandable mat-expansion-panel-header.mat-expansion-panel-header{padding:var(--double-spacer) var(--triple-spacer);height:auto;border-bottom-left-radius:0;border-bottom-right-radius:0}:host[class*=\" mat-\"],:host[class^=mat-]{background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}:host.mat-accent{background:var(--background-gradient);color:var(--on-background-gradient);border:none;--mat-sys-on-surface: --on-background-gradient;--mat-form-field-outlined-label-text-color: var(--on-background-gradient);--mat-form-field-outlined-outline-color: var(--on-background-gradient);--mat-form-field-outlined-focus-label-text-color: var(--on-background-gradient);--mat-form-field-outlined-focus-outline-color: var(--on-background-gradient);--mat-form-field-outlined-hover-label-text-color: var(--on-background-gradient);--mat-form-field-outlined-hover-outline-color: var(--on-background-gradient);--mat-form-field-outlined-input-text-color: var(--on-background-gradient);--mat-form-field-outlined-input-text-placeholder-color: var(--on-background-gradient);--mat-select-enabled-arrow-color: var(--on-background-gradient);--mat-select-focused-arrow-color: var(--on-background-gradient);--mat-select-placeholder-text-color: var(--on-background-gradient);--mat-select-enabled-trigger-text-color: var(--on-background-gradient)}:host.mat-neutral{--mat-form-field-outlined-label-text-color: var(--on-background);--mat-form-field-outlined-outline-color: var(--on-background);--mat-form-field-outlined-focus-label-text-color: var(--on-background);--mat-form-field-outlined-focus-outline-color: var(--on-background);--mat-form-field-outlined-hover-label-text-color: var(--on-background);--mat-form-field-outlined-hover-outline-color: var(--on-background);--mat-form-field-outlined-input-text-color: var(--on-background);--mat-form-field-outlined-input-text-placeholder-color: var(--on-background);--mat-select-enabled-arrow-color: var(--on-background);--mat-select-focused-arrow-color: var(--on-background);--mat-select-placeholder-text-color: var(--on-background);--mat-select-enabled-trigger-text-color: var(--on-background)}:host a{color:var(--mat-sys-on-surface)}:host.has-icon .right-content{margin-left:calc(var(--spacer) * 10)}:host .onemrva-mat-panel-content{margin-top:var(--double-spacer)}:host .onemrva-mat-panel-content p:last-child{margin:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
104
154
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelComponent, decorators: [{
|
|
106
156
|
type: Component,
|
|
107
157
|
args: [{ selector: 'onemrva-mat-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, MatExpansionPanel, MatExpansionPanelHeader], standalone: true, host: {
|
|
108
158
|
'[attr.id]': 'id()',
|
|
@@ -113,8 +163,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
113
163
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], data_cy: [{ type: i0.Input, args: [{ isSignal: true, alias: "data_cy", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], panel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPanelComponent), { isSignal: true }] }], title: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPanelTitleComponent), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPanelContentComponent), { isSignal: true }] }], icon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPanelIconComponent), { isSignal: true }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], expandedChange: [{ type: i0.Output, args: ["expandedChange"] }] } });
|
|
114
164
|
|
|
115
165
|
class OnemrvaMatPanelModule {
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
117
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
167
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelModule, imports: [OnemrvaMatPanelComponent,
|
|
118
168
|
OnemrvaMatPanelTitleComponent,
|
|
119
169
|
OnemrvaMatPanelContentComponent,
|
|
120
170
|
OnemrvaMatPanelTitleActionComponent,
|
|
@@ -123,9 +173,9 @@ class OnemrvaMatPanelModule {
|
|
|
123
173
|
OnemrvaMatPanelContentComponent,
|
|
124
174
|
OnemrvaMatPanelTitleActionComponent,
|
|
125
175
|
OnemrvaMatPanelIconComponent] }); }
|
|
126
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
176
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelModule, imports: [OnemrvaMatPanelComponent] }); }
|
|
127
177
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPanelModule, decorators: [{
|
|
129
179
|
type: NgModule,
|
|
130
180
|
args: [{
|
|
131
181
|
declarations: [],
|
|
@@ -147,10 +197,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
147
197
|
}] });
|
|
148
198
|
|
|
149
199
|
class MatExpansionPanelHeaderArrowDivider {
|
|
150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MatExpansionPanelHeaderArrowDivider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.4", type: MatExpansionPanelHeaderArrowDivider, isStandalone: true, selector: "mat-expansion-panel-header-arrow-divider", ngImport: i0, template: "<span></span>\n", styles: [":host span{position:absolute;top:1.55rem;right:3.4rem;display:inline-flex;border-left:1px solid var(--mat-sys-outline-variant);height:30px;margin:0}\n"] }); }
|
|
152
202
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MatExpansionPanelHeaderArrowDivider, decorators: [{
|
|
154
204
|
type: Component,
|
|
155
205
|
args: [{ selector: 'mat-expansion-panel-header-arrow-divider', imports: [], standalone: true, template: "<span></span>\n", styles: [":host span{position:absolute;top:1.55rem;right:3.4rem;display:inline-flex;border-left:1px solid var(--mat-sys-outline-variant);height:30px;margin:0}\n"] }]
|
|
156
206
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-panel.mjs","sources":["../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts","../../../../projects/onemrva/design-system/mat-panel/src/mat-expansion-panel-header-arrow-divider.ts","../../../../projects/onemrva/design-system/mat-panel/src/mat-expansion-panel-header-arrow-divider.html","../../../../projects/onemrva/design-system/mat-panel/onemrvapublic-design-system-mat-panel.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n input,\n viewChild,\n} from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-panel-title-action',\n templateUrl: './onemrva-mat-panel-title-action.html',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelTitleActionComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div\n class=\"onemrva-mat-panel-title-action float-right\"\n [ngClass]=\"customNgClass()\"\n >\n <ng-content />\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n TemplateRef,\n ViewEncapsulation,\n input,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPanelTitleActionComponent } from './onemrva-mat-panel-title-action.component';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-panel-title',\n templateUrl: './onemrva-mat-panel-title.html',\n styleUrl: './onemrva-mat-panel-title.scss',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [NgClass, NgTemplateOutlet],\n})\nexport class OnemrvaMatPanelTitleComponent implements AfterViewInit {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n\n readonly content = contentChild(OnemrvaMatPanelTitleActionComponent);\n\n toggleButtonReference: ElementRef | null = null;\n\n private readonly cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n }\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-title\" [ngClass]=\"customNgClass()\">\n <ng-content />\n @if (content()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </div>\n</ng-template>\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-panel-content',\n templateUrl: './onemrva-mat-panel-content.html',\n styleUrl: './onemrva-mat-panel-content.scss',\n standalone: true,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelContentComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-content\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-panel-icon',\n templateUrl: './onemrva-mat-panel-icon.html',\n styleUrl: './onemrva-mat-panel-icon.scss',\n standalone: true,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelIconComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-icon\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n input,\n output,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPanelTitleComponent } from './onemrva-mat-panel-title.component';\nimport { OnemrvaMatPanelContentComponent } from './onemrva-mat-panel-content.component';\nimport { OnemrvaMatPanelIconComponent } from './onemrva-mat-panel-icon.component';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n MatExpansionPanel,\n MatExpansionPanelHeader,\n} from '@angular/material/expansion';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './onemrva-mat-panel.component.html',\n styleUrl: './onemrva-mat-panel.component.scss',\n imports: [NgTemplateOutlet, MatExpansionPanel, MatExpansionPanelHeader],\n standalone: true,\n host: {\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'data_cy()',\n '[class.mat-disabled]': 'disabled()',\n '[class.is-expandable]': 'expandable()',\n },\n})\nexport class OnemrvaMatPanelComponent implements AfterViewInit {\n readonly id = input(`onemrva-mat-panel-${NEXT_ID++}`);\n readonly data_cy = input('onemrva-mat-panel');\n readonly disabled = input(false);\n readonly panel = contentChild(OnemrvaMatPanelComponent);\n readonly title = contentChild(OnemrvaMatPanelTitleComponent);\n readonly content = contentChild.required(OnemrvaMatPanelContentComponent);\n readonly icon = contentChild(OnemrvaMatPanelIconComponent);\n readonly expandable = input(false);\n\n expanded = input<boolean>(true);\n\n expandedChange = output<boolean>();\n\n error?: string;\n\n private readonly cd = inject(ChangeDetectorRef);\n\n onChangeState(val: boolean) {\n this.expandedChange.emit(val);\n }\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n }\n}\n","@if (icon()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n}\n\n<div class=\"right-content\">\n @if (expandable()) {\n @if (title()?.template(); as titleTpl) {\n <mat-expansion-panel\n [expanded]=\"expanded()\"\n (expandedChange)=\"onChangeState($event)\"\n >\n <mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"titleTpl\" />\n </mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n </mat-expansion-panel>\n }\n } @else {\n @if (title()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatPanelComponent } from './onemrva-mat-panel.component';\nimport { OnemrvaMatPanelTitleComponent } from './onemrva-mat-panel-title.component';\nimport { OnemrvaMatPanelContentComponent } from './onemrva-mat-panel-content.component';\nimport { OnemrvaMatPanelTitleActionComponent } from './onemrva-mat-panel-title-action.component';\nimport { OnemrvaMatPanelIconComponent } from './onemrva-mat-panel-icon.component';\n\n@NgModule({\n declarations: [],\n imports: [\n OnemrvaMatPanelComponent,\n OnemrvaMatPanelTitleComponent,\n OnemrvaMatPanelContentComponent,\n OnemrvaMatPanelTitleActionComponent,\n OnemrvaMatPanelIconComponent,\n ],\n exports: [\n OnemrvaMatPanelComponent,\n OnemrvaMatPanelTitleComponent,\n OnemrvaMatPanelContentComponent,\n OnemrvaMatPanelTitleActionComponent,\n OnemrvaMatPanelIconComponent,\n ],\n})\nexport class OnemrvaMatPanelModule {}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'mat-expansion-panel-header-arrow-divider',\n imports: [],\n standalone: true,\n templateUrl: './mat-expansion-panel-header-arrow-divider.html',\n styleUrl: './mat-expansion-panel-header-arrow-divider.scss',\n})\nexport class MatExpansionPanelHeaderArrowDivider {}\n","<span></span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAgBa,mCAAmC,CAAA;AAPhD,IAAA,WAAA,GAAA;AAQW,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;qGAAO;QAE5B,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,WAAW;qFAAC;AAC3C,IAAA;8GAJY,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAGhB,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnB3C,yKAQA,4CDMY,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAEN,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAP/C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4B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,6BAA6B;wBAC7B,+BAA+B;wBAC/B,mCAAmC;wBACnC,4BAA4B;AAC7B,qBAAA;AACF,iBAAA;;;MCdY,mCAAmC,CAAA;8GAAnC,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,oGCThD,iBACA,EAAA,MAAA,EAAA,CAAA,wJAAA,CAAA,EAAA,CAAA,CAAA;;2FDQa,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAP/C,SAAS;+BACE,0CAA0C,EAAA,OAAA,EAC3C,EAAE,EAAA,UAAA,EACC,IAAI,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,wJAAA,CAAA,EAAA;;;AELlB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-panel.mjs","sources":["../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html","../../../../projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts","../../../../projects/onemrva/design-system/mat-panel/src/mat-expansion-panel-header-arrow-divider.ts","../../../../projects/onemrva/design-system/mat-panel/src/mat-expansion-panel-header-arrow-divider.html","../../../../projects/onemrva/design-system/mat-panel/onemrvapublic-design-system-mat-panel.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n input,\n viewChild,\n} from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n/**\n * Action button projected into an onemrva-mat-panel title.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: customNgClass: any.\n * Outputs: none.\n *\n * @MatKeywords panel, accordion, title, action, button\n * @MatGroup Layout\n */\n@Component({\n selector: 'onemrva-mat-panel-title-action',\n templateUrl: './onemrva-mat-panel-title-action.html',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelTitleActionComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div\n class=\"onemrva-mat-panel-title-action float-right\"\n [ngClass]=\"customNgClass()\"\n >\n <ng-content />\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n TemplateRef,\n ViewEncapsulation,\n input,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPanelTitleActionComponent } from './onemrva-mat-panel-title-action.component';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\n\n/**\n * Title slot for an onemrva-mat-panel header.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: customNgClass: any.\n * Outputs: none.\n *\n * @MatKeywords panel, accordion, title, header\n * @MatGroup Layout\n */\n@Component({\n selector: 'onemrva-mat-panel-title',\n templateUrl: './onemrva-mat-panel-title.html',\n styleUrl: './onemrva-mat-panel-title.scss',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [NgClass, NgTemplateOutlet],\n})\nexport class OnemrvaMatPanelTitleComponent implements AfterViewInit {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n\n readonly content = contentChild(OnemrvaMatPanelTitleActionComponent);\n\n toggleButtonReference: ElementRef | null = null;\n\n private readonly cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n }\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-title\" [ngClass]=\"customNgClass()\">\n <ng-content />\n @if (content()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </div>\n</ng-template>\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n/**\n * Content slot inside an onemrva-mat-panel.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: customNgClass: any.\n * Outputs: none.\n *\n * @MatKeywords panel, accordion, content, expansion\n * @MatGroup Layout\n */\n@Component({\n selector: 'onemrva-mat-panel-content',\n templateUrl: './onemrva-mat-panel-content.html',\n styleUrl: './onemrva-mat-panel-content.scss',\n standalone: true,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelContentComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-content\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n/**\n * Icon slot inside an onemrva-mat-panel header.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: customNgClass: any.\n * Outputs: none.\n *\n * @MatKeywords panel, accordion, icon, header\n * @MatGroup Layout\n */\n@Component({\n selector: 'onemrva-mat-panel-icon',\n templateUrl: './onemrva-mat-panel-icon.html',\n styleUrl: './onemrva-mat-panel-icon.scss',\n standalone: true,\n imports: [NgClass],\n})\nexport class OnemrvaMatPanelIconComponent {\n readonly customNgClass = input<any>();\n\n readonly template = viewChild(TemplateRef);\n}\n","<ng-template>\n <div class=\"onemrva-mat-panel-icon\" [ngClass]=\"customNgClass()\">\n <ng-content />\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n input,\n output,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPanelTitleComponent } from './onemrva-mat-panel-title.component';\nimport { OnemrvaMatPanelContentComponent } from './onemrva-mat-panel-content.component';\nimport { OnemrvaMatPanelIconComponent } from './onemrva-mat-panel-icon.component';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n MatExpansionPanel,\n MatExpansionPanelHeader,\n} from '@angular/material/expansion';\n\nlet NEXT_ID = 0;\n\n/**\n * Collapsible expansion panel (accordion item) with header and body slots.\n *\n * Exposes 5 inputs and 1 output.\n * Inputs: id, data_cy, disabled, expandable, expanded: boolean.\n * Outputs: expandedChange: boolean.\n *\n * @MatKeywords panel, accordion, expansion, collapsible, expand, collapse\n * @MatGroup Layout\n */\n@Component({\n selector: 'onemrva-mat-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './onemrva-mat-panel.component.html',\n styleUrl: './onemrva-mat-panel.component.scss',\n imports: [NgTemplateOutlet, MatExpansionPanel, MatExpansionPanelHeader],\n standalone: true,\n host: {\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'data_cy()',\n '[class.mat-disabled]': 'disabled()',\n '[class.is-expandable]': 'expandable()',\n },\n})\nexport class OnemrvaMatPanelComponent implements AfterViewInit {\n readonly id = input(`onemrva-mat-panel-${NEXT_ID++}`);\n readonly data_cy = input('onemrva-mat-panel');\n readonly disabled = input(false);\n readonly panel = contentChild(OnemrvaMatPanelComponent);\n readonly title = contentChild(OnemrvaMatPanelTitleComponent);\n readonly content = contentChild.required(OnemrvaMatPanelContentComponent);\n readonly icon = contentChild(OnemrvaMatPanelIconComponent);\n readonly expandable = input(false);\n\n expanded = input<boolean>(true);\n\n expandedChange = output<boolean>();\n\n error?: string;\n\n private readonly cd = inject(ChangeDetectorRef);\n\n onChangeState(val: boolean) {\n this.expandedChange.emit(val);\n }\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n }\n}\n","@if (icon()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n}\n\n<div class=\"right-content\">\n @if (expandable()) {\n @if (title()?.template(); as titleTpl) {\n <mat-expansion-panel\n [expanded]=\"expanded()\"\n (expandedChange)=\"onChangeState($event)\"\n >\n <mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"titleTpl\" />\n </mat-expansion-panel-header>\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n </mat-expansion-panel>\n }\n } @else {\n @if (title()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n <ng-container *ngTemplateOutlet=\"content().template()\" />\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatPanelComponent } from './onemrva-mat-panel.component';\nimport { OnemrvaMatPanelTitleComponent } from './onemrva-mat-panel-title.component';\nimport { OnemrvaMatPanelContentComponent } from './onemrva-mat-panel-content.component';\nimport { OnemrvaMatPanelTitleActionComponent } from './onemrva-mat-panel-title-action.component';\nimport { OnemrvaMatPanelIconComponent } from './onemrva-mat-panel-icon.component';\n\n@NgModule({\n declarations: [],\n imports: [\n OnemrvaMatPanelComponent,\n OnemrvaMatPanelTitleComponent,\n OnemrvaMatPanelContentComponent,\n OnemrvaMatPanelTitleActionComponent,\n OnemrvaMatPanelIconComponent,\n ],\n exports: [\n OnemrvaMatPanelComponent,\n OnemrvaMatPanelTitleComponent,\n OnemrvaMatPanelContentComponent,\n OnemrvaMatPanelTitleActionComponent,\n OnemrvaMatPanelIconComponent,\n ],\n})\nexport class OnemrvaMatPanelModule {}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'mat-expansion-panel-header-arrow-divider',\n imports: [],\n standalone: true,\n templateUrl: './mat-expansion-panel-header-arrow-divider.html',\n styleUrl: './mat-expansion-panel-header-arrow-divider.scss',\n})\nexport class MatExpansionPanelHeaderArrowDivider {}\n","<span></span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;;;;;;;;;AASG;MAQU,mCAAmC,CAAA;AAPhD,IAAA,WAAA,GAAA;AAQW,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;qGAAO;QAE5B,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,WAAW;qFAAC;AAC3C,IAAA;8GAJY,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAGhB,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC7B3C,yKAQA,4CDgBY,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAEN,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAP/C,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAE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6B;wBAC7B,+BAA+B;wBAC/B,mCAAmC;wBACnC,4BAA4B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,6BAA6B;wBAC7B,+BAA+B;wBAC/B,mCAAmC;wBACnC,4BAA4B;AAC7B,qBAAA;AACF,iBAAA;;;MCdY,mCAAmC,CAAA;8GAAnC,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,oGCThD,iBACA,EAAA,MAAA,EAAA,CAAA,wJAAA,CAAA,EAAA,CAAA,CAAA;;2FDQa,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAP/C,SAAS;+BACE,0CAA0C,EAAA,OAAA,EAC3C,EAAE,EAAA,UAAA,EACC,IAAI,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,wJAAA,CAAA,EAAA;;;AELlB;;AAEG;;;;"}
|
|
@@ -3,6 +3,16 @@ import { input, viewChild, TemplateRef, Component, contentChild, inject, ChangeD
|
|
|
3
3
|
import { NgTemplateOutlet, NgClass } from '@angular/common';
|
|
4
4
|
|
|
5
5
|
let index$1 = 0;
|
|
6
|
+
/**
|
|
7
|
+
* Trigger element that opens an onemrva-mat-pop-over.
|
|
8
|
+
*
|
|
9
|
+
* Exposes 1 input and 0 outputs.
|
|
10
|
+
* Inputs: dataCy.
|
|
11
|
+
* Outputs: none.
|
|
12
|
+
*
|
|
13
|
+
* @MatKeywords pop-over, popover, trigger, overlay
|
|
14
|
+
* @MatGroup Overlay
|
|
15
|
+
*/
|
|
6
16
|
class OnemrvaMatPopOverTriggerComponent {
|
|
7
17
|
constructor() {
|
|
8
18
|
this.dataCy = input(`onemrvaMatPopOverTrigger_${++index$1}`, /* @ts-ignore */
|
|
@@ -10,10 +20,10 @@ class OnemrvaMatPopOverTriggerComponent {
|
|
|
10
20
|
this.template = viewChild(TemplateRef, /* @ts-ignore */
|
|
11
21
|
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
12
22
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: OnemrvaMatPopOverTriggerComponent, isStandalone: true, selector: "onemrva-mat-pop-over-trigger", inputs: { dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: '<ng-template><ng-content /></ng-template>', isInline: true }); }
|
|
15
25
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverTriggerComponent, decorators: [{
|
|
17
27
|
type: Component,
|
|
18
28
|
args: [{
|
|
19
29
|
selector: 'onemrva-mat-pop-over-trigger',
|
|
@@ -23,6 +33,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
23
33
|
}], propDecorators: { dataCy: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCy", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
24
34
|
|
|
25
35
|
let index = 0;
|
|
36
|
+
/**
|
|
37
|
+
* Content slot projected inside an onemrva-mat-pop-over.
|
|
38
|
+
*
|
|
39
|
+
* Exposes 1 input and 0 outputs.
|
|
40
|
+
* Inputs: dataCy.
|
|
41
|
+
* Outputs: none.
|
|
42
|
+
*
|
|
43
|
+
* @MatKeywords pop-over, popover, overlay, content
|
|
44
|
+
* @MatGroup Overlay
|
|
45
|
+
*/
|
|
26
46
|
class OnemrvaMatPopOverContentComponent {
|
|
27
47
|
constructor() {
|
|
28
48
|
this.dataCy = input(`onemrvaMatPopOverContent_${++index}`, /* @ts-ignore */
|
|
@@ -30,10 +50,10 @@ class OnemrvaMatPopOverContentComponent {
|
|
|
30
50
|
this.template = viewChild(TemplateRef, /* @ts-ignore */
|
|
31
51
|
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
32
52
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: OnemrvaMatPopOverContentComponent, isStandalone: true, selector: "onemrva-mat-pop-over-content", inputs: { dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: '<ng-template><ng-content /></ng-template>', isInline: true }); }
|
|
35
55
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverContentComponent, decorators: [{
|
|
37
57
|
type: Component,
|
|
38
58
|
args: [{
|
|
39
59
|
selector: 'onemrva-mat-pop-over-content',
|
|
@@ -43,6 +63,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
43
63
|
}], propDecorators: { dataCy: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCy", required: false }] }], template: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
44
64
|
|
|
45
65
|
let NEXT_ID = 0;
|
|
66
|
+
/**
|
|
67
|
+
* Anchored popover overlay with configurable position.
|
|
68
|
+
*
|
|
69
|
+
* Exposes 4 inputs and 0 outputs.
|
|
70
|
+
* Inputs: position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', dataCyTrigger, dataCyPo, poId: string.
|
|
71
|
+
* Outputs: none.
|
|
72
|
+
*
|
|
73
|
+
* @MatKeywords pop-over, popover, overlay, tooltip, anchor
|
|
74
|
+
* @MatGroup Overlay
|
|
75
|
+
*/
|
|
46
76
|
class OnemrvaMatPopOverComponent {
|
|
47
77
|
constructor() {
|
|
48
78
|
this.isOpen = false;
|
|
@@ -69,10 +99,10 @@ class OnemrvaMatPopOverComponent {
|
|
|
69
99
|
closePopOver() {
|
|
70
100
|
this.isOpen = false;
|
|
71
101
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
73
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: OnemrvaMatPopOverComponent, isStandalone: true, selector: "onemrva-mat-pop-over", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, dataCyTrigger: { classPropertyName: "dataCyTrigger", publicName: "dataCyTrigger", isSignal: true, isRequired: false, transformFunction: null }, dataCyPo: { classPropertyName: "dataCyPo", publicName: "dataCyPo", isSignal: true, isRequired: false, transformFunction: null }, poId: { classPropertyName: "poId", publicName: "poId", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "trigger", first: true, predicate: OnemrvaMatPopOverTriggerComponent, descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: OnemrvaMatPopOverContentComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"onemrva-pop-over\">\n @if (isOpen) {\n <div class=\"onemrva-overlay\" tabindex=\"1\" (click)=\"closePopOver()\"></div>\n }\n <a\n tabindex=\"1\"\n class=\"onemrva-pop-over-trigger\"\n (click)=\"togglePopOver()\"\n [attr.data-cy]=\"dataCyTrigger()\"\n role=\"button\"\n [attr.aria-expanded]=\"isOpen\"\n [id]=\"poId()\"\n >\n @if (trigger()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </a>\n\n @if (isOpen) {\n @if (content()?.template(); as tpl) {\n <div\n class=\"onemrva-pop-over-frame\"\n [ngClass]=\"position()\"\n [attr.data-cy]=\"dataCyPo()\"\n role=\"region\"\n [attr.aria-labelledby]=\"poId()\"\n >\n <div class=\"onemrva-pop-over-content\" [ngClass]=\"position()\">\n <ng-container *ngTemplateOutlet=\"tpl\" />\n </div>\n </div>\n }\n }\n</div>\n", styles: [".onemrva-overlay{position:fixed;inset:0;background-color:transparent;z-index:10}.onemrva-pop-over{position:relative;display:inline-block}.onemrva-pop-over .onemrva-pop-over-frame{z-index:20;position:absolute}.onemrva-pop-over .onemrva-pop-over-frame.bottom-left{right:0}.onemrva-pop-over .onemrva-pop-over-frame.top-left{right:0;bottom:1.5rem}.onemrva-pop-over .onemrva-pop-over-frame.top-right{bottom:1.5rem}.onemrva-pop-over-content{padding:var(--double-spacer);box-sizing:border-box;border-radius:4px;width:32rem;background-color:var(--mat-sys-surface-container-high);margin:var(--double-spacer) 0;position:relative}.onemrva-pop-over-content h1,.onemrva-pop-over-content h2,.onemrva-pop-over-content h3,.onemrva-pop-over-content h4,.onemrva-pop-over-content h5,.onemrva-pop-over-content h6{margin:0}.onemrva-pop-over-content:after,.onemrva-pop-over-content:before{position:absolute;content:\"\";display:inline-block;height:0;width:0}.onemrva-pop-over-content.bottom-right:before{border-right:9px solid transparent;border-bottom:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;top:-9px;left:15px}.onemrva-pop-over-content.bottom-right:after{border-right:8px solid transparent;border-bottom:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;top:-8px;left:16px}.onemrva-pop-over-content.bottom-left:before{border-right:9px solid transparent;border-bottom:9px solid lightGrey;border-left:9px solid transparent;top:-9px;right:15px}.onemrva-pop-over-content.bottom-left:after{border-right:8px solid transparent;border-bottom:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;top:-8px;right:16px}.onemrva-pop-over-content.top-left:before{border-right:9px solid transparent;border-top:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;bottom:-9px;right:15px}.onemrva-pop-over-content.top-left:after{border-right:8px solid transparent;border-top:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;bottom:-8px;right:16px}.onemrva-pop-over-content.top-right:before{border-right:9px solid transparent;border-top:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;bottom:-9px;left:15px}.onemrva-pop-over-content.top-right:after{border-right:8px solid transparent;border-top:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;bottom:-8px;left:16px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
74
104
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverComponent, decorators: [{
|
|
76
106
|
type: Component,
|
|
77
107
|
args: [{ selector: 'onemrva-mat-pop-over', standalone: true, imports: [NgTemplateOutlet, NgClass], template: "<div class=\"onemrva-pop-over\">\n @if (isOpen) {\n <div class=\"onemrva-overlay\" tabindex=\"1\" (click)=\"closePopOver()\"></div>\n }\n <a\n tabindex=\"1\"\n class=\"onemrva-pop-over-trigger\"\n (click)=\"togglePopOver()\"\n [attr.data-cy]=\"dataCyTrigger()\"\n role=\"button\"\n [attr.aria-expanded]=\"isOpen\"\n [id]=\"poId()\"\n >\n @if (trigger()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </a>\n\n @if (isOpen) {\n @if (content()?.template(); as tpl) {\n <div\n class=\"onemrva-pop-over-frame\"\n [ngClass]=\"position()\"\n [attr.data-cy]=\"dataCyPo()\"\n role=\"region\"\n [attr.aria-labelledby]=\"poId()\"\n >\n <div class=\"onemrva-pop-over-content\" [ngClass]=\"position()\">\n <ng-container *ngTemplateOutlet=\"tpl\" />\n </div>\n </div>\n }\n }\n</div>\n", styles: [".onemrva-overlay{position:fixed;inset:0;background-color:transparent;z-index:10}.onemrva-pop-over{position:relative;display:inline-block}.onemrva-pop-over .onemrva-pop-over-frame{z-index:20;position:absolute}.onemrva-pop-over .onemrva-pop-over-frame.bottom-left{right:0}.onemrva-pop-over .onemrva-pop-over-frame.top-left{right:0;bottom:1.5rem}.onemrva-pop-over .onemrva-pop-over-frame.top-right{bottom:1.5rem}.onemrva-pop-over-content{padding:var(--double-spacer);box-sizing:border-box;border-radius:4px;width:32rem;background-color:var(--mat-sys-surface-container-high);margin:var(--double-spacer) 0;position:relative}.onemrva-pop-over-content h1,.onemrva-pop-over-content h2,.onemrva-pop-over-content h3,.onemrva-pop-over-content h4,.onemrva-pop-over-content h5,.onemrva-pop-over-content h6{margin:0}.onemrva-pop-over-content:after,.onemrva-pop-over-content:before{position:absolute;content:\"\";display:inline-block;height:0;width:0}.onemrva-pop-over-content.bottom-right:before{border-right:9px solid transparent;border-bottom:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;top:-9px;left:15px}.onemrva-pop-over-content.bottom-right:after{border-right:8px solid transparent;border-bottom:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;top:-8px;left:16px}.onemrva-pop-over-content.bottom-left:before{border-right:9px solid transparent;border-bottom:9px solid lightGrey;border-left:9px solid transparent;top:-9px;right:15px}.onemrva-pop-over-content.bottom-left:after{border-right:8px solid transparent;border-bottom:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;top:-8px;right:16px}.onemrva-pop-over-content.top-left:before{border-right:9px solid transparent;border-top:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;bottom:-9px;right:15px}.onemrva-pop-over-content.top-left:after{border-right:8px solid transparent;border-top:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;bottom:-8px;right:16px}.onemrva-pop-over-content.top-right:before{border-right:9px solid transparent;border-top:9px solid var(--mat-sys-surface-container-high);border-left:9px solid transparent;bottom:-9px;left:15px}.onemrva-pop-over-content.top-right:after{border-right:8px solid transparent;border-top:8px solid var(--mat-sys-surface-container-high);border-left:8px solid transparent;bottom:-8px;left:16px}\n"] }]
|
|
78
108
|
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], dataCyTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCyTrigger", required: false }] }], dataCyPo: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCyPo", required: false }] }], poId: [{ type: i0.Input, args: [{ isSignal: true, alias: "poId", required: false }] }], trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPopOverTriggerComponent), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => OnemrvaMatPopOverContentComponent), { isSignal: true }] }] } });
|
|
@@ -83,15 +113,15 @@ const components = [
|
|
|
83
113
|
OnemrvaMatPopOverTriggerComponent,
|
|
84
114
|
];
|
|
85
115
|
class OnemrvaMatPopOverModule {
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
87
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
117
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverModule, imports: [OnemrvaMatPopOverComponent,
|
|
88
118
|
OnemrvaMatPopOverContentComponent,
|
|
89
119
|
OnemrvaMatPopOverTriggerComponent], exports: [OnemrvaMatPopOverComponent,
|
|
90
120
|
OnemrvaMatPopOverContentComponent,
|
|
91
121
|
OnemrvaMatPopOverTriggerComponent] }); }
|
|
92
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
122
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverModule }); }
|
|
93
123
|
}
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatPopOverModule, decorators: [{
|
|
95
125
|
type: NgModule,
|
|
96
126
|
args: [{
|
|
97
127
|
declarations: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-pop-over.mjs","sources":["../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts","../../../../projects/onemrva/design-system/mat-pop-over/onemrvapublic-design-system-mat-pop-over.ts"],"sourcesContent":["import { Component, TemplateRef, input, viewChild } from '@angular/core';\n\nlet index = 0;\n\n@Component({\n selector: 'onemrva-mat-pop-over-trigger',\n template: '<ng-template><ng-content /></ng-template>',\n standalone: true,\n})\nexport class OnemrvaMatPopOverTriggerComponent {\n readonly dataCy = input(`onemrvaMatPopOverTrigger_${++index}`);\n\n readonly template = viewChild(TemplateRef);\n}\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\n\nlet index = 0;\n\n@Component({\n selector: 'onemrva-mat-pop-over-content',\n template: '<ng-template><ng-content /></ng-template>',\n standalone: true,\n})\nexport class OnemrvaMatPopOverContentComponent {\n readonly dataCy = input(`onemrvaMatPopOverContent_${++index}`);\n\n readonly template = viewChild(TemplateRef);\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n inject,\n input,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPopOverTriggerComponent } from './onemrva-mat-pop-over-trigger.component';\nimport { OnemrvaMatPopOverContentComponent } from './onemrva-mat-pop-over-content.component';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nlet NEXT_ID = 0;\n@Component({\n selector: 'onemrva-mat-pop-over',\n styleUrls: ['./onemrva-mat-pop-over.component.scss'],\n templateUrl: 'onemrva-mat-pop-over.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, NgClass],\n})\nexport class OnemrvaMatPopOverComponent implements AfterViewInit {\n isOpen = false;\n\n readonly position = input<\n 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n >('bottom-right');\n\n readonly dataCyTrigger = input('onemrva-po-trigger');\n readonly dataCyPo = input('onemrva-po');\n\n readonly poId = input<string>(this.dataCyPo + '-' + NEXT_ID++); // HTML id for the trigger\n\n readonly trigger = contentChild(OnemrvaMatPopOverTriggerComponent);\n\n readonly content = contentChild(OnemrvaMatPopOverContentComponent);\n\n private readonly cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit(): void {\n this.cd.detectChanges();\n }\n\n togglePopOver() {\n this.isOpen = !this.isOpen;\n }\n\n closePopOver() {\n this.isOpen = false;\n }\n}\n","<div class=\"onemrva-pop-over\">\n @if (isOpen) {\n <div class=\"onemrva-overlay\" tabindex=\"1\" (click)=\"closePopOver()\"></div>\n }\n <a\n tabindex=\"1\"\n class=\"onemrva-pop-over-trigger\"\n (click)=\"togglePopOver()\"\n [attr.data-cy]=\"dataCyTrigger()\"\n role=\"button\"\n [attr.aria-expanded]=\"isOpen\"\n [id]=\"poId()\"\n >\n @if (trigger()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </a>\n\n @if (isOpen) {\n @if (content()?.template(); as tpl) {\n <div\n class=\"onemrva-pop-over-frame\"\n [ngClass]=\"position()\"\n [attr.data-cy]=\"dataCyPo()\"\n role=\"region\"\n [attr.aria-labelledby]=\"poId()\"\n >\n <div class=\"onemrva-pop-over-content\" [ngClass]=\"position()\">\n <ng-container *ngTemplateOutlet=\"tpl\" />\n </div>\n </div>\n }\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatPopOverComponent } from './onemrva-mat-pop-over.component';\nimport { OnemrvaMatPopOverContentComponent } from './onemrva-mat-pop-over-content.component';\nimport { OnemrvaMatPopOverTriggerComponent } from './onemrva-mat-pop-over-trigger.component';\n\nconst components = [\n OnemrvaMatPopOverComponent,\n OnemrvaMatPopOverContentComponent,\n OnemrvaMatPopOverTriggerComponent,\n];\n\n@NgModule({\n declarations: [],\n imports: [...components],\n exports: [...components],\n})\nexport class OnemrvaMatPopOverModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["index"],"mappings":";;;;AAEA,IAAIA,OAAK,GAAG,CAAC;MAOA,iCAAiC,CAAA;AAL9C,IAAA,WAAA,GAAA;AAMW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,CAAA,yBAAA,EAA4B,EAAEA,OAAK,CAAA,CAAE;mFAAC;QAErD,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,WAAW;qFAAC;AAC3C,IAAA;8GAJY,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAGd,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN/B,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;2FAG1C,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAL7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,8BAA8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GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAVlC,0BAA0B;YAC1B,iCAAiC;AACjC,YAAA,iCAAiC,aAFjC,0BAA0B;YAC1B,iCAAiC;YACjC,iCAAiC,CAAA,EAAA,CAAA,CAAA;+GAQtB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-pop-over.mjs","sources":["../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html","../../../../projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts","../../../../projects/onemrva/design-system/mat-pop-over/onemrvapublic-design-system-mat-pop-over.ts"],"sourcesContent":["import { Component, TemplateRef, input, viewChild } from '@angular/core';\n\nlet index = 0;\n\n/**\n * Trigger element that opens an onemrva-mat-pop-over.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: dataCy.\n * Outputs: none.\n *\n * @MatKeywords pop-over, popover, trigger, overlay\n * @MatGroup Overlay\n */\n@Component({\n selector: 'onemrva-mat-pop-over-trigger',\n template: '<ng-template><ng-content /></ng-template>',\n standalone: true,\n})\nexport class OnemrvaMatPopOverTriggerComponent {\n readonly dataCy = input(`onemrvaMatPopOverTrigger_${++index}`);\n\n readonly template = viewChild(TemplateRef);\n}\n","import { Component, TemplateRef, input, viewChild } from '@angular/core';\n\nlet index = 0;\n\n/**\n * Content slot projected inside an onemrva-mat-pop-over.\n *\n * Exposes 1 input and 0 outputs.\n * Inputs: dataCy.\n * Outputs: none.\n *\n * @MatKeywords pop-over, popover, overlay, content\n * @MatGroup Overlay\n */\n@Component({\n selector: 'onemrva-mat-pop-over-content',\n template: '<ng-template><ng-content /></ng-template>',\n standalone: true,\n})\nexport class OnemrvaMatPopOverContentComponent {\n readonly dataCy = input(`onemrvaMatPopOverContent_${++index}`);\n\n readonly template = viewChild(TemplateRef);\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n inject,\n input,\n contentChild,\n} from '@angular/core';\nimport { OnemrvaMatPopOverTriggerComponent } from './onemrva-mat-pop-over-trigger.component';\nimport { OnemrvaMatPopOverContentComponent } from './onemrva-mat-pop-over-content.component';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nlet NEXT_ID = 0;\n/**\n * Anchored popover overlay with configurable position.\n *\n * Exposes 4 inputs and 0 outputs.\n * Inputs: position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', dataCyTrigger, dataCyPo, poId: string.\n * Outputs: none.\n *\n * @MatKeywords pop-over, popover, overlay, tooltip, anchor\n * @MatGroup Overlay\n */\n@Component({\n selector: 'onemrva-mat-pop-over',\n styleUrls: ['./onemrva-mat-pop-over.component.scss'],\n templateUrl: 'onemrva-mat-pop-over.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, NgClass],\n})\nexport class OnemrvaMatPopOverComponent implements AfterViewInit {\n isOpen = false;\n\n readonly position = input<\n 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'\n >('bottom-right');\n\n readonly dataCyTrigger = input('onemrva-po-trigger');\n readonly dataCyPo = input('onemrva-po');\n\n readonly poId = input<string>(this.dataCyPo + '-' + NEXT_ID++); // HTML id for the trigger\n\n readonly trigger = contentChild(OnemrvaMatPopOverTriggerComponent);\n\n readonly content = contentChild(OnemrvaMatPopOverContentComponent);\n\n private readonly cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit(): void {\n this.cd.detectChanges();\n }\n\n togglePopOver() {\n this.isOpen = !this.isOpen;\n }\n\n closePopOver() {\n this.isOpen = false;\n }\n}\n","<div class=\"onemrva-pop-over\">\n @if (isOpen) {\n <div class=\"onemrva-overlay\" tabindex=\"1\" (click)=\"closePopOver()\"></div>\n }\n <a\n tabindex=\"1\"\n class=\"onemrva-pop-over-trigger\"\n (click)=\"togglePopOver()\"\n [attr.data-cy]=\"dataCyTrigger()\"\n role=\"button\"\n [attr.aria-expanded]=\"isOpen\"\n [id]=\"poId()\"\n >\n @if (trigger()?.template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n }\n </a>\n\n @if (isOpen) {\n @if (content()?.template(); as tpl) {\n <div\n class=\"onemrva-pop-over-frame\"\n [ngClass]=\"position()\"\n [attr.data-cy]=\"dataCyPo()\"\n role=\"region\"\n [attr.aria-labelledby]=\"poId()\"\n >\n <div class=\"onemrva-pop-over-content\" [ngClass]=\"position()\">\n <ng-container *ngTemplateOutlet=\"tpl\" />\n </div>\n </div>\n }\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatPopOverComponent } from './onemrva-mat-pop-over.component';\nimport { OnemrvaMatPopOverContentComponent } from './onemrva-mat-pop-over-content.component';\nimport { OnemrvaMatPopOverTriggerComponent } from './onemrva-mat-pop-over-trigger.component';\n\nconst components = [\n OnemrvaMatPopOverComponent,\n OnemrvaMatPopOverContentComponent,\n OnemrvaMatPopOverTriggerComponent,\n];\n\n@NgModule({\n declarations: [],\n imports: [...components],\n exports: [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,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAVlC,0BAA0B;YAC1B,iCAAiC;AACjC,YAAA,iCAAiC,aAFjC,0BAA0B;YAC1B,iCAAiC;YACjC,iCAAiC,CAAA,EAAA,CAAA,CAAA;+GAQtB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
@@ -6,6 +6,16 @@ function clampToPercent(value) {
|
|
|
6
6
|
return 0;
|
|
7
7
|
return Math.max(0, Math.min(100, value));
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Horizontal progress bar with percentage label and success state.
|
|
11
|
+
*
|
|
12
|
+
* Exposes 4 inputs and 0 outputs.
|
|
13
|
+
* Inputs: label: string, value (required): number, dataCy, ariaLabel.
|
|
14
|
+
* Outputs: none.
|
|
15
|
+
*
|
|
16
|
+
* @MatKeywords progress-bar, progress, percentage, loading, bar
|
|
17
|
+
* @MatGroup Feedback
|
|
18
|
+
*/
|
|
9
19
|
class OnemrvaMatProgressBarComponent {
|
|
10
20
|
constructor() {
|
|
11
21
|
this.label = input('', /* @ts-ignore */
|
|
@@ -28,10 +38,10 @@ class OnemrvaMatProgressBarComponent {
|
|
|
28
38
|
}, /* @ts-ignore */
|
|
29
39
|
...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
|
|
30
40
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: OnemrvaMatProgressBarComponent, isStandalone: true, selector: "onemrva-mat-progress-bar", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "\"progressbar\"", "attr.aria-label": "ariaLabel()", "class.mat-success": "isSuccess()" } }, ngImport: i0, template: "<div class=\"onemrva-progress-bar\">\n <span class=\"onemrva-progress-bar-label\">{{ labelText() }}</span>\n\n <div class=\"onemrva-progress-bar-outer mt-s\" #onemrvaProgressBar>\n <div\n class=\"onemrva-progress-bar-inner\"\n [style.width]=\"progressValue()\"\n [class.progress-success]=\"isSuccess()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.value]=\"progressValue()\"\n ></div>\n </div>\n</div>\n", styles: [":host{display:block}:host .onemrva-progress-bar .onemrva-progress-bar-outer{height:.25rem;border-radius:var(--button-border-radius);box-sizing:border-box;overflow:hidden;background-color:var(--mat-sys-outline-variant)}:host .onemrva-progress-bar .onemrva-progress-bar-outer .onemrva-progress-bar-inner{background-color:var(--mat-sys-primary);height:.25rem;box-sizing:border-box;border-radius:var(--button-border-radius);transition:width .3s ease-out}:host .onemrva-progress-bar-label{font-size:var(--mat-sys-label-small)}\n"] }); }
|
|
33
43
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatProgressBarComponent, decorators: [{
|
|
35
45
|
type: Component,
|
|
36
46
|
args: [{ selector: 'onemrva-mat-progress-bar', standalone: true, host: {
|
|
37
47
|
'[attr.role]': '"progressbar"',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-progress-bar.mjs","sources":["../../../../projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts","../../../../projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html","../../../../projects/onemrva/design-system/mat-progress-bar/onemrvapublic-design-system-mat-progress-bar.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\nfunction clampToPercent(value: number): number {\n if (!Number.isFinite(value)) return 0;\n return Math.max(0, Math.min(100, value));\n}\n\n@Component({\n selector: 'onemrva-mat-progress-bar',\n standalone: true,\n templateUrl: 'onemrva-mat-progress-bar.component.html',\n styleUrl: 'onemrva-mat-progress-bar.component.scss',\n host: {\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.mat-success]': 'isSuccess()',\n },\n})\nexport class OnemrvaMatProgressBarComponent {\n readonly label = input<string>('');\n readonly value = input.required<number>();\n readonly dataCy = input('onemrva-mat-progress-bar');\n readonly ariaLabel = input('progress bar');\n\n readonly progressNumber = computed(() => clampToPercent(this.value()));\n readonly progressValue = computed(() => `${this.progressNumber()}%`);\n readonly isSuccess = computed(() => this.progressNumber() >= 100);\n\n readonly labelText = computed(() => {\n const lbl = this.label()?.trim();\n return lbl ? lbl : this.progressValue();\n });\n}\n","<div class=\"onemrva-progress-bar\">\n <span class=\"onemrva-progress-bar-label\">{{ labelText() }}</span>\n\n <div class=\"onemrva-progress-bar-outer mt-s\" #onemrvaProgressBar>\n <div\n class=\"onemrva-progress-bar-inner\"\n [style.width]=\"progressValue()\"\n [class.progress-success]=\"isSuccess()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.value]=\"progressValue()\"\n ></div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,SAAS,cAAc,CAAC,KAAa,EAAA;AACnC,IAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,CAAC;AACrC,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC1C;
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-progress-bar.mjs","sources":["../../../../projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts","../../../../projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html","../../../../projects/onemrva/design-system/mat-progress-bar/onemrvapublic-design-system-mat-progress-bar.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\nfunction clampToPercent(value: number): number {\n if (!Number.isFinite(value)) return 0;\n return Math.max(0, Math.min(100, value));\n}\n\n/**\n * Horizontal progress bar with percentage label and success state.\n *\n * Exposes 4 inputs and 0 outputs.\n * Inputs: label: string, value (required): number, dataCy, ariaLabel.\n * Outputs: none.\n *\n * @MatKeywords progress-bar, progress, percentage, loading, bar\n * @MatGroup Feedback\n */\n@Component({\n selector: 'onemrva-mat-progress-bar',\n standalone: true,\n templateUrl: 'onemrva-mat-progress-bar.component.html',\n styleUrl: 'onemrva-mat-progress-bar.component.scss',\n host: {\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.mat-success]': 'isSuccess()',\n },\n})\nexport class OnemrvaMatProgressBarComponent {\n readonly label = input<string>('');\n readonly value = input.required<number>();\n readonly dataCy = input('onemrva-mat-progress-bar');\n readonly ariaLabel = input('progress bar');\n\n readonly progressNumber = computed(() => clampToPercent(this.value()));\n readonly progressValue = computed(() => `${this.progressNumber()}%`);\n readonly isSuccess = computed(() => this.progressNumber() >= 100);\n\n readonly labelText = computed(() => {\n const lbl = this.label()?.trim();\n return lbl ? lbl : this.progressValue();\n });\n}\n","<div class=\"onemrva-progress-bar\">\n <span class=\"onemrva-progress-bar-label\">{{ labelText() }}</span>\n\n <div class=\"onemrva-progress-bar-outer mt-s\" #onemrvaProgressBar>\n <div\n class=\"onemrva-progress-bar-inner\"\n [style.width]=\"progressValue()\"\n [class.progress-success]=\"isSuccess()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.value]=\"progressValue()\"\n ></div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,SAAS,cAAc,CAAC,KAAa,EAAA;AACnC,IAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,CAAC;AACrC,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC1C;AAEA;;;;;;;;;AASG;MAYU,8BAA8B,CAAA;AAX3C,IAAA,WAAA,GAAA;QAYW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE;kFAAC;QACzB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAU;QAChC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,0BAA0B;mFAAC;QAC1C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,cAAc;sFAAC;AAEjC,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAM,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;2FAAC;QAC7D,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MA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