procode-vs-template 1.0.0
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/CHANGELOG.md +37 -0
- package/README.md +188 -0
- package/dist/actions.esm.js +53 -0
- package/dist/actions.esm.js.map +1 -0
- package/dist/actions.js +55 -0
- package/dist/actions.js.map +1 -0
- package/dist/assets/delete.png +0 -0
- package/dist/assets/info.svg +5 -0
- package/dist/assets/react.svg +1 -0
- package/dist/assets/styles/_tempalte-base.scss +5 -0
- package/dist/factories.esm.js +39149 -0
- package/dist/factories.esm.js.map +1 -0
- package/dist/factories.js +39169 -0
- package/dist/factories.js.map +1 -0
- package/dist/index.esm.js +39200 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +39224 -0
- package/dist/index.js.map +1 -0
- package/dist/src/assets/styles/_tempalte-base.scss +5 -0
- package/dist/types/Action/TemplateActionFactory.d.ts +8 -0
- package/dist/types/Action/TemplateActionType.d.ts +8 -0
- package/dist/types/Action/TemplateActions/handleMenuNavigation.d.ts +1 -0
- package/dist/types/Factory/BaseType.d.ts +16 -0
- package/dist/types/Factory/TemplateWidgetFactory.d.ts +14 -0
- package/dist/types/Renderer/index.d.ts +2 -0
- package/dist/types/Widgets/Block/BlockView.d.ts +3 -0
- package/dist/types/Widgets/Block/index.d.ts +3 -0
- package/dist/types/Widgets/Block/types.d.ts +12 -0
- package/dist/types/Widgets/ConfirmationAlert/ConfirmationAlertView.d.ts +14 -0
- package/dist/types/Widgets/ConfirmationAlert/index.d.ts +11 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/AdvancedSearch.d.ts +15 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/AdvancedSearchView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/Filter.d.ts +20 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/FilterPopup.d.ts +13 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/FilterPopupView.d.ts +25 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/TypeBasedWidgetFactory.d.ts +8 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/constant.d.ts +8 -0
- package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/helper/AdvancedSearchFunctions.d.ts +7 -0
- package/dist/types/Widgets/GridToolBar/Components/Export/Export.d.ts +14 -0
- package/dist/types/Widgets/GridToolBar/Components/Export/ExportPopup.d.ts +20 -0
- package/dist/types/Widgets/GridToolBar/Components/Export/ExportView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/Export/type.d.ts +4 -0
- package/dist/types/Widgets/GridToolBar/Components/GlobalSearch/GlobalSearch.d.ts +11 -0
- package/dist/types/Widgets/GridToolBar/Components/GlobalSearch/GlobalSearchView.d.ts +9 -0
- package/dist/types/Widgets/GridToolBar/Components/GroupBy/GroupByPopUp.d.ts +17 -0
- package/dist/types/Widgets/GridToolBar/Components/GroupBy/GroupByView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/GroupBy/index.d.ts +15 -0
- package/dist/types/Widgets/GridToolBar/Components/QuickFilter/FilterPopup.d.ts +10 -0
- package/dist/types/Widgets/GridToolBar/Components/QuickFilter/QuickFilterView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/QuickFilter/index.d.ts +12 -0
- package/dist/types/Widgets/GridToolBar/Components/Reset/ResetView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/Reset/index.d.ts +11 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/CreateScreenPopup.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/UserView.d.ts +26 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/UserViewView.d.ts +13 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/ViewItem.d.ts +11 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/actions/index.d.ts +8 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/deserializedScreenView.d.ts +4 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/getSavedSystemDefault.d.ts +2 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/saveSystemDefaultInSession.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/advancedSearchHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/globalSearchHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/groupByHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/localSearchHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/paginationHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/quickFilterHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/settingHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/sortHandler.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/Components/ScreenView/services/index.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/ColumnChooser/ColumnChooser.d.ts +15 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/ColumnChooser/ColumnChooserView.d.ts +17 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/ColumnChooser/DragDropContext.d.ts +9 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/Setting.d.ts +19 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/SettingPopup.d.ts +9 -0
- package/dist/types/Widgets/GridToolBar/Components/Setting/SettingView.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/GridToolBar.d.ts +8 -0
- package/dist/types/Widgets/GridToolBar/GridToolBarView.d.ts +23 -0
- package/dist/types/Widgets/GridToolBar/data/advancedSearch/index.d.ts +46 -0
- package/dist/types/Widgets/GridToolBar/data/globalSearch/index.d.ts +4 -0
- package/dist/types/Widgets/GridToolBar/data/groupBy/index.d.ts +6 -0
- package/dist/types/Widgets/GridToolBar/data/index.d.ts +49 -0
- package/dist/types/Widgets/GridToolBar/data/quickFilter/index.d.ts +30 -0
- package/dist/types/Widgets/GridToolBar/data/setting/index.d.ts +21 -0
- package/dist/types/Widgets/GridToolBar/data/userView/index.d.ts +10 -0
- package/dist/types/Widgets/GridToolBar/enum/index.d.ts +27 -0
- package/dist/types/Widgets/GridToolBar/helper/getUniqueId.d.ts +1 -0
- package/dist/types/Widgets/GridToolBar/type.d.ts +58 -0
- package/dist/types/Widgets/InformationAlert/InformationAlert.d.ts +8 -0
- package/dist/types/Widgets/InformationAlert/InformationAlertView.d.ts +8 -0
- package/dist/types/Widgets/Menu/MenuMainHeader.d.ts +3 -0
- package/dist/types/Widgets/Menu/MenuSubHeader.d.ts +3 -0
- package/dist/types/Widgets/Menu/MenuSubItem.d.ts +3 -0
- package/dist/types/Widgets/Menu/MenuView.d.ts +6 -0
- package/dist/types/Widgets/Menu/index.d.ts +14 -0
- package/dist/types/actions.d.ts +2 -0
- package/dist/types/constant.d.ts +8 -0
- package/dist/types/factories.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/getValueFromNestedObject.d.ts +1 -0
- package/package.json +98 -0
- package/src/Action/TemplateActionFactory.ts +27 -0
- package/src/Action/TemplateActionType.ts +8 -0
- package/src/Action/TemplateActions/handleMenuNavigation.ts +23 -0
- package/src/Factory/BaseType.ts +12 -0
- package/src/Factory/TemplateWidgetFactory.tsx +50 -0
- package/src/Renderer/index.tsx +14 -0
- package/src/Widgets/Block/BlockView.tsx +31 -0
- package/src/Widgets/Block/Styles/index.scss +41 -0
- package/src/Widgets/Block/index.tsx +8 -0
- package/src/Widgets/Block/types.ts +11 -0
- package/src/Widgets/ConfirmationAlert/ConfirmationAlertView.tsx +90 -0
- package/src/Widgets/ConfirmationAlert/index.tsx +16 -0
- package/src/Widgets/ConfirmationAlert/scss/index.scss +66 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/AdvancedSearch.tsx +83 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/AdvancedSearchView.tsx +25 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/Filter.tsx +162 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/FilterPopup.tsx +437 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/FilterPopupView.tsx +111 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/TypeBasedWidgetFactory.tsx +226 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/constant.ts +55 -0
- package/src/Widgets/GridToolBar/Components/AdvancedSearch/helper/AdvancedSearchFunctions.ts +36 -0
- package/src/Widgets/GridToolBar/Components/Export/Export.tsx +57 -0
- package/src/Widgets/GridToolBar/Components/Export/ExportPopup.tsx +388 -0
- package/src/Widgets/GridToolBar/Components/Export/ExportView.tsx +21 -0
- package/src/Widgets/GridToolBar/Components/Export/type.ts +4 -0
- package/src/Widgets/GridToolBar/Components/GlobalSearch/GlobalSearch.tsx +95 -0
- package/src/Widgets/GridToolBar/Components/GlobalSearch/GlobalSearchView.tsx +65 -0
- package/src/Widgets/GridToolBar/Components/GroupBy/GroupByPopUp.tsx +115 -0
- package/src/Widgets/GridToolBar/Components/GroupBy/GroupByView.tsx +21 -0
- package/src/Widgets/GridToolBar/Components/GroupBy/index.tsx +84 -0
- package/src/Widgets/GridToolBar/Components/QuickFilter/FilterPopup.tsx +41 -0
- package/src/Widgets/GridToolBar/Components/QuickFilter/QuickFilterView.tsx +23 -0
- package/src/Widgets/GridToolBar/Components/QuickFilter/index.tsx +199 -0
- package/src/Widgets/GridToolBar/Components/Reset/ResetView.tsx +22 -0
- package/src/Widgets/GridToolBar/Components/Reset/index.tsx +41 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/CreateScreenPopup.tsx +88 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/UserView.tsx +266 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/UserViewView.tsx +67 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/ViewItem.tsx +94 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/actions/index.ts +20 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/deserializedScreenView.ts +19 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/getSavedSystemDefault.ts +18 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/saveSystemDefaultInSession.ts +12 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/advancedSearchHandler.ts +32 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/globalSearchHandler.ts +13 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/groupByHandler.ts +8 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/localSearchHandler.ts +6 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/paginationHandler.ts +6 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/quickFilterHandler.ts +13 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/settingHandler.ts +19 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/helpers/uiElementHandler/sortHandler.ts +6 -0
- package/src/Widgets/GridToolBar/Components/ScreenView/services/index.ts +63 -0
- package/src/Widgets/GridToolBar/Components/Setting/ColumnChooser/ColumnChooser.tsx +274 -0
- package/src/Widgets/GridToolBar/Components/Setting/ColumnChooser/ColumnChooserView.tsx +154 -0
- package/src/Widgets/GridToolBar/Components/Setting/ColumnChooser/DragDropContext.tsx +76 -0
- package/src/Widgets/GridToolBar/Components/Setting/Setting.tsx +116 -0
- package/src/Widgets/GridToolBar/Components/Setting/SettingPopup.tsx +23 -0
- package/src/Widgets/GridToolBar/Components/Setting/SettingView.tsx +23 -0
- package/src/Widgets/GridToolBar/GridToolBar.tsx +111 -0
- package/src/Widgets/GridToolBar/GridToolBarView.tsx +138 -0
- package/src/Widgets/GridToolBar/data/advancedSearch/index.ts +45 -0
- package/src/Widgets/GridToolBar/data/globalSearch/index.ts +4 -0
- package/src/Widgets/GridToolBar/data/groupBy/index.ts +3 -0
- package/src/Widgets/GridToolBar/data/index.ts +74 -0
- package/src/Widgets/GridToolBar/data/quickFilter/index.ts +37 -0
- package/src/Widgets/GridToolBar/data/setting/index.ts +23 -0
- package/src/Widgets/GridToolBar/data/userView/index.ts +11 -0
- package/src/Widgets/GridToolBar/enum/index.ts +29 -0
- package/src/Widgets/GridToolBar/helper/getUniqueId.ts +2 -0
- package/src/Widgets/GridToolBar/scss/index.scss +834 -0
- package/src/Widgets/GridToolBar/type.ts +63 -0
- package/src/Widgets/InformationAlert/InformationAlert.tsx +12 -0
- package/src/Widgets/InformationAlert/InformationAlertView.tsx +46 -0
- package/src/Widgets/InformationAlert/scss/index.scss +73 -0
- package/src/Widgets/Menu/MenuMainHeader.tsx +28 -0
- package/src/Widgets/Menu/MenuSubHeader.tsx +20 -0
- package/src/Widgets/Menu/MenuSubItem.tsx +10 -0
- package/src/Widgets/Menu/MenuView.tsx +19 -0
- package/src/Widgets/Menu/index.json +245 -0
- package/src/Widgets/Menu/index.tsx +32 -0
- package/src/Widgets/Menu/scss/index.scss +93 -0
- package/src/actions.ts +5 -0
- package/src/assets/delete.png +0 -0
- package/src/assets/info.svg +5 -0
- package/src/assets/react.svg +1 -0
- package/src/assets/styles/_tempalte-base.scss +5 -0
- package/src/constant.ts +8 -0
- package/src/factories.ts +5 -0
- package/src/index.ts +12 -0
- package/src/utils/getValueFromNestedObject.ts +14 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
@import "../../Widgets/ConfirmationAlert/scss/index.scss";
|
|
2
|
+
@import "../../Widgets/GridToolBar/scss/index.scss";
|
|
3
|
+
@import "../../Widgets/InformationAlert/scss/index.scss";
|
|
4
|
+
@import "../../Widgets/Menu/scss/index.scss";
|
|
5
|
+
@import "../../Widgets/Block/Styles/index.scss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleMenuNavigation: (actionInvokerProps: any, path: string, navigationType: string) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type BaseProps = {
|
|
3
|
+
widgetType?: string;
|
|
4
|
+
targetEntity?: string;
|
|
5
|
+
config: any;
|
|
6
|
+
screenDataField?: string;
|
|
7
|
+
targetScreenDataField?: string;
|
|
8
|
+
eventService?: any;
|
|
9
|
+
uiElementGroupData: Record<string, any>;
|
|
10
|
+
widgetStyle?: {
|
|
11
|
+
id?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
inline?: React.CSSProperties;
|
|
14
|
+
};
|
|
15
|
+
viewModel?: Record<string, any>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare class TemplateWidgetFactory {
|
|
3
|
+
private standardWidgetFactory;
|
|
4
|
+
private customWidgetFactory?;
|
|
5
|
+
private static factory;
|
|
6
|
+
private widgetMap;
|
|
7
|
+
private constructor();
|
|
8
|
+
static get(standardWidgetFactory: any, customWidgetFactory: any): TemplateWidgetFactory;
|
|
9
|
+
static getStandardFactory: () => any;
|
|
10
|
+
static getCustomFactory: () => any;
|
|
11
|
+
private createWidgetMap;
|
|
12
|
+
getWidgets(): Map<string, React.FC>;
|
|
13
|
+
}
|
|
14
|
+
export default TemplateWidgetFactory;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseProps } from "../../Factory/BaseType";
|
|
2
|
+
type ConfirmationAlertViewProps = BaseProps & {
|
|
3
|
+
value: any;
|
|
4
|
+
title: string;
|
|
5
|
+
messageHeader?: string;
|
|
6
|
+
messageBody?: string;
|
|
7
|
+
handleHeader?: (header: string, viewModel?: Record<string, any>) => string;
|
|
8
|
+
handleBody?: (body: string, value?: any) => string;
|
|
9
|
+
onConfirm?: () => void;
|
|
10
|
+
onCancel?: () => void;
|
|
11
|
+
onModelUpdate?: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const ConfirmationAlertView: (props: ConfirmationAlertViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default ConfirmationAlertView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseProps } from "../../Factory/BaseType";
|
|
2
|
+
export type ConfirmationAlertProps = BaseProps & {
|
|
3
|
+
value: any;
|
|
4
|
+
title: string;
|
|
5
|
+
messageHeader?: string;
|
|
6
|
+
messageBody?: string;
|
|
7
|
+
handleHeader?: (header: string) => string;
|
|
8
|
+
handleBody?: (body: string) => string;
|
|
9
|
+
};
|
|
10
|
+
declare const ConfirmationAlert: (props: ConfirmationAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ConfirmationAlert;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilterTarget } from "../../data/advancedSearch";
|
|
3
|
+
type AdvancedSearchProps = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
filterableFields: FilterTarget[];
|
|
7
|
+
uiElementGroupData: Record<string, any>;
|
|
8
|
+
config: {
|
|
9
|
+
uiElementGroupId: string;
|
|
10
|
+
};
|
|
11
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
12
|
+
loadTemplateSupportiveData?: (callBack: (args: any) => void, supportiveKeys: any) => Promise<any>;
|
|
13
|
+
};
|
|
14
|
+
declare const AdvancedSearch: React.FC<AdvancedSearchProps>;
|
|
15
|
+
export default AdvancedSearch;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Operator } from "../../enum";
|
|
2
|
+
import { FilterExpressionViewModel, FilterTarget, FilterValue } from "../../data/advancedSearch";
|
|
3
|
+
interface FilterProps {
|
|
4
|
+
uiElementGroupId: string;
|
|
5
|
+
filterRow: FilterExpressionViewModel;
|
|
6
|
+
appliedfilterCount: number;
|
|
7
|
+
loadTemplateSupportiveData?: (callBack: (args: any) => void, supportiveKeys: string[]) => Promise<any>;
|
|
8
|
+
onFilterTargetChange: (value: FilterTarget, id: string) => void;
|
|
9
|
+
onOperatorChange: (value: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: Operator | null;
|
|
12
|
+
}, id: string) => void;
|
|
13
|
+
onFilterValueChange: (value: FilterValue[] | FilterValue, id: string) => void;
|
|
14
|
+
onCriteriaToggle: (id: string) => void;
|
|
15
|
+
onAddFilter: (id: string) => void;
|
|
16
|
+
onDeleteFilter: (id: string) => void;
|
|
17
|
+
handleFilterAllValues: (result: any, id: string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const Filter: (props: FilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Filter;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterTarget } from "../../data/advancedSearch";
|
|
2
|
+
interface FilterPopupProps {
|
|
3
|
+
uiElementGroupData: Record<string, any>;
|
|
4
|
+
filterableFields: FilterTarget[];
|
|
5
|
+
config: {
|
|
6
|
+
uiElementGroupId: string;
|
|
7
|
+
};
|
|
8
|
+
handlePopupShow: () => void;
|
|
9
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
10
|
+
loadTemplateSupportiveData?: (callBack: (args: any) => void, supportiveKeys: any) => Promise<any>;
|
|
11
|
+
}
|
|
12
|
+
declare const FilterPopup: (props: FilterPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default FilterPopup;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FilterExpressionViewModel, FilterTarget } from "../../data/advancedSearch";
|
|
2
|
+
import { Operator } from "../../enum";
|
|
3
|
+
interface FilterPopupViewProps {
|
|
4
|
+
uiElementGroupId: string;
|
|
5
|
+
filterRows: FilterExpressionViewModel[];
|
|
6
|
+
criteria: string;
|
|
7
|
+
loadTemplateSupportiveData?: (callBack: (args: any) => void, supportiveKeys: any) => Promise<any>;
|
|
8
|
+
onFilterTargetChange: (value: FilterTarget, id: string) => void;
|
|
9
|
+
onOperatorChange: (value: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: Operator | null;
|
|
12
|
+
}, id: string) => void;
|
|
13
|
+
onFilterValueChange: (value: any, id: string) => void;
|
|
14
|
+
onCriteriaToggle: (id: string) => void;
|
|
15
|
+
onAddFilter: (id: string) => void;
|
|
16
|
+
onDeleteFilter: (id: string) => void;
|
|
17
|
+
onClear: () => void;
|
|
18
|
+
onCriteriaApplied: () => void;
|
|
19
|
+
onCopyToClipboard: () => void;
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
onApply: () => void;
|
|
22
|
+
handleFilterAllValues: (result: any, id: string) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const FilterPopupView: (props: FilterPopupViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default FilterPopupView;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilterExpressionViewModel, FilterValue } from "../../data/advancedSearch";
|
|
3
|
+
type TypeBasedWidgetFactoryProps = {
|
|
4
|
+
filterRow: FilterExpressionViewModel;
|
|
5
|
+
onFilterValueChange: (value: FilterValue | FilterValue[], id: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const TypeBasedWidgetFactory: React.FC<TypeBasedWidgetFactoryProps>;
|
|
8
|
+
export default TypeBasedWidgetFactory;
|
package/dist/types/Widgets/GridToolBar/Components/AdvancedSearch/helper/AdvancedSearchFunctions.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterExpressionViewModel } from "../../../data/advancedSearch";
|
|
2
|
+
import { FilterTargetType } from "../../../enum";
|
|
3
|
+
export declare const getTypeBasedOperators: (type: FilterTargetType) => {
|
|
4
|
+
label: string;
|
|
5
|
+
value: import("../../../enum").Operator;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const getAdvancedSearchIntitialFilterRow: () => FilterExpressionViewModel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExportType } from "./type";
|
|
2
|
+
export type ExportProps = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
config: {
|
|
6
|
+
uiElementGroupId: string;
|
|
7
|
+
};
|
|
8
|
+
onExport?: (callBack: ((args: any) => void) | null, exportType: ExportType, exportDataScope: string) => void;
|
|
9
|
+
onExportDelete: (callBack: ((args: any) => void) | null, id: string) => void;
|
|
10
|
+
onExportList: (callBack: ((args: any) => void) | null) => void;
|
|
11
|
+
onExportDownload: (callBack: ((args: any) => void) | null, id: string) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Export: (props: ExportProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default Export;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExportType } from "./type";
|
|
3
|
+
interface ExportPopupProps {
|
|
4
|
+
setTogglePopup: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
onExport: (callBack: () => void, type: ExportViewModel[]) => void;
|
|
6
|
+
onExportDelete: (callBack: ((args: any) => void) | null, id: string) => void;
|
|
7
|
+
onExportList: (callBack: ((args: any) => void) | null) => void;
|
|
8
|
+
onExportDownload: (callBack: ((args: any) => void) | null, id: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export type ExportViewModel = {
|
|
11
|
+
id?: string;
|
|
12
|
+
exportType?: ExportType | null;
|
|
13
|
+
exportDataScope?: string | null;
|
|
14
|
+
validation: {
|
|
15
|
+
exportType: string;
|
|
16
|
+
exportDataScope: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const ExportPopup: (props: ExportPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default ExportPopup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type GlobalSearchProps = {
|
|
2
|
+
uiElementGroupData: Record<string, any>;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
config: {
|
|
6
|
+
uiElementGroupId: string;
|
|
7
|
+
};
|
|
8
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const GlobalSearch: (props: GlobalSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default GlobalSearch;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type GlobalSearchViewProps = {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
value: string | undefined;
|
|
4
|
+
onSearchChange: (searchKey: string | undefined) => void;
|
|
5
|
+
onClearSearch: () => void;
|
|
6
|
+
onSearch: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const GlobalSearchView: (props: GlobalSearchViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GlobalSearchView;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface GroupByPopUpProps {
|
|
2
|
+
selectedGroups: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
groupableFields: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
onPopupToggle: () => void;
|
|
11
|
+
onGroupApply: (groupField: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[]) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const GroupByPopUp: (props: GroupByPopUpProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default GroupByPopUp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type GroupByProps = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
groupableFields: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
uiElementGroupData: Record<string, any>;
|
|
9
|
+
config: {
|
|
10
|
+
uiElementGroupId: string;
|
|
11
|
+
};
|
|
12
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const GroupBy: (props: GroupByProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default GroupBy;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FilterExpression } from "../../data/quickFilter";
|
|
2
|
+
interface FilterPopupProps {
|
|
3
|
+
filterRows: FilterExpression[];
|
|
4
|
+
onQuickFilterApply: (id: string, value: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const FilterPopup: (props: FilterPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default FilterPopup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type QuickFilterProps = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
uiElementGroupData: Record<string, any>;
|
|
5
|
+
config: {
|
|
6
|
+
uiElementGroupId: string;
|
|
7
|
+
};
|
|
8
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
9
|
+
loadTemplateSupportiveData?: (callBack: (args: any) => void, supportiveKeys: any) => Promise<any>;
|
|
10
|
+
};
|
|
11
|
+
declare const QuickFilter: (props: QuickFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default QuickFilter;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ResetProps = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
uiElementGroupData: Record<string, any>;
|
|
5
|
+
config: {
|
|
6
|
+
uiElementGroupId: string;
|
|
7
|
+
};
|
|
8
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const Reset: (props: ResetProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Reset;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FilterTarget } from "../../data/advancedSearch";
|
|
2
|
+
import { FilterTarget as FilterTargetQuick } from "../../data/quickFilter";
|
|
3
|
+
import { DataWidgetType } from "../Setting/Setting";
|
|
4
|
+
import { ChooserColumn } from "../../data/setting";
|
|
5
|
+
export declare const _defaultView: {
|
|
6
|
+
id: string;
|
|
7
|
+
isDefault: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
isSelected: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type UserViewProps = {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
enableDefaultSaveInSession: boolean;
|
|
15
|
+
advancedFilterableFields: FilterTarget[];
|
|
16
|
+
quickFilterRows: FilterTargetQuick[];
|
|
17
|
+
activeDataWidgetType: DataWidgetType;
|
|
18
|
+
columns: ChooserColumn[];
|
|
19
|
+
config: {
|
|
20
|
+
uiElementGroupId: string;
|
|
21
|
+
};
|
|
22
|
+
uiElementGroupData: Record<string, any>;
|
|
23
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
24
|
+
};
|
|
25
|
+
declare const UserView: (props: UserViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default UserView;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { View } from "../../data/userView";
|
|
2
|
+
export type UserViewViewProps = {
|
|
3
|
+
selectedView?: View;
|
|
4
|
+
allViews: View[];
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onViewToggle: () => void;
|
|
7
|
+
setDefault: (id: string) => void;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onSave: () => void;
|
|
10
|
+
markAsSelected: (view: View) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const UserViewView: ({ selectedView, allViews, disabled, onViewToggle, setDefault, onDelete, onSave, markAsSelected, }: UserViewViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default UserViewView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { View } from "../../data/userView";
|
|
2
|
+
type ViewItem = {
|
|
3
|
+
view: View;
|
|
4
|
+
selectedView?: View;
|
|
5
|
+
onDelete: (id: string) => void;
|
|
6
|
+
onSave: () => void;
|
|
7
|
+
markAsSelected: (view: View) => void;
|
|
8
|
+
setDefault: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const ViewItem: ({ view, selectedView, onDelete, onSave, markAsSelected, setDefault, }: ViewItem) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ViewItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ScreenViewProps = {
|
|
2
|
+
id: string;
|
|
3
|
+
viewName: string;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const loadScreensAction: (targetEntity: string) => Promise<import("../../../data/userView").View[]>;
|
|
7
|
+
export declare const createScreenAction: () => void;
|
|
8
|
+
export declare const deleteScreenAction: () => void;
|
package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/deserializedScreenView.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { View } from "../../../data/userView";
|
|
2
|
+
import { ScreenViewProps } from "../actions";
|
|
3
|
+
export declare const deserializedScreenView: (screenData: ScreenViewProps) => View;
|
|
4
|
+
export declare const getDeserializedScreenViewList: (screenData: ScreenViewProps[]) => View[];
|
package/dist/types/Widgets/GridToolBar/Components/ScreenView/helpers/saveSystemDefaultInSession.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const saveSystemDefaultInSession: (uiElementGroupId: string, uiElementGroupData?: Record<string, any>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedSearchHandler: (advancedSearch: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const globalSearchHandler: (globalSearch: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const groupByHandler: (groupedBy: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const localSearch: (localSearch: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const paginationHandler: (pagination: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const quickFilterHandler: (quickFilter: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const settingHandler: (setting: any, initialData: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sortHandler: (sort: any, initialData: any) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChooserColumn } from "../../../data/setting";
|
|
2
|
+
export type ColumnChooserProps = {
|
|
3
|
+
uiElementGroupData: Record<string, any>;
|
|
4
|
+
toggleColumnChooser: boolean;
|
|
5
|
+
columns: ChooserColumn[];
|
|
6
|
+
config: {
|
|
7
|
+
uiElementGroupId: string;
|
|
8
|
+
};
|
|
9
|
+
onChooserClick: () => void;
|
|
10
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
11
|
+
setToggleColumnChooser: (status: boolean) => void;
|
|
12
|
+
setTogglePopup: (status: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const ColumnChooser: (props: ColumnChooserProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ColumnChooser;
|
package/dist/types/Widgets/GridToolBar/Components/Setting/ColumnChooser/ColumnChooserView.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChooserColumn } from "../../../data/setting";
|
|
3
|
+
export type ColumnChooserViewProps = {
|
|
4
|
+
popupChooserRef: any;
|
|
5
|
+
allColumns: ChooserColumn[];
|
|
6
|
+
selectedColumns: ChooserColumn[];
|
|
7
|
+
searchInput: string;
|
|
8
|
+
onFieldAddOrRemove: (id: number) => void;
|
|
9
|
+
excludeIncludeToCard: (id: number) => void;
|
|
10
|
+
toggleFreeze: (id: number) => void;
|
|
11
|
+
onChooserApply: () => void;
|
|
12
|
+
onChooserRestore: () => void;
|
|
13
|
+
onFieldDragEnd: (result: any) => void;
|
|
14
|
+
setSearchInput: (searchKey: string) => void;
|
|
15
|
+
};
|
|
16
|
+
declare const ColumnChooserView: React.FC<ColumnChooserViewProps>;
|
|
17
|
+
export default ColumnChooserView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChooserColumn } from "../../../data/setting";
|
|
2
|
+
type DragDropContainer = {
|
|
3
|
+
column: ChooserColumn;
|
|
4
|
+
excludeIncludeToCard: (id: number) => void;
|
|
5
|
+
toggleFreeze: (id: number) => void;
|
|
6
|
+
onFieldAddOrRemove: (id: number) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const DragDropContainer: ({ column, excludeIncludeToCard, toggleFreeze, onFieldAddOrRemove, }: DragDropContainer) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DragDropContainer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChooserColumn } from "../../data/setting";
|
|
2
|
+
export declare enum DataWidgetType {
|
|
3
|
+
CARD = "CARD",
|
|
4
|
+
GRID = "GRID"
|
|
5
|
+
}
|
|
6
|
+
export type SettingProps = {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
disableColumnChooser: boolean;
|
|
10
|
+
disabledDisplayWidgetType: boolean;
|
|
11
|
+
columns: ChooserColumn[];
|
|
12
|
+
uiElementGroupData: Record<string, any>;
|
|
13
|
+
config: {
|
|
14
|
+
uiElementGroupId: string;
|
|
15
|
+
};
|
|
16
|
+
onModelUpdate: (callBack: ((args: any) => void) | null, fieldName: string, value: any) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const Setting: (props: SettingProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default Setting;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataWidgetType } from "./Setting";
|
|
2
|
+
type SettingPopupProps = {
|
|
3
|
+
activeDataWidgetType: DataWidgetType;
|
|
4
|
+
onSettingClick: () => void;
|
|
5
|
+
onChooserClick: () => void;
|
|
6
|
+
onWidgetTypeClick: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const SettingPopup: (props: SettingPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SettingPopup;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseProps } from "../../Factory/BaseType";
|
|
3
|
+
import { ActionProps, ToolbarOptions } from "./type";
|
|
4
|
+
export type GridToolBarProps = BaseProps & ActionProps & {
|
|
5
|
+
toolBarOptions: ToolbarOptions;
|
|
6
|
+
};
|
|
7
|
+
declare const GridToolBar: React.FC<GridToolBarProps>;
|
|
8
|
+
export default GridToolBar;
|