@acorex/layout 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/acorex-layout.d.ts +5 -0
- package/esm2020/acorex-layout.mjs +5 -0
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +46 -0
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -0
- package/esm2020/lib/widget-board/widget-board.component.mjs +441 -0
- package/esm2020/lib/widget-board/widget-board.module.mjs +111 -0
- package/esm2020/lib/widget-board/widget-config.component.mjs +82 -0
- package/esm2020/lib/widget-board/widget-host.component.mjs +290 -0
- package/esm2020/lib/widget-board/widget-save.component.mjs +79 -0
- package/esm2020/lib/widget-board/widget.class.mjs +127 -0
- package/esm2020/public-api.mjs +7 -0
- package/fesm2015/acorex-layout.mjs +1166 -0
- package/fesm2015/acorex-layout.mjs.map +1 -0
- package/fesm2020/acorex-layout.mjs +1159 -0
- package/fesm2020/acorex-layout.mjs.map +1 -0
- package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +19 -0
- package/lib/widget-board/editors/widget-size-editor/widget-size.module.d.ts +10 -0
- package/lib/widget-board/widget-board.component.d.ts +61 -0
- package/lib/widget-board/widget-board.module.d.ts +18 -0
- package/lib/widget-board/widget-config.component.d.ts +23 -0
- package/lib/widget-board/widget-host.component.d.ts +51 -0
- package/lib/widget-board/widget-save.component.d.ts +19 -0
- package/lib/widget-board/widget.class.d.ts +56 -0
- package/package.json +31 -11
- package/{src/public-api.ts → public-api.d.ts} +0 -0
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -9
- package/src/lib/widget-board/editors/widget-size-editor/widget-size.editor.html +0 -10
- package/src/lib/widget-board/editors/widget-size-editor/widget-size.editor.ts +0 -55
- package/src/lib/widget-board/editors/widget-size-editor/widget-size.module.ts +0 -19
- package/src/lib/widget-board/widget-board.component.html +0 -7
- package/src/lib/widget-board/widget-board.component.scss +0 -198
- package/src/lib/widget-board/widget-board.component.ts +0 -510
- package/src/lib/widget-board/widget-board.module.ts +0 -74
- package/src/lib/widget-board/widget-config.component.html +0 -16
- package/src/lib/widget-board/widget-config.component.ts +0 -99
- package/src/lib/widget-board/widget-host.component.html +0 -30
- package/src/lib/widget-board/widget-host.component.ts +0 -343
- package/src/lib/widget-board/widget-save.component.html +0 -43
- package/src/lib/widget-board/widget-save.component.ts +0 -88
- package/src/lib/widget-board/widget.class.ts +0 -178
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -23
- package/tsconfig.lib.prod.json +0 -6
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
@@ -0,0 +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,eyJ2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w6IFwiLi93aWRnZXQtc2F2ZS5jb21wb25lbnQuaHRtbFwiLFxyXG4gICAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcclxuICAgIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgQVhXaWRnZXRTYXZlQ29tcG9uZW50IGV4dGVuZHMgQVhCYXNlUG9wdXBQYWdlQ29tcG9uZW50IHtcclxuICAgIGNvbmZpZzogQVhXaWRnZXRDb25maWc7XHJcbiAgICBwcm9wczogQVhQcm9wZXJ0eUNvbmZpZ1tdID0gW107XHJcbiAgICBkaXNwbGF5UHJvcHM6IHsgbmFtZTogc3RyaW5nLCB0aXRsZTogc3RyaW5nLCBhbGxvdzogYm9vbGVhbiB9W107XHJcblxyXG4gICAgZGF0YTogQVhXaWRnZXRTYXZlQXNEYXRhO1xyXG5cclxuICAgIGdldEZvb3RlckJ1dHRvbnMoKTogQVhCdXR0b25JdGVtW10ge1xyXG4gICAgICAgIHJldHVybiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgIG5hbWU6ICdva2F5JyxcclxuICAgICAgICAgICAgICAgIHN1Ym1pdEJlaGF2aW9yOiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNvbmZpcm0nKSxcclxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggc3VjY2VzcydcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgbmFtZTogJ2NhbmNlbCcsXHJcbiAgICAgICAgICAgICAgICBjYW5jZWxCZWhhdmlvcjogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIHRleHQ6IEFYVHJhbnNsYXRvci5nZXQoJ2NvbW1vbi5jYW5jZWwnKSxcclxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggbGlnaHQnXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICBdO1xyXG4gICAgfVxyXG5cclxuICAgIG5nT25Jbml0KCkge1xyXG4gICAgICAgIGNvbnN0IHRpdGxlUHJvcCA9IHRoaXMucHJvcHMuZmluZChjID0+IGMucHJvcGVydHkubmFtZSA9PT0gJ3RpdGxlJyB8fCBjLnByb3BlcnR5Lm5hbWUgPT09ICduYW1lJyk7XHJcbiAgICAgICAgY29uc3QgdGl0bGUgPSB0aXRsZVByb3A/LnZhbHVlIHx8IHRoaXMuY29uZmlnLnRpdGxlO1xyXG4gICAgICAgIGNvbnN0IHBwOiBhbnkgPSB7fTtcclxuICAgICAgICB0aGlzLnByb3BzPy5mb3JFYWNoKGMgPT4ge1xyXG4gICAgICAgICAgICBwcFtjLnByb3BlcnR5Lm5hbWVdID0gYy5wcm9wZXJ0eTtcclxuICAgICAgICB9KTtcclxuICAgICAgICB0aGlzLmRhdGEgPSB7XHJcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5jb25maWcuY29tcG9uZW50LFxyXG4gICAgICAgICAgICB0aXRsZSxcclxuICAgICAgICAgICAgdW5pcXVlTmFtZTogYCR7dGhpcy5jb25maWcudW5pcXVlTmFtZX0tJHtBWEh0bWxVdGlsLmdldFVJRCgpfWAsXHJcbiAgICAgICAgICAgIG9wdGlvbnM6IEFYT2JqZWN0VXRpbC5kZWVwSlNPTkNsb25lKHRoaXMuY29uZmlnLm9wdGlvbnMpLFxyXG4gICAgICAgICAgICBwcm9wczogQVhPYmplY3RVdGlsLmRlZXBKU09OQ2xvbmUocHApXHJcbiAgICAgICAgfTtcclxuICAgICAgICB0aGlzLmRpc3BsYXlQcm9wcyA9IHRoaXMucHJvcHNcclxuICAgICAgICAgICAgLmZpbHRlcihjID0+IGMucHJvcGVydHkudmlzaWJsZSAhPT0gZmFsc2UpXHJcbiAgICAgICAgICAgIC5zb3J0KChhLCBiKSA9PiBhLnByb3BlcnR5Lm9yZGVyIC0gYi5wcm9wZXJ0eS5vcmRlcilcclxuICAgICAgICAgICAgLm1hcChjID0+ICh7XHJcbiAgICAgICAgICAgICAgICBuYW1lOiBjLnByb3BlcnR5Lm5hbWUsXHJcbiAgICAgICAgICAgICAgICB0aXRsZTogYy5wcm9wZXJ0eS50aXRsZSxcclxuICAgICAgICAgICAgICAgIGFsbG93OiB0cnVlXHJcbiAgICAgICAgICAgIH0pKTtcclxuICAgIH1cclxuXHJcblxyXG5cclxuICAgIG9uRm9vdGVyQnV0dG9uQ2xpY2soZTogQVhNZW51SXRlbUNsaWNrRXZlbnQpIHtcclxuICAgICAgICBpZiAoZS5uYW1lID09PSAnY2FuY2VsJykge1xyXG4gICAgICAgICAgICB0aGlzLmNsb3NlKCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChlLm5hbWUgPT09ICdva2F5Jykge1xyXG4gICAgICAgICAgICB0aGlzLnByb3BzLmZvckVhY2gocCA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBwcCA9IHRoaXMuZGlzcGxheVByb3BzLmZpbmQoYyA9PiBjLm5hbWUgPT09IHAucHJvcGVydHkubmFtZSk7XHJcbiAgICAgICAgICAgICAgICBpZiAocHAgPT0gbnVsbCB8fCAhcHAuYWxsb3cpIHtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgcHBwID0gdGhpcy5kYXRhLnByb3BzW3AucHJvcGVydHkubmFtZV07XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHBwcCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBwcHAudmlzaWJsZSA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcHBwID0geyB2aXNpYmxlOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIHRoaXMuY2xvc2UodGhpcy5kYXRhKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn0iLCI8YXgtcGFnZT5cclxuICAgIDxheC1wYWdlLWNvbnRlbnQ+XHJcbiAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRhaW5lclwiPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCI+XHJcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLTEyXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPGF4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udGl0bGUnIHwgdHJhbnN9fTwvYXgtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC10ZXh0LWJveCBbKHZhbHVlKV09XCJkYXRhLnRpdGxlXCI+PC9heC10ZXh0LWJveD5cclxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cclxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWxhYmVsPnt7J2NvbW1vbi5kZXNjcmlwdGlvbicgfCB0cmFuc319PC9heC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LXRleHQtYXJlYSBbKHZhbHVlKV09XCJkYXRhLmRlc2NyaXB0aW9uXCI+PC9heC10ZXh0LWFyZWE+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9heC1mb3JtLWdyb3VwPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8IS0tIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cclxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWxhYmVsPnt7J2NvbW1vbi51bmlxdWVuYW1lJyB8IHRyYW5zfX08L2F4LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtdGV4dC1ib3g+PC9heC10ZXh0LWJveD5cclxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9kaXY+IC0tPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLW1kKTttYXJnaW4tYmxvY2stc3RhcnQ6IHZhcigtLWF4LXNpemUtbWQpO1wiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxheC1maWVsZHNldCBjYXB0aW9uPVwie3snd2lkZ2V0LWJvYXJkLmNvbmZpZ3VyYWJsZS1wcm9wcycgfCB0cmFuc319XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcHJvcCBvZiBkaXNwbGF5UHJvcHNcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIiBzdHlsZT1cIm1hcmdpbi1ibG9jay1lbmQ6IHZhcigtLWF4LXNpemUtc20pXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGF4LWNoZWNrLWJveCBbKHZhbHVlKV09XCJwcm9wLmFsbG93XCIgbGFiZWw9XCJ7eyBwcm9wLnRpdGxlIHwgdHJhbnMgfX1cIj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9heC1jaGVjay1ib3g+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9heC1maWVsZHNldD5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvYXgtcGFnZS1jb250ZW50PlxyXG48L2F4LXBhZ2U+Il19
|
@@ -0,0 +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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZX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hpcy5faXNCdXN5O1xyXG4gICAgfVxyXG4gICAgcHVibGljIHNldCBpc0J1c3kodjogYm9vbGVhbikge1xyXG4gICAgICAgIGlmICh2ICE9PSB0aGlzLl9pc0J1c3kpIHtcclxuICAgICAgICAgICAgY29uc3QgZXZlbnREYXRhOiBBWFZhbHVlRXZlbnQ8Ym9vbGVhbj4gPSB7XHJcbiAgICAgICAgICAgICAgICBjb21wb25lbnQ6IHRoaXMsXHJcbiAgICAgICAgICAgICAgICBvbGRWYWx1ZTogdGhpcy5faXNCdXN5LFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6IHZcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICAgICAgdGhpcy5faXNCdXN5ID0gdjtcclxuICAgICAgICAgICAgdGhpcy5vbkJ1c3lDaGFuZ2VkLmVtaXQoZXZlbnREYXRhKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgQHByb3BlcnR5RWRpdG9yKHtcclxuICAgICAgICBlZGl0b3JDbGFzczogJ2F4L2VkaXRvcnMvd2lkZ2V0LXNpemUnLFxyXG4gICAgICAgIHRpdGxlOiAnY29tbW9uLnNpemUnLFxyXG4gICAgICAgIHZpc2libGU6IGZhbHNlLFxyXG4gICAgICAgIG9yZGVyOiAtOTksXHJcbiAgICB9KVxyXG4gICAgd2lkZ2V0U2l6ZTogbnVtYmVyW107XHJcblxyXG4gICAgQHByb3BlcnR5RWRpdG9yKHtcclxuICAgICAgICBlZGl0b3JDbGFzczogJ2F4L2VkaXRvcnMvc2VsZWN0JyxcclxuICAgICAgICB0aXRsZTogJ2NvbW1vbi5yZWZyZXNoLXJhdGUnLFxyXG4gICAgICAgIHZpc2libGU6IHRydWUsXHJcbiAgICAgICAgb3JkZXI6IC05OCxcclxuICAgICAgICBlZGl0b3JPcHRpb25zOiB7XHJcbiAgICAgICAgICAgIGl0ZW1zOiAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gWzEsIDIsIDMsIDUsIDEw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1lcigpO1xyXG4gICAgfVxyXG5cclxuICAgIG9uQ29uZmlndXJlZENoYW5nZWQ6IEV2ZW50RW1pdHRlcjx2b2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcclxuXHJcbiAgICBnZXQgaXNDb25maWd1cmVkKCk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzZXRWYWx1ZShuYW1lOiBzdHJpbmcsIHZhbHVlPzogYW55KSB7XHJcbiAgICAgICAgdGhpc1tuYW1lXSA9IHZhbHVlO1xyXG4gICAgICAgIHRoaXMub25Db25maWd1cmVkQ2hhbmdlZC5lbWl0KCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGdldFZhbHVlKG5hbWU6IHN0cmluZyk6IFByb21pc2U8YW55PiB7XHJcbiAgICAgICAgY29uc3QgdmFsID0gdGhpc1tuYW1lXTtcclxuICAgICAgICBjb25zdCBjb25maWcgPSB0aGlzWydfX21ldGFfXyddLmNvbmZpZztcclxuICAgICAgICBjb25zdCBydW50aW1lID0gY29uZmlnLnByb3BzW25hbWVdPy5ydW50aW1lO1xyXG4gICAgICAgIGlmIChydW50aW1lICYmIHRoaXMucHJvdmlkZVZhbHVlKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHJlcyA9IHRoaXMucHJvdmlkZVZhbHVlKHtcclxuICAgICAgICAgICAgICAgIG5hbWUsXHJcbiAgICAgICAgICAgICAgICB2YWx1ZTogdmFsLFxyXG4gICAgICAgICAgICAgICAgdW5pcXVlTmFtZTogY29uZmlnLnVuaXF1ZU5hbWUsXHJcbiAgICAgICAgICAgICAgICBvcHRpb25zOiBjb25maWcub3B0aW9ucyxcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIGlmICh0aGlzLnByb3ZpZGVWYWx1ZSBpbnN0YW5jZW9mIFByb21pc2UpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiByZXM7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlcyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSh2YWwpO1xyXG4gICAgfVxyXG5cclxufSJdfQ==
|
@@ -0,0 +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==
|