@pepperi-addons/ngx-composite-lib 0.0.14-beta.6 → 0.0.14-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon-block-loader/addon-block-loader-service.d.ts +21 -21
- package/addon-block-loader/addon-block-loader.component.d.ts +26 -26
- package/addon-block-loader/addon-block-loader.module.d.ts +15 -16
- package/addon-block-loader/pepperi-addons-ngx-composite-lib-addon-block-loader.d.ts +5 -5
- package/addon-block-loader/public-api.d.ts +2 -2
- package/assets-manager/assets-manager.component.d.ts +25 -25
- package/assets-manager/assets-manager.module.d.ts +13 -13
- package/assets-manager/pepperi-addons-ngx-composite-lib-assets-manager.d.ts +5 -5
- package/assets-manager/public-api.d.ts +2 -2
- package/bundles/pepperi-addons-ngx-composite-lib-addon-block-loader.umd.js +521 -599
- package/bundles/pepperi-addons-ngx-composite-lib-addon-block-loader.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-assets-manager.umd.js +423 -423
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -123
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +835 -835
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +84 -84
- package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +671 -671
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +918 -918
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +176 -176
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +538 -538
- package/color-settings/color-settings.component.d.ts +22 -22
- package/color-settings/color-settings.model.d.ts +5 -5
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -1
- package/core/common/directives/reset-configuration-field.directive.d.ts +38 -38
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +1 -1
- package/core/common/services/utilities.service.d.ts +6 -6
- package/core/index.d.ts +1 -1
- package/core/public-api.d.ts +1 -1
- package/dimx-export/dimx.component.d.ts +86 -86
- package/dimx-export/dimx.model.d.ts +5 -5
- package/dimx-export/dimx.module.d.ts +16 -16
- package/dimx-export/dimx.service.d.ts +21 -21
- package/dimx-export/index.d.ts +1 -1
- package/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts +5 -5
- package/dimx-export/public-api.d.ts +3 -3
- package/esm2015/addon-block-loader/addon-block-loader-service.js +67 -67
- package/esm2015/addon-block-loader/addon-block-loader.component.js +80 -80
- package/esm2015/addon-block-loader/addon-block-loader.module.js +51 -55
- package/esm2015/addon-block-loader/pepperi-addons-ngx-composite-lib-addon-block-loader.js +4 -4
- package/esm2015/addon-block-loader/public-api.js +5 -5
- package/esm2015/assets-manager/assets-manager.component.js +70 -70
- package/esm2015/assets-manager/assets-manager.module.js +42 -42
- package/esm2015/assets-manager/pepperi-addons-ngx-composite-lib-assets-manager.js +4 -4
- package/esm2015/assets-manager/public-api.js +5 -5
- package/esm2015/color-settings/color-settings.component.js +81 -81
- package/esm2015/color-settings/color-settings.model.js +8 -8
- package/esm2015/color-settings/color-settings.module.js +39 -39
- package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
- package/esm2015/color-settings/public-api.js +6 -6
- package/esm2015/core/common/directives/index.js +4 -4
- package/esm2015/core/common/directives/public-api.js +4 -4
- package/esm2015/core/common/directives/reset-configuration-field.directive.js +135 -135
- package/esm2015/core/common/index.js +4 -4
- package/esm2015/core/common/public-api.js +5 -5
- package/esm2015/core/common/services/index.js +4 -4
- package/esm2015/core/common/services/public-api.js +4 -4
- package/esm2015/core/common/services/utilities.service.js +18 -18
- package/esm2015/core/index.js +4 -4
- package/esm2015/core/public-api.js +4 -4
- package/esm2015/dimx-export/dimx.component.js +334 -334
- package/esm2015/dimx-export/dimx.model.js +7 -7
- package/esm2015/dimx-export/dimx.module.js +52 -52
- package/esm2015/dimx-export/dimx.service.js +49 -49
- package/esm2015/dimx-export/index.js +4 -4
- package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +4 -4
- package/esm2015/dimx-export/public-api.js +6 -6
- package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
- package/esm2015/file-status-panel/file-status-panel.module.js +47 -47
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
- package/esm2015/file-status-panel/public-api.js +6 -6
- package/esm2015/generic-form/generic-form.component.js +93 -93
- package/esm2015/generic-form/generic-form.model.js +1 -1
- package/esm2015/generic-form/generic-form.module.js +73 -73
- package/esm2015/generic-form/generic-form.service.js +164 -164
- package/esm2015/generic-form/pepperi-addons-ngx-composite-lib-generic-form.js +4 -4
- package/esm2015/generic-form/public-api.js +7 -7
- package/esm2015/generic-list/generic-list.component.js +420 -420
- package/esm2015/generic-list/generic-list.model.js +1 -1
- package/esm2015/generic-list/generic-list.module.js +63 -63
- package/esm2015/generic-list/generic-list.service.js +40 -40
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +7 -7
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +134 -134
- package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.module.js +46 -46
- package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
- package/esm2015/group-buttons-settings/public-api.js +6 -6
- package/esm2015/ngx-composite-lib.module.js +44 -44
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +5 -5
- package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
- package/esm2015/shadow-settings/public-api.js +6 -6
- package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
- package/esm2015/shadow-settings/shadow-settings.model.js +7 -7
- package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
- package/fesm2015/pepperi-addons-ngx-composite-lib-addon-block-loader.js +174 -250
- package/fesm2015/pepperi-addons-ngx-composite-lib-addon-block-loader.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-assets-manager.js +101 -101
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -113
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +415 -415
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +77 -77
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +304 -304
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +491 -491
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +167 -167
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +197 -197
- package/file-status-panel/file-status-panel.component.d.ts +14 -14
- package/file-status-panel/file-status-panel.model.d.ts +7 -7
- package/file-status-panel/file-status-panel.module.d.ts +14 -14
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +28 -28
- package/generic-form/generic-form.model.d.ts +35 -35
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +44 -44
- package/generic-form/pepperi-addons-ngx-composite-lib-generic-form.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +91 -91
- package/generic-list/generic-list.model.d.ts +41 -41
- package/generic-list/generic-list.module.d.ts +16 -16
- package/generic-list/generic-list.service.d.ts +13 -13
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -4
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
- package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/ngx-composite-lib.module.d.ts +11 -11
- package/package.json +1 -1
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +7 -7
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
- package/addon-block-loader/remote-loader/remote-loader.component.d.ts +0 -18
- package/addon-block-loader/remote-loader/remote-loader.module.d.ts +0 -13
- package/esm2015/addon-block-loader/remote-loader/remote-loader.component.js +0 -42
- package/esm2015/addon-block-loader/remote-loader/remote-loader.module.js +0 -43
|
@@ -30,615 +30,537 @@
|
|
|
30
30
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
31
31
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
32
32
|
|
|
33
|
-
/*! *****************************************************************************
|
|
34
|
-
Copyright (c) Microsoft Corporation.
|
|
35
|
-
|
|
36
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
-
purpose with or without fee is hereby granted.
|
|
38
|
-
|
|
39
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
-
***************************************************************************** */
|
|
47
|
-
/* global Reflect, Promise */
|
|
48
|
-
var extendStatics = function (d, b) {
|
|
49
|
-
extendStatics = Object.setPrototypeOf ||
|
|
50
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51
|
-
function (d, b) { for (var p in b)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
53
|
-
d[p] = b[p]; };
|
|
54
|
-
return extendStatics(d, b);
|
|
55
|
-
};
|
|
56
|
-
function __extends(d, b) {
|
|
57
|
-
if (typeof b !== "function" && b !== null)
|
|
58
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59
|
-
extendStatics(d, b);
|
|
60
|
-
function __() { this.constructor = d; }
|
|
61
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
-
}
|
|
63
|
-
var __assign = function () {
|
|
64
|
-
__assign = Object.assign || function __assign(t) {
|
|
65
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
66
|
-
s = arguments[i];
|
|
67
|
-
for (var p in s)
|
|
68
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69
|
-
t[p] = s[p];
|
|
70
|
-
}
|
|
71
|
-
return t;
|
|
72
|
-
};
|
|
73
|
-
return __assign.apply(this, arguments);
|
|
74
|
-
};
|
|
75
|
-
function __rest(s, e) {
|
|
76
|
-
var t = {};
|
|
77
|
-
for (var p in s)
|
|
78
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
-
t[p] = s[p];
|
|
80
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
-
t[p[i]] = s[p[i]];
|
|
84
|
-
}
|
|
85
|
-
return t;
|
|
86
|
-
}
|
|
87
|
-
function __decorate(decorators, target, key, desc) {
|
|
88
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
89
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
90
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
-
else
|
|
92
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
93
|
-
if (d = decorators[i])
|
|
94
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
-
}
|
|
97
|
-
function __param(paramIndex, decorator) {
|
|
98
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
99
|
-
}
|
|
100
|
-
function __metadata(metadataKey, metadataValue) {
|
|
101
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
102
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
103
|
-
}
|
|
104
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
105
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
106
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
107
|
-
function fulfilled(value) { try {
|
|
108
|
-
step(generator.next(value));
|
|
109
|
-
}
|
|
110
|
-
catch (e) {
|
|
111
|
-
reject(e);
|
|
112
|
-
} }
|
|
113
|
-
function rejected(value) { try {
|
|
114
|
-
step(generator["throw"](value));
|
|
115
|
-
}
|
|
116
|
-
catch (e) {
|
|
117
|
-
reject(e);
|
|
118
|
-
} }
|
|
119
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
120
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function __generator(thisArg, body) {
|
|
124
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
125
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
126
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
127
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
128
|
-
function step(op) {
|
|
129
|
-
if (f)
|
|
130
|
-
throw new TypeError("Generator is already executing.");
|
|
131
|
-
while (_)
|
|
132
|
-
try {
|
|
133
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
134
|
-
return t;
|
|
135
|
-
if (y = 0, t)
|
|
136
|
-
op = [op[0] & 2, t.value];
|
|
137
|
-
switch (op[0]) {
|
|
138
|
-
case 0:
|
|
139
|
-
case 1:
|
|
140
|
-
t = op;
|
|
141
|
-
break;
|
|
142
|
-
case 4:
|
|
143
|
-
_.label++;
|
|
144
|
-
return { value: op[1], done: false };
|
|
145
|
-
case 5:
|
|
146
|
-
_.label++;
|
|
147
|
-
y = op[1];
|
|
148
|
-
op = [0];
|
|
149
|
-
continue;
|
|
150
|
-
case 7:
|
|
151
|
-
op = _.ops.pop();
|
|
152
|
-
_.trys.pop();
|
|
153
|
-
continue;
|
|
154
|
-
default:
|
|
155
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
156
|
-
_ = 0;
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
160
|
-
_.label = op[1];
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
164
|
-
_.label = t[1];
|
|
165
|
-
t = op;
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
if (t && _.label < t[2]) {
|
|
169
|
-
_.label = t[2];
|
|
170
|
-
_.ops.push(op);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
if (t[2])
|
|
174
|
-
_.ops.pop();
|
|
175
|
-
_.trys.pop();
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
op = body.call(thisArg, _);
|
|
179
|
-
}
|
|
180
|
-
catch (e) {
|
|
181
|
-
op = [6, e];
|
|
182
|
-
y = 0;
|
|
183
|
-
}
|
|
184
|
-
finally {
|
|
185
|
-
f = t = 0;
|
|
186
|
-
}
|
|
187
|
-
if (op[0] & 5)
|
|
188
|
-
throw op[1];
|
|
189
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
|
-
if (k2 === undefined)
|
|
194
|
-
k2 = k;
|
|
195
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
196
|
-
}) : (function (o, m, k, k2) {
|
|
197
|
-
if (k2 === undefined)
|
|
198
|
-
k2 = k;
|
|
199
|
-
o[k2] = m[k];
|
|
200
|
-
});
|
|
201
|
-
function __exportStar(m, o) {
|
|
202
|
-
for (var p in m)
|
|
203
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
204
|
-
__createBinding(o, m, p);
|
|
205
|
-
}
|
|
206
|
-
function __values(o) {
|
|
207
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
208
|
-
if (m)
|
|
209
|
-
return m.call(o);
|
|
210
|
-
if (o && typeof o.length === "number")
|
|
211
|
-
return {
|
|
212
|
-
next: function () {
|
|
213
|
-
if (o && i >= o.length)
|
|
214
|
-
o = void 0;
|
|
215
|
-
return { value: o && o[i++], done: !o };
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
219
|
-
}
|
|
220
|
-
function __read(o, n) {
|
|
221
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
222
|
-
if (!m)
|
|
223
|
-
return o;
|
|
224
|
-
var i = m.call(o), r, ar = [], e;
|
|
225
|
-
try {
|
|
226
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
227
|
-
ar.push(r.value);
|
|
228
|
-
}
|
|
229
|
-
catch (error) {
|
|
230
|
-
e = { error: error };
|
|
231
|
-
}
|
|
232
|
-
finally {
|
|
233
|
-
try {
|
|
234
|
-
if (r && !r.done && (m = i["return"]))
|
|
235
|
-
m.call(i);
|
|
236
|
-
}
|
|
237
|
-
finally {
|
|
238
|
-
if (e)
|
|
239
|
-
throw e.error;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return ar;
|
|
243
|
-
}
|
|
244
|
-
/** @deprecated */
|
|
245
|
-
function __spread() {
|
|
246
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
247
|
-
ar = ar.concat(__read(arguments[i]));
|
|
248
|
-
return ar;
|
|
249
|
-
}
|
|
250
|
-
/** @deprecated */
|
|
251
|
-
function __spreadArrays() {
|
|
252
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
253
|
-
s += arguments[i].length;
|
|
254
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
255
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
256
|
-
r[k] = a[j];
|
|
257
|
-
return r;
|
|
258
|
-
}
|
|
259
|
-
function __spreadArray(to, from, pack) {
|
|
260
|
-
if (pack || arguments.length === 2)
|
|
261
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
262
|
-
if (ar || !(i in from)) {
|
|
263
|
-
if (!ar)
|
|
264
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
265
|
-
ar[i] = from[i];
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
269
|
-
}
|
|
270
|
-
function __await(v) {
|
|
271
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
272
|
-
}
|
|
273
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
274
|
-
if (!Symbol.asyncIterator)
|
|
275
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
276
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
277
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
278
|
-
function verb(n) { if (g[n])
|
|
279
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
280
|
-
function resume(n, v) { try {
|
|
281
|
-
step(g[n](v));
|
|
282
|
-
}
|
|
283
|
-
catch (e) {
|
|
284
|
-
settle(q[0][3], e);
|
|
285
|
-
} }
|
|
286
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
-
function fulfill(value) { resume("next", value); }
|
|
288
|
-
function reject(value) { resume("throw", value); }
|
|
289
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
290
|
-
resume(q[0][0], q[0][1]); }
|
|
291
|
-
}
|
|
292
|
-
function __asyncDelegator(o) {
|
|
293
|
-
var i, p;
|
|
294
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
296
|
-
}
|
|
297
|
-
function __asyncValues(o) {
|
|
298
|
-
if (!Symbol.asyncIterator)
|
|
299
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
-
var m = o[Symbol.asyncIterator], i;
|
|
301
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
-
}
|
|
305
|
-
function __makeTemplateObject(cooked, raw) {
|
|
306
|
-
if (Object.defineProperty) {
|
|
307
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
cooked.raw = raw;
|
|
311
|
-
}
|
|
312
|
-
return cooked;
|
|
313
|
-
}
|
|
314
|
-
;
|
|
315
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
316
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
317
|
-
}) : function (o, v) {
|
|
318
|
-
o["default"] = v;
|
|
319
|
-
};
|
|
320
|
-
function __importStar(mod) {
|
|
321
|
-
if (mod && mod.__esModule)
|
|
322
|
-
return mod;
|
|
323
|
-
var result = {};
|
|
324
|
-
if (mod != null)
|
|
325
|
-
for (var k in mod)
|
|
326
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
327
|
-
__createBinding(result, mod, k);
|
|
328
|
-
__setModuleDefault(result, mod);
|
|
329
|
-
return result;
|
|
330
|
-
}
|
|
331
|
-
function __importDefault(mod) {
|
|
332
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
333
|
-
}
|
|
334
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
335
|
-
if (kind === "a" && !f)
|
|
336
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
337
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
339
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
340
|
-
}
|
|
341
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
342
|
-
if (kind === "m")
|
|
343
|
-
throw new TypeError("Private method is not writable");
|
|
344
|
-
if (kind === "a" && !f)
|
|
345
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
346
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
348
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
33
|
+
/*! *****************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
/* global Reflect, Promise */
|
|
48
|
+
var extendStatics = function (d, b) {
|
|
49
|
+
extendStatics = Object.setPrototypeOf ||
|
|
50
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51
|
+
function (d, b) { for (var p in b)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
53
|
+
d[p] = b[p]; };
|
|
54
|
+
return extendStatics(d, b);
|
|
55
|
+
};
|
|
56
|
+
function __extends(d, b) {
|
|
57
|
+
if (typeof b !== "function" && b !== null)
|
|
58
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59
|
+
extendStatics(d, b);
|
|
60
|
+
function __() { this.constructor = d; }
|
|
61
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
+
}
|
|
63
|
+
var __assign = function () {
|
|
64
|
+
__assign = Object.assign || function __assign(t) {
|
|
65
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
66
|
+
s = arguments[i];
|
|
67
|
+
for (var p in s)
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69
|
+
t[p] = s[p];
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
};
|
|
73
|
+
return __assign.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
function __rest(s, e) {
|
|
76
|
+
var t = {};
|
|
77
|
+
for (var p in s)
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
+
t[p] = s[p];
|
|
80
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
+
t[p[i]] = s[p[i]];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function __decorate(decorators, target, key, desc) {
|
|
88
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
89
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
90
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
+
else
|
|
92
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
93
|
+
if (d = decorators[i])
|
|
94
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
+
}
|
|
97
|
+
function __param(paramIndex, decorator) {
|
|
98
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
99
|
+
}
|
|
100
|
+
function __metadata(metadataKey, metadataValue) {
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
102
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
103
|
+
}
|
|
104
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
105
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
106
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
107
|
+
function fulfilled(value) { try {
|
|
108
|
+
step(generator.next(value));
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
} }
|
|
113
|
+
function rejected(value) { try {
|
|
114
|
+
step(generator["throw"](value));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
reject(e);
|
|
118
|
+
} }
|
|
119
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
120
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function __generator(thisArg, body) {
|
|
124
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
125
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
126
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
127
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
128
|
+
function step(op) {
|
|
129
|
+
if (f)
|
|
130
|
+
throw new TypeError("Generator is already executing.");
|
|
131
|
+
while (_)
|
|
132
|
+
try {
|
|
133
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
134
|
+
return t;
|
|
135
|
+
if (y = 0, t)
|
|
136
|
+
op = [op[0] & 2, t.value];
|
|
137
|
+
switch (op[0]) {
|
|
138
|
+
case 0:
|
|
139
|
+
case 1:
|
|
140
|
+
t = op;
|
|
141
|
+
break;
|
|
142
|
+
case 4:
|
|
143
|
+
_.label++;
|
|
144
|
+
return { value: op[1], done: false };
|
|
145
|
+
case 5:
|
|
146
|
+
_.label++;
|
|
147
|
+
y = op[1];
|
|
148
|
+
op = [0];
|
|
149
|
+
continue;
|
|
150
|
+
case 7:
|
|
151
|
+
op = _.ops.pop();
|
|
152
|
+
_.trys.pop();
|
|
153
|
+
continue;
|
|
154
|
+
default:
|
|
155
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
156
|
+
_ = 0;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
160
|
+
_.label = op[1];
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
164
|
+
_.label = t[1];
|
|
165
|
+
t = op;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (t && _.label < t[2]) {
|
|
169
|
+
_.label = t[2];
|
|
170
|
+
_.ops.push(op);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (t[2])
|
|
174
|
+
_.ops.pop();
|
|
175
|
+
_.trys.pop();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
op = body.call(thisArg, _);
|
|
179
|
+
}
|
|
180
|
+
catch (e) {
|
|
181
|
+
op = [6, e];
|
|
182
|
+
y = 0;
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
f = t = 0;
|
|
186
|
+
}
|
|
187
|
+
if (op[0] & 5)
|
|
188
|
+
throw op[1];
|
|
189
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
|
+
if (k2 === undefined)
|
|
194
|
+
k2 = k;
|
|
195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
196
|
+
}) : (function (o, m, k, k2) {
|
|
197
|
+
if (k2 === undefined)
|
|
198
|
+
k2 = k;
|
|
199
|
+
o[k2] = m[k];
|
|
200
|
+
});
|
|
201
|
+
function __exportStar(m, o) {
|
|
202
|
+
for (var p in m)
|
|
203
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
204
|
+
__createBinding(o, m, p);
|
|
205
|
+
}
|
|
206
|
+
function __values(o) {
|
|
207
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
208
|
+
if (m)
|
|
209
|
+
return m.call(o);
|
|
210
|
+
if (o && typeof o.length === "number")
|
|
211
|
+
return {
|
|
212
|
+
next: function () {
|
|
213
|
+
if (o && i >= o.length)
|
|
214
|
+
o = void 0;
|
|
215
|
+
return { value: o && o[i++], done: !o };
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
219
|
+
}
|
|
220
|
+
function __read(o, n) {
|
|
221
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
222
|
+
if (!m)
|
|
223
|
+
return o;
|
|
224
|
+
var i = m.call(o), r, ar = [], e;
|
|
225
|
+
try {
|
|
226
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
227
|
+
ar.push(r.value);
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
e = { error: error };
|
|
231
|
+
}
|
|
232
|
+
finally {
|
|
233
|
+
try {
|
|
234
|
+
if (r && !r.done && (m = i["return"]))
|
|
235
|
+
m.call(i);
|
|
236
|
+
}
|
|
237
|
+
finally {
|
|
238
|
+
if (e)
|
|
239
|
+
throw e.error;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return ar;
|
|
243
|
+
}
|
|
244
|
+
/** @deprecated */
|
|
245
|
+
function __spread() {
|
|
246
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
247
|
+
ar = ar.concat(__read(arguments[i]));
|
|
248
|
+
return ar;
|
|
249
|
+
}
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
function __spreadArrays() {
|
|
252
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
253
|
+
s += arguments[i].length;
|
|
254
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
255
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
256
|
+
r[k] = a[j];
|
|
257
|
+
return r;
|
|
258
|
+
}
|
|
259
|
+
function __spreadArray(to, from, pack) {
|
|
260
|
+
if (pack || arguments.length === 2)
|
|
261
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
262
|
+
if (ar || !(i in from)) {
|
|
263
|
+
if (!ar)
|
|
264
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
265
|
+
ar[i] = from[i];
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
269
|
+
}
|
|
270
|
+
function __await(v) {
|
|
271
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
272
|
+
}
|
|
273
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
274
|
+
if (!Symbol.asyncIterator)
|
|
275
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
276
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
277
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
278
|
+
function verb(n) { if (g[n])
|
|
279
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
280
|
+
function resume(n, v) { try {
|
|
281
|
+
step(g[n](v));
|
|
282
|
+
}
|
|
283
|
+
catch (e) {
|
|
284
|
+
settle(q[0][3], e);
|
|
285
|
+
} }
|
|
286
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
+
function fulfill(value) { resume("next", value); }
|
|
288
|
+
function reject(value) { resume("throw", value); }
|
|
289
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
290
|
+
resume(q[0][0], q[0][1]); }
|
|
291
|
+
}
|
|
292
|
+
function __asyncDelegator(o) {
|
|
293
|
+
var i, p;
|
|
294
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
296
|
+
}
|
|
297
|
+
function __asyncValues(o) {
|
|
298
|
+
if (!Symbol.asyncIterator)
|
|
299
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
+
var m = o[Symbol.asyncIterator], i;
|
|
301
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
+
}
|
|
305
|
+
function __makeTemplateObject(cooked, raw) {
|
|
306
|
+
if (Object.defineProperty) {
|
|
307
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
cooked.raw = raw;
|
|
311
|
+
}
|
|
312
|
+
return cooked;
|
|
313
|
+
}
|
|
314
|
+
;
|
|
315
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
316
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
317
|
+
}) : function (o, v) {
|
|
318
|
+
o["default"] = v;
|
|
319
|
+
};
|
|
320
|
+
function __importStar(mod) {
|
|
321
|
+
if (mod && mod.__esModule)
|
|
322
|
+
return mod;
|
|
323
|
+
var result = {};
|
|
324
|
+
if (mod != null)
|
|
325
|
+
for (var k in mod)
|
|
326
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
327
|
+
__createBinding(result, mod, k);
|
|
328
|
+
__setModuleDefault(result, mod);
|
|
329
|
+
return result;
|
|
330
|
+
}
|
|
331
|
+
function __importDefault(mod) {
|
|
332
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
333
|
+
}
|
|
334
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
335
|
+
if (kind === "a" && !f)
|
|
336
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
337
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
339
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
340
|
+
}
|
|
341
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
342
|
+
if (kind === "m")
|
|
343
|
+
throw new TypeError("Private method is not writable");
|
|
344
|
+
if (kind === "a" && !f)
|
|
345
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
346
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
348
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
var AddonBlockLoaderService = /** @class */ (function () {
|
|
352
|
-
function AddonBlockLoaderService(sessionService, pepperiDataConverter, httpService) {
|
|
353
|
-
// window.sessionStorage.setItem('idp_token',this.tempToken)
|
|
354
|
-
// const accessToken = this.session.getIdpToken();
|
|
355
|
-
this.sessionService = sessionService;
|
|
356
|
-
this.pepperiDataConverter = pepperiDataConverter;
|
|
357
|
-
this.httpService = httpService;
|
|
358
|
-
//tempToken = "eyJhbGciOiJSUzI1NiIsImtpZCI6IjRiYTFjNzJmMTI3NThjYzEzMzg3ZWQ3YTBiZjNlODg3IiwidHlwIjoiSldUIn0.eyJuYmYiOjE2NDc3ODY2NDgsImV4cCI6MTY0Nzc5MDI0OCwiaXNzIjoiaHR0cHM6Ly9pZHAuc2FuZGJveC5wZXBwZXJpLmNvbSIsImF1ZCI6WyJodHRwczovL2lkcC5zYW5kYm94LnBlcHBlcmkuY29tL3Jlc291cmNlcyIsInBlcHBlcmkuYXBpbnQiLCJwZXBwZXJpLndhY2QiXSwiY2xpZW50X2lkIjoiaW9zLmNvbS53cm50eS5wZXBwZXJ5Iiwic3ViIjoiOTE1ZWUxODItNTk3Ni00ZjJlLWFhOGQtZDQ1ZjI3N2Y2OTdjIiwiYXV0aF90aW1lIjoxNjQ3Nzg2NjQ4LCJpZHAiOiJsb2NhbCIsInBlcHBlcmkuYXBpbnRiYXNldXJsIjoiaHR0cHM6Ly9yZXN0YXBpLnNhbmRib3gucGVwcGVyaS5jb20iLCJlbWFpbCI6Ik9kZWRAcGVwcGVyaXRlc3QuY29tIiwicGVwcGVyaS5pZCI6MTE0NzcwOTcsInBlcHBlcmkudXNlcnV1aWQiOiI5MTVlZTE4Mi01OTc2LTRmMmUtYWE4ZC1kNDVmMjc3ZjY5N2MiLCJwZXBwZXJpLmRpc3RyaWJ1dG9ydXVpZCI6IjBhM2FmNGU3LTMyZGUtNDExOC04Y2NmLTVkOWRiZDc5YzA0MSIsInBlcHBlcmkuZGlzdHJpYnV0b3JpZCI6MzAwMTUwMzEsInBlcHBlcmkuZGF0YWNlbnRlciI6InNhbmRib3giLCJwZXBwZXJpLmVtcGxveWVldHlwZSI6MSwicGVwcGVyaS5iYXNldXJsIjoiaHR0cHM6Ly9wYXBpLnN0YWdpbmcucGVwcGVyaS5jb20vVjEuMCIsInBlcHBlcmkud2FjZGJhc2V1cmwiOiJodHRwczovL2NwYXBpLnN0YWdpbmcucGVwcGVyaS5jb20iLCJuYW1lIjoiT2RlZCBBbnN3ZXIiLCJzY29wZSI6WyJwZXBwZXJpLmFwaW50IiwicGVwcGVyaS53YWNkIiwib2ZmbGluZV9hY2Nlc3MiXSwiYW1yIjpbInB3ZCJdfQ.XIpG0urTDreOIB3ehAKQqeQoFLiCYnxqYdXo61XaOWuJQe5hvJXNvjdnNuoC79GDiayHXEbrlsExcg5JYnou46bf35D9tEKQSx1ZF5S_vhSZcc5vg7OlS-2_AGJdov0RqC22Ti2nIBoWRkQK_Xv1D9aNWoE23ygD85bHyEI76z35aqpsUY6vy4yR_L-2p9GByslkYByaU9ES4RgLDCefTbo9C40ux0sH62IeJnC9cOC7hSIaCdMzvXVUg1BFh5ZvZGybaqwMRCXmc5XgvgN9e1Q3ej2Mje-Rt4Vqz9OCYHZJ3GZEiyzEatJDXFAwfXhQJypPu9ucNL_r8jy_r5FIGQ"
|
|
359
|
-
this.accessToken = '';
|
|
360
|
-
this.papiBaseURL = '';
|
|
361
|
-
this.pagesUUID = '50062e0c-9967-4ed4-9102-f2bc50602d41';
|
|
362
|
-
this.assetsUUID = 'ad909780-0c23-401e-8e8e-f514cc4f6aa2';
|
|
363
|
-
// this.parsedToken = jwt(accessToken);
|
|
364
|
-
// this.papiBaseURL = this.parsedToken["pepperi.baseurl"]
|
|
365
|
-
}
|
|
366
|
-
Object.defineProperty(AddonBlockLoaderService.prototype, "papiClient", {
|
|
367
|
-
get: function () {
|
|
368
|
-
return new papiSdk.PapiClient({
|
|
369
|
-
baseURL: this.papiBaseURL,
|
|
370
|
-
token: this.sessionService.getIdpToken(),
|
|
371
|
-
suppressLogging: true
|
|
372
|
-
});
|
|
373
|
-
},
|
|
374
|
-
enumerable: false,
|
|
375
|
-
configurable: true
|
|
376
|
-
});
|
|
377
|
-
AddonBlockLoaderService.prototype.getRemoteLoaderOptions = function (blockType) {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var addon, defaultRemoteName, defaultModuleName, defaultComponentName, _a;
|
|
380
|
-
return __generator(this, function (_b) {
|
|
381
|
-
switch (_b.label) {
|
|
382
|
-
case 0:
|
|
383
|
-
defaultRemoteName = 'addon';
|
|
384
|
-
defaultModuleName = 'AddonModule';
|
|
385
|
-
defaultComponentName = 'AddonComponent';
|
|
386
|
-
_a = blockType;
|
|
387
|
-
switch (_a) {
|
|
388
|
-
case 'assets-manager': return [3 /*break*/, 1];
|
|
389
|
-
}
|
|
390
|
-
return [3 /*break*/, 3];
|
|
391
|
-
case 1: return [4 /*yield*/, this.getInstalledAddons(this.assetsUUID)];
|
|
392
|
-
case 2:
|
|
393
|
-
addon = _b.sent();
|
|
394
|
-
return [3 /*break*/, 4];
|
|
395
|
-
case 3: return [3 /*break*/, 4];
|
|
396
|
-
case 4:
|
|
397
|
-
if (addon) {
|
|
398
|
-
return [2 /*return*/, {
|
|
399
|
-
addonId: addon.Addon.UUID,
|
|
400
|
-
remoteEntry: addon.PublicBaseURL,
|
|
401
|
-
remoteName: defaultRemoteName,
|
|
402
|
-
exposedModule: "./" + defaultModuleName,
|
|
403
|
-
componentName: defaultComponentName,
|
|
404
|
-
}];
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
return [2 /*return*/, null];
|
|
408
|
-
}
|
|
409
|
-
return [2 /*return*/];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
};
|
|
414
|
-
AddonBlockLoaderService.prototype.getInstalledAddons = function (addonUUID) {
|
|
415
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
-
var endpoint;
|
|
417
|
-
return __generator(this, function (_a) {
|
|
418
|
-
endpoint = "/addons/installed_addons/" + addonUUID;
|
|
419
|
-
return [2 /*return*/, this.httpService.getPapiApiCall(endpoint).toPromise()];
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
};
|
|
423
|
-
return AddonBlockLoaderService;
|
|
424
|
-
}());
|
|
425
|
-
AddonBlockLoaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, deps: [{ token: i1__namespace.PepSessionService }, { token: i1__namespace.PepDataConvertorService }, { token: i1__namespace.PepHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
426
|
-
AddonBlockLoaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, providedIn: 'root' });
|
|
427
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, decorators: [{
|
|
428
|
-
type: i0.Injectable,
|
|
429
|
-
args: [{ providedIn: 'root' }]
|
|
351
|
+
var AddonBlockLoaderService = /** @class */ (function () {
|
|
352
|
+
function AddonBlockLoaderService(sessionService, pepperiDataConverter, httpService) {
|
|
353
|
+
// window.sessionStorage.setItem('idp_token',this.tempToken)
|
|
354
|
+
// const accessToken = this.session.getIdpToken();
|
|
355
|
+
this.sessionService = sessionService;
|
|
356
|
+
this.pepperiDataConverter = pepperiDataConverter;
|
|
357
|
+
this.httpService = httpService;
|
|
358
|
+
//tempToken = "eyJhbGciOiJSUzI1NiIsImtpZCI6IjRiYTFjNzJmMTI3NThjYzEzMzg3ZWQ3YTBiZjNlODg3IiwidHlwIjoiSldUIn0.eyJuYmYiOjE2NDc3ODY2NDgsImV4cCI6MTY0Nzc5MDI0OCwiaXNzIjoiaHR0cHM6Ly9pZHAuc2FuZGJveC5wZXBwZXJpLmNvbSIsImF1ZCI6WyJodHRwczovL2lkcC5zYW5kYm94LnBlcHBlcmkuY29tL3Jlc291cmNlcyIsInBlcHBlcmkuYXBpbnQiLCJwZXBwZXJpLndhY2QiXSwiY2xpZW50X2lkIjoiaW9zLmNvbS53cm50eS5wZXBwZXJ5Iiwic3ViIjoiOTE1ZWUxODItNTk3Ni00ZjJlLWFhOGQtZDQ1ZjI3N2Y2OTdjIiwiYXV0aF90aW1lIjoxNjQ3Nzg2NjQ4LCJpZHAiOiJsb2NhbCIsInBlcHBlcmkuYXBpbnRiYXNldXJsIjoiaHR0cHM6Ly9yZXN0YXBpLnNhbmRib3gucGVwcGVyaS5jb20iLCJlbWFpbCI6Ik9kZWRAcGVwcGVyaXRlc3QuY29tIiwicGVwcGVyaS5pZCI6MTE0NzcwOTcsInBlcHBlcmkudXNlcnV1aWQiOiI5MTVlZTE4Mi01OTc2LTRmMmUtYWE4ZC1kNDVmMjc3ZjY5N2MiLCJwZXBwZXJpLmRpc3RyaWJ1dG9ydXVpZCI6IjBhM2FmNGU3LTMyZGUtNDExOC04Y2NmLTVkOWRiZDc5YzA0MSIsInBlcHBlcmkuZGlzdHJpYnV0b3JpZCI6MzAwMTUwMzEsInBlcHBlcmkuZGF0YWNlbnRlciI6InNhbmRib3giLCJwZXBwZXJpLmVtcGxveWVldHlwZSI6MSwicGVwcGVyaS5iYXNldXJsIjoiaHR0cHM6Ly9wYXBpLnN0YWdpbmcucGVwcGVyaS5jb20vVjEuMCIsInBlcHBlcmkud2FjZGJhc2V1cmwiOiJodHRwczovL2NwYXBpLnN0YWdpbmcucGVwcGVyaS5jb20iLCJuYW1lIjoiT2RlZCBBbnN3ZXIiLCJzY29wZSI6WyJwZXBwZXJpLmFwaW50IiwicGVwcGVyaS53YWNkIiwib2ZmbGluZV9hY2Nlc3MiXSwiYW1yIjpbInB3ZCJdfQ.XIpG0urTDreOIB3ehAKQqeQoFLiCYnxqYdXo61XaOWuJQe5hvJXNvjdnNuoC79GDiayHXEbrlsExcg5JYnou46bf35D9tEKQSx1ZF5S_vhSZcc5vg7OlS-2_AGJdov0RqC22Ti2nIBoWRkQK_Xv1D9aNWoE23ygD85bHyEI76z35aqpsUY6vy4yR_L-2p9GByslkYByaU9ES4RgLDCefTbo9C40ux0sH62IeJnC9cOC7hSIaCdMzvXVUg1BFh5ZvZGybaqwMRCXmc5XgvgN9e1Q3ej2Mje-Rt4Vqz9OCYHZJ3GZEiyzEatJDXFAwfXhQJypPu9ucNL_r8jy_r5FIGQ"
|
|
359
|
+
this.accessToken = '';
|
|
360
|
+
this.papiBaseURL = '';
|
|
361
|
+
this.pagesUUID = '50062e0c-9967-4ed4-9102-f2bc50602d41';
|
|
362
|
+
this.assetsUUID = 'ad909780-0c23-401e-8e8e-f514cc4f6aa2';
|
|
363
|
+
// this.parsedToken = jwt(accessToken);
|
|
364
|
+
// this.papiBaseURL = this.parsedToken["pepperi.baseurl"]
|
|
365
|
+
}
|
|
366
|
+
Object.defineProperty(AddonBlockLoaderService.prototype, "papiClient", {
|
|
367
|
+
get: function () {
|
|
368
|
+
return new papiSdk.PapiClient({
|
|
369
|
+
baseURL: this.papiBaseURL,
|
|
370
|
+
token: this.sessionService.getIdpToken(),
|
|
371
|
+
suppressLogging: true
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
enumerable: false,
|
|
375
|
+
configurable: true
|
|
376
|
+
});
|
|
377
|
+
AddonBlockLoaderService.prototype.getRemoteLoaderOptions = function (blockType) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
+
var addon, defaultRemoteName, defaultModuleName, defaultComponentName, _a;
|
|
380
|
+
return __generator(this, function (_b) {
|
|
381
|
+
switch (_b.label) {
|
|
382
|
+
case 0:
|
|
383
|
+
defaultRemoteName = 'addon';
|
|
384
|
+
defaultModuleName = 'AddonModule';
|
|
385
|
+
defaultComponentName = 'AddonComponent';
|
|
386
|
+
_a = blockType;
|
|
387
|
+
switch (_a) {
|
|
388
|
+
case 'assets-manager': return [3 /*break*/, 1];
|
|
389
|
+
}
|
|
390
|
+
return [3 /*break*/, 3];
|
|
391
|
+
case 1: return [4 /*yield*/, this.getInstalledAddons(this.assetsUUID)];
|
|
392
|
+
case 2:
|
|
393
|
+
addon = _b.sent();
|
|
394
|
+
return [3 /*break*/, 4];
|
|
395
|
+
case 3: return [3 /*break*/, 4];
|
|
396
|
+
case 4:
|
|
397
|
+
if (addon) {
|
|
398
|
+
return [2 /*return*/, {
|
|
399
|
+
addonId: addon.Addon.UUID,
|
|
400
|
+
remoteEntry: addon.PublicBaseURL,
|
|
401
|
+
remoteName: defaultRemoteName,
|
|
402
|
+
exposedModule: "./" + defaultModuleName,
|
|
403
|
+
componentName: defaultComponentName,
|
|
404
|
+
}];
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
return [2 /*return*/, null];
|
|
408
|
+
}
|
|
409
|
+
return [2 /*return*/];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
AddonBlockLoaderService.prototype.getInstalledAddons = function (addonUUID) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
+
var endpoint;
|
|
417
|
+
return __generator(this, function (_a) {
|
|
418
|
+
endpoint = "/addons/installed_addons/" + addonUUID;
|
|
419
|
+
return [2 /*return*/, this.httpService.getPapiApiCall(endpoint).toPromise()];
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
};
|
|
423
|
+
return AddonBlockLoaderService;
|
|
424
|
+
}());
|
|
425
|
+
AddonBlockLoaderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, deps: [{ token: i1__namespace.PepSessionService }, { token: i1__namespace.PepDataConvertorService }, { token: i1__namespace.PepHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
426
|
+
AddonBlockLoaderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, providedIn: 'root' });
|
|
427
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderService, decorators: [{
|
|
428
|
+
type: i0.Injectable,
|
|
429
|
+
args: [{ providedIn: 'root' }]
|
|
430
430
|
}], ctorParameters: function () { return [{ type: i1__namespace.PepSessionService }, { type: i1__namespace.PepDataConvertorService }, { type: i1__namespace.PepHttpService }]; } });
|
|
431
431
|
|
|
432
|
-
var AddonBlockLoaderComponent = /** @class */ (function () {
|
|
433
|
-
function AddonBlockLoaderComponent(addonBlockLoaderService, dialogService) {
|
|
434
|
-
this.addonBlockLoaderService = addonBlockLoaderService;
|
|
435
|
-
this.dialogService = dialogService;
|
|
436
|
-
this.blockType = 'assets-manager';
|
|
437
|
-
this.isOnPopUp = true;
|
|
438
|
-
this.hostObject = null;
|
|
439
|
-
this.hostEvents = new i0.EventEmitter();
|
|
440
|
-
this.blockLoad = new i0.EventEmitter();
|
|
441
|
-
this.remotePathOptions = null;
|
|
442
|
-
this.dialogRef = null;
|
|
443
|
-
}
|
|
444
|
-
AddonBlockLoaderComponent.prototype.ngOnInit = function () {
|
|
445
|
-
this.loadRemoteOptions();
|
|
446
|
-
};
|
|
447
|
-
AddonBlockLoaderComponent.prototype.loadRemoteOptions = function () {
|
|
448
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
449
|
-
var _a;
|
|
450
|
-
return __generator(this, function (_b) {
|
|
451
|
-
switch (_b.label) {
|
|
452
|
-
case 0:
|
|
453
|
-
_a = this;
|
|
454
|
-
return [4 /*yield*/, this.addonBlockLoaderService.getRemoteLoaderOptions(this.blockType)];
|
|
455
|
-
case 1:
|
|
456
|
-
_a.remotePathOptions = _b.sent();
|
|
457
|
-
return [2 /*return*/];
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
});
|
|
461
|
-
};
|
|
462
|
-
AddonBlockLoaderComponent.prototype.onBlockLoad = function () {
|
|
463
|
-
this.blockLoad.emit();
|
|
464
|
-
};
|
|
465
|
-
AddonBlockLoaderComponent.prototype.onHostEvents = function (event) {
|
|
466
|
-
this.hostEvents.emit(event);
|
|
467
|
-
};
|
|
468
|
-
AddonBlockLoaderComponent.prototype.closeDialog = function (event) {
|
|
469
|
-
if (this.dialogRef) {
|
|
470
|
-
this.dialogRef.close(event);
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
AddonBlockLoaderComponent.prototype.openDialog = function (title, size) {
|
|
474
|
-
if (size === void 0) { size = 'large'; }
|
|
475
|
-
if (this.isOnPopUp) {
|
|
476
|
-
var config = this.dialogService.getDialogConfig({}, size);
|
|
477
|
-
var data = {
|
|
478
|
-
title: title,
|
|
479
|
-
remotePathOptions: this.remotePathOptions,
|
|
480
|
-
hostObject: this.hostObject,
|
|
481
|
-
};
|
|
482
|
-
this.dialogRef = this.dialogService.openDialog(this.dialogTemplate, data, config);
|
|
483
|
-
// TODO: Return another event for this or expose this.dialogRef to the user
|
|
484
|
-
// this.dialogRef.afterClosed().subscribe((value) => {
|
|
485
|
-
// if (value !== undefined && value !== null) {
|
|
486
|
-
// }
|
|
487
|
-
// });
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
return AddonBlockLoaderComponent;
|
|
491
|
-
}());
|
|
492
|
-
AddonBlockLoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderComponent, deps: [{ token: AddonBlockLoaderService }, { token: i2__namespace.PepDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
493
|
-
AddonBlockLoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: AddonBlockLoaderComponent, selector: "pep-addon-block-loader", inputs: { blockType: "blockType", isOnPopUp: "isOnPopUp", hostObject: "hostObject" }, outputs: { hostEvents: "hostEvents", blockLoad: "blockLoad" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, template: "<!-- <div>Addon block loader</div> -->\n<ng-container *ngIf=\"!isOnPopUp\">\n <pep-remote-loader *ngIf=\"remotePathOptions\"\n [options]=\"remotePathOptions\"\n [hostObject]=\"hostObject\"\n (hostEvents)=\"onHostEvents($event);\"\n (load)=\"onBlockLoad()\">\n </pep-remote-loader>\n</ng-container>\n\n
|
|
494
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderComponent, decorators: [{
|
|
495
|
-
type: i0.Component,
|
|
496
|
-
args: [{
|
|
497
|
-
selector: 'pep-addon-block-loader',
|
|
498
|
-
templateUrl: './addon-block-loader.component.html',
|
|
499
|
-
styleUrls: ['./addon-block-loader.component.scss']
|
|
500
|
-
}]
|
|
501
|
-
}], ctorParameters: function () { return [{ type: AddonBlockLoaderService }, { type: i2__namespace.PepDialogService }]; }, propDecorators: { dialogTemplate: [{
|
|
502
|
-
type: i0.ViewChild,
|
|
503
|
-
args: ['dialogTemplate', { read: i0.TemplateRef }]
|
|
504
|
-
}], blockType: [{
|
|
505
|
-
type: i0.Input
|
|
506
|
-
}], isOnPopUp: [{
|
|
507
|
-
type: i0.Input
|
|
508
|
-
}], hostObject: [{
|
|
509
|
-
type: i0.Input
|
|
510
|
-
}], hostEvents: [{
|
|
511
|
-
type: i0.Output
|
|
512
|
-
}], blockLoad: [{
|
|
513
|
-
type: i0.Output
|
|
432
|
+
var AddonBlockLoaderComponent = /** @class */ (function () {
|
|
433
|
+
function AddonBlockLoaderComponent(addonBlockLoaderService, dialogService) {
|
|
434
|
+
this.addonBlockLoaderService = addonBlockLoaderService;
|
|
435
|
+
this.dialogService = dialogService;
|
|
436
|
+
this.blockType = 'assets-manager';
|
|
437
|
+
this.isOnPopUp = true;
|
|
438
|
+
this.hostObject = null;
|
|
439
|
+
this.hostEvents = new i0.EventEmitter();
|
|
440
|
+
this.blockLoad = new i0.EventEmitter();
|
|
441
|
+
this.remotePathOptions = null;
|
|
442
|
+
this.dialogRef = null;
|
|
443
|
+
}
|
|
444
|
+
AddonBlockLoaderComponent.prototype.ngOnInit = function () {
|
|
445
|
+
this.loadRemoteOptions();
|
|
446
|
+
};
|
|
447
|
+
AddonBlockLoaderComponent.prototype.loadRemoteOptions = function () {
|
|
448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
449
|
+
var _a;
|
|
450
|
+
return __generator(this, function (_b) {
|
|
451
|
+
switch (_b.label) {
|
|
452
|
+
case 0:
|
|
453
|
+
_a = this;
|
|
454
|
+
return [4 /*yield*/, this.addonBlockLoaderService.getRemoteLoaderOptions(this.blockType)];
|
|
455
|
+
case 1:
|
|
456
|
+
_a.remotePathOptions = _b.sent();
|
|
457
|
+
return [2 /*return*/];
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
AddonBlockLoaderComponent.prototype.onBlockLoad = function () {
|
|
463
|
+
this.blockLoad.emit();
|
|
464
|
+
};
|
|
465
|
+
AddonBlockLoaderComponent.prototype.onHostEvents = function (event) {
|
|
466
|
+
this.hostEvents.emit(event);
|
|
467
|
+
};
|
|
468
|
+
AddonBlockLoaderComponent.prototype.closeDialog = function (event) {
|
|
469
|
+
if (this.dialogRef) {
|
|
470
|
+
this.dialogRef.close(event);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
AddonBlockLoaderComponent.prototype.openDialog = function (title, size) {
|
|
474
|
+
if (size === void 0) { size = 'large'; }
|
|
475
|
+
if (this.isOnPopUp) {
|
|
476
|
+
var config = this.dialogService.getDialogConfig({}, size);
|
|
477
|
+
var data = {
|
|
478
|
+
title: title,
|
|
479
|
+
remotePathOptions: this.remotePathOptions,
|
|
480
|
+
hostObject: this.hostObject,
|
|
481
|
+
};
|
|
482
|
+
this.dialogRef = this.dialogService.openDialog(this.dialogTemplate, data, config);
|
|
483
|
+
// TODO: Return another event for this or expose this.dialogRef to the user
|
|
484
|
+
// this.dialogRef.afterClosed().subscribe((value) => {
|
|
485
|
+
// if (value !== undefined && value !== null) {
|
|
486
|
+
// }
|
|
487
|
+
// });
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
return AddonBlockLoaderComponent;
|
|
491
|
+
}());
|
|
492
|
+
AddonBlockLoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderComponent, deps: [{ token: AddonBlockLoaderService }, { token: i2__namespace.PepDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
493
|
+
AddonBlockLoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: AddonBlockLoaderComponent, selector: "pep-addon-block-loader", inputs: { blockType: "blockType", isOnPopUp: "isOnPopUp", hostObject: "hostObject" }, outputs: { hostEvents: "hostEvents", blockLoad: "blockLoad" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, template: "<!-- <div>Addon block loader</div> -->\n<ng-container *ngIf=\"!isOnPopUp\">\n <pep-remote-loader *ngIf=\"remotePathOptions\"\n [options]=\"remotePathOptions\"\n [hostObject]=\"hostObject\"\n (hostEvents)=\"onHostEvents($event);\"\n (load)=\"onBlockLoad()\">\n </pep-remote-loader>\n</ng-container>\n\n<ng-template #dialogTemplate let-data>\n <pep-dialog [title]=\"data.title\">\n <ng-container pep-dialog-content>\n <pep-remote-loader \n [options]=\"data.remotePathOptions\"\n [hostObject]=\"data.hostObject\"\n (hostEvents)=\"onHostEvents($event);\"\n (load)=\"onBlockLoad()\">\n </pep-remote-loader>\n </ng-container>\n <div pep-dialog-actions class=\"spacing-element-negative\">\n <button mat-button (click)=\"closeDialog($event)\" class=\"spacing-element pep-button md weak\">\n {{ 'Close' | translate }}\n </button>\n </div>\n </pep-dialog>\n</ng-template>", styles: [""], components: [{ type: i3__namespace.PepAddonLoaderComponent, selector: "pep-remote-loader", inputs: ["options", "hostObject"], outputs: ["hostEvents", "load"] }, { type: i2__namespace.PepDialogComponent, selector: "pep-dialog", inputs: ["showClose", "showHeader", "showFooter", "title"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i5__namespace.TranslatePipe } });
|
|
494
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: AddonBlockLoaderComponent, decorators: [{
|
|
495
|
+
type: i0.Component,
|
|
496
|
+
args: [{
|
|
497
|
+
selector: 'pep-addon-block-loader',
|
|
498
|
+
templateUrl: './addon-block-loader.component.html',
|
|
499
|
+
styleUrls: ['./addon-block-loader.component.scss']
|
|
500
|
+
}]
|
|
501
|
+
}], ctorParameters: function () { return [{ type: AddonBlockLoaderService }, { type: i2__namespace.PepDialogService }]; }, propDecorators: { dialogTemplate: [{
|
|
502
|
+
type: i0.ViewChild,
|
|
503
|
+
args: ['dialogTemplate', { read: i0.TemplateRef }]
|
|
504
|
+
}], blockType: [{
|
|
505
|
+
type: i0.Input
|
|
506
|
+
}], isOnPopUp: [{
|
|
507
|
+
type: i0.Input
|
|
508
|
+
}], hostObject: [{
|
|
509
|
+
type: i0.Input
|
|
510
|
+
}], hostEvents: [{
|
|
511
|
+
type: i0.Output
|
|
512
|
+
}], blockLoad: [{
|
|
513
|
+
type: i0.Output
|
|
514
514
|
}] } });
|
|
515
515
|
|
|
516
|
-
var
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
function RemoteLoaderModule() {
|
|
557
|
-
}
|
|
558
|
-
return RemoteLoaderModule;
|
|
559
|
-
}());
|
|
560
|
-
RemoteLoaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RemoteLoaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
561
|
-
RemoteLoaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RemoteLoaderModule, declarations: [RemoteLoaderComponent], imports: [i4.CommonModule,
|
|
562
|
-
i1.PepNgxLibModule,
|
|
563
|
-
dialog.MatDialogModule,
|
|
564
|
-
i2.PepDialogModule,
|
|
565
|
-
i3.PepAddonLoaderModule], exports: [RemoteLoaderComponent] });
|
|
566
|
-
RemoteLoaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RemoteLoaderModule, providers: [], imports: [[
|
|
567
|
-
i4.CommonModule,
|
|
568
|
-
i1.PepNgxLibModule,
|
|
569
|
-
dialog.MatDialogModule,
|
|
570
|
-
i2.PepDialogModule,
|
|
571
|
-
i3.PepAddonLoaderModule
|
|
572
|
-
]] });
|
|
573
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RemoteLoaderModule, decorators: [{
|
|
574
|
-
type: i0.NgModule,
|
|
575
|
-
args: [{
|
|
576
|
-
declarations: [
|
|
577
|
-
RemoteLoaderComponent
|
|
578
|
-
],
|
|
579
|
-
imports: [
|
|
580
|
-
i4.CommonModule,
|
|
581
|
-
i1.PepNgxLibModule,
|
|
582
|
-
dialog.MatDialogModule,
|
|
583
|
-
i2.PepDialogModule,
|
|
584
|
-
i3.PepAddonLoaderModule
|
|
585
|
-
],
|
|
586
|
-
exports: [RemoteLoaderComponent],
|
|
587
|
-
providers: []
|
|
588
|
-
}]
|
|
589
|
-
}], ctorParameters: function () { return []; } });
|
|
590
|
-
|
|
591
|
-
var pepIcons = [
|
|
592
|
-
i1$1.pepIconTextAlignCenter,
|
|
593
|
-
i1$1.pepIconTextAlignLeft,
|
|
594
|
-
i1$1.pepIconTextAlignRight
|
|
595
|
-
];
|
|
596
|
-
var PepAddonBlockLoaderModule = /** @class */ (function () {
|
|
597
|
-
function PepAddonBlockLoaderModule(pepIconRegistry) {
|
|
598
|
-
this.pepIconRegistry = pepIconRegistry;
|
|
599
|
-
this.pepIconRegistry.registerIcons(pepIcons);
|
|
600
|
-
}
|
|
601
|
-
return PepAddonBlockLoaderModule;
|
|
602
|
-
}());
|
|
603
|
-
PepAddonBlockLoaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, deps: [{ token: i1__namespace$1.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
604
|
-
PepAddonBlockLoaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, declarations: [AddonBlockLoaderComponent], imports: [i4.CommonModule,
|
|
605
|
-
i1.PepNgxLibModule,
|
|
606
|
-
i3.PepAddonLoaderModule,
|
|
607
|
-
i2.PepDialogModule,
|
|
608
|
-
dialog.MatDialogModule,
|
|
609
|
-
RemoteLoaderModule], exports: [AddonBlockLoaderComponent] });
|
|
610
|
-
PepAddonBlockLoaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, imports: [[
|
|
611
|
-
i4.CommonModule,
|
|
612
|
-
i1.PepNgxLibModule,
|
|
613
|
-
i3.PepAddonLoaderModule,
|
|
614
|
-
i2.PepDialogModule,
|
|
615
|
-
dialog.MatDialogModule,
|
|
616
|
-
RemoteLoaderModule
|
|
617
|
-
]] });
|
|
618
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, decorators: [{
|
|
619
|
-
type: i0.NgModule,
|
|
620
|
-
args: [{
|
|
621
|
-
declarations: [
|
|
622
|
-
AddonBlockLoaderComponent
|
|
623
|
-
],
|
|
624
|
-
imports: [
|
|
625
|
-
i4.CommonModule,
|
|
626
|
-
i1.PepNgxLibModule,
|
|
627
|
-
i3.PepAddonLoaderModule,
|
|
628
|
-
i2.PepDialogModule,
|
|
629
|
-
dialog.MatDialogModule,
|
|
630
|
-
RemoteLoaderModule
|
|
631
|
-
],
|
|
632
|
-
exports: [AddonBlockLoaderComponent]
|
|
633
|
-
}]
|
|
516
|
+
var pepIcons = [
|
|
517
|
+
i1$1.pepIconTextAlignCenter,
|
|
518
|
+
i1$1.pepIconTextAlignLeft,
|
|
519
|
+
i1$1.pepIconTextAlignRight
|
|
520
|
+
];
|
|
521
|
+
var PepAddonBlockLoaderModule = /** @class */ (function () {
|
|
522
|
+
function PepAddonBlockLoaderModule(pepIconRegistry) {
|
|
523
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
524
|
+
this.pepIconRegistry.registerIcons(pepIcons);
|
|
525
|
+
}
|
|
526
|
+
return PepAddonBlockLoaderModule;
|
|
527
|
+
}());
|
|
528
|
+
PepAddonBlockLoaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, deps: [{ token: i1__namespace$1.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
529
|
+
PepAddonBlockLoaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, declarations: [AddonBlockLoaderComponent], imports: [i4.CommonModule,
|
|
530
|
+
i1.PepNgxLibModule,
|
|
531
|
+
i3.PepAddonLoaderModule,
|
|
532
|
+
i2.PepDialogModule,
|
|
533
|
+
dialog.MatDialogModule], exports: [AddonBlockLoaderComponent] });
|
|
534
|
+
PepAddonBlockLoaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, imports: [[
|
|
535
|
+
i4.CommonModule,
|
|
536
|
+
i1.PepNgxLibModule,
|
|
537
|
+
i3.PepAddonLoaderModule,
|
|
538
|
+
i2.PepDialogModule,
|
|
539
|
+
dialog.MatDialogModule
|
|
540
|
+
]] });
|
|
541
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepAddonBlockLoaderModule, decorators: [{
|
|
542
|
+
type: i0.NgModule,
|
|
543
|
+
args: [{
|
|
544
|
+
declarations: [
|
|
545
|
+
AddonBlockLoaderComponent
|
|
546
|
+
],
|
|
547
|
+
imports: [
|
|
548
|
+
i4.CommonModule,
|
|
549
|
+
i1.PepNgxLibModule,
|
|
550
|
+
i3.PepAddonLoaderModule,
|
|
551
|
+
i2.PepDialogModule,
|
|
552
|
+
dialog.MatDialogModule
|
|
553
|
+
],
|
|
554
|
+
exports: [AddonBlockLoaderComponent]
|
|
555
|
+
}]
|
|
634
556
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.PepIconRegistry }]; } });
|
|
635
557
|
|
|
636
|
-
/*
|
|
637
|
-
* Public API Surface of ngx-composite-lib/dimx-export
|
|
558
|
+
/*
|
|
559
|
+
* Public API Surface of ngx-composite-lib/dimx-export
|
|
638
560
|
*/
|
|
639
561
|
|
|
640
|
-
/**
|
|
641
|
-
* Generated bundle index. Do not edit.
|
|
562
|
+
/**
|
|
563
|
+
* Generated bundle index. Do not edit.
|
|
642
564
|
*/
|
|
643
565
|
|
|
644
566
|
exports.AddonBlockLoaderComponent = AddonBlockLoaderComponent;
|