@fileverse-dev/fortune-react 1.1.98 → 1.1.99
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/es/components/DataVerification/DropdownOption.js +3 -0
- package/es/components/SheetOverlay/helper.d.ts +0 -1
- package/es/components/SheetOverlay/helper.js +0 -13
- package/lib/components/DataVerification/DropdownOption.js +3 -0
- package/lib/components/SheetOverlay/helper.d.ts +0 -1
- package/lib/components/SheetOverlay/helper.js +0 -14
- package/package.json +2 -2
|
@@ -241,6 +241,9 @@ var DynamicInputList = function DynamicInputList(_a) {
|
|
|
241
241
|
e.target.focus();
|
|
242
242
|
},
|
|
243
243
|
key: item.id,
|
|
244
|
+
onKeyDown: function onKeyDown(e) {
|
|
245
|
+
e.stopPropagation();
|
|
246
|
+
},
|
|
244
247
|
className: "w-full",
|
|
245
248
|
placeholder: "Option ".concat(index + 1),
|
|
246
249
|
value: item.value,
|
|
@@ -6,5 +6,4 @@ export declare function incrementColumn(cell: string): string;
|
|
|
6
6
|
export declare function decrementColumn(cell: string): string;
|
|
7
7
|
export declare function incrementRow(cell: string): string;
|
|
8
8
|
export declare function decrementRow(cell: string): string;
|
|
9
|
-
export declare function countCommasOutsideQuotes(str: string): number;
|
|
10
9
|
export declare function countCommasBeforeCursor(editableDiv: HTMLDivElement): number;
|
|
@@ -84,19 +84,6 @@ export function decrementRow(cell) {
|
|
|
84
84
|
var newRowPart = Math.max(1, parsed.rowPart - 1);
|
|
85
85
|
return parsed.colPart + newRowPart;
|
|
86
86
|
}
|
|
87
|
-
export function countCommasOutsideQuotes(str) {
|
|
88
|
-
var inQuotes = false;
|
|
89
|
-
var count = 0;
|
|
90
|
-
for (var i = 0; i < str.length; i++) {
|
|
91
|
-
var char = str[i];
|
|
92
|
-
if (char === '"') {
|
|
93
|
-
inQuotes = !inQuotes;
|
|
94
|
-
} else if (char === ',' && !inQuotes) {
|
|
95
|
-
count++;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return count;
|
|
99
|
-
}
|
|
100
87
|
export function countCommasBeforeCursor(editableDiv) {
|
|
101
88
|
var selection = window.getSelection();
|
|
102
89
|
if (!(selection === null || selection === void 0 ? void 0 : selection.rangeCount)) return 0;
|
|
@@ -248,6 +248,9 @@ var DynamicInputList = function DynamicInputList(_a) {
|
|
|
248
248
|
e.target.focus();
|
|
249
249
|
},
|
|
250
250
|
key: item.id,
|
|
251
|
+
onKeyDown: function onKeyDown(e) {
|
|
252
|
+
e.stopPropagation();
|
|
253
|
+
},
|
|
251
254
|
className: "w-full",
|
|
252
255
|
placeholder: "Option ".concat(index + 1),
|
|
253
256
|
value: item.value,
|
|
@@ -6,5 +6,4 @@ export declare function incrementColumn(cell: string): string;
|
|
|
6
6
|
export declare function decrementColumn(cell: string): string;
|
|
7
7
|
export declare function incrementRow(cell: string): string;
|
|
8
8
|
export declare function decrementRow(cell: string): string;
|
|
9
|
-
export declare function countCommasOutsideQuotes(str: string): number;
|
|
10
9
|
export declare function countCommasBeforeCursor(editableDiv: HTMLDivElement): number;
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.countCommasBeforeCursor = countCommasBeforeCursor;
|
|
7
|
-
exports.countCommasOutsideQuotes = countCommasOutsideQuotes;
|
|
8
7
|
exports.decrementColumn = decrementColumn;
|
|
9
8
|
exports.decrementRow = decrementRow;
|
|
10
9
|
exports.getCursorPosition = getCursorPosition;
|
|
@@ -99,19 +98,6 @@ function decrementRow(cell) {
|
|
|
99
98
|
var newRowPart = Math.max(1, parsed.rowPart - 1);
|
|
100
99
|
return parsed.colPart + newRowPart;
|
|
101
100
|
}
|
|
102
|
-
function countCommasOutsideQuotes(str) {
|
|
103
|
-
var inQuotes = false;
|
|
104
|
-
var count = 0;
|
|
105
|
-
for (var i = 0; i < str.length; i++) {
|
|
106
|
-
var char = str[i];
|
|
107
|
-
if (char === '"') {
|
|
108
|
-
inQuotes = !inQuotes;
|
|
109
|
-
} else if (char === ',' && !inQuotes) {
|
|
110
|
-
count++;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return count;
|
|
114
|
-
}
|
|
115
101
|
function countCommasBeforeCursor(editableDiv) {
|
|
116
102
|
var selection = window.getSelection();
|
|
117
103
|
if (!(selection === null || selection === void 0 ? void 0 : selection.rangeCount)) return 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.1.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.99",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|