@1771technologies/lytenyte-pro 0.0.39
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/LICENSE +15 -0
- package/dist/DialogPortalContext-C2WZTqJ3.js +47 -0
- package/dist/InternalBackdrop-Dm9czgoC.js +6746 -0
- package/dist/MenuRoot-9n64jNWP.js +724 -0
- package/dist/anchor-context-B9sGQdR5.js +35 -0
- package/dist/arrow-down-icon-B-3ldODD.js +27 -0
- package/dist/arrow-svg-evmXDI_J.js +29 -0
- package/dist/column-manager.js +1241 -0
- package/dist/cross-icon-CEMLAlFX.js +20 -0
- package/dist/dialog.js +506 -0
- package/dist/filter-manager.js +1056 -0
- package/dist/getPseudoElementBounds-BSHt6WYm.js +26 -0
- package/dist/grid-container.js +18 -0
- package/dist/icons.js +512 -0
- package/dist/index.js +3730 -0
- package/dist/lytenyte-pro.css +1948 -0
- package/dist/manage-columns-icon-D4CElo5H.js +146 -0
- package/dist/menu.js +1639 -0
- package/dist/pill-C4Jhdf8E.js +985 -0
- package/dist/pill-manager.js +674 -0
- package/dist/plus-icon-ToqW5CC-.js +15 -0
- package/dist/popover.js +770 -0
- package/dist/row-group-icon-BOOju5Vu.js +205 -0
- package/dist/search-icon-CcG1lqsn.js +86 -0
- package/dist/select-C6xOZZLq.js +2231 -0
- package/dist/sort-manager.js +298 -0
- package/dist/tickmark-icon-CoogRMoO.js +51 -0
- package/dist/types/cell-selection/cell-selection-containers.d.ts +3 -0
- package/dist/types/cell-selection/cell-selection-driver.d.ts +1 -0
- package/dist/types/cell-selection/cell-style-row.d.ts +8 -0
- package/dist/types/column-manager/column-manager-drag-box-controls.d.ts +1 -0
- package/dist/types/column-manager/column-manager-drag-box-expander.d.ts +1 -0
- package/dist/types/column-manager/column-manager-drag-box-label.d.ts +5 -0
- package/dist/types/column-manager/column-manager-drag-box.d.ts +13 -0
- package/dist/types/column-manager/column-manager-drag-placeholder.d.ts +5 -0
- package/dist/types/column-manager/column-manager-drop-zone.d.ts +10 -0
- package/dist/types/column-manager/column-manager-impl.d.ts +36 -0
- package/dist/types/column-manager/column-manager-pill.d.ts +4 -0
- package/dist/types/column-manager/column-manager-pivot-mode-toggle.d.ts +1 -0
- package/dist/types/column-manager/column-manager-search.d.ts +1 -0
- package/dist/types/column-manager/column-manager-state.d.ts +8 -0
- package/dist/types/column-manager/column-manager-tree-item.d.ts +6 -0
- package/dist/types/column-manager/column-manager-tree.d.ts +11 -0
- package/dist/types/column-manager/column-manager-types.d.ts +1 -0
- package/dist/types/column-manager/column-manager.d.ts +1 -0
- package/dist/types/column-manager/column-mananger-context.d.ts +12 -0
- package/dist/types/column-manager/utils/all-leafs.d.ts +3 -0
- package/dist/types/column-manager/utils/can-hide-item.d.ts +3 -0
- package/dist/types/column-manager/utils/handle-item-hide.d.ts +3 -0
- package/dist/types/components-internal/button/button.d.ts +9 -0
- package/dist/types/components-internal/grid-frame/grid-frame.d.ts +11 -0
- package/dist/types/components-internal/radio/radio.d.ts +5 -0
- package/dist/types/components-internal/separator/separator.d.ts +8 -0
- package/dist/types/components-internal/toggle/toggle.d.ts +7 -0
- package/dist/types/dialog/dialog-driver.d.ts +1 -0
- package/dist/types/dialog/dialog-impl.d.ts +6 -0
- package/dist/types/dialog/dialog.d.ts +8 -0
- package/dist/types/dialog/use-dialog-class.d.ts +1 -0
- package/dist/types/external.d.ts +2 -0
- package/dist/types/filter-manager/combined-to-flat.d.ts +3 -0
- package/dist/types/filter-manager/components/apply-filter-button.d.ts +1 -0
- package/dist/types/filter-manager/components/clear-filter-button.d.ts +1 -0
- package/dist/types/filter-manager/components/flatten-tree-items.d.ts +4 -0
- package/dist/types/filter-manager/components/get-child-values.d.ts +2 -0
- package/dist/types/filter-manager/components/in-filter-container.d.ts +1 -0
- package/dist/types/filter-manager/components/in-filter-error.d.ts +5 -0
- package/dist/types/filter-manager/components/in-filter-loading.d.ts +1 -0
- package/dist/types/filter-manager/components/in-filter-root.d.ts +11 -0
- package/dist/types/filter-manager/components/in-filter-tree.d.ts +15 -0
- package/dist/types/filter-manager/components/simple-filter-additional-switch.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-operator/date-operator.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-operator/number-operator.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-operator/simple-filter-operator.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-operator/text-operator.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-root.d.ts +9 -0
- package/dist/types/filter-manager/components/simple-filter-value/date-value.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-value/number-value.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-value/simple-filter-value.d.ts +1 -0
- package/dist/types/filter-manager/components/simple-filter-value/text-value.d.ts +1 -0
- package/dist/types/filter-manager/components/use-date-filter-callbacks.d.ts +9 -0
- package/dist/types/filter-manager/components/use-in-filter-item-loader.d.ts +7 -0
- package/dist/types/filter-manager/components/use-number-filter-callbacks.d.ts +8 -0
- package/dist/types/filter-manager/components/use-text-filter-callbacks.d.ts +8 -0
- package/dist/types/filter-manager/filter-manager-impl.d.ts +27 -0
- package/dist/types/filter-manager/filter-manager.d.ts +1 -0
- package/dist/types/filter-manager/filter-state-context.d.ts +16 -0
- package/dist/types/filter-manager/flat-to-combined.d.ts +3 -0
- package/dist/types/filter-manager/flatten-combined-filter.d.ts +3 -0
- package/dist/types/filter-manager/is-filter-complete.d.ts +2 -0
- package/dist/types/filter-manager/types.d.ts +15 -0
- package/dist/types/filter-manager/use-in-filter.d.ts +5 -0
- package/dist/types/filter-manager/use-simple-filters.d.ts +8 -0
- package/dist/types/grid-container/grid-container-impl.d.ts +6 -0
- package/dist/types/grid-container/grid-container.d.ts +2 -0
- package/dist/types/icons.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/license.d.ts +12 -0
- package/dist/types/list-view/list-view-context.d.ts +21 -0
- package/dist/types/list-view/list-view.d.ts +26 -0
- package/dist/types/lytenyte-pro.d.ts +7 -0
- package/dist/types/menu/arrow-svg.d.ts +1 -0
- package/dist/types/menu/column-menu/column-menu-driver.d.ts +4 -0
- package/dist/types/menu/context-menu/context-menu-driver.d.ts +1 -0
- package/dist/types/menu/context-menu/use-context-menu-listener.d.ts +6 -0
- package/dist/types/menu/menu-impl.d.ts +17 -0
- package/dist/types/menu/menu.d.ts +18 -0
- package/dist/types/menu/use-menu-class-name.d.ts +1 -0
- package/dist/types/overlay/load-error-overlay.d.ts +1 -0
- package/dist/types/overlay/loading-overlay.d.ts +1 -0
- package/dist/types/overlay/no-data-overlay.d.ts +1 -0
- package/dist/types/overlay/overlay-driver.d.ts +1 -0
- package/dist/types/pill/pill.d.ts +5 -0
- package/dist/types/pill-manager/pill-manager-agg-menu.d.ts +7 -0
- package/dist/types/pill-manager/pill-manager-controls.d.ts +9 -0
- package/dist/types/pill-manager/pill-manager-drag-placeholder.d.ts +5 -0
- package/dist/types/pill-manager/pill-manager-expander.d.ts +1 -0
- package/dist/types/pill-manager/pill-manager-impl.d.ts +49 -0
- package/dist/types/pill-manager/pill-manager-pill.d.ts +4 -0
- package/dist/types/pill-manager/pill-manager-pills/pill-manager-pills.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/use-aggregation-source.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/use-column-pivot-source.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/use-column-source.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/use-measures-source.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/use-row-groups-source.d.ts +2 -0
- package/dist/types/pill-manager/pill-manager-pills/utils.d.ts +3 -0
- package/dist/types/pill-manager/pill-manager-row-label.d.ts +22 -0
- package/dist/types/pill-manager/pill-manager-row.d.ts +12 -0
- package/dist/types/pill-manager/pill-manager-rows.d.ts +1 -0
- package/dist/types/pill-manager/pill-manager-separator.d.ts +1 -0
- package/dist/types/pill-manager/pill-manager-types.d.ts +36 -0
- package/dist/types/pill-manager/pill-manager.d.ts +1 -0
- package/dist/types/popover/anchor-context.d.ts +6 -0
- package/dist/types/popover/popover-driver.d.ts +1 -0
- package/dist/types/popover/popover-impl.d.ts +8 -0
- package/dist/types/popover/popover.d.ts +10 -0
- package/dist/types/popover/use-popover-class.d.ts +1 -0
- package/dist/types/select/select.d.ts +17 -0
- package/dist/types/sort-manager/sort-adder.d.ts +4 -0
- package/dist/types/sort-manager/sort-apply.d.ts +1 -0
- package/dist/types/sort-manager/sort-cancel.d.ts +1 -0
- package/dist/types/sort-manager/sort-clear.d.ts +1 -0
- package/dist/types/sort-manager/sort-column-select.d.ts +5 -0
- package/dist/types/sort-manager/sort-direction-select.d.ts +5 -0
- package/dist/types/sort-manager/sort-items-to-sort-model.d.ts +3 -0
- package/dist/types/sort-manager/sort-manager-container.d.ts +53 -0
- package/dist/types/sort-manager/sort-manager-context.d.ts +4 -0
- package/dist/types/sort-manager/sort-manager-impl.d.ts +30 -0
- package/dist/types/sort-manager/sort-manager.d.ts +1 -0
- package/dist/types/sort-manager/sort-model-to-sort-items.d.ts +4 -0
- package/dist/types/sort-manager/sort-remove.d.ts +4 -0
- package/dist/types/sort-manager/sort-sort-select.d.ts +5 -0
- package/dist/types/sort-manager/use-sort-state.d.ts +8 -0
- package/dist/types/sort-manager/use-sortable-column-items.d.ts +9 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/use-client-data-source.d.ts +6 -0
- package/dist/types/use-edge-scroll.d.ts +7 -0
- package/dist/types/use-grid.d.ts +6 -0
- package/dist/types/use-lytenyte.d.ts +10 -0
- package/dist/types/use-tree-data-source.d.ts +3 -0
- package/dist/types/watermark.d.ts +3 -0
- package/dist/types.js +1 -0
- package/dist/use-grid-DKvzGZWc.js +916 -0
- package/dist/useAnchorPositioning-Cm44rb7y.js +252 -0
- package/dist/useBaseUiId-J66PFGv_.js +48 -0
- package/dist/useButton-Cy7tjZ__.js +183 -0
- package/dist/useCompositeListItem-I14CpQPi.js +51 -0
- package/dist/useScrollLock-D6h5lZYs.js +515 -0
- package/package.json +96 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DragActive } from '@1771technologies/lytenyte-core/internal';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ColumnProReact } from '../types';
|
|
4
|
+
export interface PillProps {
|
|
5
|
+
kind?: "plain" | "column-pivot" | "row-group" | "column" | ({} & string);
|
|
6
|
+
interactive?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface RowProps {
|
|
9
|
+
readonly pillSource: "columns" | "column-pivots" | "row-groups" | "measures" | "aggregations";
|
|
10
|
+
}
|
|
11
|
+
export interface PillProps {
|
|
12
|
+
readonly children: (p: {
|
|
13
|
+
pills: PillManagerPillItem[];
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export type DragTag = "row-group" | "column-pivot" | "columns" | "aggregations" | "measures";
|
|
17
|
+
export interface PillManagerPillItem {
|
|
18
|
+
readonly kind: Required<PillProps>["kind"];
|
|
19
|
+
readonly label: string;
|
|
20
|
+
readonly secondaryLabel?: string;
|
|
21
|
+
readonly active: boolean;
|
|
22
|
+
readonly column?: ColumnProReact<any>;
|
|
23
|
+
readonly isColumn?: boolean;
|
|
24
|
+
readonly isRowGroup?: boolean;
|
|
25
|
+
readonly isColumnPivot?: boolean;
|
|
26
|
+
readonly isAggregation?: boolean;
|
|
27
|
+
readonly isMeasure?: boolean;
|
|
28
|
+
readonly draggable: boolean;
|
|
29
|
+
readonly dragTags: DragTag[];
|
|
30
|
+
readonly dragData?: any;
|
|
31
|
+
readonly dropId: string;
|
|
32
|
+
readonly dropTags: DragTag[];
|
|
33
|
+
readonly dropData: any;
|
|
34
|
+
readonly dragEnd?: (p: DragActive) => void;
|
|
35
|
+
readonly onClick: () => void;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PillManager } from './pill-manager-impl.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TargetPro } from '@1771technologies/grid-types/pro';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export declare function AnchorProvider(props: PropsWithChildren<{
|
|
4
|
+
anchor: TargetPro | null;
|
|
5
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const useAnchor: () => TargetPro | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PopoverDriver(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Popover as P } from '@base-ui-components/react/popover';
|
|
2
|
+
export declare const PopoverBackdrop: typeof P.Backdrop;
|
|
3
|
+
export declare const PopoverPopup: typeof P.Popup;
|
|
4
|
+
export declare const PopoverTitle: typeof P.Title;
|
|
5
|
+
export declare const PopoverDescription: typeof P.Description;
|
|
6
|
+
export declare const PopoverClose: typeof P.Close;
|
|
7
|
+
export declare const PopoverPositioner: typeof P.Positioner;
|
|
8
|
+
export declare const PopoverArrow: typeof P.Arrow;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Popover as P } from '@base-ui-components/react/popover';
|
|
2
|
+
export declare const Popover: {
|
|
3
|
+
Arrow: typeof P.Arrow;
|
|
4
|
+
Backdrop: typeof P.Backdrop;
|
|
5
|
+
Close: typeof P.Close;
|
|
6
|
+
Description: typeof P.Description;
|
|
7
|
+
Container: typeof P.Popup;
|
|
8
|
+
Positioner: typeof P.Positioner;
|
|
9
|
+
Title: typeof P.Title;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePopoverClass<T>(name: string, className: string | undefined | ((p: T) => string)): string | ((p: T) => string);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export interface SelectProps {
|
|
3
|
+
readonly selected: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
} | null;
|
|
7
|
+
readonly options: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
readonly onSelect: (c: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
readonly placeholder?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Select({ selected, onSelect, options, placeholder, ...props }: SelectProps & Omit<JSX.IntrinsicElements["div"], "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SortApplyButton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SortCancelButton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SortClearButton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SortRowItem {
|
|
3
|
+
readonly columnItem: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
} | null;
|
|
7
|
+
readonly index: number;
|
|
8
|
+
readonly columnOptions: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
readonly columnSelected: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
} | null;
|
|
16
|
+
readonly columnOnSelect: (c: {
|
|
17
|
+
value: string;
|
|
18
|
+
label: string;
|
|
19
|
+
} | null) => void;
|
|
20
|
+
readonly sortOptions: {
|
|
21
|
+
value: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
readonly sortSelected: {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
} | null;
|
|
28
|
+
readonly sortOnSelect: (c: {
|
|
29
|
+
value: string;
|
|
30
|
+
label: string;
|
|
31
|
+
} | null) => void;
|
|
32
|
+
readonly sortDirectionOptions: {
|
|
33
|
+
value: string;
|
|
34
|
+
label: string;
|
|
35
|
+
}[];
|
|
36
|
+
readonly sortDirectionSelected: {
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
} | null;
|
|
40
|
+
readonly sortDirectionOnSelect: (c: {
|
|
41
|
+
value: string;
|
|
42
|
+
label: string;
|
|
43
|
+
} | null) => void;
|
|
44
|
+
readonly canAdd: boolean;
|
|
45
|
+
readonly onAdd: () => void;
|
|
46
|
+
readonly onDelete: () => void;
|
|
47
|
+
}
|
|
48
|
+
export interface SortContainerProps {
|
|
49
|
+
readonly children: (c: {
|
|
50
|
+
items: SortRowItem[];
|
|
51
|
+
}) => ReactNode;
|
|
52
|
+
}
|
|
53
|
+
export declare const SortManagerContainer: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & SortContainerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { SortItem } from './use-sort-state.js';
|
|
3
|
+
export declare const SortManagerContext: import('react').Context<readonly [SortItem[], Dispatch<SetStateAction<SortItem[]>>]>;
|
|
4
|
+
export declare const useSortManagerContext: () => readonly [SortItem[], Dispatch<SetStateAction<SortItem[]>>];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { SortAdder } from './sort-adder.js';
|
|
3
|
+
import { SortRemover } from './sort-remove.js';
|
|
4
|
+
import { GridProReact } from '../types';
|
|
5
|
+
interface SortManagerRootProps<D = any> {
|
|
6
|
+
readonly grid: GridProReact<D>;
|
|
7
|
+
}
|
|
8
|
+
declare function SortManagerRoot<D>({ grid, children }: PropsWithChildren<SortManagerRootProps<D>>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SortManager: {
|
|
10
|
+
Root: typeof SortManagerRoot;
|
|
11
|
+
Container: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & import('./sort-manager-container.js').SortContainerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
SortColumnSelect: ({ item, placeholder, }: {
|
|
13
|
+
item: import('./sort-manager-container.js').SortRowItem;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
SortSelect: ({ item, placeholder, }: {
|
|
17
|
+
item: import('./sort-manager-container.js').SortRowItem;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
SortDirectionSelect: ({ item, placeholder, }: {
|
|
21
|
+
item: import('./sort-manager-container.js').SortRowItem;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
SortAdder: typeof SortAdder;
|
|
25
|
+
SortRemove: typeof SortRemover;
|
|
26
|
+
SortApply: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
SortCancel: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
SortClear: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SortManager } from './sort-manager-impl.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridProReact } from '../types.js';
|
|
2
|
+
export interface SortItem {
|
|
3
|
+
readonly columnId?: string;
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly sortOn?: "values" | "values_absolute" | "values_accented" | "values_nulls_first" | "values_absolute_nulls_first" | "values_accented_nulls_first" | "values_absolute_accented_nulls_first";
|
|
6
|
+
readonly sortDirection: "ascending" | "descending";
|
|
7
|
+
}
|
|
8
|
+
export declare function useSortState<D>(grid: GridProReact<D>): readonly [SortItem[], import('react').Dispatch<import('react').SetStateAction<SortItem[]>>];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GridProReact } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a list of the columns that are sortable for use in a dropdown. This is used by the sort
|
|
4
|
+
* manager. This represents all the possible sort items a user can select from.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSortableColumnItems<D>({ state, api }: GridProReact<D>): {
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly value: string;
|
|
9
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from '@1771technologies/grid-types/pro-react';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientDataSourceInitial, ClientRowDataSource } from '@1771technologies/grid-client-data-source-pro';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type ClientDataSourceInitialReact<D> = ClientDataSourceInitial<D, ReactNode>;
|
|
4
|
+
export type ClientRowDataSourceReact<D> = ClientRowDataSource<D, ReactNode>;
|
|
5
|
+
export declare const createClientDataSourceReact: <D>(init: ClientDataSourceInitialReact<D>) => ClientRowDataSourceReact<D>;
|
|
6
|
+
export declare function useClientDataSource<D>(init: ClientDataSourceInitial<D, ReactNode>): ClientRowDataSource<D, ReactNode>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiProReact } from './types';
|
|
2
|
+
export declare function useEdgeScroll<D>(api: ApiProReact<D>): {
|
|
3
|
+
cancelX: () => void;
|
|
4
|
+
edgeScrollX: (visualPositionX: number, isRtl: boolean) => void;
|
|
5
|
+
cancelY: () => void;
|
|
6
|
+
edgeScrollY: (visualPositionY: number) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { GridProReact } from './types';
|
|
3
|
+
export declare function useGrid(): GridProReact<any>;
|
|
4
|
+
export declare function GridProvider(p: PropsWithChildren<{
|
|
5
|
+
value: GridProReact<any>;
|
|
6
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridProReact, StateInitProReact } from './types';
|
|
2
|
+
type ChangeReturnType<F extends (...args: any[]) => any, R> = (...args: Parameters<F>) => R;
|
|
3
|
+
type UseLyteNyteProReturn<D> = {
|
|
4
|
+
state: GridProReact<D>["state"];
|
|
5
|
+
api: GridProReact<D>["api"];
|
|
6
|
+
useSignalWatcher: (c: keyof Omit<GridProReact<D>["state"], "internal">, fn: () => void) => void;
|
|
7
|
+
useEvent: ChangeReturnType<GridProReact<D>["api"]["eventAddListener"], void>;
|
|
8
|
+
};
|
|
9
|
+
export declare const useLyteNytePro: <D>(p: StateInitProReact<D>) => UseLyteNyteProReturn<D>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TreeDataSourceInitial } from '@1771technologies/grid-tree-data-source';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare function useTreeDataSource<D>(init: TreeDataSourceInitial<D, ReactNode>): import('@1771technologies/grid-types/pro').RowDataSourcePro<D, ReactNode>;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|