@copilotkit/a2ui-renderer 1.60.2 → 1.61.1
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,44 @@
|
|
|
1
|
+
const require_audio_player = require('./audio-player.cjs');
|
|
2
|
+
const require_button = require('./button.cjs');
|
|
3
|
+
const require_card = require('./card.cjs');
|
|
4
|
+
const require_check_box = require('./check-box.cjs');
|
|
5
|
+
const require_choice_picker = require('./choice-picker.cjs');
|
|
6
|
+
const require_column = require('./column.cjs');
|
|
7
|
+
const require_date_time_input = require('./date-time-input.cjs');
|
|
8
|
+
const require_divider = require('./divider.cjs');
|
|
9
|
+
const require_icon = require('./icon.cjs');
|
|
10
|
+
const require_image = require('./image.cjs');
|
|
11
|
+
const require_list = require('./list.cjs');
|
|
12
|
+
const require_modal = require('./modal.cjs');
|
|
13
|
+
const require_row = require('./row.cjs');
|
|
14
|
+
const require_slider = require('./slider.cjs');
|
|
15
|
+
const require_tabs = require('./tabs.cjs');
|
|
16
|
+
const require_text = require('./text.cjs');
|
|
17
|
+
const require_text_field = require('./text-field.cjs');
|
|
18
|
+
const require_video = require('./video.cjs');
|
|
19
|
+
|
|
20
|
+
//#region src/web-components/catalog/basic/components.ts
|
|
21
|
+
const basicComponents = [
|
|
22
|
+
require_text.Text,
|
|
23
|
+
require_image.Image,
|
|
24
|
+
require_icon.Icon,
|
|
25
|
+
require_video.Video,
|
|
26
|
+
require_audio_player.AudioPlayer,
|
|
27
|
+
require_row.Row,
|
|
28
|
+
require_column.Column,
|
|
29
|
+
require_list.List,
|
|
30
|
+
require_card.Card,
|
|
31
|
+
require_tabs.Tabs,
|
|
32
|
+
require_divider.Divider,
|
|
33
|
+
require_modal.Modal,
|
|
34
|
+
require_button.Button,
|
|
35
|
+
require_text_field.TextField,
|
|
36
|
+
require_check_box.CheckBox,
|
|
37
|
+
require_choice_picker.ChoicePicker,
|
|
38
|
+
require_slider.Slider,
|
|
39
|
+
require_date_time_input.DateTimeInput
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.basicComponents = basicComponents;
|
|
44
|
+
//# sourceMappingURL=components.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.cjs","names":["Text","Image","Icon","Video","AudioPlayer","Row","Column","List","Card","Tabs","Divider","Modal","Button","TextField","CheckBox","ChoicePicker","Slider","DateTimeInput"],"sources":["../../../../src/web-components/catalog/basic/components.ts"],"sourcesContent":["import type { LitComponentImplementation } from \"../../types\";\nimport { AudioPlayer } from \"./audio-player\";\nimport { Button } from \"./button\";\nimport { Card } from \"./card\";\nimport { CheckBox } from \"./check-box\";\nimport { ChoicePicker } from \"./choice-picker\";\nimport { Column } from \"./column\";\nimport { DateTimeInput } from \"./date-time-input\";\nimport { Divider } from \"./divider\";\nimport { Icon } from \"./icon\";\nimport { Image } from \"./image\";\nimport { List } from \"./list\";\nimport { Modal } from \"./modal\";\nimport { Row } from \"./row\";\nimport { Slider } from \"./slider\";\nimport { Tabs } from \"./tabs\";\nimport { Text } from \"./text\";\nimport { TextField } from \"./text-field\";\nimport { Video } from \"./video\";\n\nexport { AudioPlayer } from \"./audio-player\";\nexport { Button } from \"./button\";\nexport { Card } from \"./card\";\nexport { CheckBox } from \"./check-box\";\nexport { ChoicePicker } from \"./choice-picker\";\nexport { Column } from \"./column\";\nexport { DateTimeInput } from \"./date-time-input\";\nexport { Divider } from \"./divider\";\nexport { Icon } from \"./icon\";\nexport { Image } from \"./image\";\nexport { List } from \"./list\";\nexport { Modal } from \"./modal\";\nexport { Row } from \"./row\";\nexport { Slider } from \"./slider\";\nexport { Tabs } from \"./tabs\";\nexport { Text } from \"./text\";\nexport { TextField } from \"./text-field\";\nexport { Video } from \"./video\";\n\nexport const basicComponents: LitComponentImplementation[] = [\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,kBAAgD;CAC3DA;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../../types.cjs";
|
|
2
|
+
import { AudioPlayer } from "./audio-player.cjs";
|
|
3
|
+
import { Button } from "./button.cjs";
|
|
4
|
+
import { Card } from "./card.cjs";
|
|
5
|
+
import { CheckBox } from "./check-box.cjs";
|
|
6
|
+
import { ChoicePicker } from "./choice-picker.cjs";
|
|
7
|
+
import { Column } from "./column.cjs";
|
|
8
|
+
import { DateTimeInput } from "./date-time-input.cjs";
|
|
9
|
+
import { Divider } from "./divider.cjs";
|
|
10
|
+
import { Icon } from "./icon.cjs";
|
|
11
|
+
import { Image } from "./image.cjs";
|
|
12
|
+
import { List } from "./list.cjs";
|
|
13
|
+
import { Modal } from "./modal.cjs";
|
|
14
|
+
import { Row } from "./row.cjs";
|
|
15
|
+
import { Slider } from "./slider.cjs";
|
|
16
|
+
import { Tabs } from "./tabs.cjs";
|
|
17
|
+
import { Text } from "./text.cjs";
|
|
18
|
+
import { TextField } from "./text-field.cjs";
|
|
19
|
+
import { Video } from "./video.cjs";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../../types.mjs";
|
|
2
|
+
import { AudioPlayer } from "./audio-player.mjs";
|
|
3
|
+
import { Button } from "./button.mjs";
|
|
4
|
+
import { Card } from "./card.mjs";
|
|
5
|
+
import { CheckBox } from "./check-box.mjs";
|
|
6
|
+
import { ChoicePicker } from "./choice-picker.mjs";
|
|
7
|
+
import { Column } from "./column.mjs";
|
|
8
|
+
import { DateTimeInput } from "./date-time-input.mjs";
|
|
9
|
+
import { Divider } from "./divider.mjs";
|
|
10
|
+
import { Icon } from "./icon.mjs";
|
|
11
|
+
import { Image } from "./image.mjs";
|
|
12
|
+
import { List } from "./list.mjs";
|
|
13
|
+
import { Modal } from "./modal.mjs";
|
|
14
|
+
import { Row } from "./row.mjs";
|
|
15
|
+
import { Slider } from "./slider.mjs";
|
|
16
|
+
import { Tabs } from "./tabs.mjs";
|
|
17
|
+
import { Text } from "./text.mjs";
|
|
18
|
+
import { TextField } from "./text-field.mjs";
|
|
19
|
+
import { Video } from "./video.mjs";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AudioPlayer } from "./audio-player.mjs";
|
|
2
|
+
import { Button } from "./button.mjs";
|
|
3
|
+
import { Card } from "./card.mjs";
|
|
4
|
+
import { CheckBox } from "./check-box.mjs";
|
|
5
|
+
import { ChoicePicker } from "./choice-picker.mjs";
|
|
6
|
+
import { Column } from "./column.mjs";
|
|
7
|
+
import { DateTimeInput } from "./date-time-input.mjs";
|
|
8
|
+
import { Divider } from "./divider.mjs";
|
|
9
|
+
import { Icon } from "./icon.mjs";
|
|
10
|
+
import { Image } from "./image.mjs";
|
|
11
|
+
import { List } from "./list.mjs";
|
|
12
|
+
import { Modal } from "./modal.mjs";
|
|
13
|
+
import { Row } from "./row.mjs";
|
|
14
|
+
import { Slider } from "./slider.mjs";
|
|
15
|
+
import { Tabs } from "./tabs.mjs";
|
|
16
|
+
import { Text } from "./text.mjs";
|
|
17
|
+
import { TextField } from "./text-field.mjs";
|
|
18
|
+
import { Video } from "./video.mjs";
|
|
19
|
+
|
|
20
|
+
//#region src/web-components/catalog/basic/components.ts
|
|
21
|
+
const basicComponents = [
|
|
22
|
+
Text,
|
|
23
|
+
Image,
|
|
24
|
+
Icon,
|
|
25
|
+
Video,
|
|
26
|
+
AudioPlayer,
|
|
27
|
+
Row,
|
|
28
|
+
Column,
|
|
29
|
+
List,
|
|
30
|
+
Card,
|
|
31
|
+
Tabs,
|
|
32
|
+
Divider,
|
|
33
|
+
Modal,
|
|
34
|
+
Button,
|
|
35
|
+
TextField,
|
|
36
|
+
CheckBox,
|
|
37
|
+
ChoicePicker,
|
|
38
|
+
Slider,
|
|
39
|
+
DateTimeInput
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { basicComponents };
|
|
44
|
+
//# sourceMappingURL=components.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/components.ts"],"sourcesContent":["import type { LitComponentImplementation } from \"../../types\";\nimport { AudioPlayer } from \"./audio-player\";\nimport { Button } from \"./button\";\nimport { Card } from \"./card\";\nimport { CheckBox } from \"./check-box\";\nimport { ChoicePicker } from \"./choice-picker\";\nimport { Column } from \"./column\";\nimport { DateTimeInput } from \"./date-time-input\";\nimport { Divider } from \"./divider\";\nimport { Icon } from \"./icon\";\nimport { Image } from \"./image\";\nimport { List } from \"./list\";\nimport { Modal } from \"./modal\";\nimport { Row } from \"./row\";\nimport { Slider } from \"./slider\";\nimport { Tabs } from \"./tabs\";\nimport { Text } from \"./text\";\nimport { TextField } from \"./text-field\";\nimport { Video } from \"./video\";\n\nexport { AudioPlayer } from \"./audio-player\";\nexport { Button } from \"./button\";\nexport { Card } from \"./card\";\nexport { CheckBox } from \"./check-box\";\nexport { ChoicePicker } from \"./choice-picker\";\nexport { Column } from \"./column\";\nexport { DateTimeInput } from \"./date-time-input\";\nexport { Divider } from \"./divider\";\nexport { Icon } from \"./icon\";\nexport { Image } from \"./image\";\nexport { List } from \"./list\";\nexport { Modal } from \"./modal\";\nexport { Row } from \"./row\";\nexport { Slider } from \"./slider\";\nexport { Tabs } from \"./tabs\";\nexport { Text } from \"./text\";\nexport { TextField } from \"./text-field\";\nexport { Video } from \"./video\";\n\nexport const basicComponents: LitComponentImplementation[] = [\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,kBAAgD;CAC3D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const require_adapter = require('../../adapter.cjs');
|
|
2
|
+
const require_utils = require('./utils.cjs');
|
|
3
|
+
const require_ids = require('./ids.cjs');
|
|
4
|
+
let lit = require("lit");
|
|
5
|
+
let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
|
|
6
|
+
let lit_directives_style_map_js = require("lit/directives/style-map.js");
|
|
7
|
+
|
|
8
|
+
//#region src/web-components/catalog/basic/date-time-input.ts
|
|
9
|
+
const DateTimeInput = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.DateTimeInputApi, ({ props }) => {
|
|
10
|
+
const inputId = require_ids.uniqueId("datetime");
|
|
11
|
+
let type = "datetime-local";
|
|
12
|
+
if (props.enableDate && !props.enableTime) type = "date";
|
|
13
|
+
if (!props.enableDate && props.enableTime) type = "time";
|
|
14
|
+
return lit.html`
|
|
15
|
+
<div
|
|
16
|
+
style=${(0, lit_directives_style_map_js.styleMap)({
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
gap: "4px",
|
|
20
|
+
width: "100%",
|
|
21
|
+
margin: require_utils.LEAF_MARGIN
|
|
22
|
+
})}
|
|
23
|
+
>
|
|
24
|
+
${props.label ? lit.html`<label
|
|
25
|
+
for=${inputId}
|
|
26
|
+
style="font-size: 14px; font-weight: bold;"
|
|
27
|
+
>${props.label}</label
|
|
28
|
+
>` : lit.nothing}
|
|
29
|
+
<input
|
|
30
|
+
id=${inputId}
|
|
31
|
+
type=${type}
|
|
32
|
+
style=${(0, lit_directives_style_map_js.styleMap)({
|
|
33
|
+
padding: "8px",
|
|
34
|
+
width: "100%",
|
|
35
|
+
border: require_utils.STANDARD_BORDER,
|
|
36
|
+
borderRadius: require_utils.STANDARD_RADIUS,
|
|
37
|
+
boxSizing: "border-box"
|
|
38
|
+
})}
|
|
39
|
+
.value=${props.value || ""}
|
|
40
|
+
min=${typeof props.min === "string" ? props.min : ""}
|
|
41
|
+
max=${typeof props.max === "string" ? props.max : ""}
|
|
42
|
+
@input=${(e) => props.setValue(e.target.value)}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.DateTimeInput = DateTimeInput;
|
|
50
|
+
//# sourceMappingURL=date-time-input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-input.cjs","names":["createLitComponent","DateTimeInputApi","uniqueId","LEAF_MARGIN","nothing","STANDARD_BORDER","STANDARD_RADIUS"],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DateTimeInputApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { uniqueId } from \"./ids\";\nimport { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from \"./utils\";\n\nexport const DateTimeInput = createLitComponent(\n DateTimeInputApi,\n ({ props }) => {\n const inputId = uniqueId(\"datetime\");\n let type = \"datetime-local\";\n if (props.enableDate && !props.enableTime) type = \"date\";\n if (!props.enableDate && props.enableTime) type = \"time\";\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n margin: LEAF_MARGIN,\n })}\n >\n ${\n props.label\n ? html`<label\n for=${inputId}\n style=\"font-size: 14px; font-weight: bold;\"\n >${props.label}</label\n >`\n : nothing\n }\n <input\n id=${inputId}\n type=${type}\n style=${styleMap({\n padding: \"8px\",\n width: \"100%\",\n border: STANDARD_BORDER,\n borderRadius: STANDARD_RADIUS,\n boxSizing: \"border-box\",\n })}\n .value=${props.value || \"\"}\n min=${typeof props.min === \"string\" ? props.min : \"\"}\n max=${typeof props.max === \"string\" ? props.max : \"\"}\n @input=${(e: Event) =>\n props.setValue((e.target as HTMLInputElement).value)}\n />\n </div>\n `;\n },\n);\n"],"mappings":";;;;;;;;AAOA,MAAa,gBAAgBA,mCAC3BC,qDACC,EAAE,YAAY;CACb,MAAM,UAAUC,qBAAS,WAAW;CACpC,IAAI,OAAO;AACX,KAAI,MAAM,cAAc,CAAC,MAAM,WAAY,QAAO;AAClD,KAAI,CAAC,MAAM,cAAc,MAAM,WAAY,QAAO;AAClD,QAAO,QAAI;;wDAEQ;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACP,QAAQC;EACT,CAAC,CAAC;;QAGD,MAAM,QACF,QAAI;kBACE,QAAQ;;eAEX,MAAM,MAAM;eAEfC,YACL;;aAEM,QAAQ;eACN,KAAK;0DACK;EACf,SAAS;EACT,OAAO;EACP,QAAQC;EACR,cAAcC;EACd,WAAW;EACZ,CAAC,CAAC;iBACM,MAAM,SAAS,GAAG;cACrB,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;cAC/C,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;kBAC3C,MACR,MAAM,SAAU,EAAE,OAA4B,MAAM,CAAC;;;;EAK9D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/date-time-input.d.ts
|
|
5
|
+
declare const DateTimeInput: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DateTimeInput };
|
|
8
|
+
//# sourceMappingURL=date-time-input.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-input.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"mappings":";;;;cAOa,aAAA,EA6CZ,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/date-time-input.d.ts
|
|
5
|
+
declare const DateTimeInput: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DateTimeInput };
|
|
8
|
+
//# sourceMappingURL=date-time-input.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-input.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"mappings":";;;;cAOa,aAAA,EA6CZ,0BAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createLitComponent } from "../../adapter.mjs";
|
|
2
|
+
import { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from "./utils.mjs";
|
|
3
|
+
import { uniqueId } from "./ids.mjs";
|
|
4
|
+
import { html, nothing } from "lit";
|
|
5
|
+
import { DateTimeInputApi } from "@a2ui/web_core/v0_9/basic_catalog";
|
|
6
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
7
|
+
|
|
8
|
+
//#region src/web-components/catalog/basic/date-time-input.ts
|
|
9
|
+
const DateTimeInput = createLitComponent(DateTimeInputApi, ({ props }) => {
|
|
10
|
+
const inputId = uniqueId("datetime");
|
|
11
|
+
let type = "datetime-local";
|
|
12
|
+
if (props.enableDate && !props.enableTime) type = "date";
|
|
13
|
+
if (!props.enableDate && props.enableTime) type = "time";
|
|
14
|
+
return html`
|
|
15
|
+
<div
|
|
16
|
+
style=${styleMap({
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
gap: "4px",
|
|
20
|
+
width: "100%",
|
|
21
|
+
margin: LEAF_MARGIN
|
|
22
|
+
})}
|
|
23
|
+
>
|
|
24
|
+
${props.label ? html`<label
|
|
25
|
+
for=${inputId}
|
|
26
|
+
style="font-size: 14px; font-weight: bold;"
|
|
27
|
+
>${props.label}</label
|
|
28
|
+
>` : nothing}
|
|
29
|
+
<input
|
|
30
|
+
id=${inputId}
|
|
31
|
+
type=${type}
|
|
32
|
+
style=${styleMap({
|
|
33
|
+
padding: "8px",
|
|
34
|
+
width: "100%",
|
|
35
|
+
border: STANDARD_BORDER,
|
|
36
|
+
borderRadius: STANDARD_RADIUS,
|
|
37
|
+
boxSizing: "border-box"
|
|
38
|
+
})}
|
|
39
|
+
.value=${props.value || ""}
|
|
40
|
+
min=${typeof props.min === "string" ? props.min : ""}
|
|
41
|
+
max=${typeof props.max === "string" ? props.max : ""}
|
|
42
|
+
@input=${(e) => props.setValue(e.target.value)}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { DateTimeInput };
|
|
50
|
+
//# sourceMappingURL=date-time-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-input.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DateTimeInputApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { uniqueId } from \"./ids\";\nimport { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from \"./utils\";\n\nexport const DateTimeInput = createLitComponent(\n DateTimeInputApi,\n ({ props }) => {\n const inputId = uniqueId(\"datetime\");\n let type = \"datetime-local\";\n if (props.enableDate && !props.enableTime) type = \"date\";\n if (!props.enableDate && props.enableTime) type = \"time\";\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n margin: LEAF_MARGIN,\n })}\n >\n ${\n props.label\n ? html`<label\n for=${inputId}\n style=\"font-size: 14px; font-weight: bold;\"\n >${props.label}</label\n >`\n : nothing\n }\n <input\n id=${inputId}\n type=${type}\n style=${styleMap({\n padding: \"8px\",\n width: \"100%\",\n border: STANDARD_BORDER,\n borderRadius: STANDARD_RADIUS,\n boxSizing: \"border-box\",\n })}\n .value=${props.value || \"\"}\n min=${typeof props.min === \"string\" ? props.min : \"\"}\n max=${typeof props.max === \"string\" ? props.max : \"\"}\n @input=${(e: Event) =>\n props.setValue((e.target as HTMLInputElement).value)}\n />\n </div>\n `;\n },\n);\n"],"mappings":";;;;;;;;AAOA,MAAa,gBAAgB,mBAC3B,mBACC,EAAE,YAAY;CACb,MAAM,UAAU,SAAS,WAAW;CACpC,IAAI,OAAO;AACX,KAAI,MAAM,cAAc,CAAC,MAAM,WAAY,QAAO;AAClD,KAAI,CAAC,MAAM,cAAc,MAAM,WAAY,QAAO;AAClD,QAAO,IAAI;;cAED,SAAS;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACP,QAAQ;EACT,CAAC,CAAC;;QAGD,MAAM,QACF,IAAI;kBACE,QAAQ;;eAEX,MAAM,MAAM;eAEf,QACL;;aAEM,QAAQ;eACN,KAAK;gBACJ,SAAS;EACf,SAAS;EACT,OAAO;EACP,QAAQ;EACR,cAAc;EACd,WAAW;EACZ,CAAC,CAAC;iBACM,MAAM,SAAS,GAAG;cACrB,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;cAC/C,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;kBAC3C,MACR,MAAM,SAAU,EAAE,OAA4B,MAAM,CAAC;;;;EAK9D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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/divider.ts
|
|
8
|
+
const Divider = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.DividerApi, ({ props }) => {
|
|
9
|
+
const isVertical = props.axis === "vertical";
|
|
10
|
+
return lit.html`<div style=${(0, lit_directives_style_map_js.styleMap)({
|
|
11
|
+
margin: require_utils.LEAF_MARGIN,
|
|
12
|
+
border: "none",
|
|
13
|
+
backgroundColor: "#ccc",
|
|
14
|
+
width: isVertical ? "1px" : "100%",
|
|
15
|
+
height: isVertical ? "100%" : "1px"
|
|
16
|
+
})}></div>`;
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.Divider = Divider;
|
|
21
|
+
//# sourceMappingURL=divider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.cjs","names":["createLitComponent","DividerApi","LEAF_MARGIN"],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DividerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { LEAF_MARGIN } from \"./utils\";\n\nexport const Divider = createLitComponent(DividerApi, ({ props }) => {\n const isVertical = props.axis === \"vertical\";\n const style: Record<string, string> = {\n margin: LEAF_MARGIN,\n border: \"none\",\n backgroundColor: \"#ccc\",\n width: isVertical ? \"1px\" : \"100%\",\n height: isVertical ? \"100%\" : \"1px\",\n };\n return html`<div style=${styleMap(style)}></div>`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,UAAUA,mCAAmBC,+CAAa,EAAE,YAAY;CACnE,MAAM,aAAa,MAAM,SAAS;AAQlC,QAAO,QAAI,wDAP2B;EACpC,QAAQC;EACR,QAAQ;EACR,iBAAiB;EACjB,OAAO,aAAa,QAAQ;EAC5B,QAAQ,aAAa,SAAS;EAC/B,CACuC,CAAC;EACzC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/divider.d.ts
|
|
5
|
+
declare const Divider: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Divider };
|
|
8
|
+
//# sourceMappingURL=divider.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"mappings":";;;;cAMa,OAAA,EAUX,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/divider.d.ts
|
|
5
|
+
declare const Divider: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Divider };
|
|
8
|
+
//# sourceMappingURL=divider.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"mappings":";;;;cAMa,OAAA,EAUX,0BAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createLitComponent } from "../../adapter.mjs";
|
|
2
|
+
import { LEAF_MARGIN } from "./utils.mjs";
|
|
3
|
+
import { html } from "lit";
|
|
4
|
+
import { DividerApi } 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/divider.ts
|
|
8
|
+
const Divider = createLitComponent(DividerApi, ({ props }) => {
|
|
9
|
+
const isVertical = props.axis === "vertical";
|
|
10
|
+
return html`<div style=${styleMap({
|
|
11
|
+
margin: LEAF_MARGIN,
|
|
12
|
+
border: "none",
|
|
13
|
+
backgroundColor: "#ccc",
|
|
14
|
+
width: isVertical ? "1px" : "100%",
|
|
15
|
+
height: isVertical ? "100%" : "1px"
|
|
16
|
+
})}></div>`;
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Divider };
|
|
21
|
+
//# sourceMappingURL=divider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DividerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { LEAF_MARGIN } from \"./utils\";\n\nexport const Divider = createLitComponent(DividerApi, ({ props }) => {\n const isVertical = props.axis === \"vertical\";\n const style: Record<string, string> = {\n margin: LEAF_MARGIN,\n border: \"none\",\n backgroundColor: \"#ccc\",\n width: isVertical ? \"1px\" : \"100%\",\n height: isVertical ? \"100%\" : \"1px\",\n };\n return html`<div style=${styleMap(style)}></div>`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,UAAU,mBAAmB,aAAa,EAAE,YAAY;CACnE,MAAM,aAAa,MAAM,SAAS;AAQlC,QAAO,IAAI,cAAc,SAPa;EACpC,QAAQ;EACR,QAAQ;EACR,iBAAiB;EACjB,OAAO,aAAa,QAAQ;EAC5B,QAAQ,aAAa,SAAS;EAC/B,CACuC,CAAC;EACzC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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/icon.ts
|
|
8
|
+
const Icon = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.IconApi, ({ props }) => {
|
|
9
|
+
const iconName = typeof props.name === "string" ? props.name : props.name?.path;
|
|
10
|
+
return lit.html`
|
|
11
|
+
<span
|
|
12
|
+
class="material-symbols-outlined"
|
|
13
|
+
style=${(0, lit_directives_style_map_js.styleMap)({
|
|
14
|
+
...require_utils.getBaseLeafStyle(),
|
|
15
|
+
fontSize: "24px",
|
|
16
|
+
width: "24px",
|
|
17
|
+
height: "24px",
|
|
18
|
+
display: "inline-flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center"
|
|
21
|
+
})}
|
|
22
|
+
>${iconName}</span
|
|
23
|
+
>
|
|
24
|
+
`;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.Icon = Icon;
|
|
29
|
+
//# sourceMappingURL=icon.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.cjs","names":["createLitComponent","IconApi","getBaseLeafStyle"],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { IconApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Icon = createLitComponent(IconApi, ({ props }) => {\n const iconName =\n typeof props.name === \"string\"\n ? props.name\n : (props.name as { path?: string } | undefined)?.path;\n return html`\n <span\n class=\"material-symbols-outlined\"\n style=${styleMap({\n ...getBaseLeafStyle(),\n fontSize: \"24px\",\n width: \"24px\",\n height: \"24px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n })}\n >${iconName}</span\n >\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,OAAOA,mCAAmBC,4CAAU,EAAE,YAAY;CAC7D,MAAM,WACJ,OAAO,MAAM,SAAS,WAClB,MAAM,OACL,MAAM,MAAwC;AACrD,QAAO,QAAI;;;wDAGU;EACf,GAAGC,gCAAkB;EACrB,UAAU;EACV,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY;EACZ,gBAAgB;EACjB,CAAC,CAAC;SACA,SAAS;;;EAGhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/icon.d.ts
|
|
5
|
+
declare const Icon: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Icon };
|
|
8
|
+
//# sourceMappingURL=icon.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"mappings":";;;;cAMa,IAAA,EAoBX,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/icon.d.ts
|
|
5
|
+
declare const Icon: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Icon };
|
|
8
|
+
//# sourceMappingURL=icon.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"mappings":";;;;cAMa,IAAA,EAoBX,0BAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createLitComponent } from "../../adapter.mjs";
|
|
2
|
+
import { getBaseLeafStyle } from "./utils.mjs";
|
|
3
|
+
import { html } from "lit";
|
|
4
|
+
import { IconApi } 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/icon.ts
|
|
8
|
+
const Icon = createLitComponent(IconApi, ({ props }) => {
|
|
9
|
+
const iconName = typeof props.name === "string" ? props.name : props.name?.path;
|
|
10
|
+
return html`
|
|
11
|
+
<span
|
|
12
|
+
class="material-symbols-outlined"
|
|
13
|
+
style=${styleMap({
|
|
14
|
+
...getBaseLeafStyle(),
|
|
15
|
+
fontSize: "24px",
|
|
16
|
+
width: "24px",
|
|
17
|
+
height: "24px",
|
|
18
|
+
display: "inline-flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center"
|
|
21
|
+
})}
|
|
22
|
+
>${iconName}</span
|
|
23
|
+
>
|
|
24
|
+
`;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Icon };
|
|
29
|
+
//# sourceMappingURL=icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { IconApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Icon = createLitComponent(IconApi, ({ props }) => {\n const iconName =\n typeof props.name === \"string\"\n ? props.name\n : (props.name as { path?: string } | undefined)?.path;\n return html`\n <span\n class=\"material-symbols-outlined\"\n style=${styleMap({\n ...getBaseLeafStyle(),\n fontSize: \"24px\",\n width: \"24px\",\n height: \"24px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n })}\n >${iconName}</span\n >\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,OAAO,mBAAmB,UAAU,EAAE,YAAY;CAC7D,MAAM,WACJ,OAAO,MAAM,SAAS,WAClB,MAAM,OACL,MAAM,MAAwC;AACrD,QAAO,IAAI;;;cAGC,SAAS;EACf,GAAG,kBAAkB;EACrB,UAAU;EACV,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY;EACZ,gBAAgB;EACjB,CAAC,CAAC;SACA,SAAS;;;EAGhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.cjs","names":[],"sources":["../../../../src/web-components/catalog/basic/ids.ts"],"sourcesContent":["let idCounter = 0;\n\nexport function uniqueId(prefix: string): string {\n idCounter += 1;\n return `cpk-a2ui-${prefix}-${idCounter}`;\n}\n"],"mappings":";;AAAA,IAAI,YAAY;AAEhB,SAAgB,SAAS,QAAwB;AAC/C,cAAa;AACb,QAAO,YAAY,OAAO,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/ids.ts"],"sourcesContent":["let idCounter = 0;\n\nexport function uniqueId(prefix: string): string {\n idCounter += 1;\n return `cpk-a2ui-${prefix}-${idCounter}`;\n}\n"],"mappings":";AAAA,IAAI,YAAY;AAEhB,SAAgB,SAAS,QAAwB;AAC/C,cAAa;AACb,QAAO,YAAY,OAAO,GAAG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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/image.ts
|
|
8
|
+
const Image = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.ImageApi, ({ props }) => {
|
|
9
|
+
const mapFit = (fit) => {
|
|
10
|
+
if (fit === "scaleDown") return "scale-down";
|
|
11
|
+
return fit || "fill";
|
|
12
|
+
};
|
|
13
|
+
const style = {
|
|
14
|
+
...require_utils.getBaseLeafStyle(),
|
|
15
|
+
objectFit: mapFit(props.fit),
|
|
16
|
+
width: "100%",
|
|
17
|
+
height: "auto",
|
|
18
|
+
display: "block"
|
|
19
|
+
};
|
|
20
|
+
if (props.variant === "icon") {
|
|
21
|
+
style.width = "24px";
|
|
22
|
+
style.height = "24px";
|
|
23
|
+
} else if (props.variant === "avatar") {
|
|
24
|
+
style.width = "40px";
|
|
25
|
+
style.height = "40px";
|
|
26
|
+
style.borderRadius = "50%";
|
|
27
|
+
} else if (props.variant === "smallFeature") style.maxWidth = "100px";
|
|
28
|
+
else if (props.variant === "largeFeature") style.maxHeight = "400px";
|
|
29
|
+
else if (props.variant === "header") {
|
|
30
|
+
style.height = "200px";
|
|
31
|
+
style.objectFit = "cover";
|
|
32
|
+
}
|
|
33
|
+
return lit.html`<img
|
|
34
|
+
src=${props.url ?? ""}
|
|
35
|
+
alt=${props.description ?? ""}
|
|
36
|
+
style=${(0, lit_directives_style_map_js.styleMap)(style)}
|
|
37
|
+
/>`;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.Image = Image;
|
|
42
|
+
//# sourceMappingURL=image.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.cjs","names":["createLitComponent","ImageApi","getBaseLeafStyle"],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { ImageApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Image = createLitComponent(ImageApi, ({ props }) => {\n const mapFit = (fit?: string): string => {\n if (fit === \"scaleDown\") return \"scale-down\";\n return fit || \"fill\";\n };\n const style: Record<string, string> = {\n ...getBaseLeafStyle(),\n objectFit: mapFit(props.fit),\n width: \"100%\",\n height: \"auto\",\n display: \"block\",\n } as Record<string, string>;\n\n if (props.variant === \"icon\") {\n style.width = \"24px\";\n style.height = \"24px\";\n } else if (props.variant === \"avatar\") {\n style.width = \"40px\";\n style.height = \"40px\";\n style.borderRadius = \"50%\";\n } else if (props.variant === \"smallFeature\") {\n style.maxWidth = \"100px\";\n } else if (props.variant === \"largeFeature\") {\n style.maxHeight = \"400px\";\n } else if (props.variant === \"header\") {\n style.height = \"200px\";\n style.objectFit = \"cover\";\n }\n\n return html`<img\n src=${props.url ?? \"\"}\n alt=${props.description ?? \"\"}\n style=${styleMap(style)}\n />`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,QAAQA,mCAAmBC,6CAAW,EAAE,YAAY;CAC/D,MAAM,UAAU,QAAyB;AACvC,MAAI,QAAQ,YAAa,QAAO;AAChC,SAAO,OAAO;;CAEhB,MAAM,QAAgC;EACpC,GAAGC,gCAAkB;EACrB,WAAW,OAAO,MAAM,IAAI;EAC5B,OAAO;EACP,QAAQ;EACR,SAAS;EACV;AAED,KAAI,MAAM,YAAY,QAAQ;AAC5B,QAAM,QAAQ;AACd,QAAM,SAAS;YACN,MAAM,YAAY,UAAU;AACrC,QAAM,QAAQ;AACd,QAAM,SAAS;AACf,QAAM,eAAe;YACZ,MAAM,YAAY,eAC3B,OAAM,WAAW;UACR,MAAM,YAAY,eAC3B,OAAM,YAAY;UACT,MAAM,YAAY,UAAU;AACrC,QAAM,SAAS;AACf,QAAM,YAAY;;AAGpB,QAAO,QAAI;UACH,MAAM,OAAO,GAAG;UAChB,MAAM,eAAe,GAAG;sDACb,MAAM,CAAC;;EAE1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.cjs";
|
|
2
|
+
import "../../index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/image.d.ts
|
|
5
|
+
declare const Image: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Image };
|
|
8
|
+
//# sourceMappingURL=image.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"mappings":";;;;cAMa,KAAA,EAkCX,0BAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitComponentImplementation } from "../../types.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/web-components/catalog/basic/image.d.ts
|
|
5
|
+
declare const Image: LitComponentImplementation;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Image };
|
|
8
|
+
//# sourceMappingURL=image.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"mappings":";;;;cAMa,KAAA,EAkCX,0BAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createLitComponent } from "../../adapter.mjs";
|
|
2
|
+
import { getBaseLeafStyle } from "./utils.mjs";
|
|
3
|
+
import { html } from "lit";
|
|
4
|
+
import { ImageApi } 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/image.ts
|
|
8
|
+
const Image = createLitComponent(ImageApi, ({ props }) => {
|
|
9
|
+
const mapFit = (fit) => {
|
|
10
|
+
if (fit === "scaleDown") return "scale-down";
|
|
11
|
+
return fit || "fill";
|
|
12
|
+
};
|
|
13
|
+
const style = {
|
|
14
|
+
...getBaseLeafStyle(),
|
|
15
|
+
objectFit: mapFit(props.fit),
|
|
16
|
+
width: "100%",
|
|
17
|
+
height: "auto",
|
|
18
|
+
display: "block"
|
|
19
|
+
};
|
|
20
|
+
if (props.variant === "icon") {
|
|
21
|
+
style.width = "24px";
|
|
22
|
+
style.height = "24px";
|
|
23
|
+
} else if (props.variant === "avatar") {
|
|
24
|
+
style.width = "40px";
|
|
25
|
+
style.height = "40px";
|
|
26
|
+
style.borderRadius = "50%";
|
|
27
|
+
} else if (props.variant === "smallFeature") style.maxWidth = "100px";
|
|
28
|
+
else if (props.variant === "largeFeature") style.maxHeight = "400px";
|
|
29
|
+
else if (props.variant === "header") {
|
|
30
|
+
style.height = "200px";
|
|
31
|
+
style.objectFit = "cover";
|
|
32
|
+
}
|
|
33
|
+
return html`<img
|
|
34
|
+
src=${props.url ?? ""}
|
|
35
|
+
alt=${props.description ?? ""}
|
|
36
|
+
style=${styleMap(style)}
|
|
37
|
+
/>`;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Image };
|
|
42
|
+
//# sourceMappingURL=image.mjs.map
|