@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,83 +0,0 @@
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
2
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
|
3
|
-
import { AXHtmlUtil, AXObjectUtil, AXTranslator } from '@acorex/core';
|
4
|
-
import { AXBasePopupPageComponent } from '@acorex/components';
|
5
|
-
var AXWidgetSaveComponent = /** @class */ (function (_super) {
|
6
|
-
__extends(AXWidgetSaveComponent, _super);
|
7
|
-
function AXWidgetSaveComponent() {
|
8
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
9
|
-
_this.props = [];
|
10
|
-
return _this;
|
11
|
-
}
|
12
|
-
AXWidgetSaveComponent.prototype.getFooterButtons = function () {
|
13
|
-
return [
|
14
|
-
{
|
15
|
-
name: 'okay',
|
16
|
-
submitBehavior: true,
|
17
|
-
text: AXTranslator.get('common.confirm'),
|
18
|
-
style: 'ax success'
|
19
|
-
},
|
20
|
-
{
|
21
|
-
name: 'cancel',
|
22
|
-
cancelBehavior: true,
|
23
|
-
text: AXTranslator.get('common.cancel'),
|
24
|
-
style: 'ax light'
|
25
|
-
}
|
26
|
-
];
|
27
|
-
};
|
28
|
-
AXWidgetSaveComponent.prototype.ngOnInit = function () {
|
29
|
-
var _a, _b;
|
30
|
-
var titleProp = this.props.find(function (c) { return c.property.name === 'title' || c.property.name === 'name'; });
|
31
|
-
var title = ((_a = titleProp) === null || _a === void 0 ? void 0 : _a.value) || this.config.title;
|
32
|
-
var pp = {};
|
33
|
-
(_b = this.props) === null || _b === void 0 ? void 0 : _b.forEach(function (c) {
|
34
|
-
pp[c.property.name] = c.property;
|
35
|
-
});
|
36
|
-
this.data = {
|
37
|
-
component: this.config.component,
|
38
|
-
title: 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(function (c) { return c.property.visible !== false; })
|
45
|
-
.sort(function (a, b) { return a.property.order - b.property.order; })
|
46
|
-
.map(function (c) { return ({
|
47
|
-
name: c.property.name,
|
48
|
-
title: c.property.title,
|
49
|
-
allow: true
|
50
|
-
}); });
|
51
|
-
};
|
52
|
-
AXWidgetSaveComponent.prototype.onFooterButtonClick = function (e) {
|
53
|
-
var _this = this;
|
54
|
-
if (e.name === 'cancel') {
|
55
|
-
this.close();
|
56
|
-
}
|
57
|
-
if (e.name === 'okay') {
|
58
|
-
this.props.forEach(function (p) {
|
59
|
-
var pp = _this.displayProps.find(function (c) { return c.name === p.property.name; });
|
60
|
-
if (pp == null || !pp.allow) {
|
61
|
-
var ppp = _this.data.props[p.property.name];
|
62
|
-
if (ppp) {
|
63
|
-
ppp.visible = false;
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
ppp = { visible: false };
|
67
|
-
}
|
68
|
-
}
|
69
|
-
});
|
70
|
-
this.close(this.data);
|
71
|
-
}
|
72
|
-
};
|
73
|
-
AXWidgetSaveComponent = __decorate([
|
74
|
-
Component({
|
75
|
-
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>",
|
76
|
-
encapsulation: ViewEncapsulation.None,
|
77
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
78
|
-
})
|
79
|
-
], AXWidgetSaveComponent);
|
80
|
-
return AXWidgetSaveComponent;
|
81
|
-
}(AXBasePopupPageComponent));
|
82
|
-
export { AXWidgetSaveComponent };
|
83
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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gICAgICAgICAgIHN0eWxlOiAnYXggbGlnaHQnXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICBdO1xyXG4gICAgfVxyXG5cclxuICAgIG5nT25Jbml0KCkge1xyXG4gICAgICAgIGNvbnN0IHRpdGxlUHJvcCA9IHRoaXMucHJvcHMuZmluZChjID0+IGMucHJvcGVydHkubmFtZSA9PT0gJ3RpdGxlJyB8fCBjLnByb3BlcnR5Lm5hbWUgPT09ICduYW1lJyk7XHJcbiAgICAgICAgY29uc3QgdGl0bGUgPSB0aXRsZVByb3A/LnZhbHVlIHx8IHRoaXMuY29uZmlnLnRpdGxlO1xyXG4gICAgICAgIGNvbnN0IHBwOiBhbnkgPSB7fTtcclxuICAgICAgICB0aGlzLnByb3BzPy5mb3JFYWNoKGMgPT4ge1xyXG4gICAgICAgICAgICBwcFtjLnByb3BlcnR5Lm5hbWVdID0gYy5wcm9wZXJ0eTtcclxuICAgICAgICB9KTtcclxuICAgICAgICB0aGlzLmRhdGEgPSB7XHJcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5jb25maWcuY29tcG9uZW50LFxyXG4gICAgICAgICAgICB0aXRsZSxcclxuICAgICAgICAgICAgdW5pcXVlTmFtZTogYCR7dGhpcy5jb25maWcudW5pcXVlTmFtZX0tJHtBWEh0bWxVdGlsLmdldFVJRCgpfWAsXHJcbiAgICAgICAgICAgIG9wdGlvbnM6IEFYT2JqZWN0VXRpbC5kZWVwSlNPTkNsb25lKHRoaXMuY29uZmlnLm9wdGlvbnMpLFxyXG4gICAgICAgICAgICBwcm9wczogQVhPYmplY3RVdGlsLmRlZXBKU09OQ2xvbmUocHApXHJcbiAgICAgICAgfTtcclxuICAgICAgICB0aGlzLmRpc3BsYXlQcm9wcyA9IHRoaXMucHJvcHNcclxuICAgICAgICAgICAgLmZpbHRlcihjID0+IGMucHJvcGVydHkudmlzaWJsZSAhPT0gZmFsc2UpXHJcbiAgICAgICAgICAgIC5zb3J0KChhLCBiKSA9PiBhLnByb3BlcnR5Lm9yZGVyIC0gYi5wcm9wZXJ0eS5vcmRlcilcclxuICAgICAgICAgICAgLm1hcChjID0+ICh7XHJcbiAgICAgICAgICAgICAgICBuYW1lOiBjLnByb3BlcnR5Lm5hbWUsXHJcbiAgICAgICAgICAgICAgICB0aXRsZTogYy5wcm9wZXJ0eS50aXRsZSxcclxuICAgICAgICAgICAgICAgIGFsbG93OiB0cnVlXHJcbiAgICAgICAgICAgIH0pKTtcclxuICAgIH1cclxuXHJcblxyXG5cclxuICAgIG9uRm9vdGVyQnV0dG9uQ2xpY2soZTogQVhNZW51SXRlbUNsaWNrRXZlbnQpIHtcclxuICAgICAgICBpZiAoZS5uYW1lID09PSAnY2FuY2VsJykge1xyXG4gICAgICAgICAgICB0aGlzLmNsb3NlKCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChlLm5hbWUgPT09ICdva2F5Jykge1xyXG4gICAgICAgICAgICB0aGlzLnByb3BzLmZvckVhY2gocCA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBwcCA9IHRoaXMuZGlzcGxheVByb3BzLmZpbmQoYyA9PiBjLm5hbWUgPT09IHAucHJvcGVydHkubmFtZSk7XHJcbiAgICAgICAgICAgICAgICBpZiAocHAgPT0gbnVsbCB8fCAhcHAuYWxsb3cpIHtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgcHBwID0gdGhpcy5kYXRhLnByb3BzW3AucHJvcGVydHkubmFtZV07XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHBwcCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBwcHAudmlzaWJsZSA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcHBwID0geyB2aXNpYmxlOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIHRoaXMuY2xvc2UodGhpcy5kYXRhKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn0iXX0=
|
@@ -1,134 +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
|
-
var ɵ0 = function () {
|
6
|
-
return [1, 2, 3, 5, 10, 20, 30, 60].map(function (c) { return ({
|
7
|
-
id: 60000 * c,
|
8
|
-
text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())
|
9
|
-
}); });
|
10
|
-
};
|
11
|
-
// @dynamic
|
12
|
-
var AXWidgetComponent = /** @class */ (function () {
|
13
|
-
function AXWidgetComponent() {
|
14
|
-
var _this = this;
|
15
|
-
this.uid = AXHtmlUtil.getUID();
|
16
|
-
this.onBusyChanged = new EventEmitter();
|
17
|
-
this._isBusy = true;
|
18
|
-
this.refreshRate = [{
|
19
|
-
id: 60000 * 5,
|
20
|
-
text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')
|
21
|
-
}];
|
22
|
-
this.onConfiguredChanged = new EventEmitter();
|
23
|
-
this.onConfiguredChanged.subscribe(function () {
|
24
|
-
if (_this.isConfigured === true && _this.getRefreshRate()) {
|
25
|
-
_this.restartRefreshTimer();
|
26
|
-
}
|
27
|
-
else {
|
28
|
-
_this.stopRefreshTimer();
|
29
|
-
}
|
30
|
-
});
|
31
|
-
}
|
32
|
-
Object.defineProperty(AXWidgetComponent.prototype, "isBusy", {
|
33
|
-
get: function () {
|
34
|
-
return this._isBusy;
|
35
|
-
},
|
36
|
-
set: function (v) {
|
37
|
-
if (v !== this._isBusy) {
|
38
|
-
var eventData = {
|
39
|
-
component: this,
|
40
|
-
oldValue: this._isBusy,
|
41
|
-
value: v
|
42
|
-
};
|
43
|
-
this._isBusy = v;
|
44
|
-
this.onBusyChanged.emit(eventData);
|
45
|
-
}
|
46
|
-
},
|
47
|
-
enumerable: true,
|
48
|
-
configurable: true
|
49
|
-
});
|
50
|
-
// ???
|
51
|
-
AXWidgetComponent.prototype.getRefreshRate = function () {
|
52
|
-
return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;
|
53
|
-
};
|
54
|
-
AXWidgetComponent.prototype.startRefreshTimer = function () {
|
55
|
-
this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());
|
56
|
-
};
|
57
|
-
AXWidgetComponent.prototype.stopRefreshTimer = function () {
|
58
|
-
window.clearInterval(this.intervalId);
|
59
|
-
};
|
60
|
-
AXWidgetComponent.prototype.restartRefreshTimer = function () {
|
61
|
-
this.stopRefreshTimer();
|
62
|
-
this.startRefreshTimer();
|
63
|
-
};
|
64
|
-
AXWidgetComponent.prototype.ngOnDestroy = function () {
|
65
|
-
this.stopRefreshTimer();
|
66
|
-
};
|
67
|
-
AXWidgetComponent.prototype.redraw = function () {
|
68
|
-
};
|
69
|
-
AXWidgetComponent.prototype.refresh = function () {
|
70
|
-
this.restartRefreshTimer();
|
71
|
-
};
|
72
|
-
Object.defineProperty(AXWidgetComponent.prototype, "isConfigured", {
|
73
|
-
get: function () {
|
74
|
-
return true;
|
75
|
-
},
|
76
|
-
enumerable: true,
|
77
|
-
configurable: true
|
78
|
-
});
|
79
|
-
AXWidgetComponent.prototype.setValue = function (name, value) {
|
80
|
-
this[name] = value;
|
81
|
-
this.onConfiguredChanged.emit();
|
82
|
-
};
|
83
|
-
AXWidgetComponent.prototype.getValue = function (name) {
|
84
|
-
var _a;
|
85
|
-
var val = this[name];
|
86
|
-
var config = this['__meta__'].config;
|
87
|
-
var runtime = (_a = config.props[name]) === null || _a === void 0 ? void 0 : _a.runtime;
|
88
|
-
if (runtime && this.provideValue) {
|
89
|
-
var res = this.provideValue({
|
90
|
-
name: name,
|
91
|
-
value: val,
|
92
|
-
uniqueName: config.uniqueName,
|
93
|
-
options: config.options,
|
94
|
-
});
|
95
|
-
if (this.provideValue instanceof Promise) {
|
96
|
-
return res;
|
97
|
-
}
|
98
|
-
else {
|
99
|
-
return Promise.resolve(res);
|
100
|
-
}
|
101
|
-
}
|
102
|
-
return Promise.resolve(val);
|
103
|
-
};
|
104
|
-
__decorate([
|
105
|
-
propertyEditor({
|
106
|
-
editorClass: 'ax/editors/widget-size',
|
107
|
-
title: 'common.size',
|
108
|
-
visible: false,
|
109
|
-
order: -99,
|
110
|
-
}),
|
111
|
-
__metadata("design:type", Array)
|
112
|
-
], AXWidgetComponent.prototype, "widgetSize", void 0);
|
113
|
-
__decorate([
|
114
|
-
propertyEditor({
|
115
|
-
editorClass: 'ax/editors/select',
|
116
|
-
title: 'common.refresh-rate',
|
117
|
-
visible: true,
|
118
|
-
order: -98,
|
119
|
-
editorOptions: {
|
120
|
-
items: ɵ0,
|
121
|
-
allowNull: false,
|
122
|
-
allowSearch: false,
|
123
|
-
selectionDataMode: 'value',
|
124
|
-
selectionMode: 'single',
|
125
|
-
valueField: 'id',
|
126
|
-
}
|
127
|
-
}),
|
128
|
-
__metadata("design:type", Object)
|
129
|
-
], AXWidgetComponent.prototype, "refreshRate", void 0);
|
130
|
-
return AXWidgetComponent;
|
131
|
-
}());
|
132
|
-
export { AXWidgetComponent };
|
133
|
-
export { ɵ0 };
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9sYXlvdXQvIiwic291cmNlcyI6WyJsaWIvd2lkZ2V0LWJvYXJkL3dpZGdldC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3QyxPQUFPLEVBQTZCLGNBQWMsRUFBZSxNQUFNLG9CQUFvQixDQUF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ICAgICAgICAgICAgICB2YWx1ZTogdlxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICB0aGlzLl9pc0J1c3kgPSB2O1xyXG4gICAgICAgICAgICB0aGlzLm9uQnVzeUNoYW5nZWQuZW1pdChldmVudERhdGEpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBAcHJvcGVydHlFZGl0b3Ioe1xyXG4gICAgICAgIGVkaXRvckNsYXNzOiAnYXgvZWRpdG9ycy93aWRnZXQtc2l6ZScsXHJcbiAgICAgICAgdGl0bGU6ICdjb21tb24uc2l6ZScsXHJcbiAgICAgICAgdmlzaWJsZTogZmFsc2UsXHJcbiAgICAgICAgb3JkZXI6IC05OSxcclxuICAgIH0pXHJcbiAgICB3aWRnZXRTaXplOiBudW1iZXJbXTtcclxuXHJcbiAgICBAcHJvcGVydHlFZGl0b3Ioe1xyXG4gICAgICAgIGVkaXRvckNsYXNzOiAnYXgvZWRpdG9ycy9zZWxlY3QnLFxyXG4gICAgICAgIHRpdGxlOiAnY29tbW9uLnJlZnJlc2gtcmF0ZScsXHJcbiAgICAgICAgdmlzaWJsZTogdHJ1ZSxcclxuICAgICAgICBvcmRlcjogLTk4LFxyXG4gICAgICAgIGVkaXRvck9wdGlvbnM6IHtcclxuICAgICAgICAgICAgaXRlbXM6ICgpID0+IHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBbMSwgMiwgMywgNSwgMTAsIDIwLCAzMCwgNjBdLm1hcChjID0+ICh7XHJcbiAgICAgICAgICAgICAgICAgICAgaWQ6IDYwMDAwICogYyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdkYXRlVGltZS5kdXJhdGlvbi5mb3JtYXRfbWludXRlJykucmVwbGFjZSgnezB9JywgYy50b1N0cmluZygpKVxyXG4gICAgICAgICAgICAgICAgfSkpO1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBhbGxvd051bGw6IGZhbH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gdmFsdWU7XHJcbiAgICAgICAgdGhpcy5vbkNvbmZpZ3VyZWRDaGFuZ2VkLmVtaXQoKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgZ2V0VmFsdWUobmFtZTogc3RyaW5nKTogUHJvbWlzZTxhbnk+IHtcclxuICAgICAgICBjb25zdCB2YWwgPSB0aGlzW25hbWVdO1xyXG4gICAgICAgIGNvbnN0IGNvbmZpZyA9IHRoaXNbJ19fbWV0YV9fJ10uY29uZmlnO1xyXG4gICAgICAgIGNvbnN0IHJ1bnRpbWUgPSBjb25maWcucHJvcHNbbmFtZV0/LnJ1bnRpbWU7XHJcbiAgICAgICAgaWYgKHJ1bnRpbWUgJiYgdGhpcy5wcm92aWRlVmFsdWUpIHtcclxuICAgICAgICAgICAgY29uc3QgcmVzID0gdGhpcy5wcm92aWRlVmFsdWUoe1xyXG4gICAgICAgICAgICAgICAgbmFtZSxcclxuICAgICAgICAgICAgICAgIHZhbHVlOiB2YWwsXHJcbiAgICAgICAgICAgICAgICB1bmlxdWVOYW1lOiBjb25maWcudW5pcXVlTmFtZSxcclxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IGNvbmZpZy5vcHRpb25zLFxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgaWYgKHRoaXMucHJvdmlkZVZhbHVlIGluc3RhbmNlb2YgUHJvbWlzZSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlcztcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHZhbCk7XHJcbiAgICB9XHJcblxyXG59Il19
|
package/esm5/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
|