@zeix/le-truc 0.15.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/.ai-context.md +234 -0
- package/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc +111 -0
- package/.editorconfig +12 -0
- package/.github/copilot-instructions.md +62 -0
- package/.github/workflows/codeql.yml +108 -0
- package/.github/workflows/static.yml +43 -0
- package/.prettierrc +17 -0
- package/CLAUDE.md +215 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +160 -0
- package/LICENSE +21 -0
- package/README.md +474 -0
- package/biome.json +295 -0
- package/bun.lock +239 -0
- package/docs/about.html +105 -0
- package/docs/assets/main.css +1 -0
- package/docs/assets/main.js +10 -0
- package/docs/assets/main.js.map +66 -0
- package/docs/components.html +293 -0
- package/docs/data-flow.html +308 -0
- package/docs/examples/basic-button.html +367 -0
- package/docs/examples/basic-counter.html +188 -0
- package/docs/examples/basic-hello.html +138 -0
- package/docs/examples/basic-number.html +271 -0
- package/docs/examples/basic-pluralize.html +214 -0
- package/docs/examples/card-callout.html +152 -0
- package/docs/examples/card-mediaqueries.html +138 -0
- package/docs/examples/context-media.html +198 -0
- package/docs/examples/empty.html +37 -0
- package/docs/examples/form-checkbox.html +233 -0
- package/docs/examples/form-combobox.html +420 -0
- package/docs/examples/form-listbox.html +434 -0
- package/docs/examples/form-radiogroup.html +296 -0
- package/docs/examples/form-spinbutton.html +402 -0
- package/docs/examples/form-textbox.html +361 -0
- package/docs/examples/layout.html +67 -0
- package/docs/examples/module-carousel.html +552 -0
- package/docs/examples/module-catalog.html +241 -0
- package/docs/examples/module-codeblock.html +270 -0
- package/docs/examples/module-dialog.html +343 -0
- package/docs/examples/module-lazyload.html +289 -0
- package/docs/examples/module-list.html +197 -0
- package/docs/examples/module-pagination.html +283 -0
- package/docs/examples/module-scrollarea.html +447 -0
- package/docs/examples/module-tabgroup.html +526 -0
- package/docs/examples/module-todo.html +367 -0
- package/docs/examples/module-with-type.html +63 -0
- package/docs/examples/nested-components.html +88 -0
- package/docs/examples/recursive.html +56 -0
- package/docs/examples/simple-text.html +39 -0
- package/docs/examples/snippet.html +93 -0
- package/docs/examples/with-styles.html +75 -0
- package/docs/getting-started.html +143 -0
- package/docs/index.html +112 -0
- package/docs/sitemap.xml +28 -0
- package/docs/styling.html +160 -0
- package/docs/sw.js +112 -0
- package/docs-src/api/README.md +478 -0
- package/docs-src/api/_media/LICENSE +21 -0
- package/docs-src/api/classes/CircularDependencyError.md +299 -0
- package/docs-src/api/classes/CircularMutationError.md +301 -0
- package/docs-src/api/classes/ContextRequestEvent.md +590 -0
- package/docs-src/api/classes/DependencyTimeoutError.md +301 -0
- package/docs-src/api/classes/InvalidCallbackError.md +303 -0
- package/docs-src/api/classes/InvalidComponentNameError.md +295 -0
- package/docs-src/api/classes/InvalidCustomElementError.md +301 -0
- package/docs-src/api/classes/InvalidEffectsError.md +301 -0
- package/docs-src/api/classes/InvalidPropertyNameError.md +307 -0
- package/docs-src/api/classes/InvalidReactivesError.md +307 -0
- package/docs-src/api/classes/InvalidSignalValueError.md +303 -0
- package/docs-src/api/classes/MissingElementError.md +307 -0
- package/docs-src/api/classes/NullishSignalValueError.md +299 -0
- package/docs-src/api/classes/StoreKeyExistsError.md +303 -0
- package/docs-src/api/classes/StoreKeyRangeError.md +299 -0
- package/docs-src/api/classes/StoreKeyReadonlyError.md +303 -0
- package/docs-src/api/functions/asBoolean.md +21 -0
- package/docs-src/api/functions/asEnum.md +31 -0
- package/docs-src/api/functions/asInteger.md +39 -0
- package/docs-src/api/functions/asJSON.md +49 -0
- package/docs-src/api/functions/asNumber.md +37 -0
- package/docs-src/api/functions/asString.md +37 -0
- package/docs-src/api/functions/createCollection.md +83 -0
- package/docs-src/api/functions/createSensor.md +71 -0
- package/docs-src/api/functions/dangerouslySetInnerHTML.md +48 -0
- package/docs-src/api/functions/defineComponent.md +65 -0
- package/docs-src/api/functions/isCollection.md +37 -0
- package/docs-src/api/functions/isParser.md +41 -0
- package/docs-src/api/functions/match.md +47 -0
- package/docs-src/api/functions/on.md +58 -0
- package/docs-src/api/functions/pass.md +53 -0
- package/docs-src/api/functions/provideContexts.md +47 -0
- package/docs-src/api/functions/read.md +47 -0
- package/docs-src/api/functions/requestContext.md +51 -0
- package/docs-src/api/functions/resolve.md +40 -0
- package/docs-src/api/functions/runEffects.md +51 -0
- package/docs-src/api/functions/runElementEffects.md +57 -0
- package/docs-src/api/functions/schedule.md +33 -0
- package/docs-src/api/functions/setAttribute.md +48 -0
- package/docs-src/api/functions/setProperty.md +52 -0
- package/docs-src/api/functions/setStyle.md +48 -0
- package/docs-src/api/functions/setText.md +42 -0
- package/docs-src/api/functions/show.md +42 -0
- package/docs-src/api/functions/toSignal.md +37 -0
- package/docs-src/api/functions/toggleAttribute.md +48 -0
- package/docs-src/api/functions/toggleClass.md +48 -0
- package/docs-src/api/functions/updateElement.md +53 -0
- package/docs-src/api/globals.md +131 -0
- package/docs-src/api/type-aliases/Cleanup.md +27 -0
- package/docs-src/api/type-aliases/Collection.md +91 -0
- package/docs-src/api/type-aliases/CollectionListener.md +27 -0
- package/docs-src/api/type-aliases/Component.md +17 -0
- package/docs-src/api/type-aliases/ComponentProp.md +11 -0
- package/docs-src/api/type-aliases/ComponentProps.md +11 -0
- package/docs-src/api/type-aliases/ComponentSetup.md +31 -0
- package/docs-src/api/type-aliases/ComponentUI.md +27 -0
- package/docs-src/api/type-aliases/Computed.md +49 -0
- package/docs-src/api/type-aliases/ComputedCallback.md +29 -0
- package/docs-src/api/type-aliases/Context.md +33 -0
- package/docs-src/api/type-aliases/ContextType.md +19 -0
- package/docs-src/api/type-aliases/DangerouslySetInnerHTMLOptions.md +27 -0
- package/docs-src/api/type-aliases/DiffResult.md +61 -0
- package/docs-src/api/type-aliases/Effect.md +35 -0
- package/docs-src/api/type-aliases/EffectCallback.md +23 -0
- package/docs-src/api/type-aliases/Effects.md +21 -0
- package/docs-src/api/type-aliases/ElementEffects.md +21 -0
- package/docs-src/api/type-aliases/ElementFromKey.md +21 -0
- package/docs-src/api/type-aliases/ElementQueries.md +27 -0
- package/docs-src/api/type-aliases/ElementUpdater.md +131 -0
- package/docs-src/api/type-aliases/EventHandler.md +31 -0
- package/docs-src/api/type-aliases/EventType.md +17 -0
- package/docs-src/api/type-aliases/Fallback.md +21 -0
- package/docs-src/api/type-aliases/Initializers.md +21 -0
- package/docs-src/api/type-aliases/LooseReader.md +31 -0
- package/docs-src/api/type-aliases/MatchHandlers.md +77 -0
- package/docs-src/api/type-aliases/MaybeCleanup.md +23 -0
- package/docs-src/api/type-aliases/MaybeSignal.md +17 -0
- package/docs-src/api/type-aliases/Parser.md +39 -0
- package/docs-src/api/type-aliases/ParserOrFallback.md +21 -0
- package/docs-src/api/type-aliases/PassedProp.md +25 -0
- package/docs-src/api/type-aliases/PassedProps.md +21 -0
- package/docs-src/api/type-aliases/Reactive.md +25 -0
- package/docs-src/api/type-aliases/Reader.md +31 -0
- package/docs-src/api/type-aliases/ReservedWords.md +11 -0
- package/docs-src/api/type-aliases/ResolveResult.md +29 -0
- package/docs-src/api/type-aliases/SensorEvents.md +25 -0
- package/docs-src/api/type-aliases/Signal.md +41 -0
- package/docs-src/api/type-aliases/State.md +85 -0
- package/docs-src/api/type-aliases/Store.md +29 -0
- package/docs-src/api/type-aliases/UI.md +11 -0
- package/docs-src/api/type-aliases/UnknownContext.md +13 -0
- package/docs-src/api/variables/CONTEXT_REQUEST.md +11 -0
- package/docs-src/api/variables/UNSET.md +23 -0
- package/docs-src/api/variables/batch.md +25 -0
- package/docs-src/api/variables/createComputed.md +41 -0
- package/docs-src/api/variables/createEffect.md +35 -0
- package/docs-src/api/variables/createState.md +37 -0
- package/docs-src/api/variables/createStore.md +42 -0
- package/docs-src/api/variables/diff.md +43 -0
- package/docs-src/api/variables/isAbortError.md +33 -0
- package/docs-src/api/variables/isAsyncFunction.md +39 -0
- package/docs-src/api/variables/isComputed.md +37 -0
- package/docs-src/api/variables/isEqual.md +49 -0
- package/docs-src/api/variables/isFunction.md +39 -0
- package/docs-src/api/variables/isMutableSignal.md +37 -0
- package/docs-src/api/variables/isNumber.md +33 -0
- package/docs-src/api/variables/isRecord.md +39 -0
- package/docs-src/api/variables/isRecordOrArray.md +39 -0
- package/docs-src/api/variables/isSignal.md +37 -0
- package/docs-src/api/variables/isState.md +37 -0
- package/docs-src/api/variables/isStore.md +37 -0
- package/docs-src/api/variables/isString.md +33 -0
- package/docs-src/api/variables/isSymbol.md +33 -0
- package/docs-src/api/variables/toError.md +33 -0
- package/docs-src/api/variables/valueString.md +33 -0
- package/docs-src/includes/menu.html +44 -0
- package/docs-src/pages/about.md +89 -0
- package/docs-src/pages/components.md +437 -0
- package/docs-src/pages/data-flow.md +449 -0
- package/docs-src/pages/getting-started.md +170 -0
- package/docs-src/pages/index.md +98 -0
- package/docs-src/pages/styling.md +165 -0
- package/eslint.config.js +64 -0
- package/examples/_common/clear.ts +49 -0
- package/examples/_common/fetch.ts +160 -0
- package/examples/_common/focus.ts +45 -0
- package/examples/_common/highlight.ts +5 -0
- package/examples/_global.css +463 -0
- package/examples/basic-button/basic-button.css +176 -0
- package/examples/basic-button/basic-button.html +46 -0
- package/examples/basic-button/basic-button.spec.ts +160 -0
- package/examples/basic-button/basic-button.ts +45 -0
- package/examples/basic-button/copyToClipboard.ts +37 -0
- package/examples/basic-counter/basic-counter.css +21 -0
- package/examples/basic-counter/basic-counter.html +24 -0
- package/examples/basic-counter/basic-counter.spec.ts +85 -0
- package/examples/basic-counter/basic-counter.ts +43 -0
- package/examples/basic-hello/basic-hello.html +34 -0
- package/examples/basic-hello/basic-hello.spec.ts +110 -0
- package/examples/basic-hello/basic-hello.ts +36 -0
- package/examples/basic-number/basic-number.html +79 -0
- package/examples/basic-number/basic-number.spec.ts +175 -0
- package/examples/basic-number/basic-number.ts +124 -0
- package/examples/basic-pluralize/basic-pluralize.html +64 -0
- package/examples/basic-pluralize/basic-pluralize.spec.ts +258 -0
- package/examples/basic-pluralize/basic-pluralize.ts +82 -0
- package/examples/card-callout/card-callout.css +79 -0
- package/examples/card-callout/card-callout.html +5 -0
- package/examples/card-mediaqueries/card-mediaqueries.html +29 -0
- package/examples/card-mediaqueries/card-mediaqueries.spec.ts +300 -0
- package/examples/card-mediaqueries/card-mediaqueries.ts +41 -0
- package/examples/context-media/context-media.html +3 -0
- package/examples/context-media/context-media.ts +127 -0
- package/examples/form-checkbox/form-checkbox.css +70 -0
- package/examples/form-checkbox/form-checkbox.html +13 -0
- package/examples/form-checkbox/form-checkbox.spec.ts +357 -0
- package/examples/form-checkbox/form-checkbox.ts +50 -0
- package/examples/form-checkbox/vanilla-checkbox.ts +101 -0
- package/examples/form-combobox/form-combobox.css +118 -0
- package/examples/form-combobox/form-combobox.html +74 -0
- package/examples/form-combobox/form-combobox.spec.ts +977 -0
- package/examples/form-combobox/form-combobox.ts +128 -0
- package/examples/form-listbox/form-listbox.css +71 -0
- package/examples/form-listbox/form-listbox.html +67 -0
- package/examples/form-listbox/form-listbox.spec.ts +1050 -0
- package/examples/form-listbox/form-listbox.ts +196 -0
- package/examples/form-listbox/mocks/timezones.json +495 -0
- package/examples/form-radiogroup/form-radiogroup.css +87 -0
- package/examples/form-radiogroup/form-radiogroup.html +51 -0
- package/examples/form-radiogroup/form-radiogroup.spec.ts +515 -0
- package/examples/form-radiogroup/form-radiogroup.ts +58 -0
- package/examples/form-spinbutton/form-spinbutton.css +95 -0
- package/examples/form-spinbutton/form-spinbutton.html +96 -0
- package/examples/form-spinbutton/form-spinbutton.spec.ts +688 -0
- package/examples/form-spinbutton/form-spinbutton.ts +111 -0
- package/examples/form-textbox/form-textbox.css +104 -0
- package/examples/form-textbox/form-textbox.html +53 -0
- package/examples/form-textbox/form-textbox.spec.ts +542 -0
- package/examples/form-textbox/form-textbox.ts +104 -0
- package/examples/main.css +22 -0
- package/examples/main.ts +23 -0
- package/examples/module-carousel/module-carousel.css +113 -0
- package/examples/module-carousel/module-carousel.html +208 -0
- package/examples/module-carousel/module-carousel.spec.ts +523 -0
- package/examples/module-carousel/module-carousel.ts +131 -0
- package/examples/module-catalog/module-catalog.css +22 -0
- package/examples/module-catalog/module-catalog.html +82 -0
- package/examples/module-catalog/module-catalog.spec.ts +396 -0
- package/examples/module-catalog/module-catalog.ts +37 -0
- package/examples/module-codeblock/module-codeblock.css +95 -0
- package/examples/module-codeblock/module-codeblock.html +28 -0
- package/examples/module-codeblock/module-codeblock.ts +47 -0
- package/examples/module-demo/module-demo.css +13 -0
- package/examples/module-dialog/module-dialog.css +96 -0
- package/examples/module-dialog/module-dialog.html +66 -0
- package/examples/module-dialog/module-dialog.spec.ts +557 -0
- package/examples/module-dialog/module-dialog.ts +81 -0
- package/examples/module-lazyload/mocks/empty.html +1 -0
- package/examples/module-lazyload/mocks/module-with-type.html +27 -0
- package/examples/module-lazyload/mocks/nested-components.html +52 -0
- package/examples/module-lazyload/mocks/recursive.html +20 -0
- package/examples/module-lazyload/mocks/simple-text.html +3 -0
- package/examples/module-lazyload/mocks/snippet.html +57 -0
- package/examples/module-lazyload/mocks/with-styles.html +39 -0
- package/examples/module-lazyload/module-lazyload.html +132 -0
- package/examples/module-lazyload/module-lazyload.spec.ts +734 -0
- package/examples/module-lazyload/module-lazyload.ts +89 -0
- package/examples/module-list/module-list.html +30 -0
- package/examples/module-list/module-list.spec.ts +592 -0
- package/examples/module-list/module-list.ts +99 -0
- package/examples/module-pagination/module-pagination.css +79 -0
- package/examples/module-pagination/module-pagination.html +16 -0
- package/examples/module-pagination/module-pagination.spec.ts +701 -0
- package/examples/module-pagination/module-pagination.ts +88 -0
- package/examples/module-scrollarea/module-scrollarea.css +77 -0
- package/examples/module-scrollarea/module-scrollarea.html +189 -0
- package/examples/module-scrollarea/module-scrollarea.spec.ts +445 -0
- package/examples/module-scrollarea/module-scrollarea.ts +81 -0
- package/examples/module-tabgroup/module-tabgroup.css +55 -0
- package/examples/module-tabgroup/module-tabgroup.html +269 -0
- package/examples/module-tabgroup/module-tabgroup.spec.ts +631 -0
- package/examples/module-tabgroup/module-tabgroup.ts +102 -0
- package/examples/module-toc/module-toc.css +34 -0
- package/examples/module-todo/module-todo.css +84 -0
- package/examples/module-todo/module-todo.html +92 -0
- package/examples/module-todo/module-todo.spec.ts +528 -0
- package/examples/module-todo/module-todo.ts +91 -0
- package/examples/section-hero/section-hero.css +37 -0
- package/examples/section-menu/section-menu.css +81 -0
- package/examples/server.ts +95 -0
- package/examples/test-setup.md +314 -0
- package/index.dev.js +1688 -0
- package/index.dev.ts +127 -0
- package/index.js +3 -0
- package/index.js.map +42 -0
- package/index.ts +127 -0
- package/package.json +64 -0
- package/playwright.config.ts +31 -0
- package/server/BUILD_SYSTEM.md +428 -0
- package/server/SERVER.md +286 -0
- package/server/build.ts +91 -0
- package/server/config.ts +130 -0
- package/server/effects/api.ts +28 -0
- package/server/effects/css.ts +31 -0
- package/server/effects/examples.ts +109 -0
- package/server/effects/js.ts +32 -0
- package/server/effects/menu.ts +34 -0
- package/server/effects/pages.ts +178 -0
- package/server/effects/service-worker.ts +57 -0
- package/server/effects/sitemap.ts +27 -0
- package/server/file-signals.ts +361 -0
- package/server/file-watcher.ts +77 -0
- package/server/io.ts +174 -0
- package/server/layout-engine.ts +470 -0
- package/server/layout-utils.ts +615 -0
- package/server/layouts/api.html +76 -0
- package/server/layouts/base.html +37 -0
- package/server/layouts/blog.html +115 -0
- package/server/layouts/example.html +104 -0
- package/server/layouts/overview.html +165 -0
- package/server/layouts/page.html +36 -0
- package/server/layouts/test.html +24 -0
- package/server/markdoc-helpers.ts +217 -0
- package/server/markdoc.config.ts +29 -0
- package/server/schema/callout.markdoc.ts +17 -0
- package/server/schema/carousel.markdoc.ts +118 -0
- package/server/schema/demo.markdoc.ts +74 -0
- package/server/schema/fence.markdoc.ts +84 -0
- package/server/schema/heading.markdoc.ts +23 -0
- package/server/schema/hero.markdoc.ts +59 -0
- package/server/schema/section.markdoc.ts +10 -0
- package/server/schema/slide.markdoc.ts +17 -0
- package/server/schema/source.markdoc.ts +53 -0
- package/server/schema/tabgroup.markdoc.ts +102 -0
- package/server/serve.ts +635 -0
- package/server/templates/README.md +352 -0
- package/server/templates/constants.ts +236 -0
- package/server/templates/fragments.ts +159 -0
- package/server/templates/hmr.ts +269 -0
- package/server/templates/menu.ts +33 -0
- package/server/templates/performance-hints.ts +94 -0
- package/server/templates/service-worker.ts +403 -0
- package/server/templates/sitemap.ts +57 -0
- package/server/templates/toc.ts +41 -0
- package/server/templates/utils.ts +378 -0
- package/src/component.ts +215 -0
- package/src/context.ts +156 -0
- package/src/effects/attribute.ts +82 -0
- package/src/effects/class.ts +28 -0
- package/src/effects/event.ts +67 -0
- package/src/effects/html.ts +60 -0
- package/src/effects/method.ts +57 -0
- package/src/effects/pass.ts +103 -0
- package/src/effects/property.ts +57 -0
- package/src/effects/style.ts +34 -0
- package/src/effects/text.ts +28 -0
- package/src/effects.ts +412 -0
- package/src/errors.ts +160 -0
- package/src/parsers/boolean.ts +14 -0
- package/src/parsers/json.ts +33 -0
- package/src/parsers/number.ts +55 -0
- package/src/parsers/string.ts +32 -0
- package/src/parsers.ts +90 -0
- package/src/scheduler.ts +47 -0
- package/src/signals/collection.ts +253 -0
- package/src/signals/sensor.ts +131 -0
- package/src/ui.ts +236 -0
- package/src/util.ts +187 -0
- package/tsconfig.json +34 -0
- package/types/examples/basic-button/basic-button.d.ts +16 -0
- package/types/examples/basic-hello/basic-hello.d.ts +18 -0
- package/types/index.d.ts +27 -0
- package/types/index.dev.d.ts +27 -0
- package/types/src/collection.d.ts +27 -0
- package/types/src/component.d.ts +32 -0
- package/types/src/context.d.ts +85 -0
- package/types/src/effects/attribute.d.ts +23 -0
- package/types/src/effects/callMethod.d.ts +23 -0
- package/types/src/effects/class.d.ts +13 -0
- package/types/src/effects/dangerouslySetInnerHTML.d.ts +18 -0
- package/types/src/effects/event.d.ts +18 -0
- package/types/src/effects/html.d.ts +17 -0
- package/types/src/effects/method.d.ts +22 -0
- package/types/src/effects/pass.d.ts +18 -0
- package/types/src/effects/property.d.ts +22 -0
- package/types/src/effects/setAttribute.d.ts +24 -0
- package/types/src/effects/setProperty.d.ts +23 -0
- package/types/src/effects/setStyle.d.ts +14 -0
- package/types/src/effects/setText.d.ts +13 -0
- package/types/src/effects/style.d.ts +13 -0
- package/types/src/effects/text.d.ts +12 -0
- package/types/src/effects/toggleClass.d.ts +14 -0
- package/types/src/effects.d.ts +153 -0
- package/types/src/errors.d.ts +99 -0
- package/types/src/events.d.ts +27 -0
- package/types/src/extractors.d.ts +23 -0
- package/types/src/parsers/boolean.d.ts +10 -0
- package/types/src/parsers/json.d.ts +13 -0
- package/types/src/parsers/number.d.ts +21 -0
- package/types/src/parsers/string.d.ts +19 -0
- package/types/src/parsers.d.ts +41 -0
- package/types/src/scheduler.d.ts +11 -0
- package/types/src/sensor.d.ts +27 -0
- package/types/src/signals/collection.d.ts +32 -0
- package/types/src/signals/sensor.d.ts +27 -0
- package/types/src/ui.d.ts +37 -0
- package/types/src/util.d.ts +65 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / setProperty
|
|
6
|
+
|
|
7
|
+
# Function: setProperty()
|
|
8
|
+
|
|
9
|
+
> **setProperty**\<`P`, `E`, `K`\>(`key`, `reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/property.ts:16](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/property.ts#L16)
|
|
12
|
+
|
|
13
|
+
Effect for setting a property on an element.
|
|
14
|
+
Sets the specified property directly on the element object.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `Element`
|
|
25
|
+
|
|
26
|
+
### K
|
|
27
|
+
|
|
28
|
+
`K` *extends* `string`
|
|
29
|
+
|
|
30
|
+
## Parameters
|
|
31
|
+
|
|
32
|
+
### key
|
|
33
|
+
|
|
34
|
+
`K`
|
|
35
|
+
|
|
36
|
+
Name of the property to set
|
|
37
|
+
|
|
38
|
+
### reactive
|
|
39
|
+
|
|
40
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`E`\[`K`\] & `object`, `P`, `E`\> = `...`
|
|
41
|
+
|
|
42
|
+
Reactive value bound to the property value (defaults to property name)
|
|
43
|
+
|
|
44
|
+
## Returns
|
|
45
|
+
|
|
46
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
47
|
+
|
|
48
|
+
Effect function that sets the property on the element
|
|
49
|
+
|
|
50
|
+
## Since
|
|
51
|
+
|
|
52
|
+
0.8.0
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / setStyle
|
|
6
|
+
|
|
7
|
+
# Function: setStyle()
|
|
8
|
+
|
|
9
|
+
> **setStyle**\<`P`, `E`\>(`prop`, `reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/style.ts:15](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/style.ts#L15)
|
|
12
|
+
|
|
13
|
+
Effect for setting a CSS style property on an element.
|
|
14
|
+
Sets the specified style property with support for deletion via UNSET.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `HTMLElement` \| `SVGElement` \| `MathMLElement`
|
|
25
|
+
|
|
26
|
+
## Parameters
|
|
27
|
+
|
|
28
|
+
### prop
|
|
29
|
+
|
|
30
|
+
`string`
|
|
31
|
+
|
|
32
|
+
Name of the CSS style property to set
|
|
33
|
+
|
|
34
|
+
### reactive
|
|
35
|
+
|
|
36
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`string`, `P`, `E`\> = `...`
|
|
37
|
+
|
|
38
|
+
Reactive value bound to the style property value (defaults to property name)
|
|
39
|
+
|
|
40
|
+
## Returns
|
|
41
|
+
|
|
42
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
43
|
+
|
|
44
|
+
Effect function that sets the style property on the element
|
|
45
|
+
|
|
46
|
+
## Since
|
|
47
|
+
|
|
48
|
+
0.8.0
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / setText
|
|
6
|
+
|
|
7
|
+
# Function: setText()
|
|
8
|
+
|
|
9
|
+
> **setText**\<`P`, `E`\>(`reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/text.ts:14](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/text.ts#L14)
|
|
12
|
+
|
|
13
|
+
Effect for setting the text content of an element.
|
|
14
|
+
Replaces all child nodes (except comments) with a single text node.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `Element`
|
|
25
|
+
|
|
26
|
+
## Parameters
|
|
27
|
+
|
|
28
|
+
### reactive
|
|
29
|
+
|
|
30
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`string`, `P`, `E`\>
|
|
31
|
+
|
|
32
|
+
Reactive value bound to the text content
|
|
33
|
+
|
|
34
|
+
## Returns
|
|
35
|
+
|
|
36
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
37
|
+
|
|
38
|
+
Effect function that sets the text content of the element
|
|
39
|
+
|
|
40
|
+
## Since
|
|
41
|
+
|
|
42
|
+
0.8.0
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / show
|
|
6
|
+
|
|
7
|
+
# Function: show()
|
|
8
|
+
|
|
9
|
+
> **show**\<`P`, `E`\>(`reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/property.ts:45](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/property.ts#L45)
|
|
12
|
+
|
|
13
|
+
Effect for controlling element visibility by setting the 'hidden' property.
|
|
14
|
+
When the reactive value is true, the element is shown; when false, it's hidden.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `HTMLElement` = `HTMLElement`
|
|
25
|
+
|
|
26
|
+
## Parameters
|
|
27
|
+
|
|
28
|
+
### reactive
|
|
29
|
+
|
|
30
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`boolean`, `P`, `E`\>
|
|
31
|
+
|
|
32
|
+
Reactive value bound to the visibility state
|
|
33
|
+
|
|
34
|
+
## Returns
|
|
35
|
+
|
|
36
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
37
|
+
|
|
38
|
+
Effect function that controls element visibility
|
|
39
|
+
|
|
40
|
+
## Since
|
|
41
|
+
|
|
42
|
+
0.13.1
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / toSignal
|
|
6
|
+
|
|
7
|
+
# Function: toSignal()
|
|
8
|
+
|
|
9
|
+
> **toSignal**\<`T`\>(`value`): `T` *extends* [`Store`](../type-aliases/Store.md)\<`U`\> ? [`Store`](../type-aliases/Store.md)\<`U`\> : `T` *extends* [`State`](../type-aliases/State.md)\<`U`\> ? [`State`](../type-aliases/State.md)\<`U`\> : `T` *extends* [`Computed`](../type-aliases/Computed.md)\<`U`\> ? [`Computed`](../type-aliases/Computed.md)\<`U`\> : `T` *extends* [`Signal`](../type-aliases/Signal.md)\<`U`\> ? [`Signal`](../type-aliases/Signal.md)\<`U`\> : `T` *extends* readonly `U`[] ? [`Store`](../type-aliases/Store.md)\<`U`[]\> : `T` *extends* `Record`\<`string`, \{ \}\> ? [`Store`](../type-aliases/Store.md)\<\{ \[K in string \| number \| symbol\]: T\<T\>\[K\] \}\> : `T` *extends* [`ComputedCallback`](../type-aliases/ComputedCallback.md)\<`U`\> ? [`Computed`](../type-aliases/Computed.md)\<`U`\> : [`State`](../type-aliases/State.md)\<`T`\>
|
|
10
|
+
|
|
11
|
+
Defined in: node\_modules/@zeix/cause-effect/types/src/signal.d.ts:34
|
|
12
|
+
|
|
13
|
+
Convert a value to a Signal if it's not already a Signal
|
|
14
|
+
|
|
15
|
+
## Type Parameters
|
|
16
|
+
|
|
17
|
+
### T
|
|
18
|
+
|
|
19
|
+
`T` *extends* `object`
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### value
|
|
24
|
+
|
|
25
|
+
`T`
|
|
26
|
+
|
|
27
|
+
value to convert
|
|
28
|
+
|
|
29
|
+
## Returns
|
|
30
|
+
|
|
31
|
+
`T` *extends* [`Store`](../type-aliases/Store.md)\<`U`\> ? [`Store`](../type-aliases/Store.md)\<`U`\> : `T` *extends* [`State`](../type-aliases/State.md)\<`U`\> ? [`State`](../type-aliases/State.md)\<`U`\> : `T` *extends* [`Computed`](../type-aliases/Computed.md)\<`U`\> ? [`Computed`](../type-aliases/Computed.md)\<`U`\> : `T` *extends* [`Signal`](../type-aliases/Signal.md)\<`U`\> ? [`Signal`](../type-aliases/Signal.md)\<`U`\> : `T` *extends* readonly `U`[] ? [`Store`](../type-aliases/Store.md)\<`U`[]\> : `T` *extends* `Record`\<`string`, \{ \}\> ? [`Store`](../type-aliases/Store.md)\<\{ \[K in string \| number \| symbol\]: T\<T\>\[K\] \}\> : `T` *extends* [`ComputedCallback`](../type-aliases/ComputedCallback.md)\<`U`\> ? [`Computed`](../type-aliases/Computed.md)\<`U`\> : [`State`](../type-aliases/State.md)\<`T`\>
|
|
32
|
+
|
|
33
|
+
- Signal instance
|
|
34
|
+
|
|
35
|
+
## Since
|
|
36
|
+
|
|
37
|
+
0.9.6
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / toggleAttribute
|
|
6
|
+
|
|
7
|
+
# Function: toggleAttribute()
|
|
8
|
+
|
|
9
|
+
> **toggleAttribute**\<`P`, `E`\>(`name`, `reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/attribute.ts:66](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/attribute.ts#L66)
|
|
12
|
+
|
|
13
|
+
Effect for toggling a boolean attribute on an element.
|
|
14
|
+
When the reactive value is true, the attribute is present; when false, it's absent.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `Element` = `HTMLElement`
|
|
25
|
+
|
|
26
|
+
## Parameters
|
|
27
|
+
|
|
28
|
+
### name
|
|
29
|
+
|
|
30
|
+
`string`
|
|
31
|
+
|
|
32
|
+
Name of the attribute to toggle
|
|
33
|
+
|
|
34
|
+
### reactive
|
|
35
|
+
|
|
36
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`boolean`, `P`, `E`\> = `...`
|
|
37
|
+
|
|
38
|
+
Reactive value bound to the attribute presence (defaults to attribute name)
|
|
39
|
+
|
|
40
|
+
## Returns
|
|
41
|
+
|
|
42
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
43
|
+
|
|
44
|
+
Effect function that toggles the attribute on the element
|
|
45
|
+
|
|
46
|
+
## Since
|
|
47
|
+
|
|
48
|
+
0.8.0
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / toggleClass
|
|
6
|
+
|
|
7
|
+
# Function: toggleClass()
|
|
8
|
+
|
|
9
|
+
> **toggleClass**\<`P`, `E`\>(`token`, `reactive`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects/class.ts:15](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects/class.ts#L15)
|
|
12
|
+
|
|
13
|
+
Effect for toggling a CSS class token on an element.
|
|
14
|
+
When the reactive value is true, the class is added; when false, it's removed.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
### P
|
|
19
|
+
|
|
20
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
21
|
+
|
|
22
|
+
### E
|
|
23
|
+
|
|
24
|
+
`E` *extends* `Element`
|
|
25
|
+
|
|
26
|
+
## Parameters
|
|
27
|
+
|
|
28
|
+
### token
|
|
29
|
+
|
|
30
|
+
`string`
|
|
31
|
+
|
|
32
|
+
CSS class token to toggle
|
|
33
|
+
|
|
34
|
+
### reactive
|
|
35
|
+
|
|
36
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`boolean`, `P`, `E`\> = `...`
|
|
37
|
+
|
|
38
|
+
Reactive value bound to the class presence (defaults to class name)
|
|
39
|
+
|
|
40
|
+
## Returns
|
|
41
|
+
|
|
42
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
43
|
+
|
|
44
|
+
Effect function that toggles the class on the element
|
|
45
|
+
|
|
46
|
+
## Since
|
|
47
|
+
|
|
48
|
+
0.8.0
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / updateElement
|
|
6
|
+
|
|
7
|
+
# Function: updateElement()
|
|
8
|
+
|
|
9
|
+
> **updateElement**\<`T`, `P`, `E`\>(`reactive`, `updater`): [`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/effects.ts:254](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/effects.ts#L254)
|
|
12
|
+
|
|
13
|
+
Core effect function for updating element properties based on reactive values.
|
|
14
|
+
This function handles the lifecycle of reading, updating, and deleting element properties
|
|
15
|
+
while providing proper error handling and debugging support.
|
|
16
|
+
|
|
17
|
+
## Type Parameters
|
|
18
|
+
|
|
19
|
+
### T
|
|
20
|
+
|
|
21
|
+
`T` *extends* `object`
|
|
22
|
+
|
|
23
|
+
### P
|
|
24
|
+
|
|
25
|
+
`P` *extends* [`ComponentProps`](../type-aliases/ComponentProps.md)
|
|
26
|
+
|
|
27
|
+
### E
|
|
28
|
+
|
|
29
|
+
`E` *extends* `Element`
|
|
30
|
+
|
|
31
|
+
## Parameters
|
|
32
|
+
|
|
33
|
+
### reactive
|
|
34
|
+
|
|
35
|
+
[`Reactive`](../type-aliases/Reactive.md)\<`T`, `P`, `E`\>
|
|
36
|
+
|
|
37
|
+
The reactive value that drives the element updates
|
|
38
|
+
|
|
39
|
+
### updater
|
|
40
|
+
|
|
41
|
+
[`ElementUpdater`](../type-aliases/ElementUpdater.md)\<`E`, `T`\>
|
|
42
|
+
|
|
43
|
+
Configuration object defining how to read, update, and delete the element property
|
|
44
|
+
|
|
45
|
+
## Returns
|
|
46
|
+
|
|
47
|
+
[`Effect`](../type-aliases/Effect.md)\<`P`, `E`\>
|
|
48
|
+
|
|
49
|
+
Effect function that manages the element property updates
|
|
50
|
+
|
|
51
|
+
## Since
|
|
52
|
+
|
|
53
|
+
0.9.0
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
[**le-truc**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# le-truc
|
|
6
|
+
|
|
7
|
+
## Classes
|
|
8
|
+
|
|
9
|
+
- [CircularDependencyError](classes/CircularDependencyError.md)
|
|
10
|
+
- [CircularMutationError](classes/CircularMutationError.md)
|
|
11
|
+
- [ContextRequestEvent](classes/ContextRequestEvent.md)
|
|
12
|
+
- [DependencyTimeoutError](classes/DependencyTimeoutError.md)
|
|
13
|
+
- [InvalidCallbackError](classes/InvalidCallbackError.md)
|
|
14
|
+
- [InvalidComponentNameError](classes/InvalidComponentNameError.md)
|
|
15
|
+
- [InvalidCustomElementError](classes/InvalidCustomElementError.md)
|
|
16
|
+
- [InvalidEffectsError](classes/InvalidEffectsError.md)
|
|
17
|
+
- [InvalidPropertyNameError](classes/InvalidPropertyNameError.md)
|
|
18
|
+
- [InvalidReactivesError](classes/InvalidReactivesError.md)
|
|
19
|
+
- [InvalidSignalValueError](classes/InvalidSignalValueError.md)
|
|
20
|
+
- [MissingElementError](classes/MissingElementError.md)
|
|
21
|
+
- [NullishSignalValueError](classes/NullishSignalValueError.md)
|
|
22
|
+
- [StoreKeyExistsError](classes/StoreKeyExistsError.md)
|
|
23
|
+
- [StoreKeyRangeError](classes/StoreKeyRangeError.md)
|
|
24
|
+
- [StoreKeyReadonlyError](classes/StoreKeyReadonlyError.md)
|
|
25
|
+
|
|
26
|
+
## Type Aliases
|
|
27
|
+
|
|
28
|
+
- [Cleanup](type-aliases/Cleanup.md)
|
|
29
|
+
- [Collection](type-aliases/Collection.md)
|
|
30
|
+
- [CollectionListener](type-aliases/CollectionListener.md)
|
|
31
|
+
- [Component](type-aliases/Component.md)
|
|
32
|
+
- [ComponentProp](type-aliases/ComponentProp.md)
|
|
33
|
+
- [ComponentProps](type-aliases/ComponentProps.md)
|
|
34
|
+
- [ComponentSetup](type-aliases/ComponentSetup.md)
|
|
35
|
+
- [ComponentUI](type-aliases/ComponentUI.md)
|
|
36
|
+
- [Computed](type-aliases/Computed.md)
|
|
37
|
+
- [ComputedCallback](type-aliases/ComputedCallback.md)
|
|
38
|
+
- [Context](type-aliases/Context.md)
|
|
39
|
+
- [ContextType](type-aliases/ContextType.md)
|
|
40
|
+
- [DangerouslySetInnerHTMLOptions](type-aliases/DangerouslySetInnerHTMLOptions.md)
|
|
41
|
+
- [DiffResult](type-aliases/DiffResult.md)
|
|
42
|
+
- [Effect](type-aliases/Effect.md)
|
|
43
|
+
- [EffectCallback](type-aliases/EffectCallback.md)
|
|
44
|
+
- [Effects](type-aliases/Effects.md)
|
|
45
|
+
- [ElementEffects](type-aliases/ElementEffects.md)
|
|
46
|
+
- [ElementFromKey](type-aliases/ElementFromKey.md)
|
|
47
|
+
- [ElementQueries](type-aliases/ElementQueries.md)
|
|
48
|
+
- [ElementUpdater](type-aliases/ElementUpdater.md)
|
|
49
|
+
- [EventHandler](type-aliases/EventHandler.md)
|
|
50
|
+
- [EventType](type-aliases/EventType.md)
|
|
51
|
+
- [Fallback](type-aliases/Fallback.md)
|
|
52
|
+
- [Initializers](type-aliases/Initializers.md)
|
|
53
|
+
- [LooseReader](type-aliases/LooseReader.md)
|
|
54
|
+
- [MatchHandlers](type-aliases/MatchHandlers.md)
|
|
55
|
+
- [MaybeCleanup](type-aliases/MaybeCleanup.md)
|
|
56
|
+
- [MaybeSignal](type-aliases/MaybeSignal.md)
|
|
57
|
+
- [Parser](type-aliases/Parser.md)
|
|
58
|
+
- [ParserOrFallback](type-aliases/ParserOrFallback.md)
|
|
59
|
+
- [PassedProp](type-aliases/PassedProp.md)
|
|
60
|
+
- [PassedProps](type-aliases/PassedProps.md)
|
|
61
|
+
- [Reactive](type-aliases/Reactive.md)
|
|
62
|
+
- [Reader](type-aliases/Reader.md)
|
|
63
|
+
- [ReservedWords](type-aliases/ReservedWords.md)
|
|
64
|
+
- [ResolveResult](type-aliases/ResolveResult.md)
|
|
65
|
+
- [SensorEvents](type-aliases/SensorEvents.md)
|
|
66
|
+
- [Signal](type-aliases/Signal.md)
|
|
67
|
+
- [State](type-aliases/State.md)
|
|
68
|
+
- [Store](type-aliases/Store.md)
|
|
69
|
+
- [UI](type-aliases/UI.md)
|
|
70
|
+
- [UnknownContext](type-aliases/UnknownContext.md)
|
|
71
|
+
|
|
72
|
+
## Variables
|
|
73
|
+
|
|
74
|
+
- [batch](variables/batch.md)
|
|
75
|
+
- [CONTEXT\_REQUEST](variables/CONTEXT_REQUEST.md)
|
|
76
|
+
- [createComputed](variables/createComputed.md)
|
|
77
|
+
- [createEffect](variables/createEffect.md)
|
|
78
|
+
- [createState](variables/createState.md)
|
|
79
|
+
- [createStore](variables/createStore.md)
|
|
80
|
+
- [diff](variables/diff.md)
|
|
81
|
+
- [isAbortError](variables/isAbortError.md)
|
|
82
|
+
- [isAsyncFunction](variables/isAsyncFunction.md)
|
|
83
|
+
- [isComputed](variables/isComputed.md)
|
|
84
|
+
- [isEqual](variables/isEqual.md)
|
|
85
|
+
- [isFunction](variables/isFunction.md)
|
|
86
|
+
- [isMutableSignal](variables/isMutableSignal.md)
|
|
87
|
+
- [isNumber](variables/isNumber.md)
|
|
88
|
+
- [isRecord](variables/isRecord.md)
|
|
89
|
+
- [isRecordOrArray](variables/isRecordOrArray.md)
|
|
90
|
+
- [isSignal](variables/isSignal.md)
|
|
91
|
+
- [isState](variables/isState.md)
|
|
92
|
+
- [isStore](variables/isStore.md)
|
|
93
|
+
- [isString](variables/isString.md)
|
|
94
|
+
- [isSymbol](variables/isSymbol.md)
|
|
95
|
+
- [toError](variables/toError.md)
|
|
96
|
+
- [UNSET](variables/UNSET.md)
|
|
97
|
+
- [valueString](variables/valueString.md)
|
|
98
|
+
|
|
99
|
+
## Functions
|
|
100
|
+
|
|
101
|
+
- [asBoolean](functions/asBoolean.md)
|
|
102
|
+
- [asEnum](functions/asEnum.md)
|
|
103
|
+
- [asInteger](functions/asInteger.md)
|
|
104
|
+
- [asJSON](functions/asJSON.md)
|
|
105
|
+
- [asNumber](functions/asNumber.md)
|
|
106
|
+
- [asString](functions/asString.md)
|
|
107
|
+
- [createCollection](functions/createCollection.md)
|
|
108
|
+
- [createSensor](functions/createSensor.md)
|
|
109
|
+
- [dangerouslySetInnerHTML](functions/dangerouslySetInnerHTML.md)
|
|
110
|
+
- [defineComponent](functions/defineComponent.md)
|
|
111
|
+
- [isCollection](functions/isCollection.md)
|
|
112
|
+
- [isParser](functions/isParser.md)
|
|
113
|
+
- [match](functions/match.md)
|
|
114
|
+
- [on](functions/on.md)
|
|
115
|
+
- [pass](functions/pass.md)
|
|
116
|
+
- [provideContexts](functions/provideContexts.md)
|
|
117
|
+
- [read](functions/read.md)
|
|
118
|
+
- [requestContext](functions/requestContext.md)
|
|
119
|
+
- [resolve](functions/resolve.md)
|
|
120
|
+
- [runEffects](functions/runEffects.md)
|
|
121
|
+
- [runElementEffects](functions/runElementEffects.md)
|
|
122
|
+
- [schedule](functions/schedule.md)
|
|
123
|
+
- [setAttribute](functions/setAttribute.md)
|
|
124
|
+
- [setProperty](functions/setProperty.md)
|
|
125
|
+
- [setStyle](functions/setStyle.md)
|
|
126
|
+
- [setText](functions/setText.md)
|
|
127
|
+
- [show](functions/show.md)
|
|
128
|
+
- [toggleAttribute](functions/toggleAttribute.md)
|
|
129
|
+
- [toggleClass](functions/toggleClass.md)
|
|
130
|
+
- [toSignal](functions/toSignal.md)
|
|
131
|
+
- [updateElement](functions/updateElement.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / Cleanup
|
|
6
|
+
|
|
7
|
+
# Type Alias: Cleanup()
|
|
8
|
+
|
|
9
|
+
> **Cleanup** = () => `void`
|
|
10
|
+
|
|
11
|
+
Defined in: node\_modules/@zeix/cause-effect/types/src/system.d.ts:1
|
|
12
|
+
|
|
13
|
+
## Returns
|
|
14
|
+
|
|
15
|
+
`void`
|
|
16
|
+
|
|
17
|
+
## Name
|
|
18
|
+
|
|
19
|
+
Le Truc
|
|
20
|
+
|
|
21
|
+
## Version
|
|
22
|
+
|
|
23
|
+
0.15.0
|
|
24
|
+
|
|
25
|
+
## Author
|
|
26
|
+
|
|
27
|
+
Esther Brunner
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / Collection
|
|
6
|
+
|
|
7
|
+
# Type Alias: Collection\<E\>
|
|
8
|
+
|
|
9
|
+
> **Collection**\<`E`\> = `object`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/signals/collection.ts:15](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L15)
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
### E
|
|
16
|
+
|
|
17
|
+
`E` *extends* `Element`
|
|
18
|
+
|
|
19
|
+
## Indexable
|
|
20
|
+
|
|
21
|
+
\[`n`: `number`\]: `E`
|
|
22
|
+
|
|
23
|
+
## Properties
|
|
24
|
+
|
|
25
|
+
### \[isConcatSpreadable\]
|
|
26
|
+
|
|
27
|
+
> `readonly` **\[isConcatSpreadable\]**: `true`
|
|
28
|
+
|
|
29
|
+
Defined in: [src/signals/collection.ts:17](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L17)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### \[toStringTag\]
|
|
34
|
+
|
|
35
|
+
> `readonly` **\[toStringTag\]**: `"Collection"`
|
|
36
|
+
|
|
37
|
+
Defined in: [src/signals/collection.ts:16](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L16)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### length
|
|
42
|
+
|
|
43
|
+
> `readonly` **length**: `number`
|
|
44
|
+
|
|
45
|
+
Defined in: [src/signals/collection.ts:22](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L22)
|
|
46
|
+
|
|
47
|
+
## Methods
|
|
48
|
+
|
|
49
|
+
### \[iterator\]()
|
|
50
|
+
|
|
51
|
+
> **\[iterator\]**(): `IterableIterator`\<`E`\>
|
|
52
|
+
|
|
53
|
+
Defined in: [src/signals/collection.ts:18](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L18)
|
|
54
|
+
|
|
55
|
+
#### Returns
|
|
56
|
+
|
|
57
|
+
`IterableIterator`\<`E`\>
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### get()
|
|
62
|
+
|
|
63
|
+
> **get**(): `E`[]
|
|
64
|
+
|
|
65
|
+
Defined in: [src/signals/collection.ts:20](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L20)
|
|
66
|
+
|
|
67
|
+
#### Returns
|
|
68
|
+
|
|
69
|
+
`E`[]
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### on()
|
|
74
|
+
|
|
75
|
+
> **on**(`type`, `listener`): [`Cleanup`](Cleanup.md)
|
|
76
|
+
|
|
77
|
+
Defined in: [src/signals/collection.ts:21](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L21)
|
|
78
|
+
|
|
79
|
+
#### Parameters
|
|
80
|
+
|
|
81
|
+
##### type
|
|
82
|
+
|
|
83
|
+
`"add"` | `"remove"`
|
|
84
|
+
|
|
85
|
+
##### listener
|
|
86
|
+
|
|
87
|
+
[`CollectionListener`](CollectionListener.md)\<`E`\>
|
|
88
|
+
|
|
89
|
+
#### Returns
|
|
90
|
+
|
|
91
|
+
[`Cleanup`](Cleanup.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / CollectionListener
|
|
6
|
+
|
|
7
|
+
# Type Alias: CollectionListener()\<E\>
|
|
8
|
+
|
|
9
|
+
> **CollectionListener**\<`E`\> = (`changes`) => `void`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/signals/collection.ts:13](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/signals/collection.ts#L13)
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
### E
|
|
16
|
+
|
|
17
|
+
`E` *extends* `Element`
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
### changes
|
|
22
|
+
|
|
23
|
+
readonly `E`[]
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`void`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / Component
|
|
6
|
+
|
|
7
|
+
# Type Alias: Component\<P\>
|
|
8
|
+
|
|
9
|
+
> **Component**\<`P`\> = `HTMLElement` & `P`
|
|
10
|
+
|
|
11
|
+
Defined in: [src/component.ts:39](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/component.ts#L39)
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
### P
|
|
16
|
+
|
|
17
|
+
`P` *extends* [`ComponentProps`](ComponentProps.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**le-truc**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[le-truc](../globals.md) / ComponentProp
|
|
6
|
+
|
|
7
|
+
# Type Alias: ComponentProp
|
|
8
|
+
|
|
9
|
+
> **ComponentProp** = `Exclude`\<`string`, keyof `HTMLElement` \| [`ReservedWords`](ReservedWords.md)\>
|
|
10
|
+
|
|
11
|
+
Defined in: [src/component.ts:36](https://github.com/zeixcom/le-truc/blob/5bd629bc02429c8193f06a75f94397faf30ed891/src/component.ts#L36)
|