@ouestfrance/sipa-bms-ui 8.50.0 → 8.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,9 @@ import { FieldComponentProps } from '../../plugins/field/field-component.model';
2
2
  export interface Props extends FieldComponentProps {
3
3
  modelValue: string;
4
4
  placeholder?: string;
5
+ autoResize?: boolean;
5
6
  }
6
- declare const _default: import('vue').DefineComponent<Props, {
7
+ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<Props, {
7
8
  setFocus: () => void;
8
9
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
10
  "update:modelValue": (value: string) => any;
@@ -13,5 +14,13 @@ declare const _default: import('vue').DefineComponent<Props, {
13
14
  label: string;
14
15
  required: boolean;
15
16
  disabled: boolean;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ autoResize: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
19
+ 'icon-start'?: ((props: {}) => any) | undefined;
20
+ }>;
17
21
  export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -427,15 +427,15 @@
427
427
  left: 50%;
428
428
  transform: translateX(-50%);
429
429
  width: 1em;
430
- }.bms-switch-icon-button[data-v-6751139f] {
430
+ }.bms-switch-icon-button[data-v-72b8f219] {
431
431
  position: relative;
432
432
  display: inline-flex;
433
433
  border-radius: var(--bms-border-radius, 0.25em);
434
434
  }
435
- .bms-switch-icon-button[data-v-6751139f]:hover:not(.bms-switch-icon-button--disabled) {
435
+ .bms-switch-icon-button[data-v-72b8f219]:hover:not(.bms-switch-icon-button--disabled) {
436
436
  background-color: light-dark(var(--bms-main-25), var(--bms-grey-140));
437
437
  }
438
- .bms-switch-icon-button__button[data-v-6751139f] {
438
+ .bms-switch-icon-button__button[data-v-72b8f219] {
439
439
  display: flex;
440
440
  align-items: center;
441
441
  gap: 0.25em;
@@ -446,26 +446,26 @@
446
446
  border-radius: inherit;
447
447
  transition: background-color 0.2s;
448
448
  }
449
- .bms-switch-icon-button__button[data-v-6751139f]:hover:not(.bms-switch-icon-button__button--disabled) {
449
+ .bms-switch-icon-button__button[data-v-72b8f219]:hover:not(.bms-switch-icon-button__button--disabled) {
450
450
  background-color: light-dark(var(--bms-main-25), var(--bms-grey-140));
451
451
  }
452
- .bms-switch-icon-button__button--disabled[data-v-6751139f] {
452
+ .bms-switch-icon-button__button--disabled[data-v-72b8f219] {
453
453
  cursor: default;
454
454
  }
455
- .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__icon-container[data-v-6751139f] {
455
+ .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__icon-container[data-v-72b8f219] {
456
456
  background-color: var(--bms-field-disabled-background);
457
457
  }
458
- .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__icon[data-v-6751139f],
459
- .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__chevron[data-v-6751139f] {
458
+ .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__icon[data-v-72b8f219],
459
+ .bms-switch-icon-button__button--disabled .bms-switch-icon-button__button__chevron[data-v-72b8f219] {
460
460
  color: var(--bms-field-disabled-text-color);
461
461
  }
462
- .bms-switch-icon-button__button--outlined .bms-switch-icon-button__button__icon-container[data-v-6751139f] {
462
+ .bms-switch-icon-button__button--outlined .bms-switch-icon-button__button__icon-container[data-v-72b8f219] {
463
463
  background-color: inherit;
464
464
  }
465
- .bms-switch-icon-button__button--outlined .bms-switch-icon-button__button__icon[data-v-6751139f] {
465
+ .bms-switch-icon-button__button--outlined .bms-switch-icon-button__button__icon[data-v-72b8f219] {
466
466
  color: var(--bms-main-100);
467
467
  }
468
- .bms-switch-icon-button__button__icon-container[data-v-6751139f] {
468
+ .bms-switch-icon-button__button__icon-container[data-v-72b8f219] {
469
469
  display: flex;
470
470
  align-items: center;
471
471
  justify-content: center;
@@ -475,24 +475,24 @@
475
475
  transition: background-color 0.2s;
476
476
  background-color: var(--bms-main-100);
477
477
  }
478
- .bms-switch-icon-button__button:not(.bms-switch-icon-button__button--small) .bms-switch-icon-button__button__icon-container[data-v-6751139f] {
478
+ .bms-switch-icon-button__button:not(.bms-switch-icon-button__button--small) .bms-switch-icon-button__button__icon-container[data-v-72b8f219] {
479
479
  width: 2.25em;
480
480
  height: 2.25em;
481
481
  }
482
- .bms-switch-icon-button__button__icon[data-v-6751139f] {
482
+ .bms-switch-icon-button__button__icon[data-v-72b8f219] {
483
483
  display: flex;
484
484
  align-items: center;
485
485
  justify-content: center;
486
486
  color: var(--bms-white);
487
487
  }
488
- .bms-switch-icon-button__button__chevron[data-v-6751139f] {
488
+ .bms-switch-icon-button__button__chevron[data-v-72b8f219] {
489
489
  display: flex;
490
490
  align-items: center;
491
491
  color: var(--bms-main-100);
492
492
  flex-shrink: 0;
493
493
  transition: color 0.2s;
494
494
  }
495
- .bms-switch-icon-button__menu[data-v-6751139f] {
495
+ .bms-switch-icon-button__menu[data-v-72b8f219] {
496
496
  position: absolute;
497
497
  background-color: var(--bms-white);
498
498
  border: 1px solid var(--bms-border-color);
@@ -506,7 +506,7 @@
506
506
  box-shadow: var(--bms-box-shadow-elevated);
507
507
  width: max-content;
508
508
  }
509
- .bms-switch-icon-button__menu__item[data-v-6751139f] {
509
+ .bms-switch-icon-button__menu__item[data-v-72b8f219] {
510
510
  min-height: 2.5em;
511
511
  padding: 0.5em 1em;
512
512
  display: flex;
@@ -517,27 +517,27 @@
517
517
  width: 100%;
518
518
  box-sizing: border-box;
519
519
  }
520
- .bms-switch-icon-button__menu__item[data-v-6751139f]:hover {
520
+ .bms-switch-icon-button__menu__item[data-v-72b8f219]:hover {
521
521
  background-color: light-dark(var(--bms-grey-10), var(--bms-grey-100));
522
522
  }
523
- .bms-switch-icon-button__menu__item__check[data-v-6751139f] {
523
+ .bms-switch-icon-button__menu__item__check[data-v-72b8f219] {
524
524
  flex-shrink: 0;
525
525
  color: var(--bms-font-color);
526
526
  width: 1em;
527
527
  height: 1em;
528
528
  }
529
- .bms-switch-icon-button__menu__item__check-placeholder[data-v-6751139f] {
529
+ .bms-switch-icon-button__menu__item__check-placeholder[data-v-72b8f219] {
530
530
  width: 1em;
531
531
  height: 1em;
532
532
  flex-shrink: 0;
533
533
  }
534
- .bms-switch-icon-button__menu__item__icon[data-v-6751139f] {
534
+ .bms-switch-icon-button__menu__item__icon[data-v-72b8f219] {
535
535
  flex-shrink: 0;
536
536
  color: var(--bms-font-color);
537
537
  width: 1em;
538
538
  height: 1em;
539
539
  }
540
- .bms-switch-icon-button__menu__item__label[data-v-6751139f] {
540
+ .bms-switch-icon-button__menu__item__label[data-v-72b8f219] {
541
541
  white-space: nowrap;
542
542
  font-size: 0.875em;
543
543
  color: var(--bms-font-color);
@@ -1700,41 +1700,72 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
1700
1700
  .combobox-option--select-all[data-v-7df0bce4] {
1701
1701
  font-weight: 600;
1702
1702
  width: 100%;
1703
- }.field__input textarea[data-v-6d84521c] {
1704
- display: flex;
1705
- align-items: center;
1703
+ }.textarea-wrapper[data-v-3dc80e4b] {
1704
+ position: relative;
1706
1705
  width: 100%;
1707
1706
  padding: var(--field-padding);
1708
1707
  border-radius: var(--bms-border-radius);
1709
1708
  border: 1px solid var(--field-border-color);
1710
1709
  background-color: var(--textarea-background-color);
1711
- min-height: 96px;
1712
- outline: none;
1713
- font: inherit;
1714
- color: inherit;
1715
1710
  }
1716
- .field__input textarea[data-v-6d84521c]:hover {
1711
+ .textarea-wrapper[data-v-3dc80e4b]:hover {
1717
1712
  --field-border-color: var(--bms-grey-100);
1718
1713
  }
1719
- .field__input textarea[data-v-6d84521c]:active, .field__input textarea[data-v-6d84521c]:focus {
1714
+ .textarea-wrapper[data-v-3dc80e4b]:focus-within {
1720
1715
  --field-border-color: var(--field-border-color-active);
1721
1716
  }
1722
- .field__input textarea.is-error[data-v-6d84521c] {
1717
+ .textarea-wrapper.is-error[data-v-3dc80e4b] {
1723
1718
  --field-border-color: var(--bms-red-100);
1724
1719
  --textarea-background-color: var(--bms-red-25);
1725
1720
  }
1726
- .field__input textarea.is-disabled[data-v-6d84521c] {
1721
+ .textarea-wrapper.is-disabled[data-v-3dc80e4b] {
1727
1722
  --field-border-color: var(--bms-field-disabled-border-color);
1728
1723
  --textarea-background-color: var(--bms-field-disabled-background);
1729
1724
  color: var(--bms-field-disabled-text-color);
1730
- cursor: text;
1731
1725
  }
1732
- .field__input textarea.is-disabled textarea[data-v-6d84521c]:disabled {
1726
+ .textarea-wrapper.is-disabled textarea[data-v-3dc80e4b] {
1727
+ cursor: text;
1733
1728
  opacity: 1;
1734
1729
  -webkit-text-fill-color: currentColor;
1735
1730
  }
1736
- .field__input textarea.is-small[data-v-6d84521c] {
1737
- min-height: 56px;
1731
+ .textarea-wrapper.is-small textarea[data-v-3dc80e4b] {
1732
+ min-height: 46px;
1733
+ }
1734
+ .textarea-wrapper.is-auto-resize textarea[data-v-3dc80e4b] {
1735
+ resize: none;
1736
+ overflow: hidden;
1737
+ }
1738
+ .textarea-wrapper:has(.field__input-icon--start:not(:empty)) textarea[data-v-3dc80e4b] {
1739
+ text-indent: 1.8em;
1740
+ }
1741
+ .textarea-wrapper textarea[data-v-3dc80e4b] {
1742
+ display: block;
1743
+ width: 100%;
1744
+ outline: none;
1745
+ border: 0;
1746
+ padding: 0;
1747
+ margin: 0;
1748
+ font: inherit;
1749
+ color: inherit;
1750
+ background-color: transparent;
1751
+ resize: vertical;
1752
+ min-height: 80px;
1753
+ }
1754
+ .textarea-wrapper .field__input-icon[data-v-3dc80e4b] {
1755
+ position: absolute;
1756
+ top: 0;
1757
+ left: 0;
1758
+ padding: var(--field-padding);
1759
+ display: flex;
1760
+ align-items: flex-start;
1761
+ }
1762
+ .textarea-wrapper .field__input-icon[data-v-3dc80e4b]:empty {
1763
+ display: none;
1764
+ }
1765
+ .textarea-wrapper .field__input-icon[data-v-3dc80e4b] svg {
1766
+ width: 1em;
1767
+ height: 1em;
1768
+ display: block;
1738
1769
  }.page[data-v-31057778] {
1739
1770
  margin: 0 auto;
1740
1771
  width: var(--wrapper-width, calc(100% - 3.2rem));
@@ -354,7 +354,7 @@ var getHeaderClasses = (header, sort) => {
354
354
  //#endregion
355
355
  //#region src/components/navigation/BmsLink.vue?vue&type=script&setup=true&lang.ts
356
356
  var _hoisted_1$68 = ["href", "target"];
357
- var _hoisted_2$45 = [
357
+ var _hoisted_2$46 = [
358
358
  "href",
359
359
  "onClick",
360
360
  "target"
@@ -396,7 +396,7 @@ var BmsLink_default = /* @__PURE__ */ defineComponent({
396
396
  onClick: navigate,
397
397
  class: computedClasses.value,
398
398
  target: __props.target
399
- }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2$45)]),
399
+ }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2$46)]),
400
400
  _: 3
401
401
  }, 8, ["to"]));
402
402
  };
@@ -449,7 +449,7 @@ var UiButtonLink_default = /* @__PURE__ */ defineComponent({
449
449
  //#endregion
450
450
  //#region src/components/button/UiButton.vue?vue&type=script&setup=true&lang.ts
451
451
  var _hoisted_1$66 = { class: "start" };
452
- var _hoisted_2$44 = { class: "content" };
452
+ var _hoisted_2$45 = { class: "content" };
453
453
  var _hoisted_3$26 = { class: "end" };
454
454
  //#endregion
455
455
  //#region src/components/button/UiButton.vue
@@ -475,7 +475,7 @@ var UiButton_default = /* @__PURE__ */ defineComponent({
475
475
  return openBlock(), createBlock(UiButtonLink_default, normalizeProps(guardReactiveProps(props)), {
476
476
  default: withCtx(() => [
477
477
  createElementVNode("span", _hoisted_1$66, [renderSlot(_ctx.$slots, "start")]),
478
- createElementVNode("span", _hoisted_2$44, [renderSlot(_ctx.$slots, "default")]),
478
+ createElementVNode("span", _hoisted_2$45, [renderSlot(_ctx.$slots, "default")]),
479
479
  createElementVNode("span", _hoisted_3$26, [renderSlot(_ctx.$slots, "end")])
480
480
  ]),
481
481
  _: 3
@@ -55084,7 +55084,7 @@ var lucide_vue_next_exports = /* @__PURE__ */ __exportAll({
55084
55084
  //#endregion
55085
55085
  //#region src/components/button/BmsSwitchIconButton.vue?vue&type=script&setup=true&lang.ts
55086
55086
  var _hoisted_1$64 = { class: "bms-switch-icon-button__button__icon-container" };
55087
- var _hoisted_2$43 = ["onClick"];
55087
+ var _hoisted_2$44 = ["onClick"];
55088
55088
  var _hoisted_3$25 = {
55089
55089
  key: 1,
55090
55090
  class: "bms-switch-icon-button__menu__item__check-placeholder"
@@ -55115,13 +55115,17 @@ var BmsSwitchIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
55115
55115
  const props = __props;
55116
55116
  const emits = __emit;
55117
55117
  const isOpen = ref(false);
55118
+ const openUpward = ref(true);
55118
55119
  const anchorElement = useTemplateRef("anchorElement");
55119
55120
  const menuElement = useTemplateRef("menuElement");
55120
- const { height } = useElementBounding(anchorElement);
55121
- const menuStyle = computed(() => ({ bottom: `${height.value}px` }));
55121
+ const { height, top, bottom } = useElementBounding(anchorElement);
55122
+ const menuStyle = computed(() => openUpward.value ? { bottom: `${height.value}px` } : { top: `${height.value}px` });
55122
55123
  const selectedOption = computed(() => props.options.find((option) => option.value === props.modelValue));
55123
55124
  const toggleMenu = () => {
55124
- if (!props.disabled) isOpen.value = !isOpen.value;
55125
+ if (!props.disabled) {
55126
+ if (!isOpen.value) openUpward.value = top.value > window.innerHeight - bottom.value;
55127
+ isOpen.value = !isOpen.value;
55128
+ }
55125
55129
  };
55126
55130
  const selectOption = (value) => {
55127
55131
  emits("update:modelValue", value);
@@ -55151,7 +55155,7 @@ var BmsSwitchIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
55151
55155
  key: 0,
55152
55156
  size: 16,
55153
55157
  class: "bms-switch-icon-button__button__icon"
55154
- })) : createCommentVNode("", true)]), !isOpen.value ? (openBlock(), createBlock(unref(ChevronUp), {
55158
+ })) : createCommentVNode("", true)]), openUpward.value !== isOpen.value ? (openBlock(), createBlock(unref(ChevronUp), {
55155
55159
  key: 0,
55156
55160
  size: 10,
55157
55161
  class: "bms-switch-icon-button__button__chevron"
@@ -55181,15 +55185,15 @@ var BmsSwitchIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
55181
55185
  class: "bms-switch-icon-button__menu__item__icon"
55182
55186
  })) : createCommentVNode("", true),
55183
55187
  createElementVNode("span", _hoisted_4$15, toDisplayString(option.label), 1)
55184
- ], 8, _hoisted_2$43);
55188
+ ], 8, _hoisted_2$44);
55185
55189
  }), 128))], 4), [[vShow, isOpen.value]])], 2);
55186
55190
  };
55187
55191
  }
55188
- }), [["__scopeId", "data-v-6751139f"]]);
55192
+ }), [["__scopeId", "data-v-72b8f219"]]);
55189
55193
  //#endregion
55190
55194
  //#region src/components/feedback/BmsAlert.vue?vue&type=script&setup=true&lang.ts
55191
55195
  var _hoisted_1$63 = { class: "info-line" };
55192
- var _hoisted_2$42 = { class: "icon" };
55196
+ var _hoisted_2$43 = { class: "icon" };
55193
55197
  var _hoisted_3$24 = { class: "message" };
55194
55198
  //#endregion
55195
55199
  //#region src/components/feedback/BmsAlert.vue
@@ -55220,7 +55224,7 @@ var BmsAlert_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
55220
55224
  });
55221
55225
  return (_ctx, _cache) => {
55222
55226
  return openBlock(), createElementBlock("div", { class: normalizeClass(["alert", `alert-${props.type} ${props.small ? "alert--small" : ""}`]) }, [createElementVNode("div", _hoisted_1$63, [
55223
- createElementVNode("span", _hoisted_2$42, [(openBlock(), createBlock(resolveDynamicComponent(alertIcon.value), { size: 20 }))]),
55227
+ createElementVNode("span", _hoisted_2$43, [(openBlock(), createBlock(resolveDynamicComponent(alertIcon.value), { size: 20 }))]),
55224
55228
  createElementVNode("span", _hoisted_3$24, [renderSlot(_ctx.$slots, "message", {}, () => [createElementVNode("strong", null, toDisplayString(__props.message), 1)], true)]),
55225
55229
  renderSlot(_ctx.$slots, "action", {}, void 0, true),
55226
55230
  __props.dismissable ? (openBlock(), createBlock(BmsIconButton_default, {
@@ -55270,7 +55274,7 @@ var _hoisted_1$61 = {
55270
55274
  key: 0,
55271
55275
  class: "icon"
55272
55276
  };
55273
- var _hoisted_2$41 = ["innerHTML"];
55277
+ var _hoisted_2$42 = ["innerHTML"];
55274
55278
  //#endregion
55275
55279
  //#region src/components/feedback/BmsCaption.vue
55276
55280
  var BmsCaption_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -55295,14 +55299,14 @@ var BmsCaption_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
55295
55299
  return openBlock(), createElementBlock("div", { class: normalizeClass(["caption", `caption-${computedCaption.value.mode}`]) }, [computedCaption.value.mode != unref(StatusType).Default ? (openBlock(), createElementBlock("span", _hoisted_1$61, [createVNode(unref(alertIcon), { size: 13 })])) : createCommentVNode("", true), createElementVNode("span", {
55296
55300
  class: "label",
55297
55301
  innerHTML: unref(sanitizeHtml)(computedCaption.value.label)
55298
- }, null, 8, _hoisted_2$41)], 2);
55302
+ }, null, 8, _hoisted_2$42)], 2);
55299
55303
  };
55300
55304
  }
55301
55305
  }), [["__scopeId", "data-v-b08dd4e0"]]);
55302
55306
  //#endregion
55303
55307
  //#region src/components/feedback/BmsCircularProgress.vue?vue&type=script&setup=true&lang.ts
55304
55308
  var _hoisted_1$60 = { class: "circular-progress" };
55305
- var _hoisted_2$40 = {
55309
+ var _hoisted_2$41 = {
55306
55310
  key: 0,
55307
55311
  viewBox: "0 0 100 100"
55308
55312
  };
@@ -55316,7 +55320,7 @@ var BmsCircularProgress_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
55316
55320
  props: ["progress"],
55317
55321
  setup(__props) {
55318
55322
  return (_ctx, _cache) => {
55319
- return openBlock(), createElementBlock("div", _hoisted_1$60, [__props.progress ? (openBlock(), createElementBlock("svg", _hoisted_2$40, [createElementVNode("g", _hoisted_3$23, [_cache[0] || (_cache[0] = createElementVNode("circle", {
55323
+ return openBlock(), createElementBlock("div", _hoisted_1$60, [__props.progress ? (openBlock(), createElementBlock("svg", _hoisted_2$41, [createElementVNode("g", _hoisted_3$23, [_cache[0] || (_cache[0] = createElementVNode("circle", {
55320
55324
  opacity: ".08",
55321
55325
  r: "45",
55322
55326
  cx: "50",
@@ -55398,7 +55402,7 @@ var _hoisted_1$59 = {
55398
55402
  viewBox: "0 0 38 38",
55399
55403
  xmlns: "http://www.w3.org/2000/svg"
55400
55404
  };
55401
- var _hoisted_2$39 = ["id"];
55405
+ var _hoisted_2$40 = ["id"];
55402
55406
  var _hoisted_3$22 = {
55403
55407
  fill: "none",
55404
55408
  "fill-rule": "evenodd"
@@ -55445,7 +55449,7 @@ var BmsLoader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
55445
55449
  "stop-color": "currentColor",
55446
55450
  offset: "100%"
55447
55451
  }, null, -1)
55448
- ])], 8, _hoisted_2$39)]), createElementVNode("g", _hoisted_3$22, [createElementVNode("g", _hoisted_4$13, [createElementVNode("path", {
55452
+ ])], 8, _hoisted_2$40)]), createElementVNode("g", _hoisted_3$22, [createElementVNode("g", _hoisted_4$13, [createElementVNode("path", {
55449
55453
  d: "M36 18c0-9.94-8.06-18-18-18",
55450
55454
  id: "Oval-2",
55451
55455
  stroke: `url(#${unref(gradientId)})`,
@@ -55848,7 +55852,7 @@ var FieldDatalist_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
55848
55852
  //#endregion
55849
55853
  //#region src/components/form/RawInputText.vue?vue&type=script&setup=true&lang.ts
55850
55854
  var _hoisted_1$57 = { class: "field__input-label" };
55851
- var _hoisted_2$38 = { class: "field__input-icon field__input-icon--start" };
55855
+ var _hoisted_2$39 = { class: "field__input-icon field__input-icon--start" };
55852
55856
  var _hoisted_3$21 = [
55853
55857
  "type",
55854
55858
  "value",
@@ -55932,7 +55936,7 @@ var RawInputText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
55932
55936
  return (_ctx, _cache) => {
55933
55937
  return openBlock(), createElementBlock("span", { class: normalizeClass(["input-wrapper", classes.value]) }, [
55934
55938
  createElementVNode("template", _hoisted_1$57, [renderSlot(_ctx.$slots, "label", {}, void 0, true)]),
55935
- createElementVNode("span", _hoisted_2$38, [renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)]),
55939
+ createElementVNode("span", _hoisted_2$39, [renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)]),
55936
55940
  createElementVNode("input", {
55937
55941
  ref_key: "input",
55938
55942
  ref: input,
@@ -56140,7 +56144,7 @@ var RawAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
56140
56144
  //#endregion
56141
56145
  //#region src/components/form/BmsAutocomplete.vue?vue&type=script&setup=true&lang.ts
56142
56146
  var _hoisted_1$56 = ["innerHTML"];
56143
- var _hoisted_2$37 = ["innerHTML"];
56147
+ var _hoisted_2$38 = ["innerHTML"];
56144
56148
  //#endregion
56145
56149
  //#region src/components/form/BmsAutocomplete.vue
56146
56150
  var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -56215,7 +56219,7 @@ var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
56215
56219
  key: 0,
56216
56220
  class: "icon datalist-icon",
56217
56221
  innerHTML: option.icon
56218
- }, null, 8, _hoisted_2$37)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
56222
+ }, null, 8, _hoisted_2$38)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
56219
56223
  key: 1,
56220
56224
  class: "icon datalist-icon"
56221
56225
  }))], 64)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(option.label), 1)]),
@@ -56250,7 +56254,7 @@ var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
56250
56254
  //#endregion
56251
56255
  //#region src/components/form/BmsServerAutocomplete.vue?vue&type=script&setup=true&lang.ts
56252
56256
  var _hoisted_1$55 = ["innerHTML"];
56253
- var _hoisted_2$36 = ["innerHTML"];
56257
+ var _hoisted_2$37 = ["innerHTML"];
56254
56258
  //#endregion
56255
56259
  //#region src/components/form/BmsServerAutocomplete.vue
56256
56260
  var BmsServerAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -56348,7 +56352,7 @@ var BmsServerAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
56348
56352
  key: 0,
56349
56353
  class: "icon datalist-icon",
56350
56354
  innerHTML: option.icon
56351
- }, null, 8, _hoisted_2$36)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
56355
+ }, null, 8, _hoisted_2$37)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
56352
56356
  key: 1,
56353
56357
  class: "icon datalist-icon"
56354
56358
  }))], 64)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(option.label), 1)]),
@@ -56496,7 +56500,7 @@ var BmsChip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
56496
56500
  //#endregion
56497
56501
  //#region src/components/form/BmsFilePicker.vue?vue&type=script&setup=true&lang.ts
56498
56502
  var _hoisted_1$54 = { class: "file-upload" };
56499
- var _hoisted_2$35 = { class: "file-upload__label" };
56503
+ var _hoisted_2$36 = { class: "file-upload__label" };
56500
56504
  var _hoisted_3$20 = { key: 1 };
56501
56505
  var _hoisted_4$11 = { class: "file-upload__file-name" };
56502
56506
  //#endregion
@@ -56572,7 +56576,7 @@ var BmsFilePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
56572
56576
  "data-testid": "file-upload-drop-area",
56573
56577
  onDrop: _cache[1] || (_cache[1] = withModifiers(($event) => onDropFile($event), ["prevent"])),
56574
56578
  onDragover: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"]))
56575
- }, [createElementVNode("label", _hoisted_2$35, [isDragOver.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(__props.dragOverMessage), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.dragOffMessage), 1)], 64)), createElementVNode("input", {
56579
+ }, [createElementVNode("label", _hoisted_2$36, [isDragOver.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(__props.dragOverMessage), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.dragOffMessage), 1)], 64)), createElementVNode("input", {
56576
56580
  "data-testid": "file-upload-input-file",
56577
56581
  type: "file",
56578
56582
  onChange: _cache[0] || (_cache[0] = ($event) => onSelectFile($event))
@@ -56595,7 +56599,7 @@ var _hoisted_1$53 = [
56595
56599
  "name",
56596
56600
  "value"
56597
56601
  ];
56598
- var _hoisted_2$34 = {
56602
+ var _hoisted_2$35 = {
56599
56603
  key: 0,
56600
56604
  class: "input-checkbox-info"
56601
56605
  };
@@ -56642,7 +56646,7 @@ var UiBmsInputCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default
56642
56646
  name: __props.name,
56643
56647
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
56644
56648
  value: __props.value
56645
- }, null, 8, _hoisted_1$53), [[vModelCheckbox, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$34, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)])], 2);
56649
+ }, null, 8, _hoisted_1$53), [[vModelCheckbox, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$35, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)])], 2);
56646
56650
  };
56647
56651
  }
56648
56652
  }), [["__scopeId", "data-v-e1d94c62"]]);
@@ -85809,7 +85813,7 @@ var BmsInputDateTime_default = /* @__PURE__ */ defineComponent({
85809
85813
  //#endregion
85810
85814
  //#region src/components/form/BmsInputFile.vue?vue&type=script&setup=true&lang.ts
85811
85815
  var _hoisted_1$51 = ["accept"];
85812
- var _hoisted_2$33 = ["src"];
85816
+ var _hoisted_2$34 = ["src"];
85813
85817
  var _hoisted_3$19 = {
85814
85818
  key: 1,
85815
85819
  class: "file-upload__file-name"
@@ -85949,7 +85953,7 @@ var BmsInputFile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
85949
85953
  key: 0,
85950
85954
  src: getImageSrc(file),
85951
85955
  class: "file-upload__file-img"
85952
- }, null, 8, _hoisted_2$33)) : (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(file.name), 1)), createVNode(BmsIconButton_default, {
85956
+ }, null, 8, _hoisted_2$34)) : (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(file.name), 1)), createVNode(BmsIconButton_default, {
85953
85957
  mode: unref(StatusType).Danger,
85954
85958
  onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
85955
85959
  class: "close-button"
@@ -86054,7 +86058,7 @@ var _hoisted_1$50 = [
86054
86058
  "disabled",
86055
86059
  "required"
86056
86060
  ];
86057
- var _hoisted_2$32 = {
86061
+ var _hoisted_2$33 = {
86058
86062
  key: 0,
86059
86063
  class: "input-radio-info"
86060
86064
  };
@@ -86102,7 +86106,7 @@ var BmsInputRadio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
86102
86106
  name: __props.name,
86103
86107
  disabled: __props.disabled,
86104
86108
  required: __props.required
86105
- }, null, 8, _hoisted_1$50), [[vModelRadio, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$32, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)])], 2);
86109
+ }, null, 8, _hoisted_1$50), [[vModelRadio, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$33, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)])], 2);
86106
86110
  };
86107
86111
  }
86108
86112
  }), [["__scopeId", "data-v-c0c9efa3"]]);
@@ -86354,7 +86358,7 @@ var UiBmsSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
86354
86358
  //#endregion
86355
86359
  //#region src/components/form/BmsInputToggle.vue?vue&type=script&setup=true&lang.ts
86356
86360
  var _hoisted_1$48 = { class: "input-toggle__label-group" };
86357
- var _hoisted_2$31 = ["title"];
86361
+ var _hoisted_2$32 = ["title"];
86358
86362
  var _hoisted_3$18 = { class: "field__label-helper--icon" };
86359
86363
  //#endregion
86360
86364
  //#region src/components/form/BmsInputToggle.vue
@@ -86396,7 +86400,7 @@ var BmsInputToggle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
86396
86400
  }]) }, [createElementVNode("span", _hoisted_1$48, [createElementVNode("span", {
86397
86401
  class: "input-switch-info",
86398
86402
  title: __props.ellipsisLabel ? __props.label : void 0
86399
- }, toDisplayString(__props.label), 9, _hoisted_2$31), __props.helperText ? (openBlock(), createBlock(unref(BmsTooltip_default), {
86403
+ }, toDisplayString(__props.label), 9, _hoisted_2$32), __props.helperText ? (openBlock(), createBlock(unref(BmsTooltip_default), {
86400
86404
  key: 0,
86401
86405
  tooltipText: __props.helperText
86402
86406
  }, {
@@ -86533,7 +86537,7 @@ var RawSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
86533
86537
  //#endregion
86534
86538
  //#region src/components/form/BmsMultiSelect.vue?vue&type=script&setup=true&lang.ts
86535
86539
  var _hoisted_1$46 = { class: "tags" };
86536
- var _hoisted_2$30 = ["disabled"];
86540
+ var _hoisted_2$31 = ["disabled"];
86537
86541
  var _hoisted_3$17 = { class: "icon-container" };
86538
86542
  //#endregion
86539
86543
  //#region src/components/form/BmsMultiSelect.vue
@@ -86645,7 +86649,7 @@ var BmsMultiSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
86645
86649
  disabled: __props.disabled,
86646
86650
  onInput,
86647
86651
  onKeyup: withKeys(openDatalist, ["down"])
86648
- }, null, 40, _hoisted_2$30), [[vModelText, searching.value]])]), createElementVNode("span", _hoisted_3$17, [modelValue.value && modelValue.value?.length ? (openBlock(), createBlock(unref(X), {
86652
+ }, null, 40, _hoisted_2$31), [[vModelText, searching.value]])]), createElementVNode("span", _hoisted_3$17, [modelValue.value && modelValue.value?.length ? (openBlock(), createBlock(unref(X), {
86649
86653
  key: 0,
86650
86654
  class: "icon icon-clear",
86651
86655
  onClick: withModifiers(clearInput, ["stop"])
@@ -101319,7 +101323,7 @@ var _hoisted_1$45 = [
101319
101323
  "required",
101320
101324
  "disabled"
101321
101325
  ];
101322
- var _hoisted_2$29 = { class: "icon-toggle-container" };
101326
+ var _hoisted_2$30 = { class: "icon-toggle-container" };
101323
101327
  //#endregion
101324
101328
  //#region src/components/form/BmsSelect.vue
101325
101329
  var BmsSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -101411,7 +101415,7 @@ var BmsSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
101411
101415
  required: __props.required,
101412
101416
  disabled: __props.disabled,
101413
101417
  onKeyup: withKeys(openDatalist, ["down"])
101414
- }, null, 40, _hoisted_1$45), createElementVNode("span", _hoisted_2$29, [isDatalistOpen.value ? (openBlock(), createBlock(unref(ChevronUp), {
101418
+ }, null, 40, _hoisted_1$45), createElementVNode("span", _hoisted_2$30, [isDatalistOpen.value ? (openBlock(), createBlock(unref(ChevronUp), {
101415
101419
  key: 0,
101416
101420
  class: "icon-toggle-button"
101417
101421
  })) : (openBlock(), createBlock(unref(ChevronDown), {
@@ -101448,7 +101452,7 @@ var UiSelectIcon_default = /* @__PURE__ */ defineComponent({
101448
101452
  //#endregion
101449
101453
  //#region src/components/form/BmsCombobox.vue?vue&type=script&setup=true&lang.ts
101450
101454
  var _hoisted_1$43 = { class: "select-wrapper" };
101451
- var _hoisted_2$28 = {
101455
+ var _hoisted_2$29 = {
101452
101456
  key: 0,
101453
101457
  class: "select-input__tags"
101454
101458
  };
@@ -101711,7 +101715,7 @@ var BmsCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
101711
101715
  ref_key: "selectElement",
101712
101716
  ref: selectElement
101713
101717
  }, [
101714
- __props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$28, [renderSlot(_ctx.$slots, "selected-items", {
101718
+ __props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$29, [renderSlot(_ctx.$slots, "selected-items", {
101715
101719
  selectedItems: selectedItems.value,
101716
101720
  dismiss: (value) => onRemoveOption(value)
101717
101721
  }, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(selectedItems.value, (tag) => {
@@ -101813,7 +101817,8 @@ var BmsCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
101813
101817
  }), [["__scopeId", "data-v-7df0bce4"]]);
101814
101818
  //#endregion
101815
101819
  //#region src/components/form/BmsTextArea.vue?vue&type=script&setup=true&lang.ts
101816
- var _hoisted_1$42 = [
101820
+ var _hoisted_1$42 = { class: "field__input-icon field__input-icon--start" };
101821
+ var _hoisted_2$28 = [
101817
101822
  "value",
101818
101823
  "required",
101819
101824
  "placeholder",
@@ -101826,6 +101831,10 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
101826
101831
  props: {
101827
101832
  modelValue: {},
101828
101833
  placeholder: {},
101834
+ autoResize: {
101835
+ type: Boolean,
101836
+ default: false
101837
+ },
101829
101838
  label: { default: "" },
101830
101839
  loading: { type: Boolean },
101831
101840
  required: {
@@ -101848,14 +101857,27 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
101848
101857
  const props = __props;
101849
101858
  const textArea = ref(null);
101850
101859
  const $emits = __emit;
101860
+ const doResize = () => {
101861
+ if (!textArea.value) return;
101862
+ textArea.value.style.height = "auto";
101863
+ textArea.value.style.height = `${textArea.value.scrollHeight}px`;
101864
+ };
101851
101865
  const onInput = (e) => {
101852
101866
  if (!props.disabled) $emits("update:modelValue", (e?.target).value);
101867
+ if (props.autoResize) doResize();
101853
101868
  };
101869
+ onMounted(() => {
101870
+ if (props.autoResize) doResize();
101871
+ });
101872
+ watch(() => props.modelValue, () => {
101873
+ if (props.autoResize) doResize();
101874
+ });
101854
101875
  const classes = computed(() => {
101855
101876
  return {
101856
101877
  "is-error": props.errors?.length,
101857
101878
  "is-disabled": props.disabled,
101858
- "is-small": props.small
101879
+ "is-small": props.small,
101880
+ "is-auto-resize": props.autoResize
101859
101881
  };
101860
101882
  });
101861
101883
  const setFocus = () => {
@@ -101865,24 +101887,23 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
101865
101887
  return (_ctx, _cache) => {
101866
101888
  const _component_field = resolveComponent("field");
101867
101889
  return openBlock(), createBlock(_component_field, normalizeProps(guardReactiveProps(_ctx.$props)), {
101868
- default: withCtx(() => [createElementVNode("textarea", {
101890
+ default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["textarea-wrapper", classes.value]) }, [createElementVNode("span", _hoisted_1$42, [renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)]), createElementVNode("textarea", {
101869
101891
  ref_key: "textArea",
101870
101892
  ref: textArea,
101871
101893
  value: __props.modelValue,
101872
101894
  role: "input",
101873
- class: normalizeClass(classes.value),
101874
101895
  required: __props.required,
101875
101896
  placeholder: __props.placeholder,
101876
101897
  disabled: __props.disabled,
101877
101898
  onInput,
101878
101899
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(() => {}, ["stop"]), ["enter"])),
101879
101900
  cols: "10"
101880
- }, " " + toDisplayString(__props.modelValue) + "\n ", 43, _hoisted_1$42)]),
101881
- _: 1
101901
+ }, " " + toDisplayString(__props.modelValue) + "\n ", 41, _hoisted_2$28)], 2)]),
101902
+ _: 3
101882
101903
  }, 16);
101883
101904
  };
101884
101905
  }
101885
- }), [["__scopeId", "data-v-6d84521c"]]);
101906
+ }), [["__scopeId", "data-v-3dc80e4b"]]);
101886
101907
  //#endregion
101887
101908
  //#region src/components/form/BmsInputTime.vue
101888
101909
  var BmsInputTime_default = /* @__PURE__ */ defineComponent({