@ouestfrance/sipa-bms-ui 8.22.3 → 8.23.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/button/BmsIconButton.vue.d.ts +1 -1
- package/dist/components/button/BmsToggleIcon.vue.d.ts +24 -0
- package/dist/components/button/UiButton.vue.d.ts +1 -1
- package/dist/components/form/BmsInputText.vue.d.ts +1 -1
- package/dist/components/form/BmsSearch.vue.d.ts +3 -3
- package/dist/components/form/BmsSelect.vue.d.ts +1 -1
- package/dist/components/form/RawSelect.vue.d.ts +1 -1
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +3 -3
- package/dist/components/table/BmsPagination.vue.d.ts +2 -0
- package/dist/components/table/BmsServerTable.vue.d.ts +3 -3
- package/dist/components/table/BmsTable.vue.d.ts +3 -3
- package/dist/components/table/BmsTableFilters.vue.d.ts +5 -3
- package/dist/components/table/UiBmsTable.vue.d.ts +3 -3
- package/dist/components/table/UiFilterButton.vue.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/models/table.model.d.ts +5 -0
- package/dist/plugins/field/FieldComponent.vue.d.ts +1 -1
- package/dist/showroom/pages/table.vue.d.ts +2 -0
- package/dist/sipa-bms-ui.css +151 -87
- package/dist/sipa-bms-ui.es.js +230 -159
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +234 -161
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/button/BmsToggleIcon.stories.js +145 -0
- package/src/components/button/BmsToggleIcon.vue +108 -0
- package/src/components/form/BmsInputNumber.stories.js +12 -2
- package/src/components/form/BmsInputNumber.vue +2 -1
- package/src/components/form/BmsInputText.stories.js +9 -0
- package/src/components/form/BmsInputText.vue +2 -0
- package/src/components/layout/BmsFloatingWindow.vue +12 -1
- package/src/components/layout/BmsSplitWindow.vue +1 -1
- package/src/components/table/BmsPagination.vue +3 -0
- package/src/components/table/BmsServerTable.stories.js +59 -3
- package/src/components/table/BmsServerTable.vue +9 -2
- package/src/components/table/BmsTable.stories.js +65 -1
- package/src/components/table/BmsTable.vue +14 -3
- package/src/components/table/BmsTableFilters.vue +15 -5
- package/src/components/table/UiBmsTable.stories.js +3 -0
- package/src/components/table/UiBmsTable.vue +14 -5
- package/src/components/table/UiFilterButton.vue +6 -1
- package/src/index.ts +3 -0
- package/src/models/table.model.ts +6 -0
- package/src/showroom/pages/floating-window.vue +36 -0
package/dist/sipa-bms-ui.umd.js
CHANGED
|
@@ -56,6 +56,12 @@
|
|
|
56
56
|
SelectMode2["SINGLE"] = "single";
|
|
57
57
|
return SelectMode2;
|
|
58
58
|
})(SelectMode || {});
|
|
59
|
+
var TableMode = /* @__PURE__ */ ((TableMode2) => {
|
|
60
|
+
TableMode2["NORMAL"] = "normal";
|
|
61
|
+
TableMode2["DENSE"] = "dense";
|
|
62
|
+
TableMode2["SMALL"] = "small";
|
|
63
|
+
return TableMode2;
|
|
64
|
+
})(TableMode || {});
|
|
59
65
|
|
|
60
66
|
var TooltipDirection = /* @__PURE__ */ ((TooltipDirection2) => {
|
|
61
67
|
TooltipDirection2["Left"] = "left";
|
|
@@ -330,9 +336,9 @@
|
|
|
330
336
|
return classes;
|
|
331
337
|
};
|
|
332
338
|
|
|
333
|
-
const _hoisted_1
|
|
339
|
+
const _hoisted_1$10 = ["href", "target"];
|
|
334
340
|
const _hoisted_2$G = ["href", "onClick", "target"];
|
|
335
|
-
const _sfc_main$
|
|
341
|
+
const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
336
342
|
__name: "BmsLink",
|
|
337
343
|
props: {
|
|
338
344
|
to: {},
|
|
@@ -360,7 +366,7 @@
|
|
|
360
366
|
target: __props.target
|
|
361
367
|
}, _ctx.$attrs), [
|
|
362
368
|
vue.renderSlot(_ctx.$slots, "default")
|
|
363
|
-
], 16, _hoisted_1
|
|
369
|
+
], 16, _hoisted_1$10)) : (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
364
370
|
key: 1,
|
|
365
371
|
custom: "",
|
|
366
372
|
to: __props.to
|
|
@@ -381,8 +387,8 @@
|
|
|
381
387
|
}
|
|
382
388
|
});
|
|
383
389
|
|
|
384
|
-
const _hoisted_1
|
|
385
|
-
const _sfc_main$
|
|
390
|
+
const _hoisted_1$$ = ["type"];
|
|
391
|
+
const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
|
|
386
392
|
__name: "UiButtonLink",
|
|
387
393
|
props: {
|
|
388
394
|
type: {},
|
|
@@ -407,7 +413,7 @@
|
|
|
407
413
|
type: __props.type
|
|
408
414
|
}, [
|
|
409
415
|
vue.renderSlot(_ctx.$slots, "default")
|
|
410
|
-
], 10, _hoisted_1
|
|
416
|
+
], 10, _hoisted_1$$)) : (vue.openBlock(), vue.createBlock(_sfc_main$1t, {
|
|
411
417
|
key: 1,
|
|
412
418
|
to: __props.to,
|
|
413
419
|
target: __props.target,
|
|
@@ -422,10 +428,10 @@
|
|
|
422
428
|
}
|
|
423
429
|
});
|
|
424
430
|
|
|
425
|
-
const _hoisted_1$
|
|
431
|
+
const _hoisted_1$_ = { class: "start" };
|
|
426
432
|
const _hoisted_2$F = { class: "content" };
|
|
427
433
|
const _hoisted_3$m = { class: "end" };
|
|
428
|
-
const _sfc_main$
|
|
434
|
+
const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
|
|
429
435
|
__name: "UiButton",
|
|
430
436
|
props: {
|
|
431
437
|
type: { default: "button" },
|
|
@@ -438,9 +444,9 @@
|
|
|
438
444
|
setup(__props) {
|
|
439
445
|
const props = __props;
|
|
440
446
|
return (_ctx, _cache) => {
|
|
441
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
447
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1s, vue.normalizeProps(vue.guardReactiveProps(props)), {
|
|
442
448
|
default: vue.withCtx(() => [
|
|
443
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
449
|
+
vue.createElementVNode("span", _hoisted_1$_, [
|
|
444
450
|
vue.renderSlot(_ctx.$slots, "start")
|
|
445
451
|
]),
|
|
446
452
|
vue.createElementVNode("span", _hoisted_2$F, [
|
|
@@ -456,7 +462,7 @@
|
|
|
456
462
|
}
|
|
457
463
|
});
|
|
458
464
|
|
|
459
|
-
const _sfc_main$
|
|
465
|
+
const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
|
|
460
466
|
__name: "BmsButton",
|
|
461
467
|
props: {
|
|
462
468
|
type: { default: "primary" },
|
|
@@ -480,7 +486,7 @@
|
|
|
480
486
|
}
|
|
481
487
|
});
|
|
482
488
|
return (_ctx, _cache) => {
|
|
483
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
489
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1r, {
|
|
484
490
|
mode: uiMode.value,
|
|
485
491
|
color: __props.mode,
|
|
486
492
|
to: __props.to,
|
|
@@ -502,7 +508,7 @@
|
|
|
502
508
|
}
|
|
503
509
|
});
|
|
504
510
|
|
|
505
|
-
const _sfc_main$
|
|
511
|
+
const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
506
512
|
__name: "BmsIconButton",
|
|
507
513
|
props: {
|
|
508
514
|
to: { default: null },
|
|
@@ -522,7 +528,7 @@
|
|
|
522
528
|
direction: __props.tooltipDirection
|
|
523
529
|
}, {
|
|
524
530
|
default: vue.withCtx(() => [
|
|
525
|
-
vue.createVNode(_sfc_main$
|
|
531
|
+
vue.createVNode(_sfc_main$1r, vue.mergeProps(_ctx.$attrs, {
|
|
526
532
|
icon: "",
|
|
527
533
|
to: __props.to,
|
|
528
534
|
target: __props.target,
|
|
@@ -541,6 +547,47 @@
|
|
|
541
547
|
}
|
|
542
548
|
});
|
|
543
549
|
|
|
550
|
+
const _hoisted_1$Z = ["disabled"];
|
|
551
|
+
const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
|
|
552
|
+
__name: "BmsToggleIcon",
|
|
553
|
+
props: {
|
|
554
|
+
modelValue: { type: Boolean, default: false },
|
|
555
|
+
disabled: { type: Boolean, default: false },
|
|
556
|
+
small: { type: Boolean, default: false }
|
|
557
|
+
},
|
|
558
|
+
emits: ["update:modelValue", "click"],
|
|
559
|
+
setup(__props, { emit: __emit }) {
|
|
560
|
+
const props = __props;
|
|
561
|
+
const emit = __emit;
|
|
562
|
+
const handleClick = (event) => {
|
|
563
|
+
if (!props.disabled) {
|
|
564
|
+
const newValue = !props.modelValue;
|
|
565
|
+
emit("update:modelValue", newValue);
|
|
566
|
+
emit("click", event);
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
return (_ctx, _cache) => {
|
|
570
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
571
|
+
class: vue.normalizeClass(["toggle-icon", { active: __props.modelValue, disabled: __props.disabled, small: __props.small }]),
|
|
572
|
+
disabled: __props.disabled,
|
|
573
|
+
onClick: handleClick
|
|
574
|
+
}, [
|
|
575
|
+
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
576
|
+
], 10, _hoisted_1$Z);
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
const _export_sfc = (sfc, props) => {
|
|
582
|
+
const target = sfc.__vccOpts || sfc;
|
|
583
|
+
for (const [key, val] of props) {
|
|
584
|
+
target[key] = val;
|
|
585
|
+
}
|
|
586
|
+
return target;
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
const BmsToggleIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-1070e8e1"]]);
|
|
590
|
+
|
|
544
591
|
/**
|
|
545
592
|
* @license lucide-vue-next v0.562.0 - ISC
|
|
546
593
|
*
|
|
@@ -37943,7 +37990,7 @@
|
|
|
37943
37990
|
], true)
|
|
37944
37991
|
]),
|
|
37945
37992
|
vue.renderSlot(_ctx.$slots, "action", {}, void 0, true),
|
|
37946
|
-
__props.dismissable ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
37993
|
+
__props.dismissable ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
37947
37994
|
key: 0,
|
|
37948
37995
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("dismiss"))
|
|
37949
37996
|
}, {
|
|
@@ -37959,14 +38006,6 @@
|
|
|
37959
38006
|
}
|
|
37960
38007
|
});
|
|
37961
38008
|
|
|
37962
|
-
const _export_sfc = (sfc, props) => {
|
|
37963
|
-
const target = sfc.__vccOpts || sfc;
|
|
37964
|
-
for (const [key, val] of props) {
|
|
37965
|
-
target[key] = val;
|
|
37966
|
-
}
|
|
37967
|
-
return target;
|
|
37968
|
-
};
|
|
37969
|
-
|
|
37970
38009
|
const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-26caccdd"]]);
|
|
37971
38010
|
|
|
37972
38011
|
const _hoisted_1$X = {
|
|
@@ -38057,8 +38096,8 @@
|
|
|
38057
38096
|
viewBox: "0 0 100 100"
|
|
38058
38097
|
};
|
|
38059
38098
|
const _hoisted_3$k = { transform: "rotate(-90, 50, 50)" };
|
|
38060
|
-
const _hoisted_4$
|
|
38061
|
-
const _hoisted_5$
|
|
38099
|
+
const _hoisted_4$b = ["stroke-dashoffset"];
|
|
38100
|
+
const _hoisted_5$7 = { class: "percent" };
|
|
38062
38101
|
const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
38063
38102
|
__name: "BmsCircularProgress",
|
|
38064
38103
|
props: ["progress"],
|
|
@@ -38085,10 +38124,10 @@
|
|
|
38085
38124
|
"stroke-linecap": "round",
|
|
38086
38125
|
"stroke-dashoffset": 283 - __props.progress * 283 / 100,
|
|
38087
38126
|
"stroke-dasharray": "283"
|
|
38088
|
-
}, null, 8, _hoisted_4$
|
|
38127
|
+
}, null, 8, _hoisted_4$b)
|
|
38089
38128
|
])
|
|
38090
38129
|
])) : vue.createCommentVNode("", true),
|
|
38091
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
38130
|
+
vue.createElementVNode("div", _hoisted_5$7, vue.toDisplayString(__props.progress) + "%", 1)
|
|
38092
38131
|
]);
|
|
38093
38132
|
};
|
|
38094
38133
|
}
|
|
@@ -39403,7 +39442,7 @@
|
|
|
39403
39442
|
const _hoisted_1$S = { class: "field__input-label" };
|
|
39404
39443
|
const _hoisted_2$A = { class: "field__input-icon field__input-icon--start" };
|
|
39405
39444
|
const _hoisted_3$j = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
|
|
39406
|
-
const _hoisted_4$
|
|
39445
|
+
const _hoisted_4$a = { class: "field__input-icon field__input-icon--end" };
|
|
39407
39446
|
const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
39408
39447
|
__name: "RawInputText",
|
|
39409
39448
|
props: {
|
|
@@ -39478,7 +39517,7 @@
|
|
|
39478
39517
|
onFocus: _cache[1] || (_cache[1] = ($event) => $emits("focus")),
|
|
39479
39518
|
onClick: _cache[2] || (_cache[2] = ($event) => $emits("click"))
|
|
39480
39519
|
}, null, 40, _hoisted_3$j),
|
|
39481
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
39520
|
+
vue.createElementVNode("span", _hoisted_4$a, [
|
|
39482
39521
|
vue.renderSlot(_ctx.$slots, "icon-end", {}, void 0, true)
|
|
39483
39522
|
])
|
|
39484
39523
|
], 2);
|
|
@@ -40029,7 +40068,7 @@
|
|
|
40029
40068
|
const _hoisted_1$P = { class: "file-upload" };
|
|
40030
40069
|
const _hoisted_2$x = { class: "file-upload__label" };
|
|
40031
40070
|
const _hoisted_3$i = { key: 1 };
|
|
40032
|
-
const _hoisted_4$
|
|
40071
|
+
const _hoisted_4$9 = { class: "file-upload__file-name" };
|
|
40033
40072
|
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
40034
40073
|
__name: "BmsFilePicker",
|
|
40035
40074
|
props: {
|
|
@@ -40130,8 +40169,8 @@
|
|
|
40130
40169
|
key: file.name,
|
|
40131
40170
|
class: "file-upload__file"
|
|
40132
40171
|
}, [
|
|
40133
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
40134
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
40172
|
+
vue.createElementVNode("span", _hoisted_4$9, vue.toDisplayString(file.name), 1),
|
|
40173
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
40135
40174
|
onClick: ($event) => onDeleteFile(file)
|
|
40136
40175
|
}, {
|
|
40137
40176
|
default: vue.withCtx(() => [
|
|
@@ -69154,7 +69193,8 @@
|
|
|
69154
69193
|
const checkLimit = () => {
|
|
69155
69194
|
internalErrors.value = [];
|
|
69156
69195
|
internalCaptions.value = [];
|
|
69157
|
-
|
|
69196
|
+
const hasValue = props.modelValue !== null && props.modelValue !== void 0;
|
|
69197
|
+
if (hasValue && props.inputType === InputType.TEXT && typeof props.modelValue === "string") {
|
|
69158
69198
|
if (props.minlength !== void 0 && props.modelValue.length < props.minlength) {
|
|
69159
69199
|
internalErrors.value = [
|
|
69160
69200
|
"Longueur inférieur au minimum autorisé (min:" + props.minlength + ")"
|
|
@@ -69434,7 +69474,7 @@
|
|
|
69434
69474
|
src: getImageSrc(file),
|
|
69435
69475
|
class: "file-upload__file-img"
|
|
69436
69476
|
}, null, 8, _hoisted_2$v)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$h, vue.toDisplayString(file.name), 1)),
|
|
69437
|
-
vue.createVNode(_sfc_main$
|
|
69477
|
+
vue.createVNode(_sfc_main$1p, {
|
|
69438
69478
|
mode: vue.unref(StatusType).Danger,
|
|
69439
69479
|
onClick: vue.withModifiers(($event) => onDeleteFile(file), ["prevent"]),
|
|
69440
69480
|
class: "close-button"
|
|
@@ -69492,7 +69532,8 @@
|
|
|
69492
69532
|
});
|
|
69493
69533
|
const checkLimit = () => {
|
|
69494
69534
|
internalErrors.value = [];
|
|
69495
|
-
|
|
69535
|
+
const hasValue = props.modelValue !== null && props.modelValue !== void 0;
|
|
69536
|
+
if (hasValue && props.min !== void 0 && props.modelValue < props.min) {
|
|
69496
69537
|
internalErrors.value = [
|
|
69497
69538
|
"Valeur inférieure au minimum autorisé (min : " + props.min + ")"
|
|
69498
69539
|
];
|
|
@@ -69900,7 +69941,7 @@
|
|
|
69900
69941
|
}, [
|
|
69901
69942
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
69902
69943
|
vue.createElementVNode("span", _hoisted_1$I, [
|
|
69903
|
-
__props.canBeDismissed ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
69944
|
+
__props.canBeDismissed ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$1p), {
|
|
69904
69945
|
key: 0,
|
|
69905
69946
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emits("dismiss"), ["stop"]))
|
|
69906
69947
|
}, {
|
|
@@ -87677,7 +87718,7 @@
|
|
|
87677
87718
|
class: vue.normalizeClass(["card__body", { animated: __props.animated, hasAction: !!_ctx.$slots.action }])
|
|
87678
87719
|
}, [
|
|
87679
87720
|
vue.createElementVNode("div", _hoisted_1$D, [
|
|
87680
|
-
__props.to ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
87721
|
+
__props.to ? (vue.openBlock(), vue.createBlock(_sfc_main$1t, {
|
|
87681
87722
|
key: 0,
|
|
87682
87723
|
class: "card__body__content__link",
|
|
87683
87724
|
to: __props.to
|
|
@@ -87765,10 +87806,20 @@
|
|
|
87765
87806
|
position.value = computeInitialPosition();
|
|
87766
87807
|
}
|
|
87767
87808
|
}
|
|
87809
|
+
const resizeCallack = useDebounceFn(() => {
|
|
87810
|
+
expandedStyle.value = computeExpandedStyle();
|
|
87811
|
+
}, 100);
|
|
87768
87812
|
vue.onMounted(() => {
|
|
87769
87813
|
if (open.value) {
|
|
87770
87814
|
initPosition();
|
|
87771
87815
|
}
|
|
87816
|
+
if (props.expandTarget) {
|
|
87817
|
+
const targetEl = document.querySelector(props.expandTarget);
|
|
87818
|
+
if (targetEl) {
|
|
87819
|
+
const resizeObserver = new ResizeObserver(resizeCallack);
|
|
87820
|
+
resizeObserver.observe(targetEl);
|
|
87821
|
+
}
|
|
87822
|
+
}
|
|
87772
87823
|
});
|
|
87773
87824
|
vue.watch(open, (newVal) => {
|
|
87774
87825
|
if (newVal) {
|
|
@@ -87899,7 +87950,7 @@
|
|
|
87899
87950
|
}, [
|
|
87900
87951
|
vue.createElementVNode("h3", _hoisted_1$C, vue.toDisplayString(__props.title), 1),
|
|
87901
87952
|
vue.createElementVNode("div", _hoisted_2$o, [
|
|
87902
|
-
__props.expandable ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
87953
|
+
__props.expandable ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
87903
87954
|
key: 0,
|
|
87904
87955
|
class: vue.normalizeClass(["floating-window__expand-btn", { "floating-window__expand-btn--expanded": isExpanded.value }]),
|
|
87905
87956
|
"tooltip-text": isExpanded.value ? "Réduire la fenêtre" : "Maximiser la fenêtre",
|
|
@@ -87910,7 +87961,7 @@
|
|
|
87910
87961
|
]),
|
|
87911
87962
|
_: 1
|
|
87912
87963
|
}, 8, ["class", "tooltip-text"])) : vue.createCommentVNode("", true),
|
|
87913
|
-
vue.createVNode(_sfc_main$
|
|
87964
|
+
vue.createVNode(_sfc_main$1p, {
|
|
87914
87965
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => open.value = false, ["prevent", "stop"]))
|
|
87915
87966
|
}, {
|
|
87916
87967
|
default: vue.withCtx(() => [
|
|
@@ -87931,7 +87982,7 @@
|
|
|
87931
87982
|
}
|
|
87932
87983
|
});
|
|
87933
87984
|
|
|
87934
|
-
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
87985
|
+
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-ad6f9b71"]]);
|
|
87935
87986
|
|
|
87936
87987
|
const _hoisted_1$B = { class: "form-section" };
|
|
87937
87988
|
const _hoisted_2$n = {
|
|
@@ -90906,7 +90957,7 @@
|
|
|
90906
90957
|
key: 0,
|
|
90907
90958
|
class: vue.normalizeClass(["bms-short-link-menu", { "bms-short-link-menu__outline": __props.outline }])
|
|
90908
90959
|
}, [
|
|
90909
|
-
!!__props.helpLink ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
90960
|
+
!!__props.helpLink ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
90910
90961
|
key: 0,
|
|
90911
90962
|
"tooltip-text": "Voir la documentation",
|
|
90912
90963
|
to: __props.helpLink,
|
|
@@ -90919,7 +90970,7 @@
|
|
|
90919
90970
|
]),
|
|
90920
90971
|
_: 3
|
|
90921
90972
|
}, 8, ["to"])) : vue.createCommentVNode("", true),
|
|
90922
|
-
!!__props.activityLink ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
90973
|
+
!!__props.activityLink ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
90923
90974
|
key: 1,
|
|
90924
90975
|
"tooltip-text": "Voir l'activité",
|
|
90925
90976
|
to: __props.activityLink,
|
|
@@ -90942,8 +90993,8 @@
|
|
|
90942
90993
|
const _hoisted_1$y = { class: "bms-header" };
|
|
90943
90994
|
const _hoisted_2$m = { class: "bms-header__title" };
|
|
90944
90995
|
const _hoisted_3$d = { class: "bms-header__title__label" };
|
|
90945
|
-
const _hoisted_4$
|
|
90946
|
-
const _hoisted_5$
|
|
90996
|
+
const _hoisted_4$8 = { key: 0 };
|
|
90997
|
+
const _hoisted_5$6 = {
|
|
90947
90998
|
key: 1,
|
|
90948
90999
|
class: "bms-header__title__after-title"
|
|
90949
91000
|
};
|
|
@@ -90973,7 +91024,7 @@
|
|
|
90973
91024
|
vue.createElementVNode("span", _hoisted_2$m, [
|
|
90974
91025
|
vue.renderSlot(_ctx.$slots, "logo", {}, void 0, true),
|
|
90975
91026
|
vue.createElementVNode("span", _hoisted_3$d, [
|
|
90976
|
-
__props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
91027
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$8, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true),
|
|
90977
91028
|
vue.createElementVNode("h1", null, vue.toDisplayString(__props.title), 1)
|
|
90978
91029
|
]),
|
|
90979
91030
|
showHelperLink.value ? (vue.openBlock(), vue.createBlock(BmsShortLinkMenu, {
|
|
@@ -90982,7 +91033,7 @@
|
|
|
90982
91033
|
"help-link": __props.documentationUrl ?? null,
|
|
90983
91034
|
"activity-link": __props.activityUrl ?? null
|
|
90984
91035
|
}, null, 8, ["help-link", "activity-link"])) : vue.createCommentVNode("", true),
|
|
90985
|
-
_ctx.$slots.afterTitle ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
91036
|
+
_ctx.$slots.afterTitle ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, [
|
|
90986
91037
|
vue.renderSlot(_ctx.$slots, "afterTitle", {}, void 0, true)
|
|
90987
91038
|
])) : vue.createCommentVNode("", true),
|
|
90988
91039
|
_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$5, [
|
|
@@ -91022,8 +91073,8 @@
|
|
|
91022
91073
|
const _hoisted_1$x = ["data-testid"];
|
|
91023
91074
|
const _hoisted_2$l = { class: "ui-modal__header" };
|
|
91024
91075
|
const _hoisted_3$c = { class: "ui-modal__header-inner" };
|
|
91025
|
-
const _hoisted_4$
|
|
91026
|
-
const _hoisted_5$
|
|
91076
|
+
const _hoisted_4$7 = { class: "ui-modal__title" };
|
|
91077
|
+
const _hoisted_5$5 = { class: "ui-modal__content" };
|
|
91027
91078
|
const _hoisted_6$4 = { class: "ui-modal__footer" };
|
|
91028
91079
|
const _hoisted_7$4 = { class: "ui-modal__buttons" };
|
|
91029
91080
|
const _hoisted_8$3 = {
|
|
@@ -91157,7 +91208,7 @@
|
|
|
91157
91208
|
vue.createElementVNode("header", _hoisted_2$l, [
|
|
91158
91209
|
vue.createElementVNode("div", _hoisted_3$c, [
|
|
91159
91210
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
91160
|
-
vue.createElementVNode("h1", _hoisted_4$
|
|
91211
|
+
vue.createElementVNode("h1", _hoisted_4$7, [
|
|
91161
91212
|
props.type !== vue.unref(StatusType).Default ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(titleComponent.value), {
|
|
91162
91213
|
key: 0,
|
|
91163
91214
|
class: "title-indicator",
|
|
@@ -91171,7 +91222,7 @@
|
|
|
91171
91222
|
])
|
|
91172
91223
|
], true)
|
|
91173
91224
|
]),
|
|
91174
|
-
vue.createVNode(_sfc_main$
|
|
91225
|
+
vue.createVNode(_sfc_main$1p, {
|
|
91175
91226
|
disabled: !isModalClosable.value,
|
|
91176
91227
|
onClick: dismissModal,
|
|
91177
91228
|
"data-testid": "close-modal"
|
|
@@ -91182,7 +91233,7 @@
|
|
|
91182
91233
|
_: 1
|
|
91183
91234
|
}, 8, ["disabled"])
|
|
91184
91235
|
]),
|
|
91185
|
-
vue.createElementVNode("main", _hoisted_5$
|
|
91236
|
+
vue.createElementVNode("main", _hoisted_5$5, [
|
|
91186
91237
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
91187
91238
|
modalData: props.modelValue
|
|
91188
91239
|
}, void 0, true)
|
|
@@ -91197,7 +91248,7 @@
|
|
|
91197
91248
|
modalData: props.modelValue
|
|
91198
91249
|
}, () => [
|
|
91199
91250
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(buttons.value, (button) => {
|
|
91200
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
91251
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1q, {
|
|
91201
91252
|
key: button.label + button.role,
|
|
91202
91253
|
type: button.role === "cancel" ? "secondary" : "primary",
|
|
91203
91254
|
disabled: !isModalClosable.value || button.disabled,
|
|
@@ -91453,7 +91504,7 @@
|
|
|
91453
91504
|
}
|
|
91454
91505
|
});
|
|
91455
91506
|
|
|
91456
|
-
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
91507
|
+
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-b6e704f4"]]);
|
|
91457
91508
|
|
|
91458
91509
|
const _hoisted_1$u = { class: "step" };
|
|
91459
91510
|
const _hoisted_2$j = { class: "step-buttons" };
|
|
@@ -91473,7 +91524,7 @@
|
|
|
91473
91524
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
91474
91525
|
vue.renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
91475
91526
|
vue.createElementVNode("div", _hoisted_2$j, [
|
|
91476
|
-
__props.previousLabel ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
91527
|
+
__props.previousLabel ? (vue.openBlock(), vue.createBlock(_sfc_main$1q, {
|
|
91477
91528
|
key: 0,
|
|
91478
91529
|
"data-test": "previous-button",
|
|
91479
91530
|
name: "previous",
|
|
@@ -91485,7 +91536,7 @@
|
|
|
91485
91536
|
]),
|
|
91486
91537
|
_: 1
|
|
91487
91538
|
})) : vue.createCommentVNode("", true),
|
|
91488
|
-
__props.nextLabel ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
91539
|
+
__props.nextLabel ? (vue.openBlock(), vue.createBlock(_sfc_main$1q, {
|
|
91489
91540
|
key: 1,
|
|
91490
91541
|
"data-test": "next-button",
|
|
91491
91542
|
class: "",
|
|
@@ -91510,8 +91561,8 @@
|
|
|
91510
91561
|
const _hoisted_1$t = { class: "stepper" };
|
|
91511
91562
|
const _hoisted_2$i = { class: "stepper-header" };
|
|
91512
91563
|
const _hoisted_3$a = ["onClick"];
|
|
91513
|
-
const _hoisted_4$
|
|
91514
|
-
const _hoisted_5$
|
|
91564
|
+
const _hoisted_4$6 = { key: 1 };
|
|
91565
|
+
const _hoisted_5$4 = ["onClick"];
|
|
91515
91566
|
const _hoisted_6$3 = {
|
|
91516
91567
|
key: 0,
|
|
91517
91568
|
class: "stepper-header--separator"
|
|
@@ -91574,11 +91625,11 @@
|
|
|
91574
91625
|
class: vue.normalizeClass(["stepper-header--indicator", stepIndicator(step, index)]),
|
|
91575
91626
|
onClick: ($event) => onStepClick(index)
|
|
91576
91627
|
}, [
|
|
91577
|
-
step.stepComplete ? (vue.openBlock(), vue.createBlock(vue.unref(Check), { key: 0 })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
91628
|
+
step.stepComplete ? (vue.openBlock(), vue.createBlock(vue.unref(Check), { key: 0 })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$6, vue.toDisplayString(index + 1), 1))
|
|
91578
91629
|
], 10, _hoisted_3$a),
|
|
91579
91630
|
vue.createElementVNode("div", {
|
|
91580
91631
|
onClick: ($event) => onStepClick(index)
|
|
91581
|
-
}, vue.toDisplayString(step.stepLabel), 9, _hoisted_5$
|
|
91632
|
+
}, vue.toDisplayString(step.stepLabel), 9, _hoisted_5$4),
|
|
91582
91633
|
index < steps.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("hr", _hoisted_6$3)) : vue.createCommentVNode("", true)
|
|
91583
91634
|
], 2);
|
|
91584
91635
|
}), 128))
|
|
@@ -91780,7 +91831,7 @@
|
|
|
91780
91831
|
return classes2;
|
|
91781
91832
|
});
|
|
91782
91833
|
return (_ctx, _cache) => {
|
|
91783
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
91834
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1t, {
|
|
91784
91835
|
to: __props.item.link,
|
|
91785
91836
|
target: __props.target,
|
|
91786
91837
|
classes: classes.value
|
|
@@ -91809,8 +91860,8 @@
|
|
|
91809
91860
|
};
|
|
91810
91861
|
const _hoisted_2$g = { class: "parent-label" };
|
|
91811
91862
|
const _hoisted_3$9 = ["onClick"];
|
|
91812
|
-
const _hoisted_4$
|
|
91813
|
-
const _hoisted_5$
|
|
91863
|
+
const _hoisted_4$5 = { class: "parent-label" };
|
|
91864
|
+
const _hoisted_5$3 = { class: "additional" };
|
|
91814
91865
|
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
91815
91866
|
__name: "BmsMenuNav",
|
|
91816
91867
|
props: {
|
|
@@ -91874,7 +91925,7 @@
|
|
|
91874
91925
|
key: item.label
|
|
91875
91926
|
}, [
|
|
91876
91927
|
hasSubItems(item) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
91877
|
-
item.link ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
91928
|
+
item.link ? (vue.openBlock(), vue.createBlock(_sfc_main$1t, {
|
|
91878
91929
|
key: 0,
|
|
91879
91930
|
to: item.link,
|
|
91880
91931
|
class: vue.normalizeClass(`parent-item ${isItemActive(item) ? "active" : ""}`)
|
|
@@ -91892,7 +91943,7 @@
|
|
|
91892
91943
|
class: "parent-item",
|
|
91893
91944
|
onClick: ($event) => toggleParentItem(item)
|
|
91894
91945
|
}, [
|
|
91895
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
91946
|
+
vue.createElementVNode("span", _hoisted_4$5, vue.toDisplayString(item.label), 1),
|
|
91896
91947
|
!item.open ? (vue.openBlock(), vue.createBlock(vue.unref(ChevronDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(ChevronUp), { key: 1 }))
|
|
91897
91948
|
], 8, _hoisted_3$9)),
|
|
91898
91949
|
vue.createVNode(vue.Transition, { name: "open" }, {
|
|
@@ -91934,7 +91985,7 @@
|
|
|
91934
91985
|
]);
|
|
91935
91986
|
}), 128))
|
|
91936
91987
|
]),
|
|
91937
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
91988
|
+
vue.createElementVNode("div", _hoisted_5$3, [
|
|
91938
91989
|
vue.renderSlot(_ctx.$slots, "additional", { closeMenu }, void 0, true)
|
|
91939
91990
|
])
|
|
91940
91991
|
]);
|
|
@@ -92002,7 +92053,7 @@
|
|
|
92002
92053
|
const toggleMenu = (newMenuState = true) => isMenuOpen.value = newMenuState;
|
|
92003
92054
|
return (_ctx, _cache) => {
|
|
92004
92055
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
92005
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
92056
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
92006
92057
|
onClick: _cache[0] || (_cache[0] = ($event) => toggleMenu(!isMenuOpen.value)),
|
|
92007
92058
|
"data-testid": "openMenu",
|
|
92008
92059
|
"aria-label": "Ouvrir le menu"
|
|
@@ -92026,7 +92077,7 @@
|
|
|
92026
92077
|
ref: menu,
|
|
92027
92078
|
class: vue.normalizeClass(["menu__container", { "is-show": isMenuOpen.value }])
|
|
92028
92079
|
}, [
|
|
92029
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
92080
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
92030
92081
|
class: "menu__close",
|
|
92031
92082
|
onClick: _cache[1] || (_cache[1] = ($event) => toggleMenu(false)),
|
|
92032
92083
|
"data-testid": "closeMenu",
|
|
@@ -92360,7 +92411,7 @@
|
|
|
92360
92411
|
vue.createTextVNode(" " + vue.toDisplayString(__props.tenant.label), 1),
|
|
92361
92412
|
vue.createElementVNode("em", null, "- " + vue.toDisplayString(__props.tenant.information), 1)
|
|
92362
92413
|
], 8, _hoisted_1$k),
|
|
92363
|
-
__props.tenant.isFavorite ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
92414
|
+
__props.tenant.isFavorite ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
92364
92415
|
key: 0,
|
|
92365
92416
|
class: "remove-tenant-button",
|
|
92366
92417
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emits("removeFavorite"), ["stop"]))
|
|
@@ -92556,7 +92607,7 @@
|
|
|
92556
92607
|
__props.currentTenant && __props.tenants.length === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
92557
92608
|
vue.createVNode(_sfc_main$n, { tenant: __props.currentTenant }, null, 8, ["tenant"]),
|
|
92558
92609
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.currentTenant.label), 1)
|
|
92559
|
-
])) : __props.tenants.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
92610
|
+
])) : __props.tenants.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$1q), {
|
|
92560
92611
|
key: 1,
|
|
92561
92612
|
type: "tertiary",
|
|
92562
92613
|
onClick: _cache[0] || (_cache[0] = ($event) => showTenantSwitcher.value = !showTenantSwitcher.value)
|
|
@@ -92699,7 +92750,7 @@
|
|
|
92699
92750
|
onMouseup: _cache[1] || (_cache[1] = () => gripped.value = false)
|
|
92700
92751
|
}),
|
|
92701
92752
|
vue.renderSlot(_ctx.$slots, "default", { row: item }, void 0, true),
|
|
92702
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
92753
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
92703
92754
|
mode: vue.unref(StatusType).Danger,
|
|
92704
92755
|
onClick: ($event) => onRemove(item)
|
|
92705
92756
|
}, {
|
|
@@ -92738,7 +92789,7 @@
|
|
|
92738
92789
|
const _hoisted_1$f = { class: "empty-screen" };
|
|
92739
92790
|
const _hoisted_2$c = { class: "empty-screen__img" };
|
|
92740
92791
|
const _hoisted_3$7 = { class: "empty-screen__title" };
|
|
92741
|
-
const _hoisted_4$
|
|
92792
|
+
const _hoisted_4$4 = {
|
|
92742
92793
|
key: 0,
|
|
92743
92794
|
class: "empty-screen__description"
|
|
92744
92795
|
};
|
|
@@ -92756,7 +92807,7 @@
|
|
|
92756
92807
|
vue.createVNode(vue.unref(Empty))
|
|
92757
92808
|
]),
|
|
92758
92809
|
vue.createElementVNode("h1", _hoisted_3$7, vue.toDisplayString(props.title), 1),
|
|
92759
|
-
props.description ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$
|
|
92810
|
+
props.description ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$4, vue.toDisplayString(props.description), 1)) : vue.createCommentVNode("", true)
|
|
92760
92811
|
]);
|
|
92761
92812
|
};
|
|
92762
92813
|
}
|
|
@@ -92775,7 +92826,8 @@
|
|
|
92775
92826
|
total: {},
|
|
92776
92827
|
currentPage: {},
|
|
92777
92828
|
pages: {},
|
|
92778
|
-
selectLabel: { default: "Éléments par page :" }
|
|
92829
|
+
selectLabel: { default: "Éléments par page :" },
|
|
92830
|
+
small: { type: Boolean, default: false }
|
|
92779
92831
|
},
|
|
92780
92832
|
emits: ["update:currentSize", "next", "prev", "go"],
|
|
92781
92833
|
setup(__props, { emit: __emit }) {
|
|
@@ -92829,8 +92881,9 @@
|
|
|
92829
92881
|
vue.createVNode(vue.unref(BmsSelect), {
|
|
92830
92882
|
modelValue: size.value,
|
|
92831
92883
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => size.value = $event),
|
|
92884
|
+
small: __props.small,
|
|
92832
92885
|
options: __props.sizes.map((size2) => ({ label: size2.toString(), value: size2 }))
|
|
92833
|
-
}, null, 8, ["modelValue", "options"])
|
|
92886
|
+
}, null, 8, ["modelValue", "small", "options"])
|
|
92834
92887
|
]),
|
|
92835
92888
|
vue.createElementVNode("div", _hoisted_2$b, [
|
|
92836
92889
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
@@ -92847,7 +92900,7 @@
|
|
|
92847
92900
|
], true)
|
|
92848
92901
|
]),
|
|
92849
92902
|
vue.createElementVNode("div", _hoisted_3$6, [
|
|
92850
|
-
vue.createVNode(_sfc_main$
|
|
92903
|
+
vue.createVNode(_sfc_main$1p, {
|
|
92851
92904
|
color: "neutral",
|
|
92852
92905
|
onClick: goToFirst,
|
|
92853
92906
|
disabled: __props.currentPage === 0
|
|
@@ -92857,7 +92910,7 @@
|
|
|
92857
92910
|
]),
|
|
92858
92911
|
_: 1
|
|
92859
92912
|
}, 8, ["disabled"]),
|
|
92860
|
-
vue.createVNode(_sfc_main$
|
|
92913
|
+
vue.createVNode(_sfc_main$1p, {
|
|
92861
92914
|
onClick: goToPrevious,
|
|
92862
92915
|
disabled: __props.currentPage === 0
|
|
92863
92916
|
}, {
|
|
@@ -92866,7 +92919,7 @@
|
|
|
92866
92919
|
]),
|
|
92867
92920
|
_: 1
|
|
92868
92921
|
}, 8, ["disabled"]),
|
|
92869
|
-
vue.createVNode(_sfc_main$
|
|
92922
|
+
vue.createVNode(_sfc_main$1p, {
|
|
92870
92923
|
onClick: goToNext,
|
|
92871
92924
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0
|
|
92872
92925
|
}, {
|
|
@@ -92875,7 +92928,7 @@
|
|
|
92875
92928
|
]),
|
|
92876
92929
|
_: 1
|
|
92877
92930
|
}, 8, ["disabled"]),
|
|
92878
|
-
vue.createVNode(_sfc_main$
|
|
92931
|
+
vue.createVNode(_sfc_main$1p, {
|
|
92879
92932
|
onClick: goToLast,
|
|
92880
92933
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0 || __props.total === Infinity
|
|
92881
92934
|
}, {
|
|
@@ -92890,7 +92943,7 @@
|
|
|
92890
92943
|
}
|
|
92891
92944
|
});
|
|
92892
92945
|
|
|
92893
|
-
const BmsPagination = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
92946
|
+
const BmsPagination = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-86561b3b"]]);
|
|
92894
92947
|
|
|
92895
92948
|
/**
|
|
92896
92949
|
* Removes all key-value entries from the list cache.
|
|
@@ -96713,41 +96766,40 @@
|
|
|
96713
96766
|
const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2ab3888f"]]);
|
|
96714
96767
|
|
|
96715
96768
|
const _hoisted_1$b = { class: "bms-table" };
|
|
96716
|
-
const _hoisted_2$9 = { class: "bms-
|
|
96717
|
-
const _hoisted_3$4 = { class: "bms-
|
|
96718
|
-
const _hoisted_4$
|
|
96719
|
-
const _hoisted_5$
|
|
96720
|
-
const _hoisted_6$2 = {
|
|
96769
|
+
const _hoisted_2$9 = { class: "bms-table__actions__saved-filters" };
|
|
96770
|
+
const _hoisted_3$4 = { class: "bms-table__actions__custom" };
|
|
96771
|
+
const _hoisted_4$3 = { class: "bms-table__actions__search" };
|
|
96772
|
+
const _hoisted_5$2 = {
|
|
96721
96773
|
key: 0,
|
|
96722
96774
|
class: "bms-table__filters"
|
|
96723
96775
|
};
|
|
96776
|
+
const _hoisted_6$2 = { key: 1 };
|
|
96724
96777
|
const _hoisted_7$2 = { key: 1 };
|
|
96725
|
-
const _hoisted_8$2 = {
|
|
96726
|
-
const _hoisted_9$1 = {
|
|
96727
|
-
const _hoisted_10$1 = {
|
|
96778
|
+
const _hoisted_8$2 = { class: "bms-table__table-wrapper" };
|
|
96779
|
+
const _hoisted_9$1 = {
|
|
96728
96780
|
key: 0,
|
|
96729
96781
|
class: "bms-table__loader"
|
|
96730
96782
|
};
|
|
96731
|
-
const
|
|
96783
|
+
const _hoisted_10$1 = {
|
|
96732
96784
|
ref: "thead",
|
|
96733
96785
|
class: "bms-table__header"
|
|
96734
96786
|
};
|
|
96735
|
-
const
|
|
96736
|
-
const
|
|
96737
|
-
const
|
|
96738
|
-
const
|
|
96739
|
-
const
|
|
96740
|
-
const
|
|
96787
|
+
const _hoisted_11$1 = { class: "bms-table__headers bms-table__row" };
|
|
96788
|
+
const _hoisted_12$1 = { key: 0 };
|
|
96789
|
+
const _hoisted_13$1 = ["onClick"];
|
|
96790
|
+
const _hoisted_14$1 = { class: "header-content" };
|
|
96791
|
+
const _hoisted_15$1 = { class: "bms-table__body" };
|
|
96792
|
+
const _hoisted_16$1 = {
|
|
96741
96793
|
key: 1,
|
|
96742
96794
|
class: "bms-table__row"
|
|
96743
96795
|
};
|
|
96744
|
-
const
|
|
96796
|
+
const _hoisted_17 = ["colspan"];
|
|
96745
96797
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
96746
96798
|
__name: "UiBmsTable",
|
|
96747
96799
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
96748
96800
|
headers: {},
|
|
96749
96801
|
items: {},
|
|
96750
|
-
mode: { default:
|
|
96802
|
+
mode: { default: TableMode.NORMAL },
|
|
96751
96803
|
loading: { type: Boolean },
|
|
96752
96804
|
hasFilters: { type: Boolean, default: false },
|
|
96753
96805
|
sort: { default: () => ({
|
|
@@ -96884,18 +96936,20 @@
|
|
|
96884
96936
|
});
|
|
96885
96937
|
return (_ctx, _cache) => {
|
|
96886
96938
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
96887
|
-
vue.createElementVNode("div",
|
|
96888
|
-
vue.
|
|
96889
|
-
|
|
96939
|
+
vue.createElementVNode("div", {
|
|
96940
|
+
class: vue.normalizeClass(["bms-table__actions", { "bms-table__actions--small": __props.mode === vue.unref(TableMode).SMALL }])
|
|
96941
|
+
}, [
|
|
96942
|
+
vue.createElementVNode("div", _hoisted_2$9, [
|
|
96943
|
+
vue.createElementVNode("div", _hoisted_3$4, [
|
|
96890
96944
|
vue.renderSlot(_ctx.$slots, "custom-actions", {}, void 0, true)
|
|
96891
96945
|
]),
|
|
96892
96946
|
vue.renderSlot(_ctx.$slots, "saved-filters", {}, void 0, true)
|
|
96893
96947
|
]),
|
|
96894
|
-
vue.createElementVNode("div",
|
|
96948
|
+
vue.createElementVNode("div", _hoisted_4$3, [
|
|
96895
96949
|
vue.renderSlot(_ctx.$slots, "search", {}, void 0, true)
|
|
96896
96950
|
])
|
|
96897
|
-
]),
|
|
96898
|
-
__props.hasFilters ? (vue.openBlock(), vue.createElementBlock("div",
|
|
96951
|
+
], 2),
|
|
96952
|
+
__props.hasFilters ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
|
|
96899
96953
|
vue.renderSlot(_ctx.$slots, "filters", {}, void 0, true)
|
|
96900
96954
|
])) : vue.createCommentVNode("", true),
|
|
96901
96955
|
__props.selectMode === vue.unref(SelectMode).ALL || selectedItems.value.length > 0 && __props.selectMode !== vue.unref(SelectMode).SINGLE ? (vue.openBlock(), vue.createBlock(BmsAlert, {
|
|
@@ -96907,11 +96961,11 @@
|
|
|
96907
96961
|
message: vue.withCtx(() => [
|
|
96908
96962
|
__props.selectMode === vue.unref(SelectMode).ALL || selectedItems.value.length === __props.totalSize ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
96909
96963
|
vue.createTextVNode(" Vous avez sélectionné la totalité des " + vue.toDisplayString(__props.totalSize) + " éléments. ", 1)
|
|
96910
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("span",
|
|
96964
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$2, [
|
|
96911
96965
|
selectedItems.value.length === 1 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
96912
96966
|
_cache[1] || (_cache[1] = vue.createElementVNode("strong", null, "1", -1)),
|
|
96913
96967
|
_cache[2] || (_cache[2] = vue.createTextVNode(" élément du tableau est sélectionné. ", -1))
|
|
96914
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("strong",
|
|
96968
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("strong", _hoisted_7$2, vue.toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
|
|
96915
96969
|
__props.totalSize < __props.maxSelectedSize ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
96916
96970
|
key: 2,
|
|
96917
96971
|
class: "select-mode-all",
|
|
@@ -96925,10 +96979,10 @@
|
|
|
96925
96979
|
_: 3
|
|
96926
96980
|
}, 8, ["type"])) : vue.createCommentVNode("", true),
|
|
96927
96981
|
_cache[4] || (_cache[4] = vue.createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
|
|
96928
|
-
vue.createElementVNode("div",
|
|
96982
|
+
vue.createElementVNode("div", _hoisted_8$2, [
|
|
96929
96983
|
vue.createVNode(vue.Transition, { name: "fade" }, {
|
|
96930
96984
|
default: vue.withCtx(() => [
|
|
96931
|
-
__props.loading ? (vue.openBlock(), vue.createElementBlock("div",
|
|
96985
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
|
|
96932
96986
|
vue.createVNode(BmsLoader)
|
|
96933
96987
|
])) : vue.createCommentVNode("", true)
|
|
96934
96988
|
]),
|
|
@@ -96946,9 +97000,9 @@
|
|
|
96946
97000
|
ref_key: "mainComponent",
|
|
96947
97001
|
ref: mainComponent
|
|
96948
97002
|
}, [
|
|
96949
|
-
vue.createElementVNode("thead",
|
|
96950
|
-
vue.createElementVNode("tr",
|
|
96951
|
-
__props.selectable ? (vue.openBlock(), vue.createElementBlock("th",
|
|
97003
|
+
vue.createElementVNode("thead", _hoisted_10$1, [
|
|
97004
|
+
vue.createElementVNode("tr", _hoisted_11$1, [
|
|
97005
|
+
__props.selectable ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_12$1, [
|
|
96952
97006
|
__props.selectMode !== vue.unref(SelectMode).SINGLE ? (vue.openBlock(), vue.createBlock(UiBmsInputCheckbox, {
|
|
96953
97007
|
key: 0,
|
|
96954
97008
|
name: "select-all",
|
|
@@ -96969,7 +97023,7 @@
|
|
|
96969
97023
|
key: header.label,
|
|
96970
97024
|
onClick: ($event) => emits("clickHeader", header)
|
|
96971
97025
|
}, [
|
|
96972
|
-
vue.createElementVNode("span",
|
|
97026
|
+
vue.createElementVNode("span", _hoisted_14$1, [
|
|
96973
97027
|
vue.createTextVNode(vue.toDisplayString(header.label) + " ", 1),
|
|
96974
97028
|
header.sortable ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getSortComponent(header)), {
|
|
96975
97029
|
key: 0,
|
|
@@ -96977,11 +97031,11 @@
|
|
|
96977
97031
|
class: "header-content-sort"
|
|
96978
97032
|
})) : vue.createCommentVNode("", true)
|
|
96979
97033
|
])
|
|
96980
|
-
], 14,
|
|
97034
|
+
], 14, _hoisted_13$1);
|
|
96981
97035
|
}), 128))
|
|
96982
97036
|
])
|
|
96983
97037
|
], 512),
|
|
96984
|
-
vue.createElementVNode("tbody",
|
|
97038
|
+
vue.createElementVNode("tbody", _hoisted_15$1, [
|
|
96985
97039
|
__props.items.length ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.items, (item) => {
|
|
96986
97040
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: item }, [
|
|
96987
97041
|
vue.createVNode(UiBmsTableRow, {
|
|
@@ -96991,7 +97045,7 @@
|
|
|
96991
97045
|
headers: filteredHeaders.value,
|
|
96992
97046
|
"select-mode": __props.selectMode,
|
|
96993
97047
|
"selectable-disabled": __props.selectableDisabled,
|
|
96994
|
-
dense: __props.mode ===
|
|
97048
|
+
dense: __props.mode === vue.unref(TableMode).DENSE || __props.mode === vue.unref(TableMode).SMALL,
|
|
96995
97049
|
onSelect: onItemSelect
|
|
96996
97050
|
}, vue.createSlots({
|
|
96997
97051
|
default: vue.withCtx(({ row }) => [
|
|
@@ -97030,7 +97084,7 @@
|
|
|
97030
97084
|
]), 1032, ["item", "selected-items", "selectable", "headers", "select-mode", "selectable-disabled"])
|
|
97031
97085
|
], true) : vue.createCommentVNode("", true)
|
|
97032
97086
|
], 64);
|
|
97033
|
-
}), 128)) : (vue.openBlock(), vue.createElementBlock("tr",
|
|
97087
|
+
}), 128)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_16$1, [
|
|
97034
97088
|
vue.createElementVNode("td", {
|
|
97035
97089
|
colspan: __props.selectable ? filteredHeaders.value.length + 1 : filteredHeaders.value.length,
|
|
97036
97090
|
class: "bms-table__cell bms-table__cell--empty"
|
|
@@ -97038,7 +97092,7 @@
|
|
|
97038
97092
|
!props.loading ? vue.renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
97039
97093
|
_cache[3] || (_cache[3] = vue.createTextVNode("Aucune donnée", -1))
|
|
97040
97094
|
], true) : vue.createCommentVNode("", true)
|
|
97041
|
-
], 8,
|
|
97095
|
+
], 8, _hoisted_17)
|
|
97042
97096
|
]))
|
|
97043
97097
|
])
|
|
97044
97098
|
], 2)) : vue.createCommentVNode("", true),
|
|
@@ -97056,7 +97110,7 @@
|
|
|
97056
97110
|
}
|
|
97057
97111
|
});
|
|
97058
97112
|
|
|
97059
|
-
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
97113
|
+
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-fb70a13c"]]);
|
|
97060
97114
|
|
|
97061
97115
|
const _hoisted_1$a = { class: "filter-button-container" };
|
|
97062
97116
|
const _hoisted_2$8 = {
|
|
@@ -97067,7 +97121,8 @@
|
|
|
97067
97121
|
__name: "UiFilterButton",
|
|
97068
97122
|
props: {
|
|
97069
97123
|
isFilterVisible: { type: Boolean, default: false },
|
|
97070
|
-
activeFiltersNb: { default: 0 }
|
|
97124
|
+
activeFiltersNb: { default: 0 },
|
|
97125
|
+
small: { type: Boolean, default: false }
|
|
97071
97126
|
},
|
|
97072
97127
|
emits: ["toggleFilters"],
|
|
97073
97128
|
setup(__props, { emit: __emit }) {
|
|
@@ -97078,17 +97133,18 @@
|
|
|
97078
97133
|
);
|
|
97079
97134
|
return (_ctx, _cache) => {
|
|
97080
97135
|
return vue.openBlock(), vue.createElementBlock("span", _hoisted_1$a, [
|
|
97081
|
-
vue.createVNode(_sfc_main$
|
|
97136
|
+
vue.createVNode(_sfc_main$1r, {
|
|
97082
97137
|
class: "filter-button",
|
|
97083
97138
|
color: __props.isFilterVisible ? vue.unref(StatusType).Default : vue.unref(StatusType).Information,
|
|
97084
97139
|
mode: __props.isFilterVisible ? "fill" : "ghost",
|
|
97140
|
+
small: __props.small,
|
|
97085
97141
|
onClick: _cache[0] || (_cache[0] = ($event) => $emits("toggleFilters"))
|
|
97086
97142
|
}, {
|
|
97087
97143
|
default: vue.withCtx(() => [
|
|
97088
97144
|
vue.createVNode(vue.unref(Funnel))
|
|
97089
97145
|
]),
|
|
97090
97146
|
_: 1
|
|
97091
|
-
}, 8, ["color", "mode"]),
|
|
97147
|
+
}, 8, ["color", "mode", "small"]),
|
|
97092
97148
|
vue.createVNode(vue.Transition, { name: "indicator-scale" }, {
|
|
97093
97149
|
default: vue.withCtx(() => [
|
|
97094
97150
|
showIndicator.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$8, vue.toDisplayString(__props.activeFiltersNb), 1)) : vue.createCommentVNode("", true)
|
|
@@ -97100,7 +97156,7 @@
|
|
|
97100
97156
|
}
|
|
97101
97157
|
});
|
|
97102
97158
|
|
|
97103
|
-
const UiFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
97159
|
+
const UiFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-36a9eb9a"]]);
|
|
97104
97160
|
|
|
97105
97161
|
const LOCAL_STORAGE_USER_PREF_KEY = "userPref";
|
|
97106
97162
|
const useUserPref = () => {
|
|
@@ -99186,16 +99242,15 @@
|
|
|
99186
99242
|
var debounceExports = requireDebounce();
|
|
99187
99243
|
const _debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
99188
99244
|
|
|
99189
|
-
const _hoisted_1$9 = { class: "
|
|
99190
|
-
const _hoisted_2$7 = { class: "filters__header" };
|
|
99191
|
-
const _hoisted_3$3 = { class: "
|
|
99192
|
-
const _hoisted_4$3 = { class: "input action" };
|
|
99193
|
-
const _hoisted_5$2 = { class: "filters__inputs" };
|
|
99245
|
+
const _hoisted_1$9 = { class: "filters__header" };
|
|
99246
|
+
const _hoisted_2$7 = { class: "filters__header-title" };
|
|
99247
|
+
const _hoisted_3$3 = { class: "input action" };
|
|
99194
99248
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
99195
99249
|
__name: "BmsTableFilters",
|
|
99196
99250
|
props: {
|
|
99197
99251
|
modelValue: {},
|
|
99198
|
-
canSaveFilters: { type: Boolean, default: false }
|
|
99252
|
+
canSaveFilters: { type: Boolean, default: false },
|
|
99253
|
+
small: { type: Boolean, default: false }
|
|
99199
99254
|
},
|
|
99200
99255
|
emits: ["update:modelValue", "saveFilter", "resetFilters", "filterInput", "filterChange"],
|
|
99201
99256
|
setup(__props, { emit: __emit }) {
|
|
@@ -99316,14 +99371,16 @@
|
|
|
99316
99371
|
}
|
|
99317
99372
|
);
|
|
99318
99373
|
return (_ctx, _cache) => {
|
|
99319
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
99320
|
-
vue.
|
|
99321
|
-
|
|
99374
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
99375
|
+
class: vue.normalizeClass(["filters", { "filters--small": __props.small }])
|
|
99376
|
+
}, [
|
|
99377
|
+
vue.createElementVNode("div", _hoisted_1$9, [
|
|
99378
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
99322
99379
|
vue.createVNode(vue.unref(Funnel)),
|
|
99323
99380
|
_cache[2] || (_cache[2] = vue.createTextVNode(" Recherche avancée ", -1))
|
|
99324
99381
|
]),
|
|
99325
|
-
vue.createElementVNode("span",
|
|
99326
|
-
__props.canSaveFilters ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
99382
|
+
vue.createElementVNode("span", _hoisted_3$3, [
|
|
99383
|
+
__props.canSaveFilters ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
99327
99384
|
key: 0,
|
|
99328
99385
|
class: "save",
|
|
99329
99386
|
tooltipText: "Sauvegarder le filtre",
|
|
@@ -99334,7 +99391,7 @@
|
|
|
99334
99391
|
]),
|
|
99335
99392
|
_: 1
|
|
99336
99393
|
})) : vue.createCommentVNode("", true),
|
|
99337
|
-
vue.createVNode(_sfc_main$
|
|
99394
|
+
vue.createVNode(_sfc_main$1p, {
|
|
99338
99395
|
class: "reset",
|
|
99339
99396
|
tooltipText: "Vider les champs",
|
|
99340
99397
|
onClick: reset
|
|
@@ -99346,7 +99403,9 @@
|
|
|
99346
99403
|
})
|
|
99347
99404
|
])
|
|
99348
99405
|
]),
|
|
99349
|
-
vue.createElementVNode("div",
|
|
99406
|
+
vue.createElementVNode("div", {
|
|
99407
|
+
class: vue.normalizeClass(["filters__inputs", { "filters__inputs--small": __props.small }])
|
|
99408
|
+
}, [
|
|
99350
99409
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.modelValue, (filter) => {
|
|
99351
99410
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
99352
99411
|
class: vue.normalizeClass(["input", {
|
|
@@ -99355,6 +99414,7 @@
|
|
|
99355
99414
|
key: filter.key
|
|
99356
99415
|
}, [
|
|
99357
99416
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFilterComponent(filter.type)), {
|
|
99417
|
+
small: __props.small,
|
|
99358
99418
|
label: filter.label,
|
|
99359
99419
|
inputType: filter.inputType,
|
|
99360
99420
|
modelValue: transformValueForComponent(filter?.value, filter.type),
|
|
@@ -99370,10 +99430,10 @@
|
|
|
99370
99430
|
value: e.target.value,
|
|
99371
99431
|
e
|
|
99372
99432
|
})
|
|
99373
|
-
}, null, 40, ["label", "inputType", "modelValue", "onUpdate:modelValue", "onUpdate:valueFrom", "onUpdate:valueTo", "valueFrom", "valueTo", "autocompleteRequest", "options", "onInput"]))
|
|
99433
|
+
}, null, 40, ["small", "label", "inputType", "modelValue", "onUpdate:modelValue", "onUpdate:valueFrom", "onUpdate:valueTo", "valueFrom", "valueTo", "autocompleteRequest", "options", "onInput"]))
|
|
99374
99434
|
], 2);
|
|
99375
99435
|
}), 128))
|
|
99376
|
-
]),
|
|
99436
|
+
], 2),
|
|
99377
99437
|
vue.createVNode(vue.unref(BmsModal), {
|
|
99378
99438
|
modelValue: savedModalOpened.value,
|
|
99379
99439
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => savedModalOpened.value = $event),
|
|
@@ -99394,12 +99454,12 @@
|
|
|
99394
99454
|
]),
|
|
99395
99455
|
_: 1
|
|
99396
99456
|
}, 8, ["modelValue"])
|
|
99397
|
-
]);
|
|
99457
|
+
], 2);
|
|
99398
99458
|
};
|
|
99399
99459
|
}
|
|
99400
99460
|
});
|
|
99401
99461
|
|
|
99402
|
-
const BmsTableFilters = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
99462
|
+
const BmsTableFilters = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-04b66f64"]]);
|
|
99403
99463
|
|
|
99404
99464
|
/**
|
|
99405
99465
|
* Create a bound version of a function with a specified `this` context
|
|
@@ -103325,7 +103385,7 @@
|
|
|
103325
103385
|
headers: {},
|
|
103326
103386
|
filters: { default: () => [] },
|
|
103327
103387
|
url: {},
|
|
103328
|
-
mode: { default:
|
|
103388
|
+
mode: { default: TableMode.NORMAL },
|
|
103329
103389
|
persistent: { type: Boolean, default: true },
|
|
103330
103390
|
pagination: { default: () => [25, 50, 100] },
|
|
103331
103391
|
size: { default: 25 },
|
|
@@ -103533,6 +103593,7 @@
|
|
|
103533
103593
|
selectedItems.value = [];
|
|
103534
103594
|
};
|
|
103535
103595
|
const onSelectAll = () => emits("update:selectMode", SelectMode.ALL);
|
|
103596
|
+
const isTableSmall = vue.computed(() => props.mode === TableMode.SMALL);
|
|
103536
103597
|
return (_ctx, _cache) => {
|
|
103537
103598
|
return vue.openBlock(), vue.createBlock(UiBmsTable, {
|
|
103538
103599
|
selectedItems: selectedItems.value,
|
|
@@ -103564,11 +103625,12 @@
|
|
|
103564
103625
|
modelValue: vue.unref(filters),
|
|
103565
103626
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(filters) ? filters.value = $event : null),
|
|
103566
103627
|
canSaveFilters: __props.canSaveFilters,
|
|
103628
|
+
small: __props.mode == "small",
|
|
103567
103629
|
onSaveFilter,
|
|
103568
103630
|
onResetFilters: vue.unref(resetFilters),
|
|
103569
103631
|
onFilterInput: _cache[1] || (_cache[1] = (filterEvent) => emits("filterInput", filterEvent)),
|
|
103570
103632
|
onFilterChange: _cache[2] || (_cache[2] = (filterEvent) => emits("filterChange", filterEvent))
|
|
103571
|
-
}, null, 8, ["modelValue", "canSaveFilters", "onResetFilters"])
|
|
103633
|
+
}, null, 8, ["modelValue", "canSaveFilters", "small", "onResetFilters"])
|
|
103572
103634
|
], 512), [
|
|
103573
103635
|
[vue.vShow, vue.unref(isFilterVisible)]
|
|
103574
103636
|
])
|
|
@@ -103597,16 +103659,18 @@
|
|
|
103597
103659
|
search: vue.withCtx(() => [
|
|
103598
103660
|
vue.unref(filters).length > 0 ? (vue.openBlock(), vue.createBlock(UiFilterButton, {
|
|
103599
103661
|
key: 0,
|
|
103662
|
+
small: isTableSmall.value,
|
|
103600
103663
|
activeFiltersNb: vue.unref(numberOfActiveFilters),
|
|
103601
103664
|
isFilterVisible: vue.unref(isFilterVisible),
|
|
103602
103665
|
onToggleFilters: vue.unref(toggleFilters)
|
|
103603
|
-
}, null, 8, ["activeFiltersNb", "isFilterVisible", "onToggleFilters"])) : vue.createCommentVNode("", true),
|
|
103666
|
+
}, null, 8, ["small", "activeFiltersNb", "isFilterVisible", "onToggleFilters"])) : vue.createCommentVNode("", true),
|
|
103604
103667
|
!__props.disableSearch ? vue.renderSlot(_ctx.$slots, "search", { key: 1 }, () => [
|
|
103605
103668
|
vue.createVNode(BmsSearch, {
|
|
103606
103669
|
modelValue: vue.unref(search),
|
|
103607
103670
|
class: "table-search",
|
|
103671
|
+
small: isTableSmall.value,
|
|
103608
103672
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => search.value = $event)
|
|
103609
|
-
}, null, 8, ["modelValue"])
|
|
103673
|
+
}, null, 8, ["modelValue", "small"])
|
|
103610
103674
|
], true) : vue.createCommentVNode("", true)
|
|
103611
103675
|
]),
|
|
103612
103676
|
empty: vue.withCtx(() => [
|
|
@@ -103626,10 +103690,11 @@
|
|
|
103626
103690
|
currentPage: props.initialPage === 1 ? vue.unref(currentPage) - 1 : vue.unref(currentPage),
|
|
103627
103691
|
sizes: vue.unref(paginationsOptions),
|
|
103628
103692
|
pages: totalPages.value,
|
|
103693
|
+
small: isTableSmall.value,
|
|
103629
103694
|
onPrev: onPrevClick,
|
|
103630
103695
|
onNext: onNextClick,
|
|
103631
103696
|
onGo: _cache[5] || (_cache[5] = ($event) => go($event))
|
|
103632
|
-
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
|
|
103697
|
+
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages", "small"])
|
|
103633
103698
|
])) : vue.createCommentVNode("", true)
|
|
103634
103699
|
]),
|
|
103635
103700
|
_: 2
|
|
@@ -103647,7 +103712,7 @@
|
|
|
103647
103712
|
}
|
|
103648
103713
|
});
|
|
103649
103714
|
|
|
103650
|
-
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
103715
|
+
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-6c7e0faf"]]);
|
|
103651
103716
|
|
|
103652
103717
|
const _hoisted_1$7 = { class: "filters-container" };
|
|
103653
103718
|
const _hoisted_2$5 = {
|
|
@@ -103663,7 +103728,7 @@
|
|
|
103663
103728
|
savedFilters: { default: () => [] },
|
|
103664
103729
|
canSaveFilters: { type: Boolean, default: false },
|
|
103665
103730
|
items: {},
|
|
103666
|
-
mode: { default:
|
|
103731
|
+
mode: { default: TableMode.NORMAL },
|
|
103667
103732
|
persistent: { type: Boolean, default: true },
|
|
103668
103733
|
pagination: { default: () => [25, 50, 100] },
|
|
103669
103734
|
size: { default: 25 },
|
|
@@ -103816,6 +103881,7 @@
|
|
|
103816
103881
|
selectedItems.value = elementsAndChildElements.value;
|
|
103817
103882
|
};
|
|
103818
103883
|
const totalSize = vue.computed(() => elementsAndChildElements.value.length);
|
|
103884
|
+
const isTableSmall = vue.computed(() => props.mode === TableMode.SMALL);
|
|
103819
103885
|
return (_ctx, _cache) => {
|
|
103820
103886
|
return vue.openBlock(), vue.createBlock(UiBmsTable, {
|
|
103821
103887
|
selectedItems: selectedItems.value,
|
|
@@ -103843,12 +103909,13 @@
|
|
|
103843
103909
|
vue.createVNode(BmsTableFilters, {
|
|
103844
103910
|
modelValue: vue.unref(filters),
|
|
103845
103911
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(filters) ? filters.value = $event : null),
|
|
103912
|
+
small: isTableSmall.value,
|
|
103846
103913
|
canSaveFilters: __props.canSaveFilters,
|
|
103847
103914
|
onSaveFilter,
|
|
103848
103915
|
onResetFilters: vue.unref(resetFilters),
|
|
103849
103916
|
onFilterInput: _cache[1] || (_cache[1] = (filterEvent) => emits("filterInput", filterEvent)),
|
|
103850
103917
|
onFilterChange: _cache[2] || (_cache[2] = (filterEvent) => emits("filterChange", filterEvent))
|
|
103851
|
-
}, null, 8, ["modelValue", "canSaveFilters", "onResetFilters"])
|
|
103918
|
+
}, null, 8, ["modelValue", "small", "canSaveFilters", "onResetFilters"])
|
|
103852
103919
|
], 512), [
|
|
103853
103920
|
[vue.vShow, vue.unref(isFilterVisible)]
|
|
103854
103921
|
])
|
|
@@ -103881,14 +103948,16 @@
|
|
|
103881
103948
|
key: 0,
|
|
103882
103949
|
activeFiltersNb: vue.unref(numberOfActiveFilters),
|
|
103883
103950
|
isFilterVisible: vue.unref(isFilterVisible),
|
|
103884
|
-
onToggleFilters: vue.unref(toggleFilters)
|
|
103885
|
-
|
|
103951
|
+
onToggleFilters: vue.unref(toggleFilters),
|
|
103952
|
+
small: isTableSmall.value
|
|
103953
|
+
}, null, 8, ["activeFiltersNb", "isFilterVisible", "onToggleFilters", "small"])) : vue.createCommentVNode("", true),
|
|
103886
103954
|
!__props.disableSearch ? vue.renderSlot(_ctx.$slots, "search", { key: 1 }, () => [
|
|
103887
103955
|
vue.createVNode(BmsSearch, {
|
|
103888
103956
|
modelValue: vue.unref(search),
|
|
103889
103957
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(search) ? search.value = $event : null),
|
|
103890
|
-
class: "table-search"
|
|
103891
|
-
|
|
103958
|
+
class: "table-search",
|
|
103959
|
+
small: isTableSmall.value
|
|
103960
|
+
}, null, 8, ["modelValue", "small"])
|
|
103892
103961
|
], true) : vue.createCommentVNode("", true)
|
|
103893
103962
|
]),
|
|
103894
103963
|
empty: vue.withCtx(() => [
|
|
@@ -103908,10 +103977,11 @@
|
|
|
103908
103977
|
currentPage: vue.unref(currentPage),
|
|
103909
103978
|
sizes: vue.unref(paginationsOptions),
|
|
103910
103979
|
pages: vue.unref(totalPages),
|
|
103980
|
+
small: isTableSmall.value,
|
|
103911
103981
|
onPrev: onPrevClick,
|
|
103912
103982
|
onNext: onNextClick,
|
|
103913
103983
|
onGo: _cache[5] || (_cache[5] = ($event) => go($event))
|
|
103914
|
-
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
|
|
103984
|
+
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages", "small"])
|
|
103915
103985
|
])) : vue.createCommentVNode("", true)
|
|
103916
103986
|
]),
|
|
103917
103987
|
_: 2
|
|
@@ -103929,7 +103999,7 @@
|
|
|
103929
103999
|
}
|
|
103930
104000
|
});
|
|
103931
104001
|
|
|
103932
|
-
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
104002
|
+
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-d0834859"]]);
|
|
103933
104003
|
|
|
103934
104004
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
103935
104005
|
__name: "BmsCocarde",
|
|
@@ -103987,7 +104057,7 @@
|
|
|
103987
104057
|
class: "bms-notification__icon"
|
|
103988
104058
|
})),
|
|
103989
104059
|
vue.createElementVNode("div", _hoisted_2$4, vue.toDisplayString(__props.notification.text), 1),
|
|
103990
|
-
vue.createVNode(_sfc_main$
|
|
104060
|
+
vue.createVNode(_sfc_main$1p, {
|
|
103991
104061
|
class: "bms-notification__close-button",
|
|
103992
104062
|
onClick: closeNotification
|
|
103993
104063
|
}, {
|
|
@@ -104228,7 +104298,7 @@
|
|
|
104228
104298
|
vue.createElementVNode("div", null, [
|
|
104229
104299
|
vue.createElementVNode("div", _hoisted_5$1, [
|
|
104230
104300
|
vue.createElementVNode("span", _hoisted_6$1, vue.toDisplayString(__props.problem.detail), 1),
|
|
104231
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
104301
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
104232
104302
|
class: "copyToClipboardButton",
|
|
104233
104303
|
onClick: _cache[1] || (_cache[1] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
104234
104304
|
}, {
|
|
@@ -104263,7 +104333,7 @@
|
|
|
104263
104333
|
vue.createElementVNode("div", null, [
|
|
104264
104334
|
vue.createElementVNode("div", _hoisted_8$1, [
|
|
104265
104335
|
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(__props.problem.correlationId), 1),
|
|
104266
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
104336
|
+
vue.createVNode(vue.unref(_sfc_main$1p), {
|
|
104267
104337
|
class: "copyToClipboardButton",
|
|
104268
104338
|
onClick: _cache[3] || (_cache[3] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
104269
104339
|
}, {
|
|
@@ -104473,7 +104543,7 @@
|
|
|
104473
104543
|
);
|
|
104474
104544
|
return (_ctx, _cache) => {
|
|
104475
104545
|
return isFeatureFlippingOn.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
104476
|
-
vue.createVNode(_sfc_main$
|
|
104546
|
+
vue.createVNode(_sfc_main$1q, {
|
|
104477
104547
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click")),
|
|
104478
104548
|
mode: vue.unref(StatusType).Danger
|
|
104479
104549
|
}, {
|
|
@@ -106770,8 +106840,9 @@
|
|
|
106770
106840
|
|
|
106771
106841
|
const createBmsUi = () => ({
|
|
106772
106842
|
install: (app) => {
|
|
106773
|
-
app.component("BmsButton", _sfc_main$
|
|
106774
|
-
app.component("BmsIconButton", _sfc_main$
|
|
106843
|
+
app.component("BmsButton", _sfc_main$1q);
|
|
106844
|
+
app.component("BmsIconButton", _sfc_main$1p);
|
|
106845
|
+
app.component("BmsToggleIcon", BmsToggleIcon);
|
|
106775
106846
|
app.component("BmsAlert", BmsAlert);
|
|
106776
106847
|
app.component("BmsBadge", BmsBadge);
|
|
106777
106848
|
app.component("BmsCaption", BmsCaption);
|
|
@@ -106818,7 +106889,7 @@
|
|
|
106818
106889
|
app.component("BmsBackButton", BmsBackButton);
|
|
106819
106890
|
app.component("BmsBreadcrumb", BmsBreadcrumb);
|
|
106820
106891
|
app.component("BmsFixedMenu", BmsFixedMenu);
|
|
106821
|
-
app.component("BmsLink", _sfc_main$
|
|
106892
|
+
app.component("BmsLink", _sfc_main$1t);
|
|
106822
106893
|
app.component("BmsMenu", BmsMenu);
|
|
106823
106894
|
app.component("BmsMenuNav", BmsMenuNav);
|
|
106824
106895
|
app.component("BmsShortLinkMenu", BmsShortLinkMenu);
|
|
@@ -106842,7 +106913,7 @@
|
|
|
106842
106913
|
exports.BmsBadge = BmsBadge;
|
|
106843
106914
|
exports.BmsBetweenInput = BmsBetweenInput;
|
|
106844
106915
|
exports.BmsBreadcrumb = BmsBreadcrumb;
|
|
106845
|
-
exports.BmsButton = _sfc_main$
|
|
106916
|
+
exports.BmsButton = _sfc_main$1q;
|
|
106846
106917
|
exports.BmsCaption = BmsCaption;
|
|
106847
106918
|
exports.BmsCard = BmsCard;
|
|
106848
106919
|
exports.BmsChip = BmsChip;
|
|
@@ -106858,7 +106929,7 @@
|
|
|
106858
106929
|
exports.BmsGhost = BmsGhost;
|
|
106859
106930
|
exports.BmsHeader = BmsHeader;
|
|
106860
106931
|
exports.BmsHeaderTitle = BmsHeaderTitle;
|
|
106861
|
-
exports.BmsIconButton = _sfc_main$
|
|
106932
|
+
exports.BmsIconButton = _sfc_main$1p;
|
|
106862
106933
|
exports.BmsInputBooleanCheckbox = _sfc_main$16;
|
|
106863
106934
|
exports.BmsInputCheckboxCaption = BmsInputCheckboxCaption;
|
|
106864
106935
|
exports.BmsInputCheckboxCaptionGroup = BmsInputCheckboxCaptionGroup;
|
|
@@ -106873,7 +106944,7 @@
|
|
|
106873
106944
|
exports.BmsInputRadioGroup = BmsInputRadioGroup;
|
|
106874
106945
|
exports.BmsInputText = _sfc_main$11;
|
|
106875
106946
|
exports.BmsInputToggle = BmsInputToggle;
|
|
106876
|
-
exports.BmsLink = _sfc_main$
|
|
106947
|
+
exports.BmsLink = _sfc_main$1t;
|
|
106877
106948
|
exports.BmsLoader = BmsLoader;
|
|
106878
106949
|
exports.BmsMenu = BmsMenu;
|
|
106879
106950
|
exports.BmsMenuNav = BmsMenuNav;
|
|
@@ -106898,6 +106969,7 @@
|
|
|
106898
106969
|
exports.BmsTag = BmsTag;
|
|
106899
106970
|
exports.BmsTenantSwitcher = BmsTenantSwitcher;
|
|
106900
106971
|
exports.BmsTextArea = BmsTextArea;
|
|
106972
|
+
exports.BmsToggleIcon = BmsToggleIcon;
|
|
106901
106973
|
exports.BmsTooltip = BmsTooltip;
|
|
106902
106974
|
exports.ChipColor = ChipColor;
|
|
106903
106975
|
exports.CocardeBorder = CocardeBorder;
|
|
@@ -106909,6 +106981,7 @@
|
|
|
106909
106981
|
exports.SelectMode = SelectMode;
|
|
106910
106982
|
exports.SortValue = SortValue;
|
|
106911
106983
|
exports.StatusType = StatusType;
|
|
106984
|
+
exports.TableMode = TableMode;
|
|
106912
106985
|
exports.TooltipDirection = TooltipDirection;
|
|
106913
106986
|
exports.confirmPlugin = confirmPlugin;
|
|
106914
106987
|
exports.convertStringToCaption = convertStringToCaption;
|