@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,21 @@
1
+ import { OtpInputProps } from './types';
2
+ declare function focus(): void;
3
+ declare const __VLS_export: import('vue').DefineComponent<OtpInputProps, {
4
+ focus: typeof focus;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ complete: (value: string) => any;
7
+ blur: (event: FocusEvent, index: number) => any;
8
+ focus: (event: FocusEvent, index: number) => any;
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<OtpInputProps> & Readonly<{
11
+ onComplete?: ((value: string) => any) | undefined;
12
+ onBlur?: ((event: FocusEvent, index: number) => any) | undefined;
13
+ onFocus?: ((event: FocusEvent, index: number) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ }>, {
16
+ length: number;
17
+ modelValue: string | null;
18
+ separator: string;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OtpInput } from './OtpInput.vue';
2
+ export { type OtpInputProps } from './types';
@@ -0,0 +1,87 @@
1
+ export interface OtpInputProps {
2
+ /**
3
+ * Label to display above the input.
4
+ */
5
+ label?: string | false;
6
+ /**
7
+ * Error text to show below the control.
8
+ */
9
+ error?: string | false | null;
10
+ /**
11
+ * Help text to show below the control.
12
+ */
13
+ helpText?: string | false;
14
+ /**
15
+ * Renders help text as raw HTML. Use with caution.
16
+ */
17
+ helpTextHtml?: string | false;
18
+ /**
19
+ * Renders a help icon next to the label which links to an external page.
20
+ */
21
+ helpLink?: string | false;
22
+ /**
23
+ * The current value — the characters across all cells joined into a string.
24
+ */
25
+ modelValue?: string | null;
26
+ /**
27
+ * Number of input cells to render. Ignored when `groups` is set.
28
+ */
29
+ length?: number;
30
+ /**
31
+ * Render the cells in visual groups separated by `separator`, e.g.
32
+ * `[4, 4]` produces `####-####`. The cells still behave as one input — focus,
33
+ * paste and backspace flow across the separators and the value remains the
34
+ * concatenated characters (no separators). Overrides `length`.
35
+ */
36
+ groups?: number[];
37
+ /**
38
+ * Text shown between groups when `groups` is set.
39
+ */
40
+ separator?: string;
41
+ /**
42
+ * Hide entered characters (PIN style) by rendering them as a password input.
43
+ */
44
+ mask?: boolean;
45
+ /**
46
+ * Restrict input to digits `0-9`. Also sets a numeric on-screen keyboard on
47
+ * mobile. Takes precedence over `allowedChars`.
48
+ */
49
+ integerOnly?: boolean;
50
+ /**
51
+ * Restrict which characters may be entered.
52
+ *
53
+ * - A `string` is treated as the explicit set of allowed characters, e.g.
54
+ * `"0123456789ABCDEF"`.
55
+ * - A `RegExp` is tested against each individual character, e.g.
56
+ * `/[0-9a-f]/i` for case-insensitive hex.
57
+ *
58
+ * Ignored when `integerOnly` is set. When omitted, any character is allowed.
59
+ */
60
+ allowedChars?: string | RegExp;
61
+ /**
62
+ * Force entered characters to a case. Applied before `allowedChars` /
63
+ * `integerOnly` validation, so e.g. `casing="upper"` lets a user type `a`
64
+ * to satisfy an `"ABCDEF"` set.
65
+ *
66
+ * - `"upper"` — uppercase everything
67
+ * - `"lower"` — lowercase everything
68
+ */
69
+ casing?: 'upper' | 'lower';
70
+ /**
71
+ * Disable all cells.
72
+ */
73
+ disabled?: boolean;
74
+ /**
75
+ * Make all cells read-only.
76
+ */
77
+ readonly?: boolean;
78
+ /**
79
+ * Focus the first cell when the component mounts.
80
+ */
81
+ autoFocus?: boolean;
82
+ /**
83
+ * Center the cells within the available width instead of left-aligning
84
+ * them.
85
+ */
86
+ centered?: boolean;
87
+ }
@@ -0,0 +1,34 @@
1
+ import { PageProps } from './types';
2
+ declare var __VLS_21: {}, __VLS_60: {}, __VLS_77: {};
3
+ type __VLS_Slots = {} & {
4
+ badge?: (props: typeof __VLS_21) => any;
5
+ } & {
6
+ primaryAction?: (props: typeof __VLS_60) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_77) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<PageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ save: () => any;
12
+ discard: () => any;
13
+ clickHelp: () => any;
14
+ }, string, import('vue').PublicProps, Readonly<PageProps> & Readonly<{
15
+ onSave?: (() => any) | undefined;
16
+ onDiscard?: (() => any) | undefined;
17
+ onClickHelp?: (() => any) | undefined;
18
+ }>, {
19
+ secondaryActions: import('../types').ActionType[];
20
+ size: "narrow" | "default" | "wide" | "fullWidth";
21
+ changed: boolean;
22
+ saving: boolean;
23
+ loading: boolean;
24
+ breadcrumbs: import('./types').BreadcrumbType[];
25
+ actionGroups: import('./types').ActionGroupType[];
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 Page } from './Page.vue';
2
+ export * from './types';
@@ -0,0 +1,75 @@
1
+ import { ActionType, BadgeType } from '../types';
2
+ export interface BreadcrumbType {
3
+ label: string;
4
+ disabled?: boolean;
5
+ url?: string;
6
+ onAction?(): void;
7
+ }
8
+ export interface ActionGroupType {
9
+ title: string;
10
+ icon?: string;
11
+ actions: ActionType[];
12
+ }
13
+ export interface PageProps {
14
+ /**
15
+ * The main heading of the page.
16
+ */
17
+ title?: string;
18
+ /**
19
+ * The secondary heading of the page.
20
+ */
21
+ subtitle?: string;
22
+ /**
23
+ * Optional show help icon next to page title
24
+ * Emits 'clickHelp' event
25
+ */
26
+ includeHelp?: boolean;
27
+ /**
28
+ * Optional badge to display at the end of the title. See `Badge` component.
29
+ */
30
+ badge?: BadgeType;
31
+ /**
32
+ * An array of breadcrumbs.
33
+ */
34
+ breadcrumbs?: BreadcrumbType[];
35
+ /**
36
+ * The main page action.
37
+ */
38
+ primaryAction?: ActionType;
39
+ /**
40
+ * Optional secondary actions. These actions and the action groups are
41
+ * displayed below the page header and collapse into a dropdown on small
42
+ * screens.
43
+ */
44
+ secondaryActions?: ActionType[];
45
+ /**
46
+ * A group of secondary actions. These are listed after the main secondary
47
+ * actions. These appear as sections when the secondary actions are collapsed.
48
+ */
49
+ actionGroups?: ActionGroupType[];
50
+ /**
51
+ * The width preset of the page. Content is centred at the preset's
52
+ * max-width; the widths themselves are the `--octans-page-width[-narrow|
53
+ * -wide]` tokens, so an application can retune every page at once.
54
+ *
55
+ * Options:
56
+ *
57
+ * - `narrow` — 720px. Settings pages, forms, focused reading.
58
+ * - `default` — 1100px.
59
+ * - `wide` — 1400px. Dense tables and dashboards.
60
+ * - `fullWidth` — no max-width at all.
61
+ */
62
+ size?: 'narrow' | 'default' | 'wide' | 'fullWidth';
63
+ /**
64
+ * Shows a page-level loader.
65
+ */
66
+ loading?: boolean;
67
+ /**
68
+ * Sets the Global Nav's Save Bar state to "changed".
69
+ */
70
+ changed?: boolean;
71
+ /**
72
+ * Sets the Global Nav's Save Bar state to "saving".
73
+ */
74
+ saving?: boolean;
75
+ }
@@ -0,0 +1,6 @@
1
+ import { PageActionsProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<PageActionsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageActionsProps> & Readonly<{}>, {
3
+ secondaryActions: import('../types').ActionType[];
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as PageActions } from './PageActions.vue';
2
+ export * from './types';
@@ -0,0 +1,17 @@
1
+ import { ActionType } from '../types';
2
+ export interface PageActionsProps {
3
+ /**
4
+ * The main page action options.
5
+ *
6
+ * Optional, though it is the reason to reach for this component — omit it and
7
+ * only the secondary actions render, which is what you want while the primary
8
+ * action is still being resolved.
9
+ */
10
+ primaryAction?: ActionType;
11
+ /**
12
+ * Optional secondary actions. These actions and the action groups are
13
+ * displayed below the page header and collapse into a dropdown on small
14
+ * screens.
15
+ */
16
+ secondaryActions?: ActionType[];
17
+ }
@@ -0,0 +1,22 @@
1
+ type PaginationProps = {
2
+ offset: number;
3
+ limit: number;
4
+ total: number;
5
+ maxPages?: number;
6
+ pageSizes?: number[] | false;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ change: (...args: any[]) => void;
10
+ "update-limit": (...args: any[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<PaginationProps> & Readonly<{
12
+ onChange?: ((...args: any[]) => any) | undefined;
13
+ "onUpdate-limit"?: ((...args: any[]) => any) | undefined;
14
+ }>, {
15
+ offset: number;
16
+ limit: number;
17
+ total: number;
18
+ maxPages: number;
19
+ pageSizes: number[] | false;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Pagination } from './Pagination.vue';
@@ -0,0 +1,45 @@
1
+ import { PopperProps } from './types';
2
+ declare function show(): void;
3
+ declare function hide(): void;
4
+ declare function toggle(): void;
5
+ declare var __VLS_19: {
6
+ visible: boolean;
7
+ show: typeof show;
8
+ hide: typeof hide;
9
+ toggle: typeof toggle;
10
+ }, __VLS_40: {
11
+ visible: boolean;
12
+ show: typeof show;
13
+ hide: typeof hide;
14
+ toggle: typeof toggle;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ trigger?: (props: typeof __VLS_19) => any;
18
+ } & {
19
+ default?: (props: typeof __VLS_40) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<PopperProps, {
22
+ show: typeof show;
23
+ hide: typeof hide;
24
+ toggle: typeof toggle;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ "update:visible": (val: boolean) => any;
27
+ }, string, import('vue').PublicProps, Readonly<PopperProps> & Readonly<{
28
+ "onUpdate:visible"?: ((val: boolean) => any) | undefined;
29
+ }>, {
30
+ placement: import('./types').PopperPlacementType;
31
+ teleportTo: string;
32
+ disabled: boolean;
33
+ autoTriggerToggle: boolean;
34
+ autoHide: boolean;
35
+ hover: boolean;
36
+ zIndex: number;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Popper } from './Popper.vue';
2
+ export * from './types';
@@ -0,0 +1,29 @@
1
+ export type PopperPlacementType = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
2
+ export interface PopperProps {
3
+ visible?: boolean;
4
+ placement?: PopperPlacementType;
5
+ teleportTo?: string;
6
+ disabled?: boolean;
7
+ /**
8
+ * Toggles the popper content automatically on trigger click. Defaults to
9
+ * `true`.
10
+ *
11
+ * Set this to `false` whenever the trigger drives visibility itself — via
12
+ * the `show`/`hide`/`toggle` slot props, or by opening on an event that
13
+ * precedes the click (`focus`, `mouseenter`). Otherwise the automatic
14
+ * toggle runs *in addition* to your handler and cancels it out, leaving a
15
+ * trigger that looks dead.
16
+ */
17
+ autoTriggerToggle?: boolean;
18
+ /**
19
+ * Close the popper content automatically on outside click
20
+ */
21
+ autoHide?: boolean;
22
+ /**
23
+ * Open the popper content on hover (pointer enter) and close it shortly
24
+ * after the pointer leaves both the trigger and the content. Designed for
25
+ * cascading sub-menus, so hovering a descendant keeps its ancestors open.
26
+ */
27
+ hover?: boolean;
28
+ zIndex?: number;
29
+ }
@@ -0,0 +1,24 @@
1
+ export interface PreventAutoCompleteProps {
2
+ /**
3
+ * When disabled, the component renders the default slot content directly
4
+ * without wrapping it in the form element.
5
+ */
6
+ enabled?: boolean;
7
+ }
8
+ declare var __VLS_1: {}, __VLS_3: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_3) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<PreventAutoCompleteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PreventAutoCompleteProps> & Readonly<{}>, {
15
+ enabled: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1 @@
1
+ export { default as PreventAutoComplete } from './PreventAutoComplete.vue';
@@ -0,0 +1,48 @@
1
+ import { BadgeStatusType } from '../types';
2
+ export type ProgressBarSizeType = 'small' | 'medium' | 'large';
3
+ export type ProgressBarStatusType = Exclude<BadgeStatusType, 'new'>;
4
+ export interface ProgressBarProps {
5
+ /**
6
+ * The progress value as a percentage, from `0` to `100`. Values outside
7
+ * this range are clamped. Ignored when `indeterminate` is set.
8
+ */
9
+ value?: number;
10
+ /**
11
+ * The height of the bar.
12
+ *
13
+ * - small
14
+ * - medium (default)
15
+ * - large
16
+ */
17
+ size?: ProgressBarSizeType;
18
+ /**
19
+ * The status of the bar, matching the statuses used by `Badge`, `Banner`,
20
+ * etc. When omitted the bar uses the default (blue) fill.
21
+ *
22
+ * - `info`
23
+ * - `success`
24
+ * - `warning` — amber
25
+ * - `error` — red
26
+ *
27
+ * `attention` is accepted as an alias of `warning` for compatibility.
28
+ */
29
+ status?: ProgressBarStatusType;
30
+ /**
31
+ * Overlays an animated diagonal stripe pattern on the filled portion of the
32
+ * bar. Useful to communicate that work is actively happening.
33
+ */
34
+ animated?: boolean;
35
+ /**
36
+ * Shows a looping indeterminate animation instead of a fixed value. Use when
37
+ * the completion amount is unknown. `value` is ignored while set.
38
+ */
39
+ indeterminate?: boolean;
40
+ }
41
+ declare const __VLS_export: import('vue').DefineComponent<ProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
42
+ size: ProgressBarSizeType;
43
+ value: number;
44
+ indeterminate: boolean;
45
+ animated: boolean;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as ProgressBar } from './ProgressBar.vue';
2
+ export type { ProgressBarProps, ProgressBarSizeType, ProgressBarStatusType } from './ProgressBar.vue';
@@ -0,0 +1,143 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ /**
6
+ * Label for the radio button.
7
+ */
8
+ label: {
9
+ type: PropType<string | false | null>;
10
+ };
11
+ /**
12
+ * Error text to show below the control.
13
+ */
14
+ error: {
15
+ type: PropType<string | false | null>;
16
+ };
17
+ /**
18
+ * Help text to show below the control.
19
+ */
20
+ helpText: {
21
+ type: PropType<string | false | null>;
22
+ };
23
+ /**
24
+ * Renders a help icon next to the label which links to an external page.
25
+ */
26
+ helpLink: {
27
+ type: PropType<string | false | null>;
28
+ };
29
+ /**
30
+ * Radio buttons with the same name will form a group.
31
+ */
32
+ name: {
33
+ type: StringConstructor;
34
+ };
35
+ /**
36
+ * The bound value / v-model.
37
+ */
38
+ modelValue: {
39
+ type: null;
40
+ };
41
+ /**
42
+ * The model value to use when checked.
43
+ */
44
+ trueValue: {
45
+ type: null;
46
+ };
47
+ /**
48
+ * When `true` the radio button will be checked. This is an alternative
49
+ * to assigning `modelValue` to be `trueValue`.
50
+ */
51
+ checked: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ /**
56
+ * Disables the control visually and prevents all interaction.
57
+ */
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ /**
63
+ * Prevents changing the control state.
64
+ */
65
+ readonly: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
70
+ [key: string]: any;
71
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
72
+ /**
73
+ * Label for the radio button.
74
+ */
75
+ label: {
76
+ type: PropType<string | false | null>;
77
+ };
78
+ /**
79
+ * Error text to show below the control.
80
+ */
81
+ error: {
82
+ type: PropType<string | false | null>;
83
+ };
84
+ /**
85
+ * Help text to show below the control.
86
+ */
87
+ helpText: {
88
+ type: PropType<string | false | null>;
89
+ };
90
+ /**
91
+ * Renders a help icon next to the label which links to an external page.
92
+ */
93
+ helpLink: {
94
+ type: PropType<string | false | null>;
95
+ };
96
+ /**
97
+ * Radio buttons with the same name will form a group.
98
+ */
99
+ name: {
100
+ type: StringConstructor;
101
+ };
102
+ /**
103
+ * The bound value / v-model.
104
+ */
105
+ modelValue: {
106
+ type: null;
107
+ };
108
+ /**
109
+ * The model value to use when checked.
110
+ */
111
+ trueValue: {
112
+ type: null;
113
+ };
114
+ /**
115
+ * When `true` the radio button will be checked. This is an alternative
116
+ * to assigning `modelValue` to be `trueValue`.
117
+ */
118
+ checked: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ /**
123
+ * Disables the control visually and prevents all interaction.
124
+ */
125
+ disabled: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ /**
130
+ * Prevents changing the control state.
131
+ */
132
+ readonly: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ }>> & Readonly<{
137
+ onChange?: ((...args: any[]) => any) | undefined;
138
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
139
+ }>, {
140
+ disabled: boolean;
141
+ readonly: boolean;
142
+ checked: boolean;
143
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,50 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ name: {
5
+ type: StringConstructor;
6
+ };
7
+ checked: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ readonly: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ error: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ [key: string]: any;
25
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ name: {
27
+ type: StringConstructor;
28
+ };
29
+ checked: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ readonly: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ error: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ disabled: boolean;
47
+ error: boolean;
48
+ readonly: boolean;
49
+ checked: boolean;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as RadioButton } from './RadioButton.vue';
2
+ export { default as RadioButtonControl } from './RadioButtonControl.vue';