ods-component-lib 1.18.273 → 1.19.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/README.md +13 -4
- package/dist/components/antd/input/OdsInput.d.ts +4 -0
- package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
- package/dist/components/devextreme/DataGrid/OdsDataGrid/index.d.ts +67 -0
- package/dist/components/devextreme/DataGrid/hooks/index.d.ts +1 -0
- package/dist/components/devextreme/DataGrid/hooks/useBodyClasses.d.ts +47 -0
- package/dist/components/devextreme/DataGrid/styles/OdsGlobal.Styles.d.ts +3 -0
- package/dist/components/devextreme/DataGrid/styles/styles.d.ts +7 -0
- package/dist/components/devextreme/DataGrid/styles/theme/colors/dark.d.ts +34 -0
- package/dist/components/devextreme/DataGrid/styles/theme/colors/default.d.ts +34 -0
- package/dist/components/devextreme/DataGrid/styles/theme/colors/index.d.ts +6 -0
- package/dist/components/devextreme/DataGrid/styles/theme/index.d.ts +2 -0
- package/dist/components/devextreme/DataGrid/styles/theme/sizes/compact.d.ts +2 -0
- package/dist/components/devextreme/DataGrid/styles/theme/sizes/default.d.ts +107 -0
- package/dist/components/devextreme/DataGrid/styles/theme/sizes/index.d.ts +6 -0
- package/dist/components/devextreme/OdsDataGrid.Legacy.d.ts +7 -0
- package/dist/index.css +44 -66
- package/dist/index.d.ts +78 -130
- package/dist/index.js +21344 -21923
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7784 -8374
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsDateRangePicker/OdsDateRangePicker.stories.d.ts +1 -1
- package/dist/stories/OdsInput/OdsInput.stories.d.ts +1 -1
- package/dist/stories/OdsLink/OdsLink.stories.d.ts +3 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/ToolbarItems/DataGridToolbarItems.Constants.d.ts +1 -2
- package/dist/stories/OdsTreeSelect/OdsTreeSelect.stories.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
or
|
|
12
|
+
if you want to install without running the postinstall script
|
|
13
|
+
npm install --ignore-scripts
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Install Odeon Component Library in a project
|
|
17
|
+
|
|
9
18
|
```bash
|
|
10
19
|
npm install --save odeon-component-library
|
|
11
20
|
```
|
|
@@ -13,14 +22,14 @@ npm install --save odeon-component-library
|
|
|
13
22
|
## Usage
|
|
14
23
|
|
|
15
24
|
```tsx
|
|
16
|
-
import React, { Component } from
|
|
25
|
+
import React, { Component } from "react";
|
|
17
26
|
|
|
18
|
-
import MyComponent from
|
|
19
|
-
import
|
|
27
|
+
import MyComponent from "odeon-component-library";
|
|
28
|
+
import "odeon-component-library/dist/index.css";
|
|
20
29
|
|
|
21
30
|
class Example extends Component {
|
|
22
31
|
render() {
|
|
23
|
-
return <MyComponent
|
|
32
|
+
return <MyComponent />;
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "defaultValue" | "value" | "onChange" | "onOk" | "locale" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onSelect" | "onKeyDown" | "size" | "prefix" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "
|
|
2
|
+
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "form" | "slot" | "style" | "title" | "pattern" | "defaultValue" | "value" | "onChange" | "onOk" | "locale" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onSelect" | "onKeyDown" | "size" | "prefix" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "maxLength" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "src" | "step" | "type" | "width" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "showMillisecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "millisecondStep" | "hideDisabledOptions" | "defaultOpenValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "disabledTime" | "changeOnScroll" | "removeIcon" | "maxTagCount" | "onCalendarChange" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange" | "presets" | "mode" | "onPanelChange" | "direction" | "prefixCls" | "styles" | "classNames" | "showWeek" | "suffixIcon" | "allowClear" | "clearIcon" | "inputReadOnly" | "order" | "disabledDate" | "minDate" | "maxDate" | "defaultOpen" | "open" | "onOpenChange" | "popupAlign" | "getPopupContainer" | "placement" | "builtinPlacements" | "needConfirm" | "changeOnBlur" | "preserveInvalidOnBlur" | "transitionName" | "components" | "inputRender" | "cellRender" | "dateRender" | "monthCellRender" | "showToday" | "panelRender" | "renderExtraFooter" | "bordered" | "status" | "variant" | "dropdownClassName" | "popupClassName" | "rootClassName" | "popupStyle" | "key" | "addon"> & import("react").RefAttributes<import("rc-picker").PickerRef>> & {
|
|
3
3
|
RangePicker: import("react").ForwardRefExoticComponent<import("antd").TimeRangePickerProps & import("react").RefAttributes<import("rc-picker").PickerRef>>;
|
|
4
4
|
_InternalPanelDoNotUseOrYouWillBeFired: (props: Record<string | number | symbol, any>) => import("react").JSX.Element;
|
|
5
5
|
}, any, {}, never>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDataGridOptions } from "devextreme-react/data-grid";
|
|
3
|
+
import { useStyles } from "../styles/styles";
|
|
4
|
+
import { useBodyClasses } from "../hooks";
|
|
5
|
+
import type * as OdsDataGridTypes from "devextreme/ui/data_grid_types";
|
|
6
|
+
export declare const DATA_GRID_CLASSES: {
|
|
7
|
+
readonly generic: "ods-datagrid-generic";
|
|
8
|
+
readonly compact: "ods-datagrid-compact";
|
|
9
|
+
};
|
|
10
|
+
export interface IOdsDataGridOptions extends IDataGridOptions {
|
|
11
|
+
dataGridRef?: any;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
hasSummaryButton?: boolean;
|
|
14
|
+
disableBodyClasses?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Default appearance settings for the OdsDataGrid component.
|
|
18
|
+
* These settings are applied to the DataGrid to ensure a consistent look and feel.
|
|
19
|
+
* They include options for column reordering, resizing, auto width, fixing, and more.
|
|
20
|
+
*/
|
|
21
|
+
export declare const defaultAppearanceSettings: Partial<IOdsDataGridOptions>;
|
|
22
|
+
/**
|
|
23
|
+
* OdsDataGrid is a customizable wrapper component for the DevExtreme DataGrid.
|
|
24
|
+
* It provides additional styling, body class management, and default appearance settings.
|
|
25
|
+
*
|
|
26
|
+
* @param {IOdsDataGridOptions} props - The properties for configuring the OdsDataGrid component.
|
|
27
|
+
* @param {React.RefObject} props.dataGridRef - A reference to the underlying DataGrid component.
|
|
28
|
+
* @param {boolean} [props.compact] - Determines whether the grid should use a compact layout. Defaults to `false`.
|
|
29
|
+
* @param {boolean} [props.hasSummaryButton] - Indicates if the grid includes a summary button. Defaults to `false`.
|
|
30
|
+
* @param {boolean} [props.disableBodyClasses=false] - If `true`, disables the addition of body classes for styling. Defaults to `false`.
|
|
31
|
+
* @param {React.ReactNode} [props.children] - The child elements to be rendered inside the DataGrid.
|
|
32
|
+
* @param {object} [props...] - Additional properties passed to the underlying DataGrid component.
|
|
33
|
+
*
|
|
34
|
+
* @returns {JSX.Element} A styled wrapper around the DevExtreme DataGrid component.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* - The `useStyles` hook is used to generate styles based on the `compact` and `hasSummaryButton` properties.
|
|
38
|
+
* - The `useBodyClasses` hook manages the addition and cleanup of body classes for styling purposes.
|
|
39
|
+
* - Default appearance settings are applied to the DataGrid using the `getDefaultAppearanceSettings` function.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* import { OdsDataGrid } from './OdsDataGrid';
|
|
44
|
+
*
|
|
45
|
+
* const MyComponent = () => {
|
|
46
|
+
* const dataGridRef = useRef(null);
|
|
47
|
+
*
|
|
48
|
+
* return (
|
|
49
|
+
* <OdsDataGrid
|
|
50
|
+
* dataGridRef={dataGridRef}
|
|
51
|
+
* compact={true}
|
|
52
|
+
* hasSummaryButton={true}
|
|
53
|
+
* disableBodyClasses={false}
|
|
54
|
+
* dataSource={myDataSource}
|
|
55
|
+
* >
|
|
56
|
+
* <Column dataField="name" />
|
|
57
|
+
* <Column dataField="age" />
|
|
58
|
+
* </OdsDataGrid>
|
|
59
|
+
* );
|
|
60
|
+
* };
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare const OdsDataGrid: ({ dataGridRef, compact, hasSummaryButton, disableBodyClasses, ...props }: IOdsDataGridOptions) => JSX.Element;
|
|
64
|
+
export declare const OdsDataGridMemoized: React.MemoExoticComponent<({ dataGridRef, compact, hasSummaryButton, disableBodyClasses, ...props }: IOdsDataGridOptions) => JSX.Element>;
|
|
65
|
+
export * from "devextreme-react/data-grid";
|
|
66
|
+
export { OdsDataGridTypes };
|
|
67
|
+
export { useBodyClasses as useOdsBodyClasses, useStyles as useOdsDataGridStyles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useBodyClasses";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare type ClassAction = "add" | "remove" | "toggle";
|
|
2
|
+
interface UseBodyClassesOptions {
|
|
3
|
+
classes: Record<string, ClassAction | boolean>;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
cleanupStrategy?: "all" | "self" | "none";
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A custom React hook that manages CSS classes on the `<body>` element dynamically.
|
|
9
|
+
* This hook allows adding, removing, or toggling classes on the `<body>` element
|
|
10
|
+
* based on the provided configuration. It also supports cleanup strategies to
|
|
11
|
+
* manage the lifecycle of the applied classes.
|
|
12
|
+
*
|
|
13
|
+
* @param {UseBodyClassesOptions} options - The configuration options for managing body classes.
|
|
14
|
+
* @param {Record<string, boolean | 'add' | 'remove' | 'toggle'>} options.classes -
|
|
15
|
+
* An object where keys are class names and values determine the action to perform:
|
|
16
|
+
* - `true` or `'add'`: Adds the class to the `<body>`.
|
|
17
|
+
* - `'remove'`: Removes the class from the `<body>`.
|
|
18
|
+
* - `'toggle'`: Toggles the class on the `<body>` (adds if not present, removes if present).
|
|
19
|
+
* @param {boolean} [options.enabled=true] - A flag to enable or disable the hook's functionality.
|
|
20
|
+
* When `false`, no classes will be added or removed.
|
|
21
|
+
* @param {'self' | 'all' | 'none'} [options.cleanupStrategy='self'] - Determines how to clean up
|
|
22
|
+
* classes when the component unmounts or when the `classes` object changes:
|
|
23
|
+
* - `'self'`: Removes only the classes added by this hook.
|
|
24
|
+
* - `'all'`: Removes all classes managed by this hook, including those from previous renders.
|
|
25
|
+
* - `'none'`: Does not remove any classes on cleanup.
|
|
26
|
+
*
|
|
27
|
+
* @returns {void} This hook does not return any value.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Example usage of the `useBodyClasses` hook:
|
|
31
|
+
* useBodyClasses({
|
|
32
|
+
* classes: {
|
|
33
|
+
* 'dark-mode': true,
|
|
34
|
+
* 'sidebar-open': 'toggle',
|
|
35
|
+
* 'no-scroll': 'remove',
|
|
36
|
+
* },
|
|
37
|
+
* enabled: true,
|
|
38
|
+
* cleanupStrategy: 'self',
|
|
39
|
+
* });
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* - This hook is safe to use in environments where `document` is undefined (e.g., during SSR).
|
|
43
|
+
* - The `classes` object can dynamically change, and the hook will update the `<body>` classes accordingly.
|
|
44
|
+
* - Ensure that class names provided in the `classes` object are valid CSS class names.
|
|
45
|
+
*/
|
|
46
|
+
export declare const useBodyClasses: ({ classes, enabled, cleanupStrategy, }: UseBodyClassesOptions) => void;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const darkColors: (token: any) => {
|
|
2
|
+
whiteColor: any;
|
|
3
|
+
primaryColor: any;
|
|
4
|
+
primaryColorActive: any;
|
|
5
|
+
primaryColorHover: any;
|
|
6
|
+
primaryColorBg: any;
|
|
7
|
+
primaryColorBorder: any;
|
|
8
|
+
colorErrorText: any;
|
|
9
|
+
colorErrorTextActive: any;
|
|
10
|
+
colorErrorTextHover: any;
|
|
11
|
+
colorErrorBg: any;
|
|
12
|
+
colorErrorBgActive: any;
|
|
13
|
+
colorSuccessText: any;
|
|
14
|
+
colorSuccessTextActive: any;
|
|
15
|
+
colorSuccessTextHover: any;
|
|
16
|
+
colorSuccessBg: any;
|
|
17
|
+
colorSuccessBorder: any;
|
|
18
|
+
solidColorBgHover: any;
|
|
19
|
+
solidColorBgActive: any;
|
|
20
|
+
colorFillTertiary: any;
|
|
21
|
+
colorTextDescription: any;
|
|
22
|
+
colorFillAlter: any;
|
|
23
|
+
controlItemBgActive: any;
|
|
24
|
+
controlItemBgHover: any;
|
|
25
|
+
boxShadowColor: string;
|
|
26
|
+
columnTextColor: string;
|
|
27
|
+
textDescriptionColor: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
iconColor: string;
|
|
30
|
+
headerBorderColor: string;
|
|
31
|
+
checkboxBorderColor: string;
|
|
32
|
+
toolbarBorderColor: string;
|
|
33
|
+
headerCommandSelectBg: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const defaultColors: (token: any) => {
|
|
2
|
+
whiteColor: any;
|
|
3
|
+
primaryColor: any;
|
|
4
|
+
primaryColorActive: any;
|
|
5
|
+
primaryColorHover: any;
|
|
6
|
+
primaryColorBg: any;
|
|
7
|
+
primaryColorBorder: any;
|
|
8
|
+
colorErrorText: any;
|
|
9
|
+
colorErrorTextActive: any;
|
|
10
|
+
colorErrorTextHover: any;
|
|
11
|
+
colorErrorBg: any;
|
|
12
|
+
colorErrorBgActive: any;
|
|
13
|
+
colorSuccessText: any;
|
|
14
|
+
colorSuccessTextActive: any;
|
|
15
|
+
colorSuccessTextHover: any;
|
|
16
|
+
colorSuccessBg: any;
|
|
17
|
+
colorSuccessBorder: any;
|
|
18
|
+
solidColorBgHover: any;
|
|
19
|
+
solidColorBgActive: any;
|
|
20
|
+
colorFillTertiary: any;
|
|
21
|
+
colorTextDescription: any;
|
|
22
|
+
colorFillAlter: any;
|
|
23
|
+
controlItemBgActive: any;
|
|
24
|
+
controlItemBgHover: any;
|
|
25
|
+
boxShadowColor: string;
|
|
26
|
+
columnTextColor: string;
|
|
27
|
+
textDescriptionColor: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
iconColor: string;
|
|
30
|
+
headerBorderColor: string;
|
|
31
|
+
checkboxBorderColor: string;
|
|
32
|
+
toolbarBorderColor: string;
|
|
33
|
+
headerCommandSelectBg: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defaultColors } from "./default";
|
|
2
|
+
import { darkColors } from "./dark";
|
|
3
|
+
export declare type ColorTheme = ReturnType<typeof defaultColors>;
|
|
4
|
+
export declare type ColorScheme = "default" | "dark";
|
|
5
|
+
export declare const getColors: (scheme: ColorScheme, token: any) => ColorTheme;
|
|
6
|
+
export { defaultColors, darkColors };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const defaultSizes: {
|
|
2
|
+
dxDataGridBorderRadius: number;
|
|
3
|
+
dxWidgetFontSize: number;
|
|
4
|
+
dxHeaderFilterFontSize: number;
|
|
5
|
+
dxSelectionColumnWidth: number;
|
|
6
|
+
dxDataColumnsHeight: number;
|
|
7
|
+
dxDataColumnsPaddingInline: number;
|
|
8
|
+
dxIconFilterFontSize: number;
|
|
9
|
+
dxIconFilterlineHeight: number;
|
|
10
|
+
dxTextEditorInputMinHeight: number;
|
|
11
|
+
dxCheckboxSize: number;
|
|
12
|
+
dxCheckboxBorderRadiusSize: number;
|
|
13
|
+
dxCheckboxCheckIconSize: number;
|
|
14
|
+
dxTextEditorInputLineHeight: number;
|
|
15
|
+
dxIconFontSize: number;
|
|
16
|
+
dxLoadPanelContentWrapperGap: number;
|
|
17
|
+
dxButton: {
|
|
18
|
+
dxButtonPaddingInline: number;
|
|
19
|
+
dxButtonPaddingBlock: number;
|
|
20
|
+
dxButtonFontSize: number;
|
|
21
|
+
dxButtonLineHeight: number;
|
|
22
|
+
dxButtonBorderRadius: number;
|
|
23
|
+
};
|
|
24
|
+
dxFilterMenu: {
|
|
25
|
+
dxMenuItemIconSize: number;
|
|
26
|
+
dxMenuItemPopoutContainerWidth: number;
|
|
27
|
+
dxMenuItemContentPaddingTop: number;
|
|
28
|
+
dxMenuItemContentPaddingInline: number;
|
|
29
|
+
dxMenuItemContentPaddingBottom: number;
|
|
30
|
+
};
|
|
31
|
+
dxActionColumn: {
|
|
32
|
+
dxActionColumnItemWidth: number;
|
|
33
|
+
dxActionColumnItemButtonSize: number;
|
|
34
|
+
};
|
|
35
|
+
dxToolbarSettings: {
|
|
36
|
+
dxSettingsIconSize: number;
|
|
37
|
+
dxPopupOverlayBorderRadius: number;
|
|
38
|
+
dxPopupOverlayPopupPaddingVertical: number;
|
|
39
|
+
dxPopupOverlayPopupPaddingHorizontal: number;
|
|
40
|
+
dxPopupOverlayPopupItemPaddingVertical: number;
|
|
41
|
+
dxPopupOverlayPopupItemPaddingHorizontal: number;
|
|
42
|
+
dxPopupOverlayPopupItemGap: number;
|
|
43
|
+
dxPopupOverlayMarginTop: number;
|
|
44
|
+
};
|
|
45
|
+
dxToolbar: {
|
|
46
|
+
dxToolbarTtemsContainerGap: number;
|
|
47
|
+
dxToolbarTtemsContainerBeforeAfterGap: number;
|
|
48
|
+
dxToolbarItemBorderRadius: number;
|
|
49
|
+
dxToolbarPaddingHorizontal: number;
|
|
50
|
+
dxToolbarPaddingVertical: number;
|
|
51
|
+
dxToolbarButtonsPadding: number;
|
|
52
|
+
dxToolbarAntButtonPaddingInline: number;
|
|
53
|
+
dxToolbarTitleFontSize: number;
|
|
54
|
+
};
|
|
55
|
+
dxSearchBoxSizes: {
|
|
56
|
+
dxSearchBoxHeight: number;
|
|
57
|
+
dxSearchBoxIconWidth: number;
|
|
58
|
+
dxSearchBoxIconHeight: number;
|
|
59
|
+
dxSearchBoxIconLineHeight: number;
|
|
60
|
+
dxSearchBoxInputPaddingTop: number;
|
|
61
|
+
dxSearchBoxInputPaddingRight: number;
|
|
62
|
+
dxSearchBoxInputPaddingBottom: number;
|
|
63
|
+
dxSearchBoxInputPaddingLeft: number;
|
|
64
|
+
dxSearchBoxInputFontSize: number;
|
|
65
|
+
dxSearchBoxInputLineHeight: number;
|
|
66
|
+
dxSearchBoxInputMinHeight: number;
|
|
67
|
+
dxSearchBoxClearButtonWidth: number;
|
|
68
|
+
dxSearchBoxClearButtonHeight: number;
|
|
69
|
+
dxSearchBoxClearButtonPadding: number;
|
|
70
|
+
dxSearchBoxClearButtonFontSize: number;
|
|
71
|
+
dxSearchBoxClearButtonBackgroundSize: number;
|
|
72
|
+
dxSearchBoxClearButtonBackgroundPosition: number;
|
|
73
|
+
};
|
|
74
|
+
dxSummarySizes: {
|
|
75
|
+
dxSummaryToggleButtonWidth: number;
|
|
76
|
+
dxSummaryToggleButtonHeight: number;
|
|
77
|
+
dxSummaryToggleButtonRight: number;
|
|
78
|
+
dxSummaryToggleButtonTop: number;
|
|
79
|
+
dxSummaryToggleButtonBorderRadius: number;
|
|
80
|
+
dxSummaryContentPaddingTop: number;
|
|
81
|
+
dxFilterPanelMinHeight: number;
|
|
82
|
+
dxFiltersPanelPaddingLeft: number;
|
|
83
|
+
dxFiltersPanelPaddingRightDefault: number;
|
|
84
|
+
dxFiltersPanelPaddingRight: number;
|
|
85
|
+
dxFiltersPanelPaddingRightBig: number;
|
|
86
|
+
dxFiltersPanelTextLineHeight: number;
|
|
87
|
+
dxFiltersPanelPaddingTop: number;
|
|
88
|
+
dxFiltersPanelPaddingBottom: number;
|
|
89
|
+
dxFiltersPanelLeftGap: number;
|
|
90
|
+
};
|
|
91
|
+
dxColumnTagSizes: {
|
|
92
|
+
dxColumnTagFontSize: number;
|
|
93
|
+
dxColumnTagLineHeight: number;
|
|
94
|
+
dxColumnTagPaddingInline: number;
|
|
95
|
+
};
|
|
96
|
+
dxToolbarMenu: {
|
|
97
|
+
dxToolbarMenuItemFontSize: number;
|
|
98
|
+
dxToolbarMenuItemLineHeight: number;
|
|
99
|
+
dxToolbarMenuContainerPaddingInline: number;
|
|
100
|
+
dxToolbarMenuContainerPaddingBlock: number;
|
|
101
|
+
dxToolbarMenuContainerBorderRadius: number;
|
|
102
|
+
dxToolbarMenuContentPaddingInline: number;
|
|
103
|
+
dxToolbarMenuContentPaddingBlock: number;
|
|
104
|
+
dxToolbarMenuContentTextPaddingRight: number;
|
|
105
|
+
dxToolbarMenuItemBorderRadius: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defaultSizes } from "./default";
|
|
2
|
+
import { compactSizes } from "./compact";
|
|
3
|
+
export declare type SizeTheme = typeof defaultSizes;
|
|
4
|
+
export declare type ThemeMode = "default" | "compact";
|
|
5
|
+
export declare const getSizes: (mode?: ThemeMode) => SizeTheme;
|
|
6
|
+
export { defaultSizes, compactSizes };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./DxDataGrid.css";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component will be removed in a future release. Please use the new OdsDataGrid component instead.
|
|
5
|
+
*/
|
|
6
|
+
declare function OdsDataGridLegacy(props: any): React.JSX.Element;
|
|
7
|
+
export default OdsDataGridLegacy;
|
package/dist/index.css
CHANGED
|
@@ -158,6 +158,49 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
|
|
|
158
158
|
width: max-content;
|
|
159
159
|
display: inline-block;
|
|
160
160
|
}
|
|
161
|
+
._1Y6Xh:has(._1XPxo) {
|
|
162
|
+
width: 100%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
._1XPxo {
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
width: 100%;
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
._17w-X {
|
|
173
|
+
flex: 1;
|
|
174
|
+
align-content: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
._3lbve {
|
|
178
|
+
writing-mode: vertical-lr;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
._3sOBn {
|
|
182
|
+
vertical-align: middle !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
._ww084:has(._2Ljgj) {
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
._2Ljgj{
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
width: 100%;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
._2dILO {
|
|
197
|
+
flex: 1;
|
|
198
|
+
align-content: center;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
._SQfc5 {
|
|
202
|
+
text-align: center !important;
|
|
203
|
+
}
|
|
161
204
|
._2o0Iw {
|
|
162
205
|
display: none !important;
|
|
163
206
|
}
|
|
@@ -222,69 +265,4 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
|
|
|
222
265
|
._2eCOe {
|
|
223
266
|
pointer-events: none;
|
|
224
267
|
background-color: #f0f0f0;
|
|
225
|
-
}
|
|
226
|
-
._1Y6Xh:has(._1XPxo) {
|
|
227
|
-
width: 100%;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
._1XPxo {
|
|
231
|
-
cursor: pointer;
|
|
232
|
-
width: 100%;
|
|
233
|
-
display: flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
._17w-X {
|
|
238
|
-
flex: 1;
|
|
239
|
-
align-content: center;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
._3lbve {
|
|
243
|
-
writing-mode: vertical-lr;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
._3sOBn {
|
|
247
|
-
vertical-align: middle !important;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
._ww084:has(._2Ljgj) {
|
|
251
|
-
width: 100%;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
._2Ljgj{
|
|
255
|
-
cursor: pointer;
|
|
256
|
-
width: 100%;
|
|
257
|
-
display: flex;
|
|
258
|
-
align-items: center;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
._2dILO {
|
|
262
|
-
flex: 1;
|
|
263
|
-
align-content: center;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
._SQfc5 {
|
|
267
|
-
text-align: center !important;
|
|
268
|
-
}
|
|
269
|
-
._3n8UJ {
|
|
270
|
-
background-color: lightgreen;
|
|
271
|
-
}
|
|
272
|
-
._29r0c {
|
|
273
|
-
-webkit-touch-callout: none;
|
|
274
|
-
-webkit-user-select: none;
|
|
275
|
-
-moz-user-select: none;
|
|
276
|
-
user-select: none;
|
|
277
|
-
}
|
|
278
|
-
._1rzNx {
|
|
279
|
-
background-color: lightgray;
|
|
280
|
-
}
|
|
281
|
-
.__qhc2 {
|
|
282
|
-
font-weight: 900;
|
|
283
|
-
/* border-bottom: 1px solid lightgray; */
|
|
284
|
-
}
|
|
285
|
-
._35QlH {
|
|
286
|
-
/* border-bottom: 1px solid lightgray; */
|
|
287
|
-
}
|
|
288
|
-
._6KdXz {
|
|
289
|
-
padding: 0 !important;
|
|
290
|
-
}
|
|
268
|
+
}
|