@ouestfrance/sipa-bms-ui 8.16.0 → 8.18.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/components/navigation/BmsTabs.vue.d.ts +6 -1
- package/dist/components/navigation/UiTab.vue.d.ts +5 -4
- package/dist/components/navigation/UiTabs.vue.d.ts +21 -0
- package/dist/components/table/BmsTable.vue.d.ts +3 -1
- package/dist/components/table/UiBmsTable.vue.d.ts +1 -1
- package/dist/helpers/tab.helper.d.ts +2 -0
- package/dist/helpers/table.helper.d.ts +1 -0
- package/dist/models/tab.model.d.ts +5 -0
- package/dist/models/table.model.d.ts +2 -1
- package/dist/sipa-bms-ui.css +70 -69
- package/dist/sipa-bms-ui.es.js +380 -294
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +388 -301
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/BmsFloatingWindow.vue +1 -0
- package/src/components/navigation/BmsTabs.stories.js +58 -4
- package/src/components/navigation/BmsTabs.vue +53 -33
- package/src/components/navigation/UiTab.stories.js +5 -5
- package/src/components/navigation/UiTab.vue +15 -20
- package/src/components/navigation/UiTabs.stories.js +34 -0
- package/src/components/navigation/UiTabs.vue +76 -0
- package/src/components/table/BmsTable.stories.js +47 -0
- package/src/components/table/BmsTable.vue +22 -3
- package/src/components/table/UiBmsTable.spec.ts +47 -3
- package/src/components/table/UiBmsTable.stories.js +43 -0
- package/src/components/table/UiBmsTable.vue +51 -91
- package/src/components/table/UiBmsTableRow.vue +18 -3
- package/src/documentation/principles.mdx +73 -7
- package/src/helpers/tab.helper.ts +3 -0
- package/src/helpers/table.helper.ts +19 -0
- package/src/models/tab.model.ts +6 -0
- package/src/models/table.model.ts +1 -0
- package/src/showroom/pages/server-table.vue +1 -4
- package/src/showroom/pages/table.vue +3 -0
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -50,6 +50,7 @@ var ColumnType = /* @__PURE__ */ ((ColumnType2) => {
|
|
|
50
50
|
var SelectMode = /* @__PURE__ */ ((SelectMode2) => {
|
|
51
51
|
SelectMode2["ALL"] = "all";
|
|
52
52
|
SelectMode2["DEFAULT"] = "default";
|
|
53
|
+
SelectMode2["SINGLE"] = "single";
|
|
53
54
|
return SelectMode2;
|
|
54
55
|
})(SelectMode || {});
|
|
55
56
|
|
|
@@ -308,10 +309,27 @@ const enforceActionsColumnHeader = (headers) => {
|
|
|
308
309
|
console.error("Table component cannot have multiple action columns ");
|
|
309
310
|
return headers.filter((h) => !h?.action).concat(actionsHeaders.length ? actionsHeaders[0] : []);
|
|
310
311
|
};
|
|
312
|
+
const getAlignClass = (header) => {
|
|
313
|
+
const align = !header.align ? "start" : header.align;
|
|
314
|
+
return `u-text-align-${align}`;
|
|
315
|
+
};
|
|
316
|
+
const getHeaderClasses = (header, sort) => {
|
|
317
|
+
const classes = [getAlignClass(header), "bms-table__header-cell"];
|
|
318
|
+
if (header.class) {
|
|
319
|
+
classes.push(header.class);
|
|
320
|
+
}
|
|
321
|
+
if (header.sortable) {
|
|
322
|
+
classes.push("sortable");
|
|
323
|
+
}
|
|
324
|
+
if (sort.key === header.key) {
|
|
325
|
+
classes.push("sorted");
|
|
326
|
+
}
|
|
327
|
+
return classes;
|
|
328
|
+
};
|
|
311
329
|
|
|
312
330
|
const _hoisted_1$$ = ["href", "target"];
|
|
313
331
|
const _hoisted_2$G = ["href", "onClick", "target"];
|
|
314
|
-
const _sfc_main$
|
|
332
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
315
333
|
__name: "BmsLink",
|
|
316
334
|
props: {
|
|
317
335
|
to: {},
|
|
@@ -361,7 +379,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
361
379
|
});
|
|
362
380
|
|
|
363
381
|
const _hoisted_1$_ = ["type"];
|
|
364
|
-
const _sfc_main$
|
|
382
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
365
383
|
__name: "UiButtonLink",
|
|
366
384
|
props: {
|
|
367
385
|
type: {},
|
|
@@ -386,7 +404,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
386
404
|
type: __props.type
|
|
387
405
|
}, [
|
|
388
406
|
renderSlot(_ctx.$slots, "default")
|
|
389
|
-
], 10, _hoisted_1$_)) : (openBlock(), createBlock(_sfc_main$
|
|
407
|
+
], 10, _hoisted_1$_)) : (openBlock(), createBlock(_sfc_main$1r, {
|
|
390
408
|
key: 1,
|
|
391
409
|
to: __props.to,
|
|
392
410
|
target: __props.target,
|
|
@@ -404,7 +422,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
404
422
|
const _hoisted_1$Z = { class: "start" };
|
|
405
423
|
const _hoisted_2$F = { class: "content" };
|
|
406
424
|
const _hoisted_3$m = { class: "end" };
|
|
407
|
-
const _sfc_main$
|
|
425
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
408
426
|
__name: "UiButton",
|
|
409
427
|
props: {
|
|
410
428
|
type: { default: "button" },
|
|
@@ -417,7 +435,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
417
435
|
setup(__props) {
|
|
418
436
|
const props = __props;
|
|
419
437
|
return (_ctx, _cache) => {
|
|
420
|
-
return openBlock(), createBlock(_sfc_main$
|
|
438
|
+
return openBlock(), createBlock(_sfc_main$1q, normalizeProps(guardReactiveProps(props)), {
|
|
421
439
|
default: withCtx(() => [
|
|
422
440
|
createElementVNode("span", _hoisted_1$Z, [
|
|
423
441
|
renderSlot(_ctx.$slots, "start")
|
|
@@ -435,7 +453,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
435
453
|
}
|
|
436
454
|
});
|
|
437
455
|
|
|
438
|
-
const _sfc_main$
|
|
456
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
439
457
|
__name: "BmsButton",
|
|
440
458
|
props: {
|
|
441
459
|
type: { default: "primary" },
|
|
@@ -459,7 +477,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
459
477
|
}
|
|
460
478
|
});
|
|
461
479
|
return (_ctx, _cache) => {
|
|
462
|
-
return openBlock(), createBlock(_sfc_main$
|
|
480
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
463
481
|
mode: uiMode.value,
|
|
464
482
|
color: __props.mode,
|
|
465
483
|
to: __props.to,
|
|
@@ -481,7 +499,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
481
499
|
}
|
|
482
500
|
});
|
|
483
501
|
|
|
484
|
-
const _sfc_main$
|
|
502
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
485
503
|
__name: "BmsIconButton",
|
|
486
504
|
props: {
|
|
487
505
|
to: { default: null },
|
|
@@ -501,7 +519,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
501
519
|
direction: __props.tooltipDirection
|
|
502
520
|
}, {
|
|
503
521
|
default: withCtx(() => [
|
|
504
|
-
createVNode(_sfc_main$
|
|
522
|
+
createVNode(_sfc_main$1p, mergeProps(_ctx.$attrs, {
|
|
505
523
|
icon: "",
|
|
506
524
|
to: __props.to,
|
|
507
525
|
target: __props.target,
|
|
@@ -37427,7 +37445,7 @@ const lucideIcons = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
|
|
|
37427
37445
|
const _hoisted_1$Y = { class: "info-line" };
|
|
37428
37446
|
const _hoisted_2$E = { class: "icon" };
|
|
37429
37447
|
const _hoisted_3$l = { class: "message" };
|
|
37430
|
-
const _sfc_main$
|
|
37448
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
37431
37449
|
__name: "BmsAlert",
|
|
37432
37450
|
props: {
|
|
37433
37451
|
message: {},
|
|
@@ -37462,7 +37480,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
37462
37480
|
], true)
|
|
37463
37481
|
]),
|
|
37464
37482
|
renderSlot(_ctx.$slots, "action", {}, void 0, true),
|
|
37465
|
-
__props.dismissable ? (openBlock(), createBlock(_sfc_main$
|
|
37483
|
+
__props.dismissable ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
37466
37484
|
key: 0,
|
|
37467
37485
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("dismiss"))
|
|
37468
37486
|
}, {
|
|
@@ -37486,13 +37504,13 @@ const _export_sfc = (sfc, props) => {
|
|
|
37486
37504
|
return target;
|
|
37487
37505
|
};
|
|
37488
37506
|
|
|
37489
|
-
const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37507
|
+
const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-26caccdd"]]);
|
|
37490
37508
|
|
|
37491
37509
|
const _hoisted_1$X = {
|
|
37492
37510
|
key: 0,
|
|
37493
37511
|
class: "ui-badge__container"
|
|
37494
37512
|
};
|
|
37495
|
-
const _sfc_main$
|
|
37513
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
37496
37514
|
__name: "BmsBadge",
|
|
37497
37515
|
props: {
|
|
37498
37516
|
pending: { default: 0 },
|
|
@@ -37518,14 +37536,14 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
37518
37536
|
}
|
|
37519
37537
|
});
|
|
37520
37538
|
|
|
37521
|
-
const BmsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37539
|
+
const BmsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-8a6297ca"]]);
|
|
37522
37540
|
|
|
37523
37541
|
const _hoisted_1$W = {
|
|
37524
37542
|
key: 0,
|
|
37525
37543
|
class: "icon"
|
|
37526
37544
|
};
|
|
37527
37545
|
const _hoisted_2$D = ["innerHTML"];
|
|
37528
|
-
const _sfc_main$
|
|
37546
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
37529
37547
|
__name: "BmsCaption",
|
|
37530
37548
|
props: {
|
|
37531
37549
|
caption: {}
|
|
@@ -37568,7 +37586,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
37568
37586
|
}
|
|
37569
37587
|
});
|
|
37570
37588
|
|
|
37571
|
-
const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37589
|
+
const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-b08dd4e0"]]);
|
|
37572
37590
|
|
|
37573
37591
|
const _hoisted_1$V = { class: "circular-progress" };
|
|
37574
37592
|
const _hoisted_2$C = {
|
|
@@ -37578,7 +37596,7 @@ const _hoisted_2$C = {
|
|
|
37578
37596
|
const _hoisted_3$k = { transform: "rotate(-90, 50, 50)" };
|
|
37579
37597
|
const _hoisted_4$d = ["stroke-dashoffset"];
|
|
37580
37598
|
const _hoisted_5$9 = { class: "percent" };
|
|
37581
|
-
const _sfc_main$
|
|
37599
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
37582
37600
|
__name: "BmsCircularProgress",
|
|
37583
37601
|
props: ["progress"],
|
|
37584
37602
|
setup(__props) {
|
|
@@ -37613,13 +37631,13 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
37613
37631
|
}
|
|
37614
37632
|
});
|
|
37615
37633
|
|
|
37616
|
-
const BmsCircularProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37634
|
+
const BmsCircularProgress = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-7869acfb"]]);
|
|
37617
37635
|
|
|
37618
37636
|
const _hoisted_1$U = { class: "bms-loader" };
|
|
37619
37637
|
function transformIntoPx(totransform) {
|
|
37620
37638
|
return typeof totransform === "string" ? totransform : `${totransform}px`;
|
|
37621
37639
|
}
|
|
37622
|
-
const _sfc_main$
|
|
37640
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
37623
37641
|
__name: "BmsLoader",
|
|
37624
37642
|
props: {
|
|
37625
37643
|
size: { default: "inherit" }
|
|
@@ -37640,7 +37658,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
37640
37658
|
}
|
|
37641
37659
|
});
|
|
37642
37660
|
|
|
37643
|
-
const BmsLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37661
|
+
const BmsLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-7cc96135"]]);
|
|
37644
37662
|
|
|
37645
37663
|
function tryOnScopeDispose(fn) {
|
|
37646
37664
|
if (getCurrentScope()) {
|
|
@@ -38534,7 +38552,7 @@ const useTooltipHelper = () => {
|
|
|
38534
38552
|
};
|
|
38535
38553
|
};
|
|
38536
38554
|
|
|
38537
|
-
const _sfc_main$
|
|
38555
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
38538
38556
|
__name: "UiTooltip",
|
|
38539
38557
|
props: {
|
|
38540
38558
|
visible: { type: Boolean, default: true },
|
|
@@ -38610,9 +38628,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
38610
38628
|
}
|
|
38611
38629
|
});
|
|
38612
38630
|
|
|
38613
|
-
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38631
|
+
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-bf923418"]]);
|
|
38614
38632
|
|
|
38615
|
-
const _sfc_main$
|
|
38633
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
38616
38634
|
__name: "BmsTooltip",
|
|
38617
38635
|
props: {
|
|
38618
38636
|
tooltipText: { default: "" },
|
|
@@ -38691,14 +38709,14 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
38691
38709
|
}
|
|
38692
38710
|
});
|
|
38693
38711
|
|
|
38694
|
-
const BmsTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38712
|
+
const BmsTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-b033f8af"]]);
|
|
38695
38713
|
|
|
38696
38714
|
const _hoisted_1$T = {
|
|
38697
38715
|
class: "options-list",
|
|
38698
38716
|
"data-testid": "select-options"
|
|
38699
38717
|
};
|
|
38700
38718
|
const _hoisted_2$B = ["data-testid", "onClick"];
|
|
38701
|
-
const _sfc_main$
|
|
38719
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
38702
38720
|
__name: "FieldDatalist",
|
|
38703
38721
|
props: {
|
|
38704
38722
|
options: {},
|
|
@@ -38795,13 +38813,13 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
38795
38813
|
}
|
|
38796
38814
|
});
|
|
38797
38815
|
|
|
38798
|
-
const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38816
|
+
const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-ba5302fc"]]);
|
|
38799
38817
|
|
|
38800
38818
|
const _hoisted_1$S = { class: "field__input-label" };
|
|
38801
38819
|
const _hoisted_2$A = { class: "field__input-icon field__input-icon--start" };
|
|
38802
38820
|
const _hoisted_3$j = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
|
|
38803
38821
|
const _hoisted_4$c = { class: "field__input-icon field__input-icon--end" };
|
|
38804
|
-
const _sfc_main$
|
|
38822
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
38805
38823
|
__name: "RawInputText",
|
|
38806
38824
|
props: {
|
|
38807
38825
|
modelValue: {},
|
|
@@ -38882,9 +38900,9 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
38882
38900
|
}
|
|
38883
38901
|
});
|
|
38884
38902
|
|
|
38885
|
-
const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38903
|
+
const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-4c74b915"]]);
|
|
38886
38904
|
|
|
38887
|
-
const _sfc_main$
|
|
38905
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
38888
38906
|
__name: "RawAutocomplete",
|
|
38889
38907
|
props: /* @__PURE__ */ mergeModels({
|
|
38890
38908
|
options: {},
|
|
@@ -39056,11 +39074,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
39056
39074
|
}
|
|
39057
39075
|
});
|
|
39058
39076
|
|
|
39059
|
-
const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39077
|
+
const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-15343285"]]);
|
|
39060
39078
|
|
|
39061
39079
|
const _hoisted_1$R = ["innerHTML"];
|
|
39062
39080
|
const _hoisted_2$z = ["innerHTML"];
|
|
39063
|
-
const _sfc_main$
|
|
39081
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
39064
39082
|
__name: "BmsAutocomplete",
|
|
39065
39083
|
props: /* @__PURE__ */ mergeModels({
|
|
39066
39084
|
options: {},
|
|
@@ -39151,11 +39169,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
39151
39169
|
}
|
|
39152
39170
|
});
|
|
39153
39171
|
|
|
39154
|
-
const BmsAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39172
|
+
const BmsAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-43ad5137"]]);
|
|
39155
39173
|
|
|
39156
39174
|
const _hoisted_1$Q = ["innerHTML"];
|
|
39157
39175
|
const _hoisted_2$y = ["innerHTML"];
|
|
39158
|
-
const _sfc_main$
|
|
39176
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
39159
39177
|
__name: "BmsServerAutocomplete",
|
|
39160
39178
|
props: /* @__PURE__ */ mergeModels({
|
|
39161
39179
|
url: {},
|
|
@@ -39287,9 +39305,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
39287
39305
|
}
|
|
39288
39306
|
});
|
|
39289
39307
|
|
|
39290
|
-
const BmsServerAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39308
|
+
const BmsServerAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-d94effd6"]]);
|
|
39291
39309
|
|
|
39292
|
-
const _sfc_main$
|
|
39310
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
39293
39311
|
__name: "BmsBetweenInput",
|
|
39294
39312
|
props: {
|
|
39295
39313
|
inputType: { default: InputType.NUMBER },
|
|
@@ -39386,9 +39404,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
39386
39404
|
}
|
|
39387
39405
|
});
|
|
39388
39406
|
|
|
39389
|
-
const BmsBetweenInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39407
|
+
const BmsBetweenInput = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-f25b520b"]]);
|
|
39390
39408
|
|
|
39391
|
-
const _sfc_main$
|
|
39409
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
39392
39410
|
__name: "BmsChip",
|
|
39393
39411
|
props: {
|
|
39394
39412
|
color: { default: ChipColor.Grey }
|
|
@@ -39411,13 +39429,13 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
39411
39429
|
}
|
|
39412
39430
|
});
|
|
39413
39431
|
|
|
39414
|
-
const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39432
|
+
const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-72b945cc"]]);
|
|
39415
39433
|
|
|
39416
39434
|
const _hoisted_1$P = { class: "file-upload" };
|
|
39417
39435
|
const _hoisted_2$x = { class: "file-upload__label" };
|
|
39418
39436
|
const _hoisted_3$i = { key: 1 };
|
|
39419
39437
|
const _hoisted_4$b = { class: "file-upload__file-name" };
|
|
39420
|
-
const _sfc_main$
|
|
39438
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
39421
39439
|
__name: "BmsFilePicker",
|
|
39422
39440
|
props: {
|
|
39423
39441
|
modelValue: {},
|
|
@@ -39516,7 +39534,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
39516
39534
|
class: "file-upload__file"
|
|
39517
39535
|
}, [
|
|
39518
39536
|
createElementVNode("span", _hoisted_4$b, toDisplayString(file.name), 1),
|
|
39519
|
-
createVNode(unref(_sfc_main$
|
|
39537
|
+
createVNode(unref(_sfc_main$1n), {
|
|
39520
39538
|
onClick: ($event) => onDeleteFile(file)
|
|
39521
39539
|
}, {
|
|
39522
39540
|
default: withCtx(() => [
|
|
@@ -39532,14 +39550,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
39532
39550
|
}
|
|
39533
39551
|
});
|
|
39534
39552
|
|
|
39535
|
-
const BmsFilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39553
|
+
const BmsFilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-c892a845"]]);
|
|
39536
39554
|
|
|
39537
39555
|
const _hoisted_1$O = ["disabled", "name", "value"];
|
|
39538
39556
|
const _hoisted_2$w = {
|
|
39539
39557
|
key: 0,
|
|
39540
39558
|
class: "input-checkbox-info"
|
|
39541
39559
|
};
|
|
39542
|
-
const _sfc_main$
|
|
39560
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
39543
39561
|
__name: "UiBmsInputCheckbox",
|
|
39544
39562
|
props: {
|
|
39545
39563
|
modelValue: { default: false },
|
|
@@ -39589,9 +39607,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
39589
39607
|
}
|
|
39590
39608
|
});
|
|
39591
39609
|
|
|
39592
|
-
const UiBmsInputCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39610
|
+
const UiBmsInputCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-e1d94c62"]]);
|
|
39593
39611
|
|
|
39594
|
-
const _sfc_main$
|
|
39612
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
39595
39613
|
__name: "BmsInputBooleanCheckbox",
|
|
39596
39614
|
props: {
|
|
39597
39615
|
modelValue: {},
|
|
@@ -39712,7 +39730,7 @@ function v4(options, buf, offset) {
|
|
|
39712
39730
|
return _v4(options, buf, offset);
|
|
39713
39731
|
}
|
|
39714
39732
|
|
|
39715
|
-
const _sfc_main$
|
|
39733
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
39716
39734
|
__name: "BmsInputCheckboxGroup",
|
|
39717
39735
|
props: {
|
|
39718
39736
|
values: {},
|
|
@@ -39783,9 +39801,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
39783
39801
|
}
|
|
39784
39802
|
});
|
|
39785
39803
|
|
|
39786
|
-
const BmsInputCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39804
|
+
const BmsInputCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-43978315"]]);
|
|
39787
39805
|
|
|
39788
|
-
const _sfc_main$
|
|
39806
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
39789
39807
|
__name: "BmsInputCheckboxCaption",
|
|
39790
39808
|
props: {
|
|
39791
39809
|
modelValue: {},
|
|
@@ -39861,9 +39879,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
39861
39879
|
}
|
|
39862
39880
|
});
|
|
39863
39881
|
|
|
39864
|
-
const BmsInputCheckboxCaption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39882
|
+
const BmsInputCheckboxCaption = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-6cb7c474"]]);
|
|
39865
39883
|
|
|
39866
|
-
const _sfc_main$
|
|
39884
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
39867
39885
|
__name: "BmsInputCheckboxCaptionGroup",
|
|
39868
39886
|
props: {
|
|
39869
39887
|
options: { default: () => [] },
|
|
@@ -39918,7 +39936,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
39918
39936
|
}
|
|
39919
39937
|
});
|
|
39920
39938
|
|
|
39921
|
-
const BmsInputCheckboxCaptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39939
|
+
const BmsInputCheckboxCaptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-4183cc04"]]);
|
|
39922
39940
|
|
|
39923
39941
|
/**
|
|
39924
39942
|
The default maximum length of a `TreeBuffer` node.
|
|
@@ -68444,7 +68462,7 @@ const basicSetup = /*@__PURE__*/(() => [
|
|
|
68444
68462
|
var h=Object.freeze({autofocus:false,disabled:false,indentWithTab:true,tabSize:2,placeholder:"",autoDestroy:true,extensions:[basicSetup]}),y=Symbol("vue-codemirror-global-config");var O,j=function(e){var t=e.onUpdate,n=e.onChange,o=e.onFocus,r=e.onBlur,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);}return n}(e,["onUpdate","onChange","onFocus","onBlur"]);return EditorState.create({doc:u.doc,selection:u.selection,extensions:(Array.isArray(u.extensions)?u.extensions:[u.extensions]).concat([EditorView.updateListener.of((function(e){t(e),e.docChanged&&n(e.state.doc.toString(),e),e.focusChanged&&(e.view.hasFocus?o(e):r(e));}))])})},S=function(e){var t=new Compartment;return {compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:StateEffect.appendConfig.of(t.of(n))});}}},x=function(e,t){var n=S(e),o=n.compartment,r=n.run;return function(n){var u=o.get(e.state);r((null!=n?n:u!==t)?t:[]);}},C={type:Boolean,default:void 0},D={autofocus:C,disabled:C,indentWithTab:C,tabSize:Number,placeholder:String,style:Object,autoDestroy:C,phrases:Object,root:Object,extensions:Array,selection:Object},U={modelValue:{type:String,default:""}},w=Object.assign(Object.assign({},D),U);!function(e){e.Change="change",e.Update="update",e.Focus="focus",e.Blur="blur",e.Ready="ready",e.ModelUpdate="update:modelValue";}(O||(O={}));var z={};z[O.Change]=function(e,t){return true},z[O.Update]=function(e){return true},z[O.Focus]=function(e){return true},z[O.Blur]=function(e){return true},z[O.Ready]=function(e){return true};var B={};B[O.ModelUpdate]=z[O.Change];var F=Object.assign(Object.assign({},z),B),P=defineComponent({name:"VueCodemirror",props:Object.assign({},w),emits:Object.assign({},F),setup:function(t,s){var f=shallowRef(),d=shallowRef(),C=shallowRef(),D=Object.assign(Object.assign({},h),inject(y,{})),U=computed((function(){var e={};return Object.keys(toRaw(t)).forEach((function(n){var o;"modelValue"!==n&&(e[n]=null!==(o=t[n])&&void 0!==o?o:D[n]);})),e}));return onMounted((function(){var e;d.value=j({doc:t.modelValue,selection:U.value.selection,extensions:null!==(e=D.extensions)&&void 0!==e?e:[],onFocus:function(e){return s.emit(O.Focus,e)},onBlur:function(e){return s.emit(O.Blur,e)},onUpdate:function(e){return s.emit(O.Update,e)},onChange:function(e,n){e!==t.modelValue&&(s.emit(O.Change,e,n),s.emit(O.ModelUpdate,e,n));}}),C.value=function(e){return new EditorView(Object.assign({},e))}({state:d.value,parent:f.value,root:U.value.root});var n=function(e){var t=function(){return e.state.doc.toString()},n=S(e).run,o=x(e,[EditorView.editable.of(false),EditorState.readOnly.of(true)]),r=x(e,keymap.of([indentWithTab])),u=S(e).run,a=S(e).run,i=S(e).run,c=S(e).run;return {focus:function(){return e.focus()},getDoc:t,setDoc:function(n){n!==t()&&e.dispatch({changes:{from:0,to:e.state.doc.length,insert:n}});},reExtensions:n,toggleDisabled:o,toggleIndentWithTab:r,setTabSize:function(e){u([EditorState.tabSize.of(e),indentUnit.of(" ".repeat(e))]);},setPhrases:function(e){a([EditorState.phrases.of(e)]);},setPlaceholder:function(e){i(placeholder(e));},setStyle:function(e){ void 0===e&&(e={}),c(EditorView.theme({"&":Object.assign({},e)}));}}}(C.value);watch((function(){return t.modelValue}),(function(e){e!==n.getDoc()&&n.setDoc(e);})),watch((function(){return t.extensions}),(function(e){return n.reExtensions(e||[])}),{immediate:true}),watch((function(){return U.value.disabled}),(function(e){return n.toggleDisabled(e)}),{immediate:true}),watch((function(){return U.value.indentWithTab}),(function(e){return n.toggleIndentWithTab(e)}),{immediate:true}),watch((function(){return U.value.tabSize}),(function(e){return n.setTabSize(e)}),{immediate:true}),watch((function(){return U.value.phrases}),(function(e){return n.setPhrases(e||{})}),{immediate:true}),watch((function(){return U.value.placeholder}),(function(e){return n.setPlaceholder(e)}),{immediate:true}),watch((function(){return U.value.style}),(function(e){return n.setStyle(e)}),{immediate:true}),U.value.autofocus&&n.focus(),s.emit(O.Ready,{state:d.value,view:C.value,container:f.value});})),onBeforeUnmount((function(){U.value.autoDestroy&&C.value&&function(e){e.destroy();}(C.value);})),function(){return h$1("div",{class:"v-codemirror",style:{display:"contents"},ref:f})}}}),T=P;
|
|
68445
68463
|
|
|
68446
68464
|
const _hoisted_1$N = { class: "code-mirror" };
|
|
68447
|
-
const _sfc_main$
|
|
68465
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
68448
68466
|
__name: "BmsInputCode",
|
|
68449
68467
|
props: /* @__PURE__ */ mergeModels({
|
|
68450
68468
|
type: {},
|
|
@@ -68497,9 +68515,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
68497
68515
|
}
|
|
68498
68516
|
});
|
|
68499
68517
|
|
|
68500
|
-
const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
68518
|
+
const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-0de8ac2e"]]);
|
|
68501
68519
|
|
|
68502
|
-
const _sfc_main$
|
|
68520
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
68503
68521
|
__name: "BmsInputText",
|
|
68504
68522
|
props: {
|
|
68505
68523
|
inputType: { default: InputType.TEXT },
|
|
@@ -68614,7 +68632,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
68614
68632
|
}
|
|
68615
68633
|
});
|
|
68616
68634
|
|
|
68617
|
-
const _sfc_main
|
|
68635
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
68618
68636
|
__name: "BmsInputDateTime",
|
|
68619
68637
|
props: {
|
|
68620
68638
|
modelValue: {},
|
|
@@ -68640,7 +68658,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
68640
68658
|
if (!props.disabled && value) $emits("update:modelValue", value);
|
|
68641
68659
|
};
|
|
68642
68660
|
return (_ctx, _cache) => {
|
|
68643
|
-
return openBlock(), createBlock(_sfc_main$
|
|
68661
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
68644
68662
|
modelValue: __props.modelValue,
|
|
68645
68663
|
label: __props.label,
|
|
68646
68664
|
required: __props.required,
|
|
@@ -68663,7 +68681,7 @@ const _hoisted_3$h = {
|
|
|
68663
68681
|
key: 1,
|
|
68664
68682
|
class: "file-upload__file-name"
|
|
68665
68683
|
};
|
|
68666
|
-
const _sfc_main
|
|
68684
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
68667
68685
|
__name: "BmsInputFile",
|
|
68668
68686
|
props: {
|
|
68669
68687
|
modelValue: {},
|
|
@@ -68819,7 +68837,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
68819
68837
|
src: getImageSrc(file),
|
|
68820
68838
|
class: "file-upload__file-img"
|
|
68821
68839
|
}, null, 8, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(file.name), 1)),
|
|
68822
|
-
createVNode(_sfc_main$
|
|
68840
|
+
createVNode(_sfc_main$1n, {
|
|
68823
68841
|
mode: unref(StatusType).Danger,
|
|
68824
68842
|
onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
|
|
68825
68843
|
class: "close-button"
|
|
@@ -68839,9 +68857,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
68839
68857
|
}
|
|
68840
68858
|
});
|
|
68841
68859
|
|
|
68842
|
-
const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
68860
|
+
const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-07e6912d"]]);
|
|
68843
68861
|
|
|
68844
|
-
const _sfc_main$
|
|
68862
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
68845
68863
|
__name: "BmsInputNumber",
|
|
68846
68864
|
props: {
|
|
68847
68865
|
modelValue: {},
|
|
@@ -68901,7 +68919,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
68901
68919
|
() => checkLimit()
|
|
68902
68920
|
);
|
|
68903
68921
|
return (_ctx, _cache) => {
|
|
68904
|
-
return openBlock(), createBlock(_sfc_main$
|
|
68922
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
68905
68923
|
modelValue: __props.modelValue,
|
|
68906
68924
|
label: __props.label,
|
|
68907
68925
|
required: __props.required,
|
|
@@ -68925,7 +68943,7 @@ const _hoisted_2$u = {
|
|
|
68925
68943
|
key: 0,
|
|
68926
68944
|
class: "input-radio-info"
|
|
68927
68945
|
};
|
|
68928
|
-
const _sfc_main$
|
|
68946
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
68929
68947
|
__name: "BmsInputRadio",
|
|
68930
68948
|
props: {
|
|
68931
68949
|
modelValue: {},
|
|
@@ -68976,9 +68994,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
68976
68994
|
}
|
|
68977
68995
|
});
|
|
68978
68996
|
|
|
68979
|
-
const BmsInputRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
68997
|
+
const BmsInputRadio = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-c0c9efa3"]]);
|
|
68980
68998
|
|
|
68981
|
-
const _sfc_main$
|
|
68999
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
68982
69000
|
__name: "BmsInputRadioGroup",
|
|
68983
69001
|
props: {
|
|
68984
69002
|
values: { default: () => [] },
|
|
@@ -69049,9 +69067,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
69049
69067
|
}
|
|
69050
69068
|
});
|
|
69051
69069
|
|
|
69052
|
-
const BmsInputRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69070
|
+
const BmsInputRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-186163e2"]]);
|
|
69053
69071
|
|
|
69054
|
-
const _sfc_main$
|
|
69072
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
69055
69073
|
__name: "BmsInputRadioCaption",
|
|
69056
69074
|
props: {
|
|
69057
69075
|
modelValue: {},
|
|
@@ -69113,9 +69131,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
69113
69131
|
}
|
|
69114
69132
|
});
|
|
69115
69133
|
|
|
69116
|
-
const BmsInputRadioCaption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69134
|
+
const BmsInputRadioCaption = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-c3ba4fee"]]);
|
|
69117
69135
|
|
|
69118
|
-
const _sfc_main$
|
|
69136
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
69119
69137
|
__name: "BmsInputRadioCaptionGroup",
|
|
69120
69138
|
props: {
|
|
69121
69139
|
options: { default: () => [] },
|
|
@@ -69175,10 +69193,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
69175
69193
|
}
|
|
69176
69194
|
});
|
|
69177
69195
|
|
|
69178
|
-
const BmsInputRadioCaptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69196
|
+
const BmsInputRadioCaptionGroup = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-a4287904"]]);
|
|
69179
69197
|
|
|
69180
69198
|
const _hoisted_1$K = ["disabled", "name"];
|
|
69181
|
-
const _sfc_main$
|
|
69199
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
69182
69200
|
__name: "UiBmsSwitch",
|
|
69183
69201
|
props: {
|
|
69184
69202
|
disabled: { type: Boolean, default: false },
|
|
@@ -69215,11 +69233,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
69215
69233
|
}
|
|
69216
69234
|
});
|
|
69217
69235
|
|
|
69218
|
-
const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69236
|
+
const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-6de1a5c6"]]);
|
|
69219
69237
|
|
|
69220
69238
|
const _hoisted_1$J = ["title"];
|
|
69221
69239
|
const _hoisted_2$t = { class: "input-switch-info" };
|
|
69222
|
-
const _sfc_main$
|
|
69240
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
69223
69241
|
__name: "BmsInputToggle",
|
|
69224
69242
|
props: {
|
|
69225
69243
|
name: {},
|
|
@@ -69264,10 +69282,10 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
69264
69282
|
}
|
|
69265
69283
|
});
|
|
69266
69284
|
|
|
69267
|
-
const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69285
|
+
const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-5f354760"]]);
|
|
69268
69286
|
|
|
69269
69287
|
const _hoisted_1$I = { class: "dismiss-button" };
|
|
69270
|
-
const _sfc_main$
|
|
69288
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
69271
69289
|
__name: "BmsTag",
|
|
69272
69290
|
props: {
|
|
69273
69291
|
active: { type: Boolean, default: false },
|
|
@@ -69285,7 +69303,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
69285
69303
|
}, [
|
|
69286
69304
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
69287
69305
|
createElementVNode("span", _hoisted_1$I, [
|
|
69288
|
-
__props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$
|
|
69306
|
+
__props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$1n), {
|
|
69289
69307
|
key: 0,
|
|
69290
69308
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("dismiss"), ["stop"]))
|
|
69291
69309
|
}, {
|
|
@@ -69302,9 +69320,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
69302
69320
|
}
|
|
69303
69321
|
});
|
|
69304
69322
|
|
|
69305
|
-
const BmsTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69323
|
+
const BmsTag = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-e2517fee"]]);
|
|
69306
69324
|
|
|
69307
|
-
const _sfc_main$
|
|
69325
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
69308
69326
|
__name: "RawSelect",
|
|
69309
69327
|
props: {
|
|
69310
69328
|
options: {},
|
|
@@ -69362,12 +69380,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
69362
69380
|
}
|
|
69363
69381
|
});
|
|
69364
69382
|
|
|
69365
|
-
const RawSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69383
|
+
const RawSelect = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-6231389d"]]);
|
|
69366
69384
|
|
|
69367
69385
|
const _hoisted_1$H = { class: "tags" };
|
|
69368
69386
|
const _hoisted_2$s = ["disabled"];
|
|
69369
69387
|
const _hoisted_3$g = { class: "icon-container" };
|
|
69370
|
-
const _sfc_main$
|
|
69388
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
69371
69389
|
__name: "BmsMultiSelect",
|
|
69372
69390
|
props: /* @__PURE__ */ mergeModels({
|
|
69373
69391
|
options: {},
|
|
@@ -69522,9 +69540,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
69522
69540
|
}
|
|
69523
69541
|
});
|
|
69524
69542
|
|
|
69525
|
-
const BmsMultiSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69543
|
+
const BmsMultiSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-b8b817ba"]]);
|
|
69526
69544
|
|
|
69527
|
-
const _sfc_main$
|
|
69545
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
69528
69546
|
__name: "BmsSearch",
|
|
69529
69547
|
props: {
|
|
69530
69548
|
modelValue: {},
|
|
@@ -69554,7 +69572,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
69554
69572
|
setFocus
|
|
69555
69573
|
});
|
|
69556
69574
|
return (_ctx, _cache) => {
|
|
69557
|
-
return openBlock(), createBlock(_sfc_main$
|
|
69575
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
69558
69576
|
ref_key: "input",
|
|
69559
69577
|
ref: input,
|
|
69560
69578
|
modelValue: search.value,
|
|
@@ -69583,7 +69601,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
69583
69601
|
}
|
|
69584
69602
|
});
|
|
69585
69603
|
|
|
69586
|
-
const BmsSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69604
|
+
const BmsSearch = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-66c267f2"]]);
|
|
69587
69605
|
|
|
69588
69606
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
69589
69607
|
|
|
@@ -86805,7 +86823,7 @@ const _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
|
86805
86823
|
|
|
86806
86824
|
const _hoisted_1$G = ["value", "placeholder", "required", "disabled"];
|
|
86807
86825
|
const _hoisted_2$r = { class: "icon-toggle-container" };
|
|
86808
|
-
const _sfc_main$
|
|
86826
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
86809
86827
|
__name: "BmsSelect",
|
|
86810
86828
|
props: /* @__PURE__ */ mergeModels({
|
|
86811
86829
|
options: {},
|
|
@@ -86904,10 +86922,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
86904
86922
|
}
|
|
86905
86923
|
});
|
|
86906
86924
|
|
|
86907
|
-
const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86925
|
+
const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-7aef9c6c"]]);
|
|
86908
86926
|
|
|
86909
86927
|
const _hoisted_1$F = ["value", "required", "placeholder", "disabled"];
|
|
86910
|
-
const _sfc_main$
|
|
86928
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
86911
86929
|
__name: "BmsTextArea",
|
|
86912
86930
|
props: {
|
|
86913
86931
|
modelValue: {},
|
|
@@ -86972,11 +86990,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
86972
86990
|
}
|
|
86973
86991
|
});
|
|
86974
86992
|
|
|
86975
|
-
const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86993
|
+
const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-94de6dd9"]]);
|
|
86976
86994
|
|
|
86977
86995
|
const _hoisted_1$E = { class: "page__breadcrumb" };
|
|
86978
86996
|
const _hoisted_2$q = { class: "page__header" };
|
|
86979
|
-
const _sfc_main$
|
|
86997
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
86980
86998
|
__name: "BmsContentPageLayout",
|
|
86981
86999
|
props: {
|
|
86982
87000
|
size: { default: "large" }
|
|
@@ -87003,14 +87021,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
87003
87021
|
}
|
|
87004
87022
|
});
|
|
87005
87023
|
|
|
87006
|
-
const BmsContentPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87024
|
+
const BmsContentPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-31057778"]]);
|
|
87007
87025
|
|
|
87008
87026
|
const _hoisted_1$D = { class: "card__body__content" };
|
|
87009
87027
|
const _hoisted_2$p = {
|
|
87010
87028
|
key: 0,
|
|
87011
87029
|
class: "card__body__action"
|
|
87012
87030
|
};
|
|
87013
|
-
const _sfc_main$
|
|
87031
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
87014
87032
|
__name: "BmsCard",
|
|
87015
87033
|
props: {
|
|
87016
87034
|
animated: { type: Boolean, default: false },
|
|
@@ -87050,7 +87068,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87050
87068
|
class: normalizeClass(["card__body", { animated: __props.animated, hasAction: !!_ctx.$slots.action }])
|
|
87051
87069
|
}, [
|
|
87052
87070
|
createElementVNode("div", _hoisted_1$D, [
|
|
87053
|
-
__props.to ? (openBlock(), createBlock(_sfc_main$
|
|
87071
|
+
__props.to ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
87054
87072
|
key: 0,
|
|
87055
87073
|
class: "card__body__content__link",
|
|
87056
87074
|
to: __props.to
|
|
@@ -87070,14 +87088,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87070
87088
|
}
|
|
87071
87089
|
});
|
|
87072
87090
|
|
|
87073
|
-
const BmsCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87091
|
+
const BmsCard = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-cff3f84d"]]);
|
|
87074
87092
|
|
|
87075
87093
|
const _hoisted_1$C = { class: "floating-window-wrapper" };
|
|
87076
87094
|
const _hoisted_2$o = { class: "floating-window" };
|
|
87077
87095
|
const _hoisted_3$f = { class: "floating-window__header" };
|
|
87078
87096
|
const _hoisted_4$a = { class: "floating-window__header__buttons" };
|
|
87079
87097
|
const _hoisted_5$8 = { class: "floating-window__content" };
|
|
87080
|
-
const _sfc_main$
|
|
87098
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
87081
87099
|
__name: "BmsFloatingWindow",
|
|
87082
87100
|
props: /* @__PURE__ */ mergeModels({
|
|
87083
87101
|
title: {}
|
|
@@ -87096,7 +87114,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
87096
87114
|
createElementVNode("div", _hoisted_3$f, [
|
|
87097
87115
|
createElementVNode("h2", null, toDisplayString(__props.title), 1),
|
|
87098
87116
|
createElementVNode("div", _hoisted_4$a, [
|
|
87099
|
-
createVNode(_sfc_main$
|
|
87117
|
+
createVNode(_sfc_main$1n, {
|
|
87100
87118
|
"tooltip-text": "Maximiser la fenêtre",
|
|
87101
87119
|
disabled: ""
|
|
87102
87120
|
}, {
|
|
@@ -87105,7 +87123,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
87105
87123
|
]),
|
|
87106
87124
|
_: 1
|
|
87107
87125
|
}),
|
|
87108
|
-
createVNode(_sfc_main$
|
|
87126
|
+
createVNode(_sfc_main$1n, {
|
|
87109
87127
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => open.value = false, ["prevent", "stop"]))
|
|
87110
87128
|
}, {
|
|
87111
87129
|
default: withCtx(() => [
|
|
@@ -87126,7 +87144,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
87126
87144
|
}
|
|
87127
87145
|
});
|
|
87128
87146
|
|
|
87129
|
-
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87147
|
+
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-fdb4e567"]]);
|
|
87130
87148
|
|
|
87131
87149
|
const _hoisted_1$B = { class: "form-section" };
|
|
87132
87150
|
const _hoisted_2$n = {
|
|
@@ -87134,7 +87152,7 @@ const _hoisted_2$n = {
|
|
|
87134
87152
|
style: "border"
|
|
87135
87153
|
};
|
|
87136
87154
|
const _hoisted_3$e = { class: "actions" };
|
|
87137
|
-
const _sfc_main$
|
|
87155
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
87138
87156
|
__name: "BmsForm",
|
|
87139
87157
|
setup(__props) {
|
|
87140
87158
|
const slots = useSlots();
|
|
@@ -87161,16 +87179,16 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
87161
87179
|
}
|
|
87162
87180
|
});
|
|
87163
87181
|
|
|
87164
|
-
const BmsForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87182
|
+
const BmsForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-b5bab57e"]]);
|
|
87165
87183
|
|
|
87166
|
-
const _sfc_main$
|
|
87184
|
+
const _sfc_main$J = { };
|
|
87167
87185
|
|
|
87168
87186
|
function _sfc_render$1(_ctx, _cache) {
|
|
87169
87187
|
return (openBlock(), createElementBlock("header", null, [
|
|
87170
87188
|
renderSlot(_ctx.$slots, "default", {}, undefined, true)
|
|
87171
87189
|
]))
|
|
87172
87190
|
}
|
|
87173
|
-
const BmsHeader = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
87191
|
+
const BmsHeader = /*#__PURE__*/_export_sfc(_sfc_main$J, [['render',_sfc_render$1],['__scopeId',"data-v-97c1615a"]]);
|
|
87174
87192
|
|
|
87175
87193
|
function isPlainObject$1(value) {
|
|
87176
87194
|
if (value === null || typeof value !== "object") {
|
|
@@ -89953,7 +89971,7 @@ const _hoisted_1$A = {
|
|
|
89953
89971
|
"stroke-linecap": "round",
|
|
89954
89972
|
"stroke-linejoin": "round"
|
|
89955
89973
|
};
|
|
89956
|
-
const _sfc_main$
|
|
89974
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
89957
89975
|
__name: "AnimatedCircleHelpIcon",
|
|
89958
89976
|
setup(__props) {
|
|
89959
89977
|
const defaultTransition = {
|
|
@@ -90028,7 +90046,7 @@ const _hoisted_1$z = {
|
|
|
90028
90046
|
"stroke-linecap": "round",
|
|
90029
90047
|
"stroke-linejoin": "round"
|
|
90030
90048
|
};
|
|
90031
|
-
const _sfc_main$
|
|
90049
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
90032
90050
|
__name: "AnimatedActivityIcon",
|
|
90033
90051
|
setup(__props) {
|
|
90034
90052
|
const variants = {
|
|
@@ -90088,7 +90106,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
90088
90106
|
}
|
|
90089
90107
|
});
|
|
90090
90108
|
|
|
90091
|
-
const _sfc_main$
|
|
90109
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
90092
90110
|
__name: "BmsShortLinkMenu",
|
|
90093
90111
|
props: {
|
|
90094
90112
|
outline: { type: Boolean, default: false },
|
|
@@ -90101,7 +90119,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90101
90119
|
key: 0,
|
|
90102
90120
|
class: normalizeClass(["bms-short-link-menu", { "bms-short-link-menu__outline": __props.outline }])
|
|
90103
90121
|
}, [
|
|
90104
|
-
!!__props.helpLink ? (openBlock(), createBlock(_sfc_main$
|
|
90122
|
+
!!__props.helpLink ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
90105
90123
|
key: 0,
|
|
90106
90124
|
"tooltip-text": "Voir la documentation",
|
|
90107
90125
|
to: __props.helpLink,
|
|
@@ -90109,12 +90127,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90109
90127
|
}, {
|
|
90110
90128
|
default: withCtx(() => [
|
|
90111
90129
|
renderSlot(_ctx.$slots, "documentationIcon", {}, () => [
|
|
90112
|
-
createVNode(_sfc_main$
|
|
90130
|
+
createVNode(_sfc_main$I)
|
|
90113
90131
|
], true)
|
|
90114
90132
|
]),
|
|
90115
90133
|
_: 3
|
|
90116
90134
|
}, 8, ["to"])) : createCommentVNode("", true),
|
|
90117
|
-
!!__props.activityLink ? (openBlock(), createBlock(_sfc_main$
|
|
90135
|
+
!!__props.activityLink ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
90118
90136
|
key: 1,
|
|
90119
90137
|
"tooltip-text": "Voir l'activité",
|
|
90120
90138
|
to: __props.activityLink,
|
|
@@ -90122,7 +90140,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90122
90140
|
}, {
|
|
90123
90141
|
default: withCtx(() => [
|
|
90124
90142
|
renderSlot(_ctx.$slots, "activityIcon", {}, () => [
|
|
90125
|
-
createVNode(_sfc_main$
|
|
90143
|
+
createVNode(_sfc_main$H)
|
|
90126
90144
|
], true)
|
|
90127
90145
|
]),
|
|
90128
90146
|
_: 3
|
|
@@ -90132,7 +90150,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90132
90150
|
}
|
|
90133
90151
|
});
|
|
90134
90152
|
|
|
90135
|
-
const BmsShortLinkMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90153
|
+
const BmsShortLinkMenu = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-d23e08a5"]]);
|
|
90136
90154
|
|
|
90137
90155
|
const _hoisted_1$y = { class: "bms-header" };
|
|
90138
90156
|
const _hoisted_2$m = { class: "bms-header__title" };
|
|
@@ -90150,7 +90168,7 @@ const _hoisted_7$5 = {
|
|
|
90150
90168
|
key: 0,
|
|
90151
90169
|
class: "bms-header__subtitle"
|
|
90152
90170
|
};
|
|
90153
|
-
const _sfc_main$
|
|
90171
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
90154
90172
|
__name: "BmsHeaderTitle",
|
|
90155
90173
|
props: {
|
|
90156
90174
|
title: {},
|
|
@@ -90192,9 +90210,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
90192
90210
|
}
|
|
90193
90211
|
});
|
|
90194
90212
|
|
|
90195
|
-
const BmsHeaderTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90213
|
+
const BmsHeaderTitle = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-1368f77d"]]);
|
|
90196
90214
|
|
|
90197
|
-
const _sfc_main$
|
|
90215
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
90198
90216
|
__name: "BmsOverlay",
|
|
90199
90217
|
props: {
|
|
90200
90218
|
active: { type: Boolean },
|
|
@@ -90212,7 +90230,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
90212
90230
|
}
|
|
90213
90231
|
});
|
|
90214
90232
|
|
|
90215
|
-
const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90233
|
+
const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-383b958c"]]);
|
|
90216
90234
|
|
|
90217
90235
|
const _hoisted_1$x = ["data-testid"];
|
|
90218
90236
|
const _hoisted_2$l = { class: "ui-modal__header" };
|
|
@@ -90226,7 +90244,7 @@ const _hoisted_8$3 = {
|
|
|
90226
90244
|
class: "ui-modal__loader"
|
|
90227
90245
|
};
|
|
90228
90246
|
const _hoisted_9$2 = { key: 0 };
|
|
90229
|
-
const _sfc_main$
|
|
90247
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
90230
90248
|
__name: "BmsModal",
|
|
90231
90249
|
props: {
|
|
90232
90250
|
modelValue: { default: null },
|
|
@@ -90366,7 +90384,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
90366
90384
|
])
|
|
90367
90385
|
], true)
|
|
90368
90386
|
]),
|
|
90369
|
-
createVNode(_sfc_main$
|
|
90387
|
+
createVNode(_sfc_main$1n, {
|
|
90370
90388
|
disabled: !isModalClosable.value,
|
|
90371
90389
|
onClick: dismissModal,
|
|
90372
90390
|
"data-testid": "close-modal"
|
|
@@ -90392,7 +90410,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
90392
90410
|
modalData: props.modelValue
|
|
90393
90411
|
}, () => [
|
|
90394
90412
|
(openBlock(true), createElementBlock(Fragment, null, renderList(buttons.value, (button) => {
|
|
90395
|
-
return openBlock(), createBlock(_sfc_main$
|
|
90413
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
90396
90414
|
key: button.label + button.role,
|
|
90397
90415
|
type: button.role === "cancel" ? "secondary" : "primary",
|
|
90398
90416
|
disabled: !isModalClosable.value || button.disabled,
|
|
@@ -90432,10 +90450,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
90432
90450
|
}
|
|
90433
90451
|
});
|
|
90434
90452
|
|
|
90435
|
-
const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90453
|
+
const BmsModal = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-769d070b"]]);
|
|
90436
90454
|
|
|
90437
90455
|
const _hoisted_1$w = { class: "header" };
|
|
90438
|
-
const _sfc_main$
|
|
90456
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
90439
90457
|
__name: "BmsSection",
|
|
90440
90458
|
props: {
|
|
90441
90459
|
style: { default: "flat" }
|
|
@@ -90454,14 +90472,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90454
90472
|
}
|
|
90455
90473
|
});
|
|
90456
90474
|
|
|
90457
|
-
const BmsSection = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90475
|
+
const BmsSection = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-2e9192be"]]);
|
|
90458
90476
|
|
|
90459
90477
|
const _hoisted_1$v = ["id"];
|
|
90460
90478
|
const _hoisted_2$k = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-orientation", "aria-controls"];
|
|
90461
90479
|
const _hoisted_3$b = ["id"];
|
|
90462
90480
|
const DEFAULT_MIN = 0;
|
|
90463
90481
|
const DEFAULT_MAX = 100;
|
|
90464
|
-
const _sfc_main$
|
|
90482
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
90465
90483
|
__name: "BmsSplitWindow",
|
|
90466
90484
|
props: /* @__PURE__ */ mergeModels({
|
|
90467
90485
|
splitOrientation: { default: "vertical" },
|
|
@@ -90641,11 +90659,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
90641
90659
|
}
|
|
90642
90660
|
});
|
|
90643
90661
|
|
|
90644
|
-
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90662
|
+
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-61513081"]]);
|
|
90645
90663
|
|
|
90646
90664
|
const _hoisted_1$u = { class: "step" };
|
|
90647
90665
|
const _hoisted_2$j = { class: "step-buttons" };
|
|
90648
|
-
const _sfc_main$
|
|
90666
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
90649
90667
|
__name: "BmsStep",
|
|
90650
90668
|
props: {
|
|
90651
90669
|
previousLabel: { default: "Précédent" },
|
|
@@ -90661,7 +90679,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
90661
90679
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
90662
90680
|
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
90663
90681
|
createElementVNode("div", _hoisted_2$j, [
|
|
90664
|
-
__props.previousLabel ? (openBlock(), createBlock(_sfc_main$
|
|
90682
|
+
__props.previousLabel ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
90665
90683
|
key: 0,
|
|
90666
90684
|
"data-test": "previous-button",
|
|
90667
90685
|
name: "previous",
|
|
@@ -90673,7 +90691,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
90673
90691
|
]),
|
|
90674
90692
|
_: 1
|
|
90675
90693
|
})) : createCommentVNode("", true),
|
|
90676
|
-
__props.nextLabel ? (openBlock(), createBlock(_sfc_main$
|
|
90694
|
+
__props.nextLabel ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
90677
90695
|
key: 1,
|
|
90678
90696
|
"data-test": "next-button",
|
|
90679
90697
|
class: "",
|
|
@@ -90693,7 +90711,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
90693
90711
|
}
|
|
90694
90712
|
});
|
|
90695
90713
|
|
|
90696
|
-
const BmsStep = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90714
|
+
const BmsStep = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-fcce71d1"]]);
|
|
90697
90715
|
|
|
90698
90716
|
const _hoisted_1$t = { class: "stepper" };
|
|
90699
90717
|
const _hoisted_2$i = { class: "stepper-header" };
|
|
@@ -90705,7 +90723,7 @@ const _hoisted_6$3 = {
|
|
|
90705
90723
|
class: "stepper-header--separator"
|
|
90706
90724
|
};
|
|
90707
90725
|
const _hoisted_7$3 = { class: "stepper-body" };
|
|
90708
|
-
const _sfc_main$
|
|
90726
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
90709
90727
|
__name: "BmsStepper",
|
|
90710
90728
|
props: {
|
|
90711
90729
|
currentStep: { default: 0 },
|
|
@@ -90779,7 +90797,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
90779
90797
|
}
|
|
90780
90798
|
});
|
|
90781
90799
|
|
|
90782
|
-
const BmsStepper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90800
|
+
const BmsStepper = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-c132d5cd"]]);
|
|
90783
90801
|
|
|
90784
90802
|
const historyRoutes = ref([]);
|
|
90785
90803
|
const useRouterHistory = () => {
|
|
@@ -90814,7 +90832,7 @@ const useRouterHistory = () => {
|
|
|
90814
90832
|
};
|
|
90815
90833
|
};
|
|
90816
90834
|
|
|
90817
|
-
const _sfc_main$
|
|
90835
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
90818
90836
|
__name: "BmsBackButton",
|
|
90819
90837
|
props: {
|
|
90820
90838
|
fallback: {}
|
|
@@ -90838,7 +90856,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
90838
90856
|
}
|
|
90839
90857
|
});
|
|
90840
90858
|
|
|
90841
|
-
const BmsBackButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90859
|
+
const BmsBackButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-02d02028"]]);
|
|
90842
90860
|
|
|
90843
90861
|
const _hoisted_1$s = {
|
|
90844
90862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -90851,7 +90869,7 @@ const _hoisted_1$s = {
|
|
|
90851
90869
|
"stroke-linecap": "round",
|
|
90852
90870
|
"stroke-linejoin": "round"
|
|
90853
90871
|
};
|
|
90854
|
-
const _sfc_main$
|
|
90872
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
90855
90873
|
__name: "AnimatedHomeIcon",
|
|
90856
90874
|
setup(__props) {
|
|
90857
90875
|
const variants = {
|
|
@@ -90910,7 +90928,7 @@ const _hoisted_2$h = {
|
|
|
90910
90928
|
key: 1,
|
|
90911
90929
|
class: "breadcrumb__here"
|
|
90912
90930
|
};
|
|
90913
|
-
const _sfc_main$
|
|
90931
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
90914
90932
|
__name: "BmsBreadcrumb",
|
|
90915
90933
|
props: {
|
|
90916
90934
|
homeLocation: { default: "/" },
|
|
@@ -90923,7 +90941,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
90923
90941
|
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
90924
90942
|
createVNode(_component_RouterLink, { to: __props.homeLocation }, {
|
|
90925
90943
|
default: withCtx(() => [
|
|
90926
|
-
createVNode(_sfc_main$
|
|
90944
|
+
createVNode(_sfc_main$x)
|
|
90927
90945
|
]),
|
|
90928
90946
|
_: 1
|
|
90929
90947
|
}, 8, ["to"]),
|
|
@@ -90948,10 +90966,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
90948
90966
|
}
|
|
90949
90967
|
});
|
|
90950
90968
|
|
|
90951
|
-
const BmsBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
90969
|
+
const BmsBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a7f3b134"]]);
|
|
90952
90970
|
|
|
90953
90971
|
const _hoisted_1$q = { class: "label" };
|
|
90954
|
-
const _sfc_main$
|
|
90972
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
90955
90973
|
__name: "UiMenuItem",
|
|
90956
90974
|
props: {
|
|
90957
90975
|
item: {},
|
|
@@ -90968,7 +90986,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
90968
90986
|
return classes2;
|
|
90969
90987
|
});
|
|
90970
90988
|
return (_ctx, _cache) => {
|
|
90971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
90989
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
90972
90990
|
to: __props.item.link,
|
|
90973
90991
|
target: __props.target,
|
|
90974
90992
|
classes: classes.value
|
|
@@ -90999,7 +91017,7 @@ const _hoisted_2$g = { class: "parent-label" };
|
|
|
90999
91017
|
const _hoisted_3$9 = ["onClick"];
|
|
91000
91018
|
const _hoisted_4$6 = { class: "parent-label" };
|
|
91001
91019
|
const _hoisted_5$4 = { class: "additional" };
|
|
91002
|
-
const _sfc_main$
|
|
91020
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
91003
91021
|
__name: "BmsMenuNav",
|
|
91004
91022
|
props: {
|
|
91005
91023
|
items: {},
|
|
@@ -91062,7 +91080,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
91062
91080
|
key: item.label
|
|
91063
91081
|
}, [
|
|
91064
91082
|
hasSubItems(item) ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
91065
|
-
item.link ? (openBlock(), createBlock(_sfc_main$
|
|
91083
|
+
item.link ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
91066
91084
|
key: 0,
|
|
91067
91085
|
to: item.link,
|
|
91068
91086
|
class: normalizeClass(`parent-item ${isItemActive(item) ? "active" : ""}`)
|
|
@@ -91090,7 +91108,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
91090
91108
|
return openBlock(), createElementBlock("li", {
|
|
91091
91109
|
key: subItem.label
|
|
91092
91110
|
}, [
|
|
91093
|
-
createVNode(_sfc_main$
|
|
91111
|
+
createVNode(_sfc_main$v, {
|
|
91094
91112
|
item: subItem,
|
|
91095
91113
|
active: isItemActive(subItem),
|
|
91096
91114
|
onClick: ($event) => clickItem(subItem)
|
|
@@ -91108,7 +91126,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
91108
91126
|
]),
|
|
91109
91127
|
_: 2
|
|
91110
91128
|
}, 1024)
|
|
91111
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
91129
|
+
])) : (openBlock(), createBlock(_sfc_main$v, {
|
|
91112
91130
|
key: 1,
|
|
91113
91131
|
item,
|
|
91114
91132
|
active: isItemActive(item),
|
|
@@ -91130,12 +91148,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
91130
91148
|
}
|
|
91131
91149
|
});
|
|
91132
91150
|
|
|
91133
|
-
const BmsMenuNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
91151
|
+
const BmsMenuNav = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-8b4752b4"]]);
|
|
91134
91152
|
|
|
91135
91153
|
const _hoisted_1$o = { class: "menu__container" };
|
|
91136
91154
|
const _hoisted_2$f = { class: "menu__top" };
|
|
91137
91155
|
const _hoisted_3$8 = { class: "menu__copyright" };
|
|
91138
|
-
const _sfc_main$
|
|
91156
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
91139
91157
|
__name: "BmsFixedMenu",
|
|
91140
91158
|
props: {
|
|
91141
91159
|
items: {},
|
|
@@ -91169,11 +91187,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
91169
91187
|
}
|
|
91170
91188
|
});
|
|
91171
91189
|
|
|
91172
|
-
const BmsFixedMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
91190
|
+
const BmsFixedMenu = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-b6a4c4f0"]]);
|
|
91173
91191
|
|
|
91174
91192
|
const _hoisted_1$n = { class: "menu" };
|
|
91175
91193
|
const _hoisted_2$e = { class: "menu__copyright" };
|
|
91176
|
-
const _sfc_main$
|
|
91194
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
91177
91195
|
__name: "BmsMenu",
|
|
91178
91196
|
props: {
|
|
91179
91197
|
items: {},
|
|
@@ -91190,7 +91208,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
91190
91208
|
const toggleMenu = (newMenuState = true) => isMenuOpen.value = newMenuState;
|
|
91191
91209
|
return (_ctx, _cache) => {
|
|
91192
91210
|
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
91193
|
-
createVNode(unref(_sfc_main$
|
|
91211
|
+
createVNode(unref(_sfc_main$1n), {
|
|
91194
91212
|
onClick: _cache[0] || (_cache[0] = ($event) => toggleMenu(!isMenuOpen.value)),
|
|
91195
91213
|
"data-testid": "openMenu",
|
|
91196
91214
|
"aria-label": "Ouvrir le menu"
|
|
@@ -91214,7 +91232,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
91214
91232
|
ref: menu,
|
|
91215
91233
|
class: normalizeClass(["menu__container", { "is-show": isMenuOpen.value }])
|
|
91216
91234
|
}, [
|
|
91217
|
-
createVNode(unref(_sfc_main$
|
|
91235
|
+
createVNode(unref(_sfc_main$1n), {
|
|
91218
91236
|
class: "menu__close",
|
|
91219
91237
|
onClick: _cache[1] || (_cache[1] = ($event) => toggleMenu(false)),
|
|
91220
91238
|
"data-testid": "closeMenu",
|
|
@@ -91254,52 +91272,66 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
91254
91272
|
}
|
|
91255
91273
|
});
|
|
91256
91274
|
|
|
91257
|
-
const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
91275
|
+
const BmsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-02719cac"]]);
|
|
91258
91276
|
|
|
91259
|
-
const
|
|
91277
|
+
const getTabId = (tab) => tab.id || tab.name;
|
|
91278
|
+
|
|
91279
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
91260
91280
|
__name: "UiTab",
|
|
91261
91281
|
props: {
|
|
91262
|
-
|
|
91282
|
+
selectedTabId: {},
|
|
91263
91283
|
tab: {}
|
|
91264
91284
|
},
|
|
91265
91285
|
setup(__props) {
|
|
91266
91286
|
const props = __props;
|
|
91287
|
+
const tabId = computed(() => getTabId(props.tab));
|
|
91267
91288
|
const isTabSelected = computed(
|
|
91268
|
-
() =>
|
|
91269
|
-
);
|
|
91270
|
-
const tabTarget = computed(
|
|
91271
|
-
() => props.tab.routePath ? { path: props.tab.routePath } : { name: props.tab.routeName }
|
|
91289
|
+
() => tabId.value && tabId.value === props.selectedTabId || false
|
|
91272
91290
|
);
|
|
91273
91291
|
return (_ctx, _cache) => {
|
|
91274
|
-
|
|
91275
|
-
return openBlock(), createBlock(_component_router_link, {
|
|
91276
|
-
to: tabTarget.value,
|
|
91292
|
+
return openBlock(), createElementBlock("span", {
|
|
91277
91293
|
"data-testid": "tab",
|
|
91278
91294
|
class: normalizeClass(["tab", { active: isTabSelected.value, error: __props.tab.error, disabled: __props.tab.disabled }])
|
|
91279
|
-
},
|
|
91280
|
-
|
|
91281
|
-
|
|
91282
|
-
|
|
91283
|
-
|
|
91284
|
-
]),
|
|
91285
|
-
_: 3
|
|
91286
|
-
}, 8, ["to", "class"]);
|
|
91295
|
+
}, [
|
|
91296
|
+
renderSlot(_ctx.$slots, "router", { tab: __props.tab }, () => [
|
|
91297
|
+
createTextVNode(toDisplayString(__props.tab.name), 1)
|
|
91298
|
+
], true)
|
|
91299
|
+
], 2);
|
|
91287
91300
|
};
|
|
91288
91301
|
}
|
|
91289
91302
|
});
|
|
91290
91303
|
|
|
91291
|
-
const UiTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
91304
|
+
const UiTab = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-b6feec3b"]]);
|
|
91292
91305
|
|
|
91293
91306
|
const _hoisted_1$m = { class: "tabs-header" };
|
|
91294
91307
|
const _hoisted_2$d = { class: "tabs-title" };
|
|
91295
|
-
const _sfc_main$
|
|
91296
|
-
__name: "
|
|
91308
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
91309
|
+
__name: "UiTabs",
|
|
91297
91310
|
props: {
|
|
91298
91311
|
title: {},
|
|
91299
|
-
tabs: {}
|
|
91312
|
+
tabs: {},
|
|
91313
|
+
initialTabId: {}
|
|
91300
91314
|
},
|
|
91301
|
-
|
|
91302
|
-
|
|
91315
|
+
emits: ["click"],
|
|
91316
|
+
setup(__props, { emit: __emit }) {
|
|
91317
|
+
const props = __props;
|
|
91318
|
+
const selectedTabId = ref(null);
|
|
91319
|
+
onMounted(() => {
|
|
91320
|
+
selectedTabId.value = props.initialTabId || null;
|
|
91321
|
+
});
|
|
91322
|
+
watch(
|
|
91323
|
+
() => props.initialTabId,
|
|
91324
|
+
() => {
|
|
91325
|
+
selectedTabId.value = props.initialTabId || null;
|
|
91326
|
+
}
|
|
91327
|
+
);
|
|
91328
|
+
const $emits = __emit;
|
|
91329
|
+
const onTabClick = (tab) => {
|
|
91330
|
+
if (getTabId(tab) !== selectedTabId.value) {
|
|
91331
|
+
$emits("click", tab);
|
|
91332
|
+
selectedTabId.value = getTabId(tab);
|
|
91333
|
+
}
|
|
91334
|
+
};
|
|
91303
91335
|
return (_ctx, _cache) => {
|
|
91304
91336
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
91305
91337
|
createElementVNode("div", _hoisted_2$d, [
|
|
@@ -91307,17 +91339,80 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
91307
91339
|
]),
|
|
91308
91340
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
|
|
91309
91341
|
return openBlock(), createBlock(UiTab, {
|
|
91310
|
-
key: tab
|
|
91342
|
+
key: unref(getTabId)(tab),
|
|
91343
|
+
selectedTabId: selectedTabId.value,
|
|
91311
91344
|
tab,
|
|
91312
|
-
|
|
91313
|
-
},
|
|
91345
|
+
onClick: ($event) => onTabClick(tab)
|
|
91346
|
+
}, {
|
|
91347
|
+
router: withCtx(({ tab: tab2 }) => [
|
|
91348
|
+
renderSlot(_ctx.$slots, "router", { tab: tab2 }, void 0, true)
|
|
91349
|
+
]),
|
|
91350
|
+
_: 2
|
|
91351
|
+
}, 1032, ["selectedTabId", "tab", "onClick"]);
|
|
91314
91352
|
}), 128))
|
|
91315
91353
|
]);
|
|
91316
91354
|
};
|
|
91317
91355
|
}
|
|
91318
91356
|
});
|
|
91319
91357
|
|
|
91320
|
-
const
|
|
91358
|
+
const UiTabs = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-9f2a5368"]]);
|
|
91359
|
+
|
|
91360
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
91361
|
+
__name: "BmsTabs",
|
|
91362
|
+
props: {
|
|
91363
|
+
title: {},
|
|
91364
|
+
tabs: {},
|
|
91365
|
+
initialTabId: {}
|
|
91366
|
+
},
|
|
91367
|
+
emits: ["click"],
|
|
91368
|
+
setup(__props, { emit: __emit }) {
|
|
91369
|
+
const { currentRoute } = useRouter();
|
|
91370
|
+
const props = __props;
|
|
91371
|
+
const getTabTarget = (tab) => {
|
|
91372
|
+
return tab.routePath ? { path: tab.routePath } : { name: tab.routeName };
|
|
91373
|
+
};
|
|
91374
|
+
const $emits = __emit;
|
|
91375
|
+
const needRouterEngine = computed(() => {
|
|
91376
|
+
return !!props.tabs && !!props.tabs[0] && !!(props.tabs[0].routePath || props.tabs[0].routeName);
|
|
91377
|
+
});
|
|
91378
|
+
const selectedTabId = computed(() => {
|
|
91379
|
+
if (needRouterEngine.value) {
|
|
91380
|
+
const selectedTab = props.tabs.find((t) => isTabSelected(t, currentRoute.value)) || null;
|
|
91381
|
+
return selectedTab ? getTabId(selectedTab) : null;
|
|
91382
|
+
} else if (props.initialTabId) {
|
|
91383
|
+
return props.initialTabId;
|
|
91384
|
+
} else {
|
|
91385
|
+
return null;
|
|
91386
|
+
}
|
|
91387
|
+
});
|
|
91388
|
+
const isTabSelected = (tab, currentRoute2) => tab.routePath ? currentRoute2.path.includes(tab.routePath) : tab.routeName ? !!currentRoute2.name && currentRoute2.name.includes(tab.routeName) : false;
|
|
91389
|
+
return (_ctx, _cache) => {
|
|
91390
|
+
const _component_router_link = resolveComponent("router-link");
|
|
91391
|
+
return openBlock(), createBlock(UiTabs, {
|
|
91392
|
+
title: __props.title,
|
|
91393
|
+
tabs: __props.tabs,
|
|
91394
|
+
"initial-tab-id": selectedTabId.value,
|
|
91395
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $emits("click", $event))
|
|
91396
|
+
}, createSlots({ _: 2 }, [
|
|
91397
|
+
needRouterEngine.value ? {
|
|
91398
|
+
name: "router",
|
|
91399
|
+
fn: withCtx(({ tab }) => [
|
|
91400
|
+
createVNode(_component_router_link, {
|
|
91401
|
+
class: "tab",
|
|
91402
|
+
to: getTabTarget(tab)
|
|
91403
|
+
}, {
|
|
91404
|
+
default: withCtx(() => [
|
|
91405
|
+
createTextVNode(toDisplayString(tab.name), 1)
|
|
91406
|
+
]),
|
|
91407
|
+
_: 2
|
|
91408
|
+
}, 1032, ["to"])
|
|
91409
|
+
]),
|
|
91410
|
+
key: "0"
|
|
91411
|
+
} : void 0
|
|
91412
|
+
]), 1032, ["title", "tabs", "initial-tab-id"]);
|
|
91413
|
+
};
|
|
91414
|
+
}
|
|
91415
|
+
});
|
|
91321
91416
|
|
|
91322
91417
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
91323
91418
|
__name: "UiPopoverMenu",
|
|
@@ -91471,7 +91566,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
91471
91566
|
createTextVNode(" " + toDisplayString(__props.tenant.label), 1),
|
|
91472
91567
|
createElementVNode("em", null, "- " + toDisplayString(__props.tenant.information), 1)
|
|
91473
91568
|
], 8, _hoisted_1$k),
|
|
91474
|
-
__props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$
|
|
91569
|
+
__props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
91475
91570
|
key: 0,
|
|
91476
91571
|
class: "remove-tenant-button",
|
|
91477
91572
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("removeFavorite"), ["stop"]))
|
|
@@ -91551,7 +91646,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
91551
91646
|
}, {
|
|
91552
91647
|
default: withCtx(() => [
|
|
91553
91648
|
createElementVNode("div", _hoisted_1$j, [
|
|
91554
|
-
createVNode(unref(_sfc_main$
|
|
91649
|
+
createVNode(unref(_sfc_main$11), {
|
|
91555
91650
|
ref_key: "searchRef",
|
|
91556
91651
|
ref: searchRef,
|
|
91557
91652
|
modelValue: search.value,
|
|
@@ -91667,7 +91762,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
91667
91762
|
__props.currentTenant && __props.tenants.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
91668
91763
|
createVNode(_sfc_main$n, { tenant: __props.currentTenant }, null, 8, ["tenant"]),
|
|
91669
91764
|
createElementVNode("span", null, toDisplayString(__props.currentTenant.label), 1)
|
|
91670
|
-
])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
91765
|
+
])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1o), {
|
|
91671
91766
|
key: 1,
|
|
91672
91767
|
type: "tertiary",
|
|
91673
91768
|
onClick: _cache[0] || (_cache[0] = ($event) => showTenantSwitcher.value = !showTenantSwitcher.value)
|
|
@@ -91810,7 +91905,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
91810
91905
|
onMouseup: _cache[1] || (_cache[1] = () => gripped.value = false)
|
|
91811
91906
|
}),
|
|
91812
91907
|
renderSlot(_ctx.$slots, "default", { row: item }, void 0, true),
|
|
91813
|
-
createVNode(unref(_sfc_main$
|
|
91908
|
+
createVNode(unref(_sfc_main$1n), {
|
|
91814
91909
|
mode: unref(StatusType).Danger,
|
|
91815
91910
|
onClick: ($event) => onRemove(item)
|
|
91816
91911
|
}, {
|
|
@@ -91958,7 +92053,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
91958
92053
|
], true)
|
|
91959
92054
|
]),
|
|
91960
92055
|
createElementVNode("div", _hoisted_3$6, [
|
|
91961
|
-
createVNode(_sfc_main$
|
|
92056
|
+
createVNode(_sfc_main$1n, {
|
|
91962
92057
|
color: "neutral",
|
|
91963
92058
|
onClick: goToFirst,
|
|
91964
92059
|
disabled: __props.currentPage === 0
|
|
@@ -91968,7 +92063,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
91968
92063
|
]),
|
|
91969
92064
|
_: 1
|
|
91970
92065
|
}, 8, ["disabled"]),
|
|
91971
|
-
createVNode(_sfc_main$
|
|
92066
|
+
createVNode(_sfc_main$1n, {
|
|
91972
92067
|
onClick: goToPrevious,
|
|
91973
92068
|
disabled: __props.currentPage === 0
|
|
91974
92069
|
}, {
|
|
@@ -91977,7 +92072,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
91977
92072
|
]),
|
|
91978
92073
|
_: 1
|
|
91979
92074
|
}, 8, ["disabled"]),
|
|
91980
|
-
createVNode(_sfc_main$
|
|
92075
|
+
createVNode(_sfc_main$1n, {
|
|
91981
92076
|
onClick: goToNext,
|
|
91982
92077
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0
|
|
91983
92078
|
}, {
|
|
@@ -91986,7 +92081,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
91986
92081
|
]),
|
|
91987
92082
|
_: 1
|
|
91988
92083
|
}, 8, ["disabled"]),
|
|
91989
|
-
createVNode(_sfc_main$
|
|
92084
|
+
createVNode(_sfc_main$1n, {
|
|
91990
92085
|
onClick: goToLast,
|
|
91991
92086
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0 || __props.total === Infinity
|
|
91992
92087
|
}, {
|
|
@@ -95735,6 +95830,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
95735
95830
|
setup(__props, { emit: __emit }) {
|
|
95736
95831
|
const props = __props;
|
|
95737
95832
|
const emits = __emit;
|
|
95833
|
+
const currentItem = computed(
|
|
95834
|
+
() => props.isChildElement ? props.item.childElement : props.item
|
|
95835
|
+
);
|
|
95738
95836
|
const isItemSelected = (item) => {
|
|
95739
95837
|
return props.selectMode === SelectMode.ALL || !!props.selectedItems.find((it) => _isEqual(item, it));
|
|
95740
95838
|
};
|
|
@@ -95745,7 +95843,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
95745
95843
|
return (_ctx, _cache) => {
|
|
95746
95844
|
return openBlock(), createElementBlock("tr", {
|
|
95747
95845
|
class: normalizeClass(["bms-table__row", {
|
|
95748
|
-
"bms-table__row--selected": isItemSelected(
|
|
95846
|
+
"bms-table__row--selected": isItemSelected(currentItem.value),
|
|
95749
95847
|
"bms-table__row--disabled": __props.isChildElement,
|
|
95750
95848
|
"bms-table__row--dense": __props.dense
|
|
95751
95849
|
}])
|
|
@@ -95757,12 +95855,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
95757
95855
|
activated: __props.selectMode === unref(SelectMode).ALL
|
|
95758
95856
|
}, {
|
|
95759
95857
|
default: withCtx(() => [
|
|
95760
|
-
|
|
95858
|
+
__props.selectMode === unref(SelectMode).SINGLE ? (openBlock(), createBlock(BmsInputRadio, {
|
|
95859
|
+
key: 0,
|
|
95860
|
+
name: unref(v4)(),
|
|
95861
|
+
disabled: __props.selectableDisabled,
|
|
95862
|
+
value: currentItem.value,
|
|
95863
|
+
"model-value": isItemSelected(currentItem.value) ? currentItem.value : null,
|
|
95864
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("select", currentItem.value))
|
|
95865
|
+
}, null, 8, ["name", "disabled", "value", "model-value"])) : (openBlock(), createBlock(UiBmsInputCheckbox, {
|
|
95866
|
+
key: 1,
|
|
95761
95867
|
name: unref(v4)(),
|
|
95762
95868
|
disabled: __props.selectMode === unref(SelectMode).ALL || __props.selectableDisabled,
|
|
95763
|
-
"model-value": isItemSelected(
|
|
95764
|
-
"onUpdate:modelValue": _cache[
|
|
95765
|
-
}, null, 8, ["name", "disabled", "model-value"])
|
|
95869
|
+
"model-value": isItemSelected(currentItem.value),
|
|
95870
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emits("select", currentItem.value))
|
|
95871
|
+
}, null, 8, ["name", "disabled", "model-value"]))
|
|
95766
95872
|
]),
|
|
95767
95873
|
_: 1
|
|
95768
95874
|
}, 8, ["direction", "activated"])
|
|
@@ -95810,7 +95916,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
95810
95916
|
}
|
|
95811
95917
|
});
|
|
95812
95918
|
|
|
95813
|
-
const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
95919
|
+
const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2ab3888f"]]);
|
|
95814
95920
|
|
|
95815
95921
|
const _hoisted_1$b = { class: "bms-table" };
|
|
95816
95922
|
const _hoisted_2$9 = { class: "bms-table__actions" };
|
|
@@ -95828,16 +95934,20 @@ const _hoisted_10$1 = {
|
|
|
95828
95934
|
key: 0,
|
|
95829
95935
|
class: "bms-table__loader"
|
|
95830
95936
|
};
|
|
95831
|
-
const _hoisted_11$1 = {
|
|
95832
|
-
|
|
95833
|
-
|
|
95834
|
-
|
|
95835
|
-
const
|
|
95836
|
-
const
|
|
95937
|
+
const _hoisted_11$1 = {
|
|
95938
|
+
ref: "thead",
|
|
95939
|
+
class: "bms-table__header"
|
|
95940
|
+
};
|
|
95941
|
+
const _hoisted_12$1 = { class: "bms-table__headers bms-table__row" };
|
|
95942
|
+
const _hoisted_13$1 = { key: 0 };
|
|
95943
|
+
const _hoisted_14$1 = ["onClick"];
|
|
95944
|
+
const _hoisted_15$1 = { class: "header-content" };
|
|
95945
|
+
const _hoisted_16$1 = { class: "bms-table__body" };
|
|
95946
|
+
const _hoisted_17 = {
|
|
95837
95947
|
key: 1,
|
|
95838
95948
|
class: "bms-table__row"
|
|
95839
95949
|
};
|
|
95840
|
-
const
|
|
95950
|
+
const _hoisted_18 = ["colspan"];
|
|
95841
95951
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
95842
95952
|
__name: "UiBmsTable",
|
|
95843
95953
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -95868,31 +95978,23 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
95868
95978
|
const selectedItems = useModel(__props, "selectedItems");
|
|
95869
95979
|
const emits = __emit;
|
|
95870
95980
|
const pagination = ref(null);
|
|
95871
|
-
const
|
|
95872
|
-
|
|
95873
|
-
|
|
95874
|
-
|
|
95875
|
-
|
|
95981
|
+
const isFocusOnPagination = () => pagination.value?.contains(document.activeElement);
|
|
95982
|
+
watch(
|
|
95983
|
+
() => props.items,
|
|
95984
|
+
async function keepFocusOnPaginationWhenUsed(newVal, oldVal) {
|
|
95985
|
+
if (oldVal.length > 0 && newVal.length > 0 && isFocusOnPagination()) {
|
|
95986
|
+
await nextTick();
|
|
95987
|
+
pagination.value?.focus();
|
|
95988
|
+
}
|
|
95989
|
+
},
|
|
95990
|
+
{ deep: true }
|
|
95991
|
+
);
|
|
95992
|
+
const filteredHeaders = computed(
|
|
95993
|
+
() => enforceActionsColumnHeader(props.headers)
|
|
95994
|
+
);
|
|
95876
95995
|
const tableClass = computed(
|
|
95877
95996
|
() => `bms-table__table bms-table__table--${props.mode}`
|
|
95878
95997
|
);
|
|
95879
|
-
const getAlignClass = (header) => {
|
|
95880
|
-
const align = !header.align ? "start" : header.align;
|
|
95881
|
-
return `u-text-align-${align}`;
|
|
95882
|
-
};
|
|
95883
|
-
const getHeaderClasses = (header) => {
|
|
95884
|
-
const classes = [getAlignClass(header), "bms-table__header-cell"];
|
|
95885
|
-
if (header.class) {
|
|
95886
|
-
classes.push(header.class);
|
|
95887
|
-
}
|
|
95888
|
-
if (header.sortable) {
|
|
95889
|
-
classes.push("sortable");
|
|
95890
|
-
}
|
|
95891
|
-
if (props.sort.key === header.key) {
|
|
95892
|
-
classes.push("sorted");
|
|
95893
|
-
}
|
|
95894
|
-
return classes;
|
|
95895
|
-
};
|
|
95896
95998
|
const getSortComponent = (header) => {
|
|
95897
95999
|
if (!props.sort.key || header.key !== props.sort.key) {
|
|
95898
96000
|
return ChevronsUpDown;
|
|
@@ -95906,41 +96008,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
95906
96008
|
return ChevronsUpDown;
|
|
95907
96009
|
}
|
|
95908
96010
|
};
|
|
95909
|
-
const
|
|
95910
|
-
return pagination.value?.contains(document.activeElement);
|
|
95911
|
-
};
|
|
95912
|
-
watch(
|
|
95913
|
-
() => props.items,
|
|
95914
|
-
async (newVal, oldVal) => {
|
|
95915
|
-
if (oldVal.length > 0 && newVal.length > 0 && isFocusOnPagination()) {
|
|
95916
|
-
await nextTick();
|
|
95917
|
-
pagination.value?.focus();
|
|
95918
|
-
}
|
|
95919
|
-
},
|
|
95920
|
-
{ deep: true }
|
|
95921
|
-
);
|
|
95922
|
-
onscroll = () => {
|
|
95923
|
-
if (thead.value) {
|
|
95924
|
-
const { top: theadTop } = thead.value.getBoundingClientRect();
|
|
95925
|
-
const headers = document.getElementsByTagName("header");
|
|
95926
|
-
if (headers.length > 0) {
|
|
95927
|
-
const header = headers[0];
|
|
95928
|
-
const { height: headerHeight } = header.getBoundingClientRect();
|
|
95929
|
-
isHeaderStuck.value = headerHeight === theadTop;
|
|
95930
|
-
}
|
|
95931
|
-
}
|
|
95932
|
-
};
|
|
95933
|
-
const isItemSelected = (item) => {
|
|
95934
|
-
return props.selectMode === SelectMode.ALL || !!selectedItems.value.find((it) => _isEqual(item, it));
|
|
95935
|
-
};
|
|
96011
|
+
const isItemSelected = (item) => props.selectMode === SelectMode.ALL || !!selectedItems.value.find((it) => _isEqual(item, it));
|
|
95936
96012
|
const onItemSelect = (item) => {
|
|
95937
|
-
if (
|
|
95938
|
-
selectedItems.value =
|
|
95939
|
-
(it) => !_isEqual(item, it)
|
|
95940
|
-
);
|
|
95941
|
-
areAllCurrentItemsSelected.value = false;
|
|
96013
|
+
if (props.selectMode === SelectMode.SINGLE) {
|
|
96014
|
+
selectedItems.value = [item];
|
|
95942
96015
|
} else {
|
|
95943
|
-
|
|
96016
|
+
if (isItemSelected(item)) {
|
|
96017
|
+
selectedItems.value = selectedItems.value.filter(
|
|
96018
|
+
(it) => !_isEqual(item, it)
|
|
96019
|
+
);
|
|
96020
|
+
areAllCurrentItemsSelected.value = false;
|
|
96021
|
+
} else {
|
|
96022
|
+
selectedItems.value.push(item);
|
|
96023
|
+
}
|
|
95944
96024
|
}
|
|
95945
96025
|
};
|
|
95946
96026
|
const areAllCurrentItemsSelected = ref(props.selectMode === SelectMode.ALL);
|
|
@@ -95952,7 +96032,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
95952
96032
|
if (props.selectMode === SelectMode.ALL) {
|
|
95953
96033
|
emits("clearSelection");
|
|
95954
96034
|
}
|
|
95955
|
-
if (selectedItems.value.length > props.
|
|
96035
|
+
if (selectedItems.value.length > props.totalSize) {
|
|
95956
96036
|
selectedItems.value = [];
|
|
95957
96037
|
} else {
|
|
95958
96038
|
if (!areAllCurrentItemsSelected.value) {
|
|
@@ -95960,11 +96040,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
95960
96040
|
if (!isItemSelected(item)) {
|
|
95961
96041
|
selectedItems.value.push(item);
|
|
95962
96042
|
}
|
|
96043
|
+
if (item?.childElement && !isItemSelected(item?.childElement)) {
|
|
96044
|
+
selectedItems.value.push(item.childElement);
|
|
96045
|
+
}
|
|
95963
96046
|
});
|
|
95964
96047
|
} else {
|
|
95965
|
-
selectedItems.value =
|
|
95966
|
-
(selectedItem) => !props.items.find((item) => _isEqual(item, selectedItem))
|
|
95967
|
-
);
|
|
96048
|
+
selectedItems.value = [];
|
|
95968
96049
|
}
|
|
95969
96050
|
}
|
|
95970
96051
|
};
|
|
@@ -96037,7 +96118,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96037
96118
|
_cache[1] || (_cache[1] = createElementVNode("strong", null, "1", -1)),
|
|
96038
96119
|
_cache[2] || (_cache[2] = createTextVNode(" élément du tableau est sélectionné. ", -1))
|
|
96039
96120
|
], 64)) : (openBlock(), createElementBlock("strong", _hoisted_8$2, toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
|
|
96040
|
-
__props.totalSize < __props.maxSelectedSize ? (openBlock(), createElementBlock("span", {
|
|
96121
|
+
__props.totalSize < __props.maxSelectedSize && __props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createElementBlock("span", {
|
|
96041
96122
|
key: 2,
|
|
96042
96123
|
class: "select-mode-all",
|
|
96043
96124
|
onClick: selectAll
|
|
@@ -96071,14 +96152,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96071
96152
|
ref_key: "mainComponent",
|
|
96072
96153
|
ref: mainComponent
|
|
96073
96154
|
}, [
|
|
96074
|
-
createElementVNode("thead",
|
|
96075
|
-
|
|
96076
|
-
|
|
96077
|
-
|
|
96078
|
-
|
|
96079
|
-
createElementVNode("tr", _hoisted_11$1, [
|
|
96080
|
-
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_12$1, [
|
|
96081
|
-
createVNode(UiBmsInputCheckbox, {
|
|
96155
|
+
createElementVNode("thead", _hoisted_11$1, [
|
|
96156
|
+
createElementVNode("tr", _hoisted_12$1, [
|
|
96157
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_13$1, [
|
|
96158
|
+
__props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createBlock(UiBmsInputCheckbox, {
|
|
96159
|
+
key: 0,
|
|
96082
96160
|
name: "select-all",
|
|
96083
96161
|
disabled: __props.items.length === 0 || __props.selectableDisabled,
|
|
96084
96162
|
"onUpdate:modelValue": [
|
|
@@ -96086,18 +96164,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96086
96164
|
_cache[0] || (_cache[0] = ($event) => areAllCurrentItemsSelected.value = $event)
|
|
96087
96165
|
],
|
|
96088
96166
|
modelValue: areAllCurrentItemsSelected.value
|
|
96089
|
-
}, null, 8, ["disabled", "modelValue"])
|
|
96167
|
+
}, null, 8, ["disabled", "modelValue"])) : createCommentVNode("", true)
|
|
96090
96168
|
])) : createCommentVNode("", true),
|
|
96091
96169
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredHeaders.value, (header) => {
|
|
96092
96170
|
return openBlock(), createElementBlock("th", {
|
|
96093
96171
|
style: normalizeStyle({
|
|
96094
96172
|
"--table-cell-width": header?.width || void 0
|
|
96095
96173
|
}),
|
|
96096
|
-
class: normalizeClass(getHeaderClasses(header)),
|
|
96174
|
+
class: normalizeClass(unref(getHeaderClasses)(header, __props.sort)),
|
|
96097
96175
|
key: header.label,
|
|
96098
96176
|
onClick: ($event) => emits("clickHeader", header)
|
|
96099
96177
|
}, [
|
|
96100
|
-
createElementVNode("span",
|
|
96178
|
+
createElementVNode("span", _hoisted_15$1, [
|
|
96101
96179
|
createTextVNode(toDisplayString(header.label) + " ", 1),
|
|
96102
96180
|
header.sortable ? (openBlock(), createBlock(resolveDynamicComponent(getSortComponent(header)), {
|
|
96103
96181
|
key: 0,
|
|
@@ -96105,11 +96183,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96105
96183
|
class: "header-content-sort"
|
|
96106
96184
|
})) : createCommentVNode("", true)
|
|
96107
96185
|
])
|
|
96108
|
-
], 14,
|
|
96186
|
+
], 14, _hoisted_14$1);
|
|
96109
96187
|
}), 128))
|
|
96110
96188
|
])
|
|
96111
|
-
],
|
|
96112
|
-
createElementVNode("tbody",
|
|
96189
|
+
], 512),
|
|
96190
|
+
createElementVNode("tbody", _hoisted_16$1, [
|
|
96113
96191
|
__props.items.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.items, (item) => {
|
|
96114
96192
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
96115
96193
|
createVNode(UiBmsTableRow, {
|
|
@@ -96144,7 +96222,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96144
96222
|
selectable: __props.selectable,
|
|
96145
96223
|
headers: filteredHeaders.value,
|
|
96146
96224
|
"select-mode": __props.selectMode,
|
|
96147
|
-
"selectable-disabled": __props.selectableDisabled
|
|
96225
|
+
"selectable-disabled": __props.selectableDisabled,
|
|
96226
|
+
onSelect: onItemSelect
|
|
96148
96227
|
}, createSlots({ _: 2 }, [
|
|
96149
96228
|
renderList(__props.headers, (cell) => {
|
|
96150
96229
|
return {
|
|
@@ -96157,7 +96236,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96157
96236
|
]), 1032, ["item", "selected-items", "selectable", "headers", "select-mode", "selectable-disabled"])
|
|
96158
96237
|
], true) : createCommentVNode("", true)
|
|
96159
96238
|
], 64);
|
|
96160
|
-
}), 128)) : (openBlock(), createElementBlock("tr",
|
|
96239
|
+
}), 128)) : (openBlock(), createElementBlock("tr", _hoisted_17, [
|
|
96161
96240
|
createElementVNode("td", {
|
|
96162
96241
|
colspan: __props.selectable ? filteredHeaders.value.length + 1 : filteredHeaders.value.length,
|
|
96163
96242
|
class: "bms-table__cell bms-table__cell--empty"
|
|
@@ -96165,7 +96244,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96165
96244
|
!props.loading ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
96166
96245
|
_cache[3] || (_cache[3] = createTextVNode("Aucune donnée", -1))
|
|
96167
96246
|
], true) : createCommentVNode("", true)
|
|
96168
|
-
], 8,
|
|
96247
|
+
], 8, _hoisted_18)
|
|
96169
96248
|
]))
|
|
96170
96249
|
])
|
|
96171
96250
|
], 2)) : createCommentVNode("", true),
|
|
@@ -96183,7 +96262,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96183
96262
|
}
|
|
96184
96263
|
});
|
|
96185
96264
|
|
|
96186
|
-
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
96265
|
+
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-45f34152"]]);
|
|
96187
96266
|
|
|
96188
96267
|
const _hoisted_1$a = { class: "filter-button-container" };
|
|
96189
96268
|
const _hoisted_2$8 = {
|
|
@@ -96205,7 +96284,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
96205
96284
|
);
|
|
96206
96285
|
return (_ctx, _cache) => {
|
|
96207
96286
|
return openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
96208
|
-
createVNode(_sfc_main$
|
|
96287
|
+
createVNode(_sfc_main$1p, {
|
|
96209
96288
|
class: "filter-button",
|
|
96210
96289
|
color: __props.isFilterVisible ? unref(StatusType).Default : unref(StatusType).Information,
|
|
96211
96290
|
mode: __props.isFilterVisible ? "fill" : "ghost",
|
|
@@ -98361,9 +98440,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
98361
98440
|
case "boolean":
|
|
98362
98441
|
return BmsSelect;
|
|
98363
98442
|
case "input":
|
|
98364
|
-
return _sfc_main$
|
|
98443
|
+
return _sfc_main$11;
|
|
98365
98444
|
case "inputDate":
|
|
98366
|
-
return _sfc_main
|
|
98445
|
+
return _sfc_main$10;
|
|
98367
98446
|
case "autocomplete":
|
|
98368
98447
|
return BmsAutocomplete;
|
|
98369
98448
|
case "autocompleteServer":
|
|
@@ -98450,7 +98529,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
98450
98529
|
_cache[2] || (_cache[2] = createTextVNode(" Recherche avancée ", -1))
|
|
98451
98530
|
]),
|
|
98452
98531
|
createElementVNode("span", _hoisted_4$3, [
|
|
98453
|
-
__props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$
|
|
98532
|
+
__props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
98454
98533
|
key: 0,
|
|
98455
98534
|
class: "save",
|
|
98456
98535
|
tooltipText: "Sauvegarder le filtre",
|
|
@@ -98461,7 +98540,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
98461
98540
|
]),
|
|
98462
98541
|
_: 1
|
|
98463
98542
|
})) : createCommentVNode("", true),
|
|
98464
|
-
createVNode(_sfc_main$
|
|
98543
|
+
createVNode(_sfc_main$1n, {
|
|
98465
98544
|
class: "reset",
|
|
98466
98545
|
tooltipText: "Vider les champs",
|
|
98467
98546
|
onClick: reset
|
|
@@ -98510,7 +98589,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
98510
98589
|
}, {
|
|
98511
98590
|
default: withCtx(() => [
|
|
98512
98591
|
_cache[3] || (_cache[3] = createElementVNode("div", null, " Vous pouvez sauvegarder votre recherche pour la retrouver plus facilement. ", -1)),
|
|
98513
|
-
createVNode(unref(_sfc_main$
|
|
98592
|
+
createVNode(unref(_sfc_main$11), {
|
|
98514
98593
|
ref_key: "nameInput",
|
|
98515
98594
|
ref: nameInput,
|
|
98516
98595
|
label: "Nom de la sauvegarde",
|
|
@@ -102801,7 +102880,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
102801
102880
|
value: SortValue.default
|
|
102802
102881
|
}) },
|
|
102803
102882
|
selectable: { type: Boolean, default: false },
|
|
102804
|
-
selectableDisabled: { type: Boolean, default: false }
|
|
102883
|
+
selectableDisabled: { type: Boolean, default: false },
|
|
102884
|
+
selectMode: { default: SelectMode.DEFAULT }
|
|
102805
102885
|
}, {
|
|
102806
102886
|
"selectedItems": {
|
|
102807
102887
|
required: false,
|
|
@@ -102934,9 +103014,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
102934
103014
|
const onClickHeader = (header) => {
|
|
102935
103015
|
changeSort(header);
|
|
102936
103016
|
};
|
|
103017
|
+
const elementsAndChildElements = computed(() => {
|
|
103018
|
+
const childElements = items.value.map((item) => item.childElement).filter((childElement) => !!childElement);
|
|
103019
|
+
return [...items.value, ...childElements];
|
|
103020
|
+
});
|
|
102937
103021
|
const onSelectAll = () => {
|
|
102938
|
-
selectedItems.value =
|
|
103022
|
+
selectedItems.value = elementsAndChildElements.value;
|
|
102939
103023
|
};
|
|
103024
|
+
const totalSize = computed(() => elementsAndChildElements.value.length);
|
|
102940
103025
|
return (_ctx, _cache) => {
|
|
102941
103026
|
return openBlock(), createBlock(UiBmsTable, {
|
|
102942
103027
|
selectedItems: selectedItems.value,
|
|
@@ -102949,7 +103034,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
102949
103034
|
sort: unref(sort),
|
|
102950
103035
|
selectable: __props.selectable,
|
|
102951
103036
|
selectableDisabled: __props.selectableDisabled,
|
|
102952
|
-
totalSize:
|
|
103037
|
+
totalSize: totalSize.value,
|
|
103038
|
+
selectMode: __props.selectMode,
|
|
102953
103039
|
onClickHeader,
|
|
102954
103040
|
onSelectAll
|
|
102955
103041
|
}, createSlots({
|
|
@@ -103044,12 +103130,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103044
103130
|
])
|
|
103045
103131
|
};
|
|
103046
103132
|
})
|
|
103047
|
-
]), 1032, ["selectedItems", "loading", "items", "headers", "mode", "hasFilters", "sort", "selectable", "selectableDisabled", "totalSize"]);
|
|
103133
|
+
]), 1032, ["selectedItems", "loading", "items", "headers", "mode", "hasFilters", "sort", "selectable", "selectableDisabled", "totalSize", "selectMode"]);
|
|
103048
103134
|
};
|
|
103049
103135
|
}
|
|
103050
103136
|
});
|
|
103051
103137
|
|
|
103052
|
-
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
103138
|
+
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-704a7453"]]);
|
|
103053
103139
|
|
|
103054
103140
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
103055
103141
|
__name: "BmsCocarde",
|
|
@@ -103107,7 +103193,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
103107
103193
|
class: "bms-notification__icon"
|
|
103108
103194
|
})),
|
|
103109
103195
|
createElementVNode("div", _hoisted_2$4, toDisplayString(__props.notification.text), 1),
|
|
103110
|
-
createVNode(_sfc_main$
|
|
103196
|
+
createVNode(_sfc_main$1n, {
|
|
103111
103197
|
class: "bms-notification__close-button",
|
|
103112
103198
|
onClick: closeNotification
|
|
103113
103199
|
}, {
|
|
@@ -103348,7 +103434,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
103348
103434
|
createElementVNode("div", null, [
|
|
103349
103435
|
createElementVNode("div", _hoisted_5$1, [
|
|
103350
103436
|
createElementVNode("span", _hoisted_6$1, toDisplayString(__props.problem.detail), 1),
|
|
103351
|
-
createVNode(unref(_sfc_main$
|
|
103437
|
+
createVNode(unref(_sfc_main$1n), {
|
|
103352
103438
|
class: "copyToClipboardButton",
|
|
103353
103439
|
onClick: _cache[1] || (_cache[1] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
103354
103440
|
}, {
|
|
@@ -103383,7 +103469,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
103383
103469
|
createElementVNode("div", null, [
|
|
103384
103470
|
createElementVNode("div", _hoisted_8$1, [
|
|
103385
103471
|
createElementVNode("span", _hoisted_9, toDisplayString(__props.problem.correlationId), 1),
|
|
103386
|
-
createVNode(unref(_sfc_main$
|
|
103472
|
+
createVNode(unref(_sfc_main$1n), {
|
|
103387
103473
|
class: "copyToClipboardButton",
|
|
103388
103474
|
onClick: _cache[3] || (_cache[3] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
103389
103475
|
}, {
|
|
@@ -103593,7 +103679,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
103593
103679
|
);
|
|
103594
103680
|
return (_ctx, _cache) => {
|
|
103595
103681
|
return isFeatureFlippingOn.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
103596
|
-
createVNode(_sfc_main$
|
|
103682
|
+
createVNode(_sfc_main$1o, {
|
|
103597
103683
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click")),
|
|
103598
103684
|
mode: unref(StatusType).Danger
|
|
103599
103685
|
}, {
|
|
@@ -105890,8 +105976,8 @@ const routerHistoryPlugin = {
|
|
|
105890
105976
|
|
|
105891
105977
|
const createBmsUi = () => ({
|
|
105892
105978
|
install: (app) => {
|
|
105893
|
-
app.component("BmsButton", _sfc_main$
|
|
105894
|
-
app.component("BmsIconButton", _sfc_main$
|
|
105979
|
+
app.component("BmsButton", _sfc_main$1o);
|
|
105980
|
+
app.component("BmsIconButton", _sfc_main$1n);
|
|
105895
105981
|
app.component("BmsAlert", BmsAlert);
|
|
105896
105982
|
app.component("BmsBadge", BmsBadge);
|
|
105897
105983
|
app.component("BmsCaption", BmsCaption);
|
|
@@ -105903,19 +105989,19 @@ const createBmsUi = () => ({
|
|
|
105903
105989
|
app.component("BmsBetweenInput", BmsBetweenInput);
|
|
105904
105990
|
app.component("BmsChip", BmsChip);
|
|
105905
105991
|
app.component("BmsFilePicker", BmsFilePicker);
|
|
105906
|
-
app.component("BmsInputBooleanCheckbox", _sfc_main$
|
|
105992
|
+
app.component("BmsInputBooleanCheckbox", _sfc_main$16);
|
|
105907
105993
|
app.component("BmsInputCheckboxGroup", BmsInputCheckboxGroup);
|
|
105908
105994
|
app.component("BmsInputCheckboxCaption", BmsInputCheckboxCaption);
|
|
105909
105995
|
app.component("BmsInputCheckboxCaptionGroup", BmsInputCheckboxCaptionGroup);
|
|
105910
105996
|
app.component("BmsInputCode", BmsInputCode);
|
|
105911
|
-
app.component("BmsInputDateTime", _sfc_main
|
|
105997
|
+
app.component("BmsInputDateTime", _sfc_main$10);
|
|
105912
105998
|
app.component("BmsInputFile", BmsInputFile);
|
|
105913
|
-
app.component("BmsInputNumber", _sfc_main$
|
|
105999
|
+
app.component("BmsInputNumber", _sfc_main$_);
|
|
105914
106000
|
app.component("BmsInputRadio", BmsInputRadio);
|
|
105915
106001
|
app.component("BmsInputRadioGroup", BmsInputRadioGroup);
|
|
105916
106002
|
app.component("BmsInputRadioCaption", BmsInputRadioCaption);
|
|
105917
106003
|
app.component("BmsInputRadioCaptionGroup", BmsInputRadioCaptionGroup);
|
|
105918
|
-
app.component("BmsInputText", _sfc_main$
|
|
106004
|
+
app.component("BmsInputText", _sfc_main$11);
|
|
105919
106005
|
app.component("BmsInputToggle", BmsInputToggle);
|
|
105920
106006
|
app.component("BmsMultiSelect", BmsMultiSelect);
|
|
105921
106007
|
app.component("BmsSearch", BmsSearch);
|
|
@@ -105937,11 +106023,11 @@ const createBmsUi = () => ({
|
|
|
105937
106023
|
app.component("BmsBackButton", BmsBackButton);
|
|
105938
106024
|
app.component("BmsBreadcrumb", BmsBreadcrumb);
|
|
105939
106025
|
app.component("BmsFixedMenu", BmsFixedMenu);
|
|
105940
|
-
app.component("BmsLink", _sfc_main$
|
|
106026
|
+
app.component("BmsLink", _sfc_main$1r);
|
|
105941
106027
|
app.component("BmsMenu", BmsMenu);
|
|
105942
106028
|
app.component("BmsMenuNav", BmsMenuNav);
|
|
105943
106029
|
app.component("BmsShortLinkMenu", BmsShortLinkMenu);
|
|
105944
|
-
app.component("BmsTabs",
|
|
106030
|
+
app.component("BmsTabs", _sfc_main$p);
|
|
105945
106031
|
app.component("BmsTenantSwitcher", BmsTenantSwitcher);
|
|
105946
106032
|
app.component("BmsDraggableList", BmsDraggableList);
|
|
105947
106033
|
app.component("BmsEmptyScreen", BmsEmptyScreen);
|
|
@@ -105954,5 +106040,5 @@ const createBmsUi = () => ({
|
|
|
105954
106040
|
}
|
|
105955
106041
|
});
|
|
105956
106042
|
|
|
105957
|
-
export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$
|
|
106043
|
+
export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$1o as BmsButton, BmsCaption, BmsCard, BmsChip, BmsCircularProgress, BmsCocarde, BmsContentPageLayout, BmsDraggableList, BmsEmptyScreen, BmsFilePicker, BmsFixedMenu, BmsFloatingWindow, BmsForm, BmsHeader, BmsHeaderTitle, _sfc_main$1n as BmsIconButton, _sfc_main$16 as BmsInputBooleanCheckbox, BmsInputCheckboxCaption, BmsInputCheckboxCaptionGroup, BmsInputCheckboxGroup, BmsInputCode, _sfc_main$10 as BmsInputDateTime, BmsInputFile, _sfc_main$_ as BmsInputNumber, BmsInputRadio, BmsInputRadioCaption, BmsInputRadioCaptionGroup, BmsInputRadioGroup, _sfc_main$11 as BmsInputText, BmsInputToggle, _sfc_main$1r as BmsLink, BmsLoader, BmsMenu, BmsMenuNav, BmsModal, BmsMultiSelect, BmsNotificationsInstance, BmsOverlay, BmsPagination, BmsProblem, _sfc_main$g as BmsRelativeTime, BmsSearch, BmsSection, BmsSelect, BmsServerAutocomplete, BmsServerTable, BmsShortLinkMenu, BmsSplitWindow, BmsStep, BmsStepper, BmsTable, _sfc_main$p as BmsTabs, BmsTag, BmsTenantSwitcher, BmsTextArea, BmsTooltip, ChipColor, CocardeBorder, ColumnType, ConfirmInstance, InputType, KeycloakAuthAdapterInstance, RuntimeEnv, SelectMode, SortValue, StatusType, TooltipDirection, confirmPlugin, convertStringToCaption, createBmsUi, createRuntimeEnv, defaultSortFunction, enforceActionsColumnHeader, featureFlipperPlugin, fetchRuntimeEnv, field, getCurrentHistory, getCurrentLocation, getFiltersAsQueryParams, getHeaderClasses, getImageFromFile, getNumberFromPathQuery, getStringFromPathQuery, getUserPrefFromLocalStorage, getValueByPath, handleValueInSearchParams, isEmptyStringOrNotDefined, isExternalLink, isFileImage, isProblem, keycloakAuthAdapter, keycloakAuthAdapterInit, notifications, readableDate, reflectFiltersToPath, reflectSearchToPath, relativeDate, relativeDateDefaultFormatFunction, routerHistoryPlugin, sanitizeHtml, sanitizeString, saveValuesToPathQuery, searchString, setUserPrefFromLocalStorage, useClipboard, useConfirm, useFeatureFlipper, useKeycloakAuthAdapter, useNotifications, usePagination, useRouterHistory, useRuntimeEnv, useSearch, useSort, useUserPref, writeLocation };
|
|
105958
106044
|
//# sourceMappingURL=sipa-bms-ui.es.js.map
|