@utrecht/component-library-react 13.3.1 → 14.0.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utrecht/component-library-react",
3
- "version": "13.3.1",
3
+ "version": "14.0.1",
4
4
  "private": false,
5
5
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
6
6
  "keywords": [
@@ -23,10 +23,6 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "import": "./dist/index.mjs"
25
25
  },
26
- "./VegaVisualization": {
27
- "types": "./dist/VegaVisualization.d.ts",
28
- "import": "./dist/VegaVisualization.mjs"
29
- },
30
26
  "./Calendar": {
31
27
  "types": "./dist/Calendar.d.ts",
32
28
  "import": "./dist/Calendar.mjs"
@@ -35,10 +31,6 @@
35
31
  "types": "./dist/css-module/index.d.ts",
36
32
  "import": "./dist/css-module/index.mjs"
37
33
  },
38
- "./css-module/VegaVisualization": {
39
- "types": "./dist/css-module/VegaVisualization.d.ts",
40
- "import": "./dist/css-module/VegaVisualization.mjs"
41
- },
42
34
  "./css-module/Calendar": {
43
35
  "types": "./dist/css-module/Calendar.d.ts",
44
36
  "import": "./dist/css-module/Calendar.mjs"
@@ -46,10 +38,12 @@
46
38
  "./dist/.jest-test-results.json": "./dist/.jest-test-results.json",
47
39
  "./tsconfig.md": "./tsconfig.md",
48
40
  "./TESTING.md": "./TESTING.md",
41
+ "./SEMVER.md": "./SEMVER.md",
49
42
  "./README.nl.md": "./README.nl.md",
50
43
  "./README.md": "./README.md",
51
44
  "./CONTRIBUTING.md": "./CONTRIBUTING.md",
52
45
  "./CHANGELOG.md": "./CHANGELOG.md",
46
+ "./src/*": "./src/*",
53
47
  "./dist": {
54
48
  "types": "./dist/index.d.ts",
55
49
  "import": "./dist/index.mjs"
@@ -62,14 +56,6 @@
62
56
  "types": "./dist/index.d.ts",
63
57
  "import": "./dist/index.mjs"
64
58
  },
65
- "./dist/VegaVisualization": {
66
- "types": "./dist/VegaVisualization.d.ts",
67
- "import": "./dist/VegaVisualization.mjs"
68
- },
69
- "./dist/VegaVisualization.mjs": {
70
- "types": "./dist/VegaVisualization.d.ts",
71
- "import": "./dist/VegaVisualization.mjs"
72
- },
73
59
  "./dist/Calendar": {
74
60
  "types": "./dist/Calendar.d.ts",
75
61
  "import": "./dist/Calendar.mjs"
@@ -90,14 +76,6 @@
90
76
  "types": "./dist/css-module/index.d.ts",
91
77
  "import": "./dist/css-module/index.mjs"
92
78
  },
93
- "./dist/css-module/VegaVisualization": {
94
- "types": "./dist/css-module/VegaVisualization.d.ts",
95
- "import": "./dist/css-module/VegaVisualization.mjs"
96
- },
97
- "./dist/css-module/VegaVisualization.mjs": {
98
- "types": "./dist/css-module/VegaVisualization.d.ts",
99
- "import": "./dist/css-module/VegaVisualization.mjs"
100
- },
101
79
  "./dist/css-module/Calendar": {
102
80
  "types": "./dist/css-module/Calendar.d.ts",
103
81
  "import": "./dist/css-module/Calendar.mjs"
@@ -114,108 +92,107 @@
114
92
  "dependencies": {
115
93
  "clsx": "2.1.1",
116
94
  "lodash.chunk": "4.2.0",
117
- "@utrecht/accordion-css": "4.0.0",
118
- "@utrecht/action-group-react": "1.1.5",
119
- "@utrecht/alert-css": "4.0.1",
120
- "@utrecht/alert-dialog-css": "3.0.0",
121
- "@utrecht/alternate-lang-nav-css": "3.0.0",
122
- "@utrecht/article-css": "3.0.0",
123
- "@utrecht/backdrop-css": "3.0.0",
124
- "@utrecht/badge-counter-css": "3.0.0",
125
- "@utrecht/badge-list-css": "4.0.0",
126
- "@utrecht/blockquote-css": "3.0.0",
127
- "@utrecht/breadcrumb-nav-css": "3.0.0",
128
- "@utrecht/button-group-react": "1.1.4",
129
- "@utrecht/button-link-css": "3.0.0",
130
- "@utrecht/button-react": "3.0.2",
131
- "@utrecht/calendar-react": "1.1.3",
132
- "@utrecht/card-css": "2.0.0",
133
- "@utrecht/card-react": "0.0.5",
134
- "@utrecht/checkbox-react": "1.0.13",
135
- "@utrecht/code-block-css": "3.0.0",
136
- "@utrecht/code-css": "3.0.0",
137
- "@utrecht/color-sample-css": "3.0.0",
138
- "@utrecht/column-layout-css": "3.0.0",
139
- "@utrecht/combobox-react": "0.0.12",
140
- "@utrecht/currency-data-css": "3.0.0",
141
- "@utrecht/custom-checkbox-css": "3.0.0",
142
- "@utrecht/data-badge-css": "3.0.0",
143
- "@utrecht/data-badge-react": "1.0.8",
144
- "@utrecht/data-list-css": "3.0.0",
145
- "@utrecht/data-placeholder-css": "3.0.0",
146
- "@utrecht/digid-button-css": "2.0.0",
147
- "@utrecht/document-css": "3.0.0",
148
- "@utrecht/drawer-css": "3.0.0",
149
- "@utrecht/emphasis-css": "3.0.0",
150
- "@utrecht/fieldset-react": "1.0.12",
151
- "@utrecht/figure-css": "3.0.0",
152
- "@utrecht/focus-ring-css": "4.0.0",
153
- "@utrecht/form-field-checkbox-react": "1.1.5",
154
- "@utrecht/form-field-description-react": "1.0.11",
155
- "@utrecht/form-field-react": "1.0.12",
156
- "@utrecht/form-field-error-message-react": "1.0.11",
157
- "@utrecht/form-label-react": "1.0.11",
158
- "@utrecht/form-toggle-css": "3.0.0",
159
- "@utrecht/heading-1-css": "3.0.0",
160
- "@utrecht/heading-2-css": "3.0.0",
161
- "@utrecht/heading-3-css": "3.0.0",
162
- "@utrecht/heading-4-css": "3.0.0",
163
- "@utrecht/heading-5-css": "3.0.0",
164
- "@utrecht/heading-6-css": "3.0.0",
165
- "@utrecht/heading-group-css": "3.0.0",
166
- "@utrecht/html-content-css": "3.0.0",
167
- "@utrecht/iban-data-css": "3.0.0",
168
- "@utrecht/icon-css": "4.0.0",
169
- "@utrecht/img-css": "3.0.0",
170
- "@utrecht/index-char-nav-css": "3.0.0",
171
- "@utrecht/link-button-css": "3.0.0",
172
- "@utrecht/link-list-css": "4.0.0",
173
- "@utrecht/link-social-css": "3.0.0",
174
- "@utrecht/link-react": "1.0.11",
175
- "@utrecht/list-social-css": "3.0.0",
176
- "@utrecht/listbox-react": "1.0.16",
177
- "@utrecht/logo-button-css": "2.0.0",
178
- "@utrecht/logo-css": "3.0.0",
179
- "@utrecht/logo-image-css": "2.0.0",
180
- "@utrecht/map-control-button-css": "4.0.0",
181
- "@utrecht/map-marker-css": "3.0.0",
182
- "@utrecht/mark-css": "3.0.0",
183
- "@utrecht/multiline-data-css": "3.0.0",
184
- "@utrecht/nav-list-css": "2.0.0",
185
- "@utrecht/number-badge-css": "4.0.0",
186
- "@utrecht/number-data-css": "3.0.0",
187
- "@utrecht/open-forms-container-css": "3.0.0",
188
- "@utrecht/open-forms-container-react": "1.0.9",
189
- "@utrecht/ordered-list-css": "4.0.0",
190
- "@utrecht/nav-bar-css": "3.2.0",
191
- "@utrecht/page-content-css": "3.0.0",
192
- "@utrecht/page-css": "3.0.0",
193
- "@utrecht/page-footer-css": "4.0.0",
194
- "@utrecht/page-header-css": "3.0.0",
195
- "@utrecht/pagination-css": "3.0.0",
196
- "@utrecht/paragraph-css": "4.0.0",
197
- "@utrecht/pre-heading-css": "3.0.0",
198
- "@utrecht/preserve-data-css": "3.0.0",
199
- "@utrecht/radio-button-react": "1.0.12",
200
- "@utrecht/rich-text-css": "3.0.0",
201
- "@utrecht/search-bar-css": "4.0.0",
202
- "@utrecht/select-css": "3.0.0",
203
- "@utrecht/separator-css": "3.0.0",
204
- "@utrecht/skip-link-css": "3.0.0",
205
- "@utrecht/spotlight-section-css": "3.0.1",
206
- "@utrecht/status-badge-css": "2.0.0",
207
- "@utrecht/subscript-css": "3.0.0",
208
- "@utrecht/superscript-css": "3.0.0",
209
- "@utrecht/surface-css": "3.0.0",
210
- "@utrecht/table-css": "3.0.0",
211
- "@utrecht/table-of-contents-css": "2.0.0",
212
- "@utrecht/textbox-react": "1.0.15",
213
- "@utrecht/top-task-link-css": "3.0.0",
214
- "@utrecht/textarea-css": "4.0.0",
215
- "@utrecht/unordered-list-css": "3.1.0",
216
- "@utrecht/url-data-css": "3.0.0",
217
- "@utrecht/top-task-nav-css": "2.0.0",
218
- "@utrecht/vega-visualization-css": "2.0.0"
95
+ "@utrecht/accordion-css": "4.0.1",
96
+ "@utrecht/action-group-react": "1.1.6",
97
+ "@utrecht/alert-css": "4.0.2",
98
+ "@utrecht/alert-dialog-css": "3.0.1",
99
+ "@utrecht/alternate-lang-nav-css": "3.0.1",
100
+ "@utrecht/article-css": "3.0.1",
101
+ "@utrecht/backdrop-css": "3.0.1",
102
+ "@utrecht/badge-counter-css": "3.0.1",
103
+ "@utrecht/badge-list-css": "4.0.1",
104
+ "@utrecht/blockquote-css": "3.0.1",
105
+ "@utrecht/breadcrumb-nav-css": "3.0.1",
106
+ "@utrecht/button-group-react": "1.1.5",
107
+ "@utrecht/button-link-css": "3.0.1",
108
+ "@utrecht/button-react": "3.0.3",
109
+ "@utrecht/calendar-react": "1.1.4",
110
+ "@utrecht/card-css": "2.0.1",
111
+ "@utrecht/card-react": "0.0.6",
112
+ "@utrecht/checkbox-react": "1.0.14",
113
+ "@utrecht/code-block-css": "3.0.1",
114
+ "@utrecht/code-css": "3.0.1",
115
+ "@utrecht/color-sample-css": "3.0.1",
116
+ "@utrecht/column-layout-css": "3.0.1",
117
+ "@utrecht/combobox-react": "0.0.13",
118
+ "@utrecht/currency-data-css": "3.0.1",
119
+ "@utrecht/custom-checkbox-css": "3.0.1",
120
+ "@utrecht/data-badge-css": "3.0.1",
121
+ "@utrecht/data-badge-react": "1.0.9",
122
+ "@utrecht/data-list-css": "3.0.1",
123
+ "@utrecht/data-placeholder-css": "3.0.1",
124
+ "@utrecht/digid-button-css": "2.0.1",
125
+ "@utrecht/document-css": "3.0.1",
126
+ "@utrecht/drawer-css": "3.0.1",
127
+ "@utrecht/emphasis-css": "3.0.1",
128
+ "@utrecht/fieldset-react": "1.0.13",
129
+ "@utrecht/figure-css": "3.0.1",
130
+ "@utrecht/focus-ring-css": "4.0.1",
131
+ "@utrecht/form-field-checkbox-react": "1.1.6",
132
+ "@utrecht/form-field-description-react": "1.0.12",
133
+ "@utrecht/form-field-error-message-react": "1.0.12",
134
+ "@utrecht/form-field-react": "1.0.13",
135
+ "@utrecht/form-label-react": "1.0.12",
136
+ "@utrecht/form-toggle-css": "3.0.1",
137
+ "@utrecht/heading-1-css": "3.0.1",
138
+ "@utrecht/heading-2-css": "3.0.1",
139
+ "@utrecht/heading-3-css": "3.0.1",
140
+ "@utrecht/heading-4-css": "3.0.1",
141
+ "@utrecht/heading-5-css": "3.0.1",
142
+ "@utrecht/heading-6-css": "3.0.1",
143
+ "@utrecht/heading-group-css": "3.0.1",
144
+ "@utrecht/html-content-css": "3.0.1",
145
+ "@utrecht/iban-data-css": "3.0.1",
146
+ "@utrecht/icon-css": "4.0.1",
147
+ "@utrecht/img-css": "3.0.1",
148
+ "@utrecht/index-char-nav-css": "3.0.1",
149
+ "@utrecht/link-button-css": "3.0.1",
150
+ "@utrecht/link-list-css": "4.0.1",
151
+ "@utrecht/link-react": "1.0.12",
152
+ "@utrecht/link-social-css": "3.0.1",
153
+ "@utrecht/list-social-css": "3.0.1",
154
+ "@utrecht/listbox-react": "1.0.17",
155
+ "@utrecht/logo-button-css": "2.0.1",
156
+ "@utrecht/logo-css": "3.0.1",
157
+ "@utrecht/logo-image-css": "2.0.1",
158
+ "@utrecht/map-control-button-css": "4.0.1",
159
+ "@utrecht/map-marker-css": "3.0.1",
160
+ "@utrecht/mark-css": "3.0.1",
161
+ "@utrecht/multiline-data-css": "3.0.1",
162
+ "@utrecht/nav-bar-css": "3.2.1",
163
+ "@utrecht/nav-list-css": "2.0.1",
164
+ "@utrecht/number-badge-css": "4.0.1",
165
+ "@utrecht/number-data-css": "3.0.1",
166
+ "@utrecht/open-forms-container-css": "3.0.1",
167
+ "@utrecht/open-forms-container-react": "1.0.10",
168
+ "@utrecht/ordered-list-css": "4.0.1",
169
+ "@utrecht/page-content-css": "3.0.1",
170
+ "@utrecht/page-css": "3.0.1",
171
+ "@utrecht/page-footer-css": "4.0.2",
172
+ "@utrecht/page-header-css": "3.0.2",
173
+ "@utrecht/pagination-css": "3.0.1",
174
+ "@utrecht/paragraph-css": "4.0.1",
175
+ "@utrecht/pre-heading-css": "3.0.1",
176
+ "@utrecht/preserve-data-css": "3.0.1",
177
+ "@utrecht/radio-button-react": "1.0.13",
178
+ "@utrecht/rich-text-css": "3.0.1",
179
+ "@utrecht/search-bar-css": "4.0.1",
180
+ "@utrecht/select-css": "3.0.1",
181
+ "@utrecht/separator-css": "3.0.1",
182
+ "@utrecht/skip-link-css": "3.0.1",
183
+ "@utrecht/spotlight-section-css": "3.0.2",
184
+ "@utrecht/status-badge-css": "2.0.1",
185
+ "@utrecht/subscript-css": "3.0.1",
186
+ "@utrecht/superscript-css": "3.0.1",
187
+ "@utrecht/surface-css": "3.0.1",
188
+ "@utrecht/table-css": "3.0.1",
189
+ "@utrecht/table-of-contents-css": "2.0.1",
190
+ "@utrecht/textarea-css": "4.0.1",
191
+ "@utrecht/textbox-react": "1.0.16",
192
+ "@utrecht/top-task-link-css": "3.1.0",
193
+ "@utrecht/top-task-nav-css": "2.0.1",
194
+ "@utrecht/unordered-list-css": "3.1.1",
195
+ "@utrecht/url-data-css": "3.0.1"
219
196
  },
220
197
  "devDependencies": {
221
198
  "@babel/core": "7.24.9",
@@ -243,7 +220,6 @@
243
220
  "next": "13.5.11",
244
221
  "react": "19.2.4",
245
222
  "react-dom": "19.2.4",
246
- "react-vega": "8.0.0",
247
223
  "rimraf": "5.0.10",
248
224
  "rollup": "4.23.0",
249
225
  "rollup-plugin-delete": "2.0.0",
@@ -257,28 +233,16 @@
257
233
  "sort-package-json": "2.11.0",
258
234
  "tslib": "2.6.3",
259
235
  "typescript": "5.9.3",
260
- "vega": "6.2.0",
261
- "vega-embed": "7.1.0",
262
- "vega-lite": "6.4.2",
263
236
  "@utrecht/build-utils-react": "0.1.1"
264
237
  },
265
238
  "peerDependencies": {
266
239
  "@babel/runtime": "^7.23.6",
267
240
  "react": "^18.0.0 || ^19.0.0",
268
- "react-dom": "^18.0.0 || ^19.0.0",
269
- "react-vega": "^7.6.0",
270
- "vega": "^5.25.0"
271
- },
272
- "peerDependenciesMeta": {
273
- "react-vega": {
274
- "optional": true
275
- },
276
- "vega": {
277
- "optional": true
278
- }
241
+ "react-dom": "^18.0.0 || ^19.0.0"
279
242
  },
280
243
  "publishConfig": {
281
- "access": "public"
244
+ "access": "public",
245
+ "provenance": true
282
246
  },
283
247
  "scripts": {
284
248
  "build": "pnpm run '/^build:.*/'",
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- import { VegaEmbedProps } from 'react-vega';
7
- import { Config } from 'vega';
8
- export interface VegaVisualizationProps extends Omit<VegaEmbedProps, 'options'> {
9
- label?: string;
10
- config?: Config;
11
- /**
12
- * Whether to show the export/source/editor actions. Passed into embed options.
13
- *
14
- * @deprecated Use options.actions instead.
15
- */
16
- actions?: boolean;
17
- options?: VegaEmbedProps['options'];
18
- }
19
- export declare const VegaVisualization: ({ actions, className, config, label, options, ...restProps }: VegaVisualizationProps) => import("react/jsx-runtime").JSX.Element;
20
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../src/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAa,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAsED,eAAO,MAAM,iBAAiB,GAAI,8DAO/B,sBAAsB,4CAexB,CAAC"}
@@ -1,107 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { jsx } from 'react/jsx-runtime';
4
- import clsx from 'clsx';
5
- import { VegaEmbed } from 'react-vega';
6
-
7
- var _excluded = ["actions", "className", "config", "label", "options"];
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- var defaultConfig = {
11
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
12
- title: {
13
- fontSize: 20,
14
- anchor: 'start',
15
- offset: 32,
16
- subtitleFontSize: 16
17
- },
18
- range: {
19
- category: {
20
- scheme: 'set1'
21
- }
22
- },
23
- axis: {
24
- labelFontSize: 16,
25
- titleFontSize: 16,
26
- labelFontWeight: 'bold',
27
- titleFontWeight: 'normal',
28
- labelAngle: 0,
29
- ticks: false,
30
- labelPadding: 12,
31
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
32
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
33
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
34
- },
35
- axisY: {
36
- titleAngle: 0,
37
- titleX: 0,
38
- titleY: 7,
39
- titleAlign: 'left',
40
- titleFontWeight: 'bold',
41
- domain: false
42
- },
43
- legend: {
44
- labelFontSize: 16,
45
- titleFontSize: 16
46
- },
47
- bar: {
48
- width: {
49
- band: 0.85
50
- }
51
- },
52
- view: {
53
- stroke: null
54
- },
55
- padding: {
56
- left: 20,
57
- top: 20,
58
- right: 25,
59
- bottom: 20
60
- },
61
- locale: {
62
- number: {
63
- decimal: ',',
64
- thousands: '.',
65
- grouping: [3],
66
- currency: ['', "\xA0\u20AC"]
67
- },
68
- time: {
69
- dateTime: '%a %e %B %Y %X',
70
- date: '%d-%m-%Y',
71
- time: '%H:%M:%S',
72
- periods: ['AM', 'PM'],
73
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
74
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
75
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
76
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
77
- }
78
- }
79
- };
80
- var VegaVisualization = function VegaVisualization(_ref) {
81
- var _ref$actions = _ref.actions,
82
- actions = _ref$actions === void 0 ? false : _ref$actions,
83
- className = _ref.className,
84
- config = _ref.config,
85
- label = _ref.label,
86
- options = _ref.options,
87
- restProps = _objectWithoutProperties(_ref, _excluded);
88
- var embedOptions = _objectSpread(_objectSpread({}, options), {}, {
89
- actions: actions,
90
- renderer: 'svg',
91
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
92
- });
93
- return jsx("div", {
94
- className: clsx('utrecht-vega-visualization', className),
95
- role: "img",
96
- "aria-label": label,
97
- children: jsx("div", {
98
- "aria-hidden": true,
99
- children: jsx(VegaEmbed, _objectSpread(_objectSpread({}, restProps), {}, {
100
- options: embedOptions
101
- }))
102
- })
103
- });
104
- };
105
-
106
- export { VegaVisualization };
107
- //# sourceMappingURL=VegaVisualization.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- import { VegaEmbedProps } from 'react-vega';
7
- import { Config } from 'vega';
8
- export interface VegaVisualizationProps extends Omit<VegaEmbedProps, 'options'> {
9
- label?: string;
10
- config?: Config;
11
- /**
12
- * Whether to show the export/source/editor actions. Passed into embed options.
13
- *
14
- * @deprecated Use options.actions instead.
15
- */
16
- actions?: boolean;
17
- options?: VegaEmbedProps['options'];
18
- }
19
- export declare const VegaVisualization: ({ actions, className, config, label, options, ...restProps }: VegaVisualizationProps) => import("react/jsx-runtime").JSX.Element;
20
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../../src/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAa,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAsED,eAAO,MAAM,iBAAiB,GAAI,8DAO/B,sBAAsB,4CAexB,CAAC"}
@@ -1,124 +0,0 @@
1
- import css from '@utrecht/vega-visualization-css/dist/index.mjs';
2
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
- import { jsx } from 'react/jsx-runtime';
5
- import clsx from 'clsx';
6
- import { VegaEmbed } from 'react-vega';
7
-
8
- var insertStyle = function insertStyle(css) {
9
- if (typeof document !== 'undefined') {
10
- var head = document.head || document.getElementsByTagName('head')[0];
11
- var style = document.createElement('style');
12
- style.appendChild(document.createTextNode(css));
13
- head.appendChild(style);
14
- }
15
- };
16
-
17
- var _excluded = ["actions", "className", "config", "label", "options"];
18
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
- var defaultConfig = {
21
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
22
- title: {
23
- fontSize: 20,
24
- anchor: 'start',
25
- offset: 32,
26
- subtitleFontSize: 16
27
- },
28
- range: {
29
- category: {
30
- scheme: 'set1'
31
- }
32
- },
33
- axis: {
34
- labelFontSize: 16,
35
- titleFontSize: 16,
36
- labelFontWeight: 'bold',
37
- titleFontWeight: 'normal',
38
- labelAngle: 0,
39
- ticks: false,
40
- labelPadding: 12,
41
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
42
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
43
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
44
- },
45
- axisY: {
46
- titleAngle: 0,
47
- titleX: 0,
48
- titleY: 7,
49
- titleAlign: 'left',
50
- titleFontWeight: 'bold',
51
- domain: false
52
- },
53
- legend: {
54
- labelFontSize: 16,
55
- titleFontSize: 16
56
- },
57
- bar: {
58
- width: {
59
- band: 0.85
60
- }
61
- },
62
- view: {
63
- stroke: null
64
- },
65
- padding: {
66
- left: 20,
67
- top: 20,
68
- right: 25,
69
- bottom: 20
70
- },
71
- locale: {
72
- number: {
73
- decimal: ',',
74
- thousands: '.',
75
- grouping: [3],
76
- currency: ['', "\xA0\u20AC"]
77
- },
78
- time: {
79
- dateTime: '%a %e %B %Y %X',
80
- date: '%d-%m-%Y',
81
- time: '%H:%M:%S',
82
- periods: ['AM', 'PM'],
83
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
84
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
85
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
86
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
87
- }
88
- }
89
- };
90
- var VegaVisualization = function VegaVisualization(_ref) {
91
- var _ref$actions = _ref.actions,
92
- actions = _ref$actions === void 0 ? false : _ref$actions,
93
- className = _ref.className,
94
- config = _ref.config,
95
- label = _ref.label,
96
- options = _ref.options,
97
- restProps = _objectWithoutProperties(_ref, _excluded);
98
- var embedOptions = _objectSpread(_objectSpread({}, options), {}, {
99
- actions: actions,
100
- renderer: 'svg',
101
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
102
- });
103
- return jsx("div", {
104
- className: clsx('utrecht-vega-visualization', className),
105
- role: "img",
106
- "aria-label": label,
107
- children: jsx("div", {
108
- "aria-hidden": true,
109
- children: jsx(VegaEmbed, _objectSpread(_objectSpread({}, restProps), {}, {
110
- options: embedOptions
111
- }))
112
- })
113
- });
114
- };
115
-
116
- /**
117
- * @license EUPL-1.2
118
- * Copyright (c) 2020-2024 Frameless B.V.
119
- * Copyright (c) 2021-2024 Gemeente Utrecht
120
- */
121
- insertStyle(css);
122
-
123
- export { VegaVisualization };
124
- //# sourceMappingURL=VegaVisualization.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- export * from '../VegaVisualization';
7
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../../../src/css-module/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,cAAc,sBAAsB,CAAC"}