@acorex/platform 19.1.2 → 19.1.3
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/common/index.d.ts +1 -0
- package/common/lib/app/application.types.d.ts +10 -8
- package/common/lib/configs/app.config.d.ts +0 -1
- package/common/lib/filters/filters.service.d.ts +8 -0
- package/common/lib/filters/filters.types.d.ts +18 -0
- package/common/lib/filters/index.d.ts +2 -0
- package/common/lib/settings/setting-definition.provider.d.ts +4 -2
- package/common/lib/settings/setting.builder.d.ts +3 -5
- package/fesm2022/acorex-platform-auth.mjs +5 -4
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +71 -14
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +72 -27
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +7 -7
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +280 -182
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs +47 -0
- package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-setting.mjs +174 -69
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts.mjs +1 -1
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-B13KvLX4.mjs → acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-B13KvLX4.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-B6MXHPWi.mjs → acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs} +81 -18
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-tKCGSRQT.mjs → acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs} +6 -6
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-tKCGSRQT.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CHvC0IAV.mjs → acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs} +14 -14
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CHvC0IAV.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs +78 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs +58 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +38 -112
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +187 -86
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-juhKoygA.mjs → acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs} +3 -3
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +213 -78
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-renderer.component.directive.d.ts +3 -4
- package/layout/builder/lib/builder/widget.types.d.ts +11 -5
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +2 -1
- package/layout/entity/lib/workflows/modify-entity.workflow.d.ts +14 -0
- package/layout/filters/README.md +3 -0
- package/layout/filters/index.d.ts +1 -0
- package/layout/filters/lib/filters.viewmodel.d.ts +20 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +23 -21
- package/package.json +16 -12
- package/themes/default/index.d.ts +0 -1
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +5 -5
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-filters/list-view-option-filters.component.d.ts +11 -0
- package/themes/default/lib/layouts/filters-layout/simple-filter-builder/filters-view.component.d.ts +12 -0
- package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +47 -2
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +43 -0
- package/themes/shared/lib/components/layout-elements/index.d.ts +5 -3
- package/themes/shared/lib/components/layout-elements/{layout-page-actions.component.d.ts → layout-actions.component.d.ts} +5 -5
- package/themes/shared/lib/components/layout-elements/layout-blocks.component.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/layout-header.component.d.ts +12 -0
- package/themes/shared/lib/components/layout-elements/layout-list-component.d.ts +13 -0
- package/themes/shared/lib/components/layout-elements/layout-section.component.d.ts +9 -0
- package/themes/shared/lib/components/layout-elements/layout-side.component.d.ts +9 -0
- package/themes/shared/lib/shared.module.d.ts +3 -1
- package/widgets/lib/properties/editors.props.d.ts +2 -0
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -0
- package/widgets/lib/widgets/property-editors/border/border-widget-editor.component.d.ts +1 -0
- package/widgets/lib/widgets/property-editors/border/index.d.ts +1 -0
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +14 -3
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-type.d.ts +6 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-B6MXHPWi.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-juhKoygA.mjs.map +0 -1
- package/themes/default/lib/layouts/setting-layout/index.d.ts +0 -1
- package/themes/shared/lib/components/layout-elements/layout-page-header.component.d.ts +0 -11
- package/themes/shared/lib/components/layout-elements/layout-page-side.component.d.ts +0 -5
|
@@ -14,23 +14,32 @@ import { signalStore, withState, withComputed, withMethods, patchState, withHook
|
|
|
14
14
|
import { timer } from 'rxjs';
|
|
15
15
|
import * as i5 from '@acorex/core/translation';
|
|
16
16
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
17
|
+
import { objectKeyValueTransforms } from '@acorex/platform/layout/builder';
|
|
17
18
|
|
|
18
19
|
class AXPThemeLayoutBlockComponent {
|
|
19
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutBlockComponent, isStandalone: true, selector: "\n axp-
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutBlockComponent, isStandalone: true, selector: "\n axp-layout-content, \n axp-layout-header-container,\n axp-layout-footer-container,\n axp-layout-side-container,\n axp-layout-sections,\n axp-layout-section-container,\n axp-layout-body,\n axp-layout-suffix,\n axp-layout-prefix,\n axp-layout-title, \n axp-layout-nav-button, \n axp-layout-description, \n axp-layout-toolbar,\n axp-layout-title-bar,\n axp-layout-breadcrumbs\n ", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
21
22
|
}
|
|
22
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutBlockComponent, decorators: [{
|
|
23
24
|
type: Component,
|
|
24
25
|
args: [{
|
|
25
26
|
standalone: true,
|
|
26
27
|
selector: `
|
|
27
|
-
axp-
|
|
28
|
-
axp-
|
|
29
|
-
axp-
|
|
30
|
-
axp-
|
|
31
|
-
axp-
|
|
32
|
-
axp-
|
|
33
|
-
axp-
|
|
28
|
+
axp-layout-content,
|
|
29
|
+
axp-layout-header-container,
|
|
30
|
+
axp-layout-footer-container,
|
|
31
|
+
axp-layout-side-container,
|
|
32
|
+
axp-layout-sections,
|
|
33
|
+
axp-layout-section-container,
|
|
34
|
+
axp-layout-body,
|
|
35
|
+
axp-layout-suffix,
|
|
36
|
+
axp-layout-prefix,
|
|
37
|
+
axp-layout-title,
|
|
38
|
+
axp-layout-nav-button,
|
|
39
|
+
axp-layout-description,
|
|
40
|
+
axp-layout-toolbar,
|
|
41
|
+
axp-layout-title-bar,
|
|
42
|
+
axp-layout-breadcrumbs
|
|
34
43
|
`,
|
|
35
44
|
template: '<ng-content></ng-content>',
|
|
36
45
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -40,33 +49,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
40
49
|
|
|
41
50
|
class AXPThemeLayoutPagePrimaryActionsComponent {
|
|
42
51
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPagePrimaryActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutPagePrimaryActionsComponent, isStandalone: true, selector: "axp-
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutPagePrimaryActionsComponent, isStandalone: true, selector: "axp-layout-actions-primary", ngImport: i0, template: `<ng-content select="ax-button,ax-dropdown-button"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
44
53
|
}
|
|
45
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPagePrimaryActionsComponent, decorators: [{
|
|
46
55
|
type: Component,
|
|
47
56
|
args: [{
|
|
48
57
|
standalone: true,
|
|
49
|
-
selector: 'axp-
|
|
50
|
-
template: `<ng-content select="ax-button"></ng-content>`,
|
|
58
|
+
selector: 'axp-layout-actions-primary',
|
|
59
|
+
template: `<ng-content select="ax-button,ax-dropdown-button"></ng-content>`,
|
|
51
60
|
encapsulation: ViewEncapsulation.None,
|
|
52
61
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
53
62
|
}]
|
|
54
63
|
}] });
|
|
55
64
|
class AXPThemeLayoutPageSecondaryActionsComponent {
|
|
56
65
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPageSecondaryActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutPageSecondaryActionsComponent, isStandalone: true, selector: "axp-
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutPageSecondaryActionsComponent, isStandalone: true, selector: "axp-layout-actions-secondary", ngImport: i0, template: `<ng-content select="ax-button-item"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
58
67
|
}
|
|
59
68
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPageSecondaryActionsComponent, decorators: [{
|
|
60
69
|
type: Component,
|
|
61
70
|
args: [{
|
|
62
71
|
standalone: true,
|
|
63
|
-
selector: 'axp-
|
|
72
|
+
selector: 'axp-layout-actions-secondary',
|
|
64
73
|
template: `<ng-content select="ax-button-item"></ng-content>`,
|
|
65
74
|
encapsulation: ViewEncapsulation.None,
|
|
66
75
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
67
76
|
}]
|
|
68
77
|
}] });
|
|
69
|
-
class
|
|
78
|
+
class AXPThemeLayoutActionsComponent {
|
|
70
79
|
constructor() {
|
|
71
80
|
this.primaryTemplate = viewChild('primary');
|
|
72
81
|
this.primaryContent = contentChild(AXPThemeLayoutPagePrimaryActionsComponent);
|
|
@@ -75,34 +84,34 @@ class AXPThemeLayoutPageActionsComponent {
|
|
|
75
84
|
this.secondaryContent = contentChild(AXPThemeLayoutPageSecondaryActionsComponent);
|
|
76
85
|
this.hasSecondary = computed(() => this.secondaryContent() != null);
|
|
77
86
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
79
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type:
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXPThemeLayoutActionsComponent, isStandalone: true, selector: "axp-layout-actions", queries: [{ propertyName: "primaryContent", first: true, predicate: AXPThemeLayoutPagePrimaryActionsComponent, descendants: true, isSignal: true }, { propertyName: "secondaryContent", first: true, predicate: AXPThemeLayoutPageSecondaryActionsComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "primaryTemplate", first: true, predicate: ["primary"], descendants: true, isSignal: true }, { propertyName: "secondaryTemplate", first: true, predicate: ["secondary"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
80
89
|
|
|
81
90
|
<ng-template #primary>
|
|
82
|
-
<ng-content select="axp-
|
|
91
|
+
<ng-content select="axp-layout-actions-primary"></ng-content>
|
|
83
92
|
</ng-template>
|
|
84
93
|
|
|
85
94
|
<ng-template #secondary>
|
|
86
|
-
<ng-content select="axp-
|
|
95
|
+
<ng-content select="axp-layout-actions-secondary"></ng-content>
|
|
87
96
|
</ng-template>
|
|
88
97
|
|
|
89
98
|
<ng-content></ng-content>
|
|
90
99
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
91
100
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutActionsComponent, decorators: [{
|
|
93
102
|
type: Component,
|
|
94
103
|
args: [{
|
|
95
104
|
imports: [CommonModule],
|
|
96
105
|
standalone: true,
|
|
97
|
-
selector: 'axp-
|
|
106
|
+
selector: 'axp-layout-actions',
|
|
98
107
|
template: `
|
|
99
108
|
|
|
100
109
|
<ng-template #primary>
|
|
101
|
-
<ng-content select="axp-
|
|
110
|
+
<ng-content select="axp-layout-actions-primary"></ng-content>
|
|
102
111
|
</ng-template>
|
|
103
112
|
|
|
104
113
|
<ng-template #secondary>
|
|
105
|
-
<ng-content select="axp-
|
|
114
|
+
<ng-content select="axp-layout-actions-secondary"></ng-content>
|
|
106
115
|
</ng-template>
|
|
107
116
|
|
|
108
117
|
<ng-content></ng-content>
|
|
@@ -112,95 +121,187 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
112
121
|
}]
|
|
113
122
|
}] });
|
|
114
123
|
|
|
115
|
-
class
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPageSideComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutPageSideComponent, isStandalone: true, selector: "axp-page-side", ngImport: i0, template: `
|
|
118
|
-
<ng-content></ng-content>
|
|
119
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
120
|
-
}
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutPageSideComponent, decorators: [{
|
|
122
|
-
type: Component,
|
|
123
|
-
args: [{
|
|
124
|
-
imports: [CommonModule],
|
|
125
|
-
standalone: true,
|
|
126
|
-
selector: 'axp-page-side',
|
|
127
|
-
template: `
|
|
128
|
-
<ng-content></ng-content>
|
|
129
|
-
`,
|
|
130
|
-
encapsulation: ViewEncapsulation.None,
|
|
131
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
132
|
-
}]
|
|
133
|
-
}] });
|
|
134
|
-
|
|
135
|
-
class AXPThemeLayoutPageHeaderComponent {
|
|
124
|
+
class AXPThemeLayoutHeaderTemplateComponent {
|
|
136
125
|
constructor() {
|
|
137
126
|
this.title = viewChild('title');
|
|
138
127
|
this.description = viewChild('description');
|
|
139
128
|
this.actions = viewChild('actions');
|
|
140
129
|
this.navbar = viewChild('navbar');
|
|
141
130
|
this.breadcrumbs = viewChild('breadcrumbs');
|
|
131
|
+
this.navButton = viewChild('navButton');
|
|
142
132
|
}
|
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
144
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type:
|
|
145
|
-
|
|
133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutHeaderTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
134
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXPThemeLayoutHeaderTemplateComponent, isStandalone: true, selector: "axp-layout-header", viewQueries: [{ propertyName: "title", first: true, predicate: ["title"], descendants: true, isSignal: true }, { propertyName: "description", first: true, predicate: ["description"], descendants: true, isSignal: true }, { propertyName: "actions", first: true, predicate: ["actions"], descendants: true, isSignal: true }, { propertyName: "navbar", first: true, predicate: ["navbar"], descendants: true, isSignal: true }, { propertyName: "breadcrumbs", first: true, predicate: ["breadcrumbs"], descendants: true, isSignal: true }, { propertyName: "navButton", first: true, predicate: ["navButton"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
146
135
|
<ng-template #breadcrumbs>
|
|
147
|
-
<ng-content select="axp-
|
|
136
|
+
<ng-content select="axp-layout-breadcrumbs"></ng-content>
|
|
148
137
|
</ng-template>
|
|
149
138
|
|
|
150
139
|
<ng-template #navbar>
|
|
151
|
-
<ng-content select="axp-
|
|
140
|
+
<ng-content select="axp-layout-toolbar"></ng-content>
|
|
152
141
|
</ng-template>
|
|
153
142
|
|
|
154
143
|
<ng-template #actions>
|
|
155
|
-
<ng-content select="axp-
|
|
144
|
+
<ng-content select="axp-layout-actions"></ng-content>
|
|
156
145
|
</ng-template>
|
|
157
146
|
|
|
158
147
|
<ng-template #description>
|
|
159
|
-
<ng-content select="axp-
|
|
148
|
+
<ng-content select="axp-layout-description"></ng-content>
|
|
160
149
|
</ng-template>
|
|
161
150
|
|
|
162
151
|
<ng-template #title>
|
|
163
|
-
<ng-content select="axp-
|
|
152
|
+
<ng-content select="axp-layout-title"></ng-content>
|
|
153
|
+
</ng-template>
|
|
154
|
+
<ng-template #navButton>
|
|
155
|
+
<ng-content select="axp-layout-nav-button"></ng-content>
|
|
164
156
|
</ng-template>
|
|
165
|
-
|
|
166
|
-
<ng-content></ng-content>
|
|
167
157
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
168
158
|
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutHeaderTemplateComponent, decorators: [{
|
|
170
160
|
type: Component,
|
|
171
161
|
args: [{
|
|
172
162
|
imports: [CommonModule],
|
|
173
163
|
standalone: true,
|
|
174
|
-
selector: 'axp-
|
|
164
|
+
selector: 'axp-layout-header',
|
|
175
165
|
template: `
|
|
176
|
-
|
|
177
166
|
<ng-template #breadcrumbs>
|
|
178
|
-
<ng-content select="axp-
|
|
167
|
+
<ng-content select="axp-layout-breadcrumbs"></ng-content>
|
|
179
168
|
</ng-template>
|
|
180
169
|
|
|
181
170
|
<ng-template #navbar>
|
|
182
|
-
<ng-content select="axp-
|
|
171
|
+
<ng-content select="axp-layout-toolbar"></ng-content>
|
|
183
172
|
</ng-template>
|
|
184
173
|
|
|
185
174
|
<ng-template #actions>
|
|
186
|
-
<ng-content select="axp-
|
|
175
|
+
<ng-content select="axp-layout-actions"></ng-content>
|
|
187
176
|
</ng-template>
|
|
188
177
|
|
|
189
178
|
<ng-template #description>
|
|
190
|
-
<ng-content select="axp-
|
|
179
|
+
<ng-content select="axp-layout-description"></ng-content>
|
|
191
180
|
</ng-template>
|
|
192
181
|
|
|
193
182
|
<ng-template #title>
|
|
194
|
-
<ng-content select="axp-
|
|
183
|
+
<ng-content select="axp-layout-title"></ng-content>
|
|
184
|
+
</ng-template>
|
|
185
|
+
<ng-template #navButton>
|
|
186
|
+
<ng-content select="axp-layout-nav-button"></ng-content>
|
|
187
|
+
</ng-template>
|
|
188
|
+
`,
|
|
189
|
+
encapsulation: ViewEncapsulation.None,
|
|
190
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
191
|
+
}]
|
|
192
|
+
}] });
|
|
193
|
+
|
|
194
|
+
class AXPThemeLayoutSectionTemplateComponent {
|
|
195
|
+
constructor() {
|
|
196
|
+
this.header = contentChild(AXPThemeLayoutHeaderTemplateComponent);
|
|
197
|
+
this.content = viewChild('content');
|
|
198
|
+
}
|
|
199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutSectionTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
200
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXPThemeLayoutSectionTemplateComponent, isStandalone: true, selector: "axp-layout-section", queries: [{ propertyName: "header", first: true, predicate: AXPThemeLayoutHeaderTemplateComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
201
|
+
<ng-template #header>
|
|
202
|
+
<ng-content select="axp-layout-header"></ng-content>
|
|
203
|
+
</ng-template>
|
|
204
|
+
<ng-template #content>
|
|
205
|
+
<ng-content select="axp-layout-content"></ng-content>
|
|
206
|
+
</ng-template>
|
|
207
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
208
|
+
}
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutSectionTemplateComponent, decorators: [{
|
|
210
|
+
type: Component,
|
|
211
|
+
args: [{
|
|
212
|
+
imports: [CommonModule],
|
|
213
|
+
standalone: true,
|
|
214
|
+
selector: 'axp-layout-section',
|
|
215
|
+
template: `
|
|
216
|
+
<ng-template #header>
|
|
217
|
+
<ng-content select="axp-layout-header"></ng-content>
|
|
218
|
+
</ng-template>
|
|
219
|
+
<ng-template #content>
|
|
220
|
+
<ng-content select="axp-layout-content"></ng-content>
|
|
195
221
|
</ng-template>
|
|
196
|
-
|
|
197
|
-
<ng-content></ng-content>
|
|
198
222
|
`,
|
|
199
223
|
encapsulation: ViewEncapsulation.None,
|
|
200
224
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
201
225
|
}]
|
|
202
226
|
}] });
|
|
203
227
|
|
|
228
|
+
class AXPThemeLayoutSideTemplateComponent {
|
|
229
|
+
constructor() {
|
|
230
|
+
this.header = contentChild(AXPThemeLayoutHeaderTemplateComponent);
|
|
231
|
+
this.content = viewChild('content');
|
|
232
|
+
}
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutSideTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
234
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXPThemeLayoutSideTemplateComponent, isStandalone: true, selector: "axp-layout-side", queries: [{ propertyName: "header", first: true, predicate: AXPThemeLayoutHeaderTemplateComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
235
|
+
<ng-template #header>
|
|
236
|
+
<ng-content select="axp-layout-header"></ng-content>
|
|
237
|
+
</ng-template>
|
|
238
|
+
<ng-template #content>
|
|
239
|
+
<ng-content select="axp-layout-content"></ng-content>
|
|
240
|
+
</ng-template>
|
|
241
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutSideTemplateComponent, decorators: [{
|
|
244
|
+
type: Component,
|
|
245
|
+
args: [{
|
|
246
|
+
imports: [CommonModule],
|
|
247
|
+
standalone: true,
|
|
248
|
+
selector: 'axp-layout-side',
|
|
249
|
+
template: `
|
|
250
|
+
<ng-template #header>
|
|
251
|
+
<ng-content select="axp-layout-header"></ng-content>
|
|
252
|
+
</ng-template>
|
|
253
|
+
<ng-template #content>
|
|
254
|
+
<ng-content select="axp-layout-content"></ng-content>
|
|
255
|
+
</ng-template>
|
|
256
|
+
`,
|
|
257
|
+
encapsulation: ViewEncapsulation.None,
|
|
258
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
259
|
+
}]
|
|
260
|
+
}] });
|
|
261
|
+
|
|
262
|
+
class AXPThemeLayoutListComponent {
|
|
263
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
264
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutListComponent, isStandalone: true, selector: "axp-layout-list", ngImport: i0, template: `<ng-content select="axp-layout-list-item,axp-layout-list-group"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
265
|
+
}
|
|
266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListComponent, decorators: [{
|
|
267
|
+
type: Component,
|
|
268
|
+
args: [{
|
|
269
|
+
standalone: true,
|
|
270
|
+
selector: 'axp-layout-list',
|
|
271
|
+
template: `<ng-content select="axp-layout-list-item,axp-layout-list-group"></ng-content>`,
|
|
272
|
+
encapsulation: ViewEncapsulation.None,
|
|
273
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
274
|
+
}]
|
|
275
|
+
}] });
|
|
276
|
+
class AXPThemeLayoutListItemsGroupComponent {
|
|
277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListItemsGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
278
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutListItemsGroupComponent, isStandalone: true, selector: "axp-layout-list-group", ngImport: i0, template: `<ng-content select="axp-layout-list-item"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
279
|
+
}
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListItemsGroupComponent, decorators: [{
|
|
281
|
+
type: Component,
|
|
282
|
+
args: [{
|
|
283
|
+
standalone: true,
|
|
284
|
+
selector: 'axp-layout-list-group',
|
|
285
|
+
template: `<ng-content select="axp-layout-list-item"></ng-content>`,
|
|
286
|
+
encapsulation: ViewEncapsulation.None,
|
|
287
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
288
|
+
}]
|
|
289
|
+
}] });
|
|
290
|
+
class AXPThemeLayoutListItemComponent {
|
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
292
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPThemeLayoutListItemComponent, isStandalone: true, selector: "axp-layout-list-item", ngImport: i0, template: `<ng-content select="axp-layout-content,axp-layout-prefix,axp-layout-suffix"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
293
|
+
}
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemeLayoutListItemComponent, decorators: [{
|
|
295
|
+
type: Component,
|
|
296
|
+
args: [{
|
|
297
|
+
standalone: true,
|
|
298
|
+
selector: 'axp-layout-list-item',
|
|
299
|
+
template: `<ng-content select="axp-layout-content,axp-layout-prefix,axp-layout-suffix"></ng-content>`,
|
|
300
|
+
encapsulation: ViewEncapsulation.None,
|
|
301
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
302
|
+
}]
|
|
303
|
+
}] });
|
|
304
|
+
|
|
204
305
|
var AXPThemeLayoutSetting;
|
|
205
306
|
(function (AXPThemeLayoutSetting) {
|
|
206
307
|
AXPThemeLayoutSetting["ThemeVariant"] = "layout:theme:variant";
|
|
@@ -334,12 +435,6 @@ withMethods((store, settingService = inject(AXPSettingValueProviderService)) =>
|
|
|
334
435
|
}
|
|
335
436
|
}
|
|
336
437
|
};
|
|
337
|
-
//
|
|
338
|
-
settingService.onChanged.subscribe((setting) => {
|
|
339
|
-
if (setting.keys.includes(AXPThemeLayoutSetting.ThemeVariant)) {
|
|
340
|
-
applySettings();
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
438
|
const minimumDisplayTime = 500; // milliseconds
|
|
344
439
|
return {
|
|
345
440
|
// Change theme and update HTML class
|
|
@@ -439,11 +534,14 @@ withMethods((store, settingService = inject(AXPSettingValueProviderService)) =>
|
|
|
439
534
|
};
|
|
440
535
|
}),
|
|
441
536
|
// Lifecycle Hooks
|
|
442
|
-
withHooks((store) => ({
|
|
537
|
+
withHooks((store, settingService = inject(AXPSettingValueProviderService)) => ({
|
|
443
538
|
onInit() {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
539
|
+
//
|
|
540
|
+
settingService.onChanged.subscribe(async (setting) => {
|
|
541
|
+
if (setting.keys.includes(AXPThemeLayoutSetting.ThemeVariant)) {
|
|
542
|
+
await store.loadSettings();
|
|
543
|
+
}
|
|
544
|
+
});
|
|
447
545
|
// Set up event listener for system theme changes
|
|
448
546
|
const listener = store._setupSystemColorListener();
|
|
449
547
|
patchState(store, { _listener: listener });
|
|
@@ -579,16 +677,10 @@ class AXPThemeSettingProvider {
|
|
|
579
677
|
?.addSetting({
|
|
580
678
|
key: AXPThemeLayoutSetting.ThemeVariant,
|
|
581
679
|
title: 'Default Theme',
|
|
582
|
-
scope: '
|
|
680
|
+
scope: 'U',
|
|
681
|
+
isInherited: true,
|
|
583
682
|
defaultValue: AXPThemeVariant.Light,
|
|
584
|
-
valueTransforms:
|
|
585
|
-
getter: (value) => {
|
|
586
|
-
return typeof value == 'object' ? value['id'] : value;
|
|
587
|
-
},
|
|
588
|
-
setter: (value) => {
|
|
589
|
-
return typeof value == 'object' ? value['id'] : value;
|
|
590
|
-
}
|
|
591
|
-
},
|
|
683
|
+
valueTransforms: objectKeyValueTransforms('id'),
|
|
592
684
|
widget: {
|
|
593
685
|
type: 'select-editor',
|
|
594
686
|
options: {
|
|
@@ -604,8 +696,17 @@ class AXPThemeSettingProvider {
|
|
|
604
696
|
}
|
|
605
697
|
|
|
606
698
|
class AXPThemesSharedModule {
|
|
607
|
-
constructor() {
|
|
608
|
-
|
|
699
|
+
constructor(appInitService, injector) {
|
|
700
|
+
const service = injector.get(AXPLayoutThemeService);
|
|
701
|
+
appInitService.registerTask({
|
|
702
|
+
name: 'Settings',
|
|
703
|
+
statusText: 'Loading Settings ...',
|
|
704
|
+
run: async () => {
|
|
705
|
+
await service.loadSettings();
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemesSharedModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
609
710
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXPThemesSharedModule, imports: [i1$1.AXPComponentSlotModule] }); }
|
|
610
711
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPThemesSharedModule, providers: [
|
|
611
712
|
{
|
|
@@ -647,11 +748,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
647
748
|
}
|
|
648
749
|
],
|
|
649
750
|
}]
|
|
650
|
-
}], ctorParameters: () => [] });
|
|
751
|
+
}], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
651
752
|
|
|
652
753
|
/**
|
|
653
754
|
* Generated bundle index. Do not edit.
|
|
654
755
|
*/
|
|
655
756
|
|
|
656
|
-
export { AXPDeviceType, AXPLayoutThemeService, AXPScreenSize, AXPSideMenuState, AXPThemeLayoutBlockComponent,
|
|
757
|
+
export { AXPDeviceType, AXPLayoutThemeService, AXPScreenSize, AXPSideMenuState, AXPThemeLayoutActionsComponent, AXPThemeLayoutBlockComponent, AXPThemeLayoutHeaderTemplateComponent, AXPThemeLayoutListComponent, AXPThemeLayoutListItemComponent, AXPThemeLayoutListItemsGroupComponent, AXPThemeLayoutPagePrimaryActionsComponent, AXPThemeLayoutPageSecondaryActionsComponent, AXPThemeLayoutSectionTemplateComponent, AXPThemeLayoutSideTemplateComponent, AXPThemeSlotComponent, AXPThemeVariant, AXPThemesSharedModule };
|
|
657
758
|
//# sourceMappingURL=acorex-platform-themes-shared.mjs.map
|