@datagouv/components-next 1.0.2-dev.64 → 1.0.2-dev.66
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.
- package/package.json +1 -1
- package/src/main.ts +14 -1
- package/src/types/search.ts +2 -0
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -23,7 +23,7 @@ import type { Site } from './types/site'
|
|
|
23
23
|
import type { Weight, WellType } from './types/ui'
|
|
24
24
|
import type { User, UserReference } from './types/users'
|
|
25
25
|
import type { Report, ReportSubject, ReportReason } from './types/reports'
|
|
26
|
-
import type { GlobalSearchConfig, SearchType, SortOption } from './types/search'
|
|
26
|
+
import type { GlobalSearchConfig, SearchType, SearchTypeConfig, SortOption, HiddenFilter, BuiltInFilterKey, DatasetSearchConfig, DatasetSearchFilters, DataserviceSearchConfig, DataserviceSearchFilters, ReuseSearchConfig, ReuseSearchFilters, OrganizationSearchConfig, OrganizationSearchFilters, TopicSearchConfig, TopicSearchFilters } from './types/search'
|
|
27
27
|
import { getDefaultDatasetConfig, getDefaultDataserviceConfig, getDefaultReuseConfig, getDefaultOrganizationConfig, getDefaultTopicConfig, getDefaultGlobalSearchConfig, defaultDatasetSortOptions, defaultDataserviceSortOptions, defaultReuseSortOptions, defaultOrganizationSortOptions } from './types/search'
|
|
28
28
|
import { useSearchFilter } from './composables/useSearchFilter'
|
|
29
29
|
import type { UseSearchFilterOptions } from './composables/useSearchFilter'
|
|
@@ -130,7 +130,20 @@ export * from './types/access_types'
|
|
|
130
130
|
export type {
|
|
131
131
|
GlobalSearchConfig,
|
|
132
132
|
SearchType,
|
|
133
|
+
SearchTypeConfig,
|
|
133
134
|
SortOption,
|
|
135
|
+
HiddenFilter,
|
|
136
|
+
BuiltInFilterKey,
|
|
137
|
+
DatasetSearchConfig,
|
|
138
|
+
DatasetSearchFilters,
|
|
139
|
+
DataserviceSearchConfig,
|
|
140
|
+
DataserviceSearchFilters,
|
|
141
|
+
ReuseSearchConfig,
|
|
142
|
+
ReuseSearchFilters,
|
|
143
|
+
OrganizationSearchConfig,
|
|
144
|
+
OrganizationSearchFilters,
|
|
145
|
+
TopicSearchConfig,
|
|
146
|
+
TopicSearchFilters,
|
|
134
147
|
UseSearchFilterOptions,
|
|
135
148
|
UseFetchFunction,
|
|
136
149
|
AccessType,
|
package/src/types/search.ts
CHANGED
|
@@ -351,6 +351,8 @@ export type TopicSearchConfig = {
|
|
|
351
351
|
|
|
352
352
|
export type SearchTypeConfig = DatasetSearchConfig | DataserviceSearchConfig | ReuseSearchConfig | OrganizationSearchConfig | TopicSearchConfig
|
|
353
353
|
|
|
354
|
+
export type BuiltInFilterKey = keyof DatasetSearchFilters | keyof DataserviceSearchFilters | keyof ReuseSearchFilters | keyof OrganizationSearchFilters | keyof TopicSearchFilters
|
|
355
|
+
|
|
354
356
|
export type SearchType = SearchTypeConfig['class']
|
|
355
357
|
|
|
356
358
|
export type GlobalSearchConfig = SearchTypeConfig[]
|