@utrecht/web-component-library-vue 1.0.0-alpha.106 → 1.0.0-alpha.107

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.
@@ -15,4 +15,4 @@ export interface InputProps extends Object {
15
15
  * @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
16
16
  * correctly updated when a user's event callback fires.
17
17
  */
18
- export declare const defineContainer: <Props>(name: string, customElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string, externalModelUpdateEvent?: string) => import("vue").DefineComponent<Props & InputProps, object, {}, Record<string, import("vue").ComputedGetter<any> | import("vue").WritableComputedOptions<any>>, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Props & InputProps extends import("vue").ComponentPropsOptions<Record<string, unknown>> ? import("vue").ExtractPropTypes<string[] & Props & InputProps> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<Record<string, unknown>> & Props & InputProps> : Props & InputProps>, import("vue").ExtractDefaultPropTypes<Props & InputProps>>;
18
+ export declare const defineContainer: <Props>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string, externalModelUpdateEvent?: string) => import("vue").DefineComponent<Props & InputProps, object, {}, Record<string, import("vue").ComputedGetter<any> | import("vue").WritableComputedOptions<any>>, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Props & InputProps extends import("vue").ComponentPropsOptions<Record<string, unknown>> ? import("vue").ExtractPropTypes<string[] & Props & InputProps> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<Record<string, unknown>> & Props & InputProps> : Props & InputProps>, import("vue").ExtractDefaultPropTypes<Props & InputProps>>;
@@ -38,16 +38,14 @@ const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
38
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
39
  * correctly updated when a user's event callback fires.
40
40
  */
41
- export const defineContainer = (name, customElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
41
+ export const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
42
42
  /**
43
43
  * Create a Vue component wrapper around a Web Component.
44
44
  * Note: The `props` here are not all properties on a component.
45
45
  * They refer to whatever properties are set on an instance of a component.
46
46
  */
47
- if (customElement !== undefined &&
48
- typeof customElements !== 'undefined' &&
49
- !customElements.get(name)) {
50
- customElements.define(name, customElement);
47
+ if (defineCustomElement !== undefined) {
48
+ defineCustomElement();
51
49
  }
52
50
  const Container = defineComponent((props, { attrs, slots, emit }) => {
53
51
  var _a;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.106",
2
+ "version": "1.0.0-alpha.107",
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",
@@ -28,10 +28,10 @@
28
28
  "dist/"
29
29
  ],
30
30
  "devDependencies": {
31
- "@utrecht/web-component-library-stencil": "1.0.0-alpha.160",
31
+ "@utrecht/web-component-library-stencil": "1.0.0-alpha.161",
32
32
  "rimraf": "3.0.2",
33
33
  "typescript": "4.1.6 <4.2",
34
34
  "vue": "3.2.26"
35
35
  },
36
- "gitHead": "5f3b625d3fc1a306bcb40037487552238fb509c2"
36
+ "gitHead": "0f0e321f9e566f2f3c5f6c0119bbaf1d13098da6"
37
37
  }