ropav 0.9.0 → 0.10.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 +2 -2
- package/dist/components/accordion/accordion-body.js +3 -10
- package/dist/components/accordion/accordion-heading.js +2 -5
- package/dist/components/accordion/accordion-indicator.js +2 -4
- package/dist/components/accordion/accordion-item.js +2 -2
- package/dist/components/accordion/accordion-panel.js +2 -4
- package/dist/components/accordion/accordion-trigger.js +2 -4
- package/dist/components/alert/alert-content.js +2 -5
- package/dist/components/alert/alert-description.js +2 -5
- package/dist/components/alert/alert-indicator.js +1 -1
- package/dist/components/alert/alert-title.js +2 -5
- package/dist/components/alert-dialog/alert-dialog-body.js +2 -5
- package/dist/components/alert-dialog/alert-dialog-footer.js +2 -5
- package/dist/components/alert-dialog/alert-dialog-header.js +2 -5
- package/dist/components/alert-dialog/alert-dialog-heading.js +1 -4
- package/dist/components/alert-dialog/alert-dialog-trigger.js +2 -5
- package/dist/components/autocomplete/autocomplete-indicator.js +1 -1
- package/dist/components/badge/badge-label.js +2 -5
- package/dist/components/badge/badge-root.js +0 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.js +1 -1
- package/dist/components/calendar/calendar-cell-indicator.js +2 -5
- package/dist/components/calendar/calendar-cell.js +2 -4
- package/dist/components/calendar/calendar-header-cell.js +2 -5
- package/dist/components/calendar/calendar-header.js +2 -5
- package/dist/components/calendar/calendar-heading.js +3 -5
- package/dist/components/calendar/calendar-nav-button.js +4 -7
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card-content.js +2 -5
- package/dist/components/card/card-description.js +2 -5
- package/dist/components/card/card-footer.js +2 -5
- package/dist/components/card/card-header.js +2 -5
- package/dist/components/card/card-root.js +0 -2
- package/dist/components/card/card-title.js +2 -5
- package/dist/components/checkbox/checkbox-content.js +1 -1
- package/dist/components/checkbox/checkbox-control.js +2 -5
- package/dist/components/chip/chip-label.js +2 -5
- package/dist/components/chip/chip-root.js +0 -2
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-input-group/color-input-group-input.js +2 -4
- package/dist/components/color-input-group/color-input-group-prefix.js +2 -5
- package/dist/components/color-input-group/color-input-group-root.js +1 -2
- package/dist/components/color-input-group/color-input-group-suffix.js +2 -5
- package/dist/components/color-input-group/color-input-group.context.d.ts +0 -13
- package/dist/components/color-input-group/color-input-group.context.js +1 -9
- package/dist/components/color-input-group/index.d.ts +2 -2
- package/dist/components/color-input-group/index.js +2 -2
- package/dist/components/color-picker/color-picker-popover.js +2 -5
- package/dist/components/color-picker/color-picker-root.js +1 -2
- package/dist/components/color-picker/color-picker-trigger.js +4 -6
- package/dist/components/color-picker/color-picker.context.d.ts +0 -10
- package/dist/components/color-picker/color-picker.context.js +1 -6
- package/dist/components/color-slider/color-slider-output.js +1 -1
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-indicator.js +2 -3
- package/dist/components/color-swatch-picker/color-swatch-picker-swatch.js +2 -3
- package/dist/components/disclosure/disclosure-body.js +3 -10
- package/dist/components/disclosure/disclosure-content.js +1 -1
- package/dist/components/disclosure/disclosure-heading.js +2 -5
- package/dist/components/disclosure/disclosure-indicator.js +1 -1
- package/dist/components/disclosure/disclosure-trigger.js +1 -1
- package/dist/components/disclosure/index.js +1 -1
- package/dist/components/drawer/drawer-body.js +2 -5
- package/dist/components/drawer/drawer-footer.js +2 -5
- package/dist/components/drawer/drawer-handle.js +2 -5
- package/dist/components/drawer/drawer-header.js +2 -5
- package/dist/components/drawer/drawer-heading.js +1 -4
- package/dist/components/drawer/drawer-trigger.js +2 -5
- package/dist/components/drop-zone/drop-zone-root.js +0 -2
- package/dist/components/drop-zone/drop-zone-trigger.js +2 -5
- package/dist/components/drop-zone/index.d.ts +0 -2
- package/dist/components/drop-zone/index.js +1 -2
- package/dist/components/dropdown/dropdown-menu.js +9 -8
- package/dist/components/dropdown/dropdown-popover.js +2 -5
- package/dist/components/dropdown/dropdown-trigger.js +4 -6
- package/dist/components/input-group/index.d.ts +0 -2
- package/dist/components/input-group/index.js +1 -2
- package/dist/components/input-group/input-group-input.js +1 -4
- package/dist/components/input-group/input-group-prefix.js +2 -5
- package/dist/components/input-group/input-group-root.js +0 -2
- package/dist/components/input-group/input-group-suffix.js +2 -5
- package/dist/components/input-group/input-group-textarea.js +1 -4
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-group.js +2 -5
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-separator.js +2 -5
- package/dist/components/input-otp/input-otp-slot.js +1 -1
- package/dist/components/kbd/index.d.ts +0 -2
- package/dist/components/kbd/index.js +1 -2
- package/dist/components/kbd/kbd-abbr.js +2 -4
- package/dist/components/kbd/kbd-content.js +2 -4
- package/dist/components/kbd/kbd-root.js +0 -2
- package/dist/components/link/index.d.ts +0 -2
- package/dist/components/link/index.js +1 -2
- package/dist/components/link/link-icon.js +1 -4
- package/dist/components/link/link-root.js +0 -2
- package/dist/components/menu-item/menu-item-root.js +4 -1
- package/dist/components/meter/meter-track.js +2 -5
- package/dist/components/modal/modal-footer.js +2 -5
- package/dist/components/modal/modal-header.js +2 -5
- package/dist/components/modal/modal-heading.js +1 -4
- package/dist/components/modal/modal-icon.js +2 -5
- package/dist/components/modal/modal-trigger.js +2 -5
- package/dist/components/pagination/pagination-content.js +2 -5
- package/dist/components/pagination/pagination-ellipsis.js +2 -5
- package/dist/components/pagination/pagination-item.js +2 -5
- package/dist/components/pagination/pagination-summary.js +2 -5
- package/dist/components/popover/index.d.ts +0 -2
- package/dist/components/popover/index.js +1 -2
- package/dist/components/popover/popover-content.js +2 -5
- package/dist/components/popover/popover-dialog.js +1 -4
- package/dist/components/popover/popover-heading.js +1 -4
- package/dist/components/popover/popover-root.js +0 -3
- package/dist/components/popover/popover-trigger.js +1 -4
- package/dist/components/progress-bar/progress-bar-track.js +2 -5
- package/dist/components/progress-circle/progress-circle-track-circle.js +1 -4
- package/dist/components/progress-circle/progress-circle-track.js +1 -4
- package/dist/components/radio/radio-content.js +1 -1
- package/dist/components/radio/radio-control.js +2 -5
- package/dist/components/range-calendar/index.js +1 -1
- package/dist/components/range-calendar/range-calendar-cell-indicator.js +2 -5
- package/dist/components/range-calendar/range-calendar-cell.js +4 -9
- package/dist/components/range-calendar/range-calendar-header-cell.js +2 -5
- package/dist/components/range-calendar/range-calendar-header.js +2 -5
- package/dist/components/range-calendar/range-calendar-heading.js +2 -5
- package/dist/components/range-calendar/range-calendar-nav-button.js +3 -7
- package/dist/components/search-field/index.js +1 -1
- package/dist/components/search-field/search-field-clear-button.js +2 -5
- package/dist/components/search-field/search-field-input.js +1 -4
- package/dist/components/search-field/search-field-search-icon.js +2 -5
- package/dist/components/segmented-control/segmented-control-indicator.js +1 -1
- package/dist/components/select/select-indicator.js +1 -1
- package/dist/components/sidebar/sidebar-collapsible-trigger.js +1 -1
- package/dist/components/sidebar/sidebar-collapsible.js +1 -1
- package/dist/components/sidebar/sidebar-group-label.js +1 -1
- package/dist/components/sidebar/sidebar-group.js +1 -1
- package/dist/components/sidebar/sidebar-item-icon.js +2 -5
- package/dist/components/sidebar/sidebar-item-indicator.js +1 -1
- package/dist/components/sidebar/sidebar-item-label.js +1 -1
- package/dist/components/sidebar/sidebar-item-trailing.js +1 -1
- package/dist/components/sidebar/sidebar-item.js +1 -1
- package/dist/components/sidebar/sidebar-panel.js +3 -3
- package/dist/components/sidebar/sidebar-rail.js +1 -1
- package/dist/components/sidebar/sidebar-separator.js +2 -5
- package/dist/components/sidebar/sidebar-sub-menu.js +1 -1
- package/dist/components/sidebar/sidebar-trigger.js +1 -1
- package/dist/components/sidebar/sidebar.types.d.ts +4 -2
- package/dist/components/slider/slider-fill.js +1 -1
- package/dist/components/slider/slider-marks.js +2 -5
- package/dist/components/slider/slider-output.js +1 -1
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/splitter/splitter-handle.js +1 -1
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/switch/switch-content.js +1 -1
- package/dist/components/switch/switch-control.js +2 -5
- package/dist/components/switch/switch-icon.js +2 -5
- package/dist/components/switch/switch-thumb.js +2 -5
- package/dist/components/table/table-body.js +2 -4
- package/dist/components/table/table-cell.js +2 -4
- package/dist/components/table/table-column-resizer.js +2 -4
- package/dist/components/table/table-column.js +2 -4
- package/dist/components/table/table-content.js +2 -4
- package/dist/components/table/table-drop-indicator.js +2 -4
- package/dist/components/table/table-footer.js +2 -5
- package/dist/components/table/table-header.js +2 -4
- package/dist/components/table/table-load-more-content.js +2 -5
- package/dist/components/table/table-load-more.js +2 -4
- package/dist/components/table/table-resizable-container.js +3 -5
- package/dist/components/table/table-root.js +0 -2
- package/dist/components/table/table-row.js +2 -4
- package/dist/components/table/table-scroll-container.js +2 -5
- package/dist/components/table/table-sortable-column-header.js +2 -5
- package/dist/components/table/table.context.d.ts +0 -9
- package/dist/components/table/table.context.js +1 -6
- package/dist/components/tabs/tabs-indicator.js +2 -4
- package/dist/components/tabs/tabs-list-container.js +1 -1
- package/dist/components/tabs/tabs-separator.js +2 -5
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast-action-button.js +2 -5
- package/dist/components/toast/toast-close-button.js +3 -5
- package/dist/components/toast/toast-content.js +2 -4
- package/dist/components/toast/toast-description.js +2 -4
- package/dist/components/toast/toast-indicator.js +3 -5
- package/dist/components/toast/toast-title.js +2 -4
- package/dist/components/tooltip/tooltip-trigger.js +1 -4
- package/dist/index.js +10 -15
- package/dist/ropav.min.css +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -10
- package/dist/components/badge/badge.context.d.ts +0 -6
- package/dist/components/badge/badge.context.js +0 -5
- package/dist/components/card/card.context.d.ts +0 -6
- package/dist/components/card/card.context.js +0 -5
- package/dist/components/chip/chip.context.d.ts +0 -6
- package/dist/components/chip/chip.context.js +0 -5
- package/dist/components/drop-zone/drop-zone.context.d.ts +0 -6
- package/dist/components/drop-zone/drop-zone.context.js +0 -5
- package/dist/components/input-group/input-group.context.d.ts +0 -14
- package/dist/components/input-group/input-group.context.js +0 -12
- package/dist/components/kbd/kbd.context.d.ts +0 -6
- package/dist/components/kbd/kbd.context.js +0 -5
- package/dist/components/link/link.context.d.ts +0 -13
- package/dist/components/link/link.context.js +0 -11
- package/dist/components/popover/popover.context.d.ts +0 -7
- package/dist/components/popover/popover.context.js +0 -6
- package/dist/styles-no-preflight.css +0 -3
- package/dist/styles-tailwind.css +0 -3
|
@@ -3,7 +3,6 @@ import icon_chevron_left_default from "../icons/icon-chevron-left.js";
|
|
|
3
3
|
import icon_chevron_right_default from "../icons/icon-chevron-right.js";
|
|
4
4
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
5
5
|
import { useCalendarStateContext } from "../calendar/calendar.context.js";
|
|
6
|
-
import { useRangeCalendarContext } from "./range-calendar.context.js";
|
|
7
6
|
import { computed, createComponent, createIf, createSlot, defineVaporComponent, on, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
|
|
8
7
|
//#region src/components/range-calendar/range-calendar-nav-button.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
9
8
|
var t0 = template("<button>", 1);
|
|
@@ -15,11 +14,8 @@ var range_calendar_nav_button_vue_vue_type_script_setup_true_vapor_true_lang_def
|
|
|
15
14
|
},
|
|
16
15
|
setup(__props) {
|
|
17
16
|
const props = __props;
|
|
18
|
-
const { slots } = useRangeCalendarContext();
|
|
19
17
|
const { calendar } = useCalendarStateContext();
|
|
20
18
|
const button = computed(() => props.slot === "previous" ? calendar.prevButton : calendar.nextButton);
|
|
21
|
-
const styles = computed(() => slots.value.navButton({ class: props.class }));
|
|
22
|
-
const iconStyles = computed(() => slots.value.navButtonIcon());
|
|
23
19
|
const interaction = useInteractionStates({ isDisabled: () => button.value.isDisabled.value });
|
|
24
20
|
const onFocus = () => {
|
|
25
21
|
interaction.onFocus();
|
|
@@ -41,7 +37,7 @@ var range_calendar_nav_button_vue_vue_type_script_setup_true_vapor_true_lang_def
|
|
|
41
37
|
const _interaction = unref(interaction);
|
|
42
38
|
const _button_isDisabled = _button.isDisabled;
|
|
43
39
|
setDynamicProps(n8, [{
|
|
44
|
-
class:
|
|
40
|
+
class: ["rp-range-calendar__nav-button", props.class],
|
|
45
41
|
"data-disabled": _dataAttr(_button_isDisabled.value),
|
|
46
42
|
"data-focus-visible": _dataAttr(_interaction.isFocusVisible.value),
|
|
47
43
|
"data-hovered": _dataAttr(_interaction.isHovered.value),
|
|
@@ -55,12 +51,12 @@ var range_calendar_nav_button_vue_vue_type_script_setup_true_vapor_true_lang_def
|
|
|
55
51
|
createSlot("default", null, () => {
|
|
56
52
|
return createIf(() => props.slot === "previous", () => {
|
|
57
53
|
return createComponent(unref(icon_chevron_left_default), {
|
|
58
|
-
class:
|
|
54
|
+
class: "rp-range-calendar__nav-button-icon",
|
|
59
55
|
"data-slot": "range-calendar-nav-button-icon"
|
|
60
56
|
});
|
|
61
57
|
}, () => {
|
|
62
58
|
return createComponent(unref(icon_chevron_right_default), {
|
|
63
|
-
class:
|
|
59
|
+
class: "rp-range-calendar__nav-button-icon",
|
|
64
60
|
"data-slot": "range-calendar-nav-button-icon"
|
|
65
61
|
});
|
|
66
62
|
}, 261);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { provideSearchFieldContext, useSearchFieldContext } from "./search-field.context.js";
|
|
2
1
|
import search_field_clear_button_default from "./search-field-clear-button.js";
|
|
2
|
+
import { provideSearchFieldContext, useSearchFieldContext } from "./search-field.context.js";
|
|
3
3
|
import search_field_group_default from "./search-field-group.js";
|
|
4
4
|
import search_field_input_default from "./search-field-input.js";
|
|
5
5
|
import search_field_root_default from "./search-field-root.js";
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import close_button_root_default from "../close-button/close-button-root.js";
|
|
2
|
-
import {
|
|
3
|
-
import { computed, createComponent, createSlot, defineVaporComponent, extend, unref } from "vue";
|
|
2
|
+
import { createComponent, createSlot, defineVaporComponent, extend, normalizeClass, unref } from "vue";
|
|
4
3
|
//#region src/components/search-field/search-field-clear-button.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
4
|
var search_field_clear_button_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
6
5
|
__name: "search-field-clear-button",
|
|
7
6
|
props: { class: {} },
|
|
8
7
|
setup(__props) {
|
|
9
8
|
const props = __props;
|
|
10
|
-
const { slots } = useSearchFieldContext();
|
|
11
|
-
const styles = computed(() => slots.value.clearButton({ class: props.class }));
|
|
12
9
|
/**
|
|
13
10
|
* `slot="clear"` is a live CSS contract, not a leftover of React Aria's slot system: the
|
|
14
11
|
* stylesheet strips the trailing radius and padding off the control through
|
|
@@ -21,7 +18,7 @@ var search_field_clear_button_vue_vue_type_script_setup_true_vapor_true_lang_def
|
|
|
21
18
|
*/
|
|
22
19
|
const clearSlot = { slot: "clear" };
|
|
23
20
|
return createComponent(unref(close_button_root_default), {
|
|
24
|
-
class: () =>
|
|
21
|
+
class: () => normalizeClass(["rp-search-field__clear-button", props.class]),
|
|
25
22
|
"data-slot": "search-field-clear-button",
|
|
26
23
|
$: [() => clearSlot]
|
|
27
24
|
}, extend(() => {
|
|
@@ -2,7 +2,6 @@ import { dataAttr } from "../../utils/assertion.js";
|
|
|
2
2
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
3
3
|
import { setFormValue } from "../../utils/form-value.js";
|
|
4
4
|
import { useTextFieldControlContext } from "../../composables/use-text-field.js";
|
|
5
|
-
import { useSearchFieldContext } from "./search-field.context.js";
|
|
6
5
|
import { computed, createTemplateRefSetter, defineVaporComponent, on, renderEffect, setDynamicProps, shallowRef, template, unref, watch } from "vue";
|
|
7
6
|
//#region src/components/search-field/search-field-input.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
8
7
|
var t0 = template("<input>", 1);
|
|
@@ -17,14 +16,12 @@ var search_field_input_vue_vue_type_script_setup_true_vapor_true_lang_default =
|
|
|
17
16
|
setup(__props, { emit: __emit }) {
|
|
18
17
|
const props = __props;
|
|
19
18
|
const emit = __emit;
|
|
20
|
-
const { slots } = useSearchFieldContext();
|
|
21
19
|
const control = useTextFieldControlContext();
|
|
22
20
|
const element = shallowRef(null);
|
|
23
21
|
const setElement = (next) => {
|
|
24
22
|
element.value = next instanceof HTMLInputElement ? next : null;
|
|
25
23
|
control?.registerElement(element.value);
|
|
26
24
|
};
|
|
27
|
-
const styles = computed(() => slots.value.input({ class: props.class }));
|
|
28
25
|
const attrs = computed(() => {
|
|
29
26
|
const merged = { ...control?.attrs.value };
|
|
30
27
|
if (props.placeholder !== void 0) merged["placeholder"] = props.placeholder;
|
|
@@ -86,7 +83,7 @@ var search_field_input_vue_vue_type_script_setup_true_vapor_true_lang_default =
|
|
|
86
83
|
const _control = unref(control);
|
|
87
84
|
const _interaction = unref(interaction);
|
|
88
85
|
setDynamicProps(n0, [{
|
|
89
|
-
class:
|
|
86
|
+
class: ["rp-search-field__input", props.class],
|
|
90
87
|
"data-disabled": _dataAttr(_control?.isDisabled.value),
|
|
91
88
|
"data-focus-visible": _dataAttr(_interaction.isFocusVisible.value),
|
|
92
89
|
"data-focused": _dataAttr(_interaction.isFocused.value),
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import icon_search_default from "../icons/icon-search.js";
|
|
2
|
-
import {
|
|
3
|
-
import { computed, createComponent, createSlot, defineVaporComponent, unref } from "vue";
|
|
2
|
+
import { createComponent, createSlot, defineVaporComponent, normalizeClass, unref } from "vue";
|
|
4
3
|
//#region src/components/search-field/search-field-search-icon.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
4
|
var search_field_search_icon_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
6
5
|
__name: "search-field-search-icon",
|
|
7
6
|
props: { class: {} },
|
|
8
7
|
setup(__props) {
|
|
9
8
|
const props = __props;
|
|
10
|
-
const { slots } = useSearchFieldContext();
|
|
11
|
-
const styles = computed(() => slots.value.searchIcon({ class: props.class }));
|
|
12
9
|
return createSlot("default", null, () => {
|
|
13
10
|
return createComponent(unref(icon_search_default), {
|
|
14
|
-
class: () =>
|
|
11
|
+
class: () => normalizeClass(["rp-search-field__search-icon", props.class]),
|
|
15
12
|
"data-slot": "search-field-search-icon"
|
|
16
13
|
}, null, true);
|
|
17
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSharedElement, useSharedElementScope } from "../../composables/use-shared-element.js";
|
|
4
4
|
import { useSegmentedControlContext, useSegmentedControlItemContext } from "./segmented-control.context.js";
|
|
5
5
|
import { createIf, defineVaporComponent, renderEffect, setAttr, setClass, setStaticTemplateRef, shallowRef, template, unref } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import icon_chevron_down_default from "../icons/icon-chevron-down.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { useSelectContext } from "./select.context.js";
|
|
5
5
|
import { computed, createComponent, createIf, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, template, unref, useSlots } from "vue";
|
|
6
6
|
//#region src/components/select/select-indicator.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { useSidebarCollapsibleContext, useSidebarContext } from "./sidebar.context.js";
|
|
5
5
|
import { computed, createSlot, defineVaporComponent, on, renderEffect, setAttr, setClass, setInsertionState, setProp, template, unref } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { useControllableState } from "../../composables/use-controllable-state.js";
|
|
5
5
|
import { provideSidebarCollapsibleContext, useSidebarContext } from "./sidebar.context.js";
|
|
6
6
|
import { computed, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, template, unref } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSidebarContext, useSidebarGroupContext } from "./sidebar.context.js";
|
|
4
4
|
import { createSlot, defineVaporComponent, onScopeDispose, renderEffect, setAttr, setClass, setInsertionState, setProp, template, unref } from "vue";
|
|
5
5
|
//#region src/components/sidebar/sidebar-group-label.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { provideSidebarGroupContext, useSidebarContext } from "./sidebar.context.js";
|
|
5
5
|
import { computed, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, shallowRef, template, unref } from "vue";
|
|
6
6
|
//#region src/components/sidebar/sidebar-group.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSidebarContext } from "./sidebar.context.js";
|
|
3
|
-
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template, unref } from "vue";
|
|
1
|
+
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
4
2
|
//#region src/components/sidebar/sidebar-item-icon.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
3
|
var t0 = template("<span aria-hidden=true data-slot=sidebar-item-icon>", 1);
|
|
6
4
|
var sidebar_item_icon_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -8,9 +6,8 @@ var sidebar_item_icon_vue_vue_type_script_setup_true_vapor_true_lang_default = /
|
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
const { slots } = useSidebarContext();
|
|
12
9
|
const n1 = t0();
|
|
13
|
-
renderEffect(() => setClass(n1,
|
|
10
|
+
renderEffect(() => setClass(n1, ["rp-sidebar__item-icon", props.class]));
|
|
14
11
|
setInsertionState(n1);
|
|
15
12
|
createSlot();
|
|
16
13
|
return n1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import icon_chevron_down_default from "../icons/icon-chevron-down.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { useSidebarCollapsibleContext, useSidebarContext } from "./sidebar.context.js";
|
|
5
5
|
import { computed, createComponent, createIf, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, template, unref, useSlots } from "vue";
|
|
6
6
|
//#region src/components/sidebar/sidebar-item-indicator.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSidebarContext } from "./sidebar.context.js";
|
|
4
4
|
import { createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, template, unref } from "vue";
|
|
5
5
|
//#region src/components/sidebar/sidebar-item-label.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSidebarContext } from "./sidebar.context.js";
|
|
4
4
|
import { createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, template, unref } from "vue";
|
|
5
5
|
//#region src/components/sidebar/sidebar-item-trailing.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { usePress } from "../../composables/use-press.js";
|
|
5
5
|
import { openLink } from "../../utils/open-link.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import drawer_backdrop_default from "../drawer/drawer-backdrop.js";
|
|
4
4
|
import drawer_content_default from "../drawer/drawer-content.js";
|
|
5
5
|
import drawer_dialog_default from "../drawer/drawer-dialog.js";
|
|
@@ -33,8 +33,8 @@ var sidebar_panel_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
33
33
|
}, () => {
|
|
34
34
|
return createComponent(drawer_backdrop_default, null, () => {
|
|
35
35
|
return createComponent(drawer_content_default, { placement: () => unref(side) }, () => {
|
|
36
|
-
return createComponent(drawer_dialog_default, { class: "
|
|
37
|
-
const n3 = createComponent(drawer_heading_default, { class: "
|
|
36
|
+
return createComponent(drawer_dialog_default, { class: "rp-drawer__dialog--flush" }, () => {
|
|
37
|
+
const n3 = createComponent(drawer_heading_default, { class: "rp-drawer__heading--hidden" }, () => {
|
|
38
38
|
const n2 = t0();
|
|
39
39
|
renderEffect(() => setText(n2, toDisplayString(label.value)));
|
|
40
40
|
return n2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { useMove } from "../../composables/use-move.js";
|
|
5
5
|
import { useSidebarContext } from "./sidebar.context.js";
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import separator_root_default from "../separator/separator-root.js";
|
|
3
|
-
import {
|
|
4
|
-
import { createComponent, defineVaporComponent, unref } from "vue";
|
|
2
|
+
import { createComponent, defineVaporComponent, normalizeClass } from "vue";
|
|
5
3
|
//#region src/components/sidebar/sidebar-separator.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
4
|
var sidebar_separator_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
7
5
|
__name: "sidebar-separator",
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
|
|
12
|
-
return createComponent(separator_root_default, { class: () => unref(composeSlotClassName)(unref(slots).separator, props.class) }, null, true);
|
|
9
|
+
return createComponent(separator_root_default, { class: () => normalizeClass(["rp-sidebar__separator", props.class]) }, null, true);
|
|
13
10
|
}
|
|
14
11
|
});
|
|
15
12
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useDisclosurePanel } from "../../composables/use-disclosure-panel.js";
|
|
4
4
|
import { provideSidebarSubMenuContext, useSidebarCollapsibleContext, useSidebarContext } from "./sidebar.context.js";
|
|
5
5
|
import { computed, createIf, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, setProp, setTemplateRefBinding, template, unref } from "vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import icon_chevron_left_default from "../icons/icon-chevron-left.js";
|
|
4
3
|
import icon_chevron_right_default from "../icons/icon-chevron-right.js";
|
|
4
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
5
5
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
6
6
|
import { useSidebarContext } from "./sidebar.context.js";
|
|
7
7
|
import { computed, createDynamicComponent, createSlot, defineVaporComponent, on, renderEffect, setAttr, setClass, setInsertionState, setProp, template, unref } from "vue";
|
|
@@ -26,8 +26,10 @@ export interface SidebarRootProps {
|
|
|
26
26
|
* content beside it the card instead. Both quiet the rail, whose line has nothing left to divide,
|
|
27
27
|
* and both take their gap and corner from `--sidebar-card-gap` and `--sidebar-card-radius`.
|
|
28
28
|
*
|
|
29
|
-
* A panel that should merely stop painting says so
|
|
30
|
-
* since nothing else paints that fill
|
|
29
|
+
* A panel that should merely stop painting says so in one declaration —
|
|
30
|
+
* `.rp-sidebar__panel { background-color: transparent }` — since nothing else paints that fill
|
|
31
|
+
* and there is no state set for it to flatten. Author CSS is unlayered, so it outranks the rule
|
|
32
|
+
* it replaces without having to say where it sits.
|
|
31
33
|
* @default "sidebar"
|
|
32
34
|
*/
|
|
33
35
|
variant?: SidebarVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSliderContext } from "./slider.context.js";
|
|
4
4
|
import { computed, defineVaporComponent, renderEffect, setAttr, setClass, setStyle, template, unref } from "vue";
|
|
5
5
|
//#region src/components/slider/slider-fill.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSliderContext } from "./slider.context.js";
|
|
3
|
-
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template, unref } from "vue";
|
|
1
|
+
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
4
2
|
//#region src/components/slider/slider-marks.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
3
|
var t0 = template("<div data-slot=slider-marks>", 1);
|
|
6
4
|
var slider_marks_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -8,9 +6,8 @@ var slider_marks_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
|
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
const { slots } = useSliderContext();
|
|
12
9
|
const n1 = t0();
|
|
13
|
-
renderEffect(() => setClass(n1,
|
|
10
|
+
renderEffect(() => setClass(n1, ["rp-slider__marks", props.class]));
|
|
14
11
|
setInsertionState(n1);
|
|
15
12
|
createSlot();
|
|
16
13
|
return n1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useSliderContext } from "./slider.context.js";
|
|
4
4
|
import { computed, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, setText, template, toDisplayString, unref } from "vue";
|
|
5
5
|
//#region src/components/slider/slider-output.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { visuallyHiddenStyle } from "../../utils/visually-hidden.js";
|
|
5
5
|
import { useSliderThumb } from "../../composables/use-slider-thumb.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { useSliderContext } from "./slider.context.js";
|
|
5
5
|
import { computed, createSlot, defineVaporComponent, on, renderEffect, setAttr, setClass, setInsertionState, setStyle, setTemplateRefBinding, template, unref } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
5
5
|
import { useMove } from "../../composables/use-move.js";
|
|
6
6
|
import { useNumberFormatter } from "../../composables/use-number-formatter.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
3
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
4
4
|
import { useSplitterContext } from "./splitter.context.js";
|
|
5
5
|
import { computed, createSlot, defineVaporComponent, renderEffect, setAttr, setClass, setInsertionState, setProp, setStaticTemplateRef, setStyle, shallowRef, template, unref, watch } from "vue";
|
|
6
6
|
//#region src/components/splitter/splitter-panel.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
2
|
+
import { composeSlotClassName } from "../../utils/compose.js";
|
|
3
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
4
4
|
import { useFormReset } from "../../composables/use-form-reset.js";
|
|
5
5
|
import { useFormValidation } from "../../composables/use-form-validation.js";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSwitchContext } from "./switch.context.js";
|
|
3
|
-
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template, unref } from "vue";
|
|
1
|
+
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
4
2
|
//#region src/components/switch/switch-control.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
3
|
var t0 = template("<span data-slot=switch-control>", 1);
|
|
6
4
|
var switch_control_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -8,9 +6,8 @@ var switch_control_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@_
|
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
const { slots } = useSwitchContext();
|
|
12
9
|
const n1 = t0();
|
|
13
|
-
renderEffect(() => setClass(n1,
|
|
10
|
+
renderEffect(() => setClass(n1, ["rp-switch__control", props.class]));
|
|
14
11
|
setInsertionState(n1);
|
|
15
12
|
createSlot();
|
|
16
13
|
return n1;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSwitchContext } from "./switch.context.js";
|
|
3
|
-
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template, unref } from "vue";
|
|
1
|
+
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
4
2
|
//#region src/components/switch/switch-icon.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
3
|
var t0 = template("<span data-slot=switch-icon>", 1);
|
|
6
4
|
var switch_icon_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -8,9 +6,8 @@ var switch_icon_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PU
|
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
const { slots } = useSwitchContext();
|
|
12
9
|
const n1 = t0();
|
|
13
|
-
renderEffect(() => setClass(n1,
|
|
10
|
+
renderEffect(() => setClass(n1, ["rp-switch__icon", props.class]));
|
|
14
11
|
setInsertionState(n1);
|
|
15
12
|
createSlot();
|
|
16
13
|
return n1;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSwitchContext } from "./switch.context.js";
|
|
3
|
-
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template, unref } from "vue";
|
|
1
|
+
import { createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
4
2
|
//#region src/components/switch/switch-thumb.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
3
|
var t0 = template("<span data-slot=switch-thumb>", 1);
|
|
6
4
|
var switch_thumb_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -8,9 +6,8 @@ var switch_thumb_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
|
|
|
8
6
|
props: { class: {} },
|
|
9
7
|
setup(__props) {
|
|
10
8
|
const props = __props;
|
|
11
|
-
const { slots } = useSwitchContext();
|
|
12
9
|
const n1 = t0();
|
|
13
|
-
renderEffect(() => setClass(n1,
|
|
10
|
+
renderEffect(() => setClass(n1, ["rp-switch__thumb", props.class]));
|
|
14
11
|
setInsertionState(n1);
|
|
15
12
|
createSlot();
|
|
16
13
|
return n1;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
|
-
import {
|
|
2
|
+
import { useTableGridContext, useTableVirtualizerContext } from "./table.context.js";
|
|
4
3
|
import table_virtualizer_item_default from "./table-virtualizer-item.js";
|
|
5
4
|
import table_drop_indicator_default from "./table-drop-indicator.js";
|
|
6
5
|
import { computed, createComponent, createDynamicComponent, createFor, createIf, createSlot, defineVaporComponent, extend, onMounted, shallowRef, unref, watch } from "vue";
|
|
@@ -15,7 +14,6 @@ var table_body_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PUR
|
|
|
15
14
|
},
|
|
16
15
|
setup(__props) {
|
|
17
16
|
const props = __props;
|
|
18
|
-
const { slots } = useTableContext();
|
|
19
17
|
const { collection, dropState } = useTableGridContext();
|
|
20
18
|
const virtualizer = useTableVirtualizerContext();
|
|
21
19
|
/**
|
|
@@ -72,7 +70,7 @@ var table_body_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PUR
|
|
|
72
70
|
const lastRowKey = computed(() => collection.rows.getLastKey());
|
|
73
71
|
return createComponent(table_virtualizer_item_default, { "layout-info": () => layoutInfo.value }, extend(() => {
|
|
74
72
|
return createDynamicComponent(() => unref(virtualizer) ? "div" : "tbody", {
|
|
75
|
-
class: () =>
|
|
73
|
+
class: () => ["rp-table__body", props.class],
|
|
76
74
|
"data-empty": () => unref(dataAttr)(isEmpty.value),
|
|
77
75
|
"data-slot": "table-body",
|
|
78
76
|
role: "rowgroup"
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
4
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
5
4
|
import { useVirtualizerItem } from "../virtualizer/use-virtualizer-item.js";
|
|
6
5
|
import { getCollectionTextValue } from "../../utils/text-value.js";
|
|
7
|
-
import {
|
|
6
|
+
import { useTableGridContext, useTableRowContext, useTableVirtualizerContext } from "./table.context.js";
|
|
8
7
|
import { tableCellId } from "./use-table-collection.js";
|
|
9
8
|
import { computed, createDynamicComponent, createSlot, defineVaporComponent, extend, setStaticTemplateRef, shallowRef, unref, watch } from "vue";
|
|
10
9
|
//#region src/components/table/table-cell.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
@@ -16,7 +15,6 @@ var table_cell_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PUR
|
|
|
16
15
|
},
|
|
17
16
|
setup(__props) {
|
|
18
17
|
const props = __props;
|
|
19
|
-
const { slots } = useTableContext();
|
|
20
18
|
const { collection, collectionId, keyboard, selection, tableId, treeColumn } = useTableGridContext();
|
|
21
19
|
const { cells, claimCellIndex, hasChildRows, isExpanded, level, rowKey } = useTableRowContext();
|
|
22
20
|
const cellKey = useId$1();
|
|
@@ -71,7 +69,7 @@ var table_cell_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PUR
|
|
|
71
69
|
const n1 = createDynamicComponent(() => unref(virtualizer) ? "div" : "td", {
|
|
72
70
|
id: () => cellId.value,
|
|
73
71
|
"aria-colindex": () => unref(virtualizer) && index.value >= 0 ? index.value + 1 : void 0,
|
|
74
|
-
class: () =>
|
|
72
|
+
class: () => ["rp-table__cell", props.class],
|
|
75
73
|
"data-collection": () => unref(collectionId),
|
|
76
74
|
"data-column-index": () => index.value < 0 ? void 0 : index.value,
|
|
77
75
|
"data-disabled": () => unref(dataAttr)(isDisabled.value),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
4
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
5
4
|
import { useMove } from "../../composables/use-move.js";
|
|
6
5
|
import { useDescription } from "../../composables/use-description.js";
|
|
7
6
|
import { visuallyHiddenStyle } from "../../utils/visually-hidden.js";
|
|
8
|
-
import { useTableColumnContext, useTableColumnLayoutContext
|
|
7
|
+
import { useTableColumnContext, useTableColumnLayoutContext } from "./table.context.js";
|
|
9
8
|
import { child, computed, defineVaporComponent, on, renderEffect, setAttr, setClass, setProp, setStaticTemplateRef, setStyle, setValue, shallowRef, template, unref, watch } from "vue";
|
|
10
9
|
//#region src/components/table/table-column-resizer.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
11
10
|
var t0 = template("<div data-slot=table-column-resizer role=presentation style=touch-action:none;><input aria-orientation=horizontal type=range>", 1);
|
|
@@ -18,7 +17,6 @@ var table_column_resizer_vue_vue_type_script_setup_true_vapor_true_lang_default
|
|
|
18
17
|
},
|
|
19
18
|
setup(__props) {
|
|
20
19
|
const props = __props;
|
|
21
|
-
const { slots } = useTableContext();
|
|
22
20
|
const { columnKey, headerId } = useTableColumnContext();
|
|
23
21
|
const resizable = useTableColumnLayoutContext();
|
|
24
22
|
const inputId = useId$1();
|
|
@@ -126,7 +124,7 @@ var table_column_resizer_vue_vue_type_script_setup_true_vapor_true_lang_default
|
|
|
126
124
|
const _states = unref(states);
|
|
127
125
|
const _inputId = unref(inputId);
|
|
128
126
|
const _columnWidth = columnWidth.value;
|
|
129
|
-
setClass(n1,
|
|
127
|
+
setClass(n1, ["rp-table__column-resizer", _props.class]);
|
|
130
128
|
setAttr(n1, "data-focus-visible", _dataAttr(_states.isFocusVisible.value));
|
|
131
129
|
setAttr(n1, "data-focused", _dataAttr(_states.isFocused.value));
|
|
132
130
|
setAttr(n1, "data-hovered", _dataAttr(_states.isHovered.value));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
4
3
|
import { useInteractionStates } from "../../composables/use-interaction-states.js";
|
|
5
4
|
import { useDescription } from "../../composables/use-description.js";
|
|
6
5
|
import { getCollectionTextValue } from "../../utils/text-value.js";
|
|
7
|
-
import { provideTableColumnContext, useTableColumnLayoutContext,
|
|
6
|
+
import { provideTableColumnContext, useTableColumnLayoutContext, useTableGridContext, useTableVirtualizerContext } from "./table.context.js";
|
|
8
7
|
import table_virtualizer_item_default from "./table-virtualizer-item.js";
|
|
9
8
|
import { tableColumnHeaderId } from "./use-table-collection.js";
|
|
10
9
|
import { computed, createComponent, createDynamicComponent, createSlot, defineVaporComponent, extend, setStaticTemplateRef, shallowRef, unref, watch } from "vue";
|
|
@@ -23,7 +22,6 @@ var table_column_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
|
|
|
23
22
|
},
|
|
24
23
|
setup(__props) {
|
|
25
24
|
const props = __props;
|
|
26
|
-
const { slots } = useTableContext();
|
|
27
25
|
const { collection, collectionId, keyboard, sort, sortDescriptor, tableId } = useTableGridContext();
|
|
28
26
|
const generatedKey = useId$1();
|
|
29
27
|
const columnKey = computed(() => props.id ?? generatedKey.value);
|
|
@@ -105,7 +103,7 @@ var table_column_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
|
|
|
105
103
|
"aria-colindex": () => ariaColIndex.value,
|
|
106
104
|
"aria-describedby": () => unref(describedBy),
|
|
107
105
|
"aria-sort": () => ariaSort.value,
|
|
108
|
-
class: () =>
|
|
106
|
+
class: () => ["rp-table__column", props.class],
|
|
109
107
|
"data-allows-sorting": () => unref(dataAttr)(allowsSorting.value),
|
|
110
108
|
"data-collection": () => unref(collectionId),
|
|
111
109
|
"data-focus-visible": () => unref(dataAttr)(unref(states).isFocusVisible.value),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { composeSlotClassName } from "../../utils/compose.js";
|
|
2
1
|
import { dataAttr } from "../../utils/assertion.js";
|
|
3
2
|
import { useId as useId$1 } from "../../composables/use-id.js";
|
|
4
3
|
import { useControllableState } from "../../composables/use-controllable-state.js";
|
|
@@ -13,7 +12,7 @@ import { useVirtualizerScroll } from "../../composables/use-virtualizer-scroll.j
|
|
|
13
12
|
import { useLocale } from "../../composables/use-locale.js";
|
|
14
13
|
import { useDescription } from "../../composables/use-description.js";
|
|
15
14
|
import { announce } from "../../utils/live-announcer.js";
|
|
16
|
-
import { provideTableColumnLayoutContext, provideTableGridContext, provideTableVirtualizerContext,
|
|
15
|
+
import { provideTableColumnLayoutContext, provideTableGridContext, provideTableVirtualizerContext, useTableResizableContainerContext } from "./table.context.js";
|
|
17
16
|
import { useTableCollection } from "./use-table-collection.js";
|
|
18
17
|
import { TreeDropTargetDelegate } from "../../utils/dnd-tree-drop-target-delegate.js";
|
|
19
18
|
import { toTableDragCollection } from "./table-drag-collection.js";
|
|
@@ -54,7 +53,6 @@ var table_content_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
54
53
|
setup(__props, { emit: __emit }) {
|
|
55
54
|
const props = __props;
|
|
56
55
|
const emit = __emit;
|
|
57
|
-
const { slots } = useTableContext();
|
|
58
56
|
const tableId = useId$1();
|
|
59
57
|
const collectionId = useId$1();
|
|
60
58
|
const element = shallowRef(null);
|
|
@@ -443,7 +441,7 @@ var table_content_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
443
441
|
"aria-describedby": () => unref(describedBy),
|
|
444
442
|
"aria-multiselectable": () => unref(selection).selectionMode.value === "multiple" ? true : void 0,
|
|
445
443
|
"aria-rowcount": () => isVirtualized ? unref(collection).rows.size.value + 1 : void 0,
|
|
446
|
-
class: () =>
|
|
444
|
+
class: () => ["rp-table__content", props.class],
|
|
447
445
|
"data-allows-dragging": () => unref(dataAttr)(unref(dragState) != null),
|
|
448
446
|
"data-collection": () => unref(collectionId),
|
|
449
447
|
"data-drop-target": () => unref(dataAttr)(isRootDropTarget.value),
|