@wavemaker-ai/react-runtime 1.0.0-rc.309 → 1.0.0-rc.647469
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/actions/navigation-action.js +5 -23
- package/components/advanced/carousel/index.d.ts +0 -1
- package/components/advanced/carousel/index.js +1 -2
- package/components/advanced/carousel/template.d.ts +0 -1
- package/components/advanced/carousel/template.js +1 -2
- package/components/advanced/login/index.d.ts +0 -1
- package/components/advanced/marquee/index.d.ts +0 -1
- package/components/advanced/marquee/index.js +1 -2
- package/components/basic/anchor/index.d.ts +0 -1
- package/components/basic/anchor/index.js +3 -4
- package/components/basic/audio/index.d.ts +0 -1
- package/components/basic/audio/index.js +2 -3
- package/components/basic/html/index.d.ts +0 -1
- package/components/basic/icon/index.d.ts +0 -1
- package/components/basic/icon/index.js +7 -4
- package/components/basic/iframe/iframe.utils.d.ts +1 -1
- package/components/basic/iframe/iframe.utils.js +4 -8
- package/components/basic/iframe/index.d.ts +0 -1
- package/components/basic/label/index.d.ts +0 -1
- package/components/basic/label/index.js +2 -3
- package/components/basic/message/index.js +1 -1
- package/components/basic/picture/index.d.ts +0 -1
- package/components/basic/picture/index.js +4 -3
- package/components/basic/progress-bar/index.d.ts +0 -1
- package/components/basic/progress-bar/index.js +1 -2
- package/components/basic/progress-circle/index.d.ts +0 -1
- package/components/basic/richtexteditor/index.d.ts +0 -2
- package/components/basic/search/index.d.ts +0 -3
- package/components/basic/search/index.js +4 -7
- package/components/basic/search/props.d.ts +0 -2
- package/components/basic/spinner/index.d.ts +0 -1
- package/components/basic/tile/index.d.ts +0 -1
- package/components/basic/tile/index.js +1 -2
- package/components/basic/tree/Components/TreeNodeComponent.js +5 -9
- package/components/basic/tree/index.d.ts +0 -1
- package/components/basic/tree/index.js +3 -14
- package/components/basic/tree/utils.d.ts +0 -2
- package/components/basic/tree/utils.js +1 -11
- package/components/basic/video/index.d.ts +0 -1
- package/components/basic/video/index.js +23 -40
- package/components/chart/index.d.ts +0 -1
- package/components/common/AppSpinner.js +5 -2
- package/components/container/accordion/accordion-pane/index.d.ts +0 -1
- package/components/container/accordion/accordion-pane/index.js +4 -1
- package/components/container/accordion/index.d.ts +0 -1
- package/components/container/index.d.ts +0 -3
- package/components/container/index.js +1 -6
- package/components/container/layout-grid/grid-column/index.d.ts +0 -1
- package/components/container/layout-grid/grid-row/index.d.ts +0 -1
- package/components/container/layout-grid/index.d.ts +0 -1
- package/components/container/layout-grid/index.js +8 -4
- package/components/container/linear-layout/index.d.ts +0 -1
- package/components/container/linear-layout/linear-layout-item/index.d.ts +0 -1
- package/components/container/panel/components/panel-header/index.js +6 -11
- package/components/container/panel/components/panel-header/props.d.ts +0 -5
- package/components/container/panel/index.d.ts +0 -1
- package/components/container/panel/index.js +1 -2
- package/components/container/props.d.ts +0 -2
- package/components/container/repeat-template/index.d.ts +1 -22
- package/components/container/repeat-template/index.js +1 -2
- package/components/container/tabs/index.d.ts +1 -3
- package/components/container/tabs/index.js +51 -102
- package/components/container/tabs/props.d.ts +0 -12
- package/components/container/tabs/tab-pane/index.d.ts +0 -1
- package/components/container/tabs/tab-pane/index.js +11 -28
- package/components/container/wizard/index.d.ts +0 -2
- package/components/container/wizard/wizard-step/index.d.ts +0 -1
- package/components/container/wizard/wizard-step/index.js +2 -2
- package/components/data/card/card-actions/index.d.ts +0 -1
- package/components/data/card/card-actions/index.js +5 -3
- package/components/data/card/card-content/index.d.ts +0 -1
- package/components/data/card/card-content/index.js +13 -3
- package/components/data/card/card-footer/index.d.ts +0 -1
- package/components/data/card/card-footer/index.js +5 -3
- package/components/data/card/index.d.ts +0 -1
- package/components/data/card/index.js +14 -3
- package/components/data/form/dynamic-fields/index.js +1 -7
- package/components/data/form/dynamic-fields/props.d.ts +0 -1
- package/components/data/form/form-action/index.d.ts +0 -2
- package/components/data/form/form-body/index.js +1 -2
- package/components/data/form/form-field/base-field.js +3 -4
- package/components/data/form/form-footer/index.js +1 -2
- package/components/data/list/components/ListItemWithTemplate.js +2 -4
- package/components/data/list/hooks/props.d.ts +2 -2
- package/components/data/list/hooks/useListEventHandlers.js +6 -6
- package/components/data/list/index.d.ts +0 -2
- package/components/data/list/index.js +4 -3
- package/components/data/list/props.d.ts +1 -2
- package/components/data/list/utils/list-widget-methods.d.ts +1 -2
- package/components/data/table/components/RowCells.d.ts +2 -16
- package/components/data/table/components/RowCells.js +24 -38
- package/components/data/table/components/TableBody.js +3 -11
- package/components/data/table/components/TableDataRow.d.ts +0 -3
- package/components/data/table/components/TableDataRow.js +3 -11
- package/components/data/table/components/TableHeader.js +4 -1
- package/components/data/table/hooks/index.d.ts +0 -1
- package/components/data/table/hooks/index.js +0 -12
- package/components/data/table/hooks/useDynamicColumns.js +1 -1
- package/components/data/table/hooks/useResponsiveColumns.d.ts +0 -1
- package/components/data/table/hooks/useRowSelection.d.ts +1 -1
- package/components/data/table/hooks/useRowSelection.js +5 -26
- package/components/data/table/hooks/useTableInitialization.js +1 -2
- package/components/data/table/index.d.ts +0 -4
- package/components/data/table/index.js +12 -77
- package/components/data/table/live-table/index.d.ts +0 -1
- package/components/data/table/props.d.ts +0 -7
- package/components/data/table/table-action/index.d.ts +0 -1
- package/components/data/table/table-column/index.d.ts +0 -1
- package/components/data/table/table-row/index.d.ts +0 -1
- package/components/data/table/table-row-action/index.d.ts +0 -1
- package/components/data/table/utils/buildSelectionColumns.js +1 -7
- package/components/data/table/utils/columnBuilder.js +1 -1
- package/components/data/table/utils/index.js +2 -2
- package/components/data/table/utils/renderDisplayCell.js +1 -1
- package/components/dialogs/alert-dialog/index.d.ts +0 -2
- package/components/dialogs/confirm-dialog/index.d.ts +0 -2
- package/components/dialogs/dialog/index.d.ts +0 -2
- package/components/dialogs/dialog/index.js +4 -2
- package/components/dialogs/dialog-actions/index.d.ts +0 -1
- package/components/dialogs/dialog-body/index.d.ts +0 -1
- package/components/dialogs/dialog-content/index.d.ts +0 -1
- package/components/dialogs/dialog-header/index.d.ts +0 -1
- package/components/dialogs/iframe-dialog/index.d.ts +0 -2
- package/components/dialogs/login-dialog/index.d.ts +0 -2
- package/components/dialogs/page-dialog/index.d.ts +0 -2
- package/components/form/button/index.d.ts +0 -1
- package/components/form/button/index.js +3 -4
- package/components/form/button-group/index.d.ts +0 -1
- package/components/form/button-group/index.js +1 -2
- package/components/input/calendar/index.d.ts +0 -2
- package/components/input/chips/index.d.ts +0 -2
- package/components/input/color-picker/index.d.ts +0 -2
- package/components/input/composite/index.d.ts +0 -1
- package/components/input/currency/index.d.ts +0 -2
- package/components/input/default/checkbox/index.d.ts +0 -2
- package/components/input/default/checkboxset/index.d.ts +0 -2
- package/components/input/default/radioset/index.d.ts +0 -2
- package/components/input/default/switch/index.d.ts +0 -2
- package/components/input/epoch/date/components/DatePickerPopover.js +29 -11
- package/components/input/epoch/date/index.d.ts +0 -1
- package/components/input/epoch/datetime/index.d.ts +0 -1
- package/components/input/epoch/datetime/index.js +25 -10
- package/components/input/epoch/datetime/styled.d.ts +78 -0
- package/components/input/epoch/datetime/styled.js +90 -0
- package/components/input/epoch/time/index.d.ts +0 -1
- package/components/input/epoch/time/index.js +1 -1
- package/components/input/epoch/time/utils.d.ts +17 -0
- package/components/input/epoch/time/utils.js +18 -1
- package/components/input/fileupload/index.d.ts +0 -1
- package/components/input/number/index.d.ts +0 -2
- package/components/input/rating/index.d.ts +0 -2
- package/components/input/rating/index.js +17 -14
- package/components/input/select/index.d.ts +0 -2
- package/components/input/select/index.js +4 -1
- package/components/input/slider/index.d.ts +0 -2
- package/components/input/slider/index.js +12 -13
- package/components/input/text/index.d.ts +0 -2
- package/components/input/text/index.js +14 -3
- package/components/input/textarea/index.d.ts +0 -2
- package/components/input/textarea/index.js +10 -7
- package/components/input/upload/index.d.ts +0 -2
- package/components/input/upload/index.js +5 -3
- package/components/layout/footer/index.js +1 -2
- package/components/layout/footer/props.d.ts +0 -1
- package/components/layout/header/index.js +1 -2
- package/components/layout/header/props.d.ts +0 -1
- package/components/layout/leftnav/index.js +1 -2
- package/components/layout/leftnav/props.d.ts +0 -1
- package/components/layout/rightnav/index.js +1 -2
- package/components/layout/rightnav/props.d.ts +0 -1
- package/components/layout/topnav/index.js +1 -2
- package/components/layout/topnav/props.d.ts +0 -1
- package/components/navbar/index.d.ts +0 -1
- package/components/navbar/index.js +1 -2
- package/components/navbar/nav/index.d.ts +0 -1
- package/components/navbar/nav-item/index.d.ts +0 -1
- package/components/navbar/nav-item/index.js +1 -2
- package/components/navigation/breadcrumb/index.d.ts +0 -1
- package/components/navigation/menu/index.d.ts +0 -1
- package/components/navigation/menu/index.js +4 -5
- package/components/navigation/popover/index.d.ts +1 -2
- package/components/navigation/popover/index.js +1 -1
- package/components/page/error-boundary/index.js +5 -5
- package/components/page/index.js +9 -13
- package/components/page/partial/index.d.ts +0 -1
- package/components/prefab/container/index.js +1 -2
- package/context/WidgetProvider.js +2 -2
- package/core/app.service.js +35 -40
- package/core/constants/events.js +0 -6
- package/core/constants/index.d.ts +1 -9
- package/core/constants/index.js +5 -32
- package/core/formatter/date-formatters.d.ts +1 -1
- package/core/formatter/date-formatters.js +13 -38
- package/core/formatter/types.d.ts +1 -1
- package/core/proxy-service.js +5 -15
- package/core/util/index.js +2 -3
- package/higherOrder/BaseApp.js +2 -2
- package/higherOrder/BasePage.d.ts +17 -0
- package/higherOrder/BasePage.js +104 -53
- package/higherOrder/BasePrefab.js +59 -69
- package/higherOrder/props.d.ts +0 -1
- package/higherOrder/withBaseWrapper.js +4 -3
- package/hooks/useAccess.js +0 -13
- package/mui-config/theme.js +4 -1
- package/package-lock.json +605 -2630
- package/package.json +4 -23
- package/store/middleware/navigationMiddleware.js +1 -1
- package/store/slices/appConfigSlice.js +8 -10
- package/store/slices/authSlice.js +32 -46
- package/tsconfig.declaration.tsbuildinfo +1 -1
- package/types/index.d.ts +0 -1
- package/utils/attr.js +14 -71
- package/utils/lib-error-skipper.d.ts +26 -4
- package/utils/lib-error-skipper.js +165 -41
- package/utils/style-utils.d.ts +0 -6
- package/utils/style-utils.js +1 -10
- package/variables/metadata.service.js +3 -2
- package/variables/model-variable.js +7 -10
- package/variables/service-variable.d.ts +0 -1
- package/variables/service-variable.js +6 -26
- package/actions/base-action.d.ts +0 -7
- package/actions/login-action.d.ts +0 -11
- package/actions/logout-action.d.ts +0 -10
- package/actions/navigation-action.d.ts +0 -35
- package/actions/notification-action.d.ts +0 -20
- package/actions/timer-action.d.ts +0 -27
- package/components/data/table/hooks/useCustomExpressionColumns.d.ts +0 -16
- package/components/data/table/hooks/useCustomExpressionColumns.js +0 -88
- package/core/security.service.d.ts +0 -12
- package/mui-config/theme-provider.d.ts +0 -3
- package/mui-config/theme.d.ts +0 -2
- package/runtime-dynamic/App.d.ts +0 -7
- package/runtime-dynamic/App.js +0 -144
- package/runtime-dynamic/app-initializer.d.ts +0 -15
- package/runtime-dynamic/app-initializer.js +0 -447
- package/runtime-dynamic/components/ErrorBoundary.d.ts +0 -18
- package/runtime-dynamic/components/ErrorBoundary.js +0 -93
- package/runtime-dynamic/components/PageWrapper.d.ts +0 -1
- package/runtime-dynamic/components/PageWrapper.js +0 -43
- package/runtime-dynamic/components/PrefabPreview.d.ts +0 -1
- package/runtime-dynamic/components/PrefabPreview.js +0 -84
- package/runtime-dynamic/components/partial-content.d.ts +0 -15
- package/runtime-dynamic/components/partial-content.js +0 -50
- package/runtime-dynamic/components/prefab-content.d.ts +0 -10
- package/runtime-dynamic/components/prefab-content.js +0 -31
- package/runtime-dynamic/components/use-dynamic-component.d.ts +0 -10
- package/runtime-dynamic/components/use-dynamic-component.js +0 -165
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +0 -8
- package/runtime-dynamic/factories/build-base-page-like-component.js +0 -59
- package/runtime-dynamic/factories/prefab-factory.d.ts +0 -3
- package/runtime-dynamic/factories/prefab-factory.js +0 -82
- package/runtime-dynamic/factories/startup-info.d.ts +0 -6
- package/runtime-dynamic/factories/startup-info.js +0 -28
- package/runtime-dynamic/factories/utils.d.ts +0 -23
- package/runtime-dynamic/factories/utils.js +0 -131
- package/runtime-dynamic/index.d.ts +0 -14
- package/runtime-dynamic/index.js +0 -191
- package/runtime-dynamic/main.d.ts +0 -2
- package/runtime-dynamic/main.js +0 -84
- package/runtime-dynamic/preview-mode.d.ts +0 -15
- package/runtime-dynamic/preview-mode.js +0 -31
- package/runtime-dynamic/preview-navigation.d.ts +0 -6
- package/runtime-dynamic/preview-navigation.js +0 -38
- package/runtime-dynamic/preview-resource-base.d.ts +0 -12
- package/runtime-dynamic/preview-resource-base.js +0 -65
- package/runtime-dynamic/registry/component-registry.d.ts +0 -3
- package/runtime-dynamic/registry/component-registry.js +0 -353
- package/runtime-dynamic/registry/custom-widget-registry.d.ts +0 -7
- package/runtime-dynamic/registry/custom-widget-registry.js +0 -18
- package/runtime-dynamic/registry/index.d.ts +0 -2
- package/runtime-dynamic/registry/index.js +0 -63
- package/runtime-dynamic/registry/store.d.ts +0 -9
- package/runtime-dynamic/registry/store.js +0 -26
- package/runtime-dynamic/routes.d.ts +0 -2
- package/runtime-dynamic/routes.js +0 -107
- package/runtime-dynamic/services/app-extension-provider.d.ts +0 -1
- package/runtime-dynamic/services/app-extension-provider.js +0 -45
- package/runtime-dynamic/services/cache.d.ts +0 -29
- package/runtime-dynamic/services/cache.js +0 -57
- package/runtime-dynamic/services/component-ref-provider.d.ts +0 -12
- package/runtime-dynamic/services/component-ref-provider.js +0 -149
- package/runtime-dynamic/services/css-scoping.d.ts +0 -2
- package/runtime-dynamic/services/css-scoping.js +0 -53
- package/runtime-dynamic/services/fragment-url.d.ts +0 -16
- package/runtime-dynamic/services/fragment-url.js +0 -74
- package/runtime-dynamic/services/index.d.ts +0 -10
- package/runtime-dynamic/services/index.js +0 -152
- package/runtime-dynamic/services/markup-transpiler.d.ts +0 -12
- package/runtime-dynamic/services/markup-transpiler.js +0 -250
- package/runtime-dynamic/services/prefab-resources.d.ts +0 -18
- package/runtime-dynamic/services/prefab-resources.js +0 -159
- package/runtime-dynamic/services/resource-manager.d.ts +0 -2
- package/runtime-dynamic/services/resource-manager.js +0 -66
- package/runtime-dynamic/services/script-executor.d.ts +0 -8
- package/runtime-dynamic/services/script-executor.js +0 -90
- package/runtime-dynamic/services/variable-factory.d.ts +0 -2
- package/runtime-dynamic/services/variable-factory.js +0 -260
- package/runtime-dynamic/services/variable-registry.d.ts +0 -12
- package/runtime-dynamic/services/variable-registry.js +0 -118
- package/runtime-dynamic/services/variable-transpiler.d.ts +0 -5
- package/runtime-dynamic/services/variable-transpiler.js +0 -159
- package/runtime-dynamic/shims/next-image.d.ts +0 -35
- package/runtime-dynamic/shims/next-image.js +0 -60
- package/runtime-dynamic/shims/next-link.d.ts +0 -25
- package/runtime-dynamic/shims/next-link.js +0 -33
- package/runtime-dynamic/shims/next-navigation.d.ts +0 -16
- package/runtime-dynamic/shims/next-navigation.js +0 -52
- package/runtime-dynamic/utils/index.d.ts +0 -9
- package/runtime-dynamic/utils/index.js +0 -40
- package/utils/custom-expression/index.d.ts +0 -43
- package/utils/custom-expression/index.js +0 -161
- package/utils/custom-expression/parser.d.ts +0 -15
- package/utils/custom-expression/parser.js +0 -208
- package/utils/layoutsize-util.d.ts +0 -1
- package/utils/layoutsize-util.js +0 -57
|
@@ -228,7 +228,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
228
228
|
var trimTrailingSlash = function trimTrailingSlash(path) {
|
|
229
229
|
return path.replace(/\/$/, "") || "/";
|
|
230
230
|
};
|
|
231
|
-
var basePath = "/".concat(
|
|
231
|
+
var basePath = "/".concat(_constants.ROUTING_BASEPATH);
|
|
232
232
|
var currentPathname = this.getAppRelativePath(trimTrailingSlash(window.location.pathname), basePath);
|
|
233
233
|
if (!currentPathname.startsWith(basePath)) {
|
|
234
234
|
return null;
|
|
@@ -259,6 +259,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
259
259
|
}, {
|
|
260
260
|
key: "resolveQueryParams",
|
|
261
261
|
value: function resolveQueryParams(pageName, params) {
|
|
262
|
+
var _pageQueryParamHistor2;
|
|
262
263
|
var normalizedPageName = this.normalizePageName(pageName);
|
|
263
264
|
var explicitQueryParams = Object.fromEntries(Object.entries(params || {}).filter(function (_ref) {
|
|
264
265
|
var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
|
|
@@ -271,26 +272,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
271
272
|
value = _ref4[1];
|
|
272
273
|
return [key, String(value)];
|
|
273
274
|
}));
|
|
274
|
-
var
|
|
275
|
-
var queryParams;
|
|
276
|
-
if (isPreview) {
|
|
277
|
-
// Preview: explicit > per-page history > current URL (e.g. wm_state) across navigations
|
|
278
|
-
if (Object.keys(explicitQueryParams).length > 0) {
|
|
279
|
-
queryParams = explicitQueryParams;
|
|
280
|
-
} else {
|
|
281
|
-
var historyParams = pageQueryParamHistory.get(normalizedPageName);
|
|
282
|
-
if (historyParams && Object.keys(historyParams).length > 0) {
|
|
283
|
-
queryParams = historyParams;
|
|
284
|
-
} else {
|
|
285
|
-
var currentPageInfo = this.getCurrentPageInfo();
|
|
286
|
-
queryParams = currentPageInfo && Object.keys(currentPageInfo.queryParams).length > 0 ? currentPageInfo.queryParams : {};
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
} else {
|
|
290
|
-
var _pageQueryParamHistor2;
|
|
291
|
-
// Production: explicit > per-page history only
|
|
292
|
-
queryParams = Object.keys(explicitQueryParams).length > 0 ? explicitQueryParams : (_pageQueryParamHistor2 = pageQueryParamHistory.get(normalizedPageName)) !== null && _pageQueryParamHistor2 !== void 0 ? _pageQueryParamHistor2 : {};
|
|
293
|
-
}
|
|
275
|
+
var queryParams = Object.keys(explicitQueryParams).length > 0 ? explicitQueryParams : (_pageQueryParamHistor2 = pageQueryParamHistory.get(normalizedPageName)) !== null && _pageQueryParamHistor2 !== void 0 ? _pageQueryParamHistor2 : {};
|
|
294
276
|
this.rememberPageQueryParams(normalizedPageName, queryParams);
|
|
295
277
|
return {
|
|
296
278
|
pageName: normalizedPageName,
|
|
@@ -311,7 +293,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
311
293
|
var trimTrailingSlash = function trimTrailingSlash(p) {
|
|
312
294
|
return p.replace(/\/$/, "") || "/";
|
|
313
295
|
};
|
|
314
|
-
var basePath = "/".concat(
|
|
296
|
+
var basePath = "/".concat(_constants.ROUTING_BASEPATH);
|
|
315
297
|
var rawCurrentPathname = trimTrailingSlash(window.location.pathname);
|
|
316
298
|
var currentSearch = window.location.search || "";
|
|
317
299
|
var rawTargetPathNorm = trimTrailingSlash(targetPath);
|
|
@@ -361,7 +343,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
361
343
|
|
|
362
344
|
// Construct full path with optional query string
|
|
363
345
|
var fullPath = queryString ? "/".concat(cleanPageName, "?").concat(queryString) : "/".concat(cleanPageName);
|
|
364
|
-
var targetPath = "/".concat(
|
|
346
|
+
var targetPath = "/".concat(_constants.ROUTING_BASEPATH).concat(fullPath);
|
|
365
347
|
var targetPathname = targetPath.split("?")[0];
|
|
366
348
|
var targetSearch = queryString ? "?".concat(queryString) : "";
|
|
367
349
|
|
|
@@ -47,7 +47,6 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
51
50
|
hint?: string;
|
|
52
51
|
arialabel?: string;
|
|
53
52
|
tabindex?: number;
|
|
@@ -16,7 +16,6 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
var _isPlainObject = _interopRequireDefault(require("lodash-es/isPlainObject"));
|
|
18
18
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
19
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
20
19
|
var _excluded = ["name", "animation", "animationinterval", "controls", "nodatamessage", "height", "width", "children", "className", "styles", "render", "onChange"];
|
|
21
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
22
21
|
var __jsx = _react["default"].createElement;
|
|
@@ -436,7 +435,7 @@ var WmCarousel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
436
435
|
role: "region",
|
|
437
436
|
"aria-label": props.arialabel || "Carousel",
|
|
438
437
|
"aria-live": animation === "auto" ? "polite" : "off"
|
|
439
|
-
},
|
|
438
|
+
}, rest), __jsx("div", {
|
|
440
439
|
className: "carousel slide",
|
|
441
440
|
style: _objectSpread({}, styles)
|
|
442
441
|
}, __jsx("div", {
|
|
@@ -46,7 +46,6 @@ declare const _default: React.ComponentType<{
|
|
|
46
46
|
eventCallback?: (eventName: string, data: any) => void;
|
|
47
47
|
forwardedRef?: React.ForwardedRef<any>;
|
|
48
48
|
viewParent?: any;
|
|
49
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
50
49
|
hint?: string;
|
|
51
50
|
arialabel?: string;
|
|
52
51
|
tabindex?: number;
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["name", "horizontalalign", "children", "className", "styles", "item", "index"];
|
|
18
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
19
18
|
var __jsx = _react["default"].createElement;
|
|
@@ -58,7 +57,7 @@ var WmCarouselTemplate = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
58
57
|
display: "flex",
|
|
59
58
|
alignItems: "center"
|
|
60
59
|
}, getAlignmentStyles()), styles)
|
|
61
|
-
},
|
|
60
|
+
}, rest), children);
|
|
62
61
|
}, function (prevProps, nextProps) {
|
|
63
62
|
// Custom comparison for memoization
|
|
64
63
|
var keysToCompare = ["horizontalalign", "children", "className", "styles", "item", "index"];
|
|
@@ -50,7 +50,6 @@ declare const _default: React.ComponentType<{
|
|
|
50
50
|
eventCallback?: (eventName: string, data: any) => void;
|
|
51
51
|
forwardedRef?: React.ForwardedRef<any>;
|
|
52
52
|
viewParent?: any;
|
|
53
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
54
53
|
hint?: string;
|
|
55
54
|
arialabel?: string;
|
|
56
55
|
tabindex?: number;
|
|
@@ -42,7 +42,6 @@ declare const _default: React.ComponentType<{
|
|
|
42
42
|
eventCallback?: (eventName: string, data: any) => void;
|
|
43
43
|
forwardedRef?: React.ForwardedRef<any>;
|
|
44
44
|
viewParent?: any;
|
|
45
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
46
45
|
hint?: string;
|
|
47
46
|
arialabel?: string;
|
|
48
47
|
tabindex?: number;
|
|
@@ -14,7 +14,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
16
16
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
17
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
18
17
|
var _excluded = ["direction", "scrollamount", "scrolldelay", "className", "styles", "children", "id"];
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
20
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -145,7 +144,7 @@ var WmMarquee = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
145
144
|
onClick: handleClick,
|
|
146
145
|
onMouseEnter: handleMouseEnter,
|
|
147
146
|
onMouseLeave: handleMouseLeave
|
|
148
|
-
},
|
|
147
|
+
}, restProps), __jsx(_Box["default"], {
|
|
149
148
|
component: "div",
|
|
150
149
|
sx: contentStyles
|
|
151
150
|
}, children)));
|
|
@@ -57,7 +57,6 @@ declare const _default: import("react").ComponentType<{
|
|
|
57
57
|
eventCallback?: (eventName: string, data: any) => void;
|
|
58
58
|
forwardedRef?: React.ForwardedRef<any>;
|
|
59
59
|
viewParent?: any;
|
|
60
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
61
60
|
hint?: string;
|
|
62
61
|
arialabel?: string;
|
|
63
62
|
tabindex?: number;
|
|
@@ -17,7 +17,6 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
17
17
|
var _Link = _interopRequireDefault(require("@mui/material/Link"));
|
|
18
18
|
var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
|
|
19
19
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
20
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
21
20
|
var _utils = require("../../../core/util/utils");
|
|
22
21
|
var _excluded = ["caption", "iconclass", "styles", "className", "iconheight", "iconwidth", "iconmargin", "iconurl", "iconposition", "badgevalue", "listener", "hyperlink", "encodeurl", "onClick", "shortcutkey", "arialabel", "target", "itemLink", "href"];
|
|
23
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
@@ -32,7 +31,7 @@ var getCurrentPageName = function getCurrentPageName(pathname) {
|
|
|
32
31
|
return segments[segments.length - 1];
|
|
33
32
|
};
|
|
34
33
|
var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
35
|
-
var _listener$appLocale;
|
|
34
|
+
var _props$variant, _listener$appLocale;
|
|
36
35
|
var _props$caption = props.caption,
|
|
37
36
|
caption = _props$caption === void 0 ? "Link" : _props$caption,
|
|
38
37
|
iconclass = props.iconclass,
|
|
@@ -196,7 +195,7 @@ var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
|
196
195
|
caption: caption,
|
|
197
196
|
role: "link",
|
|
198
197
|
tabIndex: props.tabindex,
|
|
199
|
-
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-anchor-link", (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, className || "", Boolean(className)), "active", isActive), "wm-anchor-icon-left", iconposition === "left"), "wm-anchor-icon-top", iconposition === "top"), "wm-anchor-icon-right", iconposition === "right")),
|
|
198
|
+
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-anchor-link", (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, className || "", Boolean(className)), "active", isActive), ((_props$variant = props.variant) === null || _props$variant === void 0 ? void 0 : _props$variant.replace(":", "-")) || "", Boolean(props.variant)), "wm-anchor-icon-left", iconposition === "left"), "wm-anchor-icon-top", iconposition === "top"), "wm-anchor-icon-right", iconposition === "right")),
|
|
200
199
|
onContextMenu: handleContextMenu,
|
|
201
200
|
accessKey: shortcutkey,
|
|
202
201
|
"aria-label": arialabel || (badgevalue && caption ? "".concat(caption, " ").concat(badgevalue) : caption) || null,
|
|
@@ -204,7 +203,7 @@ var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
|
204
203
|
target: target,
|
|
205
204
|
title: props.hint,
|
|
206
205
|
"data-identifier": "anchor"
|
|
207
|
-
},
|
|
206
|
+
}, restProps, {
|
|
208
207
|
name: props.name
|
|
209
208
|
}), iconurl && __jsx(_image["default"], {
|
|
210
209
|
alt: "Image",
|
|
@@ -47,7 +47,6 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
51
50
|
hint?: string;
|
|
52
51
|
arialabel?: string;
|
|
53
52
|
tabindex?: number;
|
|
@@ -13,7 +13,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
14
14
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
15
15
|
var _resourceUrl = require("@wavemaker-ai/react-runtime/utils/resource-url");
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["mp3format", "prefabName", "muted", "controls", "loop", "audiopreload", "audiosupportmessage", "autoplay", "hint", "arialabel", "tabindex", "styles", "className"];
|
|
18
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
19
18
|
var __jsx = _react["default"].createElement;
|
|
@@ -43,9 +42,9 @@ var WmAudio = exports.WmAudio = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
43
42
|
tabIndex: tabindex,
|
|
44
43
|
sx: styles,
|
|
45
44
|
style: styles
|
|
46
|
-
},
|
|
45
|
+
}, restProps), __jsx("audio", {
|
|
47
46
|
title: hint,
|
|
48
|
-
src: computedSrc
|
|
47
|
+
src: computedSrc,
|
|
49
48
|
muted: muted,
|
|
50
49
|
controls: controls,
|
|
51
50
|
loop: loop,
|
|
@@ -43,7 +43,6 @@ declare const _default: React.ComponentType<{
|
|
|
43
43
|
eventCallback?: (eventName: string, data: any) => void;
|
|
44
44
|
forwardedRef?: React.ForwardedRef<any>;
|
|
45
45
|
viewParent?: any;
|
|
46
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
47
46
|
hint?: string;
|
|
48
47
|
arialabel?: string;
|
|
49
48
|
tabindex?: number;
|
|
@@ -44,7 +44,6 @@ declare const _default: React.ComponentType<{
|
|
|
44
44
|
eventCallback?: (eventName: string, data: any) => void;
|
|
45
45
|
forwardedRef?: React.ForwardedRef<any>;
|
|
46
46
|
viewParent?: any;
|
|
47
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
48
47
|
hint?: string;
|
|
49
48
|
arialabel?: string;
|
|
50
49
|
tabindex?: number;
|
|
@@ -20,6 +20,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var DEFAULT_CLASS = "app-icon-wrapper";
|
|
22
22
|
var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
23
|
+
var _props$variant;
|
|
23
24
|
var name = props.name,
|
|
24
25
|
listener = props.listener,
|
|
25
26
|
caption = props.caption,
|
|
@@ -47,14 +48,16 @@ var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
47
48
|
}
|
|
48
49
|
return rootStyle;
|
|
49
50
|
}, [styles, iconsize]);
|
|
51
|
+
var variant = (_props$variant = props.variant) === null || _props$variant === void 0 ? void 0 : _props$variant.replace(":", "-");
|
|
50
52
|
return __jsx(_Box["default"], {
|
|
51
|
-
className: (0, _clsx["default"])(DEFAULT_CLASS, "wm-icon-root", iconposition === "right" && "wm-icon-pos-right", className),
|
|
53
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, "wm-icon-root", iconposition === "right" && "wm-icon-pos-right", className, variant),
|
|
52
54
|
component: "span",
|
|
53
55
|
style: wrapperStyle,
|
|
54
56
|
"aria-label": arialabel,
|
|
55
57
|
id: id,
|
|
56
58
|
"data-icon-position": iconposition,
|
|
57
|
-
hidden: props.hidden
|
|
59
|
+
hidden: props.hidden,
|
|
60
|
+
variant: variant
|
|
58
61
|
}, __jsx(_Box["default"], {
|
|
59
62
|
component: "span",
|
|
60
63
|
className: "sr-only"
|
|
@@ -62,12 +65,12 @@ var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
62
65
|
"data-identifier": "img",
|
|
63
66
|
alt: "Image",
|
|
64
67
|
src: computedIconUrl,
|
|
65
|
-
className: (0, _clsx["default"])("anchor-image-icon", "wm-icon-media", iconclass),
|
|
68
|
+
className: (0, _clsx["default"])("anchor-image-icon", "wm-icon-media", iconclass, variant),
|
|
66
69
|
"aria-hidden": "true",
|
|
67
70
|
width: parseInt(iconsize || "24", 10),
|
|
68
71
|
height: parseInt(iconsize || "24", 10)
|
|
69
72
|
}) : __jsx("i", {
|
|
70
|
-
className: (0, _clsx["default"])("app-icon", "wm-icon-media", iconclass),
|
|
73
|
+
className: (0, _clsx["default"])("app-icon", "wm-icon-media", iconclass, variant),
|
|
71
74
|
"aria-hidden": "true"
|
|
72
75
|
}), caption && __jsx(_label["default"], {
|
|
73
76
|
listener: listener,
|
|
@@ -3,15 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.needsEncoding = void 0;
|
|
7
|
-
Object.defineProperty(exports, "toCssLength", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _styleUtils.toCssLength;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _styleUtils = require("@wavemaker-ai/react-runtime/utils/style-utils");
|
|
6
|
+
exports.toCssLength = exports.needsEncoding = void 0;
|
|
14
7
|
var needsEncoding = exports.needsEncoding = function needsEncoding(url) {
|
|
15
8
|
// Matches anything not in the safe character set
|
|
16
9
|
return /[^A-Za-z0-9\-._~:/?#\[\]@!$&'()*+,;=%]/.test(url);
|
|
10
|
+
};
|
|
11
|
+
var toCssLength = exports.toCssLength = function toCssLength(value) {
|
|
12
|
+
return typeof value === "number" ? "".concat(value, "px") : String(value);
|
|
17
13
|
};
|
|
@@ -40,7 +40,6 @@ declare const _default: React.ComponentType<{
|
|
|
40
40
|
eventCallback?: (eventName: string, data: any) => void;
|
|
41
41
|
forwardedRef?: React.ForwardedRef<any>;
|
|
42
42
|
viewParent?: any;
|
|
43
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
44
43
|
hint?: string;
|
|
45
44
|
arialabel?: string;
|
|
46
45
|
tabindex?: number;
|
|
@@ -46,7 +46,6 @@ declare const _default: React.ComponentType<{
|
|
|
46
46
|
eventCallback?: (eventName: string, data: any) => void;
|
|
47
47
|
forwardedRef?: React.ForwardedRef<any>;
|
|
48
48
|
viewParent?: any;
|
|
49
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
50
49
|
hint?: string;
|
|
51
50
|
arialabel?: string;
|
|
52
51
|
tabindex?: number;
|
|
@@ -14,7 +14,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _dompurify = _interopRequireDefault(require("dompurify"));
|
|
15
15
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
16
16
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
17
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
18
17
|
var _excluded = ["required", "trustAs", "type", "styles", "className", "caption", "hint", "name", "htmlFor", "onClick", "listener", "variant", "viewParent"];
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
20
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -99,7 +98,7 @@ var WmLabel = exports.WmLabel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
99
98
|
dangerouslySetInnerHTML: {
|
|
100
99
|
__html: sanitizedContent
|
|
101
100
|
}
|
|
102
|
-
},
|
|
101
|
+
}, rest, {
|
|
103
102
|
onClick: handleOnClick
|
|
104
103
|
}));
|
|
105
104
|
}
|
|
@@ -113,7 +112,7 @@ var WmLabel = exports.WmLabel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
113
112
|
variant: variant,
|
|
114
113
|
caption: captionString,
|
|
115
114
|
hidden: (_props$hidden = props.hidden) !== null && _props$hidden !== void 0 ? _props$hidden : false
|
|
116
|
-
},
|
|
115
|
+
}, rest, {
|
|
117
116
|
onClick: handleOnClick
|
|
118
117
|
}), parts.map(function (part, index) {
|
|
119
118
|
return part.link ? __jsx("a", {
|
|
@@ -65,7 +65,7 @@ var WmMessage = exports.WmMessageWithoutWrapper = /*#__PURE__*/(0, _react.memo)(
|
|
|
65
65
|
hidden: props.hidden,
|
|
66
66
|
component: "div",
|
|
67
67
|
style: styles,
|
|
68
|
-
className: (0, _clsx["default"])(DEFAULT_CLS, messageClass, animation ? "animated ".concat(animation) : "", className),
|
|
68
|
+
className: (0, _clsx["default"])(DEFAULT_CLS, messageClass, animation ? "animated ".concat(animation) : "", className, [variant.replace(":", "-") || ""]),
|
|
69
69
|
title: caption
|
|
70
70
|
}, __jsx(_Box["default"], {
|
|
71
71
|
component: "i",
|
|
@@ -50,7 +50,6 @@ declare const _default: React.ComponentType<{
|
|
|
50
50
|
eventCallback?: (eventName: string, data: any) => void;
|
|
51
51
|
forwardedRef?: React.ForwardedRef<any>;
|
|
52
52
|
viewParent?: any;
|
|
53
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
54
53
|
hint?: string;
|
|
55
54
|
arialabel?: string;
|
|
56
55
|
tabindex?: number;
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _clsx2 = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
15
15
|
var _resourceUrl = require("@wavemaker-ai/react-runtime/utils/resource-url");
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["pictureaspect", "resizemode", "pictureplaceholder", "tabindex", "onLoad", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave", "children", "show", "ref"];
|
|
18
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
19
18
|
var __jsx = _react["default"].createElement;
|
|
@@ -24,6 +23,7 @@ function objectFitClassToken(resizemode) {
|
|
|
24
23
|
return OBJECT_FIT_MODES.includes(raw) ? raw : "cover";
|
|
25
24
|
}
|
|
26
25
|
var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
26
|
+
var _props$variant;
|
|
27
27
|
var _props$pictureaspect = props.pictureaspect,
|
|
28
28
|
pictureaspect = _props$pictureaspect === void 0 ? "None" : _props$pictureaspect,
|
|
29
29
|
_props$resizemode = props.resizemode,
|
|
@@ -92,7 +92,7 @@ var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
92
92
|
var onMouseLeaveHandler = function onMouseLeaveHandler(event) {
|
|
93
93
|
onMouseLeave && onMouseLeave(event, props);
|
|
94
94
|
};
|
|
95
|
-
return __jsx(_react["default"].Fragment, null, __jsx("img", (0, _extends2["default"])({},
|
|
95
|
+
return __jsx(_react["default"].Fragment, null, __jsx("img", (0, _extends2["default"])({}, restProps, {
|
|
96
96
|
ref: ref,
|
|
97
97
|
"data-identifier": "img",
|
|
98
98
|
title: props.hint || props.name,
|
|
@@ -102,7 +102,8 @@ var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
102
102
|
onMouseLeave: onMouseLeaveHandler,
|
|
103
103
|
src: imgSource || pictureplaceholder,
|
|
104
104
|
alt: props.alttext || "image alt text not provided",
|
|
105
|
-
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-picture-object-fit-".concat(objectFitClassToken(resizemode)), (0, _defineProperty2["default"])({}, "img-".concat(props.shape), props.shape), props.className),
|
|
105
|
+
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-picture-object-fit-".concat(objectFitClassToken(resizemode)), (0, _defineProperty2["default"])({}, "img-".concat(props.shape), props.shape), props.className, (_props$variant = props.variant) === null || _props$variant === void 0 ? void 0 : _props$variant.replace(":", "-")),
|
|
106
|
+
variant: props.variant,
|
|
106
107
|
style: props.styles,
|
|
107
108
|
height: imageHeight,
|
|
108
109
|
width: imageWidth,
|
|
@@ -47,7 +47,6 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
51
50
|
hint?: string;
|
|
52
51
|
arialabel?: string;
|
|
53
52
|
tabindex?: number;
|
|
@@ -17,7 +17,6 @@ var _props = require("@wavemaker-ai/react-runtime/components/basic/progress-bar/
|
|
|
17
17
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
18
18
|
var _formatUtil = require("@wavemaker-ai/react-runtime/utils/format-util");
|
|
19
19
|
var _constants = require("@wavemaker-ai/react-runtime/components/constants");
|
|
20
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
21
20
|
var _excluded = ["type", "datavalue", "minvalue", "maxvalue", "captionplacement", "tabindex", "arialabel", "dataset", "displayformat", "styles", "className", "hint", "height", "width", "listener", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave"];
|
|
22
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
23
22
|
var __jsx = _react["default"].createElement;
|
|
@@ -143,7 +142,7 @@ var WmProgressBar = exports.WmProgressBar = /*#__PURE__*/(0, _react.memo)(functi
|
|
|
143
142
|
} : {});
|
|
144
143
|
return __jsx(_Box["default"], (0, _extends2["default"])({
|
|
145
144
|
className: (0, _clsx["default"])(_constants.progressBarConstants.DEFAULT_CLASS, className)
|
|
146
|
-
},
|
|
145
|
+
}, rest, {
|
|
147
146
|
style: styles,
|
|
148
147
|
"aria-label": arialabel,
|
|
149
148
|
title: hint
|
|
@@ -52,7 +52,6 @@ declare const _default: React.ComponentType<{
|
|
|
52
52
|
eventCallback?: (eventName: string, data: any) => void;
|
|
53
53
|
forwardedRef?: React.ForwardedRef<any>;
|
|
54
54
|
viewParent?: any;
|
|
55
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
56
55
|
hint?: string;
|
|
57
56
|
arialabel?: string;
|
|
58
57
|
tabindex?: number;
|
|
@@ -35,7 +35,6 @@ declare const WmRichTextEditorStandalone: React.ComponentType<import("../../data
|
|
|
35
35
|
eventCallback?: (eventName: string, data: any) => void;
|
|
36
36
|
forwardedRef?: React.ForwardedRef<any>;
|
|
37
37
|
viewParent?: any;
|
|
38
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
39
38
|
hint?: string;
|
|
40
39
|
arialabel?: string;
|
|
41
40
|
tabindex?: number;
|
|
@@ -120,7 +119,6 @@ declare const _default: React.ComponentType<{
|
|
|
120
119
|
eventCallback?: (eventName: string, data: any) => void;
|
|
121
120
|
forwardedRef?: React.ForwardedRef<any>;
|
|
122
121
|
viewParent?: any;
|
|
123
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
124
122
|
arialabel?: string;
|
|
125
123
|
tabindex?: number;
|
|
126
124
|
styles?: React.CSSProperties;
|
|
@@ -34,8 +34,6 @@ declare const WmSearchStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
34
34
|
getDisplayExpression?: (data: any) => string;
|
|
35
35
|
isSearchInChips?: boolean;
|
|
36
36
|
onChange?: (event: any, widget: any, newVal?: any, oldVal?: any) => void;
|
|
37
|
-
clearSearch?: unknown;
|
|
38
|
-
destroy?: (((names: string[]) => void) | ((formName?: string) => void)) & (((names: string[]) => void) | ((formName?: string) => void));
|
|
39
37
|
standalone?: boolean;
|
|
40
38
|
datafield?: string;
|
|
41
39
|
displayfield?: string;
|
|
@@ -151,7 +149,6 @@ declare const _default: React.NamedExoticComponent<import("../../data/form/form-
|
|
|
151
149
|
eventCallback?: (eventName: string, data: any) => void;
|
|
152
150
|
forwardedRef?: React.ForwardedRef<any>;
|
|
153
151
|
viewParent?: any;
|
|
154
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
155
152
|
hint?: string;
|
|
156
153
|
arialabel?: string;
|
|
157
154
|
tabindex?: number;
|
|
@@ -17,8 +17,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
19
|
var _image = _interopRequireDefault(require("next/image"));
|
|
20
|
-
var _debounce = _interopRequireDefault(require("lodash
|
|
21
|
-
var _isPlainObject = _interopRequireDefault(require("lodash
|
|
20
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
21
|
+
var _isPlainObject = _interopRequireDefault(require("lodash/isPlainObject"));
|
|
22
22
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
23
23
|
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
24
24
|
var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
@@ -34,7 +34,7 @@ var _transformedDatasetUtils = require("@wavemaker-ai/react-runtime/utils/transf
|
|
|
34
34
|
var _providers = require("./providers");
|
|
35
35
|
var _withFormController = _interopRequireDefault(require("@wavemaker-ai/react-runtime/components/data/form/form-controller/withFormController"));
|
|
36
36
|
var _withStandalone = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withStandalone"));
|
|
37
|
-
var _excluded = ["showclear", "debouncetime", "searchkey", "searchon", "matchmode", "minchars", "limit", "tabindex", "placeholder", "dropup", "readonly", "datavalue", "dataset", "datafield", "displayfield", "disabled", "autofocus", "type", "showsearchicon", "showbackbutton", "imagewidth", "width", "displaylabel", "displayimagesrc", "displayexpression", "datacompletemsg", "loadingdatamsg", "clearsearchiconclass", "backsearchiconclass", "searchiconclass", "navsearchbar", "className", "shortcutkey", "required", "hint", "arialabel", "onBeforeservicecall", "onBlur", "onChange", "onFocus", "onSelect", "onSubmit", "onClear", "onSearch", "onDatasetready", "styles", "name", "listener", "value", "datasetItems", "selectedItems", "displayValue", "groupedData", "handleHeaderClick", "toggleAllHeaders", "isDestroyed", "validation", "casesensitive", "isUpdateRequired", "onQuerySearch", "getDisplayExpression", "standalone"
|
|
37
|
+
var _excluded = ["showclear", "debouncetime", "searchkey", "searchon", "matchmode", "minchars", "limit", "tabindex", "placeholder", "dropup", "readonly", "datavalue", "dataset", "datafield", "displayfield", "disabled", "autofocus", "type", "showsearchicon", "showbackbutton", "imagewidth", "width", "displaylabel", "displayimagesrc", "displayexpression", "datacompletemsg", "loadingdatamsg", "clearsearchiconclass", "backsearchiconclass", "searchiconclass", "navsearchbar", "className", "shortcutkey", "required", "hint", "arialabel", "onBeforeservicecall", "onBlur", "onChange", "onFocus", "onSelect", "onSubmit", "onClear", "onSearch", "onDatasetready", "styles", "name", "listener", "value", "datasetItems", "selectedItems", "displayValue", "groupedData", "handleHeaderClick", "toggleAllHeaders", "isDestroyed", "validation", "casesensitive", "isUpdateRequired", "onQuerySearch", "getDisplayExpression", "standalone"];
|
|
38
38
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
39
39
|
var __jsx = _react["default"].createElement;
|
|
40
40
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -134,9 +134,6 @@ var Search = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
134
134
|
getDisplayExpression = props.getDisplayExpression,
|
|
135
135
|
_props$standalone = props.standalone,
|
|
136
136
|
standalone = _props$standalone === void 0 ? false : _props$standalone,
|
|
137
|
-
viewParent = props.viewParent,
|
|
138
|
-
destroy = props.destroy,
|
|
139
|
-
clearSearch = props.clearSearch,
|
|
140
137
|
restProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
141
138
|
var debouncedSearchRef = (0, _react.useRef)(null);
|
|
142
139
|
var debouncedSearchItemRef = (0, _react.useRef)(null);
|
|
@@ -1200,7 +1197,7 @@ var Search = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
1200
1197
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className),
|
|
1201
1198
|
"data-search-type": type,
|
|
1202
1199
|
type: type,
|
|
1203
|
-
|
|
1200
|
+
readonly: readonly
|
|
1204
1201
|
}), renderBackButton(), __jsx(_material.Box, {
|
|
1205
1202
|
component: "span",
|
|
1206
1203
|
className: "sr-only"
|
|
@@ -149,8 +149,6 @@ export interface SearchProps extends DatasetAwareFormComponentProps {
|
|
|
149
149
|
* Callback fired when the search value changes.
|
|
150
150
|
*/
|
|
151
151
|
onChange?: (event: any, widget: any, newVal?: any, oldVal?: any) => void;
|
|
152
|
-
clearSearch?: unknown;
|
|
153
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
154
152
|
/**
|
|
155
153
|
* Whether to skip the form controller.
|
|
156
154
|
*/
|
|
@@ -48,7 +48,6 @@ declare const _default: React.ComponentType<{
|
|
|
48
48
|
eventCallback?: (eventName: string, data: any) => void;
|
|
49
49
|
forwardedRef?: React.ForwardedRef<any>;
|
|
50
50
|
viewParent?: any;
|
|
51
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
52
51
|
hint?: string;
|
|
53
52
|
arialabel?: string;
|
|
54
53
|
tabindex?: number;
|
|
@@ -42,7 +42,6 @@ declare const _default: React.ComponentType<{
|
|
|
42
42
|
eventCallback?: (eventName: string, data: any) => void;
|
|
43
43
|
forwardedRef?: React.ForwardedRef<any>;
|
|
44
44
|
viewParent?: any;
|
|
45
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
46
45
|
hint?: string;
|
|
47
46
|
arialabel?: string;
|
|
48
47
|
tabindex?: number;
|
|
@@ -13,7 +13,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
15
15
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["styles", "className"];
|
|
18
17
|
var __jsx = _react["default"].createElement;
|
|
19
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -87,7 +86,7 @@ function WmTile(props) {
|
|
|
87
86
|
return __jsx(_Box["default"], (0, _extends2["default"])({
|
|
88
87
|
className: (0, _clsx["default"])(DEFAULT_TILE_CLASS, className),
|
|
89
88
|
style: styles
|
|
90
|
-
},
|
|
89
|
+
}, restProps, domEvents), props.children);
|
|
91
90
|
}
|
|
92
91
|
WmTile.displayName = "WmTile";
|
|
93
92
|
|