@dao-style/core 0.0.1-beta.1 → 0.0.1-beta.2

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.
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, computed, unref, resolveComponent, renderSlot, Fragment, createCommentVNode, ref, inject, watchEffect, mergeProps, createTextVNode, toDisplayString, provide, createVNode, toRefs, withCtx, watch, Transition, withModifiers, normalizeStyle, withKeys, withDirectives, vShow, getCurrentInstance, onMounted, onBeforeUnmount, Teleport, nextTick, renderList, reactive, vModelText, onUnmounted, h } from "vue";
20
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, computed, unref, resolveComponent, renderSlot, Fragment, createCommentVNode, createTextVNode, toDisplayString, ref, inject, watchEffect, mergeProps, provide, createVNode, toRefs, withCtx, watch, Transition, withModifiers, normalizeStyle, withKeys, withDirectives, vShow, getCurrentInstance, onMounted, onBeforeUnmount, Teleport, nextTick, reactive, vModelText, renderList, onUnmounted, h } from "vue";
21
21
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
22
22
  var buttonProps = {
23
23
  type: {
@@ -62,7 +62,7 @@ var _export_sfc = (sfc, props) => {
62
62
  }
63
63
  return sfc;
64
64
  };
65
- const _sfc_main$v = defineComponent({
65
+ const _sfc_main$B = defineComponent({
66
66
  name: "DaoIcon",
67
67
  props: {
68
68
  name: {
@@ -75,23 +75,23 @@ const _sfc_main$v = defineComponent({
75
75
  }
76
76
  }
77
77
  });
78
- const _hoisted_1$m = {
78
+ const _hoisted_1$s = {
79
79
  key: 1,
80
80
  class: "dao-icon"
81
81
  };
82
- const _hoisted_2$e = ["xlink:href"];
83
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
82
+ const _hoisted_2$j = ["xlink:href"];
83
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
84
84
  return _ctx.useFont ? (openBlock(), createElementBlock("i", {
85
85
  key: 0,
86
86
  class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
87
- }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$m, [
87
+ }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$s, [
88
88
  createElementVNode("use", {
89
89
  "xlink:href": `#${_ctx.name}`
90
- }, null, 8, _hoisted_2$e)
90
+ }, null, 8, _hoisted_2$j)
91
91
  ]));
92
92
  }
93
- var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$r]]);
94
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
93
+ var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$x]]);
94
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
95
95
  props: {
96
96
  useFont: {
97
97
  type: Boolean,
@@ -120,10 +120,10 @@ const NO_ICON = Symbol(0);
120
120
  const RIGHT_ICON = Symbol(1);
121
121
  const LEFT_ICON = Symbol(2);
122
122
  const BOTH_ICON = Symbol(3);
123
- const _sfc_main$t = defineComponent({
123
+ const _sfc_main$z = defineComponent({
124
124
  name: "DaoButton",
125
125
  components: {
126
- DaoButtonIcon: _sfc_main$u
126
+ DaoButtonIcon: _sfc_main$A
127
127
  },
128
128
  props: buttonProps,
129
129
  emits: ["click"],
@@ -207,12 +207,12 @@ const _sfc_main$t = defineComponent({
207
207
  };
208
208
  }
209
209
  });
210
- const _hoisted_1$l = ["disabled"];
211
- const _hoisted_2$d = {
210
+ const _hoisted_1$r = ["disabled"];
211
+ const _hoisted_2$i = {
212
212
  key: 1,
213
213
  class: "dao-btn__text"
214
214
  };
215
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
215
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
216
216
  const _component_dao_button_icon = resolveComponent("dao-button-icon");
217
217
  return openBlock(), createElementBlock("button", {
218
218
  class: normalizeClass(_ctx.classList),
@@ -225,7 +225,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
225
225
  "use-font": _ctx.isIconLeftFont,
226
226
  "icon-name": _ctx.realIconLeft
227
227
  }, null, 8, ["use-font", "icon-name"])) : createCommentVNode("", true),
228
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$d, [
228
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
229
229
  renderSlot(_ctx.$slots, "default")
230
230
  ])) : createCommentVNode("", true),
231
231
  _ctx.realIconRight ? (openBlock(), createBlock(_component_dao_button_icon, {
@@ -234,20 +234,105 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
234
234
  "icon-name": _ctx.realIconRight
235
235
  }, null, 8, ["use-font", "icon-name"])) : createCommentVNode("", true)
236
236
  ], 64))
237
- ], 10, _hoisted_1$l);
237
+ ], 10, _hoisted_1$r);
238
238
  }
239
- var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
239
+ var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
240
240
  var buttonGroup_vue_vue_type_style_index_0_lang = "";
241
- const _sfc_main$s = defineComponent({
241
+ const _sfc_main$y = defineComponent({
242
242
  name: "DaoButtonGroup"
243
243
  });
244
- const _hoisted_1$k = { class: "dao-btn-group" };
245
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
246
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
244
+ const _hoisted_1$q = { class: "dao-btn-group" };
245
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
246
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
247
247
  renderSlot(_ctx.$slots, "default")
248
248
  ]);
249
249
  }
250
- var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
250
+ var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
251
+ var card_scss_vue_type_style_index_0_src_lang = "";
252
+ const _sfc_main$x = defineComponent({
253
+ name: "DaoCard",
254
+ components: {
255
+ DaoIcon
256
+ },
257
+ props: {
258
+ type: {
259
+ type: String,
260
+ default: "standard"
261
+ },
262
+ icon: {
263
+ type: String,
264
+ default: void 0
265
+ },
266
+ useFont: {
267
+ type: Boolean,
268
+ default: false
269
+ },
270
+ title: {
271
+ type: String,
272
+ default: void 0
273
+ },
274
+ divider: {
275
+ type: Boolean,
276
+ default: false
277
+ }
278
+ }
279
+ });
280
+ const _hoisted_1$p = {
281
+ key: 0,
282
+ class: "dao-card-header"
283
+ };
284
+ const _hoisted_2$h = {
285
+ key: 0,
286
+ class: "dao-card-header-item"
287
+ };
288
+ const _hoisted_3$b = { class: "dao-card-header-item dao-card-header-title" };
289
+ const _hoisted_4$a = { class: "dao-card-header-item dao-card-header-action" };
290
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
291
+ const _component_dao_icon = resolveComponent("dao-icon");
292
+ return openBlock(), createElementBlock("div", {
293
+ class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
294
+ }, [
295
+ _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
296
+ renderSlot(_ctx.$slots, "header", {}, () => [
297
+ renderSlot(_ctx.$slots, "header-prefix"),
298
+ _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
299
+ renderSlot(_ctx.$slots, "icon", {}, () => [
300
+ _ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
301
+ key: 0,
302
+ class: "dao-card-header-icon",
303
+ name: _ctx.icon,
304
+ "use-font": _ctx.useFont
305
+ }, null, 8, ["name", "use-font"])) : createCommentVNode("", true)
306
+ ])
307
+ ])) : createCommentVNode("", true),
308
+ createElementVNode("div", _hoisted_3$b, [
309
+ renderSlot(_ctx.$slots, "title", {}, () => [
310
+ createTextVNode(toDisplayString(_ctx.title), 1)
311
+ ])
312
+ ]),
313
+ createElementVNode("div", _hoisted_4$a, [
314
+ renderSlot(_ctx.$slots, "action")
315
+ ]),
316
+ renderSlot(_ctx.$slots, "header-suffix")
317
+ ])
318
+ ])) : createCommentVNode("", true),
319
+ createElementVNode("div", {
320
+ class: normalizeClass(["dao-card-container", {
321
+ "dao-card-container-with-footer": !!_ctx.$slots.footer
322
+ }])
323
+ }, [
324
+ createElementVNode("div", {
325
+ class: normalizeClass(["dao-card-item-container", {
326
+ "dao-card-item-container-divider": _ctx.divider
327
+ }])
328
+ }, [
329
+ renderSlot(_ctx.$slots, "default")
330
+ ], 2),
331
+ renderSlot(_ctx.$slots, "footer")
332
+ ], 2)
333
+ ], 2);
334
+ }
335
+ var card = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
251
336
  function looseCompareArrays(a, b) {
252
337
  if (a.length !== b.length)
253
338
  return false;
@@ -331,9 +416,11 @@ const checkboxGroupModelValueKey = Symbol("checkboxGroupModelValueKey");
331
416
  const checkboxUpdateGroupModelValueFnKey = Symbol("checkboxUpdateGroupModelValueFnKey");
332
417
  const checkboxGroupChangeFnKey = Symbol("checkboxGroupChangeFnKey");
333
418
  const formLabelWidthKey = Symbol("formLabelWidthKey");
419
+ const navRootKey = Symbol("rootNav");
420
+ const navSubKey = Symbol("subNav");
334
421
  var checkbox_vue_vue_type_style_index_0_lang = "";
335
422
  const modelValueAny = [String, Number, Boolean, Symbol, Object, Set, Array];
336
- const _sfc_main$r = defineComponent({
423
+ const _sfc_main$w = defineComponent({
337
424
  name: "DaoCheckbox",
338
425
  props: {
339
426
  modelValue: {
@@ -466,21 +553,21 @@ const _sfc_main$r = defineComponent({
466
553
  }
467
554
  }
468
555
  });
469
- const _hoisted_1$j = ["disabled", "indeterminate", "checked"];
470
- const _hoisted_2$c = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
471
- const _hoisted_3$8 = {
556
+ const _hoisted_1$o = ["disabled", "indeterminate", "checked"];
557
+ const _hoisted_2$g = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
558
+ const _hoisted_3$a = {
472
559
  key: 0,
473
560
  class: "dao-checkbox__label"
474
561
  };
475
- const _hoisted_4$7 = {
562
+ const _hoisted_4$9 = {
476
563
  key: 0,
477
564
  class: "dao-checkbox__label-text"
478
565
  };
479
- const _hoisted_5$4 = {
566
+ const _hoisted_5$5 = {
480
567
  key: 1,
481
568
  class: "dao-checkbox__label-helper"
482
569
  };
483
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
570
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
484
571
  return openBlock(), createElementBlock("label", {
485
572
  class: normalizeClass(_ctx.wrapClasses)
486
573
  }, [
@@ -495,14 +582,14 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
495
582
  }, _ctx.$attrs, {
496
583
  checked: _ctx.currentChecked,
497
584
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
498
- }), null, 16, _hoisted_1$j),
499
- _hoisted_2$c
585
+ }), null, 16, _hoisted_1$o),
586
+ _hoisted_2$g
500
587
  ], 2),
501
- _ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$8, [
502
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
588
+ _ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$a, [
589
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
503
590
  renderSlot(_ctx.$slots, "default")
504
591
  ])) : createCommentVNode("", true),
505
- _ctx.hasHelper ? (openBlock(), createElementBlock("span", _hoisted_5$4, [
592
+ _ctx.hasHelper ? (openBlock(), createElementBlock("span", _hoisted_5$5, [
506
593
  renderSlot(_ctx.$slots, "helper", {}, () => [
507
594
  createTextVNode(toDisplayString(_ctx.helper), 1)
508
595
  ])
@@ -510,9 +597,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
510
597
  ])) : createCommentVNode("", true)
511
598
  ], 2);
512
599
  }
513
- var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
600
+ var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
514
601
  var checkboxGroup_vue_vue_type_style_index_0_lang = "";
515
- const _sfc_main$q = defineComponent({
602
+ const _sfc_main$v = defineComponent({
516
603
  name: "DaoCheckboxGroup",
517
604
  props: {
518
605
  modelValue: {
@@ -546,15 +633,15 @@ const _sfc_main$q = defineComponent({
546
633
  };
547
634
  }
548
635
  });
549
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
636
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
550
637
  return openBlock(), createElementBlock("div", {
551
638
  class: normalizeClass(_ctx.checkboxGroupClasses)
552
639
  }, [
553
640
  renderSlot(_ctx.$slots, "default")
554
641
  ], 2);
555
642
  }
556
- var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
557
- const _sfc_main$p = defineComponent({
643
+ var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
644
+ const _sfc_main$u = defineComponent({
558
645
  name: "DaoDialogHeader",
559
646
  components: {
560
647
  DaoIcon
@@ -577,10 +664,10 @@ const _sfc_main$p = defineComponent({
577
664
  };
578
665
  }
579
666
  });
580
- const _hoisted_1$i = { class: "dao-dialog-header" };
581
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
667
+ const _hoisted_1$n = { class: "dao-dialog-header" };
668
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
582
669
  const _component_dao_icon = resolveComponent("dao-icon");
583
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
670
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
584
671
  renderSlot(_ctx.$slots, "default", {}, () => [
585
672
  createElementVNode("span", {
586
673
  class: normalizeClass({ "center": !_ctx.showClose })
@@ -603,8 +690,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
603
690
  ])
604
691
  ]);
605
692
  }
606
- var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
607
- const _sfc_main$o = defineComponent({
693
+ var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
694
+ const _sfc_main$t = defineComponent({
608
695
  name: "DaoDialogFooter",
609
696
  components: {
610
697
  DaoButton
@@ -640,10 +727,10 @@ const _sfc_main$o = defineComponent({
640
727
  };
641
728
  }
642
729
  });
643
- const _hoisted_1$h = { class: "dao-dialog-footer" };
644
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
730
+ const _hoisted_1$m = { class: "dao-dialog-footer" };
731
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
645
732
  const _component_dao_button = resolveComponent("dao-button");
646
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
733
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
647
734
  renderSlot(_ctx.$slots, "default", {}, () => [
648
735
  createVNode(_component_dao_button, {
649
736
  type: "secondary",
@@ -668,13 +755,13 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
668
755
  ])
669
756
  ]);
670
757
  }
671
- var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
758
+ var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
672
759
  var dialog_scss_vue_type_style_index_0_src_lang = "";
673
760
  const DIALOG_NUM_ATTR = "dao-dialog-num";
674
761
  const DIALOG_MINIMUM_PADDING = "20px";
675
762
  const DIALOG_DEFAULT_PADDING_TOP = "100px";
676
763
  const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
677
- const _sfc_main$n = defineComponent({
764
+ const _sfc_main$s = defineComponent({
678
765
  name: "DaoDialog",
679
766
  components: {
680
767
  DialogHeader,
@@ -850,8 +937,8 @@ const _sfc_main$n = defineComponent({
850
937
  };
851
938
  }
852
939
  });
853
- const _hoisted_1$g = { class: "dao-dialog-body" };
854
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
940
+ const _hoisted_1$l = { class: "dao-dialog-body" };
941
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
855
942
  const _component_dialog_header = resolveComponent("dialog-header");
856
943
  const _component_dialog_footer = resolveComponent("dialog-footer");
857
944
  return openBlock(), createBlock(Transition, {
@@ -886,7 +973,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
886
973
  ]),
887
974
  _: 3
888
975
  }, 8, ["title", "show-close", "onClose"])) : createCommentVNode("", true),
889
- createElementVNode("div", _hoisted_1$g, [
976
+ createElementVNode("div", _hoisted_1$l, [
890
977
  renderSlot(_ctx.$slots, "default")
891
978
  ]),
892
979
  _ctx.footer ? (openBlock(), createBlock(_component_dialog_footer, {
@@ -908,7 +995,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
908
995
  _: 3
909
996
  }, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
910
997
  }
911
- var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$k]]);
998
+ var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
912
999
  var top = "top";
913
1000
  var bottom = "bottom";
914
1001
  var right = "right";
@@ -2107,7 +2194,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
2107
2194
  var createPopper = /* @__PURE__ */ popperGenerator({
2108
2195
  defaultModifiers
2109
2196
  });
2110
- const _sfc_main$m = defineComponent({
2197
+ const _sfc_main$r = defineComponent({
2111
2198
  name: "PopperContent",
2112
2199
  props: {
2113
2200
  popperId: {
@@ -2155,12 +2242,12 @@ const _sfc_main$m = defineComponent({
2155
2242
  };
2156
2243
  }
2157
2244
  });
2158
- const _hoisted_1$f = ["id", "aria-hidden", "tabindex"];
2159
- const _hoisted_2$b = {
2245
+ const _hoisted_1$k = ["id", "aria-hidden", "tabindex"];
2246
+ const _hoisted_2$f = {
2160
2247
  ref: "arrow",
2161
2248
  class: "dao-popper-arrow"
2162
2249
  };
2163
- const _hoisted_3$7 = /* @__PURE__ */ createElementVNode("svg", {
2250
+ const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
2164
2251
  class: "dao-popper-arrow-viewbox",
2165
2252
  viewBox: "0 0 30 30"
2166
2253
  }, [
@@ -2174,10 +2261,10 @@ const _hoisted_3$7 = /* @__PURE__ */ createElementVNode("svg", {
2174
2261
  d: "M9.387 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"
2175
2262
  })
2176
2263
  ], -1);
2177
- const _hoisted_4$6 = [
2178
- _hoisted_3$7
2264
+ const _hoisted_4$8 = [
2265
+ _hoisted_3$9
2179
2266
  ];
2180
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2267
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2181
2268
  return openBlock(), createElementBlock("div", {
2182
2269
  id: _ctx.popperId,
2183
2270
  ref: "popover",
@@ -2196,12 +2283,12 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2196
2283
  }, [
2197
2284
  renderSlot(_ctx.$slots, "default")
2198
2285
  ], 4),
2199
- withDirectives(createElementVNode("div", _hoisted_2$b, _hoisted_4$6, 512), [
2286
+ withDirectives(createElementVNode("div", _hoisted_2$f, _hoisted_4$8, 512), [
2200
2287
  [vShow, _ctx.visibleArrow]
2201
2288
  ])
2202
- ], 42, _hoisted_1$f);
2289
+ ], 42, _hoisted_1$k);
2203
2290
  }
2204
- var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$j]]);
2291
+ var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
2205
2292
  var PopperProps = {
2206
2293
  modelValue: {
2207
2294
  type: Boolean,
@@ -2291,7 +2378,7 @@ function updatePopperOptions(popperInstance, modifiers, popperOptions = {}) {
2291
2378
  });
2292
2379
  });
2293
2380
  }
2294
- const _sfc_main$l = defineComponent({
2381
+ const _sfc_main$q = defineComponent({
2295
2382
  name: "DaoPopper",
2296
2383
  components: {
2297
2384
  PopperContent
@@ -2641,7 +2728,7 @@ const _sfc_main$l = defineComponent({
2641
2728
  };
2642
2729
  }
2643
2730
  });
2644
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2731
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2645
2732
  const _component_popper_content = resolveComponent("popper-content");
2646
2733
  return openBlock(), createElementBlock("div", {
2647
2734
  ref: "reference",
@@ -2683,11 +2770,11 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2683
2770
  ], 8, ["to", "disabled"]))
2684
2771
  ], 2);
2685
2772
  }
2686
- var DaoPopper = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$i]]);
2687
- const _sfc_main$k = defineComponent({
2773
+ var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
2774
+ const _sfc_main$p = defineComponent({
2688
2775
  name: "DaoDropdown",
2689
2776
  components: {
2690
- DaoPopper
2777
+ DaoPopper: Popper
2691
2778
  },
2692
2779
  props: {
2693
2780
  trigger: {
@@ -2740,8 +2827,8 @@ const _sfc_main$k = defineComponent({
2740
2827
  };
2741
2828
  }
2742
2829
  });
2743
- const _hoisted_1$e = { tabindex: "0" };
2744
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2830
+ const _hoisted_1$j = { tabindex: "0" };
2831
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2745
2832
  const _component_dao_popper = resolveComponent("dao-popper");
2746
2833
  return openBlock(), createBlock(_component_dao_popper, {
2747
2834
  ref: "popper",
@@ -2757,27 +2844,27 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2757
2844
  renderSlot(_ctx.$slots, "menu")
2758
2845
  ]),
2759
2846
  default: withCtx(() => [
2760
- createElementVNode("div", _hoisted_1$e, [
2847
+ createElementVNode("div", _hoisted_1$j, [
2761
2848
  renderSlot(_ctx.$slots, "default")
2762
2849
  ])
2763
2850
  ]),
2764
2851
  _: 3
2765
2852
  }, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
2766
2853
  }
2767
- var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$h]]);
2854
+ var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
2768
2855
  var dropdownMenu_vue_vue_type_style_index_0_lang = "";
2769
- const _sfc_main$j = defineComponent({
2856
+ const _sfc_main$o = defineComponent({
2770
2857
  name: "DaoDropdownMenu"
2771
2858
  });
2772
- const _hoisted_1$d = { class: "dao-dropdown-menu" };
2773
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
2774
- return openBlock(), createElementBlock("ul", _hoisted_1$d, [
2859
+ const _hoisted_1$i = { class: "dao-dropdown-menu" };
2860
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2861
+ return openBlock(), createElementBlock("ul", _hoisted_1$i, [
2775
2862
  renderSlot(_ctx.$slots, "default")
2776
2863
  ]);
2777
2864
  }
2778
- var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$g]]);
2865
+ var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
2779
2866
  var dropdownItem_vue_vue_type_style_index_0_lang = "";
2780
- const _sfc_main$i = defineComponent({
2867
+ const _sfc_main$n = defineComponent({
2781
2868
  name: "DaoDropdownItem",
2782
2869
  props: {
2783
2870
  type: {
@@ -2826,14 +2913,14 @@ const _sfc_main$i = defineComponent({
2826
2913
  };
2827
2914
  }
2828
2915
  });
2829
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2916
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2830
2917
  return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
2831
2918
  _ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
2832
2919
  ], 16);
2833
2920
  }
2834
- var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$f]]);
2921
+ var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$k]]);
2835
2922
  var form_vue_vue_type_style_index_0_lang = "";
2836
- const _sfc_main$h = defineComponent({
2923
+ const _sfc_main$m = defineComponent({
2837
2924
  name: "DaoForm",
2838
2925
  props: {
2839
2926
  type: {
@@ -2851,7 +2938,7 @@ const _sfc_main$h = defineComponent({
2851
2938
  provide(formLabelWidthKey, labelWidth.value);
2852
2939
  }
2853
2940
  });
2854
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
2941
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2855
2942
  return openBlock(), createElementBlock("div", {
2856
2943
  class: normalizeClass([
2857
2944
  "dao-form",
@@ -2871,18 +2958,18 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
2871
2958
  } })
2872
2959
  ], 2);
2873
2960
  }
2874
- var form = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$e]]);
2961
+ var form = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$j]]);
2875
2962
  var tooltip_scss_vue_type_style_index_0_src_lang = "";
2876
- const _sfc_main$g = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
2963
+ const _sfc_main$l = defineComponent(__spreadProps(__spreadValues({}, Popper), {
2877
2964
  name: "DaoTooltip",
2878
2965
  props: PopperProps,
2879
2966
  daoPopperTheme: "dao-tooltip"
2880
2967
  }));
2881
2968
  var formItem_vue_vue_type_style_index_0_lang = "";
2882
- const _sfc_main$f = defineComponent({
2969
+ const _sfc_main$k = defineComponent({
2883
2970
  name: "DaoFormItem",
2884
2971
  components: {
2885
- DaoTooltip: _sfc_main$g
2972
+ DaoTooltip: _sfc_main$l
2886
2973
  },
2887
2974
  props: {
2888
2975
  label: {
@@ -2927,30 +3014,30 @@ const _sfc_main$f = defineComponent({
2927
3014
  };
2928
3015
  }
2929
3016
  });
2930
- const _hoisted_1$c = { class: "dao-form-item" };
2931
- const _hoisted_2$a = {
3017
+ const _hoisted_1$h = { class: "dao-form-item" };
3018
+ const _hoisted_2$e = {
2932
3019
  key: 0,
2933
3020
  class: "dao-form-item__label-icon-wrapper"
2934
3021
  };
2935
- const _hoisted_3$6 = { class: "dao-form-item__label-icon-label" };
2936
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
2937
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3022
+ const _hoisted_3$8 = { class: "dao-form-item__label-icon-label" };
3023
+ const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3024
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2938
3025
  const _component_dao_tooltip = resolveComponent("dao-tooltip");
2939
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
3026
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
2940
3027
  createElementVNode("div", {
2941
3028
  class: "dao-form-item__label",
2942
3029
  style: normalizeStyle(_ctx.labelStyle)
2943
3030
  }, [
2944
3031
  renderSlot(_ctx.$slots, "label", {}, () => [
2945
3032
  createTextVNode(toDisplayString(!_ctx.iconMessage ? _ctx.label : ""), 1),
2946
- !!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
2947
- createElementVNode("span", _hoisted_3$6, toDisplayString(_ctx.label), 1),
3033
+ !!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
3034
+ createElementVNode("span", _hoisted_3$8, toDisplayString(_ctx.label), 1),
2948
3035
  createVNode(_component_dao_tooltip, {
2949
3036
  content: _ctx.iconMessage,
2950
3037
  placement: "top"
2951
3038
  }, {
2952
3039
  default: withCtx(() => [
2953
- _hoisted_4$5
3040
+ _hoisted_4$7
2954
3041
  ]),
2955
3042
  _: 1
2956
3043
  }, 8, ["content"])
@@ -2965,9 +3052,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2965
3052
  ], 4)
2966
3053
  ]);
2967
3054
  }
2968
- var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
3055
+ var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
2969
3056
  var formGroup_vue_vue_type_style_index_0_lang = "";
2970
- const _sfc_main$e = defineComponent({
3057
+ const _sfc_main$j = defineComponent({
2971
3058
  name: "DaoFormGroup",
2972
3059
  props: {
2973
3060
  title: {
@@ -2976,11 +3063,11 @@ const _sfc_main$e = defineComponent({
2976
3063
  }
2977
3064
  }
2978
3065
  });
2979
- const _hoisted_1$b = { class: "dao-form-group" };
2980
- const _hoisted_2$9 = { class: "dao-form-group__title" };
2981
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2982
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
2983
- createElementVNode("div", _hoisted_2$9, [
3066
+ const _hoisted_1$g = { class: "dao-form-group" };
3067
+ const _hoisted_2$d = { class: "dao-form-group__title" };
3068
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3069
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
3070
+ createElementVNode("div", _hoisted_2$d, [
2984
3071
  renderSlot(_ctx.$slots, "title", {}, () => [
2985
3072
  createTextVNode(toDisplayString(_ctx.title), 1)
2986
3073
  ])
@@ -2988,17 +3075,17 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2988
3075
  renderSlot(_ctx.$slots, "default")
2989
3076
  ]);
2990
3077
  }
2991
- var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
3078
+ var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
2992
3079
  if (typeof window !== "undefined") {
2993
3080
  let loadSvg = function() {
2994
3081
  let body = document.body;
2995
- let svgDom = document.getElementById("__svg__icons__dom__1642736420206__");
3082
+ let svgDom = document.getElementById("__svg__icons__dom__1643091635379__");
2996
3083
  if (!svgDom) {
2997
3084
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2998
3085
  svgDom.style.position = "absolute";
2999
3086
  svgDom.style.width = "0";
3000
3087
  svgDom.style.height = "0";
3001
- svgDom.id = "__svg__icons__dom__1642736420206__";
3088
+ svgDom.id = "__svg__icons__dom__1643091635379__";
3002
3089
  }
3003
3090
  svgDom.innerHTML = '<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-down"><path d="m2.97 10.03 4.5 4.5a.749.749 0 0 0 1.06 0l4.5-4.5a.75.75 0 0 0-1.06-1.06L9 11.939V2a1 1 0 0 0-2 0v9.939L4.03 8.97a.75.75 0 1 0-1.06 1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-left"><path d="m5.97 2.97-4.5 4.5a.749.749 0 0 0 0 1.06l4.5 4.5a.75.75 0 0 0 1.06-1.06L4.061 9H14a1 1 0 0 0 0-2H4.061L7.03 4.03a.75.75 0 1 0-1.06-1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-right"><path d="m10.03 13.03 4.5-4.5a.749.749 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L11.939 7H2a1 1 0 0 0 0 2h9.939L8.97 11.97a.75.75 0 0 0 1.06 1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-up"><path d="m13.03 5.97-4.5-4.5a.749.749 0 0 0-1.06 0l-4.5 4.5a.75.75 0 1 0 1.06 1.06L7 4.061V14a1 1 0 0 0 2 0V4.061l2.97 2.969a.75.75 0 0 0 1.06-1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-down"><path d="M8 10.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 8.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-left"><path d="M5.25 8a.747.747 0 0 1 .22-.53l3.5-3.5a.75.75 0 0 1 1.06 1.06L7.061 8l2.97 2.97a.75.75 0 1 1-1.061 1.06l-3.5-3.5A.747.747 0 0 1 5.25 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-more"><path d="M13.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L11.939 8 8.97 5.03a.75.75 0 1 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53ZM7.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L5.939 8 2.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-right"><path d="M10.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L8.939 8 5.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-select"><path d="M8 14.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 12.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22ZM8 1.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 3.061 5.03 6.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 1.25Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-up"><path d="M8 5.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 7.061 5.03 10.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 5.25Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_close"><path d="m9.414 8 4.453-4.453a1 1 0 1 0-1.414-1.414L8 6.586 3.547 2.133a1 1 0 0 0-1.414 1.414L6.586 8l-4.453 4.453a1 1 0 1 0 1.414 1.414L8 9.414l4.453 4.453a1 1 0 0 0 1.414-1.414Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_reload"><path d="M15 7V1l-2.055 2.055a7 7 0 1 0 1.649 7.279 1 1 0 0 0-1.885-.668 5 5 0 1 1-1.177-5.2L9 7Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_search"><path d="m15.03 13.97-3.975-3.975a5.772 5.772 0 1 0-1.06 1.06l3.975 3.975a.75.75 0 0 0 1.06-1.06ZM1.75 6.5a4.75 4.75 0 1 1 4.75 4.75A4.75 4.75 0 0 1 1.75 6.5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_setting"><path d="M15.6 6.75h-2.335a.614.614 0 0 1-.572-.423 4.764 4.764 0 0 0-.192-.461.615.615 0 0 1 .105-.7l1.652-1.656a.4.4 0 0 0 0-.566l-1.2-1.2a.4.4 0 0 0-.566 0l-1.653 1.65a.616.616 0 0 1-.7.1 4.764 4.764 0 0 0-.461-.192.614.614 0 0 1-.423-.572V.4a.4.4 0 0 0-.4-.4H7.15a.4.4 0 0 0-.4.4v2.335a.614.614 0 0 1-.423.572 4.764 4.764 0 0 0-.461.192.616.616 0 0 1-.7-.1L3.51 1.742a.4.4 0 0 0-.566 0l-1.2 1.2a.4.4 0 0 0 0 .566l1.65 1.653a.615.615 0 0 1 .1.705 4.764 4.764 0 0 0-.192.461.614.614 0 0 1-.572.423H.4a.4.4 0 0 0-.4.4v1.7a.4.4 0 0 0 .4.4h2.335a.614.614 0 0 1 .572.423 4.764 4.764 0 0 0 .192.461.615.615 0 0 1-.1.705L1.742 12.49a.4.4 0 0 0 0 .566l1.2 1.2a.4.4 0 0 0 .566 0l1.651-1.652a.615.615 0 0 1 .705-.105 4.764 4.764 0 0 0 .461.192.614.614 0 0 1 .423.572V15.6a.4.4 0 0 0 .4.4h1.7a.4.4 0 0 0 .4-.4v-2.335a.614.614 0 0 1 .423-.572 4.764 4.764 0 0 0 .461-.192.615.615 0 0 1 .705.105l1.651 1.652a.4.4 0 0 0 .566 0l1.2-1.2a.4.4 0 0 0 0-.566l-1.652-1.651a.615.615 0 0 1-.105-.7 4.764 4.764 0 0 0 .192-.461.614.614 0 0 1 .572-.423H15.6a.4.4 0 0 0 .4-.4V7.15a.4.4 0 0 0-.4-.4ZM8 10a2 2 0 1 1 2-2 2 2 0 0 1-2 2Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_trash"><path d="M6 5h1v8H6zM9 5h1v8H9z" /><path d="M13 2h-2V1a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H3a1 1 0 0 0-1 1v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3a1 1 0 0 0-1-1ZM6 1h4v1H6Zm6 13H4V4h8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-down"><path d="M4 6h8l-4 5-4-5z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-left"><path d="M10 4v8L5 8l5-4z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-right"><path d="M6 12V4l5 4-5 4z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-up"><path d="M12 10H4l4-5 4 5z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_close-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm3.03 9.47a.75.75 0 1 1-1.06 1.06L8 9.061 6.03 11.03a.75.75 0 0 1-1.06-1.06L6.939 8 4.97 6.03a.75.75 0 0 1 1.06-1.06L8 6.939 9.97 4.97a.75.75 0 0 1 1.06 1.06L9.061 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_goto"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm0 11V9H4V7h4V4.5L12.4 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_info-line"><path d="M9 11V7H6v.7h1V11H6v1h4v-1H9z" /><circle cx="8" cy="5" r="1.1" /><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_minus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H4V7h8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_more"><circle cx="14" cy="8" r="2" /><circle cx="8" cy="8" r="2" /><circle cx="2" cy="8" r="2" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_plus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H9v3H7V9H4V7h3V4h2v3h3Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_question-line"><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /><path d="M7 11h2v2H7zM8.75 10v-.5c.005-1.335 2.005-1.47 2-3.615A2.719 2.719 0 0 0 8 3.25 2.752 2.752 0 0 0 5.25 6h1.5a1.251 1.251 0 0 1 2.5-.052 1.614 1.614 0 0 1-.727 1.206A2.881 2.881 0 0 0 7.25 9.5v.5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-binary"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM4 6v5h3V6Zm2 4H5V7h1ZM11 10V6H9v1h1v3H9v1h3v-1h-1z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-code"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM6.5 11a.5.5 0 0 1-.354-.146l-2-2a.5.5 0 0 1 0-.708l2-2a.5.5 0 0 1 .708.708L5.207 8.5l1.647 1.646A.5.5 0 0 1 6.5 11ZM9.5 11a.5.5 0 0 1-.354-.854L10.793 8.5 9.146 6.854a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2A.5.5 0 0 1 9.5 11Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-picture"><circle cx="10" cy="7" r="1" /><path d="M13 14v-2.25l-2-2-1.5 1.5-3-3-3.5 3.5V14h10z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-text"><path d="M5 6h6v1H5zM5 8h6v1H5zM5 10h6v1H5z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-zip"><path d="M7 2h1v1H7zM6 3h1v1H6zM7 4h1v1H7zM6 5h1v1H6zM7 6h1v1H7zM8.692 8.692 8 8H7V7H6v1l-.692.692A1.051 1.051 0 0 0 5 9.435V10.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V9.435a1.051 1.051 0 0 0-.308-.743ZM8 10H6V9h2Z" /><path d="M14 4v11H2V1h4v1h1V1h4V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" id="icon_checkmark-symbol"><path d="m2.466 7.29 1.016-1.152 2.515 2.527 5.359-5.634.83.729-6.182 7.734L2.466 7.29z" /></symbol>';
3004
3091
  body.insertBefore(svgDom, body.firstChild);
@@ -3010,7 +3097,7 @@ if (typeof window !== "undefined") {
3010
3097
  }
3011
3098
  }
3012
3099
  var input_vue_vue_type_style_index_0_lang = "";
3013
- const _sfc_main$d = defineComponent({
3100
+ const _sfc_main$i = defineComponent({
3014
3101
  name: "DaoInput",
3015
3102
  inheritAttrs: false,
3016
3103
  props: {
@@ -3155,32 +3242,32 @@ const _sfc_main$d = defineComponent({
3155
3242
  };
3156
3243
  }
3157
3244
  });
3158
- const _hoisted_1$a = {
3245
+ const _hoisted_1$f = {
3159
3246
  key: 0,
3160
3247
  class: "dao-input-prepend"
3161
3248
  };
3162
- const _hoisted_2$8 = { class: "dao-input-inner" };
3163
- const _hoisted_3$5 = {
3249
+ const _hoisted_2$c = { class: "dao-input-inner" };
3250
+ const _hoisted_3$7 = {
3164
3251
  key: 0,
3165
3252
  class: "dao-input-prefix"
3166
3253
  };
3167
- const _hoisted_4$4 = ["type", "disabled", "value"];
3168
- const _hoisted_5$3 = {
3254
+ const _hoisted_4$6 = ["type", "disabled", "value"];
3255
+ const _hoisted_5$4 = {
3169
3256
  key: 2,
3170
3257
  class: "dao-input-suffix"
3171
3258
  };
3172
- const _hoisted_6$2 = {
3259
+ const _hoisted_6$3 = {
3173
3260
  key: 1,
3174
3261
  class: "dao-input-append"
3175
3262
  };
3176
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3263
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3177
3264
  return openBlock(), createElementBlock("div", {
3178
3265
  class: normalizeClass(_ctx.wrapClasses)
3179
3266
  }, [
3180
3267
  renderSlot(_ctx.$slots, "prepend"),
3181
- _ctx.prepend && !_ctx.slots.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$a, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true),
3182
- createElementVNode("div", _hoisted_2$8, [
3183
- _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
3268
+ _ctx.prepend && !_ctx.slots.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$f, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true),
3269
+ createElementVNode("div", _hoisted_2$c, [
3270
+ _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
3184
3271
  renderSlot(_ctx.$slots, "prefix")
3185
3272
  ])) : createCommentVNode("", true),
3186
3273
  _ctx.type === "search" ? (openBlock(), createElementBlock("i", {
@@ -3195,7 +3282,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3195
3282
  disabled: _ctx.disabled,
3196
3283
  value: _ctx.currentValue,
3197
3284
  onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
3198
- }), null, 16, _hoisted_4$4),
3285
+ }), null, 16, _hoisted_4$6),
3199
3286
  withDirectives(createElementVNode("i", {
3200
3287
  class: normalizeClass(["dao-input-close-icon", "icon-close", { active: _ctx.isFocus }]),
3201
3288
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.resetCurrentVal())
@@ -3207,269 +3294,692 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3207
3294
  }, null, 2), [
3208
3295
  [vShow, ["error", "success", "loading"].includes(_ctx.status)]
3209
3296
  ]),
3210
- _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
3297
+ _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
3211
3298
  renderSlot(_ctx.$slots, "suffix")
3212
3299
  ])) : createCommentVNode("", true)
3213
3300
  ]),
3214
3301
  renderSlot(_ctx.$slots, "append"),
3215
- _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_6$2, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3302
+ _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3216
3303
  ], 2);
3217
3304
  }
3218
- var input = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
3219
- var popover_scss_vue_type_style_index_0_src_lang = "";
3220
- const _sfc_main$c = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
3221
- name: "DaoPopover",
3222
- props: PopperProps,
3223
- daoPopperTheme: "dao-popover"
3224
- }));
3225
- var progress_vue_vue_type_style_index_0_lang = "";
3226
- const _sfc_main$b = defineComponent({
3227
- name: "DaoProgress",
3228
- props: {
3229
- value: {
3230
- type: Number,
3231
- default: 0,
3232
- validator: (val) => val >= 0 && val <= 100
3233
- },
3234
- bgColor: {
3235
- type: String,
3236
- default: "#ebeef5"
3237
- },
3238
- fill: {
3239
- type: [Array, String],
3240
- default: "#409eff"
3241
- }
3305
+ var input = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
3306
+ var MessageProps = {
3307
+ modelValue: {
3308
+ type: Boolean,
3309
+ default: void 0
3242
3310
  },
3243
- setup(props) {
3244
- const { fill } = toRefs(props);
3245
- const type = computed(() => typeof fill.value === "string" ? "line" : "stacked");
3246
- const stackedStyles = computed(() => {
3247
- if (Array.isArray(fill.value)) {
3248
- return fill.value.map((fillColor) => {
3249
- if (typeof fillColor === "string") {
3250
- const stackedLen = fill.value.length;
3251
- return {
3252
- width: `${100 / stackedLen}%`,
3253
- background: fillColor
3254
- };
3255
- }
3256
- if (typeof fillColor === "object") {
3257
- return {
3258
- width: `${fillColor.percent}%`,
3259
- background: fillColor.color
3260
- };
3261
- }
3262
- return {};
3263
- });
3311
+ type: {
3312
+ type: String,
3313
+ default: "info"
3314
+ },
3315
+ title: {
3316
+ type: String,
3317
+ default: ""
3318
+ },
3319
+ content: {
3320
+ type: String,
3321
+ default: ""
3322
+ },
3323
+ isCloseShow: {
3324
+ type: Boolean,
3325
+ default: true
3326
+ }
3327
+ };
3328
+ var message_vue_vue_type_style_index_0_lang = "";
3329
+ const _sfc_main$h = defineComponent({
3330
+ name: "DaoMessage",
3331
+ props: MessageProps,
3332
+ emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
3333
+ setup(props, { emit }) {
3334
+ const typeClass = computed(() => `dao-message--${props.type}`);
3335
+ const _isMessageShow = ref(true);
3336
+ const isMessageShow = computed(() => {
3337
+ if (props.modelValue !== void 0) {
3338
+ return props.modelValue;
3264
3339
  }
3265
- return [];
3340
+ return unref(_isMessageShow);
3341
+ });
3342
+ function closeMessage() {
3343
+ if (!props.isCloseShow) {
3344
+ return;
3345
+ }
3346
+ if (props.modelValue !== void 0) {
3347
+ emit("update:modelValue", false);
3348
+ } else {
3349
+ _isMessageShow.value = false;
3350
+ }
3351
+ }
3352
+ let isMessageMounted = false;
3353
+ watch(isMessageShow, async (val) => {
3354
+ if (!val && isMessageMounted) {
3355
+ emit("beforeClose");
3356
+ await nextTick();
3357
+ emit("closed");
3358
+ } else if (val) {
3359
+ emit("beforeShow");
3360
+ await nextTick();
3361
+ emit("show");
3362
+ }
3363
+ }, {
3364
+ immediate: true
3365
+ });
3366
+ onMounted(() => {
3367
+ isMessageMounted = true;
3266
3368
  });
3267
- const stackedBgColor = computed(() => typeof fill.value === "string" ? fill.value : "");
3268
3369
  return {
3269
- type,
3270
- stackedStyles,
3271
- stackedBgColor
3370
+ typeClass,
3371
+ closeMessage,
3372
+ isMessageShow
3272
3373
  };
3273
3374
  }
3274
3375
  });
3275
- const _hoisted_1$9 = { class: "dao-progress" };
3276
- const _hoisted_2$7 = {
3277
- key: 1,
3278
- class: "dao-progress__stacked"
3376
+ const _hoisted_1$e = { class: "dao-message-icon" };
3377
+ const _hoisted_2$b = { class: "dao-message-section" };
3378
+ const _hoisted_3$6 = {
3379
+ key: 0,
3380
+ class: "dao-message-title"
3279
3381
  };
3280
- const _hoisted_3$4 = {
3382
+ const _hoisted_4$5 = {
3281
3383
  key: 0,
3282
- class: "dao-progress__text"
3384
+ class: "dao-message-content"
3283
3385
  };
3284
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3285
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
3286
- createElementVNode("div", {
3287
- class: "dao-progress__inner",
3288
- style: normalizeStyle({ background: _ctx.bgColor })
3289
- }, [
3290
- _ctx.type === "line" ? (openBlock(), createElementBlock("div", {
3291
- key: 0,
3292
- class: "dao-progress__bar",
3293
- style: normalizeStyle({ width: `${_ctx.value}%`, background: _ctx.stackedBgColor })
3294
- }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
3295
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stackedStyles, (stackedStyle, idx) => {
3296
- return openBlock(), createElementBlock("div", {
3297
- key: idx,
3298
- class: "dao-progress__stacked-item",
3299
- style: normalizeStyle(stackedStyle)
3300
- }, null, 4);
3301
- }), 128))
3302
- ]))
3303
- ], 4),
3304
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
3305
- renderSlot(_ctx.$slots, "default")
3306
- ])) : createCommentVNode("", true)
3307
- ]);
3386
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3387
+ return _ctx.isMessageShow ? (openBlock(), createElementBlock("div", {
3388
+ key: 0,
3389
+ class: normalizeClass(["dao-message-outer", _ctx.typeClass]),
3390
+ tabindex: "1",
3391
+ onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.closeMessage && _ctx.closeMessage(...args), ["self"]), ["esc"]))
3392
+ }, [
3393
+ renderSlot(_ctx.$slots, "main", {}, () => [
3394
+ createElementVNode("div", {
3395
+ class: normalizeClass(["dao-message-inner", { "dao-message-inner-without-close": !_ctx.isCloseShow }])
3396
+ }, [
3397
+ createElementVNode("div", _hoisted_1$e, [
3398
+ renderSlot(_ctx.$slots, "icon", {}, () => [
3399
+ createElementVNode("i", {
3400
+ class: normalizeClass(`icon-sys-${_ctx.type} dao-message-icon-general dao-message-icon-${_ctx.type}`)
3401
+ }, null, 2)
3402
+ ])
3403
+ ]),
3404
+ createElementVNode("div", _hoisted_2$b, [
3405
+ renderSlot(_ctx.$slots, "section", {}, () => [
3406
+ renderSlot(_ctx.$slots, "title", { className: "dao-message-title" }, () => [
3407
+ _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
3408
+ ]),
3409
+ renderSlot(_ctx.$slots, "default", { className: "dao-message-content" }, () => [
3410
+ _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$5, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
3411
+ ])
3412
+ ])
3413
+ ]),
3414
+ _ctx.isCloseShow ? (openBlock(), createElementBlock("i", {
3415
+ key: 0,
3416
+ class: "icon-close dao-message-close",
3417
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.closeMessage && _ctx.closeMessage(...args))
3418
+ })) : createCommentVNode("", true)
3419
+ ], 2)
3420
+ ])
3421
+ ], 34)) : createCommentVNode("", true);
3308
3422
  }
3309
- var progress = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
3310
- var radio_vue_vue_type_style_index_0_lang = "";
3311
- const _sfc_main$a = defineComponent({
3312
- name: "DaoRadio",
3313
- props: {
3314
- modelValue: {
3315
- type: [String, Number, Boolean],
3316
- default: false
3317
- },
3318
- value: {
3319
- type: [String, Number, Boolean],
3320
- required: true,
3321
- default: ""
3322
- },
3323
- label: {
3324
- type: String,
3325
- default: ""
3326
- },
3327
- disabled: {
3328
- type: Boolean,
3329
- default: false
3330
- },
3331
- name: {
3332
- type: String,
3333
- default: ""
3334
- }
3423
+ var message = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]);
3424
+ const NAV_TYPES = ["2rd", "3rd"];
3425
+ const navProps = {
3426
+ accordion: {
3427
+ type: Boolean,
3428
+ default: false
3335
3429
  },
3336
- emits: ["update:modelValue", "change"],
3337
- setup(props, { emit }) {
3338
- const { value, disabled } = toRefs(props);
3339
- const radioGroup2 = inject(radioGroupKey, void 0);
3340
- const isGroup = computed(() => !!radioGroup2);
3341
- const modelValue = computed(() => isGroup.value ? radioGroup2 == null ? void 0 : radioGroup2.modelValue : props.modelValue);
3342
- const currentValue = ref(modelValue.value === value.value);
3343
- const wrapClasses = computed(() => [
3344
- "dao-radio-wrapper",
3345
- {
3346
- "dao-radio-wrapper--disabled": disabled.value
3430
+ activeOpened: {
3431
+ type: Array,
3432
+ default: () => []
3433
+ },
3434
+ type: {
3435
+ type: String,
3436
+ default: "2rd",
3437
+ validator: (value) => NAV_TYPES.includes(value)
3438
+ }
3439
+ };
3440
+ const navHeadProps = {
3441
+ icon: {
3442
+ type: String,
3443
+ default: ""
3444
+ },
3445
+ title: {
3446
+ type: String,
3447
+ default: ""
3448
+ },
3449
+ useFont: {
3450
+ type: Boolean,
3451
+ default: false
3452
+ }
3453
+ };
3454
+ const navSubProps = {
3455
+ disabled: {
3456
+ type: Boolean,
3457
+ default: false
3458
+ },
3459
+ fold: {
3460
+ type: Boolean,
3461
+ default: true
3462
+ },
3463
+ isActive: {
3464
+ type: Boolean,
3465
+ default: false
3466
+ },
3467
+ isExactActive: {
3468
+ type: Boolean,
3469
+ default: false
3470
+ },
3471
+ icon: {
3472
+ type: String,
3473
+ default: ""
3474
+ },
3475
+ index: {
3476
+ type: [String, Number],
3477
+ default: ""
3478
+ },
3479
+ title: {
3480
+ type: String,
3481
+ default: ""
3482
+ },
3483
+ useFont: {
3484
+ type: Boolean,
3485
+ default: false
3486
+ }
3487
+ };
3488
+ const navItemProps = {
3489
+ disabled: {
3490
+ type: Boolean,
3491
+ default: false
3492
+ },
3493
+ isActive: {
3494
+ type: Boolean,
3495
+ default: false
3496
+ },
3497
+ isExactActive: {
3498
+ type: Boolean,
3499
+ default: false
3500
+ },
3501
+ icon: {
3502
+ type: String,
3503
+ default: ""
3504
+ },
3505
+ index: {
3506
+ type: [String, Number],
3507
+ default: ""
3508
+ },
3509
+ title: {
3510
+ type: String,
3511
+ default: ""
3512
+ },
3513
+ useFont: {
3514
+ type: Boolean,
3515
+ default: false
3516
+ }
3517
+ };
3518
+ var nav_vue_vue_type_style_index_0_lang = "";
3519
+ const _sfc_main$g = defineComponent({
3520
+ name: "DaoNav",
3521
+ props: navProps,
3522
+ emits: ["back", "select", "toggle"],
3523
+ setup(props, {
3524
+ emit,
3525
+ expose
3526
+ }) {
3527
+ const { type, accordion, activeOpened } = toRefs(props);
3528
+ const openedNav = ref([]);
3529
+ const activeItemIdx = ref();
3530
+ const openNavSub = (index) => {
3531
+ if (openedNav.value.includes(index)) {
3532
+ return;
3533
+ }
3534
+ if (accordion.value) {
3535
+ openedNav.value = [];
3536
+ }
3537
+ openedNav.value.push(index);
3538
+ emit("toggle", {
3539
+ action: "open",
3540
+ index
3541
+ });
3542
+ };
3543
+ const closeNavSub = (index) => {
3544
+ const idx = openedNav.value.indexOf(index);
3545
+ if (idx !== -1) {
3546
+ openedNav.value.splice(idx, 1);
3547
+ }
3548
+ emit("toggle", {
3549
+ action: "close",
3550
+ index
3551
+ });
3552
+ };
3553
+ const close = (index) => closeNavSub(index);
3554
+ const open = (index) => openNavSub(index);
3555
+ const initNav = () => {
3556
+ activeOpened.value.forEach((v) => {
3557
+ openNavSub(v);
3558
+ });
3559
+ };
3560
+ onMounted(() => {
3561
+ initNav();
3562
+ });
3563
+ const handleNavItemClick = (index) => {
3564
+ activeItemIdx.value = index;
3565
+ emit("select", index);
3566
+ };
3567
+ const handleNavSubClick = (index) => {
3568
+ const isOpened = openedNav.value.includes(index);
3569
+ if (isOpened) {
3570
+ closeNavSub(index);
3571
+ } else {
3572
+ openNavSub(index);
3347
3573
  }
3574
+ };
3575
+ const handleNavHeadClick = () => {
3576
+ emit("back");
3577
+ };
3578
+ provide(navRootKey, reactive({
3579
+ type,
3580
+ accordion,
3581
+ activeItemIdx,
3582
+ openedNav,
3583
+ handleNavItemClick,
3584
+ handleNavSubClick,
3585
+ handleNavHeadClick
3586
+ }));
3587
+ expose({
3588
+ close,
3589
+ open
3590
+ });
3591
+ }
3592
+ });
3593
+ const _hoisted_1$d = { class: "dao-nav-bar" };
3594
+ const _hoisted_2$a = { class: "dao-nav" };
3595
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3596
+ return openBlock(), createElementBlock("nav", _hoisted_1$d, [
3597
+ renderSlot(_ctx.$slots, "header"),
3598
+ createElementVNode("ul", _hoisted_2$a, [
3599
+ renderSlot(_ctx.$slots, "default")
3600
+ ])
3601
+ ]);
3602
+ }
3603
+ var nav = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]);
3604
+ const _sfc_main$f = defineComponent({
3605
+ name: "DaoNavHead",
3606
+ components: {
3607
+ DaoIcon
3608
+ },
3609
+ props: navHeadProps,
3610
+ setup(props) {
3611
+ const rootNav = inject(navRootKey);
3612
+ if (!rootNav) {
3613
+ console.warn("use Nav", "can not inject root Nav");
3614
+ }
3615
+ const { icon, title, useFont } = toRefs(props);
3616
+ const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "3rd" || Boolean(unref(icon)));
3617
+ const headIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" ? unref(icon) : "icon-back");
3618
+ const isFontType = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" ? unref(useFont) : true);
3619
+ const classHeadList = computed(() => [
3620
+ "dao-nav__head",
3621
+ `dao-nav__head--${rootNav == null ? void 0 : rootNav.type}`
3348
3622
  ]);
3349
- const radioClasses = computed(() => [
3350
- "dao-radio",
3623
+ const handleClickBack = () => {
3624
+ if ((rootNav == null ? void 0 : rootNav.type) === "2rd") {
3625
+ return;
3626
+ }
3627
+ rootNav == null ? void 0 : rootNav.handleNavHeadClick();
3628
+ };
3629
+ return {
3630
+ classHeadList,
3631
+ headIcon,
3632
+ title,
3633
+ isFontType,
3634
+ showIcon,
3635
+ handleClickBack
3636
+ };
3637
+ }
3638
+ });
3639
+ const _hoisted_1$c = { class: "dao-nav__head-text dao-nav-text" };
3640
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3641
+ const _component_dao_icon = resolveComponent("dao-icon");
3642
+ return openBlock(), createElementBlock("li", {
3643
+ class: normalizeClass(_ctx.classHeadList)
3644
+ }, [
3645
+ renderSlot(_ctx.$slots, "default", {}, () => [
3646
+ _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
3647
+ key: 0,
3648
+ class: "dao-nav__head-icon",
3649
+ tabindex: "0",
3650
+ name: _ctx.headIcon,
3651
+ "use-font": _ctx.isFontType,
3652
+ onClick: _ctx.handleClickBack,
3653
+ onKeyup: withKeys(withModifiers(_ctx.handleClickBack, ["stop"]), ["esc"])
3654
+ }, null, 8, ["name", "use-font", "onClick", "onKeyup"])) : createCommentVNode("", true),
3655
+ createElementVNode("span", _hoisted_1$c, toDisplayString(_ctx.title), 1)
3656
+ ])
3657
+ ], 2);
3658
+ }
3659
+ var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
3660
+ const _sfc_main$e = defineComponent({
3661
+ name: "DaoNavItem",
3662
+ components: {
3663
+ DaoIcon
3664
+ },
3665
+ props: navItemProps,
3666
+ setup(props, { slots }) {
3667
+ const rootNav = inject(navRootKey);
3668
+ const subNav = inject(navSubKey);
3669
+ if (!rootNav || !subNav) {
3670
+ console.warn("use Nav", "can not inject root Nav");
3671
+ }
3672
+ const {
3673
+ icon,
3674
+ title,
3675
+ useFont,
3676
+ disabled,
3677
+ isActive,
3678
+ isExactActive,
3679
+ index
3680
+ } = toRefs(props);
3681
+ const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3682
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
3683
+ const isNavItemActive = computed(() => {
3684
+ const unrefIsActive = unref(isActive);
3685
+ const unrefIsExactActive = unref(isExactActive);
3686
+ if (isSelect.value) {
3687
+ return true;
3688
+ }
3689
+ if (unrefIsActive && !(rootNav == null ? void 0 : rootNav.activeItemIdx)) {
3690
+ return true;
3691
+ }
3692
+ if (unrefIsExactActive && !(rootNav == null ? void 0 : rootNav.activeItemIdx)) {
3693
+ return true;
3694
+ }
3695
+ return false;
3696
+ });
3697
+ const classItemList = computed(() => {
3698
+ const unrefDisabled = unref(disabled);
3699
+ return [
3700
+ "dao-nav__item",
3701
+ `dao-nav__item--${rootNav == null ? void 0 : rootNav.type}`,
3702
+ {
3703
+ "dao-nav__item-disabled": unrefDisabled
3704
+ }
3705
+ ];
3706
+ });
3707
+ const classTitleList = computed(() => [
3708
+ "dao-nav__item-title",
3351
3709
  {
3352
- "dao-radio--checked": currentValue.value,
3353
- "dao-radio--disabled": disabled.value
3710
+ "dao-nav__item-title-active": isNavItemActive.value,
3711
+ "dao-nav__item-title-with-icon": showIcon.value || slots.default
3354
3712
  }
3355
3713
  ]);
3356
- const change = (event) => {
3714
+ const handleClick = () => {
3357
3715
  if (disabled.value) {
3358
3716
  return;
3359
3717
  }
3360
- const { checked } = event.target;
3361
- currentValue.value = checked;
3362
- if (isGroup.value) {
3363
- radioGroup2 == null ? void 0 : radioGroup2.changeEvent(value.value);
3364
- } else {
3365
- emit("update:modelValue", value.value);
3366
- emit("change", value.value);
3367
- }
3368
- };
3369
- const updateValue = () => {
3370
- currentValue.value = modelValue.value === value.value;
3718
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
3371
3719
  };
3372
- watch(modelValue, () => updateValue());
3720
+ watchEffect(() => {
3721
+ if (isActive.value || isExactActive.value) {
3722
+ subNav == null ? void 0 : subNav.handleNavItemActive(isActive.value || isExactActive.value, index.value);
3723
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
3724
+ }
3725
+ });
3726
+ watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3727
+ const active = val === index.value;
3728
+ subNav == null ? void 0 : subNav.handleNavItemActive(active, index.value);
3729
+ }, { immediate: true });
3373
3730
  return {
3374
- currentValue,
3375
- wrapClasses,
3376
- radioClasses,
3377
- change
3731
+ classItemList,
3732
+ classTitleList,
3733
+ icon,
3734
+ showIcon,
3735
+ title,
3736
+ useFont,
3737
+ handleClick
3378
3738
  };
3379
3739
  }
3380
3740
  });
3381
- const _hoisted_1$8 = ["disabled", "name", "checked"];
3382
- const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
3383
- const _hoisted_3$3 = {
3384
- key: 0,
3385
- class: "dao-radio__label-wrapper"
3386
- };
3387
- const _hoisted_4$3 = {
3388
- key: 0,
3389
- class: "dao-radio__label"
3390
- };
3391
- const _hoisted_5$2 = {
3392
- key: 1,
3393
- class: "dao-radio__help"
3394
- };
3395
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
3396
- return openBlock(), createElementBlock("label", {
3397
- class: normalizeClass(_ctx.wrapClasses)
3741
+ const _hoisted_1$b = { class: "dao-nav-slot" };
3742
+ const _hoisted_2$9 = { class: "dao-nav__item-text dao-nav-text" };
3743
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3744
+ const _component_dao_icon = resolveComponent("dao-icon");
3745
+ return openBlock(), createElementBlock("li", {
3746
+ class: normalizeClass(_ctx.classItemList)
3398
3747
  }, [
3399
- createElementVNode("span", {
3400
- class: normalizeClass(_ctx.radioClasses)
3748
+ createElementVNode("div", {
3749
+ class: normalizeClass(_ctx.classTitleList),
3750
+ tabindex: "0",
3751
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
3752
+ onKeyup: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]), ["enter"]))
3401
3753
  }, [
3402
- createElementVNode("input", {
3403
- type: "radio",
3404
- class: "dao-radio-input",
3405
- disabled: _ctx.disabled,
3406
- name: _ctx.name,
3407
- checked: _ctx.currentValue,
3408
- onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
3409
- }, null, 40, _hoisted_1$8),
3410
- _hoisted_2$6
3411
- ], 2),
3412
- _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
3413
- _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
3754
+ createElementVNode("div", _hoisted_1$b, [
3414
3755
  renderSlot(_ctx.$slots, "default", {}, () => [
3415
- createTextVNode(toDisplayString(_ctx.label), 1)
3756
+ _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
3757
+ key: 0,
3758
+ class: "dao-nav__item-icon",
3759
+ name: _ctx.icon,
3760
+ "use-font": _ctx.useFont
3761
+ }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
3762
+ createElementVNode("span", _hoisted_2$9, toDisplayString(_ctx.title), 1)
3416
3763
  ])
3417
- ])) : createCommentVNode("", true),
3418
- _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
3419
- renderSlot(_ctx.$slots, "helper")
3420
- ])) : createCommentVNode("", true)
3421
- ])) : createCommentVNode("", true)
3764
+ ])
3765
+ ], 34)
3422
3766
  ], 2);
3423
3767
  }
3424
- var radio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
3425
- var radioGroup_vue_vue_type_style_index_0_lang = "";
3426
- const _sfc_main$9 = defineComponent({
3427
- name: "DaoRadioGroup",
3428
- props: {
3429
- modelValue: {
3430
- type: [String, Number, Boolean],
3431
- default: false
3432
- },
3433
- vertical: {
3434
- type: Boolean,
3435
- default: true
3436
- }
3768
+ var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
3769
+ const _sfc_main$d = defineComponent({
3770
+ name: "DaoNavSub",
3771
+ components: {
3772
+ DaoIcon
3437
3773
  },
3438
- emits: ["update:modelValue", "change"],
3439
- setup(props, { emit }) {
3440
- const { vertical } = toRefs(props);
3441
- const radioGroupClasses = computed(() => [
3442
- "dao-radio-group",
3774
+ props: navSubProps,
3775
+ setup(props, { slots }) {
3776
+ const {
3777
+ icon,
3778
+ title,
3779
+ useFont,
3780
+ disabled,
3781
+ isActive,
3782
+ isExactActive,
3783
+ index,
3784
+ fold
3785
+ } = toRefs(props);
3786
+ const rootNav = inject(navRootKey);
3787
+ if (!rootNav) {
3788
+ console.warn("use Nav", "can not inject root Nav");
3789
+ }
3790
+ const isChildrenActive = ref(false);
3791
+ const currentActiveIndex = ref(false);
3792
+ const opened = ref(false);
3793
+ const childrenActiveMap = reactive(new Map());
3794
+ const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3795
+ const foldIcon = computed(() => opened.value ? "icon_caret-up" : "icon_caret-down");
3796
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
3797
+ const classSubList = computed(() => {
3798
+ const unrefDisabled = unref(disabled);
3799
+ return [
3800
+ "dao-nav__sub",
3801
+ `dao-nav__sub--${rootNav == null ? void 0 : rootNav.type}`,
3802
+ {
3803
+ "dao-nav__sub-disabled": unrefDisabled && !fold.value
3804
+ }
3805
+ ];
3806
+ });
3807
+ const isNavSubActive = computed(() => {
3808
+ const unrefIsActive = unref(isActive);
3809
+ const unrefIsExactActive = unref(isExactActive);
3810
+ if (disabled.value && !fold.value) {
3811
+ return false;
3812
+ }
3813
+ if (fold.value) {
3814
+ return isChildrenActive.value;
3815
+ }
3816
+ if (isSelect.value) {
3817
+ return true;
3818
+ }
3819
+ if (unrefIsActive && !(rootNav == null ? void 0 : rootNav.activeItemIdx)) {
3820
+ return true;
3821
+ }
3822
+ if (unrefIsExactActive && !(rootNav == null ? void 0 : rootNav.activeItemIdx)) {
3823
+ return true;
3824
+ }
3825
+ return false;
3826
+ });
3827
+ const classTitleList = computed(() => [
3828
+ "dao-nav__sub-title",
3443
3829
  {
3444
- "dao-radio-group--vertical": vertical.value,
3445
- "dao-radio-group--horizontal": !vertical.value
3830
+ "dao-nav__sub-title-active": isNavSubActive.value,
3831
+ "dao-nav__sub-title-opened": opened.value,
3832
+ "dao-nav__sub-title-fold": fold.value,
3833
+ "dao-nav__sub-title-with-icon": showIcon.value || slots.title
3446
3834
  }
3447
3835
  ]);
3448
- const changeEvent = (val) => {
3449
- emit("update:modelValue", val);
3450
- emit("change", val);
3836
+ const handleNavItemActive = (active, idx) => {
3837
+ childrenActiveMap.set(idx, active);
3451
3838
  };
3452
- provide(radioGroupKey, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
3453
- changeEvent
3454
- })));
3839
+ provide(navSubKey, {
3840
+ handleNavItemActive
3841
+ });
3842
+ watch(childrenActiveMap, (v) => {
3843
+ if (!fold.value) {
3844
+ return;
3845
+ }
3846
+ const childrenActiveList = Array.from(v.values());
3847
+ if (childrenActiveList.indexOf(true) !== -1) {
3848
+ isChildrenActive.value = true;
3849
+ } else {
3850
+ isChildrenActive.value = false;
3851
+ }
3852
+ });
3853
+ const handleClick = () => {
3854
+ if (disabled.value && !fold.value) {
3855
+ return;
3856
+ }
3857
+ if (fold.value) {
3858
+ rootNav == null ? void 0 : rootNav.handleNavSubClick(index.value);
3859
+ } else {
3860
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
3861
+ }
3862
+ };
3863
+ watchEffect(() => {
3864
+ if (!fold.value && (isActive.value || isExactActive.value)) {
3865
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
3866
+ }
3867
+ });
3868
+ watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3869
+ currentActiveIndex.value = Boolean(val === index.value);
3870
+ }, { immediate: true });
3871
+ watch(() => rootNav == null ? void 0 : rootNav.openedNav, (val) => {
3872
+ if (disabled.value && !fold.value) {
3873
+ opened.value = false;
3874
+ } else {
3875
+ opened.value = (val == null ? void 0 : val.indexOf(index.value)) !== -1;
3876
+ }
3877
+ }, { immediate: true, deep: true });
3455
3878
  return {
3456
- radioGroupClasses
3879
+ classSubList,
3880
+ classTitleList,
3881
+ fold,
3882
+ foldIcon,
3883
+ showIcon,
3884
+ title,
3885
+ useFont,
3886
+ opened,
3887
+ handleClick
3457
3888
  };
3458
3889
  }
3459
3890
  });
3460
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
3461
- return openBlock(), createElementBlock("div", {
3462
- class: normalizeClass(_ctx.radioGroupClasses)
3891
+ const _hoisted_1$a = { class: "dao-nav-slot" };
3892
+ const _hoisted_2$8 = { class: "dao-nav__sub-text dao-nav-text" };
3893
+ const _hoisted_3$5 = {
3894
+ key: 0,
3895
+ class: "icon-dropdown-line dao-nav__sub__icon-fold"
3896
+ };
3897
+ const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
3898
+ const _hoisted_5$3 = { class: "dao-nav dao-nav-inner" };
3899
+ const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
3900
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3901
+ const _component_dao_icon = resolveComponent("dao-icon");
3902
+ return openBlock(), createElementBlock("li", {
3903
+ class: normalizeClass(_ctx.classSubList)
3463
3904
  }, [
3464
- renderSlot(_ctx.$slots, "default")
3905
+ createElementVNode("div", {
3906
+ class: normalizeClass(_ctx.classTitleList),
3907
+ tabindex: "0",
3908
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
3909
+ onKeyup: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]), ["enter"]))
3910
+ }, [
3911
+ createElementVNode("div", _hoisted_1$a, [
3912
+ renderSlot(_ctx.$slots, "title", {}, () => [
3913
+ _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
3914
+ key: 0,
3915
+ class: "dao-nav__sub-icon",
3916
+ name: _ctx.icon,
3917
+ "use-font": _ctx.useFont
3918
+ }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
3919
+ createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.title), 1)
3920
+ ])
3921
+ ]),
3922
+ _ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$5)) : createCommentVNode("", true)
3923
+ ], 34),
3924
+ createVNode(Transition, { name: "dao-nav" }, {
3925
+ default: withCtx(() => [
3926
+ withDirectives(createElementVNode("div", null, [
3927
+ _hoisted_4$4,
3928
+ createElementVNode("ul", _hoisted_5$3, [
3929
+ renderSlot(_ctx.$slots, "default")
3930
+ ]),
3931
+ _hoisted_6$2
3932
+ ], 512), [
3933
+ [vShow, _ctx.opened]
3934
+ ])
3935
+ ]),
3936
+ _: 3
3937
+ })
3465
3938
  ], 2);
3466
3939
  }
3467
- var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
3940
+ var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
3941
+ const paginationProps = {
3942
+ pageSize: {
3943
+ type: Number,
3944
+ required: true,
3945
+ default: 10,
3946
+ validator: (val) => val > 0 && Math.floor(val) === val
3947
+ },
3948
+ pageSizeOptions: {
3949
+ type: Array,
3950
+ default: () => []
3951
+ },
3952
+ pageFormat: {
3953
+ type: Function,
3954
+ default: (val) => `${val} per page`
3955
+ },
3956
+ compact: {
3957
+ type: Boolean,
3958
+ default: false
3959
+ },
3960
+ total: {
3961
+ type: Number,
3962
+ required: true,
3963
+ default: 0
3964
+ },
3965
+ totalFormat: {
3966
+ type: Function,
3967
+ default: (val) => `Total ${val} ${val === 1 ? "record" : "records"}`
3968
+ },
3969
+ currentPage: {
3970
+ type: Number,
3971
+ default: 1
3972
+ },
3973
+ pageSizerWidth: {
3974
+ type: Number,
3975
+ default: 110
3976
+ }
3977
+ };
3468
3978
  var select_vue_vue_type_style_index_0_lang = "";
3469
- const _sfc_main$8 = defineComponent({
3979
+ const _sfc_main$c = defineComponent({
3470
3980
  name: "DaoSelect",
3471
3981
  components: {
3472
- DaoPopper
3982
+ DaoPopper: Popper
3473
3983
  },
3474
3984
  props: {
3475
3985
  modelValue: {
@@ -3668,20 +4178,20 @@ const _sfc_main$8 = defineComponent({
3668
4178
  };
3669
4179
  }
3670
4180
  });
3671
- const _hoisted_1$7 = {
4181
+ const _hoisted_1$9 = {
3672
4182
  class: "dao-selection",
3673
4183
  tabindex: "1"
3674
4184
  };
3675
- const _hoisted_2$5 = {
4185
+ const _hoisted_2$7 = {
3676
4186
  key: 0,
3677
4187
  class: "dao-selection-text"
3678
4188
  };
3679
- const _hoisted_3$2 = {
4189
+ const _hoisted_3$4 = {
3680
4190
  key: 1,
3681
4191
  class: "dao-selection-text--placeholder"
3682
4192
  };
3683
- const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
3684
- const _hoisted_5$1 = {
4193
+ const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
4194
+ const _hoisted_5$2 = {
3685
4195
  key: 0,
3686
4196
  class: "dao-selection-search"
3687
4197
  };
@@ -3692,7 +4202,7 @@ const _hoisted_9$1 = {
3692
4202
  key: "dao-option-placeholder",
3693
4203
  class: "dao-option-placeholder"
3694
4204
  };
3695
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
4205
+ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3696
4206
  const _component_dao_popper = resolveComponent("dao-popper");
3697
4207
  return openBlock(), createBlock(_component_dao_popper, {
3698
4208
  ref: "popper",
@@ -3712,7 +4222,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
3712
4222
  }, {
3713
4223
  content: withCtx(() => [
3714
4224
  renderSlot(_ctx.$slots, "optionsHeader", {}, () => [
3715
- _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
4225
+ _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
3716
4226
  withDirectives(createElementVNode("input", {
3717
4227
  ref: "searchInput",
3718
4228
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.state.searchText = $event),
@@ -3744,8 +4254,8 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
3744
4254
  default: withCtx(() => {
3745
4255
  var _a, _b;
3746
4256
  return [
3747
- createElementVNode("button", _hoisted_1$7, [
3748
- _ctx.isSelected ? (openBlock(), createElementBlock("span", _hoisted_2$5, [
4257
+ createElementVNode("button", _hoisted_1$9, [
4258
+ _ctx.isSelected ? (openBlock(), createElementBlock("span", _hoisted_2$7, [
3749
4259
  renderSlot(_ctx.$slots, "selected", {
3750
4260
  selectedLabel: (_a = _ctx.state.selectedOption) == null ? void 0 : _a.label,
3751
4261
  selectedOption: _ctx.state.selectedOption,
@@ -3756,17 +4266,17 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
3756
4266
  createTextVNode(toDisplayString((_a2 = _ctx.state.selectedOption) == null ? void 0 : _a2.labelValue), 1)
3757
4267
  ];
3758
4268
  })
3759
- ])) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(_ctx.placeholder), 1)),
3760
- _hoisted_4$2
4269
+ ])) : (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(_ctx.placeholder), 1)),
4270
+ _hoisted_4$3
3761
4271
  ])
3762
4272
  ];
3763
4273
  }),
3764
4274
  _: 3
3765
4275
  }, 8, ["disabled", "offset", "popper-class", "popper-options", "class", "append-to"]);
3766
4276
  }
3767
- var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
4277
+ var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$a]]);
3768
4278
  var option_vue_vue_type_style_index_0_lang = "";
3769
- const _sfc_main$7 = defineComponent({
4279
+ const _sfc_main$b = defineComponent({
3770
4280
  name: "DaoOption",
3771
4281
  props: {
3772
4282
  value: {
@@ -3815,52 +4325,459 @@ const _sfc_main$7 = defineComponent({
3815
4325
  if (typeof addFn === "function") {
3816
4326
  addFn(instance);
3817
4327
  }
3818
- onBeforeUnmount(() => {
3819
- var _a;
3820
- if (typeof removeFn === "function") {
3821
- const index = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
3822
- removeFn(index);
4328
+ onBeforeUnmount(() => {
4329
+ var _a;
4330
+ if (typeof removeFn === "function") {
4331
+ const index = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
4332
+ removeFn(index);
4333
+ }
4334
+ });
4335
+ return {
4336
+ visible,
4337
+ labelValue,
4338
+ isSelected,
4339
+ onClick
4340
+ };
4341
+ }
4342
+ });
4343
+ const _hoisted_1$8 = ["title"];
4344
+ const _hoisted_2$6 = {
4345
+ key: 0,
4346
+ class: "icon-checked dao-option-checkmark"
4347
+ };
4348
+ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
4349
+ return withDirectives((openBlock(), createElementBlock("li", {
4350
+ class: normalizeClass([
4351
+ "dao-option",
4352
+ {
4353
+ "dao-option-active": _ctx.isSelected,
4354
+ "dao-option-disabled": _ctx.disabled
4355
+ }
4356
+ ]),
4357
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
4358
+ }, [
4359
+ createElementVNode("span", {
4360
+ title: String(_ctx.labelValue)
4361
+ }, [
4362
+ renderSlot(_ctx.$slots, "default", {}, () => [
4363
+ createTextVNode(toDisplayString(_ctx.labelValue), 1)
4364
+ ])
4365
+ ], 8, _hoisted_1$8),
4366
+ _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$6)) : createCommentVNode("", true)
4367
+ ], 2)), [
4368
+ [vShow, _ctx.visible]
4369
+ ]);
4370
+ }
4371
+ var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
4372
+ var pagination_vue_vue_type_style_index_0_lang = "";
4373
+ const numberAscSort = (a, b) => a - b;
4374
+ const _sfc_main$a = defineComponent({
4375
+ name: "DaoPagination",
4376
+ components: {
4377
+ DaoSelect,
4378
+ DaoOption
4379
+ },
4380
+ props: paginationProps,
4381
+ emits: [
4382
+ "update:page-size",
4383
+ "update:current-page",
4384
+ "next",
4385
+ "prev",
4386
+ "page-change",
4387
+ "size-change"
4388
+ ],
4389
+ setup(props, { emit }) {
4390
+ const { currentPage } = toRefs(props);
4391
+ const currentShowPage = ref(currentPage.value);
4392
+ const totalText = computed(() => props.totalFormat(props.total));
4393
+ const totalPage = computed(() => Math.ceil(props.total / props.pageSize));
4394
+ const computedPageSizeOptions = computed(() => {
4395
+ if (!props.pageSizeOptions.length) {
4396
+ return [props.pageSize];
4397
+ }
4398
+ const filteredPageSizeOptions = props.pageSizeOptions.filter((i) => {
4399
+ const res = i > 0 && Math.floor(i) === i;
4400
+ return res;
4401
+ });
4402
+ if (props.pageSizeOptions.includes(props.pageSize)) {
4403
+ return [...filteredPageSizeOptions].sort(numberAscSort);
4404
+ }
4405
+ return [...filteredPageSizeOptions, props.pageSize].sort(numberAscSort);
4406
+ });
4407
+ const prevPage = () => {
4408
+ if (currentPage.value === 1) {
4409
+ return;
4410
+ }
4411
+ const curPage = currentPage.value - 1;
4412
+ emit("update:current-page", curPage);
4413
+ emit("prev", curPage);
4414
+ };
4415
+ const nextPage = () => {
4416
+ if (currentPage.value === totalPage.value) {
4417
+ return;
4418
+ }
4419
+ const curPage = currentPage.value + 1;
4420
+ emit("update:current-page", curPage);
4421
+ emit("next", curPage);
4422
+ };
4423
+ const targetPage = () => {
4424
+ let { value } = currentShowPage;
4425
+ if (!value) {
4426
+ currentShowPage.value = currentPage.value;
4427
+ return;
4428
+ }
4429
+ if (value > totalPage.value) {
4430
+ value = totalPage.value;
4431
+ }
4432
+ currentShowPage.value = value;
4433
+ emit("update:current-page", value);
4434
+ emit("page-change", value);
4435
+ };
4436
+ watch(currentPage, (val) => {
4437
+ currentShowPage.value = val;
4438
+ });
4439
+ watch(totalPage, (val) => {
4440
+ if (currentShowPage.value > val) {
4441
+ currentShowPage.value = val;
4442
+ emit("update:current-page", val);
4443
+ }
4444
+ });
4445
+ const updatePageSize = (val) => {
4446
+ currentShowPage.value = currentPage.value;
4447
+ emit("update:page-size", val);
4448
+ emit("size-change", val);
4449
+ };
4450
+ const currentShowPageFormat = () => {
4451
+ if (!currentShowPage.value) {
4452
+ return;
4453
+ }
4454
+ currentShowPage.value = parseInt(currentShowPage.value.toString().replace(/[^0-9]/g, ""), 10) || "";
4455
+ };
4456
+ return {
4457
+ currentShowPage,
4458
+ totalText,
4459
+ totalPage,
4460
+ computedPageSizeOptions,
4461
+ prevPage,
4462
+ nextPage,
4463
+ targetPage,
4464
+ updatePageSize,
4465
+ currentShowPageFormat
4466
+ };
4467
+ }
4468
+ });
4469
+ const _hoisted_1$7 = { class: "dao-pagination__total" };
4470
+ const _hoisted_2$5 = { class: "dao-pagination__pager" };
4471
+ const _hoisted_3$3 = ["disabled"];
4472
+ const _hoisted_4$2 = { class: "dao-pagination__pager-total" };
4473
+ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
4474
+ const _component_dao_option = resolveComponent("dao-option");
4475
+ const _component_dao_select = resolveComponent("dao-select");
4476
+ return openBlock(), createElementBlock("div", {
4477
+ class: normalizeClass(["dao-pagination", { "dao-pagination--compact": _ctx.compact }])
4478
+ }, [
4479
+ createElementVNode("div", _hoisted_1$7, toDisplayString(_ctx.totalText), 1),
4480
+ createElementVNode("div", _hoisted_2$5, [
4481
+ createElementVNode("i", {
4482
+ class: normalizeClass([
4483
+ "icon-arrow-previous",
4484
+ "dao-pagination__pager-prev",
4485
+ { "dao-pagination__pager-icon--disabled": _ctx.currentPage === 1 }
4486
+ ]),
4487
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.prevPage && _ctx.prevPage(...args))
4488
+ }, null, 2),
4489
+ withDirectives(createElementVNode("input", {
4490
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.currentShowPage = $event),
4491
+ class: "dao-pagination__pager-current",
4492
+ disabled: _ctx.totalPage === 1,
4493
+ onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
4494
+ onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
4495
+ }, null, 40, _hoisted_3$3), [
4496
+ [vModelText, _ctx.currentShowPage]
4497
+ ]),
4498
+ createElementVNode("span", _hoisted_4$2, " / " + toDisplayString(_ctx.totalPage), 1),
4499
+ createElementVNode("i", {
4500
+ class: normalizeClass([
4501
+ "icon-arrow-next",
4502
+ "dao-pagination__pager-next",
4503
+ { "dao-pagination__pager-icon--disabled": _ctx.currentPage === _ctx.totalPage }
4504
+ ]),
4505
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.nextPage && _ctx.nextPage(...args))
4506
+ }, null, 2)
4507
+ ]),
4508
+ createVNode(_component_dao_select, {
4509
+ class: "dao-pagination__sizer",
4510
+ "model-value": _ctx.pageSize,
4511
+ size: "sm",
4512
+ style: normalizeStyle({ width: `${_ctx.pageSizerWidth}px` }),
4513
+ "menu-class": "dao-pagination__sizer-menu",
4514
+ onChange: _ctx.updatePageSize
4515
+ }, {
4516
+ default: withCtx(() => [
4517
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.computedPageSizeOptions, (size) => {
4518
+ return openBlock(), createBlock(_component_dao_option, {
4519
+ key: size,
4520
+ value: size,
4521
+ label: _ctx.pageFormat(size)
4522
+ }, null, 8, ["value", "label"]);
4523
+ }), 128))
4524
+ ]),
4525
+ _: 1
4526
+ }, 8, ["model-value", "style", "onChange"])
4527
+ ], 2);
4528
+ }
4529
+ var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
4530
+ var popover_scss_vue_type_style_index_0_src_lang = "";
4531
+ const _sfc_main$9 = defineComponent(__spreadProps(__spreadValues({}, Popper), {
4532
+ name: "DaoPopover",
4533
+ props: PopperProps,
4534
+ daoPopperTheme: "dao-popover"
4535
+ }));
4536
+ var progress_vue_vue_type_style_index_0_lang = "";
4537
+ const _sfc_main$8 = defineComponent({
4538
+ name: "DaoProgress",
4539
+ props: {
4540
+ value: {
4541
+ type: Number,
4542
+ default: 0,
4543
+ validator: (val) => val >= 0 && val <= 100
4544
+ },
4545
+ bgColor: {
4546
+ type: String,
4547
+ default: "#ebeef5"
4548
+ },
4549
+ fill: {
4550
+ type: [Array, String],
4551
+ default: "#409eff"
4552
+ }
4553
+ },
4554
+ setup(props) {
4555
+ const { fill } = toRefs(props);
4556
+ const type = computed(() => typeof fill.value === "string" ? "line" : "stacked");
4557
+ const stackedStyles = computed(() => {
4558
+ if (Array.isArray(fill.value)) {
4559
+ return fill.value.map((fillColor) => {
4560
+ if (typeof fillColor === "string") {
4561
+ const stackedLen = fill.value.length;
4562
+ return {
4563
+ width: `${100 / stackedLen}%`,
4564
+ background: fillColor
4565
+ };
4566
+ }
4567
+ if (typeof fillColor === "object") {
4568
+ return {
4569
+ width: `${fillColor.percent}%`,
4570
+ background: fillColor.color
4571
+ };
4572
+ }
4573
+ return {};
4574
+ });
4575
+ }
4576
+ return [];
4577
+ });
4578
+ const stackedBgColor = computed(() => typeof fill.value === "string" ? fill.value : "");
4579
+ return {
4580
+ type,
4581
+ stackedStyles,
4582
+ stackedBgColor
4583
+ };
4584
+ }
4585
+ });
4586
+ const _hoisted_1$6 = { class: "dao-progress" };
4587
+ const _hoisted_2$4 = {
4588
+ key: 1,
4589
+ class: "dao-progress__stacked"
4590
+ };
4591
+ const _hoisted_3$2 = {
4592
+ key: 0,
4593
+ class: "dao-progress__text"
4594
+ };
4595
+ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
4596
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
4597
+ createElementVNode("div", {
4598
+ class: "dao-progress__inner",
4599
+ style: normalizeStyle({ background: _ctx.bgColor })
4600
+ }, [
4601
+ _ctx.type === "line" ? (openBlock(), createElementBlock("div", {
4602
+ key: 0,
4603
+ class: "dao-progress__bar",
4604
+ style: normalizeStyle({ width: `${_ctx.value}%`, background: _ctx.stackedBgColor })
4605
+ }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$4, [
4606
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stackedStyles, (stackedStyle, idx) => {
4607
+ return openBlock(), createElementBlock("div", {
4608
+ key: idx,
4609
+ class: "dao-progress__stacked-item",
4610
+ style: normalizeStyle(stackedStyle)
4611
+ }, null, 4);
4612
+ }), 128))
4613
+ ]))
4614
+ ], 4),
4615
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$2, [
4616
+ renderSlot(_ctx.$slots, "default")
4617
+ ])) : createCommentVNode("", true)
4618
+ ]);
4619
+ }
4620
+ var progress = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
4621
+ var radio_vue_vue_type_style_index_0_lang = "";
4622
+ const _sfc_main$7 = defineComponent({
4623
+ name: "DaoRadio",
4624
+ props: {
4625
+ modelValue: {
4626
+ type: [String, Number, Boolean],
4627
+ default: false
4628
+ },
4629
+ value: {
4630
+ type: [String, Number, Boolean],
4631
+ required: true,
4632
+ default: ""
4633
+ },
4634
+ label: {
4635
+ type: String,
4636
+ default: ""
4637
+ },
4638
+ disabled: {
4639
+ type: Boolean,
4640
+ default: false
4641
+ },
4642
+ name: {
4643
+ type: String,
4644
+ default: ""
4645
+ }
4646
+ },
4647
+ emits: ["update:modelValue", "change"],
4648
+ setup(props, { emit }) {
4649
+ const { value, disabled } = toRefs(props);
4650
+ const radioGroup2 = inject(radioGroupKey, void 0);
4651
+ const isGroup = computed(() => !!radioGroup2);
4652
+ const modelValue = computed(() => isGroup.value ? radioGroup2 == null ? void 0 : radioGroup2.modelValue : props.modelValue);
4653
+ const currentValue = ref(modelValue.value === value.value);
4654
+ const wrapClasses = computed(() => [
4655
+ "dao-radio-wrapper",
4656
+ {
4657
+ "dao-radio-wrapper--disabled": disabled.value
4658
+ }
4659
+ ]);
4660
+ const radioClasses = computed(() => [
4661
+ "dao-radio",
4662
+ {
4663
+ "dao-radio--checked": currentValue.value,
4664
+ "dao-radio--disabled": disabled.value
4665
+ }
4666
+ ]);
4667
+ const change = (event) => {
4668
+ if (disabled.value) {
4669
+ return;
4670
+ }
4671
+ const { checked } = event.target;
4672
+ currentValue.value = checked;
4673
+ if (isGroup.value) {
4674
+ radioGroup2 == null ? void 0 : radioGroup2.changeEvent(value.value);
4675
+ } else {
4676
+ emit("update:modelValue", value.value);
4677
+ emit("change", value.value);
4678
+ }
4679
+ };
4680
+ const updateValue = () => {
4681
+ currentValue.value = modelValue.value === value.value;
4682
+ };
4683
+ watch(modelValue, () => updateValue());
4684
+ return {
4685
+ currentValue,
4686
+ wrapClasses,
4687
+ radioClasses,
4688
+ change
4689
+ };
4690
+ }
4691
+ });
4692
+ const _hoisted_1$5 = ["disabled", "name", "checked"];
4693
+ const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
4694
+ const _hoisted_3$1 = {
4695
+ key: 0,
4696
+ class: "dao-radio__label-wrapper"
4697
+ };
4698
+ const _hoisted_4$1 = {
4699
+ key: 0,
4700
+ class: "dao-radio__label"
4701
+ };
4702
+ const _hoisted_5$1 = {
4703
+ key: 1,
4704
+ class: "dao-radio__help"
4705
+ };
4706
+ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
4707
+ return openBlock(), createElementBlock("label", {
4708
+ class: normalizeClass(_ctx.wrapClasses)
4709
+ }, [
4710
+ createElementVNode("span", {
4711
+ class: normalizeClass(_ctx.radioClasses)
4712
+ }, [
4713
+ createElementVNode("input", {
4714
+ type: "radio",
4715
+ class: "dao-radio-input",
4716
+ disabled: _ctx.disabled,
4717
+ name: _ctx.name,
4718
+ checked: _ctx.currentValue,
4719
+ onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
4720
+ }, null, 40, _hoisted_1$5),
4721
+ _hoisted_2$3
4722
+ ], 2),
4723
+ _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
4724
+ _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
4725
+ renderSlot(_ctx.$slots, "default", {}, () => [
4726
+ createTextVNode(toDisplayString(_ctx.label), 1)
4727
+ ])
4728
+ ])) : createCommentVNode("", true),
4729
+ _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
4730
+ renderSlot(_ctx.$slots, "helper")
4731
+ ])) : createCommentVNode("", true)
4732
+ ])) : createCommentVNode("", true)
4733
+ ], 2);
4734
+ }
4735
+ var radio = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
4736
+ var radioGroup_vue_vue_type_style_index_0_lang = "";
4737
+ const _sfc_main$6 = defineComponent({
4738
+ name: "DaoRadioGroup",
4739
+ props: {
4740
+ modelValue: {
4741
+ type: [String, Number, Boolean],
4742
+ default: false
4743
+ },
4744
+ vertical: {
4745
+ type: Boolean,
4746
+ default: true
4747
+ }
4748
+ },
4749
+ emits: ["update:modelValue", "change"],
4750
+ setup(props, { emit }) {
4751
+ const { vertical } = toRefs(props);
4752
+ const radioGroupClasses = computed(() => [
4753
+ "dao-radio-group",
4754
+ {
4755
+ "dao-radio-group--vertical": vertical.value,
4756
+ "dao-radio-group--horizontal": !vertical.value
3823
4757
  }
3824
- });
4758
+ ]);
4759
+ const changeEvent = (val) => {
4760
+ emit("update:modelValue", val);
4761
+ emit("change", val);
4762
+ };
4763
+ provide(radioGroupKey, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
4764
+ changeEvent
4765
+ })));
3825
4766
  return {
3826
- visible,
3827
- labelValue,
3828
- isSelected,
3829
- onClick
4767
+ radioGroupClasses
3830
4768
  };
3831
4769
  }
3832
4770
  });
3833
- const _hoisted_1$6 = ["title"];
3834
- const _hoisted_2$4 = {
3835
- key: 0,
3836
- class: "icon-checked dao-option-checkmark"
3837
- };
3838
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
3839
- return withDirectives((openBlock(), createElementBlock("li", {
3840
- class: normalizeClass([
3841
- "dao-option",
3842
- {
3843
- "dao-option-active": _ctx.isSelected,
3844
- "dao-option-disabled": _ctx.disabled
3845
- }
3846
- ]),
3847
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
4771
+ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4772
+ return openBlock(), createElementBlock("div", {
4773
+ class: normalizeClass(_ctx.radioGroupClasses)
3848
4774
  }, [
3849
- createElementVNode("span", {
3850
- title: String(_ctx.labelValue)
3851
- }, [
3852
- renderSlot(_ctx.$slots, "default", {}, () => [
3853
- createTextVNode(toDisplayString(_ctx.labelValue), 1)
3854
- ])
3855
- ], 8, _hoisted_1$6),
3856
- _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$4)) : createCommentVNode("", true)
3857
- ], 2)), [
3858
- [vShow, _ctx.visible]
3859
- ]);
4775
+ renderSlot(_ctx.$slots, "default")
4776
+ ], 2);
3860
4777
  }
3861
- var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
4778
+ var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]);
3862
4779
  var switch_vue_vue_type_style_index_0_lang = "";
3863
- const _sfc_main$6 = defineComponent({
4780
+ const _sfc_main$5 = defineComponent({
3864
4781
  name: "DaoSwitch",
3865
4782
  props: {
3866
4783
  modelValue: {
@@ -3915,12 +4832,12 @@ const _sfc_main$6 = defineComponent({
3915
4832
  };
3916
4833
  }
3917
4834
  });
3918
- const _hoisted_1$5 = ["value", "name", "disabled"];
3919
- const _hoisted_2$3 = {
4835
+ const _hoisted_1$4 = ["value", "name", "disabled"];
4836
+ const _hoisted_2$2 = {
3920
4837
  key: 0,
3921
4838
  class: "dao-switch__label"
3922
4839
  };
3923
- function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
4840
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3924
4841
  return openBlock(), createElementBlock("div", {
3925
4842
  class: normalizeClass(["dao-switch", { "dao-switch--disabled": _ctx.disabled, "dao-switch--size-sm": _ctx.size === "sm" }]),
3926
4843
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
@@ -3931,16 +4848,16 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
3931
4848
  value: _ctx.currentValue,
3932
4849
  name: _ctx.name,
3933
4850
  disabled: _ctx.disabled
3934
- }, null, 8, _hoisted_1$5),
4851
+ }, null, 8, _hoisted_1$4),
3935
4852
  createElementVNode("span", {
3936
4853
  class: normalizeClass(["dao-switch__pill", { "dao-switch-checked": _ctx.currentValue }])
3937
4854
  }, null, 2),
3938
- _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
4855
+ _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
3939
4856
  ], 2);
3940
4857
  }
3941
- var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]);
4858
+ var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4]]);
3942
4859
  var resizer_vue_vue_type_style_index_0_lang = "";
3943
- const _sfc_main$5 = defineComponent({
4860
+ const _sfc_main$4 = defineComponent({
3944
4861
  name: "DaoResizer",
3945
4862
  props: {
3946
4863
  column: {
@@ -3987,9 +4904,9 @@ const _sfc_main$5 = defineComponent({
3987
4904
  };
3988
4905
  }
3989
4906
  });
3990
- const _hoisted_1$4 = { class: "dao-table-resizer-separator" };
3991
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3992
- return openBlock(), createElementBlock("span", _hoisted_1$4, [
4907
+ const _hoisted_1$3 = { class: "dao-table-resizer-separator" };
4908
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
4909
+ return openBlock(), createElementBlock("span", _hoisted_1$3, [
3993
4910
  !_ctx.disabled ? (openBlock(), createElementBlock("span", {
3994
4911
  key: 0,
3995
4912
  class: "dao-table-resizer-handle",
@@ -3999,202 +4916,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3999
4916
  }, null, 32)) : createCommentVNode("", true)
4000
4917
  ]);
4001
4918
  }
4002
- var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4]]);
4003
- const paginationProps = {
4004
- pageSize: {
4005
- type: Number,
4006
- required: true,
4007
- default: 10,
4008
- validator: (val) => val > 0 && Math.floor(val) === val
4009
- },
4010
- pageSizeOptions: {
4011
- type: Array,
4012
- default: () => []
4013
- },
4014
- pageFormat: {
4015
- type: Function,
4016
- default: (val) => `${val} per page`
4017
- },
4018
- compact: {
4019
- type: Boolean,
4020
- default: false
4021
- },
4022
- total: {
4023
- type: Number,
4024
- required: true,
4025
- default: 0
4026
- },
4027
- totalFormat: {
4028
- type: Function,
4029
- default: (val) => `Total ${val} ${val === 1 ? "record" : "records"}`
4030
- },
4031
- currentPage: {
4032
- type: Number,
4033
- default: 1
4034
- },
4035
- pageSizerWidth: {
4036
- type: Number,
4037
- default: 110
4038
- }
4039
- };
4040
- var pagination_vue_vue_type_style_index_0_lang = "";
4041
- const numberAscSort = (a, b) => a - b;
4042
- const _sfc_main$4 = defineComponent({
4043
- name: "DaoPagination",
4044
- components: {
4045
- DaoSelect,
4046
- DaoOption
4047
- },
4048
- props: paginationProps,
4049
- emits: [
4050
- "update:page-size",
4051
- "update:current-page",
4052
- "next",
4053
- "prev",
4054
- "page-change",
4055
- "size-change"
4056
- ],
4057
- setup(props, { emit }) {
4058
- const { currentPage } = toRefs(props);
4059
- const currentShowPage = ref(currentPage.value);
4060
- const totalText = computed(() => props.totalFormat(props.total));
4061
- const totalPage = computed(() => Math.ceil(props.total / props.pageSize));
4062
- const computedPageSizeOptions = computed(() => {
4063
- if (!props.pageSizeOptions.length) {
4064
- return [props.pageSize];
4065
- }
4066
- const filteredPageSizeOptions = props.pageSizeOptions.filter((i) => {
4067
- const res = i > 0 && Math.floor(i) === i;
4068
- return res;
4069
- });
4070
- if (props.pageSizeOptions.includes(props.pageSize)) {
4071
- return [...filteredPageSizeOptions].sort(numberAscSort);
4072
- }
4073
- return [...filteredPageSizeOptions, props.pageSize].sort(numberAscSort);
4074
- });
4075
- const prevPage = () => {
4076
- if (currentPage.value === 1) {
4077
- return;
4078
- }
4079
- const curPage = currentPage.value - 1;
4080
- emit("update:current-page", curPage);
4081
- emit("prev", curPage);
4082
- };
4083
- const nextPage = () => {
4084
- if (currentPage.value === totalPage.value) {
4085
- return;
4086
- }
4087
- const curPage = currentPage.value + 1;
4088
- emit("update:current-page", curPage);
4089
- emit("next", curPage);
4090
- };
4091
- const targetPage = () => {
4092
- let { value } = currentShowPage;
4093
- if (!value) {
4094
- currentShowPage.value = currentPage.value;
4095
- return;
4096
- }
4097
- if (value > totalPage.value) {
4098
- value = totalPage.value;
4099
- }
4100
- currentShowPage.value = value;
4101
- emit("update:current-page", value);
4102
- emit("page-change", value);
4103
- };
4104
- watch(currentPage, (val) => {
4105
- currentShowPage.value = val;
4106
- });
4107
- watch(totalPage, (val) => {
4108
- if (currentShowPage.value > val) {
4109
- currentShowPage.value = val;
4110
- emit("update:current-page", val);
4111
- }
4112
- });
4113
- const updatePageSize = (val) => {
4114
- currentShowPage.value = currentPage.value;
4115
- emit("update:page-size", val);
4116
- emit("size-change", val);
4117
- };
4118
- const currentShowPageFormat = () => {
4119
- if (!currentShowPage.value) {
4120
- return;
4121
- }
4122
- currentShowPage.value = parseInt(currentShowPage.value.toString().replace(/[^0-9]/g, ""), 10) || "";
4123
- };
4124
- return {
4125
- currentShowPage,
4126
- totalText,
4127
- totalPage,
4128
- computedPageSizeOptions,
4129
- prevPage,
4130
- nextPage,
4131
- targetPage,
4132
- updatePageSize,
4133
- currentShowPageFormat
4134
- };
4135
- }
4136
- });
4137
- const _hoisted_1$3 = { class: "dao-pagination__total" };
4138
- const _hoisted_2$2 = { class: "dao-pagination__pager" };
4139
- const _hoisted_3$1 = ["disabled"];
4140
- const _hoisted_4$1 = { class: "dao-pagination__pager-total" };
4141
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
4142
- const _component_dao_option = resolveComponent("dao-option");
4143
- const _component_dao_select = resolveComponent("dao-select");
4144
- return openBlock(), createElementBlock("div", {
4145
- class: normalizeClass(["dao-pagination", { "dao-pagination--compact": _ctx.compact }])
4146
- }, [
4147
- createElementVNode("div", _hoisted_1$3, toDisplayString(_ctx.totalText), 1),
4148
- createElementVNode("div", _hoisted_2$2, [
4149
- createElementVNode("i", {
4150
- class: normalizeClass([
4151
- "icon-arrow-previous",
4152
- "dao-pagination__pager-prev",
4153
- { "dao-pagination__pager-icon--disabled": _ctx.currentPage === 1 }
4154
- ]),
4155
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.prevPage && _ctx.prevPage(...args))
4156
- }, null, 2),
4157
- withDirectives(createElementVNode("input", {
4158
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.currentShowPage = $event),
4159
- class: "dao-pagination__pager-current",
4160
- disabled: _ctx.totalPage === 1,
4161
- onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
4162
- onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
4163
- }, null, 40, _hoisted_3$1), [
4164
- [vModelText, _ctx.currentShowPage]
4165
- ]),
4166
- createElementVNode("span", _hoisted_4$1, " / " + toDisplayString(_ctx.totalPage), 1),
4167
- createElementVNode("i", {
4168
- class: normalizeClass([
4169
- "icon-arrow-next",
4170
- "dao-pagination__pager-next",
4171
- { "dao-pagination__pager-icon--disabled": _ctx.currentPage === _ctx.totalPage }
4172
- ]),
4173
- onClick: _cache[4] || (_cache[4] = (...args) => _ctx.nextPage && _ctx.nextPage(...args))
4174
- }, null, 2)
4175
- ]),
4176
- createVNode(_component_dao_select, {
4177
- class: "dao-pagination__sizer",
4178
- "model-value": _ctx.pageSize,
4179
- size: "sm",
4180
- style: normalizeStyle({ width: `${_ctx.pageSizerWidth}px` }),
4181
- "menu-class": "dao-pagination__sizer-menu",
4182
- onChange: _ctx.updatePageSize
4183
- }, {
4184
- default: withCtx(() => [
4185
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.computedPageSizeOptions, (size) => {
4186
- return openBlock(), createBlock(_component_dao_option, {
4187
- key: size,
4188
- value: size,
4189
- label: _ctx.pageFormat(size)
4190
- }, null, 8, ["value", "label"]);
4191
- }), 128))
4192
- ]),
4193
- _: 1
4194
- }, 8, ["model-value", "style", "onChange"])
4195
- ], 2);
4196
- }
4197
- var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
4919
+ var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
4198
4920
  const tableProps = {
4199
4921
  id: {
4200
4922
  type: String,
@@ -4962,6 +5684,8 @@ var components = /* @__PURE__ */ Object.freeze({
4962
5684
  [Symbol.toStringTag]: "Module",
4963
5685
  Button: DaoButton,
4964
5686
  ButtonGroup: buttonGroup,
5687
+ Card: card,
5688
+ CardItem: card,
4965
5689
  Checkbox: DaoCheckbox,
4966
5690
  CheckboxGroup: checkboxGroup,
4967
5691
  Dialog: dialog,
@@ -4975,8 +5699,14 @@ var components = /* @__PURE__ */ Object.freeze({
4975
5699
  FormGroup: formGroup,
4976
5700
  Icon: DaoIcon,
4977
5701
  Input: input,
4978
- Popover: _sfc_main$c,
4979
- Popper: DaoPopper,
5702
+ Message: message,
5703
+ Nav: nav,
5704
+ NavHead: navHead,
5705
+ NavItem: navItem,
5706
+ NavSub: navSub,
5707
+ Pagination: DaoPagination,
5708
+ Popover: _sfc_main$9,
5709
+ Popper,
4980
5710
  Progress: progress,
4981
5711
  Radio: radio,
4982
5712
  RadioGroup: radioGroup,
@@ -4987,7 +5717,7 @@ var components = /* @__PURE__ */ Object.freeze({
4987
5717
  Tabs: tabs,
4988
5718
  TabNav: _sfc_main$2,
4989
5719
  TabItem: tabItem,
4990
- Tooltip: _sfc_main$g
5720
+ Tooltip: _sfc_main$l
4991
5721
  });
4992
5722
  var common = "";
4993
5723
  const plugin$1 = (app) => {