@poppy-ui/vue 0.3.7 → 0.3.9
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 +262 -484
- package/dist/index.js.map +1 -1
- package/dist/types/proxies.d.ts +36 -36
- package/dist/types/vue-component-lib/utils.d.ts +16 -0
- package/dist/vetur/attributes.json +8 -3
- package/dist/vetur/tags.json +2 -1
- package/dist/web-types.json +40 -12
- package/package.json +9 -11
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, ref, getCurrentInstance, inject, h, withDirectives } from 'vue';
|
|
2
2
|
import { defineCustomElement } from '@poppy-ui/core/components/pop-accordion.js';
|
|
3
3
|
import { defineCustomElement as defineCustomElement$1 } from '@poppy-ui/core/components/pop-accordion-group.js';
|
|
4
4
|
import { defineCustomElement as defineCustomElement$2 } from '@poppy-ui/core/components/pop-avatar.js';
|
|
@@ -37,68 +37,221 @@ import { defineCustomElement as defineCustomElement$y } from '@poppy-ui/core/com
|
|
|
37
37
|
import { defineCustomElement as defineCustomElement$z } from '@poppy-ui/core/components/pop-tooltip.js';
|
|
38
38
|
import { initialize } from '@poppy-ui/core/components';
|
|
39
39
|
|
|
40
|
+
// @ts-nocheck
|
|
41
|
+
// It's easier and safer for Volar to disable typechecking and let the return type inference do its job.
|
|
42
|
+
const UPDATE_VALUE_EVENT = 'update:modelValue';
|
|
43
|
+
const MODEL_VALUE = 'modelValue';
|
|
44
|
+
const ROUTER_LINK_VALUE = 'routerLink';
|
|
45
|
+
const NAV_MANAGER = 'navManager';
|
|
46
|
+
const ROUTER_PROP_PREFIX = 'router';
|
|
47
|
+
const ARIA_PROP_PREFIX = 'aria';
|
|
48
|
+
/**
|
|
49
|
+
* Starting in Vue 3.1.0, all properties are
|
|
50
|
+
* added as keys to the props object, even if
|
|
51
|
+
* they are not being used. In order to correctly
|
|
52
|
+
* account for both value props and v-model props,
|
|
53
|
+
* we need to check if the key exists for Vue <3.1.0
|
|
54
|
+
* and then check if it is not undefined for Vue >= 3.1.0.
|
|
55
|
+
* See https://github.com/vuejs/vue-next/issues/3889
|
|
56
|
+
*/
|
|
57
|
+
const EMPTY_PROP = Symbol();
|
|
58
|
+
const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
|
|
59
|
+
const getComponentClasses = (classes) => {
|
|
60
|
+
return (classes === null || classes === void 0 ? void 0 : classes.split(' ')) || [];
|
|
61
|
+
};
|
|
62
|
+
const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
|
|
63
|
+
var _a;
|
|
64
|
+
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);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
68
|
+
*
|
|
69
|
+
* @prop name - The component tag name (i.e. `ion-button`)
|
|
70
|
+
* @prop componentProps - An array of properties on the
|
|
71
|
+
* component. These usually match up with the @Prop definitions
|
|
72
|
+
* in each component's TSX file.
|
|
73
|
+
* @prop customElement - An option custom element instance to pass
|
|
74
|
+
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
75
|
+
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
76
|
+
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
77
|
+
*/
|
|
78
|
+
const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent) => {
|
|
79
|
+
/**
|
|
80
|
+
* Create a Vue component wrapper around a Web Component.
|
|
81
|
+
* Note: The `props` here are not all properties on a component.
|
|
82
|
+
* They refer to whatever properties are set on an instance of a component.
|
|
83
|
+
*/
|
|
84
|
+
if (defineCustomElement !== undefined) {
|
|
85
|
+
defineCustomElement();
|
|
86
|
+
}
|
|
87
|
+
const Container = defineComponent((props, { attrs, slots, emit }) => {
|
|
88
|
+
var _a;
|
|
89
|
+
let modelPropValue = props[modelProp];
|
|
90
|
+
const containerRef = ref();
|
|
91
|
+
const classes = new Set(getComponentClasses(attrs.class));
|
|
92
|
+
/**
|
|
93
|
+
* This directive is responsible for updating any reactive
|
|
94
|
+
* reference associated with v-model on the component.
|
|
95
|
+
* This code must be run inside of the "created" callback.
|
|
96
|
+
* Since the following listener callbacks as well as any potential
|
|
97
|
+
* event callback defined in the developer's app are set on
|
|
98
|
+
* the same element, we need to make sure the following callbacks
|
|
99
|
+
* are set first so they fire first. If the developer's callback fires first
|
|
100
|
+
* then the reactive reference will not have been updated yet.
|
|
101
|
+
*/
|
|
102
|
+
const vModelDirective = {
|
|
103
|
+
created: (el) => {
|
|
104
|
+
const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
|
|
105
|
+
eventsNames.forEach((eventName) => {
|
|
106
|
+
el.addEventListener(eventName.toLowerCase(), (e) => {
|
|
107
|
+
/**
|
|
108
|
+
* Only update the v-model binding if the event's target is the element we are
|
|
109
|
+
* listening on. For example, Component A could emit ionChange, but it could also
|
|
110
|
+
* have a descendant Component B that also emits ionChange. We only want to update
|
|
111
|
+
* the v-model for Component A when ionChange originates from that element and not
|
|
112
|
+
* when ionChange bubbles up from Component B.
|
|
113
|
+
*/
|
|
114
|
+
if (e.target.tagName === el.tagName) {
|
|
115
|
+
modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
|
|
116
|
+
emit(UPDATE_VALUE_EVENT, modelPropValue);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
const currentInstance = getCurrentInstance();
|
|
123
|
+
const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
|
|
124
|
+
const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
|
|
125
|
+
const handleRouterLink = (ev) => {
|
|
126
|
+
const { routerLink } = props;
|
|
127
|
+
if (routerLink === EMPTY_PROP)
|
|
128
|
+
return;
|
|
129
|
+
if (navManager !== undefined) {
|
|
130
|
+
/**
|
|
131
|
+
* This prevents the browser from
|
|
132
|
+
* performing a page reload when pressing
|
|
133
|
+
* an Ionic component with routerLink.
|
|
134
|
+
* The page reload interferes with routing
|
|
135
|
+
* and causes ion-back-button to disappear
|
|
136
|
+
* since the local history is wiped on reload.
|
|
137
|
+
*/
|
|
138
|
+
ev.preventDefault();
|
|
139
|
+
let navigationPayload = { event: ev };
|
|
140
|
+
for (const key in props) {
|
|
141
|
+
const value = props[key];
|
|
142
|
+
if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
|
|
143
|
+
navigationPayload[key] = value;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
navManager.navigate(navigationPayload);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
return () => {
|
|
153
|
+
modelPropValue = props[modelProp];
|
|
154
|
+
getComponentClasses(attrs.class).forEach((value) => {
|
|
155
|
+
classes.add(value);
|
|
156
|
+
});
|
|
157
|
+
const oldClick = props.onClick;
|
|
158
|
+
const handleClick = (ev) => {
|
|
159
|
+
if (oldClick !== undefined) {
|
|
160
|
+
oldClick(ev);
|
|
161
|
+
}
|
|
162
|
+
if (!ev.defaultPrevented) {
|
|
163
|
+
handleRouterLink(ev);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
let propsToAdd = {
|
|
167
|
+
ref: containerRef,
|
|
168
|
+
class: getElementClasses(containerRef, classes),
|
|
169
|
+
onClick: handleClick,
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* We can use Object.entries here
|
|
173
|
+
* to avoid the hasOwnProperty check,
|
|
174
|
+
* but that would require 2 iterations
|
|
175
|
+
* where as this only requires 1.
|
|
176
|
+
*/
|
|
177
|
+
for (const key in props) {
|
|
178
|
+
const value = props[key];
|
|
179
|
+
if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
|
|
180
|
+
propsToAdd[key] = value;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (modelProp) {
|
|
184
|
+
/**
|
|
185
|
+
* If form value property was set using v-model
|
|
186
|
+
* then we should use that value.
|
|
187
|
+
* Otherwise, check to see if form value property
|
|
188
|
+
* was set as a static value (i.e. no v-model).
|
|
189
|
+
*/
|
|
190
|
+
if (props[MODEL_VALUE] !== EMPTY_PROP) {
|
|
191
|
+
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
|
|
192
|
+
}
|
|
193
|
+
else if (modelPropValue !== EMPTY_PROP) {
|
|
194
|
+
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
// If router link is defined, add href to props
|
|
198
|
+
// in order to properly render an anchor tag inside
|
|
199
|
+
// of components that should become activatable and
|
|
200
|
+
// focusable with router link.
|
|
201
|
+
if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) {
|
|
202
|
+
propsToAdd = Object.assign(Object.assign({}, propsToAdd), { href: props[ROUTER_LINK_VALUE] });
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* vModelDirective is only needed on components that support v-model.
|
|
206
|
+
* As a result, we conditionally call withDirectives with v-model components.
|
|
207
|
+
*/
|
|
208
|
+
const node = h(name, propsToAdd, slots.default && slots.default());
|
|
209
|
+
return modelProp === undefined ? node : withDirectives(node, [[vModelDirective]]);
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
if (typeof Container !== 'function') {
|
|
213
|
+
Container.name = name;
|
|
214
|
+
Container.props = {
|
|
215
|
+
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
|
|
216
|
+
};
|
|
217
|
+
componentProps.forEach((componentProp) => {
|
|
218
|
+
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
219
|
+
});
|
|
220
|
+
if (modelProp) {
|
|
221
|
+
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
|
|
222
|
+
Container.emits = [UPDATE_VALUE_EVENT];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return Container;
|
|
226
|
+
};
|
|
227
|
+
|
|
40
228
|
/* eslint-disable */
|
|
41
229
|
/* tslint:disable */
|
|
42
230
|
/* auto-generated vue proxies */
|
|
43
|
-
const PopAccordion =
|
|
231
|
+
const PopAccordion = /*@__PURE__*/ defineContainer('pop-accordion', defineCustomElement, [
|
|
44
232
|
'readonly',
|
|
45
233
|
'disabled',
|
|
46
234
|
'name',
|
|
47
235
|
'open'
|
|
48
|
-
])
|
|
49
|
-
|
|
50
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
51
|
-
props: {
|
|
52
|
-
'readonly': [Boolean, "readonly"],
|
|
53
|
-
'disabled': [Boolean, "disabled"],
|
|
54
|
-
'name': [String, "name"],
|
|
55
|
-
'open': [Boolean, "open"]
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
const PopAccordionGroup = globalThis.window ? defineContainer('pop-accordion-group', defineCustomElement$1, [
|
|
236
|
+
]);
|
|
237
|
+
const PopAccordionGroup = /*@__PURE__*/ defineContainer('pop-accordion-group', defineCustomElement$1, [
|
|
59
238
|
'readonly',
|
|
60
239
|
'disabled',
|
|
61
240
|
'multiple',
|
|
62
241
|
'active',
|
|
63
242
|
'popChange',
|
|
64
243
|
'popActiveChange'
|
|
65
|
-
], 'active', 'pop-change')
|
|
66
|
-
|
|
67
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
68
|
-
props: {
|
|
69
|
-
'readonly': [Boolean, "readonly"],
|
|
70
|
-
'disabled': [Boolean, "disabled"],
|
|
71
|
-
'multiple': [Boolean, "multiple"],
|
|
72
|
-
'active': [String, "active"],
|
|
73
|
-
'onPopChange': [Function],
|
|
74
|
-
'onPopActiveChange': [Function]
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
const PopAvatar = globalThis.window ? defineContainer('pop-avatar', defineCustomElement$2, [
|
|
244
|
+
], 'active', 'pop-change');
|
|
245
|
+
const PopAvatar = /*@__PURE__*/ defineContainer('pop-avatar', defineCustomElement$2, [
|
|
78
246
|
'placeholder'
|
|
79
|
-
])
|
|
80
|
-
|
|
81
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
82
|
-
props: {
|
|
83
|
-
'placeholder': [Boolean, "placeholder"]
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
const PopBadge = globalThis.window ? defineContainer('pop-badge', defineCustomElement$3, [
|
|
247
|
+
]);
|
|
248
|
+
const PopBadge = /*@__PURE__*/ defineContainer('pop-badge', defineCustomElement$3, [
|
|
87
249
|
'color',
|
|
88
250
|
'size',
|
|
89
251
|
'outlined',
|
|
90
252
|
'as'
|
|
91
|
-
])
|
|
92
|
-
|
|
93
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
94
|
-
props: {
|
|
95
|
-
'color': [String, "color"],
|
|
96
|
-
'size': [String, "size"],
|
|
97
|
-
'outlined': [Boolean, "outlined"],
|
|
98
|
-
'as': [String, "as"]
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
const PopButton = globalThis.window ? defineContainer('pop-button', defineCustomElement$4, [
|
|
253
|
+
]);
|
|
254
|
+
const PopButton = /*@__PURE__*/ defineContainer('pop-button', defineCustomElement$4, [
|
|
102
255
|
'type',
|
|
103
256
|
'form',
|
|
104
257
|
'disabled',
|
|
@@ -110,48 +263,14 @@ const PopButton = globalThis.window ? defineContainer('pop-button', defineCusto
|
|
|
110
263
|
'active',
|
|
111
264
|
'popFocus',
|
|
112
265
|
'popBlur'
|
|
113
|
-
])
|
|
114
|
-
|
|
115
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
116
|
-
props: {
|
|
117
|
-
'type': [String, "type"],
|
|
118
|
-
'form': [String, "form"],
|
|
119
|
-
'disabled': [Boolean, "disabled"],
|
|
120
|
-
'color': [String, "color"],
|
|
121
|
-
'size': [String, "size"],
|
|
122
|
-
'outlined': [Boolean, "outlined"],
|
|
123
|
-
'shape': [String, "shape"],
|
|
124
|
-
'expand': [String, "expand"],
|
|
125
|
-
'active': [Boolean, "active"],
|
|
126
|
-
'onPopFocus': [Function],
|
|
127
|
-
'onPopBlur': [Function]
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
const PopCard = globalThis.window ? defineContainer('pop-card', defineCustomElement$5, [
|
|
266
|
+
]);
|
|
267
|
+
const PopCard = /*@__PURE__*/ defineContainer('pop-card', defineCustomElement$5, [
|
|
131
268
|
'compact'
|
|
132
|
-
])
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
const PopCardActions = globalThis.window ? defineContainer('pop-card-actions', defineCustomElement$6) : defineStencilSSRComponent({
|
|
140
|
-
tagName: 'pop-card-actions',
|
|
141
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
142
|
-
props: {}
|
|
143
|
-
});
|
|
144
|
-
const PopCardBody = globalThis.window ? defineContainer('pop-card-body', defineCustomElement$7) : defineStencilSSRComponent({
|
|
145
|
-
tagName: 'pop-card-body',
|
|
146
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
147
|
-
props: {}
|
|
148
|
-
});
|
|
149
|
-
const PopCardTitle = globalThis.window ? defineContainer('pop-card-title', defineCustomElement$8) : defineStencilSSRComponent({
|
|
150
|
-
tagName: 'pop-card-title',
|
|
151
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
152
|
-
props: {}
|
|
153
|
-
});
|
|
154
|
-
const PopCheckbox = globalThis.window ? defineContainer('pop-checkbox', defineCustomElement$9, [
|
|
269
|
+
]);
|
|
270
|
+
const PopCardActions = /*@__PURE__*/ defineContainer('pop-card-actions', defineCustomElement$6);
|
|
271
|
+
const PopCardBody = /*@__PURE__*/ defineContainer('pop-card-body', defineCustomElement$7);
|
|
272
|
+
const PopCardTitle = /*@__PURE__*/ defineContainer('pop-card-title', defineCustomElement$8);
|
|
273
|
+
const PopCheckbox = /*@__PURE__*/ defineContainer('pop-checkbox', defineCustomElement$9, [
|
|
155
274
|
'name',
|
|
156
275
|
'value',
|
|
157
276
|
'required',
|
|
@@ -165,109 +284,42 @@ const PopCheckbox = globalThis.window ? defineContainer('pop-checkbox', defineC
|
|
|
165
284
|
'popChange',
|
|
166
285
|
'popFocus',
|
|
167
286
|
'popBlur'
|
|
168
|
-
], 'checked', 'pop-change')
|
|
169
|
-
|
|
170
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
171
|
-
props: {
|
|
172
|
-
'name': [String, "name"],
|
|
173
|
-
'value': [String, "value"],
|
|
174
|
-
'required': [Boolean, "required"],
|
|
175
|
-
'readonly': [Boolean, "readonly"],
|
|
176
|
-
'checked': [Boolean, "checked"],
|
|
177
|
-
'indeterminate': [Boolean, "indeterminate"],
|
|
178
|
-
'disabled': [Boolean, "disabled"],
|
|
179
|
-
'color': [String, "color"],
|
|
180
|
-
'size': [String, "size"],
|
|
181
|
-
'placement': [String, "placement"],
|
|
182
|
-
'onPopChange': [Function],
|
|
183
|
-
'onPopFocus': [Function],
|
|
184
|
-
'onPopBlur': [Function]
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
const PopDivider = globalThis.window ? defineContainer('pop-divider', defineCustomElement$a, [
|
|
287
|
+
], 'checked', 'pop-change');
|
|
288
|
+
const PopDivider = /*@__PURE__*/ defineContainer('pop-divider', defineCustomElement$a, [
|
|
188
289
|
'orientation',
|
|
189
290
|
'placement',
|
|
190
291
|
'color'
|
|
191
|
-
])
|
|
192
|
-
|
|
193
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
194
|
-
props: {
|
|
195
|
-
'orientation': [String, "orientation"],
|
|
196
|
-
'placement': [String, "placement"],
|
|
197
|
-
'color': [String, "color"]
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
const PopDrawer = globalThis.window ? defineContainer('pop-drawer', defineCustomElement$b, [
|
|
292
|
+
]);
|
|
293
|
+
const PopDrawer = /*@__PURE__*/ defineContainer('pop-drawer', defineCustomElement$b, [
|
|
201
294
|
'trigger',
|
|
202
295
|
'triggerAction',
|
|
203
296
|
'side',
|
|
204
297
|
'open',
|
|
205
298
|
'popDidPresent',
|
|
206
299
|
'popDidDismiss'
|
|
207
|
-
])
|
|
208
|
-
|
|
209
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
210
|
-
props: {
|
|
211
|
-
'trigger': [String, "trigger"],
|
|
212
|
-
'triggerAction': [String, "trigger-action"],
|
|
213
|
-
'side': [String, "side"],
|
|
214
|
-
'open': [Boolean, "open"],
|
|
215
|
-
'onPopDidPresent': [Function],
|
|
216
|
-
'onPopDidDismiss': [Function]
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
const PopDropdown = globalThis.window ? defineContainer('pop-dropdown', defineCustomElement$c, [
|
|
300
|
+
]);
|
|
301
|
+
const PopDropdown = /*@__PURE__*/ defineContainer('pop-dropdown', defineCustomElement$c, [
|
|
220
302
|
'side',
|
|
221
303
|
'align',
|
|
222
304
|
'open',
|
|
223
305
|
'triggerAction',
|
|
224
306
|
'debounce',
|
|
225
307
|
'showBackdrop',
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
])
|
|
229
|
-
|
|
230
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
231
|
-
props: {
|
|
232
|
-
'side': [String, "side"],
|
|
233
|
-
'align': [String, "align"],
|
|
234
|
-
'open': [Boolean, "open"],
|
|
235
|
-
'triggerAction': [String, "trigger-action"],
|
|
236
|
-
'debounce': [Number, "debounce"],
|
|
237
|
-
'showBackdrop': [Boolean, "show-backdrop"],
|
|
238
|
-
'onDidPresent': [Function],
|
|
239
|
-
'onDidDismiss': [Function]
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
const PopImg = globalThis.window ? defineContainer('pop-img', defineCustomElement$d, [
|
|
308
|
+
'present',
|
|
309
|
+
'dismiss'
|
|
310
|
+
]);
|
|
311
|
+
const PopImg = /*@__PURE__*/ defineContainer('pop-img', defineCustomElement$d, [
|
|
243
312
|
'src',
|
|
244
313
|
'alt',
|
|
245
314
|
'popWillLoad',
|
|
246
315
|
'popDidLoad',
|
|
247
316
|
'popError'
|
|
248
|
-
])
|
|
249
|
-
|
|
250
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
251
|
-
props: {
|
|
252
|
-
'src': [String, "src"],
|
|
253
|
-
'alt': [String, "alt"],
|
|
254
|
-
'onPopWillLoad': [Function],
|
|
255
|
-
'onPopDidLoad': [Function],
|
|
256
|
-
'onPopError': [Function]
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
const PopIndicator = globalThis.window ? defineContainer('pop-indicator', defineCustomElement$e, [
|
|
317
|
+
]);
|
|
318
|
+
const PopIndicator = /*@__PURE__*/ defineContainer('pop-indicator', defineCustomElement$e, [
|
|
260
319
|
'side',
|
|
261
320
|
'position'
|
|
262
|
-
])
|
|
263
|
-
|
|
264
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
265
|
-
props: {
|
|
266
|
-
'side': [String, "side"],
|
|
267
|
-
'position': [String, "position"]
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
const PopInput = globalThis.window ? defineContainer('pop-input', defineCustomElement$f, [
|
|
321
|
+
]);
|
|
322
|
+
const PopInput = /*@__PURE__*/ defineContainer('pop-input', defineCustomElement$f, [
|
|
271
323
|
'name',
|
|
272
324
|
'type',
|
|
273
325
|
'placeholder',
|
|
@@ -300,42 +352,8 @@ const PopInput = globalThis.window ? defineContainer('pop-input', defineCustomE
|
|
|
300
352
|
'popInput',
|
|
301
353
|
'popFocus',
|
|
302
354
|
'popBlur'
|
|
303
|
-
], 'value', 'pop-input')
|
|
304
|
-
|
|
305
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
306
|
-
props: {
|
|
307
|
-
'name': [String, "name"],
|
|
308
|
-
'type': [String, "type"],
|
|
309
|
-
'placeholder': [String, "placeholder"],
|
|
310
|
-
'min': [Number, "min"],
|
|
311
|
-
'step': [String, "step"],
|
|
312
|
-
'minLength': [Number, "min-length"],
|
|
313
|
-
'maxLength': [Number, "max-length"],
|
|
314
|
-
'multiple': [Boolean, "multiple"],
|
|
315
|
-
'pattern': [String, "pattern"],
|
|
316
|
-
'required': [Boolean, "required"],
|
|
317
|
-
'readonly': [Boolean, "readonly"],
|
|
318
|
-
'disabled': [Boolean, "disabled"],
|
|
319
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
320
|
-
'keyboard': [String, "keyboard"],
|
|
321
|
-
'enterkeyhint': [String, "enterkeyhint"],
|
|
322
|
-
'spellcheck': [Boolean, "spellcheck"],
|
|
323
|
-
'autoComplete': [String, "auto-complete"],
|
|
324
|
-
'autoCapitalize': [String, "auto-capitalize"],
|
|
325
|
-
'bordered': [Boolean, "bordered"],
|
|
326
|
-
'color': [String, "color"],
|
|
327
|
-
'size': [String, "size"],
|
|
328
|
-
'helperText': [String, "helper-text"],
|
|
329
|
-
'errorText': [String, "error-text"],
|
|
330
|
-
'counter': [Boolean, "counter"],
|
|
331
|
-
'debounce': [Number, "debounce"],
|
|
332
|
-
'onPopChange': [Function],
|
|
333
|
-
'onPopInput': [Function],
|
|
334
|
-
'onPopFocus': [Function],
|
|
335
|
-
'onPopBlur': [Function]
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
const PopInputFile = globalThis.window ? defineContainer('pop-input-file', defineCustomElement$g, [
|
|
355
|
+
], 'value', 'pop-input');
|
|
356
|
+
const PopInputFile = /*@__PURE__*/ defineContainer('pop-input-file', defineCustomElement$g, [
|
|
339
357
|
'name',
|
|
340
358
|
'value',
|
|
341
359
|
'multiple',
|
|
@@ -351,85 +369,28 @@ const PopInputFile = globalThis.window ? defineContainer('pop-input-file', defi
|
|
|
351
369
|
'popChange',
|
|
352
370
|
'popFocus',
|
|
353
371
|
'popBlur'
|
|
354
|
-
])
|
|
355
|
-
|
|
356
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
357
|
-
props: {
|
|
358
|
-
'name': [String, "name"],
|
|
359
|
-
'multiple': [Boolean, "multiple"],
|
|
360
|
-
'required': [Boolean, "required"],
|
|
361
|
-
'readonly': [Boolean, "readonly"],
|
|
362
|
-
'disabled': [Boolean, "disabled"],
|
|
363
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
364
|
-
'bordered': [Boolean, "bordered"],
|
|
365
|
-
'color': [String, "color"],
|
|
366
|
-
'size': [String, "size"],
|
|
367
|
-
'helperText': [String, "helper-text"],
|
|
368
|
-
'errorText': [String, "error-text"],
|
|
369
|
-
'onPopChange': [Function],
|
|
370
|
-
'onPopFocus': [Function],
|
|
371
|
-
'onPopBlur': [Function]
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
const PopItem = globalThis.window ? defineContainer('pop-item', defineCustomElement$h, [
|
|
372
|
+
]);
|
|
373
|
+
const PopItem = /*@__PURE__*/ defineContainer('pop-item', defineCustomElement$h, [
|
|
375
374
|
'disabled'
|
|
376
|
-
])
|
|
377
|
-
|
|
378
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
379
|
-
props: {
|
|
380
|
-
'disabled': [Boolean, "disabled"]
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
const PopJoin = globalThis.window ? defineContainer('pop-join', defineCustomElement$i, [
|
|
375
|
+
]);
|
|
376
|
+
const PopJoin = /*@__PURE__*/ defineContainer('pop-join', defineCustomElement$i, [
|
|
384
377
|
'orientation'
|
|
385
|
-
])
|
|
386
|
-
|
|
387
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
388
|
-
props: {
|
|
389
|
-
'orientation': [String, "orientation"]
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
const PopKbd = globalThis.window ? defineContainer('pop-kbd', defineCustomElement$j, [
|
|
378
|
+
]);
|
|
379
|
+
const PopKbd = /*@__PURE__*/ defineContainer('pop-kbd', defineCustomElement$j, [
|
|
393
380
|
'size'
|
|
394
|
-
])
|
|
395
|
-
|
|
396
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
397
|
-
props: {
|
|
398
|
-
'size': [String, "size"]
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
const PopList = globalThis.window ? defineContainer('pop-list', defineCustomElement$k, [
|
|
381
|
+
]);
|
|
382
|
+
const PopList = /*@__PURE__*/ defineContainer('pop-list', defineCustomElement$k, [
|
|
402
383
|
'size',
|
|
403
384
|
'orientation'
|
|
404
|
-
])
|
|
405
|
-
|
|
406
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
407
|
-
props: {
|
|
408
|
-
'size': [String, "size"],
|
|
409
|
-
'orientation': [String, "orientation"]
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
const PopLoading = globalThis.window ? defineContainer('pop-loading', defineCustomElement$l, [
|
|
385
|
+
]);
|
|
386
|
+
const PopLoading = /*@__PURE__*/ defineContainer('pop-loading', defineCustomElement$l, [
|
|
413
387
|
'type',
|
|
414
388
|
'size'
|
|
415
|
-
])
|
|
416
|
-
|
|
417
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
418
|
-
props: {
|
|
419
|
-
'type': [String, "type"],
|
|
420
|
-
'size': [String, "size"]
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
const PopMask = globalThis.window ? defineContainer('pop-mask', defineCustomElement$m, [
|
|
389
|
+
]);
|
|
390
|
+
const PopMask = /*@__PURE__*/ defineContainer('pop-mask', defineCustomElement$m, [
|
|
424
391
|
'type'
|
|
425
|
-
])
|
|
426
|
-
|
|
427
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
428
|
-
props: {
|
|
429
|
-
'type': [String, "type"]
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
const PopModal = globalThis.window ? defineContainer('pop-modal', defineCustomElement$n, [
|
|
392
|
+
]);
|
|
393
|
+
const PopModal = /*@__PURE__*/ defineContainer('pop-modal', defineCustomElement$n, [
|
|
433
394
|
'trigger',
|
|
434
395
|
'component',
|
|
435
396
|
'componentProps',
|
|
@@ -438,25 +399,9 @@ const PopModal = globalThis.window ? defineContainer('pop-modal', defineCustomE
|
|
|
438
399
|
'open',
|
|
439
400
|
'present',
|
|
440
401
|
'dismiss'
|
|
441
|
-
])
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
props: {
|
|
445
|
-
'trigger': [String, "trigger"],
|
|
446
|
-
'component': [String, "component"],
|
|
447
|
-
'showBackdrop': [Boolean, "show-backdrop"],
|
|
448
|
-
'backdropDismiss': [Boolean, "backdrop-dismiss"],
|
|
449
|
-
'open': [Boolean, "open"],
|
|
450
|
-
'onPresent': [Function],
|
|
451
|
-
'onDismiss': [Function]
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
const PopNavbar = globalThis.window ? defineContainer('pop-navbar', defineCustomElement$o) : defineStencilSSRComponent({
|
|
455
|
-
tagName: 'pop-navbar',
|
|
456
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
457
|
-
props: {}
|
|
458
|
-
});
|
|
459
|
-
const PopPopover = globalThis.window ? defineContainer('pop-popover', defineCustomElement$p, [
|
|
402
|
+
]);
|
|
403
|
+
const PopNavbar = /*@__PURE__*/ defineContainer('pop-navbar', defineCustomElement$o);
|
|
404
|
+
const PopPopover = /*@__PURE__*/ defineContainer('pop-popover', defineCustomElement$p, [
|
|
460
405
|
'open',
|
|
461
406
|
'animated',
|
|
462
407
|
'showBackdrop',
|
|
@@ -470,36 +415,13 @@ const PopPopover = globalThis.window ? defineContainer('pop-popover', defineCus
|
|
|
470
415
|
'didPresent',
|
|
471
416
|
'willDismiss',
|
|
472
417
|
'didDismiss'
|
|
473
|
-
])
|
|
474
|
-
|
|
475
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
476
|
-
props: {
|
|
477
|
-
'open': [Boolean, "open"],
|
|
478
|
-
'showBackdrop': [Boolean, "show-backdrop"],
|
|
479
|
-
'backdropDismiss': [Boolean, "backdrop-dismiss"],
|
|
480
|
-
'trigger': [String, "trigger"],
|
|
481
|
-
'triggerAction': [String, "trigger-action"],
|
|
482
|
-
'component': [String, "component"],
|
|
483
|
-
'onWillPresent': [Function],
|
|
484
|
-
'onDidPresent': [Function],
|
|
485
|
-
'onWillDismiss': [Function],
|
|
486
|
-
'onDidDismiss': [Function]
|
|
487
|
-
}
|
|
488
|
-
});
|
|
489
|
-
const PopProgress = globalThis.window ? defineContainer('pop-progress', defineCustomElement$q, [
|
|
418
|
+
]);
|
|
419
|
+
const PopProgress = /*@__PURE__*/ defineContainer('pop-progress', defineCustomElement$q, [
|
|
490
420
|
'value',
|
|
491
421
|
'max',
|
|
492
422
|
'color'
|
|
493
|
-
])
|
|
494
|
-
|
|
495
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
496
|
-
props: {
|
|
497
|
-
'value': [Number, "value"],
|
|
498
|
-
'max': [Number, "max"],
|
|
499
|
-
'color': [String, "color"]
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
const PopRadio = globalThis.window ? defineContainer('pop-radio', defineCustomElement$r, [
|
|
423
|
+
]);
|
|
424
|
+
const PopRadio = /*@__PURE__*/ defineContainer('pop-radio', defineCustomElement$r, [
|
|
503
425
|
'name',
|
|
504
426
|
'value',
|
|
505
427
|
'checked',
|
|
@@ -510,22 +432,8 @@ const PopRadio = globalThis.window ? defineContainer('pop-radio', defineCustomE
|
|
|
510
432
|
'size',
|
|
511
433
|
'popFocus',
|
|
512
434
|
'popBlur'
|
|
513
|
-
], 'value', 'pop-change')
|
|
514
|
-
|
|
515
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
516
|
-
props: {
|
|
517
|
-
'name': [String, "name"],
|
|
518
|
-
'checked': [Boolean, "checked"],
|
|
519
|
-
'required': [Boolean, "required"],
|
|
520
|
-
'disabled': [Boolean, "disabled"],
|
|
521
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
522
|
-
'color': [String, "color"],
|
|
523
|
-
'size': [String, "size"],
|
|
524
|
-
'onPopFocus': [Function],
|
|
525
|
-
'onPopBlur': [Function]
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
const PopRadioGroup = globalThis.window ? defineContainer('pop-radio-group', defineCustomElement$s, [
|
|
435
|
+
], 'value', 'pop-change');
|
|
436
|
+
const PopRadioGroup = /*@__PURE__*/ defineContainer('pop-radio-group', defineCustomElement$s, [
|
|
529
437
|
'name',
|
|
530
438
|
'value',
|
|
531
439
|
'required',
|
|
@@ -536,22 +444,8 @@ const PopRadioGroup = globalThis.window ? defineContainer('pop-radio-group', de
|
|
|
536
444
|
'size',
|
|
537
445
|
'popChange',
|
|
538
446
|
'popValueChange'
|
|
539
|
-
], 'value', 'pop-change')
|
|
540
|
-
|
|
541
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
542
|
-
props: {
|
|
543
|
-
'name': [String, "name"],
|
|
544
|
-
'required': [Boolean, "required"],
|
|
545
|
-
'disabled': [Boolean, "disabled"],
|
|
546
|
-
'allowEmpty': [Boolean, "allow-empty"],
|
|
547
|
-
'compare': [String, "compare"],
|
|
548
|
-
'color': [String, "color"],
|
|
549
|
-
'size': [String, "size"],
|
|
550
|
-
'onPopChange': [Function],
|
|
551
|
-
'onPopValueChange': [Function]
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
const PopRange = globalThis.window ? defineContainer('pop-range', defineCustomElement$t, [
|
|
447
|
+
], 'value', 'pop-change');
|
|
448
|
+
const PopRange = /*@__PURE__*/ defineContainer('pop-range', defineCustomElement$t, [
|
|
555
449
|
'name',
|
|
556
450
|
'value',
|
|
557
451
|
'min',
|
|
@@ -566,27 +460,8 @@ const PopRange = globalThis.window ? defineContainer('pop-range', defineCustomE
|
|
|
566
460
|
'popChange',
|
|
567
461
|
'popFocus',
|
|
568
462
|
'popBlur'
|
|
569
|
-
], 'value', 'pop-change')
|
|
570
|
-
|
|
571
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
572
|
-
props: {
|
|
573
|
-
'name': [String, "name"],
|
|
574
|
-
'value': [Number, "value"],
|
|
575
|
-
'min': [Number, "min"],
|
|
576
|
-
'max': [Number, "max"],
|
|
577
|
-
'step': [Number, "step"],
|
|
578
|
-
'required': [Boolean, "required"],
|
|
579
|
-
'disabled': [Boolean, "disabled"],
|
|
580
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
581
|
-
'color': [String, "color"],
|
|
582
|
-
'size': [String, "size"],
|
|
583
|
-
'debounce': [Number, "debounce"],
|
|
584
|
-
'onPopChange': [Function],
|
|
585
|
-
'onPopFocus': [Function],
|
|
586
|
-
'onPopBlur': [Function]
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
const PopSelect = globalThis.window ? defineContainer('pop-select', defineCustomElement$u, [
|
|
463
|
+
], 'value', 'pop-change');
|
|
464
|
+
const PopSelect = /*@__PURE__*/ defineContainer('pop-select', defineCustomElement$u, [
|
|
590
465
|
'name',
|
|
591
466
|
'placeholder',
|
|
592
467
|
'value',
|
|
@@ -594,6 +469,7 @@ const PopSelect = globalThis.window ? defineContainer('pop-select', defineCusto
|
|
|
594
469
|
'min',
|
|
595
470
|
'max',
|
|
596
471
|
'required',
|
|
472
|
+
'readonly',
|
|
597
473
|
'disabled',
|
|
598
474
|
'autoFocus',
|
|
599
475
|
'bordered',
|
|
@@ -604,64 +480,24 @@ const PopSelect = globalThis.window ? defineContainer('pop-select', defineCusto
|
|
|
604
480
|
'notEnoughErrorText',
|
|
605
481
|
'tooManyErrorText',
|
|
606
482
|
'compare',
|
|
607
|
-
'
|
|
483
|
+
'present',
|
|
484
|
+
'dismiss',
|
|
608
485
|
'popChange',
|
|
609
486
|
'popFocus',
|
|
610
487
|
'popBlur'
|
|
611
|
-
], 'value', 'pop-change')
|
|
612
|
-
|
|
613
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
614
|
-
props: {
|
|
615
|
-
'name': [String, "name"],
|
|
616
|
-
'placeholder': [String, "placeholder"],
|
|
617
|
-
'multiple': [Boolean, "multiple"],
|
|
618
|
-
'min': [Number, "min"],
|
|
619
|
-
'max': [Number, "max"],
|
|
620
|
-
'required': [Boolean, "required"],
|
|
621
|
-
'disabled': [Boolean, "disabled"],
|
|
622
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
623
|
-
'bordered': [Boolean, "bordered"],
|
|
624
|
-
'color': [String, "color"],
|
|
625
|
-
'size': [String, "size"],
|
|
626
|
-
'selectedText': [String, "selected-text"],
|
|
627
|
-
'helperText': [String, "helper-text"],
|
|
628
|
-
'notEnoughErrorText': [String, "not-enough-error-text"],
|
|
629
|
-
'tooManyErrorText': [String, "too-many-error-text"],
|
|
630
|
-
'compare': [String, "compare"],
|
|
631
|
-
'onPopDismiss': [Function],
|
|
632
|
-
'onPopChange': [Function],
|
|
633
|
-
'onPopFocus': [Function],
|
|
634
|
-
'onPopBlur': [Function]
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
const PopSelectOption = globalThis.window ? defineContainer('pop-select-option', defineCustomElement$v, [
|
|
488
|
+
], 'value', 'pop-change');
|
|
489
|
+
const PopSelectOption = /*@__PURE__*/ defineContainer('pop-select-option', defineCustomElement$v, [
|
|
638
490
|
'value',
|
|
639
491
|
'disabled',
|
|
640
492
|
'color',
|
|
641
493
|
'size'
|
|
642
|
-
])
|
|
643
|
-
|
|
644
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
645
|
-
props: {
|
|
646
|
-
'disabled': [Boolean, "disabled"],
|
|
647
|
-
'color': [String, "color"],
|
|
648
|
-
'size': [String, "size"]
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
const PopSwap = globalThis.window ? defineContainer('pop-swap', defineCustomElement$w, [
|
|
494
|
+
]);
|
|
495
|
+
const PopSwap = /*@__PURE__*/ defineContainer('pop-swap', defineCustomElement$w, [
|
|
652
496
|
'type',
|
|
653
497
|
'active',
|
|
654
498
|
'popSwap'
|
|
655
|
-
], 'active', 'pop-change')
|
|
656
|
-
|
|
657
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
658
|
-
props: {
|
|
659
|
-
'type': [String, "type"],
|
|
660
|
-
'active': [Boolean, "active"],
|
|
661
|
-
'onPopSwap': [Function]
|
|
662
|
-
}
|
|
663
|
-
});
|
|
664
|
-
const PopTextarea = globalThis.window ? defineContainer('pop-textarea', defineCustomElement$x, [
|
|
499
|
+
], 'active', 'pop-change');
|
|
500
|
+
const PopTextarea = /*@__PURE__*/ defineContainer('pop-textarea', defineCustomElement$x, [
|
|
665
501
|
'name',
|
|
666
502
|
'placeholder',
|
|
667
503
|
'value',
|
|
@@ -690,40 +526,8 @@ const PopTextarea = globalThis.window ? defineContainer('pop-textarea', defineC
|
|
|
690
526
|
'popInput',
|
|
691
527
|
'popFocus',
|
|
692
528
|
'popBlur'
|
|
693
|
-
], 'value', 'pop-input')
|
|
694
|
-
|
|
695
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
696
|
-
props: {
|
|
697
|
-
'name': [String, "name"],
|
|
698
|
-
'placeholder': [String, "placeholder"],
|
|
699
|
-
'value': [String, "value"],
|
|
700
|
-
'minLength': [Number, "min-length"],
|
|
701
|
-
'maxLength': [Number, "max-length"],
|
|
702
|
-
'cols': [Number, "cols"],
|
|
703
|
-
'rows': [Number, "rows"],
|
|
704
|
-
'required': [Boolean, "required"],
|
|
705
|
-
'readonly': [Boolean, "readonly"],
|
|
706
|
-
'disabled': [Boolean, "disabled"],
|
|
707
|
-
'autoFocus': [Boolean, "auto-focus"],
|
|
708
|
-
'keyboard': [String, "keyboard"],
|
|
709
|
-
'enterkeyhint': [String, "enterkeyhint"],
|
|
710
|
-
'spellcheck': [Boolean, "spellcheck"],
|
|
711
|
-
'autoCapitalize': [String, "auto-capitalize"],
|
|
712
|
-
'wrap': [String, "wrap"],
|
|
713
|
-
'bordered': [Boolean, "bordered"],
|
|
714
|
-
'color': [String, "color"],
|
|
715
|
-
'size': [String, "size"],
|
|
716
|
-
'helperText': [String, "helper-text"],
|
|
717
|
-
'errorText': [String, "error-text"],
|
|
718
|
-
'counter': [Boolean, "counter"],
|
|
719
|
-
'debounce': [Number, "debounce"],
|
|
720
|
-
'onPopChange': [Function],
|
|
721
|
-
'onPopInput': [Function],
|
|
722
|
-
'onPopFocus': [Function],
|
|
723
|
-
'onPopBlur': [Function]
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
const PopToggle = globalThis.window ? defineContainer('pop-toggle', defineCustomElement$y, [
|
|
529
|
+
], 'value', 'pop-input');
|
|
530
|
+
const PopToggle = /*@__PURE__*/ defineContainer('pop-toggle', defineCustomElement$y, [
|
|
727
531
|
'name',
|
|
728
532
|
'value',
|
|
729
533
|
'required',
|
|
@@ -736,39 +540,13 @@ const PopToggle = globalThis.window ? defineContainer('pop-toggle', defineCusto
|
|
|
736
540
|
'popChange',
|
|
737
541
|
'popFocus',
|
|
738
542
|
'popBlur'
|
|
739
|
-
], 'checked', 'pop-change')
|
|
740
|
-
|
|
741
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
742
|
-
props: {
|
|
743
|
-
'name': [String, "name"],
|
|
744
|
-
'value': [String, "value"],
|
|
745
|
-
'required': [Boolean, "required"],
|
|
746
|
-
'readonly': [Boolean, "readonly"],
|
|
747
|
-
'checked': [Boolean, "checked"],
|
|
748
|
-
'indeterminate': [Boolean, "indeterminate"],
|
|
749
|
-
'disabled': [Boolean, "disabled"],
|
|
750
|
-
'color': [String, "color"],
|
|
751
|
-
'size': [String, "size"],
|
|
752
|
-
'onPopChange': [Function],
|
|
753
|
-
'onPopFocus': [Function],
|
|
754
|
-
'onPopBlur': [Function]
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
const PopTooltip = globalThis.window ? defineContainer('pop-tooltip', defineCustomElement$z, [
|
|
543
|
+
], 'checked', 'pop-change');
|
|
544
|
+
const PopTooltip = /*@__PURE__*/ defineContainer('pop-tooltip', defineCustomElement$z, [
|
|
758
545
|
'value',
|
|
759
546
|
'color',
|
|
760
547
|
'position',
|
|
761
548
|
'open'
|
|
762
|
-
])
|
|
763
|
-
tagName: 'pop-tooltip',
|
|
764
|
-
hydrateModule: import('@poppy-ui/core/hydrate'),
|
|
765
|
-
props: {
|
|
766
|
-
'value': [String, "value"],
|
|
767
|
-
'color': [String, "color"],
|
|
768
|
-
'position': [String, "position"],
|
|
769
|
-
'open': [Boolean, "open"]
|
|
770
|
-
}
|
|
771
|
-
});
|
|
549
|
+
]);
|
|
772
550
|
|
|
773
551
|
const toKebabCase = (eventName) => {
|
|
774
552
|
return eventName.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
|