@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,48 @@
|
|
|
1
|
+
export type ItChangeAction = 'create' | 'update' | 'delete' | 'publish';
|
|
2
|
+
export type ItChangeValue = string | number | boolean | null | undefined | readonly string[];
|
|
3
|
+
export interface ItChangeField {
|
|
4
|
+
label: string;
|
|
5
|
+
/** Omit (or null) for a field that does not exist yet. */
|
|
6
|
+
before?: ItChangeValue;
|
|
7
|
+
/** Omit (or null) for a field that goes away. */
|
|
8
|
+
after?: ItChangeValue;
|
|
9
|
+
}
|
|
10
|
+
export interface ItChange {
|
|
11
|
+
id: string;
|
|
12
|
+
action: ItChangeAction;
|
|
13
|
+
/** The kind of object: "Trigger", "Tag", "Workspace", "Version". */
|
|
14
|
+
objectType: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/** Platform alias; its chip goes before the name. */
|
|
17
|
+
platform?: string;
|
|
18
|
+
/** Why it changes, in one line: "No trigger named Consent Mode - page_view". */
|
|
19
|
+
reason?: string;
|
|
20
|
+
/** Changes a live setup (publish, pause): marked "Live". */
|
|
21
|
+
live?: boolean;
|
|
22
|
+
fields?: ItChangeField[];
|
|
23
|
+
/** Ids of the changes this one needs (with `selectable`: approving it approves them; leaving one out leaves it out). */
|
|
24
|
+
requires?: string[];
|
|
25
|
+
}
|
|
26
|
+
type __VLS_Props = {
|
|
27
|
+
changes: ItChange[];
|
|
28
|
+
/** Names the list: "Changes to GTM-NX42K". */
|
|
29
|
+
label: string;
|
|
30
|
+
emptyText?: string;
|
|
31
|
+
/** An Approve box on each change. */
|
|
32
|
+
selectable?: boolean;
|
|
33
|
+
/** The approved change ids (v-model:selected). */
|
|
34
|
+
selected?: string[];
|
|
35
|
+
/** Ids shown partly checked: approved on some of the targets the list stands for. */
|
|
36
|
+
mixed?: string[];
|
|
37
|
+
};
|
|
38
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
"update:selected": (ids: string[]) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
|
+
"onUpdate:selected"?: ((ids: string[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
mixed: string[];
|
|
44
|
+
selected: string[];
|
|
45
|
+
selectable: boolean;
|
|
46
|
+
emptyText: string;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ItCodeLanguage } from './highlight';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The code, as text. */
|
|
4
|
+
code?: string;
|
|
5
|
+
/** Any data, shown as formatted JSON (sets the language to json). Used when `code` is not set. */
|
|
6
|
+
value?: unknown;
|
|
7
|
+
/** Highlighting. Default: `json` with `value`, else `text` (no highlighting). */
|
|
8
|
+
language?: ItCodeLanguage;
|
|
9
|
+
/** Accessible name of the region: what the code is ("Rule-engine expression"). */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Lines shown before the block scrolls. */
|
|
12
|
+
maxLines?: number;
|
|
13
|
+
/** Show the copy button. */
|
|
14
|
+
copyable?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
code: string;
|
|
18
|
+
value: undefined;
|
|
19
|
+
language: ItCodeLanguage;
|
|
20
|
+
maxLines: number;
|
|
21
|
+
copyable: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { type ItRowSelection, type ItTableSource } from './table-source';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: unknown[] | null;
|
|
4
|
+
/** PrimeVue's frozen rows; shared expansion uses the same key contract. */
|
|
5
|
+
frozenValue?: unknown[] | null;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/** 0-based offset of the first row on the page. Use with `v-model:first`, or omit for internal state. */
|
|
8
|
+
first?: number;
|
|
9
|
+
rows?: number;
|
|
10
|
+
/** `auto` shows the paginator only when there can be more than one page (value.length, or totalRecords when lazy; hasNext or hasPrevious in cursor mode). */
|
|
11
|
+
paginator?: boolean | 'auto';
|
|
12
|
+
rowsPerPageOptions?: number[];
|
|
13
|
+
/** Total rows for lazy/server pagination. Not used in cursor mode. */
|
|
14
|
+
totalRecords?: number;
|
|
15
|
+
/** `cursor` for keyset APIs that only know whether there is a next page. */
|
|
16
|
+
paginationMode?: 'offset' | 'cursor';
|
|
17
|
+
/** Cursor mode: a page follows this one (the API's `hasMore`). */
|
|
18
|
+
hasNext?: boolean;
|
|
19
|
+
/** Cursor mode: a page comes before this one. */
|
|
20
|
+
hasPrevious?: boolean;
|
|
21
|
+
/** Shows the "1–10 of 480" range next to the pages. Off by default: the count belongs in the ItDataToolbar above, as in the Suite. */
|
|
22
|
+
paginatorReport?: boolean;
|
|
23
|
+
emptyTitle?: string;
|
|
24
|
+
emptyDescription?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The last load failed: a danger callout takes the rows' place, never an
|
|
27
|
+
* empty state ("No results" would claim there is nothing). A string says
|
|
28
|
+
* why, in a few words; `true` uses the default line. Retry shows when
|
|
29
|
+
* there is a `@retry` listener; `#error` replaces the callout. While
|
|
30
|
+
* `loading` (the retry), the skeleton shows as usual.
|
|
31
|
+
*/
|
|
32
|
+
error?: string | boolean;
|
|
33
|
+
/** Skeleton column count while loading. */
|
|
34
|
+
skeletonColumns?: number;
|
|
35
|
+
/** Adds hover cursor for tables that open a row on click. */
|
|
36
|
+
rowClickable?: boolean;
|
|
37
|
+
/** Column field or columnKey that fills the remaining width. */
|
|
38
|
+
primaryColumn?: string;
|
|
39
|
+
/** Column fields or columnKeys that fit their content without wrapping. */
|
|
40
|
+
compactColumns?: readonly string[];
|
|
41
|
+
/** Shared row details: row click, trailing trigger, and animated #expansion. Requires dataKey. */
|
|
42
|
+
expandable?: boolean;
|
|
43
|
+
/** The row's name, used in the expansion button and region labels. Defaults to its key. */
|
|
44
|
+
expansionLabel?(row: unknown): string;
|
|
45
|
+
/** Label templates. {name} is expansionLabel(row), or the row key. */
|
|
46
|
+
expandLabel?: string;
|
|
47
|
+
collapseLabel?: string;
|
|
48
|
+
expansionRegionLabel?: string;
|
|
49
|
+
/** Single or multiple selection: unavailable rows cannot be selected. */
|
|
50
|
+
rowSelectable?(row: unknown): boolean;
|
|
51
|
+
/** Accessible explanation on a disabled checkbox or radio. */
|
|
52
|
+
rowSelectableReason?(row: unknown): string | undefined;
|
|
53
|
+
/** PrimeVue's stable row key. Required for shared expansion. */
|
|
54
|
+
dataKey?: string | ((row: any) => string);
|
|
55
|
+
/** PrimeVue-compatible expansion model. Omit for internal state in expandable mode. */
|
|
56
|
+
expandedRows?: unknown[] | Record<string, boolean> | null;
|
|
57
|
+
/** Rows from an API, a window at a time. `value`, `loading`, `error`, and `totalRecords` are then the table's own. */
|
|
58
|
+
source?: ItTableSource;
|
|
59
|
+
/** With `source`: the search text the API filters by (bind the toolbar's v-model:search). */
|
|
60
|
+
search?: string;
|
|
61
|
+
/** With `source`: the app's filters, sent to the API as `filters`. A change starts at page one. */
|
|
62
|
+
sourceFilters?: Readonly<Record<string, unknown>>;
|
|
63
|
+
/** With `source`: pages per request. 5 loads 50 rows for a 10-row page. */
|
|
64
|
+
prefetchPages?: number;
|
|
65
|
+
/** A checkbox column: select rows by key, or every matching row (v-model:selected). Requires dataKey. */
|
|
66
|
+
selectable?: boolean;
|
|
67
|
+
/** v-model:selected. Omit for internal state. */
|
|
68
|
+
selected?: ItRowSelection;
|
|
69
|
+
};
|
|
70
|
+
declare function retry(): void;
|
|
71
|
+
declare var __VLS_33: {}, __VLS_48: string, __VLS_49: any, __VLS_58: {
|
|
72
|
+
data: any;
|
|
73
|
+
index: number;
|
|
74
|
+
}, __VLS_72: {
|
|
75
|
+
message: string;
|
|
76
|
+
retry: typeof retry;
|
|
77
|
+
}, __VLS_81: {};
|
|
78
|
+
type __VLS_Slots = {} & {
|
|
79
|
+
[K in NonNullable<typeof __VLS_48>]?: (props: typeof __VLS_49) => any;
|
|
80
|
+
} & {
|
|
81
|
+
default?: (props: typeof __VLS_33) => any;
|
|
82
|
+
} & {
|
|
83
|
+
groupheader?: (props: typeof __VLS_58) => any;
|
|
84
|
+
} & {
|
|
85
|
+
error?: (props: typeof __VLS_72) => any;
|
|
86
|
+
} & {
|
|
87
|
+
empty?: (props: typeof __VLS_81) => any;
|
|
88
|
+
};
|
|
89
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
90
|
+
/** With `source`: load the page again (the data changed), keeping the current rows until it arrives. */
|
|
91
|
+
refresh: () => void;
|
|
92
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
93
|
+
"update:selected": (value: ItRowSelection) => any;
|
|
94
|
+
retry: () => any;
|
|
95
|
+
loaded: (page: {
|
|
96
|
+
total: number;
|
|
97
|
+
}) => any;
|
|
98
|
+
"update:expandedRows": (value: unknown[] | Record<string, boolean> | null) => any;
|
|
99
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
100
|
+
"onUpdate:selected"?: ((value: ItRowSelection) => any) | undefined;
|
|
101
|
+
onRetry?: (() => any) | undefined;
|
|
102
|
+
onLoaded?: ((page: {
|
|
103
|
+
total: number;
|
|
104
|
+
}) => any) | undefined;
|
|
105
|
+
"onUpdate:expandedRows"?: ((value: unknown[] | Record<string, boolean> | null) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
search: string;
|
|
108
|
+
source: ItTableSource;
|
|
109
|
+
error: string | boolean;
|
|
110
|
+
value: unknown[] | null;
|
|
111
|
+
selected: ItRowSelection;
|
|
112
|
+
emptyTitle: string;
|
|
113
|
+
rows: number;
|
|
114
|
+
first: number;
|
|
115
|
+
totalRecords: number;
|
|
116
|
+
rowsPerPageOptions: number[];
|
|
117
|
+
hasNext: boolean;
|
|
118
|
+
hasPrevious: boolean;
|
|
119
|
+
paginator: boolean | "auto";
|
|
120
|
+
paginationMode: "offset" | "cursor";
|
|
121
|
+
paginatorReport: boolean;
|
|
122
|
+
skeletonColumns: number;
|
|
123
|
+
expandLabel: string;
|
|
124
|
+
collapseLabel: string;
|
|
125
|
+
expansionRegionLabel: string;
|
|
126
|
+
sourceFilters: Readonly<Record<string, unknown>>;
|
|
127
|
+
prefetchPages: number;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** v-model:search. Omit to hide the search box. */
|
|
3
|
+
search?: string;
|
|
4
|
+
searchLabel?: string;
|
|
5
|
+
searchPlaceholder?: string;
|
|
6
|
+
/** Debounce for search updates (ms). */
|
|
7
|
+
searchDebounce?: number;
|
|
8
|
+
/** Total results after filtering. Omit to hide the count. */
|
|
9
|
+
count?: number | null;
|
|
10
|
+
/** Total before filtering, when known. Shows "12 of 40 findings". Never use an estimate. */
|
|
11
|
+
total?: number | null;
|
|
12
|
+
/** Plural noun for the count: "findings". */
|
|
13
|
+
noun?: string;
|
|
14
|
+
/** Singular noun: "finding". Defaults to noun minus a trailing "s". */
|
|
15
|
+
nounSingular?: string;
|
|
16
|
+
/** Shows the "Clear" button next to the filters. */
|
|
17
|
+
filtersActive?: boolean;
|
|
18
|
+
/** Number of selected rows. > 0 switches to the bulk-action bar. */
|
|
19
|
+
selectedCount?: number;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = {
|
|
22
|
+
/**
|
|
23
|
+
* The app's own search control (an ItAutoComplete that suggests values),
|
|
24
|
+
* in place of the built-in search box. It sits where the box sits and
|
|
25
|
+
* gives up width first; use a small (28px) control.
|
|
26
|
+
*/
|
|
27
|
+
search?: () => unknown;
|
|
28
|
+
/** Filter chips (ItFilterChip). */
|
|
29
|
+
filters?: () => unknown;
|
|
30
|
+
/** Right side: view toggles, export, column settings. */
|
|
31
|
+
actions?: () => unknown;
|
|
32
|
+
/** Actions for the selected rows. */
|
|
33
|
+
bulk?: () => unknown;
|
|
34
|
+
/** Replace the count text. */
|
|
35
|
+
count?: () => unknown;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:search": (value: string) => any;
|
|
39
|
+
"clear-filters": () => any;
|
|
40
|
+
"clear-selection": () => any;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
43
|
+
"onClear-filters"?: (() => any) | undefined;
|
|
44
|
+
"onClear-selection"?: (() => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
noun: string;
|
|
47
|
+
selectedCount: number;
|
|
48
|
+
searchLabel: string;
|
|
49
|
+
searchDebounce: number;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ItDescriptionItem {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string | number | null;
|
|
5
|
+
/** Render the value in the mono face (IDs, codes). */
|
|
6
|
+
mono?: boolean;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
items: ItDescriptionItem[];
|
|
10
|
+
/** `inline` = label column + value column; `stacked` = label above value, in a grid. */
|
|
11
|
+
layout?: 'inline' | 'stacked';
|
|
12
|
+
columns?: 1 | 2 | 3 | 4;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_2: string, __VLS_3: {
|
|
15
|
+
item: ItDescriptionItem;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
layout: "inline" | "stacked";
|
|
22
|
+
columns: 1 | 2 | 3 | 4;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: Component;
|
|
6
|
+
/** `sm` inside tables and panels; `md` for a whole empty page. */
|
|
7
|
+
size?: 'sm' | 'md';
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
default?: () => unknown;
|
|
11
|
+
actions?: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
size: "sm" | "md";
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type ItRouteLocation } from '../../utils/router';
|
|
2
|
+
import type { ItKpiTone } from './kpi';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Numbers are formatted with formatCount (1,284). */
|
|
6
|
+
value?: string | number;
|
|
7
|
+
subtext?: string;
|
|
8
|
+
/** Change next to the value, e.g. "−38 this week". */
|
|
9
|
+
delta?: string;
|
|
10
|
+
/** Whether the change is good or bad for the user (not up or down). */
|
|
11
|
+
deltaTone?: 'good' | 'bad' | 'neutral';
|
|
12
|
+
/** Recolors the value only. */
|
|
13
|
+
tone?: ItKpiTone;
|
|
14
|
+
/** Reveal `#detail` by expanding over adjacent cards on hover or focus. */
|
|
15
|
+
expandable?: boolean;
|
|
16
|
+
/** Preferred anchored edge. Flips when the other side has more available room. */
|
|
17
|
+
align?: 'left' | 'right';
|
|
18
|
+
/** Expanded width (any CSS length), capped to the visible content area. */
|
|
19
|
+
expandedWidth?: string;
|
|
20
|
+
/** Skeleton in place of the value (and the detail, unless `detailLoading` is set). */
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
/** Skeleton in place of the detail only, e.g. while it loads on expand. Defaults to `loading`. */
|
|
23
|
+
detailLoading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The value did not load: "Couldn't load" and Retry instead of the
|
|
26
|
+
* value (and of the detail). A string says what happened, in a few
|
|
27
|
+
* words ("The rules service didn't respond."). `loading` wins while a
|
|
28
|
+
* retry runs.
|
|
29
|
+
*/
|
|
30
|
+
error?: string | boolean;
|
|
31
|
+
/** Delay before opening, so a pointer crossing the row does not open every card. */
|
|
32
|
+
openDelay?: number;
|
|
33
|
+
/** Static cards only: the whole card links here. */
|
|
34
|
+
to?: ItRouteLocation;
|
|
35
|
+
/** Static cards only: the whole card links here. */
|
|
36
|
+
href?: string;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Slots = {
|
|
39
|
+
/** Replaces label, value, delta, trend, subtext, and footer. */
|
|
40
|
+
compact?: () => unknown;
|
|
41
|
+
/** Next to the value, after `delta`. Not shown while loading. */
|
|
42
|
+
trend?: () => unknown;
|
|
43
|
+
/** Under the subtext: a severity bar or a sparkline. Not shown while loading. */
|
|
44
|
+
footer?: () => unknown;
|
|
45
|
+
/** Expandable cards: the content revealed on expand. */
|
|
46
|
+
detail?: () => unknown;
|
|
47
|
+
/** Shown instead of `#detail` while the detail loads. Defaults to three skeleton lines. */
|
|
48
|
+
'detail-skeleton'?: () => unknown;
|
|
49
|
+
/** Replaces the error callout. Expandable cards put it in the detail; static cards put it on the face. */
|
|
50
|
+
error?: (scope: {
|
|
51
|
+
message: string;
|
|
52
|
+
retry: () => void;
|
|
53
|
+
}) => unknown;
|
|
54
|
+
};
|
|
55
|
+
declare function expand(): void;
|
|
56
|
+
declare function collapse(): void;
|
|
57
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
58
|
+
expand: typeof expand;
|
|
59
|
+
collapse: typeof collapse;
|
|
60
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
retry: () => any;
|
|
62
|
+
expand: () => any;
|
|
63
|
+
collapse: () => any;
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
65
|
+
onRetry?: (() => any) | undefined;
|
|
66
|
+
onExpand?: (() => any) | undefined;
|
|
67
|
+
onCollapse?: (() => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
label: string;
|
|
70
|
+
error: string | boolean;
|
|
71
|
+
tone: ItKpiTone;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
value: string | number;
|
|
74
|
+
expandable: boolean;
|
|
75
|
+
subtext: string;
|
|
76
|
+
delta: string;
|
|
77
|
+
deltaTone: "good" | "bad" | "neutral";
|
|
78
|
+
align: "left" | "right";
|
|
79
|
+
expandedWidth: string;
|
|
80
|
+
detailLoading: boolean;
|
|
81
|
+
openDelay: number;
|
|
82
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
84
|
+
export default _default;
|
|
85
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ItKpiBarTone, ItKpiDetailItem } from './kpi';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Bar rows. Omit for a detail without bars; pass `[]` to show `emptyText`. */
|
|
5
|
+
items?: ItKpiDetailItem[];
|
|
6
|
+
/** Bar fill: accent for neutral counts, danger for critical, warning for warnings. */
|
|
7
|
+
tone?: ItKpiBarTone;
|
|
8
|
+
/** Rows become buttons (Enter/Space or click) that emit `select`. */
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
/** Scale for the bars. Defaults to the largest value. */
|
|
11
|
+
max?: number;
|
|
12
|
+
note?: string;
|
|
13
|
+
emptyText?: string;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
/** Replaces the row label, e.g. a platform chip plus the name. */
|
|
17
|
+
label?: (scope: {
|
|
18
|
+
item: ItKpiDetailItem;
|
|
19
|
+
}) => unknown;
|
|
20
|
+
/** Content after the bars (or in place of them). */
|
|
21
|
+
default?: () => unknown;
|
|
22
|
+
/** Replaces the `note` text. */
|
|
23
|
+
note?: () => unknown;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
select: (item: ItKpiDetailItem) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onSelect?: ((item: ItKpiDetailItem) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
tone: ItKpiBarTone;
|
|
31
|
+
selectable: boolean;
|
|
32
|
+
emptyText: string;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
columns?: 2 | 3 | 4;
|
|
3
|
+
/** Accessible name for the group, e.g. "Monitor summary". */
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
columns: 2 | 3 | 4;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type ItRouteLocation } from '../../utils/router';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The object's name. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Mono ID after the name ("GTM-NX42K"). */
|
|
6
|
+
code?: string | null;
|
|
7
|
+
/** Muted text after the name ("4 labels"). */
|
|
8
|
+
meta?: string | null;
|
|
9
|
+
/** Platform alias for an ItPlatformChip before the name. The `leading` slot replaces it. */
|
|
10
|
+
platform?: string | null;
|
|
11
|
+
/** The name links to a route. */
|
|
12
|
+
to?: ItRouteLocation;
|
|
13
|
+
/** The name links to a URL. */
|
|
14
|
+
href?: string;
|
|
15
|
+
/** Browsing context for a URL or router link. */
|
|
16
|
+
target?: string;
|
|
17
|
+
/** Link relationship. New tabs include noopener noreferrer by default. */
|
|
18
|
+
rel?: string;
|
|
19
|
+
/** The name is a button that reads as a link and emits `select` (opens a drawer). */
|
|
20
|
+
clickable?: boolean;
|
|
21
|
+
/** Accessible name of the link or button, when the visible name needs context ("View assets labelled UK"). */
|
|
22
|
+
label?: string;
|
|
23
|
+
/** Hide the ID below this breakpoint, so the name keeps its room in narrow tables. */
|
|
24
|
+
hideCodeBelow?: 'lg' | 'xl' | '2xl';
|
|
25
|
+
/**
|
|
26
|
+
* One line about the object, in the hover hint on the name (a list that
|
|
27
|
+
* has no room for a description column). Screen readers get it as the
|
|
28
|
+
* name's description.
|
|
29
|
+
*/
|
|
30
|
+
description?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Show the description as a muted second line under the name instead of
|
|
33
|
+
* in the hint: for catalog tables (a library of actions or templates)
|
|
34
|
+
* read for what each row is, not worklists. It truncates to one line.
|
|
35
|
+
*/
|
|
36
|
+
descriptionLine?: boolean;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Slots = {
|
|
39
|
+
/** Before the name: an icon or a chip. Replaces the `platform` chip. */
|
|
40
|
+
leading?: () => unknown;
|
|
41
|
+
};
|
|
42
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
select: (event: MouseEvent) => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
+
onSelect?: ((event: MouseEvent) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
code: string | null;
|
|
48
|
+
label: string;
|
|
49
|
+
meta: string | null;
|
|
50
|
+
description: string | null;
|
|
51
|
+
href: string;
|
|
52
|
+
to: ItRouteLocation;
|
|
53
|
+
clickable: boolean;
|
|
54
|
+
platform: string | null;
|
|
55
|
+
hideCodeBelow: "lg" | "xl" | "2xl";
|
|
56
|
+
descriptionLine: boolean;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface ItPageState {
|
|
2
|
+
page: number;
|
|
3
|
+
first: number;
|
|
4
|
+
rows: number;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
/** 0-based offset of the first record on the page. */
|
|
9
|
+
first?: number;
|
|
10
|
+
rows?: number;
|
|
11
|
+
totalRecords: number;
|
|
12
|
+
/** Number of page buttons in the sliding window. */
|
|
13
|
+
pageLinkSize?: number;
|
|
14
|
+
/** Rows-per-page choices; the selector shows only when this is non-empty. */
|
|
15
|
+
rowsPerPageOptions?: number[];
|
|
16
|
+
showFirstLast?: boolean;
|
|
17
|
+
showReport?: boolean;
|
|
18
|
+
/** Tokens: {first} {last} {totalRecords} {currentPage} {totalPages} {rows}. */
|
|
19
|
+
reportTemplate?: string;
|
|
20
|
+
mode?: 'offset' | 'cursor';
|
|
21
|
+
hasNext?: boolean;
|
|
22
|
+
hasPrevious?: boolean;
|
|
23
|
+
/** Ignores page navigation while a page loads. The buttons look the same. */
|
|
24
|
+
busy?: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
page: (state: ItPageState) => any;
|
|
28
|
+
"update:first": (value: number) => any;
|
|
29
|
+
"update:rows": (value: number) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onPage?: ((state: ItPageState) => any) | undefined;
|
|
32
|
+
"onUpdate:first"?: ((value: number) => any) | undefined;
|
|
33
|
+
"onUpdate:rows"?: ((value: number) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
mode: "offset" | "cursor";
|
|
36
|
+
rows: number;
|
|
37
|
+
first: number;
|
|
38
|
+
pageLinkSize: number;
|
|
39
|
+
rowsPerPageOptions: number[];
|
|
40
|
+
showFirstLast: boolean;
|
|
41
|
+
showReport: boolean;
|
|
42
|
+
reportTemplate: string;
|
|
43
|
+
hasNext: boolean;
|
|
44
|
+
hasPrevious: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Heading text. The `heading` slot replaces it (e.g. a platform chip). */
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Muted text after the heading: the count ("2 connections"). */
|
|
5
|
+
meta?: string;
|
|
6
|
+
/** Accessible name for the list when there is no visible heading. */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** h3 in drawers and panels (their title is the h2); h4 under an h3. */
|
|
9
|
+
headingLevel?: 3 | 4;
|
|
10
|
+
/** `boxed` = bordered, rounded list (drawers, panel bodies); `flush` = rows run edge to edge (an ItPanel with padding="none"). */
|
|
11
|
+
variant?: 'boxed' | 'flush';
|
|
12
|
+
/** Room held for this many rows with a meta line, whatever is in the list: a checklist cleared row by row never changes height. */
|
|
13
|
+
reserveRows?: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
/** Replaces the heading text; keep it short (a chip, a name). */
|
|
17
|
+
heading?: () => unknown;
|
|
18
|
+
/** Right side of the heading row (an "Add" button). */
|
|
19
|
+
actions?: () => unknown;
|
|
20
|
+
/** ItResourceListItem rows. */
|
|
21
|
+
default?: () => unknown;
|
|
22
|
+
/** Shown when there are no rows (an ItEmptyState), in the middle of the room `reserveRows` holds. */
|
|
23
|
+
empty?: () => unknown;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
+
label: string;
|
|
27
|
+
meta: string;
|
|
28
|
+
title: string;
|
|
29
|
+
variant: "boxed" | "flush";
|
|
30
|
+
headingLevel: 3 | 4;
|
|
31
|
+
reserveRows: number;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ItRouteLocation } from '../../utils/router';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The object's name. */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Muted line under the title ("6 accounts · Updated Oct 16, 6:02 AM"). The `meta` slot replaces it. */
|
|
6
|
+
meta?: string;
|
|
7
|
+
/** The row does something on click: the title becomes a button and the row emits `select`. */
|
|
8
|
+
clickable?: boolean;
|
|
9
|
+
/** The row goes to an app route: a RouterLink when the app has vue-router (no page reload), a plain link otherwise. */
|
|
10
|
+
to?: ItRouteLocation;
|
|
11
|
+
/** The row goes to a URL: the title becomes a link and the row emits `select` on click. */
|
|
12
|
+
href?: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {
|
|
15
|
+
/** Before the text: an icon or a platform chip. */
|
|
16
|
+
leading?: () => unknown;
|
|
17
|
+
/** Rich meta line (chips, mono IDs); replaces the `meta` prop. */
|
|
18
|
+
meta?: () => unknown;
|
|
19
|
+
/** Trailing state: ItStatus or ItSeverityBadge. Never truncates. */
|
|
20
|
+
status?: () => unknown;
|
|
21
|
+
/** Trailing row action: one small button or ItIconButton. */
|
|
22
|
+
actions?: () => unknown;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
select: (event: MouseEvent) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onSelect?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
meta: string;
|
|
30
|
+
href: string;
|
|
31
|
+
to: ItRouteLocation;
|
|
32
|
+
clickable: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|