aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-06-02 18:58:18 -0400
committerbobzel <zzzman@gmail.com>2025-06-02 18:58:18 -0400
commit57e1862e58e89a505547d817123c04079854814f (patch)
treebb964f7c03d8911f69c6823eac443d7159a12309 /src/client/documents/Documents.ts
parenta7afce10c47724156510a8665e7e1841566082e8 (diff)
changed field names for tasks to start with task_. changed calendar date and range to start with _calendar
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 0b6385466..4ad9c9bd8 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -11,7 +11,7 @@ import { List } from '../../fields/List';
import { RichTextField } from '../../fields/RichTextField';
import { SchemaHeaderField } from '../../fields/SchemaHeaderField';
import { ComputedField, ScriptField } from '../../fields/ScriptField';
-import { DocCast, ScriptCast, StrCast } from '../../fields/Types';
+import { ScriptCast, StrCast } from '../../fields/Types';
import { AudioField, CsvField, ImageField, PdfField, VideoField, WebField } from '../../fields/URLField';
import { SharingPermissions } from '../../fields/util';
import { PointData } from '../../pen-gestures/GestureTypes';
@@ -182,8 +182,6 @@ export class DocumentOptions {
identifier?: STRt = new StrInfo('documentIcon displayed for each doc as "d[x]"', false);
_rotation?: NUMt = new NumInfo('Amount of rotation on a document in degrees', false);
- date_range?: STRt = new StrInfo('date range for calendar', false);
-
chat?: STRt = new StrInfo('fields related to chatBox', false);
chat_history?: STRt = new StrInfo('chat history for chatbox', false);
chat_thread_id?: STRt = new StrInfo('thread id for chatbox', false);
@@ -525,10 +523,14 @@ export class DocumentOptions {
ai_generatedDocs?: List<Doc>; // list of documents generated by GAI engine
// TASK MANAGER
- $startTime?: DateInfo | DateField = new DateInfo('start date and time', /*filterable*/ false);
- $endTime?: DateInfo | DateField = new DateInfo('end date and time', /*filterable*/ false);
- $allDay?: BoolInfo | boolean = new BoolInfo('whether task is all-day or not', /*filterable*/ false);
- $completed?: BoolInfo | boolean = new BoolInfo('whether the task is completed', /*filterable*/ false);
+ $task_dateRange?: STRt = new StrInfo('date range for calendar', false);
+ $task_startTime?: DateInfo | DateField = new DateInfo('start date and time', /*filterable*/ false);
+ $task_endTime?: DateInfo | DateField = new DateInfo('end date and time', /*filterable*/ false);
+ $task_allDay?: BoolInfo | boolean = new BoolInfo('whether task is all-day or not', /*filterable*/ false);
+ $task_completed?: BoolInfo | boolean = new BoolInfo('whether the task is completed', /*filterable*/ false);
+
+ _calendar_date?: DateInfo | DateField = new DateInfo('current selected date of a calendar', /*filterable*/ false);
+ _calendar_dateRange?: STRt = new StrInfo('date range shown on a calendar', false);
/**
* JSON‐stringified slot configuration for ScrapbookBox
@@ -978,6 +980,7 @@ export namespace Docs {
);
}
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
export function TaskDocument(text = '', options: DocumentOptions = {}, fieldKey = 'text') {
return InstanceFromProto(
Prototypes.get(DocumentType.TASK),
@@ -1070,6 +1073,7 @@ export namespace Docs {
_layout_nativeDimEditable: true,
_layout_reflowHorizontal: true,
_layout_reflowVertical: true,
+ calendar: '',
...options,
_type_collection: CollectionViewType.Calendar,
});