@poppy-ui/vue 0.1.0-beta-0.1

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/dist/index.js ADDED
@@ -0,0 +1,548 @@
1
+ import { initialize } from '@poppy-ui/core/components';
2
+ import { defineComponent, ref, getCurrentInstance, inject, h, withDirectives } from 'vue';
3
+ import { defineCustomElement } from '@poppy-ui/core/components/pop-accordion.js';
4
+ import { defineCustomElement as defineCustomElement$1 } from '@poppy-ui/core/components/pop-accordion-group.js';
5
+ import { defineCustomElement as defineCustomElement$2 } from '@poppy-ui/core/components/pop-avatar.js';
6
+ import { defineCustomElement as defineCustomElement$3 } from '@poppy-ui/core/components/pop-badge.js';
7
+ import { defineCustomElement as defineCustomElement$4 } from '@poppy-ui/core/components/pop-button.js';
8
+ import { defineCustomElement as defineCustomElement$5 } from '@poppy-ui/core/components/pop-card.js';
9
+ import { defineCustomElement as defineCustomElement$6 } from '@poppy-ui/core/components/pop-checkbox.js';
10
+ import { defineCustomElement as defineCustomElement$7 } from '@poppy-ui/core/components/pop-divider.js';
11
+ import { defineCustomElement as defineCustomElement$8 } from '@poppy-ui/core/components/pop-drawer.js';
12
+ import { defineCustomElement as defineCustomElement$9 } from '@poppy-ui/core/components/pop-dropdown.js';
13
+ import { defineCustomElement as defineCustomElement$a } from '@poppy-ui/core/components/pop-img.js';
14
+ import { defineCustomElement as defineCustomElement$b } from '@poppy-ui/core/components/pop-indicator.js';
15
+ import { defineCustomElement as defineCustomElement$c } from '@poppy-ui/core/components/pop-input.js';
16
+ import { defineCustomElement as defineCustomElement$d } from '@poppy-ui/core/components/pop-input-file.js';
17
+ import { defineCustomElement as defineCustomElement$e } from '@poppy-ui/core/components/pop-item.js';
18
+ import { defineCustomElement as defineCustomElement$f } from '@poppy-ui/core/components/pop-join.js';
19
+ import { defineCustomElement as defineCustomElement$g } from '@poppy-ui/core/components/pop-kbd.js';
20
+ import { defineCustomElement as defineCustomElement$h } from '@poppy-ui/core/components/pop-list.js';
21
+ import { defineCustomElement as defineCustomElement$i } from '@poppy-ui/core/components/pop-loading.js';
22
+ import { defineCustomElement as defineCustomElement$j } from '@poppy-ui/core/components/pop-mask.js';
23
+ import { defineCustomElement as defineCustomElement$k } from '@poppy-ui/core/components/pop-modal.js';
24
+ import { defineCustomElement as defineCustomElement$l } from '@poppy-ui/core/components/pop-navbar.js';
25
+ import { defineCustomElement as defineCustomElement$m } from '@poppy-ui/core/components/pop-popover.js';
26
+ import { defineCustomElement as defineCustomElement$n } from '@poppy-ui/core/components/pop-progress.js';
27
+ import { defineCustomElement as defineCustomElement$o } from '@poppy-ui/core/components/pop-radio.js';
28
+ import { defineCustomElement as defineCustomElement$p } from '@poppy-ui/core/components/pop-radio-group.js';
29
+ import { defineCustomElement as defineCustomElement$q } from '@poppy-ui/core/components/pop-range.js';
30
+ import { defineCustomElement as defineCustomElement$r } from '@poppy-ui/core/components/pop-select.js';
31
+ import { defineCustomElement as defineCustomElement$s } from '@poppy-ui/core/components/pop-select-option.js';
32
+ import { defineCustomElement as defineCustomElement$t } from '@poppy-ui/core/components/pop-swap.js';
33
+ import { defineCustomElement as defineCustomElement$u } from '@poppy-ui/core/components/pop-textarea.js';
34
+ import { defineCustomElement as defineCustomElement$v } from '@poppy-ui/core/components/pop-toggle.js';
35
+ import { defineCustomElement as defineCustomElement$w } from '@poppy-ui/core/components/pop-tooltip.js';
36
+
37
+ const toKebabCase = (eventName) => {
38
+ return eventName.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
39
+ };
40
+ const getHelperFunctions = () => {
41
+ return {
42
+ ael: (el, eventName, cb, opts) => el.addEventListener(toKebabCase(eventName), cb, opts),
43
+ rel: (el, eventName, cb, opts) => el.removeEventListener(toKebabCase(eventName), cb, opts),
44
+ ce: (eventName, opts) => new CustomEvent(toKebabCase(eventName), opts),
45
+ };
46
+ };
47
+ const PoppyVue = {
48
+ async install(_, config = {}) {
49
+ /**
50
+ * By default Poppy UI hides elements that
51
+ * are not hydrated, but in the CE build there is no
52
+ * hydration.
53
+ */
54
+ if (typeof document !== 'undefined') {
55
+ document.documentElement.classList.add('pop-ce');
56
+ }
57
+ const { ael, rel, ce } = getHelperFunctions();
58
+ initialize(Object.assign(Object.assign({}, config), { _ael: ael, _rel: rel, _ce: ce }));
59
+ },
60
+ };
61
+
62
+ // @ts-nocheck
63
+ // It's easier and safer for Volar to disable typechecking and let the return type inference do its job.
64
+ const UPDATE_VALUE_EVENT = 'update:modelValue';
65
+ const MODEL_VALUE = 'modelValue';
66
+ const ROUTER_LINK_VALUE = 'routerLink';
67
+ const NAV_MANAGER = 'navManager';
68
+ const ROUTER_PROP_PREFIX = 'router';
69
+ const ARIA_PROP_PREFIX = 'aria';
70
+ /**
71
+ * Starting in Vue 3.1.0, all properties are
72
+ * added as keys to the props object, even if
73
+ * they are not being used. In order to correctly
74
+ * account for both value props and v-model props,
75
+ * we need to check if the key exists for Vue <3.1.0
76
+ * and then check if it is not undefined for Vue >= 3.1.0.
77
+ * See https://github.com/vuejs/vue-next/issues/3889
78
+ */
79
+ const EMPTY_PROP = Symbol();
80
+ const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
81
+ const getComponentClasses = (classes) => {
82
+ return (classes === null || classes === void 0 ? void 0 : classes.split(' ')) || [];
83
+ };
84
+ const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
85
+ var _a;
86
+ 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);
87
+ };
88
+ /**
89
+ * Create a callback to define a Vue component wrapper around a Web Component.
90
+ *
91
+ * @prop name - The component tag name (i.e. `ion-button`)
92
+ * @prop componentProps - An array of properties on the
93
+ * component. These usually match up with the @Prop definitions
94
+ * in each component's TSX file.
95
+ * @prop customElement - An option custom element instance to pass
96
+ * to customElements.define. Only set if `includeImportCustomElements: true` in your config.
97
+ * @prop modelProp - The prop that v-model binds to (i.e. value)
98
+ * @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
99
+ */
100
+ const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent) => {
101
+ /**
102
+ * Create a Vue component wrapper around a Web Component.
103
+ * Note: The `props` here are not all properties on a component.
104
+ * They refer to whatever properties are set on an instance of a component.
105
+ */
106
+ if (defineCustomElement !== undefined) {
107
+ defineCustomElement();
108
+ }
109
+ const Container = defineComponent((props, { attrs, slots, emit }) => {
110
+ var _a;
111
+ let modelPropValue = props[modelProp];
112
+ const containerRef = ref();
113
+ const classes = new Set(getComponentClasses(attrs.class));
114
+ /**
115
+ * This directive is responsible for updating any reactive
116
+ * reference associated with v-model on the component.
117
+ * This code must be run inside of the "created" callback.
118
+ * Since the following listener callbacks as well as any potential
119
+ * event callback defined in the developer's app are set on
120
+ * the same element, we need to make sure the following callbacks
121
+ * are set first so they fire first. If the developer's callback fires first
122
+ * then the reactive reference will not have been updated yet.
123
+ */
124
+ const vModelDirective = {
125
+ created: (el) => {
126
+ const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
127
+ eventsNames.forEach((eventName) => {
128
+ el.addEventListener(eventName.toLowerCase(), (e) => {
129
+ /**
130
+ * Only update the v-model binding if the event's target is the element we are
131
+ * listening on. For example, Component A could emit ionChange, but it could also
132
+ * have a descendant Component B that also emits ionChange. We only want to update
133
+ * the v-model for Component A when ionChange originates from that element and not
134
+ * when ionChange bubbles up from Component B.
135
+ */
136
+ if (e.target.tagName === el.tagName) {
137
+ modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
138
+ emit(UPDATE_VALUE_EVENT, modelPropValue);
139
+ }
140
+ });
141
+ });
142
+ },
143
+ };
144
+ const currentInstance = getCurrentInstance();
145
+ const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
146
+ const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
147
+ const handleRouterLink = (ev) => {
148
+ const { routerLink } = props;
149
+ if (routerLink === EMPTY_PROP)
150
+ return;
151
+ if (navManager !== undefined) {
152
+ let navigationPayload = { event: ev };
153
+ for (const key in props) {
154
+ const value = props[key];
155
+ if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
156
+ navigationPayload[key] = value;
157
+ }
158
+ }
159
+ navManager.navigate(navigationPayload);
160
+ }
161
+ else {
162
+ console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
163
+ }
164
+ };
165
+ return () => {
166
+ modelPropValue = props[modelProp];
167
+ getComponentClasses(attrs.class).forEach((value) => {
168
+ classes.add(value);
169
+ });
170
+ const oldClick = props.onClick;
171
+ const handleClick = (ev) => {
172
+ if (oldClick !== undefined) {
173
+ oldClick(ev);
174
+ }
175
+ if (!ev.defaultPrevented) {
176
+ handleRouterLink(ev);
177
+ }
178
+ };
179
+ let propsToAdd = {
180
+ ref: containerRef,
181
+ class: getElementClasses(containerRef, classes),
182
+ onClick: handleClick,
183
+ };
184
+ /**
185
+ * We can use Object.entries here
186
+ * to avoid the hasOwnProperty check,
187
+ * but that would require 2 iterations
188
+ * where as this only requires 1.
189
+ */
190
+ for (const key in props) {
191
+ const value = props[key];
192
+ if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
193
+ propsToAdd[key] = value;
194
+ }
195
+ }
196
+ if (modelProp) {
197
+ /**
198
+ * If form value property was set using v-model
199
+ * then we should use that value.
200
+ * Otherwise, check to see if form value property
201
+ * was set as a static value (i.e. no v-model).
202
+ */
203
+ if (props[MODEL_VALUE] !== EMPTY_PROP) {
204
+ propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
205
+ }
206
+ else if (modelPropValue !== EMPTY_PROP) {
207
+ propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
208
+ }
209
+ }
210
+ /**
211
+ * vModelDirective is only needed on components that support v-model.
212
+ * As a result, we conditionally call withDirectives with v-model components.
213
+ */
214
+ const node = h(name, propsToAdd, slots.default && slots.default());
215
+ return modelProp === undefined ? node : withDirectives(node, [[vModelDirective]]);
216
+ };
217
+ });
218
+ if (typeof Container !== 'function') {
219
+ Container.name = name;
220
+ Container.props = {
221
+ [ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
222
+ };
223
+ componentProps.forEach((componentProp) => {
224
+ Container.props[componentProp] = DEFAULT_EMPTY_PROP;
225
+ });
226
+ if (modelProp) {
227
+ Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
228
+ Container.emits = [UPDATE_VALUE_EVENT];
229
+ }
230
+ }
231
+ return Container;
232
+ };
233
+
234
+ /* eslint-disable */
235
+ /* tslint:disable */
236
+ /* auto-generated vue proxies */
237
+ const PopAccordion = /*@__PURE__*/ defineContainer('pop-accordion', defineCustomElement, [
238
+ 'readonly',
239
+ 'disabled',
240
+ 'name',
241
+ 'isOpen'
242
+ ]);
243
+ const PopAccordionGroup = /*@__PURE__*/ defineContainer('pop-accordion-group', defineCustomElement$1, [
244
+ 'readonly',
245
+ 'disabled',
246
+ 'multiple',
247
+ 'active',
248
+ 'popChange',
249
+ 'popActiveChange'
250
+ ], 'active', 'pop-change');
251
+ const PopAvatar = /*@__PURE__*/ defineContainer('pop-avatar', defineCustomElement$2, [
252
+ 'placeholder'
253
+ ]);
254
+ const PopBadge = /*@__PURE__*/ defineContainer('pop-badge', defineCustomElement$3, [
255
+ 'color',
256
+ 'size',
257
+ 'outlined',
258
+ 'as'
259
+ ]);
260
+ const PopButton = /*@__PURE__*/ defineContainer('pop-button', defineCustomElement$4, [
261
+ 'type',
262
+ 'form',
263
+ 'disabled',
264
+ 'color',
265
+ 'size',
266
+ 'outlined',
267
+ 'shape',
268
+ 'expand',
269
+ 'popFocus',
270
+ 'popBlur'
271
+ ]);
272
+ const PopCard = /*@__PURE__*/ defineContainer('pop-card', defineCustomElement$5);
273
+ const PopCheckbox = /*@__PURE__*/ defineContainer('pop-checkbox', defineCustomElement$6, [
274
+ 'name',
275
+ 'value',
276
+ 'required',
277
+ 'readonly',
278
+ 'checked',
279
+ 'indeterminate',
280
+ 'disabled',
281
+ 'color',
282
+ 'size',
283
+ 'placement',
284
+ 'popChange',
285
+ 'popFocus',
286
+ 'popBlur'
287
+ ], 'checked', 'pop-change');
288
+ const PopDivider = /*@__PURE__*/ defineContainer('pop-divider', defineCustomElement$7, [
289
+ 'orientation',
290
+ 'placement',
291
+ 'color'
292
+ ]);
293
+ const PopDrawer = /*@__PURE__*/ defineContainer('pop-drawer', defineCustomElement$8, [
294
+ 'trigger',
295
+ 'triggerAction',
296
+ 'side',
297
+ 'open'
298
+ ]);
299
+ const PopDropdown = /*@__PURE__*/ defineContainer('pop-dropdown', defineCustomElement$9, [
300
+ 'side',
301
+ 'align',
302
+ 'open',
303
+ 'triggerAction',
304
+ 'debounce',
305
+ 'showBackdrop',
306
+ 'didPresent',
307
+ 'didDismiss'
308
+ ]);
309
+ const PopImg = /*@__PURE__*/ defineContainer('pop-img', defineCustomElement$a, [
310
+ 'src',
311
+ 'alt',
312
+ 'popWillLoad',
313
+ 'popDidLoad',
314
+ 'popError'
315
+ ]);
316
+ const PopIndicator = /*@__PURE__*/ defineContainer('pop-indicator', defineCustomElement$b, [
317
+ 'side',
318
+ 'position'
319
+ ]);
320
+ const PopInput = /*@__PURE__*/ defineContainer('pop-input', defineCustomElement$c, [
321
+ 'name',
322
+ 'type',
323
+ 'placeholder',
324
+ 'value',
325
+ 'min',
326
+ 'max',
327
+ 'step',
328
+ 'minLength',
329
+ 'maxLength',
330
+ 'multiple',
331
+ 'pattern',
332
+ 'required',
333
+ 'readonly',
334
+ 'disabled',
335
+ 'autoFocus',
336
+ 'keyboard',
337
+ 'enterkeyhint',
338
+ 'spellcheck',
339
+ 'autoComplete',
340
+ 'autoCapitalize',
341
+ 'bordered',
342
+ 'color',
343
+ 'size',
344
+ 'helperText',
345
+ 'errorText',
346
+ 'counter',
347
+ 'counterFormatter',
348
+ 'debounce',
349
+ 'popChange',
350
+ 'popInput',
351
+ 'popFocus',
352
+ 'popBlur'
353
+ ]);
354
+ const PopInputFile = /*@__PURE__*/ defineContainer('pop-input-file', defineCustomElement$d, [
355
+ 'name',
356
+ 'value',
357
+ 'multiple',
358
+ 'required',
359
+ 'readonly',
360
+ 'disabled',
361
+ 'autoFocus',
362
+ 'bordered',
363
+ 'color',
364
+ 'size',
365
+ 'helperText',
366
+ 'errorText',
367
+ 'popChange',
368
+ 'popFocus',
369
+ 'popBlur'
370
+ ]);
371
+ const PopItem = /*@__PURE__*/ defineContainer('pop-item', defineCustomElement$e, [
372
+ 'disabled'
373
+ ]);
374
+ const PopJoin = /*@__PURE__*/ defineContainer('pop-join', defineCustomElement$f, [
375
+ 'orientation'
376
+ ]);
377
+ const PopKbd = /*@__PURE__*/ defineContainer('pop-kbd', defineCustomElement$g, [
378
+ 'size'
379
+ ]);
380
+ const PopList = /*@__PURE__*/ defineContainer('pop-list', defineCustomElement$h, [
381
+ 'size',
382
+ 'orientation'
383
+ ]);
384
+ const PopLoading = /*@__PURE__*/ defineContainer('pop-loading', defineCustomElement$i, [
385
+ 'type',
386
+ 'size'
387
+ ]);
388
+ const PopMask = /*@__PURE__*/ defineContainer('pop-mask', defineCustomElement$j, [
389
+ 'type'
390
+ ]);
391
+ const PopModal = /*@__PURE__*/ defineContainer('pop-modal', defineCustomElement$k, [
392
+ 'trigger',
393
+ 'component',
394
+ 'componentProps',
395
+ 'showBackdrop',
396
+ 'backdropDismiss',
397
+ 'open',
398
+ 'didPresent',
399
+ 'didDismiss'
400
+ ]);
401
+ const PopNavbar = /*@__PURE__*/ defineContainer('pop-navbar', defineCustomElement$l);
402
+ const PopPopover = /*@__PURE__*/ defineContainer('pop-popover', defineCustomElement$m, [
403
+ 'open',
404
+ 'animated',
405
+ 'showBackdrop',
406
+ 'backdropDismiss',
407
+ 'event',
408
+ 'trigger',
409
+ 'triggerAction',
410
+ 'component',
411
+ 'componentProps',
412
+ 'willPresent',
413
+ 'didPresent',
414
+ 'willDismiss',
415
+ 'didDismiss'
416
+ ]);
417
+ const PopProgress = /*@__PURE__*/ defineContainer('pop-progress', defineCustomElement$n, [
418
+ 'value',
419
+ 'max',
420
+ 'color'
421
+ ]);
422
+ const PopRadio = /*@__PURE__*/ defineContainer('pop-radio', defineCustomElement$o, [
423
+ 'name',
424
+ 'value',
425
+ 'checked',
426
+ 'required',
427
+ 'disabled',
428
+ 'autoFocus',
429
+ 'color',
430
+ 'size',
431
+ 'popFocus',
432
+ 'popBlur'
433
+ ], 'value', 'pop-change');
434
+ const PopRadioGroup = /*@__PURE__*/ defineContainer('pop-radio-group', defineCustomElement$p, [
435
+ 'name',
436
+ 'value',
437
+ 'required',
438
+ 'disabled',
439
+ 'allowEmpty',
440
+ 'compare',
441
+ 'color',
442
+ 'size',
443
+ 'popChange',
444
+ 'popValueChange'
445
+ ], 'value', 'pop-change');
446
+ const PopRange = /*@__PURE__*/ defineContainer('pop-range', defineCustomElement$q, [
447
+ 'name',
448
+ 'value',
449
+ 'min',
450
+ 'max',
451
+ 'step',
452
+ 'required',
453
+ 'disabled',
454
+ 'autoFocus',
455
+ 'color',
456
+ 'size',
457
+ 'debounce',
458
+ 'popChange',
459
+ 'popFocus',
460
+ 'popBlur'
461
+ ]);
462
+ const PopSelect = /*@__PURE__*/ defineContainer('pop-select', defineCustomElement$r, [
463
+ 'name',
464
+ 'placeholder',
465
+ 'value',
466
+ 'multiple',
467
+ 'min',
468
+ 'max',
469
+ 'required',
470
+ 'disabled',
471
+ 'autoFocus',
472
+ 'bordered',
473
+ 'color',
474
+ 'size',
475
+ 'selectedText',
476
+ 'helperText',
477
+ 'notEnoughErrorText',
478
+ 'tooManyErrorText',
479
+ 'compare',
480
+ 'popDismiss',
481
+ 'popChange',
482
+ 'popFocus',
483
+ 'popBlur'
484
+ ], 'value', 'pop-change');
485
+ const PopSelectOption = /*@__PURE__*/ defineContainer('pop-select-option', defineCustomElement$s, [
486
+ 'value',
487
+ 'disabled',
488
+ 'color',
489
+ 'size'
490
+ ]);
491
+ const PopSwap = /*@__PURE__*/ defineContainer('pop-swap', defineCustomElement$t, [
492
+ 'type',
493
+ 'active',
494
+ 'popSwap'
495
+ ], 'active', 'pop-change');
496
+ const PopTextarea = /*@__PURE__*/ defineContainer('pop-textarea', defineCustomElement$u, [
497
+ 'name',
498
+ 'placeholder',
499
+ 'value',
500
+ 'minLength',
501
+ 'maxLength',
502
+ 'cols',
503
+ 'rows',
504
+ 'required',
505
+ 'readonly',
506
+ 'disabled',
507
+ 'autoFocus',
508
+ 'keyboard',
509
+ 'enterkeyhint',
510
+ 'spellcheck',
511
+ 'autoCapitalize',
512
+ 'wrap',
513
+ 'bordered',
514
+ 'color',
515
+ 'size',
516
+ 'helperText',
517
+ 'errorText',
518
+ 'counter',
519
+ 'counterFormatter',
520
+ 'debounce',
521
+ 'popChange',
522
+ 'popInput',
523
+ 'popFocus',
524
+ 'popBlur'
525
+ ]);
526
+ const PopToggle = /*@__PURE__*/ defineContainer('pop-toggle', defineCustomElement$v, [
527
+ 'name',
528
+ 'value',
529
+ 'required',
530
+ 'readonly',
531
+ 'checked',
532
+ 'indeterminate',
533
+ 'disabled',
534
+ 'color',
535
+ 'size',
536
+ 'popChange',
537
+ 'popFocus',
538
+ 'popBlur'
539
+ ], 'checked', 'pop-change');
540
+ const PopTooltip = /*@__PURE__*/ defineContainer('pop-tooltip', defineCustomElement$w, [
541
+ 'value',
542
+ 'color',
543
+ 'position',
544
+ 'open'
545
+ ]);
546
+
547
+ export { PopAccordion, PopAccordionGroup, PopAvatar, PopBadge, PopButton, PopCard, PopCheckbox, PopDivider, PopDrawer, PopDropdown, PopImg, PopIndicator, PopInput, PopInputFile, PopItem, PopJoin, PopKbd, PopList, PopLoading, PopMask, PopModal, PopNavbar, PopPopover, PopProgress, PopRadio, PopRadioGroup, PopRange, PopSelect, PopSelectOption, PopSwap, PopTextarea, PopToggle, PopTooltip, PoppyVue };
548
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/plugin.ts","../src/vue-component-lib/utils.ts","../src/proxies.ts"],"sourcesContent":[null,null,null],"names":["definePopAccordion","definePopAccordionGroup","definePopAvatar","definePopBadge","definePopButton","definePopCard","definePopCheckbox","definePopDivider","definePopDrawer","definePopDropdown","definePopImg","definePopIndicator","definePopInput","definePopInputFile","definePopItem","definePopJoin","definePopKbd","definePopList","definePopLoading","definePopMask","definePopModal","definePopNavbar","definePopPopover","definePopProgress","definePopRadio","definePopRadioGroup","definePopRange","definePopSelect","definePopSelectOption","definePopSwap","definePopTextarea","definePopToggle","definePopTooltip"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,WAAW,GAAG,CAAC,SAAiB,KAAI;IACxC,OAAO,SAAS,CAAC,OAAO,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;AAClF,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAK;IAC9B,OAAO;QACL,GAAG,EAAE,CAAC,EAAO,EAAE,SAAiB,EAAE,EAAO,EAAE,IAAS,KAAK,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;QAC9G,GAAG,EAAE,CAAC,EAAO,EAAE,SAAiB,EAAE,EAAO,EAAE,IAAS,KAAK,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;AACjH,QAAA,EAAE,EAAE,CAAC,SAAiB,EAAE,IAAS,KAAK,IAAI,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;KACpF,CAAC;AACJ,CAAC,CAAC;AAEW,MAAA,Q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AA,EACD,QAAQ,EAAE,YAAY,EAAE;AAGX,MAAA,WAAW,iBAAiB,eAAe,CAAkB,cAAc,EAAEC,qBAAiB,EAAE;IAC3G,MAAM;IACN,aAAa;IACb,OAAO;IACP,WAAW;IACX,WAAW;IACX,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,MAAM;IACN,UAAU;IACV,OAAO;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,SAAS;IACT,kBAAkB;IAClB,UAAU;IACV,WAAW;IACX,UAAU;IACV,UAAU;IACV,SAAS;AACV,CAAA,EAAE;AAGU,MAAA,SAAS,iBAAiB,eAAe,CAA0C,YAAY,EAAEC,qBAAe,EAAE;IAC7H,MAAM;IACN,OAAO;IACP,UAAU;IACV,UAAU;IACV,SAAS;IACT,eAAe;IACf,UAAU;IACV,OAAO;IACP,MAAM;IACN,WAAW;IACX,UAAU;IACV,SAAS;AACV,CAAA,EACD,SAAS,EAAE,YAAY,EAAE;AAGZ,MAAA,UAAU,iBAAiB,eAAe,CAAiB,aAAa,EAAEC,qBAAgB,EAAE;IACvG,OAAO;IACP,OAAO;IACP,UAAU;IACV,MAAM;AACP,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ export { PoppyVue } from './plugin';
2
+ export * from './proxies';
3
+ export { AccordionGroupCustomEvent, AccordionGroupChangeEventDetail, CheckboxCustomEvent, CheckboxChangeEventDetail, InputCustomEvent, InputChangeEventDetail, InputInputEventDetail, InputFileCustomEvent, InputFileChangeEventDetail, RadioGroupCustomEvent, RadioGroupChangeEventDetail, RangeCustomEvent, RangeChangeEventDetail, SelectCustomEvent, SelectChangeEventDetail, TextareaCustomEvent, TextareaChangeEventDetail, TextareaInputEventDetail, ToggleCustomEvent, ToggleChangeEventDetail, ModalOptions, PopoverOptions, } from '@poppy-ui/core/components';
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from 'vue';
2
+ export declare const PoppyVue: Plugin;
@@ -0,0 +1,34 @@
1
+ import type { JSX } from '@poppy-ui/core/components';
2
+ export declare const PopAccordion: import("vue").DefineSetupFnComponent<JSX.PopAccordion & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopAccordion & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
3
+ export declare const PopAccordionGroup: import("vue").DefineSetupFnComponent<JSX.PopAccordionGroup & import("./vue-component-lib/utils").InputProps<string | string[]>, {}, {}, JSX.PopAccordionGroup & import("./vue-component-lib/utils").InputProps<string | string[]> & {}, import("vue").PublicProps>;
4
+ export declare const PopAvatar: import("vue").DefineSetupFnComponent<JSX.PopAvatar & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopAvatar & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
5
+ export declare const PopBadge: import("vue").DefineSetupFnComponent<JSX.PopBadge & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopBadge & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
6
+ export declare const PopButton: import("vue").DefineSetupFnComponent<JSX.PopButton & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopButton & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
7
+ export declare const PopCard: import("vue").DefineSetupFnComponent<JSX.PopCard & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopCard & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
8
+ export declare const PopCheckbox: import("vue").DefineSetupFnComponent<JSX.PopCheckbox & import("./vue-component-lib/utils").InputProps<boolean>, {}, {}, JSX.PopCheckbox & import("./vue-component-lib/utils").InputProps<boolean> & {}, import("vue").PublicProps>;
9
+ export declare const PopDivider: import("vue").DefineSetupFnComponent<JSX.PopDivider & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopDivider & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
10
+ export declare const PopDrawer: import("vue").DefineSetupFnComponent<JSX.PopDrawer & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopDrawer & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
11
+ export declare const PopDropdown: import("vue").DefineSetupFnComponent<JSX.PopDropdown & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopDropdown & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
12
+ export declare const PopImg: import("vue").DefineSetupFnComponent<JSX.PopImg & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopImg & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
13
+ export declare const PopIndicator: import("vue").DefineSetupFnComponent<JSX.PopIndicator & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopIndicator & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
14
+ export declare const PopInput: import("vue").DefineSetupFnComponent<JSX.PopInput & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopInput & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
15
+ export declare const PopInputFile: import("vue").DefineSetupFnComponent<JSX.PopInputFile & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopInputFile & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
16
+ export declare const PopItem: import("vue").DefineSetupFnComponent<JSX.PopItem & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopItem & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
17
+ export declare const PopJoin: import("vue").DefineSetupFnComponent<JSX.PopJoin & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopJoin & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
18
+ export declare const PopKbd: import("vue").DefineSetupFnComponent<JSX.PopKbd & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopKbd & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
19
+ export declare const PopList: import("vue").DefineSetupFnComponent<JSX.PopList & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopList & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
20
+ export declare const PopLoading: import("vue").DefineSetupFnComponent<JSX.PopLoading & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopLoading & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
21
+ export declare const PopMask: import("vue").DefineSetupFnComponent<JSX.PopMask & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopMask & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
22
+ export declare const PopModal: import("vue").DefineSetupFnComponent<JSX.PopModal & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopModal & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
23
+ export declare const PopNavbar: import("vue").DefineSetupFnComponent<JSX.PopNavbar & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopNavbar & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
24
+ export declare const PopPopover: import("vue").DefineSetupFnComponent<JSX.PopPopover & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopPopover & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
25
+ export declare const PopProgress: import("vue").DefineSetupFnComponent<JSX.PopProgress & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopProgress & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
26
+ export declare const PopRadio: import("vue").DefineSetupFnComponent<JSX.PopRadio & import("./vue-component-lib/utils").InputProps<any>, {}, {}, JSX.PopRadio & import("./vue-component-lib/utils").InputProps<any> & {}, import("vue").PublicProps>;
27
+ export declare const PopRadioGroup: import("vue").DefineSetupFnComponent<JSX.PopRadioGroup & import("./vue-component-lib/utils").InputProps<any>, {}, {}, JSX.PopRadioGroup & import("./vue-component-lib/utils").InputProps<any> & {}, import("vue").PublicProps>;
28
+ export declare const PopRange: import("vue").DefineSetupFnComponent<JSX.PopRange & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopRange & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
29
+ export declare const PopSelect: import("vue").DefineSetupFnComponent<JSX.PopSelect & import("./vue-component-lib/utils").InputProps<any>, {}, {}, JSX.PopSelect & import("./vue-component-lib/utils").InputProps<any> & {}, import("vue").PublicProps>;
30
+ export declare const PopSelectOption: import("vue").DefineSetupFnComponent<JSX.PopSelectOption & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopSelectOption & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
31
+ export declare const PopSwap: import("vue").DefineSetupFnComponent<JSX.PopSwap & import("./vue-component-lib/utils").InputProps<boolean>, {}, {}, JSX.PopSwap & import("./vue-component-lib/utils").InputProps<boolean> & {}, import("vue").PublicProps>;
32
+ export declare const PopTextarea: import("vue").DefineSetupFnComponent<JSX.PopTextarea & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopTextarea & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
33
+ export declare const PopToggle: import("vue").DefineSetupFnComponent<JSX.PopToggle & import("./vue-component-lib/utils").InputProps<boolean>, {}, {}, JSX.PopToggle & import("./vue-component-lib/utils").InputProps<boolean> & {}, import("vue").PublicProps>;
34
+ export declare const PopTooltip: import("vue").DefineSetupFnComponent<JSX.PopTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.PopTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
@@ -0,0 +1,16 @@
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>;
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@poppy-ui/vue",
3
+ "version": "0.1.0-beta-0.1",
4
+ "description": "Vue specific wrapper for @poppy-ui/core",
5
+ "author": "Sukaato <sukaato.dev@proton.me>",
6
+ "homepage": "https://github.com/CheeseGrinder/poppy-ui#readme",
7
+ "license": "MIT",
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/types/index.d.ts",
10
+ "files": [
11
+ "dist/"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/cheese-gronder/poppy-ui.git"
16
+ },
17
+ "keywords": [
18
+ "daisy-ui",
19
+ "framework",
20
+ "vue",
21
+ "stencil",
22
+ "mobile",
23
+ "app",
24
+ "webapp",
25
+ "electron",
26
+ "tauri",
27
+ "progressive web app",
28
+ "pwa"
29
+ ],
30
+ "bugs": {
31
+ "url": "https://github.com/CheeseGrinder/poppy-ui/issues"
32
+ },
33
+ "scripts": {
34
+ "audit-ci": "audit-ci --config ./audit-ci.json",
35
+ "prettier": "prettier --write src/",
36
+ "prettier:check": "prettier --check src/",
37
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
38
+ "clean": "rimraf dist",
39
+ "prebundle": "npm run clean",
40
+ "bundle": "rollup --config rollup.config.mjs",
41
+ "release": "release-it"
42
+ },
43
+ "dependencies": {
44
+ "@poppy-ui/core": "^0.1.0-beta-0.5"
45
+ },
46
+ "devDependencies": {
47
+ "@rollup/plugin-typescript": "^11.1.6",
48
+ "@vue/eslint-config-prettier": "^9.0.0",
49
+ "@vue/eslint-config-typescript": "^13.0.0",
50
+ "audit-ci": "^7.0.1",
51
+ "eslint": "^9.4.0",
52
+ "eslint-plugin-vue": "^9.26.0",
53
+ "prettier": "^3.3.2",
54
+ "rimraf": "^5.0.7",
55
+ "rollup": "^4.18.0",
56
+ "typescript": "~5.4.5",
57
+ "vite": "^5.2.13",
58
+ "vue": "^3.4.27"
59
+ },
60
+ "vetur": {
61
+ "tags": "dist/vetur/tags.json",
62
+ "attributes": "dist/vetur/attributes.json"
63
+ },
64
+ "web-types": "dist/web-types.json",
65
+ "sideEffects": [
66
+ "css/*.css"
67
+ ]
68
+ }
package/readme.md ADDED
@@ -0,0 +1,41 @@
1
+ # @poppy-ui/vue
2
+
3
+ Poppy-ui integration for Vue 3 apps.
4
+
5
+ ## Building
6
+
7
+ 1. Install dependencies in `@poppy-ui/core`:
8
+
9
+ ```shell
10
+ cd core && npm install
11
+ ```
12
+
13
+ 2. Build `@poppy-ui/core`. This will generate Vue component bindings in the `packages/vue` directory:
14
+
15
+ ```shell
16
+ npm run build
17
+ ````
18
+
19
+ 3. Install dependencies in `@poppy-ui/vue`:
20
+
21
+ ```shell
22
+ cd packages/vue && npm install
23
+ ```
24
+
25
+ 4. Build `@poppy-ui/vue`:
26
+
27
+ ```shell
28
+ npm run build
29
+ ````
30
+
31
+ 5. Install dependencies in `@poppy-ui/vue-router`:
32
+
33
+ ```shell
34
+ cd packages/vue-router && npm install
35
+ ```
36
+
37
+ 6. Build `@poppy-ui/vue-router`:
38
+
39
+ ```shell
40
+ npm run build
41
+ ````