impaktapps-ui-builder 0.0.963-copyElement.1001 → 0.0.963-copyElement.1003
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/dist/impaktapps-ui-builder.es.js +18 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +3 -2
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +0 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +3 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +3 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +16 -4
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -3
|
@@ -16,8 +16,9 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
16
16
|
backHandler: () => void;
|
|
17
17
|
deletePopUpComponent: () => void;
|
|
18
18
|
deletePopUpEvent: () => void;
|
|
19
|
-
CopyComponent: (
|
|
20
|
-
PasteComponent: (
|
|
19
|
+
CopyComponent: (paramStore: any) => void;
|
|
20
|
+
PasteComponent: (paramStore: any) => void;
|
|
21
|
+
RemoveItemButton: (paramStore: any) => void;
|
|
21
22
|
CopyEvent: (store: any) => void;
|
|
22
23
|
PasteEvent: (store: any) => void;
|
|
23
24
|
};
|
package/package.json
CHANGED
|
@@ -180,7 +180,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
|
|
183
|
-
CopyComponent: function(
|
|
183
|
+
CopyComponent: function(paramStore){
|
|
184
184
|
if (sessionStorage.getItem("copiedConfig") ) {
|
|
185
185
|
store.setNotify({
|
|
186
186
|
FailMessage: "Element already copied. Cancel to copy again.",
|
|
@@ -188,9 +188,10 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
else{
|
|
191
|
-
const schema = cloneDeep(store.schema);
|
|
192
|
-
const uiSchema = cloneDeep(store.uiSchema);
|
|
191
|
+
const schema = cloneDeep(paramStore.schema || store.schema);
|
|
192
|
+
const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
|
|
193
193
|
schema.properties.RemoveItemButton.disabled = false;
|
|
194
|
+
// schema.properties.Paste_Icon.disabled = false;
|
|
194
195
|
|
|
195
196
|
const rowId = dynamicData.path.split(".")[1];
|
|
196
197
|
const parentPathOfCopiedComponent = store.searchParams?.get("path");
|
|
@@ -203,10 +204,11 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
203
204
|
sessionStorage.setItem('copiedConfig',JSON.stringify(formData));
|
|
204
205
|
|
|
205
206
|
store.setSchema(schema);
|
|
207
|
+
store.setUiSchema(uiSchema);
|
|
206
208
|
}
|
|
207
209
|
},
|
|
208
210
|
|
|
209
|
-
PasteComponent: function(
|
|
211
|
+
PasteComponent: function(paramStore){
|
|
210
212
|
// const schema = cloneDeep(store.schema);
|
|
211
213
|
|
|
212
214
|
const path = store.searchParams?.get("path");
|
|
@@ -228,6 +230,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
228
230
|
}
|
|
229
231
|
},
|
|
230
232
|
|
|
233
|
+
RemoveItemButton: function(paramStore){
|
|
234
|
+
const schema = cloneDeep(paramStore.schema || store.schema);
|
|
235
|
+
const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
|
|
236
|
+
schema.properties.RemoveItemButton.disabled = true;
|
|
237
|
+
// schema.properties.Paste_Icon.disabled = true;
|
|
238
|
+
|
|
239
|
+
store.setSchema(schema);
|
|
240
|
+
store.setUiSchema(uiSchema);
|
|
241
|
+
},
|
|
242
|
+
|
|
231
243
|
|
|
232
244
|
CopyEvent: function(store){
|
|
233
245
|
const rowId = dynamicData.path.split(".")[1];
|
|
@@ -116,11 +116,10 @@ export default (funcParams: funcParamsProps) => {
|
|
|
116
116
|
PasteComponent: function(){
|
|
117
117
|
Component(store, dynamicData, submitHandler, service).PasteComponent(store)
|
|
118
118
|
},
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
RemoveItemButton: function(){
|
|
121
|
-
|
|
121
|
+
Component(store, dynamicData, submitHandler, service).RemoveItemButton(store)
|
|
122
122
|
},
|
|
123
|
-
|
|
124
123
|
|
|
125
124
|
CopyEvent: function(){
|
|
126
125
|
Component(store, dynamicData, submitHandler, service).CopyEvent(store)
|
|
@@ -130,6 +129,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
130
129
|
PasteEvent: function(){
|
|
131
130
|
Component(store, dynamicData, submitHandler, service).PasteEvent(store)
|
|
132
131
|
},
|
|
132
|
+
|
|
133
|
+
|
|
133
134
|
|
|
134
135
|
|
|
135
136
|
|