@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.
- package/LICENSE +24 -0
- package/NOTICE.md +37 -0
- package/README.md +53 -2
- package/dist/assistant-session-DP4_70Xk.js +1381 -0
- package/dist/command-Bjncx7YR.js +1279 -0
- package/dist/components/actions/ItActionMenu.vue.d.ts +24 -0
- package/dist/components/actions/ItDecisionToggle.vue.d.ts +22 -0
- package/dist/components/actions/ItIconButton.vue.d.ts +24 -0
- package/dist/components/actions/ItLinkButton.vue.d.ts +17 -0
- package/dist/components/actions/action-menu.d.ts +19 -0
- package/dist/components/charts/ItBarChart.vue.d.ts +121 -0
- package/dist/components/charts/ItCalendarChart.vue.d.ts +80 -0
- package/dist/components/charts/ItChartLegend.vue.d.ts +47 -0
- package/dist/components/charts/ItChartTable.vue.d.ts +16 -0
- package/dist/components/charts/ItChartTooltip.vue.d.ts +52 -0
- package/dist/components/charts/ItDonutChart.vue.d.ts +79 -0
- package/dist/components/charts/ItProportionBar.vue.d.ts +42 -0
- package/dist/components/charts/ItSparkline.vue.d.ts +42 -0
- package/dist/components/charts/ItTrendChart.vue.d.ts +80 -0
- package/dist/components/charts/chart.d.ts +84 -0
- package/dist/components/charts/selection.d.ts +14 -0
- package/dist/components/charts/skeleton.d.ts +16 -0
- package/dist/components/command/ItAssistantPanel.vue.d.ts +56 -0
- package/dist/components/command/ItAssistantThread.vue.d.ts +73 -0
- package/dist/components/command/ItCommandPalette.vue.d.ts +102 -0
- package/dist/components/command/ItMarkdown.vue.d.ts +12 -0
- package/dist/components/command/assistant-session.d.ts +26 -0
- package/dist/components/command/command.d.ts +127 -0
- package/dist/components/command/markdown.d.ts +55 -0
- package/dist/components/content/ItDocsArticle.vue.d.ts +18 -0
- package/dist/components/content/ItDocsLayout.vue.d.ts +29 -0
- package/dist/components/content/ItDocsPager.vue.d.ts +12 -0
- package/dist/components/content/ItProse.vue.d.ts +18 -0
- package/dist/components/content/docs.d.ts +23 -0
- package/dist/components/dag/ItDagCanvas.vue.d.ts +143 -0
- package/dist/components/dag/ItDagControls.vue.d.ts +2 -0
- package/dist/components/dag/ItDagEdge.vue.d.ts +21 -0
- package/dist/components/dag/ItDagLibrary.vue.d.ts +19 -0
- package/dist/components/dag/ItDagNode.vue.d.ts +20 -0
- package/dist/components/dag/dag.d.ts +182 -0
- package/dist/components/dag/history.d.ts +51 -0
- package/dist/components/dag/layout.d.ts +54 -0
- package/dist/components/dag/route.d.ts +24 -0
- package/dist/components/data/DataError.vue.d.ts +12 -0
- package/dist/components/data/ItChangeList.vue.d.ts +48 -0
- package/dist/components/data/ItCodeBlock.vue.d.ts +23 -0
- package/dist/components/data/ItDataTable.vue.d.ts +135 -0
- package/dist/components/data/ItDataToolbar.vue.d.ts +57 -0
- package/dist/components/data/ItDescriptionList.vue.d.ts +30 -0
- package/dist/components/data/ItEmptyState.vue.d.ts +22 -0
- package/dist/components/data/ItKpiCard.vue.d.ts +89 -0
- package/dist/components/data/ItKpiDetail.vue.d.ts +40 -0
- package/dist/components/data/ItKpiGrid.vue.d.ts +19 -0
- package/dist/components/data/ItObjectName.vue.d.ts +64 -0
- package/dist/components/data/ItPaginator.vue.d.ts +46 -0
- package/dist/components/data/ItResourceList.vue.d.ts +39 -0
- package/dist/components/data/ItResourceListItem.vue.d.ts +40 -0
- package/dist/components/data/ItSkeleton.vue.d.ts +14 -0
- package/dist/components/data/ItTablePaginator.vue.d.ts +34 -0
- package/dist/components/data/ItTime.vue.d.ts +13 -0
- package/dist/components/data/ItTreeTable.vue.d.ts +109 -0
- package/dist/components/data/TableChevron.vue.d.ts +8 -0
- package/dist/components/data/TableExpansion.vue.d.ts +22 -0
- package/dist/components/data/column-sizing.d.ts +31 -0
- package/dist/components/data/data-table.d.ts +15 -0
- package/dist/components/data/highlight-worker.d.ts +1 -0
- package/dist/components/data/highlight.d.ts +3 -0
- package/dist/components/data/kpi-placement.d.ts +40 -0
- package/dist/components/data/kpi.d.ts +16 -0
- package/dist/components/data/sticky-header.d.ts +9 -0
- package/dist/components/data/table-skeleton.d.ts +11 -0
- package/dist/components/data/table-source.d.ts +77 -0
- package/dist/components/data/tree-table-public.d.ts +17 -0
- package/dist/components/data/tree-table.d.ts +30 -0
- package/dist/components/feedback/ItCallout.vue.d.ts +25 -0
- package/dist/components/feedback/ItConfirmHost.vue.d.ts +2 -0
- package/dist/components/feedback/ItOverlayHost.vue.d.ts +2 -0
- package/dist/components/feedback/ItProgressBar.vue.d.ts +19 -0
- package/dist/components/feedback/ItToastHost.vue.d.ts +2 -0
- package/dist/components/forms/FieldClearButton.vue.d.ts +11 -0
- package/dist/components/forms/ItAutoComplete.vue.d.ts +69 -0
- package/dist/components/forms/ItCheckboxGroup.vue.d.ts +27 -0
- package/dist/components/forms/ItChipInput.vue.d.ts +32 -0
- package/dist/components/forms/ItCodeEditor.vue.d.ts +64 -0
- package/dist/components/forms/ItDatePicker.vue.d.ts +35 -0
- package/dist/components/forms/ItFileDrop.vue.d.ts +47 -0
- package/dist/components/forms/ItFilterChip.vue.d.ts +13 -0
- package/dist/components/forms/ItFilterMenu.vue.d.ts +37 -0
- package/dist/components/forms/ItFilterPopover.vue.d.ts +44 -0
- package/dist/components/forms/ItFormActions.vue.d.ts +14 -0
- package/dist/components/forms/ItFormField.vue.d.ts +44 -0
- package/dist/components/forms/ItFormRows.vue.d.ts +50 -0
- package/dist/components/forms/ItFormSection.vue.d.ts +28 -0
- package/dist/components/forms/ItLabelCell.vue.d.ts +42 -0
- package/dist/components/forms/ItLabelPicker.vue.d.ts +34 -0
- package/dist/components/forms/ItMultiSelect.vue.d.ts +53 -0
- package/dist/components/forms/ItOptionCardGroup.vue.d.ts +35 -0
- package/dist/components/forms/ItRadioGroup.vue.d.ts +29 -0
- package/dist/components/forms/ItSearchInput.vue.d.ts +25 -0
- package/dist/components/forms/ItSegmentedControl.vue.d.ts +25 -0
- package/dist/components/forms/ItSelect.vue.d.ts +50 -0
- package/dist/components/forms/ItSwitch.vue.d.ts +31 -0
- package/dist/components/forms/ItTabs.vue.d.ts +27 -0
- package/dist/components/forms/OptionSourceSlot.vue.d.ts +13 -0
- package/dist/components/forms/choice.d.ts +24 -0
- package/dist/components/forms/code-editor.d.ts +17 -0
- package/dist/components/forms/field-context.d.ts +39 -0
- package/dist/components/forms/file-drop.d.ts +19 -0
- package/dist/components/forms/form-errors.d.ts +7 -0
- package/dist/components/forms/form-rows.d.ts +8 -0
- package/dist/components/forms/option-source.d.ts +39 -0
- package/dist/components/forms/virtual-options.d.ts +12 -0
- package/dist/components/layout/ItBreadcrumb.vue.d.ts +12 -0
- package/dist/components/layout/ItDetailSection.vue.d.ts +21 -0
- package/dist/components/layout/ItPage.vue.d.ts +44 -0
- package/dist/components/layout/ItPanel.vue.d.ts +47 -0
- package/dist/components/layout/ItSectionNav.vue.d.ts +43 -0
- package/dist/components/layout/ItWizard.vue.d.ts +57 -0
- package/dist/components/layout/ItWizardSteps.vue.d.ts +15 -0
- package/dist/components/layout/SectionNavLinks.vue.d.ts +15 -0
- package/dist/components/layout/panel.d.ts +18 -0
- package/dist/components/layout/section-nav.d.ts +17 -0
- package/dist/components/layout/wizard.d.ts +13 -0
- package/dist/components/logic/ItFieldPicker.vue.d.ts +40 -0
- package/dist/components/logic/ItLogicBuilder.vue.d.ts +58 -0
- package/dist/components/logic/ItLogicCondition.vue.d.ts +9 -0
- package/dist/components/logic/ItLogicGroup.vue.d.ts +9 -0
- package/dist/components/logic/ItOperatorSelect.vue.d.ts +25 -0
- package/dist/components/logic/ItValueInput.vue.d.ts +29 -0
- package/dist/components/logic/logic.d.ts +263 -0
- package/dist/components/logic/region.d.ts +44 -0
- package/dist/components/overlays/ItDrawer.vue.d.ts +48 -0
- package/dist/components/overlays/ItModal.vue.d.ts +53 -0
- package/dist/components/overlays/escape-stack.d.ts +7 -0
- package/dist/components/overlays/modal.d.ts +23 -0
- package/dist/components/shell/ItAppShell.vue.d.ts +68 -0
- package/dist/components/shell/ItCommandTrigger.vue.d.ts +17 -0
- package/dist/components/shell/ItOrgSwitcher.vue.d.ts +26 -0
- package/dist/components/shell/ItShellMenuItem.vue.d.ts +18 -0
- package/dist/components/shell/ItShellNavBranch.vue.d.ts +15 -0
- package/dist/components/shell/ItShellNavLink.vue.d.ts +18 -0
- package/dist/components/shell/ItShellSidebarButton.vue.d.ts +15 -0
- package/dist/components/shell/ItThemeControl.vue.d.ts +13 -0
- package/dist/components/shell/org.d.ts +36 -0
- package/dist/components/shell/types.d.ts +67 -0
- package/dist/components/status/ItBadge.vue.d.ts +12 -0
- package/dist/components/status/ItEntityTypeChip.vue.d.ts +14 -0
- package/dist/components/status/ItLabelChip.vue.d.ts +21 -0
- package/dist/components/status/ItLabelChipList.vue.d.ts +27 -0
- package/dist/components/status/ItPlatformChip.vue.d.ts +20 -0
- package/dist/components/status/ItPlatformLogo.vue.d.ts +17 -0
- package/dist/components/status/ItSeverityBadge.vue.d.ts +9 -0
- package/dist/components/status/ItStatus.vue.d.ts +12 -0
- package/dist/components.css +1 -0
- package/dist/composables/iconMotion.d.ts +12 -0
- package/dist/composables/ripple.d.ts +3 -0
- package/dist/composables/useItConfirm.d.ts +16 -0
- package/dist/composables/useItCopy.d.ts +4 -0
- package/dist/composables/useItCursorPager.d.ts +50 -0
- package/dist/composables/useItTheme.d.ts +26 -0
- package/dist/composables/useItToast.d.ts +24 -0
- package/dist/dag.d.ts +5 -0
- package/dist/dag.js +1754 -0
- package/dist/dev-D7A7MIn_.js +1264 -0
- package/dist/directives/truncate.d.ts +29 -0
- package/dist/elk-worker.min-O2A22ecl.js +6321 -0
- package/dist/format/index.d.ts +53 -0
- package/dist/highlight-worker-DIrLC7a2.js +25 -0
- package/dist/index.d.ts +147 -0
- package/dist/index.js +11989 -0
- package/dist/licenses/@vue-flow__core.LICENSE +20 -0
- package/dist/licenses/elkjs.LICENSE.md +263 -0
- package/dist/licenses/highlight.js.LICENSE +29 -0
- package/dist/licenses/vue-sonner.LICENSE +21 -0
- package/dist/platform-art-Bt1CnaKE.js +86 -0
- package/dist/plugin.d.ts +69 -0
- package/dist/registries/entity-type.d.ts +18 -0
- package/dist/registries/platform-art.d.ts +2 -0
- package/dist/registries/platform-marks.d.ts +12 -0
- package/dist/registries/platform.d.ts +22 -0
- package/dist/registries/severity.d.ts +23 -0
- package/dist/registries/status.d.ts +13 -0
- package/dist/styles.css +26 -0
- package/dist/text-nGkJYA88.js +470 -0
- package/dist/utils/chip-truncation.d.ts +8 -0
- package/dist/utils/chunk-recovery.d.ts +24 -0
- package/dist/utils/dev.d.ts +2 -0
- package/dist/utils/listeners.d.ts +10 -0
- package/dist/utils/router.d.ts +9 -0
- package/dist/utils/scroll.d.ts +8 -0
- package/dist/utils/select.d.ts +21 -0
- package/dist/utils/text.d.ts +6 -0
- package/package.json +92 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
/** Static chips enter the tab order only when a keyboard user needs the full-text hint. */
|
|
3
|
+
export declare function useChipTruncation(content: Readonly<Ref<string>>): {
|
|
4
|
+
textElement: Ref<HTMLElement | null, HTMLElement | null>;
|
|
5
|
+
truncated: Ref<boolean, boolean>;
|
|
6
|
+
onFocus: (event: FocusEvent) => void;
|
|
7
|
+
onBlur: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The router methods the recovery uses. vue-router's Router satisfies it
|
|
3
|
+
* structurally, so the published types never import vue-router (an optional
|
|
4
|
+
* dependency for apps).
|
|
5
|
+
*/
|
|
6
|
+
export interface ItChunkRecoveryRouter {
|
|
7
|
+
resolve(to: string): {
|
|
8
|
+
href: string;
|
|
9
|
+
};
|
|
10
|
+
beforeEach(guard: (to: {
|
|
11
|
+
fullPath: string;
|
|
12
|
+
}) => unknown): () => void;
|
|
13
|
+
afterEach(hook: () => unknown): () => void;
|
|
14
|
+
onError(handler: (error: unknown, to: {
|
|
15
|
+
fullPath: string;
|
|
16
|
+
}) => unknown): () => void;
|
|
17
|
+
readonly currentRoute: {
|
|
18
|
+
readonly value: {
|
|
19
|
+
fullPath: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Recover stale lazy chunks once per minute per tab. Returns listener cleanup. */
|
|
24
|
+
export declare function installItChunkRecovery(router: ItChunkRecoveryRouter): () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the parent listens to one of this component's events
|
|
3
|
+
* (`@retry`, `@row-click`). A control that only makes sense with a handler
|
|
4
|
+
* (a Retry button) renders only when there is one, so it never does nothing.
|
|
5
|
+
*
|
|
6
|
+
* Call it in `setup`; call the returned function at render time. The parent's
|
|
7
|
+
* listeners live on the component's vnode, which is replaced on each parent
|
|
8
|
+
* render, so the answer stays current without being reactive.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useItListener(event: string): () => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* vue-router is an optional peer. Components that navigate render RouterLink
|
|
4
|
+
* when the app registered it, and a plain <a> otherwise. Call from setup().
|
|
5
|
+
*/
|
|
6
|
+
export declare function useRouterLink(): Component | null;
|
|
7
|
+
export type ItRouteLocation = string | Record<string, unknown>;
|
|
8
|
+
/** Best-effort href for a route location when there is no router. */
|
|
9
|
+
export declare function hrefOf(to: ItRouteLocation | undefined, href?: string): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Hidden and clipped frames are never navigation scrollports. */
|
|
2
|
+
export declare function nearestScrollContainer(target: HTMLElement): HTMLElement | null;
|
|
3
|
+
/** Scroll one container, without moving any of its ancestors. */
|
|
4
|
+
export declare function scrollInContainer(target: HTMLElement, { container, block, behavior }?: {
|
|
5
|
+
container?: HTMLElement | null;
|
|
6
|
+
block?: 'start' | 'center' | 'nearest';
|
|
7
|
+
behavior?: ScrollBehavior;
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a click ends a text selection inside the clicked row: the person
|
|
3
|
+
* dragged to copy, so the row must not open. Check it first in a row-click
|
|
4
|
+
* handler.
|
|
5
|
+
*/
|
|
6
|
+
export declare function itSelectingText(event: Event): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The controls a click in a row belongs to, not the row. A `label` is one: a
|
|
9
|
+
* click on it acts on its control (an ItSwitch's label toggles the switch).
|
|
10
|
+
*/
|
|
11
|
+
export declare const IT_ROW_CONTROL = "a, button, input, select, textarea, label, summary, [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"switch\"], [contenteditable=\"true\"]";
|
|
12
|
+
/**
|
|
13
|
+
* Whether a click in a row landed on a control inside it (IT_ROW_CONTROL),
|
|
14
|
+
* between the clicked element and `row`. Reads the path recorded at dispatch,
|
|
15
|
+
* not target.closest(): Vue can re-render between listeners, so a clicked
|
|
16
|
+
* icon may already be out of the DOM when the row's handler runs. Call it
|
|
17
|
+
* while the event dispatches.
|
|
18
|
+
*/
|
|
19
|
+
export declare function itClickOnRowControl(event: Event, row: Element | null): boolean;
|
|
20
|
+
/** On `mousedown` of a clickable row: a double or triple click acts without selecting text. */
|
|
21
|
+
export declare function itStopMultiClickSelect(event: MouseEvent): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A label set inside a sentence ("Copy finding evidence", "Clear severity
|
|
3
|
+
* filter") keeps sentence case: its first letter goes lower case, unless the
|
|
4
|
+
* first word is an acronym or a code ("GTM container", "GA4 events").
|
|
5
|
+
*/
|
|
6
|
+
export declare function inSentence(label: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,95 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infotrust/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.30.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Infotrust-llc/infotrust-design.git",
|
|
11
|
+
"directory": "packages/ui"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"description": "InfoTrust's Vue 3 + PrimeVue 4 component library, built on @infotrust/design-tokens. Built for InfoTrust products; no support for outside use.",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "InfoTrust, LLC",
|
|
17
|
+
"homepage": "https://design.infotrust.com",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"infotrust",
|
|
20
|
+
"design-system",
|
|
21
|
+
"vue",
|
|
22
|
+
"primevue",
|
|
23
|
+
"components"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"NOTICE.md"
|
|
31
|
+
],
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"**/*.css"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./dag": {
|
|
41
|
+
"types": "./dist/dag.d.ts",
|
|
42
|
+
"import": "./dist/dag.js"
|
|
43
|
+
},
|
|
44
|
+
"./styles.css": "./dist/styles.css",
|
|
45
|
+
"./components.css": "./dist/components.css",
|
|
46
|
+
"./package.json": "./package.json"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"highlight.js": "^11.12.0",
|
|
50
|
+
"@infotrust/design-tokens": "0.30.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@primeuix/themes": "^2.0.3",
|
|
54
|
+
"@vue-flow/core": "^1.48.0",
|
|
55
|
+
"elkjs": "^0.12.0",
|
|
56
|
+
"lucide-vue-next": ">=0.400.0 <2",
|
|
57
|
+
"primevue": ">=4.5.0 <5",
|
|
58
|
+
"vue": "^3.5.0",
|
|
59
|
+
"vue-router": "^4.0.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"@vue-flow/core": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"elkjs": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"vue-router": {
|
|
69
|
+
"optional": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@primeuix/themes": "^2.0.3",
|
|
74
|
+
"@vitejs/plugin-vue": "^5.2.0",
|
|
75
|
+
"@vue-flow/core": "^1.48.2",
|
|
76
|
+
"elkjs": "^0.12.0",
|
|
77
|
+
"happy-dom": "^20.11.1",
|
|
78
|
+
"lucide-vue-next": "^0.475.0",
|
|
79
|
+
"primevue": "^4.5.5",
|
|
80
|
+
"typescript": "^5.8.0",
|
|
81
|
+
"vite": "^6.2.0",
|
|
82
|
+
"vitest": "^3.0.0",
|
|
83
|
+
"vue": "^3.5.0",
|
|
84
|
+
"vue-router": "^4.5.0",
|
|
85
|
+
"vue-sonner": "^2.0.9",
|
|
86
|
+
"vue-tsc": "^2.2.0"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "vite build && cp src/styles/index.css dist/styles.css && vue-tsc -p tsconfig.build.json && node scripts/strip-dts-css.mjs && node scripts/copy-licenses.mjs",
|
|
90
|
+
"build:playground": "vite build --config playground/vite.config.ts",
|
|
91
|
+
"clean": "rm -rf dist playground/dist",
|
|
92
|
+
"test": "vitest run",
|
|
93
|
+
"typecheck": "vue-tsc --noEmit"
|
|
94
|
+
}
|
|
6
95
|
}
|