@acorex/layout 3.0.65 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/acorex-layout.d.ts +1 -2
- 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 +3 -0
- package/lib/widget-board/editors/widget-size-editor/widget-size.module.d.ts +8 -0
- package/lib/widget-board/widget-board.component.d.ts +3 -0
- package/lib/widget-board/widget-board.module.d.ts +12 -0
- package/lib/widget-board/widget-config.component.d.ts +3 -0
- package/lib/widget-board/widget-host.component.d.ts +3 -0
- package/lib/widget-board/widget-save.component.d.ts +3 -0
- package/lib/widget-board/widget.class.d.ts +3 -0
- package/package.json +23 -13
- package/acorex-layout.metadata.json +0 -1
- package/bundles/acorex-layout.umd.js +0 -1487
- package/bundles/acorex-layout.umd.js.map +0 -1
- package/bundles/acorex-layout.umd.min.js +0 -16
- package/bundles/acorex-layout.umd.min.js.map +0 -1
- package/esm2015/acorex-layout.js +0 -7
- package/esm2015/lib/widget-board/editors/widget-size-editor/widget-size.editor.js +0 -49
- package/esm2015/lib/widget-board/editors/widget-size-editor/widget-size.module.js +0 -19
- package/esm2015/lib/widget-board/widget-board.component.js +0 -468
- package/esm2015/lib/widget-board/widget-board.module.js +0 -67
- package/esm2015/lib/widget-board/widget-config.component.js +0 -86
- package/esm2015/lib/widget-board/widget-host.component.js +0 -323
- package/esm2015/lib/widget-board/widget-save.component.js +0 -79
- package/esm2015/lib/widget-board/widget.class.js +0 -123
- package/esm2015/public-api.js +0 -7
- package/esm5/acorex-layout.js +0 -7
- package/esm5/lib/widget-board/editors/widget-size-editor/widget-size.editor.js +0 -52
- package/esm5/lib/widget-board/editors/widget-size-editor/widget-size.module.js +0 -22
- package/esm5/lib/widget-board/widget-board.component.js +0 -494
- package/esm5/lib/widget-board/widget-board.module.js +0 -68
- package/esm5/lib/widget-board/widget-config.component.js +0 -90
- package/esm5/lib/widget-board/widget-host.component.js +0 -359
- package/esm5/lib/widget-board/widget-save.component.js +0 -83
- package/esm5/lib/widget-board/widget.class.js +0 -134
- package/esm5/public-api.js +0 -7
- package/fesm2015/acorex-layout.js +0 -1177
- package/fesm2015/acorex-layout.js.map +0 -1
- package/fesm5/acorex-layout.js +0 -1264
- package/fesm5/acorex-layout.js.map +0 -1
@@ -1,123 +0,0 @@
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
2
|
-
import { EventEmitter } from '@angular/core';
|
3
|
-
import { propertyEditor } from '@acorex/components';
|
4
|
-
import { AXHtmlUtil, AXTranslator } from '@acorex/core';
|
5
|
-
const ɵ0 = () => {
|
6
|
-
return [1, 2, 3, 5, 10, 20, 30, 60].map(c => ({
|
7
|
-
id: 60000 * c,
|
8
|
-
text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())
|
9
|
-
}));
|
10
|
-
};
|
11
|
-
// @dynamic
|
12
|
-
export class AXWidgetComponent {
|
13
|
-
constructor() {
|
14
|
-
this.uid = AXHtmlUtil.getUID();
|
15
|
-
this.onBusyChanged = new EventEmitter();
|
16
|
-
this._isBusy = true;
|
17
|
-
this.refreshRate = [{
|
18
|
-
id: 60000 * 5,
|
19
|
-
text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')
|
20
|
-
}];
|
21
|
-
this.onConfiguredChanged = new EventEmitter();
|
22
|
-
this.onConfiguredChanged.subscribe(() => {
|
23
|
-
if (this.isConfigured === true && this.getRefreshRate()) {
|
24
|
-
this.restartRefreshTimer();
|
25
|
-
}
|
26
|
-
else {
|
27
|
-
this.stopRefreshTimer();
|
28
|
-
}
|
29
|
-
});
|
30
|
-
}
|
31
|
-
get isBusy() {
|
32
|
-
return this._isBusy;
|
33
|
-
}
|
34
|
-
set isBusy(v) {
|
35
|
-
if (v !== this._isBusy) {
|
36
|
-
const eventData = {
|
37
|
-
component: this,
|
38
|
-
oldValue: this._isBusy,
|
39
|
-
value: v
|
40
|
-
};
|
41
|
-
this._isBusy = v;
|
42
|
-
this.onBusyChanged.emit(eventData);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
// ???
|
46
|
-
getRefreshRate() {
|
47
|
-
return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;
|
48
|
-
}
|
49
|
-
startRefreshTimer() {
|
50
|
-
this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());
|
51
|
-
}
|
52
|
-
stopRefreshTimer() {
|
53
|
-
window.clearInterval(this.intervalId);
|
54
|
-
}
|
55
|
-
restartRefreshTimer() {
|
56
|
-
this.stopRefreshTimer();
|
57
|
-
this.startRefreshTimer();
|
58
|
-
}
|
59
|
-
ngOnDestroy() {
|
60
|
-
this.stopRefreshTimer();
|
61
|
-
}
|
62
|
-
redraw() {
|
63
|
-
}
|
64
|
-
refresh() {
|
65
|
-
this.restartRefreshTimer();
|
66
|
-
}
|
67
|
-
get isConfigured() {
|
68
|
-
return true;
|
69
|
-
}
|
70
|
-
setValue(name, value) {
|
71
|
-
this[name] = value;
|
72
|
-
this.onConfiguredChanged.emit();
|
73
|
-
}
|
74
|
-
getValue(name) {
|
75
|
-
var _a;
|
76
|
-
const val = this[name];
|
77
|
-
const config = this['__meta__'].config;
|
78
|
-
const runtime = (_a = config.props[name]) === null || _a === void 0 ? void 0 : _a.runtime;
|
79
|
-
if (runtime && this.provideValue) {
|
80
|
-
const res = this.provideValue({
|
81
|
-
name,
|
82
|
-
value: val,
|
83
|
-
uniqueName: config.uniqueName,
|
84
|
-
options: config.options,
|
85
|
-
});
|
86
|
-
if (this.provideValue instanceof Promise) {
|
87
|
-
return res;
|
88
|
-
}
|
89
|
-
else {
|
90
|
-
return Promise.resolve(res);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
return Promise.resolve(val);
|
94
|
-
}
|
95
|
-
}
|
96
|
-
__decorate([
|
97
|
-
propertyEditor({
|
98
|
-
editorClass: 'ax/editors/widget-size',
|
99
|
-
title: 'common.size',
|
100
|
-
visible: false,
|
101
|
-
order: -99,
|
102
|
-
}),
|
103
|
-
__metadata("design:type", Array)
|
104
|
-
], AXWidgetComponent.prototype, "widgetSize", void 0);
|
105
|
-
__decorate([
|
106
|
-
propertyEditor({
|
107
|
-
editorClass: 'ax/editors/select',
|
108
|
-
title: 'common.refresh-rate',
|
109
|
-
visible: true,
|
110
|
-
order: -98,
|
111
|
-
editorOptions: {
|
112
|
-
items: ɵ0,
|
113
|
-
allowNull: false,
|
114
|
-
allowSearch: false,
|
115
|
-
selectionDataMode: 'value',
|
116
|
-
selectionMode: 'single',
|
117
|
-
valueField: 'id',
|
118
|
-
}
|
119
|
-
}),
|
120
|
-
__metadata("design:type", Object)
|
121
|
-
], AXWidgetComponent.prototype, "refreshRate", void 0);
|
122
|
-
export { ɵ0 };
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0LWJvYXJkL3dpZGdldC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG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gPSB2O1xyXG4gICAgICAgICAgICB0aGlzLm9uQnVzeUNoYW5nZWQuZW1pdChldmVudERhdGEpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBAcHJvcGVydHlFZGl0b3Ioe1xyXG4gICAgICAgIGVkaXRvckNsYXNzOiAnYXgvZWRpdG9ycy93aWRnZXQtc2l6ZScsXHJcbiAgICAgICAgdGl0bGU6ICdjb21tb24uc2l6ZScsXHJcbiAgICAgICAgdmlzaWJsZTogZmFsc2UsXHJcbiAgICAgICAgb3JkZXI6IC05OSxcclxuICAgIH0pXHJcbiAgICB3aWRnZXRTaXplOiBudW1iZXJbXTtcclxuXHJcbiAgICBAcHJvcGVydHlFZGl0b3Ioe1xyXG4gICAgICAgIGVkaXRvckNsYXNzOiAnYXgvZWRpdG9ycy9zZWxlY3QnLFxyXG4gICAgICAgIHRpdGxlOiAnY29tbW9uLnJlZnJlc2gtcmF0ZScsXHJcbiAgICAgICAgdmlzaWJsZTogdHJ1ZSxcclxuICAgICAgICBvcmRlcjogLTk4LFxyXG4gICAgICAgIGVkaXRvck9wdGlvbnM6IHtcclxuICAgICAgICAgICAgaXRlbXM6ICgpID0+IHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBbMSwgMiwgMywgNSwgMTAsIDIwLCAzMCwgNjBdLm1hcChjID0+ICh7XHJcbiAgICAgICAgICAgICAgICAgICAgaWQ6IDYwMDAwICogYyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdkYXRlVGltZS5kdXJhdGlvbi5mb3JtYXRfbWludXRlJykucmVwbGFjZSgnezB9JywgYy50b1N0cmluZygpKVxyXG4gICAgICAgICAgICAgICAgfSkpO1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBhbGxvd051bGw6IGZhbHNlLFxyXG4gICAgICAgICAgICBhbGxvd1NlYXJjaDogZmFsc2UsXHJcbiAgICAgICAgICAgIHNlbGVjdGlvbkRh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cclxuXHJcbiAgICBwdWJsaWMgZ2V0VmFsdWUobmFtZTogc3RyaW5nKTogUHJvbWlzZTxhbnk+IHtcclxuICAgICAgICBjb25zdCB2YWwgPSB0aGlzW25hbWVdO1xyXG4gICAgICAgIGNvbnN0IGNvbmZpZyA9IHRoaXNbJ19fbWV0YV9fJ10uY29uZmlnO1xyXG4gICAgICAgIGNvbnN0IHJ1bnRpbWUgPSBjb25maWcucHJvcHNbbmFtZV0/LnJ1bnRpbWU7XHJcbiAgICAgICAgaWYgKHJ1bnRpbWUgJiYgdGhpcy5wcm92aWRlVmFsdWUpIHtcclxuICAgICAgICAgICAgY29uc3QgcmVzID0gdGhpcy5wcm92aWRlVmFsdWUoe1xyXG4gICAgICAgICAgICAgICAgbmFtZSxcclxuICAgICAgICAgICAgICAgIHZhbHVlOiB2YWwsXHJcbiAgICAgICAgICAgICAgICB1bmlxdWVOYW1lOiBjb25maWcudW5pcXVlTmFtZSxcclxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IGNvbmZpZy5vcHRpb25zLFxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgaWYgKHRoaXMucHJvdmlkZVZhbHVlIGluc3RhbmNlb2YgUHJvbWlzZSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlcztcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHZhbCk7XHJcbiAgICB9XHJcblxyXG59Il19
|
package/esm2015/public-api.js
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsa0VBQWtFLENBQUM7QUFDakYsY0FBYyxrRUFBa0UsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL3dpZGdldC1ib2FyZC93aWRnZXQuY2xhc3MnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWJvYXJkLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3dpZGdldC1ib2FyZC93aWRnZXQtaG9zdC5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWJvYXJkLm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3dpZGdldC1ib2FyZC9lZGl0b3JzL3dpZGdldC1zaXplLWVkaXRvci93aWRnZXQtc2l6ZS5lZGl0b3InO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvZWRpdG9ycy93aWRnZXQtc2l6ZS1lZGl0b3Ivd2lkZ2V0LXNpemUubW9kdWxlJztcclxuIl19
|
package/esm5/acorex-layout.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public-api';
|
5
|
-
export { AXWidgetConfigComponent as ɵa } from './lib/widget-board/widget-config.component';
|
6
|
-
export { AXWidgetSaveComponent as ɵb } from './lib/widget-board/widget-save.component';
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWxheW91dC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvbGF5b3V0LyIsInNvdXJjZXMiOlsiYWNvcmV4LWxheW91dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyx1QkFBdUIsSUFBSSxFQUFFLEVBQUMsTUFBTSw0Q0FBNEMsQ0FBQztBQUN6RixPQUFPLEVBQUMscUJBQXFCLElBQUksRUFBRSxFQUFDLE1BQU0sMENBQTBDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7QVhXaWRnZXRDb25maWdDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWNvbmZpZy5jb21wb25lbnQnO1xuZXhwb3J0IHtBWFdpZGdldFNhdmVDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LXNhdmUuY29tcG9uZW50JzsiXX0=
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
2
|
-
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
|
3
|
-
import { AXProperyEditorComponent } from '@acorex/components';
|
4
|
-
var AXWidgetSizePropertyEditorComponent = /** @class */ (function (_super) {
|
5
|
-
__extends(AXWidgetSizePropertyEditorComponent, _super);
|
6
|
-
function AXWidgetSizePropertyEditorComponent(cdr) {
|
7
|
-
var _this = _super.call(this, cdr) || this;
|
8
|
-
_this.cdr = cdr;
|
9
|
-
_this.minX = 1;
|
10
|
-
_this.maxX = 10;
|
11
|
-
_this.minY = 1;
|
12
|
-
_this.maxY = 10;
|
13
|
-
return _this;
|
14
|
-
}
|
15
|
-
AXWidgetSizePropertyEditorComponent.prototype.ngOnInit = function () {
|
16
|
-
if (Array.isArray(this.value)) {
|
17
|
-
this.sizeX = this.value[0];
|
18
|
-
this.sizeY = this.value[1];
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
this.sizeX = 2;
|
22
|
-
this.sizeY = 2;
|
23
|
-
}
|
24
|
-
};
|
25
|
-
AXWidgetSizePropertyEditorComponent.prototype.handleMinValueChange = function (e) {
|
26
|
-
this.sizeX = e.value;
|
27
|
-
if (this.sizeY > 0) {
|
28
|
-
_super.prototype.handleValueChange.call(this, [this.sizeX, this.sizeY]);
|
29
|
-
}
|
30
|
-
};
|
31
|
-
AXWidgetSizePropertyEditorComponent.prototype.handleMaxValueChange = function (e) {
|
32
|
-
this.sizeY = e.value;
|
33
|
-
if (this.sizeX > 0) {
|
34
|
-
_super.prototype.handleValueChange.call(this, [this.sizeX, this.sizeY]);
|
35
|
-
}
|
36
|
-
};
|
37
|
-
AXWidgetSizePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
38
|
-
this.onRenderCompleted.emit();
|
39
|
-
};
|
40
|
-
AXWidgetSizePropertyEditorComponent.ctorParameters = function () { return [
|
41
|
-
{ type: ChangeDetectorRef }
|
42
|
-
]; };
|
43
|
-
AXWidgetSizePropertyEditorComponent = __decorate([
|
44
|
-
Component({
|
45
|
-
template: "<div style=\"display: flex;\">\r\n <div style=\"margin-inline-end: 0.5em;flex: calc(50% - 0.25em);\">\r\n <ax-number-box (onValueChanged)=\"handleMinValueChange($event)\" [value]=\"sizeX\" [min]=\"minX\" [max]=\"maxX\">\r\n </ax-number-box>\r\n </div>\r\n <div style=\"flex: calc(50% - 0.25em);\">\r\n <ax-number-box (onValueChanged)=\"handleMaxValueChange($event)\" [value]=\"sizeY\" [min]=\"minY\" [max]=\"maxY\">\r\n </ax-number-box>\r\n </div>\r\n</div>"
|
46
|
-
}),
|
47
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
48
|
-
], AXWidgetSizePropertyEditorComponent);
|
49
|
-
return AXWidgetSizePropertyEditorComponent;
|
50
|
-
}(AXProperyEditorComponent));
|
51
|
-
export { AXWidgetSizePropertyEditorComponent };
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LXNpemUuZWRpdG9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0LWJvYXJkL2VkaXRvcnMvd2lkZ2V0LXNpemUtZWRpdG9yL3dpZGdldC1zaXplLmVkaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFLOUQ7SUFBeUQsdURBQWtDO0lBWXZGLDZDQUFzQixHQUFzQjtRQUE1QyxZQUNJLGtCQUFNLEdBQUcsQ0FBQyxTQUNiO1FBRnFCLFNBQUcsR0FBSCxHQUFHLENBQW1CO1FBUDVDLFVBQUksR0FBVyxDQUFDLENBQUM7UUFDakIsVUFBSSxHQUFXLEVBQUUsQ0FBQztRQUVsQixVQUFJLEdBQVcsQ0FBQyxDQUFDO1FBQ2pCLFVBQUksR0FBVyxFQUFFLENBQUM7O0lBS2xCLENBQUM7SUFFRCxzREFBUSxHQUFSO1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dO1xyXG4gICAgICAgICAgICB0aGlzLnNpemVZID0gdGhpcy52YWx1ZVsxXTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMuc2l6ZVggPSAyO1xyXG4gICAgICAgICAgICB0aGlzLnNpemVZID0gMjtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgaGFuZGxlTWluVmFsdWVDaGFuZ2UoZTogYW55KSB7XHJcbiAgICAgICAgdGhpcy5zaXplWCA9IGUudmFsdWU7XHJcblxyXG4gICAgICAgIGlmICh0aGlzLnNpemVZID4gMCkge1xyXG4gICAgICAgICAgICBzdXBlci5oYW5kbGVWYWx1ZUNoYW5nZShbdGhpcy5zaXplWCwgdGhpcy5zaXplWV0pO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBoYW5kbGVNYXhWYWx1ZUNoYW5nZShlOiBhbnkpIHtcclxuICAgICAgICB0aGlzLnNpemVZID0gZS52YWx1ZTtcclxuICAgICAgICBpZiAodGhpcy5zaXplWCA+IDApIHtcclxuICAgICAgICAgICAgc3VwZXIuaGFuZGxlVmFsdWVDaGFuZ2UoW3RoaXMuc2l6ZVgsIHRoaXMuc2l6ZVldKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG5cclxuXHJcbiAgICBuZ0FmdGVyVmlld0luaXQoKSB7XHJcbiAgICAgICAgdGhpcy5vblJlbmRlckNvbXBsZXRlZC5lbWl0KCk7XHJcbiAgICB9XHJcblxyXG59Il19
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { NgModule } from '@angular/core';
|
3
|
-
import { CommonModule } from '@angular/common';
|
4
|
-
import { FormsModule } from '@angular/forms';
|
5
|
-
import { AXWidgetSizePropertyEditorComponent } from './widget-size.editor';
|
6
|
-
import { AXNumberBoxModule } from '@acorex/components';
|
7
|
-
var AXWidgetSizePropertyEditorModule = /** @class */ (function () {
|
8
|
-
function AXWidgetSizePropertyEditorModule() {
|
9
|
-
}
|
10
|
-
AXWidgetSizePropertyEditorModule = __decorate([
|
11
|
-
NgModule({
|
12
|
-
declarations: [AXWidgetSizePropertyEditorComponent],
|
13
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule],
|
14
|
-
exports: [AXWidgetSizePropertyEditorComponent],
|
15
|
-
entryComponents: [AXWidgetSizePropertyEditorComponent],
|
16
|
-
providers: [],
|
17
|
-
})
|
18
|
-
], AXWidgetSizePropertyEditorModule);
|
19
|
-
return AXWidgetSizePropertyEditorModule;
|
20
|
-
}());
|
21
|
-
export { AXWidgetSizePropertyEditorModule };
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LXNpemUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0LWJvYXJkL2VkaXRvcnMvd2lkZ2V0LXNpemUtZWRpdG9yL3dpZGdldC1zaXplLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTdDLE9BQU8sRUFBRSxtQ0FBbUMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzNFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBWXZEO0lBQUE7SUFFQSxDQUFDO0lBRlksZ0NBQWdDO1FBUDVDLFFBQVEsQ0FBQztZQUNOLFlBQVksRUFBRSxDQUFDLG1DQUFtQyxDQUFDO1lBQ25ELE9BQU8sRUFBRSxDQUFDLFlBQVksRUF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