@limetech/lime-web-components 6.6.0 → 6.7.0
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/CHANGELOG.md +9 -0
- package/dist/error/error.d.ts +15 -0
- package/dist/error/error.d.ts.map +1 -0
- package/dist/error/error.spec.d.ts +2 -0
- package/dist/error/error.spec.d.ts.map +1 -0
- package/dist/error/index.d.ts +2 -0
- package/dist/error/index.d.ts.map +1 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +459 -333
- package/dist/index.esm.js.map +1 -1
- package/dist/logger/factory.d.ts +51 -0
- package/dist/logger/factory.d.ts.map +1 -0
- package/dist/logger/factory.spec.d.ts +2 -0
- package/dist/logger/factory.spec.d.ts.map +1 -0
- package/dist/logger/index.d.ts +1 -0
- package/dist/logger/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getElement as
|
|
1
|
+
import { getElement as q, setErrorHandler as it } from "@stencil/core";
|
|
2
2
|
const c = {
|
|
3
3
|
Route: "route"
|
|
4
|
-
},
|
|
5
|
-
function
|
|
4
|
+
}, We = "idle-state";
|
|
5
|
+
function Ge(t) {
|
|
6
6
|
return t && [
|
|
7
7
|
"belongsto",
|
|
8
8
|
"hasone",
|
|
@@ -10,10 +10,10 @@ function Me(t) {
|
|
|
10
10
|
"hasandbelongstomany"
|
|
11
11
|
].includes(t.type);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Qe(t) {
|
|
14
14
|
return t && ["belongsto", "hasone"].includes(t.type);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ye(t) {
|
|
17
17
|
return t && [
|
|
18
18
|
"time",
|
|
19
19
|
"timeofday",
|
|
@@ -23,31 +23,31 @@ function xe(t) {
|
|
|
23
23
|
"month"
|
|
24
24
|
].includes(t.type);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function qe(t) {
|
|
27
27
|
return t && ["string", "text", "phone", "link"].includes(t.type);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ke(t) {
|
|
30
30
|
return t && ["decimal", "percent"].includes(t.type);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
c.LimeTypeRepository =
|
|
34
|
-
var
|
|
35
|
-
return
|
|
32
|
+
const st = "state.limetypes";
|
|
33
|
+
c.LimeTypeRepository = st;
|
|
34
|
+
var R = function(t, e) {
|
|
35
|
+
return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
36
36
|
r.__proto__ = n;
|
|
37
37
|
} || function(r, n) {
|
|
38
38
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
39
|
-
},
|
|
39
|
+
}, R(t, e);
|
|
40
40
|
};
|
|
41
|
-
function
|
|
41
|
+
function m(t, e) {
|
|
42
42
|
if (typeof e != "function" && e !== null)
|
|
43
43
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
44
|
-
|
|
44
|
+
R(t, e);
|
|
45
45
|
function r() {
|
|
46
46
|
this.constructor = t;
|
|
47
47
|
}
|
|
48
48
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function A(t) {
|
|
51
51
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
52
52
|
if (r) return r.call(t);
|
|
53
53
|
if (t && typeof t.length == "number") return {
|
|
@@ -57,7 +57,7 @@ function O(t) {
|
|
|
57
57
|
};
|
|
58
58
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function P(t, e) {
|
|
61
61
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
62
62
|
if (!r) return t;
|
|
63
63
|
var n = r.call(t), o, i = [], s;
|
|
@@ -74,7 +74,7 @@ function A(t, e) {
|
|
|
74
74
|
}
|
|
75
75
|
return i;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function I(t, e, r) {
|
|
78
78
|
if (r || arguments.length === 2) for (var n = 0, o = e.length, i; n < o; n++)
|
|
79
79
|
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
|
|
80
80
|
return t.concat(i || Array.prototype.slice.call(e));
|
|
@@ -82,13 +82,13 @@ function R(t, e, r) {
|
|
|
82
82
|
function p(t) {
|
|
83
83
|
return typeof t == "function";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function K(t) {
|
|
86
86
|
var e = function(n) {
|
|
87
87
|
Error.call(n), n.stack = new Error().stack;
|
|
88
88
|
}, r = t(e);
|
|
89
89
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
90
90
|
}
|
|
91
|
-
var
|
|
91
|
+
var w = K(function(t) {
|
|
92
92
|
return function(r) {
|
|
93
93
|
t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
94
94
|
` + r.map(function(n, o) {
|
|
@@ -97,13 +97,13 @@ var _ = Q(function(t) {
|
|
|
97
97
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
|
-
function
|
|
100
|
+
function j(t, e) {
|
|
101
101
|
if (t) {
|
|
102
102
|
var r = t.indexOf(e);
|
|
103
103
|
0 <= r && t.splice(r, 1);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
var
|
|
106
|
+
var _ = (function() {
|
|
107
107
|
function t(e) {
|
|
108
108
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
109
109
|
}
|
|
@@ -115,9 +115,9 @@ var S = (function() {
|
|
|
115
115
|
if (s)
|
|
116
116
|
if (this._parentage = null, Array.isArray(s))
|
|
117
117
|
try {
|
|
118
|
-
for (var u =
|
|
119
|
-
var
|
|
120
|
-
|
|
118
|
+
for (var u = A(s), a = u.next(); !a.done; a = u.next()) {
|
|
119
|
+
var C = a.value;
|
|
120
|
+
C.remove(this);
|
|
121
121
|
}
|
|
122
122
|
} catch (f) {
|
|
123
123
|
e = { error: f };
|
|
@@ -130,43 +130,43 @@ var S = (function() {
|
|
|
130
130
|
}
|
|
131
131
|
else
|
|
132
132
|
s.remove(this);
|
|
133
|
-
var
|
|
134
|
-
if (p(
|
|
133
|
+
var D = this.initialTeardown;
|
|
134
|
+
if (p(D))
|
|
135
135
|
try {
|
|
136
|
-
|
|
136
|
+
D();
|
|
137
137
|
} catch (f) {
|
|
138
|
-
i = f instanceof
|
|
138
|
+
i = f instanceof w ? f.errors : [f];
|
|
139
139
|
}
|
|
140
|
-
var
|
|
141
|
-
if (
|
|
140
|
+
var M = this._finalizers;
|
|
141
|
+
if (M) {
|
|
142
142
|
this._finalizers = null;
|
|
143
143
|
try {
|
|
144
|
-
for (var b =
|
|
145
|
-
var
|
|
144
|
+
for (var b = A(M), y = b.next(); !y.done; y = b.next()) {
|
|
145
|
+
var ot = y.value;
|
|
146
146
|
try {
|
|
147
|
-
|
|
147
|
+
N(ot);
|
|
148
148
|
} catch (f) {
|
|
149
|
-
i = i ?? [], f instanceof
|
|
149
|
+
i = i ?? [], f instanceof w ? i = I(I([], P(i)), P(f.errors)) : i.push(f);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
} catch (f) {
|
|
153
153
|
n = { error: f };
|
|
154
154
|
} finally {
|
|
155
155
|
try {
|
|
156
|
-
|
|
156
|
+
y && !y.done && (o = b.return) && o.call(b);
|
|
157
157
|
} finally {
|
|
158
158
|
if (n) throw n.error;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
if (i)
|
|
163
|
-
throw new
|
|
163
|
+
throw new w(i);
|
|
164
164
|
}
|
|
165
165
|
}, t.prototype.add = function(e) {
|
|
166
166
|
var r;
|
|
167
167
|
if (e && e !== this)
|
|
168
168
|
if (this.closed)
|
|
169
|
-
|
|
169
|
+
N(e);
|
|
170
170
|
else {
|
|
171
171
|
if (e instanceof t) {
|
|
172
172
|
if (e.closed || e._hasParent(this))
|
|
@@ -183,52 +183,52 @@ var S = (function() {
|
|
|
183
183
|
this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
|
|
184
184
|
}, t.prototype._removeParent = function(e) {
|
|
185
185
|
var r = this._parentage;
|
|
186
|
-
r === e ? this._parentage = null : Array.isArray(r) &&
|
|
186
|
+
r === e ? this._parentage = null : Array.isArray(r) && j(r, e);
|
|
187
187
|
}, t.prototype.remove = function(e) {
|
|
188
188
|
var r = this._finalizers;
|
|
189
|
-
r &&
|
|
189
|
+
r && j(r, e), e instanceof t && e._removeParent(this);
|
|
190
190
|
}, t.EMPTY = (function() {
|
|
191
191
|
var e = new t();
|
|
192
192
|
return e.closed = !0, e;
|
|
193
193
|
})(), t;
|
|
194
|
-
})(),
|
|
195
|
-
function
|
|
196
|
-
return t instanceof
|
|
194
|
+
})(), X = _.EMPTY;
|
|
195
|
+
function J(t) {
|
|
196
|
+
return t instanceof _ || t && "closed" in t && p(t.remove) && p(t.add) && p(t.unsubscribe);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function N(t) {
|
|
199
199
|
p(t) ? t() : t.unsubscribe();
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var ct = {
|
|
202
202
|
Promise: void 0
|
|
203
|
-
},
|
|
203
|
+
}, ut = {
|
|
204
204
|
setTimeout: function(t, e) {
|
|
205
205
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
206
206
|
r[n - 2] = arguments[n];
|
|
207
|
-
return setTimeout.apply(void 0,
|
|
207
|
+
return setTimeout.apply(void 0, I([t, e], P(r)));
|
|
208
208
|
},
|
|
209
209
|
clearTimeout: function(t) {
|
|
210
210
|
return clearTimeout(t);
|
|
211
211
|
},
|
|
212
212
|
delegate: void 0
|
|
213
213
|
};
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function at(t) {
|
|
215
|
+
ut.setTimeout(function() {
|
|
216
216
|
throw t;
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function $() {
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function E(t) {
|
|
222
222
|
t();
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var Z = (function(t) {
|
|
225
|
+
m(e, t);
|
|
226
226
|
function e(r) {
|
|
227
227
|
var n = t.call(this) || this;
|
|
228
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
228
|
+
return n.isStopped = !1, r ? (n.destination = r, J(r) && r.add(n)) : n.destination = pt, n;
|
|
229
229
|
}
|
|
230
230
|
return e.create = function(r, n, o) {
|
|
231
|
-
return new
|
|
231
|
+
return new x(r, n, o);
|
|
232
232
|
}, e.prototype.next = function(r) {
|
|
233
233
|
this.isStopped || this._next(r);
|
|
234
234
|
}, e.prototype.error = function(r) {
|
|
@@ -252,7 +252,7 @@ var K = (function(t) {
|
|
|
252
252
|
this.unsubscribe();
|
|
253
253
|
}
|
|
254
254
|
}, e;
|
|
255
|
-
})(
|
|
255
|
+
})(_), lt = (function() {
|
|
256
256
|
function t(e) {
|
|
257
257
|
this.partialObserver = e;
|
|
258
258
|
}
|
|
@@ -283,43 +283,43 @@ var K = (function(t) {
|
|
|
283
283
|
v(r);
|
|
284
284
|
}
|
|
285
285
|
}, t;
|
|
286
|
-
})(),
|
|
287
|
-
|
|
286
|
+
})(), x = (function(t) {
|
|
287
|
+
m(e, t);
|
|
288
288
|
function e(r, n, o) {
|
|
289
289
|
var i = t.call(this) || this, s;
|
|
290
290
|
return p(r) || !r ? s = {
|
|
291
291
|
next: r ?? void 0,
|
|
292
292
|
error: n ?? void 0,
|
|
293
293
|
complete: o ?? void 0
|
|
294
|
-
} : s = r, i.destination = new
|
|
294
|
+
} : s = r, i.destination = new lt(s), i;
|
|
295
295
|
}
|
|
296
296
|
return e;
|
|
297
|
-
})(
|
|
297
|
+
})(Z);
|
|
298
298
|
function v(t) {
|
|
299
|
-
|
|
299
|
+
at(t);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function ft(t) {
|
|
302
302
|
throw t;
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var pt = {
|
|
305
305
|
closed: !0,
|
|
306
|
-
next:
|
|
307
|
-
error:
|
|
308
|
-
complete:
|
|
309
|
-
},
|
|
306
|
+
next: $,
|
|
307
|
+
error: ft,
|
|
308
|
+
complete: $
|
|
309
|
+
}, ht = (function() {
|
|
310
310
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
311
311
|
})();
|
|
312
|
-
function
|
|
312
|
+
function dt(t) {
|
|
313
313
|
return t;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
return t.length === 0 ?
|
|
315
|
+
function yt(t) {
|
|
316
|
+
return t.length === 0 ? dt : t.length === 1 ? t[0] : function(r) {
|
|
317
317
|
return t.reduce(function(n, o) {
|
|
318
318
|
return o(n);
|
|
319
319
|
}, r);
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var L = (function() {
|
|
323
323
|
function t(e) {
|
|
324
324
|
e && (this._subscribe = e);
|
|
325
325
|
}
|
|
@@ -327,8 +327,8 @@ var N = (function() {
|
|
|
327
327
|
var r = new t();
|
|
328
328
|
return r.source = this, r.operator = e, r;
|
|
329
329
|
}, t.prototype.subscribe = function(e, r, n) {
|
|
330
|
-
var o = this, i =
|
|
331
|
-
return
|
|
330
|
+
var o = this, i = bt(e) ? e : new x(e, r, n);
|
|
331
|
+
return E(function() {
|
|
332
332
|
var s = o, u = s.operator, a = s.source;
|
|
333
333
|
i.add(u ? u.call(i, a) : a ? o._subscribe(i) : o._trySubscribe(i));
|
|
334
334
|
}), i;
|
|
@@ -340,8 +340,8 @@ var N = (function() {
|
|
|
340
340
|
}
|
|
341
341
|
}, t.prototype.forEach = function(e, r) {
|
|
342
342
|
var n = this;
|
|
343
|
-
return r =
|
|
344
|
-
var s = new
|
|
343
|
+
return r = T(r), new r(function(o, i) {
|
|
344
|
+
var s = new x({
|
|
345
345
|
next: function(u) {
|
|
346
346
|
try {
|
|
347
347
|
e(u);
|
|
@@ -357,15 +357,15 @@ var N = (function() {
|
|
|
357
357
|
}, t.prototype._subscribe = function(e) {
|
|
358
358
|
var r;
|
|
359
359
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
|
|
360
|
-
}, t.prototype[
|
|
360
|
+
}, t.prototype[ht] = function() {
|
|
361
361
|
return this;
|
|
362
362
|
}, t.prototype.pipe = function() {
|
|
363
363
|
for (var e = [], r = 0; r < arguments.length; r++)
|
|
364
364
|
e[r] = arguments[r];
|
|
365
|
-
return
|
|
365
|
+
return yt(e)(this);
|
|
366
366
|
}, t.prototype.toPromise = function(e) {
|
|
367
367
|
var r = this;
|
|
368
|
-
return e =
|
|
368
|
+
return e = T(e), new e(function(n, o) {
|
|
369
369
|
var i;
|
|
370
370
|
r.subscribe(function(s) {
|
|
371
371
|
return i = s;
|
|
@@ -379,45 +379,45 @@ var N = (function() {
|
|
|
379
379
|
return new t(e);
|
|
380
380
|
}, t;
|
|
381
381
|
})();
|
|
382
|
-
function
|
|
382
|
+
function T(t) {
|
|
383
383
|
var e;
|
|
384
|
-
return (e = t ??
|
|
384
|
+
return (e = t ?? ct.Promise) !== null && e !== void 0 ? e : Promise;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function mt(t) {
|
|
387
387
|
return t && p(t.next) && p(t.error) && p(t.complete);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
return t && t instanceof
|
|
389
|
+
function bt(t) {
|
|
390
|
+
return t && t instanceof Z || mt(t) && J(t);
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var vt = K(function(t) {
|
|
393
393
|
return function() {
|
|
394
394
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
395
395
|
};
|
|
396
|
-
}),
|
|
397
|
-
|
|
396
|
+
}), z = (function(t) {
|
|
397
|
+
m(e, t);
|
|
398
398
|
function e() {
|
|
399
399
|
var r = t.call(this) || this;
|
|
400
400
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
401
401
|
}
|
|
402
402
|
return e.prototype.lift = function(r) {
|
|
403
|
-
var n = new
|
|
403
|
+
var n = new V(this, this);
|
|
404
404
|
return n.operator = r, n;
|
|
405
405
|
}, e.prototype._throwIfClosed = function() {
|
|
406
406
|
if (this.closed)
|
|
407
|
-
throw new
|
|
407
|
+
throw new vt();
|
|
408
408
|
}, e.prototype.next = function(r) {
|
|
409
409
|
var n = this;
|
|
410
|
-
|
|
410
|
+
E(function() {
|
|
411
411
|
var o, i;
|
|
412
412
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
413
413
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
414
414
|
try {
|
|
415
|
-
for (var s =
|
|
415
|
+
for (var s = A(n.currentObservers), u = s.next(); !u.done; u = s.next()) {
|
|
416
416
|
var a = u.value;
|
|
417
417
|
a.next(r);
|
|
418
418
|
}
|
|
419
|
-
} catch (
|
|
420
|
-
o = { error:
|
|
419
|
+
} catch (C) {
|
|
420
|
+
o = { error: C };
|
|
421
421
|
} finally {
|
|
422
422
|
try {
|
|
423
423
|
u && !u.done && (i = s.return) && i.call(s);
|
|
@@ -429,7 +429,7 @@ var dt = Q(function(t) {
|
|
|
429
429
|
});
|
|
430
430
|
}, e.prototype.error = function(r) {
|
|
431
431
|
var n = this;
|
|
432
|
-
|
|
432
|
+
E(function() {
|
|
433
433
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
434
434
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
435
435
|
for (var o = n.observers; o.length; )
|
|
@@ -438,7 +438,7 @@ var dt = Q(function(t) {
|
|
|
438
438
|
});
|
|
439
439
|
}, e.prototype.complete = function() {
|
|
440
440
|
var r = this;
|
|
441
|
-
|
|
441
|
+
E(function() {
|
|
442
442
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
443
443
|
r.isStopped = !0;
|
|
444
444
|
for (var n = r.observers; n.length; )
|
|
@@ -460,20 +460,20 @@ var dt = Q(function(t) {
|
|
|
460
460
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
461
461
|
}, e.prototype._innerSubscribe = function(r) {
|
|
462
462
|
var n = this, o = this, i = o.hasError, s = o.isStopped, u = o.observers;
|
|
463
|
-
return i || s ?
|
|
464
|
-
n.currentObservers = null,
|
|
463
|
+
return i || s ? X : (this.currentObservers = null, u.push(r), new _(function() {
|
|
464
|
+
n.currentObservers = null, j(u, r);
|
|
465
465
|
}));
|
|
466
466
|
}, e.prototype._checkFinalizedStatuses = function(r) {
|
|
467
467
|
var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
|
|
468
468
|
o ? r.error(i) : s && r.complete();
|
|
469
469
|
}, e.prototype.asObservable = function() {
|
|
470
|
-
var r = new
|
|
470
|
+
var r = new L();
|
|
471
471
|
return r.source = this, r;
|
|
472
472
|
}, e.create = function(r, n) {
|
|
473
|
-
return new
|
|
473
|
+
return new V(r, n);
|
|
474
474
|
}, e;
|
|
475
|
-
})(
|
|
476
|
-
|
|
475
|
+
})(L), V = (function(t) {
|
|
476
|
+
m(e, t);
|
|
477
477
|
function e(r, n) {
|
|
478
478
|
var o = t.call(this) || this;
|
|
479
479
|
return o.destination = r, o.source = n, o;
|
|
@@ -489,10 +489,10 @@ var dt = Q(function(t) {
|
|
|
489
489
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
490
490
|
}, e.prototype._subscribe = function(r) {
|
|
491
491
|
var n, o;
|
|
492
|
-
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o :
|
|
492
|
+
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o : X;
|
|
493
493
|
}, e;
|
|
494
|
-
})(
|
|
495
|
-
|
|
494
|
+
})(z), gt = (function(t) {
|
|
495
|
+
m(e, t);
|
|
496
496
|
function e(r) {
|
|
497
497
|
var n = t.call(this) || this;
|
|
498
498
|
return n._value = r, n;
|
|
@@ -514,78 +514,78 @@ var dt = Q(function(t) {
|
|
|
514
514
|
}, e.prototype.next = function(r) {
|
|
515
515
|
t.prototype.next.call(this, this._value = r);
|
|
516
516
|
}, e;
|
|
517
|
-
})(
|
|
518
|
-
function
|
|
517
|
+
})(z);
|
|
518
|
+
function Et(t) {
|
|
519
519
|
return t;
|
|
520
520
|
}
|
|
521
521
|
function l(t, e) {
|
|
522
522
|
return (r, n) => {
|
|
523
|
-
const o =
|
|
523
|
+
const o = St(
|
|
524
524
|
r,
|
|
525
525
|
n,
|
|
526
526
|
t,
|
|
527
527
|
e
|
|
528
528
|
);
|
|
529
|
-
o.length === 1 &&
|
|
529
|
+
o.length === 1 && _t(r, o);
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
-
const
|
|
533
|
-
function
|
|
534
|
-
let o =
|
|
535
|
-
return o || (o = [],
|
|
532
|
+
const F = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap();
|
|
533
|
+
function St(t, e, r, n) {
|
|
534
|
+
let o = F.get(t);
|
|
535
|
+
return o || (o = [], F.set(t, o)), o.push({
|
|
536
536
|
options: r,
|
|
537
537
|
name: e,
|
|
538
|
-
optionFactory: n.optionFactory ||
|
|
538
|
+
optionFactory: n.optionFactory || Et,
|
|
539
539
|
service: {
|
|
540
540
|
name: n.name,
|
|
541
541
|
method: n.method || "subscribe"
|
|
542
542
|
}
|
|
543
543
|
}), o;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
t.connectedCallback =
|
|
545
|
+
function _t(t, e) {
|
|
546
|
+
t.connectedCallback = et(
|
|
547
547
|
t.connectedCallback,
|
|
548
548
|
e
|
|
549
|
-
), t.componentWillLoad =
|
|
549
|
+
), t.componentWillLoad = Ct(
|
|
550
550
|
t.componentWillLoad,
|
|
551
551
|
e
|
|
552
|
-
), t.componentDidUnload =
|
|
552
|
+
), t.componentDidUnload = U(
|
|
553
553
|
t.componentDidUnload
|
|
554
|
-
), t.disconnectedCallback =
|
|
554
|
+
), t.disconnectedCallback = U(
|
|
555
555
|
t.disconnectedCallback
|
|
556
556
|
);
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function et(t, e) {
|
|
559
559
|
return async function(...r) {
|
|
560
|
-
|
|
561
|
-
const n = new
|
|
562
|
-
|
|
560
|
+
tt.set(this, !0), S.set(this, []), await rt(this);
|
|
561
|
+
const n = new gt(this.context);
|
|
562
|
+
Ot(this, "context", n);
|
|
563
563
|
for (const o of e)
|
|
564
|
-
o.options = o.optionFactory(o.options, this),
|
|
564
|
+
o.options = o.optionFactory(o.options, this), wt(o.options) && (o.options.context = n), Rt(this, o);
|
|
565
565
|
if (t)
|
|
566
566
|
return t.apply(this, r);
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Ct(t, e) {
|
|
570
570
|
return async function(...r) {
|
|
571
|
-
return
|
|
571
|
+
return tt.get(this) === !0 ? (await rt(this), t ? t.apply(this, r) : void 0) : et(t, e).apply(this, r);
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function U(t) {
|
|
575
575
|
return async function(...e) {
|
|
576
576
|
let r;
|
|
577
|
-
return t && (r = t.apply(this, e)),
|
|
577
|
+
return t && (r = t.apply(this, e)), At(this), r;
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function wt(t) {
|
|
581
581
|
return "context" in t;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function rt(t) {
|
|
584
584
|
const e = [];
|
|
585
|
-
return t.platform || e.push(
|
|
585
|
+
return t.platform || e.push(k(t, "platform")), t.context || e.push(k(t, "context")), e.length === 0 ? Promise.resolve() : Promise.all(e);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
const r =
|
|
587
|
+
function k(t, e) {
|
|
588
|
+
const r = q(t);
|
|
589
589
|
return new Promise((n) => {
|
|
590
590
|
Object.defineProperty(r, e, {
|
|
591
591
|
configurable: !0,
|
|
@@ -595,8 +595,8 @@ function V(t, e) {
|
|
|
595
595
|
});
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
const n =
|
|
598
|
+
function Ot(t, e, r) {
|
|
599
|
+
const n = q(t), { get: o, set: i } = Object.getOwnPropertyDescriptor(
|
|
600
600
|
Object.getPrototypeOf(n),
|
|
601
601
|
e
|
|
602
602
|
);
|
|
@@ -608,366 +608,492 @@ function gt(t, e, r) {
|
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
const r =
|
|
611
|
+
function Rt(t, e) {
|
|
612
|
+
const r = It(t, e);
|
|
613
613
|
if (typeof r != "function")
|
|
614
614
|
return;
|
|
615
|
-
|
|
615
|
+
S.get(t).push(r);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
const e =
|
|
617
|
+
function At(t) {
|
|
618
|
+
const e = S.get(t);
|
|
619
619
|
for (const r of e) r();
|
|
620
|
-
|
|
620
|
+
S.set(t, []);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Pt(t, e) {
|
|
623
623
|
return (r) => {
|
|
624
624
|
t[e] = r;
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function It(t, e) {
|
|
628
628
|
const r = { ...e.options };
|
|
629
|
-
|
|
629
|
+
jt(r, t);
|
|
630
630
|
const n = e.service.name, o = t.platform;
|
|
631
631
|
if (!o.has(n))
|
|
632
632
|
throw new Error(`Service ${n} does not exist`);
|
|
633
633
|
return o.get(n)[e.service.method](
|
|
634
|
-
|
|
634
|
+
Pt(t, e.name),
|
|
635
635
|
r
|
|
636
636
|
);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function jt(t, e) {
|
|
639
639
|
t.filter && (t.filter = t.filter.map((r) => r.bind(e))), t.map && (t.map = t.map.map((r) => r.bind(e)));
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Xe(t = {}) {
|
|
642
642
|
const e = {
|
|
643
643
|
name: c.LimeTypeRepository
|
|
644
644
|
};
|
|
645
645
|
return l(t, e);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Je(t = {}) {
|
|
648
648
|
const e = {
|
|
649
649
|
name: c.LimeTypeRepository
|
|
650
650
|
};
|
|
651
|
-
return t.map = [
|
|
651
|
+
return t.map = [xt, ...t.map || []], t.context = null, l(t, e);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function xt(t) {
|
|
654
654
|
const { limetype: e } = this.context;
|
|
655
655
|
return t[e];
|
|
656
656
|
}
|
|
657
|
-
const
|
|
658
|
-
function
|
|
657
|
+
const Ze = (t) => (e) => Object.values(e).find(nt(t));
|
|
658
|
+
function ze(t, e) {
|
|
659
659
|
return Object.values(t.properties).filter(
|
|
660
660
|
(r) => r.type === e
|
|
661
661
|
);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return Object.values(t.properties).find(
|
|
663
|
+
function tr(t, e) {
|
|
664
|
+
return Object.values(t.properties).find(nt(e));
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function er(t, e) {
|
|
667
667
|
return t.properties[e];
|
|
668
668
|
}
|
|
669
|
-
const
|
|
670
|
-
c.LimeObjectRepository =
|
|
671
|
-
function
|
|
669
|
+
const nt = (t) => (e) => e?.label === t, Dt = "state.limeobjects";
|
|
670
|
+
c.LimeObjectRepository = Dt;
|
|
671
|
+
function rr(t = {}) {
|
|
672
672
|
const e = {
|
|
673
673
|
name: c.LimeObjectRepository,
|
|
674
|
-
optionFactory:
|
|
674
|
+
optionFactory: Nt
|
|
675
675
|
};
|
|
676
676
|
return l(t, e);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function nr(t = {}) {
|
|
679
679
|
const e = {
|
|
680
680
|
name: c.LimeObjectRepository
|
|
681
681
|
};
|
|
682
|
-
return t.map = [
|
|
682
|
+
return t.map = [Mt, ...t.map || []], t.context = null, l(t, e);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Mt(t) {
|
|
685
685
|
const { limetype: e, id: r } = this.context;
|
|
686
686
|
if (t[e])
|
|
687
687
|
return t[e].find((n) => n.id === r);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Nt(t, e) {
|
|
690
690
|
return t.getLimetype && (t.limetype = t.getLimetype(e)), t;
|
|
691
691
|
}
|
|
692
|
-
var
|
|
693
|
-
function
|
|
692
|
+
var $t = /* @__PURE__ */ ((t) => (t.Received = "command.received", t.Handled = "command.handled", t.Failed = "command.failed", t))($t || {});
|
|
693
|
+
function d(t) {
|
|
694
694
|
return (e) => {
|
|
695
|
-
|
|
695
|
+
Lt(e, t.id), Tt(e, t.id);
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Lt(t, e) {
|
|
699
699
|
t.commandId = e;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Tt(t, e) {
|
|
702
702
|
Object.defineProperty(t, Symbol.hasInstance, {
|
|
703
|
-
value: (r) =>
|
|
703
|
+
value: (r) => Ft(r).includes(e)
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Vt(t) {
|
|
707
707
|
return typeof t == "string" ? t : t && t.constructor && t.constructor.commandId ? t.constructor.commandId : t && t.commandId ? t.commandId : null;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Ft(t) {
|
|
710
710
|
let e = [], r, n = t;
|
|
711
|
-
for (; r =
|
|
711
|
+
for (; r = Vt(n); )
|
|
712
712
|
e = [...e, r], n = Object.getPrototypeOf(n);
|
|
713
713
|
return [...new Set(e)];
|
|
714
714
|
}
|
|
715
|
-
const
|
|
716
|
-
c.CommandBus =
|
|
717
|
-
var
|
|
718
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
715
|
+
const Ut = "commandBus";
|
|
716
|
+
c.CommandBus = Ut;
|
|
717
|
+
var kt = Object.getOwnPropertyDescriptor, Bt = (t, e, r, n) => {
|
|
718
|
+
for (var o = n > 1 ? void 0 : n ? kt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
719
719
|
(s = t[i]) && (o = s(o) || o);
|
|
720
720
|
return o;
|
|
721
721
|
};
|
|
722
|
-
const
|
|
723
|
-
let
|
|
722
|
+
const Ht = "limeobject.bulk-create-dialog";
|
|
723
|
+
let B = class {
|
|
724
|
+
context;
|
|
725
|
+
/**
|
|
726
|
+
* A query describing what limeobjects to create new limeobjects from. Each object from the result will result in a
|
|
727
|
+
* new related limeobject to be created
|
|
728
|
+
*/
|
|
729
|
+
filter;
|
|
730
|
+
/**
|
|
731
|
+
* The name of the relation on the limetype to create objects of
|
|
732
|
+
*/
|
|
733
|
+
relation;
|
|
724
734
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
id:
|
|
735
|
+
B = Bt([
|
|
736
|
+
d({
|
|
737
|
+
id: Ht
|
|
728
738
|
})
|
|
729
|
-
],
|
|
730
|
-
var
|
|
731
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
739
|
+
], B);
|
|
740
|
+
var Wt = Object.getOwnPropertyDescriptor, Gt = (t, e, r, n) => {
|
|
741
|
+
for (var o = n > 1 ? void 0 : n ? Wt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
732
742
|
(s = t[i]) && (o = s(o) || o);
|
|
733
743
|
return o;
|
|
734
744
|
};
|
|
735
|
-
const
|
|
736
|
-
let
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
745
|
+
const Qt = "limeobject.create-dialog";
|
|
746
|
+
let H = class {
|
|
747
|
+
/**
|
|
748
|
+
* The limetype of the object to create
|
|
749
|
+
*/
|
|
750
|
+
limetype;
|
|
751
|
+
/**
|
|
752
|
+
* Default data to populate the form with
|
|
753
|
+
*/
|
|
754
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
755
|
+
limeobject;
|
|
756
|
+
/**
|
|
757
|
+
* Specifies if routing to limeobject should be done after confirmation
|
|
758
|
+
*/
|
|
759
|
+
route = !1;
|
|
760
|
+
/*
|
|
761
|
+
* Title of the dialog
|
|
762
|
+
*/
|
|
763
|
+
title;
|
|
764
|
+
/*
|
|
765
|
+
* Subtitle of the dialog
|
|
766
|
+
*/
|
|
767
|
+
subtitle;
|
|
768
|
+
/*
|
|
769
|
+
* Current context
|
|
770
|
+
*/
|
|
771
|
+
context;
|
|
772
|
+
/**
|
|
773
|
+
* When `context` is used, this is the name of the relation on the
|
|
774
|
+
* reference {@link LimeObject} to use when auto attaching the new object.
|
|
775
|
+
*
|
|
776
|
+
*/
|
|
777
|
+
autoAttachRelation;
|
|
778
|
+
/**
|
|
779
|
+
* Specifies any command that can be used to save the result of the dialog.
|
|
780
|
+
* If not specified, it will default to the {@link SaveLimeObjectCommand}
|
|
781
|
+
*/
|
|
782
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
783
|
+
saveCommand;
|
|
740
784
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
id:
|
|
785
|
+
H = Gt([
|
|
786
|
+
d({
|
|
787
|
+
id: Qt
|
|
744
788
|
})
|
|
745
|
-
],
|
|
746
|
-
var
|
|
747
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
789
|
+
], H);
|
|
790
|
+
var Yt = Object.getOwnPropertyDescriptor, qt = (t, e, r, n) => {
|
|
791
|
+
for (var o = n > 1 ? void 0 : n ? Yt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
748
792
|
(s = t[i]) && (o = s(o) || o);
|
|
749
793
|
return o;
|
|
750
794
|
};
|
|
751
|
-
const
|
|
752
|
-
let
|
|
795
|
+
const Kt = "limeobject.delete-object";
|
|
796
|
+
let W = class {
|
|
797
|
+
context;
|
|
753
798
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
id:
|
|
799
|
+
W = qt([
|
|
800
|
+
d({
|
|
801
|
+
id: Kt
|
|
757
802
|
})
|
|
758
|
-
],
|
|
759
|
-
var
|
|
760
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
803
|
+
], W);
|
|
804
|
+
var Xt = Object.getOwnPropertyDescriptor, Jt = (t, e, r, n) => {
|
|
805
|
+
for (var o = n > 1 ? void 0 : n ? Xt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
761
806
|
(s = t[i]) && (o = s(o) || o);
|
|
762
807
|
return o;
|
|
763
808
|
};
|
|
764
|
-
const
|
|
765
|
-
let
|
|
809
|
+
const Zt = "limeobject.object-access";
|
|
810
|
+
let G = class {
|
|
811
|
+
context;
|
|
766
812
|
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
id:
|
|
813
|
+
G = Jt([
|
|
814
|
+
d({
|
|
815
|
+
id: Zt
|
|
770
816
|
})
|
|
771
|
-
],
|
|
772
|
-
var
|
|
773
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
817
|
+
], G);
|
|
818
|
+
var zt = Object.getOwnPropertyDescriptor, te = (t, e, r, n) => {
|
|
819
|
+
for (var o = n > 1 ? void 0 : n ? zt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
774
820
|
(s = t[i]) && (o = s(o) || o);
|
|
775
821
|
return o;
|
|
776
822
|
};
|
|
777
|
-
const
|
|
778
|
-
let
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
823
|
+
const ee = "limeobject.save-object";
|
|
824
|
+
let Q = class {
|
|
825
|
+
context;
|
|
826
|
+
/**
|
|
827
|
+
* The limeobject to save
|
|
828
|
+
*/
|
|
829
|
+
limeobject;
|
|
830
|
+
/**
|
|
831
|
+
* Specifies if routing to limeobject should be done after confirmation
|
|
832
|
+
*/
|
|
833
|
+
route = !1;
|
|
834
|
+
/**
|
|
835
|
+
* @beta
|
|
836
|
+
* Specifies an optional save label to be displayed in the create-object dialog
|
|
837
|
+
*/
|
|
838
|
+
label;
|
|
782
839
|
};
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
id:
|
|
840
|
+
Q = te([
|
|
841
|
+
d({
|
|
842
|
+
id: ee
|
|
786
843
|
})
|
|
787
|
-
],
|
|
788
|
-
var
|
|
789
|
-
const
|
|
844
|
+
], Q);
|
|
845
|
+
var re = /* @__PURE__ */ ((t) => (t.AND = "AND", t.OR = "OR", t.NOT = "!", t.EQUALS = "=", t.NOT_EQUALS = "!=", t.GREATER = ">", t.LESS = "<", t.IN = "IN", t.BEGINS = "=?", t.LIKE = "?", t.LESS_OR_EQUAL = "<=", t.GREATER_OR_EQUAL = ">=", t.ENDS = "=$", t))(re || {});
|
|
846
|
+
const or = {
|
|
790
847
|
Count: "COUNT",
|
|
791
848
|
Sum: "SUM",
|
|
792
849
|
Average: "AVG",
|
|
793
850
|
Maximum: "MAX",
|
|
794
851
|
Minimum: "MIN"
|
|
795
|
-
},
|
|
796
|
-
c.Query =
|
|
797
|
-
const
|
|
852
|
+
}, ne = "query";
|
|
853
|
+
c.Query = ne;
|
|
854
|
+
const ir = {
|
|
798
855
|
Get: "GET",
|
|
799
856
|
Post: "POST",
|
|
800
857
|
Put: "PUT",
|
|
801
858
|
Delete: "DELETE",
|
|
802
859
|
Patch: "PATCH"
|
|
803
|
-
},
|
|
804
|
-
c.Http =
|
|
805
|
-
const
|
|
806
|
-
c.EventDispatcher =
|
|
807
|
-
const
|
|
808
|
-
c.Translate =
|
|
809
|
-
const
|
|
810
|
-
c.Dialog =
|
|
811
|
-
const
|
|
812
|
-
c.KeybindingRegistry =
|
|
813
|
-
const
|
|
814
|
-
c.Navigator =
|
|
815
|
-
function
|
|
860
|
+
}, oe = "http";
|
|
861
|
+
c.Http = oe;
|
|
862
|
+
const ie = "eventDispatcher";
|
|
863
|
+
c.EventDispatcher = ie;
|
|
864
|
+
const se = "translate";
|
|
865
|
+
c.Translate = se;
|
|
866
|
+
const ce = "dialog";
|
|
867
|
+
c.Dialog = ce;
|
|
868
|
+
const ue = "keybindingRegistry";
|
|
869
|
+
c.KeybindingRegistry = ue;
|
|
870
|
+
const ae = "navigator";
|
|
871
|
+
c.Navigator = ae;
|
|
872
|
+
function sr(t) {
|
|
816
873
|
const e = {
|
|
817
874
|
name: c.Navigator
|
|
818
875
|
};
|
|
819
876
|
return l({ context: null, ...t }, e);
|
|
820
877
|
}
|
|
821
|
-
var
|
|
822
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
878
|
+
var le = Object.getOwnPropertyDescriptor, fe = (t, e, r, n) => {
|
|
879
|
+
for (var o = n > 1 ? void 0 : n ? le(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
823
880
|
(s = t[i]) && (o = s(o) || o);
|
|
824
881
|
return o;
|
|
825
882
|
};
|
|
826
|
-
const
|
|
827
|
-
let
|
|
883
|
+
const pe = "navigator.navigate";
|
|
884
|
+
let Y = class {
|
|
885
|
+
path;
|
|
886
|
+
query;
|
|
887
|
+
hash;
|
|
888
|
+
state;
|
|
828
889
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
id:
|
|
890
|
+
Y = fe([
|
|
891
|
+
d({
|
|
892
|
+
id: pe
|
|
832
893
|
})
|
|
833
|
-
],
|
|
834
|
-
const
|
|
835
|
-
c.Notification =
|
|
836
|
-
const
|
|
837
|
-
c.RouteRegistry =
|
|
838
|
-
var
|
|
839
|
-
const
|
|
840
|
-
c.TaskRepository =
|
|
841
|
-
const
|
|
842
|
-
c.ConfigRepository =
|
|
843
|
-
function
|
|
894
|
+
], Y);
|
|
895
|
+
const he = "notifications";
|
|
896
|
+
c.Notification = he;
|
|
897
|
+
const de = "routeRegistry";
|
|
898
|
+
c.RouteRegistry = de;
|
|
899
|
+
var ye = /* @__PURE__ */ ((t) => (t.Pending = "PENDING", t.Started = "STARTED", t.Retry = "RETRY", t.Success = "SUCCESS", t.Failure = "FAILURE", t))(ye || {}), me = /* @__PURE__ */ ((t) => (t.Created = "task.created", t.Success = "task.success", t.Failed = "task.failed", t))(me || {});
|
|
900
|
+
const be = "state.tasks";
|
|
901
|
+
c.TaskRepository = be;
|
|
902
|
+
const ve = "state.configs";
|
|
903
|
+
c.ConfigRepository = ve;
|
|
904
|
+
function cr(t) {
|
|
844
905
|
const e = {
|
|
845
906
|
name: c.ConfigRepository
|
|
846
907
|
};
|
|
847
908
|
return l(t, e);
|
|
848
909
|
}
|
|
849
|
-
const
|
|
850
|
-
c.Device =
|
|
851
|
-
function
|
|
910
|
+
const ge = "state.device";
|
|
911
|
+
c.Device = ge;
|
|
912
|
+
function ur(t = {}) {
|
|
852
913
|
const e = {
|
|
853
914
|
name: c.Device
|
|
854
915
|
};
|
|
855
916
|
return l(t, e);
|
|
856
917
|
}
|
|
857
|
-
const
|
|
858
|
-
c.FilterRepository =
|
|
859
|
-
function
|
|
918
|
+
const Ee = "state.filters";
|
|
919
|
+
c.FilterRepository = Ee;
|
|
920
|
+
function ar(t = {}) {
|
|
860
921
|
const e = {
|
|
861
922
|
name: c.FilterRepository
|
|
862
923
|
};
|
|
863
924
|
return l(t, e);
|
|
864
925
|
}
|
|
865
|
-
const
|
|
866
|
-
c.UserDataRepository =
|
|
867
|
-
function
|
|
926
|
+
const Se = "state.user-data";
|
|
927
|
+
c.UserDataRepository = Se;
|
|
928
|
+
function lr(t = {}) {
|
|
868
929
|
const e = {
|
|
869
930
|
name: c.UserDataRepository
|
|
870
931
|
};
|
|
871
932
|
return l(t, e);
|
|
872
933
|
}
|
|
873
|
-
const
|
|
874
|
-
c.Application =
|
|
875
|
-
function
|
|
934
|
+
const _e = "state.application";
|
|
935
|
+
c.Application = _e;
|
|
936
|
+
function fr(t = {}) {
|
|
876
937
|
const e = {
|
|
877
938
|
name: c.Application
|
|
878
939
|
};
|
|
879
|
-
return t.map = [
|
|
940
|
+
return t.map = [Ce, ...t.map || []], l(t, e);
|
|
880
941
|
}
|
|
881
|
-
function
|
|
942
|
+
function Ce(t) {
|
|
882
943
|
return t.applicationName;
|
|
883
944
|
}
|
|
884
|
-
function
|
|
945
|
+
function pr(t = {}) {
|
|
885
946
|
const e = {
|
|
886
947
|
name: c.Application
|
|
887
948
|
};
|
|
888
|
-
return t.map = [
|
|
949
|
+
return t.map = [we, ...t.map || []], l(t, e);
|
|
889
950
|
}
|
|
890
|
-
function
|
|
951
|
+
function we(t) {
|
|
891
952
|
return t.currentUser;
|
|
892
953
|
}
|
|
893
|
-
function
|
|
954
|
+
function hr(t = {}) {
|
|
894
955
|
const e = {
|
|
895
956
|
name: c.Application
|
|
896
957
|
};
|
|
897
|
-
return t.map = [
|
|
958
|
+
return t.map = [Oe, ...t.map || []], l(t, e);
|
|
898
959
|
}
|
|
899
|
-
function
|
|
960
|
+
function Oe(t) {
|
|
900
961
|
return t.session;
|
|
901
962
|
}
|
|
902
|
-
const
|
|
903
|
-
c.UserPreferencesRepository =
|
|
904
|
-
const
|
|
905
|
-
c.DateTimeFormatter =
|
|
906
|
-
function
|
|
963
|
+
const Re = "userPreferences";
|
|
964
|
+
c.UserPreferencesRepository = Re;
|
|
965
|
+
const Ae = "datetimeformatter";
|
|
966
|
+
c.DateTimeFormatter = Ae;
|
|
967
|
+
function dr(t) {
|
|
907
968
|
return t.type === "limeobject";
|
|
908
969
|
}
|
|
909
|
-
function
|
|
970
|
+
function yr(t) {
|
|
910
971
|
return t.type === "action";
|
|
911
972
|
}
|
|
912
|
-
const
|
|
913
|
-
c.ConditionRegistry =
|
|
914
|
-
const
|
|
915
|
-
c.ViewFactoryRegistry =
|
|
916
|
-
const
|
|
917
|
-
c.WebComponentRegistry =
|
|
918
|
-
const
|
|
919
|
-
c.NotificationRepository =
|
|
920
|
-
const
|
|
921
|
-
c.PollerFactory =
|
|
922
|
-
const
|
|
973
|
+
const Pe = "conditionRegistry";
|
|
974
|
+
c.ConditionRegistry = Pe;
|
|
975
|
+
const Ie = "viewFactoryRegistry";
|
|
976
|
+
c.ViewFactoryRegistry = Ie;
|
|
977
|
+
const je = "webComponentRegistry";
|
|
978
|
+
c.WebComponentRegistry = je;
|
|
979
|
+
const xe = "state.notifications";
|
|
980
|
+
c.NotificationRepository = xe;
|
|
981
|
+
const De = "pollerFactory";
|
|
982
|
+
c.PollerFactory = De;
|
|
983
|
+
const mr = {
|
|
923
984
|
Debug: "debug",
|
|
924
985
|
Info: "info",
|
|
925
986
|
Warn: "warn",
|
|
926
987
|
Error: "error"
|
|
927
|
-
},
|
|
928
|
-
c.Logger =
|
|
988
|
+
}, Me = "logger";
|
|
989
|
+
c.Logger = Me;
|
|
990
|
+
let h, g;
|
|
991
|
+
function Ne(t) {
|
|
992
|
+
const e = window.Lime?.logger?.createLogger;
|
|
993
|
+
return typeof e != "function" ? (console.warn(
|
|
994
|
+
`Logger factory is not configured. Returning console logger for scope "${t}".`
|
|
995
|
+
), console) : (g === void 0 && (g = Te($e())), g && (t = `${g}:${t}`), e(t));
|
|
996
|
+
}
|
|
997
|
+
function $e() {
|
|
998
|
+
return h !== void 0 ? h : import.meta !== void 0 && typeof import.meta.url == "string" ? (h = import.meta.url, h) : (h = Le(), h);
|
|
999
|
+
}
|
|
1000
|
+
function Le() {
|
|
1001
|
+
try {
|
|
1002
|
+
const t = new Error(".").stack;
|
|
1003
|
+
if (!t)
|
|
1004
|
+
return null;
|
|
1005
|
+
const e = t.split(`
|
|
1006
|
+
`);
|
|
1007
|
+
for (const r of e) {
|
|
1008
|
+
const n = r.match(/(https?:\/\/[^)\s:]+)/);
|
|
1009
|
+
if (n)
|
|
1010
|
+
return n[1];
|
|
1011
|
+
}
|
|
1012
|
+
return null;
|
|
1013
|
+
} catch {
|
|
1014
|
+
return null;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
function Te(t) {
|
|
1018
|
+
if (!t) return null;
|
|
1019
|
+
const e = Ve(t) || Fe(t) || Ue(t) || ke(t);
|
|
1020
|
+
return e || null;
|
|
1021
|
+
}
|
|
1022
|
+
function Ve(t) {
|
|
1023
|
+
const e = /\/([^/]+)-lwc-components\//, r = t.match(e);
|
|
1024
|
+
return r ? r[1] : null;
|
|
1025
|
+
}
|
|
1026
|
+
function Fe(t) {
|
|
1027
|
+
const e = /\/packages\/(?:@[^/]+\/)?([^/]+)/, r = t.match(e);
|
|
1028
|
+
return r ? r[1] : null;
|
|
1029
|
+
}
|
|
1030
|
+
function Ue(t) {
|
|
1031
|
+
const e = t.indexOf("+");
|
|
1032
|
+
if (e === -1)
|
|
1033
|
+
return null;
|
|
1034
|
+
const r = t.slice(0, e), n = r.lastIndexOf("/");
|
|
1035
|
+
return n === -1 ? null : r.slice(n + 1);
|
|
1036
|
+
}
|
|
1037
|
+
function ke(t) {
|
|
1038
|
+
const e = /\/static\/([^/]+)\//, r = t.match(e);
|
|
1039
|
+
return r ? r[1] : null;
|
|
1040
|
+
}
|
|
1041
|
+
let O = null;
|
|
1042
|
+
function Be(t, e) {
|
|
1043
|
+
O || (O = Ne("uncaught-error"));
|
|
1044
|
+
const r = {};
|
|
1045
|
+
e && (r.element = e.tagName, e.id && (r.elementId = e.id));
|
|
1046
|
+
const n = t instanceof Error ? t.message : String(t), o = t instanceof Error ? t : void 0;
|
|
1047
|
+
O.error(n, o, r);
|
|
1048
|
+
}
|
|
1049
|
+
try {
|
|
1050
|
+
it(Be);
|
|
1051
|
+
} catch {
|
|
1052
|
+
}
|
|
929
1053
|
export {
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1054
|
+
or as AggregateOperator,
|
|
1055
|
+
B as BulkCreateDialogCommand,
|
|
1056
|
+
d as Command,
|
|
1057
|
+
$t as CommandEventName,
|
|
1058
|
+
H as CreateLimeobjectDialogCommand,
|
|
1059
|
+
W as DeleteObjectCommand,
|
|
1060
|
+
ir as HttpMethod,
|
|
1061
|
+
We as IdleStateEventName,
|
|
1062
|
+
mr as LogLevel,
|
|
1063
|
+
Y as NavigateCommand,
|
|
1064
|
+
G as OpenObjectAccessDialogCommand,
|
|
1065
|
+
re as Operator,
|
|
942
1066
|
c as PlatformServiceName,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1067
|
+
Q as SaveLimeObjectCommand,
|
|
1068
|
+
fr as SelectApplicationName,
|
|
1069
|
+
cr as SelectConfig,
|
|
1070
|
+
nr as SelectCurrentLimeObject,
|
|
1071
|
+
Je as SelectCurrentLimeType,
|
|
1072
|
+
pr as SelectCurrentUser,
|
|
1073
|
+
ur as SelectDevice,
|
|
1074
|
+
ar as SelectFilters,
|
|
1075
|
+
rr as SelectLimeObjects,
|
|
1076
|
+
Xe as SelectLimeTypes,
|
|
1077
|
+
sr as SelectQueryParam,
|
|
1078
|
+
hr as SelectSession,
|
|
1079
|
+
lr as SelectUserData,
|
|
1080
|
+
me as TaskEventType,
|
|
1081
|
+
ye as TaskState,
|
|
1082
|
+
Ne as createLogger,
|
|
1083
|
+
Ze as findLimetypeByLabel,
|
|
1084
|
+
Vt as getCommandId,
|
|
1085
|
+
Ft as getCommandIds,
|
|
1086
|
+
Te as getPackageNameFromUrl,
|
|
1087
|
+
ze as getPropertiesByType,
|
|
1088
|
+
tr as getPropertyByLabel,
|
|
1089
|
+
er as getPropertyByName,
|
|
1090
|
+
nt as hasLabel,
|
|
1091
|
+
yr as isActionCondition,
|
|
1092
|
+
Ye as isDate,
|
|
1093
|
+
Ke as isFloat,
|
|
1094
|
+
dr as isLimeObjectCondition,
|
|
1095
|
+
Ge as isRelation,
|
|
1096
|
+
Qe as isSingleRelation,
|
|
1097
|
+
qe as isString
|
|
972
1098
|
};
|
|
973
1099
|
//# sourceMappingURL=index.esm.js.map
|