buefy 0.9.13 → 0.9.17

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 (265) hide show
  1. package/CHANGELOG.md +1706 -1639
  2. package/README.md +1 -1
  3. package/dist/buefy.css +313 -1
  4. package/dist/buefy.esm.js +4431 -2331
  5. package/dist/buefy.esm.min.js +2 -2
  6. package/dist/buefy.js +4467 -2364
  7. package/dist/buefy.min.css +1 -1
  8. package/dist/buefy.min.js +2 -2
  9. package/dist/cjs/autocomplete.js +5 -5
  10. package/dist/cjs/button.js +3 -3
  11. package/dist/cjs/carousel.js +4 -4
  12. package/dist/cjs/{chunk-34949503.js → chunk-0d6f213f.js} +2 -2
  13. package/dist/cjs/{chunk-2c7de785.js → chunk-0e3108f5.js} +2 -2
  14. package/dist/cjs/{chunk-2911aa4b.js → chunk-1438658c.js} +14 -11
  15. package/dist/cjs/{chunk-114191ae.js → chunk-1f7e4ed3.js} +3 -3
  16. package/dist/cjs/{chunk-a11294f9.js → chunk-334bc809.js} +1 -1
  17. package/dist/cjs/chunk-45739695.js +332 -0
  18. package/dist/cjs/{chunk-c7b2aa4b.js → chunk-4bcfaf1c.js} +0 -0
  19. package/dist/cjs/{chunk-f5106717.js → chunk-5058e659.js} +3 -3
  20. package/dist/cjs/{chunk-61023b09.js → chunk-545e1c7f.js} +102 -16
  21. package/dist/cjs/{chunk-30670fac.js → chunk-54b0042d.js} +19 -3
  22. package/dist/cjs/{chunk-fe2f57ee.js → chunk-5ed8a75a.js} +2 -2
  23. package/dist/cjs/{chunk-d120e215.js → chunk-73f8eef8.js} +8 -2
  24. package/dist/cjs/{chunk-2062216d.js → chunk-7c11fdde.js} +5 -4
  25. package/dist/cjs/{chunk-3cc5d9a6.js → chunk-841c0e0f.js} +1 -1
  26. package/dist/cjs/{chunk-9e4cf4c5.js → chunk-87a116d9.js} +0 -0
  27. package/dist/cjs/{chunk-fefd7b77.js → chunk-a53b7aff.js} +0 -0
  28. package/dist/cjs/{chunk-d0f8ea39.js → chunk-c0a093d7.js} +7 -7
  29. package/dist/cjs/{chunk-7da0c017.js → chunk-c8abb3ed.js} +21 -21
  30. package/dist/cjs/{chunk-c6fbc7b4.js → chunk-d0df905a.js} +15 -2
  31. package/dist/cjs/{chunk-d54e40f6.js → chunk-e86d3eeb.js} +1 -8
  32. package/dist/cjs/{chunk-6cb902f8.js → chunk-e872f5e2.js} +1 -1
  33. package/dist/cjs/{chunk-2ae50815.js → chunk-f5285f14.js} +4 -4
  34. package/dist/cjs/clockpicker.js +8 -8
  35. package/dist/cjs/colorpicker.js +1752 -0
  36. package/dist/cjs/config.js +1 -1
  37. package/dist/cjs/datepicker.js +11 -11
  38. package/dist/cjs/datetimepicker.js +30 -14
  39. package/dist/cjs/dialog.js +5 -5
  40. package/dist/cjs/dropdown.js +3 -3
  41. package/dist/cjs/field.js +2 -2
  42. package/dist/cjs/helpers.js +21 -1
  43. package/dist/cjs/icon.js +2 -2
  44. package/dist/cjs/image.js +2 -2
  45. package/dist/cjs/index.js +27 -22
  46. package/dist/cjs/input.js +4 -4
  47. package/dist/cjs/loading.js +5 -5
  48. package/dist/cjs/menu.js +2 -2
  49. package/dist/cjs/message.js +4 -9
  50. package/dist/cjs/modal.js +5 -5
  51. package/dist/cjs/navbar.js +4 -1
  52. package/dist/cjs/notification.js +7 -7
  53. package/dist/cjs/numberinput.js +30 -21
  54. package/dist/cjs/pagination.js +7 -7
  55. package/dist/cjs/progress.js +3 -3
  56. package/dist/cjs/rate.js +2 -2
  57. package/dist/cjs/select.js +4 -4
  58. package/dist/cjs/sidebar.js +1 -1
  59. package/dist/cjs/slider.js +3 -3
  60. package/dist/cjs/snackbar.js +5 -4
  61. package/dist/cjs/steps.js +5 -5
  62. package/dist/cjs/table.js +157 -146
  63. package/dist/cjs/tabs.js +7 -7
  64. package/dist/cjs/taginput.js +5 -5
  65. package/dist/cjs/timepicker.js +12 -12
  66. package/dist/cjs/toast.js +3 -3
  67. package/dist/cjs/tooltip.js +4 -4
  68. package/dist/cjs/upload.js +23 -9
  69. package/dist/components/autocomplete/index.js +24 -2
  70. package/dist/components/autocomplete/index.min.js +2 -2
  71. package/dist/components/breadcrumb/index.js +1 -1
  72. package/dist/components/breadcrumb/index.min.js +1 -1
  73. package/dist/components/button/index.js +8 -2
  74. package/dist/components/button/index.min.js +2 -2
  75. package/dist/components/carousel/index.js +8 -2
  76. package/dist/components/carousel/index.min.js +2 -2
  77. package/dist/components/checkbox/index.js +1 -1
  78. package/dist/components/checkbox/index.min.js +1 -1
  79. package/dist/components/clockpicker/index.js +41 -22
  80. package/dist/components/clockpicker/index.min.js +2 -2
  81. package/dist/components/collapse/index.js +1 -1
  82. package/dist/components/collapse/index.min.js +1 -1
  83. package/dist/components/colorpicker/index.js +4318 -0
  84. package/dist/components/colorpicker/index.min.js +2 -0
  85. package/dist/components/datepicker/index.js +48 -26
  86. package/dist/components/datepicker/index.min.js +2 -2
  87. package/dist/components/datetimepicker/index.js +66 -28
  88. package/dist/components/datetimepicker/index.min.js +2 -2
  89. package/dist/components/dialog/index.js +8 -2
  90. package/dist/components/dialog/index.min.js +2 -2
  91. package/dist/components/dropdown/index.js +14 -1
  92. package/dist/components/dropdown/index.min.js +2 -2
  93. package/dist/components/field/index.js +21 -21
  94. package/dist/components/field/index.min.js +1 -1
  95. package/dist/components/icon/index.js +8 -2
  96. package/dist/components/icon/index.min.js +2 -2
  97. package/dist/components/image/index.js +1 -1
  98. package/dist/components/image/index.min.js +1 -1
  99. package/dist/components/input/index.js +8 -2
  100. package/dist/components/input/index.min.js +2 -2
  101. package/dist/components/loading/index.js +1 -1
  102. package/dist/components/loading/index.min.js +1 -1
  103. package/dist/components/menu/index.js +8 -2
  104. package/dist/components/menu/index.min.js +2 -2
  105. package/dist/components/message/index.js +11 -9
  106. package/dist/components/message/index.min.js +2 -2
  107. package/dist/components/modal/index.js +1 -1
  108. package/dist/components/modal/index.min.js +1 -1
  109. package/dist/components/navbar/index.js +4 -1
  110. package/dist/components/navbar/index.min.js +2 -2
  111. package/dist/components/notification/index.js +13 -13
  112. package/dist/components/notification/index.min.js +2 -2
  113. package/dist/components/numberinput/index.js +34 -19
  114. package/dist/components/numberinput/index.min.js +2 -2
  115. package/dist/components/pagination/index.js +107 -16
  116. package/dist/components/pagination/index.min.js +2 -2
  117. package/dist/components/progress/index.js +2 -2
  118. package/dist/components/progress/index.min.js +2 -2
  119. package/dist/components/radio/index.js +1 -1
  120. package/dist/components/radio/index.min.js +1 -1
  121. package/dist/components/rate/index.js +8 -2
  122. package/dist/components/rate/index.min.js +2 -2
  123. package/dist/components/select/index.js +8 -2
  124. package/dist/components/select/index.min.js +2 -2
  125. package/dist/components/sidebar/index.js +1 -1
  126. package/dist/components/sidebar/index.min.js +1 -1
  127. package/dist/components/skeleton/index.js +1 -1
  128. package/dist/components/skeleton/index.min.js +1 -1
  129. package/dist/components/slider/index.js +2 -2
  130. package/dist/components/slider/index.min.js +2 -2
  131. package/dist/components/snackbar/index.js +4 -10
  132. package/dist/components/snackbar/index.min.js +2 -2
  133. package/dist/components/steps/index.js +8 -2
  134. package/dist/components/steps/index.min.js +2 -2
  135. package/dist/components/switch/index.js +1 -1
  136. package/dist/components/switch/index.min.js +1 -1
  137. package/dist/components/table/index.js +253 -133
  138. package/dist/components/table/index.min.js +2 -2
  139. package/dist/components/tabs/index.js +10 -4
  140. package/dist/components/tabs/index.min.js +2 -2
  141. package/dist/components/tag/index.js +1 -1
  142. package/dist/components/tag/index.min.js +1 -1
  143. package/dist/components/taginput/index.js +24 -2
  144. package/dist/components/taginput/index.min.js +2 -2
  145. package/dist/components/timepicker/index.js +41 -22
  146. package/dist/components/timepicker/index.min.js +2 -2
  147. package/dist/components/toast/index.js +2 -9
  148. package/dist/components/toast/index.min.js +2 -2
  149. package/dist/components/tooltip/index.js +2 -2
  150. package/dist/components/tooltip/index.min.js +2 -2
  151. package/dist/components/upload/index.js +20 -6
  152. package/dist/components/upload/index.min.js +2 -2
  153. package/dist/esm/autocomplete.js +6 -6
  154. package/dist/esm/button.js +4 -4
  155. package/dist/esm/carousel.js +4 -4
  156. package/dist/esm/{chunk-18e8b067.js → chunk-1a4fde6d.js} +102 -17
  157. package/dist/esm/{chunk-3773c62d.js → chunk-22cf6667.js} +2 -2
  158. package/dist/esm/{chunk-ece062a7.js → chunk-262b3f82.js} +1 -1
  159. package/dist/esm/chunk-455cdeae.js +317 -0
  160. package/dist/esm/{chunk-d7f92d97.js → chunk-5435bd9a.js} +5 -4
  161. package/dist/esm/{chunk-e7c9b2cb.js → chunk-58cdbf2b.js} +2 -2
  162. package/dist/esm/{chunk-29ca0df8.js → chunk-60a03517.js} +1 -1
  163. package/dist/esm/{chunk-21fc0948.js → chunk-66cef090.js} +7 -7
  164. package/dist/esm/{chunk-71a547bc.js → chunk-690d5be4.js} +1 -1
  165. package/dist/esm/{chunk-83eb0d37.js → chunk-6adc5c5d.js} +3 -3
  166. package/dist/esm/{chunk-c9c58d0c.js → chunk-6d0f2352.js} +0 -0
  167. package/dist/esm/{chunk-8d0f95b8.js → chunk-6d96579e.js} +4 -4
  168. package/dist/esm/{chunk-22e9f916.js → chunk-6fb4a069.js} +14 -11
  169. package/dist/esm/{chunk-75a5af93.js → chunk-84c6dfd6.js} +0 -0
  170. package/dist/esm/{chunk-ae8ab23a.js → chunk-a628d44d.js} +3 -3
  171. package/dist/esm/{chunk-b0c0c6b0.js → chunk-c9c18b2f.js} +0 -0
  172. package/dist/esm/{chunk-9f7f7441.js → chunk-d35985c7.js} +0 -0
  173. package/dist/esm/{chunk-799e084d.js → chunk-d9232770.js} +1 -8
  174. package/dist/esm/{chunk-4b67a181.js → chunk-dbd43ef1.js} +15 -2
  175. package/dist/esm/{chunk-d92f0cd9.js → chunk-e044aa02.js} +8 -2
  176. package/dist/esm/{chunk-b07e3182.js → chunk-effa4d25.js} +21 -21
  177. package/dist/esm/{chunk-6019fd7a.js → chunk-f9eaeac4.js} +19 -3
  178. package/dist/esm/clockpicker.js +8 -8
  179. package/dist/esm/colorpicker.js +1748 -0
  180. package/dist/esm/config.js +1 -1
  181. package/dist/esm/datepicker.js +10 -10
  182. package/dist/esm/datetimepicker.js +29 -13
  183. package/dist/esm/dialog.js +4 -4
  184. package/dist/esm/dropdown.js +4 -4
  185. package/dist/esm/field.js +3 -3
  186. package/dist/esm/helpers.js +20 -2
  187. package/dist/esm/icon.js +3 -3
  188. package/dist/esm/image.js +3 -3
  189. package/dist/esm/index.js +94 -91
  190. package/dist/esm/input.js +5 -5
  191. package/dist/esm/loading.js +3 -3
  192. package/dist/esm/menu.js +2 -2
  193. package/dist/esm/message.js +3 -8
  194. package/dist/esm/modal.js +3 -3
  195. package/dist/esm/navbar.js +4 -1
  196. package/dist/esm/notification.js +5 -5
  197. package/dist/esm/numberinput.js +30 -21
  198. package/dist/esm/pagination.js +4 -4
  199. package/dist/esm/progress.js +3 -3
  200. package/dist/esm/rate.js +2 -2
  201. package/dist/esm/select.js +5 -5
  202. package/dist/esm/sidebar.js +1 -1
  203. package/dist/esm/slider.js +2 -2
  204. package/dist/esm/snackbar.js +4 -3
  205. package/dist/esm/steps.js +5 -5
  206. package/dist/esm/table.js +155 -144
  207. package/dist/esm/tabs.js +7 -7
  208. package/dist/esm/taginput.js +5 -5
  209. package/dist/esm/timepicker.js +11 -11
  210. package/dist/esm/toast.js +2 -2
  211. package/dist/esm/tooltip.js +3 -3
  212. package/dist/esm/upload.js +21 -7
  213. package/dist/vetur/attributes.json +96 -0
  214. package/dist/vetur/tags.json +30 -1
  215. package/package.json +1 -1
  216. package/src/components/autocomplete/Autocomplete.vue +10 -0
  217. package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +1 -5
  218. package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +48 -48
  219. package/src/components/colorpicker/Colorpicker.spec.js +10 -0
  220. package/src/components/colorpicker/Colorpicker.vue +354 -0
  221. package/src/components/colorpicker/ColorpickerAlphaSlider.spec.js +14 -0
  222. package/src/components/colorpicker/ColorpickerAlphaSlider.vue +194 -0
  223. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.spec.js +22 -0
  224. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +366 -0
  225. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.spec.js +22 -0
  226. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +442 -0
  227. package/src/components/colorpicker/__snapshots__/ColorPickerHSLRepresentationSquare.spec.js.snap +12 -0
  228. package/src/components/colorpicker/__snapshots__/Colorpicker.spec.js.snap +32 -0
  229. package/src/components/colorpicker/__snapshots__/ColorpickerAlphaSlider.spec.js.snap +11 -0
  230. package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationTriangle.spec.js.snap +36 -0
  231. package/src/components/colorpicker/index.js +17 -0
  232. package/src/components/datepicker/DatepickerTableRow.spec.js +26 -0
  233. package/src/components/datepicker/DatepickerTableRow.vue +4 -5
  234. package/src/components/datetimepicker/Datetimepicker.vue +17 -1
  235. package/src/components/dropdown/Dropdown.vue +13 -0
  236. package/src/components/field/Field.vue +271 -271
  237. package/src/components/index.js +2 -0
  238. package/src/components/message/Message.vue +0 -5
  239. package/src/components/navbar/NavbarDropdown.vue +4 -0
  240. package/src/components/notification/Notification.vue +1 -1
  241. package/src/components/numberinput/Numberinput.spec.js +62 -0
  242. package/src/components/numberinput/Numberinput.vue +22 -15
  243. package/src/components/pagination/Pagination.vue +141 -51
  244. package/src/components/progress/Progress.vue +1 -1
  245. package/src/components/snackbar/index.js +2 -1
  246. package/src/components/table/Table.spec.js +17 -3
  247. package/src/components/table/Table.vue +1436 -1409
  248. package/src/components/table/TablePagination.vue +10 -2
  249. package/src/components/tabs/Tabs.vue +2 -0
  250. package/src/components/timepicker/__snapshots__/Timepicker.spec.js.snap +18 -47
  251. package/src/components/tooltip/Tooltip.vue +2 -2
  252. package/src/components/upload/Upload.vue +19 -7
  253. package/src/scss/buefy.scss +1 -0
  254. package/src/scss/components/_colorpicker.scss +283 -0
  255. package/src/scss/components/_pagination.scss +38 -0
  256. package/src/utils/MessageMixin.js +2 -1
  257. package/src/utils/NoticeMixin.js +1 -5
  258. package/src/utils/color.js +441 -0
  259. package/src/utils/color.spec.js +52 -0
  260. package/src/utils/helpers.js +16 -0
  261. package/src/utils/icons.js +7 -1
  262. package/types/components.d.ts +7 -2
  263. package/types/helpers.d.ts +2 -1
  264. package/dist/cjs/chunk-92621ff7.js +0 -141
  265. package/dist/esm/chunk-2452e3d3.js +0 -134
@@ -18,7 +18,11 @@
18
18
  :aria-next-label="ariaNextLabel"
19
19
  :aria-previous-label="ariaPreviousLabel"
20
20
  :aria-page-label="ariaPageLabel"
21
- :aria-current-label="ariaCurrentLabel" />
21
+ :aria-current-label="ariaCurrentLabel"
22
+ :page-input="pageInput"
23
+ :order="paginationOrder"
24
+ :page-input-position="pageInputPosition"
25
+ :debounce-page-input="debouncePageInput"/>
22
26
  </div>
23
27
  </div>
24
28
  </div>
@@ -44,7 +48,11 @@ export default {
44
48
  ariaNextLabel: String,
45
49
  ariaPreviousLabel: String,
46
50
  ariaPageLabel: String,
47
- ariaCurrentLabel: String
51
+ ariaCurrentLabel: String,
52
+ pageInput: Boolean,
53
+ paginationOrder: String,
54
+ pageInputPosition: String,
55
+ debouncePageInput: [Number, String]
48
56
  },
49
57
  data() {
50
58
  return {
@@ -7,6 +7,7 @@
7
7
  :aria-orientation="vertical ? 'vertical' : 'horizontal'"
8
8
  @keydown="manageTablistKeydown"
9
9
  >
10
+ <slot name="start" />
10
11
  <ul>
11
12
  <li
12
13
  v-for="(childItem, childIdx) in items"
@@ -52,6 +53,7 @@
52
53
  </a>
53
54
  </li>
54
55
  </ul>
56
+ <slot name="end" />
55
57
  </nav>
56
58
  <section class="tab-content" :class="{'is-transitioning': isTransitioning}">
57
59
  <slot/>
@@ -6,35 +6,32 @@ exports[`BTimepicker render correctly 1`] = `
6
6
  <b-dropdown-item-stub custom="true" focusable="true" ariarole="">
7
7
  <b-field-stub grouped="true" position="is-centered" addons="true">
8
8
  <b-select-stub usehtml5validation="true" statusicon="true" placeholder="00">
9
- <option value="0">
10
- 00
11
- </option>
12
9
  <option value="1">
13
- 01
10
+ 1
14
11
  </option>
15
12
  <option value="2">
16
- 02
13
+ 2
17
14
  </option>
18
15
  <option value="3">
19
- 03
16
+ 3
20
17
  </option>
21
18
  <option value="4">
22
- 04
19
+ 4
23
20
  </option>
24
21
  <option value="5">
25
- 05
22
+ 5
26
23
  </option>
27
24
  <option value="6">
28
- 06
25
+ 6
29
26
  </option>
30
27
  <option value="7">
31
- 07
28
+ 7
32
29
  </option>
33
30
  <option value="8">
34
- 08
31
+ 8
35
32
  </option>
36
33
  <option value="9">
37
- 09
34
+ 9
38
35
  </option>
39
36
  <option value="10">
40
37
  10
@@ -42,42 +39,9 @@ exports[`BTimepicker render correctly 1`] = `
42
39
  <option value="11">
43
40
  11
44
41
  </option>
45
- <option value="12">
42
+ <option value="0">
46
43
  12
47
44
  </option>
48
- <option value="13">
49
- 13
50
- </option>
51
- <option value="14">
52
- 14
53
- </option>
54
- <option value="15">
55
- 15
56
- </option>
57
- <option value="16">
58
- 16
59
- </option>
60
- <option value="17">
61
- 17
62
- </option>
63
- <option value="18">
64
- 18
65
- </option>
66
- <option value="19">
67
- 19
68
- </option>
69
- <option value="20">
70
- 20
71
- </option>
72
- <option value="21">
73
- 21
74
- </option>
75
- <option value="22">
76
- 22
77
- </option>
78
- <option value="23">
79
- 23
80
- </option>
81
45
  </b-select-stub> <span class="control is-colon">:</span>
82
46
  <b-select-stub usehtml5validation="true" statusicon="true" placeholder="00">
83
47
  <option value="0">
@@ -262,7 +226,14 @@ exports[`BTimepicker render correctly 1`] = `
262
226
  </option>
263
227
  </b-select-stub>
264
228
  <!---->
265
- <!---->
229
+ <b-select-stub usehtml5validation="true" statusicon="true" value="AM">
230
+ <option value="AM">
231
+ AM
232
+ </option>
233
+ <option value="PM">
234
+ PM
235
+ </option>
236
+ </b-select-stub>
266
237
  </b-field-stub>
267
238
  <!---->
268
239
  </b-dropdown-item-stub>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span ref="tooltip" :class="rootClasses">
2
+ <div ref="tooltip" :class="rootClasses">
3
3
  <transition :name="newAnimation">
4
4
  <div
5
5
  v-show="active && (isActive || always)"
@@ -23,7 +23,7 @@
23
23
  @mouseleave="close">
24
24
  <slot ref="slot" />
25
25
  </div>
26
- </span>
26
+ </div>
27
27
  </template>
28
28
 
29
29
  <script>
@@ -75,7 +75,7 @@ export default {
75
75
  /**
76
76
  * When v-model is changed:
77
77
  * 1. Set internal value.
78
- * 2. Reset interna input file value
78
+ * 2. Reset internal input file value
79
79
  * 3. If it's invalid, validate again.
80
80
  */
81
81
  value(value) {
@@ -104,8 +104,15 @@ export default {
104
104
  else {
105
105
  const file = value[0]
106
106
  if (this.checkType(file)) this.newValue = file
107
- else if (this.newValue) this.newValue = null
108
- else return
107
+ else if (this.newValue) {
108
+ this.newValue = null
109
+ this.clearInput()
110
+ } else {
111
+ // Force input back to empty state and recheck validity
112
+ this.clearInput()
113
+ this.checkHtml5Validity()
114
+ return
115
+ }
109
116
  }
110
117
  } else {
111
118
  // always new values if native or undefined local
@@ -127,6 +134,13 @@ export default {
127
134
  !this.dragDrop && this.checkHtml5Validity()
128
135
  },
129
136
 
137
+ /*
138
+ * Reset file input value
139
+ */
140
+ clearInput() {
141
+ this.$refs.input.value = null
142
+ },
143
+
130
144
  /**
131
145
  * Listen drag-drop to update internal variable
132
146
  */
@@ -149,10 +163,8 @@ export default {
149
163
  if (type) {
150
164
  if (type.substring(0, 1) === '.') {
151
165
  // check extension
152
- const extIndex = file.name.lastIndexOf('.')
153
- const extension = extIndex >= 0
154
- ? file.name.substring(extIndex) : ''
155
- if (extension.toLowerCase() === type.toLowerCase()) {
166
+ const extension = file.name.toLowerCase().slice(-type.length)
167
+ if (extension === type.toLowerCase()) {
156
168
  valid = true
157
169
  }
158
170
  } else {
@@ -5,6 +5,7 @@
5
5
  @import "components/_checkbox";
6
6
  @import "components/_clockpicker";
7
7
  @import "components/_collapse";
8
+ @import "components/colorpicker";
8
9
  @import "components/_datepicker";
9
10
  @import "components/_dialog";
10
11
  @import "components/_dropdown";
@@ -0,0 +1,283 @@
1
+ $colorpicker-radius: $dropdown-content-radius !default;
2
+ $colorpicker-hue-selected-stroke: $primary !default;
3
+
4
+ .colorpicker {
5
+ .color-name {
6
+ font-family: $family-monospace;
7
+ text-transform: uppercase;
8
+ }
9
+ .colorpicker-footer {
10
+ margin-top: .875rem;
11
+ padding-top: .875rem;
12
+ border: 1px solid #dbdbdb;
13
+ border-width: 1px 0 0 0;
14
+
15
+ .colorpicker-fields {
16
+ margin-bottom: .875rem;
17
+
18
+ .field {
19
+ flex-grow: 1;
20
+
21
+ .field-label {
22
+ margin-right: .5rem;
23
+ }
24
+ .control {
25
+ display: flex;
26
+ .input {
27
+ -webkit-appearance: none;
28
+ -moz-appearance: textfield;
29
+ appearance: textfield;
30
+ flex-grow: 1;
31
+ width: 0;
32
+ min-width: 42px;
33
+ text-align: right;
34
+
35
+ &::-webkit-outer-spin-button,
36
+ &::-webkit-inner-spin-button {
37
+ -webkit-appearance: none;
38
+ margin: 0;
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ .dropdown.is-expanded .dropdown-menu,
46
+ .dropdown.is-expanded.is-mobile-modal .dropdown-menu {
47
+ width: unset;
48
+ }
49
+ .dropdown-horizonal-colorpicker {
50
+ display: flex;
51
+ flex-direction: row;
52
+
53
+ .colorpicker-footer {
54
+ border-width: 0 0 0 1px;
55
+ margin-top: 0;
56
+ padding-top: 0;
57
+ margin-left: .875rem;
58
+ padding-left: .875rem;
59
+ }
60
+ }
61
+ }
62
+
63
+ svg.b-colorpicker-triangle {
64
+ width: 200px;
65
+ height: 200px;
66
+ user-select: none;
67
+
68
+ @media (max-width: $tablet) {
69
+ width: 100%;
70
+ height: auto;
71
+ }
72
+
73
+ .colorpicker-triangle-hue {
74
+ width: 100%;
75
+ height: 100%;
76
+ background:
77
+ conic-gradient(
78
+ #f00,
79
+ #ff0,
80
+ #0f0,
81
+ #0ff,
82
+ #00f,
83
+ #f0f,
84
+ #f00
85
+ );
86
+ }
87
+
88
+ .colorpicker-triangle-slider {
89
+ &-hue,
90
+ &-sl {
91
+ &,
92
+ & foreignObject,
93
+ & g {
94
+ transform-origin: 50% 50%;
95
+ }
96
+ }
97
+ }
98
+
99
+ .hue-range-thumb,
100
+ .sl-range-thumb {
101
+ background: transparent;
102
+ border-radius: $colorpicker-radius;
103
+ box-shadow:
104
+ inset 0 0 0 1px #fff,
105
+ 0 0 0 1px #dbdbdb;
106
+ cursor: grab;
107
+ height: calc(100%/1 - .25em/1);
108
+ width: calc(100%/1 - .25em/1);
109
+ margin: .125em;
110
+
111
+ &:hover {
112
+ box-shadow:
113
+ inset 0 0 0 1px #fff,
114
+ 0 0 0 1px #b5b5b5;
115
+ }
116
+ &:focus {
117
+ box-shadow:
118
+ inset 0 0 0 1px #fff,
119
+ 0 0 0 1px $colorpicker-hue-selected-stroke,
120
+ 0 0 0 .125em rgba($colorpicker-hue-selected-stroke, .25);
121
+ }
122
+ &:active {
123
+ cursor: grabbing;
124
+ }
125
+ }
126
+ }
127
+
128
+ div.b-colorpicker-square {
129
+ position: relative;
130
+ aspect-ratio: 1/1;
131
+ user-select: none;
132
+
133
+ .colorpicker-square-slider-hue {
134
+ background:
135
+ conic-gradient(
136
+ #f00,
137
+ #ff0,
138
+ #0f0,
139
+ #0ff,
140
+ #00f,
141
+ #f0f,
142
+ #f00
143
+ );
144
+ border-radius: $colorpicker-radius;
145
+ position: absolute;
146
+ top: 0;
147
+ right: 0;
148
+ bottom: 0;
149
+ left: 0;
150
+
151
+ .hue-range-thumb {
152
+ border-radius: calc(#{$colorpicker-radius} / 1.75);
153
+ position: absolute;
154
+ aspect-ratio: 1 / 1;
155
+ transform: translate(-50%, -50%);
156
+ box-shadow:
157
+ inset 0 0 0 1px #fff,
158
+ 0 0 0 1px #dbdbdb;
159
+ cursor: grab;
160
+
161
+ &:hover {
162
+ box-shadow:
163
+ inset 0 0 0 1px #fff,
164
+ inset 0 0 0 2px #b5b5b5,
165
+ 0 0 0 1px #b5b5b5;
166
+ }
167
+ &:focus {
168
+ box-shadow:
169
+ inset 0 0 0 1px #fff,
170
+ 0 0 0 1px $colorpicker-hue-selected-stroke,
171
+ 0 0 0 .125em rgba($colorpicker-hue-selected-stroke, .25);
172
+ }
173
+ &:active {
174
+ cursor: grabbing;
175
+ }
176
+ }
177
+ }
178
+ .colorpicker-square-slider-sl {
179
+ background: #fff;
180
+ border-radius: $colorpicker-radius*0.5;
181
+ position: absolute;
182
+ top: 0;
183
+ right: 0;
184
+ bottom: 0;
185
+ left: 0;
186
+
187
+ &::before {
188
+ content: '';
189
+ background: linear-gradient(0deg, #000, #fff);
190
+ position: absolute;
191
+ top: 0;
192
+ right: 0;
193
+ bottom: 0;
194
+ left: 0;
195
+ mix-blend-mode: hard-light;
196
+ }
197
+
198
+ .sl-range-thumb {
199
+ display: block;
200
+ border-radius: $colorpicker-radius;
201
+ position: absolute;
202
+ width: 8px;
203
+ height: 8px;
204
+ transform: translate(-50%, -50%);
205
+ box-shadow:
206
+ inset 0 0 0 1px #fff,
207
+ 0 0 0 1px #dbdbdb;
208
+ cursor: grab;
209
+
210
+ &:hover {
211
+ box-shadow:
212
+ inset 0 0 0 1px #fff,
213
+ inset 0 0 0 2px #b5b5b5,
214
+ 0 0 0 1px #b5b5b5;
215
+ }
216
+ &:focus {
217
+ box-shadow:
218
+ inset 0 0 0 1px #fff,
219
+ 0 0 0 1px $colorpicker-hue-selected-stroke,
220
+ 0 0 0 .125em rgba($colorpicker-hue-selected-stroke, .25);
221
+ }
222
+ &:active {
223
+ cursor: grabbing;
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ .b-colorpicker-alpha-slider {
230
+ height: 1em;
231
+ background-image:
232
+ linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7),
233
+ linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7);
234
+ background-size: 1em 1em;
235
+ background-position: .5em .5em, 0 0;
236
+ border-radius: $colorpicker-radius;
237
+ margin-top: .125em;
238
+ margin-bottom: .875rem;
239
+ position: relative;
240
+
241
+ .alpha-range-thumb {
242
+ width: .4em;
243
+ height: 1.25em;
244
+ border-radius: $colorpicker-radius;
245
+ box-shadow:
246
+ inset 0 0 0 1px #fff,
247
+ inset 0 0 0 2px #dbdbdb,
248
+ 0 0 0 1px #dbdbdb;
249
+ cursor: grab;
250
+ position: absolute;
251
+ top: 50%;
252
+ left: 0;
253
+ transform: translate(-50%, -50%);
254
+
255
+ &:hover {
256
+ box-shadow:
257
+ inset 0 0 0 1px #fff,
258
+ inset 0 0 0 2px #b5b5b5,
259
+ 0 0 0 1px #b5b5b5;
260
+ }
261
+ &:focus {
262
+ box-shadow:
263
+ inset 0 0 0 1px #fff,
264
+ 0 0 0 1px $colorpicker-hue-selected-stroke,
265
+ 0 0 0 .125em rgba($colorpicker-hue-selected-stroke, .25);
266
+ }
267
+ &:active {
268
+ cursor: grabbing;
269
+ }
270
+
271
+ & > .b-tooltip {
272
+ &,
273
+ &> .tooltip-trigger {
274
+ position: absolute;
275
+ display: block;
276
+ top: 0;
277
+ right: 0;
278
+ bottom: 0;
279
+ left: 0;
280
+ }
281
+ }
282
+ }
283
+ }
@@ -1,3 +1,11 @@
1
+ @mixin paginationPositions($classes...) {
2
+ @for $i from 0 to length($classes) {
3
+ #{nth($classes, $i + 1)} {
4
+ order: $i + 1;
5
+ }
6
+ }
7
+ }
8
+
1
9
  .pagination {
2
10
  .pagination-next,
3
11
  .pagination-previous {
@@ -23,3 +31,33 @@
23
31
  cursor: not-allowed;
24
32
  }
25
33
  }
34
+
35
+ @include tablet {
36
+ .pagination.has-input {
37
+ @include paginationPositions(".pagination-list", ".pagination-input", ".pagination-previous", ".pagination-next");
38
+ &.is-centered {
39
+ @include paginationPositions(".pagination-previous", ".pagination-list", ".pagination-input", ".pagination-next");
40
+ &.is-input-right {
41
+ @include paginationPositions(".pagination-previous", ".pagination-list", ".pagination-next", ".pagination-input");
42
+ }
43
+ &.is-input-left {
44
+ @include paginationPositions(".pagination-input", ".pagination-previous", ".pagination-list", ".pagination-next");
45
+ }
46
+ }
47
+ &.is-right {
48
+ @include paginationPositions(".pagination-previous", ".pagination-next", ".pagination-input", ".pagination-list");
49
+ &.is-input-right {
50
+ @include paginationPositions(".pagination-previous", ".pagination-next", ".pagination-list", ".pagination-input");
51
+ }
52
+ &.is-input-left {
53
+ @include paginationPositions(".pagination-input", ".pagination-previous", ".pagination-next", ".pagination-list");
54
+ }
55
+ }
56
+ &.is-input-right {
57
+ @include paginationPositions(".pagination-list", ".pagination-previous", ".pagination-next", ".pagination-input");
58
+ }
59
+ &.is-input-left {
60
+ @include paginationPositions(".pagination-input", ".pagination-list", ".pagination-previous", ".pagination-next");
61
+ }
62
+ }
63
+ }
@@ -42,7 +42,8 @@ export default {
42
42
  data() {
43
43
  return {
44
44
  isActive: this.active,
45
- remainingTime: this.duration / 1000 // in seconds
45
+ remainingTime: this.duration / 1000, // in seconds
46
+ newIconSize: this.iconSize || this.size || 'is-large'
46
47
  }
47
48
  },
48
49
  watch: {
@@ -126,11 +126,7 @@ export default {
126
126
  },
127
127
 
128
128
  showNotice() {
129
- if (this.shouldQueue()) {
130
- // Call recursively if should queue
131
- setTimeout(() => this.showNotice(), 250)
132
- return
133
- }
129
+ if (this.shouldQueue()) this.correctParent.innerHTML = ''
134
130
  this.correctParent.insertAdjacentElement('afterbegin', this.$el)
135
131
  this.isActive = true
136
132