@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,50 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
export interface ItCursorPage<T> {
|
|
3
|
+
items: T[];
|
|
4
|
+
/** The API's `hasMore`. */
|
|
5
|
+
hasMore: boolean;
|
|
6
|
+
/** Token for the next page; absent when there is none. */
|
|
7
|
+
pageToken?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface ItCursorFetchContext {
|
|
10
|
+
/** Fires when a newer request (or the end of the scope) supersedes this one. */
|
|
11
|
+
signal: AbortSignal;
|
|
12
|
+
/** Page size to ask for (the API's `limit`). */
|
|
13
|
+
rows: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ItCursorPagerOptions<T> {
|
|
16
|
+
/** Loads the page that `pageToken` opens; `undefined` is the first page. */
|
|
17
|
+
fetch: (pageToken: string | undefined, context: ItCursorFetchContext) => Promise<ItCursorPage<T>>;
|
|
18
|
+
/** Rows per page. Default 10, the tables' default. */
|
|
19
|
+
rows?: number;
|
|
20
|
+
/** Empty pages with more after them to skip in one go before showing one. Default 5. */
|
|
21
|
+
maxHops?: number;
|
|
22
|
+
/** Load the first page at once. Default true. */
|
|
23
|
+
immediate?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** The fields of a table `page` event the pager reads. */
|
|
26
|
+
export interface ItCursorPageEvent {
|
|
27
|
+
first: number;
|
|
28
|
+
rows: number;
|
|
29
|
+
}
|
|
30
|
+
export interface ItCursorPager<T> {
|
|
31
|
+
/** Rows of the current page. */
|
|
32
|
+
items: Readonly<Ref<T[]>>;
|
|
33
|
+
loading: Readonly<Ref<boolean>>;
|
|
34
|
+
/** The error of the last request, or null. */
|
|
35
|
+
error: Readonly<Ref<unknown>>;
|
|
36
|
+
hasNext: ComputedRef<boolean>;
|
|
37
|
+
hasPrevious: ComputedRef<boolean>;
|
|
38
|
+
/** 0-based offset of the current page (page index × rows), for the table's `first`. */
|
|
39
|
+
first: ComputedRef<number>;
|
|
40
|
+
rows: Readonly<Ref<number>>;
|
|
41
|
+
/** Table `@page` handler: a higher `first` is Next, a lower one Previous, new `rows` starts over. */
|
|
42
|
+
onPage: (event: ItCursorPageEvent) => Promise<void>;
|
|
43
|
+
next: () => Promise<void>;
|
|
44
|
+
previous: () => Promise<void>;
|
|
45
|
+
/** Starts over from the first page. Call it when the sort, filter, or search changes. */
|
|
46
|
+
reset: () => Promise<void>;
|
|
47
|
+
/** Loads the current page again. */
|
|
48
|
+
reload: () => Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
export declare function useItCursorPager<T>(options: ItCursorPagerOptions<T>): ItCursorPager<T>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export type ItThemePreference = 'light' | 'dark' | 'system';
|
|
3
|
+
export type ItResolvedTheme = 'light' | 'dark';
|
|
4
|
+
/**
|
|
5
|
+
* Starts the theme store: reads the saved preference from `storageKey`
|
|
6
|
+
* (default 'it-theme-preference'), follows the system theme, and writes
|
|
7
|
+
* `data-theme` on <html>. Call it once, before mount. A second call does
|
|
8
|
+
* nothing (and warns in development when it names another key).
|
|
9
|
+
*/
|
|
10
|
+
export declare function initItTheme(options?: {
|
|
11
|
+
storageKey?: string;
|
|
12
|
+
}): void;
|
|
13
|
+
/**
|
|
14
|
+
* The page's theme store: `{ preference, resolvedTheme, isDark, setPreference }`.
|
|
15
|
+
* It never starts the store itself while the app may still call initItTheme:
|
|
16
|
+
* used before initItTheme, it waits for the end of the current task (and warns
|
|
17
|
+
* in development), then starts with the default key if the app has not.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useItTheme(): {
|
|
20
|
+
preference: import("vue").ComputedRef<ItThemePreference>;
|
|
21
|
+
resolvedTheme: import("vue").ComputedRef<ItResolvedTheme>;
|
|
22
|
+
isDark: import("vue").ComputedRef<boolean>;
|
|
23
|
+
setPreference: (value: ItThemePreference) => void;
|
|
24
|
+
};
|
|
25
|
+
/** The theme the page shows now, following `<html data-theme>`. Never changes the theme. */
|
|
26
|
+
export declare function useItPageTheme(): Readonly<Ref<ItResolvedTheme>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ToastTone = 'success' | 'info' | 'warning' | 'error';
|
|
2
|
+
export interface ToastAction {
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ToastOptions {
|
|
7
|
+
/** Second line: consequence or next step. */
|
|
8
|
+
detail?: string;
|
|
9
|
+
/** One inline action, e.g. Undo. */
|
|
10
|
+
action?: ToastAction;
|
|
11
|
+
/** Milliseconds before it dismisses itself. Default 5000, every tone. */
|
|
12
|
+
duration?: number;
|
|
13
|
+
}
|
|
14
|
+
/** How long a toast shows, every tone. */
|
|
15
|
+
export declare const IT_TOAST_DURATION = 5000;
|
|
16
|
+
export type ToastId = string | number;
|
|
17
|
+
export declare function useItToast(): {
|
|
18
|
+
success: (title: string, options?: ToastOptions) => ToastId;
|
|
19
|
+
info: (title: string, options?: ToastOptions) => ToastId;
|
|
20
|
+
warning: (title: string, options?: ToastOptions) => ToastId;
|
|
21
|
+
error: (title: string, options?: ToastOptions) => ToastId;
|
|
22
|
+
dismiss: (id: ToastId) => string | number | undefined;
|
|
23
|
+
clear: () => string | number | undefined;
|
|
24
|
+
};
|
package/dist/dag.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ItDagCanvas } from './components/dag/ItDagCanvas.vue';
|
|
2
|
+
export { default as ItDagNode } from './components/dag/ItDagNode.vue';
|
|
3
|
+
export type { ItDagHistoryController } from './components/dag/history';
|
|
4
|
+
export { itDagConnectionError, itDagEdgeId, itDagInputs, itDagOutputs, itDagReaches, type ItDagConnection, type ItDagConnectionRule, type ItDagDirection, type ItDagEdgeItem, type ItDagEdgeShape, type ItDagEdgeTone, type ItDagGraph, type ItDagLibraryItem, type ItDagNodeItem, type ItDagNoun, type ItDagPoint, type ItDagPort, type ItDagRemoveGuard, } from './components/dag/dag';
|
|
5
|
+
export { itDagArrange, itDagLayout, IT_DAG_SPACING, type ItDagArrangement, type ItDagLayoutEdge, type ItDagLayoutNode, type ItDagRoute, } from './components/dag/layout';
|