@anguless/angulux 22.4.0 → 22.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/anguless-angulux-api.mjs +22 -22
- package/fesm2022/anguless-angulux-autofocus.mjs +7 -7
- package/fesm2022/anguless-angulux-avatar.mjs +10 -10
- package/fesm2022/anguless-angulux-avatargroup.mjs +10 -10
- package/fesm2022/anguless-angulux-badge.mjs +13 -13
- package/fesm2022/anguless-angulux-base.mjs +3 -3
- package/fesm2022/anguless-angulux-basecomponent.mjs +13 -11
- package/fesm2022/anguless-angulux-basecomponent.mjs.map +1 -1
- package/fesm2022/anguless-angulux-baseeditableholder.mjs +20 -14
- package/fesm2022/anguless-angulux-baseeditableholder.mjs.map +1 -1
- package/fesm2022/anguless-angulux-baseinput.mjs +3 -3
- package/fesm2022/anguless-angulux-basemodelholder.mjs +104 -4
- package/fesm2022/anguless-angulux-basemodelholder.mjs.map +1 -1
- package/fesm2022/anguless-angulux-bind.mjs +34 -16
- package/fesm2022/anguless-angulux-bind.mjs.map +1 -1
- package/fesm2022/anguless-angulux-button.mjs +19 -19
- package/fesm2022/anguless-angulux-card.mjs +10 -10
- package/fesm2022/anguless-angulux-chart.mjs +10 -10
- package/fesm2022/anguless-angulux-checkbox.mjs +12 -12
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chip.mjs +10 -10
- package/fesm2022/anguless-angulux-colorpicker.mjs +10 -10
- package/fesm2022/anguless-angulux-config.mjs +6 -6
- package/fesm2022/anguless-angulux-confirmdialog.mjs +10 -10
- package/fesm2022/anguless-angulux-datepicker.mjs +14 -14
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +10 -10
- package/fesm2022/anguless-angulux-divider.mjs +10 -10
- package/fesm2022/anguless-angulux-drawer.mjs +10 -10
- package/fesm2022/anguless-angulux-fileupload.mjs +13 -13
- package/fesm2022/anguless-angulux-fluid.mjs +10 -10
- package/fesm2022/anguless-angulux-focustrap.mjs +7 -7
- package/fesm2022/anguless-angulux-iconfield.mjs +10 -10
- package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-ban.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-bars.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-baseicon.mjs +6 -6
- package/fesm2022/anguless-angulux-icons-blank.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-calendar.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-check.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevrondown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eye.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eyeslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filter.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-home.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-infocircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-minus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-pencil.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-plus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-refresh.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-search.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchminus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchplus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-spinner.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-star.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-starfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-thlarge.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-times.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-timescircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-trash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-undo.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-upload.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowminimize.mjs +3 -3
- package/fesm2022/anguless-angulux-iftalabel.mjs +10 -10
- package/fesm2022/anguless-angulux-inputicon.mjs +10 -10
- package/fesm2022/anguless-angulux-inputnumber.mjs +12 -12
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +15 -19
- package/fesm2022/anguless-angulux-inputtext.mjs.map +1 -1
- package/fesm2022/anguless-angulux-menu.mjs +16 -16
- package/fesm2022/anguless-angulux-message.mjs +10 -10
- package/fesm2022/anguless-angulux-motion.mjs +13 -13
- package/fesm2022/anguless-angulux-multiselect.mjs +15 -15
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +10 -10
- package/fesm2022/anguless-angulux-paginator.mjs +10 -10
- package/fesm2022/anguless-angulux-password.mjs +19 -18
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-popover.mjs +10 -10
- package/fesm2022/anguless-angulux-progressbar.mjs +10 -10
- package/fesm2022/anguless-angulux-progressspinner.mjs +10 -10
- package/fesm2022/anguless-angulux-radiobutton.mjs +15 -15
- package/fesm2022/anguless-angulux-radiobutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-ripple.mjs +10 -10
- package/fesm2022/anguless-angulux-scroller.mjs +10 -10
- package/fesm2022/anguless-angulux-select.mjs +19 -19
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +10 -10
- package/fesm2022/anguless-angulux-skeleton.mjs +10 -10
- package/fesm2022/anguless-angulux-splitbutton.mjs +10 -10
- package/fesm2022/anguless-angulux-table.mjs +85 -85
- package/fesm2022/anguless-angulux-tabs.mjs +34 -34
- package/fesm2022/anguless-angulux-tag.mjs +10 -10
- package/fesm2022/anguless-angulux-textarea.mjs +15 -19
- package/fesm2022/anguless-angulux-textarea.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tieredmenu.mjs +13 -13
- package/fesm2022/anguless-angulux-timeline.mjs +10 -10
- package/fesm2022/anguless-angulux-toast.mjs +13 -13
- package/fesm2022/anguless-angulux-togglebutton.mjs +10 -10
- package/fesm2022/anguless-angulux-toggleswitch.mjs +12 -12
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tooltip.mjs +10 -10
- package/fesm2022/anguless-angulux-treetable.mjs +58 -58
- package/fesm2022/anguless-angulux-usestyle.mjs +3 -3
- package/package.json +1 -1
- package/types/anguless-angulux-api.d.ts +6 -6
- package/types/anguless-angulux-avatar.d.ts +1 -1
- package/types/anguless-angulux-avatargroup.d.ts +1 -1
- package/types/anguless-angulux-badge.d.ts +1 -1
- package/types/anguless-angulux-base.d.ts +1 -1
- package/types/anguless-angulux-basecomponent.d.ts +8 -6
- package/types/anguless-angulux-baseeditableholder.d.ts +15 -3
- package/types/anguless-angulux-basemodelholder.d.ts +47 -0
- package/types/anguless-angulux-bind.d.ts +10 -5
- package/types/anguless-angulux-button.d.ts +1 -1
- package/types/anguless-angulux-card.d.ts +1 -1
- package/types/anguless-angulux-chart.d.ts +1 -1
- package/types/anguless-angulux-checkbox.d.ts +1 -1
- package/types/anguless-angulux-chip.d.ts +1 -1
- package/types/anguless-angulux-colorpicker.d.ts +1 -1
- package/types/anguless-angulux-config.d.ts +2 -2
- package/types/anguless-angulux-confirmdialog.d.ts +1 -1
- package/types/anguless-angulux-datepicker.d.ts +1 -1
- package/types/anguless-angulux-dialog.d.ts +1 -1
- package/types/anguless-angulux-divider.d.ts +1 -1
- package/types/anguless-angulux-drawer.d.ts +1 -1
- package/types/anguless-angulux-fileupload.d.ts +1 -1
- package/types/anguless-angulux-fluid.d.ts +1 -1
- package/types/anguless-angulux-iconfield.d.ts +1 -1
- package/types/anguless-angulux-icons-baseicon.d.ts +1 -1
- package/types/anguless-angulux-iftalabel.d.ts +1 -1
- package/types/anguless-angulux-inputicon.d.ts +1 -1
- package/types/anguless-angulux-inputnumber.d.ts +1 -1
- package/types/anguless-angulux-inputtext.d.ts +4 -2
- package/types/anguless-angulux-menu.d.ts +1 -1
- package/types/anguless-angulux-message.d.ts +1 -1
- package/types/anguless-angulux-motion.d.ts +1 -1
- package/types/anguless-angulux-multiselect.d.ts +1 -1
- package/types/anguless-angulux-overlay.d.ts +1 -1
- package/types/anguless-angulux-paginator.d.ts +1 -1
- package/types/anguless-angulux-password.d.ts +1 -1
- package/types/anguless-angulux-popover.d.ts +1 -1
- package/types/anguless-angulux-progressbar.d.ts +1 -1
- package/types/anguless-angulux-progressspinner.d.ts +1 -1
- package/types/anguless-angulux-radiobutton.d.ts +2 -2
- package/types/anguless-angulux-ripple.d.ts +1 -1
- package/types/anguless-angulux-scroller.d.ts +1 -1
- package/types/anguless-angulux-select.d.ts +1 -1
- package/types/anguless-angulux-selectbutton.d.ts +1 -1
- package/types/anguless-angulux-skeleton.d.ts +1 -1
- package/types/anguless-angulux-splitbutton.d.ts +1 -1
- package/types/anguless-angulux-table.d.ts +2 -2
- package/types/anguless-angulux-tabs.d.ts +5 -5
- package/types/anguless-angulux-tag.d.ts +1 -1
- package/types/anguless-angulux-textarea.d.ts +4 -2
- package/types/anguless-angulux-tieredmenu.d.ts +1 -1
- package/types/anguless-angulux-timeline.d.ts +1 -1
- package/types/anguless-angulux-toast.d.ts +1 -1
- package/types/anguless-angulux-togglebutton.d.ts +1 -1
- package/types/anguless-angulux-toggleswitch.d.ts +1 -1
- package/types/anguless-angulux-tooltip.d.ts +1 -1
- package/types/anguless-angulux-treetable.d.ts +2 -2
- package/types/anguless-angulux-usestyle.d.ts +1 -1
|
@@ -25,10 +25,10 @@ class TabsStyle extends BaseStyle {
|
|
|
25
25
|
name = 'tabs';
|
|
26
26
|
style = style;
|
|
27
27
|
classes = classes$4;
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
29
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsStyle });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsStyle, decorators: [{
|
|
32
32
|
type: Injectable
|
|
33
33
|
}] });
|
|
34
34
|
/**
|
|
@@ -138,10 +138,10 @@ class Tabs extends BaseComponent {
|
|
|
138
138
|
updateValue(newValue) {
|
|
139
139
|
this.value.update(() => newValue);
|
|
140
140
|
}
|
|
141
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
142
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tabs, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.2", type: Tabs, isStandalone: true, selector: "agl-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "cx(\"root\")", "attr.id": "id()" } }, providers: [TabsStyle, { provide: TABS_INSTANCE, useExisting: Tabs }, { provide: PARENT_INSTANCE, useExisting: Tabs }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
143
143
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tabs, decorators: [{
|
|
145
145
|
type: Component,
|
|
146
146
|
args: [{
|
|
147
147
|
selector: 'agl-tabs',
|
|
@@ -171,10 +171,10 @@ const classes$3 = {
|
|
|
171
171
|
class TabStyle extends BaseStyle {
|
|
172
172
|
name = 'tab';
|
|
173
173
|
classes = classes$3;
|
|
174
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
175
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
175
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabStyle });
|
|
176
176
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabStyle, decorators: [{
|
|
178
178
|
type: Injectable
|
|
179
179
|
}] });
|
|
180
180
|
/**
|
|
@@ -203,10 +203,10 @@ const classes$2 = {
|
|
|
203
203
|
class TabListStyle extends BaseStyle {
|
|
204
204
|
name = 'tablist';
|
|
205
205
|
classes = classes$2;
|
|
206
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
207
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabListStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
207
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabListStyle });
|
|
208
208
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabListStyle, decorators: [{
|
|
210
210
|
type: Injectable
|
|
211
211
|
}] });
|
|
212
212
|
/**
|
|
@@ -365,8 +365,8 @@ class TabList extends BaseComponent {
|
|
|
365
365
|
this.resizeObserver = null;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
369
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
369
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.2", type: TabList, isStandalone: true, selector: "agl-tablist", host: { properties: { "class": "cx(\"root\")" } }, providers: [TabListStyle, { provide: TABLIST_INSTANCE, useExisting: TabList }, { provide: PARENT_INSTANCE, useExisting: TabList }], queries: [{ propertyName: "prevIconTemplate", first: true, predicate: ["previcon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "prevButton", first: true, predicate: ["prevButton"], descendants: true }, { propertyName: "nextButton", first: true, predicate: ["nextButton"], descendants: true }, { propertyName: "inkbar", first: true, predicate: ["inkbar"], descendants: true }, { propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
370
370
|
@if (showNavigators() && isPrevButtonEnabled()) {
|
|
371
371
|
<button
|
|
372
372
|
type="button"
|
|
@@ -413,7 +413,7 @@ class TabList extends BaseComponent {
|
|
|
413
413
|
}
|
|
414
414
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i3.Ripple, selector: "[aglRipple]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
415
415
|
}
|
|
416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabList, decorators: [{
|
|
417
417
|
type: Component,
|
|
418
418
|
args: [{
|
|
419
419
|
selector: 'agl-tablist',
|
|
@@ -651,10 +651,10 @@ class Tab extends BaseComponent {
|
|
|
651
651
|
this.unbindMutationObserver();
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
655
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
654
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tab, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
655
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.2", type: Tab, isStandalone: true, selector: "agl-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { listeners: { "focus": "onFocus($event)", "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class": "cx(\"root\")", "attr.id": "id()", "attr.aria-controls": "ariaControls()", "attr.role": "\"tab\"", "attr.aria-selected": "active()", "attr.aria-disabled": "disabled()", "attr.data-p-disabled": "disabled()", "attr.data-p-active": "active()", "attr.tabindex": "tabindex()" } }, providers: [TabStyle, { provide: TAB_INSTANCE, useExisting: Tab }, { provide: PARENT_INSTANCE, useExisting: Tab }], usesInheritance: true, hostDirectives: [{ directive: i3.Ripple }, { directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
656
656
|
}
|
|
657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tab, decorators: [{
|
|
658
658
|
type: Component,
|
|
659
659
|
args: [{
|
|
660
660
|
selector: 'agl-tab',
|
|
@@ -699,10 +699,10 @@ const classes$1 = {
|
|
|
699
699
|
class TabPanelStyle extends BaseStyle {
|
|
700
700
|
name = 'tabpanel';
|
|
701
701
|
classes = classes$1;
|
|
702
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
703
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
703
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelStyle });
|
|
704
704
|
}
|
|
705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelStyle, decorators: [{
|
|
706
706
|
type: Injectable
|
|
707
707
|
}] });
|
|
708
708
|
/**
|
|
@@ -774,8 +774,8 @@ class TabPanel extends BaseComponent {
|
|
|
774
774
|
}, /* @ts-ignore */
|
|
775
775
|
...(ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []));
|
|
776
776
|
_componentStyle = inject(TabPanelStyle);
|
|
777
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
778
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
777
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanel, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
778
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.2", type: TabPanel, isStandalone: true, selector: "agl-tabpanel", inputs: { lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "cx(\"root\")", "attr.id": "id()", "attr.role": "\"tabpanel\"", "attr.aria-labelledby": "ariaLabelledby()", "attr.data-p-active": "active()", "hidden": "!active()" } }, providers: [TabPanelStyle, { provide: TABPANEL_INSTANCE, useExisting: TabPanel }, { provide: PARENT_INSTANCE, useExisting: TabPanel }], queries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
779
779
|
<ng-template #defaultContent>
|
|
780
780
|
<ng-content />
|
|
781
781
|
</ng-template>
|
|
@@ -785,7 +785,7 @@ class TabPanel extends BaseComponent {
|
|
|
785
785
|
}
|
|
786
786
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
787
787
|
}
|
|
788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanel, decorators: [{
|
|
789
789
|
type: Component,
|
|
790
790
|
args: [{
|
|
791
791
|
selector: 'agl-tabpanel',
|
|
@@ -821,10 +821,10 @@ const classes = {
|
|
|
821
821
|
class TabPanelsStyle extends BaseStyle {
|
|
822
822
|
name = 'tabpanels';
|
|
823
823
|
classes = classes;
|
|
824
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
825
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
824
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelsStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
825
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelsStyle });
|
|
826
826
|
}
|
|
827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanelsStyle, decorators: [{
|
|
828
828
|
type: Injectable
|
|
829
829
|
}] });
|
|
830
830
|
/**
|
|
@@ -855,10 +855,10 @@ class TabPanels extends BaseComponent {
|
|
|
855
855
|
onAfterViewChecked() {
|
|
856
856
|
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
857
857
|
}
|
|
858
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
859
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.
|
|
858
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanels, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
859
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.2", type: TabPanels, isStandalone: true, selector: "agl-tabpanels", host: { properties: { "class": "cx(\"root\")", "attr.role": "\"presentation\"" } }, providers: [TabPanelsStyle, { provide: TABPANELS_INSTANCE, useExisting: TabPanels }, { provide: PARENT_INSTANCE, useExisting: TabPanels }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
860
860
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabPanels, decorators: [{
|
|
862
862
|
type: Component,
|
|
863
863
|
args: [{
|
|
864
864
|
selector: 'agl-tabpanels',
|
|
@@ -877,11 +877,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
877
877
|
}] });
|
|
878
878
|
|
|
879
879
|
class TabsModule {
|
|
880
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
881
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
882
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
880
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
881
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.2", ngImport: i0, type: TabsModule, imports: [Tabs, TabPanels, TabPanel, TabList, Tab, BindModule], exports: [Tabs, TabPanels, TabPanel, TabList, Tab, BindModule] });
|
|
882
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsModule, imports: [Tabs, TabPanels, TabPanel, TabList, Tab, BindModule, BindModule] });
|
|
883
883
|
}
|
|
884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TabsModule, decorators: [{
|
|
885
885
|
type: NgModule,
|
|
886
886
|
args: [{
|
|
887
887
|
imports: [Tabs, TabPanels, TabPanel, TabList, Tab, BindModule],
|
|
@@ -30,10 +30,10 @@ class TagStyle extends BaseStyle {
|
|
|
30
30
|
name = 'tag';
|
|
31
31
|
style = style;
|
|
32
32
|
classes = classes;
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
34
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagStyle });
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagStyle, decorators: [{
|
|
37
37
|
type: Injectable
|
|
38
38
|
}] });
|
|
39
39
|
/**
|
|
@@ -109,8 +109,8 @@ class Tag extends BaseComponent {
|
|
|
109
109
|
[this.severity]: this.severity
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tag, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.2", type: Tag, isStandalone: true, selector: "agl-tag", inputs: { styleClass: "styleClass", severity: "severity", value: "value", icon: "icon", rounded: ["rounded", "rounded", booleanAttribute] }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p": "dataP" } }, providers: [TagStyle, { provide: TAG_INSTANCE, useExisting: Tag }, { provide: PARENT_INSTANCE, useExisting: Tag }], queries: [{ propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
114
114
|
<ng-content></ng-content>
|
|
115
115
|
<ng-container *ngIf="!iconTemplate()">
|
|
116
116
|
<span [class]="cx('icon')" [ngClass]="icon" [aglBind]="ptm('icon')" *ngIf="icon"></span>
|
|
@@ -121,7 +121,7 @@ class Tag extends BaseComponent {
|
|
|
121
121
|
<span [class]="cx('label')" [aglBind]="ptm('label')">{{ value }}</span>
|
|
122
122
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
123
123
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Tag, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{
|
|
127
127
|
selector: 'agl-tag',
|
|
@@ -159,11 +159,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
159
159
|
args: [{ transform: booleanAttribute }]
|
|
160
160
|
}], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
161
161
|
class TagModule {
|
|
162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
163
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
164
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
163
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.2", ngImport: i0, type: TagModule, imports: [Tag, SharedModule], exports: [Tag, SharedModule] });
|
|
164
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagModule, imports: [Tag, SharedModule, SharedModule] });
|
|
165
165
|
}
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TagModule, decorators: [{
|
|
167
167
|
type: NgModule,
|
|
168
168
|
args: [{
|
|
169
169
|
imports: [Tag, SharedModule],
|
|
@@ -38,10 +38,10 @@ class TextareaStyle extends BaseStyle {
|
|
|
38
38
|
name = 'textarea';
|
|
39
39
|
style = style;
|
|
40
40
|
classes = classes;
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
42
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaStyle });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaStyle, decorators: [{
|
|
45
45
|
type: Injectable
|
|
46
46
|
}] });
|
|
47
47
|
/**
|
|
@@ -110,7 +110,9 @@ class Textarea extends BaseModelHolder {
|
|
|
110
110
|
*/
|
|
111
111
|
fluid = input(undefined, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
112
112
|
/**
|
|
113
|
-
* When present, it specifies that the component should have invalid state style.
|
|
113
|
+
* When present, it specifies that the component should have invalid state style. Left
|
|
114
|
+
* unbound, an element bound through `formControlName`, `[formControl]` or `ngModel` shows the
|
|
115
|
+
* state of that control once it is touched or dirty.
|
|
114
116
|
* @defaultValue false
|
|
115
117
|
* @group Props
|
|
116
118
|
*/
|
|
@@ -133,14 +135,7 @@ class Textarea extends BaseModelHolder {
|
|
|
133
135
|
$variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant(), /* @ts-ignore */
|
|
134
136
|
...(ngDevMode ? [{ debugName: "$variant" }] : /* istanbul ignore next */ []));
|
|
135
137
|
/** Whether the invalid state is shown — the same rule as `BaseEditableHolder.$invalid`. */
|
|
136
|
-
$invalid = computed(() =>
|
|
137
|
-
if (!this.invalid()) {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
const touched = this.touched();
|
|
141
|
-
const dirty = this.dirty();
|
|
142
|
-
return (touched === undefined && dirty === undefined) || !!touched || !!dirty;
|
|
143
|
-
}, /* @ts-ignore */
|
|
138
|
+
$invalid = computed(() => this.showsInvalid(this.invalid(), this.touched(), this.dirty()), /* @ts-ignore */
|
|
144
139
|
...(ngDevMode ? [{ debugName: "$invalid" }] : /* istanbul ignore next */ []));
|
|
145
140
|
/**
|
|
146
141
|
* Callback to invoke on textarea resize.
|
|
@@ -157,6 +152,7 @@ class Textarea extends BaseModelHolder {
|
|
|
157
152
|
}
|
|
158
153
|
constructor() {
|
|
159
154
|
super();
|
|
155
|
+
this.reflectNgControlRequired();
|
|
160
156
|
effect(() => {
|
|
161
157
|
const pt = this.pTextareaPT();
|
|
162
158
|
pt && this.directivePT.set(pt);
|
|
@@ -211,10 +207,10 @@ class Textarea extends BaseModelHolder {
|
|
|
211
207
|
this.ngControlSubscription.unsubscribe();
|
|
212
208
|
}
|
|
213
209
|
}
|
|
214
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
215
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Textarea, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
211
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.2", type: Textarea, isStandalone: true, selector: "[aglTextarea], [aglInputTextarea]", inputs: { pTextareaPT: { classPropertyName: "pTextareaPT", publicName: "pTextareaPT", isSignal: true, isRequired: false, transformFunction: null }, pTextareaUnstyled: { classPropertyName: "pTextareaUnstyled", publicName: "pTextareaUnstyled", isSignal: true, isRequired: false, transformFunction: null }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, aglSize: { classPropertyName: "aglSize", publicName: "aglSize", isSignal: false, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, dirty: { classPropertyName: "dirty", publicName: "dirty", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onResize: "onResize" }, host: { listeners: { "input": "onInput($event)" }, properties: { "class": "cx('root')", "attr.aria-invalid": "$invalid() || undefined" } }, providers: [TextareaStyle, { provide: TEXTAREA_INSTANCE, useExisting: Textarea }, { provide: PARENT_INSTANCE, useExisting: Textarea }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
216
212
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Textarea, decorators: [{
|
|
218
214
|
type: Directive,
|
|
219
215
|
args: [{
|
|
220
216
|
selector: '[aglTextarea], [aglInputTextarea]',
|
|
@@ -238,11 +234,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
238
234
|
args: ['input', ['$event']]
|
|
239
235
|
}] } });
|
|
240
236
|
class TextareaModule {
|
|
241
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
242
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
243
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
238
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.2", ngImport: i0, type: TextareaModule, imports: [Textarea], exports: [Textarea] });
|
|
239
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaModule });
|
|
244
240
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TextareaModule, decorators: [{
|
|
246
242
|
type: NgModule,
|
|
247
243
|
args: [{
|
|
248
244
|
imports: [Textarea],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anguless-angulux-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/anguless-angulux-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as textarea_style } from '@anguless/angulux-styles/textarea';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst style = /*css*/ `\n ${textarea_style}\n\n /* For AnguluxConfig */\n .p-textarea.ng-invalid.ng-dirty {\n border-color: dt('textarea.invalid.border.color');\n }\n .p-textarea.ng-invalid.ng-dirty::placeholder {\n color: dt('textarea.invalid.placeholder.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.$filled(),\n 'p-textarea-resizable ': instance.autoResize,\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-textarea-fluid': instance.hasFluid,\n 'p-inputfield-sm p-textarea-sm': instance.aglSize === 'small',\n 'p-textarea-lg p-inputfield-lg': instance.aglSize === 'large',\n 'p-invalid': instance.$invalid()\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { booleanAttribute, computed, Directive, effect, EventEmitter, HostListener, inject, InjectionToken, input, Input, NgModule, Output } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { BaseModelHolder } from '@anguless/angulux/basemodelholder';\nimport { Bind } from '@anguless/angulux/bind';\nimport { Fluid } from '@anguless/angulux/fluid';\nimport { TextareaPassThrough } from '@anguless/angulux/types/textarea';\nimport { Subscription } from 'rxjs';\nimport { TextareaStyle } from './style/textareastyle';\n\nconst TEXTAREA_INSTANCE = new InjectionToken<Textarea>('TEXTAREA_INSTANCE');\n\n/** `booleanAttribute` that keeps \"not set\" as `undefined` — see `BaseEditableHolder` for why. */\nfunction interactionState(value: unknown): boolean | undefined {\n return value === null || value === undefined ? undefined : booleanAttribute(value);\n}\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[aglTextarea], [aglInputTextarea]',\n standalone: true,\n host: {\n '[class]': \"cx('root')\",\n '[attr.aria-invalid]': '$invalid() || undefined'\n },\n providers: [TextareaStyle, { provide: TEXTAREA_INSTANCE, useExisting: Textarea }, { provide: PARENT_INSTANCE, useExisting: Textarea }],\n hostDirectives: [Bind]\n})\nexport class Textarea extends BaseModelHolder<TextareaPassThrough> {\n componentName = 'Textarea';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n $pcTextarea: Textarea | undefined = inject(TEXTAREA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n /**\n * Used to pass attributes to DOM elements inside the Textarea component.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaPT = input<TextareaPassThrough>();\n /**\n * Indicates whether the component should be rendered without styles.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaUnstyled = input<boolean | undefined>();\n\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoResize: boolean | undefined;\n /**\n * Defines the size of the component.\n * @group Props\n */\n @Input() aglSize: 'large' | 'small';\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n /**\n * Whether the user has visited the field. Once this or `dirty` is set, the invalid state\n * style waits for interaction: it appears when the field is touched or dirty. Signal Forms'\n * `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both\n * unset and `invalid` alone decides.\n * @defaultValue undefined\n * @group Props\n */\n touched = input<boolean | undefined, unknown>(undefined, { transform: interactionState });\n /**\n * Whether the user has changed the value. See `touched`.\n * @defaultValue undefined\n * @group Props\n */\n dirty = input<boolean | undefined, unknown>(undefined, { transform: interactionState });\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n\n /** Whether the invalid state is shown — the same rule as `BaseEditableHolder.$invalid`. */\n $invalid = computed(() => {\n if (!this.invalid()) {\n return false;\n }\n\n const touched = this.touched();\n const dirty = this.dirty();\n\n return (touched === undefined && dirty === undefined) || !!touched || !!dirty;\n });\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n @Output() onResize: EventEmitter<Event | {}> = new EventEmitter<Event | {}>();\n\n ngControlSubscription: Subscription | undefined;\n\n _componentStyle = inject(TextareaStyle);\n\n ngControl = inject(NgControl, { optional: true, self: true });\n\n pcFluid: Fluid | null = inject(Fluid, { optional: true, host: true, skipSelf: true });\n\n get hasFluid() {\n return this.fluid() ?? !!this.pcFluid;\n }\n\n constructor() {\n super();\n effect(() => {\n const pt = this.pTextareaPT();\n pt && this.directivePT.set(pt);\n });\n\n effect(() => {\n this.pTextareaUnstyled() && this.directiveUnstyled.set(this.pTextareaUnstyled());\n });\n }\n\n onInit() {\n // Signal Forms' `[formField]` provides an NgControl with no `valueChanges` stream. Nothing\n // is lost without it: a value the form writes lands in the same change-detection pass that\n // ends in `onAfterViewChecked`, which resizes from the element itself.\n this.ngControlSubscription = this.ngControl?.valueChanges?.subscribe(() => {\n this.updateState();\n });\n }\n\n onAfterViewInit() {\n if (this.autoResize) this.resize();\n\n this.cd.detectChanges();\n }\n\n onAfterViewChecked() {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n if (this.autoResize) {\n this.resize();\n }\n this.writeModelValue(this.ngControl?.value ?? this.el.nativeElement.value);\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.writeModelValue((e.target as HTMLTextAreaElement)?.value);\n this.updateState();\n }\n\n resize(event?: Event) {\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n if (this.autoResize) {\n this.resize();\n }\n }\n\n onDestroy() {\n if (this.ngControlSubscription) {\n this.ngControlSubscription.unsubscribe();\n }\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["textarea_style"],"mappings":";;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;;CASnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,wBAAwB;AACxB,QAAA;AACI,YAAA,UAAU,EAAE,QAAQ,CAAC,OAAO,EAAE;YAC9B,uBAAuB,EAAE,QAAQ,CAAC,UAAU;AAC5C,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,QAAQ;YACpD,kBAAkB,EAAE,QAAQ,CAAC,QAAQ;AACrC,YAAA,+BAA+B,EAAE,QAAQ,CAAC,OAAO,KAAK,OAAO;AAC7D,YA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AY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;MAqCxB,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAd,cAAc,EAAA,OAAA,EAAA,CAxKd,QAAQ,CAAA,EAAA,OAAA,EAAA,CAAR,QAAQ,CAAA,EAAA,CAAA;wGAwKR,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;ACtMD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"anguless-angulux-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/anguless-angulux-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as textarea_style } from '@anguless/angulux-styles/textarea';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst style = /*css*/ `\n ${textarea_style}\n\n /* For AnguluxConfig */\n .p-textarea.ng-invalid.ng-dirty {\n border-color: dt('textarea.invalid.border.color');\n }\n .p-textarea.ng-invalid.ng-dirty::placeholder {\n color: dt('textarea.invalid.placeholder.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.$filled(),\n 'p-textarea-resizable ': instance.autoResize,\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-textarea-fluid': instance.hasFluid,\n 'p-inputfield-sm p-textarea-sm': instance.aglSize === 'small',\n 'p-textarea-lg p-inputfield-lg': instance.aglSize === 'large',\n 'p-invalid': instance.$invalid()\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { booleanAttribute, computed, Directive, effect, EventEmitter, HostListener, inject, InjectionToken, input, Input, NgModule, Output } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { BaseModelHolder } from '@anguless/angulux/basemodelholder';\nimport { Bind } from '@anguless/angulux/bind';\nimport { Fluid } from '@anguless/angulux/fluid';\nimport { TextareaPassThrough } from '@anguless/angulux/types/textarea';\nimport { Subscription } from 'rxjs';\nimport { TextareaStyle } from './style/textareastyle';\n\nconst TEXTAREA_INSTANCE = new InjectionToken<Textarea>('TEXTAREA_INSTANCE');\n\n/** `booleanAttribute` that keeps \"not set\" as `undefined` — see `BaseEditableHolder` for why. */\nfunction interactionState(value: unknown): boolean | undefined {\n return value === null || value === undefined ? undefined : booleanAttribute(value);\n}\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[aglTextarea], [aglInputTextarea]',\n standalone: true,\n host: {\n '[class]': \"cx('root')\",\n '[attr.aria-invalid]': '$invalid() || undefined'\n },\n providers: [TextareaStyle, { provide: TEXTAREA_INSTANCE, useExisting: Textarea }, { provide: PARENT_INSTANCE, useExisting: Textarea }],\n hostDirectives: [Bind]\n})\nexport class Textarea extends BaseModelHolder<TextareaPassThrough> {\n componentName = 'Textarea';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n $pcTextarea: Textarea | undefined = inject(TEXTAREA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n /**\n * Used to pass attributes to DOM elements inside the Textarea component.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaPT = input<TextareaPassThrough>();\n /**\n * Indicates whether the component should be rendered without styles.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaUnstyled = input<boolean | undefined>();\n\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoResize: boolean | undefined;\n /**\n * Defines the size of the component.\n * @group Props\n */\n @Input() aglSize: 'large' | 'small';\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style. Left\n * unbound, an element bound through `formControlName`, `[formControl]` or `ngModel` shows the\n * state of that control once it is touched or dirty.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n /**\n * Whether the user has visited the field. Once this or `dirty` is set, the invalid state\n * style waits for interaction: it appears when the field is touched or dirty. Signal Forms'\n * `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both\n * unset and `invalid` alone decides.\n * @defaultValue undefined\n * @group Props\n */\n touched = input<boolean | undefined, unknown>(undefined, { transform: interactionState });\n /**\n * Whether the user has changed the value. See `touched`.\n * @defaultValue undefined\n * @group Props\n */\n dirty = input<boolean | undefined, unknown>(undefined, { transform: interactionState });\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n\n /** Whether the invalid state is shown — the same rule as `BaseEditableHolder.$invalid`. */\n $invalid = computed(() => this.showsInvalid(this.invalid(), this.touched(), this.dirty()));\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n @Output() onResize: EventEmitter<Event | {}> = new EventEmitter<Event | {}>();\n\n ngControlSubscription: Subscription | undefined;\n\n _componentStyle = inject(TextareaStyle);\n\n ngControl = inject(NgControl, { optional: true, self: true });\n\n pcFluid: Fluid | null = inject(Fluid, { optional: true, host: true, skipSelf: true });\n\n get hasFluid() {\n return this.fluid() ?? !!this.pcFluid;\n }\n\n constructor() {\n super();\n this.reflectNgControlRequired();\n effect(() => {\n const pt = this.pTextareaPT();\n pt && this.directivePT.set(pt);\n });\n\n effect(() => {\n this.pTextareaUnstyled() && this.directiveUnstyled.set(this.pTextareaUnstyled());\n });\n }\n\n onInit() {\n // Signal Forms' `[formField]` provides an NgControl with no `valueChanges` stream. Nothing\n // is lost without it: a value the form writes lands in the same change-detection pass that\n // ends in `onAfterViewChecked`, which resizes from the element itself.\n this.ngControlSubscription = this.ngControl?.valueChanges?.subscribe(() => {\n this.updateState();\n });\n }\n\n onAfterViewInit() {\n if (this.autoResize) this.resize();\n\n this.cd.detectChanges();\n }\n\n onAfterViewChecked() {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n if (this.autoResize) {\n this.resize();\n }\n this.writeModelValue(this.ngControl?.value ?? this.el.nativeElement.value);\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.writeModelValue((e.target as HTMLTextAreaElement)?.value);\n this.updateState();\n }\n\n resize(event?: Event) {\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n if (this.autoResize) {\n this.resize();\n }\n }\n\n onDestroy() {\n if (this.ngControlSubscription) {\n this.ngControlSubscription.unsubscribe();\n }\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["textarea_style"],"mappings":";;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;;CASnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,K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Ac,EAAE,CAAC,IAAI;AACxB,iBAAA;;sBAyBI,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAKrC;;sBA8CA;;sBAkDA,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;MAqCxB,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAd,cAAc,EAAA,OAAA,EAAA,CAlKd,QAAQ,CAAA,EAAA,OAAA,EAAA,CAAR,QAAQ,CAAA,EAAA,CAAA;wGAkKR,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;AChMD;;AAEG;;;;"}
|
|
@@ -58,10 +58,10 @@ class TieredMenuStyle extends BaseStyle {
|
|
|
58
58
|
style = style;
|
|
59
59
|
classes = classes;
|
|
60
60
|
inlineStyles = inlineStyles;
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
62
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
62
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuStyle });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuStyle, decorators: [{
|
|
65
65
|
type: Injectable
|
|
66
66
|
}] });
|
|
67
67
|
/**
|
|
@@ -257,8 +257,8 @@ class TieredMenuSub extends BaseComponent {
|
|
|
257
257
|
onAfterLeave() {
|
|
258
258
|
this.render.set(false);
|
|
259
259
|
}
|
|
260
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
261
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: forwardRef(() => TieredMenu) }], target: i0.ɵɵFactoryTarget.Component });
|
|
261
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.2", type: TieredMenuSub, isStandalone: true, selector: "agl-tieredMenuSub, agl-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
|
|
262
262
|
{ provide: TIEREDMENUSUB_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) },
|
|
263
263
|
{ provide: PARENT_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) }
|
|
264
264
|
], viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
@@ -455,7 +455,7 @@ class TieredMenuSub extends BaseComponent {
|
|
|
455
455
|
}
|
|
456
456
|
`, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "agl-tieredMenuSub, agl-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[aglRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[aglTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "aglTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[aglMotion]", inputs: ["aglMotion", "aglMotionName", "aglMotionType", "aglMotionSafe", "aglMotionDisabled", "aglMotionAppear", "aglMotionEnter", "aglMotionLeave", "aglMotionDuration", "aglMotionHideStrategy", "aglMotionEnterFromClass", "aglMotionEnterToClass", "aglMotionEnterActiveClass", "aglMotionLeaveFromClass", "aglMotionLeaveToClass", "aglMotionLeaveActiveClass", "aglMotionOptions"], outputs: ["aglMotionOnBeforeEnter", "aglMotionOnEnter", "aglMotionOnAfterEnter", "aglMotionOnEnterCancelled", "aglMotionOnBeforeLeave", "aglMotionOnLeave", "aglMotionOnAfterLeave", "aglMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
457
457
|
}
|
|
458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuSub, decorators: [{
|
|
459
459
|
type: Component,
|
|
460
460
|
args: [{
|
|
461
461
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
@@ -1435,8 +1435,8 @@ class TieredMenu extends BaseComponent {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
this.unbindMatchMediaListener();
|
|
1437
1437
|
}
|
|
1438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1439
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenu, deps: [{ token: i6.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1439
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.2", type: TieredMenu, isStandalone: true, selector: "agl-tieredMenu, agl-tieredmenu, agl-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1440
1440
|
@if (render() || !popup) {
|
|
1441
1441
|
<div
|
|
1442
1442
|
#container
|
|
@@ -1483,7 +1483,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "agl-tieredMenuSub, agl-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[aglMotion]", inputs: ["aglMotion", "aglMotionName", "aglMotionType", "aglMotionSafe", "aglMotionDisabled", "aglMotionAppear", "aglMotionEnter", "aglMotionLeave", "aglMotionDuration", "aglMotionHideStrategy", "aglMotionEnterFromClass", "aglMotionEnterToClass", "aglMotionEnterActiveClass", "aglMotionLeaveFromClass", "aglMotionLeaveToClass", "aglMotionLeaveActiveClass", "aglMotionOptions"], outputs: ["aglMotionOnBeforeEnter", "aglMotionOnEnter", "aglMotionOnAfterEnter", "aglMotionOnEnterCancelled", "aglMotionOnBeforeLeave", "aglMotionOnLeave", "aglMotionOnAfterLeave", "aglMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1485
1485
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenu, decorators: [{
|
|
1487
1487
|
type: Component,
|
|
1488
1488
|
args: [{
|
|
1489
1489
|
selector: 'agl-tieredMenu, agl-tieredmenu, agl-tiered-menu',
|
|
@@ -1588,11 +1588,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
1588
1588
|
args: ['container']
|
|
1589
1589
|
}], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
1590
1590
|
class TieredMenuModule {
|
|
1591
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1592
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
1593
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
1591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1592
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });
|
|
1593
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule, SharedModule] });
|
|
1594
1594
|
}
|
|
1595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TieredMenuModule, decorators: [{
|
|
1596
1596
|
type: NgModule,
|
|
1597
1597
|
args: [{
|
|
1598
1598
|
imports: [TieredMenu, SharedModule],
|
|
@@ -23,10 +23,10 @@ class TimelineStyle extends BaseStyle {
|
|
|
23
23
|
name = 'timeline';
|
|
24
24
|
style = style;
|
|
25
25
|
classes = classes;
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
27
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineStyle });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineStyle, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
/**
|
|
@@ -132,8 +132,8 @@ class Timeline extends BaseComponent {
|
|
|
132
132
|
[this.align]: this.align
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
136
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Timeline, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.2", type: Timeline, isStandalone: true, selector: "agl-timeline", inputs: { value: "value", styleClass: "styleClass", align: "align", layout: "layout" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p": "dataP" } }, providers: [TimelineStyle, { provide: TIMELINE_INSTANCE, useExisting: Timeline }, { provide: PARENT_INSTANCE, useExisting: Timeline }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "oppositeTemplate", first: true, predicate: ["opposite"], isSignal: true }, { propertyName: "markerTemplate", first: true, predicate: ["marker"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
137
137
|
<div [aglBind]="ptm('event')" *ngFor="let event of value; let last = last" [class]="cx('event')" [attr.data-p]="dataP">
|
|
138
138
|
<div [aglBind]="ptm('eventOpposite')" [class]="cx('eventOpposite')" [attr.data-p]="dataP">
|
|
139
139
|
<ng-container *ngTemplateOutlet="oppositeTemplate(); context: { $implicit: event }"></ng-container>
|
|
@@ -153,7 +153,7 @@ class Timeline extends BaseComponent {
|
|
|
153
153
|
</div>
|
|
154
154
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
155
155
|
}
|
|
156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: Timeline, decorators: [{
|
|
157
157
|
type: Component,
|
|
158
158
|
args: [{
|
|
159
159
|
selector: 'agl-timeline',
|
|
@@ -197,11 +197,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
197
197
|
type: Input
|
|
198
198
|
}], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], oppositeTemplate: [{ type: i0.ContentChild, args: ['opposite', { ...{ descendants: false }, isSignal: true }] }], markerTemplate: [{ type: i0.ContentChild, args: ['marker', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
199
199
|
class TimelineModule {
|
|
200
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
201
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
202
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
201
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.2", ngImport: i0, type: TimelineModule, imports: [Timeline, SharedModule], exports: [Timeline, SharedModule] });
|
|
202
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineModule, imports: [Timeline, SharedModule, SharedModule] });
|
|
203
203
|
}
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: TimelineModule, decorators: [{
|
|
205
205
|
type: NgModule,
|
|
206
206
|
args: [{
|
|
207
207
|
imports: [Timeline, SharedModule],
|