@acorex/platform 18.0.11 → 18.0.12
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/auth/lib/session.service.d.ts +2 -2
- package/core/utils/countdown-timer.d.ts +4 -2
- package/esm2022/auth/lib/session.service.mjs +23 -38
- package/esm2022/core/utils/countdown-timer.mjs +10 -3
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +3 -2
- package/esm2022/layout/designer/lib/board/board.component.mjs +72 -13
- package/esm2022/layout/designer/lib/buttons/add-widget-button/add-widget-button.component.mjs +16 -16
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +18 -41
- package/esm2022/layout/designer/lib/designer.service.mjs +37 -51
- package/esm2022/layout/designer/lib/header-menu/header-menu.component.mjs +24 -0
- package/esm2022/layout/designer/lib/history/history.component.mjs +21 -0
- package/esm2022/layout/designer/lib/history-manager.service.mjs +117 -0
- package/esm2022/layout/designer/lib/outline/outline.component.mjs +4 -5
- package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +7 -6
- package/esm2022/widgets/lib/properties/editors.props.mjs +40 -5
- package/esm2022/widgets/lib/widgets/actions/button-widget/button-widget-view.component.mjs +19 -4
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget.config.mjs +2 -1
- package/esm2022/widgets/lib/widgets/editors/color-box-widget/color-box-widget-edit.component.mjs +7 -13
- package/esm2022/widgets/lib/widgets/editors/contact-widget/contact-widget-edit.component.mjs +5 -5
- package/esm2022/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget-edit.component.mjs +2 -2
- package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget-edit.component.mjs +31 -21
- package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget.config.mjs +11 -4
- package/esm2022/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget.config.mjs +2 -1
- package/esm2022/widgets/lib/widgets/editors/text-box-widget/text-box-widget-edit.component.mjs +4 -4
- package/esm2022/widgets/lib/widgets/editors/text-box-widget/text-box-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/toggle-widget/toggle-widget.config.mjs +2 -1
- package/esm2022/widgets/lib/widgets/layout/page-widget/page-widget-designer.component.mjs +14 -4
- package/esm2022/widgets/lib/widgets/layout/page-widget/page-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/layout/repeater-widget/repeater-widget.config.mjs +2 -1
- package/esm2022/widgets/lib/widgets/layout/text-block-widget/text-block-widget.config.mjs +2 -2
- package/fesm2022/acorex-platform-auth.mjs +22 -37
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +9 -2
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +2 -1
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +319 -156
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-CjofXJku.mjs → acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs} +7 -5
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +2 -2
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-DYb6bilD.mjs → acorex-platform-widgets-page-widget-designer.component-DlfG4EP1.mjs} +14 -4
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DlfG4EP1.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +332 -267
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +2 -2
- package/layout/designer/lib/board/board.component.d.ts +7 -1
- package/layout/designer/lib/designer/designer.component.d.ts +1 -10
- package/layout/designer/lib/designer.service.d.ts +20 -16
- package/layout/designer/lib/header-menu/header-menu.component.d.ts +7 -0
- package/layout/designer/lib/history/history.component.d.ts +7 -0
- package/layout/designer/lib/history-manager.service.d.ts +31 -0
- package/package.json +7 -7
- package/widgets/lib/properties/editors.props.d.ts +1 -0
- package/widgets/lib/widgets/actions/button-widget/button-widget-view.component.d.ts +1 -0
- package/widgets/lib/widgets/editors/color-box-widget/color-box-widget-edit.component.d.ts +2 -4
- package/widgets/lib/widgets/editors/select-box-widget/select-box-widget-edit.component.d.ts +2 -0
- package/widgets/lib/widgets/editors/text-box-widget/text-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/page-widget/page-widget-designer.component.d.ts +2 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-CjofXJku.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DYb6bilD.mjs.map +0 -1
|
@@ -1775,7 +1775,7 @@ class AXPEntityModifyPopupAction extends AXPWorkflowAction {
|
|
|
1775
1775
|
const { module, entity: entityName, section, id } = payload;
|
|
1776
1776
|
const entity = await this.entityRegistery.resolve(module, entityName);
|
|
1777
1777
|
const loader = await this.entityCreateFactory.create(module, entityName, id, section);
|
|
1778
|
-
const com = await import('./acorex-platform-layouts-entity-modify-view.component-
|
|
1778
|
+
const com = await import('./acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs');
|
|
1779
1779
|
const popup = await this.popupService.open(com.AXPEntityModifyViewComponent, {
|
|
1780
1780
|
title: `Modify ${payload.section.title}`,
|
|
1781
1781
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
@@ -2242,7 +2242,7 @@ class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
|
2242
2242
|
const { module, entity: entityName, section, id } = payload;
|
|
2243
2243
|
const entity = await this.entityRegistery.resolve(module, entityName);
|
|
2244
2244
|
const loader = await this.entityCreateFactory.create(module, entityName, id, section);
|
|
2245
|
-
const com = await import('./acorex-platform-layouts-entity-modify-view.component-
|
|
2245
|
+
const com = await import('./acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs');
|
|
2246
2246
|
const popup = await this.popupService.open(com.AXPEntityModifyViewComponent, {
|
|
2247
2247
|
title: `Modify ${payload.section.title}`,
|
|
2248
2248
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
@@ -8,6 +8,7 @@ class AXPPageWidgetDesignerComponent extends AXPContainerWidgetComponent {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
10
|
this.backgroundColor = computed(() => this.options()["backgroundColor"]);
|
|
11
|
+
this.theme = computed(() => this.options()["theme"]?.id ?? 'default');
|
|
11
12
|
}
|
|
12
13
|
get __style() {
|
|
13
14
|
return {
|
|
@@ -15,14 +16,20 @@ class AXPPageWidgetDesignerComponent extends AXPContainerWidgetComponent {
|
|
|
15
16
|
'display': 'block',
|
|
16
17
|
};
|
|
17
18
|
}
|
|
19
|
+
get __class() {
|
|
20
|
+
return {
|
|
21
|
+
'ax-dark': this.theme() == 'dark',
|
|
22
|
+
'ax-light': this.theme() == 'light',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
18
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPageWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPPageWidgetDesignerComponent, isStandalone: true, selector: "axp-page-widget", host: { properties: { "style": "this.__style" } }, providers: [
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPPageWidgetDesignerComponent, isStandalone: true, selector: "axp-page-widget", host: { properties: { "style": "this.__style", "class": "this.__class" } }, providers: [
|
|
20
27
|
{
|
|
21
28
|
provide: AXPContainerWidgetComponent, useExisting: AXPPageWidgetDesignerComponent
|
|
22
29
|
}
|
|
23
30
|
], usesInheritance: true, ngImport: i0, template: `
|
|
24
31
|
@for (node of children(); track $index) {
|
|
25
|
-
<axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="mode">
|
|
32
|
+
<axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="mode" >
|
|
26
33
|
</axp-widget-designer-renderer>
|
|
27
34
|
}
|
|
28
35
|
<axp-designer-add-widget-button></axp-designer-add-widget-button>
|
|
@@ -34,7 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
34
41
|
selector: 'axp-page-widget',
|
|
35
42
|
template: `
|
|
36
43
|
@for (node of children(); track $index) {
|
|
37
|
-
<axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="mode">
|
|
44
|
+
<axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="mode" >
|
|
38
45
|
</axp-widget-designer-renderer>
|
|
39
46
|
}
|
|
40
47
|
<axp-designer-add-widget-button></axp-designer-add-widget-button>
|
|
@@ -52,7 +59,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
52
59
|
}], propDecorators: { __style: [{
|
|
53
60
|
type: HostBinding,
|
|
54
61
|
args: ['style']
|
|
62
|
+
}], __class: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['class']
|
|
55
65
|
}] } });
|
|
56
66
|
|
|
57
67
|
export { AXPPageWidgetDesignerComponent };
|
|
58
|
-
//# sourceMappingURL=acorex-platform-widgets-page-widget-designer.component-
|
|
68
|
+
//# sourceMappingURL=acorex-platform-widgets-page-widget-designer.component-DlfG4EP1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-widgets-page-widget-designer.component-DlfG4EP1.mjs","sources":["../../../../libs/platform/widgets/src/lib/widgets/layout/page-widget/page-widget-designer.component.ts"],"sourcesContent":["import { AXPLayoutBuilderModule, AXPContainerWidgetComponent } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { AXPDesignerAddWidgetButtonComponent, AXPWidgetDesignerRendererComponent } from \"@acorex/platform/layout/designer\";\n\n@Component({\n selector: 'axp-page-widget',\n template: `\n @for (node of children(); track $index) {\n <axp-widget-designer-renderer [node]=\"node\" [parentNode]=\"this\" [mode]=\"mode\" >\n </axp-widget-designer-renderer>\n }\n <axp-designer-add-widget-button></axp-designer-add-widget-button>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXPLayoutBuilderModule, AXPWidgetDesignerRendererComponent, AXPDesignerAddWidgetButtonComponent],\n providers: [\n {\n provide: AXPContainerWidgetComponent, useExisting: AXPPageWidgetDesignerComponent\n }\n ]\n})\nexport class AXPPageWidgetDesignerComponent extends AXPContainerWidgetComponent<void> {\n\n protected backgroundColor = computed<string>(() => this.options()[\"backgroundColor\"] as string);\n\n protected theme = computed<string>(() => this.options()[\"theme\"]?.id as string ?? 'default');\n\n\n @HostBinding('style')\n private get __style(): any {\n return {\n 'background-color': this.backgroundColor(),\n 'display': 'block',\n };\n }\n\n @HostBinding('class')\n private get __class(): any {\n return {\n 'ax-dark': this.theme() == 'dark',\n 'ax-light': this.theme() == 'light',\n };\n }\n}"],"names":[],"mappings":";;;;;;AAwBM,MAAO,8BAA+B,SAAQ,2BAAiC,CAAA;AAnBrF,IAAA,WAAA,GAAA;;AAqBY,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAS,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAW,CAAC,CAAC;AAEtF,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAS,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,EAAY,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