@g1cloud/bluesea 5.0.0-alpha.6 → 5.0.0-alpha.7
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/bluesea.js +470 -329
- package/dist/bluesea.umd.cjs +469 -328
- package/dist/directive/vFocusOnLoad.d.ts +5 -0
- package/dist/frame/default/SideBarMenuSearch.vue.d.ts +26 -0
- package/dist/model/SearchModel.d.ts +0 -2
- package/dist/style.css +21 -0
- package/dist/util/alertUtil.d.ts +1 -0
- package/dist/util/langUtil.d.ts +3 -0
- package/package.json +1 -1
package/dist/bluesea.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, withDirectives, createElementVNode, unref, ref, watch, normalizeStyle, mergeProps, isRef, toHandlers, vModelDynamic, Fragment, renderList, vModelText, computed, createVNode, useSlots, renderSlot, createBlock, Transition, withCtx, onMounted, onBeforeUnmount, withModifiers, withKeys, createTextVNode, reactive, nextTick, vShow, inject, resolveComponent, markRaw, provide, resolveDynamicComponent, shallowReactive } from "vue";
|
|
7
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, withDirectives, createElementVNode, unref, ref, watch, normalizeStyle, mergeProps, isRef, toHandlers, vModelDynamic, Fragment, renderList, vModelText, computed, createVNode, useSlots, renderSlot, createBlock, Transition, withCtx, onMounted, onBeforeUnmount, withModifiers, withKeys, createTextVNode, reactive, nextTick, vShow, inject, resolveComponent, markRaw, provide, resolveDynamicComponent, pushScopeId, popScopeId, shallowReactive } from "vue";
|
|
8
8
|
import dayjs from "dayjs";
|
|
9
9
|
import { useRoute } from "vue-router";
|
|
10
10
|
class BlueseaConfig {
|
|
@@ -120,12 +120,12 @@ const vT = {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
const _hoisted_1$
|
|
124
|
-
const _hoisted_2$
|
|
123
|
+
const _hoisted_1$I = ["disabled"];
|
|
124
|
+
const _hoisted_2$x = {
|
|
125
125
|
key: 0,
|
|
126
126
|
class: "font-icon"
|
|
127
127
|
};
|
|
128
|
-
const _sfc_main$
|
|
128
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
129
129
|
__name: "BSButton",
|
|
130
130
|
props: {
|
|
131
131
|
caption: {},
|
|
@@ -139,11 +139,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
139
139
|
class: normalizeClass([[_ctx.buttonColor], "bs-button inline-flex items-center justify-center"]),
|
|
140
140
|
disabled: _ctx.disabled
|
|
141
141
|
}, [
|
|
142
|
-
_ctx.leftIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
142
|
+
_ctx.leftIcon ? (openBlock(), createElementBlock("span", _hoisted_2$x, toDisplayString(_ctx.leftIcon), 1)) : createCommentVNode("", true),
|
|
143
143
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
144
144
|
[unref(vT), _ctx.caption]
|
|
145
145
|
])
|
|
146
|
-
], 10, _hoisted_1$
|
|
146
|
+
], 10, _hoisted_1$I);
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
});
|
|
@@ -154,7 +154,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
154
154
|
}
|
|
155
155
|
return target;
|
|
156
156
|
};
|
|
157
|
-
const BSButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
157
|
+
const BSButton = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-6d6c76d8"]]);
|
|
158
158
|
const fieldValidator = (option) => {
|
|
159
159
|
const value = ref(option.initialValue);
|
|
160
160
|
const valid = ref(false);
|
|
@@ -229,11 +229,11 @@ const componentUtil = {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
const _hoisted_1$
|
|
233
|
-
const _hoisted_2$
|
|
234
|
-
const _hoisted_3$
|
|
235
|
-
const _hoisted_4$
|
|
236
|
-
const _sfc_main$
|
|
232
|
+
const _hoisted_1$H = { class: "input-area" };
|
|
233
|
+
const _hoisted_2$w = ["id", "autocomplete", "disabled", "maxlength", "name", "placeholder", "tabindex", "type"];
|
|
234
|
+
const _hoisted_3$k = { key: 0 };
|
|
235
|
+
const _hoisted_4$d = ["textContent"];
|
|
236
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
237
237
|
__name: "BSTextInput",
|
|
238
238
|
props: {
|
|
239
239
|
id: {},
|
|
@@ -284,7 +284,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
284
284
|
class: normalizeClass([{ required: _ctx.required }, "bs-text-input"]),
|
|
285
285
|
style: normalizeStyle({ width: _ctx.width })
|
|
286
286
|
}, [
|
|
287
|
-
createElementVNode("div", _hoisted_1$
|
|
287
|
+
createElementVNode("div", _hoisted_1$H, [
|
|
288
288
|
withDirectives(createElementVNode("input", mergeProps({
|
|
289
289
|
id: _ctx.id,
|
|
290
290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
@@ -295,27 +295,27 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
placeholder: _ctx.placeholder,
|
|
296
296
|
tabindex: _ctx.tabindex,
|
|
297
297
|
type: _ctx.inputType
|
|
298
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_2$
|
|
298
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_2$w), [
|
|
299
299
|
[vModelDynamic, unref(value)]
|
|
300
300
|
])
|
|
301
301
|
]),
|
|
302
|
-
unref(errors).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
302
|
+
unref(errors).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
|
|
303
303
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(errors), (error) => {
|
|
304
304
|
return openBlock(), createElementBlock("div", {
|
|
305
305
|
key: error.code,
|
|
306
306
|
class: "bs-field-error",
|
|
307
307
|
textContent: toDisplayString(error.message)
|
|
308
|
-
}, null, 8, _hoisted_4$
|
|
308
|
+
}, null, 8, _hoisted_4$d);
|
|
309
309
|
}), 128))
|
|
310
310
|
])) : createCommentVNode("", true)
|
|
311
311
|
], 6);
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
const _hoisted_1$
|
|
316
|
-
const _hoisted_2$
|
|
317
|
-
const _hoisted_3$
|
|
318
|
-
const _sfc_main$
|
|
315
|
+
const _hoisted_1$G = { class: "input-area" };
|
|
316
|
+
const _hoisted_2$v = ["id", "autocomplete", "disabled", "maxlength", "name", "placeholder", "tabindex"];
|
|
317
|
+
const _hoisted_3$j = /* @__PURE__ */ createElementVNode("div", { class: "message-area" }, null, -1);
|
|
318
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
319
319
|
__name: "BSNumberInput",
|
|
320
320
|
props: {
|
|
321
321
|
id: {},
|
|
@@ -342,7 +342,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
342
342
|
style: normalizeStyle({ width: _ctx.width }),
|
|
343
343
|
class: "bs-number-input"
|
|
344
344
|
}, [
|
|
345
|
-
createElementVNode("div", _hoisted_1$
|
|
345
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
346
346
|
withDirectives(createElementVNode("input", mergeProps({
|
|
347
347
|
id: _ctx.id,
|
|
348
348
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
@@ -354,19 +354,19 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
tabindex: _ctx.tabindex,
|
|
355
355
|
pattern: "\\d*",
|
|
356
356
|
type: "text"
|
|
357
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_2$
|
|
357
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_2$v), [
|
|
358
358
|
[vModelText, value.value]
|
|
359
359
|
])
|
|
360
360
|
]),
|
|
361
|
-
_hoisted_3$
|
|
361
|
+
_hoisted_3$j
|
|
362
362
|
], 4);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
-
const _hoisted_1$
|
|
367
|
-
const _hoisted_2$
|
|
368
|
-
const _hoisted_3$
|
|
369
|
-
const _sfc_main$
|
|
366
|
+
const _hoisted_1$F = { class: "input-area" };
|
|
367
|
+
const _hoisted_2$u = ["id", "name", "value"];
|
|
368
|
+
const _hoisted_3$i = /* @__PURE__ */ createElementVNode("div", { class: "message-area" }, null, -1);
|
|
369
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
370
370
|
__name: "BSPriceInput",
|
|
371
371
|
props: {
|
|
372
372
|
id: {},
|
|
@@ -402,7 +402,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
402
402
|
style: normalizeStyle({ width: _ctx.width }),
|
|
403
403
|
class: "bs-number-input"
|
|
404
404
|
}, [
|
|
405
|
-
createElementVNode("div", _hoisted_1$
|
|
405
|
+
createElementVNode("div", _hoisted_1$F, [
|
|
406
406
|
createElementVNode("input", {
|
|
407
407
|
id: _ctx.id,
|
|
408
408
|
name: _ctx.name,
|
|
@@ -410,15 +410,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
410
410
|
pattern: "\\d*",
|
|
411
411
|
type: "text",
|
|
412
412
|
onChange: emitValue
|
|
413
|
-
}, null, 40, _hoisted_2$
|
|
413
|
+
}, null, 40, _hoisted_2$u)
|
|
414
414
|
]),
|
|
415
|
-
_hoisted_3$
|
|
415
|
+
_hoisted_3$i
|
|
416
416
|
], 4);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
|
-
const _hoisted_1$
|
|
421
|
-
const _sfc_main$
|
|
420
|
+
const _hoisted_1$E = ["id", "disabled", "maxlength", "name", "placeholder", "tabindex", "value"];
|
|
421
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
422
422
|
__name: "InternalDateInput",
|
|
423
423
|
props: {
|
|
424
424
|
id: {},
|
|
@@ -484,14 +484,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
484
484
|
onFocus: _cache[1] || (_cache[1] = ($event) => focused.value = true),
|
|
485
485
|
"on:update:modelValue": _cache[2] || (_cache[2] = () => {
|
|
486
486
|
})
|
|
487
|
-
}, null, 40, _hoisted_1$
|
|
487
|
+
}, null, 40, _hoisted_1$E);
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
|
-
const _hoisted_1$
|
|
492
|
-
const _hoisted_2$
|
|
493
|
-
const _hoisted_3$
|
|
494
|
-
const _sfc_main$
|
|
491
|
+
const _hoisted_1$D = { class: "bs-date-input" };
|
|
492
|
+
const _hoisted_2$t = { class: "input-area" };
|
|
493
|
+
const _hoisted_3$h = /* @__PURE__ */ createElementVNode("span", { class: "icon" }, "calendar_month", -1);
|
|
494
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
495
495
|
__name: "BSDateInput",
|
|
496
496
|
props: {
|
|
497
497
|
id: {},
|
|
@@ -519,10 +519,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
519
519
|
{ immediate: true }
|
|
520
520
|
);
|
|
521
521
|
return (_ctx, _cache) => {
|
|
522
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
523
|
-
createElementVNode("div", _hoisted_2$
|
|
524
|
-
_hoisted_3$
|
|
525
|
-
createVNode(_sfc_main$
|
|
522
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
523
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
524
|
+
_hoisted_3$h,
|
|
525
|
+
createVNode(_sfc_main$H, {
|
|
526
526
|
id: _ctx.id,
|
|
527
527
|
modelValue: value.value,
|
|
528
528
|
"onUpdate:modelValue": [
|
|
@@ -542,10 +542,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
|
-
const _hoisted_1$
|
|
546
|
-
const _hoisted_2$
|
|
547
|
-
const _hoisted_3$
|
|
548
|
-
const _sfc_main$
|
|
545
|
+
const _hoisted_1$C = ["id", "checked", "disabled", "name", "tabindex"];
|
|
546
|
+
const _hoisted_2$s = ["for"];
|
|
547
|
+
const _hoisted_3$g = ["for"];
|
|
548
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
549
549
|
__name: "BSCheckbox",
|
|
550
550
|
props: {
|
|
551
551
|
id: { default: () => componentUtil.generateNextId("checkbox") },
|
|
@@ -584,25 +584,25 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
584
584
|
tabindex: _ctx.tabindex,
|
|
585
585
|
class: "",
|
|
586
586
|
type: "checkbox"
|
|
587
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_1$
|
|
587
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_1$C),
|
|
588
588
|
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
589
589
|
key: 0,
|
|
590
590
|
for: _ctx.id,
|
|
591
591
|
class: "text-label"
|
|
592
|
-
}, toDisplayString(_ctx.label), 9, _hoisted_2$
|
|
592
|
+
}, toDisplayString(_ctx.label), 9, _hoisted_2$s)) : createCommentVNode("", true),
|
|
593
593
|
hasLabelSlot.value ? (openBlock(), createElementBlock("label", {
|
|
594
594
|
key: 1,
|
|
595
595
|
for: _ctx.id,
|
|
596
596
|
class: "slot-label cursor-pointer"
|
|
597
597
|
}, [
|
|
598
598
|
renderSlot(_ctx.$slots, "default", { disabled: _ctx.disabled })
|
|
599
|
-
], 8, _hoisted_3$
|
|
599
|
+
], 8, _hoisted_3$g)) : createCommentVNode("", true)
|
|
600
600
|
], 2);
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
|
-
const _hoisted_1$
|
|
605
|
-
const _sfc_main$
|
|
604
|
+
const _hoisted_1$B = { class: "bs-checkbox-group" };
|
|
605
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
606
606
|
__name: "BSCheckboxGroup",
|
|
607
607
|
props: {
|
|
608
608
|
modelValue: { default: () => [] },
|
|
@@ -638,9 +638,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
return (_ctx, _cache) => {
|
|
641
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
641
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
642
642
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item) => {
|
|
643
|
-
return openBlock(), createBlock(_sfc_main$
|
|
643
|
+
return openBlock(), createBlock(_sfc_main$F, {
|
|
644
644
|
key: String(item),
|
|
645
645
|
label: itemLabel(item),
|
|
646
646
|
"model-value": containsItem(item),
|
|
@@ -652,10 +652,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
|
-
const _hoisted_1$
|
|
656
|
-
const _hoisted_2$
|
|
657
|
-
const _hoisted_3$
|
|
658
|
-
const _sfc_main$
|
|
655
|
+
const _hoisted_1$A = ["id", "checked", "disabled", "name", "tabindex"];
|
|
656
|
+
const _hoisted_2$r = ["for"];
|
|
657
|
+
const _hoisted_3$f = ["for"];
|
|
658
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
659
659
|
__name: "BSRadioButton",
|
|
660
660
|
props: {
|
|
661
661
|
id: { default: () => componentUtil.generateNextId("radio") },
|
|
@@ -695,25 +695,25 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
695
695
|
tabindex: _ctx.tabindex,
|
|
696
696
|
class: "",
|
|
697
697
|
type: "radio"
|
|
698
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_1$
|
|
698
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_1$A),
|
|
699
699
|
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
700
700
|
key: 0,
|
|
701
701
|
for: _ctx.id,
|
|
702
702
|
class: "text-label"
|
|
703
|
-
}, toDisplayString(_ctx.label), 9, _hoisted_2$
|
|
703
|
+
}, toDisplayString(_ctx.label), 9, _hoisted_2$r)) : createCommentVNode("", true),
|
|
704
704
|
hasLabelSlot.value ? (openBlock(), createElementBlock("label", {
|
|
705
705
|
key: 1,
|
|
706
706
|
for: _ctx.id,
|
|
707
707
|
class: "slot-label cursor-pointer"
|
|
708
708
|
}, [
|
|
709
709
|
renderSlot(_ctx.$slots, "default", { disabled: _ctx.disabled })
|
|
710
|
-
], 8, _hoisted_3$
|
|
710
|
+
], 8, _hoisted_3$f)) : createCommentVNode("", true)
|
|
711
711
|
], 2);
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
|
-
const _hoisted_1$
|
|
716
|
-
const _sfc_main$
|
|
715
|
+
const _hoisted_1$z = { class: "bs-radio-button-group" };
|
|
716
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
717
717
|
__name: "BSRadioButtonGroup",
|
|
718
718
|
props: {
|
|
719
719
|
modelValue: {},
|
|
@@ -736,9 +736,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
736
736
|
emit("update:modelValue", value);
|
|
737
737
|
};
|
|
738
738
|
return (_ctx, _cache) => {
|
|
739
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
739
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
740
740
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item) => {
|
|
741
|
-
return openBlock(), createBlock(_sfc_main$
|
|
741
|
+
return openBlock(), createBlock(_sfc_main$D, {
|
|
742
742
|
key: String(itemValue(item)),
|
|
743
743
|
"item-value": itemValue(item),
|
|
744
744
|
label: itemLabel(item),
|
|
@@ -751,27 +751,27 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
753
|
});
|
|
754
|
-
const _sfc_main$
|
|
755
|
-
const _hoisted_1$
|
|
754
|
+
const _sfc_main$B = {};
|
|
755
|
+
const _hoisted_1$y = { class: "bs-popup" };
|
|
756
756
|
function _sfc_render(_ctx, _cache) {
|
|
757
757
|
return openBlock(), createBlock(Transition, null, {
|
|
758
758
|
default: withCtx(() => [
|
|
759
|
-
createElementVNode("div", _hoisted_1$
|
|
759
|
+
createElementVNode("div", _hoisted_1$y, [
|
|
760
760
|
renderSlot(_ctx.$slots, "default")
|
|
761
761
|
])
|
|
762
762
|
]),
|
|
763
763
|
_: 3
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
const BSPopup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
767
|
-
const _hoisted_1$
|
|
768
|
-
const _hoisted_2$
|
|
769
|
-
const _hoisted_3$
|
|
770
|
-
const _hoisted_4$
|
|
766
|
+
const BSPopup = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render]]);
|
|
767
|
+
const _hoisted_1$x = ["onMouseover", "onClick"];
|
|
768
|
+
const _hoisted_2$q = /* @__PURE__ */ createElementVNode("span", { class: "checkbox" }, null, -1);
|
|
769
|
+
const _hoisted_3$e = { class: "label" };
|
|
770
|
+
const _hoisted_4$c = {
|
|
771
771
|
key: 0,
|
|
772
772
|
class: "sub-items"
|
|
773
773
|
};
|
|
774
|
-
const _sfc_main$
|
|
774
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
775
775
|
__name: "BSSelectPopup",
|
|
776
776
|
props: {
|
|
777
777
|
items: {},
|
|
@@ -844,10 +844,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
844
844
|
onMouseover: ($event) => setHoveredPopupItem(item),
|
|
845
845
|
onClick: withModifiers(($event) => selectPopupItem(item), ["stop"])
|
|
846
846
|
}, [
|
|
847
|
-
_hoisted_2$
|
|
848
|
-
createElementVNode("span", _hoisted_3$
|
|
849
|
-
_ctx.tree && hasSubItems(item) ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
850
|
-
], 42, _hoisted_1$
|
|
847
|
+
_hoisted_2$q,
|
|
848
|
+
createElementVNode("span", _hoisted_3$e, toDisplayString(_ctx.itemLabel(item)), 1),
|
|
849
|
+
_ctx.tree && hasSubItems(item) ? (openBlock(), createElementBlock("span", _hoisted_4$c)) : createCommentVNode("", true)
|
|
850
|
+
], 42, _hoisted_1$x);
|
|
851
851
|
}), 128))
|
|
852
852
|
]),
|
|
853
853
|
_: 1
|
|
@@ -855,15 +855,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
857
|
});
|
|
858
|
-
const _hoisted_1$
|
|
859
|
-
const _hoisted_2$
|
|
860
|
-
const _hoisted_3$
|
|
861
|
-
const _hoisted_4$
|
|
862
|
-
const _hoisted_5$
|
|
858
|
+
const _hoisted_1$w = ["tabindex", "onKeydown"];
|
|
859
|
+
const _hoisted_2$p = { class: "selected" };
|
|
860
|
+
const _hoisted_3$d = ["textContent"];
|
|
861
|
+
const _hoisted_4$b = /* @__PURE__ */ createElementVNode("span", { class: "dropdown-btn" }, "expand_more", -1);
|
|
862
|
+
const _hoisted_5$9 = {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "message"
|
|
865
865
|
};
|
|
866
|
-
const _sfc_main$
|
|
866
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
867
867
|
__name: "BSSelect",
|
|
868
868
|
props: {
|
|
869
869
|
modelValue: {},
|
|
@@ -920,14 +920,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
920
920
|
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => togglePopup(false), ["stop", "prevent"]), ["esc"]))
|
|
921
921
|
]
|
|
922
922
|
}, [
|
|
923
|
-
createElementVNode("div", _hoisted_2$
|
|
923
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
924
924
|
createElementVNode("span", {
|
|
925
925
|
class: "label",
|
|
926
926
|
textContent: toDisplayString(selectedItemLabel.value)
|
|
927
|
-
}, null, 8, _hoisted_3$
|
|
928
|
-
_hoisted_4$
|
|
927
|
+
}, null, 8, _hoisted_3$d),
|
|
928
|
+
_hoisted_4$b
|
|
929
929
|
]),
|
|
930
|
-
showPopup.value ? (openBlock(), createBlock(_sfc_main$
|
|
930
|
+
showPopup.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
931
931
|
key: 0,
|
|
932
932
|
"initial-item": selectedItem.value,
|
|
933
933
|
"item-label": itemLabel,
|
|
@@ -936,23 +936,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
936
936
|
onKeyboardHandlerReady: setKeyboardHandler,
|
|
937
937
|
onItemSelected: itemSelected
|
|
938
938
|
}, null, 8, ["initial-item", "items", "selected-items"])) : createCommentVNode("", true),
|
|
939
|
-
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
940
|
-
], 42, _hoisted_1$
|
|
939
|
+
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$9)) : createCommentVNode("", true)
|
|
940
|
+
], 42, _hoisted_1$w);
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
function notNull(value) {
|
|
945
945
|
return value !== null && value !== void 0;
|
|
946
946
|
}
|
|
947
|
-
const _hoisted_1$
|
|
948
|
-
const _hoisted_2$
|
|
949
|
-
const _hoisted_3$
|
|
950
|
-
const _hoisted_4$
|
|
951
|
-
const _hoisted_5$
|
|
947
|
+
const _hoisted_1$v = ["tabindex", "onKeydown"];
|
|
948
|
+
const _hoisted_2$o = { class: "selected" };
|
|
949
|
+
const _hoisted_3$c = ["textContent"];
|
|
950
|
+
const _hoisted_4$a = /* @__PURE__ */ createElementVNode("span", { class: "dropdown-btn" }, "expand_more", -1);
|
|
951
|
+
const _hoisted_5$8 = {
|
|
952
952
|
key: 1,
|
|
953
953
|
class: "message"
|
|
954
954
|
};
|
|
955
|
-
const _sfc_main$
|
|
955
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
956
956
|
__name: "BSMultiSelect",
|
|
957
957
|
props: {
|
|
958
958
|
modelValue: { default: () => [] },
|
|
@@ -1016,14 +1016,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1016
1016
|
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => togglePopup(false), ["stop", "prevent"]), ["esc"]))
|
|
1017
1017
|
]
|
|
1018
1018
|
}, [
|
|
1019
|
-
createElementVNode("div", _hoisted_2$
|
|
1019
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
1020
1020
|
createElementVNode("span", {
|
|
1021
1021
|
class: "label",
|
|
1022
1022
|
textContent: toDisplayString(selectedItemsLabel.value)
|
|
1023
|
-
}, null, 8, _hoisted_3$
|
|
1024
|
-
_hoisted_4$
|
|
1023
|
+
}, null, 8, _hoisted_3$c),
|
|
1024
|
+
_hoisted_4$a
|
|
1025
1025
|
]),
|
|
1026
|
-
showPopup.value ? (openBlock(), createBlock(_sfc_main$
|
|
1026
|
+
showPopup.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
1027
1027
|
key: 0,
|
|
1028
1028
|
"item-label": itemLabel,
|
|
1029
1029
|
items: _ctx.items,
|
|
@@ -1031,20 +1031,20 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1031
1031
|
onKeyboardHandlerReady: setKeyboardHandler,
|
|
1032
1032
|
onItemSelected: itemSelected
|
|
1033
1033
|
}, null, 8, ["items", "selected-items"])) : createCommentVNode("", true),
|
|
1034
|
-
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1035
|
-
], 42, _hoisted_1$
|
|
1034
|
+
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$8)) : createCommentVNode("", true)
|
|
1035
|
+
], 42, _hoisted_1$v);
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
});
|
|
1039
|
-
const _hoisted_1$
|
|
1040
|
-
const _hoisted_2$
|
|
1041
|
-
const _hoisted_3$
|
|
1042
|
-
const _hoisted_4$
|
|
1043
|
-
const _hoisted_5$
|
|
1039
|
+
const _hoisted_1$u = ["tabindex", "onKeydown"];
|
|
1040
|
+
const _hoisted_2$n = { class: "selected" };
|
|
1041
|
+
const _hoisted_3$b = ["textContent"];
|
|
1042
|
+
const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("span", { class: "dropdown-btn" }, "expand_more", -1);
|
|
1043
|
+
const _hoisted_5$7 = {
|
|
1044
1044
|
key: 1,
|
|
1045
1045
|
class: "message"
|
|
1046
1046
|
};
|
|
1047
|
-
const _sfc_main$
|
|
1047
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1048
1048
|
__name: "BSTreeSelect",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
modelValue: {},
|
|
@@ -1100,14 +1100,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1100
1100
|
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => togglePopup(false), ["stop", "prevent"]), ["esc"]))
|
|
1101
1101
|
]
|
|
1102
1102
|
}, [
|
|
1103
|
-
createElementVNode("div", _hoisted_2$
|
|
1103
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
1104
1104
|
createElementVNode("span", {
|
|
1105
1105
|
class: "label",
|
|
1106
1106
|
textContent: toDisplayString(selectedItemLabel.value)
|
|
1107
|
-
}, null, 8, _hoisted_3$
|
|
1108
|
-
_hoisted_4$
|
|
1107
|
+
}, null, 8, _hoisted_3$b),
|
|
1108
|
+
_hoisted_4$9
|
|
1109
1109
|
]),
|
|
1110
|
-
showPopup.value ? (openBlock(), createBlock(_sfc_main$
|
|
1110
|
+
showPopup.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
1111
1111
|
key: 0,
|
|
1112
1112
|
"initial-item": selectedItem.value,
|
|
1113
1113
|
"item-label": itemLabel,
|
|
@@ -1116,14 +1116,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1116
1116
|
onKeyboardHandlerReady: setKeyboardHandler,
|
|
1117
1117
|
onItemSelected: itemSelected
|
|
1118
1118
|
}, null, 8, ["initial-item", "items"])) : createCommentVNode("", true),
|
|
1119
|
-
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1120
|
-
], 42, _hoisted_1$
|
|
1119
|
+
messages.value ? (openBlock(), createElementBlock("div", _hoisted_5$7)) : createCommentVNode("", true)
|
|
1120
|
+
], 42, _hoisted_1$u);
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
|
-
const _hoisted_1$
|
|
1125
|
-
const _hoisted_2$
|
|
1126
|
-
const _sfc_main$
|
|
1124
|
+
const _hoisted_1$t = { class: "input-area" };
|
|
1125
|
+
const _hoisted_2$m = ["tabindex"];
|
|
1126
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1127
1127
|
__name: "BSTextArea",
|
|
1128
1128
|
props: {
|
|
1129
1129
|
id: {},
|
|
@@ -1154,13 +1154,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1154
1154
|
style: normalizeStyle({ width: outerWidth.value, height: outerHeight.value }),
|
|
1155
1155
|
class: "bs-text-area"
|
|
1156
1156
|
}, [
|
|
1157
|
-
createElementVNode("div", _hoisted_1$
|
|
1157
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
1158
1158
|
withDirectives(createElementVNode("textarea", {
|
|
1159
1159
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
1160
1160
|
style: normalizeStyle({ width: innerWidth.value, height: innerHeight.value }),
|
|
1161
1161
|
tabindex: _ctx.tabindex,
|
|
1162
1162
|
onChange: emitValue
|
|
1163
|
-
}, null, 44, _hoisted_2$
|
|
1163
|
+
}, null, 44, _hoisted_2$m), [
|
|
1164
1164
|
[vModelText, value.value]
|
|
1165
1165
|
])
|
|
1166
1166
|
])
|
|
@@ -1204,7 +1204,7 @@ const styleClassToObject = (style) => {
|
|
|
1204
1204
|
});
|
|
1205
1205
|
return result;
|
|
1206
1206
|
};
|
|
1207
|
-
const _sfc_main$
|
|
1207
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1208
1208
|
__name: "BSGridHeaderCell",
|
|
1209
1209
|
props: {
|
|
1210
1210
|
column: {},
|
|
@@ -1363,7 +1363,7 @@ const formatUtil = {
|
|
|
1363
1363
|
return tmp.textContent || tmp.innerText;
|
|
1364
1364
|
}
|
|
1365
1365
|
};
|
|
1366
|
-
const _sfc_main$
|
|
1366
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1367
1367
|
__name: "BSGridCell",
|
|
1368
1368
|
props: {
|
|
1369
1369
|
column: {},
|
|
@@ -1434,8 +1434,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
1436
|
});
|
|
1437
|
-
const _hoisted_1$
|
|
1438
|
-
const _sfc_main$
|
|
1437
|
+
const _hoisted_1$s = { class: "font-icon" };
|
|
1438
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1439
1439
|
__name: "BSGridCheckboxCell",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
checked: { type: Boolean }
|
|
@@ -1448,13 +1448,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1448
1448
|
class: normalizeClass([{ checked: _ctx.checked }, "fixed func-cell checkbox bs-clickable"]),
|
|
1449
1449
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click"))
|
|
1450
1450
|
}, [
|
|
1451
|
-
createElementVNode("div", _hoisted_1$
|
|
1451
|
+
createElementVNode("div", _hoisted_1$s, toDisplayString(_ctx.checked ? "check" : ""), 1)
|
|
1452
1452
|
], 2);
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
|
-
const _hoisted_1$
|
|
1457
|
-
const _sfc_main$
|
|
1456
|
+
const _hoisted_1$r = { class: "font-icon" };
|
|
1457
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1458
1458
|
__name: "BSGridCheckboxHeaderCell",
|
|
1459
1459
|
props: {
|
|
1460
1460
|
selectedRowCount: {}
|
|
@@ -1469,14 +1469,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1469
1469
|
class: normalizeClass([{ checked: checked.value }, "fixed func-cell checkbox bs-clickable"]),
|
|
1470
1470
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click"))
|
|
1471
1471
|
}, [
|
|
1472
|
-
createElementVNode("div", _hoisted_1$
|
|
1472
|
+
createElementVNode("div", _hoisted_1$r, toDisplayString(checked.value ? "check" : "check_box_outline_blank"), 1)
|
|
1473
1473
|
], 2);
|
|
1474
1474
|
};
|
|
1475
1475
|
}
|
|
1476
1476
|
});
|
|
1477
|
-
const _hoisted_1$
|
|
1478
|
-
const _hoisted_2$
|
|
1479
|
-
const _sfc_main$
|
|
1477
|
+
const _hoisted_1$q = { class: "page-navigation" };
|
|
1478
|
+
const _hoisted_2$l = ["data-page", "onClick"];
|
|
1479
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1480
1480
|
__name: "BSGridPageNavigation",
|
|
1481
1481
|
props: {
|
|
1482
1482
|
totalCount: { default: 0 },
|
|
@@ -1540,7 +1540,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
1542
|
return (_ctx, _cache) => {
|
|
1543
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1543
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
1544
1544
|
createElementVNode("span", {
|
|
1545
1545
|
class: normalizeClass([{ "disabled": isFirstSet.value }, "font-icon first"]),
|
|
1546
1546
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => !isFirstSet.value ? goToPage(1) : void 0, ["prevent"]))
|
|
@@ -1555,7 +1555,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1555
1555
|
class: normalizeClass([{ on: page === currentPage.value }, "page"]),
|
|
1556
1556
|
"data-page": page,
|
|
1557
1557
|
onClick: withModifiers(($event) => goToPage(page), ["prevent"])
|
|
1558
|
-
}, toDisplayString(page), 11, _hoisted_2$
|
|
1558
|
+
}, toDisplayString(page), 11, _hoisted_2$l);
|
|
1559
1559
|
}), 128)),
|
|
1560
1560
|
createElementVNode("span", {
|
|
1561
1561
|
class: normalizeClass([{ "disabled": !isLastSet.value }, "font-icon next"]),
|
|
@@ -1569,21 +1569,21 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1569
1569
|
};
|
|
1570
1570
|
}
|
|
1571
1571
|
});
|
|
1572
|
-
const _hoisted_1$
|
|
1573
|
-
const _hoisted_2$
|
|
1574
|
-
const _hoisted_3$
|
|
1572
|
+
const _hoisted_1$p = { class: "table-wrap" };
|
|
1573
|
+
const _hoisted_2$k = { class: "header-row" };
|
|
1574
|
+
const _hoisted_3$a = {
|
|
1575
1575
|
key: 1,
|
|
1576
1576
|
class: "fixed func-cell serial-no"
|
|
1577
1577
|
};
|
|
1578
|
-
const _hoisted_4$
|
|
1579
|
-
const _hoisted_5$
|
|
1580
|
-
_hoisted_4$
|
|
1578
|
+
const _hoisted_4$8 = /* @__PURE__ */ createElementVNode("div", { class: "font-icon" }, "numbers", -1);
|
|
1579
|
+
const _hoisted_5$6 = [
|
|
1580
|
+
_hoisted_4$8
|
|
1581
1581
|
];
|
|
1582
|
-
const _hoisted_6$
|
|
1582
|
+
const _hoisted_6$3 = {
|
|
1583
1583
|
key: 1,
|
|
1584
1584
|
class: "fixed func-cell serial-no"
|
|
1585
1585
|
};
|
|
1586
|
-
const _sfc_main$
|
|
1586
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1587
1587
|
__name: "BSGrid",
|
|
1588
1588
|
props: {
|
|
1589
1589
|
columns: { default: () => [] },
|
|
@@ -1634,21 +1634,21 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1634
1634
|
style: normalizeStyle({ width: _ctx.width, height: _ctx.height }),
|
|
1635
1635
|
class: "bs-grid"
|
|
1636
1636
|
}, [
|
|
1637
|
-
createElementVNode("div", _hoisted_1$
|
|
1637
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
1638
1638
|
createElementVNode("table", {
|
|
1639
1639
|
ref_key: "table",
|
|
1640
1640
|
ref: table
|
|
1641
1641
|
}, [
|
|
1642
1642
|
createElementVNode("thead", null, [
|
|
1643
|
-
createElementVNode("tr", _hoisted_2$
|
|
1644
|
-
_ctx.showCheckbox ? (openBlock(), createBlock(_sfc_main$
|
|
1643
|
+
createElementVNode("tr", _hoisted_2$k, [
|
|
1644
|
+
_ctx.showCheckbox ? (openBlock(), createBlock(_sfc_main$s, {
|
|
1645
1645
|
key: 0,
|
|
1646
1646
|
"selected-row-count": selectedRows.size,
|
|
1647
1647
|
onClick: toggleAll
|
|
1648
1648
|
}, null, 8, ["selected-row-count"])) : createCommentVNode("", true),
|
|
1649
|
-
_ctx.showSerial ? (openBlock(), createElementBlock("th", _hoisted_3$
|
|
1649
|
+
_ctx.showSerial ? (openBlock(), createElementBlock("th", _hoisted_3$a, _hoisted_5$6)) : createCommentVNode("", true),
|
|
1650
1650
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleColumns.value, (column, index) => {
|
|
1651
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1651
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
1652
1652
|
key: column.propertyId,
|
|
1653
1653
|
column,
|
|
1654
1654
|
columns: visibleColumns.value,
|
|
@@ -1664,16 +1664,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1664
1664
|
key: `${row}_${index}`,
|
|
1665
1665
|
class: normalizeClass([{ selected: isRowSelected(row) }, "data-row"])
|
|
1666
1666
|
}, [
|
|
1667
|
-
_ctx.showCheckbox ? (openBlock(), createBlock(_sfc_main$
|
|
1667
|
+
_ctx.showCheckbox ? (openBlock(), createBlock(_sfc_main$t, {
|
|
1668
1668
|
key: 0,
|
|
1669
1669
|
checked: isRowSelected(row),
|
|
1670
1670
|
onClick: ($event) => toggleSelection(row)
|
|
1671
1671
|
}, null, 8, ["checked", "onClick"])) : createCommentVNode("", true),
|
|
1672
|
-
_ctx.showSerial ? (openBlock(), createElementBlock("td", _hoisted_6$
|
|
1672
|
+
_ctx.showSerial ? (openBlock(), createElementBlock("td", _hoisted_6$3, [
|
|
1673
1673
|
createElementVNode("div", null, toDisplayString(index + (((_a2 = _ctx.pageInfo) == null ? void 0 : _a2.offset) || 0) + 1), 1)
|
|
1674
1674
|
])) : createCommentVNode("", true),
|
|
1675
1675
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleColumns.value, (column, index2) => {
|
|
1676
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1676
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1677
1677
|
key: column.propertyId,
|
|
1678
1678
|
column,
|
|
1679
1679
|
columns: _ctx.columns,
|
|
@@ -1694,7 +1694,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1694
1694
|
])
|
|
1695
1695
|
], 512)
|
|
1696
1696
|
]),
|
|
1697
|
-
_ctx.showPageNavigation ? (openBlock(), createBlock(_sfc_main$
|
|
1697
|
+
_ctx.showPageNavigation ? (openBlock(), createBlock(_sfc_main$r, {
|
|
1698
1698
|
key: 0,
|
|
1699
1699
|
limit: ((_a = _ctx.pageInfo) == null ? void 0 : _a.limit) || 10,
|
|
1700
1700
|
offset: ((_b = _ctx.pageInfo) == null ? void 0 : _b.offset) || 0,
|
|
@@ -1802,12 +1802,12 @@ const likeFilter = (names, value, prefix, suffix, ignoreCase) => {
|
|
|
1802
1802
|
const betweenDateFilter = (names, fromValue, toValue) => {
|
|
1803
1803
|
return new BetweenDateFilter(names, fromValue, toValue);
|
|
1804
1804
|
};
|
|
1805
|
-
const _hoisted_1$
|
|
1806
|
-
const _hoisted_2$
|
|
1807
|
-
const _hoisted_3$
|
|
1808
|
-
const _hoisted_4$
|
|
1809
|
-
const _hoisted_5$
|
|
1810
|
-
const _sfc_main$
|
|
1805
|
+
const _hoisted_1$o = { class: "bs-text-filter" };
|
|
1806
|
+
const _hoisted_2$j = { class: "input-wrap" };
|
|
1807
|
+
const _hoisted_3$9 = ["onKeyup"];
|
|
1808
|
+
const _hoisted_4$7 = { class: "input-wrap" };
|
|
1809
|
+
const _hoisted_5$5 = /* @__PURE__ */ createElementVNode("textarea", { cols: "3" }, null, -1);
|
|
1810
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1811
1811
|
__name: "BSTextFilter",
|
|
1812
1812
|
props: {
|
|
1813
1813
|
textFilterItems: { default: () => [] },
|
|
@@ -1866,7 +1866,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1866
1866
|
}
|
|
1867
1867
|
};
|
|
1868
1868
|
return (_ctx, _cache) => {
|
|
1869
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1870
1870
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
1871
1871
|
class: "font-icon mr-8 bs-clickable",
|
|
1872
1872
|
onClick: toggleFilterItemPopup
|
|
@@ -1875,20 +1875,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1875
1875
|
])), [
|
|
1876
1876
|
[unref(vClickOutside), hideFilterItemPopup]
|
|
1877
1877
|
]),
|
|
1878
|
-
withDirectives(createElementVNode("span", _hoisted_2$
|
|
1878
|
+
withDirectives(createElementVNode("span", _hoisted_2$j, [
|
|
1879
1879
|
withDirectives(createElementVNode("input", {
|
|
1880
1880
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputText.value = $event),
|
|
1881
1881
|
type: "text",
|
|
1882
1882
|
onChange: inputTextChanged,
|
|
1883
1883
|
onKeyup: withKeys(withModifiers(inputTextChanged, ["prevent", "stop"]), ["enter"])
|
|
1884
|
-
}, null, 40, _hoisted_3$
|
|
1884
|
+
}, null, 40, _hoisted_3$9), [
|
|
1885
1885
|
[vModelText, inputText.value]
|
|
1886
1886
|
])
|
|
1887
1887
|
], 512), [
|
|
1888
1888
|
[vShow, filterMode.value === "INPUT"]
|
|
1889
1889
|
]),
|
|
1890
|
-
withDirectives(createElementVNode("span", _hoisted_4$
|
|
1891
|
-
_hoisted_5$
|
|
1890
|
+
withDirectives(createElementVNode("span", _hoisted_4$7, [
|
|
1891
|
+
_hoisted_5$5,
|
|
1892
1892
|
createElementVNode("span", {
|
|
1893
1893
|
class: "mr-4 font-icon bs-clickable",
|
|
1894
1894
|
onClick: _cache[1] || (_cache[1] = ($event) => changeFilterMode("INPUT"))
|
|
@@ -1896,7 +1896,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1896
1896
|
], 512), [
|
|
1897
1897
|
[vShow, filterMode.value === "TEXTAREA"]
|
|
1898
1898
|
]),
|
|
1899
|
-
showFilterItems.value ? (openBlock(), createBlock(_sfc_main$
|
|
1899
|
+
showFilterItems.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
1900
1900
|
key: 0,
|
|
1901
1901
|
"item-label": (item) => item.caption,
|
|
1902
1902
|
items: _ctx.textFilterItems,
|
|
@@ -1907,11 +1907,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
1909
|
});
|
|
1910
|
-
const _hoisted_1$
|
|
1911
|
-
const _hoisted_2$
|
|
1912
|
-
const _hoisted_3$
|
|
1913
|
-
const _hoisted_4$
|
|
1914
|
-
const _sfc_main$
|
|
1910
|
+
const _hoisted_1$n = { class: "bs-date-range-filter" };
|
|
1911
|
+
const _hoisted_2$i = { class: "input-area" };
|
|
1912
|
+
const _hoisted_3$8 = /* @__PURE__ */ createElementVNode("span", { class: "font-icon" }, "calendar_month", -1);
|
|
1913
|
+
const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "px-4" }, "~", -1);
|
|
1914
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1915
1915
|
__name: "BSDateRangeFilter",
|
|
1916
1916
|
props: {
|
|
1917
1917
|
fromId: {},
|
|
@@ -1948,10 +1948,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1948
1948
|
emit("update:modelValue", value);
|
|
1949
1949
|
};
|
|
1950
1950
|
return (_ctx, _cache) => {
|
|
1951
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1952
|
-
createElementVNode("div", _hoisted_2$
|
|
1953
|
-
_hoisted_3$
|
|
1954
|
-
createVNode(_sfc_main$
|
|
1951
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
1952
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
1953
|
+
_hoisted_3$8,
|
|
1954
|
+
createVNode(_sfc_main$H, {
|
|
1955
1955
|
id: _ctx.fromId,
|
|
1956
1956
|
modelValue: fromValue.value,
|
|
1957
1957
|
"onUpdate:modelValue": [
|
|
@@ -1963,8 +1963,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1963
1963
|
name: _ctx.fromName,
|
|
1964
1964
|
resolution: _ctx.resolution
|
|
1965
1965
|
}, null, 8, ["id", "modelValue", "disabled", "display-format", "name", "resolution"]),
|
|
1966
|
-
_hoisted_4$
|
|
1967
|
-
createVNode(_sfc_main$
|
|
1966
|
+
_hoisted_4$6,
|
|
1967
|
+
createVNode(_sfc_main$H, {
|
|
1968
1968
|
id: _ctx.toId,
|
|
1969
1969
|
modelValue: toValue.value,
|
|
1970
1970
|
"onUpdate:modelValue": [
|
|
@@ -1982,12 +1982,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1982
1982
|
};
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
1985
|
-
const _hoisted_1$
|
|
1985
|
+
const _hoisted_1$m = {
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
class: "date-filters .bs-layout-vertical mr-32"
|
|
1988
1988
|
};
|
|
1989
|
-
const _hoisted_2$
|
|
1990
|
-
const _sfc_main$
|
|
1989
|
+
const _hoisted_2$h = ["onClick"];
|
|
1990
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1991
1991
|
__name: "BSDateRangeFilters",
|
|
1992
1992
|
props: {
|
|
1993
1993
|
dateFilter: {},
|
|
@@ -2048,7 +2048,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2048
2048
|
}
|
|
2049
2049
|
};
|
|
2050
2050
|
return (_ctx, _cache) => {
|
|
2051
|
-
return _ctx.dateFilter.filterItems ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2051
|
+
return _ctx.dateFilter.filterItems ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
2052
2052
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dateFilterValues, (item, index) => {
|
|
2053
2053
|
return openBlock(), createElementBlock("div", {
|
|
2054
2054
|
key: index,
|
|
@@ -2062,8 +2062,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2062
2062
|
key: 1,
|
|
2063
2063
|
class: "font-icon bs-clickable mr-4",
|
|
2064
2064
|
onClick: ($event) => removeDateFilter(index)
|
|
2065
|
-
}, "do_not_disturb_on", 8, _hoisted_2$
|
|
2066
|
-
createVNode(_sfc_main$
|
|
2065
|
+
}, "do_not_disturb_on", 8, _hoisted_2$h)),
|
|
2066
|
+
createVNode(_sfc_main$z, {
|
|
2067
2067
|
items: _ctx.dateFilter.filterItems,
|
|
2068
2068
|
"label-provider": (filter) => filter.caption,
|
|
2069
2069
|
"model-value": item.propertyId,
|
|
@@ -2071,7 +2071,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2071
2071
|
class: "mr-4",
|
|
2072
2072
|
"onUpdate:modelValue": ($event) => setDateFilterPropertyId(index, $event)
|
|
2073
2073
|
}, null, 8, ["items", "label-provider", "model-value", "value-provider", "onUpdate:modelValue"]),
|
|
2074
|
-
createVNode(_sfc_main$
|
|
2074
|
+
createVNode(_sfc_main$o, {
|
|
2075
2075
|
"from-id": `${item.propertyId}From`,
|
|
2076
2076
|
"model-value": item.value,
|
|
2077
2077
|
"to-id": `${item.propertyId}To`,
|
|
@@ -2083,8 +2083,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2083
2083
|
};
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
|
-
const _hoisted_1$
|
|
2087
|
-
const _sfc_main$
|
|
2086
|
+
const _hoisted_1$l = { class: "bs-grid-lookup bs-layout-horizontal flex-align-start" };
|
|
2087
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2088
2088
|
__name: "BSGridLookup",
|
|
2089
2089
|
props: {
|
|
2090
2090
|
config: {}
|
|
@@ -2106,8 +2106,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2106
2106
|
};
|
|
2107
2107
|
return (_ctx, _cache) => {
|
|
2108
2108
|
var _a, _b;
|
|
2109
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2110
|
-
((_a = _ctx.config) == null ? void 0 : _a.textFilter) ? (openBlock(), createBlock(_sfc_main$
|
|
2109
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
2110
|
+
((_a = _ctx.config) == null ? void 0 : _a.textFilter) ? (openBlock(), createBlock(_sfc_main$p, {
|
|
2111
2111
|
key: 0,
|
|
2112
2112
|
modelValue: textFilterValue.value,
|
|
2113
2113
|
"onUpdate:modelValue": [
|
|
@@ -2117,7 +2117,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2117
2117
|
"text-filter-items": _ctx.config.textFilter.filterItems,
|
|
2118
2118
|
class: "mr-32"
|
|
2119
2119
|
}, null, 8, ["modelValue", "text-filter-items"])) : createCommentVNode("", true),
|
|
2120
|
-
((_b = _ctx.config) == null ? void 0 : _b.dateFilter) ? (openBlock(), createBlock(_sfc_main$
|
|
2120
|
+
((_b = _ctx.config) == null ? void 0 : _b.dateFilter) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
2121
2121
|
key: 1,
|
|
2122
2122
|
modelValue: dateFilterValue.value,
|
|
2123
2123
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dateFilterValue.value = $event),
|
|
@@ -2133,22 +2133,22 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
2135
|
});
|
|
2136
|
-
const _hoisted_1$
|
|
2137
|
-
const _hoisted_2$
|
|
2136
|
+
const _hoisted_1$k = { class: "bs-grid-control" };
|
|
2137
|
+
const _hoisted_2$g = {
|
|
2138
2138
|
key: 0,
|
|
2139
2139
|
class: "bs-clickable"
|
|
2140
2140
|
};
|
|
2141
|
-
const _hoisted_3$
|
|
2141
|
+
const _hoisted_3$7 = {
|
|
2142
2142
|
key: 1,
|
|
2143
2143
|
class: "bs-clickable"
|
|
2144
2144
|
};
|
|
2145
|
-
const _hoisted_4$
|
|
2145
|
+
const _hoisted_4$5 = {
|
|
2146
2146
|
key: 2,
|
|
2147
2147
|
class: "bs-clickable"
|
|
2148
2148
|
};
|
|
2149
|
-
const _hoisted_5$
|
|
2150
|
-
const _hoisted_6$
|
|
2151
|
-
const _sfc_main$
|
|
2149
|
+
const _hoisted_5$4 = { "data-id": "totalCount" };
|
|
2150
|
+
const _hoisted_6$2 = { key: 5 };
|
|
2151
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2152
2152
|
__name: "BSGridControl",
|
|
2153
2153
|
props: {
|
|
2154
2154
|
showSetting: { type: Boolean },
|
|
@@ -2171,10 +2171,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2171
2171
|
emit("update:limit", Math.max(1, limit || 0));
|
|
2172
2172
|
};
|
|
2173
2173
|
return (_ctx, _cache) => {
|
|
2174
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2175
|
-
_ctx.showSetting ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2176
|
-
_ctx.showClearFilter ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2177
|
-
_ctx.showFilter ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2174
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
2175
|
+
_ctx.showSetting ? (openBlock(), createElementBlock("div", _hoisted_2$g, " 칼럼설정 ")) : createCommentVNode("", true),
|
|
2176
|
+
_ctx.showClearFilter ? (openBlock(), createElementBlock("div", _hoisted_3$7, " 필터초기화 ")) : createCommentVNode("", true),
|
|
2177
|
+
_ctx.showFilter ? (openBlock(), createElementBlock("div", _hoisted_4$5, " 필터 ")) : createCommentVNode("", true),
|
|
2178
2178
|
_ctx.showAdd ? (openBlock(), createElementBlock("div", {
|
|
2179
2179
|
key: 3,
|
|
2180
2180
|
class: "bs-clickable",
|
|
@@ -2187,10 +2187,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2187
2187
|
}, " 선택삭제 ")) : createCommentVNode("", true),
|
|
2188
2188
|
createElementVNode("div", null, [
|
|
2189
2189
|
createTextVNode("전체: "),
|
|
2190
|
-
createElementVNode("span", _hoisted_5$
|
|
2190
|
+
createElementVNode("span", _hoisted_5$4, toDisplayString(unref(formatUtil).formatNumber(_ctx.totalCount)), 1)
|
|
2191
2191
|
]),
|
|
2192
|
-
_ctx.showLimit ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2193
|
-
createVNode(_sfc_main$
|
|
2192
|
+
_ctx.showLimit ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
2193
|
+
createVNode(_sfc_main$z, {
|
|
2194
2194
|
modelValue: limitValue.value,
|
|
2195
2195
|
"onUpdate:modelValue": [
|
|
2196
2196
|
_cache[2] || (_cache[2] = ($event) => limitValue.value = $event),
|
|
@@ -2204,12 +2204,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
|
-
const _hoisted_1$
|
|
2208
|
-
const _hoisted_2$
|
|
2209
|
-
const _hoisted_3$
|
|
2210
|
-
const _hoisted_4$
|
|
2211
|
-
const _hoisted_5$
|
|
2212
|
-
const _sfc_main$
|
|
2207
|
+
const _hoisted_1$j = { class: "bs-tab-sheet bs-layout-vertical" };
|
|
2208
|
+
const _hoisted_2$f = { class: "tab-bar bs-layout-horizontal" };
|
|
2209
|
+
const _hoisted_3$6 = { class: "tabs flex-grow-1 flex-shrink-1" };
|
|
2210
|
+
const _hoisted_4$4 = ["onClick"];
|
|
2211
|
+
const _hoisted_5$3 = { class: "buttons text-nowrap" };
|
|
2212
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2213
2213
|
__name: "BSTabSheet",
|
|
2214
2214
|
props: {
|
|
2215
2215
|
tabs: { default: () => [] }
|
|
@@ -2222,19 +2222,19 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2222
2222
|
selectTab(props.tabs[0]);
|
|
2223
2223
|
});
|
|
2224
2224
|
return (_ctx, _cache) => {
|
|
2225
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2226
|
-
createElementVNode("div", _hoisted_2$
|
|
2227
|
-
createElementVNode("div", _hoisted_3$
|
|
2225
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
2226
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
2227
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
2228
2228
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
2229
2229
|
var _a;
|
|
2230
2230
|
return openBlock(), createElementBlock("div", {
|
|
2231
2231
|
key: tab.tabId,
|
|
2232
2232
|
class: normalizeClass([{ selected: (tab == null ? void 0 : tab.tabId) === ((_a = currentTab.value) == null ? void 0 : _a.tabId) }, "bs-clickable tab"]),
|
|
2233
2233
|
onClick: ($event) => selectTab(tab)
|
|
2234
|
-
}, toDisplayString(tab.caption), 11, _hoisted_4$
|
|
2234
|
+
}, toDisplayString(tab.caption), 11, _hoisted_4$4);
|
|
2235
2235
|
}), 128))
|
|
2236
2236
|
]),
|
|
2237
|
-
createElementVNode("div", _hoisted_5$
|
|
2237
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
2238
2238
|
renderSlot(_ctx.$slots, "buttons")
|
|
2239
2239
|
])
|
|
2240
2240
|
]),
|
|
@@ -2243,14 +2243,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
2245
|
});
|
|
2246
|
-
const _hoisted_1$
|
|
2247
|
-
const _hoisted_2$
|
|
2248
|
-
const _hoisted_3$
|
|
2249
|
-
const _hoisted_4$
|
|
2246
|
+
const _hoisted_1$i = { class: "bs-list-layout-item" };
|
|
2247
|
+
const _hoisted_2$e = { class: "list-item-title bs-layout-horizontal flex-align-center" };
|
|
2248
|
+
const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("div", { class: "title-text flex-grow-1" }, "Title", -1);
|
|
2249
|
+
const _hoisted_4$3 = {
|
|
2250
2250
|
key: 0,
|
|
2251
2251
|
class: "list-item-content"
|
|
2252
2252
|
};
|
|
2253
|
-
const _sfc_main$
|
|
2253
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2254
2254
|
__name: "BSListLayoutItem",
|
|
2255
2255
|
props: {
|
|
2256
2256
|
dataItem: {},
|
|
@@ -2266,16 +2266,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2266
2266
|
emit("update:expanded", !actualExpanded.value);
|
|
2267
2267
|
};
|
|
2268
2268
|
return (_ctx, _cache) => {
|
|
2269
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2270
|
-
createElementVNode("div", _hoisted_2$
|
|
2271
|
-
createVNode(_sfc_main$
|
|
2272
|
-
_hoisted_3$
|
|
2269
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2270
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
2271
|
+
createVNode(_sfc_main$F, { class: "mr-4" }),
|
|
2272
|
+
_hoisted_3$5,
|
|
2273
2273
|
createElementVNode("span", {
|
|
2274
2274
|
class: "font-icon bs-clickable",
|
|
2275
2275
|
onClick: toggleExpanded
|
|
2276
2276
|
}, toDisplayString(actualExpanded.value ? "expand_less" : "expand_more"), 1)
|
|
2277
2277
|
]),
|
|
2278
|
-
actualExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2278
|
+
actualExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
2279
2279
|
renderSlot(_ctx.$slots, "default", {
|
|
2280
2280
|
item: _ctx.dataItem
|
|
2281
2281
|
})
|
|
@@ -2284,10 +2284,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2284
2284
|
};
|
|
2285
2285
|
}
|
|
2286
2286
|
});
|
|
2287
|
-
const _hoisted_1$
|
|
2288
|
-
const _hoisted_2$
|
|
2289
|
-
const _hoisted_3$
|
|
2290
|
-
const _sfc_main$
|
|
2287
|
+
const _hoisted_1$h = { class: "bs-list-layout" };
|
|
2288
|
+
const _hoisted_2$d = /* @__PURE__ */ createElementVNode("div", { class: "toolbar" }, null, -1);
|
|
2289
|
+
const _hoisted_3$4 = { class: "list-item bs-layout-vertical gap-4" };
|
|
2290
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2291
2291
|
__name: "BSListLayout",
|
|
2292
2292
|
props: {
|
|
2293
2293
|
data: { default: () => [{}] },
|
|
@@ -2304,11 +2304,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2304
2304
|
emit("update:expanded", props.expanded);
|
|
2305
2305
|
};
|
|
2306
2306
|
return (_ctx, _cache) => {
|
|
2307
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2308
|
-
_hoisted_2$
|
|
2309
|
-
createElementVNode("div", _hoisted_3$
|
|
2307
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
2308
|
+
_hoisted_2$d,
|
|
2309
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
2310
2310
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (item, index) => {
|
|
2311
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2311
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
2312
2312
|
key: `${item}_${index}`,
|
|
2313
2313
|
"data-item": item,
|
|
2314
2314
|
"expand-default": _ctx.expandDefault,
|
|
@@ -2338,15 +2338,15 @@ class TreeRowStatuses {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
const defaultCaptionProvider = (item) => (item == null ? void 0 : item.toString()) || "";
|
|
2341
|
-
const _hoisted_1$
|
|
2342
|
-
const _hoisted_2$
|
|
2343
|
-
const _hoisted_3$
|
|
2344
|
-
const _hoisted_4$
|
|
2345
|
-
const _hoisted_5$
|
|
2341
|
+
const _hoisted_1$g = { class: "bs-tree-row" };
|
|
2342
|
+
const _hoisted_2$c = { class: "row-caption" };
|
|
2343
|
+
const _hoisted_3$3 = ["onClick"];
|
|
2344
|
+
const _hoisted_4$2 = ["textContent", "onClick", "onMousedown", "onDblclick"];
|
|
2345
|
+
const _hoisted_5$2 = {
|
|
2346
2346
|
key: 0,
|
|
2347
2347
|
class: "child-rows"
|
|
2348
2348
|
};
|
|
2349
|
-
const _sfc_main$
|
|
2349
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2350
2350
|
__name: "BSTreeRow",
|
|
2351
2351
|
props: {
|
|
2352
2352
|
row: {},
|
|
@@ -2369,21 +2369,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2369
2369
|
const rowIcon = computed(() => children.value && children.value.length > 0 ? isOpen.value ? "arrow_drop_down" : "arrow_right" : "");
|
|
2370
2370
|
return (_ctx, _cache) => {
|
|
2371
2371
|
const _component_BSTreeRow = resolveComponent("BSTreeRow", true);
|
|
2372
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2373
|
-
createElementVNode("div", _hoisted_2$
|
|
2372
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
2373
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
2374
2374
|
createElementVNode("span", {
|
|
2375
2375
|
class: "bs-clickable font-icon w-16 my-n2",
|
|
2376
2376
|
onClick: withModifiers(toggleRow, ["stop"])
|
|
2377
|
-
}, toDisplayString(rowIcon.value), 9, _hoisted_3$
|
|
2377
|
+
}, toDisplayString(rowIcon.value), 9, _hoisted_3$3),
|
|
2378
2378
|
createElementVNode("span", {
|
|
2379
2379
|
class: normalizeClass([{ selected: isSelected.value }, "caption"]),
|
|
2380
2380
|
textContent: toDisplayString(caption.value),
|
|
2381
2381
|
onClick: withModifiers(selectRow, ["stop"]),
|
|
2382
2382
|
onMousedown: withModifiers(selectRow, ["right"]),
|
|
2383
2383
|
onDblclick: withModifiers(toggleRow, ["stop"])
|
|
2384
|
-
}, null, 42, _hoisted_4$
|
|
2384
|
+
}, null, 42, _hoisted_4$2)
|
|
2385
2385
|
]),
|
|
2386
|
-
children.value && children.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_5$
|
|
2386
|
+
children.value && children.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
2387
2387
|
(openBlock(true), createElementBlock(Fragment, null, renderList(children.value, (child) => {
|
|
2388
2388
|
return openBlock(), createBlock(_component_BSTreeRow, {
|
|
2389
2389
|
key: child == null ? void 0 : child.toString(),
|
|
@@ -2439,8 +2439,8 @@ const useContextMenuOptional = () => {
|
|
|
2439
2439
|
const createContextMenuPlugin = () => {
|
|
2440
2440
|
return new BSContextMenuPlugin();
|
|
2441
2441
|
};
|
|
2442
|
-
const _hoisted_1$
|
|
2443
|
-
const _sfc_main$
|
|
2442
|
+
const _hoisted_1$f = { class: "bs-tree" };
|
|
2443
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2444
2444
|
__name: "BSTree",
|
|
2445
2445
|
props: {
|
|
2446
2446
|
data: {},
|
|
@@ -2513,9 +2513,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2513
2513
|
}
|
|
2514
2514
|
};
|
|
2515
2515
|
return (_ctx, _cache) => {
|
|
2516
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
2517
2517
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (row) => {
|
|
2518
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2518
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
2519
2519
|
key: row == null ? void 0 : row.toString(),
|
|
2520
2520
|
"caption-provider": _ctx.captionProvider,
|
|
2521
2521
|
"children-provider": _ctx.childrenProvider,
|
|
@@ -2529,9 +2529,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
});
|
|
2532
|
-
const _hoisted_1$
|
|
2533
|
-
const _hoisted_2$
|
|
2534
|
-
const _sfc_main$
|
|
2532
|
+
const _hoisted_1$e = { key: 0 };
|
|
2533
|
+
const _hoisted_2$b = ["textContent"];
|
|
2534
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2535
2535
|
__name: "BSMultiLangTextInput",
|
|
2536
2536
|
props: {
|
|
2537
2537
|
locales: { default: () => blueseaConfig.locales },
|
|
@@ -2563,8 +2563,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2563
2563
|
}, [
|
|
2564
2564
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.locales, (locale) => {
|
|
2565
2565
|
return openBlock(), createElementBlock(Fragment, { key: locale }, [
|
|
2566
|
-
_ctx.expandLocale || locale === unref(blueseaConfig).defaultLocale ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2567
|
-
createVNode(_sfc_main$
|
|
2566
|
+
_ctx.expandLocale || locale === unref(blueseaConfig).defaultLocale ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2567
|
+
createVNode(_sfc_main$K, {
|
|
2568
2568
|
id: _ctx.id ? `${_ctx.id}_${locale}` : void 0,
|
|
2569
2569
|
autocomplete: _ctx.autocomplete,
|
|
2570
2570
|
disabled: _ctx.disabled,
|
|
@@ -2580,7 +2580,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2580
2580
|
key: 0,
|
|
2581
2581
|
class: "locale-tag",
|
|
2582
2582
|
textContent: toDisplayString(locale)
|
|
2583
|
-
}, null, 8, _hoisted_2$
|
|
2583
|
+
}, null, 8, _hoisted_2$b)) : createCommentVNode("", true)
|
|
2584
2584
|
])) : createCommentVNode("", true)
|
|
2585
2585
|
], 64);
|
|
2586
2586
|
}), 128))
|
|
@@ -2588,9 +2588,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2588
2588
|
};
|
|
2589
2589
|
}
|
|
2590
2590
|
});
|
|
2591
|
-
const _hoisted_1$
|
|
2592
|
-
const _hoisted_2$
|
|
2593
|
-
const _sfc_main$
|
|
2591
|
+
const _hoisted_1$d = { key: 0 };
|
|
2592
|
+
const _hoisted_2$a = ["textContent"];
|
|
2593
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2594
2594
|
__name: "BSMultiLangTextArea",
|
|
2595
2595
|
props: {
|
|
2596
2596
|
locales: { default: () => blueseaConfig.locales },
|
|
@@ -2622,8 +2622,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2622
2622
|
}, [
|
|
2623
2623
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.locales, (locale) => {
|
|
2624
2624
|
return openBlock(), createElementBlock(Fragment, { key: locale }, [
|
|
2625
|
-
_ctx.expandLocale || locale === unref(blueseaConfig).defaultLocale ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2626
|
-
createVNode(_sfc_main$
|
|
2625
|
+
_ctx.expandLocale || locale === unref(blueseaConfig).defaultLocale ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
2626
|
+
createVNode(_sfc_main$w, {
|
|
2627
2627
|
id: _ctx.id ? `${_ctx.id}_${locale}` : void 0,
|
|
2628
2628
|
autocomplete: _ctx.autocomplete,
|
|
2629
2629
|
disabled: _ctx.disabled,
|
|
@@ -2638,7 +2638,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2638
2638
|
key: 0,
|
|
2639
2639
|
class: "locale-tag",
|
|
2640
2640
|
textContent: toDisplayString(locale)
|
|
2641
|
-
}, null, 8, _hoisted_2$
|
|
2641
|
+
}, null, 8, _hoisted_2$a)) : createCommentVNode("", true)
|
|
2642
2642
|
])) : createCommentVNode("", true)
|
|
2643
2643
|
], 64);
|
|
2644
2644
|
}), 128))
|
|
@@ -2692,6 +2692,21 @@ class PaginatedList {
|
|
|
2692
2692
|
return this.data.length === 0;
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
2695
|
+
const serializeFilter = (filter) => {
|
|
2696
|
+
if (filter) {
|
|
2697
|
+
return "";
|
|
2698
|
+
}
|
|
2699
|
+
};
|
|
2700
|
+
const serializeSort = (sorts) => {
|
|
2701
|
+
if (sorts) {
|
|
2702
|
+
return sorts.map((sort) => {
|
|
2703
|
+
const dir = sort.ascending ? "" : "-";
|
|
2704
|
+
const propertyId = encodeURIComponent(sort.propertyId);
|
|
2705
|
+
const nulls = sort.nullHandling || "";
|
|
2706
|
+
return `${dir}${propertyId} ${nulls}`;
|
|
2707
|
+
}).join(",");
|
|
2708
|
+
}
|
|
2709
|
+
};
|
|
2695
2710
|
class SearchParam {
|
|
2696
2711
|
constructor() {
|
|
2697
2712
|
__publicField(this, "offset");
|
|
@@ -2701,27 +2716,12 @@ class SearchParam {
|
|
|
2701
2716
|
}
|
|
2702
2717
|
toQueryMap() {
|
|
2703
2718
|
return {
|
|
2704
|
-
filter: this.
|
|
2705
|
-
sort: this.
|
|
2719
|
+
filter: serializeFilter(this.filter),
|
|
2720
|
+
sort: serializeSort(this.sorts),
|
|
2706
2721
|
offset: this.offset,
|
|
2707
2722
|
limit: this.limit
|
|
2708
2723
|
};
|
|
2709
2724
|
}
|
|
2710
|
-
serializeFilter() {
|
|
2711
|
-
if (this.filter) {
|
|
2712
|
-
return "";
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
serializeSort() {
|
|
2716
|
-
if (this.sorts) {
|
|
2717
|
-
return this.sorts.map((sort) => {
|
|
2718
|
-
const dir = sort.ascending ? "" : "-";
|
|
2719
|
-
const propertyId = encodeURIComponent(sort.propertyId);
|
|
2720
|
-
const nulls = sort.nullHandling || "";
|
|
2721
|
-
return `${dir}${propertyId} ${nulls}`;
|
|
2722
|
-
}).join(",");
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
2725
|
}
|
|
2726
2726
|
const modalKey = Symbol();
|
|
2727
2727
|
const modalHandleKey = Symbol();
|
|
@@ -2786,8 +2786,8 @@ const useModalHandle = () => {
|
|
|
2786
2786
|
const createModalPlugin = () => {
|
|
2787
2787
|
return new BSModal();
|
|
2788
2788
|
};
|
|
2789
|
-
const _hoisted_1$
|
|
2790
|
-
const _sfc_main$
|
|
2789
|
+
const _hoisted_1$c = { class: "modal-wrapper bs-layout-vertical flex-align-center flex-content-center" };
|
|
2790
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2791
2791
|
__name: "BSModalWrapper",
|
|
2792
2792
|
props: {
|
|
2793
2793
|
modalItem: {}
|
|
@@ -2797,7 +2797,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2797
2797
|
provideModalHandle(props.modalItem.modalHandle);
|
|
2798
2798
|
return (_ctx, _cache) => {
|
|
2799
2799
|
var _a;
|
|
2800
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2800
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
2801
2801
|
createElementVNode("div", {
|
|
2802
2802
|
class: normalizeClass([(_a = _ctx.modalItem.style) == null ? void 0 : _a.styleClass, "modal-panel"]),
|
|
2803
2803
|
style: normalizeStyle(_ctx.modalItem.style)
|
|
@@ -2808,12 +2808,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
2810
|
});
|
|
2811
|
-
const _hoisted_1$
|
|
2812
|
-
const _hoisted_2$
|
|
2811
|
+
const _hoisted_1$b = { class: "bs-modal-container" };
|
|
2812
|
+
const _hoisted_2$9 = {
|
|
2813
2813
|
key: 0,
|
|
2814
2814
|
class: "modal-curtain"
|
|
2815
2815
|
};
|
|
2816
|
-
const _sfc_main$
|
|
2816
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2817
2817
|
__name: "BSModalContainer",
|
|
2818
2818
|
setup(__props) {
|
|
2819
2819
|
const modal = useModal();
|
|
@@ -2826,10 +2826,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2826
2826
|
() => disableBodyScroll(modalExists.value)
|
|
2827
2827
|
);
|
|
2828
2828
|
return (_ctx, _cache) => {
|
|
2829
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2830
|
-
modalExists.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2829
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
2830
|
+
modalExists.value ? (openBlock(), createElementBlock("div", _hoisted_2$9)) : createCommentVNode("", true),
|
|
2831
2831
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(modal).modalItems, (item) => {
|
|
2832
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2832
|
+
return openBlock(), createBlock(_sfc_main$d, {
|
|
2833
2833
|
key: item.name,
|
|
2834
2834
|
"modal-item": item
|
|
2835
2835
|
}, null, 8, ["modal-item"]);
|
|
@@ -2838,19 +2838,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
2840
|
});
|
|
2841
|
-
const _hoisted_1$
|
|
2842
|
-
const _hoisted_2$
|
|
2841
|
+
const _hoisted_1$a = { class: "bs-modal-frame bs-layout-vertical" };
|
|
2842
|
+
const _hoisted_2$8 = {
|
|
2843
2843
|
key: 0,
|
|
2844
2844
|
class: "title-bar bs-layout-horizontal flex-align-center"
|
|
2845
2845
|
};
|
|
2846
|
-
const _hoisted_3$
|
|
2847
|
-
const _hoisted_4 = { class: "title-buttons" };
|
|
2848
|
-
const _hoisted_5 = { class: "flex-grow-1" };
|
|
2849
|
-
const _hoisted_6 = {
|
|
2846
|
+
const _hoisted_3$2 = { class: "title flex-grow-1" };
|
|
2847
|
+
const _hoisted_4$1 = { class: "title-buttons" };
|
|
2848
|
+
const _hoisted_5$1 = { class: "flex-grow-1" };
|
|
2849
|
+
const _hoisted_6$1 = {
|
|
2850
2850
|
key: 1,
|
|
2851
2851
|
class: "buttons"
|
|
2852
2852
|
};
|
|
2853
|
-
const _sfc_main$
|
|
2853
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2854
2854
|
__name: "BSModalFrame",
|
|
2855
2855
|
props: {
|
|
2856
2856
|
title: {},
|
|
@@ -2866,14 +2866,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2866
2866
|
modalHandle.close();
|
|
2867
2867
|
};
|
|
2868
2868
|
return (_ctx, _cache) => {
|
|
2869
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2870
|
-
hasTitleBar.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2871
|
-
createElementVNode("div", _hoisted_3$
|
|
2869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
2870
|
+
hasTitleBar.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
2871
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
2872
2872
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2873
2873
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
2874
2874
|
])
|
|
2875
2875
|
]),
|
|
2876
|
-
createElementVNode("div", _hoisted_4, [
|
|
2876
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
2877
2877
|
renderSlot(_ctx.$slots, "title-buttons")
|
|
2878
2878
|
]),
|
|
2879
2879
|
!_ctx.hideCloseButton ? (openBlock(), createElementBlock("div", {
|
|
@@ -2882,22 +2882,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2882
2882
|
onClick: hideModal
|
|
2883
2883
|
}, " close ")) : createCommentVNode("", true)
|
|
2884
2884
|
])) : createCommentVNode("", true),
|
|
2885
|
-
createElementVNode("div", _hoisted_5, [
|
|
2885
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
2886
2886
|
renderSlot(_ctx.$slots, "default")
|
|
2887
2887
|
]),
|
|
2888
|
-
hasButtons.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
2888
|
+
hasButtons.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
2889
2889
|
renderSlot(_ctx.$slots, "buttons")
|
|
2890
2890
|
])) : createCommentVNode("", true)
|
|
2891
2891
|
]);
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
2894
|
});
|
|
2895
|
-
const _hoisted_1$
|
|
2895
|
+
const _hoisted_1$9 = {
|
|
2896
2896
|
key: 0,
|
|
2897
2897
|
class: "menu separator"
|
|
2898
2898
|
};
|
|
2899
|
-
const _hoisted_2$
|
|
2900
|
-
const _sfc_main$
|
|
2899
|
+
const _hoisted_2$7 = ["onClick", "onMouseenter"];
|
|
2900
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2901
2901
|
__name: "BSContextMenu",
|
|
2902
2902
|
props: {
|
|
2903
2903
|
menuItems: {},
|
|
@@ -2944,7 +2944,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2944
2944
|
default: withCtx(() => [
|
|
2945
2945
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (menu) => {
|
|
2946
2946
|
return openBlock(), createElementBlock(Fragment, { key: menu }, [
|
|
2947
|
-
menu.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2947
|
+
menu.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_1$9)) : menu.type === "custom" && menu.component ? (openBlock(), createBlock(resolveDynamicComponent(menu.component), {
|
|
2948
2948
|
key: 1,
|
|
2949
2949
|
class: "menu custom"
|
|
2950
2950
|
})) : withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -2952,7 +2952,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2952
2952
|
class: normalizeClass([{ "has-submenu": menu.children }, "menu"]),
|
|
2953
2953
|
onClick: ($event) => handleMenuClick(menu),
|
|
2954
2954
|
onMouseenter: ($event) => showSubmenu($event, menu)
|
|
2955
|
-
}, null, 42, _hoisted_2$
|
|
2955
|
+
}, null, 42, _hoisted_2$7)), [
|
|
2956
2956
|
[unref(vT), menu.caption]
|
|
2957
2957
|
])
|
|
2958
2958
|
], 64);
|
|
@@ -2969,9 +2969,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2969
2969
|
};
|
|
2970
2970
|
}
|
|
2971
2971
|
});
|
|
2972
|
-
const _hoisted_1$
|
|
2973
|
-
const _hoisted_2$
|
|
2974
|
-
const _sfc_main$
|
|
2972
|
+
const _hoisted_1$8 = { class: "bs-context-menu-container" };
|
|
2973
|
+
const _hoisted_2$6 = ["onClick", "onContextmenu"];
|
|
2974
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2975
2975
|
__name: "BSContextMenuContainer",
|
|
2976
2976
|
setup(__props) {
|
|
2977
2977
|
const contextMenu = useContextMenu();
|
|
@@ -2981,15 +2981,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2981
2981
|
contextMenu.hideContextMenu();
|
|
2982
2982
|
};
|
|
2983
2983
|
return (_ctx, _cache) => {
|
|
2984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2984
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2985
2985
|
menuItems.value ? (openBlock(), createElementBlock("div", {
|
|
2986
2986
|
key: 0,
|
|
2987
2987
|
class: "context-menu-curtain",
|
|
2988
2988
|
tabindex: "0",
|
|
2989
2989
|
onClick: withModifiers(hideContextMenu, ["prevent"]),
|
|
2990
2990
|
onContextmenu: withModifiers(hideContextMenu, ["prevent"])
|
|
2991
|
-
}, null, 40, _hoisted_2$
|
|
2992
|
-
menuItems.value ? (openBlock(), createBlock(_sfc_main$
|
|
2991
|
+
}, null, 40, _hoisted_2$6)) : createCommentVNode("", true),
|
|
2992
|
+
menuItems.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
2993
2993
|
key: 1,
|
|
2994
2994
|
left: position.value.x,
|
|
2995
2995
|
"menu-items": menuItems.value,
|
|
@@ -2999,6 +2999,130 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2999
2999
|
};
|
|
3000
3000
|
}
|
|
3001
3001
|
});
|
|
3002
|
+
function doFocus(el) {
|
|
3003
|
+
el.focus();
|
|
3004
|
+
}
|
|
3005
|
+
const vFocusOnLoad = {
|
|
3006
|
+
mounted: (el, binding) => {
|
|
3007
|
+
if (binding.value === void 0 || String(binding.value) === "true" || typeof binding.value === "number") {
|
|
3008
|
+
if (typeof binding.value === "number") {
|
|
3009
|
+
setTimeout(() => doFocus(el), binding.value);
|
|
3010
|
+
} else {
|
|
3011
|
+
doFocus(el);
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
};
|
|
3016
|
+
const checkEnglish = (str) => {
|
|
3017
|
+
return /[a-z]/i.test(str);
|
|
3018
|
+
};
|
|
3019
|
+
const alertMessage = (msgCode, locale) => {
|
|
3020
|
+
if (!locale) {
|
|
3021
|
+
locale = getCurrentLocale();
|
|
3022
|
+
}
|
|
3023
|
+
const message = i18n.text(locale, msgCode);
|
|
3024
|
+
if (message) {
|
|
3025
|
+
window.alert(message);
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3028
|
+
const _withScopeId = (n) => (pushScopeId("data-v-feda5177"), n = n(), popScopeId(), n);
|
|
3029
|
+
const _hoisted_1$7 = { class: "position-relative" };
|
|
3030
|
+
const _hoisted_2$5 = { class: "menu-search" };
|
|
3031
|
+
const _hoisted_3$1 = ["placeholder", "value", "onKeydown"];
|
|
3032
|
+
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "font-icon" }, "close", -1));
|
|
3033
|
+
const _hoisted_5 = [
|
|
3034
|
+
_hoisted_4
|
|
3035
|
+
];
|
|
3036
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "font-icon" }, "search", -1));
|
|
3037
|
+
const _hoisted_7 = [
|
|
3038
|
+
_hoisted_6
|
|
3039
|
+
];
|
|
3040
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3041
|
+
__name: "SideBarMenuSearch",
|
|
3042
|
+
props: {
|
|
3043
|
+
focusOnLoad: { type: Boolean },
|
|
3044
|
+
placeholder: {},
|
|
3045
|
+
menu: {}
|
|
3046
|
+
},
|
|
3047
|
+
emits: ["search-menu-result", "empty-keyword"],
|
|
3048
|
+
setup(__props, { emit: __emit }) {
|
|
3049
|
+
const props = __props;
|
|
3050
|
+
const emit = __emit;
|
|
3051
|
+
const keyword = ref("");
|
|
3052
|
+
const changeKeyword = (event) => {
|
|
3053
|
+
const input = event.target;
|
|
3054
|
+
keyword.value = input.value;
|
|
3055
|
+
};
|
|
3056
|
+
const emptyKeyword = () => {
|
|
3057
|
+
keyword.value = "";
|
|
3058
|
+
emit("empty-keyword");
|
|
3059
|
+
};
|
|
3060
|
+
const isEditingKeyword = ref(false);
|
|
3061
|
+
const setIsEditingKeyword = (value) => isEditingKeyword.value ? setTimeout(() => isEditingKeyword.value = value, 150) : isEditingKeyword.value = value;
|
|
3062
|
+
const submit = () => {
|
|
3063
|
+
if (keyword.value.trim() === "") {
|
|
3064
|
+
alertMessage("msg.searchPlaceholder");
|
|
3065
|
+
return;
|
|
3066
|
+
}
|
|
3067
|
+
const menu = findMenu(props.menu, keyword.value);
|
|
3068
|
+
emit("search-menu-result", menu);
|
|
3069
|
+
};
|
|
3070
|
+
const findMenu = (menu, keyword2) => {
|
|
3071
|
+
keyword2 = toLowerCaseIfEng(keyword2);
|
|
3072
|
+
const result = [];
|
|
3073
|
+
for (const m of menu) {
|
|
3074
|
+
let addMenu = false;
|
|
3075
|
+
const copyMenu = { ...m };
|
|
3076
|
+
copyMenu.subMenu = [];
|
|
3077
|
+
if (m.subMenu) {
|
|
3078
|
+
for (const sub of m.subMenu) {
|
|
3079
|
+
if (getArrangedCaption(sub.menuId).includes(keyword2)) {
|
|
3080
|
+
copyMenu.subMenu.push(sub);
|
|
3081
|
+
if (!addMenu)
|
|
3082
|
+
addMenu = true;
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
if (addMenu)
|
|
3087
|
+
result.push(copyMenu);
|
|
3088
|
+
}
|
|
3089
|
+
return result;
|
|
3090
|
+
};
|
|
3091
|
+
const toLowerCaseIfEng = (text) => {
|
|
3092
|
+
if (checkEnglish(text)) {
|
|
3093
|
+
return text.toLowerCase();
|
|
3094
|
+
} else {
|
|
3095
|
+
return text;
|
|
3096
|
+
}
|
|
3097
|
+
};
|
|
3098
|
+
const getArrangedCaption = (key) => {
|
|
3099
|
+
const locale = getCurrentLocale();
|
|
3100
|
+
const targetCaption = i18n.text(locale, key).text;
|
|
3101
|
+
return toLowerCaseIfEng(targetCaption);
|
|
3102
|
+
};
|
|
3103
|
+
return (_ctx, _cache) => {
|
|
3104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
3105
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
3106
|
+
withDirectives(createElementVNode("input", {
|
|
3107
|
+
placeholder: _ctx.placeholder,
|
|
3108
|
+
value: keyword.value,
|
|
3109
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => setIsEditingKeyword(false)),
|
|
3110
|
+
onFocusin: _cache[1] || (_cache[1] = ($event) => setIsEditingKeyword(true)),
|
|
3111
|
+
onInput: _cache[2] || (_cache[2] = ($event) => changeKeyword($event)),
|
|
3112
|
+
onKeydown: withKeys(submit, ["enter"])
|
|
3113
|
+
}, null, 40, _hoisted_3$1), [
|
|
3114
|
+
[unref(vFocusOnLoad), _ctx.focusOnLoad ? 300 : false]
|
|
3115
|
+
]),
|
|
3116
|
+
createElementVNode("div", { class: "icon" }, [
|
|
3117
|
+
createElementVNode("button", { onClick: emptyKeyword }, _hoisted_5),
|
|
3118
|
+
createElementVNode("button", { onClick: submit }, _hoisted_7)
|
|
3119
|
+
])
|
|
3120
|
+
])
|
|
3121
|
+
]);
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
});
|
|
3125
|
+
const SidebarMenuSearch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-feda5177"]]);
|
|
3002
3126
|
class DefaultFrameContext {
|
|
3003
3127
|
constructor(config) {
|
|
3004
3128
|
__publicField(this, "pageManager");
|
|
@@ -3203,13 +3327,25 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3203
3327
|
__name: "SidebarMenu",
|
|
3204
3328
|
setup(__props) {
|
|
3205
3329
|
const showMenu = ref(false);
|
|
3330
|
+
const context = useDefaultFrame();
|
|
3206
3331
|
const toggleMenu = () => {
|
|
3207
3332
|
showMenu.value = !showMenu.value;
|
|
3208
3333
|
};
|
|
3209
3334
|
const hideMenu = () => {
|
|
3210
3335
|
showMenu.value = false;
|
|
3211
3336
|
};
|
|
3212
|
-
const
|
|
3337
|
+
const searchResult = ref([]);
|
|
3338
|
+
const isSearching = ref(false);
|
|
3339
|
+
const sideBarMenu = computed(() => {
|
|
3340
|
+
return isSearching.value ? searchResult.value : context.getMenus();
|
|
3341
|
+
});
|
|
3342
|
+
const applySearchResult = (menu) => {
|
|
3343
|
+
searchResult.value = menu;
|
|
3344
|
+
isSearching.value = true;
|
|
3345
|
+
};
|
|
3346
|
+
const stopSearching = () => {
|
|
3347
|
+
isSearching.value = false;
|
|
3348
|
+
};
|
|
3213
3349
|
return (_ctx, _cache) => {
|
|
3214
3350
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
3215
3351
|
class: "sidebar-menu",
|
|
@@ -3224,7 +3360,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3224
3360
|
createVNode(Transition, { name: "menu-slide" }, {
|
|
3225
3361
|
default: withCtx(() => [
|
|
3226
3362
|
withDirectives(createElementVNode("div", _hoisted_3, [
|
|
3227
|
-
(
|
|
3363
|
+
createVNode(SidebarMenuSearch, {
|
|
3364
|
+
menu: unref(context).getMenus(),
|
|
3365
|
+
onEmptyKeyword: stopSearching,
|
|
3366
|
+
onSearchMenuResult: applySearchResult
|
|
3367
|
+
}, null, 8, ["menu"]),
|
|
3368
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sideBarMenu.value, (menu) => {
|
|
3228
3369
|
return openBlock(), createBlock(_sfc_main$6, {
|
|
3229
3370
|
key: menu.menuId,
|
|
3230
3371
|
menu
|
|
@@ -3390,33 +3531,33 @@ const BLUESEA_VERSION = "5.0.0";
|
|
|
3390
3531
|
export {
|
|
3391
3532
|
BLUESEA_VERSION,
|
|
3392
3533
|
BSButton,
|
|
3393
|
-
_sfc_main$
|
|
3394
|
-
_sfc_main$
|
|
3395
|
-
_sfc_main$
|
|
3534
|
+
_sfc_main$F as BSCheckbox,
|
|
3535
|
+
_sfc_main$E as BSCheckboxGroup,
|
|
3536
|
+
_sfc_main$9 as BSContextMenuContainer,
|
|
3396
3537
|
BSContextMenuPlugin,
|
|
3397
|
-
_sfc_main$
|
|
3398
|
-
_sfc_main$
|
|
3399
|
-
_sfc_main$
|
|
3400
|
-
_sfc_main$
|
|
3401
|
-
_sfc_main$
|
|
3402
|
-
_sfc_main$
|
|
3538
|
+
_sfc_main$G as BSDateInput,
|
|
3539
|
+
_sfc_main$o as BSDateRangeFilter,
|
|
3540
|
+
_sfc_main$q as BSGrid,
|
|
3541
|
+
_sfc_main$l as BSGridControl,
|
|
3542
|
+
_sfc_main$m as BSGridLookup,
|
|
3543
|
+
_sfc_main$i as BSListLayout,
|
|
3403
3544
|
BSModal,
|
|
3404
|
-
_sfc_main$
|
|
3405
|
-
_sfc_main$
|
|
3406
|
-
_sfc_main$
|
|
3407
|
-
_sfc_main$
|
|
3408
|
-
_sfc_main$
|
|
3409
|
-
_sfc_main$
|
|
3410
|
-
_sfc_main$
|
|
3411
|
-
_sfc_main$
|
|
3412
|
-
_sfc_main$
|
|
3413
|
-
_sfc_main$
|
|
3414
|
-
_sfc_main$
|
|
3415
|
-
_sfc_main$
|
|
3416
|
-
_sfc_main$
|
|
3417
|
-
_sfc_main$
|
|
3418
|
-
_sfc_main$
|
|
3419
|
-
_sfc_main$
|
|
3545
|
+
_sfc_main$c as BSModalContainer,
|
|
3546
|
+
_sfc_main$b as BSModalFrame,
|
|
3547
|
+
_sfc_main$e as BSMultiLangTextArea,
|
|
3548
|
+
_sfc_main$f as BSMultiLangTextInput,
|
|
3549
|
+
_sfc_main$y as BSMultiSelect,
|
|
3550
|
+
_sfc_main$J as BSNumberInput,
|
|
3551
|
+
_sfc_main$I as BSPriceInput,
|
|
3552
|
+
_sfc_main$D as BSRadioButton,
|
|
3553
|
+
_sfc_main$C as BSRadioButtonGroup,
|
|
3554
|
+
_sfc_main$z as BSSelect,
|
|
3555
|
+
_sfc_main$k as BSTabSheet,
|
|
3556
|
+
_sfc_main$w as BSTextArea,
|
|
3557
|
+
_sfc_main$p as BSTextFilter,
|
|
3558
|
+
_sfc_main$K as BSTextInput,
|
|
3559
|
+
_sfc_main$g as BSTree,
|
|
3560
|
+
_sfc_main$x as BSTreeSelect,
|
|
3420
3561
|
_sfc_main as DefaultBody,
|
|
3421
3562
|
DefaultFrameContext,
|
|
3422
3563
|
_sfc_main$1 as DefaultHeader,
|