@epam/uui 4.6.1-alpha.0 → 4.6.1
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/bundle-stats.json +1 -1
- package/components/inputs/TextInput.d.ts +1 -1
- package/components/pickers/DataPickerFooter.d.ts +1 -1
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/docs/common.d.ts +2 -1
- package/components/pickers/docs/common.d.ts.map +1 -1
- package/components/tables/Presets/Preset.d.ts +1 -1
- package/components/tables/Presets/Preset.d.ts.map +1 -1
- package/components/tables/Presets/Presets.d.ts +2 -1
- package/components/tables/Presets/Presets.d.ts.map +1 -1
- package/components/tables/types.d.ts +19 -0
- package/components/tables/types.d.ts.map +1 -1
- package/index.js +285 -283
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/styles.css +613 -613
- package/styles.css.map +1 -1
|
@@ -7,7 +7,7 @@ export interface TextInputMods extends IHasEditMode {
|
|
|
7
7
|
size?: ControlSize;
|
|
8
8
|
}
|
|
9
9
|
export declare function applyTextInputMods(mods: TextInputMods): string[];
|
|
10
|
-
export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps & TextInputMods, "id" | "value" | "cx" | "onClick" | "rawProps" | "tabIndex" | "isDisabled" | "name" | "onValueChange" | "isInvalid" | "validationMessage" | "validationProps" | "isReadonly" | "isRequired" | "isOpen" | "isDropdown" | "toggleDropdownOpening" | "caption" | "dropdownIcon" | "icon" | "iconPosition" | "onIconClick" | "placeholder" | "type" | "
|
|
10
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps & TextInputMods, "id" | "value" | "cx" | "onClick" | "rawProps" | "tabIndex" | "isDisabled" | "name" | "onValueChange" | "isInvalid" | "validationMessage" | "validationProps" | "isReadonly" | "isRequired" | "isOpen" | "isDropdown" | "toggleDropdownOpening" | "caption" | "dropdownIcon" | "icon" | "iconPosition" | "onIconClick" | "placeholder" | "type" | "prefix" | "inputMode" | "maxLength" | "getValueChangeAnalyticsEvent" | "onCancel" | "onAccept" | "onKeyDown" | "onFocus" | "onBlur" | "autoFocus" | "autoComplete" | "suffix" | "acceptIcon" | "cancelIcon" | "inputCx" | "renderInput" | keyof TextInputMods> & React.RefAttributes<any>>;
|
|
11
11
|
export declare class SearchInput extends React.Component<TextInputProps & TextInputMods & IEditableDebouncerOptions, {}> {
|
|
12
12
|
render(): JSX.Element;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { PickerFooterProps } from
|
|
2
|
+
import { PickerFooterProps } from '@epam/uui-components';
|
|
3
3
|
import { SizeMod } from '../types';
|
|
4
4
|
declare type DataPickerFooterProps<TItem, TId> = PickerFooterProps<TItem, TId> & SizeMod & {
|
|
5
5
|
hideShowOnlySelected?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataPickerFooter.d.ts","sourceRoot":"","sources":["../../../components/pickers/DataPickerFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DataPickerFooter.d.ts","sourceRoot":"","sources":["../../../components/pickers/DataPickerFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAKzD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC,aAAK,qBAAqB,CAAC,KAAK,EAAE,GAAG,IAAI,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG;IAC/E,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAqDF,eAAO,MAAM,gBAAgB,6HAAmC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ArrayDataSource, LazyDataSource, AsyncDataSource
|
|
1
|
+
import { ArrayDataSource, LazyDataSource, AsyncDataSource } from '@epam/uui-core';
|
|
2
2
|
import { DocBuilder, PropSamplesCreationContext } from '@epam/uui-docs';
|
|
3
|
+
import { PickerBaseOptions } from '@epam/uui-components';
|
|
3
4
|
export declare const getDataSourceExamples: (ctx: PropSamplesCreationContext) => ({
|
|
4
5
|
name: string;
|
|
5
6
|
isDefault: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../components/pickers/docs/common.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../components/pickers/docs/common.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOzD,eAAO,MAAM,qBAAqB,QAAS,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;IAgCpE,CAAC;AAEF,eAAO,MAAM,oBAAoB,yCAkDkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.d.ts","sourceRoot":"","sources":["../../../../components/tables/Presets/Preset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Preset.d.ts","sourceRoot":"","sources":["../../../../components/tables/Presets/Preset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAY;IAClB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmHzC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DataTableState
|
|
2
|
+
import { DataTableState } from '@epam/uui-core';
|
|
3
|
+
import { IPresetsApi, ITablePreset } from '../types';
|
|
3
4
|
interface IPresetsProps extends IPresetsApi {
|
|
4
5
|
presets: ITablePreset[];
|
|
5
6
|
tableState: DataTableState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Presets.d.ts","sourceRoot":"","sources":["../../../../components/tables/Presets/Presets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Presets.d.ts","sourceRoot":"","sources":["../../../../components/tables/Presets/Presets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGrD,UAAU,aAAc,SAAQ,WAAW;IACvC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC;CAC9B;AAiED,eAAO,MAAM,OAAO,2CAA0B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ColumnsConfig } from '@epam/uui-core';
|
|
1
2
|
import { ControlSize } from '..';
|
|
2
3
|
export interface DataTableCellMods {
|
|
3
4
|
size?: ControlSize | '60';
|
|
@@ -6,4 +7,22 @@ export interface DataTableCellMods {
|
|
|
6
7
|
isLastColumn?: boolean;
|
|
7
8
|
alignActions?: 'top' | 'center';
|
|
8
9
|
}
|
|
10
|
+
export interface ITablePreset<TFilter = Record<string, any>> {
|
|
11
|
+
name: string;
|
|
12
|
+
id: number | null;
|
|
13
|
+
filter: TFilter;
|
|
14
|
+
isReadonly?: boolean;
|
|
15
|
+
columnsConfig: ColumnsConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface IPresetsApi {
|
|
18
|
+
getActivePresetId(): number;
|
|
19
|
+
isDefaultPresetActive(): boolean;
|
|
20
|
+
choosePreset(preset: ITablePreset): void;
|
|
21
|
+
createNewPreset(name: string): void;
|
|
22
|
+
resetToDefault(): void;
|
|
23
|
+
hasPresetChanged(preset: ITablePreset): boolean;
|
|
24
|
+
duplicatePreset(preset: ITablePreset): void;
|
|
25
|
+
deletePreset(preset: ITablePreset): void;
|
|
26
|
+
updatePreset(preset: ITablePreset): void;
|
|
27
|
+
}
|
|
9
28
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/tables/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAEjC,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,CAA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