@g1cloud/open-bluesea-core 1.0.0-alpha.8 → 1.0.0-alpha.9
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/css/bluesea.css +0 -4
- package/dist/index.d.ts +140 -91
- package/dist/open-bluesea-core.css +769 -1265
- package/dist/open-bluesea-core.es.js +281 -116
- package/dist/open-bluesea-core.umd.js +280 -115
- package/package.json +4 -1
- package/tailwind.preset.js +221 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref, markRaw, provide, reactive, defineAsyncComponent, defineComponent, withDirectives, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, unref,
|
|
1
|
+
import { inject, ref, markRaw, provide, reactive, defineAsyncComponent, defineComponent, useSlots, computed, withDirectives, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createCommentVNode, createElementVNode, renderSlot, toDisplayString, unref, withModifiers, createVNode, Fragment, renderList, onMounted, onBeforeUnmount, Teleport, Transition, normalizeStyle, watch, nextTick, withKeys, shallowRef, useTemplateRef, mergeProps, isRef, toHandlers, vModelDynamic, vModelText, vShow, TransitionGroup, resolveComponent } from "vue";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
3
|
const ContextMenuPluginKey = Symbol("BlueseaContextMenuPlugin");
|
|
4
4
|
class BSContextMenuPlugin {
|
|
@@ -300,14 +300,12 @@ const vTooltip = {
|
|
|
300
300
|
hideTooltip();
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
-
const _hoisted_1$
|
|
304
|
-
const _sfc_main$
|
|
303
|
+
const _hoisted_1$v = ["textContent"];
|
|
304
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
305
305
|
__name: "BSButton",
|
|
306
306
|
props: {
|
|
307
307
|
caption: {},
|
|
308
308
|
buttonColor: { default: "default" },
|
|
309
|
-
leftIcon: {},
|
|
310
|
-
rightIcon: {},
|
|
311
309
|
disabled: { type: Boolean, default: false },
|
|
312
310
|
linkUrl: {},
|
|
313
311
|
linkTarget: {},
|
|
@@ -315,6 +313,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
315
313
|
tooltip: {}
|
|
316
314
|
},
|
|
317
315
|
setup(__props) {
|
|
316
|
+
const slots = useSlots();
|
|
317
|
+
const hasLeftSlot = computed(() => !!slots.left);
|
|
318
|
+
const hasRightSlot = computed(() => !!slots.right);
|
|
318
319
|
return (_ctx, _cache) => {
|
|
319
320
|
return withDirectives((openBlock(), createBlock(resolveDynamicComponent(__props.linkUrl ? "a" : __props.routePath ? "router-link" : "button"), {
|
|
320
321
|
class: normalizeClass([[__props.buttonColor], "bs-button position-relative"]),
|
|
@@ -324,25 +325,118 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
324
325
|
to: __props.routePath
|
|
325
326
|
}, {
|
|
326
327
|
default: withCtx(() => [
|
|
327
|
-
|
|
328
|
+
hasLeftSlot.value ? (openBlock(), createElementBlock("span", {
|
|
328
329
|
key: 0,
|
|
329
|
-
class: normalizeClass([{ "mr-1": !!__props.caption }, "
|
|
330
|
-
},
|
|
330
|
+
class: normalizeClass([{ "mr-1": !!__props.caption }, "left"])
|
|
331
|
+
}, [
|
|
332
|
+
renderSlot(_ctx.$slots, "left")
|
|
333
|
+
], 2)) : createCommentVNode("", true),
|
|
331
334
|
createElementVNode("span", {
|
|
332
335
|
textContent: toDisplayString(__props.caption)
|
|
333
|
-
}, null, 8, _hoisted_1$
|
|
334
|
-
|
|
336
|
+
}, null, 8, _hoisted_1$v),
|
|
337
|
+
hasRightSlot.value ? (openBlock(), createElementBlock("span", {
|
|
335
338
|
key: 1,
|
|
336
|
-
class: normalizeClass([{ "ml-1": !!__props.caption }, "
|
|
337
|
-
},
|
|
339
|
+
class: normalizeClass([{ "ml-1": !!__props.caption }, "right"])
|
|
340
|
+
}, [
|
|
341
|
+
renderSlot(_ctx.$slots, "right")
|
|
342
|
+
], 2)) : createCommentVNode("", true)
|
|
338
343
|
]),
|
|
339
|
-
_:
|
|
344
|
+
_: 3
|
|
340
345
|
}, 8, ["class", "disabled", "href", "target", "to"])), [
|
|
341
346
|
[unref(vTooltip), { content: __props.tooltip }]
|
|
342
347
|
]);
|
|
343
348
|
};
|
|
344
349
|
}
|
|
345
350
|
});
|
|
351
|
+
const Add = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>';
|
|
352
|
+
const CalendarMonth = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"/></svg>';
|
|
353
|
+
const Check = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41L9 16.17z"/></svg>';
|
|
354
|
+
const CheckBox = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>';
|
|
355
|
+
const CheckBoxOutlineBlank = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>';
|
|
356
|
+
const CheckCircle = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4l8-8z"/></svg>';
|
|
357
|
+
const Close = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z"/></svg>';
|
|
358
|
+
const Cancel = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10s10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm3.59-13L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41z"/></svg>';
|
|
359
|
+
const DragHandle = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/></svg>';
|
|
360
|
+
const Edit = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83l3.75 3.75l1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"/></svg>';
|
|
361
|
+
const ExpandMore = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.59 8.59L12 13.17L7.41 8.59L6 10l6 6l6-6l-1.41-1.41z"/></svg>';
|
|
362
|
+
const KeyboardArrowLeft = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.41z"/></svg>';
|
|
363
|
+
const KeyboardArrowRight = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8.59 16.59L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.41z"/></svg>';
|
|
364
|
+
const KeyboardDoubleArrowLeft = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.59 18L19 16.59L14.42 12L19 7.41L17.59 6l-6 6z"/><path d="M11 18l1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"/></svg>';
|
|
365
|
+
const KeyboardDoubleArrowRight = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.41 6L5 7.41L9.58 12L5 16.59L6.41 18l6-6z"/><path d="M13 6l-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"/></svg>';
|
|
366
|
+
const Label = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/></svg>';
|
|
367
|
+
const Maximize = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 11V3h-8l3.29 3.29l-10 10L3 13v8h8l-3.29-3.29l10-10z"/></svg>';
|
|
368
|
+
const Minimize = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22 3.41L16.71 8.7L20 12h-8V4l3.29 3.29L20.59 2L22 3.41zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59L3.41 22z"/></svg>';
|
|
369
|
+
const North = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 9l1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7l-7 7z"/></svg>';
|
|
370
|
+
const Numbers = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.5 10l.5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4h4zm-7 4h-4l1-4h4l-1 4z"/></svg>';
|
|
371
|
+
const ProgressActivity = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 6v3l4-4l-4-4v3c-4.42 0-8 3.58-8 8c0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0 0 1 6 12c0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8c0 3.31-2.69 6-6 6v-3l-4 4l4 4v-3c4.42 0 8-3.58 8-8c0-1.57-.46-3.03-1.24-4.26z"/></svg>';
|
|
372
|
+
const RadioButtonChecked = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8z"/></svg>';
|
|
373
|
+
const RadioButtonUnchecked = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8z"/></svg>';
|
|
374
|
+
const Remove = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>';
|
|
375
|
+
const Replay = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>';
|
|
376
|
+
const South = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 15l-1.41-1.41L13 18.17V2h-2v16.17l-4.59-4.59L5 15l7 7l7-7z"/></svg>';
|
|
377
|
+
const Straight = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 6.83L9.41 8.41L8 7l4-4l4 4l-1.41 1.41L13 6.83V21h-2z"/></svg>';
|
|
378
|
+
const SwapVert = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/></svg>';
|
|
379
|
+
const iconRegistry = {
|
|
380
|
+
add: Add,
|
|
381
|
+
calendar_month: CalendarMonth,
|
|
382
|
+
check: Check,
|
|
383
|
+
check_box: CheckBox,
|
|
384
|
+
check_box_outline_blank: CheckBoxOutlineBlank,
|
|
385
|
+
check_circle: CheckCircle,
|
|
386
|
+
close: Close,
|
|
387
|
+
cancel: Cancel,
|
|
388
|
+
drag_handle: DragHandle,
|
|
389
|
+
edit: Edit,
|
|
390
|
+
expand_more: ExpandMore,
|
|
391
|
+
keyboard_arrow_left: KeyboardArrowLeft,
|
|
392
|
+
keyboard_arrow_right: KeyboardArrowRight,
|
|
393
|
+
keyboard_double_arrow_left: KeyboardDoubleArrowLeft,
|
|
394
|
+
keyboard_double_arrow_right: KeyboardDoubleArrowRight,
|
|
395
|
+
label: Label,
|
|
396
|
+
maximize: Maximize,
|
|
397
|
+
minimize: Minimize,
|
|
398
|
+
north: North,
|
|
399
|
+
numbers: Numbers,
|
|
400
|
+
progress_activity: ProgressActivity,
|
|
401
|
+
radio_button_checked: RadioButtonChecked,
|
|
402
|
+
radio_button_unchecked: RadioButtonUnchecked,
|
|
403
|
+
remove: Remove,
|
|
404
|
+
replay: Replay,
|
|
405
|
+
south: South,
|
|
406
|
+
straight: Straight,
|
|
407
|
+
swap_vert: SwapVert
|
|
408
|
+
};
|
|
409
|
+
const registerIcon = (name, svg) => {
|
|
410
|
+
iconRegistry[name] = svg;
|
|
411
|
+
};
|
|
412
|
+
const registerIcons = (icons2) => {
|
|
413
|
+
Object.entries(icons2).forEach(([name, svg]) => {
|
|
414
|
+
iconRegistry[name] = svg;
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
const getIcon = (name) => {
|
|
418
|
+
return iconRegistry[name];
|
|
419
|
+
};
|
|
420
|
+
const _hoisted_1$u = ["innerHTML"];
|
|
421
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
422
|
+
__name: "BSIcon",
|
|
423
|
+
props: {
|
|
424
|
+
name: {},
|
|
425
|
+
spin: { type: Boolean, default: false }
|
|
426
|
+
},
|
|
427
|
+
setup(__props) {
|
|
428
|
+
const props = __props;
|
|
429
|
+
const svgContent = computed(() => {
|
|
430
|
+
return getIcon(props.name) || "";
|
|
431
|
+
});
|
|
432
|
+
return (_ctx, _cache) => {
|
|
433
|
+
return openBlock(), createElementBlock("span", {
|
|
434
|
+
class: normalizeClass(["bs-icon", { spin: __props.spin }]),
|
|
435
|
+
innerHTML: svgContent.value
|
|
436
|
+
}, null, 10, _hoisted_1$u);
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
});
|
|
346
440
|
const _hoisted_1$t = { class: "page-navigation" };
|
|
347
441
|
const _hoisted_2$o = ["data-page", "onClick"];
|
|
348
442
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
@@ -407,13 +501,17 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
407
501
|
return (_ctx, _cache) => {
|
|
408
502
|
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
409
503
|
createElementVNode("span", {
|
|
410
|
-
class: normalizeClass([{ "disabled": isFirstSet.value }, "
|
|
504
|
+
class: normalizeClass([{ "disabled": isFirstSet.value }, "nav-icon first"]),
|
|
411
505
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => !isFirstSet.value && goToPage(1), ["prevent"]))
|
|
412
|
-
},
|
|
506
|
+
}, [
|
|
507
|
+
createVNode(_sfc_main$w, { name: "keyboard_double_arrow_left" })
|
|
508
|
+
], 2),
|
|
413
509
|
createElementVNode("span", {
|
|
414
|
-
class: normalizeClass([{ "disabled": isFirstSet.value }, "
|
|
510
|
+
class: normalizeClass([{ "disabled": isFirstSet.value }, "nav-icon prev"]),
|
|
415
511
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => !isFirstSet.value && goToPage(prevArrowPage.value), ["prevent"]))
|
|
416
|
-
},
|
|
512
|
+
}, [
|
|
513
|
+
createVNode(_sfc_main$w, { name: "keyboard_arrow_left" })
|
|
514
|
+
], 2),
|
|
417
515
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visiblePages.value, (page) => {
|
|
418
516
|
return openBlock(), createElementBlock("span", {
|
|
419
517
|
key: page,
|
|
@@ -423,32 +521,35 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
423
521
|
}, toDisplayString(page), 11, _hoisted_2$o);
|
|
424
522
|
}), 128)),
|
|
425
523
|
createElementVNode("span", {
|
|
426
|
-
class: normalizeClass([{ "disabled": isLastSet.value }, "
|
|
524
|
+
class: normalizeClass([{ "disabled": isLastSet.value }, "nav-icon next"]),
|
|
427
525
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => !isLastSet.value && goToPage(nextArrowPage.value), ["prevent"]))
|
|
428
|
-
},
|
|
526
|
+
}, [
|
|
527
|
+
createVNode(_sfc_main$w, { name: "keyboard_arrow_right" })
|
|
528
|
+
], 2),
|
|
429
529
|
createElementVNode("span", {
|
|
430
|
-
class: normalizeClass([{ "disabled": isLastSet.value }, "
|
|
530
|
+
class: normalizeClass([{ "disabled": isLastSet.value }, "nav-icon last"]),
|
|
431
531
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => !isLastSet.value && goToPage(totalPage.value), ["prevent"]))
|
|
432
|
-
},
|
|
532
|
+
}, [
|
|
533
|
+
createVNode(_sfc_main$w, { name: "keyboard_double_arrow_right" })
|
|
534
|
+
], 2)
|
|
433
535
|
]);
|
|
434
536
|
};
|
|
435
537
|
}
|
|
436
538
|
});
|
|
437
|
-
const _export_sfc = (sfc, props) => {
|
|
438
|
-
const target = sfc.__vccOpts || sfc;
|
|
439
|
-
for (const [key, val] of props) {
|
|
440
|
-
target[key] = val;
|
|
441
|
-
}
|
|
442
|
-
return target;
|
|
443
|
-
};
|
|
444
|
-
const _sfc_main$u = {};
|
|
445
539
|
const _hoisted_1$s = { class: "bs-loading-icon" };
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
540
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
541
|
+
__name: "BSLoadingIcon",
|
|
542
|
+
setup(__props) {
|
|
543
|
+
return (_ctx, _cache) => {
|
|
544
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
545
|
+
createVNode(_sfc_main$w, {
|
|
546
|
+
name: "progress_activity",
|
|
547
|
+
spin: ""
|
|
548
|
+
})
|
|
549
|
+
]);
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
});
|
|
452
553
|
const waitUntil = async (condition, intervalMilliseconds = 200, maxTrial = 15) => {
|
|
453
554
|
return await new Promise((resolve) => {
|
|
454
555
|
let tried = 0;
|
|
@@ -747,8 +848,9 @@ const _hoisted_1$p = {
|
|
|
747
848
|
class: "popup-search"
|
|
748
849
|
};
|
|
749
850
|
const _hoisted_2$n = ["data-value", "onMouseover", "onClick"];
|
|
750
|
-
const _hoisted_3$
|
|
751
|
-
const _hoisted_4$
|
|
851
|
+
const _hoisted_3$g = { class: "checkbox" };
|
|
852
|
+
const _hoisted_4$c = ["textContent"];
|
|
853
|
+
const _hoisted_5$6 = ["textContent"];
|
|
752
854
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
753
855
|
__name: "BSSelectPopup",
|
|
754
856
|
props: {
|
|
@@ -930,16 +1032,21 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
930
1032
|
onMouseover: ($event) => setHoveredPopupItem(item?.original),
|
|
931
1033
|
onClick: withModifiers(($event) => selectPopupItem(item?.original), ["stop"])
|
|
932
1034
|
}, [
|
|
933
|
-
|
|
1035
|
+
createElementVNode("span", _hoisted_3$g, [
|
|
1036
|
+
item !== void 0 && __props.selectedItems?.includes(item?.original) ? (openBlock(), createBlock(_sfc_main$w, {
|
|
1037
|
+
key: 0,
|
|
1038
|
+
name: "check"
|
|
1039
|
+
})) : createCommentVNode("", true)
|
|
1040
|
+
]),
|
|
934
1041
|
item !== void 0 ? (openBlock(), createElementBlock("label", {
|
|
935
1042
|
key: 0,
|
|
936
1043
|
textContent: toDisplayString(item?.label),
|
|
937
1044
|
class: "label"
|
|
938
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, _hoisted_4$c)) : (openBlock(), createElementBlock("label", {
|
|
939
1046
|
key: 1,
|
|
940
1047
|
textContent: toDisplayString(__props.nullLabel),
|
|
941
1048
|
class: "label null-label"
|
|
942
|
-
}, null, 8,
|
|
1049
|
+
}, null, 8, _hoisted_5$6))
|
|
943
1050
|
], 42, _hoisted_2$n);
|
|
944
1051
|
}), 128))
|
|
945
1052
|
], 512)
|
|
@@ -1345,13 +1452,9 @@ const executeKeyProviderOrDefault = (item, keyProvider, defaultKey) => {
|
|
|
1345
1452
|
};
|
|
1346
1453
|
const _hoisted_1$n = ["tabindex", "onKeydown"];
|
|
1347
1454
|
const _hoisted_2$l = ["textContent"];
|
|
1348
|
-
const _hoisted_3$
|
|
1349
|
-
const _hoisted_4$
|
|
1455
|
+
const _hoisted_3$f = ["data-field-name"];
|
|
1456
|
+
const _hoisted_4$b = ["textContent"];
|
|
1350
1457
|
const _hoisted_5$5 = ["textContent"];
|
|
1351
|
-
const _hoisted_6$2 = {
|
|
1352
|
-
key: 2,
|
|
1353
|
-
class: "small-progress"
|
|
1354
|
-
};
|
|
1355
1458
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1356
1459
|
__name: "BSSelect",
|
|
1357
1460
|
props: {
|
|
@@ -1499,14 +1602,22 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1499
1602
|
key: 0,
|
|
1500
1603
|
textContent: toDisplayString(__props.placeholder),
|
|
1501
1604
|
class: "placeholder grow"
|
|
1502
|
-
}, null, 8, _hoisted_4$
|
|
1605
|
+
}, null, 8, _hoisted_4$b)) : (openBlock(), createElementBlock("span", {
|
|
1503
1606
|
key: 1,
|
|
1504
1607
|
textContent: toDisplayString(selectedItemLabel.value),
|
|
1505
1608
|
class: "label"
|
|
1506
1609
|
}, null, 8, _hoisted_5$5)),
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1610
|
+
createVNode(_sfc_main$w, {
|
|
1611
|
+
name: "expand_more",
|
|
1612
|
+
class: "dropdown-btn"
|
|
1613
|
+
}),
|
|
1614
|
+
loadingItems.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
1615
|
+
key: 2,
|
|
1616
|
+
name: "progress_activity",
|
|
1617
|
+
class: "small-progress",
|
|
1618
|
+
spin: ""
|
|
1619
|
+
})) : createCommentVNode("", true)
|
|
1620
|
+
], 8, _hoisted_3$f),
|
|
1510
1621
|
!__props.disabled && showPopup.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
1511
1622
|
key: 0,
|
|
1512
1623
|
ref_key: "selectPopup",
|
|
@@ -1543,8 +1654,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1543
1654
|
});
|
|
1544
1655
|
const _hoisted_1$m = { class: "bs-calendar" };
|
|
1545
1656
|
const _hoisted_2$k = { class: "bs-calendar-head" };
|
|
1546
|
-
const _hoisted_3$
|
|
1547
|
-
const _hoisted_4$
|
|
1657
|
+
const _hoisted_3$e = { class: "year-month" };
|
|
1658
|
+
const _hoisted_4$a = {
|
|
1548
1659
|
key: 0,
|
|
1549
1660
|
class: "timezone"
|
|
1550
1661
|
};
|
|
@@ -1747,11 +1858,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1747
1858
|
return (_ctx, _cache) => {
|
|
1748
1859
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
1749
1860
|
createElementVNode("div", _hoisted_2$k, [
|
|
1750
|
-
createElementVNode("div", _hoisted_3$
|
|
1751
|
-
createVNode(_sfc_main$
|
|
1752
|
-
class: "",
|
|
1753
|
-
"left-icon": "chevron_left",
|
|
1861
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
1862
|
+
createVNode(_sfc_main$x, {
|
|
1863
|
+
class: "min-w-[2em]",
|
|
1754
1864
|
onClick: prevMonth
|
|
1865
|
+
}, {
|
|
1866
|
+
left: withCtx(() => [
|
|
1867
|
+
createVNode(_sfc_main$w, { name: "chevron_left" })
|
|
1868
|
+
]),
|
|
1869
|
+
_: 1
|
|
1755
1870
|
}),
|
|
1756
1871
|
createVNode(_sfc_main$p, {
|
|
1757
1872
|
modelValue: year.value,
|
|
@@ -1765,13 +1880,17 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1765
1880
|
disabled: __props.disabled,
|
|
1766
1881
|
items: unref(months)
|
|
1767
1882
|
}, null, 8, ["modelValue", "disabled", "items"]),
|
|
1768
|
-
createVNode(_sfc_main$
|
|
1769
|
-
class: "",
|
|
1770
|
-
"left-icon": "chevron_right",
|
|
1883
|
+
createVNode(_sfc_main$x, {
|
|
1884
|
+
class: "min-w-[2em]",
|
|
1771
1885
|
onClick: nextMonth
|
|
1886
|
+
}, {
|
|
1887
|
+
left: withCtx(() => [
|
|
1888
|
+
createVNode(_sfc_main$w, { name: "chevron_right" })
|
|
1889
|
+
]),
|
|
1890
|
+
_: 1
|
|
1772
1891
|
})
|
|
1773
1892
|
]),
|
|
1774
|
-
__props.showTimeZone ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1893
|
+
__props.showTimeZone ? (openBlock(), createElementBlock("div", _hoisted_4$a, "(" + toDisplayString(actualTimeZone.value) + ")", 1)) : createCommentVNode("", true)
|
|
1775
1894
|
]),
|
|
1776
1895
|
createElementVNode("table", {
|
|
1777
1896
|
class: normalizeClass([{ disabled: __props.disabled }, "align-self-center"])
|
|
@@ -1832,7 +1951,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1832
1951
|
});
|
|
1833
1952
|
const _hoisted_1$l = { class: "bs-calendar-range flex flex-row" };
|
|
1834
1953
|
const _hoisted_2$j = { class: "flex flex-col" };
|
|
1835
|
-
const _hoisted_3$
|
|
1954
|
+
const _hoisted_3$d = { class: "flex flex-row items-center" };
|
|
1836
1955
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1837
1956
|
__name: "BSCalendarRange",
|
|
1838
1957
|
props: {
|
|
@@ -1873,7 +1992,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1873
1992
|
return (_ctx, _cache) => {
|
|
1874
1993
|
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
1875
1994
|
createElementVNode("div", _hoisted_2$j, [
|
|
1876
|
-
createElementVNode("div", _hoisted_3$
|
|
1995
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
1877
1996
|
createVNode(_sfc_main$o, {
|
|
1878
1997
|
modelValue: fromValue.value,
|
|
1879
1998
|
"onUpdate:modelValue": [
|
|
@@ -1972,8 +2091,7 @@ const componentUtil = {
|
|
|
1972
2091
|
}
|
|
1973
2092
|
};
|
|
1974
2093
|
const _hoisted_1$k = ["textContent"];
|
|
1975
|
-
const _hoisted_2$i =
|
|
1976
|
-
const _hoisted_3$d = ["src", "alt"];
|
|
2094
|
+
const _hoisted_2$i = ["src", "alt"];
|
|
1977
2095
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1978
2096
|
__name: "BSPrefixSuffix",
|
|
1979
2097
|
props: {
|
|
@@ -1990,11 +2108,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1990
2108
|
textContent: toDisplayString(item.value),
|
|
1991
2109
|
key: JSON.stringify(item.value),
|
|
1992
2110
|
class: normalizeClass(__props.type)
|
|
1993
|
-
}, null, 10, _hoisted_1$k)) : item.type === "
|
|
2111
|
+
}, null, 10, _hoisted_1$k)) : item.type === "icon" ? (openBlock(), createElementBlock("span", {
|
|
1994
2112
|
key: 1,
|
|
1995
2113
|
class: normalizeClass(__props.type)
|
|
1996
2114
|
}, [
|
|
1997
|
-
|
|
2115
|
+
createVNode(_sfc_main$w, {
|
|
2116
|
+
name: item.value
|
|
2117
|
+
}, null, 8, ["name"])
|
|
1998
2118
|
], 2)) : item.type === "image-url" ? (openBlock(), createElementBlock("span", {
|
|
1999
2119
|
key: 2,
|
|
2000
2120
|
class: normalizeClass(__props.type)
|
|
@@ -2002,7 +2122,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2002
2122
|
createElementVNode("img", {
|
|
2003
2123
|
src: item.value,
|
|
2004
2124
|
alt: __props.type
|
|
2005
|
-
}, null, 8,
|
|
2125
|
+
}, null, 8, _hoisted_2$i)
|
|
2006
2126
|
], 2)) : createCommentVNode("", true)
|
|
2007
2127
|
], 64);
|
|
2008
2128
|
}), 256);
|
|
@@ -2018,7 +2138,7 @@ const _hoisted_3$c = {
|
|
|
2018
2138
|
key: 1,
|
|
2019
2139
|
class: "input-area"
|
|
2020
2140
|
};
|
|
2021
|
-
const _hoisted_4$
|
|
2141
|
+
const _hoisted_4$9 = ["id", "placeholder", "autocomplete", "disabled", "maxlength", "name", "tabindex", "type"];
|
|
2022
2142
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2023
2143
|
__name: "BSTextInput",
|
|
2024
2144
|
props: {
|
|
@@ -2172,7 +2292,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2172
2292
|
name: __props.name,
|
|
2173
2293
|
tabindex: __props.tabindex,
|
|
2174
2294
|
type: __props.inputType
|
|
2175
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_4$
|
|
2295
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_4$9), [
|
|
2176
2296
|
[vModelDynamic, unref(stringValue)]
|
|
2177
2297
|
]),
|
|
2178
2298
|
createVNode(_sfc_main$m, {
|
|
@@ -2471,7 +2591,7 @@ const _hoisted_3$b = {
|
|
|
2471
2591
|
key: 1,
|
|
2472
2592
|
class: "input-area"
|
|
2473
2593
|
};
|
|
2474
|
-
const _hoisted_4$
|
|
2594
|
+
const _hoisted_4$8 = ["id", "placeholder", "autocomplete", "disabled", "maxlength", "name", "tabindex", "value"];
|
|
2475
2595
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2476
2596
|
__name: "BSNumberInput",
|
|
2477
2597
|
props: {
|
|
@@ -2633,7 +2753,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2633
2753
|
tabindex: __props.tabindex,
|
|
2634
2754
|
value: focused.value || !__props.formatOnBlur ? unref(stringValue) : formattedStringValue.value,
|
|
2635
2755
|
type: "text"
|
|
2636
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_4$
|
|
2756
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_4$8),
|
|
2637
2757
|
createVNode(_sfc_main$m, {
|
|
2638
2758
|
value: __props.suffix,
|
|
2639
2759
|
type: "suffix"
|
|
@@ -2657,7 +2777,7 @@ const _hoisted_3$a = {
|
|
|
2657
2777
|
key: 1,
|
|
2658
2778
|
class: "input-area flex flex-row items-start"
|
|
2659
2779
|
};
|
|
2660
|
-
const _hoisted_4$
|
|
2780
|
+
const _hoisted_4$7 = ["placeholder", "disabled", "maxlength", "name", "tabindex"];
|
|
2661
2781
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2662
2782
|
__name: "BSTextArea",
|
|
2663
2783
|
props: {
|
|
@@ -2803,7 +2923,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2803
2923
|
class: "grow",
|
|
2804
2924
|
onPointerdown: capturePointer,
|
|
2805
2925
|
onPointerup: preserveResizedHeight
|
|
2806
|
-
}, toHandlers(handlers, true)), null, 16, _hoisted_4$
|
|
2926
|
+
}, toHandlers(handlers, true)), null, 16, _hoisted_4$7), [
|
|
2807
2927
|
[vModelText, unref(stringValue)]
|
|
2808
2928
|
]),
|
|
2809
2929
|
createVNode(_sfc_main$m, {
|
|
@@ -2821,8 +2941,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2821
2941
|
}
|
|
2822
2942
|
});
|
|
2823
2943
|
const _hoisted_1$g = ["id", "checked", "disabled", "name", "tabindex"];
|
|
2824
|
-
const _hoisted_2$e = ["
|
|
2825
|
-
const _hoisted_3$9 = ["for"];
|
|
2944
|
+
const _hoisted_2$e = ["for"];
|
|
2945
|
+
const _hoisted_3$9 = ["textContent", "for"];
|
|
2946
|
+
const _hoisted_4$6 = ["for"];
|
|
2826
2947
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2827
2948
|
__name: "BSCheckbox",
|
|
2828
2949
|
props: {
|
|
@@ -2880,19 +3001,27 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2880
3001
|
class: "",
|
|
2881
3002
|
type: "checkbox"
|
|
2882
3003
|
}, toHandlers(handlers, true)), null, 16, _hoisted_1$g),
|
|
3004
|
+
createElementVNode("label", {
|
|
3005
|
+
for: __props.id,
|
|
3006
|
+
class: "icon-label"
|
|
3007
|
+
}, [
|
|
3008
|
+
createVNode(_sfc_main$w, {
|
|
3009
|
+
name: checked.value ? "check_box" : "check_box_outline_blank"
|
|
3010
|
+
}, null, 8, ["name"])
|
|
3011
|
+
], 8, _hoisted_2$e),
|
|
2883
3012
|
__props.label ? (openBlock(), createElementBlock("label", {
|
|
2884
3013
|
key: 0,
|
|
2885
3014
|
textContent: toDisplayString(__props.label),
|
|
2886
3015
|
for: __props.id,
|
|
2887
3016
|
class: "text-label"
|
|
2888
|
-
}, null, 8,
|
|
3017
|
+
}, null, 8, _hoisted_3$9)) : createCommentVNode("", true),
|
|
2889
3018
|
hasLabelSlot.value ? (openBlock(), createElementBlock("label", {
|
|
2890
3019
|
key: 1,
|
|
2891
3020
|
for: __props.id,
|
|
2892
3021
|
class: "slot-label cursor-pointer"
|
|
2893
3022
|
}, [
|
|
2894
3023
|
renderSlot(_ctx.$slots, "default", { disabled: __props.disabled })
|
|
2895
|
-
], 8,
|
|
3024
|
+
], 8, _hoisted_4$6)) : createCommentVNode("", true)
|
|
2896
3025
|
], 2);
|
|
2897
3026
|
};
|
|
2898
3027
|
}
|
|
@@ -3035,10 +3164,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3035
3164
|
});
|
|
3036
3165
|
const _hoisted_1$e = ["id", "checked", "disabled", "name", "tabindex"];
|
|
3037
3166
|
const _hoisted_2$c = ["for"];
|
|
3038
|
-
const _hoisted_3$7 =
|
|
3039
|
-
key: 0,
|
|
3040
|
-
class: "font-icon"
|
|
3041
|
-
};
|
|
3167
|
+
const _hoisted_3$7 = ["for"];
|
|
3042
3168
|
const _hoisted_4$5 = ["textContent"];
|
|
3043
3169
|
const _hoisted_5$3 = ["for"];
|
|
3044
3170
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -3085,14 +3211,25 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3085
3211
|
role: "radio",
|
|
3086
3212
|
type: "radio"
|
|
3087
3213
|
}, toHandlers(handlers, true)), null, 16, _hoisted_1$e),
|
|
3214
|
+
createElementVNode("label", {
|
|
3215
|
+
for: __props.id,
|
|
3216
|
+
class: "icon-label"
|
|
3217
|
+
}, [
|
|
3218
|
+
createVNode(_sfc_main$w, {
|
|
3219
|
+
name: checked.value ? "radio_button_checked" : "radio_button_unchecked"
|
|
3220
|
+
}, null, 8, ["name"])
|
|
3221
|
+
], 8, _hoisted_2$c),
|
|
3088
3222
|
createElementVNode("label", { for: __props.id }, [
|
|
3089
|
-
__props.icon ? (openBlock(),
|
|
3223
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$w, {
|
|
3224
|
+
key: 0,
|
|
3225
|
+
name: __props.icon
|
|
3226
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
3090
3227
|
__props.label ? (openBlock(), createElementBlock("span", {
|
|
3091
3228
|
key: 1,
|
|
3092
3229
|
textContent: toDisplayString(__props.label),
|
|
3093
3230
|
class: "text-label"
|
|
3094
3231
|
}, null, 8, _hoisted_4$5)) : createCommentVNode("", true)
|
|
3095
|
-
], 8,
|
|
3232
|
+
], 8, _hoisted_3$7),
|
|
3096
3233
|
hasLabelSlot.value ? (openBlock(), createElementBlock("label", {
|
|
3097
3234
|
key: 0,
|
|
3098
3235
|
for: __props.id,
|
|
@@ -3232,10 +3369,6 @@ const _hoisted_7 = {
|
|
|
3232
3369
|
};
|
|
3233
3370
|
const _hoisted_8 = ["textContent"];
|
|
3234
3371
|
const _hoisted_9 = ["textContent"];
|
|
3235
|
-
const _hoisted_10 = {
|
|
3236
|
-
key: 2,
|
|
3237
|
-
class: "small-progress"
|
|
3238
|
-
};
|
|
3239
3372
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3240
3373
|
__name: "BSMultiSelect",
|
|
3241
3374
|
props: {
|
|
@@ -3396,8 +3529,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3396
3529
|
}, null, 8, _hoisted_9);
|
|
3397
3530
|
}), 128))
|
|
3398
3531
|
])),
|
|
3399
|
-
|
|
3400
|
-
|
|
3532
|
+
createVNode(_sfc_main$w, {
|
|
3533
|
+
name: "expand_more",
|
|
3534
|
+
class: "dropdown-btn"
|
|
3535
|
+
}),
|
|
3536
|
+
loadingItems.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
3537
|
+
key: 2,
|
|
3538
|
+
name: "progress_activity",
|
|
3539
|
+
class: "small-progress",
|
|
3540
|
+
spin: ""
|
|
3541
|
+
})) : createCommentVNode("", true)
|
|
3401
3542
|
], 8, _hoisted_5$2),
|
|
3402
3543
|
!__props.disabled && showPopup.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
3403
3544
|
key: 0,
|
|
@@ -3538,13 +3679,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3538
3679
|
"time-zone": __props.timeZone
|
|
3539
3680
|
}, null, 8, ["modelValue", "display-format", "end-year", "resolution", "start-year", "time-zone"]),
|
|
3540
3681
|
createElementVNode("div", _hoisted_2$9, [
|
|
3541
|
-
createVNode(_sfc_main$
|
|
3682
|
+
createVNode(_sfc_main$x, {
|
|
3542
3683
|
caption: __props.okButtonCaption,
|
|
3543
3684
|
"button-color": "blue",
|
|
3544
3685
|
class: "min-w-80",
|
|
3545
3686
|
onClick: emitValue
|
|
3546
3687
|
}, null, 8, ["caption"]),
|
|
3547
|
-
createVNode(_sfc_main$
|
|
3688
|
+
createVNode(_sfc_main$x, {
|
|
3548
3689
|
caption: __props.cancelButtonCaption,
|
|
3549
3690
|
class: "min-w-80",
|
|
3550
3691
|
onClick: close
|
|
@@ -3776,10 +3917,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3776
3917
|
__props.viewMode ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
3777
3918
|
createElementVNode("span", null, toDisplayString(viewModeValue.value), 1)
|
|
3778
3919
|
])) : (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
3779
|
-
|
|
3780
|
-
|
|
3920
|
+
createVNode(_sfc_main$w, {
|
|
3921
|
+
name: "calendar_month",
|
|
3922
|
+
class: normalizeClass({ "bs-clickable": !__props.disabled }),
|
|
3781
3923
|
onClick: _cache[0] || (_cache[0] = ($event) => togglePopup())
|
|
3782
|
-
},
|
|
3924
|
+
}, null, 8, ["class"]),
|
|
3783
3925
|
createElementVNode("input", mergeProps({
|
|
3784
3926
|
id: __props.id,
|
|
3785
3927
|
ref_key: "field",
|
|
@@ -3876,13 +4018,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3876
4018
|
"time-zone": __props.timeZone
|
|
3877
4019
|
}, null, 8, ["from", "to", "disabled-from", "disabled-to", "display-format", "end-year", "resolution", "start-year", "time-zone"]),
|
|
3878
4020
|
createElementVNode("div", _hoisted_2$7, [
|
|
3879
|
-
createVNode(_sfc_main$
|
|
4021
|
+
createVNode(_sfc_main$x, {
|
|
3880
4022
|
caption: __props.okButtonCaption,
|
|
3881
4023
|
"button-color": "blue",
|
|
3882
4024
|
class: "min-w-80",
|
|
3883
4025
|
onClick: emitValue
|
|
3884
4026
|
}, null, 8, ["caption"]),
|
|
3885
|
-
createVNode(_sfc_main$
|
|
4027
|
+
createVNode(_sfc_main$x, {
|
|
3886
4028
|
caption: __props.cancelButtonCaption,
|
|
3887
4029
|
class: "min-w-80",
|
|
3888
4030
|
onClick: close
|
|
@@ -4286,10 +4428,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4286
4428
|
__props.viewMode ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
4287
4429
|
createElementVNode("span", null, toDisplayString(formattedDateRange.value), 1)
|
|
4288
4430
|
])) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
4289
|
-
|
|
4290
|
-
|
|
4431
|
+
createVNode(_sfc_main$w, {
|
|
4432
|
+
name: "calendar_month",
|
|
4433
|
+
class: normalizeClass({ "bs-clickable": !disabled.value }),
|
|
4291
4434
|
onClick: _cache[0] || (_cache[0] = () => togglePopup())
|
|
4292
|
-
},
|
|
4435
|
+
}, null, 8, ["class"]),
|
|
4293
4436
|
createElementVNode("input", mergeProps({
|
|
4294
4437
|
id: __props.idFrom,
|
|
4295
4438
|
ref_key: "fieldFrom",
|
|
@@ -4429,10 +4572,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4429
4572
|
class: normalizeClass([{ expanded: expanded.value }, "bs-card-layout"])
|
|
4430
4573
|
}, [
|
|
4431
4574
|
!__props.hideTitle ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4432
|
-
|
|
4433
|
-
|
|
4575
|
+
createVNode(_sfc_main$w, {
|
|
4576
|
+
name: "label",
|
|
4577
|
+
class: "expand-btn bs-clickable",
|
|
4434
4578
|
onClick: toggleExpand
|
|
4435
|
-
}
|
|
4579
|
+
}),
|
|
4436
4580
|
createElementVNode("div", {
|
|
4437
4581
|
textContent: toDisplayString(__props.title),
|
|
4438
4582
|
class: "card-layout-title"
|
|
@@ -4941,20 +5085,30 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4941
5085
|
renderSlot(_ctx.$slots, "title-buttons")
|
|
4942
5086
|
]),
|
|
4943
5087
|
createElementVNode("div", null, [
|
|
4944
|
-
!__props.hideMaximizeButton ? (openBlock(), createBlock(_sfc_main$
|
|
5088
|
+
!__props.hideMaximizeButton ? (openBlock(), createBlock(_sfc_main$x, {
|
|
4945
5089
|
key: 0,
|
|
4946
|
-
"left-icon": unref(modalHandle).maximized ? "minimize" : "maximize",
|
|
4947
5090
|
title: unref(modalHandle).maximized ? "Restore" : "Maximize",
|
|
4948
5091
|
class: "border-0 maximize-btn",
|
|
4949
5092
|
onClick: toggleMaximize
|
|
4950
|
-
},
|
|
4951
|
-
|
|
5093
|
+
}, {
|
|
5094
|
+
left: withCtx(() => [
|
|
5095
|
+
createVNode(_sfc_main$w, {
|
|
5096
|
+
name: unref(modalHandle).maximized ? "minimize" : "maximize"
|
|
5097
|
+
}, null, 8, ["name"])
|
|
5098
|
+
]),
|
|
5099
|
+
_: 1
|
|
5100
|
+
}, 8, ["title"])) : createCommentVNode("", true),
|
|
5101
|
+
!__props.hideCloseButton ? (openBlock(), createBlock(_sfc_main$x, {
|
|
4952
5102
|
key: 1,
|
|
4953
5103
|
title: __props.closeCaption,
|
|
4954
5104
|
class: "border-0 close-btn",
|
|
4955
|
-
"left-icon": "close",
|
|
4956
5105
|
onClick: closeModal
|
|
4957
|
-
},
|
|
5106
|
+
}, {
|
|
5107
|
+
left: withCtx(() => [
|
|
5108
|
+
createVNode(_sfc_main$w, { name: "close" })
|
|
5109
|
+
]),
|
|
5110
|
+
_: 1
|
|
5111
|
+
}, 8, ["title"])) : createCommentVNode("", true)
|
|
4958
5112
|
])
|
|
4959
5113
|
])) : createCommentVNode("", true),
|
|
4960
5114
|
createElementVNode("div", {
|
|
@@ -5006,7 +5160,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5006
5160
|
}, {
|
|
5007
5161
|
buttons: withCtx(() => [
|
|
5008
5162
|
createElementVNode("div", _hoisted_2$3, [
|
|
5009
|
-
withDirectives(createVNode(_sfc_main$
|
|
5163
|
+
withDirectives(createVNode(_sfc_main$x, {
|
|
5010
5164
|
caption: __props.okCaption,
|
|
5011
5165
|
"button-color": "blue",
|
|
5012
5166
|
class: "min-w-80",
|
|
@@ -5057,13 +5211,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
5057
5211
|
return openBlock(), createBlock(_sfc_main$5, { title: __props.title }, {
|
|
5058
5212
|
buttons: withCtx(() => [
|
|
5059
5213
|
createElementVNode("div", _hoisted_2$2, [
|
|
5060
|
-
createVNode(_sfc_main$
|
|
5214
|
+
createVNode(_sfc_main$x, {
|
|
5061
5215
|
caption: __props.noCaption,
|
|
5062
5216
|
class: "min-w-80",
|
|
5063
5217
|
"data-id": "noBtn",
|
|
5064
5218
|
onClick: clickNo
|
|
5065
5219
|
}, null, 8, ["caption"]),
|
|
5066
|
-
createVNode(_sfc_main$
|
|
5220
|
+
createVNode(_sfc_main$x, {
|
|
5067
5221
|
caption: __props.yesCaption,
|
|
5068
5222
|
"button-color": "blue",
|
|
5069
5223
|
class: "ml-8 min-w-80",
|
|
@@ -5105,9 +5259,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5105
5259
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(notificationEntries), (entry) => {
|
|
5106
5260
|
return openBlock(), createElementBlock("div", {
|
|
5107
5261
|
key: entry.entryId,
|
|
5108
|
-
textContent: toDisplayString(entry.message),
|
|
5109
5262
|
class: normalizeClass(entry.style)
|
|
5110
|
-
},
|
|
5263
|
+
}, [
|
|
5264
|
+
createVNode(_sfc_main$w, {
|
|
5265
|
+
name: entry.style === "error" ? "cancel" : "check_circle",
|
|
5266
|
+
class: "notification-icon"
|
|
5267
|
+
}, null, 8, ["name"]),
|
|
5268
|
+
createElementVNode("span", {
|
|
5269
|
+
textContent: toDisplayString(entry.message)
|
|
5270
|
+
}, null, 8, _hoisted_3$1)
|
|
5271
|
+
], 2);
|
|
5111
5272
|
}), 128))
|
|
5112
5273
|
]),
|
|
5113
5274
|
_: 1
|
|
@@ -5138,7 +5299,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5138
5299
|
onMouseover: _cache[1] || (_cache[1] = ($event) => setCursorInTooltip(true, $event))
|
|
5139
5300
|
}, null, 8, ["content", "target"])) : createCommentVNode("", true)
|
|
5140
5301
|
]),
|
|
5141
|
-
unref(showLoadingIcon) ? (openBlock(), createBlock(
|
|
5302
|
+
unref(showLoadingIcon) ? (openBlock(), createBlock(_sfc_main$u, { key: 0 })) : createCommentVNode("", true)
|
|
5142
5303
|
]);
|
|
5143
5304
|
};
|
|
5144
5305
|
}
|
|
@@ -5298,7 +5459,7 @@ class IllegalAccessError {
|
|
|
5298
5459
|
}
|
|
5299
5460
|
export {
|
|
5300
5461
|
_sfc_main$4 as BSAlertModal,
|
|
5301
|
-
_sfc_main$
|
|
5462
|
+
_sfc_main$x as BSButton,
|
|
5302
5463
|
_sfc_main$o as BSCalendar,
|
|
5303
5464
|
_sfc_main$n as BSCalendarRange,
|
|
5304
5465
|
_sfc_main$8 as BSCardLayout,
|
|
@@ -5311,7 +5472,8 @@ export {
|
|
|
5311
5472
|
_sfc_main$d as BSDateInputPopup,
|
|
5312
5473
|
_sfc_main$a as BSDateRange,
|
|
5313
5474
|
_sfc_main$b as BSDateRangeInputPopup,
|
|
5314
|
-
|
|
5475
|
+
_sfc_main$w as BSIcon,
|
|
5476
|
+
_sfc_main$u as BSLoadingIcon,
|
|
5315
5477
|
BSModal,
|
|
5316
5478
|
_sfc_main$6 as BSModalContainer,
|
|
5317
5479
|
_sfc_main$5 as BSModalFrame,
|
|
@@ -5353,6 +5515,7 @@ export {
|
|
|
5353
5515
|
focusLastElement,
|
|
5354
5516
|
formatUtil,
|
|
5355
5517
|
getComponentRootElement,
|
|
5518
|
+
getIcon,
|
|
5356
5519
|
getSelfIndex,
|
|
5357
5520
|
hideLoading,
|
|
5358
5521
|
hideTooltip,
|
|
@@ -5364,6 +5527,8 @@ export {
|
|
|
5364
5527
|
provideFieldContext,
|
|
5365
5528
|
provideModalHandle,
|
|
5366
5529
|
provideSavePoint,
|
|
5530
|
+
registerIcon,
|
|
5531
|
+
registerIcons,
|
|
5367
5532
|
showAlarm,
|
|
5368
5533
|
showLoading,
|
|
5369
5534
|
showLoadingIcon,
|