@fusedashlabs/widgets 0.4.4 → 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.
- package/CHANGELOG.md +23 -0
- package/README.md +24 -3
- package/dist/catalog/engine.d.ts +9 -0
- package/dist/catalog/engine.d.ts.map +1 -0
- package/dist/catalog/engine.js +28 -0
- package/dist/catalog/engine.js.map +1 -0
- package/dist/catalog/evaluate.d.ts +11 -0
- package/dist/catalog/evaluate.d.ts.map +1 -0
- package/dist/catalog/evaluate.js +18 -0
- package/dist/catalog/evaluate.js.map +1 -0
- package/dist/catalog/index.d.ts +8 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +25 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/catalog/load.d.ts +11 -0
- package/dist/catalog/load.d.ts.map +1 -0
- package/dist/catalog/load.js +140 -0
- package/dist/catalog/load.js.map +1 -0
- package/dist/catalog/schema.d.ts +5 -0
- package/dist/catalog/schema.d.ts.map +1 -0
- package/dist/catalog/schema.js +143 -0
- package/dist/catalog/schema.js.map +1 -0
- package/dist/catalog/types.d.ts +83 -0
- package/dist/catalog/types.d.ts.map +1 -0
- package/dist/catalog/types.js +45 -0
- package/dist/catalog/types.js.map +1 -0
- package/dist/catalog/when.d.ts +13 -0
- package/dist/catalog/when.d.ts.map +1 -0
- package/dist/catalog/when.js +236 -0
- package/dist/catalog/when.js.map +1 -0
- package/dist/components/approval-bar/element/ui9000-approval-bar.d.ts +17 -0
- package/dist/components/approval-bar/element/ui9000-approval-bar.d.ts.map +1 -0
- package/dist/components/approval-bar/element/ui9000-approval-bar.js +83 -0
- package/dist/components/approval-bar/element/ui9000-approval-bar.js.map +1 -0
- package/dist/components/approval-bar/index.d.ts +4 -0
- package/dist/components/approval-bar/index.d.ts.map +1 -0
- package/dist/components/approval-bar/index.js +11 -0
- package/dist/components/approval-bar/index.js.map +1 -0
- package/dist/components/approval-bar/lib/normalize.d.ts +7 -0
- package/dist/components/approval-bar/lib/normalize.d.ts.map +1 -0
- package/dist/components/approval-bar/lib/normalize.js +12 -0
- package/dist/components/approval-bar/lib/normalize.js.map +1 -0
- package/dist/components/approval-bar/metadata.json.d.ts +99 -0
- package/dist/components/approval-bar/metadata.json.js +63 -0
- package/dist/components/approval-bar/metadata.json.js.map +1 -0
- package/dist/components/bar-chart/element/styles.js +3 -3
- package/dist/components/bar-chart/element/styles.js.map +1 -1
- package/dist/components/bar-chart/metadata.json.d.ts +53 -0
- package/dist/components/bar-chart/metadata.json.js +21 -0
- package/dist/components/bar-chart/metadata.json.js.map +1 -1
- package/dist/components/box-plot-chart/element/styles.js +3 -3
- package/dist/components/box-plot-chart/element/styles.js.map +1 -1
- package/dist/components/button/element/ui9000-button.d.ts +15 -0
- package/dist/components/button/element/ui9000-button.d.ts.map +1 -0
- package/dist/components/button/element/ui9000-button.js +56 -0
- package/dist/components/button/element/ui9000-button.js.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/metadata.json.d.ts +99 -0
- package/dist/components/button/metadata.json.js +63 -0
- package/dist/components/button/metadata.json.js.map +1 -0
- package/dist/components/chart-renderer/element/styles.d.ts.map +1 -1
- package/dist/components/chart-renderer/element/styles.js +4 -1
- package/dist/components/chart-renderer/element/styles.js.map +1 -1
- package/dist/components/chart-renderer/element/ui9000-chart-renderer.d.ts.map +1 -1
- package/dist/components/chart-renderer/element/ui9000-chart-renderer.js +12 -0
- package/dist/components/chart-renderer/element/ui9000-chart-renderer.js.map +1 -1
- package/dist/components/chart-renderer/metadata.json.d.ts +7 -1
- package/dist/components/chart-renderer/metadata.json.js +4 -1
- package/dist/components/chart-renderer/metadata.json.js.map +1 -1
- package/dist/components/checkbox/element/ui9000-checkbox.d.ts +16 -0
- package/dist/components/checkbox/element/ui9000-checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/element/ui9000-checkbox.js +71 -0
- package/dist/components/checkbox/element/ui9000-checkbox.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +9 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/checkbox/metadata.json.d.ts +99 -0
- package/dist/components/checkbox/metadata.json.js +63 -0
- package/dist/components/checkbox/metadata.json.js.map +1 -0
- package/dist/components/custom-widget/element/styles.d.ts +2 -0
- package/dist/components/custom-widget/element/styles.d.ts.map +1 -0
- package/dist/components/custom-widget/element/styles.js +286 -0
- package/dist/components/custom-widget/element/styles.js.map +1 -0
- package/dist/components/custom-widget/element/ui9000-custom-widget.d.ts +47 -0
- package/dist/components/custom-widget/element/ui9000-custom-widget.d.ts.map +1 -0
- package/dist/components/custom-widget/element/ui9000-custom-widget.js +242 -0
- package/dist/components/custom-widget/element/ui9000-custom-widget.js.map +1 -0
- package/dist/components/custom-widget/index.d.ts +4 -0
- package/dist/components/custom-widget/index.d.ts.map +1 -0
- package/dist/components/custom-widget/index.js +19 -0
- package/dist/components/custom-widget/index.js.map +1 -0
- package/dist/components/custom-widget/lib/content.d.ts +2 -0
- package/dist/components/custom-widget/lib/content.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/index.d.ts +8 -0
- package/dist/components/custom-widget/lib/index.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/layout.d.ts +35 -0
- package/dist/components/custom-widget/lib/layout.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/layout.js +13 -0
- package/dist/components/custom-widget/lib/layout.js.map +1 -0
- package/dist/components/custom-widget/lib/markdown.d.ts +2 -0
- package/dist/components/custom-widget/lib/markdown.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/normalize.d.ts +6 -0
- package/dist/components/custom-widget/lib/normalize.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/normalize.js +144 -0
- package/dist/components/custom-widget/lib/normalize.js.map +1 -0
- package/dist/components/custom-widget/lib/table.d.ts +2 -0
- package/dist/components/custom-widget/lib/table.d.ts.map +1 -0
- package/dist/components/custom-widget/lib/types.d.ts +55 -0
- package/dist/components/custom-widget/lib/types.d.ts.map +1 -0
- package/dist/components/custom-widget/metadata.json.d.ts +97 -0
- package/dist/components/custom-widget/metadata.json.js +45 -0
- package/dist/components/custom-widget/metadata.json.js.map +1 -0
- package/dist/components/date-input/element/ui9000-date-input.d.ts +16 -0
- package/dist/components/date-input/element/ui9000-date-input.d.ts.map +1 -0
- package/dist/components/date-input/element/ui9000-date-input.js +71 -0
- package/dist/components/date-input/element/ui9000-date-input.js.map +1 -0
- package/dist/components/date-input/index.d.ts +3 -0
- package/dist/components/date-input/index.d.ts.map +1 -0
- package/dist/components/date-input/index.js +9 -0
- package/dist/components/date-input/index.js.map +1 -0
- package/dist/components/date-input/metadata.json.d.ts +99 -0
- package/dist/components/date-input/metadata.json.js +63 -0
- package/dist/components/date-input/metadata.json.js.map +1 -0
- package/dist/components/entity-detail/element/ui9000-entity-detail.d.ts +17 -0
- package/dist/components/entity-detail/element/ui9000-entity-detail.d.ts.map +1 -0
- package/dist/components/entity-detail/element/ui9000-entity-detail.js +91 -0
- package/dist/components/entity-detail/element/ui9000-entity-detail.js.map +1 -0
- package/dist/components/entity-detail/index.d.ts +4 -0
- package/dist/components/entity-detail/index.d.ts.map +1 -0
- package/dist/components/entity-detail/index.js +11 -0
- package/dist/components/entity-detail/index.js.map +1 -0
- package/dist/components/entity-detail/lib/normalize.d.ts +17 -0
- package/dist/components/entity-detail/lib/normalize.d.ts.map +1 -0
- package/dist/components/entity-detail/lib/normalize.js +34 -0
- package/dist/components/entity-detail/lib/normalize.js.map +1 -0
- package/dist/components/entity-detail/metadata.json.d.ts +110 -0
- package/dist/components/entity-detail/metadata.json.js +63 -0
- package/dist/components/entity-detail/metadata.json.js.map +1 -0
- package/dist/components/event-timeline/element/ui9000-event-timeline.d.ts +17 -0
- package/dist/components/event-timeline/element/ui9000-event-timeline.d.ts.map +1 -0
- package/dist/components/event-timeline/element/ui9000-event-timeline.js +78 -0
- package/dist/components/event-timeline/element/ui9000-event-timeline.js.map +1 -0
- package/dist/components/event-timeline/index.d.ts +4 -0
- package/dist/components/event-timeline/index.d.ts.map +1 -0
- package/dist/components/event-timeline/index.js +11 -0
- package/dist/components/event-timeline/index.js.map +1 -0
- package/dist/components/event-timeline/lib/normalize.d.ts +10 -0
- package/dist/components/event-timeline/lib/normalize.d.ts.map +1 -0
- package/dist/components/event-timeline/lib/normalize.js +25 -0
- package/dist/components/event-timeline/lib/normalize.js.map +1 -0
- package/dist/components/event-timeline/metadata.json.d.ts +124 -0
- package/dist/components/event-timeline/metadata.json.js +63 -0
- package/dist/components/event-timeline/metadata.json.js.map +1 -0
- package/dist/components/evidence-panel/element/ui9000-evidence-panel.d.ts +17 -0
- package/dist/components/evidence-panel/element/ui9000-evidence-panel.d.ts.map +1 -0
- package/dist/components/evidence-panel/element/ui9000-evidence-panel.js +84 -0
- package/dist/components/evidence-panel/element/ui9000-evidence-panel.js.map +1 -0
- package/dist/components/evidence-panel/index.d.ts +4 -0
- package/dist/components/evidence-panel/index.d.ts.map +1 -0
- package/dist/components/evidence-panel/index.js +11 -0
- package/dist/components/evidence-panel/index.js.map +1 -0
- package/dist/components/evidence-panel/lib/normalize.d.ts +19 -0
- package/dist/components/evidence-panel/lib/normalize.d.ts.map +1 -0
- package/dist/components/evidence-panel/lib/normalize.js +33 -0
- package/dist/components/evidence-panel/lib/normalize.js.map +1 -0
- package/dist/components/evidence-panel/metadata.json.d.ts +114 -0
- package/dist/components/evidence-panel/metadata.json.js +63 -0
- package/dist/components/evidence-panel/metadata.json.js.map +1 -0
- package/dist/components/form/element/ui9000-form.d.ts +21 -0
- package/dist/components/form/element/ui9000-form.d.ts.map +1 -0
- package/dist/components/form/element/ui9000-form.js +115 -0
- package/dist/components/form/element/ui9000-form.js.map +1 -0
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +11 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/form/lib/normalize.d.ts +14 -0
- package/dist/components/form/lib/normalize.d.ts.map +1 -0
- package/dist/components/form/lib/normalize.js +36 -0
- package/dist/components/form/lib/normalize.js.map +1 -0
- package/dist/components/form/metadata.json.d.ts +94 -0
- package/dist/components/form/metadata.json.js +63 -0
- package/dist/components/form/metadata.json.js.map +1 -0
- package/dist/components/histogram-chart/element/styles.js +2 -2
- package/dist/components/histogram-chart/element/styles.js.map +1 -1
- package/dist/components/histogram-chart/metadata.json.d.ts +47 -0
- package/dist/components/histogram-chart/metadata.json.js +21 -0
- package/dist/components/histogram-chart/metadata.json.js.map +1 -1
- package/dist/components/image/element/ui9000-image.d.ts +17 -0
- package/dist/components/image/element/ui9000-image.d.ts.map +1 -0
- package/dist/components/image/element/ui9000-image.js +74 -0
- package/dist/components/image/element/ui9000-image.js.map +1 -0
- package/dist/components/image/index.d.ts +4 -0
- package/dist/components/image/index.d.ts.map +1 -0
- package/dist/components/image/index.js +13 -0
- package/dist/components/image/index.js.map +1 -0
- package/dist/components/image/lib/url.d.ts +14 -0
- package/dist/components/image/lib/url.d.ts.map +1 -0
- package/dist/components/image/lib/url.js +23 -0
- package/dist/components/image/lib/url.js.map +1 -0
- package/dist/components/image/metadata.json.d.ts +95 -0
- package/dist/components/image/metadata.json.js +63 -0
- package/dist/components/image/metadata.json.js.map +1 -0
- package/dist/components/kpi-widget/metadata.json.d.ts +47 -0
- package/dist/components/kpi-widget/metadata.json.js +21 -0
- package/dist/components/kpi-widget/metadata.json.js.map +1 -1
- package/dist/components/line-chart/element/styles.js +2 -2
- package/dist/components/line-chart/element/styles.js.map +1 -1
- package/dist/components/lollipop/element/styles.js +3 -3
- package/dist/components/lollipop/element/styles.js.map +1 -1
- package/dist/components/map-chart/metadata.json.d.ts +54 -2
- package/dist/components/map-chart/metadata.json.js +23 -2
- package/dist/components/map-chart/metadata.json.js.map +1 -1
- package/dist/components/multi-select/element/ui9000-multi-select.d.ts +16 -0
- package/dist/components/multi-select/element/ui9000-multi-select.d.ts.map +1 -0
- package/dist/components/multi-select/element/ui9000-multi-select.js +77 -0
- package/dist/components/multi-select/element/ui9000-multi-select.js.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +9 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/metadata.json.d.ts +99 -0
- package/dist/components/multi-select/metadata.json.js +63 -0
- package/dist/components/multi-select/metadata.json.js.map +1 -0
- package/dist/components/network-graph/metadata.json.d.ts +53 -2
- package/dist/components/network-graph/metadata.json.js +23 -2
- package/dist/components/network-graph/metadata.json.js.map +1 -1
- package/dist/components/number-input/element/ui9000-number-input.d.ts +16 -0
- package/dist/components/number-input/element/ui9000-number-input.d.ts.map +1 -0
- package/dist/components/number-input/element/ui9000-number-input.js +71 -0
- package/dist/components/number-input/element/ui9000-number-input.js.map +1 -0
- package/dist/components/number-input/index.d.ts +3 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +9 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/metadata.json.d.ts +99 -0
- package/dist/components/number-input/metadata.json.js +63 -0
- package/dist/components/number-input/metadata.json.js.map +1 -0
- package/dist/components/select/element/ui9000-select.d.ts +16 -0
- package/dist/components/select/element/ui9000-select.d.ts.map +1 -0
- package/dist/components/select/element/ui9000-select.js +73 -0
- package/dist/components/select/element/ui9000-select.js.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +9 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/metadata.json.d.ts +99 -0
- package/dist/components/select/metadata.json.js +63 -0
- package/dist/components/select/metadata.json.js.map +1 -0
- package/dist/components/step-line-chart/element/styles.js +2 -2
- package/dist/components/step-line-chart/element/styles.js.map +1 -1
- package/dist/components/table/element/styles.d.ts +2 -0
- package/dist/components/table/element/styles.d.ts.map +1 -0
- package/dist/components/table/element/styles.js +105 -0
- package/dist/components/table/element/styles.js.map +1 -0
- package/dist/components/table/element/ui9000-table.d.ts +17 -0
- package/dist/components/table/element/ui9000-table.d.ts.map +1 -0
- package/dist/components/table/element/ui9000-table.js +113 -0
- package/dist/components/table/element/ui9000-table.js.map +1 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +14 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/lib/table.d.ts +55 -0
- package/dist/components/table/lib/table.d.ts.map +1 -0
- package/dist/components/table/lib/table.js +181 -0
- package/dist/components/table/lib/table.js.map +1 -0
- package/dist/components/table/metadata.json.d.ts +88 -0
- package/dist/components/table/metadata.json.js +63 -0
- package/dist/components/table/metadata.json.js.map +1 -0
- package/dist/components/text/element/ui9000-text.d.ts +16 -0
- package/dist/components/text/element/ui9000-text.d.ts.map +1 -0
- package/dist/components/text/element/ui9000-text.js +90 -0
- package/dist/components/text/element/ui9000-text.js.map +1 -0
- package/dist/components/text/index.d.ts +4 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +11 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/lib/content.d.ts +2 -0
- package/dist/components/text/lib/content.d.ts.map +1 -0
- package/dist/components/text/lib/markdown.d.ts +4 -0
- package/dist/components/text/lib/markdown.d.ts.map +1 -0
- package/dist/components/text/lib/markdown.js +125 -0
- package/dist/components/text/lib/markdown.js.map +1 -0
- package/dist/components/text/metadata.json.d.ts +98 -0
- package/dist/components/text/metadata.json.js +63 -0
- package/dist/components/text/metadata.json.js.map +1 -0
- package/dist/components/text-input/element/ui9000-text-input.d.ts +16 -0
- package/dist/components/text-input/element/ui9000-text-input.d.ts.map +1 -0
- package/dist/components/text-input/element/ui9000-text-input.js +70 -0
- package/dist/components/text-input/element/ui9000-text-input.js.map +1 -0
- package/dist/components/text-input/index.d.ts +3 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +9 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/metadata.json.d.ts +99 -0
- package/dist/components/text-input/metadata.json.js +63 -0
- package/dist/components/text-input/metadata.json.js.map +1 -0
- package/dist/element/chart-shell-styles.d.ts.map +1 -1
- package/dist/element/chart-shell-styles.js +11 -4
- package/dist/element/chart-shell-styles.js.map +1 -1
- package/dist/element/dispatch-ui9000.d.ts +11 -0
- package/dist/element/dispatch-ui9000.d.ts.map +1 -0
- package/dist/element/dispatch-ui9000.js +21 -0
- package/dist/element/dispatch-ui9000.js.map +1 -0
- package/dist/element/surface-styles.d.ts +2 -0
- package/dist/element/surface-styles.d.ts.map +1 -0
- package/dist/element/surface-styles.js +84 -0
- package/dist/element/surface-styles.js.map +1 -0
- package/dist/element/ui9000-chart-base.d.ts +5 -0
- package/dist/element/ui9000-chart-base.d.ts.map +1 -1
- package/dist/element/ui9000-chart-base.js +7 -1
- package/dist/element/ui9000-chart-base.js.map +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +116 -1
- package/dist/index.js.map +1 -1
- package/dist/lazy/approval-bar.d.ts +4 -0
- package/dist/lazy/approval-bar.d.ts.map +1 -0
- package/dist/lazy/approval-bar.js +5 -0
- package/dist/lazy/approval-bar.js.map +1 -0
- package/dist/lazy/button.d.ts +4 -0
- package/dist/lazy/button.d.ts.map +1 -0
- package/dist/lazy/button.js +5 -0
- package/dist/lazy/button.js.map +1 -0
- package/dist/lazy/checkbox.d.ts +4 -0
- package/dist/lazy/checkbox.d.ts.map +1 -0
- package/dist/lazy/checkbox.js +5 -0
- package/dist/lazy/checkbox.js.map +1 -0
- package/dist/lazy/custom-widget.d.ts +4 -0
- package/dist/lazy/custom-widget.d.ts.map +1 -0
- package/dist/lazy/custom-widget.js +5 -0
- package/dist/lazy/custom-widget.js.map +1 -0
- package/dist/lazy/date-input.d.ts +4 -0
- package/dist/lazy/date-input.d.ts.map +1 -0
- package/dist/lazy/date-input.js +5 -0
- package/dist/lazy/date-input.js.map +1 -0
- package/dist/lazy/entity-detail.d.ts +4 -0
- package/dist/lazy/entity-detail.d.ts.map +1 -0
- package/dist/lazy/entity-detail.js +5 -0
- package/dist/lazy/entity-detail.js.map +1 -0
- package/dist/lazy/event-timeline.d.ts +4 -0
- package/dist/lazy/event-timeline.d.ts.map +1 -0
- package/dist/lazy/event-timeline.js +5 -0
- package/dist/lazy/event-timeline.js.map +1 -0
- package/dist/lazy/evidence-panel.d.ts +4 -0
- package/dist/lazy/evidence-panel.d.ts.map +1 -0
- package/dist/lazy/evidence-panel.js +5 -0
- package/dist/lazy/evidence-panel.js.map +1 -0
- package/dist/lazy/form.d.ts +4 -0
- package/dist/lazy/form.d.ts.map +1 -0
- package/dist/lazy/form.js +5 -0
- package/dist/lazy/form.js.map +1 -0
- package/dist/lazy/image.d.ts +4 -0
- package/dist/lazy/image.d.ts.map +1 -0
- package/dist/lazy/image.js +5 -0
- package/dist/lazy/image.js.map +1 -0
- package/dist/lazy/index.d.ts +17 -1
- package/dist/lazy/index.d.ts.map +1 -1
- package/dist/lazy/index.js +128 -0
- package/dist/lazy/index.js.map +1 -1
- package/dist/lazy/multi-select.d.ts +4 -0
- package/dist/lazy/multi-select.d.ts.map +1 -0
- package/dist/lazy/multi-select.js +5 -0
- package/dist/lazy/multi-select.js.map +1 -0
- package/dist/lazy/number-input.d.ts +4 -0
- package/dist/lazy/number-input.d.ts.map +1 -0
- package/dist/lazy/number-input.js +5 -0
- package/dist/lazy/number-input.js.map +1 -0
- package/dist/lazy/select.d.ts +4 -0
- package/dist/lazy/select.d.ts.map +1 -0
- package/dist/lazy/select.js +5 -0
- package/dist/lazy/select.js.map +1 -0
- package/dist/lazy/table.d.ts +4 -0
- package/dist/lazy/table.d.ts.map +1 -0
- package/dist/lazy/table.js +5 -0
- package/dist/lazy/table.js.map +1 -0
- package/dist/lazy/text-input.d.ts +4 -0
- package/dist/lazy/text-input.d.ts.map +1 -0
- package/dist/lazy/text-input.js +5 -0
- package/dist/lazy/text-input.js.map +1 -0
- package/dist/lazy/text.d.ts +4 -0
- package/dist/lazy/text.d.ts.map +1 -0
- package/dist/lazy/text.js +5 -0
- package/dist/lazy/text.js.map +1 -0
- package/dist/lib/labelled-control.d.ts +12 -0
- package/dist/lib/labelled-control.d.ts.map +1 -0
- package/dist/lib/labelled-control.js +14 -0
- package/dist/lib/labelled-control.js.map +1 -0
- package/package.json +134 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"id": "date-input",
|
|
3
|
+
"tag": "ui9000-date-input",
|
|
4
|
+
"title": "Date input",
|
|
5
|
+
"description": "Date input control. Fail-closed without a label.",
|
|
6
|
+
"chartTypeKeys": [],
|
|
7
|
+
"source": "ui9000-widgets Stage 2 close-out",
|
|
8
|
+
"stack": "lit",
|
|
9
|
+
"lazyImport": "@ui9000/widgets/lazy/date-input",
|
|
10
|
+
"entry": "@ui9000/widgets/date-input",
|
|
11
|
+
"usageConditions": {
|
|
12
|
+
"host": "mcp-chat",
|
|
13
|
+
"notFor": "fusedash-editor",
|
|
14
|
+
"mapsExcluded": true
|
|
15
|
+
},
|
|
16
|
+
"allowedActions": [
|
|
17
|
+
"resize"
|
|
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": "date-input-picks-labelled",
|
|
56
|
+
"intent": "form",
|
|
57
|
+
"profile": {
|
|
58
|
+
"allControlsLabelled": true,
|
|
59
|
+
"controlCount": 1
|
|
60
|
+
},
|
|
61
|
+
"expect": "eligible",
|
|
62
|
+
"reasonIncludes": "label"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "date-input-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 = "date-input";
|
|
2
|
+
const tag = "ui9000-date-input";
|
|
3
|
+
const title = "Date input";
|
|
4
|
+
const description = "Date input 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/date-input";
|
|
9
|
+
const entry = "@ui9000/widgets/date-input";
|
|
10
|
+
const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true };
|
|
11
|
+
const allowedActions = ["resize"];
|
|
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": "date-input-picks-labelled", "intent": "form", "profile": { "allControlsLabelled": true, "controlCount": 1 }, "expect": "eligible", "reasonIncludes": "label" }, { "id": "date-input-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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
export declare class Ui9000EntityDetail extends LitElement {
|
|
3
|
+
static styles: import('lit').CSSResult;
|
|
4
|
+
dataJson: string;
|
|
5
|
+
private _model;
|
|
6
|
+
private refresh;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
willUpdate(changed: PropertyValues): void;
|
|
9
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
export declare function registerEntityDetail(): void;
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'ui9000-entity-detail': Ui9000EntityDetail;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ui9000-entity-detail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui9000-entity-detail.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-detail/element/ui9000-entity-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ5D,qBACa,kBAAmB,SAAQ,UAAU;IAChD,OAAgB,MAAM,0BAAiB;IAGvC,QAAQ,SAAQ;IAGhB,OAAO,CAAC,MAAM,CAA4B;IAE1C,OAAO,CAAC,OAAO;IAIN,iBAAiB,IAAI,IAAI;IAKzB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAIzC,MAAM;CAsChB;AAED,wBAAgB,oBAAoB,IAAI,IAAI,CAI3C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { LitElement, html } from "lit";
|
|
2
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
3
|
+
import { dispatchUi9000Select, dispatchUi9000Action } from "../../../element/dispatch-ui9000.js";
|
|
4
|
+
import { surfaceStyles } from "../../../element/surface-styles.js";
|
|
5
|
+
import { parseJsonAttr } from "../../../utils/chart-helpers.js";
|
|
6
|
+
import { normalizeEntity } from "../lib/normalize.js";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
let Ui9000EntityDetail = class extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.dataJson = "{}";
|
|
21
|
+
this._model = null;
|
|
22
|
+
}
|
|
23
|
+
refresh() {
|
|
24
|
+
this._model = normalizeEntity(parseJsonAttr(this.dataJson, null));
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
this.refresh();
|
|
29
|
+
}
|
|
30
|
+
willUpdate(changed) {
|
|
31
|
+
if (changed.has("dataJson")) this.refresh();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const model = this._model;
|
|
35
|
+
if (!model) {
|
|
36
|
+
return html`<p class="blocked" role="status">Entity id and title required</p>`;
|
|
37
|
+
}
|
|
38
|
+
return html`
|
|
39
|
+
<article class="root" aria-label=${model.title}>
|
|
40
|
+
<h2>${model.title}</h2>
|
|
41
|
+
<p class="muted">${model.id}</p>
|
|
42
|
+
<dl>
|
|
43
|
+
${model.fields.map(
|
|
44
|
+
(field) => html`<dt>${field.label}</dt><dd>${field.value}</dd>`
|
|
45
|
+
)}
|
|
46
|
+
</dl>
|
|
47
|
+
<ul class="list">
|
|
48
|
+
${model.links.map(
|
|
49
|
+
(link) => html`
|
|
50
|
+
<li>
|
|
51
|
+
<a href=${link.href} target="_blank" rel="noopener noreferrer">${link.label}</a>
|
|
52
|
+
</li>
|
|
53
|
+
`
|
|
54
|
+
)}
|
|
55
|
+
</ul>
|
|
56
|
+
<div class="actions">
|
|
57
|
+
<button class="btn" type="button" @click=${() => dispatchUi9000Select(this, { id: model.id })}>
|
|
58
|
+
Select
|
|
59
|
+
</button>
|
|
60
|
+
${model.actions.map(
|
|
61
|
+
(type) => html`
|
|
62
|
+
<button class="btn" type="button" @click=${() => dispatchUi9000Action(this, { type })}>
|
|
63
|
+
${type}
|
|
64
|
+
</button>
|
|
65
|
+
`
|
|
66
|
+
)}
|
|
67
|
+
</div>
|
|
68
|
+
</article>
|
|
69
|
+
`;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
Ui9000EntityDetail.styles = surfaceStyles;
|
|
73
|
+
__decorateClass([
|
|
74
|
+
property({ type: String, attribute: "data" })
|
|
75
|
+
], Ui9000EntityDetail.prototype, "dataJson", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
state()
|
|
78
|
+
], Ui9000EntityDetail.prototype, "_model", 2);
|
|
79
|
+
Ui9000EntityDetail = __decorateClass([
|
|
80
|
+
customElement("ui9000-entity-detail")
|
|
81
|
+
], Ui9000EntityDetail);
|
|
82
|
+
function registerEntityDetail() {
|
|
83
|
+
if (!customElements.get("ui9000-entity-detail")) {
|
|
84
|
+
customElements.define("ui9000-entity-detail", Ui9000EntityDetail);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
Ui9000EntityDetail,
|
|
89
|
+
registerEntityDetail
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=ui9000-entity-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui9000-entity-detail.js","sources":["../../../../src/components/entity-detail/element/ui9000-entity-detail.ts"],"sourcesContent":["import { html, LitElement, type PropertyValues } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { dispatchUi9000Action, dispatchUi9000Select } from '../../../element/dispatch-ui9000.js';\nimport { surfaceStyles } from '../../../element/surface-styles.js';\nimport { parseJsonAttr } from '../../../utils/chart-helpers.js';\nimport { normalizeEntity, type EntityModel } from '../lib/normalize.js';\n\n@customElement('ui9000-entity-detail')\nexport class Ui9000EntityDetail extends LitElement {\n static override styles = surfaceStyles;\n\n @property({ type: String, attribute: 'data' })\n dataJson = '{}';\n\n @state()\n private _model: EntityModel | null = null;\n\n private refresh(): void {\n this._model = normalizeEntity(parseJsonAttr<unknown>(this.dataJson, null));\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.refresh();\n }\n\n override willUpdate(changed: PropertyValues): void {\n if (changed.has('dataJson')) this.refresh();\n }\n\n override render() {\n const model = this._model;\n if (!model) {\n return html`<p class=\"blocked\" role=\"status\">Entity id and title required</p>`;\n }\n return html`\n <article class=\"root\" aria-label=${model.title}>\n <h2>${model.title}</h2>\n <p class=\"muted\">${model.id}</p>\n <dl>\n ${model.fields.map(\n (field) => html`<dt>${field.label}</dt><dd>${field.value}</dd>`,\n )}\n </dl>\n <ul class=\"list\">\n ${model.links.map(\n (link) => html`\n <li>\n <a href=${link.href} target=\"_blank\" rel=\"noopener noreferrer\">${link.label}</a>\n </li>\n `,\n )}\n </ul>\n <div class=\"actions\">\n <button class=\"btn\" type=\"button\" @click=${() => dispatchUi9000Select(this, { id: model.id })}>\n Select\n </button>\n ${model.actions.map(\n (type) => html`\n <button class=\"btn\" type=\"button\" @click=${() => dispatchUi9000Action(this, { type })}>\n ${type}\n </button>\n `,\n )}\n </div>\n </article>\n `;\n }\n}\n\nexport function registerEntityDetail(): void {\n if (!customElements.get('ui9000-entity-detail')) {\n customElements.define('ui9000-entity-detail', Ui9000EntityDetail);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ui9000-entity-detail': Ui9000EntityDetail;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASO,IAAM,qBAAN,cAAiC,WAAW;AAAA,EAA5C,cAAA;AAAA,UAAA,GAAA,SAAA;AAIL,SAAA,WAAW;AAGX,SAAQ,SAA6B;AAAA,EAAA;AAAA,EAE7B,UAAgB;AACtB,SAAK,SAAS,gBAAgB,cAAuB,KAAK,UAAU,IAAI,CAAC;AAAA,EAC3E;AAAA,EAES,oBAA0B;AACjC,UAAM,kBAAA;AACN,SAAK,QAAA;AAAA,EACP;AAAA,EAES,WAAW,SAA+B;AACjD,QAAI,QAAQ,IAAI,UAAU,QAAQ,QAAA;AAAA,EACpC;AAAA,EAES,SAAS;AAChB,UAAM,QAAQ,KAAK;AACnB,QAAI,CAAC,OAAO;AACV,aAAO;AAAA,IACT;AACA,WAAO;AAAA,yCAC8B,MAAM,KAAK;AAAA,cACtC,MAAM,KAAK;AAAA,2BACE,MAAM,EAAE;AAAA;AAAA,YAEvB,MAAM,OAAO;AAAA,MACb,CAAC,UAAU,WAAW,MAAM,KAAK,YAAY,MAAM,KAAK;AAAA,IAAA,CACzD;AAAA;AAAA;AAAA,YAGC,MAAM,MAAM;AAAA,MACZ,CAAC,SAAS;AAAA;AAAA,0BAEI,KAAK,IAAI,8CAA8C,KAAK,KAAK;AAAA;AAAA;AAAA,IAAA,CAGhF;AAAA;AAAA;AAAA,qDAG0C,MAAM,qBAAqB,MAAM,EAAE,IAAI,MAAM,GAAA,CAAI,CAAC;AAAA;AAAA;AAAA,YAG3F,MAAM,QAAQ;AAAA,MACd,CAAC,SAAS;AAAA,yDACmC,MAAM,qBAAqB,MAAM,EAAE,KAAA,CAAM,CAAC;AAAA,kBACjF,IAAI;AAAA;AAAA;AAAA,IAAA,CAGX;AAAA;AAAA;AAAA;AAAA,EAIT;AACF;AA5Da,mBACK,SAAS;AAGzB,gBAAA;AAAA,EADC,SAAS,EAAE,MAAM,QAAQ,WAAW,QAAQ;AAAA,GAHlC,mBAIX,WAAA,YAAA,CAAA;AAGQ,gBAAA;AAAA,EADP,MAAA;AAAM,GANI,mBAOH,WAAA,UAAA,CAAA;AAPG,qBAAN,gBAAA;AAAA,EADN,cAAc,sBAAsB;AAAA,GACxB,kBAAA;AA8DN,SAAS,uBAA6B;AAC3C,MAAI,CAAC,eAAe,IAAI,sBAAsB,GAAG;AAC/C,mBAAe,OAAO,wBAAwB,kBAAkB;AAAA,EAClE;AACF;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Ui9000EntityDetail, registerEntityDetail } from './element/ui9000-entity-detail.js';
|
|
2
|
+
export { normalizeEntity, type EntityModel } from './lib/normalize.js';
|
|
3
|
+
export { default as entityDetailMetadata } from './metadata.json';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/entity-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerEntityDetail } from "./element/ui9000-entity-detail.js";
|
|
2
|
+
import { Ui9000EntityDetail } from "./element/ui9000-entity-detail.js";
|
|
3
|
+
import { normalizeEntity } from "./lib/normalize.js";
|
|
4
|
+
import { default as default2 } from "./metadata.json.js";
|
|
5
|
+
export {
|
|
6
|
+
Ui9000EntityDetail,
|
|
7
|
+
default2 as entityDetailMetadata,
|
|
8
|
+
normalizeEntity,
|
|
9
|
+
registerEntityDetail
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type EntityField = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
export type EntityLink = {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
export type EntityModel = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
fields: EntityField[];
|
|
13
|
+
links: EntityLink[];
|
|
14
|
+
actions: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare function normalizeEntity(raw: unknown): EntityModel | null;
|
|
17
|
+
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-detail/lib/normalize.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CA8BhE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isExternalImageUrl } from "../../image/lib/url.js";
|
|
2
|
+
function normalizeEntity(raw) {
|
|
3
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
|
|
4
|
+
const o = raw;
|
|
5
|
+
const id = typeof o.id === "string" ? o.id.trim() : "";
|
|
6
|
+
const title = typeof o.title === "string" ? o.title.trim() : "";
|
|
7
|
+
if (!id || !title) return null;
|
|
8
|
+
const fields = [];
|
|
9
|
+
if (Array.isArray(o.fields)) {
|
|
10
|
+
for (const item of o.fields) {
|
|
11
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) continue;
|
|
12
|
+
const f = item;
|
|
13
|
+
const label = typeof f.label === "string" ? f.label : "";
|
|
14
|
+
const value = f.value == null ? "" : String(f.value);
|
|
15
|
+
if (label) fields.push({ label, value });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const links = [];
|
|
19
|
+
if (Array.isArray(o.links)) {
|
|
20
|
+
for (const item of o.links) {
|
|
21
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) continue;
|
|
22
|
+
const l = item;
|
|
23
|
+
const label = typeof l.label === "string" ? l.label.trim() : "";
|
|
24
|
+
const href = typeof l.href === "string" ? l.href.trim() : "";
|
|
25
|
+
if (label && href && isExternalImageUrl(href)) links.push({ label, href });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const actions = Array.isArray(o.actions) ? o.actions.filter((a) => typeof a === "string" && !!a.trim()) : [];
|
|
29
|
+
return { id, title, fields, links, actions };
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
normalizeEntity
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=normalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.js","sources":["../../../../src/components/entity-detail/lib/normalize.ts"],"sourcesContent":["import { isExternalImageUrl } from '../../image/lib/url.js';\n\nexport type EntityField = { label: string; value: string };\nexport type EntityLink = { label: string; href: string };\n\nexport type EntityModel = {\n id: string;\n title: string;\n fields: EntityField[];\n links: EntityLink[];\n actions: string[];\n};\n\nexport function normalizeEntity(raw: unknown): EntityModel | null {\n if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null;\n const o = raw as Record<string, unknown>;\n const id = typeof o.id === 'string' ? o.id.trim() : '';\n const title = typeof o.title === 'string' ? o.title.trim() : '';\n if (!id || !title) return null;\n const fields: EntityField[] = [];\n if (Array.isArray(o.fields)) {\n for (const item of o.fields) {\n if (!item || typeof item !== 'object' || Array.isArray(item)) continue;\n const f = item as Record<string, unknown>;\n const label = typeof f.label === 'string' ? f.label : '';\n const value = f.value == null ? '' : String(f.value);\n if (label) fields.push({ label, value });\n }\n }\n const links: EntityLink[] = [];\n if (Array.isArray(o.links)) {\n for (const item of o.links) {\n if (!item || typeof item !== 'object' || Array.isArray(item)) continue;\n const l = item as Record<string, unknown>;\n const label = typeof l.label === 'string' ? l.label.trim() : '';\n const href = typeof l.href === 'string' ? l.href.trim() : '';\n if (label && href && isExternalImageUrl(href)) links.push({ label, href });\n }\n }\n const actions = Array.isArray(o.actions)\n ? o.actions.filter((a): a is string => typeof a === 'string' && !!a.trim())\n : [];\n return { id, title, fields, links, actions };\n}\n"],"names":[],"mappings":";AAaO,SAAS,gBAAgB,KAAkC;AAChE,MAAI,CAAC,OAAO,OAAO,QAAQ,YAAY,MAAM,QAAQ,GAAG,EAAG,QAAO;AAClE,QAAM,IAAI;AACV,QAAM,KAAK,OAAO,EAAE,OAAO,WAAW,EAAE,GAAG,SAAS;AACpD,QAAM,QAAQ,OAAO,EAAE,UAAU,WAAW,EAAE,MAAM,SAAS;AAC7D,MAAI,CAAC,MAAM,CAAC,MAAO,QAAO;AAC1B,QAAM,SAAwB,CAAA;AAC9B,MAAI,MAAM,QAAQ,EAAE,MAAM,GAAG;AAC3B,eAAW,QAAQ,EAAE,QAAQ;AAC3B,UAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,MAAM,QAAQ,IAAI,EAAG;AAC9D,YAAM,IAAI;AACV,YAAM,QAAQ,OAAO,EAAE,UAAU,WAAW,EAAE,QAAQ;AACtD,YAAM,QAAQ,EAAE,SAAS,OAAO,KAAK,OAAO,EAAE,KAAK;AACnD,UAAI,MAAO,QAAO,KAAK,EAAE,OAAO,OAAO;AAAA,IACzC;AAAA,EACF;AACA,QAAM,QAAsB,CAAA;AAC5B,MAAI,MAAM,QAAQ,EAAE,KAAK,GAAG;AAC1B,eAAW,QAAQ,EAAE,OAAO;AAC1B,UAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,MAAM,QAAQ,IAAI,EAAG;AAC9D,YAAM,IAAI;AACV,YAAM,QAAQ,OAAO,EAAE,UAAU,WAAW,EAAE,MAAM,SAAS;AAC7D,YAAM,OAAO,OAAO,EAAE,SAAS,WAAW,EAAE,KAAK,SAAS;AAC1D,UAAI,SAAS,QAAQ,mBAAmB,IAAI,SAAS,KAAK,EAAE,OAAO,MAAM;AAAA,IAC3E;AAAA,EACF;AACA,QAAM,UAAU,MAAM,QAAQ,EAAE,OAAO,IACnC,EAAE,QAAQ,OAAO,CAAC,MAAmB,OAAO,MAAM,YAAY,CAAC,CAAC,EAAE,KAAA,CAAM,IACxE,CAAA;AACJ,SAAO,EAAE,IAAI,OAAO,QAAQ,OAAO,QAAA;AACrC;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"id": "entity-detail",
|
|
3
|
+
"tag": "ui9000-entity-detail",
|
|
4
|
+
"title": "Entity Detail",
|
|
5
|
+
"description": "One entity: title, fields, http(s) links, declared actions.",
|
|
6
|
+
"chartTypeKeys": [],
|
|
7
|
+
"source": "ui9000-widgets Stage 2 close-out",
|
|
8
|
+
"stack": "lit",
|
|
9
|
+
"lazyImport": "@ui9000/widgets/lazy/entity-detail",
|
|
10
|
+
"entry": "@ui9000/widgets/entity-detail",
|
|
11
|
+
"usageConditions": {
|
|
12
|
+
"host": "mcp-chat",
|
|
13
|
+
"notFor": "fusedash-editor",
|
|
14
|
+
"mapsExcluded": true
|
|
15
|
+
},
|
|
16
|
+
"allowedActions": [
|
|
17
|
+
"select",
|
|
18
|
+
"resize"
|
|
19
|
+
],
|
|
20
|
+
"tier": "engine",
|
|
21
|
+
"intents": [
|
|
22
|
+
"evidence"
|
|
23
|
+
],
|
|
24
|
+
"dataRoles": [
|
|
25
|
+
{
|
|
26
|
+
"id": "entity",
|
|
27
|
+
"required": true,
|
|
28
|
+
"description": "Entity id + title + fields."
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"eligibility": [
|
|
32
|
+
{
|
|
33
|
+
"when": "profile.hasEntityId",
|
|
34
|
+
"reason": "Entity detail inspects a single identified record."
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"disqualify": [
|
|
38
|
+
{
|
|
39
|
+
"when": "!profile.hasEntityId",
|
|
40
|
+
"reason": "Without an entity id use table for the set."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"accessibility": {
|
|
44
|
+
"nameFrom": "title",
|
|
45
|
+
"keyboard": [
|
|
46
|
+
"Tab through fields and actions"
|
|
47
|
+
],
|
|
48
|
+
"shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element."
|
|
49
|
+
},
|
|
50
|
+
"evalCases": [
|
|
51
|
+
{
|
|
52
|
+
"id": "entity-picks-id",
|
|
53
|
+
"intent": "evidence",
|
|
54
|
+
"profile": {
|
|
55
|
+
"hasEntityId": true
|
|
56
|
+
},
|
|
57
|
+
"expect": "eligible",
|
|
58
|
+
"reasonIncludes": "identified"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "entity-rejects-set",
|
|
62
|
+
"intent": "evidence",
|
|
63
|
+
"profile": {
|
|
64
|
+
"hasEntityId": false,
|
|
65
|
+
"hasTabularRows": true
|
|
66
|
+
},
|
|
67
|
+
"expect": "disqualified",
|
|
68
|
+
"reasonIncludes": "table"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"propsSchema": {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"data": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": [
|
|
78
|
+
"id",
|
|
79
|
+
"title"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"id": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"title": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"fields": {
|
|
89
|
+
"type": "array"
|
|
90
|
+
},
|
|
91
|
+
"links": {
|
|
92
|
+
"type": "array"
|
|
93
|
+
},
|
|
94
|
+
"actions": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"data"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
;
|
|
109
|
+
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const id = "entity-detail";
|
|
2
|
+
const tag = "ui9000-entity-detail";
|
|
3
|
+
const title = "Entity Detail";
|
|
4
|
+
const description = "One entity: title, fields, http(s) links, declared actions.";
|
|
5
|
+
const chartTypeKeys = [];
|
|
6
|
+
const source = "ui9000-widgets Stage 2 close-out";
|
|
7
|
+
const stack = "lit";
|
|
8
|
+
const lazyImport = "@ui9000/widgets/lazy/entity-detail";
|
|
9
|
+
const entry = "@ui9000/widgets/entity-detail";
|
|
10
|
+
const usageConditions = { "host": "mcp-chat", "notFor": "fusedash-editor", "mapsExcluded": true };
|
|
11
|
+
const allowedActions = ["select", "resize"];
|
|
12
|
+
const tier = "engine";
|
|
13
|
+
const intents = ["evidence"];
|
|
14
|
+
const dataRoles = [{ "id": "entity", "required": true, "description": "Entity id + title + fields." }];
|
|
15
|
+
const eligibility = [{ "when": "profile.hasEntityId", "reason": "Entity detail inspects a single identified record." }];
|
|
16
|
+
const disqualify = [{ "when": "!profile.hasEntityId", "reason": "Without an entity id use table for the set." }];
|
|
17
|
+
const accessibility = { "nameFrom": "title", "keyboard": ["Tab through fields and actions"], "shadowBoundary": "Do not use aria-labelledby across the host; set aria-label on the host element." };
|
|
18
|
+
const evalCases = [{ "id": "entity-picks-id", "intent": "evidence", "profile": { "hasEntityId": true }, "expect": "eligible", "reasonIncludes": "identified" }, { "id": "entity-rejects-set", "intent": "evidence", "profile": { "hasEntityId": false, "hasTabularRows": true }, "expect": "disqualified", "reasonIncludes": "table" }];
|
|
19
|
+
const propsSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "data": { "type": "object", "required": ["id", "title"], "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "fields": { "type": "array" }, "links": { "type": "array" }, "actions": { "type": "array", "items": { "type": "string" } } } } }, "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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
export declare class Ui9000EventTimeline extends LitElement {
|
|
3
|
+
static styles: import('lit').CSSResult;
|
|
4
|
+
dataJson: string;
|
|
5
|
+
private _events;
|
|
6
|
+
private refresh;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
willUpdate(changed: PropertyValues): void;
|
|
9
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
export declare function registerEventTimeline(): void;
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'ui9000-event-timeline': Ui9000EventTimeline;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ui9000-event-timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui9000-event-timeline.d.ts","sourceRoot":"","sources":["../../../../src/components/event-timeline/element/ui9000-event-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ5D,qBACa,mBAAoB,SAAQ,UAAU;IACjD,OAAgB,MAAM,0BAAiB;IAGvC,QAAQ,SAAQ;IAGhB,OAAO,CAAC,OAAO,CAAuB;IAEtC,OAAO,CAAC,OAAO;IAIN,iBAAiB,IAAI,IAAI;IAKzB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAIzC,MAAM;CA2BhB;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,mBAAmB,CAAC;KAC9C;CACF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { LitElement, html } from "lit";
|
|
2
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
3
|
+
import { dispatchUi9000Select } from "../../../element/dispatch-ui9000.js";
|
|
4
|
+
import { surfaceStyles } from "../../../element/surface-styles.js";
|
|
5
|
+
import { parseJsonAttr } from "../../../utils/chart-helpers.js";
|
|
6
|
+
import { normalizeTimeline } from "../lib/normalize.js";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
let Ui9000EventTimeline = class extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.dataJson = "{}";
|
|
21
|
+
this._events = [];
|
|
22
|
+
}
|
|
23
|
+
refresh() {
|
|
24
|
+
this._events = normalizeTimeline(parseJsonAttr(this.dataJson, null));
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
this.refresh();
|
|
29
|
+
}
|
|
30
|
+
willUpdate(changed) {
|
|
31
|
+
if (changed.has("dataJson")) this.refresh();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
if (!this._events.length) {
|
|
35
|
+
return html`<p class="blocked" role="status">No events</p>`;
|
|
36
|
+
}
|
|
37
|
+
return html`
|
|
38
|
+
<ol class="root list" aria-label="Event timeline">
|
|
39
|
+
${this._events.map(
|
|
40
|
+
(event) => html`
|
|
41
|
+
<li>
|
|
42
|
+
<button
|
|
43
|
+
class="btn"
|
|
44
|
+
type="button"
|
|
45
|
+
@click=${() => dispatchUi9000Select(this, { id: event.id })}
|
|
46
|
+
>
|
|
47
|
+
<time datetime=${event.ts}>${event.ts}</time>
|
|
48
|
+
<strong> ${event.actor}</strong>
|
|
49
|
+
<span> ${event.action}</span>
|
|
50
|
+
${event.severity ? html`<span class="sev">${event.severity}</span>` : ""}
|
|
51
|
+
</button>
|
|
52
|
+
</li>
|
|
53
|
+
`
|
|
54
|
+
)}
|
|
55
|
+
</ol>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
Ui9000EventTimeline.styles = surfaceStyles;
|
|
60
|
+
__decorateClass([
|
|
61
|
+
property({ type: String, attribute: "data" })
|
|
62
|
+
], Ui9000EventTimeline.prototype, "dataJson", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
state()
|
|
65
|
+
], Ui9000EventTimeline.prototype, "_events", 2);
|
|
66
|
+
Ui9000EventTimeline = __decorateClass([
|
|
67
|
+
customElement("ui9000-event-timeline")
|
|
68
|
+
], Ui9000EventTimeline);
|
|
69
|
+
function registerEventTimeline() {
|
|
70
|
+
if (!customElements.get("ui9000-event-timeline")) {
|
|
71
|
+
customElements.define("ui9000-event-timeline", Ui9000EventTimeline);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
Ui9000EventTimeline,
|
|
76
|
+
registerEventTimeline
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=ui9000-event-timeline.js.map
|