buefy 0.7.9 → 0.8.2
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.
- package/CHANGELOG.md +82 -0
- package/dist/buefy.css +13759 -8263
- package/dist/buefy.js +9073 -14866
- package/dist/buefy.min.css +1 -5
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +22 -0
- package/dist/cjs/button.js +106 -0
- package/dist/cjs/checkbox.js +135 -0
- package/dist/cjs/chunk-07fe6fc0.js +247 -0
- package/dist/cjs/chunk-0af453a7.js +105 -0
- package/dist/cjs/chunk-0e89e51b.js +394 -0
- package/dist/cjs/chunk-13e039f5.js +104 -0
- package/dist/cjs/chunk-143d9e6d.js +404 -0
- package/dist/cjs/chunk-19ebd649.js +114 -0
- package/dist/cjs/chunk-1b1231ce.js +94 -0
- package/dist/cjs/chunk-1e6abfcf.js +94 -0
- package/dist/cjs/chunk-28d164b1.js +172 -0
- package/dist/cjs/chunk-3396605d.js +394 -0
- package/dist/cjs/chunk-364a37a0.js +404 -0
- package/dist/cjs/chunk-3b066933.js +103 -0
- package/dist/cjs/chunk-3dffe6e7.js +54 -0
- package/dist/cjs/chunk-4a03b064.js +199 -0
- package/dist/cjs/chunk-50b06939.js +153 -0
- package/dist/cjs/chunk-52623128.js +105 -0
- package/dist/cjs/chunk-53d4f332.js +94 -0
- package/dist/cjs/chunk-544a95da.js +404 -0
- package/dist/cjs/chunk-545f01b1.js +49 -0
- package/dist/cjs/chunk-59b91990.js +64 -0
- package/dist/cjs/chunk-5b2a3329.js +394 -0
- package/dist/cjs/chunk-60061aa8.js +172 -0
- package/dist/cjs/chunk-67658e54.js +404 -0
- package/dist/cjs/chunk-6963026a.js +86 -0
- package/dist/cjs/chunk-6cece6b7.js +140 -0
- package/dist/cjs/chunk-6d6465c1.js +140 -0
- package/dist/cjs/chunk-6e9c0aca.js +94 -0
- package/dist/cjs/chunk-77f69fca.js +106 -0
- package/dist/cjs/chunk-7a25d736.js +114 -0
- package/dist/cjs/chunk-876befa8.js +247 -0
- package/dist/cjs/chunk-8985ffff.js +105 -0
- package/dist/cjs/chunk-8a05c8c9.js +207 -0
- package/dist/cjs/chunk-90407463.js +258 -0
- package/dist/cjs/chunk-956525c9.js +106 -0
- package/dist/cjs/chunk-96ce35a2.js +114 -0
- package/dist/cjs/chunk-9da1d120.js +86 -0
- package/dist/cjs/chunk-9f6a8079.js +54 -0
- package/dist/cjs/chunk-a60dc21d.js +281 -0
- package/dist/cjs/chunk-b628277d.js +199 -0
- package/dist/cjs/chunk-c146745e.js +153 -0
- package/dist/cjs/chunk-c2aec7a9.js +547 -0
- package/dist/cjs/chunk-c9641331.js +86 -0
- package/dist/cjs/chunk-d492406b.js +172 -0
- package/dist/cjs/chunk-e0aa62a0.js +404 -0
- package/dist/cjs/chunk-e45e0329.js +48 -0
- package/dist/cjs/chunk-e5de6583.js +207 -0
- package/dist/cjs/chunk-e85cceb6.js +258 -0
- package/dist/cjs/chunk-ed5addd6.js +547 -0
- package/dist/cjs/chunk-ef4753d5.js +283 -0
- package/dist/cjs/chunk-f0c597f9.js +199 -0
- package/dist/cjs/chunk-f1df1c63.js +9 -0
- package/dist/cjs/chunk-f1ee2f5c.js +207 -0
- package/dist/cjs/chunk-fbd4d545.js +247 -0
- package/dist/cjs/clockpicker.js +447 -0
- package/dist/cjs/collapse.js +102 -0
- package/dist/cjs/datepicker.js +1281 -0
- package/dist/cjs/dialog.js +237 -0
- package/dist/cjs/dropdown.js +19 -0
- package/dist/cjs/field.js +18 -0
- package/dist/cjs/icon.js +17 -0
- package/dist/cjs/index.js +164 -0
- package/dist/cjs/input.js +20 -0
- package/dist/cjs/loading.js +166 -0
- package/dist/cjs/menu.js +231 -0
- package/dist/cjs/message.js +65 -0
- package/dist/cjs/modal.js +48 -0
- package/dist/cjs/navbar.js +258 -0
- package/dist/cjs/notification.js +142 -0
- package/dist/cjs/numberinput.js +191 -0
- package/dist/cjs/pagination.js +19 -0
- package/dist/cjs/progress.js +151 -0
- package/dist/cjs/radio.js +224 -0
- package/dist/cjs/select.js +20 -0
- package/dist/cjs/slider.js +511 -0
- package/dist/cjs/snackbar.js +114 -0
- package/dist/cjs/steps.js +352 -0
- package/dist/cjs/switch.js +144 -0
- package/dist/cjs/table.js +877 -0
- package/dist/cjs/tabs.js +258 -0
- package/dist/cjs/tag.js +63 -0
- package/dist/cjs/taginput.js +297 -0
- package/dist/cjs/timepicker.js +75 -0
- package/dist/cjs/toast.js +89 -0
- package/dist/cjs/tooltip.js +17 -0
- package/dist/cjs/upload.js +210 -0
- package/dist/components/autocomplete/index.js +1084 -2
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/button/index.js +425 -2
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/checkbox/index.js +342 -2
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +2340 -2
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +201 -2
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/datepicker/index.js +2720 -2
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +768 -2
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +555 -2
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +447 -2
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +322 -2
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/input/index.js +675 -2
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +282 -2
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +550 -2
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +482 -2
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +400 -2
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +371 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +705 -2
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +846 -2
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +577 -2
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +250 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +323 -2
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/select/index.js +571 -2
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/slider/index.js +764 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +397 -2
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +721 -2
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +243 -2
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +1870 -2
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +627 -2
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +262 -2
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +1459 -2
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2053 -2
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +372 -2
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +236 -2
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +501 -2
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/button.js +102 -0
- package/dist/esm/checkbox.js +131 -0
- package/dist/esm/chunk-00e3e67f.js +401 -0
- package/dist/esm/chunk-051f8b06.js +105 -0
- package/dist/esm/chunk-0566c90d.js +152 -0
- package/dist/esm/chunk-07e19446.js +545 -0
- package/dist/esm/chunk-085a700d.js +7 -0
- package/dist/esm/chunk-0ad6938a.js +53 -0
- package/dist/esm/chunk-0e3f4fb5.js +52 -0
- package/dist/esm/chunk-10c85529.js +151 -0
- package/dist/esm/chunk-121b1efa.js +197 -0
- package/dist/esm/chunk-19dad95e.js +256 -0
- package/dist/esm/chunk-231b6066.js +113 -0
- package/dist/esm/chunk-24d1a01f.js +279 -0
- package/dist/esm/chunk-297bff6b.js +393 -0
- package/dist/esm/chunk-2b2ae5c6.js +245 -0
- package/dist/esm/chunk-2cb6f867.js +46 -0
- package/dist/esm/chunk-33717194.js +392 -0
- package/dist/esm/chunk-3b811b77.js +139 -0
- package/dist/esm/chunk-3e47308f.js +104 -0
- package/dist/esm/chunk-411d6eea.js +84 -0
- package/dist/esm/chunk-4535dec5.js +92 -0
- package/dist/esm/chunk-47a5f3a1.js +103 -0
- package/dist/esm/chunk-4a5384da.js +205 -0
- package/dist/esm/chunk-4b663574.js +112 -0
- package/dist/esm/chunk-4d393f09.js +170 -0
- package/dist/esm/chunk-4d695899.js +257 -0
- package/dist/esm/chunk-4f508891.js +171 -0
- package/dist/esm/chunk-531b8274.js +281 -0
- package/dist/esm/chunk-591ee4a2.js +151 -0
- package/dist/esm/chunk-5d3bf82e.js +170 -0
- package/dist/esm/chunk-5e0b0665.js +104 -0
- package/dist/esm/chunk-648b9aa4.js +45 -0
- package/dist/esm/chunk-666940cf.js +546 -0
- package/dist/esm/chunk-67c97e13.js +246 -0
- package/dist/esm/chunk-6844653e.js +401 -0
- package/dist/esm/chunk-699b7cb4.js +245 -0
- package/dist/esm/chunk-6f881e7d.js +51 -0
- package/dist/esm/chunk-7123d158.js +256 -0
- package/dist/esm/chunk-7cf87590.js +60 -0
- package/dist/esm/chunk-823177ac.js +545 -0
- package/dist/esm/chunk-8838757a.js +401 -0
- package/dist/esm/chunk-8ca878c0.js +198 -0
- package/dist/esm/chunk-8fc2e874.js +85 -0
- package/dist/esm/chunk-912ed715.js +92 -0
- package/dist/esm/chunk-92acc21f.js +392 -0
- package/dist/esm/chunk-98e86f40.js +197 -0
- package/dist/esm/chunk-99a1f9df.js +92 -0
- package/dist/esm/chunk-9a776697.js +112 -0
- package/dist/esm/chunk-9e3207cc.js +46 -0
- package/dist/esm/chunk-9ec14e09.js +112 -0
- package/dist/esm/chunk-a5ea70d0.js +205 -0
- package/dist/esm/chunk-ac3f4847.js +138 -0
- package/dist/esm/chunk-b5376f3e.js +92 -0
- package/dist/esm/chunk-b56eb2c8.js +197 -0
- package/dist/esm/chunk-b796d1b2.js +392 -0
- package/dist/esm/chunk-b822a5db.js +205 -0
- package/dist/esm/chunk-b9bdb0e4.js +6 -0
- package/dist/esm/chunk-bfe15983.js +401 -0
- package/dist/esm/chunk-c9039f68.js +104 -0
- package/dist/esm/chunk-cc718c15.js +245 -0
- package/dist/esm/chunk-cca88db8.js +99 -0
- package/dist/esm/chunk-d6200087.js +50 -0
- package/dist/esm/chunk-daeac852.js +138 -0
- package/dist/esm/chunk-db31c548.js +103 -0
- package/dist/esm/chunk-e5568f45.js +84 -0
- package/dist/esm/chunk-e5fce48f.js +59 -0
- package/dist/esm/chunk-e84b4047.js +170 -0
- package/dist/esm/chunk-e8d90b72.js +98 -0
- package/dist/esm/chunk-e932bb68.js +206 -0
- package/dist/esm/chunk-edd8ff91.js +103 -0
- package/dist/esm/chunk-f0465d8d.js +84 -0
- package/dist/esm/chunk-f743d154.js +93 -0
- package/dist/esm/chunk-f8036b32.js +402 -0
- package/dist/esm/chunk-f984748f.js +401 -0
- package/dist/esm/chunk-fd5b0e1e.js +99 -0
- package/dist/esm/clockpicker.js +443 -0
- package/dist/esm/collapse.js +98 -0
- package/dist/esm/datepicker.js +1277 -0
- package/dist/esm/dialog.js +231 -0
- package/dist/esm/dropdown.js +14 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/icon.js +13 -0
- package/dist/esm/index.js +154 -0
- package/dist/esm/input.js +16 -0
- package/dist/esm/loading.js +159 -0
- package/dist/esm/menu.js +225 -0
- package/dist/esm/message.js +61 -0
- package/dist/esm/modal.js +42 -0
- package/dist/esm/navbar.js +253 -0
- package/dist/esm/notification.js +135 -0
- package/dist/esm/numberinput.js +187 -0
- package/dist/esm/pagination.js +15 -0
- package/dist/esm/progress.js +147 -0
- package/dist/esm/radio.js +219 -0
- package/dist/esm/select.js +16 -0
- package/dist/esm/slider.js +506 -0
- package/dist/esm/snackbar.js +108 -0
- package/dist/esm/steps.js +347 -0
- package/dist/esm/switch.js +140 -0
- package/dist/esm/table.js +872 -0
- package/dist/esm/tabs.js +253 -0
- package/dist/esm/tag.js +59 -0
- package/dist/esm/taginput.js +293 -0
- package/dist/esm/timepicker.js +71 -0
- package/dist/esm/toast.js +83 -0
- package/dist/esm/tooltip.js +13 -0
- package/dist/esm/upload.js +206 -0
- package/package.json +26 -4
- package/src/components/checkbox/Checkbox.vue +12 -4
- package/src/components/checkbox/CheckboxButton.vue +10 -2
- package/src/components/clockpicker/Clockpicker.vue +0 -5
- package/src/components/datepicker/Datepicker.spec.js +60 -0
- package/src/components/datepicker/Datepicker.vue +46 -19
- package/src/components/datepicker/DatepickerTable.spec.js +107 -2
- package/src/components/datepicker/DatepickerTable.vue +73 -4
- package/src/components/datepicker/DatepickerTableRow.spec.js +127 -17
- package/src/components/datepicker/DatepickerTableRow.vue +103 -4
- package/src/components/dialog/Dialog.vue +5 -3
- package/src/components/dialog/index.js +2 -2
- package/src/components/dropdown/Dropdown.vue +1 -4
- package/src/components/dropdown/DropdownItem.vue +7 -3
- package/src/components/field/Field.spec.js +18 -0
- package/src/components/field/Field.vue +21 -2
- package/src/components/index.js +6 -0
- package/src/components/input/Input.vue +2 -2
- package/src/components/loading/index.js +1 -1
- package/src/components/modal/index.js +1 -1
- package/src/components/navbar/NavBar.spec.js +76 -0
- package/src/components/navbar/Navbar.vue +127 -0
- package/src/components/navbar/NavbarBurger.vue +25 -0
- package/src/components/navbar/NavbarItem.vue +21 -0
- package/src/components/navbar/index.js +20 -0
- package/src/components/notification/index.js +1 -1
- package/src/components/pagination/Pagination.vue +28 -6
- package/src/components/progress/Progress.spec.js +77 -0
- package/src/components/progress/Progress.vue +108 -0
- package/src/components/progress/__snapshots__/Progress.spec.js.snap +7 -0
- package/src/components/progress/index.js +17 -0
- package/src/components/radio/Radio.spec.js +18 -1
- package/src/components/radio/Radio.vue +11 -5
- package/src/components/radio/RadioButton.spec.js +18 -1
- package/src/components/radio/RadioButton.vue +20 -8
- package/src/components/select/Select.spec.js +22 -1
- package/src/components/select/Select.vue +2 -1
- package/src/components/select/__snapshots__/Select.spec.js.snap +7 -0
- package/src/components/slider/Slider.spec.js +10 -0
- package/src/components/slider/Slider.vue +240 -0
- package/src/components/slider/SliderThumb.vue +188 -0
- package/src/components/slider/SliderTick.vue +43 -0
- package/src/components/slider/index.js +20 -0
- package/src/components/snackbar/index.js +2 -2
- package/src/components/steps/StepItem.vue +2 -3
- package/src/components/steps/Steps.vue +7 -5
- package/src/components/switch/Switch.spec.js +29 -0
- package/src/components/switch/Switch.vue +29 -5
- package/src/components/switch/__snapshots__/Switch.spec.js.snap +3 -0
- package/src/components/table/Table.vue +30 -8
- package/src/components/table/TableColumn.vue +2 -2
- package/src/components/tag/Tag.vue +4 -1
- package/src/components/taginput/Taginput.spec.js +10 -0
- package/src/components/taginput/Taginput.vue +8 -3
- package/src/components/toast/index.js +2 -2
- package/src/components/tooltip/Tooltip.vue +5 -5
- package/src/components/upload/Upload.vue +15 -8
- package/src/index.js +11 -4
- package/src/scss/buefy-build.scss +3 -3
- package/src/scss/buefy.scss +4 -0
- package/src/scss/components/_datepicker.scss +40 -1
- package/src/scss/components/_form.scss +52 -1
- package/src/scss/components/_progress.scss +45 -0
- package/src/scss/components/_radio.scss +14 -14
- package/src/scss/components/_slider.scss +138 -0
- package/src/scss/components/_steps.scss +4 -4
- package/src/scss/components/_switch.scss +54 -2
- package/src/scss/components/_taginput.scss +3 -0
- package/src/scss/components/_upload.scss +1 -3
- package/src/utils/SlotComponent.js +9 -2
- package/src/utils/TimepickerMixin.js +17 -6
- package/src/utils/config.js +4 -1
- package/src/utils/helpers.spec.js +67 -0
- package/src/utils/plugins.js +2 -1
- package/types/components.d.ts +3 -3
- package/types/index.d.ts +24 -11
- package/dist/components/index.js +0 -2
|
@@ -69,20 +69,30 @@
|
|
|
69
69
|
'is-numeric': column.numeric,
|
|
70
70
|
'is-centered': column.centered
|
|
71
71
|
}">
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
<template v-if="column.$scopedSlots && column.$scopedSlots.header">
|
|
73
|
+
<b-slot-component
|
|
74
|
+
:component="column"
|
|
75
|
+
:scoped="true"
|
|
76
|
+
name="header"
|
|
77
|
+
tag="span"
|
|
78
|
+
:props="{ column, index }"
|
|
79
|
+
/>
|
|
80
|
+
</template>
|
|
81
|
+
<template v-else-if="$scopedSlots.header">
|
|
82
|
+
<slot
|
|
83
|
+
name="header"
|
|
84
|
+
:column="column"
|
|
85
|
+
:index="index"
|
|
86
|
+
/>
|
|
87
|
+
</template>
|
|
78
88
|
<template v-else>{{ column.label }}</template>
|
|
79
89
|
|
|
80
90
|
<b-icon
|
|
81
91
|
v-show="currentSortColumn === column"
|
|
82
|
-
icon="
|
|
92
|
+
:icon="sortIcon"
|
|
83
93
|
:pack="iconPack"
|
|
84
94
|
both
|
|
85
|
-
size="
|
|
95
|
+
:size="sortIconSize"
|
|
86
96
|
:class="{ 'is-desc': !isAsc }"/>
|
|
87
97
|
</div>
|
|
88
98
|
</th>
|
|
@@ -106,6 +116,8 @@
|
|
|
106
116
|
}]"
|
|
107
117
|
@click="selectRow(row)"
|
|
108
118
|
@dblclick="$emit('dblclick', row)"
|
|
119
|
+
@mouseenter="$emit('mouseenter', row)"
|
|
120
|
+
@mouseleave="$emit('mouseleave', row)"
|
|
109
121
|
@contextmenu="$emit('contextmenu', row, $event)"
|
|
110
122
|
:draggable="draggable"
|
|
111
123
|
@dragstart="handleDragStart($event, row, index)"
|
|
@@ -247,6 +259,7 @@ import { getValueByPath, indexOf } from '../../utils/helpers'
|
|
|
247
259
|
import Checkbox from '../checkbox/Checkbox'
|
|
248
260
|
import Icon from '../icon/Icon'
|
|
249
261
|
import Pagination from '../pagination/Pagination'
|
|
262
|
+
import SlotComponent from '../../utils/SlotComponent'
|
|
250
263
|
|
|
251
264
|
import TableMobileSort from './TableMobileSort'
|
|
252
265
|
import TableColumn from './TableColumn'
|
|
@@ -257,6 +270,7 @@ export default {
|
|
|
257
270
|
[Checkbox.name]: Checkbox,
|
|
258
271
|
[Icon.name]: Icon,
|
|
259
272
|
[Pagination.name]: Pagination,
|
|
273
|
+
[SlotComponent.name]: SlotComponent,
|
|
260
274
|
[TableMobileSort.name]: TableMobileSort,
|
|
261
275
|
[TableColumn.name]: TableColumn
|
|
262
276
|
},
|
|
@@ -310,6 +324,14 @@ export default {
|
|
|
310
324
|
type: String,
|
|
311
325
|
default: 'asc'
|
|
312
326
|
},
|
|
327
|
+
sortIcon: {
|
|
328
|
+
type: String,
|
|
329
|
+
default: 'arrow-up'
|
|
330
|
+
},
|
|
331
|
+
sortIconSize: {
|
|
332
|
+
type: String,
|
|
333
|
+
default: 'is-small'
|
|
334
|
+
},
|
|
313
335
|
paginated: Boolean,
|
|
314
336
|
currentPage: {
|
|
315
337
|
type: Number,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="visible"
|
|
4
4
|
:class="rootClasses"
|
|
5
5
|
:data-label="label">
|
|
6
|
-
<
|
|
6
|
+
<slot/>
|
|
7
7
|
</td>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
label: String,
|
|
15
15
|
customKey: [String, Number],
|
|
16
16
|
field: String,
|
|
17
|
-
meta: [String, Number, Boolean, Function, Object, Array
|
|
17
|
+
meta: [String, Number, Boolean, Function, Object, Array],
|
|
18
18
|
width: [Number, String],
|
|
19
19
|
numeric: Boolean,
|
|
20
20
|
centered: Boolean,
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<a
|
|
11
11
|
class="tag is-delete"
|
|
12
12
|
role="button"
|
|
13
|
+
:aria-label="ariaCloseLabel"
|
|
13
14
|
:tabindex="tabstop ? 0 : false"
|
|
14
15
|
:disabled="disabled"
|
|
15
16
|
:class="[size, { 'is-rounded': rounded }]"
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
<a
|
|
29
30
|
v-if="closable"
|
|
30
31
|
role="button"
|
|
32
|
+
:aria-label="ariaCloseLabel"
|
|
31
33
|
class="delete is-small"
|
|
32
34
|
:disabled="disabled"
|
|
33
35
|
:tabindex="tabstop ? 0 : false"
|
|
@@ -51,7 +53,8 @@ export default {
|
|
|
51
53
|
tabstop: {
|
|
52
54
|
type: Boolean,
|
|
53
55
|
default: true
|
|
54
|
-
}
|
|
56
|
+
},
|
|
57
|
+
ariaCloseLabel: String
|
|
55
58
|
},
|
|
56
59
|
methods: {
|
|
57
60
|
/**
|
|
@@ -9,3 +9,13 @@ describe('BTaginput', () => {
|
|
|
9
9
|
expect(wrapper.isVueInstance()).toBeTruthy()
|
|
10
10
|
})
|
|
11
11
|
})
|
|
12
|
+
|
|
13
|
+
it('no display counter when hasCounter property set for false', () => {
|
|
14
|
+
const wrapper = shallowMount(BTaginput, {
|
|
15
|
+
propsData: { maxlength: 100 }
|
|
16
|
+
})
|
|
17
|
+
expect(wrapper.find('small.counter').exists()).toBeTruthy()
|
|
18
|
+
|
|
19
|
+
wrapper.setProps({ hasCounter: false })
|
|
20
|
+
expect(wrapper.find('small.counter').exists()).toBeFalsy()
|
|
21
|
+
})
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
</b-autocomplete>
|
|
63
63
|
</div>
|
|
64
64
|
|
|
65
|
-
<
|
|
65
|
+
<small v-if="hasCounter && (maxtags || maxlength)" class="help counter">
|
|
66
66
|
<template v-if="maxlength && valueLength > 0">
|
|
67
67
|
{{ valueLength }} / {{ maxlength }}
|
|
68
68
|
</template>
|
|
69
69
|
<template v-else-if="maxtags">
|
|
70
70
|
{{ tagsLength }} / {{ maxtags }}
|
|
71
71
|
</template>
|
|
72
|
-
</
|
|
72
|
+
</small>
|
|
73
73
|
</div>
|
|
74
74
|
</template>
|
|
75
75
|
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
import { getValueByPath } from '../../utils/helpers'
|
|
78
78
|
import Tag from '../tag/Tag'
|
|
79
79
|
import Autocomplete from '../autocomplete/Autocomplete'
|
|
80
|
+
import config from '../../utils/config'
|
|
80
81
|
import FormElementMixin from '../../utils/FormElementMixin'
|
|
81
82
|
|
|
82
83
|
export default {
|
|
@@ -109,6 +110,10 @@ export default {
|
|
|
109
110
|
type: [Number, String],
|
|
110
111
|
required: false
|
|
111
112
|
},
|
|
113
|
+
hasCounter: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: () => config.defaultTaginputHasCounter
|
|
116
|
+
},
|
|
112
117
|
field: {
|
|
113
118
|
type: String,
|
|
114
119
|
default: 'value'
|
|
@@ -145,7 +150,7 @@ export default {
|
|
|
145
150
|
},
|
|
146
151
|
data() {
|
|
147
152
|
return {
|
|
148
|
-
tags: this.value || [],
|
|
153
|
+
tags: Array.isArray(this.value) ? this.value.slice(0) : (this.value || []),
|
|
149
154
|
newTag: '',
|
|
150
155
|
_elementRef: 'input',
|
|
151
156
|
_isTaginput: true
|
|
@@ -32,7 +32,7 @@ const ToastProgrammatic = {
|
|
|
32
32
|
|
|
33
33
|
const Plugin = {
|
|
34
34
|
install(Vue) {
|
|
35
|
-
registerComponentProgrammatic(Vue, '
|
|
35
|
+
registerComponentProgrammatic(Vue, 'toast', ToastProgrammatic)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -41,5 +41,5 @@ use(Plugin)
|
|
|
41
41
|
export default Plugin
|
|
42
42
|
|
|
43
43
|
export {
|
|
44
|
-
ToastProgrammatic
|
|
44
|
+
ToastProgrammatic
|
|
45
45
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
'is-multiline': multilined,
|
|
10
10
|
'is-dashed': dashed
|
|
11
11
|
}]"
|
|
12
|
-
:style="{'transition-delay': `${
|
|
12
|
+
:style="{'transition-delay': `${newDelay}ms`}">
|
|
13
13
|
<slot/>
|
|
14
14
|
</span>
|
|
15
15
|
</template>
|
|
@@ -47,10 +47,7 @@ export default {
|
|
|
47
47
|
type: String,
|
|
48
48
|
default: 'is-medium'
|
|
49
49
|
},
|
|
50
|
-
delay:
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0
|
|
53
|
-
}
|
|
50
|
+
delay: Number
|
|
54
51
|
},
|
|
55
52
|
computed: {
|
|
56
53
|
newType() {
|
|
@@ -58,6 +55,9 @@ export default {
|
|
|
58
55
|
},
|
|
59
56
|
newAnimated() {
|
|
60
57
|
return this.animated || config.defaultTooltipAnimated
|
|
58
|
+
},
|
|
59
|
+
newDelay() {
|
|
60
|
+
return this.delay || config.defaultTooltipDelay
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
<input
|
|
23
23
|
ref="input"
|
|
24
24
|
type="file"
|
|
25
|
-
:class="{'file-draggable': dragDrop}"
|
|
26
25
|
v-bind="$attrs"
|
|
27
26
|
:multiple="multiple"
|
|
28
27
|
:accept="accept"
|
|
@@ -65,15 +64,21 @@ export default {
|
|
|
65
64
|
},
|
|
66
65
|
watch: {
|
|
67
66
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
* When v-model is changed:
|
|
68
|
+
* 1. Get value from input file
|
|
69
|
+
* 2. Set internal value.
|
|
70
|
+
* 3. Reset input value if array is empty or when input file is not found in newValue
|
|
71
|
+
* 4. If it's invalid, validate again.
|
|
72
|
+
*/
|
|
73
73
|
value(value) {
|
|
74
|
+
let inputFiles = this.$refs.input.files
|
|
74
75
|
this.newValue = value
|
|
76
|
+
|
|
75
77
|
if (!this.newValue ||
|
|
76
|
-
|
|
78
|
+
(Array.isArray(this.newValue) && this.newValue.length === 0) ||
|
|
79
|
+
!inputFiles[0] ||
|
|
80
|
+
(Array.isArray(this.newValue) &&
|
|
81
|
+
!this.newValue.some(function (a) { return a.name === inputFiles[0].name }))) {
|
|
77
82
|
this.$refs.input.value = null
|
|
78
83
|
}
|
|
79
84
|
!this.isValid && !this.dragDrop && this.checkHtml5Validity()
|
|
@@ -95,7 +100,9 @@ export default {
|
|
|
95
100
|
if (!this.newValue) {
|
|
96
101
|
return
|
|
97
102
|
}
|
|
98
|
-
this.
|
|
103
|
+
if (this.native) {
|
|
104
|
+
this.newValue = null
|
|
105
|
+
}
|
|
99
106
|
} else if (!this.multiple) {
|
|
100
107
|
// only one element in case drag drop mode and isn't multiple
|
|
101
108
|
if (this.dragDrop && value.length !== 1) return
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import './scss/buefy-build.scss'
|
|
3
|
-
|
|
4
1
|
import * as components from './components'
|
|
5
2
|
|
|
6
3
|
import config, { setOptions } from './utils/config'
|
|
@@ -20,10 +17,20 @@ const Buefy = {
|
|
|
20
17
|
setOptions(Object.assign(config, options))
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
registerComponentProgrammatic(Vue, '
|
|
20
|
+
registerComponentProgrammatic(Vue, 'config', BuefyProgrammatic)
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
use(Buefy)
|
|
28
25
|
|
|
29
26
|
export default Buefy
|
|
27
|
+
|
|
28
|
+
// export all components as vue plugin
|
|
29
|
+
export * from './components'
|
|
30
|
+
// export programmatic component
|
|
31
|
+
export { DialogProgrammatic } from './components/dialog'
|
|
32
|
+
export { LoadingProgrammatic } from './components/loading'
|
|
33
|
+
export { ModalProgrammatic } from './components/modal'
|
|
34
|
+
export { NotificationProgrammatic } from './components/notification'
|
|
35
|
+
export { SnackbarProgrammatic } from './components/snackbar'
|
|
36
|
+
export { ToastProgrammatic } from './components/toast'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "node_modules/bulma/sass/utilities/initial-variables";
|
|
2
2
|
@import "utils/_all";
|
|
3
|
-
@import "
|
|
4
|
-
@import "buefy";
|
|
3
|
+
@import "node_modules/bulma/bulma";
|
|
4
|
+
@import "buefy";
|
package/src/scss/buefy.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "utils/_all";
|
|
2
|
+
|
|
1
3
|
@import "components/_autocomplete";
|
|
2
4
|
@import "components/_checkbox";
|
|
3
5
|
@import "components/_clockpicker";
|
|
@@ -14,8 +16,10 @@
|
|
|
14
16
|
@import "components/_notices";
|
|
15
17
|
@import "components/_numberinput";
|
|
16
18
|
@import "components/_pagination";
|
|
19
|
+
@import "components/_progress";
|
|
17
20
|
@import "components/_radio";
|
|
18
21
|
@import "components/_select";
|
|
22
|
+
@import "components/_slider";
|
|
19
23
|
@import "components/_steps";
|
|
20
24
|
@import "components/_switch";
|
|
21
25
|
@import "components/_table";
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
border-bottom: 1px solid $grey-lighter;
|
|
14
14
|
}
|
|
15
15
|
.datepicker-content {
|
|
16
|
-
height: 16.25rem;
|
|
16
|
+
height: 16.25rem;
|
|
17
17
|
}
|
|
18
18
|
.datepicker-footer {
|
|
19
19
|
margin-top: 0.875rem;
|
|
@@ -70,14 +70,53 @@
|
|
|
70
70
|
color: $black;
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
}
|
|
73
|
+
&.is-within-hovered-range {
|
|
74
|
+
&.is-first-hovered {
|
|
75
|
+
background-color: $grey;
|
|
76
|
+
color: $grey-lighter;
|
|
77
|
+
border-bottom-right-radius: 0;
|
|
78
|
+
border-top-right-radius: 0;
|
|
79
|
+
}
|
|
80
|
+
&.is-within-hovered {
|
|
81
|
+
background-color: $background;
|
|
82
|
+
color: $black;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
}
|
|
85
|
+
&.is-last-hovered {
|
|
86
|
+
background-color: $grey;
|
|
87
|
+
color: $grey-lighter;
|
|
88
|
+
border-bottom-left-radius: 0;
|
|
89
|
+
border-top-left-radius: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
73
92
|
}
|
|
74
93
|
&.is-selected {
|
|
75
94
|
background-color: $primary;
|
|
76
95
|
color: $primary-invert;
|
|
96
|
+
|
|
97
|
+
&.is-first-selected {
|
|
98
|
+
background-color: $primary;
|
|
99
|
+
color: $primary-invert;
|
|
100
|
+
border-bottom-right-radius: 0;
|
|
101
|
+
border-top-right-radius: 0;
|
|
102
|
+
}
|
|
103
|
+
&.is-within-selected {
|
|
104
|
+
background-color: rgba($primary, 0.5);
|
|
105
|
+
border-radius: 0;
|
|
106
|
+
}
|
|
107
|
+
&.is-last-selected {
|
|
108
|
+
background-color: $primary;
|
|
109
|
+
color: $primary-invert;
|
|
110
|
+
border-bottom-left-radius: 0;
|
|
111
|
+
border-top-left-radius: 0;
|
|
112
|
+
}
|
|
77
113
|
}
|
|
78
114
|
&.is-nearby:not(.is-selected) {
|
|
79
115
|
color: $grey-light;
|
|
80
116
|
}
|
|
117
|
+
&.is-week-number {
|
|
118
|
+
cursor: default;
|
|
119
|
+
}
|
|
81
120
|
}
|
|
82
121
|
&.has-events {
|
|
83
122
|
.datepicker-cell {
|
|
@@ -134,7 +134,7 @@ $floating-in-height: 3.25em;
|
|
|
134
134
|
margin-top: 1px;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
}
|
|
137
|
+
}
|
|
138
138
|
> :not(.taginput) {
|
|
139
139
|
.is-left.icon,
|
|
140
140
|
.is-right.icon {
|
|
@@ -151,6 +151,57 @@ $floating-in-height: 3.25em;
|
|
|
151
151
|
// 0.275em - 1px _taginput.scss
|
|
152
152
|
padding-top: calc(#{$floating-in-height} / 2 - (#{$size-large} * 3 / 4) / 2 + (0.275em - 1px));
|
|
153
153
|
}
|
|
154
|
+
&.has-numberinput {
|
|
155
|
+
.b-numberinput {
|
|
156
|
+
.control {
|
|
157
|
+
.button {
|
|
158
|
+
height: $floating-in-height;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
&.is-floating-label, &.is-floating-in-label {
|
|
165
|
+
&.has-numberinput {
|
|
166
|
+
.label {
|
|
167
|
+
margin-left: calc(#{$size-normal} * 3);
|
|
168
|
+
}
|
|
169
|
+
&.has-numberinput-is-small {
|
|
170
|
+
.label {
|
|
171
|
+
margin-left: calc(#{$size-small} * 3);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
&.has-numberinput-is-medium {
|
|
175
|
+
.label {
|
|
176
|
+
margin-left: calc(#{$size-medium} * 3);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
&.has-numberinput-is-large {
|
|
180
|
+
.label {
|
|
181
|
+
margin-left: calc(#{$size-large} * 3);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
&.has-numberinput-compact {
|
|
186
|
+
.label {
|
|
187
|
+
margin-left: calc(#{$size-normal} * 2.25);
|
|
188
|
+
}
|
|
189
|
+
&.has-numberinput-is-small {
|
|
190
|
+
.label {
|
|
191
|
+
margin-left: calc(#{$size-small} * 2.25);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
&.has-numberinput-is-medium {
|
|
195
|
+
.label {
|
|
196
|
+
margin-left: calc(#{$size-medium} * 2.25);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
&.has-numberinput-is-large {
|
|
200
|
+
.label {
|
|
201
|
+
margin-left: calc(#{$size-large} * 2.25);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
154
205
|
}
|
|
155
206
|
}
|
|
156
207
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
.progress-wrapper {
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
&:not(:last-child) {
|
|
6
|
+
margin-bottom: 1.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.progress-value {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 50%;
|
|
13
|
+
transform: translateX(-50%);
|
|
14
|
+
font-size: calc(1rem / 1.5);
|
|
15
|
+
line-height: 1rem;
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.progress {
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
|
|
22
|
+
&.is-small {
|
|
23
|
+
+ .progress-value {
|
|
24
|
+
font-size: calc(0.75rem / 1.5);
|
|
25
|
+
line-height: 0.75rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.is-medium {
|
|
29
|
+
+ .progress-value {
|
|
30
|
+
font-size: calc(1.25rem / 1.5);
|
|
31
|
+
line-height: 1.25rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
&.is-large {
|
|
35
|
+
+ .progress-value {
|
|
36
|
+
font-size: calc(1.5rem / 1.5);
|
|
37
|
+
line-height: 1.5rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&::-webkit-progress-value {
|
|
42
|
+
transition: width 0.5s ease;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -60,6 +60,20 @@ $radio-size: 1.25em !default;
|
|
|
60
60
|
transform: scale(.5);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
&:focus {
|
|
64
|
+
+ .check {
|
|
65
|
+
box-shadow: 0 0 0.5em rgba($grey, 0.8);
|
|
66
|
+
}
|
|
67
|
+
&:checked + .check {
|
|
68
|
+
box-shadow: 0 0 0.5em rgba($radio-active-background-color, 0.8);
|
|
69
|
+
@each $name, $pair in $colors {
|
|
70
|
+
$color: nth($pair, 1);
|
|
71
|
+
&.is-#{$name} {
|
|
72
|
+
box-shadow: 0 0 0.5em rgba($color, 0.8);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
63
77
|
}
|
|
64
78
|
.control-label {
|
|
65
79
|
padding-left: 0.5em;
|
|
@@ -78,20 +92,6 @@ $radio-size: 1.25em !default;
|
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
}
|
|
81
|
-
&:focus {
|
|
82
|
-
input[type=radio] + .check {
|
|
83
|
-
box-shadow: 0 0 0.5em rgba($grey, 0.8);
|
|
84
|
-
}
|
|
85
|
-
input[type=radio]:checked + .check {
|
|
86
|
-
box-shadow: 0 0 0.5em rgba($radio-active-background-color, 0.8);
|
|
87
|
-
@each $name, $pair in $colors {
|
|
88
|
-
$color: nth($pair, 1);
|
|
89
|
-
&.is-#{$name} {
|
|
90
|
-
box-shadow: 0 0 0.5em rgba($color, 0.8);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
95
|
&.is-small {
|
|
96
96
|
@include control-small;
|
|
97
97
|
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
$slider-radius: $radius !default;
|
|
2
|
+
$slider-track-background: $grey-lighter !default;
|
|
3
|
+
$slider-track-radius: $radius !default;
|
|
4
|
+
$slider-track-border: 0px solid $grey !default;
|
|
5
|
+
$slider-track-shadow: 0px 0px 0px $grey !default;
|
|
6
|
+
$slider-thumb-background: $white !default;
|
|
7
|
+
$slider-thumb-radius: $radius !default;
|
|
8
|
+
$slider-thumb-border: 1px solid $grey-light !default;
|
|
9
|
+
$slider-thumb-shadow: none !default;
|
|
10
|
+
$slider-thumb-to-track-ratio: 2 !default;
|
|
11
|
+
$slider-tick-to-track-ratio: 0.5 !default;
|
|
12
|
+
$slider-tick-width: 3px !default;
|
|
13
|
+
$slider-tick-radius: $radius !default;
|
|
14
|
+
$slider-tick-background: $grey-light !default;
|
|
15
|
+
$slider-mark-size: 0.75rem !default;
|
|
16
|
+
|
|
17
|
+
@mixin slider-size($size) {
|
|
18
|
+
$track-height: $size / $slider-thumb-to-track-ratio;
|
|
19
|
+
$tick-height: $track-height * $slider-tick-to-track-ratio;
|
|
20
|
+
$thumb-size: $size;
|
|
21
|
+
|
|
22
|
+
.b-slider-track {
|
|
23
|
+
height: $track-height;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.b-slider-thumb {
|
|
27
|
+
height: $thumb-size;
|
|
28
|
+
width: $thumb-size;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.b-slider-tick {
|
|
32
|
+
height: $tick-height;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.b-slider-tick-label {
|
|
36
|
+
font-size: $slider-mark-size;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: calc(#{$track-height} / 2 + 2px);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.b-slider {
|
|
43
|
+
margin: 1em 0;
|
|
44
|
+
background: transparent;
|
|
45
|
+
width: 100%;
|
|
46
|
+
|
|
47
|
+
.b-slider-track {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
position: relative;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
background: $grey-lighter;
|
|
53
|
+
border-radius: $slider-radius;
|
|
54
|
+
}
|
|
55
|
+
.b-slider-fill {
|
|
56
|
+
position: absolute;
|
|
57
|
+
height: 100%;
|
|
58
|
+
box-shadow: $slider-track-shadow;
|
|
59
|
+
background: $slider-track-background;
|
|
60
|
+
border-radius: $slider-track-radius;
|
|
61
|
+
border: $slider-track-border;
|
|
62
|
+
}
|
|
63
|
+
.b-slider-thumb-wrapper {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
position: absolute;
|
|
67
|
+
transform: translateX(-50%);
|
|
68
|
+
cursor: grab;
|
|
69
|
+
|
|
70
|
+
.b-slider-thumb {
|
|
71
|
+
box-shadow: $slider-thumb-shadow;
|
|
72
|
+
border: $slider-thumb-border;
|
|
73
|
+
border-radius: $slider-thumb-radius;
|
|
74
|
+
background: $slider-thumb-background;
|
|
75
|
+
&:focus {
|
|
76
|
+
transform: scale(1.25);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.is-dragging {
|
|
81
|
+
cursor: grabbing;
|
|
82
|
+
.b-slider-thumb {
|
|
83
|
+
transform: scale(1.25);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.is-rounded {
|
|
89
|
+
.b-slider-thumb {
|
|
90
|
+
border-radius: $radius-rounded;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&.is-disabled {
|
|
94
|
+
.b-slider-track {
|
|
95
|
+
cursor: not-allowed;
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
}
|
|
98
|
+
.b-slider-thumb-wrapper {
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
.b-slider-thumb {
|
|
101
|
+
transform: scale(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@include slider-size($size-normal);
|
|
107
|
+
&.is-small {
|
|
108
|
+
@include slider-size($size-small);
|
|
109
|
+
}
|
|
110
|
+
&.is-medium {
|
|
111
|
+
@include slider-size($size-medium);
|
|
112
|
+
}
|
|
113
|
+
&.is-large {
|
|
114
|
+
@include slider-size($size-large);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@each $name, $pair in $colors {
|
|
118
|
+
$color: nth($pair, 1);
|
|
119
|
+
&.is-#{$name} {
|
|
120
|
+
.b-slider-fill {
|
|
121
|
+
background: $color !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.b-slider-tick {
|
|
127
|
+
position: absolute;
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
width: $slider-tick-width;
|
|
131
|
+
transform: translateX(-50%);
|
|
132
|
+
background: $slider-tick-background;
|
|
133
|
+
border-radius: $slider-tick-radius;
|
|
134
|
+
&.is-tick-hidden {
|
|
135
|
+
background: transparent;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|