@jetbrains/ring-ui-built 7.0.78 → 7.0.80
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/components/_helpers/theme.js +90 -94
- package/components/alert/alert.js +0 -13
- package/components/alert-service/alert-service.js +0 -12
- package/components/auth/auth-core.js +1 -13
- package/components/auth/auth.js +1 -13
- package/components/auth/down-notification.js +0 -12
- package/components/auth/iframe-flow.js +1 -0
- package/components/auth/storage.js +1 -13
- package/components/auth-dialog/auth-dialog.js +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +1 -0
- package/components/avatar/fallback-avatar.js +78 -79
- package/components/avatar-stack/avatar-stack.js +1 -0
- package/components/clipboard/clipboard.js +1 -13
- package/components/collapse/collapse-content.js +2 -2
- package/components/collapse/collapse-control.js +34 -50
- package/components/collapse/collapse.js +2 -2
- package/components/confirm/confirm.js +1 -0
- package/components/confirm-service/confirm-service.js +1 -0
- package/components/date-picker/date-picker.js +1 -0
- package/components/date-picker/months.js +86 -100
- package/components/dialog/dialog.js +1 -0
- package/components/dropdown-menu/dropdown-menu.js +154 -238
- package/components/editable-heading/editable-heading.js +11 -11
- package/components/error-bubble/error-bubble.js +1 -0
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +0 -17
- package/components/global/use-event-callback.js +3 -2
- package/components/header/header.js +17 -17
- package/components/header/profile.js +1 -0
- package/components/header/smart-profile.js +13 -13
- package/components/list/list.js +9 -4
- package/components/login-dialog/login-dialog.js +1 -0
- package/components/login-dialog/service.js +1 -0
- package/components/old-browsers-message/old-browsers-message.d.ts +3 -0
- package/components/old-browsers-message/old-browsers-message.js +3 -0
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +1 -0
- package/components/popup/popup.js +49 -43
- package/components/popup-menu/popup-menu.js +1 -0
- package/components/query-assist/query-assist.js +1 -0
- package/components/select/select-popup.js +1 -0
- package/components/select/select.js +2 -1
- package/components/slider/slider.js +289 -366
- package/components/storage/storage-local.js +1 -13
- package/components/storage/storage.js +1 -13
- package/components/style.css +1 -1
- package/components/tabs/collapsible-more.js +12 -12
- package/components/tabs/collapsible-tabs.js +191 -205
- package/components/tabs/dumb-tabs.js +1 -0
- package/components/tabs/smart-tabs.js +1 -0
- package/components/tabs/tabs.js +1 -0
- package/components/tags-input/tags-input.js +1 -0
- package/components/upload/upload.js +31 -8
- package/components/user-agreement/service.js +11 -11
- package/components/user-agreement/user-agreement.js +1 -0
- package/components/user-card/card.js +5 -5
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.js +8 -8
- package/package.json +2 -2
|
@@ -59,68 +59,54 @@ function scrollSpeed(date) {
|
|
|
59
59
|
const scrollSchedule = scheduleRAF();
|
|
60
60
|
let dy = 0;
|
|
61
61
|
function Months(props) {
|
|
62
|
-
const $ = c(
|
|
63
|
-
if ($[0] !== "
|
|
64
|
-
for (let $i = 0; $i <
|
|
62
|
+
const $ = c(30);
|
|
63
|
+
if ($[0] !== "5d5fe78f7bda393a523d9472cfc721d7ae4d117fe8278fd6d3d9589b20c1969a") {
|
|
64
|
+
for (let $i = 0; $i < 30; $i += 1) {
|
|
65
65
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
66
66
|
}
|
|
67
|
-
$[0] = "
|
|
67
|
+
$[0] = "5d5fe78f7bda393a523d9472cfc721d7ae4d117fe8278fd6d3d9589b20c1969a";
|
|
68
68
|
}
|
|
69
69
|
const {
|
|
70
70
|
scrollDate
|
|
71
71
|
} = props;
|
|
72
|
-
let
|
|
72
|
+
let monthStart;
|
|
73
|
+
let months;
|
|
73
74
|
if ($[1] !== scrollDate) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
$[2] = t0;
|
|
77
|
-
} else {
|
|
78
|
-
t0 = $[2];
|
|
79
|
-
}
|
|
80
|
-
const monthDate = t0;
|
|
81
|
-
let t1;
|
|
82
|
-
if ($[3] !== monthDate) {
|
|
83
|
-
t1 = startOfMonth(monthDate);
|
|
84
|
-
$[3] = monthDate;
|
|
85
|
-
$[4] = t1;
|
|
86
|
-
} else {
|
|
87
|
-
t1 = $[4];
|
|
88
|
-
}
|
|
89
|
-
const monthStart = t1;
|
|
90
|
-
let result;
|
|
91
|
-
if ($[5] !== monthStart) {
|
|
75
|
+
const monthDate = scrollDate instanceof Date ? scrollDate : new Date(scrollDate);
|
|
76
|
+
monthStart = startOfMonth(monthDate);
|
|
92
77
|
let month = subMonths(monthStart, MONTHSBACK);
|
|
93
|
-
|
|
78
|
+
months = [month];
|
|
94
79
|
for (let i = 0; i < MONTHSBACK * DOUBLE; i++) {
|
|
95
80
|
month = addMonths(month, 1);
|
|
96
|
-
|
|
81
|
+
months.push(month);
|
|
97
82
|
}
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
83
|
+
$[1] = scrollDate;
|
|
84
|
+
$[2] = monthStart;
|
|
85
|
+
$[3] = months;
|
|
100
86
|
} else {
|
|
101
|
-
|
|
87
|
+
monthStart = $[2];
|
|
88
|
+
months = $[3];
|
|
102
89
|
}
|
|
103
|
-
const months = result;
|
|
104
90
|
let pxToDate;
|
|
105
|
-
let
|
|
106
|
-
if ($[
|
|
91
|
+
let t0;
|
|
92
|
+
if ($[4] !== monthStart || $[5] !== scrollDate) {
|
|
107
93
|
const currentSpeed = scrollSpeed(scrollDate);
|
|
108
94
|
pxToDate = linearFunction(0, Number(scrollDate), currentSpeed);
|
|
109
|
-
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
95
|
+
t0 = pxToDate.x(Number(monthStart));
|
|
96
|
+
$[4] = monthStart;
|
|
97
|
+
$[5] = scrollDate;
|
|
98
|
+
$[6] = pxToDate;
|
|
99
|
+
$[7] = t0;
|
|
114
100
|
} else {
|
|
115
|
-
pxToDate = $[
|
|
116
|
-
|
|
101
|
+
pxToDate = $[6];
|
|
102
|
+
t0 = $[7];
|
|
117
103
|
}
|
|
118
|
-
const offset =
|
|
104
|
+
const offset = t0;
|
|
119
105
|
const bottomOffset = monthHeight(scrollDate) + offset;
|
|
120
106
|
const componentRef = useRef(null);
|
|
121
|
-
let
|
|
122
|
-
if ($[
|
|
123
|
-
|
|
107
|
+
let t1;
|
|
108
|
+
if ($[8] !== bottomOffset || $[9] !== months || $[10] !== offset || $[11] !== props || $[12] !== pxToDate) {
|
|
109
|
+
t1 = e => {
|
|
124
110
|
e.preventDefault();
|
|
125
111
|
dy = dy + e.deltaY;
|
|
126
112
|
scrollSchedule(() => {
|
|
@@ -138,20 +124,20 @@ function Months(props) {
|
|
|
138
124
|
dy = 0;
|
|
139
125
|
});
|
|
140
126
|
};
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
127
|
+
$[8] = bottomOffset;
|
|
128
|
+
$[9] = months;
|
|
129
|
+
$[10] = offset;
|
|
130
|
+
$[11] = props;
|
|
131
|
+
$[12] = pxToDate;
|
|
132
|
+
$[13] = t1;
|
|
147
133
|
} else {
|
|
148
|
-
|
|
134
|
+
t1 = $[13];
|
|
149
135
|
}
|
|
150
|
-
const handleWheel = useEventCallback(
|
|
151
|
-
let
|
|
152
|
-
let
|
|
153
|
-
if ($[
|
|
154
|
-
|
|
136
|
+
const handleWheel = useEventCallback(t1);
|
|
137
|
+
let t2;
|
|
138
|
+
let t3;
|
|
139
|
+
if ($[14] !== handleWheel) {
|
|
140
|
+
t2 = () => {
|
|
155
141
|
const current = componentRef.current;
|
|
156
142
|
if (current) {
|
|
157
143
|
current.addEventListener("wheel", handleWheel, {
|
|
@@ -164,76 +150,76 @@ function Months(props) {
|
|
|
164
150
|
}
|
|
165
151
|
};
|
|
166
152
|
};
|
|
167
|
-
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
153
|
+
t3 = [handleWheel];
|
|
154
|
+
$[14] = handleWheel;
|
|
155
|
+
$[15] = t2;
|
|
156
|
+
$[16] = t3;
|
|
171
157
|
} else {
|
|
172
|
-
|
|
173
|
-
|
|
158
|
+
t2 = $[15];
|
|
159
|
+
t3 = $[16];
|
|
174
160
|
}
|
|
175
|
-
useEffect(
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
if ($[
|
|
179
|
-
|
|
180
|
-
top:
|
|
161
|
+
useEffect(t2, t3);
|
|
162
|
+
const t4 = Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset);
|
|
163
|
+
let t5;
|
|
164
|
+
if ($[17] !== t4) {
|
|
165
|
+
t5 = {
|
|
166
|
+
top: t4
|
|
181
167
|
};
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
168
|
+
$[17] = t4;
|
|
169
|
+
$[18] = t5;
|
|
184
170
|
} else {
|
|
185
|
-
|
|
171
|
+
t5 = $[18];
|
|
186
172
|
}
|
|
187
|
-
let
|
|
188
|
-
if ($[
|
|
189
|
-
|
|
173
|
+
let t6;
|
|
174
|
+
if ($[19] !== months || $[20] !== props) {
|
|
175
|
+
t6 = months.map(date_0 => /*#__PURE__*/createElement(Month, {
|
|
190
176
|
...props,
|
|
191
177
|
month: date_0,
|
|
192
178
|
key: +date_0
|
|
193
179
|
}));
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
180
|
+
$[19] = months;
|
|
181
|
+
$[20] = props;
|
|
182
|
+
$[21] = t6;
|
|
197
183
|
} else {
|
|
198
|
-
|
|
184
|
+
t6 = $[21];
|
|
199
185
|
}
|
|
200
|
-
let
|
|
201
|
-
if ($[
|
|
202
|
-
|
|
203
|
-
style:
|
|
186
|
+
let t7;
|
|
187
|
+
if ($[22] !== t5 || $[23] !== t6) {
|
|
188
|
+
t7 = /*#__PURE__*/jsx("div", {
|
|
189
|
+
style: t5,
|
|
204
190
|
className: styles.days,
|
|
205
|
-
children:
|
|
191
|
+
children: t6
|
|
206
192
|
});
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
193
|
+
$[22] = t5;
|
|
194
|
+
$[23] = t6;
|
|
195
|
+
$[24] = t7;
|
|
210
196
|
} else {
|
|
211
|
-
|
|
197
|
+
t7 = $[24];
|
|
212
198
|
}
|
|
213
|
-
let
|
|
214
|
-
if ($[
|
|
215
|
-
|
|
199
|
+
let t8;
|
|
200
|
+
if ($[25] !== props) {
|
|
201
|
+
t8 = /*#__PURE__*/jsx(MonthNames, {
|
|
216
202
|
...props
|
|
217
203
|
});
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
204
|
+
$[25] = props;
|
|
205
|
+
$[26] = t8;
|
|
220
206
|
} else {
|
|
221
|
-
|
|
207
|
+
t8 = $[26];
|
|
222
208
|
}
|
|
223
|
-
let
|
|
224
|
-
if ($[
|
|
225
|
-
|
|
209
|
+
let t9;
|
|
210
|
+
if ($[27] !== t7 || $[28] !== t8) {
|
|
211
|
+
t9 = /*#__PURE__*/jsxs("div", {
|
|
226
212
|
className: styles.months,
|
|
227
213
|
ref: componentRef,
|
|
228
|
-
children: [
|
|
214
|
+
children: [t7, t8]
|
|
229
215
|
});
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
216
|
+
$[27] = t7;
|
|
217
|
+
$[28] = t8;
|
|
218
|
+
$[29] = t9;
|
|
233
219
|
} else {
|
|
234
|
-
|
|
220
|
+
t9 = $[29];
|
|
235
221
|
}
|
|
236
|
-
return
|
|
222
|
+
return t9;
|
|
237
223
|
}
|
|
238
224
|
|
|
239
225
|
export { Months as default };
|