@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,68 @@
|
|
|
1
|
+
import { type ItShellNavItem, type ItShellUser } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
navItems: ItShellNavItem[];
|
|
4
|
+
/** A collapsible group under a divider (the Suite's Settings). */
|
|
5
|
+
settingsItems?: ItShellNavItem[];
|
|
6
|
+
settingsLabel?: string;
|
|
7
|
+
/** The mobile account drawer's links. Defaults to settingsItems. */
|
|
8
|
+
mobileAccountItems?: ItShellNavItem[];
|
|
9
|
+
/** Link rows in the profile menu, above #profile-menu content. */
|
|
10
|
+
profileItems?: ItShellNavItem[];
|
|
11
|
+
brandName?: string;
|
|
12
|
+
brandTo?: string;
|
|
13
|
+
/** Full-page brand target, for apps hosted on another origin. */
|
|
14
|
+
brandHref?: string;
|
|
15
|
+
user?: ItShellUser | null;
|
|
16
|
+
/** Second line under the user name (the Suite shows the org). */
|
|
17
|
+
userMeta?: string;
|
|
18
|
+
/** Every InfoTrust app supports light and dark, so the frame always shows the theme control. */
|
|
19
|
+
themeLabel?: string;
|
|
20
|
+
/** `full-bleed` drops the route padding (editors, canvases). */
|
|
21
|
+
contentMode?: 'contained' | 'full-bleed';
|
|
22
|
+
/** localStorage key for the collapsed rail. */
|
|
23
|
+
collapseStorageKey?: string;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Slots = {
|
|
26
|
+
default(): unknown;
|
|
27
|
+
brand?(scope: {
|
|
28
|
+
collapsed: boolean;
|
|
29
|
+
}): unknown;
|
|
30
|
+
'nav-end'?(scope: {
|
|
31
|
+
collapsed: boolean;
|
|
32
|
+
}): unknown;
|
|
33
|
+
'sidebar-footer'?(scope: {
|
|
34
|
+
collapsed: boolean;
|
|
35
|
+
}): unknown;
|
|
36
|
+
'profile-menu'?(scope: {
|
|
37
|
+
close: () => void;
|
|
38
|
+
}): unknown;
|
|
39
|
+
'topbar-start'?(): unknown;
|
|
40
|
+
'topbar-end'?(): unknown;
|
|
41
|
+
banner?(): unknown;
|
|
42
|
+
overlays?(): unknown;
|
|
43
|
+
};
|
|
44
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
"sign-out": () => any;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
|
+
"onSign-out"?: (() => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
settingsItems: ItShellNavItem[];
|
|
50
|
+
settingsLabel: string;
|
|
51
|
+
mobileAccountItems: ItShellNavItem[];
|
|
52
|
+
profileItems: ItShellNavItem[];
|
|
53
|
+
brandName: string;
|
|
54
|
+
brandTo: string;
|
|
55
|
+
brandHref: string;
|
|
56
|
+
user: ItShellUser | null;
|
|
57
|
+
userMeta: string;
|
|
58
|
+
themeLabel: string;
|
|
59
|
+
contentMode: "contained" | "full-bleed";
|
|
60
|
+
collapseStorageKey: string;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
/** Register Cmd/Ctrl+K (ignored while typing in a field). */
|
|
4
|
+
shortcut?: boolean;
|
|
5
|
+
/** Show the sparkle that marks a built-in assistant. */
|
|
6
|
+
assistant?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
open: () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onOpen?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
label: string;
|
|
14
|
+
shortcut: boolean;
|
|
15
|
+
assistant: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ItOrg, type ItOrgClient } from './org';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
client: ItOrgClient;
|
|
4
|
+
/** Shown before the list loads (from the app's auth state). */
|
|
5
|
+
fallbackOrgId?: string | null;
|
|
6
|
+
/** The trigger's accessible prefix: "Organization: InfoTrust". */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Where the opened parents are kept (localStorage). `null` keeps them for the page only. */
|
|
9
|
+
storageKey?: string | null;
|
|
10
|
+
};
|
|
11
|
+
declare function toggle(event: Event): void;
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
toggle: typeof toggle;
|
|
14
|
+
close: () => void | undefined;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
error: (message: string) => any;
|
|
17
|
+
"active-org": (org: ItOrg | null) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onError?: ((message: string) => any) | undefined;
|
|
20
|
+
"onActive-org"?: ((org: ItOrg | null) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
fallbackOrgId: string | null;
|
|
24
|
+
storageKey: string | null;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ItShellIcon } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon: ItShellIcon;
|
|
4
|
+
label: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
tone?: 'default' | 'danger';
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
click: (event: MouseEvent) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
tone: "default" | "danger";
|
|
15
|
+
href: string;
|
|
16
|
+
to: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ItShellNavItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: ItShellNavItem;
|
|
4
|
+
depth?: number;
|
|
5
|
+
mobile?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
navigate: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onNavigate?: (() => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
depth: number;
|
|
13
|
+
mobile: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ItShellNavItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: ItShellNavItem;
|
|
4
|
+
current?: boolean;
|
|
5
|
+
/** The link sits in the collapsed rail. */
|
|
6
|
+
collapsed?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The item's alert label: the rail shows a dot on the icon and adds the label to the link's
|
|
9
|
+
* name and hover hint (with the labels shown, the alert is its own link beside this one).
|
|
10
|
+
*/
|
|
11
|
+
alertLabel?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
navigate: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onNavigate?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon: Component;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Bordered, so it reads as a button rather than a link. */
|
|
6
|
+
outlined?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
click: (event: MouseEvent) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
outlined: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ItThemePreference } from '../../composables/useItTheme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: ItThemePreference;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: ItThemePreference) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: ItThemePreference) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
label: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface ItOrg {
|
|
2
|
+
orgid: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
parent_orgid?: string | null;
|
|
5
|
+
parentOrgid?: string | null;
|
|
6
|
+
/** The org's own mark: an image URL (its brand's favicon, square). Without one, the switcher draws a building. */
|
|
7
|
+
icon?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface ItOrgClient extends EventTarget {
|
|
10
|
+
orgPicker: {
|
|
11
|
+
getOrgList(): Promise<ItOrg[]>;
|
|
12
|
+
/** Bypasses a cache, when the client has one. Called each time the switcher opens. */
|
|
13
|
+
refreshOrgList?(): Promise<ItOrg[]>;
|
|
14
|
+
getCurrentOrg(): Promise<ItOrg | null>;
|
|
15
|
+
};
|
|
16
|
+
/** Switches the active org. Fires `orgchange` (detail `{ org }`) on the client. */
|
|
17
|
+
setCurrentOrg(orgid: string): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
/** One visible row of the org tree. */
|
|
20
|
+
export interface ItOrgRow {
|
|
21
|
+
org: ItOrg;
|
|
22
|
+
/** 1 = top level. */
|
|
23
|
+
level: number;
|
|
24
|
+
/** Position among its visible siblings, from 1. */
|
|
25
|
+
posinset: number;
|
|
26
|
+
setsize: number;
|
|
27
|
+
hasChildren: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const itOrgName: (org: ItOrg) => string;
|
|
30
|
+
/**
|
|
31
|
+
* The org list as tree rows, depth first, siblings sorted by name. An org
|
|
32
|
+
* whose parent is missing from the list (or is `root`) is top level. With a
|
|
33
|
+
* query (name or orgid), an org shows when it or a descendant matches, so a
|
|
34
|
+
* match keeps its path.
|
|
35
|
+
*/
|
|
36
|
+
export declare function itOrgRows(orgs: readonly ItOrg[], query?: string): ItOrgRow[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Component, InjectionKey, Ref } from 'vue';
|
|
2
|
+
export interface ItShellImageIcon {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
}
|
|
6
|
+
export type ItShellIcon = Component | ItShellImageIcon;
|
|
7
|
+
interface ItShellNavItemBase {
|
|
8
|
+
id?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: ItShellIcon;
|
|
11
|
+
/** Omit to derive from the current route (exact match, or a sub-path of `to`). */
|
|
12
|
+
active?: boolean;
|
|
13
|
+
/** Additional route prefixes, matched at path segment boundaries. `active` overrides these. */
|
|
14
|
+
match?: string[];
|
|
15
|
+
tooltip?: string;
|
|
16
|
+
children?: ItShellNavItem[];
|
|
17
|
+
}
|
|
18
|
+
export interface ItShellNavAlert {
|
|
19
|
+
count: number;
|
|
20
|
+
label: string;
|
|
21
|
+
to?: string;
|
|
22
|
+
href?: string;
|
|
23
|
+
}
|
|
24
|
+
export type ItShellNavLinkItem = ItShellNavItemBase & {
|
|
25
|
+
/**
|
|
26
|
+
* Something in this section waits for the person: a bell with a blue dot at the end of the
|
|
27
|
+
* row (the dot alone on the icon in the collapsed rail, where the item's name and hover hint
|
|
28
|
+
* add the alert's label). It is its own link to `to` / `href` (the section's worklist),
|
|
29
|
+
* beside the item's link, never inside it. `label` names it and is its hover hint ("8 runs
|
|
30
|
+
* need attention"); the count is not drawn. Hidden at 0. The bell jingles on hover and
|
|
31
|
+
* focus, and rings once by itself when the count rises. Link items only.
|
|
32
|
+
*/
|
|
33
|
+
alert?: ItShellNavAlert;
|
|
34
|
+
} & ({
|
|
35
|
+
to: string;
|
|
36
|
+
href?: never;
|
|
37
|
+
} | {
|
|
38
|
+
href: string;
|
|
39
|
+
to?: never;
|
|
40
|
+
});
|
|
41
|
+
export type ItShellNavGroupItem = ItShellNavItemBase & {
|
|
42
|
+
children: ItShellNavItem[];
|
|
43
|
+
to?: never;
|
|
44
|
+
href?: never;
|
|
45
|
+
alert?: never;
|
|
46
|
+
};
|
|
47
|
+
export type ItShellNavItem = ItShellNavLinkItem | ItShellNavGroupItem;
|
|
48
|
+
export interface ItShellUser {
|
|
49
|
+
name?: string;
|
|
50
|
+
email?: string;
|
|
51
|
+
/** https URLs only; anything else falls back to initials. */
|
|
52
|
+
picture?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function isShellImageIcon(icon: ItShellIcon): icon is ItShellImageIcon;
|
|
55
|
+
export declare function shellNavItemKey(item: ItShellNavItem): string;
|
|
56
|
+
/** Current route path, provided by ItAppShell to its nav items. */
|
|
57
|
+
export declare const SHELL_PATH: InjectionKey<Ref<string>>;
|
|
58
|
+
/** Frame state that parts placed in shell regions read, so they adapt without props. */
|
|
59
|
+
export interface ItShellState {
|
|
60
|
+
/** The sidebar is the 72px icon rail (manual collapse). */
|
|
61
|
+
collapsed: Readonly<Ref<boolean>>;
|
|
62
|
+
/** Close the profile menu and both mobile drawers. */
|
|
63
|
+
closeOverlays: () => void;
|
|
64
|
+
}
|
|
65
|
+
export declare const SHELL_STATE: InjectionKey<ItShellState>;
|
|
66
|
+
export declare function isNavItemActive(item: ItShellNavItem, path: string): boolean;
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ItBadgeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
tone?: ItBadgeTone;
|
|
5
|
+
/** Mono face, for a code word such as a request method. */
|
|
6
|
+
mono?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
tone: ItBadgeTone;
|
|
10
|
+
mono: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** An entity kind with platform identity. Both layouts are static text. */
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
platform?: string;
|
|
4
|
+
type: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
plural?: boolean;
|
|
7
|
+
/** Place the decorative logo beside the chip or inside its tint. */
|
|
8
|
+
logoPosition?: 'beside' | 'inside';
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
plural: boolean;
|
|
12
|
+
logoPosition: "beside" | "inside";
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ItRouteLocation } from '../../utils/router';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
/** Show a remove button. Emits `remove`. */
|
|
6
|
+
removable?: boolean;
|
|
7
|
+
/** Visually marks a label inherited from a parent asset. */
|
|
8
|
+
inherited?: boolean;
|
|
9
|
+
/** Source name, exposed as an accessible description. */
|
|
10
|
+
inheritedFrom?: string;
|
|
11
|
+
clickable?: boolean;
|
|
12
|
+
to?: ItRouteLocation;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: (event: MouseEvent) => any;
|
|
16
|
+
remove: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ItLabel {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
inherited?: boolean;
|
|
6
|
+
inheritedFrom?: string;
|
|
7
|
+
/** Ids of the broader labels this one implies (specific ⇒ broad): "KitKat" implies "Nestlé". */
|
|
8
|
+
implies?: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
labels: Array<ItLabel | string>;
|
|
12
|
+
/** Most chips to show, even with room for more. */
|
|
13
|
+
max?: number;
|
|
14
|
+
removable?: boolean;
|
|
15
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
remove: (label: ItLabel) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
18
|
+
labels: Array<ItLabel | string>;
|
|
19
|
+
/** Most chips to show, even with room for more. */
|
|
20
|
+
max?: number;
|
|
21
|
+
removable?: boolean;
|
|
22
|
+
}> & Readonly<{
|
|
23
|
+
onRemove?: ((label: ItLabel) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
max: number;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
platform: string | null | undefined;
|
|
3
|
+
/** `short` = "GA4", `full` = "Google Analytics 4". */
|
|
4
|
+
name?: 'short' | 'full';
|
|
5
|
+
/** Text to show instead of the platform name; the full platform name moves to the tooltip. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** `chip` = tinted box (tables, filters, headers); `pill` = fully rounded, for chip rows of labels. */
|
|
8
|
+
shape?: 'chip' | 'pill';
|
|
9
|
+
/** Add built-in platform artwork. Registered logo URLs always render. */
|
|
10
|
+
logo?: boolean;
|
|
11
|
+
size?: 'sm' | 'md';
|
|
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
|
+
label: string;
|
|
15
|
+
size: "sm" | "md";
|
|
16
|
+
name: "short" | "full";
|
|
17
|
+
shape: "chip" | "pill";
|
|
18
|
+
logo: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
platform: string | null | undefined;
|
|
3
|
+
/** 12/14 inside chips · 16 inline · 20 headings · 24 page headers · 32 cards · 48 platform pages. */
|
|
4
|
+
size?: 12 | 14 | 16 | 20 | 24 | 32 | 48;
|
|
5
|
+
/** The platform's name is printed beside it: hide the logo from screen readers. */
|
|
6
|
+
decorative?: boolean;
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
8
|
+
platform: string | null | undefined;
|
|
9
|
+
/** 12/14 inside chips · 16 inline · 20 headings · 24 page headers · 32 cards · 48 platform pages. */
|
|
10
|
+
size?: 12 | 14 | 16 | 20 | 24 | 32 | 48;
|
|
11
|
+
/** The platform's name is printed beside it: hide the logo from screen readers. */
|
|
12
|
+
decorative?: boolean;
|
|
13
|
+
}> & Readonly<{}>, {
|
|
14
|
+
size: 12 | 14 | 16 | 20 | 24 | 32 | 48;
|
|
15
|
+
decorative: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
severity: number | string | null | undefined;
|
|
3
|
+
/** `badge` for tables and headers; `dot` for dense inline use. */
|
|
4
|
+
variant?: 'badge' | 'dot';
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
variant: "badge" | "dot";
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type StatusTone } from '../../registries/status';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
status: string | null | undefined;
|
|
4
|
+
/** Registry domain for domain-specific statuses (see registerStatuses). */
|
|
5
|
+
domain?: string;
|
|
6
|
+
/** Override the registry label (rare — prefer registerStatuses). */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Override the registry tone (rare). */
|
|
9
|
+
tone?: StatusTone;
|
|
10
|
+
};
|
|
11
|
+
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>;
|
|
12
|
+
export default _default;
|