@acorex/platform 20.5.0-next.0 → 20.5.0-next.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/common/index.d.ts +8 -0
- package/fesm2022/acorex-platform-common.mjs +32 -9
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +417 -112
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +129 -125
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +19 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +478 -85
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-rdKxuMC_.mjs → acorex-platform-themes-default-entity-master-list-view.component-ccqB5ShI.mjs} +7 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-rdKxuMC_.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-ccqB5ShI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/layout/builder/index.d.ts +127 -28
- package/layout/widget-core/index.d.ts +20 -1
- package/layout/widgets/index.d.ts +162 -6
- package/package.json +2 -1
|
@@ -160,6 +160,9 @@ class AXPWidgetCoreElement {
|
|
|
160
160
|
api() {
|
|
161
161
|
return {};
|
|
162
162
|
}
|
|
163
|
+
actions() {
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
163
166
|
}
|
|
164
167
|
class AXPWidgetCoreService {
|
|
165
168
|
constructor() {
|
|
@@ -173,6 +176,7 @@ class AXPWidgetCoreService {
|
|
|
173
176
|
this.isBusy = computed(() => {
|
|
174
177
|
return [AXPPageStatus.Processing, AXPPageStatus.Submitting, AXPPageStatus.Rendering].includes(this.status());
|
|
175
178
|
}, ...(ngDevMode ? [{ debugName: "isBusy" }] : []));
|
|
179
|
+
this.registeredWidgetsCount = signal(0, ...(ngDevMode ? [{ debugName: "registeredWidgetsCount" }] : []));
|
|
176
180
|
}
|
|
177
181
|
get variables() {
|
|
178
182
|
return this.variables$();
|
|
@@ -182,6 +186,7 @@ class AXPWidgetCoreService {
|
|
|
182
186
|
}
|
|
183
187
|
updateStatus() {
|
|
184
188
|
this.status$.update(() => this.detectStatus());
|
|
189
|
+
this.registeredWidgetsCount.set(this.widgets.size);
|
|
185
190
|
}
|
|
186
191
|
detectStatus() {
|
|
187
192
|
const statuses = Array.from(this.widgets.values()).map((c) => c.status());
|
|
@@ -269,6 +274,12 @@ class AXPWidgetCoreService {
|
|
|
269
274
|
}
|
|
270
275
|
});
|
|
271
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Returns a list of registered widget ids (names).
|
|
279
|
+
*/
|
|
280
|
+
listRegisteredWidgetNames() {
|
|
281
|
+
return Array.from(this.widgets.keys());
|
|
282
|
+
}
|
|
272
283
|
ngOnDestroy() { }
|
|
273
284
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPWidgetCoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
285
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPWidgetCoreService }); }
|
|
@@ -377,6 +388,7 @@ const AXPWidgetsCatalog = {
|
|
|
377
388
|
entityList: 'entity-list',
|
|
378
389
|
documentUploader: 'document-uploader',
|
|
379
390
|
signatureList: 'signature-list',
|
|
391
|
+
stepWizard: 'step-wizard',
|
|
380
392
|
};
|
|
381
393
|
|
|
382
394
|
function cloneProperty(property, values) {
|
|
@@ -536,6 +548,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
536
548
|
type: Injectable
|
|
537
549
|
}] });
|
|
538
550
|
class AXPLayoutBaseWidgetComponent extends AXPBaseWidgetComponent {
|
|
551
|
+
//TODO change this approach
|
|
552
|
+
ngOnInit() {
|
|
553
|
+
if (this.name && !(this instanceof AXPValueWidgetComponent)) {
|
|
554
|
+
this.layoutService.registerWidget(this.name, this);
|
|
555
|
+
}
|
|
556
|
+
super.ngOnInit();
|
|
557
|
+
}
|
|
539
558
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPLayoutBaseWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
540
559
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPLayoutBaseWidgetComponent }); }
|
|
541
560
|
}
|