impaktapps-ui-builder 0.0.963-copyElement.1002 → 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 +15 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +3 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -7
|
@@ -16,9 +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: (
|
|
21
|
-
RemoveItemButton: (
|
|
19
|
+
CopyComponent: (paramStore: any) => void;
|
|
20
|
+
PasteComponent: (paramStore: any) => void;
|
|
21
|
+
RemoveItemButton: (paramStore: any) => void;
|
|
22
22
|
CopyEvent: (store: any) => void;
|
|
23
23
|
PasteEvent: (store: any) => void;
|
|
24
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,8 +188,8 @@ 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
194
|
// schema.properties.Paste_Icon.disabled = false;
|
|
195
195
|
|
|
@@ -208,7 +208,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
PasteComponent: function(
|
|
211
|
+
PasteComponent: function(paramStore){
|
|
212
212
|
// const schema = cloneDeep(store.schema);
|
|
213
213
|
|
|
214
214
|
const path = store.searchParams?.get("path");
|
|
@@ -230,9 +230,9 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
|
|
233
|
-
RemoveItemButton: function(
|
|
234
|
-
const schema = cloneDeep(store.schema);
|
|
235
|
-
const uiSchema = cloneDeep(store.uiSchema);
|
|
233
|
+
RemoveItemButton: function(paramStore){
|
|
234
|
+
const schema = cloneDeep(paramStore.schema || store.schema);
|
|
235
|
+
const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
|
|
236
236
|
schema.properties.RemoveItemButton.disabled = true;
|
|
237
237
|
// schema.properties.Paste_Icon.disabled = true;
|
|
238
238
|
|