bm-admin-ui 1.0.12-alpha → 1.0.13-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/es/components/feedback/index.js +25 -21
  2. package/es/components/float-table/index.d.ts +2 -2
  3. package/es/components/float-table/index.js +36 -27
  4. package/es/components/float-table/src/float-table.vue.d.ts +2 -2
  5. package/es/components/index.d.ts +1 -0
  6. package/es/components/index.js +1 -0
  7. package/es/components/input-tags-display/index.d.ts +75 -0
  8. package/es/components/input-tags-display/index.js +1286 -0
  9. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  10. package/es/components/multi-cascader-compose/index.js +28 -25
  11. package/es/components/over-tooltips/index.js +27 -20
  12. package/es/components/search-filter/index.d.ts +1 -3
  13. package/es/components/search-filter/index.js +48 -36
  14. package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
  15. package/es/components/shops-filter/index.js +23 -30
  16. package/es/components/staffs-selector/index.d.ts +27 -0
  17. package/es/components/staffs-selector/index.js +150 -103
  18. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  19. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  20. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  21. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  22. package/es/components/timeline/index.js +6 -6
  23. package/es/components/upload/index.js +86 -76
  24. package/index.esm.js +37839 -1300
  25. package/index.js +37839 -1299
  26. package/lib/components/feedback/index.js +24 -20
  27. package/lib/components/float-table/index.d.ts +2 -2
  28. package/lib/components/float-table/index.js +36 -27
  29. package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
  30. package/lib/components/index.d.ts +1 -0
  31. package/lib/components/index.js +7 -0
  32. package/lib/components/input-tags-display/index.d.ts +75 -0
  33. package/lib/components/input-tags-display/index.js +1296 -0
  34. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  35. package/lib/components/multi-cascader-compose/index.js +28 -25
  36. package/lib/components/over-tooltips/index.js +27 -20
  37. package/lib/components/search-filter/index.d.ts +1 -3
  38. package/lib/components/search-filter/index.js +48 -36
  39. package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
  40. package/lib/components/shops-filter/index.js +23 -30
  41. package/lib/components/staffs-selector/index.d.ts +27 -0
  42. package/lib/components/staffs-selector/index.js +150 -103
  43. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  44. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  45. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  46. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  47. package/lib/components/timeline/index.js +6 -6
  48. package/lib/components/upload/index.js +86 -76
  49. package/package.json +29 -29
  50. package/theme-chalk/button.css +1 -1
  51. package/theme-chalk/feedback.css +1 -1
  52. package/theme-chalk/float-table.css +1 -1
  53. package/theme-chalk/floating-vue.css +1 -1
  54. package/theme-chalk/flow-designer.css +1 -1
  55. package/theme-chalk/index.css +1 -1
  56. package/theme-chalk/input-tags-display.css +1 -0
  57. package/theme-chalk/modal.css +1 -1
  58. package/theme-chalk/multi-cascader-compose.css +1 -1
  59. package/theme-chalk/over-tooltips.css +1 -1
  60. package/theme-chalk/search-filter.css +1 -1
  61. package/theme-chalk/staffs-selector.css +1 -1
  62. package/theme-chalk/timeline.css +1 -1
  63. package/theme-chalk/upload.css +1 -1
  64. package/types/components/float-table/index.d.ts +2 -2
  65. package/types/components/float-table/src/float-table.vue.d.ts +2 -2
  66. package/types/components/index.d.ts +1 -0
  67. package/types/components/input-tags-display/index.d.ts +75 -0
  68. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  69. package/types/components/search-filter/index.d.ts +1 -3
  70. package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
  71. package/types/components/staffs-selector/index.d.ts +27 -0
  72. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  73. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  74. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  75. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
@@ -0,0 +1,72 @@
1
+ declare type ItemType = {
2
+ key: string | number | any;
3
+ title: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<{
6
+ list: {
7
+ type: ArrayConstructor;
8
+ default: () => ItemType[];
9
+ };
10
+ showEmpty: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ showEmptyBtn: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ btnText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ placement: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ width: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ }, {
31
+ containId: string;
32
+ clear: () => void;
33
+ toAddTags: () => void;
34
+ getPopupContainer: () => HTMLElement;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ list: {
37
+ type: ArrayConstructor;
38
+ default: () => ItemType[];
39
+ };
40
+ showEmpty: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ showEmptyBtn: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ btnText: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ placement: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ width: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ }>> & {
61
+ onClear?: ((...args: any[]) => any) | undefined;
62
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
63
+ onAddClick?: ((...args: any[]) => any) | undefined;
64
+ }, {
65
+ width: string;
66
+ placement: string;
67
+ list: unknown[];
68
+ showEmpty: boolean;
69
+ showEmptyBtn: boolean;
70
+ btnText: string;
71
+ }>;
72
+ export default _default;
@@ -69,7 +69,7 @@ function boundAlpha(a) {
69
69
  */
70
70
  function convertToPercentage(n) {
71
71
  if (n <= 1) {
72
- return Number(n) * 100 + "%";
72
+ return "".concat(Number(n) * 100, "%");
73
73
  }
74
74
  return n;
75
75
  }
@@ -451,12 +451,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
451
451
  // <http://www.w3.org/TR/css3-values/#number-value>
452
452
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
453
453
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
454
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
454
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
455
455
  // Actual matching.
456
456
  // Parentheses and commas are optional, but not required.
457
457
  // Whitespace can take the place of commas or opening paren
458
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
459
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
458
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
459
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
460
  var matchers = {
461
461
  CSS_UNIT: new RegExp(CSS_UNIT),
462
462
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -781,19 +781,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
781
781
  });
782
782
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
783
783
  });
784
- presetPalettes.red;
785
- presetPalettes.volcano;
786
- presetPalettes.gold;
787
- presetPalettes.orange;
788
- presetPalettes.yellow;
789
- presetPalettes.lime;
790
- presetPalettes.green;
791
- presetPalettes.cyan;
792
- presetPalettes.blue;
793
- presetPalettes.geekblue;
794
- presetPalettes.purple;
795
- presetPalettes.magenta;
796
- presetPalettes.grey;
797
784
 
798
785
  // https://github.com/substack/insert-css
799
786
  var containers = []; // will store container HTMLElement references
@@ -1352,7 +1339,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1352
1339
  tempRes.push({ checked: true });
1353
1340
  } else {
1354
1341
  let tempRes2 = tempChildren[j];
1355
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1342
+ let tempIndex2 = props.modelValue.indexOf(
1343
+ tempRes2[props.optionValueName]
1344
+ );
1356
1345
  if (tempIndex2 !== -1) {
1357
1346
  tempRes.push({ checked: true });
1358
1347
  } else {
@@ -1378,7 +1367,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1378
1367
  if (tempChildren) {
1379
1368
  for (let j = 0; j < tempChildren.length; j++) {
1380
1369
  let tempRes2 = tempChildren[j];
1381
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1370
+ let tempIndex2 = props.modelValue.indexOf(
1371
+ tempRes2[props.optionValueName]
1372
+ );
1382
1373
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1383
1374
  parentChecked = true;
1384
1375
  break;
@@ -1460,7 +1451,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1460
1451
  checked.push(tempOption?.[props.optionValueName]);
1461
1452
  if (tempOption?.children) {
1462
1453
  let allSonValues = getAllSonValues(tempOption.children);
1463
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1454
+ allSonValues = allSonValues.filter(
1455
+ (item) => item !== tempOption?.[props.optionValueName]
1456
+ );
1464
1457
  unChecked = unChecked.concat(allSonValues);
1465
1458
  }
1466
1459
  for (let i = level; i > 0; i--) {
@@ -1475,7 +1468,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1475
1468
  checked.push(tempOption2[props.optionValueName]);
1476
1469
  if (tempOption2.children) {
1477
1470
  let allSonValues = getAllSonValues(tempOption2.children);
1478
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1471
+ allSonValues = allSonValues.filter(
1472
+ (item) => item !== tempOption2[props.optionValueName]
1473
+ );
1479
1474
  unChecked = unChecked.concat(allSonValues);
1480
1475
  }
1481
1476
  }
@@ -1501,7 +1496,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1501
1496
  if (tempStatus.checked) {
1502
1497
  checked = [];
1503
1498
  } else {
1504
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1499
+ checked = modulersOptions.value[level].children?.map(
1500
+ (item) => item[props.optionValueName]
1501
+ ) || [];
1505
1502
  }
1506
1503
  } else {
1507
1504
  if (tempStatus.checked) {
@@ -1524,7 +1521,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1524
1521
  checked.push(tempOption[props.optionValueName]);
1525
1522
  if (tempOption.children) {
1526
1523
  let allSonValues = getAllSonValues(tempOption.children);
1527
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1524
+ allSonValues = allSonValues.filter(
1525
+ (item) => item !== tempOption[props.optionValueName]
1526
+ );
1528
1527
  unChecked = unChecked.concat(allSonValues);
1529
1528
  }
1530
1529
  for (let i = level; i > 0; i--) {
@@ -1539,7 +1538,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1539
1538
  checked.push(tempOption2[props.optionValueName]);
1540
1539
  if (tempOption2.children) {
1541
1540
  let allSonValues = getAllSonValues(tempOption2.children);
1542
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1541
+ allSonValues = allSonValues.filter(
1542
+ (item) => item !== tempOption2[props.optionValueName]
1543
+ );
1543
1544
  unChecked = unChecked.concat(allSonValues);
1544
1545
  }
1545
1546
  }
@@ -1625,7 +1626,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1625
1626
  return vue.openBlock(), vue.createElementBlock("div", {
1626
1627
  key: index,
1627
1628
  class: vue.normalizeClass(["bm-multi-cascader-item", {
1628
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1629
+ "is-active": path.value.find(
1630
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1631
+ )
1629
1632
  }]),
1630
1633
  onClick: ($event) => handleClick(option, level, index)
1631
1634
  }, [
@@ -43,16 +43,19 @@ const _sfc_main = {
43
43
  isShow: false,
44
44
  openShow: false
45
45
  });
46
- const observer = new IntersectionObserver((entries) => {
47
- entries.forEach((item) => {
48
- if (item.intersectionRatio > 0.3) {
49
- observerDom();
50
- observer.disconnect();
51
- }
52
- });
53
- }, {
54
- threshold: 0.3
55
- });
46
+ const observer = new IntersectionObserver(
47
+ (entries) => {
48
+ entries.forEach((item) => {
49
+ if (item.intersectionRatio > 0.3) {
50
+ observerDom();
51
+ observer.disconnect();
52
+ }
53
+ });
54
+ },
55
+ {
56
+ threshold: 0.3
57
+ }
58
+ );
56
59
  function observerDom() {
57
60
  if (props.line === 1) {
58
61
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -68,16 +71,20 @@ const _sfc_main = {
68
71
  observer.disconnect();
69
72
  });
70
73
  let mySelf = vue.ref();
71
- vue.watch(() => props.showAlways, function(showAlways) {
72
- if (showAlways)
73
- state.openShow = showAlways;
74
- mySelf.value && observer.unobserve(mySelf.value);
75
- vue.nextTick(function() {
76
- mySelf.value && observer.observe(mySelf.value);
77
- });
78
- }, {
79
- immediate: true
80
- });
74
+ vue.watch(
75
+ () => props.showAlways,
76
+ function(showAlways) {
77
+ if (showAlways)
78
+ state.openShow = showAlways;
79
+ mySelf.value && observer.unobserve(mySelf.value);
80
+ vue.nextTick(function() {
81
+ mySelf.value && observer.observe(mySelf.value);
82
+ });
83
+ },
84
+ {
85
+ immediate: true
86
+ }
87
+ );
81
88
  const handleVisibleChange = (val) => {
82
89
  state.isShow = !state.openShow ? false : val;
83
90
  };
@@ -114,9 +114,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
114
114
  gutter: unknown[];
115
115
  };
116
116
  form: {
117
- labelCol: {
118
- [x: string]: any;
119
- };
117
+ labelCol: Record<string, any>;
120
118
  labelAlign: string;
121
119
  wrapperCol: {
122
120
  span: number;
@@ -74,7 +74,7 @@ function boundAlpha(a) {
74
74
  */
75
75
  function convertToPercentage(n) {
76
76
  if (n <= 1) {
77
- return Number(n) * 100 + "%";
77
+ return "".concat(Number(n) * 100, "%");
78
78
  }
79
79
  return n;
80
80
  }
@@ -456,12 +456,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
456
456
  // <http://www.w3.org/TR/css3-values/#number-value>
457
457
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
458
458
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
459
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
459
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
460
460
  // Actual matching.
461
461
  // Parentheses and commas are optional, but not required.
462
462
  // Whitespace can take the place of commas or opening paren
463
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
464
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
463
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
464
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
465
465
  var matchers = {
466
466
  CSS_UNIT: new RegExp(CSS_UNIT),
467
467
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -786,19 +786,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
786
786
  });
787
787
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
788
788
  });
789
- presetPalettes.red;
790
- presetPalettes.volcano;
791
- presetPalettes.gold;
792
- presetPalettes.orange;
793
- presetPalettes.yellow;
794
- presetPalettes.lime;
795
- presetPalettes.green;
796
- presetPalettes.cyan;
797
- presetPalettes.blue;
798
- presetPalettes.geekblue;
799
- presetPalettes.purple;
800
- presetPalettes.magenta;
801
- presetPalettes.grey;
802
789
 
803
790
  // https://github.com/substack/insert-css
804
791
  var containers = []; // will store container HTMLElement references
@@ -1298,6 +1285,7 @@ const _hoisted_2$1 = { class: "bm-search-filter-actions" };
1298
1285
  const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
1299
1286
  const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
1300
1287
  const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1288
+ __name: "search-reset-btn",
1301
1289
  props: searchResetBtnProps,
1302
1290
  emits: ["submit", "reset", "expand"],
1303
1291
  setup(__props, { emit: emits }) {
@@ -1502,7 +1490,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1502
1490
  tempRes.push({ checked: true });
1503
1491
  } else {
1504
1492
  let tempRes2 = tempChildren[j];
1505
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1493
+ let tempIndex2 = props.modelValue.indexOf(
1494
+ tempRes2[props.optionValueName]
1495
+ );
1506
1496
  if (tempIndex2 !== -1) {
1507
1497
  tempRes.push({ checked: true });
1508
1498
  } else {
@@ -1528,7 +1518,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1528
1518
  if (tempChildren) {
1529
1519
  for (let j = 0; j < tempChildren.length; j++) {
1530
1520
  let tempRes2 = tempChildren[j];
1531
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1521
+ let tempIndex2 = props.modelValue.indexOf(
1522
+ tempRes2[props.optionValueName]
1523
+ );
1532
1524
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1533
1525
  parentChecked = true;
1534
1526
  break;
@@ -1610,7 +1602,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1610
1602
  checked.push(tempOption?.[props.optionValueName]);
1611
1603
  if (tempOption?.children) {
1612
1604
  let allSonValues = getAllSonValues(tempOption.children);
1613
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1605
+ allSonValues = allSonValues.filter(
1606
+ (item) => item !== tempOption?.[props.optionValueName]
1607
+ );
1614
1608
  unChecked = unChecked.concat(allSonValues);
1615
1609
  }
1616
1610
  for (let i = level; i > 0; i--) {
@@ -1625,7 +1619,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1625
1619
  checked.push(tempOption2[props.optionValueName]);
1626
1620
  if (tempOption2.children) {
1627
1621
  let allSonValues = getAllSonValues(tempOption2.children);
1628
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1622
+ allSonValues = allSonValues.filter(
1623
+ (item) => item !== tempOption2[props.optionValueName]
1624
+ );
1629
1625
  unChecked = unChecked.concat(allSonValues);
1630
1626
  }
1631
1627
  }
@@ -1651,7 +1647,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1651
1647
  if (tempStatus.checked) {
1652
1648
  checked = [];
1653
1649
  } else {
1654
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1650
+ checked = modulersOptions.value[level].children?.map(
1651
+ (item) => item[props.optionValueName]
1652
+ ) || [];
1655
1653
  }
1656
1654
  } else {
1657
1655
  if (tempStatus.checked) {
@@ -1674,7 +1672,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1674
1672
  checked.push(tempOption[props.optionValueName]);
1675
1673
  if (tempOption.children) {
1676
1674
  let allSonValues = getAllSonValues(tempOption.children);
1677
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1675
+ allSonValues = allSonValues.filter(
1676
+ (item) => item !== tempOption[props.optionValueName]
1677
+ );
1678
1678
  unChecked = unChecked.concat(allSonValues);
1679
1679
  }
1680
1680
  for (let i = level; i > 0; i--) {
@@ -1689,7 +1689,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1689
1689
  checked.push(tempOption2[props.optionValueName]);
1690
1690
  if (tempOption2.children) {
1691
1691
  let allSonValues = getAllSonValues(tempOption2.children);
1692
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1692
+ allSonValues = allSonValues.filter(
1693
+ (item) => item !== tempOption2[props.optionValueName]
1694
+ );
1693
1695
  unChecked = unChecked.concat(allSonValues);
1694
1696
  }
1695
1697
  }
@@ -1775,7 +1777,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1775
1777
  return vue.openBlock(), vue.createElementBlock("div", {
1776
1778
  key: index,
1777
1779
  class: vue.normalizeClass(["bm-multi-cascader-item", {
1778
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1780
+ "is-active": path.value.find(
1781
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1782
+ )
1779
1783
  }]),
1780
1784
  onClick: ($event) => handleClick(option, level, index)
1781
1785
  }, [
@@ -1945,11 +1949,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1945
1949
  vue.onBeforeUnmount(() => {
1946
1950
  window.removeEventListener("resize", handleResize);
1947
1951
  });
1948
- vue.watch(() => props.showExpandBtn, (val) => {
1949
- handleShowExpandBtn(val);
1950
- }, {
1951
- immediate: true
1952
- });
1952
+ vue.watch(
1953
+ () => props.showExpandBtn,
1954
+ (val) => {
1955
+ handleShowExpandBtn(val);
1956
+ },
1957
+ {
1958
+ immediate: true
1959
+ }
1960
+ );
1953
1961
  const expandRule = vue.computed(() => {
1954
1962
  const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
1955
1963
  const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
@@ -1968,11 +1976,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1968
1976
  });
1969
1977
  }
1970
1978
  }
1971
- vue.watch(isExpand, (val) => {
1972
- handleChangeExpand(val);
1973
- }, {
1974
- immediate: true
1975
- });
1979
+ vue.watch(
1980
+ isExpand,
1981
+ (val) => {
1982
+ handleChangeExpand(val);
1983
+ },
1984
+ {
1985
+ immediate: true
1986
+ }
1987
+ );
1976
1988
  expose({
1977
1989
  fApi
1978
1990
  });
@@ -1986,7 +1998,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1986
1998
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
1987
1999
  "model-value": props.value,
1988
2000
  rule: vue.unref(rule),
1989
- option: vue.unref(option),
2001
+ option,
1990
2002
  onChange: handleChange
1991
2003
  }, null, 8, ["api", "model-value", "rule", "option"])
1992
2004
  ], 2);
@@ -114,9 +114,7 @@ declare const _default: import("vue").DefineComponent<{
114
114
  gutter: unknown[];
115
115
  };
116
116
  form: {
117
- labelCol: {
118
- [x: string]: any;
119
- };
117
+ labelCol: Record<string, any>;
120
118
  labelAlign: string;
121
119
  wrapperCol: {
122
120
  span: number;
@@ -81,7 +81,7 @@ function boundAlpha(a) {
81
81
  */
82
82
  function convertToPercentage(n) {
83
83
  if (n <= 1) {
84
- return Number(n) * 100 + "%";
84
+ return "".concat(Number(n) * 100, "%");
85
85
  }
86
86
  return n;
87
87
  }
@@ -463,12 +463,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
463
463
  // <http://www.w3.org/TR/css3-values/#number-value>
464
464
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
465
465
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
466
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
466
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
467
467
  // Actual matching.
468
468
  // Parentheses and commas are optional, but not required.
469
469
  // Whitespace can take the place of commas or opening paren
470
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
471
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
470
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
471
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
472
472
  var matchers = {
473
473
  CSS_UNIT: new RegExp(CSS_UNIT),
474
474
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -793,19 +793,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
793
793
  });
794
794
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
795
795
  });
796
- presetPalettes.red;
797
- presetPalettes.volcano;
798
- presetPalettes.gold;
799
- presetPalettes.orange;
800
- presetPalettes.yellow;
801
- presetPalettes.lime;
802
- presetPalettes.green;
803
- presetPalettes.cyan;
804
- presetPalettes.blue;
805
- presetPalettes.geekblue;
806
- presetPalettes.purple;
807
- presetPalettes.magenta;
808
- presetPalettes.grey;
809
796
 
810
797
  // https://github.com/substack/insert-css
811
798
  var containers = []; // will store container HTMLElement references
@@ -1350,22 +1337,28 @@ const _sfc_main = vue.defineComponent({
1350
1337
  };
1351
1338
  props.loadFilter().then((data) => {
1352
1339
  state.filterArr = data;
1353
- state.filterSelects = state.filterArr.map((item) => {
1354
- return item.multiple ? [] : "";
1355
- });
1340
+ state.filterSelects = state.filterArr.map(
1341
+ (item) => {
1342
+ return item.multiple ? [] : "";
1343
+ }
1344
+ );
1356
1345
  }).finally(() => {
1357
1346
  methods.fetchData();
1358
1347
  });
1359
- vue.watch(() => state.shopCheck, () => {
1360
- let list = [];
1361
- for (let [key, value] of Object.entries(state.shopCheck)) {
1362
- value && list.push(key);
1363
- }
1364
- state.selected = list;
1365
- emit("update:selected", list);
1366
- emit("change", list);
1367
- methods.checkboxChange();
1368
- }, { deep: true });
1348
+ vue.watch(
1349
+ () => state.shopCheck,
1350
+ () => {
1351
+ let list = [];
1352
+ for (let [key, value] of Object.entries(state.shopCheck)) {
1353
+ value && list.push(key);
1354
+ }
1355
+ state.selected = list;
1356
+ emit("update:selected", list);
1357
+ emit("change", list);
1358
+ methods.checkboxChange();
1359
+ },
1360
+ { deep: true }
1361
+ );
1369
1362
  if (props.showAlways) {
1370
1363
  state.isActive = true;
1371
1364
  }
@@ -27,6 +27,18 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ immediateFetch: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showCount: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ unitStr: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
30
42
  }, {
31
43
  list: import("vue").Ref<any[]>;
32
44
  selected: import("vue").Ref<any>;
@@ -67,6 +79,18 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
67
79
  type: BooleanConstructor;
68
80
  default: boolean;
69
81
  };
82
+ immediateFetch: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ showCount: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ unitStr: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
70
94
  }>> & {
71
95
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
72
96
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
@@ -74,9 +98,12 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
74
98
  title: string;
75
99
  visible: boolean;
76
100
  mode: string;
101
+ showCount: boolean;
77
102
  limit: number;
103
+ unitStr: string;
78
104
  load: Function;
79
105
  forceStatic: boolean;
106
+ immediateFetch: boolean;
80
107
  }>>;
81
108
  export { BmStaffsSelector };
82
109
  export default BmStaffsSelector;