@adobe/data 0.5.3 → 0.5.5
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/dist/ecs/database/create-database.d.ts +2 -2
- package/dist/ecs/database/database-schema/create-database-schema-test.d.ts +1 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js +42 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +14 -0
- package/dist/ecs/database/database-schema/create-database-schema.js +32 -0
- package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/database-schema.d.ts +13 -0
- package/dist/ecs/database/database-schema/database-schema.js +23 -0
- package/dist/ecs/database/database-schema/database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/index.d.ts +2 -0
- package/dist/{services → ecs/database/database-schema}/index.js +2 -3
- package/dist/ecs/database/database-schema/index.js.map +1 -0
- package/dist/ecs/database/database.d.ts +3 -1
- package/dist/ecs/database/index.d.ts +1 -0
- package/dist/ecs/database/index.js +1 -0
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/index.d.ts +2 -1
- package/dist/ecs/index.js +2 -1
- package/dist/ecs/index.js.map +1 -1
- package/dist/ecs/store/archetype-components.d.ts +3 -1
- package/dist/ecs/store/core/core.d.ts +1 -8
- package/dist/ecs/store/core/create-core.js +9 -4
- package/dist/ecs/store/core/create-core.js.map +1 -1
- package/dist/ecs/store/core/create-core.test.js +0 -109
- package/dist/ecs/store/core/create-core.test.js.map +1 -1
- package/dist/ecs/store/create-store.js +21 -0
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/store-schema/create-store-schema-test.js +4 -7
- package/dist/ecs/store/store-schema/create-store-schema-test.js.map +1 -1
- package/dist/ecs/store/store-schema/create-store-schema.d.ts +2 -0
- package/dist/ecs/store/store-schema/create-store-schema.js +5 -0
- package/dist/ecs/store/store-schema/create-store-schema.js.map +1 -1
- package/dist/ecs/store/store-schema/index.d.ts +1 -1
- package/dist/ecs/store/store-schema/index.js +1 -1
- package/dist/ecs/store/store-schema/index.js.map +1 -1
- package/dist/ecs/store/store-schema/store-schema.d.ts +1 -1
- package/dist/ecs/world/create-world.d.ts +7 -0
- package/dist/ecs/world/create-world.js +108 -0
- package/dist/ecs/world/create-world.js.map +1 -0
- package/dist/ecs/world/create-world.test.d.ts +1 -0
- package/dist/ecs/world/create-world.test.js +499 -0
- package/dist/ecs/world/create-world.test.js.map +1 -0
- package/dist/ecs/world/index.d.ts +4 -0
- package/dist/ecs/world/index.js +26 -0
- package/dist/ecs/world/index.js.map +1 -0
- package/dist/ecs/world/system.d.ts +20 -0
- package/dist/ecs/world/system.js +2 -0
- package/dist/ecs/world/system.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js +55 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema.d.ts +19 -0
- package/dist/ecs/world/world-schema/create-world-schema.js +33 -0
- package/dist/ecs/world/world-schema/create-world-schema.js.map +1 -0
- package/dist/ecs/world/world-schema/index.d.ts +2 -0
- package/dist/ecs/world/world-schema/index.js +24 -0
- package/dist/ecs/world/world-schema/index.js.map +1 -0
- package/dist/ecs/world/world-schema/world-schema.d.ts +18 -0
- package/dist/ecs/world/world-schema/world-schema.js +23 -0
- package/dist/ecs/world/world-schema/world-schema.js.map +1 -0
- package/dist/ecs/world/world.d.ts +9 -0
- package/dist/ecs/world/world.js +2 -0
- package/dist/ecs/world/world.js.map +1 -0
- package/dist/functions/serialization/serialization.test.js +78 -0
- package/dist/functions/serialization/serialization.test.js.map +1 -1
- package/dist/graphics/camera/camera.d.ts +62 -0
- package/dist/graphics/camera/camera.js +17 -0
- package/dist/graphics/camera/camera.js.map +1 -0
- package/dist/graphics/camera/index.d.ts +4 -0
- package/dist/graphics/camera/index.js +5 -0
- package/dist/graphics/camera/index.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.d.ts +12 -0
- package/dist/graphics/camera/screen-to-world-ray.js +49 -0
- package/dist/graphics/camera/screen-to-world-ray.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.d.ts +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js +171 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js.map +1 -0
- package/dist/graphics/camera/to-view-projection.d.ts +3 -0
- package/dist/graphics/camera/to-view-projection.js +8 -0
- package/dist/graphics/camera/to-view-projection.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.d.ts +12 -0
- package/dist/graphics/camera/world-to-screen.js +38 -0
- package/dist/graphics/camera/world-to-screen.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.test.d.ts +1 -0
- package/dist/graphics/camera/world-to-screen.test.js +124 -0
- package/dist/graphics/camera/world-to-screen.test.js.map +1 -0
- package/dist/graphics/create-struct-gpu-buffer.d.ts +7 -0
- package/dist/graphics/create-struct-gpu-buffer.js +17 -0
- package/dist/graphics/create-struct-gpu-buffer.js.map +1 -0
- package/dist/graphics/extract-wgsl-bindings.d.ts +5 -0
- package/dist/graphics/extract-wgsl-bindings.js +10 -0
- package/dist/graphics/extract-wgsl-bindings.js.map +1 -0
- package/dist/graphics/frame.d.ts +22 -0
- package/dist/graphics/frame.js +12 -0
- package/dist/graphics/frame.js.map +1 -0
- package/dist/graphics/get-web-gpu-device-and-context.d.ts +2 -0
- package/dist/graphics/get-web-gpu-device-and-context.js +21 -0
- package/dist/graphics/get-web-gpu-device-and-context.js.map +1 -0
- package/dist/graphics/graphics-context.d.ts +5 -0
- package/dist/graphics/graphics-context.js +2 -0
- package/dist/graphics/graphics-context.js.map +1 -0
- package/dist/graphics/index.d.ts +5 -0
- package/dist/graphics/index.js +5 -0
- package/dist/graphics/index.js.map +1 -0
- package/dist/graphics/to-gpu-buffer.d.ts +2 -0
- package/dist/graphics/to-gpu-buffer.js +14 -0
- package/dist/graphics/to-gpu-buffer.js.map +1 -0
- package/dist/internal/array/index.d.ts +1 -0
- package/dist/internal/array/index.js +23 -0
- package/dist/internal/array/index.js.map +1 -0
- package/dist/internal/array/topological-sort.d.ts +26 -0
- package/dist/internal/array/topological-sort.js +79 -0
- package/dist/internal/array/topological-sort.js.map +1 -0
- package/dist/internal/array/topological-sort.test.d.ts +1 -0
- package/dist/internal/array/topological-sort.test.js +100 -0
- package/dist/internal/array/topological-sort.test.js.map +1 -0
- package/dist/internal/function/debounce.d.ts +70 -0
- package/dist/internal/function/debounce.js +155 -0
- package/dist/internal/function/debounce.js.map +1 -0
- package/dist/internal/function/debounce.test.d.ts +1 -0
- package/dist/internal/function/debounce.test.js +306 -0
- package/dist/internal/function/debounce.test.js.map +1 -0
- package/dist/lit/elements/application-element.d.ts +9 -0
- package/dist/lit/elements/application-element.js +62 -0
- package/dist/lit/elements/application-element.js.map +1 -0
- package/dist/lit/elements/application-host.d.ts +16 -0
- package/dist/lit/elements/application-host.js +59 -0
- package/dist/lit/elements/application-host.js.map +1 -0
- package/dist/lit/elements/index.d.ts +2 -0
- package/dist/lit/elements/index.js +2 -0
- package/dist/lit/elements/index.js.map +1 -1
- package/dist/lit/elements/service-application.js +4 -1
- package/dist/lit/elements/service-application.js.map +1 -1
- package/dist/lit/functions/index.d.ts +1 -0
- package/dist/lit/functions/index.js +23 -0
- package/dist/lit/functions/index.js.map +1 -0
- package/dist/lit/functions/iterate-self-and-ancestors.d.ts +1 -0
- package/dist/lit/functions/iterate-self-and-ancestors.js +44 -0
- package/dist/lit/functions/iterate-self-and-ancestors.js.map +1 -0
- package/dist/lit/hooks/attach-decorator.d.ts +4 -0
- package/dist/lit/hooks/attach-decorator.js +46 -0
- package/dist/lit/hooks/attach-decorator.js.map +1 -0
- package/dist/lit/hooks/index.d.ts +4 -0
- package/dist/lit/hooks/index.js +4 -0
- package/dist/lit/hooks/index.js.map +1 -1
- package/dist/lit/hooks/use-drag-observe.d.ts +22 -0
- package/dist/lit/hooks/use-drag-observe.js +55 -0
- package/dist/lit/hooks/use-drag-observe.js.map +1 -0
- package/dist/lit/hooks/use-drag-transaction.d.ts +7 -0
- package/dist/lit/hooks/use-drag-transaction.js +56 -0
- package/dist/lit/hooks/use-drag-transaction.js.map +1 -0
- package/dist/lit/hooks/use-draggable.d.ts +16 -0
- package/dist/lit/hooks/use-draggable.js +122 -0
- package/dist/lit/hooks/use-draggable.js.map +1 -0
- package/dist/math/aabb/aabb.d.ts +48 -0
- package/dist/math/aabb/aabb.js +86 -0
- package/dist/math/aabb/aabb.js.map +1 -0
- package/dist/math/aabb/line-intersection.test.d.ts +1 -0
- package/dist/math/aabb/line-intersection.test.js +210 -0
- package/dist/math/aabb/line-intersection.test.js.map +1 -0
- package/dist/math/constants.d.ts +4 -0
- package/dist/math/constants.js +26 -0
- package/dist/math/constants.js.map +1 -0
- package/dist/math/index.d.ts +18 -0
- package/dist/math/index.js +40 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/line2/intersects.test.d.ts +1 -0
- package/dist/math/line2/intersects.test.js +104 -0
- package/dist/math/line2/intersects.test.js.map +1 -0
- package/dist/math/line2/line2.d.ts +42 -0
- package/dist/math/line2/line2.js +78 -0
- package/dist/math/line2/line2.js.map +1 -0
- package/dist/math/line3/closest-point-on-line.test.d.ts +1 -0
- package/dist/math/line3/closest-point-on-line.test.js +107 -0
- package/dist/math/line3/closest-point-on-line.test.js.map +1 -0
- package/dist/math/line3/interpolate.test.d.ts +1 -0
- package/dist/math/line3/interpolate.test.js +66 -0
- package/dist/math/line3/interpolate.test.js.map +1 -0
- package/dist/math/line3/line3.d.ts +49 -0
- package/dist/math/line3/line3.js +77 -0
- package/dist/math/line3/line3.js.map +1 -0
- package/dist/math/line3/sub-line.test.d.ts +1 -0
- package/dist/math/line3/sub-line.test.js +70 -0
- package/dist/math/line3/sub-line.test.js.map +1 -0
- package/dist/math/mat4x4/mat4x4.d.ts +37 -0
- package/dist/math/mat4x4/mat4x4.js +246 -0
- package/dist/math/mat4x4/mat4x4.js.map +1 -0
- package/dist/math/picking/index.d.ts +1 -0
- package/dist/math/picking/index.js +23 -0
- package/dist/math/picking/index.js.map +1 -0
- package/dist/math/picking/pick-from-tables.d.ts +18 -0
- package/dist/math/picking/pick-from-tables.js +154 -0
- package/dist/math/picking/pick-from-tables.js.map +1 -0
- package/dist/math/picking/pick-result.d.ts +7 -0
- package/dist/{services/service.js → math/picking/pick-result.js} +1 -1
- package/dist/math/picking/pick-result.js.map +1 -0
- package/dist/math/quat/quat.d.ts +42 -0
- package/dist/math/quat/quat.js +220 -0
- package/dist/math/quat/quat.js.map +1 -0
- package/dist/math/vec2/vec2.d.ts +63 -0
- package/dist/math/vec2/vec2.js +114 -0
- package/dist/math/vec2/vec2.js.map +1 -0
- package/dist/math/vec3/vec3.d.ts +65 -0
- package/dist/math/vec3/vec3.js +154 -0
- package/dist/math/vec3/vec3.js.map +1 -0
- package/dist/math/vec4/vec4.d.ts +63 -0
- package/dist/math/vec4/vec4.js +154 -0
- package/dist/math/vec4/vec4.js.map +1 -0
- package/dist/observe/to-async-generator.js +4 -0
- package/dist/observe/to-async-generator.js.map +1 -1
- package/dist/observe/with-filter.d.ts +1 -1
- package/dist/observe/with-filter.js.map +1 -1
- package/dist/samples/index.d.ts +13 -0
- package/dist/samples/index.js +27 -0
- package/dist/samples/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.d.ts +25 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.js +12 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.d.ts +18 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.js +27 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list.d.ts +12 -0
- package/dist/samples/todo/elements/todo-list/todo-list.js +60 -0
- package/dist/samples/todo/elements/todo-list/todo-list.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-row/index.js +19 -0
- package/dist/samples/todo/elements/todo-row/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.d.ts +18 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.js +66 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.js +65 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.d.ts +14 -0
- package/dist/samples/todo/elements/todo-row/todo-row.js +60 -0
- package/dist/samples/todo/elements/todo-row/todo-row.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-toolbar/index.js +19 -0
- package/dist/samples/todo/elements/todo-toolbar/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.d.ts +22 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js +57 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js +50 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.d.ts +11 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js +77 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.js +19 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.d.ts +17 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js +45 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js +28 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.d.ts +11 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js +52 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts +6 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js +21 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.d.ts +20 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js +21 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js.map +1 -0
- package/dist/samples/todo/services/main-service/create-main-service.d.ts +25 -0
- package/dist/samples/todo/services/main-service/create-main-service.js +39 -0
- package/dist/samples/todo/services/main-service/create-main-service.js.map +1 -0
- package/dist/samples/todo/services/main-service/todo-main-service.d.ts +35 -0
- package/dist/samples/todo/services/main-service/todo-main-service.js +2 -0
- package/dist/samples/todo/services/main-service/todo-main-service.js.map +1 -0
- package/dist/samples/todo/services/state-service/create-todo-database.d.ts +13 -0
- package/dist/samples/todo/services/state-service/create-todo-database.js +26 -0
- package/dist/samples/todo/services/state-service/create-todo-database.js.map +1 -0
- package/dist/samples/todo/services/state-service/create-todo-store.d.ts +13 -0
- package/dist/samples/todo/services/state-service/create-todo-store.js +41 -0
- package/dist/samples/todo/services/state-service/create-todo-store.js.map +1 -0
- package/dist/samples/todo/services/state-service/todo-state-service.d.ts +22 -0
- package/dist/samples/todo/services/state-service/todo-state-service.js +2 -0
- package/dist/samples/todo/services/state-service/todo-state-service.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.d.ts +2 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js +26 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.d.ts +22 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.js +13 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.js +32 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.d.ts +19 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js +16 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.d.ts +3 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.js +24 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js +40 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.d.ts +7 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.js +33 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/index.d.ts +23 -0
- package/dist/samples/todo/services/state-service/transactions/index.js +25 -0
- package/dist/samples/todo/services/state-service/transactions/index.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.d.ts +23 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.js +11 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.d.ts +20 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js +11 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js +81 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js.map +1 -0
- package/dist/samples/todo/todo-element.d.ts +21 -0
- package/dist/samples/todo/todo-element.js +4 -0
- package/dist/samples/todo/todo-element.js.map +1 -0
- package/dist/samples/todo/todo-host.d.ts +8 -0
- package/dist/samples/todo/todo-host.js +55 -0
- package/dist/samples/todo/todo-host.js.map +1 -0
- package/dist/samples/todo/todo-main-element.d.ts +27 -0
- package/dist/samples/todo/todo-main-element.js +63 -0
- package/dist/samples/todo/todo-main-element.js.map +1 -0
- package/dist/samples/todo/todo-sample.d.ts +3 -0
- package/dist/samples/todo/todo-sample.js +39 -0
- package/dist/samples/todo/todo-sample.js.map +1 -0
- package/dist/schema/schema.d.ts +7 -6
- package/dist/schema/schema.js.map +1 -1
- package/dist/service/disposable.d.ts +4 -0
- package/dist/{services/is-service.js → service/disposable.js} +3 -3
- package/dist/service/disposable.js.map +1 -0
- package/dist/service/progressive-result.d.ts +7 -10
- package/dist/service/progressive-result.js +0 -6
- package/dist/service/progressive-result.js.map +1 -1
- package/dist/service/service.d.ts +11 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/register-typed-buffer-codecs.js +39 -22
- package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.js +3 -0
- package/dist/typed-buffer/structs/get-struct-layout.js.map +1 -1
- package/package.json +20 -3
- package/dist/services/add-observable-actions.d.ts +0 -29
- package/dist/services/add-observable-actions.js +0 -108
- package/dist/services/add-observable-actions.js.map +0 -1
- package/dist/services/index.d.ts +0 -4
- package/dist/services/index.js.map +0 -1
- package/dist/services/is-service.d.ts +0 -2
- package/dist/services/is-service.js.map +0 -1
- package/dist/services/progressive-result.d.ts +0 -96
- package/dist/services/progressive-result.js +0 -99
- package/dist/services/progressive-result.js.map +0 -1
- package/dist/services/service.d.ts +0 -4
- package/dist/services/service.js.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/*************************************************************************
|
|
8
|
+
*
|
|
9
|
+
* ADOBE CONFIDENTIAL
|
|
10
|
+
* ___________________
|
|
11
|
+
*
|
|
12
|
+
* Copyright 2024 Adobe
|
|
13
|
+
* All Rights Reserved.
|
|
14
|
+
*
|
|
15
|
+
* NOTICE: All information contained herein is, and remains
|
|
16
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
17
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
18
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
19
|
+
* property laws, including trade secret and copyright laws.
|
|
20
|
+
* Dissemination of this information or reproduction of this material
|
|
21
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
22
|
+
* from Adobe.
|
|
23
|
+
**************************************************************************/
|
|
24
|
+
import './elements/todo-list/todo-list.js';
|
|
25
|
+
import './elements/todo-row/todo-row.js';
|
|
26
|
+
import './elements/todo-toolbar/todo-toolbar.js';
|
|
27
|
+
import './elements/todo-undo-redo/todo-undo-redo.js';
|
|
28
|
+
import { TodoElement } from './todo-element.js';
|
|
29
|
+
import { html, css } from 'lit';
|
|
30
|
+
import { customElement } from 'lit/decorators.js';
|
|
31
|
+
export const tagName = 'data-todo';
|
|
32
|
+
let TodoMainElement = class TodoMainElement extends TodoElement {
|
|
33
|
+
static { this.styles = css `
|
|
34
|
+
:host {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
height: 400px;
|
|
38
|
+
max-height: 400px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
data-todo-toolbar {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
data-todo-list {
|
|
47
|
+
flex: 1;
|
|
48
|
+
overflow-y: auto;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
}
|
|
51
|
+
`; }
|
|
52
|
+
render() {
|
|
53
|
+
return html `
|
|
54
|
+
<data-todo-toolbar></data-todo-toolbar>
|
|
55
|
+
<data-todo-list></data-todo-list>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
TodoMainElement = __decorate([
|
|
60
|
+
customElement(tagName)
|
|
61
|
+
], TodoMainElement);
|
|
62
|
+
export { TodoMainElement };
|
|
63
|
+
//# sourceMappingURL=todo-main-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-main-element.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-main-element.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,iCAAiC,CAAC;AACzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,6CAA6C,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC;AAG5B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAW;aACvC,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;GAkBlB,AAlBY,CAkBX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;;;KAGV,CAAC;IACJ,CAAC;;AA1BU,eAAe;IAD3B,aAAa,CAAC,OAAO,CAAC;GACV,eAAe,CA2B3B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import './todo-host.js'; // Side effect: registers todo-host
|
|
23
|
+
export const todoSample = {
|
|
24
|
+
id: 'todo',
|
|
25
|
+
title: 'Todo Application',
|
|
26
|
+
description: 'A complete todo application demonstrating ECS architecture, state management, undo/redo, and persistence.',
|
|
27
|
+
category: 'Application Examples',
|
|
28
|
+
difficulty: 'intermediate',
|
|
29
|
+
features: [
|
|
30
|
+
'Entity-Component-System (ECS)',
|
|
31
|
+
'State Management',
|
|
32
|
+
'Undo/Redo System',
|
|
33
|
+
'Local Storage Persistence',
|
|
34
|
+
'Drag and Drop Reordering',
|
|
35
|
+
'Reactive UI Updates'
|
|
36
|
+
],
|
|
37
|
+
elementTag: 'todo-host'
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=todo-sample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-sample.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,gBAAgB,CAAC,CAAE,mCAAmC;AAE7D,MAAM,CAAC,MAAM,UAAU,GAAW;IAC9B,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,2GAA2G;IACxH,QAAQ,EAAE,sBAAsB;IAChC,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE;QACN,+BAA+B;QAC/B,kBAAkB;QAClB,kBAAkB;QAClB,2BAA2B;QAC3B,0BAA0B;QAC1B,qBAAqB;KACxB;IACD,UAAU,EAAE,WAAW;CAC1B,CAAC"}
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface Schema {
|
|
|
33
33
|
conditionals?: readonly Conditional[];
|
|
34
34
|
ui?: UIProperties;
|
|
35
35
|
transient?: boolean;
|
|
36
|
+
mutable?: boolean;
|
|
36
37
|
default?: any;
|
|
37
38
|
precision?: 1 | 2;
|
|
38
39
|
multipleOf?: number;
|
|
@@ -59,10 +60,10 @@ export interface Schema {
|
|
|
59
60
|
export type FromSchemas<T> = {
|
|
60
61
|
[K in keyof T]: FromSchema<T[K]>;
|
|
61
62
|
};
|
|
62
|
-
export type FromSchema<T, Depth extends number = 5> =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
export type FromSchema<T, Depth extends number = 5> = T extends {
|
|
64
|
+
mutable: true;
|
|
65
|
+
} ? FromSchemaInternal<T> : DeepReadonly<Depth extends 0 ? any : FromSchemaInternal<T, Depth>>;
|
|
66
|
+
type FromSchemaInternal<T, Depth extends number = 5> = T extends {
|
|
66
67
|
const: infer Const;
|
|
67
68
|
} ? Const : T extends {
|
|
68
69
|
enum: infer Enum;
|
|
@@ -79,7 +80,7 @@ export type FromSchema<T, Depth extends number = 5> = DeepReadonly<Depth extends
|
|
|
79
80
|
} ? null : T extends {
|
|
80
81
|
type: 'typed-buffer';
|
|
81
82
|
items: infer Items;
|
|
82
|
-
} ? TypedBuffer<
|
|
83
|
+
} ? TypedBuffer<FromSchemaInternal<Items>> : T extends {
|
|
83
84
|
type: 'array';
|
|
84
85
|
} | {
|
|
85
86
|
items: any;
|
|
@@ -90,7 +91,7 @@ export type FromSchema<T, Depth extends number = 5> = DeepReadonly<Depth extends
|
|
|
90
91
|
type: 'object';
|
|
91
92
|
} | {
|
|
92
93
|
properties: any;
|
|
93
|
-
} ? FromSchemaObject<T, Decrement<Depth>> : any
|
|
94
|
+
} ? FromSchemaObject<T, Decrement<Depth>> : any;
|
|
94
95
|
type Decrement<N extends number> = ((...x: any[]) => void) extends (arg: any, ...rest: infer R) => void ? R['length'] : never;
|
|
95
96
|
type FromSchemaArray<T, Depth extends number> = T extends {
|
|
96
97
|
items: infer Items;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAgNX,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KACvB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;CACF,CAAC"}
|
|
@@ -19,7 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.*/
|
|
22
|
-
export function
|
|
23
|
-
return value !== null && typeof value === "object" && "
|
|
22
|
+
export function isDisposable(value) {
|
|
23
|
+
return value !== null && typeof value === "object" && "dispose" in value && typeof value.dispose === "function";
|
|
24
24
|
}
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=disposable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disposable.js","sourceRoot":"","sources":["../../src/service/disposable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAMX,MAAM,UAAU,YAAY,CAAC,KAAc;IACvC,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,CAAC;AACpH,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Schema } from "../schema/schema.js";
|
|
2
|
-
export type ErrorResult<
|
|
2
|
+
export type ErrorResult<Error> = {
|
|
3
3
|
readonly error: Error;
|
|
4
4
|
readonly progress?: number;
|
|
5
5
|
};
|
|
6
|
-
export type IntermediateResult<Result> =
|
|
6
|
+
export type IntermediateResult<Result> = Result & {
|
|
7
7
|
readonly error?: never;
|
|
8
8
|
readonly progress: number;
|
|
9
9
|
};
|
|
@@ -11,7 +11,8 @@ export type SuccessResult<Result> = Result & {
|
|
|
11
11
|
readonly error?: never;
|
|
12
12
|
readonly progress: 1.0;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type FinalResult<Result, Error> = SuccessResult<Result> | ErrorResult<Error>;
|
|
15
|
+
export type ProgressiveResult<Result, Error, Intermediate = Partial<Result>> = IntermediateResult<Intermediate> | FinalResult<Result, Error>;
|
|
15
16
|
/**
|
|
16
17
|
* Results must be objects as we are going to add error and progress properties to them.
|
|
17
18
|
*/
|
|
@@ -80,17 +81,13 @@ export declare function ProgressiveResultSchema<T extends ResultSchema, E extend
|
|
|
80
81
|
/**
|
|
81
82
|
* Checks if the result is an error result.
|
|
82
83
|
*/
|
|
83
|
-
export declare function isErrorResult<
|
|
84
|
-
/**
|
|
85
|
-
* Checks if the result is not started. We check progress < 0.0 to mean not started.
|
|
86
|
-
*/
|
|
87
|
-
export declare function isNotStarted<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is IntermediateResult<FinalValue>;
|
|
84
|
+
export declare function isErrorResult<ErrorValue>(result: ProgressiveResult<any, ErrorValue> | FinalResult<any, ErrorValue>): result is ErrorResult<ErrorValue>;
|
|
88
85
|
/**
|
|
89
86
|
* Checks if the result is an intermediate result.
|
|
90
87
|
*/
|
|
91
|
-
export declare function isIntermediateResult<
|
|
88
|
+
export declare function isIntermediateResult<IntermediateValue>(result: ProgressiveResult<any, any, IntermediateValue>): result is IntermediateResult<IntermediateValue>;
|
|
92
89
|
/**
|
|
93
90
|
* Checks if the result is a final result.
|
|
94
91
|
*/
|
|
95
|
-
export declare function isSuccessResult<FinalValue
|
|
92
|
+
export declare function isSuccessResult<FinalValue>(result: ProgressiveResult<FinalValue, any, any> | FinalResult<FinalValue, any>): result is SuccessResult<FinalValue>;
|
|
96
93
|
export {};
|
|
@@ -78,12 +78,6 @@ export function ProgressiveResultSchema(successSchema, errorSchema) {
|
|
|
78
78
|
export function isErrorResult(result) {
|
|
79
79
|
return result.error !== null && result.error !== undefined;
|
|
80
80
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Checks if the result is not started. We check progress < 0.0 to mean not started.
|
|
83
|
-
*/
|
|
84
|
-
export function isNotStarted(result) {
|
|
85
|
-
return !isErrorResult(result) && result.progress < 0.0;
|
|
86
|
-
}
|
|
87
81
|
/**
|
|
88
82
|
* Checks if the result is an intermediate result.
|
|
89
83
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressive-result.js","sourceRoot":"","sources":["../../src/service/progressive-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;
|
|
1
|
+
{"version":3,"file":"progressive-result.js","sourceRoot":"","sources":["../../src/service/progressive-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA2BX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAyB,WAAc;IACxE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;SACzB;QACD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,UAAU,CAAC;KAC3B,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAyB,WAAc;IAC7E,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACd,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAiD,WAAc,EAAE,WAAc;IAC9G,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACX,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAAgB,EAChB,WAAc;IAEd,OAAO;QACL,KAAK,EAAE,CAAC,wBAAwB,CAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;KAC3H,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAyE;IAEzE,OAAO,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAsD;IAEtD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,MAA8E;IAE9E,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A service is an object that provides functionality to an application.
|
|
3
|
+
* Services are never dependent upon user interface components.
|
|
4
|
+
* Services come in several varieties:
|
|
5
|
+
* - Frontend Services
|
|
6
|
+
* - Only contain void actions and observe functions.
|
|
7
|
+
* - Async nature enforces unidirectional control flow and decouples the service from the UI.
|
|
8
|
+
* - Backend Services
|
|
9
|
+
* - Usually consumed by other services.
|
|
10
|
+
* - May also contain Promise<Data> or AsyncGenerator<Data> functions.
|
|
11
|
+
*/
|
|
1
12
|
export interface Service {
|
|
2
13
|
readonly serviceName: string;
|
|
3
|
-
dispose?(): void;
|
|
4
14
|
}
|