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.
- package/es/components/feedback/index.d.ts +1037 -0
- package/es/components/feedback/index.js +1559 -0
- package/es/components/feedback/src/bmAlert.vue.d.ts +193 -0
- package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/multi-cascader-compose/index.js +4 -4
- package/es/components/search-filter/index.d.ts +48 -5
- package/es/components/search-filter/index.js +73 -49
- package/es/components/search-filter/src/search-filter.vue.d.ts +48 -5
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
- package/es/components/search-filter/src/serach-filter.d.ts +13 -1
- package/es/components/shops-filter/index.js +55 -49
- package/es/components/staffs-selector/index.js +4 -4
- package/es/components/upload/index.js +4 -4
- package/index.esm.js +32475 -27977
- package/index.js +32478 -27975
- package/lib/components/feedback/index.d.ts +1037 -0
- package/lib/components/feedback/index.js +1573 -0
- package/lib/components/feedback/src/bmAlert.vue.d.ts +193 -0
- package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/multi-cascader-compose/index.js +4 -4
- package/lib/components/search-filter/index.d.ts +48 -5
- package/lib/components/search-filter/index.js +72 -48
- package/lib/components/search-filter/src/search-filter.vue.d.ts +48 -5
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
- package/lib/components/search-filter/src/serach-filter.d.ts +13 -1
- package/lib/components/shops-filter/index.js +54 -48
- package/lib/components/staffs-selector/index.js +4 -4
- package/lib/components/upload/index.js +4 -4
- package/package.json +2 -2
- package/theme-chalk/alert.css +1 -0
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -0
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/modal.css +1 -0
- package/theme-chalk/multi-cascader-compose.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/feedback/index.d.ts +1037 -0
- package/types/components/feedback/src/bmAlert.vue.d.ts +193 -0
- package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/search-filter/index.d.ts +48 -5
- package/types/components/search-filter/src/search-filter.vue.d.ts +48 -5
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
- 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,
|
|
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
|
|
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 = "(?:"
|
|
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|\\(]+("
|
|
460
|
-
var PERMISSIVE_MATCH4 = "[\\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
|
-
|
|
1429
|
+
withDirectives(createElementVNode("div", null, [
|
|
1430
1430
|
_hoisted_1,
|
|
1431
1431
|
createElementVNode("span", _hoisted_2, [
|
|
1432
1432
|
createVNode(_component_down_outlined)
|
|
1433
1433
|
])
|
|
1434
|
-
],
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
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
|
|
1451
|
-
|
|
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: "
|
|
1471
|
+
class: "selected-tag"
|
|
1458
1472
|
}, toDisplayString(_ctx.shopListByCode[item]), 1);
|
|
1459
|
-
}), 128))
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
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
|
|
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 = "(?:"
|
|
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|\\(]+("
|
|
461
|
-
var PERMISSIVE_MATCH4 = "[\\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
|
|
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 = "(?:"
|
|
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|\\(]+("
|
|
455
|
-
var PERMISSIVE_MATCH4 = "[\\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),
|