bm-admin-ui 1.0.12-alpha → 1.0.13-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/es/components/feedback/index.js +25 -21
  2. package/es/components/float-table/index.d.ts +2 -2
  3. package/es/components/float-table/index.js +36 -27
  4. package/es/components/float-table/src/float-table.vue.d.ts +2 -2
  5. package/es/components/index.d.ts +1 -0
  6. package/es/components/index.js +1 -0
  7. package/es/components/input-tags-display/index.d.ts +75 -0
  8. package/es/components/input-tags-display/index.js +1286 -0
  9. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  10. package/es/components/multi-cascader-compose/index.js +28 -25
  11. package/es/components/over-tooltips/index.js +27 -20
  12. package/es/components/search-filter/index.d.ts +1 -3
  13. package/es/components/search-filter/index.js +48 -36
  14. package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
  15. package/es/components/shops-filter/index.js +23 -30
  16. package/es/components/staffs-selector/index.d.ts +27 -0
  17. package/es/components/staffs-selector/index.js +150 -103
  18. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  19. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  20. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  21. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  22. package/es/components/timeline/index.js +6 -6
  23. package/es/components/upload/index.js +86 -76
  24. package/index.esm.js +37839 -1300
  25. package/index.js +37839 -1299
  26. package/lib/components/feedback/index.js +24 -20
  27. package/lib/components/float-table/index.d.ts +2 -2
  28. package/lib/components/float-table/index.js +36 -27
  29. package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
  30. package/lib/components/index.d.ts +1 -0
  31. package/lib/components/index.js +7 -0
  32. package/lib/components/input-tags-display/index.d.ts +75 -0
  33. package/lib/components/input-tags-display/index.js +1296 -0
  34. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  35. package/lib/components/multi-cascader-compose/index.js +28 -25
  36. package/lib/components/over-tooltips/index.js +27 -20
  37. package/lib/components/search-filter/index.d.ts +1 -3
  38. package/lib/components/search-filter/index.js +48 -36
  39. package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
  40. package/lib/components/shops-filter/index.js +23 -30
  41. package/lib/components/staffs-selector/index.d.ts +27 -0
  42. package/lib/components/staffs-selector/index.js +150 -103
  43. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  44. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  45. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  46. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  47. package/lib/components/timeline/index.js +6 -6
  48. package/lib/components/upload/index.js +86 -76
  49. package/package.json +29 -29
  50. package/theme-chalk/button.css +1 -1
  51. package/theme-chalk/feedback.css +1 -1
  52. package/theme-chalk/float-table.css +1 -1
  53. package/theme-chalk/floating-vue.css +1 -1
  54. package/theme-chalk/flow-designer.css +1 -1
  55. package/theme-chalk/index.css +1 -1
  56. package/theme-chalk/input-tags-display.css +1 -0
  57. package/theme-chalk/modal.css +1 -1
  58. package/theme-chalk/multi-cascader-compose.css +1 -1
  59. package/theme-chalk/over-tooltips.css +1 -1
  60. package/theme-chalk/search-filter.css +1 -1
  61. package/theme-chalk/staffs-selector.css +1 -1
  62. package/theme-chalk/timeline.css +1 -1
  63. package/theme-chalk/upload.css +1 -1
  64. package/types/components/float-table/index.d.ts +2 -2
  65. package/types/components/float-table/src/float-table.vue.d.ts +2 -2
  66. package/types/components/index.d.ts +1 -0
  67. package/types/components/input-tags-display/index.d.ts +75 -0
  68. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  69. package/types/components/search-filter/index.d.ts +1 -3
  70. package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
  71. package/types/components/staffs-selector/index.d.ts +27 -0
  72. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
  73. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  74. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  75. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
@@ -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
@@ -1184,16 +1171,19 @@ const _sfc_main$1 = {
1184
1171
  isShow: false,
1185
1172
  openShow: false
1186
1173
  });
1187
- const observer = new IntersectionObserver((entries) => {
1188
- entries.forEach((item) => {
1189
- if (item.intersectionRatio > 0.3) {
1190
- observerDom();
1191
- observer.disconnect();
1192
- }
1193
- });
1194
- }, {
1195
- threshold: 0.3
1196
- });
1174
+ const observer = new IntersectionObserver(
1175
+ (entries) => {
1176
+ entries.forEach((item) => {
1177
+ if (item.intersectionRatio > 0.3) {
1178
+ observerDom();
1179
+ observer.disconnect();
1180
+ }
1181
+ });
1182
+ },
1183
+ {
1184
+ threshold: 0.3
1185
+ }
1186
+ );
1197
1187
  function observerDom() {
1198
1188
  if (props.line === 1) {
1199
1189
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -1209,16 +1199,20 @@ const _sfc_main$1 = {
1209
1199
  observer.disconnect();
1210
1200
  });
1211
1201
  let mySelf = ref();
1212
- watch(() => props.showAlways, function(showAlways) {
1213
- if (showAlways)
1214
- state.openShow = showAlways;
1215
- mySelf.value && observer.unobserve(mySelf.value);
1216
- nextTick(function() {
1217
- mySelf.value && observer.observe(mySelf.value);
1218
- });
1219
- }, {
1220
- immediate: true
1221
- });
1202
+ watch(
1203
+ () => props.showAlways,
1204
+ function(showAlways) {
1205
+ if (showAlways)
1206
+ state.openShow = showAlways;
1207
+ mySelf.value && observer.unobserve(mySelf.value);
1208
+ nextTick(function() {
1209
+ mySelf.value && observer.observe(mySelf.value);
1210
+ });
1211
+ },
1212
+ {
1213
+ immediate: true
1214
+ }
1215
+ );
1222
1216
  const handleVisibleChange = (val) => {
1223
1217
  state.isShow = !state.openShow ? false : val;
1224
1218
  };
@@ -1394,10 +1388,14 @@ const _sfc_main = {
1394
1388
  disabled: false,
1395
1389
  async customRequest({ file, fileField, data }) {
1396
1390
  if (file.size > state.extraConfigs.maxSize * 1024 * 1024) {
1397
- return methods.uploadError(new Error(`\u4E0D\u80FD\u4E0A\u4F20\u5927\u4E8E${state.extraConfigs.maxSize}M\u7684\u6587\u4EF6`));
1391
+ return methods.uploadError(
1392
+ new Error(`\u4E0D\u80FD\u4E0A\u4F20\u5927\u4E8E${state.extraConfigs.maxSize}M\u7684\u6587\u4EF6`)
1393
+ );
1398
1394
  }
1399
1395
  if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
1400
- return methods.uploadError(new Error(`\u4E0D\u80FD\u4E0A\u4F20\u591A\u4E8E${state.extraConfigs.maxCount}\u4E2A\u6587\u4EF6`));
1396
+ return methods.uploadError(
1397
+ new Error(`\u4E0D\u80FD\u4E0A\u4F20\u591A\u4E8E${state.extraConfigs.maxCount}\u4E2A\u6587\u4EF6`)
1398
+ );
1401
1399
  }
1402
1400
  let name = file.name;
1403
1401
  let fileFormat = name.split(".").pop();
@@ -1462,7 +1460,9 @@ const _sfc_main = {
1462
1460
  emit("error", error);
1463
1461
  },
1464
1462
  async deleteFile(uid) {
1465
- const index = state.uploadedList.findIndex((ele) => state.extraConfigs.fileDetail ? ele === state.fileList[uid].url : ele.url === state.fileList[uid].url);
1463
+ const index = state.uploadedList.findIndex(
1464
+ (ele) => state.extraConfigs.fileDetail ? ele === state.fileList[uid].url : ele.url === state.fileList[uid].url
1465
+ );
1466
1466
  emit("deleteFile", state.fileList[uid]);
1467
1467
  state.uploadedList.splice(index, 1);
1468
1468
  delete state.fileList[uid];
@@ -1476,7 +1476,9 @@ const _sfc_main = {
1476
1476
  state.onepViewImageHover[uid] = false;
1477
1477
  },
1478
1478
  viewOnePicture(item) {
1479
- if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
1479
+ if (["img", "image", "png", "jpg", "jpeg"].includes(
1480
+ item.type.toLowerCase()
1481
+ )) {
1480
1482
  state.previewVisible = true;
1481
1483
  state.onepViewImage = item;
1482
1484
  return;
@@ -1528,40 +1530,48 @@ const _sfc_main = {
1528
1530
  }
1529
1531
  }
1530
1532
  };
1531
- watch(() => props.defaultList, function(list) {
1532
- if (list.length) {
1533
- list.forEach(function(item) {
1534
- let uid = utils.getuid();
1535
- if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
1536
- item.url = props.cloudReadUrl + item.url;
1537
- state.fileList[uid] = {
1538
- uid,
1539
- name: item.name,
1540
- url: item.url,
1541
- type: item.type || "png",
1542
- progress: 100,
1543
- isDoneDeloy: true
1544
- };
1545
- state.uploadedList.push(item);
1546
- });
1533
+ watch(
1534
+ () => props.defaultList,
1535
+ function(list) {
1536
+ if (list.length) {
1537
+ list.forEach(function(item) {
1538
+ let uid = utils.getuid();
1539
+ if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
1540
+ item.url = props.cloudReadUrl + item.url;
1541
+ state.fileList[uid] = {
1542
+ uid,
1543
+ name: item.name,
1544
+ url: item.url,
1545
+ type: item.type || "png",
1546
+ progress: 100,
1547
+ isDoneDeloy: true
1548
+ };
1549
+ state.uploadedList.push(item);
1550
+ });
1551
+ }
1552
+ },
1553
+ {
1554
+ immediate: true
1547
1555
  }
1548
- }, {
1549
- immediate: true
1550
- });
1551
- watch([() => props.uploadProps, () => props.extraProps], function([config, extra]) {
1552
- state.uploadConfigs = {
1553
- ...state.uploadConfigs,
1554
- ...config,
1555
- showUploadList: false
1556
- };
1557
- state.extraConfigs = {
1558
- ...state.extraConfigs,
1559
- ...extra
1560
- };
1561
- }, {
1562
- immediate: true,
1563
- deep: true
1564
- });
1556
+ );
1557
+ watch(
1558
+ [() => props.uploadProps, () => props.extraProps],
1559
+ function([config, extra]) {
1560
+ state.uploadConfigs = {
1561
+ ...state.uploadConfigs,
1562
+ ...config,
1563
+ showUploadList: false
1564
+ };
1565
+ state.extraConfigs = {
1566
+ ...state.extraConfigs,
1567
+ ...extra
1568
+ };
1569
+ },
1570
+ {
1571
+ immediate: true,
1572
+ deep: true
1573
+ }
1574
+ );
1565
1575
  const uploadDisabled = computed(() => {
1566
1576
  if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
1567
1577
  return true;
@@ -1724,7 +1734,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1724
1734
  key: 1,
1725
1735
  file: item
1726
1736
  })
1727
- ], 2112)) : createCommentVNode("v-if", true),
1737
+ ], 64)) : createCommentVNode("v-if", true),
1728
1738
  createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
1729
1739
  item.status === "error" ? (openBlock(), createElementBlock("div", {
1730
1740
  key: 2,
@@ -1770,7 +1780,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1770
1780
  }, 8, ["class", "disabled"]),
1771
1781
  _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1772
1782
  ])) : createCommentVNode("v-if", true)
1773
- ], 2112))
1783
+ ], 64))
1774
1784
  ]),
1775
1785
  _: 3
1776
1786
  }, 16, ["class"])) : createCommentVNode("v-if", true),