impaktapps-ui-builder 0.0.101-alpha.224 → 0.0.101-alpha.226
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 +5 -53
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +0 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +10 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
|
@@ -6287,8 +6287,7 @@ const ComponentSchema = {
|
|
|
6287
6287
|
{ title: "Upload", const: "UploadFile" },
|
|
6288
6288
|
{ title: "Tree ", const: "TreeMap" },
|
|
6289
6289
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6290
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6291
|
-
{ title: "PDF", const: "PdfViewer" }
|
|
6290
|
+
{ title: "Thought of the day", const: "Thought" }
|
|
6292
6291
|
]
|
|
6293
6292
|
},
|
|
6294
6293
|
columnFormat: {
|
|
@@ -11455,8 +11454,6 @@ function Card(theme) {
|
|
|
11455
11454
|
height: "0",
|
|
11456
11455
|
background: "transparent",
|
|
11457
11456
|
borderRadius: "0px",
|
|
11458
|
-
marginLeft: "-10px",
|
|
11459
|
-
marginTop: "-8px",
|
|
11460
11457
|
justifyContent: "start",
|
|
11461
11458
|
position: "relative"
|
|
11462
11459
|
},
|
|
@@ -12297,41 +12294,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12297
12294
|
}
|
|
12298
12295
|
return thought;
|
|
12299
12296
|
};
|
|
12300
|
-
var pdfViewer = {
|
|
12301
|
-
type: "Control",
|
|
12302
|
-
scope: "#/properties/pdfviewer",
|
|
12303
|
-
options: {
|
|
12304
|
-
widget: "PdfViewer"
|
|
12305
|
-
},
|
|
12306
|
-
config: {
|
|
12307
|
-
layout: {
|
|
12308
|
-
xs: 12,
|
|
12309
|
-
sm: 12,
|
|
12310
|
-
md: 12,
|
|
12311
|
-
lg: 12
|
|
12312
|
-
},
|
|
12313
|
-
main: {
|
|
12314
|
-
title: "PDF"
|
|
12315
|
-
}
|
|
12316
|
-
}
|
|
12317
|
-
};
|
|
12318
|
-
const buildPdfViewer = (config2) => {
|
|
12319
|
-
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
12320
|
-
PdfViewer.config.main.label = config2.label;
|
|
12321
|
-
if (config2.name) {
|
|
12322
|
-
PdfViewer.scope = `#/properties/${config2.name}`;
|
|
12323
|
-
}
|
|
12324
|
-
if (config2.layout) {
|
|
12325
|
-
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
12326
|
-
}
|
|
12327
|
-
if (config2.label) {
|
|
12328
|
-
PdfViewer.config.main.title = config2.label;
|
|
12329
|
-
}
|
|
12330
|
-
if (config2.style) {
|
|
12331
|
-
PdfViewer.config.style = JSON.parse(config2.style);
|
|
12332
|
-
}
|
|
12333
|
-
return PdfViewer;
|
|
12334
|
-
};
|
|
12335
12297
|
let schema = {
|
|
12336
12298
|
type: "object",
|
|
12337
12299
|
properties: {},
|
|
@@ -12586,9 +12548,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12586
12548
|
case "Thought":
|
|
12587
12549
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12588
12550
|
break;
|
|
12589
|
-
case "PdfViewer":
|
|
12590
|
-
elements = buildPdfViewer(config2);
|
|
12591
|
-
break;
|
|
12592
12551
|
default:
|
|
12593
12552
|
schema = {
|
|
12594
12553
|
type: "object",
|
|
@@ -12618,28 +12577,21 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12618
12577
|
});
|
|
12619
12578
|
} else if (config2.type == "Table") {
|
|
12620
12579
|
const sizeMap = {};
|
|
12621
|
-
const filterMap = {};
|
|
12622
12580
|
if (config2.sizeHolder) {
|
|
12623
12581
|
config2.sizeHolder.map((e, i) => {
|
|
12624
12582
|
sizeMap[e.keyName] = e.value;
|
|
12625
12583
|
});
|
|
12626
12584
|
}
|
|
12627
|
-
if (config2.enableColumnFilter) {
|
|
12628
|
-
config2.enableColumnFilter.map((e) => {
|
|
12629
|
-
filterMap[e.keyName] = true;
|
|
12630
|
-
});
|
|
12631
|
-
}
|
|
12632
12585
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12633
|
-
var _a;
|
|
12634
12586
|
const commonProperties = {
|
|
12635
12587
|
accessorKey: cellElem.name,
|
|
12636
12588
|
type: cellElem.columnFormat,
|
|
12637
12589
|
header: cellElem.label || cellElem.name,
|
|
12638
12590
|
size: sizeMap[cellElem.name] || 180,
|
|
12639
|
-
enableColumnFilter:
|
|
12640
|
-
columnFilterModeOptions:
|
|
12641
|
-
enableSorting:
|
|
12642
|
-
columnKey:
|
|
12591
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12592
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12593
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12594
|
+
columnKey: cellElem.columnKey
|
|
12643
12595
|
};
|
|
12644
12596
|
if (cellElem.type) {
|
|
12645
12597
|
return {
|