@leav/ui 1.13.0-2d58210a → 1.13.0-679fc681

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 (77) hide show
  1. package/dist/_gqlTypes/index.d.ts +115 -39
  2. package/dist/_gqlTypes/index.js +97 -30
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/components/Explorer/Explorer.d.ts +5 -1
  5. package/dist/components/Explorer/Explorer.js +7 -0
  6. package/dist/components/Explorer/Explorer.js.map +1 -1
  7. package/dist/components/Explorer/_types.d.ts +6 -0
  8. package/dist/components/Explorer/_types.js.map +1 -1
  9. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.d.ts +8 -0
  10. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js +34 -0
  11. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js.map +1 -0
  12. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +3 -1
  13. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +12 -14
  14. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  15. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +15 -3
  16. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -1
  17. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.d.ts +13 -0
  18. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js +47 -0
  19. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js.map +1 -0
  20. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.d.ts +13 -0
  21. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js +73 -0
  22. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js.map +1 -0
  23. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +14 -17
  24. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -1
  25. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.d.ts +23 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js +68 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js.map +1 -0
  28. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +16 -50
  29. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  30. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +4 -4
  31. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  32. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +7 -31
  33. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +9 -20
  34. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  35. package/dist/components/Explorer/useNotifyFiltersChange.d.ts +15 -0
  36. package/dist/components/Explorer/useNotifyFiltersChange.js +26 -0
  37. package/dist/components/Explorer/useNotifyFiltersChange.js.map +1 -0
  38. package/dist/components/Filters/context/filtersReducer.d.ts +9 -1
  39. package/dist/components/Filters/context/filtersReducer.js +9 -5
  40. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  41. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +14 -1
  42. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  43. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +1 -1
  44. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -1
  45. package/dist/hooks/index.d.ts +1 -0
  46. package/dist/hooks/index.js +1 -0
  47. package/dist/hooks/index.js.map +1 -1
  48. package/dist/hooks/useDelayedLoading/index.d.ts +1 -0
  49. package/dist/hooks/useDelayedLoading/index.js +5 -0
  50. package/dist/hooks/useDelayedLoading/index.js.map +1 -0
  51. package/dist/hooks/useDelayedLoading/useDelayedLoading.d.ts +17 -0
  52. package/dist/hooks/useDelayedLoading/useDelayedLoading.js +54 -0
  53. package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -0
  54. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
  55. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
  56. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  57. package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
  58. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  59. package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
  60. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  61. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
  62. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -7
  63. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
  64. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
  65. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +22 -0
  66. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
  67. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  68. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  69. package/dist/locales/en/shared.json +1 -0
  70. package/dist/locales/fr/shared.json +1 -0
  71. package/package.json +4 -9
  72. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +0 -12
  73. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +0 -24
  74. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +0 -1
  75. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +0 -13
  76. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +0 -28
  77. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +0 -1
@@ -8170,25 +8170,20 @@ export type MassEditableAttributesQuery = {
8170
8170
  } | {
8171
8171
  id: string;
8172
8172
  label?: any | null;
8173
- tree_values?: Array<{
8174
- node?: {
8175
- id: string;
8176
- record: {
8177
- id: string;
8178
- whoAmI: {
8179
- label?: string | null;
8180
- color?: string | null;
8181
- };
8182
- };
8183
- } | null;
8184
- allowedDependentValues?: Array<{
8185
- nodeId?: string | null;
8186
- }> | null;
8187
- }> | null;
8188
8173
  permissions_conf_dependent_values?: {
8189
8174
  dependenciesTreeAttributes: Array<{
8190
8175
  id: string;
8191
8176
  label?: any | null;
8177
+ } | {
8178
+ id: string;
8179
+ label?: any | null;
8180
+ linked_tree?: {
8181
+ libraries: Array<{
8182
+ library: {
8183
+ id: string;
8184
+ };
8185
+ }>;
8186
+ } | null;
8192
8187
  }>;
8193
8188
  } | null;
8194
8189
  }>;
@@ -8219,6 +8214,41 @@ export type MeQuery = {
8219
8214
  };
8220
8215
  } | null;
8221
8216
  };
8217
+ export type TreeAttributeRemappingQueryVariables = Exact<{
8218
+ libraryId: Scalars['ID']['input'];
8219
+ attributeId: Scalars['ID']['input'];
8220
+ recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
8221
+ attributeDependentValue?: InputMaybe<AttributeDependentValueInput>;
8222
+ }>;
8223
+ export type TreeAttributeRemappingQuery = {
8224
+ listDistinctValues?: Array<{
8225
+ count: number;
8226
+ } | {
8227
+ count: number;
8228
+ treeNode?: {
8229
+ id: string;
8230
+ } | null;
8231
+ }> | null;
8232
+ attributes?: {
8233
+ list: Array<{
8234
+ tree_values?: Array<{
8235
+ node?: {
8236
+ id: string;
8237
+ record: {
8238
+ id: string;
8239
+ whoAmI: {
8240
+ label?: string | null;
8241
+ color?: string | null;
8242
+ };
8243
+ };
8244
+ } | null;
8245
+ allowedDependentValues?: Array<{
8246
+ nodeId?: string | null;
8247
+ }> | null;
8248
+ }> | null;
8249
+ }>;
8250
+ } | null;
8251
+ };
8222
8252
  export type UpdateViewMutationVariables = Exact<{
8223
8253
  view: ViewInputPartial;
8224
8254
  }>;
@@ -8283,18 +8313,21 @@ export type UpdateViewMutation = {
8283
8313
  }> | null;
8284
8314
  };
8285
8315
  };
8286
- export type ValuesOccurrencesQueryVariables = Exact<{
8316
+ export type ValuesOccurrencesForDependencyQueryVariables = Exact<{
8287
8317
  libraryId: Scalars['ID']['input'];
8288
- attributeId: Scalars['ID']['input'];
8318
+ dependencyAttributeId: Scalars['ID']['input'];
8289
8319
  recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
8290
8320
  }>;
8291
- export type ValuesOccurrencesQuery = {
8321
+ export type ValuesOccurrencesForDependencyQuery = {
8292
8322
  listDistinctValues?: Array<{
8293
- count: number;
8294
- } | {
8295
- count: number;
8296
8323
  treeNode?: {
8297
8324
  id: string;
8325
+ record: {
8326
+ id: string;
8327
+ whoAmI: {
8328
+ label?: string | null;
8329
+ };
8330
+ };
8298
8331
  } | null;
8299
8332
  }> | null;
8300
8333
  };
@@ -10749,6 +10782,49 @@ export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
10749
10782
  export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
10750
10783
  export type MeSuspenseQueryHookResult = ReturnType<typeof useMeSuspenseQuery>;
10751
10784
  export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
10785
+ export declare const TreeAttributeRemappingDocument: Apollo.DocumentNode;
10786
+ /**
10787
+ * __useTreeAttributeRemappingQuery__
10788
+ *
10789
+ * To run a query within a React component, call `useTreeAttributeRemappingQuery` and pass it any options that fit your needs.
10790
+ * When your component renders, `useTreeAttributeRemappingQuery` returns an object from Apollo Client that contains loading, error, and data properties
10791
+ * you can use to render your UI.
10792
+ *
10793
+ * @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;
10794
+ *
10795
+ * @example
10796
+ * const { data, loading, error } = useTreeAttributeRemappingQuery({
10797
+ * variables: {
10798
+ * libraryId: // value for 'libraryId'
10799
+ * attributeId: // value for 'attributeId'
10800
+ * recordFilters: // value for 'recordFilters'
10801
+ * attributeDependentValue: // value for 'attributeDependentValue'
10802
+ * },
10803
+ * });
10804
+ */
10805
+ export declare function useTreeAttributeRemappingQuery(baseOptions: Apollo.QueryHookOptions<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables> & ({
10806
+ variables: TreeAttributeRemappingQueryVariables;
10807
+ skip?: boolean;
10808
+ } | {
10809
+ skip: boolean;
10810
+ })): Apollo.InteropQueryResult<TreeAttributeRemappingQuery, Exact<{
10811
+ libraryId: Scalars["ID"]["input"];
10812
+ attributeId: Scalars["ID"]["input"];
10813
+ recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
10814
+ attributeDependentValue?: InputMaybe<AttributeDependentValueInput>;
10815
+ }>>;
10816
+ export declare function useTreeAttributeRemappingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables>): Apollo.LazyQueryResultTuple<TreeAttributeRemappingQuery, Exact<{
10817
+ libraryId: Scalars["ID"]["input"];
10818
+ attributeId: Scalars["ID"]["input"];
10819
+ recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
10820
+ attributeDependentValue?: InputMaybe<AttributeDependentValueInput>;
10821
+ }>>;
10822
+ export declare function useTreeAttributeRemappingSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables>): Apollo.UseSuspenseQueryResult<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables>;
10823
+ export declare function useTreeAttributeRemappingSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables>): Apollo.UseSuspenseQueryResult<TreeAttributeRemappingQuery | undefined, TreeAttributeRemappingQueryVariables>;
10824
+ export type TreeAttributeRemappingQueryHookResult = ReturnType<typeof useTreeAttributeRemappingQuery>;
10825
+ export type TreeAttributeRemappingLazyQueryHookResult = ReturnType<typeof useTreeAttributeRemappingLazyQuery>;
10826
+ export type TreeAttributeRemappingSuspenseQueryHookResult = ReturnType<typeof useTreeAttributeRemappingSuspenseQuery>;
10827
+ export type TreeAttributeRemappingQueryResult = Apollo.QueryResult<TreeAttributeRemappingQuery, TreeAttributeRemappingQueryVariables>;
10752
10828
  export declare const UpdateViewDocument: Apollo.DocumentNode;
10753
10829
  export type UpdateViewMutationFn = Apollo.MutationFunction<UpdateViewMutation, UpdateViewMutationVariables>;
10754
10830
  /**
@@ -10774,46 +10850,46 @@ export declare function useUpdateViewMutation(baseOptions?: Apollo.MutationHookO
10774
10850
  export type UpdateViewMutationHookResult = ReturnType<typeof useUpdateViewMutation>;
10775
10851
  export type UpdateViewMutationResult = Apollo.MutationResult<UpdateViewMutation>;
10776
10852
  export type UpdateViewMutationOptions = Apollo.BaseMutationOptions<UpdateViewMutation, UpdateViewMutationVariables>;
10777
- export declare const ValuesOccurrencesDocument: Apollo.DocumentNode;
10853
+ export declare const ValuesOccurrencesForDependencyDocument: Apollo.DocumentNode;
10778
10854
  /**
10779
- * __useValuesOccurrencesQuery__
10855
+ * __useValuesOccurrencesForDependencyQuery__
10780
10856
  *
10781
- * To run a query within a React component, call `useValuesOccurrencesQuery` and pass it any options that fit your needs.
10782
- * When your component renders, `useValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
10857
+ * To run a query within a React component, call `useValuesOccurrencesForDependencyQuery` and pass it any options that fit your needs.
10858
+ * When your component renders, `useValuesOccurrencesForDependencyQuery` returns an object from Apollo Client that contains loading, error, and data properties
10783
10859
  * you can use to render your UI.
10784
10860
  *
10785
10861
  * @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;
10786
10862
  *
10787
10863
  * @example
10788
- * const { data, loading, error } = useValuesOccurrencesQuery({
10864
+ * const { data, loading, error } = useValuesOccurrencesForDependencyQuery({
10789
10865
  * variables: {
10790
10866
  * libraryId: // value for 'libraryId'
10791
- * attributeId: // value for 'attributeId'
10867
+ * dependencyAttributeId: // value for 'dependencyAttributeId'
10792
10868
  * recordFilters: // value for 'recordFilters'
10793
10869
  * },
10794
10870
  * });
10795
10871
  */
10796
- export declare function useValuesOccurrencesQuery(baseOptions: Apollo.QueryHookOptions<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables> & ({
10797
- variables: ValuesOccurrencesQueryVariables;
10872
+ export declare function useValuesOccurrencesForDependencyQuery(baseOptions: Apollo.QueryHookOptions<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables> & ({
10873
+ variables: ValuesOccurrencesForDependencyQueryVariables;
10798
10874
  skip?: boolean;
10799
10875
  } | {
10800
10876
  skip: boolean;
10801
- })): Apollo.InteropQueryResult<ValuesOccurrencesQuery, Exact<{
10877
+ })): Apollo.InteropQueryResult<ValuesOccurrencesForDependencyQuery, Exact<{
10802
10878
  libraryId: Scalars["ID"]["input"];
10803
- attributeId: Scalars["ID"]["input"];
10879
+ dependencyAttributeId: Scalars["ID"]["input"];
10804
10880
  recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
10805
10881
  }>>;
10806
- export declare function useValuesOccurrencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables>): Apollo.LazyQueryResultTuple<ValuesOccurrencesQuery, Exact<{
10882
+ export declare function useValuesOccurrencesForDependencyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables>): Apollo.LazyQueryResultTuple<ValuesOccurrencesForDependencyQuery, Exact<{
10807
10883
  libraryId: Scalars["ID"]["input"];
10808
- attributeId: Scalars["ID"]["input"];
10884
+ dependencyAttributeId: Scalars["ID"]["input"];
10809
10885
  recordFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
10810
10886
  }>>;
10811
- export declare function useValuesOccurrencesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables>): Apollo.UseSuspenseQueryResult<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables>;
10812
- export declare function useValuesOccurrencesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables>): Apollo.UseSuspenseQueryResult<ValuesOccurrencesQuery | undefined, ValuesOccurrencesQueryVariables>;
10813
- export type ValuesOccurrencesQueryHookResult = ReturnType<typeof useValuesOccurrencesQuery>;
10814
- export type ValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useValuesOccurrencesLazyQuery>;
10815
- export type ValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useValuesOccurrencesSuspenseQuery>;
10816
- export type ValuesOccurrencesQueryResult = Apollo.QueryResult<ValuesOccurrencesQuery, ValuesOccurrencesQueryVariables>;
10887
+ export declare function useValuesOccurrencesForDependencySuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables>): Apollo.UseSuspenseQueryResult<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables>;
10888
+ export declare function useValuesOccurrencesForDependencySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables>): Apollo.UseSuspenseQueryResult<ValuesOccurrencesForDependencyQuery | undefined, ValuesOccurrencesForDependencyQueryVariables>;
10889
+ export type ValuesOccurrencesForDependencyQueryHookResult = ReturnType<typeof useValuesOccurrencesForDependencyQuery>;
10890
+ export type ValuesOccurrencesForDependencyLazyQueryHookResult = ReturnType<typeof useValuesOccurrencesForDependencyLazyQuery>;
10891
+ export type ValuesOccurrencesForDependencySuspenseQueryHookResult = ReturnType<typeof useValuesOccurrencesForDependencySuspenseQuery>;
10892
+ export type ValuesOccurrencesForDependencyQueryResult = Apollo.QueryResult<ValuesOccurrencesForDependencyQuery, ValuesOccurrencesForDependencyQueryVariables>;
10817
10893
  export declare const TreeFiltersDataQueryDocument: Apollo.DocumentNode;
10818
10894
  /**
10819
10895
  * __useTreeFiltersDataQueryQuery__
@@ -3980,25 +3980,19 @@ export const MassEditableAttributesDocument = gql `
3980
3980
  label
3981
3981
  ... on TreeAttribute {
3982
3982
  id
3983
- tree_values {
3984
- node {
3985
- id
3986
- record {
3987
- id
3988
- whoAmI {
3989
- label
3990
- color
3991
- }
3992
- }
3993
- }
3994
- allowedDependentValues {
3995
- nodeId
3996
- }
3997
- }
3998
3983
  permissions_conf_dependent_values {
3999
3984
  dependenciesTreeAttributes {
4000
3985
  id
4001
3986
  label
3987
+ ... on TreeAttribute {
3988
+ linked_tree {
3989
+ libraries {
3990
+ library {
3991
+ id
3992
+ }
3993
+ }
3994
+ }
3995
+ }
4002
3996
  }
4003
3997
  }
4004
3998
  }
@@ -4112,6 +4106,74 @@ export function useMeSuspenseQuery(baseOptions) {
4112
4106
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4113
4107
  return Apollo.useSuspenseQuery(MeDocument, options);
4114
4108
  }
4109
+ export const TreeAttributeRemappingDocument = gql `
4110
+ query TreeAttributeRemapping($libraryId: ID!, $attributeId: ID!, $recordFilters: [RecordFilterInput]!, $attributeDependentValue: AttributeDependentValueInput) {
4111
+ listDistinctValues(
4112
+ library: $libraryId
4113
+ attribute: $attributeId
4114
+ recordFilters: $recordFilters
4115
+ ) {
4116
+ count
4117
+ ... on TreeDistinctValues {
4118
+ treeNode: value {
4119
+ id
4120
+ }
4121
+ }
4122
+ }
4123
+ attributes(filters: {id: $attributeId}) {
4124
+ list {
4125
+ ... on TreeAttribute {
4126
+ tree_values(attributeDependentValue: $attributeDependentValue) {
4127
+ node {
4128
+ id
4129
+ record {
4130
+ id
4131
+ whoAmI {
4132
+ label
4133
+ color
4134
+ }
4135
+ }
4136
+ }
4137
+ allowedDependentValues {
4138
+ nodeId
4139
+ }
4140
+ }
4141
+ }
4142
+ }
4143
+ }
4144
+ }
4145
+ `;
4146
+ /**
4147
+ * __useTreeAttributeRemappingQuery__
4148
+ *
4149
+ * To run a query within a React component, call `useTreeAttributeRemappingQuery` and pass it any options that fit your needs.
4150
+ * When your component renders, `useTreeAttributeRemappingQuery` returns an object from Apollo Client that contains loading, error, and data properties
4151
+ * you can use to render your UI.
4152
+ *
4153
+ * @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;
4154
+ *
4155
+ * @example
4156
+ * const { data, loading, error } = useTreeAttributeRemappingQuery({
4157
+ * variables: {
4158
+ * libraryId: // value for 'libraryId'
4159
+ * attributeId: // value for 'attributeId'
4160
+ * recordFilters: // value for 'recordFilters'
4161
+ * attributeDependentValue: // value for 'attributeDependentValue'
4162
+ * },
4163
+ * });
4164
+ */
4165
+ export function useTreeAttributeRemappingQuery(baseOptions) {
4166
+ const options = { ...defaultOptions, ...baseOptions };
4167
+ return Apollo.useQuery(TreeAttributeRemappingDocument, options);
4168
+ }
4169
+ export function useTreeAttributeRemappingLazyQuery(baseOptions) {
4170
+ const options = { ...defaultOptions, ...baseOptions };
4171
+ return Apollo.useLazyQuery(TreeAttributeRemappingDocument, options);
4172
+ }
4173
+ export function useTreeAttributeRemappingSuspenseQuery(baseOptions) {
4174
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4175
+ return Apollo.useSuspenseQuery(TreeAttributeRemappingDocument, options);
4176
+ }
4115
4177
  export const UpdateViewDocument = gql `
4116
4178
  mutation UpdateView($view: ViewInputPartial!) {
4117
4179
  updateView(view: $view) {
@@ -4140,51 +4202,56 @@ export function useUpdateViewMutation(baseOptions) {
4140
4202
  const options = { ...defaultOptions, ...baseOptions };
4141
4203
  return Apollo.useMutation(UpdateViewDocument, options);
4142
4204
  }
4143
- export const ValuesOccurrencesDocument = gql `
4144
- query ValuesOccurrences($libraryId: ID!, $attributeId: ID!, $recordFilters: [RecordFilterInput]!) {
4205
+ export const ValuesOccurrencesForDependencyDocument = gql `
4206
+ query ValuesOccurrencesForDependency($libraryId: ID!, $dependencyAttributeId: ID!, $recordFilters: [RecordFilterInput]!) {
4145
4207
  listDistinctValues(
4146
4208
  library: $libraryId
4147
- attribute: $attributeId
4209
+ attribute: $dependencyAttributeId
4148
4210
  recordFilters: $recordFilters
4149
4211
  ) {
4150
- count
4151
4212
  ... on TreeDistinctValues {
4152
4213
  treeNode: value {
4153
4214
  id
4215
+ record {
4216
+ id
4217
+ whoAmI {
4218
+ label
4219
+ }
4220
+ }
4154
4221
  }
4155
4222
  }
4156
4223
  }
4157
4224
  }
4158
4225
  `;
4159
4226
  /**
4160
- * __useValuesOccurrencesQuery__
4227
+ * __useValuesOccurrencesForDependencyQuery__
4161
4228
  *
4162
- * To run a query within a React component, call `useValuesOccurrencesQuery` and pass it any options that fit your needs.
4163
- * When your component renders, `useValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4229
+ * To run a query within a React component, call `useValuesOccurrencesForDependencyQuery` and pass it any options that fit your needs.
4230
+ * When your component renders, `useValuesOccurrencesForDependencyQuery` returns an object from Apollo Client that contains loading, error, and data properties
4164
4231
  * you can use to render your UI.
4165
4232
  *
4166
4233
  * @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;
4167
4234
  *
4168
4235
  * @example
4169
- * const { data, loading, error } = useValuesOccurrencesQuery({
4236
+ * const { data, loading, error } = useValuesOccurrencesForDependencyQuery({
4170
4237
  * variables: {
4171
4238
  * libraryId: // value for 'libraryId'
4172
- * attributeId: // value for 'attributeId'
4239
+ * dependencyAttributeId: // value for 'dependencyAttributeId'
4173
4240
  * recordFilters: // value for 'recordFilters'
4174
4241
  * },
4175
4242
  * });
4176
4243
  */
4177
- export function useValuesOccurrencesQuery(baseOptions) {
4244
+ export function useValuesOccurrencesForDependencyQuery(baseOptions) {
4178
4245
  const options = { ...defaultOptions, ...baseOptions };
4179
- return Apollo.useQuery(ValuesOccurrencesDocument, options);
4246
+ return Apollo.useQuery(ValuesOccurrencesForDependencyDocument, options);
4180
4247
  }
4181
- export function useValuesOccurrencesLazyQuery(baseOptions) {
4248
+ export function useValuesOccurrencesForDependencyLazyQuery(baseOptions) {
4182
4249
  const options = { ...defaultOptions, ...baseOptions };
4183
- return Apollo.useLazyQuery(ValuesOccurrencesDocument, options);
4250
+ return Apollo.useLazyQuery(ValuesOccurrencesForDependencyDocument, options);
4184
4251
  }
4185
- export function useValuesOccurrencesSuspenseQuery(baseOptions) {
4252
+ export function useValuesOccurrencesForDependencySuspenseQuery(baseOptions) {
4186
4253
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4187
- return Apollo.useSuspenseQuery(ValuesOccurrencesDocument, options);
4254
+ return Apollo.useSuspenseQuery(ValuesOccurrencesForDependencyDocument, options);
4188
4255
  }
4189
4256
  export const TreeFiltersDataQueryDocument = gql `
4190
4257
  query TreeFiltersDataQuery($treeId: ID!, $startAt: ID, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {