@acorex/layout 6.5.29 → 6.5.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/README.md +1 -1
  2. package/acorex-layout.d.ts +5 -5
  3. package/esm2020/acorex-layout.mjs +4 -4
  4. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +46 -46
  5. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -21
  6. package/esm2020/lib/widget-board/widget-board.component.mjs +450 -450
  7. package/esm2020/lib/widget-board/widget-board.module.mjs +111 -111
  8. package/esm2020/lib/widget-board/widget-config.component.mjs +82 -82
  9. package/esm2020/lib/widget-board/widget-host.component.mjs +295 -295
  10. package/esm2020/lib/widget-board/widget-save.component.mjs +79 -79
  11. package/esm2020/lib/widget-board/widget.class.mjs +127 -127
  12. package/esm2020/public-api.mjs +7 -7
  13. package/fesm2015/acorex-layout.mjs +1147 -1147
  14. package/fesm2015/acorex-layout.mjs.map +1 -1
  15. package/fesm2020/acorex-layout.mjs +1140 -1140
  16. package/fesm2020/acorex-layout.mjs.map +1 -1
  17. package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +19 -19
  18. package/lib/widget-board/editors/widget-size-editor/widget-size.module.d.ts +10 -10
  19. package/lib/widget-board/widget-board.component.d.ts +61 -61
  20. package/lib/widget-board/widget-board.module.d.ts +18 -18
  21. package/lib/widget-board/widget-config.component.d.ts +23 -23
  22. package/lib/widget-board/widget-host.component.d.ts +52 -52
  23. package/lib/widget-board/widget-save.component.d.ts +19 -19
  24. package/lib/widget-board/widget.class.d.ts +58 -58
  25. package/package.json +1 -1
  26. package/public-api.d.ts +6 -6
@@ -1,79 +1,79 @@
1
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
2
- import { AXHtmlUtil, AXObjectUtil, AXTranslator } from '@acorex/core';
3
- import { AXBasePopupPageComponent } from '@acorex/components';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@acorex/components";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "@acorex/core";
8
- export class AXWidgetSaveComponent extends AXBasePopupPageComponent {
9
- constructor() {
10
- super(...arguments);
11
- this.props = [];
12
- }
13
- getFooterButtons() {
14
- return [
15
- {
16
- name: 'okay',
17
- submitBehavior: true,
18
- text: AXTranslator.get('common.confirm'),
19
- style: 'ax success'
20
- },
21
- {
22
- name: 'cancel',
23
- cancelBehavior: true,
24
- text: AXTranslator.get('common.cancel'),
25
- style: 'ax light'
26
- }
27
- ];
28
- }
29
- ngOnInit() {
30
- const titleProp = this.props.find(c => c.property.name === 'title' || c.property.name === 'name');
31
- const title = titleProp?.value || this.config.title;
32
- const pp = {};
33
- this.props?.forEach(c => {
34
- pp[c.property.name] = c.property;
35
- });
36
- this.data = {
37
- component: this.config.component,
38
- title,
39
- uniqueName: `${this.config.uniqueName}-${AXHtmlUtil.getUID()}`,
40
- options: AXObjectUtil.deepJSONClone(this.config.options),
41
- props: AXObjectUtil.deepJSONClone(pp)
42
- };
43
- this.displayProps = this.props
44
- .filter(c => c.property.visible !== false)
45
- .sort((a, b) => a.property.order - b.property.order)
46
- .map(c => ({
47
- name: c.property.name,
48
- title: c.property.title,
49
- allow: true
50
- }));
51
- }
52
- onFooterButtonClick(e) {
53
- if (e.name === 'cancel') {
54
- this.close();
55
- }
56
- if (e.name === 'okay') {
57
- this.props.forEach(p => {
58
- const pp = this.displayProps.find(c => c.name === p.property.name);
59
- if (pp == null || !pp.allow) {
60
- let ppp = this.data.props[p.property.name];
61
- if (ppp) {
62
- ppp.visible = false;
63
- }
64
- else {
65
- ppp = { visible: false };
66
- }
67
- }
68
- });
69
- this.close(this.data);
70
- }
71
- }
72
- }
73
- AXWidgetSaveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetSaveComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
74
- AXWidgetSaveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXWidgetSaveComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.title' | trans}}</ax-label>\r\n <ax-text-box [(value)]=\"data.title\"></ax-text-box>\r\n </ax-form-group>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.description' | trans}}</ax-label>\r\n <ax-text-area [(value)]=\"data.description\"></ax-text-area>\r\n </ax-form-group>\r\n </div>\r\n </div>\r\n <!-- <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.uniquename' | trans}}</ax-label>\r\n <ax-text-box></ax-text-box>\r\n </ax-form-group>\r\n </div>\r\n </div> -->\r\n <div class=\"row\" style=\"margin-block-end: var(--ax-size-md);margin-block-start: var(--ax-size-md);\">\r\n <div class=\"col-12\">\r\n <ax-fieldset caption=\"{{'widget-board.configurable-props' | trans}}\">\r\n <div class=\"row\" *ngFor=\"let prop of displayProps\">\r\n <div class=\"col-12\" style=\"margin-block-end: var(--ax-size-sm)\">\r\n <ax-check-box [(value)]=\"prop.allow\" label=\"{{ prop.title | trans }}\">\r\n\r\n </ax-check-box>\r\n </div>\r\n </div>\r\n </ax-fieldset>\r\n </div>\r\n </div>\r\n </div>\r\n </ax-page-content>\r\n</ax-page>", components: [{ type: i1.AXPageComponent, selector: "ax-page" }, { type: i1.AXPageContentComponent, selector: "ax-page-content" }, { type: i1.AXFormGroupComponent, selector: "ax-form-group", inputs: ["size"] }, { type: i1.AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: i1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: i1.AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: i1.AXFieldsetComponent, selector: "ax-fieldset", inputs: ["size", "caption", "allowCollapse"] }, { type: i1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetSaveComponent, decorators: [{
76
- type: Component,
77
- args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.title' | trans}}</ax-label>\r\n <ax-text-box [(value)]=\"data.title\"></ax-text-box>\r\n </ax-form-group>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.description' | trans}}</ax-label>\r\n <ax-text-area [(value)]=\"data.description\"></ax-text-area>\r\n </ax-form-group>\r\n </div>\r\n </div>\r\n <!-- <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-form-group>\r\n <ax-label>{{'common.uniquename' | trans}}</ax-label>\r\n <ax-text-box></ax-text-box>\r\n </ax-form-group>\r\n </div>\r\n </div> -->\r\n <div class=\"row\" style=\"margin-block-end: var(--ax-size-md);margin-block-start: var(--ax-size-md);\">\r\n <div class=\"col-12\">\r\n <ax-fieldset caption=\"{{'widget-board.configurable-props' | trans}}\">\r\n <div class=\"row\" *ngFor=\"let prop of displayProps\">\r\n <div class=\"col-12\" style=\"margin-block-end: var(--ax-size-sm)\">\r\n <ax-check-box [(value)]=\"prop.allow\" label=\"{{ prop.title | trans }}\">\r\n\r\n </ax-check-box>\r\n </div>\r\n </div>\r\n </ax-fieldset>\r\n </div>\r\n </div>\r\n </div>\r\n </ax-page-content>\r\n</ax-page>" }]
78
- }] });
79
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LXNhdmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtc2F2ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1zYXZlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLHVCQUF1QixHQUUxQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQWdCLFVBQVUsRUFBRSxZQUFZLEVBQUUsWUFBWSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3BGLE9BQU8sRUFBMEMsd0JBQXdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7Ozs7QUFTdEcsTUFBTSxPQUFPLHFCQUFzQixTQUFRLHdCQUF3QjtJQUxuRTs7UUFPSSxVQUFLLEdBQXVCLEVBQUUsQ0FBQztLQW9FbEM7SUEvREcsZ0JBQWdCO1FBQ1osT0FBTztZQUNIO2dCQUNJLElBQUksRUFBRSxNQUFNO2dCQUNaLGNBQWMsRUFBRSxJQUFJO2dCQUNwQixJQUFJLEVBQUUsWUFBWSxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQztnQkFDeEMsS0FBSyxFQUFFLFlBQVk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hbmNlbCcsXHJcbiAgICAgICAgICAgICAgICBjYW5jZWxCZWhhdmlvcjogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIHRleHQ6IEFYVHJhbnNsYXRvci5nZXQoJ2NvbW1vbi5jYW5jZWwnKSxcclxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggbGlnaHQnXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICBdO1xyXG4gICAgfVxyXG5cclxuICAgIG5nT25Jbml0KCkge1xyXG4gICAgICAgIGNvbnN0IHRpdGxlUHJvcCA9IHRoaXMucHJvcHMuZmluZChjID0+IGMucHJvcGVydHkubmFtZSA9PT0gJ3RpdGxlJyB8fCBjLnByb3BlcnR5Lm5hbWUgPT09ICduYW1lJyk7XHJcbiAgICAgICAgY29uc3QgdGl0bGUgPSB0aXRsZVByb3A/LnZhbHVlIHx8IHRoaXMuY29uZmlnLnRpdGxlO1xyXG4gICAgICAgIGNvbnN0IHBwOiBhbnkgPSB7fTtcclxuICAgICAgICB0aGlzLnByb3BzPy5mb3JFYWNoKGMgPT4ge1xyXG4gICAgICAgICAgICBwcFtjLnByb3BlcnR5Lm5hbWVdID0gYy5wcm9wZXJ0eTtcclxuICAgICAgICB9KTtcclxuICAgICAgICB0aGlzLmRhdGEgPSB7XHJcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5jb25maWcuY29tcG9uZW50LFxyXG4gICAgICAgICAgICB0aXRsZSxcclxuICAgICAgICAgICAgdW5pcXVlTmFtZTogYCR7dGhpcy5jb25maWcudW5pcXVlTmFtZX0tJHtBWEh0bWxVdGlsLmdldFVJRCgpfWAsXHJcbiAgICAgICAgICAgIG9wdGlvbnM6IEFYT2JqZWN0VXRpbC5kZWVwSlNPTkNsb25lKHRoaXMuY29uZmlnLm9wdGlvbnMpLFxyXG4gICAgICAgICAgICBwcm9wczogQVhPYmplY3RVdGlsLmRlZXBKU09OQ2xvbmUocHApXHJcbiAgICAgICAgfTtcclxuICAgICAgICB0aGlzLmRpc3BsYXlQcm9wcyA9IHRoaXMucHJvcHNcclxuICAgICAgICAgICAgLmZpbHRlcihjID0+IGMucHJvcGVydHkudmlzaWJsZSAhPT0gZmFsc2UpXHJcbiAgICAgICAgICAgIC5zb3J0KChhLCBiKSA9PiBhLnByb3BlcnR5Lm9yZGVyIC0gYi5wcm9wZXJ0eS5vcmRlcilcclxuICAgICAgICAgICAgLm1hcChjID0+ICh7XHJcbiAgICAgICAgICAgICAgICBuYW1lOiBjLnByb3BlcnR5Lm5hbWUsXHJcbiAgICAgICAgICAgICAgICB0aXRsZTogYy5wcm9wZXJ0eS50aXRsZSxcclxuICAgICAgICAgICAgICAgIGFsbG93OiB0cnVlXHJcbiAgICAgICAgICAgIH0pKTtcclxuICAgIH1cclxuXHJcblxyXG5cclxuICAgIG9uRm9vdGVyQnV0dG9uQ2xpY2soZTogQVhNZW51SXRlbUNsaWNrRXZlbnQpIHtcclxuICAgICAgICBpZiAoZS5uYW1lID09PSAnY2FuY2VsJykge1xyXG4gICAgICAgICAgICB0aGlzLmNsb3NlKCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChlLm5hbWUgPT09ICdva2F5Jykge1xyXG4gICAgICAgICAgICB0aGlzLnByb3BzLmZvckVhY2gocCA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBwcCA9IHRoaXMuZGlzcGxheVByb3BzLmZpbmQoYyA9PiBjLm5hbWUgPT09IHAucHJvcGVydHkubmFtZSk7XHJcbiAgICAgICAgICAgICAgICBpZiAocHAgPT0gbnVsbCB8fCAhcHAuYWxsb3cpIHtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgcHBwID0gdGhpcy5kYXRhLnByb3BzW3AucHJvcGVydHkubmFtZV07XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHBwcCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBwcHAudmlzaWJsZSA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcHBwID0geyB2aXNpYmxlOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIHRoaXMuY2xvc2UodGhpcy5kYXRhKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn0iLCI8YXgtcGFnZT5cclxuICAgIDxheC1wYWdlLWNvbnRlbnQ+XHJcbiAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRhaW5lclwiPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCI+XHJcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLTEyXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPGF4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udGl0bGUnIHwgdHJhbnN9fTwvYXgtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC10ZXh0LWJveCBbKHZhbHVlKV09XCJkYXRhLnRpdGxlXCI+PC9heC10ZXh0LWJveD5cclxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cclxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWxhYmVsPnt7J2NvbW1vbi5kZXNjcmlwdGlvbicgfCB0cmFuc319PC9heC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LXRleHQtYXJlYSBbKHZhbHVlKV09XCJkYXRhLmRlc2NyaXB0aW9uXCI+PC9heC10ZXh0LWFyZWE+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9heC1mb3JtLWdyb3VwPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8IS0tIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cclxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWxhYmVsPnt7J2NvbW1vbi51bmlxdWVuYW1lJyB8IHRyYW5zfX08L2F4LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtdGV4dC1ib3g+PC9heC10ZXh0LWJveD5cclxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9kaXY+IC0tPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLW1kKTttYXJnaW4tYmxvY2stc3RhcnQ6IHZhcigtLWF4LXNpemUtbWQpO1wiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxheC1maWVsZHNldCBjYXB0aW9uPVwie3snd2lkZ2V0LWJvYXJkLmNvbmZpZ3VyYWJsZS1wcm9wcycgfCB0cmFuc319XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcHJvcCBvZiBkaXNwbGF5UHJvcHNcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIiBzdHlsZT1cIm1hcmdpbi1ibG9jay1lbmQ6IHZhcigtLWF4LXNpemUtc20pXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWNoZWNrLWJveCBbKHZhbHVlKV09XCJwcm9wLmFsbG93XCIgbGFiZWw9XCJ7eyBwcm9wLnRpdGxlIHwgdHJhbnMgfX1cIj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9heC1jaGVjay1ib3g+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9heC1maWVsZHNldD5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvYXgtcGFnZS1jb250ZW50PlxyXG48L2F4LXBhZ2U+Il19
1
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
2
+ import { AXHtmlUtil, AXObjectUtil, AXTranslator } from '@acorex/core';
3
+ import { AXBasePopupPageComponent } from '@acorex/components';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components";
6
+ import * as i2 from "@angular/common";
7
+ import * as i3 from "@acorex/core";
8
+ export class AXWidgetSaveComponent extends AXBasePopupPageComponent {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.props = [];
12
+ }
13
+ getFooterButtons() {
14
+ return [
15
+ {
16
+ name: 'okay',
17
+ submitBehavior: true,
18
+ text: AXTranslator.get('common.confirm'),
19
+ style: 'ax success'
20
+ },
21
+ {
22
+ name: 'cancel',
23
+ cancelBehavior: true,
24
+ text: AXTranslator.get('common.cancel'),
25
+ style: 'ax light'
26
+ }
27
+ ];
28
+ }
29
+ ngOnInit() {
30
+ const titleProp = this.props.find(c => c.property.name === 'title' || c.property.name === 'name');
31
+ const title = titleProp?.value || this.config.title;
32
+ const pp = {};
33
+ this.props?.forEach(c => {
34
+ pp[c.property.name] = c.property;
35
+ });
36
+ this.data = {
37
+ component: this.config.component,
38
+ title,
39
+ uniqueName: `${this.config.uniqueName}-${AXHtmlUtil.getUID()}`,
40
+ options: AXObjectUtil.deepJSONClone(this.config.options),
41
+ props: AXObjectUtil.deepJSONClone(pp)
42
+ };
43
+ this.displayProps = this.props
44
+ .filter(c => c.property.visible !== false)
45
+ .sort((a, b) => a.property.order - b.property.order)
46
+ .map(c => ({
47
+ name: c.property.name,
48
+ title: c.property.title,
49
+ allow: true
50
+ }));
51
+ }
52
+ onFooterButtonClick(e) {
53
+ if (e.name === 'cancel') {
54
+ this.close();
55
+ }
56
+ if (e.name === 'okay') {
57
+ this.props.forEach(p => {
58
+ const pp = this.displayProps.find(c => c.name === p.property.name);
59
+ if (pp == null || !pp.allow) {
60
+ let ppp = this.data.props[p.property.name];
61
+ if (ppp) {
62
+ ppp.visible = false;
63
+ }
64
+ else {
65
+ ppp = { visible: false };
66
+ }
67
+ }
68
+ });
69
+ this.close(this.data);
70
+ }
71
+ }
72
+ }
73
+ AXWidgetSaveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetSaveComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
74
+ AXWidgetSaveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXWidgetSaveComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ax-page>\n <ax-page-content>\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.title' | trans}}</ax-label>\n <ax-text-box [(value)]=\"data.title\"></ax-text-box>\n </ax-form-group>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.description' | trans}}</ax-label>\n <ax-text-area [(value)]=\"data.description\"></ax-text-area>\n </ax-form-group>\n </div>\n </div>\n <!-- <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.uniquename' | trans}}</ax-label>\n <ax-text-box></ax-text-box>\n </ax-form-group>\n </div>\n </div> -->\n <div class=\"row\" style=\"margin-block-end: var(--ax-size-md);margin-block-start: var(--ax-size-md);\">\n <div class=\"col-12\">\n <ax-fieldset caption=\"{{'widget-board.configurable-props' | trans}}\">\n <div class=\"row\" *ngFor=\"let prop of displayProps\">\n <div class=\"col-12\" style=\"margin-block-end: var(--ax-size-sm)\">\n <ax-check-box [(value)]=\"prop.allow\" label=\"{{ prop.title | trans }}\">\n\n </ax-check-box>\n </div>\n </div>\n </ax-fieldset>\n </div>\n </div>\n </div>\n </ax-page-content>\n</ax-page>", components: [{ type: i1.AXPageComponent, selector: "ax-page" }, { type: i1.AXPageContentComponent, selector: "ax-page-content" }, { type: i1.AXFormGroupComponent, selector: "ax-form-group", inputs: ["size"] }, { type: i1.AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: i1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: i1.AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: i1.AXFieldsetComponent, selector: "ax-fieldset", inputs: ["size", "caption", "allowCollapse"] }, { type: i1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetSaveComponent, decorators: [{
76
+ type: Component,
77
+ args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-page>\n <ax-page-content>\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.title' | trans}}</ax-label>\n <ax-text-box [(value)]=\"data.title\"></ax-text-box>\n </ax-form-group>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.description' | trans}}</ax-label>\n <ax-text-area [(value)]=\"data.description\"></ax-text-area>\n </ax-form-group>\n </div>\n </div>\n <!-- <div class=\"row\">\n <div class=\"col-12\">\n <ax-form-group>\n <ax-label>{{'common.uniquename' | trans}}</ax-label>\n <ax-text-box></ax-text-box>\n </ax-form-group>\n </div>\n </div> -->\n <div class=\"row\" style=\"margin-block-end: var(--ax-size-md);margin-block-start: var(--ax-size-md);\">\n <div class=\"col-12\">\n <ax-fieldset caption=\"{{'widget-board.configurable-props' | trans}}\">\n <div class=\"row\" *ngFor=\"let prop of displayProps\">\n <div class=\"col-12\" style=\"margin-block-end: var(--ax-size-sm)\">\n <ax-check-box [(value)]=\"prop.allow\" label=\"{{ prop.title | trans }}\">\n\n </ax-check-box>\n </div>\n </div>\n </ax-fieldset>\n </div>\n </div>\n </div>\n </ax-page-content>\n</ax-page>" }]
78
+ }] });
79
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LXNhdmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtc2F2ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ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4gICAgcHJvcHM6IEFYUHJvcGVydHlDb25maWdbXSA9IFtdO1xuICAgIGRpc3BsYXlQcm9wczogeyBuYW1lOiBzdHJpbmcsIHRpdGxlOiBzdHJpbmcsIGFsbG93OiBib29sZWFuIH1bXTtcblxuICAgIGRhdGE6IEFYV2lkZ2V0U2F2ZUFzRGF0YTtcblxuICAgIGdldEZvb3RlckJ1dHRvbnMoKTogQVhCdXR0b25JdGVtW10ge1xuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG5hbWU6ICdva2F5JyxcbiAgICAgICAgICAgICAgICBzdWJtaXRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdjb21tb24uY29uZmlybScpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggc3VjY2VzcydcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbmFtZTogJ2NhbmNlbCcsXG4gICAgICAgICAgICAgICAgY2FuY2VsQmVoYXZpb3I6IHRydWUsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNhbmNlbCcpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggbGlnaHQnXG4gICAgICAgICAgICB9XG4gICAgICAgIF07XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIGNvbnN0IHRpdGxlUHJvcCA9IHRoaXMucHJvcHMuZmluZChjID0+IGMucHJvcGVydHkubmFtZSA9PT0gJ3RpdGxlJyB8fCBjLnByb3BlcnR5Lm5hbWUgPT09ICduYW1lJyk7XG4gICAgICAgIGNvbnN0IHRpdGxlID0gdGl0bGVQcm9wPy52YWx1ZSB8fCB0aGlzLmNvbmZpZy50aXRsZTtcbiAgICAgICAgY29uc3QgcHA6IGFueSA9IHt9O1xuICAgICAgICB0aGlzLnByb3BzPy5m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KGUubmFtZSA9PT0gJ29rYXknKSB7XG4gICAgICAgICAgICB0aGlzLnByb3BzLmZvckVhY2gocCA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgcHAgPSB0aGlzLmRpc3BsYXlQcm9wcy5maW5kKGMgPT4gYy5uYW1lID09PSBwLnByb3BlcnR5Lm5hbWUpO1xuICAgICAgICAgICAgICAgIGlmIChwcCA9PSBudWxsIHx8ICFwcC5hbGxvdykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgcHBwID0gdGhpcy5kYXRhLnByb3BzW3AucHJvcGVydHkubmFtZV07XG4gICAgICAgICAgICAgICAgICAgIGlmIChwcHApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBwcC52aXNpYmxlID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBwcHAgPSB7IHZpc2libGU6IGZhbHNlIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2UodGhpcy5kYXRhKTtcbiAgICAgICAgfVxuICAgIH1cbn0iLCI8YXgtcGFnZT5cbiAgICA8YXgtcGFnZS1jb250ZW50PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGFpbmVyXCI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udGl0bGUnIHwgdHJhbnN9fTwvYXgtbGFiZWw+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtdGV4dC1ib3ggWyh2YWx1ZSldPVwiZGF0YS50aXRsZVwiPjwvYXgtdGV4dC1ib3g+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInJvd1wiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgPGF4LWZvcm0tZ3JvdXA+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtbGFiZWw+e3snY29tbW9uLmRlc2NyaXB0aW9uJyB8IHRyYW5zfX08L2F4LWxhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LXRleHQtYXJlYSBbKHZhbHVlKV09XCJkYXRhLmRlc2NyaXB0aW9uXCI+PC9heC10ZXh0LWFyZWE+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPCEtLSA8ZGl2IGNsYXNzPVwicm93XCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udW5pcXVlbmFtZScgfCB0cmFuc319PC9heC1sYWJlbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC10ZXh0LWJveD48L2F4LXRleHQtYm94PlxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj4gLS0+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLW1kKTttYXJnaW4tYmxvY2stc3RhcnQ6IHZhcigtLWF4LXNpemUtbWQpO1wiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgPGF4LWZpZWxkc2V0IGNhcHRpb249XCJ7eyd3aWRnZXQtYm9hcmQuY29uZmlndXJhYmxlLXByb3BzJyB8IHRyYW5zfX1cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcHJvcCBvZiBkaXNwbGF5UHJvcHNcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLTEyXCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLXNtKVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YXgtY2hlY2stYm94IFsodmFsdWUpXT1cInByb3AuYWxsb3dcIiBsYWJlbD1cInt7IHByb3AudGl0bGUgfCB0cmFucyB9fVwiPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYXgtY2hlY2stYm94PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZmllbGRzZXQ+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9heC1wYWdlLWNvbnRlbnQ+XG48L2F4LXBhZ2U+Il19
@@ -1,127 +1,127 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { EventEmitter, Injectable } from '@angular/core';
3
- import { propertyEditor } from '@acorex/components';
4
- import { AXHtmlUtil, AXTranslator } from '@acorex/core';
5
- import * as i0 from "@angular/core";
6
- // @dynamic
7
- // TODO: Add Angular decorator.
8
- export class AXWidgetComponent {
9
- constructor() {
10
- this.uid = AXHtmlUtil.getUID();
11
- this.onBusyChanged = new EventEmitter();
12
- this._isBusy = true;
13
- this.refreshRate = [{
14
- id: 60000 * 5,
15
- text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')
16
- }];
17
- this.onConfiguredChanged = new EventEmitter();
18
- this.onConfiguredChanged.subscribe(() => {
19
- if (this.isConfigured === true && this.getRefreshRate()) {
20
- this.restartRefreshTimer();
21
- }
22
- else {
23
- this.stopRefreshTimer();
24
- }
25
- });
26
- }
27
- get isBusy() {
28
- return this._isBusy;
29
- }
30
- set isBusy(v) {
31
- if (v !== this._isBusy) {
32
- const eventData = {
33
- component: this,
34
- oldValue: this._isBusy,
35
- value: v
36
- };
37
- this._isBusy = v;
38
- this.onBusyChanged.emit(eventData);
39
- }
40
- }
41
- // ???
42
- getRefreshRate() {
43
- return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;
44
- }
45
- startRefreshTimer() {
46
- this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());
47
- }
48
- stopRefreshTimer() {
49
- window.clearInterval(this.intervalId);
50
- }
51
- restartRefreshTimer() {
52
- this.stopRefreshTimer();
53
- this.startRefreshTimer();
54
- }
55
- ngOnDestroy() {
56
- this.stopRefreshTimer();
57
- }
58
- redraw() {
59
- }
60
- refresh() {
61
- this.restartRefreshTimer();
62
- }
63
- get isConfigured() {
64
- return true;
65
- }
66
- setValue(name, value) {
67
- this[name] = value;
68
- this.onConfiguredChanged.emit();
69
- }
70
- getValue(name) {
71
- const val = this[name];
72
- const config = this['__meta__'].config;
73
- const runtime = config.props[name]?.runtime;
74
- if (runtime && this.provideValue) {
75
- const res = this.provideValue({
76
- name,
77
- value: val,
78
- uniqueName: config.uniqueName,
79
- options: config.options,
80
- });
81
- if (this.provideValue instanceof Promise) {
82
- return res;
83
- }
84
- else {
85
- return Promise.resolve(res);
86
- }
87
- }
88
- return Promise.resolve(val);
89
- }
90
- }
91
- AXWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
92
- AXWidgetComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent });
93
- __decorate([
94
- propertyEditor({
95
- editorClass: 'ax/editors/widget-size',
96
- title: 'common.size',
97
- visible: false,
98
- order: -99,
99
- }),
100
- __metadata("design:type", Array)
101
- ], AXWidgetComponent.prototype, "widgetSize", void 0);
102
- __decorate([
103
- propertyEditor({
104
- editorClass: 'ax/editors/select',
105
- title: 'common.refresh-rate',
106
- visible: true,
107
- order: -98,
108
- editorOptions: {
109
- items: () => {
110
- return [1, 2, 3, 5, 10, 20, 30, 60].map(c => ({
111
- id: 60000 * c,
112
- text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())
113
- }));
114
- },
115
- allowNull: false,
116
- allowSearch: false,
117
- selectionDataMode: 'value',
118
- selectionMode: 'single',
119
- valueField: 'id',
120
- }
121
- }),
122
- __metadata("design:type", Object)
123
- ], AXWidgetComponent.prototype, "refreshRate", void 0);
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent, decorators: [{
125
- type: Injectable
126
- }], ctorParameters: function () { return []; }, propDecorators: { widgetSize: [], refreshRate: [] } });
127
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFF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gICAgIGlmICh2ICE9PSB0aGlzLl9pc0J1c3kpIHtcclxuICAgICAgICAgICAgY29uc3QgZXZlbnREYXRhOiBBWFZhbHVlRXZlbnQ8Ym9vbGVhbj4gPSB7XHJcbiAgICAgICAgICAgICAgICBjb21wb25lbnQ6IHRoaXMsXHJcbiAgICAgICAgICAgICAgICBvbGRWYWx1ZTogdGhpcy5faXNCdXN5LFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6IHZcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICAgICAgdGhpcy5faXNCdXN5ID0gdjtcclxuICAgICAgICAgICAgdGhpcy5vbkJ1c3lDaGFuZ2VkLmVtaXQoZXZlbnREYXRhKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgQHByb3BlcnR5RWRpdG9yKHtcclxuICAgICAgICBlZGl0b3JDbGFzczogJ2F4L2VkaXRvcnMvd2lkZ2V0LXNpemUnLFxyXG4gICAgICAgIHRpdGxlOiAnY29tbW9uLnNpemUnLFxyXG4gICAgICAgIHZpc2libGU6IGZhbHNlLFxyXG4gICAgICAgIG9yZGVyOiAtOTksXHJcbiAgICB9KVxyXG4gICAgd2lkZ2V0U2l6ZTogbnVtYmVyW107XHJcblxyXG4gICAgQHByb3BlcnR5RWRpdG9yKHtcclxuICAgICAgICBlZGl0b3JDbGFzczogJ2F4L2VkaXRvcnMvc2VsZWN0JyxcclxuICAgICAgICB0aXRsZTogJ2NvbW1vbi5yZWZyZXNoLXJhdGUnLFxyXG4gICAgICAgIHZpc2libGU6IHRydWUsXHJcbiAgICAgICAgb3JkZXI6IC05OCxcclxuICAgICAgICBlZGl0b3JPcHRpb25zOiB7XHJcbiAgICAgICAgICAgIGl0ZW1zOiAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gWzEsIDIsIDMsIDUsIDEwLCAyMCwgMzAsIDYwXS5tYXAoYyA9PiAoe1xyXG4gICAgICAgICAgICAgICAgICAgIGlkOiA2MDAwMCAqIGMs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2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcclxuXHJcbiAgICBnZXQgaXNDb25maWd1cmVkKCk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzZXRWYWx1ZShuYW1lOiBzdHJpbmcsIHZhbHVlPzogYW55KSB7XHJcbiAgICAgICAgdGhpc1tuYW1lXSA9IHZhbHVlO1xyXG4gICAgICAgIHRoaXMub25Db25maWd1cmVkQ2hhbmdlZC5lbWl0KCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGdldFZhbHVlKG5hbWU6IHN0cmluZyk6IFByb21pc2U8YW55PiB7XHJcbiAgICAgICAgY29uc3QgdmFsID0gdGhpc1tuYW1lXTtcclxuICAgICAgICBjb25zdCBjb25maWcgPSB0aGlzWydfX21ldGFfXyddLmNvbmZpZztcclxuICAgICAgICBjb25zdCBydW50aW1lID0gY29uZmlnLnByb3BzW25hbWVdPy5ydW50aW1lO1xyXG4gICAgICAgIGlmIChydW50aW1lICYmIHRoaXMucHJvdmlkZVZhbHVlKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHJlcyA9IHRoaXMucHJvdmlkZVZhbHVlKHtcclxuICAgICAgICAgICAgICAgIG5hbWUsXHJcbiAgICAgICAgICAgICAgICB2YWx1ZTogdmFsLFxyXG4gICAgICAgICAgICAgICAgdW5pcXVlTmFtZTogY29uZmlnLnVuaXF1ZU5hbWUsXHJcbiAgICAgICAgICAgICAgICBvcHRpb25zOiBjb25maWcub3B0aW9ucyxcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIGlmICh0aGlzLnByb3ZpZGVWYWx1ZSBpbnN0YW5jZW9mIFByb21pc2UpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiByZXM7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlcyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSh2YWwpO1xyXG4gICAgfVxyXG5cclxufSJdfQ==
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { EventEmitter, Injectable } from '@angular/core';
3
+ import { propertyEditor } from '@acorex/components';
4
+ import { AXHtmlUtil, AXTranslator } from '@acorex/core';
5
+ import * as i0 from "@angular/core";
6
+ // @dynamic
7
+ // TODO: Add Angular decorator.
8
+ export class AXWidgetComponent {
9
+ constructor() {
10
+ this.uid = AXHtmlUtil.getUID();
11
+ this.onBusyChanged = new EventEmitter();
12
+ this._isBusy = true;
13
+ this.refreshRate = [{
14
+ id: 60000 * 5,
15
+ text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')
16
+ }];
17
+ this.onConfiguredChanged = new EventEmitter();
18
+ this.onConfiguredChanged.subscribe(() => {
19
+ if (this.isConfigured === true && this.getRefreshRate()) {
20
+ this.restartRefreshTimer();
21
+ }
22
+ else {
23
+ this.stopRefreshTimer();
24
+ }
25
+ });
26
+ }
27
+ get isBusy() {
28
+ return this._isBusy;
29
+ }
30
+ set isBusy(v) {
31
+ if (v !== this._isBusy) {
32
+ const eventData = {
33
+ component: this,
34
+ oldValue: this._isBusy,
35
+ value: v
36
+ };
37
+ this._isBusy = v;
38
+ this.onBusyChanged.emit(eventData);
39
+ }
40
+ }
41
+ // ???
42
+ getRefreshRate() {
43
+ return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;
44
+ }
45
+ startRefreshTimer() {
46
+ this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());
47
+ }
48
+ stopRefreshTimer() {
49
+ window.clearInterval(this.intervalId);
50
+ }
51
+ restartRefreshTimer() {
52
+ this.stopRefreshTimer();
53
+ this.startRefreshTimer();
54
+ }
55
+ ngOnDestroy() {
56
+ this.stopRefreshTimer();
57
+ }
58
+ redraw() {
59
+ }
60
+ refresh() {
61
+ this.restartRefreshTimer();
62
+ }
63
+ get isConfigured() {
64
+ return true;
65
+ }
66
+ setValue(name, value) {
67
+ this[name] = value;
68
+ this.onConfiguredChanged.emit();
69
+ }
70
+ getValue(name) {
71
+ const val = this[name];
72
+ const config = this['__meta__'].config;
73
+ const runtime = config.props[name]?.runtime;
74
+ if (runtime && this.provideValue) {
75
+ const res = this.provideValue({
76
+ name,
77
+ value: val,
78
+ uniqueName: config.uniqueName,
79
+ options: config.options,
80
+ });
81
+ if (this.provideValue instanceof Promise) {
82
+ return res;
83
+ }
84
+ else {
85
+ return Promise.resolve(res);
86
+ }
87
+ }
88
+ return Promise.resolve(val);
89
+ }
90
+ }
91
+ AXWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
92
+ AXWidgetComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent });
93
+ __decorate([
94
+ propertyEditor({
95
+ editorClass: 'ax/editors/widget-size',
96
+ title: 'common.size',
97
+ visible: false,
98
+ order: -99,
99
+ }),
100
+ __metadata("design:type", Array)
101
+ ], AXWidgetComponent.prototype, "widgetSize", void 0);
102
+ __decorate([
103
+ propertyEditor({
104
+ editorClass: 'ax/editors/select',
105
+ title: 'common.refresh-rate',
106
+ visible: true,
107
+ order: -98,
108
+ editorOptions: {
109
+ items: () => {
110
+ return [1, 2, 3, 5, 10, 20, 30, 60].map(c => ({
111
+ id: 60000 * c,
112
+ text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())
113
+ }));
114
+ },
115
+ allowNull: false,
116
+ allowSearch: false,
117
+ selectionDataMode: 'value',
118
+ selectionMode: 'single',
119
+ valueField: 'id',
120
+ }
121
+ }),
122
+ __metadata("design:type", Object)
123
+ ], AXWidgetComponent.prototype, "refreshRate", void 0);
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetComponent, decorators: [{
125
+ type: Injectable
126
+ }], ctorParameters: function () { return []; }, propDecorators: { widgetSize: [], refreshRate: [] } });
127
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBNkIsY0FBYyxFQUFlLE1BQU0sb0JBQW9CLENBQUM7QUFDNUYsT0FBTyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsTUFBTSxjQUFjLENBQUM7O0FBMEN4RCxXQUFXO0FBQ1gsK0JBQStCO0FBRS9CLE1BQU0sT0FBZ0IsaUJBQWlCO0lBOERuQztRQTVEUyxRQUFHLEdBQVcsVUFBVSxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBRzNDLGtCQUFhLEdBQXdDLElBQUksWUFBWSxFQUF5QixDQUFDO1FBRXZGLFlBQU8sR0FBWSxJQUFJLENBQUM7UUEyQ2hDLGdCQUFXLEdBQVEsQ0FBQztnQkFDaEIsRUFBRSxFQUFFLEtBQUssR0FBRyxDQUFDO2dCQUNiLElBQUksRUFBRSxZQUFZLENBQUMsR0FBRyxDQUFDLGlDQUFpQyxDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUM7YUFDaEYsQ0FBQyxDQUFDO1FBOENILHdCQUFtQixHQUF1Q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gICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUodmFsKTtcbiAgICB9XG5cbn0iXX0=
@@ -1,7 +1,7 @@
1
- export * from './lib/widget-board/widget.class';
2
- export * from './lib/widget-board/widget-board.component';
3
- export * from './lib/widget-board/widget-host.component';
4
- export * from './lib/widget-board/widget-board.module';
5
- export * from './lib/widget-board/editors/widget-size-editor/widget-size.editor';
6
- export * from './lib/widget-board/editors/widget-size-editor/widget-size.module';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLDJDQUEyQyxDQUFDO0FBQzFELGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLGtFQUFrRSxDQUFDO0FBQ2pGLGNBQWMsa0VBQWtFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LmNsYXNzJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1ib2FyZC5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWhvc3QuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1ib2FyZC5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvZWRpdG9ycy93aWRnZXQtc2l6ZS1lZGl0b3Ivd2lkZ2V0LXNpemUuZWRpdG9yJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvd2lkZ2V0LWJvYXJkL2VkaXRvcnMvd2lkZ2V0LXNpemUtZWRpdG9yL3dpZGdldC1zaXplLm1vZHVsZSc7XHJcbiJdfQ==
1
+ export * from './lib/widget-board/widget.class';
2
+ export * from './lib/widget-board/widget-board.component';
3
+ export * from './lib/widget-board/widget-host.component';
4
+ export * from './lib/widget-board/widget-board.module';
5
+ export * from './lib/widget-board/editors/widget-size-editor/widget-size.editor';
6
+ export * from './lib/widget-board/editors/widget-size-editor/widget-size.module';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLDJDQUEyQyxDQUFDO0FBQzFELGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLGtFQUFrRSxDQUFDO0FBQ2pGLGNBQWMsa0VBQWtFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LmNsYXNzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3dpZGdldC1ib2FyZC93aWRnZXQtYm9hcmQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3dpZGdldC1ib2FyZC93aWRnZXQtaG9zdC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1ib2FyZC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvd2lkZ2V0LWJvYXJkL2VkaXRvcnMvd2lkZ2V0LXNpemUtZWRpdG9yL3dpZGdldC1zaXplLmVkaXRvcic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvZWRpdG9ycy93aWRnZXQtc2l6ZS1lZGl0b3Ivd2lkZ2V0LXNpemUubW9kdWxlJztcbiJdfQ==