@astryx-vue/core 0.46.2 → 0.46.3
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/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-Bczcehmz.js → InternationalizationProvider-CyxgZ6jv.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-B8ubaAE3.js → PowerSearch-B_RQO3ZF.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-kFw6aAKj.js → RadioGroup-BIO2ckvf.js} +7 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-CssFcD1Y.js → RadioListItem-D1N5d2ei.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D7pHBEdQ.js → SegmentedControl-0jm3K1vo.js} +43 -20
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-3HSEWBNK.js → Slider-DYV-mD3h.js} +31 -15
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-a7Wl8I_P.js → Switch-DesSuw56.js} +67 -25
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-B-WmTplc.js → Table-DbJVAmQH.js} +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/{index-BXr7LtAh.d.ts → index-83Gp-isU.d.ts} +2 -2
- package/dist/{index-DZMs9KqG.d.ts → index-BMoR8Uoh.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-m-fFGq2e.d.ts → index-CCa_dvoF.d.ts} +2 -2
- package/dist/{index-B8XkUCzI.d.ts → index-CqSUm878.d.ts} +1 -1
- package/dist/{index-N9KLj1lB.d.ts → index-CvtYT6T3.d.ts} +6 -6
- package/dist/{index-C5NuAlfY.d.ts → index-D46MxxOl.d.ts} +1 -1
- package/dist/{index-Br41ynrM.d.ts → index-Dh1ZiUCu.d.ts} +2 -2
- package/dist/{index-DGVOnHpo.d.ts → index-Dn4_BPHR.d.ts} +2 -2
- package/dist/{index-Df0FiiEH.d.ts → index-DpoPQpHU.d.ts} +49 -49
- package/dist/{index-DOqxWQJp.d.ts → index-DyikW_sN.d.ts} +1 -1
- package/dist/{index-Dx8mIZvF.d.ts → index-W1vk0b9d.d.ts} +8 -8
- package/dist/{index-CBOv5j3c.d.ts → index-a_FOKJMw.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-jz9GfvS0.d.ts} +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +11 -11
- package/dist/{loadCatalog-zzs2TbVx.js → loadCatalog--oXKoMve.js} +5 -1
- package/dist/{loadCatalog-Cm394Q3F.d.ts → loadCatalog-YkQJ7sxu.d.ts} +2 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-C6LeW6D2.js → locale-BH7q40Eo.js} +1 -1
- package/dist/{slider-6ZlGhyPD.js → slider-B3dPDmye.js} +4 -2
- package/locales/en.json +4 -0
- package/package.json +1 -1
- package/styles/segmented-control.css +8 -3
- package/styles/slider.css +2 -0
- package/styles/switch.css +10 -0
- package/dist/{index-7tsRPFfY.d.ts → index-CNZCQgHF.d.ts} +1 -1
|
@@ -22,7 +22,7 @@ import { a as useAriaRequired } from "./context-CrVCeUUK.js";
|
|
|
22
22
|
import { t as _sfc_main$4 } from "./Field-BiLdRQCq.js";
|
|
23
23
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
24
24
|
import { n as playHaptic } from "./haptics-DaX2u-jB.js";
|
|
25
|
-
import { t as sliderMessages } from "./slider-
|
|
25
|
+
import { t as sliderMessages } from "./slider-B3dPDmye.js";
|
|
26
26
|
import { n as createPressTracker, t as PRESS_PROFILES } from "./PressTracker-CiaaoD3I.js";
|
|
27
27
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx, withKeys } from "vue";
|
|
28
28
|
import "../styles/button.css";
|
|
@@ -185,11 +185,25 @@ function add(first, second) {
|
|
|
185
185
|
function multiply(first, second) {
|
|
186
186
|
return Number((first * second).toFixed(Math.min(20, precision(first) + precision(second))));
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* The character count of the longest text a value shows, for the text value's
|
|
190
|
+
* reserved width. Up to 200 steps every value is formatted; above that, the
|
|
191
|
+
* ends and the values one step in from them. `max` counts too: the end shows
|
|
192
|
+
* it even off the step grid.
|
|
193
|
+
*/
|
|
194
|
+
function longestValueText(min, max, step, format) {
|
|
195
|
+
const count = step > 0 && max > min ? Math.floor((max - min) / step) : 0;
|
|
196
|
+
const shown = count <= 200 ? Array.from({ length: count + 1 }, (_, index) => min + index * step) : [
|
|
197
|
+
min,
|
|
198
|
+
min + step,
|
|
199
|
+
max - step
|
|
200
|
+
];
|
|
201
|
+
return Math.max(format(max).length, ...shown.map((value) => format(clamp(snap(value, min, step), min, max)).length));
|
|
202
|
+
}
|
|
188
203
|
//#endregion
|
|
189
204
|
//#region src/Slider/SliderThumb.vue
|
|
190
205
|
const _hoisted_1$1 = [
|
|
191
206
|
"id",
|
|
192
|
-
"tabindex",
|
|
193
207
|
"data-thumb-index",
|
|
194
208
|
"data-dragging",
|
|
195
209
|
"data-keyboard-focus",
|
|
@@ -219,7 +233,6 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
219
233
|
valueText: {},
|
|
220
234
|
isInvalid: { type: Boolean },
|
|
221
235
|
isDisabled: { type: Boolean },
|
|
222
|
-
isFocusable: { type: Boolean },
|
|
223
236
|
tooltipText: {},
|
|
224
237
|
dragging: { type: Boolean },
|
|
225
238
|
dragActive: { type: Boolean },
|
|
@@ -236,7 +249,6 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
236
249
|
const emit = __emit;
|
|
237
250
|
const thumb = useTemplateRef("thumb");
|
|
238
251
|
const tooltip = useTemplateRef("tooltip");
|
|
239
|
-
const tabIndex = computed(() => props.isFocusable ? 0 : -1);
|
|
240
252
|
const focused = shallowRef(false);
|
|
241
253
|
const hovered = shallowRef(false);
|
|
242
254
|
const dismissed = shallowRef(false);
|
|
@@ -270,7 +282,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
270
282
|
}
|
|
271
283
|
return (_ctx, _cache) => {
|
|
272
284
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
273
|
-
createCommentVNode("
|
|
285
|
+
createCommentVNode(" A disabled thumb stays focusable with aria-disabled, so keyboard and assistive technology still reach it. "),
|
|
274
286
|
createElementVNode("div", mergeProps(__props.extraAttrs, {
|
|
275
287
|
id: __props.id,
|
|
276
288
|
ref_key: "thumb",
|
|
@@ -278,7 +290,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
278
290
|
class: "astryx-slider-thumb",
|
|
279
291
|
role: "slider",
|
|
280
292
|
style: style.value,
|
|
281
|
-
tabindex:
|
|
293
|
+
tabindex: "0",
|
|
282
294
|
"data-thumb-index": __props.index,
|
|
283
295
|
"data-dragging": __props.dragging || void 0,
|
|
284
296
|
"data-keyboard-focus": __props.keyboardFocus || void 0,
|
|
@@ -1237,11 +1249,6 @@ const _hoisted_3 = [
|
|
|
1237
1249
|
const _hoisted_4 = { class: "astryx-slider-travel" };
|
|
1238
1250
|
const _hoisted_5 = ["data-mark-value", "data-filled"];
|
|
1239
1251
|
const _hoisted_6 = ["data-mark-value"];
|
|
1240
|
-
const _hoisted_7 = {
|
|
1241
|
-
key: 0,
|
|
1242
|
-
class: "astryx-slider-value",
|
|
1243
|
-
"aria-hidden": "true"
|
|
1244
|
-
};
|
|
1245
1252
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
1246
1253
|
name: "AstryxSlider",
|
|
1247
1254
|
inheritAttrs: false,
|
|
@@ -1368,7 +1375,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1368
1375
|
const marks = computed(() => props.marks?.filter((mark) => Number.isFinite(mark.value) && mark.value >= min.value && mark.value <= max.value) ?? []);
|
|
1369
1376
|
const hasMarkLabels = computed(() => marks.value.some((mark) => mark.label));
|
|
1370
1377
|
const format = (value) => props.formatValue?.(value) ?? String(value);
|
|
1371
|
-
const
|
|
1378
|
+
const valueText = (shown) => shown.length === 2 ? messages.value.slider.rangeValue(shown[0], shown[1]) : shown[0] ?? "";
|
|
1379
|
+
const displayText = computed(() => valueText(values.value.map(format)));
|
|
1380
|
+
const valueReserve = computed(() => {
|
|
1381
|
+
if (props.valueDisplay !== "text") return void 0;
|
|
1382
|
+
const longest = "0".repeat(longestValueText(min.value, max.value, props.step, format));
|
|
1383
|
+
return { minInlineSize: `min(${valueText(isRange.value ? [longest, longest] : [longest]).length + 1}ch, 50%)` };
|
|
1384
|
+
});
|
|
1372
1385
|
const fillStyle = computed(() => ({
|
|
1373
1386
|
"--_slider-fill-start": isRange.value ? percent(values.value[0], min.value, max.value) / 100 : 0,
|
|
1374
1387
|
"--_slider-fill-end": percent(values.value.at(-1), min.value, max.value) / 100
|
|
@@ -1541,7 +1554,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1541
1554
|
"value-text": __props.formatValue ? format(value) : void 0,
|
|
1542
1555
|
"is-invalid": __props.status?.type === "error",
|
|
1543
1556
|
"is-disabled": __props.isDisabled,
|
|
1544
|
-
"is-focusable": !__props.isDisabled || showsDisabledMessage.value,
|
|
1545
1557
|
dragging: unref(dragging) === index,
|
|
1546
1558
|
"drag-active": unref(dragging) !== null,
|
|
1547
1559
|
"keyboard-focus": unref(control).keyboardFocus.value === index,
|
|
@@ -1564,7 +1576,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1564
1576
|
"value-text",
|
|
1565
1577
|
"is-invalid",
|
|
1566
1578
|
"is-disabled",
|
|
1567
|
-
"is-focusable",
|
|
1568
1579
|
"dragging",
|
|
1569
1580
|
"drag-active",
|
|
1570
1581
|
"keyboard-focus",
|
|
@@ -1575,7 +1586,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1575
1586
|
]);
|
|
1576
1587
|
}), 128))
|
|
1577
1588
|
])], 16, _hoisted_3),
|
|
1578
|
-
__props.valueDisplay === "text" ? (openBlock(), createElementBlock("span",
|
|
1589
|
+
__props.valueDisplay === "text" ? (openBlock(), createElementBlock("span", {
|
|
1590
|
+
key: 0,
|
|
1591
|
+
class: "astryx-slider-value",
|
|
1592
|
+
style: normalizeStyle(valueReserve.value),
|
|
1593
|
+
"aria-hidden": "true"
|
|
1594
|
+
}, toDisplayString(displayText.value), 5)) : createCommentVNode("v-if", true)
|
|
1579
1595
|
]),
|
|
1580
1596
|
isRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_sfc_main$2, { id: `${inputId.value}-label-0` }, {
|
|
1581
1597
|
default: withCtx(() => [createTextVNode(toDisplayString(minName.value), 1)]),
|
package/dist/Stack/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as StackDirection, c as StackItemProps, d as StackProps, f as StackSizeValue, i as StackCrossAlignment, l as StackItemSize, m as VStackProps, n as SpacingStep, o as StackElement, p as StackWrap, r as StackAlignment, s as StackItemCrossAlignSelf, t as HStackProps, u as StackMainAlignment } from "../types-BTk0WZ0b.js";
|
|
2
|
-
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-
|
|
2
|
+
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-BgT6mH3U.js";
|
|
3
3
|
export { _default as HStack, type HStackProps, type SpacingStep, _default$1 as Stack, type StackAlignment, type StackCrossAlignment, type StackDirection, type StackElement, _default$2 as StackItem, type StackItemCrossAlignSelf, type StackItemProps, type StackItemSize, type StackMainAlignment, type StackProps, type StackSizeValue, type StackWrap, _default$3 as VStack, type VStackProps };
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as SwitchEmits, Qn as SwitchChangeEvent, Xn as _default, Zn as SwitchChangeAction, ar as SwitchStatus, er as SwitchLabelPosition, ir as SwitchSlots, nr as SwitchProps, or as SwitchStatusType, rr as SwitchSize, tr as SwitchLabelSpacing } from "../index-
|
|
1
|
+
import { $n as SwitchEmits, Qn as SwitchChangeEvent, Xn as _default, Zn as SwitchChangeAction, ar as SwitchStatus, er as SwitchLabelPosition, ir as SwitchSlots, nr as SwitchProps, or as SwitchStatusType, rr as SwitchSize, tr as SwitchLabelSpacing } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchLabelPosition, type SwitchLabelSpacing, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
|
package/dist/Switch/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Switch-
|
|
1
|
+
import { t as _sfc_main } from "../Switch-DesSuw56.js";
|
|
2
2
|
export { _sfc_main as Switch };
|
|
@@ -394,29 +394,45 @@ function lockPressedRow(elements, target) {
|
|
|
394
394
|
//#region src/Switch/switchFill.ts
|
|
395
395
|
/**
|
|
396
396
|
* @file switchFill.ts
|
|
397
|
-
* @input Switch's native input and its
|
|
398
|
-
* @output readFillInState
|
|
399
|
-
*
|
|
400
|
-
* @position Read by switchTouchVisuals.ts for the colour fade under a finger
|
|
397
|
+
* @input Switch's native input, its track and its thumb
|
|
398
|
+
* @output readFillInState and readThumbSizeInState: what the theme paints in
|
|
399
|
+
* a given state, read in place
|
|
400
|
+
* @position Read by switchTouchVisuals.ts for the colour fade under a finger,
|
|
401
|
+
* and by switchTouchController.ts for the thumb's size before any press
|
|
401
402
|
*
|
|
402
|
-
* The track's fill
|
|
403
|
-
*
|
|
404
|
-
* state is swapped, the
|
|
405
|
-
* task, so nothing paints in between and no event fires.
|
|
403
|
+
* The track's fill and the thumb's size follow the input's `:checked`
|
|
404
|
+
* (switch.css). The touch motion needs them in a state the switch is not in:
|
|
405
|
+
* the input's checked state is swapped, the style read and the state swapped
|
|
406
|
+
* back in the same task, so nothing paints in between and no event fires.
|
|
406
407
|
*/
|
|
408
|
+
function inState(input, isOn, read) {
|
|
409
|
+
const saved = input.checked;
|
|
410
|
+
input.checked = isOn;
|
|
411
|
+
try {
|
|
412
|
+
return read();
|
|
413
|
+
} finally {
|
|
414
|
+
input.checked = saved;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
407
417
|
/** The track's computed fill when the input's checked state is `isOn`. */
|
|
408
418
|
function readFillInState(input, track, isOn) {
|
|
409
|
-
const saved = input.checked;
|
|
410
419
|
const held = track.style.getPropertyValue("background-color");
|
|
411
|
-
input.checked = isOn;
|
|
412
420
|
if (held !== "") track.style.removeProperty("background-color");
|
|
413
421
|
try {
|
|
414
|
-
return getComputedStyle(track).backgroundColor;
|
|
422
|
+
return inState(input, isOn, () => getComputedStyle(track).backgroundColor);
|
|
415
423
|
} finally {
|
|
416
|
-
input.checked = saved;
|
|
417
424
|
if (held !== "") track.style.setProperty("background-color", held);
|
|
418
425
|
}
|
|
419
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* The thumb's diameter the stylesheet sets (`--_switch-thumb-size`) when the
|
|
429
|
+
* input's checked state is `isOn`, or null where it is not a px length.
|
|
430
|
+
*/
|
|
431
|
+
function readThumbSizeInState(input, thumb, isOn) {
|
|
432
|
+
const value = inState(input, isOn, () => getComputedStyle(thumb).getPropertyValue("--_switch-thumb-size"));
|
|
433
|
+
const themed = /^\s*(\d+(?:\.\d+)?|\.\d+)px\s*$/.exec(value);
|
|
434
|
+
return themed ? Number(themed[1]) : null;
|
|
435
|
+
}
|
|
420
436
|
//#endregion
|
|
421
437
|
//#region src/Switch/switchTouchVisuals.ts
|
|
422
438
|
/** The fade layer's colour, set on the track for its `::after`. */
|
|
@@ -456,8 +472,8 @@ var SwitchTouchVisuals = class {
|
|
|
456
472
|
isOn;
|
|
457
473
|
/** The side the visuals show or head to. */
|
|
458
474
|
isVisuallyOn;
|
|
459
|
-
/** +1 left-to-right, −1 right-to-left. */
|
|
460
|
-
|
|
475
|
+
/** +1 left-to-right, −1 right-to-left; null until its first use after a bind. */
|
|
476
|
+
writingDirection = null;
|
|
461
477
|
thumb = null;
|
|
462
478
|
/** The fade layer: its opacity is how far the visuals are from the value. */
|
|
463
479
|
fade = null;
|
|
@@ -477,15 +493,15 @@ var SwitchTouchVisuals = class {
|
|
|
477
493
|
this.geometry = geometry;
|
|
478
494
|
}
|
|
479
495
|
/** The parts a press measures, with no animator (the switch's own look). */
|
|
480
|
-
bind(elements
|
|
496
|
+
bind(elements) {
|
|
481
497
|
this.elements = elements;
|
|
482
|
-
this.
|
|
498
|
+
this.writingDirection = null;
|
|
483
499
|
this.isGeometryMeasured = false;
|
|
484
500
|
this.isVisuallyOn = this.isOn;
|
|
485
501
|
}
|
|
486
502
|
/** The animators of the touch presentation, from rest. */
|
|
487
|
-
attach(elements
|
|
488
|
-
this.bind(elements
|
|
503
|
+
attach(elements) {
|
|
504
|
+
this.bind(elements);
|
|
489
505
|
this.thumb = createMotionEngine(elements.thumb);
|
|
490
506
|
this.fade = createMotionEngine(elements.track, {
|
|
491
507
|
pseudoElement: "::after",
|
|
@@ -499,7 +515,14 @@ var SwitchTouchVisuals = class {
|
|
|
499
515
|
base: { opacity: 0 }
|
|
500
516
|
});
|
|
501
517
|
this.shadow.set({ opacity: 0 }, { promote: false });
|
|
502
|
-
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* +1 left-to-right, −1 right-to-left, read at its first use: a read at
|
|
521
|
+
* mount would recalculate style for every switch on the page.
|
|
522
|
+
*/
|
|
523
|
+
get direction() {
|
|
524
|
+
this.writingDirection ??= isRtlElement(this.elements?.surface ?? null) ? -1 : 1;
|
|
525
|
+
return this.writingDirection;
|
|
503
526
|
}
|
|
504
527
|
/** Undo the animators and every inline style they wrote. */
|
|
505
528
|
detach() {
|
|
@@ -755,6 +778,12 @@ var SwitchTouchController = class {
|
|
|
755
778
|
isInteractive = true;
|
|
756
779
|
/** The thumb's diameter in each state, for a change before any press. */
|
|
757
780
|
thumbSizes = null;
|
|
781
|
+
/**
|
|
782
|
+
* The value the touch presentation attached in, whose thumb diameter the
|
|
783
|
+
* first value change before any press reads (attachedThumbSize); null once
|
|
784
|
+
* read, or outside the touch presentation.
|
|
785
|
+
*/
|
|
786
|
+
attachedIsOn = null;
|
|
758
787
|
/** The thumb's diameter the stylesheet sets for the state it attached in. */
|
|
759
788
|
attachedThumb = null;
|
|
760
789
|
detachers = [];
|
|
@@ -783,14 +812,13 @@ var SwitchTouchController = class {
|
|
|
783
812
|
attach(elements, presentation) {
|
|
784
813
|
this.detach();
|
|
785
814
|
this.elements = elements;
|
|
786
|
-
const direction = isRtlElement(elements.surface) ? -1 : 1;
|
|
787
815
|
this.attachedThumb = null;
|
|
788
|
-
this.
|
|
816
|
+
this.attachedIsOn = null;
|
|
817
|
+
this.visuals.bind(elements);
|
|
789
818
|
if (presentation === "touch") {
|
|
790
819
|
registerSwitchTable();
|
|
791
|
-
|
|
792
|
-
this.
|
|
793
|
-
this.visuals.attach(elements, direction);
|
|
820
|
+
this.attachedIsOn = this.visuals.isOn;
|
|
821
|
+
this.visuals.attach(elements);
|
|
794
822
|
}
|
|
795
823
|
this.detachers = this.attachTracker(elements.surface);
|
|
796
824
|
}
|
|
@@ -845,7 +873,7 @@ var SwitchTouchController = class {
|
|
|
845
873
|
if (isOn === visuals.isOn) return;
|
|
846
874
|
const previous = visuals.isOn;
|
|
847
875
|
const time = now();
|
|
848
|
-
const previousSize = this.thumbSizes == null ? null : this.
|
|
876
|
+
const previousSize = this.thumbSizes == null ? null : this.attachedThumbSize() ?? this.thumbSizes[previous ? "on" : "off"];
|
|
849
877
|
const springs = visuals.rebaseToValue(isOn, previousSize, time);
|
|
850
878
|
const thumb = visuals.thumb;
|
|
851
879
|
if (thumb == null) {
|
|
@@ -859,6 +887,20 @@ var SwitchTouchController = class {
|
|
|
859
887
|
visuals.showSide(isOn, time, thumb.getVelocity("x", time), touchRelease);
|
|
860
888
|
}
|
|
861
889
|
}
|
|
890
|
+
/**
|
|
891
|
+
* The thumb's diameter the stylesheet sets for the state the switch attached
|
|
892
|
+
* in, or null where it sets none: read once, at the first value change
|
|
893
|
+
* before any press, with the input put back in that state for the read.
|
|
894
|
+
*/
|
|
895
|
+
attachedThumbSize() {
|
|
896
|
+
const elements = this.elements;
|
|
897
|
+
const isOn = this.attachedIsOn;
|
|
898
|
+
if (elements != null && isOn != null) {
|
|
899
|
+
this.attachedIsOn = null;
|
|
900
|
+
this.attachedThumb = readThumbSizeInState(elements.input, elements.thumb, isOn);
|
|
901
|
+
}
|
|
902
|
+
return this.attachedThumb;
|
|
903
|
+
}
|
|
862
904
|
/** The app changed the value mid-gesture: the value wins, nothing commits. */
|
|
863
905
|
endDragForValue() {
|
|
864
906
|
if (this.drag == null || this.released) return false;
|
package/dist/Table/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as useTableSortableState, An as useTableColumnSettings, At as _default$5, Bn as useTableColumnResize, Bt as TableTreeRowMeta, Cn as UseTableFilteringConfig, Dn as ColumnSettingsOption, En as useTableFiltering, Fn as columnResizeDirectionSign, Ft as _default, Gn as pixel, Gt as useTableTreeState, Hn as cellText, Ht as UseTableTreeStateConfig, In as columnResizeMinWidth, It as UseTableColumnsVirtualizationConfig, Jn as resolveColumnWidths, Jt as resolveStickySide, Kn as proportional, Kt as StickySide, Ln as columnResizeStep, Lt as UseTableRowsVirtualizationConfig, Mn as ColumnResizePlan, Mt as _default$3, Nn as ColumnResizeSnapshot, Nt as _default$2, On as TableColumnSettingsState, Ot as _default$7, Pn as UseTableColumnResizeConfig, Pt as _default$1, Qt as useTableSortable, Rn as isProportionalColumnWidth, Rt as useTableColumnsVirtualization, Sn as UseTableFilterStateOptions, Tn as useTableFilterState, Un as generateColumns, Ut as flattenTree, Vn as capitalize, Vt as UseTableTreeDataConfig, Wn as paginateData, Wt as useTableTreeData, Xt as useTableStickyColumns, Yn as sortRows, Yt as stickyOffsets, Zt as UseTableSortableConfig, _n as UseTableGroupedRowsConfig, an as UseTableRowStatusConfig, bn as useTableGroupedRows, cn as useTableRowIndex, dn as TablePaginationVariant, en as TableCustomRowStatus, fn as UseTablePaginationConfig, gn as useTableInfiniteScroll, hn as UseTableInfiniteScrollConfig, in as TableSemanticRowStatus, jn as useTableColumnSettingsState, jt as _default$4, kn as UseTableColumnSettingsConfig, kt as _default$6, ln as UseTableRowExpansionConfig, mn as isInteractiveRowClick, nn as TableRowStatusColor, on as useTableRowStatus, pn as useTablePagination, qn as resolveColumnFloorWidths, qt as UseTableStickyColumnsConfig, rn as TableRowStatusName, sn as UseTableRowIndexConfig, tn as TableRowStatus, un as useTableRowExpansion, vn as buildGroupedRows, wn as applyTableFilters, xn as TableFilterStateHandle, yn as isTableGroupHeader, zn as resizeColumnWidths, zt as useTableRowsVirtualization } from "../index-
|
|
1
|
+
import { $t as useTableSortableState, An as useTableColumnSettings, At as _default$5, Bn as useTableColumnResize, Bt as TableTreeRowMeta, Cn as UseTableFilteringConfig, Dn as ColumnSettingsOption, En as useTableFiltering, Fn as columnResizeDirectionSign, Ft as _default, Gn as pixel, Gt as useTableTreeState, Hn as cellText, Ht as UseTableTreeStateConfig, In as columnResizeMinWidth, It as UseTableColumnsVirtualizationConfig, Jn as resolveColumnWidths, Jt as resolveStickySide, Kn as proportional, Kt as StickySide, Ln as columnResizeStep, Lt as UseTableRowsVirtualizationConfig, Mn as ColumnResizePlan, Mt as _default$3, Nn as ColumnResizeSnapshot, Nt as _default$2, On as TableColumnSettingsState, Ot as _default$7, Pn as UseTableColumnResizeConfig, Pt as _default$1, Qt as useTableSortable, Rn as isProportionalColumnWidth, Rt as useTableColumnsVirtualization, Sn as UseTableFilterStateOptions, Tn as useTableFilterState, Un as generateColumns, Ut as flattenTree, Vn as capitalize, Vt as UseTableTreeDataConfig, Wn as paginateData, Wt as useTableTreeData, Xt as useTableStickyColumns, Yn as sortRows, Yt as stickyOffsets, Zt as UseTableSortableConfig, _n as UseTableGroupedRowsConfig, an as UseTableRowStatusConfig, bn as useTableGroupedRows, cn as useTableRowIndex, dn as TablePaginationVariant, en as TableCustomRowStatus, fn as UseTablePaginationConfig, gn as useTableInfiniteScroll, hn as UseTableInfiniteScrollConfig, in as TableSemanticRowStatus, jn as useTableColumnSettingsState, jt as _default$4, kn as UseTableColumnSettingsConfig, kt as _default$6, ln as UseTableRowExpansionConfig, mn as isInteractiveRowClick, nn as TableRowStatusColor, on as useTableRowStatus, pn as useTablePagination, qn as resolveColumnFloorWidths, qt as UseTableStickyColumnsConfig, rn as TableRowStatusName, sn as UseTableRowIndexConfig, tn as TableRowStatus, un as useTableRowExpansion, vn as buildGroupedRows, wn as applyTableFilters, xn as TableFilterStateHandle, yn as isTableGroupHeader, zn as resizeColumnWidths, zt as useTableRowsVirtualization } from "../index-DpoPQpHU.js";
|
|
2
2
|
import { $ as useTableSelectionState, A as TableLoadingState, B as TableSelectionToolbarSlots, C as TableFilterField, D as TableFilterVariant, E as TableFilterValue, F as TableRowMenuItem, G as TableTextOverflow, H as TableSortDirection, I as TableRowModel, J as TableSelectedKeysSetter, K as TableVerticalAlign, L as TableRowPatch, M as TablePlugin, N as TableProps, O as TableGroupPatch, P as TableRowListeners, Q as useTableSelection, R as TableRowProps, S as TableDividers, T as TableFilterState, U as TableSortEntry, W as TableSortState, X as UseTableSelectionConfig, Y as TableSelectionState, Z as UseTableSelectionStateConfig, _ as TableCellProps, b as TableColumnResizeContribution, g as TableCellPatch, h as ProportionalWidth, j as TablePanelPatch, k as TableHeaderPatch, m as PixelWidth, p as ColumnWidth, q as TableVirtualizationContribution, v as TableColumn, w as TableFilterFieldType, x as TableDensity, y as TableColumnAlign, z as TableSelectionToolbarProps } from "../useResizable-if_cP4fs.js";
|
|
3
3
|
export { type ColumnResizePlan, type ColumnResizeSnapshot, type ColumnSettingsOption, type ColumnWidth, type PixelWidth, type ProportionalWidth, type StickySide, _default as Table, _default$1 as TableBody, _default$2 as TableCell, type TableCellPatch, type TableCellProps, type TableColumn, type TableColumnAlign, type TableColumnResizeContribution, type TableColumnSettingsState, type TableCustomRowStatus, type TableDensity, type TableDividers, type TableFilterField, type TableFilterFieldType, type TableFilterState, type TableFilterStateHandle, type TableFilterValue, type TableFilterVariant, _default$3 as TableFooter, type TableGroupPatch, _default$4 as TableHeader, _default$5 as TableHeaderCell, type TableHeaderPatch, type TableLoadingState, type TablePaginationVariant, type TablePanelPatch, type TablePlugin, type TableProps, _default$6 as TableRow, type TableRowListeners, type TableRowMenuItem, type TableRowModel, type TableRowPatch, type TableRowProps, type TableRowStatus, type TableRowStatusColor, type TableRowStatusName, type TableSelectedKeysSetter, type TableSelectionState, _default$7 as TableSelectionToolbar, type TableSelectionToolbarProps, type TableSelectionToolbarSlots, type TableSemanticRowStatus, type TableSortDirection, type TableSortEntry, type TableSortState, type TableTextOverflow, type TableTreeRowMeta, type TableVerticalAlign, type TableVirtualizationContribution, type UseTableColumnResizeConfig, type UseTableColumnSettingsConfig, type UseTableColumnsVirtualizationConfig, type UseTableFilterStateOptions, type UseTableFilteringConfig, type UseTableGroupedRowsConfig, type UseTableInfiniteScrollConfig, type UseTablePaginationConfig, type UseTableRowExpansionConfig, type UseTableRowIndexConfig, type UseTableRowStatusConfig, type UseTableRowsVirtualizationConfig, type UseTableSelectionConfig, type UseTableSelectionStateConfig, type UseTableSortableConfig, type UseTableStickyColumnsConfig, type UseTableTreeDataConfig, type UseTableTreeStateConfig, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
package/dist/Table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-
|
|
1
|
+
import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-DbJVAmQH.js";
|
|
2
2
|
export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
|
@@ -21,8 +21,8 @@ import { t as _sfc_main$21 } from "./CheckboxInput-D7uMSWmO.js";
|
|
|
21
21
|
import { t as _sfc_main$22 } from "./ComponentIcon-B67QcA-d.js";
|
|
22
22
|
import { t as _sfc_main$23 } from "./Popover-ChbuU4Nc.js";
|
|
23
23
|
import { t as _sfc_main$24 } from "./DateInput-BU_M6g1j.js";
|
|
24
|
-
import { s as tableMessages } from "./loadCatalog
|
|
25
|
-
import { r as useCollator } from "./locale-
|
|
24
|
+
import { s as tableMessages } from "./loadCatalog--oXKoMve.js";
|
|
25
|
+
import { r as useCollator } from "./locale-BH7q40Eo.js";
|
|
26
26
|
import { t as _sfc_main$25 } from "./MultiSelector-DO33TcAb.js";
|
|
27
27
|
import { t as _sfc_main$26 } from "./NumberInput-CxB2Lt8R.js";
|
|
28
28
|
import { t as _sfc_main$27 } from "./Pagination-kyLNBr4_.js";
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-
|
|
1
|
+
import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as TextArea, type TextAreaChangeAction, type TextAreaChangeEvent, type TextAreaEmits, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaSlots, type TextAreaStatus, type TextAreaStatusType, type TextAreaWrap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-
|
|
1
|
+
import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, ot as TimeInputEntryError, rt as TimeInputEmits } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputEntryError, type TimeInputProps, type TimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-CNZCQgHF.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-DpoPQpHU.js";
|
|
2
2
|
import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-if_cP4fs.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-DpoPQpHU.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
|
@@ -19,14 +19,14 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
19
19
|
}>, {
|
|
20
20
|
label: string;
|
|
21
21
|
anchor: HTMLElement | null;
|
|
22
|
-
width: string | number;
|
|
23
22
|
isOpen: boolean;
|
|
23
|
+
width: string | number;
|
|
24
24
|
placement: LayerPlacement;
|
|
25
25
|
alignment: LayerAlignment;
|
|
26
26
|
padding: PopoverPadding;
|
|
27
|
-
hasAutoFocus: boolean;
|
|
28
27
|
presentation: AdaptivePresentation;
|
|
29
28
|
role: PopoverRole;
|
|
29
|
+
hasAutoFocus: boolean;
|
|
30
30
|
hasCloseButton: boolean;
|
|
31
31
|
closeButtonLabel: string;
|
|
32
32
|
isEnabled: boolean;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
|
37
37
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
38
38
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
39
39
|
isDisabled: boolean;
|
|
40
|
-
direction: ResizeDirection;
|
|
41
40
|
position: ResizePosition;
|
|
41
|
+
direction: ResizeDirection;
|
|
42
42
|
isReversed: boolean;
|
|
43
43
|
hasDivider: boolean;
|
|
44
44
|
isAlwaysVisible: boolean;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
20
20
|
as: StackElement;
|
|
21
|
-
direction: StackDirection;
|
|
22
21
|
wrap: StackWrap;
|
|
22
|
+
direction: StackDirection;
|
|
23
23
|
isScrollable: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -180,11 +180,11 @@ type __VLS_Slots = {} & {
|
|
|
180
180
|
default?: (props: typeof __VLS_1) => any;
|
|
181
181
|
};
|
|
182
182
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
183
|
-
"update:activeSheet": (value: string | null) => any;
|
|
184
183
|
cancel: (event: Event) => any;
|
|
184
|
+
"update:activeSheet": (value: string | null) => any;
|
|
185
185
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
186
|
-
"onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
|
|
187
186
|
onCancel?: ((event: Event) => any) | undefined;
|
|
187
|
+
"onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
|
|
188
188
|
}>, {
|
|
189
189
|
hasScrim: boolean;
|
|
190
190
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as CalendarSystem, s as AstryxMessages, t as AstryxUpstreamCatalog } from "./loadCatalog-
|
|
1
|
+
import { En as CalendarSystem, s as AstryxMessages, t as AstryxUpstreamCatalog } from "./loadCatalog-YkQJ7sxu.js";
|
|
2
2
|
import { ComputedRef, InjectionKey } from "vue";
|
|
3
3
|
//#region src/InternationalizationProvider/catalog.d.ts
|
|
4
4
|
/**
|
|
@@ -161,15 +161,15 @@ interface SelectorSlots {
|
|
|
161
161
|
type __VLS_Slots = SelectorSlots;
|
|
162
162
|
declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
163
163
|
search: (query: string) => any;
|
|
164
|
-
click: (event: MouseEvent) => any;
|
|
165
164
|
change: (value: string | number | null) => any;
|
|
165
|
+
click: (event: MouseEvent) => any;
|
|
166
166
|
keydown: (event: KeyboardEvent) => any;
|
|
167
167
|
"update:modelValue": (value: string | number | null) => any;
|
|
168
168
|
focus: (event: FocusEvent) => any;
|
|
169
169
|
}, string, import("vue").PublicProps, Readonly<SelectorProps> & Readonly<{
|
|
170
170
|
onSearch?: ((query: string) => any) | undefined;
|
|
171
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
172
171
|
onChange?: ((value: string | number | null) => any) | undefined;
|
|
172
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
173
173
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
174
174
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
175
175
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
@@ -177,17 +177,17 @@ declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {
|
|
|
177
177
|
indicatorPosition: SelectorIndicatorPosition;
|
|
178
178
|
status: SelectorStatusInput;
|
|
179
179
|
isOptional: boolean;
|
|
180
|
-
isLoading: boolean;
|
|
181
|
-
variant: SelectorVariant;
|
|
182
180
|
modelValue: string | number | null;
|
|
183
181
|
isLabelHidden: boolean;
|
|
184
182
|
isRequired: boolean;
|
|
183
|
+
isLoading: boolean;
|
|
185
184
|
statusVariant: SelectorStatusVariant;
|
|
185
|
+
variant: SelectorVariant;
|
|
186
186
|
disabled: boolean;
|
|
187
|
-
clearable: boolean;
|
|
188
187
|
presentation: SelectorPresentation;
|
|
189
|
-
isReadOnly: boolean;
|
|
190
188
|
searchable: boolean;
|
|
189
|
+
clearable: boolean;
|
|
190
|
+
isReadOnly: boolean;
|
|
191
191
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
192
192
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
193
193
|
declare const _default: typeof __VLS_export;
|
|
@@ -114,8 +114,8 @@ type __VLS_Slots = CardSlots;
|
|
|
114
114
|
declare const __VLS_base: import("vue").DefineComponent<CardProps, {
|
|
115
115
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
116
116
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
117
|
-
elevation: CardElevation;
|
|
118
117
|
variant: keyof CardVariantMap;
|
|
118
|
+
elevation: CardElevation;
|
|
119
119
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
121
|
declare const _default: typeof __VLS_export;
|
|
@@ -161,8 +161,8 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
161
161
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComplexSelectorProps<Value> & {
|
|
162
162
|
modelValue: Value;
|
|
163
163
|
}) & {
|
|
164
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
165
164
|
onChange?: ((value: Value) => any) | undefined;
|
|
165
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
166
166
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
167
167
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
168
168
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
|
@@ -172,7 +172,7 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
172
172
|
expose: (exposed: import("vue").ShallowUnwrapRef<ComplexSelectorHandle>) => void;
|
|
173
173
|
attrs: any;
|
|
174
174
|
slots: ComplexSelectorSlots<Value>;
|
|
175
|
-
emit: (((evt: "
|
|
175
|
+
emit: (((evt: "change", value: Value) => void) & ((evt: "click", event: MouseEvent) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
|
|
176
176
|
}>) => import("vue").VNode & {
|
|
177
177
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
178
178
|
};
|
|
@@ -10,12 +10,12 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
10
10
|
}>, {
|
|
11
11
|
type: "button" | "submit" | "reset";
|
|
12
12
|
isDisabled: boolean;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
variant: ButtonVariant;
|
|
13
15
|
isIconOnly: boolean;
|
|
14
16
|
elevation: ButtonElevation;
|
|
15
17
|
isInterruptible: boolean;
|
|
16
|
-
isLoading: boolean;
|
|
17
18
|
loadingLabel: string;
|
|
18
|
-
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|