@leav/ui 0.3.6-b38d2c9 → 0.3.6-b3a1065

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 (176) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +8 -1
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/value.js +2 -1
  5. package/dist/__mocks__/common/value.js.map +1 -1
  6. package/dist/__mocks__/common/view.js +7 -5
  7. package/dist/__mocks__/common/view.js.map +1 -1
  8. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  9. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  10. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  11. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  12. package/dist/_gqlTypes/index.d.ts +99 -47
  13. package/dist/_gqlTypes/index.js +62 -20
  14. package/dist/_gqlTypes/index.js.map +1 -1
  15. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  16. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  17. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  18. package/dist/_queries/records/getRecordColumnsValues.d.ts +4 -2
  19. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  20. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  21. package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
  22. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  23. package/dist/_queries/views/saveViewMutation.js +1 -1
  24. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  25. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  26. package/dist/_utils/index.js +5 -2
  27. package/dist/_utils/index.js.map +1 -1
  28. package/dist/_utils/interleaveElement.d.ts +1 -0
  29. package/dist/_utils/interleaveElement.js +5 -0
  30. package/dist/_utils/interleaveElement.js.map +1 -0
  31. package/dist/components/Explorer/DataView.js +2 -1
  32. package/dist/components/Explorer/DataView.js.map +1 -1
  33. package/dist/components/Explorer/Explorer.d.ts +2 -3
  34. package/dist/components/Explorer/Explorer.js +7 -13
  35. package/dist/components/Explorer/Explorer.js.map +1 -1
  36. package/dist/components/Explorer/_constants.d.ts +4 -0
  37. package/dist/components/Explorer/_constants.js +17 -0
  38. package/dist/components/Explorer/_constants.js.map +1 -0
  39. package/dist/components/Explorer/_queries/useExplorerData.d.ts +6 -4
  40. package/dist/components/Explorer/_queries/useExplorerData.js +76 -12
  41. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  42. package/dist/components/Explorer/_types.d.ts +8 -0
  43. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  44. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  45. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  46. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +7 -7
  47. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  49. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +37 -0
  50. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  51. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  52. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +90 -0
  53. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  54. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +6 -0
  55. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  56. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +1 -1
  57. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +8 -3
  58. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  59. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +1 -1
  60. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +13 -10
  61. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -1
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +1 -1
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +9 -3
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +5 -9
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +31 -3
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  68. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -0
  69. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  70. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +2 -0
  71. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +24 -6
  72. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  73. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  74. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +45 -28
  75. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  76. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +20 -20
  77. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  78. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +7 -1
  79. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  80. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +23 -10
  81. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +48 -23
  82. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  83. package/dist/components/Explorer/nullValuesConditions.d.ts +1 -0
  84. package/dist/components/Explorer/nullValuesConditions.js +14 -0
  85. package/dist/components/Explorer/nullValuesConditions.js.map +1 -0
  86. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  87. package/dist/components/Explorer/useViewSettingsReducer.js +103 -0
  88. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  89. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  90. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  91. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  92. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  93. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  94. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  95. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  96. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  97. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  98. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  99. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  100. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  101. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  102. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  103. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  104. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  105. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  106. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  107. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  108. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -16
  109. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  110. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +15 -2
  111. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  112. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -0
  113. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  114. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -2
  115. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +6 -3
  116. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  117. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  118. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  119. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  120. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +1 -1
  121. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  122. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  123. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  124. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  125. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  126. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -7
  127. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  128. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  129. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  130. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  131. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -0
  132. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +16 -36
  133. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  134. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
  135. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  136. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +9 -6
  137. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  138. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +18 -5
  139. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  140. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +9 -5
  141. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  142. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +9 -8
  143. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  144. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +13 -6
  145. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +9 -10
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  148. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +4 -2
  149. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +15 -3
  152. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  153. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +2 -0
  154. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  155. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  156. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  157. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  158. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  159. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  160. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +31 -3
  161. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  162. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  163. package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
  164. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  165. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  166. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  167. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  168. package/dist/locales/en/shared.json +8 -5
  169. package/dist/locales/fr/shared.json +8 -5
  170. package/dist/types/views.d.ts +4 -4
  171. package/package.json +2 -2
  172. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +0 -2
  173. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +0 -38
  174. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +0 -1
  175. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  176. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { useAddViewMutation } from '../../_gqlTypes';
1
+ import { useSaveViewMutation } from '../../_gqlTypes';
2
2
  import { getViewsListQuery } from '../../_queries/views/getViewsListQuery';
3
- export default function useExecuteAddViewMutation() {
4
- const [executeAddView] = useAddViewMutation();
3
+ export default function useExecuteSaveViewMutation() {
4
+ const [executeSaveView] = useSaveViewMutation();
5
5
  return {
6
- addView(variables) {
7
- return executeAddView({
6
+ saveView(variables) {
7
+ return executeSaveView({
8
8
  variables,
9
9
  update: (cache, mutationResult, options) => {
10
10
  if (options.variables.view.id) {
@@ -33,4 +33,4 @@ export default function useExecuteAddViewMutation() {
33
33
  }
34
34
  };
35
35
  }
36
- //# sourceMappingURL=useExecuteAddViewMutation.js.map
36
+ //# sourceMappingURL=useExecuteSaveViewMutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExecuteSaveViewMutation.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,mBAAmB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AAMvE,MAAM,CAAC,OAAO,UAAU,0BAA0B;IAC9C,MAAM,CAAC,eAAe,CAAC,GAAG,mBAAmB,EAAE,CAAC;IAEhD,OAAO;QACH,QAAQ,CAAC,SAAS;YACd,OAAO,eAAe,CAAC;gBACnB,SAAS;gBACT,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE;oBACvC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;wBAC5B,OAAO,CAAC,iBAAiB;oBAC7B,CAAC;oBAED,MAAM,aAAa,GAAG;wBAClB,KAAK,EAAE,iBAAiB;wBACxB,SAAS,EAAE;4BACP,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO;yBAC5C;qBACJ,CAAC;oBAEF,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAgD,aAAa,CAAC,CAAC;oBAEhG,IAAI,SAAS,EAAE,CAAC;wBACZ,KAAK,CAAC,UAAU,CAAgD;4BAC5D,GAAG,aAAa;4BAChB,IAAI,EAAE;gCACF,KAAK,EAAE;oCACH,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC;oCAC7D,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC;iCAC7C;6BACJ;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -456,8 +456,9 @@
456
456
  "cancel_confirm_modal_title": "Confirm cancellation?",
457
457
  "cancel_confirm_modal_content": "You are about to cancel the creation.",
458
458
  "cancel_confirm_modal_question": "Are you sure?",
459
- "inherited_input_helper": "Inherited value: {{- inheritedValue}}",
460
- "calculated_input_helper": "Calculated value: {{- calculatedValue}}",
459
+ "inherited_value": "Inherited value",
460
+ "calculated_value": "Calculated value",
461
+ "overrided_value": "Overrided value",
461
462
  "date_range_from_to": "from {{- from}} to {{- to}}",
462
463
  "link_search_result_count": "Results ({{count}}/{{total}})",
463
464
  "suggestions_count": "Suggestions ({{count}})",
@@ -635,12 +636,12 @@
635
636
  "active": "Active sorts",
636
637
  "inactive": "Inactive sorts"
637
638
  },
638
- "filter-list": {
639
+ "toolbar": {
639
640
  "active": "Active filters",
640
641
  "inactive": "Inactive filters"
641
642
  },
642
643
  "reset-filter": "Reset filter",
643
- "delete-filters": "Delete all filters",
644
+ "reset-view": "Reset view",
644
645
  "empty-data": "No items found.",
645
646
  "available-attributes": "Other available attributes",
646
647
  "coming-soon": "Coming soon",
@@ -653,6 +654,8 @@
653
654
  "active-items-number": "{{count, number}} active",
654
655
  "active-items-number_zero": "None",
655
656
  "invalid-value": "Invalid value",
656
- "type-a-value": "Type a value"
657
+ "type-a-value": "Type a value",
658
+ "save-view": "Save",
659
+ "reinit-view": "Reset"
657
660
  }
658
661
  }
@@ -456,8 +456,9 @@
456
456
  "cancel_confirm_modal_title": "Confirmer l'abandon?",
457
457
  "cancel_confirm_modal_content": "Vous êtes sur le point d'abandonner la création.",
458
458
  "cancel_confirm_modal_question": "Êtes-vous sûr(e) ?",
459
- "inherited_input_helper": "Valeur héritée : {{- inheritedValue }}",
460
- "calculated_input_helper": "Valeur calculée : {{- calculatedValue}}",
459
+ "inherited_value": "Valeur héritée",
460
+ "calculated_value": "Valeur calculée",
461
+ "overrided_value": "Valeur surchargée",
461
462
  "date_range_from_to": "du {{- from}} au {{- to}}",
462
463
  "link_search_result_count": "Résultats ({{count}}/{{total}})",
463
464
  "suggestions_count": "Suggestions ({{count}})",
@@ -633,12 +634,12 @@
633
634
  "active": "Tris actifs",
634
635
  "inactive": "Tris inactifs"
635
636
  },
636
- "filter-list": {
637
+ "toolbar": {
637
638
  "active": "Filtres actifs",
638
639
  "inactive": "Filtres inactifs"
639
640
  },
640
641
  "reset-filter": "Réinitialiser le filtre",
641
- "delete-filters": "Supprimer tous les filtres",
642
+ "reset-view": "Réinitialiser la vue",
642
643
  "empty-data": "Aucun élément trouvé.",
643
644
  "sort-ascending": "Ascendant",
644
645
  "sort-descending": "Descendant",
@@ -653,6 +654,8 @@
653
654
  "active-items-number": "{{count, number}} actifs",
654
655
  "active-items-number_zero": "Aucun",
655
656
  "invalid-value": "Valeur invalide",
656
- "type-a-value": "Saisissez une valeur"
657
+ "type-a-value": "Saisissez une valeur",
658
+ "save-view": "Enregistrer",
659
+ "reinit-view": "Réinitialiser"
657
660
  }
658
661
  }
@@ -13,12 +13,12 @@ export interface IView {
13
13
  color?: string;
14
14
  filters?: IFilter[];
15
15
  valuesVersions?: IValueVersion;
16
- settings?: IGetViewListSettings[];
17
- sort?: IGetViewListSort;
16
+ sort?: IGetViewListSort[];
17
+ attributes?: string[];
18
18
  }
19
19
  export interface IViewDisplay {
20
20
  type: ViewTypes;
21
- size: ViewSizes;
21
+ size?: ViewSizes;
22
22
  }
23
23
  export interface IGetViewListSort {
24
24
  field: string;
@@ -29,6 +29,6 @@ export interface IGetViewListSettings {
29
29
  value?: any;
30
30
  }
31
31
  export interface IGetViewListDisplay {
32
- size: ViewSizes;
32
+ size?: ViewSizes;
33
33
  type: ViewTypes;
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leav/ui",
3
- "version": "0.3.6-b38d2c9",
3
+ "version": "0.3.6-b3a1065",
4
4
  "description": "Shared React components and hooks",
5
5
  "scripts": {
6
6
  "prepublishOnly": "yarn build",
@@ -52,7 +52,7 @@
52
52
  "@ant-design/icons": ">=5.2",
53
53
  "@apollo/client": ">=3.8.1",
54
54
  "antd": "5.15.3",
55
- "aristid-ds": "11.0.0-1547659",
55
+ "aristid-ds": "11.0.0-6ec698b",
56
56
  "dayjs": "^1.11.10",
57
57
  "i18next": "22.5",
58
58
  "react": "18.2.0",
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare const ExplorerFilterBar: FunctionComponent;
@@ -1,38 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import styled from 'styled-components';
6
- import { useViewSettingsContext } from '../manage-view-settings/store-view-settings/useViewSettingsContext';
7
- import { KitButton, KitDivider, KitFilter, KitSpace } from 'aristid-ds';
8
- import { FaTrash } from 'react-icons/fa';
9
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
- import { CommonFilterItem } from '../manage-view-settings/_shared/CommonFilterItem';
11
- const FilterStyled = styled(KitFilter) `
12
- flex: 0 0 auto;
13
- `;
14
- const ExplorerFilterBarStyledDiv = styled.div `
15
- overflow: auto;
16
- padding: 0 calc(var(--general-spacing-xxs) * 1px);
17
- padding-bottom: calc(var(--general-spacing-m) * 1px);
18
- `;
19
- const ExplorerBarItemsListDiv = styled.div `
20
- display: flex;
21
- flex-wrap: nowrap;
22
- align-items: center;
23
- gap: 0;
24
- white-space: nowrap;
25
- padding-top: calc(var(--general-spacing-xs) * 1px);
26
- `;
27
- const DividerStyled = styled(KitDivider) `
28
- height: 2em;
29
- `;
30
- export const ExplorerFilterBar = () => {
31
- const { t } = useSharedTranslation();
32
- const { view: { filters } } = useViewSettingsContext();
33
- if (filters.length === 0) {
34
- return null;
35
- }
36
- return (_jsx(ExplorerFilterBarStyledDiv, { children: _jsxs(ExplorerBarItemsListDiv, { children: [_jsx(KitSpace, { size: "s", children: filters.map(filter => (_jsx(CommonFilterItem, { filter: filter }, filter.id))) }), _jsx(DividerStyled, { type: "vertical" }), _jsx(FilterStyled, { as: KitButton, type: "secondary", size: "s", danger: true, icon: _jsx(FaTrash, {}), disabled: true, children: t('explorer.delete-filters') })] }) }));
37
- };
38
- //# sourceMappingURL=ExplorerFilterBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExplorerFilterBar.js","sourceRoot":"","sources":["../../../../src/components/Explorer/display-view-filters/ExplorerFilterBar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,oEAAoE,CAAC;AAC1G,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,kDAAkD,CAAC;AAElF,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI5C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOzC,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAEvC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAsB,GAAG,EAAE;IACrD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EACF,IAAI,EAAE,EAAC,OAAO,EAAC,EAClB,GAAG,sBAAsB,EAAE,CAAC;IAE7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,0BAA0B,cACvB,MAAC,uBAAuB,eACpB,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,YACb,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACnB,KAAC,gBAAgB,IAAiB,MAAM,EAAE,MAAM,IAAzB,MAAM,CAAC,EAAE,CAAoB,CACvD,CAAC,GACK,EACX,KAAC,aAAa,IAAC,IAAI,EAAC,UAAU,GAAG,EACjC,KAAC,YAAY,IAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,GAAG,EAAC,MAAM,QAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,QAAQ,kBACpF,CAAC,CAAC,yBAAyB,CAAC,GAClB,IACO,GACD,CAChC,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { FetchResult } from '@apollo/client';
2
- import { AddViewMutation, AddViewMutationVariables } from '../../_gqlTypes';
3
- export interface IUseAddViewMutationHook {
4
- addView: (variables: AddViewMutationVariables) => Promise<FetchResult<AddViewMutation>>;
5
- }
6
- export default function useExecuteAddViewMutation(): IUseAddViewMutationHook;
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecuteAddViewMutation.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,kBAAkB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AAMvE,MAAM,CAAC,OAAO,UAAU,yBAAyB;IAC7C,MAAM,CAAC,cAAc,CAAC,GAAG,kBAAkB,EAAE,CAAC;IAE9C,OAAO;QACH,OAAO,CAAC,SAAS;YACb,OAAO,cAAc,CAAC;gBAClB,SAAS;gBACT,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE;oBACvC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;wBAC5B,OAAO,CAAC,iBAAiB;oBAC7B,CAAC;oBAED,MAAM,aAAa,GAAG;wBAClB,KAAK,EAAE,iBAAiB;wBACxB,SAAS,EAAE;4BACP,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO;yBAC5C;qBACJ,CAAC;oBAEF,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAgD,aAAa,CAAC,CAAC;oBAEhG,IAAI,SAAS,EAAE,CAAC;wBACZ,KAAK,CAAC,UAAU,CAAgD;4BAC5D,GAAG,aAAa;4BAChB,IAAI,EAAE;gCACF,KAAK,EAAE;oCACH,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC;oCAC7D,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC;iCAC7C;6BACJ;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC"}