impaktapps-ui-builder 0.0.85 → 0.0.86
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 +10 -76
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -52
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +11 -10
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +0 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
|
@@ -7561,7 +7561,6 @@ const buildPropertiesSection = function(type) {
|
|
|
7561
7561
|
];
|
|
7562
7562
|
break;
|
|
7563
7563
|
case "Table":
|
|
7564
|
-
case "LazyLoadingTable":
|
|
7565
7564
|
uiSchema.elements = [
|
|
7566
7565
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7567
7566
|
getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
|
|
@@ -9595,6 +9594,16 @@ var service = (funcParams) => {
|
|
|
9595
9594
|
);
|
|
9596
9595
|
const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
|
|
9597
9596
|
eventGroups = {};
|
|
9597
|
+
funcParams.store.setSchema(
|
|
9598
|
+
(pre) => {
|
|
9599
|
+
return {
|
|
9600
|
+
...schema2,
|
|
9601
|
+
properties: { ...schema2.properties, ...pre.properties }
|
|
9602
|
+
};
|
|
9603
|
+
}
|
|
9604
|
+
);
|
|
9605
|
+
uiSchema.elements.push(notifyUiSchema);
|
|
9606
|
+
funcParams.store.setUiSchema(uiSchema);
|
|
9598
9607
|
eventGroups = extractEvents(config);
|
|
9599
9608
|
executeEventsParameters = {
|
|
9600
9609
|
config: {},
|
|
@@ -9619,16 +9628,6 @@ var service = (funcParams) => {
|
|
|
9619
9628
|
eventGroups,
|
|
9620
9629
|
formDataHolder
|
|
9621
9630
|
});
|
|
9622
|
-
funcParams.store.setSchema(
|
|
9623
|
-
(pre) => {
|
|
9624
|
-
return {
|
|
9625
|
-
...schema2,
|
|
9626
|
-
properties: { ...schema2.properties, ...pre.properties }
|
|
9627
|
-
};
|
|
9628
|
-
}
|
|
9629
|
-
);
|
|
9630
|
-
uiSchema.elements.push(notifyUiSchema);
|
|
9631
|
-
funcParams.store.setUiSchema(uiSchema);
|
|
9632
9631
|
},
|
|
9633
9632
|
onCellRenderer: (cellParams) => {
|
|
9634
9633
|
var _a, _b, _c;
|
|
@@ -10687,20 +10686,6 @@ var Table = {
|
|
|
10687
10686
|
}
|
|
10688
10687
|
}
|
|
10689
10688
|
};
|
|
10690
|
-
var lazyLoadingTable = {
|
|
10691
|
-
type: "Control",
|
|
10692
|
-
scope: "#/properties/LazyLoadingTable",
|
|
10693
|
-
options: {
|
|
10694
|
-
widget: "LazyLoadingTable"
|
|
10695
|
-
},
|
|
10696
|
-
elements: [],
|
|
10697
|
-
config: {
|
|
10698
|
-
main: {
|
|
10699
|
-
onMount: "onMount",
|
|
10700
|
-
columns: {}
|
|
10701
|
-
}
|
|
10702
|
-
}
|
|
10703
|
-
};
|
|
10704
10689
|
const buildTable = (config, componentScope) => {
|
|
10705
10690
|
const table = _.cloneDeep(Table);
|
|
10706
10691
|
table.scope = componentScope;
|
|
@@ -10766,54 +10751,6 @@ const buildTable = (config, componentScope) => {
|
|
|
10766
10751
|
}
|
|
10767
10752
|
return table;
|
|
10768
10753
|
};
|
|
10769
|
-
const buildLazyLoadingTable = (config, componentScope) => {
|
|
10770
|
-
const table = _.cloneDeep(lazyLoadingTable);
|
|
10771
|
-
table.scope = componentScope;
|
|
10772
|
-
if (config.style) {
|
|
10773
|
-
table.config.style = JSON.parse(config.style);
|
|
10774
|
-
}
|
|
10775
|
-
if (config.SelectionAvailable) {
|
|
10776
|
-
table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
|
|
10777
|
-
}
|
|
10778
|
-
if (config.ColumnResizingAvailable) {
|
|
10779
|
-
table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
|
|
10780
|
-
}
|
|
10781
|
-
if (config.DragAvailable) {
|
|
10782
|
-
table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
|
|
10783
|
-
}
|
|
10784
|
-
if (config.selectKey) {
|
|
10785
|
-
table.config.main.selectKey = config.selectKey;
|
|
10786
|
-
}
|
|
10787
|
-
if (config.downloadAllData) {
|
|
10788
|
-
table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
|
|
10789
|
-
}
|
|
10790
|
-
if (config.disableFilters) {
|
|
10791
|
-
table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
|
|
10792
|
-
}
|
|
10793
|
-
if (config.disableSorting) {
|
|
10794
|
-
table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
|
|
10795
|
-
}
|
|
10796
|
-
if (config.disableEditColumn) {
|
|
10797
|
-
table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
|
|
10798
|
-
}
|
|
10799
|
-
if (config.disableFullScreenToggle) {
|
|
10800
|
-
table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
|
|
10801
|
-
}
|
|
10802
|
-
if (config.disableDensityToggle) {
|
|
10803
|
-
table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
|
|
10804
|
-
}
|
|
10805
|
-
if (config.disableDownloadFile) {
|
|
10806
|
-
table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
|
|
10807
|
-
}
|
|
10808
|
-
if (config.disablePagination) {
|
|
10809
|
-
table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
|
|
10810
|
-
}
|
|
10811
|
-
if (config.Table_Download_Keys_Name) {
|
|
10812
|
-
table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
|
|
10813
|
-
}
|
|
10814
|
-
table.config.main.label = config.label;
|
|
10815
|
-
return table;
|
|
10816
|
-
};
|
|
10817
10754
|
const Box = {
|
|
10818
10755
|
type: "Control",
|
|
10819
10756
|
scope: "#/properties/emptyBox",
|
|
@@ -11909,9 +11846,6 @@ const buildUiSchema = (config, store2) => {
|
|
|
11909
11846
|
case "Array":
|
|
11910
11847
|
elements = buildArray(config, componentScope);
|
|
11911
11848
|
break;
|
|
11912
|
-
case "LazyLoadingTable":
|
|
11913
|
-
elements = buildLazyLoadingTable(config, componentScope);
|
|
11914
|
-
break;
|
|
11915
11849
|
case "Box":
|
|
11916
11850
|
elements = buildLabel(config, componentScope);
|
|
11917
11851
|
break;
|