@syncfusion/ej2-vue-inplace-editor 20.4.54 → 21.1.36
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 +8 -0
- package/dist/ej2-vue-inplace-editor.umd.min.js +2 -2
- package/dist/ej2-vue-inplace-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-inplace-editor.es2015.js +113 -136
- package/dist/es6/ej2-vue-inplace-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-inplace-editor.es5.js +129 -157
- package/dist/es6/ej2-vue-inplace-editor.es5.js.map +1 -1
- package/package.json +11 -10
- package/src/inplace-editor/inplaceeditor.component.d.ts +3 -29
- package/src/inplace-editor/inplaceeditor.component.js +131 -162
- package/styles/bootstrap.css +2 -2
- package/styles/bootstrap4.css +17 -6
- package/styles/bootstrap5-dark.css +9 -5
- package/styles/bootstrap5.css +9 -5
- package/styles/inplace-editor/bootstrap.css +2 -2
- package/styles/inplace-editor/bootstrap4.css +17 -6
- package/styles/inplace-editor/bootstrap5-dark.css +9 -5
- package/styles/inplace-editor/bootstrap5.css +9 -5
- package/styles/inplace-editor/material3-dark.css +804 -0
- package/styles/inplace-editor/material3-dark.scss +2 -0
- package/styles/inplace-editor/material3.css +860 -0
- package/styles/inplace-editor/material3.scss +2 -0
- package/styles/material3-dark.css +804 -0
- package/styles/material3-dark.scss +2 -0
- package/styles/material3.css +860 -0
- package/styles/material3.scss +2 -0
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import { InPlaceEditor } from '@syncfusion/ej2-inplace-editor';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
2
3
|
import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
3
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
4
4
|
|
|
5
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10
|
-
return extendStatics(d, b);
|
|
11
|
-
};
|
|
12
|
-
return function (d, b) {
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
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;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
};
|
|
24
|
-
import { Options } from 'vue-class-component';
|
|
25
5
|
var properties = ['isLazyUpdate', 'plugins', 'actionOnBlur', 'adaptor', 'cancelButton', 'cssClass', 'disabled', 'editableOn', 'emptyText', 'enableEditMode', 'enableHtmlParse', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'locale', 'mode', 'model', 'name', 'popupSettings', 'primaryKey', 'saveButton', 'showButtons', 'submitOnEnter', 'template', 'textOption', 'type', 'url', 'validationRules', 'value', 'actionBegin', 'actionFailure', 'actionSuccess', 'beforeSanitizeHtml', 'beginEdit', 'cancelClick', 'change', 'created', 'destroyed', 'endEdit', 'submitClick', 'validating'];
|
|
26
6
|
var modelProps = ['value'];
|
|
27
7
|
var testProp = getProps({ props: properties });
|
|
@@ -39,157 +19,149 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
39
19
|
* <ejs-inplaceeditor></ejs-inplaceeditor>
|
|
40
20
|
* ```
|
|
41
21
|
*/
|
|
42
|
-
var InPlaceEditorComponent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
22
|
+
var InPlaceEditorComponent = vueDefineComponent({
|
|
23
|
+
name: 'InPlaceEditorComponent',
|
|
24
|
+
mixins: [ComponentBase],
|
|
25
|
+
props: props,
|
|
26
|
+
watch: watch,
|
|
27
|
+
emits: emitProbs,
|
|
28
|
+
model: { event: 'modelchanged' },
|
|
29
|
+
provide: function () { return { custom: this.custom }; },
|
|
30
|
+
data: function () {
|
|
31
|
+
return {
|
|
32
|
+
ej2Instance: new InPlaceEditor({}),
|
|
33
|
+
propKeys: properties,
|
|
34
|
+
models: modelProps,
|
|
35
|
+
hasChildDirective: false,
|
|
36
|
+
hasInjectedModules: true,
|
|
37
|
+
tagMapper: {},
|
|
38
|
+
tagNameMapper: {},
|
|
39
|
+
isVue3: !isExecute,
|
|
40
|
+
templateCollection: {},
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
created: function () {
|
|
44
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
45
|
+
this.ej2Instances.trigger = this.trigger;
|
|
46
|
+
this.bindProperties();
|
|
47
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
48
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
49
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
50
|
+
this.updated = this.updated;
|
|
51
|
+
},
|
|
52
|
+
render: function (createElement) {
|
|
53
|
+
var h = !isExecute ? gh : createElement;
|
|
54
|
+
var slots = null;
|
|
55
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
56
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
66
57
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
return h('div', slots);
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
clearTemplate: function (templateNames) {
|
|
62
|
+
if (!templateNames) {
|
|
63
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
64
|
+
}
|
|
65
|
+
if (templateNames.length && this.templateCollection) {
|
|
66
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
67
|
+
var tempName = templateNames_1[_i];
|
|
68
|
+
var elementCollection = this.templateCollection[tempName];
|
|
69
|
+
if (elementCollection && elementCollection.length) {
|
|
70
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
71
|
+
var ele = elementCollection_1[_a];
|
|
72
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
73
|
+
if (destroy) {
|
|
74
|
+
ele.__vue__.$destroy();
|
|
75
|
+
}
|
|
76
|
+
if (ele.innerHTML) {
|
|
77
|
+
ele.innerHTML = '';
|
|
78
|
+
}
|
|
80
79
|
}
|
|
80
|
+
delete this.templateCollection[tempName];
|
|
81
81
|
}
|
|
82
|
-
delete this.templateCollection[tempName];
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
},
|
|
85
|
+
setProperties: function (prop, muteOnChange) {
|
|
86
|
+
var _this = this;
|
|
87
|
+
if (this.isVue3) {
|
|
88
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
89
|
+
}
|
|
90
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
91
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
92
|
+
}
|
|
93
|
+
if (prop && this.models && this.models.length) {
|
|
94
|
+
Object.keys(prop).map(function (key) {
|
|
95
|
+
_this.models.map(function (model) {
|
|
96
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
97
|
+
if (_this.isVue3) {
|
|
98
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
_this.$emit('update:' + key, prop[key]);
|
|
102
|
+
_this.$emit('modelchanged', prop[key]);
|
|
103
|
+
}
|
|
101
104
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
110
|
+
if (!isExecute) {
|
|
111
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
112
|
+
}
|
|
113
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
114
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
115
|
+
var propKey = key[0];
|
|
116
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
117
|
+
if (!isExecute) {
|
|
118
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
119
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
120
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
124
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
125
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
105
126
|
}
|
|
106
127
|
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
InPlaceEditorComponent.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
128
|
}
|
|
124
|
-
|
|
125
|
-
|
|
129
|
+
}
|
|
130
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
131
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
132
|
+
var propKey = key[0];
|
|
133
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
134
|
+
if (!isExecute) {
|
|
135
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
136
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
126
139
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
127
140
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
143
|
}
|
|
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
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
147
|
-
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
InPlaceEditorComponent.prototype.render = function (createElement) {
|
|
151
|
-
var h = !isExecute ? gh : createElement;
|
|
152
|
-
var slots = null;
|
|
153
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
154
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
155
|
-
}
|
|
156
|
-
return h('div', slots);
|
|
157
|
-
};
|
|
158
|
-
InPlaceEditorComponent.prototype.custom = function () {
|
|
159
|
-
this.updated();
|
|
160
|
-
};
|
|
161
|
-
InPlaceEditorComponent.prototype.extendModelValue = function (val) {
|
|
162
|
-
return this.ej2Instances.extendModelValue(val);
|
|
163
|
-
};
|
|
164
|
-
InPlaceEditorComponent.prototype.save = function () {
|
|
165
|
-
return this.ej2Instances.save();
|
|
166
|
-
};
|
|
167
|
-
InPlaceEditorComponent.prototype.setValue = function () {
|
|
168
|
-
return this.ej2Instances.setValue();
|
|
169
|
-
};
|
|
170
|
-
InPlaceEditorComponent.prototype.validate = function () {
|
|
171
|
-
return this.ej2Instances.validate();
|
|
172
|
-
};
|
|
173
|
-
InPlaceEditorComponent = __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
|
-
};
|
|
144
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
145
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
188
146
|
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
147
|
+
},
|
|
148
|
+
custom: function () {
|
|
149
|
+
this.updated();
|
|
150
|
+
},
|
|
151
|
+
extendModelValue: function (val) {
|
|
152
|
+
return this.ej2Instances.extendModelValue(val);
|
|
153
|
+
},
|
|
154
|
+
save: function () {
|
|
155
|
+
return this.ej2Instances.save();
|
|
156
|
+
},
|
|
157
|
+
setValue: function () {
|
|
158
|
+
return this.ej2Instances.setValue();
|
|
159
|
+
},
|
|
160
|
+
validate: function () {
|
|
161
|
+
return this.ej2Instances.validate();
|
|
162
|
+
},
|
|
163
|
+
}
|
|
164
|
+
});
|
|
193
165
|
var InPlaceEditorPlugin = {
|
|
194
166
|
name: 'ejs-inplaceeditor',
|
|
195
167
|
install: function (Vue) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-inplace-editor.es5.js","sources":["../../src/inplace-editor/inplaceeditor.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { isUndefined } from '@syncfusion/ej2-base';\nimport { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { InPlaceEditor } from '@syncfusion/ej2-inplace-editor';\n// {{VueImport}}\nexport var properties = ['isLazyUpdate', 'plugins', 'actionOnBlur', 'adaptor', 'cancelButton', 'cssClass', 'disabled', 'editableOn', 'emptyText', 'enableEditMode', 'enableHtmlParse', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'locale', 'mode', 'model', 'name', 'popupSettings', 'primaryKey', 'saveButton', 'showButtons', 'submitOnEnter', 'template', 'textOption', 'type', 'url', 'validationRules', 'value', 'actionBegin', 'actionFailure', 'actionSuccess', 'beforeSanitizeHtml', 'beginEdit', 'cancelClick', 'change', 'created', 'destroyed', 'endEdit', 'submitClick', 'validating'];\nexport var modelProps = ['value'];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0];\nexport var watch = testProp[1];\nexport var emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * `ejs-inplace-editor` represents the VueJS InPlaceEditor Component.\n * ```vue\n * <ejs-inplaceeditor></ejs-inplaceeditor>\n * ```\n */\nvar InPlaceEditorComponent = /** @class */ (function (_super) {\n __extends(InPlaceEditorComponent, _super);\n function InPlaceEditorComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.isVue3 = !isExecute;\n _this.ej2Instances = new InPlaceEditor({});\n _this.ej2Instances._trigger = _this.ej2Instances.trigger;\n _this.ej2Instances.trigger = _this.trigger;\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n InPlaceEditorComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n InPlaceEditorComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n };\n InPlaceEditorComponent.prototype.trigger = function (eventName, eventProp, successHandler) {\n if (!isExecute) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {\n var key = this.models.toString().match(/checked|value/) || [];\n var propKey = key[0];\n if (eventProp && key && !isUndefined(eventProp[propKey])) {\n if (!isExecute) {\n this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);\n }\n else {\n if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {\n this.$emit('update:' + propKey, eventProp[propKey]);\n this.$emit('modelchanged', eventProp[propKey]);\n }\n }\n }\n }\n else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {\n var key = this.models.toString().match(/currentView|selectedDate/) || [];\n var propKey = key[0];\n if (eventProp && key && !isUndefined(eventProp[propKey])) {\n if (!isExecute) {\n this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);\n }\n else {\n this.$emit('update:' + propKey, eventProp[propKey]);\n this.$emit('modelchanged', eventProp[propKey]);\n }\n }\n }\n if ((this.ej2Instances && this.ej2Instances._trigger)) {\n this.ej2Instances._trigger(eventName, eventProp, successHandler);\n }\n };\n InPlaceEditorComponent.prototype.render = function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n };\n InPlaceEditorComponent.prototype.custom = function () {\n this.updated();\n };\n InPlaceEditorComponent.prototype.extendModelValue = function (val) {\n return this.ej2Instances.extendModelValue(val);\n };\n InPlaceEditorComponent.prototype.save = function () {\n return this.ej2Instances.save();\n };\n InPlaceEditorComponent.prototype.setValue = function () {\n return this.ej2Instances.setValue();\n };\n InPlaceEditorComponent.prototype.validate = function () {\n return this.ej2Instances.validate();\n };\n InPlaceEditorComponent = __decorate([\n EJComponentDecorator({\n props: properties,\n model: {\n event: 'modelchanged'\n }\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n ], InPlaceEditorComponent);\n return InPlaceEditorComponent;\n}(ComponentBase));\nexport { InPlaceEditorComponent };\nexport var InPlaceEditorPlugin = {\n name: 'ejs-inplaceeditor',\n install: function (Vue) {\n Vue.component(InPlaceEditorPlugin.name, InPlaceEditorComponent);\n }\n};\n"],"names":["this"],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,CAAC,YAAY;IACrD,IAAI,aAAa,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE;QAChC,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KAC9B,CAAC;IACF,OAAO,U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C,KAAK,EAAE,KAAK,CAAC,CAAC;KAC1B,CAAC;IACF,sBAAsB,CAAC,SAAS,CAAC,MAAM,GAAG,YAAY;QAClD,IAAI,CAAC,OAAO,EAAE,CAAC;KAClB,CAAC;IACF,sBAAsB,CAAC,SAAS,CAAC,gBAAgB,GAAG,UAAU,GAAG,EAAE;QAC/D,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;KAClD,CAAC;IACF,sBAAsB,CAAC,SAAS,CAAC,IAAI,GAAG,YAAY;QAChD,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;KACnC,CAAC;IACF,sBAAsB,CAAC,SAAS,CAAC,QAAQ,GAAG,YAAY;QACpD,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;KACvC,CAAC;IACF,sBAAsB,CAAC,SAAS,CAAC,QAAQ,GAAG,YAAY;QACpD,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;KACvC,CAAC;IACF,sBAAsB,GAAG,UAAU,CAAC;QAChC,oBAAoB,CAAC;YACjB,KAAK,EAAE,UAAU;YACjB,KAAK,EAAE;gBACH,KAAK,EAAE,cAAc;aACxB;SACJ,EAAE,SAAS,CAAC;;;;;;;;;;;KAWhB,EAAE,sBAAsB,CAAC,CAAC;IAC3B,OAAO,sBAAsB,CAAC;CACjC,CAAC,aAAa,CAAC,CAAC,CAAC;AAClB,AACO,IAAI,mBAAmB,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,UAAU,GAAG,EAAE;QACpB,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;KACnE;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-inplace-editor.es5.js","sources":["../../src/inplace-editor/inplaceeditor.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { isUndefined } from '@syncfusion/ej2-base';\nimport { InPlaceEditor } from '@syncfusion/ej2-inplace-editor';\nexport var properties = ['isLazyUpdate', 'plugins', 'actionOnBlur', 'adaptor', 'cancelButton', 'cssClass', 'disabled', 'editableOn', 'emptyText', 'enableEditMode', 'enableHtmlParse', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'locale', 'mode', 'model', 'name', 'popupSettings', 'primaryKey', 'saveButton', 'showButtons', 'submitOnEnter', 'template', 'textOption', 'type', 'url', 'validationRules', 'value', 'actionBegin', 'actionFailure', 'actionSuccess', 'beforeSanitizeHtml', 'beginEdit', 'cancelClick', 'change', 'created', 'destroyed', 'endEdit', 'submitClick', 'validating'];\nexport var modelProps = ['value'];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * `ejs-inplace-editor` represents the VueJS InPlaceEditor Component.\n * ```vue\n * <ejs-inplaceeditor></ejs-inplaceeditor>\n * ```\n */\nexport var InPlaceEditorComponent = vueDefineComponent({\n name: 'InPlaceEditorComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n model: { event: 'modelchanged' },\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instance: new InPlaceEditor({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: true,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.ej2Instances._trigger = this.ej2Instances.trigger;\n this.ej2Instances.trigger = this.trigger;\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n trigger: function (eventName, eventProp, successHandler) {\n if (!isExecute) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {\n var key = this.models.toString().match(/checked|value/) || [];\n var propKey = key[0];\n if (eventProp && key && !isUndefined(eventProp[propKey])) {\n if (!isExecute) {\n this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);\n }\n else {\n if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {\n this.$emit('update:' + propKey, eventProp[propKey]);\n this.$emit('modelchanged', eventProp[propKey]);\n }\n }\n }\n }\n else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {\n var key = this.models.toString().match(/currentView|selectedDate/) || [];\n var propKey = key[0];\n if (eventProp && key && !isUndefined(eventProp[propKey])) {\n if (!isExecute) {\n this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);\n this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);\n }\n else {\n this.$emit('update:' + propKey, eventProp[propKey]);\n this.$emit('modelchanged', eventProp[propKey]);\n }\n }\n }\n if ((this.ej2Instances && this.ej2Instances._trigger)) {\n this.ej2Instances._trigger(eventName, eventProp, successHandler);\n }\n },\n custom: function () {\n this.updated();\n },\n extendModelValue: function (val) {\n return this.ej2Instances.extendModelValue(val);\n },\n save: function () {\n return this.ej2Instances.save();\n },\n setValue: function () {\n return this.ej2Instances.setValue();\n },\n validate: function () {\n return this.ej2Instances.validate();\n },\n }\n});\nexport var InPlaceEditorPlugin = {\n name: 'ejs-inplaceeditor',\n install: function (Vue) {\n Vue.component(InPlaceEditorPlugin.name, InPlaceEditorComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAIO,IAAI,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY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AI,EAAE,mBAAmB;IACzB,OAAO,EAAE,UAAU,GAAG,EAAE;QACpB,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;KACnE;CACJ;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-inplace-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-inplace-editor@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-inplace-editor@22.1.34",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Q6RZvc7r4t5CLz9AuQ1lGEMWVkgjUHU3pdPBDghFLeTVpsJMsd1s1wh9wb86SocDU9e/fAZlNPLPIkb9nAHe6g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-inplace-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-inplace-editor/-/ej2-vue-inplace-editor-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-inplace-editor/-/ej2-vue-inplace-editor-22.1.34.tgz",
|
|
23
|
+
"_shasum": "bf055572e4fd316e637059c3bcb2ab27ac35ea29",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-inplace-editor@*",
|
|
25
|
-
"_where": "/jenkins/workspace/
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Syncfusion Inc."
|
|
28
28
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~
|
|
35
|
-
"@syncfusion/ej2-inplace-editor": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~22.1.34",
|
|
35
|
+
"@syncfusion/ej2-inplace-editor": "21.1.36",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~22.1.34"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "A package of Essential JS 2 Inplace editor components, which is used to edit and update the value dynamically in server. for Vue",
|
|
@@ -55,8 +55,9 @@
|
|
|
55
55
|
"url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
|
-
"
|
|
58
|
+
"ci-publish": "gulp ci-publish",
|
|
59
|
+
"compile": "gulp ci-compile && gulp vue-global-script"
|
|
59
60
|
},
|
|
60
|
-
"version": "
|
|
61
|
+
"version": "21.1.36",
|
|
61
62
|
"sideEffects": false
|
|
62
63
|
}
|
|
@@ -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-inplace-editor` represents the VueJS InPlaceEditor Component.
|
|
10
7
|
* ```vue
|
|
11
8
|
* <ejs-inplaceeditor></ejs-inplaceeditor>
|
|
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
|
-
extendModelValue(val: string | number | boolean | Object | Object | string[] | Object[] | number[] | boolean[]): void;
|
|
35
|
-
save(): void;
|
|
36
|
-
setValue(): void;
|
|
37
|
-
validate(): void;
|
|
38
|
-
}
|
|
11
|
+
export declare let InPlaceEditorComponent: any;
|
|
12
|
+
export declare type InPlaceEditorComponent = InstanceType<typeof InPlaceEditorComponent>;
|
|
39
13
|
export declare const InPlaceEditorPlugin: {
|
|
40
14
|
name: string;
|
|
41
15
|
install(Vue: any): void;
|