@leav/ui 1.7.0-e1ab594d → 1.7.0-e4c50c50
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/__mocks__/common/library.d.ts +1 -0
- package/dist/_gqlTypes/index.d.ts +117 -69
- package/dist/_gqlTypes/index.js +80 -52
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +1 -0
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/components/Filters/context/useGetTreeFilters.d.ts +8 -6
- package/dist/components/Filters/context/useGetTreeFilters.js +41 -18
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/EmptyValueCheckbox.js +1 -1
- package/dist/components/Filters/filter-items/EmptyValueCheckbox.js.map +1 -1
- package/dist/components/Filters/filter-items/SelectAllCheckbox.d.ts +8 -0
- package/dist/components/Filters/filter-items/SelectAllCheckbox.js +22 -0
- package/dist/components/Filters/filter-items/SelectAllCheckbox.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/{TreeAttributeDropDown.d.ts → tree/TreeAttributeDropDown.d.ts} +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +130 -0
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.d.ts +20 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +72 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.d.ts +7 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +36 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.d.ts +2 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js +14 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.d.ts +2 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js +15 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.d.ts +5 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js +17 -0
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +4 -4
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
- package/dist/locales/en/shared.json +4 -1
- package/dist/locales/fr/shared.json +4 -1
- package/dist/types/records.d.ts +1 -0
- package/dist/types/records.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js +0 -71
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
|
@@ -244,16 +244,6 @@ export declare enum AvailableLanguage {
|
|
|
244
244
|
en = "en",
|
|
245
245
|
fr = "fr"
|
|
246
246
|
}
|
|
247
|
-
export type CampaignToRenew = {
|
|
248
|
-
endDate: Scalars['String']['input'];
|
|
249
|
-
id: Scalars['String']['input'];
|
|
250
|
-
startDate: Scalars['String']['input'];
|
|
251
|
-
};
|
|
252
|
-
export type CampaignToUpdateDates = {
|
|
253
|
-
endDate: Scalars['String']['input'];
|
|
254
|
-
id: Scalars['String']['input'];
|
|
255
|
-
startDate: Scalars['String']['input'];
|
|
256
|
-
};
|
|
257
247
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
258
248
|
action: RecordPermissionsActions;
|
|
259
249
|
attributeId: Scalars['ID']['input'];
|
|
@@ -599,6 +589,7 @@ export declare enum PermissionsActions {
|
|
|
599
589
|
admin_edit_version_profile = "admin_edit_version_profile",
|
|
600
590
|
admin_import_config_clear_database = "admin_import_config_clear_database",
|
|
601
591
|
admin_library = "admin_library",
|
|
592
|
+
admin_list_plugins = "admin_list_plugins",
|
|
602
593
|
admin_manage_global_preferences = "admin_manage_global_preferences",
|
|
603
594
|
create_record = "create_record",
|
|
604
595
|
delete_record = "delete_record",
|
|
@@ -676,6 +667,7 @@ export declare enum RecordFilterOperator {
|
|
|
676
667
|
export type RecordIdentityConfInput = {
|
|
677
668
|
color?: InputMaybe<Scalars['ID']['input']>;
|
|
678
669
|
label?: InputMaybe<Scalars['ID']['input']>;
|
|
670
|
+
parentContext?: InputMaybe<Scalars['ID']['input']>;
|
|
679
671
|
preview?: InputMaybe<Scalars['ID']['input']>;
|
|
680
672
|
subLabel?: InputMaybe<Scalars['ID']['input']>;
|
|
681
673
|
treeColorPreview?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -1215,6 +1207,7 @@ export type LibraryDetailsFragment = {
|
|
|
1215
1207
|
color?: string | null;
|
|
1216
1208
|
preview?: string | null;
|
|
1217
1209
|
treeColorPreview?: string | null;
|
|
1210
|
+
parentContext?: string | null;
|
|
1218
1211
|
} | null;
|
|
1219
1212
|
permissions?: {
|
|
1220
1213
|
admin_library: boolean;
|
|
@@ -4393,6 +4386,7 @@ export type GetLibraryByIdQuery = {
|
|
|
4393
4386
|
color?: string | null;
|
|
4394
4387
|
preview?: string | null;
|
|
4395
4388
|
treeColorPreview?: string | null;
|
|
4389
|
+
parentContext?: string | null;
|
|
4396
4390
|
} | null;
|
|
4397
4391
|
permissions?: {
|
|
4398
4392
|
admin_library: boolean;
|
|
@@ -4531,6 +4525,7 @@ export type SaveLibraryMutation = {
|
|
|
4531
4525
|
color?: string | null;
|
|
4532
4526
|
preview?: string | null;
|
|
4533
4527
|
treeColorPreview?: string | null;
|
|
4528
|
+
parentContext?: string | null;
|
|
4534
4529
|
} | null;
|
|
4535
4530
|
permissions?: {
|
|
4536
4531
|
admin_library: boolean;
|
|
@@ -6344,6 +6339,68 @@ export type TreeNodeChildrenQuery = {
|
|
|
6344
6339
|
}>;
|
|
6345
6340
|
};
|
|
6346
6341
|
};
|
|
6342
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables = Exact<{
|
|
6343
|
+
treeId: Scalars['ID']['input'];
|
|
6344
|
+
node?: InputMaybe<Scalars['ID']['input']>;
|
|
6345
|
+
pagination?: InputMaybe<Pagination>;
|
|
6346
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
6347
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
6348
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
6349
|
+
}>;
|
|
6350
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery = {
|
|
6351
|
+
treeNodeChildren: {
|
|
6352
|
+
totalCount?: number | null;
|
|
6353
|
+
list: Array<{
|
|
6354
|
+
id: string;
|
|
6355
|
+
order?: number | null;
|
|
6356
|
+
childrenCount?: number | null;
|
|
6357
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
6358
|
+
record: {
|
|
6359
|
+
id: string;
|
|
6360
|
+
active: Array<{
|
|
6361
|
+
value?: any | null;
|
|
6362
|
+
}>;
|
|
6363
|
+
whoAmI: {
|
|
6364
|
+
id: string;
|
|
6365
|
+
label?: string | null;
|
|
6366
|
+
subLabel?: string | null;
|
|
6367
|
+
color?: string | null;
|
|
6368
|
+
preview?: IPreviewScalar | null;
|
|
6369
|
+
library: {
|
|
6370
|
+
id: string;
|
|
6371
|
+
label?: any | null;
|
|
6372
|
+
};
|
|
6373
|
+
};
|
|
6374
|
+
};
|
|
6375
|
+
ancestors?: Array<{
|
|
6376
|
+
id: string;
|
|
6377
|
+
record: {
|
|
6378
|
+
id: string;
|
|
6379
|
+
library: {
|
|
6380
|
+
id: string;
|
|
6381
|
+
label?: any | null;
|
|
6382
|
+
};
|
|
6383
|
+
whoAmI: {
|
|
6384
|
+
id: string;
|
|
6385
|
+
label?: string | null;
|
|
6386
|
+
subLabel?: string | null;
|
|
6387
|
+
color?: string | null;
|
|
6388
|
+
preview?: IPreviewScalar | null;
|
|
6389
|
+
library: {
|
|
6390
|
+
id: string;
|
|
6391
|
+
label?: any | null;
|
|
6392
|
+
};
|
|
6393
|
+
};
|
|
6394
|
+
};
|
|
6395
|
+
}> | null;
|
|
6396
|
+
permissions: {
|
|
6397
|
+
access_tree: boolean;
|
|
6398
|
+
detach: boolean;
|
|
6399
|
+
edit_children: boolean;
|
|
6400
|
+
};
|
|
6401
|
+
}>;
|
|
6402
|
+
};
|
|
6403
|
+
};
|
|
6347
6404
|
export type GetUserDataQueryVariables = Exact<{
|
|
6348
6405
|
keys: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
6349
6406
|
global?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -7367,28 +7424,6 @@ export type SaveViewMutation = {
|
|
|
7367
7424
|
}> | null;
|
|
7368
7425
|
};
|
|
7369
7426
|
};
|
|
7370
|
-
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7371
|
-
treeId: Scalars['ID']['input'];
|
|
7372
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7373
|
-
}>;
|
|
7374
|
-
export type TreeFilterByDefaultValuesQuery = {
|
|
7375
|
-
treeNodeChildren: {
|
|
7376
|
-
list: Array<{
|
|
7377
|
-
accessRecordByDefaultPermission?: boolean | null;
|
|
7378
|
-
id: string;
|
|
7379
|
-
record: {
|
|
7380
|
-
id: string;
|
|
7381
|
-
whoAmI: {
|
|
7382
|
-
id: string;
|
|
7383
|
-
label?: string | null;
|
|
7384
|
-
library: {
|
|
7385
|
-
id: string;
|
|
7386
|
-
};
|
|
7387
|
-
};
|
|
7388
|
-
};
|
|
7389
|
-
}>;
|
|
7390
|
-
};
|
|
7391
|
-
};
|
|
7392
7427
|
export type AttributeWithValuesForMassEditionQueryVariables = Exact<{
|
|
7393
7428
|
attributeId: Scalars['ID']['input'];
|
|
7394
7429
|
}>;
|
|
@@ -7997,6 +8032,7 @@ export type NotificationSubscription = {
|
|
|
7997
8032
|
message: string;
|
|
7998
8033
|
title: string;
|
|
7999
8034
|
date: number;
|
|
8035
|
+
displayDuration?: number | null;
|
|
8000
8036
|
attachments?: Array<{
|
|
8001
8037
|
label: string;
|
|
8002
8038
|
url: string;
|
|
@@ -9553,6 +9589,55 @@ export type TreeNodeChildrenQueryHookResult = ReturnType<typeof useTreeNodeChild
|
|
|
9553
9589
|
export type TreeNodeChildrenLazyQueryHookResult = ReturnType<typeof useTreeNodeChildrenLazyQuery>;
|
|
9554
9590
|
export type TreeNodeChildrenSuspenseQueryHookResult = ReturnType<typeof useTreeNodeChildrenSuspenseQuery>;
|
|
9555
9591
|
export type TreeNodeChildrenQueryResult = Apollo.QueryResult<TreeNodeChildrenQuery, TreeNodeChildrenQueryVariables>;
|
|
9592
|
+
export declare const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument: Apollo.DocumentNode;
|
|
9593
|
+
/**
|
|
9594
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
9595
|
+
*
|
|
9596
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
9597
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9598
|
+
* you can use to render your UI.
|
|
9599
|
+
*
|
|
9600
|
+
* @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;
|
|
9601
|
+
*
|
|
9602
|
+
* @example
|
|
9603
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
9604
|
+
* variables: {
|
|
9605
|
+
* treeId: // value for 'treeId'
|
|
9606
|
+
* node: // value for 'node'
|
|
9607
|
+
* pagination: // value for 'pagination'
|
|
9608
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
9609
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
9610
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9611
|
+
* },
|
|
9612
|
+
* });
|
|
9613
|
+
*/
|
|
9614
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions: Apollo.QueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables> & ({
|
|
9615
|
+
variables: GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables;
|
|
9616
|
+
skip?: boolean;
|
|
9617
|
+
} | {
|
|
9618
|
+
skip: boolean;
|
|
9619
|
+
})): Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9620
|
+
treeId: Scalars["ID"]["input"];
|
|
9621
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9622
|
+
pagination?: InputMaybe<Pagination>;
|
|
9623
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9624
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9625
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9626
|
+
}>>;
|
|
9627
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.LazyQueryResultTuple<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, Exact<{
|
|
9628
|
+
treeId: Scalars["ID"]["input"];
|
|
9629
|
+
node?: InputMaybe<Scalars["ID"]["input"]>;
|
|
9630
|
+
pagination?: InputMaybe<Pagination>;
|
|
9631
|
+
childrenAsRecordValuePermissionFilter?: InputMaybe<ChildrenAsRecordValuePermissionFilterInput>;
|
|
9632
|
+
dependentValuesPermissionFilter?: InputMaybe<DependentValuesPermissionFilterInput>;
|
|
9633
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9634
|
+
}>>;
|
|
9635
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9636
|
+
export declare function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>): Apollo.UseSuspenseQueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery | undefined, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9637
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery>;
|
|
9638
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery>;
|
|
9639
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQueryHookResult = ReturnType<typeof useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery>;
|
|
9640
|
+
export type GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryResult = Apollo.QueryResult<GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery, GetTreeNodeChildrenWithAccessByDefaultPermissionQueryQueryVariables>;
|
|
9556
9641
|
export declare const GetUserDataDocument: Apollo.DocumentNode;
|
|
9557
9642
|
/**
|
|
9558
9643
|
* __useGetUserDataQuery__
|
|
@@ -9832,43 +9917,6 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9832
9917
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9833
9918
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9834
9919
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9835
|
-
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9836
|
-
/**
|
|
9837
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
9838
|
-
*
|
|
9839
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9840
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9841
|
-
* you can use to render your UI.
|
|
9842
|
-
*
|
|
9843
|
-
* @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;
|
|
9844
|
-
*
|
|
9845
|
-
* @example
|
|
9846
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9847
|
-
* variables: {
|
|
9848
|
-
* treeId: // value for 'treeId'
|
|
9849
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9850
|
-
* },
|
|
9851
|
-
* });
|
|
9852
|
-
*/
|
|
9853
|
-
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables> & ({
|
|
9854
|
-
variables: TreeFilterByDefaultValuesQueryVariables;
|
|
9855
|
-
skip?: boolean;
|
|
9856
|
-
} | {
|
|
9857
|
-
skip: boolean;
|
|
9858
|
-
})): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9859
|
-
treeId: Scalars["ID"]["input"];
|
|
9860
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9861
|
-
}>>;
|
|
9862
|
-
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9863
|
-
treeId: Scalars["ID"]["input"];
|
|
9864
|
-
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9865
|
-
}>>;
|
|
9866
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9867
|
-
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery | undefined, TreeFilterByDefaultValuesQueryVariables>;
|
|
9868
|
-
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9869
|
-
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9870
|
-
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9871
|
-
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9872
9920
|
export declare const AttributeWithValuesForMassEditionDocument: Apollo.DocumentNode;
|
|
9873
9921
|
/**
|
|
9874
9922
|
* __useAttributeWithValuesForMassEditionQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -244,6 +244,7 @@ export var PermissionsActions;
|
|
|
244
244
|
PermissionsActions["admin_edit_version_profile"] = "admin_edit_version_profile";
|
|
245
245
|
PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
|
|
246
246
|
PermissionsActions["admin_library"] = "admin_library";
|
|
247
|
+
PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
|
|
247
248
|
PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
|
|
248
249
|
PermissionsActions["create_record"] = "create_record";
|
|
249
250
|
PermissionsActions["delete_record"] = "delete_record";
|
|
@@ -590,6 +591,7 @@ export const LibraryDetailsFragmentDoc = gql `
|
|
|
590
591
|
color
|
|
591
592
|
preview
|
|
592
593
|
treeColorPreview
|
|
594
|
+
parentContext
|
|
593
595
|
}
|
|
594
596
|
permissions {
|
|
595
597
|
admin_library
|
|
@@ -3021,6 +3023,83 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
|
|
|
3021
3023
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3022
3024
|
return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
|
|
3023
3025
|
}
|
|
3026
|
+
export const GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument = gql `
|
|
3027
|
+
query GetTreeNodeChildrenWithAccessByDefaultPermissionQuery($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput, $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3028
|
+
treeNodeChildren(
|
|
3029
|
+
treeId: $treeId
|
|
3030
|
+
node: $node
|
|
3031
|
+
pagination: $pagination
|
|
3032
|
+
childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
|
|
3033
|
+
dependentValuesPermissionFilter: $dependentValuesPermissionFilter
|
|
3034
|
+
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3035
|
+
) {
|
|
3036
|
+
totalCount
|
|
3037
|
+
list {
|
|
3038
|
+
id
|
|
3039
|
+
order
|
|
3040
|
+
childrenCount
|
|
3041
|
+
record {
|
|
3042
|
+
...RecordIdentity
|
|
3043
|
+
active: property(attribute: "active") {
|
|
3044
|
+
... on Value {
|
|
3045
|
+
value
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
ancestors {
|
|
3050
|
+
id
|
|
3051
|
+
record {
|
|
3052
|
+
id
|
|
3053
|
+
library {
|
|
3054
|
+
id
|
|
3055
|
+
label
|
|
3056
|
+
}
|
|
3057
|
+
...RecordIdentity
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
permissions {
|
|
3061
|
+
access_tree
|
|
3062
|
+
detach
|
|
3063
|
+
edit_children
|
|
3064
|
+
}
|
|
3065
|
+
accessRecordByDefaultPermission
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
${RecordIdentityFragmentDoc}`;
|
|
3070
|
+
/**
|
|
3071
|
+
* __useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery__
|
|
3072
|
+
*
|
|
3073
|
+
* To run a query within a React component, call `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` and pass it any options that fit your needs.
|
|
3074
|
+
* When your component renders, `useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3075
|
+
* you can use to render your UI.
|
|
3076
|
+
*
|
|
3077
|
+
* @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;
|
|
3078
|
+
*
|
|
3079
|
+
* @example
|
|
3080
|
+
* const { data, loading, error } = useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery({
|
|
3081
|
+
* variables: {
|
|
3082
|
+
* treeId: // value for 'treeId'
|
|
3083
|
+
* node: // value for 'node'
|
|
3084
|
+
* pagination: // value for 'pagination'
|
|
3085
|
+
* childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
|
|
3086
|
+
* dependentValuesPermissionFilter: // value for 'dependentValuesPermissionFilter'
|
|
3087
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3088
|
+
* },
|
|
3089
|
+
* });
|
|
3090
|
+
*/
|
|
3091
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryQuery(baseOptions) {
|
|
3092
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3093
|
+
return Apollo.useQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3094
|
+
}
|
|
3095
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQueryLazyQuery(baseOptions) {
|
|
3096
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3097
|
+
return Apollo.useLazyQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3098
|
+
}
|
|
3099
|
+
export function useGetTreeNodeChildrenWithAccessByDefaultPermissionQuerySuspenseQuery(baseOptions) {
|
|
3100
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3101
|
+
return Apollo.useSuspenseQuery(GetTreeNodeChildrenWithAccessByDefaultPermissionQueryDocument, options);
|
|
3102
|
+
}
|
|
3024
3103
|
export const GetUserDataDocument = gql `
|
|
3025
3104
|
query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
|
|
3026
3105
|
userData(keys: $keys, global: $global) {
|
|
@@ -3335,58 +3414,6 @@ export function useSaveViewMutation(baseOptions) {
|
|
|
3335
3414
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3336
3415
|
return Apollo.useMutation(SaveViewDocument, options);
|
|
3337
3416
|
}
|
|
3338
|
-
export const TreeFilterByDefaultValuesDocument = gql `
|
|
3339
|
-
query TreeFilterByDefaultValues($treeId: ID!, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3340
|
-
treeNodeChildren(
|
|
3341
|
-
treeId: $treeId
|
|
3342
|
-
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3343
|
-
) {
|
|
3344
|
-
list {
|
|
3345
|
-
accessRecordByDefaultPermission
|
|
3346
|
-
id
|
|
3347
|
-
record {
|
|
3348
|
-
id
|
|
3349
|
-
whoAmI {
|
|
3350
|
-
label
|
|
3351
|
-
id
|
|
3352
|
-
library {
|
|
3353
|
-
id
|
|
3354
|
-
}
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
`;
|
|
3361
|
-
/**
|
|
3362
|
-
* __useTreeFilterByDefaultValuesQuery__
|
|
3363
|
-
*
|
|
3364
|
-
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
3365
|
-
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3366
|
-
* you can use to render your UI.
|
|
3367
|
-
*
|
|
3368
|
-
* @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;
|
|
3369
|
-
*
|
|
3370
|
-
* @example
|
|
3371
|
-
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
3372
|
-
* variables: {
|
|
3373
|
-
* treeId: // value for 'treeId'
|
|
3374
|
-
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3375
|
-
* },
|
|
3376
|
-
* });
|
|
3377
|
-
*/
|
|
3378
|
-
export function useTreeFilterByDefaultValuesQuery(baseOptions) {
|
|
3379
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3380
|
-
return Apollo.useQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3381
|
-
}
|
|
3382
|
-
export function useTreeFilterByDefaultValuesLazyQuery(baseOptions) {
|
|
3383
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3384
|
-
return Apollo.useLazyQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3385
|
-
}
|
|
3386
|
-
export function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions) {
|
|
3387
|
-
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
3388
|
-
return Apollo.useSuspenseQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3389
|
-
}
|
|
3390
3417
|
export const AttributeWithValuesForMassEditionDocument = gql `
|
|
3391
3418
|
query AttributeWithValuesForMassEdition($attributeId: ID!) {
|
|
3392
3419
|
attributes(filters: {id: $attributeId}) {
|
|
@@ -3966,6 +3993,7 @@ export const NotificationDocument = gql `
|
|
|
3966
3993
|
message
|
|
3967
3994
|
title
|
|
3968
3995
|
date
|
|
3996
|
+
displayDuration
|
|
3969
3997
|
attachments {
|
|
3970
3998
|
label
|
|
3971
3999
|
url
|