@datagouv/components-next 1.1.2 → 1.2.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/dist/{Datafair.client-8bXp6UeQ.js → Datafair.client-rf4T1IkA.js} +1 -1
- package/dist/{JsonPreview.client-BxuoPK_w.js → JsonPreview.client-dzar6iuh.js} +2 -2
- package/dist/{MapContainer.client-CTz0wmJG.js → MapContainer.client-D-MoRNhG.js} +2 -2
- package/dist/{PdfPreview.client-DpVreUSl.js → PdfPreview.client-DoDYLmJD.js} +2 -2
- package/dist/{Pmtiles.client-BwmHo3T8.js → Pmtiles.client-Dzm01Zfm.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-stmU5qEB.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BRNYswg3.js} +1 -1
- package/dist/{XmlPreview.client-DAOs89cR.js → XmlPreview.client-cOhwff6P.js} +3 -3
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +160 -155
- package/dist/components.css +1 -1
- package/dist/{index-JqjPja1u.js → index-NofRBuyf.js} +1 -1
- package/dist/{main-D4WQMky0.js → main-Iz1ZCL6k.js} +41691 -89416
- package/dist/{vue3-xml-viewer.common-BGsoNyZe.js → vue3-xml-viewer.common-tVI9uXUz.js} +1 -1
- package/package.json +10 -3
- 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/ResourceAccordion.vue +5 -102
- package/src/components/ResourceExplorer/ResourceExplorer.vue +2 -55
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +26 -135
- package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
- package/src/components/Search/GlobalSearch.vue +11 -4
- package/src/components/TabularExplorer/TabularExplorer.vue +257 -154
- package/src/composables/useHasTabularData.ts +7 -0
- package/src/composables/useStableQueryParams.ts +7 -3
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/functions/activities.ts +3 -3
- package/src/main.ts +12 -6
- package/src/types/search.ts +11 -0
- package/src/types/ui.ts +1 -1
package/src/main.ts
CHANGED
|
@@ -40,6 +40,9 @@ import BrandedButton from './components/BrandedButton.vue'
|
|
|
40
40
|
import CopyButton from './components/CopyButton.vue'
|
|
41
41
|
import DataserviceCard from './components/DataserviceCard.vue'
|
|
42
42
|
import DatasetCard from './components/DatasetCard.vue'
|
|
43
|
+
import DataStructure from './components/ResourceAccordion/DataStructure.vue'
|
|
44
|
+
import Downloads from './components/ResourceAccordion/Downloads.vue'
|
|
45
|
+
import Metadata from './components/ResourceAccordion/Metadata.vue'
|
|
43
46
|
import DescriptionListTerm from './components/DescriptionListTerm.vue'
|
|
44
47
|
import DescriptionListDetails from './components/DescriptionListDetails.vue'
|
|
45
48
|
import DiscussionMessageCard from './components/DiscussionMessageCard.vue'
|
|
@@ -60,6 +63,7 @@ import LoadingBlock from './components/LoadingBlock.vue'
|
|
|
60
63
|
import MarkdownViewer from './components/MarkdownViewer.vue'
|
|
61
64
|
import OrganizationCard from './components/OrganizationCard.vue'
|
|
62
65
|
import OrganizationHorizontalCard from './components/OrganizationHorizontalCard.vue'
|
|
66
|
+
import ObjectCardOwner from './components/ObjectCardOwner.vue'
|
|
63
67
|
import OrganizationLogo from './components/OrganizationLogo.vue'
|
|
64
68
|
import OrganizationNameWithCertificate from './components/OrganizationNameWithCertificate.vue'
|
|
65
69
|
import OwnerType from './components/OwnerType.vue'
|
|
@@ -73,6 +77,7 @@ import PostCard from './components/PostCard.vue'
|
|
|
73
77
|
import ReadMore from './components/ReadMore.vue'
|
|
74
78
|
import ResourceAccordion from './components/ResourceAccordion/ResourceAccordion.vue'
|
|
75
79
|
import ResourceIcon from './components/ResourceAccordion/ResourceIcon.vue'
|
|
80
|
+
import ResourceSelector from './components/ResourceExplorer/ResourceSelector.vue'
|
|
76
81
|
import ResourceExplorer from './components/ResourceExplorer/ResourceExplorer.vue'
|
|
77
82
|
import ResourceExplorerSidebar from './components/ResourceExplorer/ResourceExplorerSidebar.vue'
|
|
78
83
|
import ResourceExplorerViewer from './components/ResourceExplorer/ResourceExplorerViewer.vue'
|
|
@@ -82,9 +87,6 @@ import ReuseHorizontalCard from './components/ReuseHorizontalCard.vue'
|
|
|
82
87
|
import ReuseDetails from './components/ReuseDetails.vue'
|
|
83
88
|
import SchemaCard from './components/SchemaCard.vue'
|
|
84
89
|
import SimpleBanner from './components/SimpleBanner.vue'
|
|
85
|
-
import SmallChart from './components/SmallChart.vue'
|
|
86
|
-
import ChartViewer from './components/Chart/ChartViewer.vue'
|
|
87
|
-
import ChartViewerWrapper from './components/Chart/ChartViewerWrapper.vue'
|
|
88
90
|
import StatBox from './components/StatBox.vue'
|
|
89
91
|
import Tab from './components/Tabs/Tab.vue'
|
|
90
92
|
import TabGroup from './components/Tabs/TabGroup.vue'
|
|
@@ -115,6 +117,8 @@ export * from './composables/useMetrics'
|
|
|
115
117
|
export * from './composables/useReuseType'
|
|
116
118
|
export * from './composables/useTranslation'
|
|
117
119
|
export * from './composables/useHasTabularData'
|
|
120
|
+
export * from './composables/useResourceCapabilities'
|
|
121
|
+
export * from './composables/useTabularProfile'
|
|
118
122
|
|
|
119
123
|
export * from './functions/activities'
|
|
120
124
|
export * from './functions/datasets'
|
|
@@ -326,6 +330,9 @@ export {
|
|
|
326
330
|
CopyButton,
|
|
327
331
|
DataserviceCard,
|
|
328
332
|
DatasetCard,
|
|
333
|
+
DataStructure,
|
|
334
|
+
Downloads,
|
|
335
|
+
Metadata,
|
|
329
336
|
DatasetInformationSection,
|
|
330
337
|
DatasetTemporalitySection,
|
|
331
338
|
DatasetSpatialSection,
|
|
@@ -365,15 +372,14 @@ export {
|
|
|
365
372
|
ResourceExplorer,
|
|
366
373
|
ResourceExplorerSidebar,
|
|
367
374
|
ResourceExplorerViewer,
|
|
375
|
+
ObjectCardOwner,
|
|
368
376
|
ResourceIcon,
|
|
377
|
+
ResourceSelector,
|
|
369
378
|
ReuseCard,
|
|
370
379
|
ReuseDetails,
|
|
371
380
|
ReuseHorizontalCard,
|
|
372
381
|
SchemaCard,
|
|
373
382
|
SimpleBanner,
|
|
374
|
-
SmallChart,
|
|
375
|
-
ChartViewer,
|
|
376
|
-
ChartViewerWrapper,
|
|
377
383
|
StatBox,
|
|
378
384
|
OpenApiViewer,
|
|
379
385
|
Tab,
|
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