impaktapps-ui-builder 1.0.61 → 1.0.63-alpha.1

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.
@@ -96,11 +96,25 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/hasBackIcon",
102
+ options: {
103
+ widget: "RadioInputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Back Icon",
109
+ options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
110
+ }
111
+ }
112
+ },
99
113
  {
100
114
  type: "Control",
101
115
  scope: "#/properties/EmptyBox",
102
116
  config: {
103
- layout: { xs: 0, sm: 0, md: 4, lg: 6 }
117
+ layout: { xs: 0, sm: 6, md: 0, lg: 3 }
104
118
  },
105
119
  options: {
106
120
  widget: "EmptyBox"
@@ -6256,6 +6270,7 @@ const ComponentSchema = {
6256
6270
  { title: "Data Card", const: "card" },
6257
6271
  { title: "Check Box", const: "CheckBox" },
6258
6272
  { title: "Container", const: "WrapperSection" },
6273
+ { title: "Tab Container", const: "HorizontalLayout" },
6259
6274
  { title: "Data Grid", const: "DataGrid" },
6260
6275
  { title: "Date", const: "Date" },
6261
6276
  { title: "Time Stamp", const: "DateTime" },
@@ -7933,6 +7948,18 @@ const buildPropertiesSection = function(type) {
7933
7948
  emptyBox$1("MultipleSelectEmpty2")
7934
7949
  ];
7935
7950
  break;
7951
+ case "Date":
7952
+ uiSchema.elements = [
7953
+ getSelectField("variant", "Variant"),
7954
+ emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
7955
+ ];
7956
+ break;
7957
+ case "DateTime":
7958
+ uiSchema.elements = [
7959
+ getSelectField("variant", "Variant"),
7960
+ emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
7961
+ ];
7962
+ break;
7936
7963
  case "Thought":
7937
7964
  uiSchema.elements = [
7938
7965
  getTextArea("thought", "Today's thought", false)
@@ -8463,7 +8490,9 @@ const sectionLabels = {
8463
8490
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8464
8491
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8465
8492
  ColumnGroup: ["Core", "Components"],
8466
- Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8493
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8494
+ Date: ["Core", "Properties", "Events", "Style", "Validation"],
8495
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
8467
8496
  };
8468
8497
  function refreshPage(type, store2) {
8469
8498
  var _a, _b;
@@ -10331,7 +10360,7 @@ var service = (funcParams) => {
10331
10360
  };
10332
10361
  return {
10333
10362
  setPage: async function() {
10334
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10363
+ var _a, _b, _c;
10335
10364
  funcParams.store.setAdditionalErrors([]);
10336
10365
  funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
10337
10366
  funcParams.store.setSchema({ type: "object", properties: {} });
@@ -10341,116 +10370,11 @@ var service = (funcParams) => {
10341
10370
  const config2 = pageData == null ? void 0 : pageData.config;
10342
10371
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10343
10372
  const event2 = new CustomEvent("pageNameChanged", {
10344
- detail: { pageName: config2.label, hasBackIcon: true }
10373
+ detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10345
10374
  });
10346
10375
  window.dispatchEvent(event2);
10347
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10348
- uiSchema.elements.push(
10349
- {
10350
- type: "HorizontalLayout",
10351
- config: {
10352
- main: {
10353
- direction: "row"
10354
- },
10355
- style: {
10356
- flexDirection: "row",
10357
- position: "absolute",
10358
- bottom: 0,
10359
- height: "fit-content",
10360
- overflow: "hidden",
10361
- zIndex: 1e3,
10362
- width: "inherit"
10363
- }
10364
- },
10365
- elements: [
10366
- {
10367
- type: "Control",
10368
- scope: "#/properties/FooterText",
10369
- options: {
10370
- widget: "Box"
10371
- },
10372
- config: {
10373
- main: {
10374
- heading: "Copywriter@ACT21.IO"
10375
- },
10376
- style: {
10377
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10378
- fontSize: "11px",
10379
- textAlign: "center",
10380
- lineHeight: 2,
10381
- width: "fit-content",
10382
- left: "50%",
10383
- position: "relative",
10384
- margin: 0,
10385
- flexGrow: 1,
10386
- height: 0,
10387
- transform: "translate(-50%, 0%)"
10388
- }
10389
- }
10390
- },
10391
- {
10392
- type: "Control",
10393
- scope: "#/properties/FooterBackIcon",
10394
- options: {
10395
- widget: "Box"
10396
- },
10397
- config: {
10398
- main: {
10399
- iconName: "PrevIcon",
10400
- onClick: "backHandler",
10401
- width: "fit-content"
10402
- },
10403
- style: {
10404
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10405
- width: 20,
10406
- height: 0,
10407
- top: 0,
10408
- right: { xs: "12px", sm: "84px" },
10409
- position: "absolute",
10410
- fontSize: "12px",
10411
- cursor: "pointer",
10412
- ":hover": {
10413
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10414
- },
10415
- marginRight: "20px"
10416
- }
10417
- }
10418
- },
10419
- {
10420
- type: "Control",
10421
- scope: "#/properties/FooterBackHandlerText",
10422
- options: {
10423
- widget: "Box"
10424
- },
10425
- config: {
10426
- main: {
10427
- heading: "Previous Page",
10428
- onClick: "backHandler"
10429
- },
10430
- style: {
10431
- display: { xs: "none", sm: "flex" },
10432
- textAlign: "left",
10433
- lineHeight: 1,
10434
- height: 0,
10435
- width: "fit-content",
10436
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10437
- fontSize: "12px",
10438
- cursor: "pointer",
10439
- marginLeft: "2px",
10440
- top: 3,
10441
- right: "12px",
10442
- position: "absolute",
10443
- ":hover": {
10444
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10445
- },
10446
- marginRight: "4px"
10447
- }
10448
- }
10449
- }
10450
- ]
10451
- }
10452
- );
10453
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10376
+ (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10377
+ const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10454
10378
  eventGroups = extractEvents(config2);
10455
10379
  executeEventsParameters = {
10456
10380
  config: {},
@@ -11664,6 +11588,9 @@ const buildDate = (config2, componentScope2) => {
11664
11588
  if (config2.layout) {
11665
11589
  dateInputField.config.layout = createLayoutFormat(config2.layout);
11666
11590
  }
11591
+ if (config2.variant) {
11592
+ dateInputField.config.main.variant = config2.variant;
11593
+ }
11667
11594
  return dateInputField;
11668
11595
  };
11669
11596
  const buildDateTime = (config2, componentScope2) => {
@@ -11674,6 +11601,9 @@ const buildDateTime = (config2, componentScope2) => {
11674
11601
  if (config2.layout) {
11675
11602
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11676
11603
  }
11604
+ if (config2.variant) {
11605
+ dateTimeInputField.config.main.variant = config2.variant;
11606
+ }
11677
11607
  return dateTimeInputField;
11678
11608
  };
11679
11609
  var RankCard = {
@@ -12167,7 +12097,7 @@ const buildPopUp = (config2, componentScope2) => {
12167
12097
  popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12168
12098
  }
12169
12099
  if (config2.style) {
12170
- PopUP.config.style = JSON.parse(config2.style);
12100
+ popup.config.style = JSON.parse(config2.style);
12171
12101
  }
12172
12102
  return popup;
12173
12103
  };
@@ -12338,6 +12268,26 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12338
12268
  }
12339
12269
  return thought;
12340
12270
  };
12271
+ var horizontalLayout = {
12272
+ type: "HorizontalLayout",
12273
+ config: {
12274
+ layout: 12,
12275
+ main: {
12276
+ rowSpacing: 3,
12277
+ divider: false
12278
+ },
12279
+ defaultStyle: true
12280
+ },
12281
+ elements: []
12282
+ };
12283
+ const buildHorizontalLayout = (config2, componentScope2) => {
12284
+ const horizontal = _.cloneDeep(horizontalLayout);
12285
+ horizontal.scope = componentScope2;
12286
+ if (config2.layout) {
12287
+ horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
12288
+ }
12289
+ return horizontal;
12290
+ };
12341
12291
  let schema = {
12342
12292
  type: "object",
12343
12293
  properties: {},
@@ -12492,6 +12442,9 @@ const buildUiSchema = (config2, store2) => {
12492
12442
  case "WrapperSection":
12493
12443
  elements = buildWrapperSection(config2, componentScope2);
12494
12444
  break;
12445
+ case "HorizontalLayout":
12446
+ elements = buildHorizontalLayout(config2, componentScope2);
12447
+ break;
12495
12448
  case "Text":
12496
12449
  elements = buildTextField(config2, componentScope2);
12497
12450
  break;