@syncfusion/ej2-vue-grids 20.4.54 → 21.1.35
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/CHANGELOG.md +35 -148
- package/dist/ej2-vue-grids.umd.min.js +2 -2
- package/dist/ej2-vue-grids.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-grids.es2015.js +704 -881
- package/dist/es6/ej2-vue-grids.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-grids.es5.js +751 -986
- package/dist/es6/ej2-vue-grids.es5.js.map +1 -1
- package/dist/global/ej2-vue-grids.min.js +2 -2
- package/package.json +9 -9
- package/src/grid/aggregate-columns.directive.d.ts +2 -12
- package/src/grid/aggregate-columns.directive.js +22 -71
- package/src/grid/aggregates.directive.d.ts +2 -12
- package/src/grid/aggregates.directive.js +22 -71
- package/src/grid/columns.directive.d.ts +2 -12
- package/src/grid/columns.directive.js +22 -71
- package/src/grid/grid.component.d.ts +3 -155
- package/src/grid/grid.component.js +513 -541
- package/src/grid/stacked-column.directive.d.ts +2 -12
- package/src/grid/stacked-column.directive.js +22 -71
- package/src/pager/pager.component.d.ts +3 -29
- package/src/pager/pager.component.js +131 -162
- package/styles/bootstrap-dark.css +33 -9
- package/styles/bootstrap.css +33 -9
- package/styles/bootstrap4.css +33 -9
- package/styles/bootstrap5-dark.css +34 -10
- package/styles/bootstrap5.css +34 -10
- package/styles/excel-filter/bootstrap-dark.css +9 -0
- package/styles/excel-filter/bootstrap.css +9 -0
- package/styles/excel-filter/bootstrap4.css +9 -0
- package/styles/excel-filter/bootstrap5-dark.css +9 -0
- package/styles/excel-filter/bootstrap5.css +9 -0
- package/styles/excel-filter/fabric-dark.css +9 -0
- package/styles/excel-filter/fabric.css +9 -0
- package/styles/excel-filter/fluent-dark.css +11 -2
- package/styles/excel-filter/fluent.css +11 -2
- package/styles/excel-filter/highcontrast-light.css +9 -0
- package/styles/excel-filter/highcontrast.css +9 -0
- package/styles/excel-filter/material-dark.css +9 -0
- package/styles/excel-filter/material.css +9 -0
- package/styles/excel-filter/tailwind-dark.css +9 -0
- package/styles/excel-filter/tailwind.css +9 -0
- package/styles/fabric-dark.css +33 -9
- package/styles/fabric.css +33 -9
- package/styles/fluent-dark.css +65 -18
- package/styles/fluent.css +65 -18
- package/styles/grid/bootstrap-dark.css +24 -9
- package/styles/grid/bootstrap.css +24 -9
- package/styles/grid/bootstrap4.css +24 -9
- package/styles/grid/bootstrap5-dark.css +25 -10
- package/styles/grid/bootstrap5.css +25 -10
- package/styles/grid/fabric-dark.css +24 -9
- package/styles/grid/fabric.css +24 -9
- package/styles/grid/fluent-dark.css +54 -16
- package/styles/grid/fluent.css +54 -16
- package/styles/grid/highcontrast-light.css +26 -11
- package/styles/grid/highcontrast.css +24 -9
- package/styles/grid/material-dark.css +24 -9
- package/styles/grid/material.css +24 -9
- package/styles/grid/tailwind-dark.css +24 -9
- package/styles/grid/tailwind.css +24 -9
- package/styles/highcontrast-light.css +35 -11
- package/styles/highcontrast.css +33 -9
- package/styles/material-dark.css +33 -9
- package/styles/material.css +33 -9
- package/styles/tailwind-dark.css +33 -9
- package/styles/tailwind.css +33 -9
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
declare let
|
|
2
|
-
export declare class StackedColumnsDirective extends vueImport {
|
|
3
|
-
constructor();
|
|
4
|
-
render(createElement: any): void;
|
|
5
|
-
updated(): void;
|
|
6
|
-
getTag(): string;
|
|
7
|
-
}
|
|
1
|
+
export declare let StackedColumnsDirective: any;
|
|
8
2
|
export declare const StackedColumnsPlugin: {
|
|
9
3
|
name: string;
|
|
10
4
|
install(Vue: any): void;
|
|
11
5
|
};
|
|
12
|
-
export declare
|
|
13
|
-
render(): void;
|
|
14
|
-
getTag(): string;
|
|
15
|
-
}
|
|
6
|
+
export declare let StackedColumnDirective: any;
|
|
16
7
|
export declare const StackedColumnPlugin: {
|
|
17
8
|
name: string;
|
|
18
9
|
install(Vue: any): void;
|
|
19
10
|
};
|
|
20
|
-
export {};
|
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
|
-
import * as Vue3 from 'vue-class-component';
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
27
|
-
vueImport = Vue3.Vue;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
vueImport = Vue;
|
|
31
|
-
}
|
|
32
|
-
var StackedColumnsDirective = /** @class */ (function (_super) {
|
|
33
|
-
__extends(StackedColumnsDirective, _super);
|
|
34
|
-
function StackedColumnsDirective() {
|
|
35
|
-
return _super.call(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
StackedColumnsDirective.prototype.render = function (createElement) {
|
|
3
|
+
export var StackedColumnsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
38
6
|
if (!isExecute) {
|
|
39
7
|
var h = !isExecute ? gh : createElement;
|
|
40
8
|
var slots = null;
|
|
@@ -44,51 +12,34 @@ var StackedColumnsDirective = /** @class */ (function (_super) {
|
|
|
44
12
|
return h('div', { class: 'e-directive' }, slots);
|
|
45
13
|
}
|
|
46
14
|
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
49
17
|
if (!isExecute && this.custom) {
|
|
50
18
|
this.custom();
|
|
51
19
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
inject: {
|
|
60
|
-
custom: {
|
|
61
|
-
default: null
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
], StackedColumnsDirective);
|
|
66
|
-
return StackedColumnsDirective;
|
|
67
|
-
}(vueImport));
|
|
68
|
-
export { StackedColumnsDirective };
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-stacked-columns';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
69
27
|
export var StackedColumnsPlugin = {
|
|
70
28
|
name: 'e-stacked-columns',
|
|
71
29
|
install: function (Vue) {
|
|
72
30
|
Vue.component(StackedColumnsPlugin.name, StackedColumnsDirective);
|
|
73
31
|
}
|
|
74
32
|
};
|
|
75
|
-
var StackedColumnDirective =
|
|
76
|
-
|
|
77
|
-
function StackedColumnDirective() {
|
|
78
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
79
|
-
}
|
|
80
|
-
StackedColumnDirective.prototype.render = function () {
|
|
33
|
+
export var StackedColumnDirective = vueDefineComponent({
|
|
34
|
+
render: function () {
|
|
81
35
|
return;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return StackedColumnDirective;
|
|
90
|
-
}(vueImport));
|
|
91
|
-
export { StackedColumnDirective };
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
getTag: function () {
|
|
39
|
+
return 'e-stacked-column';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
92
43
|
export var StackedColumnPlugin = {
|
|
93
44
|
name: 'e-stacked-column',
|
|
94
45
|
install: function (Vue) {
|
|
@@ -1,41 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* `ejs-pager` represents the VueJS Pager Component.
|
|
10
7
|
* ```vue
|
|
11
8
|
* <ejs-pager></ejs-pager>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
propKeys: string[];
|
|
17
|
-
models: string[];
|
|
18
|
-
hasChildDirective: boolean;
|
|
19
|
-
protected hasInjectedModules: boolean;
|
|
20
|
-
tagMapper: {
|
|
21
|
-
[key: string]: Object;
|
|
22
|
-
};
|
|
23
|
-
tagNameMapper: Object;
|
|
24
|
-
isVue3: boolean;
|
|
25
|
-
templateCollection: any;
|
|
26
|
-
constructor();
|
|
27
|
-
clearTemplate(templateNames?: string[]): any;
|
|
28
|
-
setProperties(prop: any, muteOnChange: boolean): void;
|
|
29
|
-
trigger(eventName: string, eventProp: {
|
|
30
|
-
[key: string]: Object;
|
|
31
|
-
}, successHandler?: Function): void;
|
|
32
|
-
render(createElement: any): any;
|
|
33
|
-
custom(): void;
|
|
34
|
-
destroyTemplate(propertyNames?: string[], index?: any): void;
|
|
35
|
-
getLocalizedLabel(key: string): string;
|
|
36
|
-
goToPage(pageNo: number): void;
|
|
37
|
-
refresh(): void;
|
|
38
|
-
}
|
|
11
|
+
export declare let PagerComponent: any;
|
|
12
|
+
export declare type PagerComponent = InstanceType<typeof PagerComponent>;
|
|
39
13
|
export declare const PagerPlugin: {
|
|
40
14
|
name: string;
|
|
41
15
|
install(Vue: any): void;
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
3
|
+
import { isUndefined } from '@syncfusion/ej2-base';
|
|
23
4
|
import { Pager } from '@syncfusion/ej2-grids';
|
|
24
|
-
import { Options } from 'vue-class-component';
|
|
25
5
|
export var properties = ['isLazyUpdate', 'plugins', 'cssClass', 'currentPage', 'customText', 'enableExternalMessage', 'enablePagerMessage', 'enablePersistence', 'enableQueryString', 'enableRtl', 'externalMessage', 'locale', 'pageCount', 'pageSize', 'pageSizes', 'template', 'totalRecordsCount', 'click', 'created', 'dropDownChanged'];
|
|
26
6
|
export var modelProps = ['currentPage', 'pageSize', 'pageCount', 'pageSizes'];
|
|
27
7
|
export var testProp = getProps({ props: properties });
|
|
28
|
-
export var props = testProp[0];
|
|
29
|
-
export var watch = testProp[1];
|
|
30
|
-
export var emitProbs = Object.keys(watch);
|
|
8
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
31
9
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
32
10
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
33
11
|
var props_1 = modelProps_1[_i];
|
|
@@ -39,158 +17,149 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
39
17
|
* <ejs-pager></ejs-pager>
|
|
40
18
|
* ```
|
|
41
19
|
*/
|
|
42
|
-
var PagerComponent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
20
|
+
export var PagerComponent = vueDefineComponent({
|
|
21
|
+
name: 'PagerComponent',
|
|
22
|
+
mixins: [ComponentBase],
|
|
23
|
+
props: props,
|
|
24
|
+
watch: watch,
|
|
25
|
+
emits: emitProbs,
|
|
26
|
+
model: { event: 'modelchanged' },
|
|
27
|
+
provide: function () { return { custom: this.custom }; },
|
|
28
|
+
data: function () {
|
|
29
|
+
return {
|
|
30
|
+
ej2Instances: new Pager({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: false,
|
|
34
|
+
hasInjectedModules: false,
|
|
35
|
+
tagMapper: {},
|
|
36
|
+
tagNameMapper: {},
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
created: function () {
|
|
42
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
43
|
+
this.ej2Instances.trigger = this.trigger;
|
|
44
|
+
this.bindProperties();
|
|
45
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
46
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
47
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
48
|
+
this.updated = this.updated;
|
|
49
|
+
},
|
|
50
|
+
render: function (createElement) {
|
|
51
|
+
var h = !isExecute ? gh : createElement;
|
|
52
|
+
var slots = null;
|
|
53
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
54
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
66
55
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
56
|
+
return h('div', slots);
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
clearTemplate: function (templateNames) {
|
|
60
|
+
if (!templateNames) {
|
|
61
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
62
|
+
}
|
|
63
|
+
if (templateNames.length && this.templateCollection) {
|
|
64
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
65
|
+
var tempName = templateNames_1[_i];
|
|
66
|
+
var elementCollection = this.templateCollection[tempName];
|
|
67
|
+
if (elementCollection && elementCollection.length) {
|
|
68
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
69
|
+
var ele = elementCollection_1[_a];
|
|
70
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
71
|
+
if (destroy) {
|
|
72
|
+
ele.__vue__.$destroy();
|
|
73
|
+
}
|
|
74
|
+
if (ele.innerHTML) {
|
|
75
|
+
ele.innerHTML = '';
|
|
76
|
+
}
|
|
80
77
|
}
|
|
78
|
+
delete this.templateCollection[tempName];
|
|
81
79
|
}
|
|
82
|
-
delete this.templateCollection[tempName];
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
},
|
|
83
|
+
setProperties: function (prop, muteOnChange) {
|
|
84
|
+
var _this = this;
|
|
85
|
+
if (this.isVue3) {
|
|
86
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
87
|
+
}
|
|
88
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
89
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
90
|
+
}
|
|
91
|
+
if (prop && this.models && this.models.length) {
|
|
92
|
+
Object.keys(prop).map(function (key) {
|
|
93
|
+
_this.models.map(function (model) {
|
|
94
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
95
|
+
if (_this.isVue3) {
|
|
96
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
_this.$emit('update:' + key, prop[key]);
|
|
100
|
+
_this.$emit('modelchanged', prop[key]);
|
|
101
|
+
}
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
108
|
+
if (!isExecute) {
|
|
109
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
110
|
+
}
|
|
111
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
112
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
113
|
+
var propKey = key[0];
|
|
114
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
115
|
+
if (!isExecute) {
|
|
116
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
117
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
118
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
122
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
123
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
105
124
|
}
|
|
106
125
|
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
PagerComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
112
|
-
if (!isExecute) {
|
|
113
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
114
|
-
}
|
|
115
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
116
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
117
|
-
var propKey = key[0];
|
|
118
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
119
|
-
if (!isExecute) {
|
|
120
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
121
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
122
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
123
126
|
}
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
}
|
|
128
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
129
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
130
|
+
var propKey = key[0];
|
|
131
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
132
|
+
if (!isExecute) {
|
|
133
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
134
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
126
137
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
127
138
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
128
139
|
}
|
|
129
140
|
}
|
|
130
141
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
134
|
-
var propKey = key[0];
|
|
135
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
136
|
-
if (!isExecute) {
|
|
137
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
138
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
142
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
143
|
-
}
|
|
142
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
143
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
144
144
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
this.
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
};
|
|
164
|
-
PagerComponent.prototype.getLocalizedLabel = function (key) {
|
|
165
|
-
return this.ej2Instances.getLocalizedLabel(key);
|
|
166
|
-
};
|
|
167
|
-
PagerComponent.prototype.goToPage = function (pageNo) {
|
|
168
|
-
return this.ej2Instances.goToPage(pageNo);
|
|
169
|
-
};
|
|
170
|
-
PagerComponent.prototype.refresh = function () {
|
|
171
|
-
return this.ej2Instances.refresh();
|
|
172
|
-
};
|
|
173
|
-
PagerComponent = __decorate([
|
|
174
|
-
EJComponentDecorator({
|
|
175
|
-
props: properties,
|
|
176
|
-
model: {
|
|
177
|
-
event: 'modelchanged'
|
|
178
|
-
}
|
|
179
|
-
}, isExecute)
|
|
180
|
-
,Options({
|
|
181
|
-
props: props,
|
|
182
|
-
watch: watch,
|
|
183
|
-
emits: emitProbs,
|
|
184
|
-
provide: function provide() {
|
|
185
|
-
return {
|
|
186
|
-
custom: this.custom
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
})
|
|
190
|
-
], PagerComponent);
|
|
191
|
-
return PagerComponent;
|
|
192
|
-
}(ComponentBase));
|
|
193
|
-
export { PagerComponent };
|
|
145
|
+
},
|
|
146
|
+
custom: function () {
|
|
147
|
+
this.updated();
|
|
148
|
+
},
|
|
149
|
+
destroyTemplate: function (propertyNames, index) {
|
|
150
|
+
return this.ej2Instances.destroyTemplate(propertyNames, index);
|
|
151
|
+
},
|
|
152
|
+
getLocalizedLabel: function (key) {
|
|
153
|
+
return this.ej2Instances.getLocalizedLabel(key);
|
|
154
|
+
},
|
|
155
|
+
goToPage: function (pageNo) {
|
|
156
|
+
return this.ej2Instances.goToPage(pageNo);
|
|
157
|
+
},
|
|
158
|
+
refresh: function () {
|
|
159
|
+
return this.ej2Instances.refresh();
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
});
|
|
194
163
|
export var PagerPlugin = {
|
|
195
164
|
name: 'ejs-pager',
|
|
196
165
|
install: function (Vue) {
|
|
@@ -493,6 +493,15 @@
|
|
|
493
493
|
padding-top: 8px;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
.e-excel-menu.e-contextmenu.e-menu-parent {
|
|
497
|
+
max-height: 298px;
|
|
498
|
+
overflow-y: auto;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.e-bigger .e-excel-menu.e-contextmenu.e-menu-parent {
|
|
502
|
+
max-height: 355px;
|
|
503
|
+
}
|
|
504
|
+
|
|
496
505
|
/*! Excel-Filter theme */
|
|
497
506
|
.e-excelfilter .e-footer-content {
|
|
498
507
|
border-color: rgba(149, 149, 149, 0.12);
|
|
@@ -821,8 +830,8 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
821
830
|
min-width: 38px;
|
|
822
831
|
padding: 0;
|
|
823
832
|
}
|
|
824
|
-
.e-bigger .e-grid .e-toolbar .e-toolbar-items .e-tbar-btn .e-icons,
|
|
825
|
-
.e-grid.e-bigger .e-toolbar .e-toolbar-items .e-tbar-btn .e-icons {
|
|
833
|
+
.e-bigger .e-grid .e-toolbar .e-toolbar-items .e-tbar-btn.e-btn .e-btn-icon.e-icons,
|
|
834
|
+
.e-grid.e-bigger .e-toolbar .e-toolbar-items .e-tbar-btn.e-btn .e-btn-icon.e-icons {
|
|
826
835
|
font-size: 18px;
|
|
827
836
|
}
|
|
828
837
|
.e-bigger .e-grid .e-flmenu-valuediv,
|
|
@@ -862,8 +871,8 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
862
871
|
.e-grid.e-bigger .e-icon-grightarrow {
|
|
863
872
|
font-size: 14px;
|
|
864
873
|
}
|
|
865
|
-
.e-bigger .e-grid .e-toolbar .e-btn-icon.e-icons.e-columnchooser-btn,
|
|
866
|
-
.e-grid.e-bigger .e-toolbar .e-btn-icon.e-icons.e-columnchooser-btn {
|
|
874
|
+
.e-bigger .e-grid .e-toolbar .e-tbar-btn.e-btn .e-btn-icon.e-icons.e-columnchooser-btn,
|
|
875
|
+
.e-grid.e-bigger .e-toolbar .e-tbar-btn.e-btn .e-btn-icon.e-icons.e-columnchooser-btn {
|
|
867
876
|
font-size: 12px;
|
|
868
877
|
}
|
|
869
878
|
.e-bigger .e-grid .e-gridheader tr th:last-child,
|
|
@@ -2256,6 +2265,15 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
2256
2265
|
border-top-width: 1px;
|
|
2257
2266
|
padding: 0.3em;
|
|
2258
2267
|
}
|
|
2268
|
+
.e-grid th.e-detailcell .e-rowcell,
|
|
2269
|
+
.e-grid th.e-detailcell .e-gridpager {
|
|
2270
|
+
text-align: left;
|
|
2271
|
+
}
|
|
2272
|
+
.e-grid.e-rtl th.e-detailcell .e-rowcell, .e-grid.e-rtl th.e-detailcell .e-gridpager,
|
|
2273
|
+
.e-grid th.e-detailcell .e-rtl .e-rowcell,
|
|
2274
|
+
.e-grid th.e-detailcell .e-rtl .e-gridpager {
|
|
2275
|
+
text-align: right;
|
|
2276
|
+
}
|
|
2259
2277
|
.e-grid.e-verticallines .e-rowcell, .e-grid.e-verticallines .e-filterbarcell {
|
|
2260
2278
|
border-width: 0 0 0 1px;
|
|
2261
2279
|
}
|
|
@@ -2733,9 +2751,8 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
2733
2751
|
-ms-user-select: none;
|
|
2734
2752
|
user-select: none;
|
|
2735
2753
|
}
|
|
2736
|
-
.e-grid .e-toolbar .e-btn-icon.e-icons.e-columnchooser-btn {
|
|
2754
|
+
.e-grid .e-toolbar .e-tbar-btn.e-btn .e-btn-icon.e-icons.e-columnchooser-btn {
|
|
2737
2755
|
font-size: 9px;
|
|
2738
|
-
line-height: 3;
|
|
2739
2756
|
}
|
|
2740
2757
|
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-right .e-cc-toolbar .e-tbar-btn .e-columnchooser-btn {
|
|
2741
2758
|
margin-top: 2px;
|
|
@@ -3352,7 +3369,7 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
3352
3369
|
.e-grid.e-wrap .e-columnheader .e-filtermenudiv, .e-grid.e-wrap .e-columnheader .e-sortfilterdiv .e-filtermenudiv {
|
|
3353
3370
|
line-height: 10px;
|
|
3354
3371
|
}
|
|
3355
|
-
.e-grid .e-columnheader.e-wrap .e-filtermenudiv, .e-grid .e-columnheader.e-wrap .e-sortfilterdiv.e-filtermenudiv {
|
|
3372
|
+
.e-grid .e-columnheader.e-wrap .e-filtermenudiv, .e-grid .e-columnheader.e-wrap .e-sortfilterdiv .e-filtermenudiv {
|
|
3356
3373
|
line-height: 10px;
|
|
3357
3374
|
}
|
|
3358
3375
|
.e-grid .e-columnheader.e-wrap .e-headercelldiv, .e-grid .e-columnheader.e-wrap .e-headercell.e-fltr-icon .e-headercelldiv, .e-grid .e-columnheader.e-wrap .e-stackedheadercelldiv, .e-grid .e-gridcontent.e-wrap .e-rowcell, .e-grid .e-frozenhdrcont.e-wrap .e-rowcell {
|
|
@@ -4120,6 +4137,13 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
4120
4137
|
float: left;
|
|
4121
4138
|
}
|
|
4122
4139
|
|
|
4140
|
+
/* stylelint-disable */
|
|
4141
|
+
.e-ddl.e-popup.e-popup-flmenu .e-dropdownbase,
|
|
4142
|
+
.e-ddl.e-popup.e-popup-flbar .e-dropdownbase {
|
|
4143
|
+
max-height: 298px !important;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
/* stylelint-enable */
|
|
4123
4147
|
/*! Grid theme */
|
|
4124
4148
|
.e-grid {
|
|
4125
4149
|
border-color: #484848;
|
|
@@ -4307,11 +4331,11 @@ li.e-separator.e-menu-item.e-excel-separator {
|
|
|
4307
4331
|
.e-grid.e-rtl .e-frozenheader.e-frozen-right-header > .e-table, .e-grid.e-rtl .e-frozencontent.e-frozen-right-content > .e-table {
|
|
4308
4332
|
border-right-color: #9c9c9c;
|
|
4309
4333
|
}
|
|
4310
|
-
.e-grid.e-gridhover tr
|
|
4334
|
+
.e-grid.e-gridhover .e-row tr:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowcollapse:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-rtl .e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowexpand:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
|
|
4311
4335
|
background-color: #393939;
|
|
4312
4336
|
color: #f0f0f0;
|
|
4313
4337
|
}
|
|
4314
|
-
.e-grid
|
|
4338
|
+
.e-grid .e-row:hover .e-rowdragdrop {
|
|
4315
4339
|
cursor: move;
|
|
4316
4340
|
}
|
|
4317
4341
|
.e-grid .e-sortnumber {
|