@leav/ui 1.4.1-f650c8a5 → 1.4.1-fd2a546d

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 (194) hide show
  1. package/dist/_gqlTypes/index.d.ts +47 -0
  2. package/dist/_gqlTypes/index.js +42 -0
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/components/Explorer/Explorer.js +42 -31
  5. package/dist/components/Explorer/Explorer.js.map +1 -1
  6. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +8 -12
  7. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
  8. package/dist/components/Explorer/ExplorerToolbar.js +6 -3
  9. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  10. package/dist/components/Explorer/_constants.d.ts +1 -0
  11. package/dist/components/Explorer/_constants.js +1 -0
  12. package/dist/components/Explorer/_constants.js.map +1 -1
  13. package/dist/components/Explorer/_queries/useExplorerData.d.ts +3 -2
  14. package/dist/components/Explorer/_queries/useExplorerData.js +1 -1
  15. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  16. package/dist/components/Explorer/_types.d.ts +3 -115
  17. package/dist/components/Explorer/_types.js +1 -12
  18. package/dist/components/Explorer/_types.js.map +1 -1
  19. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +17 -8
  20. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  21. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -5
  22. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  23. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
  24. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +14 -7
  25. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  26. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
  27. package/dist/components/Explorer/actions-mass/useMassActions.js +4 -4
  28. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  29. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +3 -3
  30. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  31. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -1
  32. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  33. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
  34. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -6
  35. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  36. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +15 -3
  37. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  38. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +4 -0
  39. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  40. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +4 -2
  41. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  42. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +15 -3
  43. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  44. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +1 -4
  45. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  46. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -9
  47. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +4 -128
  48. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  49. package/dist/components/Explorer/useLoadView.js +15 -8
  50. package/dist/components/Explorer/useLoadView.js.map +1 -1
  51. package/dist/components/Explorer/useViewSettingsReducer.js +5 -10
  52. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  53. package/dist/components/Filters/FiltersProvider.d.ts +3 -0
  54. package/dist/components/Filters/FiltersProvider.js +8 -0
  55. package/dist/components/Filters/FiltersProvider.js.map +1 -0
  56. package/dist/components/Filters/_types.d.ts +130 -0
  57. package/dist/components/Filters/_types.js +14 -0
  58. package/dist/components/Filters/_types.js.map +1 -0
  59. package/dist/components/Filters/conditionsHelper.d.ts +2 -0
  60. package/dist/components/Filters/conditionsHelper.js +16 -0
  61. package/dist/components/Filters/conditionsHelper.js.map +1 -0
  62. package/dist/components/Filters/context/filtersContext.d.ts +6 -0
  63. package/dist/components/Filters/context/filtersContext.js +9 -0
  64. package/dist/components/Filters/context/filtersContext.js.map +1 -0
  65. package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
  66. package/dist/components/Filters/context/filtersInitialState.js +10 -0
  67. package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
  68. package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
  69. package/dist/components/Filters/context/filtersReducer.js +179 -0
  70. package/dist/components/Filters/context/filtersReducer.js.map +1 -0
  71. package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
  72. package/dist/components/Filters/context/useFiltersReducer.js +68 -0
  73. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
  74. package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
  75. package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
  76. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
  77. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.js +16 -8
  78. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  79. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +1 -1
  80. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  81. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +3 -3
  82. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  83. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +1 -1
  84. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  85. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +1 -1
  86. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  87. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +1 -1
  88. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  89. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  90. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +9 -9
  91. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
  92. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
  93. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +6 -6
  94. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  95. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
  96. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +5 -5
  97. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  98. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +6 -6
  99. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  100. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +2 -2
  101. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  102. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +2 -2
  103. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  104. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +5 -5
  105. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  106. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
  107. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
  108. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
  109. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +14 -14
  110. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  111. package/dist/components/Filters/index.d.ts +8 -0
  112. package/dist/components/Filters/index.js +12 -0
  113. package/dist/components/Filters/index.js.map +1 -0
  114. package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
  115. package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +12 -11
  116. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
  117. package/dist/components/Filters/useFilters.d.ts +1724 -0
  118. package/dist/components/Filters/useFilters.js +28 -0
  119. package/dist/components/Filters/useFilters.js.map +1 -0
  120. package/dist/components/Filters/useFiltersContext.d.ts +4 -0
  121. package/dist/components/Filters/useFiltersContext.js +13 -0
  122. package/dist/components/Filters/useFiltersContext.js.map +1 -0
  123. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +7 -7
  124. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +8 -8
  125. package/dist/components/Filters/useTransformFilters.js.map +1 -0
  126. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +4 -4
  127. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  128. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
  129. package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
  130. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
  131. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
  132. package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
  133. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
  134. package/dist/components/Notifications/index.d.ts +1 -0
  135. package/dist/components/Notifications/index.js +5 -0
  136. package/dist/components/Notifications/index.js.map +1 -0
  137. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +9 -2
  138. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  139. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +5 -2
  140. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  141. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +12 -4
  142. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  143. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -1
  144. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -1
  145. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +1 -1
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -1
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -1
  148. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -1
  149. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +14 -2
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  152. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
  153. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  154. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +1 -1
  155. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  156. package/dist/components/index.d.ts +2 -0
  157. package/dist/components/index.js +2 -0
  158. package/dist/components/index.js.map +1 -1
  159. package/dist/locales/en/shared.json +17 -4
  160. package/dist/locales/fr/shared.json +17 -4
  161. package/package.json +3 -3
  162. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
  163. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
  164. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
  165. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
  166. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
  184. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
  185. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
  186. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
  187. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
  188. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
  189. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
  190. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
  191. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
  192. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
  193. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
  194. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
@@ -1,21 +1,21 @@
1
- import { AttributeFormat, type RecordFilterCondition } from '../../../../../_gqlTypes';
2
- import { type ExplorerFilter } from '../../../_types';
3
- import { type AttributeConditionType, type ThroughConditionFilter } from '../../../../../types';
1
+ import { AttributeFormat, type RecordFilterCondition } from '../../../../_gqlTypes';
2
+ import { type AttributeConditionType, type ThroughConditionFilter } from '../../../../types';
4
3
  import { type TFunction } from 'i18next';
4
+ import { type UIFilter } from '../../_types';
5
5
  export declare const conditionsByFormat: Record<AttributeFormat, RecordFilterCondition[]>;
6
6
  export declare const linkFilterConditions: Array<RecordFilterCondition | ThroughConditionFilter>;
7
7
  export declare const treeFilterConditions: RecordFilterCondition[];
8
8
  export declare const valueListTextConditions: RecordFilterCondition[];
9
- interface IExplorerFilterConditionOption<T> {
9
+ interface IUIFilterConditionOption<T> {
10
10
  label: string;
11
11
  value: T;
12
12
  textByFormat?: {
13
13
  [key in AttributeFormat]?: string;
14
14
  };
15
15
  }
16
- export declare const getAttributeConditionOptions: (t: TFunction) => Array<IExplorerFilterConditionOption<AttributeConditionType>>;
17
- export declare const getFirstConditionByFilterType: (filter: ExplorerFilter) => Array<RecordFilterCondition | ThroughConditionFilter>;
18
- export declare const useConditionsOptionsByType: (filter: ExplorerFilter) => {
16
+ export declare const getAttributeConditionOptions: (t: TFunction) => Array<IUIFilterConditionOption<AttributeConditionType>>;
17
+ export declare const getFirstConditionByFilterType: (filter: UIFilter) => Array<RecordFilterCondition | ThroughConditionFilter>;
18
+ export declare const useConditionsOptionsByType: (filter: UIFilter) => {
19
19
  conditionOptionsByType: {
20
20
  label: string;
21
21
  value: AttributeConditionType;
@@ -1,10 +1,10 @@
1
1
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import { AttributeFormat } from '../../../../../_gqlTypes';
5
- import { isExplorerFilterLink, isExplorerFilterStandard, isExplorerFilterThrough, isExplorerFilterTree, isExplorerFilterValueList } from '../../../_types';
6
- import { AttributeConditionFilter } from '../../../../../types';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
4
+ import { AttributeFormat } from '../../../../_gqlTypes';
5
+ import { AttributeConditionFilter } from '../../../../types';
6
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
7
+ import { isUIFilterLink, isUIFilterStandard, isUIFilterThrough, isUIFilterTree, isUIFilterValueList } from '../../_types';
8
8
  export const conditionsByFormat = {
9
9
  [AttributeFormat.text]: [
10
10
  AttributeConditionFilter.CONTAINS,
@@ -104,19 +104,19 @@ export const getAttributeConditionOptions = (t) => [
104
104
  { label: t('filters.through'), value: AttributeConditionFilter.THROUGH }
105
105
  ];
106
106
  export const getFirstConditionByFilterType = (filter) => {
107
- if (isExplorerFilterValueList(filter)) {
107
+ if (isUIFilterValueList(filter)) {
108
108
  return valueListTextConditions;
109
109
  }
110
- if (isExplorerFilterStandard(filter)) {
110
+ if (isUIFilterStandard(filter)) {
111
111
  return conditionsByFormat[filter.attribute.format] ?? [];
112
112
  }
113
- if (isExplorerFilterLink(filter)) {
113
+ if (isUIFilterLink(filter)) {
114
114
  return linkFilterConditions ?? [];
115
115
  }
116
- if (isExplorerFilterTree(filter)) {
116
+ if (isUIFilterTree(filter)) {
117
117
  return treeFilterConditions ?? [];
118
118
  }
119
- if (isExplorerFilterThrough(filter)) {
119
+ if (isUIFilterThrough(filter)) {
120
120
  return [AttributeConditionFilter.THROUGH];
121
121
  }
122
122
  return [];
@@ -127,22 +127,22 @@ export const useConditionsOptionsByType = (filter) => {
127
127
  conditionOptionsByType: getAttributeConditionOptions(t)
128
128
  .filter(({ value }) => {
129
129
  // Use special condition set for text fields with closed list values
130
- if (isExplorerFilterValueList(filter)) {
130
+ if (isUIFilterValueList(filter)) {
131
131
  return valueListTextConditions.includes(value);
132
132
  }
133
- if (isExplorerFilterStandard(filter)) {
133
+ if (isUIFilterStandard(filter)) {
134
134
  return conditionsByFormat[filter.attribute.format].includes(value);
135
135
  }
136
- if (isExplorerFilterLink(filter) || isExplorerFilterThrough(filter)) {
136
+ if (isUIFilterLink(filter) || isUIFilterThrough(filter)) {
137
137
  return linkFilterConditions.includes(value);
138
138
  }
139
- if (isExplorerFilterTree(filter)) {
139
+ if (isUIFilterTree(filter)) {
140
140
  return treeFilterConditions.includes(value);
141
141
  }
142
142
  })
143
143
  .map(option => ({
144
144
  ...option,
145
- label: isExplorerFilterStandard(filter) && option.textByFormat?.[filter.attribute.format]
145
+ label: isUIFilterStandard(filter) && option.textByFormat?.[filter.attribute.format]
146
146
  ? option.textByFormat?.[filter.attribute.format]
147
147
  : option.label
148
148
  }))
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConditionOptionsByType.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/useConditionOptionsByType.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAA6B,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,wBAAwB,EAA2D,MAAM,WAAW,CAAC;AAE7G,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,kBAAkB,GAAqD;IAChF,CAAC,eAAe,CAAC,IAAI,CAAC,EA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CAAC;QACL,CAAC,CAAC;aACD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,MAAM;YACT,KAAK,EACD,kBAAkB,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;gBACxE,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;gBAChD,CAAC,CAAC,MAAM,CAAC,KAAK;SACzB,CAAC,CAAC;KACV,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { useFilters } from './useFilters';
2
+ export { useFiltersContext } from './useFiltersContext';
3
+ export { useTransformFilters } from './useTransformFilters';
4
+ export { FiltersProvider } from './FiltersProvider';
5
+ export { prepareFiltersForRequest } from './prepareFiltersForRequest';
6
+ export { useFiltersReducer } from './context/useFiltersReducer';
7
+ export { CommonFilterItem } from './filter-items/CommonFilterItem';
8
+ export * from './_types';
@@ -0,0 +1,12 @@
1
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
+ // This file is released under LGPL V3
3
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
+ export { useFilters } from './useFilters';
5
+ export { useFiltersContext } from './useFiltersContext';
6
+ export { useTransformFilters } from './useTransformFilters';
7
+ export { FiltersProvider } from './FiltersProvider';
8
+ export { prepareFiltersForRequest } from './prepareFiltersForRequest';
9
+ export { useFiltersReducer } from './context/useFiltersReducer';
10
+ export { CommonFilterItem } from './filter-items/CommonFilterItem';
11
+ export * from './_types';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Filters/index.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type RecordFilterInput } from '../../_gqlTypes';
2
+ import { type UIFilter, type FiltersOperator } from './_types';
3
+ export declare const dateValuesSeparator = "\n";
4
+ export declare const prepareFiltersForRequest: (filters: UIFilter[], filtersOperator?: FiltersOperator, valuesList?: string[]) => RecordFilterInput[];
@@ -2,11 +2,11 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import dayjs from 'dayjs';
5
- import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../../_gqlTypes';
6
- import { interleaveElement } from '../../../_utils/interleaveElement';
7
- import { AttributeConditionFilter } from '../../../types';
8
- import { isExplorerFilterStandard, isExplorerFilterThrough, isExplorerFilterLink, isExplorerFilterTree, isExplorerFilterValueList } from '../_types';
9
- import { nullValueConditions } from '../conditionsHelper';
5
+ import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../_gqlTypes';
6
+ import { interleaveElement } from '../../_utils/interleaveElement';
7
+ import { AttributeConditionFilter } from '../../types';
8
+ import { isUIFilterStandard, isUIFilterThrough, isUIFilterTree, isUIFilterValueList, isUIFilterLinkWithValueList } from './_types';
9
+ import { nullValueConditions } from './conditionsHelper';
10
10
  export const dateValuesSeparator = '\n';
11
11
  const _getDateAtNoon = (date) => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();
12
12
  const _getDateRequestFilters = ({ field, condition, value }) => {
@@ -102,19 +102,19 @@ const _generateConditionsFromMultipleValues = (filter) => {
102
102
  export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) => {
103
103
  const interleaveFilter = interleaveElement({ operator: filtersOperator === 'OR' ? RecordFilterOperator.OR : RecordFilterOperator.AND }, filters
104
104
  .filter(filter => {
105
- if (isExplorerFilterThrough(filter)) {
105
+ if (isUIFilterThrough(filter)) {
106
106
  return (filter.subField &&
107
107
  filter.subCondition &&
108
108
  (filter.value !== null || nullValueConditions.includes(filter.subCondition)));
109
109
  }
110
- if (isExplorerFilterValueList(filter)) {
110
+ if (isUIFilterValueList(filter)) {
111
111
  return ((!!filter.condition && filter.value?.length) ||
112
112
  (filter.condition && nullValueConditions.includes(filter.condition)));
113
113
  }
114
114
  return filter.value !== null || (filter.condition && nullValueConditions.includes(filter.condition));
115
115
  })
116
116
  .map(filter => {
117
- if (isExplorerFilterTree(filter)) {
117
+ if (isUIFilterTree(filter)) {
118
118
  return filter;
119
119
  }
120
120
  const condition = filter.condition === AttributeConditionFilter.THROUGH ? filter.subCondition : filter.condition;
@@ -122,13 +122,14 @@ export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) =
122
122
  ? `${filter.field}.${filter.subField}`
123
123
  : filter.field;
124
124
  // When a link attribute has a values list, we must filter on the linked record id
125
- if (isExplorerFilterLink(filter) && isExplorerFilterValueList(filter) && !field.endsWith('.id')) {
125
+ if (isUIFilterLinkWithValueList(filter) && typeof field === 'string' && !field.endsWith('.id')) {
126
126
  field = `${field}.id`;
127
127
  }
128
128
  return { ...filter, condition, field };
129
129
  })
130
130
  .map(filter => {
131
- if (isExplorerFilterTree(filter) || isExplorerFilterValueList(filter)) {
131
+ //@ts-ignore typscript does not recognize filter as a UIFilter
132
+ if (isUIFilterValueList(filter) || isUIFilterTree(filter)) {
132
133
  if (filter.condition && nullValueConditions.includes(filter.condition)) {
133
134
  return [
134
135
  {
@@ -140,7 +141,7 @@ export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) =
140
141
  }
141
142
  return _generateConditionsFromMultipleValues(filter);
142
143
  }
143
- if (isExplorerFilterStandard(filter)) {
144
+ if (isUIFilterStandard(filter)) {
144
145
  switch (filter.attribute.format) {
145
146
  case AttributeFormat.date:
146
147
  return _getDateRequestFilters(filter);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareFiltersForRequest.js","sourceRoot":"","sources":["../../../src/components/Filters/prepareFiltersForRequest.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAA0B,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACnD,OAAO,EAIH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EAGnB,2BAA2B,EAC9B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;AAE5G,MAAM,sBAAsB,GAAG,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAoB,EAAuB,EAAE;IACjG,QAAQ,SAAS,EAAE,CAAC;QAChB,KAAK,qBAAqB,CAAC,OAAO;YAC9B,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,KAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACrD,OAAO;gBACH;oBACI,KAAK;oBACL,SA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