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;
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return Number(n) * 100 + "%";
68
+ return "".concat(Number(n) * 100, "%");
69
69
  }
70
70
  return n;
71
71
  }
@@ -447,12 +447,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
447
447
  // <http://www.w3.org/TR/css3-values/#number-value>
448
448
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
449
449
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
450
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
450
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
451
451
  // Actual matching.
452
452
  // Parentheses and commas are optional, but not required.
453
453
  // Whitespace can take the place of commas or opening paren
454
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
455
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
454
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
455
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -777,19 +777,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
777
777
  });
778
778
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
779
779
  });
780
- presetPalettes.red;
781
- presetPalettes.volcano;
782
- presetPalettes.gold;
783
- presetPalettes.orange;
784
- presetPalettes.yellow;
785
- presetPalettes.lime;
786
- presetPalettes.green;
787
- presetPalettes.cyan;
788
- presetPalettes.blue;
789
- presetPalettes.geekblue;
790
- presetPalettes.purple;
791
- presetPalettes.magenta;
792
- presetPalettes.grey;
793
780
 
794
781
  // https://github.com/substack/insert-css
795
782
  var containers = []; // will store container HTMLElement references
@@ -1348,7 +1335,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1348
1335
  tempRes.push({ checked: true });
1349
1336
  } else {
1350
1337
  let tempRes2 = tempChildren[j];
1351
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1338
+ let tempIndex2 = props.modelValue.indexOf(
1339
+ tempRes2[props.optionValueName]
1340
+ );
1352
1341
  if (tempIndex2 !== -1) {
1353
1342
  tempRes.push({ checked: true });
1354
1343
  } else {
@@ -1374,7 +1363,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1374
1363
  if (tempChildren) {
1375
1364
  for (let j = 0; j < tempChildren.length; j++) {
1376
1365
  let tempRes2 = tempChildren[j];
1377
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1366
+ let tempIndex2 = props.modelValue.indexOf(
1367
+ tempRes2[props.optionValueName]
1368
+ );
1378
1369
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1379
1370
  parentChecked = true;
1380
1371
  break;
@@ -1456,7 +1447,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1456
1447
  checked.push(tempOption?.[props.optionValueName]);
1457
1448
  if (tempOption?.children) {
1458
1449
  let allSonValues = getAllSonValues(tempOption.children);
1459
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1450
+ allSonValues = allSonValues.filter(
1451
+ (item) => item !== tempOption?.[props.optionValueName]
1452
+ );
1460
1453
  unChecked = unChecked.concat(allSonValues);
1461
1454
  }
1462
1455
  for (let i = level; i > 0; i--) {
@@ -1471,7 +1464,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1471
1464
  checked.push(tempOption2[props.optionValueName]);
1472
1465
  if (tempOption2.children) {
1473
1466
  let allSonValues = getAllSonValues(tempOption2.children);
1474
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1467
+ allSonValues = allSonValues.filter(
1468
+ (item) => item !== tempOption2[props.optionValueName]
1469
+ );
1475
1470
  unChecked = unChecked.concat(allSonValues);
1476
1471
  }
1477
1472
  }
@@ -1497,7 +1492,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1497
1492
  if (tempStatus.checked) {
1498
1493
  checked = [];
1499
1494
  } else {
1500
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1495
+ checked = modulersOptions.value[level].children?.map(
1496
+ (item) => item[props.optionValueName]
1497
+ ) || [];
1501
1498
  }
1502
1499
  } else {
1503
1500
  if (tempStatus.checked) {
@@ -1520,7 +1517,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1520
1517
  checked.push(tempOption[props.optionValueName]);
1521
1518
  if (tempOption.children) {
1522
1519
  let allSonValues = getAllSonValues(tempOption.children);
1523
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1520
+ allSonValues = allSonValues.filter(
1521
+ (item) => item !== tempOption[props.optionValueName]
1522
+ );
1524
1523
  unChecked = unChecked.concat(allSonValues);
1525
1524
  }
1526
1525
  for (let i = level; i > 0; i--) {
@@ -1535,7 +1534,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1535
1534
  checked.push(tempOption2[props.optionValueName]);
1536
1535
  if (tempOption2.children) {
1537
1536
  let allSonValues = getAllSonValues(tempOption2.children);
1538
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1537
+ allSonValues = allSonValues.filter(
1538
+ (item) => item !== tempOption2[props.optionValueName]
1539
+ );
1539
1540
  unChecked = unChecked.concat(allSonValues);
1540
1541
  }
1541
1542
  }
@@ -1621,7 +1622,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1621
1622
  return openBlock(), createElementBlock("div", {
1622
1623
  key: index,
1623
1624
  class: normalizeClass(["bm-multi-cascader-item", {
1624
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1625
+ "is-active": path.value.find(
1626
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1627
+ )
1625
1628
  }]),
1626
1629
  onClick: ($event) => handleClick(option, level, index)
1627
1630
  }, [
@@ -39,16 +39,19 @@ const _sfc_main = {
39
39
  isShow: false,
40
40
  openShow: false
41
41
  });
42
- const observer = new IntersectionObserver((entries) => {
43
- entries.forEach((item) => {
44
- if (item.intersectionRatio > 0.3) {
45
- observerDom();
46
- observer.disconnect();
47
- }
48
- });
49
- }, {
50
- threshold: 0.3
51
- });
42
+ const observer = new IntersectionObserver(
43
+ (entries) => {
44
+ entries.forEach((item) => {
45
+ if (item.intersectionRatio > 0.3) {
46
+ observerDom();
47
+ observer.disconnect();
48
+ }
49
+ });
50
+ },
51
+ {
52
+ threshold: 0.3
53
+ }
54
+ );
52
55
  function observerDom() {
53
56
  if (props.line === 1) {
54
57
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -64,16 +67,20 @@ const _sfc_main = {
64
67
  observer.disconnect();
65
68
  });
66
69
  let mySelf = ref();
67
- watch(() => props.showAlways, function(showAlways) {
68
- if (showAlways)
69
- state.openShow = showAlways;
70
- mySelf.value && observer.unobserve(mySelf.value);
71
- nextTick(function() {
72
- mySelf.value && observer.observe(mySelf.value);
73
- });
74
- }, {
75
- immediate: true
76
- });
70
+ watch(
71
+ () => props.showAlways,
72
+ function(showAlways) {
73
+ if (showAlways)
74
+ state.openShow = showAlways;
75
+ mySelf.value && observer.unobserve(mySelf.value);
76
+ nextTick(function() {
77
+ mySelf.value && observer.observe(mySelf.value);
78
+ });
79
+ },
80
+ {
81
+ immediate: true
82
+ }
83
+ );
77
84
  const handleVisibleChange = (val) => {
78
85
  state.isShow = !state.openShow ? false : val;
79
86
  };
@@ -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;
@@ -66,7 +66,7 @@ function boundAlpha(a) {
66
66
  */
67
67
  function convertToPercentage(n) {
68
68
  if (n <= 1) {
69
- return Number(n) * 100 + "%";
69
+ return "".concat(Number(n) * 100, "%");
70
70
  }
71
71
  return n;
72
72
  }
@@ -448,12 +448,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
448
448
  // <http://www.w3.org/TR/css3-values/#number-value>
449
449
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
450
450
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
451
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
451
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
452
452
  // Actual matching.
453
453
  // Parentheses and commas are optional, but not required.
454
454
  // Whitespace can take the place of commas or opening paren
455
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
456
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
455
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
456
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
457
457
  var matchers = {
458
458
  CSS_UNIT: new RegExp(CSS_UNIT),
459
459
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -778,19 +778,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
778
778
  });
779
779
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
780
780
  });
781
- presetPalettes.red;
782
- presetPalettes.volcano;
783
- presetPalettes.gold;
784
- presetPalettes.orange;
785
- presetPalettes.yellow;
786
- presetPalettes.lime;
787
- presetPalettes.green;
788
- presetPalettes.cyan;
789
- presetPalettes.blue;
790
- presetPalettes.geekblue;
791
- presetPalettes.purple;
792
- presetPalettes.magenta;
793
- presetPalettes.grey;
794
781
 
795
782
  // https://github.com/substack/insert-css
796
783
  var containers = []; // will store container HTMLElement references
@@ -1290,6 +1277,7 @@ const _hoisted_2$1 = { class: "bm-search-filter-actions" };
1290
1277
  const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
1291
1278
  const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
1292
1279
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1280
+ __name: "search-reset-btn",
1293
1281
  props: searchResetBtnProps,
1294
1282
  emits: ["submit", "reset", "expand"],
1295
1283
  setup(__props, { emit: emits }) {
@@ -1494,7 +1482,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1494
1482
  tempRes.push({ checked: true });
1495
1483
  } else {
1496
1484
  let tempRes2 = tempChildren[j];
1497
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1485
+ let tempIndex2 = props.modelValue.indexOf(
1486
+ tempRes2[props.optionValueName]
1487
+ );
1498
1488
  if (tempIndex2 !== -1) {
1499
1489
  tempRes.push({ checked: true });
1500
1490
  } else {
@@ -1520,7 +1510,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1520
1510
  if (tempChildren) {
1521
1511
  for (let j = 0; j < tempChildren.length; j++) {
1522
1512
  let tempRes2 = tempChildren[j];
1523
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1513
+ let tempIndex2 = props.modelValue.indexOf(
1514
+ tempRes2[props.optionValueName]
1515
+ );
1524
1516
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1525
1517
  parentChecked = true;
1526
1518
  break;
@@ -1602,7 +1594,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1602
1594
  checked.push(tempOption?.[props.optionValueName]);
1603
1595
  if (tempOption?.children) {
1604
1596
  let allSonValues = getAllSonValues(tempOption.children);
1605
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1597
+ allSonValues = allSonValues.filter(
1598
+ (item) => item !== tempOption?.[props.optionValueName]
1599
+ );
1606
1600
  unChecked = unChecked.concat(allSonValues);
1607
1601
  }
1608
1602
  for (let i = level; i > 0; i--) {
@@ -1617,7 +1611,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1617
1611
  checked.push(tempOption2[props.optionValueName]);
1618
1612
  if (tempOption2.children) {
1619
1613
  let allSonValues = getAllSonValues(tempOption2.children);
1620
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1614
+ allSonValues = allSonValues.filter(
1615
+ (item) => item !== tempOption2[props.optionValueName]
1616
+ );
1621
1617
  unChecked = unChecked.concat(allSonValues);
1622
1618
  }
1623
1619
  }
@@ -1643,7 +1639,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1643
1639
  if (tempStatus.checked) {
1644
1640
  checked = [];
1645
1641
  } else {
1646
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1642
+ checked = modulersOptions.value[level].children?.map(
1643
+ (item) => item[props.optionValueName]
1644
+ ) || [];
1647
1645
  }
1648
1646
  } else {
1649
1647
  if (tempStatus.checked) {
@@ -1666,7 +1664,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1666
1664
  checked.push(tempOption[props.optionValueName]);
1667
1665
  if (tempOption.children) {
1668
1666
  let allSonValues = getAllSonValues(tempOption.children);
1669
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1667
+ allSonValues = allSonValues.filter(
1668
+ (item) => item !== tempOption[props.optionValueName]
1669
+ );
1670
1670
  unChecked = unChecked.concat(allSonValues);
1671
1671
  }
1672
1672
  for (let i = level; i > 0; i--) {
@@ -1681,7 +1681,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1681
1681
  checked.push(tempOption2[props.optionValueName]);
1682
1682
  if (tempOption2.children) {
1683
1683
  let allSonValues = getAllSonValues(tempOption2.children);
1684
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1684
+ allSonValues = allSonValues.filter(
1685
+ (item) => item !== tempOption2[props.optionValueName]
1686
+ );
1685
1687
  unChecked = unChecked.concat(allSonValues);
1686
1688
  }
1687
1689
  }
@@ -1767,7 +1769,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1767
1769
  return openBlock(), createElementBlock("div", {
1768
1770
  key: index,
1769
1771
  class: normalizeClass(["bm-multi-cascader-item", {
1770
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1772
+ "is-active": path.value.find(
1773
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1774
+ )
1771
1775
  }]),
1772
1776
  onClick: ($event) => handleClick(option, level, index)
1773
1777
  }, [
@@ -1937,11 +1941,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1937
1941
  onBeforeUnmount(() => {
1938
1942
  window.removeEventListener("resize", handleResize);
1939
1943
  });
1940
- watch(() => props.showExpandBtn, (val) => {
1941
- handleShowExpandBtn(val);
1942
- }, {
1943
- immediate: true
1944
- });
1944
+ watch(
1945
+ () => props.showExpandBtn,
1946
+ (val) => {
1947
+ handleShowExpandBtn(val);
1948
+ },
1949
+ {
1950
+ immediate: true
1951
+ }
1952
+ );
1945
1953
  const expandRule = computed(() => {
1946
1954
  const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
1947
1955
  const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
@@ -1960,11 +1968,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1960
1968
  });
1961
1969
  }
1962
1970
  }
1963
- watch(isExpand, (val) => {
1964
- handleChangeExpand(val);
1965
- }, {
1966
- immediate: true
1967
- });
1971
+ watch(
1972
+ isExpand,
1973
+ (val) => {
1974
+ handleChangeExpand(val);
1975
+ },
1976
+ {
1977
+ immediate: true
1978
+ }
1979
+ );
1968
1980
  expose({
1969
1981
  fApi
1970
1982
  });
@@ -1978,7 +1990,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1978
1990
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
1979
1991
  "model-value": props.value,
1980
1992
  rule: unref(rule),
1981
- option: unref(option),
1993
+ option,
1982
1994
  onChange: handleChange
1983
1995
  }, null, 8, ["api", "model-value", "rule", "option"])
1984
1996
  ], 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;
@@ -70,7 +70,7 @@ function boundAlpha(a) {
70
70
  */
71
71
  function convertToPercentage(n) {
72
72
  if (n <= 1) {
73
- return Number(n) * 100 + "%";
73
+ return "".concat(Number(n) * 100, "%");
74
74
  }
75
75
  return n;
76
76
  }
@@ -452,12 +452,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
452
452
  // <http://www.w3.org/TR/css3-values/#number-value>
453
453
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
454
454
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
455
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
455
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
456
456
  // Actual matching.
457
457
  // Parentheses and commas are optional, but not required.
458
458
  // Whitespace can take the place of commas or opening paren
459
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
460
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
459
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
461
461
  var matchers = {
462
462
  CSS_UNIT: new RegExp(CSS_UNIT),
463
463
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -782,19 +782,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
782
782
  });
783
783
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
784
784
  });
785
- presetPalettes.red;
786
- presetPalettes.volcano;
787
- presetPalettes.gold;
788
- presetPalettes.orange;
789
- presetPalettes.yellow;
790
- presetPalettes.lime;
791
- presetPalettes.green;
792
- presetPalettes.cyan;
793
- presetPalettes.blue;
794
- presetPalettes.geekblue;
795
- presetPalettes.purple;
796
- presetPalettes.magenta;
797
- presetPalettes.grey;
798
785
 
799
786
  // https://github.com/substack/insert-css
800
787
  var containers = []; // will store container HTMLElement references
@@ -1339,22 +1326,28 @@ const _sfc_main = defineComponent({
1339
1326
  };
1340
1327
  props.loadFilter().then((data) => {
1341
1328
  state.filterArr = data;
1342
- state.filterSelects = state.filterArr.map((item) => {
1343
- return item.multiple ? [] : "";
1344
- });
1329
+ state.filterSelects = state.filterArr.map(
1330
+ (item) => {
1331
+ return item.multiple ? [] : "";
1332
+ }
1333
+ );
1345
1334
  }).finally(() => {
1346
1335
  methods.fetchData();
1347
1336
  });
1348
- watch(() => state.shopCheck, () => {
1349
- let list = [];
1350
- for (let [key, value] of Object.entries(state.shopCheck)) {
1351
- value && list.push(key);
1352
- }
1353
- state.selected = list;
1354
- emit("update:selected", list);
1355
- emit("change", list);
1356
- methods.checkboxChange();
1357
- }, { deep: true });
1337
+ watch(
1338
+ () => state.shopCheck,
1339
+ () => {
1340
+ let list = [];
1341
+ for (let [key, value] of Object.entries(state.shopCheck)) {
1342
+ value && list.push(key);
1343
+ }
1344
+ state.selected = list;
1345
+ emit("update:selected", list);
1346
+ emit("change", list);
1347
+ methods.checkboxChange();
1348
+ },
1349
+ { deep: true }
1350
+ );
1358
1351
  if (props.showAlways) {
1359
1352
  state.isActive = true;
1360
1353
  }
@@ -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;