@copilotkit/a2ui-renderer 1.60.1 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-components/_virtual/_rolldown/runtime.cjs +19 -0
- package/dist/web-components/_virtual/_rolldown/runtime.mjs +18 -0
- package/dist/web-components/a2ui-types.d.cts +23 -0
- package/dist/web-components/a2ui-types.d.cts.map +1 -0
- package/dist/web-components/a2ui-types.d.mts +23 -0
- package/dist/web-components/a2ui-types.d.mts.map +1 -0
- package/dist/web-components/adapter.cjs +33 -0
- package/dist/web-components/adapter.cjs.map +1 -0
- package/dist/web-components/adapter.d.cts +12 -0
- package/dist/web-components/adapter.d.cts.map +1 -0
- package/dist/web-components/adapter.d.mts +12 -0
- package/dist/web-components/adapter.d.mts.map +1 -0
- package/dist/web-components/adapter.mjs +32 -0
- package/dist/web-components/adapter.mjs.map +1 -0
- package/dist/web-components/bound-component.cjs +71 -0
- package/dist/web-components/bound-component.cjs.map +1 -0
- package/dist/web-components/bound-component.d.cts +44 -0
- package/dist/web-components/bound-component.d.cts.map +1 -0
- package/dist/web-components/bound-component.d.mts +44 -0
- package/dist/web-components/bound-component.d.mts.map +1 -0
- package/dist/web-components/bound-component.mjs +71 -0
- package/dist/web-components/bound-component.mjs.map +1 -0
- package/dist/web-components/catalog/basic/audio-player.cjs +32 -0
- package/dist/web-components/catalog/basic/audio-player.cjs.map +1 -0
- package/dist/web-components/catalog/basic/audio-player.d.cts +8 -0
- package/dist/web-components/catalog/basic/audio-player.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/audio-player.d.mts +8 -0
- package/dist/web-components/catalog/basic/audio-player.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/audio-player.mjs +32 -0
- package/dist/web-components/catalog/basic/audio-player.mjs.map +1 -0
- package/dist/web-components/catalog/basic/button.cjs +33 -0
- package/dist/web-components/catalog/basic/button.cjs.map +1 -0
- package/dist/web-components/catalog/basic/button.d.cts +8 -0
- package/dist/web-components/catalog/basic/button.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/button.d.mts +8 -0
- package/dist/web-components/catalog/basic/button.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/button.mjs +33 -0
- package/dist/web-components/catalog/basic/button.mjs.map +1 -0
- package/dist/web-components/catalog/basic/card.cjs +23 -0
- package/dist/web-components/catalog/basic/card.cjs.map +1 -0
- package/dist/web-components/catalog/basic/card.d.cts +8 -0
- package/dist/web-components/catalog/basic/card.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/card.d.mts +8 -0
- package/dist/web-components/catalog/basic/card.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/card.mjs +23 -0
- package/dist/web-components/catalog/basic/card.mjs.map +1 -0
- package/dist/web-components/catalog/basic/check-box.cjs +50 -0
- package/dist/web-components/catalog/basic/check-box.cjs.map +1 -0
- package/dist/web-components/catalog/basic/check-box.d.cts +8 -0
- package/dist/web-components/catalog/basic/check-box.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/check-box.d.mts +8 -0
- package/dist/web-components/catalog/basic/check-box.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/check-box.mjs +50 -0
- package/dist/web-components/catalog/basic/check-box.mjs.map +1 -0
- package/dist/web-components/catalog/basic/choice-picker.cjs +90 -0
- package/dist/web-components/catalog/basic/choice-picker.cjs.map +1 -0
- package/dist/web-components/catalog/basic/choice-picker.d.cts +8 -0
- package/dist/web-components/catalog/basic/choice-picker.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/choice-picker.d.mts +8 -0
- package/dist/web-components/catalog/basic/choice-picker.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/choice-picker.mjs +90 -0
- package/dist/web-components/catalog/basic/choice-picker.mjs.map +1 -0
- package/dist/web-components/catalog/basic/column.cjs +27 -0
- package/dist/web-components/catalog/basic/column.cjs.map +1 -0
- package/dist/web-components/catalog/basic/column.d.cts +8 -0
- package/dist/web-components/catalog/basic/column.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/column.d.mts +8 -0
- package/dist/web-components/catalog/basic/column.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/column.mjs +27 -0
- package/dist/web-components/catalog/basic/column.mjs.map +1 -0
- package/dist/web-components/catalog/basic/components.cjs +44 -0
- package/dist/web-components/catalog/basic/components.cjs.map +1 -0
- package/dist/web-components/catalog/basic/components.d.cts +19 -0
- package/dist/web-components/catalog/basic/components.d.mts +19 -0
- package/dist/web-components/catalog/basic/components.mjs +44 -0
- package/dist/web-components/catalog/basic/components.mjs.map +1 -0
- package/dist/web-components/catalog/basic/date-time-input.cjs +50 -0
- package/dist/web-components/catalog/basic/date-time-input.cjs.map +1 -0
- package/dist/web-components/catalog/basic/date-time-input.d.cts +8 -0
- package/dist/web-components/catalog/basic/date-time-input.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/date-time-input.d.mts +8 -0
- package/dist/web-components/catalog/basic/date-time-input.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/date-time-input.mjs +50 -0
- package/dist/web-components/catalog/basic/date-time-input.mjs.map +1 -0
- package/dist/web-components/catalog/basic/divider.cjs +21 -0
- package/dist/web-components/catalog/basic/divider.cjs.map +1 -0
- package/dist/web-components/catalog/basic/divider.d.cts +8 -0
- package/dist/web-components/catalog/basic/divider.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/divider.d.mts +8 -0
- package/dist/web-components/catalog/basic/divider.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/divider.mjs +21 -0
- package/dist/web-components/catalog/basic/divider.mjs.map +1 -0
- package/dist/web-components/catalog/basic/icon.cjs +29 -0
- package/dist/web-components/catalog/basic/icon.cjs.map +1 -0
- package/dist/web-components/catalog/basic/icon.d.cts +8 -0
- package/dist/web-components/catalog/basic/icon.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/icon.d.mts +8 -0
- package/dist/web-components/catalog/basic/icon.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/icon.mjs +29 -0
- package/dist/web-components/catalog/basic/icon.mjs.map +1 -0
- package/dist/web-components/catalog/basic/ids.cjs +11 -0
- package/dist/web-components/catalog/basic/ids.cjs.map +1 -0
- package/dist/web-components/catalog/basic/ids.mjs +10 -0
- package/dist/web-components/catalog/basic/ids.mjs.map +1 -0
- package/dist/web-components/catalog/basic/image.cjs +42 -0
- package/dist/web-components/catalog/basic/image.cjs.map +1 -0
- package/dist/web-components/catalog/basic/image.d.cts +8 -0
- package/dist/web-components/catalog/basic/image.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/image.d.mts +8 -0
- package/dist/web-components/catalog/basic/image.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/image.mjs +42 -0
- package/dist/web-components/catalog/basic/image.mjs.map +1 -0
- package/dist/web-components/catalog/basic/index.cjs +31 -0
- package/dist/web-components/catalog/basic/index.cjs.map +1 -0
- package/dist/web-components/catalog/basic/index.d.cts +29 -0
- package/dist/web-components/catalog/basic/index.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/index.d.mts +29 -0
- package/dist/web-components/catalog/basic/index.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/index.mjs +30 -0
- package/dist/web-components/catalog/basic/index.mjs.map +1 -0
- package/dist/web-components/catalog/basic/list.cjs +31 -0
- package/dist/web-components/catalog/basic/list.cjs.map +1 -0
- package/dist/web-components/catalog/basic/list.d.cts +8 -0
- package/dist/web-components/catalog/basic/list.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/list.d.mts +8 -0
- package/dist/web-components/catalog/basic/list.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/list.mjs +31 -0
- package/dist/web-components/catalog/basic/list.mjs.map +1 -0
- package/dist/web-components/catalog/basic/modal.cjs +80 -0
- package/dist/web-components/catalog/basic/modal.cjs.map +1 -0
- package/dist/web-components/catalog/basic/modal.d.cts +8 -0
- package/dist/web-components/catalog/basic/modal.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/modal.d.mts +8 -0
- package/dist/web-components/catalog/basic/modal.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/modal.mjs +80 -0
- package/dist/web-components/catalog/basic/modal.mjs.map +1 -0
- package/dist/web-components/catalog/basic/row.cjs +27 -0
- package/dist/web-components/catalog/basic/row.cjs.map +1 -0
- package/dist/web-components/catalog/basic/row.d.cts +8 -0
- package/dist/web-components/catalog/basic/row.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/row.d.mts +8 -0
- package/dist/web-components/catalog/basic/row.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/row.mjs +27 -0
- package/dist/web-components/catalog/basic/row.mjs.map +1 -0
- package/dist/web-components/catalog/basic/slider.cjs +44 -0
- package/dist/web-components/catalog/basic/slider.cjs.map +1 -0
- package/dist/web-components/catalog/basic/slider.d.cts +8 -0
- package/dist/web-components/catalog/basic/slider.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/slider.d.mts +8 -0
- package/dist/web-components/catalog/basic/slider.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/slider.mjs +44 -0
- package/dist/web-components/catalog/basic/slider.mjs.map +1 -0
- package/dist/web-components/catalog/basic/tabs.cjs +58 -0
- package/dist/web-components/catalog/basic/tabs.cjs.map +1 -0
- package/dist/web-components/catalog/basic/tabs.d.cts +8 -0
- package/dist/web-components/catalog/basic/tabs.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/tabs.d.mts +8 -0
- package/dist/web-components/catalog/basic/tabs.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/tabs.mjs +58 -0
- package/dist/web-components/catalog/basic/tabs.mjs.map +1 -0
- package/dist/web-components/catalog/basic/text-field.cjs +60 -0
- package/dist/web-components/catalog/basic/text-field.cjs.map +1 -0
- package/dist/web-components/catalog/basic/text-field.d.cts +8 -0
- package/dist/web-components/catalog/basic/text-field.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/text-field.d.mts +8 -0
- package/dist/web-components/catalog/basic/text-field.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/text-field.mjs +60 -0
- package/dist/web-components/catalog/basic/text-field.mjs.map +1 -0
- package/dist/web-components/catalog/basic/text.cjs +36 -0
- package/dist/web-components/catalog/basic/text.cjs.map +1 -0
- package/dist/web-components/catalog/basic/text.d.cts +8 -0
- package/dist/web-components/catalog/basic/text.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/text.d.mts +8 -0
- package/dist/web-components/catalog/basic/text.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/text.mjs +36 -0
- package/dist/web-components/catalog/basic/text.mjs.map +1 -0
- package/dist/web-components/catalog/basic/utils.cjs +48 -0
- package/dist/web-components/catalog/basic/utils.cjs.map +1 -0
- package/dist/web-components/catalog/basic/utils.d.cts +1 -0
- package/dist/web-components/catalog/basic/utils.d.mts +1 -0
- package/dist/web-components/catalog/basic/utils.mjs +41 -0
- package/dist/web-components/catalog/basic/utils.mjs.map +1 -0
- package/dist/web-components/catalog/basic/video.cjs +22 -0
- package/dist/web-components/catalog/basic/video.cjs.map +1 -0
- package/dist/web-components/catalog/basic/video.d.cts +8 -0
- package/dist/web-components/catalog/basic/video.d.cts.map +1 -0
- package/dist/web-components/catalog/basic/video.d.mts +8 -0
- package/dist/web-components/catalog/basic/video.d.mts.map +1 -0
- package/dist/web-components/catalog/basic/video.mjs +22 -0
- package/dist/web-components/catalog/basic/video.mjs.map +1 -0
- package/dist/web-components/catalog/children.cjs +17 -0
- package/dist/web-components/catalog/children.cjs.map +1 -0
- package/dist/web-components/catalog/children.mjs +16 -0
- package/dist/web-components/catalog/children.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/button.cjs +38 -0
- package/dist/web-components/catalog/minimal/button.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/button.d.cts +284 -0
- package/dist/web-components/catalog/minimal/button.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/button.d.mts +284 -0
- package/dist/web-components/catalog/minimal/button.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/button.mjs +36 -0
- package/dist/web-components/catalog/minimal/button.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/column.cjs +50 -0
- package/dist/web-components/catalog/minimal/column.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/column.d.cts +68 -0
- package/dist/web-components/catalog/minimal/column.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/column.d.mts +68 -0
- package/dist/web-components/catalog/minimal/column.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/column.mjs +48 -0
- package/dist/web-components/catalog/minimal/column.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/components.cjs +18 -0
- package/dist/web-components/catalog/minimal/components.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/components.d.cts +12 -0
- package/dist/web-components/catalog/minimal/components.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/components.d.mts +12 -0
- package/dist/web-components/catalog/minimal/components.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/components.mjs +18 -0
- package/dist/web-components/catalog/minimal/components.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/index.cjs +49 -0
- package/dist/web-components/catalog/minimal/index.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/index.d.cts +17 -0
- package/dist/web-components/catalog/minimal/index.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/index.d.mts +17 -0
- package/dist/web-components/catalog/minimal/index.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/index.mjs +43 -0
- package/dist/web-components/catalog/minimal/index.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/row.cjs +49 -0
- package/dist/web-components/catalog/minimal/row.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/row.d.cts +68 -0
- package/dist/web-components/catalog/minimal/row.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/row.d.mts +68 -0
- package/dist/web-components/catalog/minimal/row.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/row.mjs +47 -0
- package/dist/web-components/catalog/minimal/row.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/text-field.cjs +74 -0
- package/dist/web-components/catalog/minimal/text-field.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/text-field.d.cts +164 -0
- package/dist/web-components/catalog/minimal/text-field.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/text-field.d.mts +164 -0
- package/dist/web-components/catalog/minimal/text-field.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/text-field.mjs +72 -0
- package/dist/web-components/catalog/minimal/text-field.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/text.cjs +40 -0
- package/dist/web-components/catalog/minimal/text.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/text.d.cts +92 -0
- package/dist/web-components/catalog/minimal/text.d.cts.map +1 -0
- package/dist/web-components/catalog/minimal/text.d.mts +92 -0
- package/dist/web-components/catalog/minimal/text.d.mts.map +1 -0
- package/dist/web-components/catalog/minimal/text.mjs +38 -0
- package/dist/web-components/catalog/minimal/text.mjs.map +1 -0
- package/dist/web-components/catalog/minimal/utils.cjs +26 -0
- package/dist/web-components/catalog/minimal/utils.cjs.map +1 -0
- package/dist/web-components/catalog/minimal/utils.mjs +24 -0
- package/dist/web-components/catalog/minimal/utils.mjs.map +1 -0
- package/dist/web-components/create-catalog.cjs +143 -0
- package/dist/web-components/create-catalog.cjs.map +1 -0
- package/dist/web-components/create-catalog.d.cts +44 -0
- package/dist/web-components/create-catalog.d.cts.map +1 -0
- package/dist/web-components/create-catalog.d.mts +44 -0
- package/dist/web-components/create-catalog.d.mts.map +1 -0
- package/dist/web-components/create-catalog.mjs +137 -0
- package/dist/web-components/create-catalog.mjs.map +1 -0
- package/dist/web-components/define.cjs +24 -0
- package/dist/web-components/define.cjs.map +1 -0
- package/dist/web-components/define.d.cts +19 -0
- package/dist/web-components/define.d.cts.map +1 -0
- package/dist/web-components/define.d.mts +19 -0
- package/dist/web-components/define.d.mts.map +1 -0
- package/dist/web-components/define.mjs +17 -0
- package/dist/web-components/define.mjs.map +1 -0
- package/dist/web-components/index.cjs +78 -0
- package/dist/web-components/index.d.cts +30 -0
- package/dist/web-components/index.d.mts +30 -0
- package/dist/web-components/index.mjs +29 -0
- package/dist/web-components/node.cjs +94 -0
- package/dist/web-components/node.cjs.map +1 -0
- package/dist/web-components/node.d.cts +33 -0
- package/dist/web-components/node.d.cts.map +1 -0
- package/dist/web-components/node.d.mts +33 -0
- package/dist/web-components/node.d.mts.map +1 -0
- package/dist/web-components/node.mjs +94 -0
- package/dist/web-components/node.mjs.map +1 -0
- package/dist/web-components/surface.cjs +314 -0
- package/dist/web-components/surface.cjs.map +1 -0
- package/dist/web-components/surface.d.cts +43 -0
- package/dist/web-components/surface.d.cts.map +1 -0
- package/dist/web-components/surface.d.mts +43 -0
- package/dist/web-components/surface.d.mts.map +1 -0
- package/dist/web-components/surface.mjs +314 -0
- package/dist/web-components/surface.mjs.map +1 -0
- package/dist/web-components/types.d.cts +45 -0
- package/dist/web-components/types.d.cts.map +1 -0
- package/dist/web-components/types.d.mts +45 -0
- package/dist/web-components/types.d.mts.map +1 -0
- package/package.json +38 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
|
|
19
|
+
exports.__exportAll = __exportAll;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/a2ui-types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* v0.9 A2UI type definitions for CopilotKit integration.
|
|
4
|
+
*/
|
|
5
|
+
/** Theme type - v0.9 themes are passed via createSurface message */
|
|
6
|
+
type Theme = Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Client event message dispatched when a user interacts with an A2UI surface.
|
|
9
|
+
* This is the format expected by A2UIMessageRenderer's handleAction.
|
|
10
|
+
*/
|
|
11
|
+
interface A2UIClientEventMessage {
|
|
12
|
+
userAction?: {
|
|
13
|
+
name: string;
|
|
14
|
+
surfaceId: string;
|
|
15
|
+
sourceComponentId?: string;
|
|
16
|
+
context?: Record<string, unknown>;
|
|
17
|
+
timestamp?: string;
|
|
18
|
+
dataContextPath?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { A2UIClientEventMessage, Theme };
|
|
23
|
+
//# sourceMappingURL=a2ui-types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2ui-types.d.cts","names":[],"sources":["../../src/a2ui-types.ts"],"mappings":";;AAKA;;;KAAY,KAAA,GAAQ,MAAA;;AAMpB;;;UAAiB,sBAAA;EACf,UAAA;IACE,IAAA;IACA,SAAA;IACA,iBAAA;IACA,OAAA,GAAU,MAAA;IACV,SAAA;IACA,eAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/a2ui-types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* v0.9 A2UI type definitions for CopilotKit integration.
|
|
4
|
+
*/
|
|
5
|
+
/** Theme type - v0.9 themes are passed via createSurface message */
|
|
6
|
+
type Theme = Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Client event message dispatched when a user interacts with an A2UI surface.
|
|
9
|
+
* This is the format expected by A2UIMessageRenderer's handleAction.
|
|
10
|
+
*/
|
|
11
|
+
interface A2UIClientEventMessage {
|
|
12
|
+
userAction?: {
|
|
13
|
+
name: string;
|
|
14
|
+
surfaceId: string;
|
|
15
|
+
sourceComponentId?: string;
|
|
16
|
+
context?: Record<string, unknown>;
|
|
17
|
+
timestamp?: string;
|
|
18
|
+
dataContextPath?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { A2UIClientEventMessage, Theme };
|
|
23
|
+
//# sourceMappingURL=a2ui-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2ui-types.d.mts","names":[],"sources":["../../src/a2ui-types.ts"],"mappings":";;AAKA;;;KAAY,KAAA,GAAQ,MAAA;;AAMpB;;;UAAiB,sBAAA;EACf,UAAA;IACE,IAAA;IACA,SAAA;IACA,iBAAA;IACA,OAAA,GAAU,MAAA;IACV,SAAA;IACA,eAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
let lit = require("lit");
|
|
2
|
+
|
|
3
|
+
//#region src/web-components/adapter.ts
|
|
4
|
+
function createLitComponent(api, renderFn, setupState) {
|
|
5
|
+
return {
|
|
6
|
+
name: api.name,
|
|
7
|
+
schema: api.schema,
|
|
8
|
+
render: (context, buildChild) => lit.html`
|
|
9
|
+
<cpk-a2ui-bound-component
|
|
10
|
+
.api=${api}
|
|
11
|
+
.context=${context}
|
|
12
|
+
.buildChild=${buildChild}
|
|
13
|
+
.renderFn=${renderFn}
|
|
14
|
+
.setupState=${setupState}
|
|
15
|
+
></cpk-a2ui-bound-component>
|
|
16
|
+
`
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function createBinderlessLitComponent(api, renderFn) {
|
|
20
|
+
return {
|
|
21
|
+
name: api.name,
|
|
22
|
+
schema: api.schema,
|
|
23
|
+
render: (context, buildChild) => renderFn({
|
|
24
|
+
context,
|
|
25
|
+
buildChild
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.createBinderlessLitComponent = createBinderlessLitComponent;
|
|
32
|
+
exports.createLitComponent = createLitComponent;
|
|
33
|
+
//# sourceMappingURL=adapter.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.cjs","names":[],"sources":["../../src/web-components/adapter.ts"],"sourcesContent":["import { html } from \"lit\";\nimport type {\n ComponentApi,\n InferredComponentApiSchemaType,\n ResolveA2uiProps,\n} from \"@a2ui/web_core/v0_9\";\nimport type {\n LitComponentImplementation,\n LitRenderable,\n LitRendererFn,\n} from \"./types\";\n\nexport function createLitComponent<Api extends ComponentApi, S = void>(\n api: Api,\n renderFn: LitRendererFn<Api, S>,\n setupState?: () => S,\n): LitComponentImplementation {\n return {\n name: api.name,\n schema: api.schema,\n render: (context, buildChild) => html`\n <cpk-a2ui-bound-component\n .api=${api}\n .context=${context}\n .buildChild=${buildChild}\n .renderFn=${renderFn}\n .setupState=${setupState}\n ></cpk-a2ui-bound-component>\n `,\n };\n}\n\nexport function createBinderlessLitComponent(\n api: ComponentApi,\n renderFn: (componentProps: {\n context: Parameters<LitComponentImplementation[\"render\"]>[0];\n buildChild: (id: string, basePath?: string) => LitRenderable;\n }) => LitRenderable,\n): LitComponentImplementation {\n return {\n name: api.name,\n schema: api.schema,\n render: (context, buildChild) => renderFn({ context, buildChild }),\n };\n}\n\nexport type {\n InferredComponentApiSchemaType,\n ResolveA2uiProps,\n LitComponentImplementation,\n LitRenderable,\n LitRendererFn,\n};\n"],"mappings":";;;AAYA,SAAgB,mBACd,KACA,UACA,YAC4B;AAC5B,QAAO;EACL,MAAM,IAAI;EACV,QAAQ,IAAI;EACZ,SAAS,SAAS,eAAe,QAAI;;eAE1B,IAAI;mBACA,QAAQ;sBACL,WAAW;oBACb,SAAS;sBACP,WAAW;;;EAG9B;;AAGH,SAAgB,6BACd,KACA,UAI4B;AAC5B,QAAO;EACL,MAAM,IAAI;EACV,QAAQ,IAAI;EACZ,SAAS,SAAS,eAAe,SAAS;GAAE;GAAS;GAAY,CAAC;EACnE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitComponentImplementation, LitRenderable, LitRendererFn } from "./types.cjs";
|
|
2
|
+
import { ComponentApi } from "@a2ui/web_core/v0_9";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/adapter.d.ts
|
|
5
|
+
declare function createLitComponent<Api extends ComponentApi, S = void>(api: Api, renderFn: LitRendererFn<Api, S>, setupState?: () => S): LitComponentImplementation;
|
|
6
|
+
declare function createBinderlessLitComponent(api: ComponentApi, renderFn: (componentProps: {
|
|
7
|
+
context: Parameters<LitComponentImplementation["render"]>[0];
|
|
8
|
+
buildChild: (id: string, basePath?: string) => LitRenderable;
|
|
9
|
+
}) => LitRenderable): LitComponentImplementation;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createBinderlessLitComponent, createLitComponent };
|
|
12
|
+
//# sourceMappingURL=adapter.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.cts","names":[],"sources":["../../src/web-components/adapter.ts"],"mappings":";;;;iBAYgB,kBAAA,aAA+B,YAAA,WAAA,CAC7C,GAAA,EAAK,GAAA,EACL,QAAA,EAAU,aAAA,CAAc,GAAA,EAAK,CAAA,GAC7B,UAAA,SAAmB,CAAA,GAClB,0BAAA;AAAA,iBAgBa,4BAAA,CACd,GAAA,EAAK,YAAA,EACL,QAAA,GAAW,cAAA;EACT,OAAA,EAAS,UAAA,CAAW,0BAAA;EACpB,UAAA,GAAa,EAAA,UAAY,QAAA,cAAsB,aAAA;AAAA,MAC3C,aAAA,GACL,0BAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitComponentImplementation, LitRenderable, LitRendererFn } from "./types.mjs";
|
|
2
|
+
import { ComponentApi } from "@a2ui/web_core/v0_9";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/adapter.d.ts
|
|
5
|
+
declare function createLitComponent<Api extends ComponentApi, S = void>(api: Api, renderFn: LitRendererFn<Api, S>, setupState?: () => S): LitComponentImplementation;
|
|
6
|
+
declare function createBinderlessLitComponent(api: ComponentApi, renderFn: (componentProps: {
|
|
7
|
+
context: Parameters<LitComponentImplementation["render"]>[0];
|
|
8
|
+
buildChild: (id: string, basePath?: string) => LitRenderable;
|
|
9
|
+
}) => LitRenderable): LitComponentImplementation;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createBinderlessLitComponent, createLitComponent };
|
|
12
|
+
//# sourceMappingURL=adapter.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.mts","names":[],"sources":["../../src/web-components/adapter.ts"],"mappings":";;;;iBAYgB,kBAAA,aAA+B,YAAA,WAAA,CAC7C,GAAA,EAAK,GAAA,EACL,QAAA,EAAU,aAAA,CAAc,GAAA,EAAK,CAAA,GAC7B,UAAA,SAAmB,CAAA,GAClB,0BAAA;AAAA,iBAgBa,4BAAA,CACd,GAAA,EAAK,YAAA,EACL,QAAA,GAAW,cAAA;EACT,OAAA,EAAS,UAAA,CAAW,0BAAA;EACpB,UAAA,GAAa,EAAA,UAAY,QAAA,cAAsB,aAAA;AAAA,MAC3C,aAAA,GACL,0BAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
|
|
3
|
+
//#region src/web-components/adapter.ts
|
|
4
|
+
function createLitComponent(api, renderFn, setupState) {
|
|
5
|
+
return {
|
|
6
|
+
name: api.name,
|
|
7
|
+
schema: api.schema,
|
|
8
|
+
render: (context, buildChild) => html`
|
|
9
|
+
<cpk-a2ui-bound-component
|
|
10
|
+
.api=${api}
|
|
11
|
+
.context=${context}
|
|
12
|
+
.buildChild=${buildChild}
|
|
13
|
+
.renderFn=${renderFn}
|
|
14
|
+
.setupState=${setupState}
|
|
15
|
+
></cpk-a2ui-bound-component>
|
|
16
|
+
`
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function createBinderlessLitComponent(api, renderFn) {
|
|
20
|
+
return {
|
|
21
|
+
name: api.name,
|
|
22
|
+
schema: api.schema,
|
|
23
|
+
render: (context, buildChild) => renderFn({
|
|
24
|
+
context,
|
|
25
|
+
buildChild
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { createBinderlessLitComponent, createLitComponent };
|
|
32
|
+
//# sourceMappingURL=adapter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.mjs","names":[],"sources":["../../src/web-components/adapter.ts"],"sourcesContent":["import { html } from \"lit\";\nimport type {\n ComponentApi,\n InferredComponentApiSchemaType,\n ResolveA2uiProps,\n} from \"@a2ui/web_core/v0_9\";\nimport type {\n LitComponentImplementation,\n LitRenderable,\n LitRendererFn,\n} from \"./types\";\n\nexport function createLitComponent<Api extends ComponentApi, S = void>(\n api: Api,\n renderFn: LitRendererFn<Api, S>,\n setupState?: () => S,\n): LitComponentImplementation {\n return {\n name: api.name,\n schema: api.schema,\n render: (context, buildChild) => html`\n <cpk-a2ui-bound-component\n .api=${api}\n .context=${context}\n .buildChild=${buildChild}\n .renderFn=${renderFn}\n .setupState=${setupState}\n ></cpk-a2ui-bound-component>\n `,\n };\n}\n\nexport function createBinderlessLitComponent(\n api: ComponentApi,\n renderFn: (componentProps: {\n context: Parameters<LitComponentImplementation[\"render\"]>[0];\n buildChild: (id: string, basePath?: string) => LitRenderable;\n }) => LitRenderable,\n): LitComponentImplementation {\n return {\n name: api.name,\n schema: api.schema,\n render: (context, buildChild) => renderFn({ context, buildChild }),\n };\n}\n\nexport type {\n InferredComponentApiSchemaType,\n ResolveA2uiProps,\n LitComponentImplementation,\n LitRenderable,\n LitRendererFn,\n};\n"],"mappings":";;;AAYA,SAAgB,mBACd,KACA,UACA,YAC4B;AAC5B,QAAO;EACL,MAAM,IAAI;EACV,QAAQ,IAAI;EACZ,SAAS,SAAS,eAAe,IAAI;;eAE1B,IAAI;mBACA,QAAQ;sBACL,WAAW;oBACb,SAAS;sBACP,WAAW;;;EAG9B;;AAGH,SAAgB,6BACd,KACA,UAI4B;AAC5B,QAAO;EACL,MAAM,IAAI;EACV,QAAQ,IAAI;EACZ,SAAS,SAAS,eAAe,SAAS;GAAE;GAAS;GAAY,CAAC;EACnE"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
let lit = require("lit");
|
|
2
|
+
let _a2ui_web_core_v0_9 = require("@a2ui/web_core/v0_9");
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/bound-component.ts
|
|
5
|
+
var CpkA2uiBoundComponent = class extends lit.LitElement {
|
|
6
|
+
constructor(..._args) {
|
|
7
|
+
super(..._args);
|
|
8
|
+
this.binder = null;
|
|
9
|
+
this.binderContext = null;
|
|
10
|
+
this.propsSnapshot = {};
|
|
11
|
+
this.stateInitialized = false;
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = {
|
|
15
|
+
api: { attribute: false },
|
|
16
|
+
context: { attribute: false },
|
|
17
|
+
buildChild: { attribute: false },
|
|
18
|
+
renderFn: { attribute: false },
|
|
19
|
+
setupState: { attribute: false }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
createRenderRoot() {
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
super.connectedCallback();
|
|
27
|
+
this.style.display = "contents";
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
this.disposeBinder();
|
|
31
|
+
super.disconnectedCallback();
|
|
32
|
+
}
|
|
33
|
+
disposeBinder() {
|
|
34
|
+
this.binder?.dispose();
|
|
35
|
+
this.binder = null;
|
|
36
|
+
this.binderContext = null;
|
|
37
|
+
}
|
|
38
|
+
ensureBinder() {
|
|
39
|
+
if (!this.api || !this.context) return;
|
|
40
|
+
if (this.binder && this.binderContext === this.context) return;
|
|
41
|
+
this.disposeBinder();
|
|
42
|
+
this.binderContext = this.context;
|
|
43
|
+
this.binder = new _a2ui_web_core_v0_9.GenericBinder(this.context, this.api.schema);
|
|
44
|
+
this.propsSnapshot = this.binder.snapshot ?? {};
|
|
45
|
+
this.binder.subscribe((props) => {
|
|
46
|
+
this.propsSnapshot = props ?? {};
|
|
47
|
+
this.requestUpdate();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
ensureState() {
|
|
51
|
+
if (this.stateInitialized) return;
|
|
52
|
+
this.stateInitialized = true;
|
|
53
|
+
this.state = this.setupState?.();
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
this.ensureBinder();
|
|
57
|
+
this.ensureState();
|
|
58
|
+
if (!this.renderFn || !this.context || !this.buildChild) return lit.nothing;
|
|
59
|
+
return this.renderFn({
|
|
60
|
+
props: this.propsSnapshot,
|
|
61
|
+
buildChild: this.buildChild,
|
|
62
|
+
context: this.context,
|
|
63
|
+
state: this.state,
|
|
64
|
+
requestUpdate: () => this.requestUpdate()
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.CpkA2uiBoundComponent = CpkA2uiBoundComponent;
|
|
71
|
+
//# sourceMappingURL=bound-component.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound-component.cjs","names":["LitElement","GenericBinder","nothing"],"sources":["../../src/web-components/bound-component.ts"],"sourcesContent":["import { LitElement, nothing } from \"lit\";\nimport { GenericBinder } from \"@a2ui/web_core/v0_9\";\nimport type { ComponentApi, ComponentContext } from \"@a2ui/web_core/v0_9\";\nimport type { LitRenderable, LitRendererFn } from \"./types\";\n\nexport class CpkA2uiBoundComponent extends LitElement {\n static properties = {\n api: { attribute: false },\n context: { attribute: false },\n buildChild: { attribute: false },\n renderFn: { attribute: false },\n setupState: { attribute: false },\n };\n\n api?: ComponentApi;\n context?: ComponentContext;\n buildChild?: (id: string, basePath?: string) => LitRenderable;\n renderFn?: LitRendererFn<any, any>;\n setupState?: () => unknown;\n\n private binder: GenericBinder<any> | null = null;\n private binderContext: ComponentContext | null = null;\n private propsSnapshot: Record<string, unknown> = {};\n private stateInitialized = false;\n private state: unknown;\n\n protected createRenderRoot() {\n return this;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.style.display = \"contents\";\n }\n\n disconnectedCallback(): void {\n this.disposeBinder();\n super.disconnectedCallback();\n }\n\n private disposeBinder(): void {\n this.binder?.dispose();\n this.binder = null;\n this.binderContext = null;\n }\n\n private ensureBinder(): void {\n if (!this.api || !this.context) return;\n if (this.binder && this.binderContext === this.context) return;\n\n this.disposeBinder();\n this.binderContext = this.context;\n this.binder = new GenericBinder(this.context, this.api.schema);\n this.propsSnapshot = this.binder.snapshot ?? {};\n this.binder.subscribe((props) => {\n this.propsSnapshot = props ?? {};\n this.requestUpdate();\n });\n }\n\n private ensureState(): void {\n if (this.stateInitialized) return;\n this.stateInitialized = true;\n this.state = this.setupState?.();\n }\n\n render() {\n this.ensureBinder();\n this.ensureState();\n if (!this.renderFn || !this.context || !this.buildChild) return nothing;\n return this.renderFn({\n props: this.propsSnapshot,\n buildChild: this.buildChild,\n context: this.context,\n state: this.state,\n requestUpdate: () => this.requestUpdate(),\n });\n }\n}\n"],"mappings":";;;;AAKA,IAAa,wBAAb,cAA2CA,eAAW;;;gBAeR;uBACK;uBACA,EAAE;0BACxB;;;oBAjBP;GAClB,KAAK,EAAE,WAAW,OAAO;GACzB,SAAS,EAAE,WAAW,OAAO;GAC7B,YAAY,EAAE,WAAW,OAAO;GAChC,UAAU,EAAE,WAAW,OAAO;GAC9B,YAAY,EAAE,WAAW,OAAO;GACjC;;CAcD,AAAU,mBAAmB;AAC3B,SAAO;;CAGT,oBAA0B;AACxB,QAAM,mBAAmB;AACzB,OAAK,MAAM,UAAU;;CAGvB,uBAA6B;AAC3B,OAAK,eAAe;AACpB,QAAM,sBAAsB;;CAG9B,AAAQ,gBAAsB;AAC5B,OAAK,QAAQ,SAAS;AACtB,OAAK,SAAS;AACd,OAAK,gBAAgB;;CAGvB,AAAQ,eAAqB;AAC3B,MAAI,CAAC,KAAK,OAAO,CAAC,KAAK,QAAS;AAChC,MAAI,KAAK,UAAU,KAAK,kBAAkB,KAAK,QAAS;AAExD,OAAK,eAAe;AACpB,OAAK,gBAAgB,KAAK;AAC1B,OAAK,SAAS,IAAIC,kCAAc,KAAK,SAAS,KAAK,IAAI,OAAO;AAC9D,OAAK,gBAAgB,KAAK,OAAO,YAAY,EAAE;AAC/C,OAAK,OAAO,WAAW,UAAU;AAC/B,QAAK,gBAAgB,SAAS,EAAE;AAChC,QAAK,eAAe;IACpB;;CAGJ,AAAQ,cAAoB;AAC1B,MAAI,KAAK,iBAAkB;AAC3B,OAAK,mBAAmB;AACxB,OAAK,QAAQ,KAAK,cAAc;;CAGlC,SAAS;AACP,OAAK,cAAc;AACnB,OAAK,aAAa;AAClB,MAAI,CAAC,KAAK,YAAY,CAAC,KAAK,WAAW,CAAC,KAAK,WAAY,QAAOC;AAChE,SAAO,KAAK,SAAS;GACnB,OAAO,KAAK;GACZ,YAAY,KAAK;GACjB,SAAS,KAAK;GACd,OAAO,KAAK;GACZ,qBAAqB,KAAK,eAAe;GAC1C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LitRenderable, LitRendererFn } from "./types.cjs";
|
|
2
|
+
import { LitElement, nothing } from "lit";
|
|
3
|
+
import { ComponentApi, ComponentContext } from "@a2ui/web_core/v0_9";
|
|
4
|
+
|
|
5
|
+
//#region src/web-components/bound-component.d.ts
|
|
6
|
+
declare class CpkA2uiBoundComponent extends LitElement {
|
|
7
|
+
static properties: {
|
|
8
|
+
api: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
context: {
|
|
12
|
+
attribute: boolean;
|
|
13
|
+
};
|
|
14
|
+
buildChild: {
|
|
15
|
+
attribute: boolean;
|
|
16
|
+
};
|
|
17
|
+
renderFn: {
|
|
18
|
+
attribute: boolean;
|
|
19
|
+
};
|
|
20
|
+
setupState: {
|
|
21
|
+
attribute: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
api?: ComponentApi;
|
|
25
|
+
context?: ComponentContext;
|
|
26
|
+
buildChild?: (id: string, basePath?: string) => LitRenderable;
|
|
27
|
+
renderFn?: LitRendererFn<any, any>;
|
|
28
|
+
setupState?: () => unknown;
|
|
29
|
+
private binder;
|
|
30
|
+
private binderContext;
|
|
31
|
+
private propsSnapshot;
|
|
32
|
+
private stateInitialized;
|
|
33
|
+
private state;
|
|
34
|
+
protected createRenderRoot(): this;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private disposeBinder;
|
|
38
|
+
private ensureBinder;
|
|
39
|
+
private ensureState;
|
|
40
|
+
render(): LitRenderable | typeof nothing;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { CpkA2uiBoundComponent };
|
|
44
|
+
//# sourceMappingURL=bound-component.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound-component.d.cts","names":[],"sources":["../../src/web-components/bound-component.ts"],"mappings":";;;;;cAKa,qBAAA,SAA8B,UAAA;EAAA,OAClC,UAAA;;;;;;;;;;;;;;;;;EAQP,GAAA,GAAM,YAAA;EACN,OAAA,GAAU,gBAAA;EACV,UAAA,IAAc,EAAA,UAAY,QAAA,cAAsB,aAAA;EAChD,QAAA,GAAW,aAAA;EACX,UAAA;EAAA,QAEQ,MAAA;EAAA,QACA,aAAA;EAAA,QACA,aAAA;EAAA,QACA,gBAAA;EAAA,QACA,KAAA;EAAA,UAEE,gBAAA,CAAA;EAIV,iBAAA,CAAA;EAKA,oBAAA,CAAA;EAAA,QAKQ,aAAA;EAAA,QAMA,YAAA;EAAA,QAcA,WAAA;EAMR,MAAA,CAAA,GAAM,aAAA,UAAA,OAAA;AAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LitRenderable, LitRendererFn } from "./types.mjs";
|
|
2
|
+
import { LitElement, nothing } from "lit";
|
|
3
|
+
import { ComponentApi, ComponentContext } from "@a2ui/web_core/v0_9";
|
|
4
|
+
|
|
5
|
+
//#region src/web-components/bound-component.d.ts
|
|
6
|
+
declare class CpkA2uiBoundComponent extends LitElement {
|
|
7
|
+
static properties: {
|
|
8
|
+
api: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
context: {
|
|
12
|
+
attribute: boolean;
|
|
13
|
+
};
|
|
14
|
+
buildChild: {
|
|
15
|
+
attribute: boolean;
|
|
16
|
+
};
|
|
17
|
+
renderFn: {
|
|
18
|
+
attribute: boolean;
|
|
19
|
+
};
|
|
20
|
+
setupState: {
|
|
21
|
+
attribute: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
api?: ComponentApi;
|
|
25
|
+
context?: ComponentContext;
|
|
26
|
+
buildChild?: (id: string, basePath?: string) => LitRenderable;
|
|
27
|
+
renderFn?: LitRendererFn<any, any>;
|
|
28
|
+
setupState?: () => unknown;
|
|
29
|
+
private binder;
|
|
30
|
+
private binderContext;
|
|
31
|
+
private propsSnapshot;
|
|
32
|
+
private stateInitialized;
|
|
33
|
+
private state;
|
|
34
|
+
protected createRenderRoot(): this;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private disposeBinder;
|
|
38
|
+
private ensureBinder;
|
|
39
|
+
private ensureState;
|
|
40
|
+
render(): LitRenderable | typeof nothing;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { CpkA2uiBoundComponent };
|
|
44
|
+
//# sourceMappingURL=bound-component.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound-component.d.mts","names":[],"sources":["../../src/web-components/bound-component.ts"],"mappings":";;;;;cAKa,qBAAA,SAA8B,UAAA;EAAA,OAClC,UAAA;;;;;;;;;;;;;;;;;EAQP,GAAA,GAAM,YAAA;EACN,OAAA,GAAU,gBAAA;EACV,UAAA,IAAc,EAAA,UAAY,QAAA,cAAsB,aAAA;EAChD,QAAA,GAAW,aAAA;EACX,UAAA;EAAA,QAEQ,MAAA;EAAA,QACA,aAAA;EAAA,QACA,aAAA;EAAA,QACA,gBAAA;EAAA,QACA,KAAA;EAAA,UAEE,gBAAA,CAAA;EAIV,iBAAA,CAAA;EAKA,oBAAA,CAAA;EAAA,QAKQ,aAAA;EAAA,QAMA,YAAA;EAAA,QAcA,WAAA;EAMR,MAAA,CAAA,GAAM,aAAA,UAAA,OAAA;AAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { LitElement, nothing } from "lit";
|
|
2
|
+
import { GenericBinder } from "@a2ui/web_core/v0_9";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/bound-component.ts
|
|
5
|
+
var CpkA2uiBoundComponent = class extends LitElement {
|
|
6
|
+
constructor(..._args) {
|
|
7
|
+
super(..._args);
|
|
8
|
+
this.binder = null;
|
|
9
|
+
this.binderContext = null;
|
|
10
|
+
this.propsSnapshot = {};
|
|
11
|
+
this.stateInitialized = false;
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = {
|
|
15
|
+
api: { attribute: false },
|
|
16
|
+
context: { attribute: false },
|
|
17
|
+
buildChild: { attribute: false },
|
|
18
|
+
renderFn: { attribute: false },
|
|
19
|
+
setupState: { attribute: false }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
createRenderRoot() {
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
super.connectedCallback();
|
|
27
|
+
this.style.display = "contents";
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
this.disposeBinder();
|
|
31
|
+
super.disconnectedCallback();
|
|
32
|
+
}
|
|
33
|
+
disposeBinder() {
|
|
34
|
+
this.binder?.dispose();
|
|
35
|
+
this.binder = null;
|
|
36
|
+
this.binderContext = null;
|
|
37
|
+
}
|
|
38
|
+
ensureBinder() {
|
|
39
|
+
if (!this.api || !this.context) return;
|
|
40
|
+
if (this.binder && this.binderContext === this.context) return;
|
|
41
|
+
this.disposeBinder();
|
|
42
|
+
this.binderContext = this.context;
|
|
43
|
+
this.binder = new GenericBinder(this.context, this.api.schema);
|
|
44
|
+
this.propsSnapshot = this.binder.snapshot ?? {};
|
|
45
|
+
this.binder.subscribe((props) => {
|
|
46
|
+
this.propsSnapshot = props ?? {};
|
|
47
|
+
this.requestUpdate();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
ensureState() {
|
|
51
|
+
if (this.stateInitialized) return;
|
|
52
|
+
this.stateInitialized = true;
|
|
53
|
+
this.state = this.setupState?.();
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
this.ensureBinder();
|
|
57
|
+
this.ensureState();
|
|
58
|
+
if (!this.renderFn || !this.context || !this.buildChild) return nothing;
|
|
59
|
+
return this.renderFn({
|
|
60
|
+
props: this.propsSnapshot,
|
|
61
|
+
buildChild: this.buildChild,
|
|
62
|
+
context: this.context,
|
|
63
|
+
state: this.state,
|
|
64
|
+
requestUpdate: () => this.requestUpdate()
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { CpkA2uiBoundComponent };
|
|
71
|
+
//# sourceMappingURL=bound-component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound-component.mjs","names":[],"sources":["../../src/web-components/bound-component.ts"],"sourcesContent":["import { LitElement, nothing } from \"lit\";\nimport { GenericBinder } from \"@a2ui/web_core/v0_9\";\nimport type { ComponentApi, ComponentContext } from \"@a2ui/web_core/v0_9\";\nimport type { LitRenderable, LitRendererFn } from \"./types\";\n\nexport class CpkA2uiBoundComponent extends LitElement {\n static properties = {\n api: { attribute: false },\n context: { attribute: false },\n buildChild: { attribute: false },\n renderFn: { attribute: false },\n setupState: { attribute: false },\n };\n\n api?: ComponentApi;\n context?: ComponentContext;\n buildChild?: (id: string, basePath?: string) => LitRenderable;\n renderFn?: LitRendererFn<any, any>;\n setupState?: () => unknown;\n\n private binder: GenericBinder<any> | null = null;\n private binderContext: ComponentContext | null = null;\n private propsSnapshot: Record<string, unknown> = {};\n private stateInitialized = false;\n private state: unknown;\n\n protected createRenderRoot() {\n return this;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.style.display = \"contents\";\n }\n\n disconnectedCallback(): void {\n this.disposeBinder();\n super.disconnectedCallback();\n }\n\n private disposeBinder(): void {\n this.binder?.dispose();\n this.binder = null;\n this.binderContext = null;\n }\n\n private ensureBinder(): void {\n if (!this.api || !this.context) return;\n if (this.binder && this.binderContext === this.context) return;\n\n this.disposeBinder();\n this.binderContext = this.context;\n this.binder = new GenericBinder(this.context, this.api.schema);\n this.propsSnapshot = this.binder.snapshot ?? {};\n this.binder.subscribe((props) => {\n this.propsSnapshot = props ?? {};\n this.requestUpdate();\n });\n }\n\n private ensureState(): void {\n if (this.stateInitialized) return;\n this.stateInitialized = true;\n this.state = this.setupState?.();\n }\n\n render() {\n this.ensureBinder();\n this.ensureState();\n if (!this.renderFn || !this.context || !this.buildChild) return nothing;\n return this.renderFn({\n props: this.propsSnapshot,\n buildChild: this.buildChild,\n context: this.context,\n state: this.state,\n requestUpdate: () => this.requestUpdate(),\n });\n }\n}\n"],"mappings":";;;;AAKA,IAAa,wBAAb,cAA2C,WAAW;;;gBAeR;uBACK;uBACA,EAAE;0BACxB;;;oBAjBP;GAClB,KAAK,EAAE,WAAW,OAAO;GACzB,SAAS,EAAE,WAAW,OAAO;GAC7B,YAAY,EAAE,WAAW,OAAO;GAChC,UAAU,EAAE,WAAW,OAAO;GAC9B,YAAY,EAAE,WAAW,OAAO;GACjC;;CAcD,AAAU,mBAAmB;AAC3B,SAAO;;CAGT,oBAA0B;AACxB,QAAM,mBAAmB;AACzB,OAAK,MAAM,UAAU;;CAGvB,uBAA6B;AAC3B,OAAK,eAAe;AACpB,QAAM,sBAAsB;;CAG9B,AAAQ,gBAAsB;AAC5B,OAAK,QAAQ,SAAS;AACtB,OAAK,SAAS;AACd,OAAK,gBAAgB;;CAGvB,AAAQ,eAAqB;AAC3B,MAAI,CAAC,KAAK,OAAO,CAAC,KAAK,QAAS;AAChC,MAAI,KAAK,UAAU,KAAK,kBAAkB,KAAK,QAAS;AAExD,OAAK,eAAe;AACpB,OAAK,gBAAgB,KAAK;AAC1B,OAAK,SAAS,IAAI,cAAc,KAAK,SAAS,KAAK,IAAI,OAAO;AAC9D,OAAK,gBAAgB,KAAK,OAAO,YAAY,EAAE;AAC/C,OAAK,OAAO,WAAW,UAAU;AAC/B,QAAK,gBAAgB,SAAS,EAAE;AAChC,QAAK,eAAe;IACpB;;CAGJ,AAAQ,cAAoB;AAC1B,MAAI,KAAK,iBAAkB;AAC3B,OAAK,mBAAmB;AACxB,OAAK,QAAQ,KAAK,cAAc;;CAGlC,SAAS;AACP,OAAK,cAAc;AACnB,OAAK,aAAa;AAClB,MAAI,CAAC,KAAK,YAAY,CAAC,KAAK,WAAW,CAAC,KAAK,WAAY,QAAO;AAChE,SAAO,KAAK,SAAS;GACnB,OAAO,KAAK;GACZ,YAAY,KAAK;GACjB,SAAS,KAAK;GACd,OAAO,KAAK;GACZ,qBAAqB,KAAK,eAAe;GAC1C,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_adapter = require('../../adapter.cjs');
|
|
2
|
+
const require_utils = require('./utils.cjs');
|
|
3
|
+
let lit = require("lit");
|
|
4
|
+
let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
|
|
5
|
+
let lit_directives_style_map_js = require("lit/directives/style-map.js");
|
|
6
|
+
|
|
7
|
+
//#region src/web-components/catalog/basic/audio-player.ts
|
|
8
|
+
const AudioPlayer = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.AudioPlayerApi, ({ props }) => {
|
|
9
|
+
const style = {
|
|
10
|
+
...require_utils.getBaseLeafStyle(),
|
|
11
|
+
width: "100%"
|
|
12
|
+
};
|
|
13
|
+
return lit.html`
|
|
14
|
+
<div
|
|
15
|
+
style=${(0, lit_directives_style_map_js.styleMap)({
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "column",
|
|
18
|
+
gap: "4px",
|
|
19
|
+
width: "100%"
|
|
20
|
+
})}
|
|
21
|
+
>
|
|
22
|
+
${props.description ? lit.html`<span style="font-size: 12px; color: #666;"
|
|
23
|
+
>${props.description}</span
|
|
24
|
+
>` : lit.nothing}
|
|
25
|
+
<audio src=${props.url ?? ""} controls style=${(0, lit_directives_style_map_js.styleMap)(style)}></audio>
|
|
26
|
+
</div>
|
|
27
|
+
`;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.AudioPlayer = AudioPlayer;
|
|
32
|
+
//# sourceMappingURL=audio-player.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-player.cjs","names":["createLitComponent","AudioPlayerApi","getBaseLeafStyle","nothing"],"sources":["../../../../src/web-components/catalog/basic/audio-player.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { AudioPlayerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const AudioPlayer = createLitComponent(AudioPlayerApi, ({ props }) => {\n const style = { ...getBaseLeafStyle(), width: \"100%\" };\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n })}\n >\n ${\n props.description\n ? html`<span style=\"font-size: 12px; color: #666;\"\n >${props.description}</span\n >`\n : nothing\n }\n <audio src=${props.url ?? \"\"} controls style=${styleMap(style)}></audio>\n </div>\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,cAAcA,mCAAmBC,mDAAiB,EAAE,YAAY;CAC3E,MAAM,QAAQ;EAAE,GAAGC,gCAAkB;EAAE,OAAO;EAAQ;AACtD,QAAO,QAAI;;wDAEU;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACR,CAAC,CAAC;;QAGD,MAAM,cACF,QAAI;eACD,MAAM,YAAY;eAErBC,YACL;mBACY,MAAM,OAAO,GAAG,4DAA2B,MAAM,CAAC;;;EAGnE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/audio-player.d.ts
|
|
5
|
+
declare const AudioPlayer: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { AudioPlayer };
|
|
8
|
+
//# sourceMappingURL=audio-player.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-player.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/audio-player.ts"],"mappings":";;;;cAMa,WAAA,EAqBX,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/audio-player.d.ts
|
|
5
|
+
declare const AudioPlayer: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { AudioPlayer };
|
|
8
|
+
//# sourceMappingURL=audio-player.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-player.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/audio-player.ts"],"mappings":";;;;cAMa,WAAA,EAqBX,0BAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createLitComponent } from "../../adapter.mjs";
|
|
2
|
+
import { getBaseLeafStyle } from "./utils.mjs";
|
|
3
|
+
import { html, nothing } from "lit";
|
|
4
|
+
import { AudioPlayerApi } from "@a2ui/web_core/v0_9/basic_catalog";
|
|
5
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
6
|
+
|
|
7
|
+
//#region src/web-components/catalog/basic/audio-player.ts
|
|
8
|
+
const AudioPlayer = createLitComponent(AudioPlayerApi, ({ props }) => {
|
|
9
|
+
const style = {
|
|
10
|
+
...getBaseLeafStyle(),
|
|
11
|
+
width: "100%"
|
|
12
|
+
};
|
|
13
|
+
return html`
|
|
14
|
+
<div
|
|
15
|
+
style=${styleMap({
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "column",
|
|
18
|
+
gap: "4px",
|
|
19
|
+
width: "100%"
|
|
20
|
+
})}
|
|
21
|
+
>
|
|
22
|
+
${props.description ? html`<span style="font-size: 12px; color: #666;"
|
|
23
|
+
>${props.description}</span
|
|
24
|
+
>` : nothing}
|
|
25
|
+
<audio src=${props.url ?? ""} controls style=${styleMap(style)}></audio>
|
|
26
|
+
</div>
|
|
27
|
+
`;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { AudioPlayer };
|
|
32
|
+
//# sourceMappingURL=audio-player.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-player.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/audio-player.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { AudioPlayerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const AudioPlayer = createLitComponent(AudioPlayerApi, ({ props }) => {\n const style = { ...getBaseLeafStyle(), width: \"100%\" };\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n })}\n >\n ${\n props.description\n ? html`<span style=\"font-size: 12px; color: #666;\"\n >${props.description}</span\n >`\n : nothing\n }\n <audio src=${props.url ?? \"\"} controls style=${styleMap(style)}></audio>\n </div>\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,cAAc,mBAAmB,iBAAiB,EAAE,YAAY;CAC3E,MAAM,QAAQ;EAAE,GAAG,kBAAkB;EAAE,OAAO;EAAQ;AACtD,QAAO,IAAI;;cAEC,SAAS;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACR,CAAC,CAAC;;QAGD,MAAM,cACF,IAAI;eACD,MAAM,YAAY;eAErB,QACL;mBACY,MAAM,OAAO,GAAG,kBAAkB,SAAS,MAAM,CAAC;;;EAGnE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_adapter = require('../../adapter.cjs');
|
|
2
|
+
const require_utils = require('./utils.cjs');
|
|
3
|
+
let lit = require("lit");
|
|
4
|
+
let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
|
|
5
|
+
let lit_directives_style_map_js = require("lit/directives/style-map.js");
|
|
6
|
+
|
|
7
|
+
//#region src/web-components/catalog/basic/button.ts
|
|
8
|
+
const Button = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.ButtonApi, ({ props, buildChild }) => lit.html`
|
|
9
|
+
<button
|
|
10
|
+
type="button"
|
|
11
|
+
style=${(0, lit_directives_style_map_js.styleMap)({
|
|
12
|
+
margin: require_utils.LEAF_MARGIN,
|
|
13
|
+
padding: "8px 16px",
|
|
14
|
+
cursor: "pointer",
|
|
15
|
+
border: props.variant === "borderless" ? "none" : "1px solid #ccc",
|
|
16
|
+
backgroundColor: props.variant === "primary" ? "var(--a2ui-primary-color, #007bff)" : props.variant === "borderless" ? "transparent" : "#fff",
|
|
17
|
+
color: props.variant === "primary" ? "#fff" : "inherit",
|
|
18
|
+
borderRadius: "4px",
|
|
19
|
+
display: "inline-flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
boxSizing: "border-box"
|
|
23
|
+
})}
|
|
24
|
+
?disabled=${props.isValid === false}
|
|
25
|
+
@click=${() => props.action?.()}
|
|
26
|
+
>
|
|
27
|
+
${props.child ? buildChild(props.child) : lit.nothing}
|
|
28
|
+
</button>
|
|
29
|
+
`);
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.Button = Button;
|
|
33
|
+
//# sourceMappingURL=button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.cjs","names":["createLitComponent","ButtonApi","LEAF_MARGIN","nothing"],"sources":["../../../../src/web-components/catalog/basic/button.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { ButtonApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { LEAF_MARGIN } from \"./utils\";\n\nexport const Button = createLitComponent(\n ButtonApi,\n ({ props, buildChild }) => html`\n <button\n type=\"button\"\n style=${styleMap({\n margin: LEAF_MARGIN,\n padding: \"8px 16px\",\n cursor: \"pointer\",\n border: props.variant === \"borderless\" ? \"none\" : \"1px solid #ccc\",\n backgroundColor:\n props.variant === \"primary\"\n ? \"var(--a2ui-primary-color, #007bff)\"\n : props.variant === \"borderless\"\n ? \"transparent\"\n : \"#fff\",\n color: props.variant === \"primary\" ? \"#fff\" : \"inherit\",\n borderRadius: \"4px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n boxSizing: \"border-box\",\n })}\n ?disabled=${props.isValid === false}\n @click=${() => props.action?.()}\n >\n ${props.child ? buildChild(props.child) : nothing}\n </button>\n `,\n);\n"],"mappings":";;;;;;;AAMA,MAAa,SAASA,mCACpBC,8CACC,EAAE,OAAO,iBAAiB,QAAI;;;wDAGV;CACf,QAAQC;CACR,SAAS;CACT,QAAQ;CACR,QAAQ,MAAM,YAAY,eAAe,SAAS;CAClD,iBACE,MAAM,YAAY,YACd,uCACA,MAAM,YAAY,eAChB,gBACA;CACR,OAAO,MAAM,YAAY,YAAY,SAAS;CAC9C,cAAc;CACd,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACZ,CAAC,CAAC;kBACS,MAAM,YAAY,MAAM;qBACrB,MAAM,UAAU,CAAC;;QAE9B,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAGC,YAAQ;;IAGvD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/button.d.ts
|
|
5
|
+
declare const Button: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Button };
|
|
8
|
+
//# sourceMappingURL=button.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/button.ts"],"mappings":";;;;cAMa,MAAA,EA6BZ,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/button.d.ts
|
|
5
|
+
declare const Button: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Button };
|
|
8
|
+
//# sourceMappingURL=button.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/button.ts"],"mappings":";;;;cAMa,MAAA,EA6BZ,0BAAA"}
|