fit2cloud-ui-plus 0.0.1-beta.15 → 0.0.1-beta.18

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.
Files changed (65) hide show
  1. package/lib/fit2cloud-ui-plus.es.js +1159 -396
  2. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  3. package/package.json +2 -2
  4. package/src/components/filter-bar/FuFilter.vue +37 -29
  5. package/src/components/filter-bar/FuFilterBar.vue +25 -16
  6. package/src/components/filter-bar/FuFilterInput.vue +45 -0
  7. package/src/components/filter-bar/index.ts +4 -4
  8. package/src/components/search-bar/FuComplexSearch.vue +102 -0
  9. package/src/components/search-bar/FuQuickSearch.vue +61 -0
  10. package/src/components/search-bar/FuSearchBar.vue +154 -0
  11. package/src/components/search-bar/FuSearchBarButton.vue +20 -0
  12. package/src/components/search-bar/FuSearchContions.vue +37 -0
  13. package/src/components/search-bar/complex-components/FuComplexDate.vue +68 -0
  14. package/src/components/search-bar/complex-components/FuComplexDateTime.vue +71 -0
  15. package/src/components/search-bar/complex-components/FuComplexInput.vue +55 -0
  16. package/src/components/search-bar/complex-components/FuComplexSelect.vue +91 -0
  17. package/src/components/search-bar/index.ts +20 -0
  18. package/src/components/search-bar/types.ts +23 -0
  19. package/src/hooks/use-global-config/index.d.ts +1 -0
  20. package/src/hooks/use-locale/index.d.ts +14 -0
  21. package/src/hooks/use-size/index.d.ts +5 -0
  22. package/src/styles/common/function.scss +14 -4
  23. package/src/styles/common/mixins.scss +9 -4
  24. package/src/styles/common/variables.scss +34 -7
  25. package/src/styles/components/filter-bar.scss +15 -13
  26. package/src/styles/components/search-bar.scss +241 -0
  27. package/src/styles/components/table.scss +7 -6
  28. package/src/styles/index.scss +2 -0
  29. package/src/styles/var.scss +8 -0
  30. package/types/examples/pages/search/attributes.d.ts +57 -0
  31. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  32. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  33. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  34. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  35. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  36. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  37. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  38. package/types/examples/pages/search/index.vue.d.ts +150 -0
  39. package/types/examples/pages/search-bar/attributes.d.ts +63 -0
  40. package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
  41. package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
  42. package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
  43. package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
  44. package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
  45. package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
  46. package/types/src/components/filter-bar/FuFilter.vue.d.ts +3 -0
  47. package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +12 -1
  48. package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
  49. package/types/src/components/filter-bar/index.d.ts +2 -2
  50. package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +22 -0
  51. package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +29 -0
  52. package/types/src/components/search-bar/FuSearchBar.vue.d.ts +58 -0
  53. package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +14 -0
  54. package/types/src/components/search-bar/FuSearchContions.vue.d.ts +26 -0
  55. package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
  56. package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
  57. package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
  58. package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
  59. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  60. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  61. package/types/src/components/search-bar/index.d.ts +2 -0
  62. package/types/src/components/search-bar/types.d.ts +17 -0
  63. package/src/.DS_Store +0 -0
  64. package/src/components/.DS_Store +0 -0
  65. package/src/components/filter-bar/FuSearchInput.vue +0 -37
@@ -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, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, getCurrentInstance, inject, computed, unref, isRef, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, withCtx, provide, onMounted, createTextVNode, createCommentVNode, renderSlot, resolveDynamicComponent, toHandlers, nextTick, normalizeClass, withModifiers, h, normalizeStyle, Transition, useSlots, withDirectives, isVNode, Comment, onUpdated, vShow, normalizeProps, guardReactiveProps } from "vue";
20
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, getCurrentInstance, inject, computed, unref, isRef, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, withCtx, provide, onMounted, withDirectives, createTextVNode, createCommentVNode, vShow, renderSlot, resolveDynamicComponent, toHandlers, nextTick, normalizeClass, withModifiers, h, vModelText, normalizeStyle, Transition, useSlots, isVNode, Comment, onUpdated, normalizeProps, guardReactiveProps } from "vue";
21
21
  const COMPONENTS_SIZE = ["", "default", "small", "large"];
22
22
  const validateSize = (val) => ["", ...COMPONENTS_SIZE].includes(val);
23
23
  var _export_sfc = (sfc, props) => {
@@ -27,28 +27,32 @@ var _export_sfc = (sfc, props) => {
27
27
  }
28
28
  return target;
29
29
  };
30
- const __default__$h = { name: "FuSearchInput" };
31
- const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$h), {
30
+ const __default__$q = { name: "FuFilterInput" };
31
+ const _sfc_main$y = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$q), {
32
32
  props: {
33
33
  size: {
34
34
  type: String,
35
35
  validator: validateSize
36
36
  },
37
- value: String
37
+ modelValue: String
38
38
  },
39
- emits: ["input", "change"],
39
+ emits: ["update:modelValue", "change"],
40
40
  setup(__props, { emit }) {
41
41
  const props = __props;
42
42
  const quick = ref("");
43
- watch(() => props.value, (val) => {
43
+ watch(() => props.modelValue, (val) => {
44
44
  quick.value = val;
45
45
  });
46
46
  function input(e) {
47
- emit("input", quick.value, e);
47
+ emit("update:modelValue", quick.value, e);
48
48
  }
49
49
  function blur(e) {
50
50
  emit("change", quick.value, e);
51
51
  }
52
+ function clear() {
53
+ emit("update:modelValue", quick.value);
54
+ emit("change", quick.value);
55
+ }
52
56
  function keydown(e) {
53
57
  const event = e;
54
58
  if (event.key === "Enter") {
@@ -58,13 +62,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
58
62
  return (_ctx, _cache) => {
59
63
  const _component_el_input = resolveComponent("el-input");
60
64
  return openBlock(), createBlock(_component_el_input, mergeProps({
61
- class: "fu-search-input",
65
+ class: "fu-filter-input",
62
66
  "prefix-icon": "Search",
63
67
  modelValue: quick.value,
64
68
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
65
69
  onInput: input,
66
70
  onBlur: blur,
67
- onKeydown: keydown
71
+ onKeydown: keydown,
72
+ onClear: clear
68
73
  }, _ctx.$attrs, {
69
74
  clearable: "",
70
75
  size: __props.size
@@ -72,7 +77,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
72
77
  };
73
78
  }
74
79
  }));
75
- var FuSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuSearchInput.vue"]]);
80
+ var FuFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterInput.vue"]]);
76
81
  const globalConfig = ref();
77
82
  function useGlobalConfig(key, defaultValue = void 0) {
78
83
  const config = getCurrentInstance() ? inject(Symbol(), globalConfig) : globalConfig;
@@ -529,9 +534,9 @@ const useLocale = () => {
529
534
  const locale = useGlobalConfig("locale");
530
535
  return buildLocaleContext(computed(() => locale.value || Chinese));
531
536
  };
532
- const _hoisted_1$c = { class: "fu-filter-conditions" };
533
- const _hoisted_2$7 = { class: "condition-text" };
534
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
537
+ const _hoisted_1$k = { class: "fu-filter-conditions" };
538
+ const _hoisted_2$e = { class: "condition-text" };
539
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
535
540
  __name: "FuFilterConditions",
536
541
  props: {
537
542
  conditions: Array
@@ -550,13 +555,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
550
555
  return (_ctx, _cache) => {
551
556
  const _component_CloseBold = resolveComponent("CloseBold");
552
557
  const _component_el_icon = resolveComponent("el-icon");
553
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
558
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
554
559
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.conditions, (condition, index) => {
555
560
  return openBlock(), createElementBlock("div", {
556
561
  class: "fu-filter-conditions__item",
557
562
  key: index
558
563
  }, [
559
- createElementVNode("div", _hoisted_2$7, toDisplayString(text(condition)), 1),
564
+ createElementVNode("div", _hoisted_2$e, toDisplayString(text(condition)), 1),
560
565
  createVNode(_component_el_icon, {
561
566
  class: "fu-scale-click",
562
567
  onClick: ($event) => remove(index)
@@ -572,16 +577,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
572
577
  };
573
578
  }
574
579
  });
575
- var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilterConditions.vue"]]);
580
+ var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterConditions.vue"]]);
576
581
  const selectKey = Symbol("SelectKey");
577
- const referenceKey = Symbol("ReferenceKey");
578
- const _hoisted_1$b = { class: "fu-filter__result" };
579
- const _hoisted_2$6 = { style: { "opacity": "0.6" } };
580
- const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "fu-filter__split" }, null, -1);
582
+ const referenceKey$1 = Symbol("ReferenceKey");
583
+ const _hoisted_1$j = { class: "fu-filter__result" };
584
+ const _hoisted_2$d = { style: { "opacity": "0.6" } };
585
+ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("div", { class: "fu-filter__split" }, null, -1);
581
586
  const _hoisted_4$2 = { class: "drawer-body" };
582
587
  const _hoisted_5$1 = { class: "drawer-footer" };
583
- const __default__$g = { name: "FuFilter" };
584
- const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$g), {
588
+ const __default__$p = { name: "FuFilter" };
589
+ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$p), {
585
590
  props: {
586
591
  size: {
587
592
  type: String,
@@ -595,10 +600,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
595
600
  drawerWidth: {
596
601
  type: [Number, String],
597
602
  default: "680px"
598
- }
603
+ },
604
+ showEmpty: Boolean
599
605
  },
600
606
  emits: ["filter"],
601
607
  setup(__props, { expose, emit }) {
608
+ const props = __props;
602
609
  const { t } = useLocale();
603
610
  const filterRef = ref(null);
604
611
  const conditionsRef = ref(null);
@@ -683,7 +690,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
683
690
  const el = filterRef.value;
684
691
  return el === null ? 0 : el.getBoundingClientRect().width - 210;
685
692
  });
686
- provide(referenceKey, references);
693
+ const show = computed(() => {
694
+ return conditions.value.length > 0 && props.showEmpty === false || props.showEmpty;
695
+ });
696
+ provide(referenceKey$1, references);
687
697
  onMounted(() => {
688
698
  drawer.value = false;
689
699
  });
@@ -698,61 +708,65 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
698
708
  const _component_Delete = resolveComponent("Delete");
699
709
  const _component_el_button = resolveComponent("el-button");
700
710
  const _component_el_drawer = resolveComponent("el-drawer");
701
- return openBlock(), createElementBlock("div", {
702
- class: "fu-filter",
703
- ref_key: "filterRef",
704
- ref: filterRef
705
- }, [
706
- createElementVNode("div", _hoisted_1$b, [
707
- createTextVNode(toDisplayString(__props.count) + " ", 1),
708
- createElementVNode("span", _hoisted_2$6, toDisplayString(unref(t)("fu.filter_bar.results")), 1)
709
- ]),
710
- _hoisted_3$4,
711
- scroll.value ? (openBlock(), createElementBlock("div", {
712
- key: 0,
713
- class: "fu-filter__scroll",
714
- onMousedown: left,
715
- onMouseup: mouseup
716
- }, [
717
- createVNode(_component_el_icon, null, {
718
- default: withCtx(() => [
719
- createVNode(_component_ArrowLeftBold)
720
- ]),
721
- _: 1
722
- })
723
- ], 32)) : createCommentVNode("v-if", true),
724
- createVNode(FuFilterConditions, {
725
- conditions: conditions.value,
726
- onChange: change,
727
- ref_key: "conditionsRef",
728
- ref: conditionsRef
729
- }, null, 8, ["conditions"]),
730
- scroll.value ? (openBlock(), createElementBlock("div", {
731
- key: 1,
732
- class: "fu-filter__scroll",
733
- onMousedown: right,
734
- onMouseup: mouseup
735
- }, [
736
- createVNode(_component_el_icon, null, {
737
- default: withCtx(() => [
738
- createVNode(_component_ArrowRightBold)
739
- ]),
740
- _: 1
741
- })
742
- ], 32)) : createCommentVNode("v-if", true),
743
- conditions.value.length > 0 ? (openBlock(), createElementBlock("div", {
744
- key: 2,
745
- class: "fu-filter__clear fu-scale-click",
746
- onClick: clear
711
+ return openBlock(), createElementBlock(Fragment, null, [
712
+ withDirectives(createElementVNode("div", {
713
+ class: "fu-filter",
714
+ ref_key: "filterRef",
715
+ ref: filterRef
747
716
  }, [
748
- createVNode(_component_el_icon, null, {
749
- default: withCtx(() => [
750
- createVNode(_component_Delete)
751
- ]),
752
- _: 1
753
- }),
754
- createTextVNode(" " + toDisplayString(unref(t)("fu.filter_bar.clear")), 1)
755
- ])) : createCommentVNode("v-if", true),
717
+ createElementVNode("div", _hoisted_1$j, [
718
+ createTextVNode(toDisplayString(__props.count) + " ", 1),
719
+ createElementVNode("span", _hoisted_2$d, toDisplayString(unref(t)("fu.filter_bar.results")), 1)
720
+ ]),
721
+ _hoisted_3$b,
722
+ scroll.value ? (openBlock(), createElementBlock("div", {
723
+ key: 0,
724
+ class: "fu-filter__scroll",
725
+ onMousedown: left,
726
+ onMouseup: mouseup
727
+ }, [
728
+ createVNode(_component_el_icon, null, {
729
+ default: withCtx(() => [
730
+ createVNode(_component_ArrowLeftBold)
731
+ ]),
732
+ _: 1
733
+ })
734
+ ], 32)) : createCommentVNode("v-if", true),
735
+ createVNode(FuFilterConditions, {
736
+ conditions: conditions.value,
737
+ onChange: change,
738
+ ref_key: "conditionsRef",
739
+ ref: conditionsRef
740
+ }, null, 8, ["conditions"]),
741
+ scroll.value ? (openBlock(), createElementBlock("div", {
742
+ key: 1,
743
+ class: "fu-filter__scroll",
744
+ onMousedown: right,
745
+ onMouseup: mouseup
746
+ }, [
747
+ createVNode(_component_el_icon, null, {
748
+ default: withCtx(() => [
749
+ createVNode(_component_ArrowRightBold)
750
+ ]),
751
+ _: 1
752
+ })
753
+ ], 32)) : createCommentVNode("v-if", true),
754
+ conditions.value.length > 0 ? (openBlock(), createElementBlock("div", {
755
+ key: 2,
756
+ class: "fu-filter__clear fu-scale-click",
757
+ onClick: clear
758
+ }, [
759
+ createVNode(_component_el_icon, null, {
760
+ default: withCtx(() => [
761
+ createVNode(_component_Delete)
762
+ ]),
763
+ _: 1
764
+ }),
765
+ createTextVNode(" " + toDisplayString(unref(t)("fu.filter_bar.clear")), 1)
766
+ ])) : createCommentVNode("v-if", true)
767
+ ], 512), [
768
+ [vShow, unref(show)]
769
+ ]),
756
770
  createVNode(_component_el_drawer, {
757
771
  size: __props.drawerWidth,
758
772
  "custom-class": "fu-filter__drawer",
@@ -798,19 +812,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
798
812
  ]),
799
813
  _: 3
800
814
  }, 8, ["size", "title", "modelValue"])
801
- ], 512);
815
+ ], 64);
802
816
  };
803
817
  }
804
818
  }));
805
- var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilter.vue"]]);
806
- const _hoisted_1$a = { class: "fu-filter-bar" };
807
- const _hoisted_2$5 = { class: "fu-filter-bar__top" };
808
- const _hoisted_3$3 = { class: "top_left" };
819
+ var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilter.vue"]]);
820
+ const _hoisted_1$i = { class: "fu-filter-bar" };
821
+ const _hoisted_2$c = { class: "fu-filter-bar__top" };
822
+ const _hoisted_3$a = { class: "top_left" };
809
823
  const _hoisted_4$1 = { class: "top_right" };
810
824
  const _hoisted_5 = { key: 0 };
811
825
  const _hoisted_6 = { class: "fu-filter-bar__bottom" };
812
- const __default__$f = { name: "FuFilterBar" };
813
- const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$f), {
826
+ const __default__$o = { name: "FuFilterBar" };
827
+ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$o), {
814
828
  props: {
815
829
  size: {
816
830
  type: String,
@@ -818,7 +832,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
818
832
  },
819
833
  resultCount: Number,
820
834
  quickPlaceholder: String,
821
- components: Array
835
+ components: Array,
836
+ showEmpty: {
837
+ type: Boolean,
838
+ default: false
839
+ }
822
840
  },
823
841
  emits: ["exec"],
824
842
  setup(__props, { expose, emit }) {
@@ -842,43 +860,48 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
842
860
  (_a2 = filterRef.value) == null ? void 0 : _a2.setConditions(conditionObj2);
843
861
  }
844
862
  const conditionObj = computed(() => {
845
- let obj = { quick: quick.value };
863
+ let obj = {};
864
+ if (quick.value) {
865
+ obj.quick = quick.value;
866
+ }
846
867
  conditions.value.forEach((c) => {
847
868
  obj[c.field] = c;
848
869
  });
849
870
  return obj;
850
871
  });
851
872
  expose({
852
- setConditions
873
+ setConditions,
874
+ open
853
875
  });
854
876
  return (_ctx, _cache) => {
855
877
  const _component_el_button = resolveComponent("el-button");
856
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
857
- createElementVNode("div", _hoisted_2$5, [
858
- createElementVNode("div", _hoisted_3$3, [
878
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
879
+ createElementVNode("div", _hoisted_2$c, [
880
+ createElementVNode("div", _hoisted_3$a, [
859
881
  renderSlot(_ctx.$slots, "tl")
860
882
  ]),
861
883
  createElementVNode("div", _hoisted_4$1, [
862
- renderSlot(_ctx.$slots, "tr", {}, () => [
863
- createVNode(FuSearchInput, {
884
+ renderSlot(_ctx.$slots, "tr", { condition: unref(conditionObj) }, () => [
885
+ createVNode(FuFilterInput, {
864
886
  size: __props.size,
865
887
  modelValue: quick.value,
866
888
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
867
889
  placeholder: __props.quickPlaceholder,
868
890
  onChange: change
869
- }, null, 8, ["size", "modelValue", "placeholder"]),
870
- createVNode(_component_el_button, {
871
- onClick: open,
872
- icon: "Filter",
873
- size: __props.size
874
- }, {
875
- default: withCtx(() => [
876
- createTextVNode(toDisplayString(unref(t)("fu.filter_bar.filter")) + " ", 1),
877
- conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5, "(" + toDisplayString(conditions.value.length) + ")", 1)) : createCommentVNode("v-if", true)
878
- ]),
879
- _: 1
880
- }, 8, ["size"])
891
+ }, null, 8, ["size", "modelValue", "placeholder"])
881
892
  ]),
893
+ createVNode(_component_el_button, {
894
+ class: "fu-filter-button",
895
+ onClick: open,
896
+ icon: "Filter",
897
+ size: __props.size
898
+ }, {
899
+ default: withCtx(() => [
900
+ createTextVNode(toDisplayString(unref(t)("fu.filter_bar.filter")) + " ", 1),
901
+ conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5, "(" + toDisplayString(conditions.value.length) + ")", 1)) : createCommentVNode("v-if", true)
902
+ ]),
903
+ _: 1
904
+ }, 8, ["size"]),
882
905
  renderSlot(_ctx.$slots, "buttons")
883
906
  ])
884
907
  ]),
@@ -889,21 +912,22 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
889
912
  onFilter: filter,
890
913
  count: __props.resultCount,
891
914
  components: __props.components,
892
- size: __props.size
915
+ size: __props.size,
916
+ "show-empty": __props.showEmpty
893
917
  }, {
894
918
  default: withCtx(() => [
895
919
  renderSlot(_ctx.$slots, "default")
896
920
  ]),
897
921
  _: 3
898
- }, 8, ["count", "components", "size"])
922
+ }, 8, ["count", "components", "size", "show-empty"])
899
923
  ])
900
924
  ]);
901
925
  };
902
926
  }
903
927
  }));
904
- var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilterBar.vue"]]);
905
- const _hoisted_1$9 = ["onClick"];
906
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
928
+ var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterBar.vue"]]);
929
+ const _hoisted_1$h = ["onClick"];
930
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
907
931
  __name: "FuFilterOption",
908
932
  props: {
909
933
  value: {
@@ -935,17 +959,17 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
935
959
  return openBlock(), createElementBlock("div", {
936
960
  class: normalizeClass(["fu-filter-option", { "is-selected": unref(selected), "is-disabled": __props.disabled }]),
937
961
  onClick: withModifiers(click, ["stop"])
938
- }, toDisplayString(__props.label || __props.value), 11, _hoisted_1$9);
962
+ }, toDisplayString(__props.label || __props.value), 11, _hoisted_1$h);
939
963
  };
940
964
  }
941
965
  });
942
- var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterOption.vue"]]);
943
- const _hoisted_1$8 = { class: "fu-filter-component" };
944
- const _hoisted_2$4 = { class: "fu-filter-component__label" };
945
- const _hoisted_3$2 = { class: "fu-filter-component__content" };
966
+ var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterOption.vue"]]);
967
+ const _hoisted_1$g = { class: "fu-filter-component" };
968
+ const _hoisted_2$b = { class: "fu-filter-component__label" };
969
+ const _hoisted_3$9 = { class: "fu-filter-component__content" };
946
970
  const _hoisted_4 = { class: "fu-filter-option" };
947
- const __default__$e = { name: "FuFilterSelect" };
948
- const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$e), {
971
+ const __default__$n = { name: "FuFilterSelect" };
972
+ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$n), {
949
973
  props: {
950
974
  size: {
951
975
  type: String,
@@ -1040,7 +1064,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1040
1064
  setSelected,
1041
1065
  selection
1042
1066
  });
1043
- const references = inject(referenceKey);
1067
+ const references = inject(referenceKey$1);
1044
1068
  const field = props.field;
1045
1069
  const reference = { field, init, getCondition };
1046
1070
  references == null ? void 0 : references.value.push(reference);
@@ -1054,9 +1078,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1054
1078
  const _component_Plus = resolveComponent("Plus");
1055
1079
  const _component_el_icon = resolveComponent("el-icon");
1056
1080
  const _component_el_popover = resolveComponent("el-popover");
1057
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
1058
- createElementVNode("div", _hoisted_2$4, toDisplayString(__props.label), 1),
1059
- createElementVNode("div", _hoisted_3$2, [
1081
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
1082
+ createElementVNode("div", _hoisted_2$b, toDisplayString(__props.label), 1),
1083
+ createElementVNode("div", _hoisted_3$9, [
1060
1084
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showOptions), (o) => {
1061
1085
  return openBlock(), createBlock(FuFilterOption, {
1062
1086
  label: o.label,
@@ -1121,7 +1145,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1121
1145
  };
1122
1146
  }
1123
1147
  }));
1124
- var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterSelect.vue"]]);
1148
+ var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterSelect.vue"]]);
1125
1149
  const getCheckDate = (timestamp) => {
1126
1150
  if (!timestamp)
1127
1151
  return false;
@@ -1151,11 +1175,975 @@ const dateFormat = (timestamp) => {
1151
1175
  const d = (dt.getDate() + "").padStart(2, "0");
1152
1176
  return `${y}-${m}-${d}`;
1153
1177
  };
1154
- const _hoisted_1$7 = { class: "fu-filter-component" };
1155
- const _hoisted_2$3 = { class: "fu-filter-component__label" };
1156
- const _hoisted_3$1 = { class: "fu-filter-component__content" };
1157
- const __default__$d = { name: "FuFilterDate" };
1158
- const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$d), {
1178
+ const _hoisted_1$f = { class: "fu-filter-component" };
1179
+ const _hoisted_2$a = { class: "fu-filter-component__label" };
1180
+ const _hoisted_3$8 = { class: "fu-filter-component__content" };
1181
+ const __default__$m = { name: "FuFilterDate" };
1182
+ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$m), {
1183
+ props: {
1184
+ size: {
1185
+ type: String,
1186
+ validator: validateSize
1187
+ },
1188
+ label: String,
1189
+ field: {
1190
+ type: String,
1191
+ required: true
1192
+ },
1193
+ valueFormat: {
1194
+ type: String,
1195
+ default: "x"
1196
+ }
1197
+ },
1198
+ setup(__props, { expose }) {
1199
+ const props = __props;
1200
+ const { t } = useLocale();
1201
+ const value = ref("");
1202
+ const valueLabel = computed(() => {
1203
+ return dateFormat(value.value[0]) + " - " + dateFormat(value.value[1]);
1204
+ });
1205
+ function getCondition() {
1206
+ if (!String(value.value))
1207
+ return;
1208
+ let { field: field2, label } = props;
1209
+ return { field: field2, label, value: value.value, valueLabel: valueLabel.value };
1210
+ }
1211
+ function init(v) {
1212
+ value.value = v !== void 0 ? v : "";
1213
+ }
1214
+ const references = inject(referenceKey$1);
1215
+ const field = props.field;
1216
+ const reference = { field, init, getCondition };
1217
+ references == null ? void 0 : references.value.push(reference);
1218
+ expose({
1219
+ getCondition,
1220
+ init
1221
+ });
1222
+ return (_ctx, _cache) => {
1223
+ const _component_el_date_picker = resolveComponent("el-date-picker");
1224
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
1225
+ createElementVNode("div", _hoisted_2$a, toDisplayString(__props.label), 1),
1226
+ createElementVNode("div", _hoisted_3$8, [
1227
+ createCommentVNode("configSize"),
1228
+ createVNode(_component_el_date_picker, mergeProps({
1229
+ class: "fu-filter-date",
1230
+ modelValue: value.value,
1231
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
1232
+ }, _ctx.$attrs, {
1233
+ size: __props.size,
1234
+ placeholder: unref(t)("fu.search_bar.select_date"),
1235
+ type: "daterange",
1236
+ "value-format": __props.valueFormat,
1237
+ "start-placeholder": unref(t)("fu.search_bar.start_date"),
1238
+ "end-placeholder": unref(t)("fu.search_bar.end_date")
1239
+ }), null, 16, ["modelValue", "size", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
1240
+ ])
1241
+ ]);
1242
+ };
1243
+ }
1244
+ }));
1245
+ var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDate.vue"]]);
1246
+ const _hoisted_1$e = { class: "fu-filter-component" };
1247
+ const _hoisted_2$9 = { class: "fu-filter-component__label" };
1248
+ const _hoisted_3$7 = { class: "fu-filter-component__content" };
1249
+ const __default__$l = { name: "FuFilterDateTime" };
1250
+ const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$l), {
1251
+ props: {
1252
+ size: {
1253
+ type: String,
1254
+ validator: validateSize
1255
+ },
1256
+ label: String,
1257
+ field: {
1258
+ type: String,
1259
+ required: true
1260
+ },
1261
+ valueFormat: {
1262
+ type: String,
1263
+ default: "x"
1264
+ }
1265
+ },
1266
+ setup(__props, { expose }) {
1267
+ const props = __props;
1268
+ const { t } = useLocale();
1269
+ const value = ref("");
1270
+ const valueLabel = computed(() => {
1271
+ return datetimeFormat(value.value[0]) + " - " + datetimeFormat(value.value[1]);
1272
+ });
1273
+ function getCondition() {
1274
+ if (!String(value.value))
1275
+ return;
1276
+ let { field: field2, label } = props;
1277
+ return { field: field2, label, value: value.value, valueLabel: valueLabel.value };
1278
+ }
1279
+ function init(v) {
1280
+ value.value = v !== void 0 ? v : "";
1281
+ }
1282
+ const references = inject(referenceKey$1);
1283
+ const field = props.field;
1284
+ const reference = { field, init, getCondition };
1285
+ references == null ? void 0 : references.value.push(reference);
1286
+ expose({
1287
+ getCondition,
1288
+ init
1289
+ });
1290
+ return (_ctx, _cache) => {
1291
+ const _component_el_date_picker = resolveComponent("el-date-picker");
1292
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
1293
+ createElementVNode("div", _hoisted_2$9, toDisplayString(__props.label), 1),
1294
+ createElementVNode("div", _hoisted_3$7, [
1295
+ createCommentVNode(' :size="configSize" '),
1296
+ createVNode(_component_el_date_picker, mergeProps({
1297
+ class: "fu-filter-date",
1298
+ modelValue: value.value,
1299
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
1300
+ }, _ctx.$attrs, {
1301
+ size: __props.size,
1302
+ placeholder: unref(t)("fu.search_bar.select_date_time"),
1303
+ type: "datetimerange",
1304
+ "value-format": __props.valueFormat,
1305
+ "start-placeholder": unref(t)("fu.search_bar.start_date_time"),
1306
+ "end-placeholder": unref(t)("fu.search_bar.end_date_time")
1307
+ }), null, 16, ["modelValue", "size", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
1308
+ ])
1309
+ ]);
1310
+ };
1311
+ }
1312
+ }));
1313
+ var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDateTime.vue"]]);
1314
+ FuFilterBar.install = (app) => {
1315
+ app.component(FuFilterBar.name, FuFilterBar);
1316
+ app.component(FuFilter.name, FuFilter);
1317
+ app.component(FuFilterInput.name, FuFilterInput);
1318
+ app.component(FuFilterSelect.name, FuFilterSelect);
1319
+ app.component(FuFilterDate.name, FuFilterDate);
1320
+ app.component(FuFilterDateTime.name, FuFilterDateTime);
1321
+ };
1322
+ var __glob_1_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1323
+ __proto__: null,
1324
+ "default": FuFilterBar
1325
+ }, Symbol.toStringTag, { value: "Module" }));
1326
+ const uuid = function() {
1327
+ let d = new Date().getTime();
1328
+ let d2 = performance && performance.now && performance.now() * 1e3 || 0;
1329
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
1330
+ let r = Math.random() * 16;
1331
+ if (d > 0) {
1332
+ r = (d + r) % 16 | 0;
1333
+ d = Math.floor(d / 16);
1334
+ } else {
1335
+ r = (d2 + r) % 16 | 0;
1336
+ d2 = Math.floor(d2 / 16);
1337
+ }
1338
+ return (c === "x" ? r : r & 3 | 8).toString(16);
1339
+ });
1340
+ };
1341
+ const TRIGGERS = ["manual", "onClick", "onDblclick"];
1342
+ const _sfc_main$q = defineComponent({
1343
+ name: "FuReadWriteSwitch",
1344
+ props: {
1345
+ modelValue: Boolean,
1346
+ data: [String, Number, Boolean],
1347
+ writeTrigger: {
1348
+ type: String,
1349
+ default: "onClick",
1350
+ validator: (value) => {
1351
+ return TRIGGERS.includes(value);
1352
+ }
1353
+ }
1354
+ },
1355
+ setup(props, { slots, emit }) {
1356
+ const id = ref(uuid());
1357
+ const write = ref(props.modelValue === void 0 ? false : props.modelValue);
1358
+ watch(() => props.modelValue, (v) => {
1359
+ if (v === write.value)
1360
+ return;
1361
+ if (v) {
1362
+ switchWrite();
1363
+ } else {
1364
+ switchRead();
1365
+ }
1366
+ });
1367
+ function change() {
1368
+ emit("update:modelValue", write.value);
1369
+ emit("change", [props.data, write.value]);
1370
+ }
1371
+ function switchWrite() {
1372
+ write.value = true;
1373
+ nextTick(() => {
1374
+ const nid = document.getElementById(id.value);
1375
+ const input = nid == null ? void 0 : nid.querySelector("input");
1376
+ input == null ? void 0 : input.click();
1377
+ input == null ? void 0 : input.focus();
1378
+ const textarea = nid == null ? void 0 : nid.querySelector("textarea");
1379
+ textarea == null ? void 0 : textarea.focus();
1380
+ change();
1381
+ });
1382
+ }
1383
+ function switchRead() {
1384
+ write.value = false;
1385
+ change();
1386
+ }
1387
+ return () => {
1388
+ const context = {
1389
+ class: "fu-read-write-switch",
1390
+ id: id.value
1391
+ };
1392
+ if (!write.value && props.writeTrigger !== TRIGGERS[0]) {
1393
+ context[props.writeTrigger] = switchWrite;
1394
+ }
1395
+ let children = props.data;
1396
+ if (!write.value && slots.read) {
1397
+ children = slots.read({
1398
+ write: switchWrite
1399
+ });
1400
+ }
1401
+ if (write.value && slots.default) {
1402
+ children = slots.default({
1403
+ read: switchRead
1404
+ });
1405
+ }
1406
+ return h("div", context, children);
1407
+ };
1408
+ }
1409
+ });
1410
+ var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuReadWriteSwitch.vue"]]);
1411
+ const __default__$k = { name: "FuInputRwSwitch" };
1412
+ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$k), {
1413
+ props: {
1414
+ modelValue: [String, Number],
1415
+ writeTrigger: {
1416
+ type: String,
1417
+ default: "onClick",
1418
+ validator: (value) => {
1419
+ return ["onClick", "onDblclick"].includes(value);
1420
+ }
1421
+ }
1422
+ },
1423
+ emits: ["input", "blur"],
1424
+ setup(__props, { emit }) {
1425
+ const props = __props;
1426
+ const data = ref(props.modelValue);
1427
+ watch(() => props.modelValue, (v) => {
1428
+ data.value = v;
1429
+ });
1430
+ function input(e) {
1431
+ emit("input", data.value, e);
1432
+ }
1433
+ function blur(read, e) {
1434
+ emit("blur", data.value, e);
1435
+ read();
1436
+ }
1437
+ function keydown(read, e) {
1438
+ if (e.key === "Enter") {
1439
+ read();
1440
+ }
1441
+ }
1442
+ return (_ctx, _cache) => {
1443
+ const _component_el_input = resolveComponent("el-input");
1444
+ return openBlock(), createBlock(FuReadWriteSwitch, {
1445
+ "write-trigger": __props.writeTrigger,
1446
+ data: data.value
1447
+ }, {
1448
+ default: withCtx(({ read }) => [
1449
+ createVNode(_component_el_input, mergeProps({
1450
+ modelValue: data.value,
1451
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event)
1452
+ }, _ctx.$attrs, {
1453
+ onInput: input,
1454
+ onBlur: ($event) => blur(read, $event),
1455
+ onKeydown: ($event) => keydown(read, $event)
1456
+ }), null, 16, ["modelValue", "onBlur", "onKeydown"])
1457
+ ]),
1458
+ _: 1
1459
+ }, 8, ["write-trigger", "data"]);
1460
+ };
1461
+ }
1462
+ }));
1463
+ var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuInputRwSwitch.vue"]]);
1464
+ const __default__$j = { name: "FuSelectRwSwitch" };
1465
+ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$j), {
1466
+ props: {
1467
+ modelValue: [String, Number],
1468
+ options: {
1469
+ type: Array,
1470
+ default: []
1471
+ },
1472
+ writeTrigger: {
1473
+ type: String,
1474
+ default: "onClick",
1475
+ validator: (value) => {
1476
+ return ["onClick", "onDblclick"].includes(value);
1477
+ }
1478
+ }
1479
+ },
1480
+ emits: ["input", "blur", "change"],
1481
+ setup(__props, { emit }) {
1482
+ const props = __props;
1483
+ const data = ref(props.modelValue);
1484
+ watch(() => props.modelValue, (v) => {
1485
+ data.value = v;
1486
+ });
1487
+ function input(e) {
1488
+ emit("input", data.value, e);
1489
+ }
1490
+ function blur(read, e) {
1491
+ setTimeout(() => {
1492
+ read();
1493
+ }, 100);
1494
+ emit("blur", data.value, e);
1495
+ }
1496
+ function change(read, e) {
1497
+ emit("change", data.value, e);
1498
+ read();
1499
+ }
1500
+ return (_ctx, _cache) => {
1501
+ const _component_el_option = resolveComponent("el-option");
1502
+ const _component_el_select = resolveComponent("el-select");
1503
+ const _component_fu_read_write_switch = resolveComponent("fu-read-write-switch");
1504
+ return openBlock(), createBlock(_component_fu_read_write_switch, {
1505
+ "write-trigger": __props.writeTrigger,
1506
+ data: data.value
1507
+ }, {
1508
+ read: withCtx(() => [
1509
+ renderSlot(_ctx.$slots, "read", {}, () => [
1510
+ createTextVNode(toDisplayString(data.value), 1)
1511
+ ])
1512
+ ]),
1513
+ default: withCtx(({ read }) => [
1514
+ createVNode(_component_el_select, mergeProps({
1515
+ modelValue: data.value,
1516
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event)
1517
+ }, _ctx.$attrs, {
1518
+ onInput: input,
1519
+ onBlur: ($event) => blur(read, $event),
1520
+ onChange: ($event) => change(read, $event)
1521
+ }), {
1522
+ default: withCtx(() => [
1523
+ renderSlot(_ctx.$slots, "default", {}, () => [
1524
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
1525
+ return openBlock(), createBlock(_component_el_option, {
1526
+ key: item.value,
1527
+ label: item.label,
1528
+ value: item.value
1529
+ }, null, 8, ["label", "value"]);
1530
+ }), 128))
1531
+ ])
1532
+ ]),
1533
+ _: 2
1534
+ }, 1040, ["modelValue", "onBlur", "onChange"])
1535
+ ]),
1536
+ _: 3
1537
+ }, 8, ["write-trigger", "data"]);
1538
+ };
1539
+ }
1540
+ }));
1541
+ var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuSelectRwSwitch.vue"]]);
1542
+ FuReadWriteSwitch.install = (app) => {
1543
+ app.component(FuReadWriteSwitch.name, FuReadWriteSwitch);
1544
+ app.component(FuInputRwSwitch.name, FuInputRwSwitch);
1545
+ app.component(FuSelectRwSwitch.name, FuSelectRwSwitch);
1546
+ };
1547
+ var __glob_1_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1548
+ __proto__: null,
1549
+ "default": FuReadWriteSwitch
1550
+ }, Symbol.toStringTag, { value: "Module" }));
1551
+ const _hoisted_1$d = ["placeholder"];
1552
+ const __default__$i = { name: "FuQuickSearch" };
1553
+ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$i), {
1554
+ props: {
1555
+ size: {
1556
+ type: String,
1557
+ validator: validateSize
1558
+ },
1559
+ modelValue: String,
1560
+ placeholder: String,
1561
+ useIcon: {
1562
+ type: Boolean,
1563
+ default: true
1564
+ }
1565
+ },
1566
+ emits: ["update:modelValue", "change"],
1567
+ setup(__props, { emit }) {
1568
+ const props = __props;
1569
+ const focused = ref(false);
1570
+ const value = computed({
1571
+ get: () => props.modelValue,
1572
+ set: (val) => {
1573
+ emit("update:modelValue", val);
1574
+ }
1575
+ });
1576
+ function focus() {
1577
+ focused.value = true;
1578
+ }
1579
+ function blur(e) {
1580
+ if (focused.value) {
1581
+ emit("change", value.value, e);
1582
+ }
1583
+ focused.value = false;
1584
+ }
1585
+ function keydown(e) {
1586
+ const { code } = e;
1587
+ if (code === "Enter") {
1588
+ focused.value = false;
1589
+ emit("change", value.value, e);
1590
+ }
1591
+ }
1592
+ return (_ctx, _cache) => {
1593
+ const _component_Search = resolveComponent("Search");
1594
+ const _component_el_icon = resolveComponent("el-icon");
1595
+ return openBlock(), createElementBlock("div", {
1596
+ class: normalizeClass(["fu-quick-search", "fu-quick-search--" + __props.size])
1597
+ }, [
1598
+ __props.useIcon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
1599
+ default: withCtx(() => [
1600
+ createVNode(_component_Search)
1601
+ ]),
1602
+ _: 1
1603
+ })) : createCommentVNode("v-if", true),
1604
+ createElementVNode("label", null, [
1605
+ withDirectives(createElementVNode("input", {
1606
+ placeholder: __props.placeholder,
1607
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
1608
+ onBlur: blur,
1609
+ onFocus: focus,
1610
+ onKeydown: keydown
1611
+ }, null, 40, _hoisted_1$d), [
1612
+ [vModelText, unref(value)]
1613
+ ])
1614
+ ])
1615
+ ], 2);
1616
+ };
1617
+ }
1618
+ }));
1619
+ var FuQuickSearch = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuQuickSearch.vue"]]);
1620
+ const referenceKey = Symbol("ReferenceKey");
1621
+ const _hoisted_1$c = { class: "fu-complex-components" };
1622
+ const _hoisted_2$8 = { class: "fu-complex-components__body" };
1623
+ const _hoisted_3$6 = { class: "fu-complex-components__footer" };
1624
+ const __default__$h = { name: "FuComplexSearch" };
1625
+ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$h), {
1626
+ props: {
1627
+ size: {
1628
+ type: String,
1629
+ validator: validateSize
1630
+ },
1631
+ components: Array
1632
+ },
1633
+ emits: ["close", "change"],
1634
+ setup(__props, { expose, emit }) {
1635
+ const active = ref(false);
1636
+ const references = inject(referenceKey);
1637
+ const showComplex = computed(() => {
1638
+ return references ? references.value.length > 0 : false;
1639
+ });
1640
+ const { t } = useLocale();
1641
+ function hide() {
1642
+ emit("close");
1643
+ }
1644
+ function toggle() {
1645
+ active.value = !active.value;
1646
+ if (active.value) {
1647
+ references == null ? void 0 : references.value.forEach((r) => r.init());
1648
+ }
1649
+ }
1650
+ function close() {
1651
+ active.value = false;
1652
+ }
1653
+ function ok() {
1654
+ close();
1655
+ exec();
1656
+ }
1657
+ function exec() {
1658
+ let conditions = [];
1659
+ references == null ? void 0 : references.value.forEach((r) => {
1660
+ let condition = r.getCondition();
1661
+ if (condition && condition.value !== void 0) {
1662
+ conditions.push(condition);
1663
+ }
1664
+ });
1665
+ emit("change", conditions);
1666
+ }
1667
+ function setConditions(conditionObj) {
1668
+ let result = [];
1669
+ if (conditionObj) {
1670
+ Object.keys(conditionObj).forEach((key) => {
1671
+ let c = conditionObj[key];
1672
+ references == null ? void 0 : references.value.forEach((r) => {
1673
+ if (r.field === key) {
1674
+ r.init(c.value);
1675
+ const condition = r.getCondition();
1676
+ if (condition) {
1677
+ result.push(condition);
1678
+ }
1679
+ }
1680
+ });
1681
+ });
1682
+ }
1683
+ return result;
1684
+ }
1685
+ expose({
1686
+ setConditions,
1687
+ close
1688
+ });
1689
+ return (_ctx, _cache) => {
1690
+ const _component_el_button = resolveComponent("el-button");
1691
+ const _component_el_popover = resolveComponent("el-popover");
1692
+ return openBlock(), createBlock(_component_el_popover, {
1693
+ visible: active.value,
1694
+ "show-arrow": false,
1695
+ onHide: hide,
1696
+ width: "auto",
1697
+ "popper-class": "fu-complex-components"
1698
+ }, {
1699
+ reference: withCtx(() => [
1700
+ withDirectives(createVNode(_component_el_button, {
1701
+ circle: "",
1702
+ icon: "ArrowRightBold",
1703
+ onClick: toggle,
1704
+ size: __props.size,
1705
+ class: normalizeClass(["fu-complex-components-trigger", { "is-active": active.value }])
1706
+ }, null, 8, ["size", "class"]), [
1707
+ [vShow, unref(showComplex)]
1708
+ ])
1709
+ ]),
1710
+ default: withCtx(() => [
1711
+ createElementVNode("div", _hoisted_1$c, [
1712
+ createElementVNode("div", _hoisted_2$8, [
1713
+ renderSlot(_ctx.$slots, "default", {}, () => [
1714
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.components, (c) => {
1715
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), mergeProps(c, { size: __props.size }), null, 16, ["size"]);
1716
+ }), 256))
1717
+ ])
1718
+ ]),
1719
+ createElementVNode("div", _hoisted_3$6, [
1720
+ createVNode(_component_el_button, {
1721
+ onClick: close,
1722
+ size: __props.size
1723
+ }, {
1724
+ default: withCtx(() => [
1725
+ createTextVNode(toDisplayString(unref(t)("fu.search_bar.cancel")), 1)
1726
+ ]),
1727
+ _: 1
1728
+ }, 8, ["size"]),
1729
+ createVNode(_component_el_button, {
1730
+ type: "primary",
1731
+ onClick: ok,
1732
+ size: __props.size
1733
+ }, {
1734
+ default: withCtx(() => [
1735
+ createTextVNode(toDisplayString(unref(t)("fu.search_bar.ok")), 1)
1736
+ ]),
1737
+ _: 1
1738
+ }, 8, ["size"])
1739
+ ])
1740
+ ])
1741
+ ]),
1742
+ _: 3
1743
+ }, 8, ["visible"]);
1744
+ };
1745
+ }
1746
+ }));
1747
+ var FuComplexSearch = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuComplexSearch.vue"]]);
1748
+ const __default__$g = { name: "FuSearchBarButton" };
1749
+ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$g), {
1750
+ props: {
1751
+ size: {
1752
+ type: String,
1753
+ validator: validateSize
1754
+ },
1755
+ tooltip: String
1756
+ },
1757
+ setup(__props) {
1758
+ return (_ctx, _cache) => {
1759
+ const _component_el_button = resolveComponent("el-button");
1760
+ const _component_el_tooltip = resolveComponent("el-tooltip");
1761
+ return openBlock(), createBlock(_component_el_tooltip, {
1762
+ content: __props.tooltip,
1763
+ disabled: !__props.tooltip
1764
+ }, {
1765
+ default: withCtx(() => [
1766
+ createVNode(_component_el_button, mergeProps({
1767
+ class: "fu-search-bar-button",
1768
+ circle: "",
1769
+ size: __props.size
1770
+ }, _ctx.$attrs), null, 16, ["size"])
1771
+ ]),
1772
+ _: 1
1773
+ }, 8, ["content", "disabled"]);
1774
+ };
1775
+ }
1776
+ }));
1777
+ var FuSearchBarButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchBarButton.vue"]]);
1778
+ const _hoisted_1$b = { class: "fu-search-conditions__item" };
1779
+ const _hoisted_2$7 = { key: 0 };
1780
+ const _hoisted_3$5 = { class: "condition-value" };
1781
+ const __default__$f = { name: "FuSearchConditions" };
1782
+ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$f), {
1783
+ props: {
1784
+ size: {
1785
+ type: String,
1786
+ validator: validateSize
1787
+ },
1788
+ conditions: {
1789
+ type: Array,
1790
+ required: true
1791
+ }
1792
+ },
1793
+ emits: ["change"],
1794
+ setup(__props, { emit }) {
1795
+ const props = __props;
1796
+ function remove(index) {
1797
+ props.conditions.splice(index, 1);
1798
+ emit("change", props.conditions);
1799
+ }
1800
+ return (_ctx, _cache) => {
1801
+ const _component_Close = resolveComponent("Close");
1802
+ const _component_el_icon = resolveComponent("el-icon");
1803
+ return openBlock(), createElementBlock("div", {
1804
+ class: normalizeClass(["fu-search-conditions", "fu-search-conditions--" + __props.size])
1805
+ }, [
1806
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.conditions, (condition, index) => {
1807
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
1808
+ condition.label ? (openBlock(), createElementBlock("div", _hoisted_2$7, toDisplayString(condition.label), 1)) : createCommentVNode("v-if", true),
1809
+ createElementVNode("div", _hoisted_3$5, toDisplayString(condition.valueLabel), 1),
1810
+ createVNode(_component_el_icon, {
1811
+ class: "condition-remove",
1812
+ onClick: ($event) => remove(index)
1813
+ }, {
1814
+ default: withCtx(() => [
1815
+ createVNode(_component_Close)
1816
+ ]),
1817
+ _: 2
1818
+ }, 1032, ["onClick"])
1819
+ ]);
1820
+ }), 256))
1821
+ ], 2);
1822
+ };
1823
+ }
1824
+ }));
1825
+ var FuSearchConditions = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchContions.vue"]]);
1826
+ const _hoisted_1$a = { class: "fu-search-bar" };
1827
+ const _hoisted_2$6 = { class: "fu-search-bar__content" };
1828
+ const _hoisted_3$4 = { class: "fu-search-bar__buttons" };
1829
+ const __default__$e = { name: "FuSearchBar" };
1830
+ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$e), {
1831
+ props: {
1832
+ size: {
1833
+ type: String,
1834
+ validator: validateSize
1835
+ },
1836
+ quickKey: {
1837
+ type: String,
1838
+ default: "quick"
1839
+ },
1840
+ quickPlaceholder: String,
1841
+ useCleanButton: {
1842
+ type: Boolean,
1843
+ default: true
1844
+ },
1845
+ useRefreshButton: {
1846
+ type: Boolean,
1847
+ default: false
1848
+ },
1849
+ useQuickSearch: {
1850
+ type: Boolean,
1851
+ default: true
1852
+ },
1853
+ components: Array
1854
+ },
1855
+ emits: ["close", "exec"],
1856
+ setup(__props, { expose, emit }) {
1857
+ const props = __props;
1858
+ const complexRef = ref(null);
1859
+ const quick = ref("");
1860
+ const conditions = ref([]);
1861
+ const references = ref([]);
1862
+ provide(referenceKey, references);
1863
+ const placeholder = computed(() => {
1864
+ return props.quickPlaceholder ? props.quickPlaceholder : t("fu.search_bar.search");
1865
+ });
1866
+ const showComplex = computed(() => {
1867
+ return references.value.length > 0;
1868
+ });
1869
+ const showClean = computed(() => {
1870
+ return props.useCleanButton && (conditions.value.length > 0 || quick.value);
1871
+ });
1872
+ const showRefresh = computed(() => {
1873
+ return props.useRefreshButton && showComplex.value;
1874
+ });
1875
+ const condition = computed(() => {
1876
+ var _a2;
1877
+ const obj = {};
1878
+ if (quick.value) {
1879
+ obj[props.quickKey] = quick.value;
1880
+ }
1881
+ if (((_a2 = conditions.value) == null ? void 0 : _a2.length) > 0) {
1882
+ conditions.value.forEach((c) => {
1883
+ const { field, value } = c;
1884
+ obj[c.field] = { field, value };
1885
+ });
1886
+ }
1887
+ return obj;
1888
+ });
1889
+ const { t } = useLocale();
1890
+ function closePopover() {
1891
+ emit("close");
1892
+ }
1893
+ function clean() {
1894
+ quick.value = "";
1895
+ conditions.value = [];
1896
+ emit("exec", condition.value);
1897
+ }
1898
+ function change(ccs) {
1899
+ conditions.value = merge(conditions.value, ccs);
1900
+ exec();
1901
+ }
1902
+ function refresh() {
1903
+ var _a2;
1904
+ (_a2 = complexRef.value) == null ? void 0 : _a2.close();
1905
+ exec();
1906
+ }
1907
+ function exec() {
1908
+ emit("exec", condition.value);
1909
+ }
1910
+ function merge(source, target) {
1911
+ let conditions2 = source.concat(target);
1912
+ let conditionMap = /* @__PURE__ */ new Map();
1913
+ for (let condition2 of conditions2) {
1914
+ conditionMap.set(condition2.field, condition2);
1915
+ }
1916
+ let result = [];
1917
+ conditionMap.forEach((v) => {
1918
+ result.push(v);
1919
+ });
1920
+ return result;
1921
+ }
1922
+ function setConditions(conditionObj) {
1923
+ var _a2;
1924
+ conditions.value = ((_a2 = complexRef.value) == null ? void 0 : _a2.setConditions(conditionObj)) || [];
1925
+ if (props.useQuickSearch && conditionObj[props.quickKey] !== void 0) {
1926
+ quick.value = conditionObj[props.quickKey].value;
1927
+ exec();
1928
+ } else {
1929
+ refresh();
1930
+ }
1931
+ }
1932
+ expose({
1933
+ setConditions
1934
+ });
1935
+ return (_ctx, _cache) => {
1936
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
1937
+ createElementVNode("div", _hoisted_2$6, [
1938
+ createVNode(FuComplexSearch, {
1939
+ ref_key: "complexRef",
1940
+ ref: complexRef,
1941
+ components: __props.components,
1942
+ onChange: change,
1943
+ size: __props.size,
1944
+ onClose: closePopover
1945
+ }, {
1946
+ default: withCtx(() => [
1947
+ renderSlot(_ctx.$slots, "complex")
1948
+ ]),
1949
+ _: 3
1950
+ }, 8, ["components", "size"]),
1951
+ unref(showComplex) ? (openBlock(), createBlock(FuSearchConditions, {
1952
+ key: 0,
1953
+ conditions: conditions.value,
1954
+ size: __props.size,
1955
+ onChange: change
1956
+ }, null, 8, ["conditions", "size"])) : createCommentVNode("v-if", true),
1957
+ __props.useQuickSearch ? (openBlock(), createBlock(FuQuickSearch, {
1958
+ key: 1,
1959
+ size: __props.size,
1960
+ "use-icon": !unref(showComplex),
1961
+ placeholder: unref(placeholder),
1962
+ modelValue: quick.value,
1963
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
1964
+ onChange: exec
1965
+ }, null, 8, ["size", "use-icon", "placeholder", "modelValue"])) : createCommentVNode("v-if", true)
1966
+ ]),
1967
+ createElementVNode("div", _hoisted_3$4, [
1968
+ renderSlot(_ctx.$slots, "buttons", {}, () => [
1969
+ unref(showClean) ? (openBlock(), createBlock(FuSearchBarButton, {
1970
+ key: 0,
1971
+ icon: "Close",
1972
+ onClick: clean,
1973
+ size: __props.size,
1974
+ tooltip: unref(t)("fu.search_bar.clean")
1975
+ }, null, 8, ["size", "tooltip"])) : createCommentVNode("v-if", true),
1976
+ unref(showRefresh) ? (openBlock(), createBlock(FuSearchBarButton, {
1977
+ key: 1,
1978
+ icon: "Refresh",
1979
+ onClick: refresh,
1980
+ size: __props.size,
1981
+ tooltip: unref(t)("fu.search_bar.refresh")
1982
+ }, null, 8, ["size", "tooltip"])) : createCommentVNode("v-if", true),
1983
+ renderSlot(_ctx.$slots, "default")
1984
+ ])
1985
+ ])
1986
+ ]);
1987
+ };
1988
+ }
1989
+ }));
1990
+ var FuSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchBar.vue"]]);
1991
+ const _hoisted_1$9 = { class: "fu-complex-component" };
1992
+ const _hoisted_2$5 = { class: "fu-complex-component__label" };
1993
+ const _hoisted_3$3 = { class: "fu-complex-component__content" };
1994
+ const __default__$d = { name: "FuComplexSelect" };
1995
+ const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$d), {
1996
+ props: {
1997
+ size: {
1998
+ type: String,
1999
+ validator: validateSize
2000
+ },
2001
+ multiple: {
2002
+ type: Boolean,
2003
+ default: false
2004
+ },
2005
+ label: String,
2006
+ field: {
2007
+ type: String,
2008
+ required: true
2009
+ },
2010
+ options: {
2011
+ type: Array,
2012
+ default: []
2013
+ }
2014
+ },
2015
+ emits: ["init"],
2016
+ setup(__props, { expose, emit }) {
2017
+ const props = __props;
2018
+ const selection = ref(props.multiple ? [] : "");
2019
+ const valueLabel = computed(() => {
2020
+ if (Array.isArray(selection.value)) {
2021
+ let values = [];
2022
+ selection.value.forEach((v) => {
2023
+ values.push(getValueLabel(v));
2024
+ });
2025
+ return values.join(", ");
2026
+ }
2027
+ return getValueLabel(selection.value);
2028
+ });
2029
+ const { t } = useLocale();
2030
+ function getValueLabel(value) {
2031
+ for (let o of props.options) {
2032
+ if (o.value === value) {
2033
+ return o.label;
2034
+ }
2035
+ }
2036
+ return value;
2037
+ }
2038
+ function getCondition() {
2039
+ if (!selection.value || Array.isArray(selection.value) && selection.value.length === 0)
2040
+ return;
2041
+ let { field: field2, label } = props;
2042
+ return { field: field2, label, value: selection.value, valueLabel: valueLabel.value };
2043
+ }
2044
+ function init(v) {
2045
+ selection.value = v !== void 0 ? v : props.multiple ? [] : "";
2046
+ emit("init");
2047
+ }
2048
+ const references = inject(referenceKey);
2049
+ const field = props.field;
2050
+ const reference = { field, init, getCondition };
2051
+ references == null ? void 0 : references.value.push(reference);
2052
+ expose({
2053
+ getCondition,
2054
+ init
2055
+ });
2056
+ return (_ctx, _cache) => {
2057
+ const _component_el_option = resolveComponent("el-option");
2058
+ const _component_el_select = resolveComponent("el-select");
2059
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
2060
+ createElementVNode("div", _hoisted_2$5, toDisplayString(__props.label), 1),
2061
+ createElementVNode("div", _hoisted_3$3, [
2062
+ createVNode(_component_el_select, mergeProps({
2063
+ class: "fu-complex-select",
2064
+ placeholder: unref(t)("fu.search_bar.please_select"),
2065
+ modelValue: selection.value,
2066
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selection.value = $event),
2067
+ size: __props.size
2068
+ }, _ctx.$attrs, { clearable: "" }), {
2069
+ default: withCtx(() => [
2070
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (o) => {
2071
+ return openBlock(), createBlock(_component_el_option, {
2072
+ key: o.value,
2073
+ label: o.label,
2074
+ value: o.value
2075
+ }, null, 8, ["label", "value"]);
2076
+ }), 128))
2077
+ ]),
2078
+ _: 1
2079
+ }, 16, ["placeholder", "modelValue", "size"])
2080
+ ])
2081
+ ]);
2082
+ };
2083
+ }
2084
+ }));
2085
+ var FuComplexSelect = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/complex-components/FuComplexSelect.vue"]]);
2086
+ const _hoisted_1$8 = { class: "fu-complex-component" };
2087
+ const _hoisted_2$4 = { class: "fu-complex-component__label" };
2088
+ const _hoisted_3$2 = { class: "fu-complex-component__content" };
2089
+ const __default__$c = { name: "FuComplexInput" };
2090
+ const _sfc_main$h = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$c), {
2091
+ props: {
2092
+ size: {
2093
+ type: String,
2094
+ validator: validateSize
2095
+ },
2096
+ label: String,
2097
+ field: {
2098
+ type: String,
2099
+ required: true
2100
+ }
2101
+ },
2102
+ setup(__props, { expose }) {
2103
+ const props = __props;
2104
+ const inputValue = ref("");
2105
+ const { t } = useLocale();
2106
+ function getCondition() {
2107
+ if (!inputValue.value)
2108
+ return;
2109
+ let { field: field2, label } = props;
2110
+ let value = inputValue.value;
2111
+ let valueLabel = inputValue.value;
2112
+ return { field: field2, label, value, valueLabel };
2113
+ }
2114
+ function init(v) {
2115
+ inputValue.value = v !== void 0 ? v : "";
2116
+ }
2117
+ const references = inject(referenceKey);
2118
+ const field = props.field;
2119
+ const reference = { field, init, getCondition };
2120
+ references == null ? void 0 : references.value.push(reference);
2121
+ expose({
2122
+ getCondition,
2123
+ init
2124
+ });
2125
+ return (_ctx, _cache) => {
2126
+ const _component_el_input = resolveComponent("el-input");
2127
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
2128
+ createElementVNode("div", _hoisted_2$4, toDisplayString(__props.label), 1),
2129
+ createElementVNode("div", _hoisted_3$2, [
2130
+ createVNode(_component_el_input, mergeProps({
2131
+ modelValue: inputValue.value,
2132
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
2133
+ placeholder: unref(t)("fu.search_bar.please_input"),
2134
+ size: __props.size
2135
+ }, _ctx.$attrs), null, 16, ["modelValue", "placeholder", "size"])
2136
+ ])
2137
+ ]);
2138
+ };
2139
+ }
2140
+ }));
2141
+ var FuComplexInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/complex-components/FuComplexInput.vue"]]);
2142
+ const _hoisted_1$7 = { class: "fu-complex-component" };
2143
+ const _hoisted_2$3 = { class: "fu-complex-component__label" };
2144
+ const _hoisted_3$1 = { class: "fu-complex-component__content" };
2145
+ const __default__$b = { name: "FuComplexDate" };
2146
+ const _sfc_main$g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$b), {
1159
2147
  props: {
1160
2148
  size: {
1161
2149
  type: String,
@@ -1173,11 +2161,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1173
2161
  },
1174
2162
  setup(__props, { expose }) {
1175
2163
  const props = __props;
1176
- const { t } = useLocale();
1177
2164
  const value = ref("");
1178
2165
  const valueLabel = computed(() => {
1179
- return dateFormat(value.value[0]) + " - " + dateFormat(value.value[1]);
2166
+ return dateFormat(value.value[0]) + " ~ " + dateFormat(value.value[1]);
1180
2167
  });
2168
+ const { t } = useLocale();
1181
2169
  function getCondition() {
1182
2170
  if (!String(value.value))
1183
2171
  return;
@@ -1200,9 +2188,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1200
2188
  return openBlock(), createElementBlock("div", _hoisted_1$7, [
1201
2189
  createElementVNode("div", _hoisted_2$3, toDisplayString(__props.label), 1),
1202
2190
  createElementVNode("div", _hoisted_3$1, [
1203
- createCommentVNode("configSize"),
1204
2191
  createVNode(_component_el_date_picker, mergeProps({
1205
- class: "fu-filter-date",
2192
+ class: "fu-complex-date",
1206
2193
  modelValue: value.value,
1207
2194
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
1208
2195
  }, _ctx.$attrs, {
@@ -1218,12 +2205,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1218
2205
  };
1219
2206
  }
1220
2207
  }));
1221
- var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDate.vue"]]);
1222
- const _hoisted_1$6 = { class: "fu-filter-component" };
1223
- const _hoisted_2$2 = { class: "fu-filter-component__label" };
1224
- const _hoisted_3 = { class: "fu-filter-component__content" };
1225
- const __default__$c = { name: "FuFilterDateTime" };
1226
- const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$c), {
2208
+ var FuComplexDate = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/complex-components/FuComplexDate.vue"]]);
2209
+ const _hoisted_1$6 = { class: "fu-complex-component" };
2210
+ const _hoisted_2$2 = { class: "fu-complex-component__label" };
2211
+ const _hoisted_3 = { class: "fu-complex-component__content" };
2212
+ const __default__$a = { name: "FuComplexDateTime" };
2213
+ const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$a), {
1227
2214
  props: {
1228
2215
  size: {
1229
2216
  type: String,
@@ -1244,7 +2231,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1244
2231
  const { t } = useLocale();
1245
2232
  const value = ref("");
1246
2233
  const valueLabel = computed(() => {
1247
- return datetimeFormat(value.value[0]) + " - " + datetimeFormat(value.value[1]);
2234
+ return datetimeFormat(value.value[0]) + " ~ " + datetimeFormat(value.value[1]);
1248
2235
  });
1249
2236
  function getCondition() {
1250
2237
  if (!String(value.value))
@@ -1270,7 +2257,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1270
2257
  createElementVNode("div", _hoisted_3, [
1271
2258
  createCommentVNode(' :size="configSize" '),
1272
2259
  createVNode(_component_el_date_picker, mergeProps({
1273
- class: "fu-filter-date",
2260
+ class: "fu-complex-date-time",
1274
2261
  modelValue: value.value,
1275
2262
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
1276
2263
  }, _ctx.$attrs, {
@@ -1286,243 +2273,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1286
2273
  };
1287
2274
  }
1288
2275
  }));
1289
- var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDateTime.vue"]]);
1290
- FuSearchInput.install = (app) => {
1291
- app.component(FuFilterBar.name, FuFilterBar);
1292
- app.component(FuFilter.name, FuFilter);
1293
- app.component(FuSearchInput.name, FuSearchInput);
1294
- app.component(FuFilterSelect.name, FuFilterSelect);
1295
- app.component(FuFilterDate.name, FuFilterDate);
1296
- app.component(FuFilterDateTime.name, FuFilterDateTime);
1297
- };
1298
- var __glob_1_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1299
- __proto__: null,
1300
- "default": FuSearchInput
1301
- }, Symbol.toStringTag, { value: "Module" }));
1302
- const uuid = function() {
1303
- let d = new Date().getTime();
1304
- let d2 = performance && performance.now && performance.now() * 1e3 || 0;
1305
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
1306
- let r = Math.random() * 16;
1307
- if (d > 0) {
1308
- r = (d + r) % 16 | 0;
1309
- d = Math.floor(d / 16);
1310
- } else {
1311
- r = (d2 + r) % 16 | 0;
1312
- d2 = Math.floor(d2 / 16);
1313
- }
1314
- return (c === "x" ? r : r & 3 | 8).toString(16);
1315
- });
1316
- };
1317
- const TRIGGERS = ["manual", "onClick", "onDblclick"];
1318
- const _sfc_main$h = defineComponent({
1319
- name: "FuReadWriteSwitch",
1320
- props: {
1321
- modelValue: Boolean,
1322
- data: [String, Number, Boolean],
1323
- writeTrigger: {
1324
- type: String,
1325
- default: "onClick",
1326
- validator: (value) => {
1327
- return TRIGGERS.includes(value);
1328
- }
1329
- }
1330
- },
1331
- setup(props, { slots, emit }) {
1332
- const id = ref(uuid());
1333
- const write = ref(props.modelValue === void 0 ? false : props.modelValue);
1334
- watch(() => props.modelValue, (v) => {
1335
- if (v === write.value)
1336
- return;
1337
- if (v) {
1338
- switchWrite();
1339
- } else {
1340
- switchRead();
1341
- }
1342
- });
1343
- function change() {
1344
- emit("update:modelValue", write.value);
1345
- emit("change", [props.data, write.value]);
1346
- }
1347
- function switchWrite() {
1348
- write.value = true;
1349
- nextTick(() => {
1350
- const nid = document.getElementById(id.value);
1351
- const input = nid == null ? void 0 : nid.querySelector("input");
1352
- input == null ? void 0 : input.click();
1353
- input == null ? void 0 : input.focus();
1354
- const textarea = nid == null ? void 0 : nid.querySelector("textarea");
1355
- textarea == null ? void 0 : textarea.focus();
1356
- change();
1357
- });
1358
- }
1359
- function switchRead() {
1360
- write.value = false;
1361
- change();
1362
- }
1363
- return () => {
1364
- const context = {
1365
- class: "fu-read-write-switch",
1366
- id: id.value
1367
- };
1368
- if (!write.value && props.writeTrigger !== TRIGGERS[0]) {
1369
- context[props.writeTrigger] = switchWrite;
1370
- }
1371
- let children = props.data;
1372
- if (!write.value && slots.read) {
1373
- children = slots.read({
1374
- write: switchWrite
1375
- });
1376
- }
1377
- if (write.value && slots.default) {
1378
- children = slots.default({
1379
- read: switchRead
1380
- });
1381
- }
1382
- return h("div", context, children);
1383
- };
1384
- }
1385
- });
1386
- var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuReadWriteSwitch.vue"]]);
1387
- const __default__$b = { name: "FuInputRwSwitch" };
1388
- const _sfc_main$g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$b), {
1389
- props: {
1390
- modelValue: [String, Number],
1391
- writeTrigger: {
1392
- type: String,
1393
- default: "onClick",
1394
- validator: (value) => {
1395
- return ["onClick", "onDblclick"].includes(value);
1396
- }
1397
- }
1398
- },
1399
- emits: ["input", "blur"],
1400
- setup(__props, { emit }) {
1401
- const props = __props;
1402
- const data = ref(props.modelValue);
1403
- watch(() => props.modelValue, (v) => {
1404
- data.value = v;
1405
- });
1406
- function input(e) {
1407
- emit("input", data.value, e);
1408
- }
1409
- function blur(read, e) {
1410
- emit("blur", data.value, e);
1411
- read();
1412
- }
1413
- function keydown(read, e) {
1414
- if (e.key === "Enter") {
1415
- read();
1416
- }
1417
- }
1418
- return (_ctx, _cache) => {
1419
- const _component_el_input = resolveComponent("el-input");
1420
- return openBlock(), createBlock(FuReadWriteSwitch, {
1421
- "write-trigger": __props.writeTrigger,
1422
- data: data.value
1423
- }, {
1424
- default: withCtx(({ read }) => [
1425
- createVNode(_component_el_input, mergeProps({
1426
- modelValue: data.value,
1427
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event)
1428
- }, _ctx.$attrs, {
1429
- onInput: input,
1430
- onBlur: ($event) => blur(read, $event),
1431
- onKeydown: ($event) => keydown(read, $event)
1432
- }), null, 16, ["modelValue", "onBlur", "onKeydown"])
1433
- ]),
1434
- _: 1
1435
- }, 8, ["write-trigger", "data"]);
1436
- };
1437
- }
1438
- }));
1439
- var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuInputRwSwitch.vue"]]);
1440
- const __default__$a = { name: "FuSelectRwSwitch" };
1441
- const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$a), {
1442
- props: {
1443
- modelValue: [String, Number],
1444
- options: {
1445
- type: Array,
1446
- default: []
1447
- },
1448
- writeTrigger: {
1449
- type: String,
1450
- default: "onClick",
1451
- validator: (value) => {
1452
- return ["onClick", "onDblclick"].includes(value);
1453
- }
1454
- }
1455
- },
1456
- emits: ["input", "blur", "change"],
1457
- setup(__props, { emit }) {
1458
- const props = __props;
1459
- const data = ref(props.modelValue);
1460
- watch(() => props.modelValue, (v) => {
1461
- data.value = v;
1462
- });
1463
- function input(e) {
1464
- emit("input", data.value, e);
1465
- }
1466
- function blur(read, e) {
1467
- setTimeout(() => {
1468
- read();
1469
- }, 100);
1470
- emit("blur", data.value, e);
1471
- }
1472
- function change(read, e) {
1473
- emit("change", data.value, e);
1474
- read();
1475
- }
1476
- return (_ctx, _cache) => {
1477
- const _component_el_option = resolveComponent("el-option");
1478
- const _component_el_select = resolveComponent("el-select");
1479
- const _component_fu_read_write_switch = resolveComponent("fu-read-write-switch");
1480
- return openBlock(), createBlock(_component_fu_read_write_switch, {
1481
- "write-trigger": __props.writeTrigger,
1482
- data: data.value
1483
- }, {
1484
- read: withCtx(() => [
1485
- renderSlot(_ctx.$slots, "read", {}, () => [
1486
- createTextVNode(toDisplayString(data.value), 1)
1487
- ])
1488
- ]),
1489
- default: withCtx(({ read }) => [
1490
- createVNode(_component_el_select, mergeProps({
1491
- modelValue: data.value,
1492
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event)
1493
- }, _ctx.$attrs, {
1494
- onInput: input,
1495
- onBlur: ($event) => blur(read, $event),
1496
- onChange: ($event) => change(read, $event)
1497
- }), {
1498
- default: withCtx(() => [
1499
- renderSlot(_ctx.$slots, "default", {}, () => [
1500
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
1501
- return openBlock(), createBlock(_component_el_option, {
1502
- key: item.value,
1503
- label: item.label,
1504
- value: item.value
1505
- }, null, 8, ["label", "value"]);
1506
- }), 128))
1507
- ])
1508
- ]),
1509
- _: 2
1510
- }, 1040, ["modelValue", "onBlur", "onChange"])
1511
- ]),
1512
- _: 3
1513
- }, 8, ["write-trigger", "data"]);
1514
- };
1515
- }
1516
- }));
1517
- var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuSelectRwSwitch.vue"]]);
1518
- FuReadWriteSwitch.install = (app) => {
1519
- app.component(FuReadWriteSwitch.name, FuReadWriteSwitch);
1520
- app.component(FuInputRwSwitch.name, FuInputRwSwitch);
1521
- app.component(FuSelectRwSwitch.name, FuSelectRwSwitch);
2276
+ var FuComplexDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/complex-components/FuComplexDateTime.vue"]]);
2277
+ FuSearchBar.install = (app) => {
2278
+ app.component(FuQuickSearch.name, FuQuickSearch);
2279
+ app.component(FuSearchBar.name, FuSearchBar);
2280
+ app.component(FuSearchBarButton.name, FuSearchBarButton);
2281
+ app.component(FuComplexSelect.name, FuComplexSelect);
2282
+ app.component(FuComplexInput.name, FuComplexInput);
2283
+ app.component(FuComplexDate.name, FuComplexDate);
2284
+ app.component(FuComplexDateTime.name, FuComplexDateTime);
1522
2285
  };
1523
- var __glob_1_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2286
+ var __glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1524
2287
  __proto__: null,
1525
- "default": FuReadWriteSwitch
2288
+ "default": FuSearchBar
1526
2289
  }, Symbol.toStringTag, { value: "Module" }));
1527
2290
  var _a;
1528
2291
  const isClient = typeof window !== "undefined";
@@ -1664,7 +2427,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1664
2427
  };
1665
2428
  }
1666
2429
  });
1667
- var FuSpeedDialButton = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialButton.vue"]]);
2430
+ var FuSpeedDialButton = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialButton.vue"]]);
1668
2431
  const SpeedDialKey = Symbol("SpeedDialKey");
1669
2432
  const _hoisted_1$5 = { class: "fu-speed-dial-action-button" };
1670
2433
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
@@ -1756,7 +2519,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1756
2519
  };
1757
2520
  }
1758
2521
  });
1759
- var FuSpeedDialActionButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialActionButton.vue"]]);
2522
+ var FuSpeedDialActionButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialActionButton.vue"]]);
1760
2523
  const __default__$9 = { name: "FuSpeedDialItem" };
1761
2524
  const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$9), {
1762
2525
  props: {
@@ -1847,7 +2610,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
1847
2610
  };
1848
2611
  }
1849
2612
  }));
1850
- var FuSpeedDialItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialItem.vue"]]);
2613
+ var FuSpeedDialItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialItem.vue"]]);
1851
2614
  const _hoisted_1$4 = { class: "fu-speed-dial__content" };
1852
2615
  const __default__$8 = { name: "FuSpeedDial" };
1853
2616
  const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$8), {
@@ -2117,12 +2880,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
2117
2880
  };
2118
2881
  }
2119
2882
  }));
2120
- var FuSpeedDial = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDial.vue"]]);
2883
+ var FuSpeedDial = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDial.vue"]]);
2121
2884
  FuSpeedDial.install = (app) => {
2122
2885
  app.component(FuSpeedDial.name, FuSpeedDial);
2123
2886
  app.component(FuSpeedDialItem.name, FuSpeedDialItem);
2124
2887
  };
2125
- var __glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2888
+ var __glob_1_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2126
2889
  __proto__: null,
2127
2890
  "default": FuSpeedDial
2128
2891
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2333,11 +3096,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
2333
3096
  };
2334
3097
  }
2335
3098
  }));
2336
- var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/split-pane/FuSplitPane.vue"]]);
3099
+ var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/split-pane/FuSplitPane.vue"]]);
2337
3100
  FuSplitPane.install = (app) => {
2338
3101
  app.component(FuSplitPane.name, FuSplitPane);
2339
3102
  };
2340
- var __glob_1_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3103
+ var __glob_1_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2341
3104
  __proto__: null,
2342
3105
  "default": FuSplitPane
2343
3106
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2529,7 +3292,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
2529
3292
  };
2530
3293
  }
2531
3294
  }));
2532
- var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTable.vue"]]);
3295
+ var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTable.vue"]]);
2533
3296
  const tableColumnSelect = (localKey) => {
2534
3297
  const columnsKey = computed(() => {
2535
3298
  return localKey ? "FU-T-" + localKey : "";
@@ -2701,7 +3464,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2701
3464
  };
2702
3465
  }
2703
3466
  });
2704
- var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectPopover.vue"]]);
3467
+ var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectPopover.vue"]]);
2705
3468
  const _hoisted_1$1 = { style: { "display": "inline-block" } };
2706
3469
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2707
3470
  __name: "FuTableColumnSelectDialog",
@@ -2835,7 +3598,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2835
3598
  };
2836
3599
  }
2837
3600
  });
2838
- var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectDialog.vue"]]);
3601
+ var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectDialog.vue"]]);
2839
3602
  const _sfc_main$6 = defineComponent({
2840
3603
  name: "FuTableColumnSelect",
2841
3604
  props: ["type"],
@@ -2850,7 +3613,7 @@ const _sfc_main$6 = defineComponent({
2850
3613
  };
2851
3614
  }
2852
3615
  });
2853
- var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelect.vue"]]);
3616
+ var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelect.vue"]]);
2854
3617
  const __default__$5 = { name: "FuTablePagination" };
2855
3618
  const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$5), {
2856
3619
  props: {
@@ -2899,7 +3662,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
2899
3662
  };
2900
3663
  }
2901
3664
  }));
2902
- var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTablePagination.vue"]]);
3665
+ var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTablePagination.vue"]]);
2903
3666
  const __default__$4 = { name: "FuTableButton" };
2904
3667
  const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
2905
3668
  props: {
@@ -2928,7 +3691,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
2928
3691
  };
2929
3692
  }
2930
3693
  }));
2931
- var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableButton.vue"]]);
3694
+ var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableButton.vue"]]);
2932
3695
  const __default__$3 = { name: "FuTableMoreButton" };
2933
3696
  const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
2934
3697
  props: {
@@ -3014,7 +3777,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
3014
3777
  };
3015
3778
  }
3016
3779
  }));
3017
- var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableMoreButton.vue"]]);
3780
+ var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableMoreButton.vue"]]);
3018
3781
  const __default__$2 = { name: "FuTableOperations" };
3019
3782
  const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
3020
3783
  props: {
@@ -3121,7 +3884,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
3121
3884
  };
3122
3885
  }
3123
3886
  }));
3124
- var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableOperations.vue"]]);
3887
+ var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableOperations.vue"]]);
3125
3888
  const _hoisted_1 = { class: "fu-dropdown-link" };
3126
3889
  const _hoisted_2 = {
3127
3890
  key: 0,
@@ -3255,7 +4018,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
3255
4018
  };
3256
4019
  }
3257
4020
  }));
3258
- var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTableColumnDropdown.vue"]]);
4021
+ var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTableColumnDropdown.vue"]]);
3259
4022
  FuTable.install = (app) => {
3260
4023
  app.component(FuTable.name, FuTable);
3261
4024
  app.component(FuTablePagination.name, FuTablePagination);
@@ -3265,7 +4028,7 @@ FuTable.install = (app) => {
3265
4028
  app.component(FuTableButton.name, FuTableButton);
3266
4029
  app.component(FuTableMoreButton.name, FuTableMoreButton);
3267
4030
  };
3268
- var __glob_1_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4031
+ var __glob_1_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3269
4032
  __proto__: null,
3270
4033
  "default": FuTable
3271
4034
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3412,16 +4175,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
3412
4175
  };
3413
4176
  }
3414
4177
  }));
3415
- var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/tabs/FuTabs.vue"]]);
4178
+ var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/tabs/FuTabs.vue"]]);
3416
4179
  FuTabs.install = (app) => {
3417
4180
  app.component(FuTabs.name, FuTabs);
3418
4181
  };
3419
- var __glob_1_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4182
+ var __glob_1_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3420
4183
  __proto__: null,
3421
4184
  "default": FuTabs
3422
4185
  }, Symbol.toStringTag, { value: "Module" }));
3423
4186
  const name = "fit2cloud-ui-plus";
3424
- const version = "0.0.1-beta.15";
4187
+ const version = "0.0.1-beta.18";
3425
4188
  const main = "./lib/fit2cloud-ui-plus.es.js";
3426
4189
  const files = [
3427
4190
  "lib",
@@ -3444,7 +4207,7 @@ const scripts = {
3444
4207
  };
3445
4208
  const dependencies = {
3446
4209
  "@element-plus/icons-vue": "^1.1.4",
3447
- "element-plus": "^2.2.2",
4210
+ "element-plus": "^2.2.14",
3448
4211
  "github-markdown-css": "^5.1.0",
3449
4212
  "prism-theme-vars": "^0.2.3",
3450
4213
  prismjs: "^1.28.0",
@@ -3477,7 +4240,7 @@ var PackageJSON = {
3477
4240
  dependencies,
3478
4241
  devDependencies
3479
4242
  };
3480
- const components = { "./components/filter-bar/index.ts": __glob_1_0, "./components/read-write-switch/index.ts": __glob_1_1, "./components/speed-dial/index.ts": __glob_1_2, "./components/split-pane/index.ts": __glob_1_3, "./components/table/index.ts": __glob_1_4, "./components/tabs/index.ts": __glob_1_5 };
4243
+ const components = { "./components/filter-bar/index.ts": __glob_1_0, "./components/read-write-switch/index.ts": __glob_1_1, "./components/search-bar/index.ts": __glob_1_2, "./components/speed-dial/index.ts": __glob_1_3, "./components/split-pane/index.ts": __glob_1_4, "./components/table/index.ts": __glob_1_5, "./components/tabs/index.ts": __glob_1_6 };
3481
4244
  const install = (app) => {
3482
4245
  Object.keys(components).forEach((key) => {
3483
4246
  let component = components[key].default;