obsidian-dev-utils 22.1.1-beta.8 → 23.0.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/CHANGELOG.md +146 -0
- package/dist/eslint.config.mts +2 -0
- package/dist/lib/cjs/@types/debug.d.cts +1 -0
- package/dist/lib/cjs/{obsidian/Components/PlaceholderComponent.cjs → Array.cjs} +18 -8
- package/dist/lib/cjs/Array.d.cts +12 -0
- package/dist/lib/cjs/Async.cjs +6 -1
- package/dist/lib/cjs/Async.d.cts +26 -18
- package/dist/lib/cjs/AsyncEvents.cjs +216 -0
- package/dist/lib/cjs/AsyncEvents.d.cts +144 -0
- package/dist/lib/cjs/Blob.cjs +1 -1
- package/dist/lib/cjs/Blob.d.cts +9 -8
- package/dist/lib/cjs/CssClass.cjs +5 -1
- package/dist/lib/cjs/CssClass.d.cts +18 -1
- package/dist/lib/cjs/Debug.cjs +1 -1
- package/dist/lib/cjs/Debug.d.cts +2 -1
- package/dist/lib/cjs/DebugController.cjs +1 -1
- package/dist/lib/cjs/DebugController.d.cts +1 -0
- package/dist/lib/cjs/Enum.cjs +1 -1
- package/dist/lib/cjs/Enum.d.cts +2 -1
- package/dist/lib/cjs/Error.cjs +8 -6
- package/dist/lib/cjs/Error.d.cts +3 -2
- package/dist/lib/cjs/Function.cjs +1 -1
- package/dist/lib/cjs/Function.d.cts +2 -1
- package/dist/lib/cjs/HTMLElement.cjs +1 -1
- package/dist/lib/cjs/HTMLElement.d.cts +4 -2
- package/dist/lib/cjs/Library.cjs +2 -2
- package/dist/lib/cjs/Library.d.cts +2 -1
- package/dist/lib/cjs/Object.cjs +38 -3
- package/dist/lib/cjs/Object.d.cts +18 -13
- package/dist/lib/cjs/Path.cjs +2 -2
- package/dist/lib/cjs/Path.d.cts +2 -1
- package/dist/lib/cjs/RegExp.cjs +1 -1
- package/dist/lib/cjs/RegExp.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/CliUtils.cjs +7 -7
- package/dist/lib/cjs/ScriptUtils/CliUtils.d.cts +12 -11
- package/dist/lib/cjs/ScriptUtils/CodeGenerator.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/CodeGenerator.d.cts +3 -2
- package/dist/lib/cjs/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.cts +1 -0
- package/dist/lib/cjs/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.cts +1 -0
- package/dist/lib/cjs/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.cts +1 -0
- package/dist/lib/cjs/ScriptUtils/ESLint/ESLint.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/ESLint/ESLint.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/ESLint/eslint.config.cjs +13 -10
- package/dist/lib/cjs/ScriptUtils/ESLint/eslint.config.d.cts +2 -3
- package/dist/lib/cjs/ScriptUtils/Exec.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/Exec.d.cts +4 -3
- package/dist/lib/cjs/ScriptUtils/Fs.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/Fs.d.cts +5 -4
- package/dist/lib/cjs/ScriptUtils/JSON.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/JSON.d.cts +5 -4
- package/dist/lib/cjs/ScriptUtils/NodeModules.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/NodeModules.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/Npm.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/Npm.d.cts +9 -10
- package/dist/lib/cjs/ScriptUtils/NpmPublish.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/NpmPublish.d.cts +3 -1
- package/dist/lib/cjs/ScriptUtils/NpmRun.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/NpmRun.d.cts +5 -0
- package/dist/lib/cjs/ScriptUtils/ObsidianDevUtilsRepoPaths.cjs +1 -10
- package/dist/lib/cjs/ScriptUtils/ObsidianDevUtilsRepoPaths.d.cts +45 -61
- package/dist/lib/cjs/ScriptUtils/Root.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/Root.d.cts +4 -3
- package/dist/lib/cjs/ScriptUtils/build.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/build.d.cts +7 -6
- package/dist/lib/cjs/ScriptUtils/cli.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/cli.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/Dependency.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/Dependency.d.cts +4 -3
- package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.d.cts +4 -3
- package/dist/lib/cjs/ScriptUtils/esbuild/changeExtensionPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/changeExtensionPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/customEsbuildOptionsPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/customEsbuildOptionsPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/fixEsmPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/fixEsmPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/fixSourceMapsPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/fixSourceMapsPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/preprocessPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/preprocessPlugin.d.cts +2 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/renameCssPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/renameCssPlugin.d.cts +5 -0
- package/dist/lib/cjs/ScriptUtils/esbuild/svelteWrapperPlugin.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/svelteWrapperPlugin.d.cts +5 -0
- package/dist/lib/cjs/ScriptUtils/format.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/format.d.cts +4 -2
- package/dist/lib/cjs/ScriptUtils/spellcheck.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/spellcheck.d.cts +4 -3
- package/dist/lib/cjs/ScriptUtils/version.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/version.d.cts +12 -11
- package/dist/lib/cjs/String.cjs +1 -1
- package/dist/lib/cjs/String.d.cts +4 -3
- package/dist/lib/cjs/Transformers/DateTransformer.cjs +3 -1
- package/dist/lib/cjs/Transformers/DateTransformer.d.cts +4 -1
- package/dist/lib/cjs/Transformers/DurationTransformer.cjs +5 -1
- package/dist/lib/cjs/Transformers/DurationTransformer.d.cts +6 -1
- package/dist/lib/cjs/Transformers/GroupTransformer.cjs +7 -4
- package/dist/lib/cjs/Transformers/GroupTransformer.d.cts +9 -5
- package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.cjs +3 -1
- package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.d.cts +4 -1
- package/dist/lib/cjs/Transformers/Transformer.cjs +9 -2
- package/dist/lib/cjs/Transformers/Transformer.d.cts +2 -1
- package/dist/lib/cjs/Transformers/TypedTransformer.cjs +1 -1
- package/dist/lib/cjs/Transformers/TypedTransformer.d.cts +2 -1
- package/dist/lib/cjs/Type.cjs +24 -0
- package/dist/lib/cjs/Type.d.cts +17 -0
- package/dist/lib/cjs/ValueProvider.cjs +1 -1
- package/dist/lib/cjs/ValueProvider.d.cts +3 -2
- package/dist/lib/cjs/codemirror/StateFieldSpec.cjs +1 -1
- package/dist/lib/cjs/codemirror/StateFieldSpec.d.cts +2 -1
- package/dist/lib/cjs/index.cjs +10 -1
- package/dist/lib/cjs/index.d.cts +3 -0
- package/dist/lib/cjs/obsidian/App.cjs +1 -1
- package/dist/lib/cjs/obsidian/App.d.cts +2 -1
- package/dist/lib/cjs/obsidian/AttachmentPath.cjs +1 -1
- package/dist/lib/cjs/obsidian/AttachmentPath.d.cts +7 -5
- package/dist/lib/cjs/obsidian/Backlink.cjs +1 -1
- package/dist/lib/cjs/obsidian/Backlink.d.cts +3 -2
- package/dist/lib/cjs/obsidian/Callout.cjs +1 -1
- package/dist/lib/cjs/obsidian/Callout.d.cts +3 -2
- package/dist/lib/cjs/obsidian/Components/CheckboxComponent.cjs +99 -0
- package/dist/lib/cjs/obsidian/Components/CheckboxComponent.d.cts +59 -0
- package/dist/lib/cjs/obsidian/Components/DateComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/DateComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/DateTimeComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/DateTimeComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/EmailComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/EmailComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/FileComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/FileComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/MonthComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/MonthComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/MultipleDropdownComponent.cjs +4 -2
- package/dist/lib/cjs/obsidian/Components/MultipleDropdownComponent.d.cts +4 -1
- package/dist/lib/cjs/obsidian/Components/MultipleEmailComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/MultipleEmailComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/MultipleFileComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/MultipleFileComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/MultipleTextComponent.cjs +30 -3
- package/dist/lib/cjs/obsidian/Components/MultipleTextComponent.d.cts +22 -3
- package/dist/lib/cjs/obsidian/Components/NumberComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/NumberComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/TextBasedComponent.cjs +65 -0
- package/dist/lib/cjs/obsidian/Components/TextBasedComponent.d.cts +37 -0
- package/dist/lib/cjs/obsidian/Components/TimeComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/TimeComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/TriStateCheckboxComponent.cjs +100 -0
- package/dist/lib/cjs/obsidian/Components/TriStateCheckboxComponent.d.cts +59 -0
- package/dist/lib/cjs/obsidian/Components/TypedDropdownComponent.cjs +129 -0
- package/dist/lib/cjs/obsidian/Components/TypedDropdownComponent.d.cts +78 -0
- package/dist/lib/cjs/obsidian/Components/TypedMultipleDropdownComponent.cjs +131 -0
- package/dist/lib/cjs/obsidian/Components/TypedMultipleDropdownComponent.d.cts +79 -0
- package/dist/lib/cjs/obsidian/Components/TypedRangeTextComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/TypedRangeTextComponent.d.cts +4 -1
- package/dist/lib/cjs/obsidian/Components/TypedTextComponent.cjs +30 -4
- package/dist/lib/cjs/obsidian/Components/TypedTextComponent.d.cts +25 -3
- package/dist/lib/cjs/obsidian/Components/UrlComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/UrlComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/ValidatorComponent.cjs +23 -29
- package/dist/lib/cjs/obsidian/Components/ValidatorComponent.d.cts +6 -6
- package/dist/lib/cjs/obsidian/Components/ValueComponentWithChangeTracking.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/ValueComponentWithChangeTracking.d.cts +4 -1
- package/dist/lib/cjs/obsidian/Components/WeekComponent.cjs +1 -1
- package/dist/lib/cjs/obsidian/Components/WeekComponent.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Components/index.cjs +16 -4
- package/dist/lib/cjs/obsidian/Components/index.d.cts +5 -1
- package/dist/lib/cjs/obsidian/Dataview.cjs +1 -1
- package/dist/lib/cjs/obsidian/Dataview.d.cts +11 -12
- package/dist/lib/cjs/obsidian/DataviewLink.cjs +1 -1
- package/dist/lib/cjs/obsidian/DataviewLink.d.cts +4 -3
- package/dist/lib/cjs/obsidian/FileChange.cjs +1 -1
- package/dist/lib/cjs/obsidian/FileChange.d.cts +4 -3
- package/dist/lib/cjs/obsidian/FileManager.cjs +1 -1
- package/dist/lib/cjs/obsidian/FileManager.d.cts +6 -5
- package/dist/lib/cjs/obsidian/FileSystem.cjs +1 -1
- package/dist/lib/cjs/obsidian/FileSystem.d.cts +3 -1
- package/dist/lib/cjs/obsidian/Frontmatter.cjs +1 -1
- package/dist/lib/cjs/obsidian/Frontmatter.d.cts +5 -1
- package/dist/lib/cjs/obsidian/Link.cjs +1 -1
- package/dist/lib/cjs/obsidian/Link.d.cts +7 -6
- package/dist/lib/cjs/obsidian/Logger.cjs +1 -1
- package/dist/lib/cjs/obsidian/Logger.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Loop.cjs +1 -1
- package/dist/lib/cjs/obsidian/Loop.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Markdown.cjs +5 -8
- package/dist/lib/cjs/obsidian/Markdown.d.cts +2 -1
- package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.cjs +1 -1
- package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.d.cts +2 -1
- package/dist/lib/cjs/obsidian/MarkdownView.cjs +1 -1
- package/dist/lib/cjs/obsidian/MarkdownView.d.cts +2 -1
- package/dist/lib/cjs/obsidian/MetadataCache.cjs +1 -1
- package/dist/lib/cjs/obsidian/MetadataCache.d.cts +7 -5
- package/dist/lib/cjs/obsidian/Modals/Alert.cjs +3 -1
- package/dist/lib/cjs/obsidian/Modals/Alert.d.cts +3 -2
- package/dist/lib/cjs/obsidian/Modals/Confirm.cjs +3 -1
- package/dist/lib/cjs/obsidian/Modals/Confirm.d.cts +3 -2
- package/dist/lib/cjs/obsidian/Modals/ModalBase.cjs +1 -1
- package/dist/lib/cjs/obsidian/Modals/ModalBase.d.cts +2 -2
- package/dist/lib/cjs/obsidian/Modals/Prompt.cjs +3 -1
- package/dist/lib/cjs/obsidian/Modals/Prompt.d.cts +5 -3
- package/dist/lib/cjs/obsidian/Modals/SelectItem.cjs +2 -1
- package/dist/lib/cjs/obsidian/Modals/SelectItem.d.cts +4 -2
- package/dist/lib/cjs/obsidian/MonkeyAround.cjs +1 -1
- package/dist/lib/cjs/obsidian/MonkeyAround.d.cts +5 -3
- package/dist/lib/cjs/obsidian/ObsidianSettings.cjs +1 -1
- package/dist/lib/cjs/obsidian/ObsidianSettings.d.cts +3 -0
- package/dist/lib/cjs/obsidian/Pdf.cjs +1 -1
- package/dist/lib/cjs/obsidian/Pdf.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Plugin/ObsidianPluginRepoPaths.cjs +6 -2
- package/dist/lib/cjs/obsidian/Plugin/ObsidianPluginRepoPaths.d.cts +38 -29
- package/dist/lib/cjs/obsidian/Plugin/Plugin.cjs +1 -1
- package/dist/lib/cjs/obsidian/Plugin/Plugin.d.cts +4 -3
- package/dist/lib/cjs/obsidian/Plugin/PluginBase.cjs +121 -32
- package/dist/lib/cjs/obsidian/Plugin/PluginBase.d.cts +52 -21
- package/dist/lib/cjs/obsidian/Plugin/PluginContext.cjs +1 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginContext.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginId.cjs +1 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginId.d.cts +2 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsManagerBase.cjs +88 -55
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsManagerBase.d.cts +42 -22
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.cjs +29 -13
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.d.cts +18 -11
- package/dist/lib/cjs/obsidian/Plugin/PluginTypesBase.cjs +24 -0
- package/dist/lib/cjs/obsidian/Plugin/PluginTypesBase.d.cts +55 -0
- package/dist/lib/cjs/obsidian/Plugin/index.cjs +6 -3
- package/dist/lib/cjs/obsidian/Plugin/index.d.cts +1 -0
- package/dist/lib/cjs/obsidian/Queue.cjs +1 -1
- package/dist/lib/cjs/obsidian/Queue.d.cts +3 -2
- package/dist/lib/cjs/obsidian/React/AppContext.cjs +3 -3
- package/dist/lib/cjs/obsidian/React/AppContext.d.cts +8 -1
- package/dist/lib/cjs/obsidian/Reference.cjs +1 -1
- package/dist/lib/cjs/obsidian/Reference.d.cts +2 -1
- package/dist/lib/cjs/obsidian/RenameDeleteHandler.cjs +75 -75
- package/dist/lib/cjs/obsidian/RenameDeleteHandler.d.cts +3 -2
- package/dist/lib/cjs/obsidian/ResourceUrl.cjs +1 -1
- package/dist/lib/cjs/obsidian/ResourceUrl.d.cts +2 -1
- package/dist/lib/cjs/obsidian/SettingEx.cjs +41 -1
- package/dist/lib/cjs/obsidian/SettingEx.d.cts +35 -2
- package/dist/lib/cjs/obsidian/ValidationMessage.cjs +1 -1
- package/dist/lib/cjs/obsidian/ValidationMessage.d.cts +5 -0
- package/dist/lib/cjs/obsidian/Vault.cjs +1 -1
- package/dist/lib/cjs/obsidian/Vault.d.cts +15 -10
- package/dist/lib/cjs/obsidian/VaultEx.cjs +1 -1
- package/dist/lib/cjs/obsidian/VaultEx.d.cts +4 -3
- package/dist/lib/cjs/url.cjs +1 -1
- package/dist/lib/cjs/url.d.cts +2 -1
- package/dist/lib/esm/@types/debug.d.mts +1 -0
- package/dist/lib/esm/Array.d.mts +12 -0
- package/dist/lib/esm/Array.mjs +24 -0
- package/dist/lib/esm/Async.d.mts +26 -18
- package/dist/lib/esm/Async.mjs +5 -1
- package/dist/lib/esm/AsyncEvents.d.mts +144 -0
- package/dist/lib/esm/AsyncEvents.mjs +192 -0
- package/dist/lib/esm/Blob.d.mts +9 -8
- package/dist/lib/esm/Blob.mjs +1 -1
- package/dist/lib/esm/CssClass.d.mts +18 -1
- package/dist/lib/esm/CssClass.mjs +5 -1
- package/dist/lib/esm/Debug.d.mts +2 -1
- package/dist/lib/esm/Debug.mjs +1 -1
- package/dist/lib/esm/DebugController.d.mts +1 -0
- package/dist/lib/esm/Enum.d.mts +2 -1
- package/dist/lib/esm/Enum.mjs +1 -1
- package/dist/lib/esm/Error.d.mts +3 -2
- package/dist/lib/esm/Error.mjs +8 -6
- package/dist/lib/esm/Function.d.mts +2 -1
- package/dist/lib/esm/Function.mjs +1 -1
- package/dist/lib/esm/HTMLElement.d.mts +4 -2
- package/dist/lib/esm/HTMLElement.mjs +1 -1
- package/dist/lib/esm/Library.d.mts +2 -1
- package/dist/lib/esm/Library.mjs +2 -2
- package/dist/lib/esm/Object.d.mts +18 -13
- package/dist/lib/esm/Object.mjs +36 -3
- package/dist/lib/esm/Path.d.mts +2 -1
- package/dist/lib/esm/Path.mjs +2 -2
- package/dist/lib/esm/RegExp.d.mts +2 -1
- package/dist/lib/esm/RegExp.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/CliUtils.d.mts +12 -11
- package/dist/lib/esm/ScriptUtils/CliUtils.mjs +7 -7
- package/dist/lib/esm/ScriptUtils/CodeGenerator.d.mts +3 -2
- package/dist/lib/esm/ScriptUtils/CodeGenerator.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.mts +1 -0
- package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.mts +1 -0
- package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.mts +1 -0
- package/dist/lib/esm/ScriptUtils/ESLint/ESLint.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/ESLint/ESLint.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/ESLint/eslint.config.d.mts +2 -3
- package/dist/lib/esm/ScriptUtils/ESLint/eslint.config.mjs +13 -10
- package/dist/lib/esm/ScriptUtils/Exec.d.mts +4 -3
- package/dist/lib/esm/ScriptUtils/Exec.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/Fs.d.mts +5 -4
- package/dist/lib/esm/ScriptUtils/Fs.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/JSON.d.mts +5 -4
- package/dist/lib/esm/ScriptUtils/JSON.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/NodeModules.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/NodeModules.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/Npm.d.mts +9 -10
- package/dist/lib/esm/ScriptUtils/Npm.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/NpmPublish.d.mts +3 -1
- package/dist/lib/esm/ScriptUtils/NpmPublish.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/NpmRun.d.mts +5 -0
- package/dist/lib/esm/ScriptUtils/NpmRun.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.d.mts +45 -61
- package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.mjs +1 -10
- package/dist/lib/esm/ScriptUtils/Root.d.mts +4 -3
- package/dist/lib/esm/ScriptUtils/Root.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/build.d.mts +7 -6
- package/dist/lib/esm/ScriptUtils/build.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/cli.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/cli.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/Dependency.d.mts +4 -3
- package/dist/lib/esm/ScriptUtils/esbuild/Dependency.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.d.mts +4 -3
- package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/changeExtensionPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/changeExtensionPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/customEsbuildOptionsPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/customEsbuildOptionsPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixEsmPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixEsmPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixSourceMapsPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixSourceMapsPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/preprocessPlugin.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/esbuild/preprocessPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/renameCssPlugin.d.mts +5 -0
- package/dist/lib/esm/ScriptUtils/esbuild/renameCssPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/esbuild/svelteWrapperPlugin.d.mts +5 -0
- package/dist/lib/esm/ScriptUtils/esbuild/svelteWrapperPlugin.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/format.d.mts +4 -2
- package/dist/lib/esm/ScriptUtils/format.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/spellcheck.d.mts +4 -3
- package/dist/lib/esm/ScriptUtils/spellcheck.mjs +1 -1
- package/dist/lib/esm/ScriptUtils/version.d.mts +12 -11
- package/dist/lib/esm/ScriptUtils/version.mjs +1 -1
- package/dist/lib/esm/String.d.mts +4 -3
- package/dist/lib/esm/String.mjs +1 -1
- package/dist/lib/esm/Transformers/DateTransformer.d.mts +4 -1
- package/dist/lib/esm/Transformers/DateTransformer.mjs +3 -1
- package/dist/lib/esm/Transformers/DurationTransformer.d.mts +6 -1
- package/dist/lib/esm/Transformers/DurationTransformer.mjs +5 -1
- package/dist/lib/esm/Transformers/GroupTransformer.d.mts +9 -5
- package/dist/lib/esm/Transformers/GroupTransformer.mjs +7 -4
- package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.d.mts +4 -1
- package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.mjs +3 -1
- package/dist/lib/esm/Transformers/Transformer.d.mts +2 -1
- package/dist/lib/esm/Transformers/Transformer.mjs +9 -2
- package/dist/lib/esm/Transformers/TypedTransformer.d.mts +2 -1
- package/dist/lib/esm/Transformers/TypedTransformer.mjs +1 -1
- package/dist/lib/esm/Type.d.mts +17 -0
- package/dist/lib/esm/Type.mjs +8 -0
- package/dist/lib/esm/ValueProvider.d.mts +3 -2
- package/dist/lib/esm/ValueProvider.mjs +1 -1
- package/dist/lib/esm/codemirror/StateFieldSpec.d.mts +2 -1
- package/dist/lib/esm/index.d.mts +3 -0
- package/dist/lib/esm/index.mjs +7 -1
- package/dist/lib/esm/obsidian/App.d.mts +2 -1
- package/dist/lib/esm/obsidian/App.mjs +1 -1
- package/dist/lib/esm/obsidian/AttachmentPath.d.mts +7 -5
- package/dist/lib/esm/obsidian/AttachmentPath.mjs +1 -1
- package/dist/lib/esm/obsidian/Backlink.d.mts +3 -2
- package/dist/lib/esm/obsidian/Backlink.mjs +1 -1
- package/dist/lib/esm/obsidian/Callout.d.mts +3 -2
- package/dist/lib/esm/obsidian/Callout.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/CheckboxComponent.d.mts +59 -0
- package/dist/lib/esm/obsidian/Components/CheckboxComponent.mjs +75 -0
- package/dist/lib/esm/obsidian/Components/DateComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/DateComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/DateTimeComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/DateTimeComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/EmailComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/EmailComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/FileComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/FileComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/MonthComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/MonthComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/MultipleDropdownComponent.d.mts +4 -1
- package/dist/lib/esm/obsidian/Components/MultipleDropdownComponent.mjs +4 -2
- package/dist/lib/esm/obsidian/Components/MultipleEmailComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/MultipleEmailComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/MultipleFileComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/MultipleFileComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/MultipleTextComponent.d.mts +22 -3
- package/dist/lib/esm/obsidian/Components/MultipleTextComponent.mjs +30 -3
- package/dist/lib/esm/obsidian/Components/NumberComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/NumberComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/TextBasedComponent.d.mts +37 -0
- package/dist/lib/esm/obsidian/Components/TextBasedComponent.mjs +41 -0
- package/dist/lib/esm/obsidian/Components/TimeComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/TimeComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/TriStateCheckboxComponent.d.mts +59 -0
- package/dist/lib/esm/obsidian/Components/TriStateCheckboxComponent.mjs +76 -0
- package/dist/lib/esm/obsidian/Components/TypedDropdownComponent.d.mts +78 -0
- package/dist/lib/esm/obsidian/Components/TypedDropdownComponent.mjs +108 -0
- package/dist/lib/esm/obsidian/Components/TypedMultipleDropdownComponent.d.mts +79 -0
- package/dist/lib/esm/obsidian/Components/TypedMultipleDropdownComponent.mjs +110 -0
- package/dist/lib/esm/obsidian/Components/TypedRangeTextComponent.d.mts +4 -1
- package/dist/lib/esm/obsidian/Components/TypedRangeTextComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/TypedTextComponent.d.mts +25 -3
- package/dist/lib/esm/obsidian/Components/TypedTextComponent.mjs +30 -4
- package/dist/lib/esm/obsidian/Components/UrlComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/UrlComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/ValidatorComponent.d.mts +6 -6
- package/dist/lib/esm/obsidian/Components/ValidatorComponent.mjs +25 -30
- package/dist/lib/esm/obsidian/Components/ValueComponentWithChangeTracking.d.mts +4 -1
- package/dist/lib/esm/obsidian/Components/WeekComponent.d.mts +2 -1
- package/dist/lib/esm/obsidian/Components/WeekComponent.mjs +1 -1
- package/dist/lib/esm/obsidian/Components/index.d.mts +5 -1
- package/dist/lib/esm/obsidian/Components/index.mjs +11 -3
- package/dist/lib/esm/obsidian/Dataview.d.mts +11 -12
- package/dist/lib/esm/obsidian/Dataview.mjs +1 -1
- package/dist/lib/esm/obsidian/DataviewLink.d.mts +4 -3
- package/dist/lib/esm/obsidian/DataviewLink.mjs +1 -1
- package/dist/lib/esm/obsidian/FileChange.d.mts +4 -3
- package/dist/lib/esm/obsidian/FileChange.mjs +1 -1
- package/dist/lib/esm/obsidian/FileManager.d.mts +6 -5
- package/dist/lib/esm/obsidian/FileManager.mjs +1 -1
- package/dist/lib/esm/obsidian/FileSystem.d.mts +3 -1
- package/dist/lib/esm/obsidian/FileSystem.mjs +1 -1
- package/dist/lib/esm/obsidian/Frontmatter.d.mts +5 -1
- package/dist/lib/esm/obsidian/Frontmatter.mjs +1 -1
- package/dist/lib/esm/obsidian/Link.d.mts +7 -6
- package/dist/lib/esm/obsidian/Link.mjs +1 -1
- package/dist/lib/esm/obsidian/Logger.d.mts +2 -1
- package/dist/lib/esm/obsidian/Logger.mjs +1 -1
- package/dist/lib/esm/obsidian/Loop.d.mts +2 -1
- package/dist/lib/esm/obsidian/Loop.mjs +1 -1
- package/dist/lib/esm/obsidian/Markdown.d.mts +2 -1
- package/dist/lib/esm/obsidian/Markdown.mjs +5 -8
- package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.d.mts +2 -1
- package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.mjs +1 -1
- package/dist/lib/esm/obsidian/MarkdownView.d.mts +2 -1
- package/dist/lib/esm/obsidian/MarkdownView.mjs +1 -1
- package/dist/lib/esm/obsidian/MetadataCache.d.mts +7 -5
- package/dist/lib/esm/obsidian/MetadataCache.mjs +1 -1
- package/dist/lib/esm/obsidian/Modals/Alert.d.mts +3 -2
- package/dist/lib/esm/obsidian/Modals/Alert.mjs +3 -1
- package/dist/lib/esm/obsidian/Modals/Confirm.d.mts +3 -2
- package/dist/lib/esm/obsidian/Modals/Confirm.mjs +3 -1
- package/dist/lib/esm/obsidian/Modals/ModalBase.d.mts +2 -2
- package/dist/lib/esm/obsidian/Modals/ModalBase.mjs +1 -1
- package/dist/lib/esm/obsidian/Modals/Prompt.d.mts +5 -3
- package/dist/lib/esm/obsidian/Modals/Prompt.mjs +3 -1
- package/dist/lib/esm/obsidian/Modals/SelectItem.d.mts +4 -2
- package/dist/lib/esm/obsidian/Modals/SelectItem.mjs +2 -1
- package/dist/lib/esm/obsidian/MonkeyAround.d.mts +5 -3
- package/dist/lib/esm/obsidian/MonkeyAround.mjs +1 -1
- package/dist/lib/esm/obsidian/ObsidianSettings.d.mts +3 -0
- package/dist/lib/esm/obsidian/ObsidianSettings.mjs +1 -1
- package/dist/lib/esm/obsidian/Pdf.d.mts +2 -1
- package/dist/lib/esm/obsidian/Pdf.mjs +1 -1
- package/dist/lib/esm/obsidian/Plugin/ObsidianPluginRepoPaths.d.mts +38 -29
- package/dist/lib/esm/obsidian/Plugin/ObsidianPluginRepoPaths.mjs +6 -2
- package/dist/lib/esm/obsidian/Plugin/Plugin.d.mts +4 -3
- package/dist/lib/esm/obsidian/Plugin/Plugin.mjs +1 -1
- package/dist/lib/esm/obsidian/Plugin/PluginBase.d.mts +52 -21
- package/dist/lib/esm/obsidian/Plugin/PluginBase.mjs +128 -38
- package/dist/lib/esm/obsidian/Plugin/PluginContext.d.mts +2 -1
- package/dist/lib/esm/obsidian/Plugin/PluginContext.mjs +1 -1
- package/dist/lib/esm/obsidian/Plugin/PluginId.d.mts +2 -1
- package/dist/lib/esm/obsidian/Plugin/PluginId.mjs +1 -1
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsManagerBase.d.mts +42 -22
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsManagerBase.mjs +92 -56
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.d.mts +18 -11
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.mjs +33 -14
- package/dist/lib/esm/obsidian/Plugin/PluginTypesBase.d.mts +55 -0
- package/dist/lib/esm/obsidian/Plugin/PluginTypesBase.mjs +8 -0
- package/dist/lib/esm/obsidian/Plugin/index.d.mts +1 -0
- package/dist/lib/esm/obsidian/Plugin/index.mjs +4 -2
- package/dist/lib/esm/obsidian/Queue.d.mts +3 -2
- package/dist/lib/esm/obsidian/Queue.mjs +1 -1
- package/dist/lib/esm/obsidian/React/AppContext.d.mts +8 -1
- package/dist/lib/esm/obsidian/React/AppContext.mjs +3 -3
- package/dist/lib/esm/obsidian/Reference.d.mts +2 -1
- package/dist/lib/esm/obsidian/Reference.mjs +1 -1
- package/dist/lib/esm/obsidian/RenameDeleteHandler.d.mts +3 -2
- package/dist/lib/esm/obsidian/RenameDeleteHandler.mjs +75 -75
- package/dist/lib/esm/obsidian/ResourceUrl.d.mts +2 -1
- package/dist/lib/esm/obsidian/ResourceUrl.mjs +1 -1
- package/dist/lib/esm/obsidian/SettingEx.d.mts +35 -2
- package/dist/lib/esm/obsidian/SettingEx.mjs +41 -1
- package/dist/lib/esm/obsidian/ValidationMessage.d.mts +5 -0
- package/dist/lib/esm/obsidian/ValidationMessage.mjs +1 -1
- package/dist/lib/esm/obsidian/Vault.d.mts +15 -10
- package/dist/lib/esm/obsidian/Vault.mjs +1 -1
- package/dist/lib/esm/obsidian/VaultEx.d.mts +4 -3
- package/dist/lib/esm/obsidian/VaultEx.mjs +1 -1
- package/dist/lib/esm/url.d.mts +2 -1
- package/dist/lib/esm/url.mjs +1 -1
- package/obsidian/Components/CheckboxComponent/package.json +6 -0
- package/obsidian/Components/TextBasedComponent/package.json +6 -0
- package/obsidian/Components/TriStateCheckboxComponent/package.json +6 -0
- package/obsidian/Components/TypedDropdownComponent/package.json +6 -0
- package/obsidian/Components/TypedMultipleDropdownComponent/package.json +6 -0
- package/obsidian/Plugin/PluginTypesBase/package.json +6 -0
- package/package.json +5 -6
- package/dist/lib/cjs/obsidian/Components/PlaceholderComponent.d.cts +0 -19
- package/dist/lib/esm/obsidian/Components/PlaceholderComponent.d.mts +0 -19
- package/dist/lib/esm/obsidian/Components/PlaceholderComponent.mjs +0 -14
- package/obsidian/Components/PlaceholderComponent/package.json +0 -6
@@ -1,24 +1,29 @@
|
|
1
1
|
/**
|
2
|
-
* @packageDocumentation
|
2
|
+
* @packageDocumentation
|
3
|
+
*
|
3
4
|
* Contains a component that displays and edits a text-based value.
|
4
5
|
*/
|
5
6
|
import type { Promisable } from 'type-fest';
|
6
7
|
import { ValueComponent } from 'obsidian';
|
7
8
|
import type { ValidatorElement } from '../../HTMLElement.mjs';
|
8
|
-
import type {
|
9
|
+
import type { TextBasedComponent } from './TextBasedComponent.mjs';
|
9
10
|
import type { ValidatorComponent } from './ValidatorComponent.mjs';
|
10
11
|
import type { ValueComponentWithChangeTracking } from './ValueComponentWithChangeTracking.mjs';
|
11
12
|
import { CssClass } from '../../CssClass.mjs';
|
12
13
|
/**
|
13
14
|
* A component that displays and edits a text-based value.
|
15
|
+
*
|
16
|
+
* @typeParam T - The type of the value to set.
|
14
17
|
*/
|
15
|
-
export declare abstract class TypedTextComponent<T> extends ValueComponent<T> implements
|
18
|
+
export declare abstract class TypedTextComponent<T> extends ValueComponent<T> implements TextBasedComponent<T>, ValidatorComponent, ValueComponentWithChangeTracking<T> {
|
16
19
|
/**
|
17
20
|
* The input element of the component.
|
18
21
|
*/
|
19
22
|
readonly inputEl: HTMLInputElement;
|
20
23
|
/**
|
21
24
|
* The validator element of the component.
|
25
|
+
*
|
26
|
+
* @returns The validator element.
|
22
27
|
*/
|
23
28
|
get validatorEl(): ValidatorElement;
|
24
29
|
private readonly textComponent;
|
@@ -30,12 +35,22 @@ export declare abstract class TypedTextComponent<T> extends ValueComponent<T> im
|
|
30
35
|
* @param cssClass - The CSS class of the component.
|
31
36
|
*/
|
32
37
|
constructor(containerEl: HTMLElement, type: string, cssClass: CssClass);
|
38
|
+
/**
|
39
|
+
* Empties the component.
|
40
|
+
*/
|
41
|
+
empty(): void;
|
33
42
|
/**
|
34
43
|
* Gets the value of the component.
|
35
44
|
*
|
36
45
|
* @returns The value of the component.
|
37
46
|
*/
|
38
47
|
getValue(): T;
|
48
|
+
/**
|
49
|
+
* Checks if the component is empty.
|
50
|
+
*
|
51
|
+
* @returns `true` if the component is empty, `false` otherwise.
|
52
|
+
*/
|
53
|
+
isEmpty(): boolean;
|
39
54
|
/**
|
40
55
|
* Sets the callback function to be called when the component is changed.
|
41
56
|
*
|
@@ -61,6 +76,13 @@ export declare abstract class TypedTextComponent<T> extends ValueComponent<T> im
|
|
61
76
|
* @returns The component.
|
62
77
|
*/
|
63
78
|
setPlaceholder(placeholder: string): this;
|
79
|
+
/**
|
80
|
+
* Sets the placeholder value of the component.
|
81
|
+
*
|
82
|
+
* @param placeholderValue - The placeholder value to set.
|
83
|
+
* @returns The component.
|
84
|
+
*/
|
85
|
+
setPlaceholderValue(placeholderValue: T): this;
|
64
86
|
/**
|
65
87
|
* Sets the value of the component.
|
66
88
|
*
|
@@ -18,6 +18,8 @@ class TypedTextComponent extends ValueComponent {
|
|
18
18
|
inputEl;
|
19
19
|
/**
|
20
20
|
* The validator element of the component.
|
21
|
+
*
|
22
|
+
* @returns The validator element.
|
21
23
|
*/
|
22
24
|
get validatorEl() {
|
23
25
|
return this.inputEl;
|
@@ -37,13 +39,27 @@ class TypedTextComponent extends ValueComponent {
|
|
37
39
|
this.inputEl.type = type;
|
38
40
|
containerEl.addClass(CssClass.LibraryName, getPluginId(), cssClass);
|
39
41
|
}
|
42
|
+
/**
|
43
|
+
* Empties the component.
|
44
|
+
*/
|
45
|
+
empty() {
|
46
|
+
this.textComponent.setValue("");
|
47
|
+
}
|
40
48
|
/**
|
41
49
|
* Gets the value of the component.
|
42
50
|
*
|
43
51
|
* @returns The value of the component.
|
44
52
|
*/
|
45
53
|
getValue() {
|
46
|
-
return this.valueFromString(this.
|
54
|
+
return this.valueFromString(this.textComponent.getValue());
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Checks if the component is empty.
|
58
|
+
*
|
59
|
+
* @returns `true` if the component is empty, `false` otherwise.
|
60
|
+
*/
|
61
|
+
isEmpty() {
|
62
|
+
return this.textComponent.getValue() === "";
|
47
63
|
}
|
48
64
|
/**
|
49
65
|
* Sets the callback function to be called when the component is changed.
|
@@ -68,8 +84,8 @@ class TypedTextComponent extends ValueComponent {
|
|
68
84
|
* @returns The component.
|
69
85
|
*/
|
70
86
|
setDisabled(disabled) {
|
87
|
+
super.setDisabled(disabled);
|
71
88
|
this.textComponent.setDisabled(disabled);
|
72
|
-
this.disabled = disabled;
|
73
89
|
return this;
|
74
90
|
}
|
75
91
|
/**
|
@@ -82,6 +98,16 @@ class TypedTextComponent extends ValueComponent {
|
|
82
98
|
this.textComponent.setPlaceholder(placeholder);
|
83
99
|
return this;
|
84
100
|
}
|
101
|
+
/**
|
102
|
+
* Sets the placeholder value of the component.
|
103
|
+
*
|
104
|
+
* @param placeholderValue - The placeholder value to set.
|
105
|
+
* @returns The component.
|
106
|
+
*/
|
107
|
+
setPlaceholderValue(placeholderValue) {
|
108
|
+
this.setPlaceholder(this.valueToString(placeholderValue));
|
109
|
+
return this;
|
110
|
+
}
|
85
111
|
/**
|
86
112
|
* Sets the value of the component.
|
87
113
|
*
|
@@ -89,7 +115,7 @@ class TypedTextComponent extends ValueComponent {
|
|
89
115
|
* @returns The component.
|
90
116
|
*/
|
91
117
|
setValue(value) {
|
92
|
-
this.
|
118
|
+
this.textComponent.setValue(this.valueToString(value));
|
93
119
|
return this;
|
94
120
|
}
|
95
121
|
/**
|
@@ -105,4 +131,4 @@ class TypedTextComponent extends ValueComponent {
|
|
105
131
|
export {
|
106
132
|
TypedTextComponent
|
107
133
|
};
|
108
|
-
//# sourceMappingURL=data:application/json;base64,
|
134
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvVHlwZWRUZXh0Q29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBwYWNrYWdlRG9jdW1lbnRhdGlvblxuICpcbiAqIENvbnRhaW5zIGEgY29tcG9uZW50IHRoYXQgZGlzcGxheXMgYW5kIGVkaXRzIGEgdGV4dC1iYXNlZCB2YWx1ZS5cbiAqL1xuXG5pbXBvcnQgdHlwZSB7IFByb21pc2FibGUgfSBmcm9tICd0eXBlLWZlc3QnO1xuXG5pbXBvcnQge1xuICBUZXh0Q29tcG9uZW50LFxuICBWYWx1ZUNvbXBvbmVudFxufSBmcm9tICdvYnNpZGlhbic7XG5cbmltcG9ydCB0eXBlIHsgVmFsaWRhdG9yRWxlbWVudCB9IGZyb20gJy4uLy4uL0hUTUxFbGVtZW50LnRzJztcbmltcG9ydCB0eXBlIHsgVGV4dEJhc2VkQ29tcG9uZW50IH0gZnJvbSAnLi9UZXh0QmFzZWRDb21wb25lbnQudHMnO1xuaW1wb3J0IHR5cGUgeyBWYWxpZGF0b3JDb21wb25lbnQgfSBmcm9tICcuL1ZhbGlkYXRvckNvbXBvbmVudC50cyc7XG5pbXBvc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BQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBUWdCLFlBQVksVUFBeUI7QUFDbkQsVUFBTSxZQUFZLFFBQVE7QUFDMUIsU0FBSyxjQUFjLFlBQVksUUFBUTtBQUN2QyxXQUFPO0FBQUEsRUFDVDtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBUU8sZUFBZSxhQUEyQjtBQUMvQyxTQUFLLGNBQWMsZUFBZSxXQUFXO0FBQzdDLFdBQU87QUFBQSxFQUNUO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRUFRTyxvQkFBb0Isa0JBQTJCO0FBQ3BELFNBQUssZUFBZSxLQUFLLGNBQWMsZ0JBQWdCLENBQUM7QUFDeEQsV0FBTztBQUFBLEVBQ1Q7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSxFQVFnQixTQUFTLE9BQWdCO0FBQ3ZDLFNBQUssY0FBYyxTQUFTLEtBQUssY0FBYyxLQUFLLENBQUM7QUFDckQsV0FBTztBQUFBLEVBQ1Q7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSxFQWdCTyxjQUFjLE9BQWtCO0FBQ3JDLFdBQU8sT0FBTyxLQUFLO0FBQUEsRUFDckI7QUFDRjsiLAogICJuYW1lcyI6IFtdCn0K
|
@@ -29,4 +29,4 @@ class UrlComponent extends TypedTextComponent {
|
|
29
29
|
export {
|
30
30
|
UrlComponent
|
31
31
|
};
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvVXJsQ29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBwYWNrYWdlRG9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
|
1
1
|
/**
|
2
|
-
* @packageDocumentation
|
2
|
+
* @packageDocumentation
|
3
|
+
*
|
3
4
|
* Contains a component that has a validator element.
|
4
5
|
*/
|
5
|
-
import type { BaseComponent } from 'obsidian';
|
6
6
|
import type { ValidatorElement } from '../../HTMLElement.mjs';
|
7
7
|
/**
|
8
8
|
* A component that has a validator element.
|
@@ -14,9 +14,9 @@ export interface ValidatorComponent {
|
|
14
14
|
readonly validatorEl: ValidatorElement;
|
15
15
|
}
|
16
16
|
/**
|
17
|
-
* Gets a validator component related to the
|
17
|
+
* Gets a validator component related to the given object.
|
18
18
|
*
|
19
|
-
* @param
|
20
|
-
* @returns related validator component or `null` if no related validator component is found
|
19
|
+
* @param obj - Any object.
|
20
|
+
* @returns The related validator component or `null` if no related validator component is found.
|
21
21
|
*/
|
22
|
-
export declare function getValidatorComponent(
|
22
|
+
export declare function getValidatorComponent(obj: unknown): null | ValidatorComponent;
|
@@ -9,44 +9,39 @@ import {
|
|
9
9
|
DropdownComponent,
|
10
10
|
SliderComponent,
|
11
11
|
TextAreaComponent,
|
12
|
-
TextComponent
|
12
|
+
TextComponent,
|
13
|
+
ToggleComponent
|
13
14
|
} from "obsidian";
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
return validatorComponent;
|
15
|
+
class ValidatorElementWrapper {
|
16
|
+
constructor(validatorEl) {
|
17
|
+
this.validatorEl = validatorEl;
|
18
18
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
}
|
20
|
+
function getValidatorComponent(obj) {
|
21
|
+
if (isValidatorComponent(obj)) {
|
22
|
+
return obj;
|
23
|
+
}
|
24
|
+
if (obj instanceof DropdownComponent) {
|
25
|
+
return new ValidatorElementWrapper(obj.selectEl);
|
25
26
|
}
|
26
|
-
if (
|
27
|
-
return
|
28
|
-
get validatorEl() {
|
29
|
-
return baseComponent.sliderEl;
|
30
|
-
}
|
31
|
-
};
|
27
|
+
if (obj instanceof SliderComponent) {
|
28
|
+
return new ValidatorElementWrapper(obj.sliderEl);
|
32
29
|
}
|
33
|
-
if (
|
34
|
-
return
|
35
|
-
get validatorEl() {
|
36
|
-
return baseComponent.inputEl;
|
37
|
-
}
|
38
|
-
};
|
30
|
+
if (obj instanceof TextAreaComponent) {
|
31
|
+
return new ValidatorElementWrapper(obj.inputEl);
|
39
32
|
}
|
40
|
-
if (
|
41
|
-
return
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
};
|
33
|
+
if (obj instanceof TextComponent) {
|
34
|
+
return new ValidatorElementWrapper(obj.inputEl);
|
35
|
+
}
|
36
|
+
if (obj instanceof ToggleComponent) {
|
37
|
+
return new ValidatorElementWrapper(obj.toggleEl.find("input[type=checkbox]"));
|
46
38
|
}
|
47
39
|
return null;
|
48
40
|
}
|
41
|
+
function isValidatorComponent(obj) {
|
42
|
+
return !!obj.validatorEl;
|
43
|
+
}
|
49
44
|
export {
|
50
45
|
getValidatorComponent
|
51
46
|
};
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
47
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvVmFsaWRhdG9yQ29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBwYWNrYWdlRG9jdW1lbnRhdGlvblxuICpcbiAqIENvbnRhaW5zIGEgY29tcG9uZW50IHRoYXQgaGFzIGEgdmFsaWRhdG9yIGVsZW1lbnQuXG4gKi9cblxuaW1wb3J0IHtcbiAgRHJvcGRvd25Db21wb25lbnQsXG4gIFNsaWRlckNvbXBvbmVudCxcbiAgVGV4dEFyZWFDb21wb25lbnQsXG4gIFRleHRDb21wb25lbnQsXG4gIFRvZ2dsZUNvbXBvbmVudFxufSBmcm9tICdvYnNpZGlhbic7XG5cbmltcG9ydCB0eXBlIHsgVmFs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BQXlDO0FBQzdFLE1BQUkscUJBQXFCLEdBQUcsR0FBRztBQUM3QixXQUFPO0FBQUEsRUFDVDtBQUVBLE1BQUksZUFBZSxtQkFBbUI7QUFDcEMsV0FBTyxJQUFJLHdCQUF3QixJQUFJLFFBQVE7QUFBQSxFQUNqRDtBQUVBLE1BQUksZUFBZSxpQkFBaUI7QUFDbEMsV0FBTyxJQUFJLHdCQUF3QixJQUFJLFFBQVE7QUFBQSxFQUNqRDtBQUVBLE1BQUksZUFBZSxtQkFBbUI7QUFDcEMsV0FBTyxJQUFJLHdCQUF3QixJQUFJLE9BQU87QUFBQSxFQUNoRDtBQUVBLE1BQUksZUFBZSxlQUFlO0FBQ2hDLFdBQU8sSUFBSSx3QkFBd0IsSUFBSSxPQUFPO0FBQUEsRUFDaEQ7QUFFQSxNQUFJLGVBQWUsaUJBQWlCO0FBQ2xDLFdBQU8sSUFBSSx3QkFBd0IsSUFBSSxTQUFTLEtBQUssc0JBQXNCLENBQXFCO0FBQUEsRUFDbEc7QUFFQSxTQUFPO0FBQ1Q7QUFFQSxTQUFTLHFCQUFxQixLQUF5QztBQUNyRSxTQUFPLENBQUMsQ0FBRSxJQUFvQztBQUNoRDsiLAogICJuYW1lcyI6IFtdCn0K
|
@@ -1,11 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @packageDocumentation
|
2
|
+
* @packageDocumentation
|
3
|
+
*
|
3
4
|
* Contains a type that extends ValueComponent to allow for change tracking.
|
4
5
|
*/
|
5
6
|
import type { ValueComponent } from 'obsidian';
|
6
7
|
import type { Promisable } from 'type-fest';
|
7
8
|
/**
|
8
9
|
* A ValueComponent that can track changes.
|
10
|
+
*
|
11
|
+
* @typeParam T - The type of the value to set.
|
9
12
|
*/
|
10
13
|
export interface ValueComponentWithChangeTracking<T> extends ValueComponent<T> {
|
11
14
|
/**
|
@@ -48,4 +48,4 @@ class WeekComponent extends TypedRangeTextComponent {
|
|
48
48
|
export {
|
49
49
|
WeekComponent
|
50
50
|
};
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
51
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvV2Vla0NvbXBvbmVudC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBAcGFja2FnZURvY3VtZW50YXRpb25cbiAqXG4gKiBDb250YWlucyBhIGNvbXBvbmVudCB0aGF0IGRpc3BsYXlzIGFuZCBlZGl0cyBhIHdlZWsuXG4gKi9cblxuaW1wb3J0IG1vbWVudCBmcm9tICdtb21lbnQnO1xuXG4vLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLXVudXNlZC12YXJzXG5pbXBvcnQgdHlwZSB7IGluaXRQbHVnaW5Db250ZXh0IH0gZnJvbSAnLi4vUGx1Z2luL1BsdWdpbkNvbnRleHQudHMnO1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby11bnVzZWQtdmFyc1xuaW1wb3J0IHR5cGUgeyBTZXR0aW5nRXggfSBmcm9tICcuLi9TZXR0aW5nRXgudHMnO1xuXG5pbXBvcnQgeyBDc3NDbGFzcyB9IGZyb20gJy4uLy4uL0Nzc0NsYXNzLnRzJztcbmltcG9ydCB7IFR5cGVkUmFuZ2VUZXh0Q29tcG9uZW50IH0gZnJvbSAnLi9UeXBlZFJhbmdlVGV4dENvbXBvbmVudC50cyc7XG5cbmNvbnN0IERBVEVfRk9STUFUID0gJ1lZWVktW1ddV1cnO1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYW4gSVNPIDg2MDEgd2VlayBkYXRlLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIElzb1dlZWsge1xuICAvKipcbiAgICogVGhlIElTTyA4NjAxIHdlZWsgbnVtYmVyICgxLTUzKS5cb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QUE7QUFBQSxFQU0zRCxZQUFZLGFBQTBCO0FBQzNDLFVBQU0sYUFBYSxRQUFRLFNBQVMsYUFBYTtBQUFBLEVBQ25EO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRUFRZ0IsZ0JBQWdCLEtBQXNCO0FBQ3BELFVBQU0sU0FBUyxPQUFPLEtBQUssV0FBVztBQUV0QyxRQUFJLENBQUMsT0FBTyxRQUFRLEdBQUc7QUFDckIsWUFBTSxJQUFJLE1BQU0sY0FBYztBQUFBLElBQ2hDO0FBRUEsV0FBTztBQUFBLE1BQ0wsWUFBWSxPQUFPLFFBQVE7QUFBQSxNQUMzQixNQUFNLE9BQU8sS0FBSztBQUFBLElBQ3BCO0FBQUEsRUFDRjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBUWdCLGNBQWMsT0FBd0I7QUFDcEQsVUFBTSxPQUFPLE9BQU8sRUFBRSxLQUFLLE1BQU0sSUFBSSxFQUFFLFFBQVEsTUFBTSxVQUFVO0FBQy9ELFdBQU8sS0FBSyxPQUFPLFdBQVc7QUFBQSxFQUNoQztBQUNGOyIsCiAgIm5hbWVzIjogW10KfQo=
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export * as CheckboxComponent from './CheckboxComponent.mjs';
|
1
2
|
export * as DateComponent from './DateComponent.mjs';
|
2
3
|
export * as DateTimeComponent from './DateTimeComponent.mjs';
|
3
4
|
export * as EmailComponent from './EmailComponent.mjs';
|
@@ -8,8 +9,11 @@ export * as MultipleEmailComponent from './MultipleEmailComponent.mjs';
|
|
8
9
|
export * as MultipleFileComponent from './MultipleFileComponent.mjs';
|
9
10
|
export * as MultipleTextComponent from './MultipleTextComponent.mjs';
|
10
11
|
export * as NumberComponent from './NumberComponent.mjs';
|
11
|
-
export * as
|
12
|
+
export * as TextBasedComponent from './TextBasedComponent.mjs';
|
12
13
|
export * as TimeComponent from './TimeComponent.mjs';
|
14
|
+
export * as TriStateCheckboxComponent from './TriStateCheckboxComponent.mjs';
|
15
|
+
export * as TypedDropdownComponent from './TypedDropdownComponent.mjs';
|
16
|
+
export * as TypedMultipleDropdownComponent from './TypedMultipleDropdownComponent.mjs';
|
13
17
|
export * as TypedRangeTextComponent from './TypedRangeTextComponent.mjs';
|
14
18
|
export * as TypedTextComponent from './TypedTextComponent.mjs';
|
15
19
|
export * as UrlComponent from './UrlComponent.mjs';
|
@@ -5,6 +5,7 @@ if you want to view the source, please visit the github repository of this plugi
|
|
5
5
|
|
6
6
|
(function initEsm(){if(globalThis.process){return}const browserProcess={browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=browserProcess})();
|
7
7
|
|
8
|
+
import * as CheckboxComponent from "./CheckboxComponent.mjs";
|
8
9
|
import * as DateComponent from "./DateComponent.mjs";
|
9
10
|
import * as DateTimeComponent from "./DateTimeComponent.mjs";
|
10
11
|
import * as EmailComponent from "./EmailComponent.mjs";
|
@@ -15,8 +16,11 @@ import * as MultipleEmailComponent from "./MultipleEmailComponent.mjs";
|
|
15
16
|
import * as MultipleFileComponent from "./MultipleFileComponent.mjs";
|
16
17
|
import * as MultipleTextComponent from "./MultipleTextComponent.mjs";
|
17
18
|
import * as NumberComponent from "./NumberComponent.mjs";
|
18
|
-
import * as
|
19
|
+
import * as TextBasedComponent from "./TextBasedComponent.mjs";
|
19
20
|
import * as TimeComponent from "./TimeComponent.mjs";
|
21
|
+
import * as TriStateCheckboxComponent from "./TriStateCheckboxComponent.mjs";
|
22
|
+
import * as TypedDropdownComponent from "./TypedDropdownComponent.mjs";
|
23
|
+
import * as TypedMultipleDropdownComponent from "./TypedMultipleDropdownComponent.mjs";
|
20
24
|
import * as TypedRangeTextComponent from "./TypedRangeTextComponent.mjs";
|
21
25
|
import * as TypedTextComponent from "./TypedTextComponent.mjs";
|
22
26
|
import * as UrlComponent from "./UrlComponent.mjs";
|
@@ -24,6 +28,7 @@ import * as ValidatorComponent from "./ValidatorComponent.mjs";
|
|
24
28
|
import * as ValueComponentWithChangeTracking from "./ValueComponentWithChangeTracking.mjs";
|
25
29
|
import * as WeekComponent from "./WeekComponent.mjs";
|
26
30
|
export {
|
31
|
+
CheckboxComponent,
|
27
32
|
DateComponent,
|
28
33
|
DateTimeComponent,
|
29
34
|
EmailComponent,
|
@@ -34,8 +39,11 @@ export {
|
|
34
39
|
MultipleFileComponent,
|
35
40
|
MultipleTextComponent,
|
36
41
|
NumberComponent,
|
37
|
-
|
42
|
+
TextBasedComponent,
|
38
43
|
TimeComponent,
|
44
|
+
TriStateCheckboxComponent,
|
45
|
+
TypedDropdownComponent,
|
46
|
+
TypedMultipleDropdownComponent,
|
39
47
|
TypedRangeTextComponent,
|
40
48
|
TypedTextComponent,
|
41
49
|
UrlComponent,
|
@@ -43,4 +51,4 @@ export {
|
|
43
51
|
ValueComponentWithChangeTracking,
|
44
52
|
WeekComponent
|
45
53
|
};
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
54
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qIFRISVMgSVMgQSBHRU5FUkFURUQvQlVORExFRCBGSUxFIEJZIEJVSUxEIFNDUklQVCAqL1xuXG5leHBvcnQgKiBhcyBDaGVja2JveENvbXBvbmVudCBmcm9tICcuL0NoZWNrYm94Q29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIERhdGVDb21wb25lbnQgZnJvbSAnLi9EYXRlQ29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIERhdGVUaW1lQ29tcG9uZW50IGZyb20gJy4vRGF0ZVRpbWVDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgRW1haWxDb21wb25lbnQgZnJvbSAnLi9FbWFpbENvbXBvbmVudC50cyc7XG5leHBvc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ogICJuYW1lcyI6IFtdCn0K
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* @packageDocumentation
|
2
|
+
* @packageDocumentation
|
3
|
+
*
|
3
4
|
* This module provides utility functions for working with Dataview in Obsidian.
|
4
5
|
*/
|
5
6
|
import type { Promisable } from 'type-fest';
|
@@ -28,11 +29,11 @@ export type CombinedPage<CustomFrontmatter = unknown> = CombinedFrontmatter<Cust
|
|
28
29
|
*/
|
29
30
|
export interface DataviewInlineApi extends DataviewInlineApiOriginal {
|
30
31
|
/**
|
31
|
-
* Wraps an array of items into a
|
32
|
+
* Wraps an array of items into a {@link DataArray} object.
|
32
33
|
*
|
33
34
|
* @typeParam T - The type of the items in the array.
|
34
35
|
* @param arr - The array of items to wrap.
|
35
|
-
* @returns A
|
36
|
+
* @returns A {@link DataArray} containing the items.
|
36
37
|
*/
|
37
38
|
array<T>(arr: T[]): DataArray<T>;
|
38
39
|
/**
|
@@ -47,7 +48,7 @@ export interface DataviewInlineApi extends DataviewInlineApiOriginal {
|
|
47
48
|
*
|
48
49
|
* @typeParam CustomPage - The type of the custom page. Defaults to `SMarkdownPage`.
|
49
50
|
* @param query - An optional string query to filter the pages.
|
50
|
-
* @returns A
|
51
|
+
* @returns A {@link DataArray} of pages matching the query.
|
51
52
|
*/
|
52
53
|
pages<CustomFrontmatter = unknown>(query?: string): DataArray<CombinedPage<CustomFrontmatter>>;
|
53
54
|
/**
|
@@ -77,7 +78,7 @@ export type PageFiles = ArrayOrDataArray<PageFile>;
|
|
77
78
|
* Reloads the current file cache using the Dataview API.
|
78
79
|
*
|
79
80
|
* @param dv - The DataviewInlineApi instance.
|
80
|
-
* @returns A
|
81
|
+
* @returns A {@link Promise} that resolves when the cache is reloaded.
|
81
82
|
*/
|
82
83
|
export declare function reloadCurrentFileCache(dv: DataviewInlineApi): Promise<void>;
|
83
84
|
/**
|
@@ -136,8 +137,9 @@ export interface RenderPaginatedOptions<T> {
|
|
136
137
|
itemsPerPageOptions: number[];
|
137
138
|
/**
|
138
139
|
* The renderer function to display the paginated content.
|
140
|
+
*
|
139
141
|
* @param rowsForOnePage - The rows to render.
|
140
|
-
* @returns A
|
142
|
+
* @returns A {@link Promise} that resolves when the content is rendered.
|
141
143
|
*/
|
142
144
|
renderer: (rowsForOnePage: ArrayOrDataArray<T>) => Promisable<void>;
|
143
145
|
/**
|
@@ -172,7 +174,7 @@ export interface RenderPaginatedTableOptions<T> {
|
|
172
174
|
*
|
173
175
|
* @param dv - The DataviewInlineApi instance.
|
174
176
|
* @param renderer - The function responsible for rendering the content.
|
175
|
-
* @returns A
|
177
|
+
* @returns A {@link Promise} that resolves to the HTML paragraph element
|
176
178
|
* that was used as the temporary container.
|
177
179
|
*/
|
178
180
|
export declare function getRenderedContainer(dv: DataviewInlineApi, renderer: () => Promisable<void>): Promise<HTMLParagraphElement>;
|
@@ -182,15 +184,12 @@ export declare function getRenderedContainer(dv: DataviewInlineApi, renderer: ()
|
|
182
184
|
* @param dv - The DataviewInlineApi instance to insert the code block into.
|
183
185
|
* @param language - The language identifier for the code block.
|
184
186
|
* @param code - The code content to be inserted into the code block.
|
185
|
-
* @returns This function does not return a value.
|
186
187
|
*/
|
187
188
|
export declare function insertCodeBlock(dv: DataviewInlineApi, language: string, code: string): void;
|
188
189
|
/**
|
189
190
|
* Renders an iframe in the Dataview container with the specified relative path, width, and height.
|
190
191
|
*
|
191
192
|
* @param options - The options for rendering the iframe.
|
192
|
-
*
|
193
|
-
* @returns This function does not return a value.
|
194
193
|
*/
|
195
194
|
export declare function renderIframe(options: RenderIframeOptions): void;
|
196
195
|
/**
|
@@ -200,7 +199,7 @@ export declare function renderIframe(options: RenderIframeOptions): void;
|
|
200
199
|
*
|
201
200
|
* @param options - The options for rendering the paginated list.
|
202
201
|
*
|
203
|
-
* @returns A
|
202
|
+
* @returns A {@link Promise} that resolves when the list is rendered.
|
204
203
|
*/
|
205
204
|
export declare function renderPaginatedList<T>(options: RenderPaginatedListOptions<T>): Promise<void>;
|
206
205
|
/**
|
@@ -210,6 +209,6 @@ export declare function renderPaginatedList<T>(options: RenderPaginatedListOptio
|
|
210
209
|
*
|
211
210
|
* @param options - The options for rendering the paginated table.
|
212
211
|
*
|
213
|
-
* @returns A
|
212
|
+
* @returns A {@link Promise} that resolves when the table is rendered.
|
214
213
|
*/
|
215
214
|
export declare function renderPaginatedTable<T extends unknown[]>(options: RenderPaginatedTableOptions<T>): Promise<void>;
|