@supersoniks/concorde 4.9.95 → 4.9.97-visual-stack.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 +34 -17
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +1 -1
- package/concorde-3d.es.js +1 -1
- package/concorde-core.bundle.js +147 -147
- package/concorde-core.es.js +4375 -4282
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-shader.bundle.js +1 -1
- package/concorde-shader.es.js +1 -1
- package/concorde-webgpu.bundle.js +1 -1
- package/concorde-webgpu.es.js +1 -1
- package/dist/concorde-3d.bundle.js +3911 -0
- package/dist/concorde-3d.es.js +32635 -0
- package/dist/concorde-core.bundle.js +147 -147
- package/dist/concorde-core.es.js +4375 -4282
- package/dist/concorde-hugging-face-infer.bundle.js +32 -0
- package/dist/concorde-hugging-face-infer.es.js +2952 -0
- package/dist/concorde-shader.bundle.js +105 -0
- package/dist/concorde-shader.es.js +7982 -0
- package/dist/concorde-webgpu.bundle.js +296 -0
- package/dist/concorde-webgpu.es.js +8268 -0
- 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 +6 -0
- package/dist/js/addons/3d.js.map +1 -0
- package/dist/js/addons/hugging-face-infer.js +8 -0
- package/dist/js/addons/hugging-face-infer.js.map +1 -0
- package/dist/js/addons/shader.js +6 -0
- package/dist/js/addons/shader.js.map +1 -0
- package/dist/js/addons/webgpu.js +7 -0
- package/dist/js/addons/webgpu.js.map +1 -0
- package/dist/js/components.js +12 -0
- package/dist/js/components.js.map +1 -0
- package/dist/js/concorde-loaded.js +5 -0
- package/dist/js/concorde-loaded.js.map +1 -0
- package/dist/js/core/_types/endpoint.js +5 -0
- package/dist/js/core/_types/endpoint.js.map +1 -0
- package/dist/js/core/_types/key.js +2 -0
- package/dist/js/core/_types/key.js.map +1 -0
- package/dist/js/core/_types/types.js +3 -0
- package/dist/js/core/_types/types.js.map +1 -0
- package/dist/js/core/components/functional/3d/3d.js +151 -0
- package/dist/js/core/components/functional/3d/3d.js.map +1 -0
- package/dist/js/core/components/functional/3d/asset.js +20 -0
- package/dist/js/core/components/functional/3d/asset.js.map +1 -0
- package/dist/js/core/components/functional/3d/boot.js +47 -0
- package/dist/js/core/components/functional/3d/boot.js.map +1 -0
- package/dist/js/core/components/functional/3d/constants.js +88 -0
- package/dist/js/core/components/functional/3d/constants.js.map +1 -0
- package/dist/js/core/components/functional/3d/demo-content.js +38 -0
- package/dist/js/core/components/functional/3d/demo-content.js.map +1 -0
- package/dist/js/core/components/functional/3d/ensure.js +73 -0
- package/dist/js/core/components/functional/3d/ensure.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-bind.js +25 -0
- package/dist/js/core/components/functional/3d/form-bind.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-fields.js +76 -0
- package/dist/js/core/components/functional/3d/form-fields.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-params.js +67 -0
- package/dist/js/core/components/functional/3d/form-params.js.map +1 -0
- package/dist/js/core/components/functional/3d/frame-capture.js +108 -0
- package/dist/js/core/components/functional/3d/frame-capture.js.map +1 -0
- package/dist/js/core/components/functional/3d/gl.js +34 -0
- package/dist/js/core/components/functional/3d/gl.js.map +1 -0
- package/dist/js/core/components/functional/3d/life.js +55 -0
- package/dist/js/core/components/functional/3d/life.js.map +1 -0
- package/dist/js/core/components/functional/3d/load.js +109 -0
- package/dist/js/core/components/functional/3d/load.js.map +1 -0
- package/dist/js/core/components/functional/3d/ops.js +78 -0
- package/dist/js/core/components/functional/3d/ops.js.map +1 -0
- package/dist/js/core/components/functional/3d/opts.js +2 -0
- package/dist/js/core/components/functional/3d/opts.js.map +1 -0
- package/dist/js/core/components/functional/3d/orbit.js +136 -0
- package/dist/js/core/components/functional/3d/orbit.js.map +1 -0
- package/dist/js/core/components/functional/3d/out-publish.js +103 -0
- package/dist/js/core/components/functional/3d/out-publish.js.map +1 -0
- package/dist/js/core/components/functional/3d/parse.js +95 -0
- package/dist/js/core/components/functional/3d/parse.js.map +1 -0
- package/dist/js/core/components/functional/3d/pick.js +62 -0
- package/dist/js/core/components/functional/3d/pick.js.map +1 -0
- package/dist/js/core/components/functional/3d/playback.js +56 -0
- package/dist/js/core/components/functional/3d/playback.js.map +1 -0
- package/dist/js/core/components/functional/3d/pointer.js +58 -0
- package/dist/js/core/components/functional/3d/pointer.js.map +1 -0
- package/dist/js/core/components/functional/3d/props.js +105 -0
- package/dist/js/core/components/functional/3d/props.js.map +1 -0
- package/dist/js/core/components/functional/3d/publisher-listen.js +6 -0
- package/dist/js/core/components/functional/3d/publisher-listen.js.map +1 -0
- package/dist/js/core/components/functional/3d/reload.js +60 -0
- package/dist/js/core/components/functional/3d/reload.js.map +1 -0
- package/dist/js/core/components/functional/3d/runtime.js +116 -0
- package/dist/js/core/components/functional/3d/runtime.js.map +1 -0
- package/dist/js/core/components/functional/3d/scene-runtime.js +6 -0
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -0
- package/dist/js/core/components/functional/3d/snapshot.js +47 -0
- package/dist/js/core/components/functional/3d/snapshot.js.map +1 -0
- package/dist/js/core/components/functional/3d/styles.js +38 -0
- package/dist/js/core/components/functional/3d/styles.js.map +1 -0
- package/dist/js/core/components/functional/3d/tune.js +42 -0
- package/dist/js/core/components/functional/3d/tune.js.map +1 -0
- package/dist/js/core/components/functional/3d/types.js +8 -0
- package/dist/js/core/components/functional/3d/types.js.map +1 -0
- package/dist/js/core/components/functional/3d/updated.js +58 -0
- package/dist/js/core/components/functional/3d/updated.js.map +1 -0
- package/dist/js/core/components/functional/3d/view.js +40 -0
- package/dist/js/core/components/functional/3d/view.js.map +1 -0
- package/dist/js/core/components/functional/3d/wire.js +34 -0
- package/dist/js/core/components/functional/3d/wire.js.map +1 -0
- package/dist/js/core/components/functional/date/date.js +272 -0
- package/dist/js/core/components/functional/date/date.js.map +1 -0
- package/dist/js/core/components/functional/example/example.js +44 -0
- package/dist/js/core/components/functional/example/example.js.map +1 -0
- package/dist/js/core/components/functional/fetch/fetch.js +79 -0
- package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
- package/dist/js/core/components/functional/functional.js +18 -0
- package/dist/js/core/components/functional/functional.js.map +1 -0
- package/dist/js/core/components/functional/if/if.js +39 -0
- package/dist/js/core/components/functional/if/if.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +183 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +50 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +460 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +116 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +170 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +2 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +367 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +288 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +309 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +213 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +76 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/types.js +62 -0
- package/dist/js/core/components/functional/infer/hugging-face/types.js.map +1 -0
- package/dist/js/core/components/functional/jsonata/jsonata.js +119 -0
- package/dist/js/core/components/functional/jsonata/jsonata.js.map +1 -0
- package/dist/js/core/components/functional/list/list.js +341 -0
- package/dist/js/core/components/functional/list/list.js.map +1 -0
- package/dist/js/core/components/functional/mix/mix.js +103 -0
- package/dist/js/core/components/functional/mix/mix.js.map +1 -0
- package/dist/js/core/components/functional/queue/queue.js +450 -0
- package/dist/js/core/components/functional/queue/queue.js.map +1 -0
- package/dist/js/core/components/functional/router/redirect.js +54 -0
- package/dist/js/core/components/functional/router/redirect.js.map +1 -0
- package/dist/js/core/components/functional/router/router.js +179 -0
- package/dist/js/core/components/functional/router/router.js.map +1 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
- package/dist/js/core/components/functional/sdui/default-library.json +108 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
- package/dist/js/core/components/functional/sdui/sdui.js +271 -0
- package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
- package/dist/js/core/components/functional/sdui/types.js +2 -0
- package/dist/js/core/components/functional/sdui/types.js.map +1 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js +603 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -0
- package/dist/js/core/components/functional/shader/shader.js +1593 -0
- package/dist/js/core/components/functional/shader/shader.js.map +1 -0
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +48 -0
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -0
- package/dist/js/core/components/functional/shader/types.js +179 -0
- package/dist/js/core/components/functional/shader/types.js.map +1 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
- package/dist/js/core/components/functional/states/states.js +172 -0
- package/dist/js/core/components/functional/states/states.js.map +1 -0
- package/dist/js/core/components/functional/submit/submit.js +284 -0
- package/dist/js/core/components/functional/submit/submit.js.map +1 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
- package/dist/js/core/components/functional/translation/translation.js +28 -0
- package/dist/js/core/components/functional/translation/translation.js.map +1 -0
- package/dist/js/core/components/functional/value/value.js +28 -0
- package/dist/js/core/components/functional/value/value.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +117 -0
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/form-bind.js +92 -0
- package/dist/js/core/components/functional/webgpu/form-bind.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/gl-fallback.js +135 -0
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +305 -0
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/helpers.js +44 -0
- package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/out-frame.js +117 -0
- package/dist/js/core/components/functional/webgpu/out-frame.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/particles-runtime.js +407 -0
- package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/pointer.js +56 -0
- package/dist/js/core/components/functional/webgpu/pointer.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/types.js +24 -0
- package/dist/js/core/components/functional/webgpu/types.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/webgpu.js +667 -0
- package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +77 -0
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +1 -0
- package/dist/js/core/components/ui/_css/scroll.js +27 -0
- package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
- package/dist/js/core/components/ui/_css/shadow.js +22 -0
- package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
- package/dist/js/core/components/ui/_css/size.js +36 -0
- package/dist/js/core/components/ui/_css/size.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +92 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +213 -0
- package/dist/js/core/components/ui/alert/alert.js.map +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
- package/dist/js/core/components/ui/badge/badge.js +199 -0
- package/dist/js/core/components/ui/badge/badge.js.map +1 -0
- package/dist/js/core/components/ui/button/button.js +697 -0
- package/dist/js/core/components/ui/button/button.js.map +1 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
- package/dist/js/core/components/ui/captcha/captcha.js +167 -0
- package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
- package/dist/js/core/components/ui/card/card-footer.js +26 -0
- package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header.js +79 -0
- package/dist/js/core/components/ui/card/card-header.js.map +1 -0
- package/dist/js/core/components/ui/card/card-main.js +26 -0
- package/dist/js/core/components/ui/card/card-main.js.map +1 -0
- package/dist/js/core/components/ui/card/card.js +67 -0
- package/dist/js/core/components/ui/card/card.js.map +1 -0
- package/dist/js/core/components/ui/divider/divider.js +200 -0
- package/dist/js/core/components/ui/divider/divider.js.map +1 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
- package/dist/js/core/components/ui/form/css/form-control.js +393 -0
- package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
- package/dist/js/core/components/ui/form/input/input.js +316 -0
- package/dist/js/core/components/ui/form/input/input.js.map +1 -0
- package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
- package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
- package/dist/js/core/components/ui/form/radio/radio.js +63 -0
- package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
- package/dist/js/core/components/ui/form/select/select.js +323 -0
- package/dist/js/core/components/ui/form/select/select.js.map +1 -0
- package/dist/js/core/components/ui/form/switch/switch.js +90 -0
- package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
- package/dist/js/core/components/ui/group/group.js +128 -0
- package/dist/js/core/components/ui/group/group.js.map +1 -0
- package/dist/js/core/components/ui/icon/icon.js +145 -0
- package/dist/js/core/components/ui/icon/icon.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.js +184 -0
- package/dist/js/core/components/ui/icon/icons.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.json +1 -0
- package/dist/js/core/components/ui/image/image.js +160 -0
- package/dist/js/core/components/ui/image/image.js.map +1 -0
- package/dist/js/core/components/ui/link/link.js +125 -0
- package/dist/js/core/components/ui/link/link.js.map +1 -0
- package/dist/js/core/components/ui/loader/loader.js +106 -0
- package/dist/js/core/components/ui/loader/loader.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
- package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu-item.js +35 -0
- package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu.js +436 -0
- package/dist/js/core/components/ui/menu/menu.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
- package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-close.js +56 -0
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-content.js +27 -0
- package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-title.js +35 -0
- package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
- package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal.js +568 -0
- package/dist/js/core/components/ui/modal/modal.js.map +1 -0
- package/dist/js/core/components/ui/pop/pop.js +337 -0
- package/dist/js/core/components/ui/pop/pop.js.map +1 -0
- package/dist/js/core/components/ui/progress/progress.js +164 -0
- package/dist/js/core/components/ui/progress/progress.js.map +1 -0
- package/dist/js/core/components/ui/table/table-caption.js +29 -0
- package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tbody.js +41 -0
- package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
- package/dist/js/core/components/ui/table/table-td.js +69 -0
- package/dist/js/core/components/ui/table/table-td.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
- package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
- package/dist/js/core/components/ui/table/table-th.js +80 -0
- package/dist/js/core/components/ui/table/table-th.js.map +1 -0
- package/dist/js/core/components/ui/table/table-thead.js +26 -0
- package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tr.js +67 -0
- package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
- package/dist/js/core/components/ui/table/table.js +106 -0
- package/dist/js/core/components/ui/table/table.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme.js +150 -0
- package/dist/js/core/components/ui/theme/theme.js.map +1 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +379 -0
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast.js +269 -0
- package/dist/js/core/components/ui/toast/toast.js.map +1 -0
- package/dist/js/core/components/ui/toast/types.js +2 -0
- package/dist/js/core/components/ui/toast/types.js.map +1 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/js/core/components/ui/ui.js +41 -0
- package/dist/js/core/components/ui/ui.js.map +1 -0
- package/dist/js/core/core.js +14 -0
- package/dist/js/core/core.js.map +1 -0
- package/dist/js/core/decorators/Subscriber.js +10 -0
- package/dist/js/core/decorators/Subscriber.js.map +1 -0
- package/dist/js/core/decorators/api.js +806 -0
- package/dist/js/core/decorators/api.js.map +1 -0
- package/dist/js/core/decorators/lifecycle.js +67 -0
- package/dist/js/core/decorators/lifecycle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
- package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
- package/dist/js/core/decorators/subscriber/bind.js +150 -0
- package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
- package/dist/js/core/decorators/subscriber/common.js +44 -0
- package/dist/js/core/decorators/subscriber/common.js.map +1 -0
- package/dist/js/core/decorators/subscriber/derive.js +60 -0
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
- package/dist/js/core/decorators/subscriber/handle.js +22 -0
- package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
- package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publish.js +108 -0
- package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
- package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
- package/dist/js/core/directives/DataProvider.js +127 -0
- package/dist/js/core/directives/DataProvider.js.map +1 -0
- package/dist/js/core/directives/Wording.js +221 -0
- package/dist/js/core/directives/Wording.js.map +1 -0
- package/dist/js/core/mixins/Fetcher.js +325 -0
- package/dist/js/core/mixins/Fetcher.js.map +1 -0
- package/dist/js/core/mixins/FormCheckable.js +313 -0
- package/dist/js/core/mixins/FormCheckable.js.map +1 -0
- package/dist/js/core/mixins/FormElement.js +304 -0
- package/dist/js/core/mixins/FormElement.js.map +1 -0
- package/dist/js/core/mixins/FormInput.js +82 -0
- package/dist/js/core/mixins/FormInput.js.map +1 -0
- package/dist/js/core/mixins/Subscriber.js +354 -0
- package/dist/js/core/mixins/Subscriber.js.map +1 -0
- package/dist/js/core/mixins/TemplatesContainer.js +70 -0
- package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
- package/dist/js/core/mixins/mixins.js +7 -0
- package/dist/js/core/mixins/mixins.js.map +1 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
- package/dist/js/core/utils/Arrays.js +141 -0
- package/dist/js/core/utils/Arrays.js.map +1 -0
- package/dist/js/core/utils/DataBindObserver.js +265 -0
- package/dist/js/core/utils/DataBindObserver.js.map +1 -0
- package/dist/js/core/utils/Electron.js +14 -0
- package/dist/js/core/utils/Electron.js.map +1 -0
- package/dist/js/core/utils/Format.js +43 -0
- package/dist/js/core/utils/Format.js.map +1 -0
- package/dist/js/core/utils/HTML.js +307 -0
- package/dist/js/core/utils/HTML.js.map +1 -0
- package/dist/js/core/utils/LocationHandler.js +143 -0
- package/dist/js/core/utils/LocationHandler.js.map +1 -0
- package/dist/js/core/utils/Objects.js +111 -0
- package/dist/js/core/utils/Objects.js.map +1 -0
- package/dist/js/core/utils/PublisherProxy.js +970 -0
- package/dist/js/core/utils/PublisherProxy.js.map +1 -0
- package/dist/js/core/utils/SafariScrollGuard.js +384 -0
- package/dist/js/core/utils/SafariScrollGuard.js.map +1 -0
- package/dist/js/core/utils/Utils.js +19 -0
- package/dist/js/core/utils/Utils.js.map +1 -0
- package/dist/js/core/utils/aesCrypto.js +98 -0
- package/dist/js/core/utils/aesCrypto.js.map +1 -0
- package/dist/js/core/utils/api.js +595 -0
- package/dist/js/core/utils/api.js.map +1 -0
- package/dist/js/core/utils/dataProviderKey.js +64 -0
- package/dist/js/core/utils/dataProviderKey.js.map +1 -0
- package/dist/js/core/utils/derive.js +246 -0
- package/dist/js/core/utils/derive.js.map +1 -0
- package/dist/js/core/utils/endpoint.js +74 -0
- package/dist/js/core/utils/endpoint.js.map +1 -0
- package/dist/js/core/utils/jsonataHelpers.js +84 -0
- package/dist/js/core/utils/jsonataHelpers.js.map +1 -0
- package/dist/js/core/utils/jsonataRuntime.js +75 -0
- package/dist/js/core/utils/jsonataRuntime.js.map +1 -0
- package/dist/js/core/utils/mediaRef.js +120 -0
- package/dist/js/core/utils/mediaRef.js.map +1 -0
- package/dist/js/core/utils/route.js +149 -0
- package/dist/js/core/utils/route.js.map +1 -0
- package/dist/js/core/utils/similarity.js +44 -0
- package/dist/js/core/utils/similarity.js.map +1 -0
- package/dist/js/core/utils/url-pattern.js +3 -0
- package/dist/js/core/utils/url-pattern.js.map +1 -0
- package/dist/js/dataprovider.js +2 -0
- package/dist/js/dataprovider.js.map +1 -0
- package/dist/js/decorators.js +43 -0
- package/dist/js/decorators.js.map +1 -0
- package/dist/js/directives.js +30 -0
- package/dist/js/directives.js.map +1 -0
- package/dist/js/index.js +8 -0
- package/dist/js/index.js.map +1 -0
- package/dist/js/mixins.js +23 -0
- package/dist/js/mixins.js.map +1 -0
- package/dist/js/test-utils/TestUtils.js +10 -0
- package/dist/js/test-utils/TestUtils.js.map +1 -0
- package/dist/js/utils.js +46 -0
- package/dist/js/utils.js.map +1 -0
- package/dist/types/addons/3d.d.ts +6 -0
- package/dist/types/addons/3d.d.ts.map +1 -0
- package/dist/types/addons/hugging-face-infer.d.ts +8 -0
- package/dist/types/addons/hugging-face-infer.d.ts.map +1 -0
- package/dist/types/addons/shader.d.ts +6 -0
- package/dist/types/addons/shader.d.ts.map +1 -0
- package/dist/types/addons/webgpu.d.ts +7 -0
- package/dist/types/addons/webgpu.d.ts.map +1 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/components.d.ts.map +1 -0
- package/dist/types/concorde-loaded.d.ts +2 -0
- package/dist/types/concorde-loaded.d.ts.map +1 -0
- package/dist/types/core/_types/endpoint.d.ts +5 -0
- package/dist/types/core/_types/endpoint.d.ts.map +1 -0
- package/dist/types/core/_types/key.d.ts +2 -0
- package/dist/types/core/_types/key.d.ts.map +1 -0
- package/dist/types/core/_types/types.d.ts +28 -0
- package/dist/types/core/_types/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/3d.d.ts +66 -0
- package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/asset.d.ts +12 -0
- package/dist/types/core/components/functional/3d/asset.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/boot.d.ts +23 -0
- package/dist/types/core/components/functional/3d/boot.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/constants.d.ts +43 -0
- package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/demo-content.d.ts +10 -0
- package/dist/types/core/components/functional/3d/demo-content.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts +36 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-bind.d.ts +20 -0
- package/dist/types/core/components/functional/3d/form-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-fields.d.ts +14 -0
- package/dist/types/core/components/functional/3d/form-fields.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-params.d.ts +37 -0
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/frame-capture.d.ts +33 -0
- package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/gl.d.ts +4 -0
- package/dist/types/core/components/functional/3d/gl.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/life.d.ts +41 -0
- package/dist/types/core/components/functional/3d/life.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/load.d.ts +36 -0
- package/dist/types/core/components/functional/3d/load.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/ops.d.ts +48 -0
- package/dist/types/core/components/functional/3d/ops.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/opts.d.ts +16 -0
- package/dist/types/core/components/functional/3d/opts.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/orbit.d.ts +55 -0
- package/dist/types/core/components/functional/3d/orbit.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts +47 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/parse.d.ts +23 -0
- package/dist/types/core/components/functional/3d/parse.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/pick.d.ts +32 -0
- package/dist/types/core/components/functional/3d/pick.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/playback.d.ts +26 -0
- package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/pointer.d.ts +27 -0
- package/dist/types/core/components/functional/3d/pointer.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/props.d.ts +30 -0
- package/dist/types/core/components/functional/3d/props.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts +8 -0
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/reload.d.ts +35 -0
- package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/runtime.d.ts +75 -0
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +6 -0
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/snapshot.d.ts +29 -0
- package/dist/types/core/components/functional/3d/snapshot.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/styles.d.ts +2 -0
- package/dist/types/core/components/functional/3d/styles.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/tune.d.ts +32 -0
- package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/types.d.ts +133 -0
- package/dist/types/core/components/functional/3d/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/updated.d.ts +7 -0
- package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/view.d.ts +25 -0
- package/dist/types/core/components/functional/3d/view.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/wire.d.ts +32 -0
- package/dist/types/core/components/functional/3d/wire.d.ts.map +1 -0
- package/dist/types/core/components/functional/date/date.d.ts +52 -0
- package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
- package/dist/types/core/components/functional/example/example.d.ts +15 -0
- package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
- package/dist/types/core/components/functional/functional.d.ts +18 -0
- package/dist/types/core/components/functional/functional.d.ts.map +1 -0
- package/dist/types/core/components/functional/if/if.d.ts +13 -0
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +21 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +133 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +79 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +43 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +47 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +95 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +77 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +1251 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +56 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +67 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +116 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +167 -0
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts +29 -0
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +1 -0
- package/dist/types/core/components/functional/list/list.d.ts +149 -0
- package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
- package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
- package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
- package/dist/types/core/components/functional/queue/queue.d.ts +93 -0
- package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
- package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/router.d.ts +46 -0
- package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts +148 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
- package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts +71 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/shader.d.ts +274 -0
- package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +6 -0
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/types.d.ts +256 -0
- package/dist/types/core/components/functional/shader/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
- package/dist/types/core/components/functional/states/states.d.ts +42 -0
- package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
- package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
- package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
- package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
- package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
- package/dist/types/core/components/functional/value/value.d.ts +8 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +29 -0
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts +43 -0
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +31 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +53 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +9 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts +29 -0
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +37 -0
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/pointer.d.ts +41 -0
- package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/types.d.ts +75 -0
- package/dist/types/core/components/functional/webgpu/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +123 -0
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +8 -0
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/size.d.ts +3 -0
- package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +3 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
- package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
- package/dist/types/core/components/ui/button/button.d.ts +180 -0
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card.d.ts +13 -0
- package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
- package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
- package/dist/types/core/components/ui/group/group.d.ts +17 -0
- package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icon.d.ts +30 -0
- package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icons.d.ts +13 -0
- package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
- package/dist/types/core/components/ui/image/image.d.ts +16 -0
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
- package/dist/types/core/components/ui/link/link.d.ts +30 -0
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
- package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
- package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
- package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
- package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
- package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
- package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
- package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
- package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table.d.ts +18 -0
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
- package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/types.d.ts +12 -0
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/types/core/components/ui/ui.d.ts +35 -0
- package/dist/types/core/components/ui/ui.d.ts.map +1 -0
- package/dist/types/core/core.d.ts +5 -0
- package/dist/types/core/core.d.ts.map +1 -0
- package/dist/types/core/decorators/Subscriber.d.ts +13 -0
- package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
- package/dist/types/core/decorators/api.d.ts +155 -0
- package/dist/types/core/decorators/api.d.ts.map +1 -0
- package/dist/types/core/decorators/lifecycle.d.ts +19 -0
- package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
- package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/derive.d.ts +30 -0
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
- package/dist/types/core/directives/DataProvider.d.ts +45 -0
- package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
- package/dist/types/core/directives/Wording.d.ts +44 -0
- package/dist/types/core/directives/Wording.d.ts.map +1 -0
- package/dist/types/core/mixins/Fetcher.d.ts +108 -0
- package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
- package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
- package/dist/types/core/mixins/FormElement.d.ts +37 -0
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
- package/dist/types/core/mixins/FormInput.d.ts +79 -0
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
- package/dist/types/core/mixins/Subscriber.d.ts +38 -0
- package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
- package/dist/types/core/mixins/mixins.d.ts +7 -0
- package/dist/types/core/mixins/mixins.d.ts.map +1 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Arrays.d.ts +98 -0
- package/dist/types/core/utils/Arrays.d.ts.map +1 -0
- package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
- package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Electron.d.ts +8 -0
- package/dist/types/core/utils/Electron.d.ts.map +1 -0
- package/dist/types/core/utils/Format.d.ts +13 -0
- package/dist/types/core/utils/Format.d.ts.map +1 -0
- package/dist/types/core/utils/HTML.d.ts +59 -0
- package/dist/types/core/utils/HTML.d.ts.map +1 -0
- package/dist/types/core/utils/LocationHandler.d.ts +48 -0
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
- package/dist/types/core/utils/Objects.d.ts +31 -0
- package/dist/types/core/utils/Objects.d.ts.map +1 -0
- package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
- package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
- package/dist/types/core/utils/SafariScrollGuard.d.ts +36 -0
- package/dist/types/core/utils/SafariScrollGuard.d.ts.map +1 -0
- package/dist/types/core/utils/Utils.d.ts +6 -0
- package/dist/types/core/utils/Utils.d.ts.map +1 -0
- package/dist/types/core/utils/aesCrypto.d.ts +53 -0
- package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
- package/dist/types/core/utils/api.d.ts +173 -0
- package/dist/types/core/utils/api.d.ts.map +1 -0
- package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
- package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
- package/dist/types/core/utils/derive.d.ts +40 -0
- package/dist/types/core/utils/derive.d.ts.map +1 -0
- package/dist/types/core/utils/endpoint.d.ts +37 -0
- package/dist/types/core/utils/endpoint.d.ts.map +1 -0
- package/dist/types/core/utils/jsonataHelpers.d.ts +15 -0
- package/dist/types/core/utils/jsonataHelpers.d.ts.map +1 -0
- package/dist/types/core/utils/jsonataRuntime.d.ts +13 -0
- package/dist/types/core/utils/jsonataRuntime.d.ts.map +1 -0
- package/dist/types/core/utils/mediaRef.d.ts +34 -0
- package/dist/types/core/utils/mediaRef.d.ts.map +1 -0
- package/dist/types/core/utils/route.d.ts +41 -0
- package/dist/types/core/utils/route.d.ts.map +1 -0
- package/dist/types/core/utils/similarity.d.ts +15 -0
- package/dist/types/core/utils/similarity.d.ts.map +1 -0
- package/dist/types/core/utils/url-pattern.d.ts +3 -0
- package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
- package/dist/types/dataprovider.d.ts +2 -0
- package/dist/types/dataprovider.d.ts.map +1 -0
- package/dist/types/decorators.d.ts +30 -0
- package/dist/types/decorators.d.ts.map +1 -0
- package/dist/types/directives.d.ts +21 -0
- package/dist/types/directives.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/mixins.d.ts +204 -0
- package/dist/types/mixins.d.ts.map +1 -0
- package/dist/types/test-utils/TestUtils.d.ts +4 -0
- package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
- package/dist/types/utils.d.ts +20 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/package.json +1780 -382
- 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 +26 -0
- package/scripts/gen-shader-depth.mjs +85 -0
- package/scripts/gen-shader-harris-video.mjs +17 -0
- package/scripts/gen-shader-harris-video.py +84 -0
- package/scripts/hf-vendor.mjs +154 -0
- package/scripts/post-build.mjs +116 -10
- package/scripts/pre-build.mjs +119 -36
- package/scripts/pre-publish.mjs +76 -54
- package/src/addons/3d.ts +5 -0
- package/src/addons/hugging-face-infer.ts +11 -0
- package/src/addons/shader.ts +5 -0
- package/src/addons/webgpu.ts +15 -0
- package/src/core/components/functional/3d/3d.md +118 -0
- package/src/core/components/functional/3d/3d.spec.ts +171 -0
- package/src/core/components/functional/3d/3d.ts +175 -0
- package/src/core/components/functional/3d/asset.ts +22 -0
- package/src/core/components/functional/3d/boot.ts +77 -0
- package/src/core/components/functional/3d/constants.ts +98 -0
- package/src/core/components/functional/3d/demo-content.ts +45 -0
- package/src/core/components/functional/3d/ensure.ts +99 -0
- package/src/core/components/functional/3d/form-bind.ts +40 -0
- package/src/core/components/functional/3d/form-fields.ts +80 -0
- package/src/core/components/functional/3d/form-params.ts +97 -0
- package/src/core/components/functional/3d/frame-capture.spec.ts +72 -0
- package/src/core/components/functional/3d/frame-capture.ts +135 -0
- package/src/core/components/functional/3d/gl.ts +35 -0
- package/src/core/components/functional/3d/life.ts +101 -0
- package/src/core/components/functional/3d/load.ts +129 -0
- package/src/core/components/functional/3d/ops.ts +126 -0
- package/src/core/components/functional/3d/opts.ts +16 -0
- package/src/core/components/functional/3d/orbit.ts +185 -0
- package/src/core/components/functional/3d/out-publish.ts +140 -0
- package/src/core/components/functional/3d/parse.ts +95 -0
- package/src/core/components/functional/3d/pick.ts +92 -0
- package/src/core/components/functional/3d/playback.ts +70 -0
- package/src/core/components/functional/3d/pointer.ts +79 -0
- package/src/core/components/functional/3d/props.ts +50 -0
- package/src/core/components/functional/3d/publisher-listen.ts +13 -0
- package/src/core/components/functional/3d/reload.ts +88 -0
- package/src/core/components/functional/3d/runtime.ts +148 -0
- package/src/core/components/functional/3d/scene-runtime.ts +9 -0
- package/src/core/components/functional/3d/snapshot.ts +73 -0
- package/src/core/components/functional/3d/styles.ts +38 -0
- package/src/core/components/functional/3d/tune.ts +72 -0
- package/src/core/components/functional/3d/types.ts +145 -0
- package/src/core/components/functional/3d/updated.ts +70 -0
- package/src/core/components/functional/3d/view.ts +63 -0
- package/src/core/components/functional/3d/wire.ts +65 -0
- package/src/core/components/functional/infer/hugging-face/hf-cache.ts +198 -0
- package/src/core/components/functional/infer/hugging-face/hf-config.ts +188 -0
- package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +350 -0
- package/src/core/components/functional/infer/hugging-face/hf-controller.ts +622 -0
- package/src/core/components/functional/infer/hugging-face/hf-engine.ts +178 -0
- package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +99 -0
- package/src/core/components/functional/infer/hugging-face/hf-input.ts +218 -0
- package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +76 -0
- package/src/core/components/functional/infer/hugging-face/hf-registry.ts +457 -0
- package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +124 -0
- package/src/core/components/functional/infer/hugging-face/hf-schema.ts +390 -0
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +147 -0
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +381 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +304 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +202 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face.ts +282 -0
- package/src/core/components/functional/infer/hugging-face/types.ts +325 -0
- package/src/core/components/functional/jsonata/jsonata.md +4 -2
- package/src/core/components/functional/sdui/sdui.md +2 -2
- package/src/core/components/functional/sdui/sdui.ts +40 -29
- package/src/core/components/functional/shader/gl-runtime.ts +782 -0
- package/src/core/components/functional/shader/shader.md +207 -0
- package/src/core/components/functional/shader/shader.spec.ts +288 -0
- package/src/core/components/functional/shader/shader.ts +1569 -0
- package/src/core/components/functional/shader/shadertoy-prelude.ts +52 -0
- package/src/core/components/functional/shader/types.ts +446 -0
- package/src/core/components/functional/webgpu/canvas2d-fallback.ts +125 -0
- package/src/core/components/functional/webgpu/form-bind.ts +116 -0
- package/src/core/components/functional/webgpu/gl-fallback.ts +158 -0
- package/src/core/components/functional/webgpu/gpu-runtime.ts +349 -0
- package/src/core/components/functional/webgpu/helpers.ts +47 -0
- package/src/core/components/functional/webgpu/out-frame.ts +137 -0
- package/src/core/components/functional/webgpu/particles-runtime.ts +426 -0
- package/src/core/components/functional/webgpu/pointer.ts +85 -0
- package/src/core/components/functional/webgpu/types.ts +96 -0
- package/src/core/components/functional/webgpu/webgpu.md +75 -0
- package/src/core/components/functional/webgpu/webgpu.spec.ts +141 -0
- package/src/core/components/functional/webgpu/webgpu.ts +659 -0
- package/src/core/components/functional/webgpu/wgsl-prelude.ts +81 -0
- package/src/core/utils/HTML.ts +107 -74
- package/src/core/utils/PublisherProxy.ts +29 -6
- package/src/core/utils/jsonataHelpers.ts +36 -0
- package/src/core/utils/mediaRef.spec.ts +85 -0
- package/src/core/utils/mediaRef.ts +130 -0
- package/src/core/utils/similarity.spec.ts +34 -0
- package/src/core/utils/similarity.ts +54 -0
- package/src/docs/_core-concept/dataFlow.md +2 -0
- package/src/docs/_getting-started/cdn-addons.md +73 -0
- package/src/docs/_getting-started/create-a-component.md +1 -1
- package/src/docs/_misc/visual-stack.md +49 -0
- package/src/docs/components/docs-demo-sources.ts +359 -39
- package/src/docs/docs.ts +6 -0
- package/src/docs/example/docs-3d-demos.ts +8 -0
- package/src/docs/example/docs-3d-form.ts +95 -0
- package/src/docs/example/docs-3d-orbit.ts +44 -0
- package/src/docs/example/docs-3d-out.ts +56 -0
- package/src/docs/example/docs-3d-shared.ts +15 -0
- package/src/docs/example/docs-harris-webgpu-demo.ts +482 -0
- package/src/docs/example/docs-hugging-face-demos.ts +516 -0
- package/src/docs/example/docs-shader-demos.ts +357 -0
- package/src/docs/example/docs-visual-stack-demo.ts +394 -0
- package/src/docs/example/docs-webgpu-demo.ts +77 -0
- package/src/docs/navigation/navigation.ts +25 -0
- package/src/docs/search/docs-search.json +899 -2319
- package/src/tsconfig.json +481 -301
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite/config.js +42 -30
- package/vite.config.mts +51 -12
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
class Arrays {
|
|
2
|
+
/**
|
|
3
|
+
* Vérifie si les deux tableaux ont le même contenu
|
|
4
|
+
*/
|
|
5
|
+
static areEqual(array1, array2) {
|
|
6
|
+
if (array1.length === array2.length) {
|
|
7
|
+
return array1.every((element, index) => {
|
|
8
|
+
if (element === array2[index]) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Fournie une fonction to1D qui transforme un tableau 2D en un tableau 1D par concaténation
|
|
18
|
+
*/
|
|
19
|
+
/*eslint-disable @typescript-eslint/no-explicit-any*/
|
|
20
|
+
static from2d(source) {
|
|
21
|
+
return {
|
|
22
|
+
to1D: () => {
|
|
23
|
+
let result = [];
|
|
24
|
+
source.forEach((elt) => (result = result.concat(elt)));
|
|
25
|
+
return this.from(result);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/*eslint-enable @typescript-eslint/no-explicit-any*/
|
|
30
|
+
/**
|
|
31
|
+
* Fournie des méthodes pour manipuler un tableau
|
|
32
|
+
* A l'écriture cela permet d'avoir des phrases du type:
|
|
33
|
+
* let data = Arrays.from(mon tableau)
|
|
34
|
+
* puis data.everyItem().has().same().value().forkey("key");
|
|
35
|
+
* Peu mieux faire. ou voir a remplacer un jour par loadHash par exemple.
|
|
36
|
+
**/
|
|
37
|
+
/*eslint-disable @typescript-eslint/no-explicit-any*/
|
|
38
|
+
static from(source) {
|
|
39
|
+
return {
|
|
40
|
+
/**Obtenir le tableau final*/
|
|
41
|
+
get: () => source || [],
|
|
42
|
+
everyItem: () => {
|
|
43
|
+
return {
|
|
44
|
+
has: () => {
|
|
45
|
+
return {
|
|
46
|
+
same: () => {
|
|
47
|
+
return {
|
|
48
|
+
value: () => {
|
|
49
|
+
return {
|
|
50
|
+
forKey: (key) => {
|
|
51
|
+
if (source.length < 1)
|
|
52
|
+
return true;
|
|
53
|
+
const first = (source[0] || {})[key];
|
|
54
|
+
return source.every((item) => (item || {})[key] == first);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
value: () => {
|
|
63
|
+
return {
|
|
64
|
+
forKey: (key) => {
|
|
65
|
+
return Arrays.from(source.map((item) => item[key]));
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
copy: () => {
|
|
70
|
+
return {
|
|
71
|
+
fromKey: (atKey) => {
|
|
72
|
+
return {
|
|
73
|
+
toKey: (toKey) => {
|
|
74
|
+
source.forEach((item) => {
|
|
75
|
+
item[toKey] = Array.isArray(item[atKey])
|
|
76
|
+
? [...item[atKey]]
|
|
77
|
+
: typeof item[atKey] === "object" && item[atKey] != null
|
|
78
|
+
? { ...item[atKey] }
|
|
79
|
+
: item[atKey];
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
map: (f) => Arrays.from(source.map(f)),
|
|
89
|
+
filter: (f) => Arrays.from(source.filter(f)),
|
|
90
|
+
find: (f) => source.find(f),
|
|
91
|
+
some: (f) => source.some(f),
|
|
92
|
+
every: (f) => source.every(f),
|
|
93
|
+
group: () => {
|
|
94
|
+
return {
|
|
95
|
+
byKey: (key) => {
|
|
96
|
+
const result = [];
|
|
97
|
+
const keys = new Map();
|
|
98
|
+
for (const item of source) {
|
|
99
|
+
const value = item[key];
|
|
100
|
+
if (!keys.has(value)) {
|
|
101
|
+
const idx = result.length;
|
|
102
|
+
keys.set(value, idx);
|
|
103
|
+
const pushable = { items: [] };
|
|
104
|
+
pushable[key] = value;
|
|
105
|
+
result.push(pushable);
|
|
106
|
+
}
|
|
107
|
+
result[keys.get(value)].items.push(item);
|
|
108
|
+
}
|
|
109
|
+
return Arrays.from(result);
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
without: () => {
|
|
114
|
+
return {
|
|
115
|
+
duplicates: () => {
|
|
116
|
+
return {
|
|
117
|
+
forKey: (key) => {
|
|
118
|
+
const set = [...new Set(source.map((item) => item[key]))];
|
|
119
|
+
return Arrays.from(set.map((value) => source.find((item) => item[key] == value)));
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
itemsIn: (toRemoveFromSource) => {
|
|
124
|
+
return {
|
|
125
|
+
havingSameValue: () => {
|
|
126
|
+
return {
|
|
127
|
+
forKey: (key) => {
|
|
128
|
+
const areValuesDifferentForKey = (compared1, key) => (compared2) => compared1[key] != compared2[key];
|
|
129
|
+
return Arrays.from(source.filter((elt) => toRemoveFromSource.every(areValuesDifferentForKey(elt, key))));
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export default Arrays;
|
|
141
|
+
//# sourceMappingURL=Arrays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arrays.js","sourceRoot":"","sources":["../../../../src/core/utils/Arrays.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM;IACV;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAI,MAAgB,EAAE,MAAgB;QACnD,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC;YACpC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;gBACrC,IAAI,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;oBAC9B,OAAO,IAAI,CAAC;gBACd,CAAC;gBAED,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IAEH,qDAAqD;IACrD,MAAM,CAAC,MAAM,CAAC,MAAW;QACvB,OAAO;YACL,IAAI,EAAE,GAAG,EAAE;gBACT,IAAI,MAAM,GAAe,EAAE,CAAC;gBAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAe,EAAE,EAAE,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACnE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC;SACF,CAAC;IACJ,CAAC;IACD,oDAAoD;IAEpD;;;;;;QAMI;IAEJ,qDAAqD;IACrD,MAAM,CAAC,IAAI,CAAC,MAAW;QACrB,OAAO;YACL,6BAA6B;YAC7B,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,IAAI,EAAE;YACvB,SAAS,EAA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,CAAC;wCACrC,OAAO,MAAM,CAAC,IAAI,CAChB,MAAM,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,EAAE,CACzB,kBAAkB,CAAC,KAAK,CACtB,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,CACnC,CACF,CACF,CAAC;oCACJ,CAAC;iCACF,CAAC;4BACJ,CAAC;yBACF,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CAEF;AACD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import Format from "@supersoniks/concorde/core/utils/Format";
|
|
2
|
+
import HTML from "@supersoniks/concorde/core/utils/HTML";
|
|
3
|
+
import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* En appelant DataBindObserver.observe(HTMLElement) sun un élément html, tout les éléments peuvent être liés à au publisher a l'adresse déterminée parl'attribut dataProvider de l'un de ses ancêtres.
|
|
7
|
+
* Pour cela un MutationObserver est créé pour observer les changements d'attributs de l'élément.
|
|
8
|
+
* On peut alors ecrire ce genre de choses de manière a lier dynamiquement les données du publisher à l'élément html.
|
|
9
|
+
* <img data-bind ::src="$img.avatar" ::title="ucFirst|$img.caption" />
|
|
10
|
+
* <a data-bind ::href="mailto:$email" ::inner-html="$email"></a>
|
|
11
|
+
* Voir la doc de subscriber à ce sujet car il l'utilise par défaut.
|
|
12
|
+
*/
|
|
13
|
+
class DataBindObserver {
|
|
14
|
+
static disable() {
|
|
15
|
+
if (!this.enabled)
|
|
16
|
+
return;
|
|
17
|
+
this.enabled = false;
|
|
18
|
+
Array.from(DataBindObserver.observedElements.keys()).forEach((k) => DataBindObserver.unObserve(k));
|
|
19
|
+
}
|
|
20
|
+
static observe(element) {
|
|
21
|
+
if (!element)
|
|
22
|
+
return;
|
|
23
|
+
if (!DataBindObserver.enabled)
|
|
24
|
+
return;
|
|
25
|
+
if (DataBindObserver.observedElements.has(element))
|
|
26
|
+
return;
|
|
27
|
+
const obs = new MutationObserver(DataBindObserver.onMutation);
|
|
28
|
+
const opt = {};
|
|
29
|
+
opt.childList = true;
|
|
30
|
+
opt.subtree = true;
|
|
31
|
+
opt.attributes = true;
|
|
32
|
+
opt.attributeFilter = ["data-bind"];
|
|
33
|
+
obs.observe(element, opt);
|
|
34
|
+
element
|
|
35
|
+
.querySelectorAll("[data-bind]")
|
|
36
|
+
.forEach((e) => DataBindObserver.addPublisherListeners(e));
|
|
37
|
+
DataBindObserver.observedElements.set(element, obs);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Arrêter à observer un élément html.
|
|
41
|
+
*/
|
|
42
|
+
static unObserve(element) {
|
|
43
|
+
if (!element)
|
|
44
|
+
return;
|
|
45
|
+
const observer = this.observedElements.get(element);
|
|
46
|
+
if (!observer)
|
|
47
|
+
return;
|
|
48
|
+
observer.disconnect();
|
|
49
|
+
element.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.removePublisherListeners(e));
|
|
50
|
+
}
|
|
51
|
+
static onAdded(elt) {
|
|
52
|
+
if (elt.hasAttribute && elt.hasAttribute("data-bind"))
|
|
53
|
+
DataBindObserver.addPublisherListeners(elt);
|
|
54
|
+
if (elt.querySelectorAll)
|
|
55
|
+
elt.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.addPublisherListeners(e));
|
|
56
|
+
else
|
|
57
|
+
elt.childNodes.forEach((elt) => DataBindObserver.onAdded(elt));
|
|
58
|
+
}
|
|
59
|
+
static onRemoved(elt) {
|
|
60
|
+
if (elt.hasAttribute && elt.hasAttribute("data-bind"))
|
|
61
|
+
DataBindObserver.removePublisherListeners(elt);
|
|
62
|
+
if (elt.querySelectorAll)
|
|
63
|
+
elt.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.removePublisherListeners(e));
|
|
64
|
+
else
|
|
65
|
+
elt.childNodes.forEach((elt) => DataBindObserver.onRemoved(elt));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Callback appelé par le MutationObserver
|
|
69
|
+
*/
|
|
70
|
+
static onMutation(list) {
|
|
71
|
+
for (const l of list) {
|
|
72
|
+
switch (l.type) {
|
|
73
|
+
case "attributes":
|
|
74
|
+
DataBindObserver.addPublisherListeners(l.target);
|
|
75
|
+
break;
|
|
76
|
+
case "childList":
|
|
77
|
+
l.addedNodes.forEach((elt) => {
|
|
78
|
+
DataBindObserver.onAdded(elt);
|
|
79
|
+
});
|
|
80
|
+
l.removedNodes.forEach((elt) => {
|
|
81
|
+
DataBindObserver.onRemoved(elt);
|
|
82
|
+
});
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* La liaison avec le publisher supprimée ici.
|
|
89
|
+
*/
|
|
90
|
+
static removePublisherListeners(target) {
|
|
91
|
+
const conf = DataBindObserver.publisherListeners.get(target);
|
|
92
|
+
if (!conf)
|
|
93
|
+
return;
|
|
94
|
+
DataBindObserver.publisherListeners.delete(target);
|
|
95
|
+
conf.forEach((currentConf) => {
|
|
96
|
+
currentConf.publisher?.offAssign(currentConf.onAssign);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* Cette fonction prend l'expression fournie et trouves toutes les occurences du type $.clef1.clef2.clef3 ou $a.b par exemple.
|
|
102
|
+
* Les occurences sont ensuite mises dans un table de la forme [["clef1", "clef2", "clef3"],["a", "b"],...]
|
|
103
|
+
* Note : si une clef contien un point, on peut l'échapper en écrivant par exemple "$a.b.c\.d\.e" pour cibler value dans {a:{b:{"c.d.e":value}}}
|
|
104
|
+
* Propriétés du retour (du type BindedVariablesDescriptor) :
|
|
105
|
+
* * expression : l'expression initiale sans les échappements
|
|
106
|
+
* * variables : le tableau d'"adresses" de variables décrit ci-dessus
|
|
107
|
+
*/
|
|
108
|
+
static getVariablesDescriptor(expression) {
|
|
109
|
+
let variables = expression.match(/(\$(?:\w+\\?\.?)+)/g);
|
|
110
|
+
if (!variables)
|
|
111
|
+
variables = [expression];
|
|
112
|
+
else
|
|
113
|
+
variables = variables.map((v) => v.replace("$", ""));
|
|
114
|
+
variables = variables.filter((v) => v.length > 0);
|
|
115
|
+
return {
|
|
116
|
+
expression: expression.replace("\\", ""), //TODO Supression des échappements uniquement suivis de "."
|
|
117
|
+
variables: variables.map((v) => v.split(/\b\.\b/).map((e) => e.replace("\\", ""))),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Extrait des "DataBindItems" a partir d'un élément html.
|
|
122
|
+
* Pour chaque attribut dont le nom commence par ::, un dataBindItem est créé.
|
|
123
|
+
* * Proriété "propertyToUpdate" du DataBindItem :
|
|
124
|
+
* Le nom de l'attribut modifié en transformant La notation en hyphen ("-") en KamelCase.
|
|
125
|
+
* un cas spécial est créé pour *-html qui retourne *HTML par exemple inner-html devient innerHTML
|
|
126
|
+
* Cela représente la propriété à mettre à jour sur l'élément lors de la modification d'une des variables liées dans le publicheur.
|
|
127
|
+
* * Propriété "bindedVariablesDescriptor" du DataBindItem : voir la fonction getVariablesDescriptor
|
|
128
|
+
*/
|
|
129
|
+
static getDataBindItems(element) {
|
|
130
|
+
if (!("attributes" in element))
|
|
131
|
+
return [];
|
|
132
|
+
return Array.from(element.attributes)
|
|
133
|
+
.filter((attribute) => attribute.name.indexOf("::") == 0)
|
|
134
|
+
.map((e) => {
|
|
135
|
+
const name = e.name.substring(2);
|
|
136
|
+
return {
|
|
137
|
+
propertyToUpdate: name.replace(/-((html)|\w)/g, (match) => match.substring(1).toUpperCase()),
|
|
138
|
+
bindedVariablesDescriptor: DataBindObserver.getVariablesDescriptor(e.value),
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Cette fonction récuperer le (sous) publisher a l'adresse donnée.
|
|
144
|
+
* Si l'une des clef de l'adresse est _self_, on garde le publisher courant et on passe à la suite.
|
|
145
|
+
* Ceci est un cas spécial, c'est pour ça qu'on utilisa pes Objects.traverse.
|
|
146
|
+
* Il y a toujours un publisher quelque soit l'adresse ce qui permet de cibler des valeurs qui n'existent pas encore
|
|
147
|
+
*/
|
|
148
|
+
static getSubPublisher(pub, pathArray) {
|
|
149
|
+
if (!pathArray)
|
|
150
|
+
return pub;
|
|
151
|
+
for (const key of pathArray) {
|
|
152
|
+
if (key == "_self_")
|
|
153
|
+
continue;
|
|
154
|
+
if (!pub)
|
|
155
|
+
return null;
|
|
156
|
+
pub = pub[key];
|
|
157
|
+
}
|
|
158
|
+
return pub;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* La liaison avec le publisher est faite ici.
|
|
162
|
+
* TODO Sans doute factoriser
|
|
163
|
+
*/
|
|
164
|
+
static addPublisherListeners(target) {
|
|
165
|
+
DataBindObserver.removePublisherListeners(target);
|
|
166
|
+
/**
|
|
167
|
+
* On récupère le publisher viea le dataProvider d'un ancêtre de l'élément.
|
|
168
|
+
*/
|
|
169
|
+
const dataProviderId = HTML.getAncestorAttributeValue((target.parentNode || target.host || target), "dataProvider");
|
|
170
|
+
if (!dataProviderId)
|
|
171
|
+
return;
|
|
172
|
+
const publisher = PublisherManager.getInstance().get(dataProviderId);
|
|
173
|
+
const dataBindItems = DataBindObserver.getDataBindItems(target);
|
|
174
|
+
const conf = [];
|
|
175
|
+
/**
|
|
176
|
+
* Pour chaque attribut => dataBindItems on fait la liaison avec les (sous) publishers associés aux variables extraites
|
|
177
|
+
* Lorsqu'une assignation est faite sur un des publishers liés, on met à jour la propriété de target dont le nom est renseigne dans l'attribut "propertyToUpdate du databindItem".
|
|
178
|
+
* Cette mise à jour est effectuée dans la fonction onAssign.
|
|
179
|
+
* On peut utiliser les fonctions présentes dans Format.ts notamment Format.js qui permet par exemple d'interpréter des expressions js simples.
|
|
180
|
+
* Attentions, les Objets/tableaus sont rendus en chaine avant l'interprétation dans ce cas.
|
|
181
|
+
*/
|
|
182
|
+
dataBindItems.forEach((dataBindItem) => {
|
|
183
|
+
const bindedVariablesDescriptor = dataBindItem.bindedVariablesDescriptor;
|
|
184
|
+
const propertyToUpdate = dataBindItem.propertyToUpdate;
|
|
185
|
+
for (const value of bindedVariablesDescriptor.variables) {
|
|
186
|
+
const publisherPathArray = value;
|
|
187
|
+
let pub = publisher;
|
|
188
|
+
pub = DataBindObserver.getSubPublisher(publisher, publisherPathArray);
|
|
189
|
+
const rec = target;
|
|
190
|
+
const currentConf = {
|
|
191
|
+
publisher: pub,
|
|
192
|
+
onAssign: () => {
|
|
193
|
+
const values = bindedVariablesDescriptor.variables.map((dataPath) => {
|
|
194
|
+
return DataBindObserver.getSubPublisher(publisher, dataPath)?.get();
|
|
195
|
+
});
|
|
196
|
+
let expression = bindedVariablesDescriptor.expression;
|
|
197
|
+
let hasUndeterminatedValue = false;
|
|
198
|
+
/*
|
|
199
|
+
* Si il n'y a qu'une variable on injecte la variable brute ce qui permet d'utiliser des objets composites
|
|
200
|
+
* Dans le cas des des expressions complexes (plus bas, avec plusieurs variables) les objets deviennent des chaines de caractères.)
|
|
201
|
+
*/
|
|
202
|
+
if (values.length == 1 && bindedVariablesDescriptor.variables[0].join(".") == expression.substring(1)) {
|
|
203
|
+
let value = values[0];
|
|
204
|
+
if (value === null
|
|
205
|
+
// ||
|
|
206
|
+
// ( Objects.isObject(value) &&
|
|
207
|
+
// value.hasOwnProperty("__value") &&
|
|
208
|
+
// (Objects.isUndefindOrNull(value.__value) || value.__value === "") )
|
|
209
|
+
) {
|
|
210
|
+
value = "";
|
|
211
|
+
}
|
|
212
|
+
rec[propertyToUpdate] = value;
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Expressions avec plusieurs variables
|
|
217
|
+
*/
|
|
218
|
+
for (let i = 0; i < values.length; i++) {
|
|
219
|
+
let value = values[i];
|
|
220
|
+
const variable = bindedVariablesDescriptor.variables[i];
|
|
221
|
+
if (value === null) {
|
|
222
|
+
hasUndeterminatedValue = true;
|
|
223
|
+
value = undefined;
|
|
224
|
+
}
|
|
225
|
+
expression = expression.replace("$" + variable.join("."), value);
|
|
226
|
+
}
|
|
227
|
+
if (expression.indexOf("|") != -1) {
|
|
228
|
+
const funcDelimiterIdx = expression.indexOf("|");
|
|
229
|
+
if (funcDelimiterIdx == 0) {
|
|
230
|
+
expression = Format.js(expression.substring(1));
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
const funcName = expression.substring(0, funcDelimiterIdx);
|
|
234
|
+
const funcArgs = expression.substring(funcDelimiterIdx + 1);
|
|
235
|
+
const fmtFunc = Format[funcName];
|
|
236
|
+
expression = hasUndeterminatedValue ? "" : fmtFunc ? fmtFunc(funcArgs) : expression;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
expression = hasUndeterminatedValue ? "" : expression;
|
|
241
|
+
}
|
|
242
|
+
rec[propertyToUpdate] = expression;
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
pub?.onAssign(currentConf.onAssign);
|
|
246
|
+
conf.push(currentConf);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
DataBindObserver.publisherListeners.set(target, conf);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Maintient la liste des éléments observés de manière à pouvoir les désinscrire quand ils sont supprimés.
|
|
254
|
+
*/
|
|
255
|
+
DataBindObserver.observedElements = new Map();
|
|
256
|
+
/**
|
|
257
|
+
* Commencer à observer un élément html.
|
|
258
|
+
*/
|
|
259
|
+
DataBindObserver.enabled = true;
|
|
260
|
+
DataBindObserver.publisherListeners = new Map();
|
|
261
|
+
export default DataBindObserver;
|
|
262
|
+
DataBindObserver.observe(document.documentElement);
|
|
263
|
+
if (!window.SonicDataBindObserver)
|
|
264
|
+
window.SonicDataBindObserver = DataBindObserver;
|
|
265
|
+
//# sourceMappingURL=DataBindObserver.js.map
|
|
@@ -0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E,CAAC,CAAC,CAAC,UAAU,CAAC;wBACxD,CAAC;wBAED,GAAG,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC;oBACrC,CAAC;iBACF,CAAC;gBACF,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;gBACpC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,gBAAgB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA3PD;;GAEG;AACI,iCAAgB,GAAgD,IAAI,GAAG,EAAE,CAAC;AACjF;;GAEG;AACI,wBAAO,GAAG,IAAI,CAAC;AAsEf,mCAAkB,GAAyD,IAAI,GAAG,EAAE,CAAC;eA9EzE,gBAAgB;AA8PrC,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEnD,IAAI,CAAC,MAAM,CAAC,qBAAqB;IAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default class Electron {
|
|
2
|
+
static fixBlankLink(link) {
|
|
3
|
+
const electronStr = "electron";
|
|
4
|
+
const electron = typeof require == "undefined" || typeof process != "object"
|
|
5
|
+
? null
|
|
6
|
+
: require(electronStr);
|
|
7
|
+
if (typeof electron && link.target == "_blank") {
|
|
8
|
+
link.addEventListener("click", () => {
|
|
9
|
+
electron?.shell.openExternal(link.href);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Electron.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Electron.js","sourceRoot":"","sources":["../../../../src/core/utils/Electron.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,MAAM,CAAC,YAAY,CAAC,IAInB;QACC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GACZ,OAAO,OAAO,IAAI,WAAW,IAAI,OAAO,OAAO,IAAI,QAAQ;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC3B,IAAI,OAAO,QAAQ,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;YAC/C,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;gBAClC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import HTML from "@supersoniks/concorde/core/utils/HTML";
|
|
2
|
+
class Format {
|
|
3
|
+
/**
|
|
4
|
+
* Passe le premier caractère de la chaine en majuscule
|
|
5
|
+
*/
|
|
6
|
+
static ucFirst(str) {
|
|
7
|
+
if (typeof str != "string")
|
|
8
|
+
return str;
|
|
9
|
+
return str.charAt(0).toUpperCase() + str.substring(1);
|
|
10
|
+
}
|
|
11
|
+
static minutesDuration(minutes, locale = "", unitDisplay = "long") {
|
|
12
|
+
if (!locale)
|
|
13
|
+
locale = HTML.getLanguage();
|
|
14
|
+
const divMod = (n, m) => [Math.floor(n / m), n % m];
|
|
15
|
+
function timeUnitFormatter(locale, unit, unitDisplay) {
|
|
16
|
+
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay })
|
|
17
|
+
.format;
|
|
18
|
+
}
|
|
19
|
+
const [hrs, mins] = divMod(minutes, 60);
|
|
20
|
+
const list = [];
|
|
21
|
+
if (hrs)
|
|
22
|
+
list.push(timeUnitFormatter(locale, "hour", unitDisplay)(hrs));
|
|
23
|
+
if (mins)
|
|
24
|
+
list.push(timeUnitFormatter(locale, "minute", unitDisplay)(mins));
|
|
25
|
+
return new Intl.ListFormat(locale, {
|
|
26
|
+
style: "long",
|
|
27
|
+
type: "conjunction",
|
|
28
|
+
}).format(list);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retourne le résultat de l'évaluation de la chaine fournie
|
|
32
|
+
*/
|
|
33
|
+
static js(value) {
|
|
34
|
+
try {
|
|
35
|
+
return Function("return " + value)();
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
return "";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default Format;
|
|
43
|
+
//# sourceMappingURL=Format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Format.js","sourceRoot":"","sources":["../../../../src/core/utils/Format.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,uCAAuC,CAAC;AAYzD,MAAM,MAAM;IACV;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,GAAW;QACxB,IAAI,OAAO,GAAG,IAAI,QAAQ;YAAE,OAAO,GAAG,CAAC;QACvC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,eAAe,CACpB,OAAe,EACf,SAAiB,EAAE,EACnB,cAAuD,MAAM;QAE7D,IAAI,CAAC,MAAM;YAAE,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACzC,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACpE,SAAS,iBAAiB,CACxB,MAAc,EACd,IAAY,EACZ,WAAoD;YAEpD,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;i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