@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,28 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { css } from 'lit';
|
|
19
|
+
export const styles = css `
|
|
20
|
+
sp-action-group {
|
|
21
|
+
gap: var(--spectrum-global-dimension-size-100);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
sp-action-button {
|
|
25
|
+
min-width: var(--spectrum-global-dimension-size-300);
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
//# sourceMappingURL=todo-undo-redo.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-undo-redo.css.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;CAQxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TodoElement } from '../../todo-element.js';
|
|
2
|
+
export declare const tagName = "data-todo-undo-redo";
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
[tagName]: TodoUndoRedo;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class TodoUndoRedo extends TodoElement {
|
|
9
|
+
static styles: import("lit").CSSResult;
|
|
10
|
+
render(): import("lit").TemplateResult<1> | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 2025 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 * as presentation from './todo-undo-redo-presentation.js';
|
|
25
|
+
import { styles } from './todo-undo-redo.css.js';
|
|
26
|
+
import { customElement } from 'lit/decorators.js';
|
|
27
|
+
import { useObservableValues } from '../../../../lit/hooks/index.js';
|
|
28
|
+
import { TodoElement } from '../../todo-element.js';
|
|
29
|
+
export const tagName = 'data-todo-undo-redo';
|
|
30
|
+
let TodoUndoRedo = class TodoUndoRedo extends TodoElement {
|
|
31
|
+
static { this.styles = styles; }
|
|
32
|
+
render() {
|
|
33
|
+
const localized = { undo: 'Undo', redo: 'Redo' };
|
|
34
|
+
const values = useObservableValues(() => ({
|
|
35
|
+
hasUndo: this.service.undoRedo.undoEnabled,
|
|
36
|
+
hasRedo: this.service.undoRedo.redoEnabled,
|
|
37
|
+
}));
|
|
38
|
+
if (!values)
|
|
39
|
+
return;
|
|
40
|
+
return presentation.render({
|
|
41
|
+
...values,
|
|
42
|
+
localized,
|
|
43
|
+
undo: this.service.undoRedo.undo,
|
|
44
|
+
redo: this.service.undoRedo.redo,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
TodoUndoRedo = __decorate([
|
|
49
|
+
customElement(tagName)
|
|
50
|
+
], TodoUndoRedo);
|
|
51
|
+
export { TodoUndoRedo };
|
|
52
|
+
//# sourceMappingURL=todo-undo-redo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-undo-redo.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-undo-redo/todo-undo-redo.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAStC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,WAAW;aACpC,WAAM,GAAG,MAAM,AAAT,CAAU;IAEvB,MAAM;QACJ,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAW,CAAC;QAC1D,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,EAAE,CAAC,CAAC;YACxC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;YAC1C,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;SAC3C,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,OAAO,YAAY,CAAC,MAAM,CAAC;YACzB,GAAG,MAAM;YACT,SAAS;YACT,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI;YAChC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI;SACjC,CAAC,CAAC;IACL,CAAC;;AAlBU,YAAY;IADxB,aAAa,CAAC,OAAO,CAAC;GACV,YAAY,CAmBxB"}
|
package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TodoCoreService } from '../main-service/todo-main-service.js';
|
|
2
|
+
export declare const createDependentStateService: (service: TodoCoreService) => {
|
|
3
|
+
readonly allTodos: (service: TodoCoreService) => import("../../../../observe/types.js").Observe<readonly number[]>;
|
|
4
|
+
readonly completeTodos: (service: TodoCoreService) => import("../../../../observe/types.js").Observe<readonly number[]>;
|
|
5
|
+
readonly incompleteTodos: (service: TodoCoreService) => import("../../../../observe/types.js").Observe<readonly number[]>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { applyArg } from '@adobe/data/functions';
|
|
19
|
+
import * as dependentState from './dependent-state/index.js';
|
|
20
|
+
export const createDependentStateService = (service) => applyArg(service, dependentState);
|
|
21
|
+
//# sourceMappingURL=create-dependent-state-service.js.map
|
package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dependent-state-service.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/dependent-state-service/create-dependent-state-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAI7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAwB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { TodoCoreService } from '../../main-service/todo-main-service.js';
|
|
19
|
+
export declare const allTodos: (service: TodoCoreService) => import("../../../../../observe/types.js").Observe<readonly number[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-todos.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/dependent-state-service/dependent-state/all-todos.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAwB,EAAE,EAAE,CACnD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC"}
|
package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { TodoCoreService } from '../../main-service/todo-main-service.js';
|
|
19
|
+
export declare const completeTodos: (service: TodoCoreService) => import("../../../../../observe/types.js").Observe<readonly number[]>;
|
package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complete-todos.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/dependent-state-service/dependent-state/complete-todos.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAwB,EAAE,EAAE,CACxD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC"}
|
package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { TodoCoreService } from '../../main-service/todo-main-service.js';
|
|
19
|
+
export declare const incompleteTodos: (service: TodoCoreService) => import("../../../../../observe/types.js").Observe<readonly number[]>;
|
package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incomplete-todos.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAwB,EAAE,EAAE,CAC1D,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
export * from './all-todos.js';
|
|
19
|
+
export * from './complete-todos.js';
|
|
20
|
+
export * from './incomplete-todos.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
export * from './all-todos.js';
|
|
19
|
+
export * from './complete-todos.js';
|
|
20
|
+
export * from './incomplete-todos.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/dependent-state-service/dependent-state/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { createDependentStateService } from './create-dependent-state-service.js';
|
|
19
|
+
export type DependentStateService = ReturnType<typeof createDependentStateService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependent-state-service.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/dependent-state-service/dependent-state-service.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { TodoMainService } from './todo-main-service.js';
|
|
19
|
+
import { TodoStateService } from '../state-service/todo-state-service.js';
|
|
20
|
+
/**
|
|
21
|
+
* Initializes any core services and returns a new todo main service.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createMainService(services?: {
|
|
24
|
+
state?: TodoStateService;
|
|
25
|
+
}): Promise<TodoMainService>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createStoragePersistenceService, createUndoRedoService } from '../../../../ecs/index.js';
|
|
2
|
+
import { createDependentStateService } from '../dependent-state-service/create-dependent-state-service.js';
|
|
3
|
+
import { createTodoDatabase } from '../state-service/create-todo-database.js';
|
|
4
|
+
import { todoStoreSchemaVersion } from '../state-service/create-todo-store.js';
|
|
5
|
+
/**
|
|
6
|
+
* Initializes any core services and returns a new todo main service.
|
|
7
|
+
*/
|
|
8
|
+
export async function createMainService(services = {}) {
|
|
9
|
+
{
|
|
10
|
+
const { state = createTodoDatabase(), ...rest } = services;
|
|
11
|
+
state.transactions.createTodo({ name: 'Buy groceries' });
|
|
12
|
+
state.transactions.createTodo({ name: 'Pickup dry cleaning' });
|
|
13
|
+
state.transactions.createTodo({ name: 'Buy flowers', complete: true });
|
|
14
|
+
const persistence = await createStoragePersistenceService({
|
|
15
|
+
database: state,
|
|
16
|
+
storage: sessionStorage,
|
|
17
|
+
defaultFileId: `todo-database-v${todoStoreSchemaVersion}`,
|
|
18
|
+
autoSaveOnChange: true,
|
|
19
|
+
autoLoadOnStart: true,
|
|
20
|
+
});
|
|
21
|
+
// Create the undo-redo actions
|
|
22
|
+
const undoRedo = createUndoRedoService(state);
|
|
23
|
+
// The core service is what we call the service without the dependent state service
|
|
24
|
+
const coreService = {
|
|
25
|
+
serviceName: 'todo-core-service',
|
|
26
|
+
...rest,
|
|
27
|
+
state,
|
|
28
|
+
undoRedo,
|
|
29
|
+
persistence,
|
|
30
|
+
};
|
|
31
|
+
// We create the dependent state from the core service.
|
|
32
|
+
const dependentState = createDependentStateService(coreService);
|
|
33
|
+
return {
|
|
34
|
+
...coreService,
|
|
35
|
+
dependentState,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=create-main-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-main-service.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/main-service/create-main-service.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAClG,OAAO,EAAE,2BAA2B,EAAE,MAAM,8DAA8D,CAAC;AAC3G,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAG/E;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,WAEpC,EAAE;IACJ,CAAC;QACC,MAAM,EACJ,KAAK,GAAG,kBAAkB,EAAE,EAC5B,GAAG,IAAI,EACR,GAAG,QAAQ,CAAC;QAEb,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;QACzD,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAC/D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,MAAM,WAAW,GAAG,MAAM,+BAA+B,CAAC;YACxD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,kBAAkB,sBAAsB,EAAE;YACzD,gBAAgB,EAAE,IAAI;YACtB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QAEH,+BAA+B;QAC/B,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAE9C,mFAAmF;QACnF,MAAM,WAAW,GAAG;YAClB,WAAW,EAAE,mBAA4B;YACzC,GAAG,IAAI;YACP,KAAK;YACL,QAAQ;YACR,WAAW;SACc,CAAC;QAE5B,uDAAuD;QACvD,MAAM,cAAc,GAAG,2BAA2B,CAAC,WAAW,CAAC,CAAC;QAEhE,OAAO;YACL,GAAG,WAAW;YACd,cAAc;SACW,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { PersistenceService, UndoRedoService } from '../../../../ecs/index.js';
|
|
19
|
+
import { Service } from '../../../../service/index.js';
|
|
20
|
+
import { DependentStateService } from '../dependent-state-service/dependent-state-service.js';
|
|
21
|
+
import { TodoStateService } from '../state-service/todo-state-service.js';
|
|
22
|
+
export interface TodoMainService extends Service {
|
|
23
|
+
readonly serviceName: string;
|
|
24
|
+
state: TodoStateService;
|
|
25
|
+
dependentState: DependentStateService;
|
|
26
|
+
undoRedo: UndoRedoService;
|
|
27
|
+
persistence: PersistenceService;
|
|
28
|
+
}
|
|
29
|
+
export type TodoCoreService = Omit<TodoMainService, 'dependentState'>;
|
|
30
|
+
/**
|
|
31
|
+
* The main service as used by the UI. We only allow access to the observe and transactions properties.
|
|
32
|
+
*/
|
|
33
|
+
export type TodoUIMainService = Omit<TodoMainService, 'state'> & {
|
|
34
|
+
state: Omit<TodoStateService, 'resources'>;
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-main-service.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/main-service/todo-main-service.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as transactions from './transactions/index.js';
|
|
2
|
+
export declare const createTodoDatabase: () => import("@adobe/data/ecs").Database<{
|
|
3
|
+
todo: true;
|
|
4
|
+
name: string;
|
|
5
|
+
order: number;
|
|
6
|
+
complete: boolean;
|
|
7
|
+
dragPosition: number | null;
|
|
8
|
+
}, {
|
|
9
|
+
displayCompleted: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
Todo: ("todo" | "name" | "order" | "complete" | "dragPosition")[];
|
|
12
|
+
}, import("@adobe/data/ecs").ToTransactionFunctions<typeof transactions>>;
|
|
13
|
+
export type TodoDatabase = ReturnType<typeof createTodoDatabase>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { createTodoStore } from './create-todo-store.js';
|
|
19
|
+
import { createDatabase } from '@adobe/data/ecs';
|
|
20
|
+
import * as transactions from './transactions/index.js';
|
|
21
|
+
export const createTodoDatabase = () => {
|
|
22
|
+
const store = createTodoStore();
|
|
23
|
+
const database = createDatabase(store, transactions);
|
|
24
|
+
return database;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=create-todo-database.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-todo-database.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/state-service/create-todo-database.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACrD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const todoStoreSchemaVersion = 1;
|
|
2
|
+
export declare const createTodoStore: () => import("@adobe/data/ecs").Store<{
|
|
3
|
+
todo: true;
|
|
4
|
+
name: string;
|
|
5
|
+
order: number;
|
|
6
|
+
complete: boolean;
|
|
7
|
+
dragPosition: number | null;
|
|
8
|
+
}, {
|
|
9
|
+
displayCompleted: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
Todo: ("todo" | "name" | "order" | "complete" | "dragPosition")[];
|
|
12
|
+
}>;
|
|
13
|
+
export type TodoStore = ReturnType<typeof createTodoStore>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { createStore } from '@adobe/data/ecs';
|
|
19
|
+
import { F32Schema, Nullable, TrueSchema } from '@adobe/data/schema';
|
|
20
|
+
// Increment this value if you change the schema in a non-backwards compatible way
|
|
21
|
+
export const todoStoreSchemaVersion = 1;
|
|
22
|
+
export const createTodoStore = () => {
|
|
23
|
+
return createStore(
|
|
24
|
+
// components
|
|
25
|
+
{
|
|
26
|
+
todo: TrueSchema, // a tag that indicates an entity is a todo item.
|
|
27
|
+
complete: { type: 'boolean' },
|
|
28
|
+
name: { type: 'string' },
|
|
29
|
+
order: F32Schema,
|
|
30
|
+
dragPosition: Nullable(F32Schema), // null = not being dragged
|
|
31
|
+
},
|
|
32
|
+
// resources
|
|
33
|
+
{
|
|
34
|
+
displayCompleted: { type: 'boolean', default: false },
|
|
35
|
+
},
|
|
36
|
+
// archetypes
|
|
37
|
+
{
|
|
38
|
+
Todo: ['todo', 'complete', 'name', 'order', 'dragPosition'],
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=create-todo-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-todo-store.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/state-service/create-todo-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErE,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,OAAO,WAAW;IAChB,cAAc;IACd;QACE,IAAI,EAAE,UAAU,EAAE,iDAAiD;QACnE,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,2BAA2B;KAC/D;IACD,aAAa;IACb;QACE,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;KACtD;IACD,cAAc;IACd;QACE,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;KAC5D,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { type TodoDatabase } from './create-todo-database.js';
|
|
19
|
+
import { FromArchetype } from '@adobe/data/ecs';
|
|
20
|
+
export type TodoStateService = TodoDatabase;
|
|
21
|
+
export type Todo = FromArchetype<TodoDatabase['archetypes']['Todo']>;
|
|
22
|
+
export type DragTodoFunction = TodoStateService['transactions']['dragTodo'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-state-service.js","sourceRoot":"","sources":["../../../../../src/samples/todo/services/state-service/todo-state-service.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { createTodo } from './create-todo.js';
|
|
19
|
+
export const createBulkTodos = (t, count) => {
|
|
20
|
+
t.undoable = { coalesce: false };
|
|
21
|
+
const currentCount = t.archetypes.Todo.rowCount;
|
|
22
|
+
for (let i = 0; i < count; i++) {
|
|
23
|
+
createTodo(t, { name: `Todo ${currentCount + i}`, complete: false });
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=create-bulk-todos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-todos.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/state-service/transactions/create-bulk-todos.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAY,EAAE,KAAa,EAAE,EAAE;IAC7D,CAAC,CAAC,QAAQ,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjC,MAAM,YAAY,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC;IAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/B,UAAU,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,YAAY,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* ADOBE CONFIDENTIAL
|
|
4
|
+
* ___________________
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2025 Adobe
|
|
7
|
+
* All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* NOTICE: All information contained herein is, and remains
|
|
10
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
11
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
12
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
13
|
+
* property laws, including trade secret and copyright laws.
|
|
14
|
+
* Dissemination of this information or reproduction of this material
|
|
15
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
16
|
+
* from Adobe.
|
|
17
|
+
**************************************************************************/
|
|
18
|
+
import { type TodoStore } from '../create-todo-store.js';
|
|
19
|
+
export declare const createTodo: (t: TodoStore, props: {
|
|
20
|
+
name: string;
|
|
21
|
+
complete?: boolean;
|
|
22
|
+
}) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const createTodo = (t, props) => {
|
|
2
|
+
t.undoable = { coalesce: false };
|
|
3
|
+
const order = t.archetypes.Todo.rowCount;
|
|
4
|
+
// TODO: Figure out why the order seems to be zero on each added row.
|
|
5
|
+
return t.archetypes.Todo.insert({
|
|
6
|
+
...props,
|
|
7
|
+
complete: props.complete ?? false,
|
|
8
|
+
todo: true,
|
|
9
|
+
order,
|
|
10
|
+
dragPosition: null,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=create-todo.js.map
|