@wavemaker-ai/react-runtime 1.0.0-rc.647469 → 1.0.0-rc.647502
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/base-action.d.ts +7 -0
- package/actions/login-action.d.ts +11 -0
- package/actions/logout-action.d.ts +10 -0
- package/actions/navigation-action.d.ts +35 -0
- package/actions/navigation-action.js +23 -5
- package/actions/notification-action.d.ts +20 -0
- package/actions/timer-action.d.ts +27 -0
- package/components/advanced/carousel/index.d.ts +1 -0
- package/components/advanced/carousel/index.js +2 -1
- package/components/advanced/carousel/template.d.ts +1 -0
- package/components/advanced/carousel/template.js +2 -1
- package/components/advanced/login/index.d.ts +1 -0
- package/components/advanced/marquee/index.d.ts +1 -0
- package/components/advanced/marquee/index.js +2 -1
- package/components/basic/anchor/index.d.ts +1 -0
- package/components/basic/anchor/index.js +4 -3
- package/components/basic/audio/index.d.ts +1 -0
- package/components/basic/audio/index.js +3 -2
- package/components/basic/html/index.d.ts +1 -0
- package/components/basic/icon/index.d.ts +1 -0
- package/components/basic/icon/index.js +4 -7
- package/components/basic/iframe/iframe.utils.d.ts +1 -1
- package/components/basic/iframe/iframe.utils.js +8 -4
- package/components/basic/iframe/index.d.ts +1 -0
- package/components/basic/label/index.d.ts +1 -0
- package/components/basic/label/index.js +3 -2
- package/components/basic/message/index.js +1 -1
- package/components/basic/picture/index.d.ts +1 -0
- package/components/basic/picture/index.js +3 -4
- package/components/basic/progress-bar/index.d.ts +1 -0
- package/components/basic/progress-bar/index.js +2 -1
- package/components/basic/progress-circle/index.d.ts +1 -0
- package/components/basic/richtexteditor/index.d.ts +2 -0
- package/components/basic/search/index.d.ts +3 -0
- package/components/basic/search/index.js +7 -4
- package/components/basic/search/props.d.ts +2 -0
- package/components/basic/spinner/index.d.ts +1 -0
- package/components/basic/tile/index.d.ts +1 -0
- package/components/basic/tile/index.js +2 -1
- package/components/basic/tree/Components/TreeNodeComponent.js +9 -5
- package/components/basic/tree/index.d.ts +1 -0
- package/components/basic/tree/index.js +14 -3
- package/components/basic/tree/utils.d.ts +2 -0
- package/components/basic/tree/utils.js +11 -1
- package/components/basic/video/index.d.ts +1 -0
- package/components/basic/video/index.js +40 -23
- package/components/chart/index.d.ts +1 -0
- package/components/common/AppSpinner.js +2 -5
- package/components/container/accordion/accordion-pane/index.d.ts +1 -0
- package/components/container/accordion/accordion-pane/index.js +1 -4
- package/components/container/accordion/index.d.ts +1 -0
- package/components/container/index.d.ts +3 -0
- package/components/container/index.js +6 -1
- package/components/container/layout-grid/grid-column/index.d.ts +1 -0
- package/components/container/layout-grid/grid-row/index.d.ts +1 -0
- package/components/container/layout-grid/index.d.ts +1 -0
- package/components/container/layout-grid/index.js +4 -8
- package/components/container/linear-layout/index.d.ts +1 -0
- package/components/container/linear-layout/linear-layout-item/index.d.ts +1 -0
- package/components/container/panel/components/panel-header/index.js +11 -6
- package/components/container/panel/components/panel-header/props.d.ts +5 -0
- package/components/container/panel/index.d.ts +1 -0
- package/components/container/panel/index.js +2 -1
- package/components/container/props.d.ts +2 -0
- package/components/container/repeat-template/index.d.ts +22 -1
- package/components/container/repeat-template/index.js +2 -1
- package/components/container/tabs/index.d.ts +3 -1
- package/components/container/tabs/index.js +102 -51
- package/components/container/tabs/props.d.ts +12 -0
- package/components/container/tabs/tab-pane/index.d.ts +1 -0
- package/components/container/tabs/tab-pane/index.js +28 -11
- package/components/container/wizard/index.d.ts +2 -0
- package/components/container/wizard/wizard-step/index.d.ts +1 -0
- package/components/container/wizard/wizard-step/index.js +2 -2
- package/components/data/card/card-actions/index.d.ts +1 -0
- package/components/data/card/card-actions/index.js +3 -5
- package/components/data/card/card-content/index.d.ts +1 -0
- package/components/data/card/card-content/index.js +3 -13
- package/components/data/card/card-footer/index.d.ts +1 -0
- package/components/data/card/card-footer/index.js +3 -5
- package/components/data/card/index.d.ts +1 -0
- package/components/data/card/index.js +3 -14
- package/components/data/form/dynamic-fields/index.js +7 -1
- package/components/data/form/dynamic-fields/props.d.ts +1 -0
- package/components/data/form/form-action/index.d.ts +2 -0
- package/components/data/form/form-body/index.js +2 -1
- package/components/data/form/form-field/base-field.js +4 -3
- package/components/data/form/form-footer/index.js +2 -1
- package/components/data/list/components/ListItemWithTemplate.js +4 -2
- 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 +2 -0
- package/components/data/list/index.js +3 -4
- package/components/data/list/props.d.ts +2 -1
- package/components/data/list/utils/list-widget-methods.d.ts +2 -1
- package/components/data/table/components/RowCells.d.ts +16 -2
- package/components/data/table/components/RowCells.js +38 -24
- package/components/data/table/components/TableBody.js +11 -3
- package/components/data/table/components/TableDataRow.d.ts +3 -0
- package/components/data/table/components/TableDataRow.js +11 -3
- package/components/data/table/components/TableHeader.js +1 -4
- package/components/data/table/hooks/index.d.ts +1 -0
- package/components/data/table/hooks/index.js +12 -0
- package/components/data/table/hooks/useCustomExpressionColumns.d.ts +16 -0
- package/components/data/table/hooks/useCustomExpressionColumns.js +88 -0
- package/components/data/table/hooks/useDynamicColumns.js +1 -1
- package/components/data/table/hooks/useResponsiveColumns.d.ts +1 -0
- package/components/data/table/hooks/useRowSelection.d.ts +1 -1
- package/components/data/table/hooks/useRowSelection.js +26 -5
- package/components/data/table/hooks/useTableInitialization.js +2 -1
- package/components/data/table/index.d.ts +4 -0
- package/components/data/table/index.js +77 -12
- package/components/data/table/live-table/index.d.ts +1 -0
- package/components/data/table/props.d.ts +7 -0
- package/components/data/table/table-action/index.d.ts +1 -0
- package/components/data/table/table-column/index.d.ts +1 -0
- package/components/data/table/table-row/index.d.ts +1 -0
- package/components/data/table/table-row-action/index.d.ts +1 -0
- package/components/data/table/utils/buildSelectionColumns.js +7 -1
- 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 +2 -0
- package/components/dialogs/confirm-dialog/index.d.ts +2 -0
- package/components/dialogs/dialog/index.d.ts +2 -0
- package/components/dialogs/dialog/index.js +2 -4
- package/components/dialogs/dialog-actions/index.d.ts +1 -0
- package/components/dialogs/dialog-body/index.d.ts +1 -0
- package/components/dialogs/dialog-content/index.d.ts +1 -0
- package/components/dialogs/dialog-header/index.d.ts +1 -0
- package/components/dialogs/iframe-dialog/index.d.ts +2 -0
- package/components/dialogs/login-dialog/index.d.ts +2 -0
- package/components/dialogs/page-dialog/index.d.ts +2 -0
- package/components/form/button/index.d.ts +1 -0
- package/components/form/button/index.js +4 -3
- package/components/form/button-group/index.d.ts +1 -0
- package/components/form/button-group/index.js +2 -1
- package/components/input/calendar/index.d.ts +2 -0
- package/components/input/chips/index.d.ts +2 -0
- package/components/input/color-picker/index.d.ts +2 -0
- package/components/input/composite/index.d.ts +1 -0
- package/components/input/currency/index.d.ts +2 -0
- package/components/input/default/checkbox/index.d.ts +2 -0
- package/components/input/default/checkboxset/index.d.ts +2 -0
- package/components/input/default/radioset/index.d.ts +2 -0
- package/components/input/default/switch/index.d.ts +2 -0
- package/components/input/epoch/date/components/DatePickerPopover.js +11 -29
- package/components/input/epoch/date/index.d.ts +1 -0
- package/components/input/epoch/datetime/index.d.ts +1 -0
- package/components/input/epoch/datetime/index.js +10 -25
- package/components/input/epoch/time/index.d.ts +1 -0
- package/components/input/epoch/time/index.js +1 -1
- package/components/input/epoch/time/utils.d.ts +0 -17
- package/components/input/epoch/time/utils.js +1 -18
- package/components/input/fileupload/index.d.ts +1 -0
- package/components/input/number/index.d.ts +2 -0
- package/components/input/rating/index.d.ts +2 -0
- package/components/input/rating/index.js +14 -17
- package/components/input/select/index.d.ts +2 -0
- package/components/input/select/index.js +1 -4
- package/components/input/slider/index.d.ts +2 -0
- package/components/input/slider/index.js +13 -12
- package/components/input/text/index.d.ts +2 -0
- package/components/input/text/index.js +3 -14
- package/components/input/textarea/index.d.ts +2 -0
- package/components/input/textarea/index.js +7 -10
- package/components/input/upload/index.d.ts +2 -0
- package/components/input/upload/index.js +3 -5
- package/components/layout/footer/index.js +2 -1
- package/components/layout/footer/props.d.ts +1 -0
- package/components/layout/header/index.js +2 -1
- package/components/layout/header/props.d.ts +1 -0
- package/components/layout/leftnav/index.js +2 -1
- package/components/layout/leftnav/props.d.ts +1 -0
- package/components/layout/rightnav/index.js +2 -1
- package/components/layout/rightnav/props.d.ts +1 -0
- package/components/layout/topnav/index.js +2 -1
- package/components/layout/topnav/props.d.ts +1 -0
- package/components/navbar/index.d.ts +1 -0
- package/components/navbar/index.js +2 -1
- package/components/navbar/nav/index.d.ts +1 -0
- package/components/navbar/nav-item/index.d.ts +1 -0
- package/components/navbar/nav-item/index.js +2 -1
- package/components/navigation/breadcrumb/index.d.ts +1 -0
- package/components/navigation/menu/index.d.ts +1 -0
- package/components/navigation/menu/index.js +5 -4
- package/components/navigation/popover/index.d.ts +2 -1
- package/components/navigation/popover/index.js +1 -1
- package/components/page/error-boundary/index.js +5 -5
- package/components/page/index.js +13 -9
- package/components/page/partial/index.d.ts +1 -0
- package/components/prefab/container/index.js +2 -1
- package/context/WidgetProvider.js +2 -2
- package/core/app.service.js +40 -35
- package/core/constants/events.js +6 -0
- package/core/constants/index.d.ts +9 -1
- package/core/constants/index.js +32 -5
- package/core/formatter/date-formatters.d.ts +1 -1
- package/core/formatter/date-formatters.js +38 -13
- package/core/formatter/types.d.ts +1 -1
- package/core/proxy-service.js +15 -5
- package/core/security.service.d.ts +12 -0
- package/core/util/index.js +3 -2
- package/higherOrder/BaseApp.js +2 -2
- package/higherOrder/BasePage.d.ts +0 -17
- package/higherOrder/BasePage.js +53 -104
- package/higherOrder/BasePrefab.js +69 -59
- package/higherOrder/props.d.ts +1 -0
- package/higherOrder/withBaseWrapper.js +3 -4
- package/hooks/useAccess.js +13 -0
- package/mui-config/theme-provider.d.ts +3 -0
- package/mui-config/theme.d.ts +2 -0
- package/mui-config/theme.js +1 -4
- package/package-lock.json +2640 -615
- package/package.json +23 -4
- package/runtime-dynamic/App.d.ts +7 -0
- package/runtime-dynamic/App.js +144 -0
- package/runtime-dynamic/app-initializer.d.ts +15 -0
- package/runtime-dynamic/app-initializer.js +447 -0
- package/runtime-dynamic/components/ErrorBoundary.d.ts +18 -0
- package/runtime-dynamic/components/ErrorBoundary.js +93 -0
- package/runtime-dynamic/components/PageWrapper.d.ts +1 -0
- package/runtime-dynamic/components/PageWrapper.js +43 -0
- package/runtime-dynamic/components/PrefabPreview.d.ts +1 -0
- package/runtime-dynamic/components/PrefabPreview.js +84 -0
- package/runtime-dynamic/components/partial-content.d.ts +15 -0
- package/runtime-dynamic/components/partial-content.js +50 -0
- package/runtime-dynamic/components/prefab-content.d.ts +10 -0
- package/runtime-dynamic/components/prefab-content.js +31 -0
- package/runtime-dynamic/components/use-dynamic-component.d.ts +10 -0
- package/runtime-dynamic/components/use-dynamic-component.js +165 -0
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +8 -0
- package/runtime-dynamic/factories/build-base-page-like-component.js +59 -0
- package/runtime-dynamic/factories/prefab-factory.d.ts +3 -0
- package/runtime-dynamic/factories/prefab-factory.js +82 -0
- package/runtime-dynamic/factories/startup-info.d.ts +6 -0
- package/runtime-dynamic/factories/startup-info.js +28 -0
- package/runtime-dynamic/factories/utils.d.ts +23 -0
- package/runtime-dynamic/factories/utils.js +131 -0
- package/runtime-dynamic/index.d.ts +14 -0
- package/runtime-dynamic/index.js +191 -0
- package/runtime-dynamic/main.d.ts +2 -0
- package/runtime-dynamic/main.js +84 -0
- package/runtime-dynamic/preview-mode.d.ts +15 -0
- package/runtime-dynamic/preview-mode.js +31 -0
- package/runtime-dynamic/preview-navigation.d.ts +6 -0
- package/runtime-dynamic/preview-navigation.js +38 -0
- package/runtime-dynamic/preview-resource-base.d.ts +12 -0
- package/runtime-dynamic/preview-resource-base.js +65 -0
- package/runtime-dynamic/registry/component-registry.d.ts +3 -0
- package/runtime-dynamic/registry/component-registry.js +353 -0
- package/runtime-dynamic/registry/custom-widget-registry.d.ts +7 -0
- package/runtime-dynamic/registry/custom-widget-registry.js +18 -0
- package/runtime-dynamic/registry/index.d.ts +2 -0
- package/runtime-dynamic/registry/index.js +63 -0
- package/runtime-dynamic/registry/store.d.ts +9 -0
- package/runtime-dynamic/registry/store.js +26 -0
- package/runtime-dynamic/routes.d.ts +2 -0
- package/runtime-dynamic/routes.js +107 -0
- package/runtime-dynamic/services/app-extension-provider.d.ts +1 -0
- package/runtime-dynamic/services/app-extension-provider.js +45 -0
- package/runtime-dynamic/services/cache.d.ts +29 -0
- package/runtime-dynamic/services/cache.js +57 -0
- package/runtime-dynamic/services/component-ref-provider.d.ts +12 -0
- package/runtime-dynamic/services/component-ref-provider.js +149 -0
- package/runtime-dynamic/services/css-scoping.d.ts +2 -0
- package/runtime-dynamic/services/css-scoping.js +53 -0
- package/runtime-dynamic/services/fragment-url.d.ts +16 -0
- package/runtime-dynamic/services/fragment-url.js +74 -0
- package/runtime-dynamic/services/index.d.ts +10 -0
- package/runtime-dynamic/services/index.js +152 -0
- package/runtime-dynamic/services/markup-transpiler.d.ts +12 -0
- package/runtime-dynamic/services/markup-transpiler.js +250 -0
- package/runtime-dynamic/services/prefab-resources.d.ts +18 -0
- package/runtime-dynamic/services/prefab-resources.js +159 -0
- package/runtime-dynamic/services/resource-manager.d.ts +2 -0
- package/runtime-dynamic/services/resource-manager.js +66 -0
- package/runtime-dynamic/services/script-executor.d.ts +8 -0
- package/runtime-dynamic/services/script-executor.js +90 -0
- package/runtime-dynamic/services/variable-factory.d.ts +2 -0
- package/runtime-dynamic/services/variable-factory.js +260 -0
- package/runtime-dynamic/services/variable-registry.d.ts +12 -0
- package/runtime-dynamic/services/variable-registry.js +118 -0
- package/runtime-dynamic/services/variable-transpiler.d.ts +5 -0
- package/runtime-dynamic/services/variable-transpiler.js +159 -0
- package/runtime-dynamic/shims/next-image.d.ts +35 -0
- package/runtime-dynamic/shims/next-image.js +60 -0
- package/runtime-dynamic/shims/next-link.d.ts +25 -0
- package/runtime-dynamic/shims/next-link.js +33 -0
- package/runtime-dynamic/shims/next-navigation.d.ts +16 -0
- package/runtime-dynamic/shims/next-navigation.js +52 -0
- package/runtime-dynamic/utils/index.d.ts +9 -0
- package/runtime-dynamic/utils/index.js +40 -0
- package/store/middleware/navigationMiddleware.js +1 -1
- package/store/slices/appConfigSlice.js +10 -8
- package/store/slices/authSlice.js +46 -32
- package/tsconfig.declaration.tsbuildinfo +1 -1
- package/types/index.d.ts +1 -0
- package/utils/attr.js +71 -14
- package/utils/custom-expression/index.d.ts +43 -0
- package/utils/custom-expression/index.js +161 -0
- package/utils/custom-expression/parser.d.ts +15 -0
- package/utils/custom-expression/parser.js +208 -0
- package/utils/layoutsize-util.d.ts +1 -0
- package/utils/layoutsize-util.js +57 -0
- package/utils/lib-error-skipper.d.ts +4 -26
- package/utils/lib-error-skipper.js +41 -165
- package/utils/style-utils.d.ts +6 -0
- package/utils/style-utils.js +10 -1
- package/variables/metadata.service.js +2 -3
- package/variables/model-variable.js +10 -7
- package/variables/service-variable.d.ts +1 -0
- package/variables/service-variable.js +26 -6
- package/components/input/epoch/datetime/styled.d.ts +0 -78
- package/components/input/epoch/datetime/styled.js +0 -90
|
@@ -106,24 +106,21 @@ var WmRating = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
106
106
|
var getStarState = (0, _react.useCallback)(function (index) {
|
|
107
107
|
var isActive = isStarActive(index);
|
|
108
108
|
var isHovered = isStarHovered(index);
|
|
109
|
+
var labelColor = isActive ? iconcolor !== null && iconcolor !== void 0 ? iconcolor : DEFAULT_COLORS.inactive : DEFAULT_COLORS.inactive;
|
|
110
|
+
var borderColorVar = isHovered ? iconcolor !== null && iconcolor !== void 0 ? iconcolor : "transparent" : "transparent";
|
|
111
|
+
var starStyle = _objectSpread({
|
|
112
|
+
"--wm-rating-star-color": labelColor,
|
|
113
|
+
"--wm-rating-star-border-color": borderColorVar
|
|
114
|
+
}, iconsize ? {
|
|
115
|
+
"--wm-rating-star-font-size": iconsize
|
|
116
|
+
} : {});
|
|
109
117
|
return {
|
|
110
118
|
isActive: isActive,
|
|
111
119
|
isHovered: isHovered,
|
|
112
|
-
color: isActive ? iconcolor : isHovered ? iconcolor : DEFAULT_COLORS.inactive,
|
|
113
120
|
iconClass: isActive ? activeiconclass : inactiveiconclass,
|
|
114
|
-
|
|
115
|
-
fontSize: iconsize,
|
|
116
|
-
opacity: readonly ? 0.5 : 1,
|
|
117
|
-
pointerEvents: readonly ? "none" : "auto",
|
|
118
|
-
transition: "all 0.2s ease-in-out",
|
|
119
|
-
color: isActive ? iconcolor : DEFAULT_COLORS.inactive,
|
|
120
|
-
borderColor: isHovered ? iconcolor : "transparent",
|
|
121
|
-
"& .app-icon": {
|
|
122
|
-
color: "inherit"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
121
|
+
starStyle: starStyle
|
|
125
122
|
};
|
|
126
|
-
}, [isStarActive, isStarHovered, iconcolor, activeiconclass, inactiveiconclass, iconsize
|
|
123
|
+
}, [isStarActive, isStarHovered, iconcolor, activeiconclass, inactiveiconclass, iconsize]);
|
|
127
124
|
|
|
128
125
|
// Event handlers
|
|
129
126
|
var invokeOnChange = (0, _react.useCallback)(function (newValue) {
|
|
@@ -394,7 +391,7 @@ var WmRating = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
394
391
|
var _getStarState = getStarState(rate.index),
|
|
395
392
|
isActive = _getStarState.isActive,
|
|
396
393
|
iconClass = _getStarState.iconClass,
|
|
397
|
-
|
|
394
|
+
starStyle = _getStarState.starStyle;
|
|
398
395
|
return __jsx(_Tooltip["default"], {
|
|
399
396
|
key: rate.key,
|
|
400
397
|
title: rate.label,
|
|
@@ -411,11 +408,11 @@ var WmRating = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
411
408
|
return handleMouseOver(rate);
|
|
412
409
|
},
|
|
413
410
|
onMouseLeave: handleMouseLeave,
|
|
414
|
-
|
|
415
|
-
className: (0, _clsx["default"])("app-icon-container", isActive && "active")
|
|
411
|
+
style: starStyle,
|
|
412
|
+
className: (0, _clsx["default"])("app-icon-container", "wm-rating-star", readonly && "wm-rating-star-readonly", isActive && "active")
|
|
416
413
|
}, __jsx(_material.Box, {
|
|
417
414
|
component: "i",
|
|
418
|
-
className: (0, _clsx["default"])("app-icon", iconClass),
|
|
415
|
+
className: (0, _clsx["default"])("app-icon", "wm-rating-star-icon", iconClass),
|
|
419
416
|
"aria-hidden": "true"
|
|
420
417
|
}), __jsx("input", {
|
|
421
418
|
type: "radio",
|
|
@@ -53,6 +53,7 @@ declare const WmSelectStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
53
53
|
eventCallback?: (eventName: string, data: any) => void;
|
|
54
54
|
forwardedRef?: React.ForwardedRef<any>;
|
|
55
55
|
viewParent?: any;
|
|
56
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
56
57
|
hint?: string;
|
|
57
58
|
arialabel?: string;
|
|
58
59
|
tabindex?: number;
|
|
@@ -149,6 +150,7 @@ declare const _default: React.ComponentType<{
|
|
|
149
150
|
eventCallback?: (eventName: string, data: any) => void;
|
|
150
151
|
forwardedRef?: React.ForwardedRef<any>;
|
|
151
152
|
viewParent?: any;
|
|
153
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
152
154
|
arialabel?: string;
|
|
153
155
|
tabindex?: number;
|
|
154
156
|
styles?: React.CSSProperties;
|
|
@@ -458,10 +458,7 @@ var WmSelect = /*#__PURE__*/_react["default"].memo(function (props) {
|
|
|
458
458
|
}, placeholder), groupby && transformedDataset ? transformedDataset.map(function (group) {
|
|
459
459
|
return __jsx("optgroup", {
|
|
460
460
|
key: group.key,
|
|
461
|
-
label: group.key
|
|
462
|
-
style: {
|
|
463
|
-
backgroundColor: "rgba(0, 0, 0, .1)"
|
|
464
|
-
}
|
|
461
|
+
label: group.key
|
|
465
462
|
}, group.data.map(function (item) {
|
|
466
463
|
return __jsx("option", {
|
|
467
464
|
key: "".concat(group.key, "-").concat(item.key),
|
|
@@ -45,6 +45,7 @@ declare const WmSliderStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
45
45
|
eventCallback?: (eventName: string, data: any) => void;
|
|
46
46
|
forwardedRef?: React.ForwardedRef<any>;
|
|
47
47
|
viewParent?: any;
|
|
48
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
48
49
|
hint?: string;
|
|
49
50
|
arialabel?: string;
|
|
50
51
|
tabindex?: number;
|
|
@@ -137,6 +138,7 @@ declare const _default: React.ComponentType<{
|
|
|
137
138
|
eventCallback?: (eventName: string, data: any) => void;
|
|
138
139
|
forwardedRef?: React.ForwardedRef<any>;
|
|
139
140
|
viewParent?: any;
|
|
141
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
140
142
|
arialabel?: string;
|
|
141
143
|
tabindex?: number;
|
|
142
144
|
styles?: React.CSSProperties;
|
|
@@ -63,7 +63,6 @@ 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);
|
|
67
66
|
var _useState2 = (0, _react.useState)(false),
|
|
68
67
|
isTouched = _useState2[0],
|
|
69
68
|
setIsTouched = _useState2[1];
|
|
@@ -110,15 +109,17 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
110
109
|
}
|
|
111
110
|
prevDatavalueRef.current = newVal;
|
|
112
111
|
}, [onChange, name]);
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
var
|
|
112
|
+
var sliderControlStyle = (0, _react.useMemo)(function () {
|
|
113
|
+
var min = Number(minvalue || 0);
|
|
114
|
+
var max = Number(maxvalue || 100);
|
|
115
|
+
var current = Number(value) || 0;
|
|
116
|
+
var denominator = max - min;
|
|
117
|
+
var sliderValue = denominator === 0 ? 100 : 100 - (current - min) / denominator * 100;
|
|
116
118
|
var safePercent = Math.min(100, Math.max(0, sliderValue));
|
|
117
|
-
|
|
119
|
+
return {
|
|
120
|
+
"--wm-slider-end": "".concat(safePercent, "%")
|
|
121
|
+
};
|
|
118
122
|
}, [value, minvalue, maxvalue]);
|
|
119
|
-
(0, _react.useEffect)(function () {
|
|
120
|
-
updateSliderValue();
|
|
121
|
-
}, [value, updateSliderValue]);
|
|
122
123
|
var handleBlur = (0, _react.useCallback)(function (e) {
|
|
123
124
|
setIsTouched(true);
|
|
124
125
|
}, [listener, name, props, value]);
|
|
@@ -250,8 +251,8 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
250
251
|
"aria-hidden": "true",
|
|
251
252
|
className: starticon
|
|
252
253
|
})), __jsx(_Box["default"], {
|
|
253
|
-
className: "slider-control",
|
|
254
|
-
|
|
254
|
+
className: "slider-control wm-slider-control",
|
|
255
|
+
style: sliderControlStyle
|
|
255
256
|
}, !showmarkers && (minvalue || maxvalue) && __jsx(_react["default"].Fragment, null, __jsx(_Box["default"], {
|
|
256
257
|
component: "span",
|
|
257
258
|
className: "app-slider-value pull-left"
|
|
@@ -301,9 +302,9 @@ var WmSlider = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
301
302
|
}, markerItems.map(function (marker, index) {
|
|
302
303
|
return __jsx("span", {
|
|
303
304
|
key: index,
|
|
304
|
-
className: "marker-wrapper",
|
|
305
|
+
className: "marker-wrapper wm-slider-marker-wrapper",
|
|
305
306
|
style: {
|
|
306
|
-
left: marker.left
|
|
307
|
+
"--wm-slider-marker-left": "".concat(marker.left, "px")
|
|
307
308
|
},
|
|
308
309
|
title: marker.label
|
|
309
310
|
}, __jsx("span", {
|
|
@@ -56,6 +56,7 @@ 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);
|
|
59
60
|
hint?: string;
|
|
60
61
|
arialabel?: string;
|
|
61
62
|
tabindex?: number;
|
|
@@ -154,6 +155,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
154
155
|
eventCallback?: (eventName: string, data: any) => void;
|
|
155
156
|
forwardedRef?: React.ForwardedRef<any>;
|
|
156
157
|
viewParent?: any;
|
|
158
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
157
159
|
arialabel?: string;
|
|
158
160
|
tabindex?: number;
|
|
159
161
|
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/delay"));
|
|
20
|
+
var _delay = _interopRequireDefault(require("lodash-es/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: "app-label help-block supporting-text",
|
|
435
|
+
className: (0, _clsx["default"])("app-label help-block supporting-text", "wm-text-helper-text", displayError && "wm-text-helper-text-error"),
|
|
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, leadingiconclass && "with-leading-icon", trailingiconclass && "with-trailing-icon", isTouched ? "ng-touched" : "ng-untouched", displayError && "ng-invalid"),
|
|
470
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, className, "wm-text-input", 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,17 +476,6 @@ 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
|
-
}
|
|
490
479
|
}
|
|
491
480
|
}));
|
|
492
481
|
}, function (prev, current) {
|
|
@@ -43,6 +43,7 @@ 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);
|
|
46
47
|
hint?: string;
|
|
47
48
|
arialabel?: string;
|
|
48
49
|
tabindex?: number;
|
|
@@ -128,6 +129,7 @@ declare const _default: React.ComponentType<{
|
|
|
128
129
|
eventCallback?: (eventName: string, data: any) => void;
|
|
129
130
|
forwardedRef?: React.ForwardedRef<any>;
|
|
130
131
|
viewParent?: any;
|
|
132
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
131
133
|
arialabel?: string;
|
|
132
134
|
tabindex?: number;
|
|
133
135
|
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/delay"));
|
|
17
|
+
var _delay = _interopRequireDefault(require("lodash-es/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", isTouched ? "ng-touched" : "ng-untouched", isDirty && "ng-invalid"),
|
|
321
|
+
className: (0, _clsx["default"])("app-input-wrapper", "wm-textarea-root", 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,19 +334,16 @@ 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, className, isTouched ? "ng-touched" : "ng-untouched", isDirty && "ng-invalid", isEditable ? "wm-textarea-editable" : ""),
|
|
337
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, "wm-textarea-input", className, isTouched ? "ng-touched" : "ng-untouched", isDirty && "ng-invalid", isEditable ? "wm-textarea-editable" : ""),
|
|
338
|
+
style: _objectSpread({}, styles.height ? {
|
|
339
|
+
"--wm-textarea-height": "".concat(styles.height)
|
|
340
|
+
} : {}),
|
|
338
341
|
pattern: regexp
|
|
339
342
|
}
|
|
340
343
|
},
|
|
341
344
|
slots: _objectSpread({}, maxchars ? {
|
|
342
345
|
formHelperText: TextareaCount
|
|
343
|
-
} : {})
|
|
344
|
-
sx: {
|
|
345
|
-
width: "100%",
|
|
346
|
-
"& .MuiInputBase-input": _objectSpread({}, styles.height ? {
|
|
347
|
-
height: "".concat(styles.height, " !important")
|
|
348
|
-
} : {})
|
|
349
|
-
}
|
|
346
|
+
} : {})
|
|
350
347
|
}, events)));
|
|
351
348
|
}, function (prev, current) {
|
|
352
349
|
var keys = ["datavalue", "disabled", "required", "readonly", "placeholder", "maxchars", "tabindex", "shortcutkey", "autofocus", "arialabel", "limitdisplaytext", "hidden"];
|
|
@@ -36,6 +36,7 @@ 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);
|
|
39
40
|
hint?: string;
|
|
40
41
|
arialabel?: string;
|
|
41
42
|
tabindex?: number;
|
|
@@ -117,6 +118,7 @@ declare const _default: React.ComponentType<{
|
|
|
117
118
|
eventCallback?: (eventName: string, data: any) => void;
|
|
118
119
|
forwardedRef?: React.ForwardedRef<any>;
|
|
119
120
|
viewParent?: any;
|
|
121
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
120
122
|
arialabel?: string;
|
|
121
123
|
tabindex?: number;
|
|
122
124
|
styles?: React.CSSProperties;
|
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
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); }
|
|
16
17
|
var __jsx = _react["default"].createElement;
|
|
17
18
|
var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
@@ -80,10 +81,7 @@ var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
80
81
|
className: "form-control-static",
|
|
81
82
|
href: fileUrl
|
|
82
83
|
}, __jsx(_image["default"], {
|
|
83
|
-
|
|
84
|
-
height: "2em"
|
|
85
|
-
},
|
|
86
|
-
className: "wi wi-file",
|
|
84
|
+
className: "wi wi-file wm-upload-existing-image",
|
|
87
85
|
src: fileUrl,
|
|
88
86
|
alt: "Existing file"
|
|
89
87
|
})) : __jsx(_link["default"], {
|
|
@@ -102,7 +100,7 @@ var WmUpload = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
102
100
|
return __jsx("div", {
|
|
103
101
|
className: className,
|
|
104
102
|
style: styles
|
|
105
|
-
}, renderExistingFile(), __jsx("input", (0, _extends2["default"])({}, props, {
|
|
103
|
+
}, renderExistingFile(), __jsx("input", (0, _extends2["default"])({}, (0, _attr.removeInvalidAttributes)(props), {
|
|
106
104
|
hidden: props.hidden,
|
|
107
105
|
ref: fileInputRef,
|
|
108
106
|
type: "file",
|
|
@@ -13,6 +13,7 @@ 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,
|
|
16
17
|
className = props.className,
|
|
17
18
|
id = props.id;
|
|
18
19
|
return __jsx(_material.Box, {
|
|
@@ -20,7 +21,7 @@ var WmFooter = exports.WmFooter = function WmFooter(props) {
|
|
|
20
21
|
sx: styles,
|
|
21
22
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className),
|
|
22
23
|
id: id
|
|
23
|
-
}, children);
|
|
24
|
+
}, render ? render(props) : children);
|
|
24
25
|
};
|
|
25
26
|
WmFooter.displayName = "WmFooter";
|
|
26
27
|
|
|
@@ -13,6 +13,7 @@ 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,
|
|
16
17
|
className = props.className,
|
|
17
18
|
id = props.id;
|
|
18
19
|
return __jsx(_Box["default"], {
|
|
@@ -23,7 +24,7 @@ var WmHeader = exports.WmHeader = function WmHeader(props) {
|
|
|
23
24
|
}, __jsx(_Box["default"], {
|
|
24
25
|
component: "div",
|
|
25
26
|
className: "app-header-container"
|
|
26
|
-
}, children));
|
|
27
|
+
}, render ? render(props) : children));
|
|
27
28
|
};
|
|
28
29
|
WmHeader.displayName = "WmHeader";
|
|
29
30
|
|
|
@@ -15,6 +15,7 @@ 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,
|
|
18
19
|
className = props.className,
|
|
19
20
|
_props$columnwidth = props.columnwidth,
|
|
20
21
|
columnwidth = _props$columnwidth === void 0 ? 2 : _props$columnwidth,
|
|
@@ -37,7 +38,7 @@ var WmLeftPanel = exports.WmLeftPanel = function WmLeftPanel(props) {
|
|
|
37
38
|
component: "div",
|
|
38
39
|
sx: styles,
|
|
39
40
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className, "col-sm-".concat(columnwidth, " ").concat(navtype ? "app-nav-".concat(navtype) : "", " ").concat(navheight ? "app-nav-".concat(navheight) : ""))
|
|
40
|
-
}, children);
|
|
41
|
+
}, render ? render(props) : children);
|
|
41
42
|
};
|
|
42
43
|
WmLeftPanel.displayName = "WmLeftPanel";
|
|
43
44
|
|
|
@@ -13,6 +13,7 @@ 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,
|
|
16
17
|
className = props.className,
|
|
17
18
|
_props$columnwidth = props.columnwidth,
|
|
18
19
|
columnwidth = _props$columnwidth === void 0 ? 2 : _props$columnwidth,
|
|
@@ -21,7 +22,7 @@ var WmRightPanel = exports.WmRightPanel = function WmRightPanel(props) {
|
|
|
21
22
|
id: id,
|
|
22
23
|
sx: styles,
|
|
23
24
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className, "col-sm-".concat(columnwidth))
|
|
24
|
-
}, children);
|
|
25
|
+
}, render ? render(props) : children);
|
|
25
26
|
};
|
|
26
27
|
WmRightPanel.displayName = "WmRightPanel";
|
|
27
28
|
|
|
@@ -13,6 +13,7 @@ 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,
|
|
16
17
|
className = props.className,
|
|
17
18
|
id = props.id;
|
|
18
19
|
return __jsx(_Box["default"], {
|
|
@@ -23,7 +24,7 @@ var WmTopNav = exports.WmTopNav = function WmTopNav(props) {
|
|
|
23
24
|
role: "navigation",
|
|
24
25
|
"aria-label": "Second level navigation",
|
|
25
26
|
"data-role": "page-topnav"
|
|
26
|
-
}, children);
|
|
27
|
+
}, render ? render(props) : children);
|
|
27
28
|
};
|
|
28
29
|
WmTopNav.displayName = "WmTopNav";
|
|
29
30
|
|
|
@@ -40,6 +40,7 @@ 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);
|
|
43
44
|
hint?: string;
|
|
44
45
|
arialabel?: string;
|
|
45
46
|
tabindex?: number;
|
|
@@ -16,6 +16,7 @@ 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");
|
|
19
20
|
var _excluded = ["className", "children", "styles", "id", "title", "brandHref", "showToggle", "listener"];
|
|
20
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); }
|
|
21
22
|
var __jsx = _react["default"].createElement;
|
|
@@ -54,7 +55,7 @@ var WmNavbar = exports.WmNavbar = /*#__PURE__*/(0, _react.memo)(function (props)
|
|
|
54
55
|
style: processedStyles,
|
|
55
56
|
className: (0, _clsx["default"])(DEFAULT_CLASS, className),
|
|
56
57
|
id: id
|
|
57
|
-
}, restProps), __jsx(_Box["default"], {
|
|
58
|
+
}, (0, _attr.removeInvalidAttributes)(restProps)), __jsx(_Box["default"], {
|
|
58
59
|
component: "div",
|
|
59
60
|
className: "container-fluid"
|
|
60
61
|
}, __jsx(_Box["default"], {
|
|
@@ -66,6 +66,7 @@ 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);
|
|
69
70
|
hint?: string;
|
|
70
71
|
arialabel?: string;
|
|
71
72
|
tabindex?: number;
|
|
@@ -36,6 +36,7 @@ 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);
|
|
39
40
|
hint?: string;
|
|
40
41
|
arialabel?: string;
|
|
41
42
|
tabindex?: number;
|
|
@@ -13,6 +13,7 @@ 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");
|
|
16
17
|
var _excluded = ["className", "styles", "id", "onMouseEnter", "onMouseLeave", "name"];
|
|
17
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); }
|
|
18
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -29,7 +30,7 @@ var WmNavItem = exports.WmNavItem = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
29
30
|
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
30
31
|
return __jsx(_ListItem["default"], (0, _extends2["default"])({
|
|
31
32
|
component: "li"
|
|
32
|
-
}, rest, {
|
|
33
|
+
}, (0, _attr.removeInvalidAttributes)(rest), {
|
|
33
34
|
name: name,
|
|
34
35
|
id: id,
|
|
35
36
|
sx: _objectSpread(_objectSpread({
|
|
@@ -39,6 +39,7 @@ 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);
|
|
42
43
|
hint?: string;
|
|
43
44
|
arialabel?: string;
|
|
44
45
|
tabindex?: number;
|
|
@@ -60,6 +60,7 @@ 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);
|
|
63
64
|
hint?: string;
|
|
64
65
|
arialabel?: string;
|
|
65
66
|
tabindex?: number;
|
|
@@ -30,6 +30,7 @@ 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");
|
|
33
34
|
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"];
|
|
34
35
|
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); }
|
|
35
36
|
var __jsx = _react["default"].createElement;
|
|
@@ -369,7 +370,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
369
370
|
icon: ((_item$dataObject4 = item.dataObject) === null || _item$dataObject4 === void 0 ? void 0 : _item$dataObject4.icon) || icon,
|
|
370
371
|
link: link,
|
|
371
372
|
target: (_item$dataObject5 = item.dataObject) === null || _item$dataObject5 === void 0 ? void 0 : _item$dataObject5.target
|
|
372
|
-
});
|
|
373
|
+
}, item === null || item === void 0 ? void 0 : item.value);
|
|
373
374
|
if (onSelect) {
|
|
374
375
|
onSelect(event, props, simplifiedItem);
|
|
375
376
|
}
|
|
@@ -975,7 +976,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
975
976
|
height: height !== undefined ? typeof height === "number" ? "".concat(height, "px") : height : undefined,
|
|
976
977
|
textAlign: menualign
|
|
977
978
|
}
|
|
978
|
-
}, restProps), iconclass && __jsx("i", {
|
|
979
|
+
}, (0, _attr.removeInvalidAttributes)(restProps)), iconclass && __jsx("i", {
|
|
979
980
|
className: (0, _clsx["default"])("app-icon", iconclass),
|
|
980
981
|
"aria-hidden": "true"
|
|
981
982
|
}), __jsx("span", {
|
|
@@ -985,7 +986,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
985
986
|
}, caption || ""), __jsx("span", {
|
|
986
987
|
className: (0, _clsx["default"])("pull-right caret fa", menuPosition !== null && menuPosition !== void 0 && menuPosition.startsWith("up") ? _constants.CARET_CLS.UP : _constants.CARET_CLS.DOWN)
|
|
987
988
|
})) : __jsx(_Button["default"], (0, _extends2["default"])({
|
|
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" : ""),
|
|
989
|
+
className: (0, _clsx["default"])("btn dropdown-toggle", "icon-position-".concat(iconposition), "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" : ""),
|
|
989
990
|
ref: buttonRef,
|
|
990
991
|
onClick: handleMenuClick,
|
|
991
992
|
"aria-haspopup": "true",
|
|
@@ -997,7 +998,7 @@ var WmMenu = exports.WmMenu = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
997
998
|
width: width !== undefined ? typeof width === "number" ? "".concat(width, "px") : width : undefined,
|
|
998
999
|
height: height !== undefined ? typeof height === "number" ? "".concat(height, "px") : height : undefined
|
|
999
1000
|
}, buttonStyles), menuContainerStyles)
|
|
1000
|
-
}, restProps), iconclass && __jsx("i", {
|
|
1001
|
+
}, (0, _attr.removeInvalidAttributes)(restProps)), iconclass && __jsx("i", {
|
|
1001
1002
|
className: (0, _clsx["default"])("app-icon", iconclass),
|
|
1002
1003
|
"aria-hidden": "true"
|
|
1003
1004
|
}), __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?: "disabled" | "always" | "outsideClick";
|
|
24
24
|
contentanimation?: string;
|
|
25
25
|
onLoad?: (widget: WmPopoverProps) => void | Function;
|
|
26
26
|
onShow?: (event: Event, widget: WmPopoverProps) => void;
|
|
@@ -71,6 +71,7 @@ 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);
|
|
74
75
|
hint?: string;
|
|
75
76
|
arialabel?: string;
|
|
76
77
|
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/debounce"));
|
|
12
|
+
var _debounce = _interopRequireDefault(require("lodash-es/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");
|