@dxos/plugin-kanban 0.8.4-main.dedc0f3 → 0.8.4-main.dfabb4ec29
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/lib/neutral/KanbanContainer-QK6LNCYT.mjs +132 -0
- package/dist/lib/neutral/KanbanContainer-QK6LNCYT.mjs.map +7 -0
- package/dist/lib/neutral/KanbanPlugin.mjs +36 -0
- package/dist/lib/neutral/KanbanPlugin.mjs.map +7 -0
- package/dist/lib/neutral/KanbanPlugin.node.mjs +27 -0
- package/dist/lib/neutral/KanbanPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs +83 -0
- package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +8 -0
- package/dist/lib/neutral/capabilities/index.mjs +19 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-E65AME5F.mjs +255 -0
- package/dist/lib/neutral/chunk-E65AME5F.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-KDPM77BD.mjs +21 -0
- package/dist/lib/neutral/chunk-KDPM77BD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-Z7O5CETK.mjs +8 -0
- package/dist/lib/neutral/chunk-Z7O5CETK.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZTQW5KQS.mjs +26 -0
- package/dist/lib/neutral/chunk-ZTQW5KQS.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +243 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +11 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-DKBSI46K.mjs +40 -0
- package/dist/lib/neutral/create-object-DKBSI46K.mjs.map +7 -0
- package/dist/lib/neutral/delete-card-QKT6OXGP.mjs +24 -0
- package/dist/lib/neutral/delete-card-QKT6OXGP.mjs.map +7 -0
- package/dist/lib/neutral/delete-card-field-XQKM7ZXE.mjs +42 -0
- package/dist/lib/neutral/delete-card-field-XQKM7ZXE.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +432 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +34 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/migrations-4NS6H7U2.mjs +31 -0
- package/dist/lib/neutral/migrations-4NS6H7U2.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs +13 -0
- package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-6RVSCHMJ.mjs +93 -0
- package/dist/lib/neutral/react-surface-6RVSCHMJ.mjs.map +7 -0
- package/dist/lib/neutral/restore-card-XW7AHMPO.mjs +21 -0
- package/dist/lib/neutral/restore-card-XW7AHMPO.mjs.map +7 -0
- package/dist/lib/neutral/restore-card-field-QOAUY3RJ.mjs +40 -0
- package/dist/lib/neutral/restore-card-field-QOAUY3RJ.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +60 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +44 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +22 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs +42 -0
- package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs.map +7 -0
- package/dist/types/src/KanbanPlugin.d.ts +3 -1
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/KanbanPlugin.node.d.ts +4 -0
- package/dist/types/src/KanbanPlugin.node.d.ts.map +1 -0
- package/dist/types/src/KanbanPlugin.test.d.ts +2 -0
- package/dist/types/src/KanbanPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/kanban-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition.d.ts +3 -2
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -4
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +13 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +37 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +72 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +9 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +8 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/context.d.ts +38 -0
- package/dist/types/src/components/KanbanBoard/context.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts +2 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +6 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts +79 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts +2 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts +13 -0
- package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanSettings/index.d.ts +2 -0
- package/dist/types/src/containers/KanbanSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +7 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts +13 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -0
- package/dist/types/src/hooks/useItemsProjection.d.ts +10 -0
- package/dist/types/src/hooks/useItemsProjection.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts +2 -0
- package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts +16 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +22 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +19 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts +15 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/delete-card-field.d.ts +5 -0
- package/dist/types/src/operations/delete-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/delete-card.d.ts +5 -0
- package/dist/types/src/operations/delete-card.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card-field.d.ts +5 -0
- package/dist/types/src/operations/restore-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card.d.ts +5 -0
- package/dist/types/src/operations/restore-card.d.ts.map +1 -0
- package/dist/types/src/playwright/board-manager.d.ts +5 -0
- package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
- package/dist/types/src/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
- package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts +7 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +50 -22
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Kanban.d.ts +109 -0
- package/dist/types/src/types/Kanban.d.ts.map +1 -0
- package/dist/types/src/types/KanbanOperation.d.ts +52 -0
- package/dist/types/src/types/KanbanOperation.d.ts.map +1 -0
- package/dist/types/src/types/constants.d.ts +6 -0
- package/dist/types/src/types/constants.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/migrations.test.d.ts +2 -0
- package/dist/types/src/types/migrations.test.d.ts.map +1 -0
- package/dist/types/src/types/schema.d.ts +18 -52
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +28 -0
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/arrangement.d.ts +72 -0
- package/dist/types/src/util/arrangement.d.ts.map +1 -0
- package/dist/types/src/util/arrangement.test.d.ts +2 -0
- package/dist/types/src/util/arrangement.test.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +120 -57
- package/src/KanbanPlugin.node.ts +21 -0
- package/src/KanbanPlugin.test.ts +31 -0
- package/src/KanbanPlugin.tsx +29 -57
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/kanban-blueprint.ts +27 -0
- package/src/capabilities/artifact-definition.ts +117 -113
- package/src/capabilities/blueprint-definition.ts +13 -24
- package/src/capabilities/create-object.ts +40 -0
- package/src/capabilities/index.ts +12 -4
- package/src/capabilities/migrations.ts +35 -0
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/react-surface.tsx +79 -68
- package/src/capabilities/undo-mappings.ts +34 -0
- package/src/components/KanbanBoard/KanbanBoard.stories.tsx +146 -0
- package/src/components/KanbanBoard/KanbanBoard.tsx +164 -0
- package/src/components/KanbanBoard/KanbanCard.tsx +101 -0
- package/src/components/KanbanBoard/KanbanColumn.tsx +72 -0
- package/src/components/KanbanBoard/context.ts +54 -0
- package/src/components/KanbanBoard/index.ts +5 -0
- package/src/components/index.ts +1 -2
- package/src/containers/KanbanContainer/KanbanContainer.stories.tsx +277 -0
- package/src/containers/KanbanContainer/KanbanContainer.tsx +178 -0
- package/src/containers/KanbanContainer/index.ts +5 -0
- package/src/containers/KanbanSettings/KanbanSettings.tsx +94 -0
- package/src/containers/KanbanSettings/index.ts +5 -0
- package/src/containers/index.ts +8 -0
- package/src/hooks/index.ts +10 -0
- package/src/hooks/useEchoChangeCallback.ts +30 -0
- package/src/hooks/useItemsProjection.ts +44 -0
- package/src/hooks/useKanbanBoardModel.browser.test.ts +235 -0
- package/src/hooks/useKanbanBoardModel.ts +157 -0
- package/src/hooks/useKanbanColumnEventHandler.ts +106 -0
- package/src/hooks/useKanbanItemEventHandler.ts +133 -0
- package/src/hooks/useProjectionModel.ts +58 -0
- package/src/index.ts +3 -2
- package/src/meta.ts +9 -7
- package/src/operations/delete-card-field.ts +47 -0
- package/src/operations/delete-card.ts +23 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/restore-card-field.ts +41 -0
- package/src/operations/restore-card.ts +21 -0
- package/src/playwright/board-manager.ts +13 -0
- package/src/playwright/playwright.config.ts +19 -0
- package/src/playwright/smoke.spec.ts +107 -0
- package/src/plugin.ts +11 -0
- package/src/testing/KanbanCardTileSimple.tsx +82 -0
- package/src/testing/index.ts +5 -0
- package/src/translations.ts +28 -20
- package/src/types/Kanban.ts +151 -0
- package/src/types/KanbanOperation.ts +67 -0
- package/src/types/constants.ts +9 -0
- package/src/types/index.ts +4 -0
- package/src/types/migrations.test.ts +83 -0
- package/src/types/schema.ts +33 -45
- package/src/types/types.ts +35 -0
- package/src/util/arrangement.test.ts +218 -0
- package/src/util/arrangement.ts +177 -0
- package/src/util/index.ts +5 -0
- package/dist/lib/browser/blueprint-definition-GFG7LX2C.mjs +0 -28
- package/dist/lib/browser/blueprint-definition-GFG7LX2C.mjs.map +0 -7
- package/dist/lib/browser/chunk-NCNNL74W.mjs +0 -82
- package/dist/lib/browser/chunk-NCNNL74W.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -106
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-KHOAFPNN.mjs +0 -111
- package/dist/lib/browser/intent-resolver-KHOAFPNN.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-UBRYXDKS.mjs +0 -253
- package/dist/lib/browser/react-surface-UBRYXDKS.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -11
- package/dist/lib/node-esm/blueprint-definition-MIMDXMUM.mjs +0 -30
- package/dist/lib/node-esm/blueprint-definition-MIMDXMUM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5B3LKGA7.mjs +0 -84
- package/dist/lib/node-esm/chunk-5B3LKGA7.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -107
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-MKO5HVES.mjs +0 -112
- package/dist/lib/node-esm/intent-resolver-MKO5HVES.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-B2FPS52G.mjs +0 -254
- package/dist/lib/node-esm/react-surface-B2FPS52G.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -12
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.d.ts +0 -7
- package/dist/types/src/components/KanbanContainer.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.stories.d.ts +0 -41
- package/dist/types/src/components/KanbanContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/KanbanViewEditor.d.ts +0 -8
- package/dist/types/src/components/KanbanViewEditor.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -71
- package/src/components/KanbanContainer.stories.tsx +0 -190
- package/src/components/KanbanContainer.tsx +0 -95
- package/src/components/KanbanViewEditor.tsx +0 -62
- /package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KanbanOperation_exports
|
|
3
|
+
} from "./chunk-E65AME5F.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/operations/restore-card-field.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
9
|
+
import { Operation } from "@dxos/compute";
|
|
10
|
+
import { JsonSchema, Obj } from "@dxos/echo";
|
|
11
|
+
import { invariant } from "@dxos/invariant";
|
|
12
|
+
import { ProjectionModel, createEchoChangeCallback, getTypenameFromQuery } from "@dxos/schema";
|
|
13
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-kanban/src/operations/restore-card-field.ts";
|
|
14
|
+
var handler = KanbanOperation_exports.RestoreCardField.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ view, field, props, index }) {
|
|
15
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
16
|
+
const db = Obj.getDatabase(view);
|
|
17
|
+
invariant(db, "Database not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["db", "'Database not found'"] });
|
|
18
|
+
const schema = yield* Effect.promise(() => db.schemaRegistry.query({
|
|
19
|
+
typename: getTypenameFromQuery(view.query.ast),
|
|
20
|
+
location: [
|
|
21
|
+
"database",
|
|
22
|
+
"runtime"
|
|
23
|
+
]
|
|
24
|
+
}).first());
|
|
25
|
+
const projection = new ProjectionModel({
|
|
26
|
+
registry,
|
|
27
|
+
view,
|
|
28
|
+
baseSchema: JsonSchema.toJsonSchema(schema),
|
|
29
|
+
change: createEchoChangeCallback(view, schema)
|
|
30
|
+
});
|
|
31
|
+
projection.setFieldProjection({
|
|
32
|
+
field,
|
|
33
|
+
props
|
|
34
|
+
}, index);
|
|
35
|
+
})));
|
|
36
|
+
var restore_card_field_default = handler;
|
|
37
|
+
export {
|
|
38
|
+
restore_card_field_default as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=restore-card-field-QOAUY3RJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/restore-card-field.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { JsonSchema, Obj } from '@dxos/echo';\nimport { type EchoSchema } from '@dxos/echo/internal';\nimport { invariant } from '@dxos/invariant';\nimport { ProjectionModel, createEchoChangeCallback, getTypenameFromQuery } from '@dxos/schema';\n\nimport { KanbanOperation } from '../types';\n\nconst handler: Operation.WithHandler<typeof KanbanOperation.RestoreCardField> = KanbanOperation.RestoreCardField.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ view, field, props, index }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const db = Obj.getDatabase(view);\n invariant(db, 'Database not found');\n const schema = yield* Effect.promise(() =>\n db.schemaRegistry\n .query({\n typename: getTypenameFromQuery(view.query.ast)!,\n location: ['database', 'runtime'],\n })\n .first(),\n );\n\n const projection = new ProjectionModel({\n registry,\n view,\n baseSchema: JsonSchema.toJsonSchema(schema),\n change: createEchoChangeCallback(view, schema as EchoSchema),\n });\n\n projection.setFieldProjection({ field, props }, index);\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;AAEA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,WAAW;AAEhC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiBC,0BAA0BC,4BAA4B;AAIhF,IAAA,eAAgFC;IAI1E,UAAWC,wBAAgBC,iBAAAA,KAAAA,UAAAA,YAAAA,kBAAAA,WAAAA,EAAAA,MAAAA,OAAAA,OAAAA,MAAAA,GAAAA;AAC3BC,QAAAA,WAAc,OAAA,WAAA,IAAA,aAAA,YAAA;AACd,QAAMC,KAAAA,IAAS,YAAOC,IAAOC;YAGvBC,IAAAA,sBAAUC,EAAAA,YAA0BC,YAAS,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,MAAA,sBAAA,EAAA,CAAA;iBAC7CC,OAAU,eAAA,MAAA,GAAA,eAAA,MAAA;cAAC,qBAAA,KAAA,MAAA,GAAA;cAAY;MAAU;MAE7B;IAGJC;EACJC,CAAAA,EAAAA,MAAAA,CAAAA;QACAV,aAAAA,IAAAA,gBAAAA;IACAW;IACAC;IACF,YAAA,WAAA,aAAA,MAAA;IAEAH,QAAWI,yBAAmB,MAAA,MAAA;;aAASC,mBAAAA;IAASC;IAClD;EAIJ,GAAA,KAAA;;;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "Operation", "JsonSchema", "Obj", "invariant", "ProjectionModel", "createEchoChangeCallback", "getTypenameFromQuery", "KanbanOperation", "Obj", "view", "invariant", "schema", "Effect", "promise", "typename", "getTypenameFromQuery", "query", "location", "projection", "registry", "baseSchema", "change", "setFieldProjection", "props", "index"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/testing/KanbanCardTileSimple.tsx
|
|
4
|
+
import React, { forwardRef, useCallback, useMemo, useState } from "react";
|
|
5
|
+
import { Obj } from "@dxos/echo";
|
|
6
|
+
import { Card, Toolbar, useTranslation } from "@dxos/react-ui";
|
|
7
|
+
import { Menu, createMenuAction } from "@dxos/react-ui-menu";
|
|
8
|
+
import { Focus, Mosaic, useBoard } from "@dxos/react-ui-mosaic";
|
|
9
|
+
import { useKanbanBoard } from "#components";
|
|
10
|
+
import { meta } from "#meta";
|
|
11
|
+
var KANBAN_CARD_TILE_SIMPLE_NAME = "KanbanCardTileSimple";
|
|
12
|
+
var KanbanCardTileSimple = /* @__PURE__ */ forwardRef(({ data, location, debug }, forwardedRef) => {
|
|
13
|
+
const { t } = useTranslation(meta.id);
|
|
14
|
+
const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
|
|
15
|
+
const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
|
|
16
|
+
const [dragHandle, setDragHandle] = useState(null);
|
|
17
|
+
const dragHandleRef = useCallback((el) => setDragHandle(el), []);
|
|
18
|
+
const menuItems = useMemo(() => onCardRemove ? [
|
|
19
|
+
createMenuAction("remove", () => onCardRemove(data), {
|
|
20
|
+
label: t("remove-card.label"),
|
|
21
|
+
icon: "ph--trash--regular"
|
|
22
|
+
})
|
|
23
|
+
] : [], [
|
|
24
|
+
onCardRemove,
|
|
25
|
+
data,
|
|
26
|
+
t
|
|
27
|
+
]);
|
|
28
|
+
return /* @__PURE__ */ React.createElement(Menu.Root, null, /* @__PURE__ */ React.createElement(Mosaic.Tile, {
|
|
29
|
+
asChild: true,
|
|
30
|
+
id: model.getItemId(data),
|
|
31
|
+
data,
|
|
32
|
+
location,
|
|
33
|
+
debug,
|
|
34
|
+
dragHandle
|
|
35
|
+
}, /* @__PURE__ */ React.createElement(Focus.Item, {
|
|
36
|
+
asChild: true
|
|
37
|
+
}, /* @__PURE__ */ React.createElement(Card.Root, {
|
|
38
|
+
ref: forwardedRef,
|
|
39
|
+
"data-testid": "board-item"
|
|
40
|
+
}, /* @__PURE__ */ React.createElement(Card.Toolbar, null, /* @__PURE__ */ React.createElement(Card.DragHandle, {
|
|
41
|
+
ref: dragHandleRef
|
|
42
|
+
}), /* @__PURE__ */ React.createElement(Card.Title, null, Obj.getLabel(data)), /* @__PURE__ */ React.createElement(Menu.Trigger, {
|
|
43
|
+
asChild: true,
|
|
44
|
+
disabled: !menuItems?.length
|
|
45
|
+
}, /* @__PURE__ */ React.createElement(Toolbar.IconButton, {
|
|
46
|
+
iconOnly: true,
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
icon: "ph--dots-three-vertical--regular",
|
|
49
|
+
label: t("action-menu.label")
|
|
50
|
+
})), /* @__PURE__ */ React.createElement(Menu.Content, {
|
|
51
|
+
items: menuItems
|
|
52
|
+
})), /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Card.Section, null, /* @__PURE__ */ React.createElement("pre", {
|
|
53
|
+
className: "p-2 text-xs text-description whitespace-pre-wrap"
|
|
54
|
+
}, JSON.stringify(data, null, 2))))))));
|
|
55
|
+
});
|
|
56
|
+
KanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;
|
|
57
|
+
export {
|
|
58
|
+
KanbanCardTileSimple
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/testing/KanbanCardTileSimple.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { forwardRef, useCallback, useMemo, useState } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { Card, Toolbar, useTranslation } from '@dxos/react-ui';\nimport { Menu, createMenuAction } from '@dxos/react-ui-menu';\nimport { Focus, Mosaic, useBoard } from '@dxos/react-ui-mosaic';\n\nimport { type KanbanCardProps, useKanbanBoard } from '#components';\nimport { meta } from '#meta';\n\nconst KANBAN_CARD_TILE_SIMPLE_NAME = 'KanbanCardTileSimple';\n\n/**\n * Card tile without Surface; for stories and tests when plugin manager is not available.\n */\nexport const KanbanCardTileSimple = forwardRef<HTMLDivElement, KanbanCardProps>(\n ({ data, location, debug }, forwardedRef) => {\n const { t } = useTranslation(meta.id);\n const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);\n const dragHandleRef = useCallback((el: HTMLButtonElement | null) => setDragHandle(el), []);\n\n const menuItems = useMemo(\n () =>\n onCardRemove\n ? [\n createMenuAction('remove', () => onCardRemove(data), {\n label: t('remove-card.label'),\n icon: 'ph--trash--regular',\n }),\n ]\n : [],\n [onCardRemove, data, t],\n );\n\n return (\n <Menu.Root>\n <Mosaic.Tile\n asChild\n id={model.getItemId(data)}\n data={data}\n location={location}\n debug={debug}\n dragHandle={dragHandle}\n >\n <Focus.Item asChild>\n <Card.Root ref={forwardedRef} data-testid='board-item'>\n <Card.Toolbar>\n <Card.DragHandle ref={dragHandleRef} />\n <Card.Title>{Obj.getLabel(data)}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Menu.Trigger asChild disabled={!menuItems?.length}>\n <Toolbar.IconButton\n iconOnly\n variant='ghost'\n icon='ph--dots-three-vertical--regular'\n label={t('action-menu.label')}\n />\n </Menu.Trigger>\n <Menu.Content items={menuItems} />\n </Card.Toolbar>\n <Card.Content>\n <Card.Section>\n <pre className='p-2 text-xs text-description whitespace-pre-wrap'>\n {JSON.stringify(data, null, 2)}\n </pre>\n </Card.Section>\n </Card.Content>\n </Card.Root>\n </Focus.Item>\n </Mosaic.Tile>\n </Menu.Root>\n );\n },\n);\n\nKanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,OAAOA,SAASC,YAAYC,aAAaC,SAASC,gBAAgB;AAElE,SAASC,WAAW;AACpB,SAASC,MAAMC,SAASC,sBAAsB;AAC9C,SAASC,MAAMC,wBAAwB;AACvC,SAASC,OAAOC,QAAQC,gBAAgB;AAExC,SAA+BC,sBAAsB;AACrD,SAASC,YAAY;AAErB,IAAMC,+BAA+B;AAK9B,IAAMC,uBAAuBhB,2BAClC,CAAC,EAAEiB,MAAMC,UAAUC,MAAK,GAAIC,iBAAAA;AAC1B,QAAM,EAAEC,EAAC,IAAKd,eAAeO,KAAKQ,EAAE;AACpC,QAAM,EAAEC,MAAK,IAAKX,SAASG,4BAAAA;AAC3B,QAAM,EAAES,aAAY,IAAKX,eAAeE,4BAAAA;AACxC,QAAM,CAACU,YAAYC,aAAAA,IAAiBvB,SAAmC,IAAA;AACvE,QAAMwB,gBAAgB1B,YAAY,CAAC2B,OAAiCF,cAAcE,EAAAA,GAAK,CAAA,CAAE;AAEzF,QAAMC,YAAY3B,QAChB,MACEsB,eACI;IACEf,iBAAiB,UAAU,MAAMe,aAAaP,IAAAA,GAAO;MACnDa,OAAOT,EAAE,mBAAA;MACTU,MAAM;IACR,CAAA;MAEF,CAAA,GACN;IAACP;IAAcP;IAAMI;GAAE;AAGzB,SACE,sBAAA,cAACb,KAAKwB,MAAI,MACR,sBAAA,cAACrB,OAAOsB,MAAI;IACVC,SAAAA;IACAZ,IAAIC,MAAMY,UAAUlB,IAAAA;IACpBA;IACAC;IACAC;IACAM;KAEA,sBAAA,cAACf,MAAM0B,MAAI;IAACF,SAAAA;KACV,sBAAA,cAAC7B,KAAK2B,MAAI;IAACK,KAAKjB;IAAckB,eAAY;KACxC,sBAAA,cAACjC,KAAKC,SAAO,MACX,sBAAA,cAACD,KAAKkC,YAAU;IAACF,KAAKV;MACtB,sBAAA,cAACtB,KAAKmC,OAAK,MAAEpC,IAAIqC,SAASxB,IAAAA,CAAAA,GAE1B,sBAAA,cAACT,KAAKkC,SAAO;IAACR,SAAAA;IAAQS,UAAU,CAACd,WAAWe;KAC1C,sBAAA,cAACtC,QAAQuC,YAAU;IACjBC,UAAAA;IACAC,SAAQ;IACRhB,MAAK;IACLD,OAAOT,EAAE,mBAAA;OAGb,sBAAA,cAACb,KAAKwC,SAAO;IAACC,OAAOpB;OAEvB,sBAAA,cAACxB,KAAK2C,SAAO,MACX,sBAAA,cAAC3C,KAAK6C,SAAO,MACX,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACZC,KAAKC,UAAUrC,MAAM,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAS9C,CAAA;AAGFD,qBAAqBuC,cAAcxC;",
|
|
6
|
+
"names": ["React", "forwardRef", "useCallback", "useMemo", "useState", "Obj", "Card", "Toolbar", "useTranslation", "Menu", "createMenuAction", "Focus", "Mosaic", "useBoard", "useKanbanBoard", "meta", "KANBAN_CARD_TILE_SIMPLE_NAME", "KanbanCardTileSimple", "data", "location", "debug", "forwardedRef", "t", "id", "model", "onCardRemove", "dragHandle", "setDragHandle", "dragHandleRef", "el", "menuItems", "label", "icon", "Root", "Tile", "asChild", "getItemId", "Item", "ref", "data-testid", "DragHandle", "Title", "getLabel", "Trigger", "disabled", "length", "IconButton", "iconOnly", "variant", "Content", "items", "Section", "pre", "className", "JSON", "stringify", "displayName"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { Type } from "@dxos/echo";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
import { Kanban } from "#types";
|
|
7
|
+
var translations = [
|
|
8
|
+
{
|
|
9
|
+
"en-US": {
|
|
10
|
+
[Type.getTypename(Kanban.Kanban)]: {
|
|
11
|
+
"typename.label": "Kanban",
|
|
12
|
+
"typename.label_zero": "Kanbans",
|
|
13
|
+
"typename.label_one": "Kanban",
|
|
14
|
+
"typename.label_other": "Kanbans",
|
|
15
|
+
"object-name.placeholder": "New kanban",
|
|
16
|
+
"add-object.label": "Add kanban",
|
|
17
|
+
"rename-object.label": "Rename kanban",
|
|
18
|
+
"delete-object.label": "Delete kanban",
|
|
19
|
+
"object-deleted.label": "Kanban deleted"
|
|
20
|
+
},
|
|
21
|
+
[meta.id]: {
|
|
22
|
+
"action-menu.label": "Actions",
|
|
23
|
+
"plugin.name": "Kanban",
|
|
24
|
+
"kanban-title.label": "Title",
|
|
25
|
+
"column-title.label": "Column title",
|
|
26
|
+
"column-title.placeholder": "New column",
|
|
27
|
+
"add-column.label": "Add column",
|
|
28
|
+
"add-card.label": "Add card",
|
|
29
|
+
"new-column-name.label": "New column name",
|
|
30
|
+
"remove-card.label": "Remove card",
|
|
31
|
+
"remove-empty-column.label": "Remove empty column",
|
|
32
|
+
"column-drag-handle.label": "Drag to rearrange",
|
|
33
|
+
"delete-column.label": "Delete column",
|
|
34
|
+
"card-field-deleted.label": "Card field deleted",
|
|
35
|
+
"card-deleted.label": "Card deleted",
|
|
36
|
+
"select-pivot.placeholder": "Select a pivot column in board settings to display columns."
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
export {
|
|
42
|
+
translations
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Kanban } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Kanban.Kanban)]: {\n 'typename.label': 'Kanban',\n 'typename.label_zero': 'Kanbans',\n 'typename.label_one': 'Kanban',\n 'typename.label_other': 'Kanbans',\n 'object-name.placeholder': 'New kanban',\n 'add-object.label': 'Add kanban',\n 'rename-object.label': 'Rename kanban',\n 'delete-object.label': 'Delete kanban',\n 'object-deleted.label': 'Kanban deleted',\n },\n [meta.id]: {\n 'action-menu.label': 'Actions',\n 'plugin.name': 'Kanban',\n 'kanban-title.label': 'Title',\n 'column-title.label': 'Column title',\n 'column-title.placeholder': 'New column',\n 'add-column.label': 'Add column',\n 'add-card.label': 'Add card',\n 'new-column-name.label': 'New column name',\n 'remove-card.label': 'Remove card',\n 'remove-empty-column.label': 'Remove empty column',\n 'column-drag-handle.label': 'Drag to rearrange',\n 'delete-column.label': 'Delete column',\n 'card-field-deleted.label': 'Card field deleted',\n 'card-deleted.label': 'Card deleted',\n 'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,cAAc;AAEhB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYF,OAAOA,MAAM,CAAA,GAAI;QACjC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACD,KAAKI,EAAE,GAAG;QACT,qBAAqB;QACrB,eAAe;QACf,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,oBAAoB;QACpB,kBAAkB;QAClB,yBAAyB;QACzB,qBAAqB;QACrB,6BAA6B;QAC7B,4BAA4B;QAC5B,uBAAuB;QACvB,4BAA4B;QAC5B,sBAAsB;QACtB,4BAA4B;MAC9B;IACF;EACF;;",
|
|
6
|
+
"names": ["Type", "meta", "Kanban", "translations", "getTypename", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreateKanbanSchema,
|
|
3
|
+
KanbanOperation_exports,
|
|
4
|
+
KanbanSettingsSchema,
|
|
5
|
+
KanbanViewSettingsSchema,
|
|
6
|
+
Kanban_exports,
|
|
7
|
+
PivotColumnAnnotationId,
|
|
8
|
+
UNCATEGORIZED_ATTRIBUTES,
|
|
9
|
+
UNCATEGORIZED_VALUE
|
|
10
|
+
} from "../chunk-E65AME5F.mjs";
|
|
11
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
12
|
+
export {
|
|
13
|
+
CreateKanbanSchema,
|
|
14
|
+
Kanban_exports as Kanban,
|
|
15
|
+
KanbanOperation_exports as KanbanOperation,
|
|
16
|
+
KanbanSettingsSchema,
|
|
17
|
+
KanbanViewSettingsSchema,
|
|
18
|
+
PivotColumnAnnotationId,
|
|
19
|
+
UNCATEGORIZED_ATTRIBUTES,
|
|
20
|
+
UNCATEGORIZED_VALUE
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/undo-mappings.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capabilities, Capability, UndoMapping } from "@dxos/app-framework";
|
|
6
|
+
import { meta } from "#meta";
|
|
7
|
+
import { KanbanOperation } from "#types";
|
|
8
|
+
var undo_mappings_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.UndoMapping, [
|
|
9
|
+
UndoMapping.make({
|
|
10
|
+
operation: KanbanOperation.DeleteCardField,
|
|
11
|
+
inverse: KanbanOperation.RestoreCardField,
|
|
12
|
+
deriveContext: (input, output) => ({
|
|
13
|
+
view: input.view,
|
|
14
|
+
field: output.field,
|
|
15
|
+
props: output.props,
|
|
16
|
+
index: output.index
|
|
17
|
+
}),
|
|
18
|
+
message: [
|
|
19
|
+
"card-field-deleted.label",
|
|
20
|
+
{
|
|
21
|
+
ns: meta.id
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}),
|
|
25
|
+
UndoMapping.make({
|
|
26
|
+
operation: KanbanOperation.DeleteCard,
|
|
27
|
+
inverse: KanbanOperation.RestoreCard,
|
|
28
|
+
deriveContext: (_input, output) => ({
|
|
29
|
+
card: output.card
|
|
30
|
+
}),
|
|
31
|
+
message: [
|
|
32
|
+
"card-deleted.label",
|
|
33
|
+
{
|
|
34
|
+
ns: meta.id
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
})
|
|
38
|
+
])));
|
|
39
|
+
export {
|
|
40
|
+
undo_mappings_default as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=undo-mappings-6CHW6BOF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/undo-mappings.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoMapping } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\nimport { KanbanOperation } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.UndoMapping, [\n UndoMapping.make({\n operation: KanbanOperation.DeleteCardField,\n inverse: KanbanOperation.RestoreCardField,\n deriveContext: (input, output) => ({\n view: input.view,\n field: output.field,\n props: output.props,\n index: output.index,\n }),\n message: ['card-field-deleted.label', { ns: meta.id }],\n }),\n UndoMapping.make({\n operation: KanbanOperation.DeleteCard,\n inverse: KanbanOperation.RestoreCard,\n deriveContext: (_input, output) => ({\n card: output.card,\n }),\n message: ['card-deleted.label', { ns: meta.id }],\n }),\n ]),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAEA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,mBAAmB;AAEtD,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAEhC,IAAA,wBAAeH,WAAWI,WAAW,MAC5BC,eACLL,WAAWM,YAAYP,aAAaE,aAAa;EAC/CA,YAAYM,KAAK;IACfC,WAAWL,gBAAgBM;IAC3BC,SAASP,gBAAgBQ;IACzBC,eAAe,CAACC,OAAOC,YAAY;MACjCC,MAAMF,MAAME;MACZC,OAAOF,OAAOE;MACdC,OAAOH,OAAOG;MACdC,OAAOJ,OAAOI;IAChB;IACAC,SAAS;MAAC;MAA4B;QAAEC,IAAIlB,KAAKmB;MAAG;;EACtD,CAAA;EACApB,YAAYM,KAAK;IACfC,WAAWL,gBAAgBmB;IAC3BZ,SAASP,gBAAgBoB;IACzBX,eAAe,CAACY,QAAQV,YAAY;MAClCW,MAAMX,OAAOW;IACf;IACAN,SAAS;MAAC;MAAsB;QAAEC,IAAIlB,KAAKmB;MAAG;;EAChD,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "UndoMapping", "meta", "KanbanOperation", "makeModule", "succeed", "contributes", "make", "operation", "DeleteCardField", "inverse", "RestoreCardField", "deriveContext", "input", "output", "view", "field", "props", "index", "message", "ns", "id", "DeleteCard", "RestoreCard", "_input", "card"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgB7C,eAAO,MAAM,YAAY,4BAaxB,CAAC;eAEa,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAOxB,CAAC;eAEa,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kanban-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/kanban-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AAiBpD,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
2
3
|
import { type Space } from '@dxos/react-client/echo';
|
|
3
4
|
declare global {
|
|
4
5
|
interface ToolContextExtensions {
|
|
@@ -6,6 +7,6 @@ declare global {
|
|
|
6
7
|
dispatch?: PromiseIntentDispatcher;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
|
-
declare const _default: () =>
|
|
10
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<any>, never, never>;
|
|
10
11
|
export default _default;
|
|
11
12
|
//# sourceMappingURL=artifact-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAO7F,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAW7D,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { Blueprint } from '@dxos/compute';
|
|
4
|
+
declare const blueprintDefinition: (props: []) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error, Capability.Service>;
|
|
5
|
+
export default blueprintDefinition;
|
|
5
6
|
//# sourceMappingURL=blueprint-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,QAAA,MAAM,mBAAmB,iIAG8E,CAAC;eAEzF,mBAAmB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
7
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
8
|
+
customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
9
|
+
}>>>, never, never>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=create-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import type { Blueprint, OperationHandlerSet } from '@dxos/compute';
|
|
3
|
+
export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error>;
|
|
4
|
+
export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
7
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
8
|
+
customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
9
|
+
}>>>, Error>;
|
|
10
|
+
export declare const Migrations: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, Error>;
|
|
11
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
12
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
13
|
+
export declare const UndoMappings: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").UndoMapping[]>>, Error>;
|
|
4
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,mBAAmB,8GAAiF,CAAC;AAClH,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,0IAA8D,CAAC;AACtF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.UndoMapping[]>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=undo-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undo-mappings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/undo-mappings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAe,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
2
|
+
import React, { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
|
|
3
|
+
import { Obj } from '@dxos/echo';
|
|
4
|
+
import type { ProjectionModel } from '@dxos/schema';
|
|
5
|
+
import { type Kanban } from '#types';
|
|
6
|
+
import { type KanbanBoardContextValue, type KanbanCardProps, type KanbanColumnProps, useKanbanBoard } from './context';
|
|
7
|
+
type KanbanBoardRootProps = PropsWithChildren<{
|
|
8
|
+
kanban: Kanban.Kanban;
|
|
9
|
+
/** Required when providing context; Root derives columnFieldPath, pivotFieldId, getPivotAttributes from kanban + projection. */
|
|
10
|
+
projection: ProjectionModel;
|
|
11
|
+
/** Atom of items (e.g. from AtomQuery for DB, or Atom.make([]) for in-memory). */
|
|
12
|
+
items: Atom.Atom<Obj.Unknown[]>;
|
|
13
|
+
onCardAdd?: (columnValue: string | undefined) => string | undefined;
|
|
14
|
+
onCardRemove?: (card: Obj.Unknown) => void;
|
|
15
|
+
} & Pick<KanbanBoardContextValue, 'change' | 'itemTile'> & ComponentPropsWithoutRef<'div'>>;
|
|
16
|
+
export declare function KanbanBoardRoot({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove }: KanbanBoardRootProps): React.JSX.Element;
|
|
17
|
+
export declare namespace KanbanBoardRoot {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
type KanbanBoardContentProps = {};
|
|
21
|
+
export declare const KanbanBoardContent: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
|
|
22
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
23
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export declare const KanbanBoard: {
|
|
25
|
+
Root: {
|
|
26
|
+
({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove, }: KanbanBoardRootProps): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
Content: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
|
|
30
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
31
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Column: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Card: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
};
|
|
35
|
+
export { useKanbanBoard };
|
|
36
|
+
export type { KanbanBoardRootProps as KanbanBoardProps, KanbanCardProps, KanbanColumnProps };
|
|
37
|
+
//# sourceMappingURL=KanbanBoard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAoC,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAAE,KAAK,MAAM,EAAiD,MAAM,QAAQ,CAAC;AAEpF,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,cAAc,EACf,MAAM,WAAW,CAAC;AAYnB,KAAK,oBAAoB,GAAG,iBAAiB,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,gIAAgI;IAChI,UAAU,EAAE,eAAe,CAAC;IAC5B,kFAAkF;IAClF,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,UAAU,CAAC,GACtD,wBAAwB,CAAC,KAAK,CAAC,CAClC,CAAC;wCAE8B,EAC9B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAqB,EACrB,SAAS,EACT,YAAY,EACb,EAAE,oBAAoB;;;;AAkEvB,KAAK,uBAAuB,GAAG,EAAE,CAAC;AAElC,eAAO,MAAM,kBAAkB;;2HAqB7B,CAAC;AAQH,eAAO,MAAM,WAAW;IACtB,IAAI;8FAlGH,oBAAoB;;;IAmGrB,OAAO;;;IACP,MAAM;IACN,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,YAAY,EAAE,oBAAoB,IAAI,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: () => React.JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
translations: [{
|
|
10
|
+
readonly 'en-US': {
|
|
11
|
+
readonly [x: string]: {
|
|
12
|
+
readonly 'typename.label': 'Kanban';
|
|
13
|
+
readonly 'typename.label_zero': 'Kanbans';
|
|
14
|
+
readonly 'typename.label_one': 'Kanban';
|
|
15
|
+
readonly 'typename.label_other': 'Kanbans';
|
|
16
|
+
readonly 'object-name.placeholder': 'New kanban';
|
|
17
|
+
readonly 'add-object.label': 'Add kanban';
|
|
18
|
+
readonly 'rename-object.label': 'Rename kanban';
|
|
19
|
+
readonly 'delete-object.label': 'Delete kanban';
|
|
20
|
+
readonly 'object-deleted.label': 'Kanban deleted';
|
|
21
|
+
readonly 'action-menu.label'?: undefined;
|
|
22
|
+
readonly 'plugin.name'?: undefined;
|
|
23
|
+
readonly 'kanban-title.label'?: undefined;
|
|
24
|
+
readonly 'column-title.label'?: undefined;
|
|
25
|
+
readonly 'column-title.placeholder'?: undefined;
|
|
26
|
+
readonly 'add-column.label'?: undefined;
|
|
27
|
+
readonly 'add-card.label'?: undefined;
|
|
28
|
+
readonly 'new-column-name.label'?: undefined;
|
|
29
|
+
readonly 'remove-card.label'?: undefined;
|
|
30
|
+
readonly 'remove-empty-column.label'?: undefined;
|
|
31
|
+
readonly 'column-drag-handle.label'?: undefined;
|
|
32
|
+
readonly 'delete-column.label'?: undefined;
|
|
33
|
+
readonly 'card-field-deleted.label'?: undefined;
|
|
34
|
+
readonly 'card-deleted.label'?: undefined;
|
|
35
|
+
readonly 'select-pivot.placeholder'?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
readonly 'typename.label'?: undefined;
|
|
38
|
+
readonly 'typename.label_zero'?: undefined;
|
|
39
|
+
readonly 'typename.label_one'?: undefined;
|
|
40
|
+
readonly 'typename.label_other'?: undefined;
|
|
41
|
+
readonly 'object-name.placeholder'?: undefined;
|
|
42
|
+
readonly 'add-object.label'?: undefined;
|
|
43
|
+
readonly 'rename-object.label'?: undefined;
|
|
44
|
+
readonly 'delete-object.label'?: undefined;
|
|
45
|
+
readonly 'object-deleted.label'?: undefined;
|
|
46
|
+
readonly 'action-menu.label': 'Actions';
|
|
47
|
+
readonly 'plugin.name': 'Kanban';
|
|
48
|
+
readonly 'kanban-title.label': 'Title';
|
|
49
|
+
readonly 'column-title.label': 'Column title';
|
|
50
|
+
readonly 'column-title.placeholder': 'New column';
|
|
51
|
+
readonly 'add-column.label': 'Add column';
|
|
52
|
+
readonly 'add-card.label': 'Add card';
|
|
53
|
+
readonly 'new-column-name.label': 'New column name';
|
|
54
|
+
readonly 'remove-card.label': 'Remove card';
|
|
55
|
+
readonly 'remove-empty-column.label': 'Remove empty column';
|
|
56
|
+
readonly 'column-drag-handle.label': 'Drag to rearrange';
|
|
57
|
+
readonly 'delete-column.label': 'Delete column';
|
|
58
|
+
readonly 'card-field-deleted.label': 'Card field deleted';
|
|
59
|
+
readonly 'card-deleted.label': 'Card deleted';
|
|
60
|
+
readonly 'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.';
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default meta;
|
|
67
|
+
type Story = StoryObj<typeof meta>;
|
|
68
|
+
/**
|
|
69
|
+
* In-memory board with Echo-shaped objects. No plugin manager, client, or Space.
|
|
70
|
+
*/
|
|
71
|
+
export declare const Default: Story;
|
|
72
|
+
//# sourceMappingURL=KanbanBoard.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanBoard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AA0HrF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type KanbanCardProps } from './context';
|
|
3
|
+
export { type KanbanCardProps };
|
|
4
|
+
/**
|
|
5
|
+
* Mosaic Tile for Kanban card.
|
|
6
|
+
* Uses Surface for content; requires plugin manager context.
|
|
7
|
+
*/
|
|
8
|
+
export declare const KanbanCard: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
//# sourceMappingURL=KanbanCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAW1E,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,WAAW,CAAC;AAEjE,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAIhC;;;GAGG;AACH,eAAO,MAAM,UAAU,wFAyEtB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type KanbanColumnProps } from './context';
|
|
3
|
+
export { type KanbanColumnProps };
|
|
4
|
+
/**
|
|
5
|
+
* Mosaic Tile for Kanban column.
|
|
6
|
+
*/
|
|
7
|
+
export declare const KanbanColumn: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
//# sourceMappingURL=KanbanColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanColumn.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,WAAW,CAAC;AAEnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAIlC;;GAEG;AACH,eAAO,MAAM,YAAY,0FAgDxB,CAAC"}
|