obsidian-typings 4.84.0 → 4.85.0
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/cjs/implementations.d.cts +132 -276
- package/dist/cjs/types.d.cts +143 -368
- package/dist/obsidian-typings.api.json +3673 -4266
- package/package.json +4 -4
|
@@ -8,7 +8,7 @@ import type { Tree as LezerTree } from '@lezer/common';
|
|
|
8
8
|
import type { App as App$1, BrowserWindow } from 'electron';
|
|
9
9
|
import type { Mermaid } from 'mermaid';
|
|
10
10
|
import type { FSWatcher } from 'node:fs';
|
|
11
|
-
import type { App,
|
|
11
|
+
import type { App, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverParent, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, PaneType, Plugin as Plugin, PluginManifest, PluginSettingTab, PopoverSuggest, Reference, ReferenceCache, RenderContext, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, moment as moment$1 } from 'obsidian';
|
|
12
12
|
import type { default as pdfjsLib } from 'pdfjs-dist';
|
|
13
13
|
import type { Application, Container, Graphics, ICanvas, Sprite, Text as Text$1, TextStyle } from 'pixi.js';
|
|
14
14
|
import type { default as Prism$1 } from 'prismjs';
|
|
@@ -614,28 +614,14 @@ export interface AddOverlayOptions {
|
|
|
614
614
|
* @unofficial
|
|
615
615
|
*/
|
|
616
616
|
export interface AliasesPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
617
|
-
/** The container element for the property widget. */
|
|
618
|
-
containerEl: HTMLElement;
|
|
619
617
|
/** The render context for the property widget. */
|
|
620
618
|
ctx: PropertyRenderContext;
|
|
621
619
|
/** The hover popover for the property widget. */
|
|
622
|
-
hoverPopover: null;
|
|
620
|
+
hoverPopover: HoverPopover | null;
|
|
623
621
|
/** The multiselect component for the property widget. */
|
|
624
622
|
multiselect: Multiselect;
|
|
625
623
|
/** The type of the property widget. */
|
|
626
624
|
type: "aliases";
|
|
627
|
-
/**
|
|
628
|
-
* Handle focus event.
|
|
629
|
-
*
|
|
630
|
-
* @param mode - The focus mode.
|
|
631
|
-
*/
|
|
632
|
-
onFocus(): void;
|
|
633
|
-
/**
|
|
634
|
-
* Set the value of the property widget.
|
|
635
|
-
*
|
|
636
|
-
* @param value - The value to set.
|
|
637
|
-
*/
|
|
638
|
-
setValue(value: unknown): void;
|
|
639
625
|
}
|
|
640
626
|
/**
|
|
641
627
|
* @todo Documentation incomplete.
|
|
@@ -1371,78 +1357,6 @@ export interface BacklinkView extends InfoFileView {
|
|
|
1371
1357
|
*/
|
|
1372
1358
|
export interface BacklinkViewConstructor extends TypedViewConstructor<BacklinkView> {
|
|
1373
1359
|
}
|
|
1374
|
-
/**
|
|
1375
|
-
* BasesConfigFileFilter `and` clause.
|
|
1376
|
-
*
|
|
1377
|
-
* @public
|
|
1378
|
-
* @unofficial
|
|
1379
|
-
*/
|
|
1380
|
-
export interface BasesConfigFileFilterAndClause {
|
|
1381
|
-
/**
|
|
1382
|
-
* All of the following filters must match.
|
|
1383
|
-
*
|
|
1384
|
-
* @public
|
|
1385
|
-
* @since 1.10.0
|
|
1386
|
-
* @example
|
|
1387
|
-
* ```ts
|
|
1388
|
-
* {
|
|
1389
|
-
* and: [
|
|
1390
|
-
* '*.md',
|
|
1391
|
-
* '*.txt',
|
|
1392
|
-
* ],
|
|
1393
|
-
* }
|
|
1394
|
-
* ```
|
|
1395
|
-
*/
|
|
1396
|
-
and: BasesConfigFileFilter[];
|
|
1397
|
-
}
|
|
1398
|
-
/**
|
|
1399
|
-
* BasesConfigFileFilter `not` clause.
|
|
1400
|
-
*
|
|
1401
|
-
* @public
|
|
1402
|
-
* @unofficial
|
|
1403
|
-
*/
|
|
1404
|
-
export interface BasesConfigFileFilterNotClause {
|
|
1405
|
-
/**
|
|
1406
|
-
* None of the following filters should match.
|
|
1407
|
-
*
|
|
1408
|
-
* @public
|
|
1409
|
-
* @since 1.10.0
|
|
1410
|
-
* @example
|
|
1411
|
-
* ```ts
|
|
1412
|
-
* {
|
|
1413
|
-
* not: [
|
|
1414
|
-
* '*.md',
|
|
1415
|
-
* '*.txt',
|
|
1416
|
-
* ],
|
|
1417
|
-
* }
|
|
1418
|
-
* ```
|
|
1419
|
-
*/
|
|
1420
|
-
not: BasesConfigFileFilter[];
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1423
|
-
* BasesConfigFileFilter `or` clause.
|
|
1424
|
-
*
|
|
1425
|
-
* @public
|
|
1426
|
-
* @unofficial
|
|
1427
|
-
*/
|
|
1428
|
-
export interface BasesConfigFileFilterOrClause {
|
|
1429
|
-
/**
|
|
1430
|
-
* Some of the following filters should match.
|
|
1431
|
-
*
|
|
1432
|
-
* @public
|
|
1433
|
-
* @since 1.10.0
|
|
1434
|
-
* @example
|
|
1435
|
-
* ```ts
|
|
1436
|
-
* {
|
|
1437
|
-
* or: [
|
|
1438
|
-
* '*.md',
|
|
1439
|
-
* '*.txt',
|
|
1440
|
-
* ],
|
|
1441
|
-
* }
|
|
1442
|
-
* ```
|
|
1443
|
-
*/
|
|
1444
|
-
or: BasesConfigFileFilter[];
|
|
1445
|
-
}
|
|
1446
1360
|
/**
|
|
1447
1361
|
* Bases context
|
|
1448
1362
|
*
|
|
@@ -3894,18 +3808,6 @@ export interface CheckboxPropertyWidgetComponent extends PropertyWidgetComponent
|
|
|
3894
3808
|
checkboxEl: HTMLInputElement;
|
|
3895
3809
|
/** The type of the property widget. */
|
|
3896
3810
|
type: "checkbox";
|
|
3897
|
-
/**
|
|
3898
|
-
* Handle focus event.
|
|
3899
|
-
*
|
|
3900
|
-
* @param mode - The focus mode.
|
|
3901
|
-
*/
|
|
3902
|
-
onFocus(): void;
|
|
3903
|
-
/**
|
|
3904
|
-
* Set the value of the property widget.
|
|
3905
|
-
*
|
|
3906
|
-
* @param value - The value to set.
|
|
3907
|
-
*/
|
|
3908
|
-
setValue(value: unknown): void;
|
|
3909
3811
|
}
|
|
3910
3812
|
/**
|
|
3911
3813
|
* @todo Documentation incomplete.
|
|
@@ -4882,6 +4784,97 @@ export interface Dimensions {
|
|
|
4882
4784
|
/** @todo Documentation incomplete. */
|
|
4883
4785
|
width: number;
|
|
4884
4786
|
}
|
|
4787
|
+
/**
|
|
4788
|
+
* The handlers for the DOM events.
|
|
4789
|
+
*
|
|
4790
|
+
* @public
|
|
4791
|
+
* @unofficial
|
|
4792
|
+
*/
|
|
4793
|
+
export interface DomEventsHandlers {
|
|
4794
|
+
/**
|
|
4795
|
+
* Handles the external link click event.
|
|
4796
|
+
*
|
|
4797
|
+
* @param evt - The mouse event.
|
|
4798
|
+
* @param targetEl - The target element.
|
|
4799
|
+
* @param linkText - The link text.
|
|
4800
|
+
*/
|
|
4801
|
+
onExternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
4802
|
+
/**
|
|
4803
|
+
* Handles the external link right click event.
|
|
4804
|
+
*
|
|
4805
|
+
* @param evt - The mouse event.
|
|
4806
|
+
* @param targetEl - The target element.
|
|
4807
|
+
* @param linkText - The link text.
|
|
4808
|
+
*/
|
|
4809
|
+
onExternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
4810
|
+
/**
|
|
4811
|
+
* Handles the internal link click event.
|
|
4812
|
+
*
|
|
4813
|
+
* @param evt - The mouse event.
|
|
4814
|
+
* @param targetEl - The target element.
|
|
4815
|
+
* @param linkText - The link text.
|
|
4816
|
+
*/
|
|
4817
|
+
onInternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
4818
|
+
/**
|
|
4819
|
+
* Handles the internal link drag event.
|
|
4820
|
+
*
|
|
4821
|
+
* @param evt - The mouse event.
|
|
4822
|
+
* @param targetEl - The target element.
|
|
4823
|
+
* @param linkText - The link text.
|
|
4824
|
+
* @param title - The title.
|
|
4825
|
+
*/
|
|
4826
|
+
onInternalLinkDrag(evt: MouseEvent, targetEl: HTMLElement, linkText: string, title?: string): unknown;
|
|
4827
|
+
/**
|
|
4828
|
+
* Handles the internal link mouseover event.
|
|
4829
|
+
*
|
|
4830
|
+
* @param evt - The mouse event.
|
|
4831
|
+
* @param targetEl - The target element.
|
|
4832
|
+
* @param linkText - The link text.
|
|
4833
|
+
*/
|
|
4834
|
+
onInternalLinkMouseover(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
4835
|
+
/**
|
|
4836
|
+
* Handles the internal link right click event.
|
|
4837
|
+
*
|
|
4838
|
+
* @param evt - The mouse event.
|
|
4839
|
+
* @param targetEl - The target element.
|
|
4840
|
+
* @param linkText - The link text.
|
|
4841
|
+
*/
|
|
4842
|
+
onInternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
4843
|
+
/**
|
|
4844
|
+
* Handles the tag click event.
|
|
4845
|
+
*
|
|
4846
|
+
* @param evt - The mouse event.
|
|
4847
|
+
* @param targetEl - The target element.
|
|
4848
|
+
* @param linkText - The link text.
|
|
4849
|
+
*/
|
|
4850
|
+
onTagClick(evt: MouseEvent, targetEl: HTMLElement, tag: string): unknown;
|
|
4851
|
+
}
|
|
4852
|
+
/**
|
|
4853
|
+
* The DomEventsHandlers constructor.
|
|
4854
|
+
*
|
|
4855
|
+
* @public
|
|
4856
|
+
* @unofficial
|
|
4857
|
+
*/
|
|
4858
|
+
export interface DomEventsHandlersConstructor extends ConstructorBase<[
|
|
4859
|
+
info: DomEventsHandlersInfo
|
|
4860
|
+
], DomEventsHandlers> {
|
|
4861
|
+
}
|
|
4862
|
+
/**
|
|
4863
|
+
* Information about the DOM events handlers.
|
|
4864
|
+
*
|
|
4865
|
+
* @public
|
|
4866
|
+
* @unofficial
|
|
4867
|
+
*/
|
|
4868
|
+
export interface DomEventsHandlersInfo extends HoverParent {
|
|
4869
|
+
/**
|
|
4870
|
+
* Obsidian app instance.
|
|
4871
|
+
*/
|
|
4872
|
+
app: App;
|
|
4873
|
+
/**
|
|
4874
|
+
* The path to calculate relative links from.
|
|
4875
|
+
*/
|
|
4876
|
+
path: string;
|
|
4877
|
+
}
|
|
4885
4878
|
/**
|
|
4886
4879
|
* @todo Documentation incomplete.
|
|
4887
4880
|
* @public
|
|
@@ -6153,18 +6146,6 @@ export interface FilePropertyWidgetComponent extends PropertyWidgetComponentBase
|
|
|
6153
6146
|
inputEl: HTMLInputElement;
|
|
6154
6147
|
/** The type of the property widget. */
|
|
6155
6148
|
type: "file";
|
|
6156
|
-
/**
|
|
6157
|
-
* Handle focus event.
|
|
6158
|
-
*
|
|
6159
|
-
* @param mode - The focus mode.
|
|
6160
|
-
*/
|
|
6161
|
-
onFocus(): void;
|
|
6162
|
-
/**
|
|
6163
|
-
* Set the value of the property widget.
|
|
6164
|
-
*
|
|
6165
|
-
* @param value - The value to set.
|
|
6166
|
-
*/
|
|
6167
|
-
setValue(value: unknown): void;
|
|
6168
6149
|
}
|
|
6169
6150
|
/**
|
|
6170
6151
|
* @todo Documentation incomplete.
|
|
@@ -6391,18 +6372,6 @@ export interface FolderPropertyWidgetComponent extends PropertyWidgetComponentBa
|
|
|
6391
6372
|
inputEl: HTMLInputElement;
|
|
6392
6373
|
/** The type of the property widget. */
|
|
6393
6374
|
type: "folder";
|
|
6394
|
-
/**
|
|
6395
|
-
* Handle focus event.
|
|
6396
|
-
*
|
|
6397
|
-
* @param mode - The focus mode.
|
|
6398
|
-
*/
|
|
6399
|
-
onFocus(): void;
|
|
6400
|
-
/**
|
|
6401
|
-
* Set the value of the property widget.
|
|
6402
|
-
*
|
|
6403
|
-
* @param value - The value to set.
|
|
6404
|
-
*/
|
|
6405
|
-
setValue(value: unknown): void;
|
|
6406
6375
|
}
|
|
6407
6376
|
/**
|
|
6408
6377
|
* @todo Documentation incomplete.
|
|
@@ -9176,25 +9145,13 @@ export interface MultiselectOptionContextMenuContext {
|
|
|
9176
9145
|
*/
|
|
9177
9146
|
export interface MultitextPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
9178
9147
|
/** The hover popover for the property widget. */
|
|
9179
|
-
hoverPopover: null;
|
|
9148
|
+
hoverPopover: HoverPopover | null;
|
|
9180
9149
|
/** The multiselect component for the property widget. */
|
|
9181
9150
|
multiselect: Multiselect;
|
|
9182
9151
|
/** The type of the property widget. */
|
|
9183
9152
|
type: "multitext";
|
|
9184
9153
|
/** The values of the property widget. */
|
|
9185
9154
|
valueSet: Set<string>;
|
|
9186
|
-
/**
|
|
9187
|
-
* Handle focus event.
|
|
9188
|
-
*
|
|
9189
|
-
* @param mode - The focus mode.
|
|
9190
|
-
*/
|
|
9191
|
-
onFocus(): void;
|
|
9192
|
-
/**
|
|
9193
|
-
* Set the value of the property widget.
|
|
9194
|
-
*
|
|
9195
|
-
* @param value - The value to set.
|
|
9196
|
-
*/
|
|
9197
|
-
setValue(value: unknown): void;
|
|
9198
9155
|
}
|
|
9199
9156
|
/**
|
|
9200
9157
|
* @todo Documentation incomplete.
|
|
@@ -9310,18 +9267,6 @@ export interface NumberPropertyWidgetComponent extends PropertyWidgetComponentBa
|
|
|
9310
9267
|
type: "number";
|
|
9311
9268
|
/** Show the error message. */
|
|
9312
9269
|
showError(): void;
|
|
9313
|
-
/**
|
|
9314
|
-
* Handle focus event.
|
|
9315
|
-
*
|
|
9316
|
-
* @param mode - The focus mode.
|
|
9317
|
-
*/
|
|
9318
|
-
onFocus(): void;
|
|
9319
|
-
/**
|
|
9320
|
-
* Set the value of the property widget.
|
|
9321
|
-
*
|
|
9322
|
-
* @param value - The value to set.
|
|
9323
|
-
*/
|
|
9324
|
-
setValue(value: unknown): void;
|
|
9325
9270
|
}
|
|
9326
9271
|
/**
|
|
9327
9272
|
* @todo Documentation incomplete.
|
|
@@ -10011,18 +9956,6 @@ export interface PropertyPropertyWidgetComponent extends PropertyWidgetComponent
|
|
|
10011
9956
|
inputEl: HTMLInputElement;
|
|
10012
9957
|
/** The type of the property widget. */
|
|
10013
9958
|
type: "property";
|
|
10014
|
-
/**
|
|
10015
|
-
* Handle focus event.
|
|
10016
|
-
*
|
|
10017
|
-
* @param mode - The focus mode.
|
|
10018
|
-
*/
|
|
10019
|
-
onFocus(): void;
|
|
10020
|
-
/**
|
|
10021
|
-
* Set the value of the property widget.
|
|
10022
|
-
*
|
|
10023
|
-
* @param value - The value to set.
|
|
10024
|
-
*/
|
|
10025
|
-
setValue(value: unknown): void;
|
|
10026
9959
|
}
|
|
10027
9960
|
/**
|
|
10028
9961
|
* Combobox component for {@link PropertyPropertyWidgetComponent}.
|
|
@@ -10222,6 +10155,8 @@ export interface PropertyWidget<ComponentType extends PropertyWidgetComponentBas
|
|
|
10222
10155
|
* @unofficial
|
|
10223
10156
|
*/
|
|
10224
10157
|
export interface PropertyWidgetComponentBase {
|
|
10158
|
+
/** The container element for the property widget. */
|
|
10159
|
+
containerEl: HTMLElement;
|
|
10225
10160
|
/** The type of the property widget. */
|
|
10226
10161
|
type: string;
|
|
10227
10162
|
/**
|
|
@@ -10230,6 +10165,18 @@ export interface PropertyWidgetComponentBase {
|
|
|
10230
10165
|
* @param mode - The focus mode.
|
|
10231
10166
|
*/
|
|
10232
10167
|
focus(mode?: FocusMode): void;
|
|
10168
|
+
/**
|
|
10169
|
+
* Handle focus event.
|
|
10170
|
+
*
|
|
10171
|
+
* @param mode - The focus mode.
|
|
10172
|
+
*/
|
|
10173
|
+
onFocus(mode: FocusMode): void;
|
|
10174
|
+
/**
|
|
10175
|
+
* Set the value of the property widget.
|
|
10176
|
+
*
|
|
10177
|
+
* @param value - The value to set.
|
|
10178
|
+
*/
|
|
10179
|
+
setValue(value: unknown): void;
|
|
10233
10180
|
}
|
|
10234
10181
|
/**
|
|
10235
10182
|
* @todo Documentation incomplete.
|
|
@@ -10385,97 +10332,6 @@ export interface RecentFileTracker {
|
|
|
10385
10332
|
*/
|
|
10386
10333
|
serialize(): string[];
|
|
10387
10334
|
}
|
|
10388
|
-
/**
|
|
10389
|
-
* The handlers for the DOM events.
|
|
10390
|
-
*
|
|
10391
|
-
* @public
|
|
10392
|
-
* @unofficial
|
|
10393
|
-
*/
|
|
10394
|
-
export interface RegisterDomEventsHandlers {
|
|
10395
|
-
/**
|
|
10396
|
-
* Handles the external link click event.
|
|
10397
|
-
*
|
|
10398
|
-
* @param evt - The mouse event.
|
|
10399
|
-
* @param targetEl - The target element.
|
|
10400
|
-
* @param linkText - The link text.
|
|
10401
|
-
*/
|
|
10402
|
-
onExternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
10403
|
-
/**
|
|
10404
|
-
* Handles the external link right click event.
|
|
10405
|
-
*
|
|
10406
|
-
* @param evt - The mouse event.
|
|
10407
|
-
* @param targetEl - The target element.
|
|
10408
|
-
* @param linkText - The link text.
|
|
10409
|
-
*/
|
|
10410
|
-
onExternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
10411
|
-
/**
|
|
10412
|
-
* Handles the internal link click event.
|
|
10413
|
-
*
|
|
10414
|
-
* @param evt - The mouse event.
|
|
10415
|
-
* @param targetEl - The target element.
|
|
10416
|
-
* @param linkText - The link text.
|
|
10417
|
-
*/
|
|
10418
|
-
onInternalLinkClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
10419
|
-
/**
|
|
10420
|
-
* Handles the internal link drag event.
|
|
10421
|
-
*
|
|
10422
|
-
* @param evt - The mouse event.
|
|
10423
|
-
* @param targetEl - The target element.
|
|
10424
|
-
* @param linkText - The link text.
|
|
10425
|
-
* @param title - The title.
|
|
10426
|
-
*/
|
|
10427
|
-
onInternalLinkDrag(evt: MouseEvent, targetEl: HTMLElement, linkText: string, title?: string): unknown;
|
|
10428
|
-
/**
|
|
10429
|
-
* Handles the internal link mouseover event.
|
|
10430
|
-
*
|
|
10431
|
-
* @param evt - The mouse event.
|
|
10432
|
-
* @param targetEl - The target element.
|
|
10433
|
-
* @param linkText - The link text.
|
|
10434
|
-
*/
|
|
10435
|
-
onInternalLinkMouseover(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
10436
|
-
/**
|
|
10437
|
-
* Handles the internal link right click event.
|
|
10438
|
-
*
|
|
10439
|
-
* @param evt - The mouse event.
|
|
10440
|
-
* @param targetEl - The target element.
|
|
10441
|
-
* @param linkText - The link text.
|
|
10442
|
-
*/
|
|
10443
|
-
onInternalLinkRightClick(evt: MouseEvent, targetEl: HTMLElement, linkText: string): unknown;
|
|
10444
|
-
/**
|
|
10445
|
-
* Handles the tag click event.
|
|
10446
|
-
*
|
|
10447
|
-
* @param evt - The mouse event.
|
|
10448
|
-
* @param targetEl - The target element.
|
|
10449
|
-
* @param linkText - The link text.
|
|
10450
|
-
*/
|
|
10451
|
-
onTagClick(evt: MouseEvent, targetEl: HTMLElement, tag: string): unknown;
|
|
10452
|
-
}
|
|
10453
|
-
/**
|
|
10454
|
-
* The RegisterDomEventsHandlers constructor.
|
|
10455
|
-
*
|
|
10456
|
-
* @public
|
|
10457
|
-
* @unofficial
|
|
10458
|
-
*/
|
|
10459
|
-
export interface RegisterDomEventsHandlersConstructor extends ConstructorBase<[
|
|
10460
|
-
info: RegisterDomEventsHandlersInfo
|
|
10461
|
-
], RegisterDomEventsHandlers> {
|
|
10462
|
-
}
|
|
10463
|
-
/**
|
|
10464
|
-
* Information about the register dom events handlers.
|
|
10465
|
-
*
|
|
10466
|
-
* @public
|
|
10467
|
-
* @unofficial
|
|
10468
|
-
*/
|
|
10469
|
-
export interface RegisterDomEventsHandlersInfo extends HoverParent {
|
|
10470
|
-
/**
|
|
10471
|
-
* Obsidian app instance.
|
|
10472
|
-
*/
|
|
10473
|
-
app: App;
|
|
10474
|
-
/**
|
|
10475
|
-
* The path to calculate relative links from.
|
|
10476
|
-
*/
|
|
10477
|
-
path: string;
|
|
10478
|
-
}
|
|
10479
10335
|
/**
|
|
10480
10336
|
* @todo Documentation incomplete.
|
|
10481
10337
|
* @public
|
|
@@ -11611,18 +11467,6 @@ export interface TagsPropertyWidgetComponent extends PropertyWidgetComponentBase
|
|
|
11611
11467
|
multiselect: Multiselect;
|
|
11612
11468
|
/** The type of the property widget. */
|
|
11613
11469
|
type: "tags";
|
|
11614
|
-
/**
|
|
11615
|
-
* Handle focus event.
|
|
11616
|
-
*
|
|
11617
|
-
* @param mode - The focus mode.
|
|
11618
|
-
*/
|
|
11619
|
-
onFocus(): void;
|
|
11620
|
-
/**
|
|
11621
|
-
* Set the value of the property widget.
|
|
11622
|
-
*
|
|
11623
|
-
* @param value - The value to set.
|
|
11624
|
-
*/
|
|
11625
|
-
setValue(value: unknown): void;
|
|
11626
11470
|
}
|
|
11627
11471
|
/**
|
|
11628
11472
|
* @todo Documentation incomplete.
|
|
@@ -11651,34 +11495,46 @@ export interface TemplatesPluginInstance extends InternalPluginInstance<Template
|
|
|
11651
11495
|
* @unofficial
|
|
11652
11496
|
*/
|
|
11653
11497
|
export interface TextPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
11654
|
-
/** The container element for the property widget. */
|
|
11655
|
-
containerEl: HTMLElement;
|
|
11656
11498
|
/** The render context for the property widget. */
|
|
11657
11499
|
ctx: PropertyRenderContext;
|
|
11658
11500
|
/** The input element for the property widget. */
|
|
11659
11501
|
inputEl: HTMLInputElement;
|
|
11660
|
-
/** The
|
|
11661
|
-
|
|
11502
|
+
/** The link element for the property widget. */
|
|
11503
|
+
linkEl: HTMLDivElement;
|
|
11504
|
+
/** The link text element for the property widget. */
|
|
11505
|
+
linkTextEl: HTMLDivElement;
|
|
11662
11506
|
/** The type of the property widget. */
|
|
11663
11507
|
type: "text";
|
|
11664
11508
|
/** The value of the property widget. */
|
|
11665
11509
|
value: string;
|
|
11666
11510
|
/**
|
|
11667
|
-
*
|
|
11511
|
+
* Get the display text of the link from the property widget.
|
|
11512
|
+
*
|
|
11513
|
+
* @returns The display text.
|
|
11668
11514
|
*/
|
|
11669
|
-
|
|
11515
|
+
getDisplayText(): string;
|
|
11670
11516
|
/**
|
|
11671
|
-
*
|
|
11517
|
+
* Get the link text of the property widget.
|
|
11672
11518
|
*
|
|
11673
|
-
* @
|
|
11519
|
+
* @returns The link text.
|
|
11674
11520
|
*/
|
|
11675
|
-
|
|
11521
|
+
getLinkText(): string;
|
|
11676
11522
|
/**
|
|
11677
|
-
*
|
|
11523
|
+
* Check if the property widget link has an alias.
|
|
11678
11524
|
*
|
|
11679
|
-
* @
|
|
11525
|
+
* @returns Whether the property widget link has an alias.
|
|
11680
11526
|
*/
|
|
11681
|
-
|
|
11527
|
+
isAlias(): boolean;
|
|
11528
|
+
/**
|
|
11529
|
+
* Check if the property widget link is a wikilink.
|
|
11530
|
+
*
|
|
11531
|
+
* @returns Whether the property widget link is a wikilink.
|
|
11532
|
+
*/
|
|
11533
|
+
isWikilink(): boolean;
|
|
11534
|
+
/**
|
|
11535
|
+
* Render the property widget.
|
|
11536
|
+
*/
|
|
11537
|
+
render(): void;
|
|
11682
11538
|
}
|
|
11683
11539
|
/**
|
|
11684
11540
|
* @todo Documentation incomplete.
|