impaktapps-ui-builder 0.0.101-alpha.223 → 0.0.101-alpha.225

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.
@@ -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,6 +11454,8 @@ function Card(theme) {
11455
11454
  height: "0",
11456
11455
  background: "transparent",
11457
11456
  borderRadius: "0px",
11457
+ marginLeft: "-10px",
11458
+ marginTop: "-8px",
11458
11459
  justifyContent: "start",
11459
11460
  position: "relative"
11460
11461
  },
@@ -11499,6 +11500,7 @@ function Card(theme) {
11499
11500
  background: "inherit",
11500
11501
  justifyContent: "flex-start",
11501
11502
  width: "auto",
11503
+ margin: "-8px",
11502
11504
  position: "absolute",
11503
11505
  left: "8px"
11504
11506
  }
@@ -11523,7 +11525,7 @@ function Card(theme) {
11523
11525
  textWrap: "wrap",
11524
11526
  background: "inherit",
11525
11527
  width: "calc(100%+8px)",
11526
- margin: "-16px",
11528
+ margin: "-8px",
11527
11529
  marginTop: { xs: "0px", md: "12px" },
11528
11530
  lineHeight: "1"
11529
11531
  },
@@ -12294,41 +12296,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12294
12296
  }
12295
12297
  return thought;
12296
12298
  };
12297
- var pdfViewer = {
12298
- type: "Control",
12299
- scope: "#/properties/pdfviewer",
12300
- options: {
12301
- widget: "PdfViewer"
12302
- },
12303
- config: {
12304
- layout: {
12305
- xs: 12,
12306
- sm: 12,
12307
- md: 12,
12308
- lg: 12
12309
- },
12310
- main: {
12311
- title: "PDF"
12312
- }
12313
- }
12314
- };
12315
- const buildPdfViewer = (config2) => {
12316
- const PdfViewer = _.cloneDeep(pdfViewer);
12317
- PdfViewer.config.main.label = config2.label;
12318
- if (config2.name) {
12319
- PdfViewer.scope = `#/properties/${config2.name}`;
12320
- }
12321
- if (config2.layout) {
12322
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12323
- }
12324
- if (config2.label) {
12325
- PdfViewer.config.main.title = config2.label;
12326
- }
12327
- if (config2.style) {
12328
- PdfViewer.config.style = JSON.parse(config2.style);
12329
- }
12330
- return PdfViewer;
12331
- };
12332
12299
  let schema = {
12333
12300
  type: "object",
12334
12301
  properties: {},
@@ -12583,9 +12550,6 @@ const buildUiSchema = (config2, store2) => {
12583
12550
  case "Thought":
12584
12551
  elements = buildThoughtOfTheDay(config2, componentScope2);
12585
12552
  break;
12586
- case "PdfViewer":
12587
- elements = buildPdfViewer(config2);
12588
- break;
12589
12553
  default:
12590
12554
  schema = {
12591
12555
  type: "object",
@@ -12615,28 +12579,21 @@ const buildUiSchema = (config2, store2) => {
12615
12579
  });
12616
12580
  } else if (config2.type == "Table") {
12617
12581
  const sizeMap = {};
12618
- const filterMap = {};
12619
12582
  if (config2.sizeHolder) {
12620
12583
  config2.sizeHolder.map((e, i) => {
12621
12584
  sizeMap[e.keyName] = e.value;
12622
12585
  });
12623
12586
  }
12624
- if (config2.enableColumnFilter) {
12625
- config2.enableColumnFilter.map((e) => {
12626
- filterMap[e.keyName] = true;
12627
- });
12628
- }
12629
12587
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12630
- var _a;
12631
12588
  const commonProperties = {
12632
12589
  accessorKey: cellElem.name,
12633
12590
  type: cellElem.columnFormat,
12634
12591
  header: cellElem.label || cellElem.name,
12635
12592
  size: sizeMap[cellElem.name] || 180,
12636
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12637
- columnFilterModeOptions: config2.filteringOptions,
12638
- enableSorting: config2.enableSorting === "No" ? false : true,
12639
- columnKey: config2.columnKey
12593
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12594
+ columnFilterModeOptions: cellElem.filteringOptions,
12595
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12596
+ columnKey: cellElem.columnKey
12640
12597
  };
12641
12598
  if (cellElem.type) {
12642
12599
  return {