bm-admin-ui 1.0.8-alpha → 1.0.11-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 (54) hide show
  1. package/es/components/feedback/index.d.ts +4 -4
  2. package/es/components/feedback/index.js +6 -19
  3. package/es/components/feedback/src/bmAlert.vue.d.ts +1 -1
  4. package/es/components/feedback/src/bmModal.vue.d.ts +3 -3
  5. package/es/components/multi-cascader-compose/index.d.ts +3 -3
  6. package/es/components/multi-cascader-compose/index.js +4 -17
  7. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  8. package/es/components/search-filter/index.d.ts +30 -3
  9. package/es/components/search-filter/index.js +69 -51
  10. package/es/components/search-filter/src/{serach-filter.d.ts → search-filter.d.ts} +12 -0
  11. package/es/components/search-filter/src/search-filter.vue.d.ts +30 -3
  12. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +16 -2
  13. package/es/components/shops-filter/index.js +4 -17
  14. package/es/components/staffs-selector/index.js +4 -17
  15. package/es/components/upload/index.js +4 -17
  16. package/index.esm.js +37019 -969
  17. package/index.js +37017 -967
  18. package/lib/components/feedback/index.d.ts +4 -4
  19. package/lib/components/feedback/index.js +5 -18
  20. package/lib/components/feedback/src/bmAlert.vue.d.ts +1 -1
  21. package/lib/components/feedback/src/bmModal.vue.d.ts +3 -3
  22. package/lib/components/multi-cascader-compose/index.d.ts +3 -3
  23. package/lib/components/multi-cascader-compose/index.js +4 -17
  24. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  25. package/lib/components/search-filter/index.d.ts +30 -3
  26. package/lib/components/search-filter/index.js +69 -51
  27. package/lib/components/search-filter/src/{serach-filter.d.ts → search-filter.d.ts} +12 -0
  28. package/lib/components/search-filter/src/search-filter.vue.d.ts +30 -3
  29. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +16 -2
  30. package/lib/components/shops-filter/index.js +4 -17
  31. package/lib/components/staffs-selector/index.js +4 -17
  32. package/lib/components/upload/index.js +4 -17
  33. package/package.json +29 -29
  34. package/theme-chalk/button.css +1 -1
  35. package/theme-chalk/feedback.css +1 -1
  36. package/theme-chalk/float-table.css +1 -1
  37. package/theme-chalk/floating-vue.css +1 -1
  38. package/theme-chalk/flow-designer.css +1 -1
  39. package/theme-chalk/index.css +1 -1
  40. package/theme-chalk/modal.css +1 -1
  41. package/theme-chalk/multi-cascader-compose.css +1 -1
  42. package/theme-chalk/over-tooltips.css +1 -1
  43. package/theme-chalk/search-filter.css +1 -1
  44. package/theme-chalk/timeline.css +1 -1
  45. package/theme-chalk/upload.css +1 -1
  46. package/types/components/feedback/index.d.ts +4 -4
  47. package/types/components/feedback/src/bmAlert.vue.d.ts +1 -1
  48. package/types/components/feedback/src/bmModal.vue.d.ts +3 -3
  49. package/types/components/multi-cascader-compose/index.d.ts +3 -3
  50. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +3 -3
  51. package/types/components/search-filter/index.d.ts +30 -3
  52. package/types/components/search-filter/src/{serach-filter.d.ts → search-filter.d.ts} +12 -0
  53. package/types/components/search-filter/src/search-filter.vue.d.ts +30 -3
  54. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +16 -2
@@ -38,8 +38,8 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
38
38
  default: string;
39
39
  };
40
40
  }>> & {
41
- onOk?: ((...args: any[]) => any) | undefined;
42
41
  onClose?: ((...args: any[]) => any) | undefined;
42
+ onOk?: ((...args: any[]) => any) | undefined;
43
43
  }>>;
44
44
  caculWidth: import("vue").ComputedRef<string>;
45
45
  onOkCallback: (e: any) => void;
@@ -835,12 +835,12 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
835
835
  default: string;
836
836
  };
837
837
  }>> & {
838
- onOk?: ((...args: any[]) => any) | undefined;
839
838
  onClose?: ((...args: any[]) => any) | undefined;
839
+ onOk?: ((...args: any[]) => any) | undefined;
840
840
  }, {
841
841
  size: string;
842
- visible: boolean;
843
842
  width: string;
843
+ visible: boolean;
844
844
  }>>;
845
845
  declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
846
846
  type: {
@@ -872,7 +872,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
872
872
  }>> & {
873
873
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
874
874
  }>>;
875
- getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType | undefined>;
875
+ getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/CheckCircleFilled").CheckCircleFilledIconType | undefined>;
876
876
  AAlert: {
877
877
  new (...args: any[]): {
878
878
  $: import("vue").ComponentInternalInstance;
@@ -15,7 +15,7 @@ var AAlert__default = /*#__PURE__*/_interopDefaultLegacy(AAlert);
15
15
  var AModal__default = /*#__PURE__*/_interopDefaultLegacy(AModal$1);
16
16
  var message__default = /*#__PURE__*/_interopDefaultLegacy(message);
17
17
 
18
- /*! *****************************************************************************
18
+ /******************************************************************************
19
19
  Copyright (c) Microsoft Corporation.
20
20
 
21
21
  Permission to use, copy, modify, and/or distribute this software for any
@@ -104,7 +104,7 @@ function boundAlpha(a) {
104
104
  */
105
105
  function convertToPercentage(n) {
106
106
  if (n <= 1) {
107
- return Number(n) * 100 + "%";
107
+ return "".concat(Number(n) * 100, "%");
108
108
  }
109
109
  return n;
110
110
  }
@@ -486,12 +486,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
486
486
  // <http://www.w3.org/TR/css3-values/#number-value>
487
487
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
488
488
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
489
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
489
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
490
490
  // Actual matching.
491
491
  // Parentheses and commas are optional, but not required.
492
492
  // Whitespace can take the place of commas or opening paren
493
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
494
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
493
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
494
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
495
495
  var matchers = {
496
496
  CSS_UNIT: new RegExp(CSS_UNIT),
497
497
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -816,19 +816,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
816
816
  });
817
817
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
818
818
  });
819
- presetPalettes.red;
820
- presetPalettes.volcano;
821
- presetPalettes.gold;
822
- presetPalettes.orange;
823
- presetPalettes.yellow;
824
- presetPalettes.lime;
825
- presetPalettes.green;
826
- presetPalettes.cyan;
827
- presetPalettes.blue;
828
- presetPalettes.geekblue;
829
- presetPalettes.purple;
830
- presetPalettes.magenta;
831
- presetPalettes.grey;
832
819
 
833
820
  // https://github.com/substack/insert-css
834
821
  var containers = []; // will store container HTMLElement references
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  }>> & {
29
29
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
30
30
  }>>;
31
- getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType | undefined>;
31
+ getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/CheckCircleFilled").CheckCircleFilledIconType | undefined>;
32
32
  AAlert: {
33
33
  new (...args: any[]): {
34
34
  $: import("vue").ComponentInternalInstance;
@@ -32,8 +32,8 @@ declare const _default: import("vue").DefineComponent<{
32
32
  default: string;
33
33
  };
34
34
  }>> & {
35
- onOk?: ((...args: any[]) => any) | undefined;
36
35
  onClose?: ((...args: any[]) => any) | undefined;
36
+ onOk?: ((...args: any[]) => any) | undefined;
37
37
  }>>;
38
38
  caculWidth: import("vue").ComputedRef<string>;
39
39
  onOkCallback: (e: any) => void;
@@ -829,11 +829,11 @@ declare const _default: import("vue").DefineComponent<{
829
829
  default: string;
830
830
  };
831
831
  }>> & {
832
- onOk?: ((...args: any[]) => any) | undefined;
833
832
  onClose?: ((...args: any[]) => any) | undefined;
833
+ onOk?: ((...args: any[]) => any) | undefined;
834
834
  }, {
835
835
  size: string;
836
- visible: boolean;
837
836
  width: string;
837
+ visible: boolean;
838
838
  }>;
839
839
  export default _default;
@@ -74,8 +74,8 @@ declare const BmMultiCascaderCompose: import("bm-admin-ui/es/utils/with-install"
74
74
  default: undefined;
75
75
  };
76
76
  }>> & {
77
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
78
77
  onChange?: ((...args: any[]) => any) | undefined;
78
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
79
79
  }>>;
80
80
  emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
81
81
  path: import("vue").Ref<{
@@ -144,15 +144,15 @@ declare const BmMultiCascaderCompose: import("bm-admin-ui/es/utils/with-install"
144
144
  default: undefined;
145
145
  };
146
146
  }>> & {
147
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
148
147
  onChange?: ((...args: any[]) => any) | undefined;
148
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
149
149
  }, {
150
+ placeholder: string;
150
151
  options: import("./types").MutilCascaderItem[];
151
152
  modelValue: string[];
152
153
  optionValueName: string;
153
154
  optionLabelName: string;
154
155
  maxTagCount: number;
155
- placeholder: string;
156
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;
@@ -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
@@ -75,8 +75,8 @@ declare const _default: import("vue").DefineComponent<{
75
75
  default: undefined;
76
76
  };
77
77
  }>> & {
78
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
79
78
  onChange?: ((...args: any[]) => any) | undefined;
79
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
80
80
  }>>;
81
81
  emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
82
82
  path: import("vue").Ref<{
@@ -145,15 +145,15 @@ declare const _default: import("vue").DefineComponent<{
145
145
  default: undefined;
146
146
  };
147
147
  }>> & {
148
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
149
148
  onChange?: ((...args: any[]) => any) | undefined;
149
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
150
150
  }, {
151
+ placeholder: string;
151
152
  options: MutilCascaderItem[];
152
153
  modelValue: string[];
153
154
  optionValueName: string;
154
155
  optionLabelName: string;
155
156
  maxTagCount: number;
156
- placeholder: string;
157
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;
@@ -3,6 +3,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
+ showSearchIcon: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  userRule: {
7
11
  type: ArrayConstructor;
8
12
  default(): never[];
@@ -21,6 +25,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
21
25
  type: ObjectConstructor;
22
26
  default(): {};
23
27
  };
28
+ gutter: {
29
+ type: ArrayConstructor;
30
+ default(): number[];
31
+ };
24
32
  fixedCount: {
25
33
  type: NumberConstructor;
26
34
  default: number;
@@ -39,6 +47,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
39
47
  type: BooleanConstructor;
40
48
  default: boolean;
41
49
  };
50
+ showSearchIcon: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
42
54
  userRule: {
43
55
  type: ArrayConstructor;
44
56
  default(): never[];
@@ -57,6 +69,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
57
69
  type: ObjectConstructor;
58
70
  default(): {};
59
71
  };
72
+ gutter: {
73
+ type: ArrayConstructor;
74
+ default(): number[];
75
+ };
60
76
  fixedCount: {
61
77
  type: NumberConstructor;
62
78
  default: number;
@@ -70,8 +86,8 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
70
86
  default: string;
71
87
  };
72
88
  }>> & {
73
- onSubmit?: ((...args: any[]) => any) | undefined;
74
89
  onReset?: ((...args: any[]) => any) | undefined;
90
+ onSubmit?: ((...args: any[]) => any) | undefined;
75
91
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
76
92
  onExpand?: ((...args: any[]) => any) | undefined;
77
93
  }>>;
@@ -81,6 +97,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
81
97
  type: string;
82
98
  props: {
83
99
  showExpandBtn: boolean;
100
+ showSearchIcon: boolean;
84
101
  };
85
102
  on: {
86
103
  submit: () => void;
@@ -94,7 +111,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
94
111
  span: number;
95
112
  };
96
113
  row: {
97
- gutter: number[];
114
+ gutter: unknown[];
98
115
  };
99
116
  form: {
100
117
  labelCol: Record<string, any>;
@@ -116,6 +133,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
116
133
  type: BooleanConstructor;
117
134
  default: boolean;
118
135
  };
136
+ showSearchIcon: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
119
140
  userRule: {
120
141
  type: ArrayConstructor;
121
142
  default(): never[];
@@ -134,6 +155,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
134
155
  type: ObjectConstructor;
135
156
  default(): {};
136
157
  };
158
+ gutter: {
159
+ type: ArrayConstructor;
160
+ default(): number[];
161
+ };
137
162
  fixedCount: {
138
163
  type: NumberConstructor;
139
164
  default: number;
@@ -147,16 +172,18 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
147
172
  default: string;
148
173
  };
149
174
  }>> & {
150
- onSubmit?: ((...args: any[]) => any) | undefined;
151
175
  onReset?: ((...args: any[]) => any) | undefined;
176
+ onSubmit?: ((...args: any[]) => any) | undefined;
152
177
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
153
178
  onExpand?: ((...args: any[]) => any) | undefined;
154
179
  }, {
155
180
  value: Record<string, any>;
156
181
  showExpandBtn: boolean;
182
+ showSearchIcon: boolean;
157
183
  userRule: unknown[];
158
184
  labelCol: Record<string, any>;
159
185
  ruleSpan: Record<string, any>;
186
+ gutter: unknown[];
160
187
  fixedCount: number;
161
188
  fixedFields: string[];
162
189
  expandPlacement: "left" | "right";