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;
@@ -1,11 +1,11 @@
1
- import { Button, notification, Modal } from 'ant-design-vue';
1
+ import { notification, Modal, Button } 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 Number(n) * 100 + "%";
97
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
479
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
485
485
  var matchers = {
486
486
  CSS_UNIT: new RegExp(CSS_UNIT),
487
487
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -806,19 +806,6 @@ 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;
822
809
 
823
810
  // https://github.com/substack/insert-css
824
811
  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;
@@ -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
@@ -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";