@ouestfrance/sipa-bms-ui 8.14.2 → 8.14.4

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.
@@ -310,7 +310,7 @@ const enforceActionsColumnHeader = (headers) => {
310
310
  };
311
311
 
312
312
  const _hoisted_1$Z = ["href", "target"];
313
- const _hoisted_2$D = ["href", "onClick", "target"];
313
+ const _hoisted_2$E = ["href", "onClick", "target"];
314
314
  const _sfc_main$1o = /* @__PURE__ */ defineComponent({
315
315
  __name: "BmsLink",
316
316
  props: {
@@ -352,7 +352,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
352
352
  target: __props.target
353
353
  }, _ctx.$attrs), [
354
354
  renderSlot(_ctx.$slots, "default")
355
- ], 16, _hoisted_2$D)
355
+ ], 16, _hoisted_2$E)
356
356
  ]),
357
357
  _: 3
358
358
  }, 8, ["to"]));
@@ -402,7 +402,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
402
402
  });
403
403
 
404
404
  const _hoisted_1$X = { class: "start" };
405
- const _hoisted_2$C = { class: "content" };
405
+ const _hoisted_2$D = { class: "content" };
406
406
  const _hoisted_3$k = { class: "end" };
407
407
  const _sfc_main$1m = /* @__PURE__ */ defineComponent({
408
408
  __name: "UiButton",
@@ -422,7 +422,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
422
422
  createElementVNode("span", _hoisted_1$X, [
423
423
  renderSlot(_ctx.$slots, "start")
424
424
  ]),
425
- createElementVNode("span", _hoisted_2$C, [
425
+ createElementVNode("span", _hoisted_2$D, [
426
426
  renderSlot(_ctx.$slots, "default")
427
427
  ]),
428
428
  createElementVNode("span", _hoisted_3$k, [
@@ -36845,7 +36845,7 @@ const lucideIcons = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
36845
36845
  }, Symbol.toStringTag, { value: 'Module' }));
36846
36846
 
36847
36847
  const _hoisted_1$W = { class: "info-line" };
36848
- const _hoisted_2$B = { class: "icon" };
36848
+ const _hoisted_2$C = { class: "icon" };
36849
36849
  const _hoisted_3$j = { class: "message" };
36850
36850
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
36851
36851
  __name: "BmsAlert",
@@ -36873,7 +36873,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
36873
36873
  class: normalizeClass(["alert", `alert-${props.type}`])
36874
36874
  }, [
36875
36875
  createElementVNode("div", _hoisted_1$W, [
36876
- createElementVNode("span", _hoisted_2$B, [
36876
+ createElementVNode("span", _hoisted_2$C, [
36877
36877
  (openBlock(), createBlock(resolveDynamicComponent(alertIcon.value), { size: 20 }))
36878
36878
  ]),
36879
36879
  createElementVNode("span", _hoisted_3$j, [
@@ -36944,7 +36944,7 @@ const _hoisted_1$U = {
36944
36944
  key: 0,
36945
36945
  class: "icon"
36946
36946
  };
36947
- const _hoisted_2$A = ["innerHTML"];
36947
+ const _hoisted_2$B = ["innerHTML"];
36948
36948
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
36949
36949
  __name: "BmsCaption",
36950
36950
  props: {
@@ -36982,7 +36982,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
36982
36982
  createElementVNode("span", {
36983
36983
  class: "label",
36984
36984
  innerHTML: unref(sanitizeHtml)(computedCaption.value.label)
36985
- }, null, 8, _hoisted_2$A)
36985
+ }, null, 8, _hoisted_2$B)
36986
36986
  ], 2);
36987
36987
  };
36988
36988
  }
@@ -36991,7 +36991,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
36991
36991
  const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-b08dd4e0"]]);
36992
36992
 
36993
36993
  const _hoisted_1$T = { class: "circular-progress" };
36994
- const _hoisted_2$z = {
36994
+ const _hoisted_2$A = {
36995
36995
  key: 0,
36996
36996
  viewBox: "0 0 100 100"
36997
36997
  };
@@ -37004,7 +37004,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
37004
37004
  setup(__props) {
37005
37005
  return (_ctx, _cache) => {
37006
37006
  return openBlock(), createElementBlock("div", _hoisted_1$T, [
37007
- __props.progress ? (openBlock(), createElementBlock("svg", _hoisted_2$z, [
37007
+ __props.progress ? (openBlock(), createElementBlock("svg", _hoisted_2$A, [
37008
37008
  createElementVNode("g", _hoisted_3$i, [
37009
37009
  _cache[0] || (_cache[0] = createElementVNode("circle", {
37010
37010
  opacity: ".08",
@@ -38057,7 +38057,7 @@ const _hoisted_1$R = {
38057
38057
  class: "options-list",
38058
38058
  "data-testid": "select-options"
38059
38059
  };
38060
- const _hoisted_2$y = ["data-testid", "onClick"];
38060
+ const _hoisted_2$z = ["data-testid", "onClick"];
38061
38061
  const _sfc_main$1c = /* @__PURE__ */ defineComponent({
38062
38062
  __name: "FieldDatalist",
38063
38063
  props: {
@@ -38140,7 +38140,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
38140
38140
  renderSlot(_ctx.$slots, "option", { option }, () => [
38141
38141
  createTextVNode(toDisplayString(option.label === null ? "N/A" : option.label), 1)
38142
38142
  ], true)
38143
- ], 10, _hoisted_2$y);
38143
+ ], 10, _hoisted_2$z);
38144
38144
  }), 128)),
38145
38145
  displayNewOption.value ? (openBlock(), createElementBlock("li", {
38146
38146
  key: 0,
@@ -38158,7 +38158,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
38158
38158
  const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-ba5302fc"]]);
38159
38159
 
38160
38160
  const _hoisted_1$Q = { class: "field__input-label" };
38161
- const _hoisted_2$x = { class: "field__input-icon field__input-icon--start" };
38161
+ const _hoisted_2$y = { class: "field__input-icon field__input-icon--start" };
38162
38162
  const _hoisted_3$h = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
38163
38163
  const _hoisted_4$b = { class: "field__input-icon field__input-icon--end" };
38164
38164
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
@@ -38214,7 +38214,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
38214
38214
  createElementVNode("template", _hoisted_1$Q, [
38215
38215
  renderSlot(_ctx.$slots, "label", {}, void 0, true)
38216
38216
  ]),
38217
- createElementVNode("span", _hoisted_2$x, [
38217
+ createElementVNode("span", _hoisted_2$y, [
38218
38218
  renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)
38219
38219
  ]),
38220
38220
  createElementVNode("input", {
@@ -38242,7 +38242,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
38242
38242
  }
38243
38243
  });
38244
38244
 
38245
- const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-078d99d6"]]);
38245
+ const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-4c74b915"]]);
38246
38246
 
38247
38247
  const _sfc_main$1a = /* @__PURE__ */ defineComponent({
38248
38248
  __name: "RawAutocomplete",
@@ -38335,10 +38335,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
38335
38335
  }
38336
38336
  };
38337
38337
  const clearInput = () => {
38338
- inputText.value = "";
38339
- modelValue.value = null;
38340
- setFocus();
38341
- closeDatalist();
38338
+ if (!props.disabled) {
38339
+ inputText.value = "";
38340
+ modelValue.value = null;
38341
+ setFocus();
38342
+ closeDatalist();
38343
+ }
38342
38344
  };
38343
38345
  __expose({
38344
38346
  setFocus
@@ -38414,10 +38416,10 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
38414
38416
  }
38415
38417
  });
38416
38418
 
38417
- const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-eb4d55e4"]]);
38419
+ const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-15343285"]]);
38418
38420
 
38419
38421
  const _hoisted_1$P = ["innerHTML"];
38420
- const _hoisted_2$w = ["innerHTML"];
38422
+ const _hoisted_2$x = ["innerHTML"];
38421
38423
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
38422
38424
  __name: "BmsAutocomplete",
38423
38425
  props: /* @__PURE__ */ mergeModels({
@@ -38484,7 +38486,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
38484
38486
  key: 0,
38485
38487
  class: "icon datalist-icon",
38486
38488
  innerHTML: option.icon
38487
- }, null, 8, _hoisted_2$w)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
38489
+ }, null, 8, _hoisted_2$x)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
38488
38490
  key: 1,
38489
38491
  class: "icon datalist-icon"
38490
38492
  }))
@@ -38512,7 +38514,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
38512
38514
  const BmsAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-43ad5137"]]);
38513
38515
 
38514
38516
  const _hoisted_1$O = ["innerHTML"];
38515
- const _hoisted_2$v = ["innerHTML"];
38517
+ const _hoisted_2$w = ["innerHTML"];
38516
38518
  const _sfc_main$18 = /* @__PURE__ */ defineComponent({
38517
38519
  __name: "BmsServerAutocomplete",
38518
38520
  props: /* @__PURE__ */ mergeModels({
@@ -38612,7 +38614,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
38612
38614
  key: 0,
38613
38615
  class: "icon datalist-icon",
38614
38616
  innerHTML: option.icon
38615
- }, null, 8, _hoisted_2$v)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
38617
+ }, null, 8, _hoisted_2$w)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
38616
38618
  key: 1,
38617
38619
  class: "icon datalist-icon"
38618
38620
  }))
@@ -38764,7 +38766,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
38764
38766
  const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-72b945cc"]]);
38765
38767
 
38766
38768
  const _hoisted_1$N = { class: "file-upload" };
38767
- const _hoisted_2$u = { class: "file-upload__label" };
38769
+ const _hoisted_2$v = { class: "file-upload__label" };
38768
38770
  const _hoisted_3$g = { key: 1 };
38769
38771
  const _hoisted_4$a = { class: "file-upload__file-name" };
38770
38772
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
@@ -38847,7 +38849,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
38847
38849
  onDragover: _cache[2] || (_cache[2] = withModifiers(() => {
38848
38850
  }, ["prevent"]))
38849
38851
  }, [
38850
- createElementVNode("label", _hoisted_2$u, [
38852
+ createElementVNode("label", _hoisted_2$v, [
38851
38853
  isDragOver.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
38852
38854
  createTextVNode("Déposer votre image ici")
38853
38855
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -38885,7 +38887,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
38885
38887
  const BmsFilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-c892a845"]]);
38886
38888
 
38887
38889
  const _hoisted_1$M = ["disabled", "name", "value"];
38888
- const _hoisted_2$t = {
38890
+ const _hoisted_2$u = {
38889
38891
  key: 0,
38890
38892
  class: "input-checkbox-info"
38891
38893
  };
@@ -38928,7 +38930,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
38928
38930
  }, null, 8, _hoisted_1$M), [
38929
38931
  [vModelCheckbox, inputValue.value]
38930
38932
  ]),
38931
- hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$t, [
38933
+ hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
38932
38934
  renderSlot(_ctx.$slots, "label", {}, () => [
38933
38935
  createTextVNode(toDisplayString(__props.label), 1)
38934
38936
  ], true)
@@ -67833,11 +67835,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
67833
67835
  createVNode(unref(T), {
67834
67836
  modelValue: input.value,
67835
67837
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => input.value = $event),
67838
+ disabled: __props.disabled,
67836
67839
  autofocus: true,
67837
67840
  "indent-with-tab": true,
67838
67841
  "tab-size": 4,
67839
67842
  extensions: extensions.value
67840
- }, null, 8, ["modelValue", "extensions"])
67843
+ }, null, 8, ["modelValue", "disabled", "extensions"])
67841
67844
  ])
67842
67845
  ]),
67843
67846
  _: 1
@@ -67846,7 +67849,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
67846
67849
  }
67847
67850
  });
67848
67851
 
67849
- const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-b2a2a2fa"]]);
67852
+ const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-0de8ac2e"]]);
67850
67853
 
67851
67854
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
67852
67855
  __name: "BmsInputText",
@@ -68007,7 +68010,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
68007
68010
  });
68008
68011
 
68009
68012
  const _hoisted_1$K = ["accept"];
68010
- const _hoisted_2$s = ["src"];
68013
+ const _hoisted_2$t = ["src"];
68011
68014
  const _hoisted_3$f = {
68012
68015
  key: 1,
68013
68016
  class: "file-upload__file-name"
@@ -68167,7 +68170,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
68167
68170
  key: 0,
68168
68171
  src: getImageSrc(file),
68169
68172
  class: "file-upload__file-img"
68170
- }, null, 8, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(file.name), 1)),
68173
+ }, null, 8, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(file.name), 1)),
68171
68174
  createVNode(_sfc_main$1k, {
68172
68175
  mode: unref(StatusType).Danger,
68173
68176
  onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
@@ -68188,7 +68191,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
68188
68191
  }
68189
68192
  });
68190
68193
 
68191
- const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-0c91cbf5"]]);
68194
+ const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-07e6912d"]]);
68192
68195
 
68193
68196
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
68194
68197
  __name: "BmsInputNumber",
@@ -68270,7 +68273,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
68270
68273
  });
68271
68274
 
68272
68275
  const _hoisted_1$J = ["value", "name", "disabled", "required"];
68273
- const _hoisted_2$r = {
68276
+ const _hoisted_2$s = {
68274
68277
  key: 0,
68275
68278
  class: "input-radio-info"
68276
68279
  };
@@ -68314,7 +68317,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
68314
68317
  }, null, 8, _hoisted_1$J), [
68315
68318
  [vModelRadio, inputValue.value]
68316
68319
  ]),
68317
- hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$r, [
68320
+ hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$s, [
68318
68321
  renderSlot(_ctx.$slots, "label", {}, () => [
68319
68322
  createTextVNode(toDisplayString(__props.label), 1)
68320
68323
  ], true)
@@ -68566,7 +68569,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
68566
68569
 
68567
68570
  const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-6de1a5c6"]]);
68568
68571
 
68569
- const _hoisted_1$H = { class: "input-switch-info" };
68572
+ const _hoisted_1$H = ["title"];
68573
+ const _hoisted_2$r = { class: "input-switch-info" };
68570
68574
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
68571
68575
  __name: "BmsInputToggle",
68572
68576
  props: {
@@ -68594,16 +68598,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
68594
68598
  }, {
68595
68599
  default: withCtx(() => [
68596
68600
  createElementVNode("label", {
68597
- class: normalizeClass(["input-toggle", { isOn: __props.modelValue, disabled: __props.disabled, overflow: __props.ellipsisLabel }])
68601
+ class: normalizeClass(["input-toggle", { isOn: __props.modelValue, disabled: __props.disabled, overflow: __props.ellipsisLabel }]),
68602
+ title: __props.ellipsisLabel ? __props.label : void 0
68598
68603
  }, [
68599
- createElementVNode("span", _hoisted_1$H, toDisplayString(__props.label), 1),
68604
+ createElementVNode("span", _hoisted_2$r, toDisplayString(__props.label), 1),
68600
68605
  createVNode(UiBmsSwitch, {
68601
68606
  modelValue: __props.modelValue,
68602
68607
  disabled: __props.disabled,
68603
68608
  name: __props.name,
68604
68609
  "onUpdate:modelValue": _cache[0] || (_cache[0] = (value) => _ctx.$emit("update:modelValue", value))
68605
68610
  }, null, 8, ["modelValue", "disabled", "name"])
68606
- ], 2)
68611
+ ], 10, _hoisted_1$H)
68607
68612
  ]),
68608
68613
  _: 1
68609
68614
  }, 8, ["disabled", "small", "ellipsisLabel"]);
@@ -68611,7 +68616,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
68611
68616
  }
68612
68617
  });
68613
68618
 
68614
- const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-9b546877"]]);
68619
+ const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-5f354760"]]);
68615
68620
 
68616
68621
  const _hoisted_1$G = { class: "dismiss-button" };
68617
68622
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
@@ -86150,7 +86155,7 @@ function requireLodash () {
86150
86155
  var lodashExports = requireLodash();
86151
86156
  const _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
86152
86157
 
86153
- const _hoisted_1$E = ["value", "placeholder", "required"];
86158
+ const _hoisted_1$E = ["value", "placeholder", "required", "disabled"];
86154
86159
  const _hoisted_2$p = { class: "icon-toggle-container" };
86155
86160
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
86156
86161
  __name: "BmsSelect",
@@ -86228,6 +86233,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
86228
86233
  value: displayValue.value,
86229
86234
  placeholder: __props.placeholder,
86230
86235
  required: __props.required,
86236
+ disabled: __props.disabled,
86231
86237
  onFocus: openDatalist,
86232
86238
  onClick: openDatalist,
86233
86239
  onKeyup: withKeys(openDatalist, ["down"])
@@ -86250,7 +86256,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
86250
86256
  }
86251
86257
  });
86252
86258
 
86253
- const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-a6c01476"]]);
86259
+ const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7aef9c6c"]]);
86254
86260
 
86255
86261
  const _hoisted_1$D = ["value", "required", "placeholder", "disabled"];
86256
86262
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
@@ -86318,7 +86324,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
86318
86324
  }
86319
86325
  });
86320
86326
 
86321
- const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-b7e10b40"]]);
86327
+ const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-94de6dd9"]]);
86322
86328
 
86323
86329
  const _hoisted_1$C = { class: "page__breadcrumb" };
86324
86330
  const _hoisted_2$o = { class: "page__header" };