impaktapps-ui-builder 1.0.63 → 1.0.64
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 +32 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
|
@@ -6270,6 +6270,7 @@ const ComponentSchema = {
|
|
|
6270
6270
|
{ title: "Data Card", const: "card" },
|
|
6271
6271
|
{ title: "Check Box", const: "CheckBox" },
|
|
6272
6272
|
{ title: "Container", const: "WrapperSection" },
|
|
6273
|
+
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6273
6274
|
{ title: "Data Grid", const: "DataGrid" },
|
|
6274
6275
|
{ title: "Date", const: "Date" },
|
|
6275
6276
|
{ title: "Time Stamp", const: "DateTime" },
|
|
@@ -8333,7 +8334,7 @@ var buildConfig = (FormData) => {
|
|
|
8333
8334
|
};
|
|
8334
8335
|
const createLayoutFormat = (layout, type) => {
|
|
8335
8336
|
if (_.isEmpty(layout)) {
|
|
8336
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8337
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
|
|
8337
8338
|
if (fullLayoutComponents.includes(type)) {
|
|
8338
8339
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8339
8340
|
} else if (type === "Graph") {
|
|
@@ -8465,6 +8466,7 @@ const sectionLabels = {
|
|
|
8465
8466
|
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8466
8467
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8467
8468
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8469
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8468
8470
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8469
8471
|
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8470
8472
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -10974,6 +10976,9 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
10974
10976
|
if (config2.sectionLabels) {
|
|
10975
10977
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10976
10978
|
}
|
|
10979
|
+
if (config2.style) {
|
|
10980
|
+
tab.config.style = JSON.parse(config2.style);
|
|
10981
|
+
}
|
|
10977
10982
|
tab.config.main.id = config2.name;
|
|
10978
10983
|
return tab;
|
|
10979
10984
|
};
|
|
@@ -12267,6 +12272,29 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12267
12272
|
}
|
|
12268
12273
|
return thought;
|
|
12269
12274
|
};
|
|
12275
|
+
var horizontalLayout = {
|
|
12276
|
+
type: "HorizontalLayout",
|
|
12277
|
+
config: {
|
|
12278
|
+
layout: 12,
|
|
12279
|
+
main: {
|
|
12280
|
+
rowSpacing: 3,
|
|
12281
|
+
divider: false
|
|
12282
|
+
},
|
|
12283
|
+
defaultStyle: true
|
|
12284
|
+
},
|
|
12285
|
+
elements: []
|
|
12286
|
+
};
|
|
12287
|
+
const buildHorizontalLayout = (config2, componentScope2) => {
|
|
12288
|
+
const horizontal = _.cloneDeep(horizontalLayout);
|
|
12289
|
+
horizontal.scope = componentScope2;
|
|
12290
|
+
if (config2.style) {
|
|
12291
|
+
horizontal.config.style = JSON.parse(config2.style);
|
|
12292
|
+
}
|
|
12293
|
+
if (config2.layout) {
|
|
12294
|
+
horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12295
|
+
}
|
|
12296
|
+
return horizontal;
|
|
12297
|
+
};
|
|
12270
12298
|
let schema = {
|
|
12271
12299
|
type: "object",
|
|
12272
12300
|
properties: {},
|
|
@@ -12421,6 +12449,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12421
12449
|
case "WrapperSection":
|
|
12422
12450
|
elements = buildWrapperSection(config2, componentScope2);
|
|
12423
12451
|
break;
|
|
12452
|
+
case "HorizontalLayout":
|
|
12453
|
+
elements = buildHorizontalLayout(config2, componentScope2);
|
|
12454
|
+
break;
|
|
12424
12455
|
case "Text":
|
|
12425
12456
|
elements = buildTextField(config2, componentScope2);
|
|
12426
12457
|
break;
|