@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,62 @@
1
+ import { ColorFormat } from '../../utils/color';
2
+ /**
3
+ * How a swatch is drawn — the rounded square that matches the rest of the
4
+ * library's controls, or a dot.
5
+ *
6
+ * A circle is not only decoration: a round swatch is unmistakably "a colour"
7
+ * rather than "a small button", which matters most where the swatch is the
8
+ * whole control and has no border or label around it.
9
+ */
10
+ export type ColorSwatchShape = 'square' | 'circle';
11
+ export interface ColorPickerProps {
12
+ /**
13
+ * The current colour, in any form `parseColor` understands — `#rgb`,
14
+ * `#rrggbbaa`, `rgb()`, `hsl()`, `oklab()`, `oklch()` or `transparent`.
15
+ *
16
+ * A value that cannot be parsed is left in the text field untouched rather
17
+ * than being replaced, so a half-typed colour is not destroyed as you type.
18
+ */
19
+ modelValue?: string | null;
20
+ /**
21
+ * Offer an alpha slider, and allow emitting colours with transparency.
22
+ *
23
+ * Off by default: most colours in a design system are opaque, and a stray
24
+ * `#ffffff00` is an unpleasant surprise for whatever consumes the value.
25
+ */
26
+ alpha?: boolean;
27
+ /**
28
+ * Pin the output to one format. When omitted the picker emits in whichever
29
+ * format the incoming value was written in, falling back to hex — so it does
30
+ * not quietly rewrite an `oklch()` theme into hex.
31
+ */
32
+ format?: ColorFormat;
33
+ /**
34
+ * Which formats the switcher offers. Ignored when `format` pins the output.
35
+ */
36
+ formats?: ColorFormat[];
37
+ /**
38
+ * Preset colours shown as a row of swatches under the controls.
39
+ */
40
+ swatches?: string[];
41
+ /**
42
+ * Shape of those swatches.
43
+ *
44
+ * @default 'square'
45
+ */
46
+ swatchShape?: ColorSwatchShape;
47
+ /**
48
+ * Offer the screen eyedropper. Hidden anyway in browsers without the
49
+ * `EyeDropper` API, which at the time of writing means Firefox and Safari.
50
+ */
51
+ eyedropper?: boolean;
52
+ /**
53
+ * Offer a button that opens the operating system's own colour dialog, for
54
+ * users who want their platform picker and its recent colours.
55
+ */
56
+ systemPicker?: boolean;
57
+ /**
58
+ * Hide the text field and format switcher, leaving only the visual controls.
59
+ */
60
+ hideInput?: boolean;
61
+ disabled?: boolean;
62
+ }
@@ -0,0 +1,34 @@
1
+ import { Gradient } from '../../utils/gradient';
2
+ import { ColorSelectorProps } from './types';
3
+ declare const __VLS_export: import('vue').DefineComponent<ColorSelectorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
4
+ "update:modelValue": (value: string | Gradient) => any;
5
+ "update:swatches": (value: string[]) => any;
6
+ }, string, import('vue').PublicProps, Readonly<ColorSelectorProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string | Gradient) => any) | undefined;
8
+ "onUpdate:swatches"?: ((value: string[]) => any) | undefined;
9
+ }>, {
10
+ placement: import('../Popper').PopperPlacementType;
11
+ disabled: boolean;
12
+ trigger: import('./types').ColorSelectorTriggerType;
13
+ mode: import('./types').ColorSelectorMode;
14
+ fullWidth: boolean;
15
+ placeholder: string;
16
+ readonly: boolean;
17
+ alpha: boolean;
18
+ swatchShape: import('../ColorPicker').ColorSwatchShape;
19
+ eyedropper: boolean;
20
+ systemPicker: boolean;
21
+ hideShape: boolean;
22
+ hideSpace: boolean;
23
+ minStops: number;
24
+ maxStops: number;
25
+ pinStart: boolean;
26
+ pinEnd: boolean;
27
+ swatchSize: number | string;
28
+ showValue: boolean;
29
+ clearable: boolean;
30
+ rememberSwatches: boolean;
31
+ maxSwatches: number;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as ColorSelector } from './ColorSelector.vue';
2
+ export { type ColorSelectorProps, type ColorSelectorMode, type ColorSelectorTriggerType } from './types';
@@ -0,0 +1,143 @@
1
+ import { ColorPickerProps } from '../ColorPicker';
2
+ import { PopperPlacementType } from '../Popper';
3
+ import { Gradient, GradientType } from '../../utils/gradient';
4
+ /**
5
+ * What the field is allowed to hold.
6
+ *
7
+ * - `color` — a single colour, emitted as a string.
8
+ * - `gradient` — a gradient, emitted as a `Gradient` object.
9
+ * - `both` — either, with a switch in the popover. Read the value's type to
10
+ * tell them apart, or use `isGradient()`.
11
+ */
12
+ export type ColorSelectorMode = 'color' | 'gradient' | 'both';
13
+ /**
14
+ * What you click to open the picker.
15
+ *
16
+ * - `button` — the swatch inside a bordered control, alongside the value.
17
+ * A form field, and what it looks like next to a `TextField`.
18
+ * - `swatch` — the colour and nothing else. No border, no padding, no value
19
+ * text. For a toolbar, a table cell, or anywhere a field would be too much
20
+ * furniture around one colour.
21
+ * - `input` — the same bordered control, with the value in a text field you can
22
+ * type into. The swatch beside it still opens the picker.
23
+ */
24
+ export type ColorSelectorTriggerType = 'button' | 'swatch' | 'input';
25
+ /**
26
+ * The one colour field. `ColorPicker` and `GradientPicker` are the bare
27
+ * surfaces it wraps — the same relationship `DatePicker` has to `Calendar`.
28
+ */
29
+ export interface ColorSelectorProps extends Omit<ColorPickerProps, 'modelValue'> {
30
+ /**
31
+ * A colour string, or a `Gradient` — see `mode`.
32
+ */
33
+ modelValue?: string | Gradient | null;
34
+ /**
35
+ * Whether this field holds a colour, a gradient, or either. Defaults to
36
+ * `color`.
37
+ */
38
+ mode?: ColorSelectorMode;
39
+ /**
40
+ * Label for the control.
41
+ */
42
+ label?: string | false | null;
43
+ /**
44
+ * Error text to show below the control.
45
+ */
46
+ error?: string | false | null;
47
+ /**
48
+ * Help text to show below the control.
49
+ */
50
+ helpText?: string | false | null;
51
+ /**
52
+ * Renders help text as raw HTML. Use with caution.
53
+ */
54
+ helpTextHtml?: string | false | null;
55
+ /**
56
+ * Renders a help icon next to the label which links to an external page.
57
+ */
58
+ helpLink?: string | false | null;
59
+ /**
60
+ * Where the picker opens relative to the trigger.
61
+ */
62
+ placement?: PopperPlacementType;
63
+ /**
64
+ * What you click to open the picker. `swatch` strips the control back to the
65
+ * colour itself; `input` lets the value be typed.
66
+ *
67
+ * @default 'button'
68
+ */
69
+ trigger?: ColorSelectorTriggerType;
70
+ /**
71
+ * Stretch the control to the width of its container, so it lines up with the
72
+ * `TextField`s around it in a form.
73
+ *
74
+ * Nothing to stretch under `trigger="swatch"`, which is a swatch and no box.
75
+ *
76
+ * @default false
77
+ */
78
+ fullWidth?: boolean;
79
+ /**
80
+ * Size of the trigger swatch — a number of pixels, or any CSS length.
81
+ *
82
+ * Worth raising with `trigger="swatch"`: the default 20px is right beside a
83
+ * value inside a bordered control, and small as a target when the swatch is
84
+ * the whole control.
85
+ *
86
+ * @default 20
87
+ */
88
+ swatchSize?: number | string;
89
+ /**
90
+ * Show the value on the trigger next to its swatch — the colour itself, or a
91
+ * summary of the gradient.
92
+ *
93
+ * Ignored by `trigger="swatch"`, which is the colour and nothing else.
94
+ */
95
+ showValue?: boolean;
96
+ /**
97
+ * Text shown on the trigger when there is no value.
98
+ */
99
+ placeholder?: string;
100
+ /**
101
+ * Offer a button that clears the value back to empty.
102
+ */
103
+ clearable?: boolean;
104
+ /**
105
+ * Show the value but do not allow it to be changed.
106
+ */
107
+ readonly?: boolean;
108
+ /**
109
+ * Add each colour you pick to the front of `swatches`, so the palette
110
+ * remembers what has been used. Pair it with `v-model:swatches` to keep the
111
+ * list outside the field — shared between several of them, or persisted.
112
+ *
113
+ * A colour is remembered when the popover CLOSES, not while you drag: every
114
+ * position on the saturation square emits as you cross it, and remembering
115
+ * those would fill the palette with colours nobody chose. Gradients are never
116
+ * remembered; the palette is a list of colours.
117
+ *
118
+ * @default false
119
+ */
120
+ rememberSwatches?: boolean;
121
+ /**
122
+ * The most swatches to keep. Unset means no limit.
123
+ *
124
+ * Set this when `swatches` is a recently-used list, and leave it unset when
125
+ * it is a palette you curated — the cap drops entries off the END, which is
126
+ * where a curated palette keeps the colours it was given.
127
+ */
128
+ maxSwatches?: number;
129
+ /** Which gradient shapes to offer. */
130
+ types?: GradientType[];
131
+ /** Hide the shape and angle controls. */
132
+ hideShape?: boolean;
133
+ /** Hide the interpolation space control. */
134
+ hideSpace?: boolean;
135
+ /** Fewest stops the user may leave. Never below 2. */
136
+ minStops?: number;
137
+ /** Most stops the user may add. */
138
+ maxStops?: number;
139
+ /** Hold the leftmost stop at 0%. See `GradientPickerProps.pinStart`. */
140
+ pinStart?: boolean;
141
+ /** Hold the rightmost stop at 100%. */
142
+ pinEnd?: boolean;
143
+ }
@@ -0,0 +1,282 @@
1
+ import { PropType } from 'vue';
2
+ import { ActionType } from '../types';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ actions: {
7
+ type: PropType<ActionType[]>;
8
+ };
9
+ selectedItems: {
10
+ type: NumberConstructor;
11
+ required: true;
12
+ };
13
+ totalItems: {
14
+ type: NumberConstructor;
15
+ required: true;
16
+ };
17
+ }>, {}, {}, {
18
+ checked(): boolean;
19
+ indeterminate(): boolean;
20
+ }, {
21
+ onChange(event: any): void;
22
+ toggle(selectAll: any): void;
23
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ actions: {
25
+ type: PropType<ActionType[]>;
26
+ };
27
+ selectedItems: {
28
+ type: NumberConstructor;
29
+ required: true;
30
+ };
31
+ totalItems: {
32
+ type: NumberConstructor;
33
+ required: true;
34
+ };
35
+ }>> & Readonly<{
36
+ onChange?: ((...args: any[]) => any) | undefined;
37
+ }>, {}, {}, {
38
+ ActionList: {
39
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../ActionList').ActionListProps> & Readonly<{
40
+ onShow?: (() => any) | undefined;
41
+ onHide?: (() => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
44
+ show: () => any;
45
+ hide: () => any;
46
+ close: () => any;
47
+ }, import('vue').PublicProps, {
48
+ placement: import('../Popper').PopperPlacementType;
49
+ items: import('../ActionList').ActionListItemType[];
50
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
51
+ P: {};
52
+ B: {};
53
+ D: {};
54
+ C: {};
55
+ M: {};
56
+ Defaults: {};
57
+ }, Readonly<import('../ActionList').ActionListProps> & Readonly<{
58
+ onShow?: (() => any) | undefined;
59
+ onHide?: (() => any) | undefined;
60
+ onClose?: (() => any) | undefined;
61
+ }>, {}, {}, {}, {}, {
62
+ placement: import('../Popper').PopperPlacementType;
63
+ items: import('../ActionList').ActionListItemType[];
64
+ }>;
65
+ __isFragment?: never;
66
+ __isTeleport?: never;
67
+ __isSuspense?: never;
68
+ } & import('vue').ComponentOptionsBase<Readonly<import('../ActionList').ActionListProps> & Readonly<{
69
+ onShow?: (() => any) | undefined;
70
+ onHide?: (() => any) | undefined;
71
+ onClose?: (() => any) | undefined;
72
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
73
+ show: () => any;
74
+ hide: () => any;
75
+ close: () => any;
76
+ }, string, {
77
+ placement: import('../Popper').PopperPlacementType;
78
+ items: import('../ActionList').ActionListItemType[];
79
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
80
+ $slots: {
81
+ default?: (props: {}) => any;
82
+ };
83
+ });
84
+ Button: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
85
+ type: {
86
+ type: PropType<import('../types').ActionTypeType>;
87
+ default: string;
88
+ };
89
+ icon: {
90
+ type: StringConstructor;
91
+ };
92
+ badge: {
93
+ type: PropType<string | number | import('../types').IconBadgeType>;
94
+ };
95
+ badgeStatus: {
96
+ type: PropType<import('../types').IconBadgeStatusType>;
97
+ };
98
+ disabled: {
99
+ type: BooleanConstructor;
100
+ };
101
+ tooltip: {
102
+ type: StringConstructor;
103
+ };
104
+ tooltipPosition: {
105
+ type: PropType<import('../types').ActionTooltipPositionType>;
106
+ default: string;
107
+ };
108
+ dropdown: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ fullWidth: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ size: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ url: {
121
+ type: StringConstructor;
122
+ };
123
+ external: {
124
+ type: BooleanConstructor;
125
+ };
126
+ invert: {
127
+ type: BooleanConstructor;
128
+ default: boolean;
129
+ };
130
+ color: {
131
+ type: PropType<import('../types').ActionColorType>;
132
+ };
133
+ destructive: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
138
+ [key: string]: any;
139
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
140
+ type: {
141
+ type: PropType<import('../types').ActionTypeType>;
142
+ default: string;
143
+ };
144
+ icon: {
145
+ type: StringConstructor;
146
+ };
147
+ badge: {
148
+ type: PropType<string | number | import('../types').IconBadgeType>;
149
+ };
150
+ badgeStatus: {
151
+ type: PropType<import('../types').IconBadgeStatusType>;
152
+ };
153
+ disabled: {
154
+ type: BooleanConstructor;
155
+ };
156
+ tooltip: {
157
+ type: StringConstructor;
158
+ };
159
+ tooltipPosition: {
160
+ type: PropType<import('../types').ActionTooltipPositionType>;
161
+ default: string;
162
+ };
163
+ dropdown: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ fullWidth: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ size: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ url: {
176
+ type: StringConstructor;
177
+ };
178
+ external: {
179
+ type: BooleanConstructor;
180
+ };
181
+ invert: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ color: {
186
+ type: PropType<import('../types').ActionColorType>;
187
+ };
188
+ destructive: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ }>> & Readonly<{}>, {
193
+ disabled: boolean;
194
+ size: string;
195
+ type: import('../types').ActionTypeType;
196
+ destructive: boolean;
197
+ tooltipPosition: import('../types').ActionTooltipPositionType;
198
+ external: boolean;
199
+ dropdown: boolean;
200
+ fullWidth: boolean;
201
+ invert: boolean;
202
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
203
+ ButtonGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
204
+ segmented: {
205
+ type: BooleanConstructor;
206
+ };
207
+ fill: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
212
+ [key: string]: any;
213
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
214
+ segmented: {
215
+ type: BooleanConstructor;
216
+ };
217
+ fill: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ }>> & Readonly<{}>, {
222
+ fill: boolean;
223
+ segmented: boolean;
224
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
225
+ CheckboxControl: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
226
+ name: {
227
+ type: StringConstructor;
228
+ };
229
+ checked: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
233
+ disabled: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ readonly: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
241
+ error: {
242
+ type: BooleanConstructor;
243
+ default: boolean;
244
+ };
245
+ indeterminate: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
250
+ [key: string]: any;
251
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
252
+ name: {
253
+ type: StringConstructor;
254
+ };
255
+ checked: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
259
+ disabled: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ readonly: {
264
+ type: BooleanConstructor;
265
+ default: boolean;
266
+ };
267
+ error: {
268
+ type: BooleanConstructor;
269
+ default: boolean;
270
+ };
271
+ indeterminate: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ }>> & Readonly<{}>, {
276
+ disabled: boolean;
277
+ error: boolean;
278
+ readonly: boolean;
279
+ checked: boolean;
280
+ indeterminate: boolean;
281
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
282
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,40 @@
1
+ import { ActionType } from '../types';
2
+ import { DataTableColumnType, InterPropsType } from './types';
3
+ declare const __VLS_export: <Row extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<InterPropsType<Row> & {
5
+ "onClick-row"?: ((...args: any[]) => any) | undefined;
6
+ "onUpdate:sort"?: ((...args: any[]) => any) | undefined;
7
+ "onUpdate:selectedIds"?: ((...args: any[]) => any) | undefined;
8
+ }> & (typeof globalThis extends {
9
+ __VLS_PROPS_FALLBACK: infer P;
10
+ } ? P : {});
11
+ expose: (exposed: {}) => void;
12
+ attrs: any;
13
+ slots: {
14
+ actions?(props: {
15
+ row: Row;
16
+ index: number;
17
+ actions: ActionType[] | undefined;
18
+ }): any;
19
+ } & {
20
+ [name: `col:${string}`]: ((props: {
21
+ row: Row;
22
+ value: any;
23
+ }) => any) | undefined;
24
+ [name: `head:${string}`]: ((props: {
25
+ col: DataTableColumnType;
26
+ value?: string;
27
+ className: string;
28
+ }) => any) | undefined;
29
+ };
30
+ emit: (event: "click-row" | "update:sort" | "update:selectedIds", ...args: any[]) => void;
31
+ }>) => import('vue').VNode & {
32
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
33
+ };
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
37
+ [K in keyof T]: T[K];
38
+ } : {
39
+ [K in keyof T as K]: T[K];
40
+ }) & {};
@@ -0,0 +1,22 @@
1
+ type DataTableFooterProps = {
2
+ offset: number;
3
+ limit: number;
4
+ total: number;
5
+ summary?: string;
6
+ maxPages: number;
7
+ pageSizes?: number[] | false;
8
+ loading: boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<DataTableFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ updateOffset: (...args: any[]) => void;
12
+ updateLimit: (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<DataTableFooterProps> & Readonly<{
14
+ onUpdateOffset?: ((...args: any[]) => any) | undefined;
15
+ onUpdateLimit?: ((...args: any[]) => any) | undefined;
16
+ }>, {
17
+ summary: string;
18
+ loading: boolean;
19
+ maxPages: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DataTable } from './DataTable.vue';
2
+ export * from './types';