@cjlapao/ui-kit-vue 0.2.28 → 0.2.30
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/dist/index.cjs +16 -16
- package/dist/index.css +235 -81
- package/dist/index.js +12877 -12594
- package/dist/types/common/connectionFlow/skeleton.d.ts +13 -0
- package/dist/types/common/connectionFlow/tones.d.ts +8 -0
- package/dist/types/common/theme/multiToggleMotion.d.ts +7 -0
- package/dist/types/common/theme/springs.d.ts +19 -0
- package/dist/types/common/types/InfiniteScroll.d.ts +11 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSkeleton.vue.d.ts +5 -8
- package/dist/types/vue/src/components/MultiToggle.vue.d.ts +7 -0
- package/dist/types/vue/src/components/Table.vue.d.ts +4 -0
- package/dist/types/vue/src/components/TableInfiniteScroll.test.d.ts +1 -0
- package/dist/types/vue/src/components/TableInfiniteScroll.vue.d.ts +14 -0
- package/dist/types/vue/src/components/index.d.ts +1 -1
- package/dist/types/vue/src/composables/useInfiniteScroll.d.ts +15 -0
- package/dist/types/vue/src/icons/components/AgentFlow.d.ts +3 -0
- package/dist/types/vue/src/icons/components/AiAgent.d.ts +3 -0
- package/dist/types/vue/src/icons/components/FlowChart.d.ts +3 -0
- package/dist/types/vue/src/icons/index.d.ts +3 -0
- package/dist/types/vue/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ConnectionFlowLayout, NodeMetrics } from "./types";
|
|
2
|
+
/** Use known topology while refreshing; otherwise preview a small branch and merge. */
|
|
3
|
+
export declare const getSkeletonLayout: (metrics: NodeMetrics, layout?: ConnectionFlowLayout, count?: number) => ConnectionFlowLayout;
|
|
4
|
+
/** Fit every card, connector and overhang with breathing room on all sides. */
|
|
5
|
+
export declare const skeletonViewBox: (layout: ConnectionFlowLayout, padding: number) => string;
|
|
6
|
+
/** Placeholder bars reflect the card's available body area, including taller cards. */
|
|
7
|
+
export declare const skeletonCardBars: (width: number, height: number, metrics: NodeMetrics) => {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
radius: number;
|
|
13
|
+
}[];
|
|
@@ -77,3 +77,11 @@ export interface NodeSurface {
|
|
|
77
77
|
effect: string;
|
|
78
78
|
}
|
|
79
79
|
export declare const getNodeSurface: (tone: TrueColor | undefined, variant: SurfaceVariant | undefined) => NodeSurface;
|
|
80
|
+
/** Connector captions use a neutral Panel surface with a readable, persistent rim. */
|
|
81
|
+
export declare const getCaptionSurface: (variant: SurfaceVariant) => {
|
|
82
|
+
stroke: string;
|
|
83
|
+
text: string;
|
|
84
|
+
fill: string;
|
|
85
|
+
/** Extra classes on the path — a drop shadow for `elevated`. */
|
|
86
|
+
effect: string;
|
|
87
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Geometry stays bounded during spring overshoot, including simultaneous resizing. */
|
|
2
|
+
export declare const getMultiToggleMotionStyle: (offset: number, width: number, trackWidth: number, paddingLeft: number, paddingRight: number, inset: number) => {
|
|
3
|
+
"--mt-offset": string;
|
|
4
|
+
"--mt-width": string;
|
|
5
|
+
"--mt-left": string;
|
|
6
|
+
"--mt-right": string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The spring curves, tuned by how far they overshoot.
|
|
3
|
+
*
|
|
4
|
+
* The `1.56` in the third position of the default curve is the whole trick:
|
|
5
|
+
* a control point above 1 pushes the interpolated value past its target and
|
|
6
|
+
* settles it back down, which is what reads as elastic. `precise` is the
|
|
7
|
+
* same transition with the overshoot dialled off, for when a control should
|
|
8
|
+
* feel engineered rather than playful.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CONTROL_SPRINGS: readonly ["bouncy", "snappy", "gentle", "precise"];
|
|
11
|
+
export type ControlSpring = (typeof CONTROL_SPRINGS)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Exported so any component that moves on the kit's physics rides *this*
|
|
14
|
+
* table — one set of curves for the whole kit, never a copied bezier.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CONTROL_SPRING_TOKENS: Record<ControlSpring, {
|
|
17
|
+
easing: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Parent-owned incremental data loading shared by tables in both frameworks. */
|
|
2
|
+
export interface TableInfiniteScrollState {
|
|
3
|
+
hasMore: boolean;
|
|
4
|
+
/** Append the next page to data before this promise resolves. */
|
|
5
|
+
onLoadMore: () => Promise<void>;
|
|
6
|
+
/** Bottom preload distance in pixels. Defaults to 320. */
|
|
7
|
+
rootMargin?: number;
|
|
8
|
+
onError?: (error: unknown) => void;
|
|
9
|
+
/** Change when replacing the dataset, such as after server sorting or filtering. */
|
|
10
|
+
resetKey?: string | number;
|
|
11
|
+
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ConnectionFlowLayout, type NodeMetrics } from "../../connectionFlow";
|
|
2
2
|
import type { SurfaceVariant } from "../../theme/Theme";
|
|
3
|
-
/**
|
|
4
|
-
* Placeholder cards in a plain chain, at the real card size.
|
|
5
|
-
*
|
|
6
|
-
* Shaped from `NodeMetrics` rather than guessed, so the frame holds the height
|
|
7
|
-
* a real graph would need and nothing jumps when the data lands.
|
|
8
|
-
*/
|
|
3
|
+
/** A fitted flow preview with connected cards, glyphs and varied body rows. */
|
|
9
4
|
type __VLS_Props = {
|
|
10
5
|
variant: SurfaceVariant;
|
|
11
6
|
metrics: NodeMetrics;
|
|
12
|
-
/**
|
|
7
|
+
/** Known graph topology to mirror while refreshing. */
|
|
8
|
+
layout?: ConnectionFlowLayout;
|
|
9
|
+
/** Placeholder cards when no topology is available. @default 6 */
|
|
13
10
|
count?: number;
|
|
14
11
|
};
|
|
15
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
+
import { type ControlSpring } from "../../../common/theme/springs";
|
|
2
3
|
import { type ControlSize, type SurfaceVariant, type TrueColor } from "../theme/Theme";
|
|
3
4
|
/**
|
|
4
5
|
* The shared control scale. Was a component-local `sm | md | lg`, so a toggle
|
|
@@ -39,6 +40,10 @@ export interface MultiToggleProps {
|
|
|
39
40
|
size?: MultiToggleSize;
|
|
40
41
|
color?: TrueColor;
|
|
41
42
|
fullWidth?: boolean;
|
|
43
|
+
/** Spring preset shared with ExpandableButton. @default "bouncy" */
|
|
44
|
+
spring?: ControlSpring;
|
|
45
|
+
/** Override the spring duration in milliseconds. */
|
|
46
|
+
springDuration?: number;
|
|
42
47
|
showOnlyActiveLabel?: boolean;
|
|
43
48
|
truncateOverflow?: boolean;
|
|
44
49
|
adaptiveWidth?: boolean;
|
|
@@ -68,7 +73,9 @@ declare const _default: import("vue").DefineComponent<MultiToggleProps, {}, {},
|
|
|
68
73
|
color: TrueColor;
|
|
69
74
|
variant: MultiToggleVariant;
|
|
70
75
|
fullWidth: boolean;
|
|
76
|
+
spring: ControlSpring;
|
|
71
77
|
showOnlyActiveLabel: boolean;
|
|
78
|
+
truncateOverflow: boolean;
|
|
72
79
|
adaptiveWidth: boolean;
|
|
73
80
|
activeWidthStrategy: MultiToggleActiveWidthStrategy;
|
|
74
81
|
indicator: MultiToggleIndicator;
|
|
@@ -4,6 +4,8 @@ import { type SurfaceCorner, type SurfaceVariant, type TableDensity } from "../t
|
|
|
4
4
|
import type { PanelTone } from "./Panel.vue";
|
|
5
5
|
import { type TableStorageAdapter } from "../utils/tableStorage";
|
|
6
6
|
import type { TableSettings } from "../types/TableSettings";
|
|
7
|
+
import type { TableInfiniteScrollState } from "../../../common/types/InfiniteScroll";
|
|
8
|
+
export type { TableInfiniteScrollState } from "../../../common/types/InfiniteScroll";
|
|
7
9
|
type SortDirection = "asc" | "desc";
|
|
8
10
|
export interface TableSortState {
|
|
9
11
|
columnId: string;
|
|
@@ -133,6 +135,8 @@ export interface TableProps<T> {
|
|
|
133
135
|
headerActions?: VNodeChild;
|
|
134
136
|
footer?: VNodeChild;
|
|
135
137
|
pagination?: TablePaginationState;
|
|
138
|
+
/** Append pages in the existing viewport; takes precedence over pagination. */
|
|
139
|
+
infiniteScroll?: TableInfiniteScrollState;
|
|
136
140
|
maxHeight?: string | number;
|
|
137
141
|
rowClassName?: (row: T, index: number) => string;
|
|
138
142
|
/** When provided and returns true for a row, that row is rendered with an intense accent background and a pulsing left-border indicator to signal new/updated content. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TableInfiniteScrollState } from "../../../common/types/InfiniteScroll";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config: TableInfiniteScrollState;
|
|
4
|
+
itemCount: number;
|
|
5
|
+
busy: boolean;
|
|
6
|
+
error: unknown;
|
|
7
|
+
loadMore: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
sentinel: (element: HTMLDivElement | null) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSentinel?: ((element: HTMLDivElement | null) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -83,7 +83,7 @@ export { default as StatGoalTile, type StatGoalTileProps, type StatGoalItem, } f
|
|
|
83
83
|
export { default as StatGraphTile, type StatGraphTileProps, type StatGraphSeries, } from "./StatGraphTile.vue";
|
|
84
84
|
export { default as StatTile, type StatTileProps } from "./StatTile.vue";
|
|
85
85
|
export { default as Stepper, type StepperProps, type Step } from "./Stepper.vue";
|
|
86
|
-
export { default as Table, type TableProps, type TableColumn, type TableSortState, type TablePaginationState, type Column, type TableVariant, } from "./Table.vue";
|
|
86
|
+
export { default as Table, type TableProps, type TableColumn, type TableSortState, type TablePaginationState, type TableInfiniteScrollState, type Column, type TableVariant, } from "./Table.vue";
|
|
87
87
|
export { default as AccessMatrix, type AccessMatrixProps, type AccessMatrixPermission, } from "./AccessMatrix.vue";
|
|
88
88
|
export { default as VariablePicker, type VariablePickerProps, } from "./VariablePicker.vue";
|
|
89
89
|
export { default as KeyValueArrayField, type KeyValueArrayFieldProps, } from "./KeyValueArrayField.vue";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TableInfiniteScrollState } from "../../../common/types/InfiniteScroll";
|
|
3
|
+
interface Options extends TableInfiniteScrollState {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
itemCount: number;
|
|
6
|
+
minItems?: number;
|
|
7
|
+
}
|
|
8
|
+
/** Shared sentinel and request lifecycle for append-only scroll surfaces. */
|
|
9
|
+
export declare function useInfiniteScroll(rootRef: Ref<HTMLDivElement | null>, sentinelRef: Ref<HTMLDivElement | null>, options: () => Options): {
|
|
10
|
+
isLoadingMore: Ref<boolean, boolean>;
|
|
11
|
+
error: Ref<unknown, unknown>;
|
|
12
|
+
busy: import("vue").ComputedRef<boolean>;
|
|
13
|
+
loadMore: () => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const AgentFlow: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const AiAgent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const FlowChart: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -138,3 +138,6 @@ export * from "./components/Check";
|
|
|
138
138
|
export * from "./components/ArrowChevronLeft";
|
|
139
139
|
export * from "./components/ArrowChevronRight";
|
|
140
140
|
export * from "./components/Drag";
|
|
141
|
+
export * from "./components/AgentFlow";
|
|
142
|
+
export * from "./components/AiAgent";
|
|
143
|
+
export * from "./components/FlowChart";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Component } from "vue";
|
|
2
|
-
export type IconName = "Add" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "Attached" | "Attachment" | "Back" | "Blueprint" | "Bug" | "Chat" | "CheckCircle" | "ChevronLeft" | "ChevronRight" | "Clean" | "Close" | "Close1" | "CloudOff" | "Cog" | "Complete" | "Container" | "CopyClipboard" | "Dashboard" | "Details" | "Docker copy" | "Docker" | "Dots" | "Download" | "Edit" | "Equal" | "Error" | "Export" | "EyeClosed" | "EyeOpen" | "Globe" | "Help" | "Idea" | "Image" | "Info" | "Key" | "LXC-Old" | "LXC" | "Log" | "Moon" | "Notification" | "Official" | "Offline" | "OpenApp" | "Parameter" | "Pause" | "Praise" | "ReportFeedback" | "Reset" | "Restart" | "Rocket" | "Run" | "Save" | "Scale" | "Script" | "Search" | "Send" | "Settings" | "Shop" | "Star" | "Stop" | "Sun" | "Suspend" | "ThemeAuto" | "ThemeDark" | "ThemeLight" | "Trash" | "UX" | "User" | "Users" | "Verified" | "ViewGrid" | "ViewRows" | "Library" | "Host" | "VirtualMachine" | "Role" | "Roles" | "Cache" | "Claim" | "Claims" | "KeyManagement" | "Windows" | "Ubuntu" | "Debian" | "Apple" | "KaliLinux" | "RedHat" | "Fedora" | "CentOS" | "Clone" | "Copy" | "Live" | "HealthCheck" | "ReverseProxy" | "ReverseProxyCORS" | "ReverseProxyRoutes" | "ReverseProxyFrom" | "ReverseProxyHeadersRequest" | "ReverseProxyHeadersResponse" | "ReverseProxyHTTP" | "ReverseProxyTo" | "ReverseProxyTLS" | "ReverseProxyTCP" | "Refresh" | "Calendar" | "Folder" | "Jobs" | "Warning" | "Artifactory" | "Azure" | "Minio" | "Aws" | "Orchestrator" | "Podman" | "PodmanDesktop" | "Group" | "Pin" | "Database" | "RemoteHost" | "Login" | "Logout" | "Snapshot" | "Revert" | "CleanBrush" | "Pull" | "Push" | "CatalogVersion" | "File" | "Revoke" | "Taint" | "Unlock" | "Check" | "ArrowChevronLeft" | "ArrowChevronRight" | "Drag";
|
|
2
|
+
export type IconName = "flow-chart" | "FlowChart" | "AgentFlow" | "AiAgent" | "Add" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "Attached" | "Attachment" | "Back" | "Blueprint" | "Bug" | "Chat" | "CheckCircle" | "ChevronLeft" | "ChevronRight" | "Clean" | "Close" | "Close1" | "CloudOff" | "Cog" | "Complete" | "Container" | "CopyClipboard" | "Dashboard" | "Details" | "Docker copy" | "Docker" | "Dots" | "Download" | "Edit" | "Equal" | "Error" | "Export" | "EyeClosed" | "EyeOpen" | "Globe" | "Help" | "Idea" | "Image" | "Info" | "Key" | "LXC-Old" | "LXC" | "Log" | "Moon" | "Notification" | "Official" | "Offline" | "OpenApp" | "Parameter" | "Pause" | "Praise" | "ReportFeedback" | "Reset" | "Restart" | "Rocket" | "Run" | "Save" | "Scale" | "Script" | "Search" | "Send" | "Settings" | "Shop" | "Star" | "Stop" | "Sun" | "Suspend" | "ThemeAuto" | "ThemeDark" | "ThemeLight" | "Trash" | "UX" | "User" | "Users" | "Verified" | "ViewGrid" | "ViewRows" | "Library" | "Host" | "VirtualMachine" | "Role" | "Roles" | "Cache" | "Claim" | "Claims" | "KeyManagement" | "Windows" | "Ubuntu" | "Debian" | "Apple" | "KaliLinux" | "RedHat" | "Fedora" | "CentOS" | "Clone" | "Copy" | "Live" | "HealthCheck" | "ReverseProxy" | "ReverseProxyCORS" | "ReverseProxyRoutes" | "ReverseProxyFrom" | "ReverseProxyHeadersRequest" | "ReverseProxyHeadersResponse" | "ReverseProxyHTTP" | "ReverseProxyTo" | "ReverseProxyTLS" | "ReverseProxyTCP" | "Refresh" | "Calendar" | "Folder" | "Jobs" | "Warning" | "Artifactory" | "Azure" | "Minio" | "Aws" | "Orchestrator" | "Podman" | "PodmanDesktop" | "Group" | "Pin" | "Database" | "RemoteHost" | "Login" | "Logout" | "Snapshot" | "Revert" | "CleanBrush" | "Pull" | "Push" | "CatalogVersion" | "File" | "Revoke" | "Taint" | "Unlock" | "Check" | "ArrowChevronLeft" | "ArrowChevronRight" | "Drag";
|
|
3
3
|
export declare const iconRegistry: Record<IconName, Component>;
|