kdutify 0.16.9-rc.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 (425) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/dist/kdutify.css +12850 -0
  4. package/dist/kdutify.css.map +1 -0
  5. package/dist/kdutify.js +16285 -0
  6. package/dist/kdutify.js.map +1 -0
  7. package/dist/kdutify.min.css +7 -0
  8. package/dist/kdutify.min.css.map +1 -0
  9. package/dist/kdutify.min.js +6 -0
  10. package/es5/components/KAlert/KAlert.js +80 -0
  11. package/es5/components/KAlert/index.js +7 -0
  12. package/es5/components/KApp/KApp.js +67 -0
  13. package/es5/components/KApp/index.js +7 -0
  14. package/es5/components/KAvatar/KAvatar.js +31 -0
  15. package/es5/components/KAvatar/index.js +7 -0
  16. package/es5/components/KBadge/KBadge.js +59 -0
  17. package/es5/components/KBadge/index.js +7 -0
  18. package/es5/components/KBottomNav/KBottomNav.js +50 -0
  19. package/es5/components/KBottomNav/index.js +7 -0
  20. package/es5/components/KBottomSheet/KBottomSheet.js +36 -0
  21. package/es5/components/KBottomSheet/index.js +7 -0
  22. package/es5/components/KBreadcrumbs/KBreadcrumbs.js +36 -0
  23. package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
  24. package/es5/components/KBreadcrumbs/index.js +11 -0
  25. package/es5/components/KBtn/KBtn.js +153 -0
  26. package/es5/components/KBtn/index.js +7 -0
  27. package/es5/components/KBtnToggle/KBtnToggle.js +92 -0
  28. package/es5/components/KBtnToggle/index.js +7 -0
  29. package/es5/components/KCard/KCard.js +63 -0
  30. package/es5/components/KCard/KCardMedia.js +41 -0
  31. package/es5/components/KCard/KCardTitle.js +21 -0
  32. package/es5/components/KCard/index.js +19 -0
  33. package/es5/components/KCarousel/KCarousel.js +178 -0
  34. package/es5/components/KCarousel/KCarouselItem.js +63 -0
  35. package/es5/components/KCarousel/index.js +11 -0
  36. package/es5/components/KCheckbox/KCheckbox.js +89 -0
  37. package/es5/components/KCheckbox/index.js +7 -0
  38. package/es5/components/KChip/KChip.js +81 -0
  39. package/es5/components/KChip/index.js +7 -0
  40. package/es5/components/KDataTable/KDataTable.js +347 -0
  41. package/es5/components/KDataTable/KEditDialog.js +108 -0
  42. package/es5/components/KDataTable/index.js +14 -0
  43. package/es5/components/KDataTable/mixins/body.js +103 -0
  44. package/es5/components/KDataTable/mixins/foot.js +118 -0
  45. package/es5/components/KDataTable/mixins/head.js +123 -0
  46. package/es5/components/KDataTable/mixins/progress.js +16 -0
  47. package/es5/components/KDatePicker/KDatePicker.js +416 -0
  48. package/es5/components/KDatePicker/index.js +7 -0
  49. package/es5/components/KDatePicker/mixins/date-header.js +68 -0
  50. package/es5/components/KDatePicker/mixins/date-table.js +101 -0
  51. package/es5/components/KDatePicker/mixins/date-title.js +64 -0
  52. package/es5/components/KDatePicker/mixins/date-years.js +53 -0
  53. package/es5/components/KDatePicker/mixins/month-table.js +91 -0
  54. package/es5/components/KDialog/KDialog.js +181 -0
  55. package/es5/components/KDialog/index.js +7 -0
  56. package/es5/components/KDivider/KDivider.js +29 -0
  57. package/es5/components/KDivider/index.js +7 -0
  58. package/es5/components/KExpansionPanel/KExpansionPanel.js +60 -0
  59. package/es5/components/KExpansionPanel/KExpansionPanelContent.js +114 -0
  60. package/es5/components/KExpansionPanel/index.js +9 -0
  61. package/es5/components/KFooter/KFooter.js +61 -0
  62. package/es5/components/KFooter/index.js +7 -0
  63. package/es5/components/KForm/KForm.js +203 -0
  64. package/es5/components/KForm/index.js +7 -0
  65. package/es5/components/KGrid/KContainer.js +5 -0
  66. package/es5/components/KGrid/KContent.js +33 -0
  67. package/es5/components/KGrid/KFlex.js +5 -0
  68. package/es5/components/KGrid/KLayout.js +5 -0
  69. package/es5/components/KGrid/grid.js +43 -0
  70. package/es5/components/KGrid/index.js +20 -0
  71. package/es5/components/KIcon/KIcon.js +93 -0
  72. package/es5/components/KIcon/index.js +7 -0
  73. package/es5/components/KList/KList.js +82 -0
  74. package/es5/components/KList/KListGroup.js +100 -0
  75. package/es5/components/KList/KListTile.js +65 -0
  76. package/es5/components/KList/KListTileAction.js +15 -0
  77. package/es5/components/KList/index.js +27 -0
  78. package/es5/components/KMenu/KMenu.js +178 -0
  79. package/es5/components/KMenu/index.js +7 -0
  80. package/es5/components/KMenu/mixins/menu-activator.js +59 -0
  81. package/es5/components/KMenu/mixins/menu-generators.js +88 -0
  82. package/es5/components/KMenu/mixins/menu-keyable.js +64 -0
  83. package/es5/components/KMenu/mixins/menu-position.js +64 -0
  84. package/es5/components/KNavigationDrawer/KNavigationDrawer.js +238 -0
  85. package/es5/components/KNavigationDrawer/index.js +7 -0
  86. package/es5/components/KPagination/KPagination.js +167 -0
  87. package/es5/components/KPagination/index.js +7 -0
  88. package/es5/components/KParallax/KParallax.js +98 -0
  89. package/es5/components/KParallax/index.js +7 -0
  90. package/es5/components/KProgressCircular/KProgressCircular.js +145 -0
  91. package/es5/components/KProgressCircular/index.js +7 -0
  92. package/es5/components/KProgressLinear/KProgressLinear.js +146 -0
  93. package/es5/components/KProgressLinear/index.js +7 -0
  94. package/es5/components/KRadioGroup/KRadio.js +148 -0
  95. package/es5/components/KRadioGroup/KRadioGroup.js +139 -0
  96. package/es5/components/KRadioGroup/index.js +11 -0
  97. package/es5/components/KSelect/KSelect.js +635 -0
  98. package/es5/components/KSelect/index.js +7 -0
  99. package/es5/components/KSelect/mixins/select-autocomplete.js +125 -0
  100. package/es5/components/KSelect/mixins/select-generators.js +298 -0
  101. package/es5/components/KSlider/KSlider.js +306 -0
  102. package/es5/components/KSlider/index.js +7 -0
  103. package/es5/components/KSnackbar/KSnackbar.js +106 -0
  104. package/es5/components/KSnackbar/index.js +7 -0
  105. package/es5/components/KSpeedDial/KSpeedDial.js +89 -0
  106. package/es5/components/KSpeedDial/index.js +7 -0
  107. package/es5/components/KStepper/KStepper.js +112 -0
  108. package/es5/components/KStepper/KStepperContent.js +134 -0
  109. package/es5/components/KStepper/KStepperStep.js +105 -0
  110. package/es5/components/KStepper/index.js +17 -0
  111. package/es5/components/KSubheader/KSubheader.js +29 -0
  112. package/es5/components/KSubheader/index.js +7 -0
  113. package/es5/components/KSwitch/KSwitch.js +55 -0
  114. package/es5/components/KSwitch/index.js +7 -0
  115. package/es5/components/KSystemBar/KSystemBar.js +54 -0
  116. package/es5/components/KSystemBar/index.js +7 -0
  117. package/es5/components/KTabs/KTabs.js +272 -0
  118. package/es5/components/KTabs/KTabsBar.js +205 -0
  119. package/es5/components/KTabs/KTabsContent.js +86 -0
  120. package/es5/components/KTabs/KTabsItem.js +103 -0
  121. package/es5/components/KTabs/KTabsItems.js +40 -0
  122. package/es5/components/KTabs/KTabsSlider.js +14 -0
  123. package/es5/components/KTabs/index.js +17 -0
  124. package/es5/components/KTextField/KTextField.js +275 -0
  125. package/es5/components/KTextField/index.js +7 -0
  126. package/es5/components/KTimePicker/KTimePicker.js +302 -0
  127. package/es5/components/KTimePicker/index.js +7 -0
  128. package/es5/components/KTimePicker/mixins/time-body.js +207 -0
  129. package/es5/components/KTimePicker/mixins/time-title.js +55 -0
  130. package/es5/components/KToolbar/KToolbar.js +193 -0
  131. package/es5/components/KToolbar/KToolbarSideIcon.js +29 -0
  132. package/es5/components/KToolbar/index.js +17 -0
  133. package/es5/components/KTooltip/KTooltip.js +156 -0
  134. package/es5/components/KTooltip/index.js +7 -0
  135. package/es5/components/Kdutify/index.js +50 -0
  136. package/es5/components/index.js +45 -0
  137. package/es5/components/transitions/expand-transition.js +36 -0
  138. package/es5/components/transitions/index.js +47 -0
  139. package/es5/components/transitions/row-expand-transition.js +38 -0
  140. package/es5/directives/click-outside.js +100 -0
  141. package/es5/directives/index.js +15 -0
  142. package/es5/directives/resize.js +30 -0
  143. package/es5/directives/ripple.js +144 -0
  144. package/es5/directives/scroll.js +32 -0
  145. package/es5/directives/touch.js +102 -0
  146. package/es5/index.js +30 -0
  147. package/es5/mixins/applicationable.js +9 -0
  148. package/es5/mixins/bootable.js +31 -0
  149. package/es5/mixins/button-group.js +82 -0
  150. package/es5/mixins/colorable.js +24 -0
  151. package/es5/mixins/contextualable.js +10 -0
  152. package/es5/mixins/delayable.js +57 -0
  153. package/es5/mixins/dependent.js +121 -0
  154. package/es5/mixins/detachable.js +41 -0
  155. package/es5/mixins/filterable.js +8 -0
  156. package/es5/mixins/input.js +219 -0
  157. package/es5/mixins/loadable.js +31 -0
  158. package/es5/mixins/maskable.js +181 -0
  159. package/es5/mixins/menuable.js +293 -0
  160. package/es5/mixins/overlayable.js +202 -0
  161. package/es5/mixins/picker.js +36 -0
  162. package/es5/mixins/positionable.js +10 -0
  163. package/es5/mixins/rippleable.js +21 -0
  164. package/es5/mixins/routable.js +66 -0
  165. package/es5/mixins/selectable.js +79 -0
  166. package/es5/mixins/stackable.js +70 -0
  167. package/es5/mixins/tab-focusable.js +7 -0
  168. package/es5/mixins/themeable.js +15 -0
  169. package/es5/mixins/toggleable.js +31 -0
  170. package/es5/mixins/transitionable.js +7 -0
  171. package/es5/mixins/translatable.js +62 -0
  172. package/es5/mixins/validatable.js +138 -0
  173. package/es5/util/breakpoint.js +128 -0
  174. package/es5/util/helpers.js +139 -0
  175. package/es5/util/load.js +15 -0
  176. package/es5/util/mask.js +159 -0
  177. package/es5/util/testing.js +160 -0
  178. package/es5/util/to-have-been-warned.js +117 -0
  179. package/es5/util/touchSupport.js +14 -0
  180. package/index.d.ts +8 -0
  181. package/package.json +134 -0
  182. package/src/components/KAlert/KAlert.js +77 -0
  183. package/src/components/KAlert/index.js +7 -0
  184. package/src/components/KApp/KApp.js +64 -0
  185. package/src/components/KApp/index.js +7 -0
  186. package/src/components/KAvatar/KAvatar.js +27 -0
  187. package/src/components/KAvatar/index.js +7 -0
  188. package/src/components/KBadge/KBadge.js +62 -0
  189. package/src/components/KBadge/index.js +7 -0
  190. package/src/components/KBottomNav/KBottomNav.js +50 -0
  191. package/src/components/KBottomNav/index.js +7 -0
  192. package/src/components/KBottomSheet/KBottomSheet.js +41 -0
  193. package/src/components/KBottomSheet/index.js +7 -0
  194. package/src/components/KBreadcrumbs/KBreadcrumbs.js +35 -0
  195. package/src/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
  196. package/src/components/KBreadcrumbs/index.js +11 -0
  197. package/src/components/KBtn/KBtn.js +163 -0
  198. package/src/components/KBtn/index.js +7 -0
  199. package/src/components/KBtnToggle/KBtnToggle.js +92 -0
  200. package/src/components/KBtnToggle/index.js +7 -0
  201. package/src/components/KCard/KCard.js +61 -0
  202. package/src/components/KCard/KCardMedia.js +41 -0
  203. package/src/components/KCard/KCardTitle.js +17 -0
  204. package/src/components/KCard/index.js +19 -0
  205. package/src/components/KCarousel/KCarousel.js +174 -0
  206. package/src/components/KCarousel/KCarouselItem.js +65 -0
  207. package/src/components/KCarousel/index.js +11 -0
  208. package/src/components/KCheckbox/KCheckbox.js +92 -0
  209. package/src/components/KCheckbox/index.js +7 -0
  210. package/src/components/KChip/KChip.js +83 -0
  211. package/src/components/KChip/index.js +7 -0
  212. package/src/components/KDataTable/KDataTable.js +346 -0
  213. package/src/components/KDataTable/KEditDialog.js +110 -0
  214. package/src/components/KDataTable/index.js +16 -0
  215. package/src/components/KDataTable/mixins/body.js +98 -0
  216. package/src/components/KDataTable/mixins/foot.js +128 -0
  217. package/src/components/KDataTable/mixins/head.js +119 -0
  218. package/src/components/KDataTable/mixins/progress.js +16 -0
  219. package/src/components/KDatePicker/KDatePicker.js +382 -0
  220. package/src/components/KDatePicker/index.js +7 -0
  221. package/src/components/KDatePicker/mixins/date-header.js +74 -0
  222. package/src/components/KDatePicker/mixins/date-table.js +95 -0
  223. package/src/components/KDatePicker/mixins/date-title.js +76 -0
  224. package/src/components/KDatePicker/mixins/date-years.js +42 -0
  225. package/src/components/KDatePicker/mixins/month-table.js +82 -0
  226. package/src/components/KDialog/KDialog.js +184 -0
  227. package/src/components/KDialog/index.js +7 -0
  228. package/src/components/KDivider/KDivider.js +25 -0
  229. package/src/components/KDivider/index.js +7 -0
  230. package/src/components/KExpansionPanel/KExpansionPanel.js +55 -0
  231. package/src/components/KExpansionPanel/KExpansionPanelContent.js +112 -0
  232. package/src/components/KExpansionPanel/index.js +9 -0
  233. package/src/components/KFooter/KFooter.js +67 -0
  234. package/src/components/KFooter/index.js +7 -0
  235. package/src/components/KForm/KForm.js +117 -0
  236. package/src/components/KForm/index.js +7 -0
  237. package/src/components/KGrid/KContainer.js +5 -0
  238. package/src/components/KGrid/KContent.js +29 -0
  239. package/src/components/KGrid/KFlex.js +5 -0
  240. package/src/components/KGrid/KLayout.js +5 -0
  241. package/src/components/KGrid/grid.js +40 -0
  242. package/src/components/KGrid/index.js +27 -0
  243. package/src/components/KIcon/KIcon.js +87 -0
  244. package/src/components/KIcon/index.js +7 -0
  245. package/src/components/KList/KList.js +75 -0
  246. package/src/components/KList/KListGroup.js +95 -0
  247. package/src/components/KList/KListTile.js +62 -0
  248. package/src/components/KList/KListTileAction.js +12 -0
  249. package/src/components/KList/index.js +27 -0
  250. package/src/components/KMenu/KMenu.js +207 -0
  251. package/src/components/KMenu/index.js +7 -0
  252. package/src/components/KMenu/mixins/menu-activator.js +51 -0
  253. package/src/components/KMenu/mixins/menu-generators.js +84 -0
  254. package/src/components/KMenu/mixins/menu-keyable.js +68 -0
  255. package/src/components/KMenu/mixins/menu-position.js +72 -0
  256. package/src/components/KNavigationDrawer/KNavigationDrawer.js +267 -0
  257. package/src/components/KNavigationDrawer/index.js +7 -0
  258. package/src/components/KPagination/KPagination.js +168 -0
  259. package/src/components/KPagination/index.js +7 -0
  260. package/src/components/KParallax/KParallax.js +99 -0
  261. package/src/components/KParallax/index.js +7 -0
  262. package/src/components/KProgressCircular/KProgressCircular.js +160 -0
  263. package/src/components/KProgressCircular/index.js +7 -0
  264. package/src/components/KProgressLinear/KProgressLinear.js +157 -0
  265. package/src/components/KProgressLinear/index.js +7 -0
  266. package/src/components/KRadioGroup/KRadio.js +153 -0
  267. package/src/components/KRadioGroup/KRadioGroup.js +118 -0
  268. package/src/components/KRadioGroup/index.js +11 -0
  269. package/src/components/KSelect/KSelect.js +641 -0
  270. package/src/components/KSelect/index.js +7 -0
  271. package/src/components/KSelect/mixins/select-autocomplete.js +125 -0
  272. package/src/components/KSelect/mixins/select-generators.js +300 -0
  273. package/src/components/KSlider/KSlider.js +311 -0
  274. package/src/components/KSlider/index.js +7 -0
  275. package/src/components/KSnackbar/KSnackbar.js +97 -0
  276. package/src/components/KSnackbar/index.js +7 -0
  277. package/src/components/KSpeedDial/KSpeedDial.js +80 -0
  278. package/src/components/KSpeedDial/index.js +7 -0
  279. package/src/components/KStepper/KStepper.js +95 -0
  280. package/src/components/KStepper/KStepperContent.js +138 -0
  281. package/src/components/KStepper/KStepperStep.js +100 -0
  282. package/src/components/KStepper/index.js +17 -0
  283. package/src/components/KSubheader/KSubheader.js +25 -0
  284. package/src/components/KSubheader/index.js +7 -0
  285. package/src/components/KSwitch/KSwitch.js +58 -0
  286. package/src/components/KSwitch/index.js +7 -0
  287. package/src/components/KSystemBar/KSystemBar.js +54 -0
  288. package/src/components/KSystemBar/index.js +7 -0
  289. package/src/components/KTabs/KTabs.js +240 -0
  290. package/src/components/KTabs/KTabsBar.js +202 -0
  291. package/src/components/KTabs/KTabsContent.js +90 -0
  292. package/src/components/KTabs/KTabsItem.js +99 -0
  293. package/src/components/KTabs/KTabsItems.js +40 -0
  294. package/src/components/KTabs/KTabsSlider.js +14 -0
  295. package/src/components/KTabs/index.js +17 -0
  296. package/src/components/KTextField/KTextField.js +246 -0
  297. package/src/components/KTextField/index.js +7 -0
  298. package/src/components/KTimePicker/KTimePicker.js +282 -0
  299. package/src/components/KTimePicker/index.js +7 -0
  300. package/src/components/KTimePicker/mixins/time-body.js +208 -0
  301. package/src/components/KTimePicker/mixins/time-title.js +51 -0
  302. package/src/components/KToolbar/KToolbar.js +206 -0
  303. package/src/components/KToolbar/KToolbarSideIcon.js +26 -0
  304. package/src/components/KToolbar/index.js +19 -0
  305. package/src/components/KTooltip/KTooltip.js +161 -0
  306. package/src/components/KTooltip/index.js +7 -0
  307. package/src/components/Kdutify/index.js +48 -0
  308. package/src/components/index.js +45 -0
  309. package/src/components/transitions/expand-transition.js +34 -0
  310. package/src/components/transitions/index.js +50 -0
  311. package/src/components/transitions/row-expand-transition.js +38 -0
  312. package/src/directives/click-outside.js +72 -0
  313. package/src/directives/index.js +21 -0
  314. package/src/directives/resize.js +30 -0
  315. package/src/directives/ripple.js +120 -0
  316. package/src/directives/scroll.js +31 -0
  317. package/src/directives/touch.js +90 -0
  318. package/src/index.js +30 -0
  319. package/src/mixins/applicationable.js +9 -0
  320. package/src/mixins/bootable.js +31 -0
  321. package/src/mixins/button-group.js +77 -0
  322. package/src/mixins/colorable.js +20 -0
  323. package/src/mixins/contextualable.js +10 -0
  324. package/src/mixins/delayable.js +54 -0
  325. package/src/mixins/dependent.js +55 -0
  326. package/src/mixins/detachable.js +44 -0
  327. package/src/mixins/filterable.js +8 -0
  328. package/src/mixins/input.js +220 -0
  329. package/src/mixins/loadable.js +33 -0
  330. package/src/mixins/maskable.js +117 -0
  331. package/src/mixins/menuable.js +299 -0
  332. package/src/mixins/overlayable.js +180 -0
  333. package/src/mixins/picker.js +35 -0
  334. package/src/mixins/positionable.js +10 -0
  335. package/src/mixins/rippleable.js +21 -0
  336. package/src/mixins/routable.js +66 -0
  337. package/src/mixins/selectable.js +84 -0
  338. package/src/mixins/stackable.js +44 -0
  339. package/src/mixins/tab-focusable.js +7 -0
  340. package/src/mixins/themeable.js +15 -0
  341. package/src/mixins/toggleable.js +28 -0
  342. package/src/mixins/transitionable.js +7 -0
  343. package/src/mixins/translatable.js +67 -0
  344. package/src/mixins/validatable.js +124 -0
  345. package/src/stylus/app.styl +6 -0
  346. package/src/stylus/bootstrap.styl +1 -0
  347. package/src/stylus/components/_alerts.styl +44 -0
  348. package/src/stylus/components/_app.styl +21 -0
  349. package/src/stylus/components/_avatars.styl +22 -0
  350. package/src/stylus/components/_badges.styl +49 -0
  351. package/src/stylus/components/_bottom-navs.styl +86 -0
  352. package/src/stylus/components/_bottom-sheets.styl +18 -0
  353. package/src/stylus/components/_breadcrumbs.styl +46 -0
  354. package/src/stylus/components/_button-toggle.styl +55 -0
  355. package/src/stylus/components/_buttons.styl +339 -0
  356. package/src/stylus/components/_cards.styl +85 -0
  357. package/src/stylus/components/_carousel.styl +76 -0
  358. package/src/stylus/components/_chips.styl +102 -0
  359. package/src/stylus/components/_content.styl +6 -0
  360. package/src/stylus/components/_data-table.styl +113 -0
  361. package/src/stylus/components/_date-picker.styl +214 -0
  362. package/src/stylus/components/_dialogs.styl +63 -0
  363. package/src/stylus/components/_dividers.styl +19 -0
  364. package/src/stylus/components/_expansion-panel.styl +85 -0
  365. package/src/stylus/components/_footer.styl +40 -0
  366. package/src/stylus/components/_grid.styl +171 -0
  367. package/src/stylus/components/_icons.styl +32 -0
  368. package/src/stylus/components/_input-groups.styl +310 -0
  369. package/src/stylus/components/_lists.styl +263 -0
  370. package/src/stylus/components/_menus.styl +87 -0
  371. package/src/stylus/components/_navigation-drawer.styl +150 -0
  372. package/src/stylus/components/_overlay.styl +42 -0
  373. package/src/stylus/components/_pagination.styl +95 -0
  374. package/src/stylus/components/_parallax.styl +35 -0
  375. package/src/stylus/components/_pickers.styl +66 -0
  376. package/src/stylus/components/_progress-circular.styl +58 -0
  377. package/src/stylus/components/_progress-linear.styl +104 -0
  378. package/src/stylus/components/_radio-group.styl +23 -0
  379. package/src/stylus/components/_ripples.styl +31 -0
  380. package/src/stylus/components/_select.styl +153 -0
  381. package/src/stylus/components/_selection-controls.styl +122 -0
  382. package/src/stylus/components/_sliders.styl +234 -0
  383. package/src/stylus/components/_small-dialog.styl +37 -0
  384. package/src/stylus/components/_snackbars.styl +110 -0
  385. package/src/stylus/components/_speed-dial.styl +78 -0
  386. package/src/stylus/components/_steppers.styl +216 -0
  387. package/src/stylus/components/_subheaders.styl +18 -0
  388. package/src/stylus/components/_switch.styl +89 -0
  389. package/src/stylus/components/_system-bars.styl +49 -0
  390. package/src/stylus/components/_tables.styl +103 -0
  391. package/src/stylus/components/_tabs.styl +159 -0
  392. package/src/stylus/components/_text-fields.styl +243 -0
  393. package/src/stylus/components/_time-picker.styl +199 -0
  394. package/src/stylus/components/_toolbar.styl +148 -0
  395. package/src/stylus/components/_tooltips.styl +25 -0
  396. package/src/stylus/elements/_blockquote.styl +5 -0
  397. package/src/stylus/elements/_code.styl +20 -0
  398. package/src/stylus/elements/_global.styl +31 -0
  399. package/src/stylus/elements/_headings.styl +17 -0
  400. package/src/stylus/elements/_lists.styl +2 -0
  401. package/src/stylus/elements/_typography.styl +54 -0
  402. package/src/stylus/generic/_bootstrap.styl +49 -0
  403. package/src/stylus/generic/_reset.styl +332 -0
  404. package/src/stylus/generic/_transitions.styl +116 -0
  405. package/src/stylus/main.styl +2 -0
  406. package/src/stylus/settings/_colors.styl +339 -0
  407. package/src/stylus/settings/_elevations.styl +111 -0
  408. package/src/stylus/settings/_theme.styl +201 -0
  409. package/src/stylus/settings/_variables.styl +396 -0
  410. package/src/stylus/theme.styl +24 -0
  411. package/src/stylus/tools/_animations.styl +9 -0
  412. package/src/stylus/tools/_colors.styl +17 -0
  413. package/src/stylus/tools/_elevations.styl +7 -0
  414. package/src/stylus/trumps/_display.styl +14 -0
  415. package/src/stylus/trumps/_helpers.styl +5 -0
  416. package/src/stylus/trumps/_spacing.styl +37 -0
  417. package/src/stylus/trumps/_text.styl +13 -0
  418. package/src/util/breakpoint.js +134 -0
  419. package/src/util/helpers.d.ts +21 -0
  420. package/src/util/helpers.js +125 -0
  421. package/src/util/load.js +13 -0
  422. package/src/util/mask.js +138 -0
  423. package/src/util/testing.js +154 -0
  424. package/src/util/to-have-been-warned.js +68 -0
  425. package/src/util/touchSupport.js +12 -0
@@ -0,0 +1,347 @@
1
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
2
+
3
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
+
5
+ require('../../../src/stylus/components/_tables.styl');
6
+ require('../../../src/stylus/components/_data-table.styl');
7
+
8
+ import KBtn from '../KBtn';
9
+ import KIcon from '../KIcon';
10
+ import KProgressLinear from '../KProgressLinear';
11
+ import KSelect from '../KSelect';
12
+
13
+ import Filterable from '../../mixins/filterable';
14
+ import Themeable from '../../mixins/themeable';
15
+ import Loadable from '../../mixins/loadable';
16
+ import Head from './mixins/head';
17
+ import Body from './mixins/body';
18
+ import Foot from './mixins/foot';
19
+ import Progress from './mixins/progress';
20
+
21
+ import { createSimpleFunctional, getObjectValueByPath } from '../../util/helpers';
22
+
23
+ export default {
24
+ name: 'k-data-table',
25
+
26
+ components: {
27
+ KBtn: KBtn,
28
+ KIcon: KIcon,
29
+ KProgressLinear: KProgressLinear,
30
+ KSelect: KSelect,
31
+ // Importing does not work properly
32
+ 'k-table-overflow': createSimpleFunctional('table__overflow')
33
+ },
34
+
35
+ data: function data() {
36
+ return {
37
+ all: false,
38
+ searchLength: 0,
39
+ defaultPagination: {
40
+ descending: false,
41
+ page: 1,
42
+ rowsPerPage: 5,
43
+ sortBy: null,
44
+ totalItems: 0
45
+ },
46
+ expanded: {}
47
+ };
48
+ },
49
+
50
+
51
+ mixins: [Head, Body, Filterable, Foot, Loadable, Progress, Themeable],
52
+
53
+ props: {
54
+ expand: {
55
+ type: Boolean
56
+ },
57
+ headers: {
58
+ type: Array,
59
+ default: function _default() {
60
+ return [];
61
+ }
62
+ },
63
+ headerText: {
64
+ type: String,
65
+ default: 'text'
66
+ },
67
+ hideActions: Boolean,
68
+ hideHeaders: Boolean,
69
+ mustSort: Boolean,
70
+ noResultsText: {
71
+ type: String,
72
+ default: 'No matching records found'
73
+ },
74
+ rowsPerPageItems: {
75
+ type: Array,
76
+ default: function _default() {
77
+ return [5, 10, 25, { text: 'All', value: -1 }];
78
+ }
79
+ },
80
+ rowsPerPageText: {
81
+ type: String,
82
+ default: 'Rows per page:'
83
+ },
84
+ selectAll: [Boolean, String],
85
+ search: {
86
+ required: false
87
+ },
88
+ filter: {
89
+ type: Function,
90
+ default: function _default(val, search) {
91
+ return val !== null && ['undefined', 'boolean'].indexOf(typeof val === 'undefined' ? 'undefined' : _typeof(val)) === -1 && val.toString().toLowerCase().indexOf(search) !== -1;
92
+ }
93
+ },
94
+ customFilter: {
95
+ type: Function,
96
+ default: function _default(items, search, filter) {
97
+ search = search.toString().toLowerCase();
98
+ return items.filter(function (i) {
99
+ return Object.keys(i).some(function (j) {
100
+ return filter(i[j], search);
101
+ });
102
+ });
103
+ }
104
+ },
105
+ customSort: {
106
+ type: Function,
107
+ default: function _default(items, index, isDescending) {
108
+ if (index === null) return items;
109
+
110
+ return items.sort(function (a, b) {
111
+ var sortA = getObjectValueByPath(a, index);
112
+ var sortB = getObjectValueByPath(b, index);
113
+
114
+ if (isDescending) {
115
+ var _ref = [sortB, sortA];
116
+ sortA = _ref[0];
117
+ sortB = _ref[1];
118
+ }
119
+
120
+ // Check if both are numbers
121
+ if (!isNaN(sortA) && !isNaN(sortB)) {
122
+ return sortA - sortB;
123
+ }
124
+
125
+ // Check if both cannot be evaluated
126
+ if (sortA === null && sortB === null) {
127
+ return 0;
128
+ }
129
+
130
+ var _map = [sortA, sortB].map(function (s) {
131
+ return (s || '').toString().toLocaleLowerCase();
132
+ });
133
+
134
+ var _map2 = _slicedToArray(_map, 2);
135
+
136
+ sortA = _map2[0];
137
+ sortB = _map2[1];
138
+
139
+
140
+ if (sortA > sortB) return 1;
141
+ if (sortA < sortB) return -1;
142
+
143
+ return 0;
144
+ });
145
+ }
146
+ },
147
+ value: {
148
+ type: Array,
149
+ default: function _default() {
150
+ return [];
151
+ }
152
+ },
153
+ items: {
154
+ type: Array,
155
+ required: true,
156
+ default: function _default() {
157
+ return [];
158
+ }
159
+ },
160
+ totalItems: {
161
+ type: Number,
162
+ default: null
163
+ },
164
+ itemKey: {
165
+ type: String,
166
+ default: 'id'
167
+ },
168
+ pagination: {
169
+ type: Object,
170
+ default: function _default() {}
171
+ }
172
+ },
173
+
174
+ computed: {
175
+ classes: function classes() {
176
+ return {
177
+ 'datatable table': true,
178
+ 'datatable--select-all': this.selectAll !== false,
179
+ 'theme--dark': this.dark,
180
+ 'theme--light': this.light
181
+ };
182
+ },
183
+ computedPagination: function computedPagination() {
184
+ return this.hasPagination ? this.pagination : this.defaultPagination;
185
+ },
186
+ hasPagination: function hasPagination() {
187
+ var pagination = this.pagination || {};
188
+
189
+ return Object.keys(pagination).length > 0;
190
+ },
191
+ hasSelectAll: function hasSelectAll() {
192
+ return this.selectAll !== undefined && this.selectAll !== false;
193
+ },
194
+ itemsLength: function itemsLength() {
195
+ if (this.search) return this.searchLength;
196
+ return this.totalItems || this.items.length;
197
+ },
198
+ indeterminate: function indeterminate() {
199
+ return this.hasSelectAll && this.someItems && !this.everyItem;
200
+ },
201
+ everyItem: function everyItem() {
202
+ var _this = this;
203
+
204
+ return this.filteredItems.length && this.filteredItems.every(function (i) {
205
+ return _this.isSelected(i);
206
+ });
207
+ },
208
+ someItems: function someItems() {
209
+ var _this2 = this;
210
+
211
+ return this.filteredItems.some(function (i) {
212
+ return _this2.isSelected(i);
213
+ });
214
+ },
215
+ getPage: function getPage() {
216
+ var rowsPerPage = this.computedPagination.rowsPerPage;
217
+
218
+
219
+ return rowsPerPage === Object(rowsPerPage) ? rowsPerPage.value : rowsPerPage;
220
+ },
221
+ pageStart: function pageStart() {
222
+ return this.getPage === -1 ? 0 : (this.computedPagination.page - 1) * this.getPage;
223
+ },
224
+ pageStop: function pageStop() {
225
+ return this.getPage === -1 ? this.itemsLength : this.computedPagination.page * this.getPage;
226
+ },
227
+ filteredItems: function filteredItems() {
228
+ if (this.totalItems) return this.items;
229
+
230
+ var items = this.items.slice();
231
+ var hasSearch = typeof this.search !== 'undefined' && this.search !== null;
232
+
233
+ if (hasSearch) {
234
+ items = this.customFilter(items, this.search, this.filter);
235
+ this.searchLength = items.length;
236
+ }
237
+
238
+ items = this.customSort(items, this.computedPagination.sortBy, this.computedPagination.descending);
239
+
240
+ return this.hideActions && !this.hasPagination ? items : items.slice(this.pageStart, this.pageStop);
241
+ },
242
+ selected: function selected() {
243
+ var _this3 = this;
244
+
245
+ var selected = {};
246
+ this.value.forEach(function (i) {
247
+ return selected[i[_this3.itemKey]] = true;
248
+ });
249
+ return selected;
250
+ }
251
+ },
252
+
253
+ watch: {
254
+ indeterminate: function indeterminate(val) {
255
+ if (val) this.all = true;
256
+ },
257
+ someItems: function someItems(val) {
258
+ if (!val) this.all = false;
259
+ },
260
+ search: function search() {
261
+ this.updatePagination({ page: 1, totalItems: this.itemsLength });
262
+ },
263
+ everyItem: function everyItem(val) {
264
+ if (val) this.all = true;
265
+ }
266
+ },
267
+
268
+ methods: {
269
+ updatePagination: function updatePagination(val) {
270
+ var pagination = this.hasPagination ? this.pagination : this.defaultPagination;
271
+ var updatedPagination = Object.assign({}, pagination, val);
272
+ this.$emit('update:pagination', updatedPagination);
273
+
274
+ if (!this.hasPagination) {
275
+ this.defaultPagination = updatedPagination;
276
+ }
277
+ },
278
+ isSelected: function isSelected(item) {
279
+ return this.selected[item[this.itemKey]];
280
+ },
281
+ isExpanded: function isExpanded(item) {
282
+ return this.expanded[item[this.itemKey]];
283
+ },
284
+ sort: function sort(index) {
285
+ var _computedPagination = this.computedPagination,
286
+ sortBy = _computedPagination.sortBy,
287
+ descending = _computedPagination.descending;
288
+
289
+ if (sortBy === null) {
290
+ this.updatePagination({ sortBy: index, descending: false });
291
+ } else if (sortBy === index && !descending) {
292
+ this.updatePagination({ descending: true });
293
+ } else if (sortBy !== index) {
294
+ this.updatePagination({ sortBy: index, descending: false });
295
+ } else if (!this.mustSort) {
296
+ this.updatePagination({ sortBy: null, descending: null });
297
+ } else {
298
+ this.updatePagination({ sortBy: index, descending: false });
299
+ }
300
+ },
301
+ needsTR: function needsTR(row) {
302
+ return row.length && row.find(function (c) {
303
+ return c.tag === 'td';
304
+ });
305
+ },
306
+ genTR: function genTR(children) {
307
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
308
+
309
+ return this.$createElement('tr', data, children);
310
+ },
311
+ toggle: function toggle(value) {
312
+ var _this4 = this;
313
+
314
+ var selected = Object.assign({}, this.selected);
315
+ this.filteredItems.forEach(function (i) {
316
+ return selected[i[_this4.itemKey]] = value;
317
+ });
318
+
319
+ this.$emit('input', this.items.filter(function (i) {
320
+ return selected[i[_this4.itemKey]];
321
+ }));
322
+ }
323
+ },
324
+
325
+ created: function created() {
326
+ var firstSortable = this.headers.find(function (h) {
327
+ return !('sortable' in h) || h.sortable;
328
+ });
329
+
330
+ this.defaultPagination.sortBy = firstSortable ? firstSortable.value : null;
331
+
332
+ if (!this.rowsPerPageItems.length) {
333
+ console.warn('The prop \'rows-per-page-items\' in k-data-table can not be empty.');
334
+ } else {
335
+ this.defaultPagination.rowsPerPage = this.rowsPerPageItems[0];
336
+ }
337
+
338
+ this.defaultPagination.totalItems = this.itemsLength;
339
+
340
+ this.updatePagination(Object.assign({}, this.defaultPagination, this.pagination));
341
+ },
342
+ render: function render(h) {
343
+ return h('k-table-overflow', {}, [h('table', {
344
+ 'class': this.classes
345
+ }, [this.genTHead(), this.genTProgress(), this.genTBody(), this.genTFoot()])]);
346
+ }
347
+ };
@@ -0,0 +1,108 @@
1
+ require('../../../src/stylus/components/_small-dialog.styl');
2
+
3
+ export default {
4
+ name: 'k-edit-dialog',
5
+
6
+ data: function data() {
7
+ return {
8
+ isActive: false,
9
+ isSaving: false
10
+ };
11
+ },
12
+
13
+
14
+ props: {
15
+ cancelText: {
16
+ default: 'Cancel'
17
+ },
18
+ large: Boolean,
19
+ lazy: Boolean,
20
+ saveText: {
21
+ default: 'Save'
22
+ },
23
+ transition: {
24
+ type: String,
25
+ default: 'slide-x-reverse-transition'
26
+ }
27
+ },
28
+
29
+ watch: {
30
+ isActive: function isActive(val) {
31
+ val && this.$emit('open') && setTimeout(this.focus, 50); // Give DOM time to paint
32
+
33
+ if (!val) {
34
+ !this.isSaving && this.$emit('cancel');
35
+ this.isSaving && this.$emit('close');
36
+ this.isSaving = false;
37
+ }
38
+ }
39
+ },
40
+
41
+ methods: {
42
+ cancel: function cancel() {
43
+ this.isActive = false;
44
+ },
45
+ focus: function focus() {
46
+ var input = this.$refs.content.querySelector('input');
47
+ input && input.focus();
48
+ },
49
+ save: function save() {
50
+ this.isSaving = true;
51
+ this.isActive = false;
52
+ this.$emit('save');
53
+ },
54
+ genButton: function genButton(fn, text) {
55
+ return this.$createElement('k-btn', {
56
+ props: {
57
+ flat: true,
58
+ color: 'primary',
59
+ light: true
60
+ },
61
+ on: { click: fn }
62
+ }, text);
63
+ },
64
+ genActions: function genActions() {
65
+ return this.$createElement('div', {
66
+ 'class': 'small-dialog__actions'
67
+ }, [this.genButton(this.cancel, this.cancelText), this.genButton(this.save, this.saveText)]);
68
+ },
69
+ genContent: function genContent() {
70
+ var _this = this;
71
+
72
+ return this.$createElement('div', {
73
+ on: {
74
+ keydown: function keydown(e) {
75
+ e.keyCode === 27 && _this.cancel();
76
+ e.keyCode === 13 && _this.save();
77
+ }
78
+ },
79
+ ref: 'content'
80
+ }, [this.$slots.input]);
81
+ }
82
+ },
83
+
84
+ render: function render(h) {
85
+ var _this2 = this;
86
+
87
+ return h('k-menu', {
88
+ 'class': 'small-dialog',
89
+ props: {
90
+ contentClass: 'small-dialog__content',
91
+ transition: this.transition,
92
+ origin: 'top right',
93
+ right: true,
94
+ value: this.isActive,
95
+ closeOnContentClick: false,
96
+ lazy: this.lazy
97
+ },
98
+ on: {
99
+ input: function input(val) {
100
+ return _this2.isActive = val;
101
+ }
102
+ }
103
+ }, [h('a', {
104
+ domProps: { href: 'javascript:;' },
105
+ slot: 'activator'
106
+ }, this.$slots.default), this.genContent(), this.large ? this.genActions() : null]);
107
+ }
108
+ };
@@ -0,0 +1,14 @@
1
+ import { createSimpleFunctional } from '../../util/helpers';
2
+
3
+ import KDataTable from './KDataTable';
4
+ import KEditDialog from './KEditDialog';
5
+
6
+ KDataTable.install = function install(Kdu) {
7
+ var KTableOverflow = createSimpleFunctional('table__overflow');
8
+
9
+ Kdu.component(KDataTable.name, KDataTable);
10
+ Kdu.component(KEditDialog.name, KEditDialog);
11
+ Kdu.component('k-table-overflow', KTableOverflow);
12
+ };
13
+
14
+ export default KDataTable;
@@ -0,0 +1,103 @@
1
+ import RowExpandTransitionFunctions from '../../transitions/row-expand-transition';
2
+
3
+ export default {
4
+ methods: {
5
+ genTBody: function genTBody() {
6
+ var children = [];
7
+
8
+ if (!this.itemsLength) {
9
+ children.push(this.genEmptyBody(this.noDataText));
10
+ } else if (!this.filteredItems.length) {
11
+ children.push(this.genEmptyBody(this.noResultsText));
12
+ } else {
13
+ children.push(this.genFilteredItems());
14
+ }
15
+
16
+ return this.$createElement('tbody', children);
17
+ },
18
+ genExpandedRow: function genExpandedRow(props) {
19
+ var children = [];
20
+
21
+ if (this.isExpanded(props.item)) {
22
+ var expand = this.$createElement('div', {
23
+ class: 'datatable__expand-content',
24
+ key: props.item[this.itemKey]
25
+ }, this.$scopedSlots.expand(props));
26
+
27
+ children.push(expand);
28
+ }
29
+
30
+ var transition = this.$createElement('transition-group', {
31
+ class: 'datatable__expand-col',
32
+ attrs: { colspan: '100%' },
33
+ props: {
34
+ tag: 'td'
35
+ },
36
+ on: RowExpandTransitionFunctions
37
+ }, children);
38
+
39
+ return this.genTR([transition], { class: 'datatable__expand-row' });
40
+ },
41
+ createProps: function createProps(item, index) {
42
+ var _this = this;
43
+
44
+ var props = { item: item, index: index };
45
+ var key = this.itemKey;
46
+
47
+ Object.defineProperty(props, 'selected', {
48
+ get: function get() {
49
+ return _this.selected[item[_this.itemKey]];
50
+ },
51
+ set: function set(value) {
52
+ var selected = _this.value.slice();
53
+ if (value) selected.push(item);else selected = selected.filter(function (i) {
54
+ return i[key] !== item[key];
55
+ });
56
+ _this.$emit('input', selected);
57
+ }
58
+ });
59
+
60
+ Object.defineProperty(props, 'expanded', {
61
+ get: function get() {
62
+ return _this.expanded[item[_this.itemKey]];
63
+ },
64
+ set: function set(value) {
65
+ if (!_this.expand) {
66
+ Object.keys(_this.expanded).forEach(function (key) {
67
+ _this.$set(_this.expanded, key, false);
68
+ });
69
+ }
70
+ _this.$set(_this.expanded, item[_this.itemKey], value);
71
+ }
72
+ });
73
+
74
+ return props;
75
+ },
76
+ genFilteredItems: function genFilteredItems() {
77
+ var _this2 = this;
78
+
79
+ var rows = [];
80
+ this.filteredItems.forEach(function (item, index) {
81
+ var props = _this2.createProps(item, index);
82
+ var row = _this2.$scopedSlots.items ? _this2.$scopedSlots.items(props) : [];
83
+
84
+ rows.push(_this2.needsTR(row) ? _this2.genTR(row, {
85
+ attrs: { active: _this2.isSelected(item) }
86
+ }) : row);
87
+
88
+ if (_this2.$scopedSlots.expand) {
89
+ var expandRow = _this2.genExpandedRow(props);
90
+ rows.push(expandRow);
91
+ }
92
+ });
93
+
94
+ return rows;
95
+ },
96
+ genEmptyBody: function genEmptyBody(text) {
97
+ return this.genTR([this.$createElement('td', {
98
+ 'class': 'text-xs-center',
99
+ attrs: { colspan: '100%' }
100
+ }, text)]);
101
+ }
102
+ }
103
+ };
@@ -0,0 +1,118 @@
1
+ export default {
2
+ methods: {
3
+ genPrevIcon: function genPrevIcon() {
4
+ var _this = this;
5
+
6
+ return this.$createElement('k-btn', {
7
+ props: {
8
+ disabled: this.computedPagination.page === 1,
9
+ icon: true,
10
+ flat: true,
11
+ dark: this.dark,
12
+ light: this.light
13
+ },
14
+ on: {
15
+ click: function click() {
16
+ var page = _this.computedPagination.page;
17
+ _this.updatePagination({ page: page - 1 });
18
+ }
19
+ },
20
+ attrs: {
21
+ 'aria-label': 'Previous page' // TODO: Localization
22
+ }
23
+ }, [this.$createElement('k-icon', 'chevron_left')]);
24
+ },
25
+ genNextIcon: function genNextIcon() {
26
+ var _this2 = this;
27
+
28
+ var pagination = this.computedPagination;
29
+ var disabled = pagination.rowsPerPage < 0 || pagination.page * pagination.rowsPerPage >= this.itemsLength || this.pageStop < 0;
30
+
31
+ return this.$createElement('k-btn', {
32
+ props: {
33
+ disabled: disabled,
34
+ icon: true,
35
+ flat: true,
36
+ dark: this.dark,
37
+ light: this.light
38
+ },
39
+ on: {
40
+ click: function click() {
41
+ var page = _this2.computedPagination.page;
42
+ _this2.updatePagination({ page: page + 1 });
43
+ }
44
+ },
45
+ attrs: {
46
+ 'aria-label': 'Next page' // TODO: Localization
47
+ }
48
+ }, [this.$createElement('k-icon', 'chevron_right')]);
49
+ },
50
+ genSelect: function genSelect() {
51
+ var _this3 = this;
52
+
53
+ return this.$createElement('div', {
54
+ 'class': 'datatable__actions__select'
55
+ }, [this.rowsPerPageText, this.$createElement('k-select', {
56
+ attrs: {
57
+ 'aria-label': this.rowsPerPageText
58
+ },
59
+ props: {
60
+ items: this.rowsPerPageItems,
61
+ value: this.computedPagination.rowsPerPage,
62
+ hideDetails: true,
63
+ auto: true,
64
+ minWidth: '75px'
65
+ },
66
+ on: {
67
+ input: function input(val) {
68
+ _this3.updatePagination({
69
+ page: 1,
70
+ rowsPerPage: val
71
+ });
72
+ }
73
+ }
74
+ })]);
75
+ },
76
+ genPagination: function genPagination() {
77
+ var pagination = '–';
78
+
79
+ if (this.itemsLength) {
80
+ var stop = this.itemsLength < this.pageStop || this.pageStop < 0 ? this.itemsLength : this.pageStop;
81
+
82
+ pagination = this.$scopedSlots.pageText ? this.$scopedSlots.pageText({
83
+ pageStart: this.pageStart + 1,
84
+ pageStop: stop,
85
+ itemsLength: this.itemsLength
86
+ }) : this.pageStart + 1 + '-' + stop + ' of ' + this.itemsLength;
87
+ }
88
+
89
+ return this.$createElement('div', {
90
+ 'class': 'datatable__actions__pagination'
91
+ }, [pagination]);
92
+ },
93
+ genActions: function genActions() {
94
+ return [this.$createElement('div', {
95
+ 'class': 'datatable__actions'
96
+ }, [this.genSelect(), this.genPagination(), this.genPrevIcon(), this.genNextIcon()])];
97
+ },
98
+ genTFoot: function genTFoot() {
99
+ var children = [];
100
+
101
+ if (this.$slots.footer) {
102
+ var footer = this.$slots.footer;
103
+ var row = this.needsTR(footer) ? this.genTR(footer) : footer;
104
+
105
+ children.push(row);
106
+ }
107
+
108
+ if (!this.hideActions) {
109
+ children.push(this.genTR([this.$createElement('td', {
110
+ attrs: { colspan: '100%' }
111
+ }, this.genActions())]));
112
+ }
113
+
114
+ if (!children.length) return null;
115
+ return this.$createElement('tfoot', children);
116
+ }
117
+ }
118
+ };