cy-element-ui 1.0.87 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +148 -172
- package/lib/index.js +1 -58539
- package/lib/theme-chalk/alert.css +1 -0
- package/lib/theme-chalk/aside.css +1 -0
- package/lib/theme-chalk/autocomplete.css +1 -0
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -0
- package/lib/theme-chalk/button.css +1 -0
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/carousel-item.css +1 -0
- package/lib/theme-chalk/carousel.css +1 -0
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/checkbox.css +1 -0
- package/lib/theme-chalk/col.css +1 -0
- package/lib/theme-chalk/collapse.css +1 -0
- package/lib/theme-chalk/color-picker.css +1 -0
- package/lib/theme-chalk/container.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/display.css +1 -0
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown.css +1 -0
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/footer.css +1 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/header.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/message-box.css +1 -0
- package/lib/theme-chalk/message.css +1 -0
- package/lib/theme-chalk/notification.css +1 -0
- package/lib/theme-chalk/option-group.css +1 -0
- package/lib/theme-chalk/option.css +1 -0
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -0
- package/lib/theme-chalk/popper.css +1 -0
- package/lib/theme-chalk/progress.css +1 -0
- package/lib/theme-chalk/radio-button.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/rate.css +1 -0
- package/lib/theme-chalk/reset.css +1 -0
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -0
- package/lib/theme-chalk/scrollbar.css +1 -0
- package/lib/theme-chalk/select-dropdown.css +1 -0
- package/lib/theme-chalk/select.css +1 -0
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -0
- package/lib/theme-chalk/spinner.css +1 -0
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/table-column.css +1 -0
- package/lib/theme-chalk/table.css +1 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tag.css +1 -0
- package/lib/theme-chalk/time-picker.css +1 -0
- package/lib/theme-chalk/time-select.css +1 -0
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -0
- package/lib/theme-chalk/transfer.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/upload.css +1 -0
- package/package.json +150 -159
- 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 +932 -390
- 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 +294 -334
- package/packages/form/src/form.vue +182 -182
- package/packages/form/src/label-wrap.vue +78 -0
- 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 +286 -286
- 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 -8
- package/packages/statistic/src/main.vue +204 -203
- 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 -718
- 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/gulpfile.js +25 -27
- 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 +87 -87
- package/packages/theme-chalk/src/input-number.scss +261 -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 +191 -196
- 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 -38
- 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/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/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 +202 -216
- package/src/locale/format.js +46 -45
- package/src/locale/index.js +48 -48
- package/src/locale/lang/en.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 -368
- package/src/utils/dom.js +227 -227
- package/src/utils/lodash.js +18075 -18075
- 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 +1 -22
- 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 -37
- 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/upload.d.ts +124 -124
- package/web-types.json +4195 -4195
- package/lib/alert.js +0 -402
- package/lib/aside.js +0 -270
- package/lib/autocomplete.js +0 -4651
- package/lib/avatar.js +0 -363
- package/lib/backtop.js +0 -386
- package/lib/badge.js +0 -313
- package/lib/breadcrumb-item.js +0 -309
- package/lib/breadcrumb.js +0 -287
- package/lib/button-group.js +0 -256
- package/lib/button.js +0 -332
- package/lib/calendar.js +0 -2373
- package/lib/card.js +0 -289
- package/lib/carousel-item.js +0 -755
- package/lib/carousel.js +0 -719
- package/lib/cascader-panel.js +0 -3623
- package/lib/cascader.js +0 -7498
- package/lib/checkbox-button.js +0 -573
- package/lib/checkbox-group.js +0 -344
- package/lib/checkbox.js +0 -603
- package/lib/col.js +0 -177
- package/lib/collapse-item.js +0 -1156
- package/lib/collapse.js +0 -323
- package/lib/color-picker.js +0 -5600
- package/lib/container.js +0 -281
- package/lib/date-picker.js +0 -9871
- package/lib/descriptions-item.js +0 -140
- package/lib/descriptions.js +0 -512
- package/lib/dialog.js +0 -1736
- package/lib/directives/mousewheel.js +0 -26
- package/lib/directives/repeat-click.js +0 -33
- package/lib/divider.js +0 -297
- package/lib/drawer.js +0 -1316
- package/lib/dropdown-item.js +0 -332
- package/lib/dropdown-menu.js +0 -2545
- package/lib/dropdown.js +0 -1579
- package/lib/element-ui.common.js +0 -54072
- package/lib/empty.js +0 -1186
- package/lib/fileUpload.js +0 -3276
- package/lib/footer.js +0 -270
- package/lib/form-item.js +0 -1129
- package/lib/form.js +0 -471
- package/lib/header.js +0 -270
- package/lib/icon.js +0 -260
- package/lib/image.js +0 -2386
- package/lib/infinite-scroll.js +0 -591
- package/lib/input-number.js +0 -2093
- package/lib/input.js +0 -1358
- package/lib/link.js +0 -308
- package/lib/loading.js +0 -1349
- package/lib/locale/format.js +0 -55
- package/lib/locale/index.js +0 -63
- package/lib/locale/lang/af-ZA.js +0 -126
- package/lib/locale/lang/ar.js +0 -125
- package/lib/locale/lang/az.js +0 -126
- package/lib/locale/lang/bg.js +0 -126
- package/lib/locale/lang/bn.js +0 -126
- package/lib/locale/lang/ca.js +0 -125
- package/lib/locale/lang/cs-CZ.js +0 -128
- package/lib/locale/lang/da.js +0 -125
- package/lib/locale/lang/de.js +0 -127
- package/lib/locale/lang/ee.js +0 -126
- package/lib/locale/lang/el.js +0 -126
- package/lib/locale/lang/en.js +0 -126
- package/lib/locale/lang/eo.js +0 -126
- package/lib/locale/lang/es.js +0 -125
- package/lib/locale/lang/eu.js +0 -126
- package/lib/locale/lang/fa.js +0 -126
- package/lib/locale/lang/fi.js +0 -126
- package/lib/locale/lang/fr.js +0 -125
- package/lib/locale/lang/he.js +0 -126
- package/lib/locale/lang/hr.js +0 -126
- package/lib/locale/lang/hu.js +0 -125
- package/lib/locale/lang/hy-AM.js +0 -126
- package/lib/locale/lang/id.js +0 -126
- package/lib/locale/lang/is.js +0 -126
- package/lib/locale/lang/it.js +0 -125
- package/lib/locale/lang/ja.js +0 -126
- package/lib/locale/lang/kg.js +0 -126
- package/lib/locale/lang/km.js +0 -126
- package/lib/locale/lang/ko.js +0 -126
- package/lib/locale/lang/ku.js +0 -126
- package/lib/locale/lang/kz.js +0 -126
- package/lib/locale/lang/lo-LA.js +0 -126
- package/lib/locale/lang/lt.js +0 -126
- package/lib/locale/lang/lv.js +0 -126
- package/lib/locale/lang/mn.js +0 -126
- package/lib/locale/lang/ms.js +0 -125
- package/lib/locale/lang/nb-NO.js +0 -125
- package/lib/locale/lang/nl.js +0 -126
- package/lib/locale/lang/pl.js +0 -126
- package/lib/locale/lang/pt-br.js +0 -126
- package/lib/locale/lang/pt.js +0 -126
- package/lib/locale/lang/ro.js +0 -126
- package/lib/locale/lang/ru-RU.js +0 -126
- package/lib/locale/lang/si.js +0 -126
- package/lib/locale/lang/sk.js +0 -128
- package/lib/locale/lang/sl.js +0 -126
- package/lib/locale/lang/sr-Latn.js +0 -126
- package/lib/locale/lang/sr.js +0 -126
- package/lib/locale/lang/sv-SE.js +0 -126
- package/lib/locale/lang/sw.js +0 -126
- package/lib/locale/lang/ta.js +0 -125
- package/lib/locale/lang/th.js +0 -126
- package/lib/locale/lang/tk.js +0 -126
- package/lib/locale/lang/tr-TR.js +0 -126
- package/lib/locale/lang/ua.js +0 -126
- package/lib/locale/lang/ug-CN.js +0 -126
- package/lib/locale/lang/uz-UZ.js +0 -126
- package/lib/locale/lang/vi.js +0 -126
- package/lib/locale/lang/zh-CN.js +0 -126
- package/lib/locale/lang/zh-TW.js +0 -126
- package/lib/main.js +0 -257
- package/lib/menu-item-group.js +0 -296
- package/lib/menu-item.js +0 -3344
- package/lib/menu.js +0 -1556
- package/lib/message-box.js +0 -3564
- package/lib/message.js +0 -1601
- package/lib/mixins/emitter.js +0 -36
- package/lib/mixins/focus.js +0 -15
- package/lib/mixins/locale.js +0 -17
- package/lib/mixins/migrating.js +0 -69
- package/lib/notification.js +0 -1662
- package/lib/option-group.js +0 -364
- package/lib/option.js +0 -835
- package/lib/page-header.js +0 -908
- package/lib/pagination.js +0 -6855
- package/lib/popconfirm.js +0 -3708
- package/lib/popover.js +0 -3118
- package/lib/progress.js +0 -542
- package/lib/radio-button.js +0 -456
- package/lib/radio-group.js +0 -412
- package/lib/radio.js +0 -482
- package/lib/rate.js +0 -1278
- package/lib/result.js +0 -528
- package/lib/row.js +0 -149
- package/lib/scrollbar.js +0 -1108
- package/lib/select.js +0 -6134
- package/lib/selectDisplayInput.js +0 -355
- package/lib/skeleton-item.js +0 -322
- package/lib/skeleton.js +0 -345
- package/lib/slider.js +0 -5231
- package/lib/spinner.js +0 -293
- package/lib/statistic.js +0 -9999
- package/lib/step.js +0 -476
- package/lib/steps.js +0 -745
- package/lib/subTitle.js +0 -284
- package/lib/submenu.js +0 -3021
- package/lib/switch.js +0 -970
- package/lib/tab-pane.js +0 -318
- package/lib/tabDialog.js +0 -2264
- package/lib/table-column.js +0 -1800
- package/lib/table.js +0 -8803
- package/lib/tabs.js +0 -1329
- package/lib/tag.js +0 -304
- package/lib/theme-chalk/README.md +0 -33
- package/lib/theme-chalk/element.css +0 -1
- package/lib/theme-chalk/fileUpload.css +0 -1
- package/lib/theme-chalk/gulpfile.js +0 -27
- package/lib/theme-chalk/package.json +0 -35
- package/lib/theme-chalk/selectDisplayInput.css +0 -1
- package/lib/theme-chalk/src/alert.scss +0 -147
- package/lib/theme-chalk/src/aside.scss +0 -7
- package/lib/theme-chalk/src/autocomplete.scss +0 -80
- package/lib/theme-chalk/src/avatar.scss +0 -51
- package/lib/theme-chalk/src/backtop.scss +0 -22
- package/lib/theme-chalk/src/badge.scss +0 -57
- package/lib/theme-chalk/src/base.scss +0 -2
- package/lib/theme-chalk/src/breadcrumb.scss +0 -55
- package/lib/theme-chalk/src/button.scss +0 -262
- package/lib/theme-chalk/src/calendar.scss +0 -79
- package/lib/theme-chalk/src/card.scss +0 -32
- package/lib/theme-chalk/src/carousel-item.scss +0 -50
- package/lib/theme-chalk/src/carousel.scss +0 -161
- package/lib/theme-chalk/src/cascader-panel.scss +0 -120
- package/lib/theme-chalk/src/cascader.scss +0 -182
- package/lib/theme-chalk/src/checkbox.scss +0 -359
- package/lib/theme-chalk/src/col.scss +0 -156
- package/lib/theme-chalk/src/collapse.scss +0 -63
- package/lib/theme-chalk/src/color-picker.scss +0 -384
- package/lib/theme-chalk/src/common/popup.scss +0 -42
- package/lib/theme-chalk/src/common/transition.scss +0 -99
- package/lib/theme-chalk/src/common/var.scss +0 -1028
- package/lib/theme-chalk/src/container.scss +0 -14
- package/lib/theme-chalk/src/date-picker/date-picker.scss +0 -97
- package/lib/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
- package/lib/theme-chalk/src/date-picker/date-table.scss +0 -151
- package/lib/theme-chalk/src/date-picker/month-table.scss +0 -82
- package/lib/theme-chalk/src/date-picker/picker-panel.scss +0 -117
- package/lib/theme-chalk/src/date-picker/picker.scss +0 -197
- package/lib/theme-chalk/src/date-picker/time-picker.scss +0 -85
- package/lib/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
- package/lib/theme-chalk/src/date-picker/time-spinner.scss +0 -110
- package/lib/theme-chalk/src/date-picker/year-table.scss +0 -51
- package/lib/theme-chalk/src/date-picker.scss +0 -12
- package/lib/theme-chalk/src/descriptions-item.scss +0 -42
- package/lib/theme-chalk/src/descriptions.scss +0 -111
- package/lib/theme-chalk/src/dialog.scss +0 -123
- package/lib/theme-chalk/src/display.scss +0 -12
- package/lib/theme-chalk/src/divider.scss +0 -47
- package/lib/theme-chalk/src/drawer.scss +0 -219
- package/lib/theme-chalk/src/dropdown.scss +0 -182
- package/lib/theme-chalk/src/empty.scss +0 -45
- package/lib/theme-chalk/src/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/src/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/src/footer.scss +0 -8
- package/lib/theme-chalk/src/form.scss +0 -167
- package/lib/theme-chalk/src/header.scss +0 -8
- package/lib/theme-chalk/src/icon.scss +0 -1167
- package/lib/theme-chalk/src/image.scss +0 -179
- package/lib/theme-chalk/src/index.scss +0 -87
- package/lib/theme-chalk/src/input-number.scss +0 -180
- package/lib/theme-chalk/src/input.scss +0 -360
- package/lib/theme-chalk/src/link.scss +0 -81
- package/lib/theme-chalk/src/loading.scss +0 -96
- package/lib/theme-chalk/src/main.scss +0 -12
- package/lib/theme-chalk/src/menu.scss +0 -289
- package/lib/theme-chalk/src/message-box.scss +0 -226
- package/lib/theme-chalk/src/message.scss +0 -120
- package/lib/theme-chalk/src/mixins/_button.scss +0 -81
- package/lib/theme-chalk/src/mixins/config.scss +0 -4
- package/lib/theme-chalk/src/mixins/function.scss +0 -44
- package/lib/theme-chalk/src/mixins/mixins.scss +0 -196
- package/lib/theme-chalk/src/mixins/utils.scss +0 -39
- package/lib/theme-chalk/src/notification.scss +0 -99
- package/lib/theme-chalk/src/option-group.scss +0 -42
- package/lib/theme-chalk/src/option.scss +0 -36
- package/lib/theme-chalk/src/page-header.scss +0 -41
- package/lib/theme-chalk/src/pagination.scss +0 -295
- package/lib/theme-chalk/src/popconfirm.scss +0 -16
- package/lib/theme-chalk/src/popover.scss +0 -40
- package/lib/theme-chalk/src/popper.scss +0 -101
- package/lib/theme-chalk/src/progress.scss +0 -141
- package/lib/theme-chalk/src/radio-button.scss +0 -113
- package/lib/theme-chalk/src/radio-group.scss +0 -9
- package/lib/theme-chalk/src/radio.scss +0 -199
- package/lib/theme-chalk/src/rate.scss +0 -49
- package/lib/theme-chalk/src/reset.scss +0 -79
- package/lib/theme-chalk/src/result.scss +0 -61
- package/lib/theme-chalk/src/row.scss +0 -43
- package/lib/theme-chalk/src/scrollbar.scss +0 -72
- package/lib/theme-chalk/src/select-dropdown.scss +0 -62
- package/lib/theme-chalk/src/select.scss +0 -152
- package/lib/theme-chalk/src/skeleton-item.scss +0 -84
- package/lib/theme-chalk/src/skeleton.scss +0 -40
- package/lib/theme-chalk/src/slider.scss +0 -250
- package/lib/theme-chalk/src/spinner.scss +0 -44
- package/lib/theme-chalk/src/statistic.scss +0 -38
- package/lib/theme-chalk/src/step.scss +0 -317
- package/lib/theme-chalk/src/steps.scss +0 -20
- package/lib/theme-chalk/src/switch.scss +0 -116
- package/lib/theme-chalk/src/table-column.scss +0 -97
- package/lib/theme-chalk/src/table.scss +0 -564
- package/lib/theme-chalk/src/tabs.scss +0 -602
- package/lib/theme-chalk/src/tag.scss +0 -163
- package/lib/theme-chalk/src/time-picker.scss +0 -8
- package/lib/theme-chalk/src/time-select.scss +0 -37
- package/lib/theme-chalk/src/timeline-item.scss +0 -86
- package/lib/theme-chalk/src/timeline.scss +0 -14
- package/lib/theme-chalk/src/tooltip.scss +0 -141
- package/lib/theme-chalk/src/transfer.scss +0 -227
- package/lib/theme-chalk/src/tree.scss +0 -123
- package/lib/theme-chalk/src/upload.scss +0 -603
- package/lib/theme-chalk/subTitle.css +0 -1
- package/lib/theme-chalk/tabDialog.css +0 -1
- package/lib/theme-chalk/treeSelect.css +0 -1
- package/lib/theme-cy/base.css +0 -1
- package/lib/theme-cy/element.css +0 -1
- package/lib/theme-cy/fileUpload.css +0 -1
- package/lib/theme-cy/index.css +0 -1
- package/lib/theme-cy/selectDisplayInput.css +0 -1
- package/lib/theme-cy/subTitle.css +0 -1
- package/lib/theme-cy/tabDialog.css +0 -1
- package/lib/theme-cy/treeSelect.css +0 -1
- package/lib/time-picker.js +0 -6881
- package/lib/time-select.js +0 -5892
- package/lib/timeline-item.js +0 -329
- package/lib/timeline.js +0 -275
- package/lib/tooltip.js +0 -2950
- package/lib/transfer.js +0 -2998
- package/lib/transitions/collapse-transition.js +0 -91
- package/lib/tree.js +0 -3470
- package/lib/treeSelect.js +0 -4058
- package/lib/umd/locale/af-ZA.js +0 -142
- package/lib/umd/locale/ar.js +0 -141
- package/lib/umd/locale/az.js +0 -141
- package/lib/umd/locale/bg.js +0 -142
- package/lib/umd/locale/bn.js +0 -141
- package/lib/umd/locale/ca.js +0 -141
- package/lib/umd/locale/cs-CZ.js +0 -144
- package/lib/umd/locale/da.js +0 -141
- package/lib/umd/locale/de.js +0 -143
- package/lib/umd/locale/ee.js +0 -142
- package/lib/umd/locale/el.js +0 -142
- package/lib/umd/locale/en.js +0 -142
- package/lib/umd/locale/eo.js +0 -142
- package/lib/umd/locale/es.js +0 -141
- package/lib/umd/locale/eu.js +0 -142
- package/lib/umd/locale/fa.js +0 -142
- package/lib/umd/locale/fi.js +0 -142
- package/lib/umd/locale/fr.js +0 -141
- package/lib/umd/locale/he.js +0 -142
- package/lib/umd/locale/hr.js +0 -142
- package/lib/umd/locale/hu.js +0 -141
- package/lib/umd/locale/hy-AM.js +0 -142
- package/lib/umd/locale/id.js +0 -142
- package/lib/umd/locale/is.js +0 -142
- package/lib/umd/locale/it.js +0 -141
- package/lib/umd/locale/ja.js +0 -142
- package/lib/umd/locale/kg.js +0 -142
- package/lib/umd/locale/km.js +0 -142
- package/lib/umd/locale/ko.js +0 -142
- package/lib/umd/locale/ku.js +0 -142
- package/lib/umd/locale/kz.js +0 -142
- package/lib/umd/locale/lo-LA.js +0 -141
- package/lib/umd/locale/lt.js +0 -142
- package/lib/umd/locale/lv.js +0 -142
- package/lib/umd/locale/mn.js +0 -142
- package/lib/umd/locale/ms.js +0 -141
- package/lib/umd/locale/nb-NO.js +0 -141
- package/lib/umd/locale/nl.js +0 -142
- package/lib/umd/locale/pl.js +0 -142
- package/lib/umd/locale/pt-br.js +0 -142
- package/lib/umd/locale/pt.js +0 -142
- package/lib/umd/locale/ro.js +0 -142
- package/lib/umd/locale/ru-RU.js +0 -142
- package/lib/umd/locale/si.js +0 -142
- package/lib/umd/locale/sk.js +0 -144
- package/lib/umd/locale/sl.js +0 -142
- package/lib/umd/locale/sr-Latn.js +0 -142
- package/lib/umd/locale/sr.js +0 -142
- package/lib/umd/locale/sv-SE.js +0 -142
- package/lib/umd/locale/sw.js +0 -142
- package/lib/umd/locale/ta.js +0 -141
- package/lib/umd/locale/th.js +0 -142
- package/lib/umd/locale/tk.js +0 -142
- package/lib/umd/locale/tr-TR.js +0 -142
- package/lib/umd/locale/ua.js +0 -142
- package/lib/umd/locale/ug-CN.js +0 -142
- package/lib/umd/locale/uz-UZ.js +0 -142
- package/lib/umd/locale/vi.js +0 -142
- package/lib/umd/locale/zh-CN.js +0 -142
- package/lib/umd/locale/zh-TW.js +0 -142
- package/lib/upload.js +0 -2337
- package/lib/utils/after-leave.js +0 -35
- package/lib/utils/aria-dialog.js +0 -104
- package/lib/utils/aria-utils.js +0 -126
- package/lib/utils/clickoutside.js +0 -79
- package/lib/utils/date-util.js +0 -310
- package/lib/utils/date.js +0 -369
- package/lib/utils/dom.js +0 -234
- package/lib/utils/lodash.js +0 -9421
- package/lib/utils/menu/aria-menubar.js +0 -24
- package/lib/utils/menu/aria-menuitem.js +0 -62
- package/lib/utils/menu/aria-submenu.js +0 -69
- package/lib/utils/merge.js +0 -21
- package/lib/utils/popper.js +0 -1261
- package/lib/utils/popup/index.js +0 -233
- package/lib/utils/popup/popup-manager.js +0 -205
- package/lib/utils/resize-event.js +0 -59
- package/lib/utils/scroll-into-view.js +0 -38
- package/lib/utils/scrollbar-width.js +0 -39
- package/lib/utils/shared.js +0 -12
- package/lib/utils/types.js +0 -52
- package/lib/utils/util.js +0 -272
- package/lib/utils/vdom.js +0 -13
- package/lib/utils/vue-popper.js +0 -202
- package/packages/fileUpload/index.js +0 -8
- package/packages/fileUpload/src/main.vue +0 -430
- package/packages/selectDisplayInput/index.js +0 -8
- package/packages/selectDisplayInput/src/main.vue +0 -75
- 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/README.md +0 -38
- package/packages/theme-cy/gulpfile.js +0 -27
- package/packages/theme-cy/package.json +0 -35
- package/packages/theme-cy/src/base.scss +0 -3
- package/packages/theme-cy/src/element.scss +0 -45
- package/packages/theme-cy/src/fileUpload.scss +0 -30
- package/packages/theme-cy/src/index.scss +0 -7
- package/packages/theme-cy/src/selectDisplayInput.scss +0 -76
- package/packages/theme-cy/src/subTitle.scss +0 -26
- package/packages/theme-cy/src/tabDialog.scss +0 -43
- package/packages/theme-cy/src/treeSelect.scss +0 -98
- package/packages/treeSelect/index.js +0 -8
- package/packages/treeSelect/src/main.vue +0 -325
- package/src/locale/lang/af-ZA.js +0 -123
- package/src/locale/lang/ar.js +0 -122
- package/src/locale/lang/az.js +0 -126
- package/src/locale/lang/bg.js +0 -123
- package/src/locale/lang/bn.js +0 -126
- package/src/locale/lang/ca.js +0 -122
- package/src/locale/lang/cs-CZ.js +0 -125
- package/src/locale/lang/da.js +0 -122
- package/src/locale/lang/de.js +0 -124
- package/src/locale/lang/ee.js +0 -123
- package/src/locale/lang/el.js +0 -123
- package/src/locale/lang/eo.js +0 -123
- package/src/locale/lang/es.js +0 -122
- package/src/locale/lang/eu.js +0 -123
- package/src/locale/lang/fa.js +0 -123
- package/src/locale/lang/fi.js +0 -123
- package/src/locale/lang/fr.js +0 -122
- package/src/locale/lang/he.js +0 -123
- package/src/locale/lang/hr.js +0 -123
- package/src/locale/lang/hu.js +0 -122
- package/src/locale/lang/hy-AM.js +0 -123
- package/src/locale/lang/id.js +0 -123
- package/src/locale/lang/is.js +0 -124
- package/src/locale/lang/it.js +0 -122
- package/src/locale/lang/ja.js +0 -123
- package/src/locale/lang/kg.js +0 -123
- package/src/locale/lang/km.js +0 -123
- package/src/locale/lang/ko.js +0 -123
- package/src/locale/lang/ku.js +0 -123
- package/src/locale/lang/kz.js +0 -123
- package/src/locale/lang/lo-LA.js +0 -126
- package/src/locale/lang/lt.js +0 -123
- package/src/locale/lang/lv.js +0 -123
- package/src/locale/lang/mn.js +0 -123
- package/src/locale/lang/ms.js +0 -122
- package/src/locale/lang/nb-NO.js +0 -122
- package/src/locale/lang/nl.js +0 -123
- package/src/locale/lang/pl.js +0 -123
- package/src/locale/lang/pt-br.js +0 -123
- package/src/locale/lang/pt.js +0 -123
- package/src/locale/lang/ro.js +0 -123
- package/src/locale/lang/ru-RU.js +0 -123
- package/src/locale/lang/si.js +0 -123
- package/src/locale/lang/sk.js +0 -125
- package/src/locale/lang/sl.js +0 -123
- package/src/locale/lang/sr-Latn.js +0 -123
- package/src/locale/lang/sr.js +0 -123
- package/src/locale/lang/sv-SE.js +0 -123
- package/src/locale/lang/sw.js +0 -123
- package/src/locale/lang/ta.js +0 -122
- package/src/locale/lang/th.js +0 -123
- package/src/locale/lang/tk.js +0 -123
- package/src/locale/lang/tr-TR.js +0 -123
- package/src/locale/lang/ua.js +0 -123
- package/src/locale/lang/ug-CN.js +0 -123
- package/src/locale/lang/uz-UZ.js +0 -123
- package/src/locale/lang/vi.js +0 -123
- package/types/fileUpload.d.ts +0 -5
- package/types/selectDisplayInput.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/theme-chalk/{src/breadcrumb-item.scss → breadcrumb-item.css} +0 -0
- /package/lib/theme-chalk/{src/button-group.scss → button-group.css} +0 -0
- /package/lib/theme-chalk/{src/checkbox-button.scss → checkbox-button.css} +0 -0
- /package/lib/theme-chalk/{src/checkbox-group.scss → checkbox-group.css} +0 -0
- /package/lib/theme-chalk/{src/collapse-item.scss → collapse-item.css} +0 -0
- /package/lib/theme-chalk/{src/dropdown-item.scss → dropdown-item.css} +0 -0
- /package/lib/theme-chalk/{src/dropdown-menu.scss → dropdown-menu.css} +0 -0
- /package/lib/theme-chalk/{src/form-item.scss → form-item.css} +0 -0
- /package/lib/theme-chalk/{src/infinite-scroll.scss → infinite-scroll.css} +0 -0
- /package/lib/theme-chalk/{src/infiniteScroll.scss → infiniteScroll.css} +0 -0
- /package/lib/theme-chalk/{src/menu-item-group.scss → menu-item-group.css} +0 -0
- /package/lib/theme-chalk/{src/menu-item.scss → menu-item.css} +0 -0
- /package/lib/theme-chalk/{src/submenu.scss → submenu.css} +0 -0
- /package/lib/theme-chalk/{src/tab-pane.scss → tab-pane.css} +0 -0
package/lib/calendar.js
DELETED
|
@@ -1,2373 +0,0 @@
|
|
|
1
|
-
module.exports =
|
|
2
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
-
/******/ // The module cache
|
|
4
|
-
/******/ var installedModules = {};
|
|
5
|
-
/******/
|
|
6
|
-
/******/ // The require function
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 74);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("vue");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 11:
|
|
98
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
"use strict";
|
|
101
|
-
|
|
102
|
-
// EXPORTS
|
|
103
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
|
|
104
|
-
|
|
105
|
-
// UNUSED EXPORTS: use, i18n
|
|
106
|
-
|
|
107
|
-
// CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
|
|
108
|
-
/* harmony default export */ var zh_CN = ({
|
|
109
|
-
el: {
|
|
110
|
-
colorpicker: {
|
|
111
|
-
confirm: '确定',
|
|
112
|
-
clear: '清空'
|
|
113
|
-
},
|
|
114
|
-
datepicker: {
|
|
115
|
-
now: '此刻',
|
|
116
|
-
today: '今天',
|
|
117
|
-
cancel: '取消',
|
|
118
|
-
clear: '清空',
|
|
119
|
-
confirm: '确定',
|
|
120
|
-
selectDate: '选择日期',
|
|
121
|
-
selectTime: '选择时间',
|
|
122
|
-
startDate: '开始日期',
|
|
123
|
-
startTime: '开始时间',
|
|
124
|
-
endDate: '结束日期',
|
|
125
|
-
endTime: '结束时间',
|
|
126
|
-
prevYear: '前一年',
|
|
127
|
-
nextYear: '后一年',
|
|
128
|
-
prevMonth: '上个月',
|
|
129
|
-
nextMonth: '下个月',
|
|
130
|
-
year: '年',
|
|
131
|
-
month1: '1 月',
|
|
132
|
-
month2: '2 月',
|
|
133
|
-
month3: '3 月',
|
|
134
|
-
month4: '4 月',
|
|
135
|
-
month5: '5 月',
|
|
136
|
-
month6: '6 月',
|
|
137
|
-
month7: '7 月',
|
|
138
|
-
month8: '8 月',
|
|
139
|
-
month9: '9 月',
|
|
140
|
-
month10: '10 月',
|
|
141
|
-
month11: '11 月',
|
|
142
|
-
month12: '12 月',
|
|
143
|
-
// week: '周次',
|
|
144
|
-
weeks: {
|
|
145
|
-
sun: '日',
|
|
146
|
-
mon: '一',
|
|
147
|
-
tue: '二',
|
|
148
|
-
wed: '三',
|
|
149
|
-
thu: '四',
|
|
150
|
-
fri: '五',
|
|
151
|
-
sat: '六'
|
|
152
|
-
},
|
|
153
|
-
months: {
|
|
154
|
-
jan: '一月',
|
|
155
|
-
feb: '二月',
|
|
156
|
-
mar: '三月',
|
|
157
|
-
apr: '四月',
|
|
158
|
-
may: '五月',
|
|
159
|
-
jun: '六月',
|
|
160
|
-
jul: '七月',
|
|
161
|
-
aug: '八月',
|
|
162
|
-
sep: '九月',
|
|
163
|
-
oct: '十月',
|
|
164
|
-
nov: '十一月',
|
|
165
|
-
dec: '十二月'
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
select: {
|
|
169
|
-
loading: '加载中',
|
|
170
|
-
noMatch: '无匹配数据',
|
|
171
|
-
noData: '无数据',
|
|
172
|
-
placeholder: '请选择'
|
|
173
|
-
},
|
|
174
|
-
cascader: {
|
|
175
|
-
noMatch: '无匹配数据',
|
|
176
|
-
loading: '加载中',
|
|
177
|
-
placeholder: '请选择',
|
|
178
|
-
noData: '暂无数据'
|
|
179
|
-
},
|
|
180
|
-
pagination: {
|
|
181
|
-
goto: '前往',
|
|
182
|
-
pagesize: '条/页',
|
|
183
|
-
total: '共 {total} 条',
|
|
184
|
-
pageClassifier: '页'
|
|
185
|
-
},
|
|
186
|
-
messagebox: {
|
|
187
|
-
title: '提示',
|
|
188
|
-
confirm: '确定',
|
|
189
|
-
cancel: '取消',
|
|
190
|
-
error: '输入的数据不合法!'
|
|
191
|
-
},
|
|
192
|
-
upload: {
|
|
193
|
-
deleteTip: '按 delete 键可删除',
|
|
194
|
-
delete: '删除',
|
|
195
|
-
preview: '查看图片',
|
|
196
|
-
continue: '继续上传'
|
|
197
|
-
},
|
|
198
|
-
table: {
|
|
199
|
-
emptyText: '暂无数据',
|
|
200
|
-
confirmFilter: '筛选',
|
|
201
|
-
resetFilter: '重置',
|
|
202
|
-
clearFilter: '全部',
|
|
203
|
-
sumText: '合计'
|
|
204
|
-
},
|
|
205
|
-
tree: {
|
|
206
|
-
emptyText: '暂无数据'
|
|
207
|
-
},
|
|
208
|
-
transfer: {
|
|
209
|
-
noMatch: '无匹配数据',
|
|
210
|
-
noData: '无数据',
|
|
211
|
-
titles: ['列表 1', '列表 2'],
|
|
212
|
-
filterPlaceholder: '请输入搜索内容',
|
|
213
|
-
noCheckedFormat: '共 {total} 项',
|
|
214
|
-
hasCheckedFormat: '已选 {checked}/{total} 项'
|
|
215
|
-
},
|
|
216
|
-
image: {
|
|
217
|
-
error: '加载失败'
|
|
218
|
-
},
|
|
219
|
-
pageHeader: {
|
|
220
|
-
title: '返回'
|
|
221
|
-
},
|
|
222
|
-
popconfirm: {
|
|
223
|
-
confirmButtonText: '确定',
|
|
224
|
-
cancelButtonText: '取消'
|
|
225
|
-
},
|
|
226
|
-
empty: {
|
|
227
|
-
description: '暂无数据'
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
// EXTERNAL MODULE: external "vue"
|
|
232
|
-
var external_vue_ = __webpack_require__(0);
|
|
233
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
234
|
-
|
|
235
|
-
// EXTERNAL MODULE: external "deepmerge"
|
|
236
|
-
var external_deepmerge_ = __webpack_require__(15);
|
|
237
|
-
var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
|
|
238
|
-
|
|
239
|
-
// EXTERNAL MODULE: ./src/utils/util.js
|
|
240
|
-
var util = __webpack_require__(3);
|
|
241
|
-
|
|
242
|
-
// CONCATENATED MODULE: ./src/locale/format.js
|
|
243
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
248
|
-
/**
|
|
249
|
-
* String format template
|
|
250
|
-
* - Inspired:
|
|
251
|
-
* https://github.com/Matt-Esch/string-template/index.js
|
|
252
|
-
*/
|
|
253
|
-
/* harmony default export */ var format = (function (Vue) {
|
|
254
|
-
/**
|
|
255
|
-
* template
|
|
256
|
-
*
|
|
257
|
-
* @param {String} string
|
|
258
|
-
* @param {Array} ...args
|
|
259
|
-
* @return {String}
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
function template(string) {
|
|
263
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
264
|
-
args[_key - 1] = arguments[_key];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
268
|
-
args = args[0];
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
if (!args || !args.hasOwnProperty) {
|
|
272
|
-
args = {};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
276
|
-
var result = void 0;
|
|
277
|
-
|
|
278
|
-
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
279
|
-
return i;
|
|
280
|
-
} else {
|
|
281
|
-
result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
|
|
282
|
-
if (result === null || result === undefined) {
|
|
283
|
-
return '';
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
return result;
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return template;
|
|
292
|
-
});
|
|
293
|
-
// CONCATENATED MODULE: ./src/locale/index.js
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
var locale_format = format(external_vue_default.a);
|
|
300
|
-
var lang = zh_CN;
|
|
301
|
-
var merged = false;
|
|
302
|
-
var locale_i18nHandler = function i18nHandler() {
|
|
303
|
-
var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
|
|
304
|
-
if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
|
|
305
|
-
if (!merged) {
|
|
306
|
-
merged = true;
|
|
307
|
-
external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
|
|
308
|
-
}
|
|
309
|
-
return vuei18n.apply(this, arguments);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
var t = function t(path, options) {
|
|
314
|
-
var value = locale_i18nHandler.apply(this, arguments);
|
|
315
|
-
if (value !== null && value !== undefined) return value;
|
|
316
|
-
|
|
317
|
-
var array = path.split('.');
|
|
318
|
-
var current = lang;
|
|
319
|
-
|
|
320
|
-
for (var i = 0, j = array.length; i < j; i++) {
|
|
321
|
-
var property = array[i];
|
|
322
|
-
value = current[property];
|
|
323
|
-
if (i === j - 1) return locale_format(value, options);
|
|
324
|
-
if (!value) return '';
|
|
325
|
-
current = value;
|
|
326
|
-
}
|
|
327
|
-
return '';
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
var use = function use(l) {
|
|
331
|
-
lang = l || lang;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
var i18n = function i18n(fn) {
|
|
335
|
-
locale_i18nHandler = fn || locale_i18nHandler;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
/* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
|
|
339
|
-
|
|
340
|
-
/***/ }),
|
|
341
|
-
|
|
342
|
-
/***/ 13:
|
|
343
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
344
|
-
|
|
345
|
-
"use strict";
|
|
346
|
-
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
350
|
-
methods: {
|
|
351
|
-
t: function t() {
|
|
352
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
353
|
-
args[_key] = arguments[_key];
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
/***/ }),
|
|
362
|
-
|
|
363
|
-
/***/ 15:
|
|
364
|
-
/***/ (function(module, exports) {
|
|
365
|
-
|
|
366
|
-
module.exports = require("deepmerge");
|
|
367
|
-
|
|
368
|
-
/***/ }),
|
|
369
|
-
|
|
370
|
-
/***/ 2:
|
|
371
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
372
|
-
|
|
373
|
-
"use strict";
|
|
374
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
375
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
376
|
-
|
|
377
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
378
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
379
|
-
// be included in the final webpack user bundle.
|
|
380
|
-
|
|
381
|
-
function normalizeComponent(
|
|
382
|
-
scriptExports,
|
|
383
|
-
render,
|
|
384
|
-
staticRenderFns,
|
|
385
|
-
functionalTemplate,
|
|
386
|
-
injectStyles,
|
|
387
|
-
scopeId,
|
|
388
|
-
moduleIdentifier /* server only */,
|
|
389
|
-
shadowMode /* vue-cli only */
|
|
390
|
-
) {
|
|
391
|
-
// Vue.extend constructor export interop
|
|
392
|
-
var options =
|
|
393
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
394
|
-
|
|
395
|
-
// render functions
|
|
396
|
-
if (render) {
|
|
397
|
-
options.render = render
|
|
398
|
-
options.staticRenderFns = staticRenderFns
|
|
399
|
-
options._compiled = true
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
// functional template
|
|
403
|
-
if (functionalTemplate) {
|
|
404
|
-
options.functional = true
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
// scopedId
|
|
408
|
-
if (scopeId) {
|
|
409
|
-
options._scopeId = 'data-v-' + scopeId
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
var hook
|
|
413
|
-
if (moduleIdentifier) {
|
|
414
|
-
// server build
|
|
415
|
-
hook = function (context) {
|
|
416
|
-
// 2.3 injection
|
|
417
|
-
context =
|
|
418
|
-
context || // cached call
|
|
419
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
420
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
421
|
-
// 2.2 with runInNewContext: true
|
|
422
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
423
|
-
context = __VUE_SSR_CONTEXT__
|
|
424
|
-
}
|
|
425
|
-
// inject component styles
|
|
426
|
-
if (injectStyles) {
|
|
427
|
-
injectStyles.call(this, context)
|
|
428
|
-
}
|
|
429
|
-
// register component module identifier for async chunk inferrence
|
|
430
|
-
if (context && context._registeredComponents) {
|
|
431
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
// used by ssr in case component is cached and beforeCreate
|
|
435
|
-
// never gets called
|
|
436
|
-
options._ssrRegister = hook
|
|
437
|
-
} else if (injectStyles) {
|
|
438
|
-
hook = shadowMode
|
|
439
|
-
? function () {
|
|
440
|
-
injectStyles.call(
|
|
441
|
-
this,
|
|
442
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
443
|
-
)
|
|
444
|
-
}
|
|
445
|
-
: injectStyles
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
if (hook) {
|
|
449
|
-
if (options.functional) {
|
|
450
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
451
|
-
// go through the normalizer
|
|
452
|
-
options._injectStyles = hook
|
|
453
|
-
// register for functional component in vue file
|
|
454
|
-
var originalRender = options.render
|
|
455
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
456
|
-
hook.call(context)
|
|
457
|
-
return originalRender(h, context)
|
|
458
|
-
}
|
|
459
|
-
} else {
|
|
460
|
-
// inject component registration as beforeCreate hook
|
|
461
|
-
var existing = options.beforeCreate
|
|
462
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return {
|
|
467
|
-
exports: scriptExports,
|
|
468
|
-
options: options
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
/***/ }),
|
|
474
|
-
|
|
475
|
-
/***/ 24:
|
|
476
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
477
|
-
|
|
478
|
-
var __WEBPACK_AMD_DEFINE_RESULT__;/* Modified from https://github.com/taylorhakes/fecha
|
|
479
|
-
*
|
|
480
|
-
* The MIT License (MIT)
|
|
481
|
-
*
|
|
482
|
-
* Copyright (c) 2015 Taylor Hakes
|
|
483
|
-
*
|
|
484
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
485
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
486
|
-
* in the Software without restriction, including without limitation the rights
|
|
487
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
488
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
489
|
-
* furnished to do so, subject to the following conditions:
|
|
490
|
-
*
|
|
491
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
492
|
-
* copies or substantial portions of the Software.
|
|
493
|
-
*
|
|
494
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
495
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
496
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
497
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
498
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
499
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
500
|
-
* SOFTWARE.
|
|
501
|
-
*/
|
|
502
|
-
|
|
503
|
-
/*eslint-disable*/
|
|
504
|
-
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
505
|
-
(function (main) {
|
|
506
|
-
'use strict';
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Parse or format dates
|
|
510
|
-
* @class fecha
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
var fecha = {};
|
|
514
|
-
var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
515
|
-
var twoDigits = '\\d\\d?';
|
|
516
|
-
var threeDigits = '\\d{3}';
|
|
517
|
-
var fourDigits = '\\d{4}';
|
|
518
|
-
var word = '[^\\s]+';
|
|
519
|
-
var literal = /\[([^]*?)\]/gm;
|
|
520
|
-
var noop = function noop() {};
|
|
521
|
-
|
|
522
|
-
function regexEscape(str) {
|
|
523
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
function shorten(arr, sLen) {
|
|
527
|
-
var newArr = [];
|
|
528
|
-
for (var i = 0, len = arr.length; i < len; i++) {
|
|
529
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
530
|
-
}
|
|
531
|
-
return newArr;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
function monthUpdate(arrName) {
|
|
535
|
-
return function (d, v, i18n) {
|
|
536
|
-
var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
|
|
537
|
-
if (~index) {
|
|
538
|
-
d.month = index;
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function pad(val, len) {
|
|
544
|
-
val = String(val);
|
|
545
|
-
len = len || 2;
|
|
546
|
-
while (val.length < len) {
|
|
547
|
-
val = '0' + val;
|
|
548
|
-
}
|
|
549
|
-
return val;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
553
|
-
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
554
|
-
var monthNamesShort = shorten(monthNames, 3);
|
|
555
|
-
var dayNamesShort = shorten(dayNames, 3);
|
|
556
|
-
fecha.i18n = {
|
|
557
|
-
dayNamesShort: dayNamesShort,
|
|
558
|
-
dayNames: dayNames,
|
|
559
|
-
monthNamesShort: monthNamesShort,
|
|
560
|
-
monthNames: monthNames,
|
|
561
|
-
amPm: ['am', 'pm'],
|
|
562
|
-
DoFn: function DoFn(D) {
|
|
563
|
-
return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
var formatFlags = {
|
|
568
|
-
D: function D(dateObj) {
|
|
569
|
-
return dateObj.getDay();
|
|
570
|
-
},
|
|
571
|
-
DD: function DD(dateObj) {
|
|
572
|
-
return pad(dateObj.getDay());
|
|
573
|
-
},
|
|
574
|
-
Do: function Do(dateObj, i18n) {
|
|
575
|
-
return i18n.DoFn(dateObj.getDate());
|
|
576
|
-
},
|
|
577
|
-
d: function d(dateObj) {
|
|
578
|
-
return dateObj.getDate();
|
|
579
|
-
},
|
|
580
|
-
dd: function dd(dateObj) {
|
|
581
|
-
return pad(dateObj.getDate());
|
|
582
|
-
},
|
|
583
|
-
ddd: function ddd(dateObj, i18n) {
|
|
584
|
-
return i18n.dayNamesShort[dateObj.getDay()];
|
|
585
|
-
},
|
|
586
|
-
dddd: function dddd(dateObj, i18n) {
|
|
587
|
-
return i18n.dayNames[dateObj.getDay()];
|
|
588
|
-
},
|
|
589
|
-
M: function M(dateObj) {
|
|
590
|
-
return dateObj.getMonth() + 1;
|
|
591
|
-
},
|
|
592
|
-
MM: function MM(dateObj) {
|
|
593
|
-
return pad(dateObj.getMonth() + 1);
|
|
594
|
-
},
|
|
595
|
-
MMM: function MMM(dateObj, i18n) {
|
|
596
|
-
return i18n.monthNamesShort[dateObj.getMonth()];
|
|
597
|
-
},
|
|
598
|
-
MMMM: function MMMM(dateObj, i18n) {
|
|
599
|
-
return i18n.monthNames[dateObj.getMonth()];
|
|
600
|
-
},
|
|
601
|
-
yy: function yy(dateObj) {
|
|
602
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
603
|
-
},
|
|
604
|
-
yyyy: function yyyy(dateObj) {
|
|
605
|
-
return pad(dateObj.getFullYear(), 4);
|
|
606
|
-
},
|
|
607
|
-
h: function h(dateObj) {
|
|
608
|
-
return dateObj.getHours() % 12 || 12;
|
|
609
|
-
},
|
|
610
|
-
hh: function hh(dateObj) {
|
|
611
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
612
|
-
},
|
|
613
|
-
H: function H(dateObj) {
|
|
614
|
-
return dateObj.getHours();
|
|
615
|
-
},
|
|
616
|
-
HH: function HH(dateObj) {
|
|
617
|
-
return pad(dateObj.getHours());
|
|
618
|
-
},
|
|
619
|
-
m: function m(dateObj) {
|
|
620
|
-
return dateObj.getMinutes();
|
|
621
|
-
},
|
|
622
|
-
mm: function mm(dateObj) {
|
|
623
|
-
return pad(dateObj.getMinutes());
|
|
624
|
-
},
|
|
625
|
-
s: function s(dateObj) {
|
|
626
|
-
return dateObj.getSeconds();
|
|
627
|
-
},
|
|
628
|
-
ss: function ss(dateObj) {
|
|
629
|
-
return pad(dateObj.getSeconds());
|
|
630
|
-
},
|
|
631
|
-
S: function S(dateObj) {
|
|
632
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
633
|
-
},
|
|
634
|
-
SS: function SS(dateObj) {
|
|
635
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
636
|
-
},
|
|
637
|
-
SSS: function SSS(dateObj) {
|
|
638
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
639
|
-
},
|
|
640
|
-
a: function a(dateObj, i18n) {
|
|
641
|
-
return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
|
|
642
|
-
},
|
|
643
|
-
A: function A(dateObj, i18n) {
|
|
644
|
-
return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
|
|
645
|
-
},
|
|
646
|
-
ZZ: function ZZ(dateObj) {
|
|
647
|
-
var o = dateObj.getTimezoneOffset();
|
|
648
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
var parseFlags = {
|
|
653
|
-
d: [twoDigits, function (d, v) {
|
|
654
|
-
d.day = v;
|
|
655
|
-
}],
|
|
656
|
-
Do: [twoDigits + word, function (d, v) {
|
|
657
|
-
d.day = parseInt(v, 10);
|
|
658
|
-
}],
|
|
659
|
-
M: [twoDigits, function (d, v) {
|
|
660
|
-
d.month = v - 1;
|
|
661
|
-
}],
|
|
662
|
-
yy: [twoDigits, function (d, v) {
|
|
663
|
-
var da = new Date(),
|
|
664
|
-
cent = +('' + da.getFullYear()).substr(0, 2);
|
|
665
|
-
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
666
|
-
}],
|
|
667
|
-
h: [twoDigits, function (d, v) {
|
|
668
|
-
d.hour = v;
|
|
669
|
-
}],
|
|
670
|
-
m: [twoDigits, function (d, v) {
|
|
671
|
-
d.minute = v;
|
|
672
|
-
}],
|
|
673
|
-
s: [twoDigits, function (d, v) {
|
|
674
|
-
d.second = v;
|
|
675
|
-
}],
|
|
676
|
-
yyyy: [fourDigits, function (d, v) {
|
|
677
|
-
d.year = v;
|
|
678
|
-
}],
|
|
679
|
-
S: ['\\d', function (d, v) {
|
|
680
|
-
d.millisecond = v * 100;
|
|
681
|
-
}],
|
|
682
|
-
SS: ['\\d{2}', function (d, v) {
|
|
683
|
-
d.millisecond = v * 10;
|
|
684
|
-
}],
|
|
685
|
-
SSS: [threeDigits, function (d, v) {
|
|
686
|
-
d.millisecond = v;
|
|
687
|
-
}],
|
|
688
|
-
D: [twoDigits, noop],
|
|
689
|
-
ddd: [word, noop],
|
|
690
|
-
MMM: [word, monthUpdate('monthNamesShort')],
|
|
691
|
-
MMMM: [word, monthUpdate('monthNames')],
|
|
692
|
-
a: [word, function (d, v, i18n) {
|
|
693
|
-
var val = v.toLowerCase();
|
|
694
|
-
if (val === i18n.amPm[0]) {
|
|
695
|
-
d.isPm = false;
|
|
696
|
-
} else if (val === i18n.amPm[1]) {
|
|
697
|
-
d.isPm = true;
|
|
698
|
-
}
|
|
699
|
-
}],
|
|
700
|
-
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
701
|
-
var parts = (v + '').match(/([+-]|\d\d)/gi),
|
|
702
|
-
minutes;
|
|
703
|
-
|
|
704
|
-
if (parts) {
|
|
705
|
-
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
706
|
-
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
707
|
-
}
|
|
708
|
-
}]
|
|
709
|
-
};
|
|
710
|
-
parseFlags.dd = parseFlags.d;
|
|
711
|
-
parseFlags.dddd = parseFlags.ddd;
|
|
712
|
-
parseFlags.DD = parseFlags.D;
|
|
713
|
-
parseFlags.mm = parseFlags.m;
|
|
714
|
-
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
715
|
-
parseFlags.MM = parseFlags.M;
|
|
716
|
-
parseFlags.ss = parseFlags.s;
|
|
717
|
-
parseFlags.A = parseFlags.a;
|
|
718
|
-
|
|
719
|
-
// Some common format strings
|
|
720
|
-
fecha.masks = {
|
|
721
|
-
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
722
|
-
shortDate: 'M/D/yy',
|
|
723
|
-
mediumDate: 'MMM d, yyyy',
|
|
724
|
-
longDate: 'MMMM d, yyyy',
|
|
725
|
-
fullDate: 'dddd, MMMM d, yyyy',
|
|
726
|
-
shortTime: 'HH:mm',
|
|
727
|
-
mediumTime: 'HH:mm:ss',
|
|
728
|
-
longTime: 'HH:mm:ss.SSS'
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
/***
|
|
732
|
-
* Format a date
|
|
733
|
-
* @method format
|
|
734
|
-
* @param {Date|number} dateObj
|
|
735
|
-
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
736
|
-
*/
|
|
737
|
-
fecha.format = function (dateObj, mask, i18nSettings) {
|
|
738
|
-
var i18n = i18nSettings || fecha.i18n;
|
|
739
|
-
|
|
740
|
-
if (typeof dateObj === 'number') {
|
|
741
|
-
dateObj = new Date(dateObj);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
745
|
-
throw new Error('Invalid Date in fecha.format');
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
749
|
-
|
|
750
|
-
var literals = [];
|
|
751
|
-
|
|
752
|
-
// Make literals inactive by replacing them with ??
|
|
753
|
-
mask = mask.replace(literal, function ($0, $1) {
|
|
754
|
-
literals.push($1);
|
|
755
|
-
return '@@@';
|
|
756
|
-
});
|
|
757
|
-
// Apply formatting rules
|
|
758
|
-
mask = mask.replace(token, function ($0) {
|
|
759
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
|
|
760
|
-
});
|
|
761
|
-
// Inline literal values back into the formatted value
|
|
762
|
-
return mask.replace(/@@@/g, function () {
|
|
763
|
-
return literals.shift();
|
|
764
|
-
});
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Parse a date string into an object, changes - into /
|
|
769
|
-
* @method parse
|
|
770
|
-
* @param {string} dateStr Date string
|
|
771
|
-
* @param {string} format Date parse format
|
|
772
|
-
* @returns {Date|boolean}
|
|
773
|
-
*/
|
|
774
|
-
fecha.parse = function (dateStr, format, i18nSettings) {
|
|
775
|
-
var i18n = i18nSettings || fecha.i18n;
|
|
776
|
-
|
|
777
|
-
if (typeof format !== 'string') {
|
|
778
|
-
throw new Error('Invalid format in fecha.parse');
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
format = fecha.masks[format] || format;
|
|
782
|
-
|
|
783
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
784
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
785
|
-
if (dateStr.length > 1000) {
|
|
786
|
-
return null;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
var dateInfo = {};
|
|
790
|
-
var parseInfo = [];
|
|
791
|
-
var literals = [];
|
|
792
|
-
format = format.replace(literal, function ($0, $1) {
|
|
793
|
-
literals.push($1);
|
|
794
|
-
return '@@@';
|
|
795
|
-
});
|
|
796
|
-
var newFormat = regexEscape(format).replace(token, function ($0) {
|
|
797
|
-
if (parseFlags[$0]) {
|
|
798
|
-
var info = parseFlags[$0];
|
|
799
|
-
parseInfo.push(info[1]);
|
|
800
|
-
return '(' + info[0] + ')';
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
return $0;
|
|
804
|
-
});
|
|
805
|
-
newFormat = newFormat.replace(/@@@/g, function () {
|
|
806
|
-
return literals.shift();
|
|
807
|
-
});
|
|
808
|
-
var matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
809
|
-
if (!matches) {
|
|
810
|
-
return null;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
for (var i = 1; i < matches.length; i++) {
|
|
814
|
-
parseInfo[i - 1](dateInfo, matches[i], i18n);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
var today = new Date();
|
|
818
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
819
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
820
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
821
|
-
dateInfo.hour = 0;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
var date;
|
|
825
|
-
if (dateInfo.timezoneOffset != null) {
|
|
826
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
827
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
828
|
-
} else {
|
|
829
|
-
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
830
|
-
}
|
|
831
|
-
return date;
|
|
832
|
-
};
|
|
833
|
-
|
|
834
|
-
/* istanbul ignore next */
|
|
835
|
-
if ( true && module.exports) {
|
|
836
|
-
module.exports = fecha;
|
|
837
|
-
} else if (true) {
|
|
838
|
-
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
839
|
-
return fecha;
|
|
840
|
-
}).call(exports, __webpack_require__, exports, module),
|
|
841
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
842
|
-
} else {}
|
|
843
|
-
})(this);
|
|
844
|
-
|
|
845
|
-
/***/ }),
|
|
846
|
-
|
|
847
|
-
/***/ 27:
|
|
848
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
849
|
-
|
|
850
|
-
"use strict";
|
|
851
|
-
// ESM COMPAT FLAG
|
|
852
|
-
__webpack_require__.r(__webpack_exports__);
|
|
853
|
-
|
|
854
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=7105114a
|
|
855
|
-
var render = function render() {
|
|
856
|
-
var _vm = this,
|
|
857
|
-
_c = _vm._self._c
|
|
858
|
-
return _c(
|
|
859
|
-
"button",
|
|
860
|
-
{
|
|
861
|
-
staticClass: "el-button",
|
|
862
|
-
class: [
|
|
863
|
-
_vm.type ? "el-button--" + _vm.type : "",
|
|
864
|
-
_vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
|
|
865
|
-
{
|
|
866
|
-
"is-disabled": _vm.buttonDisabled,
|
|
867
|
-
"is-loading": _vm.loading,
|
|
868
|
-
"is-plain": _vm.plain,
|
|
869
|
-
"is-round": _vm.round,
|
|
870
|
-
"is-circle": _vm.circle,
|
|
871
|
-
},
|
|
872
|
-
],
|
|
873
|
-
attrs: {
|
|
874
|
-
disabled: _vm.buttonDisabled || _vm.loading,
|
|
875
|
-
autofocus: _vm.autofocus,
|
|
876
|
-
type: _vm.nativeType,
|
|
877
|
-
},
|
|
878
|
-
on: { click: _vm.handleClick },
|
|
879
|
-
},
|
|
880
|
-
[
|
|
881
|
-
_vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
|
|
882
|
-
_vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
|
|
883
|
-
_vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
|
|
884
|
-
]
|
|
885
|
-
)
|
|
886
|
-
}
|
|
887
|
-
var staticRenderFns = []
|
|
888
|
-
render._withStripped = true
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=7105114a
|
|
892
|
-
|
|
893
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js
|
|
894
|
-
|
|
895
|
-
/* harmony default export */ var buttonvue_type_script_lang_js = ({
|
|
896
|
-
name: 'ElButton',
|
|
897
|
-
|
|
898
|
-
inject: {
|
|
899
|
-
elForm: {
|
|
900
|
-
default: ''
|
|
901
|
-
},
|
|
902
|
-
elFormItem: {
|
|
903
|
-
default: ''
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
|
|
907
|
-
props: {
|
|
908
|
-
type: {
|
|
909
|
-
type: String,
|
|
910
|
-
default: 'default'
|
|
911
|
-
},
|
|
912
|
-
size: String,
|
|
913
|
-
icon: {
|
|
914
|
-
type: String,
|
|
915
|
-
default: ''
|
|
916
|
-
},
|
|
917
|
-
nativeType: {
|
|
918
|
-
type: String,
|
|
919
|
-
default: 'button'
|
|
920
|
-
},
|
|
921
|
-
loading: Boolean,
|
|
922
|
-
disabled: Boolean,
|
|
923
|
-
plain: Boolean,
|
|
924
|
-
autofocus: Boolean,
|
|
925
|
-
round: Boolean,
|
|
926
|
-
circle: Boolean
|
|
927
|
-
},
|
|
928
|
-
|
|
929
|
-
computed: {
|
|
930
|
-
_elFormItemSize: function _elFormItemSize() {
|
|
931
|
-
return (this.elFormItem || {}).elFormItemSize;
|
|
932
|
-
},
|
|
933
|
-
buttonSize: function buttonSize() {
|
|
934
|
-
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
935
|
-
},
|
|
936
|
-
buttonDisabled: function buttonDisabled() {
|
|
937
|
-
return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
|
|
941
|
-
methods: {
|
|
942
|
-
handleClick: function handleClick(evt) {
|
|
943
|
-
this.$emit('click', evt);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
});
|
|
947
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
|
|
948
|
-
/* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
|
|
949
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
950
|
-
var componentNormalizer = __webpack_require__(2);
|
|
951
|
-
|
|
952
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
/* normalize component */
|
|
959
|
-
|
|
960
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
961
|
-
src_buttonvue_type_script_lang_js,
|
|
962
|
-
render,
|
|
963
|
-
staticRenderFns,
|
|
964
|
-
false,
|
|
965
|
-
null,
|
|
966
|
-
null,
|
|
967
|
-
null
|
|
968
|
-
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
/* harmony default export */ var src_button = (component.exports);
|
|
972
|
-
// CONCATENATED MODULE: ./packages/button/index.js
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
/* istanbul ignore next */
|
|
976
|
-
src_button.install = function (Vue) {
|
|
977
|
-
Vue.component(src_button.name, src_button);
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
/* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
|
|
981
|
-
|
|
982
|
-
/***/ }),
|
|
983
|
-
|
|
984
|
-
/***/ 3:
|
|
985
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
986
|
-
|
|
987
|
-
"use strict";
|
|
988
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
|
|
989
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
|
|
990
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
|
|
991
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
|
|
992
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
|
|
993
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
|
|
994
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
|
|
995
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
|
|
996
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
|
|
997
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
|
|
998
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
|
|
999
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
|
|
1000
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
|
|
1001
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
|
|
1002
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
|
|
1003
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
|
|
1004
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
|
|
1005
|
-
/* unused harmony export looseEqual */
|
|
1006
|
-
/* unused harmony export arrayEquals */
|
|
1007
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
|
|
1008
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
|
|
1009
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
|
|
1010
|
-
/* unused harmony export objToArray */
|
|
1011
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
|
|
1012
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1013
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
1014
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
1015
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1021
|
-
|
|
1022
|
-
function noop() {};
|
|
1023
|
-
|
|
1024
|
-
function hasOwn(obj, key) {
|
|
1025
|
-
return hasOwnProperty.call(obj, key);
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
function extend(to, _from) {
|
|
1029
|
-
for (var key in _from) {
|
|
1030
|
-
to[key] = _from[key];
|
|
1031
|
-
}
|
|
1032
|
-
return to;
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
function toObject(arr) {
|
|
1036
|
-
var res = {};
|
|
1037
|
-
for (var i = 0; i < arr.length; i++) {
|
|
1038
|
-
if (arr[i]) {
|
|
1039
|
-
extend(res, arr[i]);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
return res;
|
|
1043
|
-
};
|
|
1044
|
-
|
|
1045
|
-
var getValueByPath = function getValueByPath(object, prop) {
|
|
1046
|
-
prop = prop || '';
|
|
1047
|
-
var paths = prop.split('.');
|
|
1048
|
-
var current = object;
|
|
1049
|
-
var result = null;
|
|
1050
|
-
for (var i = 0, j = paths.length; i < j; i++) {
|
|
1051
|
-
var path = paths[i];
|
|
1052
|
-
if (!current) break;
|
|
1053
|
-
|
|
1054
|
-
if (i === j - 1) {
|
|
1055
|
-
result = current[path];
|
|
1056
|
-
break;
|
|
1057
|
-
}
|
|
1058
|
-
current = current[path];
|
|
1059
|
-
}
|
|
1060
|
-
return result;
|
|
1061
|
-
};
|
|
1062
|
-
|
|
1063
|
-
function getPropByPath(obj, path, strict) {
|
|
1064
|
-
var tempObj = obj;
|
|
1065
|
-
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
1066
|
-
path = path.replace(/^\./, '');
|
|
1067
|
-
|
|
1068
|
-
var keyArr = path.split('.');
|
|
1069
|
-
var i = 0;
|
|
1070
|
-
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
1071
|
-
if (!tempObj && !strict) break;
|
|
1072
|
-
var key = keyArr[i];
|
|
1073
|
-
if (key in tempObj) {
|
|
1074
|
-
tempObj = tempObj[key];
|
|
1075
|
-
} else {
|
|
1076
|
-
if (strict) {
|
|
1077
|
-
throw new Error('please transfer a valid prop path to form item!');
|
|
1078
|
-
}
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
return {
|
|
1083
|
-
o: tempObj,
|
|
1084
|
-
k: keyArr[i],
|
|
1085
|
-
v: tempObj ? tempObj[keyArr[i]] : null
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
|
|
1089
|
-
var generateId = function generateId() {
|
|
1090
|
-
return Math.floor(Math.random() * 10000);
|
|
1091
|
-
};
|
|
1092
|
-
|
|
1093
|
-
var valueEquals = function valueEquals(a, b) {
|
|
1094
|
-
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
1095
|
-
if (a === b) return true;
|
|
1096
|
-
if (!(a instanceof Array)) return false;
|
|
1097
|
-
if (!(b instanceof Array)) return false;
|
|
1098
|
-
if (a.length !== b.length) return false;
|
|
1099
|
-
for (var i = 0; i !== a.length; ++i) {
|
|
1100
|
-
if (a[i] !== b[i]) return false;
|
|
1101
|
-
}
|
|
1102
|
-
return true;
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
var escapeRegexpString = function escapeRegexpString() {
|
|
1106
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1107
|
-
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
1111
|
-
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
1112
|
-
for (var i = 0; i !== arr.length; ++i) {
|
|
1113
|
-
if (pred(arr[i])) {
|
|
1114
|
-
return i;
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
return -1;
|
|
1118
|
-
};
|
|
1119
|
-
|
|
1120
|
-
var arrayFind = function arrayFind(arr, pred) {
|
|
1121
|
-
var idx = arrayFindIndex(arr, pred);
|
|
1122
|
-
return idx !== -1 ? arr[idx] : undefined;
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
// coerce truthy value to array
|
|
1126
|
-
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
1127
|
-
if (Array.isArray(val)) {
|
|
1128
|
-
return val;
|
|
1129
|
-
} else if (val) {
|
|
1130
|
-
return [val];
|
|
1131
|
-
} else {
|
|
1132
|
-
return [];
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
|
|
1136
|
-
var isIE = function isIE() {
|
|
1137
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
var isEdge = function isEdge() {
|
|
1141
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
var isFirefox = function isFirefox() {
|
|
1145
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
var autoprefixer = function autoprefixer(style) {
|
|
1149
|
-
if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
|
|
1150
|
-
var rules = ['transform', 'transition', 'animation'];
|
|
1151
|
-
var prefixes = ['ms-', 'webkit-'];
|
|
1152
|
-
rules.forEach(function (rule) {
|
|
1153
|
-
var value = style[rule];
|
|
1154
|
-
if (rule && value) {
|
|
1155
|
-
prefixes.forEach(function (prefix) {
|
|
1156
|
-
style[prefix + rule] = value;
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
});
|
|
1160
|
-
return style;
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
var kebabCase = function kebabCase(str) {
|
|
1164
|
-
var hyphenateRE = /([^-])([A-Z])/g;
|
|
1165
|
-
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
var capitalize = function capitalize(str) {
|
|
1169
|
-
if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
|
|
1170
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
1171
|
-
};
|
|
1172
|
-
|
|
1173
|
-
var looseEqual = function looseEqual(a, b) {
|
|
1174
|
-
var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
|
|
1175
|
-
var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
|
|
1176
|
-
if (isObjectA && isObjectB) {
|
|
1177
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
|
1178
|
-
} else if (!isObjectA && !isObjectB) {
|
|
1179
|
-
return String(a) === String(b);
|
|
1180
|
-
} else {
|
|
1181
|
-
return false;
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
|
-
|
|
1185
|
-
var arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
1186
|
-
arrayA = arrayA || [];
|
|
1187
|
-
arrayB = arrayB || [];
|
|
1188
|
-
|
|
1189
|
-
if (arrayA.length !== arrayB.length) {
|
|
1190
|
-
return false;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
for (var i = 0; i < arrayA.length; i++) {
|
|
1194
|
-
if (!looseEqual(arrayA[i], arrayB[i])) {
|
|
1195
|
-
return false;
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
return true;
|
|
1200
|
-
};
|
|
1201
|
-
|
|
1202
|
-
var isEqual = function isEqual(value1, value2) {
|
|
1203
|
-
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
1204
|
-
return arrayEquals(value1, value2);
|
|
1205
|
-
}
|
|
1206
|
-
return looseEqual(value1, value2);
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
var isEmpty = function isEmpty(val) {
|
|
1210
|
-
// null or undefined
|
|
1211
|
-
if (val == null) return true;
|
|
1212
|
-
|
|
1213
|
-
if (typeof val === 'boolean') return false;
|
|
1214
|
-
|
|
1215
|
-
if (typeof val === 'number') return !val;
|
|
1216
|
-
|
|
1217
|
-
if (val instanceof Error) return val.message === '';
|
|
1218
|
-
|
|
1219
|
-
switch (Object.prototype.toString.call(val)) {
|
|
1220
|
-
// String or Array
|
|
1221
|
-
case '[object String]':
|
|
1222
|
-
case '[object Array]':
|
|
1223
|
-
return !val.length;
|
|
1224
|
-
|
|
1225
|
-
// Map or Set or File
|
|
1226
|
-
case '[object File]':
|
|
1227
|
-
case '[object Map]':
|
|
1228
|
-
case '[object Set]':
|
|
1229
|
-
{
|
|
1230
|
-
return !val.size;
|
|
1231
|
-
}
|
|
1232
|
-
// Plain Object
|
|
1233
|
-
case '[object Object]':
|
|
1234
|
-
{
|
|
1235
|
-
return !Object.keys(val).length;
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
return false;
|
|
1240
|
-
};
|
|
1241
|
-
|
|
1242
|
-
function rafThrottle(fn) {
|
|
1243
|
-
var locked = false;
|
|
1244
|
-
return function () {
|
|
1245
|
-
var _this = this;
|
|
1246
|
-
|
|
1247
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1248
|
-
args[_key] = arguments[_key];
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
if (locked) return;
|
|
1252
|
-
locked = true;
|
|
1253
|
-
window.requestAnimationFrame(function (_) {
|
|
1254
|
-
fn.apply(_this, args);
|
|
1255
|
-
locked = false;
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
function objToArray(obj) {
|
|
1261
|
-
if (Array.isArray(obj)) {
|
|
1262
|
-
return obj;
|
|
1263
|
-
}
|
|
1264
|
-
return isEmpty(obj) ? [] : [obj];
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
var isMac = function isMac() {
|
|
1268
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
1269
|
-
};
|
|
1270
|
-
|
|
1271
|
-
/***/ }),
|
|
1272
|
-
|
|
1273
|
-
/***/ 4:
|
|
1274
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1275
|
-
|
|
1276
|
-
"use strict";
|
|
1277
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return getI18nSettings; });
|
|
1278
|
-
/* unused harmony export toDate */
|
|
1279
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return isDate; });
|
|
1280
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return isDateObject; });
|
|
1281
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return formatDate; });
|
|
1282
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return parseDate; });
|
|
1283
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getDayCountOfMonth; });
|
|
1284
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getDayCountOfYear; });
|
|
1285
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getFirstDayOfMonth; });
|
|
1286
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return prevDate; });
|
|
1287
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return nextDate; });
|
|
1288
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getStartDateOfMonth; });
|
|
1289
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return getWeekNumber; });
|
|
1290
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return getRangeHours; });
|
|
1291
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return getPrevMonthLastDays; });
|
|
1292
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return getMonthDays; });
|
|
1293
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return getRangeMinutes; });
|
|
1294
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return range; });
|
|
1295
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return modifyDate; });
|
|
1296
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return modifyTime; });
|
|
1297
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return modifyWithTimeString; });
|
|
1298
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return clearTime; });
|
|
1299
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clearMilliseconds; });
|
|
1300
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return limitTimeRange; });
|
|
1301
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return timeWithinRange; });
|
|
1302
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeYearMonthAndClampDate; });
|
|
1303
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return prevMonth; });
|
|
1304
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return nextMonth; });
|
|
1305
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return prevYear; });
|
|
1306
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return nextYear; });
|
|
1307
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return extractDateFormat; });
|
|
1308
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return extractTimeFormat; });
|
|
1309
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return validateRangeInOneMonth; });
|
|
1310
|
-
/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24);
|
|
1311
|
-
/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_date__WEBPACK_IMPORTED_MODULE_0__);
|
|
1312
|
-
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
var weeks = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
|
1317
|
-
var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
|
|
1318
|
-
|
|
1319
|
-
var newArray = function newArray(start, end) {
|
|
1320
|
-
var result = [];
|
|
1321
|
-
for (var i = start; i <= end; i++) {
|
|
1322
|
-
result.push(i);
|
|
1323
|
-
}
|
|
1324
|
-
return result;
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
var getI18nSettings = function getI18nSettings() {
|
|
1328
|
-
return {
|
|
1329
|
-
dayNamesShort: weeks.map(function (week) {
|
|
1330
|
-
return Object(_locale__WEBPACK_IMPORTED_MODULE_1__[/* t */ "a"])('el.datepicker.weeks.' + week);
|
|
1331
|
-
}),
|
|
1332
|
-
dayNames: weeks.map(function (week) {
|
|
1333
|
-
return Object(_locale__WEBPACK_IMPORTED_MODULE_1__[/* t */ "a"])('el.datepicker.weeks.' + week);
|
|
1334
|
-
}),
|
|
1335
|
-
monthNamesShort: months.map(function (month) {
|
|
1336
|
-
return Object(_locale__WEBPACK_IMPORTED_MODULE_1__[/* t */ "a"])('el.datepicker.months.' + month);
|
|
1337
|
-
}),
|
|
1338
|
-
monthNames: months.map(function (month, index) {
|
|
1339
|
-
return Object(_locale__WEBPACK_IMPORTED_MODULE_1__[/* t */ "a"])('el.datepicker.month' + (index + 1));
|
|
1340
|
-
}),
|
|
1341
|
-
amPm: ['am', 'pm']
|
|
1342
|
-
};
|
|
1343
|
-
};
|
|
1344
|
-
|
|
1345
|
-
var toDate = function toDate(date) {
|
|
1346
|
-
return isDate(date) ? new Date(date) : null;
|
|
1347
|
-
};
|
|
1348
|
-
|
|
1349
|
-
var isDate = function isDate(date) {
|
|
1350
|
-
if (date === null || date === undefined) return false;
|
|
1351
|
-
if (isNaN(new Date(date).getTime())) return false;
|
|
1352
|
-
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
1353
|
-
return true;
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
var isDateObject = function isDateObject(val) {
|
|
1357
|
-
return val instanceof Date;
|
|
1358
|
-
};
|
|
1359
|
-
|
|
1360
|
-
var formatDate = function formatDate(date, format) {
|
|
1361
|
-
date = toDate(date);
|
|
1362
|
-
if (!date) return '';
|
|
1363
|
-
return _date__WEBPACK_IMPORTED_MODULE_0___default.a.format(date, format || 'yyyy-MM-dd', getI18nSettings());
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
var parseDate = function parseDate(string, format) {
|
|
1367
|
-
return _date__WEBPACK_IMPORTED_MODULE_0___default.a.parse(string, format || 'yyyy-MM-dd', getI18nSettings());
|
|
1368
|
-
};
|
|
1369
|
-
|
|
1370
|
-
var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
|
|
1371
|
-
if (isNaN(+month)) return 31;
|
|
1372
|
-
|
|
1373
|
-
return new Date(year, +month + 1, 0).getDate();
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
var getDayCountOfYear = function getDayCountOfYear(year) {
|
|
1377
|
-
var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
|
|
1378
|
-
return isLeapYear ? 366 : 365;
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
|
|
1382
|
-
var temp = new Date(date.getTime());
|
|
1383
|
-
temp.setDate(1);
|
|
1384
|
-
return temp.getDay();
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
1388
|
-
// {prev, next} Date should work for Daylight Saving Time
|
|
1389
|
-
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
1390
|
-
var prevDate = function prevDate(date) {
|
|
1391
|
-
var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
1392
|
-
|
|
1393
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
var nextDate = function nextDate(date) {
|
|
1397
|
-
var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
1398
|
-
|
|
1399
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
1400
|
-
};
|
|
1401
|
-
|
|
1402
|
-
var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
|
|
1403
|
-
var result = new Date(year, month, 1);
|
|
1404
|
-
var day = result.getDay();
|
|
1405
|
-
|
|
1406
|
-
if (day === 0) {
|
|
1407
|
-
return prevDate(result, 7);
|
|
1408
|
-
} else {
|
|
1409
|
-
return prevDate(result, day);
|
|
1410
|
-
}
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
var getWeekNumber = function getWeekNumber(src) {
|
|
1414
|
-
if (!isDate(src)) return null;
|
|
1415
|
-
var date = new Date(src.getTime());
|
|
1416
|
-
date.setHours(0, 0, 0, 0);
|
|
1417
|
-
// Thursday in current week decides the year.
|
|
1418
|
-
date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);
|
|
1419
|
-
// January 4 is always in week 1.
|
|
1420
|
-
var week1 = new Date(date.getFullYear(), 0, 4);
|
|
1421
|
-
// Adjust to Thursday in week 1 and count number of weeks from date to week 1.
|
|
1422
|
-
// Rounding should be fine for Daylight Saving Time. Its shift should never be more than 12 hours.
|
|
1423
|
-
return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);
|
|
1424
|
-
};
|
|
1425
|
-
|
|
1426
|
-
var getRangeHours = function getRangeHours(ranges) {
|
|
1427
|
-
var hours = [];
|
|
1428
|
-
var disabledHours = [];
|
|
1429
|
-
|
|
1430
|
-
(ranges || []).forEach(function (range) {
|
|
1431
|
-
var value = range.map(function (date) {
|
|
1432
|
-
return date.getHours();
|
|
1433
|
-
});
|
|
1434
|
-
|
|
1435
|
-
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
1436
|
-
});
|
|
1437
|
-
|
|
1438
|
-
if (disabledHours.length) {
|
|
1439
|
-
for (var i = 0; i < 24; i++) {
|
|
1440
|
-
hours[i] = disabledHours.indexOf(i) === -1;
|
|
1441
|
-
}
|
|
1442
|
-
} else {
|
|
1443
|
-
for (var _i = 0; _i < 24; _i++) {
|
|
1444
|
-
hours[_i] = false;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
return hours;
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
|
|
1452
|
-
if (amount <= 0) return [];
|
|
1453
|
-
var temp = new Date(date.getTime());
|
|
1454
|
-
temp.setDate(0);
|
|
1455
|
-
var lastDay = temp.getDate();
|
|
1456
|
-
return range(amount).map(function (_, index) {
|
|
1457
|
-
return lastDay - (amount - index - 1);
|
|
1458
|
-
});
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
var getMonthDays = function getMonthDays(date) {
|
|
1462
|
-
var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
1463
|
-
var days = temp.getDate();
|
|
1464
|
-
return range(days).map(function (_, index) {
|
|
1465
|
-
return index + 1;
|
|
1466
|
-
});
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
|
-
function setRangeData(arr, start, end, value) {
|
|
1470
|
-
for (var i = start; i < end; i++) {
|
|
1471
|
-
arr[i] = value;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
var getRangeMinutes = function getRangeMinutes(ranges, hour) {
|
|
1476
|
-
var minutes = new Array(60);
|
|
1477
|
-
|
|
1478
|
-
if (ranges.length > 0) {
|
|
1479
|
-
ranges.forEach(function (range) {
|
|
1480
|
-
var start = range[0];
|
|
1481
|
-
var end = range[1];
|
|
1482
|
-
var startHour = start.getHours();
|
|
1483
|
-
var startMinute = start.getMinutes();
|
|
1484
|
-
var endHour = end.getHours();
|
|
1485
|
-
var endMinute = end.getMinutes();
|
|
1486
|
-
if (startHour === hour && endHour !== hour) {
|
|
1487
|
-
setRangeData(minutes, startMinute, 60, true);
|
|
1488
|
-
} else if (startHour === hour && endHour === hour) {
|
|
1489
|
-
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
1490
|
-
} else if (startHour !== hour && endHour === hour) {
|
|
1491
|
-
setRangeData(minutes, 0, endMinute + 1, true);
|
|
1492
|
-
} else if (startHour < hour && endHour > hour) {
|
|
1493
|
-
setRangeData(minutes, 0, 60, true);
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
} else {
|
|
1497
|
-
setRangeData(minutes, 0, 60, true);
|
|
1498
|
-
}
|
|
1499
|
-
return minutes;
|
|
1500
|
-
};
|
|
1501
|
-
|
|
1502
|
-
var range = function range(n) {
|
|
1503
|
-
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
1504
|
-
return Array.apply(null, { length: n }).map(function (_, n) {
|
|
1505
|
-
return n;
|
|
1506
|
-
});
|
|
1507
|
-
};
|
|
1508
|
-
|
|
1509
|
-
var modifyDate = function modifyDate(date, y, m, d) {
|
|
1510
|
-
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
var modifyTime = function modifyTime(date, h, m, s) {
|
|
1514
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
1515
|
-
};
|
|
1516
|
-
|
|
1517
|
-
var modifyWithTimeString = function modifyWithTimeString(date, time) {
|
|
1518
|
-
if (date == null || !time) {
|
|
1519
|
-
return date;
|
|
1520
|
-
}
|
|
1521
|
-
time = parseDate(time, 'HH:mm:ss');
|
|
1522
|
-
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
1523
|
-
};
|
|
1524
|
-
|
|
1525
|
-
var clearTime = function clearTime(date) {
|
|
1526
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
1527
|
-
};
|
|
1528
|
-
|
|
1529
|
-
var clearMilliseconds = function clearMilliseconds(date) {
|
|
1530
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
|
-
var limitTimeRange = function limitTimeRange(date, ranges) {
|
|
1534
|
-
var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
|
|
1535
|
-
|
|
1536
|
-
// TODO: refactory a more elegant solution
|
|
1537
|
-
if (ranges.length === 0) return date;
|
|
1538
|
-
var normalizeDate = function normalizeDate(date) {
|
|
1539
|
-
return _date__WEBPACK_IMPORTED_MODULE_0___default.a.parse(_date__WEBPACK_IMPORTED_MODULE_0___default.a.format(date, format), format);
|
|
1540
|
-
};
|
|
1541
|
-
var ndate = normalizeDate(date);
|
|
1542
|
-
var nranges = ranges.map(function (range) {
|
|
1543
|
-
return range.map(normalizeDate);
|
|
1544
|
-
});
|
|
1545
|
-
if (nranges.some(function (nrange) {
|
|
1546
|
-
return ndate >= nrange[0] && ndate <= nrange[1];
|
|
1547
|
-
})) return date;
|
|
1548
|
-
|
|
1549
|
-
var minDate = nranges[0][0];
|
|
1550
|
-
var maxDate = nranges[0][0];
|
|
1551
|
-
|
|
1552
|
-
nranges.forEach(function (nrange) {
|
|
1553
|
-
minDate = new Date(Math.min(nrange[0], minDate));
|
|
1554
|
-
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
1555
|
-
});
|
|
1556
|
-
|
|
1557
|
-
var ret = ndate < minDate ? minDate : maxDate;
|
|
1558
|
-
// preserve Year/Month/Date
|
|
1559
|
-
return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
|
|
1563
|
-
var limitedDate = limitTimeRange(date, selectableRange, format);
|
|
1564
|
-
return limitedDate.getTime() === date.getTime();
|
|
1565
|
-
};
|
|
1566
|
-
|
|
1567
|
-
var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
|
|
1568
|
-
// clamp date to the number of days in `year`, `month`
|
|
1569
|
-
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
1570
|
-
var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
1571
|
-
return modifyDate(date, year, month, monthDate);
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
var prevMonth = function prevMonth(date) {
|
|
1575
|
-
var year = date.getFullYear();
|
|
1576
|
-
var month = date.getMonth();
|
|
1577
|
-
return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
var nextMonth = function nextMonth(date) {
|
|
1581
|
-
var year = date.getFullYear();
|
|
1582
|
-
var month = date.getMonth();
|
|
1583
|
-
return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
|
|
1584
|
-
};
|
|
1585
|
-
|
|
1586
|
-
var prevYear = function prevYear(date) {
|
|
1587
|
-
var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
1588
|
-
|
|
1589
|
-
var year = date.getFullYear();
|
|
1590
|
-
var month = date.getMonth();
|
|
1591
|
-
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
1592
|
-
};
|
|
1593
|
-
|
|
1594
|
-
var nextYear = function nextYear(date) {
|
|
1595
|
-
var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
1596
|
-
|
|
1597
|
-
var year = date.getFullYear();
|
|
1598
|
-
var month = date.getMonth();
|
|
1599
|
-
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
|
-
var extractDateFormat = function extractDateFormat(format) {
|
|
1603
|
-
return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
|
|
1604
|
-
};
|
|
1605
|
-
|
|
1606
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
1607
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
1611
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
/***/ }),
|
|
1615
|
-
|
|
1616
|
-
/***/ 43:
|
|
1617
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1618
|
-
|
|
1619
|
-
"use strict";
|
|
1620
|
-
// ESM COMPAT FLAG
|
|
1621
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1622
|
-
|
|
1623
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=5ce4a9fa
|
|
1624
|
-
var render = function render() {
|
|
1625
|
-
var _vm = this,
|
|
1626
|
-
_c = _vm._self._c
|
|
1627
|
-
return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2)
|
|
1628
|
-
}
|
|
1629
|
-
var staticRenderFns = []
|
|
1630
|
-
render._withStripped = true
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=5ce4a9fa
|
|
1634
|
-
|
|
1635
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js
|
|
1636
|
-
|
|
1637
|
-
/* harmony default export */ var button_groupvue_type_script_lang_js = ({
|
|
1638
|
-
name: 'ElButtonGroup'
|
|
1639
|
-
});
|
|
1640
|
-
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js
|
|
1641
|
-
/* harmony default export */ var src_button_groupvue_type_script_lang_js = (button_groupvue_type_script_lang_js);
|
|
1642
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1643
|
-
var componentNormalizer = __webpack_require__(2);
|
|
1644
|
-
|
|
1645
|
-
// CONCATENATED MODULE: ./packages/button/src/button-group.vue
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
/* normalize component */
|
|
1652
|
-
|
|
1653
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1654
|
-
src_button_groupvue_type_script_lang_js,
|
|
1655
|
-
render,
|
|
1656
|
-
staticRenderFns,
|
|
1657
|
-
false,
|
|
1658
|
-
null,
|
|
1659
|
-
null,
|
|
1660
|
-
null
|
|
1661
|
-
|
|
1662
|
-
)
|
|
1663
|
-
|
|
1664
|
-
/* harmony default export */ var button_group = (component.exports);
|
|
1665
|
-
// CONCATENATED MODULE: ./packages/button-group/index.js
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
/* istanbul ignore next */
|
|
1669
|
-
button_group.install = function (Vue) {
|
|
1670
|
-
Vue.component(button_group.name, button_group);
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
/* harmony default export */ var packages_button_group = __webpack_exports__["default"] = (button_group);
|
|
1674
|
-
|
|
1675
|
-
/***/ }),
|
|
1676
|
-
|
|
1677
|
-
/***/ 5:
|
|
1678
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1679
|
-
|
|
1680
|
-
"use strict";
|
|
1681
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
1682
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
1683
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
1684
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
1685
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
1686
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
1687
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1688
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
1689
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
function isString(obj) {
|
|
1694
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
function isObject(obj) {
|
|
1698
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
function isHtmlElement(node) {
|
|
1702
|
-
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
/**
|
|
1706
|
-
* - Inspired:
|
|
1707
|
-
* https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
|
|
1708
|
-
*/
|
|
1709
|
-
var isFunction = function isFunction(functionToCheck) {
|
|
1710
|
-
var getType = {};
|
|
1711
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
1712
|
-
};
|
|
1713
|
-
|
|
1714
|
-
if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
1715
|
-
isFunction = function isFunction(obj) {
|
|
1716
|
-
return typeof obj === 'function' || false;
|
|
1717
|
-
};
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
var isUndefined = function isUndefined(val) {
|
|
1723
|
-
return val === void 0;
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
var isDefined = function isDefined(val) {
|
|
1727
|
-
return val !== undefined && val !== null;
|
|
1728
|
-
};
|
|
1729
|
-
|
|
1730
|
-
/***/ }),
|
|
1731
|
-
|
|
1732
|
-
/***/ 74:
|
|
1733
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1734
|
-
|
|
1735
|
-
"use strict";
|
|
1736
|
-
// ESM COMPAT FLAG
|
|
1737
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1738
|
-
|
|
1739
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=5d30b9f5
|
|
1740
|
-
var render = function render() {
|
|
1741
|
-
var _vm = this,
|
|
1742
|
-
_c = _vm._self._c
|
|
1743
|
-
return _c("div", { staticClass: "el-calendar" }, [
|
|
1744
|
-
_c("div", { staticClass: "el-calendar__header" }, [
|
|
1745
|
-
_c("div", { staticClass: "el-calendar__title" }, [
|
|
1746
|
-
_vm._v("\n\t\t\t" + _vm._s(_vm.i18nDate) + "\n\t\t"),
|
|
1747
|
-
]),
|
|
1748
|
-
_vm.validatedRange.length === 0
|
|
1749
|
-
? _c(
|
|
1750
|
-
"div",
|
|
1751
|
-
{ staticClass: "el-calendar__button-group" },
|
|
1752
|
-
[
|
|
1753
|
-
_c(
|
|
1754
|
-
"el-button-group",
|
|
1755
|
-
[
|
|
1756
|
-
_c(
|
|
1757
|
-
"el-button",
|
|
1758
|
-
{
|
|
1759
|
-
attrs: { type: "plain", size: "mini" },
|
|
1760
|
-
on: {
|
|
1761
|
-
click: function ($event) {
|
|
1762
|
-
return _vm.selectDate("prev-month")
|
|
1763
|
-
},
|
|
1764
|
-
},
|
|
1765
|
-
},
|
|
1766
|
-
[
|
|
1767
|
-
_vm._v(
|
|
1768
|
-
"\n\t\t\t\t\t" +
|
|
1769
|
-
_vm._s(_vm.t("el.datepicker.prevMonth")) +
|
|
1770
|
-
"\n\t\t\t\t"
|
|
1771
|
-
),
|
|
1772
|
-
]
|
|
1773
|
-
),
|
|
1774
|
-
_c(
|
|
1775
|
-
"el-button",
|
|
1776
|
-
{
|
|
1777
|
-
attrs: { type: "plain", size: "mini" },
|
|
1778
|
-
on: {
|
|
1779
|
-
click: function ($event) {
|
|
1780
|
-
return _vm.selectDate("today")
|
|
1781
|
-
},
|
|
1782
|
-
},
|
|
1783
|
-
},
|
|
1784
|
-
[
|
|
1785
|
-
_vm._v(
|
|
1786
|
-
"\n\t\t\t\t\t" +
|
|
1787
|
-
_vm._s(_vm.t("el.datepicker.today")) +
|
|
1788
|
-
"\n\t\t\t\t"
|
|
1789
|
-
),
|
|
1790
|
-
]
|
|
1791
|
-
),
|
|
1792
|
-
_c(
|
|
1793
|
-
"el-button",
|
|
1794
|
-
{
|
|
1795
|
-
attrs: { type: "plain", size: "mini" },
|
|
1796
|
-
on: {
|
|
1797
|
-
click: function ($event) {
|
|
1798
|
-
return _vm.selectDate("next-month")
|
|
1799
|
-
},
|
|
1800
|
-
},
|
|
1801
|
-
},
|
|
1802
|
-
[
|
|
1803
|
-
_vm._v(
|
|
1804
|
-
"\n\t\t\t\t\t" +
|
|
1805
|
-
_vm._s(_vm.t("el.datepicker.nextMonth")) +
|
|
1806
|
-
"\n\t\t\t\t"
|
|
1807
|
-
),
|
|
1808
|
-
]
|
|
1809
|
-
),
|
|
1810
|
-
],
|
|
1811
|
-
1
|
|
1812
|
-
),
|
|
1813
|
-
],
|
|
1814
|
-
1
|
|
1815
|
-
)
|
|
1816
|
-
: _vm._e(),
|
|
1817
|
-
]),
|
|
1818
|
-
_vm.validatedRange.length === 0
|
|
1819
|
-
? _c(
|
|
1820
|
-
"div",
|
|
1821
|
-
{ key: "no-range", staticClass: "el-calendar__body" },
|
|
1822
|
-
[
|
|
1823
|
-
_c("date-table", {
|
|
1824
|
-
attrs: {
|
|
1825
|
-
date: _vm.date,
|
|
1826
|
-
"selected-day": _vm.realSelectedDay,
|
|
1827
|
-
"first-day-of-week": _vm.realFirstDayOfWeek,
|
|
1828
|
-
},
|
|
1829
|
-
on: { pick: _vm.pickDay },
|
|
1830
|
-
}),
|
|
1831
|
-
],
|
|
1832
|
-
1
|
|
1833
|
-
)
|
|
1834
|
-
: _c(
|
|
1835
|
-
"div",
|
|
1836
|
-
{ key: "has-range", staticClass: "el-calendar__body" },
|
|
1837
|
-
_vm._l(_vm.validatedRange, function (range, index) {
|
|
1838
|
-
return _c("date-table", {
|
|
1839
|
-
key: index,
|
|
1840
|
-
attrs: {
|
|
1841
|
-
date: range[0],
|
|
1842
|
-
"selected-day": _vm.realSelectedDay,
|
|
1843
|
-
range: range,
|
|
1844
|
-
"hide-header": index !== 0,
|
|
1845
|
-
"first-day-of-week": _vm.realFirstDayOfWeek,
|
|
1846
|
-
},
|
|
1847
|
-
on: { pick: _vm.pickDay },
|
|
1848
|
-
})
|
|
1849
|
-
}),
|
|
1850
|
-
1
|
|
1851
|
-
),
|
|
1852
|
-
])
|
|
1853
|
-
}
|
|
1854
|
-
var staticRenderFns = []
|
|
1855
|
-
render._withStripped = true
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
// CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=5d30b9f5
|
|
1859
|
-
|
|
1860
|
-
// EXTERNAL MODULE: ./src/mixins/locale.js
|
|
1861
|
-
var locale = __webpack_require__(13);
|
|
1862
|
-
|
|
1863
|
-
// EXTERNAL MODULE: ./src/utils/date.js
|
|
1864
|
-
var utils_date = __webpack_require__(24);
|
|
1865
|
-
var date_default = /*#__PURE__*/__webpack_require__.n(utils_date);
|
|
1866
|
-
|
|
1867
|
-
// EXTERNAL MODULE: ./packages/button/index.js + 5 modules
|
|
1868
|
-
var packages_button = __webpack_require__(27);
|
|
1869
|
-
|
|
1870
|
-
// EXTERNAL MODULE: ./packages/button-group/index.js + 5 modules
|
|
1871
|
-
var button_group = __webpack_require__(43);
|
|
1872
|
-
|
|
1873
|
-
// EXTERNAL MODULE: ./src/utils/date-util.js
|
|
1874
|
-
var date_util = __webpack_require__(4);
|
|
1875
|
-
|
|
1876
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/date-table.vue?vue&type=script&lang=js
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
/* harmony default export */ var date_tablevue_type_script_lang_js = ({
|
|
1882
|
-
props: {
|
|
1883
|
-
selectedDay: String, // formated date yyyy-MM-dd
|
|
1884
|
-
range: {
|
|
1885
|
-
type: Array,
|
|
1886
|
-
validator: function validator(val) {
|
|
1887
|
-
if (!(val && val.length)) return true;
|
|
1888
|
-
var start = val[0],
|
|
1889
|
-
end = val[1];
|
|
1890
|
-
|
|
1891
|
-
return Object(date_util["F" /* validateRangeInOneMonth */])(start, end);
|
|
1892
|
-
}
|
|
1893
|
-
},
|
|
1894
|
-
date: Date,
|
|
1895
|
-
hideHeader: Boolean,
|
|
1896
|
-
firstDayOfWeek: Number
|
|
1897
|
-
},
|
|
1898
|
-
|
|
1899
|
-
inject: ['elCalendar'],
|
|
1900
|
-
|
|
1901
|
-
methods: {
|
|
1902
|
-
toNestedArr: function toNestedArr(days) {
|
|
1903
|
-
return Object(date_util["D" /* range */])(days.length / 7).map(function (_, index) {
|
|
1904
|
-
var start = index * 7;
|
|
1905
|
-
return days.slice(start, start + 7);
|
|
1906
|
-
});
|
|
1907
|
-
},
|
|
1908
|
-
getFormateDate: function getFormateDate(day, type) {
|
|
1909
|
-
if (!day || ['prev', 'current', 'next'].indexOf(type) === -1) {
|
|
1910
|
-
throw new Error('invalid day or type');
|
|
1911
|
-
}
|
|
1912
|
-
var prefix = this.curMonthDatePrefix;
|
|
1913
|
-
if (type === 'prev') {
|
|
1914
|
-
prefix = this.prevMonthDatePrefix;
|
|
1915
|
-
} else if (type === 'next') {
|
|
1916
|
-
prefix = this.nextMonthDatePrefix;
|
|
1917
|
-
}
|
|
1918
|
-
day = ('00' + day).slice(-2);
|
|
1919
|
-
return prefix + '-' + day;
|
|
1920
|
-
},
|
|
1921
|
-
getCellClass: function getCellClass(_ref) {
|
|
1922
|
-
var text = _ref.text,
|
|
1923
|
-
type = _ref.type;
|
|
1924
|
-
|
|
1925
|
-
var classes = [type];
|
|
1926
|
-
if (type === 'current') {
|
|
1927
|
-
var date = this.getFormateDate(text, type);
|
|
1928
|
-
if (date === this.selectedDay) {
|
|
1929
|
-
classes.push('is-selected');
|
|
1930
|
-
}
|
|
1931
|
-
if (date === this.formatedToday) {
|
|
1932
|
-
classes.push('is-today');
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
return classes;
|
|
1936
|
-
},
|
|
1937
|
-
pickDay: function pickDay(_ref2) {
|
|
1938
|
-
var text = _ref2.text,
|
|
1939
|
-
type = _ref2.type;
|
|
1940
|
-
|
|
1941
|
-
var date = this.getFormateDate(text, type);
|
|
1942
|
-
this.$emit('pick', date);
|
|
1943
|
-
},
|
|
1944
|
-
cellRenderProxy: function cellRenderProxy(_ref3) {
|
|
1945
|
-
var text = _ref3.text,
|
|
1946
|
-
type = _ref3.type;
|
|
1947
|
-
var h = this.$createElement;
|
|
1948
|
-
|
|
1949
|
-
var render = this.elCalendar.$scopedSlots.dateCell;
|
|
1950
|
-
if (!render) return h('span', [text]);
|
|
1951
|
-
|
|
1952
|
-
var day = this.getFormateDate(text, type);
|
|
1953
|
-
var date = new Date(day);
|
|
1954
|
-
var data = {
|
|
1955
|
-
isSelected: this.selectedDay === day,
|
|
1956
|
-
type: type + '-month',
|
|
1957
|
-
day: day
|
|
1958
|
-
};
|
|
1959
|
-
return render({ date: date, data: data });
|
|
1960
|
-
}
|
|
1961
|
-
},
|
|
1962
|
-
|
|
1963
|
-
computed: {
|
|
1964
|
-
WEEK_DAYS: function WEEK_DAYS() {
|
|
1965
|
-
return Object(date_util["j" /* getI18nSettings */])().dayNames;
|
|
1966
|
-
},
|
|
1967
|
-
prevMonthDatePrefix: function prevMonthDatePrefix() {
|
|
1968
|
-
var temp = new Date(this.date.getTime());
|
|
1969
|
-
temp.setDate(0);
|
|
1970
|
-
return date_default.a.format(temp, 'yyyy-MM');
|
|
1971
|
-
},
|
|
1972
|
-
curMonthDatePrefix: function curMonthDatePrefix() {
|
|
1973
|
-
return date_default.a.format(this.date, 'yyyy-MM');
|
|
1974
|
-
},
|
|
1975
|
-
nextMonthDatePrefix: function nextMonthDatePrefix() {
|
|
1976
|
-
var temp = new Date(this.date.getFullYear(), this.date.getMonth() + 1, 1);
|
|
1977
|
-
return date_default.a.format(temp, 'yyyy-MM');
|
|
1978
|
-
},
|
|
1979
|
-
formatedToday: function formatedToday() {
|
|
1980
|
-
return this.elCalendar.formatedToday;
|
|
1981
|
-
},
|
|
1982
|
-
isInRange: function isInRange() {
|
|
1983
|
-
return this.range && this.range.length;
|
|
1984
|
-
},
|
|
1985
|
-
rows: function rows() {
|
|
1986
|
-
var days = [];
|
|
1987
|
-
// if range exists, should render days in range.
|
|
1988
|
-
if (this.isInRange) {
|
|
1989
|
-
var _range = this.range,
|
|
1990
|
-
start = _range[0],
|
|
1991
|
-
end = _range[1];
|
|
1992
|
-
|
|
1993
|
-
var currentMonthRange = Object(date_util["D" /* range */])(end.getDate() - start.getDate() + 1).map(function (_, index) {
|
|
1994
|
-
return {
|
|
1995
|
-
text: start.getDate() + index,
|
|
1996
|
-
type: 'current'
|
|
1997
|
-
};
|
|
1998
|
-
});
|
|
1999
|
-
var remaining = currentMonthRange.length % 7;
|
|
2000
|
-
remaining = remaining === 0 ? 0 : 7 - remaining;
|
|
2001
|
-
var nextMonthRange = Object(date_util["D" /* range */])(remaining).map(function (_, index) {
|
|
2002
|
-
return {
|
|
2003
|
-
text: index + 1,
|
|
2004
|
-
type: 'next'
|
|
2005
|
-
};
|
|
2006
|
-
});
|
|
2007
|
-
days = currentMonthRange.concat(nextMonthRange);
|
|
2008
|
-
} else {
|
|
2009
|
-
var date = this.date;
|
|
2010
|
-
var firstDay = Object(date_util["i" /* getFirstDayOfMonth */])(date);
|
|
2011
|
-
firstDay = firstDay === 0 ? 7 : firstDay;
|
|
2012
|
-
var firstDayOfWeek = typeof this.firstDayOfWeek === 'number' ? this.firstDayOfWeek : 1;
|
|
2013
|
-
var offset = (7 + firstDay - firstDayOfWeek) % 7;
|
|
2014
|
-
var prevMonthDays = Object(date_util["l" /* getPrevMonthLastDays */])(date, offset).map(function (day) {
|
|
2015
|
-
return {
|
|
2016
|
-
text: day,
|
|
2017
|
-
type: 'prev'
|
|
2018
|
-
};
|
|
2019
|
-
});
|
|
2020
|
-
var currentMonthDays = Object(date_util["k" /* getMonthDays */])(date).map(function (day) {
|
|
2021
|
-
return {
|
|
2022
|
-
text: day,
|
|
2023
|
-
type: 'current'
|
|
2024
|
-
};
|
|
2025
|
-
});
|
|
2026
|
-
days = [].concat(prevMonthDays, currentMonthDays);
|
|
2027
|
-
var nextMonthDays = Object(date_util["D" /* range */])(42 - days.length).map(function (_, index) {
|
|
2028
|
-
return {
|
|
2029
|
-
text: index + 1,
|
|
2030
|
-
type: 'next'
|
|
2031
|
-
};
|
|
2032
|
-
});
|
|
2033
|
-
days = days.concat(nextMonthDays);
|
|
2034
|
-
}
|
|
2035
|
-
return this.toNestedArr(days);
|
|
2036
|
-
},
|
|
2037
|
-
weekDays: function weekDays() {
|
|
2038
|
-
var start = this.firstDayOfWeek;
|
|
2039
|
-
var WEEK_DAYS = this.WEEK_DAYS;
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
if (typeof start !== 'number' || start === 0) {
|
|
2043
|
-
return WEEK_DAYS.slice();
|
|
2044
|
-
} else {
|
|
2045
|
-
return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start));
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
},
|
|
2049
|
-
|
|
2050
|
-
render: function render() {
|
|
2051
|
-
var _this = this;
|
|
2052
|
-
|
|
2053
|
-
var h = arguments[0];
|
|
2054
|
-
|
|
2055
|
-
var thead = this.hideHeader ? null : h('thead', [this.weekDays.map(function (day) {
|
|
2056
|
-
return h(
|
|
2057
|
-
'th',
|
|
2058
|
-
{ key: day },
|
|
2059
|
-
[day]
|
|
2060
|
-
);
|
|
2061
|
-
})]);
|
|
2062
|
-
return h(
|
|
2063
|
-
'table',
|
|
2064
|
-
{
|
|
2065
|
-
'class': {
|
|
2066
|
-
'el-calendar-table': true,
|
|
2067
|
-
'is-range': this.isInRange
|
|
2068
|
-
},
|
|
2069
|
-
attrs: { cellspacing: '0',
|
|
2070
|
-
cellpadding: '0' }
|
|
2071
|
-
},
|
|
2072
|
-
[thead, h('tbody', [this.rows.map(function (row, index) {
|
|
2073
|
-
return h(
|
|
2074
|
-
'tr',
|
|
2075
|
-
{
|
|
2076
|
-
'class': {
|
|
2077
|
-
'el-calendar-table__row': true,
|
|
2078
|
-
'el-calendar-table__row--hide-border': index === 0 && _this.hideHeader
|
|
2079
|
-
},
|
|
2080
|
-
key: index },
|
|
2081
|
-
[row.map(function (cell, key) {
|
|
2082
|
-
return h(
|
|
2083
|
-
'td',
|
|
2084
|
-
{ key: key,
|
|
2085
|
-
'class': _this.getCellClass(cell),
|
|
2086
|
-
on: {
|
|
2087
|
-
'click': _this.pickDay.bind(_this, cell)
|
|
2088
|
-
}
|
|
2089
|
-
},
|
|
2090
|
-
[h(
|
|
2091
|
-
'div',
|
|
2092
|
-
{ 'class': 'el-calendar-day' },
|
|
2093
|
-
[_this.cellRenderProxy(cell)]
|
|
2094
|
-
)]
|
|
2095
|
-
);
|
|
2096
|
-
})]
|
|
2097
|
-
);
|
|
2098
|
-
})])]
|
|
2099
|
-
);
|
|
2100
|
-
}
|
|
2101
|
-
});
|
|
2102
|
-
// CONCATENATED MODULE: ./packages/calendar/src/date-table.vue?vue&type=script&lang=js
|
|
2103
|
-
/* harmony default export */ var src_date_tablevue_type_script_lang_js = (date_tablevue_type_script_lang_js);
|
|
2104
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
2105
|
-
var componentNormalizer = __webpack_require__(2);
|
|
2106
|
-
|
|
2107
|
-
// CONCATENATED MODULE: ./packages/calendar/src/date-table.vue
|
|
2108
|
-
var date_table_render, date_table_staticRenderFns
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
/* normalize component */
|
|
2114
|
-
|
|
2115
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
2116
|
-
src_date_tablevue_type_script_lang_js,
|
|
2117
|
-
date_table_render,
|
|
2118
|
-
date_table_staticRenderFns,
|
|
2119
|
-
false,
|
|
2120
|
-
null,
|
|
2121
|
-
null,
|
|
2122
|
-
null
|
|
2123
|
-
|
|
2124
|
-
)
|
|
2125
|
-
|
|
2126
|
-
/* harmony default export */ var date_table = (component.exports);
|
|
2127
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=script&lang=js
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
var validTypes = ['prev-month', 'today', 'next-month'];
|
|
2137
|
-
var weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
2138
|
-
var oneDay = 86400000;
|
|
2139
|
-
|
|
2140
|
-
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
2141
|
-
name: 'ElCalendar',
|
|
2142
|
-
|
|
2143
|
-
mixins: [locale["a" /* default */]],
|
|
2144
|
-
|
|
2145
|
-
components: {
|
|
2146
|
-
DateTable: date_table,
|
|
2147
|
-
ElButton: packages_button["default"],
|
|
2148
|
-
ElButtonGroup: button_group["default"]
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2151
|
-
props: {
|
|
2152
|
-
value: [Date, String, Number],
|
|
2153
|
-
range: {
|
|
2154
|
-
type: Array,
|
|
2155
|
-
validator: function validator(range) {
|
|
2156
|
-
if (Array.isArray(range)) {
|
|
2157
|
-
return range.length === 2 && range.every(function (item) {
|
|
2158
|
-
return typeof item === 'string' || typeof item === 'number' || item instanceof Date;
|
|
2159
|
-
});
|
|
2160
|
-
} else {
|
|
2161
|
-
return true;
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
},
|
|
2165
|
-
firstDayOfWeek: {
|
|
2166
|
-
type: Number,
|
|
2167
|
-
default: 1
|
|
2168
|
-
}
|
|
2169
|
-
},
|
|
2170
|
-
|
|
2171
|
-
provide: function provide() {
|
|
2172
|
-
return {
|
|
2173
|
-
elCalendar: this
|
|
2174
|
-
};
|
|
2175
|
-
},
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
methods: {
|
|
2179
|
-
pickDay: function pickDay(day) {
|
|
2180
|
-
this.realSelectedDay = day;
|
|
2181
|
-
},
|
|
2182
|
-
selectDate: function selectDate(type) {
|
|
2183
|
-
if (validTypes.indexOf(type) === -1) {
|
|
2184
|
-
throw new Error('invalid type ' + type);
|
|
2185
|
-
}
|
|
2186
|
-
var day = '';
|
|
2187
|
-
if (type === 'prev-month') {
|
|
2188
|
-
day = this.prevMonthDatePrefix + '-01';
|
|
2189
|
-
} else if (type === 'next-month') {
|
|
2190
|
-
day = this.nextMonthDatePrefix + '-01';
|
|
2191
|
-
} else {
|
|
2192
|
-
day = this.formatedToday;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
if (day === this.formatedDate) return;
|
|
2196
|
-
this.pickDay(day);
|
|
2197
|
-
},
|
|
2198
|
-
toDate: function toDate(val) {
|
|
2199
|
-
if (!val) {
|
|
2200
|
-
throw new Error('invalid val');
|
|
2201
|
-
}
|
|
2202
|
-
return val instanceof Date ? val : new Date(val);
|
|
2203
|
-
},
|
|
2204
|
-
rangeValidator: function rangeValidator(date, isStart) {
|
|
2205
|
-
var firstDayOfWeek = this.realFirstDayOfWeek;
|
|
2206
|
-
var expected = isStart ? firstDayOfWeek : firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;
|
|
2207
|
-
var message = (isStart ? 'start' : 'end') + ' of range should be ' + weekDays[expected] + '.';
|
|
2208
|
-
if (date.getDay() !== expected) {
|
|
2209
|
-
console.warn('[ElementCalendar]', message, 'Invalid range will be ignored.');
|
|
2210
|
-
return false;
|
|
2211
|
-
}
|
|
2212
|
-
return true;
|
|
2213
|
-
}
|
|
2214
|
-
},
|
|
2215
|
-
|
|
2216
|
-
computed: {
|
|
2217
|
-
prevMonthDatePrefix: function prevMonthDatePrefix() {
|
|
2218
|
-
var temp = new Date(this.date.getTime());
|
|
2219
|
-
temp.setDate(0);
|
|
2220
|
-
return date_default.a.format(temp, 'yyyy-MM');
|
|
2221
|
-
},
|
|
2222
|
-
curMonthDatePrefix: function curMonthDatePrefix() {
|
|
2223
|
-
return date_default.a.format(this.date, 'yyyy-MM');
|
|
2224
|
-
},
|
|
2225
|
-
nextMonthDatePrefix: function nextMonthDatePrefix() {
|
|
2226
|
-
var temp = new Date(this.date.getFullYear(), this.date.getMonth() + 1, 1);
|
|
2227
|
-
return date_default.a.format(temp, 'yyyy-MM');
|
|
2228
|
-
},
|
|
2229
|
-
formatedDate: function formatedDate() {
|
|
2230
|
-
return date_default.a.format(this.date, 'yyyy-MM-dd');
|
|
2231
|
-
},
|
|
2232
|
-
i18nDate: function i18nDate() {
|
|
2233
|
-
var year = this.date.getFullYear();
|
|
2234
|
-
var month = this.date.getMonth() + 1;
|
|
2235
|
-
return year + ' ' + this.t('el.datepicker.year') + ' ' + this.t('el.datepicker.month' + month);
|
|
2236
|
-
},
|
|
2237
|
-
formatedToday: function formatedToday() {
|
|
2238
|
-
return date_default.a.format(this.now, 'yyyy-MM-dd');
|
|
2239
|
-
},
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
realSelectedDay: {
|
|
2243
|
-
get: function get() {
|
|
2244
|
-
if (!this.value) return this.selectedDay;
|
|
2245
|
-
return this.formatedDate;
|
|
2246
|
-
},
|
|
2247
|
-
set: function set(val) {
|
|
2248
|
-
this.selectedDay = val;
|
|
2249
|
-
var date = new Date(val);
|
|
2250
|
-
this.$emit('input', date);
|
|
2251
|
-
}
|
|
2252
|
-
},
|
|
2253
|
-
|
|
2254
|
-
date: function date() {
|
|
2255
|
-
if (!this.value) {
|
|
2256
|
-
if (this.realSelectedDay) {
|
|
2257
|
-
var d = this.selectedDay.split('-');
|
|
2258
|
-
return new Date(d[0], d[1] - 1, d[2]);
|
|
2259
|
-
} else if (this.validatedRange.length) {
|
|
2260
|
-
return this.validatedRange[0][0];
|
|
2261
|
-
}
|
|
2262
|
-
return this.now;
|
|
2263
|
-
} else {
|
|
2264
|
-
return this.toDate(this.value);
|
|
2265
|
-
}
|
|
2266
|
-
},
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
// if range is valid, we get a two-digit array
|
|
2270
|
-
validatedRange: function validatedRange() {
|
|
2271
|
-
var _this = this;
|
|
2272
|
-
|
|
2273
|
-
var range = this.range;
|
|
2274
|
-
if (!range) return [];
|
|
2275
|
-
range = range.reduce(function (prev, val, index) {
|
|
2276
|
-
var date = _this.toDate(val);
|
|
2277
|
-
if (_this.rangeValidator(date, index === 0)) {
|
|
2278
|
-
prev = prev.concat(date);
|
|
2279
|
-
}
|
|
2280
|
-
return prev;
|
|
2281
|
-
}, []);
|
|
2282
|
-
if (range.length === 2) {
|
|
2283
|
-
var _range = range,
|
|
2284
|
-
start = _range[0],
|
|
2285
|
-
end = _range[1];
|
|
2286
|
-
|
|
2287
|
-
if (start > end) {
|
|
2288
|
-
console.warn('[ElementCalendar]end time should be greater than start time');
|
|
2289
|
-
return [];
|
|
2290
|
-
}
|
|
2291
|
-
// start time and end time in one month
|
|
2292
|
-
if (Object(date_util["F" /* validateRangeInOneMonth */])(start, end)) {
|
|
2293
|
-
return [[start, end]];
|
|
2294
|
-
}
|
|
2295
|
-
var data = [];
|
|
2296
|
-
var startDay = new Date(start.getFullYear(), start.getMonth() + 1, 1);
|
|
2297
|
-
var lastDay = this.toDate(startDay.getTime() - oneDay);
|
|
2298
|
-
if (!Object(date_util["F" /* validateRangeInOneMonth */])(startDay, end)) {
|
|
2299
|
-
console.warn('[ElementCalendar]start time and end time interval must not exceed two months');
|
|
2300
|
-
return [];
|
|
2301
|
-
}
|
|
2302
|
-
// 第一个月的时间范围
|
|
2303
|
-
data.push([start, lastDay]);
|
|
2304
|
-
// 下一月的时间范围,需要计算一下该月的第一个周起始日
|
|
2305
|
-
var firstDayOfWeek = this.realFirstDayOfWeek;
|
|
2306
|
-
var nextMontFirstDay = startDay.getDay();
|
|
2307
|
-
var interval = 0;
|
|
2308
|
-
if (nextMontFirstDay !== firstDayOfWeek) {
|
|
2309
|
-
if (firstDayOfWeek === 0) {
|
|
2310
|
-
interval = 7 - nextMontFirstDay;
|
|
2311
|
-
} else {
|
|
2312
|
-
interval = firstDayOfWeek - nextMontFirstDay;
|
|
2313
|
-
interval = interval > 0 ? interval : 7 + interval;
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
startDay = this.toDate(startDay.getTime() + interval * oneDay);
|
|
2317
|
-
if (startDay.getDate() < end.getDate()) {
|
|
2318
|
-
data.push([startDay, end]);
|
|
2319
|
-
}
|
|
2320
|
-
return data;
|
|
2321
|
-
}
|
|
2322
|
-
return [];
|
|
2323
|
-
},
|
|
2324
|
-
realFirstDayOfWeek: function realFirstDayOfWeek() {
|
|
2325
|
-
if (this.firstDayOfWeek < 1 || this.firstDayOfWeek > 6) {
|
|
2326
|
-
return 0;
|
|
2327
|
-
}
|
|
2328
|
-
return Math.floor(this.firstDayOfWeek);
|
|
2329
|
-
}
|
|
2330
|
-
},
|
|
2331
|
-
|
|
2332
|
-
data: function data() {
|
|
2333
|
-
return {
|
|
2334
|
-
selectedDay: '',
|
|
2335
|
-
now: new Date()
|
|
2336
|
-
};
|
|
2337
|
-
}
|
|
2338
|
-
});
|
|
2339
|
-
// CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=script&lang=js
|
|
2340
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
2341
|
-
// CONCATENATED MODULE: ./packages/calendar/src/main.vue
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
/* normalize component */
|
|
2348
|
-
|
|
2349
|
-
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
2350
|
-
src_mainvue_type_script_lang_js,
|
|
2351
|
-
render,
|
|
2352
|
-
staticRenderFns,
|
|
2353
|
-
false,
|
|
2354
|
-
null,
|
|
2355
|
-
null,
|
|
2356
|
-
null
|
|
2357
|
-
|
|
2358
|
-
)
|
|
2359
|
-
|
|
2360
|
-
/* harmony default export */ var main = (main_component.exports);
|
|
2361
|
-
// CONCATENATED MODULE: ./packages/calendar/index.js
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
/* istanbul ignore next */
|
|
2365
|
-
main.install = function (Vue) {
|
|
2366
|
-
Vue.component(main.name, main);
|
|
2367
|
-
};
|
|
2368
|
-
|
|
2369
|
-
/* harmony default export */ var calendar = __webpack_exports__["default"] = (main);
|
|
2370
|
-
|
|
2371
|
-
/***/ })
|
|
2372
|
-
|
|
2373
|
-
/******/ });
|