@leav/ui 1.9.0-9cfff839 → 1.9.0-acecc5bf

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 (29) hide show
  1. package/dist/_gqlTypes/index.d.ts +46 -0
  2. package/dist/_gqlTypes/index.js +36 -0
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/components/Explorer/Explorer.js +21 -11
  5. package/dist/components/Explorer/Explorer.js.map +1 -1
  6. package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
  7. package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
  8. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
  9. package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
  10. package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
  11. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
  12. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
  13. package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
  14. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  15. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  16. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
  17. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  18. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -2
  19. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  20. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  21. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  22. package/dist/components/RecordEdition/_types.d.ts +1 -1
  23. package/dist/components/RecordEdition/_types.js.map +1 -1
  24. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  25. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  26. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  27. package/dist/locales/en/shared.json +2 -2
  28. package/dist/locales/fr/shared.json +2 -2
  29. package/package.json +2 -2
@@ -7751,6 +7751,15 @@ export type CountValuesOccurrencesQuery = {
7751
7751
  } | null;
7752
7752
  }> | null;
7753
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
+ };
7762
+ };
7754
7763
  export type ExplorerLibraryDataQueryVariables = Exact<{
7755
7764
  libraryId: Scalars['ID']['input'];
7756
7765
  attributeIds: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
@@ -10190,6 +10199,43 @@ export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountVa
10190
10199
  export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
10191
10200
  export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
10192
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>;
10193
10239
  export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
10194
10240
  /**
10195
10241
  * __useExplorerLibraryDataQuery__
@@ -3624,6 +3624,42 @@ export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3624
3624
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3625
3625
  return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3626
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
+ }
3627
3663
  export const ExplorerLibraryDataDocument = gql `
3628
3664
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3629
3665
  records(