@lapis-notes/api 0.1.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 +9 -0
- package/LICENSE.md +4 -0
- package/README.md +43 -0
- package/dist/__tests__/data-adapter-conformance.js +205 -0
- package/dist/__tests__/lapis-runtime-manifest.js +32 -0
- package/dist/__tests__/svelte-internal-client.d.ts +3 -0
- package/dist/agent-result-views.d.ts +52 -0
- package/dist/agent-result-views.js +89 -0
- package/dist/agent-skills.d.ts +99 -0
- package/dist/agent-skills.js +182 -0
- package/dist/agent-tools.d.ts +92 -0
- package/dist/agent-tools.js +139 -0
- package/dist/app-database-host.d.ts +4 -0
- package/dist/app-database-host.js +4 -0
- package/dist/app-shell-plugin-persistence.d.ts +15 -0
- package/dist/app-shell-plugin-persistence.js +34 -0
- package/dist/app-url.d.ts +54 -0
- package/dist/app-url.js +269 -0
- package/dist/application-compatibility.d.ts +31 -0
- package/dist/application-compatibility.js +64 -0
- package/dist/application-state.svelte.d.ts +14 -0
- package/dist/application-state.svelte.js +30 -0
- package/dist/assets/lapis-logo.svg +471 -0
- package/dist/bases.d.ts +281 -0
- package/dist/bases.js +475 -0
- package/dist/cache.svelte.d.ts +569 -0
- package/dist/cache.svelte.js +1433 -0
- package/dist/command.svelte.d.ts +337 -0
- package/dist/command.svelte.js +571 -0
- package/dist/compat.d.ts +29 -0
- package/dist/compat.js +30 -0
- package/dist/components/configuration/configuration.css +199 -0
- package/dist/components/configuration/date-setting.svelte +71 -0
- package/dist/components/configuration/date-setting.svelte.d.ts +8 -0
- package/dist/components/configuration/list-setting.svelte +128 -0
- package/dist/components/configuration/list-setting.svelte.d.ts +13 -0
- package/dist/components/configuration/object-array-row-grip.svelte +78 -0
- package/dist/components/configuration/object-array-row-grip.svelte.d.ts +9 -0
- package/dist/components/configuration/object-array-row.svelte +163 -0
- package/dist/components/configuration/object-array-row.svelte.d.ts +19 -0
- package/dist/components/configuration/object-array-setting.svelte +196 -0
- package/dist/components/configuration/object-array-setting.svelte.d.ts +15 -0
- package/dist/components/configuration/object-array-table-dnd.d.ts +8 -0
- package/dist/components/configuration/object-array-table-dnd.js +10 -0
- package/dist/components/configuration/object-array-utils.d.ts +11 -0
- package/dist/components/configuration/object-array-utils.js +103 -0
- package/dist/components/configuration/object-grid-setting.svelte +79 -0
- package/dist/components/configuration/object-grid-setting.svelte.d.ts +10 -0
- package/dist/components/configuration/object-map-row.svelte +147 -0
- package/dist/components/configuration/object-map-row.svelte.d.ts +15 -0
- package/dist/components/configuration/object-map-setting.svelte +137 -0
- package/dist/components/configuration/object-map-setting.svelte.d.ts +14 -0
- package/dist/components/configuration/object-map-types.d.ts +5 -0
- package/dist/components/configuration/object-map-types.js +1 -0
- package/dist/components/configuration/options-combobox-setting.svelte +129 -0
- package/dist/components/configuration/options-combobox-setting.svelte.d.ts +12 -0
- package/dist/components/copy-button/button.svelte +93 -0
- package/dist/components/copy-button/button.svelte.d.ts +13 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/copy-button/index.js +2 -0
- package/dist/components/editor/editor.css +565 -0
- package/dist/components/editor/editor.d.ts +33 -0
- package/dist/components/editor/editor.js +132 -0
- package/dist/components/editor/editor.svelte +176 -0
- package/dist/components/editor/editor.svelte.d.ts +15 -0
- package/dist/components/editor/embedded-editor-surface.d.ts +12 -0
- package/dist/components/editor/embedded-editor-surface.js +22 -0
- package/dist/components/editor/embedded-editor-surface.svelte +115 -0
- package/dist/components/editor/embedded-editor-surface.svelte.d.ts +17 -0
- package/dist/components/editor/extensions/autocomplete/index.d.ts +2 -0
- package/dist/components/editor/extensions/autocomplete/index.js +2 -0
- package/dist/components/editor/extensions/autocomplete/lapis-code-mirror-autocomplete.d.ts +16 -0
- package/dist/components/editor/extensions/autocomplete/lapis-code-mirror-autocomplete.js +34 -0
- package/dist/components/editor/extensions/autocomplete/vault-completion-sources.d.ts +27 -0
- package/dist/components/editor/extensions/autocomplete/vault-completion-sources.js +55 -0
- package/dist/components/editor/extensions/class-highlighter/index.d.ts +1 -0
- package/dist/components/editor/extensions/class-highlighter/index.js +47 -0
- package/dist/components/editor/extensions/fold-gutter/index.d.ts +8 -0
- package/dist/components/editor/extensions/fold-gutter/index.js +40 -0
- package/dist/components/editor/extensions/gutter-line-style-sync/index.d.ts +2 -0
- package/dist/components/editor/extensions/gutter-line-style-sync/index.js +118 -0
- package/dist/components/editor/extensions/lint/index.d.ts +4 -0
- package/dist/components/editor/extensions/lint/index.js +4 -0
- package/dist/components/editor/extensions/lint/lapis-code-mirror-lint.d.ts +26 -0
- package/dist/components/editor/extensions/lint/lapis-code-mirror-lint.js +101 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic-helpers.d.ts +8 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic-helpers.js +7 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic.d.ts +20 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic.js +47 -0
- package/dist/components/editor/extensions/lint/lapis-lint-hover-tooltip.d.ts +9 -0
- package/dist/components/editor/extensions/lint/lapis-lint-hover-tooltip.js +373 -0
- package/dist/components/editor/extensions/lint/lapis-lint-inline-widget.d.ts +31 -0
- package/dist/components/editor/extensions/lint/lapis-lint-inline-widget.js +191 -0
- package/dist/components/editor/extensions/lint/lapis-lint-tooltip.svelte +176 -0
- package/dist/components/editor/extensions/lint/lapis-lint-tooltip.svelte.d.ts +15 -0
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.d.ts +11 -0
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.js +21 -0
- package/dist/components/editor/extensions/lint/mount-lint-tooltip.d.ts +16 -0
- package/dist/components/editor/extensions/lint/mount-lint-tooltip.js +60 -0
- package/dist/components/editor/extensions/search/dom.d.ts +2 -0
- package/dist/components/editor/extensions/search/dom.js +6 -0
- package/dist/components/editor/extensions/search/index.d.ts +35 -0
- package/dist/components/editor/extensions/search/index.js +44 -0
- package/dist/components/editor/extensions/search/search.svelte +335 -0
- package/dist/components/editor/extensions/search/search.svelte.d.ts +8 -0
- package/dist/components/editor/index.d.ts +9 -0
- package/dist/components/editor/index.js +9 -0
- package/dist/components/editor/language-service/dom.d.ts +1 -0
- package/dist/components/editor/language-service/dom.js +6 -0
- package/dist/components/editor/language-service/index.d.ts +28 -0
- package/dist/components/editor/language-service/index.js +342 -0
- package/dist/components/empty-view/empty-view.css +39 -0
- package/dist/components/empty-view/empty-view.svelte +26 -0
- package/dist/components/empty-view/empty-view.svelte.d.ts +9 -0
- package/dist/components/empty-view/index.d.ts +2 -0
- package/dist/components/empty-view/index.js +2 -0
- package/dist/components/icon/icon-list.css +74 -0
- package/dist/components/icon/icon-list.svelte +213 -0
- package/dist/components/icon/icon-list.svelte.d.ts +11 -0
- package/dist/components/icon/icon.svelte +15 -0
- package/dist/components/icon/icon.svelte.d.ts +7 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/menu/context-menu.svelte +89 -0
- package/dist/components/menu/context-menu.svelte.d.ts +11 -0
- package/dist/components/menu/drawer-menu.svelte +83 -0
- package/dist/components/menu/drawer-menu.svelte.d.ts +8 -0
- package/dist/components/menu/dropdown-menu.svelte +89 -0
- package/dist/components/menu/dropdown-menu.svelte.d.ts +11 -0
- package/dist/components/menu/index.d.ts +6 -0
- package/dist/components/menu/index.js +6 -0
- package/dist/components/menu/menu.css +139 -0
- package/dist/components/menu/menu.svelte +37 -0
- package/dist/components/menu/menu.svelte.d.ts +11 -0
- package/dist/components/menu/mobile-menu-query.svelte.d.ts +3 -0
- package/dist/components/menu/mobile-menu-query.svelte.js +21 -0
- package/dist/components/menu/popover-menu.svelte +90 -0
- package/dist/components/menu/popover-menu.svelte.d.ts +10 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.svelte +72 -0
- package/dist/components/select/select.svelte.d.ts +25 -0
- package/dist/configuration-option-source-providers.d.ts +17 -0
- package/dist/configuration-option-source-providers.js +59 -0
- package/dist/configuration-option-source-registry.d.ts +59 -0
- package/dist/configuration-option-source-registry.js +123 -0
- package/dist/configuration.svelte.d.ts +258 -0
- package/dist/configuration.svelte.js +887 -0
- package/dist/context-keys.svelte.d.ts +42 -0
- package/dist/context-keys.svelte.js +278 -0
- package/dist/context.svelte.d.ts +247 -0
- package/dist/context.svelte.js +540 -0
- package/dist/daily-document-provider.d.ts +38 -0
- package/dist/daily-document-provider.js +176 -0
- package/dist/design-core-button-types.d.ts +7 -0
- package/dist/design-core-button-types.js +1 -0
- package/dist/diagnostics.d.ts +93 -0
- package/dist/diagnostics.js +84 -0
- package/dist/dialog-portal.d.ts +3 -0
- package/dist/dialog-portal.js +3 -0
- package/dist/docs-api.d.ts +44 -0
- package/dist/docs-api.js +29 -0
- package/dist/editor-view-registry.d.ts +35 -0
- package/dist/editor-view-registry.js +112 -0
- package/dist/editor.svelte.d.ts +126 -0
- package/dist/editor.svelte.js +454 -0
- package/dist/embed-registry.d.ts +15 -0
- package/dist/embed-registry.js +16 -0
- package/dist/enhance.d.ts +111 -0
- package/dist/enhance.js +309 -0
- package/dist/events.d.ts +28 -0
- package/dist/events.js +49 -0
- package/dist/file-manager.d.ts +90 -0
- package/dist/file-manager.js +289 -0
- package/dist/file-tools/app-tools.d.ts +3 -0
- package/dist/file-tools/app-tools.js +242 -0
- package/dist/file-tools/index.d.ts +3 -0
- package/dist/file-tools/index.js +3 -0
- package/dist/file-tools/paths.d.ts +14 -0
- package/dist/file-tools/paths.js +33 -0
- package/dist/file-tools/vault-operations.d.ts +3 -0
- package/dist/file-tools/vault-operations.js +60 -0
- package/dist/generated/plugin-host-modules.schema.generated.d.ts +371 -0
- package/dist/generated/plugin-host-modules.schema.generated.js +374 -0
- package/dist/glob.d.ts +15 -0
- package/dist/glob.js +68 -0
- package/dist/history.svelte.d.ts +24 -0
- package/dist/history.svelte.js +74 -0
- package/dist/hooks/createVirtualizer.svelte.d.ts +7 -0
- package/dist/hooks/createVirtualizer.svelte.js +70 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/is-mobile.svelte.d.ts +5 -0
- package/dist/hooks/is-mobile.svelte.js +23 -0
- package/dist/hooks/mountComponent.svelte.d.ts +7 -0
- package/dist/hooks/mountComponent.svelte.js +16 -0
- package/dist/hooks/use-text-highlight.d.ts +17 -0
- package/dist/hooks/use-text-highlight.js +82 -0
- package/dist/hooks/useBoundingRect.svelte.d.ts +11 -0
- package/dist/hooks/useBoundingRect.svelte.js +46 -0
- package/dist/icons/index.d.ts +57 -0
- package/dist/icons/index.js +288 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +87 -0
- package/dist/language-service/index.d.ts +9 -0
- package/dist/language-service/index.js +7 -0
- package/dist/language-service/manager.d.ts +47 -0
- package/dist/language-service/manager.js +404 -0
- package/dist/language-service/types.d.ts +92 -0
- package/dist/language-service/types.js +1 -0
- package/dist/language-service/virtual-document.d.ts +11 -0
- package/dist/language-service/virtual-document.js +45 -0
- package/dist/language-service/worker-protocol.d.ts +63 -0
- package/dist/language-service/worker-protocol.js +1 -0
- package/dist/language-service/worker-provider.d.ts +9 -0
- package/dist/language-service/worker-provider.js +38 -0
- package/dist/lapis-extension.d.ts +244 -0
- package/dist/lapis-extension.js +591 -0
- package/dist/links.d.ts +34 -0
- package/dist/links.js +191 -0
- package/dist/loaders.d.ts +9 -0
- package/dist/loaders.js +59 -0
- package/dist/localization-manager.svelte.d.ts +56 -0
- package/dist/localization-manager.svelte.js +157 -0
- package/dist/logging.d.ts +172 -0
- package/dist/logging.js +352 -0
- package/dist/markdown-extension-registry.d.ts +31 -0
- package/dist/markdown-extension-registry.js +31 -0
- package/dist/markdown-file-surface-registry.d.ts +25 -0
- package/dist/markdown-file-surface-registry.js +23 -0
- package/dist/markdown.d.ts +205 -0
- package/dist/markdown.js +147 -0
- package/dist/menu-utils.d.ts +1 -0
- package/dist/menu-utils.js +47 -0
- package/dist/menu.svelte.d.ts +121 -0
- package/dist/menu.svelte.js +295 -0
- package/dist/metadata-value.d.ts +10 -0
- package/dist/metadata-value.js +173 -0
- package/dist/metadata.svelte.d.ts +106 -0
- package/dist/metadata.svelte.js +608 -0
- package/dist/notifications.d.ts +209 -0
- package/dist/notifications.js +338 -0
- package/dist/open-file.d.ts +23 -0
- package/dist/open-file.js +102 -0
- package/dist/platform.d.ts +86 -0
- package/dist/platform.js +86 -0
- package/dist/plugin-asset-server.d.ts +60 -0
- package/dist/plugin-asset-server.js +222 -0
- package/dist/plugin-assets.d.ts +4 -0
- package/dist/plugin-assets.js +3 -0
- package/dist/plugin-capability-facade.d.ts +104 -0
- package/dist/plugin-capability-facade.js +61 -0
- package/dist/plugin-dependency-resolver.d.ts +36 -0
- package/dist/plugin-dependency-resolver.js +54 -0
- package/dist/plugin-dependency-scanner.d.ts +9 -0
- package/dist/plugin-dependency-scanner.js +274 -0
- package/dist/plugin-distribution/canonical-json.d.ts +1 -0
- package/dist/plugin-distribution/canonical-json.js +40 -0
- package/dist/plugin-distribution/compatibility.d.ts +5 -0
- package/dist/plugin-distribution/compatibility.js +38 -0
- package/dist/plugin-distribution/errors.d.ts +11 -0
- package/dist/plugin-distribution/errors.js +13 -0
- package/dist/plugin-distribution/hashes.d.ts +2 -0
- package/dist/plugin-distribution/hashes.js +17 -0
- package/dist/plugin-distribution/index.d.ts +18 -0
- package/dist/plugin-distribution/index.js +18 -0
- package/dist/plugin-distribution/installed-plugin-state.d.ts +20 -0
- package/dist/plugin-distribution/installed-plugin-state.js +73 -0
- package/dist/plugin-distribution/installer.d.ts +89 -0
- package/dist/plugin-distribution/installer.js +395 -0
- package/dist/plugin-distribution/manager.d.ts +128 -0
- package/dist/plugin-distribution/manager.js +358 -0
- package/dist/plugin-distribution/path-safety.d.ts +2 -0
- package/dist/plugin-distribution/path-safety.js +20 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.d.ts +28 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.js +96 -0
- package/dist/plugin-distribution/plugin-bundle-worker.d.ts +34 -0
- package/dist/plugin-distribution/plugin-bundle-worker.js +99 -0
- package/dist/plugin-distribution/plugin-bundle.d.ts +16 -0
- package/dist/plugin-distribution/plugin-bundle.js +244 -0
- package/dist/plugin-distribution/plugin-bundle.worker.d.ts +1 -0
- package/dist/plugin-distribution/plugin-bundle.worker.js +38 -0
- package/dist/plugin-distribution/registry-cache.d.ts +26 -0
- package/dist/plugin-distribution/registry-cache.js +85 -0
- package/dist/plugin-distribution/registry-client.d.ts +36 -0
- package/dist/plugin-distribution/registry-client.js +115 -0
- package/dist/plugin-distribution/reserved-ids.d.ts +4 -0
- package/dist/plugin-distribution/reserved-ids.js +10 -0
- package/dist/plugin-distribution/runtime-validation.d.ts +14 -0
- package/dist/plugin-distribution/runtime-validation.js +388 -0
- package/dist/plugin-distribution/schemas.d.ts +4895 -0
- package/dist/plugin-distribution/schemas.js +299 -0
- package/dist/plugin-distribution/signing.d.ts +5 -0
- package/dist/plugin-distribution/signing.js +38 -0
- package/dist/plugin-distribution/types.d.ts +217 -0
- package/dist/plugin-distribution/types.js +1 -0
- package/dist/plugin-install-progress.d.ts +15 -0
- package/dist/plugin-install-progress.js +86 -0
- package/dist/plugin-manager.d.ts +306 -0
- package/dist/plugin-manager.js +2848 -0
- package/dist/plugin-runtime-entry.d.ts +19 -0
- package/dist/plugin-runtime-entry.js +135 -0
- package/dist/plugin.d.ts +350 -0
- package/dist/plugin.js +754 -0
- package/dist/popover.d.ts +20 -0
- package/dist/popover.js +32 -0
- package/dist/promise-worker.d.ts +22 -0
- package/dist/promise-worker.js +65 -0
- package/dist/prompt-confirm.d.ts +9 -0
- package/dist/prompt-confirm.js +33 -0
- package/dist/search-document-provider.d.ts +45 -0
- package/dist/search-document-provider.js +54 -0
- package/dist/search-query/index.d.ts +78 -0
- package/dist/search-query/index.js +426 -0
- package/dist/search-query/parser.d.ts +3 -0
- package/dist/search-query/parser.js +16 -0
- package/dist/search-query/parser.terms.js +26 -0
- package/dist/search-query/search-query.grammar +128 -0
- package/dist/search.d.ts +19 -0
- package/dist/search.js +104 -0
- package/dist/setting-section-layout.d.ts +19 -0
- package/dist/setting-section-layout.js +194 -0
- package/dist/settings.svelte.d.ts +474 -0
- package/dist/settings.svelte.js +1421 -0
- package/dist/source-text-file-view.d.ts +25 -0
- package/dist/source-text-file-view.js +78 -0
- package/dist/status-bar.svelte.d.ts +29 -0
- package/dist/status-bar.svelte.js +72 -0
- package/dist/storage/app-database.d.ts +860 -0
- package/dist/storage/app-database.js +2372 -0
- package/dist/storage/blob-store.d.ts +12 -0
- package/dist/storage/blob-store.js +1 -0
- package/dist/storage/browser-app-database-coordination.d.ts +35 -0
- package/dist/storage/browser-app-database-coordination.js +207 -0
- package/dist/storage/browser-coordinated-app-database.d.ts +109 -0
- package/dist/storage/browser-coordinated-app-database.js +704 -0
- package/dist/storage/browser.d.ts +153 -0
- package/dist/storage/browser.js +794 -0
- package/dist/storage/desktop-native.d.ts +184 -0
- package/dist/storage/desktop-native.js +415 -0
- package/dist/storage/fs.d.ts +188 -0
- package/dist/storage/fs.js +307 -0
- package/dist/storage/index-projection.d.ts +236 -0
- package/dist/storage/index-projection.js +402 -0
- package/dist/storage/index.d.ts +17 -0
- package/dist/storage/index.js +17 -0
- package/dist/storage/keyval.d.ts +94 -0
- package/dist/storage/keyval.js +199 -0
- package/dist/storage/memory-vault-adapter.d.ts +44 -0
- package/dist/storage/memory-vault-adapter.js +351 -0
- package/dist/storage/native-vault-bootstrap-kv.d.ts +22 -0
- package/dist/storage/native-vault-bootstrap-kv.js +96 -0
- package/dist/storage/path.d.ts +22 -0
- package/dist/storage/path.js +110 -0
- package/dist/storage/search-embedding-provider.d.ts +75 -0
- package/dist/storage/search-embedding-provider.js +446 -0
- package/dist/storage/search-embedding-worker.d.ts +1 -0
- package/dist/storage/search-embedding-worker.js +63 -0
- package/dist/storage/search-query-evaluator.d.ts +14 -0
- package/dist/storage/search-query-evaluator.js +678 -0
- package/dist/storage/task-projection.d.ts +152 -0
- package/dist/storage/task-projection.js +154 -0
- package/dist/storage/turso-app-database.d.ts +150 -0
- package/dist/storage/turso-app-database.js +2671 -0
- package/dist/storage/vault-session.d.ts +37 -0
- package/dist/storage/vault-session.js +196 -0
- package/dist/storage/vault-state.d.ts +74 -0
- package/dist/storage/vault-state.js +181 -0
- package/dist/storage/vault.svelte.d.ts +257 -0
- package/dist/storage/vault.svelte.js +661 -0
- package/dist/suggest.d.ts +193 -0
- package/dist/suggest.js +391 -0
- package/dist/tasks.d.ts +7 -0
- package/dist/tasks.js +18 -0
- package/dist/telemetry.d.ts +116 -0
- package/dist/telemetry.js +103 -0
- package/dist/utils.d.ts +55 -0
- package/dist/utils.js +314 -0
- package/dist/vault-api.d.ts +5 -0
- package/dist/vault-api.js +3 -0
- package/dist/vault-maintenance-commands.d.ts +5 -0
- package/dist/vault-maintenance-commands.js +32 -0
- package/dist/view.svelte.d.ts +215 -0
- package/dist/view.svelte.js +381 -0
- package/dist/vite-env.d.ts +2 -0
- package/dist/workspace-host-internal.d.ts +7 -0
- package/dist/workspace-host-internal.js +7 -0
- package/dist/workspace-host.d.ts +10 -0
- package/dist/workspace-host.js +14 -0
- package/dist/workspace-layout-commands.d.ts +3 -0
- package/dist/workspace-layout-commands.js +72 -0
- package/dist/workspace-layout-normalizer.d.ts +92 -0
- package/dist/workspace-layout-normalizer.js +301 -0
- package/dist/workspace-layouts.d.ts +7 -0
- package/dist/workspace-layouts.js +23 -0
- package/dist/workspace-trust.d.ts +32 -0
- package/dist/workspace-trust.js +72 -0
- package/dist/workspace.svelte.d.ts +796 -0
- package/dist/workspace.svelte.js +4380 -0
- package/package.json +240 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { Facet } from "@codemirror/state";
|
|
2
|
+
import { hoverTooltip, ViewPlugin, } from "@codemirror/view";
|
|
3
|
+
import { editorViewField, fromPosition, toPosition, } from "../../../editor.svelte";
|
|
4
|
+
import { lapisCodeMirrorAutocomplete } from "../extensions/autocomplete";
|
|
5
|
+
import { lapisCodeMirrorLint, lintGutter, mapToLapisLintDiagnostic, markdownlintRuleUrl, setDiagnostics, } from "../extensions/lint";
|
|
6
|
+
import { createLanguageServiceHoverDom } from "./dom";
|
|
7
|
+
export const languageServiceDocumentContext = Facet.define({
|
|
8
|
+
combine(values) {
|
|
9
|
+
return values.at(-1) ?? null;
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
const trackedOpenDocuments = new WeakMap();
|
|
13
|
+
export function languageServiceExtensions(options = {}) {
|
|
14
|
+
const extensions = [];
|
|
15
|
+
const wantsDiagnostics = options.diagnostics ?? true;
|
|
16
|
+
const wantsGutter = options.lintGutter ?? true;
|
|
17
|
+
if (wantsDiagnostics) {
|
|
18
|
+
extensions.push(openDocumentTrackingExtension(options), ...lapisCodeMirrorLint({
|
|
19
|
+
source: async (view) => collectLanguageServiceDiagnostics(view, options),
|
|
20
|
+
gutter: wantsGutter ? undefined : false,
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
else if (wantsGutter) {
|
|
24
|
+
extensions.push(lintGutter());
|
|
25
|
+
}
|
|
26
|
+
if (options.completion ?? true) {
|
|
27
|
+
extensions.push(...languageServiceCompletions(options));
|
|
28
|
+
}
|
|
29
|
+
if (options.hover ?? true) {
|
|
30
|
+
extensions.push(languageServiceHover(options));
|
|
31
|
+
}
|
|
32
|
+
return extensions;
|
|
33
|
+
}
|
|
34
|
+
function openDocumentTrackingExtension(options) {
|
|
35
|
+
return ViewPlugin.define((view) => {
|
|
36
|
+
const sync = (nextView) => {
|
|
37
|
+
const resolved = resolveDocumentContext(nextView, options.languageId);
|
|
38
|
+
if (!resolved)
|
|
39
|
+
return;
|
|
40
|
+
retainOpenDocument(nextView, resolved.document.uri, resolved.info.app.languageServices);
|
|
41
|
+
};
|
|
42
|
+
sync(view);
|
|
43
|
+
return {
|
|
44
|
+
update(update) {
|
|
45
|
+
sync(update.view);
|
|
46
|
+
},
|
|
47
|
+
destroy() {
|
|
48
|
+
trackedOpenDocuments.get(view)?.release();
|
|
49
|
+
trackedOpenDocuments.delete(view);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
async function collectLanguageServiceDiagnostics(view, options) {
|
|
55
|
+
const globalFlags = globalThis;
|
|
56
|
+
if (globalFlags.__LAPIS_SUPPRESS_LANGUAGE_SERVICE_LINT__) {
|
|
57
|
+
const payload = globalFlags.__LAPIS_SYNTHETIC_LINT__;
|
|
58
|
+
if (!payload) {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
const line = view.state.doc.line(payload.lineIndex + 1);
|
|
62
|
+
return payload.ranges.map((range) => {
|
|
63
|
+
const startCol = Math.max(0, Math.min(range.startCol, line.length));
|
|
64
|
+
const endCol = Math.max(startCol, Math.min(range.endCol, line.length));
|
|
65
|
+
return mapToLapisLintDiagnostic({
|
|
66
|
+
from: line.from + startCol,
|
|
67
|
+
to: line.from + endCol,
|
|
68
|
+
severity: "warning",
|
|
69
|
+
message: "e2e synthetic lint",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const context = resolveDocumentContext(view, options.languageId);
|
|
74
|
+
if (!context) {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
retainOpenDocument(view, context.document.uri, context.info.app.languageServices);
|
|
78
|
+
const diagnostics = await context.info.app.languageServices.diagnostics(context.document);
|
|
79
|
+
const mapped = await Promise.all(diagnostics.map(async (diagnostic) => {
|
|
80
|
+
const mappedRange = context.fromVirtualRange?.(diagnostic.range) ?? diagnostic.range;
|
|
81
|
+
if (!mappedRange) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
const displayRange = normalizeDiagnosticDisplayRange(view.state.doc, diagnostic, mappedRange);
|
|
85
|
+
const from = positionToOffset(view.state.doc, displayRange.start);
|
|
86
|
+
const to = positionToOffset(view.state.doc, displayRange.end);
|
|
87
|
+
const codeActions = context.info.app.languageServices.cachedCodeActionsFor(context.document.uri, diagnostic);
|
|
88
|
+
return mapToLapisLintDiagnostic({
|
|
89
|
+
from,
|
|
90
|
+
to,
|
|
91
|
+
severity: languageServiceSeverityToLint(diagnostic.severity),
|
|
92
|
+
message: diagnostic.message,
|
|
93
|
+
source: diagnostic.source,
|
|
94
|
+
}, {
|
|
95
|
+
code: diagnostic.code,
|
|
96
|
+
ruleId: diagnostic.code != null ? String(diagnostic.code) : undefined,
|
|
97
|
+
ruleUrl: diagnostic.source === "markdownlint" && diagnostic.code != null
|
|
98
|
+
? markdownlintRuleUrl(diagnostic.code)
|
|
99
|
+
: undefined,
|
|
100
|
+
sourceLabel: diagnostic.source,
|
|
101
|
+
}, {
|
|
102
|
+
actions: codeActionsToLintActions(codeActions, view),
|
|
103
|
+
});
|
|
104
|
+
}));
|
|
105
|
+
return mapped.filter((diagnostic) => Boolean(diagnostic));
|
|
106
|
+
}
|
|
107
|
+
function retainOpenDocument(view, uri, manager) {
|
|
108
|
+
const current = trackedOpenDocuments.get(view);
|
|
109
|
+
if (current?.uri === uri)
|
|
110
|
+
return;
|
|
111
|
+
current?.release();
|
|
112
|
+
trackedOpenDocuments.set(view, {
|
|
113
|
+
uri,
|
|
114
|
+
release: manager.retainDocument(uri),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export async function refreshLanguageServiceDiagnostics(view, options = {}) {
|
|
118
|
+
const diagnostics = await collectLanguageServiceDiagnostics(view, options);
|
|
119
|
+
view.dispatch(setDiagnostics(view.state, diagnostics));
|
|
120
|
+
}
|
|
121
|
+
function normalizeDiagnosticDisplayRange(doc, diagnostic, range) {
|
|
122
|
+
if (diagnostic.source !== "markdownlint" ||
|
|
123
|
+
range.start.line !== range.end.line ||
|
|
124
|
+
range.start.character !== 0 ||
|
|
125
|
+
range.end.character - range.start.character > 1) {
|
|
126
|
+
return range;
|
|
127
|
+
}
|
|
128
|
+
const line = doc.line(range.start.line + 1);
|
|
129
|
+
return {
|
|
130
|
+
start: range.start,
|
|
131
|
+
end: {
|
|
132
|
+
line: range.end.line,
|
|
133
|
+
character: Math.max(range.end.character, line.length),
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function languageServiceSeverityToLint(severity) {
|
|
138
|
+
if (severity === "error") {
|
|
139
|
+
return "error";
|
|
140
|
+
}
|
|
141
|
+
if (severity === "warning") {
|
|
142
|
+
return "warning";
|
|
143
|
+
}
|
|
144
|
+
if (severity === "information") {
|
|
145
|
+
return "info";
|
|
146
|
+
}
|
|
147
|
+
return "hint";
|
|
148
|
+
}
|
|
149
|
+
function codeActionsToLintActions(codeActions, view) {
|
|
150
|
+
return codeActions
|
|
151
|
+
.map((action) => {
|
|
152
|
+
if (!action.title) {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
name: action.title,
|
|
157
|
+
apply(editorView, from, to) {
|
|
158
|
+
void applyLanguageServiceCodeAction(editorView ?? view, action, from, to);
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
})
|
|
162
|
+
.filter((action) => Boolean(action));
|
|
163
|
+
}
|
|
164
|
+
async function applyLanguageServiceCodeAction(view, action, from, to) {
|
|
165
|
+
const edit = action.edit;
|
|
166
|
+
if (edit && typeof edit === "object") {
|
|
167
|
+
const record = edit;
|
|
168
|
+
const changes = record.changes;
|
|
169
|
+
if (Array.isArray(changes)) {
|
|
170
|
+
const mappedChanges = changes
|
|
171
|
+
.map((change) => {
|
|
172
|
+
if (typeof change !== "object" || change === null) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
const entry = change;
|
|
176
|
+
const insert = typeof entry.insert === "string"
|
|
177
|
+
? entry.insert
|
|
178
|
+
: typeof entry.text === "string"
|
|
179
|
+
? entry.text
|
|
180
|
+
: undefined;
|
|
181
|
+
const changeFrom = typeof entry.from === "number" ? entry.from : from;
|
|
182
|
+
const changeTo = typeof entry.to === "number" ? entry.to : to;
|
|
183
|
+
if (insert === undefined) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return { from: changeFrom, to: changeTo, insert };
|
|
187
|
+
})
|
|
188
|
+
.filter((change) => Boolean(change));
|
|
189
|
+
if (mappedChanges.length) {
|
|
190
|
+
view.dispatch({ changes: mappedChanges });
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (!action.command) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const resolved = resolveDocumentContext(view);
|
|
198
|
+
if (!resolved) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
await resolved.info.app.languageServices.applyCommand({
|
|
202
|
+
...resolved.document,
|
|
203
|
+
text: view.state.doc.toString(),
|
|
204
|
+
}, action.command);
|
|
205
|
+
}
|
|
206
|
+
export function languageServiceCompletions(options = {}) {
|
|
207
|
+
return lapisCodeMirrorAutocomplete({
|
|
208
|
+
override: [
|
|
209
|
+
async (completionContext) => {
|
|
210
|
+
if (!completionContext.view) {
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
const resolved = resolveDocumentContext(completionContext.view, options.languageId);
|
|
214
|
+
if (!resolved) {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
const localPosition = offsetToPosition(completionContext.state.doc, completionContext.pos);
|
|
218
|
+
const virtualPosition = resolved.toVirtualPosition?.(localPosition) ?? localPosition;
|
|
219
|
+
if (!virtualPosition) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
const completions = await resolved.info.app.languageServices.completions(resolved.document, virtualPosition);
|
|
223
|
+
if (!completions?.items.length) {
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
return {
|
|
227
|
+
from: completions.from === undefined
|
|
228
|
+
? completionContext.pos
|
|
229
|
+
: positionToOffset(completionContext.state.doc, resolved.fromVirtualRange?.({
|
|
230
|
+
start: completions.from,
|
|
231
|
+
end: completions.to ?? virtualPosition,
|
|
232
|
+
})?.start ?? localPosition),
|
|
233
|
+
to: completions.to === undefined
|
|
234
|
+
? completionContext.pos
|
|
235
|
+
: positionToOffset(completionContext.state.doc, resolved.fromVirtualRange?.({
|
|
236
|
+
start: completions.from ?? virtualPosition,
|
|
237
|
+
end: completions.to,
|
|
238
|
+
})?.end ?? localPosition),
|
|
239
|
+
options: completions.items.map(toCodeMirrorCompletion),
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
export function languageServiceHover(options = {}) {
|
|
246
|
+
return hoverTooltip(async (view, pos) => {
|
|
247
|
+
const resolved = resolveDocumentContext(view, options.languageId);
|
|
248
|
+
if (!resolved) {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
const localPosition = offsetToPosition(view.state.doc, pos);
|
|
252
|
+
const virtualPosition = resolved.toVirtualPosition?.(localPosition) ?? localPosition;
|
|
253
|
+
if (!virtualPosition) {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
const hover = await resolved.info.app.languageServices.hover(resolved.document, virtualPosition);
|
|
257
|
+
if (!hover?.contents) {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
const range = hover.range ? resolved.fromVirtualRange?.(hover.range) : null;
|
|
261
|
+
const dom = createLanguageServiceHoverDom(view.dom.ownerDocument, hover.contents);
|
|
262
|
+
return {
|
|
263
|
+
pos: range ? positionToOffset(view.state.doc, range.start) : pos,
|
|
264
|
+
end: range ? positionToOffset(view.state.doc, range.end) : pos,
|
|
265
|
+
above: true,
|
|
266
|
+
create() {
|
|
267
|
+
return { dom };
|
|
268
|
+
},
|
|
269
|
+
};
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
function resolveDocumentContext(view, languageId) {
|
|
273
|
+
const facetContext = view.state.facet(languageServiceDocumentContext);
|
|
274
|
+
const info = view.state.field(editorViewField, false) ?? {
|
|
275
|
+
app,
|
|
276
|
+
file: null,
|
|
277
|
+
};
|
|
278
|
+
if (facetContext) {
|
|
279
|
+
const document = resolveVirtualDocument(facetContext);
|
|
280
|
+
if (!document) {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
info,
|
|
285
|
+
document,
|
|
286
|
+
toVirtualPosition: facetContext.toVirtualPosition,
|
|
287
|
+
fromVirtualRange: facetContext.fromVirtualRange,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
const file = info.file;
|
|
291
|
+
if (!file) {
|
|
292
|
+
return null;
|
|
293
|
+
}
|
|
294
|
+
return {
|
|
295
|
+
info,
|
|
296
|
+
document: {
|
|
297
|
+
uri: `vault:///${file.path}`,
|
|
298
|
+
languageId: languageId ?? languageIdFromExtension(file.extension),
|
|
299
|
+
version: view.state.doc.length,
|
|
300
|
+
text: view.state.doc.toString(),
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function resolveVirtualDocument(context) {
|
|
305
|
+
return typeof context.document === "function"
|
|
306
|
+
? context.document()
|
|
307
|
+
: context.document;
|
|
308
|
+
}
|
|
309
|
+
function languageIdFromExtension(extension) {
|
|
310
|
+
if (extension === "md" || extension === "markdown") {
|
|
311
|
+
return "markdown";
|
|
312
|
+
}
|
|
313
|
+
if (extension === "ts") {
|
|
314
|
+
return "typescript";
|
|
315
|
+
}
|
|
316
|
+
if (extension === "js") {
|
|
317
|
+
return "javascript";
|
|
318
|
+
}
|
|
319
|
+
return extension;
|
|
320
|
+
}
|
|
321
|
+
function positionToOffset(doc, position) {
|
|
322
|
+
return fromPosition(doc, {
|
|
323
|
+
line: position.line,
|
|
324
|
+
ch: position.character,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function offsetToPosition(doc, offset) {
|
|
328
|
+
const position = toPosition(doc, offset);
|
|
329
|
+
return {
|
|
330
|
+
line: position.line,
|
|
331
|
+
character: position.ch,
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
function toCodeMirrorCompletion(item) {
|
|
335
|
+
return {
|
|
336
|
+
label: item.label,
|
|
337
|
+
detail: item.detail,
|
|
338
|
+
info: item.documentation,
|
|
339
|
+
type: item.kind,
|
|
340
|
+
apply: item.apply,
|
|
341
|
+
};
|
|
342
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[data-ui-component="empty-view"] {
|
|
2
|
+
--ui-empty-view-max-width: 480px;
|
|
3
|
+
--ui-empty-view-max-height: 280px;
|
|
4
|
+
--ui-empty-view-margin: 1.25rem;
|
|
5
|
+
--ui-empty-view-title-size: 1.25rem;
|
|
6
|
+
--ui-empty-view-gap: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-ui-component="empty-view"][data-ui-part="root"] {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
height: 100%;
|
|
14
|
+
width: 100%;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
background: var(--background);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-ui-component="empty-view"][data-ui-part="panel"] {
|
|
23
|
+
margin: var(--ui-empty-view-margin);
|
|
24
|
+
max-height: var(--ui-empty-view-max-height);
|
|
25
|
+
max-width: var(--ui-empty-view-max-width);
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-ui-component="empty-view"][data-ui-part="title"] {
|
|
30
|
+
margin-block: var(--ui-empty-view-margin);
|
|
31
|
+
font-size: var(--ui-empty-view-title-size);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-ui-component="empty-view"][data-ui-part="actions"] {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: var(--ui-empty-view-gap);
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useLocale } from "../../localization-manager.svelte";
|
|
3
|
+
import { Button } from "@lapismd/design-core/shadcn/button";
|
|
4
|
+
import type { App } from "../../context.svelte";
|
|
5
|
+
import "./empty-view.css";
|
|
6
|
+
const { t } = useLocale('base/empty-view');
|
|
7
|
+
|
|
8
|
+
let {
|
|
9
|
+
app,
|
|
10
|
+
onClose,
|
|
11
|
+
}: {
|
|
12
|
+
app: App;
|
|
13
|
+
onClose: (evt: MouseEvent) => void;
|
|
14
|
+
} = $props();
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<div data-ui-component="empty-view" data-ui-part="root">
|
|
18
|
+
<div data-ui-component="empty-view" data-ui-part="panel">
|
|
19
|
+
<div data-ui-component="empty-view" data-ui-part="title">{t('No file is open')}</div>
|
|
20
|
+
<div data-ui-component="empty-view" data-ui-part="actions">
|
|
21
|
+
<Button variant="ghost" onclick={() => app.commands.executeCommand('app:go-to-file')}>{t('Go to file ({{key}})', {key: "⌘ O"})}</Button>
|
|
22
|
+
<Button variant="ghost" onclick={() => app.commands.executeCommand('app:go-to-file')}>{t('See recent files ({{key}})', {key: "⌘ O"})}</Button>
|
|
23
|
+
<Button variant="ghost" onclick={(evt) => onClose(evt)}>{t('Close')}</Button>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { App } from "../../context.svelte";
|
|
2
|
+
import "./empty-view.css";
|
|
3
|
+
type $$ComponentProps = {
|
|
4
|
+
app: App;
|
|
5
|
+
onClose: (evt: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const EmptyView: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
8
|
+
type EmptyView = ReturnType<typeof EmptyView>;
|
|
9
|
+
export default EmptyView;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[data-ui-component="icon-list"] {
|
|
2
|
+
--ui-icon-list-trigger-width: 200px;
|
|
3
|
+
--ui-icon-list-content-width: 250px;
|
|
4
|
+
--ui-icon-list-group-width: 350px;
|
|
5
|
+
--ui-icon-list-icon-size: 1rem;
|
|
6
|
+
--ui-icon-list-icon-gap: 0.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-ui-component="icon-list"][data-ui-part="trigger"],
|
|
10
|
+
[data-ui-component="icon-list"] .icon-list-trigger,
|
|
11
|
+
.icon-list-trigger {
|
|
12
|
+
width: var(--ui-icon-list-trigger-width);
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-ui-component="icon-list"][data-ui-part="trigger-icon"],
|
|
17
|
+
[data-ui-component="icon-list"] .icon-list-trigger-chevron {
|
|
18
|
+
width: var(--ui-icon-list-icon-size);
|
|
19
|
+
height: var(--ui-icon-list-icon-size);
|
|
20
|
+
margin-inline-start: var(--ui-icon-list-icon-gap);
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
opacity: 0.5;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-ui-component="icon-list"][data-ui-part="content"],
|
|
26
|
+
.icon-list-content {
|
|
27
|
+
padding: 0;
|
|
28
|
+
width: var(--ui-icon-list-content-width);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-ui-component="icon-list"][data-ui-part="virtual-root"] {
|
|
32
|
+
position: relative;
|
|
33
|
+
padding-inline-end: 0.25rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-ui-component="icon-list"][data-ui-part="group"],
|
|
37
|
+
.icon-list-group {
|
|
38
|
+
color: var(--foreground);
|
|
39
|
+
padding: 0.25rem;
|
|
40
|
+
width: var(--ui-icon-list-group-width);
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-ui-component="icon-list"][data-ui-part="heading"],
|
|
45
|
+
.icon-list-heading {
|
|
46
|
+
color: var(--muted-foreground);
|
|
47
|
+
padding: 0.375rem 0.5rem;
|
|
48
|
+
font-size: 0.75rem;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-ui-component="icon-list"][data-ui-part="item"],
|
|
53
|
+
.icon-list-item {
|
|
54
|
+
padding-inline-end: 0.25rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-ui-component="icon-list"][data-ui-part="check"],
|
|
58
|
+
[data-ui-component="icon-list"] .icon-list-check {
|
|
59
|
+
width: var(--ui-icon-list-icon-size);
|
|
60
|
+
height: var(--ui-icon-list-icon-size);
|
|
61
|
+
margin-inline-end: var(--ui-icon-list-icon-gap);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-ui-component="icon-list"][data-ui-part="check"][data-ui-unchecked],
|
|
65
|
+
[data-ui-component="icon-list"] .icon-list-check.is-unchecked {
|
|
66
|
+
color: transparent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-ui-component="icon-list"][data-ui-part="item-icon"],
|
|
70
|
+
[data-ui-component="icon-list"] .icon-list-item-icon {
|
|
71
|
+
width: var(--ui-icon-list-icon-size);
|
|
72
|
+
height: var(--ui-icon-list-icon-size);
|
|
73
|
+
margin-inline-end: var(--ui-icon-list-icon-gap);
|
|
74
|
+
}
|