@infotrust/ui 0.0.0-stage → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/LICENSE +24 -0
  2. package/NOTICE.md +37 -0
  3. package/README.md +53 -2
  4. package/dist/assistant-session-DP4_70Xk.js +1381 -0
  5. package/dist/command-Bjncx7YR.js +1279 -0
  6. package/dist/components/actions/ItActionMenu.vue.d.ts +24 -0
  7. package/dist/components/actions/ItDecisionToggle.vue.d.ts +22 -0
  8. package/dist/components/actions/ItIconButton.vue.d.ts +24 -0
  9. package/dist/components/actions/ItLinkButton.vue.d.ts +17 -0
  10. package/dist/components/actions/action-menu.d.ts +19 -0
  11. package/dist/components/charts/ItBarChart.vue.d.ts +121 -0
  12. package/dist/components/charts/ItCalendarChart.vue.d.ts +80 -0
  13. package/dist/components/charts/ItChartLegend.vue.d.ts +47 -0
  14. package/dist/components/charts/ItChartTable.vue.d.ts +16 -0
  15. package/dist/components/charts/ItChartTooltip.vue.d.ts +52 -0
  16. package/dist/components/charts/ItDonutChart.vue.d.ts +79 -0
  17. package/dist/components/charts/ItProportionBar.vue.d.ts +42 -0
  18. package/dist/components/charts/ItSparkline.vue.d.ts +42 -0
  19. package/dist/components/charts/ItTrendChart.vue.d.ts +80 -0
  20. package/dist/components/charts/chart.d.ts +84 -0
  21. package/dist/components/charts/selection.d.ts +14 -0
  22. package/dist/components/charts/skeleton.d.ts +16 -0
  23. package/dist/components/command/ItAssistantPanel.vue.d.ts +56 -0
  24. package/dist/components/command/ItAssistantThread.vue.d.ts +73 -0
  25. package/dist/components/command/ItCommandPalette.vue.d.ts +102 -0
  26. package/dist/components/command/ItMarkdown.vue.d.ts +12 -0
  27. package/dist/components/command/assistant-session.d.ts +26 -0
  28. package/dist/components/command/command.d.ts +127 -0
  29. package/dist/components/command/markdown.d.ts +55 -0
  30. package/dist/components/content/ItDocsArticle.vue.d.ts +18 -0
  31. package/dist/components/content/ItDocsLayout.vue.d.ts +29 -0
  32. package/dist/components/content/ItDocsPager.vue.d.ts +12 -0
  33. package/dist/components/content/ItProse.vue.d.ts +18 -0
  34. package/dist/components/content/docs.d.ts +23 -0
  35. package/dist/components/dag/ItDagCanvas.vue.d.ts +143 -0
  36. package/dist/components/dag/ItDagControls.vue.d.ts +2 -0
  37. package/dist/components/dag/ItDagEdge.vue.d.ts +21 -0
  38. package/dist/components/dag/ItDagLibrary.vue.d.ts +19 -0
  39. package/dist/components/dag/ItDagNode.vue.d.ts +20 -0
  40. package/dist/components/dag/dag.d.ts +182 -0
  41. package/dist/components/dag/history.d.ts +51 -0
  42. package/dist/components/dag/layout.d.ts +54 -0
  43. package/dist/components/dag/route.d.ts +24 -0
  44. package/dist/components/data/DataError.vue.d.ts +12 -0
  45. package/dist/components/data/ItChangeList.vue.d.ts +48 -0
  46. package/dist/components/data/ItCodeBlock.vue.d.ts +23 -0
  47. package/dist/components/data/ItDataTable.vue.d.ts +135 -0
  48. package/dist/components/data/ItDataToolbar.vue.d.ts +57 -0
  49. package/dist/components/data/ItDescriptionList.vue.d.ts +30 -0
  50. package/dist/components/data/ItEmptyState.vue.d.ts +22 -0
  51. package/dist/components/data/ItKpiCard.vue.d.ts +89 -0
  52. package/dist/components/data/ItKpiDetail.vue.d.ts +40 -0
  53. package/dist/components/data/ItKpiGrid.vue.d.ts +19 -0
  54. package/dist/components/data/ItObjectName.vue.d.ts +64 -0
  55. package/dist/components/data/ItPaginator.vue.d.ts +46 -0
  56. package/dist/components/data/ItResourceList.vue.d.ts +39 -0
  57. package/dist/components/data/ItResourceListItem.vue.d.ts +40 -0
  58. package/dist/components/data/ItSkeleton.vue.d.ts +14 -0
  59. package/dist/components/data/ItTablePaginator.vue.d.ts +34 -0
  60. package/dist/components/data/ItTime.vue.d.ts +13 -0
  61. package/dist/components/data/ItTreeTable.vue.d.ts +109 -0
  62. package/dist/components/data/TableChevron.vue.d.ts +8 -0
  63. package/dist/components/data/TableExpansion.vue.d.ts +22 -0
  64. package/dist/components/data/column-sizing.d.ts +31 -0
  65. package/dist/components/data/data-table.d.ts +15 -0
  66. package/dist/components/data/highlight-worker.d.ts +1 -0
  67. package/dist/components/data/highlight.d.ts +3 -0
  68. package/dist/components/data/kpi-placement.d.ts +40 -0
  69. package/dist/components/data/kpi.d.ts +16 -0
  70. package/dist/components/data/sticky-header.d.ts +9 -0
  71. package/dist/components/data/table-skeleton.d.ts +11 -0
  72. package/dist/components/data/table-source.d.ts +77 -0
  73. package/dist/components/data/tree-table-public.d.ts +17 -0
  74. package/dist/components/data/tree-table.d.ts +30 -0
  75. package/dist/components/feedback/ItCallout.vue.d.ts +25 -0
  76. package/dist/components/feedback/ItConfirmHost.vue.d.ts +2 -0
  77. package/dist/components/feedback/ItOverlayHost.vue.d.ts +2 -0
  78. package/dist/components/feedback/ItProgressBar.vue.d.ts +19 -0
  79. package/dist/components/feedback/ItToastHost.vue.d.ts +2 -0
  80. package/dist/components/forms/FieldClearButton.vue.d.ts +11 -0
  81. package/dist/components/forms/ItAutoComplete.vue.d.ts +69 -0
  82. package/dist/components/forms/ItCheckboxGroup.vue.d.ts +27 -0
  83. package/dist/components/forms/ItChipInput.vue.d.ts +32 -0
  84. package/dist/components/forms/ItCodeEditor.vue.d.ts +64 -0
  85. package/dist/components/forms/ItDatePicker.vue.d.ts +35 -0
  86. package/dist/components/forms/ItFileDrop.vue.d.ts +47 -0
  87. package/dist/components/forms/ItFilterChip.vue.d.ts +13 -0
  88. package/dist/components/forms/ItFilterMenu.vue.d.ts +37 -0
  89. package/dist/components/forms/ItFilterPopover.vue.d.ts +44 -0
  90. package/dist/components/forms/ItFormActions.vue.d.ts +14 -0
  91. package/dist/components/forms/ItFormField.vue.d.ts +44 -0
  92. package/dist/components/forms/ItFormRows.vue.d.ts +50 -0
  93. package/dist/components/forms/ItFormSection.vue.d.ts +28 -0
  94. package/dist/components/forms/ItLabelCell.vue.d.ts +42 -0
  95. package/dist/components/forms/ItLabelPicker.vue.d.ts +34 -0
  96. package/dist/components/forms/ItMultiSelect.vue.d.ts +53 -0
  97. package/dist/components/forms/ItOptionCardGroup.vue.d.ts +35 -0
  98. package/dist/components/forms/ItRadioGroup.vue.d.ts +29 -0
  99. package/dist/components/forms/ItSearchInput.vue.d.ts +25 -0
  100. package/dist/components/forms/ItSegmentedControl.vue.d.ts +25 -0
  101. package/dist/components/forms/ItSelect.vue.d.ts +50 -0
  102. package/dist/components/forms/ItSwitch.vue.d.ts +31 -0
  103. package/dist/components/forms/ItTabs.vue.d.ts +27 -0
  104. package/dist/components/forms/OptionSourceSlot.vue.d.ts +13 -0
  105. package/dist/components/forms/choice.d.ts +24 -0
  106. package/dist/components/forms/code-editor.d.ts +17 -0
  107. package/dist/components/forms/field-context.d.ts +39 -0
  108. package/dist/components/forms/file-drop.d.ts +19 -0
  109. package/dist/components/forms/form-errors.d.ts +7 -0
  110. package/dist/components/forms/form-rows.d.ts +8 -0
  111. package/dist/components/forms/option-source.d.ts +39 -0
  112. package/dist/components/forms/virtual-options.d.ts +12 -0
  113. package/dist/components/layout/ItBreadcrumb.vue.d.ts +12 -0
  114. package/dist/components/layout/ItDetailSection.vue.d.ts +21 -0
  115. package/dist/components/layout/ItPage.vue.d.ts +44 -0
  116. package/dist/components/layout/ItPanel.vue.d.ts +47 -0
  117. package/dist/components/layout/ItSectionNav.vue.d.ts +43 -0
  118. package/dist/components/layout/ItWizard.vue.d.ts +57 -0
  119. package/dist/components/layout/ItWizardSteps.vue.d.ts +15 -0
  120. package/dist/components/layout/SectionNavLinks.vue.d.ts +15 -0
  121. package/dist/components/layout/panel.d.ts +18 -0
  122. package/dist/components/layout/section-nav.d.ts +17 -0
  123. package/dist/components/layout/wizard.d.ts +13 -0
  124. package/dist/components/logic/ItFieldPicker.vue.d.ts +40 -0
  125. package/dist/components/logic/ItLogicBuilder.vue.d.ts +58 -0
  126. package/dist/components/logic/ItLogicCondition.vue.d.ts +9 -0
  127. package/dist/components/logic/ItLogicGroup.vue.d.ts +9 -0
  128. package/dist/components/logic/ItOperatorSelect.vue.d.ts +25 -0
  129. package/dist/components/logic/ItValueInput.vue.d.ts +29 -0
  130. package/dist/components/logic/logic.d.ts +263 -0
  131. package/dist/components/logic/region.d.ts +44 -0
  132. package/dist/components/overlays/ItDrawer.vue.d.ts +48 -0
  133. package/dist/components/overlays/ItModal.vue.d.ts +53 -0
  134. package/dist/components/overlays/escape-stack.d.ts +7 -0
  135. package/dist/components/overlays/modal.d.ts +23 -0
  136. package/dist/components/shell/ItAppShell.vue.d.ts +68 -0
  137. package/dist/components/shell/ItCommandTrigger.vue.d.ts +17 -0
  138. package/dist/components/shell/ItOrgSwitcher.vue.d.ts +26 -0
  139. package/dist/components/shell/ItShellMenuItem.vue.d.ts +18 -0
  140. package/dist/components/shell/ItShellNavBranch.vue.d.ts +15 -0
  141. package/dist/components/shell/ItShellNavLink.vue.d.ts +18 -0
  142. package/dist/components/shell/ItShellSidebarButton.vue.d.ts +15 -0
  143. package/dist/components/shell/ItThemeControl.vue.d.ts +13 -0
  144. package/dist/components/shell/org.d.ts +36 -0
  145. package/dist/components/shell/types.d.ts +67 -0
  146. package/dist/components/status/ItBadge.vue.d.ts +12 -0
  147. package/dist/components/status/ItEntityTypeChip.vue.d.ts +14 -0
  148. package/dist/components/status/ItLabelChip.vue.d.ts +21 -0
  149. package/dist/components/status/ItLabelChipList.vue.d.ts +27 -0
  150. package/dist/components/status/ItPlatformChip.vue.d.ts +20 -0
  151. package/dist/components/status/ItPlatformLogo.vue.d.ts +17 -0
  152. package/dist/components/status/ItSeverityBadge.vue.d.ts +9 -0
  153. package/dist/components/status/ItStatus.vue.d.ts +12 -0
  154. package/dist/components.css +1 -0
  155. package/dist/composables/iconMotion.d.ts +12 -0
  156. package/dist/composables/ripple.d.ts +3 -0
  157. package/dist/composables/useItConfirm.d.ts +16 -0
  158. package/dist/composables/useItCopy.d.ts +4 -0
  159. package/dist/composables/useItCursorPager.d.ts +50 -0
  160. package/dist/composables/useItTheme.d.ts +26 -0
  161. package/dist/composables/useItToast.d.ts +24 -0
  162. package/dist/dag.d.ts +5 -0
  163. package/dist/dag.js +1754 -0
  164. package/dist/dev-D7A7MIn_.js +1264 -0
  165. package/dist/directives/truncate.d.ts +29 -0
  166. package/dist/elk-worker.min-O2A22ecl.js +6321 -0
  167. package/dist/format/index.d.ts +53 -0
  168. package/dist/highlight-worker-DIrLC7a2.js +25 -0
  169. package/dist/index.d.ts +147 -0
  170. package/dist/index.js +11989 -0
  171. package/dist/licenses/@vue-flow__core.LICENSE +20 -0
  172. package/dist/licenses/elkjs.LICENSE.md +263 -0
  173. package/dist/licenses/highlight.js.LICENSE +29 -0
  174. package/dist/licenses/vue-sonner.LICENSE +21 -0
  175. package/dist/platform-art-Bt1CnaKE.js +86 -0
  176. package/dist/plugin.d.ts +69 -0
  177. package/dist/registries/entity-type.d.ts +18 -0
  178. package/dist/registries/platform-art.d.ts +2 -0
  179. package/dist/registries/platform-marks.d.ts +12 -0
  180. package/dist/registries/platform.d.ts +22 -0
  181. package/dist/registries/severity.d.ts +23 -0
  182. package/dist/registries/status.d.ts +13 -0
  183. package/dist/styles.css +26 -0
  184. package/dist/text-nGkJYA88.js +470 -0
  185. package/dist/utils/chip-truncation.d.ts +8 -0
  186. package/dist/utils/chunk-recovery.d.ts +24 -0
  187. package/dist/utils/dev.d.ts +2 -0
  188. package/dist/utils/listeners.d.ts +10 -0
  189. package/dist/utils/router.d.ts +9 -0
  190. package/dist/utils/scroll.d.ts +8 -0
  191. package/dist/utils/select.d.ts +21 -0
  192. package/dist/utils/text.d.ts +6 -0
  193. package/package.json +92 -3
@@ -0,0 +1,24 @@
1
+ import { type ItActionMenuEntry } from './action-menu';
2
+ type __VLS_Props = {
3
+ items: readonly ItActionMenuEntry[];
4
+ /**
5
+ * The trigger's name. With `variant="icon"` it is the accessible name and
6
+ * the tooltip, so name the object: "More actions for Amin Shawki". With
7
+ * `variant="button"` it is the visible label: "Edit user".
8
+ */
9
+ label: string;
10
+ /** `icon`: a ghost "⋯" button (table rows, cards). `button`: an outlined labeled button with a caret. */
11
+ variant?: 'icon' | 'button';
12
+ size?: 'sm' | 'md';
13
+ disabled?: boolean;
14
+ };
15
+ declare function toggle(event: Event): Promise<void>;
16
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
17
+ toggle: typeof toggle;
18
+ close: () => void | undefined;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ disabled: boolean;
21
+ size: "sm" | "md";
22
+ variant: "icon" | "button";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,22 @@
1
+ export type ItDecision = 'approve' | 'deny' | 'pending';
2
+ type __VLS_Props = {
3
+ /** The choice now (`v-model:decision`). */
4
+ decision: ItDecision | 'mixed';
5
+ /** What is decided, for the accessible name: the target, or the step with `all`. */
6
+ name: string;
7
+ /** Decides every write of a step: "Approve all" / "All approved". */
8
+ all?: boolean;
9
+ /** `sm` in tables and toolbars (default); `md` beside page or panel actions. */
10
+ size?: 'sm' | 'md';
11
+ disabled?: boolean;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:decision": (decision: ItDecision) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:decision"?: ((decision: ItDecision) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ size: "sm" | "md";
20
+ all: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import type { Component } from 'vue';
2
+ type __VLS_Props = {
3
+ icon: Component;
4
+ label: string;
5
+ /** Tooltip text if it should differ from the accessible label. */
6
+ tooltip?: string | false;
7
+ size?: 'sm' | 'md';
8
+ variant?: 'ghost' | 'secondary';
9
+ tone?: 'default' | 'neutral' | 'danger' | 'accent';
10
+ /** Controlled toggle state. Omit for an ordinary action. */
11
+ pressed?: boolean;
12
+ /** Count or a dot (true). Include its meaning in label. */
13
+ badge?: number | boolean;
14
+ disabled?: boolean;
15
+ loading?: boolean;
16
+ };
17
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ tooltip: string | false;
19
+ size: "sm" | "md";
20
+ variant: "ghost" | "secondary";
21
+ tone: "default" | "neutral" | "danger" | "accent";
22
+ pressed: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { type Component } from 'vue';
2
+ import { type ItRouteLocation } from '../../utils/router';
3
+ type __VLS_Props = {
4
+ label: string;
5
+ to?: ItRouteLocation;
6
+ href?: string;
7
+ variant?: 'primary' | 'secondary' | 'ghost';
8
+ size?: 'sm' | 'md';
9
+ icon?: Component;
10
+ /** Opens in a new tab with an external-link icon. */
11
+ external?: boolean;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ size: "sm" | "md";
15
+ variant: "primary" | "secondary" | "ghost";
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { Component } from 'vue';
2
+ /** One action in ItActionMenu. */
3
+ export interface ItActionMenuItem {
4
+ label: string;
5
+ /** A Lucide icon component. */
6
+ icon?: Component;
7
+ command?: () => void;
8
+ /** Destructive (delete, remove, revoke): red, and placed last, after a separator. */
9
+ danger?: boolean;
10
+ disabled?: boolean;
11
+ /** Why the action is unavailable ("You can't remove yourself"). Shown under the label while disabled. */
12
+ disabledReason?: string;
13
+ }
14
+ /** A divider between groups of actions. */
15
+ export interface ItActionMenuSeparator {
16
+ separator: true;
17
+ }
18
+ export type ItActionMenuEntry = ItActionMenuItem | ItActionMenuSeparator;
19
+ export declare function isItActionMenuSeparator(entry: ItActionMenuEntry): entry is ItActionMenuSeparator;
@@ -0,0 +1,121 @@
1
+ import type { ItBadgeTone } from '../status/ItBadge.vue';
2
+ import { type ItChartSeries, type ItChartTone, type ItValueFormatter } from './chart';
3
+ /** One part of a single-series bar's value, named in its readout (not drawn). */
4
+ export interface ItBarBreakdownItem {
5
+ key: string;
6
+ label: string;
7
+ value: number;
8
+ /** The readout's key color when the part means a state (severity); else the categorical slots in order. */
9
+ tone?: ItChartTone;
10
+ }
11
+ export interface ItBarDatum {
12
+ /** Keep the value readable, but prevent drill-down. */
13
+ disabled?: boolean;
14
+ /** Explanation in the accessible name and readout. */
15
+ disabledReason?: string;
16
+ /** Single-series state only (for example severity); otherwise keep the series color. */
17
+ tone?: ItChartTone;
18
+ key?: string;
19
+ label: string;
20
+ /** Single-series bars. `null` means no data for this bucket (no scan ran), which is not the same as zero. */
21
+ value?: number | null;
22
+ /** Stacked bars: a value per series key. `null` means no data for this bucket. */
23
+ values?: Record<string, number> | null;
24
+ /**
25
+ * Single-series bars: what the value is made of, listed in the readout with
26
+ * each part's share and the total, and in the table. The bar keeps one color:
27
+ * use it when the total is the trend and its parts are the detail.
28
+ */
29
+ breakdown?: ItBarBreakdownItem[];
30
+ /** Longer text for the readout header ("Thu, Oct 9"). Falls back to `label`. */
31
+ caption?: string;
32
+ /** A state beside the readout header, as a badge: how the scan behind this bar ended ("Finished"). Also read in the bar's name. */
33
+ status?: {
34
+ label: string;
35
+ tone?: ItBadgeTone;
36
+ };
37
+ }
38
+ type __VLS_Props = {
39
+ data: ItBarDatum[];
40
+ /** What is plotted: "Findings by platform". Starts the accessible summary and names the table. */
41
+ label: string;
42
+ /** Stack segments, bottom (or left) first. Omit for single-series bars. */
43
+ series?: ItChartSeries[];
44
+ orientation?: 'horizontal' | 'vertical';
45
+ /** `value` sorts largest first. Defaults to `value` for horizontal and `none` for vertical (time keeps its order). */
46
+ sort?: 'value' | 'none';
47
+ /** Single-series fill: chart slot 1, or a status tone when the bars mean a state. */
48
+ tone?: ItChartTone | 'default';
49
+ /** Bars become buttons that emit `select`. */
50
+ selectable?: boolean;
51
+ /**
52
+ * Selectable charts: the keys (`ItBarDatum.key`) of the bars that are
53
+ * on, e.g. the bar the page is filtered by. Given (even empty), every
54
+ * bar is a toggle button (`aria-pressed`) and the bars that are on are
55
+ * marked with the accent fill and edge; the rest stay as they are.
56
+ */
57
+ selected?: readonly string[];
58
+ /** Noun after values: "findings". Also names the value column in the table. */
59
+ unit?: string;
60
+ /** Header of the category column in the table. */
61
+ categoryLabel?: string;
62
+ formatValue?: ItValueFormatter;
63
+ /** Scale maximum. Defaults to the largest total (horizontal) or a round tick above it (vertical). */
64
+ max?: number;
65
+ /** Vertical only: the smallest total height in px, including the date axis. The chart grows to fill a taller panel. */
66
+ height?: number;
67
+ loading?: boolean;
68
+ /** The data did not load: a danger callout in place of the bars (a string says why). Retry with a `@retry` listener; `#error` replaces it. */
69
+ error?: string | boolean;
70
+ emptyTitle?: string;
71
+ emptyDescription?: string;
72
+ /** Readout and table text for a bucket with no data (`value: null`): "No scan". */
73
+ missingLabel?: string;
74
+ /** Replaces the generated accessible summary. */
75
+ summary?: string;
76
+ /** Horizontal only: `above` puts each label on its own line over its bar at every width (a short list in a tall panel); `auto` keeps the label column, stacking only below 560px. */
77
+ labels?: 'auto' | 'above';
78
+ /** `table` shows the data table in place of the bars. */
79
+ view?: 'chart' | 'table';
80
+ };
81
+ declare var __VLS_1: {
82
+ message: string;
83
+ retry: () => void;
84
+ };
85
+ type __VLS_Slots = {} & {
86
+ error?: (props: typeof __VLS_1) => any;
87
+ };
88
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
89
+ select: (datum: ItBarDatum) => any;
90
+ retry: () => any;
91
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
92
+ onSelect?: ((datum: ItBarDatum) => any) | undefined;
93
+ onRetry?: (() => any) | undefined;
94
+ }>, {
95
+ summary: string;
96
+ error: string | boolean;
97
+ height: number;
98
+ view: "chart" | "table";
99
+ tone: ItChartTone | "default";
100
+ loading: boolean;
101
+ sort: "value" | "none";
102
+ unit: string;
103
+ max: number;
104
+ orientation: "horizontal" | "vertical";
105
+ selected: readonly string[];
106
+ labels: "auto" | "above";
107
+ emptyTitle: string;
108
+ emptyDescription: string;
109
+ selectable: boolean;
110
+ series: ItChartSeries[];
111
+ formatValue: ItValueFormatter;
112
+ categoryLabel: string;
113
+ missingLabel: string;
114
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
115
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
116
+ export default _default;
117
+ type __VLS_WithSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };
@@ -0,0 +1,80 @@
1
+ import { type ItChartDate } from './chart';
2
+ export interface ItCalendarEvent {
3
+ id: string;
4
+ /** When it happens or happened. */
5
+ at: ItChartDate;
6
+ label: string;
7
+ /** An ItStatus key: how it ended, or (planned) "scheduled". */
8
+ status?: string;
9
+ /** The registerStatuses domain of `status`. */
10
+ statusDomain?: string;
11
+ /** Planned, not run yet. Default: `at` is later than `now`. */
12
+ scheduled?: boolean;
13
+ /** One muted line in the day's list ("312 properties"). */
14
+ meta?: string;
15
+ /** A platform alias: its logo leads the event in the day's list. */
16
+ platform?: string;
17
+ /** An app route for the event's row in the day's list. */
18
+ to?: string;
19
+ href?: string;
20
+ }
21
+ type __VLS_Props = {
22
+ events: readonly ItCalendarEvent[];
23
+ /** What the events are: "Workflow runs". Names the grid and the day lists. */
24
+ label: string;
25
+ /** Any day of the month shown (`v-model:month`). Default: the month of `now`. */
26
+ month?: Date;
27
+ /** The selected day, "YYYY-MM-DD" (`v-model:selected`); null: none. */
28
+ selected?: string | null;
29
+ /** The present: splits what happened from what is planned. */
30
+ now?: Date;
31
+ /** 0: weeks start on Sunday; 1: on Monday. */
32
+ weekStartsOn?: 0 | 1;
33
+ /** Event lines in a day before "+N more". */
34
+ maxPerDay?: number;
35
+ /** Noun for events: "runs". */
36
+ unit?: string;
37
+ /** Noun for one event. Default: `unit` without its final "s". */
38
+ unitSingular?: string;
39
+ loading?: boolean;
40
+ /** The events did not load: a danger callout in place of the grid (a string says why). Retry with a `@retry` listener; `#error` replaces it. */
41
+ error?: string | boolean;
42
+ /** The month's heading level (3); the open day's is one below. 4 inside a drawer section or a KPI detail. */
43
+ headingLevel?: 2 | 3 | 4 | 5;
44
+ };
45
+ declare var __VLS_27: {
46
+ message: string;
47
+ retry: () => void;
48
+ };
49
+ type __VLS_Slots = {} & {
50
+ error?: (props: typeof __VLS_27) => any;
51
+ };
52
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ "update:selected": (day: string | null) => any;
54
+ retry: () => any;
55
+ "update:month": (month: Date) => any;
56
+ "select-event": (event: ItCalendarEvent) => any;
57
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
58
+ "onUpdate:selected"?: ((day: string | null) => any) | undefined;
59
+ onRetry?: (() => any) | undefined;
60
+ "onUpdate:month"?: ((month: Date) => any) | undefined;
61
+ "onSelect-event"?: ((event: ItCalendarEvent) => any) | undefined;
62
+ }>, {
63
+ error: string | boolean;
64
+ loading: boolean;
65
+ unit: string;
66
+ month: Date;
67
+ headingLevel: 2 | 3 | 4 | 5;
68
+ selected: string | null;
69
+ now: Date;
70
+ weekStartsOn: 0 | 1;
71
+ maxPerDay: number;
72
+ unitSingular: string;
73
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
75
+ export default _default;
76
+ type __VLS_WithSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1,47 @@
1
+ import { type ItChartSeries } from './chart';
2
+ type __VLS_Props = {
3
+ /** Same array, in the same order, as the chart it describes. */
4
+ series: ItChartSeries[];
5
+ /** Optional value per series key, shown after the label (already formatted). */
6
+ values?: Record<string, string>;
7
+ /** Swatch shape: `rect` for bars and areas, `line` for lines. */
8
+ marker?: 'rect' | 'line';
9
+ /** Keys of hidden series. Bind with `v-model:hidden` to make the legend toggle series. */
10
+ hidden?: string[];
11
+ /** Accessible name of the legend list. */
12
+ label?: string;
13
+ /** `row` wraps items across (default); `column` stacks them, one per line, values aligned at the end (beside a donut). */
14
+ direction?: 'row' | 'column';
15
+ };
16
+ declare var __VLS_1: {
17
+ item: {
18
+ color: string;
19
+ hidden: boolean;
20
+ value: string | undefined;
21
+ key: string;
22
+ label: string;
23
+ tone?: import("./chart").ItChartTone;
24
+ };
25
+ index: number;
26
+ };
27
+ type __VLS_Slots = {} & {
28
+ entry?: (props: typeof __VLS_1) => any;
29
+ };
30
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ "update:hidden": (keys: string[]) => any;
32
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
+ "onUpdate:hidden"?: ((keys: string[]) => any) | undefined;
34
+ }>, {
35
+ label: string;
36
+ marker: "rect" | "line";
37
+ values: Record<string, string>;
38
+ direction: "row" | "column";
39
+ hidden: string[];
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,16 @@
1
+ export interface ItChartTableColumn {
2
+ key: string;
3
+ label: string;
4
+ /** Right-aligns the column (numbers). */
5
+ numeric?: boolean;
6
+ }
7
+ type __VLS_Props = {
8
+ caption: string;
9
+ columns: ItChartTableColumn[];
10
+ /** Cell text per column key, already formatted. */
11
+ rows: Array<Record<string, string>>;
12
+ /** Hides the caption visually (it stays for screen readers). */
13
+ captionHidden?: boolean;
14
+ };
15
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { type ItBadgeTone } from '../status/ItBadge.vue';
2
+ export interface ItChartTooltipRow {
3
+ key: string;
4
+ label: string;
5
+ value: string;
6
+ color: string;
7
+ /** Part of the whole, 0–1: draws the share bar (a breakdown). */
8
+ share?: number;
9
+ /** The share as text, "86%". */
10
+ percent?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ title: string;
14
+ rows: ItChartTooltipRow[];
15
+ /** Anchor in chart pixels. */
16
+ x: number;
17
+ y: number;
18
+ /** Which side of the anchor the box opens to. */
19
+ side?: 'right' | 'left';
20
+ /** Optional line under the rows (a total, an annotation). */
21
+ footer?: string;
22
+ /** A state beside the title ("Finished"), as a badge. */
23
+ badge?: {
24
+ label: string;
25
+ tone?: ItBadgeTone;
26
+ } | null;
27
+ /** The whole, large, above a breakdown: "5,747" + "total violations". */
28
+ total?: {
29
+ value: string;
30
+ label: string;
31
+ } | null;
32
+ /** Bounds of the hovered mark in chart pixels. Keep the readout outside it. */
33
+ avoid?: {
34
+ left: number;
35
+ right: number;
36
+ top: number;
37
+ bottom: number;
38
+ };
39
+ };
40
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
41
+ footer: string;
42
+ side: "right" | "left";
43
+ badge: {
44
+ label: string;
45
+ tone?: ItBadgeTone;
46
+ } | null;
47
+ total: {
48
+ value: string;
49
+ label: string;
50
+ } | null;
51
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
52
+ export default _default;
@@ -0,0 +1,79 @@
1
+ import { type ItChartSeries, type ItValueFormatter } from './chart';
2
+ export interface ItDonutSegment extends ItChartSeries {
3
+ value: number;
4
+ /** Keep the value readable, but prevent drill-down. */
5
+ disabled?: boolean;
6
+ /** Explanation in the accessible name and shared chart readout. */
7
+ disabledReason?: string;
8
+ }
9
+ type __VLS_Props = {
10
+ segments: ItDonutSegment[];
11
+ /** What the whole is: "Open findings by severity". Starts the accessible summary and names the table. */
12
+ label: string;
13
+ /** Slices and legend entries become buttons that emit the original segment. */
14
+ selectable?: boolean;
15
+ /** Controlled segment keys. Given (even empty), buttons expose aria-pressed. */
16
+ selected?: readonly string[];
17
+ /** `donut` (default) shows the total in the center; `pie` fills it. */
18
+ variant?: 'donut' | 'pie';
19
+ /** Noun for values: "findings". Also the default center caption and the table's value column. */
20
+ unit?: string;
21
+ /** Line under the center total. Defaults to `unit`, then "Total". */
22
+ caption?: string;
23
+ /** Header of the category column in the table. */
24
+ categoryLabel?: string;
25
+ formatValue?: ItValueFormatter;
26
+ /** Largest diameter in px; the ring shrinks to fit its half of a narrow card, or (legend at the bottom) the height left over the legend, down to 60%. */
27
+ size?: number;
28
+ /** `side` (default): ring and legend in two equal halves. `bottom`: the ring centered, the legend in one row under it, for a card whose height the ring should fill. */
29
+ legend?: 'side' | 'bottom';
30
+ /** Show each slice's value and share in the legend ("20 · 31%"). Off: the legend names the slices, and the values are in the hover and keyboard readout, the center total, and the screen-reader table. */
31
+ showValues?: boolean;
32
+ loading?: boolean;
33
+ /** The data did not load: a danger callout in place of the chart (a string says why). Retry with a `@retry` listener; `#error` replaces it. */
34
+ error?: string | boolean;
35
+ emptyTitle?: string;
36
+ emptyDescription?: string;
37
+ /** Replaces the generated accessible summary. */
38
+ summary?: string;
39
+ /** `table` shows the data table in place of the chart. */
40
+ view?: 'chart' | 'table';
41
+ };
42
+ declare var __VLS_1: {
43
+ message: string;
44
+ retry: () => void;
45
+ };
46
+ type __VLS_Slots = {} & {
47
+ error?: (props: typeof __VLS_1) => any;
48
+ };
49
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ select: (segment: ItDonutSegment) => any;
51
+ retry: () => any;
52
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
53
+ onSelect?: ((segment: ItDonutSegment) => any) | undefined;
54
+ onRetry?: (() => any) | undefined;
55
+ }>, {
56
+ caption: string;
57
+ legend: "side" | "bottom";
58
+ summary: string;
59
+ error: string | boolean;
60
+ view: "chart" | "table";
61
+ size: number;
62
+ variant: "donut" | "pie";
63
+ loading: boolean;
64
+ unit: string;
65
+ selected: readonly string[];
66
+ emptyTitle: string;
67
+ emptyDescription: string;
68
+ selectable: boolean;
69
+ formatValue: ItValueFormatter;
70
+ categoryLabel: string;
71
+ showValues: boolean;
72
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
73
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
74
+ export default _default;
75
+ type __VLS_WithSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,42 @@
1
+ import { type ItChartSeries, type ItValueFormatter } from './chart';
2
+ export interface ItProportionSegment extends ItChartSeries {
3
+ value: number;
4
+ }
5
+ type __VLS_Props = {
6
+ segments: ItProportionSegment[];
7
+ /** What the whole is: "Open findings by severity". Starts the accessible summary. */
8
+ label: string;
9
+ /** The whole, when it is larger than the segments (a meter). Defaults to their sum. */
10
+ total?: number;
11
+ /** Noun for the caption and summary: "assets". */
12
+ unit?: string;
13
+ formatValue?: ItValueFormatter;
14
+ /** Replaces the generated accessible summary. */
15
+ summary?: string;
16
+ loading?: boolean;
17
+ error?: string | boolean;
18
+ };
19
+ declare var __VLS_1: {
20
+ message: string;
21
+ retry: () => void;
22
+ };
23
+ type __VLS_Slots = {} & {
24
+ error?: (props: typeof __VLS_1) => any;
25
+ };
26
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ retry: () => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onRetry?: (() => any) | undefined;
30
+ }>, {
31
+ summary: string;
32
+ unit: string;
33
+ total: number;
34
+ formatValue: ItValueFormatter;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,42 @@
1
+ import { type ItChartTone, type ItValueFormatter } from './chart';
2
+ type __VLS_Props = {
3
+ values: Array<number | null>;
4
+ /** What it shows, with the period: "Open findings, last 14 days". */
5
+ label: string;
6
+ /** Replaces the generated "label: first → last" text. */
7
+ summary?: string;
8
+ /** Line color: chart slot 1, or a status tone when direction is good/bad (rising criticals → danger). */
9
+ tone?: ItChartTone | 'default';
10
+ /** Height in px. */
11
+ height?: number;
12
+ /** A 10% wash under the line. */
13
+ area?: boolean;
14
+ formatValue?: ItValueFormatter;
15
+ loading?: boolean;
16
+ error?: string | boolean;
17
+ };
18
+ declare var __VLS_1: {
19
+ message: string;
20
+ retry: () => void;
21
+ };
22
+ type __VLS_Slots = {} & {
23
+ error?: (props: typeof __VLS_1) => any;
24
+ };
25
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ retry: () => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onRetry?: (() => any) | undefined;
29
+ }>, {
30
+ area: boolean;
31
+ summary: string;
32
+ height: number;
33
+ tone: ItChartTone | "default";
34
+ formatValue: ItValueFormatter;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };