@leav/ui 1.5.1-339c20fb → 1.5.1-36ba391b

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 (81) hide show
  1. package/dist/__mocks__/common/attribute.js +1 -0
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/_gqlTypes/index.d.ts +115 -1
  4. package/dist/_gqlTypes/index.js +86 -0
  5. package/dist/_gqlTypes/index.js.map +1 -1
  6. package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
  7. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  8. package/dist/components/Explorer/Explorer.d.ts +1 -1
  9. package/dist/components/Explorer/Explorer.js +15 -3
  10. package/dist/components/Explorer/Explorer.js.map +1 -1
  11. package/dist/components/Explorer/_queries/useExplorerData.js +13 -2
  12. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  13. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +13 -0
  14. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +20 -0
  15. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -0
  16. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +10 -0
  17. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +38 -0
  18. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +1 -0
  19. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -0
  20. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +16 -0
  21. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -0
  22. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +10 -0
  23. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +28 -0
  24. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -0
  25. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +5 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +12 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +1 -0
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +5 -0
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +20 -0
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js.map +1 -0
  31. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +11 -0
  32. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +106 -0
  33. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -0
  34. package/dist/components/Explorer/actions-mass/useExportMassAction.js +4 -6
  35. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
  36. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +12 -3
  37. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  38. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +4 -1
  39. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  40. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +6 -3
  41. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  42. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +6 -5
  43. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  44. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +9 -8
  45. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  46. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +8 -7
  47. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  48. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +6 -5
  49. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  50. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +6 -5
  51. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  52. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +12 -11
  53. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  54. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +16 -7
  55. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  56. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +6 -5
  57. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  58. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +3 -3
  59. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +10 -4
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -1
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js +2 -2
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.d.ts +24 -24
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +34 -35
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +1 -1
  69. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +1 -1
  71. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +15 -10
  72. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  73. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +1 -1
  74. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +4 -3
  75. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  76. package/dist/hooks/useIFrameMessenger/schema.d.ts +15 -4
  77. package/dist/hooks/useIFrameMessenger/schema.js +7 -1
  78. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  79. package/dist/locales/en/shared.json +20 -7
  80. package/dist/locales/fr/shared.json +20 -7
  81. package/package.json +3 -3
@@ -34,6 +34,7 @@ export const mockAttributeWithDetails = {
34
34
  },
35
35
  unique: false,
36
36
  readonly: false,
37
+ required: false,
37
38
  multiple_values: false,
38
39
  };
39
40
  export const mockAttributeLink = {
@@ -1 +1 @@
1
- {"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/__mocks__/common/attribute.ts"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;aACnB;SACJ;KACJ;IACD,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAgC;IACjE,GAAG,iBAAiB;IACpB,EAAE,EAAE,wBAAwB;IAC5B,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,OAAO,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA6C;IAC3E,GAAG,iBAAiB;IACpB,GAAG,iBAAiB;IACpB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAC;CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,EAAC,EAAE,EAAE,cAAc,EAAC;IAC3B,eAAe,EAAE,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {\n type AttributeDetailsFragment,\n AttributeFormat,\n AttributeType,\n type GetAttributesQuery,\n type LibraryAttributesFragment,\n type RecordFormAttributeFragment,\n type RecordFormAttributeTreeAttributeFragment,\n} from '_ui/_gqlTypes';\n\nexport const mockLibraryAttribute: LibraryAttributesFragment = {\n id: 'my_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.text,\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n};\n\nexport const mockAttributeSimple: GetAttributesQuery['attributes']['list'][0] = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n type: AttributeType.simple,\n format: AttributeFormat.text,\n system: false,\n};\n\nexport const mockAttributeWithDetails: AttributeDetailsFragment = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n format: AttributeFormat.text,\n type: AttributeType.simple,\n system: false,\n description: {\n fr: 'Ma description',\n en: 'My description',\n },\n unique: false,\n readonly: false,\n multiple_values: false,\n};\n\nexport const mockAttributeLink: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.advanced_link,\n linked_library: {\n id: 'my_linked_library',\n label: {\n fr: 'Ma biblio',\n en: 'My library',\n },\n },\n};\n\nexport const mockAttributeTree: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.tree,\n linked_tree: {\n id: 'my_linked_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n};\n\nexport const mockAttributeVersionable: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n versions_conf: {\n versionable: true,\n profile: {\n id: 'my_profile',\n label: {\n fr: 'Mon profil',\n en: 'My profile',\n },\n trees: [\n {\n id: 'my_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n ],\n },\n },\n};\n\nexport const mockFormAttribute: RecordFormAttributeFragment = {\n id: 'test_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.extended,\n label: {\n fr: 'test',\n en: 'test',\n },\n description: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n readonly: false,\n required: false,\n multiple_values: false,\n values_list: {\n enable: false,\n allowFreeEntry: false,\n allowListUpdate: false,\n values: [],\n },\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n metadata_fields: [\n {\n ...mockAttributeWithDetails,\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n },\n ],\n versions_conf: null,\n compute: false,\n};\n\nexport const mockFormAttributeCompute: RecordFormAttributeFragment = {\n ...mockFormAttribute,\n id: 'test_compute_attribute',\n format: AttributeFormat.text,\n compute: true,\n};\n\nexport const mockFormAttributeTree: RecordFormAttributeTreeAttributeFragment = {\n ...mockFormAttribute,\n ...mockAttributeTree,\n metadata_fields: null,\n treeValuesList: {enable: false, allowFreeEntry: false, allowListUpdate: false, values: []},\n};\n\nexport const mockSelectedAttributeA: ISelectedAttribute = {\n id: 'A',\n type: AttributeType.simple,\n path: 'A',\n library: 'test_lib',\n label: {fr: 'My attribute'},\n multiple_values: false,\n};\n\nexport const mockSelectedAttributeB: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'B',\n path: 'B',\n};\n\nexport const mockSelectedAttributeC: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'C',\n path: 'C',\n};\n"]}
1
+ {"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/__mocks__/common/attribute.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,eAAe,EACf,aAAa,GAKhB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,oBAAoB,GAA8B;IAC3D,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,MAAM,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAgD;IAC5E,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,IAAI,EAAE,aAAa,CAAC,MAAM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AC7F,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,EAAC,EAAE,EAAE,cAAc,EAAC;IAC3B,eAAe,EAAE,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {\n type AttributeDetailsFragment,\n AttributeFormat,\n AttributeType,\n type GetAttributesQuery,\n type LibraryAttributesFragment,\n type RecordFormAttributeFragment,\n type RecordFormAttributeTreeAttributeFragment,\n} from '_ui/_gqlTypes';\n\nexport const mockLibraryAttribute: LibraryAttributesFragment = {\n id: 'my_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.text,\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n};\n\nexport const mockAttributeSimple: GetAttributesQuery['attributes']['list'][0] = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n type: AttributeType.simple,\n format: AttributeFormat.text,\n system: false,\n};\n\nexport const mockAttributeWithDetails: AttributeDetailsFragment = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n format: AttributeFormat.text,\n type: AttributeType.simple,\n system: false,\n description: {\n fr: 'Ma description',\n en: 'My description',\n },\n unique: false,\n readonly: false,\n required: false,\n multiple_values: false,\n};\n\nexport const mockAttributeLink: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.advanced_link,\n linked_library: {\n id: 'my_linked_library',\n label: {\n fr: 'Ma biblio',\n en: 'My library',\n },\n },\n};\n\nexport const mockAttributeTree: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.tree,\n linked_tree: {\n id: 'my_linked_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n};\n\nexport const mockAttributeVersionable: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n versions_conf: {\n versionable: true,\n profile: {\n id: 'my_profile',\n label: {\n fr: 'Mon profil',\n en: 'My profile',\n },\n trees: [\n {\n id: 'my_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n ],\n },\n },\n};\n\nexport const mockFormAttribute: RecordFormAttributeFragment = {\n id: 'test_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.extended,\n label: {\n fr: 'test',\n en: 'test',\n },\n description: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n readonly: false,\n required: false,\n multiple_values: false,\n values_list: {\n enable: false,\n allowFreeEntry: false,\n allowListUpdate: false,\n values: [],\n },\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n metadata_fields: [\n {\n ...mockAttributeWithDetails,\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n },\n ],\n versions_conf: null,\n compute: false,\n};\n\nexport const mockFormAttributeCompute: RecordFormAttributeFragment = {\n ...mockFormAttribute,\n id: 'test_compute_attribute',\n format: AttributeFormat.text,\n compute: true,\n};\n\nexport const mockFormAttributeTree: RecordFormAttributeTreeAttributeFragment = {\n ...mockFormAttribute,\n ...mockAttributeTree,\n metadata_fields: null,\n treeValuesList: {enable: false, allowFreeEntry: false, allowListUpdate: false, values: []},\n};\n\nexport const mockSelectedAttributeA: ISelectedAttribute = {\n id: 'A',\n type: AttributeType.simple,\n path: 'A',\n library: 'test_lib',\n label: {fr: 'My attribute'},\n multiple_values: false,\n};\n\nexport const mockSelectedAttributeB: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'B',\n path: 'B',\n};\n\nexport const mockSelectedAttributeC: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'C',\n path: 'C',\n};\n"]}
@@ -410,6 +410,10 @@ export type LogTopicRecordFilterInput = {
410
410
  id?: InputMaybe<Scalars['String']>;
411
411
  libraryId?: InputMaybe<Scalars['String']>;
412
412
  };
413
+ export type MapValueInput = {
414
+ after?: InputMaybe<Scalars['ID']>;
415
+ before?: InputMaybe<Scalars['ID']>;
416
+ };
413
417
  export declare enum MultiDisplayOption {
414
418
  avatar = "avatar",
415
419
  badge_qty = "badge_qty",
@@ -655,7 +659,8 @@ export declare enum TaskType {
655
659
  EXPORT = "EXPORT",
656
660
  IMPORT_CONFIG = "IMPORT_CONFIG",
657
661
  IMPORT_DATA = "IMPORT_DATA",
658
- INDEXATION = "INDEXATION"
662
+ INDEXATION = "INDEXATION",
663
+ SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
659
664
  }
660
665
  export declare enum TreeBehavior {
661
666
  files = "files",
@@ -867,6 +872,7 @@ export type AttributeDetailsLinkAttributeFragment = {
867
872
  readonly: boolean;
868
873
  label?: any | null;
869
874
  description?: any | null;
875
+ required: boolean;
870
876
  multiple_values: boolean;
871
877
  multi_link_display_option?: MultiDisplayOption | null;
872
878
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -906,6 +912,7 @@ export type AttributeDetailsStandardAttributeFragment = {
906
912
  readonly: boolean;
907
913
  label?: any | null;
908
914
  description?: any | null;
915
+ required: boolean;
909
916
  multiple_values: boolean;
910
917
  multi_link_display_option?: MultiDisplayOption | null;
911
918
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -940,6 +947,7 @@ export type AttributeDetailsTreeAttributeFragment = {
940
947
  readonly: boolean;
941
948
  label?: any | null;
942
949
  description?: any | null;
950
+ required: boolean;
943
951
  multiple_values: boolean;
944
952
  multi_link_display_option?: MultiDisplayOption | null;
945
953
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3153,6 +3161,7 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
3153
3161
  label?: any | null;
3154
3162
  multiple_values: boolean;
3155
3163
  system: boolean;
3164
+ required: boolean;
3156
3165
  readonly: boolean;
3157
3166
  compute: boolean;
3158
3167
  permissions: {
@@ -3187,6 +3196,7 @@ export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
3187
3196
  label?: any | null;
3188
3197
  multiple_values: boolean;
3189
3198
  system: boolean;
3199
+ required: boolean;
3190
3200
  readonly: boolean;
3191
3201
  compute: boolean;
3192
3202
  embedded_fields?: Array<{
@@ -3219,6 +3229,7 @@ export type AttributesByLibAttributeWithPermissionsTreeAttributeFragment = {
3219
3229
  label?: any | null;
3220
3230
  multiple_values: boolean;
3221
3231
  system: boolean;
3232
+ required: boolean;
3222
3233
  readonly: boolean;
3223
3234
  compute: boolean;
3224
3235
  linked_tree?: {
@@ -3629,6 +3640,7 @@ export type GetAttributeByIdQuery = {
3629
3640
  readonly: boolean;
3630
3641
  label?: any | null;
3631
3642
  description?: any | null;
3643
+ required: boolean;
3632
3644
  multiple_values: boolean;
3633
3645
  multi_link_display_option?: MultiDisplayOption | null;
3634
3646
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3667,6 +3679,7 @@ export type GetAttributeByIdQuery = {
3667
3679
  readonly: boolean;
3668
3680
  label?: any | null;
3669
3681
  description?: any | null;
3682
+ required: boolean;
3670
3683
  multiple_values: boolean;
3671
3684
  multi_link_display_option?: MultiDisplayOption | null;
3672
3685
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3700,6 +3713,7 @@ export type GetAttributeByIdQuery = {
3700
3713
  readonly: boolean;
3701
3714
  label?: any | null;
3702
3715
  description?: any | null;
3716
+ required: boolean;
3703
3717
  multiple_values: boolean;
3704
3718
  multi_link_display_option?: MultiDisplayOption | null;
3705
3719
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3844,6 +3858,7 @@ export type SaveAttributeMutation = {
3844
3858
  readonly: boolean;
3845
3859
  label?: any | null;
3846
3860
  description?: any | null;
3861
+ required: boolean;
3847
3862
  multiple_values: boolean;
3848
3863
  multi_link_display_option?: MultiDisplayOption | null;
3849
3864
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3882,6 +3897,7 @@ export type SaveAttributeMutation = {
3882
3897
  readonly: boolean;
3883
3898
  label?: any | null;
3884
3899
  description?: any | null;
3900
+ required: boolean;
3885
3901
  multiple_values: boolean;
3886
3902
  multi_link_display_option?: MultiDisplayOption | null;
3887
3903
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -3915,6 +3931,7 @@ export type SaveAttributeMutation = {
3915
3931
  readonly: boolean;
3916
3932
  label?: any | null;
3917
3933
  description?: any | null;
3934
+ required: boolean;
3918
3935
  multiple_values: boolean;
3919
3936
  multi_link_display_option?: MultiDisplayOption | null;
3920
3937
  multi_tree_display_option?: MultiDisplayOption | null;
@@ -6961,6 +6978,15 @@ export type SaveValueBatchMutation = {
6961
6978
  }> | null;
6962
6979
  };
6963
6980
  };
6981
+ export type SaveValueBulkMutationVariables = Exact<{
6982
+ libraryId: Scalars['ID'];
6983
+ recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
6984
+ attributeId: Scalars['ID'];
6985
+ mapValues: Array<MapValueInput> | MapValueInput;
6986
+ }>;
6987
+ export type SaveValueBulkMutation = {
6988
+ saveValueBulk: string;
6989
+ };
6964
6990
  export type DeleteViewMutationVariables = Exact<{
6965
6991
  viewId: Scalars['String'];
6966
6992
  }>;
@@ -7196,6 +7222,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
7196
7222
  label?: any | null;
7197
7223
  multiple_values: boolean;
7198
7224
  system: boolean;
7225
+ required: boolean;
7199
7226
  readonly: boolean;
7200
7227
  compute: boolean;
7201
7228
  valuesList?: {
@@ -7229,6 +7256,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
7229
7256
  label?: any | null;
7230
7257
  multiple_values: boolean;
7231
7258
  system: boolean;
7259
+ required: boolean;
7232
7260
  readonly: boolean;
7233
7261
  compute: boolean;
7234
7262
  embedded_fields?: Array<{
@@ -7260,6 +7288,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
7260
7288
  label?: any | null;
7261
7289
  multiple_values: boolean;
7262
7290
  system: boolean;
7291
+ required: boolean;
7263
7292
  readonly: boolean;
7264
7293
  compute: boolean;
7265
7294
  linked_tree?: {
@@ -7397,6 +7426,22 @@ export type ExplorerLinkAttributeQuery = {
7397
7426
  }>;
7398
7427
  } | null;
7399
7428
  };
7429
+ export type CountValuesOccurrencesQueryVariables = Exact<{
7430
+ library: Scalars['ID'];
7431
+ attribute: Scalars['ID'];
7432
+ recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
7433
+ }>;
7434
+ export type CountValuesOccurrencesQuery = {
7435
+ countValuesOccurrences?: {
7436
+ noValueCount: number;
7437
+ occurrences: Array<{
7438
+ count: number;
7439
+ value: {
7440
+ id: string;
7441
+ };
7442
+ }>;
7443
+ } | null;
7444
+ };
7400
7445
  export type ExplorerLibraryDataQueryVariables = Exact<{
7401
7446
  libraryId: Scalars['ID'];
7402
7447
  attributeIds: Array<Scalars['ID']> | Scalars['ID'];
@@ -9371,6 +9416,37 @@ export declare function useSaveValueBatchMutation(baseOptions?: Apollo.MutationH
9371
9416
  export type SaveValueBatchMutationHookResult = ReturnType<typeof useSaveValueBatchMutation>;
9372
9417
  export type SaveValueBatchMutationResult = Apollo.MutationResult<SaveValueBatchMutation>;
9373
9418
  export type SaveValueBatchMutationOptions = Apollo.BaseMutationOptions<SaveValueBatchMutation, SaveValueBatchMutationVariables>;
9419
+ export declare const SaveValueBulkDocument: Apollo.DocumentNode;
9420
+ export type SaveValueBulkMutationFn = Apollo.MutationFunction<SaveValueBulkMutation, SaveValueBulkMutationVariables>;
9421
+ /**
9422
+ * __useSaveValueBulkMutation__
9423
+ *
9424
+ * To run a mutation, you first call `useSaveValueBulkMutation` within a React component and pass it any options that fit your needs.
9425
+ * When your component renders, `useSaveValueBulkMutation` returns a tuple that includes:
9426
+ * - A mutate function that you can call at any time to execute the mutation
9427
+ * - An object with fields that represent the current status of the mutation's execution
9428
+ *
9429
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
9430
+ *
9431
+ * @example
9432
+ * const [saveValueBulkMutation, { data, loading, error }] = useSaveValueBulkMutation({
9433
+ * variables: {
9434
+ * libraryId: // value for 'libraryId'
9435
+ * recordsFilters: // value for 'recordsFilters'
9436
+ * attributeId: // value for 'attributeId'
9437
+ * mapValues: // value for 'mapValues'
9438
+ * },
9439
+ * });
9440
+ */
9441
+ export declare function useSaveValueBulkMutation(baseOptions?: Apollo.MutationHookOptions<SaveValueBulkMutation, SaveValueBulkMutationVariables>): Apollo.MutationTuple<SaveValueBulkMutation, Exact<{
9442
+ libraryId: Scalars["ID"];
9443
+ recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
9444
+ attributeId: Scalars["ID"];
9445
+ mapValues: Array<MapValueInput> | MapValueInput;
9446
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
9447
+ export type SaveValueBulkMutationHookResult = ReturnType<typeof useSaveValueBulkMutation>;
9448
+ export type SaveValueBulkMutationResult = Apollo.MutationResult<SaveValueBulkMutation>;
9449
+ export type SaveValueBulkMutationOptions = Apollo.BaseMutationOptions<SaveValueBulkMutation, SaveValueBulkMutationVariables>;
9374
9450
  export declare const DeleteViewDocument: Apollo.DocumentNode;
9375
9451
  export type DeleteViewMutationFn = Apollo.MutationFunction<DeleteViewMutation, DeleteViewMutationVariables>;
9376
9452
  /**
@@ -9605,6 +9681,44 @@ export type ExplorerLinkAttributeQueryHookResult = ReturnType<typeof useExplorer
9605
9681
  export type ExplorerLinkAttributeLazyQueryHookResult = ReturnType<typeof useExplorerLinkAttributeLazyQuery>;
9606
9682
  export type ExplorerLinkAttributeSuspenseQueryHookResult = ReturnType<typeof useExplorerLinkAttributeSuspenseQuery>;
9607
9683
  export type ExplorerLinkAttributeQueryResult = Apollo.QueryResult<ExplorerLinkAttributeQuery, ExplorerLinkAttributeQueryVariables>;
9684
+ export declare const CountValuesOccurrencesDocument: Apollo.DocumentNode;
9685
+ /**
9686
+ * __useCountValuesOccurrencesQuery__
9687
+ *
9688
+ * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
9689
+ * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
9690
+ * you can use to render your UI.
9691
+ *
9692
+ * @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;
9693
+ *
9694
+ * @example
9695
+ * const { data, loading, error } = useCountValuesOccurrencesQuery({
9696
+ * variables: {
9697
+ * library: // value for 'library'
9698
+ * attribute: // value for 'attribute'
9699
+ * recordFilters: // value for 'recordFilters'
9700
+ * },
9701
+ * });
9702
+ */
9703
+ export declare function useCountValuesOccurrencesQuery(baseOptions: Apollo.QueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.QueryResult<CountValuesOccurrencesQuery, Exact<{
9704
+ library: Scalars["ID"];
9705
+ attribute: Scalars["ID"];
9706
+ recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
9707
+ }>>;
9708
+ export declare function useCountValuesOccurrencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.LazyQueryResultTuple<CountValuesOccurrencesQuery, Exact<{
9709
+ library: Scalars["ID"];
9710
+ attribute: Scalars["ID"];
9711
+ recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
9712
+ }>>;
9713
+ export declare function useCountValuesOccurrencesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.UseSuspenseQueryResult<CountValuesOccurrencesQuery, Exact<{
9714
+ library: Scalars["ID"];
9715
+ attribute: Scalars["ID"];
9716
+ recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
9717
+ }>>;
9718
+ export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountValuesOccurrencesQuery>;
9719
+ export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
9720
+ export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
9721
+ export type CountValuesOccurrencesQueryResult = Apollo.QueryResult<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>;
9608
9722
  export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
9609
9723
  /**
9610
9724
  * __useExplorerLibraryDataQuery__
@@ -307,6 +307,7 @@ export var TaskType;
307
307
  TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
308
308
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
309
309
  TaskType["INDEXATION"] = "INDEXATION";
310
+ TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
310
311
  })(TaskType || (TaskType = {}));
311
312
  export var TreeBehavior;
312
313
  (function (TreeBehavior) {
@@ -395,6 +396,7 @@ export const AttributeDetailsFragmentDoc = gql `
395
396
  readonly
396
397
  label
397
398
  description
399
+ required
398
400
  multiple_values
399
401
  multi_link_display_option
400
402
  multi_tree_display_option
@@ -949,6 +951,7 @@ export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
949
951
  label
950
952
  multiple_values
951
953
  system
954
+ required
952
955
  readonly
953
956
  compute
954
957
  permissions {
@@ -3111,6 +3114,40 @@ export function useSaveValueBatchMutation(baseOptions) {
3111
3114
  const options = { ...defaultOptions, ...baseOptions };
3112
3115
  return Apollo.useMutation(SaveValueBatchDocument, options);
3113
3116
  }
3117
+ export const SaveValueBulkDocument = gql `
3118
+ mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapValues: [MapValueInput!]!) {
3119
+ saveValueBulk(
3120
+ libraryId: $libraryId
3121
+ recordsFilters: $recordsFilters
3122
+ attributeId: $attributeId
3123
+ mapValues: $mapValues
3124
+ )
3125
+ }
3126
+ `;
3127
+ /**
3128
+ * __useSaveValueBulkMutation__
3129
+ *
3130
+ * To run a mutation, you first call `useSaveValueBulkMutation` within a React component and pass it any options that fit your needs.
3131
+ * When your component renders, `useSaveValueBulkMutation` returns a tuple that includes:
3132
+ * - A mutate function that you can call at any time to execute the mutation
3133
+ * - An object with fields that represent the current status of the mutation's execution
3134
+ *
3135
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
3136
+ *
3137
+ * @example
3138
+ * const [saveValueBulkMutation, { data, loading, error }] = useSaveValueBulkMutation({
3139
+ * variables: {
3140
+ * libraryId: // value for 'libraryId'
3141
+ * recordsFilters: // value for 'recordsFilters'
3142
+ * attributeId: // value for 'attributeId'
3143
+ * mapValues: // value for 'mapValues'
3144
+ * },
3145
+ * });
3146
+ */
3147
+ export function useSaveValueBulkMutation(baseOptions) {
3148
+ const options = { ...defaultOptions, ...baseOptions };
3149
+ return Apollo.useMutation(SaveValueBulkDocument, options);
3150
+ }
3114
3151
  export const DeleteViewDocument = gql `
3115
3152
  mutation DELETE_VIEW($viewId: String!) {
3116
3153
  deleteView(viewId: $viewId) {
@@ -3423,6 +3460,55 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3423
3460
  const options = { ...defaultOptions, ...baseOptions };
3424
3461
  return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3425
3462
  }
3463
+ export const CountValuesOccurrencesDocument = gql `
3464
+ query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3465
+ countValuesOccurrences(
3466
+ library: $library
3467
+ attribute: $attribute
3468
+ recordFilters: $recordFilters
3469
+ ) {
3470
+ noValueCount
3471
+ occurrences {
3472
+ ... on TreeValueOccurrences {
3473
+ value {
3474
+ id
3475
+ }
3476
+ }
3477
+ count
3478
+ }
3479
+ }
3480
+ }
3481
+ `;
3482
+ /**
3483
+ * __useCountValuesOccurrencesQuery__
3484
+ *
3485
+ * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
3486
+ * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3487
+ * you can use to render your UI.
3488
+ *
3489
+ * @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;
3490
+ *
3491
+ * @example
3492
+ * const { data, loading, error } = useCountValuesOccurrencesQuery({
3493
+ * variables: {
3494
+ * library: // value for 'library'
3495
+ * attribute: // value for 'attribute'
3496
+ * recordFilters: // value for 'recordFilters'
3497
+ * },
3498
+ * });
3499
+ */
3500
+ export function useCountValuesOccurrencesQuery(baseOptions) {
3501
+ const options = { ...defaultOptions, ...baseOptions };
3502
+ return Apollo.useQuery(CountValuesOccurrencesDocument, options);
3503
+ }
3504
+ export function useCountValuesOccurrencesLazyQuery(baseOptions) {
3505
+ const options = { ...defaultOptions, ...baseOptions };
3506
+ return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
3507
+ }
3508
+ export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3509
+ const options = { ...defaultOptions, ...baseOptions };
3510
+ return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3511
+ }
3426
3512
  export const ExplorerLibraryDataDocument = gql `
3427
3513
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3428
3514
  records(