@leav/ui 1.12.0-a0a98764 → 1.12.0-a3cb7513

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 (115) 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 +325 -59
  5. package/dist/_gqlTypes/index.js +249 -46
  6. package/dist/_gqlTypes/index.js.map +1 -1
  7. package/dist/components/Explorer/DataView.js +31 -14
  8. package/dist/components/Explorer/DataView.js.map +1 -1
  9. package/dist/components/Explorer/_constants.d.ts +0 -1
  10. package/dist/components/Explorer/_constants.js +0 -1
  11. package/dist/components/Explorer/_constants.js.map +1 -1
  12. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +5 -9
  13. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  14. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +4 -9
  15. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +3 -11
  16. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  17. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -8
  18. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +26 -13
  19. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  20. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.d.ts +7 -0
  21. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js +30 -0
  22. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -0
  23. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +23 -0
  24. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js +2 -0
  25. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.d.ts +4 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +46 -0
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -0
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +12 -0
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +24 -0
  31. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +1 -0
  32. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +13 -0
  33. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +28 -0
  34. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +1 -0
  35. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +6 -10
  36. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  37. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -8
  38. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  39. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +8 -2
  40. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +104 -80
  41. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  42. package/dist/components/Explorer/actions-mass/useMassActions.js +30 -19
  43. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  44. package/dist/components/Explorer/conditionsHelper.d.ts +2 -1
  45. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  46. package/dist/components/Filters/conditionsHelper.d.ts +2 -1
  47. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  48. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  49. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  50. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  51. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -1
  52. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  53. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.d.ts +1 -4
  54. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +5 -9
  55. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  56. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +4 -8
  57. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  58. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
  59. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  60. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +4 -8
  61. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  62. package/dist/constants.d.ts +1 -0
  63. package/dist/constants.js +1 -0
  64. package/dist/constants.js.map +1 -1
  65. package/dist/hooks/index.d.ts +4 -0
  66. package/dist/hooks/index.js +4 -0
  67. package/dist/hooks/index.js.map +1 -1
  68. package/dist/hooks/useConfirmModal/__mocks__/index.d.ts +1 -0
  69. package/dist/hooks/useConfirmModal/__mocks__/index.js +5 -0
  70. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -0
  71. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.d.ts +3 -0
  72. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +7 -0
  73. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -0
  74. package/dist/hooks/useConfirmModal/index.d.ts +1 -0
  75. package/dist/hooks/useConfirmModal/index.js +5 -0
  76. package/dist/hooks/useConfirmModal/index.js.map +1 -0
  77. package/dist/hooks/useConfirmModal/useConfirmModal.d.ts +7 -0
  78. package/dist/hooks/useConfirmModal/useConfirmModal.js +25 -0
  79. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -0
  80. package/dist/hooks/useGetRecordIdCard/index.d.ts +1 -0
  81. package/dist/hooks/useGetRecordIdCard/index.js +5 -0
  82. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -0
  83. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.d.ts +18 -0
  84. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +20 -0
  85. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -0
  86. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
  87. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
  88. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
  89. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -2
  90. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  91. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +10 -2
  92. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +21 -9
  93. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  94. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
  95. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
  96. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
  97. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
  98. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
  99. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
  100. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  101. package/dist/locales/en/shared.json +6 -4
  102. package/dist/locales/fr/shared.json +8 -6
  103. package/package.json +9 -9
  104. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +0 -8
  105. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +0 -40
  106. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +0 -1
  107. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +0 -17
  108. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +0 -42
  109. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +0 -1
  110. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +0 -5
  111. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +0 -20
  112. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +0 -1
  113. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +0 -12
  114. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +0 -30
  115. 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";
@@ -2760,6 +2847,58 @@ export function usePurgeRecordMutation(baseOptions) {
2760
2847
  const options = { ...defaultOptions, ...baseOptions };
2761
2848
  return Apollo.useMutation(PurgeRecordDocument, options);
2762
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
+ }
2763
2902
  export const CancelTaskDocument = gql `
2764
2903
  mutation CANCEL_TASK($taskId: ID!) {
2765
2904
  cancelTask(taskId: $taskId)
@@ -3533,52 +3672,6 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3533
3672
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3534
3673
  return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3535
3674
  }
3536
- export const CountValuesOccurrencesDocument = gql `
3537
- query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3538
- listDistinctValues(
3539
- library: $library
3540
- attribute: $attribute
3541
- recordFilters: $recordFilters
3542
- ) {
3543
- count
3544
- ... on TreeDistinctValues {
3545
- treeNode: value {
3546
- id
3547
- }
3548
- }
3549
- }
3550
- }
3551
- `;
3552
- /**
3553
- * __useCountValuesOccurrencesQuery__
3554
- *
3555
- * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
3556
- * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3557
- * you can use to render your UI.
3558
- *
3559
- * @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;
3560
- *
3561
- * @example
3562
- * const { data, loading, error } = useCountValuesOccurrencesQuery({
3563
- * variables: {
3564
- * library: // value for 'library'
3565
- * attribute: // value for 'attribute'
3566
- * recordFilters: // value for 'recordFilters'
3567
- * },
3568
- * });
3569
- */
3570
- export function useCountValuesOccurrencesQuery(baseOptions) {
3571
- const options = { ...defaultOptions, ...baseOptions };
3572
- return Apollo.useQuery(CountValuesOccurrencesDocument, options);
3573
- }
3574
- export function useCountValuesOccurrencesLazyQuery(baseOptions) {
3575
- const options = { ...defaultOptions, ...baseOptions };
3576
- return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
3577
- }
3578
- export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3579
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3580
- return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3581
- }
3582
3675
  export const ExplorerLibraryCountDataDocument = gql `
3583
3676
  query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
3584
3677
  records(library: $libraryId, filters: $filters) {
@@ -3865,6 +3958,70 @@ export function useLibraryExportProfilesSuspenseQuery(baseOptions) {
3865
3958
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3866
3959
  return Apollo.useSuspenseQuery(LibraryExportProfilesDocument, options);
3867
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
+ }
3868
4025
  export const ExplorerSelectionIdsDocument = gql `
3869
4026
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3870
4027
  records(library: $libraryId, filters: $filters) {
@@ -3971,6 +4128,52 @@ export function useUpdateViewMutation(baseOptions) {
3971
4128
  const options = { ...defaultOptions, ...baseOptions };
3972
4129
  return Apollo.useMutation(UpdateViewDocument, options);
3973
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
+ }
3974
4177
  export const TreeFiltersDataQueryDocument = gql `
3975
4178
  query TreeFiltersDataQuery($treeId: ID!, $startAt: ID, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
3976
4179
  treeContent(