@wavemaker-ai/react-runtime 1.0.0-rc.309 → 1.0.0-rc.647469
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/navigation-action.js +5 -23
- package/components/advanced/carousel/index.d.ts +0 -1
- package/components/advanced/carousel/index.js +1 -2
- package/components/advanced/carousel/template.d.ts +0 -1
- package/components/advanced/carousel/template.js +1 -2
- package/components/advanced/login/index.d.ts +0 -1
- package/components/advanced/marquee/index.d.ts +0 -1
- package/components/advanced/marquee/index.js +1 -2
- package/components/basic/anchor/index.d.ts +0 -1
- package/components/basic/anchor/index.js +3 -4
- package/components/basic/audio/index.d.ts +0 -1
- package/components/basic/audio/index.js +2 -3
- package/components/basic/html/index.d.ts +0 -1
- package/components/basic/icon/index.d.ts +0 -1
- package/components/basic/icon/index.js +7 -4
- package/components/basic/iframe/iframe.utils.d.ts +1 -1
- package/components/basic/iframe/iframe.utils.js +4 -8
- package/components/basic/iframe/index.d.ts +0 -1
- package/components/basic/label/index.d.ts +0 -1
- package/components/basic/label/index.js +2 -3
- package/components/basic/message/index.js +1 -1
- package/components/basic/picture/index.d.ts +0 -1
- package/components/basic/picture/index.js +4 -3
- package/components/basic/progress-bar/index.d.ts +0 -1
- package/components/basic/progress-bar/index.js +1 -2
- package/components/basic/progress-circle/index.d.ts +0 -1
- package/components/basic/richtexteditor/index.d.ts +0 -2
- package/components/basic/search/index.d.ts +0 -3
- package/components/basic/search/index.js +4 -7
- package/components/basic/search/props.d.ts +0 -2
- package/components/basic/spinner/index.d.ts +0 -1
- package/components/basic/tile/index.d.ts +0 -1
- package/components/basic/tile/index.js +1 -2
- package/components/basic/tree/Components/TreeNodeComponent.js +5 -9
- package/components/basic/tree/index.d.ts +0 -1
- package/components/basic/tree/index.js +3 -14
- package/components/basic/tree/utils.d.ts +0 -2
- package/components/basic/tree/utils.js +1 -11
- package/components/basic/video/index.d.ts +0 -1
- package/components/basic/video/index.js +23 -40
- package/components/chart/index.d.ts +0 -1
- package/components/common/AppSpinner.js +5 -2
- package/components/container/accordion/accordion-pane/index.d.ts +0 -1
- package/components/container/accordion/accordion-pane/index.js +4 -1
- package/components/container/accordion/index.d.ts +0 -1
- package/components/container/index.d.ts +0 -3
- package/components/container/index.js +1 -6
- package/components/container/layout-grid/grid-column/index.d.ts +0 -1
- package/components/container/layout-grid/grid-row/index.d.ts +0 -1
- package/components/container/layout-grid/index.d.ts +0 -1
- package/components/container/layout-grid/index.js +8 -4
- package/components/container/linear-layout/index.d.ts +0 -1
- package/components/container/linear-layout/linear-layout-item/index.d.ts +0 -1
- package/components/container/panel/components/panel-header/index.js +6 -11
- package/components/container/panel/components/panel-header/props.d.ts +0 -5
- package/components/container/panel/index.d.ts +0 -1
- package/components/container/panel/index.js +1 -2
- package/components/container/props.d.ts +0 -2
- package/components/container/repeat-template/index.d.ts +1 -22
- package/components/container/repeat-template/index.js +1 -2
- package/components/container/tabs/index.d.ts +1 -3
- package/components/container/tabs/index.js +51 -102
- package/components/container/tabs/props.d.ts +0 -12
- package/components/container/tabs/tab-pane/index.d.ts +0 -1
- package/components/container/tabs/tab-pane/index.js +11 -28
- package/components/container/wizard/index.d.ts +0 -2
- package/components/container/wizard/wizard-step/index.d.ts +0 -1
- package/components/container/wizard/wizard-step/index.js +2 -2
- package/components/data/card/card-actions/index.d.ts +0 -1
- package/components/data/card/card-actions/index.js +5 -3
- package/components/data/card/card-content/index.d.ts +0 -1
- package/components/data/card/card-content/index.js +13 -3
- package/components/data/card/card-footer/index.d.ts +0 -1
- package/components/data/card/card-footer/index.js +5 -3
- package/components/data/card/index.d.ts +0 -1
- package/components/data/card/index.js +14 -3
- package/components/data/form/dynamic-fields/index.js +1 -7
- package/components/data/form/dynamic-fields/props.d.ts +0 -1
- package/components/data/form/form-action/index.d.ts +0 -2
- package/components/data/form/form-body/index.js +1 -2
- package/components/data/form/form-field/base-field.js +3 -4
- package/components/data/form/form-footer/index.js +1 -2
- package/components/data/list/components/ListItemWithTemplate.js +2 -4
- package/components/data/list/hooks/props.d.ts +2 -2
- package/components/data/list/hooks/useListEventHandlers.js +6 -6
- package/components/data/list/index.d.ts +0 -2
- package/components/data/list/index.js +4 -3
- package/components/data/list/props.d.ts +1 -2
- package/components/data/list/utils/list-widget-methods.d.ts +1 -2
- package/components/data/table/components/RowCells.d.ts +2 -16
- package/components/data/table/components/RowCells.js +24 -38
- package/components/data/table/components/TableBody.js +3 -11
- package/components/data/table/components/TableDataRow.d.ts +0 -3
- package/components/data/table/components/TableDataRow.js +3 -11
- package/components/data/table/components/TableHeader.js +4 -1
- package/components/data/table/hooks/index.d.ts +0 -1
- package/components/data/table/hooks/index.js +0 -12
- package/components/data/table/hooks/useDynamicColumns.js +1 -1
- package/components/data/table/hooks/useResponsiveColumns.d.ts +0 -1
- package/components/data/table/hooks/useRowSelection.d.ts +1 -1
- package/components/data/table/hooks/useRowSelection.js +5 -26
- package/components/data/table/hooks/useTableInitialization.js +1 -2
- package/components/data/table/index.d.ts +0 -4
- package/components/data/table/index.js +12 -77
- package/components/data/table/live-table/index.d.ts +0 -1
- package/components/data/table/props.d.ts +0 -7
- package/components/data/table/table-action/index.d.ts +0 -1
- package/components/data/table/table-column/index.d.ts +0 -1
- package/components/data/table/table-row/index.d.ts +0 -1
- package/components/data/table/table-row-action/index.d.ts +0 -1
- package/components/data/table/utils/buildSelectionColumns.js +1 -7
- package/components/data/table/utils/columnBuilder.js +1 -1
- package/components/data/table/utils/index.js +2 -2
- package/components/data/table/utils/renderDisplayCell.js +1 -1
- package/components/dialogs/alert-dialog/index.d.ts +0 -2
- package/components/dialogs/confirm-dialog/index.d.ts +0 -2
- package/components/dialogs/dialog/index.d.ts +0 -2
- package/components/dialogs/dialog/index.js +4 -2
- package/components/dialogs/dialog-actions/index.d.ts +0 -1
- package/components/dialogs/dialog-body/index.d.ts +0 -1
- package/components/dialogs/dialog-content/index.d.ts +0 -1
- package/components/dialogs/dialog-header/index.d.ts +0 -1
- package/components/dialogs/iframe-dialog/index.d.ts +0 -2
- package/components/dialogs/login-dialog/index.d.ts +0 -2
- package/components/dialogs/page-dialog/index.d.ts +0 -2
- package/components/form/button/index.d.ts +0 -1
- package/components/form/button/index.js +3 -4
- package/components/form/button-group/index.d.ts +0 -1
- package/components/form/button-group/index.js +1 -2
- package/components/input/calendar/index.d.ts +0 -2
- package/components/input/chips/index.d.ts +0 -2
- package/components/input/color-picker/index.d.ts +0 -2
- package/components/input/composite/index.d.ts +0 -1
- package/components/input/currency/index.d.ts +0 -2
- package/components/input/default/checkbox/index.d.ts +0 -2
- package/components/input/default/checkboxset/index.d.ts +0 -2
- package/components/input/default/radioset/index.d.ts +0 -2
- package/components/input/default/switch/index.d.ts +0 -2
- package/components/input/epoch/date/components/DatePickerPopover.js +29 -11
- package/components/input/epoch/date/index.d.ts +0 -1
- package/components/input/epoch/datetime/index.d.ts +0 -1
- package/components/input/epoch/datetime/index.js +25 -10
- package/components/input/epoch/datetime/styled.d.ts +78 -0
- package/components/input/epoch/datetime/styled.js +90 -0
- package/components/input/epoch/time/index.d.ts +0 -1
- package/components/input/epoch/time/index.js +1 -1
- package/components/input/epoch/time/utils.d.ts +17 -0
- package/components/input/epoch/time/utils.js +18 -1
- package/components/input/fileupload/index.d.ts +0 -1
- package/components/input/number/index.d.ts +0 -2
- package/components/input/rating/index.d.ts +0 -2
- package/components/input/rating/index.js +17 -14
- package/components/input/select/index.d.ts +0 -2
- package/components/input/select/index.js +4 -1
- package/components/input/slider/index.d.ts +0 -2
- package/components/input/slider/index.js +12 -13
- package/components/input/text/index.d.ts +0 -2
- package/components/input/text/index.js +14 -3
- package/components/input/textarea/index.d.ts +0 -2
- package/components/input/textarea/index.js +10 -7
- package/components/input/upload/index.d.ts +0 -2
- package/components/input/upload/index.js +5 -3
- package/components/layout/footer/index.js +1 -2
- package/components/layout/footer/props.d.ts +0 -1
- package/components/layout/header/index.js +1 -2
- package/components/layout/header/props.d.ts +0 -1
- package/components/layout/leftnav/index.js +1 -2
- package/components/layout/leftnav/props.d.ts +0 -1
- package/components/layout/rightnav/index.js +1 -2
- package/components/layout/rightnav/props.d.ts +0 -1
- package/components/layout/topnav/index.js +1 -2
- package/components/layout/topnav/props.d.ts +0 -1
- package/components/navbar/index.d.ts +0 -1
- package/components/navbar/index.js +1 -2
- package/components/navbar/nav/index.d.ts +0 -1
- package/components/navbar/nav-item/index.d.ts +0 -1
- package/components/navbar/nav-item/index.js +1 -2
- package/components/navigation/breadcrumb/index.d.ts +0 -1
- package/components/navigation/menu/index.d.ts +0 -1
- package/components/navigation/menu/index.js +4 -5
- package/components/navigation/popover/index.d.ts +1 -2
- package/components/navigation/popover/index.js +1 -1
- package/components/page/error-boundary/index.js +5 -5
- package/components/page/index.js +9 -13
- package/components/page/partial/index.d.ts +0 -1
- package/components/prefab/container/index.js +1 -2
- package/context/WidgetProvider.js +2 -2
- package/core/app.service.js +35 -40
- package/core/constants/events.js +0 -6
- package/core/constants/index.d.ts +1 -9
- package/core/constants/index.js +5 -32
- package/core/formatter/date-formatters.d.ts +1 -1
- package/core/formatter/date-formatters.js +13 -38
- package/core/formatter/types.d.ts +1 -1
- package/core/proxy-service.js +5 -15
- package/core/util/index.js +2 -3
- package/higherOrder/BaseApp.js +2 -2
- package/higherOrder/BasePage.d.ts +17 -0
- package/higherOrder/BasePage.js +104 -53
- package/higherOrder/BasePrefab.js +59 -69
- package/higherOrder/props.d.ts +0 -1
- package/higherOrder/withBaseWrapper.js +4 -3
- package/hooks/useAccess.js +0 -13
- package/mui-config/theme.js +4 -1
- package/package-lock.json +605 -2630
- package/package.json +4 -23
- package/store/middleware/navigationMiddleware.js +1 -1
- package/store/slices/appConfigSlice.js +8 -10
- package/store/slices/authSlice.js +32 -46
- package/tsconfig.declaration.tsbuildinfo +1 -1
- package/types/index.d.ts +0 -1
- package/utils/attr.js +14 -71
- package/utils/lib-error-skipper.d.ts +26 -4
- package/utils/lib-error-skipper.js +165 -41
- package/utils/style-utils.d.ts +0 -6
- package/utils/style-utils.js +1 -10
- package/variables/metadata.service.js +3 -2
- package/variables/model-variable.js +7 -10
- package/variables/service-variable.d.ts +0 -1
- package/variables/service-variable.js +6 -26
- package/actions/base-action.d.ts +0 -7
- package/actions/login-action.d.ts +0 -11
- package/actions/logout-action.d.ts +0 -10
- package/actions/navigation-action.d.ts +0 -35
- package/actions/notification-action.d.ts +0 -20
- package/actions/timer-action.d.ts +0 -27
- package/components/data/table/hooks/useCustomExpressionColumns.d.ts +0 -16
- package/components/data/table/hooks/useCustomExpressionColumns.js +0 -88
- package/core/security.service.d.ts +0 -12
- package/mui-config/theme-provider.d.ts +0 -3
- package/mui-config/theme.d.ts +0 -2
- package/runtime-dynamic/App.d.ts +0 -7
- package/runtime-dynamic/App.js +0 -144
- package/runtime-dynamic/app-initializer.d.ts +0 -15
- package/runtime-dynamic/app-initializer.js +0 -447
- package/runtime-dynamic/components/ErrorBoundary.d.ts +0 -18
- package/runtime-dynamic/components/ErrorBoundary.js +0 -93
- package/runtime-dynamic/components/PageWrapper.d.ts +0 -1
- package/runtime-dynamic/components/PageWrapper.js +0 -43
- package/runtime-dynamic/components/PrefabPreview.d.ts +0 -1
- package/runtime-dynamic/components/PrefabPreview.js +0 -84
- package/runtime-dynamic/components/partial-content.d.ts +0 -15
- package/runtime-dynamic/components/partial-content.js +0 -50
- package/runtime-dynamic/components/prefab-content.d.ts +0 -10
- package/runtime-dynamic/components/prefab-content.js +0 -31
- package/runtime-dynamic/components/use-dynamic-component.d.ts +0 -10
- package/runtime-dynamic/components/use-dynamic-component.js +0 -165
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +0 -8
- package/runtime-dynamic/factories/build-base-page-like-component.js +0 -59
- package/runtime-dynamic/factories/prefab-factory.d.ts +0 -3
- package/runtime-dynamic/factories/prefab-factory.js +0 -82
- package/runtime-dynamic/factories/startup-info.d.ts +0 -6
- package/runtime-dynamic/factories/startup-info.js +0 -28
- package/runtime-dynamic/factories/utils.d.ts +0 -23
- package/runtime-dynamic/factories/utils.js +0 -131
- package/runtime-dynamic/index.d.ts +0 -14
- package/runtime-dynamic/index.js +0 -191
- package/runtime-dynamic/main.d.ts +0 -2
- package/runtime-dynamic/main.js +0 -84
- package/runtime-dynamic/preview-mode.d.ts +0 -15
- package/runtime-dynamic/preview-mode.js +0 -31
- package/runtime-dynamic/preview-navigation.d.ts +0 -6
- package/runtime-dynamic/preview-navigation.js +0 -38
- package/runtime-dynamic/preview-resource-base.d.ts +0 -12
- package/runtime-dynamic/preview-resource-base.js +0 -65
- package/runtime-dynamic/registry/component-registry.d.ts +0 -3
- package/runtime-dynamic/registry/component-registry.js +0 -353
- package/runtime-dynamic/registry/custom-widget-registry.d.ts +0 -7
- package/runtime-dynamic/registry/custom-widget-registry.js +0 -18
- package/runtime-dynamic/registry/index.d.ts +0 -2
- package/runtime-dynamic/registry/index.js +0 -63
- package/runtime-dynamic/registry/store.d.ts +0 -9
- package/runtime-dynamic/registry/store.js +0 -26
- package/runtime-dynamic/routes.d.ts +0 -2
- package/runtime-dynamic/routes.js +0 -107
- package/runtime-dynamic/services/app-extension-provider.d.ts +0 -1
- package/runtime-dynamic/services/app-extension-provider.js +0 -45
- package/runtime-dynamic/services/cache.d.ts +0 -29
- package/runtime-dynamic/services/cache.js +0 -57
- package/runtime-dynamic/services/component-ref-provider.d.ts +0 -12
- package/runtime-dynamic/services/component-ref-provider.js +0 -149
- package/runtime-dynamic/services/css-scoping.d.ts +0 -2
- package/runtime-dynamic/services/css-scoping.js +0 -53
- package/runtime-dynamic/services/fragment-url.d.ts +0 -16
- package/runtime-dynamic/services/fragment-url.js +0 -74
- package/runtime-dynamic/services/index.d.ts +0 -10
- package/runtime-dynamic/services/index.js +0 -152
- package/runtime-dynamic/services/markup-transpiler.d.ts +0 -12
- package/runtime-dynamic/services/markup-transpiler.js +0 -250
- package/runtime-dynamic/services/prefab-resources.d.ts +0 -18
- package/runtime-dynamic/services/prefab-resources.js +0 -159
- package/runtime-dynamic/services/resource-manager.d.ts +0 -2
- package/runtime-dynamic/services/resource-manager.js +0 -66
- package/runtime-dynamic/services/script-executor.d.ts +0 -8
- package/runtime-dynamic/services/script-executor.js +0 -90
- package/runtime-dynamic/services/variable-factory.d.ts +0 -2
- package/runtime-dynamic/services/variable-factory.js +0 -260
- package/runtime-dynamic/services/variable-registry.d.ts +0 -12
- package/runtime-dynamic/services/variable-registry.js +0 -118
- package/runtime-dynamic/services/variable-transpiler.d.ts +0 -5
- package/runtime-dynamic/services/variable-transpiler.js +0 -159
- package/runtime-dynamic/shims/next-image.d.ts +0 -35
- package/runtime-dynamic/shims/next-image.js +0 -60
- package/runtime-dynamic/shims/next-link.d.ts +0 -25
- package/runtime-dynamic/shims/next-link.js +0 -33
- package/runtime-dynamic/shims/next-navigation.d.ts +0 -16
- package/runtime-dynamic/shims/next-navigation.js +0 -52
- package/runtime-dynamic/utils/index.d.ts +0 -9
- package/runtime-dynamic/utils/index.js +0 -40
- package/utils/custom-expression/index.d.ts +0 -43
- package/utils/custom-expression/index.js +0 -161
- package/utils/custom-expression/parser.d.ts +0 -15
- package/utils/custom-expression/parser.js +0 -208
- package/utils/layoutsize-util.d.ts +0 -1
- package/utils/layoutsize-util.js +0 -57
|
@@ -43,7 +43,6 @@ declare const _default: React.ComponentType<{
|
|
|
43
43
|
eventCallback?: (eventName: string, data: any) => void;
|
|
44
44
|
forwardedRef?: React.ForwardedRef<any>;
|
|
45
45
|
viewParent?: any;
|
|
46
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
47
46
|
hint?: string;
|
|
48
47
|
arialabel?: string;
|
|
49
48
|
tabindex?: number;
|
|
@@ -54,7 +54,6 @@ 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);
|
|
58
57
|
hint?: string;
|
|
59
58
|
arialabel?: string;
|
|
60
59
|
tabindex?: number;
|
|
@@ -152,7 +151,6 @@ declare const _default: React.ComponentType<{
|
|
|
152
151
|
eventCallback?: (eventName: string, data: any) => void;
|
|
153
152
|
forwardedRef?: React.ForwardedRef<any>;
|
|
154
153
|
viewParent?: any;
|
|
155
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
156
154
|
arialabel?: string;
|
|
157
155
|
tabindex?: number;
|
|
158
156
|
styles?: React.CSSProperties;
|
|
@@ -41,7 +41,6 @@ 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);
|
|
45
44
|
hint?: string;
|
|
46
45
|
arialabel?: string;
|
|
47
46
|
tabindex?: number;
|
|
@@ -126,7 +125,6 @@ declare const _default: React.ComponentType<{
|
|
|
126
125
|
eventCallback?: (eventName: string, data: any) => void;
|
|
127
126
|
forwardedRef?: React.ForwardedRef<any>;
|
|
128
127
|
viewParent?: any;
|
|
129
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
130
128
|
arialabel?: string;
|
|
131
129
|
tabindex?: number;
|
|
132
130
|
styles?: React.CSSProperties;
|
|
@@ -63,7 +63,6 @@ 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);
|
|
67
66
|
hint?: string;
|
|
68
67
|
arialabel?: string;
|
|
69
68
|
tabindex?: number;
|
|
@@ -168,7 +167,6 @@ declare const _default: React.ComponentType<{
|
|
|
168
167
|
eventCallback?: (eventName: string, data: any) => void;
|
|
169
168
|
forwardedRef?: React.ForwardedRef<any>;
|
|
170
169
|
viewParent?: any;
|
|
171
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
172
170
|
arialabel?: string;
|
|
173
171
|
tabindex?: number;
|
|
174
172
|
styles?: React.CSSProperties;
|
|
@@ -59,7 +59,6 @@ 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);
|
|
63
62
|
hint?: string;
|
|
64
63
|
arialabel?: string;
|
|
65
64
|
styles?: React.CSSProperties;
|
|
@@ -160,7 +159,6 @@ declare const _default: React.ComponentType<{
|
|
|
160
159
|
eventCallback?: (eventName: string, data: any) => void;
|
|
161
160
|
forwardedRef?: React.ForwardedRef<any>;
|
|
162
161
|
viewParent?: any;
|
|
163
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
164
162
|
arialabel?: string;
|
|
165
163
|
styles?: React.CSSProperties;
|
|
166
164
|
children?: React.ReactNode;
|
|
@@ -54,7 +54,6 @@ 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);
|
|
58
57
|
hint?: string;
|
|
59
58
|
arialabel?: string;
|
|
60
59
|
tabindex?: number;
|
|
@@ -151,7 +150,6 @@ declare const _default: React.ComponentType<{
|
|
|
151
150
|
eventCallback?: (eventName: string, data: any) => void;
|
|
152
151
|
forwardedRef?: React.ForwardedRef<any>;
|
|
153
152
|
viewParent?: any;
|
|
154
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
155
153
|
arialabel?: string;
|
|
156
154
|
tabindex?: number;
|
|
157
155
|
styles?: React.CSSProperties;
|
|
@@ -180,10 +180,11 @@ var DatePickerPopover = function DatePickerPopover(props) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
var
|
|
184
|
-
"--wm-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
var todayButtonStyle = {
|
|
184
|
+
"--wm-btn-color": "var(--wm-color-primary)",
|
|
185
|
+
"--wm-btn-state-layer-color": "var(--wm-color-primary)",
|
|
186
|
+
background: "none",
|
|
187
|
+
border: "none"
|
|
187
188
|
};
|
|
188
189
|
return __jsx(_material.Popover, {
|
|
189
190
|
open: open,
|
|
@@ -197,22 +198,39 @@ var DatePickerPopover = function DatePickerPopover(props) {
|
|
|
197
198
|
vertical: "top",
|
|
198
199
|
horizontal: adaptiveposition ? "right" : "left"
|
|
199
200
|
},
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
sx: {
|
|
202
|
+
"& .MuiPopover-paper": {
|
|
203
|
+
boxShadow: 3,
|
|
204
|
+
borderRadius: 1
|
|
205
|
+
},
|
|
206
|
+
"& .MuiDateCalendar-root": {
|
|
207
|
+
width: showweeks ? "420px" : "370px"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
className: "app-date"
|
|
202
211
|
}, __jsx(_material.Paper, {
|
|
203
212
|
elevation: 0,
|
|
204
|
-
|
|
213
|
+
sx: {
|
|
214
|
+
width: "auto",
|
|
215
|
+
pb: 2,
|
|
216
|
+
background: "var(--wm-datepicker-background)"
|
|
217
|
+
}
|
|
205
218
|
}, renderCalendarView(), showbuttonbar && (todaybutton || clearbutton) && __jsx(_material.Box, {
|
|
206
|
-
|
|
219
|
+
display: "flex",
|
|
220
|
+
justifyContent: "space-between",
|
|
221
|
+
px: 2,
|
|
222
|
+
mt: 1
|
|
207
223
|
}, todaybutton && __jsx(_material.Button, {
|
|
208
224
|
variant: "text",
|
|
209
225
|
onClick: handleTodayClick,
|
|
210
|
-
className: "btn today-btn
|
|
211
|
-
disabled: isNavigationDisabled && !(0, _momentTimezone["default"])().isSame((0, _momentTimezone["default"])(getDateObj(restProps.mindate)), "day")
|
|
226
|
+
className: "btn today-btn",
|
|
227
|
+
disabled: isNavigationDisabled && !(0, _momentTimezone["default"])().isSame((0, _momentTimezone["default"])(getDateObj(restProps.mindate)), "day"),
|
|
228
|
+
style: todayButtonStyle
|
|
212
229
|
}, todaybuttonlabel), clearbutton && __jsx(_material.Button, {
|
|
213
230
|
variant: "text",
|
|
214
231
|
onClick: handleClearClick,
|
|
215
|
-
className: "btn clear-btn
|
|
232
|
+
className: "btn clear-btn",
|
|
233
|
+
style: todayButtonStyle
|
|
216
234
|
}, clearbuttonlabel))));
|
|
217
235
|
};
|
|
218
236
|
var _default = exports["default"] = DatePickerPopover;
|
|
@@ -37,7 +37,6 @@ 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);
|
|
41
40
|
hint?: string;
|
|
42
41
|
arialabel?: string;
|
|
43
42
|
tabindex?: number;
|
|
@@ -37,7 +37,6 @@ 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);
|
|
41
40
|
hint?: string;
|
|
42
41
|
arialabel?: string;
|
|
43
42
|
tabindex?: number;
|
|
@@ -16,6 +16,7 @@ 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");
|
|
19
20
|
var _compare = _interopRequireDefault(require("../../../../core/util/compare"));
|
|
20
21
|
var _withStandalone = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withStandalone"));
|
|
21
22
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
@@ -558,12 +559,25 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
558
559
|
},
|
|
559
560
|
InputLabelProps: {
|
|
560
561
|
shrink: floatinglabel ? undefined : false,
|
|
561
|
-
|
|
562
|
+
sx: floatinglabel ? {
|
|
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
|
|
562
573
|
},
|
|
563
574
|
inputProps: _objectSpread(_objectSpread({
|
|
564
575
|
accessKey: shortcutkey,
|
|
565
576
|
"aria-invalid": invalidFormat || dateNotInRange,
|
|
566
|
-
className: "form-control app-textbox display-input
|
|
577
|
+
className: "form-control app-textbox display-input",
|
|
578
|
+
style: {
|
|
579
|
+
boxSizing: "inherit"
|
|
580
|
+
}
|
|
567
581
|
}, disabled ? {
|
|
568
582
|
disabled: true
|
|
569
583
|
} : {}), readonly ? {
|
|
@@ -632,15 +646,14 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
632
646
|
showDaysOutsideCurrentMonth: selectfromothermonth,
|
|
633
647
|
slotProps: {
|
|
634
648
|
textField: {
|
|
635
|
-
|
|
649
|
+
style: {
|
|
650
|
+
display: "none"
|
|
651
|
+
}
|
|
636
652
|
},
|
|
637
653
|
popper: {
|
|
638
654
|
anchorEl: anchorRef.current,
|
|
639
655
|
placement: adaptiveposition ? "bottom-end" : "bottom-start",
|
|
640
|
-
|
|
641
|
-
style: {
|
|
642
|
-
"--wm-datetime-calendar-width": showweeks ? "420px" : "370px"
|
|
643
|
-
}
|
|
656
|
+
sx: (0, _styled.datePickerSx)(showweeks)
|
|
644
657
|
},
|
|
645
658
|
calendarHeader: {
|
|
646
659
|
format: "MMMM YYYY"
|
|
@@ -659,7 +672,7 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
659
672
|
if (action === "today") handleToday();
|
|
660
673
|
if (action === "clear") handleClear();
|
|
661
674
|
},
|
|
662
|
-
|
|
675
|
+
sx: _styled.buttonStyles
|
|
663
676
|
}
|
|
664
677
|
},
|
|
665
678
|
views: ["year", "month", "day"],
|
|
@@ -675,12 +688,14 @@ var WmDateTime = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
675
688
|
ampm: showampmbuttons && (datepattern.includes("a") || datepattern.includes("A")),
|
|
676
689
|
slotProps: {
|
|
677
690
|
textField: {
|
|
678
|
-
|
|
691
|
+
style: {
|
|
692
|
+
display: "none"
|
|
693
|
+
}
|
|
679
694
|
},
|
|
680
695
|
popper: {
|
|
681
696
|
anchorEl: anchorRef.current,
|
|
682
697
|
placement: adaptiveposition ? "bottom-start" : "bottom-start",
|
|
683
|
-
|
|
698
|
+
sx: (0, _styled.timePickerSx)()
|
|
684
699
|
},
|
|
685
700
|
actionBar: {
|
|
686
701
|
actions: ["accept"]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const datePickerSx: (showweeks: boolean) => {
|
|
2
|
+
"& .MuiPaper-root": {
|
|
3
|
+
background: string;
|
|
4
|
+
padding: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
};
|
|
7
|
+
"& .MuiDateCalendar-root": {
|
|
8
|
+
width: string;
|
|
9
|
+
};
|
|
10
|
+
"& .MuiDayCalendar-header": {
|
|
11
|
+
justifyContent: string;
|
|
12
|
+
};
|
|
13
|
+
"& .MuiDayCalendar-weekNumber": {
|
|
14
|
+
marginTop: string;
|
|
15
|
+
textAlign: string;
|
|
16
|
+
};
|
|
17
|
+
"& .MuiDayCalendar-slideTransition": {
|
|
18
|
+
minHeight: string;
|
|
19
|
+
};
|
|
20
|
+
"& .MuiDayCalendar-weekNumberLabel": {
|
|
21
|
+
width: string;
|
|
22
|
+
padding: string;
|
|
23
|
+
};
|
|
24
|
+
"& .MuiTypography-caption": {
|
|
25
|
+
padding: string;
|
|
26
|
+
};
|
|
27
|
+
"& .MuiYearCalendar-root": {
|
|
28
|
+
width: string;
|
|
29
|
+
};
|
|
30
|
+
"& .MuiPickersDay-root.Mui-selected": {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
color: string;
|
|
33
|
+
fontWeight: string;
|
|
34
|
+
};
|
|
35
|
+
"& .MuiMonthCalendar-button.Mui-selected": {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
color: string;
|
|
38
|
+
fontWeight: string;
|
|
39
|
+
};
|
|
40
|
+
"& .MuiPickersDay-root.Mui-selected:hover": {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
color: string;
|
|
43
|
+
};
|
|
44
|
+
"& .MuiYearCalendar-button.Mui-selected": {
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
color: string;
|
|
47
|
+
fontWeight: string;
|
|
48
|
+
};
|
|
49
|
+
"& .MuiPickersDay-today": {
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const timePickerSx: () => {
|
|
54
|
+
"& .css-1y6l765-MuiPickersLayout-root": {
|
|
55
|
+
display: string;
|
|
56
|
+
};
|
|
57
|
+
"& .MuiPaper-root": {
|
|
58
|
+
background: string;
|
|
59
|
+
padding: string;
|
|
60
|
+
borderRadius: string;
|
|
61
|
+
};
|
|
62
|
+
"& .Mui-selected": {
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
"& .Mui-selected:hover": {
|
|
67
|
+
backgroundColor: string;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare const buttonStyles: () => {
|
|
72
|
+
"& .MuiButton-root": {
|
|
73
|
+
"--wm-btn-color": string;
|
|
74
|
+
"--wm-btn-state-layer-color": string;
|
|
75
|
+
background: string;
|
|
76
|
+
border: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.timePickerSx = exports.datePickerSx = exports.buttonStyles = void 0;
|
|
7
|
+
var datePickerSx = exports.datePickerSx = function datePickerSx(showweeks) {
|
|
8
|
+
return {
|
|
9
|
+
"& .MuiPaper-root": {
|
|
10
|
+
background: "var(--wm-datepicker-background)",
|
|
11
|
+
padding: "var(--wm-datepicker-padding)",
|
|
12
|
+
borderRadius: "var(--wm-datepicker-border-radius)"
|
|
13
|
+
},
|
|
14
|
+
"& .MuiDateCalendar-root": {
|
|
15
|
+
width: showweeks ? "420px" : "370px"
|
|
16
|
+
},
|
|
17
|
+
"& .MuiDayCalendar-header": {
|
|
18
|
+
justifyContent: "space-evenly"
|
|
19
|
+
},
|
|
20
|
+
"& .MuiDayCalendar-weekNumber": {
|
|
21
|
+
marginTop: "10px",
|
|
22
|
+
textAlign: "center"
|
|
23
|
+
},
|
|
24
|
+
"& .MuiDayCalendar-slideTransition": {
|
|
25
|
+
minHeight: "260px"
|
|
26
|
+
},
|
|
27
|
+
"& .MuiDayCalendar-weekNumberLabel": {
|
|
28
|
+
width: "32px !important",
|
|
29
|
+
padding: "0px 0px !important"
|
|
30
|
+
},
|
|
31
|
+
"& .MuiTypography-caption": {
|
|
32
|
+
padding: "0px 24px"
|
|
33
|
+
},
|
|
34
|
+
"& .MuiYearCalendar-root": {
|
|
35
|
+
width: "auto"
|
|
36
|
+
},
|
|
37
|
+
"& .MuiPickersDay-root.Mui-selected": {
|
|
38
|
+
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
39
|
+
color: "var(--wm-btn-secondary-color)",
|
|
40
|
+
fontWeight: "bold"
|
|
41
|
+
},
|
|
42
|
+
"& .MuiMonthCalendar-button.Mui-selected": {
|
|
43
|
+
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
44
|
+
color: "var(--wm-btn-secondary-color)",
|
|
45
|
+
fontWeight: "bold"
|
|
46
|
+
},
|
|
47
|
+
"& .MuiPickersDay-root.Mui-selected:hover": {
|
|
48
|
+
backgroundColor: "var(--wm-btn-secondary-background)",
|
|
49
|
+
color: "var(--wm-btn-secondary-color)"
|
|
50
|
+
},
|
|
51
|
+
"& .MuiYearCalendar-button.Mui-selected": {
|
|
52
|
+
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
53
|
+
color: "var(--wm-btn-secondary-color)",
|
|
54
|
+
fontWeight: "bold"
|
|
55
|
+
},
|
|
56
|
+
"& .MuiPickersDay-today": {
|
|
57
|
+
backgroundColor: "transparent !important"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
var timePickerSx = exports.timePickerSx = function timePickerSx() {
|
|
62
|
+
return {
|
|
63
|
+
"& .css-1y6l765-MuiPickersLayout-root": {
|
|
64
|
+
display: "inline-block"
|
|
65
|
+
},
|
|
66
|
+
"& .MuiPaper-root": {
|
|
67
|
+
background: "var(--wm-timepicker-background)",
|
|
68
|
+
padding: "var(--wm-timepicker-padding)",
|
|
69
|
+
borderRadius: "var(--wm-timepicker-border-radius)"
|
|
70
|
+
},
|
|
71
|
+
"& .Mui-selected": {
|
|
72
|
+
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
73
|
+
color: "var(--wm-btn-secondary-color) !important"
|
|
74
|
+
},
|
|
75
|
+
"& .Mui-selected:hover": {
|
|
76
|
+
backgroundColor: "var(--wm-btn-secondary-background) !important",
|
|
77
|
+
color: "var(--wm-btn-secondary-color) !important"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
var buttonStyles = exports.buttonStyles = function buttonStyles() {
|
|
82
|
+
return {
|
|
83
|
+
"& .MuiButton-root": {
|
|
84
|
+
"--wm-btn-color": "var(--wm-color-primary)",
|
|
85
|
+
"--wm-btn-state-layer-color": "var(--wm-color-primary)",
|
|
86
|
+
background: "none",
|
|
87
|
+
border: "none"
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -37,7 +37,6 @@ 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);
|
|
41
40
|
hint?: string;
|
|
42
41
|
arialabel?: string;
|
|
43
42
|
tabindex?: number;
|
|
@@ -14,6 +14,23 @@ 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
|
+
};
|
|
17
34
|
export declare function updateListener(name: string | undefined, listener: any, props: any, displayValue: string, timestamp: string | null | undefined, datavalue: string | null | undefined): void;
|
|
18
35
|
export declare function createWidgetEvent(args: {
|
|
19
36
|
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.READONLY_STYLES = exports.DEFAULT_TIMEPATTERN = exports.DEFAULT_OUTPUT_FORMAT = exports.DEFAULT_CLASS = void 0;
|
|
7
|
+
exports.TIME_PICKER_STYLES = 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,6 +203,23 @@ 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
|
+
};
|
|
206
223
|
function updateListener(name, listener, props, displayValue, timestamp, datavalue) {
|
|
207
224
|
// Update listener widget display value
|
|
208
225
|
|
|
@@ -67,7 +67,6 @@ 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);
|
|
71
70
|
hint?: string;
|
|
72
71
|
arialabel?: string;
|
|
73
72
|
tabindex?: number;
|
|
@@ -49,7 +49,6 @@ 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);
|
|
53
52
|
hint?: string;
|
|
54
53
|
arialabel?: string;
|
|
55
54
|
tabindex?: number;
|
|
@@ -142,7 +141,6 @@ declare const _default: React.ComponentType<{
|
|
|
142
141
|
eventCallback?: (eventName: string, data: any) => void;
|
|
143
142
|
forwardedRef?: React.ForwardedRef<any>;
|
|
144
143
|
viewParent?: any;
|
|
145
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
146
144
|
arialabel?: string;
|
|
147
145
|
tabindex?: number;
|
|
148
146
|
styles?: React.CSSProperties;
|
|
@@ -71,7 +71,6 @@ 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);
|
|
75
74
|
hint?: string;
|
|
76
75
|
arialabel?: string;
|
|
77
76
|
tabindex?: number;
|
|
@@ -185,7 +184,6 @@ declare const _default: React.ComponentType<{
|
|
|
185
184
|
eventCallback?: (eventName: string, data: any) => void;
|
|
186
185
|
forwardedRef?: React.ForwardedRef<any>;
|
|
187
186
|
viewParent?: any;
|
|
188
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
189
187
|
arialabel?: string;
|
|
190
188
|
tabindex?: number;
|
|
191
189
|
styles?: React.CSSProperties;
|
|
@@ -106,21 +106,24 @@ 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
|
-
} : {});
|
|
117
109
|
return {
|
|
118
110
|
isActive: isActive,
|
|
119
111
|
isHovered: isHovered,
|
|
112
|
+
color: isActive ? iconcolor : isHovered ? iconcolor : DEFAULT_COLORS.inactive,
|
|
120
113
|
iconClass: isActive ? activeiconclass : inactiveiconclass,
|
|
121
|
-
|
|
114
|
+
sx: {
|
|
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
|
+
}
|
|
122
125
|
};
|
|
123
|
-
}, [isStarActive, isStarHovered, iconcolor, activeiconclass, inactiveiconclass, iconsize]);
|
|
126
|
+
}, [isStarActive, isStarHovered, iconcolor, activeiconclass, inactiveiconclass, iconsize, readonly]);
|
|
124
127
|
|
|
125
128
|
// Event handlers
|
|
126
129
|
var invokeOnChange = (0, _react.useCallback)(function (newValue) {
|
|
@@ -391,7 +394,7 @@ var WmRating = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
391
394
|
var _getStarState = getStarState(rate.index),
|
|
392
395
|
isActive = _getStarState.isActive,
|
|
393
396
|
iconClass = _getStarState.iconClass,
|
|
394
|
-
|
|
397
|
+
sx = _getStarState.sx;
|
|
395
398
|
return __jsx(_Tooltip["default"], {
|
|
396
399
|
key: rate.key,
|
|
397
400
|
title: rate.label,
|
|
@@ -408,11 +411,11 @@ var WmRating = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
408
411
|
return handleMouseOver(rate);
|
|
409
412
|
},
|
|
410
413
|
onMouseLeave: handleMouseLeave,
|
|
411
|
-
|
|
412
|
-
className: (0, _clsx["default"])("app-icon-container",
|
|
414
|
+
sx: sx,
|
|
415
|
+
className: (0, _clsx["default"])("app-icon-container", isActive && "active")
|
|
413
416
|
}, __jsx(_material.Box, {
|
|
414
417
|
component: "i",
|
|
415
|
-
className: (0, _clsx["default"])("app-icon",
|
|
418
|
+
className: (0, _clsx["default"])("app-icon", iconClass),
|
|
416
419
|
"aria-hidden": "true"
|
|
417
420
|
}), __jsx("input", {
|
|
418
421
|
type: "radio",
|
|
@@ -53,7 +53,6 @@ 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);
|
|
57
56
|
hint?: string;
|
|
58
57
|
arialabel?: string;
|
|
59
58
|
tabindex?: number;
|
|
@@ -150,7 +149,6 @@ declare const _default: React.ComponentType<{
|
|
|
150
149
|
eventCallback?: (eventName: string, data: any) => void;
|
|
151
150
|
forwardedRef?: React.ForwardedRef<any>;
|
|
152
151
|
viewParent?: any;
|
|
153
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
154
152
|
arialabel?: string;
|
|
155
153
|
tabindex?: number;
|
|
156
154
|
styles?: React.CSSProperties;
|
|
@@ -458,7 +458,10 @@ 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
|
|
461
|
+
label: group.key,
|
|
462
|
+
style: {
|
|
463
|
+
backgroundColor: "rgba(0, 0, 0, .1)"
|
|
464
|
+
}
|
|
462
465
|
}, group.data.map(function (item) {
|
|
463
466
|
return __jsx("option", {
|
|
464
467
|
key: "".concat(group.key, "-").concat(item.key),
|
|
@@ -45,7 +45,6 @@ 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);
|
|
49
48
|
hint?: string;
|
|
50
49
|
arialabel?: string;
|
|
51
50
|
tabindex?: number;
|
|
@@ -138,7 +137,6 @@ declare const _default: React.ComponentType<{
|
|
|
138
137
|
eventCallback?: (eventName: string, data: any) => void;
|
|
139
138
|
forwardedRef?: React.ForwardedRef<any>;
|
|
140
139
|
viewParent?: any;
|
|
141
|
-
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
142
140
|
arialabel?: string;
|
|
143
141
|
tabindex?: number;
|
|
144
142
|
styles?: React.CSSProperties;
|