@easyvision/easyvision-ui 1.12.0 → 1.13.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 +7 -3
- package/dist/index.cjs +207 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +207 -128
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -61,6 +61,17 @@ interface SavedFilter {
|
|
|
61
61
|
interface SavedFiltersOptions {
|
|
62
62
|
/** localStorage key. Make it unique per table and per account. */
|
|
63
63
|
storageKey: string;
|
|
64
|
+
/**
|
|
65
|
+
* Open with the default saved query when the multifilter starts clean.
|
|
66
|
+
* Default `true`. A host whose page arrived with its own filters (a shared
|
|
67
|
+
* link) says `false`: what the link asks for wins.
|
|
68
|
+
*/
|
|
69
|
+
openWithDefault?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The text field that holds the search terms. v3 keeps them apart, in
|
|
72
|
+
* `search`; naming the field writes it there and reads it back.
|
|
73
|
+
*/
|
|
74
|
+
searchFieldId?: string;
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
interface DateRangeValue {
|
|
@@ -195,6 +206,9 @@ interface MultifilterLabels {
|
|
|
195
206
|
setDefault: string;
|
|
196
207
|
unsetDefault: string;
|
|
197
208
|
deleteSaved: string;
|
|
209
|
+
/** Icon buttons: "Quitar filtro: Estado", "Quitar Completada". */
|
|
210
|
+
removeFilter: string;
|
|
211
|
+
removeValue: string;
|
|
198
212
|
}
|
|
199
213
|
interface MultifilterQuery {
|
|
200
214
|
where?: Record<string, unknown>;
|
|
@@ -722,6 +736,10 @@ interface TableLabels {
|
|
|
722
736
|
selectedAllBanner: (n: number) => string;
|
|
723
737
|
selectedCountBanner: (n: number) => string;
|
|
724
738
|
clearSelection: string;
|
|
739
|
+
/** A row's checkbox: "Seleccionar" + the row's label (`getRowLabel`). */
|
|
740
|
+
selectRow: string;
|
|
741
|
+
previousPage: string;
|
|
742
|
+
nextPage: string;
|
|
725
743
|
}
|
|
726
744
|
interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
727
745
|
columns: EasyVisionColumn<T>[];
|
|
@@ -778,6 +796,15 @@ interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
|
778
796
|
* />
|
|
779
797
|
*/
|
|
780
798
|
ingot?: CreateIngotTableFetcherOptions<T>;
|
|
799
|
+
/**
|
|
800
|
+
* The order the server applies when no sort is chosen (api mode). Its
|
|
801
|
+
* column shows the arrow and `aria-sort` meanwhile; a click on it turns it
|
|
802
|
+
* around, and coming back to it clears the chosen sort.
|
|
803
|
+
*/
|
|
804
|
+
defaultSort?: {
|
|
805
|
+
column: string;
|
|
806
|
+
descending: boolean;
|
|
807
|
+
};
|
|
781
808
|
/**
|
|
782
809
|
* Fires after each successful API fetch with the freshly loaded rows and total count.
|
|
783
810
|
* Useful when the page needs to mirror the loaded slice into another store
|
|
@@ -794,6 +821,15 @@ interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
|
794
821
|
* when the page drives its own filter UI separate from a bound multifilter.
|
|
795
822
|
*/
|
|
796
823
|
refetchSignal?: unknown;
|
|
824
|
+
/**
|
|
825
|
+
* Like `refetchSignal`, but the page stays: for rows that changed under the
|
|
826
|
+
* same query (an edit, a move), not for a new query.
|
|
827
|
+
*/
|
|
828
|
+
reloadSignal?: unknown;
|
|
829
|
+
/** The table's accessible name: what a screen reader says it is. */
|
|
830
|
+
ariaLabel?: string;
|
|
831
|
+
/** What a row is called, for its checkbox's name ("Seleccionar Alerta 2"). */
|
|
832
|
+
getRowLabel?: (row: T) => string;
|
|
797
833
|
/** External `where` to merge into every fetch. Used when the page drives its own filter UI. */
|
|
798
834
|
externalFilter?: {
|
|
799
835
|
where?: Record<string, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,17 @@ interface SavedFilter {
|
|
|
61
61
|
interface SavedFiltersOptions {
|
|
62
62
|
/** localStorage key. Make it unique per table and per account. */
|
|
63
63
|
storageKey: string;
|
|
64
|
+
/**
|
|
65
|
+
* Open with the default saved query when the multifilter starts clean.
|
|
66
|
+
* Default `true`. A host whose page arrived with its own filters (a shared
|
|
67
|
+
* link) says `false`: what the link asks for wins.
|
|
68
|
+
*/
|
|
69
|
+
openWithDefault?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The text field that holds the search terms. v3 keeps them apart, in
|
|
72
|
+
* `search`; naming the field writes it there and reads it back.
|
|
73
|
+
*/
|
|
74
|
+
searchFieldId?: string;
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
interface DateRangeValue {
|
|
@@ -195,6 +206,9 @@ interface MultifilterLabels {
|
|
|
195
206
|
setDefault: string;
|
|
196
207
|
unsetDefault: string;
|
|
197
208
|
deleteSaved: string;
|
|
209
|
+
/** Icon buttons: "Quitar filtro: Estado", "Quitar Completada". */
|
|
210
|
+
removeFilter: string;
|
|
211
|
+
removeValue: string;
|
|
198
212
|
}
|
|
199
213
|
interface MultifilterQuery {
|
|
200
214
|
where?: Record<string, unknown>;
|
|
@@ -722,6 +736,10 @@ interface TableLabels {
|
|
|
722
736
|
selectedAllBanner: (n: number) => string;
|
|
723
737
|
selectedCountBanner: (n: number) => string;
|
|
724
738
|
clearSelection: string;
|
|
739
|
+
/** A row's checkbox: "Seleccionar" + the row's label (`getRowLabel`). */
|
|
740
|
+
selectRow: string;
|
|
741
|
+
previousPage: string;
|
|
742
|
+
nextPage: string;
|
|
725
743
|
}
|
|
726
744
|
interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
727
745
|
columns: EasyVisionColumn<T>[];
|
|
@@ -778,6 +796,15 @@ interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
|
778
796
|
* />
|
|
779
797
|
*/
|
|
780
798
|
ingot?: CreateIngotTableFetcherOptions<T>;
|
|
799
|
+
/**
|
|
800
|
+
* The order the server applies when no sort is chosen (api mode). Its
|
|
801
|
+
* column shows the arrow and `aria-sort` meanwhile; a click on it turns it
|
|
802
|
+
* around, and coming back to it clears the chosen sort.
|
|
803
|
+
*/
|
|
804
|
+
defaultSort?: {
|
|
805
|
+
column: string;
|
|
806
|
+
descending: boolean;
|
|
807
|
+
};
|
|
781
808
|
/**
|
|
782
809
|
* Fires after each successful API fetch with the freshly loaded rows and total count.
|
|
783
810
|
* Useful when the page needs to mirror the loaded slice into another store
|
|
@@ -794,6 +821,15 @@ interface EasyVisionTableProps<T> extends BaseStatefulProps {
|
|
|
794
821
|
* when the page drives its own filter UI separate from a bound multifilter.
|
|
795
822
|
*/
|
|
796
823
|
refetchSignal?: unknown;
|
|
824
|
+
/**
|
|
825
|
+
* Like `refetchSignal`, but the page stays: for rows that changed under the
|
|
826
|
+
* same query (an edit, a move), not for a new query.
|
|
827
|
+
*/
|
|
828
|
+
reloadSignal?: unknown;
|
|
829
|
+
/** The table's accessible name: what a screen reader says it is. */
|
|
830
|
+
ariaLabel?: string;
|
|
831
|
+
/** What a row is called, for its checkbox's name ("Seleccionar Alerta 2"). */
|
|
832
|
+
getRowLabel?: (row: T) => string;
|
|
797
833
|
/** External `where` to merge into every fetch. Used when the page drives its own filter UI. */
|
|
798
834
|
externalFilter?: {
|
|
799
835
|
where?: Record<string, unknown>;
|