@octans/ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/bin/octans-icons.mjs +208 -0
  4. package/dist/components/ActionList/ActionList.vue.d.ts +77 -0
  5. package/dist/components/ActionList/ActionListButton.vue.d.ts +85 -0
  6. package/dist/components/ActionList/ActionListMenu.vue.d.ts +18 -0
  7. package/dist/components/ActionList/index.d.ts +1 -0
  8. package/dist/components/AppFrame/AppFrame.vue.d.ts +26 -0
  9. package/dist/components/AppFrame/context.d.ts +40 -0
  10. package/dist/components/AppFrame/index.d.ts +3 -0
  11. package/dist/components/AppFrame/types.d.ts +52 -0
  12. package/dist/components/Badge/Badge.vue.d.ts +125 -0
  13. package/dist/components/Badge/index.d.ts +1 -0
  14. package/dist/components/Banner/Banner.vue.d.ts +239 -0
  15. package/dist/components/Banner/index.d.ts +1 -0
  16. package/dist/components/Button/Button.vue.d.ts +284 -0
  17. package/dist/components/Button/ButtonGroup.vue.d.ts +44 -0
  18. package/dist/components/Button/ButtonGroupItem.vue.d.ts +5 -0
  19. package/dist/components/Button/index.d.ts +3 -0
  20. package/dist/components/Calendar/Calendar.vue.d.ts +15 -0
  21. package/dist/components/Calendar/index.d.ts +2 -0
  22. package/dist/components/Calendar/types.d.ts +39 -0
  23. package/dist/components/CalendarHeatmap/CalendarHeatmap.vue.d.ts +21 -0
  24. package/dist/components/CalendarHeatmap/index.d.ts +2 -0
  25. package/dist/components/CalendarHeatmap/types.d.ts +168 -0
  26. package/dist/components/Caption/Caption.vue.d.ts +5 -0
  27. package/dist/components/Caption/index.d.ts +1 -0
  28. package/dist/components/Card/Card.vue.d.ts +82 -0
  29. package/dist/components/Card/CardSection.vue.d.ts +89 -0
  30. package/dist/components/Card/index.d.ts +2 -0
  31. package/dist/components/Card/utils.d.ts +4 -0
  32. package/dist/components/Checkbox/Checkbox.vue.d.ts +171 -0
  33. package/dist/components/Checkbox/CheckboxControl.vue.d.ts +59 -0
  34. package/dist/components/Checkbox/index.d.ts +2 -0
  35. package/dist/components/Choice/Choice.vue.d.ts +102 -0
  36. package/dist/components/Choice/index.d.ts +1 -0
  37. package/dist/components/ChoiceList/ChoiceList.vue.d.ts +199 -0
  38. package/dist/components/ChoiceList/index.d.ts +2 -0
  39. package/dist/components/ChoiceList/types.d.ts +31 -0
  40. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +18 -0
  41. package/dist/components/ColorPicker/index.d.ts +2 -0
  42. package/dist/components/ColorPicker/types.d.ts +62 -0
  43. package/dist/components/ColorSelector/ColorSelector.vue.d.ts +34 -0
  44. package/dist/components/ColorSelector/index.d.ts +2 -0
  45. package/dist/components/ColorSelector/types.d.ts +143 -0
  46. package/dist/components/DataTable/BulkActions.vue.d.ts +282 -0
  47. package/dist/components/DataTable/DataTable.vue.d.ts +40 -0
  48. package/dist/components/DataTable/DataTableFooter.vue.d.ts +22 -0
  49. package/dist/components/DataTable/index.d.ts +2 -0
  50. package/dist/components/DataTable/types.d.ts +249 -0
  51. package/dist/components/DatePicker/DatePicker.vue.d.ts +17 -0
  52. package/dist/components/DatePicker/index.d.ts +4 -0
  53. package/dist/components/DatePicker/types.d.ts +57 -0
  54. package/dist/components/Divider/Divider.vue.d.ts +20 -0
  55. package/dist/components/Divider/index.d.ts +2 -0
  56. package/dist/components/Divider/types.d.ts +76 -0
  57. package/dist/components/EventDelegator/EventDelegator.vue.d.ts +18 -0
  58. package/dist/components/EventDelegator/index.d.ts +1 -0
  59. package/dist/components/EventDelegator/utils.d.ts +25 -0
  60. package/dist/components/FileInput/DropZone.vue.d.ts +67 -0
  61. package/dist/components/FileInput/FileInput.vue.d.ts +422 -0
  62. package/dist/components/FileInput/ItemList.vue.d.ts +109 -0
  63. package/dist/components/FileInput/index.d.ts +1 -0
  64. package/dist/components/FileInput/utils.d.ts +15 -0
  65. package/dist/components/Filters/FilterActions.vue.d.ts +236 -0
  66. package/dist/components/Filters/FilterItem.vue.d.ts +813 -0
  67. package/dist/components/Filters/Filters.vue.d.ts +1627 -0
  68. package/dist/components/Filters/index.d.ts +1 -0
  69. package/dist/components/Filters/utils.d.ts +1 -0
  70. package/dist/components/FooterHelp/FooterHelp.vue.d.ts +16 -0
  71. package/dist/components/FooterHelp/index.d.ts +1 -0
  72. package/dist/components/FormLayout/FormLayout.vue.d.ts +5 -0
  73. package/dist/components/FormLayout/FormLayoutGroup.vue.d.ts +17 -0
  74. package/dist/components/FormLayout/index.d.ts +2 -0
  75. package/dist/components/Formatter/Formatter.vue.d.ts +42 -0
  76. package/dist/components/Formatter/index.d.ts +1 -0
  77. package/dist/components/GlobalNav/GlobalNav.vue.d.ts +33 -0
  78. package/dist/components/GlobalNav/index.d.ts +2 -0
  79. package/dist/components/GlobalNav/types.d.ts +64 -0
  80. package/dist/components/GradientPicker/GradientPicker.vue.d.ts +20 -0
  81. package/dist/components/GradientPicker/index.d.ts +2 -0
  82. package/dist/components/GradientPicker/types.d.ts +74 -0
  83. package/dist/components/Heading/Heading.vue.d.ts +18 -0
  84. package/dist/components/Heading/index.d.ts +1 -0
  85. package/dist/components/Icon/Icon.vue.d.ts +112 -0
  86. package/dist/components/Icon/iconBundle.d.ts +1 -0
  87. package/dist/components/Icon/index.d.ts +1 -0
  88. package/dist/components/InlineError/InlineError.vue.d.ts +6 -0
  89. package/dist/components/InlineError/index.d.ts +1 -0
  90. package/dist/components/Labelled/Labelled.vue.d.ts +110 -0
  91. package/dist/components/Labelled/index.d.ts +1 -0
  92. package/dist/components/Layout/Layout.vue.d.ts +13 -0
  93. package/dist/components/Layout/LayoutSection.vue.d.ts +16 -0
  94. package/dist/components/Layout/LayoutSectionAnnotated.vue.d.ts +34 -0
  95. package/dist/components/Layout/index.d.ts +3 -0
  96. package/dist/components/LineClamper/LineClamper.vue.d.ts +16 -0
  97. package/dist/components/LineClamper/index.d.ts +2 -0
  98. package/dist/components/LineClamper/types.d.ts +7 -0
  99. package/dist/components/Link/Link.vue.d.ts +19 -0
  100. package/dist/components/Link/index.d.ts +1 -0
  101. package/dist/components/List/List.vue.d.ts +15 -0
  102. package/dist/components/List/ListItem.vue.d.ts +16 -0
  103. package/dist/components/List/index.d.ts +3 -0
  104. package/dist/components/List/types.d.ts +51 -0
  105. package/dist/components/LoaderOverlay/LoaderOverlay.vue.d.ts +18 -0
  106. package/dist/components/LoaderOverlay/host.d.ts +6 -0
  107. package/dist/components/LoaderOverlay/index.d.ts +26 -0
  108. package/dist/components/LoaderOverlay/store.d.ts +7 -0
  109. package/dist/components/LoaderOverlay/types.d.ts +24 -0
  110. package/dist/components/LoadingBar/LoadingBar.vue.d.ts +7 -0
  111. package/dist/components/LoadingBar/host.d.ts +6 -0
  112. package/dist/components/LoadingBar/index.d.ts +28 -0
  113. package/dist/components/LoadingBar/store.d.ts +6 -0
  114. package/dist/components/LoadingBar/types.d.ts +16 -0
  115. package/dist/components/MaybeMountingPortal/MaybeMountingPortal.vue.d.ts +53 -0
  116. package/dist/components/MaybeMountingPortal/index.d.ts +1 -0
  117. package/dist/components/MaybeRouterLink/MaybeRouterLink.vue.d.ts +34 -0
  118. package/dist/components/MaybeRouterLink/index.d.ts +2 -0
  119. package/dist/components/MaybeRouterLink/types.d.ts +49 -0
  120. package/dist/components/Modal/Modal.vue.d.ts +28 -0
  121. package/dist/components/Modal/ModalBackdrop.vue.d.ts +12 -0
  122. package/dist/components/Modal/ModalHost.vue.d.ts +3 -0
  123. package/dist/components/Modal/ModalStackItem.vue.d.ts +14 -0
  124. package/dist/components/Modal/api/AlertModal.vue.d.ts +10 -0
  125. package/dist/components/Modal/api/Base.d.ts +12 -0
  126. package/dist/components/Modal/api/ConfirmModal.vue.d.ts +10 -0
  127. package/dist/components/Modal/api/GenericModal.vue.d.ts +10 -0
  128. package/dist/components/Modal/api/PromptModal.vue.d.ts +10 -0
  129. package/dist/components/Modal/api/types.d.ts +110 -0
  130. package/dist/components/Modal/host.d.ts +2 -0
  131. package/dist/components/Modal/index.d.ts +10 -0
  132. package/dist/components/Modal/manager.d.ts +80 -0
  133. package/dist/components/Modal/types.d.ts +49 -0
  134. package/dist/components/NavField/NavField.vue.d.ts +223 -0
  135. package/dist/components/NavField/index.d.ts +1 -0
  136. package/dist/components/Navigation/Navigation.vue.d.ts +47 -0
  137. package/dist/components/Navigation/components/Item.vue.d.ts +10 -0
  138. package/dist/components/Navigation/components/Section.vue.d.ts +13 -0
  139. package/dist/components/Navigation/index.d.ts +2 -0
  140. package/dist/components/Navigation/types.d.ts +117 -0
  141. package/dist/components/OtpInput/OtpInput.vue.d.ts +21 -0
  142. package/dist/components/OtpInput/index.d.ts +2 -0
  143. package/dist/components/OtpInput/types.d.ts +87 -0
  144. package/dist/components/Page/Page.vue.d.ts +34 -0
  145. package/dist/components/Page/index.d.ts +2 -0
  146. package/dist/components/Page/types.d.ts +75 -0
  147. package/dist/components/PageActions/PageActions.vue.d.ts +6 -0
  148. package/dist/components/PageActions/index.d.ts +2 -0
  149. package/dist/components/PageActions/types.d.ts +17 -0
  150. package/dist/components/Pagination/Pagination.vue.d.ts +22 -0
  151. package/dist/components/Pagination/index.d.ts +1 -0
  152. package/dist/components/Popper/Popper.vue.d.ts +45 -0
  153. package/dist/components/Popper/index.d.ts +2 -0
  154. package/dist/components/Popper/types.d.ts +29 -0
  155. package/dist/components/PreventAutoComplete/PreventAutoComplete.vue.d.ts +24 -0
  156. package/dist/components/PreventAutoComplete/index.d.ts +1 -0
  157. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +48 -0
  158. package/dist/components/ProgressBar/index.d.ts +2 -0
  159. package/dist/components/RadioButton/RadioButton.vue.d.ts +143 -0
  160. package/dist/components/RadioButton/RadioButtonControl.vue.d.ts +50 -0
  161. package/dist/components/RadioButton/index.d.ts +2 -0
  162. package/dist/components/RangeSlider/RangeSlider.vue.d.ts +303 -0
  163. package/dist/components/RangeSlider/index.d.ts +1 -0
  164. package/dist/components/Rating/Rating.vue.d.ts +20 -0
  165. package/dist/components/Rating/index.d.ts +2 -0
  166. package/dist/components/Rating/types.d.ts +78 -0
  167. package/dist/components/ResourceList/ResourceItem.vue.d.ts +17 -0
  168. package/dist/components/ResourceList/ResourceList.vue.d.ts +19 -0
  169. package/dist/components/ResourceList/index.d.ts +3 -0
  170. package/dist/components/ResourceList/types.d.ts +19 -0
  171. package/dist/components/SaveBar/SaveBar.vue.d.ts +15 -0
  172. package/dist/components/SaveBar/index.d.ts +4 -0
  173. package/dist/components/SaveBar/store.d.ts +56 -0
  174. package/dist/components/SaveBar/types.d.ts +42 -0
  175. package/dist/components/SaveBarController/SaveBarController.vue.d.ts +40 -0
  176. package/dist/components/SaveBarController/index.d.ts +1 -0
  177. package/dist/components/ScrollPane/ScrollPane.vue.d.ts +24 -0
  178. package/dist/components/ScrollPane/index.d.ts +2 -0
  179. package/dist/components/ScrollPane/types.d.ts +64 -0
  180. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +39 -0
  181. package/dist/components/SegmentedControl/index.d.ts +2 -0
  182. package/dist/components/SegmentedControl/types.d.ts +119 -0
  183. package/dist/components/Select/Select.vue.d.ts +901 -0
  184. package/dist/components/Select/index.d.ts +3 -0
  185. package/dist/components/Sheet/Sheet.vue.d.ts +41 -0
  186. package/dist/components/Sheet/index.d.ts +2 -0
  187. package/dist/components/Sheet/manager.d.ts +34 -0
  188. package/dist/components/Sheet/types.d.ts +92 -0
  189. package/dist/components/SkeletonBodyText/SkeletonBodyText.vue.d.ts +17 -0
  190. package/dist/components/SkeletonBodyText/index.d.ts +1 -0
  191. package/dist/components/SkeletonCard/SkeletonCard.vue.d.ts +34 -0
  192. package/dist/components/SkeletonCard/index.d.ts +1 -0
  193. package/dist/components/SkeletonDisplayText/SkeletonDisplayText.vue.d.ts +17 -0
  194. package/dist/components/SkeletonDisplayText/index.d.ts +1 -0
  195. package/dist/components/Spinner/Spinner.vue.d.ts +52 -0
  196. package/dist/components/Spinner/index.d.ts +1 -0
  197. package/dist/components/Splitter/Splitter.vue.d.ts +60 -0
  198. package/dist/components/Splitter/index.d.ts +2 -0
  199. package/dist/components/Splitter/types.d.ts +177 -0
  200. package/dist/components/Stack/Stack.vue.d.ts +130 -0
  201. package/dist/components/Stack/StackItem.vue.d.ts +23 -0
  202. package/dist/components/Stack/index.d.ts +2 -0
  203. package/dist/components/StatGroup/Stat.vue.d.ts +16 -0
  204. package/dist/components/StatGroup/StatGroup.vue.d.ts +17 -0
  205. package/dist/components/StatGroup/index.d.ts +3 -0
  206. package/dist/components/StatGroup/types.d.ts +42 -0
  207. package/dist/components/Sticky/Sticky.vue.d.ts +27 -0
  208. package/dist/components/Sticky/index.d.ts +2 -0
  209. package/dist/components/Sticky/types.d.ts +24 -0
  210. package/dist/components/SyntaxHighlighter/SyntaxHighlighter.vue.d.ts +12 -0
  211. package/dist/components/SyntaxHighlighter/index.d.ts +2 -0
  212. package/dist/components/SyntaxHighlighter/types.d.ts +10 -0
  213. package/dist/components/Tabs/Tabs.vue.d.ts +23 -0
  214. package/dist/components/Tabs/index.d.ts +2 -0
  215. package/dist/components/Tabs/types.d.ts +19 -0
  216. package/dist/components/Tag/Tag.vue.d.ts +29 -0
  217. package/dist/components/Tag/index.d.ts +1 -0
  218. package/dist/components/TextContainer/TextContainer.vue.d.ts +13 -0
  219. package/dist/components/TextContainer/index.d.ts +1 -0
  220. package/dist/components/TextField/TextField.vue.d.ts +38 -0
  221. package/dist/components/TextField/index.d.ts +2 -0
  222. package/dist/components/TextField/types.d.ts +130 -0
  223. package/dist/components/TextStyle/TextStyle.vue.d.ts +15 -0
  224. package/dist/components/TextStyle/index.d.ts +1 -0
  225. package/dist/components/Thumbnail/Thumbnail.vue.d.ts +17 -0
  226. package/dist/components/Thumbnail/index.d.ts +2 -0
  227. package/dist/components/Thumbnail/types.d.ts +32 -0
  228. package/dist/components/TimePicker/TimePicker.vue.d.ts +25 -0
  229. package/dist/components/TimePicker/index.d.ts +2 -0
  230. package/dist/components/TimePicker/types.d.ts +90 -0
  231. package/dist/components/TimezonePicker/TimezonePicker.vue.d.ts +15 -0
  232. package/dist/components/TimezonePicker/index.d.ts +2 -0
  233. package/dist/components/TimezonePicker/types.d.ts +50 -0
  234. package/dist/components/TimezonePicker/zoneCountries.d.ts +2 -0
  235. package/dist/components/ToastManager/ProgressBar.vue.d.ts +8 -0
  236. package/dist/components/ToastManager/Toast.vue.d.ts +14 -0
  237. package/dist/components/ToastManager/ToastManager.vue.d.ts +19 -0
  238. package/dist/components/ToastManager/host.d.ts +14 -0
  239. package/dist/components/ToastManager/index.d.ts +24 -0
  240. package/dist/components/ToastManager/manager.d.ts +45 -0
  241. package/dist/components/ToastManager/types.d.ts +44 -0
  242. package/dist/components/ToggleSwitch/ToggleSwitch.vue.d.ts +35 -0
  243. package/dist/components/ToggleSwitch/index.d.ts +2 -0
  244. package/dist/components/ToggleSwitch/types.d.ts +84 -0
  245. package/dist/components/Tooltip/Tooltip.vue.d.ts +20 -0
  246. package/dist/components/Tooltip/index.d.ts +1 -0
  247. package/dist/components/UiProvider/UiProvider.vue.d.ts +16 -0
  248. package/dist/components/UiProvider/index.d.ts +2 -0
  249. package/dist/components/UiProvider/types.d.ts +2 -0
  250. package/dist/components/UiProvider/utils.d.ts +5 -0
  251. package/dist/components/UnstyledLink/UnstyledLink.vue.d.ts +5 -0
  252. package/dist/components/UnstyledLink/index.d.ts +1 -0
  253. package/dist/components/all.d.ts +92 -0
  254. package/dist/components/types.d.ts +74 -0
  255. package/dist/globalExtensions.d.ts +7 -0
  256. package/dist/i18n/en.json.d.ts +60 -0
  257. package/dist/lib.d.ts +67 -0
  258. package/dist/lib.umd.d.ts +1 -0
  259. package/dist/style.css +2 -0
  260. package/dist/test/setup.d.ts +1 -0
  261. package/dist/ui.js +20051 -0
  262. package/dist/ui.umd.js +10 -0
  263. package/dist/utils/autoHost.d.ts +27 -0
  264. package/dist/utils/color.d.ts +112 -0
  265. package/dist/utils/colorRamp.d.ts +51 -0
  266. package/dist/utils/createTheme.d.ts +52 -0
  267. package/dist/utils/customTheme.d.ts +73 -0
  268. package/dist/utils/date.d.ts +4 -0
  269. package/dist/utils/debounce.d.ts +3 -0
  270. package/dist/utils/deferredPromise.d.ts +6 -0
  271. package/dist/utils/format.d.ts +9 -0
  272. package/dist/utils/fuzzy.d.ts +33 -0
  273. package/dist/utils/gradient.d.ts +83 -0
  274. package/dist/utils/index.d.ts +31 -0
  275. package/dist/utils/loader.d.ts +1 -0
  276. package/dist/utils/positionPanel.d.ts +32 -0
  277. package/dist/utils/radix.d.ts +6 -0
  278. package/dist/utils/theme.d.ts +42 -0
  279. package/dist/utils/timezone.d.ts +66 -0
  280. package/dist/utils/tokens.d.ts +62 -0
  281. package/dist/utils/translate.d.ts +27 -0
  282. package/dist/zoneCountries-CWZGMHyp.js +353 -0
  283. package/package.json +120 -0
@@ -0,0 +1,7 @@
1
+ export interface LineClamperProps {
2
+ /**
3
+ * Number of lines to clamp the text to.
4
+ * @default 2
5
+ */
6
+ lines?: number;
7
+ }
@@ -0,0 +1,19 @@
1
+ export interface LinkProps {
2
+ url: string;
3
+ external?: boolean;
4
+ }
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import('vue').DefineComponent<LinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LinkProps> & Readonly<{}>, {
10
+ external: boolean;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export { default as Link, default as PageLink } from './Link.vue';
@@ -0,0 +1,15 @@
1
+ import { ListItemType, ListProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<ListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "select-item": (item: ListItemType) => any;
4
+ }, string, import('vue').PublicProps, Readonly<ListProps> & Readonly<{
5
+ "onSelect-item"?: ((item: ListItemType) => any) | undefined;
6
+ }>, {
7
+ type: import('./types').ListType;
8
+ tight: boolean;
9
+ maxItems: number;
10
+ inCard: boolean;
11
+ inCardSection: boolean;
12
+ selectable: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { ListItemProps } from './types';
2
+ declare var __VLS_6: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<ListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ListItemProps> & Readonly<{}>, {
7
+ listType: import('./types').ListType;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,3 @@
1
+ export { default as List } from './List.vue';
2
+ export { default as ListItem } from './ListItem.vue';
3
+ export * from './types';
@@ -0,0 +1,51 @@
1
+ export type ListType = 'bullet' | 'number' | 'error';
2
+ export interface ListItemType {
3
+ label?: string;
4
+ content?: string;
5
+ idLabel?: string | null;
6
+ [key: string]: any;
7
+ }
8
+ export interface ListProps {
9
+ /**
10
+ * The style to render the list.
11
+ */
12
+ type?: ListType;
13
+ /**
14
+ * Optionally bound the list to data.
15
+ */
16
+ items?: ListItemType[];
17
+ /**
18
+ * The maximum number of items to display. If the list is truncated
19
+ * `moreItemsText` will be added to the bottom.
20
+ */
21
+ maxItems?: number;
22
+ /**
23
+ * The text to render when there are no items to display. Set to falsy
24
+ * to disable.
25
+ */
26
+ emptyText?: string;
27
+ /**
28
+ * The text to render when items are truncated. The `{count}` symbol is replaced
29
+ * by the number of items that were truncated.
30
+ */
31
+ moreItemsText?: string;
32
+ /**
33
+ * If enabled the list is rendered with condensed spacing.
34
+ */
35
+ tight?: boolean;
36
+ /**
37
+ * Adds a separator between each item as well as padding so they can be
38
+ * rendered in a card.
39
+ */
40
+ inCard?: boolean;
41
+ /**
42
+ * Same as `inCard` but also negates the horizontal padding that the card
43
+ * section provides.
44
+ */
45
+ inCardSection?: boolean;
46
+ selectable?: boolean;
47
+ }
48
+ export interface ListItemProps {
49
+ item?: ListItemType;
50
+ listType?: ListType;
51
+ }
@@ -0,0 +1,18 @@
1
+ import { LoaderOverlayProps } from './types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<LoaderOverlayProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LoaderOverlayProps> & Readonly<{}>, {
7
+ visible: boolean;
8
+ message: string;
9
+ fullscreen: boolean;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The overlay `$ui.loader.show()` falls back to when no `<LoaderOverlay>` is
3
+ * mounted anywhere — fixed over the whole viewport. An `AppFrame` (or any
4
+ * consumer-placed overlay) mounting later takes over and this one retires.
5
+ */
6
+ export declare const ensureHost: () => void, teardownHost: () => void;
@@ -0,0 +1,26 @@
1
+ export { default as LoaderOverlay } from './LoaderOverlay.vue';
2
+ export type { LoaderOverlayProps } from './types';
3
+ /**
4
+ * The global blocking loader, also exposed as `$ui.loader`. `show()` covers
5
+ * the page with a dimmed overlay and a spinner until `hide()`.
6
+ *
7
+ * Renders in any mounted `<LoaderOverlay>` — `AppFrame` includes one covering
8
+ * its content area — and when none exists, a full-viewport overlay is mounted
9
+ * on first use, so nothing has to be placed in the page for this to work.
10
+ */
11
+ export declare const loader: {
12
+ /** Whether the overlay is currently showing. Reactive. */
13
+ readonly visible: boolean;
14
+ show(message?: string): void;
15
+ hide(): void;
16
+ };
17
+ /**
18
+ * Composable form of `$ui.loader` — the same shared overlay state, with
19
+ * `visible` as a ref, so destructuring keeps it reactive.
20
+ */
21
+ export declare function useLoader(): {
22
+ /** Whether the overlay is currently showing. */
23
+ visible: import('vue').ComputedRef<boolean>;
24
+ show: (message?: string) => void;
25
+ hide: () => void;
26
+ };
@@ -0,0 +1,7 @@
1
+ export declare const loaderState: {
2
+ readonly visible: boolean;
3
+ readonly message: string;
4
+ };
5
+ export declare const loaderHosts: import('../../utils/autoHost').HostRegistryType;
6
+ export declare function showLoader(message?: string): void;
7
+ export declare function hideLoader(): void;
@@ -0,0 +1,24 @@
1
+ export interface LoaderOverlayProps {
2
+ /**
3
+ * Shows the overlay directly, independent of `$ui.loader`. The overlay is
4
+ * visible when either this is true or `$ui.loader.show()` has been called.
5
+ *
6
+ * @default false
7
+ */
8
+ visible?: boolean;
9
+ /**
10
+ * Text under the spinner when the overlay was shown by the `visible` prop,
11
+ * or when `$ui.loader.show()` was called without a message.
12
+ *
13
+ * @default 'Loading...'
14
+ */
15
+ message?: string;
16
+ /**
17
+ * Cover the whole viewport rather than the nearest positioned ancestor.
18
+ * This is what the auto-mounted overlay uses; the one inside `AppFrame`
19
+ * covers only the content area, leaving the nav usable.
20
+ *
21
+ * @default false
22
+ */
23
+ fullscreen?: boolean;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { LoadingBarProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<LoadingBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LoadingBarProps> & Readonly<{}>, {
3
+ fixed: boolean;
4
+ height: number | string;
5
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The bar `$ui.progress.start()` falls back to when no `<LoadingBar>` is
3
+ * mounted anywhere — fixed to the top of the viewport. A `GlobalNav` (or any
4
+ * consumer-placed bar) mounting later takes over and this one retires.
5
+ */
6
+ export declare const ensureHost: () => void, teardownHost: () => void;
@@ -0,0 +1,28 @@
1
+ export { default as LoadingBar } from './LoadingBar.vue';
2
+ export type { LoadingBarProps } from './types';
3
+ /**
4
+ * The global page-load trickle, also exposed as `$ui.progress`. Call `start()`
5
+ * when a navigation or long fetch begins and `done()` when it lands; the bar
6
+ * creeps toward 99% on its own in between.
7
+ *
8
+ * Renders in any mounted `<LoadingBar>` — `GlobalNav` includes one — and when
9
+ * none exists, a bar fixed to the top of the viewport is mounted on first use,
10
+ * so nothing has to be placed in the page for this to work.
11
+ */
12
+ export declare const progress: {
13
+ /** The current bar position, 0–100. 0 means idle. Reactive — a getter into
14
+ * the shared store, so it works in computeds and templates. */
15
+ readonly value: number;
16
+ start(): void;
17
+ done(): void;
18
+ };
19
+ /**
20
+ * Composable form of `$ui.progress` — the same shared trickle, with the
21
+ * position as a ref, so destructuring keeps it reactive.
22
+ */
23
+ export declare function useProgress(): {
24
+ /** The current bar position, 0–100. 0 means idle. */
25
+ value: import('vue').ComputedRef<number>;
26
+ start: () => void;
27
+ done: () => void;
28
+ };
@@ -0,0 +1,6 @@
1
+ export declare const loadingBarState: {
2
+ readonly value: number;
3
+ };
4
+ export declare const loadingBarHosts: import('../../utils/autoHost').HostRegistryType;
5
+ export declare function startProgress(): void;
6
+ export declare function doneProgress(): void;
@@ -0,0 +1,16 @@
1
+ export interface LoadingBarProps {
2
+ /**
3
+ * Pin the bar to the top of the viewport rather than the top of its nearest
4
+ * positioned ancestor. This is what the auto-mounted bar uses; set it when
5
+ * placing your own bar outside any chrome.
6
+ *
7
+ * @default false
8
+ */
9
+ fixed?: boolean;
10
+ /**
11
+ * Thickness of the bar — a number of pixels, or any CSS length.
12
+ *
13
+ * @default 4
14
+ */
15
+ height?: number | string;
16
+ }
@@ -0,0 +1,53 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ /**
5
+ * Renders the content in a `<MountingPortal>` if `true` otherwise renders
6
+ * the content in a `<div>`.
7
+ */
8
+ teleport: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ mountTo: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ /**
17
+ * Defers mounting the teleported content until the rest of the app has
18
+ * rendered, so `mountTo` can point at a target that only exists after the
19
+ * same render cycle. Content is still in the DOM by `nextTick()`.
20
+ */
21
+ defer: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
26
+ [key: string]: any;
27
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
+ /**
29
+ * Renders the content in a `<MountingPortal>` if `true` otherwise renders
30
+ * the content in a `<div>`.
31
+ */
32
+ teleport: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ mountTo: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ /**
41
+ * Defers mounting the teleported content until the rest of the app has
42
+ * rendered, so `mountTo` can point at a target that only exists after the
43
+ * same render cycle. Content is still in the DOM by `nextTick()`.
44
+ */
45
+ defer: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>> & Readonly<{}>, {
50
+ defer: boolean;
51
+ teleport: boolean;
52
+ mountTo: string;
53
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as MaybeMountingPortal } from './MaybeMountingPortal.vue';
@@ -0,0 +1,34 @@
1
+ import { MaybeRouterLinkProps } from './types';
2
+ declare var __VLS_9: any, __VLS_19: any, __VLS_21: {
3
+ href?: string;
4
+ isActive: boolean;
5
+ isExactActive: boolean;
6
+ }, __VLS_30: {
7
+ href?: string;
8
+ isActive: boolean;
9
+ isExactActive: boolean;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_9) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_19) => any;
15
+ } & {
16
+ default?: (props: typeof __VLS_21) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_30) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<MaybeRouterLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MaybeRouterLinkProps> & Readonly<{}>, {
21
+ plain: boolean;
22
+ tag: string;
23
+ custom: boolean;
24
+ exactPath: boolean;
25
+ matchRoutes: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,2 @@
1
+ export { default as MaybeRouterLink } from './MaybeRouterLink.vue';
2
+ export * from './types';
@@ -0,0 +1,49 @@
1
+ /**
2
+ * A structural stand-in for vue-router's `RouteLocationRaw`.
3
+ *
4
+ * Declared locally on purpose: `vue-router` is an *optional* peer dependency,
5
+ * so importing its types here would put an unresolvable import in the published
6
+ * `.d.ts` and break typechecking for consumers who don't use a router. This
7
+ * shape is assignable from a real `RouteLocationRaw`.
8
+ */
9
+ export type RouteLocationType = string | ({
10
+ path?: string;
11
+ name?: string | symbol;
12
+ params?: Record<string, any>;
13
+ query?: Record<string, any>;
14
+ hash?: string;
15
+ replace?: boolean;
16
+ /** Forces the link to be treated as external. */
17
+ external?: boolean;
18
+ } & Record<string, any>);
19
+ export interface MaybeRouterLinkProps {
20
+ /**
21
+ * The target location of the route. See https://router.vuejs.org/api/#to
22
+ * for usage.
23
+ * TODO:
24
+ * // Location type?
25
+ */
26
+ to?: RouteLocationType;
27
+ /**
28
+ * Render the link as another tag type, e.g. `<div>`.
29
+ */
30
+ tag?: string;
31
+ /**
32
+ * Enables custom rendering of the link and prevents the default output
33
+ * which wraps the slot content with `tag`.
34
+ */
35
+ custom?: boolean;
36
+ /**
37
+ * Allows matching only using the path section of the url, effectively
38
+ * ignoring the query and the hash sections.
39
+ */
40
+ exactPath?: boolean;
41
+ /**
42
+ * Removes the defaylt link styling of `<a>` tags.
43
+ */
44
+ plain?: boolean;
45
+ /**
46
+ * Set to `false` to disable route-based matching to determine active states.
47
+ */
48
+ matchRoutes?: boolean;
49
+ }
@@ -0,0 +1,28 @@
1
+ import { ModalProps } from './types';
2
+ declare var __VLS_41: {}, __VLS_43: {}, __VLS_45: {};
3
+ type __VLS_Slots = {} & {
4
+ preBody?: (props: typeof __VLS_41) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_43) => any;
7
+ } & {
8
+ footer?: (props: typeof __VLS_45) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ afterLeave: () => any;
12
+ afterEnter: () => any;
13
+ }, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
14
+ onAfterLeave?: (() => any) | undefined;
15
+ onAfterEnter?: (() => any) | undefined;
16
+ }>, {
17
+ loading: boolean;
18
+ noHeader: boolean;
19
+ overflowVisible: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The dimmed sheet behind a modal. Lives in its own component because there are
3
+ * two owners: a standalone `<Modal>` draws its own, and `<ModalHost>` draws a
4
+ * single one for the whole stack — N modals must not compound into N layers of
5
+ * dimming.
6
+ */
7
+ type __VLS_Props = {
8
+ visible: boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { ModalEntry } from './manager';
2
+ /**
3
+ * One entry in the stack. It exists to be a component boundary: the `<Modal>`
4
+ * inside needs to know its own depth and needs somewhere to register its close
5
+ * and focus handlers, and `provide` is per-component, so the host cannot do it
6
+ * for all of them at once.
7
+ */
8
+ type __VLS_Props = {
9
+ entry: ModalEntry;
10
+ depth: number;
11
+ };
12
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { AlertModalProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<AlertModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ action: (result?: string | boolean | undefined) => any;
4
+ afterLeave: () => any;
5
+ }, string, import('vue').PublicProps, Readonly<AlertModalProps> & Readonly<{
6
+ onAction?: ((result?: string | boolean | undefined) => any) | undefined;
7
+ onAfterLeave?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { ModalEmits } from './types';
2
+ export declare const RenderNode: import('vue').DefineComponent<{
3
+ node?: any;
4
+ }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
5
+ [key: string]: any;
6
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ node?: any;
8
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ export declare function useBaseModal(emit: ModalEmits): {
10
+ handleAction: (result?: string | boolean) => void;
11
+ handleLeave: () => void;
12
+ };
@@ -0,0 +1,10 @@
1
+ import { ConfirmModalProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<ConfirmModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ action: (result?: string | boolean | undefined) => any;
4
+ afterLeave: () => any;
5
+ }, string, import('vue').PublicProps, Readonly<ConfirmModalProps> & Readonly<{
6
+ onAction?: ((result?: string | boolean | undefined) => any) | undefined;
7
+ onAfterLeave?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { GenericModalProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<GenericModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ action: (result?: string | boolean | undefined) => any;
4
+ afterLeave: () => any;
5
+ }, string, import('vue').PublicProps, Readonly<GenericModalProps> & Readonly<{
6
+ onAction?: ((result?: string | boolean | undefined) => any) | undefined;
7
+ onAfterLeave?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { PromptModalProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<PromptModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ action: (result?: string | boolean | undefined) => any;
4
+ afterLeave: () => any;
5
+ }, string, import('vue').PublicProps, Readonly<PromptModalProps> & Readonly<{
6
+ onAction?: ((result?: string | boolean | undefined) => any) | undefined;
7
+ onAfterLeave?: (() => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;