@lo-tek/interfaces 0.0.0 → 0.38.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 +3389 -0
- package/LICENSE +21 -0
- package/README.md +129 -1
- package/agent/astro.md +400 -0
- package/agent/bundles.md +429 -0
- package/agent/datastar.md +409 -0
- package/agent/html.md +388 -0
- package/agent/react.md +440 -0
- package/agent/templates.md +472 -0
- package/core/lotek-core.wasm +0 -0
- package/core/lotek.wasm +0 -0
- package/dist/cli.d.ts +12 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/css/accordion/accordion.d.ts +37 -0
- package/dist/components/css/accordion/accordion.d.ts.map +1 -0
- package/dist/components/css/accordion/accordion.js +31 -0
- package/dist/components/css/accordion/accordion.js.map +1 -0
- package/dist/components/css/alert/alert.d.ts +35 -0
- package/dist/components/css/alert/alert.d.ts.map +1 -0
- package/dist/components/css/alert/alert.js +29 -0
- package/dist/components/css/alert/alert.js.map +1 -0
- package/dist/components/css/avatar/avatar.d.ts +40 -0
- package/dist/components/css/avatar/avatar.d.ts.map +1 -0
- package/dist/components/css/avatar/avatar.js +30 -0
- package/dist/components/css/avatar/avatar.js.map +1 -0
- package/dist/components/css/badge/badge.d.ts +24 -0
- package/dist/components/css/badge/badge.d.ts.map +1 -0
- package/dist/components/css/badge/badge.js +24 -0
- package/dist/components/css/badge/badge.js.map +1 -0
- package/dist/components/css/breadcrumbs/breadcrumbs.d.ts +26 -0
- package/dist/components/css/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/components/css/breadcrumbs/breadcrumbs.js +24 -0
- package/dist/components/css/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/css/button/button.d.ts +26 -0
- package/dist/components/css/button/button.d.ts.map +1 -0
- package/dist/components/css/button/button.js +25 -0
- package/dist/components/css/button/button.js.map +1 -0
- package/dist/components/css/card/card.d.ts +36 -0
- package/dist/components/css/card/card.d.ts.map +1 -0
- package/dist/components/css/card/card.js +28 -0
- package/dist/components/css/card/card.js.map +1 -0
- package/dist/components/css/checkbox/checkbox.d.ts +32 -0
- package/dist/components/css/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/css/checkbox/checkbox.js +27 -0
- package/dist/components/css/checkbox/checkbox.js.map +1 -0
- package/dist/components/css/divider/divider.d.ts +29 -0
- package/dist/components/css/divider/divider.d.ts.map +1 -0
- package/dist/components/css/divider/divider.js +23 -0
- package/dist/components/css/divider/divider.js.map +1 -0
- package/dist/components/css/error-text/error-text.d.ts +24 -0
- package/dist/components/css/error-text/error-text.d.ts.map +1 -0
- package/dist/components/css/error-text/error-text.js +18 -0
- package/dist/components/css/error-text/error-text.js.map +1 -0
- package/dist/components/css/fieldset/fieldset.d.ts +55 -0
- package/dist/components/css/fieldset/fieldset.d.ts.map +1 -0
- package/dist/components/css/fieldset/fieldset.js +39 -0
- package/dist/components/css/fieldset/fieldset.js.map +1 -0
- package/dist/components/css/file-upload/file-upload.d.ts +41 -0
- package/dist/components/css/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/css/file-upload/file-upload.js +32 -0
- package/dist/components/css/file-upload/file-upload.js.map +1 -0
- package/dist/components/css/heading/heading.d.ts +29 -0
- package/dist/components/css/heading/heading.d.ts.map +1 -0
- package/dist/components/css/heading/heading.js +23 -0
- package/dist/components/css/heading/heading.js.map +1 -0
- package/dist/components/css/help-text/help-text.d.ts +24 -0
- package/dist/components/css/help-text/help-text.d.ts.map +1 -0
- package/dist/components/css/help-text/help-text.js +23 -0
- package/dist/components/css/help-text/help-text.js.map +1 -0
- package/dist/components/css/icon/icon.d.ts +34 -0
- package/dist/components/css/icon/icon.d.ts.map +1 -0
- package/dist/components/css/icon/icon.js +25 -0
- package/dist/components/css/icon/icon.js.map +1 -0
- package/dist/components/css/input/input.d.ts +40 -0
- package/dist/components/css/input/input.d.ts.map +1 -0
- package/dist/components/css/input/input.js +45 -0
- package/dist/components/css/input/input.js.map +1 -0
- package/dist/components/css/label/label.d.ts +33 -0
- package/dist/components/css/label/label.d.ts.map +1 -0
- package/dist/components/css/label/label.js +23 -0
- package/dist/components/css/label/label.js.map +1 -0
- package/dist/components/css/link/link.d.ts +28 -0
- package/dist/components/css/link/link.d.ts.map +1 -0
- package/dist/components/css/link/link.js +20 -0
- package/dist/components/css/link/link.js.map +1 -0
- package/dist/components/css/list/list.d.ts +31 -0
- package/dist/components/css/list/list.d.ts.map +1 -0
- package/dist/components/css/list/list.js +25 -0
- package/dist/components/css/list/list.js.map +1 -0
- package/dist/components/css/pagination/pagination.d.ts +27 -0
- package/dist/components/css/pagination/pagination.d.ts.map +1 -0
- package/dist/components/css/pagination/pagination.js +25 -0
- package/dist/components/css/pagination/pagination.js.map +1 -0
- package/dist/components/css/paragraph/paragraph.d.ts +36 -0
- package/dist/components/css/paragraph/paragraph.d.ts.map +1 -0
- package/dist/components/css/paragraph/paragraph.js +26 -0
- package/dist/components/css/paragraph/paragraph.js.map +1 -0
- package/dist/components/css/progress/progress.d.ts +53 -0
- package/dist/components/css/progress/progress.d.ts.map +1 -0
- package/dist/components/css/progress/progress.js +38 -0
- package/dist/components/css/progress/progress.js.map +1 -0
- package/dist/components/css/radio/radio.d.ts +32 -0
- package/dist/components/css/radio/radio.d.ts.map +1 -0
- package/dist/components/css/radio/radio.js +27 -0
- package/dist/components/css/radio/radio.js.map +1 -0
- package/dist/components/css/search/search.d.ts +34 -0
- package/dist/components/css/search/search.d.ts.map +1 -0
- package/dist/components/css/search/search.js +32 -0
- package/dist/components/css/search/search.js.map +1 -0
- package/dist/components/css/select/select.d.ts +40 -0
- package/dist/components/css/select/select.d.ts.map +1 -0
- package/dist/components/css/select/select.js +31 -0
- package/dist/components/css/select/select.js.map +1 -0
- package/dist/components/css/shared.d.ts +90 -0
- package/dist/components/css/shared.d.ts.map +1 -0
- package/dist/components/css/shared.js +167 -0
- package/dist/components/css/shared.js.map +1 -0
- package/dist/components/css/skeleton/skeleton.d.ts +29 -0
- package/dist/components/css/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/css/skeleton/skeleton.js +23 -0
- package/dist/components/css/skeleton/skeleton.js.map +1 -0
- package/dist/components/css/skip-link/skip-link.d.ts +18 -0
- package/dist/components/css/skip-link/skip-link.d.ts.map +1 -0
- package/dist/components/css/skip-link/skip-link.js +16 -0
- package/dist/components/css/skip-link/skip-link.js.map +1 -0
- package/dist/components/css/spinner/spinner.d.ts +33 -0
- package/dist/components/css/spinner/spinner.d.ts.map +1 -0
- package/dist/components/css/spinner/spinner.js +25 -0
- package/dist/components/css/spinner/spinner.js.map +1 -0
- package/dist/components/css/sr-only/sr-only.d.ts +17 -0
- package/dist/components/css/sr-only/sr-only.d.ts.map +1 -0
- package/dist/components/css/sr-only/sr-only.js +15 -0
- package/dist/components/css/sr-only/sr-only.js.map +1 -0
- package/dist/components/css/switch/switch.d.ts +37 -0
- package/dist/components/css/switch/switch.d.ts.map +1 -0
- package/dist/components/css/switch/switch.js +29 -0
- package/dist/components/css/switch/switch.js.map +1 -0
- package/dist/components/css/table/table.d.ts +76 -0
- package/dist/components/css/table/table.d.ts.map +1 -0
- package/dist/components/css/table/table.js +59 -0
- package/dist/components/css/table/table.js.map +1 -0
- package/dist/components/css/tag/tag.d.ts +35 -0
- package/dist/components/css/tag/tag.d.ts.map +1 -0
- package/dist/components/css/tag/tag.js +27 -0
- package/dist/components/css/tag/tag.js.map +1 -0
- package/dist/components/css/textarea/textarea.d.ts +23 -0
- package/dist/components/css/textarea/textarea.d.ts.map +1 -0
- package/dist/components/css/textarea/textarea.js +18 -0
- package/dist/components/css/textarea/textarea.js.map +1 -0
- package/dist/components/css/toggle-group/toggle-group.d.ts +31 -0
- package/dist/components/css/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/css/toggle-group/toggle-group.js +29 -0
- package/dist/components/css/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/css/tooltip/tooltip.d.ts +31 -0
- package/dist/components/css/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/css/tooltip/tooltip.js +29 -0
- package/dist/components/css/tooltip/tooltip.js.map +1 -0
- package/dist/components/default-texts.d.ts +41 -0
- package/dist/components/default-texts.d.ts.map +1 -0
- package/dist/components/default-texts.js +41 -0
- package/dist/components/default-texts.js.map +1 -0
- package/dist/components/events.d.ts +77 -0
- package/dist/components/events.d.ts.map +1 -0
- package/dist/components/events.js +3 -0
- package/dist/components/events.js.map +1 -0
- package/dist/components/frame/dialog/dialog.d.ts +122 -0
- package/dist/components/frame/dialog/dialog.d.ts.map +1 -0
- package/dist/components/frame/dialog/dialog.js +112 -0
- package/dist/components/frame/dialog/dialog.js.map +1 -0
- package/dist/components/frame/dialog/lt-dialog.d.ts +104 -0
- package/dist/components/frame/dialog/lt-dialog.d.ts.map +1 -0
- package/dist/components/frame/dialog/lt-dialog.js +434 -0
- package/dist/components/frame/dialog/lt-dialog.js.map +1 -0
- package/dist/components/frame/error-summary/error-summary.d.ts +53 -0
- package/dist/components/frame/error-summary/error-summary.d.ts.map +1 -0
- package/dist/components/frame/error-summary/error-summary.js +54 -0
- package/dist/components/frame/error-summary/error-summary.js.map +1 -0
- package/dist/components/frame/error-summary/lt-error-summary.d.ts +93 -0
- package/dist/components/frame/error-summary/lt-error-summary.d.ts.map +1 -0
- package/dist/components/frame/error-summary/lt-error-summary.js +408 -0
- package/dist/components/frame/error-summary/lt-error-summary.js.map +1 -0
- package/dist/components/frame/field/field-core.d.ts +92 -0
- package/dist/components/frame/field/field-core.d.ts.map +1 -0
- package/dist/components/frame/field/field-core.js +63 -0
- package/dist/components/frame/field/field-core.js.map +1 -0
- package/dist/components/frame/field/lt-field.d.ts +173 -0
- package/dist/components/frame/field/lt-field.d.ts.map +1 -0
- package/dist/components/frame/field/lt-field.js +600 -0
- package/dist/components/frame/field/lt-field.js.map +1 -0
- package/dist/components/frame/popover/lt-popover.d.ts +136 -0
- package/dist/components/frame/popover/lt-popover.d.ts.map +1 -0
- package/dist/components/frame/popover/lt-popover.js +520 -0
- package/dist/components/frame/popover/lt-popover.js.map +1 -0
- package/dist/components/frame/popover/popover.d.ts +49 -0
- package/dist/components/frame/popover/popover.d.ts.map +1 -0
- package/dist/components/frame/popover/popover.js +64 -0
- package/dist/components/frame/popover/popover.js.map +1 -0
- package/dist/components/frame/session-timeout/lt-session-timeout.d.ts +198 -0
- package/dist/components/frame/session-timeout/lt-session-timeout.d.ts.map +1 -0
- package/dist/components/frame/session-timeout/lt-session-timeout.js +610 -0
- package/dist/components/frame/session-timeout/lt-session-timeout.js.map +1 -0
- package/dist/components/frame/session-timeout/session-timeout.d.ts +113 -0
- package/dist/components/frame/session-timeout/session-timeout.d.ts.map +1 -0
- package/dist/components/frame/session-timeout/session-timeout.js +101 -0
- package/dist/components/frame/session-timeout/session-timeout.js.map +1 -0
- package/dist/components/frame/suggestion/lt-suggestion.d.ts +367 -0
- package/dist/components/frame/suggestion/lt-suggestion.d.ts.map +1 -0
- package/dist/components/frame/suggestion/lt-suggestion.js +1171 -0
- package/dist/components/frame/suggestion/lt-suggestion.js.map +1 -0
- package/dist/components/frame/suggestion/suggestion.d.ts +143 -0
- package/dist/components/frame/suggestion/suggestion.d.ts.map +1 -0
- package/dist/components/frame/suggestion/suggestion.js +127 -0
- package/dist/components/frame/suggestion/suggestion.js.map +1 -0
- package/dist/components/frame/tabs/lt-tabs.d.ts +426 -0
- package/dist/components/frame/tabs/lt-tabs.d.ts.map +1 -0
- package/dist/components/frame/tabs/lt-tabs.js +1265 -0
- package/dist/components/frame/tabs/lt-tabs.js.map +1 -0
- package/dist/components/frame/tabs/tabs.d.ts +112 -0
- package/dist/components/frame/tabs/tabs.d.ts.map +1 -0
- package/dist/components/frame/tabs/tabs.js +107 -0
- package/dist/components/frame/tabs/tabs.js.map +1 -0
- package/dist/components/host-element.d.ts +184 -0
- package/dist/components/host-element.d.ts.map +1 -0
- package/dist/components/host-element.js +440 -0
- package/dist/components/host-element.js.map +1 -0
- package/dist/components/standalone/connection-status/connection-status.d.ts +32 -0
- package/dist/components/standalone/connection-status/connection-status.d.ts.map +1 -0
- package/dist/components/standalone/connection-status/connection-status.js +26 -0
- package/dist/components/standalone/connection-status/connection-status.js.map +1 -0
- package/dist/components/standalone/connection-status/lt-connection-status.d.ts +86 -0
- package/dist/components/standalone/connection-status/lt-connection-status.d.ts.map +1 -0
- package/dist/components/standalone/connection-status/lt-connection-status.js +240 -0
- package/dist/components/standalone/connection-status/lt-connection-status.js.map +1 -0
- package/dist/components/standalone/toast/lt-toast.d.ts +109 -0
- package/dist/components/standalone/toast/lt-toast.d.ts.map +1 -0
- package/dist/components/standalone/toast/lt-toast.js +256 -0
- package/dist/components/standalone/toast/lt-toast.js.map +1 -0
- package/dist/components/standalone/toast/toast.d.ts +52 -0
- package/dist/components/standalone/toast/toast.d.ts.map +1 -0
- package/dist/components/standalone/toast/toast.js +42 -0
- package/dist/components/standalone/toast/toast.js.map +1 -0
- package/dist/diagnostics/core.d.ts +171 -0
- package/dist/diagnostics/core.d.ts.map +1 -0
- package/dist/diagnostics/core.js +84 -0
- package/dist/diagnostics/core.js.map +1 -0
- package/dist/diagnostics/default-core.d.ts +10 -0
- package/dist/diagnostics/default-core.d.ts.map +1 -0
- package/dist/diagnostics/default-core.js +72 -0
- package/dist/diagnostics/default-core.js.map +1 -0
- package/dist/diagnostics/index.d.ts +84 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/index.js +106 -0
- package/dist/diagnostics/index.js.map +1 -0
- package/dist/dom.d.ts +55 -0
- package/dist/dom.d.ts.map +1 -0
- package/dist/dom.js +162 -0
- package/dist/dom.js.map +1 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx/react.d.ts +180 -0
- package/dist/jsx/react.d.ts.map +1 -0
- package/dist/jsx/react.js +2 -0
- package/dist/jsx/react.js.map +1 -0
- package/dist/lotek.css +3617 -0
- package/dist/lt.d.ts +325 -0
- package/dist/lt.d.ts.map +1 -0
- package/dist/lt.js +183 -0
- package/dist/lt.js.map +1 -0
- package/dist/react.d.ts +494 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +296 -0
- package/dist/react.js.map +1 -0
- package/dist/register.d.ts +17 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +35 -0
- package/dist/register.js.map +1 -0
- package/dist/tokens/color.d.ts +43 -0
- package/dist/tokens/color.d.ts.map +1 -0
- package/dist/tokens/color.js +123 -0
- package/dist/tokens/color.js.map +1 -0
- package/dist/tokens/contract.d.ts +18 -0
- package/dist/tokens/contract.d.ts.map +1 -0
- package/dist/tokens/contract.js +18 -0
- package/dist/tokens/contract.js.map +1 -0
- package/dist/tokens/matrix-cells.d.ts +30 -0
- package/dist/tokens/matrix-cells.d.ts.map +1 -0
- package/dist/tokens/matrix-cells.js +273 -0
- package/dist/tokens/matrix-cells.js.map +1 -0
- package/dist/tokens/matrix.d.ts +18 -0
- package/dist/tokens/matrix.d.ts.map +1 -0
- package/dist/tokens/matrix.js +21 -0
- package/dist/tokens/matrix.js.map +1 -0
- package/dist/tokens/theme-check.d.ts +42 -0
- package/dist/tokens/theme-check.d.ts.map +1 -0
- package/dist/tokens/theme-check.js +10 -0
- package/dist/tokens/theme-check.js.map +1 -0
- package/dist/tokens/theme.d.ts +94 -0
- package/dist/tokens/theme.d.ts.map +1 -0
- package/dist/tokens/theme.js +14 -0
- package/dist/tokens/theme.js.map +1 -0
- package/dist/tokens/tokens.d.ts +122 -0
- package/dist/tokens/tokens.d.ts.map +1 -0
- package/dist/tokens/tokens.js +158 -0
- package/dist/tokens/tokens.js.map +1 -0
- package/dist/vocabulary/classes.d.ts +3 -0
- package/dist/vocabulary/classes.d.ts.map +1 -0
- package/dist/vocabulary/classes.js +1354 -0
- package/dist/vocabulary/classes.js.map +1 -0
- package/dist/vocabulary/elements.d.ts +3 -0
- package/dist/vocabulary/elements.d.ts.map +1 -0
- package/dist/vocabulary/elements.js +490 -0
- package/dist/vocabulary/elements.js.map +1 -0
- package/dist/vocabulary/types.d.ts +229 -0
- package/dist/vocabulary/types.d.ts.map +1 -0
- package/dist/vocabulary/types.js +11 -0
- package/dist/vocabulary/types.js.map +1 -0
- package/dist/wasi-host.d.ts +24 -0
- package/dist/wasi-host.d.ts.map +1 -0
- package/dist/wasi-host.js +140 -0
- package/dist/wasi-host.js.map +1 -0
- package/live-templates.xml +63 -0
- package/manifest/files.json +373 -0
- package/manifest/manifest.json +5090 -0
- package/manifest/manifest.schema.json +586 -0
- package/package.json +399 -5
- package/src/cli.ts +21 -0
- package/src/components/css/accordion/accordion.css +102 -0
- package/src/components/css/accordion/accordion.ts +50 -0
- package/src/components/css/alert/alert.css +53 -0
- package/src/components/css/alert/alert.ts +48 -0
- package/src/components/css/avatar/avatar.css +96 -0
- package/src/components/css/avatar/avatar.ts +57 -0
- package/src/components/css/badge/badge.css +42 -0
- package/src/components/css/badge/badge.ts +43 -0
- package/src/components/css/breadcrumbs/breadcrumbs.css +62 -0
- package/src/components/css/breadcrumbs/breadcrumbs.ts +30 -0
- package/src/components/css/button/button.css +128 -0
- package/src/components/css/button/button.ts +44 -0
- package/src/components/css/card/card.css +65 -0
- package/src/components/css/card/card.ts +50 -0
- package/src/components/css/checkbox/checkbox.css +114 -0
- package/src/components/css/checkbox/checkbox.ts +50 -0
- package/src/components/css/divider/divider.css +38 -0
- package/src/components/css/divider/divider.ts +42 -0
- package/src/components/css/error-text/error-text.css +21 -0
- package/src/components/css/error-text/error-text.ts +37 -0
- package/src/components/css/fieldset/fieldset.css +72 -0
- package/src/components/css/fieldset/fieldset.ts +87 -0
- package/src/components/css/file-upload/file-upload.css +102 -0
- package/src/components/css/file-upload/file-upload.ts +65 -0
- package/src/components/css/heading/heading.css +33 -0
- package/src/components/css/heading/heading.ts +42 -0
- package/src/components/css/help-text/help-text.css +24 -0
- package/src/components/css/help-text/help-text.ts +42 -0
- package/src/components/css/icon/icon.css +20 -0
- package/src/components/css/icon/icon.ts +44 -0
- package/src/components/css/input/input.css +145 -0
- package/src/components/css/input/input.ts +77 -0
- package/src/components/css/label/label.css +42 -0
- package/src/components/css/label/label.ts +51 -0
- package/src/components/css/link/link.css +38 -0
- package/src/components/css/link/link.ts +38 -0
- package/src/components/css/list/list.css +53 -0
- package/src/components/css/list/list.ts +44 -0
- package/src/components/css/pagination/pagination.css +95 -0
- package/src/components/css/pagination/pagination.ts +33 -0
- package/src/components/css/paragraph/paragraph.css +31 -0
- package/src/components/css/paragraph/paragraph.ts +53 -0
- package/src/components/css/progress/progress.css +161 -0
- package/src/components/css/progress/progress.ts +78 -0
- package/src/components/css/radio/radio.css +94 -0
- package/src/components/css/radio/radio.ts +50 -0
- package/src/components/css/search/search.css +50 -0
- package/src/components/css/search/search.ts +56 -0
- package/src/components/css/select/select.css +321 -0
- package/src/components/css/select/select.ts +63 -0
- package/src/components/css/shared.ts +199 -0
- package/src/components/css/skeleton/skeleton.css +62 -0
- package/src/components/css/skeleton/skeleton.ts +43 -0
- package/src/components/css/skip-link/skip-link.css +41 -0
- package/src/components/css/skip-link/skip-link.ts +22 -0
- package/src/components/css/spinner/spinner.css +48 -0
- package/src/components/css/spinner/spinner.ts +48 -0
- package/src/components/css/sr-only/sr-only.css +16 -0
- package/src/components/css/sr-only/sr-only.ts +21 -0
- package/src/components/css/switch/switch.css +105 -0
- package/src/components/css/switch/switch.ts +50 -0
- package/src/components/css/table/table.css +159 -0
- package/src/components/css/table/table.ts +107 -0
- package/src/components/css/tag/tag.css +58 -0
- package/src/components/css/tag/tag.ts +49 -0
- package/src/components/css/textarea/textarea.css +83 -0
- package/src/components/css/textarea/textarea.ts +40 -0
- package/src/components/css/toggle-group/toggle-group.css +92 -0
- package/src/components/css/toggle-group/toggle-group.ts +37 -0
- package/src/components/css/tooltip/tooltip.css +89 -0
- package/src/components/css/tooltip/tooltip.ts +37 -0
- package/src/components/default-texts.ts +41 -0
- package/src/components/events.ts +68 -0
- package/src/components/frame/dialog/dialog.css +306 -0
- package/src/components/frame/dialog/dialog.ts +166 -0
- package/src/components/frame/dialog/lt-dialog.ts +513 -0
- package/src/components/frame/error-summary/error-summary.css +47 -0
- package/src/components/frame/error-summary/error-summary.ts +90 -0
- package/src/components/frame/error-summary/lt-error-summary.ts +458 -0
- package/src/components/frame/field/field-core.ts +152 -0
- package/src/components/frame/field/field.css +17 -0
- package/src/components/frame/field/lt-field.ts +790 -0
- package/src/components/frame/popover/lt-popover.ts +586 -0
- package/src/components/frame/popover/popover.css +50 -0
- package/src/components/frame/popover/popover.ts +102 -0
- package/src/components/frame/session-timeout/lt-session-timeout.ts +715 -0
- package/src/components/frame/session-timeout/session-timeout.css +50 -0
- package/src/components/frame/session-timeout/session-timeout.ts +156 -0
- package/src/components/frame/suggestion/lt-suggestion.ts +1379 -0
- package/src/components/frame/suggestion/suggestion.css +132 -0
- package/src/components/frame/suggestion/suggestion.ts +172 -0
- package/src/components/frame/tabs/lt-tabs.ts +1395 -0
- package/src/components/frame/tabs/tabs.css +128 -0
- package/src/components/frame/tabs/tabs.ts +188 -0
- package/src/components/host-element.ts +493 -0
- package/src/components/standalone/connection-status/connection-status.css +41 -0
- package/src/components/standalone/connection-status/connection-status.ts +47 -0
- package/src/components/standalone/connection-status/lt-connection-status.ts +268 -0
- package/src/components/standalone/toast/lt-toast.ts +300 -0
- package/src/components/standalone/toast/toast.css +78 -0
- package/src/components/standalone/toast/toast.ts +70 -0
- package/src/diagnostics/core.ts +227 -0
- package/src/diagnostics/default-core.ts +81 -0
- package/src/diagnostics/index.ts +150 -0
- package/src/dom.ts +185 -0
- package/src/index.ts +218 -0
- package/src/jsx/react.ts +212 -0
- package/src/lt.ts +192 -0
- package/src/react.ts +411 -0
- package/src/register.ts +43 -0
- package/src/tailwind/tailwind.css +169 -0
- package/src/tokens/boundary.css +104 -0
- package/src/tokens/color-contract.json +231 -0
- package/src/tokens/color.ts +150 -0
- package/src/tokens/contract.ts +24 -0
- package/src/tokens/matrix-cells.ts +375 -0
- package/src/tokens/matrix.ts +32 -0
- package/src/tokens/theme-check.ts +51 -0
- package/src/tokens/theme.ts +104 -0
- package/src/tokens/tokens.css +569 -0
- package/src/tokens/tokens.ts +223 -0
- package/src/vocabulary/classes.ts +1356 -0
- package/src/vocabulary/elements.ts +492 -0
- package/src/vocabulary/types.ts +228 -0
- package/src/wasi-host.ts +155 -0
- package/web-types.json +800 -0
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://lo-tek.sobernetics.no/manifest.schema.json",
|
|
4
|
+
"title": "The LO-TEK manifest",
|
|
5
|
+
"description": "What LO-TEK promises: the elements, the classes with their content and parts, the builder functions and the tokens. Generated by interfaces/scripts/generate-manifest.ts from the code, never written by hand.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"version",
|
|
10
|
+
"elements",
|
|
11
|
+
"classes",
|
|
12
|
+
"builders",
|
|
13
|
+
"tokens"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"$schema": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"schemaVersion": {
|
|
20
|
+
"const": 1,
|
|
21
|
+
"description": "The shape of the file. Raised only when a reader has to change to understand it."
|
|
22
|
+
},
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The version of @lo-tek/interfaces the manifest was written from."
|
|
26
|
+
},
|
|
27
|
+
"textLanguage": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The language of the texts the components and stylesheets write themselves. lotek check warns about one of them on a page in another language."
|
|
30
|
+
},
|
|
31
|
+
"elements": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"description": "Every <lt-…> element, with the attributes the component reads.",
|
|
34
|
+
"additionalProperties": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["link", "attributes"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"link": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"description": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "What the element does, in one or two sentences."
|
|
44
|
+
},
|
|
45
|
+
"attributes": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": {
|
|
48
|
+
"$ref": "#/$defs/elementAttribute"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"parts": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"description": "The parts the element finds in the markup the renderer writes, with the selector it looks for. An empty object when the element creates its own nodes.",
|
|
54
|
+
"additionalProperties": {
|
|
55
|
+
"$ref": "#/$defs/part"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"name": {
|
|
59
|
+
"$ref": "#/$defs/name"
|
|
60
|
+
},
|
|
61
|
+
"texts": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "The texts the element writes itself, by their name in DEFAULT_TEXTS.",
|
|
64
|
+
"additionalProperties": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": ["text", "replacedBy"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"text": { "type": "string" },
|
|
69
|
+
"replacedBy": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"description": "The attributes that replace the text. Any one of them is enough.",
|
|
72
|
+
"items": { "type": "string" }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"events": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"description": "The events the element dispatches. All of them bubble and cross shadow boundaries. Absent when the element dispatches nothing.",
|
|
81
|
+
"additionalProperties": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"detail": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"description": "The fields in event.detail with their types. Absent when the event has none.",
|
|
87
|
+
"additionalProperties": {
|
|
88
|
+
"enum": ["boolean", "string", "number"]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"classes": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"description": "Every lt- class, with the component it belongs to and the attributes it takes.",
|
|
100
|
+
"additionalProperties": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"required": [
|
|
103
|
+
"component",
|
|
104
|
+
"title",
|
|
105
|
+
"description",
|
|
106
|
+
"link",
|
|
107
|
+
"content",
|
|
108
|
+
"attributes"
|
|
109
|
+
],
|
|
110
|
+
"properties": {
|
|
111
|
+
"component": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"title": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"description": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"link": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"content": {
|
|
124
|
+
"description": "What the element with the class takes as content, in the same words as the parts: \"text\" is text, \"free\" is anything, \"parts\" is only the parts, and \"none\" is no text, like a control.",
|
|
125
|
+
"enum": ["text", "free", "parts", "none"]
|
|
126
|
+
},
|
|
127
|
+
"partOf": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "The class this one is part of, when it is only a part of another component's markup, like lt-card__title in lt-card. The parent has a part that matches it."
|
|
130
|
+
},
|
|
131
|
+
"name": {
|
|
132
|
+
"$ref": "#/$defs/name"
|
|
133
|
+
},
|
|
134
|
+
"texts": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "The texts the stylesheet shows on the element with the class and the attribute, and the CSS variable that replaces each.",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": ["variable", "text", "attribute"],
|
|
140
|
+
"properties": {
|
|
141
|
+
"variable": { "type": "string" },
|
|
142
|
+
"text": { "type": "string" },
|
|
143
|
+
"attribute": { "type": "string" },
|
|
144
|
+
"value": { "type": "string" },
|
|
145
|
+
"unless": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"description": "Attributes that keep the text from showing.",
|
|
148
|
+
"items": { "type": "string" }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"additionalProperties": false
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"parts": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"description": "The parts the markup consists of, for the classes with a fixed structure, with the selector relative to the element with the class. Absent for the classes without one.",
|
|
157
|
+
"additionalProperties": {
|
|
158
|
+
"$ref": "#/$defs/part"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"attributes": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": {
|
|
164
|
+
"description": "An attribute with a closed list of values, or a flag, which is on when it is present.",
|
|
165
|
+
"oneOf": [
|
|
166
|
+
{
|
|
167
|
+
"type": "object",
|
|
168
|
+
"required": ["values"],
|
|
169
|
+
"properties": {
|
|
170
|
+
"values": {
|
|
171
|
+
"type": "array",
|
|
172
|
+
"items": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"default": {
|
|
177
|
+
"description": "The value its absence means.",
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"description": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "What the attribute does, taken from the option in the builder function that writes it."
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"additionalProperties": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "object",
|
|
189
|
+
"required": ["flag"],
|
|
190
|
+
"properties": {
|
|
191
|
+
"flag": {
|
|
192
|
+
"const": true
|
|
193
|
+
},
|
|
194
|
+
"description": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"description": "What the attribute does, taken from the option in the builder function that writes it."
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"additionalProperties": false
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"builders": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"description": "Every builder function in lt, with its options and the shape of its result.",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"required": ["name", "options", "returns"],
|
|
213
|
+
"properties": {
|
|
214
|
+
"name": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"options": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"required": ["name", "required", "type"],
|
|
222
|
+
"properties": {
|
|
223
|
+
"name": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"required": {
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"type": {
|
|
230
|
+
"$ref": "#/$defs/optionType"
|
|
231
|
+
},
|
|
232
|
+
"description": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"description": "What the option does, taken from the comment on the option in the type."
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"returns": {
|
|
240
|
+
"$ref": "#/$defs/returns"
|
|
241
|
+
},
|
|
242
|
+
"table": {
|
|
243
|
+
"description": "When the options act independently: the base set and what each option adds, derived from the results and checked against every builder case. Another language can build the builder function from it alone.",
|
|
244
|
+
"oneOf": [
|
|
245
|
+
{
|
|
246
|
+
"type": "object",
|
|
247
|
+
"required": ["kind", "table"],
|
|
248
|
+
"properties": {
|
|
249
|
+
"kind": {
|
|
250
|
+
"const": "attributes"
|
|
251
|
+
},
|
|
252
|
+
"table": {
|
|
253
|
+
"$ref": "#/$defs/table"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "object",
|
|
259
|
+
"required": ["kind", "fields"],
|
|
260
|
+
"properties": {
|
|
261
|
+
"kind": {
|
|
262
|
+
"const": "group"
|
|
263
|
+
},
|
|
264
|
+
"fields": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"additionalProperties": {
|
|
267
|
+
"$ref": "#/$defs/table"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"tokens": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"description": "The tokens a stylesheet outside the package can build on. The colours are given as axes with what they are for, not as values, since a theme can have other values than LO-TEK's own.",
|
|
280
|
+
"required": [
|
|
281
|
+
"spacing",
|
|
282
|
+
"breakpoints",
|
|
283
|
+
"containers",
|
|
284
|
+
"colors",
|
|
285
|
+
"components"
|
|
286
|
+
],
|
|
287
|
+
"properties": {
|
|
288
|
+
"spacing": {
|
|
289
|
+
"type": "object",
|
|
290
|
+
"description": "The spacing scale, name to value.",
|
|
291
|
+
"additionalProperties": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"breakpoints": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"description": "The breakpoints, name to width.",
|
|
298
|
+
"additionalProperties": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"containers": {
|
|
303
|
+
"type": "object",
|
|
304
|
+
"description": "The container widths, name to width.",
|
|
305
|
+
"additionalProperties": {
|
|
306
|
+
"type": "string"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"colors": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"required": ["families", "roles", "layers", "tokens"],
|
|
312
|
+
"properties": {
|
|
313
|
+
"families": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"description": "The families, with what each is for.",
|
|
316
|
+
"additionalProperties": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"roles": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"description": "The roles as they are written in CSS, with what each is for. A colour token is named --lt-color-<family>-<role>.",
|
|
323
|
+
"additionalProperties": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"layers": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"description": "The layers only the neutral family has, like --lt-color-neutral-canvas.",
|
|
330
|
+
"additionalProperties": {
|
|
331
|
+
"type": "string"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"tokens": {
|
|
335
|
+
"type": "array",
|
|
336
|
+
"description": "Every --lt-color-* name the package ships.",
|
|
337
|
+
"items": {
|
|
338
|
+
"type": "string"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"additionalProperties": false
|
|
343
|
+
},
|
|
344
|
+
"components": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"description": "The component variables per component, like --lt-button-padding under button, with the default value, that is, the fallback in the stylesheet.",
|
|
347
|
+
"additionalProperties": {
|
|
348
|
+
"type": "object",
|
|
349
|
+
"description": "Variable name to default value.",
|
|
350
|
+
"additionalProperties": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"additionalProperties": false
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"$defs": {
|
|
360
|
+
"elementAttribute": {
|
|
361
|
+
"oneOf": [
|
|
362
|
+
{
|
|
363
|
+
"type": "object",
|
|
364
|
+
"required": ["type"],
|
|
365
|
+
"properties": {
|
|
366
|
+
"type": {
|
|
367
|
+
"enum": ["flag", "text", "number"]
|
|
368
|
+
},
|
|
369
|
+
"description": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"description": "What the attribute does."
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"type": "object",
|
|
377
|
+
"required": ["type", "values"],
|
|
378
|
+
"properties": {
|
|
379
|
+
"type": {
|
|
380
|
+
"const": "values"
|
|
381
|
+
},
|
|
382
|
+
"values": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"description": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "What the attribute does."
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"optionType": {
|
|
397
|
+
"oneOf": [
|
|
398
|
+
{
|
|
399
|
+
"type": "object",
|
|
400
|
+
"required": ["kind"],
|
|
401
|
+
"properties": {
|
|
402
|
+
"kind": {
|
|
403
|
+
"enum": ["flag", "text", "number", "textList"]
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"type": "object",
|
|
409
|
+
"required": ["kind", "values"],
|
|
410
|
+
"properties": {
|
|
411
|
+
"kind": {
|
|
412
|
+
"const": "values"
|
|
413
|
+
},
|
|
414
|
+
"values": {
|
|
415
|
+
"type": "array",
|
|
416
|
+
"items": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"returns": {
|
|
425
|
+
"oneOf": [
|
|
426
|
+
{
|
|
427
|
+
"type": "object",
|
|
428
|
+
"required": ["kind"],
|
|
429
|
+
"properties": {
|
|
430
|
+
"kind": {
|
|
431
|
+
"enum": ["attributes", "text"]
|
|
432
|
+
},
|
|
433
|
+
"optional": {
|
|
434
|
+
"type": "boolean"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "object",
|
|
440
|
+
"required": ["kind", "values"],
|
|
441
|
+
"properties": {
|
|
442
|
+
"kind": {
|
|
443
|
+
"const": "values"
|
|
444
|
+
},
|
|
445
|
+
"values": {
|
|
446
|
+
"type": "array",
|
|
447
|
+
"items": {
|
|
448
|
+
"type": "string"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"optional": {
|
|
452
|
+
"type": "boolean"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "object",
|
|
458
|
+
"required": ["kind", "of"],
|
|
459
|
+
"properties": {
|
|
460
|
+
"kind": {
|
|
461
|
+
"const": "list"
|
|
462
|
+
},
|
|
463
|
+
"of": {
|
|
464
|
+
"$ref": "#/$defs/returns"
|
|
465
|
+
},
|
|
466
|
+
"optional": {
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": "object",
|
|
473
|
+
"required": ["kind", "fields"],
|
|
474
|
+
"properties": {
|
|
475
|
+
"kind": {
|
|
476
|
+
"const": "group"
|
|
477
|
+
},
|
|
478
|
+
"fields": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"additionalProperties": {
|
|
481
|
+
"$ref": "#/$defs/returns"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"optional": {
|
|
485
|
+
"type": "boolean"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"attributes": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"description": "Attribute name to value. Empty text is a boolean attribute that is on, null removes the attribute, and {name} is the value of the option with that name.",
|
|
494
|
+
"additionalProperties": {
|
|
495
|
+
"type": ["string", "null"]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"table": {
|
|
499
|
+
"type": "object",
|
|
500
|
+
"required": ["base", "options"],
|
|
501
|
+
"properties": {
|
|
502
|
+
"base": {
|
|
503
|
+
"$ref": "#/$defs/attributes"
|
|
504
|
+
},
|
|
505
|
+
"options": {
|
|
506
|
+
"type": "object",
|
|
507
|
+
"additionalProperties": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"required": ["cases"],
|
|
510
|
+
"properties": {
|
|
511
|
+
"cases": {
|
|
512
|
+
"type": "object",
|
|
513
|
+
"additionalProperties": {
|
|
514
|
+
"$ref": "#/$defs/attributes"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"template": {
|
|
518
|
+
"$ref": "#/$defs/attributes"
|
|
519
|
+
},
|
|
520
|
+
"empty": {
|
|
521
|
+
"$ref": "#/$defs/attributes"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"part": {
|
|
529
|
+
"type": "object",
|
|
530
|
+
"required": ["selector", "description", "content"],
|
|
531
|
+
"properties": {
|
|
532
|
+
"selector": {
|
|
533
|
+
"type": "string",
|
|
534
|
+
"description": "The CSS selector the element finds the part with, as it is written in the code."
|
|
535
|
+
},
|
|
536
|
+
"description": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"description": "What the part is, and how the element recognises it."
|
|
539
|
+
},
|
|
540
|
+
"content": {
|
|
541
|
+
"description": "What the part contains: \"text\" is text, \"free\" is anything, \"parts\" is other parts in the list, and \"none\" is no text: a control, like a <select> with its <option>s, or an element the component fills.",
|
|
542
|
+
"enum": ["text", "free", "parts", "none"]
|
|
543
|
+
},
|
|
544
|
+
"multiple": {
|
|
545
|
+
"const": true,
|
|
546
|
+
"description": "The part can appear more than once."
|
|
547
|
+
},
|
|
548
|
+
"unique": {
|
|
549
|
+
"const": true,
|
|
550
|
+
"description": "A second part of the same kind is an error, not ordinary content. Without the field the rest can be content, like the buttons in a panel. lotek check reports such a part when it appears more than once."
|
|
551
|
+
},
|
|
552
|
+
"optional": {
|
|
553
|
+
"const": true,
|
|
554
|
+
"description": "The element works without the part."
|
|
555
|
+
},
|
|
556
|
+
"stableId": {
|
|
557
|
+
"const": true,
|
|
558
|
+
"description": "The part needs an id from the server: the component never writes one."
|
|
559
|
+
},
|
|
560
|
+
"name": {
|
|
561
|
+
"$ref": "#/$defs/name"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"additionalProperties": false
|
|
565
|
+
},
|
|
566
|
+
"name": {
|
|
567
|
+
"type": "object",
|
|
568
|
+
"description": "A name LO-TEK demands where WAI-ARIA does not, or one the component gives itself. lotek check reports an element the markup gives no name.",
|
|
569
|
+
"properties": {
|
|
570
|
+
"after": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"description": "The part the component points aria-labelledby at when the markup has neither aria-label nor aria-labelledby."
|
|
573
|
+
},
|
|
574
|
+
"id": {
|
|
575
|
+
"const": true,
|
|
576
|
+
"description": "That part must have an id from the template: the component does not write one."
|
|
577
|
+
},
|
|
578
|
+
"component": {
|
|
579
|
+
"const": true,
|
|
580
|
+
"description": "The component names it itself, and no rule judges its name in the markup."
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"additionalProperties": false
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|