impaktapps-ui-builder 1.0.320 → 1.0.390
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 +108 -8
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDualWrapper.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dualWrapper.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildDualWrapper.tsx +17 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +8 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/dualWrapper.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +12 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +4 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +22 -0
|
@@ -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: "
|
|
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,9 @@ 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" },
|
|
6285
|
+
{ title: "Dual Wrapper", const: "DualWrapper" }
|
|
6284
6286
|
]
|
|
6285
6287
|
},
|
|
6286
6288
|
elementType: {
|
|
@@ -6362,6 +6364,15 @@ const ComponentSchema = {
|
|
|
6362
6364
|
{ title: "Right", const: "right" }
|
|
6363
6365
|
]
|
|
6364
6366
|
},
|
|
6367
|
+
maxWidth: {
|
|
6368
|
+
oneOf: [
|
|
6369
|
+
{ title: "Extra Small", const: "xs" },
|
|
6370
|
+
{ title: "Small", const: "sm" },
|
|
6371
|
+
{ title: "Medium", const: "md" },
|
|
6372
|
+
{ title: "Large", const: "lg" },
|
|
6373
|
+
{ title: "Extra Large", const: "xl" }
|
|
6374
|
+
]
|
|
6375
|
+
},
|
|
6365
6376
|
toolTipPosition: {
|
|
6366
6377
|
oneOf: [
|
|
6367
6378
|
{ title: "Top", const: "top" },
|
|
@@ -8289,12 +8300,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8289
8300
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8290
8301
|
];
|
|
8291
8302
|
break;
|
|
8303
|
+
case "PdfViewer":
|
|
8304
|
+
uiSchema.elements = [
|
|
8305
|
+
getInputField("scale", "Zoom"),
|
|
8306
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8307
|
+
];
|
|
8308
|
+
break;
|
|
8292
8309
|
case "Date":
|
|
8293
8310
|
uiSchema.elements = [
|
|
8294
8311
|
getSelectField("variant", "Variant"),
|
|
8295
8312
|
getInputField("toolTip", "Tooltip"),
|
|
8296
8313
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8297
|
-
emptyBox$1("
|
|
8314
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8298
8315
|
];
|
|
8299
8316
|
break;
|
|
8300
8317
|
case "DateTime":
|
|
@@ -8302,7 +8319,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8302
8319
|
getSelectField("variant", "Variant"),
|
|
8303
8320
|
getInputField("toolTip", "Tooltip"),
|
|
8304
8321
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8305
|
-
emptyBox$1("
|
|
8322
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8306
8323
|
];
|
|
8307
8324
|
break;
|
|
8308
8325
|
case "Thought":
|
|
@@ -8862,8 +8879,10 @@ const sectionLabels = {
|
|
|
8862
8879
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8863
8880
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8864
8881
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8865
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8882
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8866
8883
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8884
|
+
PdfViewer: ["Core", "Components", "Properties", "Style"],
|
|
8885
|
+
DualWrapper: ["Core", "Components", "Style"],
|
|
8867
8886
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8868
8887
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8869
8888
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -9447,7 +9466,9 @@ const EventSchema = {
|
|
|
9447
9466
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9448
9467
|
{ title: "Download", const: "onDownload" },
|
|
9449
9468
|
{ title: "Fail", const: "Fail" },
|
|
9450
|
-
{ title: "
|
|
9469
|
+
{ title: "onClose", const: "onClose" },
|
|
9470
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9471
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9451
9472
|
]
|
|
9452
9473
|
},
|
|
9453
9474
|
Handler: {
|
|
@@ -10833,6 +10854,25 @@ var service = (funcParams) => {
|
|
|
10833
10854
|
funcParams.store.setUiSchema(uiSchema);
|
|
10834
10855
|
});
|
|
10835
10856
|
},
|
|
10857
|
+
getStyle: () => {
|
|
10858
|
+
var _a, _b, _c, _d;
|
|
10859
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10860
|
+
if (cloneEventGroup.setStyle) {
|
|
10861
|
+
let finalResponse = {};
|
|
10862
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10863
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10864
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10865
|
+
finalResponse = executeEvents({
|
|
10866
|
+
...executeEventsParameters,
|
|
10867
|
+
config: eventConfig,
|
|
10868
|
+
componentName: path
|
|
10869
|
+
});
|
|
10870
|
+
}
|
|
10871
|
+
return finalResponse;
|
|
10872
|
+
}
|
|
10873
|
+
}
|
|
10874
|
+
return {};
|
|
10875
|
+
},
|
|
10836
10876
|
onCellRenderer: (cellParams) => {
|
|
10837
10877
|
var _a, _b, _c, _d, _e;
|
|
10838
10878
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10862,6 +10902,9 @@ var service = (funcParams) => {
|
|
|
10862
10902
|
onFileDelete: async function() {
|
|
10863
10903
|
this.callHandler("onFileDelete");
|
|
10864
10904
|
},
|
|
10905
|
+
onClose: function() {
|
|
10906
|
+
this.callHandler("onClose");
|
|
10907
|
+
},
|
|
10865
10908
|
onMount: function() {
|
|
10866
10909
|
this.callHandler("onMount");
|
|
10867
10910
|
},
|
|
@@ -12139,7 +12182,6 @@ const DateTime = {
|
|
|
12139
12182
|
const buildDate = (config2, componentScope2) => {
|
|
12140
12183
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12141
12184
|
dateInputField.config.main.label = config2.label;
|
|
12142
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12143
12185
|
dateInputField.scope = componentScope2;
|
|
12144
12186
|
if (config2.layout) {
|
|
12145
12187
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12161,7 +12203,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12161
12203
|
const buildDateTime = (config2, componentScope2) => {
|
|
12162
12204
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12163
12205
|
dateTimeInputField.config.main.label = config2.label;
|
|
12164
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12165
12206
|
dateTimeInputField.scope = componentScope2;
|
|
12166
12207
|
if (config2.layout) {
|
|
12167
12208
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12703,6 +12744,7 @@ const PopUP = {
|
|
|
12703
12744
|
},
|
|
12704
12745
|
main: {
|
|
12705
12746
|
label: "PopUp",
|
|
12747
|
+
onClose: "onClose",
|
|
12706
12748
|
fullScreen: false,
|
|
12707
12749
|
fullWidth: false,
|
|
12708
12750
|
maxWidth: false,
|
|
@@ -13161,6 +13203,58 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13161
13203
|
OTP.config.main.length = +config2.length;
|
|
13162
13204
|
return OTP;
|
|
13163
13205
|
};
|
|
13206
|
+
var pdfViewer = {
|
|
13207
|
+
type: "Control",
|
|
13208
|
+
scope: "#/properties/pdfviewer",
|
|
13209
|
+
options: {
|
|
13210
|
+
widget: "PdfViewer"
|
|
13211
|
+
},
|
|
13212
|
+
config: {
|
|
13213
|
+
layout: {
|
|
13214
|
+
xs: 12,
|
|
13215
|
+
sm: 12,
|
|
13216
|
+
md: 12,
|
|
13217
|
+
lg: 12
|
|
13218
|
+
},
|
|
13219
|
+
main: {
|
|
13220
|
+
title: "PDF"
|
|
13221
|
+
}
|
|
13222
|
+
}
|
|
13223
|
+
};
|
|
13224
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13225
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13226
|
+
PdfViewer.scope = componentScope2;
|
|
13227
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13228
|
+
if (config2.layout) {
|
|
13229
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13230
|
+
}
|
|
13231
|
+
if (config2.style) {
|
|
13232
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13233
|
+
}
|
|
13234
|
+
return PdfViewer;
|
|
13235
|
+
};
|
|
13236
|
+
var DualWrapper = {
|
|
13237
|
+
type: "Control",
|
|
13238
|
+
scope: "#/properties/dualWrapperPath",
|
|
13239
|
+
options: {
|
|
13240
|
+
widget: "DualWrapper"
|
|
13241
|
+
},
|
|
13242
|
+
config: {
|
|
13243
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13244
|
+
main: {}
|
|
13245
|
+
}
|
|
13246
|
+
};
|
|
13247
|
+
const buildDualWrapper = (config2, componentScope2, store2) => {
|
|
13248
|
+
const dualWrapper = _.cloneDeep(DualWrapper);
|
|
13249
|
+
dualWrapper.scope = componentScope2;
|
|
13250
|
+
if (config2.style) {
|
|
13251
|
+
dualWrapper.config.style = JSON.parse(config2.style);
|
|
13252
|
+
}
|
|
13253
|
+
if (config2.layout) {
|
|
13254
|
+
dualWrapper.config.layout = createLayoutFormat(config2.layout);
|
|
13255
|
+
}
|
|
13256
|
+
return dualWrapper;
|
|
13257
|
+
};
|
|
13164
13258
|
let schema = {
|
|
13165
13259
|
type: "object",
|
|
13166
13260
|
properties: {},
|
|
@@ -13391,6 +13485,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13391
13485
|
case "Camera":
|
|
13392
13486
|
elements = buildCamera(config2, componentScope2);
|
|
13393
13487
|
break;
|
|
13488
|
+
case "PdfViewer":
|
|
13489
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13490
|
+
break;
|
|
13491
|
+
case "DualWrapper":
|
|
13492
|
+
elements = buildDualWrapper(config2, componentScope2);
|
|
13493
|
+
break;
|
|
13394
13494
|
default:
|
|
13395
13495
|
schema = {
|
|
13396
13496
|
type: "object",
|