@blueking/date-picker 2.0.0-beta.9 → 3.0.0-beta.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.
Files changed (39) hide show
  1. package/README.md +15 -10
  2. package/package.json +14 -79
  3. package/typings/components/baseline-select.vue.d.ts +12 -0
  4. package/typings/components/common-submit.vue.d.ts +10 -19
  5. package/typings/components/common-tab.vue.d.ts +10 -14
  6. package/typings/components/date-list.vue.d.ts +15 -0
  7. package/typings/components/date-panel.vue.d.ts +9 -28
  8. package/typings/components/date-picker.vue.d.ts +8 -15
  9. package/typings/components/date-title.vue.d.ts +6 -0
  10. package/typings/components/natural-picker.vue.d.ts +6 -13
  11. package/typings/components/panel-wrapper.vue.d.ts +12 -21
  12. package/typings/components/recent-picker.vue.d.ts +10 -28
  13. package/typings/components/timezone-picker.vue.d.ts +14 -19
  14. package/typings/date-picker.vue.d.ts +21 -44
  15. package/typings/hooks/use-keydown-enter.d.ts +1 -0
  16. package/typings/hooks/use-validate.d.ts +17 -0
  17. package/typings/lang/lang.d.ts +14 -4
  18. package/typings/utils/constant.d.ts +8 -5
  19. package/typings/utils/cookie.d.ts +4 -0
  20. package/typings/utils/date.d.ts +38 -15
  21. package/typings/utils/duration.d.ts +5 -0
  22. package/typings/utils/index.d.ts +4 -3
  23. package/typings/utils/provider.d.ts +20 -0
  24. package/typings/utils/store.d.ts +1 -1
  25. package/typings/utils/timezone.d.ts +4 -4
  26. package/typings/utils/types.d.ts +22 -14
  27. package/typings/vue2.d.ts +4 -30
  28. package/typings/vue3.d.ts +7 -2
  29. package/vue2/config.json +1 -1
  30. package/vue2/index.es.min.js +25578 -19189
  31. package/vue2/index.iife.min.js +36664 -76
  32. package/vue2/index.umd.min.js +29075 -57
  33. package/vue2/vue2.css +3520 -1
  34. package/vue3/config.json +1 -1
  35. package/vue3/index.es.min.js +2956 -1716
  36. package/vue3/index.iife.min.js +29562 -57
  37. package/vue3/index.umd.min.js +4554 -2
  38. package/vue3/vue3.css +796 -1
  39. package/typings/utils/utils.d.ts +0 -15
package/vue3/vue3.css CHANGED
@@ -1 +1,796 @@
1
- .common-panel-tab{display:flex;align-items:center}.common-panel-tab .bk-tab-header{line-height:20px!important;border-bottom:0!important}.common-panel-tab .bk-tab-header .bk-tab-header-item{padding:0 0 4px;margin-right:28px}.common-panel-tab .bk-tab-header--active{font-weight:700;color:#63656e}.common-panel-tab .bk-tab-content{display:none;width:0;height:0}.common-panel-tab .delete-all{margin-left:auto}.common-panel-tab .delete-all:hover{color:#3a84ff;cursor:pointer}.common-submit{flex:0 0 64px;width:64px;margin-left:8px}.common-favorite{display:flex;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;margin-left:8px;cursor:pointer;background:#f5f7fa;border-radius:2px}.common-favorite:hover svg path{fill:#3a84ff}.date-panel{display:flex;flex-direction:column;width:220px;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #dcdee5;box-shadow:0 2px 6px #0000001a}.date-panel-title{display:flex;flex:0 0 40px;align-items:center;height:40px;padding:0 12px;color:#63656e;border-bottom:1px solid #dcdee5}.date-panel-title .title-check{margin-left:auto}.date-panel-title .title-check .bk-checkbox{pointer-events:none}.date-panel-main{display:flex;flex:1;flex-direction:column;padding:8px 0 12px}.date-panel-main .date-header{display:flex;align-items:center;width:100%;height:24px}.date-panel-main .date-header-center{display:flex;flex:1;align-items:center;justify-content:center;height:100%;font-size:14px;font-weight:700}.date-panel-main .date-header-center .date-split{width:5px;height:2px;margin:0 10px;background-color:#63656e}.date-panel-main .date-header-right,.date-panel-main .date-header-left{display:flex;align-items:center;height:100%;padding:0 6px;font-size:16px}.date-panel-main .date-header-right .hand-icon,.date-panel-main .date-header-left .hand-icon{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#979ba5}.date-panel-main .date-header-right .hand-icon svg,.date-panel-main .date-header-left .hand-icon svg{width:20px!important;height:20px!important;font-weight:700}.date-panel-main .date-header-right .hand-icon:hover,.date-panel-main .date-header-left .hand-icon:hover{color:#3a84ff;cursor:pointer}.date-panel-main .date-header-right .hand-icon:hover svg,.date-panel-main .date-header-left .hand-icon:hover svg{fill:#3a84ff}.date-panel-main .date-header-right{margin-left:auto}.date-panel-main .date-content{display:flex;flex-direction:column}.date-panel-main .date-content .date-grid{display:flex;align-items:center;width:100%;padding:0 12px;margin:0}.date-panel-main .date-content .date-grid-item{display:flex;flex:0 0 14.285%;align-items:center;justify-content:center;width:14.285%;min-width:28px;height:24px}.date-panel-main .date-content .date-grid-item:not(.not-click):hover{cursor:pointer;background-color:#f0f1f5}.date-panel-main .date-content .date-grid-item.is-today{color:#3a84ff;border:1px solid #a3c5fd;border-radius:2px}.date-panel-main .date-content .date-grid-item.is-last-month{color:#c4c6cc;background-color:#f0f1f5}.date-panel-main .date-content .date-grid-item.is-next-month{color:#c4c6cc}.date-panel-main .date-content .date-grid-item.is-disabled{color:#c4c6cc!important;cursor:not-allowed!important;background-color:#f0f1f5!important}.date-panel-main .date-content .date-grid-item.is-selected{color:#fff!important;background-color:#3a84ff!important;border-radius:2px}.date-wrapper{display:flex;flex-direction:column}.date-wrapper .date-input{display:flex;align-items:center;width:100%;min-height:56px}.date-wrapper .date-input .date-picker{display:flex;align-items:center;width:100%;min-width:360px;height:32px;background:#fff;border:1px solid #c4c6cc;border-radius:2px}.date-wrapper .date-input .date-picker-icon{display:flex;align-items:center;justify-content:center;margin-right:6px;margin-left:8px}.date-wrapper .date-input .date-picker-start,.date-wrapper .date-input .date-picker-end{width:160px;height:24px;padding:0 4px;font-size:12px;color:#63656e;border:none;border-radius:2px}.date-wrapper .date-input .date-picker-start:focus,.date-wrapper .date-input .date-picker-end:focus{background:#e1ecff;border:none;outline:none;box-shadow:none}.date-wrapper .date-input .date-picker-split{display:flex;align-items:center;justify-content:center;padding:0 8px;color:#979ba5}.date-wrapper .date-input .date-picker-clear{display:none!important;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;font-size:14px;color:#c4c6cc}.date-wrapper .date-input .date-picker-clear:hover{color:#63656e;cursor:pointer}.date-wrapper .date-input .date-picker:hover .date-picker-clear{display:flex!important}.date-wrapper .show-format{display:flex;align-items:center;width:100%;min-width:100%;margin-top:-8px;margin-bottom:12px;color:#979ba5}.date-wrapper .show-format .format-button{margin-left:8px}.date-format-wrapper{display:flex;flex-direction:column;width:520px;padding:12px 15px}.date-format-wrapper .content-title{margin-bottom:12px;font-weight:700;line-height:20px}.date-format-wrapper .content-table{display:flex;flex-direction:column;width:100%;border-collapse:collapse;background-color:#fff;border:1px solid #eaeefb;border-top:0;border-left:0}.date-format-wrapper .content-table th,.date-format-wrapper .content-table td{height:42px;padding:0 16px;line-height:42px;color:#63656e;text-align:left;border:1px solid #eaeefb;border-right:0;border-bottom:0}.date-format-wrapper .content-table thead,.date-format-wrapper .content-table tr{display:flex;align-items:center;width:100%}.date-format-wrapper .content-table thead th,.date-format-wrapper .content-table tr th{flex:1;background-color:#fafbfd}.date-format-wrapper .content-table tbody{display:block;width:calc(100% + 4px);max-height:300px;overflow:auto}.date-format-wrapper .content-table tbody td{display:flex;flex:1;align-items:center}.natural-picker{display:flex;align-items:center;min-height:56px}.natural-picker .natural-date{width:256px}.natural-picker .natural-unit{width:140px;margin-left:8px}.natural-custom-option{display:flex;align-items:center;width:100%;min-width:250px;height:100%;padding:0 12px;margin:0 -12px}.natural-custom-option .bk-input{background-color:#fff}.recent-picker{display:flex;align-items:center;min-height:56px}.recent-picker .recent-input{border-top-right-radius:0;border-bottom-right-radius:0}.recent-picker .recent-input.is-focused{z-index:2}.recent-picker .recent-unit{width:164px}.recent-picker .recent-unit .bk-input{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.recent-picker .recent-unit .bk-input--text{border-radius:0}.timezone-picker{width:100%}.timezone-picker-option{display:flex;align-items:center;width:100%;color:#63656e}.timezone-picker-option .option-name{flex:1}.timezone-picker-option .option-country{display:flex;width:100%;margin-left:6px;color:#999}.timezone-picker-option .option-utc{display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 8px;background:#f0f1f5;border-radius:2px}.timezone-picker-option.is-selected{color:#3a84ff}.timezone-picker-option.is-selected .option-country{color:#699df4}.timezone-picker-option.is-selected .option-utc{color:#fff;background-color:#699df4}.panel-wrapper{width:510px;padding:12px 16px 0;background:#fff;border:1px solid #dcdee5;border-radius:2px;box-shadow:0 2px 6px #0000001a}.panel-wrapper .common-date-list{height:136px;max-height:136px;padding:0 0 4px;margin:12px -10px 0 0;overflow:auto}.panel-wrapper .common-date-list .list-item{display:inline-flex;align-items:center;min-width:calc(33.33% - 8px);height:28px;padding:0 8px;margin-right:8px;margin-bottom:8px;color:#313238;cursor:pointer;background:#f5f7fa;border-radius:2px}.panel-wrapper .common-date-list .list-item.is-recent-item{min-width:inherit;height:24px;padding:0 6px;color:#63656e}.panel-wrapper .common-date-list .list-item.is-selected,.panel-wrapper .common-date-list .list-item:hover{color:#3a84ff;background:#e1ecff}.panel-wrapper .date-pick-tab{padding-top:12px;border-top:1px solid #eaebf0}.panel-wrapper .date-pick-tab .bk-tab-header-item{margin-right:20px!important}.panel-wrapper .time-zone-panel{display:flex;align-items:center;height:45px;padding:0 16px;margin:0 -16px;color:#313238;background:#fafbfd;border-top:1px solid #dcdee5}.panel-wrapper .time-zone-panel .time-zone{display:flex;align-items:center;margin:0 8px}.panel-wrapper .time-zone-panel .time-zone-area{display:flex;align-items:center;margin-left:8px;color:#979ba5}.panel-wrapper .time-zone-panel .time-zone-tag{display:flex;align-items:center;justify-content:center;width:79px;height:20px;color:#63656e;border:1px solid #dcdee5;border-radius:2px}.panel-wrapper .time-zone-panel .time-zone-btn{margin-left:auto}.panel-wrapper .time-zone-picker{margin:8px 0}.panel-wrapper .common-wrapper{display:flex;flex-direction:column;height:139px;max-height:139px;overflow:auto}.panel-wrapper .common-wrapper .empty-content{height:100px;max-height:100px}.panel-wrapper .common-wrapper .empty-tips{display:flex;align-items:center;justify-content:center}.__bk_date_picker__{box-sizing:border-box;display:inline-flex;align-items:center;height:32px;padding:0 4px;font-size:12px;color:#63656e;border:1px solid #c4c6cc;border-radius:2px}.__bk_date_picker__ div::-webkit-scrollbar,.__bk_date_picker__ ul::-webkit-scrollbar,.__bk_date_picker__ section::-webkit-scrollbar,.__bk_date_picker__ tbody::-webkit-scrollbar,.__bk_date_picker__ article::-webkit-scrollbar{width:4px;height:4px}.__bk_date_picker__ div::-webkit-scrollbar-thumb,.__bk_date_picker__ ul::-webkit-scrollbar-thumb,.__bk_date_picker__ section::-webkit-scrollbar-thumb,.__bk_date_picker__ tbody::-webkit-scrollbar-thumb,.__bk_date_picker__ article::-webkit-scrollbar-thumb{background:#ddd;border-radius:20px;box-shadow:inset 0 0 6px #cccccc4d}.__bk_date_picker__ .date-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:20px;font-weight:700;color:#989ca7;background:#f5f7fa;border-radius:2px}.__bk_date_picker__ .date-icon-left,.__bk_date_picker__ .date-icon-right{display:inline-flex}.__bk_date_picker__ .date-icon-left svg,.__bk_date_picker__ .date-icon-right svg{width:20px!important;height:20px!important}.__bk_date_picker__ .date-icon:hover{cursor:pointer;background-color:#f0f1f5}.__bk_date_picker__.is-simplicity{border-color:transparent}.__bk_date_picker__.is-simplicity .date-icon{background-color:transparent}.__bk_date_picker__.is-simplicity .date-icon:hover{cursor:pointer;background-color:#f0f1f5}.__bk_date_picker__.is-disabled{color:#c4c6cc;cursor:not-allowed}.__bk_date_picker__.is-disabled .date-icon{color:#c4c6cc;pointer-events:none}.__bk_date_picker__.is-disabled .date-content{pointer-events:none;cursor:not-allowed}.__bk_date_picker__ .date-content{display:flex;align-items:center;height:24px;padding:0 6px;margin:0 4px;-webkit-user-select:none;user-select:none;border-radius:2px}.__bk_date_picker__ .date-content-icon{margin-right:4px}.__bk_date_picker__ .date-content-utc{display:flex;align-items:center;margin-left:4px;font-weight:700;color:#ff9c01}.__bk_date_picker__ .date-content:hover{cursor:pointer;background:#f5f7fa}.__bk-date-picker-popover__{padding:0!important;margin:0!important;color:#63656e!important}.__bk-date-picker-popover__ div::-webkit-scrollbar,.__bk-date-picker-popover__ ul::-webkit-scrollbar,.__bk-date-picker-popover__ section::-webkit-scrollbar,.__bk-date-picker-popover__ tbody::-webkit-scrollbar,.__bk-date-picker-popover__ article::-webkit-scrollbar{width:4px;height:4px}.__bk-date-picker-popover__ div::-webkit-scrollbar-thumb,.__bk-date-picker-popover__ ul::-webkit-scrollbar-thumb,.__bk-date-picker-popover__ section::-webkit-scrollbar-thumb,.__bk-date-picker-popover__ tbody::-webkit-scrollbar-thumb,.__bk-date-picker-popover__ article::-webkit-scrollbar-thumb{background:#ddd;border-radius:20px;box-shadow:inset 0 0 6px #cccccc4d}.__bk-date-picker-popover__ ul{padding:0;margin:0}.__bk-date-picker-popover__ ul li{list-style:none}.__bk-date-picker-popover__ .bk-select-search-wrapper .icon-search:before{content:""!important}.__bk-date-picker-popover__ .bk-pop-confirm{margin:20px 16px 16px!important}.__date-tooltips__{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:156px;line-height:20px}.__date-tooltips__ div::-webkit-scrollbar,.__date-tooltips__ ul::-webkit-scrollbar,.__date-tooltips__ section::-webkit-scrollbar,.__date-tooltips__ tbody::-webkit-scrollbar,.__date-tooltips__ article::-webkit-scrollbar{width:4px;height:4px}.__date-tooltips__ div::-webkit-scrollbar-thumb,.__date-tooltips__ ul::-webkit-scrollbar-thumb,.__date-tooltips__ section::-webkit-scrollbar-thumb,.__date-tooltips__ tbody::-webkit-scrollbar-thumb,.__date-tooltips__ article::-webkit-scrollbar-thumb{background:#ddd;border-radius:20px;box-shadow:inset 0 0 6px #cccccc4d}.__date-tooltips__ .date-tooltips-timezone{display:flex;align-items:center;justify-content:center;width:100%;margin-top:4px;color:#ff9c01}.__date-tooltips__ .date-tooltips-diff{display:flex;align-items:center;justify-content:center;padding:0 4px;margin-top:4px;color:#fff;background:#ffffff1f;border-radius:2px}
1
+ .bk-timezone-picker {
2
+ width: 100%;
3
+ }
4
+ .bk-timezone-picker-option {
5
+ display: flex;
6
+ align-items: center;
7
+ width: 100%;
8
+ color: #63656e;
9
+ }
10
+ .bk-timezone-picker-option .option-name {
11
+ flex: 1;
12
+ }
13
+ .bk-timezone-picker-option .option-country {
14
+ display: flex;
15
+ width: 100%;
16
+ margin-left: 6px;
17
+ color: #999;
18
+ }
19
+ .bk-timezone-picker-option .option-utc {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ height: 20px;
24
+ padding: 0 8px;
25
+ background: #f0f1f5;
26
+ border-radius: 2px;
27
+ }
28
+ .bk-timezone-picker-option.is-selected {
29
+ color: #3a84ff;
30
+ }
31
+ .bk-timezone-picker-option.is-selected .option-country {
32
+ color: #699df4;
33
+ }
34
+ .bk-timezone-picker-option.is-selected .option-utc {
35
+ color: white;
36
+ background-color: #699df4;
37
+ }
38
+
39
+ /* stylelint-disable-next-line selector-class-pattern */
40
+ .__bk-timezone-picker-popover__ {
41
+ width: fit-content !important;
42
+ }.common-panel-tab {
43
+ display: flex;
44
+ align-items: center;
45
+ }
46
+ .common-panel-tab .bk-tab-header {
47
+ /* stylelint-disable-next-line declaration-no-important */
48
+ line-height: 20px !important;
49
+ /* stylelint-disable-next-line declaration-no-important */
50
+ border-bottom: 0 !important;
51
+ }
52
+ .common-panel-tab .bk-tab-header .bk-tab-header-item {
53
+ padding: 0;
54
+ padding-bottom: 4px;
55
+ margin-right: 28px;
56
+ }
57
+ .common-panel-tab .bk-tab-header--active {
58
+ font-weight: 700;
59
+ color: #63656e;
60
+ }
61
+ .common-panel-tab .bk-tab-content {
62
+ display: none;
63
+ width: 0;
64
+ height: 0;
65
+ }.common-date-list[data-v-ed496942] {
66
+ flex: 0 0 50%;
67
+ }
68
+ .common-date-list[data-v-ed496942]:last-child {
69
+ padding-left: 12px;
70
+ }
71
+ .common-date-list .list-item[data-v-ed496942] {
72
+ display: inline-flex;
73
+ align-items: center;
74
+ min-width: calc(33.33% - 8px);
75
+ height: 28px;
76
+ padding: 0 8px;
77
+ margin-right: 8px;
78
+ margin-bottom: 8px;
79
+ color: #313238;
80
+ cursor: pointer;
81
+ background: #f5f7fa;
82
+ border-radius: 2px;
83
+ }
84
+ .common-date-list .list-item.is-selected[data-v-ed496942] {
85
+ color: #3a84ff;
86
+ background: #e1ecff;
87
+ }
88
+ .common-date-list .list-item.is-disabled[data-v-ed496942] {
89
+ color: #c4c6cc;
90
+ cursor: not-allowed;
91
+ background: #f5f7fa;
92
+ }
93
+ .common-date-list .list-item[data-v-ed496942]:not(.is-disabled):hover {
94
+ color: #3a84ff;
95
+ background: #e1ecff;
96
+ }
97
+ .common-wrapper[data-v-ed496942] {
98
+ display: flex;
99
+ flex-direction: column;
100
+ width: 100%;
101
+ height: 139px;
102
+ max-height: 139px;
103
+ overflow: auto;
104
+ }
105
+ .common-wrapper .empty-content[data-v-ed496942] {
106
+ height: 100px;
107
+ max-height: 100px;
108
+ }
109
+ .common-wrapper .empty-tips[data-v-ed496942] {
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ }.common-submit {
114
+ flex: 0 0 64px;
115
+ width: 64px;
116
+ margin-left: 8px;
117
+ }
118
+ .common-favorite {
119
+ display: flex;
120
+ flex: 0 0 32px;
121
+ align-items: center;
122
+ justify-content: center;
123
+ width: 32px;
124
+ height: 32px;
125
+ margin-left: 8px;
126
+ cursor: pointer;
127
+ background: #f5f7fa;
128
+ border-radius: 2px;
129
+ }
130
+ .common-favorite:hover svg path {
131
+ fill: #3a84ff;
132
+ }/* stylelint-disable declaration-no-important */
133
+ .date-panel {
134
+ display: flex;
135
+ flex-direction: column;
136
+ width: 220px;
137
+ user-select: none;
138
+ background: #fff;
139
+ border: 1px solid #dcdee5;
140
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1019607843);
141
+ }
142
+ .date-panel-title {
143
+ display: flex;
144
+ flex: 0 0 40px;
145
+ align-items: center;
146
+ height: 40px;
147
+ padding: 0 12px;
148
+ color: #63656e;
149
+ border-bottom: 1px solid #dcdee5;
150
+ }
151
+ .date-panel-title .title-check {
152
+ margin-left: auto;
153
+ }
154
+ .date-panel-title .title-check .bk-checkbox {
155
+ pointer-events: none;
156
+ }
157
+ .date-panel-main {
158
+ display: flex;
159
+ flex: 1;
160
+ flex-direction: column;
161
+ padding: 8px 0 12px;
162
+ }
163
+ .date-panel-main .date-header {
164
+ display: flex;
165
+ align-items: center;
166
+ width: 100%;
167
+ height: 24px;
168
+ }
169
+ .date-panel-main .date-header-center {
170
+ display: flex;
171
+ flex: 1;
172
+ align-items: center;
173
+ justify-content: center;
174
+ height: 100%;
175
+ font-size: 14px;
176
+ font-weight: 700;
177
+ }
178
+ .date-panel-main .date-header-center .date-split {
179
+ width: 5px;
180
+ height: 2px;
181
+ margin: 0 10px;
182
+ background-color: #63656e;
183
+ }
184
+ .date-panel-main .date-header-right, .date-panel-main .date-header-left {
185
+ display: flex;
186
+ align-items: center;
187
+ height: 100%;
188
+ padding: 0 6px;
189
+ font-size: 16px;
190
+ }
191
+ .date-panel-main .date-header-right .hand-icon, .date-panel-main .date-header-left .hand-icon {
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ font-size: 16px;
196
+ font-weight: bold;
197
+ color: #979ba5;
198
+ }
199
+ .date-panel-main .date-header-right .hand-icon svg, .date-panel-main .date-header-left .hand-icon svg {
200
+ width: 20px !important;
201
+ height: 20px !important;
202
+ font-weight: bold;
203
+ }
204
+ .date-panel-main .date-header-right .hand-icon:hover, .date-panel-main .date-header-left .hand-icon:hover {
205
+ color: #3a84ff;
206
+ cursor: pointer;
207
+ }
208
+ .date-panel-main .date-header-right .hand-icon:hover svg, .date-panel-main .date-header-left .hand-icon:hover svg {
209
+ fill: #3a84ff;
210
+ }
211
+ .date-panel-main .date-header-right {
212
+ margin-left: auto;
213
+ }
214
+ .date-panel-main .date-content {
215
+ display: flex;
216
+ flex-direction: column;
217
+ }
218
+ .date-panel-main .date-content .date-grid {
219
+ display: flex;
220
+ align-items: center;
221
+ width: 100%;
222
+ padding: 0 12px;
223
+ margin: 0;
224
+ }
225
+ .date-panel-main .date-content .date-grid-item {
226
+ display: flex;
227
+ flex: 0 0 14.285%;
228
+ align-items: center;
229
+ justify-content: center;
230
+ width: 14.285%;
231
+ min-width: 28px;
232
+ height: 24px;
233
+ }
234
+ .date-panel-main .date-content .date-grid-item:not(.not-click):hover {
235
+ cursor: pointer;
236
+ background-color: #f0f1f5;
237
+ }
238
+ .date-panel-main .date-content .date-grid-item.is-today {
239
+ color: #3a84ff;
240
+ border: 1px solid #a3c5fd;
241
+ border-radius: 2px;
242
+ }
243
+ .date-panel-main .date-content .date-grid-item.is-last-month {
244
+ color: #c4c6cc;
245
+ background-color: #f0f1f5;
246
+ }
247
+ .date-panel-main .date-content .date-grid-item.is-next-month {
248
+ color: #c4c6cc;
249
+ }
250
+ .date-panel-main .date-content .date-grid-item.is-disabled {
251
+ color: #c4c6cc !important;
252
+ cursor: not-allowed !important;
253
+ background-color: #f5f7fa !important;
254
+ }
255
+ .date-panel-main .date-content .date-grid-item.is-selected {
256
+ color: #fff !important;
257
+ background-color: #3a84ff !important;
258
+ border-radius: 2px;
259
+ }/* stylelint-disable declaration-no-important */
260
+ .date-wrapper {
261
+ display: flex;
262
+ flex-direction: column;
263
+ }
264
+ .date-wrapper .date-input {
265
+ display: flex;
266
+ align-items: center;
267
+ width: 100%;
268
+ min-height: 56px;
269
+ }
270
+ .date-wrapper .date-input .date-picker {
271
+ display: flex;
272
+ align-items: center;
273
+ width: 100%;
274
+ min-width: 376px;
275
+ height: 32px;
276
+ background: #fff;
277
+ border: 1px solid #c4c6cc;
278
+ border-radius: 2px;
279
+ }
280
+ .date-wrapper .date-input .date-picker-icon {
281
+ display: flex;
282
+ align-items: center;
283
+ justify-content: center;
284
+ margin-right: 6px;
285
+ margin-left: 8px;
286
+ }
287
+ .date-wrapper .date-input .date-picker-start, .date-wrapper .date-input .date-picker-end {
288
+ flex: 1 1 160px;
289
+ min-width: 160px;
290
+ height: 24px;
291
+ padding: 0 4px;
292
+ font-size: 12px;
293
+ color: #63656e;
294
+ border: none;
295
+ border-radius: 2px;
296
+ }
297
+ .date-wrapper .date-input .date-picker-start:focus, .date-wrapper .date-input .date-picker-end:focus {
298
+ outline: none;
299
+ background: #e1ecff;
300
+ border: none;
301
+ box-shadow: none;
302
+ }
303
+ .date-wrapper .date-input .date-picker-split {
304
+ display: flex;
305
+ align-items: center;
306
+ justify-content: center;
307
+ padding: 0 8px;
308
+ color: #979ba5;
309
+ }
310
+ .date-wrapper .date-input .date-picker-clear {
311
+ visibility: hidden !important;
312
+ flex: 0 0 32px;
313
+ align-items: center;
314
+ justify-content: center;
315
+ width: 32px;
316
+ height: 32px;
317
+ font-size: 14px;
318
+ color: #c4c6cc;
319
+ }
320
+ .date-wrapper .date-input .date-picker-clear:hover {
321
+ color: #63656e;
322
+ cursor: pointer;
323
+ }
324
+ .date-wrapper .date-input .date-picker:hover .date-picker-clear {
325
+ visibility: visible !important;
326
+ }
327
+ .date-wrapper .show-format {
328
+ display: flex;
329
+ align-items: center;
330
+ width: 100%;
331
+ min-width: 100%;
332
+ margin: -4px 0 8px;
333
+ color: #979ba5;
334
+ }
335
+ .date-wrapper .show-format .format-button {
336
+ margin-left: 0;
337
+ }
338
+ .date-format-wrapper {
339
+ display: flex;
340
+ flex-direction: column;
341
+ width: 500px;
342
+ background: #fff;
343
+ border: 1px solid #dcdee5;
344
+ border-radius: 2px;
345
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1019607843);
346
+ }
347
+ .date-format-wrapper .content-title {
348
+ margin-bottom: 12px;
349
+ font-weight: bold;
350
+ line-height: 20px;
351
+ }
352
+ .date-format-wrapper .content-table {
353
+ display: flex;
354
+ flex-direction: column;
355
+ padding: 6px 0;
356
+ border-collapse: collapse;
357
+ background-color: #fff;
358
+ border-top: 0;
359
+ border-left: 0;
360
+ }
361
+ .date-format-wrapper .content-table th,
362
+ .date-format-wrapper .content-table td {
363
+ height: 32px;
364
+ padding: 0 10px;
365
+ line-height: 32px;
366
+ color: #63656e;
367
+ text-align: left;
368
+ border-right: 0;
369
+ border-bottom: 0;
370
+ }
371
+ .date-format-wrapper .content-table thead,
372
+ .date-format-wrapper .content-table tr {
373
+ display: flex;
374
+ align-items: center;
375
+ width: 100%;
376
+ }
377
+ .date-format-wrapper .content-table thead th,
378
+ .date-format-wrapper .content-table tr th {
379
+ flex: 1;
380
+ background-color: #fafbfd;
381
+ }
382
+ .date-format-wrapper .content-table tbody {
383
+ display: block;
384
+ width: 100%;
385
+ max-height: 300px;
386
+ overflow: auto;
387
+ }
388
+ .date-format-wrapper .content-table tbody td {
389
+ display: flex;
390
+ flex: 1;
391
+ align-items: center;
392
+ }
393
+ .date-format-wrapper.enable-format-click tr {
394
+ cursor: pointer;
395
+ }
396
+ .date-format-wrapper.enable-format-click tr:hover {
397
+ background: #f0f5ff;
398
+ }
399
+ .date-format-wrapper.enable-format-click tr:hover td {
400
+ color: #3a84ff;
401
+ }.date-title[data-v-03d5d182] {
402
+ display: flex;
403
+ align-items: center;
404
+ width: 100%;
405
+ height: 20px;
406
+ font-size: 12px;
407
+ font-weight: 700;
408
+ line-height: 20px;
409
+ color: #313238;
410
+ }
411
+ .date-title .date-title-item[data-v-03d5d182] {
412
+ display: flex;
413
+ flex: 1;
414
+ align-items: center;
415
+ }
416
+ .date-title .date-title-item[data-v-03d5d182]:last-child {
417
+ padding-left: 28px;
418
+ }
419
+ .date-title .date-title-item .delete-all[data-v-03d5d182] {
420
+ margin-left: 8px;
421
+ font-size: 12px;
422
+ }
423
+ .date-title .date-title-item .delete-all[data-v-03d5d182]:hover {
424
+ color: #3a84ff;
425
+ cursor: pointer;
426
+ }.natural-picker {
427
+ display: flex;
428
+ align-items: center;
429
+ min-height: 56px;
430
+ }
431
+ .natural-picker .natural-date {
432
+ width: 256px;
433
+ }
434
+ .natural-picker .natural-unit {
435
+ width: 140px;
436
+ margin-left: 8px;
437
+ }
438
+ .natural-picker.is-invalid .bk-input {
439
+ border-color: #ea3636;
440
+ }
441
+ .natural-custom-option {
442
+ display: flex;
443
+ align-items: center;
444
+ width: 100%;
445
+ min-width: 250px;
446
+ height: 100%;
447
+ padding: 0 12px;
448
+ margin: 0 -12px;
449
+ }
450
+ .natural-custom-option .bk-input {
451
+ background-color: white;
452
+ }.baseline-picker {
453
+ display: flex;
454
+ align-items: center;
455
+ min-height: 56px;
456
+ margin-right: -1px;
457
+ }
458
+ .baseline-picker-select {
459
+ width: 208px;
460
+ }
461
+ .baseline-picker-select .bk-input {
462
+ margin-right: -4px;
463
+ border-top-right-radius: 0;
464
+ border-bottom-right-radius: 0;
465
+ }
466
+ .baseline-custom-option {
467
+ display: flex;
468
+ align-items: center;
469
+ width: 100%;
470
+ height: 100%;
471
+ padding: 0 12px;
472
+ margin: 0 -12px;
473
+ }
474
+ .baseline-custom-option .bk-input {
475
+ background-color: white;
476
+ }
477
+ .baseline-custom-option .specific-date {
478
+ position: relative;
479
+ display: flex;
480
+ align-items: center;
481
+ width: 174px;
482
+ height: 26px;
483
+ background: #fff;
484
+ border: 1px solid #c4c6cc;
485
+ border-radius: 2px;
486
+ }
487
+ .baseline-custom-option .specific-date-icon {
488
+ display: flex;
489
+ align-items: center;
490
+ justify-content: center;
491
+ margin-right: 6px;
492
+ margin-left: 8px;
493
+ }
494
+ .baseline-custom-option .specific-date-input {
495
+ width: 140px;
496
+ height: 20px;
497
+ padding: 0 4px;
498
+ font-size: 12px;
499
+ color: #63656e;
500
+ border: none;
501
+ border-radius: 2px;
502
+ }
503
+ .baseline-custom-option .specific-date-input:focus {
504
+ outline: none;
505
+ background: #e1ecff;
506
+ border: none;
507
+ box-shadow: none;
508
+ }
509
+ .baseline-custom-option .specific-date-panel {
510
+ position: fixed;
511
+ top: 166px;
512
+ left: 188px;
513
+ z-index: 1000;
514
+ border-radius: 2px;
515
+ }.recent-picker {
516
+ display: flex;
517
+ align-items: center;
518
+ min-height: 56px;
519
+ }
520
+ .recent-picker .recent-input {
521
+ border-top-right-radius: 0;
522
+ border-bottom-right-radius: 0;
523
+ }
524
+ .recent-picker .recent-input.is-focused {
525
+ z-index: 2;
526
+ }
527
+ .recent-picker .recent-unit {
528
+ min-width: 64px;
529
+ }
530
+ .recent-picker .recent-unit .bk-input {
531
+ margin-left: -1px;
532
+ border-top-left-radius: 0;
533
+ border-bottom-left-radius: 0;
534
+ }
535
+ .recent-picker .recent-unit .bk-input--text {
536
+ border-radius: 0;
537
+ }
538
+ .recent-picker.is-invalid .recent-input {
539
+ border-color: #ea3636;
540
+ }
541
+ .recent-picker.is-invalid .bk-input {
542
+ border-color: #ea3636;
543
+ }.panel-wrapper {
544
+ width: 618px;
545
+ padding: 12px 16px 0;
546
+ background: #fff;
547
+ border: 1px solid #dcdee5;
548
+ border-radius: 2px;
549
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1019607843);
550
+ }
551
+ .panel-wrapper .date-list-wrapper {
552
+ display: flex;
553
+ height: 160px;
554
+ max-height: 160px;
555
+ padding: 0;
556
+ padding-bottom: 4px;
557
+ margin: 8px -10px 0 0;
558
+ overflow: auto;
559
+ }
560
+ .panel-wrapper .date-pick-tab {
561
+ padding-top: 12px;
562
+ border-top: 1px solid #eaebf0;
563
+ }
564
+ .panel-wrapper .date-pick-tab .bk-tab-header-item {
565
+ /* stylelint-disable-next-line declaration-no-important */
566
+ margin-right: 20px !important;
567
+ }
568
+ .panel-wrapper .time-zone-panel {
569
+ display: flex;
570
+ align-items: center;
571
+ height: 45px;
572
+ padding: 0 16px;
573
+ margin: 0 -16px;
574
+ color: #313238;
575
+ background: #fafbfd;
576
+ border-top: 1px solid #dcdee5;
577
+ }
578
+ .panel-wrapper .time-zone-panel .time-zone {
579
+ display: flex;
580
+ align-items: center;
581
+ margin: 0 8px;
582
+ }
583
+ .panel-wrapper .time-zone-panel .time-zone-area {
584
+ display: flex;
585
+ align-items: center;
586
+ margin-left: 8px;
587
+ color: #979ba5;
588
+ }
589
+ .panel-wrapper .time-zone-panel .time-zone-tag {
590
+ display: flex;
591
+ align-items: center;
592
+ justify-content: center;
593
+ width: 79px;
594
+ height: 20px;
595
+ color: #63656e;
596
+ border: 1px solid #dcdee5;
597
+ border-radius: 2px;
598
+ }
599
+ .panel-wrapper .time-zone-panel .time-zone-btn {
600
+ margin-left: auto;
601
+ }
602
+ .panel-wrapper .time-zone-picker {
603
+ margin: 8px 0;
604
+ }.__bk_date_picker__ {
605
+ box-sizing: border-box;
606
+ display: inline-flex;
607
+ align-items: center;
608
+ height: 32px;
609
+ padding: 0 4px;
610
+ font-size: 12px;
611
+ color: #63656e;
612
+ border: 1px solid #c4c6cc;
613
+ border-radius: 2px;
614
+ /* stylelint-disable-next-line no-descending-specificity */
615
+ }
616
+ .__bk_date_picker__ div::-webkit-scrollbar,
617
+ .__bk_date_picker__ ul::-webkit-scrollbar,
618
+ .__bk_date_picker__ section::-webkit-scrollbar,
619
+ .__bk_date_picker__ tbody::-webkit-scrollbar,
620
+ .__bk_date_picker__ article::-webkit-scrollbar {
621
+ width: 4px;
622
+ height: 4px;
623
+ }
624
+ .__bk_date_picker__ div::-webkit-scrollbar-thumb,
625
+ .__bk_date_picker__ ul::-webkit-scrollbar-thumb,
626
+ .__bk_date_picker__ section::-webkit-scrollbar-thumb,
627
+ .__bk_date_picker__ tbody::-webkit-scrollbar-thumb,
628
+ .__bk_date_picker__ article::-webkit-scrollbar-thumb {
629
+ background: #ddd;
630
+ border-radius: 20px;
631
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
632
+ }
633
+ .__bk_date_picker__ .date-icon {
634
+ display: flex;
635
+ align-items: center;
636
+ justify-content: center;
637
+ width: 24px;
638
+ height: 24px;
639
+ font-size: 20px;
640
+ font-weight: bold;
641
+ color: #989ca7;
642
+ background: #f5f7fa;
643
+ border-radius: 2px;
644
+ }
645
+ .__bk_date_picker__ .date-icon-left, .__bk_date_picker__ .date-icon-right {
646
+ display: inline-flex;
647
+ }
648
+ .__bk_date_picker__ .date-icon-left svg, .__bk_date_picker__ .date-icon-right svg {
649
+ /* stylelint-disable-next-line declaration-no-important */
650
+ width: 20px !important;
651
+ /* stylelint-disable-next-line declaration-no-important */
652
+ height: 20px !important;
653
+ }
654
+ .__bk_date_picker__ .date-icon:hover {
655
+ cursor: pointer;
656
+ background-color: #f0f1f5;
657
+ }
658
+ .__bk_date_picker__.is-simplicity {
659
+ border-color: transparent;
660
+ }
661
+ .__bk_date_picker__.is-simplicity .date-icon {
662
+ background-color: transparent;
663
+ }
664
+ .__bk_date_picker__.is-simplicity .date-icon:hover {
665
+ cursor: pointer;
666
+ background-color: #f0f1f5;
667
+ }
668
+ .__bk_date_picker__.is-disabled {
669
+ color: #c4c6cc;
670
+ cursor: not-allowed;
671
+ /* stylelint-disable-next-line no-descending-specificity */
672
+ }
673
+ .__bk_date_picker__.is-disabled .date-icon {
674
+ color: #c4c6cc;
675
+ pointer-events: none;
676
+ }
677
+ .__bk_date_picker__.is-disabled .date-content {
678
+ pointer-events: none;
679
+ cursor: not-allowed;
680
+ }
681
+ .__bk_date_picker__ .date-content {
682
+ display: flex;
683
+ align-items: center;
684
+ height: 24px;
685
+ padding: 0 6px;
686
+ margin: 0 4px;
687
+ user-select: none;
688
+ border-radius: 2px;
689
+ }
690
+ .__bk_date_picker__ .date-content-icon {
691
+ margin-right: 4px;
692
+ }
693
+ .__bk_date_picker__ .date-content-utc {
694
+ display: flex;
695
+ align-items: center;
696
+ margin-left: 4px;
697
+ font-weight: 700;
698
+ color: #ff9c01;
699
+ }
700
+ .__bk_date_picker__ .date-content:hover {
701
+ cursor: pointer;
702
+ background: #f5f7fa;
703
+ }
704
+ .__bk-date-picker-popover__ {
705
+ /* stylelint-disable-next-line declaration-no-important */
706
+ padding: 0 !important;
707
+ /* stylelint-disable-next-line declaration-no-important */
708
+ margin: 0 !important;
709
+ /* stylelint-disable-next-line declaration-no-important */
710
+ color: #63656e !important;
711
+ }
712
+ .__bk-date-picker-popover__ div::-webkit-scrollbar,
713
+ .__bk-date-picker-popover__ ul::-webkit-scrollbar,
714
+ .__bk-date-picker-popover__ section::-webkit-scrollbar,
715
+ .__bk-date-picker-popover__ tbody::-webkit-scrollbar,
716
+ .__bk-date-picker-popover__ article::-webkit-scrollbar {
717
+ width: 4px;
718
+ height: 4px;
719
+ }
720
+ .__bk-date-picker-popover__ div::-webkit-scrollbar-thumb,
721
+ .__bk-date-picker-popover__ ul::-webkit-scrollbar-thumb,
722
+ .__bk-date-picker-popover__ section::-webkit-scrollbar-thumb,
723
+ .__bk-date-picker-popover__ tbody::-webkit-scrollbar-thumb,
724
+ .__bk-date-picker-popover__ article::-webkit-scrollbar-thumb {
725
+ background: #ddd;
726
+ border-radius: 20px;
727
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
728
+ }
729
+ .__bk-date-picker-popover__.__bk-date-picker-baseline-popover__ {
730
+ /* stylelint-disable-next-line declaration-no-important */
731
+ overflow: inherit !important;
732
+ }
733
+ .__bk-date-picker-popover__.__bk-date-picker-baseline-popover__ .time-range-select-content {
734
+ transform: scale(1);
735
+ }
736
+ .__bk-date-picker-popover__.__date-picker-popover-specific__ {
737
+ position: absolute;
738
+ }
739
+ .__bk-date-picker-popover__ ul {
740
+ padding: 0;
741
+ margin: 0;
742
+ }
743
+ .__bk-date-picker-popover__ ul li {
744
+ list-style: none;
745
+ }
746
+ .__bk-date-picker-popover__ .bk-select-search-wrapper .icon-search::before {
747
+ /* stylelint-disable-next-line declaration-no-important */
748
+ content: "" !important;
749
+ }
750
+ .__bk-date-picker-popover__ .bk-pop-confirm {
751
+ /* stylelint-disable-next-line declaration-no-important */
752
+ margin: 20px 16px 16px !important;
753
+ }
754
+ .__date-tooltips__ {
755
+ display: flex;
756
+ flex-direction: column;
757
+ align-items: center;
758
+ justify-content: center;
759
+ max-width: 156px;
760
+ line-height: 20px;
761
+ }
762
+ .__date-tooltips__ div::-webkit-scrollbar,
763
+ .__date-tooltips__ ul::-webkit-scrollbar,
764
+ .__date-tooltips__ section::-webkit-scrollbar,
765
+ .__date-tooltips__ tbody::-webkit-scrollbar,
766
+ .__date-tooltips__ article::-webkit-scrollbar {
767
+ width: 4px;
768
+ height: 4px;
769
+ }
770
+ .__date-tooltips__ div::-webkit-scrollbar-thumb,
771
+ .__date-tooltips__ ul::-webkit-scrollbar-thumb,
772
+ .__date-tooltips__ section::-webkit-scrollbar-thumb,
773
+ .__date-tooltips__ tbody::-webkit-scrollbar-thumb,
774
+ .__date-tooltips__ article::-webkit-scrollbar-thumb {
775
+ background: #ddd;
776
+ border-radius: 20px;
777
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
778
+ }
779
+ .__date-tooltips__ .date-tooltips-timezone {
780
+ display: flex;
781
+ align-items: center;
782
+ justify-content: center;
783
+ width: 100%;
784
+ margin-top: 4px;
785
+ color: #ff9c01;
786
+ }
787
+ .__date-tooltips__ .date-tooltips-diff {
788
+ display: flex;
789
+ align-items: center;
790
+ justify-content: center;
791
+ padding: 0 4px;
792
+ margin-top: 4px;
793
+ color: white;
794
+ background: rgba(255, 255, 255, 0.12);
795
+ border-radius: 2px;
796
+ }