impaktapps-ui-builder 1.0.320 → 1.0.389

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.
@@ -6272,7 +6272,7 @@ const ComponentSchema = {
6272
6272
  { title: "Rank", const: "Rank" },
6273
6273
  { title: "Rank Card", const: "RankCard" },
6274
6274
  { title: "Metric Card", const: "MetricCard" },
6275
- { title: "Bow and Arrow", const: "RunnerBoyProgressBar" },
6275
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6276
6276
  { title: "Table", const: "Table" },
6277
6277
  { title: "Tabs", const: "TabSection" },
6278
6278
  { title: "Text", const: "Text" },
@@ -6280,7 +6280,8 @@ const ComponentSchema = {
6280
6280
  { title: "Timer", const: "Timer" },
6281
6281
  { title: "Upload", const: "UploadFile" },
6282
6282
  { title: "Tree ", const: "TreeMap" },
6283
- { title: "Thought of the day", const: "Thought" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "PDF", const: "PdfViewer" }
6284
6285
  ]
6285
6286
  },
6286
6287
  elementType: {
@@ -6362,6 +6363,15 @@ const ComponentSchema = {
6362
6363
  { title: "Right", const: "right" }
6363
6364
  ]
6364
6365
  },
6366
+ maxWidth: {
6367
+ oneOf: [
6368
+ { title: "Extra Small", const: "xs" },
6369
+ { title: "Small", const: "sm" },
6370
+ { title: "Medium", const: "md" },
6371
+ { title: "Large", const: "lg" },
6372
+ { title: "Extra Large", const: "xl" }
6373
+ ]
6374
+ },
6365
6375
  toolTipPosition: {
6366
6376
  oneOf: [
6367
6377
  { title: "Top", const: "top" },
@@ -8289,12 +8299,22 @@ const buildPropertiesSection = function(type) {
8289
8299
  getSelectField("toolTipPosition", "Tooltip Position")
8290
8300
  ];
8291
8301
  break;
8302
+ case "PdfViewer":
8303
+ uiSchema.elements = [
8304
+ getInputField("title", "title"),
8305
+ getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
8306
+ getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
8307
+ getSelectField("maxWidth", "Max Width"),
8308
+ getInputField("scale", "Zoom"),
8309
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8310
+ ];
8311
+ break;
8292
8312
  case "Date":
8293
8313
  uiSchema.elements = [
8294
8314
  getSelectField("variant", "Variant"),
8295
8315
  getInputField("toolTip", "Tooltip"),
8296
8316
  getSelectField("toolTipPosition", "Tooltip Position"),
8297
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8317
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8298
8318
  ];
8299
8319
  break;
8300
8320
  case "DateTime":
@@ -8302,7 +8322,7 @@ const buildPropertiesSection = function(type) {
8302
8322
  getSelectField("variant", "Variant"),
8303
8323
  getInputField("toolTip", "Tooltip"),
8304
8324
  getSelectField("toolTipPosition", "Tooltip Position"),
8305
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8325
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8306
8326
  ];
8307
8327
  break;
8308
8328
  case "Thought":
@@ -8862,8 +8882,9 @@ const sectionLabels = {
8862
8882
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8863
8883
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8864
8884
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8865
- PopUp: ["Core", "Components", "Properties", "Style"],
8885
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8866
8886
  PopOver: ["Core", "Components", "Properties", "Style"],
8887
+ PdfViewer: ["Core", "Components", "Properties", "Style"],
8867
8888
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8868
8889
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8869
8890
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -9447,7 +9468,9 @@ const EventSchema = {
9447
9468
  { title: "Row Movement", const: "onRowMovement" },
9448
9469
  { title: "Download", const: "onDownload" },
9449
9470
  { title: "Fail", const: "Fail" },
9450
- { title: "Key Down", const: "onKeyDown" }
9471
+ { title: "onClose", const: "onClose" },
9472
+ { title: "Key Down", const: "onKeyDown" },
9473
+ { title: "Set Style", const: "setStyle" }
9451
9474
  ]
9452
9475
  },
9453
9476
  Handler: {
@@ -10833,6 +10856,25 @@ var service = (funcParams) => {
10833
10856
  funcParams.store.setUiSchema(uiSchema);
10834
10857
  });
10835
10858
  },
10859
+ getStyle: () => {
10860
+ var _a, _b, _c, _d;
10861
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10862
+ if (cloneEventGroup.setStyle) {
10863
+ let finalResponse = {};
10864
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10865
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10866
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10867
+ finalResponse = executeEvents({
10868
+ ...executeEventsParameters,
10869
+ config: eventConfig,
10870
+ componentName: path
10871
+ });
10872
+ }
10873
+ return finalResponse;
10874
+ }
10875
+ }
10876
+ return {};
10877
+ },
10836
10878
  onCellRenderer: (cellParams) => {
10837
10879
  var _a, _b, _c, _d, _e;
10838
10880
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10862,6 +10904,9 @@ var service = (funcParams) => {
10862
10904
  onFileDelete: async function() {
10863
10905
  this.callHandler("onFileDelete");
10864
10906
  },
10907
+ onClose: function() {
10908
+ this.callHandler("onClose");
10909
+ },
10865
10910
  onMount: function() {
10866
10911
  this.callHandler("onMount");
10867
10912
  },
@@ -12139,7 +12184,6 @@ const DateTime = {
12139
12184
  const buildDate = (config2, componentScope2) => {
12140
12185
  const dateInputField = _.cloneDeep(DateInputField);
12141
12186
  dateInputField.config.main.label = config2.label;
12142
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12143
12187
  dateInputField.scope = componentScope2;
12144
12188
  if (config2.layout) {
12145
12189
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12161,7 +12205,6 @@ const buildDate = (config2, componentScope2) => {
12161
12205
  const buildDateTime = (config2, componentScope2) => {
12162
12206
  const dateTimeInputField = _.cloneDeep(DateTime);
12163
12207
  dateTimeInputField.config.main.label = config2.label;
12164
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12165
12208
  dateTimeInputField.scope = componentScope2;
12166
12209
  if (config2.layout) {
12167
12210
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12703,6 +12746,7 @@ const PopUP = {
12703
12746
  },
12704
12747
  main: {
12705
12748
  label: "PopUp",
12749
+ onClose: "onClose",
12706
12750
  fullScreen: false,
12707
12751
  fullWidth: false,
12708
12752
  maxWidth: false,
@@ -13161,6 +13205,40 @@ const buildOTP_Input = (config2, componentScope2) => {
13161
13205
  OTP.config.main.length = +config2.length;
13162
13206
  return OTP;
13163
13207
  };
13208
+ var pdfViewer = {
13209
+ type: "Control",
13210
+ scope: "#/properties/pdfviewer",
13211
+ options: {
13212
+ widget: "PdfViewer"
13213
+ },
13214
+ config: {
13215
+ layout: {
13216
+ xs: 12,
13217
+ sm: 12,
13218
+ md: 12,
13219
+ lg: 12
13220
+ },
13221
+ main: {
13222
+ title: "PDF"
13223
+ }
13224
+ }
13225
+ };
13226
+ const buildPdfViewer = (config2, componentScope2) => {
13227
+ const PdfViewer = _.cloneDeep(pdfViewer);
13228
+ PdfViewer.scope = componentScope2;
13229
+ PdfViewer.config.main.title = config2.label;
13230
+ PdfViewer.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
13231
+ PdfViewer.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
13232
+ PdfViewer.config.main.maxWidth = config2.maxWidth || false;
13233
+ PdfViewer.config.main.scale = config2.scale;
13234
+ if (config2.layout) {
13235
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13236
+ }
13237
+ if (config2.style) {
13238
+ PdfViewer.config.style = JSON.parse(config2.style);
13239
+ }
13240
+ return PdfViewer;
13241
+ };
13164
13242
  let schema = {
13165
13243
  type: "object",
13166
13244
  properties: {},
@@ -13391,6 +13469,9 @@ const buildUiSchema = (config2, store2) => {
13391
13469
  case "Camera":
13392
13470
  elements = buildCamera(config2, componentScope2);
13393
13471
  break;
13472
+ case "PdfViewer":
13473
+ elements = buildPdfViewer(config2, componentScope2);
13474
+ break;
13394
13475
  default:
13395
13476
  schema = {
13396
13477
  type: "object",