arthub-datepicker 1.1.4
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 -0
- package/README.md +1 -0
- package/index.css +1 -0
- package/index.d.ts +707 -0
- package/index.es.js +2390 -0
- package/index.js +1 -0
- package/locale/af.d.ts +7 -0
- package/locale/af.es.js +21 -0
- package/locale/af.js +31 -0
- package/locale/ar-dz.d.ts +7 -0
- package/locale/ar-dz.es.js +21 -0
- package/locale/ar-dz.js +31 -0
- package/locale/ar-sa.d.ts +7 -0
- package/locale/ar-sa.es.js +21 -0
- package/locale/ar-sa.js +31 -0
- package/locale/ar.d.ts +7 -0
- package/locale/ar.es.js +21 -0
- package/locale/ar.js +31 -0
- package/locale/az.d.ts +7 -0
- package/locale/az.es.js +21 -0
- package/locale/az.js +31 -0
- package/locale/be.d.ts +7 -0
- package/locale/be.es.js +21 -0
- package/locale/be.js +31 -0
- package/locale/bg.d.ts +7 -0
- package/locale/bg.es.js +21 -0
- package/locale/bg.js +31 -0
- package/locale/bm.d.ts +7 -0
- package/locale/bm.es.js +21 -0
- package/locale/bm.js +31 -0
- package/locale/bn.d.ts +7 -0
- package/locale/bn.es.js +21 -0
- package/locale/bn.js +31 -0
- package/locale/ca.d.ts +7 -0
- package/locale/ca.es.js +21 -0
- package/locale/ca.js +31 -0
- package/locale/cs.d.ts +7 -0
- package/locale/cs.es.js +21 -0
- package/locale/cs.js +31 -0
- package/locale/cy.d.ts +7 -0
- package/locale/cy.es.js +21 -0
- package/locale/cy.js +31 -0
- package/locale/da.d.ts +7 -0
- package/locale/da.es.js +21 -0
- package/locale/da.js +31 -0
- package/locale/de.d.ts +7 -0
- package/locale/de.es.js +21 -0
- package/locale/de.js +31 -0
- package/locale/el.d.ts +7 -0
- package/locale/el.es.js +21 -0
- package/locale/el.js +31 -0
- package/locale/en.d.ts +7 -0
- package/locale/en.es.js +18 -0
- package/locale/en.js +26 -0
- package/locale/eo.d.ts +7 -0
- package/locale/eo.es.js +21 -0
- package/locale/eo.js +31 -0
- package/locale/es.d.ts +7 -0
- package/locale/es.es.js +21 -0
- package/locale/es.js +31 -0
- package/locale/et.d.ts +7 -0
- package/locale/et.es.js +21 -0
- package/locale/et.js +31 -0
- package/locale/fi.d.ts +7 -0
- package/locale/fi.es.js +21 -0
- package/locale/fi.js +31 -0
- package/locale/fr.d.ts +7 -0
- package/locale/fr.es.js +21 -0
- package/locale/fr.js +31 -0
- package/locale/gl.d.ts +7 -0
- package/locale/gl.es.js +21 -0
- package/locale/gl.js +31 -0
- package/locale/gu.d.ts +7 -0
- package/locale/gu.es.js +21 -0
- package/locale/gu.js +31 -0
- package/locale/he.d.ts +7 -0
- package/locale/he.es.js +21 -0
- package/locale/he.js +31 -0
- package/locale/hi.d.ts +7 -0
- package/locale/hi.es.js +21 -0
- package/locale/hi.js +31 -0
- package/locale/hr.d.ts +7 -0
- package/locale/hr.es.js +21 -0
- package/locale/hr.js +31 -0
- package/locale/hu.d.ts +7 -0
- package/locale/hu.es.js +21 -0
- package/locale/hu.js +31 -0
- package/locale/id.d.ts +7 -0
- package/locale/id.es.js +21 -0
- package/locale/id.js +31 -0
- package/locale/is.d.ts +7 -0
- package/locale/is.es.js +21 -0
- package/locale/is.js +31 -0
- package/locale/it.d.ts +7 -0
- package/locale/it.es.js +21 -0
- package/locale/it.js +31 -0
- package/locale/ja.d.ts +7 -0
- package/locale/ja.es.js +21 -0
- package/locale/ja.js +31 -0
- package/locale/ka.d.ts +7 -0
- package/locale/ka.es.js +21 -0
- package/locale/ka.js +31 -0
- package/locale/kk.d.ts +7 -0
- package/locale/kk.es.js +21 -0
- package/locale/kk.js +31 -0
- package/locale/ko.d.ts +7 -0
- package/locale/ko.es.js +21 -0
- package/locale/ko.js +31 -0
- package/locale/lt.d.ts +7 -0
- package/locale/lt.es.js +21 -0
- package/locale/lt.js +31 -0
- package/locale/lv.d.ts +7 -0
- package/locale/lv.es.js +21 -0
- package/locale/lv.js +31 -0
- package/locale/mk.d.ts +7 -0
- package/locale/mk.es.js +21 -0
- package/locale/mk.js +31 -0
- package/locale/ms.d.ts +7 -0
- package/locale/ms.es.js +21 -0
- package/locale/ms.js +31 -0
- package/locale/nb.d.ts +7 -0
- package/locale/nb.es.js +21 -0
- package/locale/nb.js +31 -0
- package/locale/nl-be.d.ts +7 -0
- package/locale/nl-be.es.js +21 -0
- package/locale/nl-be.js +31 -0
- package/locale/nl.d.ts +7 -0
- package/locale/nl.es.js +21 -0
- package/locale/nl.js +31 -0
- package/locale/pl.d.ts +7 -0
- package/locale/pl.es.js +21 -0
- package/locale/pl.js +31 -0
- package/locale/pt-br.d.ts +7 -0
- package/locale/pt-br.es.js +21 -0
- package/locale/pt-br.js +31 -0
- package/locale/pt.d.ts +7 -0
- package/locale/pt.es.js +21 -0
- package/locale/pt.js +31 -0
- package/locale/ro.d.ts +7 -0
- package/locale/ro.es.js +21 -0
- package/locale/ro.js +31 -0
- package/locale/ru.d.ts +7 -0
- package/locale/ru.es.js +21 -0
- package/locale/ru.js +31 -0
- package/locale/sl.d.ts +7 -0
- package/locale/sl.es.js +21 -0
- package/locale/sl.js +31 -0
- package/locale/sr.d.ts +7 -0
- package/locale/sr.es.js +21 -0
- package/locale/sr.js +31 -0
- package/locale/sv.d.ts +7 -0
- package/locale/sv.es.js +21 -0
- package/locale/sv.js +31 -0
- package/locale/ta.d.ts +7 -0
- package/locale/ta.es.js +21 -0
- package/locale/ta.js +31 -0
- package/locale/te.d.ts +7 -0
- package/locale/te.es.js +21 -0
- package/locale/te.js +31 -0
- package/locale/th.d.ts +7 -0
- package/locale/th.es.js +21 -0
- package/locale/th.js +31 -0
- package/locale/tr.d.ts +7 -0
- package/locale/tr.es.js +21 -0
- package/locale/tr.js +31 -0
- package/locale/ug-cn.d.ts +7 -0
- package/locale/ug-cn.es.js +21 -0
- package/locale/ug-cn.js +31 -0
- package/locale/uk.d.ts +7 -0
- package/locale/uk.es.js +21 -0
- package/locale/uk.js +31 -0
- package/locale/vi.d.ts +7 -0
- package/locale/vi.es.js +21 -0
- package/locale/vi.js +31 -0
- package/locale/zh-cn.d.ts +7 -0
- package/locale/zh-cn.es.js +32 -0
- package/locale/zh-cn.js +42 -0
- package/locale/zh-tw.d.ts +7 -0
- package/locale/zh-tw.es.js +32 -0
- package/locale/zh-tw.js +42 -0
- package/package.json +103 -0
- package/scss/animation.scss +17 -0
- package/scss/btn.scss +26 -0
- package/scss/icon.scss +37 -0
- package/scss/index.scss +587 -0
- package/scss/scrollbar.scss +37 -0
- package/scss/var.scss +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 xiemengxiong
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
基于[vue-datepicker-next](https://github.com/mengxiong10/vue-datepicker-next)修改
|
package/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(0.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(0.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;color:#c4c4c4;white-space:nowrap;transition:all .25s ease-in-out}.mx-btn:hover{color:#3f9eff}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1),opacity .3s cubic-bezier(0.23, 1, 0.32, 1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:auto}.mx-datepicker svg{width:1em;height:1em;vertical-align:-0.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:32px;padding:6px 30px;padding-left:10px;font-size:14px;color:#c4c4c4;background-color:#212121;border:1px solid #434343;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.mx-input:hover,.mx-input:focus{border-color:#434343}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#434343;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#c4c4c4;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#efefef}.mx-datepicker-main{font:14px/1.5 "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei",sans-serif;color:#c4c4c4;border:1px solid #222;background:#222;box-shadow:0 4px 12px 0 #000;border-radius:4px}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding-top:16px;overflow:auto}.mx-datepicker-sidebar .mx-btn{transition:all .25s ease-in-out}.mx-datepicker-sidebar .mx-btn:hover{background:#333}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #363636}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-btn-shortcut{width:100%;height:28px;padding:0 12px;background:transparent;font-size:12px;color:#c4c4c4}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar-range,.mx-time-range{display:flex}@media(max-width: 750px){.mx-calendar-range,.mx-time-range{flex-direction:column}}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #1a1a1a}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .mx-table-year .cell,.mx-calendar-content .mx-table-month .cell{border-radius:2px !important;transition:all .25s ease-in-out}.mx-calendar-content .mx-table-year .cell.active,.mx-calendar-content .mx-table-month .cell.active{color:#efefef;background-color:#333}.mx-calendar-content .mx-table-year .cell:not(.active):hover,.mx-calendar-content .mx-table-month .cell:not(.active):hover{color:#3f9eff;background:#222}.mx-calendar-content .cell{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.mx-calendar-content .cell:hover{border-radius:50%;color:#1a1a1a;background-color:#efefef;font-size:600}.mx-calendar-content .cell.active{border-radius:50%;color:#1a1a1a;background-color:#efefef}.mx-calendar-content .cell.active:not(.not-current-month).start::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:50% 0 0 50%}.mx-calendar-content .cell.active:not(.not-current-month).start:last-child::before{border-radius:50% 5px 5px 50%}.mx-calendar-content .cell.active:not(.not-current-month).end::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:0 50% 50% 0}.mx-calendar-content .cell.active:not(.not-current-month).end:first-child::before{border-radius:5px 50% 50% 5px}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#c4c4c4;background-color:#333;border-radius:0}.mx-calendar-content .cell.in-range:first-of-type,.mx-calendar-content .cell.hover-in-range:first-of-type{border-radius:5px 0 0 5px}.mx-calendar-content .cell.in-range:last-of-type,.mx-calendar-content .cell.hover-in-range:last-of-type{border-radius:0 5px 5px 0}.mx-calendar-content .cell.disabled{cursor:not-allowed;opacity:.2}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#efefef}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#333}.mx-calendar-week-mode .mx-date-row .cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-calendar-week-mode .mx-date-row .cell:hover{color:inherit;background-color:transparent}.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle;color:#a2a0ab}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#3f9eff}.mx-table-date .cell.not-current-month{color:#c4c4c4;opacity:.4;background:none}.mx-table-date .cell.not-current-month.disabled{opacity:.2}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-date-time-range-header{display:flex;align-items:center}.mx-date-time-header{display:flex;align-items:center;flex:1;padding:12px;font-size:13px}.mx-date-time-header .mx-date-time-input{position:relative;top:100%;flex:1;display:flex;align-items:center;justify-content:space-between;height:32px;background:#333;padding:0 8px;z-index:1;cursor:default}.mx-date-time-header .mx-date-time-input:first-of-type{border-radius:5px 0 0 5px}.mx-date-time-header .mx-date-time-input:last-of-type{border-radius:0 5px 5px 0}.mx-date-time-header .mx-date-time-input:not(:first-of-type){border-left:1px solid #222}.mx-date-time-header .mx-date-time-input.twice{flex:2}.mx-date-time-header .mx-date-time-input .mx-time{position:absolute;top:100%;left:0;width:100%}.mx-date-time-footer{display:flex;align-items:center;justify-content:flex-end;flex:1;padding:12px}.mx-date-time-footer>button{border:none;width:52px;line-height:28px;padding:0 5px;outline:none;font-size:12px;color:#c4c4c4;border-radius:2px;cursor:pointer;transition:all .25s ease-in-out}.mx-date-time-footer>button.cancel{color:#efefef;background:#363636}.mx-date-time-footer>button.cancel:hover{background:#333}.mx-date-time-footer>button.confirm{color:#efefef;background:#2569bf;margin-left:8px}.mx-date-time-footer>button.confirm:hover{background:#3886ea}.mx-date-time{position:relative;width:248px}.mx-date-time .mx-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-date-time-range{position:relative;width:496px}.mx-date-time-range .mx-time-range{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden;background-color:#303030}.mx-time-content.fixed{height:auto}.mx-time-footer{background-color:#303030;display:flex;justify-content:flex-end;border-top:1px solid #222}.mx-time-footer>button{border:none;line-height:28px;padding:0 5px;cursor:pointer;background-color:transparent;outline:none;font-size:12px;color:#c4c4c4}.mx-time-footer>button.confirm{color:#3f9eff;margin-left:4px}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #222;text-align:center}.mx-time-column ::-webkit-scrollbar{width:0;background:transparent}.mx-time-column:first-child{border-left-color:transparent}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list::after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#efefef}.mx-time-column .mx-time-item.active{color:#3f9eff;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;opacity:.2}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:12px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-time-option:hover{background-color:#333}.mx-time-option.active{color:#3f9eff;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;opacity:.4}.arrow-down{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #c4c4c4}
|