@heartlandone/vega-vue 1.3.0
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/LICENSE.md +9 -0
- package/README.md +43 -0
- package/dist/components.d.ts +36 -0
- package/dist/components.js +320 -0
- package/dist/components.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +26 -0
- package/dist/plugin.js.map +1 -0
- package/dist/vue-component-lib/utils.d.ts +22 -0
- package/dist/vue-component-lib/utils.js +161 -0
- package/dist/vue-component-lib/utils.js.map +1 -0
- package/package.json +33 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-present Drifty Co.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @heartlandone/vega-vue
|
|
2
|
+
|
|
3
|
+
Vue specific wrapper for @heartlandone/vega
|
|
4
|
+
|
|
5
|
+
## To consume the package:
|
|
6
|
+
|
|
7
|
+
1. Install the package
|
|
8
|
+
```bash
|
|
9
|
+
yarn add @heartlandone/vega-vue
|
|
10
|
+
# or
|
|
11
|
+
npm install @heartlandone/vega-vue
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
2. Skipping Component Resolution
|
|
15
|
+
Please follow [this link](https://vuejs.org/guide/extras/web-components.html#using-custom-elements-in-vue) to let Vue know that the elements start with `vega-` is custom element instead of vue component.
|
|
16
|
+
|
|
17
|
+
3. Import `vega_min.css` for vega component styling and use `VegaComponentLibrary` as one of your app plugins, for example
|
|
18
|
+
```javascript
|
|
19
|
+
import '@heartlandone/vega/style/vega_min.css';
|
|
20
|
+
import { VegaComponentLibrary } from '@heartlandone/vega-vue';
|
|
21
|
+
|
|
22
|
+
createApp(App).use(VegaComponentLibrary).mount('#app');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Note:**
|
|
26
|
+
- to pass a complex data (`array`, `object`) to the vega component property, please append `.prop` modifier to the property name, for more details please check [link](https://vuejs.org/guide/extras/web-components.html#passing-dom-properties)
|
|
27
|
+
```vue
|
|
28
|
+
<vega-input-select :source.prop="{
|
|
29
|
+
displayName: 'Alabama',
|
|
30
|
+
id: 'AL',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Alaska',
|
|
34
|
+
id: 'AK',
|
|
35
|
+
}"></vega-input-select>
|
|
36
|
+
```
|
|
37
|
+
- To use a `slot` attribute within vega components, please make sure that [you have added the disabled corresponding lint rule](https://stenciljs.com/docs/vue#vue-warns-slot-attributes-are-deprecated-vue-no-deprecated-slot-attribute), for example:
|
|
38
|
+
```vue
|
|
39
|
+
<vega-accordion :accordion-title="accordionTitle">
|
|
40
|
+
<!-- eslint-disable-next-line vue/no-deprecated-slot-attribute-->
|
|
41
|
+
<div slot='content'>{{emailDisplayValue}}</div>
|
|
42
|
+
</vega-accordion>
|
|
43
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { JSX } from '@heartlandone/vega';
|
|
2
|
+
export declare const VegaAccordion: import("vue").DefineComponent<JSX.VegaAccordion & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaAccordion & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
3
|
+
export declare const VegaAppFooter: import("vue").DefineComponent<JSX.VegaAppFooter & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaAppFooter & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
4
|
+
export declare const VegaBadge: import("vue").DefineComponent<JSX.VegaBadge & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaBadge & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
5
|
+
export declare const VegaButton: import("vue").DefineComponent<JSX.VegaButton & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaButton & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
6
|
+
export declare const VegaButtonCircle: import("vue").DefineComponent<JSX.VegaButtonCircle & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaButtonCircle & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
7
|
+
export declare const VegaButtonLink: import("vue").DefineComponent<JSX.VegaButtonLink & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaButtonLink & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
8
|
+
export declare const VegaCard: import("vue").DefineComponent<JSX.VegaCard & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaCard & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
9
|
+
export declare const VegaCarousel: import("vue").DefineComponent<JSX.VegaCarousel & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaCarousel & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
10
|
+
export declare const VegaCheckbox: import("vue").DefineComponent<JSX.VegaCheckbox & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaCheckbox & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
11
|
+
export declare const VegaCheckboxGroup: import("vue").DefineComponent<JSX.VegaCheckboxGroup & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaCheckboxGroup & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
12
|
+
export declare const VegaDatePicker: import("vue").DefineComponent<JSX.VegaDatePicker & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaDatePicker & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
13
|
+
export declare const VegaDropdown: import("vue").DefineComponent<JSX.VegaDropdown & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaDropdown & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
14
|
+
export declare const VegaFlex: import("vue").DefineComponent<JSX.VegaFlex & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaFlex & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
15
|
+
export declare const VegaFooter: import("vue").DefineComponent<JSX.VegaFooter & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaFooter & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
16
|
+
export declare const VegaForm: import("vue").DefineComponent<JSX.VegaForm & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaForm & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
17
|
+
export declare const VegaGrid: import("vue").DefineComponent<JSX.VegaGrid & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaGrid & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
18
|
+
export declare const VegaHeader: import("vue").DefineComponent<JSX.VegaHeader & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaHeader & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
19
|
+
export declare const VegaIcon: import("vue").DefineComponent<JSX.VegaIcon & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaIcon & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
20
|
+
export declare const VegaInput: import("vue").DefineComponent<JSX.VegaInput & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaInput & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
21
|
+
export declare const VegaInputSelect: import("vue").DefineComponent<JSX.VegaInputSelect & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaInputSelect & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
22
|
+
export declare const VegaItemToggle: import("vue").DefineComponent<JSX.VegaItemToggle & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaItemToggle & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
23
|
+
export declare const VegaModal: import("vue").DefineComponent<JSX.VegaModal & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaModal & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
24
|
+
export declare const VegaOption: import("vue").DefineComponent<JSX.VegaOption & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaOption & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
25
|
+
export declare const VegaPagination: import("vue").DefineComponent<JSX.VegaPagination & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaPagination & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
26
|
+
export declare const VegaProgressTracker: import("vue").DefineComponent<JSX.VegaProgressTracker & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaProgressTracker & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
27
|
+
export declare const VegaRadio: import("vue").DefineComponent<JSX.VegaRadio & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaRadio & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
28
|
+
export declare const VegaRadioGroup: import("vue").DefineComponent<JSX.VegaRadioGroup & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaRadioGroup & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
29
|
+
export declare const VegaSidenav: import("vue").DefineComponent<JSX.VegaSidenav & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaSidenav & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
30
|
+
export declare const VegaSidenavGroup: import("vue").DefineComponent<JSX.VegaSidenavGroup & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaSidenavGroup & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
31
|
+
export declare const VegaSidenavLink: import("vue").DefineComponent<JSX.VegaSidenavLink & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaSidenavLink & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
32
|
+
export declare const VegaStepper: import("vue").DefineComponent<JSX.VegaStepper & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaStepper & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
33
|
+
export declare const VegaTabGroup: import("vue").DefineComponent<JSX.VegaTabGroup & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaTabGroup & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
34
|
+
export declare const VegaTable: import("vue").DefineComponent<JSX.VegaTable & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaTable & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
35
|
+
export declare const VegaToggleSwitch: import("vue").DefineComponent<JSX.VegaToggleSwitch & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaToggleSwitch & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
36
|
+
export declare const VegaTooltip: import("vue").DefineComponent<JSX.VegaTooltip & import("./vue-component-lib/utils").InputProps, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<JSX.VegaTooltip & import("./vue-component-lib/utils").InputProps>, {}>;
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* auto-generated vue proxies */
|
|
4
|
+
import { defineContainer } from './vue-component-lib/utils';
|
|
5
|
+
export const VegaAccordion = /*@__PURE__*/ defineContainer('vega-accordion', undefined, [
|
|
6
|
+
'drawsBackground',
|
|
7
|
+
'prefixIcon',
|
|
8
|
+
'accordionTitle',
|
|
9
|
+
'expandIconAlign',
|
|
10
|
+
'expand',
|
|
11
|
+
'showExpandIcon',
|
|
12
|
+
'groupId',
|
|
13
|
+
'vegaExpand'
|
|
14
|
+
]);
|
|
15
|
+
export const VegaAppFooter = /*@__PURE__*/ defineContainer('vega-app-footer', undefined, [
|
|
16
|
+
'tosUrl',
|
|
17
|
+
'privacyUrl',
|
|
18
|
+
'showDisclaimer'
|
|
19
|
+
]);
|
|
20
|
+
export const VegaBadge = /*@__PURE__*/ defineContainer('vega-badge', undefined, [
|
|
21
|
+
'bgColor',
|
|
22
|
+
'textColor',
|
|
23
|
+
'text',
|
|
24
|
+
'size'
|
|
25
|
+
]);
|
|
26
|
+
export const VegaButton = /*@__PURE__*/ defineContainer('vega-button', undefined, [
|
|
27
|
+
'size',
|
|
28
|
+
'variant',
|
|
29
|
+
'icon',
|
|
30
|
+
'iconAlign',
|
|
31
|
+
'label',
|
|
32
|
+
'disabled',
|
|
33
|
+
'danger',
|
|
34
|
+
'block',
|
|
35
|
+
'vegaClick'
|
|
36
|
+
]);
|
|
37
|
+
export const VegaButtonCircle = /*@__PURE__*/ defineContainer('vega-button-circle', undefined, [
|
|
38
|
+
'size',
|
|
39
|
+
'variant',
|
|
40
|
+
'icon',
|
|
41
|
+
'label',
|
|
42
|
+
'disabled',
|
|
43
|
+
'danger',
|
|
44
|
+
'vegaClick'
|
|
45
|
+
]);
|
|
46
|
+
export const VegaButtonLink = /*@__PURE__*/ defineContainer('vega-button-link', undefined, [
|
|
47
|
+
'link',
|
|
48
|
+
'size',
|
|
49
|
+
'icon',
|
|
50
|
+
'iconType',
|
|
51
|
+
'iconAlign',
|
|
52
|
+
'label',
|
|
53
|
+
'disabled',
|
|
54
|
+
'danger',
|
|
55
|
+
'eventful',
|
|
56
|
+
'vegaClick'
|
|
57
|
+
]);
|
|
58
|
+
export const VegaCard = /*@__PURE__*/ defineContainer('vega-card', undefined, [
|
|
59
|
+
'padding',
|
|
60
|
+
'margin',
|
|
61
|
+
'shadow',
|
|
62
|
+
'backgroundColor'
|
|
63
|
+
]);
|
|
64
|
+
export const VegaCarousel = /*@__PURE__*/ defineContainer('vega-carousel', undefined, [
|
|
65
|
+
'perPage',
|
|
66
|
+
'showSlider',
|
|
67
|
+
'spacing',
|
|
68
|
+
'vegaPageUpdate'
|
|
69
|
+
]);
|
|
70
|
+
export const VegaCheckbox = /*@__PURE__*/ defineContainer('vega-checkbox', undefined, [
|
|
71
|
+
'value',
|
|
72
|
+
'checked',
|
|
73
|
+
'disabled',
|
|
74
|
+
'size',
|
|
75
|
+
'vegaChange'
|
|
76
|
+
]);
|
|
77
|
+
export const VegaCheckboxGroup = /*@__PURE__*/ defineContainer('vega-checkbox-group', undefined, [
|
|
78
|
+
'label',
|
|
79
|
+
'value',
|
|
80
|
+
'vegaFlexProp',
|
|
81
|
+
'disabled',
|
|
82
|
+
'required',
|
|
83
|
+
'hint',
|
|
84
|
+
'formValidation',
|
|
85
|
+
'isValid',
|
|
86
|
+
'vegaChange',
|
|
87
|
+
'vegaValidate'
|
|
88
|
+
]);
|
|
89
|
+
export const VegaDatePicker = /*@__PURE__*/ defineContainer('vega-date-picker', undefined, [
|
|
90
|
+
'mode',
|
|
91
|
+
'value',
|
|
92
|
+
'label',
|
|
93
|
+
'required',
|
|
94
|
+
'isValid',
|
|
95
|
+
'autoValidation',
|
|
96
|
+
'format',
|
|
97
|
+
'size',
|
|
98
|
+
'formValidation',
|
|
99
|
+
'validationRules',
|
|
100
|
+
'minDate',
|
|
101
|
+
'maxDate',
|
|
102
|
+
'placeholder',
|
|
103
|
+
'clearButton',
|
|
104
|
+
'readOnly',
|
|
105
|
+
'allowRepick',
|
|
106
|
+
'disabled',
|
|
107
|
+
'vegaChange',
|
|
108
|
+
'vegaValidate'
|
|
109
|
+
]);
|
|
110
|
+
export const VegaDropdown = /*@__PURE__*/ defineContainer('vega-dropdown', undefined, [
|
|
111
|
+
'size',
|
|
112
|
+
'trigger',
|
|
113
|
+
'translocation',
|
|
114
|
+
'source',
|
|
115
|
+
'positionRelativeTo',
|
|
116
|
+
'selectType',
|
|
117
|
+
'selectedSourceKey',
|
|
118
|
+
'maxHeight',
|
|
119
|
+
'searchable',
|
|
120
|
+
'matchTargetWidth',
|
|
121
|
+
'matchContainerHeight',
|
|
122
|
+
'vegaClick',
|
|
123
|
+
'vegaShow',
|
|
124
|
+
'vegaHide'
|
|
125
|
+
]);
|
|
126
|
+
export const VegaFlex = /*@__PURE__*/ defineContainer('vega-flex', undefined, [
|
|
127
|
+
'gap',
|
|
128
|
+
'margin',
|
|
129
|
+
'breakpoint',
|
|
130
|
+
'direction',
|
|
131
|
+
'alignItem',
|
|
132
|
+
'justifyContent'
|
|
133
|
+
]);
|
|
134
|
+
export const VegaFooter = /*@__PURE__*/ defineContainer('vega-footer', undefined, [
|
|
135
|
+
'tosUrl',
|
|
136
|
+
'privacyUrl'
|
|
137
|
+
]);
|
|
138
|
+
export const VegaForm = /*@__PURE__*/ defineContainer('vega-form', undefined, [
|
|
139
|
+
'isValid',
|
|
140
|
+
'isTouched'
|
|
141
|
+
]);
|
|
142
|
+
export const VegaGrid = /*@__PURE__*/ defineContainer('vega-grid', undefined, [
|
|
143
|
+
'column',
|
|
144
|
+
'row',
|
|
145
|
+
'gap'
|
|
146
|
+
]);
|
|
147
|
+
export const VegaHeader = /*@__PURE__*/ defineContainer('vega-header', undefined);
|
|
148
|
+
export const VegaIcon = /*@__PURE__*/ defineContainer('vega-icon', undefined, [
|
|
149
|
+
'icon',
|
|
150
|
+
'size'
|
|
151
|
+
]);
|
|
152
|
+
export const VegaInput = /*@__PURE__*/ defineContainer('vega-input', undefined, [
|
|
153
|
+
'inputId',
|
|
154
|
+
'label',
|
|
155
|
+
'value',
|
|
156
|
+
'type',
|
|
157
|
+
'autocomplete',
|
|
158
|
+
'prefixIcon',
|
|
159
|
+
'email',
|
|
160
|
+
'required',
|
|
161
|
+
'min',
|
|
162
|
+
'max',
|
|
163
|
+
'minLength',
|
|
164
|
+
'maxLength',
|
|
165
|
+
'showClearIcon',
|
|
166
|
+
'isValid',
|
|
167
|
+
'autoValidation',
|
|
168
|
+
'formValidation',
|
|
169
|
+
'validationRules',
|
|
170
|
+
'size',
|
|
171
|
+
'placeholder',
|
|
172
|
+
'disabled',
|
|
173
|
+
'hint',
|
|
174
|
+
'maskConfig',
|
|
175
|
+
'vegaChange',
|
|
176
|
+
'vegaValidate',
|
|
177
|
+
'vegaBlur'
|
|
178
|
+
], 'value', 'vegaChange', 'on-change');
|
|
179
|
+
export const VegaInputSelect = /*@__PURE__*/ defineContainer('vega-input-select', undefined, [
|
|
180
|
+
'label',
|
|
181
|
+
'required',
|
|
182
|
+
'source',
|
|
183
|
+
'value',
|
|
184
|
+
'isValid',
|
|
185
|
+
'autoValidation',
|
|
186
|
+
'formValidation',
|
|
187
|
+
'validationRules',
|
|
188
|
+
'prefixIcon',
|
|
189
|
+
'disabled',
|
|
190
|
+
'placeholder',
|
|
191
|
+
'hint',
|
|
192
|
+
'vegaDropdownProps',
|
|
193
|
+
'vegaChange',
|
|
194
|
+
'vegaValidate'
|
|
195
|
+
], 'value', 'vegaChange', 'on-change');
|
|
196
|
+
export const VegaItemToggle = /*@__PURE__*/ defineContainer('vega-item-toggle', undefined, [
|
|
197
|
+
'itemToggleStatusMap',
|
|
198
|
+
'isToggled',
|
|
199
|
+
'isError',
|
|
200
|
+
'vegaToggleStatus'
|
|
201
|
+
]);
|
|
202
|
+
export const VegaModal = /*@__PURE__*/ defineContainer('vega-modal', undefined, [
|
|
203
|
+
'backdrop',
|
|
204
|
+
'size',
|
|
205
|
+
'open',
|
|
206
|
+
'animation',
|
|
207
|
+
'modalTitle',
|
|
208
|
+
'backdropColor',
|
|
209
|
+
'isVerticallyCenter',
|
|
210
|
+
'showCloseButton',
|
|
211
|
+
'vegaClose',
|
|
212
|
+
'vegaOpen'
|
|
213
|
+
]);
|
|
214
|
+
export const VegaOption = /*@__PURE__*/ defineContainer('vega-option', undefined, [
|
|
215
|
+
'label',
|
|
216
|
+
'subLabel',
|
|
217
|
+
'icon'
|
|
218
|
+
]);
|
|
219
|
+
export const VegaPagination = /*@__PURE__*/ defineContainer('vega-pagination', undefined, [
|
|
220
|
+
'current',
|
|
221
|
+
'total',
|
|
222
|
+
'pageSize',
|
|
223
|
+
'vegaChange'
|
|
224
|
+
]);
|
|
225
|
+
export const VegaProgressTracker = /*@__PURE__*/ defineContainer('vega-progress-tracker', undefined, [
|
|
226
|
+
'headline',
|
|
227
|
+
'direction',
|
|
228
|
+
'breakpoint',
|
|
229
|
+
'steps',
|
|
230
|
+
'progressUpdated'
|
|
231
|
+
]);
|
|
232
|
+
export const VegaRadio = /*@__PURE__*/ defineContainer('vega-radio', undefined, [
|
|
233
|
+
'value',
|
|
234
|
+
'name',
|
|
235
|
+
'checked',
|
|
236
|
+
'disabled',
|
|
237
|
+
'vegaFocus',
|
|
238
|
+
'vegaBlur',
|
|
239
|
+
'vegaChange'
|
|
240
|
+
]);
|
|
241
|
+
export const VegaRadioGroup = /*@__PURE__*/ defineContainer('vega-radio-group', undefined, [
|
|
242
|
+
'label',
|
|
243
|
+
'value',
|
|
244
|
+
'name',
|
|
245
|
+
'vegaFlexProp',
|
|
246
|
+
'required',
|
|
247
|
+
'hint',
|
|
248
|
+
'formValidation',
|
|
249
|
+
'isValid',
|
|
250
|
+
'vegaChange',
|
|
251
|
+
'vegaValidate'
|
|
252
|
+
]);
|
|
253
|
+
export const VegaSidenav = /*@__PURE__*/ defineContainer('vega-sidenav', undefined, [
|
|
254
|
+
'source',
|
|
255
|
+
'footnote',
|
|
256
|
+
'headerConfig',
|
|
257
|
+
'openByDefault',
|
|
258
|
+
'vegaStateUpdate'
|
|
259
|
+
]);
|
|
260
|
+
export const VegaSidenavGroup = /*@__PURE__*/ defineContainer('vega-sidenav-group', undefined, [
|
|
261
|
+
'icon',
|
|
262
|
+
'label'
|
|
263
|
+
]);
|
|
264
|
+
export const VegaSidenavLink = /*@__PURE__*/ defineContainer('vega-sidenav-link', undefined, [
|
|
265
|
+
'icon',
|
|
266
|
+
'selected',
|
|
267
|
+
'url',
|
|
268
|
+
'vegaClick'
|
|
269
|
+
]);
|
|
270
|
+
export const VegaStepper = /*@__PURE__*/ defineContainer('vega-stepper', undefined, [
|
|
271
|
+
'stepperId',
|
|
272
|
+
'max',
|
|
273
|
+
'min',
|
|
274
|
+
'value',
|
|
275
|
+
'label',
|
|
276
|
+
'disabled',
|
|
277
|
+
'required',
|
|
278
|
+
'isValid',
|
|
279
|
+
'formValidation',
|
|
280
|
+
'vegaChange',
|
|
281
|
+
'vegaValidate'
|
|
282
|
+
]);
|
|
283
|
+
export const VegaTabGroup = /*@__PURE__*/ defineContainer('vega-tab-group', undefined, [
|
|
284
|
+
'selectedTabDataTarget',
|
|
285
|
+
'gap',
|
|
286
|
+
'showCloseButton',
|
|
287
|
+
'tabItems',
|
|
288
|
+
'positionRelativeTo',
|
|
289
|
+
'vegaClick'
|
|
290
|
+
]);
|
|
291
|
+
export const VegaTable = /*@__PURE__*/ defineContainer('vega-table', undefined, [
|
|
292
|
+
'columns',
|
|
293
|
+
'dataSource',
|
|
294
|
+
'rowSelection',
|
|
295
|
+
'rowExpandable',
|
|
296
|
+
'rowClickable',
|
|
297
|
+
'rowDivider',
|
|
298
|
+
'columnDivider',
|
|
299
|
+
'striped',
|
|
300
|
+
'density',
|
|
301
|
+
'paddingX',
|
|
302
|
+
'showHeader',
|
|
303
|
+
'vegaChange',
|
|
304
|
+
'vegaRowClick'
|
|
305
|
+
]);
|
|
306
|
+
export const VegaToggleSwitch = /*@__PURE__*/ defineContainer('vega-toggle-switch', undefined, [
|
|
307
|
+
'checked',
|
|
308
|
+
'size',
|
|
309
|
+
'label',
|
|
310
|
+
'disabled',
|
|
311
|
+
'vegaChange'
|
|
312
|
+
]);
|
|
313
|
+
export const VegaTooltip = /*@__PURE__*/ defineContainer('vega-tooltip', undefined, [
|
|
314
|
+
'size',
|
|
315
|
+
'trigger',
|
|
316
|
+
'content',
|
|
317
|
+
'placement',
|
|
318
|
+
'positionRelativeTo'
|
|
319
|
+
]);
|
|
320
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gCAAgC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAA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Ac;IACd,YAAY;IACZ,eAAe;IACf,SAAS;IACT,SAAS;IACT,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,cAAc;CACf,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,eAAe,CAAuB,oBAAoB,EAAE,SAAS,EAAE;IACnH,SAAS;IACT,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;CACb,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,eAAe,CAAkB,cAAc,EAAE,SAAS,EAAE;IACnG,MAAM;IACN,SAAS;IACT,SAAS;IACT,WAAW;IACX,oBAAoB;CACrB,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
package/dist/plugin.d.ts
ADDED
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { applyPolyfills, defineCustomElements } from '@heartlandone/vega/loader';
|
|
11
|
+
export const VegaComponentLibrary = {
|
|
12
|
+
install() {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
+
applyPolyfills().then(() => {
|
|
15
|
+
defineCustomElements(null, {
|
|
16
|
+
// We have to convert the camelCase custom event name defined in vega into lowercase one due to the Vue3 event naming restriction
|
|
17
|
+
// for more details, see: https://github.com/ionic-team/stencil/issues/2804
|
|
18
|
+
ce: (eventName, opts) => new CustomEvent(eventName.toLowerCase(), opts),
|
|
19
|
+
ael: (el, eventName, cb, opts) => el.addEventListener(eventName.toLowerCase(), cb, opts),
|
|
20
|
+
rel: (el, eventName, cb, opts) => el.removeEventListener(eventName.toLowerCase(), cb, opts),
|
|
21
|
+
}).then();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjF,MAAM,CAAC,MAAM,oBAAoB,GAAW;IAClC,OAAO;;YACT,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvB,oBAAoB,CAAC,IAAI,EAAE;oBACvB,iIAAiI;oBACjI,2EAA2E;oBAC3E,EAAE,EAAE,CAAC,SAAiB,EAAE,IAAS,EAAE,EAAE,CAAC,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC;oBACpF,GAAG,EAAE,CAAC,EAAO,EAAE,SAAiB,EAAE,EAAO,EAAE,IAAS,EAAE,EAAE,CAAC,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC;oBAC/G,GAAG,EAAE,CAAC,EAAO,EAAE,SAAiB,EAAE,EAAO,EAAE,IAAS,EAAE,EAAE,CAAC,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC;iBAC9G,CAAC,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface InputProps extends Object {
|
|
2
|
+
modelValue: string | boolean;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
6
|
+
*
|
|
7
|
+
* @prop name - The component tag name (i.e. `ion-button`)
|
|
8
|
+
* @prop componentProps - An array of properties on the
|
|
9
|
+
* component. These usually match up with the @Prop definitions
|
|
10
|
+
* in each component's TSX file.
|
|
11
|
+
* @prop customElement - An option custom element instance to pass
|
|
12
|
+
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
13
|
+
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
14
|
+
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
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
|
+
* correctly updated when a user's event callback fires.
|
|
17
|
+
*/
|
|
18
|
+
export declare const defineContainer: <Props>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string, externalModelUpdateEvent?: string) => import("vue").DefineComponent<Props & InputProps, object, {}, import("vue").ComputedOptions, 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<{
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
}> ? import("vue").ExtractPropTypes<import("vue").ComponentPropsOptions<{
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
}> & Props & InputProps> : Props & InputProps>, import("vue").ExtractDefaultPropTypes<Props & InputProps>>;
|
|
@@ -0,0 +1,161 @@
|
|
|
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, defineCustomElement, 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 (defineCustomElement !== undefined) {
|
|
48
|
+
defineCustomElement();
|
|
49
|
+
}
|
|
50
|
+
const Container = defineComponent((props, { attrs, slots, emit }) => {
|
|
51
|
+
var _a;
|
|
52
|
+
let modelPropValue = props[modelProp];
|
|
53
|
+
const containerRef = ref();
|
|
54
|
+
const classes = new Set(getComponentClasses(attrs.class));
|
|
55
|
+
const onVnodeBeforeMount = (vnode) => {
|
|
56
|
+
// Add a listener to tell Vue to update the v-model
|
|
57
|
+
if (vnode.el) {
|
|
58
|
+
const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
|
|
59
|
+
eventsNames.forEach((eventName) => {
|
|
60
|
+
vnode.el.addEventListener(eventName.toLowerCase(), (e) => {
|
|
61
|
+
modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
|
|
62
|
+
emit(UPDATE_VALUE_EVENT, modelPropValue);
|
|
63
|
+
/**
|
|
64
|
+
* We need to emit the change event here
|
|
65
|
+
* rather than on the web component to ensure
|
|
66
|
+
* that any v-model bindings have been updated.
|
|
67
|
+
* Otherwise, the developer will listen on the
|
|
68
|
+
* native web component, but the v-model will
|
|
69
|
+
* not have been updated yet.
|
|
70
|
+
*/
|
|
71
|
+
if (externalModelUpdateEvent) {
|
|
72
|
+
emit(externalModelUpdateEvent, e);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const currentInstance = getCurrentInstance();
|
|
79
|
+
const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
|
|
80
|
+
const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
|
|
81
|
+
const handleRouterLink = (ev) => {
|
|
82
|
+
const { routerLink } = props;
|
|
83
|
+
if (routerLink === EMPTY_PROP)
|
|
84
|
+
return;
|
|
85
|
+
if (navManager !== undefined) {
|
|
86
|
+
let navigationPayload = { event: ev };
|
|
87
|
+
for (const key in props) {
|
|
88
|
+
const value = props[key];
|
|
89
|
+
if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
|
|
90
|
+
navigationPayload[key] = value;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
navManager.navigate(navigationPayload);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return () => {
|
|
100
|
+
modelPropValue = props[modelProp];
|
|
101
|
+
getComponentClasses(attrs.class).forEach(value => {
|
|
102
|
+
classes.add(value);
|
|
103
|
+
});
|
|
104
|
+
const oldClick = props.onClick;
|
|
105
|
+
const handleClick = (ev) => {
|
|
106
|
+
if (oldClick !== undefined) {
|
|
107
|
+
oldClick(ev);
|
|
108
|
+
}
|
|
109
|
+
if (!ev.defaultPrevented) {
|
|
110
|
+
handleRouterLink(ev);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
let propsToAdd = {
|
|
114
|
+
ref: containerRef,
|
|
115
|
+
class: getElementClasses(containerRef, classes),
|
|
116
|
+
onClick: handleClick,
|
|
117
|
+
onVnodeBeforeMount: (modelUpdateEvent) ? onVnodeBeforeMount : undefined
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* We can use Object.entries here
|
|
121
|
+
* to avoid the hasOwnProperty check,
|
|
122
|
+
* but that would require 2 iterations
|
|
123
|
+
* where as this only requires 1.
|
|
124
|
+
*/
|
|
125
|
+
for (const key in props) {
|
|
126
|
+
const value = props[key];
|
|
127
|
+
if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
|
|
128
|
+
propsToAdd[key] = value;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (modelProp) {
|
|
132
|
+
/**
|
|
133
|
+
* If form value property was set using v-model
|
|
134
|
+
* then we should use that value.
|
|
135
|
+
* Otherwise, check to see if form value property
|
|
136
|
+
* was set as a static value (i.e. no v-model).
|
|
137
|
+
*/
|
|
138
|
+
if (props[MODEL_VALUE] !== EMPTY_PROP) {
|
|
139
|
+
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
|
|
140
|
+
}
|
|
141
|
+
else if (modelPropValue !== EMPTY_PROP) {
|
|
142
|
+
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return h(name, propsToAdd, slots.default && slots.default());
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
Container.displayName = name;
|
|
149
|
+
Container.props = {
|
|
150
|
+
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP
|
|
151
|
+
};
|
|
152
|
+
componentProps.forEach(componentProp => {
|
|
153
|
+
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
154
|
+
});
|
|
155
|
+
if (modelProp) {
|
|
156
|
+
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
|
|
157
|
+
Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent];
|
|
158
|
+
}
|
|
159
|
+
return Container;
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/vue-component-lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,kBAAkB,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAO,MAAM,KAAK,CAAC;AAMtF,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAC/C,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAC5B,MAAM,kBAAkB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAMnD,MAAM,mBAAmB,GAAG,CAAC,OAAgB,EAAE,EAAE;;IAC/C,OAAO,CAAA,MAAC,OAAkB,0CAAE,KAAK,CAAC,GAAG,CAAC,KAAI,EAAE,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,GAAiC,EAAE,gBAA6B,EAAE,iBAA2B,EAAE,EAAE,EAAE;;IAC5H,OAAO,CAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA,MAAA,GAAG,CAAC,KAAK,0CAAE,SAAS,KAAI,EAAE,CAAC,EAAE,GAAG,cAAc,CAAE;SACpE,MAAM,CAAC,CAAC,CAAS,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACvF,CAAC,CAAC;AAEF;;;;;;;;;;;;;EAaE;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7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ChB,CAAC,iBAAiB,CAAC,EAAE,kBAAkB;KACxC,CAAC;IAEF,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACrC,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,kBAAkB,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,IAAI,SAAS,EAAE;QACb,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,kBAAkB,CAAC;QAClD,SAAS,CAAC,KAAK,GAAG,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC;KAClE;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@heartlandone/vega-vue",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Vue specific wrapper for @heartlandone/vega",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"stencil-postbuild": "rm -rf ./dist && git checkout -- ./src/vue-component-lib/utils.ts",
|
|
13
|
+
"build": "tsc -p .",
|
|
14
|
+
"watch": "tsc --watch",
|
|
15
|
+
"release": "npm run build",
|
|
16
|
+
"version": "npm run release",
|
|
17
|
+
"publish:patch": "npm version patch -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish",
|
|
18
|
+
"publish:minor": "npm version minor -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish",
|
|
19
|
+
"publish:major": "npm version major -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"directory": "dist"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/types": "^7.17.0",
|
|
27
|
+
"typescript": "^4.0.0",
|
|
28
|
+
"vue": "^3.0.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@heartlandone/vega": "*"
|
|
32
|
+
}
|
|
33
|
+
}
|