btxui 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,12 +14,37 @@ const prestyles = {
14
14
  "show": `display: block;`,
15
15
  "hide": `display: none;`,
16
16
  // 布局
17
- "wrap": `flex-wrap: wrap;`,
18
- "flex": `display: flex; justify-content: flex-start; align-items: stretch;`,
17
+ "no-wrap": `flex-wrap: no-wrap;`,
18
+ "flex": `display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;`,
19
19
  "flex-column": `display: flex; flex-direction: column;`,
20
20
  "flex-between": `display: flex; justify-content: space-between; align-items: center;`,
21
21
  "flex-around": `display: flex; justify-content: space-around; align-items: center;`,
22
- "grid": `display: flex; flex-wrap: wrap; align-content: flex-start;`,
22
+ // 布局 - 栅格
23
+ "col-1": `flex-basis: 8.333%;`,
24
+ "col-2": `flex-basis: 16.667%;`,
25
+ "col-3": `flex-basis: 25%;`,
26
+ "col-4": `flex-basis: 33.333%;`,
27
+ "col-5": `flex-basis: 41.667%;`,
28
+ "col-6": `flex-basis: 50%;`,
29
+ "col-7": `flex-basis: 58.333%;`,
30
+ "col-8": `flex-basis: 66.667%;`,
31
+ "col-9": `flex-basis: 75%;`,
32
+ "col-10": `flex-basis: 83.333%;`,
33
+ "col-11": `flex-basis: 91.667%;`,
34
+ "col-12": `flex-basis: 100%;`,
35
+ // 布局 - 栅格偏移
36
+ "offset-1": `margin-left: 8.333%;`,
37
+ "offset-2": `margin-left: 16.667%;`,
38
+ "offset-3": `margin-left: 25%;`,
39
+ "offset-4": `margin-left: 33.333%;`,
40
+ "offset-5": `margin-left: 41.667%;`,
41
+ "offset-6": `margin-left: 50%;`,
42
+ "offset-7": `margin-left: 58.333%;`,
43
+ "offset-8": `margin-left: 66.667%;`,
44
+ "offset-9": `margin-left: 75%;`,
45
+ "offset-10": `margin-left: 83.333%;`,
46
+ "offset-11": `margin-left: 91.667%;`,
47
+ "offset-12": `margin-left: 100%;`,
23
48
  // 布局 - 九宫格
24
49
  "flex-1": `display: flex; justify-content: flex-start; align-items: flex-start;`,
25
50
  "flex-2": `display: flex; justify-content: center; align-items: flex-start;`,
@@ -87,6 +112,7 @@ const prestyles = {
87
112
  "solid-r": `border-right-style: solid;`,
88
113
  "solid-t": `border-top-style: solid;`,
89
114
  "solid-b": `border-bottom-style: solid;`,
115
+ "solid-none": `border-style: none;`,
90
116
  "dashed-l": `border-left-style: dashed;`,
91
117
  "dashed-r": `border-right-style: dashed;`,
92
118
  "dashed-t": `border-top-style: dashed;`,
@@ -505,7 +531,7 @@ var md5$1 = {
505
531
  })(md5$1);
506
532
  const md5 = md5Exports;
507
533
  const GLOBAL_STYLE_NAME = "BTXUIGlobal";
508
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
534
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
509
535
  __name: "b-style",
510
536
  props: {
511
537
  class: {},
@@ -513,6 +539,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
513
539
  hover: {},
514
540
  active: {},
515
541
  states: {},
542
+ matrix: {},
543
+ extraClass: {},
516
544
  cname: {}
517
545
  },
518
546
  setup(__props) {
@@ -582,11 +610,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
582
610
  return gradient;
583
611
  return false;
584
612
  };
585
- const NO_UNIT_VALS = ["auto"];
586
- const setUnit = (val, unit) => {
613
+ const setUnit = (val, customUnit, Presetunit) => {
614
+ let unit = customUnit ?? Presetunit;
587
615
  if (val === "auto")
588
616
  unit = "";
589
- return NO_UNIT_VALS.includes(val) ? "" : unit ?? "";
617
+ if (unit === "P")
618
+ unit = "%";
619
+ return unit ?? "";
590
620
  };
591
621
  const parseStyle = (rule) => {
592
622
  let style = prestyles[rule];
@@ -608,18 +638,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
608
638
  if (style) {
609
639
  let value = validValue(r2);
610
640
  if (value)
611
- return `${style.pro}: ${value}${r3 || setUnit(value, style.unit)}`;
641
+ return `${style.pro}: ${value}${setUnit(value, r3, style.unit)}`;
612
642
  value = validValue(r3);
613
643
  if (value) {
614
644
  const dir = dirs[r2];
615
645
  if (dir) {
616
646
  let dirStyle = "";
617
647
  dir.forEach((_dir) => {
618
- dirStyle += `${style.pro}-${_dir}: ${value}${r4 || setUnit(value, style.unit)};`;
648
+ dirStyle += `${style.pro}-${_dir}: ${value}${setUnit(value, r4, style.unit)};`;
619
649
  });
620
650
  return dirStyle;
621
651
  } else {
622
- return `${style.pro}-${r2}: ${value}${r4 || setUnit(value, style.unit)}`;
652
+ return `${style.pro}-${r2}: ${value}${setUnit(value, r4, style.unit)}`;
623
653
  }
624
654
  }
625
655
  }
@@ -637,10 +667,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
637
667
  return combineStyle.replace(/;+/g, ";");
638
668
  };
639
669
  const appendStyle = (selector, rules) => {
640
- const validateRule = combineStyles(rules);
641
- if (!validateRule)
642
- return;
643
670
  if (!styleMap.value.includes(selector)) {
671
+ const validateRule = combineStyles(rules);
672
+ if (!validateRule)
673
+ return;
644
674
  styleMap.value.push(selector);
645
675
  styles[selector] = validateRule;
646
676
  }
@@ -680,12 +710,31 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
680
710
  appendStyle(`${baseSelector}[state="${state}"]`, props.states[state]);
681
711
  });
682
712
  };
713
+ const genExtraStyles = (baseSelector) => {
714
+ if (!props.extraClass)
715
+ return;
716
+ const { selector, value } = props.extraClass;
717
+ appendStyle(`${baseSelector}${selector}*`, value);
718
+ };
683
719
  const setStyle = () => {
684
720
  Object.keys(styles).forEach((key) => {
685
721
  $style.value.sheet.addRule(`.${key}`, styles[key]);
686
722
  });
687
723
  };
724
+ const matrixStyle = ref();
725
+ const matrix = () => {
726
+ var _a, _b, _c, _d, _e, _f, _g, _h;
727
+ const translate = ((_a = props.matrix) == null ? void 0 : _a.translate) ? `translate(${(_b = props.matrix) == null ? void 0 : _b.translate})` : "";
728
+ const scale = ((_c = props.matrix) == null ? void 0 : _c.scale) ? `scale(${(_d = props.matrix) == null ? void 0 : _d.scale})` : "";
729
+ const rotate = ((_e = props.matrix) == null ? void 0 : _e.rotate) ? `rotate(${(_f = props.matrix) == null ? void 0 : _f.rotate})` : "";
730
+ const skew = ((_g = props.matrix) == null ? void 0 : _g.skew) ? `skew(${(_h = props.matrix) == null ? void 0 : _h.skew})` : "";
731
+ matrixStyle.value = props.matrix ? {
732
+ transform: `${translate} ${scale} ${rotate} ${skew}`
733
+ } : {};
734
+ };
688
735
  onMounted(() => {
736
+ if (props.matrix)
737
+ matrix();
689
738
  if (props.class) {
690
739
  initStyle();
691
740
  parseStyles(props.class);
@@ -694,20 +743,24 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
694
743
  genHoverStyles(`${compSelector}[hover='true']:hover`);
695
744
  genActiveStyles(`${compSelector}[active='true']:active`);
696
745
  genStateStyles(compSelector);
746
+ genExtraStyles(compSelector);
697
747
  setStyle();
698
748
  }
699
749
  });
700
750
  return (_ctx, _cache) => {
701
- return renderSlot(_ctx.$slots, "className", { className: className.value });
751
+ return renderSlot(_ctx.$slots, "className", {
752
+ className: className.value,
753
+ matrixStyle: matrixStyle.value
754
+ });
702
755
  };
703
756
  }
704
757
  });
705
758
  const _hoisted_1$a = ["state"];
706
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
759
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
707
760
  __name: "b-view",
708
761
  props: {
709
762
  class: {},
710
- state: { type: [String, Boolean] },
763
+ state: {},
711
764
  states: {},
712
765
  bgImg: {},
713
766
  matrix: {},
@@ -715,53 +768,40 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
715
768
  },
716
769
  setup(__props) {
717
770
  const props = __props;
718
- const lineStyle = computed(() => {
719
- var _a, _b, _c, _d, _e, _f, _g, _h;
720
- const bgImg = props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {};
721
- const translate = ((_a = props.matrix) == null ? void 0 : _a.translate) ? `translate(${(_b = props.matrix) == null ? void 0 : _b.translate})` : "";
722
- const scale = ((_c = props.matrix) == null ? void 0 : _c.scale) ? `scale(${(_d = props.matrix) == null ? void 0 : _d.scale})` : "";
723
- const rotate = ((_e = props.matrix) == null ? void 0 : _e.rotate) ? `rotate(${(_f = props.matrix) == null ? void 0 : _f.rotate})` : "";
724
- const skew = ((_g = props.matrix) == null ? void 0 : _g.skew) ? `skew(${(_h = props.matrix) == null ? void 0 : _h.skew})` : "";
725
- const transform = props.matrix ? {
726
- transform: `${translate} ${scale} ${rotate} ${skew}`
727
- } : {};
728
- return {
729
- ...bgImg,
730
- ...transform
731
- };
732
- });
771
+ const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
733
772
  return (_ctx, _cache) => {
734
- return openBlock(), createBlock(_sfc_main$h, {
773
+ return openBlock(), createBlock(_sfc_main$j, {
735
774
  class: normalizeClass(_ctx.class),
736
775
  cname: _ctx.cname,
737
- states: _ctx.states
776
+ states: _ctx.states,
777
+ matrix: _ctx.matrix
738
778
  }, {
739
779
  className: withCtx((scope) => [
740
780
  createElementVNode("div", {
741
781
  class: normalizeClass(scope.className),
742
782
  state: _ctx.state,
743
- style: normalizeStyle(lineStyle.value)
783
+ style: normalizeStyle({ ...bgStyle.value, ...scope.matrixStyle })
744
784
  }, [
745
785
  renderSlot(_ctx.$slots, "default")
746
786
  ], 14, _hoisted_1$a)
747
787
  ]),
748
788
  _: 3
749
- }, 8, ["class", "cname", "states"]);
789
+ }, 8, ["class", "cname", "states", "matrix"]);
750
790
  };
751
791
  }
752
792
  });
753
793
  const _hoisted_1$9 = ["state"];
754
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
794
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
755
795
  __name: "b-text",
756
796
  props: {
757
797
  class: {},
758
- state: { type: [String, Boolean] },
798
+ state: {},
759
799
  states: {},
760
800
  cname: {}
761
801
  },
762
802
  setup(__props) {
763
803
  return (_ctx, _cache) => {
764
- return openBlock(), createBlock(_sfc_main$h, {
804
+ return openBlock(), createBlock(_sfc_main$j, {
765
805
  class: normalizeClass(_ctx.class),
766
806
  states: _ctx.states,
767
807
  cname: _ctx.cname
@@ -780,12 +820,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
780
820
  }
781
821
  });
782
822
  const _hoisted_1$8 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
783
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
823
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
784
824
  __name: "b-hot",
785
825
  props: {
786
826
  link: {},
787
827
  class: {},
788
- state: { type: [String, Boolean] },
828
+ state: {},
789
829
  states: {},
790
830
  hover: {},
791
831
  active: {},
@@ -839,7 +879,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
839
879
  $anchor.value.download = props.download;
840
880
  });
841
881
  return (_ctx, _cache) => {
842
- return openBlock(), createBlock(_sfc_main$h, {
882
+ return openBlock(), createBlock(_sfc_main$j, {
843
883
  class: normalizeClass(_ctx.class),
844
884
  states: _ctx.states,
845
885
  hover: _ctx.hover,
@@ -875,13 +915,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
875
915
  }
876
916
  });
877
917
  const _hoisted_1$7 = ["src", "alt"];
878
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
918
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
879
919
  __name: "b-img",
880
920
  props: {
881
921
  img: {},
882
922
  class: {},
883
923
  defaultSrc: {},
884
924
  alt: {},
925
+ matrix: {},
885
926
  cname: {}
886
927
  },
887
928
  emits: ["on_load"],
@@ -904,34 +945,35 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
904
945
  setSrc();
905
946
  });
906
947
  return (_ctx, _cache) => {
907
- return openBlock(), createBlock(_sfc_main$h, {
948
+ return openBlock(), createBlock(_sfc_main$j, {
908
949
  class: normalizeClass(_ctx.class),
909
- cname: _ctx.cname
950
+ cname: _ctx.cname,
951
+ matrix: _ctx.matrix
910
952
  }, {
911
953
  className: withCtx((scope) => [
912
954
  createElementVNode("img", {
913
955
  src: src.value,
914
956
  class: normalizeClass(scope.className),
915
- style: { "display": "block" },
957
+ style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
916
958
  alt: _ctx.alt
917
- }, null, 10, _hoisted_1$7)
959
+ }, null, 14, _hoisted_1$7)
918
960
  ]),
919
961
  _: 1
920
- }, 8, ["class", "cname"]);
962
+ }, 8, ["class", "cname", "matrix"]);
921
963
  };
922
964
  }
923
965
  });
924
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
966
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
925
967
  __name: "ani-success",
926
968
  setup(__props) {
927
969
  return (_ctx, _cache) => {
928
- return openBlock(), createBlock(_sfc_main$g, {
970
+ return openBlock(), createBlock(_sfc_main$i, {
929
971
  class: "flex-5",
930
972
  matrix: { translate: "0,9px", rotate: "45deg" }
931
973
  }, {
932
974
  default: withCtx(() => [
933
- createVNode(_sfc_main$f, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
934
- createVNode(_sfc_main$f, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
975
+ createVNode(_sfc_main$h, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
976
+ createVNode(_sfc_main$h, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
935
977
  ]),
936
978
  _: 1
937
979
  });
@@ -947,7 +989,7 @@ const _export_sfc = (sfc, props) => {
947
989
  }
948
990
  return target;
949
991
  };
950
- const _sfc_main$b = {};
992
+ const _sfc_main$d = {};
951
993
  function _sfc_render$2(_ctx, _cache) {
952
994
  const _component_b_text = resolveComponent("b-text");
953
995
  const _component_b_view = resolveComponent("b-view");
@@ -959,9 +1001,9 @@ function _sfc_render$2(_ctx, _cache) {
959
1001
  _: 1
960
1002
  });
961
1003
  }
962
- const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$2]]);
1004
+ const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$2]]);
963
1005
  const aniNotic_vue_vue_type_style_index_0_lang = "";
964
- const _sfc_main$a = {};
1006
+ const _sfc_main$c = {};
965
1007
  function _sfc_render$1(_ctx, _cache) {
966
1008
  const _component_b_text = resolveComponent("b-text");
967
1009
  const _component_b_view = resolveComponent("b-view");
@@ -976,9 +1018,9 @@ function _sfc_render$1(_ctx, _cache) {
976
1018
  _: 1
977
1019
  });
978
1020
  }
979
- const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$1]]);
1021
+ const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$1]]);
980
1022
  const aniLoading_vue_vue_type_style_index_0_lang = "";
981
- const _sfc_main$9 = {};
1023
+ const _sfc_main$b = {};
982
1024
  function _sfc_render(_ctx, _cache) {
983
1025
  const _component_b_view = resolveComponent("b-view");
984
1026
  return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
@@ -988,33 +1030,33 @@ function _sfc_render(_ctx, _cache) {
988
1030
  _: 1
989
1031
  });
990
1032
  }
991
- const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render]]);
1033
+ const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render]]);
992
1034
  const _hoisted_1$6 = ["state"];
993
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1035
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
994
1036
  __name: "b-icon",
995
1037
  props: {
996
1038
  icon: {},
997
1039
  class: {},
998
- state: { type: [String, Boolean] },
1040
+ state: {},
999
1041
  states: {},
1000
1042
  cname: {}
1001
1043
  },
1002
1044
  setup(__props) {
1003
1045
  const props = __props;
1004
1046
  return (_ctx, _cache) => {
1005
- return openBlock(), createBlock(_sfc_main$h, {
1047
+ return openBlock(), createBlock(_sfc_main$j, {
1006
1048
  class: normalizeClass(_ctx.class),
1007
1049
  states: _ctx.states,
1008
1050
  cname: _ctx.cname
1009
1051
  }, {
1010
1052
  className: withCtx((scope) => [
1011
1053
  _ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1012
- _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$c, { key: "success" })) : createCommentVNode("", true),
1054
+ _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$e, { key: "success" })) : createCommentVNode("", true),
1013
1055
  _ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
1014
1056
  _ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
1015
1057
  _ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
1016
1058
  ], 64)) : createCommentVNode("", true),
1017
- _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$g, {
1059
+ _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$i, {
1018
1060
  key: 1,
1019
1061
  "bg-img": _ctx.icon,
1020
1062
  states: _ctx.states,
@@ -1032,13 +1074,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1032
1074
  }
1033
1075
  });
1034
1076
  const _hoisted_1$5 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
1035
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1077
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1036
1078
  __name: "b-input",
1037
1079
  props: {
1038
1080
  type: {},
1039
1081
  name: {},
1040
1082
  class: {},
1041
- state: { type: [String, Boolean] },
1083
+ state: {},
1042
1084
  states: {},
1043
1085
  text: {},
1044
1086
  placeholder: {},
@@ -1108,7 +1150,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1108
1150
  check
1109
1151
  });
1110
1152
  return (_ctx, _cache) => {
1111
- return openBlock(), createBlock(_sfc_main$h, {
1153
+ return openBlock(), createBlock(_sfc_main$j, {
1112
1154
  class: normalizeClass(_ctx.class),
1113
1155
  focus: _ctx.focus,
1114
1156
  states: _ctx.states,
@@ -1140,13 +1182,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1140
1182
  }
1141
1183
  });
1142
1184
  const _hoisted_1$4 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
1143
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1185
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1144
1186
  __name: "b-textarea",
1145
1187
  props: {
1146
1188
  text: {},
1147
1189
  name: {},
1148
1190
  class: {},
1149
- state: { type: [String, Boolean] },
1191
+ state: {},
1150
1192
  states: {},
1151
1193
  rows: {},
1152
1194
  placeholder: {},
@@ -1164,7 +1206,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1164
1206
  emit("update:text", formatText(val.value));
1165
1207
  };
1166
1208
  return (_ctx, _cache) => {
1167
- return openBlock(), createBlock(_sfc_main$h, {
1209
+ return openBlock(), createBlock(_sfc_main$j, {
1168
1210
  class: normalizeClass(_ctx.class),
1169
1211
  focus: _ctx.focus,
1170
1212
  states: _ctx.states,
@@ -1195,7 +1237,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1195
1237
  }
1196
1238
  });
1197
1239
  const _hoisted_1$3 = ["muted", "src", "autoplay", "loop"];
1198
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1240
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1199
1241
  __name: "b-video",
1200
1242
  props: {
1201
1243
  video: {},
@@ -1207,7 +1249,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1207
1249
  setup(__props) {
1208
1250
  const $video = ref();
1209
1251
  return (_ctx, _cache) => {
1210
- return openBlock(), createBlock(_sfc_main$h, {
1252
+ return openBlock(), createBlock(_sfc_main$j, {
1211
1253
  class: normalizeClass(_ctx.class),
1212
1254
  cname: _ctx.cname
1213
1255
  }, {
@@ -1229,12 +1271,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1229
1271
  });
1230
1272
  const _hoisted_1$2 = ["state"];
1231
1273
  const tolerance = 2;
1232
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1274
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1233
1275
  __name: "b-list",
1234
1276
  props: {
1235
1277
  scroll: {},
1236
1278
  class: {},
1237
- state: { type: [String, Boolean] },
1279
+ state: {},
1238
1280
  states: {},
1239
1281
  scrollType: {},
1240
1282
  cname: {}
@@ -1279,7 +1321,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1279
1321
  watchPos();
1280
1322
  });
1281
1323
  return (_ctx, _cache) => {
1282
- return openBlock(), createBlock(_sfc_main$h, {
1324
+ return openBlock(), createBlock(_sfc_main$j, {
1283
1325
  class: normalizeClass(_ctx.class),
1284
1326
  states: _ctx.states,
1285
1327
  cname: _ctx.cname
@@ -1307,7 +1349,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1307
1349
  }
1308
1350
  });
1309
1351
  const _hoisted_1$1 = ["state", "draggable"];
1310
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1352
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1311
1353
  __name: "b-drag",
1312
1354
  props: {
1313
1355
  class: {},
@@ -1417,7 +1459,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1417
1459
  bindEvent();
1418
1460
  });
1419
1461
  return (_ctx, _cache) => {
1420
- return openBlock(), createBlock(_sfc_main$h, {
1462
+ return openBlock(), createBlock(_sfc_main$j, {
1421
1463
  class: normalizeClass(_ctx.class),
1422
1464
  states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
1423
1465
  cname: _ctx.cname
@@ -1447,7 +1489,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1447
1489
  }
1448
1490
  });
1449
1491
  const _hoisted_1 = ["src"];
1450
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1492
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1451
1493
  __name: "b-webview",
1452
1494
  props: {
1453
1495
  src: {},
@@ -1456,7 +1498,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1456
1498
  },
1457
1499
  setup(__props) {
1458
1500
  return (_ctx, _cache) => {
1459
- return openBlock(), createBlock(_sfc_main$h, {
1501
+ return openBlock(), createBlock(_sfc_main$j, {
1460
1502
  class: normalizeClass(_ctx.class),
1461
1503
  cname: _ctx.cname
1462
1504
  }, {
@@ -1472,6 +1514,58 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1472
1514
  };
1473
1515
  }
1474
1516
  });
1517
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1518
+ __name: "b-row",
1519
+ props: {
1520
+ class: {},
1521
+ gap: {},
1522
+ viewData: {}
1523
+ },
1524
+ setup(__props) {
1525
+ const props = __props;
1526
+ const gap = computed(() => {
1527
+ if (!props.gap)
1528
+ return ["0", "0"];
1529
+ const gap2 = props.gap;
1530
+ return (Array.isArray(gap2) && gap2.length === 2 ? gap2 : [gap2, gap2]).map((val) => (val / 2).toString().replace(".", "d"));
1531
+ });
1532
+ const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
1533
+ return (_ctx, _cache) => {
1534
+ return openBlock(), createBlock(_sfc_main$i, mergeProps({ class: combClass.value }, _ctx.viewData, {
1535
+ extraClass: {
1536
+ selector: ">",
1537
+ value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
1538
+ }
1539
+ }), {
1540
+ default: withCtx(() => [
1541
+ renderSlot(_ctx.$slots, "default")
1542
+ ]),
1543
+ _: 3
1544
+ }, 16, ["class", "extraClass"]);
1545
+ };
1546
+ }
1547
+ });
1548
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1549
+ __name: "b-col",
1550
+ props: {
1551
+ span: {},
1552
+ offset: {},
1553
+ class: {},
1554
+ viewData: {}
1555
+ },
1556
+ setup(__props) {
1557
+ const props = __props;
1558
+ const combClass = ref(`${props.class} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
1559
+ return (_ctx, _cache) => {
1560
+ return openBlock(), createBlock(_sfc_main$i, mergeProps({ class: combClass.value }, _ctx.viewData), {
1561
+ default: withCtx(() => [
1562
+ renderSlot(_ctx.$slots, "default")
1563
+ ]),
1564
+ _: 3
1565
+ }, 16, ["class"]);
1566
+ };
1567
+ }
1568
+ });
1475
1569
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1476
1570
  __name: "btn-wid",
1477
1571
  props: {
@@ -1519,13 +1613,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1519
1613
  };
1520
1614
  });
1521
1615
  return (_ctx, _cache) => {
1522
- return openBlock(), createBlock(_sfc_main$e, mergeProps(_ctx.hotData, {
1616
+ return openBlock(), createBlock(_sfc_main$g, mergeProps(_ctx.hotData, {
1523
1617
  class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${_ctx.btnRound ? "round-lg" : "round-sm"} ${_ctx.btnWidth ? "lw-" + _ctx.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
1524
1618
  hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
1525
1619
  active: `${active.value.text} ${active.value.bg} ${active.value.line}`
1526
1620
  }), {
1527
1621
  default: withCtx(() => [
1528
- _ctx.iconData ? (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1622
+ _ctx.iconData ? (openBlock(), createBlock(_sfc_main$a, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1529
1623
  createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
1530
1624
  ]),
1531
1625
  _: 1
@@ -1557,15 +1651,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1557
1651
  return (_ctx, _cache) => {
1558
1652
  var _a;
1559
1653
  const _component_router_view = resolveComponent("router-view");
1560
- return openBlock(), createBlock(_sfc_main$g, {
1654
+ return openBlock(), createBlock(_sfc_main$i, {
1561
1655
  class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
1562
1656
  }, {
1563
1657
  default: withCtx(() => {
1564
1658
  var _a2;
1565
1659
  return [
1566
- createVNode(_sfc_main$g, { class: "rel grow-1" }, {
1660
+ createVNode(_sfc_main$i, { class: "rel grow-1" }, {
1567
1661
  default: withCtx(() => [
1568
- createVNode(_sfc_main$4, {
1662
+ createVNode(_sfc_main$6, {
1569
1663
  scroll: { y: "auto", x: "hidden" },
1570
1664
  class: "abs max"
1571
1665
  }, {
@@ -1579,27 +1673,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1579
1673
  ]),
1580
1674
  _: 1
1581
1675
  }),
1582
- createVNode(_sfc_main$g, {
1676
+ createVNode(_sfc_main$i, {
1583
1677
  class: normalizeClass(`pcenter flex h-4d7 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
1584
1678
  }, {
1585
1679
  default: withCtx(() => [
1586
1680
  (openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
1587
- return openBlock(), createBlock(_sfc_main$e, mergeProps({ key: i }, nav.hotData, {
1681
+ return openBlock(), createBlock(_sfc_main$g, mergeProps({ key: i }, nav.hotData, {
1588
1682
  onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
1589
1683
  class: "grow-1 flex rel pad-v-4-px"
1590
1684
  }), {
1591
1685
  default: withCtx(() => {
1592
1686
  var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
1593
1687
  return [
1594
- nav.main ? (openBlock(), createBlock(_sfc_main$g, {
1688
+ nav.main ? (openBlock(), createBlock(_sfc_main$i, {
1595
1689
  key: 0,
1596
1690
  class: normalizeClass(`rel flex-5 mrg-h-auto solid thick-2 w-5 h-5 round t-f1 line-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.center) == null ? void 0 : _b.line) || "neutral"} bg-color-${((_d = (_c = _ctx.colors) == null ? void 0 : _c.center) == null ? void 0 : _d.bg) || "dgray"}`)
1597
1691
  }, {
1598
1692
  default: withCtx(() => [
1599
- createVNode(_sfc_main$8, mergeProps(nav.iconData, { class: "max flex-5 fsize-1d7" }), null, 16)
1693
+ createVNode(_sfc_main$a, mergeProps(nav.iconData, { class: "max flex-5 fsize-1d7" }), null, 16)
1600
1694
  ]),
1601
1695
  _: 2
1602
- }, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$g, {
1696
+ }, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$i, {
1603
1697
  key: 1,
1604
1698
  class: normalizeClass(`flex-column flex-5 max-w color-${((_f = (_e = _ctx.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.normal) || "mgray"}`),
1605
1699
  cname: ((_h = (_g = _ctx.colors) == null ? void 0 : _g.text) == null ? void 0 : _h.act) || "light",
@@ -1609,7 +1703,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1609
1703
  }
1610
1704
  }, {
1611
1705
  default: withCtx(() => [
1612
- createVNode(_sfc_main$8, mergeProps(nav.iconData, {
1706
+ createVNode(_sfc_main$a, mergeProps(nav.iconData, {
1613
1707
  cname: nav.act,
1614
1708
  state: curRoute.value === nav.hotData.link ? "act" : "",
1615
1709
  states: {
@@ -1617,7 +1711,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1617
1711
  },
1618
1712
  class: "w-2d7 h-2d7 trans-fast fsize-1d7"
1619
1713
  }), null, 16, ["cname", "state", "states"]),
1620
- nav.text ? (openBlock(), createBlock(_sfc_main$f, {
1714
+ nav.text ? (openBlock(), createBlock(_sfc_main$h, {
1621
1715
  key: 0,
1622
1716
  class: "fsize-d8"
1623
1717
  }, {
@@ -1645,18 +1739,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1645
1739
  }
1646
1740
  });
1647
1741
  const initGlobalComponents = [
1742
+ _sfc_main$j,
1743
+ _sfc_main$i,
1648
1744
  _sfc_main$h,
1649
1745
  _sfc_main$g,
1650
1746
  _sfc_main$f,
1651
- _sfc_main$e,
1652
- _sfc_main$d,
1653
- _sfc_main$8,
1654
- _sfc_main$5,
1655
- _sfc_main$4,
1656
- _sfc_main$2,
1747
+ _sfc_main$a,
1657
1748
  _sfc_main$7,
1658
- _sfc_main$3,
1659
1749
  _sfc_main$6,
1750
+ _sfc_main$4,
1751
+ _sfc_main$9,
1752
+ _sfc_main$5,
1753
+ _sfc_main$8,
1754
+ _sfc_main$3,
1755
+ _sfc_main$2,
1660
1756
  _sfc_main$1,
1661
1757
  _sfc_main
1662
1758
  ];
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;",wrap:"flex-wrap: wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;",grid:"display: flex; flex-wrap: wrap; align-content: flex-start;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%;",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-lg":"borderRadius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;",shadow:"box-shadow: 0 4px 17px;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}},o={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}};var a,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={};a={get exports(){return r},set exports(e){r=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,n,r,l){return t((s=t(t(o,e),t(n,l)))<<(c=r)|s>>>32-c,a);var s,c}function n(e,t,a,n,r,l,s){return o(t&a|~t&n,e,t,r,l,s)}function r(e,t,a,n,r,l,s){return o(t&n|a&~n,e,t,r,l,s)}function l(e,t,a,n,r,l,s){return o(t^a^n,e,t,r,l,s)}function s(e,t,a,n,r,l,s){return o(a^(t|~n),e,t,r,l,s)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,g=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=g,p=n(p,m,f,g,e[a],7,-680876936),g=n(g,p,m,f,e[a+1],12,-389564586),f=n(f,g,p,m,e[a+2],17,606105819),m=n(m,f,g,p,e[a+3],22,-1044525330),p=n(p,m,f,g,e[a+4],7,-176418897),g=n(g,p,m,f,e[a+5],12,1200080426),f=n(f,g,p,m,e[a+6],17,-1473231341),m=n(m,f,g,p,e[a+7],22,-45705983),p=n(p,m,f,g,e[a+8],7,1770035416),g=n(g,p,m,f,e[a+9],12,-1958414417),f=n(f,g,p,m,e[a+10],17,-42063),m=n(m,f,g,p,e[a+11],22,-1990404162),p=n(p,m,f,g,e[a+12],7,1804603682),g=n(g,p,m,f,e[a+13],12,-40341101),f=n(f,g,p,m,e[a+14],17,-1502002290),p=r(p,m=n(m,f,g,p,e[a+15],22,1236535329),f,g,e[a+1],5,-165796510),g=r(g,p,m,f,e[a+6],9,-1069501632),f=r(f,g,p,m,e[a+11],14,643717713),m=r(m,f,g,p,e[a],20,-373897302),p=r(p,m,f,g,e[a+5],5,-701558691),g=r(g,p,m,f,e[a+10],9,38016083),f=r(f,g,p,m,e[a+15],14,-660478335),m=r(m,f,g,p,e[a+4],20,-405537848),p=r(p,m,f,g,e[a+9],5,568446438),g=r(g,p,m,f,e[a+14],9,-1019803690),f=r(f,g,p,m,e[a+3],14,-187363961),m=r(m,f,g,p,e[a+8],20,1163531501),p=r(p,m,f,g,e[a+13],5,-1444681467),g=r(g,p,m,f,e[a+2],9,-51403784),f=r(f,g,p,m,e[a+7],14,1735328473),p=l(p,m=r(m,f,g,p,e[a+12],20,-1926607734),f,g,e[a+5],4,-378558),g=l(g,p,m,f,e[a+8],11,-2022574463),f=l(f,g,p,m,e[a+11],16,1839030562),m=l(m,f,g,p,e[a+14],23,-35309556),p=l(p,m,f,g,e[a+1],4,-1530992060),g=l(g,p,m,f,e[a+4],11,1272893353),f=l(f,g,p,m,e[a+7],16,-155497632),m=l(m,f,g,p,e[a+10],23,-1094730640),p=l(p,m,f,g,e[a+13],4,681279174),g=l(g,p,m,f,e[a],11,-358537222),f=l(f,g,p,m,e[a+3],16,-722521979),m=l(m,f,g,p,e[a+6],23,76029189),p=l(p,m,f,g,e[a+9],4,-640364487),g=l(g,p,m,f,e[a+12],11,-421815835),f=l(f,g,p,m,e[a+15],16,530742520),p=s(p,m=l(m,f,g,p,e[a+2],23,-995338651),f,g,e[a],6,-198630844),g=s(g,p,m,f,e[a+7],10,1126891415),f=s(f,g,p,m,e[a+14],15,-1416354905),m=s(m,f,g,p,e[a+5],21,-57434055),p=s(p,m,f,g,e[a+12],6,1700485571),g=s(g,p,m,f,e[a+3],10,-1894986606),f=s(f,g,p,m,e[a+10],15,-1051523),m=s(m,f,g,p,e[a+1],21,-2054922799),p=s(p,m,f,g,e[a+8],6,1873313359),g=s(g,p,m,f,e[a+15],10,-30611744),f=s(f,g,p,m,e[a+6],15,-1560198380),m=s(m,f,g,p,e[a+13],21,1309151649),p=s(p,m,f,g,e[a+4],6,-145523070),g=s(g,p,m,f,e[a+11],10,-1120210379),f=s(f,g,p,m,e[a+2],15,718787259),m=s(m,f,g,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),g=t(g,u);return[p,m,f,g]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",n="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),n+=a.charAt(t>>>4&15)+a.charAt(15&t);return n}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,n=d(e),r=[],l=[];for(r[15]=l[15]=void 0,n.length>16&&(n=c(n,8*e.length)),o=0;o<16;o+=1)r[o]=909522486^n[o],l[o]=1549556828^n[o];return a=c(r.concat(d(t)),512+8*t.length),i(c(l.concat(a),640))}(p(e),p(t))}function g(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=g:e.md5=g}(n);const l=r,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},cname:{}},setup(a){const n=a,r=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of r.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.reactive({}),u=e=>{if(o.colors[e])return o.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]})`}return!1},p=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e;return/^f\d+$/.test(t)&&(t=-1*t.substr(1)),/^\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t})(e);if(!1!==t)return t;const o=u(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...n]=t;return`${o}-gradient(${a}deg,${n.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=["auto"],f=(e,t)=>("auto"===e&&(t=""),m.includes(e)?"":t??""),g=e=>{if(!e)return"";return e.split(" ").reduce(((e,o)=>{const a=(e=>{let o=t[e];if(o)return o;const a=e.split("-"),n={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[r,l,s,c]=a;if(o=t[r],o){let e=p(l);if(e)return`${o.pro}: ${e}${s||f(e,o.unit)}`;if(e=p(s),e){const t=n[l];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${c||f(e,o.unit)};`})),a}return`${o.pro}-${l}: ${e}${c||f(e,o.unit)}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},h=(e,t)=>{const o=g(t);o&&(i.value.includes(e)||(i.value.push(e),d[e]=o))};return e.onMounted((()=>{if(n.class){(()=>{let e=document.head.querySelector(`#${s}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",s),document.head.appendChild(e)),r.value=e})(),(t=n.class)&&t.split(" ").forEach((e=>{h(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${l(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(n.class,n.cname??"");(e=>{n.focus&&h(e,n.focus)})(`${o}[focus='true']:focus`),(e=>{n.hover&&h(e,n.hover)})(`${o}[hover='true']:hover`),(e=>{n.active&&h(e,n.active)})(`${o}[active='true']:active`),e=o,n.states&&Object.keys(n.states).forEach((t=>{h(`${e}[state="${t}"]`,n.states[t])})),Object.keys(d).forEach((e=>{r.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:c.value})}}),i=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{type:[String,Boolean]},states:{},bgImg:{},matrix:{},cname:{}},setup(t){const o=t,a=e.computed((()=>{var e,t,a,n,r,l,s,c;const i=o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{},d=(null==(e=o.matrix)?void 0:e.translate)?`translate(${null==(t=o.matrix)?void 0:t.translate})`:"",u=(null==(a=o.matrix)?void 0:a.scale)?`scale(${null==(n=o.matrix)?void 0:n.scale})`:"",p=(null==(r=o.matrix)?void 0:r.rotate)?`rotate(${null==(l=o.matrix)?void 0:l.rotate})`:"",m=(null==(s=o.matrix)?void 0:s.skew)?`skew(${null==(c=o.matrix)?void 0:c.skew})`:"";return{...i,...o.matrix?{transform:`${d} ${u} ${p} ${m}`}:{}}}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle(a.value)},[e.renderSlot(t.$slots,"default")],14,i)])),_:3},8,["class","cname","states"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{type:[String,Boolean]},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{type:[String,Boolean]},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,n=e.ref(),r=e.ref(""),l=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(r.value="_blank",e):(e.search(/^(tel|mailto):/),e)})),s=e.computed((()=>a.forbid?"":"pointer")),i=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}!a.forbid&&o("on_click",e)},d=e=>{!a.forbid&&o("on_dblclick",e)},u=e=>{o("on_enter",e)},p=e=>{o("on_move",e)},f=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${s.value};`),ref_key:"$anchor",ref:n,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:f,onTouchend:f,onClick:e.withModifiers(i,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:r.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:l.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),g=["src","alt"],h=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,n=e.computed((()=>a.img)),r=e.ref(""),l=()=>{a.defaultSrc&&(r.value=a.defaultSrc);const e=new Image;e.onload=()=>{r.value=a.img,o("on_load")},e.src=a.img};return e.watch(n,l),e.onMounted((()=>{l()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("img",{src:r.value,class:e.normalizeClass(o.className),style:{display:"block"},alt:t.alt},null,10,g)])),_:1},8,["class","cname"]))}}),v=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o};const x=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const y=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const k=b({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),w=["state"],_=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{type:[String,Boolean]},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(v,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,w))])),_:1},8,["class","states","cname"]))}}),C=["type","name","focus","state","placeholder","maxlength","readonly"],$=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{type:[String,Boolean]},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{}},emits:["update:text","on_focus","on_blur","on_change"],setup(t,{expose:o,emit:a}){const n=t,r=e.ref(n.text),l={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=()=>{var e;a("update:text",null==(e=r.value)?void 0:e.trim())},i=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(n.rule){const e=l[n.rule.type],t=e?e.regexp:n.rule.type;return{name:n.name,notic:n.rule.notic?n.rule.notic:e?e.notic:`${n.name}格式有误!`,pass:t.test(r.value)}}return!0};return o({check:u}),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(a.className),type:t.type,onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:d,onChange:i,onInput:s,"onUpdate:modelValue":o[1]||(o[1]=e=>r.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,C),[[e.vModelDynamic,r.value]])])),_:1},8,["class","focus","states","cname"]))}}),B=["name","focus","state","placeholder","maxlength","readonly","rows"],N=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{type:[String,Boolean]},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(t,{emit:o}){const a=t,n=e.ref(a.text),r=()=>{o("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:r,"onUpdate:modelValue":o[3]||(o[3]=e=>n.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,B),[[e.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["muted","src","autoplay","loop"],V=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,z)])),_:1},8,["class","cname"]))}}),S=["state"],j=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{type:[String,Boolean]},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const n=t,r=e.ref(),l=e.computed((()=>n.scrollType?`${n.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{r.value.scrollTop=0}}),e.onMounted((()=>{r.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,n=o-s.x,r=t-s.y;let l;Math.abs(n)>=Math.abs(r)?(e.stopPropagation(),l=n>=0?"l2r":"r2l"):l=r>=0?"t2b":"b2t",s.x=o,s.y=t,a("on_scroll",{dir:l,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:r,class:e.normalizeClass(l.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,S)])),_:3},8,["class","states","cname"]))}}),E=["state","draggable"],D=e.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(t,{emit:o}){const a=t,n=e.ref(),r=e.ref(""),l=e.ref(!1),s=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),r.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),l.value=!0},p=e=>{o("on_drag_end",e),l.value=!1,r.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),r.value="dragOver"},f=e=>{o("on_drag_leave",e),r.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let h;const v=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=n.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),b.width=n.value.offsetWidth,b.height=n.value.offsetHeight),r.value="dragStart",s.value=!0,v.x=e.offsetX,v.y=e.offsetY,n.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-v.x,a=e.offsetY-v.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,h.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,h.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{s.value&&(r.value="",s.value=!1,v.x=0,v.y=0,n.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=n.value;a.freeDrag?(e.onmousedown=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=g)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:l.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:n,class:e.normalizeClass(o.className),state:r.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,E)])),_:3},8,["class","states","cname"]))}}),T=["src"],M=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,T)])),_:1},8,["class","cname"]))}),I=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},n=e.computed((()=>{var e,t,n,r;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.normal)?void 0:r.line)||"none"}`,bg:a("normal","lgray")}})),r=e.computed((()=>{var e,t,n,r;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.hover)?void 0:r.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),l=e.computed((()=>{var e,t,n,r;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.active)?void 0:r.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(f,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.btnWidth:""} ${n.value.bg} ${n.value.text} ${n.value.line} solid`,hover:`${r.value.text} ${r.value.bg} ${r.value.line}`,active:`${l.value.text} ${l.value.bg} ${l.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(_,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),A=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),n=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var r;const l=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max flex-column color-light select-none bg-color-${(null==(r=t.colors)?void 0:r.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(j,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(l)],1024)):(e.openBlock(),e.createBlock(l,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter flex h-4d7 ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"}`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((o,n)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:n},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"grow-1 flex rel pad-v-4-px"}),{default:e.withCtx((()=>{var n,r,l,s,c,i,u,m,f,g;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:e.normalizeClass(`rel flex-5 mrg-h-auto solid thick-2 w-5 h-5 round t-f1 line-${(null==(r=null==(n=t.colors)?void 0:n.center)?void 0:r.line)||"neutral"} bg-color-${(null==(s=null==(l=t.colors)?void 0:l.center)?void 0:s.bg)||"dgray"}`)},{default:e.withCtx((()=>[e.createVNode(_,e.mergeProps(o.iconData,{class:"max flex-5 fsize-1d7"}),null,16)])),_:2},1032,["class"])):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 max-w color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.normal)||"mgray"}`),cname:(null==(m=null==(u=t.colors)?void 0:u.text)?void 0:m.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(g=null==(f=t.colors)?void 0:f.text)?void 0:g.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(_,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16,["cname","state","states"]),o.text?(e.openBlock(),e.createBlock(p,{key:0,class:"fsize-d8"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),O=[c,d,p,f,h,_,V,j,M,$,D,N,I,A];return{name:"btxui",install(e){O.forEach((t=>{e.component(t.__name,t)}))}}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;","no-wrap":"flex-wrap: no-wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;","col-1":"flex-basis: 8.333%;","col-2":"flex-basis: 16.667%;","col-3":"flex-basis: 25%;","col-4":"flex-basis: 33.333%;","col-5":"flex-basis: 41.667%;","col-6":"flex-basis: 50%;","col-7":"flex-basis: 58.333%;","col-8":"flex-basis: 66.667%;","col-9":"flex-basis: 75%;","col-10":"flex-basis: 83.333%;","col-11":"flex-basis: 91.667%;","col-12":"flex-basis: 100%;","offset-1":"margin-left: 8.333%;","offset-2":"margin-left: 16.667%;","offset-3":"margin-left: 25%;","offset-4":"margin-left: 33.333%;","offset-5":"margin-left: 41.667%;","offset-6":"margin-left: 50%;","offset-7":"margin-left: 58.333%;","offset-8":"margin-left: 66.667%;","offset-9":"margin-left: 75%;","offset-10":"margin-left: 83.333%;","offset-11":"margin-left: 91.667%;","offset-12":"margin-left: 100%;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%;",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-lg":"borderRadius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","solid-none":"border-style: none;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;",shadow:"box-shadow: 0 4px 17px;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}},o={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}};var a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};a={get exports(){return n},set exports(e){n=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,l,n,r){return t((s=t(t(o,e),t(l,r)))<<(c=n)|s>>>32-c,a);var s,c}function l(e,t,a,l,n,r,s){return o(t&a|~t&l,e,t,n,r,s)}function n(e,t,a,l,n,r,s){return o(t&l|a&~l,e,t,n,r,s)}function r(e,t,a,l,n,r,s){return o(t^a^l,e,t,n,r,s)}function s(e,t,a,l,n,r,s){return o(a^(t|~l),e,t,n,r,s)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,g=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=g,p=l(p,m,f,g,e[a],7,-680876936),g=l(g,p,m,f,e[a+1],12,-389564586),f=l(f,g,p,m,e[a+2],17,606105819),m=l(m,f,g,p,e[a+3],22,-1044525330),p=l(p,m,f,g,e[a+4],7,-176418897),g=l(g,p,m,f,e[a+5],12,1200080426),f=l(f,g,p,m,e[a+6],17,-1473231341),m=l(m,f,g,p,e[a+7],22,-45705983),p=l(p,m,f,g,e[a+8],7,1770035416),g=l(g,p,m,f,e[a+9],12,-1958414417),f=l(f,g,p,m,e[a+10],17,-42063),m=l(m,f,g,p,e[a+11],22,-1990404162),p=l(p,m,f,g,e[a+12],7,1804603682),g=l(g,p,m,f,e[a+13],12,-40341101),f=l(f,g,p,m,e[a+14],17,-1502002290),p=n(p,m=l(m,f,g,p,e[a+15],22,1236535329),f,g,e[a+1],5,-165796510),g=n(g,p,m,f,e[a+6],9,-1069501632),f=n(f,g,p,m,e[a+11],14,643717713),m=n(m,f,g,p,e[a],20,-373897302),p=n(p,m,f,g,e[a+5],5,-701558691),g=n(g,p,m,f,e[a+10],9,38016083),f=n(f,g,p,m,e[a+15],14,-660478335),m=n(m,f,g,p,e[a+4],20,-405537848),p=n(p,m,f,g,e[a+9],5,568446438),g=n(g,p,m,f,e[a+14],9,-1019803690),f=n(f,g,p,m,e[a+3],14,-187363961),m=n(m,f,g,p,e[a+8],20,1163531501),p=n(p,m,f,g,e[a+13],5,-1444681467),g=n(g,p,m,f,e[a+2],9,-51403784),f=n(f,g,p,m,e[a+7],14,1735328473),p=r(p,m=n(m,f,g,p,e[a+12],20,-1926607734),f,g,e[a+5],4,-378558),g=r(g,p,m,f,e[a+8],11,-2022574463),f=r(f,g,p,m,e[a+11],16,1839030562),m=r(m,f,g,p,e[a+14],23,-35309556),p=r(p,m,f,g,e[a+1],4,-1530992060),g=r(g,p,m,f,e[a+4],11,1272893353),f=r(f,g,p,m,e[a+7],16,-155497632),m=r(m,f,g,p,e[a+10],23,-1094730640),p=r(p,m,f,g,e[a+13],4,681279174),g=r(g,p,m,f,e[a],11,-358537222),f=r(f,g,p,m,e[a+3],16,-722521979),m=r(m,f,g,p,e[a+6],23,76029189),p=r(p,m,f,g,e[a+9],4,-640364487),g=r(g,p,m,f,e[a+12],11,-421815835),f=r(f,g,p,m,e[a+15],16,530742520),p=s(p,m=r(m,f,g,p,e[a+2],23,-995338651),f,g,e[a],6,-198630844),g=s(g,p,m,f,e[a+7],10,1126891415),f=s(f,g,p,m,e[a+14],15,-1416354905),m=s(m,f,g,p,e[a+5],21,-57434055),p=s(p,m,f,g,e[a+12],6,1700485571),g=s(g,p,m,f,e[a+3],10,-1894986606),f=s(f,g,p,m,e[a+10],15,-1051523),m=s(m,f,g,p,e[a+1],21,-2054922799),p=s(p,m,f,g,e[a+8],6,1873313359),g=s(g,p,m,f,e[a+15],10,-30611744),f=s(f,g,p,m,e[a+6],15,-1560198380),m=s(m,f,g,p,e[a+13],21,1309151649),p=s(p,m,f,g,e[a+4],6,-145523070),g=s(g,p,m,f,e[a+11],10,-1120210379),f=s(f,g,p,m,e[a+2],15,718787259),m=s(m,f,g,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),g=t(g,u);return[p,m,f,g]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",l="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),l+=a.charAt(t>>>4&15)+a.charAt(15&t);return l}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,l=d(e),n=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],r[o]=1549556828^l[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(r.concat(a),640))}(p(e),p(t))}function g(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=g:e.md5=g}(l);const r=n,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(a){const l=a,n=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.reactive({}),u=e=>{if(o.colors[e])return o.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]})`}return!1},p=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e;return/^f\d+$/.test(t)&&(t=-1*t.substr(1)),/^\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t})(e);if(!1!==t)return t;const o=u(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...l]=t;return`${o}-gradient(${a}deg,${l.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=(e,t,o)=>{let a=t??o;return"auto"===e&&(a=""),"P"===a&&(a="%"),a??""},f=e=>{if(!e)return"";return e.split(" ").reduce(((e,o)=>{const a=(e=>{let o=t[e];if(o)return o;const a=e.split("-"),l={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[n,r,s,c]=a;if(o=t[n],o){let e=p(r);if(e)return`${o.pro}: ${e}${m(e,s,o.unit)}`;if(e=p(s),e){const t=l[r];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${m(e,c,o.unit)};`})),a}return`${o.pro}-${r}: ${e}${m(e,c,o.unit)}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},g=(e,t)=>{if(!i.value.includes(e)){const o=f(t);if(!o)return;i.value.push(e),d[e]=o}},h=e.ref();return e.onMounted((()=>{if(l.matrix&&(()=>{var e,t,o,a,n,r,s,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(o=l.matrix)?void 0:o.scale)?`scale(${null==(a=l.matrix)?void 0:a.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(r=l.matrix)?void 0:r.rotate})`:"",p=(null==(s=l.matrix)?void 0:s.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";h.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),l.class){(()=>{let e=document.head.querySelector(`#${s}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",s),document.head.appendChild(e)),n.value=e})(),(t=l.class)&&t.split(" ").forEach((e=>{g(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${r(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(l.class,l.cname??"");(e=>{l.focus&&g(e,l.focus)})(`${o}[focus='true']:focus`),(e=>{l.hover&&g(e,l.hover)})(`${o}[hover='true']:hover`),(e=>{l.active&&g(e,l.active)})(`${o}[active='true']:active`),e=o,l.states&&Object.keys(l.states).forEach((t=>{g(`${e}[state="${t}"]`,l.states[t])})),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;g(`${e}${t}*`,o)})(o),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:c.value,matrixStyle:h.value})}}),i=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{}},setup(t){const o=t,a=e.computed((()=>o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle({...a.value,...o.matrixStyle})},[e.renderSlot(t.$slots,"default")],14,i)])),_:3},8,["class","cname","states","matrix"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.ref(""),r=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(n.value="_blank",e):(e.search(/^(tel|mailto):/),e)})),s=e.computed((()=>a.forbid?"":"pointer")),i=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}!a.forbid&&o("on_click",e)},d=e=>{!a.forbid&&o("on_dblclick",e)},u=e=>{o("on_enter",e)},p=e=>{o("on_move",e)},f=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(l.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${s.value};`),ref_key:"$anchor",ref:l,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:f,onTouchend:f,onClick:e.withModifiers(i,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:n.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:r.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),g=["src","alt"],h=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.img)),n=e.ref(""),r=()=>{a.defaultSrc&&(n.value=a.defaultSrc);const e=new Image;e.onload=()=>{n.value=a.img,o("on_load")},e.src=a.img};return e.watch(l,r),e.onMounted((()=>{r()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,g)])),_:1},8,["class","cname","matrix"]))}}),x=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),v=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const b=v({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const y=v({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const k=v({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),w=["state"],_=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(x,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(b,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,w))])),_:1},8,["class","states","cname"]))}}),C=["type","name","focus","state","placeholder","maxlength","readonly"],$=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{}},emits:["update:text","on_focus","on_blur","on_change"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(l.text),r={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=()=>{var e;a("update:text",null==(e=n.value)?void 0:e.trim())},i=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(l.rule){const e=r[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(n.value)}}return!0};return o({check:u}),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(a.className),type:t.type,onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:d,onChange:i,onInput:s,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,C),[[e.vModelDynamic,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),B=["name","focus","state","placeholder","maxlength","readonly","rows"],N=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(t,{emit:o}){const a=t,l=e.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,B),[[e.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["muted","src","autoplay","loop"],V=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,z)])),_:1},8,["class","cname"]))}}),S=["state"],j=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(),r=e.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0}}),e.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-s.x,n=t-s.y;let r;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),r=l>=0?"l2r":"r2l"):r=n>=0?"t2b":"b2t",s.x=o,s.y=t,a("on_scroll",{dir:r,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:n,class:e.normalizeClass(r.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,S)])),_:3},8,["class","states","cname"]))}}),D=["state","draggable"],E=e.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.ref(""),r=e.ref(!1),s=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),n.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),r.value=!0},p=e=>{o("on_drag_end",e),r.value=!1,n.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},f=e=>{o("on_drag_leave",e),n.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const x=e.reactive({x:0,y:0}),v=e.reactive({width:0,height:0}),b=e=>{e.preventDefault(),h||(h=l.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.children,(e=>{e!==l.value&&(e.style.pointerEvents="none")})),v.width=l.value.offsetWidth,v.height=l.value.offsetHeight),n.value="dragStart",s.value=!0,x.x=e.offsetX,x.y=e.offsetY,l.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-x.x,a=e.offsetY-x.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+v.width,h.offsetWidth)-v.width,i.y=Math.min(i.y+v.height,h.offsetHeight)-v.height,o("on_move",i,e)},k=()=>{s.value&&(n.value="",s.value=!1,x.x=0,x.y=0,l.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=l.value;a.freeDrag?(e.onmousedown=b,e.ontouchstart=b):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=g)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:r.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:l,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,D)])),_:3},8,["class","states","cname"]))}}),T=["src"],M=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,T)])),_:1},8,["class","cname"]))}),I=e.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(t){const o=t,a=e.computed((()=>{if(!o.gap)return["0","0"];const e=o.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=e.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:l.value},t.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class","extraClass"]))}}),P=e.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(t){const o=t,a=e.ref(`${o.class} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:a.value},t.viewData),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class"]))}}),A=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},l=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:a("normal","lgray")}})),n=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),r=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(f,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${r.value.text} ${r.value.bg} ${r.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(_,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),O=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),l=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var n;const r=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max flex-column color-light select-none bg-color-${(null==(n=t.colors)?void 0:n.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(j,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(r)],1024)):(e.openBlock(),e.createBlock(r,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter flex h-4d7 ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"}`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:l},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"grow-1 flex rel pad-v-4-px"}),{default:e.withCtx((()=>{var l,n,r,s,c,i,u,m,f,g;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:e.normalizeClass(`rel flex-5 mrg-h-auto solid thick-2 w-5 h-5 round t-f1 line-${(null==(n=null==(l=t.colors)?void 0:l.center)?void 0:n.line)||"neutral"} bg-color-${(null==(s=null==(r=t.colors)?void 0:r.center)?void 0:s.bg)||"dgray"}`)},{default:e.withCtx((()=>[e.createVNode(_,e.mergeProps(o.iconData,{class:"max flex-5 fsize-1d7"}),null,16)])),_:2},1032,["class"])):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 max-w color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.normal)||"mgray"}`),cname:(null==(m=null==(u=t.colors)?void 0:u.text)?void 0:m.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(g=null==(f=t.colors)?void 0:f.text)?void 0:g.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(_,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16,["cname","state","states"]),o.text?(e.openBlock(),e.createBlock(p,{key:0,class:"fsize-d8"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),R=[c,d,p,f,h,_,V,j,M,$,E,N,I,P,A,O];return{name:"btxui",install(e){R.forEach((t=>{e.component(t.__name,t)}))}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btxui",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {