@datagouv/components-next 1.0.2-dev.4 → 1.0.2-dev.40
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-CYO9vwx6.js +30 -0
- package/dist/JsonPreview.client-B6aU3vl4.js +78 -0
- package/dist/{MapContainer.client-DjjvdKBp.js → MapContainer.client-BZsKgRUh.js} +35 -38
- package/dist/{PdfPreview.client-CsvKU0Aq.js → PdfPreview.client-ClkseuKU.js} +694 -700
- package/dist/{Pmtiles.client-uqg1fwOl.js → Pmtiles.client-CUaeaV-O.js} +574 -579
- package/dist/Swagger.client-FpYXdDuX.js +4 -0
- package/dist/XmlPreview.client-BNGHvVnU.js +70 -0
- package/dist/components-next.css +3 -3
- package/dist/components-next.js +83 -86
- package/dist/components.css +1 -1
- package/dist/{index-PMeuFwWj.js → index-B0fPq7-b.js} +1 -1
- package/dist/{main-ByqZlhiZ.js → main-ifX24DGW.js} +31224 -30474
- package/dist/{vue3-xml-viewer.common-DFrGHXJC.js → vue3-xml-viewer.common-Bkgr-tAS.js} +1 -1
- package/package.json +10 -8
- package/src/components/ActivityList/ActivityList.vue +0 -2
- package/src/components/Form/SearchableSelect.vue +2 -1
- package/src/components/Pagination.vue +8 -5
- package/src/components/ReadMore.vue +1 -1
- package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
- package/src/components/ResourceAccordion/JsonPreview.client.vue +34 -47
- package/src/components/ResourceAccordion/MapContainer.client.vue +7 -11
- package/src/components/ResourceAccordion/Metadata.vue +1 -2
- package/src/components/ResourceAccordion/PdfPreview.client.vue +28 -32
- package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
- package/src/components/ResourceAccordion/Preview.vue +6 -11
- package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
- package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +1 -2
- package/src/components/ResourceAccordion/XmlPreview.client.vue +34 -47
- package/src/components/ResourceExplorer/ResourceExplorer.vue +21 -10
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +24 -3
- package/src/components/Search/GlobalSearch.vue +29 -4
- package/src/composables/useResourceCapabilities.ts +1 -1
- package/src/config.ts +2 -0
- package/src/functions/datasets.ts +0 -17
- package/src/functions/resources.ts +56 -1
- package/src/functions/tabularApi.ts +7 -84
- package/src/main.ts +2 -22
- package/src/types/dataservices.ts +2 -0
- package/src/types/organizations.ts +1 -1
- package/src/types/reports.ts +3 -0
- package/src/types/search.ts +26 -1
- package/src/types/users.ts +0 -1
- package/dist/Datafair.client-c1cUKkQR.js +0 -35
- package/dist/JsonPreview.client-CAs9XTCX.js +0 -87
- package/dist/Swagger.client-BGrkka3l.js +0 -4
- package/dist/XmlPreview.client-BWbKzLte.js +0 -79
- package/src/components/Chart/ChartViewer.vue +0 -152
- package/src/components/Chart/ChartViewerWrapper.vue +0 -194
- package/src/functions/pagination.ts +0 -9
- package/src/types/visualizations.ts +0 -84
- /package/assets/illustrations/{_microscope.svg → microscope.svg} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { TabularAggregateType } from '../functions/tabularApi'
|
|
2
|
-
import type { Owned, OwnedWithId } from './owned'
|
|
3
|
-
|
|
4
|
-
export type FilterCondition = 'equal' | 'greater'
|
|
5
|
-
|
|
6
|
-
export type Filter = {
|
|
7
|
-
column: string
|
|
8
|
-
condition: FilterCondition
|
|
9
|
-
value?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type AndFilters = {
|
|
13
|
-
filters: Array<Filter | AndFilters>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type GenericFilter = Filter | AndFilters
|
|
17
|
-
|
|
18
|
-
export type XAxisType = 'discrete' | 'continuous'
|
|
19
|
-
|
|
20
|
-
export type XAxisSortBy = 'axis_x' | 'axis_y'
|
|
21
|
-
|
|
22
|
-
export type SortDirection = 'asc' | 'desc'
|
|
23
|
-
|
|
24
|
-
export type XAxis = {
|
|
25
|
-
column_x: string
|
|
26
|
-
sort_x_by: XAxisSortBy | null
|
|
27
|
-
sort_x_direction: SortDirection | null
|
|
28
|
-
type: XAxisType
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type XAxisForm = Omit<XAxis, 'sort_x_by'> & { sort_x_by: XAxisSortBy | '' | null }
|
|
32
|
-
|
|
33
|
-
export type UnitPosition = 'prefix' | 'suffix'
|
|
34
|
-
|
|
35
|
-
export type YAxis = {
|
|
36
|
-
min: number | null
|
|
37
|
-
max: number | null
|
|
38
|
-
label: string | null
|
|
39
|
-
unit: string | null
|
|
40
|
-
unit_position: UnitPosition | null
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type DataSeriesType = 'line' | 'histogram'
|
|
44
|
-
|
|
45
|
-
export type DataSeries = {
|
|
46
|
-
type: DataSeriesType
|
|
47
|
-
column_y: string
|
|
48
|
-
aggregate_y: TabularAggregateType | null
|
|
49
|
-
resource_id: string
|
|
50
|
-
column_x_name_override: string | null
|
|
51
|
-
filters: GenericFilter | null
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Type for form where aggregate_y can be empty string for select binding
|
|
55
|
-
export type DataSeriesForm = Omit<DataSeries, 'aggregate_y'> & { aggregate_y: TabularAggregateType | '' | null }
|
|
56
|
-
|
|
57
|
-
export type Chart = Owned & {
|
|
58
|
-
id: string
|
|
59
|
-
title: string
|
|
60
|
-
slug: string
|
|
61
|
-
description: string
|
|
62
|
-
private: boolean
|
|
63
|
-
created_at: string
|
|
64
|
-
last_modified: string
|
|
65
|
-
deleted_at: string | null
|
|
66
|
-
uri: string
|
|
67
|
-
page: string
|
|
68
|
-
x_axis: XAxis
|
|
69
|
-
y_axis: YAxis
|
|
70
|
-
series: Array<DataSeries>
|
|
71
|
-
extras: Record<string, unknown>
|
|
72
|
-
permissions: { delete: boolean, edit: boolean, read: boolean }
|
|
73
|
-
metrics: {
|
|
74
|
-
views: number
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export type ChartForApi = OwnedWithId & Pick<Chart, 'title' | 'description' | 'private' | 'x_axis' | 'y_axis' | 'series' | 'extras'>
|
|
79
|
-
|
|
80
|
-
export type ChartForm = Omit<ChartForApi, 'x_axis' | 'series' | 'owner' | 'organization'> & {
|
|
81
|
-
owned: OwnedWithId
|
|
82
|
-
x_axis: XAxisForm
|
|
83
|
-
series: Array<DataSeriesForm>
|
|
84
|
-
}
|
|
File without changes
|