@leav/ui 1.12.0-ca805ec3 → 1.12.0-ce39d7e4

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 (125) hide show
  1. package/dist/__mocks__/utils.d.ts +3 -0
  2. package/dist/__mocks__/utils.js +2 -0
  3. package/dist/__mocks__/utils.js.map +1 -0
  4. package/dist/_gqlTypes/index.d.ts +352 -55
  5. package/dist/_gqlTypes/index.js +258 -46
  6. package/dist/_gqlTypes/index.js.map +1 -1
  7. package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
  8. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  9. package/dist/components/Explorer/DataView.js +30 -13
  10. package/dist/components/Explorer/DataView.js.map +1 -1
  11. package/dist/components/Explorer/_constants.d.ts +0 -1
  12. package/dist/components/Explorer/_constants.js +0 -1
  13. package/dist/components/Explorer/_constants.js.map +1 -1
  14. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +5 -9
  15. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  16. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +4 -9
  17. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +3 -11
  18. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  19. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -8
  20. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +26 -13
  21. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  22. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.d.ts +7 -0
  23. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js +30 -0
  24. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -0
  25. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +23 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js +2 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -0
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.d.ts +4 -0
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +46 -0
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -0
  31. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +12 -0
  32. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +24 -0
  33. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +1 -0
  34. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +13 -0
  35. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +28 -0
  36. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +1 -0
  37. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +6 -10
  38. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  39. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -8
  40. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  41. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +8 -2
  42. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +104 -80
  43. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  44. package/dist/components/Explorer/actions-mass/useMassActions.js +30 -19
  45. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  46. package/dist/components/Explorer/conditionsHelper.d.ts +2 -1
  47. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -4
  49. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  50. package/dist/components/Filters/_types.d.ts +3 -0
  51. package/dist/components/Filters/_types.js.map +1 -1
  52. package/dist/components/Filters/conditionsHelper.d.ts +2 -1
  53. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  54. package/dist/components/Filters/context/filtersReducer.js +14 -1
  55. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  56. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  57. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  58. package/dist/components/Filters/useFilters.d.ts +198 -0
  59. package/dist/components/Filters/useTransformFilters.js +4 -2
  60. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  61. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -1
  62. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.d.ts +1 -4
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +5 -9
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +4 -8
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
  69. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  70. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +4 -8
  71. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  72. package/dist/constants.d.ts +1 -0
  73. package/dist/constants.js +1 -0
  74. package/dist/constants.js.map +1 -1
  75. package/dist/hooks/index.d.ts +4 -0
  76. package/dist/hooks/index.js +4 -0
  77. package/dist/hooks/index.js.map +1 -1
  78. package/dist/hooks/useConfirmModal/__mocks__/index.d.ts +1 -0
  79. package/dist/hooks/useConfirmModal/__mocks__/index.js +5 -0
  80. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -0
  81. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.d.ts +3 -0
  82. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +7 -0
  83. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -0
  84. package/dist/hooks/useConfirmModal/index.d.ts +1 -0
  85. package/dist/hooks/useConfirmModal/index.js +5 -0
  86. package/dist/hooks/useConfirmModal/index.js.map +1 -0
  87. package/dist/hooks/useConfirmModal/useConfirmModal.d.ts +7 -0
  88. package/dist/hooks/useConfirmModal/useConfirmModal.js +25 -0
  89. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -0
  90. package/dist/hooks/useGetRecordIdCard/index.d.ts +1 -0
  91. package/dist/hooks/useGetRecordIdCard/index.js +5 -0
  92. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -0
  93. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.d.ts +18 -0
  94. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +20 -0
  95. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -0
  96. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
  97. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
  98. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
  99. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -2
  100. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  101. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +10 -2
  102. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +21 -9
  103. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  104. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
  105. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
  106. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
  107. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
  108. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
  109. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
  110. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  111. package/dist/locales/en/shared.json +6 -4
  112. package/dist/locales/fr/shared.json +8 -6
  113. package/package.json +7 -7
  114. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +0 -8
  115. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +0 -40
  116. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +0 -1
  117. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +0 -17
  118. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +0 -42
  119. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +0 -1
  120. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +0 -5
  121. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +0 -20
  122. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +0 -1
  123. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +0 -12
  124. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +0 -30
  125. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js.map +0 -1
@@ -64,11 +64,95 @@ export var AttributesSortableFields;
64
64
  AttributesSortableFields["multiple_values"] = "multiple_values";
65
65
  AttributesSortableFields["type"] = "type";
66
66
  })(AttributesSortableFields || (AttributesSortableFields = {}));
67
+ export var AutomationRuleEventAction;
68
+ (function (AutomationRuleEventAction) {
69
+ AutomationRuleEventAction["API_KEY_DELETE"] = "API_KEY_DELETE";
70
+ AutomationRuleEventAction["API_KEY_SAVE"] = "API_KEY_SAVE";
71
+ AutomationRuleEventAction["APP_DELETE"] = "APP_DELETE";
72
+ AutomationRuleEventAction["APP_SAVE"] = "APP_SAVE";
73
+ AutomationRuleEventAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
74
+ AutomationRuleEventAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
75
+ AutomationRuleEventAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
76
+ AutomationRuleEventAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
77
+ AutomationRuleEventAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
78
+ AutomationRuleEventAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
79
+ AutomationRuleEventAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
80
+ AutomationRuleEventAction["DATA_IMPORT_START"] = "DATA_IMPORT_START";
81
+ AutomationRuleEventAction["EXPORT_END"] = "EXPORT_END";
82
+ AutomationRuleEventAction["EXPORT_START"] = "EXPORT_START";
83
+ AutomationRuleEventAction["GLOBAL_SETTINGS_SAVE"] = "GLOBAL_SETTINGS_SAVE";
84
+ AutomationRuleEventAction["LIBRARY_DELETE"] = "LIBRARY_DELETE";
85
+ AutomationRuleEventAction["LIBRARY_PURGE"] = "LIBRARY_PURGE";
86
+ AutomationRuleEventAction["LIBRARY_SAVE"] = "LIBRARY_SAVE";
87
+ AutomationRuleEventAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
88
+ AutomationRuleEventAction["RECORD_DELETE"] = "RECORD_DELETE";
89
+ AutomationRuleEventAction["RECORD_INIT"] = "RECORD_INIT";
90
+ AutomationRuleEventAction["RECORD_SAVE"] = "RECORD_SAVE";
91
+ AutomationRuleEventAction["TASKS_DELETE"] = "TASKS_DELETE";
92
+ AutomationRuleEventAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
93
+ AutomationRuleEventAction["TREE_DELETE"] = "TREE_DELETE";
94
+ AutomationRuleEventAction["TREE_DELETE_ELEMENT"] = "TREE_DELETE_ELEMENT";
95
+ AutomationRuleEventAction["TREE_MOVE_ELEMENT"] = "TREE_MOVE_ELEMENT";
96
+ AutomationRuleEventAction["TREE_SAVE"] = "TREE_SAVE";
97
+ AutomationRuleEventAction["VALUE_DELETE"] = "VALUE_DELETE";
98
+ AutomationRuleEventAction["VALUE_SAVE"] = "VALUE_SAVE";
99
+ AutomationRuleEventAction["VERSION_PROFILE_DELETE"] = "VERSION_PROFILE_DELETE";
100
+ AutomationRuleEventAction["VERSION_PROFILE_SAVE"] = "VERSION_PROFILE_SAVE";
101
+ })(AutomationRuleEventAction || (AutomationRuleEventAction = {}));
102
+ export var AutomationRuleSortableFields;
103
+ (function (AutomationRuleSortableFields) {
104
+ AutomationRuleSortableFields["id"] = "id";
105
+ })(AutomationRuleSortableFields || (AutomationRuleSortableFields = {}));
106
+ export var AutomationTriggerDefSynchronicity;
107
+ (function (AutomationTriggerDefSynchronicity) {
108
+ AutomationTriggerDefSynchronicity["ASYNC"] = "ASYNC";
109
+ AutomationTriggerDefSynchronicity["BOTH"] = "BOTH";
110
+ AutomationTriggerDefSynchronicity["SYNC"] = "SYNC";
111
+ })(AutomationTriggerDefSynchronicity || (AutomationTriggerDefSynchronicity = {}));
112
+ export var AutomationTriggerDefTopics;
113
+ (function (AutomationTriggerDefTopics) {
114
+ AutomationTriggerDefTopics["ATTRIBUTE"] = "ATTRIBUTE";
115
+ AutomationTriggerDefTopics["LIBRARY"] = "LIBRARY";
116
+ })(AutomationTriggerDefTopics || (AutomationTriggerDefTopics = {}));
67
117
  export var AvailableLanguage;
68
118
  (function (AvailableLanguage) {
69
119
  AvailableLanguage["en"] = "en";
70
120
  AvailableLanguage["fr"] = "fr";
71
121
  })(AvailableLanguage || (AvailableLanguage = {}));
122
+ export var EventAction;
123
+ (function (EventAction) {
124
+ EventAction["API_KEY_DELETE"] = "API_KEY_DELETE";
125
+ EventAction["API_KEY_SAVE"] = "API_KEY_SAVE";
126
+ EventAction["APP_DELETE"] = "APP_DELETE";
127
+ EventAction["APP_SAVE"] = "APP_SAVE";
128
+ EventAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
129
+ EventAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
130
+ EventAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
131
+ EventAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
132
+ EventAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
133
+ EventAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
134
+ EventAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
135
+ EventAction["DATA_IMPORT_START"] = "DATA_IMPORT_START";
136
+ EventAction["EXPORT_END"] = "EXPORT_END";
137
+ EventAction["EXPORT_START"] = "EXPORT_START";
138
+ EventAction["GLOBAL_SETTINGS_SAVE"] = "GLOBAL_SETTINGS_SAVE";
139
+ EventAction["LIBRARY_DELETE"] = "LIBRARY_DELETE";
140
+ EventAction["LIBRARY_PURGE"] = "LIBRARY_PURGE";
141
+ EventAction["LIBRARY_SAVE"] = "LIBRARY_SAVE";
142
+ EventAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
143
+ EventAction["RECORD_DELETE"] = "RECORD_DELETE";
144
+ EventAction["RECORD_SAVE"] = "RECORD_SAVE";
145
+ EventAction["TASKS_DELETE"] = "TASKS_DELETE";
146
+ EventAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
147
+ EventAction["TREE_DELETE"] = "TREE_DELETE";
148
+ EventAction["TREE_DELETE_ELEMENT"] = "TREE_DELETE_ELEMENT";
149
+ EventAction["TREE_MOVE_ELEMENT"] = "TREE_MOVE_ELEMENT";
150
+ EventAction["TREE_SAVE"] = "TREE_SAVE";
151
+ EventAction["VALUE_DELETE"] = "VALUE_DELETE";
152
+ EventAction["VALUE_SAVE"] = "VALUE_SAVE";
153
+ EventAction["VERSION_PROFILE_DELETE"] = "VERSION_PROFILE_DELETE";
154
+ EventAction["VERSION_PROFILE_SAVE"] = "VERSION_PROFILE_SAVE";
155
+ })(EventAction || (EventAction = {}));
72
156
  export var FileType;
73
157
  (function (FileType) {
74
158
  FileType["audio"] = "audio";
@@ -128,6 +212,8 @@ export var LogAction;
128
212
  LogAction["APP_SAVE"] = "APP_SAVE";
129
213
  LogAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
130
214
  LogAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
215
+ LogAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
216
+ LogAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
131
217
  LogAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
132
218
  LogAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
133
219
  LogAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
@@ -230,6 +316,7 @@ export var PermissionsActions;
230
316
  PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
231
317
  PermissionsActions["admin_library"] = "admin_library";
232
318
  PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
319
+ PermissionsActions["admin_manage_automation"] = "admin_manage_automation";
233
320
  PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
234
321
  PermissionsActions["create_record"] = "create_record";
235
322
  PermissionsActions["delete_record"] = "delete_record";
@@ -437,6 +524,9 @@ export const AttributeDetailsFragmentDoc = gql `
437
524
  reverse_link
438
525
  smart_filter {
439
526
  enable
527
+ through {
528
+ id
529
+ }
440
530
  }
441
531
  }
442
532
  ... on TreeAttribute {
@@ -978,6 +1068,9 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
978
1068
  }
979
1069
  smart_filter {
980
1070
  enable
1071
+ through {
1072
+ id
1073
+ }
981
1074
  }
982
1075
  }
983
1076
  ${RecordIdentityFragmentDoc}`;
@@ -1063,6 +1156,9 @@ export const LinkAttributeDetailsFragmentDoc = gql `
1063
1156
  }
1064
1157
  smart_filter {
1065
1158
  enable
1159
+ through {
1160
+ id
1161
+ }
1066
1162
  }
1067
1163
  }
1068
1164
  `;
@@ -2751,6 +2847,58 @@ export function usePurgeRecordMutation(baseOptions) {
2751
2847
  const options = { ...defaultOptions, ...baseOptions };
2752
2848
  return Apollo.useMutation(PurgeRecordDocument, options);
2753
2849
  }
2850
+ export const GetRecordIdCardDocument = gql `
2851
+ query GetRecordIdCard($id: String, $libraryId: ID!) {
2852
+ records(
2853
+ library: $libraryId
2854
+ filters: [{field: "id", condition: EQUAL, value: $id}]
2855
+ ) {
2856
+ list {
2857
+ id
2858
+ whoAmI {
2859
+ id
2860
+ color
2861
+ label
2862
+ subLabel
2863
+ preview
2864
+ parentContext {
2865
+ id
2866
+ label
2867
+ }
2868
+ }
2869
+ }
2870
+ }
2871
+ }
2872
+ `;
2873
+ /**
2874
+ * __useGetRecordIdCardQuery__
2875
+ *
2876
+ * To run a query within a React component, call `useGetRecordIdCardQuery` and pass it any options that fit your needs.
2877
+ * When your component renders, `useGetRecordIdCardQuery` returns an object from Apollo Client that contains loading, error, and data properties
2878
+ * you can use to render your UI.
2879
+ *
2880
+ * @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;
2881
+ *
2882
+ * @example
2883
+ * const { data, loading, error } = useGetRecordIdCardQuery({
2884
+ * variables: {
2885
+ * id: // value for 'id'
2886
+ * libraryId: // value for 'libraryId'
2887
+ * },
2888
+ * });
2889
+ */
2890
+ export function useGetRecordIdCardQuery(baseOptions) {
2891
+ const options = { ...defaultOptions, ...baseOptions };
2892
+ return Apollo.useQuery(GetRecordIdCardDocument, options);
2893
+ }
2894
+ export function useGetRecordIdCardLazyQuery(baseOptions) {
2895
+ const options = { ...defaultOptions, ...baseOptions };
2896
+ return Apollo.useLazyQuery(GetRecordIdCardDocument, options);
2897
+ }
2898
+ export function useGetRecordIdCardSuspenseQuery(baseOptions) {
2899
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2900
+ return Apollo.useSuspenseQuery(GetRecordIdCardDocument, options);
2901
+ }
2754
2902
  export const CancelTaskDocument = gql `
2755
2903
  mutation CANCEL_TASK($taskId: ID!) {
2756
2904
  cancelTask(taskId: $taskId)
@@ -3524,52 +3672,6 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3524
3672
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3525
3673
  return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3526
3674
  }
3527
- export const CountValuesOccurrencesDocument = gql `
3528
- query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3529
- listDistinctValues(
3530
- library: $library
3531
- attribute: $attribute
3532
- recordFilters: $recordFilters
3533
- ) {
3534
- count
3535
- ... on TreeDistinctValues {
3536
- treeNode: value {
3537
- id
3538
- }
3539
- }
3540
- }
3541
- }
3542
- `;
3543
- /**
3544
- * __useCountValuesOccurrencesQuery__
3545
- *
3546
- * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
3547
- * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3548
- * you can use to render your UI.
3549
- *
3550
- * @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;
3551
- *
3552
- * @example
3553
- * const { data, loading, error } = useCountValuesOccurrencesQuery({
3554
- * variables: {
3555
- * library: // value for 'library'
3556
- * attribute: // value for 'attribute'
3557
- * recordFilters: // value for 'recordFilters'
3558
- * },
3559
- * });
3560
- */
3561
- export function useCountValuesOccurrencesQuery(baseOptions) {
3562
- const options = { ...defaultOptions, ...baseOptions };
3563
- return Apollo.useQuery(CountValuesOccurrencesDocument, options);
3564
- }
3565
- export function useCountValuesOccurrencesLazyQuery(baseOptions) {
3566
- const options = { ...defaultOptions, ...baseOptions };
3567
- return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
3568
- }
3569
- export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3570
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3571
- return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3572
- }
3573
3675
  export const ExplorerLibraryCountDataDocument = gql `
3574
3676
  query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
3575
3677
  records(library: $libraryId, filters: $filters) {
@@ -3856,6 +3958,70 @@ export function useLibraryExportProfilesSuspenseQuery(baseOptions) {
3856
3958
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3857
3959
  return Apollo.useSuspenseQuery(LibraryExportProfilesDocument, options);
3858
3960
  }
3961
+ export const MassEditableAttributesDocument = gql `
3962
+ query MassEditableAttributes($libraryId: String!) {
3963
+ attributes(
3964
+ filters: {multiple_values: false, type: tree, libraries: [$libraryId]}
3965
+ ) {
3966
+ list {
3967
+ id
3968
+ label
3969
+ ... on TreeAttribute {
3970
+ id
3971
+ tree_values {
3972
+ node {
3973
+ id
3974
+ record {
3975
+ id
3976
+ whoAmI {
3977
+ label
3978
+ color
3979
+ }
3980
+ }
3981
+ }
3982
+ allowedDependentValues {
3983
+ nodeId
3984
+ }
3985
+ }
3986
+ permissions_conf_dependent_values {
3987
+ dependenciesTreeAttributes {
3988
+ id
3989
+ label
3990
+ }
3991
+ }
3992
+ }
3993
+ }
3994
+ }
3995
+ }
3996
+ `;
3997
+ /**
3998
+ * __useMassEditableAttributesQuery__
3999
+ *
4000
+ * To run a query within a React component, call `useMassEditableAttributesQuery` and pass it any options that fit your needs.
4001
+ * When your component renders, `useMassEditableAttributesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4002
+ * you can use to render your UI.
4003
+ *
4004
+ * @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;
4005
+ *
4006
+ * @example
4007
+ * const { data, loading, error } = useMassEditableAttributesQuery({
4008
+ * variables: {
4009
+ * libraryId: // value for 'libraryId'
4010
+ * },
4011
+ * });
4012
+ */
4013
+ export function useMassEditableAttributesQuery(baseOptions) {
4014
+ const options = { ...defaultOptions, ...baseOptions };
4015
+ return Apollo.useQuery(MassEditableAttributesDocument, options);
4016
+ }
4017
+ export function useMassEditableAttributesLazyQuery(baseOptions) {
4018
+ const options = { ...defaultOptions, ...baseOptions };
4019
+ return Apollo.useLazyQuery(MassEditableAttributesDocument, options);
4020
+ }
4021
+ export function useMassEditableAttributesSuspenseQuery(baseOptions) {
4022
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4023
+ return Apollo.useSuspenseQuery(MassEditableAttributesDocument, options);
4024
+ }
3859
4025
  export const ExplorerSelectionIdsDocument = gql `
3860
4026
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3861
4027
  records(library: $libraryId, filters: $filters) {
@@ -3962,6 +4128,52 @@ export function useUpdateViewMutation(baseOptions) {
3962
4128
  const options = { ...defaultOptions, ...baseOptions };
3963
4129
  return Apollo.useMutation(UpdateViewDocument, options);
3964
4130
  }
4131
+ export const ValuesOccurrencesDocument = gql `
4132
+ query ValuesOccurrences($libraryId: ID!, $attributeId: ID!, $recordFilters: [RecordFilterInput]!) {
4133
+ listDistinctValues(
4134
+ library: $libraryId
4135
+ attribute: $attributeId
4136
+ recordFilters: $recordFilters
4137
+ ) {
4138
+ count
4139
+ ... on TreeDistinctValues {
4140
+ treeNode: value {
4141
+ id
4142
+ }
4143
+ }
4144
+ }
4145
+ }
4146
+ `;
4147
+ /**
4148
+ * __useValuesOccurrencesQuery__
4149
+ *
4150
+ * To run a query within a React component, call `useValuesOccurrencesQuery` and pass it any options that fit your needs.
4151
+ * When your component renders, `useValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4152
+ * you can use to render your UI.
4153
+ *
4154
+ * @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;
4155
+ *
4156
+ * @example
4157
+ * const { data, loading, error } = useValuesOccurrencesQuery({
4158
+ * variables: {
4159
+ * libraryId: // value for 'libraryId'
4160
+ * attributeId: // value for 'attributeId'
4161
+ * recordFilters: // value for 'recordFilters'
4162
+ * },
4163
+ * });
4164
+ */
4165
+ export function useValuesOccurrencesQuery(baseOptions) {
4166
+ const options = { ...defaultOptions, ...baseOptions };
4167
+ return Apollo.useQuery(ValuesOccurrencesDocument, options);
4168
+ }
4169
+ export function useValuesOccurrencesLazyQuery(baseOptions) {
4170
+ const options = { ...defaultOptions, ...baseOptions };
4171
+ return Apollo.useLazyQuery(ValuesOccurrencesDocument, options);
4172
+ }
4173
+ export function useValuesOccurrencesSuspenseQuery(baseOptions) {
4174
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4175
+ return Apollo.useSuspenseQuery(ValuesOccurrencesDocument, options);
4176
+ }
3965
4177
  export const TreeFiltersDataQueryDocument = gql `
3966
4178
  query TreeFiltersDataQuery($treeId: ID!, $startAt: ID, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
3967
4179
  treeContent(