@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,66 @@
|
|
|
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 { html } from 'lit';
|
|
19
|
+
import { useDragTransaction } from '../../../../lit/hooks/index.js';
|
|
20
|
+
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
21
|
+
import '@spectrum-web-components/checkbox/sp-checkbox.js';
|
|
22
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-delete.js';
|
|
23
|
+
const TODO_ROW_HEIGHT = 56;
|
|
24
|
+
// Simplified localization for sample - using static strings
|
|
25
|
+
const localizedStrings = {
|
|
26
|
+
deleteTodo: 'Delete',
|
|
27
|
+
toggleComplete: 'Toggle complete',
|
|
28
|
+
};
|
|
29
|
+
export function render(args) {
|
|
30
|
+
const { localized, todo, toggleComplete, deleteTodo, index, dragTodo } = args;
|
|
31
|
+
useDragTransaction(() => ({
|
|
32
|
+
transaction: dragTodo,
|
|
33
|
+
update: (value) => {
|
|
34
|
+
if (value.type === 'move') {
|
|
35
|
+
return {
|
|
36
|
+
todo: todo.id,
|
|
37
|
+
dragPosition: value.delta[1],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
else if (value.type === 'end') {
|
|
41
|
+
const finalIndex = index + Math.round(value.position[1] / TODO_ROW_HEIGHT);
|
|
42
|
+
return {
|
|
43
|
+
todo: todo.id,
|
|
44
|
+
dragPosition: index,
|
|
45
|
+
finalIndex,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
}), [dragTodo, todo.id, index]);
|
|
50
|
+
const dragging = todo.dragPosition !== null;
|
|
51
|
+
const position = index * TODO_ROW_HEIGHT + (todo.dragPosition ?? 0);
|
|
52
|
+
return html `
|
|
53
|
+
<div
|
|
54
|
+
class="todo-row ${dragging ? 'dragging' : ''}"
|
|
55
|
+
style="height: ${TODO_ROW_HEIGHT}px; position: absolute; top: ${position}px; left: 0; right: 0;">
|
|
56
|
+
<sp-checkbox @change=${toggleComplete} title=${localized.toggleComplete} ?checked=${todo.complete}> </sp-checkbox>
|
|
57
|
+
|
|
58
|
+
<span class="todo-name"> ${index}: ${todo.name} </span>
|
|
59
|
+
|
|
60
|
+
<sp-action-button @click=${deleteTodo} quiet title=${localized.deleteTodo}>
|
|
61
|
+
<sp-icon-delete slot="icon"></sp-icon-delete>
|
|
62
|
+
</sp-action-button>
|
|
63
|
+
</div>
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=todo-row-presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-row-presentation.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-row/todo-row-presentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,4DAA4D,CAAC;AACpE,OAAO,kDAAkD,CAAC;AAC1D,OAAO,iEAAiE,CAAC;AAMzE,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,gBAAgB,GAAG;IACvB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAWX,MAAM,UAAU,MAAM,CAAC,IAAgB;IACrC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAE9E,kBAAkB,CAAC,GAAG,EAAE,CAAC,CAAC;QACxB,WAAW,EAAE,QAAQ;QACrB,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBAC1B,OAAO;oBACL,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;iBAC7B,CAAC;YACJ,CAAC;iBAAM,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;gBAChC,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC;gBAC3E,OAAO;oBACL,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,YAAY,EAAE,KAAK;oBACnB,UAAU;iBACX,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;IAEhC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IAC5C,MAAM,QAAQ,GAAG,KAAK,GAAG,eAAe,GAAG,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;IAEpE,OAAO,IAAI,CAAA;;wBAEW,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;uBAC3B,eAAe,gCAAgC,QAAQ;6BACjD,cAAc,UAAU,SAAS,CAAC,cAAc,aAAa,IAAI,CAAC,QAAQ;;iCAEtE,KAAK,KAAK,IAAI,CAAC,IAAI;;iCAEnB,UAAU,gBAAgB,SAAS,CAAC,UAAU;;;;GAI5E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
:host {
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.todo-row {
|
|
25
|
+
--todo-row-height: 56px;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--spectrum-spacing-200);
|
|
30
|
+
padding: var(--spectrum-spacing-200) var(--spectrum-spacing-300);
|
|
31
|
+
border-bottom: 1px solid var(--spectrum-gray-200);
|
|
32
|
+
min-height: var(--todo-row-height);
|
|
33
|
+
height: var(--todo-row-height);
|
|
34
|
+
contain: layout paint style; /* or at least paint/layout */
|
|
35
|
+
content-visibility: auto; /* skip offscreen work: https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility */
|
|
36
|
+
contain-intrinsic-size: 500px var(--todo-row-height); /* reserve space so auto can skip paint: https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size */
|
|
37
|
+
transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.todo-row.dragging {
|
|
41
|
+
background-color: var(--spectrum-gray-100);
|
|
42
|
+
z-index: 100;
|
|
43
|
+
box-shadow: 0 0 10px var(--spectrum-gray-300);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.todo-row:hover {
|
|
47
|
+
background-color: var(--spectrum-gray-100);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.todo-name {
|
|
51
|
+
flex: 1;
|
|
52
|
+
font-size: var(--spectrum-font-size-100);
|
|
53
|
+
line-height: var(--spectrum-line-height-100);
|
|
54
|
+
color: var(--spectrum-gray-800);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
sp-checkbox {
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
sp-action-button {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
//# sourceMappingURL=todo-row.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-row.css.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-row/todo-row.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Entity } from '@adobe/data/ecs';
|
|
2
|
+
import { TodoElement } from '../../todo-element.js';
|
|
3
|
+
export declare const tagName = "data-todo-row";
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
[tagName]: TodoRow;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class TodoRow extends TodoElement {
|
|
10
|
+
static styles: import("lit").CSSResult;
|
|
11
|
+
entity: Entity;
|
|
12
|
+
index: number;
|
|
13
|
+
render(): import("lit").TemplateResult<1> | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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-row-presentation.js';
|
|
25
|
+
import { styles } from './todo-row.css.js';
|
|
26
|
+
import { customElement, property } 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-row';
|
|
30
|
+
let TodoRow = class TodoRow extends TodoElement {
|
|
31
|
+
static { this.styles = styles; }
|
|
32
|
+
render() {
|
|
33
|
+
const localized = { toggleComplete: 'Toggle complete', deleteTodo: 'Delete' };
|
|
34
|
+
const values = useObservableValues(() => ({
|
|
35
|
+
todo: this.service.state.observe.entity(this.entity, this.service.state.archetypes.Todo),
|
|
36
|
+
}));
|
|
37
|
+
if (!values || !values.todo)
|
|
38
|
+
return;
|
|
39
|
+
return presentation.render({
|
|
40
|
+
...values,
|
|
41
|
+
localized,
|
|
42
|
+
todo: values.todo,
|
|
43
|
+
toggleComplete: () => this.service.state.transactions.toggleComplete(this.entity),
|
|
44
|
+
deleteTodo: () => this.service.state.transactions.deleteTodo(this.entity),
|
|
45
|
+
dragTodo: this.service.state.transactions.dragTodo,
|
|
46
|
+
index: this.index,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
__decorate([
|
|
51
|
+
property({ type: Number })
|
|
52
|
+
], TodoRow.prototype, "entity", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
property({ type: Number })
|
|
55
|
+
], TodoRow.prototype, "index", void 0);
|
|
56
|
+
TodoRow = __decorate([
|
|
57
|
+
customElement(tagName)
|
|
58
|
+
], TodoRow);
|
|
59
|
+
export { TodoRow };
|
|
60
|
+
//# sourceMappingURL=todo-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-row.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-row/todo-row.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAShC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW;aAC/B,WAAM,GAAG,MAAM,AAAT,CAAU;IAQvB,MAAM;QACJ,MAAM,SAAS,GAAG,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAW,CAAC;QACvF,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,EAAE,CAAC,CAAC;YACxC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;SACzF,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI;YAAE,OAAO;QAEpC,OAAO,YAAY,CAAC,MAAM,CAAC;YACzB,GAAG,MAAM;YACT,SAAS;YACT,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YACjF,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;YACzE,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ;YAClD,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;;AAtBD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACX;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACZ;AAPJ,OAAO;IADnB,aAAa,CAAC,OAAO,CAAC;GACV,OAAO,CA2BnB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 './todo-toolbar.js';
|
|
@@ -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
|
+
export * from './todo-toolbar.js';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-toolbar/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '../todo-undo-redo/index.js';
|
|
2
|
+
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
3
|
+
declare const localizedStrings: {
|
|
4
|
+
readonly add1Todo: "Add 1 Todo";
|
|
5
|
+
readonly add10Todos: "Add 10 Todos";
|
|
6
|
+
readonly add1000Todos: "Add 1000 Todos";
|
|
7
|
+
readonly clearCompleted: "Clear Completed";
|
|
8
|
+
readonly toggleAll: "Toggle All";
|
|
9
|
+
readonly todoCount: "todos";
|
|
10
|
+
readonly completedCount: "completed";
|
|
11
|
+
};
|
|
12
|
+
type RenderArgs = {
|
|
13
|
+
localized: typeof localizedStrings;
|
|
14
|
+
todoCount: number;
|
|
15
|
+
completedCount: number;
|
|
16
|
+
isGenerating: boolean;
|
|
17
|
+
createBulkTodos: (count: number) => void;
|
|
18
|
+
clearCompleted: () => void;
|
|
19
|
+
toggleAll: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare function render(args: RenderArgs): import("lit").TemplateResult<1>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { html } from 'lit';
|
|
19
|
+
import '../todo-undo-redo/index.js';
|
|
20
|
+
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
21
|
+
// Temporarily disable localization for the sample
|
|
22
|
+
// import { Localized, Unlocalized } from '../../../../services/locale-service/locale-service.js';
|
|
23
|
+
// Simplified localization for sample - using static strings
|
|
24
|
+
const localizedStrings = {
|
|
25
|
+
add1Todo: 'Add 1 Todo',
|
|
26
|
+
add10Todos: 'Add 10 Todos',
|
|
27
|
+
add1000Todos: 'Add 1000 Todos',
|
|
28
|
+
clearCompleted: 'Clear Completed',
|
|
29
|
+
toggleAll: 'Toggle All',
|
|
30
|
+
todoCount: 'todos',
|
|
31
|
+
completedCount: 'completed',
|
|
32
|
+
};
|
|
33
|
+
export function render(args) {
|
|
34
|
+
const { localized, todoCount, completedCount, isGenerating, createBulkTodos, clearCompleted, toggleAll } = args;
|
|
35
|
+
return html `
|
|
36
|
+
<div class="todo-toolbar">
|
|
37
|
+
<div class="toolbar-left">
|
|
38
|
+
<data-todo-undo-redo></data-todo-undo-redo>
|
|
39
|
+
<sp-action-button @click=${toggleAll} ?disabled=${isGenerating} quiet> ${localized.toggleAll} </sp-action-button>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="toolbar-center">
|
|
43
|
+
<sp-action-button @click=${() => createBulkTodos(1)} ?disabled=${isGenerating}> ${localized.add1Todo} </sp-action-button>
|
|
44
|
+
<sp-action-button @click=${() => createBulkTodos(10)} ?disabled=${isGenerating}> ${localized.add10Todos} </sp-action-button>
|
|
45
|
+
<sp-action-button @click=${() => createBulkTodos(1000)} ?disabled=${isGenerating}> ${localized.add1000Todos} </sp-action-button>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="toolbar-right">
|
|
49
|
+
<sp-action-button @click=${clearCompleted} ?disabled=${completedCount === 0 || isGenerating} quiet>
|
|
50
|
+
${localized.clearCompleted}
|
|
51
|
+
</sp-action-button>
|
|
52
|
+
<span class="todo-stats"> ${completedCount} / ${todoCount} </span>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=todo-toolbar-presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-toolbar-presentation.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,4BAA4B,CAAC;AACpC,OAAO,4DAA4D,CAAC;AAEpE,kDAAkD;AAClD,kGAAkG;AAElG,4DAA4D;AAC5D,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE,cAAc;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,WAAW;CACnB,CAAC;AAYX,MAAM,UAAU,MAAM,CAAC,IAAgB;IACrC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAEhH,OAAO,IAAI,CAAA;;;;mCAIsB,SAAS,cAAc,YAAY,WAAW,SAAS,CAAC,SAAS;;;;mCAIjE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,YAAY,KAAK,SAAS,CAAC,QAAQ;mCACzE,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,cAAc,YAAY,KAAK,SAAS,CAAC,UAAU;mCAC5E,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,YAAY,KAAK,SAAS,CAAC,YAAY;;;;mCAIhF,cAAc,cAAc,cAAc,KAAK,CAAC,IAAI,YAAY;YACvF,SAAS,CAAC,cAAc;;oCAEA,cAAc,MAAM,SAAS;;;GAG9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
.todo-toolbar {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
padding: var(--spectrum-spacing-200) var(--spectrum-spacing-300);
|
|
25
|
+
background-color: var(--spectrum-gray-100);
|
|
26
|
+
border-bottom: 1px solid var(--spectrum-gray-300);
|
|
27
|
+
gap: var(--spectrum-spacing-200);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.toolbar-left,
|
|
31
|
+
.toolbar-center,
|
|
32
|
+
.toolbar-right {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--spectrum-spacing-100);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.toolbar-center {
|
|
39
|
+
flex: 1;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.todo-stats {
|
|
44
|
+
font-size: var(--spectrum-font-size-100);
|
|
45
|
+
color: var(--spectrum-gray-600);
|
|
46
|
+
margin-left: var(--spectrum-spacing-200);
|
|
47
|
+
width: 100px;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
//# sourceMappingURL=todo-toolbar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-toolbar.css.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-toolbar/todo-toolbar.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TodoElement } from '../../todo-element.js';
|
|
2
|
+
export declare const tagName = "data-todo-toolbar";
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
[tagName]: TodoToolbar;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class TodoToolbar extends TodoElement {
|
|
9
|
+
static styles: import("lit").CSSResult[];
|
|
10
|
+
render(): import("lit").TemplateResult<1> | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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-toolbar-presentation.js';
|
|
25
|
+
import { styles } from './todo-toolbar.css.js';
|
|
26
|
+
import { withMap } from '@adobe/data/observe';
|
|
27
|
+
import { customElement } from 'lit/decorators.js';
|
|
28
|
+
import { css } from 'lit';
|
|
29
|
+
import { useObservableValues } from '../../../../lit/hooks/index.js';
|
|
30
|
+
import { TodoElement } from '../../todo-element.js';
|
|
31
|
+
export const tagName = 'data-todo-toolbar';
|
|
32
|
+
let TodoToolbar = class TodoToolbar extends TodoElement {
|
|
33
|
+
static { this.styles = [
|
|
34
|
+
styles,
|
|
35
|
+
css `
|
|
36
|
+
:host {
|
|
37
|
+
display: block;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
`
|
|
42
|
+
]; }
|
|
43
|
+
render() {
|
|
44
|
+
const localized = {
|
|
45
|
+
add1Todo: 'Add 1 Todo',
|
|
46
|
+
add10Todos: 'Add 10 Todos',
|
|
47
|
+
add1000Todos: 'Add 1000 Todos',
|
|
48
|
+
clearCompleted: 'Clear Completed',
|
|
49
|
+
toggleAll: 'Toggle All',
|
|
50
|
+
todoCount: 'todos',
|
|
51
|
+
completedCount: 'completed',
|
|
52
|
+
};
|
|
53
|
+
const values = useObservableValues(() => ({
|
|
54
|
+
completedCount: withMap(this.service.dependentState.completeTodos, todos => todos.length),
|
|
55
|
+
todoCount: withMap(this.service.dependentState.allTodos, todos => todos.length),
|
|
56
|
+
}));
|
|
57
|
+
if (!values)
|
|
58
|
+
return;
|
|
59
|
+
return presentation.render({
|
|
60
|
+
...values,
|
|
61
|
+
localized,
|
|
62
|
+
isGenerating: false,
|
|
63
|
+
createBulkTodos: this.service.state.transactions.createBulkTodos,
|
|
64
|
+
clearCompleted: () => {
|
|
65
|
+
// Placeholder - would need to implement this transaction
|
|
66
|
+
},
|
|
67
|
+
toggleAll: () => {
|
|
68
|
+
// Placeholder - would need to implement this transaction
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
TodoToolbar = __decorate([
|
|
74
|
+
customElement(tagName)
|
|
75
|
+
], TodoToolbar);
|
|
76
|
+
export { TodoToolbar };
|
|
77
|
+
//# sourceMappingURL=todo-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-toolbar.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-toolbar/todo-toolbar.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC;AASpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;aACnC,WAAM,GAAG;QACd,MAAM;QACN,GAAG,CAAA;;;;;;KAMF;KACF,AATY,CASX;IAEF,MAAM;QACJ,MAAM,SAAS,GAAG;YAChB,QAAQ,EAAE,YAAY;YACtB,UAAU,EAAE,cAAc;YAC1B,YAAY,EAAE,gBAAgB;YAC9B,cAAc,EAAE,iBAAiB;YACjC,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,OAAO;YAClB,cAAc,EAAE,WAAW;SACnB,CAAC;QACX,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,EAAE,CAAC,CAAC;YACxC,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YACzF,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;SAChF,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,OAAO,YAAY,CAAC,MAAM,CAAC;YACzB,GAAG,MAAM;YACT,SAAS;YACT,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe;YAChE,cAAc,EAAE,GAAG,EAAE;gBACnB,yDAAyD;YAC3D,CAAC;YACD,SAAS,EAAE,GAAG,EAAE;gBACd,yDAAyD;YAC3D,CAAC;SACF,CAAC,CAAC;IACL,CAAC;;AAzCU,WAAW;IADvB,aAAa,CAAC,OAAO,CAAC;GACV,WAAW,CA0CvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 './todo-undo-redo.js';
|
|
@@ -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
|
+
export * from './todo-undo-redo.js';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-undo-redo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAE5E,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
2
|
+
import '@spectrum-web-components/action-group/sp-action-group.js';
|
|
3
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-redo.js';
|
|
4
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-undo.js';
|
|
5
|
+
declare const localizedStrings: {
|
|
6
|
+
readonly undo: "Undo";
|
|
7
|
+
readonly redo: "Redo";
|
|
8
|
+
};
|
|
9
|
+
type RenderArgs = {
|
|
10
|
+
localized: typeof localizedStrings;
|
|
11
|
+
hasUndo: boolean;
|
|
12
|
+
hasRedo: boolean;
|
|
13
|
+
undo: () => void;
|
|
14
|
+
redo: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function render(args: RenderArgs): import("lit").TemplateResult<1>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { html } from 'lit';
|
|
19
|
+
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
20
|
+
import '@spectrum-web-components/action-group/sp-action-group.js';
|
|
21
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-redo.js';
|
|
22
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-undo.js';
|
|
23
|
+
// Temporarily disable localization for the sample
|
|
24
|
+
// import { Localized, Unlocalized } from '../../../../services/locale-service/locale-service.js';
|
|
25
|
+
// Simplified localization for sample - using static strings
|
|
26
|
+
const localizedStrings = {
|
|
27
|
+
undo: 'Undo',
|
|
28
|
+
redo: 'Redo',
|
|
29
|
+
};
|
|
30
|
+
export function render(args) {
|
|
31
|
+
const { localized, hasUndo, hasRedo, undo, redo } = args;
|
|
32
|
+
return html `
|
|
33
|
+
<sp-action-group>
|
|
34
|
+
<sp-action-button @click=${undo} ?disabled=${!hasUndo} quiet>
|
|
35
|
+
<sp-icon-undo slot="icon"></sp-icon-undo>
|
|
36
|
+
${localized.undo}
|
|
37
|
+
</sp-action-button>
|
|
38
|
+
<sp-action-button @click=${redo} ?disabled=${!hasRedo} quiet>
|
|
39
|
+
<sp-icon-redo slot="icon"></sp-icon-redo>
|
|
40
|
+
${localized.redo}
|
|
41
|
+
</sp-action-button>
|
|
42
|
+
</sp-action-group>
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=todo-undo-redo-presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-undo-redo-presentation.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,4DAA4D,CAAC;AACpE,OAAO,0DAA0D,CAAC;AAClE,OAAO,+DAA+D,CAAC;AACvE,OAAO,+DAA+D,CAAC;AAEvE,kDAAkD;AAClD,kGAAkG;AAElG,4DAA4D;AAC5D,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAUX,MAAM,UAAU,MAAM,CAAC,IAAgB;IACrC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEzD,OAAO,IAAI,CAAA;;iCAEoB,IAAI,cAAc,CAAC,OAAO;;UAEjD,SAAS,CAAC,IAAI;;iCAES,IAAI,cAAc,CAAC,OAAO;;UAEjD,SAAS,CAAC,IAAI;;;GAGrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|