@acorex/layout 6.5.71 → 6.5.72
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -2
- package/esm2022/acorex-layout.mjs +5 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +49 -0
- package/esm2022/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -0
- package/esm2022/lib/widget-board/widget-board.component.mjs +452 -0
- package/esm2022/lib/widget-board/widget-board.module.mjs +109 -0
- package/esm2022/lib/widget-board/widget-config.component.mjs +85 -0
- package/esm2022/lib/widget-board/widget-host.component.mjs +311 -0
- package/esm2022/lib/widget-board/widget-save.component.mjs +79 -0
- package/esm2022/lib/widget-board/widget.class.mjs +130 -0
- package/{fesm2020 → fesm2022}/acorex-layout.mjs +158 -127
- package/fesm2022/acorex-layout.mjs.map +1 -0
- package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +1 -1
- package/lib/widget-board/widget-board.component.d.ts +1 -1
- package/lib/widget-board/widget-config.component.d.ts +1 -1
- package/lib/widget-board/widget-host.component.d.ts +1 -1
- package/lib/widget-board/widget-save.component.d.ts +1 -1
- package/package.json +12 -18
- package/acorex-layout.d.ts +0 -5
- package/esm2020/acorex-layout.mjs +0 -5
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +0 -46
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +0 -21
- package/esm2020/lib/widget-board/widget-board.component.mjs +0 -444
- package/esm2020/lib/widget-board/widget-board.module.mjs +0 -111
- package/esm2020/lib/widget-board/widget-config.component.mjs +0 -82
- package/esm2020/lib/widget-board/widget-host.component.mjs +0 -295
- package/esm2020/lib/widget-board/widget-save.component.mjs +0 -79
- package/esm2020/lib/widget-board/widget.class.mjs +0 -127
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/acorex-layout.mjs +0 -1175
- package/fesm2015/acorex-layout.mjs.map +0 -1
- package/fesm2020/acorex-layout.mjs.map +0 -1
- /package/{public-api.d.ts → index.d.ts} +0 -0
@@ -1,79 +0,0 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LXNhdmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtc2F2ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1zYXZlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLHVCQUF1QixHQUUxQixNQUFNLGVBQWUsQ0FBQzt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FzRGF0YTtcblxuICAgIGdldEZvb3RlckJ1dHRvbnMoKTogQVhCdXR0b25JdGVtW10ge1xuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG5hbWU6ICdva2F5JyxcbiAgICAgICAgICAgICAgICBzdWJtaXRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdjb21tb24uY29uZmlybScpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggc3VjY2VzcydcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbmFtZTogJ2NhbmNlbCcsXG4gICAgICAgICAgICAgICAgY2FuY2VsQmVoYXZpb3I6IHRydWUsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNhbmNlbCcpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnYXggbGlnaHQnXG4gICAgICAgICAgICB9XG4gICAgICAgIF07XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIGNvbnN0IHRpdGxlUHJvcCA9IHRoaXMucHJvcHMuZmluZChjID0+IGMucHJvcGVydHkubmFtZSA9PT0gJ3RpdGxlJyB8fCBjLnByb3BlcnR5Lm5hbWUgPT09ICduYW1lJyk7XG4gICAgICAgIGNvbnN0IHRpdGxlID0gdGl0bGVQcm9wPy52YWx1ZSB8fCB0aGlzLmNvbmZpZy50aXRsZTtcbiAgICAgICAgY29uc3QgcHA6IGFueSA9IHt9O1xuICAgICAgICB0aGlzLnByb3BzPy5mb3JFYWNoKGMgPT4ge1xuICAgICAgICAgICAgcHBbYy5wcm9wZXJ0eS5uYW1lXSA9IGMucHJvcGVydHk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLmRhdGEgPSB7XG4gICAgICAgICAgICBjb21wb25lbnQ6IHRoaXMuY29uZmlnLmNvbX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lm5hbWUpO1xuICAgICAgICAgICAgICAgIGlmIChwcCA9PSBudWxsIHx8ICFwcC5hbGxvdykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgcHBwID0gdGhpcy5kYXRhLnByb3BzW3AucHJvcGVydHkubmFtZV07XG4gICAgICAgICAgICAgICAgICAgIGlmIChwcHApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBwcC52aXNpYmxlID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBwcHAgPSB7IHZpc2libGU6IGZhbHNlIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2UodGhpcy5kYXRhKTtcbiAgICAgICAgfVxuICAgIH1cbn0iLCI8YXgtcGFnZT5cbiAgICA8YXgtcGFnZS1jb250ZW50PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGFpbmVyXCI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udGl0bGUnIHwgdHJhbnN9fTwvYXgtbGFiZWw+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtdGV4dC1ib3ggWyh2YWx1ZSldPVwiZGF0YS50aXRsZVwiPjwvYXgtdGV4dC1ib3g+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInJvd1wiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgPGF4LWZvcm0tZ3JvdXA+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YXgtbGFiZWw+e3snY29tbW9uLmRlc2NyaXB0aW9uJyB8IHRyYW5zfX08L2F4LWxhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGF4LXRleHQtYXJlYSBbKHZhbHVlKV09XCJkYXRhLmRlc2NyaXB0aW9uXCI+PC9heC10ZXh0LWFyZWE+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPCEtLSA8ZGl2IGNsYXNzPVwicm93XCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMlwiPlxuICAgICAgICAgICAgICAgICAgICA8YXgtZm9ybS1ncm91cD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57eydjb21tb24udW5pcXVlbmFtZScgfCB0cmFuc319PC9heC1sYWJlbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC10ZXh0LWJveD48L2F4LXRleHQtYm94PlxuICAgICAgICAgICAgICAgICAgICA8L2F4LWZvcm0tZ3JvdXA+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj4gLS0+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicm93XCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLW1kKTttYXJnaW4tYmxvY2stc3RhcnQ6IHZhcigtLWF4LXNpemUtbWQpO1wiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgPGF4LWZpZWxkc2V0IGNhcHRpb249XCJ7eyd3aWRnZXQtYm9hcmQuY29uZmlndXJhYmxlLXByb3BzJyB8IHRyYW5zfX1cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcHJvcCBvZiBkaXNwbGF5UHJvcHNcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLTEyXCIgc3R5bGU9XCJtYXJnaW4tYmxvY2stZW5kOiB2YXIoLS1heC1zaXplLXNtKVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YXgtY2hlY2stYm94IFsodmFsdWUpXT1cInByb3AuYWxsb3dcIiBsYWJlbD1cInt7IHByb3AudGl0bGUgfCB0cmFucyB9fVwiPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYXgtY2hlY2stYm94PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvYXgtZmllbGRzZXQ+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9heC1wYWdlLWNvbnRlbnQ+XG48L2F4LXBhZ2U+Il19
|
@@ -1,127 +0,0 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBNkIsY0FBYyxFQUFlLE1BQU0sb0JBQW9CLENBQUM7QUFDNUYsT0FBTyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsTUFBTSxjQUFjLENBQUM7O0FBMEN4RCxXQUFXO0FBQ1gsK0JBQStCO0FBRS9CLE1BQU0sT0FBZ0IsaUJBQWlCO0lBOERuQztRQTVEUyxRQUFHLEdBQVcsVUFBVSxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBRzNDLGtCQUFhLEdBQXdDLElBQUksWUFBWSxFQUF5QixDQUFDO1FBRXZGLFlBQU8sR0FBWSxJQUFJLENBQUM7UUEyQ2hDLGdCQUFXLEdBQVEsQ0FBQztnQkFDaEIsRUFBRSxFQUFFLEtBQUssR0FBRyxDQUFDO2dCQUNiLElBQUksRUFBRSxZQUFZLENBQUMsR0FBRyxDQUFDLGlDQUFpQyxDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUM7YUFDaEYsQ0FBQyxDQ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mVzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUodmFsKTtcbiAgICB9XG5cbn0iXX0=
|
package/esm2020/public-api.mjs
DELETED
@@ -1,7 +0,0 @@
|
|
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==
|