bm-admin-ui 1.0.12-alpha → 1.0.15-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.js +25 -21
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/index.js +36 -27
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +66 -0
- package/es/components/input-tags-display/index.js +1279 -0
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/es/components/multi-cascader-compose/index.js +28 -25
- package/es/components/over-tooltips/index.js +27 -20
- package/es/components/search-filter/index.d.ts +1 -3
- package/es/components/search-filter/index.js +48 -36
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/es/components/shops-filter/index.js +23 -30
- package/es/components/staffs-selector/index.d.ts +27 -0
- package/es/components/staffs-selector/index.js +150 -103
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/es/components/timeline/index.js +6 -6
- package/es/components/upload/index.js +86 -76
- package/index.esm.js +37844 -1310
- package/index.js +37844 -1309
- package/lib/components/feedback/index.js +24 -20
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/index.js +36 -27
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +66 -0
- package/lib/components/input-tags-display/index.js +1289 -0
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/lib/components/multi-cascader-compose/index.js +28 -25
- package/lib/components/over-tooltips/index.js +27 -20
- package/lib/components/search-filter/index.d.ts +1 -3
- package/lib/components/search-filter/index.js +48 -36
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/lib/components/shops-filter/index.js +23 -30
- package/lib/components/staffs-selector/index.d.ts +27 -0
- package/lib/components/staffs-selector/index.js +150 -103
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/lib/components/timeline/index.js +6 -6
- package/lib/components/upload/index.js +86 -76
- package/package.json +29 -29
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- 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/input-tags-display.css +1 -0
- package/theme-chalk/modal.css +1 -1
- 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/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/index.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +66 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/types/components/search-filter/index.d.ts +1 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/types/components/staffs-selector/index.d.ts +27 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -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 Number(n) * 100
|
|
107
|
+
return "".concat(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 = "(?:"
|
|
489
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+("
|
|
494
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
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*\\)?");
|
|
495
495
|
var matchers = {
|
|
496
496
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
497
497
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -816,19 +816,6 @@ 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;
|
|
832
819
|
|
|
833
820
|
// https://github.com/substack/insert-css
|
|
834
821
|
var containers = []; // will store container HTMLElement references
|
|
@@ -1502,6 +1489,23 @@ var feedbackType;
|
|
|
1502
1489
|
feedbackType["CONFIRM"] = "confirm";
|
|
1503
1490
|
feedbackType["WARN"] = "warn";
|
|
1504
1491
|
})(feedbackType || (feedbackType = {}));
|
|
1492
|
+
var feedbackColor;
|
|
1493
|
+
(function (feedbackColor) {
|
|
1494
|
+
feedbackColor["SUCCESS"] = "#29CC7A";
|
|
1495
|
+
feedbackColor["ERROR"] = "#E64C2E";
|
|
1496
|
+
feedbackColor["INFO"] = "#2F4EED";
|
|
1497
|
+
feedbackColor["WARNING"] = "#FF9019";
|
|
1498
|
+
feedbackColor["CONFIRM"] = "#2F4EED";
|
|
1499
|
+
feedbackColor["WARN"] = "#FF9019";
|
|
1500
|
+
})(feedbackColor || (feedbackColor = {}));
|
|
1501
|
+
const feedbackIcon = {
|
|
1502
|
+
success: () => vue.h(CheckCircleFilled$1, { style: `color: ${feedbackColor.SUCCESS}` }),
|
|
1503
|
+
error: () => vue.h(CloseCircleFilled$1, { style: `color: ${feedbackColor.ERROR}` }),
|
|
1504
|
+
warning: () => vue.h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` }),
|
|
1505
|
+
info: () => vue.h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
|
|
1506
|
+
confirm: () => vue.h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
|
|
1507
|
+
warn: () => vue.h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` })
|
|
1508
|
+
};
|
|
1505
1509
|
function __createBtn(btnText = '确定', onClick = (() => '点击'), style = '', type = 'primary', size = 'small') {
|
|
1506
1510
|
return vue.h(antDesignVue.Button, {
|
|
1507
1511
|
type,
|
|
@@ -1534,14 +1538,14 @@ const BmNotification = (config) => {
|
|
|
1534
1538
|
if (btn)
|
|
1535
1539
|
config['btn'] = btn;
|
|
1536
1540
|
if ([feedbackType.WARNING, feedbackType.WARN].indexOf(type) !== -1) {
|
|
1537
|
-
antDesignVue.notification.warning(Object.assign({ key, icon:
|
|
1541
|
+
antDesignVue.notification.warning(Object.assign({ key, icon: feedbackIcon['warning'] }, config));
|
|
1538
1542
|
return;
|
|
1539
1543
|
}
|
|
1540
1544
|
antDesignVue.notification[type](Object.assign({ key }, config));
|
|
1541
1545
|
};
|
|
1542
1546
|
const StaticBmModal = (config) => {
|
|
1543
1547
|
const type = config['type'] || feedbackType.INFO;
|
|
1544
|
-
return antDesignVue.Modal[type](Object.assign({ cancelButtonProps: { type: 'second' }, okType: 'primary', cancelText: '取消', okText: '确认', autoFocusButton: null }, config));
|
|
1548
|
+
return antDesignVue.Modal[type](Object.assign({ cancelButtonProps: { type: 'second' }, okType: 'primary', cancelText: '取消', okText: '确认', autoFocusButton: null, icon: feedbackIcon[type] }, config));
|
|
1545
1549
|
};
|
|
1546
1550
|
const BmMessage = (config) => {
|
|
1547
1551
|
const type = config.type;
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -238,7 +238,9 @@ const _sfc_main = {
|
|
|
238
238
|
if (state.floatHandleDomCol)
|
|
239
239
|
return;
|
|
240
240
|
let id = column.id;
|
|
241
|
-
state.floatHandleDomCol = floatTable.value.querySelector(
|
|
241
|
+
state.floatHandleDomCol = floatTable.value.querySelector(
|
|
242
|
+
`.vxe-table--header-wrapper .vxe-header--row .${id}`
|
|
243
|
+
);
|
|
242
244
|
},
|
|
243
245
|
leaveFloatTable() {
|
|
244
246
|
let timer = setTimeout(() => {
|
|
@@ -299,36 +301,43 @@ const _sfc_main = {
|
|
|
299
301
|
let closeSetRow;
|
|
300
302
|
let headerWrapper;
|
|
301
303
|
if (props.isNeedFloatHandle) {
|
|
302
|
-
inObserverDom = new IntersectionObserver(
|
|
303
|
-
entries
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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;
|
|
309
317
|
} else {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if (gridOptions.value.data && gridOptions.value.data.length > 0) {
|
|
316
|
-
state.goAnimationEnd = false;
|
|
317
|
-
state.isShowFloatHandle = true;
|
|
318
|
-
state.atVisible = false;
|
|
318
|
+
if (gridOptions.value.data && gridOptions.value.data.length > 0) {
|
|
319
|
+
state.goAnimationEnd = false;
|
|
320
|
+
state.isShowFloatHandle = true;
|
|
321
|
+
state.atVisible = false;
|
|
322
|
+
}
|
|
319
323
|
}
|
|
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);
|
|
320
335
|
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
});
|
|
325
|
-
vue.watch(() => state.floatHandleDomCol, function(col) {
|
|
326
|
-
if (col) {
|
|
327
|
-
inObserverDom.observe(col);
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
immediate: true
|
|
328
339
|
}
|
|
329
|
-
|
|
330
|
-
immediate: true
|
|
331
|
-
});
|
|
340
|
+
);
|
|
332
341
|
}
|
|
333
342
|
return {
|
|
334
343
|
floatTable,
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
package/lib/components/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var floatTable = require('./float-table');
|
|
|
14
14
|
var overTooltips = require('./over-tooltips');
|
|
15
15
|
var upload = require('./upload');
|
|
16
16
|
var timeline = require('./timeline');
|
|
17
|
+
var inputTagsDisplay = require('./input-tags-display');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -89,3 +90,9 @@ Object.keys(timeline).forEach(function (k) {
|
|
|
89
90
|
get: function () { return timeline[k]; }
|
|
90
91
|
});
|
|
91
92
|
});
|
|
93
|
+
Object.keys(inputTagsDisplay).forEach(function (k) {
|
|
94
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return inputTagsDisplay[k]; }
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
list: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
key: any;
|
|
6
|
+
title: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
showEmpty: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
showEmptyBtn: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
btnText: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
placement: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
containId: string;
|
|
27
|
+
clear: () => void;
|
|
28
|
+
toAddTags: () => void;
|
|
29
|
+
getPopupContainer: () => HTMLElement;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
list: {
|
|
32
|
+
type: ArrayConstructor;
|
|
33
|
+
default: () => {
|
|
34
|
+
key: any;
|
|
35
|
+
title: string;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
showEmpty: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
showEmptyBtn: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
btnText: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
placement: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onUpdate:list"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
placement: string;
|
|
60
|
+
list: unknown[];
|
|
61
|
+
showEmpty: boolean;
|
|
62
|
+
showEmptyBtn: boolean;
|
|
63
|
+
btnText: string;
|
|
64
|
+
}>>;
|
|
65
|
+
export { BmTagsDisplay };
|
|
66
|
+
export default BmTagsDisplay;
|