@dashadmin/dash-components 1.3.73 → 1.3.74-srcfree.2

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.
Files changed (111) hide show
  1. package/dist/components/AuditLog/AuditLog.d.ts +27 -0
  2. package/dist/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.d.ts +22 -0
  3. package/dist/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.d.ts +7 -0
  4. package/dist/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.d.ts +22 -0
  5. package/dist/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.d.ts +7 -0
  6. package/dist/components/Json/Json.d.ts +5 -0
  7. package/dist/components/JsonColorSelector/JsonColorSelector.d.ts +5 -0
  8. package/dist/components/JsonColorSelector/JsonColorSelectorEnhanced.d.ts +4 -0
  9. package/dist/components/JsonColorSelector/JsonCssVarValues.d.ts +5 -0
  10. package/dist/components/JsonColorSelector/components/BasicColorSelector.d.ts +9 -0
  11. package/dist/components/JsonColorSelector/components/ColorEditDialog.d.ts +12 -0
  12. package/dist/components/JsonColorSelector/components/ColorPaletteItem.d.ts +7 -0
  13. package/dist/components/JsonColorSelector/components/ImageColorExtractor.d.ts +9 -0
  14. package/dist/components/JsonColorSelector/helpers/functions.d.ts +11 -0
  15. package/dist/components/JsonColorSelector/helpers/paletteDerivation.d.ts +37 -0
  16. package/{src/components/JsonColorSelector/interfaces/interfaces.tsx → dist/components/JsonColorSelector/interfaces/interfaces.d.ts} +6 -8
  17. package/dist/components/JsonColorSelector/useAsyncColorThief.d.ts +11 -0
  18. package/dist/components/ListActive/ListActive.d.ts +10 -0
  19. package/dist/components/ListActive/ListBoolean.d.ts +10 -0
  20. package/dist/components/NotificationPreferences/NotificationPreferences.d.ts +6 -0
  21. package/dist/components/SearchableSelects/RASearchableSelect.d.ts +25 -0
  22. package/dist/components/SearchableSelects/RASearchableSelectCheckboxes.d.ts +35 -0
  23. package/dist/components/SearchableSelects/RASearchableSelectChips.d.ts +33 -0
  24. package/dist/components/SearchableSelects/RASearchableSelectChipsRecordContext.d.ts +30 -0
  25. package/dist/components/SearchableSelects/SearchableSelect.d.ts +25 -0
  26. package/dist/components/SearchableSelects/SearchableSelectCheckboxes.d.ts +29 -0
  27. package/dist/components/SortableDataGrid/SortableDataGrid.d.ts +7 -0
  28. package/dist/components/SortableDataGrid/SortableDataGridBody.d.ts +7 -0
  29. package/dist/components/SortableDataGrid/SortableDataGridHeader.d.ts +6 -0
  30. package/dist/components/SortableDataGrid/SortableDataGridRow.d.ts +5 -0
  31. package/dist/components/Upload/SingleImageUploader.d.ts +8 -0
  32. package/dist/components/custom/PackageCopyMethod.d.ts +15 -0
  33. package/dist/components/custom/PackageRadioButtonGroup.d.ts +8 -0
  34. package/dist/components/dialog/Basic.d.ts +2 -0
  35. package/dist/components/dialog/Correct.d.ts +2 -0
  36. package/dist/components/dialog/Error.d.ts +2 -0
  37. package/dist/components/dialog/Info.d.ts +2 -0
  38. package/dist/components/dialog/InfoV2.d.ts +2 -0
  39. package/dist/components/dialog/NotFound.d.ts +2 -0
  40. package/dist/components/dialog/QuickSearch.d.ts +6 -0
  41. package/dist/components/notifications/NotificationsCenter.d.ts +109 -0
  42. package/dist/components/notifications/index.d.ts +2 -0
  43. package/dist/components/tables/PaginationComponent.d.ts +4 -0
  44. package/dist/components/theme/AppLoadingFallback.d.ts +6 -0
  45. package/dist/components/theme/ErrorBoundary.d.ts +19 -0
  46. package/dist/components/theme/InitialLoader.d.ts +3 -0
  47. package/dist/components/theme/NotFound.d.ts +13 -0
  48. package/dist/components/theme/NotResults.d.ts +7 -0
  49. package/dist/hooks/useDraggable.d.ts +1 -0
  50. package/dist/hooks/useNotifications.d.ts +2 -0
  51. package/dist/hooks/useQuickSearch.d.ts +6 -0
  52. package/{src/index.tsx → dist/index.d.ts} +10 -58
  53. package/dist/utils/setNativeValue.d.ts +2 -0
  54. package/package.json +24 -21
  55. package/src/components/AuditLog/AuditLog.tsx +0 -490
  56. package/src/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.tsx +0 -917
  57. package/src/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.tsx +0 -39
  58. package/src/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.tsx +0 -916
  59. package/src/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayAutoSearch.tsx.wip +0 -42
  60. package/src/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.tsx +0 -44
  61. package/src/components/Json/Json.tsx +0 -312
  62. package/src/components/JsonColorSelector/JsonColorSelector.tsx +0 -1443
  63. package/src/components/JsonColorSelector/JsonColorSelector.tsx.bkup +0 -746
  64. package/src/components/JsonColorSelector/JsonColorSelectorEnhanced.tsx +0 -1135
  65. package/src/components/JsonColorSelector/JsonCssVarValues.tsx +0 -867
  66. package/src/components/JsonColorSelector/components/BasicColorSelector.tsx +0 -333
  67. package/src/components/JsonColorSelector/components/ColorEditDialog.tsx +0 -495
  68. package/src/components/JsonColorSelector/components/ColorPaletteItem.tsx +0 -80
  69. package/src/components/JsonColorSelector/components/ImageColorExtractor.tsx +0 -420
  70. package/src/components/JsonColorSelector/helpers/functions.tsx +0 -123
  71. package/src/components/JsonColorSelector/helpers/paletteDerivation.ts +0 -367
  72. package/src/components/JsonColorSelector/useAsyncColorThief.tsx +0 -97
  73. package/src/components/ListActive/ListActive.tsx +0 -106
  74. package/src/components/ListActive/ListBoolean.tsx +0 -96
  75. package/src/components/NotificationPreferences/NotificationPreferences.tsx +0 -480
  76. package/src/components/SearchableSelects/RASearchableSelect.tsx +0 -303
  77. package/src/components/SearchableSelects/RASearchableSelectCheckboxes.tsx +0 -617
  78. package/src/components/SearchableSelects/RASearchableSelectChips.tsx +0 -561
  79. package/src/components/SearchableSelects/RASearchableSelectChipsRecordContext.tsx +0 -366
  80. package/src/components/SearchableSelects/SearchableSelect.tsx +0 -323
  81. package/src/components/SearchableSelects/SearchableSelectCheckboxes.tsx +0 -358
  82. package/src/components/SortableDataGrid/README.md +0 -1
  83. package/src/components/SortableDataGrid/SortableDataGrid.tsx +0 -56
  84. package/src/components/SortableDataGrid/SortableDataGridBody.tsx +0 -175
  85. package/src/components/SortableDataGrid/SortableDataGridHeader.tsx +0 -171
  86. package/src/components/SortableDataGrid/SortableDataGridRow.tsx +0 -247
  87. package/src/components/Upload/SingleImageUploader.tsx +0 -55
  88. package/src/components/custom/PackageCopyMethod.tsx +0 -109
  89. package/src/components/custom/PackageRadioButtonGroup.tsx +0 -49
  90. package/src/components/dialog/Basic.tsx +0 -11
  91. package/src/components/dialog/Correct.tsx +0 -16
  92. package/src/components/dialog/Error.tsx +0 -15
  93. package/src/components/dialog/Info.tsx +0 -15
  94. package/src/components/dialog/InfoV2.tsx +0 -35
  95. package/src/components/dialog/NotFound.tsx +0 -18
  96. package/src/components/dialog/QuickSearch.tsx +0 -115
  97. package/src/components/notifications/NotificationsCenter.tsx +0 -743
  98. package/src/components/notifications/index.ts +0 -42
  99. package/src/components/tables/PaginationComponent.tsx +0 -17
  100. package/src/components/theme/AppLoadingFallback.tsx +0 -42
  101. package/src/components/theme/ErrorBoundary.tsx +0 -57
  102. package/src/components/theme/InitialLoader.tsx +0 -16
  103. package/src/components/theme/NotFound.tsx +0 -124
  104. package/src/components/theme/NotResults.tsx +0 -56
  105. package/src/hooks/useDraggable.ts +0 -11
  106. package/src/hooks/useNotifications.ts +0 -14
  107. package/src/hooks/useQuickSearch.tsx +0 -29
  108. package/src/styles/index.less +0 -0
  109. package/src/utils/setNativeValue.tsx +0 -23
  110. /package/{src/components/AuditLog/index.ts → dist/components/AuditLog/index.d.ts} +0 -0
  111. /package/{src/components/NotificationPreferences/index.tsx → dist/components/NotificationPreferences/index.d.ts} +0 -0
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ export interface AuditLogProps {
3
+ resourceConfig?: {
4
+ model?: string;
5
+ [key: string]: any;
6
+ };
7
+ method?: 'create' | 'edit' | 'view' | 'list' | 'show';
8
+ resource?: string;
9
+ [key: string]: any;
10
+ }
11
+ export interface ActivityLogRecord {
12
+ id: number;
13
+ log_name: string;
14
+ description: string;
15
+ subject_type: string | null;
16
+ subject_id: number | null;
17
+ causer_type: string | null;
18
+ causer_id: number | null;
19
+ causer_name?: string;
20
+ properties: Record<string, any>;
21
+ event: string | null;
22
+ batch_uuid: string | null;
23
+ created_at: string;
24
+ updated_at: string;
25
+ }
26
+ declare const AuditLog: React.FC<AuditLogProps>;
27
+ export default AuditLog;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { AutocompleteProps, TextFieldProps } from '@mui/material';
4
+ import { ChoicesProps, RaRecord, UseSuggestionsOptions } from 'react-admin';
5
+ import { CommonInputProps, SupportCreateSuggestionOptions } from 'react-admin';
6
+ export declare const AutocompleteInputClasses: {
7
+ textField: string;
8
+ };
9
+ export interface AutocompleteInputProps<OptionType = RaRecord, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false> extends Omit<CommonInputProps, 'source'>, ChoicesProps, UseSuggestionsOptions, Omit<SupportCreateSuggestionOptions, 'handleChange' | 'optionText'>, Omit<AutocompleteProps<OptionType, Multiple, DisableClearable, SupportCreate>, 'onChange' | 'options' | 'renderInput'> {
10
+ children?: ReactNode;
11
+ debounce?: number;
12
+ emptyText?: string;
13
+ emptyValue?: any;
14
+ filterToQuery?: (searchText: string) => any;
15
+ inputText?: (option: any) => string;
16
+ setFilter?: (value: string) => void;
17
+ shouldRenderSuggestions?: any;
18
+ source?: string;
19
+ TextFieldProps?: TextFieldProps;
20
+ }
21
+ declare const AutocompleteCheckBoxInput: <OptionType extends RaRecord = RaRecord, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false>(props: AutocompleteInputProps<OptionType, Multiple, DisableClearable, SupportCreate>) => React.JSX.Element;
22
+ export default AutocompleteCheckBoxInput;
@@ -0,0 +1,7 @@
1
+ import { AutocompleteInputProps, RaRecord } from 'react-admin';
2
+ import React from 'react';
3
+ declare const AutocompleteCheckBoxArrayInput: <OptionType extends RaRecord = RaRecord, DisableClearable extends boolean | undefined = boolean | undefined, SupportCreate extends boolean | undefined = false>({ defaultValue, ...props }: AutocompleteArrayInputProps<OptionType, DisableClearable, SupportCreate>) => React.JSX.Element;
4
+ export type AutocompleteArrayInputProps<OptionType = RaRecord, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false> = Omit<AutocompleteInputProps<OptionType, true, DisableClearable, SupportCreate>, 'defaultValue'> & {
5
+ defaultValue?: any[];
6
+ };
7
+ export default AutocompleteCheckBoxArrayInput;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { AutocompleteProps, TextFieldProps } from '@mui/material';
4
+ import { ChoicesProps, RaRecord, UseSuggestionsOptions } from 'react-admin';
5
+ import { CommonInputProps, SupportCreateSuggestionOptions } from 'react-admin';
6
+ export declare const AutocompleteInputClasses: {
7
+ textField: string;
8
+ };
9
+ export interface AutocompleteInputProps<OptionType = RaRecord, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false> extends Omit<CommonInputProps, 'source'>, ChoicesProps, UseSuggestionsOptions, Omit<SupportCreateSuggestionOptions, 'handleChange' | 'optionText'>, Omit<AutocompleteProps<OptionType, Multiple, DisableClearable, SupportCreate>, 'onChange' | 'options' | 'renderInput'> {
10
+ children?: ReactNode;
11
+ debounce?: number;
12
+ emptyText?: string;
13
+ emptyValue?: any;
14
+ filterToQuery?: (searchText: string) => any;
15
+ inputText?: (option: any) => string;
16
+ setFilter?: (value: string) => void;
17
+ shouldRenderSuggestions?: any;
18
+ source?: string;
19
+ TextFieldProps?: TextFieldProps;
20
+ }
21
+ declare const AutocompleteCheckBoxInput: <OptionType extends RaRecord = RaRecord, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false>(props: AutocompleteInputProps<OptionType, Multiple, DisableClearable, SupportCreate>) => React.JSX.Element;
22
+ export default AutocompleteCheckBoxInput;
@@ -0,0 +1,7 @@
1
+ import { AutocompleteInputProps, RaRecord } from 'react-admin';
2
+ import React from 'react';
3
+ declare const AutocompleteCheckBoxArrayInput: <OptionType extends RaRecord = RaRecord, DisableClearable extends boolean | undefined = boolean | undefined, SupportCreate extends boolean | undefined = false>({ defaultValue, ...props }: AutocompleteArrayInputProps<OptionType, DisableClearable, SupportCreate>) => React.JSX.Element;
4
+ export type AutocompleteArrayInputProps<OptionType = RaRecord, DisableClearable extends boolean | undefined = false, SupportCreate extends boolean | undefined = false> = Omit<AutocompleteInputProps<OptionType, true, DisableClearable, SupportCreate>, 'defaultValue'> & {
5
+ defaultValue?: any[];
6
+ };
7
+ export default AutocompleteCheckBoxArrayInput;
@@ -0,0 +1,5 @@
1
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
2
+ export declare const JsonEdit: React.FC<IDashAutoAdminCustomFieldComponent>;
3
+ export declare const JsonView: React.FC<IDashAutoAdminCustomFieldComponent>;
4
+ declare const Json: ({ method, attribute, resourceConfig }: IDashAutoAdminCustomFieldComponent) => import("react").JSX.Element;
5
+ export default Json;
@@ -0,0 +1,5 @@
1
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
2
+ export declare const JsonEdit: React.FC<IDashAutoAdminCustomFieldComponent>;
3
+ export declare const JsonView: React.FC<IDashAutoAdminCustomFieldComponent>;
4
+ declare const JsonColorSelector: ({ method, attribute, resourceConfig }: IDashAutoAdminCustomFieldComponent) => import("react").JSX.Element;
5
+ export default JsonColorSelector;
@@ -0,0 +1,4 @@
1
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
2
+ export declare const JsonEdit: React.FC<IDashAutoAdminCustomFieldComponent>;
3
+ declare const JsonColorSelector: ({ method, attribute, resourceConfig }: IDashAutoAdminCustomFieldComponent) => import("react").JSX.Element;
4
+ export default JsonColorSelector;
@@ -0,0 +1,5 @@
1
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
2
+ export declare const JsonEdit: React.FC<IDashAutoAdminCustomFieldComponent>;
3
+ export declare const JsonView: React.FC<IDashAutoAdminCustomFieldComponent>;
4
+ declare const JsonCssVarValues: ({ method, attribute, resourceConfig }: IDashAutoAdminCustomFieldComponent) => import("react").JSX.Element;
5
+ export default JsonCssVarValues;
@@ -0,0 +1,9 @@
1
+ import { BasicPalette, ThemeMode } from '../helpers/paletteDerivation';
2
+ interface BasicColorSelectorProps {
3
+ lightBases: BasicPalette;
4
+ darkBases: BasicPalette;
5
+ onBaseChange: (mode: ThemeMode, key: keyof BasicPalette, color: string) => void;
6
+ readOnly?: boolean;
7
+ }
8
+ declare const BasicColorSelector: React.FC<BasicColorSelectorProps>;
9
+ export default BasicColorSelector;
@@ -0,0 +1,12 @@
1
+ import { KeyValuePair } from '../interfaces/interfaces';
2
+ declare const ColorEditDialog: React.FC<{
3
+ open: boolean;
4
+ pair: KeyValuePair | null;
5
+ onClose: () => void;
6
+ onSave: (pair: KeyValuePair) => void;
7
+ onDelete: (id: string) => void;
8
+ existingKeys: string[];
9
+ updateSingleDomColor: (key: string, color: string) => void;
10
+ extractedColors?: number[][];
11
+ }>;
12
+ export default ColorEditDialog;
@@ -0,0 +1,7 @@
1
+ import { KeyValuePair } from '../interfaces/interfaces';
2
+ declare const ColorPaletteItem: React.FC<{
3
+ pair: KeyValuePair;
4
+ onEdit: (pair: KeyValuePair) => void;
5
+ onDelete: (id: string) => void;
6
+ }>;
7
+ export default ColorPaletteItem;
@@ -0,0 +1,9 @@
1
+ import { KeyValuePair } from '../interfaces/interfaces';
2
+ declare const ImageColorExtractor: import("react").NamedExoticComponent<{
3
+ onColorsExtracted: (colors: number[][]) => void;
4
+ onColorsUpdate?: (newPairs: KeyValuePair[]) => void;
5
+ existingPairs?: KeyValuePair[];
6
+ aiEnabled?: boolean;
7
+ onApplyLocal?: (palette: number[][]) => void;
8
+ }>;
9
+ export default ImageColorExtractor;
@@ -0,0 +1,11 @@
1
+ import { ColorFormat, ColorFormatType, KeyValuePair } from "../interfaces/interfaces";
2
+ export declare const getContrastColor: (color: string) => string;
3
+ export declare const convertColor: (color: ColorFormat, format: ColorFormatType) => string;
4
+ export declare const parseColorKey: (key: string) => {
5
+ baseChips: string[];
6
+ mode: string;
7
+ };
8
+ export declare const extractAvailableModes: (pairs: KeyValuePair[]) => string[];
9
+ export declare const getModeIcon: (mode: string | undefined) => string;
10
+ export declare const rgbArrayToHex: (rgb: number[]) => string;
11
+ export declare const rgbArrayToRgbString: (rgb: number[]) => string;
@@ -0,0 +1,37 @@
1
+ export type ThemeMode = 'light' | 'dark';
2
+ export interface BasicPalette {
3
+ primaryColor: string;
4
+ primaryContrast: string;
5
+ secondaryColor: string;
6
+ secondaryContrast: string;
7
+ highlightColor: string;
8
+ bodyBgPrimary: string;
9
+ bodyBgSecondary: string;
10
+ }
11
+ export declare const BASIC_COLOR_DEFS: {
12
+ key: keyof BasicPalette;
13
+ cssBase: string;
14
+ label: string;
15
+ description: string;
16
+ }[];
17
+ interface RGBA {
18
+ r: number;
19
+ g: number;
20
+ b: number;
21
+ a: number;
22
+ }
23
+ export declare const parseColor: (input: string) => RGBA | null;
24
+ export declare const toHex: ({ r, g, b }: RGBA) => string;
25
+ export declare const lighten: (color: string, amount: number) => string;
26
+ export declare const darken: (color: string, amount: number) => string;
27
+ export declare const withAlpha: (color: string, alphaValue: number) => string;
28
+ export declare const relativeLuminance: (color: string) => number;
29
+ export declare const contrastText: (color: string) => string;
30
+ export declare const deriveModePalette: (bases: BasicPalette, mode: ThemeMode) => Record<string, string>;
31
+ export declare const deriveBrandPairs: (light: BasicPalette, darkBases: BasicPalette) => Record<string, string>;
32
+ export declare const extractBases: (colors: Record<string, string>, mode: ThemeMode) => BasicPalette;
33
+ export declare const basesFromImagePalette: (palette: number[][]) => {
34
+ light: BasicPalette;
35
+ dark: BasicPalette;
36
+ };
37
+ export {};
@@ -1,22 +1,20 @@
1
-
2
1
  import { RGBColor } from 'react-color';
3
-
4
-
5
2
  export interface KeyValuePair {
6
3
  key: string;
7
4
  value: string;
8
5
  id: string;
9
6
  }
10
-
11
7
  export interface ColorFormat {
12
8
  hex: string;
13
9
  rgb: RGBColor;
14
- hsl: { h: number; s: number; l: number; a?: number };
10
+ hsl: {
11
+ h: number;
12
+ s: number;
13
+ l: number;
14
+ a?: number;
15
+ };
15
16
  }
16
-
17
17
  export type ColorFormatType = 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla';
18
-
19
- // Color mapping interface
20
18
  export interface ColorMapping {
21
19
  [key: string]: string;
22
20
  }
@@ -0,0 +1,11 @@
1
+ interface ColorThiefResult {
2
+ dominantColor: number[] | null;
3
+ palette: number[][] | null;
4
+ loading: boolean;
5
+ error: string | null;
6
+ }
7
+ export declare const useAsyncColorThief: (imageSource: string | null, options?: {
8
+ colorCount?: number;
9
+ quality?: number;
10
+ }) => ColorThiefResult;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
3
+ export interface IListActive extends IDashAutoAdminCustomFieldComponent {
4
+ activeLabel?: string;
5
+ inactiveLabel?: string;
6
+ enableLabel?: string;
7
+ disableLabel?: string;
8
+ }
9
+ declare const ListActive: ({ method, attribute, resourceConfig, activeLabel, inactiveLabel, enableLabel, disableLabel, showLabel, }: IListActive) => React.JSX.Element;
10
+ export default ListActive;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
3
+ export interface IListActive extends IDashAutoAdminCustomFieldComponent {
4
+ activeLabel?: string;
5
+ inactiveLabel?: string;
6
+ enableLabel?: string;
7
+ disableLabel?: string;
8
+ }
9
+ declare const ListActive: ({ method, attribute, resourceConfig, activeLabel, inactiveLabel, enableLabel, disableLabel, }: IListActive) => React.JSX.Element;
10
+ export default ListActive;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IDashAutoAdminCustomFieldComponent } from 'dash-auto-admin';
3
+ export declare const NotificationPreferencesEdit: React.FC<IDashAutoAdminCustomFieldComponent>;
4
+ export declare const NotificationPreferencesView: React.FC<IDashAutoAdminCustomFieldComponent>;
5
+ declare const NotificationPreferences: React.FC<IDashAutoAdminCustomFieldComponent>;
6
+ export default NotificationPreferences;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { IDashAutoAdminCustomFieldComponent } from "dash-auto-admin";
3
+ interface ISearchableSelect extends IDashAutoAdminCustomFieldComponent {
4
+ name?: string;
5
+ resource?: string;
6
+ selectLabel?: string;
7
+ title?: string;
8
+ renderText?: (object: any) => any;
9
+ transformData?: (val: string) => any;
10
+ defaultValues?: any;
11
+ isMultiple?: boolean;
12
+ minSearch?: number;
13
+ searchResults?: number;
14
+ timerSearch?: number;
15
+ isEmpty?: boolean;
16
+ filter?: {
17
+ [x: string]: any;
18
+ };
19
+ queryFilter?: string;
20
+ isOptionEqualToValue?: (option: any, value: any) => boolean;
21
+ viewAttribute: string;
22
+ elementKeyId?: string;
23
+ }
24
+ declare const RASearchableSelect: ({ method, attribute, ...props }: ISearchableSelect) => React.JSX.Element;
25
+ export default RASearchableSelect;
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ interface ISearchableSelectCheckboxes {
3
+ name?: string;
4
+ resource?: string;
5
+ selectLabel?: string;
6
+ title?: string;
7
+ renderText: (option: any, caller: string) => any;
8
+ transformData?: (val: any) => any;
9
+ defaultValues?: any;
10
+ value?: any;
11
+ onChange?: (value: any) => void;
12
+ isMultiple?: boolean;
13
+ minSearch?: number;
14
+ searchResults?: number;
15
+ minOptions?: number;
16
+ timerSearch?: number;
17
+ isEmpty?: boolean;
18
+ filter?: {
19
+ [x: string]: any;
20
+ };
21
+ queryFilter?: string;
22
+ isOptionEqualToValue: (option: any, value: any) => boolean;
23
+ viewAttribute: string;
24
+ valueKeyId?: string;
25
+ transformOption?: (option: any, parsedOptions: any[], caller?: string) => boolean;
26
+ disabled?: boolean;
27
+ placeholder?: string;
28
+ emptyText?: string;
29
+ fullWidth?: boolean;
30
+ maxHeight?: number;
31
+ showSelectAll?: boolean;
32
+ showSelectedCount?: boolean;
33
+ }
34
+ export declare const SearchableSelectCheckboxes: React.FC<ISearchableSelectCheckboxes>;
35
+ export default SearchableSelectCheckboxes;
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ interface ISearchableSelectChips {
3
+ name?: string;
4
+ resource?: string;
5
+ selectLabel?: string;
6
+ title?: string;
7
+ renderText: (option: any, caller: string) => any;
8
+ transformData?: (val: any) => any;
9
+ defaultValues?: any;
10
+ value?: any;
11
+ onChange?: (value: any) => void;
12
+ isMultiple?: boolean;
13
+ minSearch?: number;
14
+ searchResults?: number;
15
+ minOptions?: number;
16
+ timerSearch?: number;
17
+ isEmpty?: boolean;
18
+ filter?: {
19
+ [x: string]: any;
20
+ };
21
+ queryFilter?: string;
22
+ isOptionEqualToValue: (option: any, value: any) => boolean;
23
+ viewAttribute: string;
24
+ valueKeyId?: string;
25
+ transformOption?: (option: any, parsedOptions: any[], caller?: string) => boolean;
26
+ disabled?: boolean;
27
+ placeholder?: string;
28
+ emptyText?: string;
29
+ fullWidth?: boolean;
30
+ enableMixedResults?: boolean;
31
+ }
32
+ export declare const SearchableSelectChips: React.FC<ISearchableSelectChips>;
33
+ export default SearchableSelectChips;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { IDashAutoAdminCustomFieldComponent } from "dash-auto-admin";
3
+ interface ISearchableSelectChipsControlRecordContext {
4
+ name?: string;
5
+ resource?: string;
6
+ selectLabel?: string;
7
+ title?: string;
8
+ renderText: (option: any, caller: string) => any;
9
+ transformData?: (val: any) => any;
10
+ defaultValues?: any;
11
+ isMultiple?: boolean;
12
+ minSearch?: number;
13
+ searchResults?: number;
14
+ timerSearch?: number;
15
+ isEmpty?: boolean;
16
+ filter?: {
17
+ [x: string]: any;
18
+ };
19
+ queryFilter?: string;
20
+ isOptionEqualToValue: (option: any, value: any) => boolean;
21
+ viewAttribute: string;
22
+ valueKeyId?: string;
23
+ useBaseAttributeName?: boolean;
24
+ useListAttributeForController?: boolean;
25
+ transformOption?: (option: any, parsedOptions: any[], caller?: string) => boolean;
26
+ }
27
+ export declare const SearchableSelectChipsControlRecordContextEdit: React.FC<ISearchableSelectChipsControlRecordContext & IDashAutoAdminCustomFieldComponent>;
28
+ export declare const SearchableSelectChipsControlRecordContextView: React.FC<IDashAutoAdminCustomFieldComponent>;
29
+ declare const SearchableSelectChipsControlRecordContext: React.FC<IDashAutoAdminCustomFieldComponent & ISearchableSelectChipsControlRecordContext>;
30
+ export default SearchableSelectChipsControlRecordContext;
@@ -0,0 +1,25 @@
1
+ import { AutocompleteProps } from '@mui/material';
2
+ import { JSX } from 'react';
3
+ export interface ISearchableSelect<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined = undefined> extends Omit<AutocompleteProps<T | string, Multiple, DisableClearable, FreeSolo>, 'renderInput' | 'options'> {
4
+ name: string;
5
+ resource: string;
6
+ selectLabel: string;
7
+ renderText?: (object: any) => string | JSX.Element;
8
+ transformData?: (val: any) => any;
9
+ defaultValues?: any;
10
+ isMultiple?: boolean;
11
+ minSearch?: number;
12
+ timerSearch?: number;
13
+ isEmpty?: boolean;
14
+ filter?: {
15
+ [x: string]: any;
16
+ };
17
+ queryFilter?: string;
18
+ isOptionEqualToValue?: (option: any, value: any) => boolean;
19
+ renderAttribute?: string;
20
+ elementKeyId?: string;
21
+ onChange?: (value: any) => void;
22
+ renderInputTextFieldProps?: any;
23
+ }
24
+ declare const SearchableSelect: <T, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined>({ ...props }: ISearchableSelect<T, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
25
+ export default SearchableSelect;
@@ -0,0 +1,29 @@
1
+ import { AutocompleteProps } from '@mui/material';
2
+ import { JSX } from 'react';
3
+ export interface ISearchableSelect<T> extends Omit<AutocompleteProps<T | string, boolean, boolean, boolean>, 'renderInput' | 'options' | 'isOptionEqualToValue' | 'getOptionLabel' | 'renderOption'> {
4
+ name: string;
5
+ resource: string;
6
+ selectLabel: string;
7
+ renderText?: (object: any) => string | JSX.Element;
8
+ transformData?: (val: any) => any;
9
+ defaultValues?: T | T[];
10
+ pagination?: boolean;
11
+ minSearch?: number;
12
+ searchResults?: number;
13
+ timerSearch?: number;
14
+ isEmpty?: boolean;
15
+ filter?: {
16
+ [x: string]: any;
17
+ };
18
+ queryFilter?: string;
19
+ isOptionEqualToValue?: (option: T, value: T) => boolean;
20
+ renderAttribute?: string;
21
+ elementKeyId?: string;
22
+ renderInputTextFieldProps?: any;
23
+ checkboxes?: boolean;
24
+ selectedIds?: number[];
25
+ useDefaultSearch?: boolean;
26
+ }
27
+ declare const SearchableSelectCheckboxes: <T>({ ...props }: ISearchableSelect<T>) => JSX.Element;
28
+ export declare const MemoizedSearchableSelectCheckboxes: typeof SearchableSelectCheckboxes;
29
+ export default SearchableSelectCheckboxes;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { DatagridProps } from 'react-admin';
3
+ interface ISortableDatagrid extends DatagridProps, PropsWithChildren {
4
+ onOrderUpdate?: (data: any) => void;
5
+ }
6
+ declare const SortableDatagrid: FC<ISortableDatagrid>;
7
+ export default SortableDatagrid;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { DatagridBodyProps } from 'react-admin';
3
+ export interface ISortableDatagridBodyProps extends DatagridBodyProps {
4
+ onOrderUpdate?: (data: any[]) => void;
5
+ }
6
+ export declare const PureSortableDatagridBody: React.NamedExoticComponent<object>;
7
+ export default PureSortableDatagridBody;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { DatagridHeaderProps } from 'react-admin';
3
+ export interface SortableDatagridHeaderProps extends DatagridHeaderProps {
4
+ hasSort?: boolean;
5
+ }
6
+ export declare const SortableDatagridHeader: (props: SortableDatagridHeaderProps) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React, { FC } from 'react';
2
+ import { DatagridRowProps } from 'react-admin';
3
+ declare const SortableDatagridRow: FC<DatagridRowProps>;
4
+ export declare const PureDatagridRow: React.NamedExoticComponent<Omit<DatagridRowProps, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
5
+ export default SortableDatagridRow;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export interface ISingleImageUploader {
3
+ classNamePrefix?: string;
4
+ currentUrl?: string;
5
+ onChange?: (file: File) => void;
6
+ }
7
+ declare const SingleImageUploader: FC<ISingleImageUploader>;
8
+ export default SingleImageUploader;
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { UseFormGetValues, UseFormSetValue } from 'react-hook-form';
3
+ import { IPackagePayload } from 'dash-interfaces';
4
+ import { AppDialogOptions } from 'dash-dialog/src/IAppDialogProps';
5
+ export interface IPackageCopyMethod {
6
+ defaultCopyMethod: number;
7
+ dialog: (options: AppDialogOptions) => void;
8
+ sendPackage: (data: any) => Promise<void>;
9
+ resetExtraPayloadFlagsAfterSubmit: () => void;
10
+ getValues: UseFormGetValues<IPackagePayload>;
11
+ setValue: UseFormSetValue<IPackagePayload>;
12
+ onChange?: (copy_method: number) => void;
13
+ }
14
+ declare const PackageCopyMethod: FC<IPackageCopyMethod>;
15
+ export default PackageCopyMethod;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { IPackage } from 'dash-interfaces';
3
+ export interface IPackagesRadioButtonsGroup {
4
+ packages: IPackage[];
5
+ onChange?: (value: string) => void;
6
+ }
7
+ declare const PackagesRadioButtonsGroup: FC<IPackagesRadioButtonsGroup>;
8
+ export default PackagesRadioButtonsGroup;
@@ -0,0 +1,2 @@
1
+ declare const DialogBasic: () => import("react").JSX.Element;
2
+ export default DialogBasic;
@@ -0,0 +1,2 @@
1
+ declare const DialogCorrect: () => import("react").JSX.Element;
2
+ export default DialogCorrect;
@@ -0,0 +1,2 @@
1
+ declare const DialogError: () => import("react").JSX.Element;
2
+ export default DialogError;
@@ -0,0 +1,2 @@
1
+ declare const DialogInfo: () => import("react").JSX.Element;
2
+ export default DialogInfo;
@@ -0,0 +1,2 @@
1
+ declare const DialogInfoV2: () => import("react").JSX.Element;
2
+ export default DialogInfoV2;
@@ -0,0 +1,2 @@
1
+ declare const DialogNotFound: () => import("react").JSX.Element;
2
+ export default DialogNotFound;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface IQuickSearch {
3
+ searchUrl?: string;
4
+ }
5
+ declare const QuickSearch: React.FC<IQuickSearch>;
6
+ export default QuickSearch;