vunor 0.3.1 → 0.4.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 +8 -1
- package/dist/AppLayout.mjs +17 -68
- package/dist/AppToasts.d.mts +3 -0
- package/dist/AppToasts.mjs +59 -76
- package/dist/Button.d.mts +26 -10
- package/dist/Button.mjs +95 -60
- package/dist/ButtonBase.mjs +26 -40
- package/dist/Calendar.d.mts +14 -2
- package/dist/Calendar.mjs +37 -85
- package/dist/Card.mjs +6 -25
- package/dist/CardHeader.mjs +3 -12
- package/dist/Checkbox.d.mts +7 -2
- package/dist/Checkbox.mjs +37 -45
- package/dist/Combobox.d.mts +24 -8
- package/dist/Combobox.mjs +274 -350
- package/dist/DatePicker.d.mts +18 -4
- package/dist/DatePicker.mjs +93 -216
- package/dist/DatePickerBase.d.mts +21 -8
- package/dist/DatePickerBase.mjs +108 -257
- package/dist/DatePickerPopup.d.mts +27 -2
- package/dist/DatePickerPopup.mjs +62 -13
- package/dist/DelayedSwitch.mjs +3 -14
- package/dist/DevTools.mjs +377 -388
- package/dist/Dialog.d.mts +8 -3
- package/dist/Dialog.mjs +77 -107
- package/dist/Icon.mjs +1 -4
- package/dist/InnerLoading.mjs +1 -4
- package/dist/Input.mjs +35 -126
- package/dist/InputBase.mjs +28 -93
- package/dist/LoadingIndicator.mjs +1 -5
- package/dist/Menu.mjs +44 -65
- package/dist/MenuItem.mjs +4 -16
- package/dist/OverflowContainer.mjs +9 -11
- package/dist/Pagination.mjs +11 -29
- package/dist/Popover.d.mts +39 -11
- package/dist/Popover.mjs +80 -99
- package/dist/ProgressBar.d.mts +9 -2
- package/dist/ProgressBar.mjs +11 -27
- package/dist/RadioGroup.d.mts +2 -1
- package/dist/RadioGroup.mjs +33 -47
- package/dist/Select.d.mts +24 -7
- package/dist/Select.mjs +94 -186
- package/dist/SelectBase.d.mts +26 -11
- package/dist/SelectBase.mjs +59 -83
- package/dist/Slider.d.mts +6 -1
- package/dist/Slider.mjs +34 -103
- package/dist/Tabs.mjs +13 -49
- package/dist/forward-root-DPGTBptG.js +125 -0
- package/dist/nuxt.mjs +36 -1
- package/dist/theme.d.mts +1 -1
- package/dist/theme.mjs +22 -5
- package/dist/{utils-6bTTIoaw.js → utils-BCBGEM10.js} +30 -1
- package/dist/utils.mjs +1 -1
- package/dist/vite.d.mts +13 -4
- package/dist/vite.mjs +5 -0
- package/package.json +24 -9
- package/dist/utils-Z0nPSAzb.js +0 -42
package/dist/DatePickerBase.mjs
CHANGED
|
@@ -1,293 +1,138 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { i as useRootBinding, n as useForwardToRoot, r as useModelState, t as claimToggle } from "./forward-root-DPGTBptG.js";
|
|
2
|
+
import { n as useInputProps } from "./utils-BCBGEM10.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeProps, openBlock, ref, renderSlot, unref, useModel, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
3
4
|
import { DatePickerRoot, DatePickerTrigger } from "reka-ui";
|
|
4
5
|
import VuIcon from "vunor/Icon";
|
|
6
|
+
import VuInputBase from "vunor/InputBase";
|
|
5
7
|
import VuDatePickerInner from "vunor/DatePickerInner";
|
|
6
8
|
import VuDatePickerPopup from "vunor/DatePickerPopup";
|
|
7
9
|
//#region src/components/DatePicker/DatePickerBase.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
const _hoisted_1 = ["onClick"];
|
|
10
|
+
const _hoisted_1 = ["onClick", "onKeydown"];
|
|
9
11
|
//#endregion
|
|
10
12
|
//#region src/components/DatePicker/DatePickerBase.vue
|
|
11
13
|
var DatePickerBase_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
inheritAttrs: false,
|
|
12
15
|
__name: "DatePickerBase",
|
|
13
16
|
props: /* @__PURE__ */ mergeModels({
|
|
14
|
-
defaultValue: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
placeholder: {
|
|
23
|
-
type: [Object, String],
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
modelValue: {
|
|
27
|
-
type: [Object, null],
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
hourCycle: {
|
|
31
|
-
type: null,
|
|
32
|
-
required: false
|
|
33
|
-
},
|
|
34
|
-
step: {
|
|
35
|
-
type: Object,
|
|
36
|
-
required: false
|
|
37
|
-
},
|
|
38
|
-
granularity: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: false
|
|
41
|
-
},
|
|
17
|
+
defaultValue: {},
|
|
18
|
+
defaultPlaceholder: {},
|
|
19
|
+
modelValue: {},
|
|
20
|
+
hourCycle: {},
|
|
21
|
+
step: {},
|
|
22
|
+
granularity: {},
|
|
42
23
|
hideTimeZone: {
|
|
43
24
|
type: Boolean,
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
maxValue: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: false
|
|
49
|
-
},
|
|
50
|
-
minValue: {
|
|
51
|
-
type: Object,
|
|
52
|
-
required: false
|
|
53
|
-
},
|
|
54
|
-
locale: {
|
|
55
|
-
type: String,
|
|
56
|
-
required: false
|
|
25
|
+
default: void 0
|
|
57
26
|
},
|
|
27
|
+
maxValue: {},
|
|
28
|
+
minValue: {},
|
|
29
|
+
locale: {},
|
|
58
30
|
disabled: {
|
|
59
31
|
type: Boolean,
|
|
60
|
-
|
|
32
|
+
default: void 0
|
|
61
33
|
},
|
|
62
34
|
readonly: {
|
|
63
35
|
type: Boolean,
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
isDateUnavailable: {
|
|
67
|
-
type: Function,
|
|
68
|
-
required: false
|
|
69
|
-
},
|
|
70
|
-
id: {
|
|
71
|
-
type: String,
|
|
72
|
-
required: false
|
|
73
|
-
},
|
|
74
|
-
dir: {
|
|
75
|
-
type: String,
|
|
76
|
-
required: false
|
|
77
|
-
},
|
|
78
|
-
name: {
|
|
79
|
-
type: String,
|
|
80
|
-
required: false
|
|
36
|
+
default: void 0
|
|
81
37
|
},
|
|
38
|
+
isDateUnavailable: {},
|
|
39
|
+
id: {},
|
|
40
|
+
dir: {},
|
|
41
|
+
name: {},
|
|
82
42
|
required: {
|
|
83
43
|
type: Boolean,
|
|
84
|
-
|
|
44
|
+
default: void 0
|
|
85
45
|
},
|
|
86
46
|
defaultOpen: {
|
|
87
47
|
type: Boolean,
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
open: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
required: false
|
|
48
|
+
default: void 0
|
|
93
49
|
},
|
|
50
|
+
open: { type: Boolean },
|
|
94
51
|
modal: {
|
|
95
52
|
type: Boolean,
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
isDateDisabled: {
|
|
99
|
-
type: Function,
|
|
100
|
-
required: false
|
|
53
|
+
default: void 0
|
|
101
54
|
},
|
|
55
|
+
isDateDisabled: {},
|
|
102
56
|
pagedNavigation: {
|
|
103
57
|
type: Boolean,
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
weekStartsOn: {
|
|
107
|
-
type: Number,
|
|
108
|
-
required: false
|
|
109
|
-
},
|
|
110
|
-
weekdayFormat: {
|
|
111
|
-
type: String,
|
|
112
|
-
required: false
|
|
58
|
+
default: void 0
|
|
113
59
|
},
|
|
60
|
+
weekStartsOn: {},
|
|
61
|
+
weekdayFormat: {},
|
|
114
62
|
fixedWeeks: {
|
|
115
63
|
type: Boolean,
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
numberOfMonths: {
|
|
119
|
-
type: Number,
|
|
120
|
-
required: false
|
|
64
|
+
default: void 0
|
|
121
65
|
},
|
|
66
|
+
numberOfMonths: {},
|
|
122
67
|
preventDeselect: {
|
|
123
68
|
type: Boolean,
|
|
124
|
-
|
|
69
|
+
default: void 0
|
|
125
70
|
},
|
|
126
71
|
closeOnSelect: {
|
|
127
72
|
type: Boolean,
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
popupRounded: {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
groupTemplate: {
|
|
163
|
-
type: String,
|
|
164
|
-
required: false
|
|
165
|
-
},
|
|
166
|
-
stackLabel: {
|
|
167
|
-
type: Boolean,
|
|
168
|
-
required: false
|
|
169
|
-
},
|
|
170
|
-
onBeforeClick: {
|
|
171
|
-
type: Function,
|
|
172
|
-
required: false
|
|
173
|
-
},
|
|
174
|
-
onAfterClick: {
|
|
175
|
-
type: Function,
|
|
176
|
-
required: false
|
|
177
|
-
},
|
|
178
|
-
onClick: {
|
|
179
|
-
type: Function,
|
|
180
|
-
required: false
|
|
181
|
-
},
|
|
182
|
-
onBlur: {
|
|
183
|
-
type: Function,
|
|
184
|
-
required: false
|
|
185
|
-
},
|
|
186
|
-
onFocus: {
|
|
187
|
-
type: Function,
|
|
188
|
-
required: false
|
|
189
|
-
},
|
|
190
|
-
label: {
|
|
191
|
-
type: String,
|
|
192
|
-
required: false
|
|
193
|
-
},
|
|
194
|
-
design: {
|
|
195
|
-
type: String,
|
|
196
|
-
required: false
|
|
197
|
-
},
|
|
198
|
-
iconPrepend: {
|
|
199
|
-
type: String,
|
|
200
|
-
required: false
|
|
201
|
-
},
|
|
202
|
-
iconAppend: {
|
|
203
|
-
type: String,
|
|
204
|
-
required: false
|
|
205
|
-
},
|
|
206
|
-
groupItem: {
|
|
207
|
-
type: Boolean,
|
|
208
|
-
required: false
|
|
209
|
-
},
|
|
210
|
-
autoGrow: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
required: false
|
|
213
|
-
},
|
|
214
|
-
active: {
|
|
215
|
-
type: Boolean,
|
|
216
|
-
required: false
|
|
217
|
-
},
|
|
218
|
-
loading: {
|
|
219
|
-
type: Boolean,
|
|
220
|
-
required: false
|
|
221
|
-
},
|
|
222
|
-
noUnderline: {
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
popupRounded: { type: Boolean },
|
|
76
|
+
popupClass: {},
|
|
77
|
+
openOnClick: { type: Boolean },
|
|
78
|
+
iconBefore: {},
|
|
79
|
+
iconAfter: {},
|
|
80
|
+
error: { type: [String, Boolean] },
|
|
81
|
+
hint: {},
|
|
82
|
+
groupTemplate: {},
|
|
83
|
+
stackLabel: { type: Boolean },
|
|
84
|
+
onBeforeClick: {},
|
|
85
|
+
onAfterClick: {},
|
|
86
|
+
onClick: {},
|
|
87
|
+
onBlur: {},
|
|
88
|
+
onFocus: {},
|
|
89
|
+
label: {},
|
|
90
|
+
design: {},
|
|
91
|
+
iconPrepend: {},
|
|
92
|
+
iconAppend: {},
|
|
93
|
+
groupItem: { type: Boolean },
|
|
94
|
+
autoGrow: { type: Boolean },
|
|
95
|
+
active: { type: Boolean },
|
|
96
|
+
loading: { type: Boolean },
|
|
97
|
+
noUnderline: { type: Boolean },
|
|
98
|
+
onAppendClick: {},
|
|
99
|
+
onPrependClick: {},
|
|
100
|
+
placeholder: {},
|
|
101
|
+
type: {},
|
|
102
|
+
rows: {},
|
|
103
|
+
maxlength: {},
|
|
104
|
+
autocomplete: {}
|
|
105
|
+
}, {
|
|
106
|
+
"open": {
|
|
223
107
|
type: Boolean,
|
|
224
|
-
|
|
108
|
+
default: void 0
|
|
225
109
|
},
|
|
226
|
-
onAppendClick: {
|
|
227
|
-
type: Function,
|
|
228
|
-
required: false
|
|
229
|
-
},
|
|
230
|
-
onPrependClick: {
|
|
231
|
-
type: Function,
|
|
232
|
-
required: false
|
|
233
|
-
},
|
|
234
|
-
type: {
|
|
235
|
-
type: String,
|
|
236
|
-
required: false
|
|
237
|
-
},
|
|
238
|
-
rows: {
|
|
239
|
-
type: Number,
|
|
240
|
-
required: false
|
|
241
|
-
},
|
|
242
|
-
maxlength: {
|
|
243
|
-
type: Number,
|
|
244
|
-
required: false
|
|
245
|
-
},
|
|
246
|
-
autocomplete: {
|
|
247
|
-
type: String,
|
|
248
|
-
required: false
|
|
249
|
-
}
|
|
250
|
-
}, {
|
|
251
|
-
"open": { type: Boolean },
|
|
252
110
|
"openModifiers": {},
|
|
253
|
-
"modelValue": {
|
|
111
|
+
"modelValue": {},
|
|
254
112
|
"modelModifiers": {}
|
|
255
113
|
}),
|
|
256
|
-
emits: /* @__PURE__ */ mergeModels(["keydown-enter"], ["update:open", "update:modelValue"]),
|
|
114
|
+
emits: /* @__PURE__ */ mergeModels(["keydown-enter", "update:placeholder"], ["update:open", "update:modelValue"]),
|
|
257
115
|
setup(__props, { emit: __emit }) {
|
|
258
116
|
const props = __props;
|
|
259
117
|
const open = useModel(__props, "open");
|
|
260
118
|
const modelValue = useModel(__props, "modelValue");
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
preventDeselect: props.preventDeselect,
|
|
270
|
-
defaultValue: props.defaultValue,
|
|
271
|
-
defaultPlaceholder: props.defaultPlaceholder,
|
|
272
|
-
placeholder: props.placeholder,
|
|
273
|
-
modelValue: props.modelValue,
|
|
274
|
-
hourCycle: props.hourCycle,
|
|
275
|
-
granularity: props.granularity,
|
|
276
|
-
hideTimeZone: props.hideTimeZone,
|
|
277
|
-
maxValue: props.maxValue,
|
|
278
|
-
minValue: props.minValue,
|
|
279
|
-
locale: props.locale,
|
|
280
|
-
disabled: props.disabled,
|
|
281
|
-
readonly: props.readonly,
|
|
282
|
-
isDateUnavailable: props.isDateUnavailable,
|
|
283
|
-
required: props.required,
|
|
284
|
-
id: props.id,
|
|
285
|
-
dir: props.dir,
|
|
286
|
-
defaultOpen: props.defaultOpen,
|
|
287
|
-
modal: props.modal
|
|
288
|
-
};
|
|
289
|
-
});
|
|
119
|
+
const emit = __emit;
|
|
120
|
+
const rootProps = useForwardToRoot(DatePickerRoot, props, emit, [
|
|
121
|
+
"modelValue",
|
|
122
|
+
"open",
|
|
123
|
+
"placeholder",
|
|
124
|
+
"update:modelValue",
|
|
125
|
+
"update:open"
|
|
126
|
+
]);
|
|
290
127
|
const inputProps = useInputProps();
|
|
128
|
+
const isOpen = useModelState(open, DatePickerRoot, "defaultOpen", props);
|
|
129
|
+
const rootOpen = useRootBinding(open, isOpen);
|
|
130
|
+
function onAppendClick(event) {
|
|
131
|
+
if (claimToggle(event)) isOpen.value = true;
|
|
132
|
+
}
|
|
133
|
+
function activateTrigger(event) {
|
|
134
|
+
event.currentTarget?.click();
|
|
135
|
+
}
|
|
291
136
|
const popupProps = computed(() => {
|
|
292
137
|
return {
|
|
293
138
|
popupRounded: props.popupRounded,
|
|
@@ -295,8 +140,9 @@ var DatePickerBase_default = /* @__PURE__ */ defineComponent({
|
|
|
295
140
|
};
|
|
296
141
|
});
|
|
297
142
|
function onClick($event) {
|
|
298
|
-
if (props.openOnClick)
|
|
299
|
-
|
|
143
|
+
if (props.openOnClick) {
|
|
144
|
+
if (claimToggle($event)) isOpen.value = true;
|
|
145
|
+
} else ($event.target?.querySelector("[tabindex=\"0\"]"))?.focus();
|
|
300
146
|
}
|
|
301
147
|
const datePickerInnerKey = ref(0);
|
|
302
148
|
const inputBase = ref(null);
|
|
@@ -309,27 +155,28 @@ var DatePickerBase_default = /* @__PURE__ */ defineComponent({
|
|
|
309
155
|
* @param {DateValue} [newValue] - The new date value
|
|
310
156
|
*/
|
|
311
157
|
async function onUpdate(newValue) {
|
|
312
|
-
if (!newValue && !
|
|
158
|
+
if (!newValue && !isOpen.value) {
|
|
313
159
|
await nextTick();
|
|
314
160
|
inputBase.value?.$el.querySelector("[tabindex=\"0\"]")?.focus();
|
|
315
161
|
}
|
|
316
162
|
}
|
|
317
|
-
const emit = __emit;
|
|
318
163
|
return (_ctx, _cache) => {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
open: open.value,
|
|
322
|
-
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event),
|
|
164
|
+
return openBlock(), createBlock(unref(DatePickerRoot), mergeProps(unref(rootProps), {
|
|
165
|
+
open: unref(rootOpen),
|
|
166
|
+
"onUpdate:open": _cache[1] || (_cache[1] = (value) => open.value = value),
|
|
323
167
|
modelValue: modelValue.value,
|
|
324
|
-
"onUpdate:modelValue": [_cache[
|
|
168
|
+
"onUpdate:modelValue": [_cache[2] || (_cache[2] = ($event) => modelValue.value = $event), onUpdate]
|
|
325
169
|
}), {
|
|
326
|
-
default: withCtx(() => [createVNode(
|
|
170
|
+
default: withCtx(() => [createVNode(VuInputBase, mergeProps({
|
|
171
|
+
"data-has-value": "",
|
|
172
|
+
..._ctx.$attrs,
|
|
173
|
+
...unref(inputProps)
|
|
174
|
+
}, {
|
|
327
175
|
ref_key: "inputBase",
|
|
328
176
|
ref: inputBase,
|
|
329
|
-
|
|
330
|
-
active: open.value,
|
|
177
|
+
active: unref(isOpen),
|
|
331
178
|
"icon-append": "i--calendar",
|
|
332
|
-
onAppendClick
|
|
179
|
+
onAppendClick
|
|
333
180
|
}), {
|
|
334
181
|
default: withCtx((slotProps) => [(openBlock(), createBlock(VuDatePickerInner, mergeProps({
|
|
335
182
|
key: String(datePickerInnerKey.value),
|
|
@@ -345,13 +192,17 @@ var DatePickerBase_default = /* @__PURE__ */ defineComponent({
|
|
|
345
192
|
}, () => [createVNode(unref(DatePickerTrigger), { "as-child": "" }, {
|
|
346
193
|
default: withCtx(() => [createElementVNode("div", {
|
|
347
194
|
class: "i8-icon-wrap",
|
|
195
|
+
"data-vu-trigger": "",
|
|
196
|
+
role: "button",
|
|
197
|
+
tabindex: "0",
|
|
198
|
+
"aria-label": "Open calendar",
|
|
348
199
|
onClick: emitClick,
|
|
349
|
-
|
|
350
|
-
}, [createVNode(VuIcon, { name: iconAppend }, null, 8, ["name"])],
|
|
200
|
+
onKeydown: withKeys(withModifiers(activateTrigger, ["prevent"]), ["enter", "space"])
|
|
201
|
+
}, [createVNode(VuIcon, { name: iconAppend }, null, 8, ["name"])], 40, _hoisted_1)]),
|
|
351
202
|
_: 2
|
|
352
203
|
}, 1024)])]),
|
|
353
204
|
_: 3
|
|
354
|
-
}, 16, ["active"]),
|
|
205
|
+
}, 16, ["active"]), unref(isOpen) ? (openBlock(), createBlock(VuDatePickerPopup, normalizeProps(mergeProps({ key: 0 }, popupProps.value)), null, 16)) : createCommentVNode("", true)]),
|
|
355
206
|
_: 3
|
|
356
207
|
}, 16, ["open", "modelValue"]);
|
|
357
208
|
};
|
|
@@ -1,8 +1,33 @@
|
|
|
1
|
+
import type { DatePickerContentProps } from 'reka-ui';
|
|
1
2
|
import type { TVueCssClass } from 'vunor/utils';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
+
type __VLS_Props = Omit<DatePickerContentProps, 'as' | 'asChild'> & {
|
|
3
4
|
popupRounded?: boolean;
|
|
4
5
|
popupClass?: TVueCssClass;
|
|
5
6
|
};
|
|
6
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
9
|
+
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
10
|
+
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
11
|
+
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
12
|
+
openAutoFocus: (event: Event) => any;
|
|
13
|
+
closeAutoFocus: (event: Event) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
17
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
18
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
19
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
forceMount: boolean;
|
|
23
|
+
sideFlip: boolean;
|
|
24
|
+
alignFlip: boolean;
|
|
25
|
+
avoidCollisions: boolean;
|
|
26
|
+
hideShiftedArrow: boolean;
|
|
27
|
+
hideWhenDetached: boolean;
|
|
28
|
+
disableUpdateOnLayoutShift: boolean;
|
|
29
|
+
prioritizePosition: boolean;
|
|
30
|
+
disableOutsidePointerEvents: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
32
|
declare const _default: typeof __VLS_export;
|
|
8
33
|
export default _default;
|
package/dist/DatePickerPopup.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as useForwardToRoot } from "./forward-root-DPGTBptG.js";
|
|
1
2
|
import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
2
3
|
import { DatePickerArrow, DatePickerCalendar, DatePickerCell, DatePickerCellTrigger, DatePickerContent, DatePickerGrid, DatePickerGridBody, DatePickerGridHead, DatePickerGridRow, DatePickerHeadCell, DatePickerHeader, DatePickerHeading, DatePickerNext, DatePickerPrev } from "reka-ui";
|
|
3
4
|
import VuButton from "vunor/Button";
|
|
@@ -7,24 +8,72 @@ const _hoisted_1 = { class: "calendar-month-grid" };
|
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region src/components/DatePicker/DatePickerPopup.vue
|
|
9
10
|
var DatePickerPopup_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
inheritAttrs: false,
|
|
10
12
|
__name: "DatePickerPopup",
|
|
11
13
|
props: {
|
|
12
|
-
|
|
14
|
+
portal: {},
|
|
15
|
+
forceMount: {
|
|
13
16
|
type: Boolean,
|
|
14
|
-
|
|
17
|
+
default: void 0
|
|
15
18
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
19
|
+
side: {},
|
|
20
|
+
sideOffset: {},
|
|
21
|
+
sideFlip: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
align: {},
|
|
26
|
+
alignOffset: {},
|
|
27
|
+
alignFlip: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
avoidCollisions: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
collisionBoundary: {},
|
|
36
|
+
collisionPadding: {},
|
|
37
|
+
arrowPadding: {},
|
|
38
|
+
hideShiftedArrow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: void 0
|
|
41
|
+
},
|
|
42
|
+
sticky: {},
|
|
43
|
+
hideWhenDetached: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: void 0
|
|
46
|
+
},
|
|
47
|
+
positionStrategy: {},
|
|
48
|
+
updatePositionStrategy: {},
|
|
49
|
+
disableUpdateOnLayoutShift: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: void 0
|
|
52
|
+
},
|
|
53
|
+
prioritizePosition: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: void 0
|
|
56
|
+
},
|
|
57
|
+
reference: {},
|
|
58
|
+
disableOutsidePointerEvents: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
popupRounded: { type: Boolean },
|
|
63
|
+
popupClass: {}
|
|
24
64
|
},
|
|
25
|
-
|
|
65
|
+
emits: [
|
|
66
|
+
"escapeKeyDown",
|
|
67
|
+
"pointerDownOutside",
|
|
68
|
+
"focusOutside",
|
|
69
|
+
"interactOutside",
|
|
70
|
+
"openAutoFocus",
|
|
71
|
+
"closeAutoFocus"
|
|
72
|
+
],
|
|
73
|
+
setup(__props, { emit: __emit }) {
|
|
74
|
+
const contentProps = useForwardToRoot(DatePickerContent, __props, __emit, ["as", "asChild"]);
|
|
26
75
|
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(), createBlock(unref(DatePickerContent), { "as-child": "" }, {
|
|
76
|
+
return openBlock(), createBlock(unref(DatePickerContent), mergeProps(unref(contentProps), { "as-child": "" }), {
|
|
28
77
|
default: withCtx(() => [createVNode(VuCard, mergeProps({
|
|
29
78
|
level: "body",
|
|
30
79
|
class: "date-picker-root"
|
|
@@ -104,7 +153,7 @@ var DatePickerPopup_default = /* @__PURE__ */ defineComponent({
|
|
|
104
153
|
_: 1
|
|
105
154
|
}, 16, ["rounded", "class"])]),
|
|
106
155
|
_: 1
|
|
107
|
-
});
|
|
156
|
+
}, 16);
|
|
108
157
|
};
|
|
109
158
|
}
|
|
110
159
|
});
|
package/dist/DelayedSwitch.mjs
CHANGED
|
@@ -4,20 +4,9 @@ import { defineComponent, ref, renderSlot, watch } from "vue";
|
|
|
4
4
|
var DelayedSwitch_default = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "DelayedSwitch",
|
|
6
6
|
props: {
|
|
7
|
-
value: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
delayOn: {
|
|
12
|
-
type: Number,
|
|
13
|
-
required: false,
|
|
14
|
-
default: 0
|
|
15
|
-
},
|
|
16
|
-
delayOff: {
|
|
17
|
-
type: Number,
|
|
18
|
-
required: false,
|
|
19
|
-
default: 200
|
|
20
|
-
}
|
|
7
|
+
value: { type: Boolean },
|
|
8
|
+
delayOn: { default: 0 },
|
|
9
|
+
delayOff: { default: 200 }
|
|
21
10
|
},
|
|
22
11
|
setup(__props) {
|
|
23
12
|
const props = __props;
|