@leav/ui 1.9.0-caa4797b → 1.9.0-e09e8fd5
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/dist/_gqlTypes/index.d.ts +100 -9
- package/dist/_gqlTypes/index.js +43 -8
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/components/Explorer/Explorer.js +21 -11
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/locales/en/shared.json +2 -2
- package/dist/locales/fr/shared.json +2 -2
- package/package.json +3 -3
|
@@ -685,6 +685,50 @@ export type RecordsPagination = {
|
|
|
685
685
|
limit: Scalars['Int']['input'];
|
|
686
686
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
687
687
|
};
|
|
688
|
+
export type ReportFramingAttributeFilterItemInput = {
|
|
689
|
+
attributeId: Scalars['String']['input'];
|
|
690
|
+
values: Array<ReportFramingAttributeFilterValueItemInput>;
|
|
691
|
+
withEmptyValues?: InputMaybe<Scalars['Boolean']['input']>;
|
|
692
|
+
};
|
|
693
|
+
export type ReportFramingAttributeFilterValueItemInput = {
|
|
694
|
+
formattedValue?: InputMaybe<Scalars['String']['input']>;
|
|
695
|
+
rawValue: Scalars['String']['input'];
|
|
696
|
+
};
|
|
697
|
+
export type ReportFramingCampaignInput = {
|
|
698
|
+
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
699
|
+
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
700
|
+
id: Scalars['String']['input'];
|
|
701
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
702
|
+
thematics: Array<ReportFramingThematicInput>;
|
|
703
|
+
};
|
|
704
|
+
export type ReportFramingCategoryInput = {
|
|
705
|
+
categoryId: Scalars['String']['input'];
|
|
706
|
+
children: Array<ReportFramingCategoryInput>;
|
|
707
|
+
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
708
|
+
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
709
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
710
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
711
|
+
};
|
|
712
|
+
export type ReportFramingContentInput = {
|
|
713
|
+
campaigns: Array<ReportFramingCampaignInput>;
|
|
714
|
+
filters?: InputMaybe<ReportFramingFiltersInput>;
|
|
715
|
+
};
|
|
716
|
+
export type ReportFramingFiltersInput = {
|
|
717
|
+
attributes?: InputMaybe<Array<ReportFramingAttributeFilterItemInput>>;
|
|
718
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
719
|
+
};
|
|
720
|
+
export type ReportFramingItemInput = {
|
|
721
|
+
columnId: Scalars['String']['input'];
|
|
722
|
+
referenceValue?: InputMaybe<Scalars['Int']['input']>;
|
|
723
|
+
value?: InputMaybe<Scalars['Int']['input']>;
|
|
724
|
+
};
|
|
725
|
+
export type ReportFramingThematicInput = {
|
|
726
|
+
categories: Array<ReportFramingCategoryInput>;
|
|
727
|
+
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
728
|
+
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
729
|
+
id: Scalars['String']['input'];
|
|
730
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
731
|
+
};
|
|
688
732
|
export type SheetInput = {
|
|
689
733
|
keyIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
690
734
|
keyToIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -748,9 +792,11 @@ export declare enum TaskStatus {
|
|
|
748
792
|
}
|
|
749
793
|
export declare enum TaskType {
|
|
750
794
|
EXPORT = "EXPORT",
|
|
795
|
+
FRAMING_REPORT = "FRAMING_REPORT",
|
|
751
796
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
752
797
|
IMPORT_DATA = "IMPORT_DATA",
|
|
753
798
|
INDEXATION = "INDEXATION",
|
|
799
|
+
PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
|
|
754
800
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
755
801
|
}
|
|
756
802
|
export declare enum TreeBehavior {
|
|
@@ -7696,15 +7742,23 @@ export type CountValuesOccurrencesQueryVariables = Exact<{
|
|
|
7696
7742
|
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
7697
7743
|
}>;
|
|
7698
7744
|
export type CountValuesOccurrencesQuery = {
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7745
|
+
listDistinctValues?: Array<{
|
|
7746
|
+
count: number;
|
|
7747
|
+
} | {
|
|
7748
|
+
count: number;
|
|
7749
|
+
treeNode?: {
|
|
7750
|
+
id: string;
|
|
7751
|
+
} | null;
|
|
7752
|
+
}> | null;
|
|
7753
|
+
};
|
|
7754
|
+
export type ExplorerLibraryCountDataQueryVariables = Exact<{
|
|
7755
|
+
libraryId: Scalars['ID']['input'];
|
|
7756
|
+
filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
7757
|
+
}>;
|
|
7758
|
+
export type ExplorerLibraryCountDataQuery = {
|
|
7759
|
+
records: {
|
|
7760
|
+
totalCount?: number | null;
|
|
7761
|
+
};
|
|
7708
7762
|
};
|
|
7709
7763
|
export type ExplorerLibraryDataQueryVariables = Exact<{
|
|
7710
7764
|
libraryId: Scalars['ID']['input'];
|
|
@@ -10145,6 +10199,43 @@ export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountVa
|
|
|
10145
10199
|
export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
|
|
10146
10200
|
export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
|
|
10147
10201
|
export type CountValuesOccurrencesQueryResult = Apollo.QueryResult<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>;
|
|
10202
|
+
export declare const ExplorerLibraryCountDataDocument: Apollo.DocumentNode;
|
|
10203
|
+
/**
|
|
10204
|
+
* __useExplorerLibraryCountDataQuery__
|
|
10205
|
+
*
|
|
10206
|
+
* To run a query within a React component, call `useExplorerLibraryCountDataQuery` and pass it any options that fit your needs.
|
|
10207
|
+
* When your component renders, `useExplorerLibraryCountDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10208
|
+
* you can use to render your UI.
|
|
10209
|
+
*
|
|
10210
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10211
|
+
*
|
|
10212
|
+
* @example
|
|
10213
|
+
* const { data, loading, error } = useExplorerLibraryCountDataQuery({
|
|
10214
|
+
* variables: {
|
|
10215
|
+
* libraryId: // value for 'libraryId'
|
|
10216
|
+
* filters: // value for 'filters'
|
|
10217
|
+
* },
|
|
10218
|
+
* });
|
|
10219
|
+
*/
|
|
10220
|
+
export declare function useExplorerLibraryCountDataQuery(baseOptions: Apollo.QueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables> & ({
|
|
10221
|
+
variables: ExplorerLibraryCountDataQueryVariables;
|
|
10222
|
+
skip?: boolean;
|
|
10223
|
+
} | {
|
|
10224
|
+
skip: boolean;
|
|
10225
|
+
})): Apollo.InteropQueryResult<ExplorerLibraryCountDataQuery, Exact<{
|
|
10226
|
+
libraryId: Scalars["ID"]["input"];
|
|
10227
|
+
filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
10228
|
+
}>>;
|
|
10229
|
+
export declare function useExplorerLibraryCountDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerLibraryCountDataQuery, Exact<{
|
|
10230
|
+
libraryId: Scalars["ID"]["input"];
|
|
10231
|
+
filters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
10232
|
+
}>>;
|
|
10233
|
+
export declare function useExplorerLibraryCountDataSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.UseSuspenseQueryResult<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>;
|
|
10234
|
+
export declare function useExplorerLibraryCountDataSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>): Apollo.UseSuspenseQueryResult<ExplorerLibraryCountDataQuery | undefined, ExplorerLibraryCountDataQueryVariables>;
|
|
10235
|
+
export type ExplorerLibraryCountDataQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataQuery>;
|
|
10236
|
+
export type ExplorerLibraryCountDataLazyQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataLazyQuery>;
|
|
10237
|
+
export type ExplorerLibraryCountDataSuspenseQueryHookResult = ReturnType<typeof useExplorerLibraryCountDataSuspenseQuery>;
|
|
10238
|
+
export type ExplorerLibraryCountDataQueryResult = Apollo.QueryResult<ExplorerLibraryCountDataQuery, ExplorerLibraryCountDataQueryVariables>;
|
|
10148
10239
|
export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
|
|
10149
10240
|
/**
|
|
10150
10241
|
* __useExplorerLibraryDataQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -307,9 +307,11 @@ export var TaskStatus;
|
|
|
307
307
|
export var TaskType;
|
|
308
308
|
(function (TaskType) {
|
|
309
309
|
TaskType["EXPORT"] = "EXPORT";
|
|
310
|
+
TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
|
|
310
311
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
311
312
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
312
313
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
314
|
+
TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
|
|
313
315
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
314
316
|
})(TaskType || (TaskType = {}));
|
|
315
317
|
export var TreeBehavior;
|
|
@@ -3578,19 +3580,16 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
|
3578
3580
|
}
|
|
3579
3581
|
export const CountValuesOccurrencesDocument = gql `
|
|
3580
3582
|
query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
|
|
3581
|
-
|
|
3583
|
+
listDistinctValues(
|
|
3582
3584
|
library: $library
|
|
3583
3585
|
attribute: $attribute
|
|
3584
3586
|
recordFilters: $recordFilters
|
|
3585
3587
|
) {
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
id
|
|
3591
|
-
}
|
|
3588
|
+
count
|
|
3589
|
+
... on TreeDistinctValues {
|
|
3590
|
+
treeNode: value {
|
|
3591
|
+
id
|
|
3592
3592
|
}
|
|
3593
|
-
count
|
|
3594
3593
|
}
|
|
3595
3594
|
}
|
|
3596
3595
|
}
|
|
@@ -3625,6 +3624,42 @@ export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
|
|
|
3625
3624
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3626
3625
|
return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
|
|
3627
3626
|
}
|
|
3627
|
+
export const ExplorerLibraryCountDataDocument = gql `
|
|
3628
|
+
query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
|
|
3629
|
+
records(library: $libraryId, filters: $filters) {
|
|
3630
|
+
totalCount
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
`;
|
|
3634
|
+
/**
|
|
3635
|
+
* __useExplorerLibraryCountDataQuery__
|
|
3636
|
+
*
|
|
3637
|
+
* To run a query within a React component, call `useExplorerLibraryCountDataQuery` and pass it any options that fit your needs.
|
|
3638
|
+
* When your component renders, `useExplorerLibraryCountDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3639
|
+
* you can use to render your UI.
|
|
3640
|
+
*
|
|
3641
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3642
|
+
*
|
|
3643
|
+
* @example
|
|
3644
|
+
* const { data, loading, error } = useExplorerLibraryCountDataQuery({
|
|
3645
|
+
* variables: {
|
|
3646
|
+
* libraryId: // value for 'libraryId'
|
|
3647
|
+
* filters: // value for 'filters'
|
|
3648
|
+
* },
|
|
3649
|
+
* });
|
|
3650
|
+
*/
|
|
3651
|
+
export function useExplorerLibraryCountDataQuery(baseOptions) {
|
|
3652
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3653
|
+
return Apollo.useQuery(ExplorerLibraryCountDataDocument, options);
|
|
3654
|
+
}
|
|
3655
|
+
export function useExplorerLibraryCountDataLazyQuery(baseOptions) {
|
|
3656
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3657
|
+
return Apollo.useLazyQuery(ExplorerLibraryCountDataDocument, options);
|
|
3658
|
+
}
|
|
3659
|
+
export function useExplorerLibraryCountDataSuspenseQuery(baseOptions) {
|
|
3660
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3661
|
+
return Apollo.useSuspenseQuery(ExplorerLibraryCountDataDocument, options);
|
|
3662
|
+
}
|
|
3628
3663
|
export const ExplorerLibraryDataDocument = gql `
|
|
3629
3664
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
3630
3665
|
records(
|