@limetech/lime-web-components 6.5.0 → 6.6.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/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getElement as H } from "@stencil/core";
2
2
  const c = {
3
3
  Route: "route"
4
- }, je = "idle-state";
5
- function De(t) {
4
+ }, De = "idle-state";
5
+ function Me(t) {
6
6
  return t && [
7
7
  "belongsto",
8
8
  "hasone",
@@ -10,10 +10,10 @@ function De(t) {
10
10
  "hasandbelongstomany"
11
11
  ].includes(t.type);
12
12
  }
13
- function Me(t) {
13
+ function Ne(t) {
14
14
  return t && ["belongsto", "hasone"].includes(t.type);
15
15
  }
16
- function Ne(t) {
16
+ function xe(t) {
17
17
  return t && [
18
18
  "time",
19
19
  "timeofday",
@@ -23,10 +23,10 @@ function Ne(t) {
23
23
  "month"
24
24
  ].includes(t.type);
25
25
  }
26
- function xe(t) {
26
+ function $e(t) {
27
27
  return t && ["string", "text", "phone", "link"].includes(t.type);
28
28
  }
29
- function $e(t) {
29
+ function Le(t) {
30
30
  return t && ["decimal", "percent"].includes(t.type);
31
31
  }
32
32
  const rt = "state.limetypes";
@@ -88,7 +88,7 @@ function Q(t) {
88
88
  }, r = t(e);
89
89
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
90
90
  }
91
- var g = Q(function(t) {
91
+ var _ = Q(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) {
@@ -103,7 +103,7 @@ function w(t, e) {
103
103
  0 <= r && t.splice(r, 1);
104
104
  }
105
105
  }
106
- var S = function() {
106
+ var S = (function() {
107
107
  function t(e) {
108
108
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
109
109
  }
@@ -116,8 +116,8 @@ var S = function() {
116
116
  if (this._parentage = null, Array.isArray(s))
117
117
  try {
118
118
  for (var u = O(s), a = u.next(); !a.done; a = u.next()) {
119
- var _ = a.value;
120
- _.remove(this);
119
+ var g = a.value;
120
+ g.remove(this);
121
121
  }
122
122
  } catch (f) {
123
123
  e = { error: f };
@@ -135,7 +135,7 @@ var S = function() {
135
135
  try {
136
136
  I();
137
137
  } catch (f) {
138
- i = f instanceof g ? f.errors : [f];
138
+ i = f instanceof _ ? f.errors : [f];
139
139
  }
140
140
  var j = this._finalizers;
141
141
  if (j) {
@@ -146,7 +146,7 @@ var S = function() {
146
146
  try {
147
147
  D(et);
148
148
  } catch (f) {
149
- i = i ?? [], f instanceof g ? i = R(R([], A(i)), A(f.errors)) : i.push(f);
149
+ i = i ?? [], f instanceof _ ? i = R(R([], A(i)), A(f.errors)) : i.push(f);
150
150
  }
151
151
  }
152
152
  } catch (f) {
@@ -160,7 +160,7 @@ var S = function() {
160
160
  }
161
161
  }
162
162
  if (i)
163
- throw new g(i);
163
+ throw new _(i);
164
164
  }
165
165
  }, t.prototype.add = function(e) {
166
166
  var r;
@@ -187,11 +187,11 @@ var S = function() {
187
187
  }, t.prototype.remove = function(e) {
188
188
  var r = this._finalizers;
189
189
  r && w(r, e), e instanceof t && e._removeParent(this);
190
- }, t.EMPTY = function() {
190
+ }, t.EMPTY = (function() {
191
191
  var e = new t();
192
192
  return e.closed = !0, e;
193
- }(), t;
194
- }(), Y = S.EMPTY;
193
+ })(), t;
194
+ })(), Y = S.EMPTY;
195
195
  function q(t) {
196
196
  return t instanceof S || t && "closed" in t && p(t.remove) && p(t.add) && p(t.unsubscribe);
197
197
  }
@@ -221,7 +221,7 @@ function M() {
221
221
  function m(t) {
222
222
  t();
223
223
  }
224
- var K = function(t) {
224
+ var K = (function(t) {
225
225
  y(e, t);
226
226
  function e(r) {
227
227
  var n = t.call(this) || this;
@@ -252,7 +252,7 @@ var K = function(t) {
252
252
  this.unsubscribe();
253
253
  }
254
254
  }, e;
255
- }(S), st = function() {
255
+ })(S), st = (function() {
256
256
  function t(e) {
257
257
  this.partialObserver = e;
258
258
  }
@@ -283,7 +283,7 @@ var K = function(t) {
283
283
  v(r);
284
284
  }
285
285
  }, t;
286
- }(), P = function(t) {
286
+ })(), P = (function(t) {
287
287
  y(e, t);
288
288
  function e(r, n, o) {
289
289
  var i = t.call(this) || this, s;
@@ -294,7 +294,7 @@ var K = function(t) {
294
294
  } : s = r, i.destination = new st(s), i;
295
295
  }
296
296
  return e;
297
- }(K);
297
+ })(K);
298
298
  function v(t) {
299
299
  it(t);
300
300
  }
@@ -306,9 +306,9 @@ var ut = {
306
306
  next: M,
307
307
  error: ct,
308
308
  complete: M
309
- }, at = function() {
309
+ }, at = (function() {
310
310
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
311
- }();
311
+ })();
312
312
  function lt(t) {
313
313
  return t;
314
314
  }
@@ -319,7 +319,7 @@ function ft(t) {
319
319
  }, r);
320
320
  };
321
321
  }
322
- var N = function() {
322
+ var N = (function() {
323
323
  function t(e) {
324
324
  e && (this._subscribe = e);
325
325
  }
@@ -378,7 +378,7 @@ var N = function() {
378
378
  }, t.create = function(e) {
379
379
  return new t(e);
380
380
  }, t;
381
- }();
381
+ })();
382
382
  function x(t) {
383
383
  var e;
384
384
  return (e = t ?? nt.Promise) !== null && e !== void 0 ? e : Promise;
@@ -393,7 +393,7 @@ var dt = Q(function(t) {
393
393
  return function() {
394
394
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
395
395
  };
396
- }), X = function(t) {
396
+ }), X = (function(t) {
397
397
  y(e, t);
398
398
  function e() {
399
399
  var r = t.call(this) || this;
@@ -416,8 +416,8 @@ var dt = Q(function(t) {
416
416
  var a = u.value;
417
417
  a.next(r);
418
418
  }
419
- } catch (_) {
420
- o = { error: _ };
419
+ } catch (g) {
420
+ o = { error: g };
421
421
  } finally {
422
422
  try {
423
423
  u && !u.done && (i = s.return) && i.call(s);
@@ -472,7 +472,7 @@ var dt = Q(function(t) {
472
472
  }, e.create = function(r, n) {
473
473
  return new $(r, n);
474
474
  }, e;
475
- }(N), $ = function(t) {
475
+ })(N), $ = (function(t) {
476
476
  y(e, t);
477
477
  function e(r, n) {
478
478
  var o = t.call(this) || this;
@@ -491,7 +491,7 @@ var dt = Q(function(t) {
491
491
  var n, o;
492
492
  return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o : Y;
493
493
  }, e;
494
- }(X), yt = function(t) {
494
+ })(X), yt = (function(t) {
495
495
  y(e, t);
496
496
  function e(r) {
497
497
  var n = t.call(this) || this;
@@ -514,7 +514,7 @@ 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
- }(X);
517
+ })(X);
518
518
  function bt(t) {
519
519
  return t;
520
520
  }
@@ -529,10 +529,10 @@ function l(t, e) {
529
529
  o.length === 1 && mt(r, o);
530
530
  };
531
531
  }
532
- const T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
532
+ const L = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
533
533
  function vt(t, e, r, n) {
534
- let o = T.get(t);
535
- return o || (o = [], T.set(t, o)), o.push({
534
+ let o = L.get(t);
535
+ return o || (o = [], L.set(t, o)), o.push({
536
536
  options: r,
537
537
  name: e,
538
538
  optionFactory: n.optionFactory || bt,
@@ -549,9 +549,9 @@ function mt(t, e) {
549
549
  ), t.componentWillLoad = Et(
550
550
  t.componentWillLoad,
551
551
  e
552
- ), t.componentDidUnload = L(
552
+ ), t.componentDidUnload = T(
553
553
  t.componentDidUnload
554
- ), t.disconnectedCallback = L(
554
+ ), t.disconnectedCallback = T(
555
555
  t.disconnectedCallback
556
556
  );
557
557
  }
@@ -559,9 +559,9 @@ function Z(t, e) {
559
559
  return async function(...r) {
560
560
  J.set(this, !0), E.set(this, []), await z(this);
561
561
  const n = new yt(this.context);
562
- _t(this, "context", n);
562
+ gt(this, "context", n);
563
563
  for (const o of e)
564
- o.options = o.optionFactory(o.options, this), St(o.options) && (o.options.context = n), gt(this, o);
564
+ o.options = o.optionFactory(o.options, this), St(o.options) && (o.options.context = n), _t(this, o);
565
565
  if (t)
566
566
  return t.apply(this, r);
567
567
  };
@@ -571,7 +571,7 @@ function Et(t, e) {
571
571
  return J.get(this) === !0 ? (await z(this), t ? t.apply(this, r) : void 0) : Z(t, e).apply(this, r);
572
572
  };
573
573
  }
574
- function L(t) {
574
+ function T(t) {
575
575
  return async function(...e) {
576
576
  let r;
577
577
  return t && (r = t.apply(this, e)), Ct(this), r;
@@ -595,7 +595,7 @@ function V(t, e) {
595
595
  });
596
596
  });
597
597
  }
598
- function _t(t, e, r) {
598
+ function gt(t, e, r) {
599
599
  const n = H(t), { get: o, set: i } = Object.getOwnPropertyDescriptor(
600
600
  Object.getPrototypeOf(n),
601
601
  e
@@ -608,7 +608,7 @@ function _t(t, e, r) {
608
608
  }
609
609
  });
610
610
  }
611
- function gt(t, e) {
611
+ function _t(t, e) {
612
612
  const r = At(t, e);
613
613
  if (typeof r != "function")
614
614
  return;
@@ -644,7 +644,7 @@ function Te(t = {}) {
644
644
  };
645
645
  return l(t, e);
646
646
  }
647
- function Le(t = {}) {
647
+ function Ve(t = {}) {
648
648
  const e = {
649
649
  name: c.LimeTypeRepository
650
650
  };
@@ -654,21 +654,21 @@ function wt(t) {
654
654
  const { limetype: e } = this.context;
655
655
  return t[e];
656
656
  }
657
- const Ve = (t) => (e) => Object.values(e).find(tt(t));
658
- function Ue(t, e) {
657
+ const Ue = (t) => (e) => Object.values(e).find(tt(t));
658
+ function Fe(t, e) {
659
659
  return Object.values(t.properties).filter(
660
660
  (r) => r.type === e
661
661
  );
662
662
  }
663
- function Fe(t, e) {
663
+ function ke(t, e) {
664
664
  return Object.values(t.properties).find(tt(e));
665
665
  }
666
- function ke(t, e) {
666
+ function Be(t, e) {
667
667
  return t.properties[e];
668
668
  }
669
669
  const tt = (t) => (e) => e?.label === t, Pt = "state.limeobjects";
670
670
  c.LimeObjectRepository = Pt;
671
- function Be(t = {}) {
671
+ function We(t = {}) {
672
672
  const e = {
673
673
  name: c.LimeObjectRepository,
674
674
  optionFactory: jt
@@ -712,10 +712,10 @@ function $t(t) {
712
712
  e = [...e, r], n = Object.getPrototypeOf(n);
713
713
  return [...new Set(e)];
714
714
  }
715
- const Tt = "commandBus";
716
- c.CommandBus = Tt;
717
- var Lt = Object.getOwnPropertyDescriptor, Vt = (t, e, r, n) => {
718
- for (var o = n > 1 ? void 0 : n ? Lt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
715
+ const Lt = "commandBus";
716
+ c.CommandBus = Lt;
717
+ var Tt = Object.getOwnPropertyDescriptor, Vt = (t, e, r, n) => {
718
+ for (var o = n > 1 ? void 0 : n ? Tt(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
  };
@@ -743,15 +743,15 @@ F = kt([
743
743
  id: Bt
744
744
  })
745
745
  ], F);
746
- var Gt = Object.getOwnPropertyDescriptor, Wt = (t, e, r, n) => {
747
- for (var o = n > 1 ? void 0 : n ? Gt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
746
+ var Wt = Object.getOwnPropertyDescriptor, Gt = (t, e, r, n) => {
747
+ for (var o = n > 1 ? void 0 : n ? Wt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
748
748
  (s = t[i]) && (o = s(o) || o);
749
749
  return o;
750
750
  };
751
751
  const Ht = "limeobject.delete-object";
752
752
  let k = class {
753
753
  };
754
- k = Wt([
754
+ k = Gt([
755
755
  h({
756
756
  id: Ht
757
757
  })
@@ -775,18 +775,18 @@ var Kt = Object.getOwnPropertyDescriptor, Xt = (t, e, r, n) => {
775
775
  return o;
776
776
  };
777
777
  const Jt = "limeobject.save-object";
778
- let G = class {
778
+ let W = class {
779
779
  constructor() {
780
780
  this.route = !1;
781
781
  }
782
782
  };
783
- G = Xt([
783
+ W = Xt([
784
784
  h({
785
785
  id: Jt
786
786
  })
787
- ], G);
787
+ ], W);
788
788
  var Zt = /* @__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))(Zt || {});
789
- const We = {
789
+ const He = {
790
790
  Count: "COUNT",
791
791
  Sum: "SUM",
792
792
  Average: "AVG",
@@ -794,7 +794,7 @@ const We = {
794
794
  Minimum: "MIN"
795
795
  }, zt = "query";
796
796
  c.Query = zt;
797
- const He = {
797
+ const Qe = {
798
798
  Get: "GET",
799
799
  Post: "POST",
800
800
  Put: "PUT",
@@ -812,7 +812,7 @@ const oe = "keybindingRegistry";
812
812
  c.KeybindingRegistry = oe;
813
813
  const ie = "navigator";
814
814
  c.Navigator = ie;
815
- function Qe(t) {
815
+ function Ye(t) {
816
816
  const e = {
817
817
  name: c.Navigator
818
818
  };
@@ -824,13 +824,13 @@ var se = Object.getOwnPropertyDescriptor, ce = (t, e, r, n) => {
824
824
  return o;
825
825
  };
826
826
  const ue = "navigator.navigate";
827
- let W = class {
827
+ let G = class {
828
828
  };
829
- W = ce([
829
+ G = ce([
830
830
  h({
831
831
  id: ue
832
832
  })
833
- ], W);
833
+ ], G);
834
834
  const ae = "notifications";
835
835
  c.Notification = ae;
836
836
  const le = "routeRegistry";
@@ -840,7 +840,7 @@ const he = "state.tasks";
840
840
  c.TaskRepository = he;
841
841
  const de = "state.configs";
842
842
  c.ConfigRepository = de;
843
- function Ye(t) {
843
+ function qe(t) {
844
844
  const e = {
845
845
  name: c.ConfigRepository
846
846
  };
@@ -848,7 +848,7 @@ function Ye(t) {
848
848
  }
849
849
  const ye = "state.device";
850
850
  c.Device = ye;
851
- function qe(t = {}) {
851
+ function Ke(t = {}) {
852
852
  const e = {
853
853
  name: c.Device
854
854
  };
@@ -856,7 +856,7 @@ function qe(t = {}) {
856
856
  }
857
857
  const be = "state.filters";
858
858
  c.FilterRepository = be;
859
- function Ke(t = {}) {
859
+ function Xe(t = {}) {
860
860
  const e = {
861
861
  name: c.FilterRepository
862
862
  };
@@ -864,7 +864,7 @@ function Ke(t = {}) {
864
864
  }
865
865
  const ve = "state.user-data";
866
866
  c.UserDataRepository = ve;
867
- function Xe(t = {}) {
867
+ function Je(t = {}) {
868
868
  const e = {
869
869
  name: c.UserDataRepository
870
870
  };
@@ -872,7 +872,7 @@ function Xe(t = {}) {
872
872
  }
873
873
  const me = "state.application";
874
874
  c.Application = me;
875
- function Je(t = {}) {
875
+ function Ze(t = {}) {
876
876
  const e = {
877
877
  name: c.Application
878
878
  };
@@ -881,7 +881,7 @@ function Je(t = {}) {
881
881
  function Ee(t) {
882
882
  return t.applicationName;
883
883
  }
884
- function Ze(t = {}) {
884
+ function ze(t = {}) {
885
885
  const e = {
886
886
  name: c.Application
887
887
  };
@@ -890,23 +890,23 @@ function Ze(t = {}) {
890
890
  function Se(t) {
891
891
  return t.currentUser;
892
892
  }
893
- function ze(t = {}) {
893
+ function tr(t = {}) {
894
894
  const e = {
895
895
  name: c.Application
896
896
  };
897
- return t.map = [_e, ...t.map || []], l(t, e);
897
+ return t.map = [ge, ...t.map || []], l(t, e);
898
898
  }
899
- function _e(t) {
899
+ function ge(t) {
900
900
  return t.session;
901
901
  }
902
- const ge = "userPreferences";
903
- c.UserPreferencesRepository = ge;
902
+ const _e = "userPreferences";
903
+ c.UserPreferencesRepository = _e;
904
904
  const Ce = "datetimeformatter";
905
905
  c.DateTimeFormatter = Ce;
906
- function tr(t) {
906
+ function er(t) {
907
907
  return t.type === "limeobject";
908
908
  }
909
- function er(t) {
909
+ function rr(t) {
910
910
  return t.type === "action";
911
911
  }
912
912
  const Oe = "conditionRegistry";
@@ -919,47 +919,55 @@ const we = "state.notifications";
919
919
  c.NotificationRepository = we;
920
920
  const Pe = "pollerFactory";
921
921
  c.PollerFactory = Pe;
922
+ const nr = {
923
+ Debug: "debug",
924
+ Info: "info",
925
+ Warn: "warn",
926
+ Error: "error"
927
+ }, Ie = "logger";
928
+ c.Logger = Ie;
922
929
  export {
923
- We as AggregateOperator,
930
+ He as AggregateOperator,
924
931
  U as BulkCreateDialogCommand,
925
932
  h as Command,
926
933
  Dt as CommandEventName,
927
934
  F as CreateLimeobjectDialogCommand,
928
935
  k as DeleteObjectCommand,
929
- He as HttpMethod,
930
- je as IdleStateEventName,
931
- W as NavigateCommand,
936
+ Qe as HttpMethod,
937
+ De as IdleStateEventName,
938
+ nr as LogLevel,
939
+ G as NavigateCommand,
932
940
  B as OpenObjectAccessDialogCommand,
933
941
  Zt as Operator,
934
942
  c as PlatformServiceName,
935
- G as SaveLimeObjectCommand,
936
- Je as SelectApplicationName,
937
- Ye as SelectConfig,
943
+ W as SaveLimeObjectCommand,
944
+ Ze as SelectApplicationName,
945
+ qe as SelectConfig,
938
946
  Ge as SelectCurrentLimeObject,
939
- Le as SelectCurrentLimeType,
940
- Ze as SelectCurrentUser,
941
- qe as SelectDevice,
942
- Ke as SelectFilters,
943
- Be as SelectLimeObjects,
947
+ Ve as SelectCurrentLimeType,
948
+ ze as SelectCurrentUser,
949
+ Ke as SelectDevice,
950
+ Xe as SelectFilters,
951
+ We as SelectLimeObjects,
944
952
  Te as SelectLimeTypes,
945
- Qe as SelectQueryParam,
946
- ze as SelectSession,
947
- Xe as SelectUserData,
953
+ Ye as SelectQueryParam,
954
+ tr as SelectSession,
955
+ Je as SelectUserData,
948
956
  pe as TaskEventType,
949
957
  fe as TaskState,
950
- Ve as findLimetypeByLabel,
958
+ Ue as findLimetypeByLabel,
951
959
  xt as getCommandId,
952
960
  $t as getCommandIds,
953
- Ue as getPropertiesByType,
954
- Fe as getPropertyByLabel,
955
- ke as getPropertyByName,
961
+ Fe as getPropertiesByType,
962
+ ke as getPropertyByLabel,
963
+ Be as getPropertyByName,
956
964
  tt as hasLabel,
957
- er as isActionCondition,
958
- Ne as isDate,
959
- $e as isFloat,
960
- tr as isLimeObjectCondition,
961
- De as isRelation,
962
- Me as isSingleRelation,
963
- xe as isString
965
+ rr as isActionCondition,
966
+ xe as isDate,
967
+ Le as isFloat,
968
+ er as isLimeObjectCondition,
969
+ Me as isRelation,
970
+ Ne as isSingleRelation,
971
+ $e as isString
964
972
  };
965
973
  //# sourceMappingURL=index.esm.js.map