@citruslime/ui 4.1.0-beta.15 → 4.1.0-beta.17
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/citrus-lime-ui.es.js +7 -4
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon } from "@iconify/vue";
|
|
2
2
|
import { defineComponent, ref, createElementBlock, openBlock, renderSlot, normalizeProps, guardReactiveProps, Fragment, createElementVNode, normalizeClass, createVNode, unref, Transition, withCtx, withDirectives, mergeProps, vShow, createBlock, Teleport, renderList, toDisplayString, createCommentVNode, computed, createTextVNode, mergeModels, useModel, watch, createSlots, vModelDynamic, shallowRef, toValue, toRefs, withKeys, onMounted, onUnmounted, withModifiers, nextTick, useAttrs, resolveComponent, inject, vModelCheckbox, watchEffect, vModelText, useCssVars, toHandlers, normalizeStyle, isRef, useSlots, provide } from "vue";
|
|
3
|
-
import { generateStringId, highlightText,
|
|
3
|
+
import { generateStringId, highlightText, validateEmail as validateEmail$1, isTouchDevice, escapeStringForRegExp } from "@citruslime/utils";
|
|
4
4
|
import { useFocusWithin, onKeyDown, toArray, unrefElement, tryOnScopeDispose, onClickOutside, useBreakpoints, breakpointsTailwind, useTimeoutFn, useMouseInElement, useMediaQuery, useThrottle, useDebounceFn, useMouse, useDraggable, defaultDocument, tryOnMounted, useThrottleFn, useWindowSize, useElementSize, useElementBounding } from "@vueuse/core";
|
|
5
5
|
import { useI18n, createI18n } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap } from "focus-trap";
|
|
@@ -6041,8 +6041,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6041
6041
|
}
|
|
6042
6042
|
});
|
|
6043
6043
|
}
|
|
6044
|
+
const isFineTouchDevice = computed(() => {
|
|
6045
|
+
return window.matchMedia("(pointer: coarse)").matches === false;
|
|
6046
|
+
});
|
|
6044
6047
|
const shouldEnableGlobalResizing = computed(() => {
|
|
6045
|
-
return props.options.allowColumnResizing !== false &&
|
|
6048
|
+
return props.options.allowColumnResizing !== false && isFineTouchDevice.value;
|
|
6046
6049
|
});
|
|
6047
6050
|
const columnsWithResizing = computed(() => {
|
|
6048
6051
|
return visibleColumns.value.map((column) => ({
|
|
@@ -6065,7 +6068,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6065
6068
|
return (_ctx, _cache) => {
|
|
6066
6069
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6067
6070
|
createElementVNode("thead", {
|
|
6068
|
-
class: normalizeClass(["cl:-top-1 cl:bg-white cl:z-20", [
|
|
6071
|
+
class: normalizeClass(["cl:-top-1 cl:bg-white cl:z-20 touch-none", [
|
|
6069
6072
|
_ctx.options.hideGridMobileView ? "cl:relative" : "cl:shadow cl:sticky cl:lg:bg-transparent cl:lg:relative cl:lg:shadow-none"
|
|
6070
6073
|
]])
|
|
6071
6074
|
}, [
|
|
@@ -6180,7 +6183,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6180
6183
|
};
|
|
6181
6184
|
})
|
|
6182
6185
|
]), 1032, ["loading", "initial-load", "bulk-edit-mode", "filter", "column", "time-zone", "quick-date-scope", "header-display-timezone", "options", "filter-dropdown-position"]),
|
|
6183
|
-
|
|
6186
|
+
_ctx.options.allowColumnResizing && isFineTouchDevice.value ? (openBlock(), createElementBlock("div", {
|
|
6184
6187
|
key: 1,
|
|
6185
6188
|
id: `resize-handle-${columnIndex}`,
|
|
6186
6189
|
ref_for: true,
|