prismify-ui 0.1.0-alpha.1
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/CHANGELOG.md +21 -0
- package/CODE_OF_CONDUCT.md +79 -0
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/components/dashboard/PfDashboardGroup/index.vue.d.ts +42 -0
- package/dist/components/dashboard/PfDashboardNavbar/index.vue.d.ts +57 -0
- package/dist/components/dashboard/PfDashboardPanel/index.vue.d.ts +47 -0
- package/dist/components/dashboard/PfDashboardResizeHandle/index.vue.d.ts +28 -0
- package/dist/components/dashboard/PfDashboardSearch/index.vue.d.ts +99 -0
- package/dist/components/dashboard/PfDashboardSearchButton/index.vue.d.ts +71 -0
- package/dist/components/dashboard/PfDashboardSidebar/index.vue.d.ts +121 -0
- package/dist/components/dashboard/PfDashboardSidebarCollapse/index.vue.d.ts +65 -0
- package/dist/components/dashboard/PfDashboardSidebarToggle/index.vue.d.ts +65 -0
- package/dist/components/dashboard/PfDashboardToolbar/index.vue.d.ts +32 -0
- package/dist/components/dashboard/shared/injection.d.ts +30 -0
- package/dist/components/dashboard/shared/resize.d.ts +5 -0
- package/dist/components/dashboard/shared/storage.d.ts +10 -0
- package/dist/components/data/PfAccordion/index.vue.d.ts +167 -0
- package/dist/components/data/PfEmpty/index.vue.d.ts +83 -0
- package/dist/components/data/PfMarquee/index.vue.d.ts +97 -0
- package/dist/components/data/PfScrollArea/index.vue.d.ts +58 -0
- package/dist/components/data/PfTable/index.vue.d.ts +166 -0
- package/dist/components/data/PfTimeline/index.vue.d.ts +105 -0
- package/dist/components/data/PfTree/PfTreeBranch.vue.d.ts +78 -0
- package/dist/components/data/PfTree/PfTreeRow.vue.d.ts +107 -0
- package/dist/components/data/PfTree/index.vue.d.ts +222 -0
- package/dist/components/data/PfTree/treeContext.d.ts +19 -0
- package/dist/components/data/PfTree/treeItemDisplay.d.ts +5 -0
- package/dist/components/data/PfTree/treeTypes.d.ts +58 -0
- package/dist/components/data/PfUser/index.vue.d.ts +65 -0
- package/dist/components/editor/PfEditor/PfEditorImageUploadNode.vue.d.ts +3 -0
- package/dist/components/editor/PfEditor/imageUploadExtension.d.ts +10 -0
- package/dist/components/editor/PfEditor/index.vue.d.ts +47 -0
- package/dist/components/editor/PfEditorDragHandle/index.vue.d.ts +95 -0
- package/dist/components/editor/PfEditorEmojiMenu/index.vue.d.ts +43 -0
- package/dist/components/editor/PfEditorMentionMenu/index.vue.d.ts +53 -0
- package/dist/components/editor/PfEditorSuggestionMenu/index.vue.d.ts +49 -0
- package/dist/components/editor/PfEditorToolbar/index.vue.d.ts +67 -0
- package/dist/components/editor/utils/handlers.d.ts +7 -0
- package/dist/components/editor/utils/injection.d.ts +8 -0
- package/dist/components/editor/utils/mapEditorItems.d.ts +7 -0
- package/dist/components/editor/utils/types.d.ts +98 -0
- package/dist/components/editor/utils/useEditorMenu.d.ts +31 -0
- package/dist/components/element/PfAlert/index.vue.d.ts +98 -0
- package/dist/components/element/PfAvatar/index.vue.d.ts +43 -0
- package/dist/components/element/PfAvatarGroup/index.vue.d.ts +52 -0
- package/dist/components/element/PfAvatarGroup/injection.d.ts +6 -0
- package/dist/components/element/PfBadge/index.vue.d.ts +64 -0
- package/dist/components/element/PfBanner/index.vue.d.ts +67 -0
- package/dist/components/element/PfButton/index.vue.d.ts +108 -0
- package/dist/components/element/PfCard/index.vue.d.ts +34 -0
- package/dist/components/element/PfChip/index.vue.d.ts +49 -0
- package/dist/components/element/PfCollapsible/index.vue.d.ts +82 -0
- package/dist/components/element/PfContentSearchButton/index.vue.d.ts +75 -0
- package/dist/components/element/PfFieldGroup/index.vue.d.ts +48 -0
- package/dist/components/element/PfFieldGroup/injection.d.ts +6 -0
- package/dist/components/element/PfIcon/iconSizes.d.ts +3 -0
- package/dist/components/element/PfIcon/index.vue.d.ts +10 -0
- package/dist/components/element/PfIcon/paths.d.ts +14 -0
- package/dist/components/element/PfKbd/index.vue.d.ts +36 -0
- package/dist/components/element/PfProgress/index.vue.d.ts +69 -0
- package/dist/components/element/PfSeparator/index.vue.d.ts +58 -0
- package/dist/components/element/PfSkeleton/index.vue.d.ts +31 -0
- package/dist/components/form/PfCalendar/calendarGrid.d.ts +12 -0
- package/dist/components/form/PfCalendar/calendarSelection.d.ts +30 -0
- package/dist/components/form/PfCalendar/index.vue.d.ts +137 -0
- package/dist/components/form/PfCheckbox/index.vue.d.ts +84 -0
- package/dist/components/form/PfCheckboxGroup/index.vue.d.ts +82 -0
- package/dist/components/form/PfColorPicker/colorPicker.d.ts +46 -0
- package/dist/components/form/PfColorPicker/index.vue.d.ts +54 -0
- package/dist/components/form/PfFileUpload/index.vue.d.ts +258 -0
- package/dist/components/form/PfForm/index.vue.d.ts +75 -0
- package/dist/components/form/PfForm/injection.d.ts +32 -0
- package/dist/components/form/PfForm/validation.d.ts +9 -0
- package/dist/components/form/PfFormField/index.vue.d.ts +59 -0
- package/dist/components/form/PfInput/index.vue.d.ts +97 -0
- package/dist/components/form/PfInputDate/index.vue.d.ts +109 -0
- package/dist/components/form/PfInputDate/inputDateSegments.d.ts +36 -0
- package/dist/components/form/PfInputMenu/index.vue.d.ts +1410 -0
- package/dist/components/form/PfInputNumber/index.vue.d.ts +498 -0
- package/dist/components/form/PfInputTags/index.vue.d.ts +482 -0
- package/dist/components/form/PfInputTime/index.vue.d.ts +108 -0
- package/dist/components/form/PfInputTime/inputTimeSegments.d.ts +36 -0
- package/dist/components/form/PfPinInput/index.vue.d.ts +56 -0
- package/dist/components/form/PfRadio/index.vue.d.ts +76 -0
- package/dist/components/form/PfRadioGroup/index.vue.d.ts +74 -0
- package/dist/components/form/PfSelect/index.vue.d.ts +209 -0
- package/dist/components/form/PfSelectMenu/index.vue.d.ts +1034 -0
- package/dist/components/form/PfSlider/index.vue.d.ts +54 -0
- package/dist/components/form/PfSwitch/index.vue.d.ts +83 -0
- package/dist/components/form/PfTextarea/index.vue.d.ts +111 -0
- package/dist/components/form/groupItems.d.ts +36 -0
- package/dist/components/layout/PfApp/index.vue.d.ts +45 -0
- package/dist/components/layout/PfApp/injection.d.ts +43 -0
- package/dist/components/layout/PfContainer/index.vue.d.ts +27 -0
- package/dist/components/layout/PfError/index.vue.d.ts +113 -0
- package/dist/components/layout/PfFooter/index.vue.d.ts +38 -0
- package/dist/components/layout/PfHeader/index.vue.d.ts +132 -0
- package/dist/components/layout/PfMain/index.vue.d.ts +27 -0
- package/dist/components/navigation/PfBreadcrumb/index.vue.d.ts +156 -0
- package/dist/components/navigation/PfContentNavigation/index.vue.d.ts +196 -0
- package/dist/components/navigation/PfContentSurround/index.vue.d.ts +86 -0
- package/dist/components/navigation/PfContentToc/index.vue.d.ts +165 -0
- package/dist/components/navigation/PfFooterColumns/index.vue.d.ts +145 -0
- package/dist/components/navigation/PfLink/index.vue.d.ts +80 -0
- package/dist/components/navigation/PfNavigationMenu/index.vue.d.ts +187 -0
- package/dist/components/navigation/PfPagination/index.vue.d.ts +103 -0
- package/dist/components/navigation/PfStepper/index.vue.d.ts +107 -0
- package/dist/components/navigation/PfTabs/index.vue.d.ts +131 -0
- package/dist/components/overlay/PfContentSearch/index.vue.d.ts +181 -0
- package/dist/components/overlay/PfContextMenu/PfContextMenuItems.vue.d.ts +10 -0
- package/dist/components/overlay/PfContextMenu/index.vue.d.ts +57 -0
- package/dist/components/overlay/PfContextMenu/types.d.ts +40 -0
- package/dist/components/overlay/PfDrawer/index.vue.d.ts +106 -0
- package/dist/components/overlay/PfDropdownMenu/PfDropdownMenuItems.vue.d.ts +10 -0
- package/dist/components/overlay/PfDropdownMenu/index.vue.d.ts +74 -0
- package/dist/components/overlay/PfDropdownMenu/types.d.ts +58 -0
- package/dist/components/overlay/PfModal/index.vue.d.ts +138 -0
- package/dist/components/overlay/PfToast/index.vue.d.ts +128 -0
- package/dist/components/overlay/PfToaster/index.vue.d.ts +11 -0
- package/dist/components/overlay/PfTooltip/index.vue.d.ts +85 -0
- package/dist/composables/pfScrollAreaVirtual.d.ts +21 -0
- package/dist/composables/usePfApp.d.ts +7 -0
- package/dist/composables/usePfContentSearch.d.ts +11 -0
- package/dist/composables/usePfKbd.d.ts +14 -0
- package/dist/composables/usePfToast.d.ts +137 -0
- package/dist/composables/usePfVModelBound.d.ts +5 -0
- package/dist/index.d.ts +184 -0
- package/dist/prismify-ui.cjs +3 -0
- package/dist/prismify-ui.cjs.map +1 -0
- package/dist/prismify-ui.js +26967 -0
- package/dist/prismify-ui.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/utils/editor.d.ts +2 -0
- package/dist/utils/pfLinkQuery.d.ts +8 -0
- package/docs/README.md +17 -0
- package/docs/installation.md +120 -0
- package/docs/library-development.md +57 -0
- package/docs/theming.md +334 -0
- package/llms.txt +220 -0
- package/package.json +146 -0
- package/src/styles/_variables.scss +25 -0
- package/src/styles/index.scss +1 -0
- package/src/styles/mixins/_input-tag-pill.scss +72 -0
- package/src/styles/variables/_accordion.scss +15 -0
- package/src/styles/variables/_animation.scss +25 -0
- package/src/styles/variables/_breadcrumb.scss +11 -0
- package/src/styles/variables/_colors.scss +37 -0
- package/src/styles/variables/_contextMenu.scss +31 -0
- package/src/styles/variables/_dashboard.scss +8 -0
- package/src/styles/variables/_drawer.scss +34 -0
- package/src/styles/variables/_editor.scss +34 -0
- package/src/styles/variables/_effects.scss +6 -0
- package/src/styles/variables/_empty.scss +12 -0
- package/src/styles/variables/_fileUpload.scss +21 -0
- package/src/styles/variables/_footerColumns.scss +17 -0
- package/src/styles/variables/_layout.scss +294 -0
- package/src/styles/variables/_link.scss +8 -0
- package/src/styles/variables/_marquee.scss +6 -0
- package/src/styles/variables/_modal.scss +26 -0
- package/src/styles/variables/_navigationMenu.scss +46 -0
- package/src/styles/variables/_stepper.scss +15 -0
- package/src/styles/variables/_table.scss +29 -0
- package/src/styles/variables/_tabs.scss +18 -0
- package/src/styles/variables/_timeline.scss +11 -0
- package/src/styles/variables/_toast.scss +14 -0
- package/src/styles/variables/_tooltip.scss +16 -0
- package/src/styles/variables/_tree.scss +29 -0
- package/src/styles/variables/_typography.scss +19 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { Component, Ref, WatchOptions } from 'vue';
|
|
2
|
+
import { Cell, Column, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, FacetedOptions, GlobalFilterOptions, GroupingOptions, GroupingState, PaginationOptions, PaginationState, Row, RowData, RowPinningOptions, RowPinningState, RowSelectionOptions, RowSelectionState, SortingOptions, SortingState, TableMeta, TableOptions, VisibilityOptions, VisibilityState } from '@tanstack/table-core';
|
|
3
|
+
export type PfTableColumn<TData extends import('@tanstack/table-core').RowData> = ColumnDef<TData, unknown>;
|
|
4
|
+
export type PfTableRow<TData extends import('@tanstack/table-core').RowData> = Row<TData>;
|
|
5
|
+
export type PfTableUi = Partial<{
|
|
6
|
+
root: string;
|
|
7
|
+
scroll: string;
|
|
8
|
+
base: string;
|
|
9
|
+
caption: string;
|
|
10
|
+
thead: string;
|
|
11
|
+
tbody: string;
|
|
12
|
+
tfoot: string;
|
|
13
|
+
tr: string;
|
|
14
|
+
th: string;
|
|
15
|
+
td: string;
|
|
16
|
+
separator: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
loading: string;
|
|
19
|
+
}>;
|
|
20
|
+
export type PfTableLoadingColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
21
|
+
export type PfTableLoadingAnimation = 'carousel' | 'carousel-inverse' | 'swing' | 'elastic';
|
|
22
|
+
/** Optional `meta` on column defs — class, style, colspan, rowspan (PfTable). */
|
|
23
|
+
export type PfTableColumnMeta<TData extends RowData = RowData> = {
|
|
24
|
+
class?: {
|
|
25
|
+
th?: string | ((arg: unknown) => string);
|
|
26
|
+
td?: string | ((arg: unknown) => string);
|
|
27
|
+
};
|
|
28
|
+
style?: {
|
|
29
|
+
th?: string | Record<string, string> | ((arg: unknown) => string | Record<string, string>);
|
|
30
|
+
td?: string | Record<string, string> | ((arg: unknown) => string | Record<string, string>);
|
|
31
|
+
};
|
|
32
|
+
colspan?: {
|
|
33
|
+
td?: string | ((cell: Cell<TData, unknown>) => string);
|
|
34
|
+
};
|
|
35
|
+
rowspan?: {
|
|
36
|
+
td?: string | ((cell: Cell<TData, unknown>) => string);
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/** Optional `meta` on the table — row class/style (PfTable). */
|
|
40
|
+
export type PfTableRowMeta = {
|
|
41
|
+
class?: {
|
|
42
|
+
tr?: string | ((arg: unknown) => string);
|
|
43
|
+
};
|
|
44
|
+
style?: {
|
|
45
|
+
tr?: string | Record<string, string> | ((arg: unknown) => string | Record<string, string>);
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const _default: <TData extends import('@tanstack/table-core').RowData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
49
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
50
|
+
readonly onSelect?: ((e: Event, row: Row<TData>) => any) | undefined;
|
|
51
|
+
readonly onContextmenu?: ((e: Event, row: Row<TData>) => any) | undefined;
|
|
52
|
+
readonly "onUpdate:globalFilter"?: ((value: string) => any) | undefined;
|
|
53
|
+
readonly "onUpdate:columnFilters"?: ((value: ColumnFiltersState) => any) | undefined;
|
|
54
|
+
readonly "onUpdate:columnOrder"?: ((value: ColumnOrderState) => any) | undefined;
|
|
55
|
+
readonly "onUpdate:columnVisibility"?: ((value: VisibilityState) => any) | undefined;
|
|
56
|
+
readonly "onUpdate:columnPinning"?: ((value: ColumnPinningState) => any) | undefined;
|
|
57
|
+
readonly "onUpdate:columnSizing"?: ((value: ColumnSizingState) => any) | undefined;
|
|
58
|
+
readonly "onUpdate:columnSizingInfo"?: ((value: ColumnSizingInfoState) => any) | undefined;
|
|
59
|
+
readonly "onUpdate:rowSelection"?: ((value: RowSelectionState) => any) | undefined;
|
|
60
|
+
readonly "onUpdate:rowPinning"?: ((value: RowPinningState) => any) | undefined;
|
|
61
|
+
readonly "onUpdate:sorting"?: ((value: SortingState) => any) | undefined;
|
|
62
|
+
readonly "onUpdate:grouping"?: ((value: GroupingState) => any) | undefined;
|
|
63
|
+
readonly "onUpdate:expanded"?: ((value: ExpandedState) => any) | undefined;
|
|
64
|
+
readonly "onUpdate:pagination"?: ((value: PaginationState) => any) | undefined;
|
|
65
|
+
readonly onHover?: ((e: Event, row: Row<TData> | null) => any) | undefined;
|
|
66
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onContextmenu" | "onUpdate:globalFilter" | "onUpdate:columnFilters" | "onUpdate:columnOrder" | "onUpdate:columnVisibility" | "onUpdate:columnPinning" | "onUpdate:columnSizing" | "onUpdate:columnSizingInfo" | "onUpdate:rowSelection" | "onUpdate:rowPinning" | "onUpdate:sorting" | "onUpdate:grouping" | "onUpdate:expanded" | "onUpdate:pagination" | "onHover"> & ({
|
|
67
|
+
globalFilter?: string;
|
|
68
|
+
columnFilters?: ColumnFiltersState;
|
|
69
|
+
columnOrder?: ColumnOrderState;
|
|
70
|
+
columnVisibility?: VisibilityState;
|
|
71
|
+
columnPinning?: ColumnPinningState;
|
|
72
|
+
columnSizing?: ColumnSizingState;
|
|
73
|
+
columnSizingInfo?: ColumnSizingInfoState;
|
|
74
|
+
rowSelection?: RowSelectionState;
|
|
75
|
+
rowPinning?: RowPinningState;
|
|
76
|
+
sorting?: SortingState;
|
|
77
|
+
grouping?: GroupingState;
|
|
78
|
+
expanded?: ExpandedState;
|
|
79
|
+
pagination?: PaginationState;
|
|
80
|
+
} & {
|
|
81
|
+
as?: string | Component;
|
|
82
|
+
data?: TData[];
|
|
83
|
+
columns?: ColumnDef<TData, unknown>[];
|
|
84
|
+
caption?: string;
|
|
85
|
+
meta?: TableMeta<TData>;
|
|
86
|
+
empty?: string;
|
|
87
|
+
sticky?: boolean | "header" | "footer";
|
|
88
|
+
loading?: boolean;
|
|
89
|
+
loadingColor?: PfTableLoadingColor;
|
|
90
|
+
loadingAnimation?: PfTableLoadingAnimation;
|
|
91
|
+
watchOptions?: WatchOptions;
|
|
92
|
+
globalFilterOptions?: Omit<GlobalFilterOptions<TData>, "onGlobalFilterChange">;
|
|
93
|
+
columnFiltersOptions?: Omit<NonNullable<TableOptions<TData>>, "getFilteredRowModel" | "onColumnFiltersChange">;
|
|
94
|
+
columnPinningOptions?: Omit<NonNullable<TableOptions<TData>>, "onColumnPinningChange">;
|
|
95
|
+
columnSizingOptions?: Omit<NonNullable<TableOptions<TData>>, "onColumnSizingChange" | "onColumnSizingInfoChange">;
|
|
96
|
+
visibilityOptions?: Omit<VisibilityOptions, "onColumnVisibilityChange">;
|
|
97
|
+
sortingOptions?: Omit<SortingOptions<TData>, "getSortedRowModel" | "onSortingChange">;
|
|
98
|
+
groupingOptions?: Omit<GroupingOptions, "onGroupingChange">;
|
|
99
|
+
expandedOptions?: Omit<NonNullable<TableOptions<TData>>, "getExpandedRowModel" | "onExpandedChange">;
|
|
100
|
+
rowSelectionOptions?: Omit<RowSelectionOptions<TData>, "onRowSelectionChange">;
|
|
101
|
+
rowPinningOptions?: Omit<RowPinningOptions<TData>, "onRowPinningChange">;
|
|
102
|
+
paginationOptions?: Omit<PaginationOptions, "onPaginationChange">;
|
|
103
|
+
facetedOptions?: FacetedOptions<TData>;
|
|
104
|
+
/** When set, row clicks invoke this handler (interactive controls inside the row are ignored). */
|
|
105
|
+
onSelect?: (e: Event, row: Row<TData>) => void;
|
|
106
|
+
/** When true, rows look clickable and emit `select` on click (unless the target is interactive). */
|
|
107
|
+
selectable?: boolean;
|
|
108
|
+
onHover?: (e: Event, row: Row<TData> | null) => void;
|
|
109
|
+
onContextmenu?: ((e: Event, row: Row<TData>) => void) | ((e: Event, row: Row<TData>) => void)[];
|
|
110
|
+
ui?: PfTableUi;
|
|
111
|
+
renderFallbackValue?: TableOptions<TData>["renderFallbackValue"];
|
|
112
|
+
virtualize?: boolean | Record<string, unknown>;
|
|
113
|
+
/** TanStack Table option (leading underscore). */
|
|
114
|
+
_features?: TableOptions<TData>["_features"];
|
|
115
|
+
autoResetAll?: TableOptions<TData>["autoResetAll"];
|
|
116
|
+
debugAll?: boolean;
|
|
117
|
+
debugCells?: boolean;
|
|
118
|
+
debugColumns?: boolean;
|
|
119
|
+
debugHeaders?: boolean;
|
|
120
|
+
debugRows?: boolean;
|
|
121
|
+
debugTable?: boolean;
|
|
122
|
+
defaultColumn?: Partial<ColumnDef<TData, unknown>>;
|
|
123
|
+
getRowId?: TableOptions<TData>["getRowId"];
|
|
124
|
+
getSubRows?: TableOptions<TData>["getSubRows"];
|
|
125
|
+
initialState?: TableOptions<TData>["initialState"];
|
|
126
|
+
mergeOptions?: TableOptions<TData>["mergeOptions"];
|
|
127
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
128
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
129
|
+
readonly $el: HTMLElement | null;
|
|
130
|
+
tableRef: Ref<HTMLTableElement | null, HTMLTableElement | null>;
|
|
131
|
+
tableApi: import('@tanstack/table-core').Table<TData>;
|
|
132
|
+
}>): void;
|
|
133
|
+
attrs: any;
|
|
134
|
+
slots: Partial<Record<string, (_: {
|
|
135
|
+
column: Column<TData, unknown>;
|
|
136
|
+
header: import('@tanstack/table-core').Header<TData, unknown>;
|
|
137
|
+
table: import('@tanstack/table-core').Table<TData>;
|
|
138
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
139
|
+
cell: Cell<TData, unknown>;
|
|
140
|
+
column: Column<TData, unknown>;
|
|
141
|
+
getValue: import('@tanstack/table-core').Getter<unknown>;
|
|
142
|
+
renderValue: import('@tanstack/table-core').Getter<unknown>;
|
|
143
|
+
row: Row<TData>;
|
|
144
|
+
table: import('@tanstack/table-core').Table<TData>;
|
|
145
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
146
|
+
column: Column<TData, unknown>;
|
|
147
|
+
header: import('@tanstack/table-core').Header<TData, unknown>;
|
|
148
|
+
table: import('@tanstack/table-core').Table<TData>;
|
|
149
|
+
}) => any>> & {
|
|
150
|
+
caption?(_: {}): any;
|
|
151
|
+
'body-top'?(_: {}): any;
|
|
152
|
+
loading?(_: {}): any;
|
|
153
|
+
empty?(_: {}): any;
|
|
154
|
+
expanded?(_: {
|
|
155
|
+
row: Row<TData>;
|
|
156
|
+
}): any;
|
|
157
|
+
'body-bottom'?(_: {}): any;
|
|
158
|
+
};
|
|
159
|
+
emit: (((evt: "select", e: Event, row: Row<TData>) => void) & ((evt: "contextmenu", e: Event, row: Row<TData>) => void) & ((evt: "hover", e: Event, row: Row<TData> | null) => void)) & (((evt: "update:globalFilter", value: string) => void) & ((evt: "update:columnFilters", value: ColumnFiltersState) => void) & ((evt: "update:columnOrder", value: ColumnOrderState) => void) & ((evt: "update:columnVisibility", value: VisibilityState) => void) & ((evt: "update:columnPinning", value: ColumnPinningState) => void) & ((evt: "update:columnSizing", value: ColumnSizingState) => void) & ((evt: "update:columnSizingInfo", value: ColumnSizingInfoState) => void) & ((evt: "update:rowSelection", value: RowSelectionState) => void) & ((evt: "update:rowPinning", value: RowPinningState) => void) & ((evt: "update:sorting", value: SortingState) => void) & ((evt: "update:grouping", value: GroupingState) => void) & ((evt: "update:expanded", value: ExpandedState) => void) & ((evt: "update:pagination", value: PaginationState) => void));
|
|
160
|
+
}>) => import('vue').VNode & {
|
|
161
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
|
164
|
+
type __VLS_PrettifyLocal<T> = {
|
|
165
|
+
[K in keyof T]: T[K];
|
|
166
|
+
} & {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { PfBadgeAvatarProps } from '../../element/PfBadge/index.vue';
|
|
3
|
+
import { PfIconName } from '../../element/PfIcon/paths';
|
|
4
|
+
export type PfTimelineColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
export type PfTimelineSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
6
|
+
export type PfTimelineOrientation = 'horizontal' | 'vertical';
|
|
7
|
+
export type PfTimelineItemUi = Partial<{
|
|
8
|
+
item: string;
|
|
9
|
+
container: string;
|
|
10
|
+
indicator: string;
|
|
11
|
+
separator: string;
|
|
12
|
+
wrapper: string;
|
|
13
|
+
date: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}>;
|
|
17
|
+
export interface PfTimelineItem {
|
|
18
|
+
date?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
icon?: PfIconName;
|
|
22
|
+
avatar?: PfBadgeAvatarProps;
|
|
23
|
+
value?: string | number;
|
|
24
|
+
slot?: string;
|
|
25
|
+
class?: unknown;
|
|
26
|
+
ui?: PfTimelineItemUi;
|
|
27
|
+
}
|
|
28
|
+
export type PfTimelineUi = Partial<{
|
|
29
|
+
root: string;
|
|
30
|
+
item: string;
|
|
31
|
+
container: string;
|
|
32
|
+
indicator: string;
|
|
33
|
+
separator: string;
|
|
34
|
+
wrapper: string;
|
|
35
|
+
date: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
}>;
|
|
39
|
+
type __VLS_Props = {
|
|
40
|
+
as?: string | Component;
|
|
41
|
+
items?: readonly PfTimelineItem[];
|
|
42
|
+
size?: PfTimelineSize;
|
|
43
|
+
color?: PfTimelineColor;
|
|
44
|
+
orientation?: PfTimelineOrientation;
|
|
45
|
+
valueKey?: string;
|
|
46
|
+
defaultValue?: string | number;
|
|
47
|
+
modelValue?: string | number;
|
|
48
|
+
ui?: PfTimelineUi;
|
|
49
|
+
};
|
|
50
|
+
declare function __VLS_template(): {
|
|
51
|
+
attrs: Partial<{}>;
|
|
52
|
+
slots: Partial<Record<`${string}-indicator`, (_: {
|
|
53
|
+
item: PfTimelineItem;
|
|
54
|
+
index: number;
|
|
55
|
+
}) => any>> & Partial<Record<`${string}-date`, (_: {
|
|
56
|
+
item: PfTimelineItem;
|
|
57
|
+
index: number;
|
|
58
|
+
}) => any>> & Partial<Record<`${string}-title`, (_: {
|
|
59
|
+
item: PfTimelineItem;
|
|
60
|
+
index: number;
|
|
61
|
+
}) => any>> & Partial<Record<`${string}-description`, (_: {
|
|
62
|
+
item: PfTimelineItem;
|
|
63
|
+
index: number;
|
|
64
|
+
}) => any>> & {
|
|
65
|
+
indicator?(_: {
|
|
66
|
+
item: PfTimelineItem;
|
|
67
|
+
index: number;
|
|
68
|
+
}): any;
|
|
69
|
+
date?(_: {
|
|
70
|
+
item: PfTimelineItem;
|
|
71
|
+
index: number;
|
|
72
|
+
}): any;
|
|
73
|
+
title?(_: {
|
|
74
|
+
item: PfTimelineItem;
|
|
75
|
+
index: number;
|
|
76
|
+
}): any;
|
|
77
|
+
description?(_: {
|
|
78
|
+
item: PfTimelineItem;
|
|
79
|
+
index: number;
|
|
80
|
+
}): any;
|
|
81
|
+
};
|
|
82
|
+
refs: {};
|
|
83
|
+
rootEl: any;
|
|
84
|
+
};
|
|
85
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
86
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
87
|
+
select: (event: Event, item: PfTimelineItem) => any;
|
|
88
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
89
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
90
|
+
onSelect?: ((event: Event, item: PfTimelineItem) => any) | undefined;
|
|
91
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
size: PfTimelineSize;
|
|
94
|
+
color: PfTimelineColor;
|
|
95
|
+
orientation: PfTimelineOrientation;
|
|
96
|
+
valueKey: string;
|
|
97
|
+
items: readonly PfTimelineItem[];
|
|
98
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
99
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Component, PropType } from 'vue';
|
|
2
|
+
import { PfTreeItem } from './treeTypes';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
'item-leading'(props: {
|
|
7
|
+
item: PfTreeItem;
|
|
8
|
+
itemKey: string;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
indeterminate: boolean;
|
|
11
|
+
handleSelect: () => void;
|
|
12
|
+
}): unknown;
|
|
13
|
+
'item-label'(props: {
|
|
14
|
+
item: PfTreeItem;
|
|
15
|
+
itemKey: string;
|
|
16
|
+
selected: boolean;
|
|
17
|
+
}): unknown;
|
|
18
|
+
'item-trailing'(props: {
|
|
19
|
+
item: PfTreeItem;
|
|
20
|
+
itemKey: string;
|
|
21
|
+
selected: boolean;
|
|
22
|
+
}): unknown;
|
|
23
|
+
}> & {
|
|
24
|
+
'item-leading'(props: {
|
|
25
|
+
item: PfTreeItem;
|
|
26
|
+
itemKey: string;
|
|
27
|
+
selected: boolean;
|
|
28
|
+
indeterminate: boolean;
|
|
29
|
+
handleSelect: () => void;
|
|
30
|
+
}): unknown;
|
|
31
|
+
'item-label'(props: {
|
|
32
|
+
item: PfTreeItem;
|
|
33
|
+
itemKey: string;
|
|
34
|
+
selected: boolean;
|
|
35
|
+
}): unknown;
|
|
36
|
+
'item-trailing'(props: {
|
|
37
|
+
item: PfTreeItem;
|
|
38
|
+
itemKey: string;
|
|
39
|
+
selected: boolean;
|
|
40
|
+
}): unknown;
|
|
41
|
+
};
|
|
42
|
+
refs: {};
|
|
43
|
+
rootEl: HTMLUListElement;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
46
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
47
|
+
items: {
|
|
48
|
+
type: PropType<readonly PfTreeItem[]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
pathPrefix: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
flat: BooleanConstructor;
|
|
56
|
+
linkAs: PropType<string | Component | undefined>;
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
items: {
|
|
59
|
+
type: PropType<readonly PfTreeItem[]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
pathPrefix: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
flat: BooleanConstructor;
|
|
67
|
+
linkAs: PropType<string | Component | undefined>;
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
|
+
flat: boolean;
|
|
70
|
+
pathPrefix: string;
|
|
71
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
72
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Component, PropType } from 'vue';
|
|
2
|
+
import { PfIconName } from '../../element/PfIcon/paths';
|
|
3
|
+
import { PfTreeItem, PfTreeItemUi } from './treeTypes';
|
|
4
|
+
declare function handleSelectFromSlot(): void;
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
'item-leading'?(_: {
|
|
9
|
+
item: PfTreeItem;
|
|
10
|
+
itemKey: string;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
indeterminate: boolean;
|
|
13
|
+
handleSelect: typeof handleSelectFromSlot;
|
|
14
|
+
}): any;
|
|
15
|
+
'item-label'?(_: {
|
|
16
|
+
item: PfTreeItem;
|
|
17
|
+
itemKey: string;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
}): any;
|
|
20
|
+
'item-trailing'?(_: {
|
|
21
|
+
item: PfTreeItem;
|
|
22
|
+
itemKey: string;
|
|
23
|
+
selected: boolean;
|
|
24
|
+
}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: {};
|
|
27
|
+
rootEl: any;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
31
|
+
itemKey: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
item: {
|
|
36
|
+
type: PropType<PfTreeItem>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
depth: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
flat: BooleanConstructor;
|
|
44
|
+
hasChildren: BooleanConstructor;
|
|
45
|
+
expanded: BooleanConstructor;
|
|
46
|
+
selected: BooleanConstructor;
|
|
47
|
+
indeterminate: BooleanConstructor;
|
|
48
|
+
disabled: BooleanConstructor;
|
|
49
|
+
linkAs: PropType<string | Component | undefined>;
|
|
50
|
+
trailingChevron: {
|
|
51
|
+
type: PropType<PfIconName>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
leadingIcon: PropType<PfIconName | undefined>;
|
|
55
|
+
leadingImageSrc: PropType<string | undefined>;
|
|
56
|
+
leadingImageAlt: PropType<string | undefined>;
|
|
57
|
+
ui: PropType<PfTreeItemUi | undefined>;
|
|
58
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
+
select: (e: MouseEvent) => any;
|
|
60
|
+
toggle: (e: MouseEvent) => any;
|
|
61
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
itemKey: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
item: {
|
|
67
|
+
type: PropType<PfTreeItem>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
depth: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
flat: BooleanConstructor;
|
|
75
|
+
hasChildren: BooleanConstructor;
|
|
76
|
+
expanded: BooleanConstructor;
|
|
77
|
+
selected: BooleanConstructor;
|
|
78
|
+
indeterminate: BooleanConstructor;
|
|
79
|
+
disabled: BooleanConstructor;
|
|
80
|
+
linkAs: PropType<string | Component | undefined>;
|
|
81
|
+
trailingChevron: {
|
|
82
|
+
type: PropType<PfIconName>;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
leadingIcon: PropType<PfIconName | undefined>;
|
|
86
|
+
leadingImageSrc: PropType<string | undefined>;
|
|
87
|
+
leadingImageAlt: PropType<string | undefined>;
|
|
88
|
+
ui: PropType<PfTreeItemUi | undefined>;
|
|
89
|
+
}>> & Readonly<{
|
|
90
|
+
onSelect?: ((e: MouseEvent) => any) | undefined;
|
|
91
|
+
onToggle?: ((e: MouseEvent) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
flat: boolean;
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
indeterminate: boolean;
|
|
96
|
+
selected: boolean;
|
|
97
|
+
expanded: boolean;
|
|
98
|
+
depth: number;
|
|
99
|
+
hasChildren: boolean;
|
|
100
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|