impaktapps-ui-builder 0.0.963-copyElement.1007 → 0.0.963-copyElement.1008
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 +13 -13
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +7 -6
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -7
|
@@ -17,8 +17,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
17
17
|
deletePopUpComponent: () => void;
|
|
18
18
|
deletePopUpEvent: () => void;
|
|
19
19
|
CopyComponent: (paramStore?: any) => void;
|
|
20
|
-
PasteComponent: (paramStore?: any) => void;
|
|
21
|
-
RemoveItemButton: (paramStore
|
|
20
|
+
PasteComponent: (paramStore?: any, setPage?: 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
|
@@ -386,7 +386,7 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
386
386
|
{
|
|
387
387
|
type: "HorizontalLayout",
|
|
388
388
|
config: {
|
|
389
|
-
layout:{xs:12,sm:
|
|
389
|
+
layout:{xs:12,sm: 9}
|
|
390
390
|
},
|
|
391
391
|
elements: [
|
|
392
392
|
{
|
|
@@ -398,13 +398,13 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
398
398
|
config: {
|
|
399
399
|
layout: { xs: 1, sm: 1 },
|
|
400
400
|
main: {
|
|
401
|
-
onClick: "
|
|
401
|
+
onClick: "RemoveItemButton",
|
|
402
402
|
size: "large",
|
|
403
403
|
icon: "RejectIcon",
|
|
404
404
|
styleDefault: true,
|
|
405
405
|
},
|
|
406
406
|
style:{
|
|
407
|
-
marginLeft: "-
|
|
407
|
+
marginLeft: "-5px"
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
410
|
},
|
|
@@ -422,8 +422,8 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
422
422
|
heading: "No element copied",
|
|
423
423
|
},
|
|
424
424
|
style: {
|
|
425
|
-
color: "#
|
|
426
|
-
marginLeft: "-
|
|
425
|
+
color: "#535557",
|
|
426
|
+
marginLeft: "-30px"
|
|
427
427
|
},
|
|
428
428
|
},
|
|
429
429
|
},
|
|
@@ -439,13 +439,14 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
439
439
|
},
|
|
440
440
|
]
|
|
441
441
|
},
|
|
442
|
+
|
|
442
443
|
{
|
|
443
444
|
type: "Control",
|
|
444
445
|
scope: "#/properties/btn",
|
|
445
446
|
options: {
|
|
446
447
|
widget: "Button",
|
|
447
448
|
},
|
|
448
|
-
|
|
449
|
+
|
|
449
450
|
config: {
|
|
450
451
|
layout: { xs: 4, sm: 2 },
|
|
451
452
|
main: {
|
|
@@ -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(paramStore.schema
|
|
192
|
-
const uiSchema = cloneDeep(paramStore.uiSchema
|
|
191
|
+
const schema = cloneDeep(paramStore.schema );
|
|
192
|
+
const uiSchema = cloneDeep(paramStore.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(paramStore = store){
|
|
211
|
+
PasteComponent: function(paramStore = store, setPage = this.setPage){
|
|
212
212
|
// const schema = cloneDeep(store.schema);
|
|
213
213
|
|
|
214
214
|
const path = store.searchParams?.get("path");
|
|
@@ -226,13 +226,13 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
226
226
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
227
227
|
sessionStorage.removeItem('copiedConfig');
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
setPage();
|
|
230
230
|
// }
|
|
231
231
|
},
|
|
232
232
|
|
|
233
|
-
RemoveItemButton: function(paramStore){
|
|
234
|
-
const schema = cloneDeep(paramStore.schema
|
|
235
|
-
const uiSchema = cloneDeep(paramStore.uiSchema
|
|
233
|
+
RemoveItemButton: function(paramStore = store){
|
|
234
|
+
const schema = cloneDeep(paramStore.schema );
|
|
235
|
+
const uiSchema = cloneDeep(paramStore.uiSchema);
|
|
236
236
|
schema.properties.RemoveItemButton.disabled = true;
|
|
237
237
|
// schema.properties.Paste_Icon.disabled = true;
|
|
238
238
|
|