bm-admin-ui 1.0.13-alpha → 1.0.16-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 (48) hide show
  1. package/es/components/feedback/index.js +19 -6
  2. package/es/components/float-table/index.js +27 -36
  3. package/es/components/input-tags-display/index.d.ts +6 -9
  4. package/es/components/input-tags-display/index.js +54 -47
  5. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -9
  6. package/es/components/multi-cascader-compose/index.js +25 -28
  7. package/es/components/over-tooltips/index.js +20 -27
  8. package/es/components/search-filter/index.d.ts +3 -1
  9. package/es/components/search-filter/index.js +36 -48
  10. package/es/components/search-filter/src/search-filter.vue.d.ts +3 -1
  11. package/es/components/shops-filter/index.js +30 -23
  12. package/es/components/staffs-selector/index.js +97 -114
  13. package/es/components/timeline/index.js +6 -6
  14. package/es/components/upload/index.js +76 -86
  15. package/index.esm.js +1049 -37384
  16. package/index.js +1049 -37384
  17. package/lib/components/feedback/index.js +18 -5
  18. package/lib/components/float-table/index.js +27 -36
  19. package/lib/components/input-tags-display/index.d.ts +6 -9
  20. package/lib/components/input-tags-display/index.js +54 -47
  21. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -9
  22. package/lib/components/multi-cascader-compose/index.js +25 -28
  23. package/lib/components/over-tooltips/index.js +20 -27
  24. package/lib/components/search-filter/index.d.ts +3 -1
  25. package/lib/components/search-filter/index.js +36 -48
  26. package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -1
  27. package/lib/components/shops-filter/index.js +30 -23
  28. package/lib/components/staffs-selector/index.js +97 -114
  29. package/lib/components/timeline/index.js +6 -6
  30. package/lib/components/upload/index.js +76 -86
  31. package/package.json +29 -29
  32. package/theme-chalk/button.css +1 -1
  33. package/theme-chalk/feedback.css +1 -1
  34. package/theme-chalk/float-table.css +1 -1
  35. package/theme-chalk/floating-vue.css +1 -1
  36. package/theme-chalk/flow-designer.css +1 -1
  37. package/theme-chalk/index.css +1 -1
  38. package/theme-chalk/input-tags-display.css +1 -1
  39. package/theme-chalk/modal.css +1 -1
  40. package/theme-chalk/multi-cascader-compose.css +1 -1
  41. package/theme-chalk/over-tooltips.css +1 -1
  42. package/theme-chalk/search-filter.css +1 -1
  43. package/theme-chalk/timeline.css +1 -1
  44. package/theme-chalk/upload.css +1 -1
  45. package/types/components/input-tags-display/index.d.ts +6 -9
  46. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +6 -9
  47. package/types/components/search-filter/index.d.ts +3 -1
  48. package/types/components/search-filter/src/search-filter.vue.d.ts +3 -1
@@ -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 "".concat(Number(n) * 100, "%");
107
+ return 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 = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
489
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + 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|\\(]+(".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*\\)?");
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*\\)?";
495
495
  var matchers = {
496
496
  CSS_UNIT: new RegExp(CSS_UNIT),
497
497
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -816,6 +816,19 @@ 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;
819
832
 
820
833
  // https://github.com/substack/insert-css
821
834
  var containers = []; // will store container HTMLElement references
@@ -238,9 +238,7 @@ const _sfc_main = {
238
238
  if (state.floatHandleDomCol)
239
239
  return;
240
240
  let id = column.id;
241
- state.floatHandleDomCol = floatTable.value.querySelector(
242
- `.vxe-table--header-wrapper .vxe-header--row .${id}`
243
- );
241
+ state.floatHandleDomCol = floatTable.value.querySelector(`.vxe-table--header-wrapper .vxe-header--row .${id}`);
244
242
  },
245
243
  leaveFloatTable() {
246
244
  let timer = setTimeout(() => {
@@ -301,43 +299,36 @@ const _sfc_main = {
301
299
  let closeSetRow;
302
300
  let headerWrapper;
303
301
  if (props.isNeedFloatHandle) {
304
- inObserverDom = new IntersectionObserver(
305
- (entries) => {
306
- entries.forEach((item) => {
307
- if (item.intersectionRatio > 0.1) {
308
- closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
309
- headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
310
- if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
311
- inObserverDom.disconnect();
312
- } else {
313
- isHasOver = true;
314
- }
315
- state.isShowFloatHandle = false;
316
- state.atVisible = true;
302
+ inObserverDom = new IntersectionObserver((entries) => {
303
+ entries.forEach((item) => {
304
+ if (item.intersectionRatio > 0.1) {
305
+ closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
306
+ headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
307
+ if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
308
+ inObserverDom.disconnect();
317
309
  } else {
318
- if (gridOptions.value.data && gridOptions.value.data.length > 0) {
319
- state.goAnimationEnd = false;
320
- state.isShowFloatHandle = true;
321
- state.atVisible = false;
322
- }
310
+ isHasOver = true;
311
+ }
312
+ state.isShowFloatHandle = false;
313
+ state.atVisible = true;
314
+ } else {
315
+ if (gridOptions.value.data && gridOptions.value.data.length > 0) {
316
+ state.goAnimationEnd = false;
317
+ state.isShowFloatHandle = true;
318
+ state.atVisible = false;
323
319
  }
324
- });
325
- },
326
- {
327
- threshold: 0.1
328
- }
329
- );
330
- vue.watch(
331
- () => state.floatHandleDomCol,
332
- function(col) {
333
- if (col) {
334
- inObserverDom.observe(col);
335
320
  }
336
- },
337
- {
338
- immediate: true
321
+ });
322
+ }, {
323
+ threshold: 0.1
324
+ });
325
+ vue.watch(() => state.floatHandleDomCol, function(col) {
326
+ if (col) {
327
+ inObserverDom.observe(col);
339
328
  }
340
- );
329
+ }, {
330
+ immediate: true
331
+ });
341
332
  }
342
333
  return {
343
334
  floatTable,
@@ -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;
@@ -22,10 +25,6 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
22
25
  type: StringConstructor;
23
26
  default: string;
24
27
  };
25
- width: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
28
  }, {
30
29
  containId: string;
31
30
  clear: () => void;
@@ -43,6 +42,9 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
43
42
  type: BooleanConstructor;
44
43
  default: boolean;
45
44
  };
45
+ placeholder: {
46
+ type: StringConstructor;
47
+ };
46
48
  showEmptyBtn: {
47
49
  type: BooleanConstructor;
48
50
  default: boolean;
@@ -55,16 +57,11 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
55
57
  type: StringConstructor;
56
58
  default: string;
57
59
  };
58
- width: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
60
  }>> & {
63
61
  onClear?: ((...args: any[]) => any) | undefined;
64
62
  "onUpdate:list"?: ((...args: any[]) => any) | undefined;
65
63
  onAddClick?: ((...args: any[]) => any) | undefined;
66
64
  }, {
67
- width: string;
68
65
  placement: string;
69
66
  list: unknown[];
70
67
  showEmpty: boolean;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var withInstall = require('bm-admin-ui/lib/utils/with-install');
6
- var Popover = require('ant-design-vue/lib/popover');
6
+ var ToolTip = require('ant-design-vue/lib/tooltip');
7
7
  var Button = require('ant-design-vue/lib/button');
8
8
  var vue = require('vue');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
12
- var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
12
+ var ToolTip__default = /*#__PURE__*/_interopDefaultLegacy(ToolTip);
13
13
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
14
14
 
15
15
  /**
@@ -76,7 +76,7 @@ function boundAlpha(a) {
76
76
  */
77
77
  function convertToPercentage(n) {
78
78
  if (n <= 1) {
79
- return "".concat(Number(n) * 100, "%");
79
+ return Number(n) * 100 + "%";
80
80
  }
81
81
  return n;
82
82
  }
@@ -458,12 +458,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
458
458
  // <http://www.w3.org/TR/css3-values/#number-value>
459
459
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
460
460
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
461
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
461
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
462
462
  // Actual matching.
463
463
  // Parentheses and commas are optional, but not required.
464
464
  // Whitespace can take the place of commas or opening paren
465
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
466
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
465
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
466
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
467
467
  var matchers = {
468
468
  CSS_UNIT: new RegExp(CSS_UNIT),
469
469
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -788,6 +788,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
788
788
  });
789
789
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
790
790
  });
791
+ presetPalettes.red;
792
+ presetPalettes.volcano;
793
+ presetPalettes.gold;
794
+ presetPalettes.orange;
795
+ presetPalettes.yellow;
796
+ presetPalettes.lime;
797
+ presetPalettes.green;
798
+ presetPalettes.cyan;
799
+ presetPalettes.blue;
800
+ presetPalettes.geekblue;
801
+ presetPalettes.purple;
802
+ presetPalettes.magenta;
803
+ presetPalettes.grey;
791
804
 
792
805
  // https://github.com/substack/insert-css
793
806
  var containers = []; // will store container HTMLElement references
@@ -1133,7 +1146,7 @@ var _export_sfc = (sfc, props) => {
1133
1146
  };
1134
1147
 
1135
1148
  const _sfc_main = vue.defineComponent({
1136
- components: { Popover: Popover__default["default"], CloseCircleFilled: CloseCircleFilled$1, Button: Button__default["default"] },
1149
+ components: { ToolTip: ToolTip__default["default"], CloseCircleFilled: CloseCircleFilled$1, Button: Button__default["default"] },
1137
1150
  props: {
1138
1151
  list: {
1139
1152
  type: Array,
@@ -1143,6 +1156,9 @@ const _sfc_main = vue.defineComponent({
1143
1156
  type: Boolean,
1144
1157
  default: false
1145
1158
  },
1159
+ placeholder: {
1160
+ type: String
1161
+ },
1146
1162
  showEmptyBtn: {
1147
1163
  type: Boolean,
1148
1164
  default: true
@@ -1154,10 +1170,6 @@ const _sfc_main = vue.defineComponent({
1154
1170
  placement: {
1155
1171
  type: String,
1156
1172
  default: "bottom"
1157
- },
1158
- width: {
1159
- type: String,
1160
- default: "395px"
1161
1173
  }
1162
1174
  },
1163
1175
  emits: ["clear", "update:list", "addClick"],
@@ -1170,9 +1182,7 @@ const _sfc_main = vue.defineComponent({
1170
1182
  emit("update:list", []);
1171
1183
  emit("clear");
1172
1184
  if (!props.showEmptyBtn && !props.showEmpty) {
1173
- console.error(
1174
- "\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1"
1175
- );
1185
+ console.error("\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1");
1176
1186
  }
1177
1187
  }
1178
1188
  function toAddTags() {
@@ -1186,7 +1196,7 @@ const _sfc_main = vue.defineComponent({
1186
1196
  };
1187
1197
  }
1188
1198
  });
1189
- const _hoisted_1 = { class: "item-input-selector" };
1199
+ const _hoisted_1 = { class: "bm-tags-display" };
1190
1200
  const _hoisted_2 = ["id"];
1191
1201
  const _hoisted_3 = { class: "pop-seleted" };
1192
1202
  const _hoisted_4 = { class: "pop-seleted-title" };
@@ -1194,20 +1204,20 @@ const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode(" \u5DF2\u9009\u62E9");
1194
1204
  const _hoisted_6 = /* @__PURE__ */ vue.createTextVNode("\u9879 ");
1195
1205
  const _hoisted_7 = { class: "select-input-wrapper" };
1196
1206
  const _hoisted_8 = { key: 1 };
1197
- const _hoisted_9 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
1207
+ const _hoisted_9 = { key: 2 };
1208
+ const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
1198
1209
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1199
1210
  const _component_a_tag = vue.resolveComponent("a-tag");
1200
1211
  const _component_CloseCircleFilled = vue.resolveComponent("CloseCircleFilled");
1201
- const _component_Popover = vue.resolveComponent("Popover");
1212
+ const _component_ToolTip = vue.resolveComponent("ToolTip");
1202
1213
  const _component_Button = vue.resolveComponent("Button");
1203
1214
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
1204
1215
  _ctx.list && _ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", {
1205
1216
  key: 0,
1206
1217
  id: _ctx.containId,
1207
- class: "testname",
1208
- style: vue.normalizeStyle({ width: _ctx.width })
1218
+ class: "bm-tags-display-wrapper"
1209
1219
  }, [
1210
- vue.createVNode(_component_Popover, {
1220
+ vue.createVNode(_component_ToolTip, {
1211
1221
  color: "#fff",
1212
1222
  "get-popup-container": _ctx.getPopupContainer,
1213
1223
  placement: _ctx.placement,
@@ -1219,25 +1229,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1219
1229
  _hoisted_5,
1220
1230
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.list.length), 1),
1221
1231
  _hoisted_6
1222
- ]),
1223
- vue.createElementVNode("div", {
1224
- class: "pop-seleted-list",
1225
- onWheel: _cache[0] || (_cache[0] = vue.withModifiers(() => {
1226
- }, ["stop"]))
1227
- }, [
1228
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item) => {
1229
- return vue.openBlock(), vue.createBlock(_component_a_tag, {
1230
- key: item.key,
1231
- class: "pop-seleted-item"
1232
- }, {
1233
- default: vue.withCtx(() => [
1234
- vue.createTextVNode(vue.toDisplayString(item.title), 1)
1235
- ]),
1236
- _: 2
1237
- }, 1024);
1238
- }), 128))
1239
- ], 32)
1240
- ])
1232
+ ])
1233
+ ]),
1234
+ vue.createElementVNode("div", {
1235
+ class: "pop-seleted-list",
1236
+ onWheel: _cache[0] || (_cache[0] = vue.withModifiers(() => {
1237
+ }, ["stop"]))
1238
+ }, [
1239
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item) => {
1240
+ return vue.openBlock(), vue.createBlock(_component_a_tag, {
1241
+ key: item.key,
1242
+ class: "pop-seleted-item"
1243
+ }, {
1244
+ default: vue.withCtx(() => [
1245
+ vue.createTextVNode(vue.toDisplayString(item.title), 1)
1246
+ ]),
1247
+ _: 2
1248
+ }, 1024);
1249
+ }), 128))
1250
+ ], 32)
1241
1251
  ]),
1242
1252
  default: vue.withCtx(() => [
1243
1253
  vue.createElementVNode("div", _hoisted_7, [
@@ -1265,7 +1275,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1265
1275
  ]),
1266
1276
  _: 1
1267
1277
  }, 8, ["get-popup-container", "placement"])
1268
- ], 12, _hoisted_2)) : vue.createCommentVNode("v-if", true),
1278
+ ], 8, _hoisted_2)) : vue.createCommentVNode("v-if", true),
1269
1279
  _ctx.showEmptyBtn && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
1270
1280
  vue.createVNode(_component_Button, {
1271
1281
  onClick: vue.withModifiers(_ctx.toAddTags, ["stop"])
@@ -1276,16 +1286,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1276
1286
  _: 1
1277
1287
  }, 8, ["onClick"])
1278
1288
  ])) : vue.createCommentVNode("v-if", true),
1279
- _ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", {
1280
- key: 2,
1281
- style: vue.normalizeStyle({ width: _ctx.width })
1282
- }, [
1289
+ _ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
1283
1290
  vue.createElementVNode("div", {
1284
1291
  class: "selector-empty-input",
1285
1292
  onClick: _cache[4] || (_cache[4] = vue.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
1286
- }, "\xA0")
1287
- ], 4)) : vue.createCommentVNode("v-if", true),
1288
- _hoisted_9
1293
+ }, "\xA0\xA0" + vue.toDisplayString(_ctx.placeholder), 1)
1294
+ ])) : vue.createCommentVNode("v-if", true),
1295
+ _hoisted_10
1289
1296
  ]);
1290
1297
  }
1291
1298
  var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
@@ -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;
@@ -23,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
23
26
  type: StringConstructor;
24
27
  default: string;
25
28
  };
26
- width: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
29
  }, {
31
30
  containId: string;
32
31
  clear: () => void;
@@ -41,6 +40,9 @@ declare const _default: import("vue").DefineComponent<{
41
40
  type: BooleanConstructor;
42
41
  default: boolean;
43
42
  };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ };
44
46
  showEmptyBtn: {
45
47
  type: BooleanConstructor;
46
48
  default: boolean;
@@ -53,16 +55,11 @@ declare const _default: import("vue").DefineComponent<{
53
55
  type: StringConstructor;
54
56
  default: string;
55
57
  };
56
- width: {
57
- type: StringConstructor;
58
- default: string;
59
- };
60
58
  }>> & {
61
59
  onClear?: ((...args: any[]) => any) | undefined;
62
60
  "onUpdate:list"?: ((...args: any[]) => any) | undefined;
63
61
  onAddClick?: ((...args: any[]) => any) | undefined;
64
62
  }, {
65
- width: string;
66
63
  placement: string;
67
64
  list: unknown[];
68
65
  showEmpty: boolean;
@@ -69,7 +69,7 @@ function boundAlpha(a) {
69
69
  */
70
70
  function convertToPercentage(n) {
71
71
  if (n <= 1) {
72
- return "".concat(Number(n) * 100, "%");
72
+ return 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 = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
454
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + 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|\\(]+(".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*\\)?");
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*\\)?";
460
460
  var matchers = {
461
461
  CSS_UNIT: new RegExp(CSS_UNIT),
462
462
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -781,6 +781,19 @@ 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;
784
797
 
785
798
  // https://github.com/substack/insert-css
786
799
  var containers = []; // will store container HTMLElement references
@@ -1339,9 +1352,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1339
1352
  tempRes.push({ checked: true });
1340
1353
  } else {
1341
1354
  let tempRes2 = tempChildren[j];
1342
- let tempIndex2 = props.modelValue.indexOf(
1343
- tempRes2[props.optionValueName]
1344
- );
1355
+ let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1345
1356
  if (tempIndex2 !== -1) {
1346
1357
  tempRes.push({ checked: true });
1347
1358
  } else {
@@ -1367,9 +1378,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1367
1378
  if (tempChildren) {
1368
1379
  for (let j = 0; j < tempChildren.length; j++) {
1369
1380
  let tempRes2 = tempChildren[j];
1370
- let tempIndex2 = props.modelValue.indexOf(
1371
- tempRes2[props.optionValueName]
1372
- );
1381
+ let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1373
1382
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1374
1383
  parentChecked = true;
1375
1384
  break;
@@ -1451,9 +1460,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1451
1460
  checked.push(tempOption?.[props.optionValueName]);
1452
1461
  if (tempOption?.children) {
1453
1462
  let allSonValues = getAllSonValues(tempOption.children);
1454
- allSonValues = allSonValues.filter(
1455
- (item) => item !== tempOption?.[props.optionValueName]
1456
- );
1463
+ allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1457
1464
  unChecked = unChecked.concat(allSonValues);
1458
1465
  }
1459
1466
  for (let i = level; i > 0; i--) {
@@ -1468,9 +1475,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1468
1475
  checked.push(tempOption2[props.optionValueName]);
1469
1476
  if (tempOption2.children) {
1470
1477
  let allSonValues = getAllSonValues(tempOption2.children);
1471
- allSonValues = allSonValues.filter(
1472
- (item) => item !== tempOption2[props.optionValueName]
1473
- );
1478
+ allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1474
1479
  unChecked = unChecked.concat(allSonValues);
1475
1480
  }
1476
1481
  }
@@ -1496,9 +1501,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1496
1501
  if (tempStatus.checked) {
1497
1502
  checked = [];
1498
1503
  } else {
1499
- checked = modulersOptions.value[level].children?.map(
1500
- (item) => item[props.optionValueName]
1501
- ) || [];
1504
+ checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1502
1505
  }
1503
1506
  } else {
1504
1507
  if (tempStatus.checked) {
@@ -1521,9 +1524,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1521
1524
  checked.push(tempOption[props.optionValueName]);
1522
1525
  if (tempOption.children) {
1523
1526
  let allSonValues = getAllSonValues(tempOption.children);
1524
- allSonValues = allSonValues.filter(
1525
- (item) => item !== tempOption[props.optionValueName]
1526
- );
1527
+ allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1527
1528
  unChecked = unChecked.concat(allSonValues);
1528
1529
  }
1529
1530
  for (let i = level; i > 0; i--) {
@@ -1538,9 +1539,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1538
1539
  checked.push(tempOption2[props.optionValueName]);
1539
1540
  if (tempOption2.children) {
1540
1541
  let allSonValues = getAllSonValues(tempOption2.children);
1541
- allSonValues = allSonValues.filter(
1542
- (item) => item !== tempOption2[props.optionValueName]
1543
- );
1542
+ allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1544
1543
  unChecked = unChecked.concat(allSonValues);
1545
1544
  }
1546
1545
  }
@@ -1626,9 +1625,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1626
1625
  return vue.openBlock(), vue.createElementBlock("div", {
1627
1626
  key: index,
1628
1627
  class: vue.normalizeClass(["bm-multi-cascader-item", {
1629
- "is-active": path.value.find(
1630
- (item) => option[props.optionValueName] === item[props.optionValueName]
1631
- )
1628
+ "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1632
1629
  }]),
1633
1630
  onClick: ($event) => handleClick(option, level, index)
1634
1631
  }, [
@@ -43,19 +43,16 @@ const _sfc_main = {
43
43
  isShow: false,
44
44
  openShow: false
45
45
  });
46
- const observer = new IntersectionObserver(
47
- (entries) => {
48
- entries.forEach((item) => {
49
- if (item.intersectionRatio > 0.3) {
50
- observerDom();
51
- observer.disconnect();
52
- }
53
- });
54
- },
55
- {
56
- threshold: 0.3
57
- }
58
- );
46
+ const observer = new IntersectionObserver((entries) => {
47
+ entries.forEach((item) => {
48
+ if (item.intersectionRatio > 0.3) {
49
+ observerDom();
50
+ observer.disconnect();
51
+ }
52
+ });
53
+ }, {
54
+ threshold: 0.3
55
+ });
59
56
  function observerDom() {
60
57
  if (props.line === 1) {
61
58
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -71,20 +68,16 @@ const _sfc_main = {
71
68
  observer.disconnect();
72
69
  });
73
70
  let mySelf = vue.ref();
74
- vue.watch(
75
- () => props.showAlways,
76
- function(showAlways) {
77
- if (showAlways)
78
- state.openShow = showAlways;
79
- mySelf.value && observer.unobserve(mySelf.value);
80
- vue.nextTick(function() {
81
- mySelf.value && observer.observe(mySelf.value);
82
- });
83
- },
84
- {
85
- immediate: true
86
- }
87
- );
71
+ vue.watch(() => props.showAlways, function(showAlways) {
72
+ if (showAlways)
73
+ state.openShow = showAlways;
74
+ mySelf.value && observer.unobserve(mySelf.value);
75
+ vue.nextTick(function() {
76
+ mySelf.value && observer.observe(mySelf.value);
77
+ });
78
+ }, {
79
+ immediate: true
80
+ });
88
81
  const handleVisibleChange = (val) => {
89
82
  state.isShow = !state.openShow ? false : val;
90
83
  };
@@ -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;