@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
|
@@ -63,6 +63,7 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
63
63
|
setValue = _useState[1];
|
|
64
64
|
var prevDatavalueRef = (0, _react.useRef)(initialValue);
|
|
65
65
|
var sliderRef = (0, _react.useRef)(null);
|
|
66
|
+
var sliderControlRef = (0, _react.useRef)(null);
|
|
66
67
|
var _useState2 = (0, _react.useState)(false),
|
|
67
68
|
isTouched = _useState2[0],
|
|
68
69
|
setIsTouched = _useState2[1];
|
|
@@ -109,17 +110,15 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
109
110
|
}
|
|
110
111
|
prevDatavalueRef.current = newVal;
|
|
111
112
|
}, [onChange, name]);
|
|
112
|
-
var
|
|
113
|
-
|
|
114
|
-
var
|
|
115
|
-
var current = Number(value) || 0;
|
|
116
|
-
var denominator = max - min;
|
|
117
|
-
var sliderValue = denominator === 0 ? 100 : 100 - (current - min) / denominator * 100;
|
|
113
|
+
var updateSliderValue = (0, _react.useCallback)(function () {
|
|
114
|
+
if (!sliderControlRef.current) return;
|
|
115
|
+
var sliderValue = 100 - ((Number(value) || 0) - (minvalue || 0)) / ((maxvalue || 100) - (minvalue || 0)) * 100;
|
|
118
116
|
var safePercent = Math.min(100, Math.max(0, sliderValue));
|
|
119
|
-
|
|
120
|
-
"--wm-slider-end": "".concat(safePercent, "%")
|
|
121
|
-
};
|
|
117
|
+
sliderControlRef.current.style.setProperty("--end", "".concat(safePercent, "%"));
|
|
122
118
|
}, [value, minvalue, maxvalue]);
|
|
119
|
+
(0, _react.useEffect)(function () {
|
|
120
|
+
updateSliderValue();
|
|
121
|
+
}, [value, updateSliderValue]);
|
|
123
122
|
var handleBlur = (0, _react.useCallback)(function (e) {
|
|
124
123
|
setIsTouched(true);
|
|
125
124
|
}, [listener, name, props, value]);
|
|
@@ -251,8 +250,8 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
251
250
|
"aria-hidden": "true",
|
|
252
251
|
className: starticon
|
|
253
252
|
})), __jsx(_Box["default"], {
|
|
254
|
-
className: "slider-control
|
|
255
|
-
|
|
253
|
+
className: "slider-control",
|
|
254
|
+
ref: sliderControlRef
|
|
256
255
|
}, !showmarkers && (minvalue || maxvalue) && __jsx(_react["default"].Fragment, null, __jsx(_Box["default"], {
|
|
257
256
|
component: "span",
|
|
258
257
|
className: "app-slider-value pull-left"
|
|
@@ -302,9 +301,9 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
302
301
|
}, markerItems.map(function (marker, index) {
|
|
303
302
|
return __jsx("span", {
|
|
304
303
|
key: index,
|
|
305
|
-
className: "marker-wrapper
|
|
304
|
+
className: "marker-wrapper",
|
|
306
305
|
style: {
|
|
307
|
-
|
|
306
|
+
left: marker.left + "px"
|
|
308
307
|
},
|
|
309
308
|
title: marker.label
|
|
310
309
|
}, __jsx("span", {
|
|
@@ -56,7 +56,6 @@ declare const WmTextStandalone: import("react").ComponentType<import("../../data
|
|
|
56
56
|
eventCallback?: (eventName: string, data: any) => void;
|
|
57
57
|
forwardedRef?: React.ForwardedRef<any>;
|
|
58
58
|
viewParent?: any;
|
|
59
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
60
59
|
hint?: string;
|
|
61
60
|
arialabel?: string;
|
|
62
61
|
tabindex?: number;
|
|
@@ -155,7 +154,6 @@ declare const _default: import("react").ComponentType<{
|
|
|
155
154
|
eventCallback?: (eventName: string, data: any) => void;
|
|
156
155
|
forwardedRef?: React.ForwardedRef<any>;
|
|
157
156
|
viewParent?: any;
|
|
158
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
159
157
|
arialabel?: string;
|
|
160
158
|
tabindex?: number;
|
|
161
159
|
styles?: import("react").CSSProperties;
|
|
@@ -17,7 +17,7 @@ var _debounce = _interopRequireDefault(require("lodash-es/debounce"));
|
|
|
17
17
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
18
18
|
var _withFormController = _interopRequireDefault(require("@wavemaker-ai/react-runtime/components/data/form/form-controller/withFormController"));
|
|
19
19
|
var _util = require("./util");
|
|
20
|
-
var _delay = _interopRequireDefault(require("lodash
|
|
20
|
+
var _delay = _interopRequireDefault(require("lodash/delay"));
|
|
21
21
|
var _util2 = require("../util");
|
|
22
22
|
var _withStandalone = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withStandalone"));
|
|
23
23
|
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); }
|
|
@@ -432,7 +432,7 @@ var WmText = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
432
432
|
className: (0, _clsx["default"])("app-input-wrapper", isTouched ? "ng-touched" : "ng-untouched", displayError && "ng-invalid"),
|
|
433
433
|
slotProps: {
|
|
434
434
|
formHelperText: {
|
|
435
|
-
className:
|
|
435
|
+
className: "app-label help-block supporting-text",
|
|
436
436
|
name: "supportingText"
|
|
437
437
|
},
|
|
438
438
|
input: {
|
|
@@ -467,7 +467,7 @@ var WmText = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
467
467
|
tabIndex: tabindex,
|
|
468
468
|
readOnly: readonly,
|
|
469
469
|
autoCapitalize: autocapitalize,
|
|
470
|
-
className: (0, _clsx["default"])(DEFAULT_CLASS, className,
|
|
470
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, className, leadingiconclass && "with-leading-icon", trailingiconclass && "with-trailing-icon", isTouched ? "ng-touched" : "ng-untouched", displayError && "ng-invalid"),
|
|
471
471
|
style: styles,
|
|
472
472
|
"aria-label": arialabel,
|
|
473
473
|
maxLength: maxchars,
|
|
@@ -476,6 +476,17 @@ var WmText = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
476
476
|
max: props.maxvalue,
|
|
477
477
|
step: props.step
|
|
478
478
|
}
|
|
479
|
+
},
|
|
480
|
+
sx: {
|
|
481
|
+
"& .MuiInputBase-input.Mui-disabled": {
|
|
482
|
+
WebkitTextFillColor: "inherit"
|
|
483
|
+
},
|
|
484
|
+
"& .MuiFormHelperText-root": {
|
|
485
|
+
marginLeft: 0,
|
|
486
|
+
"&.Mui-error": {
|
|
487
|
+
color: "#ee5f5b"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
479
490
|
}
|
|
480
491
|
}));
|
|
481
492
|
}, function (prev, current) {
|
|
@@ -43,7 +43,6 @@ declare const WmTextareaStandalone: React.ComponentType<import("../../data/form/
|
|
|
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;
|
|
@@ -129,7 +128,6 @@ declare const _default: React.ComponentType<{
|
|
|
129
128
|
eventCallback?: (eventName: string, data: any) => void;
|
|
130
129
|
forwardedRef?: React.ForwardedRef<any>;
|
|
131
130
|
viewParent?: any;
|
|
132
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
133
131
|
arialabel?: string;
|
|
134
132
|
tabindex?: number;
|
|
135
133
|
styles?: React.CSSProperties;
|
|
@@ -14,7 +14,7 @@ var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
|
14
14
|
var lodash = _interopRequireWildcard(require("lodash-es"));
|
|
15
15
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
16
16
|
var _withFormController = _interopRequireDefault(require("@wavemaker-ai/react-runtime/components/data/form/form-controller/withFormController"));
|
|
17
|
-
var _delay = _interopRequireDefault(require("lodash
|
|
17
|
+
var _delay = _interopRequireDefault(require("lodash/delay"));
|
|
18
18
|
var _util = require("@wavemaker-ai/react-runtime/components/input/util");
|
|
19
19
|
var _withStandalone = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withStandalone"));
|
|
20
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); }
|
|
@@ -318,7 +318,7 @@ var WmTextarea = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
318
318
|
required: required,
|
|
319
319
|
disabled: disabled,
|
|
320
320
|
error: isDirty && error.show,
|
|
321
|
-
className: (0, _clsx["default"])("app-input-wrapper",
|
|
321
|
+
className: (0, _clsx["default"])("app-input-wrapper", isTouched ? "ng-touched" : "ng-untouched", isDirty && "ng-invalid"),
|
|
322
322
|
style: styles,
|
|
323
323
|
"aria-readonly": readonly,
|
|
324
324
|
helperText: maxchars ? limitdisplaytext.replaceAll("undefined", "".concat((displayValue === null || displayValue === void 0 ? void 0 : displayValue.length) || 0)) : undefined,
|
|
@@ -334,16 +334,19 @@ var WmTextarea = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
334
334
|
ref: textareaRef,
|
|
335
335
|
onKeyDown: handleKeyDown,
|
|
336
336
|
onKeyUp: handleKeyUp,
|
|
337
|
-
className: (0, _clsx["default"])(DEFAULT_CLASS,
|
|
338
|
-
style: _objectSpread({}, styles.height ? {
|
|
339
|
-
"--wm-textarea-height": "".concat(styles.height)
|
|
340
|
-
} : {}),
|
|
337
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, className, isTouched ? "ng-touched" : "ng-untouched", isDirty && "ng-invalid", isEditable ? "wm-textarea-editable" : ""),
|
|
341
338
|
pattern: regexp
|
|
342
339
|
}
|
|
343
340
|
},
|
|
344
341
|
slots: _objectSpread({}, maxchars ? {
|
|
345
342
|
formHelperText: TextareaCount
|
|
346
|
-
} : {})
|
|
343
|
+
} : {}),
|
|
344
|
+
sx: {
|
|
345
|
+
width: "100%",
|
|
346
|
+
"& .MuiInputBase-input": _objectSpread({}, styles.height ? {
|
|
347
|
+
height: "".concat(styles.height, " !important")
|
|
348
|
+
} : {})
|
|
349
|
+
}
|
|
347
350
|
}, events)));
|
|
348
351
|
}, function (prev, current) {
|
|
349
352
|
var keys = ["datavalue", "disabled", "required", "readonly", "placeholder", "maxchars", "tabindex", "shortcutkey", "autofocus", "arialabel", "limitdisplaytext", "hidden"];
|
|
@@ -36,7 +36,6 @@ declare const WithForm: React.NamedExoticComponent<import("../../data/form/form-
|
|
|
36
36
|
eventCallback?: (eventName: string, data: any) => void;
|
|
37
37
|
forwardedRef?: React.ForwardedRef<any>;
|
|
38
38
|
viewParent?: any;
|
|
39
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
40
39
|
hint?: string;
|
|
41
40
|
arialabel?: string;
|
|
42
41
|
tabindex?: number;
|
|
@@ -118,7 +117,6 @@ declare const _default: React.ComponentType<{
|
|
|
118
117
|
eventCallback?: (eventName: string, data: any) => void;
|
|
119
118
|
forwardedRef?: React.ForwardedRef<any>;
|
|
120
119
|
viewParent?: any;
|
|
121
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
122
120
|
arialabel?: string;
|
|
123
121
|
tabindex?: number;
|
|
124
122
|
styles?: React.CSSProperties;
|
|
@@ -12,7 +12,6 @@ var _link = _interopRequireDefault(require("next/link"));
|
|
|
12
12
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
13
13
|
var _withFormController = _interopRequireDefault(require("../../data/form/form-controller/withFormController"));
|
|
14
14
|
var _image = _interopRequireDefault(require("next/image"));
|
|
15
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
16
15
|
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); }
|
|
17
16
|
var __jsx = _react["default"].createElement;
|
|
18
17
|
var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
@@ -81,7 +80,10 @@ var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
81
80
|
className: "form-control-static",
|
|
82
81
|
href: fileUrl
|
|
83
82
|
}, __jsx(_image["default"], {
|
|
84
|
-
|
|
83
|
+
style: {
|
|
84
|
+
height: "2em"
|
|
85
|
+
},
|
|
86
|
+
className: "wi wi-file",
|
|
85
87
|
src: fileUrl,
|
|
86
88
|
alt: "Existing file"
|
|
87
89
|
})) : __jsx(_link["default"], {
|
|
@@ -100,7 +102,7 @@ var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
100
102
|
return __jsx("div", {
|
|
101
103
|
className: className,
|
|
102
104
|
style: styles
|
|
103
|
-
}, renderExistingFile(), __jsx("input", (0, _extends2["default"])({},
|
|
105
|
+
}, renderExistingFile(), __jsx("input", (0, _extends2["default"])({}, props, {
|
|
104
106
|
hidden: props.hidden,
|
|
105
107
|
ref: fileInputRef,
|
|
106
108
|
type: "file",
|
|
@@ -13,7 +13,6 @@ var DEFAULT_CLASS = "app-footer clearfix";
|
|
|
13
13
|
var WmFooter = exports.WmFooter = function WmFooter(props) {
|
|
14
14
|
var styles = props.styles,
|
|
15
15
|
children = props.children,
|
|
16
|
-
render = props.render,
|
|
17
16
|
className = props.className,
|
|
18
17
|
id = props.id;
|
|
19
18
|
return __jsx(_material.Box, {
|
|
@@ -21,7 +20,7 @@ var WmFooter = exports.WmFooter = function WmFooter(props) {
|
|
|
21
20
|
sx: styles,
|
|
22
21
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className),
|
|
23
22
|
id: id
|
|
24
|
-
},
|
|
23
|
+
}, children);
|
|
25
24
|
};
|
|
26
25
|
WmFooter.displayName = "WmFooter";
|
|
27
26
|
|
|
@@ -13,7 +13,6 @@ var DEFAULT_CLASS = "app-header clearfix app-header-shrink";
|
|
|
13
13
|
var WmHeader = exports.WmHeader = function WmHeader(props) {
|
|
14
14
|
var styles = props.styles,
|
|
15
15
|
children = props.children,
|
|
16
|
-
render = props.render,
|
|
17
16
|
className = props.className,
|
|
18
17
|
id = props.id;
|
|
19
18
|
return __jsx(_Box["default"], {
|
|
@@ -24,7 +23,7 @@ var WmHeader = exports.WmHeader = function WmHeader(props) {
|
|
|
24
23
|
}, __jsx(_Box["default"], {
|
|
25
24
|
component: "div",
|
|
26
25
|
className: "app-header-container"
|
|
27
|
-
},
|
|
26
|
+
}, children));
|
|
28
27
|
};
|
|
29
28
|
WmHeader.displayName = "WmHeader";
|
|
30
29
|
|
|
@@ -15,7 +15,6 @@ var DEFAULT_CLASS = "app-nav-drawer app-left-panel left-panel-collapsed ";
|
|
|
15
15
|
var WmLeftPanel = exports.WmLeftPanel = function WmLeftPanel(props) {
|
|
16
16
|
var styles = props.styles,
|
|
17
17
|
children = props.children,
|
|
18
|
-
render = props.render,
|
|
19
18
|
className = props.className,
|
|
20
19
|
_props$columnwidth = props.columnwidth,
|
|
21
20
|
columnwidth = _props$columnwidth === void 0 ? 2 : _props$columnwidth,
|
|
@@ -38,7 +37,7 @@ var WmLeftPanel = exports.WmLeftPanel = function WmLeftPanel(props) {
|
|
|
38
37
|
component: "div",
|
|
39
38
|
sx: styles,
|
|
40
39
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className, "col-sm-".concat(columnwidth, " ").concat(navtype ? "app-nav-".concat(navtype) : "", " ").concat(navheight ? "app-nav-".concat(navheight) : ""))
|
|
41
|
-
},
|
|
40
|
+
}, children);
|
|
42
41
|
};
|
|
43
42
|
WmLeftPanel.displayName = "WmLeftPanel";
|
|
44
43
|
|
|
@@ -13,7 +13,6 @@ var DEFAULT_CLASS = "app-right-panel";
|
|
|
13
13
|
var WmRightPanel = exports.WmRightPanel = function WmRightPanel(props) {
|
|
14
14
|
var styles = props.styles,
|
|
15
15
|
children = props.children,
|
|
16
|
-
render = props.render,
|
|
17
16
|
className = props.className,
|
|
18
17
|
_props$columnwidth = props.columnwidth,
|
|
19
18
|
columnwidth = _props$columnwidth === void 0 ? 2 : _props$columnwidth,
|
|
@@ -22,7 +21,7 @@ var WmRightPanel = exports.WmRightPanel = function WmRightPanel(props) {
|
|
|
22
21
|
id: id,
|
|
23
22
|
sx: styles,
|
|
24
23
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className, "col-sm-".concat(columnwidth))
|
|
25
|
-
},
|
|
24
|
+
}, children);
|
|
26
25
|
};
|
|
27
26
|
WmRightPanel.displayName = "WmRightPanel";
|
|
28
27
|
|
|
@@ -13,7 +13,6 @@ var DEFAULT_CLASS = "app-top-nav";
|
|
|
13
13
|
var WmTopNav = exports.WmTopNav = function WmTopNav(props) {
|
|
14
14
|
var styles = props.styles,
|
|
15
15
|
children = props.children,
|
|
16
|
-
render = props.render,
|
|
17
16
|
className = props.className,
|
|
18
17
|
id = props.id;
|
|
19
18
|
return __jsx(_Box["default"], {
|
|
@@ -24,7 +23,7 @@ var WmTopNav = exports.WmTopNav = function WmTopNav(props) {
|
|
|
24
23
|
role: "navigation",
|
|
25
24
|
"aria-label": "Second level navigation",
|
|
26
25
|
"data-role": "page-topnav"
|
|
27
|
-
},
|
|
26
|
+
}, children);
|
|
28
27
|
};
|
|
29
28
|
WmTopNav.displayName = "WmTopNav";
|
|
30
29
|
|
|
@@ -40,7 +40,6 @@ declare const _default: import("react").MemoExoticComponent<import("react").Comp
|
|
|
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;
|
|
@@ -16,7 +16,6 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
16
16
|
var _Link = _interopRequireDefault(require("@mui/material/Link"));
|
|
17
17
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
18
18
|
var _button = require("@wavemaker-ai/react-runtime/components/form/button");
|
|
19
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
20
19
|
var _excluded = ["className", "children", "styles", "id", "title", "brandHref", "showToggle", "listener"];
|
|
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;
|
|
@@ -55,7 +54,7 @@ var WmNavbar = exports.WmNavbar = /*#__PURE__*/(0, _react.memo)(function (props)
|
|
|
55
54
|
style: processedStyles,
|
|
56
55
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className),
|
|
57
56
|
id: id
|
|
58
|
-
},
|
|
57
|
+
}, restProps), __jsx(_Box["default"], {
|
|
59
58
|
component: "div",
|
|
60
59
|
className: "container-fluid"
|
|
61
60
|
}, __jsx(_Box["default"], {
|
|
@@ -66,7 +66,6 @@ declare const _default: import("react").MemoExoticComponent<import("react").Comp
|
|
|
66
66
|
eventCallback?: (eventName: string, data: any) => void;
|
|
67
67
|
forwardedRef?: React.ForwardedRef<any>;
|
|
68
68
|
viewParent?: any;
|
|
69
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
70
69
|
hint?: string;
|
|
71
70
|
arialabel?: string;
|
|
72
71
|
tabindex?: number;
|
|
@@ -36,7 +36,6 @@ declare const _default: import("react").MemoExoticComponent<import("react").Comp
|
|
|
36
36
|
eventCallback?: (eventName: string, data: any) => void;
|
|
37
37
|
forwardedRef?: React.ForwardedRef<any>;
|
|
38
38
|
viewParent?: any;
|
|
39
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
40
39
|
hint?: string;
|
|
41
40
|
arialabel?: string;
|
|
42
41
|
tabindex?: number;
|
|
@@ -13,7 +13,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
15
15
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["className", "styles", "id", "onMouseEnter", "onMouseLeave", "name"];
|
|
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;
|
|
@@ -30,7 +29,7 @@ var WmNavItem = exports.WmNavItem = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
30
29
|
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
31
30
|
return __jsx(_ListItem["default"], (0, _extends2["default"])({
|
|
32
31
|
component: "li"
|
|
33
|
-
},
|
|
32
|
+
}, rest, {
|
|
34
33
|
name: name,
|
|
35
34
|
id: id,
|
|
36
35
|
sx: _objectSpread(_objectSpread({
|
|
@@ -39,7 +39,6 @@ declare const _default: React.ComponentType<{
|
|
|
39
39
|
eventCallback?: (eventName: string, data: any) => void;
|
|
40
40
|
forwardedRef?: React.ForwardedRef<any>;
|
|
41
41
|
viewParent?: any;
|
|
42
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
43
42
|
hint?: string;
|
|
44
43
|
arialabel?: string;
|
|
45
44
|
tabindex?: number;
|
|
@@ -60,7 +60,6 @@ declare const _default: React.ComponentType<{
|
|
|
60
60
|
eventCallback?: (eventName: string, data: any) => void;
|
|
61
61
|
forwardedRef?: React.ForwardedRef<any>;
|
|
62
62
|
viewParent?: any;
|
|
63
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
64
63
|
hint?: string;
|
|
65
64
|
arialabel?: string;
|
|
66
65
|
tabindex?: number;
|
|
@@ -30,7 +30,6 @@ var _useKeyboardMovements = require("./hooks/useKeyboardMovements.hook");
|
|
|
30
30
|
var _useTransformedDataset = require("./hooks/useTransformedDataset.hook");
|
|
31
31
|
var _useHoverState2 = require("./hooks/useHoverState.hook");
|
|
32
32
|
var _constants2 = require("@wavemaker-ai/react-runtime/core/constants");
|
|
33
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
34
33
|
var _excluded = ["menualign", "menuposition", "menulayout", "menuclass", "linktarget", "iconclass", "type", "animateitems", "disableMenuContext", "showonhover", "panelPosition", "autoclose", "autoopen", "hint", "arialabel", "width", "height", "iconposition", "caption", "shortcutkey", "onClick", "onSelect", "navNodes", "styles", "conditionalstyles", "className", "children", "listener", "name", "resetNavNodes", "nodes$", "dataset", "orderby", "itemlabel", "itemlink", "itemicon", "itemaction", "userrole", "loggedInUser", "itemchildren", "isactive", "displayValue", "onActionsclick", "dataPath", "isFromNav", "onNavItemActivate", "isNavItemActive"];
|
|
35
34
|
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); }
|
|
36
35
|
var __jsx = _react["default"].createElement;
|
|
@@ -370,7 +369,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
370
369
|
icon: ((_item$dataObject4 = item.dataObject) === null || _item$dataObject4 === void 0 ? void 0 : _item$dataObject4.icon) || icon,
|
|
371
370
|
link: link,
|
|
372
371
|
target: (_item$dataObject5 = item.dataObject) === null || _item$dataObject5 === void 0 ? void 0 : _item$dataObject5.target
|
|
373
|
-
}
|
|
372
|
+
});
|
|
374
373
|
if (onSelect) {
|
|
375
374
|
onSelect(event, props, simplifiedItem);
|
|
376
375
|
}
|
|
@@ -976,7 +975,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
976
975
|
height: height !== undefined ? typeof height === "number" ? "".concat(height, "px") : height : undefined,
|
|
977
976
|
textAlign: menualign
|
|
978
977
|
}
|
|
979
|
-
},
|
|
978
|
+
}, restProps), iconclass && __jsx("i", {
|
|
980
979
|
className: (0, _clsx["default"])("app-icon", iconclass),
|
|
981
980
|
"aria-hidden": "true"
|
|
982
981
|
}), __jsx("span", {
|
|
@@ -986,7 +985,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
986
985
|
}, caption || ""), __jsx("span", {
|
|
987
986
|
className: (0, _clsx["default"])("pull-right caret fa", menuPosition !== null && menuPosition !== void 0 && menuPosition.startsWith("up") ? _constants.CARET_CLS.UP : _constants.CARET_CLS.DOWN)
|
|
988
987
|
})) : __jsx(_Button["default"], (0, _extends2["default"])({
|
|
989
|
-
className: (0, _clsx["default"])("btn dropdown-toggle", "
|
|
988
|
+
className: (0, _clsx["default"])("btn dropdown-toggle", "app-button", menuclass, "menu-layout-".concat(menulayout), "menu-align-".concat(menualign), open ? "open" : "", menuPosition !== null && menuPosition !== void 0 && menuPosition.startsWith("up") ? "dropup" : "", menuPosition === _constants.POSITION.INLINE ? "dropinline-menu" : ""),
|
|
990
989
|
ref: buttonRef,
|
|
991
990
|
onClick: handleMenuClick,
|
|
992
991
|
"aria-haspopup": "true",
|
|
@@ -998,7 +997,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
998
997
|
width: width !== undefined ? typeof width === "number" ? "".concat(width, "px") : width : undefined,
|
|
999
998
|
height: height !== undefined ? typeof height === "number" ? "".concat(height, "px") : height : undefined
|
|
1000
999
|
}, buttonStyles), menuContainerStyles)
|
|
1001
|
-
},
|
|
1000
|
+
}, restProps), iconclass && __jsx("i", {
|
|
1002
1001
|
className: (0, _clsx["default"])("app-icon", iconclass),
|
|
1003
1002
|
"aria-hidden": "true"
|
|
1004
1003
|
}), __jsx("span", {
|
|
@@ -20,7 +20,7 @@ declare const _default: React.ComponentType<{
|
|
|
20
20
|
popoverwidth: string;
|
|
21
21
|
title?: string;
|
|
22
22
|
adaptiveposition?: boolean;
|
|
23
|
-
autoclose?: "
|
|
23
|
+
autoclose?: "always" | "disabled" | "outsideClick";
|
|
24
24
|
contentanimation?: string;
|
|
25
25
|
onLoad?: (widget: WmPopoverProps) => void | Function;
|
|
26
26
|
onShow?: (event: Event, widget: WmPopoverProps) => void;
|
|
@@ -71,7 +71,6 @@ declare const _default: React.ComponentType<{
|
|
|
71
71
|
eventCallback?: (eventName: string, data: any) => void;
|
|
72
72
|
forwardedRef?: React.ForwardedRef<any>;
|
|
73
73
|
viewParent?: any;
|
|
74
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
75
74
|
hint?: string;
|
|
76
75
|
arialabel?: string;
|
|
77
76
|
tabindex?: number;
|
|
@@ -9,7 +9,7 @@ exports["default"] = exports.WmPopover = void 0;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
|
-
var _debounce = _interopRequireDefault(require("lodash
|
|
12
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
13
13
|
var _Popover = _interopRequireDefault(require("@mui/material/Popover"));
|
|
14
14
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
15
15
|
var _anchor = require("@wavemaker-ai/react-runtime/components/basic/anchor");
|
|
@@ -7,13 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _navigation = require("next/navigation");
|
|
10
11
|
var _button = require("../../form/button");
|
|
11
12
|
var _label = require("../../basic/label");
|
|
12
13
|
var _icon = require("../../basic/icon");
|
|
13
14
|
var _picture = require("../../basic/picture");
|
|
14
15
|
var _container = require("../../container");
|
|
15
16
|
var _store = require("../../../store");
|
|
16
|
-
var _navigationMiddleware = require("../../../store/middleware/navigationMiddleware");
|
|
17
17
|
var __jsx = _react["default"].createElement;
|
|
18
18
|
var ErrorFallback = function ErrorFallback(_ref) {
|
|
19
19
|
var _store$getState;
|
|
@@ -24,18 +24,18 @@ var ErrorFallback = function ErrorFallback(_ref) {
|
|
|
24
24
|
subtitle = _ref$subtitle === void 0 ? "Please try again." : _ref$subtitle,
|
|
25
25
|
_ref$imageSource = _ref.imageSource,
|
|
26
26
|
imageSource = _ref$imageSource === void 0 ? "/error-fallback.svg" : _ref$imageSource;
|
|
27
|
+
var router = (0, _navigation.useRouter)();
|
|
27
28
|
var homePage = (_store$getState = _store.store.getState()) === null || _store$getState === void 0 || (_store$getState = _store$getState.info) === null || _store$getState === void 0 || (_store$getState = _store$getState.appConfig) === null || _store$getState === void 0 || (_store$getState = _store$getState.appProperties) === null || _store$getState === void 0 ? void 0 : _store$getState.homePage;
|
|
28
29
|
var handleGoHome = function handleGoHome() {
|
|
29
|
-
|
|
30
|
-
if (router && homePage) {
|
|
30
|
+
if (homePage) {
|
|
31
31
|
router.push(homePage);
|
|
32
32
|
} else {
|
|
33
33
|
window.location.href = window.location.origin;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
var handleGoBack = function handleGoBack() {
|
|
37
|
-
var
|
|
38
|
-
if (
|
|
37
|
+
var hasHistory = typeof window !== "undefined" && window.history.length > 1;
|
|
38
|
+
if (hasHistory) {
|
|
39
39
|
router.back();
|
|
40
40
|
} else {
|
|
41
41
|
window.location.href = window.location.origin;
|
package/components/page/index.js
CHANGED
|
@@ -13,7 +13,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _Container = _interopRequireDefault(require("@mui/material/Container"));
|
|
16
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
16
|
var _excluded = ["className", "styles", "children"];
|
|
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;
|
|
@@ -120,9 +119,6 @@ function WmPage(props) {
|
|
|
120
119
|
var childrenWithCallback = (0, _react.useMemo)(function () {
|
|
121
120
|
return _react["default"].Children.map(children, function (child) {
|
|
122
121
|
if (/*#__PURE__*/_react["default"].isValidElement(child)) {
|
|
123
|
-
if (typeof child.type === "string") {
|
|
124
|
-
return child;
|
|
125
|
-
}
|
|
126
122
|
return /*#__PURE__*/_react["default"].cloneElement(child, _objectSpread({
|
|
127
123
|
onNavHeightChange: handleNavHeightChange
|
|
128
124
|
}, child.props));
|
|
@@ -130,7 +126,7 @@ function WmPage(props) {
|
|
|
130
126
|
return child;
|
|
131
127
|
});
|
|
132
128
|
}, [children, handleNavHeightChange]);
|
|
133
|
-
return __jsx(_Container["default"], (0, _extends2["default"])({},
|
|
129
|
+
return __jsx(_Container["default"], (0, _extends2["default"])({}, restProps, {
|
|
134
130
|
className: (0, _clsx["default"])(DEFAULT_CLASS, {
|
|
135
131
|
"app-nav-full": hasFullNavHeight
|
|
136
132
|
}, className),
|
|
@@ -139,13 +135,13 @@ function WmPage(props) {
|
|
|
139
135
|
}
|
|
140
136
|
WmPage.displayName = "WmPage";
|
|
141
137
|
|
|
142
|
-
/**
|
|
143
|
-
* The WmPage component is the root container for a WaveMaker page layout.
|
|
144
|
-
*
|
|
145
|
-
* - [Playground](https://react-components.wavemaker.ai/?path=/story/page--showcase)
|
|
146
|
-
*
|
|
147
|
-
* - [Docs](https://react-components.wavemaker.ai/?path=/story/page--docs#tab-overview)
|
|
148
|
-
*
|
|
149
|
-
* @param props - {@link WmPageProps}
|
|
138
|
+
/**
|
|
139
|
+
* The WmPage component is the root container for a WaveMaker page layout.
|
|
140
|
+
*
|
|
141
|
+
* - [Playground](https://react-components.wavemaker.ai/?path=/story/page--showcase)
|
|
142
|
+
*
|
|
143
|
+
* - [Docs](https://react-components.wavemaker.ai/?path=/story/page--docs#tab-overview)
|
|
144
|
+
*
|
|
145
|
+
* @param props - {@link WmPageProps}
|
|
150
146
|
*/
|
|
151
147
|
var _default = exports["default"] = WmPage;
|
|
@@ -34,7 +34,6 @@ declare const _default: import("react").ComponentType<{
|
|
|
34
34
|
eventCallback?: (eventName: string, data: any) => void;
|
|
35
35
|
forwardedRef?: React.ForwardedRef<any>;
|
|
36
36
|
viewParent?: any;
|
|
37
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
38
37
|
hint?: string;
|
|
39
38
|
arialabel?: string;
|
|
40
39
|
tabindex?: number;
|
|
@@ -9,7 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
13
12
|
var _excluded = ["styles", "onLoad", "onDestroy", "children", "className"];
|
|
14
13
|
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); }
|
|
15
14
|
var __jsx = _react["default"].createElement;
|
|
@@ -46,7 +45,7 @@ var WmPrefabContainer = function WmPrefabContainer(props) {
|
|
|
46
45
|
}, [onLoad, onDestroy]);
|
|
47
46
|
return __jsx("div", (0, _extends2["default"])({
|
|
48
47
|
style: styles
|
|
49
|
-
},
|
|
48
|
+
}, rest, {
|
|
50
49
|
ref: ref,
|
|
51
50
|
className: className || DEFAULT_CLASS
|
|
52
51
|
}), children);
|