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.
Files changed (169) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CODE_OF_CONDUCT.md +79 -0
  3. package/LICENSE +21 -0
  4. package/README.md +38 -0
  5. package/dist/components/dashboard/PfDashboardGroup/index.vue.d.ts +42 -0
  6. package/dist/components/dashboard/PfDashboardNavbar/index.vue.d.ts +57 -0
  7. package/dist/components/dashboard/PfDashboardPanel/index.vue.d.ts +47 -0
  8. package/dist/components/dashboard/PfDashboardResizeHandle/index.vue.d.ts +28 -0
  9. package/dist/components/dashboard/PfDashboardSearch/index.vue.d.ts +99 -0
  10. package/dist/components/dashboard/PfDashboardSearchButton/index.vue.d.ts +71 -0
  11. package/dist/components/dashboard/PfDashboardSidebar/index.vue.d.ts +121 -0
  12. package/dist/components/dashboard/PfDashboardSidebarCollapse/index.vue.d.ts +65 -0
  13. package/dist/components/dashboard/PfDashboardSidebarToggle/index.vue.d.ts +65 -0
  14. package/dist/components/dashboard/PfDashboardToolbar/index.vue.d.ts +32 -0
  15. package/dist/components/dashboard/shared/injection.d.ts +30 -0
  16. package/dist/components/dashboard/shared/resize.d.ts +5 -0
  17. package/dist/components/dashboard/shared/storage.d.ts +10 -0
  18. package/dist/components/data/PfAccordion/index.vue.d.ts +167 -0
  19. package/dist/components/data/PfEmpty/index.vue.d.ts +83 -0
  20. package/dist/components/data/PfMarquee/index.vue.d.ts +97 -0
  21. package/dist/components/data/PfScrollArea/index.vue.d.ts +58 -0
  22. package/dist/components/data/PfTable/index.vue.d.ts +166 -0
  23. package/dist/components/data/PfTimeline/index.vue.d.ts +105 -0
  24. package/dist/components/data/PfTree/PfTreeBranch.vue.d.ts +78 -0
  25. package/dist/components/data/PfTree/PfTreeRow.vue.d.ts +107 -0
  26. package/dist/components/data/PfTree/index.vue.d.ts +222 -0
  27. package/dist/components/data/PfTree/treeContext.d.ts +19 -0
  28. package/dist/components/data/PfTree/treeItemDisplay.d.ts +5 -0
  29. package/dist/components/data/PfTree/treeTypes.d.ts +58 -0
  30. package/dist/components/data/PfUser/index.vue.d.ts +65 -0
  31. package/dist/components/editor/PfEditor/PfEditorImageUploadNode.vue.d.ts +3 -0
  32. package/dist/components/editor/PfEditor/imageUploadExtension.d.ts +10 -0
  33. package/dist/components/editor/PfEditor/index.vue.d.ts +47 -0
  34. package/dist/components/editor/PfEditorDragHandle/index.vue.d.ts +95 -0
  35. package/dist/components/editor/PfEditorEmojiMenu/index.vue.d.ts +43 -0
  36. package/dist/components/editor/PfEditorMentionMenu/index.vue.d.ts +53 -0
  37. package/dist/components/editor/PfEditorSuggestionMenu/index.vue.d.ts +49 -0
  38. package/dist/components/editor/PfEditorToolbar/index.vue.d.ts +67 -0
  39. package/dist/components/editor/utils/handlers.d.ts +7 -0
  40. package/dist/components/editor/utils/injection.d.ts +8 -0
  41. package/dist/components/editor/utils/mapEditorItems.d.ts +7 -0
  42. package/dist/components/editor/utils/types.d.ts +98 -0
  43. package/dist/components/editor/utils/useEditorMenu.d.ts +31 -0
  44. package/dist/components/element/PfAlert/index.vue.d.ts +98 -0
  45. package/dist/components/element/PfAvatar/index.vue.d.ts +43 -0
  46. package/dist/components/element/PfAvatarGroup/index.vue.d.ts +52 -0
  47. package/dist/components/element/PfAvatarGroup/injection.d.ts +6 -0
  48. package/dist/components/element/PfBadge/index.vue.d.ts +64 -0
  49. package/dist/components/element/PfBanner/index.vue.d.ts +67 -0
  50. package/dist/components/element/PfButton/index.vue.d.ts +108 -0
  51. package/dist/components/element/PfCard/index.vue.d.ts +34 -0
  52. package/dist/components/element/PfChip/index.vue.d.ts +49 -0
  53. package/dist/components/element/PfCollapsible/index.vue.d.ts +82 -0
  54. package/dist/components/element/PfContentSearchButton/index.vue.d.ts +75 -0
  55. package/dist/components/element/PfFieldGroup/index.vue.d.ts +48 -0
  56. package/dist/components/element/PfFieldGroup/injection.d.ts +6 -0
  57. package/dist/components/element/PfIcon/iconSizes.d.ts +3 -0
  58. package/dist/components/element/PfIcon/index.vue.d.ts +10 -0
  59. package/dist/components/element/PfIcon/paths.d.ts +14 -0
  60. package/dist/components/element/PfKbd/index.vue.d.ts +36 -0
  61. package/dist/components/element/PfProgress/index.vue.d.ts +69 -0
  62. package/dist/components/element/PfSeparator/index.vue.d.ts +58 -0
  63. package/dist/components/element/PfSkeleton/index.vue.d.ts +31 -0
  64. package/dist/components/form/PfCalendar/calendarGrid.d.ts +12 -0
  65. package/dist/components/form/PfCalendar/calendarSelection.d.ts +30 -0
  66. package/dist/components/form/PfCalendar/index.vue.d.ts +137 -0
  67. package/dist/components/form/PfCheckbox/index.vue.d.ts +84 -0
  68. package/dist/components/form/PfCheckboxGroup/index.vue.d.ts +82 -0
  69. package/dist/components/form/PfColorPicker/colorPicker.d.ts +46 -0
  70. package/dist/components/form/PfColorPicker/index.vue.d.ts +54 -0
  71. package/dist/components/form/PfFileUpload/index.vue.d.ts +258 -0
  72. package/dist/components/form/PfForm/index.vue.d.ts +75 -0
  73. package/dist/components/form/PfForm/injection.d.ts +32 -0
  74. package/dist/components/form/PfForm/validation.d.ts +9 -0
  75. package/dist/components/form/PfFormField/index.vue.d.ts +59 -0
  76. package/dist/components/form/PfInput/index.vue.d.ts +97 -0
  77. package/dist/components/form/PfInputDate/index.vue.d.ts +109 -0
  78. package/dist/components/form/PfInputDate/inputDateSegments.d.ts +36 -0
  79. package/dist/components/form/PfInputMenu/index.vue.d.ts +1410 -0
  80. package/dist/components/form/PfInputNumber/index.vue.d.ts +498 -0
  81. package/dist/components/form/PfInputTags/index.vue.d.ts +482 -0
  82. package/dist/components/form/PfInputTime/index.vue.d.ts +108 -0
  83. package/dist/components/form/PfInputTime/inputTimeSegments.d.ts +36 -0
  84. package/dist/components/form/PfPinInput/index.vue.d.ts +56 -0
  85. package/dist/components/form/PfRadio/index.vue.d.ts +76 -0
  86. package/dist/components/form/PfRadioGroup/index.vue.d.ts +74 -0
  87. package/dist/components/form/PfSelect/index.vue.d.ts +209 -0
  88. package/dist/components/form/PfSelectMenu/index.vue.d.ts +1034 -0
  89. package/dist/components/form/PfSlider/index.vue.d.ts +54 -0
  90. package/dist/components/form/PfSwitch/index.vue.d.ts +83 -0
  91. package/dist/components/form/PfTextarea/index.vue.d.ts +111 -0
  92. package/dist/components/form/groupItems.d.ts +36 -0
  93. package/dist/components/layout/PfApp/index.vue.d.ts +45 -0
  94. package/dist/components/layout/PfApp/injection.d.ts +43 -0
  95. package/dist/components/layout/PfContainer/index.vue.d.ts +27 -0
  96. package/dist/components/layout/PfError/index.vue.d.ts +113 -0
  97. package/dist/components/layout/PfFooter/index.vue.d.ts +38 -0
  98. package/dist/components/layout/PfHeader/index.vue.d.ts +132 -0
  99. package/dist/components/layout/PfMain/index.vue.d.ts +27 -0
  100. package/dist/components/navigation/PfBreadcrumb/index.vue.d.ts +156 -0
  101. package/dist/components/navigation/PfContentNavigation/index.vue.d.ts +196 -0
  102. package/dist/components/navigation/PfContentSurround/index.vue.d.ts +86 -0
  103. package/dist/components/navigation/PfContentToc/index.vue.d.ts +165 -0
  104. package/dist/components/navigation/PfFooterColumns/index.vue.d.ts +145 -0
  105. package/dist/components/navigation/PfLink/index.vue.d.ts +80 -0
  106. package/dist/components/navigation/PfNavigationMenu/index.vue.d.ts +187 -0
  107. package/dist/components/navigation/PfPagination/index.vue.d.ts +103 -0
  108. package/dist/components/navigation/PfStepper/index.vue.d.ts +107 -0
  109. package/dist/components/navigation/PfTabs/index.vue.d.ts +131 -0
  110. package/dist/components/overlay/PfContentSearch/index.vue.d.ts +181 -0
  111. package/dist/components/overlay/PfContextMenu/PfContextMenuItems.vue.d.ts +10 -0
  112. package/dist/components/overlay/PfContextMenu/index.vue.d.ts +57 -0
  113. package/dist/components/overlay/PfContextMenu/types.d.ts +40 -0
  114. package/dist/components/overlay/PfDrawer/index.vue.d.ts +106 -0
  115. package/dist/components/overlay/PfDropdownMenu/PfDropdownMenuItems.vue.d.ts +10 -0
  116. package/dist/components/overlay/PfDropdownMenu/index.vue.d.ts +74 -0
  117. package/dist/components/overlay/PfDropdownMenu/types.d.ts +58 -0
  118. package/dist/components/overlay/PfModal/index.vue.d.ts +138 -0
  119. package/dist/components/overlay/PfToast/index.vue.d.ts +128 -0
  120. package/dist/components/overlay/PfToaster/index.vue.d.ts +11 -0
  121. package/dist/components/overlay/PfTooltip/index.vue.d.ts +85 -0
  122. package/dist/composables/pfScrollAreaVirtual.d.ts +21 -0
  123. package/dist/composables/usePfApp.d.ts +7 -0
  124. package/dist/composables/usePfContentSearch.d.ts +11 -0
  125. package/dist/composables/usePfKbd.d.ts +14 -0
  126. package/dist/composables/usePfToast.d.ts +137 -0
  127. package/dist/composables/usePfVModelBound.d.ts +5 -0
  128. package/dist/index.d.ts +184 -0
  129. package/dist/prismify-ui.cjs +3 -0
  130. package/dist/prismify-ui.cjs.map +1 -0
  131. package/dist/prismify-ui.js +26967 -0
  132. package/dist/prismify-ui.js.map +1 -0
  133. package/dist/style.css +1 -0
  134. package/dist/utils/editor.d.ts +2 -0
  135. package/dist/utils/pfLinkQuery.d.ts +8 -0
  136. package/docs/README.md +17 -0
  137. package/docs/installation.md +120 -0
  138. package/docs/library-development.md +57 -0
  139. package/docs/theming.md +334 -0
  140. package/llms.txt +220 -0
  141. package/package.json +146 -0
  142. package/src/styles/_variables.scss +25 -0
  143. package/src/styles/index.scss +1 -0
  144. package/src/styles/mixins/_input-tag-pill.scss +72 -0
  145. package/src/styles/variables/_accordion.scss +15 -0
  146. package/src/styles/variables/_animation.scss +25 -0
  147. package/src/styles/variables/_breadcrumb.scss +11 -0
  148. package/src/styles/variables/_colors.scss +37 -0
  149. package/src/styles/variables/_contextMenu.scss +31 -0
  150. package/src/styles/variables/_dashboard.scss +8 -0
  151. package/src/styles/variables/_drawer.scss +34 -0
  152. package/src/styles/variables/_editor.scss +34 -0
  153. package/src/styles/variables/_effects.scss +6 -0
  154. package/src/styles/variables/_empty.scss +12 -0
  155. package/src/styles/variables/_fileUpload.scss +21 -0
  156. package/src/styles/variables/_footerColumns.scss +17 -0
  157. package/src/styles/variables/_layout.scss +294 -0
  158. package/src/styles/variables/_link.scss +8 -0
  159. package/src/styles/variables/_marquee.scss +6 -0
  160. package/src/styles/variables/_modal.scss +26 -0
  161. package/src/styles/variables/_navigationMenu.scss +46 -0
  162. package/src/styles/variables/_stepper.scss +15 -0
  163. package/src/styles/variables/_table.scss +29 -0
  164. package/src/styles/variables/_tabs.scss +18 -0
  165. package/src/styles/variables/_timeline.scss +11 -0
  166. package/src/styles/variables/_toast.scss +14 -0
  167. package/src/styles/variables/_tooltip.scss +16 -0
  168. package/src/styles/variables/_tree.scss +29 -0
  169. package/src/styles/variables/_typography.scss +19 -0
@@ -0,0 +1,222 @@
1
+ import { Component, PropType } from 'vue';
2
+ import { PfIconName } from '../../element/PfIcon/paths';
3
+ import { PfTreeColor, PfTreeItem, PfTreeSelectPayload, PfTreeSelectionBehavior, PfTreeSize, PfTreeTogglePayload, PfTreeUi } from './treeTypes';
4
+ export type { PfTreeColor, PfTreeItem, PfTreeItemUi, PfTreeSelectPayload, PfTreeSelectionBehavior, PfTreeSize, PfTreeTogglePayload, PfTreeUi, } from './treeTypes';
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: Partial<Record<`${string}-leading`, (_: {
8
+ item: PfTreeItem;
9
+ itemKey: string;
10
+ selected: boolean;
11
+ indeterminate: boolean;
12
+ handleSelect: () => void;
13
+ }) => any>> & Partial<Record<string, (_: {
14
+ item: PfTreeItem;
15
+ }) => any>> & Partial<Record<`${string}-label`, (_: {
16
+ item: PfTreeItem;
17
+ itemKey: string;
18
+ selected: boolean;
19
+ }) => any>> & Partial<Record<`${string}-trailing`, (_: {
20
+ item: PfTreeItem;
21
+ itemKey: string;
22
+ selected: boolean;
23
+ }) => any>> & Partial<Record<`${string}-leading`, (_: {
24
+ item: PfTreeItem;
25
+ itemKey: string;
26
+ selected: boolean;
27
+ indeterminate: boolean;
28
+ handleSelect: () => void;
29
+ }) => any>> & Partial<Record<string, (_: {
30
+ item: PfTreeItem;
31
+ }) => any>> & Partial<Record<`${string}-label`, (_: {
32
+ item: PfTreeItem;
33
+ itemKey: string;
34
+ selected: boolean;
35
+ }) => any>> & Partial<Record<`${string}-trailing`, (_: {
36
+ item: PfTreeItem;
37
+ itemKey: string;
38
+ selected: boolean;
39
+ }) => any>> & {
40
+ 'item-leading'?(_: {
41
+ item: PfTreeItem;
42
+ itemKey: string;
43
+ selected: boolean;
44
+ indeterminate: boolean;
45
+ handleSelect: () => void;
46
+ }): any;
47
+ 'item-leading'?(_: {
48
+ item: PfTreeItem;
49
+ itemKey: string;
50
+ selected: boolean;
51
+ indeterminate: boolean;
52
+ handleSelect: () => void;
53
+ }): any;
54
+ 'item-label'?(_: {
55
+ item: PfTreeItem;
56
+ itemKey: string;
57
+ selected: boolean;
58
+ }): any;
59
+ 'item-label'?(_: {
60
+ item: PfTreeItem;
61
+ itemKey: string;
62
+ selected: boolean;
63
+ }): any;
64
+ 'item-trailing'?(_: {
65
+ item: PfTreeItem;
66
+ itemKey: string;
67
+ selected: boolean;
68
+ }): any;
69
+ 'item-trailing'?(_: {
70
+ item: PfTreeItem;
71
+ itemKey: string;
72
+ selected: boolean;
73
+ }): any;
74
+ };
75
+ refs: {};
76
+ rootEl: any;
77
+ };
78
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
79
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
80
+ as: PropType<string | Component | {
81
+ link?: string | Component;
82
+ } | undefined>;
83
+ color: {
84
+ type: PropType<PfTreeColor>;
85
+ /** Default `success` — accent like a “file” tree (green selection). */
86
+ default: string;
87
+ };
88
+ size: {
89
+ type: PropType<PfTreeSize>;
90
+ default: string;
91
+ };
92
+ getKey: PropType<(item: PfTreeItem) => string | undefined>;
93
+ labelKey: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ trailingIcon: {
98
+ type: PropType<PfIconName>;
99
+ default: string;
100
+ };
101
+ expandedIcon: {
102
+ type: PropType<PfIconName>;
103
+ default: string;
104
+ };
105
+ collapsedIcon: {
106
+ type: PropType<PfIconName>;
107
+ default: string;
108
+ };
109
+ items: {
110
+ type: PropType<readonly PfTreeItem[]>;
111
+ default: () => readonly PfTreeItem[];
112
+ };
113
+ modelValue: PropType<string | string[] | undefined>;
114
+ defaultValue: PropType<string | string[] | undefined>;
115
+ multiple: BooleanConstructor;
116
+ nested: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ virtualize: PropType<boolean | {
121
+ overscan?: number;
122
+ estimateSize?: number;
123
+ }>;
124
+ selectionBehavior: {
125
+ type: PropType<PfTreeSelectionBehavior>;
126
+ default: string;
127
+ };
128
+ propagateSelect: BooleanConstructor;
129
+ bubbleSelect: BooleanConstructor;
130
+ disabled: BooleanConstructor;
131
+ expanded: PropType<string[] | undefined>;
132
+ defaultExpanded: PropType<string[] | undefined>;
133
+ ui: PropType<PfTreeUi | undefined>;
134
+ linkAs: PropType<string | Component | undefined>;
135
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
136
+ select: (payload: PfTreeSelectPayload) => any;
137
+ toggle: (payload: PfTreeTogglePayload) => any;
138
+ "update:modelValue": (value: string | string[] | undefined) => any;
139
+ "update:expanded": (value: string[]) => any;
140
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
141
+ as: PropType<string | Component | {
142
+ link?: string | Component;
143
+ } | undefined>;
144
+ color: {
145
+ type: PropType<PfTreeColor>;
146
+ /** Default `success` — accent like a “file” tree (green selection). */
147
+ default: string;
148
+ };
149
+ size: {
150
+ type: PropType<PfTreeSize>;
151
+ default: string;
152
+ };
153
+ getKey: PropType<(item: PfTreeItem) => string | undefined>;
154
+ labelKey: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ trailingIcon: {
159
+ type: PropType<PfIconName>;
160
+ default: string;
161
+ };
162
+ expandedIcon: {
163
+ type: PropType<PfIconName>;
164
+ default: string;
165
+ };
166
+ collapsedIcon: {
167
+ type: PropType<PfIconName>;
168
+ default: string;
169
+ };
170
+ items: {
171
+ type: PropType<readonly PfTreeItem[]>;
172
+ default: () => readonly PfTreeItem[];
173
+ };
174
+ modelValue: PropType<string | string[] | undefined>;
175
+ defaultValue: PropType<string | string[] | undefined>;
176
+ multiple: BooleanConstructor;
177
+ nested: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ virtualize: PropType<boolean | {
182
+ overscan?: number;
183
+ estimateSize?: number;
184
+ }>;
185
+ selectionBehavior: {
186
+ type: PropType<PfTreeSelectionBehavior>;
187
+ default: string;
188
+ };
189
+ propagateSelect: BooleanConstructor;
190
+ bubbleSelect: BooleanConstructor;
191
+ disabled: BooleanConstructor;
192
+ expanded: PropType<string[] | undefined>;
193
+ defaultExpanded: PropType<string[] | undefined>;
194
+ ui: PropType<PfTreeUi | undefined>;
195
+ linkAs: PropType<string | Component | undefined>;
196
+ }>> & Readonly<{
197
+ onSelect?: ((payload: PfTreeSelectPayload) => any) | undefined;
198
+ onToggle?: ((payload: PfTreeTogglePayload) => any) | undefined;
199
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
200
+ "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
201
+ }>, {
202
+ size: PfTreeSize;
203
+ color: PfTreeColor;
204
+ trailingIcon: "add" | "addressBook" | "alarmClock" | "alignCenter" | "alignJustify" | "alignRight" | "ambulance" | "angleDoubleLeft" | "angleDoubleRight" | "angleDoubleSmallLeft" | "angleDoubleSmallRight" | "angleDown" | "angleLeft" | "angleRight" | "angleSmallDown" | "angleSmallLeft" | "angleSmallRight" | "angleSmallUp" | "angleUp" | "apple" | "apps" | "apps2" | "appsAdd" | "appsDelete" | "appsSort" | "archive" | "arrowDown" | "arrowFromBottom" | "arrowLeft" | "arrowRight" | "arrowSmallDown" | "arrowSmallLeft" | "arrowSmallRight" | "arrowSmallUp" | "arrowUp" | "arrowUpRight" | "asterik" | "at" | "backpack" | "badge" | "balloons" | "ban" | "bandAid" | "bank" | "barberShop" | "baseball" | "basketball" | "bed" | "beer" | "bell" | "bellRing" | "bellSchool" | "bike" | "billiard" | "bold" | "book" | "bookAlt" | "bookmark" | "bowling" | "box" | "boxAlt" | "breadSlice" | "briefcase" | "broom" | "browser" | "brush" | "bug" | "building" | "bulb" | "butterfly" | "cakeBirthday" | "cakeWedding" | "calculator" | "calendar" | "callHistory" | "callIncoming" | "callMissed" | "callOutgoing" | "camera" | "camping" | "car" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "carrot" | "catalog" | "chartConnected" | "chartHistogram" | "chartNetwork" | "chartPie" | "chartPieAlt" | "chartPyramid" | "chartSetTheory" | "chartTree" | "chatArrowDown" | "chatArrowGrow" | "check" | "checkbox" | "cheese" | "chessPiece" | "childHead" | "circle" | "circleSmall" | "clip" | "clock" | "cloud" | "cloudCheck" | "cloudDisabled" | "cloudDownload" | "clouds" | "cloudShare" | "cloudUpload" | "cocktail" | "coffee" | "comment" | "commentAlt" | "commentCheck" | "commentHeart" | "commentInfo" | "comments" | "commentUser" | "compress" | "compressAlt" | "computer" | "confetti" | "cookie" | "copy" | "copyAlt" | "copyright" | "cow" | "cream" | "creditCard" | "croissant" | "cross" | "crossCircle" | "crossSmall" | "crown" | "cube" | "cupcake" | "cursor" | "cursorFinger" | "cursorPlus" | "cursorText" | "cursorTextAlt" | "dart" | "dashboard" | "database" | "dataTransfer" | "delete" | "diamond" | "dice" | "diploma" | "discoBall" | "disk" | "doctor" | "document" | "documentSigned" | "dollar" | "download" | "drinkAlt" | "drumstick" | "duplicate" | "earnings" | "edit" | "editAlt" | "eLearning" | "envelope" | "envelopeBan" | "envelopeDownload" | "envelopeMarker" | "envelopeOpen" | "envelopePlus" | "euro" | "exclamation" | "expand" | "eye" | "eyeCrossed" | "eyeDropper" | "feather" | "ferrisWheel" | "file" | "fileAdd" | "fileAi" | "fileCheck" | "fileDelete" | "fileEps" | "fileGif" | "fileMusic" | "filePsd" | "fill" | "film" | "filter" | "fingerprint" | "fish" | "flag" | "flame" | "flipHorizontal" | "flower" | "flowerBouquet" | "flowerTulip" | "folder" | "folderAdd" | "following" | "football" | "form" | "forward" | "fox" | "frown" | "ftp" | "gallery" | "gamepad" | "gasPump" | "gem" | "gift" | "github" | "glassCheers" | "glasses" | "globe" | "globeAlt" | "golf" | "graduationCap" | "graphicTablet" | "grid" | "gridAlt" | "guitar" | "gym" | "hamburger" | "handHoldingHeart" | "hastag" | "hatBirthday" | "headphones" | "headset" | "headSideThinking" | "heart" | "heartArrow" | "home" | "homeLocation" | "homeLocationAlt" | "hourglass" | "hourglassEnd" | "iceCream" | "iceSkate" | "idBadge" | "inbox" | "incognito" | "indent" | "infinity" | "info" | "interactive" | "interlining" | "interrogation" | "italic" | "jpg" | "key" | "keyboard" | "kite" | "label" | "laptop" | "lasso" | "laugh" | "layers" | "layoutFluid" | "leaf" | "letterCase" | "lifeRing" | "lineWidth" | "link" | "lipstick" | "list" | "listCheck" | "locationAlt" | "lock" | "lockAlt" | "luggageRolling" | "magicWand" | "makeupBrush" | "manHead" | "map" | "mapMarker" | "mapMarkerCross" | "mapMarkerHome" | "mapMarkerMinus" | "mapMarkerPlus" | "marker" | "markerTime" | "mars" | "marsDouble" | "maskCarnival" | "medicine" | "megaphone" | "meh" | "menuBurger" | "menuDots" | "menuDotsVertical" | "microphone" | "microphoneAlt" | "minus" | "minusSmall" | "mobile" | "modeLandscape" | "modePortrait" | "money" | "moon" | "mountains" | "mouse" | "mugAlt" | "music" | "musicAlt" | "navigation" | "network" | "networkCloud" | "notebook" | "opacity" | "package" | "paintBrush" | "palette" | "paperPlane" | "password" | "pause" | "paw" | "pencil" | "pharmacy" | "phoneCall" | "phoneCross" | "phonePause" | "phoneSlash" | "physics" | "picture" | "pingPong" | "pizzaSlice" | "plane" | "play" | "playAlt" | "playingCards" | "plus" | "plusSmall" | "pokerChip" | "portrait" | "pound" | "power" | "presentation" | "print" | "protractor" | "pulse" | "pyramid" | "quoteRight" | "rainbow" | "raindrops" | "rec" | "receipt" | "recordVinyl" | "rectabgleVertical" | "rectangleHorizontal" | "rectanglePanoramic" | "recycle" | "redo" | "redoAlt" | "reflect" | "refresh" | "resize" | "resources" | "rewind" | "rhombus" | "ringsWedding" | "road" | "rocket" | "roomService" | "rotateRight" | "rugby" | "sad" | "salad" | "scale" | "school" | "schoolBus" | "scissors" | "screen" | "search" | "searchAlt" | "searchHeart" | "settings" | "settingsSliders" | "share" | "shield" | "shieldCheck" | "shieldExclamation" | "shieldInterrogation" | "shieldPlus" | "ship" | "shipSide" | "shop" | "shoppingBag" | "shoppingBagAdd" | "shoppingCart" | "shoppingCartAdd" | "shoppingCartCheck" | "shuffle" | "signalAlt" | "signalAlt1" | "signalAlt2" | "signIn" | "signInAlt" | "signOut" | "signOutAlt" | "skateboard" | "smartphone" | "smile" | "smileWink" | "snowflake" | "soap" | "soup" | "spa" | "speaker" | "sphere" | "spinner" | "spinnerAlt" | "square" | "squareRoot" | "star" | "starFill" | "starOctogram" | "stats" | "stethoscope" | "sticker" | "stop" | "stopwatch" | "subtitles" | "sun" | "sunrise" | "surfing" | "sword" | "syringe" | "tablet" | "target" | "taxi" | "tennis" | "terrace" | "test" | "testTube" | "text" | "textCheck" | "thermometerHalf" | "thumbsDown" | "thumbsUp" | "thumbtack" | "ticket" | "timeAdd" | "timeCheck" | "timeDelete" | "timeFast" | "timeForward" | "timeForwardSixty" | "timeForwardTen" | "timeHalfPast" | "timeOclock" | "timePast" | "timeQuarterPast" | "timeQuarterTo" | "timeTwentyFour" | "toolCrop" | "toolMarquee" | "tooth" | "tornado" | "train" | "trainSide" | "transform" | "trash" | "treatment" | "tree" | "treeChristmas" | "triangle" | "trophy" | "truckSide" | "umbrella" | "underline" | "undo" | "undoAlt" | "unlock" | "upload" | "usbPendrive" | "user" | "userAdd" | "userDelete" | "userRemove" | "userTime" | "utensils" | "vector" | "vectorAlt" | "venus" | "venusDouble" | "venusMars" | "videoCamera" | "volleyball" | "volume" | "wheelchair" | "wifiAlt" | "wind" | "womanHead" | "world" | "yen" | "zoomIn" | "zoomOut";
205
+ disabled: boolean;
206
+ multiple: boolean;
207
+ labelKey: string;
208
+ items: readonly PfTreeItem[];
209
+ nested: boolean;
210
+ expandedIcon: "add" | "addressBook" | "alarmClock" | "alignCenter" | "alignJustify" | "alignRight" | "ambulance" | "angleDoubleLeft" | "angleDoubleRight" | "angleDoubleSmallLeft" | "angleDoubleSmallRight" | "angleDown" | "angleLeft" | "angleRight" | "angleSmallDown" | "angleSmallLeft" | "angleSmallRight" | "angleSmallUp" | "angleUp" | "apple" | "apps" | "apps2" | "appsAdd" | "appsDelete" | "appsSort" | "archive" | "arrowDown" | "arrowFromBottom" | "arrowLeft" | "arrowRight" | "arrowSmallDown" | "arrowSmallLeft" | "arrowSmallRight" | "arrowSmallUp" | "arrowUp" | "arrowUpRight" | "asterik" | "at" | "backpack" | "badge" | "balloons" | "ban" | "bandAid" | "bank" | "barberShop" | "baseball" | "basketball" | "bed" | "beer" | "bell" | "bellRing" | "bellSchool" | "bike" | "billiard" | "bold" | "book" | "bookAlt" | "bookmark" | "bowling" | "box" | "boxAlt" | "breadSlice" | "briefcase" | "broom" | "browser" | "brush" | "bug" | "building" | "bulb" | "butterfly" | "cakeBirthday" | "cakeWedding" | "calculator" | "calendar" | "callHistory" | "callIncoming" | "callMissed" | "callOutgoing" | "camera" | "camping" | "car" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "carrot" | "catalog" | "chartConnected" | "chartHistogram" | "chartNetwork" | "chartPie" | "chartPieAlt" | "chartPyramid" | "chartSetTheory" | "chartTree" | "chatArrowDown" | "chatArrowGrow" | "check" | "checkbox" | "cheese" | "chessPiece" | "childHead" | "circle" | "circleSmall" | "clip" | "clock" | "cloud" | "cloudCheck" | "cloudDisabled" | "cloudDownload" | "clouds" | "cloudShare" | "cloudUpload" | "cocktail" | "coffee" | "comment" | "commentAlt" | "commentCheck" | "commentHeart" | "commentInfo" | "comments" | "commentUser" | "compress" | "compressAlt" | "computer" | "confetti" | "cookie" | "copy" | "copyAlt" | "copyright" | "cow" | "cream" | "creditCard" | "croissant" | "cross" | "crossCircle" | "crossSmall" | "crown" | "cube" | "cupcake" | "cursor" | "cursorFinger" | "cursorPlus" | "cursorText" | "cursorTextAlt" | "dart" | "dashboard" | "database" | "dataTransfer" | "delete" | "diamond" | "dice" | "diploma" | "discoBall" | "disk" | "doctor" | "document" | "documentSigned" | "dollar" | "download" | "drinkAlt" | "drumstick" | "duplicate" | "earnings" | "edit" | "editAlt" | "eLearning" | "envelope" | "envelopeBan" | "envelopeDownload" | "envelopeMarker" | "envelopeOpen" | "envelopePlus" | "euro" | "exclamation" | "expand" | "eye" | "eyeCrossed" | "eyeDropper" | "feather" | "ferrisWheel" | "file" | "fileAdd" | "fileAi" | "fileCheck" | "fileDelete" | "fileEps" | "fileGif" | "fileMusic" | "filePsd" | "fill" | "film" | "filter" | "fingerprint" | "fish" | "flag" | "flame" | "flipHorizontal" | "flower" | "flowerBouquet" | "flowerTulip" | "folder" | "folderAdd" | "following" | "football" | "form" | "forward" | "fox" | "frown" | "ftp" | "gallery" | "gamepad" | "gasPump" | "gem" | "gift" | "github" | "glassCheers" | "glasses" | "globe" | "globeAlt" | "golf" | "graduationCap" | "graphicTablet" | "grid" | "gridAlt" | "guitar" | "gym" | "hamburger" | "handHoldingHeart" | "hastag" | "hatBirthday" | "headphones" | "headset" | "headSideThinking" | "heart" | "heartArrow" | "home" | "homeLocation" | "homeLocationAlt" | "hourglass" | "hourglassEnd" | "iceCream" | "iceSkate" | "idBadge" | "inbox" | "incognito" | "indent" | "infinity" | "info" | "interactive" | "interlining" | "interrogation" | "italic" | "jpg" | "key" | "keyboard" | "kite" | "label" | "laptop" | "lasso" | "laugh" | "layers" | "layoutFluid" | "leaf" | "letterCase" | "lifeRing" | "lineWidth" | "link" | "lipstick" | "list" | "listCheck" | "locationAlt" | "lock" | "lockAlt" | "luggageRolling" | "magicWand" | "makeupBrush" | "manHead" | "map" | "mapMarker" | "mapMarkerCross" | "mapMarkerHome" | "mapMarkerMinus" | "mapMarkerPlus" | "marker" | "markerTime" | "mars" | "marsDouble" | "maskCarnival" | "medicine" | "megaphone" | "meh" | "menuBurger" | "menuDots" | "menuDotsVertical" | "microphone" | "microphoneAlt" | "minus" | "minusSmall" | "mobile" | "modeLandscape" | "modePortrait" | "money" | "moon" | "mountains" | "mouse" | "mugAlt" | "music" | "musicAlt" | "navigation" | "network" | "networkCloud" | "notebook" | "opacity" | "package" | "paintBrush" | "palette" | "paperPlane" | "password" | "pause" | "paw" | "pencil" | "pharmacy" | "phoneCall" | "phoneCross" | "phonePause" | "phoneSlash" | "physics" | "picture" | "pingPong" | "pizzaSlice" | "plane" | "play" | "playAlt" | "playingCards" | "plus" | "plusSmall" | "pokerChip" | "portrait" | "pound" | "power" | "presentation" | "print" | "protractor" | "pulse" | "pyramid" | "quoteRight" | "rainbow" | "raindrops" | "rec" | "receipt" | "recordVinyl" | "rectabgleVertical" | "rectangleHorizontal" | "rectanglePanoramic" | "recycle" | "redo" | "redoAlt" | "reflect" | "refresh" | "resize" | "resources" | "rewind" | "rhombus" | "ringsWedding" | "road" | "rocket" | "roomService" | "rotateRight" | "rugby" | "sad" | "salad" | "scale" | "school" | "schoolBus" | "scissors" | "screen" | "search" | "searchAlt" | "searchHeart" | "settings" | "settingsSliders" | "share" | "shield" | "shieldCheck" | "shieldExclamation" | "shieldInterrogation" | "shieldPlus" | "ship" | "shipSide" | "shop" | "shoppingBag" | "shoppingBagAdd" | "shoppingCart" | "shoppingCartAdd" | "shoppingCartCheck" | "shuffle" | "signalAlt" | "signalAlt1" | "signalAlt2" | "signIn" | "signInAlt" | "signOut" | "signOutAlt" | "skateboard" | "smartphone" | "smile" | "smileWink" | "snowflake" | "soap" | "soup" | "spa" | "speaker" | "sphere" | "spinner" | "spinnerAlt" | "square" | "squareRoot" | "star" | "starFill" | "starOctogram" | "stats" | "stethoscope" | "sticker" | "stop" | "stopwatch" | "subtitles" | "sun" | "sunrise" | "surfing" | "sword" | "syringe" | "tablet" | "target" | "taxi" | "tennis" | "terrace" | "test" | "testTube" | "text" | "textCheck" | "thermometerHalf" | "thumbsDown" | "thumbsUp" | "thumbtack" | "ticket" | "timeAdd" | "timeCheck" | "timeDelete" | "timeFast" | "timeForward" | "timeForwardSixty" | "timeForwardTen" | "timeHalfPast" | "timeOclock" | "timePast" | "timeQuarterPast" | "timeQuarterTo" | "timeTwentyFour" | "toolCrop" | "toolMarquee" | "tooth" | "tornado" | "train" | "trainSide" | "transform" | "trash" | "treatment" | "tree" | "treeChristmas" | "triangle" | "trophy" | "truckSide" | "umbrella" | "underline" | "undo" | "undoAlt" | "unlock" | "upload" | "usbPendrive" | "user" | "userAdd" | "userDelete" | "userRemove" | "userTime" | "utensils" | "vector" | "vectorAlt" | "venus" | "venusDouble" | "venusMars" | "videoCamera" | "volleyball" | "volume" | "wheelchair" | "wifiAlt" | "wind" | "womanHead" | "world" | "yen" | "zoomIn" | "zoomOut";
211
+ collapsedIcon: "add" | "addressBook" | "alarmClock" | "alignCenter" | "alignJustify" | "alignRight" | "ambulance" | "angleDoubleLeft" | "angleDoubleRight" | "angleDoubleSmallLeft" | "angleDoubleSmallRight" | "angleDown" | "angleLeft" | "angleRight" | "angleSmallDown" | "angleSmallLeft" | "angleSmallRight" | "angleSmallUp" | "angleUp" | "apple" | "apps" | "apps2" | "appsAdd" | "appsDelete" | "appsSort" | "archive" | "arrowDown" | "arrowFromBottom" | "arrowLeft" | "arrowRight" | "arrowSmallDown" | "arrowSmallLeft" | "arrowSmallRight" | "arrowSmallUp" | "arrowUp" | "arrowUpRight" | "asterik" | "at" | "backpack" | "badge" | "balloons" | "ban" | "bandAid" | "bank" | "barberShop" | "baseball" | "basketball" | "bed" | "beer" | "bell" | "bellRing" | "bellSchool" | "bike" | "billiard" | "bold" | "book" | "bookAlt" | "bookmark" | "bowling" | "box" | "boxAlt" | "breadSlice" | "briefcase" | "broom" | "browser" | "brush" | "bug" | "building" | "bulb" | "butterfly" | "cakeBirthday" | "cakeWedding" | "calculator" | "calendar" | "callHistory" | "callIncoming" | "callMissed" | "callOutgoing" | "camera" | "camping" | "car" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "carrot" | "catalog" | "chartConnected" | "chartHistogram" | "chartNetwork" | "chartPie" | "chartPieAlt" | "chartPyramid" | "chartSetTheory" | "chartTree" | "chatArrowDown" | "chatArrowGrow" | "check" | "checkbox" | "cheese" | "chessPiece" | "childHead" | "circle" | "circleSmall" | "clip" | "clock" | "cloud" | "cloudCheck" | "cloudDisabled" | "cloudDownload" | "clouds" | "cloudShare" | "cloudUpload" | "cocktail" | "coffee" | "comment" | "commentAlt" | "commentCheck" | "commentHeart" | "commentInfo" | "comments" | "commentUser" | "compress" | "compressAlt" | "computer" | "confetti" | "cookie" | "copy" | "copyAlt" | "copyright" | "cow" | "cream" | "creditCard" | "croissant" | "cross" | "crossCircle" | "crossSmall" | "crown" | "cube" | "cupcake" | "cursor" | "cursorFinger" | "cursorPlus" | "cursorText" | "cursorTextAlt" | "dart" | "dashboard" | "database" | "dataTransfer" | "delete" | "diamond" | "dice" | "diploma" | "discoBall" | "disk" | "doctor" | "document" | "documentSigned" | "dollar" | "download" | "drinkAlt" | "drumstick" | "duplicate" | "earnings" | "edit" | "editAlt" | "eLearning" | "envelope" | "envelopeBan" | "envelopeDownload" | "envelopeMarker" | "envelopeOpen" | "envelopePlus" | "euro" | "exclamation" | "expand" | "eye" | "eyeCrossed" | "eyeDropper" | "feather" | "ferrisWheel" | "file" | "fileAdd" | "fileAi" | "fileCheck" | "fileDelete" | "fileEps" | "fileGif" | "fileMusic" | "filePsd" | "fill" | "film" | "filter" | "fingerprint" | "fish" | "flag" | "flame" | "flipHorizontal" | "flower" | "flowerBouquet" | "flowerTulip" | "folder" | "folderAdd" | "following" | "football" | "form" | "forward" | "fox" | "frown" | "ftp" | "gallery" | "gamepad" | "gasPump" | "gem" | "gift" | "github" | "glassCheers" | "glasses" | "globe" | "globeAlt" | "golf" | "graduationCap" | "graphicTablet" | "grid" | "gridAlt" | "guitar" | "gym" | "hamburger" | "handHoldingHeart" | "hastag" | "hatBirthday" | "headphones" | "headset" | "headSideThinking" | "heart" | "heartArrow" | "home" | "homeLocation" | "homeLocationAlt" | "hourglass" | "hourglassEnd" | "iceCream" | "iceSkate" | "idBadge" | "inbox" | "incognito" | "indent" | "infinity" | "info" | "interactive" | "interlining" | "interrogation" | "italic" | "jpg" | "key" | "keyboard" | "kite" | "label" | "laptop" | "lasso" | "laugh" | "layers" | "layoutFluid" | "leaf" | "letterCase" | "lifeRing" | "lineWidth" | "link" | "lipstick" | "list" | "listCheck" | "locationAlt" | "lock" | "lockAlt" | "luggageRolling" | "magicWand" | "makeupBrush" | "manHead" | "map" | "mapMarker" | "mapMarkerCross" | "mapMarkerHome" | "mapMarkerMinus" | "mapMarkerPlus" | "marker" | "markerTime" | "mars" | "marsDouble" | "maskCarnival" | "medicine" | "megaphone" | "meh" | "menuBurger" | "menuDots" | "menuDotsVertical" | "microphone" | "microphoneAlt" | "minus" | "minusSmall" | "mobile" | "modeLandscape" | "modePortrait" | "money" | "moon" | "mountains" | "mouse" | "mugAlt" | "music" | "musicAlt" | "navigation" | "network" | "networkCloud" | "notebook" | "opacity" | "package" | "paintBrush" | "palette" | "paperPlane" | "password" | "pause" | "paw" | "pencil" | "pharmacy" | "phoneCall" | "phoneCross" | "phonePause" | "phoneSlash" | "physics" | "picture" | "pingPong" | "pizzaSlice" | "plane" | "play" | "playAlt" | "playingCards" | "plus" | "plusSmall" | "pokerChip" | "portrait" | "pound" | "power" | "presentation" | "print" | "protractor" | "pulse" | "pyramid" | "quoteRight" | "rainbow" | "raindrops" | "rec" | "receipt" | "recordVinyl" | "rectabgleVertical" | "rectangleHorizontal" | "rectanglePanoramic" | "recycle" | "redo" | "redoAlt" | "reflect" | "refresh" | "resize" | "resources" | "rewind" | "rhombus" | "ringsWedding" | "road" | "rocket" | "roomService" | "rotateRight" | "rugby" | "sad" | "salad" | "scale" | "school" | "schoolBus" | "scissors" | "screen" | "search" | "searchAlt" | "searchHeart" | "settings" | "settingsSliders" | "share" | "shield" | "shieldCheck" | "shieldExclamation" | "shieldInterrogation" | "shieldPlus" | "ship" | "shipSide" | "shop" | "shoppingBag" | "shoppingBagAdd" | "shoppingCart" | "shoppingCartAdd" | "shoppingCartCheck" | "shuffle" | "signalAlt" | "signalAlt1" | "signalAlt2" | "signIn" | "signInAlt" | "signOut" | "signOutAlt" | "skateboard" | "smartphone" | "smile" | "smileWink" | "snowflake" | "soap" | "soup" | "spa" | "speaker" | "sphere" | "spinner" | "spinnerAlt" | "square" | "squareRoot" | "star" | "starFill" | "starOctogram" | "stats" | "stethoscope" | "sticker" | "stop" | "stopwatch" | "subtitles" | "sun" | "sunrise" | "surfing" | "sword" | "syringe" | "tablet" | "target" | "taxi" | "tennis" | "terrace" | "test" | "testTube" | "text" | "textCheck" | "thermometerHalf" | "thumbsDown" | "thumbsUp" | "thumbtack" | "ticket" | "timeAdd" | "timeCheck" | "timeDelete" | "timeFast" | "timeForward" | "timeForwardSixty" | "timeForwardTen" | "timeHalfPast" | "timeOclock" | "timePast" | "timeQuarterPast" | "timeQuarterTo" | "timeTwentyFour" | "toolCrop" | "toolMarquee" | "tooth" | "tornado" | "train" | "trainSide" | "transform" | "trash" | "treatment" | "tree" | "treeChristmas" | "triangle" | "trophy" | "truckSide" | "umbrella" | "underline" | "undo" | "undoAlt" | "unlock" | "upload" | "usbPendrive" | "user" | "userAdd" | "userDelete" | "userRemove" | "userTime" | "utensils" | "vector" | "vectorAlt" | "venus" | "venusDouble" | "venusMars" | "videoCamera" | "volleyball" | "volume" | "wheelchair" | "wifiAlt" | "wind" | "womanHead" | "world" | "yen" | "zoomIn" | "zoomOut";
212
+ selectionBehavior: PfTreeSelectionBehavior;
213
+ propagateSelect: boolean;
214
+ bubbleSelect: boolean;
215
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
216
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
217
+ export default _default;
218
+ type __VLS_WithTemplateSlots<T, S> = T & {
219
+ new (): {
220
+ $slots: S;
221
+ };
222
+ };
@@ -0,0 +1,19 @@
1
+ import { PfIconName } from '../../element/PfIcon/paths';
2
+ import { PfTreeItem, PfTreeUi } from './treeTypes';
3
+ export interface PfTreeContext {
4
+ resolveKey: (item: PfTreeItem, path: string) => string;
5
+ isExpanded: (key: string) => boolean;
6
+ isSelected: (key: string) => boolean;
7
+ isIndeterminate: (key: string) => boolean;
8
+ trailingIcon: PfIconName;
9
+ expandedIcon: PfIconName;
10
+ collapsedIcon: PfIconName;
11
+ disabled: boolean;
12
+ ui: PfTreeUi | undefined;
13
+ itemIconSrc: (item: PfTreeItem) => string | undefined;
14
+ leadingImageAlt: (item: PfTreeItem) => string | undefined;
15
+ leadingIconFor: (item: PfTreeItem, hasChildren: boolean, expanded: boolean) => PfIconName | undefined;
16
+ trailingChevronFor: (item: PfTreeItem) => PfIconName;
17
+ onToggleExpand: (key: string, item: PfTreeItem, originalEvent: Event) => void;
18
+ onSelectRow: (key: string, item: PfTreeItem, originalEvent: Event) => void;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { PfIconName } from '../../element/PfIcon/paths';
2
+ import { PfTreeItem } from './treeTypes';
3
+ export declare function pfTreeItemIconSrc(item: PfTreeItem): string | undefined;
4
+ export declare function pfTreeLeadingImageAlt(item: PfTreeItem): string | undefined;
5
+ export declare function pfTreeLeadingIcon(item: PfTreeItem, hasChildren: boolean, expanded: boolean, expandedIcon: PfIconName, collapsedIcon: PfIconName): PfIconName | undefined;
@@ -0,0 +1,58 @@
1
+ import { PfIconName } from '../../element/PfIcon/paths';
2
+ export type PfTreeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
3
+ export type PfTreeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ export type PfTreeSelectionBehavior = 'replace' | 'toggle';
5
+ export type PfTreeItemUi = Partial<{
6
+ item: string;
7
+ listWithChildren: string;
8
+ itemWithChildren: string;
9
+ link: string;
10
+ linkLeadingIcon: string;
11
+ linkLabel: string;
12
+ linkTrailing: string;
13
+ linkTrailingIcon: string;
14
+ }>;
15
+ /** Root classes (`PfTree`); `item*` — on tree nodes. */
16
+ export type PfTreeUi = Partial<{
17
+ root: string;
18
+ item: string;
19
+ listWithChildren: string;
20
+ itemWithChildren: string;
21
+ link: string;
22
+ linkLeadingIcon: string;
23
+ linkLabel: string;
24
+ linkTrailing: string;
25
+ linkTrailingIcon: string;
26
+ }>;
27
+ export interface PfTreeItem {
28
+ label?: string;
29
+ /** Explicit node key when using `get-key` / `labelKey`. */
30
+ id?: string;
31
+ /** `PfIcon` glyph. */
32
+ icon?: PfIconName;
33
+ /** Image on the left instead of `icon` (URL or data URI). Takes precedence over `icon`. */
34
+ iconSrc?: string;
35
+ /** Label for `iconSrc` (a11y). */
36
+ iconAlt?: string;
37
+ /** Alias for `iconSrc` (like other library components). */
38
+ imageSrc?: string;
39
+ trailingIcon?: PfIconName;
40
+ defaultExpanded?: boolean;
41
+ disabled?: boolean;
42
+ slot?: string;
43
+ children?: PfTreeItem[];
44
+ onToggle?: (e: Event) => void;
45
+ onSelect?: (e: Event) => void;
46
+ class?: unknown;
47
+ ui?: PfTreeItemUi;
48
+ }
49
+ export interface PfTreeTogglePayload {
50
+ originalEvent: Event;
51
+ item: PfTreeItem;
52
+ key: string;
53
+ }
54
+ export interface PfTreeSelectPayload {
55
+ originalEvent: Event;
56
+ item: PfTreeItem;
57
+ key: string;
58
+ }
@@ -0,0 +1,65 @@
1
+ import { Component } from 'vue';
2
+ import { PfBadgeAvatarProps } from '../../element/PfBadge/index.vue';
3
+ import { PfChipColor, PfChipPosition } from '../../element/PfChip/index.vue';
4
+ export type PfUserSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ /** `PfAvatar` props without `size` — size comes from `PfUser`. */
6
+ export type PfUserAvatarProps = Omit<PfBadgeAvatarProps, 'size'>;
7
+ /** `PfChip` props without `size` and `inset` — set from `PfUser`. */
8
+ export type PfUserChipProps = Partial<{
9
+ as: string | Component;
10
+ show: boolean;
11
+ text: string | number;
12
+ color: PfChipColor;
13
+ position: PfChipPosition;
14
+ standalone: boolean;
15
+ }>;
16
+ export type PfUserUi = Partial<{
17
+ root: string;
18
+ wrapper: string;
19
+ name: string;
20
+ description: string;
21
+ avatar: string;
22
+ }>;
23
+ type __VLS_Props = {
24
+ /** Root tag or component when not a link (empty `href` / `to`). */
25
+ as?: string | Component;
26
+ name?: string;
27
+ description?: string;
28
+ avatar?: PfUserAvatarProps;
29
+ /** `PfChip` indicator over the avatar (or `avatar` slot content). */
30
+ chip?: boolean | PfUserChipProps;
31
+ size?: PfUserSize;
32
+ orientation?: 'horizontal' | 'vertical';
33
+ /** Link: same as `href` (`href` wins). */
34
+ href?: string;
35
+ to?: string;
36
+ target?: '_blank' | '_parent' | '_self' | '_top' | string;
37
+ rel?: string;
38
+ download?: string | boolean;
39
+ onClick?: (event: MouseEvent) => void | Promise<void>;
40
+ ui?: PfUserUi;
41
+ };
42
+ declare function __VLS_template(): {
43
+ attrs: Partial<{}>;
44
+ slots: {
45
+ avatar?(_: {}): any;
46
+ avatar?(_: {}): any;
47
+ name?(_: {}): any;
48
+ description?(_: {}): any;
49
+ default?(_: {}): any;
50
+ };
51
+ refs: {};
52
+ rootEl: any;
53
+ };
54
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
55
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
56
+ size: PfUserSize;
57
+ orientation: "horizontal" | "vertical";
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
60
+ export default _default;
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -0,0 +1,3 @@
1
+ import { NodeViewProps } from '@tiptap/vue-3';
2
+ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { Node } from '@tiptap/core';
2
+ declare module '@tiptap/core' {
3
+ interface Commands<ReturnType> {
4
+ imageUpload: {
5
+ insertImageUpload: () => ReturnType;
6
+ };
7
+ }
8
+ }
9
+ export declare const PfEditorImageUpload: Node<any, any>;
10
+ export default PfEditorImageUpload;
@@ -0,0 +1,47 @@
1
+ import { Extensions, JSONContent } from '@tiptap/vue-3';
2
+ import { PfEditorContentType, PfEditorCustomHandlers, PfEditorProps } from '../utils/types';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {
7
+ editor: import('@tiptap/vue-3').Editor | undefined;
8
+ handlers: PfEditorCustomHandlers;
9
+ }): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<PfEditorProps, {
16
+ editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: string | JSONContent | JSONContent[] | null) => any;
19
+ }, string, import('vue').PublicProps, Readonly<PfEditorProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: string | JSONContent | JSONContent[] | null) => any) | undefined;
21
+ }>, {
22
+ image: boolean | Partial<import('@tiptap/extension-image').ImageOptions>;
23
+ ui: import('../utils/types').PfEditorUi;
24
+ placeholder: string | (Partial<import('@tiptap/extensions').PlaceholderOptions> & {
25
+ mode?: "firstLine" | "everyLine";
26
+ });
27
+ modelValue: null | string | JSONContent | JSONContent[];
28
+ autofocus: boolean | "start" | "end" | "all";
29
+ markdown: Partial<{
30
+ markedOptions: Record<string, unknown>;
31
+ }> | false;
32
+ mention: boolean | Partial<Omit<import('@tiptap/extension-mention').MentionOptions<any, any>, "suggestion" | "suggestions">>;
33
+ contentType: PfEditorContentType;
34
+ starterKit: Partial<import('@tiptap/starter-kit').StarterKitOptions>;
35
+ handlers: PfEditorCustomHandlers;
36
+ nodeRange: boolean | Partial<import('@tiptap/extension-node-range').NodeRangeOptions>;
37
+ extensions: Extensions;
38
+ editable: boolean;
39
+ textDirection: "ltr" | "rtl" | "auto";
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,95 @@
1
+ import { Editor, JSONContent } from '@tiptap/vue-3';
2
+ import { PluginKey } from '@tiptap/pm/state';
3
+ import { NestedOptions, DragHandlePluginProps } from '@tiptap/extension-drag-handle';
4
+ type FloatingUIOptions = NonNullable<DragHandlePluginProps['computePositionConfig']>;
5
+ type __VLS_Props = {
6
+ editor?: Editor;
7
+ icon?: string;
8
+ color?: 'error' | 'neutral' | 'primary' | 'secondary' | 'success' | 'info' | 'warning';
9
+ variant?: 'ghost' | 'solid' | 'outline' | 'soft' | 'subtle' | 'link';
10
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ options?: FloatingUIOptions;
12
+ pluginKey?: string | PluginKey;
13
+ nested?: boolean | NestedOptions;
14
+ onElementDragStart?: (event: DragEvent) => void;
15
+ onElementDragEnd?: (event: DragEvent) => void;
16
+ ui?: Partial<{
17
+ root: string;
18
+ handle: string;
19
+ }>;
20
+ };
21
+ declare function onClick(): {
22
+ node: {
23
+ [x: string]: any;
24
+ type?: string | undefined;
25
+ attrs?: Record<string, any> | undefined;
26
+ content?: /*elided*/ any[] | undefined;
27
+ marks?: {
28
+ [x: string]: any;
29
+ type: string;
30
+ attrs?: Record<string, any> | undefined;
31
+ }[] | undefined;
32
+ text?: string | undefined;
33
+ };
34
+ pos: number;
35
+ } | null;
36
+ declare function __VLS_template(): {
37
+ attrs: Partial<{}>;
38
+ slots: {
39
+ default?(_: {
40
+ ui: {
41
+ handle: () => (string | undefined)[];
42
+ };
43
+ onClick: typeof onClick;
44
+ }): any;
45
+ };
46
+ refs: {};
47
+ rootEl: any;
48
+ };
49
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
50
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ hover: (payload: {
52
+ node: JSONContent;
53
+ pos: number;
54
+ }) => any;
55
+ nodeChange: (payload: {
56
+ node: JSONContent;
57
+ pos: number;
58
+ }) => any;
59
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
60
+ onHover?: ((payload: {
61
+ node: JSONContent;
62
+ pos: number;
63
+ }) => any) | undefined;
64
+ onNodeChange?: ((payload: {
65
+ node: JSONContent;
66
+ pos: number;
67
+ }) => any) | undefined;
68
+ }>, {
69
+ size: "xs" | "sm" | "md" | "lg" | "xl";
70
+ icon: string;
71
+ color: "error" | "neutral" | "primary" | "secondary" | "success" | "info" | "warning";
72
+ variant: "ghost" | "solid" | "outline" | "soft" | "subtle" | "link";
73
+ ui: Partial<{
74
+ root: string;
75
+ handle: string;
76
+ }>;
77
+ options: {
78
+ placement?: import('@floating-ui/utils').Placement | undefined;
79
+ strategy?: import('@floating-ui/utils').Strategy | undefined;
80
+ middleware?: Array<import('@floating-ui/dom').Middleware | null | undefined | false> | undefined;
81
+ platform?: import('@floating-ui/dom').Platform | undefined;
82
+ };
83
+ nested: boolean | NestedOptions;
84
+ editor: Editor;
85
+ pluginKey: string | PluginKey;
86
+ onElementDragStart: (event: DragEvent) => void;
87
+ onElementDragEnd: (event: DragEvent) => void;
88
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
89
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
90
+ export default _default;
91
+ type __VLS_WithTemplateSlots<T, S> = T & {
92
+ new (): {
93
+ $slots: S;
94
+ };
95
+ };
@@ -0,0 +1,43 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+ import { PfEditorEmojiMenuItem } from '../utils/types';
3
+ type __VLS_Props = {
4
+ editor?: Editor;
5
+ items?: PfEditorEmojiMenuItem[] | PfEditorEmojiMenuItem[][];
6
+ char?: string;
7
+ pluginKey?: string;
8
+ filterFields?: string[];
9
+ limit?: number;
10
+ ui?: Partial<{
11
+ content: string;
12
+ viewport: string;
13
+ group: string;
14
+ label: string;
15
+ separator: string;
16
+ item: string;
17
+ itemLeadingIcon: string;
18
+ itemWrapper: string;
19
+ itemLabel: string;
20
+ itemDescription: string;
21
+ }>;
22
+ };
23
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
+ ui: Partial<{
25
+ content: string;
26
+ viewport: string;
27
+ group: string;
28
+ label: string;
29
+ separator: string;
30
+ item: string;
31
+ itemLeadingIcon: string;
32
+ itemWrapper: string;
33
+ itemLabel: string;
34
+ itemDescription: string;
35
+ }>;
36
+ items: PfEditorEmojiMenuItem[] | PfEditorEmojiMenuItem[][];
37
+ filterFields: string[];
38
+ editor: Editor;
39
+ pluginKey: string;
40
+ char: string;
41
+ limit: number;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ export default _default;