@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,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,13 +12,13 @@ const barChartStyles = css`
|
|
|
12
12
|
}
|
|
13
13
|
.chart-body {
|
|
14
14
|
flex: 1 1 auto;
|
|
15
|
-
min-height: 240px;
|
|
15
|
+
min-height: var(--ui9000-plot-min-height, 240px);
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
19
|
.chart-scroll {
|
|
20
20
|
flex: 1 1 auto;
|
|
21
|
-
min-height: 200px;
|
|
21
|
+
min-height: var(--ui9000-plot-min-height, 200px);
|
|
22
22
|
overflow-y: auto;
|
|
23
23
|
overflow-x: hidden;
|
|
24
24
|
position: relative;
|
|
@@ -31,7 +31,7 @@ const barChartStyles = css`
|
|
|
31
31
|
}
|
|
32
32
|
.chart-root {
|
|
33
33
|
width: 100%;
|
|
34
|
-
min-height: 240px;
|
|
34
|
+
min-height: var(--ui9000-plot-min-height, 240px);
|
|
35
35
|
}
|
|
36
36
|
.tooltip {
|
|
37
37
|
position: absolute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/bar-chart/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const barChartStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n color: var(--ui9000-color-text, #111827);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n box-sizing: border-box;\n }\n .chart-body {\n flex: 1 1 auto;\n min-height: 240px;\n display: flex;\n flex-direction: column;\n }\n .chart-scroll {\n flex: 1 1 auto;\n min-height: 200px;\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n }\n .chart-x-axis {\n flex-shrink: 0;\n width: 100%;\n min-height: 21px;\n overflow: hidden;\n }\n .chart-root {\n width: 100%;\n min-height: 240px;\n }\n .tooltip {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n padding: 6px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.35;\n background: var(--ui9000-color-text, #111827);\n color: #fff;\n box-shadow: 0 4px 12px rgb(0 0 0 / 18%);\n transform: translate(-50%, calc(-100% - 12px));\n white-space: nowrap;\n }\n .tooltip .category {\n font-weight: 600;\n margin-bottom: 2px;\n }\n .tooltip .row {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .tooltip .swatch {\n width: 8px;\n height: 8px;\n border-radius: 2px;\n flex: none;\n }\n .tooltip .value {\n margin-left: auto;\n font-variant-numeric: tabular-nums;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-size: 0.875rem;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/components/bar-chart/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const barChartStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n color: var(--ui9000-color-text, #111827);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n box-sizing: border-box;\n }\n .chart-body {\n flex: 1 1 auto;\n min-height: var(--ui9000-plot-min-height, 240px);\n display: flex;\n flex-direction: column;\n }\n .chart-scroll {\n flex: 1 1 auto;\n min-height: var(--ui9000-plot-min-height, 200px);\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n }\n .chart-x-axis {\n flex-shrink: 0;\n width: 100%;\n min-height: 21px;\n overflow: hidden;\n }\n .chart-root {\n width: 100%;\n min-height: var(--ui9000-plot-min-height, 240px);\n }\n .tooltip {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n padding: 6px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.35;\n background: var(--ui9000-color-text, #111827);\n color: #fff;\n box-shadow: 0 4px 12px rgb(0 0 0 / 18%);\n transform: translate(-50%, calc(-100% - 12px));\n white-space: nowrap;\n }\n .tooltip .category {\n font-weight: 600;\n margin-bottom: 2px;\n }\n .tooltip .row {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .tooltip .swatch {\n width: 8px;\n height: 8px;\n border-radius: 2px;\n flex: none;\n }\n .tooltip .value {\n margin-left: auto;\n font-variant-numeric: tabular-nums;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-size: 0.875rem;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,13 +12,13 @@ const boxPlotStyles = css`
|
|
|
12
12
|
}
|
|
13
13
|
.chart-body {
|
|
14
14
|
flex: 1 1 auto;
|
|
15
|
-
min-height: 240px;
|
|
15
|
+
min-height: var(--ui9000-plot-min-height, 240px);
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
19
|
.chart-scroll {
|
|
20
20
|
flex: 1 1 auto;
|
|
21
|
-
min-height: 200px;
|
|
21
|
+
min-height: var(--ui9000-plot-min-height, 200px);
|
|
22
22
|
overflow-y: auto;
|
|
23
23
|
overflow-x: hidden;
|
|
24
24
|
position: relative;
|
|
@@ -31,7 +31,7 @@ const boxPlotStyles = css`
|
|
|
31
31
|
}
|
|
32
32
|
.chart-root {
|
|
33
33
|
width: 100%;
|
|
34
|
-
min-height: 240px;
|
|
34
|
+
min-height: var(--ui9000-plot-min-height, 240px);
|
|
35
35
|
}
|
|
36
36
|
.chart-root svg .bin-quartile {
|
|
37
37
|
filter: drop-shadow(0 2px 2px rgb(3 4 4 / 6%))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/box-plot-chart/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const boxPlotStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n color: var(--ui9000-color-text, #111827);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n box-sizing: border-box;\n }\n .chart-body {\n flex: 1 1 auto;\n min-height: 240px;\n display: flex;\n flex-direction: column;\n }\n .chart-scroll {\n flex: 1 1 auto;\n min-height: 200px;\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n }\n .chart-x-axis {\n flex-shrink: 0;\n width: 100%;\n min-height: 21px;\n overflow: hidden;\n }\n .chart-root {\n width: 100%;\n min-height: 240px;\n }\n .chart-root svg .bin-quartile {\n filter: drop-shadow(0 2px 2px rgb(3 4 4 / 6%))\n drop-shadow(0 2px 4px rgb(3 4 4 / 6%));\n }\n .tooltip {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n padding: 6px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.35;\n background: var(--ui9000-color-text, #111827);\n color: #fff;\n box-shadow: 0 4px 12px rgb(0 0 0 / 18%);\n transform: translate(-50%, calc(-100% - 10px));\n white-space: nowrap;\n }\n .tooltip .name {\n font-weight: 600;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-size: 0.875rem;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/components/box-plot-chart/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const boxPlotStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n color: var(--ui9000-color-text, #111827);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n box-sizing: border-box;\n }\n .chart-body {\n flex: 1 1 auto;\n min-height: var(--ui9000-plot-min-height, 240px);\n display: flex;\n flex-direction: column;\n }\n .chart-scroll {\n flex: 1 1 auto;\n min-height: var(--ui9000-plot-min-height, 200px);\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n }\n .chart-x-axis {\n flex-shrink: 0;\n width: 100%;\n min-height: 21px;\n overflow: hidden;\n }\n .chart-root {\n width: 100%;\n min-height: var(--ui9000-plot-min-height, 240px);\n }\n .chart-root svg .bin-quartile {\n filter: drop-shadow(0 2px 2px rgb(3 4 4 / 6%))\n drop-shadow(0 2px 4px rgb(3 4 4 / 6%));\n }\n .tooltip {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n padding: 6px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.35;\n background: var(--ui9000-color-text, #111827);\n color: #fff;\n box-shadow: 0 4px 12px rgb(0 0 0 / 18%);\n transform: translate(-50%, calc(-100% - 10px));\n white-space: nowrap;\n }\n .tooltip .name {\n font-weight: 600;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-size: 0.875rem;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -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 @@
|
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-renderer/element/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-renderer/element/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,yBAoC/B,CAAC"}
|
|
@@ -5,9 +5,12 @@ const chartRendererStyles = css`
|
|
|
5
5
|
position: relative;
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 100%;
|
|
8
|
-
min-height: 220px;
|
|
8
|
+
min-height: var(--ui9000-host-min-height, 220px);
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
11
|
+
:host([embedded]) {
|
|
12
|
+
min-height: 0;
|
|
13
|
+
}
|
|
11
14
|
.host {
|
|
12
15
|
display: block;
|
|
13
16
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/chart-renderer/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const chartRendererStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n box-sizing: border-box;\n }\n .host {\n display: block;\n width: 100%;\n height: 100%;\n min-height: inherit;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n padding: 1rem;\n text-align: center;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n font-size: 0.875rem;\n line-height: 1.4;\n }\n .empty strong {\n display: block;\n margin-bottom: 0.25rem;\n color: var(--ui9000-color-text, #111827);\n font-weight: 600;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/components/chart-renderer/element/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const chartRendererStyles = css`\n :host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: var(--ui9000-host-min-height, 220px);\n box-sizing: border-box;\n }\n :host([embedded]) {\n min-height: 0;\n }\n .host {\n display: block;\n width: 100%;\n height: 100%;\n min-height: inherit;\n }\n .empty {\n display: grid;\n place-items: center;\n height: 100%;\n min-height: inherit;\n padding: 1rem;\n text-align: center;\n color: var(--ui9000-color-text-muted, #6b7280);\n font-family: var(--ui9000-font-family, system-ui, sans-serif);\n font-size: 0.875rem;\n line-height: 1.4;\n }\n .empty strong {\n display: block;\n margin-bottom: 0.25rem;\n color: var(--ui9000-color-text, #111827);\n font-weight: 600;\n }\n`;\n"],"names":[],"mappings":";AAEO,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui9000-chart-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-renderer/element/ui9000-chart-renderer.ts"],"names":[],"mappings":"AAsBA,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ui9000-chart-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/chart-renderer/element/ui9000-chart-renderer.ts"],"names":[],"mappings":"AAsBA,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAexC;IAED,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,WAAW,CAAK;IAExB,iBAAiB,IAAI,IAAI;IAqBzB,wBAAwB,IAAI,IAAI;IAIhC,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,KAAK,aAAa,GAExB;IAED,OAAO,KAAK,KAAK,GAEhB;IAED,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,SAAS;YAgBH,UAAU;CAgGzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,mBAAmB,CAAC;KAC9C;CACF;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C"}
|
|
@@ -30,6 +30,7 @@ class Ui9000ChartRenderer extends HTMLElement {
|
|
|
30
30
|
"show-legend",
|
|
31
31
|
"show-tooltip",
|
|
32
32
|
"show-header",
|
|
33
|
+
"embedded",
|
|
33
34
|
"chart-title",
|
|
34
35
|
"mapbox-token",
|
|
35
36
|
"geojson-base-url",
|
|
@@ -131,6 +132,9 @@ class Ui9000ChartRenderer extends HTMLElement {
|
|
|
131
132
|
el.setAttribute("scale", this.scale);
|
|
132
133
|
if (title) el.setAttribute("chart-title", title);
|
|
133
134
|
else el.removeAttribute("chart-title");
|
|
135
|
+
if (this.getAttribute("show-header") === "false")
|
|
136
|
+
el.setAttribute("show-header", "false");
|
|
137
|
+
else el.removeAttribute("show-header");
|
|
134
138
|
const showGrid = this.boolAttr("show-grid");
|
|
135
139
|
const showLegend = this.boolAttr("show-legend");
|
|
136
140
|
const showTooltip = this.boolAttr("show-tooltip");
|
|
@@ -157,6 +161,14 @@ class Ui9000ChartRenderer extends HTMLElement {
|
|
|
157
161
|
el.style.display = "block";
|
|
158
162
|
el.style.width = "100%";
|
|
159
163
|
el.style.height = "100%";
|
|
164
|
+
if (this.hasAttribute("embedded")) {
|
|
165
|
+
el.setAttribute("embedded", "");
|
|
166
|
+
el.style.minHeight = "0";
|
|
167
|
+
el.style.setProperty("--ui9000-host-min-height", "0");
|
|
168
|
+
el.style.setProperty("--ui9000-plot-min-height", "0");
|
|
169
|
+
} else {
|
|
170
|
+
el.removeAttribute("embedded");
|
|
171
|
+
}
|
|
160
172
|
if (!reuse) {
|
|
161
173
|
this._host.replaceChildren();
|
|
162
174
|
this._host.appendChild(el);
|