@ouestfrance/sipa-bms-ui 8.22.3 → 8.23.1
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 +182 -115
- package/dist/sipa-bms-ui.es.js +232 -161
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +236 -163
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/assets/scss/global-variables.scss +3 -0
- package/src/components/button/BmsToggleIcon.stories.js +145 -0
- package/src/components/button/BmsToggleIcon.vue +108 -0
- package/src/components/feedback/UiTooltip.vue +1 -1
- 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 +13 -2
- 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 +10 -3
- package/src/components/table/BmsTable.stories.js +65 -1
- package/src/components/table/BmsTable.vue +15 -4
- package/src/components/table/BmsTableFilters.vue +15 -5
- package/src/components/table/UiBmsTable.stories.js +3 -0
- package/src/components/table/UiBmsTable.vue +14 -6
- package/src/components/table/UiFilterButton.vue +6 -1
- package/src/index.ts +3 -0
- package/src/models/table.model.ts +6 -0
- package/src/plugins/notifications/NotificationItem.vue +1 -1
- package/src/showroom/pages/floating-window.vue +36 -0
- package/src/showroom/pages/table.vue +9 -5
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -53,6 +53,12 @@ var SelectMode = /* @__PURE__ */ ((SelectMode2) => {
|
|
|
53
53
|
SelectMode2["SINGLE"] = "single";
|
|
54
54
|
return SelectMode2;
|
|
55
55
|
})(SelectMode || {});
|
|
56
|
+
var TableMode = /* @__PURE__ */ ((TableMode2) => {
|
|
57
|
+
TableMode2["NORMAL"] = "normal";
|
|
58
|
+
TableMode2["DENSE"] = "dense";
|
|
59
|
+
TableMode2["SMALL"] = "small";
|
|
60
|
+
return TableMode2;
|
|
61
|
+
})(TableMode || {});
|
|
56
62
|
|
|
57
63
|
var TooltipDirection = /* @__PURE__ */ ((TooltipDirection2) => {
|
|
58
64
|
TooltipDirection2["Left"] = "left";
|
|
@@ -327,9 +333,9 @@ const getHeaderClasses = (header, sort) => {
|
|
|
327
333
|
return classes;
|
|
328
334
|
};
|
|
329
335
|
|
|
330
|
-
const _hoisted_1
|
|
336
|
+
const _hoisted_1$10 = ["href", "target"];
|
|
331
337
|
const _hoisted_2$G = ["href", "onClick", "target"];
|
|
332
|
-
const _sfc_main$
|
|
338
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
333
339
|
__name: "BmsLink",
|
|
334
340
|
props: {
|
|
335
341
|
to: {},
|
|
@@ -357,7 +363,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
357
363
|
target: __props.target
|
|
358
364
|
}, _ctx.$attrs), [
|
|
359
365
|
renderSlot(_ctx.$slots, "default")
|
|
360
|
-
], 16, _hoisted_1
|
|
366
|
+
], 16, _hoisted_1$10)) : (openBlock(), createBlock(_component_router_link, {
|
|
361
367
|
key: 1,
|
|
362
368
|
custom: "",
|
|
363
369
|
to: __props.to
|
|
@@ -378,8 +384,8 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
378
384
|
}
|
|
379
385
|
});
|
|
380
386
|
|
|
381
|
-
const _hoisted_1
|
|
382
|
-
const _sfc_main$
|
|
387
|
+
const _hoisted_1$$ = ["type"];
|
|
388
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
383
389
|
__name: "UiButtonLink",
|
|
384
390
|
props: {
|
|
385
391
|
type: {},
|
|
@@ -404,7 +410,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
404
410
|
type: __props.type
|
|
405
411
|
}, [
|
|
406
412
|
renderSlot(_ctx.$slots, "default")
|
|
407
|
-
], 10, _hoisted_1
|
|
413
|
+
], 10, _hoisted_1$$)) : (openBlock(), createBlock(_sfc_main$1t, {
|
|
408
414
|
key: 1,
|
|
409
415
|
to: __props.to,
|
|
410
416
|
target: __props.target,
|
|
@@ -419,10 +425,10 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
419
425
|
}
|
|
420
426
|
});
|
|
421
427
|
|
|
422
|
-
const _hoisted_1$
|
|
428
|
+
const _hoisted_1$_ = { class: "start" };
|
|
423
429
|
const _hoisted_2$F = { class: "content" };
|
|
424
430
|
const _hoisted_3$m = { class: "end" };
|
|
425
|
-
const _sfc_main$
|
|
431
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
426
432
|
__name: "UiButton",
|
|
427
433
|
props: {
|
|
428
434
|
type: { default: "button" },
|
|
@@ -435,9 +441,9 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
435
441
|
setup(__props) {
|
|
436
442
|
const props = __props;
|
|
437
443
|
return (_ctx, _cache) => {
|
|
438
|
-
return openBlock(), createBlock(_sfc_main$
|
|
444
|
+
return openBlock(), createBlock(_sfc_main$1s, normalizeProps(guardReactiveProps(props)), {
|
|
439
445
|
default: withCtx(() => [
|
|
440
|
-
createElementVNode("span", _hoisted_1$
|
|
446
|
+
createElementVNode("span", _hoisted_1$_, [
|
|
441
447
|
renderSlot(_ctx.$slots, "start")
|
|
442
448
|
]),
|
|
443
449
|
createElementVNode("span", _hoisted_2$F, [
|
|
@@ -453,7 +459,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
453
459
|
}
|
|
454
460
|
});
|
|
455
461
|
|
|
456
|
-
const _sfc_main$
|
|
462
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
457
463
|
__name: "BmsButton",
|
|
458
464
|
props: {
|
|
459
465
|
type: { default: "primary" },
|
|
@@ -477,7 +483,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
477
483
|
}
|
|
478
484
|
});
|
|
479
485
|
return (_ctx, _cache) => {
|
|
480
|
-
return openBlock(), createBlock(_sfc_main$
|
|
486
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
481
487
|
mode: uiMode.value,
|
|
482
488
|
color: __props.mode,
|
|
483
489
|
to: __props.to,
|
|
@@ -499,7 +505,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
499
505
|
}
|
|
500
506
|
});
|
|
501
507
|
|
|
502
|
-
const _sfc_main$
|
|
508
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
503
509
|
__name: "BmsIconButton",
|
|
504
510
|
props: {
|
|
505
511
|
to: { default: null },
|
|
@@ -519,7 +525,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
519
525
|
direction: __props.tooltipDirection
|
|
520
526
|
}, {
|
|
521
527
|
default: withCtx(() => [
|
|
522
|
-
createVNode(_sfc_main$
|
|
528
|
+
createVNode(_sfc_main$1r, mergeProps(_ctx.$attrs, {
|
|
523
529
|
icon: "",
|
|
524
530
|
to: __props.to,
|
|
525
531
|
target: __props.target,
|
|
@@ -538,6 +544,47 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
538
544
|
}
|
|
539
545
|
});
|
|
540
546
|
|
|
547
|
+
const _hoisted_1$Z = ["disabled"];
|
|
548
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
549
|
+
__name: "BmsToggleIcon",
|
|
550
|
+
props: {
|
|
551
|
+
modelValue: { type: Boolean, default: false },
|
|
552
|
+
disabled: { type: Boolean, default: false },
|
|
553
|
+
small: { type: Boolean, default: false }
|
|
554
|
+
},
|
|
555
|
+
emits: ["update:modelValue", "click"],
|
|
556
|
+
setup(__props, { emit: __emit }) {
|
|
557
|
+
const props = __props;
|
|
558
|
+
const emit = __emit;
|
|
559
|
+
const handleClick = (event) => {
|
|
560
|
+
if (!props.disabled) {
|
|
561
|
+
const newValue = !props.modelValue;
|
|
562
|
+
emit("update:modelValue", newValue);
|
|
563
|
+
emit("click", event);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
return (_ctx, _cache) => {
|
|
567
|
+
return openBlock(), createElementBlock("button", {
|
|
568
|
+
class: normalizeClass(["toggle-icon", { active: __props.modelValue, disabled: __props.disabled, small: __props.small }]),
|
|
569
|
+
disabled: __props.disabled,
|
|
570
|
+
onClick: handleClick
|
|
571
|
+
}, [
|
|
572
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
573
|
+
], 10, _hoisted_1$Z);
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
const _export_sfc = (sfc, props) => {
|
|
579
|
+
const target = sfc.__vccOpts || sfc;
|
|
580
|
+
for (const [key, val] of props) {
|
|
581
|
+
target[key] = val;
|
|
582
|
+
}
|
|
583
|
+
return target;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
const BmsToggleIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-1070e8e1"]]);
|
|
587
|
+
|
|
541
588
|
/**
|
|
542
589
|
* @license lucide-vue-next v0.562.0 - ISC
|
|
543
590
|
*
|
|
@@ -37940,7 +37987,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
37940
37987
|
], true)
|
|
37941
37988
|
]),
|
|
37942
37989
|
renderSlot(_ctx.$slots, "action", {}, void 0, true),
|
|
37943
|
-
__props.dismissable ? (openBlock(), createBlock(_sfc_main$
|
|
37990
|
+
__props.dismissable ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
37944
37991
|
key: 0,
|
|
37945
37992
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("dismiss"))
|
|
37946
37993
|
}, {
|
|
@@ -37956,14 +38003,6 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
37956
38003
|
}
|
|
37957
38004
|
});
|
|
37958
38005
|
|
|
37959
|
-
const _export_sfc = (sfc, props) => {
|
|
37960
|
-
const target = sfc.__vccOpts || sfc;
|
|
37961
|
-
for (const [key, val] of props) {
|
|
37962
|
-
target[key] = val;
|
|
37963
|
-
}
|
|
37964
|
-
return target;
|
|
37965
|
-
};
|
|
37966
|
-
|
|
37967
38006
|
const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-26caccdd"]]);
|
|
37968
38007
|
|
|
37969
38008
|
const _hoisted_1$X = {
|
|
@@ -38054,8 +38093,8 @@ const _hoisted_2$C = {
|
|
|
38054
38093
|
viewBox: "0 0 100 100"
|
|
38055
38094
|
};
|
|
38056
38095
|
const _hoisted_3$k = { transform: "rotate(-90, 50, 50)" };
|
|
38057
|
-
const _hoisted_4$
|
|
38058
|
-
const _hoisted_5$
|
|
38096
|
+
const _hoisted_4$b = ["stroke-dashoffset"];
|
|
38097
|
+
const _hoisted_5$7 = { class: "percent" };
|
|
38059
38098
|
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
38060
38099
|
__name: "BmsCircularProgress",
|
|
38061
38100
|
props: ["progress"],
|
|
@@ -38082,10 +38121,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
38082
38121
|
"stroke-linecap": "round",
|
|
38083
38122
|
"stroke-dashoffset": 283 - __props.progress * 283 / 100,
|
|
38084
38123
|
"stroke-dasharray": "283"
|
|
38085
|
-
}, null, 8, _hoisted_4$
|
|
38124
|
+
}, null, 8, _hoisted_4$b)
|
|
38086
38125
|
])
|
|
38087
38126
|
])) : createCommentVNode("", true),
|
|
38088
|
-
createElementVNode("div", _hoisted_5$
|
|
38127
|
+
createElementVNode("div", _hoisted_5$7, toDisplayString(__props.progress) + "%", 1)
|
|
38089
38128
|
]);
|
|
38090
38129
|
};
|
|
38091
38130
|
}
|
|
@@ -39204,7 +39243,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
39204
39243
|
}
|
|
39205
39244
|
});
|
|
39206
39245
|
|
|
39207
|
-
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
39246
|
+
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-6fa8f4d8"]]);
|
|
39208
39247
|
|
|
39209
39248
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
39210
39249
|
__name: "BmsTooltip",
|
|
@@ -39400,7 +39439,7 @@ const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "
|
|
|
39400
39439
|
const _hoisted_1$S = { class: "field__input-label" };
|
|
39401
39440
|
const _hoisted_2$A = { class: "field__input-icon field__input-icon--start" };
|
|
39402
39441
|
const _hoisted_3$j = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
|
|
39403
|
-
const _hoisted_4$
|
|
39442
|
+
const _hoisted_4$a = { class: "field__input-icon field__input-icon--end" };
|
|
39404
39443
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
39405
39444
|
__name: "RawInputText",
|
|
39406
39445
|
props: {
|
|
@@ -39475,7 +39514,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
39475
39514
|
onFocus: _cache[1] || (_cache[1] = ($event) => $emits("focus")),
|
|
39476
39515
|
onClick: _cache[2] || (_cache[2] = ($event) => $emits("click"))
|
|
39477
39516
|
}, null, 40, _hoisted_3$j),
|
|
39478
|
-
createElementVNode("span", _hoisted_4$
|
|
39517
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
39479
39518
|
renderSlot(_ctx.$slots, "icon-end", {}, void 0, true)
|
|
39480
39519
|
])
|
|
39481
39520
|
], 2);
|
|
@@ -40026,7 +40065,7 @@ const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v
|
|
|
40026
40065
|
const _hoisted_1$P = { class: "file-upload" };
|
|
40027
40066
|
const _hoisted_2$x = { class: "file-upload__label" };
|
|
40028
40067
|
const _hoisted_3$i = { key: 1 };
|
|
40029
|
-
const _hoisted_4$
|
|
40068
|
+
const _hoisted_4$9 = { class: "file-upload__file-name" };
|
|
40030
40069
|
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
40031
40070
|
__name: "BmsFilePicker",
|
|
40032
40071
|
props: {
|
|
@@ -40127,8 +40166,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
40127
40166
|
key: file.name,
|
|
40128
40167
|
class: "file-upload__file"
|
|
40129
40168
|
}, [
|
|
40130
|
-
createElementVNode("span", _hoisted_4$
|
|
40131
|
-
createVNode(unref(_sfc_main$
|
|
40169
|
+
createElementVNode("span", _hoisted_4$9, toDisplayString(file.name), 1),
|
|
40170
|
+
createVNode(unref(_sfc_main$1p), {
|
|
40132
40171
|
onClick: ($event) => onDeleteFile(file)
|
|
40133
40172
|
}, {
|
|
40134
40173
|
default: withCtx(() => [
|
|
@@ -69151,7 +69190,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
69151
69190
|
const checkLimit = () => {
|
|
69152
69191
|
internalErrors.value = [];
|
|
69153
69192
|
internalCaptions.value = [];
|
|
69154
|
-
|
|
69193
|
+
const hasValue = props.modelValue !== null && props.modelValue !== void 0;
|
|
69194
|
+
if (hasValue && props.inputType === InputType.TEXT && typeof props.modelValue === "string") {
|
|
69155
69195
|
if (props.minlength !== void 0 && props.modelValue.length < props.minlength) {
|
|
69156
69196
|
internalErrors.value = [
|
|
69157
69197
|
"Longueur inférieur au minimum autorisé (min:" + props.minlength + ")"
|
|
@@ -69431,7 +69471,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
69431
69471
|
src: getImageSrc(file),
|
|
69432
69472
|
class: "file-upload__file-img"
|
|
69433
69473
|
}, null, 8, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(file.name), 1)),
|
|
69434
|
-
createVNode(_sfc_main$
|
|
69474
|
+
createVNode(_sfc_main$1p, {
|
|
69435
69475
|
mode: unref(StatusType).Danger,
|
|
69436
69476
|
onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
|
|
69437
69477
|
class: "close-button"
|
|
@@ -69489,7 +69529,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
69489
69529
|
});
|
|
69490
69530
|
const checkLimit = () => {
|
|
69491
69531
|
internalErrors.value = [];
|
|
69492
|
-
|
|
69532
|
+
const hasValue = props.modelValue !== null && props.modelValue !== void 0;
|
|
69533
|
+
if (hasValue && props.min !== void 0 && props.modelValue < props.min) {
|
|
69493
69534
|
internalErrors.value = [
|
|
69494
69535
|
"Valeur inférieure au minimum autorisé (min : " + props.min + ")"
|
|
69495
69536
|
];
|
|
@@ -69897,7 +69938,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
69897
69938
|
}, [
|
|
69898
69939
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
69899
69940
|
createElementVNode("span", _hoisted_1$I, [
|
|
69900
|
-
__props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$
|
|
69941
|
+
__props.canBeDismissed ? (openBlock(), createBlock(unref(_sfc_main$1p), {
|
|
69901
69942
|
key: 0,
|
|
69902
69943
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("dismiss"), ["stop"]))
|
|
69903
69944
|
}, {
|
|
@@ -87674,7 +87715,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
87674
87715
|
class: normalizeClass(["card__body", { animated: __props.animated, hasAction: !!_ctx.$slots.action }])
|
|
87675
87716
|
}, [
|
|
87676
87717
|
createElementVNode("div", _hoisted_1$D, [
|
|
87677
|
-
__props.to ? (openBlock(), createBlock(_sfc_main$
|
|
87718
|
+
__props.to ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
87678
87719
|
key: 0,
|
|
87679
87720
|
class: "card__body__content__link",
|
|
87680
87721
|
to: __props.to
|
|
@@ -87762,10 +87803,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87762
87803
|
position.value = computeInitialPosition();
|
|
87763
87804
|
}
|
|
87764
87805
|
}
|
|
87806
|
+
const resizeCallack = useDebounceFn(() => {
|
|
87807
|
+
expandedStyle.value = computeExpandedStyle();
|
|
87808
|
+
}, 100);
|
|
87765
87809
|
onMounted(() => {
|
|
87766
87810
|
if (open.value) {
|
|
87767
87811
|
initPosition();
|
|
87768
87812
|
}
|
|
87813
|
+
if (props.expandTarget) {
|
|
87814
|
+
const targetEl = document.querySelector(props.expandTarget);
|
|
87815
|
+
if (targetEl) {
|
|
87816
|
+
const resizeObserver = new ResizeObserver(resizeCallack);
|
|
87817
|
+
resizeObserver.observe(targetEl);
|
|
87818
|
+
}
|
|
87819
|
+
}
|
|
87769
87820
|
});
|
|
87770
87821
|
watch(open, (newVal) => {
|
|
87771
87822
|
if (newVal) {
|
|
@@ -87896,7 +87947,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87896
87947
|
}, [
|
|
87897
87948
|
createElementVNode("h3", _hoisted_1$C, toDisplayString(__props.title), 1),
|
|
87898
87949
|
createElementVNode("div", _hoisted_2$o, [
|
|
87899
|
-
__props.expandable ? (openBlock(), createBlock(_sfc_main$
|
|
87950
|
+
__props.expandable ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
87900
87951
|
key: 0,
|
|
87901
87952
|
class: normalizeClass(["floating-window__expand-btn", { "floating-window__expand-btn--expanded": isExpanded.value }]),
|
|
87902
87953
|
"tooltip-text": isExpanded.value ? "Réduire la fenêtre" : "Maximiser la fenêtre",
|
|
@@ -87907,7 +87958,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87907
87958
|
]),
|
|
87908
87959
|
_: 1
|
|
87909
87960
|
}, 8, ["class", "tooltip-text"])) : createCommentVNode("", true),
|
|
87910
|
-
createVNode(_sfc_main$
|
|
87961
|
+
createVNode(_sfc_main$1p, {
|
|
87911
87962
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => open.value = false, ["prevent", "stop"]))
|
|
87912
87963
|
}, {
|
|
87913
87964
|
default: withCtx(() => [
|
|
@@ -87928,7 +87979,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
87928
87979
|
}
|
|
87929
87980
|
});
|
|
87930
87981
|
|
|
87931
|
-
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
87982
|
+
const BmsFloatingWindow = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-d8cae050"]]);
|
|
87932
87983
|
|
|
87933
87984
|
const _hoisted_1$B = { class: "form-section" };
|
|
87934
87985
|
const _hoisted_2$n = {
|
|
@@ -90903,7 +90954,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
90903
90954
|
key: 0,
|
|
90904
90955
|
class: normalizeClass(["bms-short-link-menu", { "bms-short-link-menu__outline": __props.outline }])
|
|
90905
90956
|
}, [
|
|
90906
|
-
!!__props.helpLink ? (openBlock(), createBlock(_sfc_main$
|
|
90957
|
+
!!__props.helpLink ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
90907
90958
|
key: 0,
|
|
90908
90959
|
"tooltip-text": "Voir la documentation",
|
|
90909
90960
|
to: __props.helpLink,
|
|
@@ -90916,7 +90967,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
90916
90967
|
]),
|
|
90917
90968
|
_: 3
|
|
90918
90969
|
}, 8, ["to"])) : createCommentVNode("", true),
|
|
90919
|
-
!!__props.activityLink ? (openBlock(), createBlock(_sfc_main$
|
|
90970
|
+
!!__props.activityLink ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
90920
90971
|
key: 1,
|
|
90921
90972
|
"tooltip-text": "Voir l'activité",
|
|
90922
90973
|
to: __props.activityLink,
|
|
@@ -90939,8 +90990,8 @@ const BmsShortLinkMenu = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId",
|
|
|
90939
90990
|
const _hoisted_1$y = { class: "bms-header" };
|
|
90940
90991
|
const _hoisted_2$m = { class: "bms-header__title" };
|
|
90941
90992
|
const _hoisted_3$d = { class: "bms-header__title__label" };
|
|
90942
|
-
const _hoisted_4$
|
|
90943
|
-
const _hoisted_5$
|
|
90993
|
+
const _hoisted_4$8 = { key: 0 };
|
|
90994
|
+
const _hoisted_5$6 = {
|
|
90944
90995
|
key: 1,
|
|
90945
90996
|
class: "bms-header__title__after-title"
|
|
90946
90997
|
};
|
|
@@ -90970,7 +91021,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90970
91021
|
createElementVNode("span", _hoisted_2$m, [
|
|
90971
91022
|
renderSlot(_ctx.$slots, "logo", {}, void 0, true),
|
|
90972
91023
|
createElementVNode("span", _hoisted_3$d, [
|
|
90973
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
91024
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_4$8, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
90974
91025
|
createElementVNode("h1", null, toDisplayString(__props.title), 1)
|
|
90975
91026
|
]),
|
|
90976
91027
|
showHelperLink.value ? (openBlock(), createBlock(BmsShortLinkMenu, {
|
|
@@ -90979,7 +91030,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
90979
91030
|
"help-link": __props.documentationUrl ?? null,
|
|
90980
91031
|
"activity-link": __props.activityUrl ?? null
|
|
90981
91032
|
}, null, 8, ["help-link", "activity-link"])) : createCommentVNode("", true),
|
|
90982
|
-
_ctx.$slots.afterTitle ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
91033
|
+
_ctx.$slots.afterTitle ? (openBlock(), createElementBlock("span", _hoisted_5$6, [
|
|
90983
91034
|
renderSlot(_ctx.$slots, "afterTitle", {}, void 0, true)
|
|
90984
91035
|
])) : createCommentVNode("", true),
|
|
90985
91036
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("span", _hoisted_6$5, [
|
|
@@ -91019,8 +91070,8 @@ const BmsOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data
|
|
|
91019
91070
|
const _hoisted_1$x = ["data-testid"];
|
|
91020
91071
|
const _hoisted_2$l = { class: "ui-modal__header" };
|
|
91021
91072
|
const _hoisted_3$c = { class: "ui-modal__header-inner" };
|
|
91022
|
-
const _hoisted_4$
|
|
91023
|
-
const _hoisted_5$
|
|
91073
|
+
const _hoisted_4$7 = { class: "ui-modal__title" };
|
|
91074
|
+
const _hoisted_5$5 = { class: "ui-modal__content" };
|
|
91024
91075
|
const _hoisted_6$4 = { class: "ui-modal__footer" };
|
|
91025
91076
|
const _hoisted_7$4 = { class: "ui-modal__buttons" };
|
|
91026
91077
|
const _hoisted_8$3 = {
|
|
@@ -91154,7 +91205,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
91154
91205
|
createElementVNode("header", _hoisted_2$l, [
|
|
91155
91206
|
createElementVNode("div", _hoisted_3$c, [
|
|
91156
91207
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
91157
|
-
createElementVNode("h1", _hoisted_4$
|
|
91208
|
+
createElementVNode("h1", _hoisted_4$7, [
|
|
91158
91209
|
props.type !== unref(StatusType).Default ? (openBlock(), createBlock(resolveDynamicComponent(titleComponent.value), {
|
|
91159
91210
|
key: 0,
|
|
91160
91211
|
class: "title-indicator",
|
|
@@ -91168,7 +91219,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
91168
91219
|
])
|
|
91169
91220
|
], true)
|
|
91170
91221
|
]),
|
|
91171
|
-
createVNode(_sfc_main$
|
|
91222
|
+
createVNode(_sfc_main$1p, {
|
|
91172
91223
|
disabled: !isModalClosable.value,
|
|
91173
91224
|
onClick: dismissModal,
|
|
91174
91225
|
"data-testid": "close-modal"
|
|
@@ -91179,7 +91230,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
91179
91230
|
_: 1
|
|
91180
91231
|
}, 8, ["disabled"])
|
|
91181
91232
|
]),
|
|
91182
|
-
createElementVNode("main", _hoisted_5$
|
|
91233
|
+
createElementVNode("main", _hoisted_5$5, [
|
|
91183
91234
|
renderSlot(_ctx.$slots, "default", {
|
|
91184
91235
|
modalData: props.modelValue
|
|
91185
91236
|
}, void 0, true)
|
|
@@ -91194,7 +91245,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
91194
91245
|
modalData: props.modelValue
|
|
91195
91246
|
}, () => [
|
|
91196
91247
|
(openBlock(true), createElementBlock(Fragment, null, renderList(buttons.value, (button) => {
|
|
91197
|
-
return openBlock(), createBlock(_sfc_main$
|
|
91248
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
91198
91249
|
key: button.label + button.role,
|
|
91199
91250
|
type: button.role === "cancel" ? "secondary" : "primary",
|
|
91200
91251
|
disabled: !isModalClosable.value || button.disabled,
|
|
@@ -91450,7 +91501,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
91450
91501
|
}
|
|
91451
91502
|
});
|
|
91452
91503
|
|
|
91453
|
-
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
91504
|
+
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-b6e704f4"]]);
|
|
91454
91505
|
|
|
91455
91506
|
const _hoisted_1$u = { class: "step" };
|
|
91456
91507
|
const _hoisted_2$j = { class: "step-buttons" };
|
|
@@ -91470,7 +91521,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
91470
91521
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
91471
91522
|
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
91472
91523
|
createElementVNode("div", _hoisted_2$j, [
|
|
91473
|
-
__props.previousLabel ? (openBlock(), createBlock(_sfc_main$
|
|
91524
|
+
__props.previousLabel ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
91474
91525
|
key: 0,
|
|
91475
91526
|
"data-test": "previous-button",
|
|
91476
91527
|
name: "previous",
|
|
@@ -91482,7 +91533,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
91482
91533
|
]),
|
|
91483
91534
|
_: 1
|
|
91484
91535
|
})) : createCommentVNode("", true),
|
|
91485
|
-
__props.nextLabel ? (openBlock(), createBlock(_sfc_main$
|
|
91536
|
+
__props.nextLabel ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
91486
91537
|
key: 1,
|
|
91487
91538
|
"data-test": "next-button",
|
|
91488
91539
|
class: "",
|
|
@@ -91507,8 +91558,8 @@ const BmsStep = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
|
91507
91558
|
const _hoisted_1$t = { class: "stepper" };
|
|
91508
91559
|
const _hoisted_2$i = { class: "stepper-header" };
|
|
91509
91560
|
const _hoisted_3$a = ["onClick"];
|
|
91510
|
-
const _hoisted_4$
|
|
91511
|
-
const _hoisted_5$
|
|
91561
|
+
const _hoisted_4$6 = { key: 1 };
|
|
91562
|
+
const _hoisted_5$4 = ["onClick"];
|
|
91512
91563
|
const _hoisted_6$3 = {
|
|
91513
91564
|
key: 0,
|
|
91514
91565
|
class: "stepper-header--separator"
|
|
@@ -91571,11 +91622,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
91571
91622
|
class: normalizeClass(["stepper-header--indicator", stepIndicator(step, index)]),
|
|
91572
91623
|
onClick: ($event) => onStepClick(index)
|
|
91573
91624
|
}, [
|
|
91574
|
-
step.stepComplete ? (openBlock(), createBlock(unref(Check), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
91625
|
+
step.stepComplete ? (openBlock(), createBlock(unref(Check), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(index + 1), 1))
|
|
91575
91626
|
], 10, _hoisted_3$a),
|
|
91576
91627
|
createElementVNode("div", {
|
|
91577
91628
|
onClick: ($event) => onStepClick(index)
|
|
91578
|
-
}, toDisplayString(step.stepLabel), 9, _hoisted_5$
|
|
91629
|
+
}, toDisplayString(step.stepLabel), 9, _hoisted_5$4),
|
|
91579
91630
|
index < steps.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_6$3)) : createCommentVNode("", true)
|
|
91580
91631
|
], 2);
|
|
91581
91632
|
}), 128))
|
|
@@ -91777,7 +91828,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
91777
91828
|
return classes2;
|
|
91778
91829
|
});
|
|
91779
91830
|
return (_ctx, _cache) => {
|
|
91780
|
-
return openBlock(), createBlock(_sfc_main$
|
|
91831
|
+
return openBlock(), createBlock(_sfc_main$1t, {
|
|
91781
91832
|
to: __props.item.link,
|
|
91782
91833
|
target: __props.target,
|
|
91783
91834
|
classes: classes.value
|
|
@@ -91806,8 +91857,8 @@ const _hoisted_1$p = {
|
|
|
91806
91857
|
};
|
|
91807
91858
|
const _hoisted_2$g = { class: "parent-label" };
|
|
91808
91859
|
const _hoisted_3$9 = ["onClick"];
|
|
91809
|
-
const _hoisted_4$
|
|
91810
|
-
const _hoisted_5$
|
|
91860
|
+
const _hoisted_4$5 = { class: "parent-label" };
|
|
91861
|
+
const _hoisted_5$3 = { class: "additional" };
|
|
91811
91862
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
91812
91863
|
__name: "BmsMenuNav",
|
|
91813
91864
|
props: {
|
|
@@ -91871,7 +91922,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
91871
91922
|
key: item.label
|
|
91872
91923
|
}, [
|
|
91873
91924
|
hasSubItems(item) ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
91874
|
-
item.link ? (openBlock(), createBlock(_sfc_main$
|
|
91925
|
+
item.link ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
91875
91926
|
key: 0,
|
|
91876
91927
|
to: item.link,
|
|
91877
91928
|
class: normalizeClass(`parent-item ${isItemActive(item) ? "active" : ""}`)
|
|
@@ -91889,7 +91940,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
91889
91940
|
class: "parent-item",
|
|
91890
91941
|
onClick: ($event) => toggleParentItem(item)
|
|
91891
91942
|
}, [
|
|
91892
|
-
createElementVNode("span", _hoisted_4$
|
|
91943
|
+
createElementVNode("span", _hoisted_4$5, toDisplayString(item.label), 1),
|
|
91893
91944
|
!item.open ? (openBlock(), createBlock(unref(ChevronDown), { key: 0 })) : (openBlock(), createBlock(unref(ChevronUp), { key: 1 }))
|
|
91894
91945
|
], 8, _hoisted_3$9)),
|
|
91895
91946
|
createVNode(Transition, { name: "open" }, {
|
|
@@ -91931,7 +91982,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
91931
91982
|
]);
|
|
91932
91983
|
}), 128))
|
|
91933
91984
|
]),
|
|
91934
|
-
createElementVNode("div", _hoisted_5$
|
|
91985
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
91935
91986
|
renderSlot(_ctx.$slots, "additional", { closeMenu }, void 0, true)
|
|
91936
91987
|
])
|
|
91937
91988
|
]);
|
|
@@ -91999,7 +92050,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
91999
92050
|
const toggleMenu = (newMenuState = true) => isMenuOpen.value = newMenuState;
|
|
92000
92051
|
return (_ctx, _cache) => {
|
|
92001
92052
|
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
92002
|
-
createVNode(unref(_sfc_main$
|
|
92053
|
+
createVNode(unref(_sfc_main$1p), {
|
|
92003
92054
|
onClick: _cache[0] || (_cache[0] = ($event) => toggleMenu(!isMenuOpen.value)),
|
|
92004
92055
|
"data-testid": "openMenu",
|
|
92005
92056
|
"aria-label": "Ouvrir le menu"
|
|
@@ -92023,7 +92074,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
92023
92074
|
ref: menu,
|
|
92024
92075
|
class: normalizeClass(["menu__container", { "is-show": isMenuOpen.value }])
|
|
92025
92076
|
}, [
|
|
92026
|
-
createVNode(unref(_sfc_main$
|
|
92077
|
+
createVNode(unref(_sfc_main$1p), {
|
|
92027
92078
|
class: "menu__close",
|
|
92028
92079
|
onClick: _cache[1] || (_cache[1] = ($event) => toggleMenu(false)),
|
|
92029
92080
|
"data-testid": "closeMenu",
|
|
@@ -92357,7 +92408,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
92357
92408
|
createTextVNode(" " + toDisplayString(__props.tenant.label), 1),
|
|
92358
92409
|
createElementVNode("em", null, "- " + toDisplayString(__props.tenant.information), 1)
|
|
92359
92410
|
], 8, _hoisted_1$k),
|
|
92360
|
-
__props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$
|
|
92411
|
+
__props.tenant.isFavorite ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
92361
92412
|
key: 0,
|
|
92362
92413
|
class: "remove-tenant-button",
|
|
92363
92414
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("removeFavorite"), ["stop"]))
|
|
@@ -92553,7 +92604,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
92553
92604
|
__props.currentTenant && __props.tenants.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
92554
92605
|
createVNode(_sfc_main$n, { tenant: __props.currentTenant }, null, 8, ["tenant"]),
|
|
92555
92606
|
createElementVNode("span", null, toDisplayString(__props.currentTenant.label), 1)
|
|
92556
|
-
])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
92607
|
+
])) : __props.tenants.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1q), {
|
|
92557
92608
|
key: 1,
|
|
92558
92609
|
type: "tertiary",
|
|
92559
92610
|
onClick: _cache[0] || (_cache[0] = ($event) => showTenantSwitcher.value = !showTenantSwitcher.value)
|
|
@@ -92696,7 +92747,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
92696
92747
|
onMouseup: _cache[1] || (_cache[1] = () => gripped.value = false)
|
|
92697
92748
|
}),
|
|
92698
92749
|
renderSlot(_ctx.$slots, "default", { row: item }, void 0, true),
|
|
92699
|
-
createVNode(unref(_sfc_main$
|
|
92750
|
+
createVNode(unref(_sfc_main$1p), {
|
|
92700
92751
|
mode: unref(StatusType).Danger,
|
|
92701
92752
|
onClick: ($event) => onRemove(item)
|
|
92702
92753
|
}, {
|
|
@@ -92735,7 +92786,7 @@ const Empty = { render: render };
|
|
|
92735
92786
|
const _hoisted_1$f = { class: "empty-screen" };
|
|
92736
92787
|
const _hoisted_2$c = { class: "empty-screen__img" };
|
|
92737
92788
|
const _hoisted_3$7 = { class: "empty-screen__title" };
|
|
92738
|
-
const _hoisted_4$
|
|
92789
|
+
const _hoisted_4$4 = {
|
|
92739
92790
|
key: 0,
|
|
92740
92791
|
class: "empty-screen__description"
|
|
92741
92792
|
};
|
|
@@ -92753,7 +92804,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
92753
92804
|
createVNode(unref(Empty))
|
|
92754
92805
|
]),
|
|
92755
92806
|
createElementVNode("h1", _hoisted_3$7, toDisplayString(props.title), 1),
|
|
92756
|
-
props.description ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
92807
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_4$4, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
92757
92808
|
]);
|
|
92758
92809
|
};
|
|
92759
92810
|
}
|
|
@@ -92772,7 +92823,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92772
92823
|
total: {},
|
|
92773
92824
|
currentPage: {},
|
|
92774
92825
|
pages: {},
|
|
92775
|
-
selectLabel: { default: "Éléments par page :" }
|
|
92826
|
+
selectLabel: { default: "Éléments par page :" },
|
|
92827
|
+
small: { type: Boolean, default: false }
|
|
92776
92828
|
},
|
|
92777
92829
|
emits: ["update:currentSize", "next", "prev", "go"],
|
|
92778
92830
|
setup(__props, { emit: __emit }) {
|
|
@@ -92826,8 +92878,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92826
92878
|
createVNode(unref(BmsSelect), {
|
|
92827
92879
|
modelValue: size.value,
|
|
92828
92880
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => size.value = $event),
|
|
92881
|
+
small: __props.small,
|
|
92829
92882
|
options: __props.sizes.map((size2) => ({ label: size2.toString(), value: size2 }))
|
|
92830
|
-
}, null, 8, ["modelValue", "options"])
|
|
92883
|
+
}, null, 8, ["modelValue", "small", "options"])
|
|
92831
92884
|
]),
|
|
92832
92885
|
createElementVNode("div", _hoisted_2$b, [
|
|
92833
92886
|
renderSlot(_ctx.$slots, "default", {
|
|
@@ -92844,7 +92897,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92844
92897
|
], true)
|
|
92845
92898
|
]),
|
|
92846
92899
|
createElementVNode("div", _hoisted_3$6, [
|
|
92847
|
-
createVNode(_sfc_main$
|
|
92900
|
+
createVNode(_sfc_main$1p, {
|
|
92848
92901
|
color: "neutral",
|
|
92849
92902
|
onClick: goToFirst,
|
|
92850
92903
|
disabled: __props.currentPage === 0
|
|
@@ -92854,7 +92907,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92854
92907
|
]),
|
|
92855
92908
|
_: 1
|
|
92856
92909
|
}, 8, ["disabled"]),
|
|
92857
|
-
createVNode(_sfc_main$
|
|
92910
|
+
createVNode(_sfc_main$1p, {
|
|
92858
92911
|
onClick: goToPrevious,
|
|
92859
92912
|
disabled: __props.currentPage === 0
|
|
92860
92913
|
}, {
|
|
@@ -92863,7 +92916,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92863
92916
|
]),
|
|
92864
92917
|
_: 1
|
|
92865
92918
|
}, 8, ["disabled"]),
|
|
92866
|
-
createVNode(_sfc_main$
|
|
92919
|
+
createVNode(_sfc_main$1p, {
|
|
92867
92920
|
onClick: goToNext,
|
|
92868
92921
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0
|
|
92869
92922
|
}, {
|
|
@@ -92872,7 +92925,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92872
92925
|
]),
|
|
92873
92926
|
_: 1
|
|
92874
92927
|
}, 8, ["disabled"]),
|
|
92875
|
-
createVNode(_sfc_main$
|
|
92928
|
+
createVNode(_sfc_main$1p, {
|
|
92876
92929
|
onClick: goToLast,
|
|
92877
92930
|
disabled: __props.currentPage === __props.pages - 1 || __props.pages === 0 || __props.total === Infinity
|
|
92878
92931
|
}, {
|
|
@@ -92887,7 +92940,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
92887
92940
|
}
|
|
92888
92941
|
});
|
|
92889
92942
|
|
|
92890
|
-
const BmsPagination = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
92943
|
+
const BmsPagination = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-86561b3b"]]);
|
|
92891
92944
|
|
|
92892
92945
|
/**
|
|
92893
92946
|
* Removes all key-value entries from the list cache.
|
|
@@ -96710,41 +96763,40 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
96710
96763
|
const UiBmsTableRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2ab3888f"]]);
|
|
96711
96764
|
|
|
96712
96765
|
const _hoisted_1$b = { class: "bms-table" };
|
|
96713
|
-
const _hoisted_2$9 = { class: "bms-
|
|
96714
|
-
const _hoisted_3$4 = { class: "bms-
|
|
96715
|
-
const _hoisted_4$
|
|
96716
|
-
const _hoisted_5$
|
|
96717
|
-
const _hoisted_6$2 = {
|
|
96766
|
+
const _hoisted_2$9 = { class: "bms-table__actions__saved-filters" };
|
|
96767
|
+
const _hoisted_3$4 = { class: "bms-table__actions__custom" };
|
|
96768
|
+
const _hoisted_4$3 = { class: "bms-table__actions__search" };
|
|
96769
|
+
const _hoisted_5$2 = {
|
|
96718
96770
|
key: 0,
|
|
96719
96771
|
class: "bms-table__filters"
|
|
96720
96772
|
};
|
|
96773
|
+
const _hoisted_6$2 = { key: 1 };
|
|
96721
96774
|
const _hoisted_7$2 = { key: 1 };
|
|
96722
|
-
const _hoisted_8$2 = {
|
|
96723
|
-
const _hoisted_9$1 = {
|
|
96724
|
-
const _hoisted_10$1 = {
|
|
96775
|
+
const _hoisted_8$2 = { class: "bms-table__table-wrapper" };
|
|
96776
|
+
const _hoisted_9$1 = {
|
|
96725
96777
|
key: 0,
|
|
96726
96778
|
class: "bms-table__loader"
|
|
96727
96779
|
};
|
|
96728
|
-
const
|
|
96780
|
+
const _hoisted_10$1 = {
|
|
96729
96781
|
ref: "thead",
|
|
96730
96782
|
class: "bms-table__header"
|
|
96731
96783
|
};
|
|
96732
|
-
const
|
|
96733
|
-
const
|
|
96734
|
-
const
|
|
96735
|
-
const
|
|
96736
|
-
const
|
|
96737
|
-
const
|
|
96784
|
+
const _hoisted_11$1 = { class: "bms-table__headers bms-table__row" };
|
|
96785
|
+
const _hoisted_12$1 = { key: 0 };
|
|
96786
|
+
const _hoisted_13$1 = ["onClick"];
|
|
96787
|
+
const _hoisted_14$1 = { class: "header-content" };
|
|
96788
|
+
const _hoisted_15$1 = { class: "bms-table__body" };
|
|
96789
|
+
const _hoisted_16$1 = {
|
|
96738
96790
|
key: 1,
|
|
96739
96791
|
class: "bms-table__row"
|
|
96740
96792
|
};
|
|
96741
|
-
const
|
|
96793
|
+
const _hoisted_17 = ["colspan"];
|
|
96742
96794
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
96743
96795
|
__name: "UiBmsTable",
|
|
96744
96796
|
props: /* @__PURE__ */ mergeModels({
|
|
96745
96797
|
headers: {},
|
|
96746
96798
|
items: {},
|
|
96747
|
-
mode: { default:
|
|
96799
|
+
mode: { default: TableMode.NORMAL },
|
|
96748
96800
|
loading: { type: Boolean },
|
|
96749
96801
|
hasFilters: { type: Boolean, default: false },
|
|
96750
96802
|
sort: { default: () => ({
|
|
@@ -96881,18 +96933,20 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96881
96933
|
});
|
|
96882
96934
|
return (_ctx, _cache) => {
|
|
96883
96935
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
96884
|
-
createElementVNode("div",
|
|
96885
|
-
|
|
96886
|
-
|
|
96936
|
+
createElementVNode("div", {
|
|
96937
|
+
class: normalizeClass(["bms-table__actions", { "bms-table__actions--small": __props.mode === unref(TableMode).SMALL }])
|
|
96938
|
+
}, [
|
|
96939
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
96940
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
96887
96941
|
renderSlot(_ctx.$slots, "custom-actions", {}, void 0, true)
|
|
96888
96942
|
]),
|
|
96889
96943
|
renderSlot(_ctx.$slots, "saved-filters", {}, void 0, true)
|
|
96890
96944
|
]),
|
|
96891
|
-
createElementVNode("div",
|
|
96945
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
96892
96946
|
renderSlot(_ctx.$slots, "search", {}, void 0, true)
|
|
96893
96947
|
])
|
|
96894
|
-
]),
|
|
96895
|
-
__props.hasFilters ? (openBlock(), createElementBlock("div",
|
|
96948
|
+
], 2),
|
|
96949
|
+
__props.hasFilters ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
96896
96950
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true)
|
|
96897
96951
|
])) : createCommentVNode("", true),
|
|
96898
96952
|
__props.selectMode === unref(SelectMode).ALL || selectedItems.value.length > 0 && __props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createBlock(BmsAlert, {
|
|
@@ -96904,11 +96958,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96904
96958
|
message: withCtx(() => [
|
|
96905
96959
|
__props.selectMode === unref(SelectMode).ALL || selectedItems.value.length === __props.totalSize ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
96906
96960
|
createTextVNode(" Vous avez sélectionné la totalité des " + toDisplayString(__props.totalSize) + " éléments. ", 1)
|
|
96907
|
-
], 64)) : (openBlock(), createElementBlock("span",
|
|
96961
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_6$2, [
|
|
96908
96962
|
selectedItems.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
96909
96963
|
_cache[1] || (_cache[1] = createElementVNode("strong", null, "1", -1)),
|
|
96910
96964
|
_cache[2] || (_cache[2] = createTextVNode(" élément du tableau est sélectionné. ", -1))
|
|
96911
|
-
], 64)) : (openBlock(), createElementBlock("strong",
|
|
96965
|
+
], 64)) : (openBlock(), createElementBlock("strong", _hoisted_7$2, toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
|
|
96912
96966
|
__props.totalSize < __props.maxSelectedSize ? (openBlock(), createElementBlock("span", {
|
|
96913
96967
|
key: 2,
|
|
96914
96968
|
class: "select-mode-all",
|
|
@@ -96922,10 +96976,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96922
96976
|
_: 3
|
|
96923
96977
|
}, 8, ["type"])) : createCommentVNode("", true),
|
|
96924
96978
|
_cache[4] || (_cache[4] = createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
|
|
96925
|
-
createElementVNode("div",
|
|
96979
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
96926
96980
|
createVNode(Transition, { name: "fade" }, {
|
|
96927
96981
|
default: withCtx(() => [
|
|
96928
|
-
__props.loading ? (openBlock(), createElementBlock("div",
|
|
96982
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
96929
96983
|
createVNode(BmsLoader)
|
|
96930
96984
|
])) : createCommentVNode("", true)
|
|
96931
96985
|
]),
|
|
@@ -96943,9 +96997,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96943
96997
|
ref_key: "mainComponent",
|
|
96944
96998
|
ref: mainComponent
|
|
96945
96999
|
}, [
|
|
96946
|
-
createElementVNode("thead",
|
|
96947
|
-
createElementVNode("tr",
|
|
96948
|
-
__props.selectable ? (openBlock(), createElementBlock("th",
|
|
97000
|
+
createElementVNode("thead", _hoisted_10$1, [
|
|
97001
|
+
createElementVNode("tr", _hoisted_11$1, [
|
|
97002
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_12$1, [
|
|
96949
97003
|
__props.selectMode !== unref(SelectMode).SINGLE ? (openBlock(), createBlock(UiBmsInputCheckbox, {
|
|
96950
97004
|
key: 0,
|
|
96951
97005
|
name: "select-all",
|
|
@@ -96966,7 +97020,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96966
97020
|
key: header.label,
|
|
96967
97021
|
onClick: ($event) => emits("clickHeader", header)
|
|
96968
97022
|
}, [
|
|
96969
|
-
createElementVNode("span",
|
|
97023
|
+
createElementVNode("span", _hoisted_14$1, [
|
|
96970
97024
|
createTextVNode(toDisplayString(header.label) + " ", 1),
|
|
96971
97025
|
header.sortable ? (openBlock(), createBlock(resolveDynamicComponent(getSortComponent(header)), {
|
|
96972
97026
|
key: 0,
|
|
@@ -96974,11 +97028,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96974
97028
|
class: "header-content-sort"
|
|
96975
97029
|
})) : createCommentVNode("", true)
|
|
96976
97030
|
])
|
|
96977
|
-
], 14,
|
|
97031
|
+
], 14, _hoisted_13$1);
|
|
96978
97032
|
}), 128))
|
|
96979
97033
|
])
|
|
96980
97034
|
], 512),
|
|
96981
|
-
createElementVNode("tbody",
|
|
97035
|
+
createElementVNode("tbody", _hoisted_15$1, [
|
|
96982
97036
|
__props.items.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.items, (item) => {
|
|
96983
97037
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
96984
97038
|
createVNode(UiBmsTableRow, {
|
|
@@ -96988,7 +97042,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
96988
97042
|
headers: filteredHeaders.value,
|
|
96989
97043
|
"select-mode": __props.selectMode,
|
|
96990
97044
|
"selectable-disabled": __props.selectableDisabled,
|
|
96991
|
-
dense: __props.mode ===
|
|
97045
|
+
dense: __props.mode === unref(TableMode).DENSE || __props.mode === unref(TableMode).SMALL,
|
|
96992
97046
|
onSelect: onItemSelect
|
|
96993
97047
|
}, createSlots({
|
|
96994
97048
|
default: withCtx(({ row }) => [
|
|
@@ -97027,7 +97081,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
97027
97081
|
]), 1032, ["item", "selected-items", "selectable", "headers", "select-mode", "selectable-disabled"])
|
|
97028
97082
|
], true) : createCommentVNode("", true)
|
|
97029
97083
|
], 64);
|
|
97030
|
-
}), 128)) : (openBlock(), createElementBlock("tr",
|
|
97084
|
+
}), 128)) : (openBlock(), createElementBlock("tr", _hoisted_16$1, [
|
|
97031
97085
|
createElementVNode("td", {
|
|
97032
97086
|
colspan: __props.selectable ? filteredHeaders.value.length + 1 : filteredHeaders.value.length,
|
|
97033
97087
|
class: "bms-table__cell bms-table__cell--empty"
|
|
@@ -97035,7 +97089,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
97035
97089
|
!props.loading ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
97036
97090
|
_cache[3] || (_cache[3] = createTextVNode("Aucune donnée", -1))
|
|
97037
97091
|
], true) : createCommentVNode("", true)
|
|
97038
|
-
], 8,
|
|
97092
|
+
], 8, _hoisted_17)
|
|
97039
97093
|
]))
|
|
97040
97094
|
])
|
|
97041
97095
|
], 2)) : createCommentVNode("", true),
|
|
@@ -97053,7 +97107,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
97053
97107
|
}
|
|
97054
97108
|
});
|
|
97055
97109
|
|
|
97056
|
-
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
97110
|
+
const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f6b2c936"]]);
|
|
97057
97111
|
|
|
97058
97112
|
const _hoisted_1$a = { class: "filter-button-container" };
|
|
97059
97113
|
const _hoisted_2$8 = {
|
|
@@ -97064,7 +97118,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
97064
97118
|
__name: "UiFilterButton",
|
|
97065
97119
|
props: {
|
|
97066
97120
|
isFilterVisible: { type: Boolean, default: false },
|
|
97067
|
-
activeFiltersNb: { default: 0 }
|
|
97121
|
+
activeFiltersNb: { default: 0 },
|
|
97122
|
+
small: { type: Boolean, default: false }
|
|
97068
97123
|
},
|
|
97069
97124
|
emits: ["toggleFilters"],
|
|
97070
97125
|
setup(__props, { emit: __emit }) {
|
|
@@ -97075,17 +97130,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
97075
97130
|
);
|
|
97076
97131
|
return (_ctx, _cache) => {
|
|
97077
97132
|
return openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
97078
|
-
createVNode(_sfc_main$
|
|
97133
|
+
createVNode(_sfc_main$1r, {
|
|
97079
97134
|
class: "filter-button",
|
|
97080
97135
|
color: __props.isFilterVisible ? unref(StatusType).Default : unref(StatusType).Information,
|
|
97081
97136
|
mode: __props.isFilterVisible ? "fill" : "ghost",
|
|
97137
|
+
small: __props.small,
|
|
97082
97138
|
onClick: _cache[0] || (_cache[0] = ($event) => $emits("toggleFilters"))
|
|
97083
97139
|
}, {
|
|
97084
97140
|
default: withCtx(() => [
|
|
97085
97141
|
createVNode(unref(Funnel))
|
|
97086
97142
|
]),
|
|
97087
97143
|
_: 1
|
|
97088
|
-
}, 8, ["color", "mode"]),
|
|
97144
|
+
}, 8, ["color", "mode", "small"]),
|
|
97089
97145
|
createVNode(Transition, { name: "indicator-scale" }, {
|
|
97090
97146
|
default: withCtx(() => [
|
|
97091
97147
|
showIndicator.value ? (openBlock(), createElementBlock("span", _hoisted_2$8, toDisplayString(__props.activeFiltersNb), 1)) : createCommentVNode("", true)
|
|
@@ -97097,7 +97153,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
97097
97153
|
}
|
|
97098
97154
|
});
|
|
97099
97155
|
|
|
97100
|
-
const UiFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
97156
|
+
const UiFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-36a9eb9a"]]);
|
|
97101
97157
|
|
|
97102
97158
|
const LOCAL_STORAGE_USER_PREF_KEY = "userPref";
|
|
97103
97159
|
const useUserPref = () => {
|
|
@@ -99183,16 +99239,15 @@ function requireDebounce () {
|
|
|
99183
99239
|
var debounceExports = requireDebounce();
|
|
99184
99240
|
const _debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
99185
99241
|
|
|
99186
|
-
const _hoisted_1$9 = { class: "
|
|
99187
|
-
const _hoisted_2$7 = { class: "filters__header" };
|
|
99188
|
-
const _hoisted_3$3 = { class: "
|
|
99189
|
-
const _hoisted_4$3 = { class: "input action" };
|
|
99190
|
-
const _hoisted_5$2 = { class: "filters__inputs" };
|
|
99242
|
+
const _hoisted_1$9 = { class: "filters__header" };
|
|
99243
|
+
const _hoisted_2$7 = { class: "filters__header-title" };
|
|
99244
|
+
const _hoisted_3$3 = { class: "input action" };
|
|
99191
99245
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
99192
99246
|
__name: "BmsTableFilters",
|
|
99193
99247
|
props: {
|
|
99194
99248
|
modelValue: {},
|
|
99195
|
-
canSaveFilters: { type: Boolean, default: false }
|
|
99249
|
+
canSaveFilters: { type: Boolean, default: false },
|
|
99250
|
+
small: { type: Boolean, default: false }
|
|
99196
99251
|
},
|
|
99197
99252
|
emits: ["update:modelValue", "saveFilter", "resetFilters", "filterInput", "filterChange"],
|
|
99198
99253
|
setup(__props, { emit: __emit }) {
|
|
@@ -99313,14 +99368,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99313
99368
|
}
|
|
99314
99369
|
);
|
|
99315
99370
|
return (_ctx, _cache) => {
|
|
99316
|
-
return openBlock(), createElementBlock("div",
|
|
99317
|
-
|
|
99318
|
-
|
|
99371
|
+
return openBlock(), createElementBlock("div", {
|
|
99372
|
+
class: normalizeClass(["filters", { "filters--small": __props.small }])
|
|
99373
|
+
}, [
|
|
99374
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
99375
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
99319
99376
|
createVNode(unref(Funnel)),
|
|
99320
99377
|
_cache[2] || (_cache[2] = createTextVNode(" Recherche avancée ", -1))
|
|
99321
99378
|
]),
|
|
99322
|
-
createElementVNode("span",
|
|
99323
|
-
__props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$
|
|
99379
|
+
createElementVNode("span", _hoisted_3$3, [
|
|
99380
|
+
__props.canSaveFilters ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
99324
99381
|
key: 0,
|
|
99325
99382
|
class: "save",
|
|
99326
99383
|
tooltipText: "Sauvegarder le filtre",
|
|
@@ -99331,7 +99388,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99331
99388
|
]),
|
|
99332
99389
|
_: 1
|
|
99333
99390
|
})) : createCommentVNode("", true),
|
|
99334
|
-
createVNode(_sfc_main$
|
|
99391
|
+
createVNode(_sfc_main$1p, {
|
|
99335
99392
|
class: "reset",
|
|
99336
99393
|
tooltipText: "Vider les champs",
|
|
99337
99394
|
onClick: reset
|
|
@@ -99343,7 +99400,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99343
99400
|
})
|
|
99344
99401
|
])
|
|
99345
99402
|
]),
|
|
99346
|
-
createElementVNode("div",
|
|
99403
|
+
createElementVNode("div", {
|
|
99404
|
+
class: normalizeClass(["filters__inputs", { "filters__inputs--small": __props.small }])
|
|
99405
|
+
}, [
|
|
99347
99406
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (filter) => {
|
|
99348
99407
|
return openBlock(), createElementBlock("span", {
|
|
99349
99408
|
class: normalizeClass(["input", {
|
|
@@ -99352,6 +99411,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99352
99411
|
key: filter.key
|
|
99353
99412
|
}, [
|
|
99354
99413
|
(openBlock(), createBlock(resolveDynamicComponent(getFilterComponent(filter.type)), {
|
|
99414
|
+
small: __props.small,
|
|
99355
99415
|
label: filter.label,
|
|
99356
99416
|
inputType: filter.inputType,
|
|
99357
99417
|
modelValue: transformValueForComponent(filter?.value, filter.type),
|
|
@@ -99367,10 +99427,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99367
99427
|
value: e.target.value,
|
|
99368
99428
|
e
|
|
99369
99429
|
})
|
|
99370
|
-
}, null, 40, ["label", "inputType", "modelValue", "onUpdate:modelValue", "onUpdate:valueFrom", "onUpdate:valueTo", "valueFrom", "valueTo", "autocompleteRequest", "options", "onInput"]))
|
|
99430
|
+
}, null, 40, ["small", "label", "inputType", "modelValue", "onUpdate:modelValue", "onUpdate:valueFrom", "onUpdate:valueTo", "valueFrom", "valueTo", "autocompleteRequest", "options", "onInput"]))
|
|
99371
99431
|
], 2);
|
|
99372
99432
|
}), 128))
|
|
99373
|
-
]),
|
|
99433
|
+
], 2),
|
|
99374
99434
|
createVNode(unref(BmsModal), {
|
|
99375
99435
|
modelValue: savedModalOpened.value,
|
|
99376
99436
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => savedModalOpened.value = $event),
|
|
@@ -99391,12 +99451,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
99391
99451
|
]),
|
|
99392
99452
|
_: 1
|
|
99393
99453
|
}, 8, ["modelValue"])
|
|
99394
|
-
]);
|
|
99454
|
+
], 2);
|
|
99395
99455
|
};
|
|
99396
99456
|
}
|
|
99397
99457
|
});
|
|
99398
99458
|
|
|
99399
|
-
const BmsTableFilters = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
99459
|
+
const BmsTableFilters = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-04b66f64"]]);
|
|
99400
99460
|
|
|
99401
99461
|
/**
|
|
99402
99462
|
* Create a bound version of a function with a specified `this` context
|
|
@@ -103322,7 +103382,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103322
103382
|
headers: {},
|
|
103323
103383
|
filters: { default: () => [] },
|
|
103324
103384
|
url: {},
|
|
103325
|
-
mode: { default:
|
|
103385
|
+
mode: { default: TableMode.NORMAL },
|
|
103326
103386
|
persistent: { type: Boolean, default: true },
|
|
103327
103387
|
pagination: { default: () => [25, 50, 100] },
|
|
103328
103388
|
size: { default: 25 },
|
|
@@ -103530,6 +103590,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103530
103590
|
selectedItems.value = [];
|
|
103531
103591
|
};
|
|
103532
103592
|
const onSelectAll = () => emits("update:selectMode", SelectMode.ALL);
|
|
103593
|
+
const isTableSmall = computed(() => props.mode === TableMode.SMALL);
|
|
103533
103594
|
return (_ctx, _cache) => {
|
|
103534
103595
|
return openBlock(), createBlock(UiBmsTable, {
|
|
103535
103596
|
selectedItems: selectedItems.value,
|
|
@@ -103561,11 +103622,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103561
103622
|
modelValue: unref(filters),
|
|
103562
103623
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(filters) ? filters.value = $event : null),
|
|
103563
103624
|
canSaveFilters: __props.canSaveFilters,
|
|
103625
|
+
small: __props.mode == "small",
|
|
103564
103626
|
onSaveFilter,
|
|
103565
103627
|
onResetFilters: unref(resetFilters),
|
|
103566
103628
|
onFilterInput: _cache[1] || (_cache[1] = (filterEvent) => emits("filterInput", filterEvent)),
|
|
103567
103629
|
onFilterChange: _cache[2] || (_cache[2] = (filterEvent) => emits("filterChange", filterEvent))
|
|
103568
|
-
}, null, 8, ["modelValue", "canSaveFilters", "onResetFilters"])
|
|
103630
|
+
}, null, 8, ["modelValue", "canSaveFilters", "small", "onResetFilters"])
|
|
103569
103631
|
], 512), [
|
|
103570
103632
|
[vShow, unref(isFilterVisible)]
|
|
103571
103633
|
])
|
|
@@ -103594,16 +103656,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103594
103656
|
search: withCtx(() => [
|
|
103595
103657
|
unref(filters).length > 0 ? (openBlock(), createBlock(UiFilterButton, {
|
|
103596
103658
|
key: 0,
|
|
103659
|
+
small: isTableSmall.value,
|
|
103597
103660
|
activeFiltersNb: unref(numberOfActiveFilters),
|
|
103598
103661
|
isFilterVisible: unref(isFilterVisible),
|
|
103599
103662
|
onToggleFilters: unref(toggleFilters)
|
|
103600
|
-
}, null, 8, ["activeFiltersNb", "isFilterVisible", "onToggleFilters"])) : createCommentVNode("", true),
|
|
103663
|
+
}, null, 8, ["small", "activeFiltersNb", "isFilterVisible", "onToggleFilters"])) : createCommentVNode("", true),
|
|
103601
103664
|
!__props.disableSearch ? renderSlot(_ctx.$slots, "search", { key: 1 }, () => [
|
|
103602
103665
|
createVNode(BmsSearch, {
|
|
103603
103666
|
modelValue: unref(search),
|
|
103604
103667
|
class: "table-search",
|
|
103668
|
+
small: isTableSmall.value,
|
|
103605
103669
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => search.value = $event)
|
|
103606
|
-
}, null, 8, ["modelValue"])
|
|
103670
|
+
}, null, 8, ["modelValue", "small"])
|
|
103607
103671
|
], true) : createCommentVNode("", true)
|
|
103608
103672
|
]),
|
|
103609
103673
|
empty: withCtx(() => [
|
|
@@ -103623,10 +103687,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103623
103687
|
currentPage: props.initialPage === 1 ? unref(currentPage) - 1 : unref(currentPage),
|
|
103624
103688
|
sizes: unref(paginationsOptions),
|
|
103625
103689
|
pages: totalPages.value,
|
|
103690
|
+
small: isTableSmall.value,
|
|
103626
103691
|
onPrev: onPrevClick,
|
|
103627
103692
|
onNext: onNextClick,
|
|
103628
103693
|
onGo: _cache[5] || (_cache[5] = ($event) => go($event))
|
|
103629
|
-
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
|
|
103694
|
+
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages", "small"])
|
|
103630
103695
|
])) : createCommentVNode("", true)
|
|
103631
103696
|
]),
|
|
103632
103697
|
_: 2
|
|
@@ -103644,7 +103709,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
103644
103709
|
}
|
|
103645
103710
|
});
|
|
103646
103711
|
|
|
103647
|
-
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
103712
|
+
const BmsServerTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-c674a0d1"]]);
|
|
103648
103713
|
|
|
103649
103714
|
const _hoisted_1$7 = { class: "filters-container" };
|
|
103650
103715
|
const _hoisted_2$5 = {
|
|
@@ -103660,7 +103725,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103660
103725
|
savedFilters: { default: () => [] },
|
|
103661
103726
|
canSaveFilters: { type: Boolean, default: false },
|
|
103662
103727
|
items: {},
|
|
103663
|
-
mode: { default:
|
|
103728
|
+
mode: { default: TableMode.NORMAL },
|
|
103664
103729
|
persistent: { type: Boolean, default: true },
|
|
103665
103730
|
pagination: { default: () => [25, 50, 100] },
|
|
103666
103731
|
size: { default: 25 },
|
|
@@ -103813,6 +103878,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103813
103878
|
selectedItems.value = elementsAndChildElements.value;
|
|
103814
103879
|
};
|
|
103815
103880
|
const totalSize = computed(() => elementsAndChildElements.value.length);
|
|
103881
|
+
const isTableSmall = computed(() => props.mode === TableMode.SMALL);
|
|
103816
103882
|
return (_ctx, _cache) => {
|
|
103817
103883
|
return openBlock(), createBlock(UiBmsTable, {
|
|
103818
103884
|
selectedItems: selectedItems.value,
|
|
@@ -103840,12 +103906,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103840
103906
|
createVNode(BmsTableFilters, {
|
|
103841
103907
|
modelValue: unref(filters),
|
|
103842
103908
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(filters) ? filters.value = $event : null),
|
|
103909
|
+
small: isTableSmall.value,
|
|
103843
103910
|
canSaveFilters: __props.canSaveFilters,
|
|
103844
103911
|
onSaveFilter,
|
|
103845
103912
|
onResetFilters: unref(resetFilters),
|
|
103846
103913
|
onFilterInput: _cache[1] || (_cache[1] = (filterEvent) => emits("filterInput", filterEvent)),
|
|
103847
103914
|
onFilterChange: _cache[2] || (_cache[2] = (filterEvent) => emits("filterChange", filterEvent))
|
|
103848
|
-
}, null, 8, ["modelValue", "canSaveFilters", "onResetFilters"])
|
|
103915
|
+
}, null, 8, ["modelValue", "small", "canSaveFilters", "onResetFilters"])
|
|
103849
103916
|
], 512), [
|
|
103850
103917
|
[vShow, unref(isFilterVisible)]
|
|
103851
103918
|
])
|
|
@@ -103878,14 +103945,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103878
103945
|
key: 0,
|
|
103879
103946
|
activeFiltersNb: unref(numberOfActiveFilters),
|
|
103880
103947
|
isFilterVisible: unref(isFilterVisible),
|
|
103881
|
-
onToggleFilters: unref(toggleFilters)
|
|
103882
|
-
|
|
103948
|
+
onToggleFilters: unref(toggleFilters),
|
|
103949
|
+
small: isTableSmall.value
|
|
103950
|
+
}, null, 8, ["activeFiltersNb", "isFilterVisible", "onToggleFilters", "small"])) : createCommentVNode("", true),
|
|
103883
103951
|
!__props.disableSearch ? renderSlot(_ctx.$slots, "search", { key: 1 }, () => [
|
|
103884
103952
|
createVNode(BmsSearch, {
|
|
103885
103953
|
modelValue: unref(search),
|
|
103886
103954
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(search) ? search.value = $event : null),
|
|
103887
|
-
class: "table-search"
|
|
103888
|
-
|
|
103955
|
+
class: "table-search",
|
|
103956
|
+
small: isTableSmall.value
|
|
103957
|
+
}, null, 8, ["modelValue", "small"])
|
|
103889
103958
|
], true) : createCommentVNode("", true)
|
|
103890
103959
|
]),
|
|
103891
103960
|
empty: withCtx(() => [
|
|
@@ -103905,10 +103974,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103905
103974
|
currentPage: unref(currentPage),
|
|
103906
103975
|
sizes: unref(paginationsOptions),
|
|
103907
103976
|
pages: unref(totalPages),
|
|
103977
|
+
small: isTableSmall.value,
|
|
103908
103978
|
onPrev: onPrevClick,
|
|
103909
103979
|
onNext: onNextClick,
|
|
103910
103980
|
onGo: _cache[5] || (_cache[5] = ($event) => go($event))
|
|
103911
|
-
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages"])
|
|
103981
|
+
}, null, 8, ["currentSize", "total", "currentPage", "sizes", "pages", "small"])
|
|
103912
103982
|
])) : createCommentVNode("", true)
|
|
103913
103983
|
]),
|
|
103914
103984
|
_: 2
|
|
@@ -103926,7 +103996,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
103926
103996
|
}
|
|
103927
103997
|
});
|
|
103928
103998
|
|
|
103929
|
-
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
103999
|
+
const BmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ae9bcfca"]]);
|
|
103930
104000
|
|
|
103931
104001
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
103932
104002
|
__name: "BmsCocarde",
|
|
@@ -103984,7 +104054,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
103984
104054
|
class: "bms-notification__icon"
|
|
103985
104055
|
})),
|
|
103986
104056
|
createElementVNode("div", _hoisted_2$4, toDisplayString(__props.notification.text), 1),
|
|
103987
|
-
createVNode(_sfc_main$
|
|
104057
|
+
createVNode(_sfc_main$1p, {
|
|
103988
104058
|
class: "bms-notification__close-button",
|
|
103989
104059
|
onClick: closeNotification
|
|
103990
104060
|
}, {
|
|
@@ -104004,7 +104074,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
104004
104074
|
}
|
|
104005
104075
|
});
|
|
104006
104076
|
|
|
104007
|
-
const NotificationItem = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
104077
|
+
const NotificationItem = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cf005e57"]]);
|
|
104008
104078
|
|
|
104009
104079
|
const _hoisted_1$5 = { class: "bms-notifications" };
|
|
104010
104080
|
const _hoisted_2$3 = { class: "bms-notifications__list" };
|
|
@@ -104225,7 +104295,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
104225
104295
|
createElementVNode("div", null, [
|
|
104226
104296
|
createElementVNode("div", _hoisted_5$1, [
|
|
104227
104297
|
createElementVNode("span", _hoisted_6$1, toDisplayString(__props.problem.detail), 1),
|
|
104228
|
-
createVNode(unref(_sfc_main$
|
|
104298
|
+
createVNode(unref(_sfc_main$1p), {
|
|
104229
104299
|
class: "copyToClipboardButton",
|
|
104230
104300
|
onClick: _cache[1] || (_cache[1] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
104231
104301
|
}, {
|
|
@@ -104260,7 +104330,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
104260
104330
|
createElementVNode("div", null, [
|
|
104261
104331
|
createElementVNode("div", _hoisted_8$1, [
|
|
104262
104332
|
createElementVNode("span", _hoisted_9, toDisplayString(__props.problem.correlationId), 1),
|
|
104263
|
-
createVNode(unref(_sfc_main$
|
|
104333
|
+
createVNode(unref(_sfc_main$1p), {
|
|
104264
104334
|
class: "copyToClipboardButton",
|
|
104265
104335
|
onClick: _cache[3] || (_cache[3] = ($event) => onCopyToClipboard(__props.problem.detail))
|
|
104266
104336
|
}, {
|
|
@@ -104470,7 +104540,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
104470
104540
|
);
|
|
104471
104541
|
return (_ctx, _cache) => {
|
|
104472
104542
|
return isFeatureFlippingOn.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
104473
|
-
createVNode(_sfc_main$
|
|
104543
|
+
createVNode(_sfc_main$1q, {
|
|
104474
104544
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click")),
|
|
104475
104545
|
mode: unref(StatusType).Danger
|
|
104476
104546
|
}, {
|
|
@@ -106767,8 +106837,9 @@ const routerHistoryPlugin = {
|
|
|
106767
106837
|
|
|
106768
106838
|
const createBmsUi = () => ({
|
|
106769
106839
|
install: (app) => {
|
|
106770
|
-
app.component("BmsButton", _sfc_main$
|
|
106771
|
-
app.component("BmsIconButton", _sfc_main$
|
|
106840
|
+
app.component("BmsButton", _sfc_main$1q);
|
|
106841
|
+
app.component("BmsIconButton", _sfc_main$1p);
|
|
106842
|
+
app.component("BmsToggleIcon", BmsToggleIcon);
|
|
106772
106843
|
app.component("BmsAlert", BmsAlert);
|
|
106773
106844
|
app.component("BmsBadge", BmsBadge);
|
|
106774
106845
|
app.component("BmsCaption", BmsCaption);
|
|
@@ -106815,7 +106886,7 @@ const createBmsUi = () => ({
|
|
|
106815
106886
|
app.component("BmsBackButton", BmsBackButton);
|
|
106816
106887
|
app.component("BmsBreadcrumb", BmsBreadcrumb);
|
|
106817
106888
|
app.component("BmsFixedMenu", BmsFixedMenu);
|
|
106818
|
-
app.component("BmsLink", _sfc_main$
|
|
106889
|
+
app.component("BmsLink", _sfc_main$1t);
|
|
106819
106890
|
app.component("BmsMenu", BmsMenu);
|
|
106820
106891
|
app.component("BmsMenuNav", BmsMenuNav);
|
|
106821
106892
|
app.component("BmsShortLinkMenu", BmsShortLinkMenu);
|
|
@@ -106832,5 +106903,5 @@ const createBmsUi = () => ({
|
|
|
106832
106903
|
}
|
|
106833
106904
|
});
|
|
106834
106905
|
|
|
106835
|
-
export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$
|
|
106906
|
+
export { BMS_FORM_VALID_URL_REGEX, BmsAlert, BmsAutocomplete, BmsBackButton, BmsBadge, BmsBetweenInput, BmsBreadcrumb, _sfc_main$1q as BmsButton, BmsCaption, BmsCard, BmsChip, BmsCircularProgress, BmsCocarde, BmsContentPageLayout, BmsDraggableList, BmsEmptyScreen, BmsFilePicker, BmsFixedMenu, BmsFloatingWindow, BmsForm, BmsGhost, BmsHeader, BmsHeaderTitle, _sfc_main$1p 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$1t 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, BmsToggleIcon, BmsTooltip, ChipColor, CocardeBorder, ColumnType, ConfirmInstance, InputType, KeycloakAuthAdapterInstance, RuntimeEnv, SelectMode, SortValue, StatusType, TableMode, 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 };
|
|
106836
106907
|
//# sourceMappingURL=sipa-bms-ui.es.js.map
|