@20baht/ui 0.1.1 → 0.2.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.
@@ -11,8 +11,6 @@
11
11
  */
12
12
  declare const LOADERS: {
13
13
  'baht-accordion': () => Promise<typeof import("./components/primitives/baht-accordion.js")>;
14
- 'baht-tree': () => Promise<typeof import("./components/primitives/baht-tree.js")>;
15
- 'baht-calendar': () => Promise<typeof import("./components/primitives/baht-calendar.js")>;
16
14
  'baht-alert': () => Promise<typeof import("./components/primitives/baht-alert.js")>;
17
15
  'baht-app-shell': () => Promise<typeof import("./components/primitives/baht-app-shell.js")>;
18
16
  'baht-approval-chain': () => Promise<typeof import("./components/primitives/baht-approval-chain.js")>;
@@ -21,10 +19,13 @@ declare const LOADERS: {
21
19
  'baht-bar-chart': () => Promise<typeof import("./components/primitives/baht-bar-chart.js")>;
22
20
  'baht-breadcrumbs': () => Promise<typeof import("./components/primitives/baht-breadcrumbs.js")>;
23
21
  'baht-button': () => Promise<typeof import("./components/primitives/baht-button.js")>;
22
+ 'baht-calendar': () => Promise<typeof import("./components/primitives/baht-calendar.js")>;
24
23
  'baht-card': () => Promise<typeof import("./components/primitives/baht-card.js")>;
25
24
  'baht-catalog-card': () => Promise<typeof import("./components/primitives/baht-catalog-card.js")>;
26
25
  'baht-checkbox': () => Promise<typeof import("./components/primitives/baht-checkbox.js")>;
26
+ 'baht-choice-group': () => Promise<typeof import("./components/primitives/baht-choice-group.js")>;
27
27
  'baht-code': () => Promise<typeof import("./components/primitives/baht-code.js")>;
28
+ 'baht-column-picker': () => Promise<typeof import("./components/primitives/baht-column-picker.js")>;
28
29
  'baht-comments': () => Promise<typeof import("./components/primitives/baht-comments.js")>;
29
30
  'baht-currency': () => Promise<typeof import("./components/primitives/baht-currency.js")>;
30
31
  'baht-datepicker': () => Promise<typeof import("./components/primitives/baht-datepicker.js")>;
@@ -32,6 +33,7 @@ declare const LOADERS: {
32
33
  'baht-edit-table': () => Promise<typeof import("./components/primitives/baht-edit-table.js")>;
33
34
  'baht-empty-state': () => Promise<typeof import("./components/primitives/baht-empty-state.js")>;
34
35
  'baht-error-state': () => Promise<typeof import("./components/primitives/baht-error-state.js")>;
36
+ 'baht-facts': () => Promise<typeof import("./components/primitives/baht-facts.js")>;
35
37
  'baht-fieldset': () => Promise<typeof import("./components/primitives/baht-fieldset.js")>;
36
38
  'baht-file': () => Promise<typeof import("./components/primitives/baht-file.js")>;
37
39
  'baht-filter': () => Promise<typeof import("./components/primitives/baht-filter.js")>;
@@ -44,6 +46,8 @@ declare const LOADERS: {
44
46
  'baht-link': () => Promise<typeof import("./components/primitives/baht-link.js")>;
45
47
  'baht-list': () => Promise<typeof import("./components/primitives/baht-list.js")>;
46
48
  'baht-loading-overlay': () => Promise<typeof import("./components/primitives/baht-loading-overlay.js")>;
49
+ 'baht-markdown': () => Promise<typeof import("./components/primitives/baht-markdown.js")>;
50
+ 'baht-markdown-view': () => Promise<typeof import("./components/primitives/baht-markdown-view.js")>;
47
51
  'baht-menu': () => Promise<typeof import("./components/primitives/baht-menu.js")>;
48
52
  'baht-meter': () => Promise<typeof import("./components/primitives/baht-meter.js")>;
49
53
  'baht-modal': () => Promise<typeof import("./components/primitives/baht-modal.js")>;
@@ -53,27 +57,22 @@ declare const LOADERS: {
53
57
  'baht-order-box': () => Promise<typeof import("./components/primitives/baht-order-box.js")>;
54
58
  'baht-otp': () => Promise<typeof import("./components/primitives/baht-otp.js")>;
55
59
  'baht-page-header': () => Promise<typeof import("./components/primitives/baht-page-header.js")>;
56
- 'baht-section-header': () => Promise<typeof import("./components/primitives/baht-section-header.js")>;
57
- 'baht-facts': () => Promise<typeof import("./components/primitives/baht-facts.js")>;
58
- 'baht-choice-group': () => Promise<typeof import("./components/primitives/baht-choice-group.js")>;
59
- 'baht-search': () => Promise<typeof import("./components/primitives/baht-search.js")>;
60
60
  'baht-pagination': () => Promise<typeof import("./components/primitives/baht-pagination.js")>;
61
61
  'baht-popover': () => Promise<typeof import("./components/primitives/baht-popover.js")>;
62
62
  'baht-progress': () => Promise<typeof import("./components/primitives/baht-progress.js")>;
63
63
  'baht-progress-ring': () => Promise<typeof import("./components/primitives/baht-progress-ring.js")>;
64
64
  'baht-radio': () => Promise<typeof import("./components/primitives/baht-radio.js")>;
65
65
  'baht-range': () => Promise<typeof import("./components/primitives/baht-range.js")>;
66
- 'baht-markdown': () => Promise<typeof import("./components/primitives/baht-markdown.js")>;
67
- 'baht-markdown-view': () => Promise<typeof import("./components/primitives/baht-markdown-view.js")>;
68
66
  'baht-rating': () => Promise<typeof import("./components/primitives/baht-rating.js")>;
69
67
  'baht-record-bar': () => Promise<typeof import("./components/primitives/baht-record-bar.js")>;
70
- 'baht-column-picker': () => Promise<typeof import("./components/primitives/baht-column-picker.js")>;
71
- 'baht-saved-filters': () => Promise<typeof import("./components/primitives/baht-saved-filters.js")>;
72
68
  'baht-reference-dialog': () => Promise<typeof import("./components/primitives/baht-reference-dialog.js")>;
73
69
  'baht-reference-picker': () => Promise<typeof import("./components/primitives/baht-reference-picker.js")>;
74
70
  'baht-repeater': () => Promise<typeof import("./components/primitives/baht-repeater.js")>;
75
71
  'baht-rule-builder': () => Promise<typeof import("./components/primitives/baht-rule-builder.js")>;
72
+ 'baht-saved-filters': () => Promise<typeof import("./components/primitives/baht-saved-filters.js")>;
73
+ 'baht-search': () => Promise<typeof import("./components/primitives/baht-search.js")>;
76
74
  'baht-section': () => Promise<typeof import("./components/primitives/baht-section.js")>;
75
+ 'baht-section-header': () => Promise<typeof import("./components/primitives/baht-section-header.js")>;
77
76
  'baht-select': () => Promise<typeof import("./components/primitives/baht-select.js")>;
78
77
  'baht-skeleton': () => Promise<typeof import("./components/primitives/baht-skeleton.js")>;
79
78
  'baht-sparkline': () => Promise<typeof import("./components/primitives/baht-sparkline.js")>;
@@ -93,6 +92,7 @@ declare const LOADERS: {
93
92
  'baht-toast': () => Promise<typeof import("./components/primitives/baht-toast.js")>;
94
93
  'baht-toggle': () => Promise<typeof import("./components/primitives/baht-toggle.js")>;
95
94
  'baht-tooltip': () => Promise<typeof import("./components/primitives/baht-tooltip.js")>;
95
+ 'baht-tree': () => Promise<typeof import("./components/primitives/baht-tree.js")>;
96
96
  'baht-typeahead': () => Promise<typeof import("./components/primitives/baht-typeahead.js")>;
97
97
  'baht-upload': () => Promise<typeof import("./components/primitives/baht-upload.js")>;
98
98
  'baht-wizard': () => Promise<typeof import("./components/primitives/baht-wizard.js")>;
package/dist/register.js CHANGED
@@ -1,7 +1,5 @@
1
1
  const r = {
2
2
  "baht-accordion": () => import("./components/primitives/baht-accordion.js"),
3
- "baht-tree": () => import("./components/primitives/baht-tree.js"),
4
- "baht-calendar": () => import("./components/primitives/baht-calendar.js"),
5
3
  "baht-alert": () => import("./components/primitives/baht-alert.js"),
6
4
  "baht-app-shell": () => import("./components/primitives/baht-app-shell.js"),
7
5
  "baht-approval-chain": () => import("./components/primitives/baht-approval-chain.js"),
@@ -10,10 +8,13 @@ const r = {
10
8
  "baht-bar-chart": () => import("./components/primitives/baht-bar-chart.js"),
11
9
  "baht-breadcrumbs": () => import("./components/primitives/baht-breadcrumbs.js"),
12
10
  "baht-button": () => import("./components/primitives/baht-button.js"),
11
+ "baht-calendar": () => import("./components/primitives/baht-calendar.js"),
13
12
  "baht-card": () => import("./components/primitives/baht-card.js"),
14
13
  "baht-catalog-card": () => import("./components/primitives/baht-catalog-card.js"),
15
14
  "baht-checkbox": () => import("./components/primitives/baht-checkbox.js"),
15
+ "baht-choice-group": () => import("./components/primitives/baht-choice-group.js"),
16
16
  "baht-code": () => import("./components/primitives/baht-code.js"),
17
+ "baht-column-picker": () => import("./components/primitives/baht-column-picker.js"),
17
18
  "baht-comments": () => import("./components/primitives/baht-comments.js"),
18
19
  "baht-currency": () => import("./components/primitives/baht-currency.js"),
19
20
  "baht-datepicker": () => import("./components/primitives/baht-datepicker.js"),
@@ -21,6 +22,7 @@ const r = {
21
22
  "baht-edit-table": () => import("./components/primitives/baht-edit-table.js"),
22
23
  "baht-empty-state": () => import("./components/primitives/baht-empty-state.js"),
23
24
  "baht-error-state": () => import("./components/primitives/baht-error-state.js"),
25
+ "baht-facts": () => import("./components/primitives/baht-facts.js"),
24
26
  "baht-fieldset": () => import("./components/primitives/baht-fieldset.js"),
25
27
  "baht-file": () => import("./components/primitives/baht-file.js"),
26
28
  "baht-filter": () => import("./components/primitives/baht-filter.js"),
@@ -33,6 +35,8 @@ const r = {
33
35
  "baht-link": () => import("./components/primitives/baht-link.js"),
34
36
  "baht-list": () => import("./components/primitives/baht-list.js"),
35
37
  "baht-loading-overlay": () => import("./components/primitives/baht-loading-overlay.js"),
38
+ "baht-markdown": () => import("./components/primitives/baht-markdown.js"),
39
+ "baht-markdown-view": () => import("./components/primitives/baht-markdown-view.js"),
36
40
  "baht-menu": () => import("./components/primitives/baht-menu.js"),
37
41
  "baht-meter": () => import("./components/primitives/baht-meter.js"),
38
42
  "baht-modal": () => import("./components/primitives/baht-modal.js"),
@@ -42,27 +46,22 @@ const r = {
42
46
  "baht-order-box": () => import("./components/primitives/baht-order-box.js"),
43
47
  "baht-otp": () => import("./components/primitives/baht-otp.js"),
44
48
  "baht-page-header": () => import("./components/primitives/baht-page-header.js"),
45
- "baht-section-header": () => import("./components/primitives/baht-section-header.js"),
46
- "baht-facts": () => import("./components/primitives/baht-facts.js"),
47
- "baht-choice-group": () => import("./components/primitives/baht-choice-group.js"),
48
- "baht-search": () => import("./components/primitives/baht-search.js"),
49
49
  "baht-pagination": () => import("./components/primitives/baht-pagination.js"),
50
50
  "baht-popover": () => import("./components/primitives/baht-popover.js"),
51
51
  "baht-progress": () => import("./components/primitives/baht-progress.js"),
52
52
  "baht-progress-ring": () => import("./components/primitives/baht-progress-ring.js"),
53
53
  "baht-radio": () => import("./components/primitives/baht-radio.js"),
54
54
  "baht-range": () => import("./components/primitives/baht-range.js"),
55
- "baht-markdown": () => import("./components/primitives/baht-markdown.js"),
56
- "baht-markdown-view": () => import("./components/primitives/baht-markdown-view.js"),
57
55
  "baht-rating": () => import("./components/primitives/baht-rating.js"),
58
56
  "baht-record-bar": () => import("./components/primitives/baht-record-bar.js"),
59
- "baht-column-picker": () => import("./components/primitives/baht-column-picker.js"),
60
- "baht-saved-filters": () => import("./components/primitives/baht-saved-filters.js"),
61
57
  "baht-reference-dialog": () => import("./components/primitives/baht-reference-dialog.js"),
62
58
  "baht-reference-picker": () => import("./components/primitives/baht-reference-picker.js"),
63
59
  "baht-repeater": () => import("./components/primitives/baht-repeater.js"),
64
60
  "baht-rule-builder": () => import("./components/primitives/baht-rule-builder.js"),
61
+ "baht-saved-filters": () => import("./components/primitives/baht-saved-filters.js"),
62
+ "baht-search": () => import("./components/primitives/baht-search.js"),
65
63
  "baht-section": () => import("./components/primitives/baht-section.js"),
64
+ "baht-section-header": () => import("./components/primitives/baht-section-header.js"),
66
65
  "baht-select": () => import("./components/primitives/baht-select.js"),
67
66
  "baht-skeleton": () => import("./components/primitives/baht-skeleton.js"),
68
67
  "baht-sparkline": () => import("./components/primitives/baht-sparkline.js"),
@@ -82,6 +81,7 @@ const r = {
82
81
  "baht-toast": () => import("./components/primitives/baht-toast.js"),
83
82
  "baht-toggle": () => import("./components/primitives/baht-toggle.js"),
84
83
  "baht-tooltip": () => import("./components/primitives/baht-tooltip.js"),
84
+ "baht-tree": () => import("./components/primitives/baht-tree.js"),
85
85
  "baht-typeahead": () => import("./components/primitives/baht-typeahead.js"),
86
86
  "baht-upload": () => import("./components/primitives/baht-upload.js"),
87
87
  "baht-wizard": () => import("./components/primitives/baht-wizard.js"),
package/dist/ssr.js CHANGED
@@ -69,7 +69,7 @@ import "./components/primitives/baht-reference-picker.js";
69
69
  import "./components/primitives/baht-typeahead.js";
70
70
  import "./components/primitives/baht-repeater.js";
71
71
  import "./components/primitives/baht-steps.js";
72
- import "lit/static-html.js";
72
+ import "./components/primitives/tag-map.js";
73
73
  import "./components/primitives/baht-comments.js";
74
74
  import "./components/primitives/baht-edit-table.js";
75
75
  import "./components/primitives/baht-notification-bell.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@20baht/ui",
4
- "version": "0.1.1",
4
+ "version": "0.2.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -4370,6 +4370,11 @@
4370
4370
  "description": "Set by the host form: what makes a `reference` column searchable.",
4371
4371
  "type": "RowLookup | null"
4372
4372
  },
4373
+ {
4374
+ "name": "registry",
4375
+ "description": "Set by the host form: its registry. A column of a type of the app's own (spec 01 §5.1)\nrenders, reads and checks through `registry.fieldTypes`; the row dialog runs the column's\n`custom` validators from it.",
4376
+ "type": "Registry"
4377
+ },
4373
4378
  { "name": "field", "type": "FieldDescriptor" },
4374
4379
  { "name": "value", "type": "unknown" },
4375
4380
  { "name": "disabled", "type": "boolean" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20baht/ui",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "JSON-driven form + workflow engine. Send JSON in, get an interactive form out.",
6
6
  "license": "MIT",
@@ -95,6 +95,7 @@
95
95
  "scripts": {
96
96
  "build": "vite build && npm run analyze",
97
97
  "analyze": "custom-elements-manifest analyze",
98
+ "generate": "npm run analyze && bun scripts/generate.ts",
98
99
  "test": "vitest run",
99
100
  "test:ssr": "vitest run tests/ssr",
100
101
  "test:watch": "vitest",
@@ -108,7 +109,7 @@
108
109
  },
109
110
  "dependencies": {
110
111
  "@lit-labs/ssr-client": "^1",
111
- "@20baht/engine": ">=0.1.0 <0.2.0",
112
+ "@20baht/engine": ">=0.2.0 <0.3.0",
112
113
  "lit": "^3.3.0"
113
114
  },
114
115
  "peerDependencies": {