@factorialco/f0-react 1.279.2 → 1.281.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 +231 -12
- package/dist/experimental.js +16031 -21918
- package/dist/f0.d.ts +146 -5
- package/dist/f0.js +859 -811
- package/dist/{hooks-CfFQMvCM.js → hooks-CIGhOgZ-.js} +37162 -29974
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as g, jsxs as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import './f0.css';const
|
|
1
|
+
import { S as We, a as qt, f as Ee, L as J, b as Kt, A as Vt, i as ae, c as tt, d as it, E as Yt, g as he, e as Xt, h as Jt, C as Qt, j as Zt, k as K, 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 De, 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 je, I as gi, J as Q, K as Ne, M as pi, N as mi, O as vi, P as lt, Q as L, R as I, T as yi, U as bi, V as wi, W as xi, Z as _i, _ as Ci, $ as Ei, 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 Di, ab as Si, ac as mt, ad as zi, ae as ki, af as vt, ag as Pi, ah as yt, ai as Ai, aj as Ti, ak as Oi, al as Li, am as Mi, an as Hi, ao as Bi, ap as Ii, aq as bt, ar as V, as as wt, at as Fi, au as Gi, av as Ue, aw as Wi, ax as xt, ay as $i, az as ji, aA as Ui, aB as qi, aC as Ki, aD as Vi, aE as Yi, aF as Xi, aG as Ji, aH as Qi, aI as Zi, aJ as es } from "./hooks-CIGhOgZ-.js";
|
|
2
|
+
import { ba as Gr, bn as Wr, bw as $r, aK as jr, aL as Ur, aM as qr, aN as Kr, aO as Vr, aP as Yr, aQ as Xr, aR as Jr, aT as Qr, aU as Zr, aV as en, aW as tn, aX as sn, aY as rn, aZ as nn, bs as on, a$ as an, b1 as ln, b2 as hn, b3 as dn, b4 as cn, b7 as un, b8 as fn, b9 as gn, bc as pn, b0 as mn, bb as vn, b6 as yn, bt as bn, bm as wn, bh as xn, bk as _n, bg as Cn, bx as En, bf as Nn, be as Rn, aS as Dn, a_ as Sn, b5 as zn, bd as kn, bi as Pn, bo as An, bp as Tn, bq as On, by as Ln, bj as Mn, br as Hn, bv as Bn, bl as In, bu as Fn } from "./hooks-CIGhOgZ-.js";
|
|
3
|
+
import { jsx as g, jsxs as R, Fragment as we } from "react/jsx-runtime";
|
|
4
|
+
import * as Pe from "react";
|
|
5
|
+
import z, { PureComponent as ts, useState as M, forwardRef as j, createElement as qe, useRef as Z, useImperativeHandle as _t, Children as is, createContext as xe, useContext as Ct, useCallback as q, useEffect as ce, useLayoutEffect as Ke, useMemo as Et } from "react";
|
|
6
|
+
import { createPortal as ss } from "react-dom";
|
|
7
|
+
import './f0.css';const rs = {
|
|
8
8
|
ad: "Andorra",
|
|
9
9
|
ae: "United Arab Emirates",
|
|
10
10
|
af: "Afghanistan",
|
|
@@ -106,8 +106,8 @@ import './f0.css';const as = {
|
|
|
106
106
|
jo: "Jordan",
|
|
107
107
|
jp: "Japan",
|
|
108
108
|
ke: "Kenya"
|
|
109
|
-
},
|
|
110
|
-
countries:
|
|
109
|
+
}, ur = {
|
|
110
|
+
countries: rs,
|
|
111
111
|
approvals: {
|
|
112
112
|
history: "Approval history",
|
|
113
113
|
statuses: {
|
|
@@ -360,124 +360,174 @@ import './f0.css';const as = {
|
|
|
360
360
|
between: "It should be between {{min}} and {{max}}",
|
|
361
361
|
greaterThan: "It should be greater than {{min}}",
|
|
362
362
|
lessThan: "It should be less than {{max}}"
|
|
363
|
+
},
|
|
364
|
+
coCreationForm: {
|
|
365
|
+
actions: {
|
|
366
|
+
actions: "Actions",
|
|
367
|
+
duplicateQuestion: "Duplicate question",
|
|
368
|
+
deleteQuestion: "Delete question",
|
|
369
|
+
duplicateSection: "Duplicate section",
|
|
370
|
+
deleteSection: "Delete section"
|
|
371
|
+
},
|
|
372
|
+
questionTypes: {
|
|
373
|
+
section: "Section",
|
|
374
|
+
rating: "Rating",
|
|
375
|
+
multipleChoice: "Multiple choice",
|
|
376
|
+
singleChoice: "Single choice",
|
|
377
|
+
text: "Text",
|
|
378
|
+
longText: "Long text",
|
|
379
|
+
numeric: "Numeric",
|
|
380
|
+
link: "Link",
|
|
381
|
+
date: "Date"
|
|
382
|
+
},
|
|
383
|
+
selectQuestion: {
|
|
384
|
+
addOption: "Add option",
|
|
385
|
+
newOption: "New option {{number}}",
|
|
386
|
+
markAsCorrect: "Mark as correct",
|
|
387
|
+
remove: "Remove",
|
|
388
|
+
correct: "Correct",
|
|
389
|
+
optionPlaceholder: "Type anything you want here..."
|
|
390
|
+
},
|
|
391
|
+
answer: {
|
|
392
|
+
label: "Answer",
|
|
393
|
+
placeholder: "Respondent's answer"
|
|
394
|
+
},
|
|
395
|
+
labels: {
|
|
396
|
+
endOfSection: "End of section",
|
|
397
|
+
title: "Title",
|
|
398
|
+
titlePlaceholder: "Question title",
|
|
399
|
+
description: "Description",
|
|
400
|
+
questionDescriptionPlaceholder: "Describe the question in a few words",
|
|
401
|
+
sectionDescriptionPlaceholder: "Describe the section in a few words",
|
|
402
|
+
required: "Required",
|
|
403
|
+
questionType: "Question type",
|
|
404
|
+
questionOptions: "Question options",
|
|
405
|
+
actions: "Actions",
|
|
406
|
+
sectionTitlePlaceholder: "Section title"
|
|
407
|
+
},
|
|
408
|
+
defaults: {
|
|
409
|
+
newSection: "New Section",
|
|
410
|
+
newQuestion: "New Question",
|
|
411
|
+
newQuestionDescription: "New question description"
|
|
412
|
+
}
|
|
363
413
|
}
|
|
364
|
-
},
|
|
414
|
+
}, fr = [
|
|
365
415
|
"person",
|
|
366
416
|
"team",
|
|
367
417
|
"company",
|
|
368
418
|
"file",
|
|
369
419
|
"flag"
|
|
370
420
|
];
|
|
371
|
-
function
|
|
421
|
+
function Y(a) {
|
|
372
422
|
"@babel/helpers - typeof";
|
|
373
|
-
return
|
|
423
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
374
424
|
return typeof e;
|
|
375
425
|
} : function(e) {
|
|
376
426
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
377
|
-
},
|
|
427
|
+
}, Y(a);
|
|
378
428
|
}
|
|
379
|
-
function
|
|
429
|
+
function ns(a, e) {
|
|
380
430
|
if (!(a instanceof e))
|
|
381
431
|
throw new TypeError("Cannot call a class as a function");
|
|
382
432
|
}
|
|
383
|
-
function
|
|
433
|
+
function os(a, e) {
|
|
384
434
|
for (var t = 0; t < e.length; t++) {
|
|
385
435
|
var i = e[t];
|
|
386
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
436
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, Dt(i.key), i);
|
|
387
437
|
}
|
|
388
438
|
}
|
|
389
|
-
function
|
|
390
|
-
return e &&
|
|
439
|
+
function as(a, e, t) {
|
|
440
|
+
return e && os(a.prototype, e), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
391
441
|
}
|
|
392
|
-
function
|
|
393
|
-
return e =
|
|
442
|
+
function ls(a, e, t) {
|
|
443
|
+
return e = ue(e), hs(a, Nt() ? Reflect.construct(e, t || [], ue(a).constructor) : e.apply(a, t));
|
|
394
444
|
}
|
|
395
|
-
function
|
|
396
|
-
if (e && (
|
|
445
|
+
function hs(a, e) {
|
|
446
|
+
if (e && (Y(e) === "object" || typeof e == "function"))
|
|
397
447
|
return e;
|
|
398
448
|
if (e !== void 0)
|
|
399
449
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
400
|
-
return
|
|
450
|
+
return ds(a);
|
|
401
451
|
}
|
|
402
|
-
function
|
|
452
|
+
function ds(a) {
|
|
403
453
|
if (a === void 0)
|
|
404
454
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
405
455
|
return a;
|
|
406
456
|
}
|
|
407
|
-
function
|
|
457
|
+
function Nt() {
|
|
408
458
|
try {
|
|
409
459
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
410
460
|
}));
|
|
411
461
|
} catch {
|
|
412
462
|
}
|
|
413
|
-
return (
|
|
463
|
+
return (Nt = function() {
|
|
414
464
|
return !!a;
|
|
415
465
|
})();
|
|
416
466
|
}
|
|
417
|
-
function
|
|
418
|
-
return
|
|
467
|
+
function ue(a) {
|
|
468
|
+
return ue = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
419
469
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
420
|
-
},
|
|
470
|
+
}, ue(a);
|
|
421
471
|
}
|
|
422
|
-
function
|
|
472
|
+
function cs(a, e) {
|
|
423
473
|
if (typeof e != "function" && e !== null)
|
|
424
474
|
throw new TypeError("Super expression must either be null or a function");
|
|
425
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
475
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && Se(a, e);
|
|
426
476
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
477
|
+
function Se(a, e) {
|
|
478
|
+
return Se = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
429
479
|
return i.__proto__ = s, i;
|
|
430
|
-
},
|
|
480
|
+
}, Se(a, e);
|
|
431
481
|
}
|
|
432
482
|
function Rt(a, e, t) {
|
|
433
|
-
return e =
|
|
483
|
+
return e = Dt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
434
484
|
}
|
|
435
|
-
function
|
|
436
|
-
var e =
|
|
437
|
-
return
|
|
485
|
+
function Dt(a) {
|
|
486
|
+
var e = us(a, "string");
|
|
487
|
+
return Y(e) == "symbol" ? e : e + "";
|
|
438
488
|
}
|
|
439
|
-
function
|
|
440
|
-
if (
|
|
489
|
+
function us(a, e) {
|
|
490
|
+
if (Y(a) != "object" || !a) return a;
|
|
441
491
|
var t = a[Symbol.toPrimitive];
|
|
442
492
|
if (t !== void 0) {
|
|
443
493
|
var i = t.call(a, e);
|
|
444
|
-
if (
|
|
494
|
+
if (Y(i) != "object") return i;
|
|
445
495
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
446
496
|
}
|
|
447
497
|
return String(a);
|
|
448
498
|
}
|
|
449
|
-
var
|
|
499
|
+
var _e = /* @__PURE__ */ function(a) {
|
|
450
500
|
function e() {
|
|
451
|
-
return
|
|
501
|
+
return ns(this, e), ls(this, e, arguments);
|
|
452
502
|
}
|
|
453
|
-
return
|
|
503
|
+
return cs(e, a), as(e, [{
|
|
454
504
|
key: "render",
|
|
455
505
|
value: function() {
|
|
456
506
|
return null;
|
|
457
507
|
}
|
|
458
508
|
}]);
|
|
459
|
-
}(
|
|
460
|
-
Rt(
|
|
461
|
-
Rt(
|
|
509
|
+
}(z.Component);
|
|
510
|
+
Rt(_e, "displayName", "ZAxis");
|
|
511
|
+
Rt(_e, "defaultProps", {
|
|
462
512
|
zAxisId: 0,
|
|
463
513
|
range: [64, 64],
|
|
464
514
|
scale: "auto",
|
|
465
515
|
type: "number"
|
|
466
516
|
});
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
return
|
|
517
|
+
var fs = ["option", "isActive"];
|
|
518
|
+
function ee() {
|
|
519
|
+
return ee = Object.assign ? Object.assign.bind() : function(a) {
|
|
470
520
|
for (var e = 1; e < arguments.length; e++) {
|
|
471
521
|
var t = arguments[e];
|
|
472
522
|
for (var i in t)
|
|
473
523
|
Object.prototype.hasOwnProperty.call(t, i) && (a[i] = t[i]);
|
|
474
524
|
}
|
|
475
525
|
return a;
|
|
476
|
-
},
|
|
526
|
+
}, ee.apply(this, arguments);
|
|
477
527
|
}
|
|
478
|
-
function
|
|
528
|
+
function gs(a, e) {
|
|
479
529
|
if (a == null) return {};
|
|
480
|
-
var t =
|
|
530
|
+
var t = ps(a, e), i, s;
|
|
481
531
|
if (Object.getOwnPropertySymbols) {
|
|
482
532
|
var r = Object.getOwnPropertySymbols(a);
|
|
483
533
|
for (s = 0; s < r.length; s++)
|
|
@@ -485,7 +535,7 @@ function ys(a, e) {
|
|
|
485
535
|
}
|
|
486
536
|
return t;
|
|
487
537
|
}
|
|
488
|
-
function
|
|
538
|
+
function ps(a, e) {
|
|
489
539
|
if (a == null) return {};
|
|
490
540
|
var t = {};
|
|
491
541
|
for (var i in a)
|
|
@@ -495,39 +545,39 @@ function vs(a, e) {
|
|
|
495
545
|
}
|
|
496
546
|
return t;
|
|
497
547
|
}
|
|
498
|
-
function
|
|
499
|
-
var e = a.option, t = a.isActive, i =
|
|
500
|
-
return typeof e == "string" ? /* @__PURE__ */
|
|
501
|
-
option: /* @__PURE__ */
|
|
548
|
+
function ms(a) {
|
|
549
|
+
var e = a.option, t = a.isActive, i = gs(a, fs);
|
|
550
|
+
return typeof e == "string" ? /* @__PURE__ */ z.createElement(We, ee({
|
|
551
|
+
option: /* @__PURE__ */ z.createElement(qt, ee({
|
|
502
552
|
type: e
|
|
503
553
|
}, i)),
|
|
504
554
|
isActive: t,
|
|
505
555
|
shapeType: "symbols"
|
|
506
|
-
}, i)) : /* @__PURE__ */
|
|
556
|
+
}, i)) : /* @__PURE__ */ z.createElement(We, ee({
|
|
507
557
|
option: e,
|
|
508
558
|
isActive: t,
|
|
509
559
|
shapeType: "symbols"
|
|
510
560
|
}, i));
|
|
511
561
|
}
|
|
512
|
-
function
|
|
562
|
+
function X(a) {
|
|
513
563
|
"@babel/helpers - typeof";
|
|
514
|
-
return
|
|
564
|
+
return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
515
565
|
return typeof e;
|
|
516
566
|
} : function(e) {
|
|
517
567
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
518
|
-
},
|
|
568
|
+
}, X(a);
|
|
519
569
|
}
|
|
520
|
-
function
|
|
521
|
-
return
|
|
570
|
+
function te() {
|
|
571
|
+
return te = Object.assign ? Object.assign.bind() : function(a) {
|
|
522
572
|
for (var e = 1; e < arguments.length; e++) {
|
|
523
573
|
var t = arguments[e];
|
|
524
574
|
for (var i in t)
|
|
525
575
|
Object.prototype.hasOwnProperty.call(t, i) && (a[i] = t[i]);
|
|
526
576
|
}
|
|
527
577
|
return a;
|
|
528
|
-
},
|
|
578
|
+
}, te.apply(this, arguments);
|
|
529
579
|
}
|
|
530
|
-
function
|
|
580
|
+
function Ve(a, e) {
|
|
531
581
|
var t = Object.keys(a);
|
|
532
582
|
if (Object.getOwnPropertySymbols) {
|
|
533
583
|
var i = Object.getOwnPropertySymbols(a);
|
|
@@ -537,94 +587,94 @@ function Ye(a, e) {
|
|
|
537
587
|
}
|
|
538
588
|
return t;
|
|
539
589
|
}
|
|
540
|
-
function
|
|
590
|
+
function O(a) {
|
|
541
591
|
for (var e = 1; e < arguments.length; e++) {
|
|
542
592
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
543
|
-
e % 2 ?
|
|
593
|
+
e % 2 ? Ve(Object(t), !0).forEach(function(i) {
|
|
544
594
|
U(a, i, t[i]);
|
|
545
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
595
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ve(Object(t)).forEach(function(i) {
|
|
546
596
|
Object.defineProperty(a, i, Object.getOwnPropertyDescriptor(t, i));
|
|
547
597
|
});
|
|
548
598
|
}
|
|
549
599
|
return a;
|
|
550
600
|
}
|
|
551
|
-
function
|
|
601
|
+
function vs(a, e) {
|
|
552
602
|
if (!(a instanceof e))
|
|
553
603
|
throw new TypeError("Cannot call a class as a function");
|
|
554
604
|
}
|
|
555
|
-
function
|
|
605
|
+
function Ye(a, e) {
|
|
556
606
|
for (var t = 0; t < e.length; t++) {
|
|
557
607
|
var i = e[t];
|
|
558
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a,
|
|
608
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, zt(i.key), i);
|
|
559
609
|
}
|
|
560
610
|
}
|
|
561
|
-
function
|
|
562
|
-
return e &&
|
|
611
|
+
function ys(a, e, t) {
|
|
612
|
+
return e && Ye(a.prototype, e), t && Ye(a, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
563
613
|
}
|
|
564
|
-
function
|
|
565
|
-
return e =
|
|
614
|
+
function bs(a, e, t) {
|
|
615
|
+
return e = fe(e), ws(a, St() ? Reflect.construct(e, t || [], fe(a).constructor) : e.apply(a, t));
|
|
566
616
|
}
|
|
567
|
-
function
|
|
568
|
-
if (e && (
|
|
617
|
+
function ws(a, e) {
|
|
618
|
+
if (e && (X(e) === "object" || typeof e == "function"))
|
|
569
619
|
return e;
|
|
570
620
|
if (e !== void 0)
|
|
571
621
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
572
|
-
return
|
|
622
|
+
return xs(a);
|
|
573
623
|
}
|
|
574
|
-
function
|
|
624
|
+
function xs(a) {
|
|
575
625
|
if (a === void 0)
|
|
576
626
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
577
627
|
return a;
|
|
578
628
|
}
|
|
579
|
-
function
|
|
629
|
+
function St() {
|
|
580
630
|
try {
|
|
581
631
|
var a = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
582
632
|
}));
|
|
583
633
|
} catch {
|
|
584
634
|
}
|
|
585
|
-
return (
|
|
635
|
+
return (St = function() {
|
|
586
636
|
return !!a;
|
|
587
637
|
})();
|
|
588
638
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
639
|
+
function fe(a) {
|
|
640
|
+
return fe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
591
641
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
592
|
-
},
|
|
642
|
+
}, fe(a);
|
|
593
643
|
}
|
|
594
|
-
function
|
|
644
|
+
function _s(a, e) {
|
|
595
645
|
if (typeof e != "function" && e !== null)
|
|
596
646
|
throw new TypeError("Super expression must either be null or a function");
|
|
597
|
-
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e &&
|
|
647
|
+
a.prototype = Object.create(e && e.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), e && ze(a, e);
|
|
598
648
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
649
|
+
function ze(a, e) {
|
|
650
|
+
return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
|
|
601
651
|
return i.__proto__ = s, i;
|
|
602
|
-
},
|
|
652
|
+
}, ze(a, e);
|
|
603
653
|
}
|
|
604
654
|
function U(a, e, t) {
|
|
605
|
-
return e =
|
|
655
|
+
return e = zt(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
606
656
|
}
|
|
607
|
-
function
|
|
608
|
-
var e =
|
|
609
|
-
return
|
|
657
|
+
function zt(a) {
|
|
658
|
+
var e = Cs(a, "string");
|
|
659
|
+
return X(e) == "symbol" ? e : e + "";
|
|
610
660
|
}
|
|
611
|
-
function
|
|
612
|
-
if (
|
|
661
|
+
function Cs(a, e) {
|
|
662
|
+
if (X(a) != "object" || !a) return a;
|
|
613
663
|
var t = a[Symbol.toPrimitive];
|
|
614
664
|
if (t !== void 0) {
|
|
615
665
|
var i = t.call(a, e);
|
|
616
|
-
if (
|
|
666
|
+
if (X(i) != "object") return i;
|
|
617
667
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
618
668
|
}
|
|
619
669
|
return String(a);
|
|
620
670
|
}
|
|
621
|
-
var
|
|
671
|
+
var re = /* @__PURE__ */ function(a) {
|
|
622
672
|
function e() {
|
|
623
673
|
var t;
|
|
624
|
-
|
|
674
|
+
vs(this, e);
|
|
625
675
|
for (var i = arguments.length, s = new Array(i), r = 0; r < i; r++)
|
|
626
676
|
s[r] = arguments[r];
|
|
627
|
-
return t =
|
|
677
|
+
return t = bs(this, e, [].concat(s)), U(t, "state", {
|
|
628
678
|
isAnimationFinished: !1
|
|
629
679
|
}), U(t, "handleAnimationEnd", function() {
|
|
630
680
|
t.setState({
|
|
@@ -636,18 +686,18 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
636
686
|
});
|
|
637
687
|
}), U(t, "id", ei("recharts-scatter-")), t;
|
|
638
688
|
}
|
|
639
|
-
return
|
|
689
|
+
return _s(e, a), ys(e, [{
|
|
640
690
|
key: "renderSymbolsStatically",
|
|
641
691
|
value: function(i) {
|
|
642
|
-
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c =
|
|
692
|
+
var s = this, r = this.props, n = r.shape, o = r.activeShape, h = r.activeIndex, c = Ee(this.props, !1);
|
|
643
693
|
return i.map(function(l, d) {
|
|
644
|
-
var f = h === d, p = f ? o : n, m =
|
|
645
|
-
return /* @__PURE__ */
|
|
694
|
+
var f = h === d, p = f ? o : n, m = O(O({}, c), l);
|
|
695
|
+
return /* @__PURE__ */ z.createElement(J, te({
|
|
646
696
|
className: "recharts-scatter-symbol",
|
|
647
697
|
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)
|
|
648
698
|
}, Kt(s.props, l, d), {
|
|
649
699
|
role: "img"
|
|
650
|
-
}), /* @__PURE__ */
|
|
700
|
+
}), /* @__PURE__ */ z.createElement(ms, te({
|
|
651
701
|
option: p,
|
|
652
702
|
isActive: f,
|
|
653
703
|
key: "symbol-".concat(d)
|
|
@@ -658,7 +708,7 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
658
708
|
key: "renderSymbolsWithAnimation",
|
|
659
709
|
value: function() {
|
|
660
710
|
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;
|
|
661
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ z.createElement(Vt, {
|
|
662
712
|
begin: o,
|
|
663
713
|
duration: h,
|
|
664
714
|
isActive: n,
|
|
@@ -673,29 +723,29 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
673
723
|
onAnimationEnd: this.handleAnimationEnd,
|
|
674
724
|
onAnimationStart: this.handleAnimationStart
|
|
675
725
|
}, function(f) {
|
|
676
|
-
var p = f.t, m = r.map(function(
|
|
677
|
-
var
|
|
678
|
-
if (
|
|
679
|
-
var
|
|
680
|
-
return
|
|
681
|
-
cx:
|
|
726
|
+
var p = f.t, m = r.map(function(v, b) {
|
|
727
|
+
var _ = d && d[b];
|
|
728
|
+
if (_) {
|
|
729
|
+
var E = ae(_.cx, v.cx), C = ae(_.cy, v.cy), S = ae(_.size, v.size);
|
|
730
|
+
return O(O({}, v), {}, {
|
|
731
|
+
cx: E(p),
|
|
682
732
|
cy: C(p),
|
|
683
|
-
size:
|
|
733
|
+
size: S(p)
|
|
684
734
|
});
|
|
685
735
|
}
|
|
686
|
-
var
|
|
687
|
-
return
|
|
688
|
-
size:
|
|
736
|
+
var N = ae(0, v.size);
|
|
737
|
+
return O(O({}, v), {}, {
|
|
738
|
+
size: N(p)
|
|
689
739
|
});
|
|
690
740
|
});
|
|
691
|
-
return /* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ z.createElement(J, null, i.renderSymbolsStatically(m));
|
|
692
742
|
});
|
|
693
743
|
}
|
|
694
744
|
}, {
|
|
695
745
|
key: "renderSymbols",
|
|
696
746
|
value: function() {
|
|
697
747
|
var i = this.props, s = i.points, r = i.isAnimationActive, n = this.state.prevPoints;
|
|
698
|
-
return r && s && s.length && (!n || !
|
|
748
|
+
return r && s && s.length && (!n || !tt(n, s)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(s);
|
|
699
749
|
}
|
|
700
750
|
}, {
|
|
701
751
|
key: "renderErrorBar",
|
|
@@ -703,21 +753,21 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
703
753
|
var i = this.props.isAnimationActive;
|
|
704
754
|
if (i && !this.state.isAnimationFinished)
|
|
705
755
|
return null;
|
|
706
|
-
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c =
|
|
756
|
+
var s = this.props, r = s.points, n = s.xAxis, o = s.yAxis, h = s.children, c = it(h, Yt);
|
|
707
757
|
return c ? c.map(function(l, d) {
|
|
708
758
|
var f = l.props, p = f.direction, m = f.dataKey;
|
|
709
|
-
return /* @__PURE__ */
|
|
759
|
+
return /* @__PURE__ */ z.cloneElement(l, {
|
|
710
760
|
key: "".concat(p, "-").concat(m, "-").concat(r[d]),
|
|
711
761
|
data: r,
|
|
712
762
|
xAxis: n,
|
|
713
763
|
yAxis: o,
|
|
714
764
|
layout: p === "x" ? "vertical" : "horizontal",
|
|
715
|
-
dataPointFormatter: function(b,
|
|
765
|
+
dataPointFormatter: function(b, _) {
|
|
716
766
|
return {
|
|
717
767
|
x: b.cx,
|
|
718
768
|
y: b.cy,
|
|
719
769
|
value: p === "x" ? +b.node.x : +b.node.y,
|
|
720
|
-
errorVal:
|
|
770
|
+
errorVal: he(b, _)
|
|
721
771
|
};
|
|
722
772
|
}
|
|
723
773
|
});
|
|
@@ -726,7 +776,7 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
726
776
|
}, {
|
|
727
777
|
key: "renderLine",
|
|
728
778
|
value: function() {
|
|
729
|
-
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h =
|
|
779
|
+
var i = this.props, s = i.points, r = i.line, n = i.lineType, o = i.lineJointType, h = Ee(this.props, !1), c = Ee(r, !1), l, d;
|
|
730
780
|
if (n === "joint")
|
|
731
781
|
l = s.map(function(C) {
|
|
732
782
|
return {
|
|
@@ -735,26 +785,26 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
735
785
|
};
|
|
736
786
|
});
|
|
737
787
|
else if (n === "fitting") {
|
|
738
|
-
var f = Xt(s), p = f.xmin, m = f.xmax,
|
|
739
|
-
return
|
|
788
|
+
var f = Xt(s), p = f.xmin, m = f.xmax, v = f.a, b = f.b, _ = function(S) {
|
|
789
|
+
return v * S + b;
|
|
740
790
|
};
|
|
741
791
|
l = [{
|
|
742
792
|
x: p,
|
|
743
|
-
y:
|
|
793
|
+
y: _(p)
|
|
744
794
|
}, {
|
|
745
795
|
x: m,
|
|
746
|
-
y:
|
|
796
|
+
y: _(m)
|
|
747
797
|
}];
|
|
748
798
|
}
|
|
749
|
-
var
|
|
799
|
+
var E = O(O(O({}, h), {}, {
|
|
750
800
|
fill: "none",
|
|
751
801
|
stroke: h && h.fill
|
|
752
802
|
}, c), {}, {
|
|
753
803
|
points: l
|
|
754
804
|
});
|
|
755
|
-
return /* @__PURE__ */
|
|
805
|
+
return /* @__PURE__ */ z.isValidElement(r) ? d = /* @__PURE__ */ z.cloneElement(r, E) : Jt(r) ? d = r(E) : d = /* @__PURE__ */ z.createElement(Qt, te({}, E, {
|
|
756
806
|
type: o
|
|
757
|
-
})), /* @__PURE__ */
|
|
807
|
+
})), /* @__PURE__ */ z.createElement(J, {
|
|
758
808
|
className: "recharts-scatter-line",
|
|
759
809
|
key: "recharts-scatter-line"
|
|
760
810
|
}, d);
|
|
@@ -762,23 +812,23 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
762
812
|
}, {
|
|
763
813
|
key: "render",
|
|
764
814
|
value: function() {
|
|
765
|
-
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,
|
|
815
|
+
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;
|
|
766
816
|
if (s || !r || !r.length)
|
|
767
817
|
return null;
|
|
768
|
-
var b = this.state.isAnimationFinished,
|
|
769
|
-
return /* @__PURE__ */
|
|
770
|
-
className:
|
|
771
|
-
clipPath:
|
|
772
|
-
},
|
|
773
|
-
id: "clipPath-".concat(
|
|
774
|
-
}, /* @__PURE__ */
|
|
775
|
-
x:
|
|
818
|
+
var b = this.state.isAnimationFinished, _ = Zt("recharts-scatter", o), E = h && h.allowDataOverflow, C = c && c.allowDataOverflow, S = E || C, N = K(m) ? this.id : m;
|
|
819
|
+
return /* @__PURE__ */ z.createElement(J, {
|
|
820
|
+
className: _,
|
|
821
|
+
clipPath: S ? "url(#clipPath-".concat(N, ")") : null
|
|
822
|
+
}, E || C ? /* @__PURE__ */ z.createElement("defs", null, /* @__PURE__ */ z.createElement("clipPath", {
|
|
823
|
+
id: "clipPath-".concat(N)
|
|
824
|
+
}, /* @__PURE__ */ z.createElement("rect", {
|
|
825
|
+
x: E ? l : l - f / 2,
|
|
776
826
|
y: C ? d : d - p / 2,
|
|
777
|
-
width:
|
|
827
|
+
width: E ? f : f * 2,
|
|
778
828
|
height: C ? p : p * 2
|
|
779
|
-
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */
|
|
829
|
+
}))) : null, n && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ z.createElement(J, {
|
|
780
830
|
key: "recharts-scatter-symbols"
|
|
781
|
-
}, this.renderSymbols()), (!
|
|
831
|
+
}, this.renderSymbols()), (!v || b) && st.renderCallByParent(this.props, r));
|
|
782
832
|
}
|
|
783
833
|
}], [{
|
|
784
834
|
key: "getDerivedStateFromProps",
|
|
@@ -792,9 +842,9 @@ var ae = /* @__PURE__ */ function(a) {
|
|
|
792
842
|
} : null;
|
|
793
843
|
}
|
|
794
844
|
}]);
|
|
795
|
-
}(
|
|
796
|
-
U(
|
|
797
|
-
U(
|
|
845
|
+
}(ts);
|
|
846
|
+
U(re, "displayName", "Scatter");
|
|
847
|
+
U(re, "defaultProps", {
|
|
798
848
|
xAxisId: 0,
|
|
799
849
|
yAxisId: 0,
|
|
800
850
|
zAxisId: 0,
|
|
@@ -809,90 +859,90 @@ U(ae, "defaultProps", {
|
|
|
809
859
|
animationDuration: 400,
|
|
810
860
|
animationEasing: "linear"
|
|
811
861
|
});
|
|
812
|
-
U(
|
|
813
|
-
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 =
|
|
814
|
-
var
|
|
815
|
-
name:
|
|
862
|
+
U(re, "getComposedData", function(a) {
|
|
863
|
+
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 = K(e.dataKey) ? s.props.dataKey : e.dataKey, f = K(t.dataKey) ? s.props.dataKey : t.dataKey, p = i && i.dataKey, m = i ? i.range : _e.defaultProps.range, v = m && m[0], b = e.scale.bandwidth ? e.scale.bandwidth() : 0, _ = t.scale.bandwidth ? t.scale.bandwidth() : 0, E = r.map(function(C, S) {
|
|
864
|
+
var N = he(C, d), P = he(C, f), A = !K(p) && he(C, p) || "-", W = [{
|
|
865
|
+
name: K(e.dataKey) ? s.props.name : e.name || e.dataKey,
|
|
816
866
|
unit: e.unit || "",
|
|
817
|
-
value:
|
|
867
|
+
value: N,
|
|
818
868
|
payload: C,
|
|
819
869
|
dataKey: d,
|
|
820
870
|
type: c
|
|
821
871
|
}, {
|
|
822
|
-
name:
|
|
872
|
+
name: K(t.dataKey) ? s.props.name : t.name || t.dataKey,
|
|
823
873
|
unit: t.unit || "",
|
|
824
|
-
value:
|
|
874
|
+
value: P,
|
|
825
875
|
payload: C,
|
|
826
876
|
dataKey: f,
|
|
827
877
|
type: c
|
|
828
878
|
}];
|
|
829
|
-
|
|
879
|
+
A !== "-" && W.push({
|
|
830
880
|
name: i.name || i.dataKey,
|
|
831
881
|
unit: i.unit || "",
|
|
832
|
-
value:
|
|
882
|
+
value: A,
|
|
833
883
|
payload: C,
|
|
834
884
|
dataKey: p,
|
|
835
885
|
type: c
|
|
836
886
|
});
|
|
837
|
-
var
|
|
887
|
+
var H = $e({
|
|
838
888
|
axis: e,
|
|
839
889
|
ticks: n,
|
|
840
890
|
bandSize: b,
|
|
841
891
|
entry: C,
|
|
842
|
-
index:
|
|
892
|
+
index: S,
|
|
843
893
|
dataKey: d
|
|
844
|
-
}), F =
|
|
894
|
+
}), F = $e({
|
|
845
895
|
axis: t,
|
|
846
896
|
ticks: o,
|
|
847
|
-
bandSize:
|
|
897
|
+
bandSize: _,
|
|
848
898
|
entry: C,
|
|
849
|
-
index:
|
|
899
|
+
index: S,
|
|
850
900
|
dataKey: f
|
|
851
|
-
}),
|
|
852
|
-
return
|
|
853
|
-
cx:
|
|
901
|
+
}), x = A !== "-" ? i.scale(A) : v, D = Math.sqrt(Math.max(x, 0) / Math.PI);
|
|
902
|
+
return O(O({}, C), {}, {
|
|
903
|
+
cx: H,
|
|
854
904
|
cy: F,
|
|
855
|
-
x:
|
|
856
|
-
y: F -
|
|
905
|
+
x: H - D,
|
|
906
|
+
y: F - D,
|
|
857
907
|
xAxis: e,
|
|
858
908
|
yAxis: t,
|
|
859
909
|
zAxis: i,
|
|
860
|
-
width: 2 *
|
|
861
|
-
height: 2 *
|
|
862
|
-
size:
|
|
910
|
+
width: 2 * D,
|
|
911
|
+
height: 2 * D,
|
|
912
|
+
size: x,
|
|
863
913
|
node: {
|
|
864
|
-
x:
|
|
865
|
-
y:
|
|
866
|
-
z:
|
|
914
|
+
x: N,
|
|
915
|
+
y: P,
|
|
916
|
+
z: A
|
|
867
917
|
},
|
|
868
|
-
tooltipPayload:
|
|
918
|
+
tooltipPayload: W,
|
|
869
919
|
tooltipPosition: {
|
|
870
|
-
x:
|
|
920
|
+
x: H,
|
|
871
921
|
y: F
|
|
872
922
|
},
|
|
873
923
|
payload: C
|
|
874
|
-
}, l && l[
|
|
924
|
+
}, l && l[S] && l[S].props);
|
|
875
925
|
});
|
|
876
|
-
return
|
|
877
|
-
points:
|
|
926
|
+
return O({
|
|
927
|
+
points: E
|
|
878
928
|
}, h);
|
|
879
929
|
});
|
|
880
|
-
var
|
|
930
|
+
var Es = si({
|
|
881
931
|
chartName: "ComposedChart",
|
|
882
|
-
GraphicalChild: [
|
|
932
|
+
GraphicalChild: [rt, ri, nt, re],
|
|
883
933
|
axisComponents: [{
|
|
884
934
|
axisType: "xAxis",
|
|
885
|
-
AxisComp:
|
|
935
|
+
AxisComp: ot
|
|
886
936
|
}, {
|
|
887
937
|
axisType: "yAxis",
|
|
888
|
-
AxisComp:
|
|
938
|
+
AxisComp: De
|
|
889
939
|
}, {
|
|
890
940
|
axisType: "zAxis",
|
|
891
|
-
AxisComp:
|
|
941
|
+
AxisComp: _e
|
|
892
942
|
}],
|
|
893
943
|
formatAxisMap: ni
|
|
894
944
|
});
|
|
895
|
-
const
|
|
945
|
+
const Ns = (a) => {
|
|
896
946
|
const e = (t) => {
|
|
897
947
|
const { cx: i, cy: s, fill: r, payload: n } = t, o = () => {
|
|
898
948
|
if (!n) return "-";
|
|
@@ -916,18 +966,18 @@ const Ss = (a) => {
|
|
|
916
966
|
});
|
|
917
967
|
};
|
|
918
968
|
return e.displayName = `Scatter-${a}`, e;
|
|
919
|
-
},
|
|
969
|
+
}, Rs = ({ dataConfig: a, data: e, xAxis: t, yAxis: i = {
|
|
920
970
|
hide: !0
|
|
921
971
|
}, 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) => {
|
|
922
|
-
var
|
|
923
|
-
const
|
|
972
|
+
var A, W, H, F;
|
|
973
|
+
const v = oi(e), b = l != null && l.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], _ = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], E = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], C = [...b, ..._, ...E], S = Math.max(...v.flatMap((x) => C.map((D) => ai(i != null && i.tickFormatter ? i.tickFormatter(`${x[D]}`) : `${x[D]}`)))), N = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "left"), P = [l, d, f].filter((x) => (x == null ? void 0 : x.axisPosition) === "right");
|
|
924
974
|
return g(li, {
|
|
925
975
|
config: a,
|
|
926
976
|
ref: m,
|
|
927
977
|
aspect: o,
|
|
928
|
-
children:
|
|
978
|
+
children: R(Es, {
|
|
929
979
|
accessibilityLayer: !0,
|
|
930
|
-
data:
|
|
980
|
+
data: v,
|
|
931
981
|
margin: {
|
|
932
982
|
left: i && !i.hide ? 0 : 12,
|
|
933
983
|
right: 12,
|
|
@@ -935,16 +985,16 @@ const Ss = (a) => {
|
|
|
935
985
|
bottom: c ? 24 : 12
|
|
936
986
|
},
|
|
937
987
|
stackOffset: void 0,
|
|
938
|
-
onClick: (
|
|
939
|
-
if (!p || !
|
|
988
|
+
onClick: (x) => {
|
|
989
|
+
if (!p || !x.activeLabel || !x.activePayload)
|
|
940
990
|
return;
|
|
941
|
-
const
|
|
942
|
-
label:
|
|
991
|
+
const D = {
|
|
992
|
+
label: x.activeLabel,
|
|
943
993
|
values: {}
|
|
944
994
|
};
|
|
945
|
-
for (const
|
|
946
|
-
|
|
947
|
-
p(
|
|
995
|
+
for (const ne of x.activePayload)
|
|
996
|
+
D.values[ne.name] = ne.value;
|
|
997
|
+
p(D);
|
|
948
998
|
},
|
|
949
999
|
children: [!r && g(hi, {
|
|
950
1000
|
...di(),
|
|
@@ -953,44 +1003,44 @@ const Ss = (a) => {
|
|
|
953
1003
|
})
|
|
954
1004
|
}), !n && g(ui, {
|
|
955
1005
|
...fi()
|
|
956
|
-
}),
|
|
957
|
-
...
|
|
1006
|
+
}), N.length > 0 && g(De, {
|
|
1007
|
+
...je(i),
|
|
958
1008
|
tick: !0,
|
|
959
|
-
width: i.width ??
|
|
960
|
-
hide: i.hide ||
|
|
961
|
-
label: (
|
|
962
|
-
value:
|
|
1009
|
+
width: i.width ?? S + 20 + (P.length > 0 && ((A = N[0]) != null && A.axisLabel) ? 20 : 0),
|
|
1010
|
+
hide: i.hide || N.some((x) => x == null ? void 0 : x.hideAxis),
|
|
1011
|
+
label: (W = N[0]) != null && W.axisLabel ? {
|
|
1012
|
+
value: N[0].axisLabel,
|
|
963
1013
|
angle: -90,
|
|
964
1014
|
position: "insideLeft"
|
|
965
1015
|
} : void 0
|
|
966
|
-
}),
|
|
967
|
-
...
|
|
1016
|
+
}), P.length > 0 && g(De, {
|
|
1017
|
+
...je(i),
|
|
968
1018
|
yAxisId: "right",
|
|
969
1019
|
orientation: "right",
|
|
970
1020
|
tick: !0,
|
|
971
|
-
width: i.width ??
|
|
972
|
-
hide: i.hide ||
|
|
973
|
-
label: (F =
|
|
974
|
-
value:
|
|
1021
|
+
width: i.width ?? S + 20 + (N.length > 0 && ((H = P[0]) != null && H.axisLabel) ? 20 : 0),
|
|
1022
|
+
hide: i.hide || P.some((x) => x == null ? void 0 : x.hideAxis),
|
|
1023
|
+
label: (F = P[0]) != null && F.axisLabel ? {
|
|
1024
|
+
value: P[0].axisLabel,
|
|
975
1025
|
angle: 90,
|
|
976
1026
|
position: "insideRight"
|
|
977
1027
|
} : void 0
|
|
978
|
-
}), g(
|
|
1028
|
+
}), g(ot, {
|
|
979
1029
|
...gi(t),
|
|
980
1030
|
hide: t == null ? void 0 : t.hide,
|
|
981
|
-
tick: c ? (
|
|
982
|
-
var
|
|
983
|
-
const { x:
|
|
984
|
-
return
|
|
985
|
-
transform: `translate(${
|
|
1031
|
+
tick: c ? (x) => {
|
|
1032
|
+
var Fe, Ge;
|
|
1033
|
+
const { x: D, y: ne, payload: Be } = x, Ie = ((Fe = e.find((Ut) => Ut.label === Be.value)) == null ? void 0 : Fe.values) || "", oe = Object.keys(Ie).length === 1 ? (Ge = Object.values(Ie)) == null ? void 0 : Ge[0] : void 0, jt = oe !== void 0 && i.tickFormatter ? i.tickFormatter(`${oe}`) : oe.toLocaleString();
|
|
1034
|
+
return R("g", {
|
|
1035
|
+
transform: `translate(${D},${ne})`,
|
|
986
1036
|
children: [g("text", {
|
|
987
1037
|
x: 0,
|
|
988
1038
|
y: 0,
|
|
989
1039
|
dy: 12,
|
|
990
1040
|
textAnchor: "middle",
|
|
991
1041
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
992
|
-
children:
|
|
993
|
-
}), !!
|
|
1042
|
+
children: Be.value
|
|
1043
|
+
}), !!oe && g("text", {
|
|
994
1044
|
x: 0,
|
|
995
1045
|
y: 0,
|
|
996
1046
|
dy: 28,
|
|
@@ -1000,34 +1050,34 @@ const Ss = (a) => {
|
|
|
1000
1050
|
})]
|
|
1001
1051
|
});
|
|
1002
1052
|
} : void 0
|
|
1003
|
-
}), b.map((
|
|
1053
|
+
}), b.map((x, D) => g(nt, {
|
|
1004
1054
|
isAnimationActive: !1,
|
|
1005
|
-
dataKey: String(
|
|
1006
|
-
fill: a[
|
|
1055
|
+
dataKey: String(x),
|
|
1056
|
+
fill: a[x].color ? Q(a[x].color) : Ne(D),
|
|
1007
1057
|
radius: 4,
|
|
1008
1058
|
maxBarSize: 32,
|
|
1009
|
-
children: s && g(
|
|
1059
|
+
children: s && g(st, {
|
|
1010
1060
|
position: "top",
|
|
1011
1061
|
offset: 10,
|
|
1012
1062
|
className: "fill-f1-foreground",
|
|
1013
1063
|
fontSize: 12
|
|
1014
|
-
}, `label-${String(
|
|
1015
|
-
}, `bar-${String(
|
|
1064
|
+
}, `label-${String(x)}`)
|
|
1065
|
+
}, `bar-${String(x)}`)), _.map((x, D) => g(rt, {
|
|
1016
1066
|
type: (d == null ? void 0 : d.lineType) ?? "natural",
|
|
1017
|
-
dataKey: String(
|
|
1018
|
-
stroke: a[
|
|
1067
|
+
dataKey: String(x),
|
|
1068
|
+
stroke: a[x].color ? Q(a[x].color) : Ne(b.length + D),
|
|
1019
1069
|
strokeWidth: 2,
|
|
1020
1070
|
dot: (d == null ? void 0 : d.dot) ?? !1,
|
|
1021
1071
|
isAnimationActive: !1,
|
|
1022
1072
|
yAxisId: (d == null ? void 0 : d.axisPosition) === "right" ? "right" : void 0
|
|
1023
|
-
}, `line-${String(
|
|
1024
|
-
dataKey: String(
|
|
1025
|
-
fill: a[
|
|
1073
|
+
}, `line-${String(x)}`)), E.map((x, D) => g(re, {
|
|
1074
|
+
dataKey: String(x),
|
|
1075
|
+
fill: a[x].color ? Q(a[x].color) : Ne(b.length + _.length + D),
|
|
1026
1076
|
r: 4,
|
|
1027
1077
|
isAnimationActive: !1,
|
|
1028
1078
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0,
|
|
1029
|
-
shape:
|
|
1030
|
-
}, `scatter-${String(
|
|
1079
|
+
shape: Ns(String(x))
|
|
1080
|
+
}, `scatter-${String(x)}`)), h && g(pi, {
|
|
1031
1081
|
content: g(mi, {
|
|
1032
1082
|
nameKey: "label"
|
|
1033
1083
|
}),
|
|
@@ -1038,29 +1088,29 @@ const Ss = (a) => {
|
|
|
1038
1088
|
})]
|
|
1039
1089
|
})
|
|
1040
1090
|
});
|
|
1041
|
-
},
|
|
1042
|
-
var
|
|
1091
|
+
}, Ds = at(Rs);
|
|
1092
|
+
var Ae = "Progress", Te = 100, [Ss, gr] = vi(Ae), [zs, ks] = Ss(Ae), kt = Pe.forwardRef(
|
|
1043
1093
|
(a, e) => {
|
|
1044
1094
|
const {
|
|
1045
1095
|
__scopeProgress: t,
|
|
1046
1096
|
value: i = null,
|
|
1047
1097
|
max: s,
|
|
1048
|
-
getValueLabel: r =
|
|
1098
|
+
getValueLabel: r = Ps,
|
|
1049
1099
|
...n
|
|
1050
1100
|
} = a;
|
|
1051
|
-
(s || s === 0) && !
|
|
1052
|
-
const o =
|
|
1053
|
-
i !== null && !
|
|
1054
|
-
const h =
|
|
1055
|
-
return /* @__PURE__ */ g(
|
|
1056
|
-
|
|
1101
|
+
(s || s === 0) && !Xe(s) && console.error(As(`${s}`, "Progress"));
|
|
1102
|
+
const o = Xe(s) ? s : Te;
|
|
1103
|
+
i !== null && !Je(i, o) && console.error(Ts(`${i}`, "Progress"));
|
|
1104
|
+
const h = Je(i, o) ? i : null, c = ge(h) ? r(h, o) : void 0;
|
|
1105
|
+
return /* @__PURE__ */ g(zs, { scope: t, value: h, max: o, children: /* @__PURE__ */ g(
|
|
1106
|
+
lt.div,
|
|
1057
1107
|
{
|
|
1058
1108
|
"aria-valuemax": o,
|
|
1059
1109
|
"aria-valuemin": 0,
|
|
1060
|
-
"aria-valuenow":
|
|
1110
|
+
"aria-valuenow": ge(h) ? h : void 0,
|
|
1061
1111
|
"aria-valuetext": c,
|
|
1062
1112
|
role: "progressbar",
|
|
1063
|
-
"data-state":
|
|
1113
|
+
"data-state": Tt(h, o),
|
|
1064
1114
|
"data-value": h ?? void 0,
|
|
1065
1115
|
"data-max": o,
|
|
1066
1116
|
...n,
|
|
@@ -1069,14 +1119,14 @@ var Te = "Progress", Le = 100, [Ps, pr] = yi(Te), [As, Os] = Ps(Te), zt = Oe.for
|
|
|
1069
1119
|
) });
|
|
1070
1120
|
}
|
|
1071
1121
|
);
|
|
1072
|
-
|
|
1073
|
-
var
|
|
1122
|
+
kt.displayName = Ae;
|
|
1123
|
+
var Pt = "ProgressIndicator", At = Pe.forwardRef(
|
|
1074
1124
|
(a, e) => {
|
|
1075
|
-
const { __scopeProgress: t, ...i } = a, s =
|
|
1125
|
+
const { __scopeProgress: t, ...i } = a, s = ks(Pt, t);
|
|
1076
1126
|
return /* @__PURE__ */ g(
|
|
1077
|
-
|
|
1127
|
+
lt.div,
|
|
1078
1128
|
{
|
|
1079
|
-
"data-state":
|
|
1129
|
+
"data-state": Tt(s.value, s.max),
|
|
1080
1130
|
"data-value": s.value ?? void 0,
|
|
1081
1131
|
"data-max": s.max,
|
|
1082
1132
|
...i,
|
|
@@ -1085,39 +1135,39 @@ var kt = "ProgressIndicator", Pt = Oe.forwardRef(
|
|
|
1085
1135
|
);
|
|
1086
1136
|
}
|
|
1087
1137
|
);
|
|
1088
|
-
|
|
1089
|
-
function
|
|
1138
|
+
At.displayName = Pt;
|
|
1139
|
+
function Ps(a, e) {
|
|
1090
1140
|
return `${Math.round(a / e * 100)}%`;
|
|
1091
1141
|
}
|
|
1092
|
-
function
|
|
1142
|
+
function Tt(a, e) {
|
|
1093
1143
|
return a == null ? "indeterminate" : a === e ? "complete" : "loading";
|
|
1094
1144
|
}
|
|
1095
|
-
function
|
|
1145
|
+
function ge(a) {
|
|
1096
1146
|
return typeof a == "number";
|
|
1097
1147
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return
|
|
1148
|
+
function Xe(a) {
|
|
1149
|
+
return ge(a) && !isNaN(a) && a > 0;
|
|
1100
1150
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return
|
|
1151
|
+
function Je(a, e) {
|
|
1152
|
+
return ge(a) && !isNaN(a) && a <= e && a >= 0;
|
|
1103
1153
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${
|
|
1154
|
+
function As(a, e) {
|
|
1155
|
+
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Te}\`.`;
|
|
1106
1156
|
}
|
|
1107
|
-
function
|
|
1157
|
+
function Ts(a, e) {
|
|
1108
1158
|
return `Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
1109
1159
|
- a positive number
|
|
1110
|
-
- less than the value passed to \`max\` (or ${
|
|
1160
|
+
- less than the value passed to \`max\` (or ${Te} if no \`max\` prop is set)
|
|
1111
1161
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
1112
1162
|
|
|
1113
1163
|
Defaulting to \`null\`.`;
|
|
1114
1164
|
}
|
|
1115
|
-
var Ot =
|
|
1116
|
-
const
|
|
1165
|
+
var Ot = kt, Os = At;
|
|
1166
|
+
const Lt = Pe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
|
|
1117
1167
|
ref: i,
|
|
1118
|
-
className:
|
|
1168
|
+
className: L("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", a),
|
|
1119
1169
|
...t,
|
|
1120
|
-
children: g(
|
|
1170
|
+
children: g(Os, {
|
|
1121
1171
|
className: "h-full w-full flex-1 transition-all",
|
|
1122
1172
|
style: {
|
|
1123
1173
|
backgroundColor: t.color,
|
|
@@ -1125,15 +1175,15 @@ const Tt = Oe.forwardRef(({ className: a, value: e, ...t }, i) => g(Ot, {
|
|
|
1125
1175
|
}
|
|
1126
1176
|
})
|
|
1127
1177
|
}));
|
|
1128
|
-
|
|
1129
|
-
const
|
|
1130
|
-
const r = i ?
|
|
1131
|
-
return
|
|
1178
|
+
Lt.displayName = Ot.displayName;
|
|
1179
|
+
const Ls = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
1180
|
+
const r = i ? Q(i) : Q("categorical-1"), n = a / e * 100;
|
|
1181
|
+
return R("div", {
|
|
1132
1182
|
className: "flex items-center space-x-2",
|
|
1133
1183
|
"aria-live": "polite",
|
|
1134
1184
|
children: [g("div", {
|
|
1135
1185
|
className: "flex-grow",
|
|
1136
|
-
children: g(
|
|
1186
|
+
children: g(Lt, {
|
|
1137
1187
|
color: r,
|
|
1138
1188
|
value: n,
|
|
1139
1189
|
className: "w-full",
|
|
@@ -1147,78 +1197,78 @@ const Bs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1147
1197
|
children: t
|
|
1148
1198
|
})]
|
|
1149
1199
|
});
|
|
1150
|
-
},
|
|
1200
|
+
}, Ms = at(Ls), pr = I(
|
|
1151
1201
|
{
|
|
1152
1202
|
name: "AreaChart",
|
|
1153
1203
|
type: "info"
|
|
1154
1204
|
},
|
|
1155
|
-
|
|
1156
|
-
),
|
|
1205
|
+
Ci
|
|
1206
|
+
), mr = I(
|
|
1157
1207
|
{
|
|
1158
1208
|
name: "BarChart",
|
|
1159
1209
|
type: "info"
|
|
1160
1210
|
},
|
|
1161
|
-
|
|
1211
|
+
yi
|
|
1162
1212
|
), vr = I(
|
|
1163
1213
|
{
|
|
1164
1214
|
name: "CategoryBarChart",
|
|
1165
1215
|
type: "info"
|
|
1166
1216
|
},
|
|
1167
1217
|
bi
|
|
1168
|
-
),
|
|
1218
|
+
), yr = I(
|
|
1169
1219
|
{
|
|
1170
1220
|
name: "LineChart",
|
|
1171
1221
|
type: "info"
|
|
1172
1222
|
},
|
|
1173
1223
|
wi
|
|
1174
|
-
),
|
|
1224
|
+
), br = I(
|
|
1175
1225
|
{
|
|
1176
1226
|
name: "PieChart",
|
|
1177
1227
|
type: "info"
|
|
1178
1228
|
},
|
|
1179
|
-
|
|
1180
|
-
),
|
|
1229
|
+
xi
|
|
1230
|
+
), wr = I(
|
|
1181
1231
|
{
|
|
1182
1232
|
name: "VerticalBarChart",
|
|
1183
1233
|
type: "info"
|
|
1184
1234
|
},
|
|
1185
|
-
|
|
1235
|
+
_i
|
|
1186
1236
|
), xr = I(
|
|
1187
1237
|
{
|
|
1188
1238
|
name: "ProgressBarChart",
|
|
1189
1239
|
type: "info"
|
|
1190
1240
|
},
|
|
1191
|
-
|
|
1192
|
-
),
|
|
1241
|
+
Ms
|
|
1242
|
+
), _r = I(
|
|
1193
1243
|
{
|
|
1194
1244
|
name: "ComboChart",
|
|
1195
1245
|
type: "info"
|
|
1196
1246
|
},
|
|
1197
|
-
|
|
1198
|
-
), Cr =
|
|
1199
|
-
const [t, i] =
|
|
1247
|
+
Ds
|
|
1248
|
+
), Cr = Ei, Er = ht, Nr = ["default", "outline", "neutral"], Rr = ht, Dr = ["sm", "md", "lg"], Sr = Ni, ke = ({ count: a, list: e }) => {
|
|
1249
|
+
const [t, i] = M(!1), s = g(de, {
|
|
1200
1250
|
label: `+${a}`
|
|
1201
1251
|
});
|
|
1202
|
-
return e != null && e.length ?
|
|
1252
|
+
return e != null && e.length ? R(dt, {
|
|
1203
1253
|
open: t,
|
|
1204
1254
|
onOpenChange: i,
|
|
1205
|
-
children: [g(
|
|
1255
|
+
children: [g(ct, {
|
|
1206
1256
|
asChild: !0,
|
|
1207
1257
|
children: g("button", {
|
|
1208
|
-
className:
|
|
1258
|
+
className: Ri("inline-flex flex-shrink-0 items-center"),
|
|
1209
1259
|
children: s
|
|
1210
1260
|
})
|
|
1211
|
-
}), g(
|
|
1261
|
+
}), g(ut, {
|
|
1212
1262
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
1213
1263
|
align: "end",
|
|
1214
|
-
children:
|
|
1264
|
+
children: R(ft, {
|
|
1215
1265
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
1216
1266
|
children: [e.map((r, n) => g("div", {
|
|
1217
1267
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
1218
|
-
children: g(
|
|
1268
|
+
children: g(de, {
|
|
1219
1269
|
...r
|
|
1220
1270
|
})
|
|
1221
|
-
}, n)), g(
|
|
1271
|
+
}, n)), g(gt, {
|
|
1222
1272
|
orientation: "vertical",
|
|
1223
1273
|
className: "[&_div]:bg-f1-background"
|
|
1224
1274
|
})]
|
|
@@ -1226,17 +1276,17 @@ const Bs = ({ value: a, max: e = 100, label: t, color: i }, s) => {
|
|
|
1226
1276
|
})]
|
|
1227
1277
|
}) : s;
|
|
1228
1278
|
};
|
|
1229
|
-
|
|
1230
|
-
const
|
|
1279
|
+
ke.displayName = "ChipCounter";
|
|
1280
|
+
const Mt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
1231
1281
|
if (i === "fill")
|
|
1232
1282
|
return g(Di, {
|
|
1233
1283
|
items: a,
|
|
1234
|
-
renderListItem: (h) => g(
|
|
1284
|
+
renderListItem: (h) => g(de, {
|
|
1235
1285
|
...h
|
|
1236
1286
|
}),
|
|
1237
1287
|
renderDropdownItem: () => null,
|
|
1238
1288
|
forceShowingOverflowIndicator: t !== void 0,
|
|
1239
|
-
renderOverflowIndicator: (h) => g(
|
|
1289
|
+
renderOverflowIndicator: (h) => g(ke, {
|
|
1240
1290
|
count: (t ?? 0) + h,
|
|
1241
1291
|
list: t ? void 0 : a.slice(a.length - h)
|
|
1242
1292
|
}),
|
|
@@ -1244,160 +1294,156 @@ const Lt = ({ chips: a, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
1244
1294
|
className: "flex-1"
|
|
1245
1295
|
});
|
|
1246
1296
|
const s = a.slice(0, e), r = a.slice(e), n = t ?? a.length - e, o = n > 0;
|
|
1247
|
-
return
|
|
1297
|
+
return R("div", {
|
|
1248
1298
|
className: "flex items-center gap-2",
|
|
1249
|
-
children: [s.map((h, c) => g(
|
|
1299
|
+
children: [s.map((h, c) => g(de, {
|
|
1250
1300
|
...h
|
|
1251
|
-
}, c)), o && g(
|
|
1301
|
+
}, c)), o && g(ke, {
|
|
1252
1302
|
count: n,
|
|
1253
1303
|
list: t ? void 0 : r
|
|
1254
1304
|
})]
|
|
1255
1305
|
});
|
|
1256
1306
|
};
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
},
|
|
1294
|
-
type: "text",
|
|
1295
|
-
onChange: (x) => {
|
|
1296
|
-
l(x);
|
|
1297
|
-
},
|
|
1298
|
-
error: d || o.error,
|
|
1299
|
-
onBlur: b,
|
|
1300
|
-
value: c,
|
|
1301
|
-
onClickContent: () => i == null ? void 0 : i(!0)
|
|
1302
|
-
})
|
|
1303
|
-
});
|
|
1304
|
-
});
|
|
1305
|
-
Mt.displayName = "DateInput";
|
|
1306
|
-
function Fs({ onChange: a, value: e, presets: t = [], granularities: i = ["day"], minDate: s, maxDate: r, open: n = !1, ...o }) {
|
|
1307
|
-
const [h, c] = A(), [l, d] = A(n);
|
|
1308
|
-
q(() => {
|
|
1309
|
-
d(n);
|
|
1310
|
-
}, [n]);
|
|
1311
|
-
const f = mt(), p = te(() => i[0] ?? "day", [i]), m = W((R) => {
|
|
1312
|
-
const E = R || p;
|
|
1313
|
-
if (!qe[E])
|
|
1314
|
-
throw new Error(`Invalid granularity ${E}`);
|
|
1315
|
-
return {
|
|
1316
|
-
...qe[E],
|
|
1317
|
-
key: E
|
|
1318
|
-
};
|
|
1319
|
-
}, [p]), y = W((R) => {
|
|
1320
|
-
var O;
|
|
1321
|
-
if (!R)
|
|
1322
|
-
return;
|
|
1323
|
-
const E = m(R == null ? void 0 : R.granularity);
|
|
1324
|
-
return R ? {
|
|
1325
|
-
value: E.toRange(E.calendarMode === "range" ? R.value : ((O = R.value) == null ? void 0 : O.from) ?? void 0),
|
|
1326
|
-
granularity: R.granularity
|
|
1327
|
-
} : void 0;
|
|
1328
|
-
}, [m]), b = te(() => m(h == null ? void 0 : h.granularity), [h == null ? void 0 : h.granularity, m]);
|
|
1329
|
-
q(() => {
|
|
1330
|
-
const R = y(e);
|
|
1331
|
-
De(h, R) || c(R);
|
|
1332
|
-
}, [e]);
|
|
1333
|
-
const N = (R) => {
|
|
1334
|
-
const E = y(R), L = m(E == null ? void 0 : E.granularity).calendarMode !== "range" && (E == null ? void 0 : E.granularity) === (h == null ? void 0 : h.granularity) && !De(E, h);
|
|
1335
|
-
x(E), L && d(!1);
|
|
1336
|
-
}, x = (R) => {
|
|
1337
|
-
const E = y(R);
|
|
1338
|
-
if (c(E), !De(E, h)) {
|
|
1339
|
-
const O = m(E == null ? void 0 : E.granularity);
|
|
1340
|
-
a == null || a(E, O.toString(E == null ? void 0 : E.value, f));
|
|
1307
|
+
Mt.displayName = "F0ChipList";
|
|
1308
|
+
const zr = pt("F0ChipList", Mt), kr = Si, Re = mt({
|
|
1309
|
+
base: "text-base text-f1-foreground",
|
|
1310
|
+
variants: {
|
|
1311
|
+
variant: {
|
|
1312
|
+
// -- PUBLIC VARIANTS
|
|
1313
|
+
// Heading
|
|
1314
|
+
heading: "text-lg font-semibold",
|
|
1315
|
+
// Body
|
|
1316
|
+
body: "",
|
|
1317
|
+
description: "text-f1-foreground-secondary",
|
|
1318
|
+
small: "text-sm font-medium text-f1-foreground-secondary",
|
|
1319
|
+
inverse: "text-f1-foreground-inverse",
|
|
1320
|
+
code: "text-f1-foreground-secondary",
|
|
1321
|
+
// Label
|
|
1322
|
+
label: "font-medium",
|
|
1323
|
+
// -- PRIVATE VARIANTS
|
|
1324
|
+
// Heading
|
|
1325
|
+
"heading-large": "text-2xl font-semibold",
|
|
1326
|
+
// Label
|
|
1327
|
+
"label-input": "font-medium text-f1-foreground-secondary",
|
|
1328
|
+
// Semantic text
|
|
1329
|
+
selected: "font-medium text-f1-foreground-selected",
|
|
1330
|
+
warning: "text-f1-foreground-warning",
|
|
1331
|
+
critical: "text-f1-foreground-critical",
|
|
1332
|
+
positive: "text-f1-foreground-positive",
|
|
1333
|
+
info: "text-f1-foreground-info",
|
|
1334
|
+
"warning-strong": "font-semibold text-f1-foreground-warning",
|
|
1335
|
+
"critical-strong": "font-semibold text-f1-foreground-critical",
|
|
1336
|
+
"positive-strong": "font-semibold text-f1-foreground-positive",
|
|
1337
|
+
"info-strong": "font-semibold text-f1-foreground-info"
|
|
1338
|
+
},
|
|
1339
|
+
align: {
|
|
1340
|
+
left: "text-left",
|
|
1341
|
+
center: "text-center",
|
|
1342
|
+
right: "text-right"
|
|
1341
1343
|
}
|
|
1342
|
-
},
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1344
|
+
},
|
|
1345
|
+
defaultVariants: {
|
|
1346
|
+
variant: "body",
|
|
1347
|
+
align: "left"
|
|
1348
|
+
}
|
|
1349
|
+
}), Hs = {
|
|
1350
|
+
"heading-large": "h1",
|
|
1351
|
+
heading: "h2",
|
|
1352
|
+
body: "p",
|
|
1353
|
+
description: "p",
|
|
1354
|
+
label: "p",
|
|
1355
|
+
"label-input": "label",
|
|
1356
|
+
small: "p",
|
|
1357
|
+
selected: "p",
|
|
1358
|
+
inverse: "p",
|
|
1359
|
+
warning: "p",
|
|
1360
|
+
critical: "p",
|
|
1361
|
+
positive: "p",
|
|
1362
|
+
info: "p",
|
|
1363
|
+
"warning-strong": "p",
|
|
1364
|
+
"critical-strong": "p",
|
|
1365
|
+
"positive-strong": "p",
|
|
1366
|
+
"info-strong": "p",
|
|
1367
|
+
code: "code"
|
|
1368
|
+
}, Oe = j(({ content: a, variant: e, align: t, className: i, as: s, ellipsis: r, noEllipsisTooltip: n, markdown: o, ...h }, c) => {
|
|
1369
|
+
const l = s ?? Hs[e ?? "body"];
|
|
1370
|
+
if (r !== void 0)
|
|
1371
|
+
return g(zi, {
|
|
1372
|
+
ref: c,
|
|
1373
|
+
lines: typeof r == "number" ? r : 1,
|
|
1374
|
+
noTooltip: n,
|
|
1375
|
+
tag: l,
|
|
1376
|
+
className: L(Re({
|
|
1377
|
+
variant: e,
|
|
1378
|
+
align: t
|
|
1379
|
+
}), i),
|
|
1380
|
+
markdown: o,
|
|
1381
|
+
...h,
|
|
1382
|
+
children: a
|
|
1350
1383
|
});
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1384
|
+
if (o) {
|
|
1385
|
+
const d = ki(a);
|
|
1386
|
+
return qe(l, {
|
|
1387
|
+
...h,
|
|
1388
|
+
className: L(Re({
|
|
1389
|
+
variant: e,
|
|
1390
|
+
align: t
|
|
1391
|
+
}), i),
|
|
1392
|
+
ref: c,
|
|
1393
|
+
dangerouslySetInnerHTML: {
|
|
1394
|
+
__html: d
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
return qe(l, {
|
|
1399
|
+
...h,
|
|
1400
|
+
className: L(Re({
|
|
1401
|
+
variant: e,
|
|
1402
|
+
align: t
|
|
1403
|
+
}), i),
|
|
1404
|
+
ref: c
|
|
1405
|
+
}, a);
|
|
1406
|
+
});
|
|
1407
|
+
Oe.displayName = "Text";
|
|
1408
|
+
const Bs = j((a, e) => g(Oe, {
|
|
1409
|
+
ref: e,
|
|
1410
|
+
variant: "heading",
|
|
1411
|
+
...a
|
|
1412
|
+
}));
|
|
1413
|
+
Bs.displayName = "F0Heading";
|
|
1414
|
+
const Is = j((a, e) => g(Oe, {
|
|
1415
|
+
ref: e,
|
|
1416
|
+
markdown: a.markdown ?? !0,
|
|
1417
|
+
...a
|
|
1418
|
+
}));
|
|
1419
|
+
Is.displayName = "F0Text";
|
|
1420
|
+
const Fs = {
|
|
1375
1421
|
xs: 1,
|
|
1376
1422
|
sm: 2,
|
|
1377
1423
|
md: 2,
|
|
1378
1424
|
lg: 2
|
|
1379
|
-
},
|
|
1380
|
-
const s =
|
|
1381
|
-
|
|
1382
|
-
const r =
|
|
1425
|
+
}, Gs = j(function({ widgets: e, children: t }, i) {
|
|
1426
|
+
const s = Z(null);
|
|
1427
|
+
_t(i, () => s.current);
|
|
1428
|
+
const r = is.toArray(e).filter((n) => !!n).map((n, o) => g("div", {
|
|
1383
1429
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
1384
1430
|
children: n
|
|
1385
1431
|
}, o));
|
|
1386
|
-
return g(
|
|
1432
|
+
return g(vt, {
|
|
1387
1433
|
layout: "home",
|
|
1388
|
-
children:
|
|
1434
|
+
children: R("div", {
|
|
1389
1435
|
ref: s,
|
|
1390
1436
|
className: "@container",
|
|
1391
|
-
children: [
|
|
1437
|
+
children: [R("div", {
|
|
1392
1438
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
1393
|
-
children: [g(
|
|
1394
|
-
columns:
|
|
1439
|
+
children: [g(Pi, {
|
|
1440
|
+
columns: Fs,
|
|
1395
1441
|
showArrows: !1,
|
|
1396
1442
|
children: r
|
|
1397
1443
|
}), g("main", {
|
|
1398
1444
|
children: t
|
|
1399
1445
|
})]
|
|
1400
|
-
}),
|
|
1446
|
+
}), R("div", {
|
|
1401
1447
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
1402
1448
|
children: [g("div", {
|
|
1403
1449
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
@@ -1412,40 +1458,40 @@ const Pr = Ai, Ar = Ae(
|
|
|
1412
1458
|
})]
|
|
1413
1459
|
})
|
|
1414
1460
|
});
|
|
1415
|
-
}),
|
|
1461
|
+
}), Ws = j(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: s = !1 }, r) {
|
|
1416
1462
|
return g("div", {
|
|
1417
1463
|
ref: r,
|
|
1418
1464
|
className: "h-full",
|
|
1419
|
-
children:
|
|
1420
|
-
className:
|
|
1465
|
+
children: R("div", {
|
|
1466
|
+
className: L("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", s && "md:sticky md:top-0 md:max-h-full"),
|
|
1421
1467
|
children: [g("main", {
|
|
1422
|
-
className:
|
|
1468
|
+
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"),
|
|
1423
1469
|
children: e
|
|
1424
|
-
}), g(
|
|
1470
|
+
}), g($s, {
|
|
1425
1471
|
sticky: s,
|
|
1426
|
-
className:
|
|
1472
|
+
className: L("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
1427
1473
|
children: t
|
|
1428
1474
|
})]
|
|
1429
1475
|
})
|
|
1430
1476
|
});
|
|
1431
|
-
}),
|
|
1432
|
-
className:
|
|
1477
|
+
}), $s = ({ children: a, className: e }) => g("aside", {
|
|
1478
|
+
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),
|
|
1433
1479
|
children: a
|
|
1434
|
-
}),
|
|
1480
|
+
}), js = mt({
|
|
1435
1481
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
1436
1482
|
variants: {
|
|
1437
1483
|
variant: {
|
|
1438
1484
|
narrow: "max-w-screen-lg"
|
|
1439
1485
|
}
|
|
1440
1486
|
}
|
|
1441
|
-
}), Ht =
|
|
1487
|
+
}), Ht = z.forwardRef(({ children: a, variant: e, className: t, ...i }, s) => g(vt, {
|
|
1442
1488
|
layout: "standard",
|
|
1443
1489
|
children: g("section", {
|
|
1444
1490
|
ref: s,
|
|
1445
|
-
className:
|
|
1491
|
+
className: L("relative flex-1 overflow-auto", t),
|
|
1446
1492
|
...i,
|
|
1447
1493
|
children: g("div", {
|
|
1448
|
-
className:
|
|
1494
|
+
className: L(js({
|
|
1449
1495
|
variant: e
|
|
1450
1496
|
})),
|
|
1451
1497
|
children: a
|
|
@@ -1453,37 +1499,37 @@ const Pr = Ai, Ar = Ae(
|
|
|
1453
1499
|
})
|
|
1454
1500
|
}));
|
|
1455
1501
|
Ht.displayName = "StandardLayout";
|
|
1456
|
-
const
|
|
1502
|
+
const Pr = I({
|
|
1457
1503
|
name: "StandardLayout",
|
|
1458
1504
|
type: "layout"
|
|
1459
|
-
}, Ht),
|
|
1505
|
+
}, Ht), Ar = I({
|
|
1460
1506
|
name: "TwoColumnLayout",
|
|
1461
1507
|
type: "layout"
|
|
1462
|
-
},
|
|
1508
|
+
}, Ws), Tr = I({
|
|
1463
1509
|
name: "HomeLayout",
|
|
1464
1510
|
type: "layout"
|
|
1465
|
-
},
|
|
1466
|
-
function
|
|
1467
|
-
const a =
|
|
1511
|
+
}, Gs), Bt = xe(null);
|
|
1512
|
+
function Le() {
|
|
1513
|
+
const a = Ct(Bt);
|
|
1468
1514
|
if (!a)
|
|
1469
1515
|
throw new Error(
|
|
1470
1516
|
"useGridStackContext must be used within a GridStackProvider"
|
|
1471
1517
|
);
|
|
1472
1518
|
return a;
|
|
1473
1519
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const [s, r] =
|
|
1476
|
-
var
|
|
1520
|
+
function Us({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
1521
|
+
const [s, r] = M(null), [n, o] = M(() => {
|
|
1522
|
+
var v;
|
|
1477
1523
|
const p = /* @__PURE__ */ new Map(), m = (b) => {
|
|
1478
|
-
var
|
|
1479
|
-
b.id && ((
|
|
1524
|
+
var _, E;
|
|
1525
|
+
b.id && ((_ = b.renderFn) != null && _.call(b)) && p.set(b.id, b), (E = b.subGridOpts) != null && E.children && b.subGridOpts.children.forEach((C) => {
|
|
1480
1526
|
m(C);
|
|
1481
1527
|
});
|
|
1482
1528
|
};
|
|
1483
|
-
return (
|
|
1529
|
+
return (v = e.children) == null || v.forEach((b) => {
|
|
1484
1530
|
m(b);
|
|
1485
1531
|
}), p;
|
|
1486
|
-
}), h =
|
|
1532
|
+
}), h = q(() => {
|
|
1487
1533
|
if (!s)
|
|
1488
1534
|
return;
|
|
1489
1535
|
const p = s.save();
|
|
@@ -1496,37 +1542,37 @@ function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1496
1542
|
y: m.y ?? 0
|
|
1497
1543
|
}))));
|
|
1498
1544
|
}, [s]);
|
|
1499
|
-
|
|
1545
|
+
ce(() => {
|
|
1500
1546
|
if (!s) return;
|
|
1501
|
-
const p = (m,
|
|
1502
|
-
t == null || t(m,
|
|
1547
|
+
const p = (m, v) => {
|
|
1548
|
+
t == null || t(m, v);
|
|
1503
1549
|
};
|
|
1504
1550
|
return s.on("resizestop", p), s.on("change added removed", h), () => {
|
|
1505
1551
|
s.off("resizestop"), s.off("change added removed");
|
|
1506
1552
|
};
|
|
1507
|
-
}, [s, t, h]),
|
|
1553
|
+
}, [s, t, h]), ce(() => {
|
|
1508
1554
|
s && h();
|
|
1509
1555
|
}, [s]);
|
|
1510
|
-
const c =
|
|
1556
|
+
const c = q((p) => {
|
|
1511
1557
|
s == null || s.addWidget(p), o((m) => {
|
|
1512
|
-
const
|
|
1513
|
-
return
|
|
1558
|
+
const v = new Map(m);
|
|
1559
|
+
return v.set(p.id, p), v;
|
|
1514
1560
|
});
|
|
1515
|
-
}, [s]), l =
|
|
1561
|
+
}, [s]), l = q((p) => {
|
|
1516
1562
|
s == null || s.addWidget(p), o((m) => {
|
|
1517
|
-
var b,
|
|
1518
|
-
const
|
|
1519
|
-
return (
|
|
1520
|
-
|
|
1521
|
-
}),
|
|
1563
|
+
var b, _;
|
|
1564
|
+
const v = new Map(m);
|
|
1565
|
+
return (_ = (b = p.subGridOpts) == null ? void 0 : b.children) == null || _.forEach((E) => {
|
|
1566
|
+
v.set(E.id, E);
|
|
1567
|
+
}), v;
|
|
1522
1568
|
});
|
|
1523
|
-
}, [s]), d =
|
|
1569
|
+
}, [s]), d = q((p) => {
|
|
1524
1570
|
const m = document.body.querySelector(`[gs-id="${p}"]`);
|
|
1525
|
-
m && (s == null || s.removeWidget(m)), o((
|
|
1526
|
-
const b = new Map(
|
|
1571
|
+
m && (s == null || s.removeWidget(m)), o((v) => {
|
|
1572
|
+
const b = new Map(v);
|
|
1527
1573
|
return b.delete(p), b;
|
|
1528
1574
|
});
|
|
1529
|
-
}, [s]), f =
|
|
1575
|
+
}, [s]), f = q(() => {
|
|
1530
1576
|
s == null || s.removeAll(), o(/* @__PURE__ */ new Map());
|
|
1531
1577
|
}, [s]);
|
|
1532
1578
|
return g(Bt.Provider, {
|
|
@@ -1550,33 +1596,33 @@ function qs({ children: a, initialOptions: e, onResizeStop: t, onChange: i }) {
|
|
|
1550
1596
|
});
|
|
1551
1597
|
}
|
|
1552
1598
|
const It = xe(null);
|
|
1553
|
-
function
|
|
1554
|
-
const a =
|
|
1599
|
+
function qs() {
|
|
1600
|
+
const a = Ct(It);
|
|
1555
1601
|
if (!a)
|
|
1556
1602
|
throw new Error(
|
|
1557
1603
|
"useGridStackRenderContext must be used within a GridStackProvider"
|
|
1558
1604
|
);
|
|
1559
1605
|
return a;
|
|
1560
1606
|
}
|
|
1561
|
-
const
|
|
1562
|
-
function
|
|
1563
|
-
const { _rawWidgetMetaMap: a } =
|
|
1564
|
-
return g(
|
|
1607
|
+
const Ks = xe(null);
|
|
1608
|
+
function Vs() {
|
|
1609
|
+
const { _rawWidgetMetaMap: a } = Le(), { getWidgetContainer: e } = qs();
|
|
1610
|
+
return g(we, {
|
|
1565
1611
|
children: Array.from(a.value.entries()).map(([t, i]) => {
|
|
1566
1612
|
var r;
|
|
1567
1613
|
const s = e(t);
|
|
1568
|
-
return s ? g(
|
|
1614
|
+
return s ? g(Ks.Provider, {
|
|
1569
1615
|
value: {
|
|
1570
1616
|
widget: {
|
|
1571
1617
|
id: t
|
|
1572
1618
|
}
|
|
1573
1619
|
},
|
|
1574
|
-
children:
|
|
1620
|
+
children: ss((r = i.renderFn) == null ? void 0 : r.call(i), s)
|
|
1575
1621
|
}, t) : null;
|
|
1576
1622
|
})
|
|
1577
1623
|
});
|
|
1578
1624
|
}
|
|
1579
|
-
function
|
|
1625
|
+
function Ys(a, e, t, i, s) {
|
|
1580
1626
|
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));
|
|
1581
1627
|
return r.prototype = e.prototype, r;
|
|
1582
1628
|
}
|
|
@@ -2641,8 +2687,8 @@ class $ {
|
|
|
2641
2687
|
const d = e._moving && !t.nested;
|
|
2642
2688
|
let f = d ? this.directionCollideCoverage(e, t, o) : o[0];
|
|
2643
2689
|
if (d && f && ((l = (c = e.grid) == null ? void 0 : c.opts) != null && l.subGridDynamic) && !e.grid._isTemp) {
|
|
2644
|
-
const p = u.areaIntercept(t.rect, f._rect), m = u.area(t.rect),
|
|
2645
|
-
p / (m <
|
|
2690
|
+
const p = u.areaIntercept(t.rect, f._rect), m = u.area(t.rect), v = u.area(f._rect);
|
|
2691
|
+
p / (m < v ? m : v) > 0.8 && (f.grid.makeSubGrid(f.el, void 0, e), f = void 0);
|
|
2646
2692
|
}
|
|
2647
2693
|
f ? h = !this._fixCollisions(e, r, f, t) : (h = !1, i && delete t.pack);
|
|
2648
2694
|
}
|
|
@@ -2793,7 +2839,7 @@ class $ {
|
|
|
2793
2839
|
}
|
|
2794
2840
|
}
|
|
2795
2841
|
$._idSeq = 0;
|
|
2796
|
-
const
|
|
2842
|
+
const T = {
|
|
2797
2843
|
alwaysShowResizeHandle: "mobile",
|
|
2798
2844
|
animate: !0,
|
|
2799
2845
|
auto: !0,
|
|
@@ -2827,32 +2873,32 @@ class w {
|
|
|
2827
2873
|
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);
|
|
2828
2874
|
class G {
|
|
2829
2875
|
}
|
|
2830
|
-
function
|
|
2876
|
+
function pe(a, e) {
|
|
2831
2877
|
a.touches.length > 1 || (a.cancelable && a.preventDefault(), u.simulateMouseEvent(a.changedTouches[0], e));
|
|
2832
2878
|
}
|
|
2833
2879
|
function Ft(a, e) {
|
|
2834
2880
|
a.cancelable && a.preventDefault(), u.simulateMouseEvent(a, e);
|
|
2835
2881
|
}
|
|
2836
|
-
function
|
|
2837
|
-
G.touchHandled || (G.touchHandled = !0,
|
|
2882
|
+
function me(a) {
|
|
2883
|
+
G.touchHandled || (G.touchHandled = !0, pe(a, "mousedown"));
|
|
2838
2884
|
}
|
|
2839
|
-
function
|
|
2840
|
-
G.touchHandled &&
|
|
2885
|
+
function ve(a) {
|
|
2886
|
+
G.touchHandled && pe(a, "mousemove");
|
|
2841
2887
|
}
|
|
2842
|
-
function
|
|
2888
|
+
function ye(a) {
|
|
2843
2889
|
if (!G.touchHandled)
|
|
2844
2890
|
return;
|
|
2845
2891
|
G.pointerLeaveTimeout && (window.clearTimeout(G.pointerLeaveTimeout), delete G.pointerLeaveTimeout);
|
|
2846
2892
|
const e = !!w.dragElement;
|
|
2847
|
-
|
|
2893
|
+
pe(a, "mouseup"), e || pe(a, "click"), G.touchHandled = !1;
|
|
2848
2894
|
}
|
|
2849
|
-
function
|
|
2895
|
+
function be(a) {
|
|
2850
2896
|
a.pointerType !== "mouse" && a.target.releasePointerCapture(a.pointerId);
|
|
2851
2897
|
}
|
|
2852
2898
|
function Qe(a) {
|
|
2853
2899
|
w.dragElement && a.pointerType !== "mouse" && Ft(a, "mouseenter");
|
|
2854
2900
|
}
|
|
2855
|
-
function
|
|
2901
|
+
function Ze(a) {
|
|
2856
2902
|
w.dragElement && a.pointerType !== "mouse" && (G.pointerLeaveTimeout = window.setTimeout(() => {
|
|
2857
2903
|
delete G.pointerLeaveTimeout, Ft(a, "mouseleave");
|
|
2858
2904
|
}, 10));
|
|
@@ -2864,15 +2910,15 @@ class Ce {
|
|
|
2864
2910
|
/** @internal */
|
|
2865
2911
|
_init() {
|
|
2866
2912
|
const e = this.el = document.createElement("div");
|
|
2867
|
-
return e.classList.add("ui-resizable-handle"), e.classList.add(`${Ce.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",
|
|
2913
|
+
return e.classList.add("ui-resizable-handle"), e.classList.add(`${Ce.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;
|
|
2868
2914
|
}
|
|
2869
2915
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
2870
2916
|
destroy() {
|
|
2871
|
-
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), B && (this.el.removeEventListener("touchstart",
|
|
2917
|
+
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), B && (this.el.removeEventListener("touchstart", me), this.el.removeEventListener("pointerdown", be)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
|
|
2872
2918
|
}
|
|
2873
2919
|
/** @internal called on mouse down on us: capture move on the entire document (mouse might not stay on us) until we release the mouse */
|
|
2874
2920
|
_mouseDown(e) {
|
|
2875
|
-
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (this.el.addEventListener("touchmove",
|
|
2921
|
+
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), B && (this.el.addEventListener("touchmove", ve), this.el.addEventListener("touchend", ye)), e.stopPropagation(), e.preventDefault();
|
|
2876
2922
|
}
|
|
2877
2923
|
/** @internal */
|
|
2878
2924
|
_mouseMove(e) {
|
|
@@ -2881,7 +2927,7 @@ class Ce {
|
|
|
2881
2927
|
}
|
|
2882
2928
|
/** @internal */
|
|
2883
2929
|
_mouseUp(e) {
|
|
2884
|
-
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && (this.el.removeEventListener("touchmove",
|
|
2930
|
+
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && (this.el.removeEventListener("touchmove", ve), this.el.removeEventListener("touchend", ye)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
|
|
2885
2931
|
}
|
|
2886
2932
|
/** @internal call when keys are being pressed - use Esc to cancel */
|
|
2887
2933
|
_keyEvent(e) {
|
|
@@ -2894,7 +2940,7 @@ class Ce {
|
|
|
2894
2940
|
}
|
|
2895
2941
|
}
|
|
2896
2942
|
Ce.prefix = "ui-resizable-";
|
|
2897
|
-
class
|
|
2943
|
+
class Me {
|
|
2898
2944
|
constructor() {
|
|
2899
2945
|
this._eventRegister = {};
|
|
2900
2946
|
}
|
|
@@ -2955,7 +3001,7 @@ class He {
|
|
|
2955
3001
|
return this._eventRegister[e](t);
|
|
2956
3002
|
}
|
|
2957
3003
|
}
|
|
2958
|
-
class
|
|
3004
|
+
class ie extends Me {
|
|
2959
3005
|
// have to be public else complains for HTMLElementExtendOpt ?
|
|
2960
3006
|
constructor(e, t = {}) {
|
|
2961
3007
|
super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
|
|
@@ -3056,7 +3102,7 @@ class re extends He {
|
|
|
3056
3102
|
}
|
|
3057
3103
|
/** @internal */
|
|
3058
3104
|
_setupHelper() {
|
|
3059
|
-
this.elOriginStyleVal =
|
|
3105
|
+
this.elOriginStyleVal = ie._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
|
|
3060
3106
|
const e = this.el.parentElement, t = u.getValuesFromTransformedElement(e);
|
|
3061
3107
|
return this.rectScale = {
|
|
3062
3108
|
x: t.xScale,
|
|
@@ -3065,7 +3111,7 @@ class re extends He {
|
|
|
3065
3111
|
}
|
|
3066
3112
|
/** @internal */
|
|
3067
3113
|
_cleanHelper() {
|
|
3068
|
-
return
|
|
3114
|
+
return ie._originStyleProp.forEach((e, t) => {
|
|
3069
3115
|
this.el.style[e] = this.elOriginStyleVal[t] || null;
|
|
3070
3116
|
}), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
|
|
3071
3117
|
}
|
|
@@ -3104,9 +3150,9 @@ class re extends He {
|
|
|
3104
3150
|
return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
|
|
3105
3151
|
}
|
|
3106
3152
|
}
|
|
3107
|
-
|
|
3108
|
-
const
|
|
3109
|
-
class
|
|
3153
|
+
ie._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
|
|
3154
|
+
const Xs = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
|
|
3155
|
+
class se extends Me {
|
|
3110
3156
|
constructor(e, t = {}) {
|
|
3111
3157
|
var r;
|
|
3112
3158
|
super(), this.el = e, this.option = t, this.dragTransform = {
|
|
@@ -3126,12 +3172,12 @@ class ne extends He {
|
|
|
3126
3172
|
}
|
|
3127
3173
|
enable() {
|
|
3128
3174
|
this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
|
|
3129
|
-
e.addEventListener("mousedown", this._mouseDown), B && (e.addEventListener("touchstart",
|
|
3175
|
+
e.addEventListener("mousedown", this._mouseDown), B && (e.addEventListener("touchstart", me), e.addEventListener("pointerdown", be));
|
|
3130
3176
|
}), this.el.classList.remove("ui-draggable-disabled"));
|
|
3131
3177
|
}
|
|
3132
3178
|
disable(e = !1) {
|
|
3133
3179
|
this.disabled !== !0 && (super.disable(), this.dragEls.forEach((t) => {
|
|
3134
|
-
t.removeEventListener("mousedown", this._mouseDown), B && (t.removeEventListener("touchstart",
|
|
3180
|
+
t.removeEventListener("mousedown", this._mouseDown), B && (t.removeEventListener("touchstart", me), t.removeEventListener("pointerdown", be));
|
|
3135
3181
|
}), e || this.el.classList.add("ui-draggable-disabled"));
|
|
3136
3182
|
}
|
|
3137
3183
|
destroy() {
|
|
@@ -3143,7 +3189,7 @@ class ne extends He {
|
|
|
3143
3189
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
3144
3190
|
_mouseDown(e) {
|
|
3145
3191
|
if (!w.mouseHandled)
|
|
3146
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(
|
|
3192
|
+
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 w.dragElement, delete w.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(), w.mouseHandled = !0), !0;
|
|
3147
3193
|
}
|
|
3148
3194
|
/** @internal method to call actual drag event */
|
|
3149
3195
|
_callDrag(e) {
|
|
@@ -3174,7 +3220,7 @@ class ne extends He {
|
|
|
3174
3220
|
/** @internal call when the mouse gets released to drop the item at current location */
|
|
3175
3221
|
_mouseUp(e) {
|
|
3176
3222
|
var t, i;
|
|
3177
|
-
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), B && e.currentTarget && (e.currentTarget.removeEventListener("touchmove",
|
|
3223
|
+
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) {
|
|
3178
3224
|
delete this.dragging, (t = this.el.gridstackNode) == null || delete t._origRotate, document.removeEventListener("keydown", this._keyEvent), ((i = w.dropElement) == null ? void 0 : i.el) === this.el.parentElement && delete w.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
|
|
3179
3225
|
const s = u.initEvent(e, { target: this.el, type: "dragstop" });
|
|
3180
3226
|
this.option.stop && this.option.stop(s), this.triggerEvent("dragstop", s), w.dropElement && w.dropElement.drop(e);
|
|
@@ -3196,7 +3242,7 @@ class ne extends He {
|
|
|
3196
3242
|
/** @internal create a clone copy (or user defined method) of the original drag item if set */
|
|
3197
3243
|
_createHelper() {
|
|
3198
3244
|
let e = this.el;
|
|
3199
|
-
return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = u.cloneNode(this.el)), e.parentElement || u.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle =
|
|
3245
|
+
return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = u.cloneNode(this.el)), e.parentElement || u.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = se.originStyleProp.map((t) => this.el.style[t]), e;
|
|
3200
3246
|
}
|
|
3201
3247
|
/** @internal set the fix position of the dragged item */
|
|
3202
3248
|
_setupHelperStyle(e) {
|
|
@@ -3214,7 +3260,7 @@ class ne extends He {
|
|
|
3214
3260
|
const e = (s = this.helper) == null ? void 0 : s.gridstackNode;
|
|
3215
3261
|
if (!(e != null && e._isAboutToRemove) && this.dragElementOriginStyle) {
|
|
3216
3262
|
const r = this.helper, n = this.dragElementOriginStyle.transition || null;
|
|
3217
|
-
r.style.transition = this.dragElementOriginStyle.transition = "none",
|
|
3263
|
+
r.style.transition = this.dragElementOriginStyle.transition = "none", se.originStyleProp.forEach((o) => r.style[o] = this.dragElementOriginStyle[o] || null), setTimeout(() => r.style.transition = n, 50);
|
|
3218
3264
|
}
|
|
3219
3265
|
return delete this.dragElementOriginStyle, this;
|
|
3220
3266
|
}
|
|
@@ -3256,8 +3302,8 @@ class ne extends He {
|
|
|
3256
3302
|
};
|
|
3257
3303
|
}
|
|
3258
3304
|
}
|
|
3259
|
-
|
|
3260
|
-
class
|
|
3305
|
+
se.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
3306
|
+
class Js extends Me {
|
|
3261
3307
|
constructor(e, t = {}) {
|
|
3262
3308
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
3263
3309
|
}
|
|
@@ -3268,10 +3314,10 @@ class Zs extends He {
|
|
|
3268
3314
|
super.off(e);
|
|
3269
3315
|
}
|
|
3270
3316
|
enable() {
|
|
3271
|
-
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", Qe), this.el.addEventListener("pointerleave",
|
|
3317
|
+
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", Qe), this.el.addEventListener("pointerleave", Ze)));
|
|
3272
3318
|
}
|
|
3273
3319
|
disable(e = !1) {
|
|
3274
|
-
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", Qe), this.el.removeEventListener("pointerleave",
|
|
3320
|
+
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", Qe), this.el.removeEventListener("pointerleave", Ze)));
|
|
3275
3321
|
}
|
|
3276
3322
|
destroy() {
|
|
3277
3323
|
this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
|
|
@@ -3323,9 +3369,9 @@ class Zs extends He {
|
|
|
3323
3369
|
};
|
|
3324
3370
|
}
|
|
3325
3371
|
}
|
|
3326
|
-
class
|
|
3372
|
+
class He {
|
|
3327
3373
|
static init(e) {
|
|
3328
|
-
return e.ddElement || (e.ddElement = new
|
|
3374
|
+
return e.ddElement || (e.ddElement = new He(e)), e.ddElement;
|
|
3329
3375
|
}
|
|
3330
3376
|
constructor(e) {
|
|
3331
3377
|
this.el = e;
|
|
@@ -3337,19 +3383,19 @@ class Be {
|
|
|
3337
3383
|
return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
|
|
3338
3384
|
}
|
|
3339
3385
|
setupDraggable(e) {
|
|
3340
|
-
return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new
|
|
3386
|
+
return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new se(this.el, e), this;
|
|
3341
3387
|
}
|
|
3342
3388
|
cleanDraggable() {
|
|
3343
3389
|
return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
|
|
3344
3390
|
}
|
|
3345
3391
|
setupResizable(e) {
|
|
3346
|
-
return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new
|
|
3392
|
+
return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new ie(this.el, e), this;
|
|
3347
3393
|
}
|
|
3348
3394
|
cleanResizable() {
|
|
3349
3395
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
3350
3396
|
}
|
|
3351
3397
|
setupDroppable(e) {
|
|
3352
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
3398
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Js(this.el, e), this;
|
|
3353
3399
|
}
|
|
3354
3400
|
cleanDroppable() {
|
|
3355
3401
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
@@ -3460,7 +3506,7 @@ class Qs {
|
|
|
3460
3506
|
/** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
|
|
3461
3507
|
_getDDElements(e, t) {
|
|
3462
3508
|
const i = e.gridstack || t !== "destroy" && t !== "disable", s = u.getElements(e);
|
|
3463
|
-
return s.length ? s.map((n) => n.ddElement || (i ?
|
|
3509
|
+
return s.length ? s.map((n) => n.ddElement || (i ? He.init(n) : null)).filter((n) => n) : [];
|
|
3464
3510
|
}
|
|
3465
3511
|
}
|
|
3466
3512
|
/*!
|
|
@@ -3470,8 +3516,8 @@ class Qs {
|
|
|
3470
3516
|
* Copyright (c) 2021-2025 Alain Dumesny
|
|
3471
3517
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
3472
3518
|
*/
|
|
3473
|
-
const
|
|
3474
|
-
class
|
|
3519
|
+
const k = new Qs();
|
|
3520
|
+
class y {
|
|
3475
3521
|
/**
|
|
3476
3522
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
3477
3523
|
* simply return the existing instance (ignore any passed options). There is also an initAll() version that support
|
|
@@ -3488,8 +3534,8 @@ class v {
|
|
|
3488
3534
|
static init(e = {}, t = ".grid-stack") {
|
|
3489
3535
|
if (typeof document > "u")
|
|
3490
3536
|
return null;
|
|
3491
|
-
const i =
|
|
3492
|
-
return i ? (i.gridstack || (i.gridstack = new
|
|
3537
|
+
const i = y.getGridElement(t);
|
|
3538
|
+
return i ? (i.gridstack || (i.gridstack = new y(i, u.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
|
|
3493
3539
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.` : "GridStack.init() no grid element was passed."), null);
|
|
3494
3540
|
}
|
|
3495
3541
|
/**
|
|
@@ -3503,8 +3549,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3503
3549
|
*/
|
|
3504
3550
|
static initAll(e = {}, t = ".grid-stack") {
|
|
3505
3551
|
const i = [];
|
|
3506
|
-
return typeof document > "u" || (
|
|
3507
|
-
s.gridstack || (s.gridstack = new
|
|
3552
|
+
return typeof document > "u" || (y.getGridElements(t).forEach((s) => {
|
|
3553
|
+
s.gridstack || (s.gridstack = new y(s, u.cloneDeep(e))), i.push(s.gridstack);
|
|
3508
3554
|
}), i.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
|
|
3509
3555
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)), i;
|
|
3510
3556
|
}
|
|
@@ -3523,14 +3569,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3523
3569
|
const n = i.gridstack;
|
|
3524
3570
|
return t && (n.opts = { ...n.opts, ...t }), t.children !== void 0 && n.load(t.children), n;
|
|
3525
3571
|
}
|
|
3526
|
-
return (!e.classList.contains("grid-stack") ||
|
|
3572
|
+
return (!e.classList.contains("grid-stack") || y.addRemoveCB) && (y.addRemoveCB ? i = y.addRemoveCB(e, t, !0, !0) : i = u.createDiv(["grid-stack", t.class], e)), y.init(t, i);
|
|
3527
3573
|
}
|
|
3528
3574
|
/** call this method to register your engine instead of the default one.
|
|
3529
3575
|
* See instead `GridStackOptions.engineClass` if you only need to
|
|
3530
3576
|
* replace just one instance.
|
|
3531
3577
|
*/
|
|
3532
3578
|
static registerEngine(e) {
|
|
3533
|
-
|
|
3579
|
+
y.engineClass = e;
|
|
3534
3580
|
}
|
|
3535
3581
|
/**
|
|
3536
3582
|
* @internal create placeholder DIV as needed
|
|
@@ -3538,7 +3584,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3538
3584
|
*/
|
|
3539
3585
|
get placeholder() {
|
|
3540
3586
|
if (!this._placeholder) {
|
|
3541
|
-
this._placeholder = u.createDiv([this.opts.placeholderClass,
|
|
3587
|
+
this._placeholder = u.createDiv([this.opts.placeholderClass, T.itemClass, this.opts.itemClass]);
|
|
3542
3588
|
const e = u.createDiv(["placeholder-content"], this._placeholder);
|
|
3543
3589
|
this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
|
|
3544
3590
|
}
|
|
@@ -3560,31 +3606,31 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3560
3606
|
!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)));
|
|
3561
3607
|
}
|
|
3562
3608
|
const r = {
|
|
3563
|
-
...u.cloneDeep(
|
|
3564
|
-
column: u.toNumber(e.getAttribute("gs-column")) ||
|
|
3565
|
-
minRow: i || u.toNumber(e.getAttribute("gs-min-row")) ||
|
|
3566
|
-
maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) ||
|
|
3567
|
-
staticGrid: u.toBool(e.getAttribute("gs-static")) ||
|
|
3609
|
+
...u.cloneDeep(T),
|
|
3610
|
+
column: u.toNumber(e.getAttribute("gs-column")) || T.column,
|
|
3611
|
+
minRow: i || u.toNumber(e.getAttribute("gs-min-row")) || T.minRow,
|
|
3612
|
+
maxRow: i || u.toNumber(e.getAttribute("gs-max-row")) || T.maxRow,
|
|
3613
|
+
staticGrid: u.toBool(e.getAttribute("gs-static")) || T.staticGrid,
|
|
3568
3614
|
sizeToContent: u.toBool(e.getAttribute("gs-size-to-content")) || void 0,
|
|
3569
3615
|
draggable: {
|
|
3570
|
-
handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") ||
|
|
3616
|
+
handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || T.draggable.handle
|
|
3571
3617
|
},
|
|
3572
3618
|
removableOptions: {
|
|
3573
|
-
accept: t.itemClass ||
|
|
3574
|
-
decline:
|
|
3619
|
+
accept: t.itemClass || T.removableOptions.accept,
|
|
3620
|
+
decline: T.removableOptions.decline
|
|
3575
3621
|
}
|
|
3576
3622
|
};
|
|
3577
3623
|
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");
|
|
3578
|
-
const n = this.el.closest("." +
|
|
3624
|
+
const n = this.el.closest("." + T.itemClass), o = n == null ? void 0 : n.gridstackNode;
|
|
3579
3625
|
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")
|
|
3580
3626
|
this.cellHeight(void 0);
|
|
3581
3627
|
else {
|
|
3582
|
-
typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !==
|
|
3628
|
+
typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== T.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
|
|
3583
3629
|
const l = t.cellHeight;
|
|
3584
3630
|
delete t.cellHeight, this.cellHeight(l);
|
|
3585
3631
|
}
|
|
3586
3632
|
t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = B), this._setStaticClass();
|
|
3587
|
-
const h = t.engineClass ||
|
|
3633
|
+
const h = t.engineClass || y.engineClass || $;
|
|
3588
3634
|
if (this.engine = new h({
|
|
3589
3635
|
column: this.getColumn(),
|
|
3590
3636
|
float: t.float,
|
|
@@ -3627,7 +3673,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3627
3673
|
if (e.ELEMENT_NODE)
|
|
3628
3674
|
return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(e);
|
|
3629
3675
|
let t, i = e;
|
|
3630
|
-
if (i.grid = this, i.el ? t = i.el :
|
|
3676
|
+
if (i.grid = this, i.el ? t = i.el : y.addRemoveCB ? t = y.addRemoveCB(this.el, e, !0, !1) : t = this.createWidgetDivs(i), !t)
|
|
3631
3677
|
return;
|
|
3632
3678
|
if (i = t.gridstackNode, i && t.parentElement === this.el && this.engine.nodes.find((r) => r._id === i._id))
|
|
3633
3679
|
return t;
|
|
@@ -3647,11 +3693,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3647
3693
|
const t = u.createDiv(["grid-stack-item", this.opts.itemClass]), i = u.createDiv(["grid-stack-item-content"], t);
|
|
3648
3694
|
return u.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([s]) => {
|
|
3649
3695
|
var r, n;
|
|
3650
|
-
s.isIntersecting && ((r = e.visibleObservable) == null || r.disconnect(), delete e.visibleObservable,
|
|
3696
|
+
s.isIntersecting && ((r = e.visibleObservable) == null || r.disconnect(), delete e.visibleObservable, y.renderCB(i, e), (n = e.grid) == null || n.prepareDragDrop(e.el));
|
|
3651
3697
|
}), window.setTimeout(() => {
|
|
3652
3698
|
var s;
|
|
3653
3699
|
return (s = e.visibleObservable) == null ? void 0 : s.observe(t);
|
|
3654
|
-
})) :
|
|
3700
|
+
})) : y.renderCB(i, e), t;
|
|
3655
3701
|
}
|
|
3656
3702
|
/**
|
|
3657
3703
|
* Convert an existing gridItem element into a sub-grid with the given (optional) options, else inherit them
|
|
@@ -3663,13 +3709,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3663
3709
|
* @returns newly created grid
|
|
3664
3710
|
*/
|
|
3665
3711
|
makeSubGrid(e, t, i, s = !0) {
|
|
3666
|
-
var p, m,
|
|
3712
|
+
var p, m, v;
|
|
3667
3713
|
let r = e.gridstackNode;
|
|
3668
3714
|
if (r || (r = this.makeWidget(e).gridstackNode), (p = r.subGrid) != null && p.el)
|
|
3669
3715
|
return r.subGrid;
|
|
3670
3716
|
let n, o = this;
|
|
3671
3717
|
for (; o && !n; )
|
|
3672
|
-
n = (m = o.opts) == null ? void 0 : m.subGridOpts, o = (
|
|
3718
|
+
n = (m = o.opts) == null ? void 0 : m.subGridOpts, o = (v = o.parentGridNode) == null ? void 0 : v.grid;
|
|
3673
3719
|
t = u.cloneDeep({
|
|
3674
3720
|
// by default sub-grid inherit from us | parent, other than id, children, etc...
|
|
3675
3721
|
...this.opts,
|
|
@@ -3685,11 +3731,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3685
3731
|
let h;
|
|
3686
3732
|
t.column === "auto" && (h = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
|
|
3687
3733
|
let c = r.el.querySelector(".grid-stack-item-content"), l, d;
|
|
3688
|
-
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),
|
|
3689
|
-
const b = h ? t.column : r.w,
|
|
3690
|
-
|
|
3734
|
+
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) {
|
|
3735
|
+
const b = h ? t.column : r.w, _ = r.h + i.h, E = r.el.style;
|
|
3736
|
+
E.transition = "none", this.update(r.el, { w: b, h: _ }), setTimeout(() => E.transition = null);
|
|
3691
3737
|
}
|
|
3692
|
-
const f = r.subGrid =
|
|
3738
|
+
const f = r.subGrid = y.addGrid(c, t);
|
|
3693
3739
|
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;
|
|
3694
3740
|
}
|
|
3695
3741
|
/**
|
|
@@ -3716,7 +3762,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3716
3762
|
* NOTE2: nested grids will ALWAYS save to the container size to be in sync with parent.
|
|
3717
3763
|
* @returns list of widgets or full grid option, including .children list of widgets
|
|
3718
3764
|
*/
|
|
3719
|
-
save(e = !0, t = !1, i =
|
|
3765
|
+
save(e = !0, t = !1, i = y.saveCB, s) {
|
|
3720
3766
|
const r = this.engine.save(e, i, s);
|
|
3721
3767
|
if (r.forEach((n) => {
|
|
3722
3768
|
var o;
|
|
@@ -3732,7 +3778,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3732
3778
|
const n = u.cloneDeep(this.opts);
|
|
3733
3779
|
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");
|
|
3734
3780
|
const o = n._alwaysShowResizeHandle;
|
|
3735
|
-
return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n,
|
|
3781
|
+
return delete n._alwaysShowResizeHandle, o !== void 0 ? n.alwaysShowResizeHandle = o : delete n.alwaysShowResizeHandle, u.removeInternalAndSame(n, T), n.children = r, n;
|
|
3736
3782
|
}
|
|
3737
3783
|
return r;
|
|
3738
3784
|
}
|
|
@@ -3771,7 +3817,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3771
3817
|
*
|
|
3772
3818
|
* @see {@link http://gridstackjs.com/demo/serialization.html} for complete example
|
|
3773
3819
|
*/
|
|
3774
|
-
load(e, t =
|
|
3820
|
+
load(e, t = y.addRemoveCB || !0) {
|
|
3775
3821
|
e = u.cloneDeep(e);
|
|
3776
3822
|
const i = this.getColumn();
|
|
3777
3823
|
e.forEach((l) => {
|
|
@@ -3781,15 +3827,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3781
3827
|
e.forEach((l) => {
|
|
3782
3828
|
s = Math.max(s, (l.x || 0) + l.w);
|
|
3783
3829
|
}), s > this.engine.defaultColumn && (this.engine.defaultColumn = s), s > i && (this.engine.nodes.length === 0 && this.responseLayout ? (this.engine.nodes = e, this.engine.columnChanged(s, i, this.responseLayout), e = this.engine.nodes, this.engine.nodes = [], delete this.responseLayout) : this.engine.cacheLayout(e, s, !0));
|
|
3784
|
-
const r =
|
|
3785
|
-
typeof t == "function" && (
|
|
3830
|
+
const r = y.addRemoveCB;
|
|
3831
|
+
typeof t == "function" && (y.addRemoveCB = t);
|
|
3786
3832
|
const n = [];
|
|
3787
3833
|
this.batchUpdate();
|
|
3788
3834
|
const o = !this.engine.nodes.length, h = o && this.opts.animate;
|
|
3789
3835
|
h && this.setAnimation(!1), !o && t && [...this.engine.nodes].forEach((d) => {
|
|
3790
3836
|
if (!d.id)
|
|
3791
3837
|
return;
|
|
3792
|
-
u.find(e, d.id) || (
|
|
3838
|
+
u.find(e, d.id) || (y.addRemoveCB && y.addRemoveCB(this.el, d, !1, !1), n.push(d), this.removeWidget(d.el, !0, !1));
|
|
3793
3839
|
}), this.engine._loading = !0;
|
|
3794
3840
|
const c = [];
|
|
3795
3841
|
return this.engine.nodes = this.engine.nodes.filter((l) => u.find(e, l.id) ? (c.push(l), !1) : !0), e.forEach((l) => {
|
|
@@ -3801,7 +3847,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3801
3847
|
p && p.gridstack && p.gridstack.load(l.subGridOpts.children);
|
|
3802
3848
|
}
|
|
3803
3849
|
} else t && this.addWidget(l);
|
|
3804
|
-
}), delete this.engine._loading, this.engine.removedNodes = n, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, r ?
|
|
3850
|
+
}), delete this.engine._loading, this.engine.removedNodes = n, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, r ? y.addRemoveCB = r : delete y.addRemoveCB, h && this.setAnimation(!0, !0), this;
|
|
3805
3851
|
}
|
|
3806
3852
|
/**
|
|
3807
3853
|
* use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient)
|
|
@@ -4117,7 +4163,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4117
4163
|
* grid.makeWidget(element, {x: 0, y: 1, w: 4, h: 2});
|
|
4118
4164
|
*/
|
|
4119
4165
|
makeWidget(e, t) {
|
|
4120
|
-
const i =
|
|
4166
|
+
const i = y.getElement(e);
|
|
4121
4167
|
if (!i || i.gridstackNode)
|
|
4122
4168
|
return i;
|
|
4123
4169
|
i.parentElement || this.el.appendChild(i), this._prepareElement(i, !0, t);
|
|
@@ -4156,11 +4202,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4156
4202
|
* @param triggerEvent if `false` (quiet mode) element will not be added to removed list and no 'removed' callbacks will be called (Default? true).
|
|
4157
4203
|
*/
|
|
4158
4204
|
removeWidget(e, t = !0, i = !0) {
|
|
4159
|
-
return e ? (
|
|
4205
|
+
return e ? (y.getElements(e).forEach((s) => {
|
|
4160
4206
|
if (s.parentElement && s.parentElement !== this.el)
|
|
4161
4207
|
return;
|
|
4162
4208
|
let r = s.gridstackNode;
|
|
4163
|
-
r || (r = this.engine.nodes.find((n) => s === n.el)), r && (t &&
|
|
4209
|
+
r || (r = this.engine.nodes.find((n) => s === n.el)), r && (t && y.addRemoveCB && y.addRemoveCB(this.el, r, !1, !1), delete s.gridstackNode, this._removeDD(s), this.engine.removeNode(r, t, i), t && s.parentElement && s.remove());
|
|
4164
4210
|
}), i && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
|
|
4165
4211
|
}
|
|
4166
4212
|
/**
|
|
@@ -4170,7 +4216,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4170
4216
|
*/
|
|
4171
4217
|
removeAll(e = !0, t = !0) {
|
|
4172
4218
|
return this.engine.nodes.forEach((i) => {
|
|
4173
|
-
e &&
|
|
4219
|
+
e && y.addRemoveCB && y.addRemoveCB(this.el, i, !1, !1), delete i.el.gridstackNode, this.opts.staticGrid || this._removeDD(i.el);
|
|
4174
4220
|
}), this.engine.removeAll(e, t), t && this._triggerRemoveEvent(), this;
|
|
4175
4221
|
}
|
|
4176
4222
|
/**
|
|
@@ -4236,7 +4282,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4236
4282
|
* });
|
|
4237
4283
|
*/
|
|
4238
4284
|
update(e, t) {
|
|
4239
|
-
return
|
|
4285
|
+
return y.getElements(e).forEach((i) => {
|
|
4240
4286
|
var l;
|
|
4241
4287
|
const s = i == null ? void 0 : i.gridstackNode;
|
|
4242
4288
|
if (!s)
|
|
@@ -4249,7 +4295,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4249
4295
|
o[d] = r[d] !== void 0 ? r[d] : s[d], delete r[d];
|
|
4250
4296
|
})), !o && (r.minW || r.minH || r.maxW || r.maxH) && (o = {}), r.content !== void 0) {
|
|
4251
4297
|
const d = i.querySelector(".grid-stack-item-content");
|
|
4252
|
-
d && d.textContent !== r.content && (s.content = r.content,
|
|
4298
|
+
d && d.textContent !== r.content && (s.content = r.content, y.renderCB(d, r), (l = s.subGrid) != null && l.el && (d.appendChild(s.subGrid.el), s.subGrid._updateContainerHeight())), delete r.content;
|
|
4253
4299
|
}
|
|
4254
4300
|
let h = !1, c = !1;
|
|
4255
4301
|
for (const d in r)
|
|
@@ -4258,7 +4304,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4258
4304
|
const d = o.w !== void 0 && o.w !== s.w;
|
|
4259
4305
|
this.moveNode(s, o), d && s.subGrid ? s.subGrid.onResize(this.hasAnimationCSS() ? s.w : void 0) : this.resizeToContentCheck(d, s), delete s._orig;
|
|
4260
4306
|
}
|
|
4261
|
-
(o || h) && this._writeAttr(i, s), c && this.prepareDragDrop(s.el),
|
|
4307
|
+
(o || h) && this._writeAttr(i, s), c && this.prepareDragDrop(s.el), y.updateCB && y.updateCB(s);
|
|
4262
4308
|
}), this;
|
|
4263
4309
|
}
|
|
4264
4310
|
moveNode(e, t) {
|
|
@@ -4297,21 +4343,21 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4297
4343
|
if (!s)
|
|
4298
4344
|
return;
|
|
4299
4345
|
let r = t.h ? t.h * s : e.clientHeight, n;
|
|
4300
|
-
if (t.resizeToContentParent && (n = e.querySelector(t.resizeToContentParent)), n || (n = e.querySelector(
|
|
4346
|
+
if (t.resizeToContentParent && (n = e.querySelector(t.resizeToContentParent)), n || (n = e.querySelector(y.resizeToContentParent)), !n)
|
|
4301
4347
|
return;
|
|
4302
4348
|
const o = e.clientHeight - n.clientHeight, h = t.h ? t.h * s - o : n.clientHeight;
|
|
4303
4349
|
let c;
|
|
4304
4350
|
if (t.subGrid) {
|
|
4305
4351
|
c = t.subGrid.getRow() * t.subGrid.getCellHeight(!0);
|
|
4306
|
-
const m = t.subGrid.el.getBoundingClientRect(),
|
|
4307
|
-
c += m.top -
|
|
4352
|
+
const m = t.subGrid.el.getBoundingClientRect(), v = e.getBoundingClientRect();
|
|
4353
|
+
c += m.top - v.top;
|
|
4308
4354
|
} else {
|
|
4309
4355
|
if ((p = (f = t.subGridOpts) == null ? void 0 : f.children) != null && p.length)
|
|
4310
4356
|
return;
|
|
4311
4357
|
{
|
|
4312
4358
|
const m = n.firstElementChild;
|
|
4313
4359
|
if (!m) {
|
|
4314
|
-
console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${
|
|
4360
|
+
console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${y.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
|
|
4315
4361
|
return;
|
|
4316
4362
|
}
|
|
4317
4363
|
c = m.getBoundingClientRect().height || h;
|
|
@@ -4326,7 +4372,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4326
4372
|
}
|
|
4327
4373
|
/** call the user resize (so they can do extra work) else our build in version */
|
|
4328
4374
|
resizeToContentCBCheck(e) {
|
|
4329
|
-
|
|
4375
|
+
y.resizeToContentCB ? y.resizeToContentCB(e) : this.resizeToContent(e);
|
|
4330
4376
|
}
|
|
4331
4377
|
/**
|
|
4332
4378
|
* Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.
|
|
@@ -4344,7 +4390,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4344
4390
|
* grid.rotate(widget, { left: 50, top: 30 });
|
|
4345
4391
|
*/
|
|
4346
4392
|
rotate(e, t) {
|
|
4347
|
-
return
|
|
4393
|
+
return y.getElements(e).forEach((i) => {
|
|
4348
4394
|
const s = i.gridstackNode;
|
|
4349
4395
|
if (!u.canBeRotated(s))
|
|
4350
4396
|
return;
|
|
@@ -4481,7 +4527,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4481
4527
|
}
|
|
4482
4528
|
/** @internal */
|
|
4483
4529
|
_prepareElement(e, t = !1, i) {
|
|
4484
|
-
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(
|
|
4530
|
+
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(T.itemClass, this.opts.itemClass);
|
|
4485
4531
|
const s = u.shouldSizeToContent(i);
|
|
4486
4532
|
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;
|
|
4487
4533
|
}
|
|
@@ -4569,7 +4615,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4569
4615
|
}
|
|
4570
4616
|
/** @internal */
|
|
4571
4617
|
static getGridElement(e) {
|
|
4572
|
-
return
|
|
4618
|
+
return y.getElement(e);
|
|
4573
4619
|
}
|
|
4574
4620
|
/** @internal */
|
|
4575
4621
|
static getGridElements(e) {
|
|
@@ -4600,7 +4646,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4600
4646
|
* // Access drag & drop functionality
|
|
4601
4647
|
*/
|
|
4602
4648
|
static getDD() {
|
|
4603
|
-
return
|
|
4649
|
+
return k;
|
|
4604
4650
|
}
|
|
4605
4651
|
/**
|
|
4606
4652
|
* call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
|
|
@@ -4613,7 +4659,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4613
4659
|
*/
|
|
4614
4660
|
static setupDragIn(e, t, i, s = document) {
|
|
4615
4661
|
(t == null ? void 0 : t.pause) !== void 0 && (w.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? u.getElements(e, s) : e).forEach((n, o) => {
|
|
4616
|
-
|
|
4662
|
+
k.isDraggable(n) || k.dragIn(n, t), i != null && i[o] && (n.gridstackNode = i[o]);
|
|
4617
4663
|
});
|
|
4618
4664
|
}
|
|
4619
4665
|
/**
|
|
@@ -4635,7 +4681,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4635
4681
|
* grid.movable('#fixed-widget', false);
|
|
4636
4682
|
*/
|
|
4637
4683
|
movable(e, t) {
|
|
4638
|
-
return this.opts.staticGrid ? this : (
|
|
4684
|
+
return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
|
|
4639
4685
|
const s = i.gridstackNode;
|
|
4640
4686
|
s && (t ? delete s.noMove : s.noMove = !0, this.prepareDragDrop(s.el));
|
|
4641
4687
|
}), this);
|
|
@@ -4656,7 +4702,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4656
4702
|
* grid.resizable('#fixed-size-widget', false);
|
|
4657
4703
|
*/
|
|
4658
4704
|
resizable(e, t) {
|
|
4659
|
-
return this.opts.staticGrid ? this : (
|
|
4705
|
+
return this.opts.staticGrid ? this : (y.getElements(e).forEach((i) => {
|
|
4660
4706
|
const s = i.gridstackNode;
|
|
4661
4707
|
s && (t ? delete s.noResize : s.noResize = !0, this.prepareDragDrop(s.el));
|
|
4662
4708
|
}), this);
|
|
@@ -4761,16 +4807,16 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4761
4807
|
cancelDrag() {
|
|
4762
4808
|
var t;
|
|
4763
4809
|
const e = (t = this._placeholder) == null ? void 0 : t.gridstackNode;
|
|
4764
|
-
e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove &&
|
|
4810
|
+
e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove && y._itemRemoving(e.el, !1), this.engine.restoreInitial());
|
|
4765
4811
|
}
|
|
4766
4812
|
/** @internal removes any drag&drop present (called during destroy) */
|
|
4767
4813
|
_removeDD(e) {
|
|
4768
|
-
return
|
|
4814
|
+
return k.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
|
|
4769
4815
|
}
|
|
4770
4816
|
/** @internal called to add drag over to support widgets being added externally */
|
|
4771
4817
|
_setupAcceptWidget() {
|
|
4772
4818
|
if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
|
|
4773
|
-
return
|
|
4819
|
+
return k.droppable(this.el, "destroy"), this;
|
|
4774
4820
|
let e, t;
|
|
4775
4821
|
const i = (s, r, n) => {
|
|
4776
4822
|
var f;
|
|
@@ -4795,7 +4841,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4795
4841
|
if (o._temporaryRemoved) {
|
|
4796
4842
|
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)) {
|
|
4797
4843
|
if (o.autoPosition = !0, !this.engine.willItFit(o)) {
|
|
4798
|
-
|
|
4844
|
+
k.off(r, "drag");
|
|
4799
4845
|
return;
|
|
4800
4846
|
}
|
|
4801
4847
|
o._willFitPos && (u.copyPos(o, o._willFitPos), delete o._willFitPos);
|
|
@@ -4804,7 +4850,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4804
4850
|
} else
|
|
4805
4851
|
this._dragOrResize(n, s, d, o, t, e);
|
|
4806
4852
|
};
|
|
4807
|
-
return
|
|
4853
|
+
return k.droppable(this.el, {
|
|
4808
4854
|
accept: (s) => {
|
|
4809
4855
|
const r = s.gridstackNode || this._readAttr(s, !1);
|
|
4810
4856
|
if ((r == null ? void 0 : r.grid) === this)
|
|
@@ -4843,7 +4889,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4843
4889
|
o.grid || (o.el || (o = { ...o }), o._isExternal = !0, n.gridstackNode = o);
|
|
4844
4890
|
const h = o.w || Math.round(n.offsetWidth / t) || 1, c = o.h || Math.round(n.offsetHeight / e) || 1;
|
|
4845
4891
|
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
|
|
4846
|
-
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0),
|
|
4892
|
+
o._temporaryRemoved = !0) : (o.w = h, o.h = c, o._temporaryRemoved = !0), y._itemRemoving(o.el, !1), k.on(r, "drag", i), i(s, r, n), !1;
|
|
4847
4893
|
}).on(this.el, "dropout", (s, r, n) => {
|
|
4848
4894
|
const o = (n == null ? void 0 : n.gridstackNode) || r.gridstackNode;
|
|
4849
4895
|
return o && (!o.grid || o.grid === this) && (this._leave(r, n), this._isTemp && this.removeAsSubGrid(o)), !1;
|
|
@@ -4856,13 +4902,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4856
4902
|
this.placeholder.remove(), delete this.placeholder.gridstackNode, h && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
|
|
4857
4903
|
const l = r._gridstackNodeOrig;
|
|
4858
4904
|
if (delete r._gridstackNodeOrig, h && (l != null && l.grid) && l.grid !== this) {
|
|
4859
|
-
const
|
|
4860
|
-
|
|
4905
|
+
const v = l.grid;
|
|
4906
|
+
v.engine.removeNodeFromLayoutCache(l), v.engine.removedNodes.push(l), v._triggerRemoveEvent()._triggerChangeEvent(), v.parentGridNode && !v.engine.nodes.length && v.opts.subGridDynamic && v.removeAsSubGrid();
|
|
4861
4907
|
}
|
|
4862
|
-
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp,
|
|
4908
|
+
if (!o || (h && (this.engine.cleanupNode(o), o.grid = this), (f = o.grid) == null || delete f._isTemp, k.off(r, "drag"), n !== r ? (n.remove(), r = n) : r.remove(), this._removeDD(r), !h))
|
|
4863
4909
|
return !1;
|
|
4864
4910
|
const d = (m = (p = o.subGrid) == null ? void 0 : p.el) == null ? void 0 : m.gridstack;
|
|
4865
|
-
return u.copyPos(o, this._readAttr(this.placeholder)), u.removePositioningStyles(r), c && (o.content || o.subGridOpts ||
|
|
4911
|
+
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;
|
|
4866
4912
|
}), this;
|
|
4867
4913
|
}
|
|
4868
4914
|
/** @internal mark item for removal */
|
|
@@ -4877,7 +4923,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4877
4923
|
if (typeof this.opts.removable != "string")
|
|
4878
4924
|
return this;
|
|
4879
4925
|
const e = document.querySelector(this.opts.removable);
|
|
4880
|
-
return e ? (!this.opts.staticGrid && !
|
|
4926
|
+
return e ? (!this.opts.staticGrid && !k.isDroppable(e) && k.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;
|
|
4881
4927
|
}
|
|
4882
4928
|
/**
|
|
4883
4929
|
* prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
|
|
@@ -4902,14 +4948,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4902
4948
|
const p = i.w !== i._orig.w, m = f.target;
|
|
4903
4949
|
if (!(!m.gridstackNode || m.gridstackNode.grid !== this)) {
|
|
4904
4950
|
if (i.el = m, i._isAboutToRemove) {
|
|
4905
|
-
const
|
|
4906
|
-
|
|
4951
|
+
const v = e.gridstackNode.grid;
|
|
4952
|
+
v._gsEventHandler[f.type] && v._gsEventHandler[f.type](f, m), v.engine.nodes.push(i), v.removeWidget(e, !0, !0);
|
|
4907
4953
|
} else
|
|
4908
4954
|
u.removePositioningStyles(m), i._temporaryRemoved ? (this._writePosAttr(m, i), this.engine.addNode(i)) : this._writePosAttr(m, i), this.triggerEvent(f, m);
|
|
4909
4955
|
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));
|
|
4910
4956
|
}
|
|
4911
4957
|
};
|
|
4912
|
-
|
|
4958
|
+
k.draggable(e, {
|
|
4913
4959
|
start: c,
|
|
4914
4960
|
stop: d,
|
|
4915
4961
|
drag: l
|
|
@@ -4919,7 +4965,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4919
4965
|
resize: l
|
|
4920
4966
|
}), i._initDD = !0;
|
|
4921
4967
|
}
|
|
4922
|
-
return
|
|
4968
|
+
return k.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
|
|
4923
4969
|
}
|
|
4924
4970
|
/** @internal handles actual drag/resize start */
|
|
4925
4971
|
_onStartMoving(e, t, i, s, r, n) {
|
|
@@ -4938,7 +4984,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4938
4984
|
};
|
|
4939
4985
|
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") {
|
|
4940
4986
|
const h = this.getColumn() - s.x, c = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
|
|
4941
|
-
|
|
4987
|
+
k.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));
|
|
4942
4988
|
}
|
|
4943
4989
|
}
|
|
4944
4990
|
/** @internal handles actual drag/resize */
|
|
@@ -4951,13 +4997,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4951
4997
|
return;
|
|
4952
4998
|
const b = i.position.top - s._prevYPix;
|
|
4953
4999
|
s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && u.updateScrollPosition(e, i.position, b);
|
|
4954
|
-
const
|
|
4955
|
-
o.x = Math.round(
|
|
5000
|
+
const _ = i.position.left + (i.position.left > s._lastUiPosition.left ? -l : c), E = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : d);
|
|
5001
|
+
o.x = Math.round(_ / r), o.y = Math.round(E / n);
|
|
4956
5002
|
const C = this._extraDragRow;
|
|
4957
5003
|
if (this.engine.collide(s, o)) {
|
|
4958
|
-
const
|
|
4959
|
-
let
|
|
4960
|
-
this.opts.maxRow &&
|
|
5004
|
+
const S = this.getRow();
|
|
5005
|
+
let N = Math.max(0, o.y + s.h - S);
|
|
5006
|
+
this.opts.maxRow && S + N > this.opts.maxRow && (N = Math.max(0, this.opts.maxRow - S)), this._extraDragRow = N;
|
|
4961
5007
|
} else
|
|
4962
5008
|
this._extraDragRow = 0;
|
|
4963
5009
|
if (this._extraDragRow !== C && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
|
|
@@ -4965,17 +5011,17 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4965
5011
|
} else if (t.type === "resize") {
|
|
4966
5012
|
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)
|
|
4967
5013
|
return;
|
|
4968
|
-
const b = i.position.left + c,
|
|
4969
|
-
o.x = Math.round(b / r), o.y = Math.round(
|
|
5014
|
+
const b = i.position.left + c, _ = i.position.top + d;
|
|
5015
|
+
o.x = Math.round(b / r), o.y = Math.round(_ / n), h = !0;
|
|
4970
5016
|
}
|
|
4971
5017
|
s._event = t, s._lastTried = o;
|
|
4972
|
-
const
|
|
5018
|
+
const v = {
|
|
4973
5019
|
x: i.position.left + c,
|
|
4974
5020
|
y: i.position.top + d,
|
|
4975
5021
|
w: (i.size ? i.size.width : s.w * r) - c - l,
|
|
4976
5022
|
h: (i.size ? i.size.height : s.h * n) - d - f
|
|
4977
5023
|
};
|
|
4978
|
-
if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect:
|
|
5024
|
+
if (this.engine.moveNodeCheck(s, { ...o, cellWidth: r, cellHeight: n, rect: v, resizing: h })) {
|
|
4979
5025
|
s._lastUiPosition = i.position, this.engine.cacheRects(r, n, d, l, f, c), delete s._skipDown, h && s.subGrid && s.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
|
|
4980
5026
|
const b = t.target;
|
|
4981
5027
|
s._sidebarOrig || this._writePosAttr(b, s), this.triggerEvent(t, b);
|
|
@@ -4995,40 +5041,40 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
4995
5041
|
_leave(e, t) {
|
|
4996
5042
|
t = t || e;
|
|
4997
5043
|
const i = t.gridstackNode;
|
|
4998
|
-
if (!i || (t.style.transform = t.style.transformOrigin = null,
|
|
5044
|
+
if (!i || (t.style.transform = t.style.transformOrigin = null, k.off(e, "drag"), i._temporaryRemoved))
|
|
4999
5045
|
return;
|
|
5000
5046
|
i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
|
|
5001
5047
|
const s = i._sidebarOrig;
|
|
5002
|
-
i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = s, this.opts.removable === !0 &&
|
|
5048
|
+
i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = s, this.opts.removable === !0 && y._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial();
|
|
5003
5049
|
}
|
|
5004
5050
|
// legacy method removed
|
|
5005
5051
|
commit() {
|
|
5006
|
-
return
|
|
5052
|
+
return Ys(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
5007
5053
|
}
|
|
5008
5054
|
}
|
|
5009
|
-
|
|
5055
|
+
y.renderCB = (a, e) => {
|
|
5010
5056
|
a && (e != null && e.content) && (a.textContent = e.content);
|
|
5011
5057
|
};
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
const
|
|
5017
|
-
function
|
|
5018
|
-
const { _gridStack: { value: e, set: t }, initialOptions: i } =
|
|
5058
|
+
y.resizeToContentParent = ".grid-stack-item-content";
|
|
5059
|
+
y.Utils = u;
|
|
5060
|
+
y.Engine = $;
|
|
5061
|
+
y.GDRev = "12.3.2";
|
|
5062
|
+
const le = /* @__PURE__ */ new WeakMap();
|
|
5063
|
+
function Zs({ children: a }) {
|
|
5064
|
+
const { _gridStack: { value: e, set: t }, initialOptions: i } = Le(), s = Z(/* @__PURE__ */ new Map()), r = Z(null), n = Z(i), o = q((c, l) => {
|
|
5019
5065
|
if (l.id && l.grid) {
|
|
5020
|
-
let d =
|
|
5021
|
-
d || (d = /* @__PURE__ */ new Map(),
|
|
5066
|
+
let d = le.get(l.grid);
|
|
5067
|
+
d || (d = /* @__PURE__ */ new Map(), le.set(l.grid, d)), d.set(l.id, c), s.current.set(l.id, c);
|
|
5022
5068
|
}
|
|
5023
|
-
}, []), h =
|
|
5024
|
-
return
|
|
5025
|
-
if (!
|
|
5069
|
+
}, []), h = q(() => r.current ? (y.renderCB = o, y.init(n.current, r.current)) : null, [o]);
|
|
5070
|
+
return Ke(() => {
|
|
5071
|
+
if (!tt(i, n.current) && e)
|
|
5026
5072
|
try {
|
|
5027
|
-
e.removeAll(!1), e.destroy(!1), s.current.clear(),
|
|
5073
|
+
e.removeAll(!1), e.destroy(!1), s.current.clear(), le.delete(e), n.current = i, t(h());
|
|
5028
5074
|
} catch (c) {
|
|
5029
5075
|
console.error("Error reinitializing gridstack", c);
|
|
5030
5076
|
}
|
|
5031
|
-
}, [i, e, h, t]),
|
|
5077
|
+
}, [i, e, h, t]), Ke(() => {
|
|
5032
5078
|
if (!e)
|
|
5033
5079
|
try {
|
|
5034
5080
|
t(h());
|
|
@@ -5036,10 +5082,10 @@ function er({ children: a }) {
|
|
|
5036
5082
|
console.error("Error initializing gridstack", c);
|
|
5037
5083
|
}
|
|
5038
5084
|
}, [e, h, t]), g(It.Provider, {
|
|
5039
|
-
value:
|
|
5085
|
+
value: Et(() => ({
|
|
5040
5086
|
getWidgetContainer: (c) => {
|
|
5041
5087
|
if (e) {
|
|
5042
|
-
const l =
|
|
5088
|
+
const l = le.get(e);
|
|
5043
5089
|
if (l != null && l.has(c))
|
|
5044
5090
|
return l.get(c) || null;
|
|
5045
5091
|
}
|
|
@@ -5052,9 +5098,9 @@ function er({ children: a }) {
|
|
|
5052
5098
|
})
|
|
5053
5099
|
});
|
|
5054
5100
|
}
|
|
5055
|
-
const Gt =
|
|
5056
|
-
const t =
|
|
5057
|
-
return
|
|
5101
|
+
const Gt = j((a, e) => {
|
|
5102
|
+
const t = Le();
|
|
5103
|
+
return _t(e, () => ({
|
|
5058
5104
|
addWidget: t.addWidget,
|
|
5059
5105
|
removeWidget: t.removeWidget,
|
|
5060
5106
|
addSubGrid: t.addSubGrid,
|
|
@@ -5062,19 +5108,19 @@ const Gt = K((a, e) => {
|
|
|
5062
5108
|
}), [t]), null;
|
|
5063
5109
|
});
|
|
5064
5110
|
Gt.displayName = "RefHandler";
|
|
5065
|
-
const Wt =
|
|
5066
|
-
const s =
|
|
5111
|
+
const Wt = j(({ options: a, widgets: e, onChange: t }, i) => {
|
|
5112
|
+
const s = Et(() => ({
|
|
5067
5113
|
...a,
|
|
5068
5114
|
children: e
|
|
5069
5115
|
}), [e]), r = (o, h, c) => {
|
|
5070
5116
|
let l = c[0], d = 1 / 0;
|
|
5071
5117
|
for (const f of c) {
|
|
5072
|
-
const p = f.w - o, m = f.h - h,
|
|
5073
|
-
|
|
5118
|
+
const p = f.w - o, m = f.h - h, v = p * p + m * m;
|
|
5119
|
+
v < d && (d = v, l = f);
|
|
5074
5120
|
}
|
|
5075
5121
|
return l;
|
|
5076
5122
|
};
|
|
5077
|
-
return
|
|
5123
|
+
return R(Us, {
|
|
5078
5124
|
initialOptions: s,
|
|
5079
5125
|
onResizeStop: (o, h) => {
|
|
5080
5126
|
var f, p;
|
|
@@ -5092,32 +5138,32 @@ const Wt = K(({ options: a, widgets: e, onChange: t }, i) => {
|
|
|
5092
5138
|
onChange: t,
|
|
5093
5139
|
children: [g(Gt, {
|
|
5094
5140
|
ref: i
|
|
5095
|
-
}), g(
|
|
5096
|
-
children: g(
|
|
5141
|
+
}), g(Zs, {
|
|
5142
|
+
children: g(Vs, {})
|
|
5097
5143
|
})]
|
|
5098
5144
|
});
|
|
5099
5145
|
});
|
|
5100
5146
|
Wt.displayName = "F0GridStack";
|
|
5101
|
-
const
|
|
5147
|
+
const Or = pt(
|
|
5102
5148
|
"F0GridStack",
|
|
5103
5149
|
Wt
|
|
5104
|
-
),
|
|
5150
|
+
), er = ({ benefits: a }) => g("div", {
|
|
5105
5151
|
className: "flex flex-col gap-2",
|
|
5106
|
-
children: a.map((e, t) => g(
|
|
5152
|
+
children: a.map((e, t) => g(tr, {
|
|
5107
5153
|
text: e
|
|
5108
5154
|
}, t))
|
|
5109
|
-
}),
|
|
5155
|
+
}), tr = ({ text: a }) => R("div", {
|
|
5110
5156
|
className: "flex flex-row items-start gap-2",
|
|
5111
|
-
children: [g(
|
|
5112
|
-
icon:
|
|
5157
|
+
children: [g(Oi, {
|
|
5158
|
+
icon: Li,
|
|
5113
5159
|
size: "md",
|
|
5114
5160
|
className: "text-f1-icon-positive"
|
|
5115
5161
|
}), g("span", {
|
|
5116
5162
|
children: a
|
|
5117
5163
|
})]
|
|
5118
|
-
}), $t =
|
|
5164
|
+
}), $t = j(({ title: a, image: e, benefits: t, actions: i, withShadow: s = !0, module: r, moduleName: n, tag: o, promoTag: h }, c) => R("div", {
|
|
5119
5165
|
ref: c,
|
|
5120
|
-
className:
|
|
5166
|
+
className: L("bg-white flex flex-row rounded-xl border border-f1-border-secondary", s && "shadow-md"),
|
|
5121
5167
|
children: [g("div", {
|
|
5122
5168
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
5123
5169
|
children: g("img", {
|
|
@@ -5125,26 +5171,26 @@ const Mr = Ae(
|
|
|
5125
5171
|
alt: "",
|
|
5126
5172
|
className: "h-full w-full rounded-lg object-cover"
|
|
5127
5173
|
})
|
|
5128
|
-
}),
|
|
5174
|
+
}), R("div", {
|
|
5129
5175
|
className: "flex flex-col justify-center gap-8 px-8 py-5",
|
|
5130
|
-
children: [
|
|
5176
|
+
children: [R("div", {
|
|
5131
5177
|
className: "flex flex-col gap-5",
|
|
5132
|
-
children: [
|
|
5178
|
+
children: [R("div", {
|
|
5133
5179
|
className: "flex flex-col gap-2",
|
|
5134
|
-
children: [
|
|
5180
|
+
children: [R("div", {
|
|
5135
5181
|
className: "flex flex-row items-center gap-2",
|
|
5136
|
-
children: [r && g(
|
|
5182
|
+
children: [r && g(yt, {
|
|
5137
5183
|
module: r
|
|
5138
5184
|
}), n && g("p", {
|
|
5139
5185
|
className: "text-base font-medium text-f1-foreground",
|
|
5140
5186
|
children: n
|
|
5141
5187
|
})]
|
|
5142
|
-
}), (o || h) &&
|
|
5188
|
+
}), (o || h) && R("div", {
|
|
5143
5189
|
className: "flex justify-start gap-2",
|
|
5144
|
-
children: [o && g(
|
|
5190
|
+
children: [o && g(Ai, {
|
|
5145
5191
|
icon: o.icon,
|
|
5146
5192
|
text: o.label
|
|
5147
|
-
}), h && g(
|
|
5193
|
+
}), h && g(Ti, {
|
|
5148
5194
|
variant: h.variant || "positive",
|
|
5149
5195
|
text: h.label
|
|
5150
5196
|
})]
|
|
@@ -5152,7 +5198,7 @@ const Mr = Ae(
|
|
|
5152
5198
|
className: "font-bold text-xl text-f1-foreground",
|
|
5153
5199
|
children: a
|
|
5154
5200
|
})]
|
|
5155
|
-
}), g(
|
|
5201
|
+
}), g(er, {
|
|
5156
5202
|
benefits: t
|
|
5157
5203
|
})]
|
|
5158
5204
|
}), i && g("div", {
|
|
@@ -5162,37 +5208,37 @@ const Mr = Ae(
|
|
|
5162
5208
|
})]
|
|
5163
5209
|
}));
|
|
5164
5210
|
$t.displayName = "ProductBlankslate";
|
|
5165
|
-
function
|
|
5166
|
-
const [n, o] =
|
|
5167
|
-
return
|
|
5211
|
+
function ir({ isOpen: a, onClose: e, title: t, children: i, module: s, portalContainer: r }) {
|
|
5212
|
+
const [n, o] = M(a);
|
|
5213
|
+
return ce(() => {
|
|
5168
5214
|
o(a);
|
|
5169
|
-
}, [a]), g(
|
|
5215
|
+
}, [a]), g(Mi, {
|
|
5170
5216
|
open: n,
|
|
5171
5217
|
onOpenChange: (c) => {
|
|
5172
5218
|
o(c), c || e();
|
|
5173
5219
|
},
|
|
5174
5220
|
modal: !0,
|
|
5175
|
-
children:
|
|
5221
|
+
children: R(Hi, {
|
|
5176
5222
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
5177
5223
|
container: r,
|
|
5178
|
-
children: [
|
|
5224
|
+
children: [R("div", {
|
|
5179
5225
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
5180
|
-
children: [
|
|
5226
|
+
children: [R(Bi, {
|
|
5181
5227
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
5182
|
-
children: [s && g(
|
|
5228
|
+
children: [s && g(yt, {
|
|
5183
5229
|
module: s,
|
|
5184
5230
|
size: "lg"
|
|
5185
5231
|
}), t]
|
|
5186
|
-
}), g(
|
|
5232
|
+
}), g(Ii, {
|
|
5187
5233
|
variant: "outline",
|
|
5188
5234
|
icon: bt,
|
|
5189
5235
|
onClick: e,
|
|
5190
5236
|
label: "Close modal",
|
|
5191
5237
|
hideLabel: !0
|
|
5192
5238
|
})]
|
|
5193
|
-
}),
|
|
5239
|
+
}), R(ft, {
|
|
5194
5240
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
5195
|
-
children: [i, g(
|
|
5241
|
+
children: [i, g(gt, {
|
|
5196
5242
|
orientation: "vertical",
|
|
5197
5243
|
className: "[&_div]:bg-f1-background"
|
|
5198
5244
|
})]
|
|
@@ -5200,25 +5246,25 @@ function sr({ isOpen: a, onClose: e, title: t, children: i, module: s, portalCon
|
|
|
5200
5246
|
})
|
|
5201
5247
|
});
|
|
5202
5248
|
}
|
|
5203
|
-
function
|
|
5204
|
-
const [
|
|
5249
|
+
function Lr({ 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: _ = !0 }) {
|
|
5250
|
+
const [E, C] = M(a), [S, N] = M(null), [P, A] = M(!1), W = async () => {
|
|
5205
5251
|
if (l != null && l.onClick) {
|
|
5206
|
-
|
|
5252
|
+
A(!0);
|
|
5207
5253
|
try {
|
|
5208
|
-
await l.onClick(), C(!1),
|
|
5254
|
+
await l.onClick(), C(!1), _ && N("success");
|
|
5209
5255
|
} catch {
|
|
5210
|
-
|
|
5256
|
+
_ && N("error");
|
|
5211
5257
|
} finally {
|
|
5212
|
-
|
|
5258
|
+
A(!1);
|
|
5213
5259
|
}
|
|
5214
5260
|
}
|
|
5215
|
-
},
|
|
5261
|
+
}, H = () => {
|
|
5216
5262
|
C(!1), e == null || e();
|
|
5217
|
-
}, F =
|
|
5218
|
-
return
|
|
5219
|
-
children: [g(
|
|
5220
|
-
isOpen:
|
|
5221
|
-
onClose:
|
|
5263
|
+
}, F = P;
|
|
5264
|
+
return R(we, {
|
|
5265
|
+
children: [g(ir, {
|
|
5266
|
+
isOpen: E,
|
|
5267
|
+
onClose: H,
|
|
5222
5268
|
title: d,
|
|
5223
5269
|
module: f,
|
|
5224
5270
|
portalContainer: m,
|
|
@@ -5229,18 +5275,18 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5229
5275
|
image: i,
|
|
5230
5276
|
benefits: s,
|
|
5231
5277
|
withShadow: !1,
|
|
5232
|
-
tag:
|
|
5278
|
+
tag: v,
|
|
5233
5279
|
promoTag: b,
|
|
5234
|
-
actions:
|
|
5280
|
+
actions: R("div", {
|
|
5235
5281
|
className: "flex gap-3",
|
|
5236
|
-
children: [l && g(
|
|
5282
|
+
children: [l && g(V, {
|
|
5237
5283
|
variant: l.variant,
|
|
5238
5284
|
label: F ? o.label : l.label,
|
|
5239
5285
|
icon: l.icon || void 0,
|
|
5240
|
-
onClick:
|
|
5286
|
+
onClick: W,
|
|
5241
5287
|
loading: l.loading,
|
|
5242
5288
|
size: l.size
|
|
5243
|
-
}), p && g(
|
|
5289
|
+
}), p && g(V, {
|
|
5244
5290
|
onClick: p.onClick,
|
|
5245
5291
|
label: p.label,
|
|
5246
5292
|
variant: p.variant,
|
|
@@ -5250,12 +5296,12 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5250
5296
|
})
|
|
5251
5297
|
})
|
|
5252
5298
|
})
|
|
5253
|
-
}),
|
|
5299
|
+
}), S && _ && g(wt, {
|
|
5254
5300
|
open: !0,
|
|
5255
5301
|
onClose: () => {
|
|
5256
|
-
|
|
5302
|
+
H(), N(null);
|
|
5257
5303
|
},
|
|
5258
|
-
success:
|
|
5304
|
+
success: S === "success",
|
|
5259
5305
|
errorMessage: r,
|
|
5260
5306
|
successMessage: n,
|
|
5261
5307
|
nextSteps: h,
|
|
@@ -5264,24 +5310,24 @@ function Hr({ isOpen: a, onClose: e, title: t, image: i, benefits: s, errorMessa
|
|
|
5264
5310
|
})]
|
|
5265
5311
|
});
|
|
5266
5312
|
}
|
|
5267
|
-
function
|
|
5268
|
-
const [c, l] =
|
|
5313
|
+
function sr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s, width: r, trackVisibility: n, actions: o, showConfirmation: h = !0 }) {
|
|
5314
|
+
const [c, l] = M(!1), d = () => {
|
|
5269
5315
|
l(!0), i && i();
|
|
5270
5316
|
};
|
|
5271
|
-
|
|
5317
|
+
ce(() => {
|
|
5272
5318
|
n && n(!c);
|
|
5273
5319
|
}, [n, c]);
|
|
5274
5320
|
const f = a == null ? void 0 : a.includes(".mp4");
|
|
5275
|
-
return g(
|
|
5276
|
-
children: c ? null :
|
|
5321
|
+
return g(we, {
|
|
5322
|
+
children: c ? null : R(Fi, {
|
|
5277
5323
|
style: {
|
|
5278
5324
|
width: r
|
|
5279
5325
|
},
|
|
5280
5326
|
className: "relative bg-f1-background p-1",
|
|
5281
|
-
children: [
|
|
5327
|
+
children: [R(Gi, {
|
|
5282
5328
|
children: [s && g("div", {
|
|
5283
5329
|
className: "absolute right-2 top-2 z-10",
|
|
5284
|
-
children: g(
|
|
5330
|
+
children: g(V, {
|
|
5285
5331
|
variant: "ghost",
|
|
5286
5332
|
icon: bt,
|
|
5287
5333
|
size: "sm",
|
|
@@ -5289,7 +5335,7 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5289
5335
|
onClick: d,
|
|
5290
5336
|
label: "Close"
|
|
5291
5337
|
})
|
|
5292
|
-
}),
|
|
5338
|
+
}), R("div", {
|
|
5293
5339
|
children: [g("div", {
|
|
5294
5340
|
children: a && (f ? g("video", {
|
|
5295
5341
|
src: a,
|
|
@@ -5303,20 +5349,20 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5303
5349
|
alt: e,
|
|
5304
5350
|
className: "h-full w-full rounded-md"
|
|
5305
5351
|
}))
|
|
5306
|
-
}),
|
|
5352
|
+
}), R("div", {
|
|
5307
5353
|
className: "flex flex-col gap-[2px] p-3",
|
|
5308
|
-
children: [g(
|
|
5354
|
+
children: [g(Ue, {
|
|
5309
5355
|
className: "text-lg font-medium",
|
|
5310
5356
|
children: e
|
|
5311
|
-
}), g(
|
|
5357
|
+
}), g(Ue, {
|
|
5312
5358
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
5313
5359
|
children: t
|
|
5314
5360
|
})]
|
|
5315
5361
|
})]
|
|
5316
5362
|
})]
|
|
5317
|
-
}), o && g(
|
|
5363
|
+
}), o && g(Wi, {
|
|
5318
5364
|
className: "p-3",
|
|
5319
|
-
children: o.map((p) => p.type === "upsell" ? g(
|
|
5365
|
+
children: o.map((p) => p.type === "upsell" ? g(xt, {
|
|
5320
5366
|
label: p.label,
|
|
5321
5367
|
onRequest: p.onClick,
|
|
5322
5368
|
errorMessage: p.errorMessage,
|
|
@@ -5326,7 +5372,7 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5326
5372
|
closeLabel: p.closeLabel,
|
|
5327
5373
|
showConfirmation: h && p.showConfirmation,
|
|
5328
5374
|
variant: p.variant
|
|
5329
|
-
}, p.label) : g(
|
|
5375
|
+
}, p.label) : g(V, {
|
|
5330
5376
|
label: p.label,
|
|
5331
5377
|
onClick: p.onClick,
|
|
5332
5378
|
variant: p.variant
|
|
@@ -5335,8 +5381,8 @@ function rr({ mediaUrl: a, title: e, description: t, onClose: i, dismissible: s,
|
|
|
5335
5381
|
})
|
|
5336
5382
|
});
|
|
5337
5383
|
}
|
|
5338
|
-
const
|
|
5339
|
-
const r = (h) => h.variant === "promote" ? g(
|
|
5384
|
+
const rr = j(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
5385
|
+
const r = (h) => h.variant === "promote" ? g(xt, {
|
|
5340
5386
|
label: h.label,
|
|
5341
5387
|
onRequest: async () => {
|
|
5342
5388
|
await h.onClick();
|
|
@@ -5349,14 +5395,14 @@ const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5349
5395
|
showIcon: h.showIcon,
|
|
5350
5396
|
showConfirmation: h.showConfirmation,
|
|
5351
5397
|
variant: h.variant
|
|
5352
|
-
}) : g(
|
|
5398
|
+
}) : g(V, {
|
|
5353
5399
|
onClick: h.onClick,
|
|
5354
5400
|
label: h.label,
|
|
5355
5401
|
variant: h.variant || "default",
|
|
5356
5402
|
size: "md",
|
|
5357
5403
|
icon: h.icon
|
|
5358
5404
|
}), n = (e == null ? void 0 : e.variant) !== "promote" ? e : void 0, o = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0;
|
|
5359
|
-
return
|
|
5405
|
+
return R($i, {
|
|
5360
5406
|
ref: s,
|
|
5361
5407
|
...i,
|
|
5362
5408
|
primaryAction: n,
|
|
@@ -5364,32 +5410,32 @@ const nr = K(function({ primaryAction: e, secondaryAction: t, ...i }, s) {
|
|
|
5364
5410
|
children: [(e == null ? void 0 : e.variant) === "promote" && r(e), (t == null ? void 0 : t.variant) === "promote" && r(t)]
|
|
5365
5411
|
});
|
|
5366
5412
|
});
|
|
5367
|
-
|
|
5368
|
-
function
|
|
5369
|
-
const [
|
|
5370
|
-
e(
|
|
5371
|
-
},
|
|
5372
|
-
if (
|
|
5373
|
-
|
|
5413
|
+
rr.displayName = "UpsellingBanner";
|
|
5414
|
+
function Mr({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s = "md", showIcon: r = !0, side: n = "right", align: o = "center", icon: h = ji, mediaUrl: c, title: l, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: v, hideLabel: b = !1 }) {
|
|
5415
|
+
const [_, E] = M(!1), [C, S] = M(null), [N, P] = M(null), A = (D) => {
|
|
5416
|
+
e(D), v && v();
|
|
5417
|
+
}, W = async (D) => {
|
|
5418
|
+
if (D.type === "upsell") {
|
|
5419
|
+
P(D);
|
|
5374
5420
|
try {
|
|
5375
|
-
await
|
|
5421
|
+
await D.onClick(), D.showConfirmation && (E(!0), S("success"));
|
|
5376
5422
|
} catch {
|
|
5377
|
-
|
|
5423
|
+
E(!0), S("error");
|
|
5378
5424
|
}
|
|
5379
5425
|
}
|
|
5380
|
-
},
|
|
5381
|
-
|
|
5382
|
-
}, F = a && !
|
|
5383
|
-
...
|
|
5384
|
-
onClick: () =>
|
|
5385
|
-
} :
|
|
5386
|
-
return
|
|
5387
|
-
children: [
|
|
5426
|
+
}, H = () => {
|
|
5427
|
+
S(null), E(!1), P(null), e(!1);
|
|
5428
|
+
}, F = a && !_, x = m == null ? void 0 : m.map((D) => D.type === "upsell" ? {
|
|
5429
|
+
...D,
|
|
5430
|
+
onClick: () => W(D)
|
|
5431
|
+
} : D);
|
|
5432
|
+
return R(we, {
|
|
5433
|
+
children: [R(dt, {
|
|
5388
5434
|
open: F,
|
|
5389
|
-
onOpenChange:
|
|
5390
|
-
children: [g(
|
|
5435
|
+
onOpenChange: A,
|
|
5436
|
+
children: [g(ct, {
|
|
5391
5437
|
asChild: !0,
|
|
5392
|
-
children: g(
|
|
5438
|
+
children: g(V, {
|
|
5393
5439
|
variant: i,
|
|
5394
5440
|
label: t,
|
|
5395
5441
|
size: s,
|
|
@@ -5397,11 +5443,11 @@ function Br({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5397
5443
|
onClick: () => e(a),
|
|
5398
5444
|
hideLabel: b
|
|
5399
5445
|
})
|
|
5400
|
-
}), g(
|
|
5446
|
+
}), g(ut, {
|
|
5401
5447
|
side: n,
|
|
5402
5448
|
align: o,
|
|
5403
5449
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
5404
|
-
children: g(
|
|
5450
|
+
children: g(sr, {
|
|
5405
5451
|
mediaUrl: c,
|
|
5406
5452
|
title: l,
|
|
5407
5453
|
description: d,
|
|
@@ -5409,60 +5455,60 @@ function Br({ isOpen: a, setIsOpen: e, label: t, variant: i = "promote", size: s
|
|
|
5409
5455
|
dismissible: !1,
|
|
5410
5456
|
width: f,
|
|
5411
5457
|
trackVisibility: p,
|
|
5412
|
-
actions:
|
|
5458
|
+
actions: x,
|
|
5413
5459
|
showConfirmation: !1
|
|
5414
5460
|
})
|
|
5415
5461
|
})]
|
|
5416
|
-
}), (
|
|
5462
|
+
}), (N == null ? void 0 : N.type) === "upsell" && N.showConfirmation && C && g(wt, {
|
|
5417
5463
|
open: !0,
|
|
5418
|
-
onClose:
|
|
5464
|
+
onClose: H,
|
|
5419
5465
|
success: C === "success",
|
|
5420
|
-
errorMessage:
|
|
5421
|
-
successMessage:
|
|
5422
|
-
nextSteps:
|
|
5423
|
-
closeLabel:
|
|
5466
|
+
errorMessage: N.errorMessage,
|
|
5467
|
+
successMessage: N.successMessage,
|
|
5468
|
+
nextSteps: N.nextSteps,
|
|
5469
|
+
closeLabel: N.closeLabel,
|
|
5424
5470
|
portalContainer: null
|
|
5425
5471
|
})]
|
|
5426
5472
|
});
|
|
5427
5473
|
}
|
|
5428
|
-
const
|
|
5429
|
-
const t =
|
|
5430
|
-
return
|
|
5474
|
+
const nr = xe(null), or = ({ children: a, fullScreen: e = !0 }) => {
|
|
5475
|
+
const t = Z(null), [i, s] = M(t.current);
|
|
5476
|
+
return es(() => {
|
|
5431
5477
|
s(t.current);
|
|
5432
|
-
}, []), g(
|
|
5478
|
+
}, []), g(nr.Provider, {
|
|
5433
5479
|
value: {
|
|
5434
5480
|
element: i
|
|
5435
5481
|
},
|
|
5436
5482
|
children: g("div", {
|
|
5437
5483
|
ref: t,
|
|
5438
5484
|
id: "f0-layout",
|
|
5439
|
-
className:
|
|
5485
|
+
className: L({
|
|
5440
5486
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
|
|
5441
5487
|
}),
|
|
5442
5488
|
children: a
|
|
5443
5489
|
})
|
|
5444
5490
|
});
|
|
5445
|
-
},
|
|
5491
|
+
}, ar = ({ children: a }) => g(Zi, {
|
|
5446
5492
|
reducedMotion: "user",
|
|
5447
5493
|
children: a
|
|
5448
|
-
}),
|
|
5449
|
-
children: g(
|
|
5494
|
+
}), Hr = ({ children: a, layout: e, link: t, privacyModeInitiallyEnabled: i, image: s, i18n: r, l10n: n, isDev: o = !1, dataCollectionStorageHandler: h, showExperimentalWarnings: c = !1 }) => g(ar, {
|
|
5495
|
+
children: g(Ui, {
|
|
5450
5496
|
isDev: o,
|
|
5451
5497
|
showExperimentalWarnings: c,
|
|
5452
|
-
children: g(
|
|
5498
|
+
children: g(qi, {
|
|
5453
5499
|
...n,
|
|
5454
|
-
children: g(
|
|
5500
|
+
children: g(Ki, {
|
|
5455
5501
|
...r,
|
|
5456
|
-
children: g(
|
|
5502
|
+
children: g(Vi, {
|
|
5457
5503
|
...t,
|
|
5458
|
-
children: g(
|
|
5504
|
+
children: g(or, {
|
|
5459
5505
|
...e,
|
|
5460
|
-
children: g(
|
|
5461
|
-
children: g(
|
|
5506
|
+
children: g(Yi, {
|
|
5507
|
+
children: g(Xi, {
|
|
5462
5508
|
initiallyEnabled: i,
|
|
5463
|
-
children: g(
|
|
5509
|
+
children: g(Ji, {
|
|
5464
5510
|
...s,
|
|
5465
|
-
children: g(
|
|
5511
|
+
children: g(Qi, {
|
|
5466
5512
|
handler: h,
|
|
5467
5513
|
children: a
|
|
5468
5514
|
})
|
|
@@ -5474,104 +5520,106 @@ const or = xe(null), ar = ({ children: a, fullScreen: e = !0 }) => {
|
|
|
5474
5520
|
})
|
|
5475
5521
|
})
|
|
5476
5522
|
})
|
|
5477
|
-
}),
|
|
5523
|
+
}), et = (a) => `datacollection-${a}`, Br = {
|
|
5478
5524
|
get: async (a) => JSON.parse(
|
|
5479
|
-
localStorage.getItem(
|
|
5525
|
+
localStorage.getItem(et(a)) ?? "{}"
|
|
5480
5526
|
),
|
|
5481
5527
|
set: async (a, e) => {
|
|
5482
|
-
localStorage.setItem(
|
|
5528
|
+
localStorage.setItem(et(a), JSON.stringify(e));
|
|
5483
5529
|
}
|
|
5484
5530
|
};
|
|
5485
5531
|
export {
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5532
|
+
pr as AreaChart,
|
|
5533
|
+
Gr as Await,
|
|
5534
|
+
mr as BarChart,
|
|
5489
5535
|
vr as CategoryBarChart,
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5536
|
+
_r as ComboChart,
|
|
5537
|
+
Wr as DndProvider,
|
|
5538
|
+
$r as EmojiImage,
|
|
5539
|
+
jr as F0Avatar,
|
|
5540
|
+
Ur as F0AvatarAlert,
|
|
5541
|
+
qr as F0AvatarCompany,
|
|
5542
|
+
Kr as F0AvatarDate,
|
|
5543
|
+
Vr as F0AvatarEmoji,
|
|
5544
|
+
Yr as F0AvatarFile,
|
|
5545
|
+
Xr as F0AvatarIcon,
|
|
5546
|
+
Jr as F0AvatarList,
|
|
5547
|
+
yt as F0AvatarModule,
|
|
5548
|
+
Qr as F0AvatarPerson,
|
|
5549
|
+
Zr as F0AvatarTeam,
|
|
5550
|
+
V as F0Button,
|
|
5551
|
+
en as F0ButtonDropdown,
|
|
5552
|
+
tn as F0ButtonToggle,
|
|
5553
|
+
sn as F0Card,
|
|
5554
|
+
rn as F0Checkbox,
|
|
5555
|
+
zr as F0ChipList,
|
|
5556
|
+
nn as F0DatePicker,
|
|
5557
|
+
on as F0EventCatcherProvider,
|
|
5558
|
+
Or as F0GridStack,
|
|
5559
|
+
Bs as F0Heading,
|
|
5560
|
+
Oi as F0Icon,
|
|
5561
|
+
an as F0Link,
|
|
5562
|
+
Hr as F0Provider,
|
|
5563
|
+
ln as F0TagAlert,
|
|
5564
|
+
hn as F0TagBalance,
|
|
5565
|
+
dn as F0TagCompany,
|
|
5566
|
+
cn as F0TagDot,
|
|
5567
|
+
un as F0TagList,
|
|
5568
|
+
fn as F0TagPerson,
|
|
5569
|
+
Ai as F0TagRaw,
|
|
5570
|
+
Ti as F0TagStatus,
|
|
5571
|
+
gn as F0TagTeam,
|
|
5572
|
+
Is as F0Text,
|
|
5573
|
+
pn as GROUP_ID_SYMBOL,
|
|
5574
|
+
Tr as HomeLayout,
|
|
5575
|
+
yr as LineChart,
|
|
5576
|
+
mn as OneFilterPicker,
|
|
5577
|
+
br as PieChart,
|
|
5578
|
+
Xi as PrivacyModeProvider,
|
|
5531
5579
|
$t as ProductBlankslate,
|
|
5532
5580
|
vn as ProductCard,
|
|
5533
|
-
|
|
5534
|
-
|
|
5581
|
+
Lr as ProductModal,
|
|
5582
|
+
sr as ProductWidget,
|
|
5535
5583
|
xr as ProgressBarChart,
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5584
|
+
Pr as StandardLayout,
|
|
5585
|
+
yn as TagCounter,
|
|
5586
|
+
Ar as TwoColumnLayout,
|
|
5539
5587
|
wt as UpsellRequestResponseDialog,
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5588
|
+
rr as UpsellingBanner,
|
|
5589
|
+
xt as UpsellingButton,
|
|
5590
|
+
Mr as UpsellingPopover,
|
|
5591
|
+
wr as VerticalBarChart,
|
|
5592
|
+
fr as avatarVariants,
|
|
5593
|
+
bn as buildTranslations,
|
|
5594
|
+
Rr as buttonDropdownSizes,
|
|
5547
5595
|
Nr as buttonDropdownVariants,
|
|
5548
|
-
|
|
5549
|
-
|
|
5596
|
+
Er as buttonSizes,
|
|
5597
|
+
Dr as buttonToggleSizes,
|
|
5550
5598
|
Cr as buttonVariants,
|
|
5551
|
-
|
|
5599
|
+
wn as createAtlaskitDriver,
|
|
5552
5600
|
xn as createDataSourceDefinition,
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5601
|
+
Br as dataCollectionLocalStorageHandler,
|
|
5602
|
+
kr as datepickerSizes,
|
|
5603
|
+
ur as defaultTranslations,
|
|
5604
|
+
pt as experimental,
|
|
5605
|
+
_n as getAnimationVariants,
|
|
5558
5606
|
Cn as getDataSourcePaginationType,
|
|
5559
|
-
|
|
5607
|
+
En as getEmojiLabel,
|
|
5560
5608
|
Nn as isInfiniteScrollPagination,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5609
|
+
Rn as isPageBasedPagination,
|
|
5610
|
+
Sr as linkVariants,
|
|
5611
|
+
Dn as modules,
|
|
5612
|
+
Sn as predefinedPresets,
|
|
5613
|
+
zn as tagDotColors,
|
|
5614
|
+
kn as useData,
|
|
5615
|
+
Pn as useDataSource,
|
|
5616
|
+
An as useDndEvents,
|
|
5569
5617
|
Tn as useDraggable,
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5618
|
+
On as useDroppableList,
|
|
5619
|
+
Ln as useEmojiConfetti,
|
|
5620
|
+
Mn as useGroups,
|
|
5621
|
+
Hn as usePrivacyMode,
|
|
5622
|
+
Bn as useReducedMotion,
|
|
5623
|
+
In as useSelectable,
|
|
5624
|
+
Fn as useXRay
|
|
5577
5625
|
};
|