@realtek/core-theme 0.0.290 → 0.0.292
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-lib/Breadcrumb-B53cuO_P.cjs +3 -0
- package/dist-lib/{Breadcrumb-CdhvjRcK.cjs.map → Breadcrumb-B53cuO_P.cjs.map} +1 -1
- package/dist-lib/{Breadcrumb-BxYgKQAu.js → Breadcrumb-DubLK7aU.js} +136 -74
- package/dist-lib/{Breadcrumb-BxYgKQAu.js.map → Breadcrumb-DubLK7aU.js.map} +1 -1
- package/dist-lib/index.cjs +8 -8
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +7409 -7388
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
- package/dist-lib/Breadcrumb-CdhvjRcK.cjs +0 -3
|
@@ -5155,7 +5155,31 @@ function Jc(e, t = {}) {
|
|
|
5155
5155
|
};
|
|
5156
5156
|
return n[e] ?? n.outOfOrder;
|
|
5157
5157
|
}
|
|
5158
|
-
|
|
5158
|
+
function Yc(e, t = {}) {
|
|
5159
|
+
let n = t.levelField ?? "qualification", r = Fc(e?.[n]);
|
|
5160
|
+
if (!r) return null;
|
|
5161
|
+
let i = t.levels ?? {}, a = i[r] ?? i[r.toLowerCase()] ?? i[r.toUpperCase()];
|
|
5162
|
+
return Number.isFinite(Number(a)) ? Number(a) : null;
|
|
5163
|
+
}
|
|
5164
|
+
function Xc(e = [], t = {}) {
|
|
5165
|
+
if (!t || t.requireBelow === !1) return [];
|
|
5166
|
+
let n = t.levels ?? {}, r = t.requiredLevels ?? [];
|
|
5167
|
+
if (!r.length) return [];
|
|
5168
|
+
let i = e.map((e) => Yc(e, t)).filter((e) => e !== null);
|
|
5169
|
+
if (!i.length) return [];
|
|
5170
|
+
let a = Math.max(...i), o = [];
|
|
5171
|
+
return r.forEach((e) => {
|
|
5172
|
+
let t = typeof e == "object" ? e.label : e, r = typeof e == "object" && Number.isFinite(Number(e.level)) ? Number(e.level) : Number(n[t]);
|
|
5173
|
+
Number.isFinite(r) && (r >= a || i.includes(r) || o.push(t));
|
|
5174
|
+
}), o;
|
|
5175
|
+
}
|
|
5176
|
+
function Zc(e, t = {}) {
|
|
5177
|
+
let n = Xc(e, t);
|
|
5178
|
+
if (!n.length) return "";
|
|
5179
|
+
let r = n.join(", ");
|
|
5180
|
+
return (t.message || "You’ve added a higher qualification but not the {missing} below it. Please add that too.").replace("{missing}", r);
|
|
5181
|
+
}
|
|
5182
|
+
async function Qc({ group: e, rows: t, rowIndex: n, move: r, confirm: i }) {
|
|
5159
5183
|
let a = e?.orderBy;
|
|
5160
5184
|
if (!a || a.confirmMove === !1 || typeof r != "function") return !1;
|
|
5161
5185
|
let o = Kc(t, n, a);
|
|
@@ -5174,7 +5198,7 @@ async function Yc({ group: e, rows: t, rowIndex: n, move: r, confirm: i }) {
|
|
|
5174
5198
|
to: o.to
|
|
5175
5199
|
}) ? (r(o.from, o.to), !0) : !1;
|
|
5176
5200
|
}
|
|
5177
|
-
function
|
|
5201
|
+
function $c(e, t) {
|
|
5178
5202
|
let n = Ic(e, t), r = n?.orderBy?.inProgressField;
|
|
5179
5203
|
return r ? {
|
|
5180
5204
|
name: n.name,
|
|
@@ -5185,7 +5209,7 @@ function Xc(e, t) {
|
|
|
5185
5209
|
message: Rc(n)
|
|
5186
5210
|
} : null;
|
|
5187
5211
|
}
|
|
5188
|
-
function
|
|
5212
|
+
function el(e = [], t, n) {
|
|
5189
5213
|
if (!n) return {
|
|
5190
5214
|
severity: "allow",
|
|
5191
5215
|
message: "",
|
|
@@ -5193,8 +5217,8 @@ function Zc(e = [], t, n) {
|
|
|
5193
5217
|
};
|
|
5194
5218
|
let r = null;
|
|
5195
5219
|
for (let i of e) {
|
|
5196
|
-
let e =
|
|
5197
|
-
if (!(!e || e.severity === "allow") &&
|
|
5220
|
+
let e = $c(i, t);
|
|
5221
|
+
if (!(!e || e.severity === "allow") && tl(n, e.rowsKey).some((t) => Wc(t, e))) {
|
|
5198
5222
|
if (e.severity === "block") return {
|
|
5199
5223
|
severity: "block",
|
|
5200
5224
|
message: e.message,
|
|
@@ -5213,16 +5237,54 @@ function Zc(e = [], t, n) {
|
|
|
5213
5237
|
group: null
|
|
5214
5238
|
};
|
|
5215
5239
|
}
|
|
5216
|
-
function
|
|
5240
|
+
function tl(e, t) {
|
|
5217
5241
|
let n = e?.[t];
|
|
5218
5242
|
return Array.isArray(n) ? n : Array.isArray(n?.rows) ? n.rows : [];
|
|
5219
5243
|
}
|
|
5244
|
+
function nl(e) {
|
|
5245
|
+
return String(e?.severity ?? "").toLowerCase() === "block" ? "block" : "warn";
|
|
5246
|
+
}
|
|
5247
|
+
function rl(e = [], t = {}) {
|
|
5248
|
+
let n = null;
|
|
5249
|
+
for (let r of e) {
|
|
5250
|
+
let e = r?.levelRule;
|
|
5251
|
+
if (!e) continue;
|
|
5252
|
+
let i = il(t, r);
|
|
5253
|
+
if (!i.length) continue;
|
|
5254
|
+
let a = Zc(i, e);
|
|
5255
|
+
if (a) {
|
|
5256
|
+
if (nl(e) === "block") return {
|
|
5257
|
+
severity: "block",
|
|
5258
|
+
message: a,
|
|
5259
|
+
group: r
|
|
5260
|
+
};
|
|
5261
|
+
n ??= {
|
|
5262
|
+
severity: "warn",
|
|
5263
|
+
message: a,
|
|
5264
|
+
group: r
|
|
5265
|
+
};
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
return n ?? {
|
|
5269
|
+
severity: "allow",
|
|
5270
|
+
message: "",
|
|
5271
|
+
group: null
|
|
5272
|
+
};
|
|
5273
|
+
}
|
|
5274
|
+
function il(e, t) {
|
|
5275
|
+
for (let n of [t?.name, t?.payloadKey]) {
|
|
5276
|
+
if (!n) continue;
|
|
5277
|
+
let t = e?.[n];
|
|
5278
|
+
if (Array.isArray(t)) return t;
|
|
5279
|
+
}
|
|
5280
|
+
return [];
|
|
5281
|
+
}
|
|
5220
5282
|
//#endregion
|
|
5221
5283
|
//#region src/components/form/clearGroupOnChange.js
|
|
5222
|
-
function
|
|
5284
|
+
function al(e, t) {
|
|
5223
5285
|
return Array.isArray(e) && e.length > 1 ? [...e.slice(0, -1), t] : [t];
|
|
5224
5286
|
}
|
|
5225
|
-
function
|
|
5287
|
+
function ol(e, t) {
|
|
5226
5288
|
let n = e?.field, r = [];
|
|
5227
5289
|
e?.clearGroupOnChange && (t instanceof Set ? [...t] : t ?? []).forEach((e) => {
|
|
5228
5290
|
e && e !== n && r.push(e);
|
|
@@ -5232,24 +5294,24 @@ function el(e, t) {
|
|
|
5232
5294
|
e && e !== n && r.push(e);
|
|
5233
5295
|
}) : typeof i == "string" && i.trim() && i.trim() !== n && r.push(i.trim()), [...new Set(r)];
|
|
5234
5296
|
}
|
|
5235
|
-
function
|
|
5236
|
-
let i =
|
|
5297
|
+
function sl(e, t, n, r) {
|
|
5298
|
+
let i = ol(t, r).map((e) => al(n, e));
|
|
5237
5299
|
return i.forEach((t) => e.setFieldValue(t, null)), i;
|
|
5238
5300
|
}
|
|
5239
5301
|
//#endregion
|
|
5240
5302
|
//#region src/components/form/resolveStoredOptions.js
|
|
5241
|
-
function
|
|
5303
|
+
function cl(e) {
|
|
5242
5304
|
return (Array.isArray(e) ? e : [e]).map((e) => e && typeof e == "object" ? e.value ?? e.key ?? e.id : e).filter((e) => e != null && e !== "");
|
|
5243
5305
|
}
|
|
5244
|
-
function
|
|
5306
|
+
function ll(e, t = []) {
|
|
5245
5307
|
let n = new Set((t ?? []).map((e) => String(e?.value))), r = [];
|
|
5246
|
-
for (let t of
|
|
5308
|
+
for (let t of cl(e)) {
|
|
5247
5309
|
let e = String(t);
|
|
5248
5310
|
!n.has(e) && !r.includes(e) && r.push(e);
|
|
5249
5311
|
}
|
|
5250
5312
|
return r;
|
|
5251
5313
|
}
|
|
5252
|
-
async function
|
|
5314
|
+
async function ul(e, t) {
|
|
5253
5315
|
if (!e?.lookupCollection || !t?.length) return [];
|
|
5254
5316
|
let i = new URLSearchParams({
|
|
5255
5317
|
collection: e.lookupCollection,
|
|
@@ -5261,7 +5323,7 @@ async function il(e, t) {
|
|
|
5261
5323
|
let a = await n(r, `/admin/lookup-dropdown-values?${i}`), o = a?.data ?? a ?? [];
|
|
5262
5324
|
return Array.isArray(o) ? o : [];
|
|
5263
5325
|
}
|
|
5264
|
-
function
|
|
5326
|
+
function dl(e = [], t = []) {
|
|
5265
5327
|
if (!t.length) return e;
|
|
5266
5328
|
let n = new Set((e ?? []).map((e) => String(e?.value))), r = t.filter((e) => !n.has(String(e?.value))).map((e) => ({
|
|
5267
5329
|
...e,
|
|
@@ -5271,8 +5333,8 @@ function al(e = [], t = []) {
|
|
|
5271
5333
|
}
|
|
5272
5334
|
//#endregion
|
|
5273
5335
|
//#region src/components/form/dateRules.js
|
|
5274
|
-
var
|
|
5275
|
-
function
|
|
5336
|
+
var fl = (e) => e == null || e === "";
|
|
5337
|
+
function pl(e) {
|
|
5276
5338
|
if (!e) return null;
|
|
5277
5339
|
if (typeof e.valueOf == "function") {
|
|
5278
5340
|
let t = e.valueOf();
|
|
@@ -5286,12 +5348,12 @@ function $(e) {
|
|
|
5286
5348
|
let t = T(e);
|
|
5287
5349
|
return t.isValid() ? t.startOf("day").valueOf() : null;
|
|
5288
5350
|
}
|
|
5289
|
-
function
|
|
5351
|
+
function ml(e) {
|
|
5290
5352
|
if (!e) return null;
|
|
5291
5353
|
let t = T(e);
|
|
5292
5354
|
return t.isValid() ? t.hour() * 60 + t.minute() : null;
|
|
5293
5355
|
}
|
|
5294
|
-
var
|
|
5356
|
+
var hl = {
|
|
5295
5357
|
d: "day",
|
|
5296
5358
|
day: "day",
|
|
5297
5359
|
days: "day",
|
|
@@ -5307,13 +5369,13 @@ var ll = {
|
|
|
5307
5369
|
year: "year",
|
|
5308
5370
|
years: "year"
|
|
5309
5371
|
};
|
|
5310
|
-
function
|
|
5372
|
+
function gl(e) {
|
|
5311
5373
|
if (e == null || e === "") return null;
|
|
5312
5374
|
if (typeof e == "object" && !Array.isArray(e)) {
|
|
5313
5375
|
let t = Number(e.value ?? e.count ?? e.amount);
|
|
5314
5376
|
return !Number.isFinite(t) || t <= 0 ? null : {
|
|
5315
5377
|
value: t,
|
|
5316
|
-
unit:
|
|
5378
|
+
unit: hl[String(e.unit ?? "month").toLowerCase()] ?? "month"
|
|
5317
5379
|
};
|
|
5318
5380
|
}
|
|
5319
5381
|
let t = String(e).trim().toLowerCase();
|
|
@@ -5323,49 +5385,49 @@ function ul(e) {
|
|
|
5323
5385
|
let r = Number(n[1]);
|
|
5324
5386
|
return !Number.isFinite(r) || r <= 0 ? null : {
|
|
5325
5387
|
value: r,
|
|
5326
|
-
unit:
|
|
5388
|
+
unit: hl[n[2]] ?? "month"
|
|
5327
5389
|
};
|
|
5328
5390
|
}
|
|
5329
|
-
function
|
|
5391
|
+
function _l(e, t) {
|
|
5330
5392
|
let n = e?.minGapFrom ?? e?.gapFrom;
|
|
5331
5393
|
if (n && typeof t == "function") {
|
|
5332
|
-
let e =
|
|
5394
|
+
let e = gl(t(n));
|
|
5333
5395
|
if (e) return e;
|
|
5334
5396
|
}
|
|
5335
|
-
return
|
|
5397
|
+
return gl(e?.minGap);
|
|
5336
5398
|
}
|
|
5337
|
-
function
|
|
5399
|
+
function vl(e, t, n, r) {
|
|
5338
5400
|
if (t === null) return null;
|
|
5339
|
-
let i =
|
|
5401
|
+
let i = _l(n, r), a = T(t);
|
|
5340
5402
|
return i && (a = e === "dateAfterField" ? a.add(i.value, i.unit) : a.subtract(i.value, i.unit)), a.startOf("day").valueOf();
|
|
5341
5403
|
}
|
|
5342
|
-
function
|
|
5404
|
+
function yl(e, t, n, r, i) {
|
|
5343
5405
|
if (t === null || n === null) return !1;
|
|
5344
|
-
let a =
|
|
5406
|
+
let a = vl(e, n, r, i);
|
|
5345
5407
|
if (a === null) return !1;
|
|
5346
|
-
let o = !!r?.strict && !
|
|
5408
|
+
let o = !!r?.strict && !_l(r, i);
|
|
5347
5409
|
return e === "dateAfterField" ? o ? t <= a : t < a : o ? t >= a : t > a;
|
|
5348
5410
|
}
|
|
5349
|
-
function
|
|
5411
|
+
function bl(e, t, n, r) {
|
|
5350
5412
|
if (n?.message) return n.message;
|
|
5351
|
-
let i = n?.value ?? n?.compareField ?? n?.field ?? "the paired date", a =
|
|
5413
|
+
let i = n?.value ?? n?.compareField ?? n?.field ?? "the paired date", a = _l(n, r);
|
|
5352
5414
|
if (a) {
|
|
5353
5415
|
let n = a.value === 1 ? a.unit : `${a.unit}s`;
|
|
5354
5416
|
return e === "dateAfterField" ? `${t} must be at least ${a.value} ${n} after ${i}` : `${t} must be at least ${a.value} ${n} before ${i}`;
|
|
5355
5417
|
}
|
|
5356
5418
|
return n?.strict ? e === "dateAfterField" ? `${t} must be after ${i}` : `${t} must be before ${i}` : e === "dateAfterField" ? `${t} must be on or after ${i}` : `${t} must be on or before ${i}`;
|
|
5357
5419
|
}
|
|
5358
|
-
function
|
|
5420
|
+
function xl({ type: e, label: t, rule: n, readSibling: r }) {
|
|
5359
5421
|
return { validator: async (i, a) => {
|
|
5360
5422
|
let o = n?.value ?? n?.compareField ?? n?.field;
|
|
5361
|
-
if (!o ||
|
|
5423
|
+
if (!o || fl(a)) return Promise.resolve();
|
|
5362
5424
|
let s = r(o);
|
|
5363
|
-
if (
|
|
5425
|
+
if (fl(s)) return Promise.resolve();
|
|
5364
5426
|
let c = $(a), l = $(s);
|
|
5365
|
-
return c === null || l === null ? Promise.resolve() :
|
|
5427
|
+
return c === null || l === null ? Promise.resolve() : yl(e, c, l, n, r) ? Promise.reject(Error(bl(e, t, n, r))) : Promise.resolve();
|
|
5366
5428
|
} };
|
|
5367
5429
|
}
|
|
5368
|
-
function
|
|
5430
|
+
function Sl(e, t, { rows: n, rowIndex: r } = {}) {
|
|
5369
5431
|
if (e === null || !t || !Array.isArray(n) || r == null || (t.mode ?? "newestFirst") !== "newestFirst") return !1;
|
|
5370
5432
|
let i = t.startField ?? "startDate", a = t.endField ?? "endDate", o = n[r - 1];
|
|
5371
5433
|
if (o) {
|
|
@@ -5379,11 +5441,11 @@ function gl(e, t, { rows: n, rowIndex: r } = {}) {
|
|
|
5379
5441
|
}
|
|
5380
5442
|
return !1;
|
|
5381
5443
|
}
|
|
5382
|
-
function
|
|
5444
|
+
function Cl(e, t = "above") {
|
|
5383
5445
|
let n = e?.messages ?? {};
|
|
5384
5446
|
return t === "below" ? n.below || "This starts before the entry below it finished. Entries are listed newest first, so they cannot overlap." : n.above || "This overlaps the entry above it. Entries are listed newest first, so this one must finish before that one started.";
|
|
5385
5447
|
}
|
|
5386
|
-
function
|
|
5448
|
+
function wl({ field: e, readSibling: t, rows: n, rowIndex: r, now: i = Gn }) {
|
|
5387
5449
|
let a = e?.validations ?? e?.validation ?? e?.rules ?? [], o = [];
|
|
5388
5450
|
for (let e of a) {
|
|
5389
5451
|
let n = typeof e == "string" ? { type: e } : e, r = n?.type;
|
|
@@ -5397,16 +5459,16 @@ function vl({ field: e, readSibling: t, rows: n, rowIndex: r, now: i = Gn }) {
|
|
|
5397
5459
|
o.push((i) => {
|
|
5398
5460
|
if (!i) return !1;
|
|
5399
5461
|
let a = t(e);
|
|
5400
|
-
return
|
|
5462
|
+
return fl(a) ? !1 : yl(r, $(i), $(a), n, t);
|
|
5401
5463
|
});
|
|
5402
5464
|
}
|
|
5403
5465
|
}
|
|
5404
|
-
return e?.rowHierarchy && Array.isArray(n) && r != null && o.push((t) => t ?
|
|
5466
|
+
return e?.rowHierarchy && Array.isArray(n) && r != null && o.push((t) => t ? Sl($(t), e.rowHierarchy, {
|
|
5405
5467
|
rows: n,
|
|
5406
5468
|
rowIndex: r
|
|
5407
5469
|
}) : !1), o.length ? (e) => o.some((t) => t(e)) : void 0;
|
|
5408
5470
|
}
|
|
5409
|
-
function
|
|
5471
|
+
function Tl(e, t = Gn) {
|
|
5410
5472
|
let n = e?.validations ?? e?.validation ?? e?.rules ?? [];
|
|
5411
5473
|
for (let e of n) {
|
|
5412
5474
|
let n = typeof e == "string" ? { type: e } : e;
|
|
@@ -5414,44 +5476,44 @@ function yl(e, t = Gn) {
|
|
|
5414
5476
|
if (n?.type === "noFutureDate" || n?.type === "noPastDate") return t();
|
|
5415
5477
|
}
|
|
5416
5478
|
}
|
|
5417
|
-
function
|
|
5479
|
+
function El({ field: e, rows: t, rowIndex: n }) {
|
|
5418
5480
|
let r = e?.rowHierarchy;
|
|
5419
5481
|
return { validator: async (e, i) => {
|
|
5420
|
-
if (!r ||
|
|
5482
|
+
if (!r || fl(i) || !Array.isArray(t) || n == null) return Promise.resolve();
|
|
5421
5483
|
let a = $(i);
|
|
5422
|
-
if (a === null || !
|
|
5484
|
+
if (a === null || !Sl(a, r, {
|
|
5423
5485
|
rows: t,
|
|
5424
5486
|
rowIndex: n
|
|
5425
5487
|
})) return Promise.resolve();
|
|
5426
5488
|
let o = r.startField ?? "startDate", s = t[n - 1], c = s ? $(s[o]) : null, l = c !== null && a >= c ? "above" : "below";
|
|
5427
|
-
return Promise.reject(Error(
|
|
5489
|
+
return Promise.reject(Error(Cl(r, l)));
|
|
5428
5490
|
} };
|
|
5429
5491
|
}
|
|
5430
5492
|
//#endregion
|
|
5431
5493
|
//#region src/utils/submitMessages.js
|
|
5432
|
-
function
|
|
5494
|
+
function Dl(e) {
|
|
5433
5495
|
return (e ?? []).filter((e) => e?.submitMessages && typeof e.submitMessages == "object").sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.submitMessages ?? null;
|
|
5434
5496
|
}
|
|
5435
|
-
function
|
|
5497
|
+
function Ol(e) {
|
|
5436
5498
|
let t = String(e ?? "").trim();
|
|
5437
5499
|
return t ? t.charAt(0).toUpperCase() + t.slice(1) : "Record";
|
|
5438
5500
|
}
|
|
5439
|
-
function
|
|
5440
|
-
return String(e).replaceAll("${module}",
|
|
5501
|
+
function kl(e, t) {
|
|
5502
|
+
return String(e).replaceAll("${module}", Ol(t)).replaceAll("${moduleName}", Ol(t));
|
|
5441
5503
|
}
|
|
5442
|
-
function
|
|
5443
|
-
let r =
|
|
5504
|
+
function Al(e, t, n) {
|
|
5505
|
+
let r = Dl(e);
|
|
5444
5506
|
if (r?.suppress) return null;
|
|
5445
5507
|
let i = n === "edit" ? r?.editSuccess : r?.addSuccess;
|
|
5446
|
-
return i && String(i).trim() ?
|
|
5508
|
+
return i && String(i).trim() ? kl(i, t) : n === "edit" ? `${Ol(t)} has Updated successfully` : `${Ol(t)} has added successfully`;
|
|
5447
5509
|
}
|
|
5448
|
-
function
|
|
5449
|
-
let i =
|
|
5450
|
-
return a && String(a).trim() ?
|
|
5510
|
+
function jl(e, t, n, r) {
|
|
5511
|
+
let i = Dl(e), a = n === "edit" ? i?.editError : i?.addError;
|
|
5512
|
+
return a && String(a).trim() ? kl(a, t) : r && String(r).trim() ? String(r) : n === "edit" ? `Failed to update ${Ol(t)}` : `Failed to create ${Ol(t)}`;
|
|
5451
5513
|
}
|
|
5452
5514
|
//#endregion
|
|
5453
5515
|
//#region src/utils/scrollToFirstFormError.js
|
|
5454
|
-
function
|
|
5516
|
+
function Ml({ errorFields: e } = {}, t) {
|
|
5455
5517
|
if (!e?.length) return;
|
|
5456
5518
|
let n = e[0]?.name;
|
|
5457
5519
|
setTimeout(() => {
|
|
@@ -5476,10 +5538,10 @@ function El({ errorFields: e } = {}, t) {
|
|
|
5476
5538
|
}
|
|
5477
5539
|
//#endregion
|
|
5478
5540
|
//#region src/components/form/conditionalFieldLabel.js
|
|
5479
|
-
function
|
|
5541
|
+
function Nl(e) {
|
|
5480
5542
|
return Array.isArray(e) ? e.map((e) => String(e ?? "").trim()) : String(e ?? "").split(",").map((e) => e.trim());
|
|
5481
5543
|
}
|
|
5482
|
-
function
|
|
5544
|
+
function Pl(e, t) {
|
|
5483
5545
|
if (!e?.field) return !1;
|
|
5484
5546
|
switch (e.operator ?? "eq") {
|
|
5485
5547
|
case "eq": return String(t ?? "") === String(e.value ?? "");
|
|
@@ -5487,38 +5549,38 @@ function Ol(e, t) {
|
|
|
5487
5549
|
case "truthy": return t != null && t !== "" && t !== !1;
|
|
5488
5550
|
case "falsy": return t == null || t === "" || t === !1;
|
|
5489
5551
|
case "notEmpty": return Array.isArray(t) ? t.length > 0 : !!t;
|
|
5490
|
-
case "in": return
|
|
5491
|
-
case "notIn": return !
|
|
5552
|
+
case "in": return Nl(e.value).includes(String(t ?? ""));
|
|
5553
|
+
case "notIn": return !Nl(e.value).includes(String(t ?? ""));
|
|
5492
5554
|
default: return !1;
|
|
5493
5555
|
}
|
|
5494
5556
|
}
|
|
5495
|
-
function
|
|
5557
|
+
function Fl(e, t, n = !1) {
|
|
5496
5558
|
let r = n ? e?.combineLabel ?? e?.label : e?.label, i = e?.labelWhen;
|
|
5497
|
-
return
|
|
5559
|
+
return Pl(i, t) && i?.label ? i.label : r;
|
|
5498
5560
|
}
|
|
5499
|
-
function
|
|
5561
|
+
function Il(e) {
|
|
5500
5562
|
return e ? [...e.field ? [e] : [], ...(e.conditions ?? []).filter((e) => e?.field)] : [];
|
|
5501
5563
|
}
|
|
5502
|
-
function
|
|
5503
|
-
let n =
|
|
5564
|
+
function Ll(e, t) {
|
|
5565
|
+
let n = Il(e);
|
|
5504
5566
|
if (!n.length) return !0;
|
|
5505
|
-
let r = n.map((e) =>
|
|
5567
|
+
let r = n.map((e) => Pl(e, t(e.field)));
|
|
5506
5568
|
return e.logic === "or" ? r.some(Boolean) : r.every(Boolean);
|
|
5507
5569
|
}
|
|
5508
|
-
function
|
|
5570
|
+
function Rl(e) {
|
|
5509
5571
|
let t = e?.colWhen;
|
|
5510
5572
|
return t ? (Array.isArray(t) ? t : [t]).filter((e) => e?.field && Number(e?.col) > 0) : [];
|
|
5511
5573
|
}
|
|
5512
|
-
function
|
|
5513
|
-
for (let t of
|
|
5574
|
+
function zl(e, t, n) {
|
|
5575
|
+
for (let t of Rl(e)) if (Pl(t, n(t))) return Number(t.col);
|
|
5514
5576
|
return t;
|
|
5515
5577
|
}
|
|
5516
|
-
function
|
|
5578
|
+
function Bl(e, t) {
|
|
5517
5579
|
return e?.field ? t == null ? [e.field] : [...Array.isArray(t) ? t : [t], e.field] : ["__noop_conditional_label__"];
|
|
5518
5580
|
}
|
|
5519
5581
|
//#endregion
|
|
5520
5582
|
//#region src/components/Breadcrumb.jsx
|
|
5521
|
-
function
|
|
5583
|
+
function Vl({ items: e = [] }) {
|
|
5522
5584
|
return /* @__PURE__ */ C(_, { items: e.map((t, n) => ({ title: n === e.length - 1 ? /* @__PURE__ */ C(_r, {
|
|
5523
5585
|
variant: "body",
|
|
5524
5586
|
weight: "medium",
|
|
@@ -5534,6 +5596,6 @@ function Fl({ items: e = [] }) {
|
|
|
5534
5596
|
}) })) });
|
|
5535
5597
|
}
|
|
5536
5598
|
//#endregion
|
|
5537
|
-
export {
|
|
5599
|
+
export { Ks as $, Xt as $n, yn as $r, yi as $t, Ic as A, Mn as An, wt as Ar, Ga as At, mc as B, vn as Bn, tt as Br, q as Bt, $c as C, qn as Cn, Qt as Cr, No as Ct, el as D, Kn as Dn, Le as Dr, lo as Dt, Rc as E, rr as En, On as Er, go as Et, kc as F, Fn, mn as Fr, Pa as Ft, $s as G, wn as Gn, yt as Gr, V as Gt, sc as H, sn as Hn, ht as Hr, Oa as Ht, Dc as I, Rn as In, Cn as Ir, Fa as It, tc as J, bn as Jn, ze as Jr, Da as Jt, nc as K, et as Kn, Ve as Kr, K as Kt, wc as L, nt as Ln, Pt as Lr, Aa as Lt, Ac as M, zn as Mn, zt as Mr, ro as Mt, jc as N, N as Nn, Et as Nr, oo as Nt, rl as O, er as On, Ue as Or, J as Ot, Oc as P, Vn as Pn, Nt as Pr, Wa as Pt, qs as Q, jn as Qn, $e as Qr, vi as Qt, Cc as R, Ct as Rn, qt as Rr, ja as Rt, Hc as S, Gn as Sn, Zt as Sr, Fo as St, Bc as T, P as Tn, on as Tr, _o as Tt, lc as U, kn as Un, at as Ur, xa as Ut, oc as V, dn as Vn, dt as Vr, Sa as Vt, ec as W, Jt as Wn, ct as Wr, $i as Wt, Xs as X, pn as Xn, Ut as Xr, ca as Xt, ic as Y, bt as Yn, Bt as Yr, la as Yt, Js as Z, ln as Zn, xt as Zr, Fi as Zt, ml as _, zr as _n, st as _r, Ro as _t, Fl as a, hn as ai, hi as an, ut as ar, Cs as at, ll as b, I as bn, _t as br, Lo as bt, Il as c, Vt as ci, ai as cn, Ht as cr, ps as ct, Al as d, ti as dn, He as dr, cs as dt, fn as ei, _i as en, Be as er, Gs as et, wl as f, Jr as fn, mt as fr, ns as ft, pl as g, Br as gn, it as gr, ss as gt, Tl as h, Vr as hn, _n as hr, Qo as ht, Pl as i, It as ii, si as in, Ye as ir, Ts as it, Pc as j, Bn as jn, Ze as jr, qa as jt, Qc as k, Jn as kn, $t as kr, Ka as kt, Ml as l, Gt as li, ii as ln, an as lr, hs as lt, El as m, Xr as mn, rn as mr, Ko as mt, Rl as n, An as ni, mi as nn, Kt as nr, Hs as nt, Ll as o, Tn as oi, li as on, Dt as or, bs as ot, xl as p, Yr as pn, gt as pr, ts as pt, rc as q, ft as qn, en as qr, ha as qt, Bl as r, Yt as ri, ci as rn, Xe as rr, Ds as rt, zl as s, jt as si, ui as sn, At as sr, xs as st, Vl as t, cn as ti, gi as tn, En as tr, Ws as tt, jl as u, tn as ui, ni as un, nn as ur, ls as ut, ul as v, yr as vn, Wt as vr, Vo as vt, Lc as w, Xn as wn, un as wr, Po as wt, sl as x, F as xn, St as xr, Io as xt, dl as y, _r as yn, vt as yr, Bo as yt, dc as z, Qe as zn, Re as zr, Ma as zt };
|
|
5538
5600
|
|
|
5539
|
-
//# sourceMappingURL=Breadcrumb-
|
|
5601
|
+
//# sourceMappingURL=Breadcrumb-DubLK7aU.js.map
|