@wwtdev/bsds-components-vue3 1.0.2 → 1.2.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/README.md +62 -1
- package/lib/components.d.ts +15 -9
- package/lib/components.js +44 -1
- package/lib/components.js.map +1 -1
- package/lib/plugin-ssr.js +11 -0
- package/lib/vue-component-lib/utils.js +8 -8
- package/lib/vue-component-lib/utils.js.map +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install --save @wwtdev/bsds-components-vue3
|
|
7
7
|
```
|
|
8
|
-
## Using the
|
|
8
|
+
## Using the components in your Vue App
|
|
9
9
|
|
|
10
10
|
Add the following to your `main.js` file to import and use the component library:
|
|
11
11
|
|
|
@@ -29,3 +29,64 @@ import { BsButton } from '@wwtdev/bsds-components-vue3'
|
|
|
29
29
|
</div>
|
|
30
30
|
</template>
|
|
31
31
|
```
|
|
32
|
+
|
|
33
|
+
## Using the components in your Nuxt App
|
|
34
|
+
|
|
35
|
+
The setup steps here are similar to a regular Vue app, but you'll also need to add the Nitro plugin to ensure SSR works.
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
/server/plugins/bsds-ssr.js (or whatever you want to name it)
|
|
41
|
+
*/
|
|
42
|
+
import { ComponentLibServerPlugin } from "@wwtdev/bsds-components-vue3/lib/plugin-ssr.js";
|
|
43
|
+
export default ComponentLibServerPlugin
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
/plugins/bsds-components.js (or whatever you want to name it)
|
|
48
|
+
*/
|
|
49
|
+
import { ComponentLibrary } from '@wwtdev/bsds-components-vue3'
|
|
50
|
+
|
|
51
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
52
|
+
nuxtApp.vueApp.use(ComponentLibrary)
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
/nuxt.config.ts
|
|
58
|
+
|
|
59
|
+
Note that though Nuxt will automagically register
|
|
60
|
+
the component plugin in /plugins, you will need
|
|
61
|
+
to add the ssr plugin manually here.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
export default defineNuxtConfig({
|
|
65
|
+
nitro: {
|
|
66
|
+
plugins: ['plugins/bsds-ssr.js']
|
|
67
|
+
},
|
|
68
|
+
vue: {
|
|
69
|
+
compilerOptions: {
|
|
70
|
+
isCustomElement: (tag) => /bs-.+/.test(tag),
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
css: ['@wwtdev/bsds-components/dist/components/components.css']
|
|
74
|
+
})
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Now you can use BSDS Components in your code, just like standard Vue components:
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
<script setup>
|
|
81
|
+
import { BsButton } from '@wwtdev/bsds-components-vue3'
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<template>
|
|
85
|
+
<div>
|
|
86
|
+
<BsButton>Hello World!</BsButton>
|
|
87
|
+
</div>
|
|
88
|
+
</template>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Caveats
|
|
92
|
+
Currently looking into a known issue wherein multi-word props are lost during hydration after SSR.
|
package/lib/components.d.ts
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import type { JSX } from '@wwtdev/bsds-components';
|
|
2
|
+
export declare const BsAccordion: import("vue").DefineComponent<JSX.BsAccordion & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsAccordion & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
2
3
|
export declare const BsBadge: import("vue").DefineComponent<JSX.BsBadge & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsBadge & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
4
|
+
export declare const BsBanner: import("vue").DefineComponent<JSX.BsBanner & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsBanner & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
3
5
|
export declare const BsButton: import("vue").DefineComponent<JSX.BsButton & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsButton & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
4
6
|
export declare const BsCharacterCount: import("vue").DefineComponent<JSX.BsCharacterCount & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsCharacterCount & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
5
|
-
export declare const BsCheckbox: import("vue").DefineComponent<JSX.BsCheckbox & import("./vue-component-lib/utils").InputProps<
|
|
7
|
+
export declare const BsCheckbox: import("vue").DefineComponent<JSX.BsCheckbox & import("./vue-component-lib/utils").InputProps<boolean>, 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.BsCheckbox & import("./vue-component-lib/utils").InputProps<boolean>>, {}>;
|
|
6
8
|
export declare const BsFieldLayout: import("vue").DefineComponent<JSX.BsFieldLayout & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsFieldLayout & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
7
9
|
export declare const BsHint: import("vue").DefineComponent<JSX.BsHint & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsHint & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
8
|
-
export declare const BsInput: import("vue").DefineComponent<JSX.BsInput & import("./vue-component-lib/utils").InputProps<string | number
|
|
9
|
-
export declare const BsInputField: import("vue").DefineComponent<JSX.BsInputField & import("./vue-component-lib/utils").InputProps<string | number
|
|
10
|
+
export declare const BsInput: import("vue").DefineComponent<JSX.BsInput & import("./vue-component-lib/utils").InputProps<string | number>, 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.BsInput & import("./vue-component-lib/utils").InputProps<string | number>>, {}>;
|
|
11
|
+
export declare const BsInputField: import("vue").DefineComponent<JSX.BsInputField & import("./vue-component-lib/utils").InputProps<string | number>, 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.BsInputField & import("./vue-component-lib/utils").InputProps<string | number>>, {}>;
|
|
10
12
|
export declare const BsLabel: import("vue").DefineComponent<JSX.BsLabel & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsLabel & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
11
13
|
export declare const BsPill: import("vue").DefineComponent<JSX.BsPill & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsPill & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
12
14
|
export declare const BsProfile: import("vue").DefineComponent<JSX.BsProfile & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsProfile & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
13
15
|
export declare const BsProfileDetails: import("vue").DefineComponent<JSX.BsProfileDetails & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsProfileDetails & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
14
16
|
export declare const BsProfileImg: import("vue").DefineComponent<JSX.BsProfileImg & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsProfileImg & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
15
17
|
export declare const BsProfileLayout: import("vue").DefineComponent<JSX.BsProfileLayout & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsProfileLayout & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
16
|
-
export declare const BsRadio: import("vue").DefineComponent<JSX.BsRadio & import("./vue-component-lib/utils").InputProps<
|
|
17
|
-
export declare const BsSelect: import("vue").DefineComponent<JSX.BsSelect & import("./vue-component-lib/utils").InputProps<string | number
|
|
18
|
-
export declare const BsSelectField: import("vue").DefineComponent<JSX.BsSelectField & import("./vue-component-lib/utils").InputProps<string | number
|
|
19
|
-
export declare const BsSwitch: import("vue").DefineComponent<JSX.BsSwitch & import("./vue-component-lib/utils").InputProps<
|
|
20
|
-
export declare const BsTextarea: import("vue").DefineComponent<JSX.BsTextarea & import("./vue-component-lib/utils").InputProps<string
|
|
21
|
-
export declare const BsTextareaField: import("vue").DefineComponent<JSX.BsTextareaField & import("./vue-component-lib/utils").InputProps<string
|
|
18
|
+
export declare const BsRadio: import("vue").DefineComponent<JSX.BsRadio & import("./vue-component-lib/utils").InputProps<boolean>, 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.BsRadio & import("./vue-component-lib/utils").InputProps<boolean>>, {}>;
|
|
19
|
+
export declare const BsSelect: import("vue").DefineComponent<JSX.BsSelect & import("./vue-component-lib/utils").InputProps<string | number>, 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.BsSelect & import("./vue-component-lib/utils").InputProps<string | number>>, {}>;
|
|
20
|
+
export declare const BsSelectField: import("vue").DefineComponent<JSX.BsSelectField & import("./vue-component-lib/utils").InputProps<string | number>, 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.BsSelectField & import("./vue-component-lib/utils").InputProps<string | number>>, {}>;
|
|
21
|
+
export declare const BsSwitch: import("vue").DefineComponent<JSX.BsSwitch & import("./vue-component-lib/utils").InputProps<boolean>, 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.BsSwitch & import("./vue-component-lib/utils").InputProps<boolean>>, {}>;
|
|
22
|
+
export declare const BsTextarea: import("vue").DefineComponent<JSX.BsTextarea & import("./vue-component-lib/utils").InputProps<string>, 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.BsTextarea & import("./vue-component-lib/utils").InputProps<string>>, {}>;
|
|
23
|
+
export declare const BsTextareaField: import("vue").DefineComponent<JSX.BsTextareaField & import("./vue-component-lib/utils").InputProps<string>, 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.BsTextareaField & import("./vue-component-lib/utils").InputProps<string>>, {}>;
|
|
24
|
+
export declare const BsToast: import("vue").DefineComponent<JSX.BsToast & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsToast & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
25
|
+
export declare const BsToaster: import("vue").DefineComponent<JSX.BsToaster & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsToaster & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
26
|
+
export declare const BsTooltip: import("vue").DefineComponent<JSX.BsTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.BsTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
27
|
+
export declare const DocsCodeDisplay: import("vue").DefineComponent<JSX.DocsCodeDisplay & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.DocsCodeDisplay & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
22
28
|
export declare const DocsPlayground: import("vue").DefineComponent<JSX.DocsPlayground & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.DocsPlayground & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
|
23
29
|
export declare const DocsPropDisplay: import("vue").DefineComponent<JSX.DocsPropDisplay & import("./vue-component-lib/utils").InputProps<string | number | boolean>, 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.DocsPropDisplay & import("./vue-component-lib/utils").InputProps<string | number | boolean>>, {}>;
|
package/lib/components.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { defineContainer } from './vue-component-lib/utils';
|
|
2
|
+
export const BsAccordion = defineContainer('bs-accordion', undefined, [
|
|
3
|
+
'controlled',
|
|
4
|
+
'icon',
|
|
5
|
+
'headerText',
|
|
6
|
+
'headerTextTag',
|
|
7
|
+
'openItem',
|
|
8
|
+
'stacked',
|
|
9
|
+
'toggled'
|
|
10
|
+
]);
|
|
2
11
|
export const BsBadge = defineContainer('bs-badge', undefined, [
|
|
3
12
|
'color',
|
|
4
13
|
'count',
|
|
@@ -8,6 +17,9 @@ export const BsBadge = defineContainer('bs-badge', undefined, [
|
|
|
8
17
|
'position',
|
|
9
18
|
'showZero'
|
|
10
19
|
]);
|
|
20
|
+
export const BsBanner = defineContainer('bs-banner', undefined, [
|
|
21
|
+
'dismiss'
|
|
22
|
+
]);
|
|
11
23
|
export const BsButton = defineContainer('bs-button', undefined, [
|
|
12
24
|
'variant',
|
|
13
25
|
'disabled',
|
|
@@ -24,6 +36,7 @@ export const BsCharacterCount = defineContainer('bs-character-count', undefined,
|
|
|
24
36
|
export const BsCheckbox = defineContainer('bs-checkbox', undefined, [
|
|
25
37
|
'label',
|
|
26
38
|
'checked',
|
|
39
|
+
'checkedPartially',
|
|
27
40
|
'disabled',
|
|
28
41
|
'error',
|
|
29
42
|
'passAttrs',
|
|
@@ -117,7 +130,8 @@ export const BsRadio = defineContainer('bs-radio', undefined, [
|
|
|
117
130
|
'error',
|
|
118
131
|
'passAttrs',
|
|
119
132
|
'required',
|
|
120
|
-
'size'
|
|
133
|
+
'size',
|
|
134
|
+
'value'
|
|
121
135
|
], 'checked', 'change');
|
|
122
136
|
export const BsSelect = defineContainer('bs-select', undefined, [
|
|
123
137
|
'disabled',
|
|
@@ -167,6 +181,35 @@ export const BsTextareaField = defineContainer('bs-textarea-field', undefined, [
|
|
|
167
181
|
'value',
|
|
168
182
|
'passAttrs'
|
|
169
183
|
], 'value', 'input');
|
|
184
|
+
export const BsToast = defineContainer('bs-toast', undefined, [
|
|
185
|
+
'toastId',
|
|
186
|
+
'shown',
|
|
187
|
+
'variant',
|
|
188
|
+
'toastTitle',
|
|
189
|
+
'content',
|
|
190
|
+
'stacked',
|
|
191
|
+
'duration',
|
|
192
|
+
'primaryAction',
|
|
193
|
+
'primaryActionType',
|
|
194
|
+
'secondaryAction',
|
|
195
|
+
'secondaryActionType',
|
|
196
|
+
'tertiaryAction',
|
|
197
|
+
'tertiaryActionType',
|
|
198
|
+
'dismissAction',
|
|
199
|
+
'dismiss',
|
|
200
|
+
'actionclick'
|
|
201
|
+
]);
|
|
202
|
+
export const BsToaster = defineContainer('bs-toaster', undefined);
|
|
203
|
+
export const BsTooltip = defineContainer('bs-tooltip', undefined, [
|
|
204
|
+
'tooltipId',
|
|
205
|
+
'content',
|
|
206
|
+
'position'
|
|
207
|
+
]);
|
|
208
|
+
export const DocsCodeDisplay = defineContainer('docs-code-display', undefined, [
|
|
209
|
+
'component',
|
|
210
|
+
'slotContent',
|
|
211
|
+
'appliedProps'
|
|
212
|
+
]);
|
|
170
213
|
export const DocsPlayground = defineContainer('docs-playground', undefined, [
|
|
171
214
|
'component',
|
|
172
215
|
'docsTags',
|
package/lib/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,CAAC,MAAM,OAAO,GAAiB,eAAe,CAAc,UAAU,EAAE,SAAS,EAAE;IACvF,OAAO;IACP,OAAO;IACP,UAAU;IACV,KAAK;IACL,OAAO;IACP,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,QAAQ,GAAiB,eAAe,CAAe,WAAW,EAAE,SAAS,EAAE;IAC1F,SAAS;IACT,UAAU;IACV,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,MAAM;CACP,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAiB,eAAe,CAAuB,oBAAoB,EAAE,SAAS,EAAE;IACnH,WAAW;IACX,SAAS;CACV,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,UAAU,GAAiB,eAAe,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,CAAC,MAAM,WAAW,GAAiB,eAAe,CAAkB,cAAc,EAAE,SAAS,EAAE;IACnG,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,eAAe;IACf,UAAU;IACV,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AAGH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AS,EAAE;IACvF,SAAS;IACT,OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,SAAS;IACT,UAAU;IACV,eAAe;IACf,mBAAmB;IACnB,iBAAiB;IACjB,qBAAqB;IACrB,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;IACf,SAAS;IACT,aAAa;CACd,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,SAAS,GAAiB,eAAe,CAAgB,YAAY,EAAE,SAAS,CAAC,CAAC;AAG/F,MAAM,CAAC,MAAM,SAAS,GAAiB,eAAe,CAAgB,YAAY,EAAE,SAAS,EAAE;IAC7F,WAAW;IACX,SAAS;IACT,UAAU;CACX,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,eAAe,GAAiB,eAAe,CAAsB,mBAAmB,EAAE,SAAS,EAAE;IAChH,WAAW;IACX,aAAa;IACb,cAAc;CACf,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAiB,eAAe,CAAqB,iBAAiB,EAAE,SAAS,EAAE;IAC5G,WAAW;IACX,UAAU;IACV,aAAa;IACb,mBAAmB;IACnB,eAAe;CAChB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,eAAe,GAAiB,eAAe,CAAsB,mBAAmB,EAAE,SAAS,EAAE;IAChH,gBAAgB;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineNitroPlugin } from 'nitropack/dist/runtime/plugin'
|
|
2
|
+
import { renderToString } from '@wwtdev/bsds-components/dist/hydrate/index.js'
|
|
3
|
+
|
|
4
|
+
export const ComponentLibServerPlugin = defineNitroPlugin((nitroApp) => {
|
|
5
|
+
nitroApp.hooks.hook('render:response', async (response) => {
|
|
6
|
+
const render = await renderToString(response.body, {
|
|
7
|
+
prettyHtml: false
|
|
8
|
+
});
|
|
9
|
+
response.body = render.html
|
|
10
|
+
})
|
|
11
|
+
});
|
|
@@ -4,6 +4,7 @@ const MODEL_VALUE = 'modelValue';
|
|
|
4
4
|
const ROUTER_LINK_VALUE = 'routerLink';
|
|
5
5
|
const NAV_MANAGER = 'navManager';
|
|
6
6
|
const ROUTER_PROP_PREFIX = 'router';
|
|
7
|
+
const ARIA_PROP_PREFIX = 'aria';
|
|
7
8
|
const EMPTY_PROP = Symbol();
|
|
8
9
|
const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
|
|
9
10
|
const getComponentClasses = (classes) => {
|
|
@@ -11,8 +12,7 @@ const getComponentClasses = (classes) => {
|
|
|
11
12
|
};
|
|
12
13
|
const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
|
|
13
14
|
var _a;
|
|
14
|
-
return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses]
|
|
15
|
-
.filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
|
|
15
|
+
return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses].filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
|
|
16
16
|
};
|
|
17
17
|
export const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
|
|
18
18
|
if (defineCustomElement !== undefined) {
|
|
@@ -60,7 +60,7 @@ export const defineContainer = (name, defineCustomElement, componentProps = [],
|
|
|
60
60
|
};
|
|
61
61
|
return () => {
|
|
62
62
|
modelPropValue = props[modelProp];
|
|
63
|
-
getComponentClasses(attrs.class).forEach(value => {
|
|
63
|
+
getComponentClasses(attrs.class).forEach((value) => {
|
|
64
64
|
classes.add(value);
|
|
65
65
|
});
|
|
66
66
|
const oldClick = props.onClick;
|
|
@@ -76,11 +76,11 @@ export const defineContainer = (name, defineCustomElement, componentProps = [],
|
|
|
76
76
|
ref: containerRef,
|
|
77
77
|
class: getElementClasses(containerRef, classes),
|
|
78
78
|
onClick: handleClick,
|
|
79
|
-
onVnodeBeforeMount:
|
|
79
|
+
onVnodeBeforeMount: modelUpdateEvent ? onVnodeBeforeMount : undefined,
|
|
80
80
|
};
|
|
81
81
|
for (const key in props) {
|
|
82
82
|
const value = props[key];
|
|
83
|
-
if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
|
|
83
|
+
if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
|
|
84
84
|
propsToAdd[key] = value;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -95,11 +95,11 @@ export const defineContainer = (name, defineCustomElement, componentProps = [],
|
|
|
95
95
|
return h(name, propsToAdd, slots.default && slots.default());
|
|
96
96
|
};
|
|
97
97
|
});
|
|
98
|
-
Container.
|
|
98
|
+
Container.name = name;
|
|
99
99
|
Container.props = {
|
|
100
|
-
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP
|
|
100
|
+
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
|
|
101
101
|
};
|
|
102
|
-
componentProps.forEach(componentProp => {
|
|
102
|
+
componentProps.forEach((componentProp) => {
|
|
103
103
|
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
104
104
|
});
|
|
105
105
|
if (modelProp) {
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/vue-component-lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,kB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;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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwtdev/bsds-components-vue3",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "BSDS Vue3 Components",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "npm run tsc",
|
|
25
|
+
"build:ssr": "node utils/copyFiles.js src/plugin-ssr.js lib/plugin-ssr.js",
|
|
26
|
+
"prepublishOnly": "npm run build:ssr",
|
|
25
27
|
"publish-wwt": "publish-wwt-package --monorepo",
|
|
26
28
|
"publish-npm": "npm publish --@wwtdev:registry=https://registry.npmjs.org --access=public",
|
|
27
29
|
"start": "npm-watch",
|
|
@@ -39,11 +41,13 @@
|
|
|
39
41
|
}
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
44
|
+
"fs-extra": "^10.1.0",
|
|
42
45
|
"npm-watch": "^0.11.0",
|
|
43
46
|
"vue": "^3.2.39",
|
|
44
47
|
"wwt-package-publisher": "^4.1.2"
|
|
45
48
|
},
|
|
46
49
|
"dependencies": {
|
|
47
|
-
"@wwtdev/bsds-components": "^1.0
|
|
50
|
+
"@wwtdev/bsds-components": "^1.2.0",
|
|
51
|
+
"@wwtdev/bsds-icons": "^1.1.2"
|
|
48
52
|
}
|
|
49
53
|
}
|