@leav/ui 1.5.0 → 1.5.1-1929c505
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 +9 -0
- package/dist/_gqlTypes/index.d.ts +107 -26
- package/dist/_gqlTypes/index.js +64 -12
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +7 -0
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/components/Explorer/DataView.js +4 -3
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.js +2 -1
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +1 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +2 -2
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +1 -0
- package/dist/components/Explorer/ExplorerToolbar.js +2 -2
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.js +2 -2
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useExportMassAction.js +5 -6
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +0 -2
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Filters/_types.d.ts +4 -0
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +20 -10
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/context/useFiltersReducer.d.ts +2 -1
- package/dist/components/Filters/context/useFiltersReducer.js +9 -5
- package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
- package/dist/components/Filters/context/useGetTreeFilters.d.ts +15 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +63 -0
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +24 -7
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js +6 -6
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/index.js.map +1 -1
- package/dist/components/Filters/prepareFiltersForRequest.js +14 -5
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +4 -0
- package/dist/components/Filters/useTransformFilters.d.ts +5 -1
- package/dist/components/Filters/useTransformFilters.js +26 -3
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.js +11 -6
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +13 -7
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +12 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +1 -0
- package/dist/hooks/useIFrameMessenger/schema.js +1 -0
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +19 -2
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -0
- package/dist/locales/en/shared.json +2 -2
- package/dist/locales/fr/shared.json +2 -2
- package/package.json +6 -7
|
@@ -63,6 +63,15 @@ export declare const mockLibraryWithPreviewsSettings: {
|
|
|
63
63
|
system: boolean;
|
|
64
64
|
type: AttributeType;
|
|
65
65
|
format?: AttributeFormat | null;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
label?: any | null;
|
|
69
|
+
system: boolean;
|
|
70
|
+
type: AttributeType;
|
|
71
|
+
format?: AttributeFormat | null;
|
|
72
|
+
linked_tree?: {
|
|
73
|
+
id: string;
|
|
74
|
+
} | null;
|
|
66
75
|
}> | null;
|
|
67
76
|
permissions_conf?: {
|
|
68
77
|
relation: import("../../_gqlTypes").PermissionsRelation;
|
|
@@ -31,6 +31,10 @@ export type Scalars = {
|
|
|
31
31
|
TaskPriority: any;
|
|
32
32
|
Upload: any;
|
|
33
33
|
};
|
|
34
|
+
export type AccessRecordByDefaultPermissionInput = {
|
|
35
|
+
attributeId: Scalars['ID'];
|
|
36
|
+
libraryId: Scalars['ID'];
|
|
37
|
+
};
|
|
34
38
|
export type ActionConfigurationInput = {
|
|
35
39
|
error_message?: InputMaybe<Scalars['SystemTranslationOptional']>;
|
|
36
40
|
id: Scalars['ID'];
|
|
@@ -184,20 +188,6 @@ export declare enum AvailableLanguage {
|
|
|
184
188
|
en = "en",
|
|
185
189
|
fr = "fr"
|
|
186
190
|
}
|
|
187
|
-
export type CampaignToRenew = {
|
|
188
|
-
category?: InputMaybe<Scalars['String']>;
|
|
189
|
-
endDate: Scalars['String'];
|
|
190
|
-
id: Scalars['String'];
|
|
191
|
-
label: Scalars['String'];
|
|
192
|
-
startDate: Scalars['String'];
|
|
193
|
-
thematics?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
194
|
-
type?: InputMaybe<Scalars['String']>;
|
|
195
|
-
};
|
|
196
|
-
export type CampaignToUpdateDates = {
|
|
197
|
-
endDate: Scalars['String'];
|
|
198
|
-
id: Scalars['String'];
|
|
199
|
-
startDate: Scalars['String'];
|
|
200
|
-
};
|
|
201
191
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
202
192
|
action: RecordPermissionsActions;
|
|
203
193
|
attributeId: Scalars['ID'];
|
|
@@ -279,16 +269,6 @@ export declare enum FormsSortableFields {
|
|
|
279
269
|
library = "library",
|
|
280
270
|
system = "system"
|
|
281
271
|
}
|
|
282
|
-
export declare enum GenerationStatus {
|
|
283
|
-
DONE = "DONE",
|
|
284
|
-
GENERATION_FAILED = "GENERATION_FAILED",
|
|
285
|
-
GENERATION_IN_PROGRESS = "GENERATION_IN_PROGRESS",
|
|
286
|
-
GENERATION_IN_PROGRESS_WITH_FAILURE = "GENERATION_IN_PROGRESS_WITH_FAILURE",
|
|
287
|
-
PREPARATION_FAILED = "PREPARATION_FAILED",
|
|
288
|
-
PREPARATION_IN_PROGRESS = "PREPARATION_IN_PROGRESS",
|
|
289
|
-
TRANSMISSION_FAILED = "TRANSMISSION_FAILED",
|
|
290
|
-
TRANSMISSION_IN_PROGRESS = "TRANSMISSION_IN_PROGRESS"
|
|
291
|
-
}
|
|
292
272
|
export type GlobalSettingsFileInput = {
|
|
293
273
|
library: Scalars['String'];
|
|
294
274
|
recordId: Scalars['String'];
|
|
@@ -436,7 +416,9 @@ export declare enum MultiDisplayOption {
|
|
|
436
416
|
tag = "tag"
|
|
437
417
|
}
|
|
438
418
|
export declare enum NotificationLevel {
|
|
419
|
+
error = "error",
|
|
439
420
|
info = "info",
|
|
421
|
+
success = "success",
|
|
440
422
|
warning = "warning"
|
|
441
423
|
}
|
|
442
424
|
export type Pagination = {
|
|
@@ -1079,6 +1061,15 @@ export type LibraryDetailsFragment = {
|
|
|
1079
1061
|
system: boolean;
|
|
1080
1062
|
type: AttributeType;
|
|
1081
1063
|
format?: AttributeFormat | null;
|
|
1064
|
+
} | {
|
|
1065
|
+
id: string;
|
|
1066
|
+
label?: any | null;
|
|
1067
|
+
system: boolean;
|
|
1068
|
+
type: AttributeType;
|
|
1069
|
+
format?: AttributeFormat | null;
|
|
1070
|
+
linked_tree?: {
|
|
1071
|
+
id: string;
|
|
1072
|
+
} | null;
|
|
1082
1073
|
}> | null;
|
|
1083
1074
|
permissions_conf?: {
|
|
1084
1075
|
relation: PermissionsRelation;
|
|
@@ -1147,20 +1138,35 @@ export type LibraryAttributesLinkAttributeFragment = {
|
|
|
1147
1138
|
behavior: LibraryBehavior;
|
|
1148
1139
|
} | null;
|
|
1149
1140
|
};
|
|
1150
|
-
export type
|
|
1141
|
+
export type LibraryAttributesStandardAttributeFragment = {
|
|
1142
|
+
id: string;
|
|
1143
|
+
label?: any | null;
|
|
1144
|
+
system: boolean;
|
|
1145
|
+
type: AttributeType;
|
|
1146
|
+
format?: AttributeFormat | null;
|
|
1147
|
+
};
|
|
1148
|
+
export type LibraryAttributesTreeAttributeFragment = {
|
|
1151
1149
|
id: string;
|
|
1152
1150
|
label?: any | null;
|
|
1153
1151
|
system: boolean;
|
|
1154
1152
|
type: AttributeType;
|
|
1155
1153
|
format?: AttributeFormat | null;
|
|
1154
|
+
linked_tree?: {
|
|
1155
|
+
id: string;
|
|
1156
|
+
} | null;
|
|
1156
1157
|
};
|
|
1157
|
-
export type LibraryAttributesFragment = LibraryAttributesLinkAttributeFragment |
|
|
1158
|
+
export type LibraryAttributesFragment = LibraryAttributesLinkAttributeFragment | LibraryAttributesStandardAttributeFragment | LibraryAttributesTreeAttributeFragment;
|
|
1158
1159
|
export type LibraryLinkAttributeDetailsFragment = {
|
|
1159
1160
|
linked_library?: {
|
|
1160
1161
|
id: string;
|
|
1161
1162
|
behavior: LibraryBehavior;
|
|
1162
1163
|
} | null;
|
|
1163
1164
|
};
|
|
1165
|
+
export type LibraryTreeAttributeDetailsFragment = {
|
|
1166
|
+
linked_tree?: {
|
|
1167
|
+
id: string;
|
|
1168
|
+
} | null;
|
|
1169
|
+
};
|
|
1164
1170
|
export type LibraryPreviewsSettingsFragment = {
|
|
1165
1171
|
label: any;
|
|
1166
1172
|
description?: any | null;
|
|
@@ -4166,6 +4172,15 @@ export type GetLibraryByIdQuery = {
|
|
|
4166
4172
|
system: boolean;
|
|
4167
4173
|
type: AttributeType;
|
|
4168
4174
|
format?: AttributeFormat | null;
|
|
4175
|
+
} | {
|
|
4176
|
+
id: string;
|
|
4177
|
+
label?: any | null;
|
|
4178
|
+
system: boolean;
|
|
4179
|
+
type: AttributeType;
|
|
4180
|
+
format?: AttributeFormat | null;
|
|
4181
|
+
linked_tree?: {
|
|
4182
|
+
id: string;
|
|
4183
|
+
} | null;
|
|
4169
4184
|
}> | null;
|
|
4170
4185
|
permissions_conf?: {
|
|
4171
4186
|
relation: PermissionsRelation;
|
|
@@ -4295,6 +4310,15 @@ export type SaveLibraryMutation = {
|
|
|
4295
4310
|
system: boolean;
|
|
4296
4311
|
type: AttributeType;
|
|
4297
4312
|
format?: AttributeFormat | null;
|
|
4313
|
+
} | {
|
|
4314
|
+
id: string;
|
|
4315
|
+
label?: any | null;
|
|
4316
|
+
system: boolean;
|
|
4317
|
+
type: AttributeType;
|
|
4318
|
+
format?: AttributeFormat | null;
|
|
4319
|
+
linked_tree?: {
|
|
4320
|
+
id: string;
|
|
4321
|
+
} | null;
|
|
4298
4322
|
}> | null;
|
|
4299
4323
|
permissions_conf?: {
|
|
4300
4324
|
relation: PermissionsRelation;
|
|
@@ -7138,6 +7162,28 @@ export type SaveViewMutation = {
|
|
|
7138
7162
|
}> | null;
|
|
7139
7163
|
};
|
|
7140
7164
|
};
|
|
7165
|
+
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7166
|
+
treeId: Scalars['ID'];
|
|
7167
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7168
|
+
}>;
|
|
7169
|
+
export type TreeFilterByDefaultValuesQuery = {
|
|
7170
|
+
treeNodeChildren: {
|
|
7171
|
+
list: Array<{
|
|
7172
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
7173
|
+
id: string;
|
|
7174
|
+
record: {
|
|
7175
|
+
id: string;
|
|
7176
|
+
whoAmI: {
|
|
7177
|
+
label?: string | null;
|
|
7178
|
+
id: string;
|
|
7179
|
+
library: {
|
|
7180
|
+
id: string;
|
|
7181
|
+
};
|
|
7182
|
+
};
|
|
7183
|
+
};
|
|
7184
|
+
}>;
|
|
7185
|
+
};
|
|
7186
|
+
};
|
|
7141
7187
|
export type GetAttributesByLibWithPermissionsQueryVariables = Exact<{
|
|
7142
7188
|
library: Scalars['String'];
|
|
7143
7189
|
}>;
|
|
@@ -7745,6 +7791,7 @@ export declare const AttributesByLibLinkAttributeFragmentDoc: Apollo.DocumentNod
|
|
|
7745
7791
|
export declare const AttributesByLibAttributeFragmentDoc: Apollo.DocumentNode;
|
|
7746
7792
|
export declare const LibraryLightFragmentDoc: Apollo.DocumentNode;
|
|
7747
7793
|
export declare const LibraryLinkAttributeDetailsFragmentDoc: Apollo.DocumentNode;
|
|
7794
|
+
export declare const LibraryTreeAttributeDetailsFragmentDoc: Apollo.DocumentNode;
|
|
7748
7795
|
export declare const LibraryAttributesFragmentDoc: Apollo.DocumentNode;
|
|
7749
7796
|
export declare const LibraryPreviewsSettingsFragmentDoc: Apollo.DocumentNode;
|
|
7750
7797
|
export declare const LibraryDetailsFragmentDoc: Apollo.DocumentNode;
|
|
@@ -9434,6 +9481,40 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9434
9481
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9435
9482
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9436
9483
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9484
|
+
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9485
|
+
/**
|
|
9486
|
+
* __useTreeFilterByDefaultValuesQuery__
|
|
9487
|
+
*
|
|
9488
|
+
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9489
|
+
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9490
|
+
* you can use to render your UI.
|
|
9491
|
+
*
|
|
9492
|
+
* @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;
|
|
9493
|
+
*
|
|
9494
|
+
* @example
|
|
9495
|
+
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9496
|
+
* variables: {
|
|
9497
|
+
* treeId: // value for 'treeId'
|
|
9498
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9499
|
+
* },
|
|
9500
|
+
* });
|
|
9501
|
+
*/
|
|
9502
|
+
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9503
|
+
treeId: Scalars["ID"];
|
|
9504
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9505
|
+
}>>;
|
|
9506
|
+
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9507
|
+
treeId: Scalars["ID"];
|
|
9508
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9509
|
+
}>>;
|
|
9510
|
+
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9511
|
+
treeId: Scalars["ID"];
|
|
9512
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9513
|
+
}>>;
|
|
9514
|
+
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9515
|
+
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9516
|
+
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9517
|
+
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9437
9518
|
export declare const GetAttributesByLibWithPermissionsDocument: Apollo.DocumentNode;
|
|
9438
9519
|
/**
|
|
9439
9520
|
* __useGetAttributesByLibWithPermissionsQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -88,17 +88,6 @@ export var FormsSortableFields;
|
|
|
88
88
|
FormsSortableFields["library"] = "library";
|
|
89
89
|
FormsSortableFields["system"] = "system";
|
|
90
90
|
})(FormsSortableFields || (FormsSortableFields = {}));
|
|
91
|
-
export var GenerationStatus;
|
|
92
|
-
(function (GenerationStatus) {
|
|
93
|
-
GenerationStatus["DONE"] = "DONE";
|
|
94
|
-
GenerationStatus["GENERATION_FAILED"] = "GENERATION_FAILED";
|
|
95
|
-
GenerationStatus["GENERATION_IN_PROGRESS"] = "GENERATION_IN_PROGRESS";
|
|
96
|
-
GenerationStatus["GENERATION_IN_PROGRESS_WITH_FAILURE"] = "GENERATION_IN_PROGRESS_WITH_FAILURE";
|
|
97
|
-
GenerationStatus["PREPARATION_FAILED"] = "PREPARATION_FAILED";
|
|
98
|
-
GenerationStatus["PREPARATION_IN_PROGRESS"] = "PREPARATION_IN_PROGRESS";
|
|
99
|
-
GenerationStatus["TRANSMISSION_FAILED"] = "TRANSMISSION_FAILED";
|
|
100
|
-
GenerationStatus["TRANSMISSION_IN_PROGRESS"] = "TRANSMISSION_IN_PROGRESS";
|
|
101
|
-
})(GenerationStatus || (GenerationStatus = {}));
|
|
102
91
|
export var IoTypes;
|
|
103
92
|
(function (IoTypes) {
|
|
104
93
|
IoTypes["boolean"] = "boolean";
|
|
@@ -180,7 +169,9 @@ export var MultiDisplayOption;
|
|
|
180
169
|
})(MultiDisplayOption || (MultiDisplayOption = {}));
|
|
181
170
|
export var NotificationLevel;
|
|
182
171
|
(function (NotificationLevel) {
|
|
172
|
+
NotificationLevel["error"] = "error";
|
|
183
173
|
NotificationLevel["info"] = "info";
|
|
174
|
+
NotificationLevel["success"] = "success";
|
|
184
175
|
NotificationLevel["warning"] = "warning";
|
|
185
176
|
})(NotificationLevel || (NotificationLevel = {}));
|
|
186
177
|
export var PermissionTypes;
|
|
@@ -509,6 +500,13 @@ export const LibraryLinkAttributeDetailsFragmentDoc = gql `
|
|
|
509
500
|
}
|
|
510
501
|
}
|
|
511
502
|
`;
|
|
503
|
+
export const LibraryTreeAttributeDetailsFragmentDoc = gql `
|
|
504
|
+
fragment LibraryTreeAttributeDetails on TreeAttribute {
|
|
505
|
+
linked_tree {
|
|
506
|
+
id
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
`;
|
|
512
510
|
export const LibraryAttributesFragmentDoc = gql `
|
|
513
511
|
fragment LibraryAttributes on Attribute {
|
|
514
512
|
id
|
|
@@ -517,8 +515,10 @@ export const LibraryAttributesFragmentDoc = gql `
|
|
|
517
515
|
type
|
|
518
516
|
format
|
|
519
517
|
...LibraryLinkAttributeDetails
|
|
518
|
+
...LibraryTreeAttributeDetails
|
|
520
519
|
}
|
|
521
|
-
${LibraryLinkAttributeDetailsFragmentDoc}
|
|
520
|
+
${LibraryLinkAttributeDetailsFragmentDoc}
|
|
521
|
+
${LibraryTreeAttributeDetailsFragmentDoc}`;
|
|
522
522
|
export const LibraryPreviewsSettingsFragmentDoc = gql `
|
|
523
523
|
fragment LibraryPreviewsSettings on LibraryPreviewsSettings {
|
|
524
524
|
label
|
|
@@ -3241,6 +3241,58 @@ export function useSaveViewMutation(baseOptions) {
|
|
|
3241
3241
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3242
3242
|
return Apollo.useMutation(SaveViewDocument, options);
|
|
3243
3243
|
}
|
|
3244
|
+
export const TreeFilterByDefaultValuesDocument = gql `
|
|
3245
|
+
query TreeFilterByDefaultValues($treeId: ID!, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
|
|
3246
|
+
treeNodeChildren(
|
|
3247
|
+
treeId: $treeId
|
|
3248
|
+
accessRecordByDefaultPermission: $accessRecordByDefaultPermission
|
|
3249
|
+
) {
|
|
3250
|
+
list {
|
|
3251
|
+
accessRecordByDefaultPermission
|
|
3252
|
+
id
|
|
3253
|
+
record {
|
|
3254
|
+
id
|
|
3255
|
+
whoAmI {
|
|
3256
|
+
label
|
|
3257
|
+
id
|
|
3258
|
+
library {
|
|
3259
|
+
id
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
`;
|
|
3267
|
+
/**
|
|
3268
|
+
* __useTreeFilterByDefaultValuesQuery__
|
|
3269
|
+
*
|
|
3270
|
+
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
3271
|
+
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3272
|
+
* you can use to render your UI.
|
|
3273
|
+
*
|
|
3274
|
+
* @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;
|
|
3275
|
+
*
|
|
3276
|
+
* @example
|
|
3277
|
+
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
3278
|
+
* variables: {
|
|
3279
|
+
* treeId: // value for 'treeId'
|
|
3280
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
3281
|
+
* },
|
|
3282
|
+
* });
|
|
3283
|
+
*/
|
|
3284
|
+
export function useTreeFilterByDefaultValuesQuery(baseOptions) {
|
|
3285
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3286
|
+
return Apollo.useQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3287
|
+
}
|
|
3288
|
+
export function useTreeFilterByDefaultValuesLazyQuery(baseOptions) {
|
|
3289
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3290
|
+
return Apollo.useLazyQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3291
|
+
}
|
|
3292
|
+
export function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions) {
|
|
3293
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3294
|
+
return Apollo.useSuspenseQuery(TreeFilterByDefaultValuesDocument, options);
|
|
3295
|
+
}
|
|
3244
3296
|
export const GetAttributesByLibWithPermissionsDocument = gql `
|
|
3245
3297
|
query getAttributesByLibWithPermissions($library: String!) {
|
|
3246
3298
|
attributes(filters: {libraries: [$library]}) {
|