@leav/ui 1.9.0-ce48a072 → 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 +103 -20
- package/dist/_gqlTypes/index.js +46 -11
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -2
- package/dist/_queries/records/createRecordMutation.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/ExplorerToolbar.js +2 -1
- package/dist/components/Explorer/ExplorerToolbar.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/components/RecordEdition/EditRecordContent/_types.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +27 -16
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +28 -16
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
- package/dist/hooks/useIFrameMessenger/types.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
|
@@ -246,16 +246,6 @@ export declare enum AvailableLanguage {
|
|
|
246
246
|
en = "en",
|
|
247
247
|
fr = "fr"
|
|
248
248
|
}
|
|
249
|
-
export type CampaignToRenew = {
|
|
250
|
-
endDate: Scalars['String']['input'];
|
|
251
|
-
id: Scalars['String']['input'];
|
|
252
|
-
startDate: Scalars['String']['input'];
|
|
253
|
-
};
|
|
254
|
-
export type CampaignToUpdateDates = {
|
|
255
|
-
endDate: Scalars['String']['input'];
|
|
256
|
-
id: Scalars['String']['input'];
|
|
257
|
-
startDate: Scalars['String']['input'];
|
|
258
|
-
};
|
|
259
249
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
260
250
|
action: RecordPermissionsActions;
|
|
261
251
|
attributeId: Scalars['ID']['input'];
|
|
@@ -695,6 +685,50 @@ export type RecordsPagination = {
|
|
|
695
685
|
limit: Scalars['Int']['input'];
|
|
696
686
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
697
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
|
+
};
|
|
698
732
|
export type SheetInput = {
|
|
699
733
|
keyIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
700
734
|
keyToIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -758,10 +792,11 @@ export declare enum TaskStatus {
|
|
|
758
792
|
}
|
|
759
793
|
export declare enum TaskType {
|
|
760
794
|
EXPORT = "EXPORT",
|
|
795
|
+
FRAMING_REPORT = "FRAMING_REPORT",
|
|
761
796
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
762
797
|
IMPORT_DATA = "IMPORT_DATA",
|
|
763
798
|
INDEXATION = "INDEXATION",
|
|
764
|
-
|
|
799
|
+
PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
|
|
765
800
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
766
801
|
}
|
|
767
802
|
export declare enum TreeBehavior {
|
|
@@ -4669,6 +4704,7 @@ export type CreateEmptyRecordMutation = {
|
|
|
4669
4704
|
};
|
|
4670
4705
|
export type CreateRecordMutationVariables = Exact<{
|
|
4671
4706
|
library: Scalars['ID']['input'];
|
|
4707
|
+
skipActivate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4672
4708
|
data?: InputMaybe<CreateRecordDataInput>;
|
|
4673
4709
|
}>;
|
|
4674
4710
|
export type CreateRecordMutation = {
|
|
@@ -7706,15 +7742,23 @@ export type CountValuesOccurrencesQueryVariables = Exact<{
|
|
|
7706
7742
|
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
7707
7743
|
}>;
|
|
7708
7744
|
export type CountValuesOccurrencesQuery = {
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
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
|
+
};
|
|
7718
7762
|
};
|
|
7719
7763
|
export type ExplorerLibraryDataQueryVariables = Exact<{
|
|
7720
7764
|
libraryId: Scalars['ID']['input'];
|
|
@@ -9130,12 +9174,14 @@ export type CreateRecordMutationFn = Apollo.MutationFunction<CreateRecordMutatio
|
|
|
9130
9174
|
* const [createRecordMutation, { data, loading, error }] = useCreateRecordMutation({
|
|
9131
9175
|
* variables: {
|
|
9132
9176
|
* library: // value for 'library'
|
|
9177
|
+
* skipActivate: // value for 'skipActivate'
|
|
9133
9178
|
* data: // value for 'data'
|
|
9134
9179
|
* },
|
|
9135
9180
|
* });
|
|
9136
9181
|
*/
|
|
9137
9182
|
export declare function useCreateRecordMutation(baseOptions?: Apollo.MutationHookOptions<CreateRecordMutation, CreateRecordMutationVariables>): Apollo.MutationTuple<CreateRecordMutation, Exact<{
|
|
9138
9183
|
library: Scalars["ID"]["input"];
|
|
9184
|
+
skipActivate?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
9139
9185
|
data?: InputMaybe<CreateRecordDataInput>;
|
|
9140
9186
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
9141
9187
|
export type CreateRecordMutationHookResult = ReturnType<typeof useCreateRecordMutation>;
|
|
@@ -10153,6 +10199,43 @@ export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountVa
|
|
|
10153
10199
|
export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
|
|
10154
10200
|
export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
|
|
10155
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>;
|
|
10156
10239
|
export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
|
|
10157
10240
|
/**
|
|
10158
10241
|
* __useExplorerLibraryDataQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -307,10 +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";
|
|
313
|
-
TaskType["
|
|
314
|
+
TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
|
|
314
315
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
315
316
|
})(TaskType || (TaskType = {}));
|
|
316
317
|
export var TreeBehavior;
|
|
@@ -2336,8 +2337,8 @@ export function useCreateEmptyRecordMutation(baseOptions) {
|
|
|
2336
2337
|
return Apollo.useMutation(CreateEmptyRecordDocument, options);
|
|
2337
2338
|
}
|
|
2338
2339
|
export const CreateRecordDocument = gql `
|
|
2339
|
-
mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
|
|
2340
|
-
createRecord(library: $library, data: $data) {
|
|
2340
|
+
mutation CREATE_RECORD($library: ID!, $skipActivate: Boolean, $data: CreateRecordDataInput) {
|
|
2341
|
+
createRecord(library: $library, skipActivate: $skipActivate, data: $data) {
|
|
2341
2342
|
record {
|
|
2342
2343
|
...RecordIdentity
|
|
2343
2344
|
}
|
|
@@ -2364,6 +2365,7 @@ export const CreateRecordDocument = gql `
|
|
|
2364
2365
|
* const [createRecordMutation, { data, loading, error }] = useCreateRecordMutation({
|
|
2365
2366
|
* variables: {
|
|
2366
2367
|
* library: // value for 'library'
|
|
2368
|
+
* skipActivate: // value for 'skipActivate'
|
|
2367
2369
|
* data: // value for 'data'
|
|
2368
2370
|
* },
|
|
2369
2371
|
* });
|
|
@@ -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(
|