bm-admin-ui 1.0.15-alpha → 1.0.18-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 (84) hide show
  1. package/es/components/feedback/index.js +19 -6
  2. package/es/components/float-table/index.d.ts +2 -2
  3. package/es/components/float-table/index.js +27 -36
  4. package/es/components/float-table/src/float-table.vue.d.ts +2 -2
  5. package/es/components/input-tags-display/index.d.ts +6 -0
  6. package/es/components/input-tags-display/index.js +22 -8
  7. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -0
  8. package/es/components/multi-cascader-compose/index.d.ts +3 -3
  9. package/es/components/multi-cascader-compose/index.js +25 -28
  10. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  11. package/es/components/over-tooltips/index.js +20 -27
  12. package/es/components/search-filter/index.d.ts +4 -2
  13. package/es/components/search-filter/index.js +36 -48
  14. package/es/components/search-filter/src/search-filter.vue.d.ts +4 -2
  15. package/es/components/shops-filter/index.d.ts +1 -1
  16. package/es/components/shops-filter/index.js +30 -23
  17. package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  18. package/es/components/staffs-selector/index.js +98 -115
  19. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  20. package/es/components/timeline/index.d.ts +20 -6
  21. package/es/components/timeline/index.js +6 -6
  22. package/es/components/timeline/src/props.d.ts +6 -2
  23. package/es/components/timeline/src/timeline-item.vue.d.ts +20 -6
  24. package/es/components/upload/index.d.ts +9 -0
  25. package/es/components/upload/index.js +136 -93
  26. package/es/components/upload/src/upload.vue.d.ts +9 -0
  27. package/index.esm.js +1068 -37345
  28. package/index.js +1068 -37345
  29. package/lib/components/feedback/index.js +18 -5
  30. package/lib/components/float-table/index.d.ts +2 -2
  31. package/lib/components/float-table/index.js +27 -36
  32. package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
  33. package/lib/components/input-tags-display/index.d.ts +6 -0
  34. package/lib/components/input-tags-display/index.js +22 -8
  35. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -0
  36. package/lib/components/multi-cascader-compose/index.d.ts +3 -3
  37. package/lib/components/multi-cascader-compose/index.js +25 -28
  38. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  39. package/lib/components/over-tooltips/index.js +20 -27
  40. package/lib/components/search-filter/index.d.ts +4 -2
  41. package/lib/components/search-filter/index.js +36 -48
  42. package/lib/components/search-filter/src/search-filter.vue.d.ts +4 -2
  43. package/lib/components/shops-filter/index.d.ts +1 -1
  44. package/lib/components/shops-filter/index.js +30 -23
  45. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  46. package/lib/components/staffs-selector/index.js +98 -115
  47. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  48. package/lib/components/timeline/index.d.ts +20 -6
  49. package/lib/components/timeline/index.js +6 -6
  50. package/lib/components/timeline/src/props.d.ts +6 -2
  51. package/lib/components/timeline/src/timeline-item.vue.d.ts +20 -6
  52. package/lib/components/upload/index.d.ts +9 -0
  53. package/lib/components/upload/index.js +136 -93
  54. package/lib/components/upload/src/upload.vue.d.ts +9 -0
  55. package/package.json +29 -29
  56. package/theme-chalk/button.css +1 -1
  57. package/theme-chalk/feedback.css +1 -1
  58. package/theme-chalk/float-table.css +1 -1
  59. package/theme-chalk/floating-vue.css +1 -1
  60. package/theme-chalk/flow-designer.css +1 -1
  61. package/theme-chalk/index.css +1 -1
  62. package/theme-chalk/input-tags-display.css +1 -1
  63. package/theme-chalk/modal.css +1 -1
  64. package/theme-chalk/multi-cascader-compose.css +1 -1
  65. package/theme-chalk/over-tooltips.css +1 -1
  66. package/theme-chalk/search-filter.css +1 -1
  67. package/theme-chalk/timeline.css +1 -1
  68. package/theme-chalk/upload.css +1 -1
  69. package/types/components/float-table/index.d.ts +2 -2
  70. package/types/components/float-table/src/float-table.vue.d.ts +2 -2
  71. package/types/components/input-tags-display/index.d.ts +6 -0
  72. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -0
  73. package/types/components/multi-cascader-compose/index.d.ts +3 -3
  74. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  75. package/types/components/search-filter/index.d.ts +4 -2
  76. package/types/components/search-filter/src/search-filter.vue.d.ts +4 -2
  77. package/types/components/shops-filter/index.d.ts +1 -1
  78. package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  79. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  80. package/types/components/timeline/index.d.ts +20 -6
  81. package/types/components/timeline/src/props.d.ts +6 -2
  82. package/types/components/timeline/src/timeline-item.vue.d.ts +20 -6
  83. package/types/components/upload/index.d.ts +9 -0
  84. package/types/components/upload/src/upload.vue.d.ts +9 -0
@@ -1,11 +1,11 @@
1
- import { notification, Modal, Button } from 'ant-design-vue';
1
+ import { Button, notification, Modal } from 'ant-design-vue';
2
2
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
3
3
  import { h, nextTick, createVNode, defineComponent, computed, openBlock, createBlock, unref, withCtx, resolveDynamicComponent, renderSlot, useSlots, resolveComponent, createSlots, createElementVNode, createTextVNode } from 'vue';
4
4
  import AAlert from 'ant-design-vue/lib/alert';
5
5
  import AModal$1 from 'ant-design-vue/lib/modal';
6
6
  import message from 'ant-design-vue/lib/message';
7
7
 
8
- /******************************************************************************
8
+ /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
10
10
 
11
11
  Permission to use, copy, modify, and/or distribute this software for any
@@ -94,7 +94,7 @@ function boundAlpha(a) {
94
94
  */
95
95
  function convertToPercentage(n) {
96
96
  if (n <= 1) {
97
- return "".concat(Number(n) * 100, "%");
97
+ return Number(n) * 100 + "%";
98
98
  }
99
99
  return n;
100
100
  }
@@ -476,12 +476,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
476
476
  // <http://www.w3.org/TR/css3-values/#number-value>
477
477
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
478
478
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
479
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
479
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
480
480
  // Actual matching.
481
481
  // Parentheses and commas are optional, but not required.
482
482
  // Whitespace can take the place of commas or opening paren
483
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
484
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
483
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
484
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
485
485
  var matchers = {
486
486
  CSS_UNIT: new RegExp(CSS_UNIT),
487
487
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -806,6 +806,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
806
806
  });
807
807
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
808
808
  });
809
+ presetPalettes.red;
810
+ presetPalettes.volcano;
811
+ presetPalettes.gold;
812
+ presetPalettes.orange;
813
+ presetPalettes.yellow;
814
+ presetPalettes.lime;
815
+ presetPalettes.green;
816
+ presetPalettes.cyan;
817
+ presetPalettes.blue;
818
+ presetPalettes.geekblue;
819
+ presetPalettes.purple;
820
+ presetPalettes.magenta;
821
+ presetPalettes.grey;
809
822
 
810
823
  // https://github.com/substack/insert-css
811
824
  var containers = []; // will store container HTMLElement references
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -234,9 +234,7 @@ const _sfc_main = {
234
234
  if (state.floatHandleDomCol)
235
235
  return;
236
236
  let id = column.id;
237
- state.floatHandleDomCol = floatTable.value.querySelector(
238
- `.vxe-table--header-wrapper .vxe-header--row .${id}`
239
- );
237
+ state.floatHandleDomCol = floatTable.value.querySelector(`.vxe-table--header-wrapper .vxe-header--row .${id}`);
240
238
  },
241
239
  leaveFloatTable() {
242
240
  let timer = setTimeout(() => {
@@ -297,43 +295,36 @@ const _sfc_main = {
297
295
  let closeSetRow;
298
296
  let headerWrapper;
299
297
  if (props.isNeedFloatHandle) {
300
- inObserverDom = new IntersectionObserver(
301
- (entries) => {
302
- entries.forEach((item) => {
303
- if (item.intersectionRatio > 0.1) {
304
- closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
305
- headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
306
- if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
307
- inObserverDom.disconnect();
308
- } else {
309
- isHasOver = true;
310
- }
311
- state.isShowFloatHandle = false;
312
- state.atVisible = true;
298
+ inObserverDom = new IntersectionObserver((entries) => {
299
+ entries.forEach((item) => {
300
+ if (item.intersectionRatio > 0.1) {
301
+ closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
302
+ headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
303
+ if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
304
+ inObserverDom.disconnect();
313
305
  } else {
314
- if (gridOptions.value.data && gridOptions.value.data.length > 0) {
315
- state.goAnimationEnd = false;
316
- state.isShowFloatHandle = true;
317
- state.atVisible = false;
318
- }
306
+ isHasOver = true;
307
+ }
308
+ state.isShowFloatHandle = false;
309
+ state.atVisible = true;
310
+ } else {
311
+ if (gridOptions.value.data && gridOptions.value.data.length > 0) {
312
+ state.goAnimationEnd = false;
313
+ state.isShowFloatHandle = true;
314
+ state.atVisible = false;
319
315
  }
320
- });
321
- },
322
- {
323
- threshold: 0.1
324
- }
325
- );
326
- watch(
327
- () => state.floatHandleDomCol,
328
- function(col) {
329
- if (col) {
330
- inObserverDom.observe(col);
331
316
  }
332
- },
333
- {
334
- immediate: true
317
+ });
318
+ }, {
319
+ threshold: 0.1
320
+ });
321
+ watch(() => state.floatHandleDomCol, function(col) {
322
+ if (col) {
323
+ inObserverDom.observe(col);
335
324
  }
336
- );
325
+ }, {
326
+ immediate: true
327
+ });
337
328
  }
338
329
  return {
339
330
  floatTable,
@@ -42,9 +42,9 @@ declare const _default: {
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -10,6 +10,9 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
10
10
  type: BooleanConstructor;
11
11
  default: boolean;
12
12
  };
13
+ placeholder: {
14
+ type: StringConstructor;
15
+ };
13
16
  showEmptyBtn: {
14
17
  type: BooleanConstructor;
15
18
  default: boolean;
@@ -39,6 +42,9 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
39
42
  type: BooleanConstructor;
40
43
  default: boolean;
41
44
  };
45
+ placeholder: {
46
+ type: StringConstructor;
47
+ };
42
48
  showEmptyBtn: {
43
49
  type: BooleanConstructor;
44
50
  default: boolean;
@@ -67,7 +67,7 @@ function boundAlpha(a) {
67
67
  */
68
68
  function convertToPercentage(n) {
69
69
  if (n <= 1) {
70
- return "".concat(Number(n) * 100, "%");
70
+ return Number(n) * 100 + "%";
71
71
  }
72
72
  return n;
73
73
  }
@@ -449,12 +449,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
449
449
  // <http://www.w3.org/TR/css3-values/#number-value>
450
450
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
451
451
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
452
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
452
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
453
453
  // Actual matching.
454
454
  // Parentheses and commas are optional, but not required.
455
455
  // Whitespace can take the place of commas or opening paren
456
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
457
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
456
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
457
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
458
458
  var matchers = {
459
459
  CSS_UNIT: new RegExp(CSS_UNIT),
460
460
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -779,6 +779,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
779
779
  });
780
780
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
781
781
  });
782
+ presetPalettes.red;
783
+ presetPalettes.volcano;
784
+ presetPalettes.gold;
785
+ presetPalettes.orange;
786
+ presetPalettes.yellow;
787
+ presetPalettes.lime;
788
+ presetPalettes.green;
789
+ presetPalettes.cyan;
790
+ presetPalettes.blue;
791
+ presetPalettes.geekblue;
792
+ presetPalettes.purple;
793
+ presetPalettes.magenta;
794
+ presetPalettes.grey;
782
795
 
783
796
  // https://github.com/substack/insert-css
784
797
  var containers = []; // will store container HTMLElement references
@@ -1134,6 +1147,9 @@ const _sfc_main = defineComponent({
1134
1147
  type: Boolean,
1135
1148
  default: false
1136
1149
  },
1150
+ placeholder: {
1151
+ type: String
1152
+ },
1137
1153
  showEmptyBtn: {
1138
1154
  type: Boolean,
1139
1155
  default: true
@@ -1157,9 +1173,7 @@ const _sfc_main = defineComponent({
1157
1173
  emit("update:list", []);
1158
1174
  emit("clear");
1159
1175
  if (!props.showEmptyBtn && !props.showEmpty) {
1160
- console.error(
1161
- "\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1"
1162
- );
1176
+ console.error("\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1");
1163
1177
  }
1164
1178
  }
1165
1179
  function toAddTags() {
@@ -1267,7 +1281,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1267
1281
  createElementVNode("div", {
1268
1282
  class: "selector-empty-input",
1269
1283
  onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
1270
- }, "\xA0")
1284
+ }, "\xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
1271
1285
  ])) : createCommentVNode("v-if", true),
1272
1286
  _hoisted_10
1273
1287
  ]);
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ placeholder: {
15
+ type: StringConstructor;
16
+ };
14
17
  showEmptyBtn: {
15
18
  type: BooleanConstructor;
16
19
  default: boolean;
@@ -37,6 +40,9 @@ declare const _default: import("vue").DefineComponent<{
37
40
  type: BooleanConstructor;
38
41
  default: boolean;
39
42
  };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ };
40
46
  showEmptyBtn: {
41
47
  type: BooleanConstructor;
42
48
  default: boolean;
@@ -77,7 +77,7 @@ declare const BmMultiCascaderCompose: import("bm-admin-ui/es/utils/with-install"
77
77
  onChange?: ((...args: any[]) => any) | undefined;
78
78
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
79
79
  }>>;
80
- emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
80
+ emits: (event: "change" | "update:modelValue", ...args: any[]) => void;
81
81
  path: import("vue").Ref<{
82
82
  [x: string]: any;
83
83
  index: number;
@@ -106,7 +106,7 @@ declare const BmMultiCascaderCompose: import("bm-admin-ui/es/utils/with-install"
106
106
  RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
107
107
  DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
108
108
  CloseCircleFilled: import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType;
109
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
110
110
  options: {
111
111
  type: import("vue").PropType<import("./types").MutilCascaderItem[]>;
112
112
  default(): import("./types").MutilCascaderItem[];
@@ -148,12 +148,12 @@ declare const BmMultiCascaderCompose: import("bm-admin-ui/es/utils/with-install"
148
148
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
149
149
  }, {
150
150
  placeholder: string;
151
+ allowClear: boolean;
151
152
  options: import("./types").MutilCascaderItem[];
152
153
  modelValue: string[];
153
154
  optionValueName: string;
154
155
  optionLabelName: string;
155
156
  maxTagCount: number;
156
- allowClear: boolean;
157
157
  emptyImage: JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
158
158
  [key: string]: any;
159
159
  }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return "".concat(Number(n) * 100, "%");
68
+ return 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 = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
450
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + 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|\\(]+(".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*\\)?");
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*\\)?";
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -777,6 +777,19 @@ 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;
780
793
 
781
794
  // https://github.com/substack/insert-css
782
795
  var containers = []; // will store container HTMLElement references
@@ -1335,9 +1348,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1335
1348
  tempRes.push({ checked: true });
1336
1349
  } else {
1337
1350
  let tempRes2 = tempChildren[j];
1338
- let tempIndex2 = props.modelValue.indexOf(
1339
- tempRes2[props.optionValueName]
1340
- );
1351
+ let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1341
1352
  if (tempIndex2 !== -1) {
1342
1353
  tempRes.push({ checked: true });
1343
1354
  } else {
@@ -1363,9 +1374,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1363
1374
  if (tempChildren) {
1364
1375
  for (let j = 0; j < tempChildren.length; j++) {
1365
1376
  let tempRes2 = tempChildren[j];
1366
- let tempIndex2 = props.modelValue.indexOf(
1367
- tempRes2[props.optionValueName]
1368
- );
1377
+ let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1369
1378
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1370
1379
  parentChecked = true;
1371
1380
  break;
@@ -1447,9 +1456,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1447
1456
  checked.push(tempOption?.[props.optionValueName]);
1448
1457
  if (tempOption?.children) {
1449
1458
  let allSonValues = getAllSonValues(tempOption.children);
1450
- allSonValues = allSonValues.filter(
1451
- (item) => item !== tempOption?.[props.optionValueName]
1452
- );
1459
+ allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1453
1460
  unChecked = unChecked.concat(allSonValues);
1454
1461
  }
1455
1462
  for (let i = level; i > 0; i--) {
@@ -1464,9 +1471,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1464
1471
  checked.push(tempOption2[props.optionValueName]);
1465
1472
  if (tempOption2.children) {
1466
1473
  let allSonValues = getAllSonValues(tempOption2.children);
1467
- allSonValues = allSonValues.filter(
1468
- (item) => item !== tempOption2[props.optionValueName]
1469
- );
1474
+ allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1470
1475
  unChecked = unChecked.concat(allSonValues);
1471
1476
  }
1472
1477
  }
@@ -1492,9 +1497,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1492
1497
  if (tempStatus.checked) {
1493
1498
  checked = [];
1494
1499
  } else {
1495
- checked = modulersOptions.value[level].children?.map(
1496
- (item) => item[props.optionValueName]
1497
- ) || [];
1500
+ checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1498
1501
  }
1499
1502
  } else {
1500
1503
  if (tempStatus.checked) {
@@ -1517,9 +1520,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1517
1520
  checked.push(tempOption[props.optionValueName]);
1518
1521
  if (tempOption.children) {
1519
1522
  let allSonValues = getAllSonValues(tempOption.children);
1520
- allSonValues = allSonValues.filter(
1521
- (item) => item !== tempOption[props.optionValueName]
1522
- );
1523
+ allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1523
1524
  unChecked = unChecked.concat(allSonValues);
1524
1525
  }
1525
1526
  for (let i = level; i > 0; i--) {
@@ -1534,9 +1535,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1534
1535
  checked.push(tempOption2[props.optionValueName]);
1535
1536
  if (tempOption2.children) {
1536
1537
  let allSonValues = getAllSonValues(tempOption2.children);
1537
- allSonValues = allSonValues.filter(
1538
- (item) => item !== tempOption2[props.optionValueName]
1539
- );
1538
+ allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1540
1539
  unChecked = unChecked.concat(allSonValues);
1541
1540
  }
1542
1541
  }
@@ -1622,9 +1621,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1622
1621
  return openBlock(), createElementBlock("div", {
1623
1622
  key: index,
1624
1623
  class: normalizeClass(["bm-multi-cascader-item", {
1625
- "is-active": path.value.find(
1626
- (item) => option[props.optionValueName] === item[props.optionValueName]
1627
- )
1624
+ "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1628
1625
  }]),
1629
1626
  onClick: ($event) => handleClick(option, level, index)
1630
1627
  }, [
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<{
78
78
  onChange?: ((...args: any[]) => any) | undefined;
79
79
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
80
80
  }>>;
81
- emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
81
+ emits: (event: "change" | "update:modelValue", ...args: any[]) => void;
82
82
  path: import("vue").Ref<{
83
83
  [x: string]: any;
84
84
  index: number;
@@ -107,7 +107,7 @@ declare const _default: import("vue").DefineComponent<{
107
107
  RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
108
108
  DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
109
109
  CloseCircleFilled: import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType;
110
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
110
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
111
  options: {
112
112
  type: import("vue").PropType<MutilCascaderItem[]>;
113
113
  default(): MutilCascaderItem[];
@@ -149,12 +149,12 @@ declare const _default: import("vue").DefineComponent<{
149
149
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
150
150
  }, {
151
151
  placeholder: string;
152
+ allowClear: boolean;
152
153
  options: MutilCascaderItem[];
153
154
  modelValue: string[];
154
155
  optionValueName: string;
155
156
  optionLabelName: string;
156
157
  maxTagCount: number;
157
- allowClear: boolean;
158
158
  emptyImage: JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
159
159
  [key: string]: any;
160
160
  }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -39,19 +39,16 @@ const _sfc_main = {
39
39
  isShow: false,
40
40
  openShow: false
41
41
  });
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
- );
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
+ });
55
52
  function observerDom() {
56
53
  if (props.line === 1) {
57
54
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -67,20 +64,16 @@ const _sfc_main = {
67
64
  observer.disconnect();
68
65
  });
69
66
  let mySelf = ref();
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
- );
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
+ });
84
77
  const handleVisibleChange = (val) => {
85
78
  state.isShow = !state.openShow ? false : val;
86
79
  };
@@ -114,7 +114,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
114
114
  gutter: unknown[];
115
115
  };
116
116
  form: {
117
- labelCol: Record<string, any>;
117
+ labelCol: {
118
+ [x: string]: any;
119
+ };
118
120
  labelAlign: string;
119
121
  wrapperCol: {
120
122
  span: number;
@@ -177,11 +179,11 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
177
179
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
178
180
  onExpand?: ((...args: any[]) => any) | undefined;
179
181
  }, {
180
- value: Record<string, any>;
181
182
  showExpandBtn: boolean;
182
183
  showSearchIcon: boolean;
183
184
  userRule: unknown[];
184
185
  labelCol: Record<string, any>;
186
+ value: Record<string, any>;
185
187
  ruleSpan: Record<string, any>;
186
188
  gutter: unknown[];
187
189
  fixedCount: number;