obsidian-typings 3.13.5 → 3.14.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 +463 -10
- package/dist/cjs/types.d.cts +721 -10
- package/dist/obsidian-typings.api.json +3997 -198
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -571,6 +571,33 @@ export interface AddOverlayOptions {
|
|
|
571
571
|
/** @todo Documentation incomplete. */
|
|
572
572
|
query: RegExp;
|
|
573
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* @todo Documentation incomplete.
|
|
576
|
+
* @public
|
|
577
|
+
* @unofficial
|
|
578
|
+
*/
|
|
579
|
+
export interface AliasesPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
580
|
+
/**
|
|
581
|
+
* @todo Documentation incomplete.
|
|
582
|
+
*/
|
|
583
|
+
ctx: PropertyRenderContext;
|
|
584
|
+
/**
|
|
585
|
+
* @todo Documentation incomplete.
|
|
586
|
+
*/
|
|
587
|
+
hoverPopover: HoverPopover | null;
|
|
588
|
+
/**
|
|
589
|
+
* @todo Documentation incomplete.
|
|
590
|
+
*/
|
|
591
|
+
multiselect: Multiselect;
|
|
592
|
+
/**
|
|
593
|
+
* @todo Documentation incomplete.
|
|
594
|
+
*/
|
|
595
|
+
type: "aliases";
|
|
596
|
+
/**
|
|
597
|
+
* @todo Documentation incomplete.
|
|
598
|
+
*/
|
|
599
|
+
setValue(value: string | string[]): void;
|
|
600
|
+
}
|
|
574
601
|
/**
|
|
575
602
|
* @todo Documentation incomplete.
|
|
576
603
|
* @public
|
|
@@ -2976,6 +3003,25 @@ export interface CapacitorFileEntry extends Partial<FileStats> {
|
|
|
2976
3003
|
*/
|
|
2977
3004
|
export interface CeilFunction extends BasesFunction, HasGetDisplayName {
|
|
2978
3005
|
}
|
|
3006
|
+
/**
|
|
3007
|
+
* @todo Documentation incomplete.
|
|
3008
|
+
* @public
|
|
3009
|
+
* @unofficial
|
|
3010
|
+
*/
|
|
3011
|
+
export interface CheckboxPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
3012
|
+
/**
|
|
3013
|
+
* @todo Documentation incomplete.
|
|
3014
|
+
*/
|
|
3015
|
+
checkboxEl: HTMLInputElement;
|
|
3016
|
+
/**
|
|
3017
|
+
* @todo Documentation incomplete.
|
|
3018
|
+
*/
|
|
3019
|
+
type: "checkbox";
|
|
3020
|
+
/**
|
|
3021
|
+
* @todo Documentation incomplete.
|
|
3022
|
+
*/
|
|
3023
|
+
setValue(value: boolean | null): void;
|
|
3024
|
+
}
|
|
2979
3025
|
/**
|
|
2980
3026
|
* @todo Documentation incomplete.
|
|
2981
3027
|
* @public
|
|
@@ -3855,6 +3901,52 @@ export interface DateOnOrAfterFunction extends BasesFunction, HasGetDisplayName,
|
|
|
3855
3901
|
*/
|
|
3856
3902
|
export interface DateOnOrBeforeFunction extends BasesFunction, HasGetDisplayName, HasCompare, HasGetRHSWidgetType {
|
|
3857
3903
|
}
|
|
3904
|
+
/**
|
|
3905
|
+
* @todo Documentation incomplete.
|
|
3906
|
+
* @public
|
|
3907
|
+
* @unofficial
|
|
3908
|
+
*/
|
|
3909
|
+
export interface DatePropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
3910
|
+
/**
|
|
3911
|
+
* @todo Documentation incomplete.
|
|
3912
|
+
*/
|
|
3913
|
+
inputEl: HTMLInputElement;
|
|
3914
|
+
/**
|
|
3915
|
+
* @todo Documentation incomplete.
|
|
3916
|
+
*/
|
|
3917
|
+
type: "date";
|
|
3918
|
+
/**
|
|
3919
|
+
* @todo Documentation incomplete.
|
|
3920
|
+
*/
|
|
3921
|
+
parseDate(input: moment$1.MomentInput): string;
|
|
3922
|
+
/**
|
|
3923
|
+
* @todo Documentation incomplete.
|
|
3924
|
+
*/
|
|
3925
|
+
setValue(value: string | null): void;
|
|
3926
|
+
}
|
|
3927
|
+
/**
|
|
3928
|
+
* @todo Documentation incomplete.
|
|
3929
|
+
* @public
|
|
3930
|
+
* @unofficial
|
|
3931
|
+
*/
|
|
3932
|
+
export interface DatetimePropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
3933
|
+
/**
|
|
3934
|
+
* @todo Documentation incomplete.
|
|
3935
|
+
*/
|
|
3936
|
+
inputEl: HTMLInputElement;
|
|
3937
|
+
/**
|
|
3938
|
+
* @todo Documentation incomplete.
|
|
3939
|
+
*/
|
|
3940
|
+
type: "datetime";
|
|
3941
|
+
/**
|
|
3942
|
+
* @todo Documentation incomplete.
|
|
3943
|
+
*/
|
|
3944
|
+
parseDateTime(input: moment$1.MomentInput): string;
|
|
3945
|
+
/**
|
|
3946
|
+
* @todo Documentation incomplete.
|
|
3947
|
+
*/
|
|
3948
|
+
setValue(value: string | null): void;
|
|
3949
|
+
}
|
|
3858
3950
|
/**
|
|
3859
3951
|
* @todo Documentation incomplete.
|
|
3860
3952
|
* @public
|
|
@@ -5063,6 +5155,25 @@ export interface FilePropertiesViewConstructor extends TypedViewConstructor<File
|
|
|
5063
5155
|
propertiesPluginInstance: PropertiesPluginInstance
|
|
5064
5156
|
]> {
|
|
5065
5157
|
}
|
|
5158
|
+
/**
|
|
5159
|
+
* @todo Documentation incomplete.
|
|
5160
|
+
* @public
|
|
5161
|
+
* @unofficial
|
|
5162
|
+
*/
|
|
5163
|
+
export interface FilePropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
5164
|
+
/**
|
|
5165
|
+
* @todo Documentation incomplete.
|
|
5166
|
+
*/
|
|
5167
|
+
inputEl: HTMLInputElement;
|
|
5168
|
+
/**
|
|
5169
|
+
* @todo Documentation incomplete.
|
|
5170
|
+
*/
|
|
5171
|
+
type: "file";
|
|
5172
|
+
/**
|
|
5173
|
+
* @todo Documentation incomplete.
|
|
5174
|
+
*/
|
|
5175
|
+
setValue(value: string | null): void;
|
|
5176
|
+
}
|
|
5066
5177
|
/**
|
|
5067
5178
|
* @todo Documentation incomplete.
|
|
5068
5179
|
* @public
|
|
@@ -5277,6 +5388,25 @@ export interface FolderBookmarkItem extends BookmarkItem {
|
|
|
5277
5388
|
/** @todo Documentation incomplete. */
|
|
5278
5389
|
type: "folder";
|
|
5279
5390
|
}
|
|
5391
|
+
/**
|
|
5392
|
+
* @todo Documentation incomplete.
|
|
5393
|
+
* @public
|
|
5394
|
+
* @unofficial
|
|
5395
|
+
*/
|
|
5396
|
+
export interface FolderPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
5397
|
+
/**
|
|
5398
|
+
* @todo Documentation incomplete.
|
|
5399
|
+
*/
|
|
5400
|
+
inputEl: HTMLInputElement;
|
|
5401
|
+
/**
|
|
5402
|
+
* @todo Documentation incomplete.
|
|
5403
|
+
*/
|
|
5404
|
+
type: "folder";
|
|
5405
|
+
/**
|
|
5406
|
+
* @todo Documentation incomplete.
|
|
5407
|
+
*/
|
|
5408
|
+
setValue(value: string | null): void;
|
|
5409
|
+
}
|
|
5280
5410
|
/**
|
|
5281
5411
|
* @todo Documentation incomplete.
|
|
5282
5412
|
* @public
|
|
@@ -7457,7 +7587,7 @@ export interface MetadataEditor extends Component {
|
|
|
7457
7587
|
/**
|
|
7458
7588
|
* Focus on property with value.
|
|
7459
7589
|
*/
|
|
7460
|
-
focusValue(value: string,
|
|
7590
|
+
focusValue(value: string, mode: FocusMode): void;
|
|
7461
7591
|
/**
|
|
7462
7592
|
* Handle copy event on selection and serialize properties.
|
|
7463
7593
|
*/
|
|
@@ -7600,7 +7730,7 @@ export interface MetadataEditorProperty extends Component {
|
|
|
7600
7730
|
/**
|
|
7601
7731
|
* Focus on the value input element.
|
|
7602
7732
|
*/
|
|
7603
|
-
focusValue(
|
|
7733
|
+
focusValue(mode?: FocusMode): void;
|
|
7604
7734
|
/**
|
|
7605
7735
|
* Reveal the property menu on click event.
|
|
7606
7736
|
*/
|
|
@@ -7641,9 +7771,9 @@ export interface MetadataEditorProperty extends Component {
|
|
|
7641
7771
|
*/
|
|
7642
7772
|
export interface MetadataEditorPropertyTypeInfo {
|
|
7643
7773
|
/** @todo Documentation incomplete. */
|
|
7644
|
-
expected: PropertyWidget
|
|
7774
|
+
expected: PropertyWidget;
|
|
7645
7775
|
/** @todo Documentation incomplete. */
|
|
7646
|
-
inferred: PropertyWidget
|
|
7776
|
+
inferred: PropertyWidget;
|
|
7647
7777
|
}
|
|
7648
7778
|
/**
|
|
7649
7779
|
* @todo Documentation incomplete.
|
|
@@ -7728,6 +7858,46 @@ export interface MetadataTypeManagerPropertiesRecord extends Record<string, Prop
|
|
|
7728
7858
|
* @unofficial
|
|
7729
7859
|
*/
|
|
7730
7860
|
export interface MetadataTypeManagerRegisteredTypeWidgetsRecord extends Record<PropertyWidgetType, PropertyWidget<unknown>> {
|
|
7861
|
+
/**
|
|
7862
|
+
* @todo Documentation incomplete.
|
|
7863
|
+
*/
|
|
7864
|
+
aliases: PropertyWidget<string | string[], AliasesPropertyWidgetComponent>;
|
|
7865
|
+
/**
|
|
7866
|
+
* @todo Documentation incomplete.
|
|
7867
|
+
*/
|
|
7868
|
+
checkbox: PropertyWidget<boolean | null, CheckboxPropertyWidgetComponent>;
|
|
7869
|
+
/**
|
|
7870
|
+
* @todo Documentation incomplete.
|
|
7871
|
+
*/
|
|
7872
|
+
date: PropertyWidget<moment$1.MomentInput, DatePropertyWidgetComponent>;
|
|
7873
|
+
/**
|
|
7874
|
+
* @todo Documentation incomplete.
|
|
7875
|
+
*/
|
|
7876
|
+
datetime: PropertyWidget<moment$1.MomentInput, DatetimePropertyWidgetComponent>;
|
|
7877
|
+
/**
|
|
7878
|
+
* @todo Documentation incomplete.
|
|
7879
|
+
*/
|
|
7880
|
+
file: PropertyWidget<string, FilePropertyWidgetComponent>;
|
|
7881
|
+
/**
|
|
7882
|
+
* @todo Documentation incomplete.
|
|
7883
|
+
*/
|
|
7884
|
+
folder: PropertyWidget<string, FolderPropertyWidgetComponent>;
|
|
7885
|
+
/**
|
|
7886
|
+
* @todo Documentation incomplete.
|
|
7887
|
+
*/
|
|
7888
|
+
multitext: PropertyWidget<string[], MultitextPropertyWidgetComponent>;
|
|
7889
|
+
/**
|
|
7890
|
+
* @todo Documentation incomplete.
|
|
7891
|
+
*/
|
|
7892
|
+
number: PropertyWidget<number, NumberPropertyWidgetComponent>;
|
|
7893
|
+
/**
|
|
7894
|
+
* @todo Documentation incomplete.
|
|
7895
|
+
*/
|
|
7896
|
+
tags: PropertyWidget<string[], TagsPropertyWidgetComponent>;
|
|
7897
|
+
/**
|
|
7898
|
+
* @todo Documentation incomplete.
|
|
7899
|
+
*/
|
|
7900
|
+
text: PropertyWidget<string, TextPropertyWidgetComponent>;
|
|
7731
7901
|
}
|
|
7732
7902
|
/**
|
|
7733
7903
|
* @todo Documentation incomplete.
|
|
@@ -7825,6 +7995,148 @@ export interface MobileToolbar {
|
|
|
7825
7995
|
*/
|
|
7826
7996
|
export interface MonthFunction extends BasesFunction, HasExtract {
|
|
7827
7997
|
}
|
|
7998
|
+
/**
|
|
7999
|
+
* @todo Documentation incomplete.
|
|
8000
|
+
* @public
|
|
8001
|
+
* @unofficial
|
|
8002
|
+
*/
|
|
8003
|
+
export interface Multiselect {
|
|
8004
|
+
/**
|
|
8005
|
+
* @todo Documentation incomplete.
|
|
8006
|
+
*/
|
|
8007
|
+
changeCallback?: (values: string[]) => void;
|
|
8008
|
+
/**
|
|
8009
|
+
* @todo Documentation incomplete.
|
|
8010
|
+
*/
|
|
8011
|
+
elements: HTMLDivElement[];
|
|
8012
|
+
/**
|
|
8013
|
+
* @todo Documentation incomplete.
|
|
8014
|
+
*/
|
|
8015
|
+
inputEl: HTMLDivElement;
|
|
8016
|
+
/**
|
|
8017
|
+
* @todo Documentation incomplete.
|
|
8018
|
+
*/
|
|
8019
|
+
readonly inputText: string;
|
|
8020
|
+
/**
|
|
8021
|
+
* @todo Documentation incomplete.
|
|
8022
|
+
*/
|
|
8023
|
+
optionRenderer?: (value: string, ctx: OptionContext) => void;
|
|
8024
|
+
/**
|
|
8025
|
+
* @todo Documentation incomplete.
|
|
8026
|
+
*/
|
|
8027
|
+
rootEl: HTMLDivElement;
|
|
8028
|
+
/**
|
|
8029
|
+
* @todo Documentation incomplete.
|
|
8030
|
+
*/
|
|
8031
|
+
setupInput: (this: Multiselect, inputEl: HTMLDivElement, initializer: (value: string, shouldFocus?: boolean) => unknown) => void;
|
|
8032
|
+
/**
|
|
8033
|
+
* @todo Documentation incomplete.
|
|
8034
|
+
*/
|
|
8035
|
+
values: string[];
|
|
8036
|
+
/**
|
|
8037
|
+
* @todo Documentation incomplete.
|
|
8038
|
+
*/
|
|
8039
|
+
_createElement(value: string): string | null;
|
|
8040
|
+
/**
|
|
8041
|
+
* @todo Documentation incomplete.
|
|
8042
|
+
*/
|
|
8043
|
+
_createInputEl(): HTMLDivElement;
|
|
8044
|
+
/**
|
|
8045
|
+
* @todo Documentation incomplete.
|
|
8046
|
+
*/
|
|
8047
|
+
addElement(value: string): boolean;
|
|
8048
|
+
/**
|
|
8049
|
+
* @todo Documentation incomplete.
|
|
8050
|
+
*/
|
|
8051
|
+
allowCreatingOptions(createOption: (this: Multiselect, value: string) => string | undefined): this;
|
|
8052
|
+
/**
|
|
8053
|
+
* @todo Documentation incomplete.
|
|
8054
|
+
*/
|
|
8055
|
+
createOption?(this: Multiselect, value: string): string | undefined;
|
|
8056
|
+
/**
|
|
8057
|
+
* @todo Documentation incomplete.
|
|
8058
|
+
*/
|
|
8059
|
+
editElement(index: number): void;
|
|
8060
|
+
/**
|
|
8061
|
+
* @todo Documentation incomplete.
|
|
8062
|
+
*/
|
|
8063
|
+
findDuplicate?(this: Multiselect, values: string[]): boolean;
|
|
8064
|
+
/**
|
|
8065
|
+
* @todo Documentation incomplete.
|
|
8066
|
+
*/
|
|
8067
|
+
focusElement(index: number): void;
|
|
8068
|
+
/**
|
|
8069
|
+
* @todo Documentation incomplete.
|
|
8070
|
+
*/
|
|
8071
|
+
onChange(changeCallback: (values: string[]) => void): void;
|
|
8072
|
+
/**
|
|
8073
|
+
* @todo Documentation incomplete.
|
|
8074
|
+
*/
|
|
8075
|
+
onOptionContextmenu?(this: Multiselect, menu: Menu, value: string, ctx: OptionContext): void;
|
|
8076
|
+
/**
|
|
8077
|
+
* @todo Documentation incomplete.
|
|
8078
|
+
*/
|
|
8079
|
+
preventDuplicates(findDuplicate: (this: Multiselect, values: string[]) => number): this;
|
|
8080
|
+
/**
|
|
8081
|
+
* @todo Documentation incomplete.
|
|
8082
|
+
*/
|
|
8083
|
+
removeElement(index: number, shouldFocus?: boolean): void;
|
|
8084
|
+
/**
|
|
8085
|
+
* @todo Documentation incomplete.
|
|
8086
|
+
*/
|
|
8087
|
+
renderValues(): void;
|
|
8088
|
+
/**
|
|
8089
|
+
* @todo Documentation incomplete.
|
|
8090
|
+
*/
|
|
8091
|
+
setInputText(text: string): void;
|
|
8092
|
+
/**
|
|
8093
|
+
* @todo Documentation incomplete.
|
|
8094
|
+
*/
|
|
8095
|
+
setOptionContextmenuHandler(onOptionContextmenu: (this: Multiselect, menu: Menu, value: string, ctx: OptionContext) => void): this;
|
|
8096
|
+
/**
|
|
8097
|
+
* @todo Documentation incomplete.
|
|
8098
|
+
*/
|
|
8099
|
+
setOptionRenderer(optionRenderer: (value: string, ctx: OptionContext) => void): this;
|
|
8100
|
+
/**
|
|
8101
|
+
* @todo Documentation incomplete.
|
|
8102
|
+
*/
|
|
8103
|
+
setupInputEl(setupInput: (this: Multiselect, inputEl: HTMLDivElement, initializer: (value: string, shouldFocus?: boolean) => unknown) => void): this;
|
|
8104
|
+
/**
|
|
8105
|
+
* @todo Documentation incomplete.
|
|
8106
|
+
*/
|
|
8107
|
+
setValues(values: string[] | null): this;
|
|
8108
|
+
/**
|
|
8109
|
+
* @todo Documentation incomplete.
|
|
8110
|
+
*/
|
|
8111
|
+
triggerChange(): void;
|
|
8112
|
+
}
|
|
8113
|
+
/**
|
|
8114
|
+
* @todo Documentation incomplete.
|
|
8115
|
+
* @public
|
|
8116
|
+
* @unofficial
|
|
8117
|
+
*/
|
|
8118
|
+
export interface MultitextPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
8119
|
+
/**
|
|
8120
|
+
* @todo Documentation incomplete.
|
|
8121
|
+
*/
|
|
8122
|
+
hoverPopover: HoverPopover | null;
|
|
8123
|
+
/**
|
|
8124
|
+
* @todo Documentation incomplete.
|
|
8125
|
+
*/
|
|
8126
|
+
multiselect: Multiselect;
|
|
8127
|
+
/**
|
|
8128
|
+
* @todo Documentation incomplete.
|
|
8129
|
+
*/
|
|
8130
|
+
type: "multitext";
|
|
8131
|
+
/**
|
|
8132
|
+
* @todo Documentation incomplete.
|
|
8133
|
+
*/
|
|
8134
|
+
valueSet: Set<string>;
|
|
8135
|
+
/**
|
|
8136
|
+
* @todo Documentation incomplete.
|
|
8137
|
+
*/
|
|
8138
|
+
setValue(value: string[] | string): void;
|
|
8139
|
+
}
|
|
7828
8140
|
/**
|
|
7829
8141
|
* @todo Documentation incomplete.
|
|
7830
8142
|
* @public
|
|
@@ -7926,6 +8238,25 @@ export interface NoteComposerPluginOptions {
|
|
|
7926
8238
|
*/
|
|
7927
8239
|
export interface NowFunction extends BasesFunction {
|
|
7928
8240
|
}
|
|
8241
|
+
/**
|
|
8242
|
+
* @todo Documentation incomplete.
|
|
8243
|
+
* @public
|
|
8244
|
+
* @unofficial
|
|
8245
|
+
*/
|
|
8246
|
+
export interface NumberPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
8247
|
+
/**
|
|
8248
|
+
* @todo Documentation incomplete.
|
|
8249
|
+
*/
|
|
8250
|
+
inputEl: HTMLInputElement;
|
|
8251
|
+
/**
|
|
8252
|
+
* @todo Documentation incomplete.
|
|
8253
|
+
*/
|
|
8254
|
+
type: "number";
|
|
8255
|
+
/**
|
|
8256
|
+
* @todo Documentation incomplete.
|
|
8257
|
+
*/
|
|
8258
|
+
setValue(value: number | null): void;
|
|
8259
|
+
}
|
|
7929
8260
|
/**
|
|
7930
8261
|
* @todo Documentation incomplete.
|
|
7931
8262
|
* @public
|
|
@@ -8025,6 +8356,21 @@ export interface OpenNotificationOptions {
|
|
|
8025
8356
|
/** @todo Documentation incomplete. */
|
|
8026
8357
|
duration?: number;
|
|
8027
8358
|
}
|
|
8359
|
+
/**
|
|
8360
|
+
* @todo Documentation incomplete.
|
|
8361
|
+
* @public
|
|
8362
|
+
* @unofficial
|
|
8363
|
+
*/
|
|
8364
|
+
export interface OptionContext {
|
|
8365
|
+
/**
|
|
8366
|
+
* @todo Documentation incomplete.
|
|
8367
|
+
*/
|
|
8368
|
+
el: HTMLDivElement;
|
|
8369
|
+
/**
|
|
8370
|
+
* @todo Documentation incomplete.
|
|
8371
|
+
*/
|
|
8372
|
+
pillEl: HTMLDivElement;
|
|
8373
|
+
}
|
|
8028
8374
|
/**
|
|
8029
8375
|
* @todo Documentation incomplete.
|
|
8030
8376
|
* @public
|
|
@@ -8555,7 +8901,7 @@ export interface PropertyRenderContext {
|
|
|
8555
8901
|
* @public
|
|
8556
8902
|
* @unofficial
|
|
8557
8903
|
*/
|
|
8558
|
-
export interface PropertyWidget<
|
|
8904
|
+
export interface PropertyWidget<Value = unknown, ComponentType extends Component = Component> {
|
|
8559
8905
|
/**
|
|
8560
8906
|
* Lucide-dev icon associated with the widget.
|
|
8561
8907
|
*/
|
|
@@ -8576,22 +8922,45 @@ export interface PropertyWidget<T> {
|
|
|
8576
8922
|
* Get the default value for the property widget.
|
|
8577
8923
|
* @deprecated Removed in 1.9.0.
|
|
8578
8924
|
*/
|
|
8579
|
-
default():
|
|
8925
|
+
default(): Value;
|
|
8580
8926
|
/**
|
|
8581
8927
|
* Render function for the widget on field container given context and data.
|
|
8582
8928
|
* @deprecated Removed in 1.9.0.
|
|
8583
8929
|
*/
|
|
8584
|
-
render(containerEl: HTMLElement, data: PropertyEntryData<
|
|
8930
|
+
render(containerEl: HTMLElement, data: PropertyEntryData<Value>, context: PropertyRenderContext): ComponentType;
|
|
8585
8931
|
/**
|
|
8586
8932
|
* Render function for the widget on field container given context and data.
|
|
8587
8933
|
* @remarks Added in 1.9.0.
|
|
8588
8934
|
*/
|
|
8589
|
-
render(containerEl: HTMLElement, data:
|
|
8935
|
+
render(containerEl: HTMLElement, data: Value, context: PropertyRenderContext): ComponentType;
|
|
8590
8936
|
/**
|
|
8591
8937
|
* Validate whether the input value to the widget is correct.
|
|
8592
8938
|
*/
|
|
8593
8939
|
validate(value: unknown): boolean;
|
|
8594
8940
|
}
|
|
8941
|
+
/**
|
|
8942
|
+
* @todo Documentation incomplete.
|
|
8943
|
+
* @public
|
|
8944
|
+
* @unofficial
|
|
8945
|
+
*/
|
|
8946
|
+
export interface PropertyWidgetComponentBase extends Component {
|
|
8947
|
+
/**
|
|
8948
|
+
* @todo Documentation incomplete.
|
|
8949
|
+
*/
|
|
8950
|
+
containerEl: HTMLElement;
|
|
8951
|
+
/**
|
|
8952
|
+
* @todo Documentation incomplete.
|
|
8953
|
+
*/
|
|
8954
|
+
type: string;
|
|
8955
|
+
/**
|
|
8956
|
+
* @todo Documentation incomplete.
|
|
8957
|
+
*/
|
|
8958
|
+
focus(mode?: FocusMode): void;
|
|
8959
|
+
/**
|
|
8960
|
+
* @todo Documentation incomplete.
|
|
8961
|
+
*/
|
|
8962
|
+
onFocus(mode: FocusMode): void;
|
|
8963
|
+
}
|
|
8595
8964
|
/**
|
|
8596
8965
|
* @todo Documentation incomplete.
|
|
8597
8966
|
* @public
|
|
@@ -9825,6 +10194,25 @@ export interface TagViewConstructor extends TypedViewConstructor<TagView> {
|
|
|
9825
10194
|
*/
|
|
9826
10195
|
export interface TaggedWithFunction extends BasesFunction, HasGetDisplayName, HasGetRHSWidgetType {
|
|
9827
10196
|
}
|
|
10197
|
+
/**
|
|
10198
|
+
* @todo Documentation incomplete.
|
|
10199
|
+
* @public
|
|
10200
|
+
* @unofficial
|
|
10201
|
+
*/
|
|
10202
|
+
export interface TagsPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
10203
|
+
/**
|
|
10204
|
+
* @todo Documentation incomplete.
|
|
10205
|
+
*/
|
|
10206
|
+
multiselect: Multiselect;
|
|
10207
|
+
/**
|
|
10208
|
+
* @todo Documentation incomplete.
|
|
10209
|
+
*/
|
|
10210
|
+
type: "tags";
|
|
10211
|
+
/**
|
|
10212
|
+
* @todo Documentation incomplete.
|
|
10213
|
+
*/
|
|
10214
|
+
setValue(value: string[] | string): void;
|
|
10215
|
+
}
|
|
9828
10216
|
/**
|
|
9829
10217
|
* @todo Documentation incomplete.
|
|
9830
10218
|
* @public
|
|
@@ -9845,6 +10233,65 @@ export interface TemplatesPluginInstance extends InternalPluginInstance<Template
|
|
|
9845
10233
|
/** @todo Documentation incomplete. */
|
|
9846
10234
|
plugin: TemplatesPlugin;
|
|
9847
10235
|
}
|
|
10236
|
+
/**
|
|
10237
|
+
* @todo Documentation incomplete.
|
|
10238
|
+
* @public
|
|
10239
|
+
* @unofficial
|
|
10240
|
+
*/
|
|
10241
|
+
export interface TextPropertyWidgetComponent extends PropertyWidgetComponentBase {
|
|
10242
|
+
/**
|
|
10243
|
+
* @todo Documentation incomplete.
|
|
10244
|
+
*/
|
|
10245
|
+
ctx: PropertyRenderContext;
|
|
10246
|
+
/**
|
|
10247
|
+
* @todo Documentation incomplete.
|
|
10248
|
+
*/
|
|
10249
|
+
inputEl: HTMLInputElement;
|
|
10250
|
+
/**
|
|
10251
|
+
* @todo Documentation incomplete.
|
|
10252
|
+
*/
|
|
10253
|
+
linkEl: HTMLDivElement;
|
|
10254
|
+
/**
|
|
10255
|
+
* @todo Documentation incomplete.
|
|
10256
|
+
*/
|
|
10257
|
+
linkTextEl: HTMLDivElement;
|
|
10258
|
+
/**
|
|
10259
|
+
* @todo Documentation incomplete.
|
|
10260
|
+
*/
|
|
10261
|
+
type: "text";
|
|
10262
|
+
/**
|
|
10263
|
+
* @todo Documentation incomplete.
|
|
10264
|
+
*/
|
|
10265
|
+
value: string;
|
|
10266
|
+
/**
|
|
10267
|
+
* @todo Documentation incomplete.
|
|
10268
|
+
*/
|
|
10269
|
+
getDisplayText(): string;
|
|
10270
|
+
/**
|
|
10271
|
+
* @todo Documentation incomplete.
|
|
10272
|
+
*/
|
|
10273
|
+
getLinkText(): string;
|
|
10274
|
+
/**
|
|
10275
|
+
* @todo Documentation incomplete.
|
|
10276
|
+
*/
|
|
10277
|
+
isAlias(): boolean;
|
|
10278
|
+
/**
|
|
10279
|
+
* @todo Documentation incomplete.
|
|
10280
|
+
*/
|
|
10281
|
+
isWikilink(): boolean;
|
|
10282
|
+
/**
|
|
10283
|
+
* @todo Documentation incomplete.
|
|
10284
|
+
*/
|
|
10285
|
+
render(): void;
|
|
10286
|
+
/**
|
|
10287
|
+
* @todo Documentation incomplete.
|
|
10288
|
+
*/
|
|
10289
|
+
setValue(value: string | null): void;
|
|
10290
|
+
/**
|
|
10291
|
+
* @todo Documentation incomplete.
|
|
10292
|
+
*/
|
|
10293
|
+
setValue(value: string | null): void;
|
|
10294
|
+
}
|
|
9848
10295
|
/**
|
|
9849
10296
|
* @todo Documentation incomplete.
|
|
9850
10297
|
* @public
|
|
@@ -10213,9 +10660,9 @@ export interface TrimFunction extends BasesFunction {
|
|
|
10213
10660
|
*/
|
|
10214
10661
|
export interface TypeInfo {
|
|
10215
10662
|
/** @todo Documentation incomplete. */
|
|
10216
|
-
expected: PropertyWidget
|
|
10663
|
+
expected: PropertyWidget;
|
|
10217
10664
|
/** @todo Documentation incomplete. */
|
|
10218
|
-
inferred: PropertyWidget
|
|
10665
|
+
inferred: PropertyWidget;
|
|
10219
10666
|
}
|
|
10220
10667
|
/**
|
|
10221
10668
|
* A constructor for a view that is typed to a specific view type.
|
|
@@ -11170,6 +11617,12 @@ export type FileExplorerViewSortOrder = "alphabetical" | "alphabeticalReverse" |
|
|
|
11170
11617
|
* @unofficial
|
|
11171
11618
|
*/
|
|
11172
11619
|
export type FileTreeItemParent = FolderTreeItem | TreeRoot<FileTreeItem | FolderTreeItem>;
|
|
11620
|
+
/**
|
|
11621
|
+
* @todo Documentation incomplete.
|
|
11622
|
+
* @public
|
|
11623
|
+
* @unofficial
|
|
11624
|
+
*/
|
|
11625
|
+
export type FocusMode = "both" | "end" | "start";
|
|
11173
11626
|
/**
|
|
11174
11627
|
* Available color types.
|
|
11175
11628
|
*
|