@fluxo-dev/api-client-base 0.0.22 → 0.0.24
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/index.cjs.js +472 -369
- package/package.json +2 -2
- package/src/lib/configuration/app-menu-create-command.d.ts +1 -0
- package/src/lib/configuration/app-menu.d.ts +1 -0
- package/src/lib/configuration/configuration.service.d.ts +15 -10
- package/src/lib/configuration/index.d.ts +1 -0
- package/src/lib/fluxo-state-dispatcher.d.ts +7 -0
- package/src/lib/security/security-facade.d.ts +3 -0
- package/src/lib/security/user/current-user.service.d.ts +11 -0
- package/src/lib/security/user/index.d.ts +1 -0
- package/src/lib/security/user/user-service.d.ts +0 -1
package/index.cjs.js
CHANGED
|
@@ -46,7 +46,7 @@ var check = function (it) {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
49
|
-
var global$
|
|
49
|
+
var global$i =
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
51
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
52
52
|
check(typeof window == 'object' && window) ||
|
|
@@ -131,85 +131,85 @@ var toIndexedObject$3 = function (it) {
|
|
|
131
131
|
return IndexedObject$1(requireObjectCoercible$2(it));
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
var isObject$
|
|
134
|
+
var isObject$9 = function (it) {
|
|
135
135
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
var isObject$
|
|
138
|
+
var isObject$8 = isObject$9;
|
|
139
139
|
|
|
140
140
|
// `ToPrimitive` abstract operation
|
|
141
141
|
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
142
142
|
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
143
143
|
// and the second argument - flag - preferred type is a string
|
|
144
144
|
var toPrimitive$2 = function (input, PREFERRED_STRING) {
|
|
145
|
-
if (!isObject$
|
|
145
|
+
if (!isObject$8(input)) return input;
|
|
146
146
|
var fn, val;
|
|
147
|
-
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$
|
|
148
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject$
|
|
149
|
-
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$
|
|
147
|
+
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
148
|
+
if (typeof (fn = input.valueOf) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
149
|
+
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
150
150
|
throw TypeError("Can't convert object to primitive value");
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
154
154
|
|
|
155
|
-
var has$
|
|
155
|
+
var has$9 = function (it, key) {
|
|
156
156
|
return hasOwnProperty.call(it, key);
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
var global$
|
|
160
|
-
var isObject$
|
|
159
|
+
var global$h = global$i;
|
|
160
|
+
var isObject$7 = isObject$9;
|
|
161
161
|
|
|
162
|
-
var document$2 = global$
|
|
162
|
+
var document$2 = global$h.document;
|
|
163
163
|
// typeof document.createElement is 'object' in old IE
|
|
164
|
-
var EXISTS = isObject$
|
|
164
|
+
var EXISTS = isObject$7(document$2) && isObject$7(document$2.createElement);
|
|
165
165
|
|
|
166
166
|
var documentCreateElement$1 = function (it) {
|
|
167
167
|
return EXISTS ? document$2.createElement(it) : {};
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
var DESCRIPTORS$
|
|
170
|
+
var DESCRIPTORS$8 = descriptors;
|
|
171
171
|
var fails$5 = fails$8;
|
|
172
172
|
var createElement$1 = documentCreateElement$1;
|
|
173
173
|
|
|
174
174
|
// Thank's IE8 for his funny defineProperty
|
|
175
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
175
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
|
|
176
176
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
177
177
|
get: function () { return 7; }
|
|
178
178
|
}).a != 7;
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
var DESCRIPTORS$
|
|
181
|
+
var DESCRIPTORS$7 = descriptors;
|
|
182
182
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
183
183
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
184
184
|
var toIndexedObject$2 = toIndexedObject$3;
|
|
185
185
|
var toPrimitive$1 = toPrimitive$2;
|
|
186
|
-
var has$
|
|
186
|
+
var has$8 = has$9;
|
|
187
187
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
188
188
|
|
|
189
189
|
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
190
190
|
|
|
191
191
|
// `Object.getOwnPropertyDescriptor` method
|
|
192
192
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
|
|
193
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
193
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
194
194
|
O = toIndexedObject$2(O);
|
|
195
195
|
P = toPrimitive$1(P, true);
|
|
196
196
|
if (IE8_DOM_DEFINE$1) try {
|
|
197
197
|
return nativeGetOwnPropertyDescriptor(O, P);
|
|
198
198
|
} catch (error) { /* empty */ }
|
|
199
|
-
if (has$
|
|
199
|
+
if (has$8(O, P)) return createPropertyDescriptor$1(!propertyIsEnumerableModule$1.f.call(O, P), O[P]);
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
var objectDefineProperty = {};
|
|
203
203
|
|
|
204
|
-
var isObject$
|
|
204
|
+
var isObject$6 = isObject$9;
|
|
205
205
|
|
|
206
206
|
var anObject$8 = function (it) {
|
|
207
|
-
if (!isObject$
|
|
207
|
+
if (!isObject$6(it)) {
|
|
208
208
|
throw TypeError(String(it) + ' is not an object');
|
|
209
209
|
} return it;
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
var DESCRIPTORS$
|
|
212
|
+
var DESCRIPTORS$6 = descriptors;
|
|
213
213
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
214
214
|
var anObject$7 = anObject$8;
|
|
215
215
|
var toPrimitive = toPrimitive$2;
|
|
@@ -218,7 +218,7 @@ var nativeDefineProperty = Object.defineProperty;
|
|
|
218
218
|
|
|
219
219
|
// `Object.defineProperty` method
|
|
220
220
|
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
221
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
221
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
222
222
|
anObject$7(O);
|
|
223
223
|
P = toPrimitive(P, true);
|
|
224
224
|
anObject$7(Attributes);
|
|
@@ -230,11 +230,11 @@ objectDefineProperty.f = DESCRIPTORS$5 ? nativeDefineProperty : function defineP
|
|
|
230
230
|
return O;
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
var DESCRIPTORS$
|
|
233
|
+
var DESCRIPTORS$5 = descriptors;
|
|
234
234
|
var definePropertyModule$4 = objectDefineProperty;
|
|
235
235
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
236
236
|
|
|
237
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$
|
|
237
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
238
238
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor(1, value));
|
|
239
239
|
} : function (object, key, value) {
|
|
240
240
|
object[key] = value;
|
|
@@ -243,22 +243,22 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value
|
|
|
243
243
|
|
|
244
244
|
var redefine$3 = {exports: {}};
|
|
245
245
|
|
|
246
|
-
var global$
|
|
246
|
+
var global$g = global$i;
|
|
247
247
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
248
248
|
|
|
249
249
|
var setGlobal$3 = function (key, value) {
|
|
250
250
|
try {
|
|
251
|
-
createNonEnumerableProperty$3(global$
|
|
251
|
+
createNonEnumerableProperty$3(global$g, key, value);
|
|
252
252
|
} catch (error) {
|
|
253
|
-
global$
|
|
253
|
+
global$g[key] = value;
|
|
254
254
|
} return value;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
var global$
|
|
257
|
+
var global$f = global$i;
|
|
258
258
|
var setGlobal$2 = setGlobal$3;
|
|
259
259
|
|
|
260
260
|
var SHARED = '__core-js_shared__';
|
|
261
|
-
var store$3 = global$
|
|
261
|
+
var store$3 = global$f[SHARED] || setGlobal$2(SHARED, {});
|
|
262
262
|
|
|
263
263
|
var sharedStore = store$3;
|
|
264
264
|
|
|
@@ -275,10 +275,10 @@ if (typeof store$2.inspectSource != 'function') {
|
|
|
275
275
|
|
|
276
276
|
var inspectSource$3 = store$2.inspectSource;
|
|
277
277
|
|
|
278
|
-
var global$
|
|
278
|
+
var global$e = global$i;
|
|
279
279
|
var inspectSource$2 = inspectSource$3;
|
|
280
280
|
|
|
281
|
-
var WeakMap$1 = global$
|
|
281
|
+
var WeakMap$1 = global$e.WeakMap;
|
|
282
282
|
|
|
283
283
|
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource$2(WeakMap$1));
|
|
284
284
|
|
|
@@ -313,24 +313,24 @@ var sharedKey$2 = function (key) {
|
|
|
313
313
|
var hiddenKeys$4 = {};
|
|
314
314
|
|
|
315
315
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
316
|
-
var global$
|
|
317
|
-
var isObject$
|
|
316
|
+
var global$d = global$i;
|
|
317
|
+
var isObject$5 = isObject$9;
|
|
318
318
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
319
|
-
var objectHas = has$
|
|
319
|
+
var objectHas = has$9;
|
|
320
320
|
var sharedKey$1 = sharedKey$2;
|
|
321
321
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
322
322
|
|
|
323
|
-
var WeakMap = global$
|
|
324
|
-
var set$1, get, has$
|
|
323
|
+
var WeakMap = global$d.WeakMap;
|
|
324
|
+
var set$1, get, has$7;
|
|
325
325
|
|
|
326
326
|
var enforce = function (it) {
|
|
327
|
-
return has$
|
|
327
|
+
return has$7(it) ? get(it) : set$1(it, {});
|
|
328
328
|
};
|
|
329
329
|
|
|
330
330
|
var getterFor = function (TYPE) {
|
|
331
331
|
return function (it) {
|
|
332
332
|
var state;
|
|
333
|
-
if (!isObject$
|
|
333
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
334
334
|
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
335
335
|
} return state;
|
|
336
336
|
};
|
|
@@ -348,7 +348,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
348
348
|
get = function (it) {
|
|
349
349
|
return wmget.call(store, it) || {};
|
|
350
350
|
};
|
|
351
|
-
has$
|
|
351
|
+
has$7 = function (it) {
|
|
352
352
|
return wmhas.call(store, it);
|
|
353
353
|
};
|
|
354
354
|
} else {
|
|
@@ -361,7 +361,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
361
361
|
get = function (it) {
|
|
362
362
|
return objectHas(it, STATE) ? it[STATE] : {};
|
|
363
363
|
};
|
|
364
|
-
has$
|
|
364
|
+
has$7 = function (it) {
|
|
365
365
|
return objectHas(it, STATE);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
@@ -369,14 +369,14 @@ if (NATIVE_WEAK_MAP) {
|
|
|
369
369
|
var internalState = {
|
|
370
370
|
set: set$1,
|
|
371
371
|
get: get,
|
|
372
|
-
has: has$
|
|
372
|
+
has: has$7,
|
|
373
373
|
enforce: enforce,
|
|
374
374
|
getterFor: getterFor
|
|
375
375
|
};
|
|
376
376
|
|
|
377
|
-
var global$
|
|
377
|
+
var global$c = global$i;
|
|
378
378
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
379
|
-
var has$
|
|
379
|
+
var has$6 = has$9;
|
|
380
380
|
var setGlobal$1 = setGlobal$3;
|
|
381
381
|
var inspectSource$1 = inspectSource$3;
|
|
382
382
|
var InternalStateModule$1 = internalState;
|
|
@@ -390,10 +390,10 @@ var TEMPLATE = String(String).split('String');
|
|
|
390
390
|
var simple = options ? !!options.enumerable : false;
|
|
391
391
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
392
392
|
if (typeof value == 'function') {
|
|
393
|
-
if (typeof key == 'string' && !has$
|
|
393
|
+
if (typeof key == 'string' && !has$6(value, 'name')) createNonEnumerableProperty$1(value, 'name', key);
|
|
394
394
|
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
395
395
|
}
|
|
396
|
-
if (O === global$
|
|
396
|
+
if (O === global$c) {
|
|
397
397
|
if (simple) O[key] = value;
|
|
398
398
|
else setGlobal$1(key, value);
|
|
399
399
|
return;
|
|
@@ -409,20 +409,20 @@ var TEMPLATE = String(String).split('String');
|
|
|
409
409
|
return typeof this == 'function' && getInternalState$1(this).source || inspectSource$1(this);
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
var global$
|
|
412
|
+
var global$b = global$i;
|
|
413
413
|
|
|
414
|
-
var path$1 = global$
|
|
414
|
+
var path$1 = global$b;
|
|
415
415
|
|
|
416
416
|
var path = path$1;
|
|
417
|
-
var global$
|
|
417
|
+
var global$a = global$i;
|
|
418
418
|
|
|
419
419
|
var aFunction$5 = function (variable) {
|
|
420
420
|
return typeof variable == 'function' ? variable : undefined;
|
|
421
421
|
};
|
|
422
422
|
|
|
423
423
|
var getBuiltIn$5 = function (namespace, method) {
|
|
424
|
-
return arguments.length < 2 ? aFunction$5(path[namespace]) || aFunction$5(global$
|
|
425
|
-
: path[namespace] && path[namespace][method] || global$
|
|
424
|
+
return arguments.length < 2 ? aFunction$5(path[namespace]) || aFunction$5(global$a[namespace])
|
|
425
|
+
: path[namespace] && path[namespace][method] || global$a[namespace] && global$a[namespace][method];
|
|
426
426
|
};
|
|
427
427
|
|
|
428
428
|
var objectGetOwnPropertyNames = {};
|
|
@@ -492,7 +492,7 @@ var arrayIncludes = {
|
|
|
492
492
|
indexOf: createMethod(false)
|
|
493
493
|
};
|
|
494
494
|
|
|
495
|
-
var has$
|
|
495
|
+
var has$5 = has$9;
|
|
496
496
|
var toIndexedObject = toIndexedObject$3;
|
|
497
497
|
var indexOf = arrayIncludes.indexOf;
|
|
498
498
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -502,9 +502,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
502
502
|
var i = 0;
|
|
503
503
|
var result = [];
|
|
504
504
|
var key;
|
|
505
|
-
for (key in O) !has$
|
|
505
|
+
for (key in O) !has$5(hiddenKeys$2, key) && has$5(O, key) && result.push(key);
|
|
506
506
|
// Don't enum bug & hidden keys
|
|
507
|
-
while (names.length > i) if (has$
|
|
507
|
+
while (names.length > i) if (has$5(O, key = names[i++])) {
|
|
508
508
|
~indexOf(result, key) || result.push(key);
|
|
509
509
|
}
|
|
510
510
|
return result;
|
|
@@ -548,18 +548,18 @@ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
548
548
|
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
549
549
|
};
|
|
550
550
|
|
|
551
|
-
var has$
|
|
551
|
+
var has$4 = has$9;
|
|
552
552
|
var ownKeys = ownKeys$1;
|
|
553
553
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
554
554
|
var definePropertyModule$3 = objectDefineProperty;
|
|
555
555
|
|
|
556
|
-
var copyConstructorProperties$
|
|
556
|
+
var copyConstructorProperties$2 = function (target, source) {
|
|
557
557
|
var keys = ownKeys(source);
|
|
558
558
|
var defineProperty = definePropertyModule$3.f;
|
|
559
559
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
560
560
|
for (var i = 0; i < keys.length; i++) {
|
|
561
561
|
var key = keys[i];
|
|
562
|
-
if (!has$
|
|
562
|
+
if (!has$4(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
|
|
@@ -585,12 +585,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
585
585
|
|
|
586
586
|
var isForced_1 = isForced$2;
|
|
587
587
|
|
|
588
|
-
var global$
|
|
588
|
+
var global$9 = global$i;
|
|
589
589
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
590
590
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
591
591
|
var redefine$2 = redefine$3.exports;
|
|
592
592
|
var setGlobal = setGlobal$3;
|
|
593
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
593
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
594
594
|
var isForced$1 = isForced_1;
|
|
595
595
|
|
|
596
596
|
/*
|
|
@@ -613,11 +613,11 @@ var _export = function (options, source) {
|
|
|
613
613
|
var STATIC = options.stat;
|
|
614
614
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
615
615
|
if (GLOBAL) {
|
|
616
|
-
target = global$
|
|
616
|
+
target = global$9;
|
|
617
617
|
} else if (STATIC) {
|
|
618
|
-
target = global$
|
|
618
|
+
target = global$9[TARGET] || setGlobal(TARGET, {});
|
|
619
619
|
} else {
|
|
620
|
-
target = (global$
|
|
620
|
+
target = (global$9[TARGET] || {}).prototype;
|
|
621
621
|
}
|
|
622
622
|
if (target) for (key in source) {
|
|
623
623
|
sourceProperty = source[key];
|
|
@@ -629,7 +629,7 @@ var _export = function (options, source) {
|
|
|
629
629
|
// contained in target
|
|
630
630
|
if (!FORCED && targetProperty !== undefined) {
|
|
631
631
|
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
632
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
632
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
633
633
|
}
|
|
634
634
|
// add a flag to not completely full polyfills
|
|
635
635
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
@@ -657,7 +657,7 @@ var toObject$2 = function (argument) {
|
|
|
657
657
|
return Object(requireObjectCoercible$1(argument));
|
|
658
658
|
};
|
|
659
659
|
|
|
660
|
-
var DESCRIPTORS$
|
|
660
|
+
var DESCRIPTORS$4 = descriptors;
|
|
661
661
|
var fails$3 = fails$8;
|
|
662
662
|
var objectKeys$1 = objectKeys$2;
|
|
663
663
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
@@ -666,16 +666,16 @@ var toObject$1 = toObject$2;
|
|
|
666
666
|
var IndexedObject = indexedObject;
|
|
667
667
|
|
|
668
668
|
var nativeAssign = Object.assign;
|
|
669
|
-
var defineProperty$
|
|
669
|
+
var defineProperty$3 = Object.defineProperty;
|
|
670
670
|
|
|
671
671
|
// `Object.assign` method
|
|
672
672
|
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
673
673
|
var objectAssign = !nativeAssign || fails$3(function () {
|
|
674
674
|
// should have correct order of operations (Edge bug)
|
|
675
|
-
if (DESCRIPTORS$
|
|
675
|
+
if (DESCRIPTORS$4 && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
|
|
676
676
|
enumerable: true,
|
|
677
677
|
get: function () {
|
|
678
|
-
defineProperty$
|
|
678
|
+
defineProperty$3(this, 'b', {
|
|
679
679
|
value: 3,
|
|
680
680
|
enumerable: false
|
|
681
681
|
});
|
|
@@ -704,23 +704,23 @@ var objectAssign = !nativeAssign || fails$3(function () {
|
|
|
704
704
|
var key;
|
|
705
705
|
while (length > j) {
|
|
706
706
|
key = keys[j++];
|
|
707
|
-
if (!DESCRIPTORS$
|
|
707
|
+
if (!DESCRIPTORS$4 || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
|
708
708
|
}
|
|
709
709
|
} return T;
|
|
710
710
|
} : nativeAssign;
|
|
711
711
|
|
|
712
|
-
var $$
|
|
712
|
+
var $$5 = _export;
|
|
713
713
|
var assign = objectAssign;
|
|
714
714
|
|
|
715
715
|
// `Object.assign` method
|
|
716
716
|
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
717
|
-
$$
|
|
717
|
+
$$5({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
718
718
|
assign: assign
|
|
719
719
|
});
|
|
720
720
|
|
|
721
|
-
var global$
|
|
721
|
+
var global$8 = global$i;
|
|
722
722
|
|
|
723
|
-
var nativePromiseConstructor = global$
|
|
723
|
+
var nativePromiseConstructor = global$8.Promise;
|
|
724
724
|
|
|
725
725
|
var redefine$1 = redefine$3.exports;
|
|
726
726
|
|
|
@@ -745,40 +745,40 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
745
745
|
// eslint-disable-next-line no-undef
|
|
746
746
|
&& typeof Symbol.iterator == 'symbol';
|
|
747
747
|
|
|
748
|
-
var global$
|
|
748
|
+
var global$7 = global$i;
|
|
749
749
|
var shared = shared$2.exports;
|
|
750
|
-
var has$
|
|
750
|
+
var has$3 = has$9;
|
|
751
751
|
var uid = uid$2;
|
|
752
752
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
753
753
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
754
754
|
|
|
755
755
|
var WellKnownSymbolsStore = shared('wks');
|
|
756
|
-
var Symbol$1 = global$
|
|
756
|
+
var Symbol$1 = global$7.Symbol;
|
|
757
757
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
758
758
|
|
|
759
759
|
var wellKnownSymbol$d = function (name) {
|
|
760
|
-
if (!has$
|
|
761
|
-
if (NATIVE_SYMBOL && has$
|
|
760
|
+
if (!has$3(WellKnownSymbolsStore, name)) {
|
|
761
|
+
if (NATIVE_SYMBOL && has$3(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
762
762
|
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
763
763
|
} return WellKnownSymbolsStore[name];
|
|
764
764
|
};
|
|
765
765
|
|
|
766
|
-
var defineProperty$
|
|
767
|
-
var has$
|
|
766
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
767
|
+
var has$2 = has$9;
|
|
768
768
|
var wellKnownSymbol$c = wellKnownSymbol$d;
|
|
769
769
|
|
|
770
770
|
var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
|
|
771
771
|
|
|
772
772
|
var setToStringTag$1 = function (it, TAG, STATIC) {
|
|
773
|
-
if (it && !has$
|
|
774
|
-
defineProperty$
|
|
773
|
+
if (it && !has$2(it = STATIC ? it : it.prototype, TO_STRING_TAG$2)) {
|
|
774
|
+
defineProperty$2(it, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
775
775
|
}
|
|
776
776
|
};
|
|
777
777
|
|
|
778
778
|
var getBuiltIn$3 = getBuiltIn$5;
|
|
779
779
|
var definePropertyModule$2 = objectDefineProperty;
|
|
780
780
|
var wellKnownSymbol$b = wellKnownSymbol$d;
|
|
781
|
-
var DESCRIPTORS$
|
|
781
|
+
var DESCRIPTORS$3 = descriptors;
|
|
782
782
|
|
|
783
783
|
var SPECIES$3 = wellKnownSymbol$b('species');
|
|
784
784
|
|
|
@@ -786,7 +786,7 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
786
786
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
787
787
|
var defineProperty = definePropertyModule$2.f;
|
|
788
788
|
|
|
789
|
-
if (DESCRIPTORS$
|
|
789
|
+
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
|
|
790
790
|
defineProperty(Constructor, SPECIES$3, {
|
|
791
791
|
configurable: true,
|
|
792
792
|
get: function () { return this; }
|
|
@@ -1017,7 +1017,7 @@ var userAgent$1 = engineUserAgent;
|
|
|
1017
1017
|
|
|
1018
1018
|
var engineIsIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
1019
1019
|
|
|
1020
|
-
var global$
|
|
1020
|
+
var global$6 = global$i;
|
|
1021
1021
|
var fails$1 = fails$8;
|
|
1022
1022
|
var classof$4 = classofRaw$1;
|
|
1023
1023
|
var bind$2 = functionBindContext;
|
|
@@ -1025,12 +1025,12 @@ var html$1 = html$2;
|
|
|
1025
1025
|
var createElement = documentCreateElement$1;
|
|
1026
1026
|
var IS_IOS$1 = engineIsIos;
|
|
1027
1027
|
|
|
1028
|
-
var location = global$
|
|
1029
|
-
var set = global$
|
|
1030
|
-
var clear = global$
|
|
1031
|
-
var process$3 = global$
|
|
1032
|
-
var MessageChannel = global$
|
|
1033
|
-
var Dispatch = global$
|
|
1028
|
+
var location = global$6.location;
|
|
1029
|
+
var set = global$6.setImmediate;
|
|
1030
|
+
var clear = global$6.clearImmediate;
|
|
1031
|
+
var process$3 = global$6.process;
|
|
1032
|
+
var MessageChannel = global$6.MessageChannel;
|
|
1033
|
+
var Dispatch = global$6.Dispatch;
|
|
1034
1034
|
var counter = 0;
|
|
1035
1035
|
var queue = {};
|
|
1036
1036
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -1057,7 +1057,7 @@ var listener = function (event) {
|
|
|
1057
1057
|
|
|
1058
1058
|
var post = function (id) {
|
|
1059
1059
|
// old engines have not location.origin
|
|
1060
|
-
global$
|
|
1060
|
+
global$6.postMessage(id + '', location.protocol + '//' + location.host);
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
1063
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -1096,14 +1096,14 @@ if (!set || !clear) {
|
|
|
1096
1096
|
// Browsers with postMessage, skip WebWorkers
|
|
1097
1097
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1098
1098
|
} else if (
|
|
1099
|
-
global$
|
|
1099
|
+
global$6.addEventListener &&
|
|
1100
1100
|
typeof postMessage == 'function' &&
|
|
1101
|
-
!global$
|
|
1101
|
+
!global$6.importScripts &&
|
|
1102
1102
|
!fails$1(post) &&
|
|
1103
1103
|
location.protocol !== 'file:'
|
|
1104
1104
|
) {
|
|
1105
1105
|
defer = post;
|
|
1106
|
-
global$
|
|
1106
|
+
global$6.addEventListener('message', listener, false);
|
|
1107
1107
|
// IE8-
|
|
1108
1108
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1109
1109
|
defer = function (id) {
|
|
@@ -1125,18 +1125,18 @@ var task$1 = {
|
|
|
1125
1125
|
clear: clear
|
|
1126
1126
|
};
|
|
1127
1127
|
|
|
1128
|
-
var global$
|
|
1128
|
+
var global$5 = global$i;
|
|
1129
1129
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1130
1130
|
var classof$3 = classofRaw$1;
|
|
1131
1131
|
var macrotask = task$1.set;
|
|
1132
1132
|
var IS_IOS = engineIsIos;
|
|
1133
1133
|
|
|
1134
|
-
var MutationObserver = global$
|
|
1135
|
-
var process$2 = global$
|
|
1136
|
-
var Promise$1 = global$
|
|
1134
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
1135
|
+
var process$2 = global$5.process;
|
|
1136
|
+
var Promise$1 = global$5.Promise;
|
|
1137
1137
|
var IS_NODE$1 = classof$3(process$2) == 'process';
|
|
1138
1138
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
1139
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
1139
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
|
|
1140
1140
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1141
1141
|
|
|
1142
1142
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -1190,7 +1190,7 @@ if (!queueMicrotask) {
|
|
|
1190
1190
|
} else {
|
|
1191
1191
|
notify$1 = function () {
|
|
1192
1192
|
// strange IE + webpack dev server bug - use .call(global)
|
|
1193
|
-
macrotask.call(global$
|
|
1193
|
+
macrotask.call(global$5, flush);
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
@@ -1225,22 +1225,22 @@ newPromiseCapability$2.f = function (C) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
|
|
1227
1227
|
var anObject$2 = anObject$8;
|
|
1228
|
-
var isObject$
|
|
1228
|
+
var isObject$4 = isObject$9;
|
|
1229
1229
|
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
1230
1230
|
|
|
1231
1231
|
var promiseResolve$1 = function (C, x) {
|
|
1232
1232
|
anObject$2(C);
|
|
1233
|
-
if (isObject$
|
|
1233
|
+
if (isObject$4(x) && x.constructor === C) return x;
|
|
1234
1234
|
var promiseCapability = newPromiseCapability$1.f(C);
|
|
1235
1235
|
var resolve = promiseCapability.resolve;
|
|
1236
1236
|
resolve(x);
|
|
1237
1237
|
return promiseCapability.promise;
|
|
1238
1238
|
};
|
|
1239
1239
|
|
|
1240
|
-
var global$
|
|
1240
|
+
var global$4 = global$i;
|
|
1241
1241
|
|
|
1242
1242
|
var hostReportErrors$1 = function (a, b) {
|
|
1243
|
-
var console = global$
|
|
1243
|
+
var console = global$4.console;
|
|
1244
1244
|
if (console && console.error) {
|
|
1245
1245
|
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
1246
1246
|
}
|
|
@@ -1254,10 +1254,10 @@ var perform$1 = function (exec) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
1256
|
|
|
1257
|
-
var global$
|
|
1257
|
+
var global$3 = global$i;
|
|
1258
1258
|
var userAgent = engineUserAgent;
|
|
1259
1259
|
|
|
1260
|
-
var process$1 = global$
|
|
1260
|
+
var process$1 = global$3.process;
|
|
1261
1261
|
var versions = process$1 && process$1.versions;
|
|
1262
1262
|
var v8 = versions && versions.v8;
|
|
1263
1263
|
var match, version;
|
|
@@ -1275,15 +1275,15 @@ if (v8) {
|
|
|
1275
1275
|
|
|
1276
1276
|
var engineV8Version = version && +version;
|
|
1277
1277
|
|
|
1278
|
-
var $$
|
|
1279
|
-
var global$
|
|
1278
|
+
var $$4 = _export;
|
|
1279
|
+
var global$2 = global$i;
|
|
1280
1280
|
var getBuiltIn = getBuiltIn$5;
|
|
1281
1281
|
var NativePromise = nativePromiseConstructor;
|
|
1282
1282
|
var redefine = redefine$3.exports;
|
|
1283
1283
|
var redefineAll = redefineAll$1;
|
|
1284
1284
|
var setToStringTag = setToStringTag$1;
|
|
1285
1285
|
var setSpecies = setSpecies$1;
|
|
1286
|
-
var isObject$
|
|
1286
|
+
var isObject$3 = isObject$9;
|
|
1287
1287
|
var aFunction = aFunction$4;
|
|
1288
1288
|
var anInstance = anInstance$1;
|
|
1289
1289
|
var classof$2 = classofRaw$1;
|
|
@@ -1308,14 +1308,14 @@ var getInternalState = InternalStateModule.get;
|
|
|
1308
1308
|
var setInternalState = InternalStateModule.set;
|
|
1309
1309
|
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
1310
1310
|
var PromiseConstructor = NativePromise;
|
|
1311
|
-
var TypeError$1 = global$
|
|
1312
|
-
var document$1 = global$
|
|
1313
|
-
var process = global$
|
|
1311
|
+
var TypeError$1 = global$2.TypeError;
|
|
1312
|
+
var document$1 = global$2.document;
|
|
1313
|
+
var process = global$2.process;
|
|
1314
1314
|
var $fetch = getBuiltIn('fetch');
|
|
1315
1315
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
1316
1316
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
1317
1317
|
var IS_NODE = classof$2(process) == 'process';
|
|
1318
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
1318
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
|
|
1319
1319
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
1320
1320
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
1321
1321
|
var PENDING = 0;
|
|
@@ -1356,7 +1356,7 @@ var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (itera
|
|
|
1356
1356
|
// helpers
|
|
1357
1357
|
var isThenable = function (it) {
|
|
1358
1358
|
var then;
|
|
1359
|
-
return isObject$
|
|
1359
|
+
return isObject$3(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
1362
|
var notify = function (promise, state, isReject) {
|
|
@@ -1414,14 +1414,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
1414
1414
|
event.promise = promise;
|
|
1415
1415
|
event.reason = reason;
|
|
1416
1416
|
event.initEvent(name, false, true);
|
|
1417
|
-
global$
|
|
1417
|
+
global$2.dispatchEvent(event);
|
|
1418
1418
|
} else event = { promise: promise, reason: reason };
|
|
1419
|
-
if (handler = global$
|
|
1419
|
+
if (handler = global$2['on' + name]) handler(event);
|
|
1420
1420
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
1423
|
var onUnhandled = function (promise, state) {
|
|
1424
|
-
task.call(global$
|
|
1424
|
+
task.call(global$2, function () {
|
|
1425
1425
|
var value = state.value;
|
|
1426
1426
|
var IS_UNHANDLED = isUnhandled(state);
|
|
1427
1427
|
var result;
|
|
@@ -1443,7 +1443,7 @@ var isUnhandled = function (state) {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
|
|
1445
1445
|
var onHandleUnhandled = function (promise, state) {
|
|
1446
|
-
task.call(global$
|
|
1446
|
+
task.call(global$2, function () {
|
|
1447
1447
|
if (IS_NODE) {
|
|
1448
1448
|
process.emit('rejectionHandled', promise);
|
|
1449
1449
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
@@ -1567,16 +1567,16 @@ if (FORCED) {
|
|
|
1567
1567
|
}, { unsafe: true });
|
|
1568
1568
|
|
|
1569
1569
|
// wrap fetch result
|
|
1570
|
-
if (typeof $fetch == 'function') $$
|
|
1570
|
+
if (typeof $fetch == 'function') $$4({ global: true, enumerable: true, forced: true }, {
|
|
1571
1571
|
// eslint-disable-next-line no-unused-vars
|
|
1572
1572
|
fetch: function fetch(input /* , init */) {
|
|
1573
|
-
return promiseResolve(PromiseConstructor, $fetch.apply(global$
|
|
1573
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global$2, arguments));
|
|
1574
1574
|
}
|
|
1575
1575
|
});
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
|
-
$$
|
|
1579
|
+
$$4({ global: true, wrap: true, forced: FORCED }, {
|
|
1580
1580
|
Promise: PromiseConstructor
|
|
1581
1581
|
});
|
|
1582
1582
|
|
|
@@ -1586,7 +1586,7 @@ setSpecies(PROMISE);
|
|
|
1586
1586
|
PromiseWrapper = getBuiltIn(PROMISE);
|
|
1587
1587
|
|
|
1588
1588
|
// statics
|
|
1589
|
-
$$
|
|
1589
|
+
$$4({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
1590
1590
|
// `Promise.reject` method
|
|
1591
1591
|
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
1592
1592
|
reject: function reject(r) {
|
|
@@ -1596,7 +1596,7 @@ $$3({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
|
|
1599
|
-
$$
|
|
1599
|
+
$$4({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
1600
1600
|
// `Promise.resolve` method
|
|
1601
1601
|
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
1602
1602
|
resolve: function resolve(x) {
|
|
@@ -1604,7 +1604,7 @@ $$3({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
});
|
|
1606
1606
|
|
|
1607
|
-
$$
|
|
1607
|
+
$$4({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
1608
1608
|
// `Promise.all` method
|
|
1609
1609
|
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
1610
1610
|
all: function all(iterable) {
|
|
@@ -1734,6 +1734,9 @@ class FluxoStateDispatcher {
|
|
|
1734
1734
|
static dispatchSetAppMenu(items) {
|
|
1735
1735
|
state.store.dispatch(state.setAppMenu(items));
|
|
1736
1736
|
}
|
|
1737
|
+
static dispatchAllowedFrontends(frontends) {
|
|
1738
|
+
state.store.dispatch(state.setAllowedFrontends(frontends));
|
|
1739
|
+
}
|
|
1737
1740
|
static dispatchSetRouteRules(rules) {
|
|
1738
1741
|
state.store.dispatch(state.setRouteRules(rules));
|
|
1739
1742
|
}
|
|
@@ -1749,6 +1752,15 @@ class FluxoStateDispatcher {
|
|
|
1749
1752
|
static dispatchSetUserPermissions(items) {
|
|
1750
1753
|
state.store.dispatch(state.setUserPermissions(items));
|
|
1751
1754
|
}
|
|
1755
|
+
static dispatchSetUserDomainRoles(items) {
|
|
1756
|
+
state.store.dispatch(state.setUserDomainRoles(items));
|
|
1757
|
+
}
|
|
1758
|
+
static dispatchSetFrontends(frontends) {
|
|
1759
|
+
state.store.dispatch(state.setFrontends(frontends));
|
|
1760
|
+
}
|
|
1761
|
+
static dispatchSetCurrentFrontend(frontend) {
|
|
1762
|
+
state.store.dispatch(state.setCurrentFrontend(frontend));
|
|
1763
|
+
}
|
|
1752
1764
|
}
|
|
1753
1765
|
|
|
1754
1766
|
class AuthService {
|
|
@@ -1868,7 +1880,10 @@ class RefreshTokenManager {
|
|
|
1868
1880
|
|
|
1869
1881
|
class ConfigurationService {
|
|
1870
1882
|
getInitialConfiguration() {
|
|
1871
|
-
return HttpClient.Instance().client.get(
|
|
1883
|
+
return HttpClient.Instance().client.get(`client/initial`);
|
|
1884
|
+
}
|
|
1885
|
+
deleteWebMenu(webMenuId) {
|
|
1886
|
+
return HttpClient.Instance().client.delete(`client/menu/${webMenuId}/webapp`);
|
|
1872
1887
|
}
|
|
1873
1888
|
getClientUi() {
|
|
1874
1889
|
return HttpClient.Instance().client.get('client/ui');
|
|
@@ -1903,245 +1918,15 @@ class ConfigurationService {
|
|
|
1903
1918
|
removeMenuItemPermission(domainRoleId, permissionId) {
|
|
1904
1919
|
return HttpClient.Instance().client.delete(`webmenuitem/${domainRoleId}/permissions/${permissionId}`);
|
|
1905
1920
|
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
var anObject$1 = anObject$8;
|
|
1911
|
-
var objectKeys = objectKeys$2;
|
|
1912
|
-
|
|
1913
|
-
// `Object.defineProperties` method
|
|
1914
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
1915
|
-
var objectDefineProperties = DESCRIPTORS$1 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1916
|
-
anObject$1(O);
|
|
1917
|
-
var keys = objectKeys(Properties);
|
|
1918
|
-
var length = keys.length;
|
|
1919
|
-
var index = 0;
|
|
1920
|
-
var key;
|
|
1921
|
-
while (length > index) definePropertyModule$1.f(O, key = keys[index++], Properties[key]);
|
|
1922
|
-
return O;
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
var anObject = anObject$8;
|
|
1926
|
-
var defineProperties = objectDefineProperties;
|
|
1927
|
-
var enumBugKeys = enumBugKeys$3;
|
|
1928
|
-
var hiddenKeys = hiddenKeys$4;
|
|
1929
|
-
var html = html$2;
|
|
1930
|
-
var documentCreateElement = documentCreateElement$1;
|
|
1931
|
-
var sharedKey = sharedKey$2;
|
|
1932
|
-
|
|
1933
|
-
var GT = '>';
|
|
1934
|
-
var LT = '<';
|
|
1935
|
-
var PROTOTYPE = 'prototype';
|
|
1936
|
-
var SCRIPT = 'script';
|
|
1937
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1938
|
-
|
|
1939
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
1940
|
-
|
|
1941
|
-
var scriptTag = function (content) {
|
|
1942
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1943
|
-
};
|
|
1944
|
-
|
|
1945
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1946
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1947
|
-
activeXDocument.write(scriptTag(''));
|
|
1948
|
-
activeXDocument.close();
|
|
1949
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
1950
|
-
activeXDocument = null; // avoid memory leak
|
|
1951
|
-
return temp;
|
|
1952
|
-
};
|
|
1953
|
-
|
|
1954
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1955
|
-
var NullProtoObjectViaIFrame = function () {
|
|
1956
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
1957
|
-
var iframe = documentCreateElement('iframe');
|
|
1958
|
-
var JS = 'java' + SCRIPT + ':';
|
|
1959
|
-
var iframeDocument;
|
|
1960
|
-
iframe.style.display = 'none';
|
|
1961
|
-
html.appendChild(iframe);
|
|
1962
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
1963
|
-
iframe.src = String(JS);
|
|
1964
|
-
iframeDocument = iframe.contentWindow.document;
|
|
1965
|
-
iframeDocument.open();
|
|
1966
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1967
|
-
iframeDocument.close();
|
|
1968
|
-
return iframeDocument.F;
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
// Check for document.domain and active x support
|
|
1972
|
-
// No need to use active x approach when document.domain is not set
|
|
1973
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1974
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1975
|
-
// avoid IE GC bug
|
|
1976
|
-
var activeXDocument;
|
|
1977
|
-
var NullProtoObject = function () {
|
|
1978
|
-
try {
|
|
1979
|
-
/* global ActiveXObject */
|
|
1980
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
1981
|
-
} catch (error) { /* ignore */ }
|
|
1982
|
-
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
|
1983
|
-
var length = enumBugKeys.length;
|
|
1984
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1985
|
-
return NullProtoObject();
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
hiddenKeys[IE_PROTO] = true;
|
|
1989
|
-
|
|
1990
|
-
// `Object.create` method
|
|
1991
|
-
// https://tc39.github.io/ecma262/#sec-object.create
|
|
1992
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
1993
|
-
var result;
|
|
1994
|
-
if (O !== null) {
|
|
1995
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1996
|
-
result = new EmptyConstructor();
|
|
1997
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
1998
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1999
|
-
result[IE_PROTO] = O;
|
|
2000
|
-
} else result = NullProtoObject();
|
|
2001
|
-
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
var wellKnownSymbol$3 = wellKnownSymbol$d;
|
|
2005
|
-
var create = objectCreate;
|
|
2006
|
-
var definePropertyModule = objectDefineProperty;
|
|
2007
|
-
|
|
2008
|
-
var UNSCOPABLES = wellKnownSymbol$3('unscopables');
|
|
2009
|
-
var ArrayPrototype = Array.prototype;
|
|
2010
|
-
|
|
2011
|
-
// Array.prototype[@@unscopables]
|
|
2012
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
2013
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
2014
|
-
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
2015
|
-
configurable: true,
|
|
2016
|
-
value: create(null)
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
// add a key to Array.prototype[@@unscopables]
|
|
2021
|
-
var addToUnscopables$2 = function (key) {
|
|
2022
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
var DESCRIPTORS = descriptors;
|
|
2026
|
-
var fails = fails$8;
|
|
2027
|
-
var has = has$8;
|
|
2028
|
-
|
|
2029
|
-
var defineProperty = Object.defineProperty;
|
|
2030
|
-
var cache = {};
|
|
2031
|
-
|
|
2032
|
-
var thrower = function (it) { throw it; };
|
|
2033
|
-
|
|
2034
|
-
var arrayMethodUsesToLength$1 = function (METHOD_NAME, options) {
|
|
2035
|
-
if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
|
|
2036
|
-
if (!options) options = {};
|
|
2037
|
-
var method = [][METHOD_NAME];
|
|
2038
|
-
var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
|
|
2039
|
-
var argument0 = has(options, 0) ? options[0] : thrower;
|
|
2040
|
-
var argument1 = has(options, 1) ? options[1] : undefined;
|
|
2041
|
-
|
|
2042
|
-
return cache[METHOD_NAME] = !!method && !fails(function () {
|
|
2043
|
-
if (ACCESSORS && !DESCRIPTORS) return true;
|
|
2044
|
-
var O = { length: -1 };
|
|
2045
|
-
|
|
2046
|
-
if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
|
|
2047
|
-
else O[1] = 1;
|
|
2048
|
-
|
|
2049
|
-
method.call(O, argument0, argument1);
|
|
2050
|
-
});
|
|
2051
|
-
};
|
|
2052
|
-
|
|
2053
|
-
var $$2 = _export;
|
|
2054
|
-
var $includes = arrayIncludes.includes;
|
|
2055
|
-
var addToUnscopables$1 = addToUnscopables$2;
|
|
2056
|
-
var arrayMethodUsesToLength = arrayMethodUsesToLength$1;
|
|
2057
|
-
|
|
2058
|
-
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
|
|
2059
|
-
|
|
2060
|
-
// `Array.prototype.includes` method
|
|
2061
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
2062
|
-
$$2({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
|
|
2063
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2064
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2065
|
-
}
|
|
2066
|
-
});
|
|
2067
|
-
|
|
2068
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
2069
|
-
addToUnscopables$1('includes');
|
|
2070
|
-
|
|
2071
|
-
var isObject$1 = isObject$8;
|
|
2072
|
-
var classof$1 = classofRaw$1;
|
|
2073
|
-
var wellKnownSymbol$2 = wellKnownSymbol$d;
|
|
2074
|
-
|
|
2075
|
-
var MATCH$1 = wellKnownSymbol$2('match');
|
|
2076
|
-
|
|
2077
|
-
// `IsRegExp` abstract operation
|
|
2078
|
-
// https://tc39.github.io/ecma262/#sec-isregexp
|
|
2079
|
-
var isRegexp = function (it) {
|
|
2080
|
-
var isRegExp;
|
|
2081
|
-
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
|
|
2082
|
-
};
|
|
2083
|
-
|
|
2084
|
-
var isRegExp = isRegexp;
|
|
2085
|
-
|
|
2086
|
-
var notARegexp = function (it) {
|
|
2087
|
-
if (isRegExp(it)) {
|
|
2088
|
-
throw TypeError("The method doesn't accept regular expressions");
|
|
2089
|
-
} return it;
|
|
2090
|
-
};
|
|
2091
|
-
|
|
2092
|
-
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
2093
|
-
|
|
2094
|
-
var MATCH = wellKnownSymbol$1('match');
|
|
2095
|
-
|
|
2096
|
-
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
2097
|
-
var regexp = /./;
|
|
2098
|
-
try {
|
|
2099
|
-
'/./'[METHOD_NAME](regexp);
|
|
2100
|
-
} catch (e) {
|
|
2101
|
-
try {
|
|
2102
|
-
regexp[MATCH] = false;
|
|
2103
|
-
return '/./'[METHOD_NAME](regexp);
|
|
2104
|
-
} catch (f) { /* empty */ }
|
|
2105
|
-
} return false;
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
var $$1 = _export;
|
|
2109
|
-
var notARegExp = notARegexp;
|
|
2110
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
2111
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2112
|
-
|
|
2113
|
-
// `String.prototype.includes` method
|
|
2114
|
-
// https://tc39.github.io/ecma262/#sec-string.prototype.includes
|
|
2115
|
-
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2116
|
-
includes: function includes(searchString /* , position = 0 */) {
|
|
2117
|
-
return !!~String(requireObjectCoercible(this))
|
|
2118
|
-
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
|
|
1921
|
+
setLastFrontend(frontendId) {
|
|
1922
|
+
return HttpClient.Instance().client.post(`client/frontend`, {
|
|
1923
|
+
frontend: frontendId
|
|
1924
|
+
});
|
|
2119
1925
|
}
|
|
2120
|
-
}
|
|
1926
|
+
}
|
|
2121
1927
|
|
|
2122
1928
|
class UserService {
|
|
2123
1929
|
constructor() {}
|
|
2124
|
-
currentUserHasPermissions(requiredPermissions, strategy = 'all') {
|
|
2125
|
-
const userPermissions = state.store.getState().user.userPermissions;
|
|
2126
|
-
if (!userPermissions) {
|
|
2127
|
-
return false;
|
|
2128
|
-
}
|
|
2129
|
-
if (requiredPermissions.length === 0) {
|
|
2130
|
-
return true;
|
|
2131
|
-
}
|
|
2132
|
-
const checkerAll = (arr, target) => target.every(v => arr.includes(v));
|
|
2133
|
-
const checkerAny = (arr, target) => target.some(v => arr.includes(v));
|
|
2134
|
-
let result;
|
|
2135
|
-
if (strategy === 'all') {
|
|
2136
|
-
result = checkerAll(userPermissions, requiredPermissions);
|
|
2137
|
-
} else {
|
|
2138
|
-
result = checkerAny(userPermissions, requiredPermissions);
|
|
2139
|
-
}
|
|
2140
|
-
if (result) {
|
|
2141
|
-
return true;
|
|
2142
|
-
}
|
|
2143
|
-
return false;
|
|
2144
|
-
}
|
|
2145
1930
|
getAllUsers() {
|
|
2146
1931
|
return HttpClient.Instance().client.get(`/identity/user`);
|
|
2147
1932
|
}
|
|
@@ -2293,10 +2078,14 @@ class SecurityFacade {
|
|
|
2293
2078
|
this._domainRoleService = new DomainRoleService();
|
|
2294
2079
|
this._permissionService = new PermissionService();
|
|
2295
2080
|
this._routeRuleService = new RouteRuleService();
|
|
2081
|
+
this._currentUserService = new CurrentUser();
|
|
2296
2082
|
}
|
|
2297
2083
|
get user() {
|
|
2298
2084
|
return this._userService;
|
|
2299
2085
|
}
|
|
2086
|
+
get currentUser() {
|
|
2087
|
+
return this._currentUserService;
|
|
2088
|
+
}
|
|
2300
2089
|
get permission() {
|
|
2301
2090
|
return this._permissionService;
|
|
2302
2091
|
}
|
|
@@ -2432,12 +2221,12 @@ exports.AppState = void 0;
|
|
|
2432
2221
|
AppState[AppState["Inactive"] = 1] = "Inactive";
|
|
2433
2222
|
})(exports.AppState || (exports.AppState = {}));
|
|
2434
2223
|
|
|
2435
|
-
var classof = classofRaw$1;
|
|
2224
|
+
var classof$1 = classofRaw$1;
|
|
2436
2225
|
|
|
2437
2226
|
// `IsArray` abstract operation
|
|
2438
2227
|
// https://tc39.github.io/ecma262/#sec-isarray
|
|
2439
2228
|
var isArray$2 = Array.isArray || function isArray(arg) {
|
|
2440
|
-
return classof(arg) == 'Array';
|
|
2229
|
+
return classof$1(arg) == 'Array';
|
|
2441
2230
|
};
|
|
2442
2231
|
|
|
2443
2232
|
var isArray$1 = isArray$2;
|
|
@@ -2472,11 +2261,11 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
2472
2261
|
|
|
2473
2262
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
2474
2263
|
|
|
2475
|
-
var isObject = isObject$
|
|
2264
|
+
var isObject$2 = isObject$9;
|
|
2476
2265
|
var isArray = isArray$2;
|
|
2477
|
-
var wellKnownSymbol = wellKnownSymbol$d;
|
|
2266
|
+
var wellKnownSymbol$3 = wellKnownSymbol$d;
|
|
2478
2267
|
|
|
2479
|
-
var SPECIES = wellKnownSymbol('species');
|
|
2268
|
+
var SPECIES = wellKnownSymbol$3('species');
|
|
2480
2269
|
|
|
2481
2270
|
// `ArraySpeciesCreate` abstract operation
|
|
2482
2271
|
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
|
|
@@ -2486,14 +2275,14 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
2486
2275
|
C = originalArray.constructor;
|
|
2487
2276
|
// cross-realm fallback
|
|
2488
2277
|
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
|
2489
|
-
else if (isObject(C)) {
|
|
2278
|
+
else if (isObject$2(C)) {
|
|
2490
2279
|
C = C[SPECIES];
|
|
2491
2280
|
if (C === null) C = undefined;
|
|
2492
2281
|
}
|
|
2493
2282
|
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
|
2494
2283
|
};
|
|
2495
2284
|
|
|
2496
|
-
var
|
|
2285
|
+
var $$3 = _export;
|
|
2497
2286
|
var flattenIntoArray = flattenIntoArray_1;
|
|
2498
2287
|
var toObject = toObject$2;
|
|
2499
2288
|
var toLength = toLength$4;
|
|
@@ -2502,7 +2291,7 @@ var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
|
2502
2291
|
|
|
2503
2292
|
// `Array.prototype.flat` method
|
|
2504
2293
|
// https://github.com/tc39/proposal-flatMap
|
|
2505
|
-
|
|
2294
|
+
$$3({ target: 'Array', proto: true }, {
|
|
2506
2295
|
flat: function flat(/* depthArg = 1 */) {
|
|
2507
2296
|
var depthArg = arguments.length ? arguments[0] : undefined;
|
|
2508
2297
|
var O = toObject(this);
|
|
@@ -2513,11 +2302,128 @@ $({ target: 'Array', proto: true }, {
|
|
|
2513
2302
|
}
|
|
2514
2303
|
});
|
|
2515
2304
|
|
|
2305
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2306
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
2307
|
+
var anObject$1 = anObject$8;
|
|
2308
|
+
var objectKeys = objectKeys$2;
|
|
2309
|
+
|
|
2310
|
+
// `Object.defineProperties` method
|
|
2311
|
+
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
2312
|
+
var objectDefineProperties = DESCRIPTORS$2 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2313
|
+
anObject$1(O);
|
|
2314
|
+
var keys = objectKeys(Properties);
|
|
2315
|
+
var length = keys.length;
|
|
2316
|
+
var index = 0;
|
|
2317
|
+
var key;
|
|
2318
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], Properties[key]);
|
|
2319
|
+
return O;
|
|
2320
|
+
};
|
|
2321
|
+
|
|
2322
|
+
var anObject = anObject$8;
|
|
2323
|
+
var defineProperties = objectDefineProperties;
|
|
2324
|
+
var enumBugKeys = enumBugKeys$3;
|
|
2325
|
+
var hiddenKeys = hiddenKeys$4;
|
|
2326
|
+
var html = html$2;
|
|
2327
|
+
var documentCreateElement = documentCreateElement$1;
|
|
2328
|
+
var sharedKey = sharedKey$2;
|
|
2329
|
+
|
|
2330
|
+
var GT = '>';
|
|
2331
|
+
var LT = '<';
|
|
2332
|
+
var PROTOTYPE = 'prototype';
|
|
2333
|
+
var SCRIPT = 'script';
|
|
2334
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
2335
|
+
|
|
2336
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
2337
|
+
|
|
2338
|
+
var scriptTag = function (content) {
|
|
2339
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
2343
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
2344
|
+
activeXDocument.write(scriptTag(''));
|
|
2345
|
+
activeXDocument.close();
|
|
2346
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
2347
|
+
activeXDocument = null; // avoid memory leak
|
|
2348
|
+
return temp;
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
2352
|
+
var NullProtoObjectViaIFrame = function () {
|
|
2353
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
2354
|
+
var iframe = documentCreateElement('iframe');
|
|
2355
|
+
var JS = 'java' + SCRIPT + ':';
|
|
2356
|
+
var iframeDocument;
|
|
2357
|
+
iframe.style.display = 'none';
|
|
2358
|
+
html.appendChild(iframe);
|
|
2359
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
2360
|
+
iframe.src = String(JS);
|
|
2361
|
+
iframeDocument = iframe.contentWindow.document;
|
|
2362
|
+
iframeDocument.open();
|
|
2363
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
2364
|
+
iframeDocument.close();
|
|
2365
|
+
return iframeDocument.F;
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
// Check for document.domain and active x support
|
|
2369
|
+
// No need to use active x approach when document.domain is not set
|
|
2370
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
2371
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
2372
|
+
// avoid IE GC bug
|
|
2373
|
+
var activeXDocument;
|
|
2374
|
+
var NullProtoObject = function () {
|
|
2375
|
+
try {
|
|
2376
|
+
/* global ActiveXObject */
|
|
2377
|
+
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
2378
|
+
} catch (error) { /* ignore */ }
|
|
2379
|
+
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
|
2380
|
+
var length = enumBugKeys.length;
|
|
2381
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
2382
|
+
return NullProtoObject();
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
hiddenKeys[IE_PROTO] = true;
|
|
2386
|
+
|
|
2387
|
+
// `Object.create` method
|
|
2388
|
+
// https://tc39.github.io/ecma262/#sec-object.create
|
|
2389
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
2390
|
+
var result;
|
|
2391
|
+
if (O !== null) {
|
|
2392
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
2393
|
+
result = new EmptyConstructor();
|
|
2394
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
2395
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
2396
|
+
result[IE_PROTO] = O;
|
|
2397
|
+
} else result = NullProtoObject();
|
|
2398
|
+
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
var wellKnownSymbol$2 = wellKnownSymbol$d;
|
|
2402
|
+
var create = objectCreate;
|
|
2403
|
+
var definePropertyModule = objectDefineProperty;
|
|
2404
|
+
|
|
2405
|
+
var UNSCOPABLES = wellKnownSymbol$2('unscopables');
|
|
2406
|
+
var ArrayPrototype = Array.prototype;
|
|
2407
|
+
|
|
2408
|
+
// Array.prototype[@@unscopables]
|
|
2409
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
2410
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
2411
|
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
2412
|
+
configurable: true,
|
|
2413
|
+
value: create(null)
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
// add a key to Array.prototype[@@unscopables]
|
|
2418
|
+
var addToUnscopables$2 = function (key) {
|
|
2419
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2516
2422
|
// this method was added to unscopables after implementation
|
|
2517
2423
|
// in popular engines, so it's moved to a separate module
|
|
2518
|
-
var addToUnscopables = addToUnscopables$2;
|
|
2424
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
2519
2425
|
|
|
2520
|
-
addToUnscopables('flat');
|
|
2426
|
+
addToUnscopables$1('flat');
|
|
2521
2427
|
|
|
2522
2428
|
class EmbeddedModule {
|
|
2523
2429
|
get name() {
|
|
@@ -2786,6 +2692,202 @@ exports.AppMenuContextType = void 0;
|
|
|
2786
2692
|
AppMenuContextType[AppMenuContextType["User"] = 2] = "User";
|
|
2787
2693
|
})(exports.AppMenuContextType || (exports.AppMenuContextType = {}));
|
|
2788
2694
|
|
|
2695
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2696
|
+
var fails = fails$8;
|
|
2697
|
+
var has$1 = has$9;
|
|
2698
|
+
|
|
2699
|
+
var defineProperty$1 = Object.defineProperty;
|
|
2700
|
+
var cache = {};
|
|
2701
|
+
|
|
2702
|
+
var thrower = function (it) { throw it; };
|
|
2703
|
+
|
|
2704
|
+
var arrayMethodUsesToLength$1 = function (METHOD_NAME, options) {
|
|
2705
|
+
if (has$1(cache, METHOD_NAME)) return cache[METHOD_NAME];
|
|
2706
|
+
if (!options) options = {};
|
|
2707
|
+
var method = [][METHOD_NAME];
|
|
2708
|
+
var ACCESSORS = has$1(options, 'ACCESSORS') ? options.ACCESSORS : false;
|
|
2709
|
+
var argument0 = has$1(options, 0) ? options[0] : thrower;
|
|
2710
|
+
var argument1 = has$1(options, 1) ? options[1] : undefined;
|
|
2711
|
+
|
|
2712
|
+
return cache[METHOD_NAME] = !!method && !fails(function () {
|
|
2713
|
+
if (ACCESSORS && !DESCRIPTORS$1) return true;
|
|
2714
|
+
var O = { length: -1 };
|
|
2715
|
+
|
|
2716
|
+
if (ACCESSORS) defineProperty$1(O, 1, { enumerable: true, get: thrower });
|
|
2717
|
+
else O[1] = 1;
|
|
2718
|
+
|
|
2719
|
+
method.call(O, argument0, argument1);
|
|
2720
|
+
});
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
var $$2 = _export;
|
|
2724
|
+
var $includes = arrayIncludes.includes;
|
|
2725
|
+
var addToUnscopables = addToUnscopables$2;
|
|
2726
|
+
var arrayMethodUsesToLength = arrayMethodUsesToLength$1;
|
|
2727
|
+
|
|
2728
|
+
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
|
|
2729
|
+
|
|
2730
|
+
// `Array.prototype.includes` method
|
|
2731
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
2732
|
+
$$2({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
|
|
2733
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2734
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
|
|
2738
|
+
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
|
2739
|
+
addToUnscopables('includes');
|
|
2740
|
+
|
|
2741
|
+
var isObject$1 = isObject$9;
|
|
2742
|
+
var classof = classofRaw$1;
|
|
2743
|
+
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
2744
|
+
|
|
2745
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
2746
|
+
|
|
2747
|
+
// `IsRegExp` abstract operation
|
|
2748
|
+
// https://tc39.github.io/ecma262/#sec-isregexp
|
|
2749
|
+
var isRegexp = function (it) {
|
|
2750
|
+
var isRegExp;
|
|
2751
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
2752
|
+
};
|
|
2753
|
+
|
|
2754
|
+
var isRegExp = isRegexp;
|
|
2755
|
+
|
|
2756
|
+
var notARegexp = function (it) {
|
|
2757
|
+
if (isRegExp(it)) {
|
|
2758
|
+
throw TypeError("The method doesn't accept regular expressions");
|
|
2759
|
+
} return it;
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
var wellKnownSymbol = wellKnownSymbol$d;
|
|
2763
|
+
|
|
2764
|
+
var MATCH = wellKnownSymbol('match');
|
|
2765
|
+
|
|
2766
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
2767
|
+
var regexp = /./;
|
|
2768
|
+
try {
|
|
2769
|
+
'/./'[METHOD_NAME](regexp);
|
|
2770
|
+
} catch (e) {
|
|
2771
|
+
try {
|
|
2772
|
+
regexp[MATCH] = false;
|
|
2773
|
+
return '/./'[METHOD_NAME](regexp);
|
|
2774
|
+
} catch (f) { /* empty */ }
|
|
2775
|
+
} return false;
|
|
2776
|
+
};
|
|
2777
|
+
|
|
2778
|
+
var $$1 = _export;
|
|
2779
|
+
var notARegExp = notARegexp;
|
|
2780
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
2781
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2782
|
+
|
|
2783
|
+
// `String.prototype.includes` method
|
|
2784
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.includes
|
|
2785
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2786
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
2787
|
+
return !!~String(requireObjectCoercible(this))
|
|
2788
|
+
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
|
|
2789
|
+
}
|
|
2790
|
+
});
|
|
2791
|
+
|
|
2792
|
+
var $ = _export;
|
|
2793
|
+
var DESCRIPTORS = descriptors;
|
|
2794
|
+
var global$1 = global$i;
|
|
2795
|
+
var has = has$9;
|
|
2796
|
+
var isObject = isObject$9;
|
|
2797
|
+
var defineProperty = objectDefineProperty.f;
|
|
2798
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2799
|
+
|
|
2800
|
+
var NativeSymbol = global$1.Symbol;
|
|
2801
|
+
|
|
2802
|
+
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
|
2803
|
+
// Safari 12 bug
|
|
2804
|
+
NativeSymbol().description !== undefined
|
|
2805
|
+
)) {
|
|
2806
|
+
var EmptyStringDescriptionStore = {};
|
|
2807
|
+
// wrap Symbol constructor for correct work with undefined description
|
|
2808
|
+
var SymbolWrapper = function Symbol() {
|
|
2809
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
|
2810
|
+
var result = this instanceof SymbolWrapper
|
|
2811
|
+
? new NativeSymbol(description)
|
|
2812
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
2813
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
2814
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
2815
|
+
return result;
|
|
2816
|
+
};
|
|
2817
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
2818
|
+
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
|
2819
|
+
symbolPrototype.constructor = SymbolWrapper;
|
|
2820
|
+
|
|
2821
|
+
var symbolToString = symbolPrototype.toString;
|
|
2822
|
+
var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
2823
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
2824
|
+
defineProperty(symbolPrototype, 'description', {
|
|
2825
|
+
configurable: true,
|
|
2826
|
+
get: function description() {
|
|
2827
|
+
var symbol = isObject(this) ? this.valueOf() : this;
|
|
2828
|
+
var string = symbolToString.call(symbol);
|
|
2829
|
+
if (has(EmptyStringDescriptionStore, symbol)) return '';
|
|
2830
|
+
var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
|
2831
|
+
return desc === '' ? undefined : desc;
|
|
2832
|
+
}
|
|
2833
|
+
});
|
|
2834
|
+
|
|
2835
|
+
$({ global: true, forced: true }, {
|
|
2836
|
+
Symbol: SymbolWrapper
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
class CurrentUser {
|
|
2841
|
+
getUserInfo() {
|
|
2842
|
+
const user = state.store.getState().user;
|
|
2843
|
+
return {
|
|
2844
|
+
name: user.userInfo.FirstName,
|
|
2845
|
+
lastname: user.userInfo.LastName
|
|
2846
|
+
};
|
|
2847
|
+
}
|
|
2848
|
+
isInDomainRole(domainRole) {
|
|
2849
|
+
const user = state.store.getState().user;
|
|
2850
|
+
return user.domainRoles.some(d => d.identifier === domainRole);
|
|
2851
|
+
}
|
|
2852
|
+
isInDomainRoles(domainRoles) {
|
|
2853
|
+
const user = state.store.getState().user;
|
|
2854
|
+
return user.domainRoles.some(d => domainRoles.includes(d.identifier));
|
|
2855
|
+
}
|
|
2856
|
+
getDomainRoles() {
|
|
2857
|
+
const user = state.store.getState().user;
|
|
2858
|
+
return user.domainRoles.map(d => {
|
|
2859
|
+
return {
|
|
2860
|
+
id: d.id,
|
|
2861
|
+
name: d.name,
|
|
2862
|
+
identifier: d.identifier,
|
|
2863
|
+
description: d.description,
|
|
2864
|
+
permissionCount: d.permissionCount
|
|
2865
|
+
};
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
hasPermissions(requiredPermissions, strategy = 'all') {
|
|
2869
|
+
const userPermissions = state.store.getState().user.userPermissions;
|
|
2870
|
+
if (!userPermissions) {
|
|
2871
|
+
return false;
|
|
2872
|
+
}
|
|
2873
|
+
if (requiredPermissions.length === 0) {
|
|
2874
|
+
return true;
|
|
2875
|
+
}
|
|
2876
|
+
const checkerAll = (arr, target) => target.every(v => arr.includes(v));
|
|
2877
|
+
const checkerAny = (arr, target) => target.some(v => arr.includes(v));
|
|
2878
|
+
let result;
|
|
2879
|
+
if (strategy === 'all') {
|
|
2880
|
+
result = checkerAll(userPermissions, requiredPermissions);
|
|
2881
|
+
} else {
|
|
2882
|
+
result = checkerAny(userPermissions, requiredPermissions);
|
|
2883
|
+
}
|
|
2884
|
+
if (result) {
|
|
2885
|
+
return true;
|
|
2886
|
+
}
|
|
2887
|
+
return false;
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2789
2891
|
class ServerFilterHelper {
|
|
2790
2892
|
static getFilterString(filter, globalSearchQuery, globalSearchQueryFields, globalQueryOperator = 'or') {
|
|
2791
2893
|
let filtersString = filter ? filter : '';
|
|
@@ -2808,6 +2910,7 @@ exports.ApiKeyService = ApiKeyService;
|
|
|
2808
2910
|
exports.AppService = AppService;
|
|
2809
2911
|
exports.AppServiceService = AppServiceService;
|
|
2810
2912
|
exports.BaseCommonService = BaseCommonService;
|
|
2913
|
+
exports.CurrentUser = CurrentUser;
|
|
2811
2914
|
exports.DocumentationService = DocumentationService;
|
|
2812
2915
|
exports.DomainRoleService = DomainRoleService;
|
|
2813
2916
|
exports.DynamicConfigurationService = DynamicConfigurationService;
|