@leav/ui 0.3.6-1190202 → 0.3.6-1e8a80b

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 (221) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -1
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/value.js +3 -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 +367 -72
  13. package/dist/_gqlTypes/index.js +202 -48
  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 +5 -3
  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 +2 -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 +3 -4
  34. package/dist/components/Explorer/Explorer.js +22 -25
  35. package/dist/components/Explorer/Explorer.js.map +1 -1
  36. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  37. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  38. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  39. package/dist/components/Explorer/_constants.d.ts +4 -0
  40. package/dist/components/Explorer/_constants.js +17 -0
  41. package/dist/components/Explorer/_constants.js.map +1 -0
  42. package/dist/components/Explorer/_queries/useExplorerData.d.ts +15 -7
  43. package/dist/components/Explorer/_queries/useExplorerData.js +136 -19
  44. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  45. package/dist/components/Explorer/_types.d.ts +33 -1
  46. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  47. package/dist/components/Explorer/conditionsHelper.js +16 -0
  48. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  49. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  50. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  51. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  52. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +5 -0
  53. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  54. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  55. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +11 -21
  56. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  57. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +1 -2
  58. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +3 -3
  59. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  60. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  61. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +10 -0
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  68. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  69. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  70. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  71. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  72. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  73. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  74. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  75. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  76. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  77. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  78. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  79. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +60 -6
  80. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  81. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
  82. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
  83. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +11 -27
  84. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  85. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
  86. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +11 -26
  87. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  88. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +6 -9
  89. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +25 -7
  90. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  91. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -0
  92. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  93. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +2 -0
  94. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +24 -6
  95. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  96. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  97. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +45 -28
  98. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  99. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +20 -20
  100. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  101. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +12 -1
  102. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  103. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +26 -11
  104. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +58 -23
  105. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  106. package/dist/components/Explorer/useEditAction.js +3 -3
  107. package/dist/components/Explorer/useEditAction.js.map +1 -1
  108. package/dist/components/Explorer/useSearchInput.js +1 -1
  109. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  110. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  111. package/dist/components/Explorer/useViewSettingsReducer.js +125 -0
  112. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  113. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  114. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  115. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  116. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  117. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  118. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  119. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  120. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  121. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  122. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  123. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  124. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  125. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  126. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  127. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  128. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  129. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  130. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  131. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  132. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -16
  133. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  134. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +16 -3
  135. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  136. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -0
  137. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  138. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -2
  139. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +6 -3
  140. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  141. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  142. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  143. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  144. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  145. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  148. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  149. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  152. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  153. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -7
  154. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  155. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  156. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  157. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  158. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -0
  159. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +16 -36
  160. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  161. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
  162. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  163. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +9 -6
  164. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  165. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +18 -5
  166. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  167. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +9 -5
  168. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  169. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +9 -8
  170. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  171. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +13 -6
  172. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  173. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +9 -10
  174. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  175. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +4 -2
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -1
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +15 -3
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +2 -0
  181. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  182. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  183. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  184. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  185. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  186. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  187. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +35 -3
  188. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  189. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  190. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  191. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  192. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  193. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  194. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  195. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  196. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  197. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  198. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  199. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  200. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  201. package/dist/constants.d.ts +1 -0
  202. package/dist/constants.js +1 -0
  203. package/dist/constants.js.map +1 -1
  204. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  205. package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
  206. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  207. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  208. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  209. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  210. package/dist/locales/en/shared.json +19 -6
  211. package/dist/locales/fr/shared.json +19 -6
  212. package/dist/types/views.d.ts +4 -4
  213. package/package.json +2 -2
  214. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +0 -2
  215. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +0 -41
  216. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +0 -1
  217. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
  218. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -69
  219. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
  220. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  221. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare const ExplorerFilterBar: FunctionComponent;
@@ -1,41 +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 { FilterDropDown } from '../manage-view-settings/filter-items/filter-type/FilterDropDown';
9
- import { FaTrash } from 'react-icons/fa';
10
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
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(FilterStyled, { expandable: true, label: filter.attribute.label, values: filter.value === null ? [] : [filter.value], dropDownProps: {
37
- placement: 'bottomLeft',
38
- dropdownRender: () => _jsx(FilterDropDown, { filter: filter })
39
- } }, 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') })] }) }));
40
- };
41
- //# 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,sB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AAE,GAAG,EAAE,CAAC,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI;yBAC3D,IAPI,MAAM,CAAC,EAAE,CAQhB,CACL,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,3 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IFilterDropDownProps } from '../../../../../components/Explorer/_types';
3
- export declare const SimpleFilterDropdown: FunctionComponent<IFilterDropDownProps>;
@@ -1,69 +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 { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
6
- import { KitButton, KitDivider, KitSelect, KitSpace } from 'aristid-ds';
7
- import { FaClock, FaTrash } from 'react-icons/fa';
8
- import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
9
- import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
10
- import { FilterValueList } from './FilterValueList';
11
- // TODO : This is an exemple file showing ho to customize dropdown Panel content. Don't mind the content of the file, missing types,... it's just an example.
12
- const conditions = [
13
- {
14
- label: 'Egal à',
15
- value: 'eq'
16
- },
17
- {
18
- label: 'Différent de',
19
- value: 'neq'
20
- },
21
- {
22
- label: 'Commence par',
23
- value: 'start'
24
- },
25
- {
26
- label: 'Contient',
27
- value: 'contains'
28
- },
29
- {
30
- label: 'Ne contient pas',
31
- value: 'not_contains'
32
- },
33
- {
34
- label: 'Est dans la liste',
35
- value: 'in'
36
- },
37
- {
38
- label: "N'est pas dans la liste",
39
- value: 'not_in'
40
- }
41
- ];
42
- const attributeValuesList = ['toto', 'tata', 'Value 3', 'Value 4', 'Value 5'];
43
- export const SimpleFilterDropdown = ({ filter }) => {
44
- const { t } = useSharedTranslation();
45
- const { dispatch } = useViewSettingsContext();
46
- const updateFilter = data => {
47
- dispatch({
48
- type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
49
- payload: {
50
- id: filter.id,
51
- ...data
52
- }
53
- });
54
- };
55
- const onConditionChanged = operator => {
56
- updateFilter({ ...filter, operator });
57
- };
58
- const onValueClick = value => {
59
- updateFilter({ ...filter, value });
60
- };
61
- const _onDeleteFilter = () => dispatch({
62
- type: ViewSettingsActionTypes.REMOVE_FILTER,
63
- payload: {
64
- id: filter.id
65
- }
66
- });
67
- return (_jsxs(KitSpace, { size: "xxs", direction: "vertical", children: [_jsx(KitSelect, { options: conditions, onChange: onConditionChanged, value: filter.condition }), _jsx(FilterValueList, { values: attributeValuesList, multiple: false, freeEntry: false, selectedValues: filter.value === null ? [] : [filter.value], onSelectionChanged: onValueClick }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaClock, {}), disabled: true, children: t('explorer.reset-filter') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') })] }));
68
- };
69
- //# sourceMappingURL=SimpleFilterDropDown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleFilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QA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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"}