@limetech/lime-web-components 6.7.0 → 6.8.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.d.ts CHANGED
@@ -48,4 +48,5 @@ export * from './webcomponent';
48
48
  export * from './notification-service';
49
49
  export * from './poller';
50
50
  export * from './logger';
51
+ export * from './problem';
51
52
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,SAAS,CAAC"}
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getElement as q, setErrorHandler as it } from "@stencil/core";
2
2
  const c = {
3
3
  Route: "route"
4
- }, We = "idle-state";
5
- function Ge(t) {
4
+ }, Ge = "idle-state";
5
+ function Qe(t) {
6
6
  return t && [
7
7
  "belongsto",
8
8
  "hasone",
@@ -10,10 +10,10 @@ function Ge(t) {
10
10
  "hasandbelongstomany"
11
11
  ].includes(t.type);
12
12
  }
13
- function Qe(t) {
13
+ function Ye(t) {
14
14
  return t && ["belongsto", "hasone"].includes(t.type);
15
15
  }
16
- function Ye(t) {
16
+ function qe(t) {
17
17
  return t && [
18
18
  "time",
19
19
  "timeofday",
@@ -23,25 +23,25 @@ function Ye(t) {
23
23
  "month"
24
24
  ].includes(t.type);
25
25
  }
26
- function qe(t) {
26
+ function Ke(t) {
27
27
  return t && ["string", "text", "phone", "link"].includes(t.type);
28
28
  }
29
- function Ke(t) {
29
+ function Xe(t) {
30
30
  return t && ["decimal", "percent"].includes(t.type);
31
31
  }
32
32
  const st = "state.limetypes";
33
33
  c.LimeTypeRepository = st;
34
- var R = function(t, e) {
35
- return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
34
+ var O = function(t, e) {
35
+ return O = 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
- }, R(t, e);
39
+ }, O(t, e);
40
40
  };
41
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
- R(t, e);
44
+ O(t, e);
45
45
  function r() {
46
46
  this.constructor = t;
47
47
  }
@@ -130,18 +130,18 @@ var _ = (function() {
130
130
  }
131
131
  else
132
132
  s.remove(this);
133
- var D = this.initialTeardown;
134
- if (p(D))
133
+ var M = this.initialTeardown;
134
+ if (p(M))
135
135
  try {
136
- D();
136
+ M();
137
137
  } catch (f) {
138
138
  i = f instanceof w ? f.errors : [f];
139
139
  }
140
- var M = this._finalizers;
141
- if (M) {
140
+ var D = this._finalizers;
141
+ if (D) {
142
142
  this._finalizers = null;
143
143
  try {
144
- for (var b = A(M), y = b.next(); !y.done; y = b.next()) {
144
+ for (var b = A(D), y = b.next(); !y.done; y = b.next()) {
145
145
  var ot = y.value;
146
146
  try {
147
147
  N(ot);
@@ -559,9 +559,9 @@ function et(t, e) {
559
559
  return async function(...r) {
560
560
  tt.set(this, !0), S.set(this, []), await rt(this);
561
561
  const n = new gt(this.context);
562
- Ot(this, "context", n);
562
+ Rt(this, "context", n);
563
563
  for (const o of e)
564
- o.options = o.optionFactory(o.options, this), wt(o.options) && (o.options.context = n), Rt(this, o);
564
+ o.options = o.optionFactory(o.options, this), wt(o.options) && (o.options.context = n), Ot(this, o);
565
565
  if (t)
566
566
  return t.apply(this, r);
567
567
  };
@@ -595,7 +595,7 @@ function k(t, e) {
595
595
  });
596
596
  });
597
597
  }
598
- function Ot(t, e, r) {
598
+ function Rt(t, e, r) {
599
599
  const n = q(t), { get: o, set: i } = Object.getOwnPropertyDescriptor(
600
600
  Object.getPrototypeOf(n),
601
601
  e
@@ -608,7 +608,7 @@ function Ot(t, e, r) {
608
608
  }
609
609
  });
610
610
  }
611
- function Rt(t, e) {
611
+ function Ot(t, e) {
612
612
  const r = It(t, e);
613
613
  if (typeof r != "function")
614
614
  return;
@@ -638,13 +638,13 @@ function It(t, e) {
638
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 Xe(t = {}) {
641
+ function Je(t = {}) {
642
642
  const e = {
643
643
  name: c.LimeTypeRepository
644
644
  };
645
645
  return l(t, e);
646
646
  }
647
- function Je(t = {}) {
647
+ function Ze(t = {}) {
648
648
  const e = {
649
649
  name: c.LimeTypeRepository
650
650
  };
@@ -654,34 +654,34 @@ function xt(t) {
654
654
  const { limetype: e } = this.context;
655
655
  return t[e];
656
656
  }
657
- const Ze = (t) => (e) => Object.values(e).find(nt(t));
658
- function ze(t, e) {
657
+ const ze = (t) => (e) => Object.values(e).find(nt(t));
658
+ function tr(t, e) {
659
659
  return Object.values(t.properties).filter(
660
660
  (r) => r.type === e
661
661
  );
662
662
  }
663
- function tr(t, e) {
663
+ function er(t, e) {
664
664
  return Object.values(t.properties).find(nt(e));
665
665
  }
666
- function er(t, e) {
666
+ function rr(t, e) {
667
667
  return t.properties[e];
668
668
  }
669
- const nt = (t) => (e) => e?.label === t, Dt = "state.limeobjects";
670
- c.LimeObjectRepository = Dt;
671
- function rr(t = {}) {
669
+ const nt = (t) => (e) => e?.label === t, Mt = "state.limeobjects";
670
+ c.LimeObjectRepository = Mt;
671
+ function nr(t = {}) {
672
672
  const e = {
673
673
  name: c.LimeObjectRepository,
674
674
  optionFactory: Nt
675
675
  };
676
676
  return l(t, e);
677
677
  }
678
- function nr(t = {}) {
678
+ function or(t = {}) {
679
679
  const e = {
680
680
  name: c.LimeObjectRepository
681
681
  };
682
- return t.map = [Mt, ...t.map || []], t.context = null, l(t, e);
682
+ return t.map = [Dt, ...t.map || []], t.context = null, l(t, e);
683
683
  }
684
- function Mt(t) {
684
+ function Dt(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);
@@ -843,7 +843,7 @@ Q = te([
843
843
  })
844
844
  ], Q);
845
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 = {
846
+ const ir = {
847
847
  Count: "COUNT",
848
848
  Sum: "SUM",
849
849
  Average: "AVG",
@@ -851,7 +851,7 @@ const or = {
851
851
  Minimum: "MIN"
852
852
  }, ne = "query";
853
853
  c.Query = ne;
854
- const ir = {
854
+ const sr = {
855
855
  Get: "GET",
856
856
  Post: "POST",
857
857
  Put: "PUT",
@@ -869,7 +869,7 @@ const ue = "keybindingRegistry";
869
869
  c.KeybindingRegistry = ue;
870
870
  const ae = "navigator";
871
871
  c.Navigator = ae;
872
- function sr(t) {
872
+ function cr(t) {
873
873
  const e = {
874
874
  name: c.Navigator
875
875
  };
@@ -901,7 +901,7 @@ const be = "state.tasks";
901
901
  c.TaskRepository = be;
902
902
  const ve = "state.configs";
903
903
  c.ConfigRepository = ve;
904
- function cr(t) {
904
+ function ur(t) {
905
905
  const e = {
906
906
  name: c.ConfigRepository
907
907
  };
@@ -909,7 +909,7 @@ function cr(t) {
909
909
  }
910
910
  const ge = "state.device";
911
911
  c.Device = ge;
912
- function ur(t = {}) {
912
+ function ar(t = {}) {
913
913
  const e = {
914
914
  name: c.Device
915
915
  };
@@ -917,7 +917,7 @@ function ur(t = {}) {
917
917
  }
918
918
  const Ee = "state.filters";
919
919
  c.FilterRepository = Ee;
920
- function ar(t = {}) {
920
+ function lr(t = {}) {
921
921
  const e = {
922
922
  name: c.FilterRepository
923
923
  };
@@ -925,7 +925,7 @@ function ar(t = {}) {
925
925
  }
926
926
  const Se = "state.user-data";
927
927
  c.UserDataRepository = Se;
928
- function lr(t = {}) {
928
+ function fr(t = {}) {
929
929
  const e = {
930
930
  name: c.UserDataRepository
931
931
  };
@@ -933,7 +933,7 @@ function lr(t = {}) {
933
933
  }
934
934
  const _e = "state.application";
935
935
  c.Application = _e;
936
- function fr(t = {}) {
936
+ function pr(t = {}) {
937
937
  const e = {
938
938
  name: c.Application
939
939
  };
@@ -942,7 +942,7 @@ function fr(t = {}) {
942
942
  function Ce(t) {
943
943
  return t.applicationName;
944
944
  }
945
- function pr(t = {}) {
945
+ function hr(t = {}) {
946
946
  const e = {
947
947
  name: c.Application
948
948
  };
@@ -951,23 +951,23 @@ function pr(t = {}) {
951
951
  function we(t) {
952
952
  return t.currentUser;
953
953
  }
954
- function hr(t = {}) {
954
+ function dr(t = {}) {
955
955
  const e = {
956
956
  name: c.Application
957
957
  };
958
- return t.map = [Oe, ...t.map || []], l(t, e);
958
+ return t.map = [Re, ...t.map || []], l(t, e);
959
959
  }
960
- function Oe(t) {
960
+ function Re(t) {
961
961
  return t.session;
962
962
  }
963
- const Re = "userPreferences";
964
- c.UserPreferencesRepository = Re;
963
+ const Oe = "userPreferences";
964
+ c.UserPreferencesRepository = Oe;
965
965
  const Ae = "datetimeformatter";
966
966
  c.DateTimeFormatter = Ae;
967
- function dr(t) {
967
+ function yr(t) {
968
968
  return t.type === "limeobject";
969
969
  }
970
- function yr(t) {
970
+ function mr(t) {
971
971
  return t.type === "action";
972
972
  }
973
973
  const Pe = "conditionRegistry";
@@ -978,15 +978,15 @@ const je = "webComponentRegistry";
978
978
  c.WebComponentRegistry = je;
979
979
  const xe = "state.notifications";
980
980
  c.NotificationRepository = xe;
981
- const De = "pollerFactory";
982
- c.PollerFactory = De;
983
- const mr = {
981
+ const Me = "pollerFactory";
982
+ c.PollerFactory = Me;
983
+ const br = {
984
984
  Debug: "debug",
985
985
  Info: "info",
986
986
  Warn: "warn",
987
987
  Error: "error"
988
- }, Me = "logger";
989
- c.Logger = Me;
988
+ }, De = "logger";
989
+ c.Logger = De;
990
990
  let h, g;
991
991
  function Ne(t) {
992
992
  const e = window.Lime?.logger?.createLogger;
@@ -1038,62 +1038,70 @@ function ke(t) {
1038
1038
  const e = /\/static\/([^/]+)\//, r = t.match(e);
1039
1039
  return r ? r[1] : null;
1040
1040
  }
1041
- let O = null;
1042
- function Be(t, e) {
1043
- O || (O = Ne("uncaught-error"));
1041
+ const vr = {
1042
+ Low: "low",
1043
+ Medium: "medium",
1044
+ High: "high",
1045
+ Critical: "critical"
1046
+ }, Be = "problemRepository";
1047
+ c.ProblemRepository = Be;
1048
+ let R = null;
1049
+ function He(t, e) {
1050
+ R || (R = Ne("uncaught-error"));
1044
1051
  const r = {};
1045
1052
  e && (r.element = e.tagName, e.id && (r.elementId = e.id));
1046
1053
  const n = t instanceof Error ? t.message : String(t), o = t instanceof Error ? t : void 0;
1047
- O.error(n, o, r);
1054
+ R.error(n, o, r);
1048
1055
  }
1049
1056
  try {
1050
- it(Be);
1057
+ it(He);
1051
1058
  } catch {
1052
1059
  }
1053
1060
  export {
1054
- or as AggregateOperator,
1061
+ ir as AggregateOperator,
1055
1062
  B as BulkCreateDialogCommand,
1056
1063
  d as Command,
1057
1064
  $t as CommandEventName,
1058
1065
  H as CreateLimeobjectDialogCommand,
1059
1066
  W as DeleteObjectCommand,
1060
- ir as HttpMethod,
1061
- We as IdleStateEventName,
1062
- mr as LogLevel,
1067
+ sr as HttpMethod,
1068
+ Ge as IdleStateEventName,
1069
+ br as LogLevel,
1063
1070
  Y as NavigateCommand,
1064
1071
  G as OpenObjectAccessDialogCommand,
1065
1072
  re as Operator,
1066
1073
  c as PlatformServiceName,
1074
+ vr as ProblemSeverity,
1067
1075
  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,
1076
+ pr as SelectApplicationName,
1077
+ ur as SelectConfig,
1078
+ or as SelectCurrentLimeObject,
1079
+ Ze as SelectCurrentLimeType,
1080
+ hr as SelectCurrentUser,
1081
+ ar as SelectDevice,
1082
+ lr as SelectFilters,
1083
+ nr as SelectLimeObjects,
1084
+ Je as SelectLimeTypes,
1085
+ cr as SelectQueryParam,
1086
+ dr as SelectSession,
1087
+ fr as SelectUserData,
1080
1088
  me as TaskEventType,
1081
1089
  ye as TaskState,
1082
1090
  Ne as createLogger,
1083
- Ze as findLimetypeByLabel,
1091
+ ze as findLimetypeByLabel,
1084
1092
  Vt as getCommandId,
1085
1093
  Ft as getCommandIds,
1086
1094
  Te as getPackageNameFromUrl,
1087
- ze as getPropertiesByType,
1088
- tr as getPropertyByLabel,
1089
- er as getPropertyByName,
1095
+ tr as getPropertiesByType,
1096
+ er as getPropertyByLabel,
1097
+ rr as getPropertyByName,
1090
1098
  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
1099
+ mr as isActionCondition,
1100
+ qe as isDate,
1101
+ Xe as isFloat,
1102
+ yr as isLimeObjectCondition,
1103
+ Qe as isRelation,
1104
+ Ye as isSingleRelation,
1105
+ Ke as isString
1098
1106
  };
1099
1107
  //# sourceMappingURL=index.esm.js.map