bm-admin-ui 1.0.3-alpha → 1.0.6-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 +1037 -0
  2. package/es/components/feedback/index.js +1559 -0
  3. package/es/components/feedback/src/bmAlert.vue.d.ts +193 -0
  4. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  5. package/es/components/index.d.ts +1 -0
  6. package/es/components/index.js +1 -0
  7. package/es/components/multi-cascader-compose/index.js +4 -4
  8. package/es/components/search-filter/index.d.ts +48 -5
  9. package/es/components/search-filter/index.js +73 -49
  10. package/es/components/search-filter/src/search-filter.vue.d.ts +48 -5
  11. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  12. package/es/components/search-filter/src/serach-filter.d.ts +13 -1
  13. package/es/components/shops-filter/index.js +55 -49
  14. package/es/components/staffs-selector/index.js +4 -4
  15. package/es/components/upload/index.js +4 -4
  16. package/index.esm.js +32475 -27977
  17. package/index.js +32478 -27975
  18. package/lib/components/feedback/index.d.ts +1037 -0
  19. package/lib/components/feedback/index.js +1573 -0
  20. package/lib/components/feedback/src/bmAlert.vue.d.ts +193 -0
  21. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  22. package/lib/components/index.d.ts +1 -0
  23. package/lib/components/index.js +7 -0
  24. package/lib/components/multi-cascader-compose/index.js +4 -4
  25. package/lib/components/search-filter/index.d.ts +48 -5
  26. package/lib/components/search-filter/index.js +72 -48
  27. package/lib/components/search-filter/src/search-filter.vue.d.ts +48 -5
  28. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  29. package/lib/components/search-filter/src/serach-filter.d.ts +13 -1
  30. package/lib/components/shops-filter/index.js +54 -48
  31. package/lib/components/staffs-selector/index.js +4 -4
  32. package/lib/components/upload/index.js +4 -4
  33. package/package.json +2 -2
  34. package/theme-chalk/alert.css +1 -0
  35. package/theme-chalk/button.css +1 -1
  36. package/theme-chalk/feedback.css +1 -0
  37. package/theme-chalk/float-table.css +1 -1
  38. package/theme-chalk/floating-vue.css +1 -1
  39. package/theme-chalk/flow-designer.css +1 -1
  40. package/theme-chalk/index.css +1 -1
  41. package/theme-chalk/modal.css +1 -0
  42. package/theme-chalk/multi-cascader-compose.css +1 -1
  43. package/theme-chalk/over-tooltips.css +1 -1
  44. package/theme-chalk/search-filter.css +1 -1
  45. package/theme-chalk/timeline.css +1 -1
  46. package/theme-chalk/upload.css +1 -1
  47. package/types/components/feedback/index.d.ts +1037 -0
  48. package/types/components/feedback/src/bmAlert.vue.d.ts +193 -0
  49. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  50. package/types/components/index.d.ts +1 -0
  51. package/types/components/search-filter/index.d.ts +48 -5
  52. package/types/components/search-filter/src/search-filter.vue.d.ts +48 -5
  53. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  54. package/types/components/search-filter/src/serach-filter.d.ts +13 -1
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, nextTick, createVNode, defineComponent, reactive, watch, onMounted, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withModifiers, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, Fragment, createBlock, withCtx, renderList, createCommentVNode, withDirectives, vShow, createTextVNode } from 'vue';
2
+ import { h, nextTick, createVNode, defineComponent, reactive, watch, onMounted, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withModifiers, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, withDirectives, vShow, withCtx, Fragment, renderList, createCommentVNode, createTextVNode, createBlock } from 'vue';
3
3
  import { InputSearch } from 'ant-design-vue/lib/input';
4
4
  import Checkbox from 'ant-design-vue/lib/checkbox';
5
5
  import Button from 'ant-design-vue/lib/button';
@@ -70,7 +70,7 @@ function boundAlpha(a) {
70
70
  */
71
71
  function convertToPercentage(n) {
72
72
  if (n <= 1) {
73
- return "".concat(Number(n) * 100, "%");
73
+ return Number(n) * 100 + "%";
74
74
  }
75
75
  return n;
76
76
  }
@@ -452,12 +452,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
452
452
  // <http://www.w3.org/TR/css3-values/#number-value>
453
453
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
454
454
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
455
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
455
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
456
456
  // Actual matching.
457
457
  // Parentheses and commas are optional, but not required.
458
458
  // Whitespace can take the place of commas or opening paren
459
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
459
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
460
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
461
461
  var matchers = {
462
462
  CSS_UNIT: new RegExp(CSS_UNIT),
463
463
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -1426,60 +1426,66 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1426
1426
  style: normalizeStyle({ width: _ctx.displayParams?.width || "436px" }),
1427
1427
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.triggleActive && _ctx.triggleActive(...args))
1428
1428
  }, [
1429
- _ctx.selected && !_ctx.selected.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1429
+ withDirectives(createElementVNode("div", null, [
1430
1430
  _hoisted_1,
1431
1431
  createElementVNode("span", _hoisted_2, [
1432
1432
  createVNode(_component_down_outlined)
1433
1433
  ])
1434
- ], 64)) : _ctx.selected && _ctx.selected.length ? (openBlock(), createBlock(_component_Popover, {
1435
- key: 1,
1436
- title: "",
1437
- "overlay-class-name": "__shops-filter-popover"
1438
- }, {
1439
- content: withCtx(() => [
1440
- createElementVNode("div", {
1441
- class: "pop-seleted",
1442
- style: normalizeStyle({ "min-width": _ctx.displayParams?.width || "436px" })
1443
- }, [
1444
- createElementVNode("div", _hoisted_3, [
1445
- _hoisted_4,
1446
- createElementVNode("span", null, toDisplayString(_ctx.selected.length), 1),
1447
- _hoisted_5
1448
- ]),
1434
+ ], 512), [
1435
+ [vShow, _ctx.selected && !_ctx.selected.length]
1436
+ ]),
1437
+ withDirectives(createElementVNode("div", null, [
1438
+ createVNode(_component_Popover, {
1439
+ title: "",
1440
+ "overlay-class-name": "__shops-filter-popover"
1441
+ }, {
1442
+ content: withCtx(() => [
1449
1443
  createElementVNode("div", {
1450
- class: "pop-seleted-shops",
1451
- onWheel: _cache[0] || (_cache[0] = withModifiers(() => {
1452
- }, ["stop"]))
1444
+ class: "pop-seleted",
1445
+ style: normalizeStyle({ "min-width": _ctx.displayParams?.width || "436px" })
1453
1446
  }, [
1447
+ createElementVNode("div", _hoisted_3, [
1448
+ _hoisted_4,
1449
+ createElementVNode("span", null, toDisplayString(_ctx.selected.length), 1),
1450
+ _hoisted_5
1451
+ ]),
1452
+ createElementVNode("div", {
1453
+ class: "pop-seleted-shops",
1454
+ onWheel: _cache[0] || (_cache[0] = withModifiers(() => {
1455
+ }, ["stop"]))
1456
+ }, [
1457
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selected, (item) => {
1458
+ return openBlock(), createElementBlock("div", {
1459
+ key: item,
1460
+ class: "pop-seleted-item"
1461
+ }, toDisplayString(_ctx.shopListByCode[item]), 1);
1462
+ }), 128))
1463
+ ], 32)
1464
+ ], 4)
1465
+ ]),
1466
+ default: withCtx(() => [
1467
+ createElementVNode("div", _hoisted_6, [
1454
1468
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selected, (item) => {
1455
1469
  return openBlock(), createElementBlock("div", {
1456
1470
  key: item,
1457
- class: "pop-seleted-item"
1471
+ class: "selected-tag"
1458
1472
  }, toDisplayString(_ctx.shopListByCode[item]), 1);
1459
- }), 128))
1460
- ], 32)
1461
- ], 4)
1462
- ]),
1463
- default: withCtx(() => [
1464
- createElementVNode("div", _hoisted_6, [
1465
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selected, (item) => {
1466
- return openBlock(), createElementBlock("div", {
1467
- key: item,
1468
- class: "selected-tag"
1469
- }, toDisplayString(_ctx.shopListByCode[item]), 1);
1470
- }), 128)),
1471
- createElementVNode("div", {
1472
- class: "delete-icon",
1473
- onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.clearAllSelected && _ctx.clearAllSelected(...args), ["stop"])),
1474
- onMouseover: _cache[2] || (_cache[2] = withModifiers(() => {
1475
- }, ["stop"]))
1476
- }, [
1477
- createVNode(_component_close_circle_filled, { style: { "color": "#9393a3" } })
1478
- ], 32)
1479
- ])
1480
- ]),
1481
- _: 1
1482
- })) : createCommentVNode("v-if", true)
1473
+ }), 128)),
1474
+ createElementVNode("div", {
1475
+ class: "delete-icon",
1476
+ onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.clearAllSelected && _ctx.clearAllSelected(...args), ["stop"])),
1477
+ onMouseover: _cache[2] || (_cache[2] = withModifiers(() => {
1478
+ }, ["stop"]))
1479
+ }, [
1480
+ createVNode(_component_close_circle_filled, { style: { "color": "#9393a3" } })
1481
+ ], 32)
1482
+ ])
1483
+ ]),
1484
+ _: 1
1485
+ })
1486
+ ], 512), [
1487
+ [vShow, _ctx.selected && _ctx.selected.length]
1488
+ ])
1483
1489
  ], 6),
1484
1490
  withDirectives(createElementVNode("div", {
1485
1491
  class: "__shops-filter-search-input",
@@ -71,7 +71,7 @@ function boundAlpha(a) {
71
71
  */
72
72
  function convertToPercentage(n) {
73
73
  if (n <= 1) {
74
- return "".concat(Number(n) * 100, "%");
74
+ return Number(n) * 100 + "%";
75
75
  }
76
76
  return n;
77
77
  }
@@ -453,12 +453,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
453
453
  // <http://www.w3.org/TR/css3-values/#number-value>
454
454
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
455
455
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
456
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
456
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
457
457
  // Actual matching.
458
458
  // Parentheses and commas are optional, but not required.
459
459
  // Whitespace can take the place of commas or opening paren
460
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
461
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
461
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
462
462
  var matchers = {
463
463
  CSS_UNIT: new RegExp(CSS_UNIT),
464
464
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -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),