@fusedashlabs/widgets 0.4.5 → 0.5.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.
Files changed (352) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +24 -3
  3. package/dist/catalog/engine.d.ts +9 -0
  4. package/dist/catalog/engine.d.ts.map +1 -0
  5. package/dist/catalog/engine.js +28 -0
  6. package/dist/catalog/engine.js.map +1 -0
  7. package/dist/catalog/evaluate.d.ts +11 -0
  8. package/dist/catalog/evaluate.d.ts.map +1 -0
  9. package/dist/catalog/evaluate.js +18 -0
  10. package/dist/catalog/evaluate.js.map +1 -0
  11. package/dist/catalog/index.d.ts +8 -0
  12. package/dist/catalog/index.d.ts.map +1 -0
  13. package/dist/catalog/index.js +25 -0
  14. package/dist/catalog/index.js.map +1 -0
  15. package/dist/catalog/load.d.ts +11 -0
  16. package/dist/catalog/load.d.ts.map +1 -0
  17. package/dist/catalog/load.js +140 -0
  18. package/dist/catalog/load.js.map +1 -0
  19. package/dist/catalog/schema.d.ts +5 -0
  20. package/dist/catalog/schema.d.ts.map +1 -0
  21. package/dist/catalog/schema.js +143 -0
  22. package/dist/catalog/schema.js.map +1 -0
  23. package/dist/catalog/types.d.ts +83 -0
  24. package/dist/catalog/types.d.ts.map +1 -0
  25. package/dist/catalog/types.js +45 -0
  26. package/dist/catalog/types.js.map +1 -0
  27. package/dist/catalog/when.d.ts +13 -0
  28. package/dist/catalog/when.d.ts.map +1 -0
  29. package/dist/catalog/when.js +236 -0
  30. package/dist/catalog/when.js.map +1 -0
  31. package/dist/components/approval-bar/element/ui9000-approval-bar.d.ts +17 -0
  32. package/dist/components/approval-bar/element/ui9000-approval-bar.d.ts.map +1 -0
  33. package/dist/components/approval-bar/element/ui9000-approval-bar.js +83 -0
  34. package/dist/components/approval-bar/element/ui9000-approval-bar.js.map +1 -0
  35. package/dist/components/approval-bar/index.d.ts +4 -0
  36. package/dist/components/approval-bar/index.d.ts.map +1 -0
  37. package/dist/components/approval-bar/index.js +11 -0
  38. package/dist/components/approval-bar/index.js.map +1 -0
  39. package/dist/components/approval-bar/lib/normalize.d.ts +7 -0
  40. package/dist/components/approval-bar/lib/normalize.d.ts.map +1 -0
  41. package/dist/components/approval-bar/lib/normalize.js +12 -0
  42. package/dist/components/approval-bar/lib/normalize.js.map +1 -0
  43. package/dist/components/approval-bar/metadata.json.d.ts +99 -0
  44. package/dist/components/approval-bar/metadata.json.js +63 -0
  45. package/dist/components/approval-bar/metadata.json.js.map +1 -0
  46. package/dist/components/bar-chart/metadata.json.d.ts +53 -0
  47. package/dist/components/bar-chart/metadata.json.js +21 -0
  48. package/dist/components/bar-chart/metadata.json.js.map +1 -1
  49. package/dist/components/button/element/ui9000-button.d.ts +15 -0
  50. package/dist/components/button/element/ui9000-button.d.ts.map +1 -0
  51. package/dist/components/button/element/ui9000-button.js +56 -0
  52. package/dist/components/button/element/ui9000-button.js.map +1 -0
  53. package/dist/components/button/index.d.ts +3 -0
  54. package/dist/components/button/index.d.ts.map +1 -0
  55. package/dist/components/button/index.js +9 -0
  56. package/dist/components/button/index.js.map +1 -0
  57. package/dist/components/button/metadata.json.d.ts +99 -0
  58. package/dist/components/button/metadata.json.js +63 -0
  59. package/dist/components/button/metadata.json.js.map +1 -0
  60. package/dist/components/chart-renderer/metadata.json.d.ts +1 -0
  61. package/dist/components/chart-renderer/metadata.json.js +3 -0
  62. package/dist/components/chart-renderer/metadata.json.js.map +1 -1
  63. package/dist/components/checkbox/element/ui9000-checkbox.d.ts +16 -0
  64. package/dist/components/checkbox/element/ui9000-checkbox.d.ts.map +1 -0
  65. package/dist/components/checkbox/element/ui9000-checkbox.js +71 -0
  66. package/dist/components/checkbox/element/ui9000-checkbox.js.map +1 -0
  67. package/dist/components/checkbox/index.d.ts +3 -0
  68. package/dist/components/checkbox/index.d.ts.map +1 -0
  69. package/dist/components/checkbox/index.js +9 -0
  70. package/dist/components/checkbox/index.js.map +1 -0
  71. package/dist/components/checkbox/metadata.json.d.ts +99 -0
  72. package/dist/components/checkbox/metadata.json.js +63 -0
  73. package/dist/components/checkbox/metadata.json.js.map +1 -0
  74. package/dist/components/custom-widget/element/ui9000-custom-widget.d.ts +1 -2
  75. package/dist/components/custom-widget/element/ui9000-custom-widget.d.ts.map +1 -1
  76. package/dist/components/custom-widget/element/ui9000-custom-widget.js +12 -35
  77. package/dist/components/custom-widget/element/ui9000-custom-widget.js.map +1 -1
  78. package/dist/components/custom-widget/index.js +1 -1
  79. package/dist/components/custom-widget/lib/content.d.ts +1 -12
  80. package/dist/components/custom-widget/lib/content.d.ts.map +1 -1
  81. package/dist/components/custom-widget/lib/markdown.d.ts +1 -3
  82. package/dist/components/custom-widget/lib/markdown.d.ts.map +1 -1
  83. package/dist/components/custom-widget/lib/normalize.js +2 -2
  84. package/dist/components/custom-widget/lib/table.d.ts +1 -54
  85. package/dist/components/custom-widget/lib/table.d.ts.map +1 -1
  86. package/dist/components/custom-widget/metadata.json.d.ts +2 -1
  87. package/dist/components/custom-widget/metadata.json.js +4 -1
  88. package/dist/components/custom-widget/metadata.json.js.map +1 -1
  89. package/dist/components/date-input/element/ui9000-date-input.d.ts +16 -0
  90. package/dist/components/date-input/element/ui9000-date-input.d.ts.map +1 -0
  91. package/dist/components/date-input/element/ui9000-date-input.js +71 -0
  92. package/dist/components/date-input/element/ui9000-date-input.js.map +1 -0
  93. package/dist/components/date-input/index.d.ts +3 -0
  94. package/dist/components/date-input/index.d.ts.map +1 -0
  95. package/dist/components/date-input/index.js +9 -0
  96. package/dist/components/date-input/index.js.map +1 -0
  97. package/dist/components/date-input/metadata.json.d.ts +99 -0
  98. package/dist/components/date-input/metadata.json.js +63 -0
  99. package/dist/components/date-input/metadata.json.js.map +1 -0
  100. package/dist/components/entity-detail/element/ui9000-entity-detail.d.ts +17 -0
  101. package/dist/components/entity-detail/element/ui9000-entity-detail.d.ts.map +1 -0
  102. package/dist/components/entity-detail/element/ui9000-entity-detail.js +91 -0
  103. package/dist/components/entity-detail/element/ui9000-entity-detail.js.map +1 -0
  104. package/dist/components/entity-detail/index.d.ts +4 -0
  105. package/dist/components/entity-detail/index.d.ts.map +1 -0
  106. package/dist/components/entity-detail/index.js +11 -0
  107. package/dist/components/entity-detail/index.js.map +1 -0
  108. package/dist/components/entity-detail/lib/normalize.d.ts +17 -0
  109. package/dist/components/entity-detail/lib/normalize.d.ts.map +1 -0
  110. package/dist/components/entity-detail/lib/normalize.js +34 -0
  111. package/dist/components/entity-detail/lib/normalize.js.map +1 -0
  112. package/dist/components/entity-detail/metadata.json.d.ts +110 -0
  113. package/dist/components/entity-detail/metadata.json.js +63 -0
  114. package/dist/components/entity-detail/metadata.json.js.map +1 -0
  115. package/dist/components/event-timeline/element/ui9000-event-timeline.d.ts +17 -0
  116. package/dist/components/event-timeline/element/ui9000-event-timeline.d.ts.map +1 -0
  117. package/dist/components/event-timeline/element/ui9000-event-timeline.js +78 -0
  118. package/dist/components/event-timeline/element/ui9000-event-timeline.js.map +1 -0
  119. package/dist/components/event-timeline/index.d.ts +4 -0
  120. package/dist/components/event-timeline/index.d.ts.map +1 -0
  121. package/dist/components/event-timeline/index.js +11 -0
  122. package/dist/components/event-timeline/index.js.map +1 -0
  123. package/dist/components/event-timeline/lib/normalize.d.ts +10 -0
  124. package/dist/components/event-timeline/lib/normalize.d.ts.map +1 -0
  125. package/dist/components/event-timeline/lib/normalize.js +25 -0
  126. package/dist/components/event-timeline/lib/normalize.js.map +1 -0
  127. package/dist/components/event-timeline/metadata.json.d.ts +124 -0
  128. package/dist/components/event-timeline/metadata.json.js +63 -0
  129. package/dist/components/event-timeline/metadata.json.js.map +1 -0
  130. package/dist/components/evidence-panel/element/ui9000-evidence-panel.d.ts +17 -0
  131. package/dist/components/evidence-panel/element/ui9000-evidence-panel.d.ts.map +1 -0
  132. package/dist/components/evidence-panel/element/ui9000-evidence-panel.js +84 -0
  133. package/dist/components/evidence-panel/element/ui9000-evidence-panel.js.map +1 -0
  134. package/dist/components/evidence-panel/index.d.ts +4 -0
  135. package/dist/components/evidence-panel/index.d.ts.map +1 -0
  136. package/dist/components/evidence-panel/index.js +11 -0
  137. package/dist/components/evidence-panel/index.js.map +1 -0
  138. package/dist/components/evidence-panel/lib/normalize.d.ts +19 -0
  139. package/dist/components/evidence-panel/lib/normalize.d.ts.map +1 -0
  140. package/dist/components/evidence-panel/lib/normalize.js +33 -0
  141. package/dist/components/evidence-panel/lib/normalize.js.map +1 -0
  142. package/dist/components/evidence-panel/metadata.json.d.ts +114 -0
  143. package/dist/components/evidence-panel/metadata.json.js +63 -0
  144. package/dist/components/evidence-panel/metadata.json.js.map +1 -0
  145. package/dist/components/form/element/ui9000-form.d.ts +21 -0
  146. package/dist/components/form/element/ui9000-form.d.ts.map +1 -0
  147. package/dist/components/form/element/ui9000-form.js +115 -0
  148. package/dist/components/form/element/ui9000-form.js.map +1 -0
  149. package/dist/components/form/index.d.ts +4 -0
  150. package/dist/components/form/index.d.ts.map +1 -0
  151. package/dist/components/form/index.js +11 -0
  152. package/dist/components/form/index.js.map +1 -0
  153. package/dist/components/form/lib/normalize.d.ts +14 -0
  154. package/dist/components/form/lib/normalize.d.ts.map +1 -0
  155. package/dist/components/form/lib/normalize.js +36 -0
  156. package/dist/components/form/lib/normalize.js.map +1 -0
  157. package/dist/components/form/metadata.json.d.ts +94 -0
  158. package/dist/components/form/metadata.json.js +63 -0
  159. package/dist/components/form/metadata.json.js.map +1 -0
  160. package/dist/components/histogram-chart/metadata.json.d.ts +47 -0
  161. package/dist/components/histogram-chart/metadata.json.js +21 -0
  162. package/dist/components/histogram-chart/metadata.json.js.map +1 -1
  163. package/dist/components/image/element/ui9000-image.d.ts +17 -0
  164. package/dist/components/image/element/ui9000-image.d.ts.map +1 -0
  165. package/dist/components/image/element/ui9000-image.js +74 -0
  166. package/dist/components/image/element/ui9000-image.js.map +1 -0
  167. package/dist/components/image/index.d.ts +4 -0
  168. package/dist/components/image/index.d.ts.map +1 -0
  169. package/dist/components/image/index.js +13 -0
  170. package/dist/components/image/index.js.map +1 -0
  171. package/dist/components/image/lib/url.d.ts +14 -0
  172. package/dist/components/image/lib/url.d.ts.map +1 -0
  173. package/dist/components/{custom-widget/lib/content.js → image/lib/url.js} +4 -3
  174. package/dist/components/image/lib/url.js.map +1 -0
  175. package/dist/components/image/metadata.json.d.ts +95 -0
  176. package/dist/components/image/metadata.json.js +63 -0
  177. package/dist/components/image/metadata.json.js.map +1 -0
  178. package/dist/components/kpi-widget/metadata.json.d.ts +47 -0
  179. package/dist/components/kpi-widget/metadata.json.js +21 -0
  180. package/dist/components/kpi-widget/metadata.json.js.map +1 -1
  181. package/dist/components/map-chart/metadata.json.d.ts +54 -2
  182. package/dist/components/map-chart/metadata.json.js +23 -2
  183. package/dist/components/map-chart/metadata.json.js.map +1 -1
  184. package/dist/components/multi-select/element/ui9000-multi-select.d.ts +16 -0
  185. package/dist/components/multi-select/element/ui9000-multi-select.d.ts.map +1 -0
  186. package/dist/components/multi-select/element/ui9000-multi-select.js +77 -0
  187. package/dist/components/multi-select/element/ui9000-multi-select.js.map +1 -0
  188. package/dist/components/multi-select/index.d.ts +3 -0
  189. package/dist/components/multi-select/index.d.ts.map +1 -0
  190. package/dist/components/multi-select/index.js +9 -0
  191. package/dist/components/multi-select/index.js.map +1 -0
  192. package/dist/components/multi-select/metadata.json.d.ts +99 -0
  193. package/dist/components/multi-select/metadata.json.js +63 -0
  194. package/dist/components/multi-select/metadata.json.js.map +1 -0
  195. package/dist/components/network-graph/metadata.json.d.ts +53 -2
  196. package/dist/components/network-graph/metadata.json.js +23 -2
  197. package/dist/components/network-graph/metadata.json.js.map +1 -1
  198. package/dist/components/number-input/element/ui9000-number-input.d.ts +16 -0
  199. package/dist/components/number-input/element/ui9000-number-input.d.ts.map +1 -0
  200. package/dist/components/number-input/element/ui9000-number-input.js +71 -0
  201. package/dist/components/number-input/element/ui9000-number-input.js.map +1 -0
  202. package/dist/components/number-input/index.d.ts +3 -0
  203. package/dist/components/number-input/index.d.ts.map +1 -0
  204. package/dist/components/number-input/index.js +9 -0
  205. package/dist/components/number-input/index.js.map +1 -0
  206. package/dist/components/number-input/metadata.json.d.ts +99 -0
  207. package/dist/components/number-input/metadata.json.js +63 -0
  208. package/dist/components/number-input/metadata.json.js.map +1 -0
  209. package/dist/components/select/element/ui9000-select.d.ts +16 -0
  210. package/dist/components/select/element/ui9000-select.d.ts.map +1 -0
  211. package/dist/components/select/element/ui9000-select.js +73 -0
  212. package/dist/components/select/element/ui9000-select.js.map +1 -0
  213. package/dist/components/select/index.d.ts +3 -0
  214. package/dist/components/select/index.d.ts.map +1 -0
  215. package/dist/components/select/index.js +9 -0
  216. package/dist/components/select/index.js.map +1 -0
  217. package/dist/components/select/metadata.json.d.ts +99 -0
  218. package/dist/components/select/metadata.json.js +63 -0
  219. package/dist/components/select/metadata.json.js.map +1 -0
  220. package/dist/components/table/element/styles.d.ts +2 -0
  221. package/dist/components/table/element/styles.d.ts.map +1 -0
  222. package/dist/components/table/element/styles.js +105 -0
  223. package/dist/components/table/element/styles.js.map +1 -0
  224. package/dist/components/table/element/ui9000-table.d.ts +17 -0
  225. package/dist/components/table/element/ui9000-table.d.ts.map +1 -0
  226. package/dist/components/table/element/ui9000-table.js +113 -0
  227. package/dist/components/table/element/ui9000-table.js.map +1 -0
  228. package/dist/components/table/index.d.ts +4 -0
  229. package/dist/components/table/index.d.ts.map +1 -0
  230. package/dist/components/table/index.js +14 -0
  231. package/dist/components/table/index.js.map +1 -0
  232. package/dist/components/table/lib/table.d.ts +55 -0
  233. package/dist/components/table/lib/table.d.ts.map +1 -0
  234. package/dist/components/table/lib/table.js.map +1 -0
  235. package/dist/components/table/metadata.json.d.ts +88 -0
  236. package/dist/components/table/metadata.json.js +63 -0
  237. package/dist/components/table/metadata.json.js.map +1 -0
  238. package/dist/components/text/element/ui9000-text.d.ts +16 -0
  239. package/dist/components/text/element/ui9000-text.d.ts.map +1 -0
  240. package/dist/components/text/element/ui9000-text.js +90 -0
  241. package/dist/components/text/element/ui9000-text.js.map +1 -0
  242. package/dist/components/text/index.d.ts +4 -0
  243. package/dist/components/text/index.d.ts.map +1 -0
  244. package/dist/components/text/index.js +11 -0
  245. package/dist/components/text/index.js.map +1 -0
  246. package/dist/components/text/lib/content.d.ts +2 -0
  247. package/dist/components/text/lib/content.d.ts.map +1 -0
  248. package/dist/components/text/lib/markdown.d.ts +4 -0
  249. package/dist/components/text/lib/markdown.d.ts.map +1 -0
  250. package/dist/components/text/lib/markdown.js.map +1 -0
  251. package/dist/components/text/metadata.json.d.ts +98 -0
  252. package/dist/components/text/metadata.json.js +63 -0
  253. package/dist/components/text/metadata.json.js.map +1 -0
  254. package/dist/components/text-input/element/ui9000-text-input.d.ts +16 -0
  255. package/dist/components/text-input/element/ui9000-text-input.d.ts.map +1 -0
  256. package/dist/components/text-input/element/ui9000-text-input.js +70 -0
  257. package/dist/components/text-input/element/ui9000-text-input.js.map +1 -0
  258. package/dist/components/text-input/index.d.ts +3 -0
  259. package/dist/components/text-input/index.d.ts.map +1 -0
  260. package/dist/components/text-input/index.js +9 -0
  261. package/dist/components/text-input/index.js.map +1 -0
  262. package/dist/components/text-input/metadata.json.d.ts +99 -0
  263. package/dist/components/text-input/metadata.json.js +63 -0
  264. package/dist/components/text-input/metadata.json.js.map +1 -0
  265. package/dist/element/dispatch-ui9000.d.ts +11 -0
  266. package/dist/element/dispatch-ui9000.d.ts.map +1 -0
  267. package/dist/element/dispatch-ui9000.js +21 -0
  268. package/dist/element/dispatch-ui9000.js.map +1 -0
  269. package/dist/element/surface-styles.d.ts +2 -0
  270. package/dist/element/surface-styles.d.ts.map +1 -0
  271. package/dist/element/surface-styles.js +84 -0
  272. package/dist/element/surface-styles.js.map +1 -0
  273. package/dist/index.d.ts +18 -2
  274. package/dist/index.d.ts.map +1 -1
  275. package/dist/index.js +99 -2
  276. package/dist/index.js.map +1 -1
  277. package/dist/lazy/approval-bar.d.ts +4 -0
  278. package/dist/lazy/approval-bar.d.ts.map +1 -0
  279. package/dist/lazy/approval-bar.js +5 -0
  280. package/dist/lazy/approval-bar.js.map +1 -0
  281. package/dist/lazy/button.d.ts +4 -0
  282. package/dist/lazy/button.d.ts.map +1 -0
  283. package/dist/lazy/button.js +5 -0
  284. package/dist/lazy/button.js.map +1 -0
  285. package/dist/lazy/checkbox.d.ts +4 -0
  286. package/dist/lazy/checkbox.d.ts.map +1 -0
  287. package/dist/lazy/checkbox.js +5 -0
  288. package/dist/lazy/checkbox.js.map +1 -0
  289. package/dist/lazy/custom-widget.js +5 -0
  290. package/dist/lazy/custom-widget.js.map +1 -0
  291. package/dist/lazy/date-input.d.ts +4 -0
  292. package/dist/lazy/date-input.d.ts.map +1 -0
  293. package/dist/lazy/date-input.js +5 -0
  294. package/dist/lazy/date-input.js.map +1 -0
  295. package/dist/lazy/entity-detail.d.ts +4 -0
  296. package/dist/lazy/entity-detail.d.ts.map +1 -0
  297. package/dist/lazy/entity-detail.js +5 -0
  298. package/dist/lazy/entity-detail.js.map +1 -0
  299. package/dist/lazy/event-timeline.d.ts +4 -0
  300. package/dist/lazy/event-timeline.d.ts.map +1 -0
  301. package/dist/lazy/event-timeline.js +5 -0
  302. package/dist/lazy/event-timeline.js.map +1 -0
  303. package/dist/lazy/evidence-panel.d.ts +4 -0
  304. package/dist/lazy/evidence-panel.d.ts.map +1 -0
  305. package/dist/lazy/evidence-panel.js +5 -0
  306. package/dist/lazy/evidence-panel.js.map +1 -0
  307. package/dist/lazy/form.d.ts +4 -0
  308. package/dist/lazy/form.d.ts.map +1 -0
  309. package/dist/lazy/form.js +5 -0
  310. package/dist/lazy/form.js.map +1 -0
  311. package/dist/lazy/image.d.ts +4 -0
  312. package/dist/lazy/image.d.ts.map +1 -0
  313. package/dist/lazy/image.js +5 -0
  314. package/dist/lazy/image.js.map +1 -0
  315. package/dist/lazy/index.d.ts +16 -1
  316. package/dist/lazy/index.d.ts.map +1 -1
  317. package/dist/lazy/index.js +120 -0
  318. package/dist/lazy/index.js.map +1 -1
  319. package/dist/lazy/multi-select.d.ts +4 -0
  320. package/dist/lazy/multi-select.d.ts.map +1 -0
  321. package/dist/lazy/multi-select.js +5 -0
  322. package/dist/lazy/multi-select.js.map +1 -0
  323. package/dist/lazy/number-input.d.ts +4 -0
  324. package/dist/lazy/number-input.d.ts.map +1 -0
  325. package/dist/lazy/number-input.js +5 -0
  326. package/dist/lazy/number-input.js.map +1 -0
  327. package/dist/lazy/select.d.ts +4 -0
  328. package/dist/lazy/select.d.ts.map +1 -0
  329. package/dist/lazy/select.js +5 -0
  330. package/dist/lazy/select.js.map +1 -0
  331. package/dist/lazy/table.d.ts +4 -0
  332. package/dist/lazy/table.d.ts.map +1 -0
  333. package/dist/lazy/table.js +5 -0
  334. package/dist/lazy/table.js.map +1 -0
  335. package/dist/lazy/text-input.d.ts +4 -0
  336. package/dist/lazy/text-input.d.ts.map +1 -0
  337. package/dist/lazy/text-input.js +5 -0
  338. package/dist/lazy/text-input.js.map +1 -0
  339. package/dist/lazy/text.d.ts +4 -0
  340. package/dist/lazy/text.d.ts.map +1 -0
  341. package/dist/lazy/text.js +5 -0
  342. package/dist/lazy/text.js.map +1 -0
  343. package/dist/lib/labelled-control.d.ts +12 -0
  344. package/dist/lib/labelled-control.d.ts.map +1 -0
  345. package/dist/lib/labelled-control.js +14 -0
  346. package/dist/lib/labelled-control.js.map +1 -0
  347. package/package.json +126 -1
  348. package/dist/components/custom-widget/lib/content.js.map +0 -1
  349. package/dist/components/custom-widget/lib/markdown.js.map +0 -1
  350. package/dist/components/custom-widget/lib/table.js.map +0 -1
  351. /package/dist/components/{custom-widget → table}/lib/table.js +0 -0
  352. /package/dist/components/{custom-widget → text}/lib/markdown.js +0 -0
@@ -0,0 +1,63 @@
1
+ const id = "approval-bar";
2
+ const tag = "ui9000-approval-bar";
3
+ const title = "Approval Bar";
4
+ const description = "Propose / approve / reject. Displays only in a foreign host — does not execute.";
5
+ const chartTypeKeys = [];
6
+ const source = "ui9000-widgets Stage 2 close-out";
7
+ const stack = "lit";
8
+ const lazyImport = "@ui9000/widgets/lazy/approval-bar";
9
+ const entry = "@ui9000/widgets/approval-bar";
10
+ const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true };
11
+ const allowedActions = ["approve", "reject"];
12
+ const tier = "engine";
13
+ const intents = ["form"];
14
+ const dataRoles = [{ "id": "proposal", "required": true, "description": "The action being proposed." }];
15
+ const eligibility = [{ "when": "profile.hasClaim || profile.hasEntityId", "reason": "Approval bar proposes an action on a claim or entity." }];
16
+ const disqualify = [{ "when": "!profile.hasClaim && !profile.hasEntityId", "reason": "Without a claim or entity there is nothing to approve." }];
17
+ const accessibility = { "nameFrom": "proposal", "keyboard": ["Tab to Approve and Reject"], "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element." };
18
+ const evalCases = [{ "id": "approval-picks-claim", "intent": "form", "profile": { "hasClaim": true }, "expect": "eligible", "reasonIncludes": "proposes" }, { "id": "approval-rejects-empty", "intent": "form", "profile": { "hasClaim": false, "hasEntityId": false }, "expect": "disqualified", "reasonIncludes": "nothing to approve" }];
19
+ const propsSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "data": { "type": "object", "properties": { "proposal": { "type": "string" }, "status": { "type": "string", "enum": ["proposed", "approved", "rejected"] } } } }, "required": ["data"] };
20
+ const metadata = {
21
+ id,
22
+ tag,
23
+ title,
24
+ description,
25
+ chartTypeKeys,
26
+ source,
27
+ stack,
28
+ lazyImport,
29
+ entry,
30
+ usageConditions,
31
+ allowedActions,
32
+ tier,
33
+ intents,
34
+ dataRoles,
35
+ eligibility,
36
+ disqualify,
37
+ accessibility,
38
+ evalCases,
39
+ propsSchema
40
+ };
41
+ export {
42
+ accessibility,
43
+ allowedActions,
44
+ chartTypeKeys,
45
+ dataRoles,
46
+ metadata as default,
47
+ description,
48
+ disqualify,
49
+ eligibility,
50
+ entry,
51
+ evalCases,
52
+ id,
53
+ intents,
54
+ lazyImport,
55
+ propsSchema,
56
+ source,
57
+ stack,
58
+ tag,
59
+ tier,
60
+ title,
61
+ usageConditions
62
+ };
63
+ //# sourceMappingURL=metadata.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -32,6 +32,59 @@ declare const _default: {
32
32
  "context": "theme, scale, and mode come from WidgetContext CSS custom properties; series colors from widget formatting"
33
33
  },
34
34
  "allowedActions": ["hover", "resize"],
35
+ "tier": "engine",
36
+ "intents": ["comparison"],
37
+ "dataRoles": [
38
+ {
39
+ "id": "category",
40
+ "required": true,
41
+ "cardinality": "low-medium",
42
+ "description": "Discrete label per bar (severity, host, rule id)."
43
+ },
44
+ {
45
+ "id": "metric",
46
+ "required": true,
47
+ "type": "number",
48
+ "description": "Count or score aggregated on the category."
49
+ }
50
+ ],
51
+ "eligibility": [
52
+ {
53
+ "when": "profile.hasCategory && profile.hasNumericMetric && profile.categoryCardinality <= 30",
54
+ "reason": "Bar compares a handful of discrete groups on one metric."
55
+ }
56
+ ],
57
+ "disqualify": [
58
+ {
59
+ "when": "profile.hasGeo && !profile.hasCategory",
60
+ "reason": "Spatial-only data belongs on map-chart, not bars."
61
+ },
62
+ {
63
+ "when": "profile.categoryCardinality > 40",
64
+ "reason": "Too many categories; table or histogram is readable, bars are not."
65
+ }
66
+ ],
67
+ "accessibility": {
68
+ "nameFrom": "title or xLabel",
69
+ "keyboard": ["Tab into chart", "hover/focus equivalent on last point"],
70
+ "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element."
71
+ },
72
+ "evalCases": [
73
+ {
74
+ "id": "bar-picks-severity-counts",
75
+ "intent": "comparison",
76
+ "profile": { "hasCategory": true, "hasNumericMetric": true, "categoryCardinality": 5 },
77
+ "expect": "eligible",
78
+ "reasonIncludes": "discrete groups"
79
+ },
80
+ {
81
+ "id": "bar-rejects-latlng-only",
82
+ "intent": "spatial",
83
+ "profile": { "hasGeo": true, "hasCategory": false },
84
+ "expect": "disqualified",
85
+ "reasonIncludes": "map-chart"
86
+ }
87
+ ],
35
88
  "propsSchema": {
36
89
  "$schema": "https://json-schema.org/draft/2020-12/schema",
37
90
  "type": "object",
@@ -10,6 +10,13 @@ const lazyImport = "@ui9000/widgets/lazy/bar-chart";
10
10
  const entry = "@ui9000/widgets/bar-chart";
11
11
  const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true, "context": "theme, scale, and mode come from WidgetContext CSS custom properties; series colors from widget formatting" };
12
12
  const allowedActions = ["hover", "resize"];
13
+ const tier = "engine";
14
+ const intents = ["comparison"];
15
+ const dataRoles = [{ "id": "category", "required": true, "cardinality": "low-medium", "description": "Discrete label per bar (severity, host, rule id)." }, { "id": "metric", "required": true, "type": "number", "description": "Count or score aggregated on the category." }];
16
+ const eligibility = [{ "when": "profile.hasCategory && profile.hasNumericMetric && profile.categoryCardinality <= 30", "reason": "Bar compares a handful of discrete groups on one metric." }];
17
+ const disqualify = [{ "when": "profile.hasGeo && !profile.hasCategory", "reason": "Spatial-only data belongs on map-chart, not bars." }, { "when": "profile.categoryCardinality > 40", "reason": "Too many categories; table or histogram is readable, bars are not." }];
18
+ const accessibility = { "nameFrom": "title or xLabel", "keyboard": ["Tab into chart", "hover/focus equivalent on last point"], "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element." };
19
+ const evalCases = [{ "id": "bar-picks-severity-counts", "intent": "comparison", "profile": { "hasCategory": true, "hasNumericMetric": true, "categoryCardinality": 5 }, "expect": "eligible", "reasonIncludes": "discrete groups" }, { "id": "bar-rejects-latlng-only", "intent": "spatial", "profile": { "hasGeo": true, "hasCategory": false }, "expect": "disqualified", "reasonIncludes": "map-chart" }];
13
20
  const propsSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "data": { "oneOf": [{ "type": "array", "items": { "type": "object", "required": ["label", "value"], "properties": { "label": { "type": "string" }, "value": { "type": "number" } } } }, { "type": "object", "properties": { "points": { "type": "array", "items": { "type": "object", "required": ["x", "y"], "properties": { "x": { "type": "string" }, "y": { "type": "number" } } } }, "series": { "type": "array", "items": { "type": "object", "required": ["id", "points"], "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "color": { "type": "string" }, "points": { "type": "array", "items": { "type": "object", "required": ["x", "y"], "properties": { "x": { "type": "string" }, "y": { "type": "number" } } } } } } } } }] }, "scale": { "type": "string", "enum": ["compact", "default", "comfortable"], "default": "default" }, "orientation": { "type": "string", "enum": ["vertical", "horizontal"], "default": "vertical", "description": "FuseDash `orientation` — picks the vertical or horizontal variant family." }, "layout": { "type": "string", "enum": ["grouped", "stacked"], "default": "grouped", "description": "FuseDash `stacked`. Only applies with more than one series; a single series always renders as the plain bar chart." }, "showGrid": { "type": "boolean", "default": true }, "showLegend": { "type": "boolean", "default": true }, "showTooltip": { "type": "boolean", "default": true }, "cumulativeLine": { "type": "boolean", "default": false, "description": "FuseDash `cumulativeLine` — running-total overlay. Vertical single-series only." }, "xLabel": { "type": "string" }, "yLabel": { "type": "string" } }, "required": ["data"] };
14
21
  const barChartMeta = {
15
22
  id,
@@ -24,21 +31,35 @@ const barChartMeta = {
24
31
  entry,
25
32
  usageConditions,
26
33
  allowedActions,
34
+ tier,
35
+ intents,
36
+ dataRoles,
37
+ eligibility,
38
+ disqualify,
39
+ accessibility,
40
+ evalCases,
27
41
  propsSchema
28
42
  };
29
43
  export {
44
+ accessibility,
30
45
  allowedActions,
31
46
  chartTypeKeys,
32
47
  chartTypeMap,
48
+ dataRoles,
33
49
  barChartMeta as default,
34
50
  description,
51
+ disqualify,
52
+ eligibility,
35
53
  entry,
54
+ evalCases,
36
55
  id,
56
+ intents,
37
57
  lazyImport,
38
58
  propsSchema,
39
59
  source,
40
60
  stack,
41
61
  tag,
62
+ tier,
42
63
  title,
43
64
  usageConditions
44
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class Ui9000Button extends LitElement {
3
+ static styles: import('lit').CSSResult;
4
+ dataJson: string;
5
+ label: string;
6
+ actionType: string;
7
+ render(): import('lit-html').TemplateResult<1>;
8
+ }
9
+ export declare function registerButton(): void;
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'ui9000-button': Ui9000Button;
13
+ }
14
+ }
15
+ //# sourceMappingURL=ui9000-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui9000-button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/element/ui9000-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAOvC,qBACa,YAAa,SAAQ,UAAU;IAC1C,OAAgB,MAAM,0BAAiB;IAEQ,QAAQ,SAAQ;IACnC,KAAK,SAAM;IACe,UAAU,SAAY;IAEnE,MAAM;CAUhB;AAED,wBAAgB,cAAc,IAAI,IAAI,CAIrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
@@ -0,0 +1,56 @@
1
+ import { LitElement, html } from "lit";
2
+ import { property, customElement } from "lit/decorators.js";
3
+ import { dispatchUi9000Action } from "../../../element/dispatch-ui9000.js";
4
+ import { surfaceStyles } from "../../../element/surface-styles.js";
5
+ import { parseLabelledField } from "../../../lib/labelled-control.js";
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __decorateClass = (decorators, target, key, kind) => {
9
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
10
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
+ if (decorator = decorators[i])
12
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13
+ if (kind && result) __defProp(target, key, result);
14
+ return result;
15
+ };
16
+ let Ui9000Button = class extends LitElement {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.dataJson = "{}";
20
+ this.label = "";
21
+ this.actionType = "submit";
22
+ }
23
+ render() {
24
+ const field = parseLabelledField(this.dataJson, { label: this.label, name: "button", value: "" });
25
+ if (!field) return html`<p class="blocked" role="alert">Label required</p>`;
26
+ const type = this.actionType.trim() || "submit";
27
+ return html`
28
+ <button class="btn" type="button" @click=${() => dispatchUi9000Action(this, { type })}>
29
+ ${field.label}
30
+ </button>
31
+ `;
32
+ }
33
+ };
34
+ Ui9000Button.styles = surfaceStyles;
35
+ __decorateClass([
36
+ property({ type: String, attribute: "data" })
37
+ ], Ui9000Button.prototype, "dataJson", 2);
38
+ __decorateClass([
39
+ property({ type: String })
40
+ ], Ui9000Button.prototype, "label", 2);
41
+ __decorateClass([
42
+ property({ type: String, attribute: "action-type" })
43
+ ], Ui9000Button.prototype, "actionType", 2);
44
+ Ui9000Button = __decorateClass([
45
+ customElement("ui9000-button")
46
+ ], Ui9000Button);
47
+ function registerButton() {
48
+ if (!customElements.get("ui9000-button")) {
49
+ customElements.define("ui9000-button", Ui9000Button);
50
+ }
51
+ }
52
+ export {
53
+ Ui9000Button,
54
+ registerButton
55
+ };
56
+ //# sourceMappingURL=ui9000-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui9000-button.js","sources":["../../../../src/components/button/element/ui9000-button.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { dispatchUi9000Action } from '../../../element/dispatch-ui9000.js';\nimport { surfaceStyles } from '../../../element/surface-styles.js';\nimport { parseLabelledField } from '../../../lib/labelled-control.js';\n\n@customElement('ui9000-button')\nexport class Ui9000Button extends LitElement {\n static override styles = surfaceStyles;\n\n @property({ type: String, attribute: 'data' }) dataJson = '{}';\n @property({ type: String }) label = '';\n @property({ type: String, attribute: 'action-type' }) actionType = 'submit';\n\n override render() {\n const field = parseLabelledField(this.dataJson, { label: this.label, name: 'button', value: '' });\n if (!field) return html`<p class=\"blocked\" role=\"alert\">Label required</p>`;\n const type = this.actionType.trim() || 'submit';\n return html`\n <button class=\"btn\" type=\"button\" @click=${() => dispatchUi9000Action(this, { type })}>\n ${field.label}\n </button>\n `;\n }\n}\n\nexport function registerButton(): void {\n if (!customElements.get('ui9000-button')) {\n customElements.define('ui9000-button', Ui9000Button);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ui9000-button': Ui9000Button;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQO,IAAM,eAAN,cAA2B,WAAW;AAAA,EAAtC,cAAA;AAAA,UAAA,GAAA,SAAA;AAG0C,SAAA,WAAW;AAC9B,SAAA,QAAQ;AACkB,SAAA,aAAa;AAAA,EAAA;AAAA,EAE1D,SAAS;AAChB,UAAM,QAAQ,mBAAmB,KAAK,UAAU,EAAE,OAAO,KAAK,OAAO,MAAM,UAAU,OAAO,GAAA,CAAI;AAChG,QAAI,CAAC,MAAO,QAAO;AACnB,UAAM,OAAO,KAAK,WAAW,KAAA,KAAU;AACvC,WAAO;AAAA,iDACsC,MAAM,qBAAqB,MAAM,EAAE,KAAA,CAAM,CAAC;AAAA,UACjF,MAAM,KAAK;AAAA;AAAA;AAAA,EAGnB;AACF;AAjBa,aACK,SAAS;AAEsB,gBAAA;AAAA,EAA9C,SAAS,EAAE,MAAM,QAAQ,WAAW,QAAQ;AAAA,GAHlC,aAGoC,WAAA,YAAA,CAAA;AACnB,gBAAA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAJf,aAIiB,WAAA,SAAA,CAAA;AAC0B,gBAAA;AAAA,EAArD,SAAS,EAAE,MAAM,QAAQ,WAAW,eAAe;AAAA,GALzC,aAK2C,WAAA,cAAA,CAAA;AAL3C,eAAN,gBAAA;AAAA,EADN,cAAc,eAAe;AAAA,GACjB,YAAA;AAmBN,SAAS,iBAAuB;AACrC,MAAI,CAAC,eAAe,IAAI,eAAe,GAAG;AACxC,mBAAe,OAAO,iBAAiB,YAAY;AAAA,EACrD;AACF;"}
@@ -0,0 +1,3 @@
1
+ export { Ui9000Button, registerButton } from './element/ui9000-button.js';
2
+ export { default as buttonMetadata } from './metadata.json';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { registerButton } from "./element/ui9000-button.js";
2
+ import { Ui9000Button } from "./element/ui9000-button.js";
3
+ import { default as default2 } from "./metadata.json.js";
4
+ export {
5
+ Ui9000Button,
6
+ default2 as buttonMetadata,
7
+ registerButton
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,99 @@
1
+ declare const _default: {
2
+ "id": "button",
3
+ "tag": "ui9000-button",
4
+ "title": "Button",
5
+ "description": "Button control. Fail-closed without a label.",
6
+ "chartTypeKeys": [],
7
+ "source": "ui9000-widgets Stage 2 close-out",
8
+ "stack": "lit",
9
+ "lazyImport": "@ui9000/widgets/lazy/button",
10
+ "entry": "@ui9000/widgets/button",
11
+ "usageConditions": {
12
+ "host": "mcp-chat",
13
+ "notFor": "fusedash-editor",
14
+ "mapsExcluded": true
15
+ },
16
+ "allowedActions": [
17
+ "submit"
18
+ ],
19
+ "tier": "engine",
20
+ "intents": [
21
+ "form"
22
+ ],
23
+ "dataRoles": [
24
+ {
25
+ "id": "value",
26
+ "required": false,
27
+ "description": "Control value."
28
+ }
29
+ ],
30
+ "eligibility": [
31
+ {
32
+ "when": "profile.allControlsLabelled && profile.controlCount >= 1",
33
+ "reason": "Form controls are eligible when every control has a label."
34
+ }
35
+ ],
36
+ "disqualify": [
37
+ {
38
+ "when": "!profile.allControlsLabelled",
39
+ "reason": "Unlabelled control is refused."
40
+ },
41
+ {
42
+ "when": "profile.controlCount === 0",
43
+ "reason": "No controls to render."
44
+ }
45
+ ],
46
+ "accessibility": {
47
+ "nameFrom": "label",
48
+ "keyboard": [
49
+ "Tab into the labelled control"
50
+ ],
51
+ "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element."
52
+ },
53
+ "evalCases": [
54
+ {
55
+ "id": "button-picks-labelled",
56
+ "intent": "form",
57
+ "profile": {
58
+ "allControlsLabelled": true,
59
+ "controlCount": 1
60
+ },
61
+ "expect": "eligible",
62
+ "reasonIncludes": "label"
63
+ },
64
+ {
65
+ "id": "button-rejects-unlabelled",
66
+ "intent": "form",
67
+ "profile": {
68
+ "allControlsLabelled": false,
69
+ "controlCount": 1
70
+ },
71
+ "expect": "disqualified",
72
+ "reasonIncludes": "Unlabelled"
73
+ }
74
+ ],
75
+ "propsSchema": {
76
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
77
+ "type": "object",
78
+ "properties": {
79
+ "data": {
80
+ "type": "object",
81
+ "properties": {
82
+ "label": {
83
+ "type": "string"
84
+ },
85
+ "name": {
86
+ "type": "string"
87
+ },
88
+ "value": {}
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "data"
94
+ ]
95
+ }
96
+ }
97
+ ;
98
+
99
+ export default _default;
@@ -0,0 +1,63 @@
1
+ const id = "button";
2
+ const tag = "ui9000-button";
3
+ const title = "Button";
4
+ const description = "Button control. Fail-closed without a label.";
5
+ const chartTypeKeys = [];
6
+ const source = "ui9000-widgets Stage 2 close-out";
7
+ const stack = "lit";
8
+ const lazyImport = "@ui9000/widgets/lazy/button";
9
+ const entry = "@ui9000/widgets/button";
10
+ const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true };
11
+ const allowedActions = ["submit"];
12
+ const tier = "engine";
13
+ const intents = ["form"];
14
+ const dataRoles = [{ "id": "value", "required": false, "description": "Control value." }];
15
+ const eligibility = [{ "when": "profile.allControlsLabelled && profile.controlCount >= 1", "reason": "Form controls are eligible when every control has a label." }];
16
+ const disqualify = [{ "when": "!profile.allControlsLabelled", "reason": "Unlabelled control is refused." }, { "when": "profile.controlCount === 0", "reason": "No controls to render." }];
17
+ const accessibility = { "nameFrom": "label", "keyboard": ["Tab into the labelled control"], "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element." };
18
+ const evalCases = [{ "id": "button-picks-labelled", "intent": "form", "profile": { "allControlsLabelled": true, "controlCount": 1 }, "expect": "eligible", "reasonIncludes": "label" }, { "id": "button-rejects-unlabelled", "intent": "form", "profile": { "allControlsLabelled": false, "controlCount": 1 }, "expect": "disqualified", "reasonIncludes": "Unlabelled" }];
19
+ const propsSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "data": { "type": "object", "properties": { "label": { "type": "string" }, "name": { "type": "string" }, "value": {} } } }, "required": ["data"] };
20
+ const metadata = {
21
+ id,
22
+ tag,
23
+ title,
24
+ description,
25
+ chartTypeKeys,
26
+ source,
27
+ stack,
28
+ lazyImport,
29
+ entry,
30
+ usageConditions,
31
+ allowedActions,
32
+ tier,
33
+ intents,
34
+ dataRoles,
35
+ eligibility,
36
+ disqualify,
37
+ accessibility,
38
+ evalCases,
39
+ propsSchema
40
+ };
41
+ export {
42
+ accessibility,
43
+ allowedActions,
44
+ chartTypeKeys,
45
+ dataRoles,
46
+ metadata as default,
47
+ description,
48
+ disqualify,
49
+ eligibility,
50
+ entry,
51
+ evalCases,
52
+ id,
53
+ intents,
54
+ lazyImport,
55
+ propsSchema,
56
+ source,
57
+ stack,
58
+ tag,
59
+ tier,
60
+ title,
61
+ usageConditions
62
+ };
63
+ //# sourceMappingURL=metadata.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "stack": "d3",
9
9
  "lazyImport": "@ui9000/widgets/lazy/chart-renderer",
10
10
  "entry": "@ui9000/widgets/chart-renderer",
11
+ "tier": "host",
11
12
  "usageConditions": {
12
13
  "host": "mcp-chat",
13
14
  "notFor": "fusedash-editor",
@@ -7,6 +7,7 @@ const source = "client/libs/shared/components/src/Widgets/ChartRenderer/";
7
7
  const stack = "d3";
8
8
  const lazyImport = "@ui9000/widgets/lazy/chart-renderer";
9
9
  const entry = "@ui9000/widgets/chart-renderer";
10
+ const tier = "host";
10
11
  const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true };
11
12
  const allowedActions = ["resize"];
12
13
  const propsSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "data": { "type": "object", "description": "FuseDash WidgetItem JSON (must include chartType unless chart-type attribute is set)" }, "chartType": { "type": "string", "description": "Optional override — wins over widget.chartType (matches FuseDash ChartRenderer chartType prop)" }, "scale": { "type": "string", "enum": ["compact", "default", "comfortable"], "default": "default" }, "showGrid": { "type": "boolean" }, "showLegend": { "type": "boolean" }, "showTooltip": { "type": "boolean" }, "chartTitle": { "type": "string" }, "showHeader": { "type": "boolean", "default": true, "description": "Set false when the host renders its own title (custom-widget) — suppresses the mounted chart's header" } }, "required": ["data"] };
@@ -20,6 +21,7 @@ const metadata = {
20
21
  stack,
21
22
  lazyImport,
22
23
  entry,
24
+ tier,
23
25
  usageConditions,
24
26
  allowedActions,
25
27
  propsSchema
@@ -36,6 +38,7 @@ export {
36
38
  source,
37
39
  stack,
38
40
  tag,
41
+ tier,
39
42
  title,
40
43
  usageConditions
41
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"metadata.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class Ui9000Checkbox extends LitElement {
3
+ static styles: import('lit').CSSResult;
4
+ dataJson: string;
5
+ label: string;
6
+ name: string;
7
+ value?: string;
8
+ render(): import('lit-html').TemplateResult<1>;
9
+ }
10
+ export declare function registerCheckbox(): void;
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'ui9000-checkbox': Ui9000Checkbox;
14
+ }
15
+ }
16
+ //# sourceMappingURL=ui9000-checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui9000-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/element/ui9000-checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,qBACa,cAAe,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAiB;IAEQ,QAAQ,SAAQ;IACnC,KAAK,SAAM;IACX,IAAI,SAAM;IACQ,KAAK,CAAC,EAAE,MAAM,CAAC;IAEpD,MAAM;CAuBhB;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
@@ -0,0 +1,71 @@
1
+ import { LitElement, html } from "lit";
2
+ import { property, customElement } from "lit/decorators.js";
3
+ import { surfaceStyles } from "../../../element/surface-styles.js";
4
+ import { parseLabelledField } from "../../../lib/labelled-control.js";
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __decorateClass = (decorators, target, key, kind) => {
8
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
+ if (decorator = decorators[i])
11
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12
+ if (kind && result) __defProp(target, key, result);
13
+ return result;
14
+ };
15
+ let Ui9000Checkbox = class extends LitElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.dataJson = "{}";
19
+ this.label = "";
20
+ this.name = "";
21
+ }
22
+ render() {
23
+ const field = parseLabelledField(this.dataJson, {
24
+ label: this.label,
25
+ name: this.name,
26
+ value: this.value
27
+ });
28
+ if (!field) return html`<p class="blocked" role="alert">Label required</p>`;
29
+ const checked = field.value === "true" || field.value === "on" || field.value === "1";
30
+ return html`
31
+ <div class="root row">
32
+ <input
33
+ id=${field.name}
34
+ name=${field.name}
35
+ type="checkbox"
36
+ .checked=${checked}
37
+ @change=${(e) => {
38
+ this.value = e.target.checked ? "true" : "false";
39
+ }}
40
+ />
41
+ <label for=${field.name}>${field.label}</label>
42
+ </div>
43
+ `;
44
+ }
45
+ };
46
+ Ui9000Checkbox.styles = surfaceStyles;
47
+ __decorateClass([
48
+ property({ type: String, attribute: "data" })
49
+ ], Ui9000Checkbox.prototype, "dataJson", 2);
50
+ __decorateClass([
51
+ property({ type: String })
52
+ ], Ui9000Checkbox.prototype, "label", 2);
53
+ __decorateClass([
54
+ property({ type: String })
55
+ ], Ui9000Checkbox.prototype, "name", 2);
56
+ __decorateClass([
57
+ property({ type: String, attribute: false })
58
+ ], Ui9000Checkbox.prototype, "value", 2);
59
+ Ui9000Checkbox = __decorateClass([
60
+ customElement("ui9000-checkbox")
61
+ ], Ui9000Checkbox);
62
+ function registerCheckbox() {
63
+ if (!customElements.get("ui9000-checkbox")) {
64
+ customElements.define("ui9000-checkbox", Ui9000Checkbox);
65
+ }
66
+ }
67
+ export {
68
+ Ui9000Checkbox,
69
+ registerCheckbox
70
+ };
71
+ //# sourceMappingURL=ui9000-checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui9000-checkbox.js","sources":["../../../../src/components/checkbox/element/ui9000-checkbox.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { surfaceStyles } from '../../../element/surface-styles.js';\nimport { parseLabelledField } from '../../../lib/labelled-control.js';\n\n@customElement('ui9000-checkbox')\nexport class Ui9000Checkbox extends LitElement {\n static override styles = surfaceStyles;\n\n @property({ type: String, attribute: 'data' }) dataJson = '{}';\n @property({ type: String }) label = '';\n @property({ type: String }) name = '';\n @property({ type: String, attribute: false }) value?: string;\n\n override render() {\n const field = parseLabelledField(this.dataJson, {\n label: this.label,\n name: this.name,\n value: this.value,\n });\n if (!field) return html`<p class=\"blocked\" role=\"alert\">Label required</p>`;\n const checked = field.value === 'true' || field.value === 'on' || field.value === '1';\n return html`\n <div class=\"root row\">\n <input\n id=${field.name}\n name=${field.name}\n type=\"checkbox\"\n .checked=${checked}\n @change=${(e: Event) => {\n this.value = (e.target as HTMLInputElement).checked ? 'true' : 'false';\n }}\n />\n <label for=${field.name}>${field.label}</label>\n </div>\n `;\n }\n}\n\nexport function registerCheckbox(): void {\n if (!customElements.get('ui9000-checkbox')) {\n customElements.define('ui9000-checkbox', Ui9000Checkbox);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ui9000-checkbox': Ui9000Checkbox;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOO,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA;AAG0C,SAAA,WAAW;AAC9B,SAAA,QAAQ;AACR,SAAA,OAAO;AAAA,EAAA;AAAA,EAG1B,SAAS;AAChB,UAAM,QAAQ,mBAAmB,KAAK,UAAU;AAAA,MAC9C,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,OAAO,KAAK;AAAA,IAAA,CACb;AACD,QAAI,CAAC,MAAO,QAAO;AACnB,UAAM,UAAU,MAAM,UAAU,UAAU,MAAM,UAAU,QAAQ,MAAM,UAAU;AAClF,WAAO;AAAA;AAAA;AAAA,eAGI,MAAM,IAAI;AAAA,iBACR,MAAM,IAAI;AAAA;AAAA,qBAEN,OAAO;AAAA,oBACR,CAAC,MAAa;AACtB,WAAK,QAAS,EAAE,OAA4B,UAAU,SAAS;AAAA,IACjE,CAAC;AAAA;AAAA,qBAEU,MAAM,IAAI,IAAI,MAAM,KAAK;AAAA;AAAA;AAAA,EAG5C;AACF;AA/Ba,eACK,SAAS;AAEsB,gBAAA;AAAA,EAA9C,SAAS,EAAE,MAAM,QAAQ,WAAW,QAAQ;AAAA,GAHlC,eAGoC,WAAA,YAAA,CAAA;AACnB,gBAAA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAJf,eAIiB,WAAA,SAAA,CAAA;AACA,gBAAA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GALf,eAKiB,WAAA,QAAA,CAAA;AACkB,gBAAA;AAAA,EAA7C,SAAS,EAAE,MAAM,QAAQ,WAAW,OAAO;AAAA,GANjC,eAMmC,WAAA,SAAA,CAAA;AANnC,iBAAN,gBAAA;AAAA,EADN,cAAc,iBAAiB;AAAA,GACnB,cAAA;AAiCN,SAAS,mBAAyB;AACvC,MAAI,CAAC,eAAe,IAAI,iBAAiB,GAAG;AAC1C,mBAAe,OAAO,mBAAmB,cAAc;AAAA,EACzD;AACF;"}
@@ -0,0 +1,3 @@
1
+ export { Ui9000Checkbox, registerCheckbox } from './element/ui9000-checkbox.js';
2
+ export { default as checkboxMetadata } from './metadata.json';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { registerCheckbox } from "./element/ui9000-checkbox.js";
2
+ import { Ui9000Checkbox } from "./element/ui9000-checkbox.js";
3
+ import { default as default2 } from "./metadata.json.js";
4
+ export {
5
+ Ui9000Checkbox,
6
+ default2 as checkboxMetadata,
7
+ registerCheckbox
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}