@masterteam/components 0.0.186 → 0.0.187
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 +63 -70
- package/assets/common.css +2 -243
- package/fesm2022/masterteam-components-color-picker-field.mjs +102 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-drawer.mjs +261 -0
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -0
- package/fesm2022/masterteam-components-editor-field.mjs +99 -0
- package/fesm2022/masterteam-components-editor-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-formula.mjs +3618 -0
- package/fesm2022/masterteam-components-formula.mjs.map +1 -0
- package/fesm2022/masterteam-components-icon-field.mjs +161 -0
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-list.mjs +31 -0
- package/fesm2022/masterteam-components-list.mjs.map +1 -0
- package/fesm2022/masterteam-components-location-field.mjs +315 -0
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-menu.mjs +135 -0
- package/fesm2022/masterteam-components-menu.mjs.map +1 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs +34 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-page-header.mjs +42 -0
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -0
- package/fesm2022/masterteam-components-page.mjs +35 -0
- package/fesm2022/masterteam-components-page.mjs.map +1 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs +206 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs +386 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs +85 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs +126 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards.mjs +74 -0
- package/fesm2022/masterteam-components-radio-cards.mjs.map +1 -0
- package/fesm2022/masterteam-components-runtime-action.mjs +406 -0
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -0
- package/fesm2022/masterteam-components-sidebar.mjs +37 -0
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -0
- package/fesm2022/masterteam-components-slider-field.mjs +115 -0
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-statistic-card.mjs +22 -0
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-table.mjs +0 -1
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +122 -0
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-toast.mjs +80 -0
- package/fesm2022/masterteam-components-toast.mjs.map +1 -0
- package/fesm2022/masterteam-components-topbar.mjs +32 -0
- package/fesm2022/masterteam-components-topbar.mjs.map +1 -0
- package/fesm2022/masterteam-components-tree.mjs +260 -0
- package/fesm2022/masterteam-components-tree.mjs.map +1 -0
- package/package.json +269 -269
- package/types/masterteam-components-color-picker-field.d.ts +35 -0
- package/types/masterteam-components-drawer.d.ts +61 -0
- package/types/masterteam-components-editor-field.d.ts +35 -0
- package/types/masterteam-components-formula.d.ts +734 -0
- package/types/masterteam-components-icon-field.d.ts +40 -0
- package/types/masterteam-components-list.d.ts +18 -0
- package/types/masterteam-components-location-field.d.ts +95 -0
- package/types/masterteam-components-menu.d.ts +55 -0
- package/types/masterteam-components-module-summary-card.d.ts +18 -0
- package/types/masterteam-components-page-header.d.ts +30 -0
- package/types/masterteam-components-page.d.ts +26 -0
- package/types/masterteam-components-pick-list-field.d.ts +61 -0
- package/types/masterteam-components-property-filter-builder.d.ts +90 -0
- package/types/masterteam-components-radio-button-field.d.ts +41 -0
- package/types/masterteam-components-radio-cards-field.d.ts +35 -0
- package/types/masterteam-components-radio-cards.d.ts +33 -0
- package/types/masterteam-components-runtime-action.d.ts +105 -0
- package/types/masterteam-components-sidebar.d.ts +28 -0
- package/types/masterteam-components-slider-field.d.ts +38 -0
- package/types/masterteam-components-statistic-card.d.ts +18 -0
- package/types/masterteam-components-textarea-field.d.ts +41 -0
- package/types/masterteam-components-toast.d.ts +27 -0
- package/types/masterteam-components-topbar.d.ts +20 -0
- package/types/masterteam-components-tree.d.ts +106 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, numberAttribute, booleanAttribute, inject, computed, signal, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { NgControl, Validators, FormsModule } from '@angular/forms';
|
|
5
|
+
import { FieldValidation } from '@masterteam/components/field-validation';
|
|
6
|
+
import { isInvalid } from '@masterteam/components';
|
|
7
|
+
import * as i2 from 'primeng/inputgroup';
|
|
8
|
+
import { InputGroupModule } from 'primeng/inputgroup';
|
|
9
|
+
import * as i3 from 'primeng/inputgroupaddon';
|
|
10
|
+
import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
|
|
11
|
+
import * as i4 from 'primeng/inputtext';
|
|
12
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
13
|
+
|
|
14
|
+
let nextUniqueId = 0;
|
|
15
|
+
class SliderField {
|
|
16
|
+
field = input(true, ...(ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []));
|
|
17
|
+
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
18
|
+
class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
19
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
20
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
21
|
+
step = input(undefined, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
22
|
+
hideNumber = input(false, { ...(ngDevMode ? { debugName: "hideNumber" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
23
|
+
unit = input('%', ...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
|
|
24
|
+
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
25
|
+
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
26
|
+
ngControl = inject(NgControl, { optional: true, self: true });
|
|
27
|
+
hostClass = computed(() => ['grid gap-1', this.class()].filter(Boolean).join(' '), ...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
28
|
+
fieldId = computed(() => {
|
|
29
|
+
const labelId = this.label()?.trim().toLowerCase().replace(/\s+/g, '-');
|
|
30
|
+
return this.ngControl?.name?.toString() || labelId || this.defaultId;
|
|
31
|
+
}, ...(ngDevMode ? [{ debugName: "fieldId" }] : /* istanbul ignore next */ []));
|
|
32
|
+
progressBgStyle = computed(() => {
|
|
33
|
+
const val = this.value() ?? this.min();
|
|
34
|
+
const min = this.min();
|
|
35
|
+
const max = this.max();
|
|
36
|
+
const range = max - min;
|
|
37
|
+
const pct = range > 0 ? Math.min(100, Math.max(0, ((val - min) / range) * 100)) : 0;
|
|
38
|
+
return `linear-gradient(to right, color-mix(in srgb, var(--p-primary-color) 18%, transparent) ${pct}%, transparent ${pct}%)`;
|
|
39
|
+
}, ...(ngDevMode ? [{ debugName: "progressBgStyle" }] : /* istanbul ignore next */ []));
|
|
40
|
+
requiredValidator = Validators.required;
|
|
41
|
+
value = signal(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
42
|
+
disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
43
|
+
onTouched = () => { };
|
|
44
|
+
onModelChange = () => { };
|
|
45
|
+
isInvalid = isInvalid;
|
|
46
|
+
defaultId = `mt-slider-field-${nextUniqueId++}`;
|
|
47
|
+
constructor() {
|
|
48
|
+
if (this.ngControl) {
|
|
49
|
+
this.ngControl.valueAccessor = this;
|
|
50
|
+
}
|
|
51
|
+
effect(() => {
|
|
52
|
+
const control = this.ngControl?.control;
|
|
53
|
+
if (!control) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (this.required()) {
|
|
57
|
+
control.addValidators(Validators.required);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
control.removeValidators(Validators.required);
|
|
61
|
+
}
|
|
62
|
+
control.updateValueAndValidity({ emitEvent: false });
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
onValueChange(value) {
|
|
66
|
+
const normalizedValue = this.normalizeValue(value);
|
|
67
|
+
this.onModelChange(normalizedValue);
|
|
68
|
+
this.value.set(normalizedValue);
|
|
69
|
+
}
|
|
70
|
+
writeValue(value) {
|
|
71
|
+
this.value.set(this.normalizeValue(value));
|
|
72
|
+
}
|
|
73
|
+
registerOnChange(fn) {
|
|
74
|
+
this.onModelChange = fn;
|
|
75
|
+
}
|
|
76
|
+
registerOnTouched(fn) {
|
|
77
|
+
this.onTouched = fn;
|
|
78
|
+
}
|
|
79
|
+
setDisabledState(disabled) {
|
|
80
|
+
this.disabled.set(disabled);
|
|
81
|
+
}
|
|
82
|
+
normalizeValue(value) {
|
|
83
|
+
if (value === null || value === undefined || Number.isNaN(value)) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
if (value < this.min()) {
|
|
87
|
+
return this.min();
|
|
88
|
+
}
|
|
89
|
+
if (value > this.max()) {
|
|
90
|
+
return this.max();
|
|
91
|
+
}
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SliderField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
95
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SliderField, isStandalone: true, selector: "mt-slider-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, hideNumber: { classPropertyName: "hideNumber", publicName: "hideNumber", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: "@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"fieldId()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n\r\n<p-inputgroup [class.pointer-events-none]=\"disabled()\">\r\n <input\r\n pInputText\r\n type=\"number\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"disabled()\"\r\n [readonly]=\"readonly()\"\r\n [id]=\"fieldId()\"\r\n [min]=\"min()\"\r\n [max]=\"max()\"\r\n [invalid]=\"isInvalid(ngControl?.control)\"\r\n [style.background]=\"\r\n disabled()\r\n ? 'var(--p-inputtext-disabled-background, var(--p-surface-200))'\r\n : progressBgStyle()\r\n \"\r\n class=\"slider-progress-input w-full [transition:background_0.2s_ease]\"\r\n />\r\n <p-inputgroup-addon>{{ unit() }}</p-inputgroup-addon>\r\n</p-inputgroup>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [":host ::ng-deep .slider-progress-input::-webkit-inner-spin-button,:host ::ng-deep .slider-progress-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host ::ng-deep .slider-progress-input[type=number]{-moz-appearance:textfield;appearance:textfield}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i2.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i3.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i4.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
96
|
+
}
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SliderField, decorators: [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{ selector: 'mt-slider-field', imports: [
|
|
100
|
+
FormsModule,
|
|
101
|
+
InputGroupModule,
|
|
102
|
+
InputGroupAddonModule,
|
|
103
|
+
InputTextModule,
|
|
104
|
+
FieldValidation,
|
|
105
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
106
|
+
'[class]': 'hostClass()',
|
|
107
|
+
}, template: "@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"fieldId()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n\r\n<p-inputgroup [class.pointer-events-none]=\"disabled()\">\r\n <input\r\n pInputText\r\n type=\"number\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"disabled()\"\r\n [readonly]=\"readonly()\"\r\n [id]=\"fieldId()\"\r\n [min]=\"min()\"\r\n [max]=\"max()\"\r\n [invalid]=\"isInvalid(ngControl?.control)\"\r\n [style.background]=\"\r\n disabled()\r\n ? 'var(--p-inputtext-disabled-background, var(--p-surface-200))'\r\n : progressBgStyle()\r\n \"\r\n class=\"slider-progress-input w-full [transition:background_0.2s_ease]\"\r\n />\r\n <p-inputgroup-addon>{{ unit() }}</p-inputgroup-addon>\r\n</p-inputgroup>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [":host ::ng-deep .slider-progress-input::-webkit-inner-spin-button,:host ::ng-deep .slider-progress-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host ::ng-deep .slider-progress-input[type=number]{-moz-appearance:textfield;appearance:textfield}\n"] }]
|
|
108
|
+
}], ctorParameters: () => [], propDecorators: { field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], hideNumber: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideNumber", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }] } });
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Generated bundle index. Do not edit.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
export { SliderField };
|
|
115
|
+
//# sourceMappingURL=masterteam-components-slider-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masterteam-components-slider-field.mjs","sources":["../../../../packages/masterteam/components/slider-field/slider-field.ts","../../../../packages/masterteam/components/slider-field/slider-field.html","../../../../packages/masterteam/components/slider-field/masterteam-components-slider-field.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n booleanAttribute,\r\n computed,\r\n effect,\r\n inject,\r\n input,\r\n numberAttribute,\r\n signal,\r\n} from '@angular/core';\r\nimport {\r\n ControlValueAccessor,\r\n FormsModule,\r\n NgControl,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { FieldValidation } from '@masterteam/components/field-validation';\r\nimport { isInvalid } from '@masterteam/components';\r\nimport { InputGroupModule } from 'primeng/inputgroup';\r\nimport { InputGroupAddonModule } from 'primeng/inputgroupaddon';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\n\r\nlet nextUniqueId = 0;\r\n\r\n@Component({\r\n selector: 'mt-slider-field',\r\n imports: [\r\n FormsModule,\r\n InputGroupModule,\r\n InputGroupAddonModule,\r\n InputTextModule,\r\n FieldValidation,\r\n ],\r\n templateUrl: './slider-field.html',\r\n styleUrl: './slider-field.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[class]': 'hostClass()',\r\n },\r\n})\r\nexport class SliderField implements ControlValueAccessor {\r\n readonly field = input<boolean>(true);\r\n readonly label = input<string>();\r\n readonly class = input<string>('');\r\n readonly min = input<number, unknown>(0, { transform: numberAttribute });\r\n readonly max = input<number, unknown>(100, { transform: numberAttribute });\r\n readonly step = input<number, unknown>(undefined, {\r\n transform: numberAttribute,\r\n });\r\n readonly hideNumber = input<boolean, unknown>(false, {\r\n transform: booleanAttribute,\r\n });\r\n readonly unit = input<string>('%');\r\n readonly readonly = input<boolean>(false);\r\n readonly required = input<boolean>(false);\r\n\r\n readonly ngControl = inject(NgControl, { optional: true, self: true });\r\n readonly hostClass = computed(() =>\r\n ['grid gap-1', this.class()].filter(Boolean).join(' '),\r\n );\r\n readonly fieldId = computed(() => {\r\n const labelId = this.label()?.trim().toLowerCase().replace(/\\s+/g, '-');\r\n return this.ngControl?.name?.toString() || labelId || this.defaultId;\r\n });\r\n readonly progressBgStyle = computed(() => {\r\n const val = this.value() ?? this.min();\r\n const min = this.min();\r\n const max = this.max();\r\n const range = max - min;\r\n const pct =\r\n range > 0 ? Math.min(100, Math.max(0, ((val - min) / range) * 100)) : 0;\r\n return `linear-gradient(to right, color-mix(in srgb, var(--p-primary-color) 18%, transparent) ${pct}%, transparent ${pct}%)`;\r\n });\r\n\r\n readonly requiredValidator = Validators.required;\r\n readonly value = signal<number | null>(null);\r\n readonly disabled = signal<boolean>(false);\r\n\r\n onTouched: () => void = () => {};\r\n onModelChange: (value: number | null) => void = () => {};\r\n\r\n isInvalid = isInvalid;\r\n private readonly defaultId = `mt-slider-field-${nextUniqueId++}`;\r\n\r\n constructor() {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n\r\n effect(() => {\r\n const control = this.ngControl?.control;\r\n if (!control) {\r\n return;\r\n }\r\n\r\n if (this.required()) {\r\n control.addValidators(Validators.required);\r\n } else {\r\n control.removeValidators(Validators.required);\r\n }\r\n\r\n control.updateValueAndValidity({ emitEvent: false });\r\n });\r\n }\r\n\r\n onValueChange(value: number | null) {\r\n const normalizedValue = this.normalizeValue(value);\r\n this.onModelChange(normalizedValue);\r\n this.value.set(normalizedValue);\r\n }\r\n\r\n writeValue(value: number | null) {\r\n this.value.set(this.normalizeValue(value));\r\n }\r\n\r\n registerOnChange(fn: (value: number | null) => void) {\r\n this.onModelChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: () => void) {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(disabled: boolean) {\r\n this.disabled.set(disabled);\r\n }\r\n\r\n private normalizeValue(value: number | null | undefined): number | null {\r\n if (value === null || value === undefined || Number.isNaN(value)) {\r\n return null;\r\n }\r\n\r\n if (value < this.min()) {\r\n return this.min();\r\n }\r\n\r\n if (value > this.max()) {\r\n return this.max();\r\n }\r\n\r\n return value;\r\n }\r\n}\r\n","@if (label()) {\r\n <label\r\n [class.required]=\"ngControl?.control?.hasValidator(requiredValidator)\"\r\n [for]=\"fieldId()\"\r\n >{{ label() }}</label\r\n >\r\n}\r\n\r\n<p-inputgroup [class.pointer-events-none]=\"disabled()\">\r\n <input\r\n pInputText\r\n type=\"number\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"disabled()\"\r\n [readonly]=\"readonly()\"\r\n [id]=\"fieldId()\"\r\n [min]=\"min()\"\r\n [max]=\"max()\"\r\n [invalid]=\"isInvalid(ngControl?.control)\"\r\n [style.background]=\"\r\n disabled()\r\n ? 'var(--p-inputtext-disabled-background, var(--p-surface-200))'\r\n : progressBgStyle()\r\n \"\r\n class=\"slider-progress-input w-full [transition:background_0.2s_ease]\"\r\n />\r\n <p-inputgroup-addon>{{ unit() }}</p-inputgroup-addon>\r\n</p-inputgroup>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAuBA,IAAI,YAAY,GAAG,CAAC;MAkBP,WAAW,CAAA;AACb,IAAA,KAAK,GAAG,KAAK,CAAU,IAAI,4EAAC;IAC5B,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AACvB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IACzB,GAAG,GAAG,KAAK,CAAkB,CAAC,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;IAC/D,GAAG,GAAG,KAAK,CAAkB,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;IACjE,IAAI,GAAG,KAAK,CAAkB,SAAS,4EAC9C,SAAS,EAAE,eAAe,EAAA,CAC1B;IACO,UAAU,GAAG,KAAK,CAAmB,KAAK,kFACjD,SAAS,EAAE,gBAAgB,EAAA,CAC3B;AACO,IAAA,IAAI,GAAG,KAAK,CAAS,GAAG,2EAAC;AACzB,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAEhC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC7D,SAAS,GAAG,QAAQ,CAAC,MAC5B,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CA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A,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,aAAA,EAAA,cAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,SAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACf,eAAe,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FASN,WAAW,EAAA,UAAA,EAAA,CAAA;kBAhBvB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAClB;wBACP,WAAW;wBACX,gBAAgB;wBAChB,qBAAqB;wBACrB,eAAe;wBACf,eAAe;qBAChB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,SAAS,EAAE,aAAa;AACzB,qBAAA,EAAA,QAAA,EAAA,o/BAAA,EAAA,MAAA,EAAA,CAAA,4QAAA,CAAA,EAAA;;;AEvCH;;AAEG;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Component } from '@angular/core';
|
|
3
|
+
import { Card } from '@masterteam/components/card';
|
|
4
|
+
import { Avatar } from '@masterteam/components/avatar';
|
|
5
|
+
|
|
6
|
+
class StatisticCard {
|
|
7
|
+
data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
8
|
+
cardClass = input('shadow-md', ...(ngDevMode ? [{ debugName: "cardClass" }] : /* istanbul ignore next */ []));
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: StatisticCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: StatisticCard, isStandalone: true, selector: "mt-statistic-card", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, cardClass: { classPropertyName: "cardClass", publicName: "cardClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-card headless class=\"shadow-sm\">\r\n <div class=\"flex items-center gap-3 p-2\">\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"'var(--p-' + data().color + '-100)'\"\r\n [style.--p-avatar-color]=\"'var(--p-' + data().color + '-600)'\"\r\n [icon]=\"data().icon\"\r\n size=\"large\"\r\n shape=\"square\"\r\n ></mt-avatar>\r\n\r\n <div class=\"flex flex-col gap-0.5\">\r\n <span\r\n class=\"text-lg font-semibold\"\r\n [style.color]=\"'var(--p-' + data().color + '-600)'\"\r\n >\r\n {{ data().title }}\r\n </span>\r\n <span class=\"text-sm text-surface-500\">\r\n {{ data().subTitle }}\r\n </span>\r\n </div>\r\n </div>\r\n</mt-card>\r\n", styles: [""], dependencies: [{ kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }] });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: StatisticCard, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{ selector: 'mt-statistic-card', standalone: true, imports: [Card, Avatar], template: "<mt-card headless class=\"shadow-sm\">\r\n <div class=\"flex items-center gap-3 p-2\">\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"'var(--p-' + data().color + '-100)'\"\r\n [style.--p-avatar-color]=\"'var(--p-' + data().color + '-600)'\"\r\n [icon]=\"data().icon\"\r\n size=\"large\"\r\n shape=\"square\"\r\n ></mt-avatar>\r\n\r\n <div class=\"flex flex-col gap-0.5\">\r\n <span\r\n class=\"text-lg font-semibold\"\r\n [style.color]=\"'var(--p-' + data().color + '-600)'\"\r\n >\r\n {{ data().title }}\r\n </span>\r\n <span class=\"text-sm text-surface-500\">\r\n {{ data().subTitle }}\r\n </span>\r\n </div>\r\n </div>\r\n</mt-card>\r\n" }]
|
|
15
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], cardClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardClass", required: false }] }] } });
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Generated bundle index. Do not edit.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export { StatisticCard };
|
|
22
|
+
//# sourceMappingURL=masterteam-components-statistic-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masterteam-components-statistic-card.mjs","sources":["../../../../packages/masterteam/components/statistic-card/statistic-card.ts","../../../../packages/masterteam/components/statistic-card/statistic-card.html","../../../../packages/masterteam/components/statistic-card/masterteam-components-statistic-card.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { Card } from '@masterteam/components/card';\r\nimport { Avatar } from '@masterteam/components/avatar';\r\nimport { MTIcon } from '@masterteam/icons';\r\n\r\nexport interface StatisticCardData {\r\n title: string;\r\n subTitle: string;\r\n icon: MTIcon;\r\n color: string;\r\n}\r\n\r\n@Component({\r\n selector: 'mt-statistic-card',\r\n standalone: true,\r\n templateUrl: './statistic-card.html',\r\n styleUrl: './statistic-card.scss',\r\n imports: [Card, Avatar],\r\n})\r\nexport class StatisticCard {\r\n readonly data = input.required<StatisticCardData>();\r\n readonly cardClass = input('shadow-md');\r\n}\r\n","<mt-card headless class=\"shadow-sm\">\r\n <div class=\"flex items-center gap-3 p-2\">\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"'var(--p-' + data().color + '-100)'\"\r\n [style.--p-avatar-color]=\"'var(--p-' + data().color + '-600)'\"\r\n [icon]=\"data().icon\"\r\n size=\"large\"\r\n shape=\"square\"\r\n ></mt-avatar>\r\n\r\n <div class=\"flex flex-col gap-0.5\">\r\n <span\r\n class=\"text-lg font-semibold\"\r\n [style.color]=\"'var(--p-' + data().color + '-600)'\"\r\n >\r\n {{ data().title }}\r\n </span>\r\n <span class=\"text-sm text-surface-500\">\r\n {{ data().subTitle }}\r\n </span>\r\n </div>\r\n </div>\r\n</mt-card>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAmBa,aAAa,CAAA;AACf,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAqB;AAC1C,IAAA,SAAS,GAAG,KAAK,CAAC,WAAW,gFAAC;uGAF5B,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnB1B,kuBAuBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDNY,I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