primevue 2.10.0 → 2.10.1
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/README.md +150 -3
- package/accordion/accordion.common.js +2 -7
- package/accordion/accordion.umd.js +2 -7
- package/accordiontab/accordiontab.common.js +15 -68
- package/accordiontab/accordiontab.umd.js +15 -68
- package/api/Api.d.ts +24 -2
- package/api/Api.js +0 -6
- package/api/FilterService.js +2 -55
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +35 -98
- package/api/api.umd.js +35 -98
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +11 -96
- package/api/filterservice.umd.js +11 -96
- package/api/primeicons.common.js +24 -2
- package/api/primeicons.umd.js +24 -2
- package/api/primeicons.umd.min.js +1 -1
- package/autocomplete/autocomplete.common.js +33 -189
- package/autocomplete/autocomplete.umd.js +33 -189
- package/avatar/avatar.common.js +2 -4
- package/avatar/avatar.umd.js +2 -4
- package/avatargroup/avatargroup.common.js +2 -4
- package/avatargroup/avatargroup.umd.js +2 -4
- package/badge/badge.common.js +2 -4
- package/badge/badge.umd.js +2 -4
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +13 -71
- package/badgedirective/badgedirective.umd.js +13 -71
- package/blockui/blockui.common.js +15 -73
- package/blockui/blockui.umd.js +15 -73
- package/breadcrumb/breadcrumb.common.js +7 -12
- package/breadcrumb/breadcrumb.umd.js +7 -12
- package/breadcrumb/breadcrumbitem.common.js +5 -8
- package/breadcrumb/breadcrumbitem.umd.js +5 -8
- package/button/button.common.js +15 -81
- package/button/button.umd.js +15 -81
- package/calendar/calendar.common.js +109 -498
- package/calendar/calendar.umd.js +109 -498
- package/card/card.common.js +2 -4
- package/card/card.umd.js +2 -4
- package/carousel/carousel.common.js +15 -123
- package/carousel/carousel.umd.js +15 -123
- package/cascadeselect/cascadeselect.common.js +29 -187
- package/cascadeselect/cascadeselect.umd.js +29 -187
- package/cascadeselect/cascadeselectsub.common.js +25 -149
- package/cascadeselect/cascadeselectsub.umd.js +25 -149
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +2 -9
- package/chart/chart.umd.js +2 -9
- package/checkbox/checkbox.common.js +11 -61
- package/checkbox/checkbox.umd.js +11 -61
- package/chip/chip.common.js +2 -4
- package/chip/chip.umd.js +2 -4
- package/chips/chips.common.js +3 -20
- package/chips/chips.umd.js +3 -20
- package/colorpicker/colorpicker.common.js +16 -111
- package/colorpicker/colorpicker.umd.js +16 -111
- package/columngroup/columngroup.common.js +2 -4
- package/columngroup/columngroup.umd.js +2 -4
- package/config/PrimeVue.js +0 -5
- package/config/primevue.common.js +35 -102
- package/config/primevue.umd.js +35 -102
- package/config/primevue.umd.min.js +1 -1
- package/confirmationeventbus/ConfirmationEventBus.js +0 -4
- package/confirmationeventbus/confirmationeventbus.common.js +0 -2
- package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
- package/confirmationservice/ConfirmationService.js +0 -3
- package/confirmationservice/confirmationservice.common.js +0 -2
- package/confirmationservice/confirmationservice.umd.js +0 -2
- package/confirmdialog/confirmdialog.common.js +19 -107
- package/confirmdialog/confirmdialog.umd.js +19 -107
- package/confirmpopup/confirmpopup.common.js +17 -109
- package/confirmpopup/confirmpopup.umd.js +17 -109
- package/contextmenu/contextmenu.common.js +28 -111
- package/contextmenu/contextmenu.umd.js +28 -111
- package/contextmenu/contextmenusub.common.js +18 -90
- package/contextmenu/contextmenusub.umd.js +18 -90
- package/datatable/bodycell.common.js +28 -164
- package/datatable/bodycell.umd.js +28 -164
- package/datatable/columnfilter.common.js +35 -247
- package/datatable/columnfilter.umd.js +35 -247
- package/datatable/datatable.common.js +165 -855
- package/datatable/datatable.umd.js +165 -855
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -5
- package/datatable/footercell.common.js +24 -119
- package/datatable/footercell.umd.js +24 -119
- package/datatable/headercell.common.js +39 -266
- package/datatable/headercell.umd.js +39 -266
- package/datatable/headercheckbox.common.js +2 -4
- package/datatable/headercheckbox.umd.js +2 -4
- package/datatable/rowcheckbox.common.js +2 -4
- package/datatable/rowcheckbox.umd.js +2 -4
- package/datatable/rowradiobutton.common.js +2 -4
- package/datatable/rowradiobutton.umd.js +2 -4
- package/datatable/tablebody.common.js +30 -191
- package/datatable/tablebody.umd.js +30 -191
- package/datatable/tablefooter.common.js +27 -135
- package/datatable/tablefooter.umd.js +27 -135
- package/datatable/tableheader.common.js +41 -273
- package/datatable/tableheader.umd.js +41 -273
- package/datatable/tableloadingbody.common.js +2 -4
- package/datatable/tableloadingbody.umd.js +2 -4
- package/dataview/dataview.common.js +121 -407
- package/dataview/dataview.umd.js +121 -407
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +2 -4
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +2 -4
- package/deferredcontent/deferredcontent.common.js +2 -7
- package/deferredcontent/deferredcontent.umd.js +2 -7
- package/dialog/dialog.common.js +15 -93
- package/dialog/dialog.umd.js +15 -93
- package/divider/divider.common.js +2 -4
- package/divider/divider.umd.js +2 -4
- package/dock/dock.common.js +7 -14
- package/dock/dock.umd.js +7 -14
- package/dock/docksub.common.js +5 -9
- package/dock/docksub.umd.js +5 -9
- package/dropdown/dropdown.common.js +31 -188
- package/dropdown/dropdown.umd.js +31 -188
- package/editor/editor.common.js +8 -21
- package/editor/editor.umd.js +8 -21
- package/fieldset/fieldset.common.js +15 -81
- package/fieldset/fieldset.umd.js +15 -81
- package/fileupload/fileupload.common.js +28 -142
- package/fileupload/fileupload.umd.js +28 -142
- package/fullcalendar/fullcalendar.common.js +10 -17
- package/fullcalendar/fullcalendar.umd.js +10 -17
- package/fullcalendar/fullcalendar.umd.min.js +3 -3
- package/galleria/galleria.common.js +25 -147
- package/galleria/galleria.umd.js +25 -147
- package/galleria/galleriacontent.common.js +23 -137
- package/galleria/galleriacontent.umd.js +23 -137
- package/galleria/galleriaitem.common.js +19 -93
- package/galleria/galleriaitem.umd.js +19 -93
- package/galleria/galleriaitemslot.common.js +4 -10
- package/galleria/galleriaitemslot.umd.js +4 -10
- package/galleria/galleriathumbnails.common.js +19 -125
- package/galleria/galleriathumbnails.umd.js +19 -125
- package/imagepreview/imagepreview.common.js +16 -71
- package/imagepreview/imagepreview.umd.js +16 -71
- package/inlinemessage/inlinemessage.common.js +2 -5
- package/inlinemessage/inlinemessage.umd.js +2 -5
- package/inplace/inplace.common.js +17 -85
- package/inplace/inplace.umd.js +17 -85
- package/inputmask/inputmask.common.js +31 -155
- package/inputmask/inputmask.umd.js +31 -155
- package/inputnumber/InputNumber.vue +2 -2
- package/inputnumber/inputnumber.common.js +73 -233
- package/inputnumber/inputnumber.umd.js +73 -233
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +2 -5
- package/inputswitch/inputswitch.umd.js +2 -5
- package/inputtext/inputtext.common.js +2 -9
- package/inputtext/inputtext.umd.js +2 -9
- package/knob/knob.common.js +4 -5
- package/knob/knob.umd.js +4 -5
- package/listbox/listbox.common.js +27 -156
- package/listbox/listbox.umd.js +27 -156
- package/megamenu/megamenu.common.js +24 -111
- package/megamenu/megamenu.umd.js +24 -111
- package/menu/menu.common.js +20 -107
- package/menu/menu.umd.js +20 -107
- package/menu/menuitem.common.js +18 -84
- package/menu/menuitem.umd.js +18 -84
- package/menubar/demo.html +4 -3
- package/menubar/menubar.common.js +23 -112
- package/menubar/menubar.umd.js +23 -112
- package/menubar/menubarsub.common.js +21 -106
- package/menubar/menubarsub.umd.js +21 -106
- package/message/message.common.js +15 -82
- package/message/message.umd.js +15 -82
- package/multiselect/multiselect.common.js +32 -189
- package/multiselect/multiselect.umd.js +32 -189
- package/orderlist/orderlist.common.js +28 -162
- package/orderlist/orderlist.umd.js +28 -162
- package/organizationchart/organizationchart.common.js +17 -82
- package/organizationchart/organizationchart.umd.js +17 -82
- package/organizationchart/organizationchartnode.common.js +15 -68
- package/organizationchart/organizationchartnode.umd.js +15 -68
- package/overlayeventbus/OverlayEventBus.js +0 -4
- package/overlayeventbus/overlayeventbus.common.js +0 -2
- package/overlayeventbus/overlayeventbus.umd.js +0 -2
- package/overlaypanel/overlaypanel.common.js +15 -104
- package/overlaypanel/overlaypanel.umd.js +15 -104
- package/package.json +2 -2
- package/paginator/currentpagereport.common.js +2 -4
- package/paginator/currentpagereport.umd.js +2 -4
- package/paginator/firstpagelink.common.js +15 -81
- package/paginator/firstpagelink.umd.js +15 -81
- package/paginator/jumptopagedropdown.common.js +33 -194
- package/paginator/jumptopagedropdown.umd.js +33 -194
- package/paginator/jumptopageinput.common.js +79 -241
- package/paginator/jumptopageinput.umd.js +79 -241
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +15 -81
- package/paginator/lastpagelink.umd.js +15 -81
- package/paginator/nextpagelink.common.js +15 -81
- package/paginator/nextpagelink.umd.js +15 -81
- package/paginator/pagelinks.common.js +15 -81
- package/paginator/pagelinks.umd.js +15 -81
- package/paginator/paginator.common.js +119 -399
- package/paginator/paginator.umd.js +119 -399
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +15 -81
- package/paginator/prevpagelink.umd.js +15 -81
- package/paginator/rowsperpagedropdown.common.js +33 -194
- package/paginator/rowsperpagedropdown.umd.js +33 -194
- package/panel/panel.common.js +15 -81
- package/panel/panel.umd.js +15 -81
- package/panelmenu/panelmenu.common.js +10 -22
- package/panelmenu/panelmenu.umd.js +10 -22
- package/panelmenu/panelmenusub.common.js +5 -11
- package/panelmenu/panelmenusub.umd.js +5 -11
- package/password/Password.vue +38 -11
- package/password/password.common.js +117 -179
- package/password/password.umd.js +117 -179
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +28 -194
- package/picklist/picklist.umd.js +28 -194
- package/progressbar/progressbar.common.js +2 -4
- package/progressbar/progressbar.umd.js +2 -4
- package/progressspinner/progressspinner.common.js +2 -5
- package/progressspinner/progressspinner.umd.js +2 -5
- package/radiobutton/radiobutton.common.js +11 -57
- package/radiobutton/radiobutton.umd.js +11 -57
- package/rating/rating.common.js +2 -4
- package/rating/rating.umd.js +2 -4
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +13 -77
- package/ripple/ripple.umd.js +13 -77
- package/row/row.common.js +2 -4
- package/row/row.umd.js +2 -4
- package/scrollpanel/scrollpanel.common.js +18 -83
- package/scrollpanel/scrollpanel.umd.js +18 -83
- package/scrolltop/scrolltop.common.js +15 -71
- package/scrolltop/scrolltop.umd.js +15 -71
- package/selectbutton/selectbutton.common.js +25 -143
- package/selectbutton/selectbutton.umd.js +25 -143
- package/sidebar/Sidebar.d.ts +1 -0
- package/sidebar/Sidebar.vue +3 -0
- package/sidebar/sidebar.common.js +63 -137
- package/sidebar/sidebar.umd.js +63 -137
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +2 -4
- package/skeleton/skeleton.umd.js +2 -4
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +64 -139
- package/slider/slider.umd.js +64 -139
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +63 -152
- package/speeddial/speeddial.umd.js +63 -152
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +24 -115
- package/splitbutton/splitbutton.umd.js +24 -115
- package/splitter/splitter.common.js +13 -84
- package/splitter/splitter.umd.js +13 -84
- package/steps/steps.common.js +5 -9
- package/steps/steps.umd.js +5 -9
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +13 -99
- package/styleclass/styleclass.umd.js +13 -99
- package/tabmenu/tabmenu.common.js +15 -86
- package/tabmenu/tabmenu.umd.js +15 -86
- package/tabpanel/tabpanel.common.js +2 -5
- package/tabpanel/tabpanel.umd.js +2 -5
- package/tabview/tabview.common.js +27 -134
- package/tabview/tabview.umd.js +27 -134
- package/tag/tag.common.js +2 -4
- package/tag/tag.umd.js +2 -4
- package/terminal/terminal.common.js +2 -4
- package/terminal/terminal.umd.js +2 -4
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +2045 -60
- package/textarea/textarea.umd.js +2045 -60
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/tieredmenu.common.js +22 -124
- package/tieredmenu/tieredmenu.umd.js +22 -124
- package/tieredmenu/tieredmenusub.common.js +20 -102
- package/tieredmenu/tieredmenusub.umd.js +20 -102
- package/timeline/timeline.common.js +11 -56
- package/timeline/timeline.umd.js +11 -56
- package/toast/toast.common.js +17 -97
- package/toast/toast.umd.js +17 -97
- package/toast/toastmessage.common.js +15 -82
- package/toast/toastmessage.umd.js +15 -82
- package/toastservice/ToastEventBus.js +0 -3
- package/toastservice/ToastService.js +0 -3
- package/togglebutton/togglebutton.common.js +15 -81
- package/togglebutton/togglebutton.umd.js +15 -81
- package/toolbar/toolbar.common.js +2 -4
- package/toolbar/toolbar.umd.js +2 -4
- package/tooltip/Tooltip.js +4 -84
- package/tooltip/tooltip.common.js +17 -133
- package/tooltip/tooltip.umd.js +17 -133
- package/tree/tree.common.js +36 -211
- package/tree/tree.umd.js +36 -211
- package/tree/treenode.common.js +20 -117
- package/tree/treenode.umd.js +20 -117
- package/treetable/footercell.common.js +24 -119
- package/treetable/footercell.umd.js +24 -119
- package/treetable/headercell.common.js +24 -127
- package/treetable/headercell.umd.js +24 -127
- package/treetable/treetable.common.js +149 -625
- package/treetable/treetable.umd.js +149 -625
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +29 -159
- package/treetable/treetablerow.umd.js +29 -159
- package/treetable/treetablerowloader.common.js +31 -179
- package/treetable/treetablerowloader.umd.js +31 -179
- package/tristatecheckbox/tristatecheckbox.common.js +2 -12
- package/tristatecheckbox/tristatecheckbox.umd.js +2 -12
- package/utils/ConnectedOverlayScrollHandler.js +0 -12
- package/utils/DomHandler.js +13 -61
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +9 -51
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +13 -70
- package/utils/connectedoverlayscrollhandler.umd.js +13 -70
- package/utils/domhandler.common.js +13 -63
- package/utils/domhandler.umd.js +13 -63
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +9 -52
- package/utils/objectutils.umd.js +9 -52
- package/utils/utils.common.js +22 -119
- package/utils/utils.umd.js +22 -119
- package/web-types.json +8 -1
package/README.md
CHANGED
|
@@ -1,9 +1,156 @@
|
|
|
1
1
|
|
|
2
2
|
[](https://opensource.org/licenses/MIT)
|
|
3
3
|
[](https://badge.fury.io/js/primevue)
|
|
4
|
+
[](https://discord.gg/gzKFYnpmCY)
|
|
4
5
|
|
|
5
|
-
[](https://www.primefaces.org/primevue)
|
|
6
|
+
[](https://www.primefaces.org/primevue-v2/#/)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
# PrimeVue
|
|
8
9
|
|
|
9
|
-
Visit the [PrimeVue Website](https://www.primefaces.org/primevue
|
|
10
|
+
Visit the [PrimeVue Website](https://www.primefaces.org/primevue-v2/#/) for general information, demos and documentation.
|
|
11
|
+
|
|
12
|
+
## Downloads
|
|
13
|
+
|
|
14
|
+
PrimeVue is available at npm, if you have an existing application run the following command to download it to your project.
|
|
15
|
+
|
|
16
|
+
````
|
|
17
|
+
npm install primevue@^2 --save
|
|
18
|
+
npm install primeicons --save
|
|
19
|
+
````
|
|
20
|
+
|
|
21
|
+
or
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
yarn add primevue@^2
|
|
25
|
+
yarn add primeicons
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Import
|
|
29
|
+
|
|
30
|
+
### Module
|
|
31
|
+
|
|
32
|
+
```javascript
|
|
33
|
+
import PrimeVue from 'primevue/config';
|
|
34
|
+
import Dialog from 'primevue/dialog';
|
|
35
|
+
|
|
36
|
+
Vue.component('Dialog', Dialog);
|
|
37
|
+
Vue.use(PrimeVue);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Finally you'll be able to utilize the component in your application. See the Styles section to apply styling.
|
|
41
|
+
|
|
42
|
+
```vue
|
|
43
|
+
<Dialog></Dialog>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Script Tag
|
|
47
|
+
|
|
48
|
+
Other alternative is utilizing the components directly within the browser with the ***iife*** build. Note that PrimeVue does not provide a ***umd*** build.
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
<html>
|
|
52
|
+
<head>
|
|
53
|
+
<meta charset="utf-8">
|
|
54
|
+
<title>calendar demo</title>
|
|
55
|
+
<link href="https://unpkg.com/primevue^2/resources/themes/saga-blue/theme.css " rel="stylesheet">
|
|
56
|
+
<link href="https://unpkg.com/primevue^2/resources/primevue.min.css " rel="stylesheet">
|
|
57
|
+
<link href="https://unpkg.com/primeicons/primeicons.css " rel="stylesheet">
|
|
58
|
+
<script src="https://unpkg.com/vue"></script>
|
|
59
|
+
<script src="https://unpkg.com/primevue^2/calendar/calendar.umd.min.js"></script>
|
|
60
|
+
|
|
61
|
+
<div id="app">
|
|
62
|
+
<p-calendar></p-calendar>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<script>
|
|
66
|
+
new Vue({
|
|
67
|
+
components: {
|
|
68
|
+
'p-calendar': calendar
|
|
69
|
+
}
|
|
70
|
+
}).$mount('#app')
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
</head>
|
|
74
|
+
</html>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Configuration
|
|
78
|
+
|
|
79
|
+
### Dependencies
|
|
80
|
+
|
|
81
|
+
Majority of PrimeVue components (95%) are native and there are some exceptions having 3rd party dependencies such as Quill for Editor.
|
|
82
|
+
|
|
83
|
+
In addition, components require PrimeIcons library for icons.
|
|
84
|
+
|
|
85
|
+
```javascript
|
|
86
|
+
dependencies: {
|
|
87
|
+
"vue": "^2.6.10",
|
|
88
|
+
"primeicons": "^6.0.0"
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Styles
|
|
93
|
+
|
|
94
|
+
The css dependencies are as follows, note that you may change the theme with another one of your choice.
|
|
95
|
+
|
|
96
|
+
```css
|
|
97
|
+
primevue/resources/themes/saga-blue/theme.css //theme
|
|
98
|
+
primevue/resources/primevue.min.css //core css
|
|
99
|
+
primeicons/primeicons.css //icons
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
If you are using a bundler such as webpack with a css loader you may also import them to your main application component.
|
|
103
|
+
|
|
104
|
+
```javascript
|
|
105
|
+
import 'primevue/resources/themes/lara-light-indigo/theme.css';
|
|
106
|
+
import 'primevue/resources/primevue.min.css';
|
|
107
|
+
import 'primeicons/primeicons.css';
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Nuxt Integration
|
|
111
|
+
|
|
112
|
+
PrimeVue has a built-in nuxt module. Open ***nuxt.config.js*** and add ***primevue/nuxt*** to the modules section along with your configuration.
|
|
113
|
+
|
|
114
|
+
**nuxt.config.js**
|
|
115
|
+
|
|
116
|
+
Open the nuxt configuration file and add the css dependencies.
|
|
117
|
+
|
|
118
|
+
```javascript
|
|
119
|
+
modules: [
|
|
120
|
+
[
|
|
121
|
+
'primevue/nuxt', {
|
|
122
|
+
theme: string, //name of the theme, defaults to saga-blue
|
|
123
|
+
ripple: boolean, //whether the ripple animation is enabled, defaults to false
|
|
124
|
+
components: [], //an array of components to be registered
|
|
125
|
+
directives: [] //an array of directives to be registered
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Here is an example configuration.
|
|
132
|
+
|
|
133
|
+
```javascript
|
|
134
|
+
modules: [
|
|
135
|
+
[
|
|
136
|
+
'primevue/nuxt', {
|
|
137
|
+
theme: 'md-light-indigo',
|
|
138
|
+
ripple: true,
|
|
139
|
+
components: ['InputText','Button','DataTable','Dialog'],
|
|
140
|
+
directives: ['Tooltip','Badge']
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
An alternative configuration is possible using the ***primevue*** property.
|
|
147
|
+
|
|
148
|
+
```javascript
|
|
149
|
+
modules: ['primevue/nuxt'],
|
|
150
|
+
primevue: {
|
|
151
|
+
theme: 'md-light-indigo',
|
|
152
|
+
ripple: true,
|
|
153
|
+
components: ['InputText','Button','DataTable','Dialog'],
|
|
154
|
+
directives: ['Tooltip','Badge']
|
|
155
|
+
}
|
|
156
|
+
```
|
|
@@ -1359,16 +1359,14 @@ if (typeof window !== 'undefined') {
|
|
|
1359
1359
|
// Indicate to webpack that this file can be concatenated
|
|
1360
1360
|
/* harmony default export */ var setPublicPath = (null);
|
|
1361
1361
|
|
|
1362
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1362
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
|
|
1363
1363
|
var render = function render() {
|
|
1364
1364
|
var _vm = this,
|
|
1365
|
-
|
|
1366
|
-
|
|
1365
|
+
_c = _vm._self._c;
|
|
1367
1366
|
return _c('div', {
|
|
1368
1367
|
staticClass: "p-accordion p-component"
|
|
1369
1368
|
}, [_vm._t("default")], 2);
|
|
1370
1369
|
};
|
|
1371
|
-
|
|
1372
1370
|
var staticRenderFns = [];
|
|
1373
1371
|
|
|
1374
1372
|
// CONCATENATED MODULE: ./src/components/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
|
|
@@ -1404,10 +1402,8 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
1404
1402
|
methods: {
|
|
1405
1403
|
onToggle: function onToggle(event, tab, index, isActive) {
|
|
1406
1404
|
var eventName = isActive ? 'tab-close' : 'tab-open';
|
|
1407
|
-
|
|
1408
1405
|
if (this.multiple) {
|
|
1409
1406
|
var x = this.d_activeIndex;
|
|
1410
|
-
|
|
1411
1407
|
if (x && x.some(function (i) {
|
|
1412
1408
|
return i === index;
|
|
1413
1409
|
})) {
|
|
@@ -1418,7 +1414,6 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
1418
1414
|
} else {
|
|
1419
1415
|
index === this.d_activeIndex ? this.d_activeIndex = null : this.d_activeIndex = index;
|
|
1420
1416
|
}
|
|
1421
|
-
|
|
1422
1417
|
this.$emit('update:activeIndex', this.d_activeIndex);
|
|
1423
1418
|
this.$emit(eventName, {
|
|
1424
1419
|
originalEvent: event,
|
|
@@ -1368,16 +1368,14 @@ if (typeof window !== 'undefined') {
|
|
|
1368
1368
|
// Indicate to webpack that this file can be concatenated
|
|
1369
1369
|
/* harmony default export */ var setPublicPath = (null);
|
|
1370
1370
|
|
|
1371
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1371
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
|
|
1372
1372
|
var render = function render() {
|
|
1373
1373
|
var _vm = this,
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
_c = _vm._self._c;
|
|
1376
1375
|
return _c('div', {
|
|
1377
1376
|
staticClass: "p-accordion p-component"
|
|
1378
1377
|
}, [_vm._t("default")], 2);
|
|
1379
1378
|
};
|
|
1380
|
-
|
|
1381
1379
|
var staticRenderFns = [];
|
|
1382
1380
|
|
|
1383
1381
|
// CONCATENATED MODULE: ./src/components/accordion/Accordion.vue?vue&type=template&id=75d59bb8&
|
|
@@ -1413,10 +1411,8 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
1413
1411
|
methods: {
|
|
1414
1412
|
onToggle: function onToggle(event, tab, index, isActive) {
|
|
1415
1413
|
var eventName = isActive ? 'tab-close' : 'tab-open';
|
|
1416
|
-
|
|
1417
1414
|
if (this.multiple) {
|
|
1418
1415
|
var x = this.d_activeIndex;
|
|
1419
|
-
|
|
1420
1416
|
if (x && x.some(function (i) {
|
|
1421
1417
|
return i === index;
|
|
1422
1418
|
})) {
|
|
@@ -1427,7 +1423,6 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
1427
1423
|
} else {
|
|
1428
1424
|
index === this.d_activeIndex ? this.d_activeIndex = null : this.d_activeIndex = index;
|
|
1429
1425
|
}
|
|
1430
|
-
|
|
1431
1426
|
this.$emit('update:activeIndex', this.d_activeIndex);
|
|
1432
1427
|
this.$emit(eventName, {
|
|
1433
1428
|
originalEvent: event,
|
|
@@ -2973,11 +2973,10 @@ if (typeof window !== 'undefined') {
|
|
|
2973
2973
|
// Indicate to webpack that this file can be concatenated
|
|
2974
2974
|
/* harmony default export */ var setPublicPath = (null);
|
|
2975
2975
|
|
|
2976
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2976
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/accordiontab/AccordionTab.vue?vue&type=template&id=92dc8814&
|
|
2977
2977
|
var render = function render() {
|
|
2978
2978
|
var _vm = this,
|
|
2979
|
-
|
|
2980
|
-
|
|
2979
|
+
_c = _vm._self._c;
|
|
2981
2980
|
return _c('div', {
|
|
2982
2981
|
class: _vm.getTabClass()
|
|
2983
2982
|
}, [_c('div', {
|
|
@@ -3020,7 +3019,6 @@ var render = function render() {
|
|
|
3020
3019
|
staticClass: "p-accordion-content"
|
|
3021
3020
|
}, [_vm._t("default")], 2)])])], 1);
|
|
3022
3021
|
};
|
|
3023
|
-
|
|
3024
3022
|
var staticRenderFns = [];
|
|
3025
3023
|
|
|
3026
3024
|
// CONCATENATED MODULE: ./src/components/accordiontab/AccordionTab.vue?vue&type=template&id=92dc8814&
|
|
@@ -3083,26 +3081,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
3083
3081
|
|
|
3084
3082
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
3085
3083
|
|
|
3086
|
-
|
|
3087
3084
|
function _defineProperties(target, props) {
|
|
3088
3085
|
for (var i = 0; i < props.length; i++) {
|
|
3089
3086
|
var descriptor = props[i];
|
|
3090
3087
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
3091
3088
|
descriptor.configurable = true;
|
|
3092
3089
|
if ("value" in descriptor) descriptor.writable = true;
|
|
3093
|
-
|
|
3094
3090
|
define_property_default()(target, descriptor.key, descriptor);
|
|
3095
3091
|
}
|
|
3096
3092
|
}
|
|
3097
|
-
|
|
3098
3093
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3099
3094
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3100
3095
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3101
|
-
|
|
3102
3096
|
define_property_default()(Constructor, "prototype", {
|
|
3103
3097
|
writable: false
|
|
3104
3098
|
});
|
|
3105
|
-
|
|
3106
3099
|
return Constructor;
|
|
3107
3100
|
}
|
|
3108
3101
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3118,18 +3111,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
3118
3111
|
|
|
3119
3112
|
|
|
3120
3113
|
|
|
3121
|
-
|
|
3122
3114
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3123
|
-
|
|
3124
3115
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3125
|
-
|
|
3126
3116
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3127
|
-
|
|
3128
3117
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
3129
3118
|
function DomHandler() {
|
|
3130
3119
|
_classCallCheck(this, DomHandler);
|
|
3131
3120
|
}
|
|
3132
|
-
|
|
3133
3121
|
_createClass(DomHandler, null, [{
|
|
3134
3122
|
key: "innerWidth",
|
|
3135
3123
|
value: function innerWidth(el) {
|
|
@@ -3163,12 +3151,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3163
3151
|
value: function getOuterWidth(el, margin) {
|
|
3164
3152
|
if (el) {
|
|
3165
3153
|
var width = el.offsetWidth;
|
|
3166
|
-
|
|
3167
3154
|
if (margin) {
|
|
3168
3155
|
var style = getComputedStyle(el);
|
|
3169
3156
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3170
3157
|
}
|
|
3171
|
-
|
|
3172
3158
|
return width;
|
|
3173
3159
|
} else {
|
|
3174
3160
|
return 0;
|
|
@@ -3179,12 +3165,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3179
3165
|
value: function getOuterHeight(el, margin) {
|
|
3180
3166
|
if (el) {
|
|
3181
3167
|
var height = el.offsetHeight;
|
|
3182
|
-
|
|
3183
3168
|
if (margin) {
|
|
3184
3169
|
var style = getComputedStyle(el);
|
|
3185
3170
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3186
3171
|
}
|
|
3187
|
-
|
|
3188
3172
|
return height;
|
|
3189
3173
|
} else {
|
|
3190
3174
|
return 0;
|
|
@@ -3195,12 +3179,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3195
3179
|
value: function getClientHeight(el, margin) {
|
|
3196
3180
|
if (el) {
|
|
3197
3181
|
var height = el.clientHeight;
|
|
3198
|
-
|
|
3199
3182
|
if (margin) {
|
|
3200
3183
|
var style = getComputedStyle(el);
|
|
3201
3184
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3202
3185
|
}
|
|
3203
|
-
|
|
3204
3186
|
return height;
|
|
3205
3187
|
} else {
|
|
3206
3188
|
return 0;
|
|
@@ -3210,11 +3192,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3210
3192
|
key: "getViewport",
|
|
3211
3193
|
value: function getViewport() {
|
|
3212
3194
|
var win = window,
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3195
|
+
d = document,
|
|
3196
|
+
e = d.documentElement,
|
|
3197
|
+
g = d.getElementsByTagName('body')[0],
|
|
3198
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3199
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3218
3200
|
return {
|
|
3219
3201
|
width: w,
|
|
3220
3202
|
height: h
|
|
@@ -3245,12 +3227,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3245
3227
|
value: function index(element) {
|
|
3246
3228
|
var children = element.parentNode.childNodes;
|
|
3247
3229
|
var num = 0;
|
|
3248
|
-
|
|
3249
3230
|
for (var i = 0; i < children.length; i++) {
|
|
3250
3231
|
if (children[i] === element) return num;
|
|
3251
3232
|
if (children[i].nodeType === 1) num++;
|
|
3252
3233
|
}
|
|
3253
|
-
|
|
3254
3234
|
return -1;
|
|
3255
3235
|
}
|
|
3256
3236
|
}, {
|
|
@@ -3258,13 +3238,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3258
3238
|
value: function addMultipleClasses(element, className) {
|
|
3259
3239
|
if (element.classList) {
|
|
3260
3240
|
var styles = className.split(' ');
|
|
3261
|
-
|
|
3262
3241
|
for (var i = 0; i < styles.length; i++) {
|
|
3263
3242
|
element.classList.add(styles[i]);
|
|
3264
3243
|
}
|
|
3265
3244
|
} else {
|
|
3266
3245
|
var _styles = className.split(' ');
|
|
3267
|
-
|
|
3268
3246
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3269
3247
|
element.className += ' ' + _styles[_i];
|
|
3270
3248
|
}
|
|
@@ -3286,7 +3264,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3286
3264
|
if (element) {
|
|
3287
3265
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3288
3266
|
}
|
|
3289
|
-
|
|
3290
3267
|
return false;
|
|
3291
3268
|
}
|
|
3292
3269
|
}, {
|
|
@@ -3331,11 +3308,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3331
3308
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3332
3309
|
var viewport = this.getViewport();
|
|
3333
3310
|
var top, left;
|
|
3334
|
-
|
|
3335
3311
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3336
3312
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3337
3313
|
element.style.transformOrigin = 'bottom';
|
|
3338
|
-
|
|
3339
3314
|
if (top < 0) {
|
|
3340
3315
|
top = windowScrollTop;
|
|
3341
3316
|
}
|
|
@@ -3343,7 +3318,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3343
3318
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3344
3319
|
element.style.transformOrigin = 'top';
|
|
3345
3320
|
}
|
|
3346
|
-
|
|
3347
3321
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3348
3322
|
element.style.top = top + 'px';
|
|
3349
3323
|
element.style.left = left + 'px';
|
|
@@ -3359,11 +3333,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3359
3333
|
var targetOffset = target.getBoundingClientRect();
|
|
3360
3334
|
var viewport = this.getViewport();
|
|
3361
3335
|
var top, left;
|
|
3362
|
-
|
|
3363
3336
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3364
3337
|
top = -1 * elementDimensions.height;
|
|
3365
3338
|
element.style.transformOrigin = 'bottom';
|
|
3366
|
-
|
|
3367
3339
|
if (targetOffset.top + top < 0) {
|
|
3368
3340
|
top = -1 * targetOffset.top;
|
|
3369
3341
|
}
|
|
@@ -3371,7 +3343,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3371
3343
|
top = targetHeight;
|
|
3372
3344
|
element.style.transformOrigin = 'top';
|
|
3373
3345
|
}
|
|
3374
|
-
|
|
3375
3346
|
if (elementDimensions.width > viewport.width) {
|
|
3376
3347
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3377
3348
|
left = targetOffset.left * -1;
|
|
@@ -3382,7 +3353,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3382
3353
|
// element fits on screen (align with target)
|
|
3383
3354
|
left = 0;
|
|
3384
3355
|
}
|
|
3385
|
-
|
|
3386
3356
|
element.style.top = top + 'px';
|
|
3387
3357
|
element.style.left = left + 'px';
|
|
3388
3358
|
}
|
|
@@ -3396,35 +3366,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3396
3366
|
key: "getScrollableParents",
|
|
3397
3367
|
value: function getScrollableParents(element) {
|
|
3398
3368
|
var scrollableParents = [];
|
|
3399
|
-
|
|
3400
3369
|
if (element) {
|
|
3401
3370
|
var parents = this.getParents(element);
|
|
3402
3371
|
var overflowRegex = /(auto|scroll)/;
|
|
3403
|
-
|
|
3404
3372
|
var overflowCheck = function overflowCheck(node) {
|
|
3405
3373
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3406
3374
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3407
3375
|
};
|
|
3408
|
-
|
|
3409
3376
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3410
|
-
|
|
3411
|
-
|
|
3377
|
+
_step;
|
|
3412
3378
|
try {
|
|
3413
3379
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3414
3380
|
var parent = _step.value;
|
|
3415
3381
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3416
|
-
|
|
3417
3382
|
if (scrollSelectors) {
|
|
3418
3383
|
var selectors = scrollSelectors.split(',');
|
|
3419
|
-
|
|
3420
3384
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3421
|
-
|
|
3422
|
-
|
|
3385
|
+
_step2;
|
|
3423
3386
|
try {
|
|
3424
3387
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3425
3388
|
var selector = _step2.value;
|
|
3426
3389
|
var el = this.findSingle(parent, selector);
|
|
3427
|
-
|
|
3428
3390
|
if (el && overflowCheck(el)) {
|
|
3429
3391
|
scrollableParents.push(el);
|
|
3430
3392
|
}
|
|
@@ -3442,7 +3404,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3442
3404
|
_iterator.f();
|
|
3443
3405
|
}
|
|
3444
3406
|
}
|
|
3445
|
-
|
|
3446
3407
|
return scrollableParents;
|
|
3447
3408
|
}
|
|
3448
3409
|
}, {
|
|
@@ -3483,34 +3444,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3483
3444
|
element.style.opacity = 0;
|
|
3484
3445
|
var last = +new Date();
|
|
3485
3446
|
var opacity = 0;
|
|
3486
|
-
|
|
3487
3447
|
var tick = function tick() {
|
|
3488
3448
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3489
3449
|
element.style.opacity = opacity;
|
|
3490
3450
|
last = +new Date();
|
|
3491
|
-
|
|
3492
3451
|
if (+opacity < 1) {
|
|
3493
3452
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3494
3453
|
}
|
|
3495
3454
|
};
|
|
3496
|
-
|
|
3497
3455
|
tick();
|
|
3498
3456
|
}
|
|
3499
3457
|
}, {
|
|
3500
3458
|
key: "fadeOut",
|
|
3501
3459
|
value: function fadeOut(element, ms) {
|
|
3502
3460
|
var opacity = 1,
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3461
|
+
interval = 50,
|
|
3462
|
+
duration = ms,
|
|
3463
|
+
gap = interval / duration;
|
|
3506
3464
|
var fading = setInterval(function () {
|
|
3507
3465
|
opacity -= gap;
|
|
3508
|
-
|
|
3509
3466
|
if (opacity <= 0) {
|
|
3510
3467
|
opacity = 0;
|
|
3511
3468
|
clearInterval(fading);
|
|
3512
3469
|
}
|
|
3513
|
-
|
|
3514
3470
|
element.style.opacity = opacity;
|
|
3515
3471
|
}, interval);
|
|
3516
3472
|
}
|
|
@@ -3537,7 +3493,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3537
3493
|
var scroll = container.scrollTop;
|
|
3538
3494
|
var elementHeight = container.clientHeight;
|
|
3539
3495
|
var itemHeight = this.getOuterHeight(item);
|
|
3540
|
-
|
|
3541
3496
|
if (offset < 0) {
|
|
3542
3497
|
container.scrollTop = scroll + offset;
|
|
3543
3498
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3556,7 +3511,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3556
3511
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3557
3512
|
try {
|
|
3558
3513
|
document['selection'].empty();
|
|
3559
|
-
} catch (error) {
|
|
3514
|
+
} catch (error) {
|
|
3515
|
+
//ignore IE bug
|
|
3560
3516
|
}
|
|
3561
3517
|
}
|
|
3562
3518
|
}
|
|
@@ -3578,19 +3534,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3578
3534
|
if (!this.browser) {
|
|
3579
3535
|
var matched = this.resolveUserAgent();
|
|
3580
3536
|
this.browser = {};
|
|
3581
|
-
|
|
3582
3537
|
if (matched.browser) {
|
|
3583
3538
|
this.browser[matched.browser] = true;
|
|
3584
3539
|
this.browser['version'] = matched.version;
|
|
3585
3540
|
}
|
|
3586
|
-
|
|
3587
3541
|
if (this.browser['chrome']) {
|
|
3588
3542
|
this.browser['webkit'] = true;
|
|
3589
3543
|
} else if (this.browser['webkit']) {
|
|
3590
3544
|
this.browser['safari'] = true;
|
|
3591
3545
|
}
|
|
3592
3546
|
}
|
|
3593
|
-
|
|
3594
3547
|
return this.browser;
|
|
3595
3548
|
}
|
|
3596
3549
|
}, {
|
|
@@ -3618,10 +3571,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3618
3571
|
value: function getFocusableElements(element) {
|
|
3619
3572
|
var focusableElements = DomHandler.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])");
|
|
3620
3573
|
var visibleFocusableElements = [];
|
|
3621
|
-
|
|
3622
3574
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3623
|
-
|
|
3624
|
-
|
|
3575
|
+
_step3;
|
|
3625
3576
|
try {
|
|
3626
3577
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3627
3578
|
var focusableElement = _step3.value;
|
|
@@ -3632,7 +3583,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3632
3583
|
} finally {
|
|
3633
3584
|
_iterator3.f();
|
|
3634
3585
|
}
|
|
3635
|
-
|
|
3636
3586
|
return visibleFocusableElements;
|
|
3637
3587
|
}
|
|
3638
3588
|
}, {
|
|
@@ -3675,11 +3625,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3675
3625
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3676
3626
|
}
|
|
3677
3627
|
}]);
|
|
3678
|
-
|
|
3679
3628
|
return DomHandler;
|
|
3680
3629
|
}();
|
|
3681
3630
|
|
|
3682
|
-
|
|
3683
3631
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/accordiontab/AccordionTab.vue?vue&type=script&lang=js&
|
|
3684
3632
|
|
|
3685
3633
|
|
|
@@ -3698,7 +3646,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3698
3646
|
},
|
|
3699
3647
|
created: function created() {
|
|
3700
3648
|
var _this = this;
|
|
3701
|
-
|
|
3702
3649
|
this.$parent.$children.forEach(function (child, i) {
|
|
3703
3650
|
if (child === _this) _this.index = i;
|
|
3704
3651
|
});
|