@argusoft/medplat-form-engine 1.0.20 → 1.0.22
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/{ChangePasswordModalCore-ClND1mel-CmFNZntP.js → ChangePasswordModalCore-ClND1mel-DIVIXMo9.js} +2 -2
- package/dist/{ChangePasswordModalCore-ClND1mel-CmFNZntP.js.map → ChangePasswordModalCore-ClND1mel-DIVIXMo9.js.map} +1 -1
- package/dist/EventConfigurations-D8juDb29-2lFYlu4y.js +449 -0
- package/dist/EventConfigurations-D8juDb29-2lFYlu4y.js.map +1 -0
- package/dist/{FeatureMenu-CLX8VNZ--BP8v_6V-.js → FeatureMenu-CLX8VNZ--CJbuoMAo.js} +2 -2
- package/dist/{FeatureMenu-CLX8VNZ--BP8v_6V-.js.map → FeatureMenu-CLX8VNZ--CJbuoMAo.js.map} +1 -1
- package/dist/ImmunizationConfigurationBase-BqPTExSk-KtUYd4ce.js +5649 -0
- package/dist/ImmunizationConfigurationBase-BqPTExSk-KtUYd4ce.js.map +1 -0
- package/dist/{ImmunizationConfigurationsList-K2ddBpPJ-un50WS9n.js → ImmunizationConfigurationsList-K2ddBpPJ-BXXtfySZ.js} +17 -17
- package/dist/{ImmunizationConfigurationsList-K2ddBpPJ-un50WS9n.js.map → ImmunizationConfigurationsList-K2ddBpPJ-BXXtfySZ.js.map} +1 -1
- package/dist/LanguagesModal-CX3oS8rk-ZZNlYP-A.js.map +1 -1
- package/dist/{ManageNotification-BUAvg5Ge-Bhydybdr.js → ManageNotification-BUAvg5Ge-CoFSujgQ.js} +2 -2
- package/dist/{ManageNotification-BUAvg5Ge-Bhydybdr.js.map → ManageNotification-BUAvg5Ge-CoFSujgQ.js.map} +1 -1
- package/dist/ManageTranslation-D9IScGhk-DWuYBAs5.js.map +1 -1
- package/dist/{ManageUser-eBS0yC5k-DXVvbH0N.js → ManageUser-eBS0yC5k-Czte7Daw.js} +3 -3
- package/dist/{ManageUser-eBS0yC5k-DXVvbH0N.js.map → ManageUser-eBS0yC5k-Czte7Daw.js.map} +1 -1
- package/dist/{MedplatFormWrapper-C1R9ZJ3u.js → MedplatFormWrapper-BAq0tR-Z.js} +23937 -23308
- package/dist/MedplatFormWrapper-BAq0tR-Z.js.map +1 -0
- package/dist/MedplatFormWrapper.css +1 -1
- package/dist/{NotificationList-CUZSWp2J-DBaOb_L9.js → NotificationList-CUZSWp2J-m3Lea935.js} +23 -23
- package/dist/{NotificationList-CUZSWp2J-DBaOb_L9.js.map → NotificationList-CUZSWp2J-m3Lea935.js.map} +1 -1
- package/dist/QueryBuilder-DXexUIe8-D3hu9ipu.js.map +1 -1
- package/dist/{QueryManagement-B2y23kus-6z3FKq9G.js → QueryManagement-DGHV_-d5-Gd6oGWRf.js} +380 -303
- package/dist/QueryManagement-DGHV_-d5-Gd6oGWRf.js.map +1 -0
- package/dist/{SecurityAuditLogList-DHTcOtbx-B3QyLrA6.js → SecurityAuditLogList-DHTcOtbx-DyRFp2ER.js} +3 -3
- package/dist/{SecurityAuditLogList-DHTcOtbx-B3QyLrA6.js.map → SecurityAuditLogList-DHTcOtbx-DyRFp2ER.js.map} +1 -1
- package/dist/{ServerSyncModal-D_oFpv3C-CGSmzgzH.js → ServerSyncModal-D_oFpv3C-2buxeurB.js} +10 -10
- package/dist/{ServerSyncModal-D_oFpv3C-CGSmzgzH.js.map → ServerSyncModal-D_oFpv3C-2buxeurB.js.map} +1 -1
- package/dist/{SubMenu-BGznOP2a-B88vYIZx.js → SubMenu-BGznOP2a-BShiOQvp.js} +3 -3
- package/dist/{SubMenu-BGznOP2a-B88vYIZx.js.map → SubMenu-BGznOP2a-BShiOQvp.js.map} +1 -1
- package/dist/UserList-BAeAFeXZ-dObYbxZz.js.map +1 -1
- package/dist/{default-D_Nhv5H-.js → default-WLQVhB8h.js} +2 -2
- package/dist/{default-D_Nhv5H-.js.map → default-WLQVhB8h.js.map} +1 -1
- package/dist/{index-BFznsakV-Cqob1b1b.js → index-BFznsakV-Cl4v9jE1.js} +3 -3
- package/dist/{index-BFznsakV-Cqob1b1b.js.map → index-BFznsakV-Cl4v9jE1.js.map} +1 -1
- package/dist/{index-CIs3fGL6.js → index-DbddVURn.js} +154 -154
- package/dist/index-DbddVURn.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/EventConfigurations-DZvSJ5EZ-DjzXbwJS.js +0 -395
- package/dist/EventConfigurations-DZvSJ5EZ-DjzXbwJS.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-VqVvVR57-Ch37h6yS.js +0 -5385
- package/dist/ImmunizationConfigurationBase-VqVvVR57-Ch37h6yS.js.map +0 -1
- package/dist/MedplatFormWrapper-C1R9ZJ3u.js.map +0 -1
- package/dist/QueryManagement-B2y23kus-6z3FKq9G.js.map +0 -1
- package/dist/index-CIs3fGL6.js.map +0 -1
- /package/dist/{EventConfigurations-DZvSJ5EZ.css → EventConfigurations-D8juDb29.css} +0 -0
- /package/dist/{ImmunizationConfigurationBase-VqVvVR57.css → ImmunizationConfigurationBase-BqPTExSk.css} +0 -0
- /package/dist/{QueryManagement-B2y23kus.css → QueryManagement-DGHV_-d5.css} +0 -0
|
@@ -6,7 +6,7 @@ import { useWatch as me } from "react-hook-form";
|
|
|
6
6
|
import './index.css';const se = ue(
|
|
7
7
|
() => import("@/views/feature-components/VerifyRoute.jsx")
|
|
8
8
|
), ae = ue(
|
|
9
|
-
() => import("./MedplatFormWrapper-
|
|
9
|
+
() => import("./MedplatFormWrapper-BAq0tR-Z.js").then((e) => e.M)
|
|
10
10
|
), ke = [
|
|
11
11
|
{
|
|
12
12
|
path: "medplat/form/:formCode",
|
|
@@ -52,15 +52,15 @@ function _e() {
|
|
|
52
52
|
(function(a, u) {
|
|
53
53
|
e.exports = u();
|
|
54
54
|
})(ye, (function() {
|
|
55
|
-
var a = 1e3, u = 6e4, l = 36e5,
|
|
55
|
+
var a = 1e3, u = 6e4, l = 36e5, m = "millisecond", y = "second", f = "minute", T = "hour", g = "day", L = "week", P = "month", U = "quarter", Y = "year", E = "date", W = "Invalid Date", o = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(c) {
|
|
56
56
|
var n = ["th", "st", "nd", "rd"], t = c % 100;
|
|
57
57
|
return "[" + c + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
58
|
-
} },
|
|
58
|
+
} }, p = function(c, n, t) {
|
|
59
59
|
var i = String(c);
|
|
60
60
|
return !i || i.length >= n ? c : "" + Array(n + 1 - i.length).join(t) + c;
|
|
61
|
-
}, $ = { s:
|
|
61
|
+
}, $ = { s: p, z: function(c) {
|
|
62
62
|
var n = -c.utcOffset(), t = Math.abs(n), i = Math.floor(t / 60), s = t % 60;
|
|
63
|
-
return (n <= 0 ? "+" : "-") +
|
|
63
|
+
return (n <= 0 ? "+" : "-") + p(i, 2, "0") + ":" + p(s, 2, "0");
|
|
64
64
|
}, m: function c(n, t) {
|
|
65
65
|
if (n.date() < t.date()) return -c(t, n);
|
|
66
66
|
var i = 12 * (t.year() - n.year()) + (t.month() - n.month()), s = n.clone().add(i, P), d = t - s < 0, h = n.clone().add(i + (d ? -1 : 1), P);
|
|
@@ -68,32 +68,32 @@ function _e() {
|
|
|
68
68
|
}, a: function(c) {
|
|
69
69
|
return c < 0 ? Math.ceil(c) || 0 : Math.floor(c);
|
|
70
70
|
}, p: function(c) {
|
|
71
|
-
return { M: P, y: Y, w: L, d:
|
|
71
|
+
return { M: P, y: Y, w: L, d: g, D: E, h: T, m: f, s: y, ms: m, Q: U }[c] || String(c || "").toLowerCase().replace(/s$/, "");
|
|
72
72
|
}, u: function(c) {
|
|
73
73
|
return c === void 0;
|
|
74
|
-
} },
|
|
75
|
-
M[
|
|
76
|
-
var F = "$isDayjsObject",
|
|
74
|
+
} }, A = "en", M = {};
|
|
75
|
+
M[A] = C;
|
|
76
|
+
var F = "$isDayjsObject", j = function(c) {
|
|
77
77
|
return c instanceof N || !(!c || !c[F]);
|
|
78
78
|
}, k = function c(n, t, i) {
|
|
79
79
|
var s;
|
|
80
|
-
if (!n) return
|
|
80
|
+
if (!n) return A;
|
|
81
81
|
if (typeof n == "string") {
|
|
82
82
|
var d = n.toLowerCase();
|
|
83
83
|
M[d] && (s = d), t && (M[d] = t, s = d);
|
|
84
84
|
var h = n.split("-");
|
|
85
85
|
if (!s && h.length > 1) return c(h[0]);
|
|
86
86
|
} else {
|
|
87
|
-
var
|
|
88
|
-
M[
|
|
87
|
+
var O = n.name;
|
|
88
|
+
M[O] = n, s = O;
|
|
89
89
|
}
|
|
90
|
-
return !i && s && (
|
|
90
|
+
return !i && s && (A = s), s || !i && A;
|
|
91
91
|
}, S = function(c, n) {
|
|
92
|
-
if (
|
|
92
|
+
if (j(c)) return c.clone();
|
|
93
93
|
var t = typeof n == "object" ? n : {};
|
|
94
94
|
return t.date = c, t.args = arguments, new N(t);
|
|
95
95
|
}, _ = $;
|
|
96
|
-
_.l = k, _.i =
|
|
96
|
+
_.l = k, _.i = j, _.w = function(c, n) {
|
|
97
97
|
return S(c, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
98
98
|
};
|
|
99
99
|
var N = (function() {
|
|
@@ -110,8 +110,8 @@ function _e() {
|
|
|
110
110
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
111
111
|
var h = s.match(o);
|
|
112
112
|
if (h) {
|
|
113
|
-
var
|
|
114
|
-
return d ? new Date(Date.UTC(h[1],
|
|
113
|
+
var O = h[2] - 1 || 0, D = (h[7] || "0").substring(0, 3);
|
|
114
|
+
return d ? new Date(Date.UTC(h[1], O, h[3] || 1, h[4] || 0, h[5] || 0, h[6] || 0, D)) : new Date(h[1], O, h[3] || 1, h[4] || 0, h[5] || 0, h[6] || 0, D);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
return new Date(s);
|
|
@@ -122,7 +122,7 @@ function _e() {
|
|
|
122
122
|
}, n.$utils = function() {
|
|
123
123
|
return _;
|
|
124
124
|
}, n.isValid = function() {
|
|
125
|
-
return this.$d.toString() !==
|
|
125
|
+
return this.$d.toString() !== W;
|
|
126
126
|
}, n.isSame = function(t, i) {
|
|
127
127
|
var s = S(t);
|
|
128
128
|
return this.startOf(i) <= s && s <= this.endOf(i);
|
|
@@ -137,28 +137,28 @@ function _e() {
|
|
|
137
137
|
}, n.valueOf = function() {
|
|
138
138
|
return this.$d.getTime();
|
|
139
139
|
}, n.startOf = function(t, i) {
|
|
140
|
-
var s = this, d = !!_.u(i) || i, h = _.p(t),
|
|
140
|
+
var s = this, d = !!_.u(i) || i, h = _.p(t), O = function(J, w) {
|
|
141
141
|
var R = _.w(s.$u ? Date.UTC(s.$y, w, J) : new Date(s.$y, w, J), s);
|
|
142
|
-
return d ? R : R.endOf(
|
|
142
|
+
return d ? R : R.endOf(g);
|
|
143
143
|
}, D = function(J, w) {
|
|
144
144
|
return _.w(s.toDate()[J].apply(s.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(w)), s);
|
|
145
|
-
}, I = this.$W, V = this.$M,
|
|
145
|
+
}, I = this.$W, V = this.$M, H = this.$D, z = "set" + (this.$u ? "UTC" : "");
|
|
146
146
|
switch (h) {
|
|
147
147
|
case Y:
|
|
148
|
-
return d ?
|
|
148
|
+
return d ? O(1, 0) : O(31, 11);
|
|
149
149
|
case P:
|
|
150
|
-
return d ?
|
|
150
|
+
return d ? O(1, V) : O(0, V + 1);
|
|
151
151
|
case L:
|
|
152
152
|
var v = this.$locale().weekStart || 0, G = (I < v ? I + 7 : I) - v;
|
|
153
|
-
return
|
|
154
|
-
case
|
|
153
|
+
return O(d ? H - G : H + (6 - G), V);
|
|
154
|
+
case g:
|
|
155
155
|
case E:
|
|
156
156
|
return D(z + "Hours", 0);
|
|
157
|
-
case
|
|
157
|
+
case T:
|
|
158
158
|
return D(z + "Minutes", 1);
|
|
159
159
|
case f:
|
|
160
160
|
return D(z + "Seconds", 2);
|
|
161
|
-
case
|
|
161
|
+
case y:
|
|
162
162
|
return D(z + "Milliseconds", 3);
|
|
163
163
|
default:
|
|
164
164
|
return this.clone();
|
|
@@ -166,11 +166,11 @@ function _e() {
|
|
|
166
166
|
}, n.endOf = function(t) {
|
|
167
167
|
return this.startOf(t, !1);
|
|
168
168
|
}, n.$set = function(t, i) {
|
|
169
|
-
var s, d = _.p(t), h = "set" + (this.$u ? "UTC" : ""),
|
|
169
|
+
var s, d = _.p(t), h = "set" + (this.$u ? "UTC" : ""), O = (s = {}, s[g] = h + "Date", s[E] = h + "Date", s[P] = h + "Month", s[Y] = h + "FullYear", s[T] = h + "Hours", s[f] = h + "Minutes", s[y] = h + "Seconds", s[m] = h + "Milliseconds", s)[d], D = d === g ? this.$D + (i - this.$W) : i;
|
|
170
170
|
if (d === P || d === Y) {
|
|
171
171
|
var I = this.clone().set(E, 1);
|
|
172
|
-
I.$d[
|
|
173
|
-
} else
|
|
172
|
+
I.$d[O](D), I.init(), this.$d = I.set(E, Math.min(this.$D, I.daysInMonth())).$d;
|
|
173
|
+
} else O && this.$d[O](D);
|
|
174
174
|
return this.init(), this;
|
|
175
175
|
}, n.set = function(t, i) {
|
|
176
176
|
return this.clone().$set(t, i);
|
|
@@ -179,25 +179,25 @@ function _e() {
|
|
|
179
179
|
}, n.add = function(t, i) {
|
|
180
180
|
var s, d = this;
|
|
181
181
|
t = Number(t);
|
|
182
|
-
var h = _.p(i),
|
|
183
|
-
var
|
|
184
|
-
return _.w(
|
|
182
|
+
var h = _.p(i), O = function(V) {
|
|
183
|
+
var H = S(d);
|
|
184
|
+
return _.w(H.date(H.date() + Math.round(V * t)), d);
|
|
185
185
|
};
|
|
186
186
|
if (h === P) return this.set(P, this.$M + t);
|
|
187
187
|
if (h === Y) return this.set(Y, this.$y + t);
|
|
188
|
-
if (h ===
|
|
189
|
-
if (h === L) return
|
|
190
|
-
var D = (s = {}, s[f] = u, s[
|
|
188
|
+
if (h === g) return O(1);
|
|
189
|
+
if (h === L) return O(7);
|
|
190
|
+
var D = (s = {}, s[f] = u, s[T] = l, s[y] = a, s)[h] || 1, I = this.$d.getTime() + t * D;
|
|
191
191
|
return _.w(I, this);
|
|
192
192
|
}, n.subtract = function(t, i) {
|
|
193
193
|
return this.add(-1 * t, i);
|
|
194
194
|
}, n.format = function(t) {
|
|
195
195
|
var i = this, s = this.$locale();
|
|
196
|
-
if (!this.isValid()) return s.invalidDate ||
|
|
197
|
-
var d = t || "YYYY-MM-DDTHH:mm:ssZ", h = _.z(this),
|
|
196
|
+
if (!this.isValid()) return s.invalidDate || W;
|
|
197
|
+
var d = t || "YYYY-MM-DDTHH:mm:ssZ", h = _.z(this), O = this.$H, D = this.$m, I = this.$M, V = s.weekdays, H = s.months, z = s.meridiem, v = function(w, R, X, x) {
|
|
198
198
|
return w && (w[R] || w(i, d)) || X[R].slice(0, x);
|
|
199
199
|
}, G = function(w) {
|
|
200
|
-
return _.s(
|
|
200
|
+
return _.s(O % 12 || 12, w, "0");
|
|
201
201
|
}, J = z || function(w, R, X) {
|
|
202
202
|
var x = w < 12 ? "AM" : "PM";
|
|
203
203
|
return X ? x.toLowerCase() : x;
|
|
@@ -214,9 +214,9 @@ function _e() {
|
|
|
214
214
|
case "MM":
|
|
215
215
|
return _.s(I + 1, 2, "0");
|
|
216
216
|
case "MMM":
|
|
217
|
-
return v(s.monthsShort, I,
|
|
217
|
+
return v(s.monthsShort, I, H, 3);
|
|
218
218
|
case "MMMM":
|
|
219
|
-
return v(
|
|
219
|
+
return v(H, I);
|
|
220
220
|
case "D":
|
|
221
221
|
return i.$D;
|
|
222
222
|
case "DD":
|
|
@@ -230,17 +230,17 @@ function _e() {
|
|
|
230
230
|
case "dddd":
|
|
231
231
|
return V[i.$W];
|
|
232
232
|
case "H":
|
|
233
|
-
return String(
|
|
233
|
+
return String(O);
|
|
234
234
|
case "HH":
|
|
235
|
-
return _.s(
|
|
235
|
+
return _.s(O, 2, "0");
|
|
236
236
|
case "h":
|
|
237
237
|
return G(1);
|
|
238
238
|
case "hh":
|
|
239
239
|
return G(2);
|
|
240
240
|
case "a":
|
|
241
|
-
return J(
|
|
241
|
+
return J(O, D, !0);
|
|
242
242
|
case "A":
|
|
243
|
-
return J(
|
|
243
|
+
return J(O, D, !1);
|
|
244
244
|
case "m":
|
|
245
245
|
return String(D);
|
|
246
246
|
case "mm":
|
|
@@ -260,32 +260,32 @@ function _e() {
|
|
|
260
260
|
}, n.utcOffset = function() {
|
|
261
261
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
262
262
|
}, n.diff = function(t, i, s) {
|
|
263
|
-
var d, h = this,
|
|
263
|
+
var d, h = this, O = _.p(i), D = S(t), I = (D.utcOffset() - this.utcOffset()) * u, V = this - D, H = function() {
|
|
264
264
|
return _.m(h, D);
|
|
265
265
|
};
|
|
266
|
-
switch (
|
|
266
|
+
switch (O) {
|
|
267
267
|
case Y:
|
|
268
|
-
d =
|
|
268
|
+
d = H() / 12;
|
|
269
269
|
break;
|
|
270
270
|
case P:
|
|
271
|
-
d =
|
|
271
|
+
d = H();
|
|
272
272
|
break;
|
|
273
273
|
case U:
|
|
274
|
-
d =
|
|
274
|
+
d = H() / 3;
|
|
275
275
|
break;
|
|
276
276
|
case L:
|
|
277
277
|
d = (V - I) / 6048e5;
|
|
278
278
|
break;
|
|
279
|
-
case
|
|
279
|
+
case g:
|
|
280
280
|
d = (V - I) / 864e5;
|
|
281
281
|
break;
|
|
282
|
-
case
|
|
282
|
+
case T:
|
|
283
283
|
d = V / l;
|
|
284
284
|
break;
|
|
285
285
|
case f:
|
|
286
286
|
d = V / u;
|
|
287
287
|
break;
|
|
288
|
-
case
|
|
288
|
+
case y:
|
|
289
289
|
d = V / a;
|
|
290
290
|
break;
|
|
291
291
|
default:
|
|
@@ -312,20 +312,20 @@ function _e() {
|
|
|
312
312
|
return this.$d.toUTCString();
|
|
313
313
|
}, c;
|
|
314
314
|
})(), K = N.prototype;
|
|
315
|
-
return S.prototype = K, [["$ms",
|
|
315
|
+
return S.prototype = K, [["$ms", m], ["$s", y], ["$m", f], ["$H", T], ["$W", g], ["$M", P], ["$y", Y], ["$D", E]].forEach((function(c) {
|
|
316
316
|
K[c[1]] = function(n) {
|
|
317
317
|
return this.$g(n, c[0], c[1]);
|
|
318
318
|
};
|
|
319
319
|
})), S.extend = function(c, n) {
|
|
320
320
|
return c.$i || (c(n, N, S), c.$i = !0), S;
|
|
321
|
-
}, S.locale = k, S.isDayjs =
|
|
321
|
+
}, S.locale = k, S.isDayjs = j, S.unix = function(c) {
|
|
322
322
|
return S(1e3 * c);
|
|
323
|
-
}, S.en = M[
|
|
323
|
+
}, S.en = M[A], S.Ls = M, S.p = {}, S;
|
|
324
324
|
}));
|
|
325
325
|
})(re)), re.exports;
|
|
326
326
|
}
|
|
327
327
|
var $e = _e();
|
|
328
|
-
const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1").replace(/\[(\d+)\]$/g, ".$1"), ce = (e) => Object.entries(e || {}).reduce((a, [u, l]) => (l != null && (a[u] = l), a), {}),
|
|
328
|
+
const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1").replace(/\[(\d+)\]$/g, ".$1"), ce = (e) => Object.entries(e || {}).reduce((a, [u, l]) => (l != null && (a[u] = l), a), {}), Te = (e) => new URLSearchParams(ce(e)).toString(), Oe = (e) => Object.fromEntries(e == null ? void 0 : e.entries()), Ae = (e) => Array.isArray(e) ? e.length > 0 && e[0] !== null && typeof e[0] == "object" && !Array.isArray(e[0]) ? JSON.stringify(e) : e.map((r) => String(r ?? "")).join(",") : e, Ce = (e) => {
|
|
329
329
|
var r;
|
|
330
330
|
return (r = e == null ? void 0 : e.match(/{{(.*?)}}/g)) == null ? void 0 : r.map((a) => a.slice(2, -2));
|
|
331
331
|
}, Me = ({
|
|
@@ -342,14 +342,14 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
342
342
|
iteratorIndicesMap: r = {},
|
|
343
343
|
formIndexes: a = {}
|
|
344
344
|
}) => {
|
|
345
|
-
const u = 'getValues("__loggedInUserId__")', l = 'getValues("__formData__")',
|
|
346
|
-
let
|
|
345
|
+
const u = 'getValues("__loggedInUserId__")', l = 'getValues("__formData__")', m = 'getValues("__infoData__")', y = 'getValues("__utilityData__")', f = 'getValues("__routeData__")', T = 'getValues("__accessRights__")';
|
|
346
|
+
let g = fe({
|
|
347
347
|
value: e,
|
|
348
348
|
iteratorIndicesMap: r,
|
|
349
349
|
formIndexes: a,
|
|
350
350
|
withDotNotation: !1
|
|
351
351
|
});
|
|
352
|
-
return
|
|
352
|
+
return g = g.replaceAll("__loggedInUserId__", u).replaceAll("__formData__", l).replaceAll("__infoData__", m).replaceAll("__utilityData__", y).replaceAll("__routeData__", f).replaceAll("__accessRights__", T), g;
|
|
353
353
|
}, fe = ({
|
|
354
354
|
value: e = null,
|
|
355
355
|
iteratorIndicesMap: r = {},
|
|
@@ -358,26 +358,26 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
358
358
|
}) => {
|
|
359
359
|
if (!e) return e;
|
|
360
360
|
let l = e;
|
|
361
|
-
return Object.keys(a).forEach((
|
|
362
|
-
if (l.includes(`[${
|
|
363
|
-
let
|
|
364
|
-
const f = a[
|
|
365
|
-
r.hasOwnProperty(f) ?
|
|
361
|
+
return Object.keys(a).forEach((m) => {
|
|
362
|
+
if (l.includes(`[${m}]`)) {
|
|
363
|
+
let y;
|
|
364
|
+
const f = a[m];
|
|
365
|
+
r.hasOwnProperty(f) ? y = r[f] : y = -1, l = l.replaceAll(m, y);
|
|
366
366
|
}
|
|
367
367
|
}), u && (l = Se(l)), l;
|
|
368
368
|
}, Le = (e, r, a, u, { dayjs: l }) => {
|
|
369
|
-
const
|
|
369
|
+
const m = De({
|
|
370
370
|
value: e,
|
|
371
371
|
iteratorIndicesMap: r,
|
|
372
372
|
formIndexes: a
|
|
373
373
|
});
|
|
374
374
|
try {
|
|
375
|
-
return new Function("getValues", "dayjs", `return ${
|
|
375
|
+
return new Function("getValues", "dayjs", `return ${m};`)(
|
|
376
376
|
u,
|
|
377
377
|
l
|
|
378
378
|
);
|
|
379
|
-
} catch (
|
|
380
|
-
return pe({ message: `Error evaluating ${e}`, type: "error" }), console.error(`Error evaluating ${e} :`,
|
|
379
|
+
} catch (y) {
|
|
380
|
+
return pe({ message: `Error evaluating ${e}`, type: "error" }), console.error(`Error evaluating ${e} :`, y), null;
|
|
381
381
|
}
|
|
382
382
|
}, Ee = (e) => {
|
|
383
383
|
let r = JSON.parse(
|
|
@@ -392,9 +392,9 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
392
392
|
)[e] || !1, le = (e, r = "") => {
|
|
393
393
|
var u, l;
|
|
394
394
|
let a = [];
|
|
395
|
-
for (const
|
|
396
|
-
const
|
|
397
|
-
(u = e[
|
|
395
|
+
for (const m in e) {
|
|
396
|
+
const y = r ? `${r}.${m}` : m;
|
|
397
|
+
(u = e[m]) != null && u.types || (l = e[m]) != null && l.message ? a.push(y) : typeof e[m] == "object" && (a = a.concat(le(e[m], y)));
|
|
398
398
|
}
|
|
399
399
|
return a;
|
|
400
400
|
}, Pe = (e, r) => Array.isArray(e) && e.length > 0 ? e.some(
|
|
@@ -485,7 +485,7 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
485
485
|
case "BULLETED":
|
|
486
486
|
return r.map((l) => `• ${l}`);
|
|
487
487
|
case "NUMBERED":
|
|
488
|
-
return r.map((l,
|
|
488
|
+
return r.map((l, m) => `${m + 1}. ${l}`);
|
|
489
489
|
case "COMMA":
|
|
490
490
|
return r.join(", ");
|
|
491
491
|
default:
|
|
@@ -523,27 +523,27 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
523
523
|
formIndexes: a,
|
|
524
524
|
iteratorIndicesMap: u,
|
|
525
525
|
rowData: l
|
|
526
|
-
}) => Array.isArray(e) ? e.map((
|
|
527
|
-
const
|
|
528
|
-
return (
|
|
526
|
+
}) => Array.isArray(e) ? e.map((m) => {
|
|
527
|
+
const y = {};
|
|
528
|
+
return (m.params || []).forEach((f) => {
|
|
529
529
|
if (f.type === "TABLE" && l)
|
|
530
|
-
|
|
530
|
+
y[f.key] = l[f.valueKey];
|
|
531
531
|
else {
|
|
532
|
-
const
|
|
532
|
+
const T = q.replaceFormIndexes({
|
|
533
533
|
value: f.valueKey,
|
|
534
534
|
iteratorIndicesMap: u,
|
|
535
535
|
formIndexes: a
|
|
536
536
|
});
|
|
537
|
-
|
|
537
|
+
y[f.key] = r.getValues(T);
|
|
538
538
|
}
|
|
539
539
|
}), {
|
|
540
|
-
queryCode:
|
|
541
|
-
parameters:
|
|
540
|
+
queryCode: m.queryCode,
|
|
541
|
+
parameters: y
|
|
542
542
|
};
|
|
543
543
|
}) : [], q = {
|
|
544
|
-
convertToSearchParams:
|
|
545
|
-
extractSearchParams:
|
|
546
|
-
serialiseMultiRowParam:
|
|
544
|
+
convertToSearchParams: Te,
|
|
545
|
+
extractSearchParams: Oe,
|
|
546
|
+
serialiseMultiRowParam: Ae,
|
|
547
547
|
extractDynamicContent: Ce,
|
|
548
548
|
replaceFormIndexes: fe,
|
|
549
549
|
evaluate: Le,
|
|
@@ -581,37 +581,37 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
581
581
|
contextCellValue: a,
|
|
582
582
|
contextRowData: u,
|
|
583
583
|
type: l,
|
|
584
|
-
isStyleMode:
|
|
584
|
+
isStyleMode: m
|
|
585
585
|
}) => {
|
|
586
|
-
const { operator:
|
|
586
|
+
const { operator: y, config: f, operand: T } = e, g = de(l);
|
|
587
587
|
let L = a;
|
|
588
|
-
if (
|
|
589
|
-
const E = f.operand1 === "CUSTOM" ? f.operand1CustomValue : f.operand1,
|
|
588
|
+
if (m && g && (L = r(a, g)), T && (L = r(T, m ? g : null, u, !1)), y === "BT") {
|
|
589
|
+
const E = f.operand1 === "CUSTOM" ? f.operand1CustomValue : f.operand1, W = f.operand2 === "CUSTOM" ? f.operand2CustomValue : f.operand2;
|
|
590
590
|
return B.BT(
|
|
591
591
|
L,
|
|
592
|
-
r(E,
|
|
593
|
-
r(
|
|
592
|
+
r(E, g, u, f.operand1 === "CUSTOM"),
|
|
593
|
+
r(W, g, u, f.operand2 === "CUSTOM")
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
|
-
if (
|
|
597
|
-
const E =
|
|
598
|
-
return B[
|
|
596
|
+
if (y === "FILLED" || y === "NOT_FILLED") {
|
|
597
|
+
const E = m ? L : T ? r(T, null, u) : L;
|
|
598
|
+
return B[y](E);
|
|
599
599
|
}
|
|
600
|
-
if (
|
|
600
|
+
if (y === "HAS_KEY")
|
|
601
601
|
return B.HAS_KEY(L, f.key);
|
|
602
|
-
if (
|
|
602
|
+
if (y === "HAS_KEY_VALUE") {
|
|
603
603
|
if (!L || typeof L != "object" || Array.isArray(L) || !f.key) return !1;
|
|
604
|
-
const E = L[f.key],
|
|
605
|
-
if (!
|
|
606
|
-
if (
|
|
607
|
-
const C = o.operand1 === "CUSTOM",
|
|
608
|
-
return E > r(C ? o.operand1CustomValue : o.operand1,
|
|
604
|
+
const E = L[f.key], W = f.operator, o = f.config || {};
|
|
605
|
+
if (!W) return !1;
|
|
606
|
+
if (W === "BT") {
|
|
607
|
+
const C = o.operand1 === "CUSTOM", p = o.operand2 === "CUSTOM";
|
|
608
|
+
return E > r(C ? o.operand1CustomValue : o.operand1, g, u, C) && E < r(p ? o.operand2CustomValue : o.operand2, g, u, p);
|
|
609
609
|
}
|
|
610
610
|
const b = o.operand === "CUSTOM";
|
|
611
|
-
return B[
|
|
611
|
+
return B[W](E, r(b ? o.operandCustomValue : o.operand, g, u, b));
|
|
612
612
|
}
|
|
613
|
-
const P = f.operand === "CUSTOM", U = P ? f.operandCustomValue : f.operand, Y = r(U,
|
|
614
|
-
return B[
|
|
613
|
+
const P = f.operand === "CUSTOM", U = P ? f.operandCustomValue : f.operand, Y = r(U, g, u, P);
|
|
614
|
+
return B[y](L, Y);
|
|
615
615
|
}, he = ({
|
|
616
616
|
expression: e,
|
|
617
617
|
contextCellValue: r,
|
|
@@ -619,70 +619,70 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
619
619
|
conditionKey: u,
|
|
620
620
|
evaluateConditionFunc: l
|
|
621
621
|
}) => {
|
|
622
|
-
const
|
|
623
|
-
if (!(
|
|
624
|
-
const { rule:
|
|
625
|
-
return
|
|
622
|
+
const m = (e == null ? void 0 : e.conditions) || e;
|
|
623
|
+
if (!(m != null && m.options)) return u === "visibility";
|
|
624
|
+
const { rule: y, options: f } = m, T = (g) => g.conditions ? he({ expression: g, contextCellValue: r, contextRowData: a, conditionKey: u, evaluateConditionFunc: l }) : l(g, r, a);
|
|
625
|
+
return y === "AND" ? f.every(T) : f.some(T);
|
|
626
626
|
}, ve = ({
|
|
627
627
|
items: e = [],
|
|
628
628
|
formContext: r,
|
|
629
629
|
iteratorIndicesMap: a = {},
|
|
630
630
|
formIndexes: u = {},
|
|
631
631
|
dependencies: l = {},
|
|
632
|
-
rowData:
|
|
633
|
-
cellValue:
|
|
632
|
+
rowData: m = {},
|
|
633
|
+
cellValue: y = null,
|
|
634
634
|
type: f = null,
|
|
635
|
-
conditionKey:
|
|
636
|
-
isStyleMode:
|
|
635
|
+
conditionKey: T = "visibility",
|
|
636
|
+
isStyleMode: g = !1
|
|
637
637
|
}) => {
|
|
638
638
|
const L = ne(() => {
|
|
639
|
-
const o = /* @__PURE__ */ new Set(), b = (
|
|
640
|
-
const $ = /* @__PURE__ */ new Set(),
|
|
641
|
-
F !== "CUSTOM" && F !== "CUSTOM_VALUE" && F !== "CUSTOM_PATH" && typeof F == "string" && $.add(q.replaceFormIndexes({ value: F }));
|
|
642
|
-
}, M = (F,
|
|
643
|
-
F === "CUSTOM_PATH" &&
|
|
639
|
+
const o = /* @__PURE__ */ new Set(), b = (p) => {
|
|
640
|
+
const $ = /* @__PURE__ */ new Set(), A = (F, j) => {
|
|
641
|
+
F !== "CUSTOM" && F !== "CUSTOM_VALUE" && F !== "CUSTOM_PATH" && j !== "ROW" && typeof F == "string" && $.add(q.replaceFormIndexes({ value: F }));
|
|
642
|
+
}, M = (F, j) => {
|
|
643
|
+
F === "CUSTOM_PATH" && j && typeof j == "string" && $.add(q.replaceFormIndexes({ value: j }));
|
|
644
644
|
};
|
|
645
|
-
return
|
|
646
|
-
}, C = (
|
|
645
|
+
return p.operator === "BT" ? (A(p.config.operand1, p.config.operand1Type), M(p.config.operand1, p.config.operand1CustomPath), A(p.config.operand2, p.config.operand2Type), M(p.config.operand2, p.config.operand2CustomPath)) : (A(p.config.operand, p.config.operandType), M(p.config.operand, p.config.operandCustomPath)), A(p.operand, p.operandType), M(p.operand, p.operandCustomPath), [...$];
|
|
646
|
+
}, C = (p) => {
|
|
647
647
|
var $;
|
|
648
|
-
($ =
|
|
649
|
-
|
|
648
|
+
($ = p == null ? void 0 : p.options) == null || $.forEach((A) => {
|
|
649
|
+
A.conditions ? C(A.conditions) : b(A).forEach((M) => o.add(M));
|
|
650
650
|
});
|
|
651
651
|
};
|
|
652
|
-
return e == null || e.forEach((
|
|
653
|
-
var
|
|
654
|
-
const $ = ((
|
|
652
|
+
return e == null || e.forEach((p) => {
|
|
653
|
+
var A;
|
|
654
|
+
const $ = ((A = p[T]) == null ? void 0 : A.conditions) || p[T];
|
|
655
655
|
$ && C($);
|
|
656
656
|
}), Array.from(o);
|
|
657
|
-
}, [JSON.stringify(e),
|
|
657
|
+
}, [JSON.stringify(e), T, a, u]), P = me({
|
|
658
658
|
control: r == null ? void 0 : r.control,
|
|
659
659
|
name: L.length > 0 ? L : void 0,
|
|
660
660
|
exact: !0
|
|
661
661
|
}), U = te(
|
|
662
|
-
(o, b = null, C = {},
|
|
662
|
+
(o, b = null, C = {}, p) => {
|
|
663
663
|
if (typeof o == "string" && o.startsWith("__"))
|
|
664
664
|
try {
|
|
665
|
-
return q.evaluate(o,
|
|
666
|
-
} catch (
|
|
667
|
-
return console.error("Evaluation error:",
|
|
665
|
+
return q.evaluate(o, g ? {} : a, u, r == null ? void 0 : r.getValues, { dayjs: Z, ...l });
|
|
666
|
+
} catch (A) {
|
|
667
|
+
return console.error("Evaluation error:", A), null;
|
|
668
668
|
}
|
|
669
|
-
if (typeof o == "string" && !o.startsWith("__") && !
|
|
669
|
+
if (typeof o == "string" && !o.startsWith("__") && !p) {
|
|
670
670
|
if (o in C) return C[o];
|
|
671
671
|
if (C != null && C._raw && o in C._raw) return C._raw[o];
|
|
672
672
|
}
|
|
673
673
|
const $ = b || f;
|
|
674
674
|
return $ === "listValueFieldValue" || $ === "location" ? typeof o == "string" ? Number(o) : o : $ === "boolean" ? o === "true" || o === !0 : $ === "date" && Z(o).isValid() ? Z(o).startOf("day").valueOf() : $ === "dateAndTime" && Z(o).isValid() ? Z(o).startOf("minute").valueOf() : $ ? o : Ye(o);
|
|
675
675
|
},
|
|
676
|
-
[r == null ? void 0 : r.getValues, a, u, f,
|
|
676
|
+
[r == null ? void 0 : r.getValues, a, u, f, g, l]
|
|
677
677
|
), Y = te(
|
|
678
|
-
(o, b =
|
|
679
|
-
const { operator:
|
|
678
|
+
(o, b = y, C = m) => {
|
|
679
|
+
const { operator: p, config: $, operand: A } = o, M = de(f), F = (N) => N === "CUSTOM" || N === "CUSTOM_VALUE", j = (N) => N === "CUSTOM_PATH", k = (N, K, c, n) => {
|
|
680
680
|
if (F(N))
|
|
681
681
|
return U(K, n, C, !0);
|
|
682
|
-
if (
|
|
682
|
+
if (j(N)) {
|
|
683
683
|
const t = q.replaceFormIndexes({
|
|
684
684
|
value: c,
|
|
685
|
-
iteratorIndicesMap:
|
|
685
|
+
iteratorIndicesMap: g ? {} : a,
|
|
686
686
|
formIndexes: {}
|
|
687
687
|
});
|
|
688
688
|
return U(t, n, C, !1);
|
|
@@ -690,27 +690,27 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
690
690
|
return U(N, n, C, !1);
|
|
691
691
|
};
|
|
692
692
|
let S = b;
|
|
693
|
-
if (
|
|
694
|
-
if (F(
|
|
695
|
-
S = U(o.operandCustomValue,
|
|
696
|
-
else if (
|
|
693
|
+
if (g && M && (S = U(b, M)), A)
|
|
694
|
+
if (F(A))
|
|
695
|
+
S = U(o.operandCustomValue, g ? M : null, C, !0);
|
|
696
|
+
else if (j(A)) {
|
|
697
697
|
const N = q.replaceFormIndexes({
|
|
698
698
|
value: o.operandCustomPath,
|
|
699
|
-
iteratorIndicesMap:
|
|
699
|
+
iteratorIndicesMap: g ? {} : a,
|
|
700
700
|
formIndexes: {}
|
|
701
701
|
});
|
|
702
|
-
S = U(N,
|
|
702
|
+
S = U(N, g ? M : null, C, !1);
|
|
703
703
|
} else
|
|
704
|
-
S = U(
|
|
705
|
-
if (
|
|
704
|
+
S = U(A, g ? M : null, C, !1);
|
|
705
|
+
if (p === "BT")
|
|
706
706
|
return B.BT(
|
|
707
707
|
S,
|
|
708
708
|
k($.operand1, $.operand1CustomValue, $.operand1CustomPath, M),
|
|
709
709
|
k($.operand2, $.operand2CustomValue, $.operand2CustomPath, M)
|
|
710
710
|
);
|
|
711
|
-
if (
|
|
711
|
+
if (p === "FILLED" || p === "NOT_FILLED") {
|
|
712
712
|
const N = S;
|
|
713
|
-
return B[
|
|
713
|
+
return B[p](N);
|
|
714
714
|
}
|
|
715
715
|
const _ = k(
|
|
716
716
|
$.operand,
|
|
@@ -718,17 +718,17 @@ const Z = /* @__PURE__ */ ge($e), Se = (e) => e.replace(/\[(\d+)\](?=\.)/g, ".$1
|
|
|
718
718
|
$.operandCustomPath,
|
|
719
719
|
M || null
|
|
720
720
|
);
|
|
721
|
-
return B[
|
|
721
|
+
return B[p](S, _);
|
|
722
722
|
},
|
|
723
|
-
[U,
|
|
723
|
+
[U, y, m, f, g, a]
|
|
724
724
|
), E = te(
|
|
725
|
-
(o, b =
|
|
726
|
-
[Y,
|
|
727
|
-
),
|
|
728
|
-
const b = o[
|
|
729
|
-
return b ? E(b) : (o == null ? void 0 : o.styles) ||
|
|
730
|
-
}) : [], [e, E,
|
|
731
|
-
return { evaluate: U, evaluateCondition: Y, evaluateExpression: E, filteredItems:
|
|
725
|
+
(o, b = y, C = m) => he({ expression: o, contextCellValue: b, contextRowData: C, conditionKey: T, evaluateConditionFunc: Y }),
|
|
726
|
+
[Y, y, m, T]
|
|
727
|
+
), W = ne(() => Array.isArray(e) ? e.filter((o) => {
|
|
728
|
+
const b = o[T];
|
|
729
|
+
return b ? E(b) : (o == null ? void 0 : o.styles) || T === "visibility";
|
|
730
|
+
}) : [], [e, E, T, P]);
|
|
731
|
+
return { evaluate: U, evaluateCondition: Y, evaluateExpression: E, filteredItems: W, watchedValues: P };
|
|
732
732
|
};
|
|
733
733
|
export {
|
|
734
734
|
Z as C,
|
|
@@ -741,4 +741,4 @@ export {
|
|
|
741
741
|
Ye as n,
|
|
742
742
|
ve as u
|
|
743
743
|
};
|
|
744
|
-
//# sourceMappingURL=index-
|
|
744
|
+
//# sourceMappingURL=index-DbddVURn.js.map
|