@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.
@@ -313,7 +313,7 @@
313
313
  };
314
314
 
315
315
  const _hoisted_1$Z = ["href", "target"];
316
- const _hoisted_2$D = ["href", "onClick", "target"];
316
+ const _hoisted_2$E = ["href", "onClick", "target"];
317
317
  const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
318
318
  __name: "BmsLink",
319
319
  props: {
@@ -355,7 +355,7 @@
355
355
  target: __props.target
356
356
  }, _ctx.$attrs), [
357
357
  vue.renderSlot(_ctx.$slots, "default")
358
- ], 16, _hoisted_2$D)
358
+ ], 16, _hoisted_2$E)
359
359
  ]),
360
360
  _: 3
361
361
  }, 8, ["to"]));
@@ -405,7 +405,7 @@
405
405
  });
406
406
 
407
407
  const _hoisted_1$X = { class: "start" };
408
- const _hoisted_2$C = { class: "content" };
408
+ const _hoisted_2$D = { class: "content" };
409
409
  const _hoisted_3$k = { class: "end" };
410
410
  const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
411
411
  __name: "UiButton",
@@ -425,7 +425,7 @@
425
425
  vue.createElementVNode("span", _hoisted_1$X, [
426
426
  vue.renderSlot(_ctx.$slots, "start")
427
427
  ]),
428
- vue.createElementVNode("span", _hoisted_2$C, [
428
+ vue.createElementVNode("span", _hoisted_2$D, [
429
429
  vue.renderSlot(_ctx.$slots, "default")
430
430
  ]),
431
431
  vue.createElementVNode("span", _hoisted_3$k, [
@@ -36848,7 +36848,7 @@
36848
36848
  }, Symbol.toStringTag, { value: 'Module' }));
36849
36849
 
36850
36850
  const _hoisted_1$W = { class: "info-line" };
36851
- const _hoisted_2$B = { class: "icon" };
36851
+ const _hoisted_2$C = { class: "icon" };
36852
36852
  const _hoisted_3$j = { class: "message" };
36853
36853
  const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
36854
36854
  __name: "BmsAlert",
@@ -36876,7 +36876,7 @@
36876
36876
  class: vue.normalizeClass(["alert", `alert-${props.type}`])
36877
36877
  }, [
36878
36878
  vue.createElementVNode("div", _hoisted_1$W, [
36879
- vue.createElementVNode("span", _hoisted_2$B, [
36879
+ vue.createElementVNode("span", _hoisted_2$C, [
36880
36880
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(alertIcon.value), { size: 20 }))
36881
36881
  ]),
36882
36882
  vue.createElementVNode("span", _hoisted_3$j, [
@@ -36947,7 +36947,7 @@
36947
36947
  key: 0,
36948
36948
  class: "icon"
36949
36949
  };
36950
- const _hoisted_2$A = ["innerHTML"];
36950
+ const _hoisted_2$B = ["innerHTML"];
36951
36951
  const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
36952
36952
  __name: "BmsCaption",
36953
36953
  props: {
@@ -36985,7 +36985,7 @@
36985
36985
  vue.createElementVNode("span", {
36986
36986
  class: "label",
36987
36987
  innerHTML: vue.unref(sanitizeHtml)(computedCaption.value.label)
36988
- }, null, 8, _hoisted_2$A)
36988
+ }, null, 8, _hoisted_2$B)
36989
36989
  ], 2);
36990
36990
  };
36991
36991
  }
@@ -36994,7 +36994,7 @@
36994
36994
  const BmsCaption = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-b08dd4e0"]]);
36995
36995
 
36996
36996
  const _hoisted_1$T = { class: "circular-progress" };
36997
- const _hoisted_2$z = {
36997
+ const _hoisted_2$A = {
36998
36998
  key: 0,
36999
36999
  viewBox: "0 0 100 100"
37000
37000
  };
@@ -37007,7 +37007,7 @@
37007
37007
  setup(__props) {
37008
37008
  return (_ctx, _cache) => {
37009
37009
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
37010
- __props.progress ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_2$z, [
37010
+ __props.progress ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_2$A, [
37011
37011
  vue.createElementVNode("g", _hoisted_3$i, [
37012
37012
  _cache[0] || (_cache[0] = vue.createElementVNode("circle", {
37013
37013
  opacity: ".08",
@@ -38060,7 +38060,7 @@
38060
38060
  class: "options-list",
38061
38061
  "data-testid": "select-options"
38062
38062
  };
38063
- const _hoisted_2$y = ["data-testid", "onClick"];
38063
+ const _hoisted_2$z = ["data-testid", "onClick"];
38064
38064
  const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
38065
38065
  __name: "FieldDatalist",
38066
38066
  props: {
@@ -38143,7 +38143,7 @@
38143
38143
  vue.renderSlot(_ctx.$slots, "option", { option }, () => [
38144
38144
  vue.createTextVNode(vue.toDisplayString(option.label === null ? "N/A" : option.label), 1)
38145
38145
  ], true)
38146
- ], 10, _hoisted_2$y);
38146
+ ], 10, _hoisted_2$z);
38147
38147
  }), 128)),
38148
38148
  displayNewOption.value ? (vue.openBlock(), vue.createElementBlock("li", {
38149
38149
  key: 0,
@@ -38161,7 +38161,7 @@
38161
38161
  const FieldDatalist = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-ba5302fc"]]);
38162
38162
 
38163
38163
  const _hoisted_1$Q = { class: "field__input-label" };
38164
- const _hoisted_2$x = { class: "field__input-icon field__input-icon--start" };
38164
+ const _hoisted_2$y = { class: "field__input-icon field__input-icon--start" };
38165
38165
  const _hoisted_3$h = ["type", "value", "placeholder", "required", "disabled", "max", "min", "minlength", "maxlength"];
38166
38166
  const _hoisted_4$b = { class: "field__input-icon field__input-icon--end" };
38167
38167
  const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
@@ -38217,7 +38217,7 @@
38217
38217
  vue.createElementVNode("template", _hoisted_1$Q, [
38218
38218
  vue.renderSlot(_ctx.$slots, "label", {}, void 0, true)
38219
38219
  ]),
38220
- vue.createElementVNode("span", _hoisted_2$x, [
38220
+ vue.createElementVNode("span", _hoisted_2$y, [
38221
38221
  vue.renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)
38222
38222
  ]),
38223
38223
  vue.createElementVNode("input", {
@@ -38245,7 +38245,7 @@
38245
38245
  }
38246
38246
  });
38247
38247
 
38248
- const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-078d99d6"]]);
38248
+ const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-4c74b915"]]);
38249
38249
 
38250
38250
  const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
38251
38251
  __name: "RawAutocomplete",
@@ -38338,10 +38338,12 @@
38338
38338
  }
38339
38339
  };
38340
38340
  const clearInput = () => {
38341
- inputText.value = "";
38342
- modelValue.value = null;
38343
- setFocus();
38344
- closeDatalist();
38341
+ if (!props.disabled) {
38342
+ inputText.value = "";
38343
+ modelValue.value = null;
38344
+ setFocus();
38345
+ closeDatalist();
38346
+ }
38345
38347
  };
38346
38348
  __expose({
38347
38349
  setFocus
@@ -38417,10 +38419,10 @@
38417
38419
  }
38418
38420
  });
38419
38421
 
38420
- const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-eb4d55e4"]]);
38422
+ const RawAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-15343285"]]);
38421
38423
 
38422
38424
  const _hoisted_1$P = ["innerHTML"];
38423
- const _hoisted_2$w = ["innerHTML"];
38425
+ const _hoisted_2$x = ["innerHTML"];
38424
38426
  const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
38425
38427
  __name: "BmsAutocomplete",
38426
38428
  props: /* @__PURE__ */ vue.mergeModels({
@@ -38487,7 +38489,7 @@
38487
38489
  key: 0,
38488
38490
  class: "icon datalist-icon",
38489
38491
  innerHTML: option.icon
38490
- }, null, 8, _hoisted_2$w)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon), {
38492
+ }, null, 8, _hoisted_2$x)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon), {
38491
38493
  key: 1,
38492
38494
  class: "icon datalist-icon"
38493
38495
  }))
@@ -38515,7 +38517,7 @@
38515
38517
  const BmsAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-43ad5137"]]);
38516
38518
 
38517
38519
  const _hoisted_1$O = ["innerHTML"];
38518
- const _hoisted_2$v = ["innerHTML"];
38520
+ const _hoisted_2$w = ["innerHTML"];
38519
38521
  const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
38520
38522
  __name: "BmsServerAutocomplete",
38521
38523
  props: /* @__PURE__ */ vue.mergeModels({
@@ -38615,7 +38617,7 @@
38615
38617
  key: 0,
38616
38618
  class: "icon datalist-icon",
38617
38619
  innerHTML: option.icon
38618
- }, null, 8, _hoisted_2$v)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon), {
38620
+ }, null, 8, _hoisted_2$w)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon), {
38619
38621
  key: 1,
38620
38622
  class: "icon datalist-icon"
38621
38623
  }))
@@ -38767,7 +38769,7 @@
38767
38769
  const BmsChip = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-72b945cc"]]);
38768
38770
 
38769
38771
  const _hoisted_1$N = { class: "file-upload" };
38770
- const _hoisted_2$u = { class: "file-upload__label" };
38772
+ const _hoisted_2$v = { class: "file-upload__label" };
38771
38773
  const _hoisted_3$g = { key: 1 };
38772
38774
  const _hoisted_4$a = { class: "file-upload__file-name" };
38773
38775
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
@@ -38850,7 +38852,7 @@
38850
38852
  onDragover: _cache[2] || (_cache[2] = vue.withModifiers(() => {
38851
38853
  }, ["prevent"]))
38852
38854
  }, [
38853
- vue.createElementVNode("label", _hoisted_2$u, [
38855
+ vue.createElementVNode("label", _hoisted_2$v, [
38854
38856
  isDragOver.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
38855
38857
  vue.createTextVNode("Déposer votre image ici")
38856
38858
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -38888,7 +38890,7 @@
38888
38890
  const BmsFilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-c892a845"]]);
38889
38891
 
38890
38892
  const _hoisted_1$M = ["disabled", "name", "value"];
38891
- const _hoisted_2$t = {
38893
+ const _hoisted_2$u = {
38892
38894
  key: 0,
38893
38895
  class: "input-checkbox-info"
38894
38896
  };
@@ -38931,7 +38933,7 @@
38931
38933
  }, null, 8, _hoisted_1$M), [
38932
38934
  [vue.vModelCheckbox, inputValue.value]
38933
38935
  ]),
38934
- hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$t, [
38936
+ hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$u, [
38935
38937
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
38936
38938
  vue.createTextVNode(vue.toDisplayString(__props.label), 1)
38937
38939
  ], true)
@@ -67836,11 +67838,12 @@
67836
67838
  vue.createVNode(vue.unref(T), {
67837
67839
  modelValue: input.value,
67838
67840
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => input.value = $event),
67841
+ disabled: __props.disabled,
67839
67842
  autofocus: true,
67840
67843
  "indent-with-tab": true,
67841
67844
  "tab-size": 4,
67842
67845
  extensions: extensions.value
67843
- }, null, 8, ["modelValue", "extensions"])
67846
+ }, null, 8, ["modelValue", "disabled", "extensions"])
67844
67847
  ])
67845
67848
  ]),
67846
67849
  _: 1
@@ -67849,7 +67852,7 @@
67849
67852
  }
67850
67853
  });
67851
67854
 
67852
- const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-b2a2a2fa"]]);
67855
+ const BmsInputCode = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-0de8ac2e"]]);
67853
67856
 
67854
67857
  const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
67855
67858
  __name: "BmsInputText",
@@ -68010,7 +68013,7 @@
68010
68013
  });
68011
68014
 
68012
68015
  const _hoisted_1$K = ["accept"];
68013
- const _hoisted_2$s = ["src"];
68016
+ const _hoisted_2$t = ["src"];
68014
68017
  const _hoisted_3$f = {
68015
68018
  key: 1,
68016
68019
  class: "file-upload__file-name"
@@ -68170,7 +68173,7 @@
68170
68173
  key: 0,
68171
68174
  src: getImageSrc(file),
68172
68175
  class: "file-upload__file-img"
68173
- }, null, 8, _hoisted_2$s)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(file.name), 1)),
68176
+ }, null, 8, _hoisted_2$t)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(file.name), 1)),
68174
68177
  vue.createVNode(_sfc_main$1k, {
68175
68178
  mode: vue.unref(StatusType).Danger,
68176
68179
  onClick: vue.withModifiers(($event) => onDeleteFile(file), ["prevent"]),
@@ -68191,7 +68194,7 @@
68191
68194
  }
68192
68195
  });
68193
68196
 
68194
- const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-0c91cbf5"]]);
68197
+ const BmsInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-07e6912d"]]);
68195
68198
 
68196
68199
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
68197
68200
  __name: "BmsInputNumber",
@@ -68273,7 +68276,7 @@
68273
68276
  });
68274
68277
 
68275
68278
  const _hoisted_1$J = ["value", "name", "disabled", "required"];
68276
- const _hoisted_2$r = {
68279
+ const _hoisted_2$s = {
68277
68280
  key: 0,
68278
68281
  class: "input-radio-info"
68279
68282
  };
@@ -68317,7 +68320,7 @@
68317
68320
  }, null, 8, _hoisted_1$J), [
68318
68321
  [vue.vModelRadio, inputValue.value]
68319
68322
  ]),
68320
- hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$r, [
68323
+ hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$s, [
68321
68324
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
68322
68325
  vue.createTextVNode(vue.toDisplayString(__props.label), 1)
68323
68326
  ], true)
@@ -68569,7 +68572,8 @@
68569
68572
 
68570
68573
  const UiBmsSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-6de1a5c6"]]);
68571
68574
 
68572
- const _hoisted_1$H = { class: "input-switch-info" };
68575
+ const _hoisted_1$H = ["title"];
68576
+ const _hoisted_2$r = { class: "input-switch-info" };
68573
68577
  const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
68574
68578
  __name: "BmsInputToggle",
68575
68579
  props: {
@@ -68597,16 +68601,17 @@
68597
68601
  }, {
68598
68602
  default: vue.withCtx(() => [
68599
68603
  vue.createElementVNode("label", {
68600
- class: vue.normalizeClass(["input-toggle", { isOn: __props.modelValue, disabled: __props.disabled, overflow: __props.ellipsisLabel }])
68604
+ class: vue.normalizeClass(["input-toggle", { isOn: __props.modelValue, disabled: __props.disabled, overflow: __props.ellipsisLabel }]),
68605
+ title: __props.ellipsisLabel ? __props.label : void 0
68601
68606
  }, [
68602
- vue.createElementVNode("span", _hoisted_1$H, vue.toDisplayString(__props.label), 1),
68607
+ vue.createElementVNode("span", _hoisted_2$r, vue.toDisplayString(__props.label), 1),
68603
68608
  vue.createVNode(UiBmsSwitch, {
68604
68609
  modelValue: __props.modelValue,
68605
68610
  disabled: __props.disabled,
68606
68611
  name: __props.name,
68607
68612
  "onUpdate:modelValue": _cache[0] || (_cache[0] = (value) => _ctx.$emit("update:modelValue", value))
68608
68613
  }, null, 8, ["modelValue", "disabled", "name"])
68609
- ], 2)
68614
+ ], 10, _hoisted_1$H)
68610
68615
  ]),
68611
68616
  _: 1
68612
68617
  }, 8, ["disabled", "small", "ellipsisLabel"]);
@@ -68614,7 +68619,7 @@
68614
68619
  }
68615
68620
  });
68616
68621
 
68617
- const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-9b546877"]]);
68622
+ const BmsInputToggle = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-5f354760"]]);
68618
68623
 
68619
68624
  const _hoisted_1$G = { class: "dismiss-button" };
68620
68625
  const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
@@ -86153,7 +86158,7 @@
86153
86158
  var lodashExports = requireLodash();
86154
86159
  const _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
86155
86160
 
86156
- const _hoisted_1$E = ["value", "placeholder", "required"];
86161
+ const _hoisted_1$E = ["value", "placeholder", "required", "disabled"];
86157
86162
  const _hoisted_2$p = { class: "icon-toggle-container" };
86158
86163
  const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
86159
86164
  __name: "BmsSelect",
@@ -86231,6 +86236,7 @@
86231
86236
  value: displayValue.value,
86232
86237
  placeholder: __props.placeholder,
86233
86238
  required: __props.required,
86239
+ disabled: __props.disabled,
86234
86240
  onFocus: openDatalist,
86235
86241
  onClick: openDatalist,
86236
86242
  onKeyup: vue.withKeys(openDatalist, ["down"])
@@ -86253,7 +86259,7 @@
86253
86259
  }
86254
86260
  });
86255
86261
 
86256
- const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-a6c01476"]]);
86262
+ const BmsSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7aef9c6c"]]);
86257
86263
 
86258
86264
  const _hoisted_1$D = ["value", "required", "placeholder", "disabled"];
86259
86265
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
@@ -86321,7 +86327,7 @@
86321
86327
  }
86322
86328
  });
86323
86329
 
86324
- const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-b7e10b40"]]);
86330
+ const BmsTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-94de6dd9"]]);
86325
86331
 
86326
86332
  const _hoisted_1$C = { class: "page__breadcrumb" };
86327
86333
  const _hoisted_2$o = { class: "page__header" };