impaktapps-ui-builder 0.0.101-alpha.224 → 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: {
@@ -11526,7 +11525,7 @@ function Card(theme) {
11526
11525
  textWrap: "wrap",
11527
11526
  background: "inherit",
11528
11527
  width: "calc(100%+8px)",
11529
- margin: "-16px",
11528
+ margin: "-8px",
11530
11529
  marginTop: { xs: "0px", md: "12px" },
11531
11530
  lineHeight: "1"
11532
11531
  },
@@ -12297,41 +12296,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12297
12296
  }
12298
12297
  return thought;
12299
12298
  };
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
12299
  let schema = {
12336
12300
  type: "object",
12337
12301
  properties: {},
@@ -12586,9 +12550,6 @@ const buildUiSchema = (config2, store2) => {
12586
12550
  case "Thought":
12587
12551
  elements = buildThoughtOfTheDay(config2, componentScope2);
12588
12552
  break;
12589
- case "PdfViewer":
12590
- elements = buildPdfViewer(config2);
12591
- break;
12592
12553
  default:
12593
12554
  schema = {
12594
12555
  type: "object",
@@ -12618,28 +12579,21 @@ const buildUiSchema = (config2, store2) => {
12618
12579
  });
12619
12580
  } else if (config2.type == "Table") {
12620
12581
  const sizeMap = {};
12621
- const filterMap = {};
12622
12582
  if (config2.sizeHolder) {
12623
12583
  config2.sizeHolder.map((e, i) => {
12624
12584
  sizeMap[e.keyName] = e.value;
12625
12585
  });
12626
12586
  }
12627
- if (config2.enableColumnFilter) {
12628
- config2.enableColumnFilter.map((e) => {
12629
- filterMap[e.keyName] = true;
12630
- });
12631
- }
12632
12587
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12633
- var _a;
12634
12588
  const commonProperties = {
12635
12589
  accessorKey: cellElem.name,
12636
12590
  type: cellElem.columnFormat,
12637
12591
  header: cellElem.label || cellElem.name,
12638
12592
  size: sizeMap[cellElem.name] || 180,
12639
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12640
- columnFilterModeOptions: config2.filteringOptions,
12641
- enableSorting: config2.enableSorting === "No" ? false : true,
12642
- 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
12643
12597
  };
12644
12598
  if (cellElem.type) {
12645
12599
  return {