@wavemaker-ai/react-runtime 1.0.0-rc.647469 → 1.0.0-rc.647502
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/base-action.d.ts +7 -0
- package/actions/login-action.d.ts +11 -0
- package/actions/logout-action.d.ts +10 -0
- package/actions/navigation-action.d.ts +35 -0
- package/actions/navigation-action.js +23 -5
- package/actions/notification-action.d.ts +20 -0
- package/actions/timer-action.d.ts +27 -0
- package/components/advanced/carousel/index.d.ts +1 -0
- package/components/advanced/carousel/index.js +2 -1
- package/components/advanced/carousel/template.d.ts +1 -0
- package/components/advanced/carousel/template.js +2 -1
- package/components/advanced/login/index.d.ts +1 -0
- package/components/advanced/marquee/index.d.ts +1 -0
- package/components/advanced/marquee/index.js +2 -1
- package/components/basic/anchor/index.d.ts +1 -0
- package/components/basic/anchor/index.js +4 -3
- package/components/basic/audio/index.d.ts +1 -0
- package/components/basic/audio/index.js +3 -2
- package/components/basic/html/index.d.ts +1 -0
- package/components/basic/icon/index.d.ts +1 -0
- package/components/basic/icon/index.js +4 -7
- package/components/basic/iframe/iframe.utils.d.ts +1 -1
- package/components/basic/iframe/iframe.utils.js +8 -4
- package/components/basic/iframe/index.d.ts +1 -0
- package/components/basic/label/index.d.ts +1 -0
- package/components/basic/label/index.js +3 -2
- package/components/basic/message/index.js +1 -1
- package/components/basic/picture/index.d.ts +1 -0
- package/components/basic/picture/index.js +3 -4
- package/components/basic/progress-bar/index.d.ts +1 -0
- package/components/basic/progress-bar/index.js +2 -1
- package/components/basic/progress-circle/index.d.ts +1 -0
- package/components/basic/richtexteditor/index.d.ts +2 -0
- package/components/basic/search/index.d.ts +3 -0
- package/components/basic/search/index.js +7 -4
- package/components/basic/search/props.d.ts +2 -0
- package/components/basic/spinner/index.d.ts +1 -0
- package/components/basic/tile/index.d.ts +1 -0
- package/components/basic/tile/index.js +2 -1
- package/components/basic/tree/Components/TreeNodeComponent.js +9 -5
- package/components/basic/tree/index.d.ts +1 -0
- package/components/basic/tree/index.js +14 -3
- package/components/basic/tree/utils.d.ts +2 -0
- package/components/basic/tree/utils.js +11 -1
- package/components/basic/video/index.d.ts +1 -0
- package/components/basic/video/index.js +40 -23
- package/components/chart/index.d.ts +1 -0
- package/components/common/AppSpinner.js +2 -5
- package/components/container/accordion/accordion-pane/index.d.ts +1 -0
- package/components/container/accordion/accordion-pane/index.js +1 -4
- package/components/container/accordion/index.d.ts +1 -0
- package/components/container/index.d.ts +3 -0
- package/components/container/index.js +6 -1
- package/components/container/layout-grid/grid-column/index.d.ts +1 -0
- package/components/container/layout-grid/grid-row/index.d.ts +1 -0
- package/components/container/layout-grid/index.d.ts +1 -0
- package/components/container/layout-grid/index.js +4 -8
- package/components/container/linear-layout/index.d.ts +1 -0
- package/components/container/linear-layout/linear-layout-item/index.d.ts +1 -0
- package/components/container/panel/components/panel-header/index.js +11 -6
- package/components/container/panel/components/panel-header/props.d.ts +5 -0
- package/components/container/panel/index.d.ts +1 -0
- package/components/container/panel/index.js +2 -1
- package/components/container/props.d.ts +2 -0
- package/components/container/repeat-template/index.d.ts +22 -1
- package/components/container/repeat-template/index.js +2 -1
- package/components/container/tabs/index.d.ts +3 -1
- package/components/container/tabs/index.js +102 -51
- package/components/container/tabs/props.d.ts +12 -0
- package/components/container/tabs/tab-pane/index.d.ts +1 -0
- package/components/container/tabs/tab-pane/index.js +28 -11
- package/components/container/wizard/index.d.ts +2 -0
- package/components/container/wizard/wizard-step/index.d.ts +1 -0
- package/components/container/wizard/wizard-step/index.js +2 -2
- package/components/data/card/card-actions/index.d.ts +1 -0
- package/components/data/card/card-actions/index.js +3 -5
- package/components/data/card/card-content/index.d.ts +1 -0
- package/components/data/card/card-content/index.js +3 -13
- package/components/data/card/card-footer/index.d.ts +1 -0
- package/components/data/card/card-footer/index.js +3 -5
- package/components/data/card/index.d.ts +1 -0
- package/components/data/card/index.js +3 -14
- package/components/data/form/dynamic-fields/index.js +7 -1
- package/components/data/form/dynamic-fields/props.d.ts +1 -0
- package/components/data/form/form-action/index.d.ts +2 -0
- package/components/data/form/form-body/index.js +2 -1
- package/components/data/form/form-field/base-field.js +4 -3
- package/components/data/form/form-footer/index.js +2 -1
- package/components/data/list/components/ListItemWithTemplate.js +4 -2
- package/components/data/list/hooks/props.d.ts +2 -2
- package/components/data/list/hooks/useListEventHandlers.js +6 -6
- package/components/data/list/index.d.ts +2 -0
- package/components/data/list/index.js +3 -4
- package/components/data/list/props.d.ts +2 -1
- package/components/data/list/utils/list-widget-methods.d.ts +2 -1
- package/components/data/table/components/RowCells.d.ts +16 -2
- package/components/data/table/components/RowCells.js +38 -24
- package/components/data/table/components/TableBody.js +11 -3
- package/components/data/table/components/TableDataRow.d.ts +3 -0
- package/components/data/table/components/TableDataRow.js +11 -3
- package/components/data/table/components/TableHeader.js +1 -4
- package/components/data/table/hooks/index.d.ts +1 -0
- package/components/data/table/hooks/index.js +12 -0
- package/components/data/table/hooks/useCustomExpressionColumns.d.ts +16 -0
- package/components/data/table/hooks/useCustomExpressionColumns.js +88 -0
- package/components/data/table/hooks/useDynamicColumns.js +1 -1
- package/components/data/table/hooks/useResponsiveColumns.d.ts +1 -0
- package/components/data/table/hooks/useRowSelection.d.ts +1 -1
- package/components/data/table/hooks/useRowSelection.js +26 -5
- package/components/data/table/hooks/useTableInitialization.js +2 -1
- package/components/data/table/index.d.ts +4 -0
- package/components/data/table/index.js +77 -12
- package/components/data/table/live-table/index.d.ts +1 -0
- package/components/data/table/props.d.ts +7 -0
- package/components/data/table/table-action/index.d.ts +1 -0
- package/components/data/table/table-column/index.d.ts +1 -0
- package/components/data/table/table-row/index.d.ts +1 -0
- package/components/data/table/table-row-action/index.d.ts +1 -0
- package/components/data/table/utils/buildSelectionColumns.js +7 -1
- package/components/data/table/utils/columnBuilder.js +1 -1
- package/components/data/table/utils/index.js +2 -2
- package/components/data/table/utils/renderDisplayCell.js +1 -1
- package/components/dialogs/alert-dialog/index.d.ts +2 -0
- package/components/dialogs/confirm-dialog/index.d.ts +2 -0
- package/components/dialogs/dialog/index.d.ts +2 -0
- package/components/dialogs/dialog/index.js +2 -4
- package/components/dialogs/dialog-actions/index.d.ts +1 -0
- package/components/dialogs/dialog-body/index.d.ts +1 -0
- package/components/dialogs/dialog-content/index.d.ts +1 -0
- package/components/dialogs/dialog-header/index.d.ts +1 -0
- package/components/dialogs/iframe-dialog/index.d.ts +2 -0
- package/components/dialogs/login-dialog/index.d.ts +2 -0
- package/components/dialogs/page-dialog/index.d.ts +2 -0
- package/components/form/button/index.d.ts +1 -0
- package/components/form/button/index.js +4 -3
- package/components/form/button-group/index.d.ts +1 -0
- package/components/form/button-group/index.js +2 -1
- package/components/input/calendar/index.d.ts +2 -0
- package/components/input/chips/index.d.ts +2 -0
- package/components/input/color-picker/index.d.ts +2 -0
- package/components/input/composite/index.d.ts +1 -0
- package/components/input/currency/index.d.ts +2 -0
- package/components/input/default/checkbox/index.d.ts +2 -0
- package/components/input/default/checkboxset/index.d.ts +2 -0
- package/components/input/default/radioset/index.d.ts +2 -0
- package/components/input/default/switch/index.d.ts +2 -0
- package/components/input/epoch/date/components/DatePickerPopover.js +11 -29
- package/components/input/epoch/date/index.d.ts +1 -0
- package/components/input/epoch/datetime/index.d.ts +1 -0
- package/components/input/epoch/datetime/index.js +10 -25
- package/components/input/epoch/time/index.d.ts +1 -0
- package/components/input/epoch/time/index.js +1 -1
- package/components/input/epoch/time/utils.d.ts +0 -17
- package/components/input/epoch/time/utils.js +1 -18
- package/components/input/fileupload/index.d.ts +1 -0
- package/components/input/number/index.d.ts +2 -0
- package/components/input/rating/index.d.ts +2 -0
- package/components/input/rating/index.js +14 -17
- package/components/input/select/index.d.ts +2 -0
- package/components/input/select/index.js +1 -4
- package/components/input/slider/index.d.ts +2 -0
- package/components/input/slider/index.js +13 -12
- package/components/input/text/index.d.ts +2 -0
- package/components/input/text/index.js +3 -14
- package/components/input/textarea/index.d.ts +2 -0
- package/components/input/textarea/index.js +7 -10
- package/components/input/upload/index.d.ts +2 -0
- package/components/input/upload/index.js +3 -5
- package/components/layout/footer/index.js +2 -1
- package/components/layout/footer/props.d.ts +1 -0
- package/components/layout/header/index.js +2 -1
- package/components/layout/header/props.d.ts +1 -0
- package/components/layout/leftnav/index.js +2 -1
- package/components/layout/leftnav/props.d.ts +1 -0
- package/components/layout/rightnav/index.js +2 -1
- package/components/layout/rightnav/props.d.ts +1 -0
- package/components/layout/topnav/index.js +2 -1
- package/components/layout/topnav/props.d.ts +1 -0
- package/components/navbar/index.d.ts +1 -0
- package/components/navbar/index.js +2 -1
- package/components/navbar/nav/index.d.ts +1 -0
- package/components/navbar/nav-item/index.d.ts +1 -0
- package/components/navbar/nav-item/index.js +2 -1
- package/components/navigation/breadcrumb/index.d.ts +1 -0
- package/components/navigation/menu/index.d.ts +1 -0
- package/components/navigation/menu/index.js +5 -4
- package/components/navigation/popover/index.d.ts +2 -1
- package/components/navigation/popover/index.js +1 -1
- package/components/page/error-boundary/index.js +5 -5
- package/components/page/index.js +13 -9
- package/components/page/partial/index.d.ts +1 -0
- package/components/prefab/container/index.js +2 -1
- package/context/WidgetProvider.js +2 -2
- package/core/app.service.js +40 -35
- package/core/constants/events.js +6 -0
- package/core/constants/index.d.ts +9 -1
- package/core/constants/index.js +32 -5
- package/core/formatter/date-formatters.d.ts +1 -1
- package/core/formatter/date-formatters.js +38 -13
- package/core/formatter/types.d.ts +1 -1
- package/core/proxy-service.js +15 -5
- package/core/security.service.d.ts +12 -0
- package/core/util/index.js +3 -2
- package/higherOrder/BaseApp.js +2 -2
- package/higherOrder/BasePage.d.ts +0 -17
- package/higherOrder/BasePage.js +53 -104
- package/higherOrder/BasePrefab.js +69 -59
- package/higherOrder/props.d.ts +1 -0
- package/higherOrder/withBaseWrapper.js +3 -4
- package/hooks/useAccess.js +13 -0
- package/mui-config/theme-provider.d.ts +3 -0
- package/mui-config/theme.d.ts +2 -0
- package/mui-config/theme.js +1 -4
- package/package-lock.json +2640 -615
- package/package.json +23 -4
- package/runtime-dynamic/App.d.ts +7 -0
- package/runtime-dynamic/App.js +144 -0
- package/runtime-dynamic/app-initializer.d.ts +15 -0
- package/runtime-dynamic/app-initializer.js +447 -0
- package/runtime-dynamic/components/ErrorBoundary.d.ts +18 -0
- package/runtime-dynamic/components/ErrorBoundary.js +93 -0
- package/runtime-dynamic/components/PageWrapper.d.ts +1 -0
- package/runtime-dynamic/components/PageWrapper.js +43 -0
- package/runtime-dynamic/components/PrefabPreview.d.ts +1 -0
- package/runtime-dynamic/components/PrefabPreview.js +84 -0
- package/runtime-dynamic/components/partial-content.d.ts +15 -0
- package/runtime-dynamic/components/partial-content.js +50 -0
- package/runtime-dynamic/components/prefab-content.d.ts +10 -0
- package/runtime-dynamic/components/prefab-content.js +31 -0
- package/runtime-dynamic/components/use-dynamic-component.d.ts +10 -0
- package/runtime-dynamic/components/use-dynamic-component.js +165 -0
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +8 -0
- package/runtime-dynamic/factories/build-base-page-like-component.js +59 -0
- package/runtime-dynamic/factories/prefab-factory.d.ts +3 -0
- package/runtime-dynamic/factories/prefab-factory.js +82 -0
- package/runtime-dynamic/factories/startup-info.d.ts +6 -0
- package/runtime-dynamic/factories/startup-info.js +28 -0
- package/runtime-dynamic/factories/utils.d.ts +23 -0
- package/runtime-dynamic/factories/utils.js +131 -0
- package/runtime-dynamic/index.d.ts +14 -0
- package/runtime-dynamic/index.js +191 -0
- package/runtime-dynamic/main.d.ts +2 -0
- package/runtime-dynamic/main.js +84 -0
- package/runtime-dynamic/preview-mode.d.ts +15 -0
- package/runtime-dynamic/preview-mode.js +31 -0
- package/runtime-dynamic/preview-navigation.d.ts +6 -0
- package/runtime-dynamic/preview-navigation.js +38 -0
- package/runtime-dynamic/preview-resource-base.d.ts +12 -0
- package/runtime-dynamic/preview-resource-base.js +65 -0
- package/runtime-dynamic/registry/component-registry.d.ts +3 -0
- package/runtime-dynamic/registry/component-registry.js +353 -0
- package/runtime-dynamic/registry/custom-widget-registry.d.ts +7 -0
- package/runtime-dynamic/registry/custom-widget-registry.js +18 -0
- package/runtime-dynamic/registry/index.d.ts +2 -0
- package/runtime-dynamic/registry/index.js +63 -0
- package/runtime-dynamic/registry/store.d.ts +9 -0
- package/runtime-dynamic/registry/store.js +26 -0
- package/runtime-dynamic/routes.d.ts +2 -0
- package/runtime-dynamic/routes.js +107 -0
- package/runtime-dynamic/services/app-extension-provider.d.ts +1 -0
- package/runtime-dynamic/services/app-extension-provider.js +45 -0
- package/runtime-dynamic/services/cache.d.ts +29 -0
- package/runtime-dynamic/services/cache.js +57 -0
- package/runtime-dynamic/services/component-ref-provider.d.ts +12 -0
- package/runtime-dynamic/services/component-ref-provider.js +149 -0
- package/runtime-dynamic/services/css-scoping.d.ts +2 -0
- package/runtime-dynamic/services/css-scoping.js +53 -0
- package/runtime-dynamic/services/fragment-url.d.ts +16 -0
- package/runtime-dynamic/services/fragment-url.js +74 -0
- package/runtime-dynamic/services/index.d.ts +10 -0
- package/runtime-dynamic/services/index.js +152 -0
- package/runtime-dynamic/services/markup-transpiler.d.ts +12 -0
- package/runtime-dynamic/services/markup-transpiler.js +250 -0
- package/runtime-dynamic/services/prefab-resources.d.ts +18 -0
- package/runtime-dynamic/services/prefab-resources.js +159 -0
- package/runtime-dynamic/services/resource-manager.d.ts +2 -0
- package/runtime-dynamic/services/resource-manager.js +66 -0
- package/runtime-dynamic/services/script-executor.d.ts +8 -0
- package/runtime-dynamic/services/script-executor.js +90 -0
- package/runtime-dynamic/services/variable-factory.d.ts +2 -0
- package/runtime-dynamic/services/variable-factory.js +260 -0
- package/runtime-dynamic/services/variable-registry.d.ts +12 -0
- package/runtime-dynamic/services/variable-registry.js +118 -0
- package/runtime-dynamic/services/variable-transpiler.d.ts +5 -0
- package/runtime-dynamic/services/variable-transpiler.js +159 -0
- package/runtime-dynamic/shims/next-image.d.ts +35 -0
- package/runtime-dynamic/shims/next-image.js +60 -0
- package/runtime-dynamic/shims/next-link.d.ts +25 -0
- package/runtime-dynamic/shims/next-link.js +33 -0
- package/runtime-dynamic/shims/next-navigation.d.ts +16 -0
- package/runtime-dynamic/shims/next-navigation.js +52 -0
- package/runtime-dynamic/utils/index.d.ts +9 -0
- package/runtime-dynamic/utils/index.js +40 -0
- package/store/middleware/navigationMiddleware.js +1 -1
- package/store/slices/appConfigSlice.js +10 -8
- package/store/slices/authSlice.js +46 -32
- package/tsconfig.declaration.tsbuildinfo +1 -1
- package/types/index.d.ts +1 -0
- package/utils/attr.js +71 -14
- package/utils/custom-expression/index.d.ts +43 -0
- package/utils/custom-expression/index.js +161 -0
- package/utils/custom-expression/parser.d.ts +15 -0
- package/utils/custom-expression/parser.js +208 -0
- package/utils/layoutsize-util.d.ts +1 -0
- package/utils/layoutsize-util.js +57 -0
- package/utils/lib-error-skipper.d.ts +4 -26
- package/utils/lib-error-skipper.js +41 -165
- package/utils/style-utils.d.ts +6 -0
- package/utils/style-utils.js +10 -1
- package/variables/metadata.service.js +2 -3
- package/variables/model-variable.js +10 -7
- package/variables/service-variable.d.ts +1 -0
- package/variables/service-variable.js +26 -6
- package/components/input/epoch/datetime/styled.d.ts +0 -78
- package/components/input/epoch/datetime/styled.js +0 -90
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseVariable, VariableConfig } from "@wavemaker-ai/react-runtime/variables/base-variable";
|
|
2
|
+
export interface ActionConfig extends VariableConfig {
|
|
3
|
+
}
|
|
4
|
+
export declare class BaseAction<T extends ActionConfig> extends BaseVariable<T> {
|
|
5
|
+
constructor(config: T);
|
|
6
|
+
setData(dataSet: any): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActionConfig, BaseAction } from "./base-action";
|
|
2
|
+
import { SecurityService } from "@wavemaker-ai/react-runtime/core/security.service";
|
|
3
|
+
export interface LoginActionConfig extends ActionConfig {
|
|
4
|
+
securityService: () => SecurityService;
|
|
5
|
+
baseURL: String;
|
|
6
|
+
useDefaultSuccessHandler: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class LoginAction extends BaseAction<LoginActionConfig> {
|
|
9
|
+
constructor(config: LoginActionConfig);
|
|
10
|
+
invoke(options: any, successcb?: Function, errorcb?: Function): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActionConfig, BaseAction } from "./base-action";
|
|
2
|
+
import { SecurityService } from "@wavemaker-ai/react-runtime/core/security.service";
|
|
3
|
+
export interface LogoutActionConfig extends ActionConfig {
|
|
4
|
+
securityService: () => SecurityService;
|
|
5
|
+
baseURL: String;
|
|
6
|
+
}
|
|
7
|
+
export declare class LogoutAction extends BaseAction<LogoutActionConfig> {
|
|
8
|
+
constructor(config: LogoutActionConfig);
|
|
9
|
+
invoke(options: any, successcb?: Function, errorcb?: Function): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ActionConfig, BaseAction } from "./base-action";
|
|
2
|
+
export declare const __resetNavigationPageParamHistoryForTests: () => void;
|
|
3
|
+
export declare const __getPageQueryParamHistorySizeForTests: () => number;
|
|
4
|
+
export interface NavigationParams {
|
|
5
|
+
pageName?: string;
|
|
6
|
+
tabName?: string;
|
|
7
|
+
accordionName?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface NavigationActionConfig extends ActionConfig {
|
|
11
|
+
appConfig: any;
|
|
12
|
+
operation: string;
|
|
13
|
+
_context: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class NavigationAction extends BaseAction<NavigationActionConfig> {
|
|
16
|
+
constructor(config: NavigationActionConfig);
|
|
17
|
+
invoke(params?: Record<string, unknown>, onSuccess?: Function, onError?: Function): Promise<NavigationAction>;
|
|
18
|
+
navigate(params?: {}, onSuccess?: Function, onError?: Function): Promise<NavigationAction>;
|
|
19
|
+
private handleGoToPreviousPage;
|
|
20
|
+
private handleGotoTab;
|
|
21
|
+
private findTabWidget;
|
|
22
|
+
private handleGotoAccordion;
|
|
23
|
+
private getAppRelativePath;
|
|
24
|
+
private parseSearch;
|
|
25
|
+
private normalizePageName;
|
|
26
|
+
private getCurrentPageInfo;
|
|
27
|
+
private rememberPageQueryParams;
|
|
28
|
+
private resolveQueryParams;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the current URL matches the target path and query params.
|
|
31
|
+
* When true, we skip router.push.
|
|
32
|
+
*/
|
|
33
|
+
private isSamePageAsCurrent;
|
|
34
|
+
private handleGotoPage;
|
|
35
|
+
}
|
|
@@ -228,7 +228,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
228
228
|
var trimTrailingSlash = function trimTrailingSlash(path) {
|
|
229
229
|
return path.replace(/\/$/, "") || "/";
|
|
230
230
|
};
|
|
231
|
-
var basePath = "/".concat(_constants.
|
|
231
|
+
var basePath = "/".concat((0, _constants.getActiveRoutingBasePath)());
|
|
232
232
|
var currentPathname = this.getAppRelativePath(trimTrailingSlash(window.location.pathname), basePath);
|
|
233
233
|
if (!currentPathname.startsWith(basePath)) {
|
|
234
234
|
return null;
|
|
@@ -259,7 +259,6 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
259
259
|
}, {
|
|
260
260
|
key: "resolveQueryParams",
|
|
261
261
|
value: function resolveQueryParams(pageName, params) {
|
|
262
|
-
var _pageQueryParamHistor2;
|
|
263
262
|
var normalizedPageName = this.normalizePageName(pageName);
|
|
264
263
|
var explicitQueryParams = Object.fromEntries(Object.entries(params || {}).filter(function (_ref) {
|
|
265
264
|
var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
|
|
@@ -272,7 +271,26 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
272
271
|
value = _ref4[1];
|
|
273
272
|
return [key, String(value)];
|
|
274
273
|
}));
|
|
275
|
-
var
|
|
274
|
+
var isPreview = (0, _constants.getActiveRoutingBasePath)() === _constants.PREVIEW_ROUTING_BASEPATH;
|
|
275
|
+
var queryParams;
|
|
276
|
+
if (isPreview) {
|
|
277
|
+
// Preview: explicit > per-page history > current URL (e.g. wm_state) across navigations
|
|
278
|
+
if (Object.keys(explicitQueryParams).length > 0) {
|
|
279
|
+
queryParams = explicitQueryParams;
|
|
280
|
+
} else {
|
|
281
|
+
var historyParams = pageQueryParamHistory.get(normalizedPageName);
|
|
282
|
+
if (historyParams && Object.keys(historyParams).length > 0) {
|
|
283
|
+
queryParams = historyParams;
|
|
284
|
+
} else {
|
|
285
|
+
var currentPageInfo = this.getCurrentPageInfo();
|
|
286
|
+
queryParams = currentPageInfo && Object.keys(currentPageInfo.queryParams).length > 0 ? currentPageInfo.queryParams : {};
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
} else {
|
|
290
|
+
var _pageQueryParamHistor2;
|
|
291
|
+
// Production: explicit > per-page history only
|
|
292
|
+
queryParams = Object.keys(explicitQueryParams).length > 0 ? explicitQueryParams : (_pageQueryParamHistor2 = pageQueryParamHistory.get(normalizedPageName)) !== null && _pageQueryParamHistor2 !== void 0 ? _pageQueryParamHistor2 : {};
|
|
293
|
+
}
|
|
276
294
|
this.rememberPageQueryParams(normalizedPageName, queryParams);
|
|
277
295
|
return {
|
|
278
296
|
pageName: normalizedPageName,
|
|
@@ -293,7 +311,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
293
311
|
var trimTrailingSlash = function trimTrailingSlash(p) {
|
|
294
312
|
return p.replace(/\/$/, "") || "/";
|
|
295
313
|
};
|
|
296
|
-
var basePath = "/".concat(_constants.
|
|
314
|
+
var basePath = "/".concat((0, _constants.getActiveRoutingBasePath)());
|
|
297
315
|
var rawCurrentPathname = trimTrailingSlash(window.location.pathname);
|
|
298
316
|
var currentSearch = window.location.search || "";
|
|
299
317
|
var rawTargetPathNorm = trimTrailingSlash(targetPath);
|
|
@@ -343,7 +361,7 @@ var NavigationAction = exports.NavigationAction = /*#__PURE__*/function (_BaseAc
|
|
|
343
361
|
|
|
344
362
|
// Construct full path with optional query string
|
|
345
363
|
var fullPath = queryString ? "/".concat(cleanPageName, "?").concat(queryString) : "/".concat(cleanPageName);
|
|
346
|
-
var targetPath = "/".concat(_constants.
|
|
364
|
+
var targetPath = "/".concat((0, _constants.getActiveRoutingBasePath)()).concat(fullPath);
|
|
347
365
|
var targetPathname = targetPath.split("?")[0];
|
|
348
366
|
var targetSearch = queryString ? "?".concat(queryString) : "";
|
|
349
367
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ActionConfig, BaseAction } from "./base-action";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface NotificationActionConfig extends ActionConfig {
|
|
4
|
+
showDialog: Function;
|
|
5
|
+
onOk?: Function;
|
|
6
|
+
onCancel?: Function;
|
|
7
|
+
onClose?: Function;
|
|
8
|
+
operation: string;
|
|
9
|
+
partialContent?: React.ReactNode;
|
|
10
|
+
toasterService?: () => any;
|
|
11
|
+
}
|
|
12
|
+
export declare class NotificationAction extends BaseAction<NotificationActionConfig> {
|
|
13
|
+
constructor(config: NotificationActionConfig);
|
|
14
|
+
notify(event: string, args: any[], emitToParent?: boolean): void;
|
|
15
|
+
notify(params?: any, onSuccess?: Function, onError?: Function): Promise<any>;
|
|
16
|
+
private prepareToastOptions;
|
|
17
|
+
invoke(params?: any, onSuccess?: Function, onError?: Function): Promise<any>;
|
|
18
|
+
private showToast;
|
|
19
|
+
getMessage(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ActionConfig, BaseAction } from "./base-action";
|
|
2
|
+
export interface TimerActionConfig extends ActionConfig {
|
|
3
|
+
repeating: boolean;
|
|
4
|
+
delay: number;
|
|
5
|
+
_context: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class TimerAction extends BaseAction<TimerActionConfig> {
|
|
8
|
+
private _timerId;
|
|
9
|
+
private _isActive;
|
|
10
|
+
private _onSuccess?;
|
|
11
|
+
private _onError?;
|
|
12
|
+
constructor(config: TimerActionConfig);
|
|
13
|
+
invoke(params?: Record<string, any>, onSuccess?: Function, onError?: Function): Promise<TimerAction>;
|
|
14
|
+
/**
|
|
15
|
+
* Starts the timer based on configuration
|
|
16
|
+
*/
|
|
17
|
+
private startTimer;
|
|
18
|
+
cancel(): void;
|
|
19
|
+
pause(): void;
|
|
20
|
+
resume(): void;
|
|
21
|
+
trigger(): Promise<TimerAction>;
|
|
22
|
+
/**
|
|
23
|
+
* Checks if the timer is currently active
|
|
24
|
+
*/
|
|
25
|
+
isActive(): boolean;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|
|
@@ -47,6 +47,7 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
50
51
|
hint?: string;
|
|
51
52
|
arialabel?: string;
|
|
52
53
|
tabindex?: number;
|
|
@@ -16,6 +16,7 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
var _isPlainObject = _interopRequireDefault(require("lodash-es/isPlainObject"));
|
|
18
18
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
19
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
19
20
|
var _excluded = ["name", "animation", "animationinterval", "controls", "nodatamessage", "height", "width", "children", "className", "styles", "render", "onChange"];
|
|
20
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
21
22
|
var __jsx = _react["default"].createElement;
|
|
@@ -435,7 +436,7 @@ var WmCarousel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
435
436
|
role: "region",
|
|
436
437
|
"aria-label": props.arialabel || "Carousel",
|
|
437
438
|
"aria-live": animation === "auto" ? "polite" : "off"
|
|
438
|
-
}, rest), __jsx("div", {
|
|
439
|
+
}, (0, _attr.removeInvalidAttributes)(rest)), __jsx("div", {
|
|
439
440
|
className: "carousel slide",
|
|
440
441
|
style: _objectSpread({}, styles)
|
|
441
442
|
}, __jsx("div", {
|
|
@@ -46,6 +46,7 @@ declare const _default: React.ComponentType<{
|
|
|
46
46
|
eventCallback?: (eventName: string, data: any) => void;
|
|
47
47
|
forwardedRef?: React.ForwardedRef<any>;
|
|
48
48
|
viewParent?: any;
|
|
49
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
49
50
|
hint?: string;
|
|
50
51
|
arialabel?: string;
|
|
51
52
|
tabindex?: number;
|
|
@@ -13,6 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
16
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
16
17
|
var _excluded = ["name", "horizontalalign", "children", "className", "styles", "item", "index"];
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
18
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -57,7 +58,7 @@ var WmCarouselTemplate = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
57
58
|
display: "flex",
|
|
58
59
|
alignItems: "center"
|
|
59
60
|
}, getAlignmentStyles()), styles)
|
|
60
|
-
}, rest), children);
|
|
61
|
+
}, (0, _attr.removeInvalidAttributes)(rest)), children);
|
|
61
62
|
}, function (prevProps, nextProps) {
|
|
62
63
|
// Custom comparison for memoization
|
|
63
64
|
var keysToCompare = ["horizontalalign", "children", "className", "styles", "item", "index"];
|
|
@@ -50,6 +50,7 @@ declare const _default: React.ComponentType<{
|
|
|
50
50
|
eventCallback?: (eventName: string, data: any) => void;
|
|
51
51
|
forwardedRef?: React.ForwardedRef<any>;
|
|
52
52
|
viewParent?: any;
|
|
53
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
53
54
|
hint?: string;
|
|
54
55
|
arialabel?: string;
|
|
55
56
|
tabindex?: number;
|
|
@@ -42,6 +42,7 @@ declare const _default: React.ComponentType<{
|
|
|
42
42
|
eventCallback?: (eventName: string, data: any) => void;
|
|
43
43
|
forwardedRef?: React.ForwardedRef<any>;
|
|
44
44
|
viewParent?: any;
|
|
45
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
45
46
|
hint?: string;
|
|
46
47
|
arialabel?: string;
|
|
47
48
|
tabindex?: number;
|
|
@@ -14,6 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
16
16
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
17
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
18
|
var _excluded = ["direction", "scrollamount", "scrolldelay", "className", "styles", "children", "id"];
|
|
18
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
19
20
|
var __jsx = _react["default"].createElement;
|
|
@@ -144,7 +145,7 @@ var WmMarquee = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
144
145
|
onClick: handleClick,
|
|
145
146
|
onMouseEnter: handleMouseEnter,
|
|
146
147
|
onMouseLeave: handleMouseLeave
|
|
147
|
-
}, restProps), __jsx(_Box["default"], {
|
|
148
|
+
}, (0, _attr.removeInvalidAttributes)(restProps)), __jsx(_Box["default"], {
|
|
148
149
|
component: "div",
|
|
149
150
|
sx: contentStyles
|
|
150
151
|
}, children)));
|
|
@@ -57,6 +57,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
57
57
|
eventCallback?: (eventName: string, data: any) => void;
|
|
58
58
|
forwardedRef?: React.ForwardedRef<any>;
|
|
59
59
|
viewParent?: any;
|
|
60
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
60
61
|
hint?: string;
|
|
61
62
|
arialabel?: string;
|
|
62
63
|
tabindex?: number;
|
|
@@ -17,6 +17,7 @@ var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
|
17
17
|
var _Link = _interopRequireDefault(require("@mui/material/Link"));
|
|
18
18
|
var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
|
|
19
19
|
var _withBaseWrapper = _interopRequireDefault(require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper"));
|
|
20
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
20
21
|
var _utils = require("../../../core/util/utils");
|
|
21
22
|
var _excluded = ["caption", "iconclass", "styles", "className", "iconheight", "iconwidth", "iconmargin", "iconurl", "iconposition", "badgevalue", "listener", "hyperlink", "encodeurl", "onClick", "shortcutkey", "arialabel", "target", "itemLink", "href"];
|
|
22
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
@@ -31,7 +32,7 @@ var getCurrentPageName = function getCurrentPageName(pathname) {
|
|
|
31
32
|
return segments[segments.length - 1];
|
|
32
33
|
};
|
|
33
34
|
var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
34
|
-
var
|
|
35
|
+
var _listener$appLocale;
|
|
35
36
|
var _props$caption = props.caption,
|
|
36
37
|
caption = _props$caption === void 0 ? "Link" : _props$caption,
|
|
37
38
|
iconclass = props.iconclass,
|
|
@@ -195,7 +196,7 @@ var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
|
195
196
|
caption: caption,
|
|
196
197
|
role: "link",
|
|
197
198
|
tabIndex: props.tabindex,
|
|
198
|
-
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-anchor-link", (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(
|
|
199
|
+
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-anchor-link", (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, className || "", Boolean(className)), "active", isActive), "wm-anchor-icon-left", iconposition === "left"), "wm-anchor-icon-top", iconposition === "top"), "wm-anchor-icon-right", iconposition === "right")),
|
|
199
200
|
onContextMenu: handleContextMenu,
|
|
200
201
|
accessKey: shortcutkey,
|
|
201
202
|
"aria-label": arialabel || (badgevalue && caption ? "".concat(caption, " ").concat(badgevalue) : caption) || null,
|
|
@@ -203,7 +204,7 @@ var WmAnchor = exports.WmAnchor = function WmAnchor(props) {
|
|
|
203
204
|
target: target,
|
|
204
205
|
title: props.hint,
|
|
205
206
|
"data-identifier": "anchor"
|
|
206
|
-
}, restProps, {
|
|
207
|
+
}, (0, _attr.removeInvalidAttributes)(restProps), {
|
|
207
208
|
name: props.name
|
|
208
209
|
}), iconurl && __jsx(_image["default"], {
|
|
209
210
|
alt: "Image",
|
|
@@ -47,6 +47,7 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
50
51
|
hint?: string;
|
|
51
52
|
arialabel?: string;
|
|
52
53
|
tabindex?: number;
|
|
@@ -13,6 +13,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
14
14
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
15
15
|
var _resourceUrl = require("@wavemaker-ai/react-runtime/utils/resource-url");
|
|
16
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
16
17
|
var _excluded = ["mp3format", "prefabName", "muted", "controls", "loop", "audiopreload", "audiosupportmessage", "autoplay", "hint", "arialabel", "tabindex", "styles", "className"];
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
18
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -42,9 +43,9 @@ var WmAudio = exports.WmAudio = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
42
43
|
tabIndex: tabindex,
|
|
43
44
|
sx: styles,
|
|
44
45
|
style: styles
|
|
45
|
-
}, restProps), __jsx("audio", {
|
|
46
|
+
}, (0, _attr.removeInvalidAttributes)(restProps)), __jsx("audio", {
|
|
46
47
|
title: hint,
|
|
47
|
-
src: computedSrc,
|
|
48
|
+
src: computedSrc || undefined,
|
|
48
49
|
muted: muted,
|
|
49
50
|
controls: controls,
|
|
50
51
|
loop: loop,
|
|
@@ -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;
|
|
@@ -44,6 +44,7 @@ declare const _default: React.ComponentType<{
|
|
|
44
44
|
eventCallback?: (eventName: string, data: any) => void;
|
|
45
45
|
forwardedRef?: React.ForwardedRef<any>;
|
|
46
46
|
viewParent?: any;
|
|
47
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
47
48
|
hint?: string;
|
|
48
49
|
arialabel?: string;
|
|
49
50
|
tabindex?: number;
|
|
@@ -20,7 +20,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var DEFAULT_CLASS = "app-icon-wrapper";
|
|
22
22
|
var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
23
|
-
var _props$variant;
|
|
24
23
|
var name = props.name,
|
|
25
24
|
listener = props.listener,
|
|
26
25
|
caption = props.caption,
|
|
@@ -48,16 +47,14 @@ var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
48
47
|
}
|
|
49
48
|
return rootStyle;
|
|
50
49
|
}, [styles, iconsize]);
|
|
51
|
-
var variant = (_props$variant = props.variant) === null || _props$variant === void 0 ? void 0 : _props$variant.replace(":", "-");
|
|
52
50
|
return __jsx(_Box["default"], {
|
|
53
|
-
className: (0, _clsx["default"])(DEFAULT_CLASS, "wm-icon-root", iconposition === "right" && "wm-icon-pos-right", className
|
|
51
|
+
className: (0, _clsx["default"])(DEFAULT_CLASS, "wm-icon-root", iconposition === "right" && "wm-icon-pos-right", className),
|
|
54
52
|
component: "span",
|
|
55
53
|
style: wrapperStyle,
|
|
56
54
|
"aria-label": arialabel,
|
|
57
55
|
id: id,
|
|
58
56
|
"data-icon-position": iconposition,
|
|
59
|
-
hidden: props.hidden
|
|
60
|
-
variant: variant
|
|
57
|
+
hidden: props.hidden
|
|
61
58
|
}, __jsx(_Box["default"], {
|
|
62
59
|
component: "span",
|
|
63
60
|
className: "sr-only"
|
|
@@ -65,12 +62,12 @@ var WmIcon = exports.WmIcon = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
65
62
|
"data-identifier": "img",
|
|
66
63
|
alt: "Image",
|
|
67
64
|
src: computedIconUrl,
|
|
68
|
-
className: (0, _clsx["default"])("anchor-image-icon", "wm-icon-media", iconclass
|
|
65
|
+
className: (0, _clsx["default"])("anchor-image-icon", "wm-icon-media", iconclass),
|
|
69
66
|
"aria-hidden": "true",
|
|
70
67
|
width: parseInt(iconsize || "24", 10),
|
|
71
68
|
height: parseInt(iconsize || "24", 10)
|
|
72
69
|
}) : __jsx("i", {
|
|
73
|
-
className: (0, _clsx["default"])("app-icon", "wm-icon-media", iconclass
|
|
70
|
+
className: (0, _clsx["default"])("app-icon", "wm-icon-media", iconclass),
|
|
74
71
|
"aria-hidden": "true"
|
|
75
72
|
}), caption && __jsx(_label["default"], {
|
|
76
73
|
listener: listener,
|
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.needsEncoding = void 0;
|
|
7
|
+
Object.defineProperty(exports, "toCssLength", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _styleUtils.toCssLength;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _styleUtils = require("@wavemaker-ai/react-runtime/utils/style-utils");
|
|
7
14
|
var needsEncoding = exports.needsEncoding = function needsEncoding(url) {
|
|
8
15
|
// Matches anything not in the safe character set
|
|
9
16
|
return /[^A-Za-z0-9\-._~:/?#\[\]@!$&'()*+,;=%]/.test(url);
|
|
10
|
-
};
|
|
11
|
-
var toCssLength = exports.toCssLength = function toCssLength(value) {
|
|
12
|
-
return typeof value === "number" ? "".concat(value, "px") : String(value);
|
|
13
17
|
};
|
|
@@ -40,6 +40,7 @@ declare const _default: React.ComponentType<{
|
|
|
40
40
|
eventCallback?: (eventName: string, data: any) => void;
|
|
41
41
|
forwardedRef?: React.ForwardedRef<any>;
|
|
42
42
|
viewParent?: any;
|
|
43
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
43
44
|
hint?: string;
|
|
44
45
|
arialabel?: string;
|
|
45
46
|
tabindex?: number;
|
|
@@ -46,6 +46,7 @@ declare const _default: React.ComponentType<{
|
|
|
46
46
|
eventCallback?: (eventName: string, data: any) => void;
|
|
47
47
|
forwardedRef?: React.ForwardedRef<any>;
|
|
48
48
|
viewParent?: any;
|
|
49
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
49
50
|
hint?: string;
|
|
50
51
|
arialabel?: string;
|
|
51
52
|
tabindex?: number;
|
|
@@ -14,6 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _dompurify = _interopRequireDefault(require("dompurify"));
|
|
15
15
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
16
16
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
17
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
17
18
|
var _excluded = ["required", "trustAs", "type", "styles", "className", "caption", "hint", "name", "htmlFor", "onClick", "listener", "variant", "viewParent"];
|
|
18
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
19
20
|
var __jsx = _react["default"].createElement;
|
|
@@ -98,7 +99,7 @@ var WmLabel = exports.WmLabel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
98
99
|
dangerouslySetInnerHTML: {
|
|
99
100
|
__html: sanitizedContent
|
|
100
101
|
}
|
|
101
|
-
}, rest, {
|
|
102
|
+
}, (0, _attr.removeInvalidAttributes)(rest), {
|
|
102
103
|
onClick: handleOnClick
|
|
103
104
|
}));
|
|
104
105
|
}
|
|
@@ -112,7 +113,7 @@ var WmLabel = exports.WmLabel = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
112
113
|
variant: variant,
|
|
113
114
|
caption: captionString,
|
|
114
115
|
hidden: (_props$hidden = props.hidden) !== null && _props$hidden !== void 0 ? _props$hidden : false
|
|
115
|
-
}, rest, {
|
|
116
|
+
}, (0, _attr.removeInvalidAttributes)(rest), {
|
|
116
117
|
onClick: handleOnClick
|
|
117
118
|
}), parts.map(function (part, index) {
|
|
118
119
|
return part.link ? __jsx("a", {
|
|
@@ -65,7 +65,7 @@ var WmMessage = exports.WmMessageWithoutWrapper = /*#__PURE__*/(0, _react.memo)(
|
|
|
65
65
|
hidden: props.hidden,
|
|
66
66
|
component: "div",
|
|
67
67
|
style: styles,
|
|
68
|
-
className: (0, _clsx["default"])(DEFAULT_CLS, messageClass, animation ? "animated ".concat(animation) : "", className
|
|
68
|
+
className: (0, _clsx["default"])(DEFAULT_CLS, messageClass, animation ? "animated ".concat(animation) : "", className),
|
|
69
69
|
title: caption
|
|
70
70
|
}, __jsx(_Box["default"], {
|
|
71
71
|
component: "i",
|
|
@@ -50,6 +50,7 @@ declare const _default: React.ComponentType<{
|
|
|
50
50
|
eventCallback?: (eventName: string, data: any) => void;
|
|
51
51
|
forwardedRef?: React.ForwardedRef<any>;
|
|
52
52
|
viewParent?: any;
|
|
53
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
53
54
|
hint?: string;
|
|
54
55
|
arialabel?: string;
|
|
55
56
|
tabindex?: number;
|
|
@@ -13,6 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _clsx2 = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
15
15
|
var _resourceUrl = require("@wavemaker-ai/react-runtime/utils/resource-url");
|
|
16
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
16
17
|
var _excluded = ["pictureaspect", "resizemode", "pictureplaceholder", "tabindex", "onLoad", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave", "children", "show", "ref"];
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
18
19
|
var __jsx = _react["default"].createElement;
|
|
@@ -23,7 +24,6 @@ function objectFitClassToken(resizemode) {
|
|
|
23
24
|
return OBJECT_FIT_MODES.includes(raw) ? raw : "cover";
|
|
24
25
|
}
|
|
25
26
|
var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
26
|
-
var _props$variant;
|
|
27
27
|
var _props$pictureaspect = props.pictureaspect,
|
|
28
28
|
pictureaspect = _props$pictureaspect === void 0 ? "None" : _props$pictureaspect,
|
|
29
29
|
_props$resizemode = props.resizemode,
|
|
@@ -92,7 +92,7 @@ var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
92
92
|
var onMouseLeaveHandler = function onMouseLeaveHandler(event) {
|
|
93
93
|
onMouseLeave && onMouseLeave(event, props);
|
|
94
94
|
};
|
|
95
|
-
return __jsx(_react["default"].Fragment, null, __jsx("img", (0, _extends2["default"])({}, restProps, {
|
|
95
|
+
return __jsx(_react["default"].Fragment, null, __jsx("img", (0, _extends2["default"])({}, (0, _attr.removeInvalidAttributes)(restProps), {
|
|
96
96
|
ref: ref,
|
|
97
97
|
"data-identifier": "img",
|
|
98
98
|
title: props.hint || props.name,
|
|
@@ -102,8 +102,7 @@ var WmPicture = exports.WmPicture = /*#__PURE__*/(0, _react.memo)(function (prop
|
|
|
102
102
|
onMouseLeave: onMouseLeaveHandler,
|
|
103
103
|
src: imgSource || pictureplaceholder,
|
|
104
104
|
alt: props.alttext || "image alt text not provided",
|
|
105
|
-
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-picture-object-fit-".concat(objectFitClassToken(resizemode)), (0, _defineProperty2["default"])({}, "img-".concat(props.shape), props.shape), props.className
|
|
106
|
-
variant: props.variant,
|
|
105
|
+
className: (0, _clsx2["default"])(DEFAULT_CLASS, "wm-picture-object-fit-".concat(objectFitClassToken(resizemode)), (0, _defineProperty2["default"])({}, "img-".concat(props.shape), props.shape), props.className),
|
|
107
106
|
style: props.styles,
|
|
108
107
|
height: imageHeight,
|
|
109
108
|
width: imageWidth,
|
|
@@ -47,6 +47,7 @@ declare const _default: React.ComponentType<{
|
|
|
47
47
|
eventCallback?: (eventName: string, data: any) => void;
|
|
48
48
|
forwardedRef?: React.ForwardedRef<any>;
|
|
49
49
|
viewParent?: any;
|
|
50
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
50
51
|
hint?: string;
|
|
51
52
|
arialabel?: string;
|
|
52
53
|
tabindex?: number;
|
|
@@ -17,6 +17,7 @@ var _props = require("@wavemaker-ai/react-runtime/components/basic/progress-bar/
|
|
|
17
17
|
var _withBaseWrapper = require("@wavemaker-ai/react-runtime/higherOrder/withBaseWrapper");
|
|
18
18
|
var _formatUtil = require("@wavemaker-ai/react-runtime/utils/format-util");
|
|
19
19
|
var _constants = require("@wavemaker-ai/react-runtime/components/constants");
|
|
20
|
+
var _attr = require("@wavemaker-ai/react-runtime/utils/attr");
|
|
20
21
|
var _excluded = ["type", "datavalue", "minvalue", "maxvalue", "captionplacement", "tabindex", "arialabel", "dataset", "displayformat", "styles", "className", "hint", "height", "width", "listener", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave"];
|
|
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;
|
|
@@ -142,7 +143,7 @@ var WmProgressBar = exports.WmProgressBar = /*#__PURE__*/(0, _react.memo)(functi
|
|
|
142
143
|
} : {});
|
|
143
144
|
return __jsx(_Box["default"], (0, _extends2["default"])({
|
|
144
145
|
className: (0, _clsx["default"])(_constants.progressBarConstants.DEFAULT_CLASS, className)
|
|
145
|
-
}, rest, {
|
|
146
|
+
}, (0, _attr.removeInvalidAttributes)(rest), {
|
|
146
147
|
style: styles,
|
|
147
148
|
"aria-label": arialabel,
|
|
148
149
|
title: hint
|
|
@@ -52,6 +52,7 @@ declare const _default: React.ComponentType<{
|
|
|
52
52
|
eventCallback?: (eventName: string, data: any) => void;
|
|
53
53
|
forwardedRef?: React.ForwardedRef<any>;
|
|
54
54
|
viewParent?: any;
|
|
55
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
55
56
|
hint?: string;
|
|
56
57
|
arialabel?: string;
|
|
57
58
|
tabindex?: number;
|
|
@@ -35,6 +35,7 @@ declare const WmRichTextEditorStandalone: React.ComponentType<import("../../data
|
|
|
35
35
|
eventCallback?: (eventName: string, data: any) => void;
|
|
36
36
|
forwardedRef?: React.ForwardedRef<any>;
|
|
37
37
|
viewParent?: any;
|
|
38
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
38
39
|
hint?: string;
|
|
39
40
|
arialabel?: string;
|
|
40
41
|
tabindex?: number;
|
|
@@ -119,6 +120,7 @@ declare const _default: React.ComponentType<{
|
|
|
119
120
|
eventCallback?: (eventName: string, data: any) => void;
|
|
120
121
|
forwardedRef?: React.ForwardedRef<any>;
|
|
121
122
|
viewParent?: any;
|
|
123
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
122
124
|
arialabel?: string;
|
|
123
125
|
tabindex?: number;
|
|
124
126
|
styles?: React.CSSProperties;
|
|
@@ -34,6 +34,8 @@ declare const WmSearchStandalone: React.ComponentType<import("../../data/form/fo
|
|
|
34
34
|
getDisplayExpression?: (data: any) => string;
|
|
35
35
|
isSearchInChips?: boolean;
|
|
36
36
|
onChange?: (event: any, widget: any, newVal?: any, oldVal?: any) => void;
|
|
37
|
+
clearSearch?: unknown;
|
|
38
|
+
destroy?: (((names: string[]) => void) | ((formName?: string) => void)) & (((names: string[]) => void) | ((formName?: string) => void));
|
|
37
39
|
standalone?: boolean;
|
|
38
40
|
datafield?: string;
|
|
39
41
|
displayfield?: string;
|
|
@@ -149,6 +151,7 @@ declare const _default: React.NamedExoticComponent<import("../../data/form/form-
|
|
|
149
151
|
eventCallback?: (eventName: string, data: any) => void;
|
|
150
152
|
forwardedRef?: React.ForwardedRef<any>;
|
|
151
153
|
viewParent?: any;
|
|
154
|
+
destroy?: ((names: string[]) => void) | ((formName?: string) => void);
|
|
152
155
|
hint?: string;
|
|
153
156
|
arialabel?: string;
|
|
154
157
|
tabindex?: number;
|