@retailcrm/embed-ui-v1-components 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host.cjs +1 -1
- package/dist/host.css +12 -5
- package/dist/host.js +2 -2
- package/package.json +1 -1
package/dist/host.cjs
CHANGED
|
@@ -6726,7 +6726,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6726
6726
|
}
|
|
6727
6727
|
};
|
|
6728
6728
|
const root = useElementRef();
|
|
6729
|
-
const textbox = vue.
|
|
6729
|
+
const textbox = vue.shallowRef(null);
|
|
6730
6730
|
const getSelectionStart = () => {
|
|
6731
6731
|
var _a;
|
|
6732
6732
|
return ((_a = textbox.value) == null ? void 0 : _a.selectionStart) ?? 0;
|
package/dist/host.css
CHANGED
|
@@ -1989,6 +1989,10 @@
|
|
|
1989
1989
|
height: auto;
|
|
1990
1990
|
min-height: var(--height);
|
|
1991
1991
|
}
|
|
1992
|
+
.ui-v1-textbox:has(input:disabled),
|
|
1993
|
+
.ui-v1-textbox:has(textarea:disabled) {
|
|
1994
|
+
background-color: #EEF1F3;
|
|
1995
|
+
}
|
|
1992
1996
|
.ui-v1-textbox_invalid {
|
|
1993
1997
|
--active-color: var(--ui-v1-textbox-danger-color);
|
|
1994
1998
|
--shadow-color: var(--ui-v1-textbox-danger-shadow-color);
|
|
@@ -2049,7 +2053,6 @@
|
|
|
2049
2053
|
.ui-v1-textbox input,
|
|
2050
2054
|
.ui-v1-textbox textarea {
|
|
2051
2055
|
flex-grow: 1;
|
|
2052
|
-
height: calc(var(--height) - 2px);
|
|
2053
2056
|
background: transparent;
|
|
2054
2057
|
border: none;
|
|
2055
2058
|
border-radius: inherit;
|
|
@@ -2069,8 +2072,12 @@
|
|
|
2069
2072
|
.ui-v1-textbox textarea:focus {
|
|
2070
2073
|
outline: none;
|
|
2071
2074
|
}
|
|
2075
|
+
.ui-v1-textbox input {
|
|
2076
|
+
height: calc(var(--height) - 2px);
|
|
2077
|
+
}
|
|
2072
2078
|
.ui-v1-textbox textarea {
|
|
2073
2079
|
min-height: calc(var(--height) - 2px);
|
|
2080
|
+
padding-block: 0;
|
|
2074
2081
|
}
|
|
2075
2082
|
.ui-v1-textbox_outlined input,
|
|
2076
2083
|
.ui-v1-textbox_outlined textarea {
|
|
@@ -2092,12 +2099,12 @@
|
|
|
2092
2099
|
border-start-end-radius: 0;
|
|
2093
2100
|
border-end-end-radius: 0;
|
|
2094
2101
|
}
|
|
2095
|
-
.ui-v1-textbox:has(input:hover),
|
|
2096
|
-
.ui-v1-textbox:has(textarea:hover) {
|
|
2102
|
+
.ui-v1-textbox:has(input:hover:not(:disabled)),
|
|
2103
|
+
.ui-v1-textbox:has(textarea:hover:not(:disabled)) {
|
|
2097
2104
|
--border-color: #AFB9C3;
|
|
2098
2105
|
}
|
|
2099
|
-
.ui-v1-textbox:has(input:focus),
|
|
2100
|
-
.ui-v1-textbox:has(textarea:focus) {
|
|
2106
|
+
.ui-v1-textbox:has(input:focus:not(:disabled)),
|
|
2107
|
+
.ui-v1-textbox:has(textarea:focus:not(:disabled)) {
|
|
2101
2108
|
--border-color: var(--active-color);
|
|
2102
2109
|
}
|
|
2103
2110
|
.ui-v1-textbox_outlined:has(input:focus),
|
package/dist/host.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { openBlock, createElementBlock, createElementVNode, defineComponent, inject, ref, computed, mergeProps, useSlots, createBlock, resolveDynamicComponent, unref, withCtx, createVNode, createCommentVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, provide, Fragment, renderList, Text, Comment, h, reactive, watch, nextTick, onMounted, onActivated, onDeactivated, onBeforeUnmount, Teleport, getCurrentInstance, Transition, normalizeProps, guardReactiveProps, normalizeStyle, withDirectives, vShow, useAttrs, toHandlers, withModifiers, useId,
|
|
4
|
+
import { openBlock, createElementBlock, createElementVNode, defineComponent, inject, ref, computed, mergeProps, useSlots, createBlock, resolveDynamicComponent, unref, withCtx, createVNode, createCommentVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, provide, Fragment, renderList, Text, Comment, h, reactive, watch, nextTick, onMounted, onActivated, onDeactivated, onBeforeUnmount, Teleport, getCurrentInstance, Transition, normalizeProps, guardReactiveProps, normalizeStyle, withDirectives, vShow, useAttrs, toHandlers, withModifiers, useId, shallowRef, createSlots } from "vue";
|
|
5
5
|
import { preview } from "@retailcrm/image-preview";
|
|
6
6
|
import isEqual from "lodash.isequal";
|
|
7
7
|
import { format, formatISO } from "date-fns";
|
|
@@ -6724,7 +6724,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6724
6724
|
}
|
|
6725
6725
|
};
|
|
6726
6726
|
const root = useElementRef();
|
|
6727
|
-
const textbox =
|
|
6727
|
+
const textbox = shallowRef(null);
|
|
6728
6728
|
const getSelectionStart = () => {
|
|
6729
6729
|
var _a;
|
|
6730
6730
|
return ((_a = textbox.value) == null ? void 0 : _a.selectionStart) ?? 0;
|
package/package.json
CHANGED