@ouestfrance/sipa-bms-ui 8.51.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.
- package/dist/components/form/BmsTextArea.vue.d.ts +11 -2
- package/dist/sipa-bms-ui.css +46 -15
- package/dist/sipa-bms-ui.es.js +60 -43
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +60 -43
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/BmsTextArea.stories.js +40 -5
- package/src/components/form/BmsTextArea.vue +114 -48
|
@@ -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
|
-
|
|
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
|
+
};
|
package/dist/sipa-bms-ui.css
CHANGED
|
@@ -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
|
-
}.
|
|
1704
|
-
|
|
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
|
-
.
|
|
1711
|
+
.textarea-wrapper[data-v-3dc80e4b]:hover {
|
|
1717
1712
|
--field-border-color: var(--bms-grey-100);
|
|
1718
1713
|
}
|
|
1719
|
-
.
|
|
1714
|
+
.textarea-wrapper[data-v-3dc80e4b]:focus-within {
|
|
1720
1715
|
--field-border-color: var(--field-border-color-active);
|
|
1721
1716
|
}
|
|
1722
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
1737
|
-
min-height:
|
|
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));
|
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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"
|
|
@@ -55185,7 +55185,7 @@ var BmsSwitchIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
55185
55185
|
class: "bms-switch-icon-button__menu__item__icon"
|
|
55186
55186
|
})) : createCommentVNode("", true),
|
|
55187
55187
|
createElementVNode("span", _hoisted_4$15, toDisplayString(option.label), 1)
|
|
55188
|
-
], 8, _hoisted_2$
|
|
55188
|
+
], 8, _hoisted_2$44);
|
|
55189
55189
|
}), 128))], 4), [[vShow, isOpen.value]])], 2);
|
|
55190
55190
|
};
|
|
55191
55191
|
}
|
|
@@ -55193,7 +55193,7 @@ var BmsSwitchIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
55193
55193
|
//#endregion
|
|
55194
55194
|
//#region src/components/feedback/BmsAlert.vue?vue&type=script&setup=true&lang.ts
|
|
55195
55195
|
var _hoisted_1$63 = { class: "info-line" };
|
|
55196
|
-
var _hoisted_2$
|
|
55196
|
+
var _hoisted_2$43 = { class: "icon" };
|
|
55197
55197
|
var _hoisted_3$24 = { class: "message" };
|
|
55198
55198
|
//#endregion
|
|
55199
55199
|
//#region src/components/feedback/BmsAlert.vue
|
|
@@ -55224,7 +55224,7 @@ var BmsAlert_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
55224
55224
|
});
|
|
55225
55225
|
return (_ctx, _cache) => {
|
|
55226
55226
|
return openBlock(), createElementBlock("div", { class: normalizeClass(["alert", `alert-${props.type} ${props.small ? "alert--small" : ""}`]) }, [createElementVNode("div", _hoisted_1$63, [
|
|
55227
|
-
createElementVNode("span", _hoisted_2$
|
|
55227
|
+
createElementVNode("span", _hoisted_2$43, [(openBlock(), createBlock(resolveDynamicComponent(alertIcon.value), { size: 20 }))]),
|
|
55228
55228
|
createElementVNode("span", _hoisted_3$24, [renderSlot(_ctx.$slots, "message", {}, () => [createElementVNode("strong", null, toDisplayString(__props.message), 1)], true)]),
|
|
55229
55229
|
renderSlot(_ctx.$slots, "action", {}, void 0, true),
|
|
55230
55230
|
__props.dismissable ? (openBlock(), createBlock(BmsIconButton_default, {
|
|
@@ -55274,7 +55274,7 @@ var _hoisted_1$61 = {
|
|
|
55274
55274
|
key: 0,
|
|
55275
55275
|
class: "icon"
|
|
55276
55276
|
};
|
|
55277
|
-
var _hoisted_2$
|
|
55277
|
+
var _hoisted_2$42 = ["innerHTML"];
|
|
55278
55278
|
//#endregion
|
|
55279
55279
|
//#region src/components/feedback/BmsCaption.vue
|
|
55280
55280
|
var BmsCaption_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -55299,14 +55299,14 @@ var BmsCaption_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
55299
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", {
|
|
55300
55300
|
class: "label",
|
|
55301
55301
|
innerHTML: unref(sanitizeHtml)(computedCaption.value.label)
|
|
55302
|
-
}, null, 8, _hoisted_2$
|
|
55302
|
+
}, null, 8, _hoisted_2$42)], 2);
|
|
55303
55303
|
};
|
|
55304
55304
|
}
|
|
55305
55305
|
}), [["__scopeId", "data-v-b08dd4e0"]]);
|
|
55306
55306
|
//#endregion
|
|
55307
55307
|
//#region src/components/feedback/BmsCircularProgress.vue?vue&type=script&setup=true&lang.ts
|
|
55308
55308
|
var _hoisted_1$60 = { class: "circular-progress" };
|
|
55309
|
-
var _hoisted_2$
|
|
55309
|
+
var _hoisted_2$41 = {
|
|
55310
55310
|
key: 0,
|
|
55311
55311
|
viewBox: "0 0 100 100"
|
|
55312
55312
|
};
|
|
@@ -55320,7 +55320,7 @@ var BmsCircularProgress_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
55320
55320
|
props: ["progress"],
|
|
55321
55321
|
setup(__props) {
|
|
55322
55322
|
return (_ctx, _cache) => {
|
|
55323
|
-
return openBlock(), createElementBlock("div", _hoisted_1$60, [__props.progress ? (openBlock(), createElementBlock("svg", _hoisted_2$
|
|
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", {
|
|
55324
55324
|
opacity: ".08",
|
|
55325
55325
|
r: "45",
|
|
55326
55326
|
cx: "50",
|
|
@@ -55402,7 +55402,7 @@ var _hoisted_1$59 = {
|
|
|
55402
55402
|
viewBox: "0 0 38 38",
|
|
55403
55403
|
xmlns: "http://www.w3.org/2000/svg"
|
|
55404
55404
|
};
|
|
55405
|
-
var _hoisted_2$
|
|
55405
|
+
var _hoisted_2$40 = ["id"];
|
|
55406
55406
|
var _hoisted_3$22 = {
|
|
55407
55407
|
fill: "none",
|
|
55408
55408
|
"fill-rule": "evenodd"
|
|
@@ -55449,7 +55449,7 @@ var BmsLoader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
55449
55449
|
"stop-color": "currentColor",
|
|
55450
55450
|
offset: "100%"
|
|
55451
55451
|
}, null, -1)
|
|
55452
|
-
])], 8, _hoisted_2$
|
|
55452
|
+
])], 8, _hoisted_2$40)]), createElementVNode("g", _hoisted_3$22, [createElementVNode("g", _hoisted_4$13, [createElementVNode("path", {
|
|
55453
55453
|
d: "M36 18c0-9.94-8.06-18-18-18",
|
|
55454
55454
|
id: "Oval-2",
|
|
55455
55455
|
stroke: `url(#${unref(gradientId)})`,
|
|
@@ -55852,7 +55852,7 @@ var FieldDatalist_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
55852
55852
|
//#endregion
|
|
55853
55853
|
//#region src/components/form/RawInputText.vue?vue&type=script&setup=true&lang.ts
|
|
55854
55854
|
var _hoisted_1$57 = { class: "field__input-label" };
|
|
55855
|
-
var _hoisted_2$
|
|
55855
|
+
var _hoisted_2$39 = { class: "field__input-icon field__input-icon--start" };
|
|
55856
55856
|
var _hoisted_3$21 = [
|
|
55857
55857
|
"type",
|
|
55858
55858
|
"value",
|
|
@@ -55936,7 +55936,7 @@ var RawInputText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
55936
55936
|
return (_ctx, _cache) => {
|
|
55937
55937
|
return openBlock(), createElementBlock("span", { class: normalizeClass(["input-wrapper", classes.value]) }, [
|
|
55938
55938
|
createElementVNode("template", _hoisted_1$57, [renderSlot(_ctx.$slots, "label", {}, void 0, true)]),
|
|
55939
|
-
createElementVNode("span", _hoisted_2$
|
|
55939
|
+
createElementVNode("span", _hoisted_2$39, [renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)]),
|
|
55940
55940
|
createElementVNode("input", {
|
|
55941
55941
|
ref_key: "input",
|
|
55942
55942
|
ref: input,
|
|
@@ -56144,7 +56144,7 @@ var RawAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
56144
56144
|
//#endregion
|
|
56145
56145
|
//#region src/components/form/BmsAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
56146
56146
|
var _hoisted_1$56 = ["innerHTML"];
|
|
56147
|
-
var _hoisted_2$
|
|
56147
|
+
var _hoisted_2$38 = ["innerHTML"];
|
|
56148
56148
|
//#endregion
|
|
56149
56149
|
//#region src/components/form/BmsAutocomplete.vue
|
|
56150
56150
|
var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -56219,7 +56219,7 @@ var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
56219
56219
|
key: 0,
|
|
56220
56220
|
class: "icon datalist-icon",
|
|
56221
56221
|
innerHTML: option.icon
|
|
56222
|
-
}, null, 8, _hoisted_2$
|
|
56222
|
+
}, null, 8, _hoisted_2$38)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
|
|
56223
56223
|
key: 1,
|
|
56224
56224
|
class: "icon datalist-icon"
|
|
56225
56225
|
}))], 64)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(option.label), 1)]),
|
|
@@ -56254,7 +56254,7 @@ var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
56254
56254
|
//#endregion
|
|
56255
56255
|
//#region src/components/form/BmsServerAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
56256
56256
|
var _hoisted_1$55 = ["innerHTML"];
|
|
56257
|
-
var _hoisted_2$
|
|
56257
|
+
var _hoisted_2$37 = ["innerHTML"];
|
|
56258
56258
|
//#endregion
|
|
56259
56259
|
//#region src/components/form/BmsServerAutocomplete.vue
|
|
56260
56260
|
var BmsServerAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -56352,7 +56352,7 @@ var BmsServerAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
56352
56352
|
key: 0,
|
|
56353
56353
|
class: "icon datalist-icon",
|
|
56354
56354
|
innerHTML: option.icon
|
|
56355
|
-
}, null, 8, _hoisted_2$
|
|
56355
|
+
}, null, 8, _hoisted_2$37)) : (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
|
|
56356
56356
|
key: 1,
|
|
56357
56357
|
class: "icon datalist-icon"
|
|
56358
56358
|
}))], 64)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(option.label), 1)]),
|
|
@@ -56500,7 +56500,7 @@ var BmsChip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
56500
56500
|
//#endregion
|
|
56501
56501
|
//#region src/components/form/BmsFilePicker.vue?vue&type=script&setup=true&lang.ts
|
|
56502
56502
|
var _hoisted_1$54 = { class: "file-upload" };
|
|
56503
|
-
var _hoisted_2$
|
|
56503
|
+
var _hoisted_2$36 = { class: "file-upload__label" };
|
|
56504
56504
|
var _hoisted_3$20 = { key: 1 };
|
|
56505
56505
|
var _hoisted_4$11 = { class: "file-upload__file-name" };
|
|
56506
56506
|
//#endregion
|
|
@@ -56576,7 +56576,7 @@ var BmsFilePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
56576
56576
|
"data-testid": "file-upload-drop-area",
|
|
56577
56577
|
onDrop: _cache[1] || (_cache[1] = withModifiers(($event) => onDropFile($event), ["prevent"])),
|
|
56578
56578
|
onDragover: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"]))
|
|
56579
|
-
}, [createElementVNode("label", _hoisted_2$
|
|
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", {
|
|
56580
56580
|
"data-testid": "file-upload-input-file",
|
|
56581
56581
|
type: "file",
|
|
56582
56582
|
onChange: _cache[0] || (_cache[0] = ($event) => onSelectFile($event))
|
|
@@ -56599,7 +56599,7 @@ var _hoisted_1$53 = [
|
|
|
56599
56599
|
"name",
|
|
56600
56600
|
"value"
|
|
56601
56601
|
];
|
|
56602
|
-
var _hoisted_2$
|
|
56602
|
+
var _hoisted_2$35 = {
|
|
56603
56603
|
key: 0,
|
|
56604
56604
|
class: "input-checkbox-info"
|
|
56605
56605
|
};
|
|
@@ -56646,7 +56646,7 @@ var UiBmsInputCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
56646
56646
|
name: __props.name,
|
|
56647
56647
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
56648
56648
|
value: __props.value
|
|
56649
|
-
}, null, 8, _hoisted_1$53), [[vModelCheckbox, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_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);
|
|
56650
56650
|
};
|
|
56651
56651
|
}
|
|
56652
56652
|
}), [["__scopeId", "data-v-e1d94c62"]]);
|
|
@@ -85813,7 +85813,7 @@ var BmsInputDateTime_default = /* @__PURE__ */ defineComponent({
|
|
|
85813
85813
|
//#endregion
|
|
85814
85814
|
//#region src/components/form/BmsInputFile.vue?vue&type=script&setup=true&lang.ts
|
|
85815
85815
|
var _hoisted_1$51 = ["accept"];
|
|
85816
|
-
var _hoisted_2$
|
|
85816
|
+
var _hoisted_2$34 = ["src"];
|
|
85817
85817
|
var _hoisted_3$19 = {
|
|
85818
85818
|
key: 1,
|
|
85819
85819
|
class: "file-upload__file-name"
|
|
@@ -85953,7 +85953,7 @@ var BmsInputFile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
85953
85953
|
key: 0,
|
|
85954
85954
|
src: getImageSrc(file),
|
|
85955
85955
|
class: "file-upload__file-img"
|
|
85956
|
-
}, null, 8, _hoisted_2$
|
|
85956
|
+
}, null, 8, _hoisted_2$34)) : (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(file.name), 1)), createVNode(BmsIconButton_default, {
|
|
85957
85957
|
mode: unref(StatusType).Danger,
|
|
85958
85958
|
onClick: withModifiers(($event) => onDeleteFile(file), ["prevent"]),
|
|
85959
85959
|
class: "close-button"
|
|
@@ -86058,7 +86058,7 @@ var _hoisted_1$50 = [
|
|
|
86058
86058
|
"disabled",
|
|
86059
86059
|
"required"
|
|
86060
86060
|
];
|
|
86061
|
-
var _hoisted_2$
|
|
86061
|
+
var _hoisted_2$33 = {
|
|
86062
86062
|
key: 0,
|
|
86063
86063
|
class: "input-radio-info"
|
|
86064
86064
|
};
|
|
@@ -86106,7 +86106,7 @@ var BmsInputRadio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
86106
86106
|
name: __props.name,
|
|
86107
86107
|
disabled: __props.disabled,
|
|
86108
86108
|
required: __props.required
|
|
86109
|
-
}, null, 8, _hoisted_1$50), [[vModelRadio, inputValue.value]]), hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_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);
|
|
86110
86110
|
};
|
|
86111
86111
|
}
|
|
86112
86112
|
}), [["__scopeId", "data-v-c0c9efa3"]]);
|
|
@@ -86358,7 +86358,7 @@ var UiBmsSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
86358
86358
|
//#endregion
|
|
86359
86359
|
//#region src/components/form/BmsInputToggle.vue?vue&type=script&setup=true&lang.ts
|
|
86360
86360
|
var _hoisted_1$48 = { class: "input-toggle__label-group" };
|
|
86361
|
-
var _hoisted_2$
|
|
86361
|
+
var _hoisted_2$32 = ["title"];
|
|
86362
86362
|
var _hoisted_3$18 = { class: "field__label-helper--icon" };
|
|
86363
86363
|
//#endregion
|
|
86364
86364
|
//#region src/components/form/BmsInputToggle.vue
|
|
@@ -86400,7 +86400,7 @@ var BmsInputToggle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
86400
86400
|
}]) }, [createElementVNode("span", _hoisted_1$48, [createElementVNode("span", {
|
|
86401
86401
|
class: "input-switch-info",
|
|
86402
86402
|
title: __props.ellipsisLabel ? __props.label : void 0
|
|
86403
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
86403
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$32), __props.helperText ? (openBlock(), createBlock(unref(BmsTooltip_default), {
|
|
86404
86404
|
key: 0,
|
|
86405
86405
|
tooltipText: __props.helperText
|
|
86406
86406
|
}, {
|
|
@@ -86537,7 +86537,7 @@ var RawSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
86537
86537
|
//#endregion
|
|
86538
86538
|
//#region src/components/form/BmsMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
86539
86539
|
var _hoisted_1$46 = { class: "tags" };
|
|
86540
|
-
var _hoisted_2$
|
|
86540
|
+
var _hoisted_2$31 = ["disabled"];
|
|
86541
86541
|
var _hoisted_3$17 = { class: "icon-container" };
|
|
86542
86542
|
//#endregion
|
|
86543
86543
|
//#region src/components/form/BmsMultiSelect.vue
|
|
@@ -86649,7 +86649,7 @@ var BmsMultiSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
86649
86649
|
disabled: __props.disabled,
|
|
86650
86650
|
onInput,
|
|
86651
86651
|
onKeyup: withKeys(openDatalist, ["down"])
|
|
86652
|
-
}, null, 40, _hoisted_2$
|
|
86652
|
+
}, null, 40, _hoisted_2$31), [[vModelText, searching.value]])]), createElementVNode("span", _hoisted_3$17, [modelValue.value && modelValue.value?.length ? (openBlock(), createBlock(unref(X), {
|
|
86653
86653
|
key: 0,
|
|
86654
86654
|
class: "icon icon-clear",
|
|
86655
86655
|
onClick: withModifiers(clearInput, ["stop"])
|
|
@@ -101323,7 +101323,7 @@ var _hoisted_1$45 = [
|
|
|
101323
101323
|
"required",
|
|
101324
101324
|
"disabled"
|
|
101325
101325
|
];
|
|
101326
|
-
var _hoisted_2$
|
|
101326
|
+
var _hoisted_2$30 = { class: "icon-toggle-container" };
|
|
101327
101327
|
//#endregion
|
|
101328
101328
|
//#region src/components/form/BmsSelect.vue
|
|
101329
101329
|
var BmsSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -101415,7 +101415,7 @@ var BmsSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
101415
101415
|
required: __props.required,
|
|
101416
101416
|
disabled: __props.disabled,
|
|
101417
101417
|
onKeyup: withKeys(openDatalist, ["down"])
|
|
101418
|
-
}, null, 40, _hoisted_1$45), createElementVNode("span", _hoisted_2$
|
|
101418
|
+
}, null, 40, _hoisted_1$45), createElementVNode("span", _hoisted_2$30, [isDatalistOpen.value ? (openBlock(), createBlock(unref(ChevronUp), {
|
|
101419
101419
|
key: 0,
|
|
101420
101420
|
class: "icon-toggle-button"
|
|
101421
101421
|
})) : (openBlock(), createBlock(unref(ChevronDown), {
|
|
@@ -101452,7 +101452,7 @@ var UiSelectIcon_default = /* @__PURE__ */ defineComponent({
|
|
|
101452
101452
|
//#endregion
|
|
101453
101453
|
//#region src/components/form/BmsCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
101454
101454
|
var _hoisted_1$43 = { class: "select-wrapper" };
|
|
101455
|
-
var _hoisted_2$
|
|
101455
|
+
var _hoisted_2$29 = {
|
|
101456
101456
|
key: 0,
|
|
101457
101457
|
class: "select-input__tags"
|
|
101458
101458
|
};
|
|
@@ -101715,7 +101715,7 @@ var BmsCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
101715
101715
|
ref_key: "selectElement",
|
|
101716
101716
|
ref: selectElement
|
|
101717
101717
|
}, [
|
|
101718
|
-
__props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
101718
|
+
__props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$29, [renderSlot(_ctx.$slots, "selected-items", {
|
|
101719
101719
|
selectedItems: selectedItems.value,
|
|
101720
101720
|
dismiss: (value) => onRemoveOption(value)
|
|
101721
101721
|
}, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(selectedItems.value, (tag) => {
|
|
@@ -101817,7 +101817,8 @@ var BmsCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
101817
101817
|
}), [["__scopeId", "data-v-7df0bce4"]]);
|
|
101818
101818
|
//#endregion
|
|
101819
101819
|
//#region src/components/form/BmsTextArea.vue?vue&type=script&setup=true&lang.ts
|
|
101820
|
-
var _hoisted_1$42 =
|
|
101820
|
+
var _hoisted_1$42 = { class: "field__input-icon field__input-icon--start" };
|
|
101821
|
+
var _hoisted_2$28 = [
|
|
101821
101822
|
"value",
|
|
101822
101823
|
"required",
|
|
101823
101824
|
"placeholder",
|
|
@@ -101830,6 +101831,10 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
101830
101831
|
props: {
|
|
101831
101832
|
modelValue: {},
|
|
101832
101833
|
placeholder: {},
|
|
101834
|
+
autoResize: {
|
|
101835
|
+
type: Boolean,
|
|
101836
|
+
default: false
|
|
101837
|
+
},
|
|
101833
101838
|
label: { default: "" },
|
|
101834
101839
|
loading: { type: Boolean },
|
|
101835
101840
|
required: {
|
|
@@ -101852,14 +101857,27 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
101852
101857
|
const props = __props;
|
|
101853
101858
|
const textArea = ref(null);
|
|
101854
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
|
+
};
|
|
101855
101865
|
const onInput = (e) => {
|
|
101856
101866
|
if (!props.disabled) $emits("update:modelValue", (e?.target).value);
|
|
101867
|
+
if (props.autoResize) doResize();
|
|
101857
101868
|
};
|
|
101869
|
+
onMounted(() => {
|
|
101870
|
+
if (props.autoResize) doResize();
|
|
101871
|
+
});
|
|
101872
|
+
watch(() => props.modelValue, () => {
|
|
101873
|
+
if (props.autoResize) doResize();
|
|
101874
|
+
});
|
|
101858
101875
|
const classes = computed(() => {
|
|
101859
101876
|
return {
|
|
101860
101877
|
"is-error": props.errors?.length,
|
|
101861
101878
|
"is-disabled": props.disabled,
|
|
101862
|
-
"is-small": props.small
|
|
101879
|
+
"is-small": props.small,
|
|
101880
|
+
"is-auto-resize": props.autoResize
|
|
101863
101881
|
};
|
|
101864
101882
|
});
|
|
101865
101883
|
const setFocus = () => {
|
|
@@ -101869,24 +101887,23 @@ var BmsTextArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
101869
101887
|
return (_ctx, _cache) => {
|
|
101870
101888
|
const _component_field = resolveComponent("field");
|
|
101871
101889
|
return openBlock(), createBlock(_component_field, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
101872
|
-
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", {
|
|
101873
101891
|
ref_key: "textArea",
|
|
101874
101892
|
ref: textArea,
|
|
101875
101893
|
value: __props.modelValue,
|
|
101876
101894
|
role: "input",
|
|
101877
|
-
class: normalizeClass(classes.value),
|
|
101878
101895
|
required: __props.required,
|
|
101879
101896
|
placeholder: __props.placeholder,
|
|
101880
101897
|
disabled: __props.disabled,
|
|
101881
101898
|
onInput,
|
|
101882
101899
|
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(() => {}, ["stop"]), ["enter"])),
|
|
101883
101900
|
cols: "10"
|
|
101884
|
-
}, "
|
|
101885
|
-
_:
|
|
101901
|
+
}, " " + toDisplayString(__props.modelValue) + "\n ", 41, _hoisted_2$28)], 2)]),
|
|
101902
|
+
_: 3
|
|
101886
101903
|
}, 16);
|
|
101887
101904
|
};
|
|
101888
101905
|
}
|
|
101889
|
-
}), [["__scopeId", "data-v-
|
|
101906
|
+
}), [["__scopeId", "data-v-3dc80e4b"]]);
|
|
101890
101907
|
//#endregion
|
|
101891
101908
|
//#region src/components/form/BmsInputTime.vue
|
|
101892
101909
|
var BmsInputTime_default = /* @__PURE__ */ defineComponent({
|