@supersoniks/concorde 4.9.98-visual-stack.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -34
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +201 -152
- package/concorde-3d.es.js +14687 -13905
- package/concorde-core.bundle.js +311 -293
- package/concorde-core.es.js +5195 -5129
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-shader.bundle.js +31 -20
- package/concorde-shader.es.js +2773 -2547
- package/concorde-webgpu.bundle.js +43 -32
- package/concorde-webgpu.es.js +1819 -1553
- package/dist/concorde-core.bundle.js +311 -293
- package/dist/concorde-core.es.js +5195 -5129
- package/dist/docs-mock-api-sw.js +5 -1
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/package.json +384 -1790
- package/public/docs-mock-api-sw.js +5 -1
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/post-build.mjs +10 -116
- package/scripts/pre-build.mjs +36 -119
- package/scripts/pre-publish.mjs +54 -76
- package/src/core/components/functional/jsonata/jsonata.md +2 -4
- package/src/core/components/functional/sdui/sdui.md +2 -2
- package/src/core/components/functional/sdui/sdui.ts +29 -40
- package/src/core/components/ui/button/button.ts +1 -2
- package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
- package/src/core/components/ui/form/input/input.ts +7 -13
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
- package/src/core/components/ui/form/radio/radio.ts +1 -1
- package/src/core/components/ui/form/select/select.ts +3 -6
- package/src/core/components/ui/form/textarea/textarea.ts +1 -2
- package/src/core/components/ui/pop/pop.ts +9 -0
- package/src/core/components/ui/toast/render-content.ts +13 -0
- package/src/core/components/ui/toast/toast-item.ts +40 -12
- package/src/core/components/ui/toast/toast.ts +54 -14
- package/src/core/components/ui/toast/types.ts +14 -2
- package/src/core/decorators/subscriber/derive.ts +3 -3
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/mixins/FormCheckable.ts +1 -8
- package/src/core/mixins/FormElement.ts +74 -76
- package/src/core/utils/HTML.ts +74 -107
- package/src/core/utils/PublisherProxy.ts +6 -29
- package/src/core/utils/jsonataHelpers.ts +0 -36
- package/src/docs/_core-concept/dataFlow.md +1 -3
- package/src/docs/_getting-started/create-a-component.md +1 -1
- package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/src/docs/_misc/html-integration.md +2 -0
- package/src/docs/components/docs-demo-sources.ts +79 -353
- package/src/docs/docs.ts +1 -7
- package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
- package/src/docs/mock-api/router.ts +17 -1
- package/src/docs/navigation/navigation.ts +4 -25
- package/src/docs/search/docs-search.json +884 -2354
- package/src/tsconfig.json +313 -490
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite/config.js +30 -42
- package/vite.config.mts +12 -51
- package/dist/concorde-3d.bundle.js +0 -3911
- package/dist/concorde-3d.es.js +0 -32651
- package/dist/concorde-hugging-face-infer.bundle.js +0 -32
- package/dist/concorde-hugging-face-infer.es.js +0 -2952
- package/dist/concorde-shader.bundle.js +0 -105
- package/dist/concorde-shader.es.js +0 -8127
- package/dist/concorde-webgpu.bundle.js +0 -296
- package/dist/concorde-webgpu.es.js +0 -8361
- package/dist/docs/hf-samples/beach.jpg +0 -0
- package/dist/docs/hf-samples/cats.jpg +0 -0
- package/dist/docs/hf-samples/corgi.jpg +0 -0
- package/dist/docs/hf-samples/portrait.jpg +0 -0
- package/dist/docs/hf-samples/scene.jpg +0 -0
- package/dist/docs/hf-samples/singer.jpg +0 -0
- package/dist/docs/shader-samples/color.jpg +0 -0
- package/dist/docs/shader-samples/depth.png +0 -0
- package/dist/docs/shader-samples/impact.jpg +0 -0
- package/dist/docs/shader-samples/video.webm +0 -0
- package/dist/js/addons/3d.js +0 -6
- package/dist/js/addons/3d.js.map +0 -1
- package/dist/js/addons/hugging-face-infer.js +0 -8
- package/dist/js/addons/hugging-face-infer.js.map +0 -1
- package/dist/js/addons/shader.js +0 -6
- package/dist/js/addons/shader.js.map +0 -1
- package/dist/js/addons/webgpu.js +0 -7
- package/dist/js/addons/webgpu.js.map +0 -1
- package/dist/js/components.js +0 -12
- package/dist/js/components.js.map +0 -1
- package/dist/js/concorde-loaded.js +0 -5
- package/dist/js/concorde-loaded.js.map +0 -1
- package/dist/js/core/_types/endpoint.js +0 -5
- package/dist/js/core/_types/endpoint.js.map +0 -1
- package/dist/js/core/_types/key.js +0 -2
- package/dist/js/core/_types/key.js.map +0 -1
- package/dist/js/core/_types/types.js +0 -3
- package/dist/js/core/_types/types.js.map +0 -1
- package/dist/js/core/components/functional/3d/3d.js +0 -161
- package/dist/js/core/components/functional/3d/3d.js.map +0 -1
- package/dist/js/core/components/functional/3d/asset.js +0 -20
- package/dist/js/core/components/functional/3d/asset.js.map +0 -1
- package/dist/js/core/components/functional/3d/boot.js +0 -47
- package/dist/js/core/components/functional/3d/boot.js.map +0 -1
- package/dist/js/core/components/functional/3d/constants.js +0 -90
- package/dist/js/core/components/functional/3d/constants.js.map +0 -1
- package/dist/js/core/components/functional/3d/demo-content.js +0 -38
- package/dist/js/core/components/functional/3d/demo-content.js.map +0 -1
- package/dist/js/core/components/functional/3d/ensure.js +0 -73
- package/dist/js/core/components/functional/3d/ensure.js.map +0 -1
- package/dist/js/core/components/functional/3d/form-bind.js +0 -25
- package/dist/js/core/components/functional/3d/form-bind.js.map +0 -1
- package/dist/js/core/components/functional/3d/form-fields.js +0 -76
- package/dist/js/core/components/functional/3d/form-fields.js.map +0 -1
- package/dist/js/core/components/functional/3d/form-params.js +0 -67
- package/dist/js/core/components/functional/3d/form-params.js.map +0 -1
- package/dist/js/core/components/functional/3d/frame-capture.js +0 -108
- package/dist/js/core/components/functional/3d/frame-capture.js.map +0 -1
- package/dist/js/core/components/functional/3d/frame-source.js +0 -22
- package/dist/js/core/components/functional/3d/frame-source.js.map +0 -1
- package/dist/js/core/components/functional/3d/gl.js +0 -34
- package/dist/js/core/components/functional/3d/gl.js.map +0 -1
- package/dist/js/core/components/functional/3d/life.js +0 -55
- package/dist/js/core/components/functional/3d/life.js.map +0 -1
- package/dist/js/core/components/functional/3d/load.js +0 -109
- package/dist/js/core/components/functional/3d/load.js.map +0 -1
- package/dist/js/core/components/functional/3d/ops.js +0 -78
- package/dist/js/core/components/functional/3d/ops.js.map +0 -1
- package/dist/js/core/components/functional/3d/opts.js +0 -2
- package/dist/js/core/components/functional/3d/opts.js.map +0 -1
- package/dist/js/core/components/functional/3d/orbit.js +0 -136
- package/dist/js/core/components/functional/3d/orbit.js.map +0 -1
- package/dist/js/core/components/functional/3d/out-publish.js +0 -103
- package/dist/js/core/components/functional/3d/out-publish.js.map +0 -1
- package/dist/js/core/components/functional/3d/parse.js +0 -95
- package/dist/js/core/components/functional/3d/parse.js.map +0 -1
- package/dist/js/core/components/functional/3d/pick.js +0 -62
- package/dist/js/core/components/functional/3d/pick.js.map +0 -1
- package/dist/js/core/components/functional/3d/playback.js +0 -56
- package/dist/js/core/components/functional/3d/playback.js.map +0 -1
- package/dist/js/core/components/functional/3d/pointer.js +0 -58
- package/dist/js/core/components/functional/3d/pointer.js.map +0 -1
- package/dist/js/core/components/functional/3d/props.js +0 -105
- package/dist/js/core/components/functional/3d/props.js.map +0 -1
- package/dist/js/core/components/functional/3d/publisher-listen.js +0 -6
- package/dist/js/core/components/functional/3d/publisher-listen.js.map +0 -1
- package/dist/js/core/components/functional/3d/reload.js +0 -63
- package/dist/js/core/components/functional/3d/reload.js.map +0 -1
- package/dist/js/core/components/functional/3d/runtime.js +0 -116
- package/dist/js/core/components/functional/3d/runtime.js.map +0 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js +0 -6
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +0 -1
- package/dist/js/core/components/functional/3d/snapshot.js +0 -47
- package/dist/js/core/components/functional/3d/snapshot.js.map +0 -1
- package/dist/js/core/components/functional/3d/styles.js +0 -38
- package/dist/js/core/components/functional/3d/styles.js.map +0 -1
- package/dist/js/core/components/functional/3d/tune.js +0 -42
- package/dist/js/core/components/functional/3d/tune.js.map +0 -1
- package/dist/js/core/components/functional/3d/types.js +0 -8
- package/dist/js/core/components/functional/3d/types.js.map +0 -1
- package/dist/js/core/components/functional/3d/updated.js +0 -58
- package/dist/js/core/components/functional/3d/updated.js.map +0 -1
- package/dist/js/core/components/functional/3d/view.js +0 -40
- package/dist/js/core/components/functional/3d/view.js.map +0 -1
- package/dist/js/core/components/functional/3d/wire.js +0 -34
- package/dist/js/core/components/functional/3d/wire.js.map +0 -1
- package/dist/js/core/components/functional/date/date.js +0 -272
- package/dist/js/core/components/functional/date/date.js.map +0 -1
- package/dist/js/core/components/functional/example/example.js +0 -44
- package/dist/js/core/components/functional/example/example.js.map +0 -1
- package/dist/js/core/components/functional/fetch/fetch.js +0 -79
- package/dist/js/core/components/functional/fetch/fetch.js.map +0 -1
- package/dist/js/core/components/functional/functional.js +0 -18
- package/dist/js/core/components/functional/functional.js.map +0 -1
- package/dist/js/core/components/functional/if/if.js +0 -39
- package/dist/js/core/components/functional/if/if.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +0 -183
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +0 -50
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +0 -460
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +0 -116
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +0 -170
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +0 -2
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +0 -367
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +0 -288
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +0 -309
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +0 -213
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +0 -76
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +0 -1
- package/dist/js/core/components/functional/infer/hugging-face/types.js +0 -62
- package/dist/js/core/components/functional/infer/hugging-face/types.js.map +0 -1
- package/dist/js/core/components/functional/jsonata/jsonata.js +0 -119
- package/dist/js/core/components/functional/jsonata/jsonata.js.map +0 -1
- package/dist/js/core/components/functional/list/list.js +0 -341
- package/dist/js/core/components/functional/list/list.js.map +0 -1
- package/dist/js/core/components/functional/mix/mix.js +0 -103
- package/dist/js/core/components/functional/mix/mix.js.map +0 -1
- package/dist/js/core/components/functional/queue/queue.js +0 -450
- package/dist/js/core/components/functional/queue/queue.js.map +0 -1
- package/dist/js/core/components/functional/router/redirect.js +0 -54
- package/dist/js/core/components/functional/router/redirect.js.map +0 -1
- package/dist/js/core/components/functional/router/router.js +0 -179
- package/dist/js/core/components/functional/router/router.js.map +0 -1
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -216
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +0 -1
- package/dist/js/core/components/functional/sdui/default-library.json +0 -108
- package/dist/js/core/components/functional/sdui/sdui-utils.js +0 -64
- package/dist/js/core/components/functional/sdui/sdui-utils.js.map +0 -1
- package/dist/js/core/components/functional/sdui/sdui.js +0 -271
- package/dist/js/core/components/functional/sdui/sdui.js.map +0 -1
- package/dist/js/core/components/functional/sdui/types.js +0 -2
- package/dist/js/core/components/functional/sdui/types.js.map +0 -1
- package/dist/js/core/components/functional/shader/gl-runtime.js +0 -738
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +0 -1
- package/dist/js/core/components/functional/shader/shader.js +0 -1642
- package/dist/js/core/components/functional/shader/shader.js.map +0 -1
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +0 -48
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +0 -1
- package/dist/js/core/components/functional/shader/types.js +0 -179
- package/dist/js/core/components/functional/shader/types.js.map +0 -1
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +0 -22
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +0 -1
- package/dist/js/core/components/functional/states/states.js +0 -172
- package/dist/js/core/components/functional/states/states.js.map +0 -1
- package/dist/js/core/components/functional/submit/submit.js +0 -284
- package/dist/js/core/components/functional/submit/submit.js.map +0 -1
- package/dist/js/core/components/functional/subscriber/subscriber.js +0 -39
- package/dist/js/core/components/functional/subscriber/subscriber.js.map +0 -1
- package/dist/js/core/components/functional/translation/translation.js +0 -28
- package/dist/js/core/components/functional/translation/translation.js.map +0 -1
- package/dist/js/core/components/functional/value/value.js +0 -28
- package/dist/js/core/components/functional/value/value.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +0 -117
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/form-bind.js +0 -92
- package/dist/js/core/components/functional/webgpu/form-bind.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/gl-fallback.js +0 -135
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +0 -305
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/helpers.js +0 -44
- package/dist/js/core/components/functional/webgpu/helpers.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/out-frame.js +0 -117
- package/dist/js/core/components/functional/webgpu/out-frame.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/particles-runtime.js +0 -407
- package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/pointer.js +0 -56
- package/dist/js/core/components/functional/webgpu/pointer.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/types.js +0 -24
- package/dist/js/core/components/functional/webgpu/types.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js +0 -676
- package/dist/js/core/components/functional/webgpu/webgpu.js.map +0 -1
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +0 -77
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +0 -1
- package/dist/js/core/components/ui/_css/scroll.js +0 -27
- package/dist/js/core/components/ui/_css/scroll.js.map +0 -1
- package/dist/js/core/components/ui/_css/shadow.js +0 -22
- package/dist/js/core/components/ui/_css/shadow.js.map +0 -1
- package/dist/js/core/components/ui/_css/size.js +0 -36
- package/dist/js/core/components/ui/_css/size.js.map +0 -1
- package/dist/js/core/components/ui/_css/type.js +0 -92
- package/dist/js/core/components/ui/_css/type.js.map +0 -1
- package/dist/js/core/components/ui/alert/alert.js +0 -213
- package/dist/js/core/components/ui/alert/alert.js.map +0 -1
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +0 -68
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +0 -1
- package/dist/js/core/components/ui/badge/badge.js +0 -199
- package/dist/js/core/components/ui/badge/badge.js.map +0 -1
- package/dist/js/core/components/ui/button/button.js +0 -697
- package/dist/js/core/components/ui/button/button.js.map +0 -1
- package/dist/js/core/components/ui/captcha/altchaStyles.js +0 -226
- package/dist/js/core/components/ui/captcha/altchaStyles.js.map +0 -1
- package/dist/js/core/components/ui/captcha/captcha.js +0 -167
- package/dist/js/core/components/ui/captcha/captcha.js.map +0 -1
- package/dist/js/core/components/ui/card/card-footer.js +0 -26
- package/dist/js/core/components/ui/card/card-footer.js.map +0 -1
- package/dist/js/core/components/ui/card/card-header-descripton.js +0 -30
- package/dist/js/core/components/ui/card/card-header-descripton.js.map +0 -1
- package/dist/js/core/components/ui/card/card-header.js +0 -79
- package/dist/js/core/components/ui/card/card-header.js.map +0 -1
- package/dist/js/core/components/ui/card/card-main.js +0 -26
- package/dist/js/core/components/ui/card/card-main.js.map +0 -1
- package/dist/js/core/components/ui/card/card.js +0 -67
- package/dist/js/core/components/ui/card/card.js.map +0 -1
- package/dist/js/core/components/ui/divider/divider.js +0 -200
- package/dist/js/core/components/ui/divider/divider.js.map +0 -1
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +0 -257
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +0 -1
- package/dist/js/core/components/ui/form/css/form-control.js +0 -393
- package/dist/js/core/components/ui/form/css/form-control.js.map +0 -1
- package/dist/js/core/components/ui/form/fieldset/fieldset.js +0 -124
- package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +0 -1
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +0 -38
- package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +0 -1
- package/dist/js/core/components/ui/form/fieldset/legend.js +0 -130
- package/dist/js/core/components/ui/form/fieldset/legend.js.map +0 -1
- package/dist/js/core/components/ui/form/form-actions/form-actions.js +0 -47
- package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +0 -1
- package/dist/js/core/components/ui/form/form-layout/form-layout.js +0 -84
- package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +0 -1
- package/dist/js/core/components/ui/form/input/input.js +0 -316
- package/dist/js/core/components/ui/form/input/input.js.map +0 -1
- package/dist/js/core/components/ui/form/input/password-helper.js +0 -134
- package/dist/js/core/components/ui/form/input/password-helper.js.map +0 -1
- package/dist/js/core/components/ui/form/input/same-value-helper.js +0 -85
- package/dist/js/core/components/ui/form/input/same-value-helper.js.map +0 -1
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -405
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +0 -1
- package/dist/js/core/components/ui/form/radio/radio.js +0 -63
- package/dist/js/core/components/ui/form/radio/radio.js.map +0 -1
- package/dist/js/core/components/ui/form/select/select.js +0 -323
- package/dist/js/core/components/ui/form/select/select.js.map +0 -1
- package/dist/js/core/components/ui/form/switch/switch.js +0 -90
- package/dist/js/core/components/ui/form/switch/switch.js.map +0 -1
- package/dist/js/core/components/ui/form/textarea/textarea.js +0 -162
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +0 -1
- package/dist/js/core/components/ui/group/group.js +0 -128
- package/dist/js/core/components/ui/group/group.js.map +0 -1
- package/dist/js/core/components/ui/icon/icon.js +0 -145
- package/dist/js/core/components/ui/icon/icon.js.map +0 -1
- package/dist/js/core/components/ui/icon/icons.js +0 -184
- package/dist/js/core/components/ui/icon/icons.js.map +0 -1
- package/dist/js/core/components/ui/icon/icons.json +0 -1
- package/dist/js/core/components/ui/image/image.js +0 -160
- package/dist/js/core/components/ui/image/image.js.map +0 -1
- package/dist/js/core/components/ui/link/link.js +0 -125
- package/dist/js/core/components/ui/link/link.js.map +0 -1
- package/dist/js/core/components/ui/loader/loader.js +0 -106
- package/dist/js/core/components/ui/loader/loader.js.map +0 -1
- package/dist/js/core/components/ui/loader/styles/fixed.js +0 -56
- package/dist/js/core/components/ui/loader/styles/fixed.js.map +0 -1
- package/dist/js/core/components/ui/loader/styles/inline.js +0 -70
- package/dist/js/core/components/ui/loader/styles/inline.js.map +0 -1
- package/dist/js/core/components/ui/menu/menu-item.js +0 -35
- package/dist/js/core/components/ui/menu/menu-item.js.map +0 -1
- package/dist/js/core/components/ui/menu/menu.js +0 -436
- package/dist/js/core/components/ui/menu/menu.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-actions.js +0 -44
- package/dist/js/core/components/ui/modal/modal-actions.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-close.js +0 -56
- package/dist/js/core/components/ui/modal/modal-close.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-content.js +0 -27
- package/dist/js/core/components/ui/modal/modal-content.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-subtitle.js +0 -34
- package/dist/js/core/components/ui/modal/modal-subtitle.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-title.js +0 -35
- package/dist/js/core/components/ui/modal/modal-title.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal-utils.js +0 -32
- package/dist/js/core/components/ui/modal/modal-utils.js.map +0 -1
- package/dist/js/core/components/ui/modal/modal.js +0 -568
- package/dist/js/core/components/ui/modal/modal.js.map +0 -1
- package/dist/js/core/components/ui/pop/pop.js +0 -337
- package/dist/js/core/components/ui/pop/pop.js.map +0 -1
- package/dist/js/core/components/ui/progress/progress.js +0 -164
- package/dist/js/core/components/ui/progress/progress.js.map +0 -1
- package/dist/js/core/components/ui/table/table-caption.js +0 -29
- package/dist/js/core/components/ui/table/table-caption.js.map +0 -1
- package/dist/js/core/components/ui/table/table-tbody.js +0 -41
- package/dist/js/core/components/ui/table/table-tbody.js.map +0 -1
- package/dist/js/core/components/ui/table/table-td.js +0 -69
- package/dist/js/core/components/ui/table/table-td.js.map +0 -1
- package/dist/js/core/components/ui/table/table-tfoot.js +0 -28
- package/dist/js/core/components/ui/table/table-tfoot.js.map +0 -1
- package/dist/js/core/components/ui/table/table-th.js +0 -80
- package/dist/js/core/components/ui/table/table-th.js.map +0 -1
- package/dist/js/core/components/ui/table/table-thead.js +0 -26
- package/dist/js/core/components/ui/table/table-thead.js.map +0 -1
- package/dist/js/core/components/ui/table/table-tr.js +0 -67
- package/dist/js/core/components/ui/table/table-tr.js.map +0 -1
- package/dist/js/core/components/ui/table/table.js +0 -106
- package/dist/js/core/components/ui/table/table.js.map +0 -1
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +0 -74
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +0 -1
- package/dist/js/core/components/ui/theme/theme-collection/dark.js +0 -39
- package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +0 -1
- package/dist/js/core/components/ui/theme/theme-collection/light.js +0 -32
- package/dist/js/core/components/ui/theme/theme-collection/light.js.map +0 -1
- package/dist/js/core/components/ui/theme/theme.js +0 -150
- package/dist/js/core/components/ui/theme/theme.js.map +0 -1
- package/dist/js/core/components/ui/toast/message-subscriber.js +0 -41
- package/dist/js/core/components/ui/toast/message-subscriber.js.map +0 -1
- package/dist/js/core/components/ui/toast/toast-item.js +0 -379
- package/dist/js/core/components/ui/toast/toast-item.js.map +0 -1
- package/dist/js/core/components/ui/toast/toast.js +0 -269
- package/dist/js/core/components/ui/toast/toast.js.map +0 -1
- package/dist/js/core/components/ui/toast/types.js +0 -2
- package/dist/js/core/components/ui/toast/types.js.map +0 -1
- package/dist/js/core/components/ui/tooltip/tooltip.js +0 -219
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +0 -1
- package/dist/js/core/components/ui/ui.js +0 -41
- package/dist/js/core/components/ui/ui.js.map +0 -1
- package/dist/js/core/core.js +0 -14
- package/dist/js/core/core.js.map +0 -1
- package/dist/js/core/decorators/Subscriber.js +0 -10
- package/dist/js/core/decorators/Subscriber.js.map +0 -1
- package/dist/js/core/decorators/api.js +0 -806
- package/dist/js/core/decorators/api.js.map +0 -1
- package/dist/js/core/decorators/lifecycle.js +0 -67
- package/dist/js/core/decorators/lifecycle.js.map +0 -1
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js +0 -27
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +0 -1
- package/dist/js/core/decorators/subscriber/autoFill.js +0 -26
- package/dist/js/core/decorators/subscriber/autoFill.js.map +0 -1
- package/dist/js/core/decorators/subscriber/autoSubscribe.js +0 -46
- package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +0 -1
- package/dist/js/core/decorators/subscriber/bind.js +0 -150
- package/dist/js/core/decorators/subscriber/bind.js.map +0 -1
- package/dist/js/core/decorators/subscriber/common.js +0 -44
- package/dist/js/core/decorators/subscriber/common.js.map +0 -1
- package/dist/js/core/decorators/subscriber/derive.js +0 -60
- package/dist/js/core/decorators/subscriber/derive.js.map +0 -1
- package/dist/js/core/decorators/subscriber/dynamicPath.js +0 -75
- package/dist/js/core/decorators/subscriber/dynamicPath.js.map +0 -1
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +0 -138
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +0 -1
- package/dist/js/core/decorators/subscriber/handle.js +0 -22
- package/dist/js/core/decorators/subscriber/handle.js.map +0 -1
- package/dist/js/core/decorators/subscriber/onAssign.js +0 -199
- package/dist/js/core/decorators/subscriber/onAssign.js.map +0 -1
- package/dist/js/core/decorators/subscriber/publish.js +0 -108
- package/dist/js/core/decorators/subscriber/publish.js.map +0 -1
- package/dist/js/core/decorators/subscriber/publisherPath.js +0 -16
- package/dist/js/core/decorators/subscriber/publisherPath.js.map +0 -1
- package/dist/js/core/decorators/subscriber/subscribe.js +0 -20
- package/dist/js/core/decorators/subscriber/subscribe.js.map +0 -1
- package/dist/js/core/directives/DataProvider.js +0 -127
- package/dist/js/core/directives/DataProvider.js.map +0 -1
- package/dist/js/core/directives/Wording.js +0 -221
- package/dist/js/core/directives/Wording.js.map +0 -1
- package/dist/js/core/mixins/Fetcher.js +0 -325
- package/dist/js/core/mixins/Fetcher.js.map +0 -1
- package/dist/js/core/mixins/FormCheckable.js +0 -313
- package/dist/js/core/mixins/FormCheckable.js.map +0 -1
- package/dist/js/core/mixins/FormElement.js +0 -304
- package/dist/js/core/mixins/FormElement.js.map +0 -1
- package/dist/js/core/mixins/FormInput.js +0 -82
- package/dist/js/core/mixins/FormInput.js.map +0 -1
- package/dist/js/core/mixins/Subscriber.js +0 -354
- package/dist/js/core/mixins/Subscriber.js.map +0 -1
- package/dist/js/core/mixins/TemplatesContainer.js +0 -70
- package/dist/js/core/mixins/TemplatesContainer.js.map +0 -1
- package/dist/js/core/mixins/mixins.js +0 -7
- package/dist/js/core/mixins/mixins.js.map +0 -1
- package/dist/js/core/utils/AncestorAttributeObserver.js +0 -140
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +0 -1
- package/dist/js/core/utils/Arrays.js +0 -141
- package/dist/js/core/utils/Arrays.js.map +0 -1
- package/dist/js/core/utils/DataBindObserver.js +0 -265
- package/dist/js/core/utils/DataBindObserver.js.map +0 -1
- package/dist/js/core/utils/Electron.js +0 -14
- package/dist/js/core/utils/Electron.js.map +0 -1
- package/dist/js/core/utils/Format.js +0 -43
- package/dist/js/core/utils/Format.js.map +0 -1
- package/dist/js/core/utils/HTML.js +0 -307
- package/dist/js/core/utils/HTML.js.map +0 -1
- package/dist/js/core/utils/LocationHandler.js +0 -143
- package/dist/js/core/utils/LocationHandler.js.map +0 -1
- package/dist/js/core/utils/Objects.js +0 -111
- package/dist/js/core/utils/Objects.js.map +0 -1
- package/dist/js/core/utils/PublisherProxy.js +0 -970
- package/dist/js/core/utils/PublisherProxy.js.map +0 -1
- package/dist/js/core/utils/SafariScrollGuard.js +0 -384
- package/dist/js/core/utils/SafariScrollGuard.js.map +0 -1
- package/dist/js/core/utils/Utils.js +0 -19
- package/dist/js/core/utils/Utils.js.map +0 -1
- package/dist/js/core/utils/aesCrypto.js +0 -98
- package/dist/js/core/utils/aesCrypto.js.map +0 -1
- package/dist/js/core/utils/api.js +0 -595
- package/dist/js/core/utils/api.js.map +0 -1
- package/dist/js/core/utils/dataProviderKey.js +0 -64
- package/dist/js/core/utils/dataProviderKey.js.map +0 -1
- package/dist/js/core/utils/derive.js +0 -246
- package/dist/js/core/utils/derive.js.map +0 -1
- package/dist/js/core/utils/endpoint.js +0 -74
- package/dist/js/core/utils/endpoint.js.map +0 -1
- package/dist/js/core/utils/jsonataHelpers.js +0 -84
- package/dist/js/core/utils/jsonataHelpers.js.map +0 -1
- package/dist/js/core/utils/jsonataRuntime.js +0 -75
- package/dist/js/core/utils/jsonataRuntime.js.map +0 -1
- package/dist/js/core/utils/mediaRef.js +0 -169
- package/dist/js/core/utils/mediaRef.js.map +0 -1
- package/dist/js/core/utils/route.js +0 -149
- package/dist/js/core/utils/route.js.map +0 -1
- package/dist/js/core/utils/similarity.js +0 -44
- package/dist/js/core/utils/similarity.js.map +0 -1
- package/dist/js/core/utils/url-pattern.js +0 -3
- package/dist/js/core/utils/url-pattern.js.map +0 -1
- package/dist/js/dataprovider.js +0 -2
- package/dist/js/dataprovider.js.map +0 -1
- package/dist/js/decorators.js +0 -43
- package/dist/js/decorators.js.map +0 -1
- package/dist/js/directives.js +0 -30
- package/dist/js/directives.js.map +0 -1
- package/dist/js/index.js +0 -8
- package/dist/js/index.js.map +0 -1
- package/dist/js/mixins.js +0 -23
- package/dist/js/mixins.js.map +0 -1
- package/dist/js/test-utils/TestUtils.js +0 -10
- package/dist/js/test-utils/TestUtils.js.map +0 -1
- package/dist/js/utils.js +0 -46
- package/dist/js/utils.js.map +0 -1
- package/dist/types/addons/3d.d.ts +0 -6
- package/dist/types/addons/3d.d.ts.map +0 -1
- package/dist/types/addons/hugging-face-infer.d.ts +0 -8
- package/dist/types/addons/hugging-face-infer.d.ts.map +0 -1
- package/dist/types/addons/shader.d.ts +0 -6
- package/dist/types/addons/shader.d.ts.map +0 -1
- package/dist/types/addons/webgpu.d.ts +0 -7
- package/dist/types/addons/webgpu.d.ts.map +0 -1
- package/dist/types/components.d.ts +0 -5
- package/dist/types/components.d.ts.map +0 -1
- package/dist/types/concorde-loaded.d.ts +0 -2
- package/dist/types/concorde-loaded.d.ts.map +0 -1
- package/dist/types/core/_types/endpoint.d.ts +0 -5
- package/dist/types/core/_types/endpoint.d.ts.map +0 -1
- package/dist/types/core/_types/key.d.ts +0 -2
- package/dist/types/core/_types/key.d.ts.map +0 -1
- package/dist/types/core/_types/types.d.ts +0 -28
- package/dist/types/core/_types/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/3d.d.ts +0 -71
- package/dist/types/core/components/functional/3d/3d.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/asset.d.ts +0 -12
- package/dist/types/core/components/functional/3d/asset.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/boot.d.ts +0 -23
- package/dist/types/core/components/functional/3d/boot.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/constants.d.ts +0 -43
- package/dist/types/core/components/functional/3d/constants.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/demo-content.d.ts +0 -10
- package/dist/types/core/components/functional/3d/demo-content.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/ensure.d.ts +0 -36
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/form-bind.d.ts +0 -20
- package/dist/types/core/components/functional/3d/form-bind.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/form-fields.d.ts +0 -14
- package/dist/types/core/components/functional/3d/form-fields.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/form-params.d.ts +0 -37
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/frame-capture.d.ts +0 -33
- package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/frame-source.d.ts +0 -23
- package/dist/types/core/components/functional/3d/frame-source.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/gl.d.ts +0 -4
- package/dist/types/core/components/functional/3d/gl.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/life.d.ts +0 -41
- package/dist/types/core/components/functional/3d/life.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/load.d.ts +0 -36
- package/dist/types/core/components/functional/3d/load.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/ops.d.ts +0 -48
- package/dist/types/core/components/functional/3d/ops.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/opts.d.ts +0 -16
- package/dist/types/core/components/functional/3d/opts.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/orbit.d.ts +0 -55
- package/dist/types/core/components/functional/3d/orbit.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/out-publish.d.ts +0 -47
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/parse.d.ts +0 -23
- package/dist/types/core/components/functional/3d/parse.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/pick.d.ts +0 -32
- package/dist/types/core/components/functional/3d/pick.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/playback.d.ts +0 -26
- package/dist/types/core/components/functional/3d/playback.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/pointer.d.ts +0 -27
- package/dist/types/core/components/functional/3d/pointer.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/props.d.ts +0 -30
- package/dist/types/core/components/functional/3d/props.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts +0 -8
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/reload.d.ts +0 -38
- package/dist/types/core/components/functional/3d/reload.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts +0 -75
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +0 -6
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/snapshot.d.ts +0 -29
- package/dist/types/core/components/functional/3d/snapshot.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/styles.d.ts +0 -2
- package/dist/types/core/components/functional/3d/styles.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/tune.d.ts +0 -32
- package/dist/types/core/components/functional/3d/tune.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/types.d.ts +0 -140
- package/dist/types/core/components/functional/3d/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/updated.d.ts +0 -7
- package/dist/types/core/components/functional/3d/updated.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/view.d.ts +0 -25
- package/dist/types/core/components/functional/3d/view.d.ts.map +0 -1
- package/dist/types/core/components/functional/3d/wire.d.ts +0 -32
- package/dist/types/core/components/functional/3d/wire.d.ts.map +0 -1
- package/dist/types/core/components/functional/date/date.d.ts +0 -52
- package/dist/types/core/components/functional/date/date.d.ts.map +0 -1
- package/dist/types/core/components/functional/example/example.d.ts +0 -15
- package/dist/types/core/components/functional/example/example.d.ts.map +0 -1
- package/dist/types/core/components/functional/fetch/fetch.d.ts +0 -102
- package/dist/types/core/components/functional/fetch/fetch.d.ts.map +0 -1
- package/dist/types/core/components/functional/functional.d.ts +0 -18
- package/dist/types/core/components/functional/functional.d.ts.map +0 -1
- package/dist/types/core/components/functional/if/if.d.ts +0 -13
- package/dist/types/core/components/functional/if/if.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +0 -21
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +0 -133
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +0 -79
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +0 -43
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +0 -47
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +0 -95
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +0 -77
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +0 -1251
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +0 -56
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +0 -67
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +0 -116
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +0 -1
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +0 -167
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts +0 -29
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +0 -1
- package/dist/types/core/components/functional/list/list.d.ts +0 -149
- package/dist/types/core/components/functional/list/list.d.ts.map +0 -1
- package/dist/types/core/components/functional/mix/mix.d.ts +0 -23
- package/dist/types/core/components/functional/mix/mix.d.ts.map +0 -1
- package/dist/types/core/components/functional/queue/queue.d.ts +0 -93
- package/dist/types/core/components/functional/queue/queue.d.ts.map +0 -1
- package/dist/types/core/components/functional/router/redirect.d.ts +0 -19
- package/dist/types/core/components/functional/router/redirect.d.ts.map +0 -1
- package/dist/types/core/components/functional/router/router.d.ts +0 -46
- package/dist/types/core/components/functional/router/router.d.ts.map +0 -1
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -59
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +0 -1
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +0 -6
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +0 -1
- package/dist/types/core/components/functional/sdui/sdui.d.ts +0 -148
- package/dist/types/core/components/functional/sdui/sdui.d.ts.map +0 -1
- package/dist/types/core/components/functional/sdui/types.d.ts +0 -38
- package/dist/types/core/components/functional/sdui/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts +0 -90
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/shader/shader.d.ts +0 -285
- package/dist/types/core/components/functional/shader/shader.d.ts.map +0 -1
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +0 -6
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +0 -1
- package/dist/types/core/components/functional/shader/types.d.ts +0 -262
- package/dist/types/core/components/functional/shader/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -6
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +0 -1
- package/dist/types/core/components/functional/states/states.d.ts +0 -42
- package/dist/types/core/components/functional/states/states.d.ts.map +0 -1
- package/dist/types/core/components/functional/submit/submit.d.ts +0 -37
- package/dist/types/core/components/functional/submit/submit.d.ts.map +0 -1
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts +0 -13
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +0 -1
- package/dist/types/core/components/functional/translation/translation.d.ts +0 -7
- package/dist/types/core/components/functional/translation/translation.d.ts.map +0 -1
- package/dist/types/core/components/functional/value/value.d.ts +0 -8
- package/dist/types/core/components/functional/value/value.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +0 -29
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts +0 -43
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +0 -31
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +0 -53
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +0 -9
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts +0 -29
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +0 -37
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/pointer.d.ts +0 -41
- package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/types.d.ts +0 -75
- package/dist/types/core/components/functional/webgpu/types.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +0 -127
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +0 -1
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +0 -8
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +0 -1
- package/dist/types/core/components/ui/_css/scroll.d.ts +0 -2
- package/dist/types/core/components/ui/_css/scroll.d.ts.map +0 -1
- package/dist/types/core/components/ui/_css/shadow.d.ts +0 -3
- package/dist/types/core/components/ui/_css/shadow.d.ts.map +0 -1
- package/dist/types/core/components/ui/_css/size.d.ts +0 -3
- package/dist/types/core/components/ui/_css/size.d.ts.map +0 -1
- package/dist/types/core/components/ui/_css/type.d.ts +0 -3
- package/dist/types/core/components/ui/_css/type.d.ts.map +0 -1
- package/dist/types/core/components/ui/alert/alert.d.ts +0 -37
- package/dist/types/core/components/ui/alert/alert.d.ts.map +0 -1
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +0 -15
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +0 -1
- package/dist/types/core/components/ui/badge/badge.d.ts +0 -27
- package/dist/types/core/components/ui/badge/badge.d.ts.map +0 -1
- package/dist/types/core/components/ui/button/button.d.ts +0 -180
- package/dist/types/core/components/ui/button/button.d.ts.map +0 -1
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +0 -2
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +0 -1
- package/dist/types/core/components/ui/captcha/captcha.d.ts +0 -30
- package/dist/types/core/components/ui/captcha/captcha.d.ts.map +0 -1
- package/dist/types/core/components/ui/card/card-footer.d.ts +0 -6
- package/dist/types/core/components/ui/card/card-footer.d.ts.map +0 -1
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts +0 -6
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +0 -1
- package/dist/types/core/components/ui/card/card-header.d.ts +0 -9
- package/dist/types/core/components/ui/card/card-header.d.ts.map +0 -1
- package/dist/types/core/components/ui/card/card-main.d.ts +0 -6
- package/dist/types/core/components/ui/card/card-main.d.ts.map +0 -1
- package/dist/types/core/components/ui/card/card.d.ts +0 -13
- package/dist/types/core/components/ui/card/card.d.ts.map +0 -1
- package/dist/types/core/components/ui/divider/divider.d.ts +0 -16
- package/dist/types/core/components/ui/divider/divider.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +0 -176
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/css/form-control.d.ts +0 -5
- package/dist/types/core/components/ui/form/css/form-control.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +0 -24
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +0 -6
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts +0 -17
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +0 -8
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +0 -13
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/input/input.d.ts +0 -123
- package/dist/types/core/components/ui/form/input/input.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/input/password-helper.d.ts +0 -26
- package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +0 -17
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -155
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/radio/radio.d.ts +0 -15
- package/dist/types/core/components/ui/form/radio/radio.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/select/select.d.ts +0 -59
- package/dist/types/core/components/ui/form/select/select.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/switch/switch.d.ts +0 -6
- package/dist/types/core/components/ui/form/switch/switch.d.ts.map +0 -1
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +0 -94
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +0 -1
- package/dist/types/core/components/ui/group/group.d.ts +0 -17
- package/dist/types/core/components/ui/group/group.d.ts.map +0 -1
- package/dist/types/core/components/ui/icon/icon.d.ts +0 -30
- package/dist/types/core/components/ui/icon/icon.d.ts.map +0 -1
- package/dist/types/core/components/ui/icon/icons.d.ts +0 -13
- package/dist/types/core/components/ui/icon/icons.d.ts.map +0 -1
- package/dist/types/core/components/ui/image/image.d.ts +0 -16
- package/dist/types/core/components/ui/image/image.d.ts.map +0 -1
- package/dist/types/core/components/ui/link/link.d.ts +0 -30
- package/dist/types/core/components/ui/link/link.d.ts.map +0 -1
- package/dist/types/core/components/ui/loader/loader.d.ts +0 -24
- package/dist/types/core/components/ui/loader/loader.d.ts.map +0 -1
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts +0 -2
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +0 -1
- package/dist/types/core/components/ui/loader/styles/inline.d.ts +0 -2
- package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +0 -1
- package/dist/types/core/components/ui/menu/menu-item.d.ts +0 -6
- package/dist/types/core/components/ui/menu/menu-item.d.ts.map +0 -1
- package/dist/types/core/components/ui/menu/menu.d.ts +0 -52
- package/dist/types/core/components/ui/menu/menu.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-actions.d.ts +0 -9
- package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-close.d.ts +0 -11
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-content.d.ts +0 -6
- package/dist/types/core/components/ui/modal/modal-content.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +0 -6
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-title.d.ts +0 -6
- package/dist/types/core/components/ui/modal/modal-title.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal-utils.d.ts +0 -4
- package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +0 -1
- package/dist/types/core/components/ui/modal/modal.d.ts +0 -79
- package/dist/types/core/components/ui/modal/modal.d.ts.map +0 -1
- package/dist/types/core/components/ui/pop/pop.d.ts +0 -42
- package/dist/types/core/components/ui/pop/pop.d.ts.map +0 -1
- package/dist/types/core/components/ui/progress/progress.d.ts +0 -12
- package/dist/types/core/components/ui/progress/progress.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-caption.d.ts +0 -6
- package/dist/types/core/components/ui/table/table-caption.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-tbody.d.ts +0 -6
- package/dist/types/core/components/ui/table/table-tbody.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-td.d.ts +0 -13
- package/dist/types/core/components/ui/table/table-td.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-tfoot.d.ts +0 -6
- package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-th.d.ts +0 -12
- package/dist/types/core/components/ui/table/table-th.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-thead.d.ts +0 -6
- package/dist/types/core/components/ui/table/table-thead.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table-tr.d.ts +0 -14
- package/dist/types/core/components/ui/table/table-tr.d.ts.map +0 -1
- package/dist/types/core/components/ui/table/table.d.ts +0 -18
- package/dist/types/core/components/ui/table/table.d.ts.map +0 -1
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -2
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +0 -1
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +0 -2
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +0 -1
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +0 -2
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +0 -1
- package/dist/types/core/components/ui/theme/theme.d.ts +0 -20
- package/dist/types/core/components/ui/theme/theme.d.ts.map +0 -1
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts +0 -19
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +0 -1
- package/dist/types/core/components/ui/toast/toast-item.d.ts +0 -41
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +0 -1
- package/dist/types/core/components/ui/toast/toast.d.ts +0 -28
- package/dist/types/core/components/ui/toast/toast.d.ts.map +0 -1
- package/dist/types/core/components/ui/toast/types.d.ts +0 -12
- package/dist/types/core/components/ui/toast/types.d.ts.map +0 -1
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +0 -21
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +0 -1
- package/dist/types/core/components/ui/ui.d.ts +0 -35
- package/dist/types/core/components/ui/ui.d.ts.map +0 -1
- package/dist/types/core/core.d.ts +0 -5
- package/dist/types/core/core.d.ts.map +0 -1
- package/dist/types/core/decorators/Subscriber.d.ts +0 -13
- package/dist/types/core/decorators/Subscriber.d.ts.map +0 -1
- package/dist/types/core/decorators/api.d.ts +0 -155
- package/dist/types/core/decorators/api.d.ts.map +0 -1
- package/dist/types/core/decorators/lifecycle.d.ts +0 -19
- package/dist/types/core/decorators/lifecycle.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +0 -11
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/autoFill.d.ts +0 -2
- package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +0 -2
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/bind.d.ts +0 -28
- package/dist/types/core/decorators/subscriber/bind.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/common.d.ts +0 -14
- package/dist/types/core/decorators/subscriber/common.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/derive.d.ts +0 -30
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +0 -23
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +0 -42
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/handle.d.ts +0 -74
- package/dist/types/core/decorators/subscriber/handle.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/onAssign.d.ts +0 -53
- package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/publish.d.ts +0 -23
- package/dist/types/core/decorators/subscriber/publish.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts +0 -3
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +0 -1
- package/dist/types/core/decorators/subscriber/subscribe.d.ts +0 -20
- package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +0 -1
- package/dist/types/core/directives/DataProvider.d.ts +0 -45
- package/dist/types/core/directives/DataProvider.d.ts.map +0 -1
- package/dist/types/core/directives/Wording.d.ts +0 -44
- package/dist/types/core/directives/Wording.d.ts.map +0 -1
- package/dist/types/core/mixins/Fetcher.d.ts +0 -108
- package/dist/types/core/mixins/Fetcher.d.ts.map +0 -1
- package/dist/types/core/mixins/FormCheckable.d.ts +0 -95
- package/dist/types/core/mixins/FormCheckable.d.ts.map +0 -1
- package/dist/types/core/mixins/FormElement.d.ts +0 -37
- package/dist/types/core/mixins/FormElement.d.ts.map +0 -1
- package/dist/types/core/mixins/FormInput.d.ts +0 -79
- package/dist/types/core/mixins/FormInput.d.ts.map +0 -1
- package/dist/types/core/mixins/Subscriber.d.ts +0 -38
- package/dist/types/core/mixins/Subscriber.d.ts.map +0 -1
- package/dist/types/core/mixins/TemplatesContainer.d.ts +0 -14
- package/dist/types/core/mixins/TemplatesContainer.d.ts.map +0 -1
- package/dist/types/core/mixins/mixins.d.ts +0 -7
- package/dist/types/core/mixins/mixins.d.ts.map +0 -1
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +0 -38
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +0 -1
- package/dist/types/core/utils/Arrays.d.ts +0 -98
- package/dist/types/core/utils/Arrays.d.ts.map +0 -1
- package/dist/types/core/utils/DataBindObserver.d.ts +0 -84
- package/dist/types/core/utils/DataBindObserver.d.ts.map +0 -1
- package/dist/types/core/utils/Electron.d.ts +0 -8
- package/dist/types/core/utils/Electron.d.ts.map +0 -1
- package/dist/types/core/utils/Format.d.ts +0 -13
- package/dist/types/core/utils/Format.d.ts.map +0 -1
- package/dist/types/core/utils/HTML.d.ts +0 -59
- package/dist/types/core/utils/HTML.d.ts.map +0 -1
- package/dist/types/core/utils/LocationHandler.d.ts +0 -48
- package/dist/types/core/utils/LocationHandler.d.ts.map +0 -1
- package/dist/types/core/utils/Objects.d.ts +0 -31
- package/dist/types/core/utils/Objects.d.ts.map +0 -1
- package/dist/types/core/utils/PublisherProxy.d.ts +0 -230
- package/dist/types/core/utils/PublisherProxy.d.ts.map +0 -1
- package/dist/types/core/utils/SafariScrollGuard.d.ts +0 -36
- package/dist/types/core/utils/SafariScrollGuard.d.ts.map +0 -1
- package/dist/types/core/utils/Utils.d.ts +0 -6
- package/dist/types/core/utils/Utils.d.ts.map +0 -1
- package/dist/types/core/utils/aesCrypto.d.ts +0 -53
- package/dist/types/core/utils/aesCrypto.d.ts.map +0 -1
- package/dist/types/core/utils/api.d.ts +0 -173
- package/dist/types/core/utils/api.d.ts.map +0 -1
- package/dist/types/core/utils/dataProviderKey.d.ts +0 -56
- package/dist/types/core/utils/dataProviderKey.d.ts.map +0 -1
- package/dist/types/core/utils/derive.d.ts +0 -40
- package/dist/types/core/utils/derive.d.ts.map +0 -1
- package/dist/types/core/utils/endpoint.d.ts +0 -37
- package/dist/types/core/utils/endpoint.d.ts.map +0 -1
- package/dist/types/core/utils/jsonataHelpers.d.ts +0 -15
- package/dist/types/core/utils/jsonataHelpers.d.ts.map +0 -1
- package/dist/types/core/utils/jsonataRuntime.d.ts +0 -13
- package/dist/types/core/utils/jsonataRuntime.d.ts.map +0 -1
- package/dist/types/core/utils/mediaRef.d.ts +0 -53
- package/dist/types/core/utils/mediaRef.d.ts.map +0 -1
- package/dist/types/core/utils/route.d.ts +0 -41
- package/dist/types/core/utils/route.d.ts.map +0 -1
- package/dist/types/core/utils/similarity.d.ts +0 -15
- package/dist/types/core/utils/similarity.d.ts.map +0 -1
- package/dist/types/core/utils/url-pattern.d.ts +0 -3
- package/dist/types/core/utils/url-pattern.d.ts.map +0 -1
- package/dist/types/dataprovider.d.ts +0 -2
- package/dist/types/dataprovider.d.ts.map +0 -1
- package/dist/types/decorators.d.ts +0 -30
- package/dist/types/decorators.d.ts.map +0 -1
- package/dist/types/directives.d.ts +0 -21
- package/dist/types/directives.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/mixins.d.ts +0 -204
- package/dist/types/mixins.d.ts.map +0 -1
- package/dist/types/test-utils/TestUtils.d.ts +0 -4
- package/dist/types/test-utils/TestUtils.d.ts.map +0 -1
- package/dist/types/utils.d.ts +0 -20
- package/dist/types/utils.d.ts.map +0 -1
- package/public/docs/hf-samples/beach.jpg +0 -0
- package/public/docs/hf-samples/cats.jpg +0 -0
- package/public/docs/hf-samples/corgi.jpg +0 -0
- package/public/docs/hf-samples/portrait.jpg +0 -0
- package/public/docs/hf-samples/scene.jpg +0 -0
- package/public/docs/hf-samples/singer.jpg +0 -0
- package/public/docs/shader-samples/color.jpg +0 -0
- package/public/docs/shader-samples/depth.png +0 -0
- package/public/docs/shader-samples/impact.jpg +0 -0
- package/public/docs/shader-samples/video.webm +0 -0
- package/scripts/build-addons.mjs +0 -26
- package/scripts/gen-shader-depth.mjs +0 -85
- package/scripts/gen-shader-harris-video.mjs +0 -17
- package/scripts/gen-shader-harris-video.py +0 -84
- package/scripts/hf-vendor.mjs +0 -154
- package/src/addons/3d.ts +0 -5
- package/src/addons/hugging-face-infer.ts +0 -11
- package/src/addons/shader.ts +0 -5
- package/src/addons/webgpu.ts +0 -15
- package/src/core/components/functional/3d/3d.md +0 -128
- package/src/core/components/functional/3d/3d.spec.ts +0 -171
- package/src/core/components/functional/3d/3d.ts +0 -186
- package/src/core/components/functional/3d/asset.ts +0 -22
- package/src/core/components/functional/3d/boot.ts +0 -77
- package/src/core/components/functional/3d/constants.ts +0 -100
- package/src/core/components/functional/3d/demo-content.ts +0 -45
- package/src/core/components/functional/3d/ensure.ts +0 -99
- package/src/core/components/functional/3d/form-bind.ts +0 -40
- package/src/core/components/functional/3d/form-fields.ts +0 -80
- package/src/core/components/functional/3d/form-params.ts +0 -97
- package/src/core/components/functional/3d/frame-capture.spec.ts +0 -72
- package/src/core/components/functional/3d/frame-capture.ts +0 -135
- package/src/core/components/functional/3d/frame-source.ts +0 -30
- package/src/core/components/functional/3d/gl.ts +0 -35
- package/src/core/components/functional/3d/life.ts +0 -101
- package/src/core/components/functional/3d/load.ts +0 -129
- package/src/core/components/functional/3d/ops.ts +0 -126
- package/src/core/components/functional/3d/opts.ts +0 -16
- package/src/core/components/functional/3d/orbit.ts +0 -185
- package/src/core/components/functional/3d/out-publish.ts +0 -140
- package/src/core/components/functional/3d/parse.ts +0 -95
- package/src/core/components/functional/3d/pick.ts +0 -92
- package/src/core/components/functional/3d/playback.ts +0 -70
- package/src/core/components/functional/3d/pointer.ts +0 -79
- package/src/core/components/functional/3d/props.ts +0 -50
- package/src/core/components/functional/3d/publisher-listen.ts +0 -13
- package/src/core/components/functional/3d/reload.ts +0 -94
- package/src/core/components/functional/3d/runtime.ts +0 -148
- package/src/core/components/functional/3d/scene-runtime.ts +0 -9
- package/src/core/components/functional/3d/snapshot.ts +0 -73
- package/src/core/components/functional/3d/styles.ts +0 -38
- package/src/core/components/functional/3d/tune.ts +0 -72
- package/src/core/components/functional/3d/types.ts +0 -150
- package/src/core/components/functional/3d/updated.ts +0 -70
- package/src/core/components/functional/3d/view.ts +0 -63
- package/src/core/components/functional/3d/wire.ts +0 -65
- package/src/core/components/functional/infer/hugging-face/hf-cache.ts +0 -198
- package/src/core/components/functional/infer/hugging-face/hf-config.ts +0 -188
- package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +0 -350
- package/src/core/components/functional/infer/hugging-face/hf-controller.ts +0 -622
- package/src/core/components/functional/infer/hugging-face/hf-engine.ts +0 -178
- package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +0 -99
- package/src/core/components/functional/infer/hugging-face/hf-input.ts +0 -218
- package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +0 -76
- package/src/core/components/functional/infer/hugging-face/hf-registry.ts +0 -457
- package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +0 -124
- package/src/core/components/functional/infer/hugging-face/hf-schema.ts +0 -390
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +0 -147
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +0 -381
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +0 -304
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +0 -202
- package/src/core/components/functional/infer/hugging-face/hugging-face.ts +0 -282
- package/src/core/components/functional/infer/hugging-face/types.ts +0 -325
- package/src/core/components/functional/shader/gl-runtime.ts +0 -963
- package/src/core/components/functional/shader/shader.md +0 -209
- package/src/core/components/functional/shader/shader.spec.ts +0 -368
- package/src/core/components/functional/shader/shader.ts +0 -1624
- package/src/core/components/functional/shader/shadertoy-prelude.ts +0 -52
- package/src/core/components/functional/shader/types.ts +0 -448
- package/src/core/components/functional/webgpu/canvas2d-fallback.ts +0 -125
- package/src/core/components/functional/webgpu/form-bind.ts +0 -116
- package/src/core/components/functional/webgpu/gl-fallback.ts +0 -158
- package/src/core/components/functional/webgpu/gpu-runtime.ts +0 -349
- package/src/core/components/functional/webgpu/helpers.ts +0 -47
- package/src/core/components/functional/webgpu/out-frame.ts +0 -137
- package/src/core/components/functional/webgpu/particles-runtime.ts +0 -426
- package/src/core/components/functional/webgpu/pointer.ts +0 -85
- package/src/core/components/functional/webgpu/types.ts +0 -96
- package/src/core/components/functional/webgpu/webgpu.md +0 -75
- package/src/core/components/functional/webgpu/webgpu.spec.ts +0 -141
- package/src/core/components/functional/webgpu/webgpu.ts +0 -668
- package/src/core/components/functional/webgpu/wgsl-prelude.ts +0 -81
- package/src/core/utils/mediaRef.spec.ts +0 -121
- package/src/core/utils/mediaRef.ts +0 -193
- package/src/core/utils/similarity.spec.ts +0 -34
- package/src/core/utils/similarity.ts +0 -54
- package/src/docs/_getting-started/cdn-addons.md +0 -73
- package/src/docs/_misc/visual-stack.md +0 -65
- package/src/docs/example/docs-3d-demos.ts +0 -8
- package/src/docs/example/docs-3d-form.ts +0 -95
- package/src/docs/example/docs-3d-orbit.ts +0 -44
- package/src/docs/example/docs-3d-out.ts +0 -56
- package/src/docs/example/docs-3d-shader-live-demo.ts +0 -98
- package/src/docs/example/docs-3d-shared.ts +0 -15
- package/src/docs/example/docs-harris-webgpu-demo.ts +0 -482
- package/src/docs/example/docs-hugging-face-demos.ts +0 -516
- package/src/docs/example/docs-shader-demos.ts +0 -357
- package/src/docs/example/docs-visual-stack-demo.ts +0 -394
- package/src/docs/example/docs-webgpu-demo.ts +0 -77
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hf-schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/functional/infer/hugging-face/hf-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAMrD,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IACE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DjC,CAAC;AAMH,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B;AAsED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,OAAO,GACf,aAAa,CAAC,CAAC,CAAC,CAsBlB;AAED,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyC7E"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code exécuté DANS le worker. C'est le seul endroit qui touche Transformers.js.
|
|
3
|
-
*
|
|
4
|
-
* `hfWorkerMain` est volontairement autonome (aucune référence à un import ni
|
|
5
|
-
* à une variable extérieure) : il est sérialisé tel quel (`toString()`) pour
|
|
6
|
-
* construire le worker « blob » du mode `cdn`. Ne pas y utiliser d'import,
|
|
7
|
-
* de helper externe ni de variable de module.
|
|
8
|
-
*
|
|
9
|
-
* Pour un worker construit par l'application (mode `worker`), utiliser
|
|
10
|
-
* `serveHuggingFaceWorker` :
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* // hf.worker.ts (dans l'application)
|
|
14
|
-
* import * as transformers from "@huggingface/transformers";
|
|
15
|
-
* import { serveHuggingFaceWorker } from "@supersoniks/concorde/core/components/functional/infer/hugging-face/hf-worker-runtime";
|
|
16
|
-
* serveHuggingFaceWorker(transformers);
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
/** Sous-ensemble de Transformers.js utilisé par le worker (typage structurel, sans import). */
|
|
20
|
-
export type HfLibrary = {
|
|
21
|
-
pipeline: (task: string, model: string, options?: Record<string, unknown>) => Promise<unknown>;
|
|
22
|
-
env: Record<string, unknown> & {
|
|
23
|
-
backends?: {
|
|
24
|
-
onnx?: {
|
|
25
|
-
wasm?: Record<string, unknown>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
ModelRegistry?: {
|
|
30
|
-
get_pipeline_files?: (task: string, model: string, options?: Record<string, unknown>) => Promise<string[]>;
|
|
31
|
-
get_file_metadata?: (model: string, file: string, options?: Record<string, unknown>) => Promise<{
|
|
32
|
-
exists: boolean;
|
|
33
|
-
size?: number;
|
|
34
|
-
fromCache?: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
is_pipeline_cached?: (task: string, model: string, options?: Record<string, unknown>) => Promise<boolean>;
|
|
37
|
-
clear_pipeline_cache?: (task: string, model: string, options?: Record<string, unknown>) => Promise<unknown>;
|
|
38
|
-
};
|
|
39
|
-
LogLevel?: Record<string, unknown>;
|
|
40
|
-
};
|
|
41
|
-
/** Portée minimale d'un worker (évite de dépendre de la lib TS « webworker »). */
|
|
42
|
-
export type HfWorkerScope = {
|
|
43
|
-
postMessage: (message: unknown, transfer?: Transferable[]) => void;
|
|
44
|
-
addEventListener: (type: "message", listener: (event: {
|
|
45
|
-
data: unknown;
|
|
46
|
-
}) => void) => void;
|
|
47
|
-
};
|
|
48
|
-
export declare function hfWorkerMain(lib: HfLibrary, scope: HfWorkerScope): void;
|
|
49
|
-
/** À appeler dans un worker construit par l'application (mode `runtime.source = "worker"`). */
|
|
50
|
-
export declare function serveHuggingFaceWorker(lib: HfLibrary): void;
|
|
51
|
-
/**
|
|
52
|
-
* Source d'un worker module autonome qui importe Transformers.js depuis une
|
|
53
|
-
* URL figée (mode `runtime.source = "cdn"`).
|
|
54
|
-
*/
|
|
55
|
-
export declare function buildHfWorkerSource(libraryUrl: string): string;
|
|
56
|
-
//# sourceMappingURL=hf-worker-runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hf-worker-runtime.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,+FAA+F;AAC/F,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAC7B,QAAQ,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;aAAE,CAAA;SAAE,CAAC;KAC1D,CAAC;IACF,aAAa,CAAC,EAAE;QACd,kBAAkB,CAAC,EAAE,CACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QACvB,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QACtE,kBAAkB,CAAC,EAAE,CACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,oBAAoB,CAAC,EAAE,CACrB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;KACvB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACnE,gBAAgB,EAAE,CAChB,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,KACzC,IAAI,CAAC;CACX,CAAC;AAGF,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAyRvE;AAGD,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAuB9D"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import { type HfLoadPolicy, type HfTrigger } from "./hf-config";
|
|
3
|
-
type ElementOptions = {
|
|
4
|
-
/** Champs à concaténer quand l'entrée est une liste d'objets : `"label + edito.sub_title"`. */
|
|
5
|
-
text?: string | string[];
|
|
6
|
-
/** Options d'appel du pipeline (validées selon la tâche du modèle). */
|
|
7
|
-
call?: Record<string, unknown>;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* `sonic-hugging-face-infer` : 1 entrée → modèle Hugging Face (Transformers.js,
|
|
11
|
-
* dans un worker) → 1 sortie (readonly).
|
|
12
|
-
*
|
|
13
|
-
* Le composant ne contient pas le moteur : Transformers.js n'est chargé qu'au
|
|
14
|
-
* premier besoin, dans un worker, depuis une version figée (voir
|
|
15
|
-
* `configureHuggingFace`). Le modèle doit figurer dans la liste blanche de
|
|
16
|
-
* l'application (attribut `model` = alias).
|
|
17
|
-
*/
|
|
18
|
-
export default class SonicHuggingFaceInfer extends LitElement {
|
|
19
|
-
static styles: import("lit").CSSResult[];
|
|
20
|
-
/** Alias du modèle (liste blanche de l'application). */
|
|
21
|
-
model: string;
|
|
22
|
-
/** DataProvider d'entrée : texte, liste de textes, liste d'objets (+ `options.text`), image, audio. */
|
|
23
|
-
inputProvider: string;
|
|
24
|
-
/** DataProvider de sortie (readonly). */
|
|
25
|
-
outputProvider: string;
|
|
26
|
-
/** DataProvider optionnel où publier le statut détaillé (taille, progression, backend…). */
|
|
27
|
-
statusProvider: string;
|
|
28
|
-
/** Mode `demand` : chaque changement de ce DataProvider lance un calcul. */
|
|
29
|
-
triggerProvider: string;
|
|
30
|
-
/** DataProvider (ex. case à cocher d'un formulaire) qui donne le consentement. */
|
|
31
|
-
consentProvider: string;
|
|
32
|
-
/** `{"text": …, "call": {…}}` */
|
|
33
|
-
options: ElementOptions | null;
|
|
34
|
-
/** `auto` | `idle` | `visible` | `first-use` | `consent` | `manual` */
|
|
35
|
-
load: HfLoadPolicy | "";
|
|
36
|
-
/** `mutation` | `demand` */
|
|
37
|
-
trigger: HfTrigger | "";
|
|
38
|
-
debounce: number | null;
|
|
39
|
-
/** Valeur publiée quand l'entrée est vide (JSON). Défaut : `null`. */
|
|
40
|
-
emptyValue: unknown;
|
|
41
|
-
/** Entrée invalide : garder le dernier résultat (`keep`) ou vider (`clear`). */
|
|
42
|
-
onInvalid: "keep" | "clear";
|
|
43
|
-
maxItems: number | null;
|
|
44
|
-
maxChars: number | null;
|
|
45
|
-
timeoutMs: number | null;
|
|
46
|
-
/** Mémoriser les résultats en IndexedDB (ex. embeddings d'un catalogue stable). */
|
|
47
|
-
persistResults: boolean;
|
|
48
|
-
/** Durée de validité des résultats mémorisés (ms). */
|
|
49
|
-
resultsTtl: number | null;
|
|
50
|
-
private handle;
|
|
51
|
-
private offConfig;
|
|
52
|
-
private visible;
|
|
53
|
-
connectedCallback(): void;
|
|
54
|
-
disconnectedCallback(): void;
|
|
55
|
-
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
56
|
-
/** Calcule maintenant sur l'entrée courante. */
|
|
57
|
-
run(): Promise<void>;
|
|
58
|
-
/** Charge le modèle maintenant. */
|
|
59
|
-
loadModel(): Promise<void>;
|
|
60
|
-
accept(): void;
|
|
61
|
-
decline(): void;
|
|
62
|
-
private whenVisible;
|
|
63
|
-
private restart;
|
|
64
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
67
|
-
//# sourceMappingURL=hugging-face-infer.d.ts.map
|
package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hugging-face-infer.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/functional/infer/hugging-face/hugging-face-infer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAuB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAQrF,KAAK,cAAc,GAAG;IACpB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AAEH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,UAAU;IAC3D,MAAM,CAAC,MAAM,4BAMX;IAEF,wDAAwD;IAExD,KAAK,SAAM;IAEX,uGAAuG;IAE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 -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API publique de l'inférence Hugging Face dans Concorde.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { configureHuggingFace, defineHuggingFaceModels } from "@supersoniks/concorde/hugging-face";
|
|
6
|
-
*
|
|
7
|
-
* export const hf = configureHuggingFace({
|
|
8
|
-
* runtime: { source: "cdn", version: "4.3.0", url: "https://cdn…/hf-transformers/4.3.0/transformers.min.js" },
|
|
9
|
-
* models: defineHuggingFaceModels({
|
|
10
|
-
* "multilingual-mini": {
|
|
11
|
-
* task: "feature-extraction",
|
|
12
|
-
* repo: "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
|
|
13
|
-
* revision: "<sha>",
|
|
14
|
-
* options: { dtype: "q8" },
|
|
15
|
-
* defaults: { pooling: "mean", normalize: true },
|
|
16
|
-
* },
|
|
17
|
-
* }),
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
* hf.infer({ model: "multilingual-mini", input: events, text: (e) => e.label, output: eventVectors });
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* Ce module ne contient pas Transformers.js (uniquement des `import type`).
|
|
24
|
-
*/
|
|
25
|
-
import type { DataProviderKey } from "@supersoniks/concorde/core/utils/dataProviderKey";
|
|
26
|
-
import { type HfLoadPolicy, type HfModels, type HfTrigger, type HuggingFaceConfig } from "./hf-config";
|
|
27
|
-
import { type HfInferHandle, type HfInferStatus } from "./hf-controller";
|
|
28
|
-
import { type HfTextExtractor } from "./hf-input";
|
|
29
|
-
import { type HfModelState, type HuggingFaceRegistry } from "./hf-registry";
|
|
30
|
-
import type { HF_CALL_OPTION_SCHEMAS } from "./hf-schema";
|
|
31
|
-
import { HF_TASK_INPUT_KIND, type HfCallOptions, type HfExact, type HfOutput, type HfSingleInput, type HfTask } from "./types";
|
|
32
|
-
export type HfAlias<M extends HfModels> = Extract<keyof M, string>;
|
|
33
|
-
export type HfTaskOf<M extends HfModels, A extends HfAlias<M>> = M[A]["task"];
|
|
34
|
-
type DefaultsOf<M extends HfModels, A extends HfAlias<M>> = M[A] extends {
|
|
35
|
-
defaults: infer D;
|
|
36
|
-
} ? D : unknown;
|
|
37
|
-
/** Options effectives = défauts du modèle, surchargés par ceux de l'appel. */
|
|
38
|
-
export type HfMergedOptions<D, C> = Omit<D, keyof C> & C;
|
|
39
|
-
/** Entrée acceptée pour une tâche : un élément, une liste, ou (texte) des objets + `text`. */
|
|
40
|
-
export type HfAcceptedInput<T extends HfTask> = HfSingleInput<T> | readonly HfSingleInput<T>[] | (T extends HfTask ? (typeof HF_TASK_INPUT_KIND)[T] extends "text" ? object | readonly object[] : never : never) | null | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Clés d'options d'une tâche, lues sur la table de schémas (identique aux
|
|
43
|
-
* clés de `HfCallOptions<T>`, garanti à la compilation par `hf-schema.ts`) :
|
|
44
|
-
* beaucoup moins coûteux à évaluer pour le compilateur.
|
|
45
|
-
*/
|
|
46
|
-
type HfCallKeys<T extends HfTask> = Record<keyof (typeof HF_CALL_OPTION_SCHEMAS)[T], unknown>;
|
|
47
|
-
type ItemOf<In> = In extends readonly (infer E)[] ? E : In;
|
|
48
|
-
type IsMany<In> = [NonNullable<In>] extends [readonly unknown[]] ? true : false;
|
|
49
|
-
/** Sortie publiée pour un alias, des options d'appel et un type d'entrée. */
|
|
50
|
-
export type HfResult<M extends HfModels, A extends HfAlias<M>, C, In> = HfOutput<HfTaskOf<M, A>, HfMergedOptions<DefaultsOf<M, A>, C>, IsMany<In>>;
|
|
51
|
-
export type HfInferOptions<M extends HfModels, A extends HfAlias<M>, In, C> = {
|
|
52
|
-
model: A;
|
|
53
|
-
input: DataProviderKey<In> | string;
|
|
54
|
-
output: DataProviderKey<HfResult<M, A, C, In> | null> | string;
|
|
55
|
-
status?: DataProviderKey<HfInferStatus | null> | string;
|
|
56
|
-
triggerProvider?: DataProviderKey<unknown> | string;
|
|
57
|
-
consentProvider?: DataProviderKey<unknown> | string;
|
|
58
|
-
/** Pour une entrée faite d'objets : chemins (`"label + edito.sub_title"`) ou fonction typée. */
|
|
59
|
-
text?: HfTextExtractor<NonNullable<ItemOf<In>>>;
|
|
60
|
-
/** Options d'appel de la tâche du modèle (surchargent `defaults`). */
|
|
61
|
-
call?: HfExact<C, HfCallKeys<HfTaskOf<M, A>>>;
|
|
62
|
-
load?: HfLoadPolicy;
|
|
63
|
-
trigger?: HfTrigger;
|
|
64
|
-
debounceMs?: number;
|
|
65
|
-
emptyValue?: HfResult<M, A, C, In> | null;
|
|
66
|
-
onInvalid?: "keep" | "clear";
|
|
67
|
-
maxItems?: number;
|
|
68
|
-
maxChars?: number;
|
|
69
|
-
timeoutMs?: number;
|
|
70
|
-
persistResults?: boolean;
|
|
71
|
-
resultsTtlMs?: number;
|
|
72
|
-
};
|
|
73
|
-
export type HuggingFace<M extends HfModels> = {
|
|
74
|
-
readonly models: M;
|
|
75
|
-
/** Relie des DataProviders à un modèle (équivalent TypeScript de l'élément). */
|
|
76
|
-
infer<A extends HfAlias<M>, In extends HfAcceptedInput<HfTaskOf<M, A>>, const C extends HfCallOptions<HfTaskOf<M, A>> = Record<never, never>>(options: HfInferOptions<M, A, In, C>): HfInferHandle;
|
|
77
|
-
/**
|
|
78
|
-
* Calcul ponctuel (sans DataProvider). À utiliser comme `compute` de
|
|
79
|
-
* `derive()` pour des dérivations à plusieurs entrées.
|
|
80
|
-
* Résout `null` si l'entrée est vide.
|
|
81
|
-
*/
|
|
82
|
-
run<A extends HfAlias<M>, In extends HfAcceptedInput<HfTaskOf<M, A>>, const C extends HfCallOptions<HfTaskOf<M, A>> = Record<never, never>>(model: A, input: In, call?: HfExact<C, HfCallKeys<HfTaskOf<M, A>>>, options?: {
|
|
83
|
-
text?: HfTextExtractor<NonNullable<ItemOf<In>>>;
|
|
84
|
-
load?: HfLoadPolicy;
|
|
85
|
-
timeoutMs?: number;
|
|
86
|
-
}): Promise<HfResult<M, A, C, In> | null>;
|
|
87
|
-
/** Charge un modèle maintenant (préchargement, politique `manual`). */
|
|
88
|
-
load(model: HfAlias<M>): Promise<void>;
|
|
89
|
-
state(model: HfAlias<M>): HfModelState;
|
|
90
|
-
subscribe(model: HfAlias<M>, listener: (state: HfModelState) => void): () => void;
|
|
91
|
-
accept(model: HfAlias<M>): void;
|
|
92
|
-
decline(model: HfAlias<M>): void;
|
|
93
|
-
revokeConsent(model: HfAlias<M>): void;
|
|
94
|
-
/** Supprime un modèle du cache du navigateur. */
|
|
95
|
-
clearModel(model: HfAlias<M>): Promise<void>;
|
|
96
|
-
/** Supprime tous les modèles, le WASM et les résultats mémorisés. */
|
|
97
|
-
clearAll(): Promise<void>;
|
|
98
|
-
readonly registry: HuggingFaceRegistry;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Configure l'inférence pour la page (à appeler une fois, au démarrage).
|
|
102
|
-
* Rend une API typée par la liste blanche de modèles.
|
|
103
|
-
*/
|
|
104
|
-
export declare function configureHuggingFace<const M extends HfModels>(config: HuggingFaceConfig<M>): HuggingFace<M>;
|
|
105
|
-
export { defineHuggingFaceModels, HF_DEFAULTS } from "./hf-config";
|
|
106
|
-
export type { HfDefaults, HfLoadPolicy, HfModelDefinition, HfModels, HfRuntime, HfTrigger, HuggingFaceConfig, } from "./hf-config";
|
|
107
|
-
export type { HfInferHandle, HfInferState, HfInferStatus } from "./hf-controller";
|
|
108
|
-
export type { HfModelPhase, HfModelState } from "./hf-registry";
|
|
109
|
-
export { HfError } from "./hf-registry";
|
|
110
|
-
export type { HfEngine } from "./hf-engine";
|
|
111
|
-
export { HfWorkerEngine, HfEngineError } from "./hf-engine";
|
|
112
|
-
export { hfCallOptionsJsonSchema, validateCallOptions, HF_CALL_OPTION_SCHEMAS } from "./hf-schema";
|
|
113
|
-
export { HF_TASKS } from "./types";
|
|
114
|
-
export type { HfCallOptions, HfEmbedding, HfItemOutput, HfOutput, HfSingleInput, HfTask, } from "./types";
|
|
115
|
-
export { cosine, rankBySimilarity } from "@supersoniks/concorde/core/utils/similarity";
|
|
116
|
-
//# sourceMappingURL=hugging-face.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hugging-face.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/functional/infer/hugging-face/hugging-face.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAEL,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,MAAM,EACZ,MAAM,SAAS,CAAC;AAMjB,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;IACvE,QAAQ,EAAE,MAAM,CAAC,CAAC;CACnB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,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,MAAM,GACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types de `sonic-hugging-face-infer`, dérivés des types publiés par
|
|
3
|
-
* Transformers.js (`@huggingface/transformers`).
|
|
4
|
-
*
|
|
5
|
-
* Rien n'est recopié à la main : entrées, options d'appel et sorties sont
|
|
6
|
-
* calculées à partir des signatures des pipelines de la version figée de la
|
|
7
|
-
* bibliothèque. Une montée de version qui change une signature fait échouer la
|
|
8
|
-
* compilation ici (et dans `schema.ts`), pas en production.
|
|
9
|
-
*
|
|
10
|
-
* Uniquement des `import type` : ce fichier n'ajoute aucun octet au bundle.
|
|
11
|
-
*/
|
|
12
|
-
import type { AllTasks, DataType, DeviceType, PretrainedModelOptions, RawImage, Tensor } from "@huggingface/transformers";
|
|
13
|
-
/**
|
|
14
|
-
* Tâches autorisées. Volontairement sans LLM libre (`text-generation`,
|
|
15
|
-
* `summarization`, `text2text-generation`, `text-to-audio`) : trop lourd /
|
|
16
|
-
* peu fiable dans un navigateur. `image-to-text` (légende) est autorisé :
|
|
17
|
-
* modèles vision→texte courts et bornés (`max_new_tokens`).
|
|
18
|
-
*/
|
|
19
|
-
export declare const HF_TASKS: readonly ["feature-extraction", "text-classification", "zero-shot-classification", "translation", "token-classification", "fill-mask", "question-answering", "image-classification", "zero-shot-image-classification", "object-detection", "zero-shot-object-detection", "image-feature-extraction", "image-segmentation", "depth-estimation", "background-removal", "image-to-text", "audio-classification", "automatic-speech-recognition"];
|
|
20
|
-
export type HfTask = (typeof HF_TASKS)[number];
|
|
21
|
-
/**
|
|
22
|
-
* Arguments positionnels supplémentaires (entre l'entrée et les options) que
|
|
23
|
-
* certains pipelines exigent. Côté Concorde, ils sont passés dans les options
|
|
24
|
-
* d'appel sous ce nom, puis replacés à la bonne position par le worker.
|
|
25
|
-
*/
|
|
26
|
-
export declare const HF_POSITIONAL_ARGS: {
|
|
27
|
-
readonly "zero-shot-classification": "candidate_labels";
|
|
28
|
-
readonly "zero-shot-image-classification": "candidate_labels";
|
|
29
|
-
readonly "zero-shot-object-detection": "candidate_labels";
|
|
30
|
-
readonly "question-answering": "context";
|
|
31
|
-
};
|
|
32
|
-
type PositionalTask = keyof typeof HF_POSITIONAL_ARGS;
|
|
33
|
-
/** Famille de l'entrée, utile pour la validation à l'exécution. */
|
|
34
|
-
export declare const HF_TASK_INPUT_KIND: {
|
|
35
|
-
readonly "feature-extraction": "text";
|
|
36
|
-
readonly "text-classification": "text";
|
|
37
|
-
readonly "zero-shot-classification": "text";
|
|
38
|
-
readonly translation: "text";
|
|
39
|
-
readonly "token-classification": "text";
|
|
40
|
-
readonly "fill-mask": "text";
|
|
41
|
-
readonly "question-answering": "text";
|
|
42
|
-
readonly "image-classification": "image";
|
|
43
|
-
readonly "zero-shot-image-classification": "image";
|
|
44
|
-
readonly "object-detection": "image";
|
|
45
|
-
readonly "zero-shot-object-detection": "image";
|
|
46
|
-
readonly "image-feature-extraction": "image";
|
|
47
|
-
readonly "image-segmentation": "image";
|
|
48
|
-
readonly "depth-estimation": "image";
|
|
49
|
-
readonly "background-removal": "image";
|
|
50
|
-
readonly "image-to-text": "image";
|
|
51
|
-
readonly "audio-classification": "audio";
|
|
52
|
-
readonly "automatic-speech-recognition": "audio";
|
|
53
|
-
};
|
|
54
|
-
export type HfInputKind = (typeof HF_TASK_INPUT_KIND)[HfTask];
|
|
55
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
56
|
-
/** Appelle (au niveau des types) un pipeline générique avec des arguments donnés. */
|
|
57
|
-
type CallWith<F, A extends unknown[]> = F extends (...args: A) => infer R ? R : never;
|
|
58
|
-
/**
|
|
59
|
-
* Retire la variante « lot » d'une union `X | X[]` renvoyée par les pipelines
|
|
60
|
-
* (qui acceptent une entrée seule ou un tableau).
|
|
61
|
-
*/
|
|
62
|
-
type DropBatch<M, All> = M extends readonly (infer E)[] ? [E] extends [All] ? never : M : M;
|
|
63
|
-
type Single<R> = DropBatch<R, R>;
|
|
64
|
-
/** Retire les signatures d'index (`[key: string]: unknown`). */
|
|
65
|
-
type RemoveIndex<T> = {
|
|
66
|
-
[K in keyof T as string extends K ? never : number extends K ? never : symbol extends K ? never : K]: T[K];
|
|
67
|
-
};
|
|
68
|
-
type JsonPrimitive = string | number | boolean | null | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Vrai si la valeur peut traverser `postMessage` ET être stockée dans un
|
|
71
|
-
* DataProvider sans perte : primitives, tableaux et objets simples. Les classes
|
|
72
|
-
* (Tensor, streamers, caches…) portent des méthodes et sont exclues ; `any`
|
|
73
|
-
* aussi (non typable, donc non validable).
|
|
74
|
-
*/
|
|
75
|
-
type IsJsonSafe<V> = IsAny<V> extends true ? false : false extends (V extends unknown ? IsJsonSafeOne<V> : never) ? false : true;
|
|
76
|
-
type IsJsonSafeOne<V> = [V] extends [JsonPrimitive] ? true : [V] extends [readonly (infer E)[]] ? IsJsonSafe<E> : [V] extends [object] ? [V] extends [(...args: never[]) => unknown] ? false : HasMethod<V> extends true ? false : AllJsonSafe<V> : false;
|
|
77
|
-
type HasMethod<V> = true extends {
|
|
78
|
-
[K in keyof V]-?: NonNullable<V[K]> extends (...args: never[]) => unknown ? true : false;
|
|
79
|
-
}[keyof V] ? true : false;
|
|
80
|
-
type AllJsonSafe<V> = false extends {
|
|
81
|
-
[K in keyof V]-?: IsJsonSafe<Exclude<V[K], undefined>>;
|
|
82
|
-
}[keyof V] ? false : true;
|
|
83
|
-
/** Ne garde que les options sérialisables. */
|
|
84
|
-
export type JsonSafeOptions<O> = {
|
|
85
|
-
[K in keyof RemoveIndex<O> as IsJsonSafe<Exclude<RemoveIndex<O>[K], undefined>> extends true ? K : never]?: Exclude<RemoveIndex<O>[K], undefined>;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Refuse les clés en trop même quand `C` est inféré (paramètre générique) :
|
|
89
|
-
* les clés absentes de `O` deviennent `never`.
|
|
90
|
-
*/
|
|
91
|
-
export type HfExact<C, O> = {
|
|
92
|
-
[K in keyof C]: K extends keyof O ? C[K] : never;
|
|
93
|
-
};
|
|
94
|
-
type Pipe<T extends HfTask> = AllTasks[T];
|
|
95
|
-
type PipeParams<T extends HfTask> = Parameters<Pipe<T>>;
|
|
96
|
-
/** Types d'entrée transférables vers un worker (pas de canvas, pas de RawImage). */
|
|
97
|
-
type Transferable = string | Blob | Float32Array | Float64Array;
|
|
98
|
-
/**
|
|
99
|
-
* Entrée d'UN élément pour une tâche (texte, URL/Blob d'image, audio),
|
|
100
|
-
* dérivée du premier paramètre du pipeline.
|
|
101
|
-
*/
|
|
102
|
-
export type HfSingleInput<T extends HfTask> = Extract<Single<PipeParams<T>[0]>, Transferable>;
|
|
103
|
-
/** Dernier paramètre (options) du pipeline, brut. */
|
|
104
|
-
type RawCallOptions<T extends HfTask> = T extends PositionalTask ? NonNullable<PipeParams<T>[2]> : NonNullable<PipeParams<T>[1]>;
|
|
105
|
-
/** Argument positionnel supplémentaire, replié dans les options. */
|
|
106
|
-
type PositionalOptions<T extends HfTask> = T extends PositionalTask ? {
|
|
107
|
-
[K in (typeof HF_POSITIONAL_ARGS)[T]]: Extract<PipeParams<T>[1], string | readonly string[]>;
|
|
108
|
-
} : unknown;
|
|
109
|
-
/**
|
|
110
|
-
* Options d'appel d'une tâche : options sérialisables du pipeline, plus
|
|
111
|
-
* l'argument positionnel éventuel (`candidate_labels`, `context`).
|
|
112
|
-
*/
|
|
113
|
-
export type HfCallOptions<T extends HfTask> = JsonSafeOptions<RawCallOptions<T>> & Partial<PositionalOptions<T>>;
|
|
114
|
-
/** Options d'appel nécessaires (l'argument positionnel est requis au moment de l'appel). */
|
|
115
|
-
export type HfRequiredCallKeys<T extends HfTask> = T extends PositionalTask ? (typeof HF_POSITIONAL_ARGS)[T] : never;
|
|
116
|
-
/** Tableaux imbriqués de nombres, forme `tolist()` d'un Tensor. */
|
|
117
|
-
export type HfNumberTree = number | HfNumberTree[];
|
|
118
|
-
/** Image produite par un pipeline, transportée hors du worker. */
|
|
119
|
-
export type HfSerializedImage = {
|
|
120
|
-
width: number;
|
|
121
|
-
height: number;
|
|
122
|
-
channels: number;
|
|
123
|
-
/** PNG encodé dans le worker (`RawImage.toBlob()`). */
|
|
124
|
-
blob: Blob;
|
|
125
|
-
/**
|
|
126
|
-
* ObjectURL créé côté main thread à la publication (`attachMediaUrls`).
|
|
127
|
-
* Chaînable vers `sonic-shader` / `sonic-webgpu` / `sonic-jsonata` (`$mediaUrl`) sans colle JS.
|
|
128
|
-
*/
|
|
129
|
-
url?: string;
|
|
130
|
-
};
|
|
131
|
-
/** Conversion des valeurs non sérialisables (Tensor, RawImage) en données simples. */
|
|
132
|
-
export type HfSerialized<V> = V extends Tensor ? HfNumberTree : V extends RawImage ? HfSerializedImage : V extends readonly (infer E)[] ? HfSerialized<E>[] : V extends Blob ? V : V extends object ? {
|
|
133
|
-
[K in keyof V]: HfSerialized<V[K]>;
|
|
134
|
-
} : V;
|
|
135
|
-
/** Sortie brute du pipeline pour UNE entrée, avec des options données. */
|
|
136
|
-
type RawItemOutput<T extends HfTask, O> = Single<Awaited<T extends PositionalTask ? CallWith<Pipe<T>, [HfSingleInput<T>, PipeParams<T>[1], O]> : CallWith<Pipe<T>, [HfSingleInput<T>, O]>>>;
|
|
137
|
-
/**
|
|
138
|
-
* Un embedding : vecteur quand un `pooling` est demandé, matrice
|
|
139
|
-
* jetons × dimensions sinon (défaut de Transformers.js : `pooling: "none"`).
|
|
140
|
-
*/
|
|
141
|
-
export type HfEmbedding<O> = O extends {
|
|
142
|
-
pooling: infer P;
|
|
143
|
-
} ? [P] extends ["none" | undefined] ? number[][] : number[] : number[][];
|
|
144
|
-
/**
|
|
145
|
-
* Sortie pour UNE entrée. `feature-extraction` et `image-feature-extraction`
|
|
146
|
-
* renvoient un Tensor : il est aplati pour l'élément (première dimension
|
|
147
|
-
* « lot » retirée).
|
|
148
|
-
*/
|
|
149
|
-
export type HfItemOutput<T extends HfTask, O = HfCallOptions<T>> = T extends "feature-extraction" ? HfEmbedding<O> : T extends "image-feature-extraction" ? number[] : HfSerialized<RawItemOutput<T, O>>;
|
|
150
|
-
/**
|
|
151
|
-
* Sortie publiée : un résultat pour une entrée seule, une liste ALIGNÉE sur
|
|
152
|
-
* l'entrée (avec `null` pour les éléments inexploitables) pour une liste.
|
|
153
|
-
*/
|
|
154
|
-
export type HfOutput<T extends HfTask, O, Many extends boolean> = Many extends true ? (HfItemOutput<T, O> | null)[] : HfItemOutput<T, O>;
|
|
155
|
-
/** Exécution demandée. `webgpu` et `wasm` sont les seuls pertinents dans un navigateur. */
|
|
156
|
-
export type HfDevice = Extract<DeviceType, "webgpu" | "wasm">;
|
|
157
|
-
export type HfDataType = DataType;
|
|
158
|
-
/**
|
|
159
|
-
* Options passées à `pipeline(task, repo, options)`, dérivées de
|
|
160
|
-
* `PretrainedModelOptions`. `progress_callback` est géré par Concorde,
|
|
161
|
-
* `revision` est obligatoire au niveau du modèle, `device` est remplacé par
|
|
162
|
-
* la liste ordonnée `devices`, `cache_dir` / `local_files_only` n'ont pas de
|
|
163
|
-
* sens dans un navigateur.
|
|
164
|
-
*/
|
|
165
|
-
export type HfLoadOptions = Omit<PretrainedModelOptions, "progress_callback" | "revision" | "device" | "cache_dir" | "local_files_only">;
|
|
166
|
-
export {};
|
|
167
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/functional/infer/hugging-face/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,sBAAsB,EACtB,QAAQ,EACR,MAAM,EACP,MAAM,2BAA2B,CAAC;AAMnC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,+aAmB2B,CAAC;AAEjD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKqB,CAAC;AAErD,KAAK,cAAc,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEtD,mEAAmE;AACnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAmBgC,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAM9D,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,qFAAqF;AACrF,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC,GACrE,CAAC,GACD,KAAK,CAAC;AAEV;;;GAGG;AACH,KAAK,SAAS,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACnD,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GACf,KAAK,GACL,CAAC,GACH,CAAC,CAAC;AACN,KAAK,MAAM,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEjC,gEAAgE;AAChE,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAA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S,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAMzE,2FAA2F;AAC3F,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,sBAAsB,EACpB,mBAAmB,GACnB,UAAU,GACV,QAAQ,GACR,WAAW,GACX,kBAAkB,CACrB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
/**
|
|
3
|
-
* Adaptateur JSONata de `derive` : 1 entrée → expression → 1 sortie (readonly).
|
|
4
|
-
*
|
|
5
|
-
* Contexte d’évaluation :
|
|
6
|
-
* - `$input` = contenu de `inputProvider`
|
|
7
|
-
* - champs du `formDataProvider` optionnel = `$top`, `$roast`, …
|
|
8
|
-
*/
|
|
9
|
-
export default class SonicJsonata extends LitElement {
|
|
10
|
-
static styles: import("lit").CSSResult[];
|
|
11
|
-
/** DataProvider d’entrée (source). */
|
|
12
|
-
inputProvider: string;
|
|
13
|
-
/** DataProvider de sortie (agrégat, readonly). */
|
|
14
|
-
outputProvider: string;
|
|
15
|
-
/**
|
|
16
|
-
* Form / variables optionnelles (`$top`, `$roast`, …).
|
|
17
|
-
* Même id que le `formDataProvider` du formulaire — recalcule sans refetch.
|
|
18
|
-
*/
|
|
19
|
-
formDataProvider: string;
|
|
20
|
-
expression: string;
|
|
21
|
-
outputSchema: Record<string, unknown> | null;
|
|
22
|
-
private handle;
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
disconnectedCallback(): void;
|
|
25
|
-
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
26
|
-
private restart;
|
|
27
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=jsonata.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonata.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/jsonata/jsonata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAY5C;;;;;;GAMG;AAEH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,4BAMX;IAEF,sCAAsC;IAEtC,aAAa,SAAM;IAEnB,kDAAkD;IAElD,cAAc,SAAM;IAEpB;;;OAGG;IAEH,gBAAgB,SAAM;IAGtB,UAAU,SAAM;IAGhB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAQ;IAEpD,OAAO,CAAC,MAAM,CAA6B;IAE3C,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAM5B,SAAS,CAAC,OAAO,CACf,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAC9C,IAAI;IAYP,OAAO,CAAC,OAAO;IAmCf,MAAM;CAGP"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { LitElement, nothing, PropertyValues } from "lit";
|
|
2
|
-
import "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
3
|
-
import "@supersoniks/concorde/core/components/functional/subscriber/subscriber";
|
|
4
|
-
import { DirectiveResult } from "lit/directive.js";
|
|
5
|
-
import { TemplateContentDirective } from "lit/directives/template-content.js";
|
|
6
|
-
import { TemplateResult } from "lit";
|
|
7
|
-
import { LoaderMode } from "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
8
|
-
/**
|
|
9
|
-
* ### List boucle sur sa propriété "props" et crée des éléments a partir des données en bouclant également sur ses templates.
|
|
10
|
-
*
|
|
11
|
-
* Extends mixins : Fetcher, [Subscriber](./?path=/docs/miscallenous-🔔-subscriber--page)
|
|
12
|
-
*
|
|
13
|
-
* * Si le composant possède un attribut *fetch*, il charge un contenu via un appel d'api web.<br>
|
|
14
|
-
* Voir [fetcher](./?path=/docs/core-components-functional-fetch--basic) pour la configuration des autres attributs.
|
|
15
|
-
* * Chaque élément créé est englobé dans un objet [Subscriber](./?path=/docs/miscallenous-🔔-subscriber--page).<br>
|
|
16
|
-
* Un dataProvider y est associé a l'adresse suivante *dataProvider-de-la-liste$/*index-de-la-ligne-courante*
|
|
17
|
-
* Les données de la ligne sont donc disponible pour les élements internes (subscribers)
|
|
18
|
-
* * Lors du chargement un objet loader inline est affiché.
|
|
19
|
-
* * Si le résultat de la requête est un objet, il est imbriqué dans un tableau pour garantir le fonctionnement.<br>
|
|
20
|
-
* Cependant, si l'attribut `extractValues` est présent, les valeurs des propriétés de l'objet sont mises dans dans un tableau pour le rendu.
|
|
21
|
-
* * La propriété _metadata_ est ajoutés à la donnée de chaque item. Elle contient les informations suivantes :
|
|
22
|
-
* * key : l'index de l'item dans la liste
|
|
23
|
-
* * even : true si l'index est pair
|
|
24
|
-
* * odd : true si l'index est impair
|
|
25
|
-
* * onlyChild : true si la liste ne contient qu'un seul item
|
|
26
|
-
* * firstChild : true si l'item est le premier de la liste
|
|
27
|
-
* * lastChild : true si l'item est le dernier de la liste
|
|
28
|
-
* * Si la liste ne contient aucun item, le template "no-item" est utilisé si il est défini.
|
|
29
|
-
* * On peut appler la methode invalidate() sur son publishe pour declencher le rechargement des données
|
|
30
|
-
* *
|
|
31
|
-
*/
|
|
32
|
-
export type ListItemMetadata = {
|
|
33
|
-
key?: string | number;
|
|
34
|
-
even?: boolean;
|
|
35
|
-
odd?: boolean;
|
|
36
|
-
onlyChild?: boolean;
|
|
37
|
-
firstChild?: boolean;
|
|
38
|
-
lastChild?: boolean;
|
|
39
|
-
};
|
|
40
|
-
export type ListItems = (item: any, metadata: ListItemMetadata) => DirectiveResult;
|
|
41
|
-
declare const List_base: {
|
|
42
|
-
new (...args: import("../../../_types/types").MixinArgsType[]): {
|
|
43
|
-
api: import("../../../utils/api").default | null;
|
|
44
|
-
key: string;
|
|
45
|
-
isFirstLoad: boolean;
|
|
46
|
-
isLoading: boolean;
|
|
47
|
-
lazyLoad?: boolean;
|
|
48
|
-
iObserver: IntersectionObserver | null;
|
|
49
|
-
isFetchEnabled: boolean;
|
|
50
|
-
fetchedData: any;
|
|
51
|
-
_endPoint: string;
|
|
52
|
-
noErrorsRecordings: boolean;
|
|
53
|
-
get props(): import("../../../utils/api").ResultTypeInterface | null;
|
|
54
|
-
set props(value: import("../../../utils/api").ResultTypeInterface | null);
|
|
55
|
-
get endPoint(): string;
|
|
56
|
-
set endPoint(value: string);
|
|
57
|
-
requestId: number;
|
|
58
|
-
refetchEveryMs: number;
|
|
59
|
-
refetchTimeOutId?: ReturnType<typeof setTimeout>;
|
|
60
|
-
_isFetching: boolean;
|
|
61
|
-
_mustRefetch: boolean;
|
|
62
|
-
handleStartFetching(): "fetching" | "okToFetch";
|
|
63
|
-
handleEndFetching(): void;
|
|
64
|
-
refetch(): Promise<void>;
|
|
65
|
-
_fetchData(): Promise<void>;
|
|
66
|
-
onInvalidate?: (() => void) | undefined;
|
|
67
|
-
disconnectedCallback(): void;
|
|
68
|
-
connectedCallback(): void;
|
|
69
|
-
lazyLoadPlaceHolder?: HTMLSpanElement;
|
|
70
|
-
handleLazyLoad(): void;
|
|
71
|
-
onIntersection(entries: IntersectionObserverEntry[]): void;
|
|
72
|
-
propertyMap: object;
|
|
73
|
-
isConnected: boolean;
|
|
74
|
-
children: HTMLCollection;
|
|
75
|
-
appendChild(node: Node): Node;
|
|
76
|
-
getAncestorAttributeValue(attributeName: string): string;
|
|
77
|
-
hasAncestorAttribute(attributeName: string): boolean;
|
|
78
|
-
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
79
|
-
publisher: import("../../../_types/types").TypeAndRecordOfType<import("../../../_types/types").PublisherInterface<PropsType>>;
|
|
80
|
-
dataProvider: string | null;
|
|
81
|
-
noShadowDom: string | null;
|
|
82
|
-
debug: HTMLElement | null;
|
|
83
|
-
defferedDebug: boolean | null;
|
|
84
|
-
displayContents: boolean;
|
|
85
|
-
shadowRoot?: ShadowRoot;
|
|
86
|
-
shouldRenderLazy: boolean;
|
|
87
|
-
dispatchEvent(event: Event): void;
|
|
88
|
-
setAttribute(name: string, value: string): void;
|
|
89
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
90
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
91
|
-
removeAttribute(name: string): void;
|
|
92
|
-
initPublisher(): void;
|
|
93
|
-
getApiConfiguration(): import("../../../utils/api").APIConfiguration;
|
|
94
|
-
requestUpdate(): void;
|
|
95
|
-
getAttribute(name: string): string;
|
|
96
|
-
hasAttribute(attributeName: string): boolean;
|
|
97
|
-
getBoundingClientRect(): DOMRect;
|
|
98
|
-
};
|
|
99
|
-
} & (new (...args: import("../../../_types/types").MixinArgsType[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & (new (...args: import("../../../_types/types").MixinArgsType[]) => import("@supersoniks/concorde/core/mixins/TemplatesContainer").TemplatesContainerInterface) & typeof LitElement;
|
|
100
|
-
export declare class List extends List_base {
|
|
101
|
-
itemPropertyMap?: object;
|
|
102
|
-
/**
|
|
103
|
-
* La propriété templateKey contient le nom de la propriété qui sera utilisé pour identifier le template à utiliser dans la donnée de la ligne.
|
|
104
|
-
* Par exemple si templateIdentifier = "name" et que la donnée de la ligne est {name: "myTemplate" ... }, alors le template possédant l'attribut data-value="myTemplate" sera utilisé.
|
|
105
|
-
*/
|
|
106
|
-
templateKey: string;
|
|
107
|
-
/**
|
|
108
|
-
* La propriété idKey est utilisé repérer les lignes de manière unique si pour les item de la liste item[this.idKey] n'existe pas, alors l'index est utilisé
|
|
109
|
-
*/
|
|
110
|
-
idKey: string;
|
|
111
|
-
loader?: LoaderMode | true | "";
|
|
112
|
-
limit: number;
|
|
113
|
-
offset: number;
|
|
114
|
-
_items?: ListItems;
|
|
115
|
-
get items(): ListItems | undefined;
|
|
116
|
-
set items(value: ListItems);
|
|
117
|
-
noItems?: () => DirectiveResult;
|
|
118
|
-
skeleton?: () => DirectiveResult;
|
|
119
|
-
separator?: () => DirectiveResult;
|
|
120
|
-
connectedCallback(): void;
|
|
121
|
-
disconnectedCallback(): void;
|
|
122
|
-
renderLoader(): typeof nothing | TemplateResult<1>;
|
|
123
|
-
renderSkeleton(): DirectiveResult<import("lit-html/directive.js").DirectiveClass>;
|
|
124
|
-
renderSeparator(): DirectiveResult<import("lit-html/directive.js").DirectiveClass>;
|
|
125
|
-
renderLoadingState(): DirectiveResult<typeof TemplateContentDirective> | TemplateResult;
|
|
126
|
-
renderNoResultState(): TemplateResult<1>;
|
|
127
|
-
formatProps(): (import("../../../_types/types").CoreJSType[] & {
|
|
128
|
-
_sonic_http_response_?: Response;
|
|
129
|
-
text?: string;
|
|
130
|
-
}) | null;
|
|
131
|
-
protected updated(_changedProperties: PropertyValues): void;
|
|
132
|
-
getAllRenderableElements(root: any): any[];
|
|
133
|
-
getDisplayContentsSize(element: any): {
|
|
134
|
-
width: number;
|
|
135
|
-
height: number;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* loadingsize is computed after rendering a loading / doesnt require one but will be used on other renderings
|
|
139
|
-
*/
|
|
140
|
-
loadingSize: {
|
|
141
|
-
width: number;
|
|
142
|
-
height: number;
|
|
143
|
-
};
|
|
144
|
-
render(): TemplateResult<1>;
|
|
145
|
-
private handleProgrammaticTemplates;
|
|
146
|
-
renderContent(): DirectiveResult<import("lit-html/directive.js").DirectiveClass>;
|
|
147
|
-
}
|
|
148
|
-
export {};
|
|
149
|
-
//# sourceMappingURL=list.d.ts.map
|