@datagouv/components-next 1.1.2 → 1.3.0
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/README.md +7 -6
- package/dist/{Control-ZFh5ta_U.js → Control-b-43UT2B.js} +10 -10
- package/dist/{Datafair.client-8bXp6UeQ.js → Datafair.client-BrjISlaZ.js} +4 -4
- package/dist/{Event-DSQcW7OF.js → Event-py_AAwJY.js} +18 -18
- package/dist/{Image-BijNEG0p.js → Image-BHQYZWzH.js} +23 -23
- package/dist/{JsonPreview.client-BxuoPK_w.js → JsonPreview.client-DivFAnbN.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-CtP7leHl.js} +1313 -1173
- package/dist/{MapContainer.client-CTz0wmJG.js → MapContainer.client-Cq8tNLZZ.js} +17 -17
- package/dist/{OSM-D4MTdBtk.js → OSM-gdDSIsDA.js} +15 -23
- package/dist/{PdfPreview.client-DpVreUSl.js → PdfPreview.client-BNBgLsK2.js} +6 -10
- package/dist/Pmtiles.client-CQi5Rw8W.js +26123 -0
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-stmU5qEB.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-C3dDzrIr.js} +2 -2
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-hG-FhNqy.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-D6rFonpT.js} +163 -166
- package/dist/{TileImage-BJeHipMX.js → TileImage-cfrEgz5y.js} +131 -119
- package/dist/{View-xp_P_OHw.js → View-vp7vDb9q.js} +169 -119
- package/dist/{XmlPreview.client-DAOs89cR.js → XmlPreview.client-XCsNvnsZ.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-C8efyyuc.js} +49 -49
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +166 -157
- package/dist/components.css +2 -2
- package/dist/{index-JqjPja1u.js → index-CXUamc8Z.js} +6382 -6057
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-BRKv9Ksv.js} +162 -164
- package/dist/{main-D4WQMky0.js → main-DKu5SOAl.js} +48480 -97188
- package/dist/{proj-CsNo9yH1.js → proj-CsjVeojN.js} +322 -306
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-CPcQJnrF.js} +270 -261
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-BGsoNyZe.js → vue3-xml-viewer.common-BIaEIFYG.js} +1 -1
- package/package.json +42 -35
- package/src/chart.ts +5 -0
- package/src/components/ActivityList/ActivityList.vue +3 -0
- package/src/components/DatasetCard.vue +6 -4
- package/src/components/ObjectCardHeader.vue +1 -1
- package/src/components/RadioInput.vue +7 -2
- package/src/components/ResourceAccordion/DataStructure.vue +11 -33
- package/src/components/ResourceAccordion/Downloads.vue +160 -0
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/src/components/ResourceAccordion/ResourceAccordion.vue +7 -104
- package/src/components/ResourceExplorer/ResourceExplorer.vue +10 -64
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +30 -136
- package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
- package/src/components/Search/GlobalSearch.vue +27 -6
- package/src/components/TabularExplorer/TabularCellPopover.vue +2 -2
- package/src/components/TabularExplorer/TabularExplorer.vue +404 -163
- package/src/components/TabularExplorer/TabularFilterContent.vue +15 -13
- package/src/components/TabularExplorer/TabularFilterPopover.vue +21 -26
- package/src/components/TabularExplorer/types.ts +9 -9
- package/src/composables/useHasTabularData.ts +7 -0
- package/src/composables/useResourceCapabilities.ts +1 -1
- package/src/composables/useSearchFilter.ts +7 -5
- package/src/composables/useStableQueryParams.ts +7 -3
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/functions/activities.ts +3 -3
- package/src/functions/api.ts +13 -7
- package/src/functions/resources.ts +5 -0
- package/src/functions/tabular.ts +103 -1
- package/src/main.ts +12 -6
- package/src/types/resources.ts +0 -1
- package/src/types/search.ts +11 -0
- package/src/types/ui.ts +1 -1
- package/dist/Pmtiles.client-BwmHo3T8.js +0 -25185
package/src/types/search.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Component } from 'vue'
|
|
1
2
|
import type { PaginatedArray } from './api'
|
|
2
3
|
import type { AccessType } from './access_types'
|
|
3
4
|
import type { Dataset } from './datasets'
|
|
@@ -298,55 +299,65 @@ export type DatasetSearchConfig = {
|
|
|
298
299
|
class: 'datasets'
|
|
299
300
|
key?: string
|
|
300
301
|
name?: string
|
|
302
|
+
icon?: Component | string
|
|
301
303
|
placeholder?: string | null
|
|
302
304
|
hiddenFilters?: HiddenFilter<DatasetSearchFilters>[]
|
|
303
305
|
basicFilters?: (keyof DatasetSearchFilters)[]
|
|
304
306
|
advancedFilters?: (keyof DatasetSearchFilters)[]
|
|
305
307
|
sortOptions?: SortOption<DatasetSearchSort>[]
|
|
308
|
+
defaultSort?: DatasetSearchSort
|
|
306
309
|
}
|
|
307
310
|
|
|
308
311
|
export type DataserviceSearchConfig = {
|
|
309
312
|
class: 'dataservices'
|
|
310
313
|
key?: string
|
|
311
314
|
name?: string
|
|
315
|
+
icon?: Component | string
|
|
312
316
|
placeholder?: string | null
|
|
313
317
|
hiddenFilters?: HiddenFilter<DataserviceSearchFilters>[]
|
|
314
318
|
basicFilters?: (keyof DataserviceSearchFilters)[]
|
|
315
319
|
advancedFilters?: (keyof DataserviceSearchFilters)[]
|
|
316
320
|
sortOptions?: SortOption<DataserviceSearchSort>[]
|
|
321
|
+
defaultSort?: DataserviceSearchSort
|
|
317
322
|
}
|
|
318
323
|
|
|
319
324
|
export type ReuseSearchConfig = {
|
|
320
325
|
class: 'reuses'
|
|
321
326
|
key?: string
|
|
322
327
|
name?: string
|
|
328
|
+
icon?: Component | string
|
|
323
329
|
placeholder?: string | null
|
|
324
330
|
hiddenFilters?: HiddenFilter<ReuseSearchFilters>[]
|
|
325
331
|
basicFilters?: (keyof ReuseSearchFilters)[]
|
|
326
332
|
advancedFilters?: (keyof ReuseSearchFilters)[]
|
|
327
333
|
sortOptions?: SortOption<ReuseSearchSort>[]
|
|
334
|
+
defaultSort?: ReuseSearchSort
|
|
328
335
|
}
|
|
329
336
|
|
|
330
337
|
export type OrganizationSearchConfig = {
|
|
331
338
|
class: 'organizations'
|
|
332
339
|
key?: string
|
|
333
340
|
name?: string
|
|
341
|
+
icon?: Component | string
|
|
334
342
|
placeholder?: string | null
|
|
335
343
|
hiddenFilters?: HiddenFilter<OrganizationSearchFilters>[]
|
|
336
344
|
basicFilters?: (keyof OrganizationSearchFilters)[]
|
|
337
345
|
advancedFilters?: (keyof OrganizationSearchFilters)[]
|
|
338
346
|
sortOptions?: SortOption<OrganizationSearchSort>[]
|
|
347
|
+
defaultSort?: OrganizationSearchSort
|
|
339
348
|
}
|
|
340
349
|
|
|
341
350
|
export type TopicSearchConfig = {
|
|
342
351
|
class: 'topics'
|
|
343
352
|
key?: string
|
|
344
353
|
name?: string
|
|
354
|
+
icon?: Component | string
|
|
345
355
|
placeholder?: string | null
|
|
346
356
|
hiddenFilters?: HiddenFilter<TopicSearchFilters>[]
|
|
347
357
|
basicFilters?: (keyof TopicSearchFilters)[]
|
|
348
358
|
advancedFilters?: (keyof TopicSearchFilters)[]
|
|
349
359
|
sortOptions?: SortOption<TopicSearchSort>[]
|
|
360
|
+
defaultSort?: TopicSearchSort
|
|
350
361
|
}
|
|
351
362
|
|
|
352
363
|
export type SearchTypeConfig = DatasetSearchConfig | DataserviceSearchConfig | ReuseSearchConfig | OrganizationSearchConfig | TopicSearchConfig
|
package/src/types/ui.ts
CHANGED