@design-system-rte/angular 0.4.3 → 0.4.5
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/esm2022/design-system-rte-angular.mjs +5 -0
- package/esm2022/lib/components/button/button.component.mjs +26 -0
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +35 -0
- package/esm2022/lib/components/checkbox-group/checkbox-group.component.mjs +29 -0
- package/esm2022/lib/components/grid/col/col.directive.mjs +41 -0
- package/esm2022/lib/components/grid/grid.directive.mjs +30 -0
- package/esm2022/lib/components/icon/icon-map.mjs +303 -0
- package/esm2022/lib/components/icon/icon.component.mjs +39 -0
- package/esm2022/lib/components/icon/icon.service.mjs +33 -0
- package/esm2022/lib/components/link/link.component.mjs +20 -0
- package/esm2022/lib/components/radio-button/radio-button.component.mjs +24 -0
- package/esm2022/lib/components/radio-button-group/radio-button-group.component.mjs +29 -0
- package/esm2022/public-api.mjs +10 -0
- package/fesm2022/design-system-rte-angular.mjs +583 -0
- package/fesm2022/design-system-rte-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/button/button.component.d.ts +17 -0
- package/lib/components/checkbox/checkbox.component.d.ts +18 -0
- package/lib/components/checkbox-group/checkbox-group.component.d.ts +18 -0
- package/lib/components/grid/col/col.directive.d.ts +14 -0
- package/lib/components/grid/grid.directive.d.ts +10 -0
- package/lib/components/icon/icon-map.d.ts +301 -0
- package/lib/components/icon/icon.component.d.ts +21 -0
- package/lib/components/icon/icon.service.d.ts +11 -0
- package/lib/components/link/link.component.d.ts +9 -0
- package/lib/components/radio-button/radio-button.component.d.ts +13 -0
- package/lib/components/radio-button-group/radio-button-group.component.d.ts +18 -0
- package/package.json +16 -2
- package/CHANGELOG.md +0 -19
- package/ng-package.json +0 -10
- package/src/lib/components/button/button.component.html +0 -10
- package/src/lib/components/button/button.component.scss +0 -154
- package/src/lib/components/button/button.component.spec.ts +0 -22
- package/src/lib/components/button/button.component.stories.ts +0 -99
- package/src/lib/components/button/button.component.ts +0 -28
- package/src/lib/components/checkbox/checkbox.component.html +0 -31
- package/src/lib/components/checkbox/checkbox.component.scss +0 -176
- package/src/lib/components/checkbox/checkbox.component.stories.ts +0 -126
- package/src/lib/components/checkbox/checkbox.component.ts +0 -34
- package/src/lib/components/checkbox-group/checkbox-group.component.html +0 -46
- package/src/lib/components/checkbox-group/checkbox-group.component.scss +0 -82
- package/src/lib/components/checkbox-group/checkbox-group.component.stories.ts +0 -121
- package/src/lib/components/checkbox-group/checkbox-group.component.ts +0 -28
- package/src/lib/components/grid/col/col.directive.ts +0 -35
- package/src/lib/components/grid/grid.directive.stories.ts +0 -150
- package/src/lib/components/grid/grid.directive.ts +0 -22
- package/src/lib/components/icon/icon-map.ts +0 -305
- package/src/lib/components/icon/icon.component.html +0 -1
- package/src/lib/components/icon/icon.component.scss +0 -3
- package/src/lib/components/icon/icon.component.ts +0 -58
- package/src/lib/components/icon/icon.service.ts +0 -33
- package/src/lib/components/icon/icon.stories.ts +0 -84
- package/src/lib/components/icon-button/icon-button.component.html +0 -16
- package/src/lib/components/icon-button/icon-button.component.scss +0 -165
- package/src/lib/components/icon-button/icon-button.component.ts +0 -40
- package/src/lib/components/icon-button/icon-button.stories.ts +0 -200
- package/src/lib/components/icon-button-toggle/icon-button-toggle.component.html +0 -12
- package/src/lib/components/icon-button-toggle/icon-button-toggle.component.ts +0 -36
- package/src/lib/components/icon-button-toggle/icon-button-toggle.stories.ts +0 -197
- package/src/lib/components/link/link.component.html +0 -6
- package/src/lib/components/link/link.component.scss +0 -108
- package/src/lib/components/link/link.component.stories.ts +0 -61
- package/src/lib/components/link/link.component.ts +0 -18
- package/src/lib/components/radio-button/radio-button.component.html +0 -24
- package/src/lib/components/radio-button/radio-button.component.scss +0 -135
- package/src/lib/components/radio-button/radio-button.component.stories.ts +0 -76
- package/src/lib/components/radio-button/radio-button.component.ts +0 -22
- package/src/lib/components/radio-button-group/radio-button-group.component.html +0 -45
- package/src/lib/components/radio-button-group/radio-button-group.component.scss +0 -82
- package/src/lib/components/radio-button-group/radio-button-group.component.stories.ts +0 -121
- package/src/lib/components/radio-button-group/radio-button-group.component.ts +0 -28
- package/src/lib/components/split-button/split-button.component.html +0 -56
- package/src/lib/components/split-button/split-button.component.scss +0 -288
- package/src/lib/components/split-button/split-button.component.stories.ts +0 -227
- package/src/lib/components/split-button/split-button.component.ts +0 -55
- package/src/lib/components/tooltip/tooltip.component.html +0 -7
- package/src/lib/components/tooltip/tooltip.component.scss +0 -116
- package/src/lib/components/tooltip/tooltip.component.ts +0 -16
- package/src/lib/components/tooltip/tooltip.directive.stories.ts +0 -218
- package/src/lib/components/tooltip/tooltip.directive.ts +0 -187
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, Component, HostBinding, Directive, inject, Injectable, DestroyRef, ChangeDetectorRef, effect, ChangeDetectionStrategy, computed } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { isValidIconName as isValidIconName$1 } from '@design-system-rte/core/components/icon/icon-utils';
|
|
9
|
+
import { labelSize } from '@design-system-rte/core/components/radio-button/radio-button.constants';
|
|
10
|
+
|
|
11
|
+
class ButtonComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.label = input("");
|
|
14
|
+
this.variant = input("primary");
|
|
15
|
+
this.size = input("m");
|
|
16
|
+
this.disabled = input(false);
|
|
17
|
+
this.icon = input("");
|
|
18
|
+
this.ariaLabel = input("");
|
|
19
|
+
this.ariaLabelledBy = input("");
|
|
20
|
+
this.buttonType = input("button");
|
|
21
|
+
this.click = output();
|
|
22
|
+
}
|
|
23
|
+
onClick(event) {
|
|
24
|
+
event.stopPropagation();
|
|
25
|
+
this.click.emit();
|
|
26
|
+
}
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: ButtonComponent, isStandalone: true, selector: "rte-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, buttonType: { classPropertyName: "buttonType", publicName: "buttonType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button\n class=\"rte-button {{ variant() }} size-{{ size() }}\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.type]=\"buttonType()\"\n [disabled]=\"disabled()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"rte-button-label\">{{ label() }}</span>\n</button>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-button{align-items:center;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.rte-button:focus-visible{outline:1px solid var(--border-brand-focused);outline-offset:4px}.rte-button.size-s{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-size:14px;letter-spacing:-.5px;font-weight:600;line-height:20px;height:24px;border-radius:4px;padding:4px 8px}.rte-button.size-s .rte-button-label{margin:0 4px}.rte-button.size-m{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:16px;line-height:24px;letter-spacing:-.5px;height:32px;border-radius:4px;padding:4px 12px}.rte-button.size-m .rte-button-label{margin:0 6px}.rte-button.size-l{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;height:40px;border-radius:8px;padding:4px 16px}.rte-button.size-l .rte-button-label{margin:0 8px}.rte-button.primary{border:var(--border-brand-default);color:var(--content-primary-inverse);background:var(--background-brand-default)}.rte-button.primary:hover{background:var(--background-brand-hover);border:var(--background-brand-hover)}.rte-button.primary:active{background:var(--background-brand-pressed)}.rte-button.primary:disabled{background:var(--background-disabled);border:solid 1px var(--border-disabled);color:var(--content-disabled);box-shadow:none;cursor:default}.rte-button.secondary{background:var(--background-default);border:solid 1px var(--border-brand-default);color:var(--content-brand-default)}.rte-button.secondary:hover{background:var(--background-brand-inverse-hover)}.rte-button.secondary:active{background:var(--background-brand-inverse-pressed)}.rte-button.secondary:disabled{background:var(--background-disabled);border:solid 1px var(--border-disabled);color:var(--content-disabled);cursor:default}.rte-button.text{background:transparent;border:none;color:var(--content-brand-default)}.rte-button.text:hover{background:var(--background-brand-inverse-hover)}.rte-button.text:active{background:var(--background-brand-inverse-pressed)}.rte-button.text:disabled{background:var(--background-disabled);color:var(--content-disabled);cursor:default}.rte-button.transparent{background:transparent;border:none;color:var(--content-brand-default)}.rte-button.transparent:hover{color:var(--content-brand-hover)}.rte-button.transparent:active{color:var(--content-brand-press)}.rte-button.transparent:disabled{color:var(--content-disabled);box-shadow:none;cursor:default}.rte-button.danger{background:var(--background-danger-default);border:none;color:var(--content-primary-inverse);border-radius:8px}.rte-button.danger:hover{background:var(--background-danger-hover)}.rte-button.danger:active{background:var(--background-danger-pressed)}.rte-button.danger:disabled{background:var(--background-disabled);border:var(--border-disabled);color:var(--content-disabled);box-shadow:none;cursor:default}\n"] }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{ selector: "rte-button", imports: [], standalone: true, template: "<button\n class=\"rte-button {{ variant() }} size-{{ size() }}\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.type]=\"buttonType()\"\n [disabled]=\"disabled()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"rte-button-label\">{{ label() }}</span>\n</button>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-button{align-items:center;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.rte-button:focus-visible{outline:1px solid var(--border-brand-focused);outline-offset:4px}.rte-button.size-s{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-size:14px;letter-spacing:-.5px;font-weight:600;line-height:20px;height:24px;border-radius:4px;padding:4px 8px}.rte-button.size-s .rte-button-label{margin:0 4px}.rte-button.size-m{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:16px;line-height:24px;letter-spacing:-.5px;height:32px;border-radius:4px;padding:4px 12px}.rte-button.size-m .rte-button-label{margin:0 6px}.rte-button.size-l{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;height:40px;border-radius:8px;padding:4px 16px}.rte-button.size-l .rte-button-label{margin:0 8px}.rte-button.primary{border:var(--border-brand-default);color:var(--content-primary-inverse);background:var(--background-brand-default)}.rte-button.primary:hover{background:var(--background-brand-hover);border:var(--background-brand-hover)}.rte-button.primary:active{background:var(--background-brand-pressed)}.rte-button.primary:disabled{background:var(--background-disabled);border:solid 1px var(--border-disabled);color:var(--content-disabled);box-shadow:none;cursor:default}.rte-button.secondary{background:var(--background-default);border:solid 1px var(--border-brand-default);color:var(--content-brand-default)}.rte-button.secondary:hover{background:var(--background-brand-inverse-hover)}.rte-button.secondary:active{background:var(--background-brand-inverse-pressed)}.rte-button.secondary:disabled{background:var(--background-disabled);border:solid 1px var(--border-disabled);color:var(--content-disabled);cursor:default}.rte-button.text{background:transparent;border:none;color:var(--content-brand-default)}.rte-button.text:hover{background:var(--background-brand-inverse-hover)}.rte-button.text:active{background:var(--background-brand-inverse-pressed)}.rte-button.text:disabled{background:var(--background-disabled);color:var(--content-disabled);cursor:default}.rte-button.transparent{background:transparent;border:none;color:var(--content-brand-default)}.rte-button.transparent:hover{color:var(--content-brand-hover)}.rte-button.transparent:active{color:var(--content-brand-press)}.rte-button.transparent:disabled{color:var(--content-disabled);box-shadow:none;cursor:default}.rte-button.danger{background:var(--background-danger-default);border:none;color:var(--content-primary-inverse);border-radius:8px}.rte-button.danger:hover{background:var(--background-danger-hover)}.rte-button.danger:active{background:var(--background-danger-pressed)}.rte-button.danger:disabled{background:var(--background-disabled);border:var(--border-disabled);color:var(--content-disabled);box-shadow:none;cursor:default}\n"] }]
|
|
33
|
+
}] });
|
|
34
|
+
|
|
35
|
+
class GridDirective {
|
|
36
|
+
get hostClasses() {
|
|
37
|
+
return "grid";
|
|
38
|
+
}
|
|
39
|
+
get hostDataClasses() {
|
|
40
|
+
const variation = this.gridType();
|
|
41
|
+
return `${variation}`;
|
|
42
|
+
}
|
|
43
|
+
constructor() {
|
|
44
|
+
this.gridType = input("fluid");
|
|
45
|
+
}
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GridDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
47
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.12", type: GridDirective, isStandalone: true, selector: "[rte-grid]", inputs: { gridType: { classPropertyName: "gridType", publicName: "gridType", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.hostClasses", "attr.data-gridtype": "this.hostDataClasses" } }, ngImport: i0 }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GridDirective, decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: "[rte-grid]",
|
|
53
|
+
standalone: true,
|
|
54
|
+
}]
|
|
55
|
+
}], ctorParameters: () => [], propDecorators: { hostClasses: [{
|
|
56
|
+
type: HostBinding,
|
|
57
|
+
args: ["class"]
|
|
58
|
+
}], hostDataClasses: [{
|
|
59
|
+
type: HostBinding,
|
|
60
|
+
args: ["attr.data-gridtype"]
|
|
61
|
+
}] } });
|
|
62
|
+
|
|
63
|
+
class ColDirective {
|
|
64
|
+
get colClasses() {
|
|
65
|
+
return [
|
|
66
|
+
"col",
|
|
67
|
+
this.generateColumnClass("col-xxs", this.xxs()),
|
|
68
|
+
this.generateColumnClass("col-xs", this.xs()),
|
|
69
|
+
this.generateColumnClass("col-s", this.s()),
|
|
70
|
+
this.generateColumnClass("col-m", this.m()),
|
|
71
|
+
this.generateColumnClass("col-l", this.l()),
|
|
72
|
+
this.generateColumnClass("col-xl", this.xl()),
|
|
73
|
+
]
|
|
74
|
+
.filter(Boolean)
|
|
75
|
+
.join(" ");
|
|
76
|
+
}
|
|
77
|
+
constructor() {
|
|
78
|
+
this.xxs = input();
|
|
79
|
+
this.xs = input();
|
|
80
|
+
this.s = input();
|
|
81
|
+
this.m = input();
|
|
82
|
+
this.l = input();
|
|
83
|
+
this.xl = input();
|
|
84
|
+
}
|
|
85
|
+
generateColumnClass(prefix, size) {
|
|
86
|
+
return size ? `${prefix}-${size}` : "";
|
|
87
|
+
}
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
89
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.12", type: ColDirective, isStandalone: true, selector: "[dsCol]", inputs: { xxs: { classPropertyName: "xxs", publicName: "xxs", isSignal: true, isRequired: false, transformFunction: null }, xs: { classPropertyName: "xs", publicName: "xs", isSignal: true, isRequired: false, transformFunction: null }, s: { classPropertyName: "s", publicName: "s", isSignal: true, isRequired: false, transformFunction: null }, m: { classPropertyName: "m", publicName: "m", isSignal: true, isRequired: false, transformFunction: null }, l: { classPropertyName: "l", publicName: "l", isSignal: true, isRequired: false, transformFunction: null }, xl: { classPropertyName: "xl", publicName: "xl", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.colClasses" } }, ngImport: i0 }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColDirective, decorators: [{
|
|
92
|
+
type: Directive,
|
|
93
|
+
args: [{
|
|
94
|
+
selector: "[dsCol]",
|
|
95
|
+
standalone: true,
|
|
96
|
+
}]
|
|
97
|
+
}], ctorParameters: () => [], propDecorators: { colClasses: [{
|
|
98
|
+
type: HostBinding,
|
|
99
|
+
args: ["class"]
|
|
100
|
+
}] } });
|
|
101
|
+
|
|
102
|
+
const togglableIcons = {
|
|
103
|
+
"add-circle": ["add_circle_outlined", "add_circle_filled"],
|
|
104
|
+
"admin-panel-settings": ["admin_panel_settings_outlined", "admin_panel_settings_filled"],
|
|
105
|
+
analytics: ["analytics_outlined", "analytics_filled"],
|
|
106
|
+
archive: ["archive_outlined", "archive_filled"],
|
|
107
|
+
"arrow-circle-chevron-down": ["arrow_circle_chevron_down_outlined", "arrow_circle_chevron_down_filled"],
|
|
108
|
+
"arrow-circle-chevron-left": ["arrow_circle_chevron_left_outlined", "arrow_circle_chevron_left_filled"],
|
|
109
|
+
"arrow-circle-chevron-right": ["arrow_circle_chevron_right_outlined", "arrow_circle_chevron_right_filled"],
|
|
110
|
+
"arrow-circle-chevron-up": ["arrow_circle_chevron_up_outlined", "arrow_circle_chevron_up_filled"],
|
|
111
|
+
"arrow-circle-down": ["arrow_circle_down_outlined", "arrow_circle_down_filled"],
|
|
112
|
+
"arrow-circle-left": ["arrow_circle_left_outlined", "arrow_circle_left_filled"],
|
|
113
|
+
"arrow-circle-right": ["arrow_circle_right_outlined", "arrow_circle_right_filled"],
|
|
114
|
+
"arrow-circle-up": ["arrow_circle_up_outlined", "arrow_circle_up_filled"],
|
|
115
|
+
article: ["article_outlined", "article_filled"],
|
|
116
|
+
"assignment-complete": ["assignment_complete_outlined", "assignment_complete_filled"],
|
|
117
|
+
assignment: ["assignment_outlined", "assignment_filled"],
|
|
118
|
+
"battery-alert": ["battery_alert_outlined", "battery_alert_filled"],
|
|
119
|
+
"battery-charging-full": ["battery_charging_full_outlined", "battery_charging_full_filled"],
|
|
120
|
+
"bolt-alt-circle": ["bolt_alt_circle_outlined", "bolt_alt_circle_filled"],
|
|
121
|
+
"bolt-alt": ["bolt_alt_outlined", "bolt_alt_filled"],
|
|
122
|
+
"bolt-circle": ["bolt_circle_outlined", "bolt_circle_filled"],
|
|
123
|
+
bolt: ["bolt_outlined", "bolt_filled"],
|
|
124
|
+
bookmark: ["bookmark_outlined", "bookmark_filled"],
|
|
125
|
+
bookmarks: ["bookmarks_outlined", "bookmarks_filled"],
|
|
126
|
+
build: ["build_outlined", "build_filled"],
|
|
127
|
+
"calendar-available": ["calendar_available_outlined", "calendar_available_filled"],
|
|
128
|
+
"calendar-busy": ["calendar_busy_outlined", "calendar_busy_filled"],
|
|
129
|
+
"calendar-month": ["calendar_month_outlined", "calendar_month_filled"],
|
|
130
|
+
"calendar-today": ["calendar_today_outlined", "calendar_today_filled"],
|
|
131
|
+
call: ["call_outlined", "call_filled"],
|
|
132
|
+
category: ["category_outlined", "category_filled"],
|
|
133
|
+
"chart-add": ["chart_add_outlined", "chart_add_filled"],
|
|
134
|
+
"chart-area": ["chart_area_outlined", "chart_area_filled"],
|
|
135
|
+
"chart-pie": ["chart_pie_outlined", "chart_pie_filled"],
|
|
136
|
+
"chart-table": ["chart_table_outlined", "chart_table_filled"],
|
|
137
|
+
"chat-alt": ["chat_alt_outlined", "chat_alt_filled"],
|
|
138
|
+
"chat-alt-unread": ["chat_alt_unread_outlined", "chat_alt_unread_filled"],
|
|
139
|
+
chat: ["chat_outlined", "chat_filled"],
|
|
140
|
+
"chat-unread": ["chat_unread_outlined", "chat_unread_filled"],
|
|
141
|
+
"check-circle": ["check_circle_outlined", "check_circle_filled"],
|
|
142
|
+
checkbox: ["checkbox_outlined", "checkbox_filled"],
|
|
143
|
+
"checkbox-indeterminate": ["checkbox_indeterminate_outlined", "checkbox_indeterminate_filled"],
|
|
144
|
+
clock: ["clock_outlined", "clock_filled"],
|
|
145
|
+
"cloud-download": ["cloud_download_outlined", "cloud_download_filled"],
|
|
146
|
+
cloud: ["cloud_outlined", "cloud_filled"],
|
|
147
|
+
"cloud-off": ["cloud_off_outlined", "cloud_off_filled"],
|
|
148
|
+
"cloud-upload": ["cloud_upload_outlined", "cloud_upload_filled"],
|
|
149
|
+
"comment-add": ["comment_add_outlined", "comment_add_filled"],
|
|
150
|
+
comment: ["comment_outlined", "comment_filled"],
|
|
151
|
+
copy: ["copy_outlined", "copy_filled"],
|
|
152
|
+
dangerous: ["dangerous_outlined", "dangerous_filled"],
|
|
153
|
+
dashboard: ["dashboard_outlined", "dashboard_filled"],
|
|
154
|
+
database: ["database_outlined", "database_filled"],
|
|
155
|
+
delete: ["delete_outlined", "delete_filled"],
|
|
156
|
+
desktop: ["desktop_outlined", "desktop_filled"],
|
|
157
|
+
devices: ["devices_outlined", "devices_filled"],
|
|
158
|
+
draft: ["draft_outlined", "draft_filled"],
|
|
159
|
+
eco: ["eco_outlined", "eco_filled"],
|
|
160
|
+
edit: ["edit_outlined", "edit_filled"],
|
|
161
|
+
"electric-meter": ["electric_meter_outlined", "electric_meter_filled"],
|
|
162
|
+
error: ["error_outlined", "error_filled"],
|
|
163
|
+
explore: ["explore_outlined", "explore_filled"],
|
|
164
|
+
"explore-off": ["explore_off_outlined", "explore_off_filled"],
|
|
165
|
+
"fast-forward": ["fast_forward_outlined", "fast_forward_filled"],
|
|
166
|
+
"fast-rewind": ["fast_rewind_outlined", "fast_rewind_filled"],
|
|
167
|
+
feedback: ["feedback_outlined", "feedback_filled"],
|
|
168
|
+
"file-copy": ["file_copy_outlined", "file_copy_filled"],
|
|
169
|
+
"file-download": ["file_download_outlined", "file_download_filled"],
|
|
170
|
+
"file-upload": ["file_upload_outlined", "file_upload_filled"],
|
|
171
|
+
"filter-alt": ["filter_alt_outlined", "filter_alt_filled"],
|
|
172
|
+
"filter-alt-off": ["filter_alt_off_outlined", "filter_alt_off_filled"],
|
|
173
|
+
fire: ["fire_outlined", "fire_filled"],
|
|
174
|
+
"fit-screen": ["fit_screen_outlined", "fit_screen_filled"],
|
|
175
|
+
flag: ["flag_outlined", "flag_filled"],
|
|
176
|
+
flash: ["flash_outlined", "flash_filled"],
|
|
177
|
+
"flash-off": ["flash_off_outlined", "flash_off_filled"],
|
|
178
|
+
"folder-add": ["folder_add_outlined", "folder_add_filled"],
|
|
179
|
+
folder: ["folder_outlined", "folder_filled"],
|
|
180
|
+
"folder-move": ["folder_move_outlined", "folder_move_filled"],
|
|
181
|
+
"folder-open": ["folder_open_outlined", "folder_open_filled"],
|
|
182
|
+
"folder-shared": ["folder_shared_outlined", "folder_shared_filled"],
|
|
183
|
+
forum: ["forum_outlined", "forum_filled"],
|
|
184
|
+
"group-add": ["group_add_outlined", "group_add_filled"],
|
|
185
|
+
group: ["group_outlined", "group_filled"],
|
|
186
|
+
groups: ["groups_outlined", "groups_filled"],
|
|
187
|
+
headphones: ["headphones_outlined", "headphones_filled"],
|
|
188
|
+
heart: ["heart_outlined", "heart_filled"],
|
|
189
|
+
help: ["help_outlined", "help_filled"],
|
|
190
|
+
home: ["home_outlined", "home_filled"],
|
|
191
|
+
hourglass: ["hourglass_outlined", "hourglass_filled"],
|
|
192
|
+
"image-broken": ["image_broken_outlined", "image_broken_filled"],
|
|
193
|
+
image: ["image_outlined", "image_filled"],
|
|
194
|
+
"image-gallery": ["image_gallery_outlined", "image_gallery_filled"],
|
|
195
|
+
inbox: ["inbox_outlined", "inbox_filled"],
|
|
196
|
+
info: ["info_outlined", "info_filled"],
|
|
197
|
+
keep: ["keep_outlined", "keep_filled"],
|
|
198
|
+
"keep-off": ["keep_off_outlined", "keep_off_filled"],
|
|
199
|
+
label: ["label_outlined", "label_filled"],
|
|
200
|
+
laptop: ["laptop_outlined", "laptop_filled"],
|
|
201
|
+
"left-panel-open": ["left_panel_open_outlined", "left_panel_open_filled"],
|
|
202
|
+
"left-panel-close": ["left_panel_close_outlined", "left_panel_close_filled"],
|
|
203
|
+
"light-off": ["light_off_outlined", "light_off_filled"],
|
|
204
|
+
"lightbulb-alt": ["lightbulb_alt_outlined", "lightbulb_alt_filled"],
|
|
205
|
+
"lightbulb-circle": ["lightbulb_circle_outlined", "lightbulb_circle_filled"],
|
|
206
|
+
lightbulb: ["lightbulb_outlined", "lightbulb_filled"],
|
|
207
|
+
"list-alt": ["list_alt_outlined", "list_alt_filled"],
|
|
208
|
+
"location-me": ["location_me_outlined", "location_me_filled"],
|
|
209
|
+
"location-off": ["location_off_outlined", "location_off_filled"],
|
|
210
|
+
"location-on": ["location_on_outlined", "location_on_filled"],
|
|
211
|
+
lock: ["lock_outlined", "lock_filled"],
|
|
212
|
+
"lock-open": ["lock_open_outlined", "lock_open_filled"],
|
|
213
|
+
"lock-open-right": ["lock_open_right_outlined", "lock_open_right_filled"],
|
|
214
|
+
mail: ["mail_outlined", "mail_filled"],
|
|
215
|
+
"mail-unread": ["mail_unread_outlined", "mail_unread_filled"],
|
|
216
|
+
map: ["map_outlined", "map_filled"],
|
|
217
|
+
mic: ["mic_outlined", "mic_filled"],
|
|
218
|
+
"mic-off": ["mic_off_outlined", "mic_off_filled"],
|
|
219
|
+
"mode-dark": ["mode_dark_outlined", "mode_dark_filled"],
|
|
220
|
+
"mode-light": ["mode_light_outlined", "mode_light_filled"],
|
|
221
|
+
notification: ["notification_outlined", "notification_filled"],
|
|
222
|
+
"notification-important": ["notification_important_outlined", "notification_important_filled"],
|
|
223
|
+
"notification-off": ["notification_off_outlined", "notification_off_filled"],
|
|
224
|
+
"notification-unread": ["notification_unread_outlined", "notification_unread_filled"],
|
|
225
|
+
palette: ["palette_outlined", "palette_filled"],
|
|
226
|
+
"pause-circle": ["pause_circle_outlined", "pause_circle_filled"],
|
|
227
|
+
pause: ["pause_outlined", "pause_filled"],
|
|
228
|
+
"photo-camera": ["photo_camera_outlined", "photo_camera_filled"],
|
|
229
|
+
"play-circle": ["play_circle_outlined", "play_circle_filled"],
|
|
230
|
+
play: ["play_outlined", "play_filled"],
|
|
231
|
+
power: ["power_outlined", "power_filled"],
|
|
232
|
+
"power-off": ["power_off_outlined", "power_off_filled"],
|
|
233
|
+
"power-plug-connect": ["power_plug_connect_outlined", "power_plug_connect_filled"],
|
|
234
|
+
"power-settings-circle": ["power_settings_circle_outlined", "power_settings_circle_filled"],
|
|
235
|
+
"power-solar": ["power_solar_outlined", "power_solar_filled"],
|
|
236
|
+
"power-switch": ["power_switch_outlined", "power_switch_filled"],
|
|
237
|
+
"power-wind": ["power_wind_outlined", "power_wind_filled"],
|
|
238
|
+
print: ["print_outlined", "print_filled"],
|
|
239
|
+
"right-panel-close": ["right_panel_close_outlined", "right_panel_close_filled"],
|
|
240
|
+
"right-panel-open": ["right_panel_open_outlined", "right_panel_open_filled"],
|
|
241
|
+
save: ["save_outlined", "save_filled"],
|
|
242
|
+
send: ["send_outlined", "send_filled"],
|
|
243
|
+
settings: ["settings_outlined", "settings_filled"],
|
|
244
|
+
share: ["share_outlined", "share_filled"],
|
|
245
|
+
"skip-next": ["skip_next_outlined", "skip_next_filled"],
|
|
246
|
+
"skip-previous": ["skip_previous_outlined", "skip_previous_filled"],
|
|
247
|
+
smartphone: ["smartphone_outlined", "smartphone_filled"],
|
|
248
|
+
star: ["star_outlined", "star_filled"],
|
|
249
|
+
"sticky-note": ["sticky_note_outlined", "sticky_note_filled"],
|
|
250
|
+
"stop-circle": ["stop_circle_outlined", "stop_circle_filled"],
|
|
251
|
+
stop: ["stop_outlined", "stop_filled"],
|
|
252
|
+
subtitles: ["subtitles_outlined", "subtitles_filled"],
|
|
253
|
+
"text-snippet": ["text_snippet_outlined", "text_snippet_filled"],
|
|
254
|
+
"trash-restore": ["trash_restore_outlined", "trash_restore_filled"],
|
|
255
|
+
unarchive: ["unarchive_outlined", "unarchive_filled"],
|
|
256
|
+
"user-add": ["user_add_outlined", "user_add_filled"],
|
|
257
|
+
"user-circle": ["user_circle_outlined", "user_circle_filled"],
|
|
258
|
+
user: ["user_outlined", "user_filled"],
|
|
259
|
+
"user-settings": ["user_settings_outlined", "user_settings_filled"],
|
|
260
|
+
verified: ["verified_outlined", "verified_filled"],
|
|
261
|
+
"video-camera": ["video_camera_outlined", "video_camera_filled"],
|
|
262
|
+
"video-camera-off": ["video_camera_off_outlined", "video_camera_off_filled"],
|
|
263
|
+
"video-gallery": ["video_gallery_outlined", "video_gallery_filled"],
|
|
264
|
+
"view-agenda": ["view_agenda_outlined", "view_agenda_filled"],
|
|
265
|
+
"view-column": ["view_column_outlined", "view_column_filled"],
|
|
266
|
+
"view-grid": ["view_grid_outlined", "view_grid_filled"],
|
|
267
|
+
"view-kanban": ["view_kanban_outlined", "view_kanban_filled"],
|
|
268
|
+
"view-module": ["view_module_outlined", "view_module_filled"],
|
|
269
|
+
"view-timeline": ["view_timeline_outlined", "view_timeline_filled"],
|
|
270
|
+
"visibility-hide": ["visibility_hide_outlined", "visibility_hide_filled"],
|
|
271
|
+
"visibility-show": ["visibility_show_outlined", "visibility_show_filled"],
|
|
272
|
+
"volume-down": ["volume_down_outlined", "volume_down_filled"],
|
|
273
|
+
"volume-mute": ["volume_mute_outlined", "volume_mute_filled"],
|
|
274
|
+
"volume-off": ["volume_off_outlined", "volume_off_filled"],
|
|
275
|
+
"volume-up": ["volume_up_outlined", "volume_up_filled"],
|
|
276
|
+
warning: ["warning_outlined", "warning_filled"],
|
|
277
|
+
waterdrop: ["waterdrop_outlined", "waterdrop_filled"],
|
|
278
|
+
};
|
|
279
|
+
const regularIcons = {
|
|
280
|
+
add: "add",
|
|
281
|
+
"alt-route": "alt_route",
|
|
282
|
+
apps: "apps",
|
|
283
|
+
"arrow-alt-down": "arrow_alt_down",
|
|
284
|
+
"arrow-alt-down-left": "arrow_alt_down_left",
|
|
285
|
+
"arrow-alt-down-right": "arrow_alt_down_right",
|
|
286
|
+
"arrow-alt-left": "arrow_alt_left",
|
|
287
|
+
"arrow-alt-right": "arrow_alt_right",
|
|
288
|
+
"arrow-alt-up": "arrow_alt_up",
|
|
289
|
+
"arrow-alt-up-left": "arrow_alt_up_left",
|
|
290
|
+
"arrow-alt-up-right": "arrow_alt_up_right",
|
|
291
|
+
"arrow-angle-down-left": "arrow_angle_down_left",
|
|
292
|
+
"arrow-angle-down-right": "arrow_angle_down_right",
|
|
293
|
+
"arrow-angle-up-left": "arrow_angle_up_left",
|
|
294
|
+
"arrow-angle-up-right": "arrow_angle_up_right",
|
|
295
|
+
"arrow-chevron-down": "arrow_chevron_down",
|
|
296
|
+
"arrow-chevron-left": "arrow_chevron_left",
|
|
297
|
+
"arrow-chevron-right": "arrow_chevron_right",
|
|
298
|
+
"arrow-chevron-up": "arrow_chevron_up",
|
|
299
|
+
"arrow-double-down": "arrow_double_down",
|
|
300
|
+
"arrow-double-left": "arrow_double_left",
|
|
301
|
+
"arrow-double-right": "arrow_double_right",
|
|
302
|
+
"arrow-double-up": "arrow_double_up",
|
|
303
|
+
"arrow-down": "arrow_down",
|
|
304
|
+
"arrow-down-left": "arrow_down_left",
|
|
305
|
+
"arrow-down-right": "arrow_down_right",
|
|
306
|
+
"arrow-drop-down": "arrow_drop_down",
|
|
307
|
+
"arrow-drop-up": "arrow_drop_up",
|
|
308
|
+
"arrow-left": "arrow_left",
|
|
309
|
+
"arrow-right": "arrow_right",
|
|
310
|
+
"arrow-up": "arrow_up",
|
|
311
|
+
"arrow-up-left": "arrow_up_left",
|
|
312
|
+
"arrow-up-right": "arrow_up_right",
|
|
313
|
+
asterisk: "asterisk",
|
|
314
|
+
"attach-file": "attach_file",
|
|
315
|
+
"battery-alt-empty": "battery_alt_empty",
|
|
316
|
+
"battery-alt-full": "battery_alt_full",
|
|
317
|
+
"battery-charging": "battery_charging",
|
|
318
|
+
"battery-empty": "battery_empty",
|
|
319
|
+
"battery-full": "battery_full",
|
|
320
|
+
bluetooth: "bluetooth",
|
|
321
|
+
"bluetooth-off": "bluetooth_off",
|
|
322
|
+
"chart-bar": "chart_bar",
|
|
323
|
+
"chart-bar-stacked": "chart_bar_stacked",
|
|
324
|
+
check: "check",
|
|
325
|
+
"check-indeterminate": "check_indeterminate",
|
|
326
|
+
"check-small": "check_small",
|
|
327
|
+
"checkbox-empty": "checkbox_empty",
|
|
328
|
+
close: "close",
|
|
329
|
+
compare: "compare",
|
|
330
|
+
"copy-all": "copy_all",
|
|
331
|
+
"crisis-alert": "crisis_alert",
|
|
332
|
+
cut: "cut",
|
|
333
|
+
download: "download",
|
|
334
|
+
"download-done": "download_done",
|
|
335
|
+
"drag-handle": "drag_handle",
|
|
336
|
+
"drag-indicator": "drag_indicator",
|
|
337
|
+
exclamation: "exclamation",
|
|
338
|
+
"explore-travel": "explore_travel",
|
|
339
|
+
"external-link": "external_link",
|
|
340
|
+
filter: "filter",
|
|
341
|
+
"filter-off": "filter_off",
|
|
342
|
+
"first-page": "first_page",
|
|
343
|
+
forward: "forward",
|
|
344
|
+
fullscreen: "fullscreen",
|
|
345
|
+
"fullscreen-exit": "fullscreen_exit",
|
|
346
|
+
history: "history",
|
|
347
|
+
"hourglass-empty": "hourglass_empty",
|
|
348
|
+
"info-i": "info_i",
|
|
349
|
+
language: "language",
|
|
350
|
+
"last-page": "last_page",
|
|
351
|
+
link: "link",
|
|
352
|
+
"link-off": "link_off",
|
|
353
|
+
list: "list",
|
|
354
|
+
"location-disabled": "location_disabled",
|
|
355
|
+
login: "login",
|
|
356
|
+
logout: "logout",
|
|
357
|
+
menu: "menu",
|
|
358
|
+
"menu-open": "menu_open",
|
|
359
|
+
monitoring: "monitoring",
|
|
360
|
+
"more-down": "more_down",
|
|
361
|
+
"more-horiz": "more_horiz",
|
|
362
|
+
"more-up": "more_up",
|
|
363
|
+
"more-vert": "more_vert",
|
|
364
|
+
ohm: "ohm",
|
|
365
|
+
"open-in-full": "open_in_full",
|
|
366
|
+
paste: "paste",
|
|
367
|
+
"play-pause": "play_pause",
|
|
368
|
+
"power-input": "power_input",
|
|
369
|
+
"power-plug": "power_plug",
|
|
370
|
+
"power-settings": "power_settings",
|
|
371
|
+
"priority-high": "priority_high",
|
|
372
|
+
public: "public",
|
|
373
|
+
publish: "publish",
|
|
374
|
+
"question-mark": "question_mark",
|
|
375
|
+
radar: "radar",
|
|
376
|
+
"radio-button-empty": "radio_button_empty",
|
|
377
|
+
redo: "redo",
|
|
378
|
+
reload: "reload",
|
|
379
|
+
remove: "remove",
|
|
380
|
+
reply: "reply",
|
|
381
|
+
"reply-all": "reply_all",
|
|
382
|
+
route: "route",
|
|
383
|
+
search: "search",
|
|
384
|
+
"side-navigation": "side_navigation",
|
|
385
|
+
sort: "sort",
|
|
386
|
+
"support-agent": "support_agent",
|
|
387
|
+
timeline: "timeline",
|
|
388
|
+
"trending-down": "trending_down",
|
|
389
|
+
"trending-flat": "trending_flat",
|
|
390
|
+
"trending-up": "trending_up",
|
|
391
|
+
tune: "tune",
|
|
392
|
+
undo: "undo",
|
|
393
|
+
upload: "upload",
|
|
394
|
+
water: "water",
|
|
395
|
+
"water-alt": "water_alt",
|
|
396
|
+
wifi: "wifi",
|
|
397
|
+
"wifi-off": "wifi_off",
|
|
398
|
+
windmill: "windmill",
|
|
399
|
+
"zoom-out": "zoom_out",
|
|
400
|
+
"zoom-in": "zoom_in",
|
|
401
|
+
};
|
|
402
|
+
const isValidIconName = (name) => isValidIconName$1(name, regularIcons, togglableIcons);
|
|
403
|
+
|
|
404
|
+
class IconService {
|
|
405
|
+
constructor() {
|
|
406
|
+
this.http = inject(HttpClient);
|
|
407
|
+
}
|
|
408
|
+
getSvg(name, appearance) {
|
|
409
|
+
if (!this.http) {
|
|
410
|
+
throw new Error("HttpClient is not available");
|
|
411
|
+
}
|
|
412
|
+
const toggableIcon = togglableIcons[name];
|
|
413
|
+
if (toggableIcon) {
|
|
414
|
+
const [outlinedIconName, filledIconName] = toggableIcon;
|
|
415
|
+
const iconName = appearance === "filled" ? filledIconName : outlinedIconName;
|
|
416
|
+
return this.http.get(`assets/icons/${iconName}.svg`, { responseType: "text" });
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
const iconName = regularIcons[name];
|
|
420
|
+
if (!iconName) {
|
|
421
|
+
throw new Error(`Icon ${name} not found`);
|
|
422
|
+
}
|
|
423
|
+
return this.http.get(`assets/icons/${iconName}.svg`, { responseType: "text" });
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
427
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService }); }
|
|
428
|
+
}
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService, decorators: [{
|
|
430
|
+
type: Injectable
|
|
431
|
+
}] });
|
|
432
|
+
|
|
433
|
+
class IconComponent {
|
|
434
|
+
constructor() {
|
|
435
|
+
this.name = input.required();
|
|
436
|
+
this.size = input(20);
|
|
437
|
+
this.color = input("currentColor");
|
|
438
|
+
this.classes = input("");
|
|
439
|
+
this.appearance = input();
|
|
440
|
+
this.destroyRef = inject(DestroyRef);
|
|
441
|
+
this.svgContent = null;
|
|
442
|
+
this.sanitizer = inject(DomSanitizer);
|
|
443
|
+
this.iconService = inject(IconService);
|
|
444
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
445
|
+
effect(() => {
|
|
446
|
+
this.setSvgContent(this.name());
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
setSvgContent(svgName) {
|
|
450
|
+
const svgFile = this.iconService.getSvg(svgName, this.appearance() || "outlined");
|
|
451
|
+
svgFile.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((res) => {
|
|
452
|
+
const size = this.size();
|
|
453
|
+
const svgWithSize = res.replace(/<svg([^>]*)>/, `<svg$1 width="${size}" height="${size}">`);
|
|
454
|
+
this.svgContent = this.sanitizer.bypassSecurityTrustHtml(svgWithSize);
|
|
455
|
+
this.cdr.markForCheck();
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: IconComponent, isStandalone: true, selector: "rte-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, providers: [IconService], ngImport: i0, template: "<div class=\"rte-icon-container\" [innerHTML]=\"svgContent\" [style.height]=\"(size())+'px'\" [style.width]=\"(size())+'px'\"></div>", styles: [".rte-icon-container{display:flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
460
|
+
}
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconComponent, decorators: [{
|
|
462
|
+
type: Component,
|
|
463
|
+
args: [{ selector: "rte-icon", imports: [CommonModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [IconService], template: "<div class=\"rte-icon-container\" [innerHTML]=\"svgContent\" [style.height]=\"(size())+'px'\" [style.width]=\"(size())+'px'\"></div>", styles: [".rte-icon-container{display:flex}\n"] }]
|
|
464
|
+
}], ctorParameters: () => [] });
|
|
465
|
+
|
|
466
|
+
class LinkComponent {
|
|
467
|
+
constructor() {
|
|
468
|
+
this.label = input("");
|
|
469
|
+
this.href = input("#");
|
|
470
|
+
this.subtle = input(false);
|
|
471
|
+
this.externalLink = input(false);
|
|
472
|
+
}
|
|
473
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
474
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: LinkComponent, isStandalone: true, selector: "rte-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, subtle: { classPropertyName: "subtle", publicName: "subtle", isSignal: true, isRequired: false, transformFunction: null }, externalLink: { classPropertyName: "externalLink", publicName: "externalLink", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<a href=\"{{ href() }}\" class=\"rte-link\" role=\"link\" [ngClass]=\"{'subtle': subtle()}\">\n <span class=\"rte-link-label\">\n {{ label() }}\n </span>\n <rte-icon *ngIf=\"externalLink()\" name=\"external-link\" [size]=\"12\"></rte-icon>\n</a>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-link{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center}.rte-link:visited{color:var(--content-link-visited);text-decoration:underline}.rte-link:visited:hover{color:var(--content-link-visited-hover);text-decoration:none}.rte-link:visited:active{color:var(--content-link-visited-press);text-decoration:underline}.rte-link:visited:focus-visible{color:var(--content-link-visited);text-decoration:underline;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link:not(:visited){color:var(--content-link-default)}.rte-link:not(:visited):hover{color:var(--content-link-hover);text-decoration:none}.rte-link:not(:visited):active{color:var(--content-link-press);text-decoration:underline}.rte-link:not(:visited):focus-visible{color:var(--content-link-default);text-decoration:underline;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link.subtle:visited{color:var(--content-primary);text-decoration:none}.rte-link.subtle:visited:hover{color:var(--content-link-secondary);text-decoration:underline}.rte-link.subtle:visited:active{color:var(--content-link-primary);text-decoration:none}.rte-link.subtle:visited:focus-visible{color:var(--content-link-primary);text-decoration:none;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link.subtle:not(:visited){color:var(--content-primary);text-decoration:none}.rte-link.subtle:not(:visited):hover{color:var(--content-secondary);text-decoration:underline}.rte-link.subtle:not(:visited):active{color:var(--content-primary);text-decoration:none}.rte-link.subtle:not(:visited):focus-visible{color:var(--content-primary);text-decoration:none;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "rte-icon", inputs: ["name", "size", "color", "classes", "appearance"] }] }); }
|
|
475
|
+
}
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinkComponent, decorators: [{
|
|
477
|
+
type: Component,
|
|
478
|
+
args: [{ selector: "rte-link", imports: [CommonModule, IconComponent], standalone: true, template: "<a href=\"{{ href() }}\" class=\"rte-link\" role=\"link\" [ngClass]=\"{'subtle': subtle()}\">\n <span class=\"rte-link-label\">\n {{ label() }}\n </span>\n <rte-icon *ngIf=\"externalLink()\" name=\"external-link\" [size]=\"12\"></rte-icon>\n</a>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-link{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center}.rte-link:visited{color:var(--content-link-visited);text-decoration:underline}.rte-link:visited:hover{color:var(--content-link-visited-hover);text-decoration:none}.rte-link:visited:active{color:var(--content-link-visited-press);text-decoration:underline}.rte-link:visited:focus-visible{color:var(--content-link-visited);text-decoration:underline;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link:not(:visited){color:var(--content-link-default)}.rte-link:not(:visited):hover{color:var(--content-link-hover);text-decoration:none}.rte-link:not(:visited):active{color:var(--content-link-press);text-decoration:underline}.rte-link:not(:visited):focus-visible{color:var(--content-link-default);text-decoration:underline;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link.subtle:visited{color:var(--content-primary);text-decoration:none}.rte-link.subtle:visited:hover{color:var(--content-link-secondary);text-decoration:underline}.rte-link.subtle:visited:active{color:var(--content-link-primary);text-decoration:none}.rte-link.subtle:visited:focus-visible{color:var(--content-link-primary);text-decoration:none;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}.rte-link.subtle:not(:visited){color:var(--content-primary);text-decoration:none}.rte-link.subtle:not(:visited):hover{color:var(--content-secondary);text-decoration:underline}.rte-link.subtle:not(:visited):active{color:var(--content-primary);text-decoration:none}.rte-link.subtle:not(:visited):focus-visible{color:var(--content-primary);text-decoration:none;outline:1px solid var(--border-brand-focused);outline-offset:4px;border-radius:4px}\n"] }]
|
|
479
|
+
}] });
|
|
480
|
+
|
|
481
|
+
class RadioButtonComponent {
|
|
482
|
+
constructor() {
|
|
483
|
+
this.label = input("");
|
|
484
|
+
this.groupName = input("");
|
|
485
|
+
this.showLabel = input(true);
|
|
486
|
+
this.disabled = input(false);
|
|
487
|
+
this.error = input(false);
|
|
488
|
+
this.readOnly = input(false);
|
|
489
|
+
this.labelSize = labelSize;
|
|
490
|
+
this.isDisplayed = computed(() => !(this.disabled() && this.error()));
|
|
491
|
+
}
|
|
492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: RadioButtonComponent, isStandalone: true, selector: "rte-radio-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: " <div *ngIf=\"isDisplayed()\" class=\"rte-radio-button-container\">\n <input\n type=\"radio\"\n class=\"rte-radio-button\"\n [id]=\"label()\"\n [value]=\"label()\"\n [size]=\"labelSize\"\n [name]=\"groupName()\"\n [ngClass]=\"{'error': error(), 'read-only': readOnly()}\"\n [disabled]=\"disabled()\"\n />\n <label \n *ngIf=\"showLabel()\" \n class=\"rte-radio-button-label\" \n [for]=\"label()\"\n [ngClass]=\"{\n 'error': error(),\n 'read-only': readOnly(),\n 'disabled': disabled()\n }\"\n >\n {{ label() }}\n </label>\n </div>\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-radio-button-container{display:flex;padding-right:4px;align-items:center;gap:12px}.rte-radio-button{appearance:none;display:flex;width:16px;height:16px;padding:0;justify-content:center;align-items:center;border-radius:999px;border:1px solid var(--content-tertiary);background:var(--background-default);position:relative;cursor:pointer;transition:box-shadow .3s ease-in-out;margin:0}.rte-radio-button:before{content:\"\";width:10px;height:10px;border-radius:999px;background:var(--content-brand-default);opacity:0%}.rte-radio-button:after{content:\"\";width:calc(100% + 8px);height:calc(100% + 8px);border-radius:4px;border:1px solid var(--content-primary);position:absolute;z-index:-1;opacity:0%}.rte-radio-button.error{border:1px solid var(--content-danger);transition:box-shadow .3s ease-in-out}.rte-radio-button.error:checked{border:1px solid var(--content-danger)}.rte-radio-button.error:before{background:var(--content-danger)}.rte-radio-button.error:hover{transition:box-shadow .15s ease-in-out;box-shadow:0 0 0 8px var(--background-hover-opacity-50)}.rte-radio-button.error:hover:checked{box-shadow:0 0 0 8px var(--background-danger-hover-opacity-20)}.rte-radio-button.read-only{pointer-events:none;cursor:default}.rte-radio-button.read-only:before{background:var(--content-tertiary)}.rte-radio-button.read-only:checked{border:1px solid var(--content-tertiary)}.rte-radio-button.read-only.error{border:1px solid var(--content-danger)}.rte-radio-button:focus-visible{outline:none}.rte-radio-button:focus-visible:after{opacity:100%}.rte-radio-button:checked{border:1px solid var(--content-brand-default)}.rte-radio-button:checked:before{opacity:100%}.rte-radio-button:hover{box-shadow:0 0 0 8px var(--background-hover-opacity-50)}.rte-radio-button:hover:checked{box-shadow:0 0 0 8px var(--background-brand-hover-opacity-20)}.rte-radio-button:disabled{pointer-events:none;background:var(--background-disabled);border:1px solid var(--content-disabled);cursor:not-allowed}.rte-radio-button:disabled:before{background:var(--content-disabled)}.rte-radio-button-label{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}.rte-radio-button-label.read-only{pointer-events:none;cursor:default;color:var(--content-tertiary)}.rte-radio-button-label.disabled{pointer-events:none;color:var(--content-disabled)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
494
|
+
}
|
|
495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
496
|
+
type: Component,
|
|
497
|
+
args: [{ selector: "rte-radio-button", imports: [CommonModule], standalone: true, template: " <div *ngIf=\"isDisplayed()\" class=\"rte-radio-button-container\">\n <input\n type=\"radio\"\n class=\"rte-radio-button\"\n [id]=\"label()\"\n [value]=\"label()\"\n [size]=\"labelSize\"\n [name]=\"groupName()\"\n [ngClass]=\"{'error': error(), 'read-only': readOnly()}\"\n [disabled]=\"disabled()\"\n />\n <label \n *ngIf=\"showLabel()\" \n class=\"rte-radio-button-label\" \n [for]=\"label()\"\n [ngClass]=\"{\n 'error': error(),\n 'read-only': readOnly(),\n 'disabled': disabled()\n }\"\n >\n {{ label() }}\n </label>\n </div>\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-radio-button-container{display:flex;padding-right:4px;align-items:center;gap:12px}.rte-radio-button{appearance:none;display:flex;width:16px;height:16px;padding:0;justify-content:center;align-items:center;border-radius:999px;border:1px solid var(--content-tertiary);background:var(--background-default);position:relative;cursor:pointer;transition:box-shadow .3s ease-in-out;margin:0}.rte-radio-button:before{content:\"\";width:10px;height:10px;border-radius:999px;background:var(--content-brand-default);opacity:0%}.rte-radio-button:after{content:\"\";width:calc(100% + 8px);height:calc(100% + 8px);border-radius:4px;border:1px solid var(--content-primary);position:absolute;z-index:-1;opacity:0%}.rte-radio-button.error{border:1px solid var(--content-danger);transition:box-shadow .3s ease-in-out}.rte-radio-button.error:checked{border:1px solid var(--content-danger)}.rte-radio-button.error:before{background:var(--content-danger)}.rte-radio-button.error:hover{transition:box-shadow .15s ease-in-out;box-shadow:0 0 0 8px var(--background-hover-opacity-50)}.rte-radio-button.error:hover:checked{box-shadow:0 0 0 8px var(--background-danger-hover-opacity-20)}.rte-radio-button.read-only{pointer-events:none;cursor:default}.rte-radio-button.read-only:before{background:var(--content-tertiary)}.rte-radio-button.read-only:checked{border:1px solid var(--content-tertiary)}.rte-radio-button.read-only.error{border:1px solid var(--content-danger)}.rte-radio-button:focus-visible{outline:none}.rte-radio-button:focus-visible:after{opacity:100%}.rte-radio-button:checked{border:1px solid var(--content-brand-default)}.rte-radio-button:checked:before{opacity:100%}.rte-radio-button:hover{box-shadow:0 0 0 8px var(--background-hover-opacity-50)}.rte-radio-button:hover:checked{box-shadow:0 0 0 8px var(--background-brand-hover-opacity-20)}.rte-radio-button:disabled{pointer-events:none;background:var(--background-disabled);border:1px solid var(--content-disabled);cursor:not-allowed}.rte-radio-button:disabled:before{background:var(--content-disabled)}.rte-radio-button-label{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}.rte-radio-button-label.read-only{pointer-events:none;cursor:default;color:var(--content-tertiary)}.rte-radio-button-label.disabled{pointer-events:none;color:var(--content-disabled)}\n"] }]
|
|
498
|
+
}] });
|
|
499
|
+
|
|
500
|
+
class RadioButtonGroupComponent {
|
|
501
|
+
constructor() {
|
|
502
|
+
this.groupName = input("");
|
|
503
|
+
this.items = input([]);
|
|
504
|
+
this.direction = input("horizontal");
|
|
505
|
+
this.showItemsLabel = input(true);
|
|
506
|
+
this.groupTitle = input("");
|
|
507
|
+
this.showGroupTitle = input(false);
|
|
508
|
+
this.groupHelpText = input("");
|
|
509
|
+
this.showHelpText = input(false);
|
|
510
|
+
this.errorMessage = input("");
|
|
511
|
+
this.error = input(false);
|
|
512
|
+
this.disabled = input(false);
|
|
513
|
+
this.readOnly = input(false);
|
|
514
|
+
this.isDisplayed = computed(() => !(this.disabled() && this.error()));
|
|
515
|
+
}
|
|
516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: RadioButtonGroupComponent, isStandalone: true, selector: "rte-radio-button-group", inputs: { groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, showItemsLabel: { classPropertyName: "showItemsLabel", publicName: "showItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, groupTitle: { classPropertyName: "groupTitle", publicName: "groupTitle", isSignal: true, isRequired: false, transformFunction: null }, showGroupTitle: { classPropertyName: "showGroupTitle", publicName: "showGroupTitle", isSignal: true, isRequired: false, transformFunction: null }, groupHelpText: { classPropertyName: "groupHelpText", publicName: "groupHelpText", isSignal: true, isRequired: false, transformFunction: null }, showHelpText: { classPropertyName: "showHelpText", publicName: "showHelpText", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div \n *ngIf=\"isDisplayed()\"\n class=\"radio-button-group-container\">\n <div\n class=\"radio-button-group-header\"\n [ngClass]=\"{\n 'disabled': disabled(),\n 'error': error(),\n 'read-only': readOnly(),\n }\">\n <h3\n *ngIf=\"showGroupTitle()\"\n class=\"group-title\"\n >\n {{ groupTitle() }}\n </h3>\n <p\n *ngIf=\"showHelpText()\"\n class=\"group-help-text\"\n >\n {{ groupHelpText() }}\n\n </p>\n <p\n *ngIf=\"error()\"\n class=\"group-error-message\"\n >\n {{ errorMessage() }}\n </p>\n </div>\n <div class=\"radio-button-group\" \n [ngClass]=\"{'horizontal': direction() === 'horizontal', 'vertical': direction() === 'vertical'}\">\n <ng-container \n *ngFor=\"let item of items()\">\n <rte-radio-button\n [label]=\"item\"\n [groupName]=\"groupName()\"\n [showLabel]=\"showItemsLabel()\"\n [disabled]=\"disabled()\"\n [error]=\"error()\"\n [readOnly]=\"readOnly()\"\n />\n </ng-container>\n </div>\n</div>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.radio-button-group-container{display:flex;padding:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}.radio-button-group-container .radio-button-group-header .group-title{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;align-self:stretch;margin:0}.radio-button-group-container .radio-button-group-header .group-help-text{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-tertiary);align-self:stretch;margin:0}.radio-button-group-container .radio-button-group-header .group-error-message{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:700;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-danger);align-self:stretch;margin:4px 0 0}.radio-button-group-container .radio-button-group-header.error .group-title{color:var(--content-danger)}.radio-button-group-container .radio-button-group-header.read-only .group-title{color:var(--content-tertiary)}.radio-button-group-container .radio-button-group-header.read-only .error .group-title{color:var(--content-danger)}.radio-button-group-container .radio-button-group-header.disabled{pointer-events:none}.radio-button-group-container .radio-button-group-header.disabled .group-title,.radio-button-group-container .radio-button-group-header.disabled .group-help-text{color:var(--content-disabled)}.radio-button-group-container .radio-button-group{display:flex;flex-direction:row;padding:0;align-items:flex-start;gap:24px}.radio-button-group-container .radio-button-group.vertical{flex-direction:column;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RadioButtonComponent, selector: "rte-radio-button", inputs: ["label", "groupName", "showLabel", "disabled", "error", "readOnly"] }] }); }
|
|
518
|
+
}
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioButtonGroupComponent, decorators: [{
|
|
520
|
+
type: Component,
|
|
521
|
+
args: [{ selector: "rte-radio-button-group", imports: [CommonModule, RadioButtonComponent], standalone: true, template: "<div \n *ngIf=\"isDisplayed()\"\n class=\"radio-button-group-container\">\n <div\n class=\"radio-button-group-header\"\n [ngClass]=\"{\n 'disabled': disabled(),\n 'error': error(),\n 'read-only': readOnly(),\n }\">\n <h3\n *ngIf=\"showGroupTitle()\"\n class=\"group-title\"\n >\n {{ groupTitle() }}\n </h3>\n <p\n *ngIf=\"showHelpText()\"\n class=\"group-help-text\"\n >\n {{ groupHelpText() }}\n\n </p>\n <p\n *ngIf=\"error()\"\n class=\"group-error-message\"\n >\n {{ errorMessage() }}\n </p>\n </div>\n <div class=\"radio-button-group\" \n [ngClass]=\"{'horizontal': direction() === 'horizontal', 'vertical': direction() === 'vertical'}\">\n <ng-container \n *ngFor=\"let item of items()\">\n <rte-radio-button\n [label]=\"item\"\n [groupName]=\"groupName()\"\n [showLabel]=\"showItemsLabel()\"\n [disabled]=\"disabled()\"\n [error]=\"error()\"\n [readOnly]=\"readOnly()\"\n />\n </ng-container>\n </div>\n</div>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.radio-button-group-container{display:flex;padding:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}.radio-button-group-container .radio-button-group-header .group-title{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;align-self:stretch;margin:0}.radio-button-group-container .radio-button-group-header .group-help-text{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-tertiary);align-self:stretch;margin:0}.radio-button-group-container .radio-button-group-header .group-error-message{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:700;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-danger);align-self:stretch;margin:4px 0 0}.radio-button-group-container .radio-button-group-header.error .group-title{color:var(--content-danger)}.radio-button-group-container .radio-button-group-header.read-only .group-title{color:var(--content-tertiary)}.radio-button-group-container .radio-button-group-header.read-only .error .group-title{color:var(--content-danger)}.radio-button-group-container .radio-button-group-header.disabled{pointer-events:none}.radio-button-group-container .radio-button-group-header.disabled .group-title,.radio-button-group-container .radio-button-group-header.disabled .group-help-text{color:var(--content-disabled)}.radio-button-group-container .radio-button-group{display:flex;flex-direction:row;padding:0;align-items:flex-start;gap:24px}.radio-button-group-container .radio-button-group.vertical{flex-direction:column;gap:8px}\n"] }]
|
|
522
|
+
}] });
|
|
523
|
+
|
|
524
|
+
class CheckboxComponent {
|
|
525
|
+
constructor() {
|
|
526
|
+
this.id = input.required();
|
|
527
|
+
this.label = input.required();
|
|
528
|
+
this.value = input("");
|
|
529
|
+
this.indeterminate = input(false);
|
|
530
|
+
this.description = input("");
|
|
531
|
+
this.showLabel = input(true);
|
|
532
|
+
this.disabled = input(false);
|
|
533
|
+
this.error = input(false);
|
|
534
|
+
this.errorMessage = input("");
|
|
535
|
+
this.readOnly = input(false);
|
|
536
|
+
this.checked = input(false);
|
|
537
|
+
this.groupName = input("");
|
|
538
|
+
}
|
|
539
|
+
onKeydown(event) {
|
|
540
|
+
if (event.code === "Space") {
|
|
541
|
+
if (this.readOnly()) {
|
|
542
|
+
event.preventDefault();
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
547
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: CheckboxComponent, isStandalone: true, selector: "rte-checkbox", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: " <div class=\"rte-checkbox-container\">\n <input\n type=\"checkbox\"\n class=\"rte-checkbox\"\n [id]=\"id()\"\n [value]=\"value()\"\n [ngClass]=\"{'error': error(), 'read-only': readOnly()}\"\n [disabled]=\"disabled()\"\n [indeterminate]=\"indeterminate()\"\n [checked]=\"checked()\"\n (keydown)=\"onKeydown($event)\"\n />\n <rte-icon class=\"rte-checkbox-icons rte-checkbox-icon-selected\" name=\"check-small\" [size]=\"16\"/> \n <rte-icon class=\"rte-checkbox-icons rte-checkbox-icon-indeterminated\" name=\"check-indeterminate\" [size]=\"16\" /> \n <div class=\"rte-checkbox-text-container\">\n <label \n *ngIf=\"showLabel()\" \n class=\"rte-checkbox-label\" \n [for]=\"id()\"\n [ngClass]=\"{\n 'error': error(),\n 'read-only': readOnly(),\n 'disabled': disabled()\n }\"\n >\n {{ label() }}\n </label>\n <p class=\"rte-checkbox-description\">{{ description() }}</p>\n <p *ngIf=\"error() && errorMessage()\" class=\"rte-checkbox-error\">{{ errorMessage() }}</p>\n </div>\n </div>\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-checkbox-container{display:flex;gap:12px}.rte-checkbox-container .rte-checkbox{appearance:none;display:flex;width:16px;height:16px;border-radius:2px;border:1px solid var(--content-tertiary);opacity:100%;background:var(--background-default);align-items:center;justify-content:center;margin:4px 0}.rte-checkbox-container .rte-checkbox:before{content:\"\";display:none;position:absolute;border-radius:999px;background:var(--background-hover);width:32px;height:32px;z-index:-1}.rte-checkbox-container .rte-checkbox:active:before{opacity:100%;transform:scale(0);transition:transform 0s,opacity 0s}.rte-checkbox-container .rte-checkbox:focus-visible{outline:1px solid var(--border-brand-focused);outline-offset:4px}.rte-checkbox-container .rte-checkbox:hover{cursor:pointer}.rte-checkbox-container .rte-checkbox:hover:not(:disabled):before{display:inline-block}.rte-checkbox-container .rte-checkbox:hover:not(:disabled):not(:active):before{opacity:50%;transition:transform .15s ease,opacity .3s ease}.rte-checkbox-container .rte-checkbox:disabled{cursor:default;border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:disabled~.rte-checkbox-text-container label,.rte-checkbox-container .rte-checkbox:disabled~.rte-checkbox-text-container .rte-checkbox-description{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:checked{border:1px solid var(--content-brand-default);background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:checked:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:checked:disabled{border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:checked:disabled~.rte-checkbox-icons{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:checked.error{background:var(--background-danger-default)}.rte-checkbox-container .rte-checkbox:checked:not(:indeterminate)~.rte-checkbox-icon-selected{display:block}.rte-checkbox-container .rte-checkbox:indeterminate{border:1px solid var(--content-brand-default);background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:indeterminate:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:indeterminate:disabled{border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:indeterminate:disabled~.rte-checkbox-icons{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:indeterminate.error{background:var(--background-danger-default)}.rte-checkbox-container .rte-checkbox:indeterminate~.rte-checkbox-icon-indeterminated{display:block}.rte-checkbox-container .rte-checkbox.read-only{pointer-events:none;cursor:default;border:1px solid var(--content-tertiary);opacity:100%;background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-text-container label,.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-text-container .checkbox-description{color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-icons{color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox.read-only.error{border:1px solid var(--content-danger);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox.error{border:1px solid var(--content-danger);background:var(--background-default)}.rte-checkbox-container .rte-checkbox.error:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-danger-hover)}.rte-checkbox-container .rte-checkbox-text-container label{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0px}.rte-checkbox-container .rte-checkbox-text-container .rte-checkbox-description{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:12px;line-height:16px;letter-spacing:0px;margin:0;color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox-text-container .rte-checkbox-error{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:12px;line-height:16px;letter-spacing:0px;font-weight:700;margin:0;color:var(--content-danger)}.rte-checkbox-container .rte-checkbox-icons{display:none;z-index:1;pointer-events:none;transform:translateY(4px);position:absolute;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "rte-icon", inputs: ["name", "size", "color", "classes", "appearance"] }] }); }
|
|
548
|
+
}
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
550
|
+
type: Component,
|
|
551
|
+
args: [{ selector: "rte-checkbox", imports: [CommonModule, IconComponent], standalone: true, template: " <div class=\"rte-checkbox-container\">\n <input\n type=\"checkbox\"\n class=\"rte-checkbox\"\n [id]=\"id()\"\n [value]=\"value()\"\n [ngClass]=\"{'error': error(), 'read-only': readOnly()}\"\n [disabled]=\"disabled()\"\n [indeterminate]=\"indeterminate()\"\n [checked]=\"checked()\"\n (keydown)=\"onKeydown($event)\"\n />\n <rte-icon class=\"rte-checkbox-icons rte-checkbox-icon-selected\" name=\"check-small\" [size]=\"16\"/> \n <rte-icon class=\"rte-checkbox-icons rte-checkbox-icon-indeterminated\" name=\"check-indeterminate\" [size]=\"16\" /> \n <div class=\"rte-checkbox-text-container\">\n <label \n *ngIf=\"showLabel()\" \n class=\"rte-checkbox-label\" \n [for]=\"id()\"\n [ngClass]=\"{\n 'error': error(),\n 'read-only': readOnly(),\n 'disabled': disabled()\n }\"\n >\n {{ label() }}\n </label>\n <p class=\"rte-checkbox-description\">{{ description() }}</p>\n <p *ngIf=\"error() && errorMessage()\" class=\"rte-checkbox-error\">{{ errorMessage() }}</p>\n </div>\n </div>\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.rte-checkbox-container{display:flex;gap:12px}.rte-checkbox-container .rte-checkbox{appearance:none;display:flex;width:16px;height:16px;border-radius:2px;border:1px solid var(--content-tertiary);opacity:100%;background:var(--background-default);align-items:center;justify-content:center;margin:4px 0}.rte-checkbox-container .rte-checkbox:before{content:\"\";display:none;position:absolute;border-radius:999px;background:var(--background-hover);width:32px;height:32px;z-index:-1}.rte-checkbox-container .rte-checkbox:active:before{opacity:100%;transform:scale(0);transition:transform 0s,opacity 0s}.rte-checkbox-container .rte-checkbox:focus-visible{outline:1px solid var(--border-brand-focused);outline-offset:4px}.rte-checkbox-container .rte-checkbox:hover{cursor:pointer}.rte-checkbox-container .rte-checkbox:hover:not(:disabled):before{display:inline-block}.rte-checkbox-container .rte-checkbox:hover:not(:disabled):not(:active):before{opacity:50%;transition:transform .15s ease,opacity .3s ease}.rte-checkbox-container .rte-checkbox:disabled{cursor:default;border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:disabled~.rte-checkbox-text-container label,.rte-checkbox-container .rte-checkbox:disabled~.rte-checkbox-text-container .rte-checkbox-description{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:checked{border:1px solid var(--content-brand-default);background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:checked:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:checked:disabled{border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:checked:disabled~.rte-checkbox-icons{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:checked.error{background:var(--background-danger-default)}.rte-checkbox-container .rte-checkbox:checked:not(:indeterminate)~.rte-checkbox-icon-selected{display:block}.rte-checkbox-container .rte-checkbox:indeterminate{border:1px solid var(--content-brand-default);background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:indeterminate:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-brand-default)}.rte-checkbox-container .rte-checkbox:indeterminate:disabled{border:1px solid var(--content-disabled);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox:indeterminate:disabled~.rte-checkbox-icons{color:var(--content-disabled)}.rte-checkbox-container .rte-checkbox:indeterminate.error{background:var(--background-danger-default)}.rte-checkbox-container .rte-checkbox:indeterminate~.rte-checkbox-icon-indeterminated{display:block}.rte-checkbox-container .rte-checkbox.read-only{pointer-events:none;cursor:default;border:1px solid var(--content-tertiary);opacity:100%;background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-text-container label,.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-text-container .checkbox-description{color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox.read-only~.rte-checkbox-icons{color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox.read-only.error{border:1px solid var(--content-danger);background:var(--background-disabled)}.rte-checkbox-container .rte-checkbox.error{border:1px solid var(--content-danger);background:var(--background-default)}.rte-checkbox-container .rte-checkbox.error:hover:not(:disabled):not(:active):before{opacity:20%;background:var(--background-danger-hover)}.rte-checkbox-container .rte-checkbox-text-container label{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0px}.rte-checkbox-container .rte-checkbox-text-container .rte-checkbox-description{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:12px;line-height:16px;letter-spacing:0px;margin:0;color:var(--content-tertiary)}.rte-checkbox-container .rte-checkbox-text-container .rte-checkbox-error{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:12px;line-height:16px;letter-spacing:0px;font-weight:700;margin:0;color:var(--content-danger)}.rte-checkbox-container .rte-checkbox-icons{display:none;z-index:1;pointer-events:none;transform:translateY(4px);position:absolute;color:#fff}\n"] }]
|
|
552
|
+
}] });
|
|
553
|
+
|
|
554
|
+
class CheckboxGroupComponent {
|
|
555
|
+
constructor() {
|
|
556
|
+
this.groupName = input.required();
|
|
557
|
+
this.items = input.required();
|
|
558
|
+
this.direction = input("horizontal");
|
|
559
|
+
this.showItemsLabel = input(true);
|
|
560
|
+
this.groupTitle = input("");
|
|
561
|
+
this.showGroupTitle = input(false);
|
|
562
|
+
this.groupHelpText = input("");
|
|
563
|
+
this.showHelpText = input(false);
|
|
564
|
+
this.errorMessage = input("");
|
|
565
|
+
this.error = input(false);
|
|
566
|
+
this.disabled = input(false);
|
|
567
|
+
this.readOnly = input(false);
|
|
568
|
+
this.isDisplayed = computed(() => !(this.disabled() && this.error()));
|
|
569
|
+
}
|
|
570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
571
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: CheckboxGroupComponent, isStandalone: true, selector: "rte-checkbox-group", inputs: { groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: true, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, showItemsLabel: { classPropertyName: "showItemsLabel", publicName: "showItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, groupTitle: { classPropertyName: "groupTitle", publicName: "groupTitle", isSignal: true, isRequired: false, transformFunction: null }, showGroupTitle: { classPropertyName: "showGroupTitle", publicName: "showGroupTitle", isSignal: true, isRequired: false, transformFunction: null }, groupHelpText: { classPropertyName: "groupHelpText", publicName: "groupHelpText", isSignal: true, isRequired: false, transformFunction: null }, showHelpText: { classPropertyName: "showHelpText", publicName: "showHelpText", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div \n *ngIf=\"isDisplayed()\"\n class=\"checkbox-group-container\">\n <div\n class=\"checkbox-group-header\"\n [ngClass]=\"{\n 'disabled': disabled(),\n 'error': error(),\n 'read-only': readOnly(),\n }\">\n <h3\n *ngIf=\"showGroupTitle()\"\n class=\"group-title\"\n >\n {{ groupTitle() }}\n </h3>\n <p\n *ngIf=\"showHelpText()\"\n class=\"group-help-text\"\n >\n {{ groupHelpText() }}\n\n </p>\n <p\n *ngIf=\"error()\"\n class=\"group-error-message\"\n >\n {{ errorMessage() }}\n </p>\n </div>\n <div class=\"checkbox-group\" \n [ngClass]=\"{'horizontal': direction() === 'horizontal', 'vertical': direction() === 'vertical'}\">\n <ng-container \n *ngFor=\"let item of items(); let i = index\">\n <rte-checkbox\n [id]=\"item + '-' + i\"\n [label]=\"item\"\n [groupName]=\"groupName()\"\n [showLabel]=\"showItemsLabel()\"\n [disabled]=\"disabled()\"\n [error]=\"error()\"\n [readOnly]=\"readOnly()\"\n />\n </ng-container>\n </div>\n</div>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.checkbox-group-container{display:flex;padding:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}.checkbox-group-container .checkbox-group-header .group-title{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;align-self:stretch;margin:0}.checkbox-group-container .checkbox-group-header .group-help-text{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-tertiary);align-self:stretch;margin:0}.checkbox-group-container .checkbox-group-header .group-error-message{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:700;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-danger);align-self:stretch;margin:4px 0 0}.checkbox-group-container .checkbox-group-header.error .group-title{color:var(--content-danger)}.checkbox-group-container .checkbox-group-header.read-only .group-title{color:var(--content-tertiary)}.checkbox-group-container .checkbox-group-header.read-only .error .group-title{color:var(--content-danger)}.checkbox-group-container .checkbox-group-header.disabled{pointer-events:none}.checkbox-group-container .checkbox-group-header.disabled .group-title,.checkbox-group-container .checkbox-group-header.disabled .group-help-text{color:var(--content-disabled)}.checkbox-group-container .checkbox-group{display:flex;flex-direction:row;padding:0;align-items:flex-start;gap:24px}.checkbox-group-container .checkbox-group.vertical{flex-direction:column;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CheckboxComponent, selector: "rte-checkbox", inputs: ["id", "label", "value", "indeterminate", "description", "showLabel", "disabled", "error", "errorMessage", "readOnly", "checked", "groupName"] }] }); }
|
|
572
|
+
}
|
|
573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxGroupComponent, decorators: [{
|
|
574
|
+
type: Component,
|
|
575
|
+
args: [{ selector: "rte-checkbox-group", imports: [CommonModule, CheckboxComponent], standalone: true, template: "<div \n *ngIf=\"isDisplayed()\"\n class=\"checkbox-group-container\">\n <div\n class=\"checkbox-group-header\"\n [ngClass]=\"{\n 'disabled': disabled(),\n 'error': error(),\n 'read-only': readOnly(),\n }\">\n <h3\n *ngIf=\"showGroupTitle()\"\n class=\"group-title\"\n >\n {{ groupTitle() }}\n </h3>\n <p\n *ngIf=\"showHelpText()\"\n class=\"group-help-text\"\n >\n {{ groupHelpText() }}\n\n </p>\n <p\n *ngIf=\"error()\"\n class=\"group-error-message\"\n >\n {{ errorMessage() }}\n </p>\n </div>\n <div class=\"checkbox-group\" \n [ngClass]=\"{'horizontal': direction() === 'horizontal', 'vertical': direction() === 'vertical'}\">\n <ng-container \n *ngFor=\"let item of items(); let i = index\">\n <rte-checkbox\n [id]=\"item + '-' + i\"\n [label]=\"item\"\n [groupName]=\"groupName()\"\n [showLabel]=\"showItemsLabel()\"\n [disabled]=\"disabled()\"\n [error]=\"error()\"\n [readOnly]=\"readOnly()\"\n />\n </ng-container>\n </div>\n</div>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL,GRAD@400,0,0&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap\";.checkbox-group-container{display:flex;padding:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}.checkbox-group-container .checkbox-group-header .group-title{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Nunito;font-weight:600;font-size:20px;line-height:28px;letter-spacing:-.5px;align-self:stretch;margin:0}.checkbox-group-container .checkbox-group-header .group-help-text{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:400;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-tertiary);align-self:stretch;margin:0}.checkbox-group-container .checkbox-group-header .group-error-message{font-feature-settings:\"liga\" off,\"clig\" off;font-style:normal;font-family:Arial;font-weight:700;font-size:14px;line-height:20px;letter-spacing:0px;color:var(--content-danger);align-self:stretch;margin:4px 0 0}.checkbox-group-container .checkbox-group-header.error .group-title{color:var(--content-danger)}.checkbox-group-container .checkbox-group-header.read-only .group-title{color:var(--content-tertiary)}.checkbox-group-container .checkbox-group-header.read-only .error .group-title{color:var(--content-danger)}.checkbox-group-container .checkbox-group-header.disabled{pointer-events:none}.checkbox-group-container .checkbox-group-header.disabled .group-title,.checkbox-group-container .checkbox-group-header.disabled .group-help-text{color:var(--content-disabled)}.checkbox-group-container .checkbox-group{display:flex;flex-direction:row;padding:0;align-items:flex-start;gap:24px}.checkbox-group-container .checkbox-group.vertical{flex-direction:column;gap:8px}\n"] }]
|
|
576
|
+
}] });
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Generated bundle index. Do not edit.
|
|
580
|
+
*/
|
|
581
|
+
|
|
582
|
+
export { ButtonComponent, CheckboxComponent, CheckboxGroupComponent, ColDirective, GridDirective, IconComponent, LinkComponent, RadioButtonComponent, RadioButtonGroupComponent };
|
|
583
|
+
//# sourceMappingURL=design-system-rte-angular.mjs.map
|