eco-vue-js 0.11.52 → 0.11.53
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/components/Input/components/ContentEditable.vue.d.ts +1 -3
- package/dist/components/Input/components/ContentEditable.vue.d.ts.map +1 -1
- package/dist/components/Input/components/ContentEditable.vue2.js +23 -6
- package/dist/components/Input/models/utils.d.ts +1 -3
- package/dist/components/Input/models/utils.d.ts.map +1 -1
- package/dist/components/Input/models/utils.js +6 -10
- package/dist/components/Input/types.d.ts +1 -0
- package/dist/components/Input/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/tailwind-base/plugins/w-ripple.ts +5 -5
|
@@ -12,9 +12,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
12
12
|
blur: () => void;
|
|
13
13
|
wrapSelection: (value: WrapSelection) => void;
|
|
14
14
|
setCaret: (indexStart: number, indexEnd?: number) => void;
|
|
15
|
-
getCaret: () => import('../models/utils').CaretOffset
|
|
16
|
-
trail: number;
|
|
17
|
-
};
|
|
15
|
+
getCaret: () => import('../models/utils').CaretOffset;
|
|
18
16
|
insertPlain: (text: string) => void;
|
|
19
17
|
offsetWidth: number;
|
|
20
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAgBA;
|
|
1
|
+
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAgBA;AAyUA,OAAO,KAAK,EAAC,QAAQ,EAAG,aAAa,EAAC,MAAM,UAAU,CAAA;AAStD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAC;;;;2BAmJ4B,aAAa,KAAG,IAAI;2BATpB,MAAM,aAAa,MAAM;;wBAhB5B,MAAM;;;;;;;;;;;;;;;AAuPjC,wBAUG"}
|
|
@@ -101,10 +101,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
const insertPlain = (text) => {
|
|
102
102
|
const root = elementRef.value;
|
|
103
103
|
if (!root) return;
|
|
104
|
-
const { start, end
|
|
104
|
+
const { start, end } = getCaret();
|
|
105
105
|
const currentText = getCurrentText();
|
|
106
|
-
const next = (currentText ?? "").slice(0, start) +
|
|
107
|
-
const caretAfter = start + text.length
|
|
106
|
+
const next = (currentText ?? "").slice(0, start) + text + ((currentText ?? "").slice(end) || " ");
|
|
107
|
+
const caretAfter = start + text.length;
|
|
108
108
|
emit("update:model-value", props.maxLength && next.length > props.maxLength ? next.substring(0, props.maxLength) : next, true);
|
|
109
109
|
nextTick(() => setCaret(props.maxLength ? Math.min(caretAfter, props.maxLength) : caretAfter));
|
|
110
110
|
};
|
|
@@ -159,10 +159,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
159
159
|
}
|
|
160
160
|
if (value.end.endsWith(item) && end.startsWith(item)) end = end.slice(item.length);
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
if (value.prepare) {
|
|
163
|
+
start = value.prepare(start, 0);
|
|
164
|
+
end = value.prepare(end, offset);
|
|
165
|
+
}
|
|
166
|
+
if (value.lineBreakPadding) {
|
|
167
|
+
if (start.endsWith("\n")) start += " ";
|
|
168
|
+
if (end.startsWith("\n")) end = " " + end;
|
|
169
|
+
}
|
|
170
|
+
newText = start + (value.start || value.end) + end;
|
|
163
171
|
} else {
|
|
164
172
|
let start = currentText.slice(0, offsets.start);
|
|
165
|
-
|
|
173
|
+
let middle = currentText.slice(offsets.start, offsets.end);
|
|
166
174
|
let end = currentText.slice(offsets.end);
|
|
167
175
|
for (const item of collapseList) {
|
|
168
176
|
if (value.start.startsWith(item) && start.endsWith(item)) {
|
|
@@ -171,7 +179,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
179
|
}
|
|
172
180
|
if (value.end.endsWith(item) && end.startsWith(item)) end = end.slice(item.length);
|
|
173
181
|
}
|
|
174
|
-
|
|
182
|
+
if (value.prepare) {
|
|
183
|
+
start = value.prepare(start, 0);
|
|
184
|
+
middle = value.prepare(middle, offsets.start);
|
|
185
|
+
end = value.prepare(end, offsets.end);
|
|
186
|
+
}
|
|
187
|
+
if (value.lineBreakPadding) {
|
|
188
|
+
if (start.endsWith("\n")) start += " ";
|
|
189
|
+
if (end.startsWith("\n")) end = " " + end;
|
|
190
|
+
}
|
|
191
|
+
newText = start + value.start + middle + value.end + end;
|
|
175
192
|
}
|
|
176
193
|
newCursorStart = offsets.start + startLen;
|
|
177
194
|
if (offsets.start !== offsets.end) newCursorEnd = newCursorStart + offsets.end - offsets.start;
|
|
@@ -3,7 +3,5 @@ export type CaretOffset = {
|
|
|
3
3
|
end: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const setCaretOffset: (parent: Element | null | undefined, indexStart: number, indexEnd: number | undefined) => void;
|
|
6
|
-
export declare const getCaretOffset: (parent: Element | null | undefined) => CaretOffset
|
|
7
|
-
trail: number;
|
|
8
|
-
};
|
|
6
|
+
export declare const getCaretOffset: (parent: Element | null | undefined) => CaretOffset;
|
|
9
7
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/models/utils.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,WAAW,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAA;AAEtD,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,SAelH,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/models/utils.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,WAAW,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAA;AAEtD,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,SAelH,CAAA;AAqBD,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,KAAG,WAUnE,CAAA"}
|
|
@@ -35,26 +35,22 @@ const getOffsetFromNode = (parent, targetNode, targetOffset, isStart) => {
|
|
|
35
35
|
let node, offset = 0;
|
|
36
36
|
while (node = walker.nextNode()) {
|
|
37
37
|
if (node.parentElement?.contentEditable === "false") {
|
|
38
|
-
if (isStart && node === targetNode) return { offset
|
|
38
|
+
if (isStart && node === targetNode) return { offset };
|
|
39
39
|
} else if (node === targetNode) {
|
|
40
|
-
|
|
41
|
-
if (text?.[targetOffset] === "\n") {
|
|
42
|
-
return { offset: offset + targetOffset, trail: 0 };
|
|
43
|
-
}
|
|
44
|
-
return { offset: offset + targetOffset, trail: 0 };
|
|
40
|
+
return { offset: offset + targetOffset };
|
|
45
41
|
}
|
|
46
42
|
offset += node.nodeValue?.length ?? 0;
|
|
47
43
|
}
|
|
48
|
-
return { offset
|
|
44
|
+
return { offset };
|
|
49
45
|
};
|
|
50
46
|
const getCaretOffset = (parent) => {
|
|
51
|
-
if (!parent) return { start: 0, end: 0
|
|
47
|
+
if (!parent) return { start: 0, end: 0 };
|
|
52
48
|
const selection = window.getSelection();
|
|
53
|
-
if (!selection || selection.rangeCount === 0) return { start: 0, end: 0
|
|
49
|
+
if (!selection || selection.rangeCount === 0) return { start: 0, end: 0 };
|
|
54
50
|
const range = selection.getRangeAt(0);
|
|
55
51
|
const start = getOffsetFromNode(parent, range.startContainer, range.startOffset, true);
|
|
56
52
|
const end = range.startOffset !== range.endOffset ? getOffsetFromNode(parent, range.endContainer, range.endOffset, false) : start;
|
|
57
|
-
return { start: start.offset, end: end.offset
|
|
53
|
+
return { start: start.offset, end: end.offset };
|
|
58
54
|
};
|
|
59
55
|
|
|
60
56
|
export { getCaretOffset, setCaretOffset };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ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AAM,CAAA;IACd,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,GAAG;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,YAAY,CAAC;QAAC,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAA;IACtG,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,qBAAqB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -48,8 +48,8 @@ const pluginRipple = plugin(function ({matchUtilities, addUtilities, addBase}) {
|
|
|
48
48
|
|
|
49
49
|
'w-ripple-active:not(:active)': () => ({
|
|
50
50
|
'&::before': {
|
|
51
|
-
animation: 'ripple-active infinite linear alternate 0.5s'
|
|
52
|
-
}
|
|
51
|
+
animation: 'ripple-active infinite linear alternate 0.5s',
|
|
52
|
+
},
|
|
53
53
|
}),
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -69,11 +69,11 @@ const pluginRipple = plugin(function ({matchUtilities, addUtilities, addBase}) {
|
|
|
69
69
|
addBase({
|
|
70
70
|
'@keyframes ripple-active': {
|
|
71
71
|
'0%': {
|
|
72
|
-
|
|
72
|
+
opacity: '0',
|
|
73
73
|
},
|
|
74
74
|
'100%': {
|
|
75
|
-
|
|
76
|
-
}
|
|
75
|
+
opacity: '0.15',
|
|
76
|
+
},
|
|
77
77
|
},
|
|
78
78
|
})
|
|
79
79
|
})
|