@utrecht/web-component-library-vue 1.0.0-alpha.31 → 1.0.0-alpha.310
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 +4 -2
- package/dist/clsx.m-9f200cc0.278af5d6.mjs +21 -0
- package/dist/components.d.ts +202 -941
- package/dist/core-js.e87058ae.mjs +3297 -0
- package/dist/dom.867dd471.mjs +664 -0
- package/dist/index.58c5347f.mjs +881 -0
- package/dist/index.d.ts +2 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/utrecht-article.entry.027ef98a.mjs +14 -0
- package/dist/utrecht-backdrop.entry.a335cd5c.mjs +16 -0
- package/dist/utrecht-badge-counter.entry.37dd6e64.mjs +15 -0
- package/dist/utrecht-badge-data.entry.191e6a37.mjs +14 -0
- package/dist/utrecht-badge-status.entry.f57e5813.mjs +14 -0
- package/dist/utrecht-breadcrumb.entry.56dd1075.mjs +18 -0
- package/dist/utrecht-button.entry.2cc7b0be.mjs +189 -0
- package/dist/utrecht-checkbox.entry.450e58ee.mjs +18 -0
- package/dist/utrecht-contact-card-template.entry.79c4b5c1.mjs +14 -0
- package/dist/utrecht-custom-checkbox.entry.e5e8c079.mjs +16 -0
- package/dist/utrecht-digid-button.entry.3aa52471.mjs +14 -0
- package/dist/utrecht-digid-logo.entry.7cf1f7ac.mjs +14 -0
- package/dist/utrecht-document.entry.5c25a4dd.mjs +14 -0
- package/dist/utrecht-eherkenning-logo.entry.65eb5edf.mjs +14 -0
- package/dist/utrecht-eidas-logo.entry.543c9e0c.mjs +14 -0
- package/dist/utrecht-form-field-checkbox.entry.2d160591.mjs +18 -0
- package/dist/utrecht-form-field-description.entry.2abb6b72.mjs +16 -0
- package/dist/utrecht-form-field-textarea.entry.885aa753.mjs +18 -0
- package/dist/utrecht-form-field-textbox.entry.19435529.mjs +18 -0
- package/dist/utrecht-form-toggle.entry.52f4642c.mjs +24 -0
- package/dist/utrecht-heading-1.entry.b0b5c16c.mjs +14 -0
- package/dist/utrecht-heading-2_3.entry.7edba44e.mjs +35 -0
- package/dist/utrecht-heading-4.entry.d7cd90ee.mjs +14 -0
- package/dist/utrecht-heading-5.entry.9d2950de.mjs +14 -0
- package/dist/utrecht-heading-6.entry.4b70791e.mjs +14 -0
- package/dist/utrecht-heading.entry.0ee6f07b.mjs +14 -0
- package/dist/utrecht-html-content.entry.cd701912.mjs +152 -0
- package/dist/utrecht-icon-afspraak-maken.entry.de7b2527.mjs +14 -0
- package/dist/utrecht-icon-afval-container.entry.4c120a99.mjs +14 -0
- package/dist/utrecht-icon-afval-containerpas.entry.625a5b61.mjs +14 -0
- package/dist/utrecht-icon-afval-kalender.entry.765c1efc.mjs +14 -0
- package/dist/utrecht-icon-afval-scheiden.entry.02847391.mjs +14 -0
- package/dist/utrecht-icon-afval.entry.d4a39702.mjs +14 -0
- package/dist/utrecht-icon-afvalkalender.entry.c8574a66.mjs +14 -0
- package/dist/utrecht-icon-alleen.entry.b9d83cf3.mjs +14 -0
- package/dist/utrecht-icon-arrow.entry.153da592.mjs +14 -0
- package/dist/utrecht-icon-bestemmingsplan.entry.c9c6492d.mjs +14 -0
- package/dist/utrecht-icon-betaaldatum.entry.08f357ca.mjs +14 -0
- package/dist/utrecht-icon-bewijsstukken.entry.2e26ae16.mjs +14 -0
- package/dist/utrecht-icon-bijstand.entry.d611187b.mjs +14 -0
- package/dist/utrecht-icon-blad.entry.606e72e3.mjs +14 -0
- package/dist/utrecht-icon-bouwproject.entry.cb7ecd7f.mjs +14 -0
- package/dist/utrecht-icon-brandgevaar.entry.e26df8d9.mjs +14 -0
- package/dist/utrecht-icon-brief-betalen.entry.434ec8d8.mjs +14 -0
- package/dist/utrecht-icon-checkmark.entry.960d9627.mjs +14 -0
- package/dist/utrecht-icon-college-b-w.entry.a419135e.mjs +14 -0
- package/dist/utrecht-icon-container-bio.entry.eed2e4ce.mjs +14 -0
- package/dist/utrecht-icon-container.entry.fe7d9cda.mjs +14 -0
- package/dist/utrecht-icon-cross.entry.7a307e20.mjs +14 -0
- package/dist/utrecht-icon-dakloos.entry.bf2289e4.mjs +14 -0
- package/dist/utrecht-icon-dementie.entry.cd3b847d.mjs +14 -0
- package/dist/utrecht-icon-documenten.entry.dcd7e00c.mjs +14 -0
- package/dist/utrecht-icon-duurzaam.entry.68d5a2a7.mjs +14 -0
- package/dist/utrecht-icon-eenzaamheid.entry.8ca5d619.mjs +14 -0
- package/dist/utrecht-icon-eikenprocessie.entry.558ac6cf.mjs +14 -0
- package/dist/utrecht-icon-elektrisch-rijden.entry.94271fba.mjs +14 -0
- package/dist/utrecht-icon-energie-vergoeding.entry.acc42eff.mjs +14 -0
- package/dist/utrecht-icon-energietransitie.entry.5178414b.mjs +14 -0
- package/dist/utrecht-icon-error.entry.37c7411e.mjs +14 -0
- package/dist/utrecht-icon-evenementen.entry.916ebfc0.mjs +14 -0
- package/dist/utrecht-icon-facebook.entry.3d0df90b.mjs +14 -0
- package/dist/utrecht-icon-fiets.entry.6635627b.mjs +14 -0
- package/dist/utrecht-icon-filter.entry.2b14b3b2.mjs +14 -0
- package/dist/utrecht-icon-gebruiker-centraal.entry.14032b6b.mjs +14 -0
- package/dist/utrecht-icon-gebruiker-ingelogd.entry.dff2a528.mjs +14 -0
- package/dist/utrecht-icon-gegevenswoordenboek.entry.ad26f321.mjs +14 -0
- package/dist/utrecht-icon-geluid.entry.470a7ce8.mjs +14 -0
- package/dist/utrecht-icon-gemeente-locatie.entry.0d86bfb3.mjs +14 -0
- package/dist/utrecht-icon-gemeenteraad.entry.bbb10e17.mjs +14 -0
- package/dist/utrecht-icon-gezicht.entry.fc6cfcbc.mjs +14 -0
- package/dist/utrecht-icon-glijbaan.entry.c6715e4e.mjs +14 -0
- package/dist/utrecht-icon-grafiek.entry.12e0e4ac.mjs +14 -0
- package/dist/utrecht-icon-grofvuil-ophalen.entry.e97befb4.mjs +14 -0
- package/dist/utrecht-icon-grofvuil.entry.d8c33175.mjs +14 -0
- package/dist/utrecht-icon-herdenking.entry.96562151.mjs +14 -0
- package/dist/utrecht-icon-hondenbelasting.entry.5a2688ac.mjs +14 -0
- package/dist/utrecht-icon-horeca.entry.19db8d28.mjs +14 -0
- package/dist/utrecht-icon-horecavergunning.entry.534e9b23.mjs +14 -0
- package/dist/utrecht-icon-huishoudelijk-geweld.entry.aa79815e.mjs +14 -0
- package/dist/utrecht-icon-hulp-huishouden.entry.c5febe39.mjs +14 -0
- package/dist/utrecht-icon-hulp-vervoer.entry.fdd2e0db.mjs +14 -0
- package/dist/utrecht-icon-hulp-zorg.entry.24733d10.mjs +14 -0
- package/dist/utrecht-icon-hulpmiddelen-gezin.entry.f5387f18.mjs +14 -0
- package/dist/utrecht-icon-hulpverlening.entry.2177554c.mjs +14 -0
- package/dist/utrecht-icon-idee.entry.8d2c7b3e.mjs +14 -0
- package/dist/utrecht-icon-information.entry.c0061ec0.mjs +14 -0
- package/dist/utrecht-icon-innovatie.entry.6fb5b7ec.mjs +14 -0
- package/dist/utrecht-icon-inspraak-inwoners.entry.3e8e2546.mjs +14 -0
- package/dist/utrecht-icon-instagram.entry.8f9dca00.mjs +14 -0
- package/dist/utrecht-icon-kalender.entry.63d51bd2.mjs +14 -0
- package/dist/utrecht-icon-kennis.entry.0c343276.mjs +14 -0
- package/dist/utrecht-icon-kerstbomen.entry.50cb9619.mjs +14 -0
- package/dist/utrecht-icon-klachten.entry.a33fbb65.mjs +14 -0
- package/dist/utrecht-icon-kroon.entry.f3f2786d.mjs +14 -0
- package/dist/utrecht-icon-laadpaal.entry.3462ad61.mjs +14 -0
- package/dist/utrecht-icon-lantaarnpaal-oud.entry.f29fe7b8.mjs +14 -0
- package/dist/utrecht-icon-lantaarnpaal.entry.d2af8e4b.mjs +14 -0
- package/dist/utrecht-icon-leren.entry.741c9364.mjs +14 -0
- package/dist/utrecht-icon-let-op.entry.2a180102.mjs +14 -0
- package/dist/utrecht-icon-linkedin.entry.7b5ebc3d.mjs +14 -0
- package/dist/utrecht-icon-list.entry.8cc6fe88.mjs +14 -0
- package/dist/utrecht-icon-loupe.entry.0e99e14b.mjs +14 -0
- package/dist/utrecht-icon-markt.entry.c4fd52d0.mjs +14 -0
- package/dist/utrecht-icon-melding-boom.entry.caadeeb5.mjs +14 -0
- package/dist/utrecht-icon-melding-klacht.entry.07ce4079.mjs +14 -0
- package/dist/utrecht-icon-melding-openbareruimte.entry.a23669f8.mjs +14 -0
- package/dist/utrecht-icon-melding-verlichting.entry.8c275dbc.mjs +14 -0
- package/dist/utrecht-icon-melding.entry.06596aed.mjs +14 -0
- package/dist/utrecht-icon-menselijk.entry.a1b76e04.mjs +14 -0
- package/dist/utrecht-icon-milieu-ontheffing.entry.8b5a4d06.mjs +14 -0
- package/dist/utrecht-icon-natuur.entry.f3638139.mjs +14 -0
- package/dist/utrecht-icon-nieuw-huis.entry.7467adb0.mjs +14 -0
- package/dist/utrecht-icon-nummerbord.entry.89cf9c4c.mjs +14 -0
- package/dist/utrecht-icon-om-het-huis.entry.d9b39c3c.mjs +14 -0
- package/dist/utrecht-icon-omgeving.entry.c122423f.mjs +14 -0
- package/dist/utrecht-icon-omgevingsvisie.entry.1afdebef.mjs +14 -0
- package/dist/utrecht-icon-omgevingswet.entry.50c8e4ac.mjs +14 -0
- package/dist/utrecht-icon-onderhoud.entry.2a880b05.mjs +14 -0
- package/dist/utrecht-icon-ondernemen.entry.8f645ee7.mjs +14 -0
- package/dist/utrecht-icon-openingstijden.entry.20ec42b0.mjs +14 -0
- package/dist/utrecht-icon-over-de-stad.entry.c1b203f5.mjs +14 -0
- package/dist/utrecht-icon-overlijden.entry.e2f53085.mjs +14 -0
- package/dist/utrecht-icon-panden.entry.84f59ca8.mjs +14 -0
- package/dist/utrecht-icon-park.entry.9ebe991a.mjs +14 -0
- package/dist/utrecht-icon-parkeerkaart.entry.1b29007e.mjs +14 -0
- package/dist/utrecht-icon-parkeervergunning.entry.cab11891.mjs +14 -0
- package/dist/utrecht-icon-parken.entry.017c4ea1.mjs +14 -0
- package/dist/utrecht-icon-parkeren-bedrijven.entry.0b5738a0.mjs +14 -0
- package/dist/utrecht-icon-parkeren-betaalautomaat.entry.0f1c499a.mjs +14 -0
- package/dist/utrecht-icon-parkeren-betalen.entry.d420c0c8.mjs +14 -0
- package/dist/utrecht-icon-participatie-campagne.entry.2f8ac6e5.mjs +14 -0
- package/dist/utrecht-icon-participatie-like.entry.8dd69fa9.mjs +14 -0
- package/dist/utrecht-icon-participatie-pitch.entry.05dfbbd4.mjs +14 -0
- package/dist/utrecht-icon-paspoort.entry.86c3bbc9.mjs +14 -0
- package/dist/utrecht-icon-rijbewijs.entry.dd13714d.mjs +14 -0
- package/dist/utrecht-icon-rolstoel.entry.ff53fef4.mjs +14 -0
- package/dist/utrecht-icon-schild-gemeente-utrecht.entry.2c7d3134.mjs +14 -0
- package/dist/utrecht-icon-shoppen.entry.d7f59ed7.mjs +14 -0
- package/dist/utrecht-icon-sinterklaas.entry.4fe1246d.mjs +14 -0
- package/dist/utrecht-icon-slechtziende-hoordende.entry.042de27b.mjs +14 -0
- package/dist/utrecht-icon-sport-en-cultuur.entry.1dba29c8.mjs +14 -0
- package/dist/utrecht-icon-sport.entry.4b0e4430.mjs +14 -0
- package/dist/utrecht-icon-stookverbod.entry.cccd09eb.mjs +14 -0
- package/dist/utrecht-icon-strand.entry.b35f1113.mjs +14 -0
- package/dist/utrecht-icon-strooien.entry.ad87df36.mjs +14 -0
- package/dist/utrecht-icon-subsidie-gezin.entry.5c055cf9.mjs +14 -0
- package/dist/utrecht-icon-subsidie.entry.c04bde62.mjs +14 -0
- package/dist/utrecht-icon-toeslag.entry.655e2a3c.mjs +14 -0
- package/dist/utrecht-icon-trein.entry.13e1b6ea.mjs +14 -0
- package/dist/utrecht-icon-trouwen.entry.8360e634.mjs +14 -0
- package/dist/utrecht-icon-twitter.entry.e1cd046a.mjs +14 -0
- package/dist/utrecht-icon-uw-wijk.entry.0dca923d.mjs +14 -0
- package/dist/utrecht-icon-vaccinatie.entry.14349885.mjs +14 -0
- package/dist/utrecht-icon-veilige-wijk.entry.10de4aac.mjs +14 -0
- package/dist/utrecht-icon-vergaderen.entry.de6a140a.mjs +14 -0
- package/dist/utrecht-icon-vergoeding.entry.8d4951a2.mjs +14 -0
- package/dist/utrecht-icon-verhuizen.entry.77b13f60.mjs +14 -0
- package/dist/utrecht-icon-verkeerslicht.entry.ba5daa19.mjs +14 -0
- package/dist/utrecht-icon-verkiezingen.entry.b4ce4a62.mjs +14 -0
- package/dist/utrecht-icon-verslaving.entry.fac7544f.mjs +14 -0
- package/dist/utrecht-icon-vervoersvoorziening.entry.8a56985a.mjs +14 -0
- package/dist/utrecht-icon-virus.entry.6a8b548f.mjs +14 -0
- package/dist/utrecht-icon-vluchtelingen.entry.4b221166.mjs +14 -0
- package/dist/utrecht-icon-voorzieningen-vervoer.entry.35f3631b.mjs +14 -0
- package/dist/utrecht-icon-vrijwilligerswerk.entry.4b65634e.mjs +14 -0
- package/dist/utrecht-icon-vuurwerk.entry.d8df778e.mjs +14 -0
- package/dist/utrecht-icon-wandelstok.entry.44ab3d4b.mjs +14 -0
- package/dist/utrecht-icon-warm.entry.c5d8d6fc.mjs +14 -0
- package/dist/utrecht-icon-warning.entry.b1fff2da.mjs +14 -0
- package/dist/utrecht-icon-werken.entry.9baf1dd9.mjs +14 -0
- package/dist/utrecht-icon-werkzaamheden.entry.7a69697a.mjs +14 -0
- package/dist/utrecht-icon-whatsapp.entry.62f6c245.mjs +14 -0
- package/dist/utrecht-icon-wonen-kosten.entry.53ba5613.mjs +14 -0
- package/dist/utrecht-icon-woning-zoeken.entry.8ac37a41.mjs +14 -0
- package/dist/utrecht-icon-youtube.entry.54293bc5.mjs +14 -0
- package/dist/utrecht-icon-zelfstandig-wonen.entry.0c60ccf1.mjs +14 -0
- package/dist/utrecht-icon-zoomin.entry.c1ab3776.mjs +14 -0
- package/dist/utrecht-icon-zoomout.entry.27cc854f.mjs +14 -0
- package/dist/utrecht-icon-zorg-huis.entry.52744d40.mjs +14 -0
- package/dist/utrecht-icon-zwemmen.entry.73f6ac73.mjs +14 -0
- package/dist/utrecht-icon.entry.59a955a9.mjs +14 -0
- package/dist/utrecht-logo-button.entry.41da9ed2.mjs +14 -0
- package/dist/utrecht-logo.entry.bd45989d.mjs +14 -0
- package/dist/utrecht-map-marker.entry.a5289686.mjs +14 -0
- package/dist/utrecht-page-content.entry.6cf5c963.mjs +14 -0
- package/dist/utrecht-page-footer.entry.43daf6b5.mjs +14 -0
- package/dist/utrecht-page-header.entry.c2e28a16.mjs +14 -0
- package/dist/utrecht-page.entry.b6f06c5a.mjs +14 -0
- package/dist/utrecht-pagination.entry.999c2db0.mjs +19 -0
- package/dist/utrecht-separator.entry.b440d5a7.mjs +14 -0
- package/dist/utrecht-sidenav.entry.b9fd6f3f.mjs +16 -0
- package/dist/utrecht-table-body.entry.fb4a57d7.mjs +14 -0
- package/dist/utrecht-table-caption.entry.ad3fe846.mjs +14 -0
- package/dist/utrecht-table-cell.entry.5b5ddbea.mjs +14 -0
- package/dist/utrecht-table-footer.entry.25eecf4d.mjs +14 -0
- package/dist/utrecht-table-header-cell.entry.c7802a9b.mjs +14 -0
- package/dist/utrecht-table-header.entry.c38e00c8.mjs +14 -0
- package/dist/utrecht-table-row.entry.82474838.mjs +14 -0
- package/dist/utrecht-table.entry.dce61ff1.mjs +14 -0
- package/dist/utrecht-textbox.entry.ba5949e1.mjs +18 -0
- package/dist/vue-component-lib/utils.d.ts +7 -3
- package/dist/web-component-library-vue.es.js +207 -0
- package/dist/web-component-library-vue.umd.js +318 -0
- package/package.json +26 -10
- package/dist/components.js +0 -141
- package/dist/vue-component-lib/utils.js +0 -162
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.310",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Vue.js web components for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"name": "@utrecht/web-component-library-vue",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"nl-design-system"
|
|
9
|
+
],
|
|
7
10
|
"private": false,
|
|
8
11
|
"publishConfig": {
|
|
9
12
|
"access": "public"
|
|
@@ -14,20 +17,33 @@
|
|
|
14
17
|
},
|
|
15
18
|
"sideEffects": false,
|
|
16
19
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
20
|
+
"clean": "rimraf dist/",
|
|
21
|
+
"build": "vue-tsc --noEmit && vite build"
|
|
19
22
|
},
|
|
20
|
-
"main": "./dist/components.js",
|
|
21
|
-
"module": "./dist/components.js",
|
|
22
|
-
"types": "./dist/components.d.ts",
|
|
23
23
|
"files": [
|
|
24
|
-
"dist
|
|
24
|
+
"dist"
|
|
25
25
|
],
|
|
26
|
+
"main": "./dist/web-component-library-vue.umd.js",
|
|
27
|
+
"module": "./dist/web-component-library-vue.es.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./dist/web-component-library-vue.es.js",
|
|
32
|
+
"require": "./dist/web-component-library-vue.umd.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
26
35
|
"devDependencies": {
|
|
27
|
-
"@
|
|
36
|
+
"@vitejs/plugin-vue": "3.0.1",
|
|
37
|
+
"@vue/tsconfig": "0.1.3",
|
|
28
38
|
"rimraf": "3.0.2",
|
|
29
39
|
"typescript": "4.1.6 <4.2",
|
|
30
|
-
"
|
|
40
|
+
"vite": "3.0.4",
|
|
41
|
+
"vite-plugin-dts": "1.4.1",
|
|
42
|
+
"vue": "3.2.37",
|
|
43
|
+
"vue-tsc": "0.39.4"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@utrecht/web-component-library-stencil": "1.0.0-alpha.364"
|
|
31
47
|
},
|
|
32
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e13e9c6c1ce7f570c69754464081cf4ca9b0d55c"
|
|
33
49
|
}
|
package/dist/components.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* auto-generated vue proxies */
|
|
4
|
-
import { defineContainer } from './vue-component-lib/utils';
|
|
5
|
-
export const UtrechtArticle = /*@__PURE__*/ defineContainer('utrecht-article', undefined);
|
|
6
|
-
export const UtrechtBadgeCounter = /*@__PURE__*/ defineContainer('utrecht-badge-counter', undefined, [
|
|
7
|
-
'value',
|
|
8
|
-
'max',
|
|
9
|
-
'locale'
|
|
10
|
-
]);
|
|
11
|
-
export const UtrechtBadgeData = /*@__PURE__*/ defineContainer('utrecht-badge-data', undefined);
|
|
12
|
-
export const UtrechtBadgeStatus = /*@__PURE__*/ defineContainer('utrecht-badge-status', undefined, [
|
|
13
|
-
'status'
|
|
14
|
-
]);
|
|
15
|
-
export const UtrechtBreadcrumb = /*@__PURE__*/ defineContainer('utrecht-breadcrumb', undefined, [
|
|
16
|
-
'json',
|
|
17
|
-
'variant'
|
|
18
|
-
]);
|
|
19
|
-
export const UtrechtButton = /*@__PURE__*/ defineContainer('utrecht-button', undefined, [
|
|
20
|
-
'disabled',
|
|
21
|
-
'type',
|
|
22
|
-
'utrechtRequestReset',
|
|
23
|
-
'utrechtRequestSubmit'
|
|
24
|
-
]);
|
|
25
|
-
export const UtrechtCheckbox = /*@__PURE__*/ defineContainer('utrecht-checkbox', undefined, [
|
|
26
|
-
'disabled',
|
|
27
|
-
'readOnly',
|
|
28
|
-
'checked',
|
|
29
|
-
'value',
|
|
30
|
-
'utrechtBlur',
|
|
31
|
-
'utrechtChange',
|
|
32
|
-
'utrechtFocus',
|
|
33
|
-
'utrechtInput'
|
|
34
|
-
], 'checked', 'utrechtInput');
|
|
35
|
-
export const UtrechtContactCardTemplate = /*@__PURE__*/ defineContainer('utrecht-contact-card-template', undefined);
|
|
36
|
-
export const UtrechtDocument = /*@__PURE__*/ defineContainer('utrecht-document', undefined);
|
|
37
|
-
export const UtrechtFormFieldCheckbox = /*@__PURE__*/ defineContainer('utrecht-form-field-checkbox', undefined, [
|
|
38
|
-
'label',
|
|
39
|
-
'disabled',
|
|
40
|
-
'checked',
|
|
41
|
-
'invalid',
|
|
42
|
-
'required',
|
|
43
|
-
'utrechtBlur',
|
|
44
|
-
'utrechtChange',
|
|
45
|
-
'utrechtFocus',
|
|
46
|
-
'utrechtInput'
|
|
47
|
-
], 'checked', 'utrechtInput');
|
|
48
|
-
export const UtrechtFormFieldDescription = /*@__PURE__*/ defineContainer('utrecht-form-field-description', undefined, [
|
|
49
|
-
'status'
|
|
50
|
-
]);
|
|
51
|
-
export const UtrechtFormFieldTextarea = /*@__PURE__*/ defineContainer('utrecht-form-field-textarea', undefined, [
|
|
52
|
-
'disabled',
|
|
53
|
-
'invalid',
|
|
54
|
-
'readOnly',
|
|
55
|
-
'placeholder',
|
|
56
|
-
'required',
|
|
57
|
-
'value',
|
|
58
|
-
'utrechtBlur',
|
|
59
|
-
'utrechtChange',
|
|
60
|
-
'utrechtFocus',
|
|
61
|
-
'utrechtInput'
|
|
62
|
-
], 'value', 'utrechtInput');
|
|
63
|
-
export const UtrechtFormFieldTextbox = /*@__PURE__*/ defineContainer('utrecht-form-field-textbox', undefined, [
|
|
64
|
-
'autoComplete',
|
|
65
|
-
'disabled',
|
|
66
|
-
'invalid',
|
|
67
|
-
'min',
|
|
68
|
-
'max',
|
|
69
|
-
'pattern',
|
|
70
|
-
'placeholder',
|
|
71
|
-
'readOnly',
|
|
72
|
-
'required',
|
|
73
|
-
'type',
|
|
74
|
-
'value',
|
|
75
|
-
'utrechtBlur',
|
|
76
|
-
'utrechtChange',
|
|
77
|
-
'utrechtFocus',
|
|
78
|
-
'utrechtInput'
|
|
79
|
-
], 'value', 'utrechtInput');
|
|
80
|
-
export const UtrechtFormToggle = /*@__PURE__*/ defineContainer('utrecht-form-toggle', undefined, [
|
|
81
|
-
'disabled',
|
|
82
|
-
'checked',
|
|
83
|
-
'utrechtBlur',
|
|
84
|
-
'utrechtChange',
|
|
85
|
-
'utrechtFocus',
|
|
86
|
-
'utrechtInput'
|
|
87
|
-
], 'checked', 'utrechtInput');
|
|
88
|
-
export const UtrechtHeading = /*@__PURE__*/ defineContainer('utrecht-heading', undefined, [
|
|
89
|
-
'level'
|
|
90
|
-
]);
|
|
91
|
-
export const UtrechtHeading1 = /*@__PURE__*/ defineContainer('utrecht-heading-1', undefined);
|
|
92
|
-
export const UtrechtHeading2 = /*@__PURE__*/ defineContainer('utrecht-heading-2', undefined);
|
|
93
|
-
export const UtrechtHeading3 = /*@__PURE__*/ defineContainer('utrecht-heading-3', undefined);
|
|
94
|
-
export const UtrechtHeading4 = /*@__PURE__*/ defineContainer('utrecht-heading-4', undefined);
|
|
95
|
-
export const UtrechtHeading5 = /*@__PURE__*/ defineContainer('utrecht-heading-5', undefined);
|
|
96
|
-
export const UtrechtHeading6 = /*@__PURE__*/ defineContainer('utrecht-heading-6', undefined);
|
|
97
|
-
export const UtrechtHtmlContent = /*@__PURE__*/ defineContainer('utrecht-html-content', undefined);
|
|
98
|
-
export const UtrechtIconArrow = /*@__PURE__*/ defineContainer('utrecht-icon-arrow', undefined);
|
|
99
|
-
export const UtrechtIconCross = /*@__PURE__*/ defineContainer('utrecht-icon-cross', undefined);
|
|
100
|
-
export const UtrechtIconFacebook = /*@__PURE__*/ defineContainer('utrecht-icon-facebook', undefined);
|
|
101
|
-
export const UtrechtIconFilter = /*@__PURE__*/ defineContainer('utrecht-icon-filter', undefined);
|
|
102
|
-
export const UtrechtIconInstagram = /*@__PURE__*/ defineContainer('utrecht-icon-instagram', undefined);
|
|
103
|
-
export const UtrechtIconLinkedin = /*@__PURE__*/ defineContainer('utrecht-icon-linkedin', undefined);
|
|
104
|
-
export const UtrechtIconList = /*@__PURE__*/ defineContainer('utrecht-icon-list', undefined);
|
|
105
|
-
export const UtrechtIconLoupe = /*@__PURE__*/ defineContainer('utrecht-icon-loupe', undefined);
|
|
106
|
-
export const UtrechtIconTwitter = /*@__PURE__*/ defineContainer('utrecht-icon-twitter', undefined);
|
|
107
|
-
export const UtrechtIconWhatsapp = /*@__PURE__*/ defineContainer('utrecht-icon-whatsapp', undefined);
|
|
108
|
-
export const UtrechtIconZoomin = /*@__PURE__*/ defineContainer('utrecht-icon-zoomin', undefined);
|
|
109
|
-
export const UtrechtIconZoomout = /*@__PURE__*/ defineContainer('utrecht-icon-zoomout', undefined);
|
|
110
|
-
export const UtrechtLogo = /*@__PURE__*/ defineContainer('utrecht-logo', undefined);
|
|
111
|
-
export const UtrechtPageFooter = /*@__PURE__*/ defineContainer('utrecht-page-footer', undefined);
|
|
112
|
-
export const UtrechtPagination = /*@__PURE__*/ defineContainer('utrecht-pagination', undefined, [
|
|
113
|
-
'links',
|
|
114
|
-
'next',
|
|
115
|
-
'prev',
|
|
116
|
-
'currentIndex'
|
|
117
|
-
]);
|
|
118
|
-
export const UtrechtParagraph = /*@__PURE__*/ defineContainer('utrecht-paragraph', undefined, [
|
|
119
|
-
'lead'
|
|
120
|
-
]);
|
|
121
|
-
export const UtrechtSeparator = /*@__PURE__*/ defineContainer('utrecht-separator', undefined);
|
|
122
|
-
export const UtrechtSidenav = /*@__PURE__*/ defineContainer('utrecht-sidenav', undefined, [
|
|
123
|
-
'json'
|
|
124
|
-
]);
|
|
125
|
-
export const UtrechtTextbox = /*@__PURE__*/ defineContainer('utrecht-textbox', undefined, [
|
|
126
|
-
'autoComplete',
|
|
127
|
-
'disabled',
|
|
128
|
-
'invalid',
|
|
129
|
-
'min',
|
|
130
|
-
'max',
|
|
131
|
-
'pattern',
|
|
132
|
-
'placeholder',
|
|
133
|
-
'readOnly',
|
|
134
|
-
'required',
|
|
135
|
-
'type',
|
|
136
|
-
'value',
|
|
137
|
-
'utrechtBlur',
|
|
138
|
-
'utrechtChange',
|
|
139
|
-
'utrechtFocus',
|
|
140
|
-
'utrechtInput'
|
|
141
|
-
], 'value', 'utrechtInput');
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, h, inject, ref } from 'vue';
|
|
2
|
-
const UPDATE_VALUE_EVENT = 'update:modelValue';
|
|
3
|
-
const MODEL_VALUE = 'modelValue';
|
|
4
|
-
const ROUTER_LINK_VALUE = 'routerLink';
|
|
5
|
-
const NAV_MANAGER = 'navManager';
|
|
6
|
-
const ROUTER_PROP_PREFIX = 'router';
|
|
7
|
-
/**
|
|
8
|
-
* Starting in Vue 3.1.0, all properties are
|
|
9
|
-
* added as keys to the props object, even if
|
|
10
|
-
* they are not being used. In order to correctly
|
|
11
|
-
* account for both value props and v-model props,
|
|
12
|
-
* we need to check if the key exists for Vue <3.1.0
|
|
13
|
-
* and then check if it is not undefined for Vue >= 3.1.0.
|
|
14
|
-
* See https://github.com/vuejs/vue-next/issues/3889
|
|
15
|
-
*/
|
|
16
|
-
const EMPTY_PROP = Symbol();
|
|
17
|
-
const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
|
|
18
|
-
const getComponentClasses = (classes) => {
|
|
19
|
-
var _a;
|
|
20
|
-
return ((_a = classes) === null || _a === void 0 ? void 0 : _a.split(' ')) || [];
|
|
21
|
-
};
|
|
22
|
-
const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
|
|
23
|
-
var _a;
|
|
24
|
-
return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses]
|
|
25
|
-
.filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
29
|
-
*
|
|
30
|
-
* @prop name - The component tag name (i.e. `ion-button`)
|
|
31
|
-
* @prop componentProps - An array of properties on the
|
|
32
|
-
* component. These usually match up with the @Prop definitions
|
|
33
|
-
* in each component's TSX file.
|
|
34
|
-
* @prop customElement - An option custom element instance to pass
|
|
35
|
-
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
36
|
-
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
37
|
-
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
38
|
-
* @prop externalModelUpdateEvent - The external event to fire from your Vue component when modelUpdateEvent fires. This is used for ensuring that v-model references have been
|
|
39
|
-
* correctly updated when a user's event callback fires.
|
|
40
|
-
*/
|
|
41
|
-
export const defineContainer = (name, customElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
|
|
42
|
-
/**
|
|
43
|
-
* Create a Vue component wrapper around a Web Component.
|
|
44
|
-
* Note: The `props` here are not all properties on a component.
|
|
45
|
-
* They refer to whatever properties are set on an instance of a component.
|
|
46
|
-
*/
|
|
47
|
-
if (customElement !== undefined &&
|
|
48
|
-
typeof customElements !== 'undefined' &&
|
|
49
|
-
!customElements.get(name)) {
|
|
50
|
-
customElements.define(name, customElement);
|
|
51
|
-
}
|
|
52
|
-
const Container = defineComponent((props, { attrs, slots, emit }) => {
|
|
53
|
-
var _a;
|
|
54
|
-
let modelPropValue = props[modelProp];
|
|
55
|
-
const containerRef = ref();
|
|
56
|
-
const classes = new Set(getComponentClasses(attrs.class));
|
|
57
|
-
const onVnodeBeforeMount = (vnode) => {
|
|
58
|
-
// Add a listener to tell Vue to update the v-model
|
|
59
|
-
if (vnode.el) {
|
|
60
|
-
const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
|
|
61
|
-
eventsNames.forEach((eventName) => {
|
|
62
|
-
vnode.el.addEventListener(eventName, (e) => {
|
|
63
|
-
modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
|
|
64
|
-
emit(UPDATE_VALUE_EVENT, modelPropValue);
|
|
65
|
-
/**
|
|
66
|
-
* We need to emit the change event here
|
|
67
|
-
* rather than on the web component to ensure
|
|
68
|
-
* that any v-model bindings have been updated.
|
|
69
|
-
* Otherwise, the developer will listen on the
|
|
70
|
-
* native web component, but the v-model will
|
|
71
|
-
* not have been updated yet.
|
|
72
|
-
*/
|
|
73
|
-
if (externalModelUpdateEvent) {
|
|
74
|
-
emit(externalModelUpdateEvent, e);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
const currentInstance = getCurrentInstance();
|
|
81
|
-
const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
|
|
82
|
-
const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
|
|
83
|
-
const handleRouterLink = (ev) => {
|
|
84
|
-
const { routerLink } = props;
|
|
85
|
-
if (routerLink === EMPTY_PROP)
|
|
86
|
-
return;
|
|
87
|
-
if (navManager !== undefined) {
|
|
88
|
-
let navigationPayload = { event: ev };
|
|
89
|
-
for (const key in props) {
|
|
90
|
-
const value = props[key];
|
|
91
|
-
if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
|
|
92
|
-
navigationPayload[key] = value;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
navManager.navigate(navigationPayload);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
return () => {
|
|
102
|
-
modelPropValue = props[modelProp];
|
|
103
|
-
getComponentClasses(attrs.class).forEach(value => {
|
|
104
|
-
classes.add(value);
|
|
105
|
-
});
|
|
106
|
-
const oldClick = props.onClick;
|
|
107
|
-
const handleClick = (ev) => {
|
|
108
|
-
if (oldClick !== undefined) {
|
|
109
|
-
oldClick(ev);
|
|
110
|
-
}
|
|
111
|
-
if (!ev.defaultPrevented) {
|
|
112
|
-
handleRouterLink(ev);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
let propsToAdd = {
|
|
116
|
-
ref: containerRef,
|
|
117
|
-
class: getElementClasses(containerRef, classes),
|
|
118
|
-
onClick: handleClick,
|
|
119
|
-
onVnodeBeforeMount: (modelUpdateEvent) ? onVnodeBeforeMount : undefined
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* We can use Object.entries here
|
|
123
|
-
* to avoid the hasOwnProperty check,
|
|
124
|
-
* but that would require 2 iterations
|
|
125
|
-
* where as this only requires 1.
|
|
126
|
-
*/
|
|
127
|
-
for (const key in props) {
|
|
128
|
-
const value = props[key];
|
|
129
|
-
if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
|
|
130
|
-
propsToAdd[key] = value;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
if (modelProp) {
|
|
134
|
-
/**
|
|
135
|
-
* If form value property was set using v-model
|
|
136
|
-
* then we should use that value.
|
|
137
|
-
* Otherwise, check to see if form value property
|
|
138
|
-
* was set as a static value (i.e. no v-model).
|
|
139
|
-
*/
|
|
140
|
-
if (props[MODEL_VALUE] !== EMPTY_PROP) {
|
|
141
|
-
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
|
|
142
|
-
}
|
|
143
|
-
else if (modelPropValue !== EMPTY_PROP) {
|
|
144
|
-
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return h(name, propsToAdd, slots.default && slots.default());
|
|
148
|
-
};
|
|
149
|
-
});
|
|
150
|
-
Container.displayName = name;
|
|
151
|
-
Container.props = {
|
|
152
|
-
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP
|
|
153
|
-
};
|
|
154
|
-
componentProps.forEach(componentProp => {
|
|
155
|
-
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
156
|
-
});
|
|
157
|
-
if (modelProp) {
|
|
158
|
-
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
|
|
159
|
-
Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent];
|
|
160
|
-
}
|
|
161
|
-
return Container;
|
|
162
|
-
};
|