@easyvision/easyvision-ui 1.11.0 → 1.12.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 +33 -0
- package/dist/easyvision.css +84 -0
- package/dist/index.cjs +438 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +333 -59
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -53,6 +53,16 @@ interface EasyVisionSelectorProps<V extends string | number = string | number> e
|
|
|
53
53
|
|
|
54
54
|
declare function EasyVisionSelector<V extends string | number = string | number>({ id, label, options, placeholder, mandatory, defaultValue, confirmMode, confirmLabel, searchable, onChange, onStateChange, className, disabled, persist, clearWhen, }: EasyVisionSelectorProps<V>): react_jsx_runtime.JSX.Element;
|
|
55
55
|
|
|
56
|
+
interface SavedFilter {
|
|
57
|
+
name: string;
|
|
58
|
+
filters: Record<string, unknown>;
|
|
59
|
+
search: string[];
|
|
60
|
+
}
|
|
61
|
+
interface SavedFiltersOptions {
|
|
62
|
+
/** localStorage key. Make it unique per table and per account. */
|
|
63
|
+
storageKey: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
interface DateRangeValue {
|
|
57
67
|
from?: Date;
|
|
58
68
|
to?: Date;
|
|
@@ -176,6 +186,15 @@ interface MultifilterLabels {
|
|
|
176
186
|
addFilter: string;
|
|
177
187
|
noOptions: string;
|
|
178
188
|
searchPlaceholder: string;
|
|
189
|
+
/** Saved filters ("Guardados") menu. */
|
|
190
|
+
saved: string;
|
|
191
|
+
noSaved: string;
|
|
192
|
+
saveNamePlaceholder: string;
|
|
193
|
+
nothingToSave: string;
|
|
194
|
+
save: string;
|
|
195
|
+
setDefault: string;
|
|
196
|
+
unsetDefault: string;
|
|
197
|
+
deleteSaved: string;
|
|
179
198
|
}
|
|
180
199
|
interface MultifilterQuery {
|
|
181
200
|
where?: Record<string, unknown>;
|
|
@@ -236,6 +255,11 @@ interface EasyVisionMultifilterProps extends BaseStatefulProps<MultifilterSnapsh
|
|
|
236
255
|
showClearAll?: boolean;
|
|
237
256
|
labels?: Partial<MultifilterLabels>;
|
|
238
257
|
className?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Named saved queries ("Guardados"), kept in localStorage under
|
|
260
|
+
* `storageKey`. Off when omitted. See `multifilter/savedFilters.ts`.
|
|
261
|
+
*/
|
|
262
|
+
savedFilters?: SavedFiltersOptions;
|
|
239
263
|
}
|
|
240
264
|
|
|
241
265
|
declare const EasyVisionMultifilter: React.ForwardRefExoticComponent<EasyVisionMultifilterProps & React.RefAttributes<MultifilterHandle>>;
|
|
@@ -962,4 +986,4 @@ declare const getSlice: <K extends SliceKind>(fullId: string) => SliceFor<K> | u
|
|
|
962
986
|
*/
|
|
963
987
|
declare const defaultCell: (content: ReactNode, title?: string) => ReactNode;
|
|
964
988
|
|
|
965
|
-
export { type AccordionItem, type AccordionMode, type ApiFetchParams, type ApiFetchResult, type BaseStatefulProps, type CreateIngotTableFetcherOptions, type CreateLoopbackTableFetcherOptions, type CustomFieldDef, type DateRangeFieldDef, type DateRangeValue, EasyVisionAccordion, EasyVisionAccordionItem, type EasyVisionAccordionItemProps, type EasyVisionAccordionProps, EasyVisionCard, EasyVisionCardContent, EasyVisionCardDescription, EasyVisionCardFooter, EasyVisionCardHeader, EasyVisionCardTitle, type EasyVisionColumn, EasyVisionExportButton, type EasyVisionExportButtonProps, EasyVisionInput, type EasyVisionInputProps, EasyVisionMultifilter, type EasyVisionMultifilterProps, EasyVisionSelector, type EasyVisionSelectorProps, EasyVisionTable, type EasyVisionTableProps, type ExportCellStyle, type ExportCellValue, type ExportColumnSpec, type ExportLabels, type ExportSource, type FieldDef, type IngotFilter, type LoopbackCountResponse, type LoopbackFilter, type LoopbackWhereValue, type MultiSelectFieldDef, type MultifilterConfig, type MultifilterFieldDef, type MultifilterHandle, type MultifilterLabels, type MultifilterQuery, type MultifilterSnapshot, type NumberRangeFieldDef, type NumberRangeValue, type SelectionChange, type SelectorFieldDef, type SelectorOption, type SheetSpec, type TableLabels, type TableMode, type TextFieldDef, buildWorkbook, createIngotTableFetcher, createLoopbackTableFetcher, defaultCell, downloadBlob, easyVisionRegistry, exportSheets, getSlice, matchLoopbackWhere, sanitizeSheetName, toExportColumns, toIngotWhere };
|
|
989
|
+
export { type AccordionItem, type AccordionMode, type ApiFetchParams, type ApiFetchResult, type BaseStatefulProps, type CreateIngotTableFetcherOptions, type CreateLoopbackTableFetcherOptions, type CustomFieldDef, type DateRangeFieldDef, type DateRangeValue, EasyVisionAccordion, EasyVisionAccordionItem, type EasyVisionAccordionItemProps, type EasyVisionAccordionProps, EasyVisionCard, EasyVisionCardContent, EasyVisionCardDescription, EasyVisionCardFooter, EasyVisionCardHeader, EasyVisionCardTitle, type EasyVisionColumn, EasyVisionExportButton, type EasyVisionExportButtonProps, EasyVisionInput, type EasyVisionInputProps, EasyVisionMultifilter, type EasyVisionMultifilterProps, EasyVisionSelector, type EasyVisionSelectorProps, EasyVisionTable, type EasyVisionTableProps, type ExportCellStyle, type ExportCellValue, type ExportColumnSpec, type ExportLabels, type ExportSource, type FieldDef, type IngotFilter, type LoopbackCountResponse, type LoopbackFilter, type LoopbackWhereValue, type MultiSelectFieldDef, type MultifilterConfig, type MultifilterFieldDef, type MultifilterHandle, type MultifilterLabels, type MultifilterQuery, type MultifilterSnapshot, type NumberRangeFieldDef, type NumberRangeValue, type SavedFilter, type SavedFiltersOptions, type SelectionChange, type SelectorFieldDef, type SelectorOption, type SheetSpec, type TableLabels, type TableMode, type TextFieldDef, buildWorkbook, createIngotTableFetcher, createLoopbackTableFetcher, defaultCell, downloadBlob, easyVisionRegistry, exportSheets, getSlice, matchLoopbackWhere, sanitizeSheetName, toExportColumns, toIngotWhere };
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,16 @@ interface EasyVisionSelectorProps<V extends string | number = string | number> e
|
|
|
53
53
|
|
|
54
54
|
declare function EasyVisionSelector<V extends string | number = string | number>({ id, label, options, placeholder, mandatory, defaultValue, confirmMode, confirmLabel, searchable, onChange, onStateChange, className, disabled, persist, clearWhen, }: EasyVisionSelectorProps<V>): react_jsx_runtime.JSX.Element;
|
|
55
55
|
|
|
56
|
+
interface SavedFilter {
|
|
57
|
+
name: string;
|
|
58
|
+
filters: Record<string, unknown>;
|
|
59
|
+
search: string[];
|
|
60
|
+
}
|
|
61
|
+
interface SavedFiltersOptions {
|
|
62
|
+
/** localStorage key. Make it unique per table and per account. */
|
|
63
|
+
storageKey: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
interface DateRangeValue {
|
|
57
67
|
from?: Date;
|
|
58
68
|
to?: Date;
|
|
@@ -176,6 +186,15 @@ interface MultifilterLabels {
|
|
|
176
186
|
addFilter: string;
|
|
177
187
|
noOptions: string;
|
|
178
188
|
searchPlaceholder: string;
|
|
189
|
+
/** Saved filters ("Guardados") menu. */
|
|
190
|
+
saved: string;
|
|
191
|
+
noSaved: string;
|
|
192
|
+
saveNamePlaceholder: string;
|
|
193
|
+
nothingToSave: string;
|
|
194
|
+
save: string;
|
|
195
|
+
setDefault: string;
|
|
196
|
+
unsetDefault: string;
|
|
197
|
+
deleteSaved: string;
|
|
179
198
|
}
|
|
180
199
|
interface MultifilterQuery {
|
|
181
200
|
where?: Record<string, unknown>;
|
|
@@ -236,6 +255,11 @@ interface EasyVisionMultifilterProps extends BaseStatefulProps<MultifilterSnapsh
|
|
|
236
255
|
showClearAll?: boolean;
|
|
237
256
|
labels?: Partial<MultifilterLabels>;
|
|
238
257
|
className?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Named saved queries ("Guardados"), kept in localStorage under
|
|
260
|
+
* `storageKey`. Off when omitted. See `multifilter/savedFilters.ts`.
|
|
261
|
+
*/
|
|
262
|
+
savedFilters?: SavedFiltersOptions;
|
|
239
263
|
}
|
|
240
264
|
|
|
241
265
|
declare const EasyVisionMultifilter: React.ForwardRefExoticComponent<EasyVisionMultifilterProps & React.RefAttributes<MultifilterHandle>>;
|
|
@@ -962,4 +986,4 @@ declare const getSlice: <K extends SliceKind>(fullId: string) => SliceFor<K> | u
|
|
|
962
986
|
*/
|
|
963
987
|
declare const defaultCell: (content: ReactNode, title?: string) => ReactNode;
|
|
964
988
|
|
|
965
|
-
export { type AccordionItem, type AccordionMode, type ApiFetchParams, type ApiFetchResult, type BaseStatefulProps, type CreateIngotTableFetcherOptions, type CreateLoopbackTableFetcherOptions, type CustomFieldDef, type DateRangeFieldDef, type DateRangeValue, EasyVisionAccordion, EasyVisionAccordionItem, type EasyVisionAccordionItemProps, type EasyVisionAccordionProps, EasyVisionCard, EasyVisionCardContent, EasyVisionCardDescription, EasyVisionCardFooter, EasyVisionCardHeader, EasyVisionCardTitle, type EasyVisionColumn, EasyVisionExportButton, type EasyVisionExportButtonProps, EasyVisionInput, type EasyVisionInputProps, EasyVisionMultifilter, type EasyVisionMultifilterProps, EasyVisionSelector, type EasyVisionSelectorProps, EasyVisionTable, type EasyVisionTableProps, type ExportCellStyle, type ExportCellValue, type ExportColumnSpec, type ExportLabels, type ExportSource, type FieldDef, type IngotFilter, type LoopbackCountResponse, type LoopbackFilter, type LoopbackWhereValue, type MultiSelectFieldDef, type MultifilterConfig, type MultifilterFieldDef, type MultifilterHandle, type MultifilterLabels, type MultifilterQuery, type MultifilterSnapshot, type NumberRangeFieldDef, type NumberRangeValue, type SelectionChange, type SelectorFieldDef, type SelectorOption, type SheetSpec, type TableLabels, type TableMode, type TextFieldDef, buildWorkbook, createIngotTableFetcher, createLoopbackTableFetcher, defaultCell, downloadBlob, easyVisionRegistry, exportSheets, getSlice, matchLoopbackWhere, sanitizeSheetName, toExportColumns, toIngotWhere };
|
|
989
|
+
export { type AccordionItem, type AccordionMode, type ApiFetchParams, type ApiFetchResult, type BaseStatefulProps, type CreateIngotTableFetcherOptions, type CreateLoopbackTableFetcherOptions, type CustomFieldDef, type DateRangeFieldDef, type DateRangeValue, EasyVisionAccordion, EasyVisionAccordionItem, type EasyVisionAccordionItemProps, type EasyVisionAccordionProps, EasyVisionCard, EasyVisionCardContent, EasyVisionCardDescription, EasyVisionCardFooter, EasyVisionCardHeader, EasyVisionCardTitle, type EasyVisionColumn, EasyVisionExportButton, type EasyVisionExportButtonProps, EasyVisionInput, type EasyVisionInputProps, EasyVisionMultifilter, type EasyVisionMultifilterProps, EasyVisionSelector, type EasyVisionSelectorProps, EasyVisionTable, type EasyVisionTableProps, type ExportCellStyle, type ExportCellValue, type ExportColumnSpec, type ExportLabels, type ExportSource, type FieldDef, type IngotFilter, type LoopbackCountResponse, type LoopbackFilter, type LoopbackWhereValue, type MultiSelectFieldDef, type MultifilterConfig, type MultifilterFieldDef, type MultifilterHandle, type MultifilterLabels, type MultifilterQuery, type MultifilterSnapshot, type NumberRangeFieldDef, type NumberRangeValue, type SavedFilter, type SavedFiltersOptions, type SelectionChange, type SelectorFieldDef, type SelectorOption, type SheetSpec, type TableLabels, type TableMode, type TextFieldDef, buildWorkbook, createIngotTableFetcher, createLoopbackTableFetcher, defaultCell, downloadBlob, easyVisionRegistry, exportSheets, getSlice, matchLoopbackWhere, sanitizeSheetName, toExportColumns, toIngotWhere };
|