origam 0.3.5 → 0.3.7
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/composables/Commons/hotkey.composable.d.ts.map +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/consts/Commons/hotkey.const.d.ts.map +1 -1
- package/dist/consts/index.d.ts +1 -0
- package/dist/consts/index.d.ts.map +1 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/Divider/OrigamDivider.vue +1 -1
- package/dist/src/components/Drawer/OrigamDrawer.vue +13 -13
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +1 -1
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +1 -1
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +1 -1
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +1 -1
- package/dist/src/components/Field/OrigamField.vue +1 -1
- package/dist/src/components/FileField/OrigamFileField.vue +1 -1
- package/dist/src/components/Form/OrigamForm.vue +1 -1
- package/dist/src/components/Grids/OrigamRow.vue +1 -1
- package/dist/src/components/Grids/OrigamSpacer.vue +1 -1
- package/dist/src/components/Highlight/OrigamHighlight.vue +1 -1
- package/dist/src/components/Icon/OrigamIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamSvgIcon.vue +4 -4
- package/dist/src/components/Img/OrigamImg.vue +6 -6
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +8 -2
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +1 -1
- package/dist/src/components/Input/OrigamInput.vue +1 -1
- package/dist/src/components/Label/OrigamLabel.vue +1 -1
- package/dist/src/components/Layout/OrigamLayout.vue +1 -1
- package/dist/src/components/Lazy/OrigamLazy.vue +1 -1
- package/dist/src/components/List/OrigamList.vue +1 -1
- package/dist/src/components/List/OrigamListChildren.vue +1 -1
- package/dist/src/components/List/OrigamListGroup.vue +1 -1
- package/dist/src/components/List/OrigamListGroupActivator.vue +1 -1
- package/dist/src/components/List/OrigamListItem.vue +1 -1
- package/dist/src/components/List/OrigamListSubheader.vue +1 -1
- package/dist/src/components/Loader/OrigamLoader.vue +1 -1
- package/dist/src/components/Main/OrigamMain.vue +1 -1
- package/dist/src/components/Menu/OrigamMenu.vue +1 -1
- package/dist/src/components/Messages/OrigamMessages.vue +1 -1
- package/dist/src/components/NumberField/OrigamNumberField.vue +1 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +1 -1
- package/dist/src/components/PageBuilder/OrigamEditWrapper.vue +1 -1
- package/dist/src/components/PageBuilder/OrigamPageBuilder.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +1 -1
- package/dist/src/components/Parallax/OrigamParallax.vue +1 -1
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -1
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +1 -1
- package/dist/src/components/Picker/OrigamPicker.vue +1 -1
- package/dist/src/components/Picker/OrigamPickerTitle.vue +1 -1
- package/dist/src/components/Progress/OrigamProgress.vue +1 -1
- package/dist/src/components/Progress/OrigamProgressCircular.vue +1 -1
- package/dist/src/components/Progress/OrigamProgressLinear.vue +1 -1
- package/dist/src/components/Radio/OrigamRadio.vue +1 -1
- package/dist/src/components/Radio/OrigamRadioBtn.vue +1 -1
- package/dist/src/components/Radio/OrigamRadioGroup.vue +1 -1
- package/dist/src/components/RatingField/OrigamRatingField.vue +1 -1
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +1 -1
- package/dist/src/components/Responsive/OrigamResponsive.vue +9 -1
- package/dist/src/components/Select/OrigamSelect.vue +13 -13
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +1 -1
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +1 -1
- package/dist/src/components/Sheet/OrigamSheet.vue +1 -1
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderFieldThumb.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +13 -13
- package/dist/src/components/Switch/OrigamSwitch.vue +8 -2
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +1 -1
- package/dist/src/components/Table/OrigamTable.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +1 -1
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +5 -5
- package/dist/src/components/Title/OrigamTitle.vue +1 -1
- package/dist/src/components/Toolbar/OrigamToolbar.vue +1 -1
- package/dist/src/components/Tooltip/OrigamTooltip.vue +1 -1
- package/dist/src/components/Transition/OrigamExpandX.vue +1 -1
- package/dist/src/components/Transition/OrigamExpandY.vue +1 -1
- package/dist/src/components/Transition/OrigamTransition.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateScale.vue +1 -1
- package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +1 -1
- package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +1 -1
- package/dist/src/components/Window/OrigamWindow.vue +1 -1
- package/dist/src/components/Window/OrigamWindowItem.vue +1 -1
- package/dist/src/composables/Commons/activator.composable.cjs +1 -1
- package/dist/src/composables/Commons/activator.composable.d.ts +1 -1
- package/dist/src/composables/Commons/activator.composable.js +1 -1
- package/dist/src/composables/Commons/active.composable.cjs +1 -1
- package/dist/src/composables/Commons/active.composable.js +1 -1
- package/dist/src/composables/Commons/adjacent.composable.cjs +1 -1
- package/dist/src/composables/Commons/adjacent.composable.d.ts +1 -1
- package/dist/src/composables/Commons/adjacent.composable.js +1 -1
- package/dist/src/composables/Commons/border.composable.cjs +1 -1
- package/dist/src/composables/Commons/border.composable.d.ts +1 -1
- package/dist/src/composables/Commons/border.composable.js +1 -1
- package/dist/src/composables/Commons/border.composable.spec.cjs +1 -1
- package/dist/src/composables/Commons/border.composable.spec.js +1 -1
- package/dist/src/composables/Commons/calendar.composable.cjs +1 -1
- package/dist/src/composables/Commons/calendar.composable.js +1 -1
- package/dist/src/composables/Commons/color.composable.cjs +1 -1
- package/dist/src/composables/Commons/color.composable.d.ts +1 -1
- package/dist/src/composables/Commons/color.composable.js +1 -1
- package/dist/src/composables/Commons/date.composable.cjs +1 -1
- package/dist/src/composables/Commons/date.composable.js +1 -1
- package/dist/src/composables/Commons/density.composable.cjs +1 -1
- package/dist/src/composables/Commons/density.composable.d.ts +1 -1
- package/dist/src/composables/Commons/density.composable.js +1 -1
- package/dist/src/composables/Commons/dimension.composable.cjs +1 -1
- package/dist/src/composables/Commons/dimension.composable.js +1 -1
- package/dist/src/composables/Commons/display.composable.cjs +1 -1
- package/dist/src/composables/Commons/display.composable.js +1 -1
- package/dist/src/composables/Commons/dragResizer.composable.cjs +1 -1
- package/dist/src/composables/Commons/dragResizer.composable.d.ts +1 -1
- package/dist/src/composables/Commons/dragResizer.composable.js +1 -1
- package/dist/src/composables/Commons/elevation.composable.cjs +1 -1
- package/dist/src/composables/Commons/elevation.composable.d.ts +1 -1
- package/dist/src/composables/Commons/elevation.composable.js +1 -1
- package/dist/src/composables/Commons/eventListener.composable.cjs +1 -1
- package/dist/src/composables/Commons/eventListener.composable.js +1 -1
- package/dist/src/composables/Commons/filters.composable.cjs +1 -1
- package/dist/src/composables/Commons/filters.composable.d.ts +1 -1
- package/dist/src/composables/Commons/filters.composable.js +1 -1
- package/dist/src/composables/Commons/focus.composable.cjs +1 -1
- package/dist/src/composables/Commons/focus.composable.js +1 -1
- package/dist/src/composables/Commons/goTo.composable.cjs +1 -1
- package/dist/src/composables/Commons/goTo.composable.d.ts +1 -1
- package/dist/src/composables/Commons/goTo.composable.js +1 -1
- package/dist/src/composables/Commons/group.composable.cjs +1 -1
- package/dist/src/composables/Commons/group.composable.d.ts +1 -1
- package/dist/src/composables/Commons/group.composable.js +11 -11
- package/dist/src/composables/Commons/hotkey.composable.cjs +4 -5
- package/dist/src/composables/Commons/hotkey.composable.d.ts +1 -1
- package/dist/src/composables/Commons/hotkey.composable.js +2 -3
- package/dist/src/composables/Commons/hover.composable.cjs +1 -1
- package/dist/src/composables/Commons/hover.composable.js +1 -1
- package/dist/src/composables/Commons/hydration.composable.cjs +1 -1
- package/dist/src/composables/Commons/hydration.composable.js +1 -1
- package/dist/src/composables/Commons/intersectionObserver.composable.cjs +1 -1
- package/dist/src/composables/Commons/intersectionObserver.composable.js +1 -1
- package/dist/src/composables/Commons/items.composable.cjs +1 -1
- package/dist/src/composables/Commons/items.composable.js +1 -1
- package/dist/src/composables/Commons/layout.composable.cjs +1 -1
- package/dist/src/composables/Commons/layout.composable.d.ts +1 -1
- package/dist/src/composables/Commons/layout.composable.js +3 -3
- package/dist/src/composables/Commons/loader.composable.cjs +1 -1
- package/dist/src/composables/Commons/loader.composable.js +1 -1
- package/dist/src/composables/Commons/locale.composable.cjs +2 -2
- package/dist/src/composables/Commons/locale.composable.js +2 -2
- package/dist/src/composables/Commons/location.composable.cjs +1 -1
- package/dist/src/composables/Commons/location.composable.js +1 -1
- package/dist/src/composables/Commons/margin.composable.cjs +1 -1
- package/dist/src/composables/Commons/margin.composable.js +1 -1
- package/dist/src/composables/Commons/padding.composable.cjs +1 -1
- package/dist/src/composables/Commons/padding.composable.js +1 -1
- package/dist/src/composables/DataTable/expand.composable.cjs +1 -1
- package/dist/src/composables/DataTable/expand.composable.js +1 -1
- package/dist/src/composables/DataTable/group.composable.cjs +1 -1
- package/dist/src/composables/DataTable/group.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/group.composable.js +1 -1
- package/dist/src/composables/DataTable/headers.composable.cjs +1 -1
- package/dist/src/composables/DataTable/headers.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/headers.composable.js +1 -1
- package/dist/src/composables/DataTable/items.composable.cjs +1 -1
- package/dist/src/composables/DataTable/items.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/items.composable.js +1 -1
- package/dist/src/composables/DataTable/pagination.composable.cjs +1 -1
- package/dist/src/composables/DataTable/pagination.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/pagination.composable.js +1 -1
- package/dist/src/composables/Form/form.composable.cjs +1 -1
- package/dist/src/composables/Form/form.composable.js +1 -1
- package/dist/src/composables/Icon/icon.composable.cjs +1 -1
- package/dist/src/composables/Icon/icon.composable.d.ts +1 -1
- package/dist/src/composables/Icon/icon.composable.js +1 -1
- package/dist/src/composables/List/list.composable.cjs +1 -1
- package/dist/src/composables/List/list.composable.js +1 -1
- package/dist/src/composables/PageBuilder/editor.composable.cjs +1 -1
- package/dist/src/composables/PageBuilder/editor.composable.js +1 -1
- package/dist/src/composables/index.cjs +12 -12
- package/dist/src/composables/index.d.ts +2 -2
- package/dist/src/composables/index.js +2 -2
- package/dist/src/consts/Btn/btn-toggle.const.d.ts +1 -1
- package/dist/src/consts/Commons/commons.const.d.ts +1 -1
- package/dist/src/consts/Commons/date.const.d.ts +1 -1
- package/dist/src/consts/Commons/display.const.d.ts +1 -1
- package/dist/src/consts/Commons/goTo.const.d.ts +1 -1
- package/dist/src/consts/Commons/hotkey.const.cjs +0 -1
- package/dist/src/consts/Commons/hotkey.const.js +0 -1
- package/dist/src/consts/Commons/layout.const.d.ts +1 -1
- package/dist/src/consts/Commons/locale.const.d.ts +1 -1
- package/dist/src/consts/DataTable/expand.const.d.ts +1 -1
- package/dist/src/consts/DataTable/group.const.d.ts +1 -1
- package/dist/src/consts/DataTable/headers.const.d.ts +1 -1
- package/dist/src/consts/ExpansionPanel/expansion-panel.const.d.ts +1 -1
- package/dist/src/consts/Form/form.const.d.ts +1 -1
- package/dist/src/consts/Icon/icon.const.d.ts +1 -1
- package/dist/src/consts/Icon/mdi.const.cjs +1 -1
- package/dist/src/consts/Icon/mdi.const.js +1 -1
- package/dist/src/consts/Menu/menu.const.d.ts +1 -1
- package/dist/src/consts/PageBuilder/edit.const.d.ts +1 -1
- package/dist/src/consts/index.cjs +11 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/consts/index.js +1 -0
- package/dist/src/interfaces/Commons/activator.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/commons.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/display.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/intersect.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/layout.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/location.interface.d.ts +1 -1
- package/dist/src/interfaces/DataTable/data-table.interface.d.ts +1 -1
- package/dist/src/interfaces/DataTable/expand.interface.d.ts +1 -1
- package/dist/src/interfaces/DataTable/group.interface.d.ts +1 -1
- package/dist/src/interfaces/DataTable/headers.interface.d.ts +1 -1
- package/dist/src/interfaces/DataTable/items.interface.d.ts +1 -1
- package/dist/src/interfaces/ExpensionPanel/expansion-panel-content.interface.d.ts +1 -1
- package/dist/src/interfaces/Form/form.interface.d.ts +1 -1
- package/dist/src/types/Commons/commons.type.d.ts +1 -1
- package/dist/src/types/Commons/layout.type.d.ts +1 -1
- package/dist/src/types/Commons/location.type.d.ts +1 -1
- package/dist/src/types/Icon/icon.type.d.ts +1 -1
- package/dist/src/utils/Commons/activator.util.cjs +1 -1
- package/dist/src/utils/Commons/activator.util.d.ts +1 -1
- package/dist/src/utils/Commons/activator.util.js +1 -1
- package/dist/src/utils/Commons/commons.util.cjs +1 -1
- package/dist/src/utils/Commons/commons.util.d.ts +1 -1
- package/dist/src/utils/Commons/commons.util.js +3 -3
- package/dist/src/utils/Commons/date.util.cjs +1 -1
- package/dist/src/utils/Commons/date.util.js +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.d.ts +1 -1
- package/dist/src/utils/Commons/getCurrentInstance.util.cjs +1 -1
- package/dist/src/utils/Commons/getCurrentInstance.util.js +1 -1
- package/dist/src/utils/Commons/goTo.util.d.ts +1 -1
- package/dist/src/utils/Commons/group.util.d.ts +1 -1
- package/dist/src/utils/Commons/hotkey.util.cjs +2 -2
- package/dist/src/utils/Commons/hotkey.util.js +1 -1
- package/dist/src/utils/Commons/layout.util.d.ts +1 -1
- package/dist/src/utils/Commons/locale.util.cjs +1 -1
- package/dist/src/utils/Commons/locale.util.d.ts +1 -1
- package/dist/src/utils/Commons/locale.util.js +1 -1
- package/dist/src/utils/Commons/location.util.cjs +1 -1
- package/dist/src/utils/Commons/location.util.d.ts +1 -1
- package/dist/src/utils/Commons/location.util.js +1 -1
- package/package.json +2 -3
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
</template>
|
|
79
79
|
|
|
80
80
|
<script setup>
|
|
81
|
+
import { computed, onMounted, onScopeDispose, Ref, StyleValue, toRef } from "vue";
|
|
81
82
|
import { OrigamVirtualScrollItem } from "../../components";
|
|
82
83
|
import { useDimension, useProps, useToggleScope, useVirtual } from "../../composables";
|
|
83
84
|
import { convertToUnit, getCurrentInstance, getScrollParent } from "../../utils";
|
|
84
|
-
import { computed, onMounted, onScopeDispose, Ref, StyleValue, toRef } from "vue";
|
|
85
85
|
const props = defineProps({
|
|
86
86
|
items: { type: Array, required: false },
|
|
87
87
|
renderless: { type: Boolean, required: false },
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup>
|
|
21
|
-
import { useProps, useResizeObserver } from "../../composables";
|
|
22
21
|
import { computed, StyleValue, useAttrs, watch } from "vue";
|
|
22
|
+
import { useProps, useResizeObserver } from "../../composables";
|
|
23
23
|
const props = defineProps({
|
|
24
24
|
renderless: { type: Boolean, required: false },
|
|
25
25
|
id: { type: String, required: false },
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
</template>
|
|
57
57
|
|
|
58
58
|
<script setup>
|
|
59
|
+
import { computed, provide, ref, shallowRef, StyleValue, watch } from "vue";
|
|
59
60
|
import { OrigamBtn, OrigamSpacer } from "../../components";
|
|
60
61
|
import { useGroup, useLocale, useProps } from "../../composables";
|
|
61
62
|
import { ORIGAM_WINDOW_GROUP_KEY, ORIGAM_WINDOW_KEY } from "../../consts";
|
|
62
63
|
import { vTouch } from "../../directives";
|
|
63
64
|
import { AXIS, DIRECTION, MDI_ICONS } from "../../enums";
|
|
64
|
-
import { computed, provide, ref, shallowRef, StyleValue, watch } from "vue";
|
|
65
65
|
const props = defineProps({
|
|
66
66
|
continuous: { type: Boolean, required: false },
|
|
67
67
|
nextIcon: { type: null, required: false, default: MDI_ICONS.CHEVRON_LEFT },
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup>
|
|
21
|
+
import { computed, inject, nextTick, shallowRef, StyleValue } from "vue";
|
|
21
22
|
import { OrigamTransition } from "../../components";
|
|
22
23
|
import { useGroupItem, useLazy, useProps, useSsrBoot } from "../../composables";
|
|
23
24
|
import { ORIGAM_WINDOW_GROUP_KEY, ORIGAM_WINDOW_KEY } from "../../consts";
|
|
24
25
|
import { vTouch } from "../../directives";
|
|
25
26
|
import { convertToUnit } from "../../utils";
|
|
26
|
-
import { computed, inject, nextTick, shallowRef, StyleValue } from "vue";
|
|
27
27
|
const props = defineProps({
|
|
28
28
|
transition: { type: [Boolean, String], required: false, default: void 0 },
|
|
29
29
|
reverseTransition: { type: [Boolean, String], required: false, default: void 0 },
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useActivator = useActivator;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _consts = require("../../consts/index.cjs");
|
|
9
10
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
var _vue = require("vue");
|
|
11
11
|
function useActivator(props, {
|
|
12
12
|
isActive,
|
|
13
13
|
isTop
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IActivatorProps } from '../../interfaces';
|
|
2
1
|
import { Ref } from 'vue';
|
|
2
|
+
import type { IActivatorProps } from '../../interfaces';
|
|
3
3
|
export declare function useActivator(props: IActivatorProps, { isActive, isTop }: {
|
|
4
4
|
isActive: Ref<boolean>;
|
|
5
5
|
isTop: Ref<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { computed, effectScope, inject, nextTick, onScopeDispose, ref, watch, watchEffect } from "vue";
|
|
1
2
|
import { useDelay } from "../../composables/index.js";
|
|
2
3
|
import { IN_BROWSER, ORIGAM_MENU_KEY } from "../../consts/index.js";
|
|
3
4
|
import { activator, getCurrentInstance, getTargetActivator, matchesSelector, refElement } from "../../utils/index.js";
|
|
4
|
-
import { computed, effectScope, inject, nextTick, onScopeDispose, ref, watch, watchEffect } from "vue";
|
|
5
5
|
export function useActivator(props, { isActive, isTop }) {
|
|
6
6
|
const vm = getCurrentInstance("useActivator");
|
|
7
7
|
const activatorEl = ref();
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useActive = useActive;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useActive(props, prop = "active", name = (0, _utils.getCurrentInstanceName)()) {
|
|
11
11
|
const isActive = (0, _composables.useVModel)(props, prop);
|
|
12
12
|
const activeClasses = (0, _vue.computed)(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
1
2
|
import { useVModel } from "../../composables/index.js";
|
|
2
3
|
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
export function useActive(props, prop = "active", name = getCurrentInstanceName()) {
|
|
5
5
|
const isActive = useVModel(props, prop);
|
|
6
6
|
const activeClasses = computed(() => {
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useAdjacent = useAdjacent;
|
|
7
7
|
exports.useAdjacentInner = useAdjacentInner;
|
|
8
|
-
var _utils = require("../../utils/index.cjs");
|
|
9
8
|
var _vue = require("vue");
|
|
9
|
+
var _utils = require("../../utils/index.cjs");
|
|
10
10
|
function useAdjacent(props, prependIcon, appendIcon) {
|
|
11
11
|
const vm = (0, _utils.getCurrentInstance)("OrigamAdjacent");
|
|
12
12
|
const slots = (0, _vue.useSlots)();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAdjacentInnerProps, IAdjacentProps } from '../../interfaces';
|
|
2
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { IAdjacentInnerProps, IAdjacentProps } from '../../interfaces';
|
|
3
3
|
export declare function useAdjacent(props: IAdjacentProps, prependIcon: Ref | ComputedRef, appendIcon: Ref | ComputedRef): {
|
|
4
4
|
hasPrependMedia: ComputedRef<boolean>;
|
|
5
5
|
hasPrepend: ComputedRef<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstance } from "../../utils/index.js";
|
|
2
1
|
import { computed, useSlots } from "vue";
|
|
2
|
+
import { getCurrentInstance } from "../../utils/index.js";
|
|
3
3
|
export function useAdjacent(props, prependIcon, appendIcon) {
|
|
4
4
|
const vm = getCurrentInstance("OrigamAdjacent");
|
|
5
5
|
const slots = useSlots();
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useBorder = useBorder;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _consts = require("../../consts/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useBorder(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
11
11
|
const borderClasses = (0, _vue.computed)(() => {
|
|
12
12
|
const border = (0, _vue.isRef)(props) ? props.value : props.border;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import type { IBorderProps } from '../../interfaces';
|
|
2
3
|
import { TDirectionBoth } from "../../types";
|
|
3
|
-
import { Ref } from 'vue';
|
|
4
4
|
export declare function useBorder(props: IBorderProps | Ref<boolean | number | string | TDirectionBoth | Array<TDirectionBoth> | null | undefined>, name?: string): {
|
|
5
5
|
borderClasses: import("vue").ComputedRef<string[]>;
|
|
6
6
|
borderStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed, isRef } from "vue";
|
|
1
2
|
import { BORDER_REGEX, DIRECTION_ARRAY } from "../../consts/index.js";
|
|
2
3
|
import { convertToUnit, formatBorderStylesVar, getCurrentInstanceName, isEmpty } from "../../utils/index.js";
|
|
3
|
-
import { computed, isRef } from "vue";
|
|
4
4
|
export function useBorder(props, name = getCurrentInstanceName()) {
|
|
5
5
|
const borderClasses = computed(() => {
|
|
6
6
|
const border = isRef(props) ? props.value : props.border;
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useCalendar = useCalendar;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useCalendar(props) {
|
|
11
11
|
const adapter = (0, _composables.useDate)();
|
|
12
12
|
const model = (0, _composables.useVModel)(props, "date", [], v => (0, _utils.wrapInArray)(v));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
1
2
|
import { useDate, useVModel } from "../../composables/index.js";
|
|
2
3
|
import { getWeek, wrapInArray } from "../../utils/index.js";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
export function useCalendar(props) {
|
|
5
5
|
const adapter = useDate();
|
|
6
6
|
const model = useVModel(
|
|
@@ -8,8 +8,8 @@ exports.useBothColor = useBothColor;
|
|
|
8
8
|
exports.useColor = useColor;
|
|
9
9
|
exports.useColorEffect = useColorEffect;
|
|
10
10
|
exports.useTextColor = useTextColor;
|
|
11
|
-
var _utils = require("../../utils/index.cjs");
|
|
12
11
|
var _vue = require("vue");
|
|
12
|
+
var _utils = require("../../utils/index.cjs");
|
|
13
13
|
function useColor(colors) {
|
|
14
14
|
const colorStyles = (0, _vue.computed)(() => {
|
|
15
15
|
const styles = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
1
2
|
import type { IColorProps } from "../../interfaces";
|
|
2
3
|
import type { TColor } from '../../types';
|
|
3
|
-
import type { ComputedRef, Ref } from 'vue';
|
|
4
4
|
export declare function useColor(colors: ComputedRef<{
|
|
5
5
|
background?: TColor;
|
|
6
6
|
text?: TColor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getForeground, isCssColor, isParsableColor, parseColor } from "../../utils/index.js";
|
|
2
1
|
import { computed, isRef, ref } from "vue";
|
|
2
|
+
import { getForeground, isCssColor, isParsableColor, parseColor } from "../../utils/index.js";
|
|
3
3
|
export function useColor(colors) {
|
|
4
4
|
const colorStyles = computed(() => {
|
|
5
5
|
const styles = [];
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createDate = createDate;
|
|
7
7
|
exports.useDate = useDate;
|
|
8
|
+
var _vue = require("vue");
|
|
8
9
|
var _composables = require("../../composables/index.cjs");
|
|
9
10
|
var _consts = require("../../consts/index.cjs");
|
|
10
11
|
var _services = require("../../services/index.cjs");
|
|
11
12
|
var _utils = require("../../utils/index.cjs");
|
|
12
|
-
var _vue = require("vue");
|
|
13
13
|
function createDate(options, locale) {
|
|
14
14
|
const _options = (0, _utils.mergeDeep)({
|
|
15
15
|
adapter: _services.DateAdapter,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { inject } from "vue";
|
|
1
2
|
import { useLocale } from "../../composables/index.js";
|
|
2
3
|
import { ORIGAM_DATE_OPTIONS_KEY } from "../../consts/index.js";
|
|
3
4
|
import { DateAdapter } from "../../services/index.js";
|
|
4
5
|
import { createInstance, mergeDeep } from "../../utils/index.js";
|
|
5
|
-
import { inject } from "vue";
|
|
6
6
|
export function createDate(options, locale) {
|
|
7
7
|
const _options = mergeDeep({
|
|
8
8
|
adapter: DateAdapter,
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDensity = useDensity;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _consts = require("../../consts/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useDensity(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
11
11
|
const densityClasses = (0, _vue.computed)(() => {
|
|
12
12
|
const density = (0, _vue.isRef)(props) ? props.value : props.density;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDensityProps } from '../../interfaces';
|
|
2
1
|
import { Ref } from 'vue';
|
|
2
|
+
import type { IDensityProps } from '../../interfaces';
|
|
3
3
|
export declare function useDensity(props: IDensityProps | Ref<number | string | undefined>, name?: string): {
|
|
4
4
|
densityClasses: import("vue").ComputedRef<string[]>;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed, isRef } from "vue";
|
|
1
2
|
import { PREDIFINED_DENSITY } from "../../consts/index.js";
|
|
2
3
|
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
3
|
-
import { computed, isRef } from "vue";
|
|
4
4
|
export function useDensity(props, name = getCurrentInstanceName()) {
|
|
5
5
|
const densityClasses = computed(() => {
|
|
6
6
|
const density = isRef(props) ? props.value : props.density;
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDimension = useDimension;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _consts = require("../../consts/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useDimension(props) {
|
|
11
11
|
const dimensionStyles = (0, _vue.computed)(() => {
|
|
12
12
|
const dimensions = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
1
2
|
import { DIMENSIONS_ARRAY } from "../../consts/index.js";
|
|
2
3
|
import { convertToUnit, toKebabCase } from "../../utils/index.js";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
export function useDimension(props) {
|
|
5
5
|
const dimensionStyles = computed(() => {
|
|
6
6
|
const dimensions = [];
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createDisplay = createDisplay;
|
|
7
7
|
exports.useDisplay = useDisplay;
|
|
8
|
+
var _vue = require("vue");
|
|
8
9
|
var _consts = require("../../consts/index.cjs");
|
|
9
10
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
var _vue = require("vue");
|
|
11
11
|
function useDisplay(props = {}, name = (0, _utils.getCurrentInstanceName)()) {
|
|
12
12
|
const display = (0, _vue.inject)(_consts.ORIGAM_DISPLAY_KEY);
|
|
13
13
|
if (!display) throw new Error("Could not find Origam display injection");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed, inject, reactive, shallowRef, toRefs, watchEffect } from "vue";
|
|
1
2
|
import { IN_BROWSER, ORIGAM_DISPLAY_KEY } from "../../consts/index.js";
|
|
2
3
|
import { getClientHeight, getClientWidth, getCurrentInstanceName, getPlatform, parseDisplayOptions } from "../../utils/index.js";
|
|
3
|
-
import { computed, inject, reactive, shallowRef, toRefs, watchEffect } from "vue";
|
|
4
4
|
export function useDisplay(props = {}, name = getCurrentInstanceName()) {
|
|
5
5
|
const display = inject(ORIGAM_DISPLAY_KEY);
|
|
6
6
|
if (!display) throw new Error("Could not find Origam display injection");
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDragResizer = useDragResizer;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _enums = require("../../enums/index.cjs");
|
|
9
10
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
var _vue = require("vue");
|
|
11
11
|
function useDragResizer(el, value, min, max, axis) {
|
|
12
12
|
const resizing = (0, _vue.ref)(false);
|
|
13
13
|
const removeListeners = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { computed, onUnmounted, ref } from "vue";
|
|
1
2
|
import { useEventListener } from "../../composables/index.js";
|
|
2
3
|
import { AXIS, CLIENT_POSITION } from "../../enums/index.js";
|
|
3
4
|
import { addWindowListener, clamp, getPosition } from "../../utils/index.js";
|
|
4
|
-
import { computed, onUnmounted, ref } from "vue";
|
|
5
5
|
export function useDragResizer(el, value, min, max, axis) {
|
|
6
6
|
const resizing = ref(false);
|
|
7
7
|
const removeListeners = [];
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useElevation = useElevation;
|
|
7
|
-
var _utils = require("../../utils/index.cjs");
|
|
8
7
|
var _vue = require("vue");
|
|
8
|
+
var _utils = require("../../utils/index.cjs");
|
|
9
9
|
function useElevation(props, flat = (0, _vue.ref)(false), bgColor = (0, _vue.ref)("rgb(0,0,0)"), name = (0, _utils.getCurrentInstanceName)()) {
|
|
10
10
|
const elevationClasses = (0, _vue.computed)(() => {
|
|
11
11
|
const elevation = (0, _vue.isRef)(props) ? props.value : props.elevation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import type { IElevationProps } from '../../interfaces';
|
|
2
3
|
import { TColor } from "../../types";
|
|
3
|
-
import { Ref } from 'vue';
|
|
4
4
|
export declare function useElevation(props: IElevationProps | Ref<number | string | undefined>, flat?: Ref<boolean>, bgColor?: Ref<TColor>, name?: string): {
|
|
5
5
|
elevationClasses: import("vue").ComputedRef<string[]>;
|
|
6
6
|
elevationStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatElevationStyle, getCurrentInstanceName } from "../../utils/index.js";
|
|
2
1
|
import { computed, isRef, ref } from "vue";
|
|
2
|
+
import { formatElevationStyle, getCurrentInstanceName } from "../../utils/index.js";
|
|
3
3
|
export function useElevation(props, flat = ref(false), bgColor = ref("rgb(0,0,0)"), name = getCurrentInstanceName()) {
|
|
4
4
|
const elevationClasses = computed(() => {
|
|
5
5
|
const elevation = isRef(props) ? props.value : props.elevation;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useEventListener = useEventListener;
|
|
7
|
-
var _utils = require("../../utils/index.cjs");
|
|
8
7
|
var _vue = require("vue");
|
|
8
|
+
var _utils = require("../../utils/index.cjs");
|
|
9
9
|
function useEventListener(...args) {
|
|
10
10
|
let target;
|
|
11
11
|
let events;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { noop, resolveUnref, tryOnScopeDispose, unrefElement } from "../../utils/index.js";
|
|
2
1
|
import { watch } from "vue";
|
|
2
|
+
import { noop, resolveUnref, tryOnScopeDispose, unrefElement } from "../../utils/index.js";
|
|
3
3
|
export function useEventListener(...args) {
|
|
4
4
|
let target;
|
|
5
5
|
let events;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useFilter = useFilter;
|
|
7
|
-
var _utils = require("../../utils/index.cjs");
|
|
8
7
|
var _vue = require("vue");
|
|
8
|
+
var _utils = require("../../utils/index.cjs");
|
|
9
9
|
function useFilter(props, items, query, options) {
|
|
10
10
|
const filteredItems = (0, _vue.ref)([]);
|
|
11
11
|
const filteredMatches = (0, _vue.ref)(/* @__PURE__ */new Map());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { MaybeRef, Ref } from 'vue';
|
|
1
2
|
import type { IFiltersProps, IInternalItem } from '../../interfaces';
|
|
2
3
|
import type { TFilterKeyFunctions, TFilterMatch } from '../../types';
|
|
3
|
-
import { MaybeRef, Ref } from 'vue';
|
|
4
4
|
export declare function useFilter<T extends IInternalItem>(props: IFiltersProps, items: MaybeRef<T[]>, query: Ref<string | undefined> | (() => string | undefined), options?: {
|
|
5
5
|
transform?: (item: T) => Record<string, unknown>;
|
|
6
6
|
customKeyFilter?: MaybeRef<TFilterKeyFunctions | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { filterItems } from "../../utils/index.js";
|
|
2
1
|
import { computed, ref, unref, watchEffect } from "vue";
|
|
2
|
+
import { filterItems } from "../../utils/index.js";
|
|
3
3
|
export function useFilter(props, items, query, options) {
|
|
4
4
|
const filteredItems = ref([]);
|
|
5
5
|
const filteredMatches = ref(/* @__PURE__ */ new Map());
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useFocus = useFocus;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useFocus(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
11
11
|
const isFocused = (0, _composables.useVModel)(props, "focused");
|
|
12
12
|
const focusClasses = (0, _vue.computed)(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
1
2
|
import { useVModel } from "../../composables/index.js";
|
|
2
3
|
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
export function useFocus(props, name = getCurrentInstanceName()) {
|
|
5
5
|
const isFocused = useVModel(props, "focused");
|
|
6
6
|
const focusClasses = computed(() => {
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createGoTo = createGoTo;
|
|
7
7
|
exports.useGoTo = useGoTo;
|
|
8
|
+
var _vue = require("vue");
|
|
8
9
|
var _composables = require("../../composables/index.cjs");
|
|
9
10
|
var _consts = require("../../consts/index.cjs");
|
|
10
11
|
var _utils = require("../../utils/index.cjs");
|
|
11
|
-
var _vue = require("vue");
|
|
12
12
|
function createGoTo(options, locale) {
|
|
13
13
|
return {
|
|
14
14
|
rtl: locale.isRtl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IGoToInstance, IGoToOptions, ILocaleInstance, IRtlInstance } from "../../interfaces";
|
|
2
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import type { IGoToInstance, IGoToOptions, ILocaleInstance, IRtlInstance } from "../../interfaces";
|
|
3
3
|
export declare function createGoTo(options: IGoToOptions | undefined, locale: ILocaleInstance & IRtlInstance): IGoToInstance;
|
|
4
4
|
export declare function useGoTo(_options?: Partial<IGoToOptions>): {
|
|
5
5
|
(target: ComponentPublicInstance | HTMLElement | string | number, options?: Partial<IGoToOptions>): Promise<unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { computed, inject } from "vue";
|
|
1
2
|
import { useRtl } from "../../composables/index.js";
|
|
2
3
|
import { ORIGAM_GO_TO_KEY } from "../../consts/index.js";
|
|
3
4
|
import { genDefaults, mergeDeep, scrollTo } from "../../utils/index.js";
|
|
4
|
-
import { computed, inject } from "vue";
|
|
5
5
|
export function createGoTo(options, locale) {
|
|
6
6
|
return {
|
|
7
7
|
rtl: locale.isRtl,
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useGroup = useGroup;
|
|
7
7
|
exports.useGroupItem = useGroupItem;
|
|
8
|
+
var _vue = require("vue");
|
|
8
9
|
var _composables = require("../../composables/index.cjs");
|
|
9
10
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
var _vue = require("vue");
|
|
11
11
|
function useGroupItem(props, injectKey, required = true) {
|
|
12
12
|
const vm = (0, _utils.getCurrentInstance)("useGroupItem");
|
|
13
13
|
if (!vm) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IGroupItemProps, IGroupItemProvide, IGroupProps, IGroupProvide } from '../../interfaces';
|
|
2
1
|
import { InjectionKey } from 'vue';
|
|
2
|
+
import type { IGroupItemProps, IGroupItemProvide, IGroupProps, IGroupProvide } from '../../interfaces';
|
|
3
3
|
export declare function useGroupItem(props: IGroupItemProps, injectKey: InjectionKey<IGroupProvide>, required?: boolean): IGroupItemProvide | null;
|
|
4
4
|
export declare function useGroup(props: IGroupProps, injectKey: InjectionKey<IGroupProvide>): IGroupProvide;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import { useVModel } from "../../composables/index.js";
|
|
2
|
-
import {
|
|
3
|
-
consoleWarn,
|
|
4
|
-
findChildrenWithProvide,
|
|
5
|
-
getCurrentInstance,
|
|
6
|
-
getIds,
|
|
7
|
-
getItemIndex,
|
|
8
|
-
getUid,
|
|
9
|
-
getValues,
|
|
10
|
-
wrapInArray
|
|
11
|
-
} from "../../utils/index.js";
|
|
12
1
|
import {
|
|
13
2
|
computed,
|
|
14
3
|
inject,
|
|
@@ -20,6 +9,17 @@ import {
|
|
|
20
9
|
unref,
|
|
21
10
|
watch
|
|
22
11
|
} from "vue";
|
|
12
|
+
import { useVModel } from "../../composables/index.js";
|
|
13
|
+
import {
|
|
14
|
+
consoleWarn,
|
|
15
|
+
findChildrenWithProvide,
|
|
16
|
+
getCurrentInstance,
|
|
17
|
+
getIds,
|
|
18
|
+
getItemIndex,
|
|
19
|
+
getUid,
|
|
20
|
+
getValues,
|
|
21
|
+
wrapInArray
|
|
22
|
+
} from "../../utils/index.js";
|
|
23
23
|
export function useGroupItem(props, injectKey, required = true) {
|
|
24
24
|
const vm = getCurrentInstance("useGroupItem");
|
|
25
25
|
if (!vm) {
|
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useHotkey = useHotkey;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _consts = require("../../consts/index.cjs");
|
|
8
|
-
var _hotkeyConst = require("../../consts/Commons/hotkey.const.ts");
|
|
9
9
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
var _vue = require("vue");
|
|
11
10
|
function useHotkey(keys, callback, options = {}) {
|
|
12
11
|
if (!_consts.IN_BROWSER) return function () {};
|
|
13
12
|
const {
|
|
@@ -88,14 +87,14 @@ function useHotkey(keys, callback, options = {}) {
|
|
|
88
87
|
const parts = (0, _utils.splitKeyCombination)(group.toLowerCase());
|
|
89
88
|
if (parts.length === 0) {
|
|
90
89
|
return {
|
|
91
|
-
modifiers: Object.fromEntries(
|
|
90
|
+
modifiers: Object.fromEntries(_consts.KEYBOARD_MODIFIERS.map(m => [m, false])),
|
|
92
91
|
actualKey: void 0
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
const modifiers = Object.fromEntries(
|
|
94
|
+
const modifiers = Object.fromEntries(_consts.KEYBOARD_MODIFIERS.map(m => [m, false]));
|
|
96
95
|
let actualKey;
|
|
97
96
|
for (const part of parts) {
|
|
98
|
-
if (
|
|
97
|
+
if (_consts.KEYBOARD_MODIFIERS.includes(part)) {
|
|
99
98
|
modifiers[part] = true;
|
|
100
99
|
} else {
|
|
101
100
|
actualKey = part;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IHotkeyOptions } from "../../interfaces";
|
|
2
1
|
import { MaybeRef } from "vue";
|
|
2
|
+
import { IHotkeyOptions } from "../../interfaces";
|
|
3
3
|
export declare function useHotkey(keys: MaybeRef<string | undefined>, callback: (e: KeyboardEvent) => void, options?: IHotkeyOptions): () => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IN_BROWSER } from "../../consts/index.js";
|
|
2
|
-
import { KEYBOARD_MODIFIERS } from "../../consts/Commons/hotkey.const.ts";
|
|
3
|
-
import { consoleWarn, getCurrentInstance, splitKeyCombination, splitKeySequence } from "../../utils/index.js";
|
|
4
1
|
import { onBeforeUnmount, toValue, watch } from "vue";
|
|
2
|
+
import { IN_BROWSER, KEYBOARD_MODIFIERS } from "../../consts/index.js";
|
|
3
|
+
import { consoleWarn, getCurrentInstance, splitKeyCombination, splitKeySequence } from "../../utils/index.js";
|
|
5
4
|
export function useHotkey(keys, callback, options = {}) {
|
|
6
5
|
if (!IN_BROWSER) return function() {
|
|
7
6
|
};
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useHover = useHover;
|
|
7
|
-
var _utils = require("../../utils/index.cjs");
|
|
8
7
|
var _vue = require("vue");
|
|
8
|
+
var _utils = require("../../utils/index.cjs");
|
|
9
9
|
function useHover(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
10
10
|
const hoverable = (0, _vue.ref)(false);
|
|
11
11
|
const isHover = (0, _vue.ref)(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
2
1
|
import { computed, ref, watch } from "vue";
|
|
2
|
+
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
3
3
|
export function useHover(props, name = getCurrentInstanceName()) {
|
|
4
4
|
const hoverable = ref(false);
|
|
5
5
|
const isHover = ref(false);
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useHydration = useHydration;
|
|
7
|
+
var _vue = require("vue");
|
|
7
8
|
var _composables = require("../../composables/index.cjs");
|
|
8
9
|
var _consts = require("../../consts/index.cjs");
|
|
9
|
-
var _vue = require("vue");
|
|
10
10
|
function useHydration() {
|
|
11
11
|
if (!_consts.IN_BROWSER) return (0, _vue.shallowRef)(false);
|
|
12
12
|
const {
|