@acorex/platform 19.4.4 → 19.4.5

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.
Files changed (44) hide show
  1. package/core/lib/types/core.types.d.ts +13 -0
  2. package/core/lib/types/file.types.d.ts +13 -0
  3. package/core/lib/types/index.d.ts +1 -0
  4. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-layout-builder.mjs +0 -3
  6. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-layout-entity.mjs +92 -2
  8. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-layout-views.mjs +3 -3
  10. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-widgets-file-list-popup.component-TNxbcVav.mjs +68 -0
  12. package/fesm2022/acorex-platform-widgets-file-list-popup.component-TNxbcVav.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-widgets.mjs +114 -826
  14. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-workflow.mjs +6 -2
  16. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  17. package/layout/builder/lib/builder/widget-map.d.ts +0 -3
  18. package/layout/entity/lib/entity-master-list.viewmodel.d.ts +1 -0
  19. package/layout/entity/lib/workflows/show-file-uploader-popup.workflow.d.ts +10 -0
  20. package/package.json +18 -18
  21. package/widgets/lib/widgets/advance/file-uploader/file-list/file-list.component.d.ts +7 -4
  22. package/widgets/lib/widgets/advance/file-uploader/file-list-popup/file-list-popup.component.d.ts +17 -0
  23. package/widgets/lib/widgets/advance/file-uploader/file-uploader-widget-column.component.d.ts +3 -3
  24. package/widgets/lib/widgets/advance/file-uploader/file-uploader-widget-edit.component.d.ts +6 -1
  25. package/widgets/lib/widgets/advance/file-uploader/file-uploader-widget-view.component.d.ts +3 -1
  26. package/widgets/lib/widgets/advance/file-uploader/file-uploader-widget.service.d.ts +13 -11
  27. package/widgets/lib/widgets/index.d.ts +0 -2
  28. package/workflow/index.d.ts +1 -0
  29. package/workflow/lib/task-board.types.d.ts +21 -0
  30. package/widgets/lib/widgets/advance/file/file-box-widget-column.component.d.ts +0 -6
  31. package/widgets/lib/widgets/advance/file/file-box-widget-edit.component.d.ts +0 -33
  32. package/widgets/lib/widgets/advance/file/file-box-widget-filter.component.d.ts +0 -6
  33. package/widgets/lib/widgets/advance/file/file-box-widget-print.component.d.ts +0 -6
  34. package/widgets/lib/widgets/advance/file/file-box-widget-view.component.d.ts +0 -31
  35. package/widgets/lib/widgets/advance/file/file-box-widget.config.d.ts +0 -7
  36. package/widgets/lib/widgets/advance/file/file-box-widget.service.d.ts +0 -12
  37. package/widgets/lib/widgets/advance/file/index.d.ts +0 -7
  38. package/widgets/lib/widgets/editors/single-file-box/index.d.ts +0 -6
  39. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget-column.component.d.ts +0 -6
  40. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget-edit.component.d.ts +0 -19
  41. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget-filter.component.d.ts +0 -6
  42. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget-print.component.d.ts +0 -6
  43. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget-view.component.d.ts +0 -8
  44. package/widgets/lib/widgets/editors/single-file-box/single-file-box-widget.config.d.ts +0 -9
@@ -0,0 +1,68 @@
1
+ import * as i2 from '@acorex/components/button';
2
+ import { AXButtonModule } from '@acorex/components/button';
3
+ import { AXCheckBoxModule } from '@acorex/components/check-box';
4
+ import * as i3 from '@acorex/components/decorators';
5
+ import { AXDecoratorModule } from '@acorex/components/decorators';
6
+ import { AXLabelModule } from '@acorex/components/label';
7
+ import { AXBasePageComponent } from '@acorex/components/page';
8
+ import * as i6 from '@acorex/core/translation';
9
+ import { AXTranslationModule } from '@acorex/core/translation';
10
+ import * as i1 from '@angular/common';
11
+ import { CommonModule } from '@angular/common';
12
+ import * as i0 from '@angular/core';
13
+ import { input, computed, linkedSignal, Component } from '@angular/core';
14
+ import * as i1$1 from '@acorex/platform/layout/builder';
15
+ import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
16
+
17
+ class AXPFileListPopupComponent extends AXBasePageComponent {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.files = input([]);
21
+ this.readOnly = input(false);
22
+ this.multiple = input(false);
23
+ this.accept = input('*');
24
+ this.mode = computed(() => this.readOnly() ? 'view' : 'edit');
25
+ this.context = linkedSignal(() => ({}));
26
+ this.node = computed(() => ({
27
+ type: 'file-uploader',
28
+ path: 'files',
29
+ defaultValue: this.files(),
30
+ options: {
31
+ readOnly: this.readOnly(),
32
+ multiple: this.multiple(),
33
+ accept: this.accept(),
34
+ },
35
+ }));
36
+ }
37
+ onContextChanged(event) {
38
+ this.context.set(event.data);
39
+ }
40
+ apply() {
41
+ this.close({
42
+ data: this.context(),
43
+ });
44
+ }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPFileListPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
46
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXPFileListPopupComponent, isStandalone: true, selector: "ng-component", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (readOnly()) {\n <ax-button [text]=\"'close' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'discard' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button [text]=\"'apply' | translate | async\" (click)=\"apply()\" [color]=\"'primary'\"></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type:
47
+ //
48
+ AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type:
49
+ //
50
+ AXPLayoutBuilderModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }] }); }
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPFileListPopupComponent, decorators: [{
53
+ type: Component,
54
+ args: [{ imports: [
55
+ CommonModule,
56
+ //
57
+ AXLabelModule,
58
+ AXCheckBoxModule,
59
+ AXDecoratorModule,
60
+ AXButtonModule,
61
+ AXTranslationModule,
62
+ //
63
+ AXPLayoutBuilderModule
64
+ ], template: "<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (readOnly()) {\n <ax-button [text]=\"'close' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'discard' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button [text]=\"'apply' | translate | async\" (click)=\"apply()\" [color]=\"'primary'\"></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n" }]
65
+ }] });
66
+
67
+ export { AXPFileListPopupComponent };
68
+ //# sourceMappingURL=acorex-platform-widgets-file-list-popup.component-TNxbcVav.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-widgets-file-list-popup.component-TNxbcVav.mjs","sources":["../../../../libs/platform/widgets/src/lib/widgets/advance/file-uploader/file-list-popup/file-list-popup.component.ts","../../../../libs/platform/widgets/src/lib/widgets/advance/file-uploader/file-list-popup/file-list-popup.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPFileListItem } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, input, linkedSignal } from '@angular/core';\nimport { AXPLayoutBuilderModule, AXPLayoutContextChangeEvent, AXPWidgetNode } from '@acorex/platform/layout/builder';\n\n@Component({\n imports: [\n CommonModule,\n //\n AXLabelModule,\n AXCheckBoxModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n //\n AXPLayoutBuilderModule\n ],\n templateUrl: './file-list-popup.component.html',\n})\nexport class AXPFileListPopupComponent extends AXBasePageComponent {\n\n files = input<AXPFileListItem[]>([]);\n readOnly = input<boolean>(false);\n multiple = input<boolean>(false);\n accept = input<string>('*');\n\n protected mode = computed(() => this.readOnly() ? 'view' : 'edit');\n\n\n protected context = linkedSignal<{}>(() => ({\n }));\n\n protected onContextChanged(event: AXPLayoutContextChangeEvent) {\n this.context.set(event.data);\n }\n\n protected node = computed<AXPWidgetNode>(() => ({\n type: 'file-uploader',\n path: 'files',\n defaultValue: this.files(),\n options: {\n readOnly: this.readOnly(),\n multiple: this.multiple(),\n accept: this.accept(),\n },\n }));\n\n apply() {\n this.close({\n data: this.context(),\n });\n }\n\n}\n","<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (readOnly()) {\n <ax-button [text]=\"'close' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'discard' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button [text]=\"'apply' | translate | async\" (click)=\"apply()\" [color]=\"'primary'\"></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n"],"names":["i2","i4","i5"],"mappings":";;;;;;;;;;;;;;;;AAyBM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAdlE,IAAA,WAAA,GAAA;;AAgBE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,EAAE,CAAC;AACpC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC;AAChC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,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