@opentinyvue/vue-grid-toolbar 3.21.0 → 3.22.1
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/lib/index.js +18 -16
- package/package.json +33 -31
- package/src/custom.vue.d.ts +1 -1
- package/src/index.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNumber } from '@opentinyvue/
|
|
1
|
+
import { extend, isNumber, formatDateByPattern } from '@opentinyvue/utils';
|
|
2
2
|
import { IconSave, IconEdit, IconDel, IconEyeopen, IconEyeclose, IconUnlock, IconLeftFrozen, IconRightFrozen, IconLock, IconMinus, IconDescending, IconAscending, IconClose, IconChevronRight, iconFullscreen, iconMinscreen } from '@opentinyvue/vue-icon';
|
|
3
3
|
import { defineComponent, $props, appProperties, directive, useDefer, isVue2, $prefix, hooks, h } from '@opentinyvue/vue-common';
|
|
4
4
|
import { find as find$1, toStringJSON, toJSONString, isPlainObject, isEmpty } from '@opentinyvue/vue-renderless/grid/static/';
|
|
@@ -20,8 +20,6 @@ import Col from '@opentinyvue/vue-col';
|
|
|
20
20
|
import DialogBox from '@opentinyvue/vue-dialog-box';
|
|
21
21
|
import Popover from '@opentinyvue/vue-popover';
|
|
22
22
|
import Radio from '@opentinyvue/vue-radio';
|
|
23
|
-
import { format } from '@opentinyvue/vue-renderless/common/date';
|
|
24
|
-
import { extend } from '@opentinyvue/vue-renderless/common/object';
|
|
25
23
|
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createElementVNode, createElementBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, Fragment, renderList, resolveDirective, withDirectives, vShow } from 'vue';
|
|
26
24
|
import Tree from '@opentinyvue/vue-tree';
|
|
27
25
|
import Split from '@opentinyvue/vue-split';
|
|
@@ -33,7 +31,7 @@ import Dropdown from '@opentinyvue/vue-dropdown';
|
|
|
33
31
|
import DropdownMenu from '@opentinyvue/vue-dropdown-menu';
|
|
34
32
|
import DropdownItem from '@opentinyvue/vue-dropdown-item';
|
|
35
33
|
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
36
|
-
import Clickoutside from '@opentinyvue/vue-
|
|
34
|
+
import { Clickoutside } from '@opentinyvue/vue-directive';
|
|
37
35
|
import '@opentinyvue/vue-theme/grid-toolbar/index.css';
|
|
38
36
|
|
|
39
37
|
function _createForOfIteratorHelperLoose(r, e) {
|
|
@@ -74,7 +72,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
74
72
|
if (null == r) return {};
|
|
75
73
|
var t2 = {};
|
|
76
74
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
77
|
-
if (e.
|
|
75
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
78
76
|
t2[n] = r[n];
|
|
79
77
|
}
|
|
80
78
|
return t2;
|
|
@@ -116,7 +114,7 @@ function setStorage(storageKey, valueObj, storageType, vm, eventName) {
|
|
|
116
114
|
function generateId() {
|
|
117
115
|
var now = /* @__PURE__ */ new Date();
|
|
118
116
|
var suf = /GMT[-+]\d+/.exec(now.toString())[0].replace(/\+/, "E").replace(/-/, "W").replace(/0/g, "");
|
|
119
|
-
var name =
|
|
117
|
+
var name = formatDateByPattern(now, "yyyy-MM-dd hh:mm:ss.SSS");
|
|
120
118
|
return {
|
|
121
119
|
id: now.getTime() + suf,
|
|
122
120
|
name
|
|
@@ -2068,6 +2066,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2068
2066
|
default: null
|
|
2069
2067
|
}
|
|
2070
2068
|
},
|
|
2069
|
+
emits: ["delete-template", "input", "saveSettings", "resetSettings", "cancelSettings", "showModal"],
|
|
2071
2070
|
props: _extends({}, $props, {
|
|
2072
2071
|
data: {
|
|
2073
2072
|
type: Array,
|
|
@@ -2362,8 +2361,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2362
2361
|
this.hideOrShowColumns(false);
|
|
2363
2362
|
}
|
|
2364
2363
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2364
|
+
// 勿同步,tree组件check事件参数不一致
|
|
2365
|
+
checkNode: function checkNode(node, data6) {
|
|
2366
|
+
var _data$checkedNodes;
|
|
2367
|
+
var isCheck = data6 == null ? void 0 : (_data$checkedNodes = data6.checkedNodes) == null ? void 0 : _data$checkedNodes.includes(node);
|
|
2368
|
+
node.visible = isCheck;
|
|
2367
2369
|
if (node.children && Array.isArray(node.children)) {
|
|
2368
2370
|
node.children.forEach(function(item) {
|
|
2369
2371
|
item.visible = node.visible;
|
|
@@ -3634,11 +3636,11 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
3634
3636
|
)) : createCommentVNode("v-if", true), column.children ? (openBlock(), createElementBlock("ul", _hoisted_36, [(openBlock(true), createElementBlock(
|
|
3635
3637
|
Fragment,
|
|
3636
3638
|
null,
|
|
3637
|
-
renderList(column.children, function(
|
|
3639
|
+
renderList(column.children, function(columnLi, indexLi) {
|
|
3638
3640
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
3639
|
-
key:
|
|
3640
|
-
class: normalizeClass([
|
|
3641
|
-
"data-row":
|
|
3641
|
+
key: columnLi.property + indexLi,
|
|
3642
|
+
class: normalizeClass([columnLi.fixed, _ctx.getRowClassName(columnLi)]),
|
|
3643
|
+
"data-row": columnLi.property
|
|
3642
3644
|
}, [createElementVNode("div", _hoisted_38, [createElementVNode(
|
|
3643
3645
|
"p",
|
|
3644
3646
|
{
|
|
@@ -3651,11 +3653,11 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
3651
3653
|
})
|
|
3652
3654
|
},
|
|
3653
3655
|
[createVNode(_component_title_render, {
|
|
3654
|
-
column:
|
|
3656
|
+
column: columnLi
|
|
3655
3657
|
}, null, 8, ["column"])],
|
|
3656
3658
|
32
|
|
3657
3659
|
/* NEED_HYDRATION */
|
|
3658
|
-
)])], 10, _hoisted_37)), [[vShow,
|
|
3660
|
+
)])], 10, _hoisted_37)), [[vShow, columnLi.visible]]);
|
|
3659
3661
|
}),
|
|
3660
3662
|
128
|
|
3661
3663
|
/* KEYED_FRAGMENT */
|
|
@@ -4253,7 +4255,7 @@ var GridToolbar = defineComponent({
|
|
|
4253
4255
|
var id = this.id, resizableOpts2 = this.resizableOpts;
|
|
4254
4256
|
if (resizableOpts2.storage) {
|
|
4255
4257
|
var width = this.getStorageMap(resizableOpts2.storageKey)[id] || {};
|
|
4256
|
-
{
|
|
4258
|
+
if (width) {
|
|
4257
4259
|
var widthSet = {};
|
|
4258
4260
|
for (var key in width) {
|
|
4259
4261
|
if (Object.prototype.hasOwnProperty.call(width, key)) {
|
|
@@ -4563,7 +4565,7 @@ var GridToolbar = defineComponent({
|
|
|
4563
4565
|
}
|
|
4564
4566
|
}
|
|
4565
4567
|
});
|
|
4566
|
-
var version = "3.
|
|
4568
|
+
var version = "3.undefined";
|
|
4567
4569
|
GridToolbar.install = function(Vue) {
|
|
4568
4570
|
Vue.component(GridToolbar.name, GridToolbar);
|
|
4569
4571
|
};
|
package/package.json
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-grid-toolbar",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.22.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentinyvue/
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
14
|
-
"@opentinyvue/vue-checkbox
|
|
15
|
-
"@opentinyvue/vue-
|
|
16
|
-
"@opentinyvue/vue-
|
|
17
|
-
"@opentinyvue/vue-
|
|
18
|
-
"@opentinyvue/vue-
|
|
19
|
-
"@opentinyvue/vue-
|
|
20
|
-
"@opentinyvue/vue-dropdown
|
|
21
|
-
"@opentinyvue/vue-
|
|
22
|
-
"@opentinyvue/vue-
|
|
23
|
-
"@opentinyvue/vue-
|
|
24
|
-
"@opentinyvue/vue-
|
|
25
|
-
"@opentinyvue/vue-
|
|
26
|
-
"@opentinyvue/vue-
|
|
27
|
-
"@opentinyvue/vue-
|
|
28
|
-
"@opentinyvue/vue-
|
|
29
|
-
"@opentinyvue/vue-
|
|
30
|
-
"@opentinyvue/vue-
|
|
31
|
-
"@opentinyvue/vue-
|
|
32
|
-
"@opentinyvue/vue-
|
|
33
|
-
"@opentinyvue/vue-
|
|
34
|
-
"@opentinyvue/vue-
|
|
35
|
-
"@opentinyvue/vue-
|
|
36
|
-
"@opentinyvue/vue-
|
|
37
|
-
"@opentinyvue/vue-
|
|
38
|
-
"@opentinyvue/vue-
|
|
39
|
-
"@opentinyvue/vue-
|
|
40
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-alert": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-button": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-checkbox": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-checkbox-group": "~3.22.0",
|
|
16
|
+
"@opentinyvue/vue-col": "~3.22.0",
|
|
17
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
18
|
+
"@opentinyvue/vue-dialog-box": "~3.22.0",
|
|
19
|
+
"@opentinyvue/vue-directive": "~3.22.0",
|
|
20
|
+
"@opentinyvue/vue-dropdown": "~3.22.0",
|
|
21
|
+
"@opentinyvue/vue-dropdown-item": "~3.22.0",
|
|
22
|
+
"@opentinyvue/vue-dropdown-menu": "~3.22.0",
|
|
23
|
+
"@opentinyvue/vue-grid": "~3.22.0",
|
|
24
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
25
|
+
"@opentinyvue/vue-input": "~3.22.0",
|
|
26
|
+
"@opentinyvue/vue-layout": "~3.22.0",
|
|
27
|
+
"@opentinyvue/vue-locale": "~3.22.0",
|
|
28
|
+
"@opentinyvue/vue-modal": "~3.22.0",
|
|
29
|
+
"@opentinyvue/vue-option": "~3.22.0",
|
|
30
|
+
"@opentinyvue/vue-popover": "~3.22.0",
|
|
31
|
+
"@opentinyvue/vue-radio": "~3.22.0",
|
|
32
|
+
"@opentinyvue/vue-radio-group": "~3.22.0",
|
|
33
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
34
|
+
"@opentinyvue/vue-row": "~3.22.0",
|
|
35
|
+
"@opentinyvue/vue-search": "~3.22.0",
|
|
36
|
+
"@opentinyvue/vue-select": "~3.22.0",
|
|
37
|
+
"@opentinyvue/vue-split": "~3.22.0",
|
|
38
|
+
"@opentinyvue/vue-tab-item": "~3.22.0",
|
|
39
|
+
"@opentinyvue/vue-tabs": "~3.22.0",
|
|
40
|
+
"@opentinyvue/vue-theme": "~3.22.0",
|
|
41
|
+
"@opentinyvue/vue-tooltip": "~3.22.0",
|
|
42
|
+
"@opentinyvue/vue-tree": "~3.22.0"
|
|
41
43
|
},
|
|
42
44
|
"types": "index.d.ts",
|
|
43
45
|
"scripts": {
|
package/src/custom.vue.d.ts
CHANGED
|
@@ -156,8 +156,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
156
156
|
onCancelSettings?: ((...args: any[]) => any) | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
value: boolean;
|
|
159
|
-
data: unknown[];
|
|
160
159
|
keys: unknown[];
|
|
160
|
+
data: unknown[];
|
|
161
161
|
tiny_mode_root: boolean;
|
|
162
162
|
refresh: boolean;
|
|
163
163
|
other: boolean;
|
package/src/index.d.ts
CHANGED
|
@@ -184,8 +184,8 @@ declare const _default: hooks.DefineComponent<{
|
|
|
184
184
|
tiny_theme: StringConstructor;
|
|
185
185
|
tiny_chart_theme: ObjectConstructor;
|
|
186
186
|
}>>, {
|
|
187
|
-
tiny_mode_root: boolean;
|
|
188
187
|
loading: boolean;
|
|
188
|
+
tiny_mode_root: boolean;
|
|
189
189
|
refresh: boolean | Record<string, any>;
|
|
190
190
|
setting: boolean | Record<string, any>;
|
|
191
191
|
resizable: boolean | Record<string, any>;
|