Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit ae33aa7

Browse files
committed
Merge branch 'improved_rollup_and_footer'
2 parents 075ba07 + 712549c commit ae33aa7

File tree

15 files changed

+61
-66
lines changed

15 files changed

+61
-66
lines changed

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@rollup/plugin-terser": "0.2.1",
2929
"@testing-library/jest-dom": "5.16.5",
3030
"@testing-library/react": "13.4.0",
31-
"@types/jest": "29.2.4",
31+
"@types/jest": "29.2.5",
3232
"@types/luxon": "3.1.0",
3333
"@types/node": "18.11.18",
3434
"@types/react": "18.0.26",
@@ -38,7 +38,7 @@
3838
"@types/react-window": "1.8.5",
3939
"@typescript-eslint/eslint-plugin": "5.47.1",
4040
"@typescript-eslint/parser": "5.47.1",
41-
"eslint": "8.30.0",
41+
"eslint": "8.31.0",
4242
"jest": "29.3.1",
4343
"jest-mock-extended": "3.0.1",
4444
"jest-environment-jsdom": "29.3.1",
@@ -58,7 +58,7 @@
5858
"@tanstack/react-table": "8.7.4",
5959
"eventemitter3": "5.0.0",
6060
"fuse.js": "6.6.2",
61-
"luxon": "3.1.1",
61+
"luxon": "3.2.0",
6262
"monkey-around": "2.3.0",
6363
"obsidian-dataview": "0.5.51",
6464
"obsidian-projects-types": "0.6.0",

src/cdm/EditorModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DatabaseView } from "DatabaseView";
22
import { AllHTMLAttributes, DetailedHTMLProps } from "react";
33

44
export interface MarkdownEditorProps
5-
extends DetailedHTMLProps<AllHTMLAttributes<HTMLTextAreaElement>, any> {
5+
extends DetailedHTMLProps<AllHTMLAttributes<HTMLTextAreaElement>, unknown> {
66
onEnter: (e: KeyboardEvent) => void;
77
onEscape: (e: KeyboardEvent) => void;
88
view: DatabaseView;

src/components/cellTypes/CalendarCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const CalendarCell = (calendarProps: CellComponentProps) => {
101101
) : (
102102
<span
103103
className={`${c("calendar tabIndex")}`}
104-
onClick={handleSpanOnClick}
104+
onDoubleClick={handleSpanOnClick}
105105
style={{ width: column.getSize() }}
106106
onKeyDown={(e) => {
107107
if (e.key === "Enter") {

src/components/cellTypes/CalendarTimeCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const CalendarTimeCell = (calendarTimeProps: CellComponentProps) => {
103103
<span
104104
className={`${c("calendar tabIndex")}`}
105105
style={{ width: column.getSize() }}
106-
onClick={handleSpanOnClick}
106+
onDoubleClick={handleSpanOnClick}
107107
onKeyDown={(e) => {
108108
if (e.key === "Enter") {
109109
e.preventDefault();

src/components/cellTypes/CheckboxCell.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function CheckboxCell(props: CellComponentProps) {
2727

2828
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
2929
const newValue = event.target.checked;
30+
editCheckbox(newValue);
31+
};
32+
33+
const editCheckbox = (newValue: boolean) => {
3034
const newCell = ParseService.parseRowToLiteral(
3135
checkboxRow,
3236
tableColumn,
@@ -47,6 +51,13 @@ function CheckboxCell(props: CellComponentProps) {
4751
<div
4852
key={`checkbox-div-${row.index}`}
4953
className={`${c("checkbox tabIndex")}`}
54+
tabIndex={0}
55+
onKeyDown={(e) => {
56+
if (e.key === "Enter") {
57+
e.preventDefault();
58+
editCheckbox(!checkboxCell);
59+
}
60+
}}
5061
>
5162
<input
5263
type="checkbox"

src/components/cellTypes/RelationCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const RelationCell = (mdProps: CellComponentProps) => {
108108
) : (
109109
<span
110110
ref={containerCellRef}
111-
onClick={handleOnClick}
111+
onDoubleClick={handleOnClick}
112112
style={{ width: column.getSize() }}
113113
className={c(
114114
getAlignmentClassname(

src/components/cellTypes/SelectCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const SelectCell = (popperProps: CellComponentProps) => {
142142
["tabIndex"]
143143
)
144144
)}
145-
onClick={() => setShowSelect(true)}
145+
onDoubleClick={() => setShowSelect(true)}
146146
style={{ width: column.getSize() }}
147147
onKeyDown={(e) => {
148148
if (e.key === "Enter") {

src/components/cellTypes/TagsCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const TagsCell = (tagsProps: CellComponentProps) => {
146146
["tabIndex", "tags-container"]
147147
)
148148
)}
149-
onClick={() => setShowSelectTags(true)}
149+
onDoubleClick={() => setShowSelectTags(true)}
150150
style={{ width: column.getSize() }}
151151
key={`tags-${row.index}-${tableColumn.key}`}
152152
onKeyDown={(e) => {

src/helpers/Constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ export const SUGGESTER_REGEX = Object.freeze({
474474
LINK_BLOCK: /\B\[\[([^#\]]+)#?\^([^\]]*)$/,
475475
EMBED_BLOCK: /\B!\[\[([^#\]]+)#?\^([^\]]*)$/,
476476

477-
TEXT_ARRAY: /(^\[{1})([^\[]{1}.*)(\]{1})$/g,
477+
TEXT_ARRAY: /(^\[{1})([^[]{1}.*)(\]{1})$/g,
478478
TEXT_OBJECT: /(^\{{1})(.*)(\}{1})$/g,
479479

480-
CELL_VALID_KEYDOWN: /^[a-zA-Z0-9_\-]{1}$/g,
480+
CELL_VALID_KEYDOWN: /^[a-zA-Z0-9_-]{1}$/g,
481481
});
482482

483483
/******************************************************************************

0 commit comments

Comments
 (0)