@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.
- package/dist/components/form/BmsTextArea.vue.d.ts +11 -2
- package/dist/sipa-bms-ui.css +67 -36
- package/dist/sipa-bms-ui.es.js +69 -48
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +69 -48
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/button/BmsSwitchIconButton.stories.js +24 -0
- package/src/components/button/BmsSwitchIconButton.vue +9 -5
- package/src/components/form/BmsTextArea.stories.js +40 -5
- package/src/components/form/BmsTextArea.vue +114 -48
package/dist/sipa-bms-ui.umd.js
CHANGED
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region src/components/navigation/BmsLink.vue?vue&type=script&setup=true&lang.ts
|
|
362
362
|
var _hoisted_1$68 = ["href", "target"];
|
|
363
|
-
var _hoisted_2$
|
|
363
|
+
var _hoisted_2$46 = [
|
|
364
364
|
"href",
|
|
365
365
|
"onClick",
|
|
366
366
|
"target"
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
onClick: navigate,
|
|
403
403
|
class: computedClasses.value,
|
|
404
404
|
target: __props.target
|
|
405
|
-
}, _ctx.$attrs), [(0, vue.renderSlot)(_ctx.$slots, "default")], 16, _hoisted_2$
|
|
405
|
+
}, _ctx.$attrs), [(0, vue.renderSlot)(_ctx.$slots, "default")], 16, _hoisted_2$46)]),
|
|
406
406
|
_: 3
|
|
407
407
|
}, 8, ["to"]));
|
|
408
408
|
};
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
//#endregion
|
|
456
456
|
//#region src/components/button/UiButton.vue?vue&type=script&setup=true&lang.ts
|
|
457
457
|
var _hoisted_1$66 = { class: "start" };
|
|
458
|
-
var _hoisted_2$
|
|
458
|
+
var _hoisted_2$45 = { class: "content" };
|
|
459
459
|
var _hoisted_3$26 = { class: "end" };
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region src/components/button/UiButton.vue
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
return (0, vue.openBlock)(), (0, vue.createBlock)(UiButtonLink_default, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props)), {
|
|
482
482
|
default: (0, vue.withCtx)(() => [
|
|
483
483
|
(0, vue.createElementVNode)("span", _hoisted_1$66, [(0, vue.renderSlot)(_ctx.$slots, "start")]),
|
|
484
|
-
(0, vue.createElementVNode)("span", _hoisted_2$
|
|
484
|
+
(0, vue.createElementVNode)("span", _hoisted_2$45, [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
485
485
|
(0, vue.createElementVNode)("span", _hoisted_3$26, [(0, vue.renderSlot)(_ctx.$slots, "end")])
|
|
486
486
|
]),
|
|
487
487
|
_: 3
|
|
@@ -55090,7 +55090,7 @@
|
|
|
55090
55090
|
//#endregion
|
|
55091
55091
|
//#region src/components/button/BmsSwitchIconButton.vue?vue&type=script&setup=true&lang.ts
|
|
55092
55092
|
var _hoisted_1$64 = { class: "bms-switch-icon-button__button__icon-container" };
|
|
55093
|
-
var _hoisted_2$
|
|
55093
|
+
var _hoisted_2$44 = ["onClick"];
|
|
55094
55094
|
var _hoisted_3$25 = {
|
|
55095
55095
|
key: 1,
|
|
55096
55096
|
class: "bms-switch-icon-button__menu__item__check-placeholder"
|
|
@@ -55121,13 +55121,17 @@
|
|
|
55121
55121
|
const props = __props;
|
|
55122
55122
|
const emits = __emit;
|
|
55123
55123
|
const isOpen = (0, vue.ref)(false);
|
|
55124
|
+
const openUpward = (0, vue.ref)(true);
|
|
55124
55125
|
const anchorElement = (0, vue.useTemplateRef)("anchorElement");
|
|
55125
55126
|
const menuElement = (0, vue.useTemplateRef)("menuElement");
|
|
55126
|
-
const { height } = useElementBounding(anchorElement);
|
|
55127
|
-
const menuStyle = (0, vue.computed)(() =>
|
|
55127
|
+
const { height, top, bottom } = useElementBounding(anchorElement);
|
|
55128
|
+
const menuStyle = (0, vue.computed)(() => openUpward.value ? { bottom: `${height.value}px` } : { top: `${height.value}px` });
|
|
55128
55129
|
const selectedOption = (0, vue.computed)(() => props.options.find((option) => option.value === props.modelValue));
|
|
55129
55130
|
const toggleMenu = () => {
|
|
55130
|
-
if (!props.disabled)
|
|
55131
|
+
if (!props.disabled) {
|
|
55132
|
+
if (!isOpen.value) openUpward.value = top.value > window.innerHeight - bottom.value;
|
|
55133
|
+
isOpen.value = !isOpen.value;
|
|
55134
|
+
}
|
|
55131
55135
|
};
|
|
55132
55136
|
const selectOption = (value) => {
|
|
55133
55137
|
emits("update:modelValue", value);
|
|
@@ -55157,7 +55161,7 @@
|
|
|
55157
55161
|
key: 0,
|
|
55158
55162
|
size: 16,
|
|
55159
55163
|
class: "bms-switch-icon-button__button__icon"
|
|
55160
|
-
})) : (0, vue.createCommentVNode)("", true)]),
|
|
55164
|
+
})) : (0, vue.createCommentVNode)("", true)]), openUpward.value !== isOpen.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ChevronUp), {
|
|
55161
55165
|
key: 0,
|
|
55162
55166
|
size: 10,
|
|
55163
55167
|
class: "bms-switch-icon-button__button__chevron"
|
|
@@ -55187,15 +55191,15 @@
|
|
|
55187
55191
|
class: "bms-switch-icon-button__menu__item__icon"
|
|
55188
55192
|
})) : (0, vue.createCommentVNode)("", true),
|
|
55189
55193
|
(0, vue.createElementVNode)("span", _hoisted_4$15, (0, vue.toDisplayString)(option.label), 1)
|
|
55190
|
-
], 8, _hoisted_2$
|
|
55194
|
+
], 8, _hoisted_2$44);
|
|
55191
55195
|
}), 128))], 4), [[vue.vShow, isOpen.value]])], 2);
|
|
55192
55196
|
};
|
|
55193
55197
|
}
|
|
55194
|
-
}), [["__scopeId", "data-v-
|
|
55198
|
+
}), [["__scopeId", "data-v-72b8f219"]]);
|
|
55195
55199
|
//#endregion
|
|
55196
55200
|
//#region src/components/feedback/BmsAlert.vue?vue&type=script&setup=true&lang.ts
|
|
55197
55201
|
var _hoisted_1$63 = { class: "info-line" };
|
|
55198
|
-
var _hoisted_2$
|
|
55202
|
+
var _hoisted_2$43 = { class: "icon" };
|
|
55199
55203
|
var _hoisted_3$24 = { class: "message" };
|
|
55200
55204
|
//#endregion
|
|
55201
55205
|
//#region src/components/feedback/BmsAlert.vue
|
|
@@ -55226,7 +55230,7 @@
|
|
|
55226
55230
|
});
|
|
55227
55231
|
return (_ctx, _cache) => {
|
|
55228
55232
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)(["alert", `alert-${props.type} ${props.small ? "alert--small" : ""}`]) }, [(0, vue.createElementVNode)("div", _hoisted_1$63, [
|
|
55229
|
-
(0, vue.createElementVNode)("span", _hoisted_2$
|
|
55233
|
+
(0, vue.createElementVNode)("span", _hoisted_2$43, [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(alertIcon.value), { size: 20 }))]),
|
|
55230
55234
|
(0, vue.createElementVNode)("span", _hoisted_3$24, [(0, vue.renderSlot)(_ctx.$slots, "message", {}, () => [(0, vue.createElementVNode)("strong", null, (0, vue.toDisplayString)(__props.message), 1)], true)]),
|
|
55231
55235
|
(0, vue.renderSlot)(_ctx.$slots, "action", {}, void 0, true),
|
|
55232
55236
|
__props.dismissable ? ((0, vue.openBlock)(), (0, vue.createBlock)(BmsIconButton_default, {
|
|
@@ -55276,7 +55280,7 @@
|
|
|
55276
55280
|
key: 0,
|
|
55277
55281
|
class: "icon"
|
|
55278
55282
|
};
|
|
55279
|
-
var _hoisted_2$
|
|
55283
|
+
var _hoisted_2$42 = ["innerHTML"];
|
|
55280
55284
|
//#endregion
|
|
55281
55285
|
//#region src/components/feedback/BmsCaption.vue
|
|
55282
55286
|
var BmsCaption_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -55301,14 +55305,14 @@
|
|
|
55301
55305
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)(["caption", `caption-${computedCaption.value.mode}`]) }, [computedCaption.value.mode != (0, vue.unref)(StatusType).Default ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1$61, [(0, vue.createVNode)((0, vue.unref)(alertIcon), { size: 13 })])) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("span", {
|
|
55302
55306
|
class: "label",
|
|
55303
55307
|
innerHTML: (0, vue.unref)(sanitizeHtml)(computedCaption.value.label)
|
|
55304
|
-
}, null, 8, _hoisted_2$
|
|
55308
|
+
}, null, 8, _hoisted_2$42)], 2);
|
|
55305
55309
|
};
|
|
55306
55310
|
}
|
|
55307
55311
|
}), [["__scopeId", "data-v-b08dd4e0"]]);
|
|
55308
55312
|
//#endregion
|
|
55309
55313
|
//#region src/components/feedback/BmsCircularProgress.vue?vue&type=script&setup=true&lang.ts
|
|
55310
55314
|
var _hoisted_1$60 = { class: "circular-progress" };
|
|
55311
|
-
var _hoisted_2$
|
|
55315
|
+
var _hoisted_2$41 = {
|
|
55312
55316
|
key: 0,
|
|
55313
55317
|
viewBox: "0 0 100 100"
|
|
55314
55318
|
};
|
|
@@ -55322,7 +55326,7 @@
|
|
|
55322
55326
|
props: ["progress"],
|
|
55323
55327
|
setup(__props) {
|
|
55324
55328
|
return (_ctx, _cache) => {
|
|
55325
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$60, [__props.progress ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_2$
|
|
55329
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$60, [__props.progress ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_2$41, [(0, vue.createElementVNode)("g", _hoisted_3$23, [_cache[0] || (_cache[0] = (0, vue.createElementVNode)("circle", {
|
|
55326
55330
|
opacity: ".08",
|
|
55327
55331
|
r: "45",
|
|
55328
55332
|
cx: "50",
|
|
@@ -55404,7 +55408,7 @@
|
|
|
55404
55408
|
viewBox: "0 0 38 38",
|
|
55405
55409
|
xmlns: "http://www.w3.org/2000/svg"
|
|
55406
55410
|
};
|
|
55407
|
-
var _hoisted_2$
|
|
55411
|
+
var _hoisted_2$40 = ["id"];
|
|
55408
55412
|
var _hoisted_3$22 = {
|
|
55409
55413
|
fill: "none",
|
|
55410
55414
|
"fill-rule": "evenodd"
|
|
@@ -55451,7 +55455,7 @@
|
|
|
55451
55455
|
"stop-color": "currentColor",
|
|
55452
55456
|
offset: "100%"
|
|
55453
55457
|
}, null, -1)
|
|
55454
|
-
])], 8, _hoisted_2$
|
|
55458
|
+
])], 8, _hoisted_2$40)]), (0, vue.createElementVNode)("g", _hoisted_3$22, [(0, vue.createElementVNode)("g", _hoisted_4$13, [(0, vue.createElementVNode)("path", {
|
|
55455
55459
|
d: "M36 18c0-9.94-8.06-18-18-18",
|
|
55456
55460
|
id: "Oval-2",
|
|
55457
55461
|
stroke: `url(#${(0, vue.unref)(gradientId)})`,
|
|
@@ -55854,7 +55858,7 @@
|
|
|
55854
55858
|
//#endregion
|
|
55855
55859
|
//#region src/components/form/RawInputText.vue?vue&type=script&setup=true&lang.ts
|
|
55856
55860
|
var _hoisted_1$57 = { class: "field__input-label" };
|
|
55857
|
-
var _hoisted_2$
|
|
55861
|
+
var _hoisted_2$39 = { class: "field__input-icon field__input-icon--start" };
|
|
55858
55862
|
var _hoisted_3$21 = [
|
|
55859
55863
|
"type",
|
|
55860
55864
|
"value",
|
|
@@ -55938,7 +55942,7 @@
|
|
|
55938
55942
|
return (_ctx, _cache) => {
|
|
55939
55943
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", { class: (0, vue.normalizeClass)(["input-wrapper", classes.value]) }, [
|
|
55940
55944
|
(0, vue.createElementVNode)("template", _hoisted_1$57, [(0, vue.renderSlot)(_ctx.$slots, "label", {}, void 0, true)]),
|
|
55941
|
-
(0, vue.createElementVNode)("span", _hoisted_2$
|
|
55945
|
+
(0, vue.createElementVNode)("span", _hoisted_2$39, [(0, vue.renderSlot)(_ctx.$slots, "icon-start", {}, void 0, true)]),
|
|
55942
55946
|
(0, vue.createElementVNode)("input", {
|
|
55943
55947
|
ref_key: "input",
|
|
55944
55948
|
ref: input,
|
|
@@ -56146,7 +56150,7 @@
|
|
|
56146
56150
|
//#endregion
|
|
56147
56151
|
//#region src/components/form/BmsAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
56148
56152
|
var _hoisted_1$56 = ["innerHTML"];
|
|
56149
|
-
var _hoisted_2$
|
|
56153
|
+
var _hoisted_2$38 = ["innerHTML"];
|
|
56150
56154
|
//#endregion
|
|
56151
56155
|
//#region src/components/form/BmsAutocomplete.vue
|
|
56152
56156
|
var BmsAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -56221,7 +56225,7 @@
|
|
|
56221
56225
|
key: 0,
|
|
56222
56226
|
class: "icon datalist-icon",
|
|
56223
56227
|
innerHTML: option.icon
|
|
56224
|
-
}, null, 8, _hoisted_2$
|
|
56228
|
+
}, null, 8, _hoisted_2$38)) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(option.icon), {
|
|
56225
56229
|
key: 1,
|
|
56226
56230
|
class: "icon datalist-icon"
|
|
56227
56231
|
}))], 64)) : (0, vue.createCommentVNode)("", true), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)(option.label), 1)]),
|
|
@@ -56256,7 +56260,7 @@
|
|
|
56256
56260
|
//#endregion
|
|
56257
56261
|
//#region src/components/form/BmsServerAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
56258
56262
|
var _hoisted_1$55 = ["innerHTML"];
|
|
56259
|
-
var _hoisted_2$
|
|
56263
|
+
var _hoisted_2$37 = ["innerHTML"];
|
|
56260
56264
|
//#endregion
|
|
56261
56265
|
//#region src/components/form/BmsServerAutocomplete.vue
|
|
56262
56266
|
var BmsServerAutocomplete_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -56354,7 +56358,7 @@
|
|
|
56354
56358
|
key: 0,
|
|
56355
56359
|
class: "icon datalist-icon",
|
|
56356
56360
|
innerHTML: option.icon
|
|
56357
|
-
}, null, 8, _hoisted_2$
|
|
56361
|
+
}, null, 8, _hoisted_2$37)) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(option.icon), {
|
|
56358
56362
|
key: 1,
|
|
56359
56363
|
class: "icon datalist-icon"
|
|
56360
56364
|
}))], 64)) : (0, vue.createCommentVNode)("", true), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)(option.label), 1)]),
|
|
@@ -56502,7 +56506,7 @@
|
|
|
56502
56506
|
//#endregion
|
|
56503
56507
|
//#region src/components/form/BmsFilePicker.vue?vue&type=script&setup=true&lang.ts
|
|
56504
56508
|
var _hoisted_1$54 = { class: "file-upload" };
|
|
56505
|
-
var _hoisted_2$
|
|
56509
|
+
var _hoisted_2$36 = { class: "file-upload__label" };
|
|
56506
56510
|
var _hoisted_3$20 = { key: 1 };
|
|
56507
56511
|
var _hoisted_4$11 = { class: "file-upload__file-name" };
|
|
56508
56512
|
//#endregion
|
|
@@ -56578,7 +56582,7 @@
|
|
|
56578
56582
|
"data-testid": "file-upload-drop-area",
|
|
56579
56583
|
onDrop: _cache[1] || (_cache[1] = (0, vue.withModifiers)(($event) => onDropFile($event), ["prevent"])),
|
|
56580
56584
|
onDragover: _cache[2] || (_cache[2] = (0, vue.withModifiers)(() => {}, ["prevent"]))
|
|
56581
|
-
}, [(0, vue.createElementVNode)("label", _hoisted_2$
|
|
56585
|
+
}, [(0, vue.createElementVNode)("label", _hoisted_2$36, [isDragOver.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.dragOverMessage), 1)], 64)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.dragOffMessage), 1)], 64)), (0, vue.createElementVNode)("input", {
|
|
56582
56586
|
"data-testid": "file-upload-input-file",
|
|
56583
56587
|
type: "file",
|
|
56584
56588
|
onChange: _cache[0] || (_cache[0] = ($event) => onSelectFile($event))
|
|
@@ -56601,7 +56605,7 @@
|
|
|
56601
56605
|
"name",
|
|
56602
56606
|
"value"
|
|
56603
56607
|
];
|
|
56604
|
-
var _hoisted_2$
|
|
56608
|
+
var _hoisted_2$35 = {
|
|
56605
56609
|
key: 0,
|
|
56606
56610
|
class: "input-checkbox-info"
|
|
56607
56611
|
};
|
|
@@ -56648,7 +56652,7 @@
|
|
|
56648
56652
|
name: __props.name,
|
|
56649
56653
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
56650
56654
|
value: __props.value
|
|
56651
|
-
}, null, 8, _hoisted_1$53), [[vue.vModelCheckbox, inputValue.value]]), hasLabel.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$
|
|
56655
|
+
}, null, 8, _hoisted_1$53), [[vue.vModelCheckbox, inputValue.value]]), hasLabel.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$35, [(0, vue.renderSlot)(_ctx.$slots, "label", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.label), 1)], true)])) : (0, vue.createCommentVNode)("", true)])], 2);
|
|
56652
56656
|
};
|
|
56653
56657
|
}
|
|
56654
56658
|
}), [["__scopeId", "data-v-e1d94c62"]]);
|
|
@@ -85815,7 +85819,7 @@
|
|
|
85815
85819
|
//#endregion
|
|
85816
85820
|
//#region src/components/form/BmsInputFile.vue?vue&type=script&setup=true&lang.ts
|
|
85817
85821
|
var _hoisted_1$51 = ["accept"];
|
|
85818
|
-
var _hoisted_2$
|
|
85822
|
+
var _hoisted_2$34 = ["src"];
|
|
85819
85823
|
var _hoisted_3$19 = {
|
|
85820
85824
|
key: 1,
|
|
85821
85825
|
class: "file-upload__file-name"
|
|
@@ -85955,7 +85959,7 @@
|
|
|
85955
85959
|
key: 0,
|
|
85956
85960
|
src: getImageSrc(file),
|
|
85957
85961
|
class: "file-upload__file-img"
|
|
85958
|
-
}, null, 8, _hoisted_2$
|
|
85962
|
+
}, null, 8, _hoisted_2$34)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$19, (0, vue.toDisplayString)(file.name), 1)), (0, vue.createVNode)(BmsIconButton_default, {
|
|
85959
85963
|
mode: (0, vue.unref)(StatusType).Danger,
|
|
85960
85964
|
onClick: (0, vue.withModifiers)(($event) => onDeleteFile(file), ["prevent"]),
|
|
85961
85965
|
class: "close-button"
|
|
@@ -86060,7 +86064,7 @@
|
|
|
86060
86064
|
"disabled",
|
|
86061
86065
|
"required"
|
|
86062
86066
|
];
|
|
86063
|
-
var _hoisted_2$
|
|
86067
|
+
var _hoisted_2$33 = {
|
|
86064
86068
|
key: 0,
|
|
86065
86069
|
class: "input-radio-info"
|
|
86066
86070
|
};
|
|
@@ -86108,7 +86112,7 @@
|
|
|
86108
86112
|
name: __props.name,
|
|
86109
86113
|
disabled: __props.disabled,
|
|
86110
86114
|
required: __props.required
|
|
86111
|
-
}, null, 8, _hoisted_1$50), [[vue.vModelRadio, inputValue.value]]), hasLabel.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$
|
|
86115
|
+
}, null, 8, _hoisted_1$50), [[vue.vModelRadio, inputValue.value]]), hasLabel.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$33, [(0, vue.renderSlot)(_ctx.$slots, "label", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.label), 1)], true)])) : (0, vue.createCommentVNode)("", true)])], 2);
|
|
86112
86116
|
};
|
|
86113
86117
|
}
|
|
86114
86118
|
}), [["__scopeId", "data-v-c0c9efa3"]]);
|
|
@@ -86360,7 +86364,7 @@
|
|
|
86360
86364
|
//#endregion
|
|
86361
86365
|
//#region src/components/form/BmsInputToggle.vue?vue&type=script&setup=true&lang.ts
|
|
86362
86366
|
var _hoisted_1$48 = { class: "input-toggle__label-group" };
|
|
86363
|
-
var _hoisted_2$
|
|
86367
|
+
var _hoisted_2$32 = ["title"];
|
|
86364
86368
|
var _hoisted_3$18 = { class: "field__label-helper--icon" };
|
|
86365
86369
|
//#endregion
|
|
86366
86370
|
//#region src/components/form/BmsInputToggle.vue
|
|
@@ -86402,7 +86406,7 @@
|
|
|
86402
86406
|
}]) }, [(0, vue.createElementVNode)("span", _hoisted_1$48, [(0, vue.createElementVNode)("span", {
|
|
86403
86407
|
class: "input-switch-info",
|
|
86404
86408
|
title: __props.ellipsisLabel ? __props.label : void 0
|
|
86405
|
-
}, (0, vue.toDisplayString)(__props.label), 9, _hoisted_2$
|
|
86409
|
+
}, (0, vue.toDisplayString)(__props.label), 9, _hoisted_2$32), __props.helperText ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(BmsTooltip_default), {
|
|
86406
86410
|
key: 0,
|
|
86407
86411
|
tooltipText: __props.helperText
|
|
86408
86412
|
}, {
|
|
@@ -86539,7 +86543,7 @@
|
|
|
86539
86543
|
//#endregion
|
|
86540
86544
|
//#region src/components/form/BmsMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
86541
86545
|
var _hoisted_1$46 = { class: "tags" };
|
|
86542
|
-
var _hoisted_2$
|
|
86546
|
+
var _hoisted_2$31 = ["disabled"];
|
|
86543
86547
|
var _hoisted_3$17 = { class: "icon-container" };
|
|
86544
86548
|
//#endregion
|
|
86545
86549
|
//#region src/components/form/BmsMultiSelect.vue
|
|
@@ -86651,7 +86655,7 @@
|
|
|
86651
86655
|
disabled: __props.disabled,
|
|
86652
86656
|
onInput,
|
|
86653
86657
|
onKeyup: (0, vue.withKeys)(openDatalist, ["down"])
|
|
86654
|
-
}, null, 40, _hoisted_2$
|
|
86658
|
+
}, null, 40, _hoisted_2$31), [[vue.vModelText, searching.value]])]), (0, vue.createElementVNode)("span", _hoisted_3$17, [modelValue.value && modelValue.value?.length ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(X), {
|
|
86655
86659
|
key: 0,
|
|
86656
86660
|
class: "icon icon-clear",
|
|
86657
86661
|
onClick: (0, vue.withModifiers)(clearInput, ["stop"])
|
|
@@ -101325,7 +101329,7 @@
|
|
|
101325
101329
|
"required",
|
|
101326
101330
|
"disabled"
|
|
101327
101331
|
];
|
|
101328
|
-
var _hoisted_2$
|
|
101332
|
+
var _hoisted_2$30 = { class: "icon-toggle-container" };
|
|
101329
101333
|
//#endregion
|
|
101330
101334
|
//#region src/components/form/BmsSelect.vue
|
|
101331
101335
|
var BmsSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -101417,7 +101421,7 @@
|
|
|
101417
101421
|
required: __props.required,
|
|
101418
101422
|
disabled: __props.disabled,
|
|
101419
101423
|
onKeyup: (0, vue.withKeys)(openDatalist, ["down"])
|
|
101420
|
-
}, null, 40, _hoisted_1$45), (0, vue.createElementVNode)("span", _hoisted_2$
|
|
101424
|
+
}, null, 40, _hoisted_1$45), (0, vue.createElementVNode)("span", _hoisted_2$30, [isDatalistOpen.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ChevronUp), {
|
|
101421
101425
|
key: 0,
|
|
101422
101426
|
class: "icon-toggle-button"
|
|
101423
101427
|
})) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ChevronDown), {
|
|
@@ -101454,7 +101458,7 @@
|
|
|
101454
101458
|
//#endregion
|
|
101455
101459
|
//#region src/components/form/BmsCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
101456
101460
|
var _hoisted_1$43 = { class: "select-wrapper" };
|
|
101457
|
-
var _hoisted_2$
|
|
101461
|
+
var _hoisted_2$29 = {
|
|
101458
101462
|
key: 0,
|
|
101459
101463
|
class: "select-input__tags"
|
|
101460
101464
|
};
|
|
@@ -101717,7 +101721,7 @@
|
|
|
101717
101721
|
ref_key: "selectElement",
|
|
101718
101722
|
ref: selectElement
|
|
101719
101723
|
}, [
|
|
101720
|
-
__props.multiple ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2$
|
|
101724
|
+
__props.multiple ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2$29, [(0, vue.renderSlot)(_ctx.$slots, "selected-items", {
|
|
101721
101725
|
selectedItems: selectedItems.value,
|
|
101722
101726
|
dismiss: (value) => onRemoveOption(value)
|
|
101723
101727
|
}, () => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(selectedItems.value, (tag) => {
|
|
@@ -101819,7 +101823,8 @@
|
|
|
101819
101823
|
}), [["__scopeId", "data-v-7df0bce4"]]);
|
|
101820
101824
|
//#endregion
|
|
101821
101825
|
//#region src/components/form/BmsTextArea.vue?vue&type=script&setup=true&lang.ts
|
|
101822
|
-
var _hoisted_1$42 =
|
|
101826
|
+
var _hoisted_1$42 = { class: "field__input-icon field__input-icon--start" };
|
|
101827
|
+
var _hoisted_2$28 = [
|
|
101823
101828
|
"value",
|
|
101824
101829
|
"required",
|
|
101825
101830
|
"placeholder",
|
|
@@ -101832,6 +101837,10 @@
|
|
|
101832
101837
|
props: {
|
|
101833
101838
|
modelValue: {},
|
|
101834
101839
|
placeholder: {},
|
|
101840
|
+
autoResize: {
|
|
101841
|
+
type: Boolean,
|
|
101842
|
+
default: false
|
|
101843
|
+
},
|
|
101835
101844
|
label: { default: "" },
|
|
101836
101845
|
loading: { type: Boolean },
|
|
101837
101846
|
required: {
|
|
@@ -101854,14 +101863,27 @@
|
|
|
101854
101863
|
const props = __props;
|
|
101855
101864
|
const textArea = (0, vue.ref)(null);
|
|
101856
101865
|
const $emits = __emit;
|
|
101866
|
+
const doResize = () => {
|
|
101867
|
+
if (!textArea.value) return;
|
|
101868
|
+
textArea.value.style.height = "auto";
|
|
101869
|
+
textArea.value.style.height = `${textArea.value.scrollHeight}px`;
|
|
101870
|
+
};
|
|
101857
101871
|
const onInput = (e) => {
|
|
101858
101872
|
if (!props.disabled) $emits("update:modelValue", (e?.target).value);
|
|
101873
|
+
if (props.autoResize) doResize();
|
|
101859
101874
|
};
|
|
101875
|
+
(0, vue.onMounted)(() => {
|
|
101876
|
+
if (props.autoResize) doResize();
|
|
101877
|
+
});
|
|
101878
|
+
(0, vue.watch)(() => props.modelValue, () => {
|
|
101879
|
+
if (props.autoResize) doResize();
|
|
101880
|
+
});
|
|
101860
101881
|
const classes = (0, vue.computed)(() => {
|
|
101861
101882
|
return {
|
|
101862
101883
|
"is-error": props.errors?.length,
|
|
101863
101884
|
"is-disabled": props.disabled,
|
|
101864
|
-
"is-small": props.small
|
|
101885
|
+
"is-small": props.small,
|
|
101886
|
+
"is-auto-resize": props.autoResize
|
|
101865
101887
|
};
|
|
101866
101888
|
});
|
|
101867
101889
|
const setFocus = () => {
|
|
@@ -101871,24 +101893,23 @@
|
|
|
101871
101893
|
return (_ctx, _cache) => {
|
|
101872
101894
|
const _component_field = (0, vue.resolveComponent)("field");
|
|
101873
101895
|
return (0, vue.openBlock)(), (0, vue.createBlock)(_component_field, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(_ctx.$props)), {
|
|
101874
|
-
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("textarea", {
|
|
101896
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["textarea-wrapper", classes.value]) }, [(0, vue.createElementVNode)("span", _hoisted_1$42, [(0, vue.renderSlot)(_ctx.$slots, "icon-start", {}, void 0, true)]), (0, vue.createElementVNode)("textarea", {
|
|
101875
101897
|
ref_key: "textArea",
|
|
101876
101898
|
ref: textArea,
|
|
101877
101899
|
value: __props.modelValue,
|
|
101878
101900
|
role: "input",
|
|
101879
|
-
class: (0, vue.normalizeClass)(classes.value),
|
|
101880
101901
|
required: __props.required,
|
|
101881
101902
|
placeholder: __props.placeholder,
|
|
101882
101903
|
disabled: __props.disabled,
|
|
101883
101904
|
onInput,
|
|
101884
101905
|
onKeydown: _cache[0] || (_cache[0] = (0, vue.withKeys)((0, vue.withModifiers)(() => {}, ["stop"]), ["enter"])),
|
|
101885
101906
|
cols: "10"
|
|
101886
|
-
}, "
|
|
101887
|
-
_:
|
|
101907
|
+
}, " " + (0, vue.toDisplayString)(__props.modelValue) + "\n ", 41, _hoisted_2$28)], 2)]),
|
|
101908
|
+
_: 3
|
|
101888
101909
|
}, 16);
|
|
101889
101910
|
};
|
|
101890
101911
|
}
|
|
101891
|
-
}), [["__scopeId", "data-v-
|
|
101912
|
+
}), [["__scopeId", "data-v-3dc80e4b"]]);
|
|
101892
101913
|
//#endregion
|
|
101893
101914
|
//#region src/components/form/BmsInputTime.vue
|
|
101894
101915
|
var BmsInputTime_default = /* @__PURE__ */ (0, vue.defineComponent)({
|