@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.
Files changed (52) hide show
  1. package/dist/Datafair.client-CYO9vwx6.js +30 -0
  2. package/dist/JsonPreview.client-B6aU3vl4.js +78 -0
  3. package/dist/{MapContainer.client-DjjvdKBp.js → MapContainer.client-BZsKgRUh.js} +35 -38
  4. package/dist/{PdfPreview.client-CsvKU0Aq.js → PdfPreview.client-ClkseuKU.js} +694 -700
  5. package/dist/{Pmtiles.client-uqg1fwOl.js → Pmtiles.client-CUaeaV-O.js} +574 -579
  6. package/dist/Swagger.client-FpYXdDuX.js +4 -0
  7. package/dist/XmlPreview.client-BNGHvVnU.js +70 -0
  8. package/dist/components-next.css +3 -3
  9. package/dist/components-next.js +83 -86
  10. package/dist/components.css +1 -1
  11. package/dist/{index-PMeuFwWj.js → index-B0fPq7-b.js} +1 -1
  12. package/dist/{main-ByqZlhiZ.js → main-ifX24DGW.js} +31224 -30474
  13. package/dist/{vue3-xml-viewer.common-DFrGHXJC.js → vue3-xml-viewer.common-Bkgr-tAS.js} +1 -1
  14. package/package.json +10 -8
  15. package/src/components/ActivityList/ActivityList.vue +0 -2
  16. package/src/components/Form/SearchableSelect.vue +2 -1
  17. package/src/components/Pagination.vue +8 -5
  18. package/src/components/ReadMore.vue +1 -1
  19. package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
  20. package/src/components/ResourceAccordion/JsonPreview.client.vue +34 -47
  21. package/src/components/ResourceAccordion/MapContainer.client.vue +7 -11
  22. package/src/components/ResourceAccordion/Metadata.vue +1 -2
  23. package/src/components/ResourceAccordion/PdfPreview.client.vue +28 -32
  24. package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
  25. package/src/components/ResourceAccordion/Preview.vue +6 -11
  26. package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
  27. package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
  28. package/src/components/ResourceAccordion/ResourceAccordion.vue +1 -2
  29. package/src/components/ResourceAccordion/XmlPreview.client.vue +34 -47
  30. package/src/components/ResourceExplorer/ResourceExplorer.vue +21 -10
  31. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +24 -3
  32. package/src/components/Search/GlobalSearch.vue +29 -4
  33. package/src/composables/useResourceCapabilities.ts +1 -1
  34. package/src/config.ts +2 -0
  35. package/src/functions/datasets.ts +0 -17
  36. package/src/functions/resources.ts +56 -1
  37. package/src/functions/tabularApi.ts +7 -84
  38. package/src/main.ts +2 -22
  39. package/src/types/dataservices.ts +2 -0
  40. package/src/types/organizations.ts +1 -1
  41. package/src/types/reports.ts +3 -0
  42. package/src/types/search.ts +26 -1
  43. package/src/types/users.ts +0 -1
  44. package/dist/Datafair.client-c1cUKkQR.js +0 -35
  45. package/dist/JsonPreview.client-CAs9XTCX.js +0 -87
  46. package/dist/Swagger.client-BGrkka3l.js +0 -4
  47. package/dist/XmlPreview.client-BWbKzLte.js +0 -79
  48. package/src/components/Chart/ChartViewer.vue +0 -152
  49. package/src/components/Chart/ChartViewerWrapper.vue +0 -194
  50. package/src/functions/pagination.ts +0 -9
  51. package/src/types/visualizations.ts +0 -84
  52. /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
- }