@factorialco/f0-react 1.287.0 → 1.289.0
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/dist/experimental.d.ts +132 -48
- package/dist/experimental.js +8117 -8269
- package/dist/f0.d.ts +97 -37
- package/dist/f0.js +552 -959
- package/dist/{hooks-DOxjzQyl.js → hooks-B2MvGPG3.js} +48871 -39340
- package/dist/i18n-provider-defaults.d.ts +509 -0
- package/dist/i18n-provider-defaults.js +420 -0
- package/icons/app/{EqualAproximately.d.ts → ClockPlus.d.ts} +1 -1
- package/icons/app/ClockPlus.d.ts.map +1 -0
- package/icons/app/ClockPlus.js +5 -0
- package/icons/app/EqualApproximately.d.ts +4 -0
- package/icons/app/EqualApproximately.d.ts.map +1 -0
- package/icons/app/Sleep.d.ts +4 -0
- package/icons/app/Sleep.d.ts.map +1 -0
- package/icons/app/Sleep.js +5 -0
- package/icons/app/index.d.ts +3 -1
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +3 -1
- package/package.json +2 -2
- package/icons/app/EqualAproximately.d.ts.map +0 -1
- /package/icons/app/{EqualAproximately.js → EqualApproximately.js} +0 -0
package/dist/f0.js
CHANGED
|
@@ -1,456 +1,49 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { ba as
|
|
3
|
-
import { jsx as g, jsxs as R, Fragment as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
1
|
+
import { S as Ge, a as Kt, f as Ce, L as J, b as Vt, A as qt, i as ae, c as tt, d as it, E as Xt, g as he, e as Yt, h as Jt, C as Zt, j as Qt, k as V, l as st, u as ei, G as ti, m as ii, n as $e, o as si, p as rt, q as ri, B as nt, X as ot, Y as ze, r as ni, s as at, t as oi, v as ai, w as li, x as hi, y as di, z as ci, D as ui, F as fi, H as Ue, I as gi, J as Z, K as Ne, M as pi, N as mi, O as vi, P as lt, Q as L, R as F, T as yi, U as bi, V as xi, W as _i, Z as wi, _ as Ei, $ as Ci, a0 as ht, a1 as Ni, a2 as de, a3 as dt, a4 as ct, a5 as Ri, a6 as ut, a7 as ft, a8 as gt, a9 as pt, aa as zi, ab as Di, ac as mt, ad as Pi, ae as Si, af as vt, ag as ki, ah as yt, ai as Oi, aj as Ai, ak as Ti, al as Li, am as Mi, an as Hi, ao as Bi, ap as Fi, aq as bt, ar as q, as as xt, at as Ii, au as Wi, av as je, aw as Gi, ax as _t, ay as $i, az as Ui, aA as ji, aB as Ki, aC as Vi, aD as qi, aE as Xi, aF as Yi, aG as Ji, aH as Zi, aI as Qi, aJ as es } from "./hooks-B2MvGPG3.js";
|
|
2
|
+
import { ba as Fr, bn as Ir, bw as Wr, aK as Gr, aL as $r, aM as Ur, aN as jr, aO as Kr, aP as Vr, aQ as qr, aR as Xr, aT as Yr, aU as Jr, aV as Zr, aW as Qr, aX as en, aY as tn, aZ as sn, bs as rn, a$ as nn, b1 as on, b2 as an, b3 as ln, b4 as hn, b7 as dn, b8 as cn, b9 as un, bc as fn, b0 as gn, bb as pn, b6 as mn, bt as vn, bm as yn, bh as bn, bk as xn, bg as _n, bx as wn, bf as En, be as Cn, aS as Nn, a_ as Rn, b5 as zn, bd as Dn, bi as Pn, bo as Sn, bp as kn, bq as On, by as An, bj as Tn, br as Ln, bv as Mn, bl as Hn, bu as Bn } from "./hooks-B2MvGPG3.js";
|
|
3
|
+
import { jsx as g, jsxs as R, Fragment as xe } from "react/jsx-runtime";
|
|
4
|
+
import * as ke from "react";
|
|
5
|
+
import P, { PureComponent as ts, useState as M, forwardRef as U, createElement as Ke, useRef as Q, useImperativeHandle as wt, Children as is, createContext as _e, useContext as Et, useCallback as K, useEffect as ce, useLayoutEffect as Ve, useMemo as Ct } from "react";
|
|
6
6
|
import { createPortal as ss } from "react-dom";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
ae: "United Arab Emirates",
|
|
10
|
-
af: "Afghanistan",
|
|
11
|
-
ag: "Antigua and Barbuda",
|
|
12
|
-
ai: "Anguilla",
|
|
13
|
-
al: "Albania",
|
|
14
|
-
am: "Armenia",
|
|
15
|
-
ao: "Angola",
|
|
16
|
-
ar: "Argentina",
|
|
17
|
-
as: "American Samoa",
|
|
18
|
-
at: "Austria",
|
|
19
|
-
au: "Australia",
|
|
20
|
-
aw: "Aruba",
|
|
21
|
-
ax: "Åland Islands",
|
|
22
|
-
az: "Azerbaijan",
|
|
23
|
-
ba: "Bosnia and Herzegovina",
|
|
24
|
-
bb: "Barbados",
|
|
25
|
-
bd: "Bangladesh",
|
|
26
|
-
be: "Belgium",
|
|
27
|
-
bf: "Burkina Faso",
|
|
28
|
-
bg: "Bulgaria",
|
|
29
|
-
bh: "Bahrain",
|
|
30
|
-
bi: "Burundi",
|
|
31
|
-
bj: "Benin",
|
|
32
|
-
bm: "Bermuda",
|
|
33
|
-
bo: "Bolivia",
|
|
34
|
-
br: "Brazil",
|
|
35
|
-
bt: "Bhutan",
|
|
36
|
-
bw: "Botswana",
|
|
37
|
-
by: "Belarus",
|
|
38
|
-
bz: "Belize",
|
|
39
|
-
ca: "Canada",
|
|
40
|
-
cd: "Democratic Republic of the Congo",
|
|
41
|
-
cf: "Central African Republic",
|
|
42
|
-
cg: "Republic of the Congo",
|
|
43
|
-
ch: "Switzerland",
|
|
44
|
-
ci: "Côte d'Ivoire",
|
|
45
|
-
ck: "Cook Islands",
|
|
46
|
-
cl: "Chile",
|
|
47
|
-
cm: "Cameroon",
|
|
48
|
-
cn: "China",
|
|
49
|
-
co: "Colombia",
|
|
50
|
-
cr: "Costa Rica",
|
|
51
|
-
cu: "Cuba",
|
|
52
|
-
cv: "Cape Verde",
|
|
53
|
-
cw: "Curaçao",
|
|
54
|
-
cy: "Cyprus",
|
|
55
|
-
cz: "Czech Republic",
|
|
56
|
-
de: "Germany",
|
|
57
|
-
dj: "Djibouti",
|
|
58
|
-
dk: "Denmark",
|
|
59
|
-
dm: "Dominica",
|
|
60
|
-
do: "Dominican Republic",
|
|
61
|
-
dz: "Algeria",
|
|
62
|
-
ec: "Ecuador",
|
|
63
|
-
ee: "Estonia",
|
|
64
|
-
eg: "Egypt",
|
|
65
|
-
er: "Eritrea",
|
|
66
|
-
es: "Spain",
|
|
67
|
-
et: "Ethiopia",
|
|
68
|
-
fi: "Finland",
|
|
69
|
-
fj: "Fiji",
|
|
70
|
-
fk: "Falkland Islands",
|
|
71
|
-
fm: "Micronesia",
|
|
72
|
-
fo: "Faroe Islands",
|
|
73
|
-
fr: "France",
|
|
74
|
-
ga: "Gabon",
|
|
75
|
-
gb: "United Kingdom",
|
|
76
|
-
gd: "Grenada",
|
|
77
|
-
ge: "Georgia",
|
|
78
|
-
gg: "Guernsey",
|
|
79
|
-
gh: "Ghana",
|
|
80
|
-
gi: "Gibraltar",
|
|
81
|
-
gl: "Greenland",
|
|
82
|
-
gm: "Gambia",
|
|
83
|
-
gn: "Guinea",
|
|
84
|
-
gq: "Equatorial Guinea",
|
|
85
|
-
gr: "Greece",
|
|
86
|
-
gt: "Guatemala",
|
|
87
|
-
gu: "Guam",
|
|
88
|
-
gw: "Guinea-Bissau",
|
|
89
|
-
hk: "Hong Kong",
|
|
90
|
-
hn: "Honduras",
|
|
91
|
-
hr: "Croatia",
|
|
92
|
-
ht: "Haiti",
|
|
93
|
-
hu: "Hungary",
|
|
94
|
-
id: "Indonesia",
|
|
95
|
-
ie: "Ireland",
|
|
96
|
-
il: "Israel",
|
|
97
|
-
im: "Isle of Man",
|
|
98
|
-
in: "India",
|
|
99
|
-
io: "British Indian Ocean Territory",
|
|
100
|
-
iq: "Iraq",
|
|
101
|
-
ir: "Iran",
|
|
102
|
-
is: "Iceland",
|
|
103
|
-
it: "Italy",
|
|
104
|
-
je: "Jersey",
|
|
105
|
-
jm: "Jamaica",
|
|
106
|
-
jo: "Jordan",
|
|
107
|
-
jp: "Japan",
|
|
108
|
-
ke: "Kenya"
|
|
109
|
-
}, ur = {
|
|
110
|
-
countries: rs,
|
|
111
|
-
approvals: {
|
|
112
|
-
history: "Approval history",
|
|
113
|
-
statuses: {
|
|
114
|
-
waiting: "Waiting",
|
|
115
|
-
pending: "Pending",
|
|
116
|
-
approved: "Approved",
|
|
117
|
-
rejected: "Rejected"
|
|
118
|
-
},
|
|
119
|
-
requiredNumbers: {
|
|
120
|
-
one: "One approval required",
|
|
121
|
-
other: "{{count}} approvals required"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
navigation: {
|
|
125
|
-
sidebar: {
|
|
126
|
-
label: "Main navigation",
|
|
127
|
-
companySelector: {
|
|
128
|
-
label: "Select a company",
|
|
129
|
-
placeholder: "Select a company"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
previous: "Previous",
|
|
133
|
-
next: "Next"
|
|
134
|
-
},
|
|
135
|
-
inputs: {
|
|
136
|
-
password: {
|
|
137
|
-
show: "Show password",
|
|
138
|
-
hide: "Hide password"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
actions: {
|
|
142
|
-
add: "Add",
|
|
143
|
-
edit: "Edit",
|
|
144
|
-
save: "Save",
|
|
145
|
-
send: "Send",
|
|
146
|
-
cancel: "Cancel",
|
|
147
|
-
copy: "Copy",
|
|
148
|
-
close: "Close",
|
|
149
|
-
showAll: "Show all",
|
|
150
|
-
showLess: "Show less",
|
|
151
|
-
skipToContent: "Skip to content",
|
|
152
|
-
view: "View",
|
|
153
|
-
unselect: "Unselect",
|
|
154
|
-
search: "Search",
|
|
155
|
-
clear: "Clear",
|
|
156
|
-
more: "More",
|
|
157
|
-
moveUp: "Move up",
|
|
158
|
-
moveDown: "Move down",
|
|
159
|
-
thumbsUp: "Like",
|
|
160
|
-
thumbsDown: "Dislike",
|
|
161
|
-
other: "Other actions",
|
|
162
|
-
toggle: "Toggle",
|
|
163
|
-
toggleDropdownMenu: "Toggle dropdown menu"
|
|
164
|
-
},
|
|
165
|
-
status: {
|
|
166
|
-
selected: {
|
|
167
|
-
singular: "Selected",
|
|
168
|
-
plural: "Selected"
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
filters: {
|
|
172
|
-
label: "Filters",
|
|
173
|
-
applyFilters: "Apply filters",
|
|
174
|
-
applySelection: "Apply selection",
|
|
175
|
-
cancel: "Cancel",
|
|
176
|
-
failedToLoadOptions: "Failed to load options",
|
|
177
|
-
retry: "Retry",
|
|
178
|
-
number: {
|
|
179
|
-
value: "Value",
|
|
180
|
-
equal: "Equal to",
|
|
181
|
-
equalTo: "Equal to {{value}}",
|
|
182
|
-
lessOrEqual: "Less or equal to",
|
|
183
|
-
greaterOrEqual: "Greater or equal to",
|
|
184
|
-
equalShort: "= {{value}}",
|
|
185
|
-
greaterThanOrEqualShort: ">= {{value}}",
|
|
186
|
-
lessThanOrEqualShort: "<= {{value}}",
|
|
187
|
-
rangeTitle: "Use range",
|
|
188
|
-
range: "Between {{min}} and {{max}}"
|
|
189
|
-
},
|
|
190
|
-
selectAll: "Select all",
|
|
191
|
-
clear: "Clear"
|
|
192
|
-
},
|
|
193
|
-
toc: {
|
|
194
|
-
search: "Search..."
|
|
195
|
-
},
|
|
196
|
-
collections: {
|
|
197
|
-
sorting: {
|
|
198
|
-
noSorting: "No sorting",
|
|
199
|
-
toggleDirection: "Toggle sorting direction",
|
|
200
|
-
sortBy: "Sort by"
|
|
201
|
-
},
|
|
202
|
-
grouping: {
|
|
203
|
-
noGrouping: "No grouping",
|
|
204
|
-
groupBy: "Group by",
|
|
205
|
-
toggleDirection: "Toggle direction"
|
|
206
|
-
},
|
|
207
|
-
actions: {
|
|
208
|
-
actions: "Actions"
|
|
209
|
-
},
|
|
210
|
-
visualizations: {
|
|
211
|
-
table: "Table view",
|
|
212
|
-
card: "Card view",
|
|
213
|
-
list: "List view",
|
|
214
|
-
kanban: "Kanban view",
|
|
215
|
-
pagination: {
|
|
216
|
-
of: "of"
|
|
217
|
-
},
|
|
218
|
-
settings: "{{visualizationName}} settings",
|
|
219
|
-
reset: "Reset to default"
|
|
220
|
-
},
|
|
221
|
-
table: {
|
|
222
|
-
settings: {
|
|
223
|
-
showAllColumns: "Show all",
|
|
224
|
-
hideAllColumns: "Hide all"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
itemsCount: "items",
|
|
228
|
-
emptyStates: {
|
|
229
|
-
noData: {
|
|
230
|
-
title: "No data",
|
|
231
|
-
description: "No data available"
|
|
232
|
-
},
|
|
233
|
-
noResults: {
|
|
234
|
-
title: "No results",
|
|
235
|
-
description: "No results found try another search or clear the filters",
|
|
236
|
-
clearFilters: "Clear filters"
|
|
237
|
-
},
|
|
238
|
-
error: {
|
|
239
|
-
title: "Error",
|
|
240
|
-
description: "An error occurred while loading the data",
|
|
241
|
-
retry: "Retry"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
summaries: {
|
|
245
|
-
types: {
|
|
246
|
-
sum: "sum"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
shortcut: "Shortcut",
|
|
251
|
-
date: {
|
|
252
|
-
from: "From",
|
|
253
|
-
to: "To",
|
|
254
|
-
none: "None",
|
|
255
|
-
date: "Date",
|
|
256
|
-
custom: "Custom period",
|
|
257
|
-
selectDate: "Select Date",
|
|
258
|
-
compareTo: "Compare to",
|
|
259
|
-
presets: {
|
|
260
|
-
last7Days: "Last 7 days",
|
|
261
|
-
last30Days: "Last 30 days",
|
|
262
|
-
last3Months: "Last 3 months",
|
|
263
|
-
last6Months: "Last 6 months",
|
|
264
|
-
lastYear: "Last year",
|
|
265
|
-
last3Years: "Last 3 years",
|
|
266
|
-
last100Years: "Last 100 years"
|
|
267
|
-
},
|
|
268
|
-
range: "Range",
|
|
269
|
-
selectedBy: "Selected by",
|
|
270
|
-
groups: {
|
|
271
|
-
today: "Today",
|
|
272
|
-
yesterday: "Yesterday",
|
|
273
|
-
lastWeek: "Last week",
|
|
274
|
-
lastMonth: "Last month",
|
|
275
|
-
other: "Other"
|
|
276
|
-
},
|
|
277
|
-
granularities: {
|
|
278
|
-
day: {
|
|
279
|
-
currentDate: "Today",
|
|
280
|
-
label: "Day"
|
|
281
|
-
},
|
|
282
|
-
week: {
|
|
283
|
-
currentDate: "This week",
|
|
284
|
-
label: "Week",
|
|
285
|
-
long: "Week of {{day}} {{month}} {{year}}",
|
|
286
|
-
longSingular: "Week of {{date}}",
|
|
287
|
-
longPlural: "Weeks of {{date}}"
|
|
288
|
-
},
|
|
289
|
-
month: {
|
|
290
|
-
currentDate: "This month",
|
|
291
|
-
label: "Month"
|
|
292
|
-
},
|
|
293
|
-
quarter: {
|
|
294
|
-
currentDate: "This quarter",
|
|
295
|
-
label: "Quarter"
|
|
296
|
-
},
|
|
297
|
-
halfyear: {
|
|
298
|
-
currentDate: "This half year",
|
|
299
|
-
label: "Half year"
|
|
300
|
-
},
|
|
301
|
-
year: {
|
|
302
|
-
currentDate: "This year",
|
|
303
|
-
label: "Year"
|
|
304
|
-
},
|
|
305
|
-
range: {
|
|
306
|
-
currentDate: "Today",
|
|
307
|
-
label: "Range"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
month: {
|
|
311
|
-
january: "January",
|
|
312
|
-
february: "February",
|
|
313
|
-
march: "March",
|
|
314
|
-
april: "April",
|
|
315
|
-
may: "May",
|
|
316
|
-
june: "June",
|
|
317
|
-
july: "July",
|
|
318
|
-
august: "August",
|
|
319
|
-
september: "September",
|
|
320
|
-
october: "October",
|
|
321
|
-
november: "November",
|
|
322
|
-
december: "December"
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
favorites: {
|
|
326
|
-
favorites: "Favorites",
|
|
327
|
-
remove: "Remove favorite"
|
|
328
|
-
},
|
|
329
|
-
notifications: "Notifications",
|
|
330
|
-
ai: {
|
|
331
|
-
openChat: "Open Chat with One AI",
|
|
332
|
-
closeChat: "Close Chat with One AI",
|
|
333
|
-
startNewChat: "Start new chat",
|
|
334
|
-
scrollToBottom: "Scroll to bottom",
|
|
335
|
-
welcome: "Ask or create with One",
|
|
336
|
-
defaultInitialMessage: "How can I help you today?",
|
|
337
|
-
inputPlaceholder: "Ask about time, people, or company info…",
|
|
338
|
-
stopAnswerGeneration: "Stop generating",
|
|
339
|
-
sendMessage: "Send message",
|
|
340
|
-
thoughtsGroupTitle: "Reflection",
|
|
341
|
-
resourcesGroupTitle: "Resources",
|
|
342
|
-
thinking: "Thinking...",
|
|
343
|
-
feedbackModal: {
|
|
344
|
-
positive: {
|
|
345
|
-
title: "What did you like about this response?",
|
|
346
|
-
label: "Your feedback helps us make Factorial AI better",
|
|
347
|
-
placeholder: "Share what worked well"
|
|
348
|
-
},
|
|
349
|
-
negative: {
|
|
350
|
-
title: "What could have been better?",
|
|
351
|
-
label: "Your feedback helps us improve future answers",
|
|
352
|
-
placeholder: "Share what didn’t work"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
select: {
|
|
357
|
-
noResults: "No results found",
|
|
358
|
-
loadingMore: "Loading..."
|
|
359
|
-
},
|
|
360
|
-
numberInput: {
|
|
361
|
-
between: "It should be between {{min}} and {{max}}",
|
|
362
|
-
greaterThan: "It should be greater than {{min}}",
|
|
363
|
-
lessThan: "It should be less than {{max}}"
|
|
364
|
-
},
|
|
365
|
-
coCreationForm: {
|
|
366
|
-
actions: {
|
|
367
|
-
actions: "Actions",
|
|
368
|
-
duplicateQuestion: "Duplicate question",
|
|
369
|
-
deleteQuestion: "Delete question",
|
|
370
|
-
duplicateSection: "Duplicate section",
|
|
371
|
-
deleteSection: "Delete section"
|
|
372
|
-
},
|
|
373
|
-
questionTypes: {
|
|
374
|
-
section: "Section",
|
|
375
|
-
rating: "Rating",
|
|
376
|
-
multipleChoice: "Multiple choice",
|
|
377
|
-
singleChoice: "Single choice",
|
|
378
|
-
text: "Text",
|
|
379
|
-
longText: "Long text",
|
|
380
|
-
numeric: "Numeric",
|
|
381
|
-
link: "Link",
|
|
382
|
-
date: "Date"
|
|
383
|
-
},
|
|
384
|
-
selectQuestion: {
|
|
385
|
-
addOption: "Add option",
|
|
386
|
-
newOption: "New option {{number}}",
|
|
387
|
-
markAsCorrect: "Mark as correct",
|
|
388
|
-
remove: "Remove",
|
|
389
|
-
correct: "Correct",
|
|
390
|
-
optionPlaceholder: "Type anything you want here..."
|
|
391
|
-
},
|
|
392
|
-
answer: {
|
|
393
|
-
label: "Answer",
|
|
394
|
-
placeholder: "Respondent's answer"
|
|
395
|
-
},
|
|
396
|
-
labels: {
|
|
397
|
-
endOfSection: "End of section",
|
|
398
|
-
title: "Title",
|
|
399
|
-
titlePlaceholder: "Question title",
|
|
400
|
-
description: "Description",
|
|
401
|
-
questionDescriptionPlaceholder: "Describe the question in a few words",
|
|
402
|
-
sectionDescriptionPlaceholder: "Describe the section in a few words",
|
|
403
|
-
required: "Required",
|
|
404
|
-
questionType: "Question type",
|
|
405
|
-
questionOptions: "Question options",
|
|
406
|
-
actions: "Actions",
|
|
407
|
-
sectionTitlePlaceholder: "Section title"
|
|
408
|
-
},
|
|
409
|
-
defaults: {
|
|
410
|
-
newSection: "New Section",
|
|
411
|
-
newQuestion: "New Question",
|
|
412
|
-
newQuestionDescription: "New question description"
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}, fr = [
|
|
7
|
+
import { defaultTranslations as In } from "./i18n-provider-defaults.js";
|
|
8
|
+
import './f0.css';const cr = [
|
|
416
9
|
"person",
|
|
417
10
|
"team",
|
|
418
11
|
"company",
|
|
419
12
|
"file",
|
|
420
13
|
"flag"
|
|
421
14
|
];
|
|
422
|
-
function
|
|
15
|
+
function X(a) {
|
|
423
16
|
"@babel/helpers - typeof";
|
|
424
|
-
return
|
|
17
|
+
return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
425
18
|
return typeof e;
|
|
426
19
|
} : function(e) {
|
|
427
20
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
428
|
-
},
|
|
21
|
+
}, X(a);
|
|
429
22
|
}
|
|
430
|
-
function
|
|
23
|
+
function rs(a, e) {
|
|
431
24
|
if (!(a instanceof e))
|
|
432
25
|
throw new TypeError("Cannot call a class as a function");
|
|
433
26
|
}
|
|
434
|
-
function
|
|
27
|
+
function ns(a, e) {
|
|
435
28
|
for (var t = 0; t < e.length; t++) {
|
|
436
29
|
var i = e[t];
|
|
437
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
30
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, zt(i.key), i);
|
|
438
31
|
}
|
|
439
32
|
}
|
|
440
|
-
function
|
|
441
|
-
return e &&
|
|
33
|
+
function os(a, e, t) {
|
|
34
|
+
return e && ns(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
442
35
|
}
|
|
443
|
-
function
|
|
444
|
-
return e = ue(e),
|
|
36
|
+
function as(a, e, t) {
|
|
37
|
+
return e = ue(e), ls(a, Nt() ? Reflect.construct(e, t || [], ue(a).constructor) : e.apply(a, t));
|
|
445
38
|
}
|
|
446
|
-
function
|
|
447
|
-
if (e && (
|
|
39
|
+
function ls(a, e) {
|
|
40
|
+
if (e && (X(e) === "object" || typeof e == "function"))
|
|
448
41
|
return e;
|
|
449
42
|
if (e !== void 0)
|
|
450
43
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
451
|
-
return
|
|
44
|
+
return hs(a);
|
|
452
45
|
}
|
|
453
|
-
function
|
|
46
|
+
function hs(a) {
|
|
454
47
|
if (a === void 0)
|
|
455
48
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
456
49
|
return a;
|
|
@@ -470,52 +63,52 @@ function ue(a) {
|
|
|
470
63
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
471
64
|
}, ue(a);
|
|
472
65
|
}
|
|
473
|
-
function
|
|
66
|
+
function ds(a, e) {
|
|
474
67
|
if (typeof e != "function" && e !== null)
|
|
475
68
|
throw new TypeError("Super expression must either be null or a function");
|
|
476
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
69
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && De(a, e);
|
|
477
70
|
}
|
|
478
|
-
function
|
|
479
|
-
return
|
|
71
|
+
function De(a, e) {
|
|
72
|
+
return De = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
480
73
|
return i.__proto__ = s, i;
|
|
481
|
-
},
|
|
74
|
+
}, De(a, e);
|
|
482
75
|
}
|
|
483
76
|
function Rt(a, e, t) {
|
|
484
|
-
return e =
|
|
77
|
+
return e = zt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
485
78
|
}
|
|
486
|
-
function
|
|
487
|
-
var e =
|
|
488
|
-
return
|
|
79
|
+
function zt(a) {
|
|
80
|
+
var e = cs(a, "string");
|
|
81
|
+
return X(e) == "symbol" ? e : e + "";
|
|
489
82
|
}
|
|
490
|
-
function
|
|
491
|
-
if (
|
|
83
|
+
function cs(a, e) {
|
|
84
|
+
if (X(a) != "object" || !a) return a;
|
|
492
85
|
var t = a[Symbol.toPrimitive];
|
|
493
86
|
if (t !== void 0) {
|
|
494
87
|
var i = t.call(a, e);
|
|
495
|
-
if (
|
|
88
|
+
if (X(i) != "object") return i;
|
|
496
89
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
497
90
|
}
|
|
498
91
|
return String(a);
|
|
499
92
|
}
|
|
500
|
-
var
|
|
93
|
+
var we = /* @__PURE__ */ function(a) {
|
|
501
94
|
function e() {
|
|
502
|
-
return
|
|
95
|
+
return rs(this, e), as(this, e, arguments);
|
|
503
96
|
}
|
|
504
|
-
return
|
|
97
|
+
return ds(e, a), os(e, [{
|
|
505
98
|
key: "render",
|
|
506
99
|
value: function() {
|
|
507
100
|
return null;
|
|
508
101
|
}
|
|
509
102
|
}]);
|
|
510
|
-
}(
|
|
511
|
-
Rt(
|
|
512
|
-
Rt(
|
|
103
|
+
}(P.Component);
|
|
104
|
+
Rt(we, "displayName", "ZAxis");
|
|
105
|
+
Rt(we, "defaultProps", {
|
|
513
106
|
zAxisId: 0,
|
|
514
107
|
range: [64, 64],
|
|
515
108
|
scale: "auto",
|
|
516
109
|
type: "number"
|
|
517
110
|
});
|
|
518
|
-
var
|
|
111
|
+
var us = ["option", "isActive"];
|
|
519
112
|
function ee() {
|
|
520
113
|
return ee = Object.assign ? Object.assign.bind() : function(a) {
|
|
521
114
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -526,9 +119,9 @@ function ee() {
|
|
|
526
119
|
return a;
|
|
527
120
|
}, ee.apply(this, arguments);
|
|
528
121
|
}
|
|
529
|
-
function
|
|
122
|
+
function fs(a, e) {
|
|
530
123
|
if (a == null) return {};
|
|
531
|
-
var t =
|
|
124
|
+
var t = gs(a, e), i, s;
|
|
532
125
|
if (Object.getOwnPropertySymbols) {
|
|
533
126
|
var r = Object.getOwnPropertySymbols(a);
|
|
534
127
|
for (s = 0; s < r.length; s++)
|
|
@@ -536,7 +129,7 @@ function gs(a, e) {
|
|
|
536
129
|
}
|
|
537
130
|
return t;
|
|
538
131
|
}
|
|
539
|
-
function
|
|
132
|
+
function gs(a, e) {
|
|
540
133
|
if (a == null) return {};
|
|
541
134
|
var t = {};
|
|
542
135
|
for (var i in a)
|
|
@@ -546,27 +139,27 @@ function ps(a, e) {
|
|
|
546
139
|
}
|
|
547
140
|
return t;
|
|
548
141
|
}
|
|
549
|
-
function
|
|
550
|
-
var e = a.option, t = a.isActive, i =
|
|
551
|
-
return typeof e == "string" ? /* @__PURE__ */
|
|
552
|
-
option: /* @__PURE__ */
|
|
142
|
+
function ps(a) {
|
|
143
|
+
var e = a.option, t = a.isActive, i = fs(a, us);
|
|
144
|
+
return typeof e == "string" ? /* @__PURE__ */ P.createElement(Ge, ee({
|
|
145
|
+
option: /* @__PURE__ */ P.createElement(Kt, ee({
|
|
553
146
|
type: e
|
|
554
147
|
}, i)),
|
|
555
148
|
isActive: t,
|
|
556
149
|
shapeType: "symbols"
|
|
557
|
-
}, i)) : /* @__PURE__ */
|
|
150
|
+
}, i)) : /* @__PURE__ */ P.createElement(Ge, ee({
|
|
558
151
|
option: e,
|
|
559
152
|
isActive: t,
|
|
560
153
|
shapeType: "symbols"
|
|
561
154
|
}, i));
|
|
562
155
|
}
|
|
563
|
-
function
|
|
156
|
+
function Y(a) {
|
|
564
157
|
"@babel/helpers - typeof";
|
|
565
|
-
return
|
|
158
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
566
159
|
return typeof e;
|
|
567
160
|
} : function(e) {
|
|
568
161
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
569
|
-
},
|
|
162
|
+
}, Y(a);
|
|
570
163
|
}
|
|
571
164
|
function te() {
|
|
572
165
|
return te = Object.assign ? Object.assign.bind() : function(a) {
|
|
@@ -578,7 +171,7 @@ function te() {
|
|
|
578
171
|
return a;
|
|
579
172
|
}, te.apply(this, arguments);
|
|
580
173
|
}
|
|
581
|
-
function
|
|
174
|
+
function qe(a, e) {
|
|
582
175
|
var t = Object.keys(a);
|
|
583
176
|
if (Object.getOwnPropertySymbols) {
|
|
584
177
|
var i = Object.getOwnPropertySymbols(a);
|
|
@@ -588,35 +181,35 @@ function Ve(a, e) {
|
|
|
588
181
|
}
|
|
589
182
|
return t;
|
|
590
183
|
}
|
|
591
|
-
function
|
|
184
|
+
function T(a) {
|
|
592
185
|
for (var e = 1; e < arguments.length; e++) {
|
|
593
186
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
594
|
-
e % 2 ?
|
|
595
|
-
|
|
596
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
187
|
+
e % 2 ? qe(Object(t), !0).forEach(function(i) {
|
|
188
|
+
j(a, i, t[i]);
|
|
189
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(i) {
|
|
597
190
|
Object.defineProperty(a, i, Object.getOwnPropertyDescriptor(t, i));
|
|
598
191
|
});
|
|
599
192
|
}
|
|
600
193
|
return a;
|
|
601
194
|
}
|
|
602
|
-
function
|
|
195
|
+
function ms(a, e) {
|
|
603
196
|
if (!(a instanceof e))
|
|
604
197
|
throw new TypeError("Cannot call a class as a function");
|
|
605
198
|
}
|
|
606
|
-
function
|
|
199
|
+
function Xe(a, e) {
|
|
607
200
|
for (var t = 0; t < e.length; t++) {
|
|
608
201
|
var i = e[t];
|
|
609
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
202
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, Pt(i.key), i);
|
|
610
203
|
}
|
|
611
204
|
}
|
|
612
|
-
function
|
|
613
|
-
return e &&
|
|
205
|
+
function vs(a, e, t) {
|
|
206
|
+
return e && Xe(a.prototype, e), t && Xe(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
614
207
|
}
|
|
615
|
-
function
|
|
616
|
-
return e = fe(e),
|
|
208
|
+
function ys(a, e, t) {
|
|
209
|
+
return e = fe(e), bs(a, Dt() ? Reflect.construct(e, t || [], fe(a).constructor) : e.apply(a, t));
|
|
617
210
|
}
|
|
618
|
-
function
|
|
619
|
-
if (e && (
|
|
211
|
+
function bs(a, e) {
|
|
212
|
+
if (e && (Y(e) === "object" || typeof e == "function"))
|
|
620
213
|
return e;
|
|
621
214
|
if (e !== void 0)
|
|
622
215
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -627,13 +220,13 @@ function xs(a) {
|
|
|
627
220
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
628
221
|
return a;
|
|
629
222
|
}
|
|
630
|
-
function
|
|
223
|
+
function Dt() {
|
|
631
224
|
try {
|
|
632
225
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
633
226
|
}));
|
|
634
227
|
} catch {
|
|
635
228
|
}
|
|
636
|
-
return (
|
|
229
|
+
return (Dt = function() {
|
|
637
230
|
return !!a;
|
|
638
231
|
})();
|
|
639
232
|
}
|
|
@@ -645,26 +238,26 @@ function fe(a) {
|
|
|
645
238
|
function _s(a, e) {
|
|
646
239
|
if (typeof e != "function" && e !== null)
|
|
647
240
|
throw new TypeError("Super expression must either be null or a function");
|
|
648
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
241
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && Pe(a, e);
|
|
649
242
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
243
|
+
function Pe(a, e) {
|
|
244
|
+
return Pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
652
245
|
return i.__proto__ = s, i;
|
|
653
|
-
},
|
|
246
|
+
}, Pe(a, e);
|
|
654
247
|
}
|
|
655
|
-
function
|
|
656
|
-
return e =
|
|
248
|
+
function j(a, e, t) {
|
|
249
|
+
return e = Pt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
657
250
|
}
|
|
658
|
-
function
|
|
659
|
-
var e =
|
|
660
|
-
return
|
|
251
|
+
function Pt(a) {
|
|
252
|
+
var e = ws(a, "string");
|
|
253
|
+
return Y(e) == "symbol" ? e : e + "";
|
|
661
254
|
}
|
|
662
|
-
function
|
|
663
|
-
if (
|
|
255
|
+
function ws(a, e) {
|
|
256
|
+
if (Y(a) != "object" || !a) return a;
|
|
664
257
|
var t = a[Symbol.toPrimitive];
|
|
665
258
|
if (t !== void 0) {
|
|
666
259
|
var i = t.call(a, e);
|
|
667
|
-
if (
|
|
260
|
+
if (Y(i) != "object") return i;
|
|
668
261
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
669
262
|
}
|
|
670
263
|
return String(a);
|
|
@@ -672,33 +265,33 @@ function Cs(a, e) {
|
|
|
672
265
|
var re = /* @__PURE__ */ function(a) {
|
|
673
266
|
function e() {
|
|
674
267
|
var t;
|
|
675
|
-
|
|
268
|
+
ms(this, e);
|
|
676
269
|
for (var i = arguments.length, s = new Array(i), r = 0; r < i; r++)
|
|
677
270
|
s[r] = arguments[r];
|
|
678
|
-
return t =
|
|
271
|
+
return t = ys(this, e, [].concat(s)), j(t, "state", {
|
|
679
272
|
isAnimationFinished: !1
|
|
680
|
-
}),
|
|
273
|
+
}), j(t, "handleAnimationEnd", function() {
|
|
681
274
|
t.setState({
|
|
682
275
|
isAnimationFinished: !0
|
|
683
276
|
});
|
|
684
|
-
}),
|
|
277
|
+
}), j(t, "handleAnimationStart", function() {
|
|
685
278
|
t.setState({
|
|
686
279
|
isAnimationFinished: !1
|
|
687
280
|
});
|
|
688
|
-
}),
|
|
281
|
+
}), j(t, "id", ei("recharts-scatter-")), t;
|
|
689
282
|
}
|
|
690
|
-
return _s(e, a),
|
|
283
|
+
return _s(e, a), vs(e, [{
|
|
691
284
|
key: "renderSymbolsStatically",
|
|
692
285
|
value: function(i) {
|
|
693
|
-
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c =
|
|
286
|
+
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Ce(this.props, !1);
|
|
694
287
|
return i.map(function(l, d) {
|
|
695
|
-
var f = h === d, p = f ? o : n, m =
|
|
696
|
-
return /* @__PURE__ */
|
|
288
|
+
var f = h === d, p = f ? o : n, m = T(T({}, c), l);
|
|
289
|
+
return /* @__PURE__ */ P.createElement(J, te({
|
|
697
290
|
className: "recharts-scatter-symbol",
|
|
698
291
|
key: "symbol-".concat(l == null ? void 0 : l.cx, "-").concat(l == null ? void 0 : l.cy, "-").concat(l == null ? void 0 : l.size, "-").concat(d)
|
|
699
|
-
},
|
|
292
|
+
}, Vt(s.props, l, d), {
|
|
700
293
|
role: "img"
|
|
701
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ P.createElement(ps, te({
|
|
702
295
|
option: p,
|
|
703
296
|
isActive: f,
|
|
704
297
|
key: "symbol-".concat(d)
|
|
@@ -709,7 +302,7 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
709
302
|
key: "renderSymbolsWithAnimation",
|
|
710
303
|
value: function() {
|
|
711
304
|
var i = this, s = this.props, r = s.points, n = s.isAnimationActive, o = s.animationBegin, h = s.animationDuration, c = s.animationEasing, l = s.animationId, d = this.state.prevPoints;
|
|
712
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ P.createElement(qt, {
|
|
713
306
|
begin: o,
|
|
714
307
|
duration: h,
|
|
715
308
|
isActive: n,
|
|
@@ -725,21 +318,21 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
725
318
|
onAnimationStart: this.handleAnimationStart
|
|
726
319
|
}, function(f) {
|
|
727
320
|
var p = f.t, m = r.map(function(v, b) {
|
|
728
|
-
var
|
|
729
|
-
if (
|
|
730
|
-
var
|
|
731
|
-
return
|
|
732
|
-
cx:
|
|
733
|
-
cy:
|
|
734
|
-
size:
|
|
321
|
+
var w = d && d[b];
|
|
322
|
+
if (w) {
|
|
323
|
+
var C = ae(w.cx, v.cx), E = ae(w.cy, v.cy), D = ae(w.size, v.size);
|
|
324
|
+
return T(T({}, v), {}, {
|
|
325
|
+
cx: C(p),
|
|
326
|
+
cy: E(p),
|
|
327
|
+
size: D(p)
|
|
735
328
|
});
|
|
736
329
|
}
|
|
737
330
|
var N = ae(0, v.size);
|
|
738
|
-
return
|
|
331
|
+
return T(T({}, v), {}, {
|
|
739
332
|
size: N(p)
|
|
740
333
|
});
|
|
741
334
|
});
|
|
742
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ P.createElement(J, null, i.renderSymbolsStatically(m));
|
|
743
336
|
});
|
|
744
337
|
}
|
|
745
338
|
}, {
|
|
@@ -754,21 +347,21 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
754
347
|
var i = this.props.isAnimationActive;
|
|
755
348
|
if (i && !this.state.isAnimationFinished)
|
|
756
349
|
return null;
|
|
757
|
-
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = it(h,
|
|
350
|
+
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = it(h, Xt);
|
|
758
351
|
return c ? c.map(function(l, d) {
|
|
759
352
|
var f = l.props, p = f.direction, m = f.dataKey;
|
|
760
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ P.cloneElement(l, {
|
|
761
354
|
key: "".concat(p, "-").concat(m, "-").concat(r[d]),
|
|
762
355
|
data: r,
|
|
763
356
|
xAxis: n,
|
|
764
357
|
yAxis: o,
|
|
765
358
|
layout: p === "x" ? "vertical" : "horizontal",
|
|
766
|
-
dataPointFormatter: function(b,
|
|
359
|
+
dataPointFormatter: function(b, w) {
|
|
767
360
|
return {
|
|
768
361
|
x: b.cx,
|
|
769
362
|
y: b.cy,
|
|
770
363
|
value: p === "x" ? +b.node.x : +b.node.y,
|
|
771
|
-
errorVal: he(b,
|
|
364
|
+
errorVal: he(b, w)
|
|
772
365
|
};
|
|
773
366
|
}
|
|
774
367
|
});
|
|
@@ -777,35 +370,35 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
777
370
|
}, {
|
|
778
371
|
key: "renderLine",
|
|
779
372
|
value: function() {
|
|
780
|
-
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h =
|
|
373
|
+
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h = Ce(this.props, !1), c = Ce(r, !1), l, d;
|
|
781
374
|
if (n === "joint")
|
|
782
|
-
l = s.map(function(
|
|
375
|
+
l = s.map(function(E) {
|
|
783
376
|
return {
|
|
784
|
-
x:
|
|
785
|
-
y:
|
|
377
|
+
x: E.cx,
|
|
378
|
+
y: E.cy
|
|
786
379
|
};
|
|
787
380
|
});
|
|
788
381
|
else if (n === "fitting") {
|
|
789
|
-
var f =
|
|
790
|
-
return v *
|
|
382
|
+
var f = Yt(s), p = f.xmin, m = f.xmax, v = f.a, b = f.b, w = function(D) {
|
|
383
|
+
return v * D + b;
|
|
791
384
|
};
|
|
792
385
|
l = [{
|
|
793
386
|
x: p,
|
|
794
|
-
y:
|
|
387
|
+
y: w(p)
|
|
795
388
|
}, {
|
|
796
389
|
x: m,
|
|
797
|
-
y:
|
|
390
|
+
y: w(m)
|
|
798
391
|
}];
|
|
799
392
|
}
|
|
800
|
-
var
|
|
393
|
+
var C = T(T(T({}, h), {}, {
|
|
801
394
|
fill: "none",
|
|
802
395
|
stroke: h && h.fill
|
|
803
396
|
}, c), {}, {
|
|
804
397
|
points: l
|
|
805
398
|
});
|
|
806
|
-
return /* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ P.isValidElement(r) ? d = /* @__PURE__ */ P.cloneElement(r, C) : Jt(r) ? d = r(C) : d = /* @__PURE__ */ P.createElement(Zt, te({}, C, {
|
|
807
400
|
type: o
|
|
808
|
-
})), /* @__PURE__ */
|
|
401
|
+
})), /* @__PURE__ */ P.createElement(J, {
|
|
809
402
|
className: "recharts-scatter-line",
|
|
810
403
|
key: "recharts-scatter-line"
|
|
811
404
|
}, d);
|
|
@@ -816,18 +409,18 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
816
409
|
var i = this.props, s = i.hide, r = i.points, n = i.line, o = i.className, h = i.xAxis, c = i.yAxis, l = i.left, d = i.top, f = i.width, p = i.height, m = i.id, v = i.isAnimationActive;
|
|
817
410
|
if (s || !r || !r.length)
|
|
818
411
|
return null;
|
|
819
|
-
var b = this.state.isAnimationFinished,
|
|
820
|
-
return /* @__PURE__ */
|
|
821
|
-
className:
|
|
822
|
-
clipPath:
|
|
823
|
-
},
|
|
412
|
+
var b = this.state.isAnimationFinished, w = Qt("recharts-scatter", o), C = h && h.allowDataOverflow, E = c && c.allowDataOverflow, D = C || E, N = V(m) ? this.id : m;
|
|
413
|
+
return /* @__PURE__ */ P.createElement(J, {
|
|
414
|
+
className: w,
|
|
415
|
+
clipPath: D ? "url(#clipPath-".concat(N, ")") : null
|
|
416
|
+
}, C || E ? /* @__PURE__ */ P.createElement("defs", null, /* @__PURE__ */ P.createElement("clipPath", {
|
|
824
417
|
id: "clipPath-".concat(N)
|
|
825
|
-
}, /* @__PURE__ */
|
|
826
|
-
x:
|
|
827
|
-
y:
|
|
828
|
-
width:
|
|
829
|
-
height:
|
|
830
|
-
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */
|
|
418
|
+
}, /* @__PURE__ */ P.createElement("rect", {
|
|
419
|
+
x: C ? l : l - f / 2,
|
|
420
|
+
y: E ? d : d - p / 2,
|
|
421
|
+
width: C ? f : f * 2,
|
|
422
|
+
height: E ? p : p * 2
|
|
423
|
+
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ P.createElement(J, {
|
|
831
424
|
key: "recharts-scatter-symbols"
|
|
832
425
|
}, this.renderSymbols()), (!v || b) && st.renderCallByParent(this.props, r));
|
|
833
426
|
}
|
|
@@ -844,8 +437,8 @@ var re = /* @__PURE__ */ function(a) {
|
|
|
844
437
|
}
|
|
845
438
|
}]);
|
|
846
439
|
}(ts);
|
|
847
|
-
|
|
848
|
-
|
|
440
|
+
j(re, "displayName", "Scatter");
|
|
441
|
+
j(re, "defaultProps", {
|
|
849
442
|
xAxisId: 0,
|
|
850
443
|
yAxisId: 0,
|
|
851
444
|
zAxisId: 0,
|
|
@@ -860,28 +453,28 @@ U(re, "defaultProps", {
|
|
|
860
453
|
animationDuration: 400,
|
|
861
454
|
animationEasing: "linear"
|
|
862
455
|
});
|
|
863
|
-
|
|
864
|
-
var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, h = a.offset, c = s.props.tooltipType, l = it(s.props.children, ii), d =
|
|
865
|
-
var N = he(
|
|
866
|
-
name:
|
|
456
|
+
j(re, "getComposedData", function(a) {
|
|
457
|
+
var e = a.xAxis, t = a.yAxis, i = a.zAxis, s = a.item, r = a.displayedData, n = a.xAxisTicks, o = a.yAxisTicks, h = a.offset, c = s.props.tooltipType, l = it(s.props.children, ii), d = V(e.dataKey) ? s.props.dataKey : e.dataKey, f = V(t.dataKey) ? s.props.dataKey : t.dataKey, p = i && i.dataKey, m = i ? i.range : we.defaultProps.range, v = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, w = t.scale.bandwidth ? t.scale.bandwidth() : 0, C = r.map(function(E, D) {
|
|
458
|
+
var N = he(E, d), k = he(E, f), O = !V(p) && he(E, p) || "-", G = [{
|
|
459
|
+
name: V(e.dataKey) ? s.props.name : e.name || e.dataKey,
|
|
867
460
|
unit: e.unit || "",
|
|
868
461
|
value: N,
|
|
869
|
-
payload:
|
|
462
|
+
payload: E,
|
|
870
463
|
dataKey: d,
|
|
871
464
|
type: c
|
|
872
465
|
}, {
|
|
873
|
-
name:
|
|
466
|
+
name: V(t.dataKey) ? s.props.name : t.name || t.dataKey,
|
|
874
467
|
unit: t.unit || "",
|
|
875
|
-
value:
|
|
876
|
-
payload:
|
|
468
|
+
value: k,
|
|
469
|
+
payload: E,
|
|
877
470
|
dataKey: f,
|
|
878
471
|
type: c
|
|
879
472
|
}];
|
|
880
|
-
|
|
473
|
+
O !== "-" && G.push({
|
|
881
474
|
name: i.name || i.dataKey,
|
|
882
475
|
unit: i.unit || "",
|
|
883
|
-
value:
|
|
884
|
-
payload:
|
|
476
|
+
value: O,
|
|
477
|
+
payload: E,
|
|
885
478
|
dataKey: p,
|
|
886
479
|
type: c
|
|
887
480
|
});
|
|
@@ -889,43 +482,43 @@ U(re, "getComposedData", function(a) {
|
|
|
889
482
|
axis: e,
|
|
890
483
|
ticks: n,
|
|
891
484
|
bandSize: b,
|
|
892
|
-
entry:
|
|
893
|
-
index:
|
|
485
|
+
entry: E,
|
|
486
|
+
index: D,
|
|
894
487
|
dataKey: d
|
|
895
|
-
}),
|
|
488
|
+
}), I = $e({
|
|
896
489
|
axis: t,
|
|
897
490
|
ticks: o,
|
|
898
|
-
bandSize:
|
|
899
|
-
entry:
|
|
900
|
-
index:
|
|
491
|
+
bandSize: w,
|
|
492
|
+
entry: E,
|
|
493
|
+
index: D,
|
|
901
494
|
dataKey: f
|
|
902
|
-
}),
|
|
903
|
-
return
|
|
495
|
+
}), _ = O !== "-" ? i.scale(O) : v, z = Math.sqrt(Math.max(_, 0) / Math.PI);
|
|
496
|
+
return T(T({}, E), {}, {
|
|
904
497
|
cx: H,
|
|
905
|
-
cy:
|
|
906
|
-
x: H -
|
|
907
|
-
y:
|
|
498
|
+
cy: I,
|
|
499
|
+
x: H - z,
|
|
500
|
+
y: I - z,
|
|
908
501
|
xAxis: e,
|
|
909
502
|
yAxis: t,
|
|
910
503
|
zAxis: i,
|
|
911
|
-
width: 2 *
|
|
912
|
-
height: 2 *
|
|
913
|
-
size:
|
|
504
|
+
width: 2 * z,
|
|
505
|
+
height: 2 * z,
|
|
506
|
+
size: _,
|
|
914
507
|
node: {
|
|
915
508
|
x: N,
|
|
916
|
-
y:
|
|
917
|
-
z:
|
|
509
|
+
y: k,
|
|
510
|
+
z: O
|
|
918
511
|
},
|
|
919
|
-
tooltipPayload:
|
|
512
|
+
tooltipPayload: G,
|
|
920
513
|
tooltipPosition: {
|
|
921
514
|
x: H,
|
|
922
|
-
y:
|
|
515
|
+
y: I
|
|
923
516
|
},
|
|
924
|
-
payload:
|
|
925
|
-
}, l && l[
|
|
517
|
+
payload: E
|
|
518
|
+
}, l && l[D] && l[D].props);
|
|
926
519
|
});
|
|
927
|
-
return
|
|
928
|
-
points:
|
|
520
|
+
return T({
|
|
521
|
+
points: C
|
|
929
522
|
}, h);
|
|
930
523
|
});
|
|
931
524
|
var Es = si({
|
|
@@ -936,14 +529,14 @@ var Es = si({
|
|
|
936
529
|
AxisComp: ot
|
|
937
530
|
}, {
|
|
938
531
|
axisType: "yAxis",
|
|
939
|
-
AxisComp:
|
|
532
|
+
AxisComp: ze
|
|
940
533
|
}, {
|
|
941
534
|
axisType: "zAxis",
|
|
942
|
-
AxisComp:
|
|
535
|
+
AxisComp: we
|
|
943
536
|
}],
|
|
944
537
|
formatAxisMap: ni
|
|
945
538
|
});
|
|
946
|
-
const
|
|
539
|
+
const Cs = (a) => {
|
|
947
540
|
const e = (t) => {
|
|
948
541
|
const { cx: i, cy: s, fill: r, payload: n } = t, o = () => {
|
|
949
542
|
if (!n) return "-";
|
|
@@ -967,11 +560,11 @@ const Ns = (a) => {
|
|
|
967
560
|
});
|
|
968
561
|
};
|
|
969
562
|
return e.displayName = `Scatter-${a}`, e;
|
|
970
|
-
},
|
|
563
|
+
}, Ns = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
|
|
971
564
|
hide: !0
|
|
972
565
|
}, label: s = !1, hideTooltip: r = !1, hideGrid: n = !1, aspect: o, legend: h, showValueUnderLabel: c = !1, bar: l, line: d, scatter: f, onClick: p }, m) => {
|
|
973
|
-
var
|
|
974
|
-
const v = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [],
|
|
566
|
+
var O, G, H, I;
|
|
567
|
+
const v = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], w = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], C = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], E = [...b, ...w, ...C], D = Math.max(...v.flatMap((_) => E.map((z) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${_[z]}`) : `${_[z]}`)))), N = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "left"), k = [l, d, f].filter((_) => (_ == null ? void 0 : _.axisPosition) === "right");
|
|
975
568
|
return g(li, {
|
|
976
569
|
config: a,
|
|
977
570
|
ref: m,
|
|
@@ -986,16 +579,16 @@ const Ns = (a) => {
|
|
|
986
579
|
bottom: c ? 24 : 12
|
|
987
580
|
},
|
|
988
581
|
stackOffset: void 0,
|
|
989
|
-
onClick: (
|
|
990
|
-
if (!p || !
|
|
582
|
+
onClick: (_) => {
|
|
583
|
+
if (!p || !_.activeLabel || !_.activePayload)
|
|
991
584
|
return;
|
|
992
|
-
const
|
|
993
|
-
label:
|
|
585
|
+
const z = {
|
|
586
|
+
label: _.activeLabel,
|
|
994
587
|
values: {}
|
|
995
588
|
};
|
|
996
|
-
for (const ne of
|
|
997
|
-
|
|
998
|
-
p(
|
|
589
|
+
for (const ne of _.activePayload)
|
|
590
|
+
z.values[ne.name] = ne.value;
|
|
591
|
+
p(z);
|
|
999
592
|
},
|
|
1000
593
|
children: [!r && g(hi, {
|
|
1001
594
|
...di(),
|
|
@@ -1004,36 +597,36 @@ const Ns = (a) => {
|
|
|
1004
597
|
})
|
|
1005
598
|
}), !n && g(ui, {
|
|
1006
599
|
...fi()
|
|
1007
|
-
}), N.length > 0 && g(
|
|
1008
|
-
...
|
|
600
|
+
}), N.length > 0 && g(ze, {
|
|
601
|
+
...Ue(i),
|
|
1009
602
|
tick: !0,
|
|
1010
|
-
width: i.width ??
|
|
1011
|
-
hide: i.hide || N.some((
|
|
1012
|
-
label: (
|
|
603
|
+
width: i.width ?? D + 20 + (k.length > 0 && ((O = N[0]) != null && O.axisLabel) ? 20 : 0),
|
|
604
|
+
hide: i.hide || N.some((_) => _ == null ? void 0 : _.hideAxis),
|
|
605
|
+
label: (G = N[0]) != null && G.axisLabel ? {
|
|
1013
606
|
value: N[0].axisLabel,
|
|
1014
607
|
angle: -90,
|
|
1015
608
|
position: "insideLeft"
|
|
1016
609
|
} : void 0
|
|
1017
|
-
}),
|
|
1018
|
-
...
|
|
610
|
+
}), k.length > 0 && g(ze, {
|
|
611
|
+
...Ue(i),
|
|
1019
612
|
yAxisId: "right",
|
|
1020
613
|
orientation: "right",
|
|
1021
614
|
tick: !0,
|
|
1022
|
-
width: i.width ??
|
|
1023
|
-
hide: i.hide ||
|
|
1024
|
-
label: (
|
|
1025
|
-
value:
|
|
615
|
+
width: i.width ?? D + 20 + (N.length > 0 && ((H = k[0]) != null && H.axisLabel) ? 20 : 0),
|
|
616
|
+
hide: i.hide || k.some((_) => _ == null ? void 0 : _.hideAxis),
|
|
617
|
+
label: (I = k[0]) != null && I.axisLabel ? {
|
|
618
|
+
value: k[0].axisLabel,
|
|
1026
619
|
angle: 90,
|
|
1027
620
|
position: "insideRight"
|
|
1028
621
|
} : void 0
|
|
1029
622
|
}), g(ot, {
|
|
1030
623
|
...gi(t),
|
|
1031
624
|
hide: t == null ? void 0 : t.hide,
|
|
1032
|
-
tick: c ? (
|
|
1033
|
-
var
|
|
1034
|
-
const { x:
|
|
625
|
+
tick: c ? (_) => {
|
|
626
|
+
var Ie, We;
|
|
627
|
+
const { x: z, y: ne, payload: Be } = _, Fe = ((Ie = e.find((jt) => jt.label === Be.value)) == null ? void 0 : Ie.values) || "", oe = Object.keys(Fe).length === 1 ? (We = Object.values(Fe)) == null ? void 0 : We[0] : void 0, Ut = oe !== void 0 && i.tickFormatter ? i.tickFormatter(`${oe}`) : oe.toLocaleString();
|
|
1035
628
|
return R("g", {
|
|
1036
|
-
transform: `translate(${
|
|
629
|
+
transform: `translate(${z},${ne})`,
|
|
1037
630
|
children: [g("text", {
|
|
1038
631
|
x: 0,
|
|
1039
632
|
y: 0,
|
|
@@ -1047,14 +640,14 @@ const Ns = (a) => {
|
|
|
1047
640
|
dy: 28,
|
|
1048
641
|
textAnchor: "middle",
|
|
1049
642
|
className: "!fill-f1-foreground text-sm font-medium",
|
|
1050
|
-
children:
|
|
643
|
+
children: Ut
|
|
1051
644
|
})]
|
|
1052
645
|
});
|
|
1053
646
|
} : void 0
|
|
1054
|
-
}), b.map((
|
|
647
|
+
}), b.map((_, z) => g(nt, {
|
|
1055
648
|
isAnimationActive: !1,
|
|
1056
|
-
dataKey: String(
|
|
1057
|
-
fill: a[
|
|
649
|
+
dataKey: String(_),
|
|
650
|
+
fill: a[_].color ? Z(a[_].color) : Ne(z),
|
|
1058
651
|
radius: 4,
|
|
1059
652
|
maxBarSize: 32,
|
|
1060
653
|
children: s && g(st, {
|
|
@@ -1062,23 +655,23 @@ const Ns = (a) => {
|
|
|
1062
655
|
offset: 10,
|
|
1063
656
|
className: "fill-f1-foreground",
|
|
1064
657
|
fontSize: 12
|
|
1065
|
-
}, `label-${String(
|
|
1066
|
-
}, `bar-${String(
|
|
658
|
+
}, `label-${String(_)}`)
|
|
659
|
+
}, `bar-${String(_)}`)), w.map((_, z) => g(rt, {
|
|
1067
660
|
type: (d == null ? void 0 : d.lineType) ?? "natural",
|
|
1068
|
-
dataKey: String(
|
|
1069
|
-
stroke: a[
|
|
661
|
+
dataKey: String(_),
|
|
662
|
+
stroke: a[_].color ? Z(a[_].color) : Ne(b.length + z),
|
|
1070
663
|
strokeWidth: 2,
|
|
1071
664
|
dot: (d == null ? void 0 : d.dot) ?? !1,
|
|
1072
665
|
isAnimationActive: !1,
|
|
1073
666
|
yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
|
|
1074
|
-
}, `line-${String(
|
|
1075
|
-
dataKey: String(
|
|
1076
|
-
fill: a[
|
|
667
|
+
}, `line-${String(_)}`)), C.map((_, z) => g(re, {
|
|
668
|
+
dataKey: String(_),
|
|
669
|
+
fill: a[_].color ? Z(a[_].color) : Ne(b.length + w.length + z),
|
|
1077
670
|
r: 4,
|
|
1078
671
|
isAnimationActive: !1,
|
|
1079
672
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0,
|
|
1080
|
-
shape:
|
|
1081
|
-
}, `scatter-${String(
|
|
673
|
+
shape: Cs(String(_))
|
|
674
|
+
}, `scatter-${String(_)}`)), h && g(pi, {
|
|
1082
675
|
content: g(mi, {
|
|
1083
676
|
nameKey: "label"
|
|
1084
677
|
}),
|
|
@@ -1089,21 +682,21 @@ const Ns = (a) => {
|
|
|
1089
682
|
})]
|
|
1090
683
|
})
|
|
1091
684
|
});
|
|
1092
|
-
},
|
|
1093
|
-
var
|
|
685
|
+
}, Rs = at(Ns);
|
|
686
|
+
var Oe = "Progress", Ae = 100, [zs, ur] = vi(Oe), [Ds, Ps] = zs(Oe), St = ke.forwardRef(
|
|
1094
687
|
(a, e) => {
|
|
1095
688
|
const {
|
|
1096
689
|
__scopeProgress: t,
|
|
1097
690
|
value: i = null,
|
|
1098
691
|
max: s,
|
|
1099
|
-
getValueLabel: r =
|
|
692
|
+
getValueLabel: r = Ss,
|
|
1100
693
|
...n
|
|
1101
694
|
} = a;
|
|
1102
|
-
(s || s === 0) && !
|
|
1103
|
-
const o =
|
|
1104
|
-
i !== null && !Je(i, o) && console.error(
|
|
695
|
+
(s || s === 0) && !Ye(s) && console.error(ks(`${s}`, "Progress"));
|
|
696
|
+
const o = Ye(s) ? s : Ae;
|
|
697
|
+
i !== null && !Je(i, o) && console.error(Os(`${i}`, "Progress"));
|
|
1105
698
|
const h = Je(i, o) ? i : null, c = ge(h) ? r(h, o) : void 0;
|
|
1106
|
-
return /* @__PURE__ */ g(
|
|
699
|
+
return /* @__PURE__ */ g(Ds, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
|
|
1107
700
|
lt.div,
|
|
1108
701
|
{
|
|
1109
702
|
"aria-valuemax": o,
|
|
@@ -1111,7 +704,7 @@ var Ae = "Progress", Te = 100, [Ss, gr] = vi(Ae), [zs, ks] = Ss(Ae), kt = Pe.for
|
|
|
1111
704
|
"aria-valuenow": ge(h) ? h : void 0,
|
|
1112
705
|
"aria-valuetext": c,
|
|
1113
706
|
role: "progressbar",
|
|
1114
|
-
"data-state":
|
|
707
|
+
"data-state": At(h, o),
|
|
1115
708
|
"data-value": h ?? void 0,
|
|
1116
709
|
"data-max": o,
|
|
1117
710
|
...n,
|
|
@@ -1120,14 +713,14 @@ var Ae = "Progress", Te = 100, [Ss, gr] = vi(Ae), [zs, ks] = Ss(Ae), kt = Pe.for
|
|
|
1120
713
|
) });
|
|
1121
714
|
}
|
|
1122
715
|
);
|
|
1123
|
-
|
|
1124
|
-
var
|
|
716
|
+
St.displayName = Oe;
|
|
717
|
+
var kt = "ProgressIndicator", Ot = ke.forwardRef(
|
|
1125
718
|
(a, e) => {
|
|
1126
|
-
const { __scopeProgress: t, ...i } = a, s =
|
|
719
|
+
const { __scopeProgress: t, ...i } = a, s = Ps(kt, t);
|
|
1127
720
|
return /* @__PURE__ */ g(
|
|
1128
721
|
lt.div,
|
|
1129
722
|
{
|
|
1130
|
-
"data-state":
|
|
723
|
+
"data-state": At(s.value, s.max),
|
|
1131
724
|
"data-value": s.value ?? void 0,
|
|
1132
725
|
"data-max": s.max,
|
|
1133
726
|
...i,
|
|
@@ -1136,39 +729,39 @@ var Pt = "ProgressIndicator", At = Pe.forwardRef(
|
|
|
1136
729
|
);
|
|
1137
730
|
}
|
|
1138
731
|
);
|
|
1139
|
-
|
|
1140
|
-
function
|
|
732
|
+
Ot.displayName = kt;
|
|
733
|
+
function Ss(a, e) {
|
|
1141
734
|
return `${Math.round(a / e * 100)}%`;
|
|
1142
735
|
}
|
|
1143
|
-
function
|
|
736
|
+
function At(a, e) {
|
|
1144
737
|
return a == null ? "indeterminate" : a === e ? "complete" : "loading";
|
|
1145
738
|
}
|
|
1146
739
|
function ge(a) {
|
|
1147
740
|
return typeof a == "number";
|
|
1148
741
|
}
|
|
1149
|
-
function
|
|
742
|
+
function Ye(a) {
|
|
1150
743
|
return ge(a) && !isNaN(a) && a > 0;
|
|
1151
744
|
}
|
|
1152
745
|
function Je(a, e) {
|
|
1153
746
|
return ge(a) && !isNaN(a) && a <= e && a >= 0;
|
|
1154
747
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${
|
|
748
|
+
function ks(a, e) {
|
|
749
|
+
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ae}\`.`;
|
|
1157
750
|
}
|
|
1158
|
-
function
|
|
751
|
+
function Os(a, e) {
|
|
1159
752
|
return `Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
1160
753
|
- a positive number
|
|
1161
|
-
- less than the value passed to \`max\` (or ${
|
|
754
|
+
- less than the value passed to \`max\` (or ${Ae} if no \`max\` prop is set)
|
|
1162
755
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
1163
756
|
|
|
1164
757
|
Defaulting to \`null\`.`;
|
|
1165
758
|
}
|
|
1166
|
-
var
|
|
1167
|
-
const Lt =
|
|
759
|
+
var Tt = St, As = Ot;
|
|
760
|
+
const Lt = ke.forwardRef(({ className: a, value: e, ...t }, i) => g(Tt, {
|
|
1168
761
|
ref: i,
|
|
1169
762
|
className: L("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
|
|
1170
763
|
...t,
|
|
1171
|
-
children: g(
|
|
764
|
+
children: g(As, {
|
|
1172
765
|
className: "h-full w-full flex-1 transition-all",
|
|
1173
766
|
style: {
|
|
1174
767
|
backgroundColor: t.color,
|
|
@@ -1176,9 +769,9 @@ const Lt = Pe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
|
|
|
1176
769
|
}
|
|
1177
770
|
})
|
|
1178
771
|
}));
|
|
1179
|
-
Lt.displayName =
|
|
1180
|
-
const
|
|
1181
|
-
const r = i ?
|
|
772
|
+
Lt.displayName = Tt.displayName;
|
|
773
|
+
const Ts = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
774
|
+
const r = i ? Z(i) : Z("categorical-1"), n = a / e * 100;
|
|
1182
775
|
return R("div", {
|
|
1183
776
|
className: "flex items-center space-x-2",
|
|
1184
777
|
"aria-live": "polite",
|
|
@@ -1198,55 +791,55 @@ const Ls = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1198
791
|
children: t
|
|
1199
792
|
})]
|
|
1200
793
|
});
|
|
1201
|
-
},
|
|
794
|
+
}, Ls = at(Ts), fr = F(
|
|
1202
795
|
{
|
|
1203
796
|
name: "AreaChart",
|
|
1204
797
|
type: "info"
|
|
1205
798
|
},
|
|
1206
|
-
|
|
1207
|
-
),
|
|
799
|
+
Ei
|
|
800
|
+
), gr = F(
|
|
1208
801
|
{
|
|
1209
802
|
name: "BarChart",
|
|
1210
803
|
type: "info"
|
|
1211
804
|
},
|
|
1212
805
|
yi
|
|
1213
|
-
),
|
|
806
|
+
), pr = F(
|
|
1214
807
|
{
|
|
1215
808
|
name: "CategoryBarChart",
|
|
1216
809
|
type: "info"
|
|
1217
810
|
},
|
|
1218
811
|
bi
|
|
1219
|
-
),
|
|
812
|
+
), mr = F(
|
|
1220
813
|
{
|
|
1221
814
|
name: "LineChart",
|
|
1222
815
|
type: "info"
|
|
1223
816
|
},
|
|
1224
|
-
|
|
1225
|
-
),
|
|
817
|
+
xi
|
|
818
|
+
), vr = F(
|
|
1226
819
|
{
|
|
1227
820
|
name: "PieChart",
|
|
1228
821
|
type: "info"
|
|
1229
822
|
},
|
|
1230
|
-
|
|
1231
|
-
),
|
|
823
|
+
_i
|
|
824
|
+
), yr = F(
|
|
1232
825
|
{
|
|
1233
826
|
name: "VerticalBarChart",
|
|
1234
827
|
type: "info"
|
|
1235
828
|
},
|
|
1236
|
-
|
|
1237
|
-
),
|
|
829
|
+
wi
|
|
830
|
+
), br = F(
|
|
1238
831
|
{
|
|
1239
832
|
name: "ProgressBarChart",
|
|
1240
833
|
type: "info"
|
|
1241
834
|
},
|
|
1242
|
-
|
|
1243
|
-
),
|
|
835
|
+
Ls
|
|
836
|
+
), xr = F(
|
|
1244
837
|
{
|
|
1245
838
|
name: "ComboChart",
|
|
1246
839
|
type: "info"
|
|
1247
840
|
},
|
|
1248
|
-
|
|
1249
|
-
),
|
|
841
|
+
Rs
|
|
842
|
+
), _r = Ci, wr = ht, Er = ["default", "outline", "neutral"], Cr = ht, Nr = ["sm", "md", "lg"], Rr = Ni, Se = ({ count: a, list: e }) => {
|
|
1250
843
|
const [t, i] = M(!1), s = g(de, {
|
|
1251
844
|
label: `+${a}`
|
|
1252
845
|
});
|
|
@@ -1277,17 +870,17 @@ const Ls = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1277
870
|
})]
|
|
1278
871
|
}) : s;
|
|
1279
872
|
};
|
|
1280
|
-
|
|
873
|
+
Se.displayName = "ChipCounter";
|
|
1281
874
|
const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
1282
875
|
if (i === "fill")
|
|
1283
|
-
return g(
|
|
876
|
+
return g(zi, {
|
|
1284
877
|
items: a,
|
|
1285
878
|
renderListItem: (h) => g(de, {
|
|
1286
879
|
...h
|
|
1287
880
|
}),
|
|
1288
881
|
renderDropdownItem: () => null,
|
|
1289
882
|
forceShowingOverflowIndicator: t !== void 0,
|
|
1290
|
-
renderOverflowIndicator: (h) => g(
|
|
883
|
+
renderOverflowIndicator: (h) => g(Se, {
|
|
1291
884
|
count: (t ?? 0) + h,
|
|
1292
885
|
list: t ? void 0 : a.slice(a.length - h)
|
|
1293
886
|
}),
|
|
@@ -1299,14 +892,14 @@ const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
1299
892
|
className: "flex items-center gap-2",
|
|
1300
893
|
children: [s.map((h, c) => g(de, {
|
|
1301
894
|
...h
|
|
1302
|
-
}, c)), o && g(
|
|
895
|
+
}, c)), o && g(Se, {
|
|
1303
896
|
count: n,
|
|
1304
897
|
list: t ? void 0 : r
|
|
1305
898
|
})]
|
|
1306
899
|
});
|
|
1307
900
|
};
|
|
1308
901
|
Mt.displayName = "F0ChipList";
|
|
1309
|
-
const zr = pt("F0ChipList", Mt),
|
|
902
|
+
const zr = pt("F0ChipList", Mt), Dr = Di, Re = mt({
|
|
1310
903
|
base: "text-base text-f1-foreground",
|
|
1311
904
|
variants: {
|
|
1312
905
|
variant: {
|
|
@@ -1347,7 +940,7 @@ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
|
1347
940
|
variant: "body",
|
|
1348
941
|
align: "left"
|
|
1349
942
|
}
|
|
1350
|
-
}),
|
|
943
|
+
}), Ms = {
|
|
1351
944
|
"heading-large": "h1",
|
|
1352
945
|
heading: "h2",
|
|
1353
946
|
body: "p",
|
|
@@ -1366,10 +959,10 @@ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
|
1366
959
|
"positive-strong": "p",
|
|
1367
960
|
"info-strong": "p",
|
|
1368
961
|
code: "code"
|
|
1369
|
-
},
|
|
1370
|
-
const l = s ??
|
|
962
|
+
}, Te = U(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...h }, c) => {
|
|
963
|
+
const l = s ?? Ms[e ?? "body"];
|
|
1371
964
|
if (r !== void 0)
|
|
1372
|
-
return g(
|
|
965
|
+
return g(Pi, {
|
|
1373
966
|
ref: c,
|
|
1374
967
|
lines: typeof r == "number" ? r : 1,
|
|
1375
968
|
noTooltip: n,
|
|
@@ -1383,8 +976,8 @@ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
|
1383
976
|
children: a
|
|
1384
977
|
});
|
|
1385
978
|
if (o) {
|
|
1386
|
-
const d =
|
|
1387
|
-
return
|
|
979
|
+
const d = Si(a);
|
|
980
|
+
return Ke(l, {
|
|
1388
981
|
...h,
|
|
1389
982
|
className: L(Re({
|
|
1390
983
|
variant: e,
|
|
@@ -1396,7 +989,7 @@ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
|
1396
989
|
}
|
|
1397
990
|
});
|
|
1398
991
|
}
|
|
1399
|
-
return
|
|
992
|
+
return Ke(l, {
|
|
1400
993
|
...h,
|
|
1401
994
|
className: L(Re({
|
|
1402
995
|
variant: e,
|
|
@@ -1405,27 +998,27 @@ const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
|
1405
998
|
ref: c
|
|
1406
999
|
}, a);
|
|
1407
1000
|
});
|
|
1408
|
-
|
|
1409
|
-
const
|
|
1001
|
+
Te.displayName = "Text";
|
|
1002
|
+
const Hs = U((a, e) => g(Te, {
|
|
1410
1003
|
ref: e,
|
|
1411
1004
|
variant: "heading",
|
|
1412
1005
|
...a
|
|
1413
1006
|
}));
|
|
1414
|
-
|
|
1415
|
-
const
|
|
1007
|
+
Hs.displayName = "F0Heading";
|
|
1008
|
+
const Bs = U((a, e) => g(Te, {
|
|
1416
1009
|
ref: e,
|
|
1417
1010
|
markdown: a.markdown ?? !0,
|
|
1418
1011
|
...a
|
|
1419
1012
|
}));
|
|
1420
|
-
|
|
1013
|
+
Bs.displayName = "F0Text";
|
|
1421
1014
|
const Fs = {
|
|
1422
1015
|
xs: 1,
|
|
1423
1016
|
sm: 2,
|
|
1424
1017
|
md: 2,
|
|
1425
1018
|
lg: 2
|
|
1426
|
-
},
|
|
1427
|
-
const s =
|
|
1428
|
-
|
|
1019
|
+
}, Is = U(function({ widgets: e, children: t }, i) {
|
|
1020
|
+
const s = Q(null);
|
|
1021
|
+
wt(i, () => s.current);
|
|
1429
1022
|
const r = is.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
|
|
1430
1023
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
1431
1024
|
children: n
|
|
@@ -1437,7 +1030,7 @@ const Fs = {
|
|
|
1437
1030
|
className: "@container",
|
|
1438
1031
|
children: [R("div", {
|
|
1439
1032
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
1440
|
-
children: [g(
|
|
1033
|
+
children: [g(ki, {
|
|
1441
1034
|
columns: Fs,
|
|
1442
1035
|
showArrows: !1,
|
|
1443
1036
|
children: r
|
|
@@ -1459,7 +1052,7 @@ const Fs = {
|
|
|
1459
1052
|
})]
|
|
1460
1053
|
})
|
|
1461
1054
|
});
|
|
1462
|
-
}), Ws =
|
|
1055
|
+
}), Ws = U(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
|
|
1463
1056
|
return g("div", {
|
|
1464
1057
|
ref: r,
|
|
1465
1058
|
className: "h-full",
|
|
@@ -1468,31 +1061,31 @@ const Fs = {
|
|
|
1468
1061
|
children: [g("main", {
|
|
1469
1062
|
className: L("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", s ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", i === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
|
|
1470
1063
|
children: e
|
|
1471
|
-
}), g(
|
|
1064
|
+
}), g(Gs, {
|
|
1472
1065
|
sticky: s,
|
|
1473
1066
|
className: L("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
1474
1067
|
children: t
|
|
1475
1068
|
})]
|
|
1476
1069
|
})
|
|
1477
1070
|
});
|
|
1478
|
-
}),
|
|
1071
|
+
}), Gs = ({ children: a, className: e }) => g("aside", {
|
|
1479
1072
|
className: L("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
|
|
1480
1073
|
children: a
|
|
1481
|
-
}),
|
|
1074
|
+
}), $s = mt({
|
|
1482
1075
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
1483
1076
|
variants: {
|
|
1484
1077
|
variant: {
|
|
1485
1078
|
narrow: "max-w-screen-lg"
|
|
1486
1079
|
}
|
|
1487
1080
|
}
|
|
1488
|
-
}), Ht =
|
|
1081
|
+
}), Ht = P.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(vt, {
|
|
1489
1082
|
layout: "standard",
|
|
1490
1083
|
children: g("section", {
|
|
1491
1084
|
ref: s,
|
|
1492
1085
|
className: L("relative flex-1 overflow-auto", t),
|
|
1493
1086
|
...i,
|
|
1494
1087
|
children: g("div", {
|
|
1495
|
-
className: L(
|
|
1088
|
+
className: L($s({
|
|
1496
1089
|
variant: e
|
|
1497
1090
|
})),
|
|
1498
1091
|
children: a
|
|
@@ -1500,18 +1093,18 @@ const Fs = {
|
|
|
1500
1093
|
})
|
|
1501
1094
|
}));
|
|
1502
1095
|
Ht.displayName = "StandardLayout";
|
|
1503
|
-
const Pr =
|
|
1096
|
+
const Pr = F({
|
|
1504
1097
|
name: "StandardLayout",
|
|
1505
1098
|
type: "layout"
|
|
1506
|
-
}, Ht),
|
|
1099
|
+
}, Ht), Sr = F({
|
|
1507
1100
|
name: "TwoColumnLayout",
|
|
1508
1101
|
type: "layout"
|
|
1509
|
-
}, Ws),
|
|
1102
|
+
}, Ws), kr = F({
|
|
1510
1103
|
name: "HomeLayout",
|
|
1511
1104
|
type: "layout"
|
|
1512
|
-
},
|
|
1105
|
+
}, Is), Bt = _e(null);
|
|
1513
1106
|
function Le() {
|
|
1514
|
-
const a =
|
|
1107
|
+
const a = Et(Bt);
|
|
1515
1108
|
if (!a)
|
|
1516
1109
|
throw new Error(
|
|
1517
1110
|
"useGridStackContext must be used within a GridStackProvider"
|
|
@@ -1522,15 +1115,15 @@ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1522
1115
|
const [s, r] = M(null), [n, o] = M(() => {
|
|
1523
1116
|
var v;
|
|
1524
1117
|
const p = /* @__PURE__ */ new Map(), m = (b) => {
|
|
1525
|
-
var
|
|
1526
|
-
b.id && ((
|
|
1527
|
-
m(
|
|
1118
|
+
var w, C;
|
|
1119
|
+
b.id && ((w = b.renderFn) != null && w.call(b)) && p.set(b.id, b), (C = b.subGridOpts) != null && C.children && b.subGridOpts.children.forEach((E) => {
|
|
1120
|
+
m(E);
|
|
1528
1121
|
});
|
|
1529
1122
|
};
|
|
1530
1123
|
return (v = e.children) == null || v.forEach((b) => {
|
|
1531
1124
|
m(b);
|
|
1532
1125
|
}), p;
|
|
1533
|
-
}), h =
|
|
1126
|
+
}), h = K(() => {
|
|
1534
1127
|
if (!s)
|
|
1535
1128
|
return;
|
|
1536
1129
|
const p = s.save();
|
|
@@ -1554,26 +1147,26 @@ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1554
1147
|
}, [s, t, h]), ce(() => {
|
|
1555
1148
|
s && h();
|
|
1556
1149
|
}, [s]);
|
|
1557
|
-
const c =
|
|
1150
|
+
const c = K((p) => {
|
|
1558
1151
|
s == null || s.addWidget(p), o((m) => {
|
|
1559
1152
|
const v = new Map(m);
|
|
1560
1153
|
return v.set(p.id, p), v;
|
|
1561
1154
|
});
|
|
1562
|
-
}, [s]), l =
|
|
1155
|
+
}, [s]), l = K((p) => {
|
|
1563
1156
|
s == null || s.addWidget(p), o((m) => {
|
|
1564
|
-
var b,
|
|
1157
|
+
var b, w;
|
|
1565
1158
|
const v = new Map(m);
|
|
1566
|
-
return (
|
|
1567
|
-
v.set(
|
|
1159
|
+
return (w = (b = p.subGridOpts) == null ? void 0 : b.children) == null || w.forEach((C) => {
|
|
1160
|
+
v.set(C.id, C);
|
|
1568
1161
|
}), v;
|
|
1569
1162
|
});
|
|
1570
|
-
}, [s]), d =
|
|
1163
|
+
}, [s]), d = K((p) => {
|
|
1571
1164
|
const m = document.body.querySelector(`[gs-id="${p}"]`);
|
|
1572
1165
|
m && (s == null || s.removeWidget(m)), o((v) => {
|
|
1573
1166
|
const b = new Map(v);
|
|
1574
1167
|
return b.delete(p), b;
|
|
1575
1168
|
});
|
|
1576
|
-
}, [s]), f =
|
|
1169
|
+
}, [s]), f = K(() => {
|
|
1577
1170
|
s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
|
|
1578
1171
|
}, [s]);
|
|
1579
1172
|
return g(Bt.Provider, {
|
|
@@ -1596,19 +1189,19 @@ function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1596
1189
|
children: a
|
|
1597
1190
|
});
|
|
1598
1191
|
}
|
|
1599
|
-
const
|
|
1600
|
-
function
|
|
1601
|
-
const a =
|
|
1192
|
+
const Ft = _e(null);
|
|
1193
|
+
function js() {
|
|
1194
|
+
const a = Et(Ft);
|
|
1602
1195
|
if (!a)
|
|
1603
1196
|
throw new Error(
|
|
1604
1197
|
"useGridStackRenderContext must be used within a GridStackProvider"
|
|
1605
1198
|
);
|
|
1606
1199
|
return a;
|
|
1607
1200
|
}
|
|
1608
|
-
const Ks =
|
|
1201
|
+
const Ks = _e(null);
|
|
1609
1202
|
function Vs() {
|
|
1610
|
-
const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } =
|
|
1611
|
-
return g(
|
|
1203
|
+
const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } = js();
|
|
1204
|
+
return g(xe, {
|
|
1612
1205
|
children: Array.from(a.value.entries()).map(([t, i]) => {
|
|
1613
1206
|
var r;
|
|
1614
1207
|
const s = e(t);
|
|
@@ -1623,7 +1216,7 @@ function Vs() {
|
|
|
1623
1216
|
})
|
|
1624
1217
|
});
|
|
1625
1218
|
}
|
|
1626
|
-
function
|
|
1219
|
+
function qs(a, e, t, i, s) {
|
|
1627
1220
|
const r = (...n) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(a, n));
|
|
1628
1221
|
return r.prototype = e.prototype, r;
|
|
1629
1222
|
}
|
|
@@ -2840,7 +2433,7 @@ class $ {
|
|
|
2840
2433
|
}
|
|
2841
2434
|
}
|
|
2842
2435
|
$._idSeq = 0;
|
|
2843
|
-
const
|
|
2436
|
+
const A = {
|
|
2844
2437
|
alwaysShowResizeHandle: "mobile",
|
|
2845
2438
|
animate: !0,
|
|
2846
2439
|
auto: !0,
|
|
@@ -2869,49 +2462,49 @@ const T = {
|
|
|
2869
2462
|
// staticGrid: false,
|
|
2870
2463
|
//removable
|
|
2871
2464
|
};
|
|
2872
|
-
class
|
|
2465
|
+
class x {
|
|
2873
2466
|
}
|
|
2874
2467
|
const B = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
|
|
2875
|
-
class
|
|
2468
|
+
class W {
|
|
2876
2469
|
}
|
|
2877
2470
|
function pe(a, e) {
|
|
2878
2471
|
a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
|
|
2879
2472
|
}
|
|
2880
|
-
function
|
|
2473
|
+
function It(a, e) {
|
|
2881
2474
|
a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
|
|
2882
2475
|
}
|
|
2883
2476
|
function me(a) {
|
|
2884
|
-
|
|
2477
|
+
W.touchHandled || (W.touchHandled = !0, pe(a, "mousedown"));
|
|
2885
2478
|
}
|
|
2886
2479
|
function ve(a) {
|
|
2887
|
-
|
|
2480
|
+
W.touchHandled && pe(a, "mousemove");
|
|
2888
2481
|
}
|
|
2889
2482
|
function ye(a) {
|
|
2890
|
-
if (!
|
|
2483
|
+
if (!W.touchHandled)
|
|
2891
2484
|
return;
|
|
2892
|
-
|
|
2893
|
-
const e = !!
|
|
2894
|
-
pe(a, "mouseup"), e || pe(a, "click"),
|
|
2485
|
+
W.pointerLeaveTimeout && (window.clearTimeout(W.pointerLeaveTimeout), delete W.pointerLeaveTimeout);
|
|
2486
|
+
const e = !!x.dragElement;
|
|
2487
|
+
pe(a, "mouseup"), e || pe(a, "click"), W.touchHandled = !1;
|
|
2895
2488
|
}
|
|
2896
2489
|
function be(a) {
|
|
2897
2490
|
a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
|
|
2898
2491
|
}
|
|
2899
|
-
function Qe(a) {
|
|
2900
|
-
w.dragElement && a.pointerType !== "mouse" && Ft(a, "mouseenter");
|
|
2901
|
-
}
|
|
2902
2492
|
function Ze(a) {
|
|
2903
|
-
|
|
2904
|
-
|
|
2493
|
+
x.dragElement && a.pointerType !== "mouse" && It(a, "mouseenter");
|
|
2494
|
+
}
|
|
2495
|
+
function Qe(a) {
|
|
2496
|
+
x.dragElement && a.pointerType !== "mouse" && (W.pointerLeaveTimeout = window.setTimeout(() => {
|
|
2497
|
+
delete W.pointerLeaveTimeout, It(a, "mouseleave");
|
|
2905
2498
|
}, 10));
|
|
2906
2499
|
}
|
|
2907
|
-
class
|
|
2500
|
+
class Ee {
|
|
2908
2501
|
constructor(e, t, i) {
|
|
2909
2502
|
this.host = e, this.dir = t, this.option = i, this.moving = !1, this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this._init();
|
|
2910
2503
|
}
|
|
2911
2504
|
/** @internal */
|
|
2912
2505
|
_init() {
|
|
2913
2506
|
const e = this.el = document.createElement("div");
|
|
2914
|
-
return e.classList.add("ui-resizable-handle"), e.classList.add(`${
|
|
2507
|
+
return e.classList.add("ui-resizable-handle"), e.classList.add(`${Ee.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), B && (this.el.addEventListener("touchstart", me), this.el.addEventListener("pointerdown", be)), this;
|
|
2915
2508
|
}
|
|
2916
2509
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
2917
2510
|
destroy() {
|
|
@@ -2940,7 +2533,7 @@ class Ce {
|
|
|
2940
2533
|
return this.option[e] && this.option[e](t), this;
|
|
2941
2534
|
}
|
|
2942
2535
|
}
|
|
2943
|
-
|
|
2536
|
+
Ee.prefix = "ui-resizable-";
|
|
2944
2537
|
class Me {
|
|
2945
2538
|
constructor() {
|
|
2946
2539
|
this._eventRegister = {};
|
|
@@ -3058,21 +2651,21 @@ class ie extends Me {
|
|
|
3058
2651
|
}
|
|
3059
2652
|
/** @internal turns auto hide on/off */
|
|
3060
2653
|
_setupAutoHide(e) {
|
|
3061
|
-
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut),
|
|
2654
|
+
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), x.overResizeElement === this && delete x.overResizeElement), this;
|
|
3062
2655
|
}
|
|
3063
2656
|
/** @internal */
|
|
3064
2657
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3065
2658
|
_mouseOver(e) {
|
|
3066
|
-
|
|
2659
|
+
x.overResizeElement || x.dragElement || (x.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
|
|
3067
2660
|
}
|
|
3068
2661
|
/** @internal */
|
|
3069
2662
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3070
2663
|
_mouseOut(e) {
|
|
3071
|
-
|
|
2664
|
+
x.overResizeElement === this && (delete x.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
|
|
3072
2665
|
}
|
|
3073
2666
|
/** @internal */
|
|
3074
2667
|
_setupHandlers() {
|
|
3075
|
-
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new
|
|
2668
|
+
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new Ee(this.el, e, {
|
|
3076
2669
|
start: (t) => {
|
|
3077
2670
|
this._resizeStart(t);
|
|
3078
2671
|
},
|
|
@@ -3189,8 +2782,8 @@ class se extends Me {
|
|
|
3189
2782
|
}
|
|
3190
2783
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
3191
2784
|
_mouseDown(e) {
|
|
3192
|
-
if (!
|
|
3193
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Xs) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete
|
|
2785
|
+
if (!x.mouseHandled)
|
|
2786
|
+
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Xs) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete x.dragElement, delete x.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (e.currentTarget.addEventListener("touchmove", ve), e.currentTarget.addEventListener("touchend", ye)), e.preventDefault(), document.activeElement && document.activeElement.blur(), x.mouseHandled = !0), !0;
|
|
3194
2787
|
}
|
|
3195
2788
|
/** @internal method to call actual drag event */
|
|
3196
2789
|
_callDrag(e) {
|
|
@@ -3204,15 +2797,15 @@ class se extends Me {
|
|
|
3204
2797
|
var i;
|
|
3205
2798
|
const t = this.mouseDownEvent;
|
|
3206
2799
|
if (this.lastDrag = e, this.dragging)
|
|
3207
|
-
if (this._dragFollow(e),
|
|
3208
|
-
const s = Number.isInteger(
|
|
2800
|
+
if (this._dragFollow(e), x.pauseDrag) {
|
|
2801
|
+
const s = Number.isInteger(x.pauseDrag) ? x.pauseDrag : 100;
|
|
3209
2802
|
this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), s);
|
|
3210
2803
|
} else
|
|
3211
2804
|
this._callDrag(e);
|
|
3212
2805
|
else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
|
|
3213
|
-
this.dragging = !0,
|
|
2806
|
+
this.dragging = !0, x.dragElement = this;
|
|
3214
2807
|
const s = (i = this.el.gridstackNode) == null ? void 0 : i.grid;
|
|
3215
|
-
s ?
|
|
2808
|
+
s ? x.dropElement = s.el.ddElement.ddDroppable : delete x.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = u.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
|
|
3216
2809
|
const r = u.initEvent(e, { target: this.el, type: "dragstart" });
|
|
3217
2810
|
this.option.start && this.option.start(r, this.ui()), this.triggerEvent("dragstart", r), document.addEventListener("keydown", this._keyEvent);
|
|
3218
2811
|
}
|
|
@@ -3222,16 +2815,16 @@ class se extends Me {
|
|
|
3222
2815
|
_mouseUp(e) {
|
|
3223
2816
|
var t, i;
|
|
3224
2817
|
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", ve, !0), e.currentTarget.removeEventListener("touchend", ye, !0)), this.dragging) {
|
|
3225
|
-
delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i =
|
|
2818
|
+
delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i = x.dropElement) == null ? void 0 : i.el) === this.el.parentElement && delete x.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
|
|
3226
2819
|
const s = u.initEvent(e, { target: this.el, type: "dragstop" });
|
|
3227
|
-
this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s),
|
|
2820
|
+
this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s), x.dropElement && x.dropElement.drop(e);
|
|
3228
2821
|
}
|
|
3229
|
-
delete this.helper, delete this.mouseDownEvent, delete
|
|
2822
|
+
delete this.helper, delete this.mouseDownEvent, delete x.dragElement, delete x.dropElement, delete x.mouseHandled, e.preventDefault();
|
|
3230
2823
|
}
|
|
3231
2824
|
/** @internal call when keys are being pressed - use Esc to cancel, R to rotate */
|
|
3232
2825
|
_keyEvent(e) {
|
|
3233
2826
|
var s, r;
|
|
3234
|
-
const t = this.el.gridstackNode, i = (t == null ? void 0 : t.grid) || ((r = (s =
|
|
2827
|
+
const t = this.el.gridstackNode, i = (t == null ? void 0 : t.grid) || ((r = (s = x.dropElement) == null ? void 0 : s.el) == null ? void 0 : r.gridstack);
|
|
3235
2828
|
if (e.key === "Escape")
|
|
3236
2829
|
t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), i == null || i.cancelDrag(), this._mouseUp(this.mouseDownEvent);
|
|
3237
2830
|
else if (t && i && (e.key === "r" || e.key === "R")) {
|
|
@@ -3304,7 +2897,7 @@ class se extends Me {
|
|
|
3304
2897
|
}
|
|
3305
2898
|
}
|
|
3306
2899
|
se.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
3307
|
-
class
|
|
2900
|
+
class Ys extends Me {
|
|
3308
2901
|
constructor(e, t = {}) {
|
|
3309
2902
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
3310
2903
|
}
|
|
@@ -3315,10 +2908,10 @@ class Js extends Me {
|
|
|
3315
2908
|
super.off(e);
|
|
3316
2909
|
}
|
|
3317
2910
|
enable() {
|
|
3318
|
-
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), B && (this.el.addEventListener("pointerenter",
|
|
2911
|
+
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), B && (this.el.addEventListener("pointerenter", Ze), this.el.addEventListener("pointerleave", Qe)));
|
|
3319
2912
|
}
|
|
3320
2913
|
disable(e = !1) {
|
|
3321
|
-
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), B && (this.el.removeEventListener("pointerenter",
|
|
2914
|
+
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), B && (this.el.removeEventListener("pointerenter", Ze), this.el.removeEventListener("pointerleave", Qe)));
|
|
3322
2915
|
}
|
|
3323
2916
|
destroy() {
|
|
3324
2917
|
this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
|
|
@@ -3328,20 +2921,20 @@ class Js extends Me {
|
|
|
3328
2921
|
}
|
|
3329
2922
|
/** @internal called when the cursor enters our area - prepare for a possible drop and track leaving */
|
|
3330
2923
|
_mouseEnter(e) {
|
|
3331
|
-
if (!
|
|
2924
|
+
if (!x.dragElement || !this._canDrop(x.dragElement.el))
|
|
3332
2925
|
return;
|
|
3333
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2926
|
+
e.preventDefault(), e.stopPropagation(), x.dropElement && x.dropElement !== this && x.dropElement._mouseLeave(e, !0), x.dropElement = this;
|
|
3334
2927
|
const t = u.initEvent(e, { target: this.el, type: "dropover" });
|
|
3335
|
-
this.option.over && this.option.over(t, this._ui(
|
|
2928
|
+
this.option.over && this.option.over(t, this._ui(x.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
|
|
3336
2929
|
}
|
|
3337
2930
|
/** @internal called when the item is leaving our area, stop tracking if we had moving item */
|
|
3338
2931
|
_mouseLeave(e, t = !1) {
|
|
3339
2932
|
var s;
|
|
3340
|
-
if (!
|
|
2933
|
+
if (!x.dragElement || x.dropElement !== this)
|
|
3341
2934
|
return;
|
|
3342
2935
|
e.preventDefault(), e.stopPropagation();
|
|
3343
2936
|
const i = u.initEvent(e, { target: this.el, type: "dropout" });
|
|
3344
|
-
if (this.option.out && this.option.out(i, this._ui(
|
|
2937
|
+
if (this.option.out && this.option.out(i, this._ui(x.dragElement)), this.triggerEvent("dropout", i), x.dropElement === this && (delete x.dropElement, !t)) {
|
|
3345
2938
|
let r, n = this.el.parentElement;
|
|
3346
2939
|
for (; !r && n; )
|
|
3347
2940
|
r = (s = n.ddElement) == null ? void 0 : s.ddDroppable, n = n.parentElement;
|
|
@@ -3352,7 +2945,7 @@ class Js extends Me {
|
|
|
3352
2945
|
drop(e) {
|
|
3353
2946
|
e.preventDefault();
|
|
3354
2947
|
const t = u.initEvent(e, { target: this.el, type: "drop" });
|
|
3355
|
-
this.option.drop && this.option.drop(t, this._ui(
|
|
2948
|
+
this.option.drop && this.option.drop(t, this._ui(x.dragElement)), this.triggerEvent("drop", t);
|
|
3356
2949
|
}
|
|
3357
2950
|
/** @internal true if element matches the string/method accept option */
|
|
3358
2951
|
_canDrop(e) {
|
|
@@ -3396,13 +2989,13 @@ class He {
|
|
|
3396
2989
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
3397
2990
|
}
|
|
3398
2991
|
setupDroppable(e) {
|
|
3399
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
2992
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Ys(this.el, e), this;
|
|
3400
2993
|
}
|
|
3401
2994
|
cleanDroppable() {
|
|
3402
2995
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
3403
2996
|
}
|
|
3404
2997
|
}
|
|
3405
|
-
class
|
|
2998
|
+
class Js {
|
|
3406
2999
|
/**
|
|
3407
3000
|
* Enable/disable/configure resizing for grid elements.
|
|
3408
3001
|
*
|
|
@@ -3498,7 +3091,7 @@ class Qs {
|
|
|
3498
3091
|
}
|
|
3499
3092
|
on(e, t, i) {
|
|
3500
3093
|
return this._getDDElements(e).forEach((s) => s.on(t, (r) => {
|
|
3501
|
-
i(r,
|
|
3094
|
+
i(r, x.dragElement ? x.dragElement.el : r.target, x.dragElement ? x.dragElement.helper : null);
|
|
3502
3095
|
})), this;
|
|
3503
3096
|
}
|
|
3504
3097
|
off(e, t) {
|
|
@@ -3517,7 +3110,7 @@ class Qs {
|
|
|
3517
3110
|
* Copyright (c) 2021-2025 Alain Dumesny
|
|
3518
3111
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
3519
3112
|
*/
|
|
3520
|
-
const
|
|
3113
|
+
const S = new Js();
|
|
3521
3114
|
class y {
|
|
3522
3115
|
/**
|
|
3523
3116
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
@@ -3585,7 +3178,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3585
3178
|
*/
|
|
3586
3179
|
get placeholder() {
|
|
3587
3180
|
if (!this._placeholder) {
|
|
3588
|
-
this._placeholder = u.createDiv([this.opts.placeholderClass,
|
|
3181
|
+
this._placeholder = u.createDiv([this.opts.placeholderClass, A.itemClass, this.opts.itemClass]);
|
|
3589
3182
|
const e = u.createDiv(["placeholder-content"], this._placeholder);
|
|
3590
3183
|
this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
|
|
3591
3184
|
}
|
|
@@ -3607,26 +3200,26 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3607
3200
|
!s.columnWidth && !(l != null && l.length) ? delete t.columnOpts : (s.columnMax = s.columnMax || 12, (l == null ? void 0 : l.length) > 1 && l.sort((d, f) => (f.w || 0) - (d.w || 0)));
|
|
3608
3201
|
}
|
|
3609
3202
|
const r = {
|
|
3610
|
-
...u.cloneDeep(
|
|
3611
|
-
column: u.toNumber(e.getAttribute("gs-column")) ||
|
|
3612
|
-
minRow: i || u.toNumber(e.getAttribute("gs-min-row")) ||
|
|
3613
|
-
maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) ||
|
|
3614
|
-
staticGrid: u.toBool(e.getAttribute("gs-static")) ||
|
|
3203
|
+
...u.cloneDeep(A),
|
|
3204
|
+
column: u.toNumber(e.getAttribute("gs-column")) || A.column,
|
|
3205
|
+
minRow: i || u.toNumber(e.getAttribute("gs-min-row")) || A.minRow,
|
|
3206
|
+
maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) || A.maxRow,
|
|
3207
|
+
staticGrid: u.toBool(e.getAttribute("gs-static")) || A.staticGrid,
|
|
3615
3208
|
sizeToContent: u.toBool(e.getAttribute("gs-size-to-content")) || void 0,
|
|
3616
3209
|
draggable: {
|
|
3617
|
-
handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") ||
|
|
3210
|
+
handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || A.draggable.handle
|
|
3618
3211
|
},
|
|
3619
3212
|
removableOptions: {
|
|
3620
|
-
accept: t.itemClass ||
|
|
3621
|
-
decline:
|
|
3213
|
+
accept: t.itemClass || A.removableOptions.accept,
|
|
3214
|
+
decline: A.removableOptions.decline
|
|
3622
3215
|
}
|
|
3623
3216
|
};
|
|
3624
3217
|
e.getAttribute("gs-animate") && (r.animate = u.toBool(e.getAttribute("gs-animate"))), t = u.defaults(t, r), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(t), t.rtl === "auto" && (t.rtl = e.style.direction === "rtl"), t.rtl && this.el.classList.add("grid-stack-rtl");
|
|
3625
|
-
const n = this.el.closest("." +
|
|
3218
|
+
const n = this.el.closest("." + A.itemClass), o = n == null ? void 0 : n.gridstackNode;
|
|
3626
3219
|
if (o && (o.subGrid = this, this.parentGridNode = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = t.cellHeight === "auto", this._isAutoCellHeight || t.cellHeight === "initial")
|
|
3627
3220
|
this.cellHeight(void 0);
|
|
3628
3221
|
else {
|
|
3629
|
-
typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !==
|
|
3222
|
+
typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== A.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
|
|
3630
3223
|
const l = t.cellHeight;
|
|
3631
3224
|
delete t.cellHeight, this.cellHeight(l);
|
|
3632
3225
|
}
|
|
@@ -3646,7 +3239,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3646
3239
|
const l = t.children;
|
|
3647
3240
|
delete t.children, l.length && this.load(l);
|
|
3648
3241
|
}
|
|
3649
|
-
this.setAnimation(), t.subGridDynamic && !
|
|
3242
|
+
this.setAnimation(), t.subGridDynamic && !x.pauseDrag && (x.pauseDrag = !0), ((c = t.draggable) == null ? void 0 : c.pause) !== void 0 && (x.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
|
|
3650
3243
|
}
|
|
3651
3244
|
_updateColumnVar(e = this.opts) {
|
|
3652
3245
|
this.el.classList.add("gs-" + e.column), typeof e.column == "number" && this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`);
|
|
@@ -3733,8 +3326,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3733
3326
|
t.column === "auto" && (h = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
|
|
3734
3327
|
let c = r.el.querySelector(".grid-stack-item-content"), l, d;
|
|
3735
3328
|
if (s && (this._removeDD(r.el), d = { ...r, x: 0, y: 0 }, u.removeInternalForSave(d), delete d.subGridOpts, r.content && (d.content = r.content, delete r.content), y.addRemoveCB ? l = y.addRemoveCB(this.el, d, !0, !1) : (l = u.createDiv(["grid-stack-item"]), l.appendChild(c), c = u.createDiv(["grid-stack-item-content"], r.el)), this.prepareDragDrop(r.el)), i) {
|
|
3736
|
-
const b = h ? t.column : r.w,
|
|
3737
|
-
|
|
3329
|
+
const b = h ? t.column : r.w, w = r.h + i.h, C = r.el.style;
|
|
3330
|
+
C.transition = "none", this.update(r.el, { w: b, h: w }), setTimeout(() => C.transition = null);
|
|
3738
3331
|
}
|
|
3739
3332
|
const f = r.subGrid = y.addGrid(c, t);
|
|
3740
3333
|
return i != null && i._moving && (f._isTemp = !0), h && (f._autoColumn = !0), s && f.makeWidget(l, d), i && (i._moving ? window.setTimeout(() => u.simulateMouseEvent(i._event, "mouseenter", f.el), 0) : f.makeWidget(r.el, r)), this.resizeToContentCheck(!1, r), f;
|
|
@@ -3779,7 +3372,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3779
3372
|
const n = u.cloneDeep(this.opts);
|
|
3780
3373
|
n.marginBottom === n.marginTop && n.marginRight === n.marginLeft && n.marginTop === n.marginRight && (n.margin = n.marginTop, delete n.marginTop, delete n.marginRight, delete n.marginBottom, delete n.marginLeft), n.rtl === (this.el.style.direction === "rtl") && (n.rtl = "auto"), this._isAutoCellHeight && (n.cellHeight = "auto"), this._autoColumn && (n.column = "auto");
|
|
3781
3374
|
const o = n._alwaysShowResizeHandle;
|
|
3782
|
-
return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n,
|
|
3375
|
+
return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n, A), n.children = r, n;
|
|
3783
3376
|
}
|
|
3784
3377
|
return r;
|
|
3785
3378
|
}
|
|
@@ -4528,7 +4121,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4528
4121
|
}
|
|
4529
4122
|
/** @internal */
|
|
4530
4123
|
_prepareElement(e, t = !1, i) {
|
|
4531
|
-
i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(
|
|
4124
|
+
i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(A.itemClass, this.opts.itemClass);
|
|
4532
4125
|
const s = u.shouldSizeToContent(i);
|
|
4533
4126
|
return s ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), s && this.resizeToContentCheck(!1, i), u.lazyLoad(i) || this.prepareDragDrop(i.el), this;
|
|
4534
4127
|
}
|
|
@@ -4647,7 +4240,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4647
4240
|
* // Access drag & drop functionality
|
|
4648
4241
|
*/
|
|
4649
4242
|
static getDD() {
|
|
4650
|
-
return
|
|
4243
|
+
return S;
|
|
4651
4244
|
}
|
|
4652
4245
|
/**
|
|
4653
4246
|
* call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
|
|
@@ -4659,8 +4252,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4659
4252
|
* @param root optional root which defaults to document (for shadow dom pass the parent HTMLDocument)
|
|
4660
4253
|
*/
|
|
4661
4254
|
static setupDragIn(e, t, i, s = document) {
|
|
4662
|
-
(t == null ? void 0 : t.pause) !== void 0 && (
|
|
4663
|
-
|
|
4255
|
+
(t == null ? void 0 : t.pause) !== void 0 && (x.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? u.getElements(e, s) : e).forEach((n, o) => {
|
|
4256
|
+
S.isDraggable(n) || S.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
|
|
4664
4257
|
});
|
|
4665
4258
|
}
|
|
4666
4259
|
/**
|
|
@@ -4812,12 +4405,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4812
4405
|
}
|
|
4813
4406
|
/** @internal removes any drag&drop present (called during destroy) */
|
|
4814
4407
|
_removeDD(e) {
|
|
4815
|
-
return
|
|
4408
|
+
return S.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
|
|
4816
4409
|
}
|
|
4817
4410
|
/** @internal called to add drag over to support widgets being added externally */
|
|
4818
4411
|
_setupAcceptWidget() {
|
|
4819
4412
|
if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
|
|
4820
|
-
return
|
|
4413
|
+
return S.droppable(this.el, "destroy"), this;
|
|
4821
4414
|
let e, t;
|
|
4822
4415
|
const i = (s, r, n) => {
|
|
4823
4416
|
var f;
|
|
@@ -4842,7 +4435,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4842
4435
|
if (o._temporaryRemoved) {
|
|
4843
4436
|
if (o.x = Math.max(0, Math.round(c / t)), o.y = Math.max(0, Math.round(h / e)), delete o.autoPosition, this.engine.nodeBoundFix(o), !this.engine.willItFit(o)) {
|
|
4844
4437
|
if (o.autoPosition = !0, !this.engine.willItFit(o)) {
|
|
4845
|
-
|
|
4438
|
+
S.off(r, "drag");
|
|
4846
4439
|
return;
|
|
4847
4440
|
}
|
|
4848
4441
|
o._willFitPos && (u.copyPos(o, o._willFitPos), delete o._willFitPos);
|
|
@@ -4851,7 +4444,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4851
4444
|
} else
|
|
4852
4445
|
this._dragOrResize(n, s, d, o, t, e);
|
|
4853
4446
|
};
|
|
4854
|
-
return
|
|
4447
|
+
return S.droppable(this.el, {
|
|
4855
4448
|
accept: (s) => {
|
|
4856
4449
|
const r = s.gridstackNode || this._readAttr(s, !1);
|
|
4857
4450
|
if ((r == null ? void 0 : r.grid) === this)
|
|
@@ -4890,7 +4483,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4890
4483
|
o.grid || (o.el || (o = { ...o }), o._isExternal = !0, n.gridstackNode = o);
|
|
4891
4484
|
const h = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
|
|
4892
4485
|
return o.grid && o.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = o), r.gridstackNode = o = { ...o, w: h, h: c, grid: this }, delete o.x, delete o.y, this.engine.cleanupNode(o).nodeBoundFix(o), o._initDD = o._isExternal = // DOM needs to be re-parented on a drop
|
|
4893
|
-
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1),
|
|
4486
|
+
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1), S.on(r, "drag", i), i(s, r, n), !1;
|
|
4894
4487
|
}).on(this.el, "dropout", (s, r, n) => {
|
|
4895
4488
|
const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
|
|
4896
4489
|
return o && (!o.grid || o.grid === this) && (this._leave(r, n), this._isTemp && this.removeAsSubGrid(o)), !1;
|
|
@@ -4906,7 +4499,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4906
4499
|
const v = l.grid;
|
|
4907
4500
|
v.engine.removeNodeFromLayoutCache(l), v.engine.removedNodes.push(l), v._triggerRemoveEvent()._triggerChangeEvent(), v.parentGridNode && !v.engine.nodes.length && v.opts.subGridDynamic && v.removeAsSubGrid();
|
|
4908
4501
|
}
|
|
4909
|
-
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp,
|
|
4502
|
+
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, S.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
|
|
4910
4503
|
return !1;
|
|
4911
4504
|
const d = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
|
|
4912
4505
|
return u.copyPos(o, this._readAttr(this.placeholder)), u.removePositioningStyles(r), c && (o.content || o.subGridOpts || y.addRemoveCB) ? (delete o.el, r = this.addWidget(o)) : (this._prepareElement(r, !0, o), this.el.appendChild(r), this.resizeToContentCheck(!1, o), d && (d.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, l && l.grid ? l : void 0, o), !1;
|
|
@@ -4924,7 +4517,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4924
4517
|
if (typeof this.opts.removable != "string")
|
|
4925
4518
|
return this;
|
|
4926
4519
|
const e = document.querySelector(this.opts.removable);
|
|
4927
|
-
return e ? (!this.opts.staticGrid && !
|
|
4520
|
+
return e ? (!this.opts.staticGrid && !S.isDroppable(e) && S.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => y._itemRemoving(i, !0)).on(e, "dropout", (t, i) => y._itemRemoving(i, !1)), this) : this;
|
|
4928
4521
|
}
|
|
4929
4522
|
/**
|
|
4930
4523
|
* prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
|
|
@@ -4956,7 +4549,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4956
4549
|
this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), f.type === "resizestop" && (Number.isInteger(i.sizeToContent) && (i.sizeToContent = i.h), this.resizeToContentCheck(p, i));
|
|
4957
4550
|
}
|
|
4958
4551
|
};
|
|
4959
|
-
|
|
4552
|
+
S.draggable(e, {
|
|
4960
4553
|
start: c,
|
|
4961
4554
|
stop: d,
|
|
4962
4555
|
drag: l
|
|
@@ -4966,7 +4559,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4966
4559
|
resize: l
|
|
4967
4560
|
}), i._initDD = !0;
|
|
4968
4561
|
}
|
|
4969
|
-
return
|
|
4562
|
+
return S.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
|
|
4970
4563
|
}
|
|
4971
4564
|
/** @internal handles actual drag/resize start */
|
|
4972
4565
|
_onStartMoving(e, t, i, s, r, n) {
|
|
@@ -4985,7 +4578,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4985
4578
|
};
|
|
4986
4579
|
if (s.el = this.placeholder, s._lastUiPosition = i.position, s._prevYPix = i.position.top, s._moving = t.type === "dragstart", s._resizing = t.type === "resizestart", delete s._lastTried, t.type === "dropover" && s._temporaryRemoved && (this.engine.addNode(s), s._moving = !0), this.engine.cacheRects(r, n, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
|
|
4987
4580
|
const h = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
|
|
4988
|
-
|
|
4581
|
+
S.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, h)).resizable(e, "option", "minHeight", n * Math.min(s.minH || 1, c)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, h)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, c)).resizable(e, "option", "maxHeightMoveUp", n * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
|
|
4989
4582
|
}
|
|
4990
4583
|
}
|
|
4991
4584
|
/** @internal handles actual drag/resize */
|
|
@@ -4998,22 +4591,22 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4998
4591
|
return;
|
|
4999
4592
|
const b = i.position.top - s._prevYPix;
|
|
5000
4593
|
s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && u.updateScrollPosition(e, i.position, b);
|
|
5001
|
-
const
|
|
5002
|
-
o.x = Math.round(
|
|
5003
|
-
const
|
|
4594
|
+
const w = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), C = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : d);
|
|
4595
|
+
o.x = Math.round(w / r), o.y = Math.round(C / n);
|
|
4596
|
+
const E = this._extraDragRow;
|
|
5004
4597
|
if (this.engine.collide(s, o)) {
|
|
5005
|
-
const
|
|
5006
|
-
let N = Math.max(0, o.y + s.h -
|
|
5007
|
-
this.opts.maxRow &&
|
|
4598
|
+
const D = this.getRow();
|
|
4599
|
+
let N = Math.max(0, o.y + s.h - D);
|
|
4600
|
+
this.opts.maxRow && D + N > this.opts.maxRow && (N = Math.max(0, this.opts.maxRow - D)), this._extraDragRow = N;
|
|
5008
4601
|
} else
|
|
5009
4602
|
this._extraDragRow = 0;
|
|
5010
|
-
if (this._extraDragRow !==
|
|
4603
|
+
if (this._extraDragRow !== E && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
|
|
5011
4604
|
return;
|
|
5012
4605
|
} else if (t.type === "resize") {
|
|
5013
4606
|
if (o.x < 0 || (u.updateScrollResize(t, e, n), o.w = Math.round((i.size.width - c) / r), o.h = Math.round((i.size.height - d) / n), s.w === o.w && s.h === o.h) || s._lastTried && s._lastTried.w === o.w && s._lastTried.h === o.h)
|
|
5014
4607
|
return;
|
|
5015
|
-
const b = i.position.left + c,
|
|
5016
|
-
o.x = Math.round(b / r), o.y = Math.round(
|
|
4608
|
+
const b = i.position.left + c, w = i.position.top + d;
|
|
4609
|
+
o.x = Math.round(b / r), o.y = Math.round(w / n), h = !0;
|
|
5017
4610
|
}
|
|
5018
4611
|
s._event = t, s._lastTried = o;
|
|
5019
4612
|
const v = {
|
|
@@ -5042,7 +4635,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
5042
4635
|
_leave(e, t) {
|
|
5043
4636
|
t = t || e;
|
|
5044
4637
|
const i = t.gridstackNode;
|
|
5045
|
-
if (!i || (t.style.transform = t.style.transformOrigin = null,
|
|
4638
|
+
if (!i || (t.style.transform = t.style.transformOrigin = null, S.off(e, "drag"), i._temporaryRemoved))
|
|
5046
4639
|
return;
|
|
5047
4640
|
i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
|
|
5048
4641
|
const s = i._sidebarOrig;
|
|
@@ -5050,7 +4643,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
5050
4643
|
}
|
|
5051
4644
|
// legacy method removed
|
|
5052
4645
|
commit() {
|
|
5053
|
-
return
|
|
4646
|
+
return qs(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
5054
4647
|
}
|
|
5055
4648
|
}
|
|
5056
4649
|
y.renderCB = (a, e) => {
|
|
@@ -5062,28 +4655,28 @@ y.Engine = $;
|
|
|
5062
4655
|
y.GDRev = "12.3.2";
|
|
5063
4656
|
const le = /* @__PURE__ */ new WeakMap();
|
|
5064
4657
|
function Zs({ children: a }) {
|
|
5065
|
-
const { _gridStack: { value: e, set: t }, initialOptions: i } = Le(), s =
|
|
4658
|
+
const { _gridStack: { value: e, set: t }, initialOptions: i } = Le(), s = Q(/* @__PURE__ */ new Map()), r = Q(null), n = Q(i), o = K((c, l) => {
|
|
5066
4659
|
if (l.id && l.grid) {
|
|
5067
4660
|
let d = le.get(l.grid);
|
|
5068
4661
|
d || (d = /* @__PURE__ */ new Map(), le.set(l.grid, d)), d.set(l.id, c), s.current.set(l.id, c);
|
|
5069
4662
|
}
|
|
5070
|
-
}, []), h =
|
|
5071
|
-
return
|
|
4663
|
+
}, []), h = K(() => r.current ? (y.renderCB = o, y.init(n.current, r.current)) : null, [o]);
|
|
4664
|
+
return Ve(() => {
|
|
5072
4665
|
if (!tt(i, n.current) && e)
|
|
5073
4666
|
try {
|
|
5074
4667
|
e.removeAll(!1), e.destroy(!1), s.current.clear(), le.delete(e), n.current = i, t(h());
|
|
5075
4668
|
} catch (c) {
|
|
5076
4669
|
console.error("Error reinitializing gridstack", c);
|
|
5077
4670
|
}
|
|
5078
|
-
}, [i, e, h, t]),
|
|
4671
|
+
}, [i, e, h, t]), Ve(() => {
|
|
5079
4672
|
if (!e)
|
|
5080
4673
|
try {
|
|
5081
4674
|
t(h());
|
|
5082
4675
|
} catch (c) {
|
|
5083
4676
|
console.error("Error initializing gridstack", c);
|
|
5084
4677
|
}
|
|
5085
|
-
}, [e, h, t]), g(
|
|
5086
|
-
value:
|
|
4678
|
+
}, [e, h, t]), g(Ft.Provider, {
|
|
4679
|
+
value: Ct(() => ({
|
|
5087
4680
|
getWidgetContainer: (c) => {
|
|
5088
4681
|
if (e) {
|
|
5089
4682
|
const l = le.get(e);
|
|
@@ -5099,18 +4692,18 @@ function Zs({ children: a }) {
|
|
|
5099
4692
|
})
|
|
5100
4693
|
});
|
|
5101
4694
|
}
|
|
5102
|
-
const
|
|
4695
|
+
const Wt = U((a, e) => {
|
|
5103
4696
|
const t = Le();
|
|
5104
|
-
return
|
|
4697
|
+
return wt(e, () => ({
|
|
5105
4698
|
addWidget: t.addWidget,
|
|
5106
4699
|
removeWidget: t.removeWidget,
|
|
5107
4700
|
addSubGrid: t.addSubGrid,
|
|
5108
4701
|
removeAll: t.removeAll
|
|
5109
4702
|
}), [t]), null;
|
|
5110
4703
|
});
|
|
5111
|
-
|
|
5112
|
-
const
|
|
5113
|
-
const s =
|
|
4704
|
+
Wt.displayName = "RefHandler";
|
|
4705
|
+
const Gt = U(({ options: a, widgets: e, onChange: t }, i) => {
|
|
4706
|
+
const s = Ct(() => ({
|
|
5114
4707
|
...a,
|
|
5115
4708
|
children: e
|
|
5116
4709
|
}), [e]), r = (o, h, c) => {
|
|
@@ -5137,32 +4730,32 @@ const Wt = j(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
5137
4730
|
}));
|
|
5138
4731
|
},
|
|
5139
4732
|
onChange: t,
|
|
5140
|
-
children: [g(
|
|
4733
|
+
children: [g(Wt, {
|
|
5141
4734
|
ref: i
|
|
5142
4735
|
}), g(Zs, {
|
|
5143
4736
|
children: g(Vs, {})
|
|
5144
4737
|
})]
|
|
5145
4738
|
});
|
|
5146
4739
|
});
|
|
5147
|
-
|
|
4740
|
+
Gt.displayName = "F0GridStack";
|
|
5148
4741
|
const Or = pt(
|
|
5149
4742
|
"F0GridStack",
|
|
5150
|
-
|
|
5151
|
-
),
|
|
4743
|
+
Gt
|
|
4744
|
+
), Qs = ({ benefits: a }) => g("div", {
|
|
5152
4745
|
className: "flex flex-col gap-2",
|
|
5153
|
-
children: a.map((e, t) => g(
|
|
4746
|
+
children: a.map((e, t) => g(er, {
|
|
5154
4747
|
text: e
|
|
5155
4748
|
}, t))
|
|
5156
|
-
}),
|
|
4749
|
+
}), er = ({ text: a }) => R("div", {
|
|
5157
4750
|
className: "flex flex-row items-start gap-2",
|
|
5158
|
-
children: [g(
|
|
4751
|
+
children: [g(Ti, {
|
|
5159
4752
|
icon: Li,
|
|
5160
4753
|
size: "md",
|
|
5161
4754
|
className: "text-f1-icon-positive"
|
|
5162
4755
|
}), g("span", {
|
|
5163
4756
|
children: a
|
|
5164
4757
|
})]
|
|
5165
|
-
}), $t =
|
|
4758
|
+
}), $t = U(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => R("div", {
|
|
5166
4759
|
ref: c,
|
|
5167
4760
|
className: L("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
|
|
5168
4761
|
children: [g("div", {
|
|
@@ -5188,10 +4781,10 @@ const Or = pt(
|
|
|
5188
4781
|
})]
|
|
5189
4782
|
}), (o || h) && R("div", {
|
|
5190
4783
|
className: "flex justify-start gap-2",
|
|
5191
|
-
children: [o && g(
|
|
4784
|
+
children: [o && g(Oi, {
|
|
5192
4785
|
icon: o.icon,
|
|
5193
4786
|
text: o.label
|
|
5194
|
-
}), h && g(
|
|
4787
|
+
}), h && g(Ai, {
|
|
5195
4788
|
variant: h.variant || "positive",
|
|
5196
4789
|
text: h.label
|
|
5197
4790
|
})]
|
|
@@ -5199,7 +4792,7 @@ const Or = pt(
|
|
|
5199
4792
|
className: "font-bold text-xl text-f1-foreground",
|
|
5200
4793
|
children: a
|
|
5201
4794
|
})]
|
|
5202
|
-
}), g(
|
|
4795
|
+
}), g(Qs, {
|
|
5203
4796
|
benefits: t
|
|
5204
4797
|
})]
|
|
5205
4798
|
}), i && g("div", {
|
|
@@ -5209,7 +4802,7 @@ const Or = pt(
|
|
|
5209
4802
|
})]
|
|
5210
4803
|
}));
|
|
5211
4804
|
$t.displayName = "ProductBlankslate";
|
|
5212
|
-
function
|
|
4805
|
+
function tr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
|
|
5213
4806
|
const [n, o] = M(a);
|
|
5214
4807
|
return ce(() => {
|
|
5215
4808
|
o(a);
|
|
@@ -5230,7 +4823,7 @@ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
5230
4823
|
module: s,
|
|
5231
4824
|
size: "lg"
|
|
5232
4825
|
}), t]
|
|
5233
|
-
}), g(
|
|
4826
|
+
}), g(Fi, {
|
|
5234
4827
|
variant: "outline",
|
|
5235
4828
|
icon: bt,
|
|
5236
4829
|
onClick: e,
|
|
@@ -5247,24 +4840,24 @@ function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
5247
4840
|
})
|
|
5248
4841
|
});
|
|
5249
4842
|
}
|
|
5250
|
-
function
|
|
5251
|
-
const [
|
|
4843
|
+
function Ar({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessage: r, successMessage: n, loadingState: o, nextSteps: h, closeLabel: c, primaryAction: l, modalTitle: d, modalModule: f, secondaryAction: p, portalContainer: m, tag: v, promoTag: b, showResponseDialog: w = !0 }) {
|
|
4844
|
+
const [C, E] = M(a), [D, N] = M(null), [k, O] = M(!1), G = async () => {
|
|
5252
4845
|
if (l != null && l.onClick) {
|
|
5253
|
-
|
|
4846
|
+
O(!0);
|
|
5254
4847
|
try {
|
|
5255
|
-
await l.onClick(),
|
|
4848
|
+
await l.onClick(), E(!1), w && N("success");
|
|
5256
4849
|
} catch {
|
|
5257
|
-
|
|
4850
|
+
w && N("error");
|
|
5258
4851
|
} finally {
|
|
5259
|
-
|
|
4852
|
+
O(!1);
|
|
5260
4853
|
}
|
|
5261
4854
|
}
|
|
5262
4855
|
}, H = () => {
|
|
5263
|
-
|
|
5264
|
-
},
|
|
5265
|
-
return R(
|
|
5266
|
-
children: [g(
|
|
5267
|
-
isOpen:
|
|
4856
|
+
E(!1), e == null || e();
|
|
4857
|
+
}, I = k;
|
|
4858
|
+
return R(xe, {
|
|
4859
|
+
children: [g(tr, {
|
|
4860
|
+
isOpen: C,
|
|
5268
4861
|
onClose: H,
|
|
5269
4862
|
title: d,
|
|
5270
4863
|
module: f,
|
|
@@ -5280,14 +4873,14 @@ function Lr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5280
4873
|
promoTag: b,
|
|
5281
4874
|
actions: R("div", {
|
|
5282
4875
|
className: "flex gap-3",
|
|
5283
|
-
children: [l && g(
|
|
4876
|
+
children: [l && g(q, {
|
|
5284
4877
|
variant: l.variant,
|
|
5285
|
-
label:
|
|
4878
|
+
label: I ? o.label : l.label,
|
|
5286
4879
|
icon: l.icon || void 0,
|
|
5287
|
-
onClick:
|
|
4880
|
+
onClick: G,
|
|
5288
4881
|
loading: l.loading,
|
|
5289
4882
|
size: l.size
|
|
5290
|
-
}), p && g(
|
|
4883
|
+
}), p && g(q, {
|
|
5291
4884
|
onClick: p.onClick,
|
|
5292
4885
|
label: p.label,
|
|
5293
4886
|
variant: p.variant,
|
|
@@ -5297,12 +4890,12 @@ function Lr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5297
4890
|
})
|
|
5298
4891
|
})
|
|
5299
4892
|
})
|
|
5300
|
-
}),
|
|
4893
|
+
}), D && w && g(xt, {
|
|
5301
4894
|
open: !0,
|
|
5302
4895
|
onClose: () => {
|
|
5303
4896
|
H(), N(null);
|
|
5304
4897
|
},
|
|
5305
|
-
success:
|
|
4898
|
+
success: D === "success",
|
|
5306
4899
|
errorMessage: r,
|
|
5307
4900
|
successMessage: n,
|
|
5308
4901
|
nextSteps: h,
|
|
@@ -5311,7 +4904,7 @@ function Lr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5311
4904
|
})]
|
|
5312
4905
|
});
|
|
5313
4906
|
}
|
|
5314
|
-
function
|
|
4907
|
+
function ir({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
|
|
5315
4908
|
const [c, l] = M(!1), d = () => {
|
|
5316
4909
|
l(!0), i && i();
|
|
5317
4910
|
};
|
|
@@ -5319,16 +4912,16 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5319
4912
|
n && n(!c);
|
|
5320
4913
|
}, [n, c]);
|
|
5321
4914
|
const f = a == null ? void 0 : a.includes(".mp4");
|
|
5322
|
-
return g(
|
|
5323
|
-
children: c ? null : R(
|
|
4915
|
+
return g(xe, {
|
|
4916
|
+
children: c ? null : R(Ii, {
|
|
5324
4917
|
style: {
|
|
5325
4918
|
width: r
|
|
5326
4919
|
},
|
|
5327
4920
|
className: "relative bg-f1-background p-1",
|
|
5328
|
-
children: [R(
|
|
4921
|
+
children: [R(Wi, {
|
|
5329
4922
|
children: [s && g("div", {
|
|
5330
4923
|
className: "absolute right-2 top-2 z-10",
|
|
5331
|
-
children: g(
|
|
4924
|
+
children: g(q, {
|
|
5332
4925
|
variant: "ghost",
|
|
5333
4926
|
icon: bt,
|
|
5334
4927
|
size: "sm",
|
|
@@ -5352,18 +4945,18 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5352
4945
|
}))
|
|
5353
4946
|
}), R("div", {
|
|
5354
4947
|
className: "flex flex-col gap-[2px] p-3",
|
|
5355
|
-
children: [g(
|
|
4948
|
+
children: [g(je, {
|
|
5356
4949
|
className: "text-lg font-medium",
|
|
5357
4950
|
children: e
|
|
5358
|
-
}), g(
|
|
4951
|
+
}), g(je, {
|
|
5359
4952
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
5360
4953
|
children: t
|
|
5361
4954
|
})]
|
|
5362
4955
|
})]
|
|
5363
4956
|
})]
|
|
5364
|
-
}), o && g(
|
|
4957
|
+
}), o && g(Gi, {
|
|
5365
4958
|
className: "p-3",
|
|
5366
|
-
children: o.map((p) => p.type === "upsell" ? g(
|
|
4959
|
+
children: o.map((p) => p.type === "upsell" ? g(_t, {
|
|
5367
4960
|
label: p.label,
|
|
5368
4961
|
onRequest: p.onClick,
|
|
5369
4962
|
errorMessage: p.errorMessage,
|
|
@@ -5373,7 +4966,7 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5373
4966
|
closeLabel: p.closeLabel,
|
|
5374
4967
|
showConfirmation: h && p.showConfirmation,
|
|
5375
4968
|
variant: p.variant
|
|
5376
|
-
}, p.label) : g(
|
|
4969
|
+
}, p.label) : g(q, {
|
|
5377
4970
|
label: p.label,
|
|
5378
4971
|
onClick: p.onClick,
|
|
5379
4972
|
variant: p.variant
|
|
@@ -5382,8 +4975,8 @@ function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5382
4975
|
})
|
|
5383
4976
|
});
|
|
5384
4977
|
}
|
|
5385
|
-
const
|
|
5386
|
-
const r = (h) => h.variant === "promote" ? g(
|
|
4978
|
+
const sr = U(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
4979
|
+
const r = (h) => h.variant === "promote" ? g(_t, {
|
|
5387
4980
|
label: h.label,
|
|
5388
4981
|
onRequest: async () => {
|
|
5389
4982
|
await h.onClick();
|
|
@@ -5396,7 +4989,7 @@ const rr = j(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5396
4989
|
showIcon: h.showIcon,
|
|
5397
4990
|
showConfirmation: h.showConfirmation,
|
|
5398
4991
|
variant: h.variant
|
|
5399
|
-
}) : g(
|
|
4992
|
+
}) : g(q, {
|
|
5400
4993
|
onClick: h.onClick,
|
|
5401
4994
|
label: h.label,
|
|
5402
4995
|
variant: h.variant || "default",
|
|
@@ -5411,32 +5004,32 @@ const rr = j(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5411
5004
|
children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
|
|
5412
5005
|
});
|
|
5413
5006
|
});
|
|
5414
|
-
|
|
5415
|
-
function
|
|
5416
|
-
const [
|
|
5417
|
-
e(
|
|
5418
|
-
},
|
|
5419
|
-
if (
|
|
5420
|
-
|
|
5007
|
+
sr.displayName = "UpsellingBanner";
|
|
5008
|
+
function Tr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = Ui, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: v, hideLabel: b = !1 }) {
|
|
5009
|
+
const [w, C] = M(!1), [E, D] = M(null), [N, k] = M(null), O = (z) => {
|
|
5010
|
+
e(z), v && v();
|
|
5011
|
+
}, G = async (z) => {
|
|
5012
|
+
if (z.type === "upsell") {
|
|
5013
|
+
k(z);
|
|
5421
5014
|
try {
|
|
5422
|
-
await
|
|
5015
|
+
await z.onClick(), z.showConfirmation && (C(!0), D("success"));
|
|
5423
5016
|
} catch {
|
|
5424
|
-
|
|
5017
|
+
C(!0), D("error");
|
|
5425
5018
|
}
|
|
5426
5019
|
}
|
|
5427
5020
|
}, H = () => {
|
|
5428
|
-
|
|
5429
|
-
},
|
|
5430
|
-
...
|
|
5431
|
-
onClick: () =>
|
|
5432
|
-
} :
|
|
5433
|
-
return R(
|
|
5021
|
+
D(null), C(!1), k(null), e(!1);
|
|
5022
|
+
}, I = a && !w, _ = m == null ? void 0 : m.map((z) => z.type === "upsell" ? {
|
|
5023
|
+
...z,
|
|
5024
|
+
onClick: () => G(z)
|
|
5025
|
+
} : z);
|
|
5026
|
+
return R(xe, {
|
|
5434
5027
|
children: [R(dt, {
|
|
5435
|
-
open:
|
|
5436
|
-
onOpenChange:
|
|
5028
|
+
open: I,
|
|
5029
|
+
onOpenChange: O,
|
|
5437
5030
|
children: [g(ct, {
|
|
5438
5031
|
asChild: !0,
|
|
5439
|
-
children: g(
|
|
5032
|
+
children: g(q, {
|
|
5440
5033
|
variant: i,
|
|
5441
5034
|
label: t,
|
|
5442
5035
|
size: s,
|
|
@@ -5448,7 +5041,7 @@ function Mr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5448
5041
|
side: n,
|
|
5449
5042
|
align: o,
|
|
5450
5043
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
5451
|
-
children: g(
|
|
5044
|
+
children: g(ir, {
|
|
5452
5045
|
mediaUrl: c,
|
|
5453
5046
|
title: l,
|
|
5454
5047
|
description: d,
|
|
@@ -5456,14 +5049,14 @@ function Mr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5456
5049
|
dismissible: !1,
|
|
5457
5050
|
width: f,
|
|
5458
5051
|
trackVisibility: p,
|
|
5459
|
-
actions:
|
|
5052
|
+
actions: _,
|
|
5460
5053
|
showConfirmation: !1
|
|
5461
5054
|
})
|
|
5462
5055
|
})]
|
|
5463
|
-
}), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation &&
|
|
5056
|
+
}), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation && E && g(xt, {
|
|
5464
5057
|
open: !0,
|
|
5465
5058
|
onClose: H,
|
|
5466
|
-
success:
|
|
5059
|
+
success: E === "success",
|
|
5467
5060
|
errorMessage: N.errorMessage,
|
|
5468
5061
|
successMessage: N.successMessage,
|
|
5469
5062
|
nextSteps: N.nextSteps,
|
|
@@ -5472,11 +5065,11 @@ function Mr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5472
5065
|
})]
|
|
5473
5066
|
});
|
|
5474
5067
|
}
|
|
5475
|
-
const
|
|
5476
|
-
const t =
|
|
5068
|
+
const rr = _e(null), nr = ({ children: a, fullScreen: e = !0 }) => {
|
|
5069
|
+
const t = Q(null), [i, s] = M(t.current);
|
|
5477
5070
|
return es(() => {
|
|
5478
5071
|
s(t.current);
|
|
5479
|
-
}, []), g(
|
|
5072
|
+
}, []), g(rr.Provider, {
|
|
5480
5073
|
value: {
|
|
5481
5074
|
element: i
|
|
5482
5075
|
},
|
|
@@ -5489,27 +5082,27 @@ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5489
5082
|
children: a
|
|
5490
5083
|
})
|
|
5491
5084
|
});
|
|
5492
|
-
},
|
|
5085
|
+
}, or = ({ children: a }) => g(Qi, {
|
|
5493
5086
|
reducedMotion: "user",
|
|
5494
5087
|
children: a
|
|
5495
|
-
}),
|
|
5496
|
-
children: g(
|
|
5088
|
+
}), Lr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(or, {
|
|
5089
|
+
children: g(ji, {
|
|
5497
5090
|
isDev: o,
|
|
5498
5091
|
showExperimentalWarnings: c,
|
|
5499
|
-
children: g(
|
|
5092
|
+
children: g(Ki, {
|
|
5500
5093
|
...n,
|
|
5501
|
-
children: g(
|
|
5094
|
+
children: g(Vi, {
|
|
5502
5095
|
...r,
|
|
5503
|
-
children: g(
|
|
5096
|
+
children: g(qi, {
|
|
5504
5097
|
...t,
|
|
5505
|
-
children: g(
|
|
5098
|
+
children: g(nr, {
|
|
5506
5099
|
...e,
|
|
5507
|
-
children: g(
|
|
5508
|
-
children: g(
|
|
5100
|
+
children: g(Xi, {
|
|
5101
|
+
children: g(Yi, {
|
|
5509
5102
|
initiallyEnabled: i,
|
|
5510
5103
|
children: g(Ji, {
|
|
5511
5104
|
...s,
|
|
5512
|
-
children: g(
|
|
5105
|
+
children: g(Zi, {
|
|
5513
5106
|
handler: h,
|
|
5514
5107
|
children: a
|
|
5515
5108
|
})
|
|
@@ -5521,7 +5114,7 @@ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5521
5114
|
})
|
|
5522
5115
|
})
|
|
5523
5116
|
})
|
|
5524
|
-
}), et = (a) => `datacollection-${a}`,
|
|
5117
|
+
}), et = (a) => `datacollection-${a}`, Mr = {
|
|
5525
5118
|
get: async (a) => JSON.parse(
|
|
5526
5119
|
localStorage.getItem(et(a)) ?? "{}"
|
|
5527
5120
|
),
|
|
@@ -5530,97 +5123,97 @@ const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5530
5123
|
}
|
|
5531
5124
|
};
|
|
5532
5125
|
export {
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5126
|
+
fr as AreaChart,
|
|
5127
|
+
Fr as Await,
|
|
5128
|
+
gr as BarChart,
|
|
5129
|
+
pr as CategoryBarChart,
|
|
5130
|
+
xr as ComboChart,
|
|
5131
|
+
Ir as DndProvider,
|
|
5132
|
+
Wr as EmojiImage,
|
|
5133
|
+
Gr as F0Avatar,
|
|
5134
|
+
$r as F0AvatarAlert,
|
|
5135
|
+
Ur as F0AvatarCompany,
|
|
5136
|
+
jr as F0AvatarDate,
|
|
5137
|
+
Kr as F0AvatarEmoji,
|
|
5138
|
+
Vr as F0AvatarFile,
|
|
5139
|
+
qr as F0AvatarIcon,
|
|
5140
|
+
Xr as F0AvatarList,
|
|
5548
5141
|
yt as F0AvatarModule,
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5142
|
+
Yr as F0AvatarPerson,
|
|
5143
|
+
Jr as F0AvatarTeam,
|
|
5144
|
+
q as F0Button,
|
|
5145
|
+
Zr as F0ButtonDropdown,
|
|
5146
|
+
Qr as F0ButtonToggle,
|
|
5147
|
+
en as F0Card,
|
|
5148
|
+
tn as F0Checkbox,
|
|
5556
5149
|
zr as F0ChipList,
|
|
5557
|
-
|
|
5558
|
-
|
|
5150
|
+
sn as F0DatePicker,
|
|
5151
|
+
rn as F0EventCatcherProvider,
|
|
5559
5152
|
Or as F0GridStack,
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5153
|
+
Hs as F0Heading,
|
|
5154
|
+
Ti as F0Icon,
|
|
5155
|
+
nn as F0Link,
|
|
5156
|
+
Lr as F0Provider,
|
|
5157
|
+
on as F0TagAlert,
|
|
5158
|
+
an as F0TagBalance,
|
|
5159
|
+
ln as F0TagCompany,
|
|
5160
|
+
hn as F0TagDot,
|
|
5161
|
+
dn as F0TagList,
|
|
5162
|
+
cn as F0TagPerson,
|
|
5163
|
+
Oi as F0TagRaw,
|
|
5164
|
+
Ai as F0TagStatus,
|
|
5165
|
+
un as F0TagTeam,
|
|
5166
|
+
Bs as F0Text,
|
|
5167
|
+
fn as GROUP_ID_SYMBOL,
|
|
5168
|
+
kr as HomeLayout,
|
|
5169
|
+
mr as LineChart,
|
|
5170
|
+
gn as OneFilterPicker,
|
|
5171
|
+
vr as PieChart,
|
|
5172
|
+
Yi as PrivacyModeProvider,
|
|
5580
5173
|
$t as ProductBlankslate,
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5174
|
+
pn as ProductCard,
|
|
5175
|
+
Ar as ProductModal,
|
|
5176
|
+
ir as ProductWidget,
|
|
5177
|
+
br as ProgressBarChart,
|
|
5585
5178
|
Pr as StandardLayout,
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5179
|
+
mn as TagCounter,
|
|
5180
|
+
Sr as TwoColumnLayout,
|
|
5181
|
+
xt as UpsellRequestResponseDialog,
|
|
5182
|
+
sr as UpsellingBanner,
|
|
5183
|
+
_t as UpsellingButton,
|
|
5184
|
+
Tr as UpsellingPopover,
|
|
5185
|
+
yr as VerticalBarChart,
|
|
5186
|
+
cr as avatarVariants,
|
|
5187
|
+
vn as buildTranslations,
|
|
5188
|
+
Cr as buttonDropdownSizes,
|
|
5189
|
+
Er as buttonDropdownVariants,
|
|
5190
|
+
wr as buttonSizes,
|
|
5191
|
+
Nr as buttonToggleSizes,
|
|
5192
|
+
_r as buttonVariants,
|
|
5193
|
+
yn as createAtlaskitDriver,
|
|
5194
|
+
bn as createDataSourceDefinition,
|
|
5195
|
+
Mr as dataCollectionLocalStorageHandler,
|
|
5196
|
+
Dr as datepickerSizes,
|
|
5197
|
+
In as defaultTranslations,
|
|
5605
5198
|
pt as experimental,
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5199
|
+
xn as getAnimationVariants,
|
|
5200
|
+
_n as getDataSourcePaginationType,
|
|
5201
|
+
wn as getEmojiLabel,
|
|
5202
|
+
En as isInfiniteScrollPagination,
|
|
5203
|
+
Cn as isPageBasedPagination,
|
|
5204
|
+
Rr as linkVariants,
|
|
5205
|
+
Nn as modules,
|
|
5206
|
+
Rn as predefinedPresets,
|
|
5614
5207
|
zn as tagDotColors,
|
|
5615
|
-
|
|
5208
|
+
Dn as useData,
|
|
5616
5209
|
Pn as useDataSource,
|
|
5617
|
-
|
|
5618
|
-
|
|
5210
|
+
Sn as useDndEvents,
|
|
5211
|
+
kn as useDraggable,
|
|
5619
5212
|
On as useDroppableList,
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5213
|
+
An as useEmojiConfetti,
|
|
5214
|
+
Tn as useGroups,
|
|
5215
|
+
Ln as usePrivacyMode,
|
|
5216
|
+
Mn as useReducedMotion,
|
|
5217
|
+
Hn as useSelectable,
|
|
5218
|
+
Bn as useXRay
|
|
5626
5219
|
};
|