cy-element-ui 1.0.26 → 1.0.28
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 +280 -280
- package/LICENSE +21 -21
- package/README.md +162 -171
- package/lib/alert.js +203 -211
- package/lib/aside.js +80 -80
- package/lib/autocomplete.js +465 -4583
- package/lib/avatar.js +126 -152
- package/lib/backtop.js +198 -190
- package/lib/badge.js +134 -128
- package/lib/breadcrumb-item.js +122 -146
- package/lib/breadcrumb.js +96 -97
- package/lib/button-group.js +65 -68
- package/lib/button.js +87 -67
- package/lib/calendar.js +605 -2416
- package/lib/card.js +100 -101
- package/lib/carousel-item.js +210 -854
- package/lib/carousel.js +411 -578
- package/lib/cascader-panel.js +1153 -3542
- package/lib/cascader.js +893 -7284
- package/lib/checkbox-button.js +290 -337
- package/lib/checkbox-group.js +105 -176
- package/lib/checkbox.js +220 -240
- package/lib/col.js +68 -113
- package/lib/collapse-item.js +162 -1250
- package/lib/collapse.js +123 -163
- package/lib/color-picker.js +1242 -5200
- package/lib/container.js +88 -98
- package/lib/date-picker.js +4023 -8450
- package/lib/descriptions-item.js +32 -53
- package/lib/descriptions.js +334 -697
- package/lib/dialog.js +247 -1721
- package/lib/directives/mousewheel.js +20 -14
- package/lib/directives/repeat-click.js +30 -27
- package/lib/divider.js +116 -109
- package/lib/drawer.js +316 -1110
- package/lib/dropdown-item.js +111 -159
- package/lib/dropdown-menu.js +117 -2445
- package/lib/dropdown.js +392 -1795
- package/lib/element-ui.common.js +41037 -46119
- package/lib/empty.js +203 -1070
- package/lib/footer.js +80 -80
- package/lib/form-item.js +467 -1222
- package/lib/form.js +258 -326
- package/lib/header.js +80 -80
- package/lib/icon.js +68 -71
- package/lib/image.js +743 -2375
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +150 -814
- package/lib/input-number.js +444 -2177
- package/lib/input.js +517 -1197
- package/lib/link.js +135 -117
- package/lib/loading.js +372 -1139
- package/lib/locale/format.js +53 -42
- package/lib/locale/index.js +52 -38
- package/lib/locale/lang/af-ZA.js +123 -130
- package/lib/locale/lang/ar.js +122 -123
- package/lib/locale/lang/az.js +121 -122
- package/lib/locale/lang/bg.js +123 -133
- package/lib/locale/lang/bn.js +121 -121
- package/lib/locale/lang/ca.js +122 -123
- package/lib/locale/lang/cs-CZ.js +125 -127
- package/lib/locale/lang/da.js +122 -124
- package/lib/locale/lang/de.js +124 -126
- package/lib/locale/lang/ee.js +123 -125
- package/lib/locale/lang/el.js +123 -125
- package/lib/locale/lang/en.js +123 -127
- package/lib/locale/lang/eo.js +123 -125
- package/lib/locale/lang/es.js +122 -123
- package/lib/locale/lang/eu.js +123 -128
- package/lib/locale/lang/fa.js +123 -125
- package/lib/locale/lang/fi.js +123 -125
- package/lib/locale/lang/fr.js +122 -125
- package/lib/locale/lang/he.js +123 -130
- package/lib/locale/lang/hr.js +123 -128
- package/lib/locale/lang/hu.js +122 -124
- package/lib/locale/lang/hy-AM.js +123 -125
- package/lib/locale/lang/id.js +123 -124
- package/lib/locale/lang/is.js +123 -124
- package/lib/locale/lang/it.js +122 -123
- package/lib/locale/lang/ja.js +123 -125
- package/lib/locale/lang/kg.js +123 -125
- package/lib/locale/lang/km.js +123 -124
- package/lib/locale/lang/ko.js +123 -125
- package/lib/locale/lang/ku.js +123 -125
- package/lib/locale/lang/kz.js +123 -125
- package/lib/locale/lang/lo-LA.js +121 -121
- package/lib/locale/lang/lt.js +123 -125
- package/lib/locale/lang/lv.js +123 -125
- package/lib/locale/lang/mn.js +123 -125
- package/lib/locale/lang/ms.js +122 -123
- package/lib/locale/lang/nb-NO.js +122 -123
- package/lib/locale/lang/nl.js +123 -125
- package/lib/locale/lang/pl.js +123 -125
- package/lib/locale/lang/pt-br.js +123 -124
- package/lib/locale/lang/pt.js +123 -133
- package/lib/locale/lang/ro.js +123 -125
- package/lib/locale/lang/ru-RU.js +123 -124
- package/lib/locale/lang/si.js +123 -127
- package/lib/locale/lang/sk.js +125 -126
- package/lib/locale/lang/sl.js +123 -125
- package/lib/locale/lang/sr-Latn.js +123 -124
- package/lib/locale/lang/sr.js +123 -128
- package/lib/locale/lang/sv-SE.js +123 -128
- package/lib/locale/lang/sw.js +123 -127
- package/lib/locale/lang/ta.js +122 -130
- package/lib/locale/lang/th.js +123 -127
- package/lib/locale/lang/tk.js +123 -129
- package/lib/locale/lang/tr-TR.js +123 -125
- package/lib/locale/lang/ua.js +123 -124
- package/lib/locale/lang/ug-CN.js +123 -124
- package/lib/locale/lang/uz-UZ.js +123 -124
- package/lib/locale/lang/vi.js +123 -124
- package/lib/locale/lang/zh-CN.js +123 -124
- package/lib/locale/lang/zh-TW.js +123 -128
- package/lib/main.js +67 -69
- package/lib/menu-item-group.js +111 -105
- package/lib/menu-item.js +259 -3549
- package/lib/menu.js +559 -1697
- package/lib/message-box.js +693 -3422
- package/lib/message.js +229 -1663
- package/lib/mixins/emitter.js +30 -28
- package/lib/mixins/focus.js +11 -10
- package/lib/mixins/locale.js +14 -12
- package/lib/mixins/migrating.js +65 -58
- package/lib/notification.js +269 -1693
- package/lib/option-group.js +139 -190
- package/lib/option.js +192 -941
- package/lib/page-header.js +92 -1014
- package/lib/pagination.js +677 -6969
- package/lib/popconfirm.js +223 -3936
- package/lib/popover.js +368 -3242
- package/lib/progress.js +244 -254
- package/lib/radio-button.js +226 -259
- package/lib/radio-group.js +186 -249
- package/lib/radio.js +253 -263
- package/lib/rate.js +416 -1395
- package/lib/result.js +233 -189
- package/lib/row.js +41 -58
- package/lib/scrollbar.js +278 -1331
- package/lib/select.js +1347 -5731
- package/lib/skeleton-item.js +145 -133
- package/lib/skeleton.js +172 -163
- package/lib/slider.js +702 -5143
- package/lib/spinner.js +101 -113
- package/lib/{subTitle.js → statistic.js} +335 -94
- package/lib/step.js +311 -274
- package/lib/steps.js +117 -854
- package/lib/submenu.js +448 -2886
- package/lib/switch.js +204 -1036
- package/lib/tab-pane.js +135 -125
- package/lib/table-column.js +751 -1975
- package/lib/table.js +3930 -7956
- package/lib/tabs.js +605 -1441
- package/lib/tag.js +68 -73
- package/lib/theme-chalk/README.md +33 -33
- package/lib/theme-chalk/package.json +35 -35
- package/lib/theme-chalk/src/alert.scss +147 -147
- package/lib/theme-chalk/src/aside.scss +7 -7
- package/lib/theme-chalk/src/autocomplete.scss +80 -80
- package/lib/theme-chalk/src/avatar.scss +51 -51
- package/lib/theme-chalk/src/backtop.scss +22 -22
- package/lib/theme-chalk/src/badge.scss +57 -57
- package/lib/theme-chalk/src/base.scss +2 -2
- package/lib/theme-chalk/src/breadcrumb.scss +55 -55
- package/lib/theme-chalk/src/button.scss +262 -262
- package/lib/theme-chalk/src/calendar.scss +79 -79
- package/lib/theme-chalk/src/card.scss +32 -32
- package/lib/theme-chalk/src/carousel-item.scss +50 -50
- package/lib/theme-chalk/src/carousel.scss +161 -161
- package/lib/theme-chalk/src/cascader-panel.scss +120 -120
- package/lib/theme-chalk/src/cascader.scss +182 -182
- package/lib/theme-chalk/src/checkbox.scss +359 -359
- package/lib/theme-chalk/src/col.scss +156 -156
- package/lib/theme-chalk/src/collapse.scss +63 -63
- package/lib/theme-chalk/src/color-picker.scss +384 -384
- package/lib/theme-chalk/src/common/popup.scss +42 -42
- package/lib/theme-chalk/src/common/transition.scss +99 -99
- package/lib/theme-chalk/src/common/var.scss +1028 -1028
- package/lib/theme-chalk/src/container.scss +14 -14
- package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -97
- package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
- package/lib/theme-chalk/src/date-picker/date-table.scss +151 -151
- package/lib/theme-chalk/src/date-picker/month-table.scss +82 -82
- package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -117
- package/lib/theme-chalk/src/date-picker/picker.scss +197 -197
- package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -85
- package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
- package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -110
- package/lib/theme-chalk/src/date-picker/year-table.scss +51 -51
- package/lib/theme-chalk/src/date-picker.scss +11 -11
- package/lib/theme-chalk/src/descriptions-item.scss +42 -42
- package/lib/theme-chalk/src/descriptions.scss +111 -111
- package/lib/theme-chalk/src/dialog.scss +123 -123
- package/lib/theme-chalk/src/display.scss +12 -12
- package/lib/theme-chalk/src/divider.scss +47 -47
- package/lib/theme-chalk/src/drawer.scss +219 -219
- package/lib/theme-chalk/src/dropdown.scss +182 -182
- package/lib/theme-chalk/src/empty.scss +45 -45
- package/lib/theme-chalk/src/footer.scss +8 -8
- package/lib/theme-chalk/src/form.scss +167 -167
- package/lib/theme-chalk/src/header.scss +8 -8
- package/lib/theme-chalk/src/icon.scss +1167 -1167
- package/lib/theme-chalk/src/image.scss +179 -179
- package/lib/theme-chalk/src/index.scss +90 -89
- package/lib/theme-chalk/src/input-number.scss +180 -180
- package/lib/theme-chalk/src/input.scss +360 -360
- package/lib/theme-chalk/src/link.scss +81 -81
- package/lib/theme-chalk/src/loading.scss +96 -96
- package/lib/theme-chalk/src/main.scss +12 -12
- package/lib/theme-chalk/src/menu.scss +289 -289
- package/lib/theme-chalk/src/message-box.scss +226 -226
- package/lib/theme-chalk/src/message.scss +120 -120
- package/lib/theme-chalk/src/mixins/_button.scss +81 -81
- package/lib/theme-chalk/src/mixins/config.scss +4 -4
- package/lib/theme-chalk/src/mixins/function.scss +44 -44
- package/lib/theme-chalk/src/mixins/mixins.scss +190 -190
- package/lib/theme-chalk/src/mixins/utils.scss +39 -39
- package/lib/theme-chalk/src/notification.scss +99 -99
- package/lib/theme-chalk/src/option-group.scss +42 -42
- package/lib/theme-chalk/src/option.scss +36 -36
- package/lib/theme-chalk/src/page-header.scss +41 -41
- package/lib/theme-chalk/src/pagination.scss +295 -295
- package/lib/theme-chalk/src/popconfirm.scss +16 -16
- package/lib/theme-chalk/src/popover.scss +40 -40
- package/lib/theme-chalk/src/popper.scss +101 -101
- package/lib/theme-chalk/src/progress.scss +141 -141
- package/lib/theme-chalk/src/radio-button.scss +113 -113
- package/lib/theme-chalk/src/radio-group.scss +9 -9
- package/lib/theme-chalk/src/radio.scss +199 -199
- package/lib/theme-chalk/src/rate.scss +49 -49
- package/lib/theme-chalk/src/reset.scss +79 -79
- package/lib/theme-chalk/src/result.scss +61 -61
- package/lib/theme-chalk/src/row.scss +43 -43
- package/lib/theme-chalk/src/scrollbar.scss +72 -72
- package/lib/theme-chalk/src/select-dropdown.scss +62 -62
- package/lib/theme-chalk/src/select.scss +152 -152
- package/lib/theme-chalk/src/skeleton-item.scss +84 -84
- package/lib/theme-chalk/src/skeleton.scss +40 -40
- package/lib/theme-chalk/src/slider.scss +250 -250
- package/lib/theme-chalk/src/spinner.scss +44 -44
- package/lib/theme-chalk/src/statistic.scss +38 -0
- package/lib/theme-chalk/src/step.scss +317 -317
- package/lib/theme-chalk/src/steps.scss +20 -20
- package/lib/theme-chalk/src/switch.scss +116 -116
- package/lib/theme-chalk/src/table-column.scss +97 -97
- package/lib/theme-chalk/src/table.scss +564 -564
- package/lib/theme-chalk/src/tabs.scss +602 -602
- package/lib/theme-chalk/src/tag.scss +163 -163
- package/lib/theme-chalk/src/time-picker.scss +8 -8
- package/lib/theme-chalk/src/time-select.scss +37 -37
- package/lib/theme-chalk/src/timeline-item.scss +86 -86
- package/lib/theme-chalk/src/timeline.scss +14 -14
- package/lib/theme-chalk/src/tooltip.scss +141 -141
- package/lib/theme-chalk/src/transfer.scss +227 -227
- package/lib/theme-chalk/src/tree.scss +123 -123
- package/lib/theme-chalk/src/upload.scss +603 -603
- package/lib/time-picker.js +1837 -6690
- package/lib/time-select.js +1240 -6327
- package/lib/timeline-item.js +174 -133
- package/lib/timeline.js +39 -43
- package/lib/tooltip.js +287 -3184
- package/lib/transfer.js +625 -2929
- package/lib/transitions/collapse-transition.js +87 -69
- package/lib/tree.js +1741 -3248
- package/lib/treeselect.js +682 -0
- package/lib/umd/locale/af-ZA.js +138 -145
- package/lib/umd/locale/ar.js +137 -138
- package/lib/umd/locale/az.js +137 -139
- package/lib/umd/locale/bg.js +138 -148
- package/lib/umd/locale/bn.js +137 -138
- package/lib/umd/locale/ca.js +137 -138
- package/lib/umd/locale/cs-CZ.js +140 -142
- package/lib/umd/locale/da.js +137 -139
- package/lib/umd/locale/de.js +139 -141
- package/lib/umd/locale/ee.js +138 -140
- package/lib/umd/locale/el.js +138 -140
- package/lib/umd/locale/en.js +138 -142
- package/lib/umd/locale/eo.js +138 -140
- package/lib/umd/locale/es.js +137 -138
- package/lib/umd/locale/eu.js +138 -143
- package/lib/umd/locale/fa.js +138 -140
- package/lib/umd/locale/fi.js +138 -140
- package/lib/umd/locale/fr.js +137 -140
- package/lib/umd/locale/he.js +138 -145
- package/lib/umd/locale/hr.js +138 -143
- package/lib/umd/locale/hu.js +137 -139
- package/lib/umd/locale/hy-AM.js +138 -140
- package/lib/umd/locale/id.js +138 -139
- package/lib/umd/locale/is.js +138 -139
- package/lib/umd/locale/it.js +137 -138
- package/lib/umd/locale/ja.js +138 -140
- package/lib/umd/locale/kg.js +138 -140
- package/lib/umd/locale/km.js +138 -139
- package/lib/umd/locale/ko.js +138 -140
- package/lib/umd/locale/ku.js +138 -140
- package/lib/umd/locale/kz.js +138 -140
- package/lib/umd/locale/lo-LA.js +137 -138
- package/lib/umd/locale/lt.js +138 -140
- package/lib/umd/locale/lv.js +138 -140
- package/lib/umd/locale/mn.js +138 -140
- package/lib/umd/locale/ms.js +137 -138
- package/lib/umd/locale/nb-NO.js +137 -138
- package/lib/umd/locale/nl.js +138 -140
- package/lib/umd/locale/pl.js +138 -140
- package/lib/umd/locale/pt-br.js +138 -139
- package/lib/umd/locale/pt.js +138 -148
- package/lib/umd/locale/ro.js +138 -140
- package/lib/umd/locale/ru-RU.js +138 -139
- package/lib/umd/locale/si.js +138 -142
- package/lib/umd/locale/sk.js +140 -141
- package/lib/umd/locale/sl.js +138 -140
- package/lib/umd/locale/sr-Latn.js +138 -139
- package/lib/umd/locale/sr.js +138 -143
- package/lib/umd/locale/sv-SE.js +138 -143
- package/lib/umd/locale/sw.js +138 -142
- package/lib/umd/locale/ta.js +137 -145
- package/lib/umd/locale/th.js +138 -142
- package/lib/umd/locale/tk.js +138 -144
- package/lib/umd/locale/tr-TR.js +138 -140
- package/lib/umd/locale/ua.js +138 -139
- package/lib/umd/locale/ug-CN.js +138 -139
- package/lib/umd/locale/uz-UZ.js +138 -139
- package/lib/umd/locale/vi.js +138 -139
- package/lib/umd/locale/zh-CN.js +138 -139
- package/lib/umd/locale/zh-TW.js +138 -143
- package/lib/upload.js +989 -2375
- package/lib/utils/after-leave.js +33 -36
- package/lib/utils/aria-dialog.js +89 -71
- package/lib/utils/aria-utils.js +101 -92
- package/lib/utils/clickoutside.js +67 -59
- package/lib/utils/date-util.js +241 -198
- package/lib/utils/date.js +369 -14
- package/lib/utils/dom.js +183 -167
- package/lib/utils/lodash.js +9421 -13
- package/lib/utils/menu/aria-menubar.js +18 -13
- package/lib/utils/menu/aria-menuitem.js +54 -43
- package/lib/utils/menu/aria-submenu.js +59 -50
- package/lib/utils/merge.js +17 -15
- package/lib/utils/popper.js +1196 -1167
- package/lib/utils/popup/index.js +230 -186
- package/lib/utils/popup/popup-manager.js +191 -159
- package/lib/utils/resize-event.js +44 -29
- package/lib/utils/scroll-into-view.js +33 -25
- package/lib/utils/scrollbar-width.js +36 -25
- package/lib/utils/shared.js +3 -3
- package/lib/utils/types.js +35 -22
- package/lib/utils/util.js +221 -187
- package/lib/utils/vdom.js +9 -5
- package/lib/utils/vue-popper.js +195 -173
- package/package.json +156 -160
- package/packages/alert/index.js +8 -8
- package/packages/alert/src/main.vue +94 -94
- package/packages/aside/index.js +8 -8
- package/packages/aside/src/main.vue +20 -20
- package/packages/autocomplete/index.js +8 -8
- package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
- package/packages/autocomplete/src/autocomplete.vue +285 -285
- package/packages/avatar/index.js +8 -8
- package/packages/avatar/src/main.vue +107 -107
- package/packages/backtop/index.js +8 -8
- package/packages/backtop/src/main.vue +110 -110
- package/packages/badge/index.js +8 -8
- package/packages/badge/src/main.vue +53 -53
- package/packages/breadcrumb/index.js +8 -8
- package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
- package/packages/breadcrumb/src/breadcrumb.vue +34 -34
- package/packages/breadcrumb-item/index.js +8 -8
- package/packages/button/index.js +8 -8
- package/packages/button/src/button-group.vue +10 -10
- package/packages/button/src/button.vue +78 -78
- package/packages/button-group/index.js +8 -8
- package/packages/calendar/index.js +8 -8
- package/packages/calendar/src/date-table.vue +200 -200
- package/packages/calendar/src/main.vue +280 -280
- package/packages/card/index.js +8 -8
- package/packages/card/src/main.vue +23 -23
- package/packages/carousel/index.js +8 -8
- package/packages/carousel/src/item.vue +138 -138
- package/packages/carousel/src/main.vue +315 -315
- package/packages/carousel-item/index.js +8 -8
- package/packages/cascader/index.js +8 -8
- package/packages/cascader/src/cascader.vue +663 -663
- package/packages/cascader-panel/index.js +8 -8
- package/packages/cascader-panel/src/cascader-menu.vue +138 -138
- package/packages/cascader-panel/src/cascader-node.vue +246 -246
- package/packages/cascader-panel/src/cascader-panel.vue +391 -391
- package/packages/cascader-panel/src/node.js +166 -165
- package/packages/cascader-panel/src/store.js +58 -57
- package/packages/checkbox/index.js +8 -8
- package/packages/checkbox/src/checkbox-button.vue +199 -199
- package/packages/checkbox/src/checkbox-group.vue +48 -48
- package/packages/checkbox/src/checkbox.vue +222 -222
- package/packages/checkbox-button/index.js +8 -8
- package/packages/checkbox-group/index.js +8 -8
- package/packages/col/index.js +9 -9
- package/packages/col/src/col.js +71 -71
- package/packages/collapse/index.js +9 -9
- package/packages/collapse/src/collapse-item.vue +114 -114
- package/packages/collapse/src/collapse.vue +73 -73
- package/packages/collapse-item/index.js +8 -8
- package/packages/color-picker/index.js +8 -8
- package/packages/color-picker/src/color.js +317 -317
- package/packages/color-picker/src/components/alpha-slider.vue +132 -132
- package/packages/color-picker/src/components/hue-slider.vue +123 -123
- package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
- package/packages/color-picker/src/components/predefine.vue +61 -61
- package/packages/color-picker/src/components/sv-panel.vue +100 -100
- package/packages/color-picker/src/draggable.js +36 -36
- package/packages/color-picker/src/main.vue +188 -188
- package/packages/container/index.js +8 -8
- package/packages/container/src/main.vue +33 -33
- package/packages/date-picker/index.js +8 -8
- package/packages/date-picker/src/basic/date-table.vue +441 -441
- package/packages/date-picker/src/basic/month-table.vue +269 -268
- package/packages/date-picker/src/basic/time-spinner.vue +304 -304
- package/packages/date-picker/src/basic/year-table.vue +111 -111
- package/packages/date-picker/src/panel/date-range.vue +680 -680
- package/packages/date-picker/src/panel/date.vue +609 -609
- package/packages/date-picker/src/panel/month-range.vue +289 -289
- package/packages/date-picker/src/panel/time-range.vue +248 -248
- package/packages/date-picker/src/panel/time-select.vue +178 -178
- package/packages/date-picker/src/panel/time.vue +186 -186
- package/packages/date-picker/src/picker/date-picker.js +43 -43
- package/packages/date-picker/src/picker/time-picker.js +39 -39
- package/packages/date-picker/src/picker/time-select.js +21 -21
- package/packages/date-picker/src/picker.vue +956 -956
- package/packages/descriptions/index.js +8 -8
- package/packages/descriptions/src/descriptions-item.js +30 -30
- package/packages/descriptions/src/descriptions-row.js +116 -116
- package/packages/descriptions/src/index.js +180 -180
- package/packages/descriptions-item/index.js +8 -8
- package/packages/dialog/index.js +8 -8
- package/packages/dialog/src/component.vue +212 -212
- package/packages/divider/index.js +8 -8
- package/packages/divider/src/main.vue +37 -37
- package/packages/drawer/index.js +8 -8
- package/packages/drawer/src/main.vue +205 -205
- package/packages/dropdown/index.js +8 -8
- package/packages/dropdown/src/dropdown-item.vue +37 -37
- package/packages/dropdown/src/dropdown-menu.vue +63 -63
- package/packages/dropdown/src/dropdown.vue +293 -293
- package/packages/dropdown-item/index.js +8 -8
- package/packages/dropdown-menu/index.js +8 -8
- package/packages/empty/index.js +7 -7
- package/packages/empty/src/img-empty.vue +132 -132
- package/packages/empty/src/index.vue +50 -50
- package/packages/footer/index.js +8 -8
- package/packages/footer/src/main.vue +20 -20
- package/packages/form/index.js +8 -8
- package/packages/form/src/form-item.vue +324 -324
- package/packages/form/src/form.vue +182 -182
- package/packages/form/src/label-wrap.vue +78 -78
- package/packages/form-item/index.js +8 -8
- package/packages/header/index.js +8 -8
- package/packages/header/src/main.vue +20 -20
- package/packages/icon/index.js +8 -8
- package/packages/icon/src/icon.vue +13 -13
- package/packages/image/index.js +8 -8
- package/packages/image/src/image-viewer.vue +330 -330
- package/packages/image/src/main.vue +249 -249
- package/packages/infinite-scroll/index.js +8 -8
- package/packages/infinite-scroll/src/main.js +150 -149
- package/packages/input/index.js +8 -8
- package/packages/input/src/calcTextareaHeight.js +104 -104
- package/packages/input/src/input.vue +440 -440
- package/packages/input-number/index.js +8 -8
- package/packages/input-number/src/input-number.vue +283 -283
- package/packages/link/index.js +8 -8
- package/packages/link/src/main.vue +53 -53
- package/packages/loading/index.js +11 -11
- package/packages/loading/src/directive.js +133 -133
- package/packages/loading/src/index.js +106 -106
- package/packages/loading/src/loading.vue +41 -41
- package/packages/main/index.js +8 -8
- package/packages/main/src/main.vue +12 -12
- package/packages/menu/index.js +8 -8
- package/packages/menu/src/menu-item-group.vue +45 -45
- package/packages/menu/src/menu-item.vue +112 -112
- package/packages/menu/src/menu-mixin.js +44 -44
- package/packages/menu/src/menu.vue +325 -325
- package/packages/menu/src/submenu.vue +349 -348
- package/packages/menu-item/index.js +8 -8
- package/packages/menu-item-group/index.js +8 -8
- package/packages/message/index.js +2 -2
- package/packages/message/src/main.js +91 -91
- package/packages/message/src/main.vue +117 -117
- package/packages/message-box/index.js +2 -2
- package/packages/message-box/src/main.js +216 -216
- package/packages/message-box/src/main.vue +332 -332
- package/packages/notification/index.js +2 -2
- package/packages/notification/src/main.js +94 -94
- package/packages/notification/src/main.vue +152 -152
- package/packages/option/index.js +8 -8
- package/packages/option-group/index.js +8 -8
- package/packages/page-header/index.js +8 -8
- package/packages/page-header/src/main.vue +30 -30
- package/packages/pagination/index.js +8 -8
- package/packages/pagination/src/pager.vue +163 -163
- package/packages/pagination/src/pagination.js +386 -386
- package/packages/popconfirm/index.js +8 -8
- package/packages/popconfirm/src/main.vue +104 -104
- package/packages/popover/index.js +14 -14
- package/packages/popover/src/directive.js +20 -20
- package/packages/popover/src/main.vue +237 -237
- package/packages/progress/index.js +8 -8
- package/packages/progress/src/progress.vue +235 -235
- package/packages/radio/index.js +8 -8
- package/packages/radio/src/radio-button.vue +115 -115
- package/packages/radio/src/radio-group.vue +113 -113
- package/packages/radio/src/radio.vue +134 -134
- package/packages/radio-button/index.js +8 -8
- package/packages/radio-group/index.js +8 -8
- package/packages/rate/index.js +8 -8
- package/packages/rate/src/main.vue +348 -348
- package/packages/result/index.js +8 -8
- package/packages/result/src/icon-error.vue +13 -13
- package/packages/result/src/icon-info.vue +13 -13
- package/packages/result/src/icon-success.vue +13 -13
- package/packages/result/src/icon-warning.vue +13 -13
- package/packages/result/src/index.vue +65 -65
- package/packages/row/index.js +9 -9
- package/packages/row/src/row.js +44 -44
- package/packages/scrollbar/index.js +8 -8
- package/packages/scrollbar/src/bar.js +92 -92
- package/packages/scrollbar/src/main.js +130 -130
- package/packages/scrollbar/src/util.js +34 -34
- package/packages/select/index.js +8 -8
- package/packages/select/src/navigation-mixin.js +54 -54
- package/packages/select/src/option-group.vue +60 -60
- package/packages/select/src/option.vue +168 -168
- package/packages/select/src/select-dropdown.vue +74 -74
- package/packages/select/src/select.vue +900 -900
- package/packages/skeleton/index.js +8 -8
- package/packages/skeleton/src/img-placeholder.vue +16 -16
- package/packages/skeleton/src/index.vue +76 -76
- package/packages/skeleton/src/item.vue +22 -22
- package/packages/skeleton-item/index.js +8 -8
- package/packages/slider/index.js +8 -8
- package/packages/slider/src/button.vue +238 -238
- package/packages/slider/src/main.vue +427 -427
- package/packages/slider/src/marker.js +18 -18
- package/packages/spinner/index.js +8 -8
- package/packages/spinner/src/spinner.vue +27 -27
- package/packages/statistic/index.js +8 -0
- package/packages/statistic/src/main.vue +204 -0
- package/packages/step/index.js +8 -8
- package/packages/steps/README.md +69 -69
- package/packages/steps/index.js +8 -8
- package/packages/steps/src/step.vue +184 -184
- package/packages/steps/src/steps.vue +68 -68
- package/packages/submenu/index.js +8 -8
- package/packages/switch/index.js +9 -9
- package/packages/switch/src/component.vue +174 -174
- package/packages/tab-pane/index.js +8 -8
- package/packages/table/index.js +8 -8
- package/packages/table/src/config.js +124 -124
- package/packages/table/src/dropdown.js +28 -28
- package/packages/table/src/filter-panel.vue +194 -194
- package/packages/table/src/layout-observer.js +68 -68
- package/packages/table/src/store/current.js +76 -76
- package/packages/table/src/store/expand.js +65 -65
- package/packages/table/src/store/helper.js +41 -41
- package/packages/table/src/store/index.js +147 -147
- package/packages/table/src/store/tree.js +209 -209
- package/packages/table/src/store/watcher.js +381 -381
- package/packages/table/src/table-body.js +469 -469
- package/packages/table/src/table-column.js +319 -319
- package/packages/table/src/table-footer.js +153 -153
- package/packages/table/src/table-header.js +511 -511
- package/packages/table/src/table-layout.js +249 -249
- package/packages/table/src/table-row.js +101 -101
- package/packages/table/src/table.vue +712 -712
- package/packages/table/src/util.js +273 -273
- package/packages/table-column/index.js +8 -8
- package/packages/tabs/index.js +8 -8
- package/packages/tabs/src/tab-bar.vue +57 -57
- package/packages/tabs/src/tab-nav.vue +294 -294
- package/packages/tabs/src/tab-pane.vue +56 -56
- package/packages/tabs/src/tabs.vue +191 -191
- package/packages/tag/index.js +8 -8
- package/packages/tag/src/tag.vue +58 -58
- package/packages/theme-chalk/README.md +33 -33
- package/packages/theme-chalk/package.json +35 -35
- package/packages/theme-chalk/src/alert.scss +147 -147
- package/packages/theme-chalk/src/aside.scss +7 -7
- package/packages/theme-chalk/src/autocomplete.scss +80 -80
- package/packages/theme-chalk/src/avatar.scss +51 -51
- package/packages/theme-chalk/src/backtop.scss +22 -22
- package/packages/theme-chalk/src/badge.scss +57 -57
- package/packages/theme-chalk/src/base.scss +2 -2
- package/packages/theme-chalk/src/breadcrumb.scss +55 -55
- package/packages/theme-chalk/src/button.scss +262 -262
- package/packages/theme-chalk/src/calendar.scss +79 -79
- package/packages/theme-chalk/src/card.scss +32 -32
- package/packages/theme-chalk/src/carousel-item.scss +50 -50
- package/packages/theme-chalk/src/carousel.scss +161 -161
- package/packages/theme-chalk/src/cascader-panel.scss +120 -120
- package/packages/theme-chalk/src/cascader.scss +182 -182
- package/packages/theme-chalk/src/checkbox.scss +359 -359
- package/packages/theme-chalk/src/col.scss +156 -156
- package/packages/theme-chalk/src/collapse.scss +63 -63
- package/packages/theme-chalk/src/color-picker.scss +384 -384
- package/packages/theme-chalk/src/common/popup.scss +42 -42
- package/packages/theme-chalk/src/common/transition.scss +99 -99
- package/packages/theme-chalk/src/common/var.scss +1028 -1028
- package/packages/theme-chalk/src/container.scss +14 -14
- package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
- package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
- package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
- package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
- package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
- package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
- package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
- package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
- package/packages/theme-chalk/src/date-picker.scss +11 -11
- package/packages/theme-chalk/src/descriptions-item.scss +42 -42
- package/packages/theme-chalk/src/descriptions.scss +111 -111
- package/packages/theme-chalk/src/dialog.scss +123 -123
- package/packages/theme-chalk/src/display.scss +12 -12
- package/packages/theme-chalk/src/divider.scss +47 -47
- package/packages/theme-chalk/src/drawer.scss +219 -219
- package/packages/theme-chalk/src/dropdown.scss +182 -182
- package/packages/theme-chalk/src/empty.scss +45 -45
- package/packages/theme-chalk/src/footer.scss +8 -8
- package/packages/theme-chalk/src/form.scss +167 -167
- package/packages/theme-chalk/src/header.scss +8 -8
- package/packages/theme-chalk/src/icon.scss +1167 -1167
- package/packages/theme-chalk/src/image.scss +179 -179
- package/packages/theme-chalk/src/index.scss +90 -89
- package/packages/theme-chalk/src/input-number.scss +180 -180
- package/packages/theme-chalk/src/input.scss +360 -360
- package/packages/theme-chalk/src/link.scss +81 -81
- package/packages/theme-chalk/src/loading.scss +96 -96
- package/packages/theme-chalk/src/main.scss +12 -12
- package/packages/theme-chalk/src/menu.scss +289 -289
- package/packages/theme-chalk/src/message-box.scss +226 -226
- package/packages/theme-chalk/src/message.scss +120 -120
- package/packages/theme-chalk/src/mixins/_button.scss +81 -81
- package/packages/theme-chalk/src/mixins/config.scss +4 -4
- package/packages/theme-chalk/src/mixins/function.scss +44 -44
- package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
- package/packages/theme-chalk/src/mixins/utils.scss +39 -39
- package/packages/theme-chalk/src/notification.scss +99 -99
- package/packages/theme-chalk/src/option-group.scss +42 -42
- package/packages/theme-chalk/src/option.scss +36 -36
- package/packages/theme-chalk/src/page-header.scss +41 -41
- package/packages/theme-chalk/src/pagination.scss +295 -295
- package/packages/theme-chalk/src/popconfirm.scss +16 -16
- package/packages/theme-chalk/src/popover.scss +40 -40
- package/packages/theme-chalk/src/popper.scss +101 -101
- package/packages/theme-chalk/src/progress.scss +141 -141
- package/packages/theme-chalk/src/radio-button.scss +113 -113
- package/packages/theme-chalk/src/radio-group.scss +9 -9
- package/packages/theme-chalk/src/radio.scss +199 -199
- package/packages/theme-chalk/src/rate.scss +49 -49
- package/packages/theme-chalk/src/reset.scss +79 -79
- package/packages/theme-chalk/src/result.scss +61 -61
- package/packages/theme-chalk/src/row.scss +43 -43
- package/packages/theme-chalk/src/scrollbar.scss +72 -72
- package/packages/theme-chalk/src/select-dropdown.scss +62 -62
- package/packages/theme-chalk/src/select.scss +152 -152
- package/packages/theme-chalk/src/skeleton-item.scss +84 -84
- package/packages/theme-chalk/src/skeleton.scss +40 -40
- package/packages/theme-chalk/src/slider.scss +250 -250
- package/packages/theme-chalk/src/spinner.scss +44 -44
- package/packages/theme-chalk/src/statistic.scss +38 -0
- package/packages/theme-chalk/src/step.scss +317 -317
- package/packages/theme-chalk/src/steps.scss +20 -20
- package/packages/theme-chalk/src/switch.scss +116 -116
- package/packages/theme-chalk/src/table-column.scss +97 -97
- package/packages/theme-chalk/src/table.scss +564 -564
- package/packages/theme-chalk/src/tabs.scss +602 -602
- package/packages/theme-chalk/src/tag.scss +163 -163
- package/packages/theme-chalk/src/time-picker.scss +8 -8
- package/packages/theme-chalk/src/time-select.scss +37 -37
- package/packages/theme-chalk/src/timeline-item.scss +86 -86
- package/packages/theme-chalk/src/timeline.scss +14 -14
- package/packages/theme-chalk/src/tooltip.scss +141 -141
- package/packages/theme-chalk/src/transfer.scss +227 -227
- package/packages/theme-chalk/src/tree.scss +123 -123
- package/packages/theme-chalk/src/upload.scss +603 -603
- package/packages/theme-cy/README.md +38 -38
- package/packages/theme-cy/lib/index.css +1 -1
- package/packages/theme-cy/lib/treeselect.css +1 -1
- package/packages/theme-cy/package.json +35 -35
- package/packages/theme-cy/src/index.scss +0 -4
- package/packages/theme-cy/src/treeselect.scss +87 -93
- package/packages/time-picker/index.js +8 -8
- package/packages/time-select/index.js +8 -8
- package/packages/timeline/index.js +8 -8
- package/packages/timeline/src/item.vue +73 -73
- package/packages/timeline/src/main.vue +33 -33
- package/packages/timeline-item/index.js +8 -8
- package/packages/tooltip/index.js +8 -8
- package/packages/tooltip/src/main.js +242 -242
- package/packages/transfer/index.js +8 -8
- package/packages/transfer/src/main.vue +231 -231
- package/packages/transfer/src/transfer-panel.vue +251 -251
- package/packages/tree/index.js +8 -8
- package/packages/tree/src/model/node.js +484 -484
- package/packages/tree/src/model/tree-store.js +340 -340
- package/packages/tree/src/model/util.js +27 -27
- package/packages/tree/src/tree-node.vue +279 -279
- package/packages/tree/src/tree.vue +496 -496
- package/packages/treeselect/index.js +8 -0
- package/packages/{treeSelect → treeselect}/src/main.vue +243 -243
- package/packages/upload/index.js +8 -8
- package/packages/upload/src/ajax.js +85 -85
- package/packages/upload/src/index.vue +338 -338
- package/packages/upload/src/upload-dragger.vue +70 -70
- package/packages/upload/src/upload-list.vue +105 -105
- package/packages/upload/src/upload.vue +211 -211
- package/src/directives/mousewheel.js +18 -18
- package/src/directives/repeat-click.js +26 -26
- package/src/index.js +8 -13
- package/src/locale/format.js +46 -45
- package/src/locale/index.js +48 -48
- package/src/locale/lang/af-ZA.js +123 -123
- package/src/locale/lang/ar.js +122 -122
- package/src/locale/lang/az.js +126 -126
- package/src/locale/lang/bg.js +123 -123
- package/src/locale/lang/bn.js +126 -126
- package/src/locale/lang/ca.js +122 -122
- package/src/locale/lang/cs-CZ.js +125 -125
- package/src/locale/lang/da.js +122 -122
- package/src/locale/lang/de.js +124 -124
- package/src/locale/lang/ee.js +123 -123
- package/src/locale/lang/el.js +123 -123
- package/src/locale/lang/en.js +123 -123
- package/src/locale/lang/eo.js +123 -123
- package/src/locale/lang/es.js +122 -122
- package/src/locale/lang/eu.js +123 -123
- package/src/locale/lang/fa.js +123 -123
- package/src/locale/lang/fi.js +123 -123
- package/src/locale/lang/fr.js +122 -122
- package/src/locale/lang/he.js +123 -123
- package/src/locale/lang/hr.js +123 -123
- package/src/locale/lang/hu.js +122 -122
- package/src/locale/lang/hy-AM.js +123 -123
- package/src/locale/lang/id.js +123 -123
- package/src/locale/lang/is.js +124 -124
- package/src/locale/lang/it.js +122 -122
- package/src/locale/lang/ja.js +123 -123
- package/src/locale/lang/kg.js +123 -123
- package/src/locale/lang/km.js +123 -123
- package/src/locale/lang/ko.js +123 -123
- package/src/locale/lang/ku.js +123 -123
- package/src/locale/lang/kz.js +123 -123
- package/src/locale/lang/lo-LA.js +126 -126
- package/src/locale/lang/lt.js +123 -123
- package/src/locale/lang/lv.js +123 -123
- package/src/locale/lang/mn.js +123 -123
- package/src/locale/lang/ms.js +122 -122
- package/src/locale/lang/nb-NO.js +122 -122
- package/src/locale/lang/nl.js +123 -123
- package/src/locale/lang/pl.js +123 -123
- package/src/locale/lang/pt-br.js +123 -123
- package/src/locale/lang/pt.js +123 -123
- package/src/locale/lang/ro.js +123 -123
- package/src/locale/lang/ru-RU.js +123 -123
- package/src/locale/lang/si.js +123 -123
- package/src/locale/lang/sk.js +125 -125
- package/src/locale/lang/sl.js +123 -123
- package/src/locale/lang/sr-Latn.js +123 -123
- package/src/locale/lang/sr.js +123 -123
- package/src/locale/lang/sv-SE.js +123 -123
- package/src/locale/lang/ta.js +122 -122
- package/src/locale/lang/th.js +123 -123
- package/src/locale/lang/tk.js +123 -123
- package/src/locale/lang/tr-TR.js +123 -123
- package/src/locale/lang/ua.js +123 -123
- package/src/locale/lang/ug-CN.js +123 -123
- package/src/locale/lang/uz-UZ.js +123 -123
- package/src/locale/lang/vi.js +123 -123
- package/src/locale/lang/zh-CN.js +123 -123
- package/src/locale/lang/zh-TW.js +123 -123
- package/src/mixins/emitter.js +33 -33
- package/src/mixins/focus.js +9 -9
- package/src/mixins/locale.js +9 -9
- package/src/mixins/migrating.js +54 -54
- package/src/transitions/collapse-transition.js +77 -77
- package/src/utils/after-leave.js +27 -27
- package/src/utils/aria-dialog.js +90 -90
- package/src/utils/aria-utils.js +122 -122
- package/src/utils/clickoutside.js +76 -76
- package/src/utils/date-util.js +282 -282
- package/src/utils/date.js +368 -2
- package/src/utils/dom.js +227 -227
- package/src/utils/lodash.js +18075 -9
- package/src/utils/menu/aria-menubar.js +14 -14
- package/src/utils/menu/aria-menuitem.js +49 -49
- package/src/utils/menu/aria-submenu.js +59 -59
- package/src/utils/merge.js +15 -15
- package/src/utils/popper.js +1276 -1276
- package/src/utils/popup/index.js +218 -218
- package/src/utils/popup/popup-manager.js +194 -194
- package/src/utils/resize-event.js +36 -36
- package/src/utils/scroll-into-view.js +27 -27
- package/src/utils/scrollbar-width.js +29 -29
- package/src/utils/shared.js +7 -7
- package/src/utils/types.js +40 -40
- package/src/utils/util.js +245 -245
- package/src/utils/vdom.js +5 -5
- package/src/utils/vue-popper.js +198 -198
- package/types/alert.d.ts +31 -31
- package/types/aside.d.ts +7 -7
- package/types/autocomplete.d.ts +78 -78
- package/types/avatar.d.ts +20 -20
- package/types/backtop.d.ts +16 -16
- package/types/badge.d.ts +16 -16
- package/types/breadcrumb-item.d.ts +10 -10
- package/types/breadcrumb.d.ts +10 -10
- package/types/button-group.d.ts +4 -4
- package/types/button.d.ts +37 -37
- package/types/calendar.d.ts +15 -15
- package/types/card.d.ts +26 -26
- package/types/carousel-item.d.ts +10 -10
- package/types/carousel.d.ts +57 -57
- package/types/cascader-panel.d.ts +72 -72
- package/types/cascader.d.ts +65 -65
- package/types/checkbox-button.d.ts +22 -22
- package/types/checkbox-group.d.ts +22 -22
- package/types/checkbox.d.ts +34 -34
- package/types/col.d.ts +46 -46
- package/types/collapse-item.d.ts +26 -26
- package/types/collapse.d.ts +10 -10
- package/types/color-picker.d.ts +21 -21
- package/types/component.d.ts +13 -13
- package/types/container.d.ts +7 -7
- package/types/date-picker.d.ts +124 -124
- package/types/descriptions-item.d.ts +37 -37
- package/types/descriptions.d.ts +52 -52
- package/types/dialog.d.ts +62 -62
- package/types/divider.d.ts +12 -12
- package/types/drawer.d.ts +63 -63
- package/types/dropdown-item.d.ts +16 -16
- package/types/dropdown-menu.d.ts +4 -4
- package/types/dropdown.d.ts +38 -38
- package/types/element-ui.d.ts +3 -16
- package/types/empty.d.ts +31 -31
- package/types/footer.d.ts +7 -7
- package/types/form-item.d.ts +37 -37
- package/types/form.d.ts +82 -82
- package/types/header.d.ts +7 -7
- package/types/icon.d.ts +7 -7
- package/types/image.d.ts +43 -43
- package/types/index.d.ts +4 -4
- package/types/infinite-scroll.d.ts +5 -5
- package/types/input-number.d.ts +47 -47
- package/types/input.d.ts +107 -107
- package/types/link.d.ts +25 -25
- package/types/loading.d.ts +62 -62
- package/types/main.d.ts +4 -4
- package/types/menu-item-group.d.ts +7 -7
- package/types/menu-item.d.ts +10 -10
- package/types/menu.d.ts +46 -46
- package/types/message-box.d.ts +176 -176
- package/types/message.d.ts +90 -90
- package/types/notification.d.ts +84 -84
- package/types/option-group.d.ts +10 -10
- package/types/option.d.ts +13 -13
- package/types/page-header.d.ts +10 -10
- package/types/pagination.d.ts +43 -43
- package/types/popconfirm.d.ts +29 -29
- package/types/popover.d.ts +71 -71
- package/types/progress.d.ts +37 -37
- package/types/radio-button.d.ts +16 -16
- package/types/radio-group.d.ts +18 -18
- package/types/radio.d.ts +19 -19
- package/types/rate.d.ts +64 -64
- package/types/result.d.ts +33 -33
- package/types/row.d.ts +25 -25
- package/types/select.d.ts +90 -90
- package/types/skeleton-item.d.ts +7 -7
- package/types/skeleton.d.ts +33 -33
- package/types/slider.d.ts +68 -68
- package/types/spinner.d.ts +16 -16
- package/types/statistic.d.ts +37 -0
- package/types/step.d.ts +34 -34
- package/types/steps.d.ts +28 -28
- package/types/submenu.d.ts +22 -22
- package/types/switch.d.ts +43 -43
- package/types/tab-pane.d.ts +19 -19
- package/types/table-column.d.ts +117 -117
- package/types/table.d.ts +177 -177
- package/types/tabs.d.ts +31 -31
- package/types/tag.d.ts +28 -28
- package/types/time-picker.d.ts +63 -63
- package/types/time-select.d.ts +56 -56
- package/types/timeline-item.d.ts +20 -20
- package/types/timeline.d.ts +6 -6
- package/types/tooltip.d.ts +52 -52
- package/types/transfer.d.ts +73 -73
- package/types/tree.d.ts +266 -266
- package/types/treeselect.d.ts +5 -0
- package/types/upload.d.ts +124 -124
- package/web-types.json +4195 -4195
- package/lib/fileUpload.js +0 -3885
- package/lib/tabDialog.js +0 -2644
- package/lib/treeSelect.js +0 -4421
- package/lib/utils/date_source.js +0 -335
- package/lib/utils/lodash_source.js +0 -9421
- package/packages/fileUpload/index.js +0 -8
- package/packages/fileUpload/src/main.vue +0 -430
- package/packages/subTitle/index.js +0 -8
- package/packages/subTitle/src/main.vue +0 -33
- package/packages/tabDialog/index.js +0 -23
- package/packages/tabDialog/src/dialog/drag.js +0 -63
- package/packages/tabDialog/src/dialog/dragHeight.js +0 -34
- package/packages/tabDialog/src/dialog/dragWidth.js +0 -30
- package/packages/tabDialog/src/main.vue +0 -277
- package/packages/theme-cy/lib/element.css +0 -1
- package/packages/theme-cy/lib/fileUpload.css +0 -1
- package/packages/theme-cy/lib/subTitle.css +0 -1
- package/packages/theme-cy/lib/tabDialog.css +0 -1
- package/packages/theme-cy/src/element.scss +0 -45
- package/packages/theme-cy/src/fileUpload.scss +0 -30
- package/packages/theme-cy/src/subTitle.scss +0 -26
- package/packages/theme-cy/src/tabDialog.scss +0 -43
- package/packages/treeSelect/index.js +0 -8
- package/src/utils/date_source.js +0 -352
- package/src/utils/lodash_source.js +0 -18090
- package/types/fileUpload.d.ts +0 -5
- package/types/subTitle.d.ts +0 -5
- package/types/tabDialog.d.ts +0 -5
- package/types/treeSelect.d.ts +0 -5
package/lib/popover.js
CHANGED
|
@@ -82,3069 +82,156 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 78);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
|
-
/******/ (
|
|
89
|
-
/* 0 */
|
|
90
|
-
/***/ (function(module, exports) {
|
|
91
|
-
|
|
92
|
-
module.exports = require("vue");
|
|
93
|
-
|
|
94
|
-
/***/ }),
|
|
95
|
-
/* 1 */
|
|
96
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
97
|
-
|
|
98
|
-
"use strict";
|
|
99
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
|
|
100
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
|
|
101
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
|
|
102
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
|
|
103
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
|
|
104
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
|
|
105
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
|
|
106
|
-
/* unused harmony export setStyle */
|
|
107
|
-
/* unused harmony export isScroll */
|
|
108
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
|
|
109
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
|
|
110
|
-
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
|
|
111
|
-
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
112
|
-
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
113
|
-
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
114
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
115
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
116
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
|
|
117
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
118
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
|
|
119
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
120
|
-
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
|
|
121
|
-
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
122
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
|
|
123
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
124
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
|
|
125
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* istanbul ignore next */
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
|
|
137
|
-
var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
138
|
-
var MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
139
|
-
var ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
140
|
-
|
|
141
|
-
/* istanbul ignore next */
|
|
142
|
-
var trim = function trim(string) {
|
|
143
|
-
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
144
|
-
};
|
|
145
|
-
/* istanbul ignore next */
|
|
146
|
-
var camelCase = function camelCase(name) {
|
|
147
|
-
return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
148
|
-
return offset ? letter.toUpperCase() : letter;
|
|
149
|
-
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/* istanbul ignore next */
|
|
153
|
-
var on = function () {
|
|
154
|
-
if (!isServer && document.addEventListener) {
|
|
155
|
-
return function (element, event, handler) {
|
|
156
|
-
if (element && event && handler) {
|
|
157
|
-
element.addEventListener(event, handler, false);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
} else {
|
|
161
|
-
return function (element, event, handler) {
|
|
162
|
-
if (element && event && handler) {
|
|
163
|
-
element.attachEvent('on' + event, handler);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}();
|
|
168
|
-
|
|
169
|
-
/* istanbul ignore next */
|
|
170
|
-
var off = function () {
|
|
171
|
-
if (!isServer && document.removeEventListener) {
|
|
172
|
-
return function (element, event, handler) {
|
|
173
|
-
if (element && event) {
|
|
174
|
-
element.removeEventListener(event, handler, false);
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
} else {
|
|
178
|
-
return function (element, event, handler) {
|
|
179
|
-
if (element && event) {
|
|
180
|
-
element.detachEvent('on' + event, handler);
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
}();
|
|
185
|
-
|
|
186
|
-
/* istanbul ignore next */
|
|
187
|
-
var once = function once(el, event, fn) {
|
|
188
|
-
var _listener = function listener() {
|
|
189
|
-
if (fn) {
|
|
190
|
-
fn.apply(this, arguments);
|
|
191
|
-
}
|
|
192
|
-
off(el, event, _listener);
|
|
193
|
-
};
|
|
194
|
-
on(el, event, _listener);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/* istanbul ignore next */
|
|
198
|
-
function hasClass(el, cls) {
|
|
199
|
-
if (!el || !cls) return false;
|
|
200
|
-
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
201
|
-
if (el.classList) {
|
|
202
|
-
return el.classList.contains(cls);
|
|
203
|
-
} else {
|
|
204
|
-
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
;
|
|
208
|
-
|
|
209
|
-
/* istanbul ignore next */
|
|
210
|
-
function addClass(el, cls) {
|
|
211
|
-
if (!el) return;
|
|
212
|
-
var curClass = el.className;
|
|
213
|
-
var classes = (cls || '').split(' ');
|
|
214
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
215
|
-
var clsName = classes[i];
|
|
216
|
-
if (!clsName) continue;
|
|
217
|
-
if (el.classList) {
|
|
218
|
-
el.classList.add(clsName);
|
|
219
|
-
} else if (!hasClass(el, clsName)) {
|
|
220
|
-
curClass += ' ' + clsName;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
if (!el.classList) {
|
|
224
|
-
el.setAttribute('class', curClass);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
;
|
|
228
|
-
|
|
229
|
-
/* istanbul ignore next */
|
|
230
|
-
function removeClass(el, cls) {
|
|
231
|
-
if (!el || !cls) return;
|
|
232
|
-
var classes = cls.split(' ');
|
|
233
|
-
var curClass = ' ' + el.className + ' ';
|
|
234
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
235
|
-
var clsName = classes[i];
|
|
236
|
-
if (!clsName) continue;
|
|
237
|
-
if (el.classList) {
|
|
238
|
-
el.classList.remove(clsName);
|
|
239
|
-
} else if (hasClass(el, clsName)) {
|
|
240
|
-
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (!el.classList) {
|
|
244
|
-
el.setAttribute('class', trim(curClass));
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
;
|
|
248
|
-
|
|
249
|
-
/* istanbul ignore next */
|
|
250
|
-
var getStyle = ieVersion < 9 ? function (element, styleName) {
|
|
251
|
-
if (isServer) return;
|
|
252
|
-
if (!element || !styleName) return null;
|
|
253
|
-
styleName = camelCase(styleName);
|
|
254
|
-
if (styleName === 'float') {
|
|
255
|
-
styleName = 'styleFloat';
|
|
256
|
-
}
|
|
257
|
-
try {
|
|
258
|
-
switch (styleName) {
|
|
259
|
-
case 'opacity':
|
|
260
|
-
try {
|
|
261
|
-
return element.filters.item('alpha').opacity / 100;
|
|
262
|
-
} catch (e) {
|
|
263
|
-
return 1.0;
|
|
264
|
-
}
|
|
265
|
-
default:
|
|
266
|
-
return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
|
|
267
|
-
}
|
|
268
|
-
} catch (e) {
|
|
269
|
-
return element.style[styleName];
|
|
270
|
-
}
|
|
271
|
-
} : function (element, styleName) {
|
|
272
|
-
if (isServer) return;
|
|
273
|
-
if (!element || !styleName) return null;
|
|
274
|
-
styleName = camelCase(styleName);
|
|
275
|
-
if (styleName === 'float') {
|
|
276
|
-
styleName = 'cssFloat';
|
|
277
|
-
}
|
|
278
|
-
try {
|
|
279
|
-
var computed = document.defaultView.getComputedStyle(element, '');
|
|
280
|
-
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
281
|
-
} catch (e) {
|
|
282
|
-
return element.style[styleName];
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/* istanbul ignore next */
|
|
287
|
-
function setStyle(element, styleName, value) {
|
|
288
|
-
if (!element || !styleName) return;
|
|
289
|
-
if (typeof styleName === 'object') {
|
|
290
|
-
for (var prop in styleName) {
|
|
291
|
-
if (styleName.hasOwnProperty(prop)) {
|
|
292
|
-
setStyle(element, prop, styleName[prop]);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
styleName = camelCase(styleName);
|
|
297
|
-
if (styleName === 'opacity' && ieVersion < 9) {
|
|
298
|
-
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
299
|
-
} else {
|
|
300
|
-
element.style[styleName] = value;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
;
|
|
305
|
-
var isScroll = function isScroll(el, vertical) {
|
|
306
|
-
if (isServer) return;
|
|
307
|
-
var determinedDirection = vertical !== null && vertical !== undefined;
|
|
308
|
-
var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
|
|
309
|
-
return overflow.match(/(scroll|auto|overlay)/);
|
|
310
|
-
};
|
|
311
|
-
var getScrollContainer = function getScrollContainer(el, vertical) {
|
|
312
|
-
if (isServer) return;
|
|
313
|
-
var parent = el;
|
|
314
|
-
while (parent) {
|
|
315
|
-
if ([window, document, document.documentElement].includes(parent)) {
|
|
316
|
-
return window;
|
|
317
|
-
}
|
|
318
|
-
if (isScroll(parent, vertical)) {
|
|
319
|
-
return parent;
|
|
320
|
-
}
|
|
321
|
-
parent = parent.parentNode;
|
|
322
|
-
}
|
|
323
|
-
return parent;
|
|
324
|
-
};
|
|
325
|
-
var isInContainer = function isInContainer(el, container) {
|
|
326
|
-
if (isServer || !el || !container) return false;
|
|
327
|
-
var elRect = el.getBoundingClientRect();
|
|
328
|
-
var containerRect;
|
|
329
|
-
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
330
|
-
containerRect = {
|
|
331
|
-
top: 0,
|
|
332
|
-
right: window.innerWidth,
|
|
333
|
-
bottom: window.innerHeight,
|
|
334
|
-
left: 0
|
|
335
|
-
};
|
|
336
|
-
} else {
|
|
337
|
-
containerRect = container.getBoundingClientRect();
|
|
338
|
-
}
|
|
339
|
-
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
/***/ }),
|
|
343
|
-
/* 2 */
|
|
344
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
345
|
-
|
|
346
|
-
"use strict";
|
|
347
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
348
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
349
|
-
|
|
350
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
351
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
352
|
-
// be included in the final webpack user bundle.
|
|
353
|
-
|
|
354
|
-
function normalizeComponent(
|
|
355
|
-
scriptExports,
|
|
356
|
-
render,
|
|
357
|
-
staticRenderFns,
|
|
358
|
-
functionalTemplate,
|
|
359
|
-
injectStyles,
|
|
360
|
-
scopeId,
|
|
361
|
-
moduleIdentifier /* server only */,
|
|
362
|
-
shadowMode /* vue-cli only */
|
|
363
|
-
) {
|
|
364
|
-
// Vue.extend constructor export interop
|
|
365
|
-
var options =
|
|
366
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
367
|
-
|
|
368
|
-
// render functions
|
|
369
|
-
if (render) {
|
|
370
|
-
options.render = render
|
|
371
|
-
options.staticRenderFns = staticRenderFns
|
|
372
|
-
options._compiled = true
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// functional template
|
|
376
|
-
if (functionalTemplate) {
|
|
377
|
-
options.functional = true
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// scopedId
|
|
381
|
-
if (scopeId) {
|
|
382
|
-
options._scopeId = 'data-v-' + scopeId
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
var hook
|
|
386
|
-
if (moduleIdentifier) {
|
|
387
|
-
// server build
|
|
388
|
-
hook = function (context) {
|
|
389
|
-
// 2.3 injection
|
|
390
|
-
context =
|
|
391
|
-
context || // cached call
|
|
392
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
393
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
394
|
-
// 2.2 with runInNewContext: true
|
|
395
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
396
|
-
context = __VUE_SSR_CONTEXT__
|
|
397
|
-
}
|
|
398
|
-
// inject component styles
|
|
399
|
-
if (injectStyles) {
|
|
400
|
-
injectStyles.call(this, context)
|
|
401
|
-
}
|
|
402
|
-
// register component module identifier for async chunk inferrence
|
|
403
|
-
if (context && context._registeredComponents) {
|
|
404
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
// used by ssr in case component is cached and beforeCreate
|
|
408
|
-
// never gets called
|
|
409
|
-
options._ssrRegister = hook
|
|
410
|
-
} else if (injectStyles) {
|
|
411
|
-
hook = shadowMode
|
|
412
|
-
? function () {
|
|
413
|
-
injectStyles.call(
|
|
414
|
-
this,
|
|
415
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
416
|
-
)
|
|
417
|
-
}
|
|
418
|
-
: injectStyles
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
if (hook) {
|
|
422
|
-
if (options.functional) {
|
|
423
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
424
|
-
// go through the normalizer
|
|
425
|
-
options._injectStyles = hook
|
|
426
|
-
// register for functional component in vue file
|
|
427
|
-
var originalRender = options.render
|
|
428
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
429
|
-
hook.call(context)
|
|
430
|
-
return originalRender(h, context)
|
|
431
|
-
}
|
|
432
|
-
} else {
|
|
433
|
-
// inject component registration as beforeCreate hook
|
|
434
|
-
var existing = options.beforeCreate
|
|
435
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
return {
|
|
440
|
-
exports: scriptExports,
|
|
441
|
-
options: options
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
/***/ }),
|
|
447
|
-
/* 3 */
|
|
448
|
-
/***/ (function(module, exports) {
|
|
449
|
-
|
|
450
|
-
module.exports = require("core-js/modules/es.object.to-string.js");
|
|
451
|
-
|
|
452
|
-
/***/ }),
|
|
453
|
-
/* 4 */
|
|
454
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
455
|
-
|
|
456
|
-
"use strict";
|
|
457
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
|
|
458
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
|
|
459
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
|
|
460
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
|
|
461
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
|
|
462
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
|
|
463
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
|
|
464
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
|
|
465
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
|
|
466
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
|
|
467
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
|
|
468
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
|
|
469
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
|
|
470
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
|
|
471
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
|
|
472
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
|
|
473
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
|
|
474
|
-
/* unused harmony export looseEqual */
|
|
475
|
-
/* unused harmony export arrayEquals */
|
|
476
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
|
|
477
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
|
|
478
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
|
|
479
|
-
/* unused harmony export objToArray */
|
|
480
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
|
|
481
|
-
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
|
|
482
|
-
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
483
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
484
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
485
|
-
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
|
|
486
|
-
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
487
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
|
|
488
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
489
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
|
|
490
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
491
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
|
|
492
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
493
|
-
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
|
|
494
|
-
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
495
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
|
|
496
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
497
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
498
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
|
|
499
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
511
|
-
function noop() {}
|
|
512
|
-
;
|
|
513
|
-
function hasOwn(obj, key) {
|
|
514
|
-
return hasOwnProperty.call(obj, key);
|
|
515
|
-
}
|
|
516
|
-
;
|
|
517
|
-
function extend(to, _from) {
|
|
518
|
-
for (var key in _from) {
|
|
519
|
-
to[key] = _from[key];
|
|
520
|
-
}
|
|
521
|
-
return to;
|
|
522
|
-
}
|
|
523
|
-
;
|
|
524
|
-
function toObject(arr) {
|
|
525
|
-
var res = {};
|
|
526
|
-
for (var i = 0; i < arr.length; i++) {
|
|
527
|
-
if (arr[i]) {
|
|
528
|
-
extend(res, arr[i]);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
return res;
|
|
532
|
-
}
|
|
533
|
-
;
|
|
534
|
-
var getValueByPath = function getValueByPath(object, prop) {
|
|
535
|
-
prop = prop || '';
|
|
536
|
-
var paths = prop.split('.');
|
|
537
|
-
var current = object;
|
|
538
|
-
var result = null;
|
|
539
|
-
for (var i = 0, j = paths.length; i < j; i++) {
|
|
540
|
-
var path = paths[i];
|
|
541
|
-
if (!current) break;
|
|
542
|
-
if (i === j - 1) {
|
|
543
|
-
result = current[path];
|
|
544
|
-
break;
|
|
545
|
-
}
|
|
546
|
-
current = current[path];
|
|
547
|
-
}
|
|
548
|
-
return result;
|
|
549
|
-
};
|
|
550
|
-
function getPropByPath(obj, path, strict) {
|
|
551
|
-
var tempObj = obj;
|
|
552
|
-
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
553
|
-
path = path.replace(/^\./, '');
|
|
554
|
-
var keyArr = path.split('.');
|
|
555
|
-
var i = 0;
|
|
556
|
-
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
557
|
-
if (!tempObj && !strict) break;
|
|
558
|
-
var key = keyArr[i];
|
|
559
|
-
if (key in tempObj) {
|
|
560
|
-
tempObj = tempObj[key];
|
|
561
|
-
} else {
|
|
562
|
-
if (strict) {
|
|
563
|
-
throw new Error('please transfer a valid prop path to form item!');
|
|
564
|
-
}
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
return {
|
|
569
|
-
o: tempObj,
|
|
570
|
-
k: keyArr[i],
|
|
571
|
-
v: tempObj ? tempObj[keyArr[i]] : null
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
;
|
|
575
|
-
var generateId = function generateId() {
|
|
576
|
-
return Math.floor(Math.random() * 10000);
|
|
577
|
-
};
|
|
578
|
-
var valueEquals = function valueEquals(a, b) {
|
|
579
|
-
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
580
|
-
if (a === b) return true;
|
|
581
|
-
if (!(a instanceof Array)) return false;
|
|
582
|
-
if (!(b instanceof Array)) return false;
|
|
583
|
-
if (a.length !== b.length) return false;
|
|
584
|
-
for (var i = 0; i !== a.length; ++i) {
|
|
585
|
-
if (a[i] !== b[i]) return false;
|
|
586
|
-
}
|
|
587
|
-
return true;
|
|
588
|
-
};
|
|
589
|
-
var escapeRegexpString = function escapeRegexpString(value) {
|
|
590
|
-
if (value === void 0) {
|
|
591
|
-
value = '';
|
|
592
|
-
}
|
|
593
|
-
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
597
|
-
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
598
|
-
for (var i = 0; i !== arr.length; ++i) {
|
|
599
|
-
if (pred(arr[i])) {
|
|
600
|
-
return i;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
return -1;
|
|
604
|
-
};
|
|
605
|
-
var arrayFind = function arrayFind(arr, pred) {
|
|
606
|
-
var idx = arrayFindIndex(arr, pred);
|
|
607
|
-
return idx !== -1 ? arr[idx] : undefined;
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
// coerce truthy value to array
|
|
611
|
-
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
612
|
-
if (Array.isArray(val)) {
|
|
613
|
-
return val;
|
|
614
|
-
} else if (val) {
|
|
615
|
-
return [val];
|
|
616
|
-
} else {
|
|
617
|
-
return [];
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
var isIE = function isIE() {
|
|
621
|
-
return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
622
|
-
};
|
|
623
|
-
var isEdge = function isEdge() {
|
|
624
|
-
return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
625
|
-
};
|
|
626
|
-
var isFirefox = function isFirefox() {
|
|
627
|
-
return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
628
|
-
};
|
|
629
|
-
var autoprefixer = function autoprefixer(style) {
|
|
630
|
-
if (typeof style !== 'object') return style;
|
|
631
|
-
var rules = ['transform', 'transition', 'animation'];
|
|
632
|
-
var prefixes = ['ms-', 'webkit-'];
|
|
633
|
-
rules.forEach(function (rule) {
|
|
634
|
-
var value = style[rule];
|
|
635
|
-
if (rule && value) {
|
|
636
|
-
prefixes.forEach(function (prefix) {
|
|
637
|
-
style[prefix + rule] = value;
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
});
|
|
641
|
-
return style;
|
|
642
|
-
};
|
|
643
|
-
var kebabCase = function kebabCase(str) {
|
|
644
|
-
var hyphenateRE = /([^-])([A-Z])/g;
|
|
645
|
-
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
646
|
-
};
|
|
647
|
-
var capitalize = function capitalize(str) {
|
|
648
|
-
if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
|
|
649
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
650
|
-
};
|
|
651
|
-
var looseEqual = function looseEqual(a, b) {
|
|
652
|
-
var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
|
|
653
|
-
var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
|
|
654
|
-
if (isObjectA && isObjectB) {
|
|
655
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
|
656
|
-
} else if (!isObjectA && !isObjectB) {
|
|
657
|
-
return String(a) === String(b);
|
|
658
|
-
} else {
|
|
659
|
-
return false;
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
var arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
663
|
-
arrayA = arrayA || [];
|
|
664
|
-
arrayB = arrayB || [];
|
|
665
|
-
if (arrayA.length !== arrayB.length) {
|
|
666
|
-
return false;
|
|
667
|
-
}
|
|
668
|
-
for (var i = 0; i < arrayA.length; i++) {
|
|
669
|
-
if (!looseEqual(arrayA[i], arrayB[i])) {
|
|
670
|
-
return false;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
return true;
|
|
674
|
-
};
|
|
675
|
-
var isEqual = function isEqual(value1, value2) {
|
|
676
|
-
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
677
|
-
return arrayEquals(value1, value2);
|
|
678
|
-
}
|
|
679
|
-
return looseEqual(value1, value2);
|
|
680
|
-
};
|
|
681
|
-
var isEmpty = function isEmpty(val) {
|
|
682
|
-
// null or undefined
|
|
683
|
-
if (val == null) return true;
|
|
684
|
-
if (typeof val === 'boolean') return false;
|
|
685
|
-
if (typeof val === 'number') return !val;
|
|
686
|
-
if (val instanceof Error) return val.message === '';
|
|
687
|
-
switch (Object.prototype.toString.call(val)) {
|
|
688
|
-
// String or Array
|
|
689
|
-
case '[object String]':
|
|
690
|
-
case '[object Array]':
|
|
691
|
-
return !val.length;
|
|
692
|
-
|
|
693
|
-
// Map or Set or File
|
|
694
|
-
case '[object File]':
|
|
695
|
-
case '[object Map]':
|
|
696
|
-
case '[object Set]':
|
|
697
|
-
{
|
|
698
|
-
return !val.size;
|
|
699
|
-
}
|
|
700
|
-
// Plain Object
|
|
701
|
-
case '[object Object]':
|
|
702
|
-
{
|
|
703
|
-
return !Object.keys(val).length;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
return false;
|
|
707
|
-
};
|
|
708
|
-
function rafThrottle(fn) {
|
|
709
|
-
var locked = false;
|
|
710
|
-
return function () {
|
|
711
|
-
var _this = this;
|
|
712
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
713
|
-
args[_key] = arguments[_key];
|
|
714
|
-
}
|
|
715
|
-
if (locked) return;
|
|
716
|
-
locked = true;
|
|
717
|
-
window.requestAnimationFrame(function (_) {
|
|
718
|
-
fn.apply(_this, args);
|
|
719
|
-
locked = false;
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
function objToArray(obj) {
|
|
724
|
-
if (Array.isArray(obj)) {
|
|
725
|
-
return obj;
|
|
726
|
-
}
|
|
727
|
-
return isEmpty(obj) ? [] : [obj];
|
|
728
|
-
}
|
|
729
|
-
var isMac = function isMac() {
|
|
730
|
-
return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
/***/ }),
|
|
734
|
-
/* 5 */
|
|
735
|
-
/***/ (function(module, exports) {
|
|
736
|
-
|
|
737
|
-
module.exports = require("core-js/modules/es.function.name.js");
|
|
738
|
-
|
|
739
|
-
/***/ }),
|
|
740
|
-
/* 6 */
|
|
741
|
-
/***/ (function(module, exports) {
|
|
742
|
-
|
|
743
|
-
module.exports = require("core-js/modules/es.number.constructor.js");
|
|
744
|
-
|
|
745
|
-
/***/ }),
|
|
746
|
-
/* 7 */
|
|
747
|
-
/***/ (function(module, exports) {
|
|
748
|
-
|
|
749
|
-
module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
750
|
-
|
|
751
|
-
/***/ }),
|
|
752
|
-
/* 8 */
|
|
753
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
754
|
-
|
|
755
|
-
"use strict";
|
|
756
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
757
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
758
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
759
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
760
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
761
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
762
|
-
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
|
|
763
|
-
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
764
|
-
/* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
|
|
765
|
-
/* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
766
|
-
/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
|
|
767
|
-
/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
768
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
|
|
769
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
770
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
|
|
771
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
772
|
-
/* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
|
|
773
|
-
/* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
774
|
-
/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
|
|
775
|
-
/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
776
|
-
/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
|
|
777
|
-
/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
778
|
-
/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
|
|
779
|
-
/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
780
|
-
/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
|
|
781
|
-
/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
782
|
-
/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
|
|
783
|
-
/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
784
|
-
/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
|
|
785
|
-
/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
786
|
-
/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
|
|
787
|
-
/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
788
|
-
/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
|
|
789
|
-
/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
790
|
-
/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
|
|
791
|
-
/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
792
|
-
/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
|
|
793
|
-
/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
794
|
-
/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
|
|
795
|
-
/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
796
|
-
/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
|
|
797
|
-
/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
798
|
-
/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
|
|
799
|
-
/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
800
|
-
/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
|
|
801
|
-
/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
802
|
-
/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
|
|
803
|
-
/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
804
|
-
/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
|
|
805
|
-
/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
806
|
-
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
|
|
807
|
-
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
808
|
-
/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
|
|
809
|
-
/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
810
|
-
/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
|
|
811
|
-
/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
812
|
-
/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
|
|
813
|
-
/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
814
|
-
/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
|
|
815
|
-
/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__);
|
|
816
|
-
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
|
|
817
|
-
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__);
|
|
818
|
-
/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
|
|
819
|
-
/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__);
|
|
820
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
|
|
821
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
function isString(obj) {
|
|
853
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
854
|
-
}
|
|
855
|
-
function isObject(obj) {
|
|
856
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
857
|
-
}
|
|
858
|
-
function isHtmlElement(node) {
|
|
859
|
-
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* - Inspired:
|
|
864
|
-
* https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
|
|
865
|
-
*/
|
|
866
|
-
var isFunction = function isFunction(functionToCheck) {
|
|
867
|
-
var getType = {};
|
|
868
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
869
|
-
};
|
|
870
|
-
if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
871
|
-
isFunction = function isFunction(obj) {
|
|
872
|
-
return typeof obj === 'function' || false;
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
var isUndefined = function isUndefined(val) {
|
|
877
|
-
return val === void 0;
|
|
878
|
-
};
|
|
879
|
-
var isDefined = function isDefined(val) {
|
|
880
|
-
return val !== undefined && val !== null;
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
/***/ }),
|
|
884
|
-
/* 9 */,
|
|
885
|
-
/* 10 */
|
|
886
|
-
/***/ (function(module, exports) {
|
|
887
|
-
|
|
888
|
-
module.exports = require("core-js/modules/web.dom-collections.for-each.js");
|
|
889
|
-
|
|
890
|
-
/***/ }),
|
|
891
|
-
/* 11 */
|
|
892
|
-
/***/ (function(module, exports) {
|
|
893
|
-
|
|
894
|
-
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
895
|
-
|
|
896
|
-
/***/ }),
|
|
897
|
-
/* 12 */
|
|
898
|
-
/***/ (function(module, exports) {
|
|
899
|
-
|
|
900
|
-
module.exports = require("core-js/modules/es.string.replace.js");
|
|
901
|
-
|
|
902
|
-
/***/ }),
|
|
903
|
-
/* 13 */
|
|
904
|
-
/***/ (function(module, exports) {
|
|
905
|
-
|
|
906
|
-
module.exports = require("core-js/modules/es.array.slice.js");
|
|
907
|
-
|
|
908
|
-
/***/ }),
|
|
909
|
-
/* 14 */,
|
|
910
|
-
/* 15 */
|
|
911
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
912
|
-
|
|
913
|
-
"use strict";
|
|
914
|
-
/* harmony default export */ __webpack_exports__["a"] = (function (target) {
|
|
915
|
-
for (var i = 1, j = arguments.length; i < j; i++) {
|
|
916
|
-
var source = arguments[i] || {};
|
|
917
|
-
for (var prop in source) {
|
|
918
|
-
if (source.hasOwnProperty(prop)) {
|
|
919
|
-
var value = source[prop];
|
|
920
|
-
if (value !== undefined) {
|
|
921
|
-
target[prop] = value;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
return target;
|
|
927
|
-
});
|
|
928
|
-
;
|
|
929
|
-
|
|
930
|
-
/***/ }),
|
|
931
|
-
/* 16 */
|
|
932
|
-
/***/ (function(module, exports) {
|
|
933
|
-
|
|
934
|
-
module.exports = require("core-js/modules/es.string.match.js");
|
|
935
|
-
|
|
936
|
-
/***/ }),
|
|
937
|
-
/* 17 */
|
|
938
|
-
/***/ (function(module, exports) {
|
|
939
|
-
|
|
940
|
-
module.exports = require("core-js/modules/es.object.keys.js");
|
|
941
|
-
|
|
942
|
-
/***/ }),
|
|
943
|
-
/* 18 */
|
|
944
|
-
/***/ (function(module, exports) {
|
|
945
|
-
|
|
946
|
-
module.exports = require("core-js/modules/es.array.filter.js");
|
|
947
|
-
|
|
948
|
-
/***/ }),
|
|
949
|
-
/* 19 */
|
|
950
|
-
/***/ (function(module, exports) {
|
|
951
|
-
|
|
952
|
-
module.exports = require("core-js/modules/es.array.iterator.js");
|
|
953
|
-
|
|
954
|
-
/***/ }),
|
|
955
|
-
/* 20 */
|
|
956
|
-
/***/ (function(module, exports) {
|
|
957
|
-
|
|
958
|
-
module.exports = require("core-js/modules/es.array.map.js");
|
|
959
|
-
|
|
960
|
-
/***/ }),
|
|
961
|
-
/* 21 */,
|
|
962
|
-
/* 22 */
|
|
963
|
-
/***/ (function(module, exports) {
|
|
964
|
-
|
|
965
|
-
module.exports = require("core-js/modules/es.array.splice.js");
|
|
966
|
-
|
|
967
|
-
/***/ }),
|
|
968
|
-
/* 23 */
|
|
969
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
970
|
-
|
|
971
|
-
"use strict";
|
|
972
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
973
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
974
|
-
|
|
975
|
-
var scrollBarWidth;
|
|
976
|
-
/* harmony default export */ __webpack_exports__["a"] = (function () {
|
|
977
|
-
if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
|
|
978
|
-
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
|
979
|
-
var outer = document.createElement('div');
|
|
980
|
-
outer.className = 'el-scrollbar__wrap';
|
|
981
|
-
outer.style.visibility = 'hidden';
|
|
982
|
-
outer.style.width = '100px';
|
|
983
|
-
outer.style.position = 'absolute';
|
|
984
|
-
outer.style.top = '-9999px';
|
|
985
|
-
document.body.appendChild(outer);
|
|
986
|
-
var widthNoScroll = outer.offsetWidth;
|
|
987
|
-
outer.style.overflow = 'scroll';
|
|
988
|
-
var inner = document.createElement('div');
|
|
989
|
-
inner.style.width = '100%';
|
|
990
|
-
outer.appendChild(inner);
|
|
991
|
-
var widthWithScroll = inner.offsetWidth;
|
|
992
|
-
outer.parentNode.removeChild(outer);
|
|
993
|
-
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
994
|
-
return scrollBarWidth;
|
|
995
|
-
});
|
|
996
|
-
;
|
|
997
|
-
|
|
998
|
-
/***/ }),
|
|
999
|
-
/* 24 */
|
|
1000
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1001
|
-
|
|
1002
|
-
"use strict";
|
|
1003
|
-
|
|
1004
|
-
// EXPORTS
|
|
1005
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
|
|
1006
|
-
|
|
1007
|
-
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
1008
|
-
var es_number_constructor_js_ = __webpack_require__(6);
|
|
1009
|
-
|
|
1010
|
-
// EXTERNAL MODULE: external "vue"
|
|
1011
|
-
var external_vue_ = __webpack_require__(0);
|
|
1012
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
1013
|
-
|
|
1014
|
-
// EXTERNAL MODULE: ./src/utils/merge.js
|
|
1015
|
-
var merge = __webpack_require__(15);
|
|
1016
|
-
|
|
1017
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
|
|
1018
|
-
var es_array_splice_js_ = __webpack_require__(22);
|
|
1019
|
-
|
|
1020
|
-
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
|
|
1021
|
-
var es_object_to_string_js_ = __webpack_require__(3);
|
|
1022
|
-
|
|
1023
|
-
// EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
|
|
1024
|
-
var es_regexp_exec_js_ = __webpack_require__(7);
|
|
1025
|
-
|
|
1026
|
-
// EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
|
|
1027
|
-
var es_string_split_js_ = __webpack_require__(59);
|
|
1028
|
-
|
|
1029
|
-
// EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
|
|
1030
|
-
var es_string_trim_js_ = __webpack_require__(56);
|
|
1031
|
-
|
|
1032
|
-
// EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
|
|
1033
|
-
var web_dom_collections_for_each_js_ = __webpack_require__(10);
|
|
1034
|
-
|
|
1035
|
-
// EXTERNAL MODULE: ./src/utils/dom.js
|
|
1036
|
-
var utils_dom = __webpack_require__(1);
|
|
1037
|
-
|
|
1038
|
-
// CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
var hasModal = false;
|
|
1048
|
-
var hasInitZIndex = false;
|
|
1049
|
-
var popup_manager_zIndex;
|
|
1050
|
-
var popup_manager_getModal = function getModal() {
|
|
1051
|
-
if (external_vue_default.a.prototype.$isServer) return;
|
|
1052
|
-
var modalDom = PopupManager.modalDom;
|
|
1053
|
-
if (modalDom) {
|
|
1054
|
-
hasModal = true;
|
|
1055
|
-
} else {
|
|
1056
|
-
hasModal = false;
|
|
1057
|
-
modalDom = document.createElement('div');
|
|
1058
|
-
PopupManager.modalDom = modalDom;
|
|
1059
|
-
modalDom.addEventListener('touchmove', function (event) {
|
|
1060
|
-
event.preventDefault();
|
|
1061
|
-
event.stopPropagation();
|
|
1062
|
-
});
|
|
1063
|
-
modalDom.addEventListener('click', function () {
|
|
1064
|
-
PopupManager.doOnModalClick && PopupManager.doOnModalClick();
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
return modalDom;
|
|
1068
|
-
};
|
|
1069
|
-
var instances = {};
|
|
1070
|
-
var PopupManager = {
|
|
1071
|
-
modalFade: true,
|
|
1072
|
-
getInstance: function getInstance(id) {
|
|
1073
|
-
return instances[id];
|
|
1074
|
-
},
|
|
1075
|
-
register: function register(id, instance) {
|
|
1076
|
-
if (id && instance) {
|
|
1077
|
-
instances[id] = instance;
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
deregister: function deregister(id) {
|
|
1081
|
-
if (id) {
|
|
1082
|
-
instances[id] = null;
|
|
1083
|
-
delete instances[id];
|
|
1084
|
-
}
|
|
1085
|
-
},
|
|
1086
|
-
nextZIndex: function nextZIndex() {
|
|
1087
|
-
return PopupManager.zIndex++;
|
|
1088
|
-
},
|
|
1089
|
-
modalStack: [],
|
|
1090
|
-
doOnModalClick: function doOnModalClick() {
|
|
1091
|
-
var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
|
1092
|
-
if (!topItem) return;
|
|
1093
|
-
var instance = PopupManager.getInstance(topItem.id);
|
|
1094
|
-
if (instance && instance.closeOnClickModal) {
|
|
1095
|
-
instance.close();
|
|
1096
|
-
}
|
|
1097
|
-
},
|
|
1098
|
-
openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
|
|
1099
|
-
if (external_vue_default.a.prototype.$isServer) return;
|
|
1100
|
-
if (!id || zIndex === undefined) return;
|
|
1101
|
-
this.modalFade = modalFade;
|
|
1102
|
-
var modalStack = this.modalStack;
|
|
1103
|
-
for (var i = 0, j = modalStack.length; i < j; i++) {
|
|
1104
|
-
var item = modalStack[i];
|
|
1105
|
-
if (item.id === id) {
|
|
1106
|
-
return;
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
var modalDom = popup_manager_getModal();
|
|
1110
|
-
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
|
|
1111
|
-
if (this.modalFade && !hasModal) {
|
|
1112
|
-
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
|
|
1113
|
-
}
|
|
1114
|
-
if (modalClass) {
|
|
1115
|
-
var classArr = modalClass.trim().split(/\s+/);
|
|
1116
|
-
classArr.forEach(function (item) {
|
|
1117
|
-
return Object(utils_dom["a" /* addClass */])(modalDom, item);
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
setTimeout(function () {
|
|
1121
|
-
Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
|
|
1122
|
-
}, 200);
|
|
1123
|
-
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
|
|
1124
|
-
dom.parentNode.appendChild(modalDom);
|
|
1125
|
-
} else {
|
|
1126
|
-
document.body.appendChild(modalDom);
|
|
1127
|
-
}
|
|
1128
|
-
if (zIndex) {
|
|
1129
|
-
modalDom.style.zIndex = zIndex;
|
|
1130
|
-
}
|
|
1131
|
-
modalDom.tabIndex = 0;
|
|
1132
|
-
modalDom.style.display = '';
|
|
1133
|
-
this.modalStack.push({
|
|
1134
|
-
id: id,
|
|
1135
|
-
zIndex: zIndex,
|
|
1136
|
-
modalClass: modalClass
|
|
1137
|
-
});
|
|
1138
|
-
},
|
|
1139
|
-
closeModal: function closeModal(id) {
|
|
1140
|
-
var modalStack = this.modalStack;
|
|
1141
|
-
var modalDom = popup_manager_getModal();
|
|
1142
|
-
if (modalStack.length > 0) {
|
|
1143
|
-
var topItem = modalStack[modalStack.length - 1];
|
|
1144
|
-
if (topItem.id === id) {
|
|
1145
|
-
if (topItem.modalClass) {
|
|
1146
|
-
var classArr = topItem.modalClass.trim().split(/\s+/);
|
|
1147
|
-
classArr.forEach(function (item) {
|
|
1148
|
-
return Object(utils_dom["i" /* removeClass */])(modalDom, item);
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
modalStack.pop();
|
|
1152
|
-
if (modalStack.length > 0) {
|
|
1153
|
-
modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
|
|
1154
|
-
}
|
|
1155
|
-
} else {
|
|
1156
|
-
for (var i = modalStack.length - 1; i >= 0; i--) {
|
|
1157
|
-
if (modalStack[i].id === id) {
|
|
1158
|
-
modalStack.splice(i, 1);
|
|
1159
|
-
break;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
if (modalStack.length === 0) {
|
|
1165
|
-
if (this.modalFade) {
|
|
1166
|
-
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
|
|
1167
|
-
}
|
|
1168
|
-
setTimeout(function () {
|
|
1169
|
-
if (modalStack.length === 0) {
|
|
1170
|
-
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
|
1171
|
-
modalDom.style.display = 'none';
|
|
1172
|
-
PopupManager.modalDom = undefined;
|
|
1173
|
-
}
|
|
1174
|
-
Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
|
|
1175
|
-
}, 200);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
Object.defineProperty(PopupManager, 'zIndex', {
|
|
1180
|
-
configurable: true,
|
|
1181
|
-
get: function get() {
|
|
1182
|
-
if (!hasInitZIndex) {
|
|
1183
|
-
popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
|
|
1184
|
-
hasInitZIndex = true;
|
|
1185
|
-
}
|
|
1186
|
-
return popup_manager_zIndex;
|
|
1187
|
-
},
|
|
1188
|
-
set: function set(value) {
|
|
1189
|
-
popup_manager_zIndex = value;
|
|
1190
|
-
}
|
|
1191
|
-
});
|
|
1192
|
-
var popup_manager_getTopPopup = function getTopPopup() {
|
|
1193
|
-
if (external_vue_default.a.prototype.$isServer) return;
|
|
1194
|
-
if (PopupManager.modalStack.length > 0) {
|
|
1195
|
-
var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
|
1196
|
-
if (!topPopup) return;
|
|
1197
|
-
var instance = PopupManager.getInstance(topPopup.id);
|
|
1198
|
-
return instance;
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
if (!external_vue_default.a.prototype.$isServer) {
|
|
1202
|
-
// handle `esc` key when the popup is shown
|
|
1203
|
-
window.addEventListener('keydown', function (event) {
|
|
1204
|
-
if (event.keyCode === 27) {
|
|
1205
|
-
var topPopup = popup_manager_getTopPopup();
|
|
1206
|
-
if (topPopup && topPopup.closeOnPressEscape) {
|
|
1207
|
-
topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
/* harmony default export */ var popup_manager = (PopupManager);
|
|
1213
|
-
// EXTERNAL MODULE: ./src/utils/scrollbar-width.js
|
|
1214
|
-
var scrollbar_width = __webpack_require__(23);
|
|
1215
|
-
|
|
1216
|
-
// CONCATENATED MODULE: ./src/utils/popup/index.js
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
var idSeed = 1;
|
|
1224
|
-
var scrollBarWidth;
|
|
1225
|
-
/* harmony default export */ var popup = __webpack_exports__["b"] = ({
|
|
1226
|
-
props: {
|
|
1227
|
-
visible: {
|
|
1228
|
-
type: Boolean,
|
|
1229
|
-
default: false
|
|
1230
|
-
},
|
|
1231
|
-
openDelay: {},
|
|
1232
|
-
closeDelay: {},
|
|
1233
|
-
zIndex: {},
|
|
1234
|
-
modal: {
|
|
1235
|
-
type: Boolean,
|
|
1236
|
-
default: false
|
|
1237
|
-
},
|
|
1238
|
-
modalFade: {
|
|
1239
|
-
type: Boolean,
|
|
1240
|
-
default: true
|
|
1241
|
-
},
|
|
1242
|
-
modalClass: {},
|
|
1243
|
-
modalAppendToBody: {
|
|
1244
|
-
type: Boolean,
|
|
1245
|
-
default: false
|
|
1246
|
-
},
|
|
1247
|
-
lockScroll: {
|
|
1248
|
-
type: Boolean,
|
|
1249
|
-
default: true
|
|
1250
|
-
},
|
|
1251
|
-
closeOnPressEscape: {
|
|
1252
|
-
type: Boolean,
|
|
1253
|
-
default: false
|
|
1254
|
-
},
|
|
1255
|
-
closeOnClickModal: {
|
|
1256
|
-
type: Boolean,
|
|
1257
|
-
default: false
|
|
1258
|
-
}
|
|
1259
|
-
},
|
|
1260
|
-
beforeMount: function beforeMount() {
|
|
1261
|
-
this._popupId = 'popup-' + idSeed++;
|
|
1262
|
-
popup_manager.register(this._popupId, this);
|
|
1263
|
-
},
|
|
1264
|
-
beforeDestroy: function beforeDestroy() {
|
|
1265
|
-
popup_manager.deregister(this._popupId);
|
|
1266
|
-
popup_manager.closeModal(this._popupId);
|
|
1267
|
-
this.restoreBodyStyle();
|
|
1268
|
-
},
|
|
1269
|
-
data: function data() {
|
|
1270
|
-
return {
|
|
1271
|
-
opened: false,
|
|
1272
|
-
bodyPaddingRight: null,
|
|
1273
|
-
computedBodyPaddingRight: 0,
|
|
1274
|
-
withoutHiddenClass: true,
|
|
1275
|
-
rendered: false
|
|
1276
|
-
};
|
|
1277
|
-
},
|
|
1278
|
-
watch: {
|
|
1279
|
-
visible: function visible(val) {
|
|
1280
|
-
var _this = this;
|
|
1281
|
-
if (val) {
|
|
1282
|
-
if (this._opening) return;
|
|
1283
|
-
if (!this.rendered) {
|
|
1284
|
-
this.rendered = true;
|
|
1285
|
-
external_vue_default.a.nextTick(function () {
|
|
1286
|
-
_this.open();
|
|
1287
|
-
});
|
|
1288
|
-
} else {
|
|
1289
|
-
this.open();
|
|
1290
|
-
}
|
|
1291
|
-
} else {
|
|
1292
|
-
this.close();
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
methods: {
|
|
1297
|
-
open: function open(options) {
|
|
1298
|
-
var _this2 = this;
|
|
1299
|
-
if (!this.rendered) {
|
|
1300
|
-
this.rendered = true;
|
|
1301
|
-
}
|
|
1302
|
-
var props = Object(merge["a" /* default */])({}, this.$props || this, options);
|
|
1303
|
-
if (this._closeTimer) {
|
|
1304
|
-
clearTimeout(this._closeTimer);
|
|
1305
|
-
this._closeTimer = null;
|
|
1306
|
-
}
|
|
1307
|
-
clearTimeout(this._openTimer);
|
|
1308
|
-
var openDelay = Number(props.openDelay);
|
|
1309
|
-
if (openDelay > 0) {
|
|
1310
|
-
this._openTimer = setTimeout(function () {
|
|
1311
|
-
_this2._openTimer = null;
|
|
1312
|
-
_this2.doOpen(props);
|
|
1313
|
-
}, openDelay);
|
|
1314
|
-
} else {
|
|
1315
|
-
this.doOpen(props);
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
doOpen: function doOpen(props) {
|
|
1319
|
-
if (this.$isServer) return;
|
|
1320
|
-
if (this.willOpen && !this.willOpen()) return;
|
|
1321
|
-
if (this.opened) return;
|
|
1322
|
-
this._opening = true;
|
|
1323
|
-
var dom = this.$el;
|
|
1324
|
-
var modal = props.modal;
|
|
1325
|
-
var zIndex = props.zIndex;
|
|
1326
|
-
if (zIndex) {
|
|
1327
|
-
popup_manager.zIndex = zIndex;
|
|
1328
|
-
}
|
|
1329
|
-
if (modal) {
|
|
1330
|
-
if (this._closing) {
|
|
1331
|
-
popup_manager.closeModal(this._popupId);
|
|
1332
|
-
this._closing = false;
|
|
1333
|
-
}
|
|
1334
|
-
popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
|
|
1335
|
-
if (props.lockScroll) {
|
|
1336
|
-
this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
|
|
1337
|
-
if (this.withoutHiddenClass) {
|
|
1338
|
-
this.bodyPaddingRight = document.body.style.paddingRight;
|
|
1339
|
-
this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
|
|
1340
|
-
}
|
|
1341
|
-
scrollBarWidth = Object(scrollbar_width["a" /* default */])();
|
|
1342
|
-
var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
1343
|
-
var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
|
|
1344
|
-
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
|
|
1345
|
-
document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
|
|
1346
|
-
}
|
|
1347
|
-
Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
if (getComputedStyle(dom).position === 'static') {
|
|
1351
|
-
dom.style.position = 'absolute';
|
|
1352
|
-
}
|
|
1353
|
-
dom.style.zIndex = popup_manager.nextZIndex();
|
|
1354
|
-
this.opened = true;
|
|
1355
|
-
this.onOpen && this.onOpen();
|
|
1356
|
-
this.doAfterOpen();
|
|
1357
|
-
},
|
|
1358
|
-
doAfterOpen: function doAfterOpen() {
|
|
1359
|
-
this._opening = false;
|
|
1360
|
-
},
|
|
1361
|
-
close: function close() {
|
|
1362
|
-
var _this3 = this;
|
|
1363
|
-
if (this.willClose && !this.willClose()) return;
|
|
1364
|
-
if (this._openTimer !== null) {
|
|
1365
|
-
clearTimeout(this._openTimer);
|
|
1366
|
-
this._openTimer = null;
|
|
1367
|
-
}
|
|
1368
|
-
clearTimeout(this._closeTimer);
|
|
1369
|
-
var closeDelay = Number(this.closeDelay);
|
|
1370
|
-
if (closeDelay > 0) {
|
|
1371
|
-
this._closeTimer = setTimeout(function () {
|
|
1372
|
-
_this3._closeTimer = null;
|
|
1373
|
-
_this3.doClose();
|
|
1374
|
-
}, closeDelay);
|
|
1375
|
-
} else {
|
|
1376
|
-
this.doClose();
|
|
1377
|
-
}
|
|
1378
|
-
},
|
|
1379
|
-
doClose: function doClose() {
|
|
1380
|
-
this._closing = true;
|
|
1381
|
-
this.onClose && this.onClose();
|
|
1382
|
-
if (this.lockScroll) {
|
|
1383
|
-
setTimeout(this.restoreBodyStyle, 200);
|
|
1384
|
-
}
|
|
1385
|
-
this.opened = false;
|
|
1386
|
-
this.doAfterClose();
|
|
1387
|
-
},
|
|
1388
|
-
doAfterClose: function doAfterClose() {
|
|
1389
|
-
popup_manager.closeModal(this._popupId);
|
|
1390
|
-
this._closing = false;
|
|
1391
|
-
},
|
|
1392
|
-
restoreBodyStyle: function restoreBodyStyle() {
|
|
1393
|
-
if (this.modal && this.withoutHiddenClass) {
|
|
1394
|
-
document.body.style.paddingRight = this.bodyPaddingRight;
|
|
1395
|
-
Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
|
|
1396
|
-
}
|
|
1397
|
-
this.withoutHiddenClass = true;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
});
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
/***/ }),
|
|
1404
|
-
/* 25 */
|
|
1405
|
-
/***/ (function(module, exports) {
|
|
1406
|
-
|
|
1407
|
-
module.exports = require("core-js/modules/es.array-buffer.constructor.js");
|
|
1408
|
-
|
|
1409
|
-
/***/ }),
|
|
1410
|
-
/* 26 */
|
|
1411
|
-
/***/ (function(module, exports) {
|
|
1412
|
-
|
|
1413
|
-
module.exports = require("core-js/modules/es.array-buffer.slice.js");
|
|
1414
|
-
|
|
1415
|
-
/***/ }),
|
|
1416
|
-
/* 27 */
|
|
1417
|
-
/***/ (function(module, exports) {
|
|
1418
|
-
|
|
1419
|
-
module.exports = require("core-js/modules/es.typed-array.int8-array.js");
|
|
1420
|
-
|
|
1421
|
-
/***/ }),
|
|
1422
|
-
/* 28 */
|
|
1423
|
-
/***/ (function(module, exports) {
|
|
1424
|
-
|
|
1425
|
-
module.exports = require("core-js/modules/es.typed-array.copy-within.js");
|
|
1426
|
-
|
|
1427
|
-
/***/ }),
|
|
1428
|
-
/* 29 */
|
|
1429
|
-
/***/ (function(module, exports) {
|
|
1430
|
-
|
|
1431
|
-
module.exports = require("core-js/modules/es.typed-array.every.js");
|
|
1432
|
-
|
|
1433
|
-
/***/ }),
|
|
1434
|
-
/* 30 */
|
|
1435
|
-
/***/ (function(module, exports) {
|
|
1436
|
-
|
|
1437
|
-
module.exports = require("core-js/modules/es.typed-array.fill.js");
|
|
1438
|
-
|
|
1439
|
-
/***/ }),
|
|
1440
|
-
/* 31 */
|
|
1441
|
-
/***/ (function(module, exports) {
|
|
1442
|
-
|
|
1443
|
-
module.exports = require("core-js/modules/es.typed-array.filter.js");
|
|
1444
|
-
|
|
1445
|
-
/***/ }),
|
|
1446
|
-
/* 32 */
|
|
1447
|
-
/***/ (function(module, exports) {
|
|
1448
|
-
|
|
1449
|
-
module.exports = require("core-js/modules/es.typed-array.find.js");
|
|
1450
|
-
|
|
1451
|
-
/***/ }),
|
|
1452
|
-
/* 33 */
|
|
1453
|
-
/***/ (function(module, exports) {
|
|
1454
|
-
|
|
1455
|
-
module.exports = require("core-js/modules/es.typed-array.find-index.js");
|
|
1456
|
-
|
|
1457
|
-
/***/ }),
|
|
1458
|
-
/* 34 */
|
|
1459
|
-
/***/ (function(module, exports) {
|
|
1460
|
-
|
|
1461
|
-
module.exports = require("core-js/modules/es.typed-array.for-each.js");
|
|
1462
|
-
|
|
1463
|
-
/***/ }),
|
|
1464
|
-
/* 35 */
|
|
1465
|
-
/***/ (function(module, exports) {
|
|
1466
|
-
|
|
1467
|
-
module.exports = require("core-js/modules/es.typed-array.includes.js");
|
|
1468
|
-
|
|
1469
|
-
/***/ }),
|
|
1470
|
-
/* 36 */
|
|
1471
|
-
/***/ (function(module, exports) {
|
|
1472
|
-
|
|
1473
|
-
module.exports = require("core-js/modules/es.typed-array.index-of.js");
|
|
1474
|
-
|
|
1475
|
-
/***/ }),
|
|
1476
|
-
/* 37 */
|
|
1477
|
-
/***/ (function(module, exports) {
|
|
1478
|
-
|
|
1479
|
-
module.exports = require("core-js/modules/es.typed-array.iterator.js");
|
|
1480
|
-
|
|
1481
|
-
/***/ }),
|
|
1482
|
-
/* 38 */
|
|
1483
|
-
/***/ (function(module, exports) {
|
|
1484
|
-
|
|
1485
|
-
module.exports = require("core-js/modules/es.typed-array.join.js");
|
|
1486
|
-
|
|
1487
|
-
/***/ }),
|
|
1488
|
-
/* 39 */
|
|
1489
|
-
/***/ (function(module, exports) {
|
|
1490
|
-
|
|
1491
|
-
module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
|
|
1492
|
-
|
|
1493
|
-
/***/ }),
|
|
1494
|
-
/* 40 */
|
|
1495
|
-
/***/ (function(module, exports) {
|
|
1496
|
-
|
|
1497
|
-
module.exports = require("core-js/modules/es.typed-array.map.js");
|
|
1498
|
-
|
|
1499
|
-
/***/ }),
|
|
1500
|
-
/* 41 */
|
|
1501
|
-
/***/ (function(module, exports) {
|
|
1502
|
-
|
|
1503
|
-
module.exports = require("core-js/modules/es.typed-array.reduce.js");
|
|
1504
|
-
|
|
1505
|
-
/***/ }),
|
|
1506
|
-
/* 42 */
|
|
1507
|
-
/***/ (function(module, exports) {
|
|
1508
|
-
|
|
1509
|
-
module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
|
|
1510
|
-
|
|
1511
|
-
/***/ }),
|
|
1512
|
-
/* 43 */
|
|
1513
|
-
/***/ (function(module, exports) {
|
|
1514
|
-
|
|
1515
|
-
module.exports = require("core-js/modules/es.typed-array.reverse.js");
|
|
1516
|
-
|
|
1517
|
-
/***/ }),
|
|
1518
|
-
/* 44 */
|
|
1519
|
-
/***/ (function(module, exports) {
|
|
1520
|
-
|
|
1521
|
-
module.exports = require("core-js/modules/es.typed-array.set.js");
|
|
1522
|
-
|
|
1523
|
-
/***/ }),
|
|
1524
|
-
/* 45 */
|
|
1525
|
-
/***/ (function(module, exports) {
|
|
1526
|
-
|
|
1527
|
-
module.exports = require("core-js/modules/es.typed-array.slice.js");
|
|
1528
|
-
|
|
1529
|
-
/***/ }),
|
|
1530
|
-
/* 46 */
|
|
1531
|
-
/***/ (function(module, exports) {
|
|
1532
|
-
|
|
1533
|
-
module.exports = require("core-js/modules/es.typed-array.some.js");
|
|
1534
|
-
|
|
1535
|
-
/***/ }),
|
|
1536
|
-
/* 47 */
|
|
1537
|
-
/***/ (function(module, exports) {
|
|
1538
|
-
|
|
1539
|
-
module.exports = require("core-js/modules/es.typed-array.sort.js");
|
|
1540
|
-
|
|
1541
|
-
/***/ }),
|
|
1542
|
-
/* 48 */
|
|
1543
|
-
/***/ (function(module, exports) {
|
|
1544
|
-
|
|
1545
|
-
module.exports = require("core-js/modules/es.typed-array.subarray.js");
|
|
1546
|
-
|
|
1547
|
-
/***/ }),
|
|
1548
|
-
/* 49 */
|
|
1549
|
-
/***/ (function(module, exports) {
|
|
1550
|
-
|
|
1551
|
-
module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
1552
|
-
|
|
1553
|
-
/***/ }),
|
|
1554
|
-
/* 50 */
|
|
1555
|
-
/***/ (function(module, exports) {
|
|
1556
|
-
|
|
1557
|
-
module.exports = require("core-js/modules/es.typed-array.to-string.js");
|
|
1558
|
-
|
|
1559
|
-
/***/ }),
|
|
1560
|
-
/* 51 */
|
|
1561
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1562
|
-
|
|
1563
|
-
"use strict";
|
|
1564
|
-
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
1565
|
-
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1566
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
1567
|
-
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
1568
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1569
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
1570
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
|
|
1571
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
|
|
1572
|
-
/* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(71);
|
|
1579
|
-
var stop = function stop(e) {
|
|
1580
|
-
return e.stopPropagation();
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
|
|
1585
|
-
* @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
|
|
1586
|
-
* @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
|
|
1587
|
-
* @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
|
|
1588
|
-
* @param {Boolean} [visible=false] Visibility of the popup element.
|
|
1589
|
-
* @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
|
|
1590
|
-
*/
|
|
1591
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1592
|
-
props: {
|
|
1593
|
-
transformOrigin: {
|
|
1594
|
-
type: [Boolean, String],
|
|
1595
|
-
default: true
|
|
1596
|
-
},
|
|
1597
|
-
placement: {
|
|
1598
|
-
type: String,
|
|
1599
|
-
default: 'bottom'
|
|
1600
|
-
},
|
|
1601
|
-
boundariesPadding: {
|
|
1602
|
-
type: Number,
|
|
1603
|
-
default: 5
|
|
1604
|
-
},
|
|
1605
|
-
reference: {},
|
|
1606
|
-
popper: {},
|
|
1607
|
-
offset: {
|
|
1608
|
-
default: 0
|
|
1609
|
-
},
|
|
1610
|
-
value: Boolean,
|
|
1611
|
-
visibleArrow: Boolean,
|
|
1612
|
-
arrowOffset: {
|
|
1613
|
-
type: Number,
|
|
1614
|
-
default: 35
|
|
1615
|
-
},
|
|
1616
|
-
appendToBody: {
|
|
1617
|
-
type: Boolean,
|
|
1618
|
-
default: true
|
|
1619
|
-
},
|
|
1620
|
-
popperOptions: {
|
|
1621
|
-
type: Object,
|
|
1622
|
-
default: function _default() {
|
|
1623
|
-
return {
|
|
1624
|
-
gpuAcceleration: false
|
|
1625
|
-
};
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
},
|
|
1629
|
-
data: function data() {
|
|
1630
|
-
return {
|
|
1631
|
-
showPopper: false,
|
|
1632
|
-
currentPlacement: ''
|
|
1633
|
-
};
|
|
1634
|
-
},
|
|
1635
|
-
watch: {
|
|
1636
|
-
value: {
|
|
1637
|
-
immediate: true,
|
|
1638
|
-
handler: function handler(val) {
|
|
1639
|
-
this.showPopper = val;
|
|
1640
|
-
this.$emit('input', val);
|
|
1641
|
-
}
|
|
1642
|
-
},
|
|
1643
|
-
showPopper: function showPopper(val) {
|
|
1644
|
-
if (this.disabled) return;
|
|
1645
|
-
val ? this.updatePopper() : this.destroyPopper();
|
|
1646
|
-
this.$emit('input', val);
|
|
1647
|
-
}
|
|
1648
|
-
},
|
|
1649
|
-
methods: {
|
|
1650
|
-
createPopper: function createPopper() {
|
|
1651
|
-
var _this = this;
|
|
1652
|
-
if (this.$isServer) return;
|
|
1653
|
-
this.currentPlacement = this.currentPlacement || this.placement;
|
|
1654
|
-
if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
|
|
1655
|
-
return;
|
|
1656
|
-
}
|
|
1657
|
-
var options = this.popperOptions;
|
|
1658
|
-
var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
|
1659
|
-
var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
|
1660
|
-
if (!reference && this.$slots.reference && this.$slots.reference[0]) {
|
|
1661
|
-
reference = this.referenceElm = this.$slots.reference[0].elm;
|
|
1662
|
-
}
|
|
1663
|
-
if (!popper || !reference) return;
|
|
1664
|
-
if (this.visibleArrow) this.appendArrow(popper);
|
|
1665
|
-
if (this.appendToBody) document.body.appendChild(this.popperElm);
|
|
1666
|
-
if (this.popperJS && this.popperJS.destroy) {
|
|
1667
|
-
this.popperJS.destroy();
|
|
1668
|
-
}
|
|
1669
|
-
options.placement = this.currentPlacement;
|
|
1670
|
-
options.offset = this.offset;
|
|
1671
|
-
options.arrowOffset = this.arrowOffset;
|
|
1672
|
-
this.popperJS = new PopperJS(reference, popper, options);
|
|
1673
|
-
this.popperJS.onCreate(function (_) {
|
|
1674
|
-
_this.$emit('created', _this);
|
|
1675
|
-
_this.resetTransformOrigin();
|
|
1676
|
-
_this.$nextTick(_this.updatePopper);
|
|
1677
|
-
});
|
|
1678
|
-
if (typeof options.onUpdate === 'function') {
|
|
1679
|
-
this.popperJS.onUpdate(options.onUpdate);
|
|
1680
|
-
}
|
|
1681
|
-
this.popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
|
|
1682
|
-
this.popperElm.addEventListener('click', stop);
|
|
1683
|
-
},
|
|
1684
|
-
updatePopper: function updatePopper() {
|
|
1685
|
-
var popperJS = this.popperJS;
|
|
1686
|
-
if (popperJS) {
|
|
1687
|
-
popperJS.update();
|
|
1688
|
-
if (popperJS._popper) {
|
|
1689
|
-
popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
|
|
1690
|
-
}
|
|
1691
|
-
} else {
|
|
1692
|
-
this.createPopper();
|
|
1693
|
-
}
|
|
1694
|
-
},
|
|
1695
|
-
doDestroy: function doDestroy(forceDestroy) {
|
|
1696
|
-
/* istanbul ignore if */
|
|
1697
|
-
if (!this.popperJS || this.showPopper && !forceDestroy) return;
|
|
1698
|
-
this.popperJS.destroy();
|
|
1699
|
-
this.popperJS = null;
|
|
1700
|
-
},
|
|
1701
|
-
destroyPopper: function destroyPopper() {
|
|
1702
|
-
if (this.popperJS) {
|
|
1703
|
-
this.resetTransformOrigin();
|
|
1704
|
-
}
|
|
1705
|
-
},
|
|
1706
|
-
resetTransformOrigin: function resetTransformOrigin() {
|
|
1707
|
-
if (!this.transformOrigin) return;
|
|
1708
|
-
var placementMap = {
|
|
1709
|
-
top: 'bottom',
|
|
1710
|
-
bottom: 'top',
|
|
1711
|
-
left: 'right',
|
|
1712
|
-
right: 'left'
|
|
1713
|
-
};
|
|
1714
|
-
var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
|
|
1715
|
-
var origin = placementMap[placement];
|
|
1716
|
-
this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? "center " + origin : origin + " center";
|
|
1717
|
-
},
|
|
1718
|
-
appendArrow: function appendArrow(element) {
|
|
1719
|
-
var hash;
|
|
1720
|
-
if (this.appended) {
|
|
1721
|
-
return;
|
|
1722
|
-
}
|
|
1723
|
-
this.appended = true;
|
|
1724
|
-
for (var item in element.attributes) {
|
|
1725
|
-
if (/^_v-/.test(element.attributes[item].name)) {
|
|
1726
|
-
hash = element.attributes[item].name;
|
|
1727
|
-
break;
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
var arrow = document.createElement('div');
|
|
1731
|
-
if (hash) {
|
|
1732
|
-
arrow.setAttribute(hash, '');
|
|
1733
|
-
}
|
|
1734
|
-
arrow.setAttribute('x-arrow', '');
|
|
1735
|
-
arrow.className = 'popper__arrow';
|
|
1736
|
-
element.appendChild(arrow);
|
|
1737
|
-
}
|
|
1738
|
-
},
|
|
1739
|
-
beforeDestroy: function beforeDestroy() {
|
|
1740
|
-
this.doDestroy(true);
|
|
1741
|
-
if (this.popperElm && this.popperElm.parentNode === document.body) {
|
|
1742
|
-
this.popperElm.removeEventListener('click', stop);
|
|
1743
|
-
document.body.removeChild(this.popperElm);
|
|
1744
|
-
}
|
|
1745
|
-
},
|
|
1746
|
-
// call destroy in keep-alive mode
|
|
1747
|
-
deactivated: function deactivated() {
|
|
1748
|
-
this.$options.beforeDestroy[0].call(this);
|
|
1749
|
-
}
|
|
1750
|
-
});
|
|
1751
|
-
|
|
1752
|
-
/***/ }),
|
|
1753
|
-
/* 52 */,
|
|
1754
|
-
/* 53 */
|
|
1755
|
-
/***/ (function(module, exports) {
|
|
1756
|
-
|
|
1757
|
-
module.exports = require("core-js/modules/es.array.includes.js");
|
|
1758
|
-
|
|
1759
|
-
/***/ }),
|
|
1760
|
-
/* 54 */,
|
|
1761
|
-
/* 55 */,
|
|
1762
|
-
/* 56 */
|
|
1763
|
-
/***/ (function(module, exports) {
|
|
1764
|
-
|
|
1765
|
-
module.exports = require("core-js/modules/es.string.trim.js");
|
|
1766
|
-
|
|
1767
|
-
/***/ }),
|
|
1768
|
-
/* 57 */,
|
|
1769
|
-
/* 58 */,
|
|
1770
|
-
/* 59 */
|
|
1771
|
-
/***/ (function(module, exports) {
|
|
1772
|
-
|
|
1773
|
-
module.exports = require("core-js/modules/es.string.split.js");
|
|
1774
|
-
|
|
1775
|
-
/***/ }),
|
|
1776
|
-
/* 60 */
|
|
1777
|
-
/***/ (function(module, exports) {
|
|
1778
|
-
|
|
1779
|
-
module.exports = require("core-js/modules/es.object.assign.js");
|
|
1780
|
-
|
|
1781
|
-
/***/ }),
|
|
1782
|
-
/* 61 */,
|
|
1783
|
-
/* 62 */,
|
|
1784
|
-
/* 63 */,
|
|
1785
|
-
/* 64 */,
|
|
1786
|
-
/* 65 */,
|
|
1787
|
-
/* 66 */,
|
|
1788
|
-
/* 67 */,
|
|
1789
|
-
/* 68 */,
|
|
1790
|
-
/* 69 */,
|
|
1791
|
-
/* 70 */,
|
|
1792
|
-
/* 71 */
|
|
1793
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1794
|
-
|
|
1795
|
-
"use strict";
|
|
1796
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1797
|
-
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
|
|
1798
|
-
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1799
|
-
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20);
|
|
1800
|
-
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
1801
|
-
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
1802
|
-
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
1803
|
-
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
|
|
1804
|
-
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
1805
|
-
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
|
|
1806
|
-
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
1807
|
-
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
|
|
1808
|
-
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
1809
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
1810
|
-
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
1811
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
|
|
1812
|
-
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
1813
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(11);
|
|
1814
|
-
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
1815
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(12);
|
|
1816
|
-
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
1817
|
-
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10);
|
|
1818
|
-
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
/**
|
|
1831
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
1832
|
-
* @version {{version}}
|
|
1833
|
-
* @license
|
|
1834
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
1835
|
-
*
|
|
1836
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1837
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
1838
|
-
* in the Software without restriction, including without limitation the rights
|
|
1839
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1840
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
1841
|
-
* furnished to do so, subject to the following conditions:
|
|
1842
|
-
*
|
|
1843
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
1844
|
-
* copies or substantial portions of the Software.
|
|
1845
|
-
*
|
|
1846
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1847
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1848
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1849
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1850
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1851
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1852
|
-
* SOFTWARE.
|
|
1853
|
-
*/
|
|
1854
|
-
|
|
1855
|
-
//
|
|
1856
|
-
// Cross module loader
|
|
1857
|
-
// Supported: Node, AMD, Browser globals
|
|
1858
|
-
//
|
|
1859
|
-
;
|
|
1860
|
-
(function (root, factory) {
|
|
1861
|
-
if (typeof define === 'function' && __webpack_require__(74)) {
|
|
1862
|
-
// AMD. Register as an anonymous module.
|
|
1863
|
-
define(factory);
|
|
1864
|
-
} else if ( true && module.exports) {
|
|
1865
|
-
// Node. Does not work with strict CommonJS, but
|
|
1866
|
-
// only CommonJS-like environments that support module.exports,
|
|
1867
|
-
// like Node.
|
|
1868
|
-
module.exports = factory();
|
|
1869
|
-
} else {
|
|
1870
|
-
// Browser globals (root is window)
|
|
1871
|
-
root.Popper = factory();
|
|
1872
|
-
}
|
|
1873
|
-
})(undefined, function () {
|
|
1874
|
-
'use strict';
|
|
1875
|
-
|
|
1876
|
-
var root = window;
|
|
1877
|
-
|
|
1878
|
-
// default options
|
|
1879
|
-
var DEFAULTS = {
|
|
1880
|
-
// placement of the popper
|
|
1881
|
-
placement: 'bottom',
|
|
1882
|
-
gpuAcceleration: true,
|
|
1883
|
-
// shift popper from its origin by the given amount of pixels (can be negative)
|
|
1884
|
-
offset: 0,
|
|
1885
|
-
// the element which will act as boundary of the popper
|
|
1886
|
-
boundariesElement: 'viewport',
|
|
1887
|
-
// amount of pixel used to define a minimum distance between the boundaries and the popper
|
|
1888
|
-
boundariesPadding: 5,
|
|
1889
|
-
// popper will try to prevent overflow following this order,
|
|
1890
|
-
// by default, then, it could overflow on the left and on top of the boundariesElement
|
|
1891
|
-
preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
|
|
1892
|
-
// the behavior used by flip to change the placement of the popper
|
|
1893
|
-
flipBehavior: 'flip',
|
|
1894
|
-
arrowElement: '[x-arrow]',
|
|
1895
|
-
arrowOffset: 0,
|
|
1896
|
-
// list of functions used to modify the offsets before they are applied to the popper
|
|
1897
|
-
modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
|
|
1898
|
-
modifiersIgnored: [],
|
|
1899
|
-
forceAbsolute: false
|
|
1900
|
-
};
|
|
1901
|
-
|
|
1902
|
-
/**
|
|
1903
|
-
* Create a new Popper.js instance
|
|
1904
|
-
* @constructor Popper
|
|
1905
|
-
* @param {HTMLElement} reference - The reference element used to position the popper
|
|
1906
|
-
* @param {HTMLElement|Object} popper
|
|
1907
|
-
* The HTML element used as popper, or a configuration used to generate the popper.
|
|
1908
|
-
* @param {String} [popper.tagName='div'] The tag name of the generated popper.
|
|
1909
|
-
* @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
|
|
1910
|
-
* @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
|
|
1911
|
-
* @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
|
|
1912
|
-
* @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
|
|
1913
|
-
* @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
|
|
1914
|
-
* @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
|
|
1915
|
-
* @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
|
|
1916
|
-
* @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
|
|
1917
|
-
* @param {Object} options
|
|
1918
|
-
* @param {String} [options.placement=bottom]
|
|
1919
|
-
* Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
|
|
1920
|
-
* left(-start, -end)`
|
|
1921
|
-
*
|
|
1922
|
-
* @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
|
|
1923
|
-
* The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
|
|
1924
|
-
* its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
|
|
1925
|
-
* reference element.
|
|
1926
|
-
* By default, it will look for a child node of the popper with the `x-arrow` attribute.
|
|
1927
|
-
*
|
|
1928
|
-
* @param {Boolean} [options.gpuAcceleration=true]
|
|
1929
|
-
* When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
|
|
1930
|
-
* browser to use the GPU to accelerate the rendering.
|
|
1931
|
-
* If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
|
|
1932
|
-
*
|
|
1933
|
-
* @param {Number} [options.offset=0]
|
|
1934
|
-
* Amount of pixels the popper will be shifted (can be negative).
|
|
1935
|
-
*
|
|
1936
|
-
* @param {String|Element} [options.boundariesElement='viewport']
|
|
1937
|
-
* The element which will define the boundaries of the popper position, the popper will never be placed outside
|
|
1938
|
-
* of the defined boundaries (except if `keepTogether` is enabled)
|
|
1939
|
-
*
|
|
1940
|
-
* @param {Number} [options.boundariesPadding=5]
|
|
1941
|
-
* Additional padding for the boundaries
|
|
1942
|
-
*
|
|
1943
|
-
* @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
|
|
1944
|
-
* Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
|
|
1945
|
-
* this means that the last ones will never overflow
|
|
1946
|
-
*
|
|
1947
|
-
* @param {String|Array} [options.flipBehavior='flip']
|
|
1948
|
-
* The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
|
|
1949
|
-
* overlap its reference element. Defining `flip` as value, the placement will be flipped on
|
|
1950
|
-
* its axis (`right - left`, `top - bottom`).
|
|
1951
|
-
* You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
|
|
1952
|
-
* how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
|
|
1953
|
-
* then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
|
|
1954
|
-
*
|
|
1955
|
-
* @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
|
|
1956
|
-
* List of functions used to modify the data before they are applied to the popper, add your custom functions
|
|
1957
|
-
* to this array to edit the offsets and placement.
|
|
1958
|
-
* The function should reflect the @params and @returns of preventOverflow
|
|
1959
|
-
*
|
|
1960
|
-
* @param {Array} [options.modifiersIgnored=[]]
|
|
1961
|
-
* Put here any built-in modifier name you want to exclude from the modifiers list
|
|
1962
|
-
* The function should reflect the @params and @returns of preventOverflow
|
|
1963
|
-
*
|
|
1964
|
-
* @param {Boolean} [options.removeOnDestroy=false]
|
|
1965
|
-
* Set to true if you want to automatically remove the popper when you call the `destroy` method.
|
|
1966
|
-
*/
|
|
1967
|
-
function Popper(reference, popper, options) {
|
|
1968
|
-
this._reference = reference.jquery ? reference[0] : reference;
|
|
1969
|
-
this.state = {};
|
|
1970
|
-
|
|
1971
|
-
// if the popper variable is a configuration object, parse it to generate an HTMLElement
|
|
1972
|
-
// generate a default popper if is not defined
|
|
1973
|
-
var isNotDefined = typeof popper === 'undefined' || popper === null;
|
|
1974
|
-
var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
|
|
1975
|
-
if (isNotDefined || isConfig) {
|
|
1976
|
-
this._popper = this.parse(isConfig ? popper : {});
|
|
1977
|
-
}
|
|
1978
|
-
// otherwise, use the given HTMLElement as popper
|
|
1979
|
-
else {
|
|
1980
|
-
this._popper = popper.jquery ? popper[0] : popper;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
// with {} we create a new object with the options inside it
|
|
1984
|
-
this._options = Object.assign({}, DEFAULTS, options);
|
|
1985
|
-
|
|
1986
|
-
// refactoring modifiers' list
|
|
1987
|
-
this._options.modifiers = this._options.modifiers.map(function (modifier) {
|
|
1988
|
-
// remove ignored modifiers
|
|
1989
|
-
if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
|
|
1990
|
-
|
|
1991
|
-
// set the x-placement attribute before everything else because it could be used to add margins to the popper
|
|
1992
|
-
// margins needs to be calculated to get the correct popper offsets
|
|
1993
|
-
if (modifier === 'applyStyle') {
|
|
1994
|
-
this._popper.setAttribute('x-placement', this._options.placement);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
// return predefined modifier identified by string or keep the custom one
|
|
1998
|
-
return this.modifiers[modifier] || modifier;
|
|
1999
|
-
}.bind(this));
|
|
2000
|
-
|
|
2001
|
-
// make sure to apply the popper position before any computation
|
|
2002
|
-
this.state.position = this._getPosition(this._popper, this._reference);
|
|
2003
|
-
setStyle(this._popper, {
|
|
2004
|
-
position: this.state.position,
|
|
2005
|
-
top: 0
|
|
2006
|
-
});
|
|
88
|
+
/******/ ({
|
|
2007
89
|
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
// setup event listeners, they will take care of update the position in specific situations
|
|
2012
|
-
this._setupEventListeners();
|
|
2013
|
-
return this;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
//
|
|
2017
|
-
// Methods
|
|
2018
|
-
//
|
|
2019
|
-
/**
|
|
2020
|
-
* Destroy the popper
|
|
2021
|
-
* @method
|
|
2022
|
-
* @memberof Popper
|
|
2023
|
-
*/
|
|
2024
|
-
Popper.prototype.destroy = function () {
|
|
2025
|
-
this._popper.removeAttribute('x-placement');
|
|
2026
|
-
this._popper.style.left = '';
|
|
2027
|
-
this._popper.style.position = '';
|
|
2028
|
-
this._popper.style.top = '';
|
|
2029
|
-
this._popper.style[getSupportedPropertyName('transform')] = '';
|
|
2030
|
-
this._removeEventListeners();
|
|
2031
|
-
|
|
2032
|
-
// remove the popper if user explicity asked for the deletion on destroy
|
|
2033
|
-
if (this._options.removeOnDestroy) {
|
|
2034
|
-
this._popper.remove();
|
|
2035
|
-
}
|
|
2036
|
-
return this;
|
|
2037
|
-
};
|
|
2038
|
-
|
|
2039
|
-
/**
|
|
2040
|
-
* Updates the position of the popper, computing the new offsets and applying the new style
|
|
2041
|
-
* @method
|
|
2042
|
-
* @memberof Popper
|
|
2043
|
-
*/
|
|
2044
|
-
Popper.prototype.update = function () {
|
|
2045
|
-
var data = {
|
|
2046
|
-
instance: this,
|
|
2047
|
-
styles: {}
|
|
2048
|
-
};
|
|
2049
|
-
|
|
2050
|
-
// store placement inside the data object, modifiers will be able to edit `placement` if needed
|
|
2051
|
-
// and refer to _originalPlacement to know the original value
|
|
2052
|
-
data.placement = this._options.placement;
|
|
2053
|
-
data._originalPlacement = this._options.placement;
|
|
2054
|
-
|
|
2055
|
-
// compute the popper and reference offsets and put them inside data.offsets
|
|
2056
|
-
data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
|
|
2057
|
-
|
|
2058
|
-
// get boundaries
|
|
2059
|
-
data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
|
|
2060
|
-
data = this.runModifiers(data, this._options.modifiers);
|
|
2061
|
-
if (typeof this.state.updateCallback === 'function') {
|
|
2062
|
-
this.state.updateCallback(data);
|
|
2063
|
-
}
|
|
2064
|
-
};
|
|
2065
|
-
|
|
2066
|
-
/**
|
|
2067
|
-
* If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
|
|
2068
|
-
* @method
|
|
2069
|
-
* @memberof Popper
|
|
2070
|
-
* @param {Function} callback
|
|
2071
|
-
*/
|
|
2072
|
-
Popper.prototype.onCreate = function (callback) {
|
|
2073
|
-
// the createCallbacks return as first argument the popper instance
|
|
2074
|
-
callback(this);
|
|
2075
|
-
return this;
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
/**
|
|
2079
|
-
* If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
|
|
2080
|
-
* used to style popper and its arrow.
|
|
2081
|
-
* NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
|
|
2082
|
-
* @method
|
|
2083
|
-
* @memberof Popper
|
|
2084
|
-
* @param {Function} callback
|
|
2085
|
-
*/
|
|
2086
|
-
Popper.prototype.onUpdate = function (callback) {
|
|
2087
|
-
this.state.updateCallback = callback;
|
|
2088
|
-
return this;
|
|
2089
|
-
};
|
|
2090
|
-
|
|
2091
|
-
/**
|
|
2092
|
-
* Helper used to generate poppers from a configuration file
|
|
2093
|
-
* @method
|
|
2094
|
-
* @memberof Popper
|
|
2095
|
-
* @param config {Object} configuration
|
|
2096
|
-
* @returns {HTMLElement} popper
|
|
2097
|
-
*/
|
|
2098
|
-
Popper.prototype.parse = function (config) {
|
|
2099
|
-
var defaultConfig = {
|
|
2100
|
-
tagName: 'div',
|
|
2101
|
-
classNames: ['popper'],
|
|
2102
|
-
attributes: [],
|
|
2103
|
-
parent: root.document.body,
|
|
2104
|
-
content: '',
|
|
2105
|
-
contentType: 'text',
|
|
2106
|
-
arrowTagName: 'div',
|
|
2107
|
-
arrowClassNames: ['popper__arrow'],
|
|
2108
|
-
arrowAttributes: ['x-arrow']
|
|
2109
|
-
};
|
|
2110
|
-
config = Object.assign({}, defaultConfig, config);
|
|
2111
|
-
var d = root.document;
|
|
2112
|
-
var popper = d.createElement(config.tagName);
|
|
2113
|
-
addClassNames(popper, config.classNames);
|
|
2114
|
-
addAttributes(popper, config.attributes);
|
|
2115
|
-
if (config.contentType === 'node') {
|
|
2116
|
-
popper.appendChild(config.content.jquery ? config.content[0] : config.content);
|
|
2117
|
-
} else if (config.contentType === 'html') {
|
|
2118
|
-
popper.innerHTML = config.content;
|
|
2119
|
-
} else {
|
|
2120
|
-
popper.textContent = config.content;
|
|
2121
|
-
}
|
|
2122
|
-
if (config.arrowTagName) {
|
|
2123
|
-
var arrow = d.createElement(config.arrowTagName);
|
|
2124
|
-
addClassNames(arrow, config.arrowClassNames);
|
|
2125
|
-
addAttributes(arrow, config.arrowAttributes);
|
|
2126
|
-
popper.appendChild(arrow);
|
|
2127
|
-
}
|
|
2128
|
-
var parent = config.parent.jquery ? config.parent[0] : config.parent;
|
|
2129
|
-
|
|
2130
|
-
// if the given parent is a string, use it to match an element
|
|
2131
|
-
// if more than one element is matched, the first one will be used as parent
|
|
2132
|
-
// if no elements are matched, the script will throw an error
|
|
2133
|
-
if (typeof parent === 'string') {
|
|
2134
|
-
parent = d.querySelectorAll(config.parent);
|
|
2135
|
-
if (parent.length > 1) {
|
|
2136
|
-
console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
|
|
2137
|
-
}
|
|
2138
|
-
if (parent.length === 0) {
|
|
2139
|
-
throw 'ERROR: the given `parent` doesn\'t exists!';
|
|
2140
|
-
}
|
|
2141
|
-
parent = parent[0];
|
|
2142
|
-
}
|
|
2143
|
-
// if the given parent is a DOM nodes list or an array of nodes with more than one element,
|
|
2144
|
-
// the first one will be used as parent
|
|
2145
|
-
if (parent.length > 1 && parent instanceof Element === false) {
|
|
2146
|
-
console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
|
|
2147
|
-
parent = parent[0];
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
// append the generated popper to its parent
|
|
2151
|
-
parent.appendChild(popper);
|
|
2152
|
-
return popper;
|
|
2153
|
-
|
|
2154
|
-
/**
|
|
2155
|
-
* Adds class names to the given element
|
|
2156
|
-
* @function
|
|
2157
|
-
* @ignore
|
|
2158
|
-
* @param {HTMLElement} target
|
|
2159
|
-
* @param {Array} classes
|
|
2160
|
-
*/
|
|
2161
|
-
function addClassNames(element, classNames) {
|
|
2162
|
-
classNames.forEach(function (className) {
|
|
2163
|
-
element.classList.add(className);
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
/**
|
|
2168
|
-
* Adds attributes to the given element
|
|
2169
|
-
* @function
|
|
2170
|
-
* @ignore
|
|
2171
|
-
* @param {HTMLElement} target
|
|
2172
|
-
* @param {Array} attributes
|
|
2173
|
-
* @example
|
|
2174
|
-
* addAttributes(element, [ 'data-info:foobar' ]);
|
|
2175
|
-
*/
|
|
2176
|
-
function addAttributes(element, attributes) {
|
|
2177
|
-
attributes.forEach(function (attribute) {
|
|
2178
|
-
element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
};
|
|
2182
|
-
|
|
2183
|
-
/**
|
|
2184
|
-
* Helper used to get the position which will be applied to the popper
|
|
2185
|
-
* @method
|
|
2186
|
-
* @memberof Popper
|
|
2187
|
-
* @param config {HTMLElement} popper element
|
|
2188
|
-
* @param reference {HTMLElement} reference element
|
|
2189
|
-
* @returns {String} position
|
|
2190
|
-
*/
|
|
2191
|
-
Popper.prototype._getPosition = function (popper, reference) {
|
|
2192
|
-
var container = getOffsetParent(reference);
|
|
2193
|
-
if (this._options.forceAbsolute) {
|
|
2194
|
-
return 'absolute';
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
// Decide if the popper will be fixed
|
|
2198
|
-
// If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
|
|
2199
|
-
var isParentFixed = isFixed(reference, container);
|
|
2200
|
-
return isParentFixed ? 'fixed' : 'absolute';
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
/**
|
|
2204
|
-
* Get offsets to the popper
|
|
2205
|
-
* @method
|
|
2206
|
-
* @memberof Popper
|
|
2207
|
-
* @access private
|
|
2208
|
-
* @param {Element} popper - the popper element
|
|
2209
|
-
* @param {Element} reference - the reference element (the popper will be relative to this)
|
|
2210
|
-
* @returns {Object} An object containing the offsets which will be applied to the popper
|
|
2211
|
-
*/
|
|
2212
|
-
Popper.prototype._getOffsets = function (popper, reference, placement) {
|
|
2213
|
-
placement = placement.split('-')[0];
|
|
2214
|
-
var popperOffsets = {};
|
|
2215
|
-
popperOffsets.position = this.state.position;
|
|
2216
|
-
var isParentFixed = popperOffsets.position === 'fixed';
|
|
2217
|
-
|
|
2218
|
-
//
|
|
2219
|
-
// Get reference element position
|
|
2220
|
-
//
|
|
2221
|
-
var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
|
|
2222
|
-
|
|
2223
|
-
//
|
|
2224
|
-
// Get popper sizes
|
|
2225
|
-
//
|
|
2226
|
-
var popperRect = getOuterSizes(popper);
|
|
2227
|
-
|
|
2228
|
-
//
|
|
2229
|
-
// Compute offsets of popper
|
|
2230
|
-
//
|
|
2231
|
-
|
|
2232
|
-
// depending by the popper placement we have to compute its offsets slightly differently
|
|
2233
|
-
if (['right', 'left'].indexOf(placement) !== -1) {
|
|
2234
|
-
popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
|
|
2235
|
-
if (placement === 'left') {
|
|
2236
|
-
popperOffsets.left = referenceOffsets.left - popperRect.width;
|
|
2237
|
-
} else {
|
|
2238
|
-
popperOffsets.left = referenceOffsets.right;
|
|
2239
|
-
}
|
|
2240
|
-
} else {
|
|
2241
|
-
popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
|
|
2242
|
-
if (placement === 'top') {
|
|
2243
|
-
popperOffsets.top = referenceOffsets.top - popperRect.height;
|
|
2244
|
-
} else {
|
|
2245
|
-
popperOffsets.top = referenceOffsets.bottom;
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
// Add width and height to our offsets object
|
|
2250
|
-
popperOffsets.width = popperRect.width;
|
|
2251
|
-
popperOffsets.height = popperRect.height;
|
|
2252
|
-
return {
|
|
2253
|
-
popper: popperOffsets,
|
|
2254
|
-
reference: referenceOffsets
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
* Setup needed event listeners used to update the popper position
|
|
2260
|
-
* @method
|
|
2261
|
-
* @memberof Popper
|
|
2262
|
-
* @access private
|
|
2263
|
-
*/
|
|
2264
|
-
Popper.prototype._setupEventListeners = function () {
|
|
2265
|
-
// NOTE: 1 DOM access here
|
|
2266
|
-
this.state.updateBound = this.update.bind(this);
|
|
2267
|
-
root.addEventListener('resize', this.state.updateBound);
|
|
2268
|
-
// if the boundariesElement is window we don't need to listen for the scroll event
|
|
2269
|
-
if (this._options.boundariesElement !== 'window') {
|
|
2270
|
-
var target = getScrollParent(this._reference);
|
|
2271
|
-
// here it could be both `body` or `documentElement` thanks to Firefox, we then check both
|
|
2272
|
-
if (target === root.document.body || target === root.document.documentElement) {
|
|
2273
|
-
target = root;
|
|
2274
|
-
}
|
|
2275
|
-
target.addEventListener('scroll', this.state.updateBound);
|
|
2276
|
-
this.state.scrollTarget = target;
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* Remove event listeners used to update the popper position
|
|
2282
|
-
* @method
|
|
2283
|
-
* @memberof Popper
|
|
2284
|
-
* @access private
|
|
2285
|
-
*/
|
|
2286
|
-
Popper.prototype._removeEventListeners = function () {
|
|
2287
|
-
// NOTE: 1 DOM access here
|
|
2288
|
-
root.removeEventListener('resize', this.state.updateBound);
|
|
2289
|
-
if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
|
|
2290
|
-
this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
|
|
2291
|
-
this.state.scrollTarget = null;
|
|
2292
|
-
}
|
|
2293
|
-
this.state.updateBound = null;
|
|
2294
|
-
};
|
|
2295
|
-
|
|
2296
|
-
/**
|
|
2297
|
-
* Computed the boundaries limits and return them
|
|
2298
|
-
* @method
|
|
2299
|
-
* @memberof Popper
|
|
2300
|
-
* @access private
|
|
2301
|
-
* @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
|
|
2302
|
-
* @param {Number} padding - Boundaries padding
|
|
2303
|
-
* @param {Element} boundariesElement - Element used to define the boundaries
|
|
2304
|
-
* @returns {Object} Coordinates of the boundaries
|
|
2305
|
-
*/
|
|
2306
|
-
Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
|
|
2307
|
-
// NOTE: 1 DOM access here
|
|
2308
|
-
var boundaries = {};
|
|
2309
|
-
var width, height;
|
|
2310
|
-
if (boundariesElement === 'window') {
|
|
2311
|
-
var body = root.document.body,
|
|
2312
|
-
html = root.document.documentElement;
|
|
2313
|
-
height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
|
|
2314
|
-
width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
|
|
2315
|
-
boundaries = {
|
|
2316
|
-
top: 0,
|
|
2317
|
-
right: width,
|
|
2318
|
-
bottom: height,
|
|
2319
|
-
left: 0
|
|
2320
|
-
};
|
|
2321
|
-
} else if (boundariesElement === 'viewport') {
|
|
2322
|
-
var offsetParent = getOffsetParent(this._popper);
|
|
2323
|
-
var scrollParent = getScrollParent(this._popper);
|
|
2324
|
-
var offsetParentRect = getOffsetRect(offsetParent);
|
|
2325
|
-
|
|
2326
|
-
// Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
|
|
2327
|
-
var getScrollTopValue = function getScrollTopValue(element) {
|
|
2328
|
-
return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
|
|
2329
|
-
};
|
|
2330
|
-
var getScrollLeftValue = function getScrollLeftValue(element) {
|
|
2331
|
-
return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
|
-
// if the popper is fixed we don't have to substract scrolling from the boundaries
|
|
2335
|
-
var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
|
|
2336
|
-
var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
|
|
2337
|
-
boundaries = {
|
|
2338
|
-
top: 0 - (offsetParentRect.top - scrollTop),
|
|
2339
|
-
right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
|
|
2340
|
-
bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
|
|
2341
|
-
left: 0 - (offsetParentRect.left - scrollLeft)
|
|
2342
|
-
};
|
|
2343
|
-
} else {
|
|
2344
|
-
if (getOffsetParent(this._popper) === boundariesElement) {
|
|
2345
|
-
boundaries = {
|
|
2346
|
-
top: 0,
|
|
2347
|
-
left: 0,
|
|
2348
|
-
right: boundariesElement.clientWidth,
|
|
2349
|
-
bottom: boundariesElement.clientHeight
|
|
2350
|
-
};
|
|
2351
|
-
} else {
|
|
2352
|
-
boundaries = getOffsetRect(boundariesElement);
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
boundaries.left += padding;
|
|
2356
|
-
boundaries.right -= padding;
|
|
2357
|
-
boundaries.top = boundaries.top + padding;
|
|
2358
|
-
boundaries.bottom = boundaries.bottom - padding;
|
|
2359
|
-
return boundaries;
|
|
2360
|
-
};
|
|
2361
|
-
|
|
2362
|
-
/**
|
|
2363
|
-
* Loop trough the list of modifiers and run them in order, each of them will then edit the data object
|
|
2364
|
-
* @method
|
|
2365
|
-
* @memberof Popper
|
|
2366
|
-
* @access public
|
|
2367
|
-
* @param {Object} data
|
|
2368
|
-
* @param {Array} modifiers
|
|
2369
|
-
* @param {Function} ends
|
|
2370
|
-
*/
|
|
2371
|
-
Popper.prototype.runModifiers = function (data, modifiers, ends) {
|
|
2372
|
-
var modifiersToRun = modifiers.slice();
|
|
2373
|
-
if (ends !== undefined) {
|
|
2374
|
-
modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
|
|
2375
|
-
}
|
|
2376
|
-
modifiersToRun.forEach(function (modifier) {
|
|
2377
|
-
if (isFunction(modifier)) {
|
|
2378
|
-
data = modifier.call(this, data);
|
|
2379
|
-
}
|
|
2380
|
-
}.bind(this));
|
|
2381
|
-
return data;
|
|
2382
|
-
};
|
|
2383
|
-
|
|
2384
|
-
/**
|
|
2385
|
-
* Helper used to know if the given modifier depends from another one.
|
|
2386
|
-
* @method
|
|
2387
|
-
* @memberof Popper
|
|
2388
|
-
* @param {String} requesting - name of requesting modifier
|
|
2389
|
-
* @param {String} requested - name of requested modifier
|
|
2390
|
-
* @returns {Boolean}
|
|
2391
|
-
*/
|
|
2392
|
-
Popper.prototype.isModifierRequired = function (requesting, requested) {
|
|
2393
|
-
var index = getArrayKeyIndex(this._options.modifiers, requesting);
|
|
2394
|
-
return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
|
|
2395
|
-
return modifier === requested;
|
|
2396
|
-
}).length;
|
|
2397
|
-
};
|
|
2398
|
-
|
|
2399
|
-
//
|
|
2400
|
-
// Modifiers
|
|
2401
|
-
//
|
|
2402
|
-
|
|
2403
|
-
/**
|
|
2404
|
-
* Modifiers list
|
|
2405
|
-
* @namespace Popper.modifiers
|
|
2406
|
-
* @memberof Popper
|
|
2407
|
-
* @type {Object}
|
|
2408
|
-
*/
|
|
2409
|
-
Popper.prototype.modifiers = {};
|
|
2410
|
-
|
|
2411
|
-
/**
|
|
2412
|
-
* Apply the computed styles to the popper element
|
|
2413
|
-
* @method
|
|
2414
|
-
* @memberof Popper.modifiers
|
|
2415
|
-
* @argument {Object} data - The data object generated by `update` method
|
|
2416
|
-
* @returns {Object} The same data object
|
|
2417
|
-
*/
|
|
2418
|
-
Popper.prototype.modifiers.applyStyle = function (data) {
|
|
2419
|
-
// apply the final offsets to the popper
|
|
2420
|
-
// NOTE: 1 DOM access here
|
|
2421
|
-
var styles = {
|
|
2422
|
-
position: data.offsets.popper.position
|
|
2423
|
-
};
|
|
2424
|
-
|
|
2425
|
-
// round top and left to avoid blurry text
|
|
2426
|
-
var left = Math.round(data.offsets.popper.left);
|
|
2427
|
-
var top = Math.round(data.offsets.popper.top);
|
|
2428
|
-
|
|
2429
|
-
// if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
|
|
2430
|
-
// we automatically use the supported prefixed version if needed
|
|
2431
|
-
var prefixedProperty;
|
|
2432
|
-
if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
|
|
2433
|
-
styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
|
|
2434
|
-
styles.top = 0;
|
|
2435
|
-
styles.left = 0;
|
|
2436
|
-
}
|
|
2437
|
-
// othwerise, we use the standard `left` and `top` properties
|
|
2438
|
-
else {
|
|
2439
|
-
styles.left = left;
|
|
2440
|
-
styles.top = top;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
// any property present in `data.styles` will be applied to the popper,
|
|
2444
|
-
// in this way we can make the 3rd party modifiers add custom styles to it
|
|
2445
|
-
// Be aware, modifiers could override the properties defined in the previous
|
|
2446
|
-
// lines of this modifier!
|
|
2447
|
-
Object.assign(styles, data.styles);
|
|
2448
|
-
setStyle(this._popper, styles);
|
|
2449
|
-
|
|
2450
|
-
// set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
|
|
2451
|
-
// NOTE: 1 DOM access here
|
|
2452
|
-
this._popper.setAttribute('x-placement', data.placement);
|
|
2453
|
-
|
|
2454
|
-
// if the arrow modifier is required and the arrow style has been computed, apply the arrow style
|
|
2455
|
-
if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
|
|
2456
|
-
setStyle(data.arrowElement, data.offsets.arrow);
|
|
2457
|
-
}
|
|
2458
|
-
return data;
|
|
2459
|
-
};
|
|
2460
|
-
|
|
2461
|
-
/**
|
|
2462
|
-
* Modifier used to shift the popper on the start or end of its reference element side
|
|
2463
|
-
* @method
|
|
2464
|
-
* @memberof Popper.modifiers
|
|
2465
|
-
* @argument {Object} data - The data object generated by `update` method
|
|
2466
|
-
* @returns {Object} The data object, properly modified
|
|
2467
|
-
*/
|
|
2468
|
-
Popper.prototype.modifiers.shift = function (data) {
|
|
2469
|
-
var placement = data.placement;
|
|
2470
|
-
var basePlacement = placement.split('-')[0];
|
|
2471
|
-
var shiftVariation = placement.split('-')[1];
|
|
2472
|
-
|
|
2473
|
-
// if shift shiftVariation is specified, run the modifier
|
|
2474
|
-
if (shiftVariation) {
|
|
2475
|
-
var reference = data.offsets.reference;
|
|
2476
|
-
var popper = getPopperClientRect(data.offsets.popper);
|
|
2477
|
-
var shiftOffsets = {
|
|
2478
|
-
y: {
|
|
2479
|
-
start: {
|
|
2480
|
-
top: reference.top
|
|
2481
|
-
},
|
|
2482
|
-
end: {
|
|
2483
|
-
top: reference.top + reference.height - popper.height
|
|
2484
|
-
}
|
|
2485
|
-
},
|
|
2486
|
-
x: {
|
|
2487
|
-
start: {
|
|
2488
|
-
left: reference.left
|
|
2489
|
-
},
|
|
2490
|
-
end: {
|
|
2491
|
-
left: reference.left + reference.width - popper.width
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
};
|
|
2495
|
-
var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
|
|
2496
|
-
data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
|
|
2497
|
-
}
|
|
2498
|
-
return data;
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
|
-
/**
|
|
2502
|
-
* Modifier used to make sure the popper does not overflows from it's boundaries
|
|
2503
|
-
* @method
|
|
2504
|
-
* @memberof Popper.modifiers
|
|
2505
|
-
* @argument {Object} data - The data object generated by `update` method
|
|
2506
|
-
* @returns {Object} The data object, properly modified
|
|
2507
|
-
*/
|
|
2508
|
-
Popper.prototype.modifiers.preventOverflow = function (data) {
|
|
2509
|
-
var order = this._options.preventOverflowOrder;
|
|
2510
|
-
var popper = getPopperClientRect(data.offsets.popper);
|
|
2511
|
-
var check = {
|
|
2512
|
-
left: function left() {
|
|
2513
|
-
var left = popper.left;
|
|
2514
|
-
if (popper.left < data.boundaries.left) {
|
|
2515
|
-
left = Math.max(popper.left, data.boundaries.left);
|
|
2516
|
-
}
|
|
2517
|
-
return {
|
|
2518
|
-
left: left
|
|
2519
|
-
};
|
|
2520
|
-
},
|
|
2521
|
-
right: function right() {
|
|
2522
|
-
var left = popper.left;
|
|
2523
|
-
if (popper.right > data.boundaries.right) {
|
|
2524
|
-
left = Math.min(popper.left, data.boundaries.right - popper.width);
|
|
2525
|
-
}
|
|
2526
|
-
return {
|
|
2527
|
-
left: left
|
|
2528
|
-
};
|
|
2529
|
-
},
|
|
2530
|
-
top: function top() {
|
|
2531
|
-
var top = popper.top;
|
|
2532
|
-
if (popper.top < data.boundaries.top) {
|
|
2533
|
-
top = Math.max(popper.top, data.boundaries.top);
|
|
2534
|
-
}
|
|
2535
|
-
return {
|
|
2536
|
-
top: top
|
|
2537
|
-
};
|
|
2538
|
-
},
|
|
2539
|
-
bottom: function bottom() {
|
|
2540
|
-
var top = popper.top;
|
|
2541
|
-
if (popper.bottom > data.boundaries.bottom) {
|
|
2542
|
-
top = Math.min(popper.top, data.boundaries.bottom - popper.height);
|
|
2543
|
-
}
|
|
2544
|
-
return {
|
|
2545
|
-
top: top
|
|
2546
|
-
};
|
|
2547
|
-
}
|
|
2548
|
-
};
|
|
2549
|
-
order.forEach(function (direction) {
|
|
2550
|
-
data.offsets.popper = Object.assign(popper, check[direction]());
|
|
2551
|
-
});
|
|
2552
|
-
return data;
|
|
2553
|
-
};
|
|
2554
|
-
|
|
2555
|
-
/**
|
|
2556
|
-
* Modifier used to make sure the popper is always near its reference
|
|
2557
|
-
* @method
|
|
2558
|
-
* @memberof Popper.modifiers
|
|
2559
|
-
* @argument {Object} data - The data object generated by _update method
|
|
2560
|
-
* @returns {Object} The data object, properly modified
|
|
2561
|
-
*/
|
|
2562
|
-
Popper.prototype.modifiers.keepTogether = function (data) {
|
|
2563
|
-
var popper = getPopperClientRect(data.offsets.popper);
|
|
2564
|
-
var reference = data.offsets.reference;
|
|
2565
|
-
var f = Math.floor;
|
|
2566
|
-
if (popper.right < f(reference.left)) {
|
|
2567
|
-
data.offsets.popper.left = f(reference.left) - popper.width;
|
|
2568
|
-
}
|
|
2569
|
-
if (popper.left > f(reference.right)) {
|
|
2570
|
-
data.offsets.popper.left = f(reference.right);
|
|
2571
|
-
}
|
|
2572
|
-
if (popper.bottom < f(reference.top)) {
|
|
2573
|
-
data.offsets.popper.top = f(reference.top) - popper.height;
|
|
2574
|
-
}
|
|
2575
|
-
if (popper.top > f(reference.bottom)) {
|
|
2576
|
-
data.offsets.popper.top = f(reference.bottom);
|
|
2577
|
-
}
|
|
2578
|
-
return data;
|
|
2579
|
-
};
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
|
|
2583
|
-
* Requires the `preventOverflow` modifier before it in order to work.
|
|
2584
|
-
* **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
|
|
2585
|
-
* @method
|
|
2586
|
-
* @memberof Popper.modifiers
|
|
2587
|
-
* @argument {Object} data - The data object generated by _update method
|
|
2588
|
-
* @returns {Object} The data object, properly modified
|
|
2589
|
-
*/
|
|
2590
|
-
Popper.prototype.modifiers.flip = function (data) {
|
|
2591
|
-
// check if preventOverflow is in the list of modifiers before the flip modifier.
|
|
2592
|
-
// otherwise flip would not work as expected.
|
|
2593
|
-
if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
|
|
2594
|
-
console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
|
|
2595
|
-
return data;
|
|
2596
|
-
}
|
|
2597
|
-
if (data.flipped && data.placement === data._originalPlacement) {
|
|
2598
|
-
// seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
|
|
2599
|
-
return data;
|
|
2600
|
-
}
|
|
2601
|
-
var placement = data.placement.split('-')[0];
|
|
2602
|
-
var placementOpposite = getOppositePlacement(placement);
|
|
2603
|
-
var variation = data.placement.split('-')[1] || '';
|
|
2604
|
-
var flipOrder = [];
|
|
2605
|
-
if (this._options.flipBehavior === 'flip') {
|
|
2606
|
-
flipOrder = [placement, placementOpposite];
|
|
2607
|
-
} else {
|
|
2608
|
-
flipOrder = this._options.flipBehavior;
|
|
2609
|
-
}
|
|
2610
|
-
flipOrder.forEach(function (step, index) {
|
|
2611
|
-
if (placement !== step || flipOrder.length === index + 1) {
|
|
2612
|
-
return;
|
|
2613
|
-
}
|
|
2614
|
-
placement = data.placement.split('-')[0];
|
|
2615
|
-
placementOpposite = getOppositePlacement(placement);
|
|
2616
|
-
var popperOffsets = getPopperClientRect(data.offsets.popper);
|
|
2617
|
-
|
|
2618
|
-
// this boolean is used to distinguish right and bottom from top and left
|
|
2619
|
-
// they need different computations to get flipped
|
|
2620
|
-
var a = ['right', 'bottom'].indexOf(placement) !== -1;
|
|
2621
|
-
|
|
2622
|
-
// using Math.floor because the reference offsets may contain decimals we are not going to consider here
|
|
2623
|
-
if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
|
|
2624
|
-
// we'll use this boolean to detect any flip loop
|
|
2625
|
-
data.flipped = true;
|
|
2626
|
-
data.placement = flipOrder[index + 1];
|
|
2627
|
-
if (variation) {
|
|
2628
|
-
data.placement += '-' + variation;
|
|
2629
|
-
}
|
|
2630
|
-
data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
|
|
2631
|
-
data = this.runModifiers(data, this._options.modifiers, this._flip);
|
|
2632
|
-
}
|
|
2633
|
-
}.bind(this));
|
|
2634
|
-
return data;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
|
-
/**
|
|
2638
|
-
* Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
|
|
2639
|
-
* The offsets will shift the popper on the side of its reference element.
|
|
2640
|
-
* @method
|
|
2641
|
-
* @memberof Popper.modifiers
|
|
2642
|
-
* @argument {Object} data - The data object generated by _update method
|
|
2643
|
-
* @returns {Object} The data object, properly modified
|
|
2644
|
-
*/
|
|
2645
|
-
Popper.prototype.modifiers.offset = function (data) {
|
|
2646
|
-
var offset = this._options.offset;
|
|
2647
|
-
var popper = data.offsets.popper;
|
|
2648
|
-
if (data.placement.indexOf('left') !== -1) {
|
|
2649
|
-
popper.top -= offset;
|
|
2650
|
-
} else if (data.placement.indexOf('right') !== -1) {
|
|
2651
|
-
popper.top += offset;
|
|
2652
|
-
} else if (data.placement.indexOf('top') !== -1) {
|
|
2653
|
-
popper.left -= offset;
|
|
2654
|
-
} else if (data.placement.indexOf('bottom') !== -1) {
|
|
2655
|
-
popper.left += offset;
|
|
2656
|
-
}
|
|
2657
|
-
return data;
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
/**
|
|
2661
|
-
* Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
|
|
2662
|
-
* It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
|
|
2663
|
-
* @method
|
|
2664
|
-
* @memberof Popper.modifiers
|
|
2665
|
-
* @argument {Object} data - The data object generated by _update method
|
|
2666
|
-
* @returns {Object} The data object, properly modified
|
|
2667
|
-
*/
|
|
2668
|
-
Popper.prototype.modifiers.arrow = function (data) {
|
|
2669
|
-
var arrow = this._options.arrowElement;
|
|
2670
|
-
var arrowOffset = this._options.arrowOffset;
|
|
2671
|
-
|
|
2672
|
-
// if the arrowElement is a string, suppose it's a CSS selector
|
|
2673
|
-
if (typeof arrow === 'string') {
|
|
2674
|
-
arrow = this._popper.querySelector(arrow);
|
|
2675
|
-
}
|
|
90
|
+
/***/ 0:
|
|
91
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2676
92
|
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
}
|
|
93
|
+
"use strict";
|
|
94
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
2681
96
|
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
return data;
|
|
2686
|
-
}
|
|
97
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
+
// be included in the final webpack user bundle.
|
|
2687
100
|
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
var altSide = isVertical ? 'left' : 'top';
|
|
2702
|
-
var opSide = isVertical ? 'bottom' : 'right';
|
|
2703
|
-
var arrowSize = getOuterSizes(arrow)[len];
|
|
2704
|
-
|
|
2705
|
-
//
|
|
2706
|
-
// extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
|
|
2707
|
-
//
|
|
2708
|
-
|
|
2709
|
-
// top/left side
|
|
2710
|
-
if (reference[opSide] - arrowSize < popper[side]) {
|
|
2711
|
-
data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
|
|
2712
|
-
}
|
|
2713
|
-
// bottom/right side
|
|
2714
|
-
if (reference[side] + arrowSize > popper[opSide]) {
|
|
2715
|
-
data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
|
|
2716
|
-
}
|
|
101
|
+
function normalizeComponent(
|
|
102
|
+
scriptExports,
|
|
103
|
+
render,
|
|
104
|
+
staticRenderFns,
|
|
105
|
+
functionalTemplate,
|
|
106
|
+
injectStyles,
|
|
107
|
+
scopeId,
|
|
108
|
+
moduleIdentifier /* server only */,
|
|
109
|
+
shadowMode /* vue-cli only */
|
|
110
|
+
) {
|
|
111
|
+
// Vue.extend constructor export interop
|
|
112
|
+
var options =
|
|
113
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
2717
114
|
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
|
|
2724
|
-
arrowStyle[side] = sideValue;
|
|
2725
|
-
arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
|
|
2726
|
-
|
|
2727
|
-
data.offsets.arrow = arrowStyle;
|
|
2728
|
-
data.arrowElement = arrow;
|
|
2729
|
-
return data;
|
|
2730
|
-
};
|
|
2731
|
-
|
|
2732
|
-
//
|
|
2733
|
-
// Helpers
|
|
2734
|
-
//
|
|
2735
|
-
|
|
2736
|
-
/**
|
|
2737
|
-
* Get the outer sizes of the given element (offset size + margins)
|
|
2738
|
-
* @function
|
|
2739
|
-
* @ignore
|
|
2740
|
-
* @argument {Element} element
|
|
2741
|
-
* @returns {Object} object containing width and height properties
|
|
2742
|
-
*/
|
|
2743
|
-
function getOuterSizes(element) {
|
|
2744
|
-
// NOTE: 1 DOM access here
|
|
2745
|
-
var _display = element.style.display,
|
|
2746
|
-
_visibility = element.style.visibility;
|
|
2747
|
-
element.style.display = 'block';
|
|
2748
|
-
element.style.visibility = 'hidden';
|
|
2749
|
-
var calcWidthToForceRepaint = element.offsetWidth;
|
|
2750
|
-
|
|
2751
|
-
// original method
|
|
2752
|
-
var styles = root.getComputedStyle(element);
|
|
2753
|
-
var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
|
|
2754
|
-
var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
|
|
2755
|
-
var result = {
|
|
2756
|
-
width: element.offsetWidth + y,
|
|
2757
|
-
height: element.offsetHeight + x
|
|
2758
|
-
};
|
|
2759
|
-
|
|
2760
|
-
// reset element styles
|
|
2761
|
-
element.style.display = _display;
|
|
2762
|
-
element.style.visibility = _visibility;
|
|
2763
|
-
return result;
|
|
115
|
+
// render functions
|
|
116
|
+
if (render) {
|
|
117
|
+
options.render = render
|
|
118
|
+
options.staticRenderFns = staticRenderFns
|
|
119
|
+
options._compiled = true
|
|
2764
120
|
}
|
|
2765
121
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
* @ignore
|
|
2770
|
-
* @argument {String} placement
|
|
2771
|
-
* @returns {String} flipped placement
|
|
2772
|
-
*/
|
|
2773
|
-
function getOppositePlacement(placement) {
|
|
2774
|
-
var hash = {
|
|
2775
|
-
left: 'right',
|
|
2776
|
-
right: 'left',
|
|
2777
|
-
bottom: 'top',
|
|
2778
|
-
top: 'bottom'
|
|
2779
|
-
};
|
|
2780
|
-
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
2781
|
-
return hash[matched];
|
|
2782
|
-
});
|
|
122
|
+
// functional template
|
|
123
|
+
if (functionalTemplate) {
|
|
124
|
+
options.functional = true
|
|
2783
125
|
}
|
|
2784
126
|
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
* @ignore
|
|
2789
|
-
* @argument {Object} popperOffsets
|
|
2790
|
-
* @returns {Object} ClientRect like output
|
|
2791
|
-
*/
|
|
2792
|
-
function getPopperClientRect(popperOffsets) {
|
|
2793
|
-
var offsets = Object.assign({}, popperOffsets);
|
|
2794
|
-
offsets.right = offsets.left + offsets.width;
|
|
2795
|
-
offsets.bottom = offsets.top + offsets.height;
|
|
2796
|
-
return offsets;
|
|
127
|
+
// scopedId
|
|
128
|
+
if (scopeId) {
|
|
129
|
+
options._scopeId = 'data-v-' + scopeId
|
|
2797
130
|
}
|
|
2798
131
|
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
if (arr[key] === keyToFind) {
|
|
2812
|
-
return i;
|
|
132
|
+
var hook
|
|
133
|
+
if (moduleIdentifier) {
|
|
134
|
+
// server build
|
|
135
|
+
hook = function (context) {
|
|
136
|
+
// 2.3 injection
|
|
137
|
+
context =
|
|
138
|
+
context || // cached call
|
|
139
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
+
// 2.2 with runInNewContext: true
|
|
142
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
+
context = __VUE_SSR_CONTEXT__
|
|
2813
144
|
}
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
* @function
|
|
2822
|
-
* @ignore
|
|
2823
|
-
* @argument {Eement} element
|
|
2824
|
-
* @argument {String} property
|
|
2825
|
-
*/
|
|
2826
|
-
function getStyleComputedProperty(element, property) {
|
|
2827
|
-
// NOTE: 1 DOM access here
|
|
2828
|
-
var css = root.getComputedStyle(element, null);
|
|
2829
|
-
return css[property];
|
|
2830
|
-
}
|
|
2831
|
-
|
|
2832
|
-
/**
|
|
2833
|
-
* Returns the offset parent of the given element
|
|
2834
|
-
* @function
|
|
2835
|
-
* @ignore
|
|
2836
|
-
* @argument {Element} element
|
|
2837
|
-
* @returns {Element} offset parent
|
|
2838
|
-
*/
|
|
2839
|
-
function getOffsetParent(element) {
|
|
2840
|
-
// NOTE: 1 DOM access here
|
|
2841
|
-
var offsetParent = element.offsetParent;
|
|
2842
|
-
return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
/**
|
|
2846
|
-
* Returns the scrolling parent of the given element
|
|
2847
|
-
* @function
|
|
2848
|
-
* @ignore
|
|
2849
|
-
* @argument {Element} element
|
|
2850
|
-
* @returns {Element} offset parent
|
|
2851
|
-
*/
|
|
2852
|
-
function getScrollParent(element) {
|
|
2853
|
-
var parent = element.parentNode;
|
|
2854
|
-
if (!parent) {
|
|
2855
|
-
return element;
|
|
2856
|
-
}
|
|
2857
|
-
if (parent === root.document) {
|
|
2858
|
-
// Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
|
|
2859
|
-
// greater than 0 and return the proper element
|
|
2860
|
-
if (root.document.body.scrollTop || root.document.body.scrollLeft) {
|
|
2861
|
-
return root.document.body;
|
|
2862
|
-
} else {
|
|
2863
|
-
return root.document.documentElement;
|
|
145
|
+
// inject component styles
|
|
146
|
+
if (injectStyles) {
|
|
147
|
+
injectStyles.call(this, context)
|
|
148
|
+
}
|
|
149
|
+
// register component module identifier for async chunk inferrence
|
|
150
|
+
if (context && context._registeredComponents) {
|
|
151
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
2864
152
|
}
|
|
2865
153
|
}
|
|
2866
|
-
|
|
2867
|
-
//
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
* Check if the given element is fixed or is inside a fixed parent
|
|
2879
|
-
* @function
|
|
2880
|
-
* @ignore
|
|
2881
|
-
* @argument {Element} element
|
|
2882
|
-
* @argument {Element} customContainer
|
|
2883
|
-
* @returns {Boolean} answer to "isFixed?"
|
|
2884
|
-
*/
|
|
2885
|
-
function isFixed(element) {
|
|
2886
|
-
if (element === root.document.body) {
|
|
2887
|
-
return false;
|
|
2888
|
-
}
|
|
2889
|
-
if (getStyleComputedProperty(element, 'position') === 'fixed') {
|
|
2890
|
-
return true;
|
|
2891
|
-
}
|
|
2892
|
-
return element.parentNode ? isFixed(element.parentNode) : element;
|
|
154
|
+
// used by ssr in case component is cached and beforeCreate
|
|
155
|
+
// never gets called
|
|
156
|
+
options._ssrRegister = hook
|
|
157
|
+
} else if (injectStyles) {
|
|
158
|
+
hook = shadowMode
|
|
159
|
+
? function () {
|
|
160
|
+
injectStyles.call(
|
|
161
|
+
this,
|
|
162
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
: injectStyles
|
|
2893
166
|
}
|
|
2894
167
|
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
}
|
|
2906
|
-
Object.keys(styles).forEach(function (prop) {
|
|
2907
|
-
var unit = '';
|
|
2908
|
-
// add unit if the value is numeric and is one of the following
|
|
2909
|
-
if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
|
|
2910
|
-
unit = 'px';
|
|
168
|
+
if (hook) {
|
|
169
|
+
if (options.functional) {
|
|
170
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
+
// go through the normalizer
|
|
172
|
+
options._injectStyles = hook
|
|
173
|
+
// register for functional component in vue file
|
|
174
|
+
var originalRender = options.render
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
+
hook.call(context)
|
|
177
|
+
return originalRender(h, context)
|
|
2911
178
|
}
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
* Check if the given variable is a function
|
|
2918
|
-
* @function
|
|
2919
|
-
* @ignore
|
|
2920
|
-
* @argument {*} functionToCheck - variable to check
|
|
2921
|
-
* @returns {Boolean} answer to: is a function?
|
|
2922
|
-
*/
|
|
2923
|
-
function isFunction(functionToCheck) {
|
|
2924
|
-
var getType = {};
|
|
2925
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
179
|
+
} else {
|
|
180
|
+
// inject component registration as beforeCreate hook
|
|
181
|
+
var existing = options.beforeCreate
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
183
|
+
}
|
|
2926
184
|
}
|
|
2927
185
|
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
* @ignore
|
|
2932
|
-
* @param {Element} element
|
|
2933
|
-
* @return {Object} position - Coordinates of the element and its `scrollTop`
|
|
2934
|
-
*/
|
|
2935
|
-
function getOffsetRect(element) {
|
|
2936
|
-
var elementRect = {
|
|
2937
|
-
width: element.offsetWidth,
|
|
2938
|
-
height: element.offsetHeight,
|
|
2939
|
-
left: element.offsetLeft,
|
|
2940
|
-
top: element.offsetTop
|
|
2941
|
-
};
|
|
2942
|
-
elementRect.right = elementRect.left + elementRect.width;
|
|
2943
|
-
elementRect.bottom = elementRect.top + elementRect.height;
|
|
2944
|
-
|
|
2945
|
-
// position
|
|
2946
|
-
return elementRect;
|
|
186
|
+
return {
|
|
187
|
+
exports: scriptExports,
|
|
188
|
+
options: options
|
|
2947
189
|
}
|
|
190
|
+
}
|
|
2948
191
|
|
|
2949
|
-
/**
|
|
2950
|
-
* Get bounding client rect of given element
|
|
2951
|
-
* @function
|
|
2952
|
-
* @ignore
|
|
2953
|
-
* @param {HTMLElement} element
|
|
2954
|
-
* @return {Object} client rect
|
|
2955
|
-
*/
|
|
2956
|
-
function getBoundingClientRect(element) {
|
|
2957
|
-
var rect = element.getBoundingClientRect();
|
|
2958
|
-
|
|
2959
|
-
// whether the IE version is lower than 11
|
|
2960
|
-
var isIE = navigator.userAgent.indexOf("MSIE") != -1;
|
|
2961
|
-
|
|
2962
|
-
// fix ie document bounding top always 0 bug
|
|
2963
|
-
var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
|
|
2964
|
-
return {
|
|
2965
|
-
left: rect.left,
|
|
2966
|
-
top: rectTop,
|
|
2967
|
-
right: rect.right,
|
|
2968
|
-
bottom: rect.bottom,
|
|
2969
|
-
width: rect.right - rect.left,
|
|
2970
|
-
height: rect.bottom - rectTop
|
|
2971
|
-
};
|
|
2972
|
-
}
|
|
2973
192
|
|
|
2974
|
-
|
|
2975
|
-
* Given an element and one of its parents, return the offset
|
|
2976
|
-
* @function
|
|
2977
|
-
* @ignore
|
|
2978
|
-
* @param {HTMLElement} element
|
|
2979
|
-
* @param {HTMLElement} parent
|
|
2980
|
-
* @return {Object} rect
|
|
2981
|
-
*/
|
|
2982
|
-
function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
|
|
2983
|
-
var elementRect = getBoundingClientRect(element);
|
|
2984
|
-
var parentRect = getBoundingClientRect(parent);
|
|
2985
|
-
if (fixed) {
|
|
2986
|
-
var scrollParent = getScrollParent(parent);
|
|
2987
|
-
parentRect.top += scrollParent.scrollTop;
|
|
2988
|
-
parentRect.bottom += scrollParent.scrollTop;
|
|
2989
|
-
parentRect.left += scrollParent.scrollLeft;
|
|
2990
|
-
parentRect.right += scrollParent.scrollLeft;
|
|
2991
|
-
}
|
|
2992
|
-
var rect = {
|
|
2993
|
-
top: elementRect.top - parentRect.top,
|
|
2994
|
-
left: elementRect.left - parentRect.left,
|
|
2995
|
-
bottom: elementRect.top - parentRect.top + elementRect.height,
|
|
2996
|
-
right: elementRect.left - parentRect.left + elementRect.width,
|
|
2997
|
-
width: elementRect.width,
|
|
2998
|
-
height: elementRect.height
|
|
2999
|
-
};
|
|
3000
|
-
return rect;
|
|
3001
|
-
}
|
|
193
|
+
/***/ }),
|
|
3002
194
|
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
* @function
|
|
3006
|
-
* @ignore
|
|
3007
|
-
* @argument {String} property (camelCase)
|
|
3008
|
-
* @returns {String} prefixed property (camelCase)
|
|
3009
|
-
*/
|
|
3010
|
-
function getSupportedPropertyName(property) {
|
|
3011
|
-
var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
|
|
3012
|
-
for (var i = 0; i < prefixes.length; i++) {
|
|
3013
|
-
var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
|
|
3014
|
-
if (typeof root.document.body.style[toCheck] !== 'undefined') {
|
|
3015
|
-
return toCheck;
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
return null;
|
|
3019
|
-
}
|
|
195
|
+
/***/ 2:
|
|
196
|
+
/***/ (function(module, exports) {
|
|
3020
197
|
|
|
3021
|
-
|
|
3022
|
-
* The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
|
|
3023
|
-
* objects to a target object. It will return the target object.
|
|
3024
|
-
* This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
|
|
3025
|
-
* Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
|
3026
|
-
* @function
|
|
3027
|
-
* @ignore
|
|
3028
|
-
*/
|
|
3029
|
-
if (!Object.assign) {
|
|
3030
|
-
Object.defineProperty(Object, 'assign', {
|
|
3031
|
-
enumerable: false,
|
|
3032
|
-
configurable: true,
|
|
3033
|
-
writable: true,
|
|
3034
|
-
value: function value(target) {
|
|
3035
|
-
if (target === undefined || target === null) {
|
|
3036
|
-
throw new TypeError('Cannot convert first argument to object');
|
|
3037
|
-
}
|
|
3038
|
-
var to = Object(target);
|
|
3039
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3040
|
-
var nextSource = arguments[i];
|
|
3041
|
-
if (nextSource === undefined || nextSource === null) {
|
|
3042
|
-
continue;
|
|
3043
|
-
}
|
|
3044
|
-
nextSource = Object(nextSource);
|
|
3045
|
-
var keysArray = Object.keys(nextSource);
|
|
3046
|
-
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
|
|
3047
|
-
var nextKey = keysArray[nextIndex];
|
|
3048
|
-
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
3049
|
-
if (desc !== undefined && desc.enumerable) {
|
|
3050
|
-
to[nextKey] = nextSource[nextKey];
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3054
|
-
return to;
|
|
3055
|
-
}
|
|
3056
|
-
});
|
|
3057
|
-
}
|
|
3058
|
-
return Popper;
|
|
3059
|
-
});
|
|
3060
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(72)(module)))
|
|
198
|
+
module.exports = require("element-ui/lib/utils/dom");
|
|
3061
199
|
|
|
3062
200
|
/***/ }),
|
|
3063
|
-
/* 72 */
|
|
3064
|
-
/***/ (function(module, exports) {
|
|
3065
201
|
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
var module = Object.create(originalModule);
|
|
3069
|
-
// module.parent = undefined by default
|
|
3070
|
-
if (!module.children) module.children = [];
|
|
3071
|
-
Object.defineProperty(module, "loaded", {
|
|
3072
|
-
enumerable: true,
|
|
3073
|
-
get: function() {
|
|
3074
|
-
return module.l;
|
|
3075
|
-
}
|
|
3076
|
-
});
|
|
3077
|
-
Object.defineProperty(module, "id", {
|
|
3078
|
-
enumerable: true,
|
|
3079
|
-
get: function() {
|
|
3080
|
-
return module.i;
|
|
3081
|
-
}
|
|
3082
|
-
});
|
|
3083
|
-
Object.defineProperty(module, "exports", {
|
|
3084
|
-
enumerable: true
|
|
3085
|
-
});
|
|
3086
|
-
module.webpackPolyfill = 1;
|
|
3087
|
-
}
|
|
3088
|
-
return module;
|
|
3089
|
-
};
|
|
202
|
+
/***/ 3:
|
|
203
|
+
/***/ (function(module, exports) {
|
|
3090
204
|
|
|
205
|
+
module.exports = require("element-ui/lib/utils/util");
|
|
3091
206
|
|
|
3092
207
|
/***/ }),
|
|
3093
|
-
|
|
208
|
+
|
|
209
|
+
/***/ 5:
|
|
3094
210
|
/***/ (function(module, exports) {
|
|
3095
211
|
|
|
3096
|
-
module.exports = require("
|
|
212
|
+
module.exports = require("element-ui/lib/utils/vue-popper");
|
|
3097
213
|
|
|
3098
214
|
/***/ }),
|
|
3099
|
-
/* 74 */
|
|
3100
|
-
/***/ (function(module, exports) {
|
|
3101
215
|
|
|
3102
|
-
|
|
3103
|
-
module
|
|
216
|
+
/***/ 7:
|
|
217
|
+
/***/ (function(module, exports) {
|
|
3104
218
|
|
|
3105
|
-
|
|
219
|
+
module.exports = require("vue");
|
|
3106
220
|
|
|
3107
221
|
/***/ }),
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
/* 77 */,
|
|
3111
|
-
/* 78 */,
|
|
3112
|
-
/* 79 */,
|
|
3113
|
-
/* 80 */,
|
|
3114
|
-
/* 81 */,
|
|
3115
|
-
/* 82 */,
|
|
3116
|
-
/* 83 */,
|
|
3117
|
-
/* 84 */,
|
|
3118
|
-
/* 85 */,
|
|
3119
|
-
/* 86 */,
|
|
3120
|
-
/* 87 */,
|
|
3121
|
-
/* 88 */,
|
|
3122
|
-
/* 89 */,
|
|
3123
|
-
/* 90 */,
|
|
3124
|
-
/* 91 */,
|
|
3125
|
-
/* 92 */,
|
|
3126
|
-
/* 93 */,
|
|
3127
|
-
/* 94 */,
|
|
3128
|
-
/* 95 */,
|
|
3129
|
-
/* 96 */,
|
|
3130
|
-
/* 97 */,
|
|
3131
|
-
/* 98 */,
|
|
3132
|
-
/* 99 */,
|
|
3133
|
-
/* 100 */,
|
|
3134
|
-
/* 101 */
|
|
222
|
+
|
|
223
|
+
/***/ 78:
|
|
3135
224
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3136
225
|
|
|
3137
226
|
"use strict";
|
|
3138
227
|
// ESM COMPAT FLAG
|
|
3139
228
|
__webpack_require__.r(__webpack_exports__);
|
|
3140
229
|
|
|
3141
|
-
//
|
|
3142
|
-
var
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
var
|
|
3146
|
-
var _vm = this,
|
|
3147
|
-
_c = _vm._self._c
|
|
230
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=33e02ffe
|
|
231
|
+
var render = function () {
|
|
232
|
+
var _vm = this
|
|
233
|
+
var _h = _vm.$createElement
|
|
234
|
+
var _c = _vm._self._c || _h
|
|
3148
235
|
return _c(
|
|
3149
236
|
"span",
|
|
3150
237
|
[
|
|
@@ -3187,9 +274,7 @@ var render = function render() {
|
|
|
3187
274
|
domProps: { textContent: _vm._s(_vm.title) },
|
|
3188
275
|
})
|
|
3189
276
|
: _vm._e(),
|
|
3190
|
-
_vm._t("default",
|
|
3191
|
-
return [_vm._v(_vm._s(_vm.content))]
|
|
3192
|
-
}),
|
|
277
|
+
_vm._t("default", [_vm._v(_vm._s(_vm.content))]),
|
|
3193
278
|
],
|
|
3194
279
|
2
|
|
3195
280
|
),
|
|
@@ -3209,224 +294,262 @@ var staticRenderFns = []
|
|
|
3209
294
|
render._withStripped = true
|
|
3210
295
|
|
|
3211
296
|
|
|
3212
|
-
// CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=
|
|
297
|
+
// CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=33e02ffe
|
|
3213
298
|
|
|
3214
|
-
// EXTERNAL MODULE: external "
|
|
3215
|
-
var
|
|
299
|
+
// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
|
|
300
|
+
var vue_popper_ = __webpack_require__(5);
|
|
301
|
+
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
|
3216
302
|
|
|
3217
|
-
// EXTERNAL MODULE:
|
|
3218
|
-
var
|
|
303
|
+
// EXTERNAL MODULE: external "element-ui/lib/utils/dom"
|
|
304
|
+
var dom_ = __webpack_require__(2);
|
|
3219
305
|
|
|
3220
|
-
// EXTERNAL MODULE:
|
|
3221
|
-
var
|
|
3222
|
-
|
|
3223
|
-
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3224
|
-
var util = __webpack_require__(4);
|
|
306
|
+
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
|
307
|
+
var util_ = __webpack_require__(3);
|
|
3225
308
|
|
|
3226
309
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js
|
|
310
|
+
//
|
|
311
|
+
//
|
|
312
|
+
//
|
|
313
|
+
//
|
|
314
|
+
//
|
|
315
|
+
//
|
|
316
|
+
//
|
|
317
|
+
//
|
|
318
|
+
//
|
|
319
|
+
//
|
|
320
|
+
//
|
|
321
|
+
//
|
|
322
|
+
//
|
|
323
|
+
//
|
|
324
|
+
//
|
|
325
|
+
//
|
|
326
|
+
//
|
|
327
|
+
//
|
|
328
|
+
//
|
|
329
|
+
//
|
|
330
|
+
//
|
|
331
|
+
//
|
|
332
|
+
//
|
|
333
|
+
//
|
|
334
|
+
//
|
|
335
|
+
|
|
3227
336
|
|
|
3228
337
|
|
|
3229
338
|
|
|
3230
339
|
|
|
3231
340
|
|
|
3232
341
|
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
342
|
+
name: 'ElPopover',
|
|
343
|
+
|
|
344
|
+
mixins: [vue_popper_default.a],
|
|
345
|
+
|
|
346
|
+
props: {
|
|
347
|
+
trigger: {
|
|
348
|
+
type: String,
|
|
349
|
+
default: 'click',
|
|
350
|
+
validator: function validator(value) {
|
|
351
|
+
return ['click', 'focus', 'hover', 'manual'].indexOf(value) > -1;
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
openDelay: {
|
|
355
|
+
type: Number,
|
|
356
|
+
default: 0
|
|
357
|
+
},
|
|
358
|
+
closeDelay: {
|
|
359
|
+
type: Number,
|
|
360
|
+
default: 200
|
|
361
|
+
},
|
|
362
|
+
title: String,
|
|
363
|
+
disabled: Boolean,
|
|
364
|
+
content: String,
|
|
365
|
+
reference: {},
|
|
366
|
+
popperClass: String,
|
|
367
|
+
width: {},
|
|
368
|
+
visibleArrow: {
|
|
369
|
+
default: true
|
|
370
|
+
},
|
|
371
|
+
arrowOffset: {
|
|
372
|
+
type: Number,
|
|
373
|
+
default: 0
|
|
374
|
+
},
|
|
375
|
+
transition: {
|
|
376
|
+
type: String,
|
|
377
|
+
default: 'fade-in-linear'
|
|
378
|
+
},
|
|
379
|
+
tabindex: {
|
|
380
|
+
type: Number,
|
|
381
|
+
default: 0
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
|
|
385
|
+
computed: {
|
|
386
|
+
tooltipId: function tooltipId() {
|
|
387
|
+
return 'el-popover-' + Object(util_["generateId"])();
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
watch: {
|
|
391
|
+
showPopper: function showPopper(val) {
|
|
392
|
+
if (this.disabled) {
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
val ? this.$emit('show') : this.$emit('hide');
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
mounted: function mounted() {
|
|
400
|
+
var _this = this;
|
|
401
|
+
|
|
402
|
+
var reference = this.referenceElm = this.reference || this.$refs.reference;
|
|
403
|
+
var popper = this.popper || this.$refs.popper;
|
|
404
|
+
|
|
405
|
+
if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
|
|
406
|
+
reference = this.referenceElm = this.$refs.wrapper.children[0];
|
|
407
|
+
}
|
|
408
|
+
// 可访问性
|
|
409
|
+
if (reference) {
|
|
410
|
+
Object(dom_["addClass"])(reference, 'el-popover__reference');
|
|
411
|
+
reference.setAttribute('aria-describedby', this.tooltipId);
|
|
412
|
+
reference.setAttribute('tabindex', this.tabindex); // tab序列
|
|
413
|
+
popper.setAttribute('tabindex', 0);
|
|
414
|
+
|
|
415
|
+
if (this.trigger !== 'click') {
|
|
416
|
+
Object(dom_["on"])(reference, 'focusin', function () {
|
|
417
|
+
_this.handleFocus();
|
|
418
|
+
var instance = reference.__vue__;
|
|
419
|
+
if (instance && typeof instance.focus === 'function') {
|
|
420
|
+
instance.focus();
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
Object(dom_["on"])(popper, 'focusin', this.handleFocus);
|
|
424
|
+
Object(dom_["on"])(reference, 'focusout', this.handleBlur);
|
|
425
|
+
Object(dom_["on"])(popper, 'focusout', this.handleBlur);
|
|
426
|
+
}
|
|
427
|
+
Object(dom_["on"])(reference, 'keydown', this.handleKeydown);
|
|
428
|
+
Object(dom_["on"])(reference, 'click', this.handleClick);
|
|
429
|
+
}
|
|
430
|
+
if (this.trigger === 'click') {
|
|
431
|
+
Object(dom_["on"])(reference, 'click', this.doToggle);
|
|
432
|
+
Object(dom_["on"])(document, 'click', this.handleDocumentClick);
|
|
433
|
+
} else if (this.trigger === 'hover') {
|
|
434
|
+
Object(dom_["on"])(reference, 'mouseenter', this.handleMouseEnter);
|
|
435
|
+
Object(dom_["on"])(popper, 'mouseenter', this.handleMouseEnter);
|
|
436
|
+
Object(dom_["on"])(reference, 'mouseleave', this.handleMouseLeave);
|
|
437
|
+
Object(dom_["on"])(popper, 'mouseleave', this.handleMouseLeave);
|
|
438
|
+
} else if (this.trigger === 'focus') {
|
|
439
|
+
if (this.tabindex < 0) {
|
|
440
|
+
console.warn('[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key');
|
|
441
|
+
}
|
|
442
|
+
if (reference.querySelector('input, textarea')) {
|
|
443
|
+
Object(dom_["on"])(reference, 'focusin', this.doShow);
|
|
444
|
+
Object(dom_["on"])(reference, 'focusout', this.doClose);
|
|
445
|
+
} else {
|
|
446
|
+
Object(dom_["on"])(reference, 'mousedown', this.doShow);
|
|
447
|
+
Object(dom_["on"])(reference, 'mouseup', this.doClose);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
beforeDestroy: function beforeDestroy() {
|
|
452
|
+
this.cleanup();
|
|
453
|
+
},
|
|
454
|
+
deactivated: function deactivated() {
|
|
455
|
+
this.cleanup();
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
methods: {
|
|
460
|
+
doToggle: function doToggle() {
|
|
461
|
+
this.showPopper = !this.showPopper;
|
|
462
|
+
},
|
|
463
|
+
doShow: function doShow() {
|
|
464
|
+
this.showPopper = true;
|
|
465
|
+
},
|
|
466
|
+
doClose: function doClose() {
|
|
467
|
+
this.showPopper = false;
|
|
468
|
+
},
|
|
469
|
+
handleFocus: function handleFocus() {
|
|
470
|
+
Object(dom_["addClass"])(this.referenceElm, 'focusing');
|
|
471
|
+
if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = true;
|
|
472
|
+
},
|
|
473
|
+
handleClick: function handleClick() {
|
|
474
|
+
Object(dom_["removeClass"])(this.referenceElm, 'focusing');
|
|
475
|
+
},
|
|
476
|
+
handleBlur: function handleBlur() {
|
|
477
|
+
Object(dom_["removeClass"])(this.referenceElm, 'focusing');
|
|
478
|
+
if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = false;
|
|
479
|
+
},
|
|
480
|
+
handleMouseEnter: function handleMouseEnter() {
|
|
481
|
+
var _this2 = this;
|
|
482
|
+
|
|
483
|
+
clearTimeout(this._timer);
|
|
484
|
+
if (this.openDelay) {
|
|
485
|
+
this._timer = setTimeout(function () {
|
|
486
|
+
_this2.showPopper = true;
|
|
487
|
+
}, this.openDelay);
|
|
488
|
+
} else {
|
|
489
|
+
this.showPopper = true;
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
handleKeydown: function handleKeydown(ev) {
|
|
493
|
+
if (ev.keyCode === 27 && this.trigger !== 'manual') {
|
|
494
|
+
// esc
|
|
495
|
+
this.doClose();
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
handleMouseLeave: function handleMouseLeave() {
|
|
499
|
+
var _this3 = this;
|
|
500
|
+
|
|
501
|
+
clearTimeout(this._timer);
|
|
502
|
+
if (this.closeDelay) {
|
|
503
|
+
this._timer = setTimeout(function () {
|
|
504
|
+
_this3.showPopper = false;
|
|
505
|
+
}, this.closeDelay);
|
|
506
|
+
} else {
|
|
507
|
+
this.showPopper = false;
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
handleDocumentClick: function handleDocumentClick(e) {
|
|
511
|
+
var reference = this.reference || this.$refs.reference;
|
|
512
|
+
var popper = this.popper || this.$refs.popper;
|
|
513
|
+
|
|
514
|
+
if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
|
|
515
|
+
reference = this.referenceElm = this.$refs.wrapper.children[0];
|
|
516
|
+
}
|
|
517
|
+
if (!this.$el || !reference || this.$el.contains(e.target) || reference.contains(e.target) || !popper || popper.contains(e.target)) return;
|
|
518
|
+
this.showPopper = false;
|
|
519
|
+
},
|
|
520
|
+
handleAfterEnter: function handleAfterEnter() {
|
|
521
|
+
this.$emit('after-enter');
|
|
522
|
+
},
|
|
523
|
+
handleAfterLeave: function handleAfterLeave() {
|
|
524
|
+
this.$emit('after-leave');
|
|
525
|
+
this.doDestroy();
|
|
526
|
+
},
|
|
527
|
+
cleanup: function cleanup() {
|
|
528
|
+
if (this.openDelay || this.closeDelay) {
|
|
529
|
+
clearTimeout(this._timer);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
|
|
534
|
+
destroyed: function destroyed() {
|
|
535
|
+
var reference = this.reference;
|
|
536
|
+
|
|
537
|
+
Object(dom_["off"])(reference, 'click', this.doToggle);
|
|
538
|
+
Object(dom_["off"])(reference, 'mouseup', this.doClose);
|
|
539
|
+
Object(dom_["off"])(reference, 'mousedown', this.doShow);
|
|
540
|
+
Object(dom_["off"])(reference, 'focusin', this.doShow);
|
|
541
|
+
Object(dom_["off"])(reference, 'focusout', this.doClose);
|
|
542
|
+
Object(dom_["off"])(reference, 'mousedown', this.doShow);
|
|
543
|
+
Object(dom_["off"])(reference, 'mouseup', this.doClose);
|
|
544
|
+
Object(dom_["off"])(reference, 'mouseleave', this.handleMouseLeave);
|
|
545
|
+
Object(dom_["off"])(reference, 'mouseenter', this.handleMouseEnter);
|
|
546
|
+
Object(dom_["off"])(document, 'click', this.handleDocumentClick);
|
|
547
|
+
}
|
|
3425
548
|
});
|
|
3426
549
|
// CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js
|
|
3427
550
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
3428
551
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
3429
|
-
var componentNormalizer = __webpack_require__(
|
|
552
|
+
var componentNormalizer = __webpack_require__(0);
|
|
3430
553
|
|
|
3431
554
|
// CONCATENATED MODULE: ./packages/popover/src/main.vue
|
|
3432
555
|
|
|
@@ -3450,26 +573,27 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3450
573
|
/* harmony default export */ var main = (component.exports);
|
|
3451
574
|
// CONCATENATED MODULE: ./packages/popover/src/directive.js
|
|
3452
575
|
var getReference = function getReference(el, binding, vnode) {
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
576
|
+
var _ref = binding.expression ? binding.value : binding.arg;
|
|
577
|
+
var popper = vnode.context.$refs[_ref];
|
|
578
|
+
if (popper) {
|
|
579
|
+
if (Array.isArray(popper)) {
|
|
580
|
+
popper[0].$refs.reference = el;
|
|
581
|
+
} else {
|
|
582
|
+
popper.$refs.reference = el;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
3462
585
|
};
|
|
586
|
+
|
|
3463
587
|
/* harmony default export */ var directive = ({
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
588
|
+
bind: function bind(el, binding, vnode) {
|
|
589
|
+
getReference(el, binding, vnode);
|
|
590
|
+
},
|
|
591
|
+
inserted: function inserted(el, binding, vnode) {
|
|
592
|
+
getReference(el, binding, vnode);
|
|
593
|
+
}
|
|
3470
594
|
});
|
|
3471
595
|
// EXTERNAL MODULE: external "vue"
|
|
3472
|
-
var external_vue_ = __webpack_require__(
|
|
596
|
+
var external_vue_ = __webpack_require__(7);
|
|
3473
597
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
3474
598
|
|
|
3475
599
|
// CONCATENATED MODULE: ./packages/popover/index.js
|
|
@@ -3481,11 +605,13 @@ external_vue_default.a.directive('popover', directive);
|
|
|
3481
605
|
|
|
3482
606
|
/* istanbul ignore next */
|
|
3483
607
|
main.install = function (Vue) {
|
|
3484
|
-
|
|
3485
|
-
|
|
608
|
+
Vue.directive('popover', directive);
|
|
609
|
+
Vue.component(main.name, main);
|
|
3486
610
|
};
|
|
3487
611
|
main.directive = directive;
|
|
612
|
+
|
|
3488
613
|
/* harmony default export */ var popover = __webpack_exports__["default"] = (main);
|
|
3489
614
|
|
|
3490
615
|
/***/ })
|
|
3491
|
-
|
|
616
|
+
|
|
617
|
+
/******/ });
|