@wavemaker-ai/react-runtime 1.0.0-rc.647469 → 1.0.0-rc.647499
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
|
@@ -38,7 +38,7 @@ var WmDialog = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
38
38
|
open: props.isopen,
|
|
39
39
|
onClose: handleClose,
|
|
40
40
|
className: (0, _clsx["default"])("app-dialog modal-dialog dialog-view", props.className)
|
|
41
|
-
}), __jsx(_dialogContent.WmDialogContent, props, showheader !== false
|
|
41
|
+
}), __jsx(_dialogContent.WmDialogContent, props, showheader !== false && __jsx(_dialogHeader.WmDialogHeader, {
|
|
42
42
|
name: "",
|
|
43
43
|
listener: {},
|
|
44
44
|
titleid: "design-dialog-".concat(props.title),
|
|
@@ -51,9 +51,7 @@ var WmDialog = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
51
51
|
iconmargin: props.iconmargin,
|
|
52
52
|
iconstyle: props.iconstyle,
|
|
53
53
|
closable: props.closable
|
|
54
|
-
})
|
|
55
|
-
className: "sr-only"
|
|
56
|
-
}, props.title), props.children));
|
|
54
|
+
}), props.children));
|
|
57
55
|
}, function (prevProps, nextProps) {
|
|
58
56
|
var keys = ["isopen", "sheetposition", "sheet", "styles", "dialogtype", "showheader", "title", "onClose", "close", "children", "modal", "closable"];
|
|
59
57
|
return keys.every(function (key) {
|
|
@@ -41,6 +41,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
41
41
|
eventCallback?: (eventName: string, data: any) => void;
|
|
42
42
|
forwardedRef?: React.ForwardedRef<any>;
|
|
43
43
|
viewParent?: any;
|
|
44
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
44
45
|
hint?: string;
|
|
45
46
|
arialabel?: string;
|
|
46
47
|
tabindex?: number;
|
|
@@ -40,6 +40,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
40
40
|
eventCallback?: (eventName: string, data: any) => void;
|
|
41
41
|
forwardedRef?: React.ForwardedRef<any>;
|
|
42
42
|
viewParent?: any;
|
|
43
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
43
44
|
hint?: string;
|
|
44
45
|
arialabel?: string;
|
|
45
46
|
tabindex?: number;
|
|
@@ -43,6 +43,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
43
43
|
eventCallback?: (eventName: string, data: any) => void;
|
|
44
44
|
forwardedRef?: React.ForwardedRef<any>;
|
|
45
45
|
viewParent?: any;
|
|
46
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
46
47
|
hint?: string;
|
|
47
48
|
arialabel?: string;
|
|
48
49
|
tabindex?: number;
|
|
@@ -57,6 +57,7 @@ declare const _default: React.ComponentType<{
|
|
|
57
57
|
eventCallback?: (eventName: string, data: any) => void;
|
|
58
58
|
forwardedRef?: React.ForwardedRef<any>;
|
|
59
59
|
viewParent?: any;
|
|
60
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
60
61
|
hint?: string;
|
|
61
62
|
arialabel?: string;
|
|
62
63
|
tabindex?: number;
|
|
@@ -56,6 +56,7 @@ declare const WmIframeDialogStandalone: {
|
|
|
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;
|
|
@@ -148,6 +149,7 @@ declare const _default: {
|
|
|
148
149
|
eventCallback?: (eventName: string, data: any) => void;
|
|
149
150
|
forwardedRef?: React.ForwardedRef<any>;
|
|
150
151
|
viewParent?: any;
|
|
152
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
151
153
|
hint?: string;
|
|
152
154
|
arialabel?: string;
|
|
153
155
|
tabindex?: number;
|
|
@@ -54,6 +54,7 @@ declare const WmLoginDialogStandalone: {
|
|
|
54
54
|
eventCallback?: (eventName: string, data: any) => void;
|
|
55
55
|
forwardedRef?: React.ForwardedRef<any>;
|
|
56
56
|
viewParent?: any;
|
|
57
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
57
58
|
hint?: string;
|
|
58
59
|
arialabel?: string;
|
|
59
60
|
tabindex?: number;
|
|
@@ -134,6 +135,7 @@ declare const _default: {
|
|
|
134
135
|
eventCallback?: (eventName: string, data: any) => void;
|
|
135
136
|
forwardedRef?: React.ForwardedRef<any>;
|
|
136
137
|
viewParent?: any;
|
|
138
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
137
139
|
hint?: string;
|
|
138
140
|
arialabel?: string;
|
|
139
141
|
tabindex?: number;
|
|
@@ -49,6 +49,7 @@ declare const WmPageDialogStandalone: {
|
|
|
49
49
|
eventCallback?: (eventName: string, data: any) => void;
|
|
50
50
|
forwardedRef?: React.ForwardedRef<any>;
|
|
51
51
|
viewParent?: any;
|
|
52
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
52
53
|
hint?: string;
|
|
53
54
|
arialabel?: string;
|
|
54
55
|
tabindex?: number;
|
|
@@ -133,6 +134,7 @@ declare const _default: {
|
|
|
133
134
|
eventCallback?: (eventName: string, data: any) => void;
|
|
134
135
|
forwardedRef?: React.ForwardedRef<any>;
|
|
135
136
|
viewParent?: any;
|
|
137
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
136
138
|
hint?: string;
|
|
137
139
|
arialabel?: string;
|
|
138
140
|
tabindex?: number;
|
|
@@ -51,6 +51,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
51
51
|
eventCallback?: (eventName: string, data: any) => void;
|
|
52
52
|
forwardedRef?: React.ForwardedRef<any>;
|
|
53
53
|
viewParent?: any;
|
|
54
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
54
55
|
hint?: string;
|
|
55
56
|
arialabel?: string;
|
|
56
57
|
tabindex?: number;
|
|
@@ -17,6 +17,7 @@ var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
|
17
17
|
var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
|
|
18
18
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
19
19
|
var _resourceUrl = require("@wavemaker-ai/react-runtime/utils/resource-url");
|
|
20
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
20
21
|
var _excluded = ["iconurl", "iconclass", "iconwidth", "iconheight", "iconmargin", "iconposition", "caption", "badgevalue", "children", "styles", "className", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onKeydown", "onKeypress", "onKeyup", "listener", "name", "disabled", "type", "shortcutkey", "arialabel", "show"];
|
|
21
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
22
23
|
var __jsx = _react["default"].createElement;
|
|
@@ -79,7 +80,7 @@ var WmButton = exports.WmButton = /*#__PURE__*/(0, _react.memo)(function (props)
|
|
|
79
80
|
if (!props.stopPropagation) {
|
|
80
81
|
event.stopPropagation();
|
|
81
82
|
}
|
|
82
|
-
onClick === null || onClick === void 0 || onClick(event, listener === null || listener === void 0 || (_listener$Widgets = listener.Widgets) === null || _listener$Widgets === void 0 ? void 0 : _listener$Widgets[(props === null || props === void 0 ? void 0 : props.name) || ""]);
|
|
83
|
+
onClick === null || onClick === void 0 || onClick(event, (listener === null || listener === void 0 || (_listener$Widgets = listener.Widgets) === null || _listener$Widgets === void 0 ? void 0 : _listener$Widgets[(props === null || props === void 0 ? void 0 : props.name) || ""]) || props);
|
|
83
84
|
}
|
|
84
85
|
function handleOnBlur(event) {
|
|
85
86
|
event.preventDefault();
|
|
@@ -175,7 +176,7 @@ var WmButton = exports.WmButton = /*#__PURE__*/(0, _react.memo)(function (props)
|
|
|
175
176
|
"aria-label": safeCaption,
|
|
176
177
|
title: props.hint,
|
|
177
178
|
show: show === null || show === void 0 ? void 0 : show.toString()
|
|
178
|
-
}, restProps, EVENTS), iconurl && __jsx(_image["default"], {
|
|
179
|
+
}, (0, _attr.removeInvalidAttributes)(restProps), EVENTS), iconurl && __jsx(_image["default"], {
|
|
179
180
|
"data-identifier": "img",
|
|
180
181
|
alt: "button image",
|
|
181
182
|
src: (0, _resourceUrl.prefixPrefabResourceUrl)(iconurl, props.prefabName),
|
|
@@ -183,7 +184,7 @@ var WmButton = exports.WmButton = /*#__PURE__*/(0, _react.memo)(function (props)
|
|
|
183
184
|
width: parseInt(iconwidth || "24", 10),
|
|
184
185
|
height: parseInt(iconheight || "24", 10),
|
|
185
186
|
style: {
|
|
186
|
-
width: iconwidth
|
|
187
|
+
width: iconwidth,
|
|
187
188
|
height: iconheight || "auto",
|
|
188
189
|
margin: iconmargin || "0 4"
|
|
189
190
|
}
|
|
@@ -43,6 +43,7 @@ declare const _default: React.ComponentType<{
|
|
|
43
43
|
eventCallback?: (eventName: string, data: any) => void;
|
|
44
44
|
forwardedRef?: React.ForwardedRef<any>;
|
|
45
45
|
viewParent?: any;
|
|
46
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
46
47
|
hint?: string;
|
|
47
48
|
arialabel?: string;
|
|
48
49
|
tabindex?: number;
|
|
@@ -12,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _styles = require("@mui/material/styles");
|
|
14
14
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
15
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
15
16
|
var _excluded = ["name", "vertical", "show", "horizontalalign", "children", "styles", "className"],
|
|
16
17
|
_excluded2 = ["ref", "showindevice", "iswidget"];
|
|
17
18
|
var __jsx = _react["default"].createElement;
|
|
@@ -57,7 +58,7 @@ var WmButtonGroup = exports.WmButtonGroup = function WmButtonGroup(props) {
|
|
|
57
58
|
title: name,
|
|
58
59
|
id: name,
|
|
59
60
|
name: name
|
|
60
|
-
}, restWithoutRef), children);
|
|
61
|
+
}, (0, _attr.removeInvalidAttributes)(restWithoutRef)), children);
|
|
61
62
|
};
|
|
62
63
|
WmButtonGroup.displayName = "WmButtonGroup";
|
|
63
64
|
|
|
@@ -46,6 +46,7 @@ export declare const WmCalendar: React.ForwardRefExoticComponent<Omit<{
|
|
|
46
46
|
eventCallback?: (eventName: string, data: any) => void;
|
|
47
47
|
forwardedRef?: React.ForwardedRef<any>;
|
|
48
48
|
viewParent?: any;
|
|
49
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
49
50
|
hint?: string;
|
|
50
51
|
arialabel?: string;
|
|
51
52
|
styles?: React.CSSProperties;
|
|
@@ -102,6 +103,7 @@ declare const _default: React.ComponentType<{
|
|
|
102
103
|
eventCallback?: (eventName: string, data: any) => void;
|
|
103
104
|
forwardedRef?: React.ForwardedRef<any>;
|
|
104
105
|
viewParent?: any;
|
|
106
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
105
107
|
hint?: string;
|
|
106
108
|
arialabel?: string;
|
|
107
109
|
tabindex?: number;
|
|
@@ -79,6 +79,7 @@ declare const WmChipsStandalone: React.ComponentType<import("../../data/form/for
|
|
|
79
79
|
eventCallback?: (eventName: string, data: any) => void;
|
|
80
80
|
forwardedRef?: React.ForwardedRef<any>;
|
|
81
81
|
viewParent?: any;
|
|
82
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
82
83
|
hint?: string;
|
|
83
84
|
arialabel?: string;
|
|
84
85
|
tabindex?: number;
|
|
@@ -200,6 +201,7 @@ declare const _default: React.ComponentType<{
|
|
|
200
201
|
eventCallback?: (eventName: string, data: any) => void;
|
|
201
202
|
forwardedRef?: React.ForwardedRef<any>;
|
|
202
203
|
viewParent?: any;
|
|
204
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
203
205
|
arialabel?: string;
|
|
204
206
|
tabindex?: number;
|
|
205
207
|
styles?: React.CSSProperties;
|
|
@@ -41,6 +41,7 @@ declare const WmColorPickerStandalone: React.ComponentType<import("../../data/fo
|
|
|
41
41
|
eventCallback?: (eventName: string, data: any) => void;
|
|
42
42
|
forwardedRef?: React.ForwardedRef<any>;
|
|
43
43
|
viewParent?: any;
|
|
44
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
44
45
|
hint?: string;
|
|
45
46
|
arialabel?: string;
|
|
46
47
|
tabindex?: number;
|
|
@@ -126,6 +127,7 @@ declare const _default: React.ComponentType<{
|
|
|
126
127
|
eventCallback?: (eventName: string, data: any) => void;
|
|
127
128
|
forwardedRef?: React.ForwardedRef<any>;
|
|
128
129
|
viewParent?: any;
|
|
130
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
129
131
|
arialabel?: string;
|
|
130
132
|
tabindex?: number;
|
|
131
133
|
styles?: React.CSSProperties;
|
|
@@ -43,6 +43,7 @@ declare const _default: React.ComponentType<{
|
|
|
43
43
|
eventCallback?: (eventName: string, data: any) => void;
|
|
44
44
|
forwardedRef?: React.ForwardedRef<any>;
|
|
45
45
|
viewParent?: any;
|
|
46
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
46
47
|
hint?: string;
|
|
47
48
|
arialabel?: string;
|
|
48
49
|
tabindex?: number;
|
|
@@ -54,6 +54,7 @@ declare const WmCurrencyStandalone: React.ComponentType<import("../../data/form/
|
|
|
54
54
|
eventCallback?: (eventName: string, data: any) => void;
|
|
55
55
|
forwardedRef?: React.ForwardedRef<any>;
|
|
56
56
|
viewParent?: any;
|
|
57
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
57
58
|
hint?: string;
|
|
58
59
|
arialabel?: string;
|
|
59
60
|
tabindex?: number;
|
|
@@ -151,6 +152,7 @@ declare const _default: React.ComponentType<{
|
|
|
151
152
|
eventCallback?: (eventName: string, data: any) => void;
|
|
152
153
|
forwardedRef?: React.ForwardedRef<any>;
|
|
153
154
|
viewParent?: any;
|
|
155
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
154
156
|
arialabel?: string;
|
|
155
157
|
tabindex?: number;
|
|
156
158
|
styles?: React.CSSProperties;
|
|
@@ -41,6 +41,7 @@ declare const WmCheckboxStandalone: React.ComponentType<import("../../../data/fo
|
|
|
41
41
|
eventCallback?: (eventName: string, data: any) => void;
|
|
42
42
|
forwardedRef?: React.ForwardedRef<any>;
|
|
43
43
|
viewParent?: any;
|
|
44
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
44
45
|
hint?: string;
|
|
45
46
|
arialabel?: string;
|
|
46
47
|
tabindex?: number;
|
|
@@ -125,6 +126,7 @@ declare const _default: React.ComponentType<{
|
|
|
125
126
|
eventCallback?: (eventName: string, data: any) => void;
|
|
126
127
|
forwardedRef?: React.ForwardedRef<any>;
|
|
127
128
|
viewParent?: any;
|
|
129
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
128
130
|
arialabel?: string;
|
|
129
131
|
tabindex?: number;
|
|
130
132
|
styles?: React.CSSProperties;
|
|
@@ -63,6 +63,7 @@ declare const WmCheckboxsetStandalone: React.ComponentType<import("../../../data
|
|
|
63
63
|
eventCallback?: (eventName: string, data: any) => void;
|
|
64
64
|
forwardedRef?: React.ForwardedRef<any>;
|
|
65
65
|
viewParent?: any;
|
|
66
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
66
67
|
hint?: string;
|
|
67
68
|
arialabel?: string;
|
|
68
69
|
tabindex?: number;
|
|
@@ -167,6 +168,7 @@ declare const _default: React.ComponentType<{
|
|
|
167
168
|
eventCallback?: (eventName: string, data: any) => void;
|
|
168
169
|
forwardedRef?: React.ForwardedRef<any>;
|
|
169
170
|
viewParent?: any;
|
|
171
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
170
172
|
arialabel?: string;
|
|
171
173
|
tabindex?: number;
|
|
172
174
|
styles?: React.CSSProperties;
|
|
@@ -59,6 +59,7 @@ declare const WmRadiosetStandalone: React.ComponentType<import("../../../data/fo
|
|
|
59
59
|
eventCallback?: (eventName: string, data: any) => void;
|
|
60
60
|
forwardedRef?: React.ForwardedRef<any>;
|
|
61
61
|
viewParent?: any;
|
|
62
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
62
63
|
hint?: string;
|
|
63
64
|
arialabel?: string;
|
|
64
65
|
styles?: React.CSSProperties;
|
|
@@ -159,6 +160,7 @@ declare const _default: React.ComponentType<{
|
|
|
159
160
|
eventCallback?: (eventName: string, data: any) => void;
|
|
160
161
|
forwardedRef?: React.ForwardedRef<any>;
|
|
161
162
|
viewParent?: any;
|
|
163
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
162
164
|
arialabel?: string;
|
|
163
165
|
styles?: React.CSSProperties;
|
|
164
166
|
children?: React.ReactNode;
|
|
@@ -54,6 +54,7 @@ declare const WmSwitchStandalone: React.ComponentType<import("../../../data/form
|
|
|
54
54
|
eventCallback?: (eventName: string, data: any) => void;
|
|
55
55
|
forwardedRef?: React.ForwardedRef<any>;
|
|
56
56
|
viewParent?: any;
|
|
57
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
57
58
|
hint?: string;
|
|
58
59
|
arialabel?: string;
|
|
59
60
|
tabindex?: number;
|
|
@@ -150,6 +151,7 @@ declare const _default: React.ComponentType<{
|
|
|
150
151
|
eventCallback?: (eventName: string, data: any) => void;
|
|
151
152
|
forwardedRef?: React.ForwardedRef<any>;
|
|
152
153
|
viewParent?: any;
|
|
154
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
153
155
|
arialabel?: string;
|
|
154
156
|
tabindex?: number;
|
|
155
157
|
styles?: React.CSSProperties;
|
|
@@ -180,11 +180,10 @@ var DatePickerPopover = function DatePickerPopover(props) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
var
|
|
184
|
-
"--wm-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
border: "none"
|
|
183
|
+
var calendarWidthVar = showweeks ? {
|
|
184
|
+
"--wm-datepicker-calendar-width": "420px"
|
|
185
|
+
} : {
|
|
186
|
+
"--wm-datepicker-calendar-width": "370px"
|
|
188
187
|
};
|
|
189
188
|
return __jsx(_material.Popover, {
|
|
190
189
|
open: open,
|
|
@@ -198,39 +197,22 @@ var DatePickerPopover = function DatePickerPopover(props) {
|
|
|
198
197
|
vertical: "top",
|
|
199
198
|
horizontal: adaptiveposition ? "right" : "left"
|
|
200
199
|
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
boxShadow: 3,
|
|
204
|
-
borderRadius: 1
|
|
205
|
-
},
|
|
206
|
-
"& .MuiDateCalendar-root": {
|
|
207
|
-
width: showweeks ? "420px" : "370px"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
className: "app-date"
|
|
200
|
+
className: "app-date wm-datepicker-popover",
|
|
201
|
+
style: calendarWidthVar
|
|
211
202
|
}, __jsx(_material.Paper, {
|
|
212
203
|
elevation: 0,
|
|
213
|
-
|
|
214
|
-
width: "auto",
|
|
215
|
-
pb: 2,
|
|
216
|
-
background: "var(--wm-datepicker-background)"
|
|
217
|
-
}
|
|
204
|
+
className: "wm-datepicker-popover-paper"
|
|
218
205
|
}, renderCalendarView(), showbuttonbar && (todaybutton || clearbutton) && __jsx(_material.Box, {
|
|
219
|
-
|
|
220
|
-
justifyContent: "space-between",
|
|
221
|
-
px: 2,
|
|
222
|
-
mt: 1
|
|
206
|
+
className: "wm-datepicker-button-bar"
|
|
223
207
|
}, todaybutton && __jsx(_material.Button, {
|
|
224
208
|
variant: "text",
|
|
225
209
|
onClick: handleTodayClick,
|
|
226
|
-
className: "btn today-btn",
|
|
227
|
-
disabled: isNavigationDisabled && !(0, _momentTimezone["default"])().isSame((0, _momentTimezone["default"])(getDateObj(restProps.mindate)), "day")
|
|
228
|
-
style: todayButtonStyle
|
|
210
|
+
className: "btn today-btn wm-datepicker-bar-btn",
|
|
211
|
+
disabled: isNavigationDisabled && !(0, _momentTimezone["default"])().isSame((0, _momentTimezone["default"])(getDateObj(restProps.mindate)), "day")
|
|
229
212
|
}, todaybuttonlabel), clearbutton && __jsx(_material.Button, {
|
|
230
213
|
variant: "text",
|
|
231
214
|
onClick: handleClearClick,
|
|
232
|
-
className: "btn clear-btn"
|
|
233
|
-
style: todayButtonStyle
|
|
215
|
+
className: "btn clear-btn wm-datepicker-bar-btn"
|
|
234
216
|
}, clearbuttonlabel))));
|
|
235
217
|
};
|
|
236
218
|
var _default = exports["default"] = DatePickerPopover;
|
|
@@ -37,6 +37,7 @@ declare const _default: React.ComponentType<{
|
|
|
37
37
|
eventCallback?: (eventName: string, data: any) => void;
|
|
38
38
|
forwardedRef?: React.ForwardedRef<any>;
|
|
39
39
|
viewParent?: any;
|
|
40
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
40
41
|
hint?: string;
|
|
41
42
|
arialabel?: string;
|
|
42
43
|
tabindex?: number;
|
|
@@ -37,6 +37,7 @@ declare const _default: React.ComponentType<{
|
|
|
37
37
|
eventCallback?: (eventName: string, data: any) => void;
|
|
38
38
|
forwardedRef?: React.ForwardedRef<any>;
|
|
39
39
|
viewParent?: any;
|
|
40
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
40
41
|
hint?: string;
|
|
41
42
|
arialabel?: string;
|
|
42
43
|
tabindex?: number;
|
|
@@ -16,7 +16,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
16
16
|
var _BaseDateTime = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/BaseDateTime"));
|
|
17
17
|
var _withFormController = _interopRequireDefault(require("@wavemaker-ai/react-runtime/components/data/form/form-controller/withFormController"));
|
|
18
18
|
var _utils = require("./utils");
|
|
19
|
-
var _styled = require("./styled");
|
|
20
19
|
var _compare = _interopRequireDefault(require("../../../../core/util/compare"));
|
|
21
20
|
var _withStandalone = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withStandalone"));
|
|
22
21
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
@@ -559,25 +558,12 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
559
558
|
},
|
|
560
559
|
InputLabelProps: {
|
|
561
560
|
shrink: floatinglabel ? undefined : false,
|
|
562
|
-
|
|
563
|
-
"&.MuiInputLabel-shrink": {
|
|
564
|
-
transform: "translate(14px, -9px) scale(0.75)",
|
|
565
|
-
transition: "transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"
|
|
566
|
-
},
|
|
567
|
-
"&:not(.MuiInputLabel-shrink)": {
|
|
568
|
-
transform: "translate(14px, 16px) scale(1)",
|
|
569
|
-
transition: "transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"
|
|
570
|
-
},
|
|
571
|
-
backgroundColor: "white"
|
|
572
|
-
} : undefined
|
|
561
|
+
className: floatinglabel ? "wm-datetime-input-label" : undefined
|
|
573
562
|
},
|
|
574
563
|
inputProps: _objectSpread(_objectSpread({
|
|
575
564
|
accessKey: shortcutkey,
|
|
576
565
|
"aria-invalid": invalidFormat || dateNotInRange,
|
|
577
|
-
className: "form-control app-textbox display-input"
|
|
578
|
-
style: {
|
|
579
|
-
boxSizing: "inherit"
|
|
580
|
-
}
|
|
566
|
+
className: "form-control app-textbox display-input wm-datetime-html-input"
|
|
581
567
|
}, disabled ? {
|
|
582
568
|
disabled: true
|
|
583
569
|
} : {}), readonly ? {
|
|
@@ -646,14 +632,15 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
646
632
|
showDaysOutsideCurrentMonth: selectfromothermonth,
|
|
647
633
|
slotProps: {
|
|
648
634
|
textField: {
|
|
649
|
-
|
|
650
|
-
display: "none"
|
|
651
|
-
}
|
|
635
|
+
className: "wm-datetime-picker-textfield-hidden"
|
|
652
636
|
},
|
|
653
637
|
popper: {
|
|
654
638
|
anchorEl: anchorRef.current,
|
|
655
639
|
placement: adaptiveposition ? "bottom-end" : "bottom-start",
|
|
656
|
-
|
|
640
|
+
className: "wm-datetime-date-picker-popper",
|
|
641
|
+
style: {
|
|
642
|
+
"--wm-datetime-calendar-width": showweeks ? "420px" : "370px"
|
|
643
|
+
}
|
|
657
644
|
},
|
|
658
645
|
calendarHeader: {
|
|
659
646
|
format: "MMMM YYYY"
|
|
@@ -672,7 +659,7 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
672
659
|
if (action === "today") handleToday();
|
|
673
660
|
if (action === "clear") handleClear();
|
|
674
661
|
},
|
|
675
|
-
|
|
662
|
+
className: "wm-datetime-datepicker-action-bar"
|
|
676
663
|
}
|
|
677
664
|
},
|
|
678
665
|
views: ["year", "month", "day"],
|
|
@@ -688,14 +675,12 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
688
675
|
ampm: showampmbuttons && (datepattern.includes("a") || datepattern.includes("A")),
|
|
689
676
|
slotProps: {
|
|
690
677
|
textField: {
|
|
691
|
-
|
|
692
|
-
display: "none"
|
|
693
|
-
}
|
|
678
|
+
className: "wm-datetime-picker-textfield-hidden"
|
|
694
679
|
},
|
|
695
680
|
popper: {
|
|
696
681
|
anchorEl: anchorRef.current,
|
|
697
682
|
placement: adaptiveposition ? "bottom-start" : "bottom-start",
|
|
698
|
-
|
|
683
|
+
className: "wm-datetime-time-picker-popper"
|
|
699
684
|
},
|
|
700
685
|
actionBar: {
|
|
701
686
|
actions: ["accept"]
|
|
@@ -37,6 +37,7 @@ declare const _default: React.ComponentType<{
|
|
|
37
37
|
eventCallback?: (eventName: string, data: any) => void;
|
|
38
38
|
forwardedRef?: React.ForwardedRef<any>;
|
|
39
39
|
viewParent?: any;
|
|
40
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
40
41
|
hint?: string;
|
|
41
42
|
arialabel?: string;
|
|
42
43
|
tabindex?: number;
|
|
@@ -14,23 +14,6 @@ export declare const DEFAULT_OUTPUT_FORMAT = "HH:mm:ss";
|
|
|
14
14
|
export declare const READONLY_STYLES: {
|
|
15
15
|
cursor: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const TIME_PICKER_STYLES: {
|
|
18
|
-
"& .MuiPaper-root": {
|
|
19
|
-
background: string;
|
|
20
|
-
padding: string;
|
|
21
|
-
borderRadius: string;
|
|
22
|
-
width: string;
|
|
23
|
-
boxShadow: string;
|
|
24
|
-
};
|
|
25
|
-
"& .Mui-selected": {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
color: string;
|
|
28
|
-
};
|
|
29
|
-
"& .Mui-selected:hover": {
|
|
30
|
-
backgroundColor: string;
|
|
31
|
-
color: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
17
|
export declare function updateListener(name: string | undefined, listener: any, props: any, displayValue: string, timestamp: string | null | undefined, datavalue: string | null | undefined): void;
|
|
35
18
|
export declare function createWidgetEvent(args: {
|
|
36
19
|
type: string;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.READONLY_STYLES = exports.DEFAULT_TIMEPATTERN = exports.DEFAULT_OUTPUT_FORMAT = exports.DEFAULT_CLASS = void 0;
|
|
8
8
|
exports.createWidgetEvent = createWidgetEvent;
|
|
9
9
|
exports.formatDisplayTimeValue = formatDisplayTimeValue;
|
|
10
10
|
exports.getSupportedTimeFormats = getSupportedTimeFormats;
|
|
@@ -203,23 +203,6 @@ var DEFAULT_OUTPUT_FORMAT = exports.DEFAULT_OUTPUT_FORMAT = "HH:mm:ss";
|
|
|
203
203
|
var READONLY_STYLES = exports.READONLY_STYLES = {
|
|
204
204
|
cursor: "not-allowed"
|
|
205
205
|
};
|
|
206
|
-
var TIME_PICKER_STYLES = exports.TIME_PICKER_STYLES = {
|
|
207
|
-
"& .MuiPaper-root": {
|
|
208
|
-
background: "var(--wm-timepicker-background)",
|
|
209
|
-
padding: "var(--wm-timepicker-padding)",
|
|
210
|
-
borderRadius: "var(--wm-timepicker-border-radius)",
|
|
211
|
-
width: "auto",
|
|
212
|
-
boxShadow: "none"
|
|
213
|
-
},
|
|
214
|
-
"& .Mui-selected": {
|
|
215
|
-
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
216
|
-
color: "var(--wm-btn-secondary-color) !important"
|
|
217
|
-
},
|
|
218
|
-
"& .Mui-selected:hover": {
|
|
219
|
-
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
220
|
-
color: "var(--wm-btn-secondary-color) !important"
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
206
|
function updateListener(name, listener, props, displayValue, timestamp, datavalue) {
|
|
224
207
|
// Update listener widget display value
|
|
225
208
|
|
|
@@ -67,6 +67,7 @@ declare const _default: React.ComponentType<{
|
|
|
67
67
|
eventCallback?: (eventName: string, data: any) => void;
|
|
68
68
|
forwardedRef?: React.ForwardedRef<any>;
|
|
69
69
|
viewParent?: any;
|
|
70
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
70
71
|
hint?: string;
|
|
71
72
|
arialabel?: string;
|
|
72
73
|
tabindex?: number;
|
|
@@ -49,6 +49,7 @@ declare const WmNumberStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
49
49
|
eventCallback?: (eventName: string, data: any) => void;
|
|
50
50
|
forwardedRef?: React.ForwardedRef<any>;
|
|
51
51
|
viewParent?: any;
|
|
52
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
52
53
|
hint?: string;
|
|
53
54
|
arialabel?: string;
|
|
54
55
|
tabindex?: number;
|
|
@@ -141,6 +142,7 @@ declare const _default: React.ComponentType<{
|
|
|
141
142
|
eventCallback?: (eventName: string, data: any) => void;
|
|
142
143
|
forwardedRef?: React.ForwardedRef<any>;
|
|
143
144
|
viewParent?: any;
|
|
145
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
144
146
|
arialabel?: string;
|
|
145
147
|
tabindex?: number;
|
|
146
148
|
styles?: React.CSSProperties;
|
|
@@ -71,6 +71,7 @@ declare const WmRatingStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
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;
|
|
@@ -184,6 +185,7 @@ declare const _default: React.ComponentType<{
|
|
|
184
185
|
eventCallback?: (eventName: string, data: any) => void;
|
|
185
186
|
forwardedRef?: React.ForwardedRef<any>;
|
|
186
187
|
viewParent?: any;
|
|
188
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
187
189
|
arialabel?: string;
|
|
188
190
|
tabindex?: number;
|
|
189
191
|
styles?: React.CSSProperties;
|