@diwacopilot/components-vue 1.0.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 ADDED
@@ -0,0 +1,15 @@
1
+ # @diwacopilot/components-vue
2
+
3
+ Vue wrappers for `@diwacopilot/components`.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @diwacopilot/components @diwacopilot/components-vue
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { DButton } from "@diwacopilot/components-vue";
15
+ ```
@@ -0,0 +1,58 @@
1
+ export declare const DiwaAccordion: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
2
+ export declare const DiwaBadge: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
3
+ export declare const DiwaButton: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
4
+ export declare const DiwaButtonPure: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
5
+ export declare const DiwaCheckbox: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
6
+ export declare const DiwaDivider: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
7
+ export declare const DiwaFlyout: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
8
+ export declare const DiwaIcon: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
9
+ export declare const DiwaInlineNotification: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
10
+ export declare const DiwaInput: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
11
+ export declare const DiwaInputDate: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
12
+ export declare const DiwaInputEmail: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
13
+ export declare const DiwaInputMonth: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
14
+ export declare const DiwaInputNumber: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
15
+ export declare const DiwaInputPassword: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
16
+ export declare const DiwaInputSearch: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
17
+ export declare const DiwaInputTel: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
18
+ export declare const DiwaInputText: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
19
+ export declare const DiwaInputTime: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
20
+ export declare const DiwaInputUrl: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
21
+ export declare const DiwaInputWeek: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
22
+ export declare const DiwaLink: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
23
+ export declare const DiwaLinkPure: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
24
+ export declare const DiwaModal: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
25
+ export declare const DiwaMultiSelect: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
26
+ export declare const DiwaMultiSelectOption: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
27
+ export declare const DiwaPagination: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
28
+ export declare const DiwaPinCode: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
29
+ export declare const DiwaPopover: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
30
+ export declare const DiwaRadioGroup: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
31
+ export declare const DiwaRadioGroupItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
32
+ export declare const DiwaScroller: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
33
+ export declare const DiwaSegmentedControl: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
34
+ export declare const DiwaSegmentedControlItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
35
+ export declare const DiwaSelect: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
36
+ export declare const DiwaSelectOption: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
37
+ export declare const DiwaSpinner: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
38
+ export declare const DiwaStepperHorizontal: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
39
+ export declare const DiwaStepperHorizontalItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
40
+ export declare const DiwaSwitch: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
41
+ export declare const DiwaTable: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
42
+ export declare const DiwaTableBody: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
43
+ export declare const DiwaTableCell: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
44
+ export declare const DiwaTableHead: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
45
+ export declare const DiwaTableHeadCell: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
46
+ export declare const DiwaTableRow: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
47
+ export declare const DiwaTabs: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
48
+ export declare const DiwaTabsBar: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
49
+ export declare const DiwaTabsItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
50
+ export declare const DiwaTag: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
51
+ export declare const DiwaTagDismissible: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
52
+ export declare const DiwaText: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
53
+ export declare const DiwaTextList: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
54
+ export declare const DiwaTextListItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
55
+ export declare const DiwaTextarea: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
56
+ export declare const DiwaToast: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
57
+ export declare const DiwaToastItem: import("vue").DefineSetupFnComponent<any, {}, {}, any, import("vue").PublicProps>;
58
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,mFAOxB,CAAC;AAGH,eAAO,MAAM,SAAS,mFAKpB,CAAC;AAGH,eAAO,MAAM,UAAU,mFAcrB,CAAC;AAGH,eAAO,MAAM,cAAc,mFAiBzB,CAAC;AAGH,eAAO,MAAM,YAAY,mFAcvB,CAAC;AAGH,eAAO,MAAM,WAAW,mFAGtB,CAAC;AAGH,eAAO,MAAM,UAAU,mFAOrB,CAAC;AAGH,eAAO,MAAM,QAAQ,mFAMnB,CAAC;AAGH,eAAO,MAAM,sBAAsB,mFAUjC,CAAC;AAGH,eAAO,MAAM,SAAS,mFAkBpB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAqBxB,CAAC;AAGH,eAAO,MAAM,cAAc,mFAmBzB,CAAC;AAGH,eAAO,MAAM,cAAc,mFAqBzB,CAAC;AAGH,eAAO,MAAM,eAAe,mFAsB1B,CAAC;AAGH,eAAO,MAAM,iBAAiB,mFAoB5B,CAAC;AAGH,eAAO,MAAM,eAAe,mFAoB1B,CAAC;AAGH,eAAO,MAAM,YAAY,mFAmBvB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAsBxB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAsBxB,CAAC;AAGH,eAAO,MAAM,YAAY,mFAmBvB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAqBxB,CAAC;AAGH,eAAO,MAAM,QAAQ,mFAYnB,CAAC;AAGH,eAAO,MAAM,YAAY,mFAcvB,CAAC;AAGH,eAAO,MAAM,SAAS,mFAQpB,CAAC;AAGH,eAAO,MAAM,eAAe,mFAgB1B,CAAC;AAGH,eAAO,MAAM,qBAAqB,mFAQhC,CAAC;AAGH,eAAO,MAAM,cAAc,mFAQzB,CAAC;AAGH,eAAO,MAAM,WAAW,mFActB,CAAC;AAGH,eAAO,MAAM,WAAW,mFAItB,CAAC;AAGH,eAAO,MAAM,cAAc,mFAczB,CAAC;AAGH,eAAO,MAAM,kBAAkB,mFAQ7B,CAAC;AAGH,eAAO,MAAM,YAAY,mFAIvB,CAAC;AAGH,eAAO,MAAM,oBAAoB,mFAM/B,CAAC;AAGH,eAAO,MAAM,wBAAwB,mFAOnC,CAAC;AAGH,eAAO,MAAM,UAAU,mFAgBrB,CAAC;AAGH,eAAO,MAAM,gBAAgB,mFAO3B,CAAC;AAGH,eAAO,MAAM,WAAW,mFAItB,CAAC;AAGH,eAAO,MAAM,qBAAqB,mFAIhC,CAAC;AAGH,eAAO,MAAM,yBAAyB,mFAOpC,CAAC;AAGH,eAAO,MAAM,UAAU,mFAQrB,CAAC;AAGH,eAAO,MAAM,SAAS,mFAQpB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAExB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAGxB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAExB,CAAC;AAGH,eAAO,MAAM,iBAAiB,mFAK5B,CAAC;AAGH,eAAO,MAAM,YAAY,mFAEvB,CAAC;AAGH,eAAO,MAAM,QAAQ,mFAInB,CAAC;AAGH,eAAO,MAAM,WAAW,mFAItB,CAAC;AAGH,eAAO,MAAM,YAAY,mFAIvB,CAAC;AAGH,eAAO,MAAM,OAAO,mFAKlB,CAAC;AAGH,eAAO,MAAM,kBAAkB,mFAM7B,CAAC;AAGH,eAAO,MAAM,QAAQ,mFAQnB,CAAC;AAGH,eAAO,MAAM,YAAY,mFAGvB,CAAC;AAGH,eAAO,MAAM,gBAAgB,mFAE3B,CAAC;AAGH,eAAO,MAAM,YAAY,mFAqBvB,CAAC;AAGH,eAAO,MAAM,SAAS,mFAEpB,CAAC;AAGH,eAAO,MAAM,aAAa,mFAKxB,CAAC"}
@@ -0,0 +1,643 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /* auto-generated vue proxies */
4
+ import { defineContainer } from './vue-component-lib/utils';
5
+ export const DiwaAccordion = /*@__PURE__*/ defineContainer('diwa-accordion', undefined, [
6
+ 'theme',
7
+ 'heading',
8
+ 'headingTag',
9
+ 'open',
10
+ 'compact',
11
+ 'update'
12
+ ]);
13
+ export const DiwaBadge = /*@__PURE__*/ defineContainer('diwa-badge', undefined, [
14
+ 'variant',
15
+ 'size',
16
+ 'label',
17
+ 'theme'
18
+ ]);
19
+ export const DiwaButton = /*@__PURE__*/ defineContainer('diwa-button', undefined, [
20
+ 'theme',
21
+ 'variant',
22
+ 'size',
23
+ 'type',
24
+ 'disabled',
25
+ 'loading',
26
+ 'href',
27
+ 'target',
28
+ 'name',
29
+ 'value',
30
+ 'label',
31
+ 'hideLabel',
32
+ 'icon'
33
+ ]);
34
+ export const DiwaButtonPure = /*@__PURE__*/ defineContainer('diwa-button-pure', undefined, [
35
+ 'theme',
36
+ 'size',
37
+ 'icon',
38
+ 'disabled',
39
+ 'loading',
40
+ 'hideLabel',
41
+ 'active',
42
+ 'underline',
43
+ 'alignLabel',
44
+ 'stretch',
45
+ 'type',
46
+ 'name',
47
+ 'value',
48
+ 'href',
49
+ 'target',
50
+ 'label'
51
+ ]);
52
+ export const DiwaCheckbox = /*@__PURE__*/ defineContainer('diwa-checkbox', undefined, [
53
+ 'theme',
54
+ 'label',
55
+ 'name',
56
+ 'value',
57
+ 'checked',
58
+ 'indeterminate',
59
+ 'disabled',
60
+ 'required',
61
+ 'state',
62
+ 'message',
63
+ 'compact',
64
+ 'hideLabel',
65
+ 'update'
66
+ ]);
67
+ export const DiwaDivider = /*@__PURE__*/ defineContainer('diwa-divider', undefined, [
68
+ 'theme',
69
+ 'orientation'
70
+ ]);
71
+ export const DiwaFlyout = /*@__PURE__*/ defineContainer('diwa-flyout', undefined, [
72
+ 'theme',
73
+ 'open',
74
+ 'position',
75
+ 'backdrop',
76
+ 'heading',
77
+ 'dismiss'
78
+ ]);
79
+ export const DiwaIcon = /*@__PURE__*/ defineContainer('diwa-icon', undefined, [
80
+ 'name',
81
+ 'size',
82
+ 'color',
83
+ 'label',
84
+ 'theme'
85
+ ]);
86
+ export const DiwaInlineNotification = /*@__PURE__*/ defineContainer('diwa-inline-notification', undefined, [
87
+ 'theme',
88
+ 'state',
89
+ 'heading',
90
+ 'description',
91
+ 'dismissButton',
92
+ 'actionLabel',
93
+ 'actionLoading',
94
+ 'dismiss',
95
+ 'action'
96
+ ]);
97
+ export const DiwaInput = /*@__PURE__*/ defineContainer('diwa-input', undefined, [
98
+ 'type',
99
+ 'label',
100
+ 'placeholder',
101
+ 'value',
102
+ 'required',
103
+ 'disabled',
104
+ 'readonly',
105
+ 'state',
106
+ 'hint',
107
+ 'autocomplete',
108
+ 'name',
109
+ 'inputId',
110
+ 'theme',
111
+ 'diwaInput',
112
+ 'diwaChange',
113
+ 'diwaFocus',
114
+ 'diwaBlur'
115
+ ]);
116
+ export const DiwaInputDate = /*@__PURE__*/ defineContainer('diwa-input-date', undefined, [
117
+ 'label',
118
+ 'description',
119
+ 'message',
120
+ 'state',
121
+ 'name',
122
+ 'value',
123
+ 'placeholder',
124
+ 'disabled',
125
+ 'required',
126
+ 'readonly',
127
+ 'hideLabel',
128
+ 'compact',
129
+ 'autoComplete',
130
+ 'theme',
131
+ 'min',
132
+ 'max',
133
+ 'change',
134
+ 'input',
135
+ 'blur',
136
+ 'focus'
137
+ ]);
138
+ export const DiwaInputEmail = /*@__PURE__*/ defineContainer('diwa-input-email', undefined, [
139
+ 'label',
140
+ 'description',
141
+ 'message',
142
+ 'state',
143
+ 'name',
144
+ 'value',
145
+ 'placeholder',
146
+ 'disabled',
147
+ 'required',
148
+ 'readonly',
149
+ 'hideLabel',
150
+ 'compact',
151
+ 'autoComplete',
152
+ 'theme',
153
+ 'change',
154
+ 'input',
155
+ 'blur',
156
+ 'focus'
157
+ ]);
158
+ export const DiwaInputMonth = /*@__PURE__*/ defineContainer('diwa-input-month', undefined, [
159
+ 'label',
160
+ 'description',
161
+ 'message',
162
+ 'state',
163
+ 'name',
164
+ 'value',
165
+ 'placeholder',
166
+ 'disabled',
167
+ 'required',
168
+ 'readonly',
169
+ 'hideLabel',
170
+ 'compact',
171
+ 'autoComplete',
172
+ 'theme',
173
+ 'min',
174
+ 'max',
175
+ 'change',
176
+ 'input',
177
+ 'blur',
178
+ 'focus'
179
+ ]);
180
+ export const DiwaInputNumber = /*@__PURE__*/ defineContainer('diwa-input-number', undefined, [
181
+ 'label',
182
+ 'description',
183
+ 'message',
184
+ 'state',
185
+ 'name',
186
+ 'value',
187
+ 'placeholder',
188
+ 'disabled',
189
+ 'required',
190
+ 'readonly',
191
+ 'hideLabel',
192
+ 'compact',
193
+ 'autoComplete',
194
+ 'theme',
195
+ 'min',
196
+ 'max',
197
+ 'step',
198
+ 'change',
199
+ 'input',
200
+ 'blur',
201
+ 'focus'
202
+ ]);
203
+ export const DiwaInputPassword = /*@__PURE__*/ defineContainer('diwa-input-password', undefined, [
204
+ 'label',
205
+ 'description',
206
+ 'message',
207
+ 'state',
208
+ 'name',
209
+ 'value',
210
+ 'placeholder',
211
+ 'disabled',
212
+ 'required',
213
+ 'readonly',
214
+ 'hideLabel',
215
+ 'compact',
216
+ 'autoComplete',
217
+ 'theme',
218
+ 'showToggle',
219
+ 'change',
220
+ 'input',
221
+ 'blur',
222
+ 'focus'
223
+ ]);
224
+ export const DiwaInputSearch = /*@__PURE__*/ defineContainer('diwa-input-search', undefined, [
225
+ 'label',
226
+ 'description',
227
+ 'message',
228
+ 'state',
229
+ 'name',
230
+ 'value',
231
+ 'placeholder',
232
+ 'disabled',
233
+ 'required',
234
+ 'readonly',
235
+ 'hideLabel',
236
+ 'compact',
237
+ 'autoComplete',
238
+ 'theme',
239
+ 'showClearButton',
240
+ 'change',
241
+ 'input',
242
+ 'blur',
243
+ 'focus'
244
+ ]);
245
+ export const DiwaInputTel = /*@__PURE__*/ defineContainer('diwa-input-tel', undefined, [
246
+ 'label',
247
+ 'description',
248
+ 'message',
249
+ 'state',
250
+ 'name',
251
+ 'value',
252
+ 'placeholder',
253
+ 'disabled',
254
+ 'required',
255
+ 'readonly',
256
+ 'hideLabel',
257
+ 'compact',
258
+ 'autoComplete',
259
+ 'theme',
260
+ 'change',
261
+ 'input',
262
+ 'blur',
263
+ 'focus'
264
+ ]);
265
+ export const DiwaInputText = /*@__PURE__*/ defineContainer('diwa-input-text', undefined, [
266
+ 'label',
267
+ 'description',
268
+ 'message',
269
+ 'state',
270
+ 'name',
271
+ 'value',
272
+ 'placeholder',
273
+ 'disabled',
274
+ 'required',
275
+ 'readonly',
276
+ 'hideLabel',
277
+ 'compact',
278
+ 'autoComplete',
279
+ 'theme',
280
+ 'maxLength',
281
+ 'minLength',
282
+ 'spellCheck',
283
+ 'change',
284
+ 'input',
285
+ 'blur',
286
+ 'focus'
287
+ ]);
288
+ export const DiwaInputTime = /*@__PURE__*/ defineContainer('diwa-input-time', undefined, [
289
+ 'label',
290
+ 'description',
291
+ 'message',
292
+ 'state',
293
+ 'name',
294
+ 'value',
295
+ 'placeholder',
296
+ 'disabled',
297
+ 'required',
298
+ 'readonly',
299
+ 'hideLabel',
300
+ 'compact',
301
+ 'autoComplete',
302
+ 'theme',
303
+ 'min',
304
+ 'max',
305
+ 'step',
306
+ 'change',
307
+ 'input',
308
+ 'blur',
309
+ 'focus'
310
+ ]);
311
+ export const DiwaInputUrl = /*@__PURE__*/ defineContainer('diwa-input-url', undefined, [
312
+ 'label',
313
+ 'description',
314
+ 'message',
315
+ 'state',
316
+ 'name',
317
+ 'value',
318
+ 'placeholder',
319
+ 'disabled',
320
+ 'required',
321
+ 'readonly',
322
+ 'hideLabel',
323
+ 'compact',
324
+ 'autoComplete',
325
+ 'theme',
326
+ 'change',
327
+ 'input',
328
+ 'blur',
329
+ 'focus'
330
+ ]);
331
+ export const DiwaInputWeek = /*@__PURE__*/ defineContainer('diwa-input-week', undefined, [
332
+ 'label',
333
+ 'description',
334
+ 'message',
335
+ 'state',
336
+ 'name',
337
+ 'value',
338
+ 'placeholder',
339
+ 'disabled',
340
+ 'required',
341
+ 'readonly',
342
+ 'hideLabel',
343
+ 'compact',
344
+ 'autoComplete',
345
+ 'theme',
346
+ 'min',
347
+ 'max',
348
+ 'change',
349
+ 'input',
350
+ 'blur',
351
+ 'focus'
352
+ ]);
353
+ export const DiwaLink = /*@__PURE__*/ defineContainer('diwa-link', undefined, [
354
+ 'theme',
355
+ 'variant',
356
+ 'href',
357
+ 'target',
358
+ 'download',
359
+ 'rel',
360
+ 'icon',
361
+ 'hideLabel',
362
+ 'compact',
363
+ 'label',
364
+ 'disabled'
365
+ ]);
366
+ export const DiwaLinkPure = /*@__PURE__*/ defineContainer('diwa-link-pure', undefined, [
367
+ 'theme',
368
+ 'href',
369
+ 'target',
370
+ 'download',
371
+ 'rel',
372
+ 'icon',
373
+ 'hideLabel',
374
+ 'active',
375
+ 'underline',
376
+ 'size',
377
+ 'alignLabel',
378
+ 'stretch',
379
+ 'label'
380
+ ]);
381
+ export const DiwaModal = /*@__PURE__*/ defineContainer('diwa-modal', undefined, [
382
+ 'theme',
383
+ 'open',
384
+ 'heading',
385
+ 'dismissButton',
386
+ 'disableBackdropClick',
387
+ 'backdrop',
388
+ 'dismiss'
389
+ ]);
390
+ export const DiwaMultiSelect = /*@__PURE__*/ defineContainer('diwa-multi-select', undefined, [
391
+ 'theme',
392
+ 'label',
393
+ 'description',
394
+ 'name',
395
+ 'value',
396
+ 'state',
397
+ 'message',
398
+ 'hideLabel',
399
+ 'disabled',
400
+ 'required',
401
+ 'compact',
402
+ 'dropdownDirection',
403
+ 'change',
404
+ 'toggle',
405
+ 'blur'
406
+ ]);
407
+ export const DiwaMultiSelectOption = /*@__PURE__*/ defineContainer('diwa-multi-select-option', undefined, [
408
+ 'value',
409
+ 'disabled',
410
+ 'selected',
411
+ 'highlighted',
412
+ 'compact',
413
+ 'theme',
414
+ 'diwaMultiSelectOptionUpdate'
415
+ ]);
416
+ export const DiwaPagination = /*@__PURE__*/ defineContainer('diwa-pagination', undefined, [
417
+ 'theme',
418
+ 'totalItemsCount',
419
+ 'itemsPerPage',
420
+ 'activePage',
421
+ 'showLastPage',
422
+ 'intl',
423
+ 'update'
424
+ ]);
425
+ export const DiwaPinCode = /*@__PURE__*/ defineContainer('diwa-pin-code', undefined, [
426
+ 'label',
427
+ 'description',
428
+ 'state',
429
+ 'message',
430
+ 'length',
431
+ 'value',
432
+ 'type',
433
+ 'required',
434
+ 'disabled',
435
+ 'compact',
436
+ 'hideLabel',
437
+ 'theme',
438
+ 'update'
439
+ ]);
440
+ export const DiwaPopover = /*@__PURE__*/ defineContainer('diwa-popover', undefined, [
441
+ 'direction',
442
+ 'description',
443
+ 'theme'
444
+ ]);
445
+ export const DiwaRadioGroup = /*@__PURE__*/ defineContainer('diwa-radio-group', undefined, [
446
+ 'theme',
447
+ 'label',
448
+ 'description',
449
+ 'value',
450
+ 'direction',
451
+ 'required',
452
+ 'disabled',
453
+ 'state',
454
+ 'message',
455
+ 'compact',
456
+ 'hideLabel',
457
+ 'name',
458
+ 'update'
459
+ ]);
460
+ export const DiwaRadioGroupItem = /*@__PURE__*/ defineContainer('diwa-radio-group-item', undefined, [
461
+ 'theme',
462
+ 'value',
463
+ 'checked',
464
+ 'name',
465
+ 'disabled',
466
+ 'compact',
467
+ 'diwa-radio-select'
468
+ ]);
469
+ export const DiwaScroller = /*@__PURE__*/ defineContainer('diwa-scroller', undefined, [
470
+ 'alignScrollIndicator',
471
+ 'scrollbar',
472
+ 'theme'
473
+ ]);
474
+ export const DiwaSegmentedControl = /*@__PURE__*/ defineContainer('diwa-segmented-control', undefined, [
475
+ 'theme',
476
+ 'value',
477
+ 'disabled',
478
+ 'compact',
479
+ 'update'
480
+ ]);
481
+ export const DiwaSegmentedControlItem = /*@__PURE__*/ defineContainer('diwa-segmented-control-item', undefined, [
482
+ 'theme',
483
+ 'value',
484
+ 'selected',
485
+ 'disabled',
486
+ 'compact',
487
+ 'diwa-segment-select'
488
+ ]);
489
+ export const DiwaSelect = /*@__PURE__*/ defineContainer('diwa-select', undefined, [
490
+ 'theme',
491
+ 'label',
492
+ 'description',
493
+ 'name',
494
+ 'value',
495
+ 'state',
496
+ 'message',
497
+ 'hideLabel',
498
+ 'disabled',
499
+ 'required',
500
+ 'compact',
501
+ 'dropdownDirection',
502
+ 'change',
503
+ 'toggle',
504
+ 'blur'
505
+ ]);
506
+ export const DiwaSelectOption = /*@__PURE__*/ defineContainer('diwa-select-option', undefined, [
507
+ 'value',
508
+ 'disabled',
509
+ 'selected',
510
+ 'highlighted',
511
+ 'theme',
512
+ 'diwaSelectOptionUpdate'
513
+ ]);
514
+ export const DiwaSpinner = /*@__PURE__*/ defineContainer('diwa-spinner', undefined, [
515
+ 'size',
516
+ 'theme',
517
+ 'label'
518
+ ]);
519
+ export const DiwaStepperHorizontal = /*@__PURE__*/ defineContainer('diwa-stepper-horizontal', undefined, [
520
+ 'theme',
521
+ 'activeStepIndex',
522
+ 'update'
523
+ ]);
524
+ export const DiwaStepperHorizontalItem = /*@__PURE__*/ defineContainer('diwa-stepper-horizontal-item', undefined, [
525
+ 'theme',
526
+ 'label',
527
+ 'sublabel',
528
+ 'state',
529
+ 'stepNumber',
530
+ 'isLast'
531
+ ]);
532
+ export const DiwaSwitch = /*@__PURE__*/ defineContainer('diwa-switch', undefined, [
533
+ 'checked',
534
+ 'disabled',
535
+ 'loading',
536
+ 'alignLabel',
537
+ 'compact',
538
+ 'theme',
539
+ 'update'
540
+ ]);
541
+ export const DiwaTable = /*@__PURE__*/ defineContainer('diwa-table', undefined, [
542
+ 'theme',
543
+ 'caption',
544
+ 'compact',
545
+ 'layout',
546
+ 'bordered',
547
+ 'striped',
548
+ 'update'
549
+ ]);
550
+ export const DiwaTableBody = /*@__PURE__*/ defineContainer('diwa-table-body', undefined, [
551
+ 'theme'
552
+ ]);
553
+ export const DiwaTableCell = /*@__PURE__*/ defineContainer('diwa-table-cell', undefined, [
554
+ 'theme',
555
+ 'multiline'
556
+ ]);
557
+ export const DiwaTableHead = /*@__PURE__*/ defineContainer('diwa-table-head', undefined, [
558
+ 'theme'
559
+ ]);
560
+ export const DiwaTableHeadCell = /*@__PURE__*/ defineContainer('diwa-table-head-cell', undefined, [
561
+ 'theme',
562
+ 'sort',
563
+ 'hideLabel',
564
+ 'multiline'
565
+ ]);
566
+ export const DiwaTableRow = /*@__PURE__*/ defineContainer('diwa-table-row', undefined, [
567
+ 'theme'
568
+ ]);
569
+ export const DiwaTabs = /*@__PURE__*/ defineContainer('diwa-tabs', undefined, [
570
+ 'theme',
571
+ 'activeTabIndex',
572
+ 'update'
573
+ ]);
574
+ export const DiwaTabsBar = /*@__PURE__*/ defineContainer('diwa-tabs-bar', undefined, [
575
+ 'theme',
576
+ 'activeTabIndex',
577
+ 'update'
578
+ ]);
579
+ export const DiwaTabsItem = /*@__PURE__*/ defineContainer('diwa-tabs-item', undefined, [
580
+ 'theme',
581
+ 'label',
582
+ 'active'
583
+ ]);
584
+ export const DiwaTag = /*@__PURE__*/ defineContainer('diwa-tag', undefined, [
585
+ 'variant',
586
+ 'compact',
587
+ 'icon',
588
+ 'theme'
589
+ ]);
590
+ export const DiwaTagDismissible = /*@__PURE__*/ defineContainer('diwa-tag-dismissible', undefined, [
591
+ 'variant',
592
+ 'compact',
593
+ 'label',
594
+ 'theme',
595
+ 'dismiss'
596
+ ]);
597
+ export const DiwaText = /*@__PURE__*/ defineContainer('diwa-text', undefined, [
598
+ 'theme',
599
+ 'tag',
600
+ 'size',
601
+ 'weight',
602
+ 'align',
603
+ 'color',
604
+ 'ellipsis'
605
+ ]);
606
+ export const DiwaTextList = /*@__PURE__*/ defineContainer('diwa-text-list', undefined, [
607
+ 'theme',
608
+ 'type'
609
+ ]);
610
+ export const DiwaTextListItem = /*@__PURE__*/ defineContainer('diwa-text-list-item', undefined, [
611
+ 'theme'
612
+ ]);
613
+ export const DiwaTextarea = /*@__PURE__*/ defineContainer('diwa-textarea', undefined, [
614
+ 'label',
615
+ 'description',
616
+ 'state',
617
+ 'message',
618
+ 'name',
619
+ 'value',
620
+ 'placeholder',
621
+ 'required',
622
+ 'disabled',
623
+ 'readOnly',
624
+ 'maxLength',
625
+ 'minLength',
626
+ 'rows',
627
+ 'resize',
628
+ 'compact',
629
+ 'hideLabel',
630
+ 'theme',
631
+ 'input',
632
+ 'change',
633
+ 'blur'
634
+ ]);
635
+ export const DiwaToast = /*@__PURE__*/ defineContainer('diwa-toast', undefined, [
636
+ 'theme'
637
+ ]);
638
+ export const DiwaToastItem = /*@__PURE__*/ defineContainer('diwa-toast-item', undefined, [
639
+ 'theme',
640
+ 'text',
641
+ 'state',
642
+ 'dismiss'
643
+ ]);
@@ -0,0 +1,6 @@
1
+ export * from './components';
2
+ export { DiwaBadge as DBadge } from './components';
3
+ export { DiwaButton as DButton } from './components';
4
+ export { DiwaInput as DInput } from './components';
5
+ export { DiwaSpinner as DSpinner } from './components';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAI7B,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // Re-export everything from the Stencil-generated proxies.
2
+ export * from './components';
3
+ // D* aliases — the public API name consumers should use.
4
+ // The Diwa* variants remain available for backwards compatibility.
5
+ export { DiwaBadge as DBadge } from './components';
6
+ export { DiwaButton as DButton } from './components';
7
+ export { DiwaInput as DInput } from './components';
8
+ export { DiwaSpinner as DSpinner } from './components';
@@ -0,0 +1,17 @@
1
+ export interface InputProps<T> {
2
+ modelValue?: T;
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
+ */
16
+ export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string) => import("vue").DefineSetupFnComponent<Props & InputProps<VModelType>, {}, {}, Props & InputProps<VModelType> & {}, import("vue").PublicProps>;
17
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vue-component-lib/utils.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,CAAC;CAChB;AAsCD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAC3E,MAAM,MAAM,EACZ,qBAAqB,GAAG,EACxB,iBAAgB,MAAM,EAAO,EAC7B,YAAY,MAAM,EAClB,mBAAmB,MAAM,iJA8K1B,CAAC"}
@@ -0,0 +1,195 @@
1
+ // @ts-nocheck
2
+ // It's easier and safer for Volar to disable typechecking and let the return type inference do its job.
3
+ import { defineComponent, getCurrentInstance, h, inject, ref, withDirectives } from 'vue';
4
+ const UPDATE_VALUE_EVENT = 'update:modelValue';
5
+ const MODEL_VALUE = 'modelValue';
6
+ const ROUTER_LINK_VALUE = 'routerLink';
7
+ const NAV_MANAGER = 'navManager';
8
+ const ROUTER_PROP_PREFIX = 'router';
9
+ const ARIA_PROP_PREFIX = 'aria';
10
+ /**
11
+ * Starting in Vue 3.1.0, all properties are
12
+ * added as keys to the props object, even if
13
+ * they are not being used. In order to correctly
14
+ * account for both value props and v-model props,
15
+ * we need to check if the key exists for Vue <3.1.0
16
+ * and then check if it is not undefined for Vue >= 3.1.0.
17
+ * See https://github.com/vuejs/vue-next/issues/3889
18
+ */
19
+ const EMPTY_PROP = Symbol();
20
+ const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
21
+ const getComponentClasses = (classes) => {
22
+ return classes?.split(' ') || [];
23
+ };
24
+ const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
25
+ return [...Array.from(ref.value?.classList || []), ...defaultClasses].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
+ */
39
+ export const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent) => {
40
+ /**
41
+ * Create a Vue component wrapper around a Web Component.
42
+ * Note: The `props` here are not all properties on a component.
43
+ * They refer to whatever properties are set on an instance of a component.
44
+ */
45
+ if (defineCustomElement !== undefined) {
46
+ defineCustomElement();
47
+ }
48
+ const Container = defineComponent((props, { attrs, slots, emit }) => {
49
+ let modelPropValue = props[modelProp];
50
+ const containerRef = ref();
51
+ const classes = new Set(getComponentClasses(attrs.class));
52
+ /**
53
+ * This directive is responsible for updating any reactive
54
+ * reference associated with v-model on the component.
55
+ * This code must be run inside of the "created" callback.
56
+ * Since the following listener callbacks as well as any potential
57
+ * event callback defined in the developer's app are set on
58
+ * the same element, we need to make sure the following callbacks
59
+ * are set first so they fire first. If the developer's callback fires first
60
+ * then the reactive reference will not have been updated yet.
61
+ */
62
+ const vModelDirective = {
63
+ created: (el) => {
64
+ const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
65
+ eventsNames.forEach((eventName) => {
66
+ el.addEventListener(eventName.toLowerCase(), (e) => {
67
+ /**
68
+ * Only update the v-model binding if the event's target is the element we are
69
+ * listening on. For example, Component A could emit ionChange, but it could also
70
+ * have a descendant Component B that also emits ionChange. We only want to update
71
+ * the v-model for Component A when ionChange originates from that element and not
72
+ * when ionChange bubbles up from Component B.
73
+ */
74
+ if (e.target.tagName === el.tagName) {
75
+ modelPropValue = (e?.target)[modelProp];
76
+ emit(UPDATE_VALUE_EVENT, modelPropValue);
77
+ }
78
+ });
79
+ });
80
+ },
81
+ };
82
+ const currentInstance = getCurrentInstance();
83
+ const hasRouter = currentInstance?.appContext?.provides[NAV_MANAGER];
84
+ const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
85
+ const handleRouterLink = (ev) => {
86
+ const { routerLink } = props;
87
+ if (routerLink === EMPTY_PROP)
88
+ return;
89
+ if (navManager !== undefined) {
90
+ /**
91
+ * This prevents the browser from
92
+ * performing a page reload when pressing
93
+ * an Ionic component with routerLink.
94
+ * The page reload interferes with routing
95
+ * and causes ion-back-button to disappear
96
+ * since the local history is wiped on reload.
97
+ */
98
+ ev.preventDefault();
99
+ let navigationPayload = { event: ev };
100
+ for (const key in props) {
101
+ const value = props[key];
102
+ if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
103
+ navigationPayload[key] = value;
104
+ }
105
+ }
106
+ navManager.navigate(navigationPayload);
107
+ }
108
+ else {
109
+ console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
110
+ }
111
+ };
112
+ return () => {
113
+ modelPropValue = props[modelProp];
114
+ getComponentClasses(attrs.class).forEach((value) => {
115
+ classes.add(value);
116
+ });
117
+ const oldClick = props.onClick;
118
+ const handleClick = (ev) => {
119
+ if (oldClick !== undefined) {
120
+ oldClick(ev);
121
+ }
122
+ if (!ev.defaultPrevented) {
123
+ handleRouterLink(ev);
124
+ }
125
+ };
126
+ let propsToAdd = {
127
+ ref: containerRef,
128
+ class: getElementClasses(containerRef, classes),
129
+ onClick: handleClick,
130
+ };
131
+ /**
132
+ * We can use Object.entries here
133
+ * to avoid the hasOwnProperty check,
134
+ * but that would require 2 iterations
135
+ * where as this only requires 1.
136
+ */
137
+ for (const key in props) {
138
+ const value = props[key];
139
+ if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
140
+ propsToAdd[key] = value;
141
+ }
142
+ }
143
+ if (modelProp) {
144
+ /**
145
+ * If form value property was set using v-model
146
+ * then we should use that value.
147
+ * Otherwise, check to see if form value property
148
+ * was set as a static value (i.e. no v-model).
149
+ */
150
+ if (props[MODEL_VALUE] !== EMPTY_PROP) {
151
+ propsToAdd = {
152
+ ...propsToAdd,
153
+ [modelProp]: props[MODEL_VALUE],
154
+ };
155
+ }
156
+ else if (modelPropValue !== EMPTY_PROP) {
157
+ propsToAdd = {
158
+ ...propsToAdd,
159
+ [modelProp]: modelPropValue,
160
+ };
161
+ }
162
+ }
163
+ // If router link is defined, add href to props
164
+ // in order to properly render an anchor tag inside
165
+ // of components that should become activatable and
166
+ // focusable with router link.
167
+ if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) {
168
+ propsToAdd = {
169
+ ...propsToAdd,
170
+ href: props[ROUTER_LINK_VALUE],
171
+ };
172
+ }
173
+ /**
174
+ * vModelDirective is only needed on components that support v-model.
175
+ * As a result, we conditionally call withDirectives with v-model components.
176
+ */
177
+ const node = h(name, propsToAdd, slots.default && slots.default());
178
+ return modelProp === undefined ? node : withDirectives(node, [[vModelDirective]]);
179
+ };
180
+ });
181
+ if (typeof Container !== 'function') {
182
+ Container.name = name;
183
+ Container.props = {
184
+ [ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
185
+ };
186
+ componentProps.forEach((componentProp) => {
187
+ Container.props[componentProp] = DEFAULT_EMPTY_PROP;
188
+ });
189
+ if (modelProp) {
190
+ Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
191
+ Container.emits = [UPDATE_VALUE_EVENT];
192
+ }
193
+ }
194
+ return Container;
195
+ };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@diwacopilot/components-vue",
3
+ "version": "1.0.0",
4
+ "description": "Vue wrapper package for Diwa Web Components.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js"
17
+ }
18
+ },
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.json",
21
+ "prepack": "npm run build"
22
+ },
23
+ "peerDependencies": {
24
+ "@diwacopilot/components": "^1.0.0",
25
+ "vue": "^3.4.0"
26
+ },
27
+ "devDependencies": {
28
+ "@diwacopilot/components": "file:../diwa-components",
29
+ "typescript": "^5.7.2",
30
+ "vue": "^3.5.13"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/jortega0033/diwa-design-system.git",
38
+ "directory": "diwa-components-vue"
39
+ },
40
+ "bugs": {
41
+ "url": "https://github.com/jortega0033/diwa-design-system/issues"
42
+ },
43
+ "homepage": "https://github.com/jortega0033/diwa-design-system#readme"
44
+ }