arengibook 2.2.0 → 2.4.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/index.js +327 -417
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -2,57 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useContext, useEffect, useState, useRef, Fragment, Children, cloneElement } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
|
|
5
|
-
function _arrayLikeToArray$j(r, a) {
|
|
6
|
-
(null == a || a > r.length) && (a = r.length);
|
|
7
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8
|
-
return n;
|
|
9
|
-
}
|
|
10
5
|
function _arrayWithHoles$h(r) {
|
|
11
6
|
if (Array.isArray(r)) return r;
|
|
12
7
|
}
|
|
13
|
-
function _iterableToArrayLimit$h(r, l) {
|
|
14
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
15
|
-
if (null != t) {
|
|
16
|
-
var e,
|
|
17
|
-
n,
|
|
18
|
-
i,
|
|
19
|
-
u,
|
|
20
|
-
a = [],
|
|
21
|
-
f = true,
|
|
22
|
-
o = false;
|
|
23
|
-
try {
|
|
24
|
-
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
25
|
-
} catch (r) {
|
|
26
|
-
o = true, n = r;
|
|
27
|
-
} finally {
|
|
28
|
-
try {
|
|
29
|
-
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
30
|
-
} finally {
|
|
31
|
-
if (o) throw n;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return a;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _nonIterableRest$h() {
|
|
38
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
39
|
-
}
|
|
40
|
-
function _slicedToArray$h(r, e) {
|
|
41
|
-
return _arrayWithHoles$h(r) || _iterableToArrayLimit$h(r, e) || _unsupportedIterableToArray$j(r, e) || _nonIterableRest$h();
|
|
42
|
-
}
|
|
43
|
-
function _unsupportedIterableToArray$j(r, a) {
|
|
44
|
-
if (r) {
|
|
45
|
-
if ("string" == typeof r) return _arrayLikeToArray$j(r, a);
|
|
46
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
47
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function _arrayWithHoles$g(r) {
|
|
52
|
-
if (Array.isArray(r)) return r;
|
|
53
|
-
}
|
|
54
8
|
|
|
55
|
-
function _iterableToArrayLimit$
|
|
9
|
+
function _iterableToArrayLimit$h(r, l) {
|
|
56
10
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
57
11
|
if (null != t) {
|
|
58
12
|
var e,
|
|
@@ -91,12 +45,12 @@ function _unsupportedIterableToArray$2$1(r, a) {
|
|
|
91
45
|
}
|
|
92
46
|
}
|
|
93
47
|
|
|
94
|
-
function _nonIterableRest$
|
|
48
|
+
function _nonIterableRest$h() {
|
|
95
49
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
96
50
|
}
|
|
97
51
|
|
|
98
|
-
function _slicedToArray$
|
|
99
|
-
return _arrayWithHoles$
|
|
52
|
+
function _slicedToArray$h(r, e) {
|
|
53
|
+
return _arrayWithHoles$h(r) || _iterableToArrayLimit$h(r, e) || _unsupportedIterableToArray$2$1(r, e) || _nonIterableRest$h();
|
|
100
54
|
}
|
|
101
55
|
|
|
102
56
|
function _typeof$i(o) {
|
|
@@ -125,7 +79,7 @@ function classNames() {
|
|
|
125
79
|
classes.push(className);
|
|
126
80
|
} else if (type === 'object') {
|
|
127
81
|
var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
|
|
128
|
-
var _ref2 = _slicedToArray$
|
|
82
|
+
var _ref2 = _slicedToArray$h(_ref, 2),
|
|
129
83
|
key = _ref2[0],
|
|
130
84
|
value = _ref2[1];
|
|
131
85
|
return value ? key : null;
|
|
@@ -414,7 +368,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
414
368
|
var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
415
369
|
if (element) {
|
|
416
370
|
Object.entries(styles).forEach(function (_ref) {
|
|
417
|
-
var _ref2 = _slicedToArray$
|
|
371
|
+
var _ref2 = _slicedToArray$h(_ref, 2),
|
|
418
372
|
key = _ref2[0],
|
|
419
373
|
value = _ref2[1];
|
|
420
374
|
return element.style[key] = value;
|
|
@@ -450,7 +404,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
450
404
|
cv.push(v);
|
|
451
405
|
} else if (type === 'object') {
|
|
452
406
|
var _cv = Array.isArray(v) ? _computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
|
|
453
|
-
var _ref4 = _slicedToArray$
|
|
407
|
+
var _ref4 = _slicedToArray$h(_ref3, 2),
|
|
454
408
|
_k = _ref4[0],
|
|
455
409
|
_v = _ref4[1];
|
|
456
410
|
return rule === 'style' && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(), ":").concat(_v) : _v ? _k : undefined;
|
|
@@ -464,7 +418,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
464
418
|
}, styles);
|
|
465
419
|
};
|
|
466
420
|
Object.entries(attributes).forEach(function (_ref5) {
|
|
467
|
-
var _ref6 = _slicedToArray$
|
|
421
|
+
var _ref6 = _slicedToArray$h(_ref5, 2),
|
|
468
422
|
key = _ref6[0],
|
|
469
423
|
value = _ref6[1];
|
|
470
424
|
if (value !== undefined && value !== null) {
|
|
@@ -1505,9 +1459,9 @@ function _extends$L() {
|
|
|
1505
1459
|
}, _extends$L.apply(null, arguments);
|
|
1506
1460
|
}
|
|
1507
1461
|
|
|
1508
|
-
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$
|
|
1509
|
-
function _unsupportedIterableToArray$
|
|
1510
|
-
function _arrayLikeToArray$
|
|
1462
|
+
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
1463
|
+
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
1464
|
+
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1511
1465
|
var ObjectUtils = /*#__PURE__*/function () {
|
|
1512
1466
|
function ObjectUtils() {
|
|
1513
1467
|
_classCallCheck$3(this, ObjectUtils);
|
|
@@ -3321,11 +3275,11 @@ var PrimeReactContext = /*#__PURE__*/React__default.createContext();
|
|
|
3321
3275
|
|
|
3322
3276
|
var PrimeReact$2 = PrimeReact$1$1;
|
|
3323
3277
|
|
|
3324
|
-
function _arrayWithHoles$
|
|
3278
|
+
function _arrayWithHoles$g(r) {
|
|
3325
3279
|
if (Array.isArray(r)) return r;
|
|
3326
3280
|
}
|
|
3327
3281
|
|
|
3328
|
-
function _iterableToArrayLimit$
|
|
3282
|
+
function _iterableToArrayLimit$g(r, l) {
|
|
3329
3283
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3330
3284
|
if (null != t) {
|
|
3331
3285
|
var e,
|
|
@@ -3353,26 +3307,26 @@ function _iterableToArrayLimit$f(r, l) {
|
|
|
3353
3307
|
}
|
|
3354
3308
|
}
|
|
3355
3309
|
|
|
3356
|
-
function _arrayLikeToArray$
|
|
3310
|
+
function _arrayLikeToArray$i(r, a) {
|
|
3357
3311
|
(null == a || a > r.length) && (a = r.length);
|
|
3358
3312
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3359
3313
|
return n;
|
|
3360
3314
|
}
|
|
3361
3315
|
|
|
3362
|
-
function _unsupportedIterableToArray$
|
|
3316
|
+
function _unsupportedIterableToArray$i(r, a) {
|
|
3363
3317
|
if (r) {
|
|
3364
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
3318
|
+
if ("string" == typeof r) return _arrayLikeToArray$i(r, a);
|
|
3365
3319
|
var t = {}.toString.call(r).slice(8, -1);
|
|
3366
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
3320
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0;
|
|
3367
3321
|
}
|
|
3368
3322
|
}
|
|
3369
3323
|
|
|
3370
|
-
function _nonIterableRest$
|
|
3324
|
+
function _nonIterableRest$g() {
|
|
3371
3325
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3372
3326
|
}
|
|
3373
3327
|
|
|
3374
|
-
function _slicedToArray$
|
|
3375
|
-
return _arrayWithHoles$
|
|
3328
|
+
function _slicedToArray$g(r, e) {
|
|
3329
|
+
return _arrayWithHoles$g(r) || _iterableToArrayLimit$g(r, e) || _unsupportedIterableToArray$i(r, e) || _nonIterableRest$g();
|
|
3376
3330
|
}
|
|
3377
3331
|
|
|
3378
3332
|
var usePrevious = function usePrevious(newValue) {
|
|
@@ -3464,11 +3418,11 @@ var useEventListener = function useEventListener(_ref) {
|
|
|
3464
3418
|
|
|
3465
3419
|
var useDebounce = function useDebounce(initialValue, delay) {
|
|
3466
3420
|
var _React$useState = React.useState(initialValue),
|
|
3467
|
-
_React$useState2 = _slicedToArray$
|
|
3421
|
+
_React$useState2 = _slicedToArray$g(_React$useState, 2),
|
|
3468
3422
|
inputValue = _React$useState2[0],
|
|
3469
3423
|
setInputValue = _React$useState2[1];
|
|
3470
3424
|
var _React$useState3 = React.useState(initialValue),
|
|
3471
|
-
_React$useState4 = _slicedToArray$
|
|
3425
|
+
_React$useState4 = _slicedToArray$g(_React$useState3, 2),
|
|
3472
3426
|
debouncedValue = _React$useState4[0],
|
|
3473
3427
|
setDebouncedValue = _React$useState4[1];
|
|
3474
3428
|
var mountedRef = React.useRef(false);
|
|
@@ -3500,10 +3454,10 @@ var useDisplayOrder = function useDisplayOrder(group) {
|
|
|
3500
3454
|
var _React$useState = React.useState(function () {
|
|
3501
3455
|
return UniqueComponentId();
|
|
3502
3456
|
}),
|
|
3503
|
-
_React$useState2 = _slicedToArray$
|
|
3457
|
+
_React$useState2 = _slicedToArray$g(_React$useState, 1),
|
|
3504
3458
|
uid = _React$useState2[0];
|
|
3505
3459
|
var _React$useState3 = React.useState(0),
|
|
3506
|
-
_React$useState4 = _slicedToArray$
|
|
3460
|
+
_React$useState4 = _slicedToArray$g(_React$useState3, 2),
|
|
3507
3461
|
displayOrder = _React$useState4[0],
|
|
3508
3462
|
setDisplayOrder = _React$useState4[1];
|
|
3509
3463
|
React.useEffect(function () {
|
|
@@ -3532,7 +3486,7 @@ var useDisplayOrder = function useDisplayOrder(group) {
|
|
|
3532
3486
|
};
|
|
3533
3487
|
|
|
3534
3488
|
function _arrayWithoutHoles$9(r) {
|
|
3535
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
3489
|
+
if (Array.isArray(r)) return _arrayLikeToArray$i(r);
|
|
3536
3490
|
}
|
|
3537
3491
|
|
|
3538
3492
|
function _iterableToArray$9(r) {
|
|
@@ -3544,7 +3498,7 @@ function _nonIterableSpread$9() {
|
|
|
3544
3498
|
}
|
|
3545
3499
|
|
|
3546
3500
|
function _toConsumableArray$9(r) {
|
|
3547
|
-
return _arrayWithoutHoles$9(r) || _iterableToArray$9(r) || _unsupportedIterableToArray$
|
|
3501
|
+
return _arrayWithoutHoles$9(r) || _iterableToArray$9(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread$9();
|
|
3548
3502
|
}
|
|
3549
3503
|
|
|
3550
3504
|
/**
|
|
@@ -3609,7 +3563,7 @@ var globalEscKeyHandlingLogic = {
|
|
|
3609
3563
|
*/
|
|
3610
3564
|
addListener: function addListener(callback, _ref) {
|
|
3611
3565
|
var _this = this;
|
|
3612
|
-
var _ref2 = _slicedToArray$
|
|
3566
|
+
var _ref2 = _slicedToArray$g(_ref, 2),
|
|
3613
3567
|
primaryPriority = _ref2[0],
|
|
3614
3568
|
secondaryPriority = _ref2[1];
|
|
3615
3569
|
var escKeyListeners = this.escKeyListeners;
|
|
@@ -3798,7 +3752,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3798
3752
|
},
|
|
3799
3753
|
when: when
|
|
3800
3754
|
}),
|
|
3801
|
-
_useEventListener2 = _slicedToArray$
|
|
3755
|
+
_useEventListener2 = _slicedToArray$g(_useEventListener, 2),
|
|
3802
3756
|
bindDocumentClickListener = _useEventListener2[0],
|
|
3803
3757
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
3804
3758
|
var _useResizeListener = useResizeListener({
|
|
@@ -3810,7 +3764,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3810
3764
|
},
|
|
3811
3765
|
when: when
|
|
3812
3766
|
}),
|
|
3813
|
-
_useResizeListener2 = _slicedToArray$
|
|
3767
|
+
_useResizeListener2 = _slicedToArray$g(_useResizeListener, 2),
|
|
3814
3768
|
bindWindowResizeListener = _useResizeListener2[0],
|
|
3815
3769
|
unbindWindowResizeListener = _useResizeListener2[1];
|
|
3816
3770
|
var _useEventListener3 = useEventListener({
|
|
@@ -3824,7 +3778,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3824
3778
|
},
|
|
3825
3779
|
when: when
|
|
3826
3780
|
}),
|
|
3827
|
-
_useEventListener4 = _slicedToArray$
|
|
3781
|
+
_useEventListener4 = _slicedToArray$g(_useEventListener3, 2),
|
|
3828
3782
|
bindWindowOrientationChangeListener = _useEventListener4[0],
|
|
3829
3783
|
unbindWindowOrientationChangeListener = _useEventListener4[1];
|
|
3830
3784
|
var _useOverlayScrollList = useOverlayScrollListener({
|
|
@@ -3837,7 +3791,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3837
3791
|
},
|
|
3838
3792
|
when: when
|
|
3839
3793
|
}),
|
|
3840
|
-
_useOverlayScrollList2 = _slicedToArray$
|
|
3794
|
+
_useOverlayScrollList2 = _slicedToArray$g(_useOverlayScrollList, 2),
|
|
3841
3795
|
bindOverlayScrollListener = _useOverlayScrollList2[0],
|
|
3842
3796
|
unbindOverlayScrollListener = _useOverlayScrollList2[1];
|
|
3843
3797
|
var isOutsideClicked = function isOutsideClicked(event) {
|
|
@@ -3875,7 +3829,7 @@ var _id = 0;
|
|
|
3875
3829
|
var useStyle = function useStyle(css) {
|
|
3876
3830
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3877
3831
|
var _useState = useState(false),
|
|
3878
|
-
_useState2 = _slicedToArray$
|
|
3832
|
+
_useState2 = _slicedToArray$g(_useState, 2),
|
|
3879
3833
|
isLoaded = _useState2[0],
|
|
3880
3834
|
setIsLoaded = _useState2[1];
|
|
3881
3835
|
var styleRef = useRef(null);
|
|
@@ -3970,25 +3924,25 @@ var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
|
3970
3924
|
}, deps);
|
|
3971
3925
|
};
|
|
3972
3926
|
|
|
3973
|
-
function _arrayLikeToArray$
|
|
3927
|
+
function _arrayLikeToArray$h(r, a) {
|
|
3974
3928
|
(null == a || a > r.length) && (a = r.length);
|
|
3975
3929
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3976
3930
|
return n;
|
|
3977
3931
|
}
|
|
3978
3932
|
|
|
3979
3933
|
function _arrayWithoutHoles$8(r) {
|
|
3980
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
3934
|
+
if (Array.isArray(r)) return _arrayLikeToArray$h(r);
|
|
3981
3935
|
}
|
|
3982
3936
|
|
|
3983
3937
|
function _iterableToArray$8(r) {
|
|
3984
3938
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
3985
3939
|
}
|
|
3986
3940
|
|
|
3987
|
-
function _unsupportedIterableToArray$
|
|
3941
|
+
function _unsupportedIterableToArray$h(r, a) {
|
|
3988
3942
|
if (r) {
|
|
3989
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
3943
|
+
if ("string" == typeof r) return _arrayLikeToArray$h(r, a);
|
|
3990
3944
|
var t = {}.toString.call(r).slice(8, -1);
|
|
3991
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
3945
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0;
|
|
3992
3946
|
}
|
|
3993
3947
|
}
|
|
3994
3948
|
|
|
@@ -3997,7 +3951,7 @@ function _nonIterableSpread$8() {
|
|
|
3997
3951
|
}
|
|
3998
3952
|
|
|
3999
3953
|
function _toConsumableArray$8(r) {
|
|
4000
|
-
return _arrayWithoutHoles$8(r) || _iterableToArray$8(r) || _unsupportedIterableToArray$
|
|
3954
|
+
return _arrayWithoutHoles$8(r) || _iterableToArray$8(r) || _unsupportedIterableToArray$h(r) || _nonIterableSpread$8();
|
|
4001
3955
|
}
|
|
4002
3956
|
|
|
4003
3957
|
function _typeof$g(o) {
|
|
@@ -4420,11 +4374,11 @@ function _defineProperty$f(e, r, t) {
|
|
|
4420
4374
|
}) : e[r] = t, e;
|
|
4421
4375
|
}
|
|
4422
4376
|
|
|
4423
|
-
function _arrayWithHoles$
|
|
4377
|
+
function _arrayWithHoles$f(r) {
|
|
4424
4378
|
if (Array.isArray(r)) return r;
|
|
4425
4379
|
}
|
|
4426
4380
|
|
|
4427
|
-
function _iterableToArrayLimit$
|
|
4381
|
+
function _iterableToArrayLimit$f(r, l) {
|
|
4428
4382
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
4429
4383
|
if (null != t) {
|
|
4430
4384
|
var e,
|
|
@@ -4449,26 +4403,26 @@ function _iterableToArrayLimit$e(r, l) {
|
|
|
4449
4403
|
}
|
|
4450
4404
|
}
|
|
4451
4405
|
|
|
4452
|
-
function _arrayLikeToArray$
|
|
4406
|
+
function _arrayLikeToArray$g(r, a) {
|
|
4453
4407
|
(null == a || a > r.length) && (a = r.length);
|
|
4454
4408
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4455
4409
|
return n;
|
|
4456
4410
|
}
|
|
4457
4411
|
|
|
4458
|
-
function _unsupportedIterableToArray$
|
|
4412
|
+
function _unsupportedIterableToArray$g(r, a) {
|
|
4459
4413
|
if (r) {
|
|
4460
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
4414
|
+
if ("string" == typeof r) return _arrayLikeToArray$g(r, a);
|
|
4461
4415
|
var t = {}.toString.call(r).slice(8, -1);
|
|
4462
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
4416
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0;
|
|
4463
4417
|
}
|
|
4464
4418
|
}
|
|
4465
4419
|
|
|
4466
|
-
function _nonIterableRest$
|
|
4420
|
+
function _nonIterableRest$f() {
|
|
4467
4421
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4468
4422
|
}
|
|
4469
4423
|
|
|
4470
|
-
function _slicedToArray$
|
|
4471
|
-
return _arrayWithHoles$
|
|
4424
|
+
function _slicedToArray$f(r, e) {
|
|
4425
|
+
return _arrayWithHoles$f(r) || _iterableToArrayLimit$f(r, e) || _unsupportedIterableToArray$g(r, e) || _nonIterableRest$f();
|
|
4472
4426
|
}
|
|
4473
4427
|
|
|
4474
4428
|
var styles$e = "\n@layer primereact {\n .p-ripple {\n overflow: hidden;\n position: relative;\n }\n \n .p-ink {\n display: block;\n position: absolute;\n background: rgba(255, 255, 255, 0.5);\n border-radius: 100%;\n transform: scale(0);\n }\n \n .p-ink-active {\n animation: ripple 0.4s linear;\n }\n \n .p-ripple-disabled .p-ink {\n display: none;\n }\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}\n\n";
|
|
@@ -4496,7 +4450,7 @@ function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
4496
4450
|
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), true).forEach(function (r) { _defineProperty$f(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4497
4451
|
var Ripple = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
4498
4452
|
var _React$useState = React.useState(false),
|
|
4499
|
-
_React$useState2 = _slicedToArray$
|
|
4453
|
+
_React$useState2 = _slicedToArray$f(_React$useState, 2),
|
|
4500
4454
|
isMounted = _React$useState2[0],
|
|
4501
4455
|
setMounted = _React$useState2[1];
|
|
4502
4456
|
var inkRef = React.useRef(null);
|
|
@@ -4605,11 +4559,11 @@ var Ripple = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inP
|
|
|
4605
4559
|
}));
|
|
4606
4560
|
Ripple.displayName = 'Ripple';
|
|
4607
4561
|
|
|
4608
|
-
function _arrayWithHoles$
|
|
4562
|
+
function _arrayWithHoles$e(r) {
|
|
4609
4563
|
if (Array.isArray(r)) return r;
|
|
4610
4564
|
}
|
|
4611
4565
|
|
|
4612
|
-
function _iterableToArrayLimit$
|
|
4566
|
+
function _iterableToArrayLimit$e(r, l) {
|
|
4613
4567
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
4614
4568
|
if (null != t) {
|
|
4615
4569
|
var e,
|
|
@@ -4634,26 +4588,26 @@ function _iterableToArrayLimit$d(r, l) {
|
|
|
4634
4588
|
}
|
|
4635
4589
|
}
|
|
4636
4590
|
|
|
4637
|
-
function _arrayLikeToArray$
|
|
4591
|
+
function _arrayLikeToArray$f(r, a) {
|
|
4638
4592
|
(null == a || a > r.length) && (a = r.length);
|
|
4639
4593
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4640
4594
|
return n;
|
|
4641
4595
|
}
|
|
4642
4596
|
|
|
4643
|
-
function _unsupportedIterableToArray$
|
|
4597
|
+
function _unsupportedIterableToArray$f(r, a) {
|
|
4644
4598
|
if (r) {
|
|
4645
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
4599
|
+
if ("string" == typeof r) return _arrayLikeToArray$f(r, a);
|
|
4646
4600
|
var t = {}.toString.call(r).slice(8, -1);
|
|
4647
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
4601
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0;
|
|
4648
4602
|
}
|
|
4649
4603
|
}
|
|
4650
4604
|
|
|
4651
|
-
function _nonIterableRest$
|
|
4605
|
+
function _nonIterableRest$e() {
|
|
4652
4606
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4653
4607
|
}
|
|
4654
4608
|
|
|
4655
|
-
function _slicedToArray$
|
|
4656
|
-
return _arrayWithHoles$
|
|
4609
|
+
function _slicedToArray$e(r, e) {
|
|
4610
|
+
return _arrayWithHoles$e(r) || _iterableToArrayLimit$e(r, e) || _unsupportedIterableToArray$f(r, e) || _nonIterableRest$e();
|
|
4657
4611
|
}
|
|
4658
4612
|
|
|
4659
4613
|
var PortalBase = {
|
|
@@ -4678,7 +4632,7 @@ var Portal = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
4678
4632
|
var props = PortalBase.getProps(inProps);
|
|
4679
4633
|
var context = React.useContext(PrimeReactContext);
|
|
4680
4634
|
var _React$useState = React.useState(props.visible && DomHandler.isClient()),
|
|
4681
|
-
_React$useState2 = _slicedToArray$
|
|
4635
|
+
_React$useState2 = _slicedToArray$e(_React$useState, 2),
|
|
4682
4636
|
mountedState = _React$useState2[0],
|
|
4683
4637
|
setMountedState = _React$useState2[1];
|
|
4684
4638
|
useMountEffect(function () {
|
|
@@ -4753,25 +4707,25 @@ function _defineProperty$e(e, r, t) {
|
|
|
4753
4707
|
}) : e[r] = t, e;
|
|
4754
4708
|
}
|
|
4755
4709
|
|
|
4756
|
-
function _arrayLikeToArray$
|
|
4710
|
+
function _arrayLikeToArray$e(r, a) {
|
|
4757
4711
|
(null == a || a > r.length) && (a = r.length);
|
|
4758
4712
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4759
4713
|
return n;
|
|
4760
4714
|
}
|
|
4761
4715
|
|
|
4762
4716
|
function _arrayWithoutHoles$7(r) {
|
|
4763
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
4717
|
+
if (Array.isArray(r)) return _arrayLikeToArray$e(r);
|
|
4764
4718
|
}
|
|
4765
4719
|
|
|
4766
4720
|
function _iterableToArray$7(r) {
|
|
4767
4721
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4768
4722
|
}
|
|
4769
4723
|
|
|
4770
|
-
function _unsupportedIterableToArray$
|
|
4724
|
+
function _unsupportedIterableToArray$e(r, a) {
|
|
4771
4725
|
if (r) {
|
|
4772
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
4726
|
+
if ("string" == typeof r) return _arrayLikeToArray$e(r, a);
|
|
4773
4727
|
var t = {}.toString.call(r).slice(8, -1);
|
|
4774
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
4728
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0;
|
|
4775
4729
|
}
|
|
4776
4730
|
}
|
|
4777
4731
|
|
|
@@ -4780,14 +4734,14 @@ function _nonIterableSpread$7() {
|
|
|
4780
4734
|
}
|
|
4781
4735
|
|
|
4782
4736
|
function _toConsumableArray$7(r) {
|
|
4783
|
-
return _arrayWithoutHoles$7(r) || _iterableToArray$7(r) || _unsupportedIterableToArray$
|
|
4737
|
+
return _arrayWithoutHoles$7(r) || _iterableToArray$7(r) || _unsupportedIterableToArray$e(r) || _nonIterableSpread$7();
|
|
4784
4738
|
}
|
|
4785
4739
|
|
|
4786
|
-
function _arrayWithHoles$
|
|
4740
|
+
function _arrayWithHoles$d(r) {
|
|
4787
4741
|
if (Array.isArray(r)) return r;
|
|
4788
4742
|
}
|
|
4789
4743
|
|
|
4790
|
-
function _iterableToArrayLimit$
|
|
4744
|
+
function _iterableToArrayLimit$d(r, l) {
|
|
4791
4745
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
4792
4746
|
if (null != t) {
|
|
4793
4747
|
var e,
|
|
@@ -4812,12 +4766,12 @@ function _iterableToArrayLimit$c(r, l) {
|
|
|
4812
4766
|
}
|
|
4813
4767
|
}
|
|
4814
4768
|
|
|
4815
|
-
function _nonIterableRest$
|
|
4769
|
+
function _nonIterableRest$d() {
|
|
4816
4770
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4817
4771
|
}
|
|
4818
4772
|
|
|
4819
|
-
function _slicedToArray$
|
|
4820
|
-
return _arrayWithHoles$
|
|
4773
|
+
function _slicedToArray$d(r, e) {
|
|
4774
|
+
return _arrayWithHoles$d(r) || _iterableToArrayLimit$d(r, e) || _unsupportedIterableToArray$e(r, e) || _nonIterableRest$d();
|
|
4821
4775
|
}
|
|
4822
4776
|
|
|
4823
4777
|
var classes$f = {
|
|
@@ -4888,19 +4842,19 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
4888
4842
|
var context = React.useContext(PrimeReactContext);
|
|
4889
4843
|
var props = TooltipBase.getProps(inProps, context);
|
|
4890
4844
|
var _React$useState = React.useState(false),
|
|
4891
|
-
_React$useState2 = _slicedToArray$
|
|
4845
|
+
_React$useState2 = _slicedToArray$d(_React$useState, 2),
|
|
4892
4846
|
visibleState = _React$useState2[0],
|
|
4893
4847
|
setVisibleState = _React$useState2[1];
|
|
4894
4848
|
var _React$useState3 = React.useState(props.position || 'right'),
|
|
4895
|
-
_React$useState4 = _slicedToArray$
|
|
4849
|
+
_React$useState4 = _slicedToArray$d(_React$useState3, 2),
|
|
4896
4850
|
positionState = _React$useState4[0],
|
|
4897
4851
|
setPositionState = _React$useState4[1];
|
|
4898
4852
|
var _React$useState5 = React.useState(''),
|
|
4899
|
-
_React$useState6 = _slicedToArray$
|
|
4853
|
+
_React$useState6 = _slicedToArray$d(_React$useState5, 2),
|
|
4900
4854
|
classNameState = _React$useState6[0],
|
|
4901
4855
|
setClassNameState = _React$useState6[1];
|
|
4902
4856
|
var _React$useState7 = React.useState(false),
|
|
4903
|
-
_React$useState8 = _slicedToArray$
|
|
4857
|
+
_React$useState8 = _slicedToArray$d(_React$useState7, 2),
|
|
4904
4858
|
multipleFocusEvents = _React$useState8[0],
|
|
4905
4859
|
setMultipleFocusEvents = _React$useState8[1];
|
|
4906
4860
|
var isCloseOnEscape = visibleState && props.closeOnEscape;
|
|
@@ -4946,7 +4900,7 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
4946
4900
|
!DomHandler.isTouchDevice() && hide(event);
|
|
4947
4901
|
}
|
|
4948
4902
|
}),
|
|
4949
|
-
_useResizeListener2 = _slicedToArray$
|
|
4903
|
+
_useResizeListener2 = _slicedToArray$d(_useResizeListener, 2),
|
|
4950
4904
|
bindWindowResizeListener = _useResizeListener2[0],
|
|
4951
4905
|
unbindWindowResizeListener = _useResizeListener2[1];
|
|
4952
4906
|
var _useOverlayScrollList = useOverlayScrollListener({
|
|
@@ -4956,7 +4910,7 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
4956
4910
|
},
|
|
4957
4911
|
when: visibleState
|
|
4958
4912
|
}),
|
|
4959
|
-
_useOverlayScrollList2 = _slicedToArray$
|
|
4913
|
+
_useOverlayScrollList2 = _slicedToArray$d(_useOverlayScrollList, 2),
|
|
4960
4914
|
bindOverlayScrollListener = _useOverlayScrollList2[0],
|
|
4961
4915
|
unbindOverlayScrollListener = _useOverlayScrollList2[1];
|
|
4962
4916
|
var isTargetContentEmpty = function isTargetContentEmpty(target) {
|
|
@@ -5815,25 +5769,25 @@ var ChevronUpIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
5815
5769
|
}));
|
|
5816
5770
|
ChevronUpIcon.displayName = 'ChevronUpIcon';
|
|
5817
5771
|
|
|
5818
|
-
function _arrayLikeToArray$
|
|
5772
|
+
function _arrayLikeToArray$d(r, a) {
|
|
5819
5773
|
(null == a || a > r.length) && (a = r.length);
|
|
5820
5774
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
5821
5775
|
return n;
|
|
5822
5776
|
}
|
|
5823
5777
|
|
|
5824
5778
|
function _arrayWithoutHoles$6(r) {
|
|
5825
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
5779
|
+
if (Array.isArray(r)) return _arrayLikeToArray$d(r);
|
|
5826
5780
|
}
|
|
5827
5781
|
|
|
5828
5782
|
function _iterableToArray$6(r) {
|
|
5829
5783
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
5830
5784
|
}
|
|
5831
5785
|
|
|
5832
|
-
function _unsupportedIterableToArray$
|
|
5786
|
+
function _unsupportedIterableToArray$d(r, a) {
|
|
5833
5787
|
if (r) {
|
|
5834
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
5788
|
+
if ("string" == typeof r) return _arrayLikeToArray$d(r, a);
|
|
5835
5789
|
var t = {}.toString.call(r).slice(8, -1);
|
|
5836
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
5790
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0;
|
|
5837
5791
|
}
|
|
5838
5792
|
}
|
|
5839
5793
|
|
|
@@ -5842,7 +5796,7 @@ function _nonIterableSpread$6() {
|
|
|
5842
5796
|
}
|
|
5843
5797
|
|
|
5844
5798
|
function _toConsumableArray$6(r) {
|
|
5845
|
-
return _arrayWithoutHoles$6(r) || _iterableToArray$6(r) || _unsupportedIterableToArray$
|
|
5799
|
+
return _arrayWithoutHoles$6(r) || _iterableToArray$6(r) || _unsupportedIterableToArray$d(r) || _nonIterableSpread$6();
|
|
5846
5800
|
}
|
|
5847
5801
|
|
|
5848
5802
|
var KeyFilter = {
|
|
@@ -8592,11 +8546,11 @@ function _toConsumableArray$5(r) {
|
|
|
8592
8546
|
return _arrayWithoutHoles$5(r) || _iterableToArray$5(r) || _unsupportedIterableToArray$1$3(r) || _nonIterableSpread$5();
|
|
8593
8547
|
}
|
|
8594
8548
|
|
|
8595
|
-
function _arrayWithHoles$
|
|
8549
|
+
function _arrayWithHoles$c(r) {
|
|
8596
8550
|
if (Array.isArray(r)) return r;
|
|
8597
8551
|
}
|
|
8598
8552
|
|
|
8599
|
-
function _iterableToArrayLimit$
|
|
8553
|
+
function _iterableToArrayLimit$c(r, l) {
|
|
8600
8554
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8601
8555
|
if (null != t) {
|
|
8602
8556
|
var e,
|
|
@@ -8621,12 +8575,12 @@ function _iterableToArrayLimit$b(r, l) {
|
|
|
8621
8575
|
}
|
|
8622
8576
|
}
|
|
8623
8577
|
|
|
8624
|
-
function _nonIterableRest$
|
|
8578
|
+
function _nonIterableRest$c() {
|
|
8625
8579
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8626
8580
|
}
|
|
8627
8581
|
|
|
8628
|
-
function _slicedToArray$
|
|
8629
|
-
return _arrayWithHoles$
|
|
8582
|
+
function _slicedToArray$c(r, e) {
|
|
8583
|
+
return _arrayWithHoles$c(r) || _iterableToArrayLimit$c(r, e) || _unsupportedIterableToArray$1$3(r, e) || _nonIterableRest$c();
|
|
8630
8584
|
}
|
|
8631
8585
|
|
|
8632
8586
|
var styles$b = "\n@layer primereact {\n .p-calendar {\n position: relative;\n display: inline-flex;\n max-width: 100%;\n }\n\n .p-calendar .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n }\n\n .p-calendar-w-btn-right .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .p-calendar-w-btn-right .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n .p-calendar-w-btn-left .p-inputtext {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n .p-calendar-w-btn-left .p-datepicker-trigger {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n /* Fluid */\n .p-fluid .p-calendar {\n display: flex;\n }\n\n .p-fluid .p-calendar .p-inputtext {\n width: 1%;\n }\n\n /* Datepicker */\n .p-calendar .p-datepicker {\n min-width: 100%;\n }\n\n .p-datepicker {\n width: auto;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n }\n\n /* Header */\n .p-datepicker-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n }\n\n .p-datepicker-prev,\n .p-datepicker-next {\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n\n /* Multiple Month DatePicker */\n .p-datepicker-multiple-month .p-datepicker-group-container {\n display: flex;\n }\n\n .p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n flex: 1 1 auto;\n }\n\n /* Multiple Month DatePicker */\n .p-datepicker-multiple-month .p-datepicker-group-container {\n display: flex;\n }\n\n /* DatePicker Table */\n .p-datepicker table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .p-datepicker td > span {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n }\n\n /* Month Picker */\n .p-monthpicker-month {\n width: 33.3%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n /* Button Bar */\n .p-datepicker-buttonbar {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n /* Time Picker */\n .p-timepicker {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .p-timepicker button {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-timepicker > div {\n display: flex;\n align-items: center;\n flex-direction: column;\n }\n\n /* Touch UI */\n .p-datepicker-touch-ui,\n .p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n transform: translate(-50%, -50%);\n }\n\n /* Year Picker */\n .p-yearpicker-year {\n width: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n}\n";
|
|
@@ -8874,27 +8828,27 @@ CalendarPanel.displayName = 'CalendarPanel';
|
|
|
8874
8828
|
|
|
8875
8829
|
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8876
8830
|
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), true).forEach(function (r) { _defineProperty$a(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8877
|
-
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$
|
|
8878
|
-
function _unsupportedIterableToArray$
|
|
8879
|
-
function _arrayLikeToArray$
|
|
8831
|
+
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8832
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
8833
|
+
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8880
8834
|
var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8881
8835
|
var mergeProps = useMergeProps();
|
|
8882
8836
|
var context = React.useContext(PrimeReactContext);
|
|
8883
8837
|
var props = CalendarBase.getProps(inProps, context);
|
|
8884
8838
|
var _React$useState = React.useState(false),
|
|
8885
|
-
_React$useState2 = _slicedToArray$
|
|
8839
|
+
_React$useState2 = _slicedToArray$c(_React$useState, 2),
|
|
8886
8840
|
focusedState = _React$useState2[0],
|
|
8887
8841
|
setFocusedState = _React$useState2[1];
|
|
8888
8842
|
var _React$useState3 = React.useState(false),
|
|
8889
|
-
_React$useState4 = _slicedToArray$
|
|
8843
|
+
_React$useState4 = _slicedToArray$c(_React$useState3, 2),
|
|
8890
8844
|
overlayVisibleState = _React$useState4[0],
|
|
8891
8845
|
setOverlayVisibleState = _React$useState4[1];
|
|
8892
8846
|
var _React$useState5 = React.useState(null),
|
|
8893
|
-
_React$useState6 = _slicedToArray$
|
|
8847
|
+
_React$useState6 = _slicedToArray$c(_React$useState5, 2),
|
|
8894
8848
|
viewDateState = _React$useState6[0],
|
|
8895
8849
|
setViewDateState = _React$useState6[1];
|
|
8896
8850
|
var _React$useState7 = React.useState(props.id),
|
|
8897
|
-
_React$useState8 = _slicedToArray$
|
|
8851
|
+
_React$useState8 = _slicedToArray$c(_React$useState7, 2),
|
|
8898
8852
|
idState = _React$useState8[0],
|
|
8899
8853
|
setIdState = _React$useState8[1];
|
|
8900
8854
|
var isCloseOnEscape = overlayVisibleState && props.closeOnEscape;
|
|
@@ -8938,19 +8892,19 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
8938
8892
|
var onChangeRef = React.useRef(null);
|
|
8939
8893
|
var isClearClicked = React.useRef(false);
|
|
8940
8894
|
var _React$useState9 = React.useState('date'),
|
|
8941
|
-
_React$useState10 = _slicedToArray$
|
|
8895
|
+
_React$useState10 = _slicedToArray$c(_React$useState9, 2),
|
|
8942
8896
|
currentView = _React$useState10[0],
|
|
8943
8897
|
setCurrentView = _React$useState10[1];
|
|
8944
8898
|
var _React$useState11 = React.useState(null),
|
|
8945
|
-
_React$useState12 = _slicedToArray$
|
|
8899
|
+
_React$useState12 = _slicedToArray$c(_React$useState11, 2),
|
|
8946
8900
|
currentMonth = _React$useState12[0],
|
|
8947
8901
|
setCurrentMonth = _React$useState12[1];
|
|
8948
8902
|
var _React$useState13 = React.useState(null),
|
|
8949
|
-
_React$useState14 = _slicedToArray$
|
|
8903
|
+
_React$useState14 = _slicedToArray$c(_React$useState13, 2),
|
|
8950
8904
|
currentYear = _React$useState14[0],
|
|
8951
8905
|
setCurrentYear = _React$useState14[1];
|
|
8952
8906
|
var _React$useState15 = React.useState([]),
|
|
8953
|
-
_React$useState16 = _slicedToArray$
|
|
8907
|
+
_React$useState16 = _slicedToArray$c(_React$useState15, 2),
|
|
8954
8908
|
yearOptions = _React$useState16[0],
|
|
8955
8909
|
setYearOptions = _React$useState16[1];
|
|
8956
8910
|
var previousValue = usePrevious(props.value);
|
|
@@ -8979,7 +8933,7 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
8979
8933
|
when: !(props.touchUI || props.inline) && visible,
|
|
8980
8934
|
type: 'mousedown'
|
|
8981
8935
|
}),
|
|
8982
|
-
_useOverlayListener2 = _slicedToArray$
|
|
8936
|
+
_useOverlayListener2 = _slicedToArray$c(_useOverlayListener, 2),
|
|
8983
8937
|
bindOverlayListener = _useOverlayListener2[0],
|
|
8984
8938
|
unbindOverlayListener = _useOverlayListener2[1];
|
|
8985
8939
|
var getDateFormat = function getDateFormat() {
|
|
@@ -9762,7 +9716,7 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
9762
9716
|
var _ref3 = props.yearRange ? props.yearRange.split(':').map(function (year) {
|
|
9763
9717
|
return parseInt(year, 10);
|
|
9764
9718
|
}) : [null, null],
|
|
9765
|
-
_ref4 = _slicedToArray$
|
|
9719
|
+
_ref4 = _slicedToArray$c(_ref3, 2),
|
|
9766
9720
|
minRangeYear = _ref4[0],
|
|
9767
9721
|
maxRangeYear = _ref4[1];
|
|
9768
9722
|
var viewYear = value.getFullYear();
|
|
@@ -10952,7 +10906,7 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
10952
10906
|
return v.getMonth() === month && v.getFullYear() === currentYear;
|
|
10953
10907
|
});
|
|
10954
10908
|
} else if (isRangeSelection()) {
|
|
10955
|
-
var _props$value = _slicedToArray$
|
|
10909
|
+
var _props$value = _slicedToArray$c(props.value, 2),
|
|
10956
10910
|
start = _props$value[0],
|
|
10957
10911
|
end = _props$value[1];
|
|
10958
10912
|
var startYear = start ? start.getFullYear() : null;
|
|
@@ -12623,8 +12577,10 @@ var LOCALES = {
|
|
|
12623
12577
|
}
|
|
12624
12578
|
};
|
|
12625
12579
|
|
|
12580
|
+
// src/components/DatePicker.jsx
|
|
12626
12581
|
var DatePicker = function DatePicker(_ref) {
|
|
12627
|
-
var
|
|
12582
|
+
var value = _ref.value,
|
|
12583
|
+
onChange = _ref.onChange,
|
|
12628
12584
|
placeholder = _ref.placeholder,
|
|
12629
12585
|
_ref$dateFormat = _ref.dateFormat,
|
|
12630
12586
|
dateFormat = _ref$dateFormat === void 0 ? "dd/mm/yy" : _ref$dateFormat,
|
|
@@ -12647,17 +12603,6 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12647
12603
|
_ref$iconBgButton = _ref.iconBgButton,
|
|
12648
12604
|
iconBgButton = _ref$iconBgButton === void 0 ? '#000000' : _ref$iconBgButton,
|
|
12649
12605
|
iconPos = _ref.iconPos;
|
|
12650
|
-
var _useState = useState(defaultValue ? new Date(defaultValue) : null),
|
|
12651
|
-
_useState2 = _slicedToArray$h(_useState, 2),
|
|
12652
|
-
value = _useState2[0],
|
|
12653
|
-
setValue = _useState2[1];
|
|
12654
|
-
useEffect(function () {
|
|
12655
|
-
// 🎯 Mise à jour du champ hidden Symfony
|
|
12656
|
-
var input = document.querySelector("[name=\"".concat(name, "\"]"));
|
|
12657
|
-
if (input && value) {
|
|
12658
|
-
input.value = value.toISOString().split('T')[0]; // format YYYY-MM-DD
|
|
12659
|
-
}
|
|
12660
|
-
}, [value, name]);
|
|
12661
12606
|
useEffect(function () {
|
|
12662
12607
|
var trigger = document.querySelector('.p-datepicker-trigger');
|
|
12663
12608
|
if (trigger) {
|
|
@@ -12675,9 +12620,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12675
12620
|
className: "flex flex-col gap-1"
|
|
12676
12621
|
}, /*#__PURE__*/React__default.createElement(Calendar, {
|
|
12677
12622
|
value: value,
|
|
12678
|
-
onChange:
|
|
12679
|
-
return setValue(e.value);
|
|
12680
|
-
},
|
|
12623
|
+
onChange: onChange,
|
|
12681
12624
|
dateFormat: dateFormat,
|
|
12682
12625
|
placeholder: placeholder,
|
|
12683
12626
|
inputStyle: style,
|
|
@@ -12691,6 +12634,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12691
12634
|
onClick: function onClick() {
|
|
12692
12635
|
return console.log("bonjour");
|
|
12693
12636
|
}
|
|
12637
|
+
// hourFormat="24"
|
|
12638
|
+
// showWeek
|
|
12694
12639
|
}), /*#__PURE__*/React__default.createElement("div", null, invalid && /*#__PURE__*/React__default.createElement("small", {
|
|
12695
12640
|
style: {
|
|
12696
12641
|
color: 'red',
|
|
@@ -12735,6 +12680,52 @@ var DatePickerPresets = {
|
|
|
12735
12680
|
}
|
|
12736
12681
|
};
|
|
12737
12682
|
|
|
12683
|
+
function _arrayLikeToArray$b(r, a) {
|
|
12684
|
+
(null == a || a > r.length) && (a = r.length);
|
|
12685
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12686
|
+
return n;
|
|
12687
|
+
}
|
|
12688
|
+
function _arrayWithHoles$b(r) {
|
|
12689
|
+
if (Array.isArray(r)) return r;
|
|
12690
|
+
}
|
|
12691
|
+
function _iterableToArrayLimit$b(r, l) {
|
|
12692
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12693
|
+
if (null != t) {
|
|
12694
|
+
var e,
|
|
12695
|
+
n,
|
|
12696
|
+
i,
|
|
12697
|
+
u,
|
|
12698
|
+
a = [],
|
|
12699
|
+
f = true,
|
|
12700
|
+
o = false;
|
|
12701
|
+
try {
|
|
12702
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
12703
|
+
} catch (r) {
|
|
12704
|
+
o = true, n = r;
|
|
12705
|
+
} finally {
|
|
12706
|
+
try {
|
|
12707
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
12708
|
+
} finally {
|
|
12709
|
+
if (o) throw n;
|
|
12710
|
+
}
|
|
12711
|
+
}
|
|
12712
|
+
return a;
|
|
12713
|
+
}
|
|
12714
|
+
}
|
|
12715
|
+
function _nonIterableRest$b() {
|
|
12716
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12717
|
+
}
|
|
12718
|
+
function _slicedToArray$b(r, e) {
|
|
12719
|
+
return _arrayWithHoles$b(r) || _iterableToArrayLimit$b(r, e) || _unsupportedIterableToArray$b(r, e) || _nonIterableRest$b();
|
|
12720
|
+
}
|
|
12721
|
+
function _unsupportedIterableToArray$b(r, a) {
|
|
12722
|
+
if (r) {
|
|
12723
|
+
if ("string" == typeof r) return _arrayLikeToArray$b(r, a);
|
|
12724
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
12725
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0;
|
|
12726
|
+
}
|
|
12727
|
+
}
|
|
12728
|
+
|
|
12738
12729
|
function _extends$y() {
|
|
12739
12730
|
return _extends$y = Object.assign ? Object.assign.bind() : function (n) {
|
|
12740
12731
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -13793,54 +13784,50 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
13793
13784
|
});
|
|
13794
13785
|
Dialog.displayName = 'Dialog';
|
|
13795
13786
|
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
},
|
|
13827
|
-
className: "pi pi-times"
|
|
13828
|
-
}))
|
|
13829
|
-
};
|
|
13830
|
-
};
|
|
13787
|
+
function styleInject(css, ref) {
|
|
13788
|
+
if ( ref === void 0 ) ref = {};
|
|
13789
|
+
var insertAt = ref.insertAt;
|
|
13790
|
+
|
|
13791
|
+
if (typeof document === 'undefined') { return; }
|
|
13792
|
+
|
|
13793
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
13794
|
+
var style = document.createElement('style');
|
|
13795
|
+
style.type = 'text/css';
|
|
13796
|
+
|
|
13797
|
+
if (insertAt === 'top') {
|
|
13798
|
+
if (head.firstChild) {
|
|
13799
|
+
head.insertBefore(style, head.firstChild);
|
|
13800
|
+
} else {
|
|
13801
|
+
head.appendChild(style);
|
|
13802
|
+
}
|
|
13803
|
+
} else {
|
|
13804
|
+
head.appendChild(style);
|
|
13805
|
+
}
|
|
13806
|
+
|
|
13807
|
+
if (style.styleSheet) {
|
|
13808
|
+
style.styleSheet.cssText = css;
|
|
13809
|
+
} else {
|
|
13810
|
+
style.appendChild(document.createTextNode(css));
|
|
13811
|
+
}
|
|
13812
|
+
}
|
|
13813
|
+
|
|
13814
|
+
var css_248z = "\n/* Supprime les bordures autour du dialog */\n.arengimode.p-dialog {\n box-shadow: none !important;\n border: none !important;\n}\n\n.arengimode .p-dialog-header .p-dialog-header-icons .p-dialog-header-close {\n width: auto !important;\n height: auto !important;\n border-radius: 0 !important;\n padding: 0 !important;\n display: inline !important;\n line-height: normal;\n margin-bottom: -45px;\n margin-right: -25px;\n}\n\n.arengimode .p-dialog-title {\n margin-left: -25px;\n font-weight: 0;\n}\n\n.arengimode .p-dialog-footer {\n background-color: rgba(188, 91, 91, 0.72);\n border-radius: 0 !important;\n padding:5px;\n}\n\n.p-dialog-mask:has(.arengimode) {\n background-color: rgba(0, 0, 0, 0.6) !important; /* fond plus sombre et transparent */\n backdrop-filter: blur(6px); /* effet de flou */\n -webkit-backdrop-filter: blur(6px); /* support Safari */\n}\n";
|
|
13815
|
+
styleInject(css_248z);
|
|
13816
|
+
|
|
13831
13817
|
var Popup = function Popup(_ref) {
|
|
13832
13818
|
var _ref$arengimode = _ref.arengimode,
|
|
13833
13819
|
arengimode = _ref$arengimode === void 0 ? false : _ref$arengimode,
|
|
13834
13820
|
_ref$footer = _ref.footer,
|
|
13835
|
-
footer = _ref$footer === void 0 ?
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13821
|
+
footer = _ref$footer === void 0 ? /*#__PURE__*/React__default.createElement(Button$1, {
|
|
13822
|
+
label: "Valider",
|
|
13823
|
+
size: "small",
|
|
13824
|
+
icon: "pi pi-check",
|
|
13825
|
+
iconPos: "left",
|
|
13826
|
+
severity: "success",
|
|
13827
|
+
raised: true
|
|
13828
|
+
}) : _ref$footer,
|
|
13829
|
+
visible = _ref.visible,
|
|
13830
|
+
onHide = _ref.onHide,
|
|
13844
13831
|
children = _ref.children,
|
|
13845
13832
|
_ref$dismissableMask = _ref.dismissableMask,
|
|
13846
13833
|
dismissableMask = _ref$dismissableMask === void 0 ? true : _ref$dismissableMask,
|
|
@@ -13865,41 +13852,22 @@ var Popup = function Popup(_ref) {
|
|
|
13865
13852
|
_ref$headerColor = _ref.headerColor,
|
|
13866
13853
|
headerColor = _ref$headerColor === void 0 ? null : _ref$headerColor,
|
|
13867
13854
|
_ref$header = _ref.header,
|
|
13868
|
-
header = _ref$header === void 0 ? 'Titre de la popup' : _ref$header
|
|
13869
|
-
_ref$closeButtonItem = _ref.closeButtonItem,
|
|
13870
|
-
closeButtonItem = _ref$closeButtonItem === void 0 ? 'Fermer' : _ref$closeButtonItem;
|
|
13855
|
+
header = _ref$header === void 0 ? 'Titre de la popup' : _ref$header;
|
|
13871
13856
|
var _useState = useState(initialStyle),
|
|
13872
|
-
_useState2 = _slicedToArray$
|
|
13857
|
+
_useState2 = _slicedToArray$b(_useState, 2),
|
|
13873
13858
|
dialogStyle = _useState2[0],
|
|
13874
13859
|
setDialogStyle = _useState2[1];
|
|
13875
13860
|
var _useState3 = useState({
|
|
13876
13861
|
width: 0,
|
|
13877
13862
|
height: 0
|
|
13878
13863
|
}),
|
|
13879
|
-
_useState4 = _slicedToArray$
|
|
13864
|
+
_useState4 = _slicedToArray$b(_useState3, 2),
|
|
13880
13865
|
dimensions = _useState4[0],
|
|
13881
13866
|
setDimensions = _useState4[1];
|
|
13882
13867
|
var dialogRef = useRef(null);
|
|
13883
|
-
var
|
|
13884
|
-
_useState6 = _slicedToArray$h(_useState5, 2),
|
|
13885
|
-
visible = _useState6[0],
|
|
13886
|
-
setVisible = _useState6[1];
|
|
13887
|
-
var isArengi = arengimode;
|
|
13888
|
-
var arengiProps = isArengi ? ArengiModeTemplate({
|
|
13889
|
-
header: header,
|
|
13890
|
-
closeButtonItem: closeButtonItem
|
|
13891
|
-
}) : {};
|
|
13892
|
-
var headStyle = headerStyle || (headerColor ? {
|
|
13868
|
+
var headStyle = headerStyle ? headerStyle : {
|
|
13893
13869
|
backgroundColor: headerColor
|
|
13894
|
-
} : {});
|
|
13895
|
-
var customPopupCSS = "\n .arengimode.p-dialog {\n box-shadow: none !important;\n border: none !important;\n }\n .arengimode .p-dialog-header .p-dialog-header-icons .p-dialog-header-close {\n width: auto !important;\n height: auto !important;\n border-radius: 0 !important;\n padding: 0 !important;\n display: inline !important;\n line-height: normal;\n margin-bottom: -45px;\n margin-right: -25px;\n }\n .arengimode .p-dialog-title {\n margin-left: -25px;\n font-weight: 0;\n }\n .arengimode .p-dialog-footer {\n background-color: rgba(188, 91, 91, 0.72);\n border-radius: 0 !important;\n padding: 5px;\n }\n .p-dialog-mask:has(.arengimode) {\n background-color: rgba(0, 0, 0, 0.6) !important;\n backdrop-filter: blur(6px);\n -webkit-backdrop-filter: blur(6px);\n }\n";
|
|
13896
|
-
var finalHeader = function finalHeader() {
|
|
13897
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
13898
|
-
className: "flex flex-col gap-2"
|
|
13899
|
-
}, isArengi ? arengiProps.header : header);
|
|
13900
13870
|
};
|
|
13901
|
-
var finalHeaderStyle = isArengi ? arengiProps.headerStyle : headStyle;
|
|
13902
|
-
var finalCloseIcon = isArengi ? arengiProps.closeIcon : closeIcon;
|
|
13903
13871
|
var handleResize = function handleResize() {
|
|
13904
13872
|
var _dialogRef$current;
|
|
13905
13873
|
if ((_dialogRef$current = dialogRef.current) !== null && _dialogRef$current !== void 0 && _dialogRef$current.getElement()) {
|
|
@@ -13911,47 +13879,6 @@ var Popup = function Popup(_ref) {
|
|
|
13911
13879
|
});
|
|
13912
13880
|
}
|
|
13913
13881
|
};
|
|
13914
|
-
var footerPage = function footerPage(itemValide, itemClose) {
|
|
13915
|
-
if (footer) {
|
|
13916
|
-
if (footerValidate && footerCancel) {
|
|
13917
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
13918
|
-
label: itemClose,
|
|
13919
|
-
size: "small",
|
|
13920
|
-
icon: "pi pi-check",
|
|
13921
|
-
iconPos: "left",
|
|
13922
|
-
severity: "danger",
|
|
13923
|
-
raised: true
|
|
13924
|
-
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
13925
|
-
label: itemValide,
|
|
13926
|
-
size: "small",
|
|
13927
|
-
icon: "pi pi-check",
|
|
13928
|
-
iconPos: "left",
|
|
13929
|
-
severity: "success",
|
|
13930
|
-
raised: true
|
|
13931
|
-
}));
|
|
13932
|
-
} else if (footerValidate && !footerCancel) {
|
|
13933
|
-
return /*#__PURE__*/React__default.createElement(Button$1, {
|
|
13934
|
-
label: itemValide,
|
|
13935
|
-
size: "small",
|
|
13936
|
-
icon: "pi pi-check",
|
|
13937
|
-
iconPos: "left",
|
|
13938
|
-
severity: "success",
|
|
13939
|
-
raised: true
|
|
13940
|
-
});
|
|
13941
|
-
} else if (!footerValidate && footerCancel) {
|
|
13942
|
-
return /*#__PURE__*/React__default.createElement(Button$1, {
|
|
13943
|
-
label: itemClose,
|
|
13944
|
-
size: "small",
|
|
13945
|
-
icon: "pi pi-check",
|
|
13946
|
-
iconPos: "left",
|
|
13947
|
-
severity: "danger",
|
|
13948
|
-
raised: true
|
|
13949
|
-
});
|
|
13950
|
-
}
|
|
13951
|
-
} else {
|
|
13952
|
-
return null;
|
|
13953
|
-
}
|
|
13954
|
-
};
|
|
13955
13882
|
var handleResizeEnd = function handleResizeEnd() {
|
|
13956
13883
|
var _dialogRef$current2;
|
|
13957
13884
|
if ((_dialogRef$current2 = dialogRef.current) !== null && _dialogRef$current2 !== void 0 && _dialogRef$current2.getElement()) {
|
|
@@ -13978,37 +13905,25 @@ var Popup = function Popup(_ref) {
|
|
|
13978
13905
|
});
|
|
13979
13906
|
}
|
|
13980
13907
|
};
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
document.head.removeChild(styleTag);
|
|
13987
|
-
};
|
|
13988
|
-
}, []);
|
|
13908
|
+
var head = function head() {
|
|
13909
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13910
|
+
className: "flex flex-col gap-2"
|
|
13911
|
+
}, header);
|
|
13912
|
+
};
|
|
13989
13913
|
useEffect(function () {
|
|
13990
13914
|
if (visible) {
|
|
13991
13915
|
handleShow();
|
|
13992
13916
|
}
|
|
13993
13917
|
}, [visible]);
|
|
13994
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, {
|
|
14000
|
-
header: finalHeader,
|
|
14001
|
-
onHide: function onHide() {
|
|
14002
|
-
return setVisible(false);
|
|
14003
|
-
},
|
|
14004
|
-
footer: footerPage(validateButtonItem, cancelButtonItem),
|
|
14005
|
-
visible: visible
|
|
14006
|
-
// onHide={onHide}
|
|
14007
|
-
,
|
|
13918
|
+
return /*#__PURE__*/React__default.createElement(Dialog, {
|
|
13919
|
+
header: head,
|
|
13920
|
+
footer: footer,
|
|
13921
|
+
visible: visible,
|
|
13922
|
+
onHide: onHide,
|
|
14008
13923
|
closable: closable,
|
|
14009
13924
|
dismissableMask: dismissableMask,
|
|
14010
13925
|
modal: modal,
|
|
14011
|
-
closeIcon:
|
|
13926
|
+
closeIcon: closeIcon,
|
|
14012
13927
|
draggable: draggable,
|
|
14013
13928
|
resizable: resizable,
|
|
14014
13929
|
style: dialogStyle,
|
|
@@ -14016,7 +13931,7 @@ var Popup = function Popup(_ref) {
|
|
|
14016
13931
|
onResize: handleResize,
|
|
14017
13932
|
onResizeEnd: handleResizeEnd,
|
|
14018
13933
|
ref: dialogRef,
|
|
14019
|
-
headerStyle:
|
|
13934
|
+
headerStyle: headStyle,
|
|
14020
13935
|
className: arengimode ? 'arengimode' : null
|
|
14021
13936
|
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, dimensions.width && dimensions.height ? /*#__PURE__*/React__default.createElement("small", {
|
|
14022
13937
|
style: {
|
|
@@ -14026,7 +13941,7 @@ var Popup = function Popup(_ref) {
|
|
|
14026
13941
|
fontSize: '0.8rem',
|
|
14027
13942
|
color: '#000000'
|
|
14028
13943
|
}
|
|
14029
|
-
}, "Dimensions actuelles : ", Math.round(dimensions.width), "px \xD7 ", Math.round(dimensions.height), "px") : '', children))
|
|
13944
|
+
}, "Dimensions actuelles : ", Math.round(dimensions.width), "px \xD7 ", Math.round(dimensions.height), "px") : '', children));
|
|
14030
13945
|
};
|
|
14031
13946
|
|
|
14032
13947
|
//PropTypes.bool,PropTypes.string,PropTypes.oneOf([]),PropTypes.isRequired,PropTypes.func,PropTypes.number,
|
|
@@ -14035,12 +13950,50 @@ Popup.propTypes = {
|
|
|
14035
13950
|
arengimode: PropTypes.bool
|
|
14036
13951
|
};
|
|
14037
13952
|
|
|
13953
|
+
var ArengiModeTemplate = function ArengiModeTemplate(prevArgs) {
|
|
13954
|
+
return {
|
|
13955
|
+
header: /*#__PURE__*/React__default.createElement("span", {
|
|
13956
|
+
style: {
|
|
13957
|
+
color: '#FFFFFF',
|
|
13958
|
+
fontSize: '25px',
|
|
13959
|
+
fontWeight: "initial"
|
|
13960
|
+
}
|
|
13961
|
+
}, /*#__PURE__*/React__default.createElement("i", {
|
|
13962
|
+
style: {
|
|
13963
|
+
color: 'red',
|
|
13964
|
+
fontSize: '20px'
|
|
13965
|
+
},
|
|
13966
|
+
className: "pi pi-plus"
|
|
13967
|
+
}), " ", prevArgs.header, " "),
|
|
13968
|
+
headerStyle: {
|
|
13969
|
+
backgroundColor: 'transparent',
|
|
13970
|
+
marginBottom: '-10px',
|
|
13971
|
+
color: '#000000'
|
|
13972
|
+
},
|
|
13973
|
+
closeIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
13974
|
+
className: "close-text",
|
|
13975
|
+
style: {
|
|
13976
|
+
color: '#FFFFFF',
|
|
13977
|
+
fontSize: '18px'
|
|
13978
|
+
}
|
|
13979
|
+
}, "Fermer ", /*#__PURE__*/React__default.createElement("i", {
|
|
13980
|
+
style: {
|
|
13981
|
+
color: 'red',
|
|
13982
|
+
fontWeight: 'bold'
|
|
13983
|
+
},
|
|
13984
|
+
className: "pi pi-times"
|
|
13985
|
+
}))
|
|
13986
|
+
};
|
|
13987
|
+
};
|
|
14038
13988
|
var PopupPresets = {
|
|
14039
13989
|
Default: {
|
|
14040
13990
|
header: 'Titre de la popup'
|
|
14041
13991
|
},
|
|
14042
13992
|
PopupArengi: {
|
|
14043
|
-
arengimode: true
|
|
13993
|
+
arengimode: true,
|
|
13994
|
+
header: ArengiModeTemplate.header,
|
|
13995
|
+
headerStyle: ArengiModeTemplate.headerStyle,
|
|
13996
|
+
closeIcon: ArengiModeTemplate.closeIcon
|
|
14044
13997
|
},
|
|
14045
13998
|
WithFooter: {
|
|
14046
13999
|
header: 'Popup avec pied de page',
|
|
@@ -28075,15 +28028,15 @@ var Table$1 = function Table() {
|
|
|
28075
28028
|
};
|
|
28076
28029
|
var Formulaire = function Formulaire() {
|
|
28077
28030
|
var _useState = useState(20),
|
|
28078
|
-
_useState2 = _slicedToArray$
|
|
28031
|
+
_useState2 = _slicedToArray$b(_useState, 2),
|
|
28079
28032
|
value1 = _useState2[0],
|
|
28080
28033
|
setValue1 = _useState2[1];
|
|
28081
28034
|
var _useState3 = useState(10.50),
|
|
28082
|
-
_useState4 = _slicedToArray$
|
|
28035
|
+
_useState4 = _slicedToArray$b(_useState3, 2),
|
|
28083
28036
|
value2 = _useState4[0],
|
|
28084
28037
|
setValue2 = _useState4[1];
|
|
28085
28038
|
var _useState5 = useState(25),
|
|
28086
|
-
_useState6 = _slicedToArray$
|
|
28039
|
+
_useState6 = _slicedToArray$b(_useState5, 2),
|
|
28087
28040
|
value3 = _useState6[0],
|
|
28088
28041
|
setValue3 = _useState6[1];
|
|
28089
28042
|
var style = {
|
|
@@ -29359,77 +29312,72 @@ var Menu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
29359
29312
|
Menu.displayName = 'Menu';
|
|
29360
29313
|
|
|
29361
29314
|
var Panel = function Panel(_ref) {
|
|
29362
|
-
var _ref$
|
|
29363
|
-
classicContent = _ref$classicContent === void 0 ? true : _ref$classicContent,
|
|
29364
|
-
_ref$accordionContent = _ref.accordionContent,
|
|
29315
|
+
var _ref$accordionContent = _ref.accordionContent,
|
|
29365
29316
|
accordionContent = _ref$accordionContent === void 0 ? false : _ref$accordionContent,
|
|
29317
|
+
_ref$classicContent = _ref.classicContent,
|
|
29318
|
+
classicContent = _ref$classicContent === void 0 ? true : _ref$classicContent,
|
|
29366
29319
|
_ref$withFooterTempla = _ref.withFooterTemplate,
|
|
29367
|
-
withFooterTemplate = _ref$withFooterTempla === void 0 ? false : _ref$withFooterTempla
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29320
|
+
withFooterTemplate = _ref$withFooterTempla === void 0 ? false : _ref$withFooterTempla;
|
|
29321
|
+
var configMenu = useRef(null);
|
|
29322
|
+
var items = [{
|
|
29323
|
+
label: 'Refresh',
|
|
29324
|
+
icon: 'pi pi-refresh'
|
|
29325
|
+
}, {
|
|
29326
|
+
label: 'Search',
|
|
29327
|
+
icon: 'pi pi-search'
|
|
29328
|
+
}, {
|
|
29329
|
+
separator: true
|
|
29330
|
+
}, {
|
|
29331
|
+
label: 'Delete',
|
|
29332
|
+
icon: 'pi pi-times'
|
|
29333
|
+
}];
|
|
29334
|
+
var tasks = function tasks(type) {
|
|
29335
|
+
var tache = [{
|
|
29336
|
+
id: '1',
|
|
29337
|
+
questions: 'Quels sont les principaux risques identifiés dans votre environnement de travail ?',
|
|
29338
|
+
completed: 'false',
|
|
29339
|
+
description: 'Cette question vise à recueillir une première perception des dangers présents sur le lieu de travail. Elle permet de cibler les domaines à analyser plus en détail lors de l’évaluation des risques.\n' + 'Attendu :\n' + 'Une réponse libre ou une sélection parmi les types de risques (chimiques, physiques, psychosociaux, etc.).'
|
|
29385
29340
|
}, {
|
|
29386
|
-
|
|
29341
|
+
id: '2',
|
|
29342
|
+
questions: 'Avez-vous mis en place des mesures de prévention pour ces risques ?',
|
|
29343
|
+
completed: 'false',
|
|
29344
|
+
description: 'Cette question permet de savoir si des actions correctives ou préventives sont déjà engagées (signalisation, équipements de protection, formations, etc.). Elle aide à évaluer le niveau de maturité en matière de sécurité.\n' + 'Attendu :\n' + 'Oui / Non / Partiellement, avec précision des mesures existantes.'
|
|
29387
29345
|
}, {
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
29393
|
-
_ref$accordionData = _ref.accordionData,
|
|
29394
|
-
accordionData = _ref$accordionData === void 0 ? [] : _ref$accordionData,
|
|
29395
|
-
_ref$footerButtons = _ref.footerButtons,
|
|
29396
|
-
footerButtons = _ref$footerButtons === void 0 ? [{
|
|
29397
|
-
icon: 'pi pi-user',
|
|
29398
|
-
severity: 'primary'
|
|
29346
|
+
id: '3',
|
|
29347
|
+
questions: 'Existe-t-il un document unique d’évaluation des risques (DUER) à jour ?',
|
|
29348
|
+
completed: 'false',
|
|
29349
|
+
description: 'Le DUER est une obligation légale en entreprise. Cette question vise à vérifier la conformité réglementaire et la mise à jour du plan de prévention.\n' + 'Attendu :\n' + 'Oui / Non / En cours de mise à jour.'
|
|
29399
29350
|
}, {
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29351
|
+
id: '4',
|
|
29352
|
+
questions: 'Des incidents ou accidents récents ont-ils été signalés ?',
|
|
29353
|
+
completed: 'false',
|
|
29354
|
+
description: 'Cette question permet de détecter les zones ou pratiques à risque ayant déjà conduit à des situations dangereuses. Elle contribue à l’analyse des causes et à l’amélioration des procédures.\n' + 'Attendu :\n' + 'Oui / Non, avec un bref résumé si applicable.'
|
|
29355
|
+
}];
|
|
29356
|
+
return tache;
|
|
29357
|
+
};
|
|
29406
29358
|
var headerTemplate = function headerTemplate(options) {
|
|
29359
|
+
var className = "".concat(options.className, " justify-content-space-between");
|
|
29407
29360
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29408
|
-
className:
|
|
29361
|
+
className: className
|
|
29409
29362
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29410
|
-
className: "flex align-items-center gap-2"
|
|
29363
|
+
className: "flex align-items-center gap-2 font-weight-bold mr-5"
|
|
29411
29364
|
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
29412
|
-
label:
|
|
29365
|
+
label: "1",
|
|
29413
29366
|
size: "large",
|
|
29414
|
-
shape: "circle"
|
|
29415
|
-
style: {
|
|
29416
|
-
marginRight: '10px'
|
|
29417
|
-
}
|
|
29367
|
+
shape: "circle"
|
|
29418
29368
|
}), /*#__PURE__*/React__default.createElement("span", {
|
|
29369
|
+
className: "font-weight-bold",
|
|
29419
29370
|
style: {
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
color: headerColor
|
|
29371
|
+
fontWeight: 'bold',
|
|
29372
|
+
fontSize: '20px'
|
|
29423
29373
|
}
|
|
29424
|
-
},
|
|
29425
|
-
|
|
29426
|
-
}, /*#__PURE__*/React__default.createElement(Menu, {
|
|
29427
|
-
model: menuItems,
|
|
29374
|
+
}, " EVALUATION PREVENTIVE DES RISQUES PROFESSIONNELS ")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Menu, {
|
|
29375
|
+
model: items,
|
|
29428
29376
|
popup: true,
|
|
29429
29377
|
ref: configMenu,
|
|
29430
29378
|
id: "config_menu"
|
|
29431
29379
|
}), /*#__PURE__*/React__default.createElement("button", {
|
|
29432
|
-
className: "p-panel-header-icon p-link",
|
|
29380
|
+
className: "p-panel-header-icon p-link mr-2",
|
|
29433
29381
|
onClick: function onClick(e) {
|
|
29434
29382
|
var _configMenu$current;
|
|
29435
29383
|
return configMenu === null || configMenu === void 0 || (_configMenu$current = configMenu.current) === null || _configMenu$current === void 0 ? void 0 : _configMenu$current.toggle(e);
|
|
@@ -29439,93 +29387,55 @@ var Panel = function Panel(_ref) {
|
|
|
29439
29387
|
})), options.togglerElement));
|
|
29440
29388
|
};
|
|
29441
29389
|
var footerTemplate = function footerTemplate(options) {
|
|
29390
|
+
var className = "".concat(options.className, " flex flex-wrap align-items-center justify-content-between gap-3");
|
|
29442
29391
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29443
|
-
className:
|
|
29392
|
+
className: className
|
|
29444
29393
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29445
29394
|
className: "flex align-items-center gap-2"
|
|
29446
|
-
},
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29395
|
+
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
29396
|
+
icon: "pi pi-user",
|
|
29397
|
+
rounded: true,
|
|
29398
|
+
text: true
|
|
29399
|
+
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
29400
|
+
icon: "pi pi-bookmark",
|
|
29401
|
+
severity: "secondary",
|
|
29402
|
+
rounded: true,
|
|
29403
|
+
text: true
|
|
29454
29404
|
})), /*#__PURE__*/React__default.createElement("span", {
|
|
29455
|
-
className: "
|
|
29456
|
-
},
|
|
29405
|
+
className: "p-text-secondary"
|
|
29406
|
+
}, "Updated 2 hours ago"));
|
|
29457
29407
|
};
|
|
29458
|
-
return /*#__PURE__*/React__default.createElement(Panel$1, {
|
|
29408
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Panel$1, {
|
|
29459
29409
|
headerTemplate: headerTemplate,
|
|
29460
29410
|
footerTemplate: withFooterTemplate ? footerTemplate : null,
|
|
29461
29411
|
toggleable: true
|
|
29462
|
-
}, accordionContent &&
|
|
29412
|
+
}, accordionContent && tasks().map(function (task) {
|
|
29463
29413
|
return /*#__PURE__*/React__default.createElement(Accordion, {
|
|
29464
|
-
key:
|
|
29414
|
+
key: task.id
|
|
29465
29415
|
}, /*#__PURE__*/React__default.createElement(AccordionTab, {
|
|
29466
|
-
header:
|
|
29416
|
+
header: task.questions
|
|
29467
29417
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
29468
29418
|
className: "m-0"
|
|
29469
|
-
},
|
|
29419
|
+
}, task.description)));
|
|
29470
29420
|
}), classicContent && /*#__PURE__*/React__default.createElement("p", {
|
|
29471
29421
|
className: "m-0"
|
|
29472
|
-
},
|
|
29422
|
+
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")));
|
|
29473
29423
|
};
|
|
29474
29424
|
|
|
29475
29425
|
var PanelPresets = {
|
|
29476
29426
|
Default: {
|
|
29477
29427
|
classicContent: true,
|
|
29478
29428
|
accordionContent: false,
|
|
29479
|
-
withFooterTemplate: false
|
|
29480
|
-
title: 'Panneau d’information',
|
|
29481
|
-
avatarLabel: '1',
|
|
29482
|
-
headerFontSize: '20px',
|
|
29483
|
-
headerFontWeight: 'bold',
|
|
29484
|
-
headerColor: '#000000',
|
|
29485
|
-
text: 'Ceci est un contenu modifiable du panneau.',
|
|
29486
|
-
menuItems: [{
|
|
29487
|
-
label: 'Rafraîchir',
|
|
29488
|
-
icon: 'pi pi-refresh'
|
|
29489
|
-
}, {
|
|
29490
|
-
label: 'Rechercher',
|
|
29491
|
-
icon: 'pi pi-search'
|
|
29492
|
-
}, {
|
|
29493
|
-
separator: true
|
|
29494
|
-
}, {
|
|
29495
|
-
label: 'Supprimer',
|
|
29496
|
-
icon: 'pi pi-times'
|
|
29497
|
-
}]
|
|
29429
|
+
withFooterTemplate: false
|
|
29498
29430
|
},
|
|
29499
|
-
|
|
29500
|
-
classicContent: false,
|
|
29431
|
+
withAccordion: {
|
|
29501
29432
|
accordionContent: true,
|
|
29502
|
-
|
|
29503
|
-
|
|
29504
|
-
avatarLabel: 'Q',
|
|
29505
|
-
headerColor: '#1e40af',
|
|
29506
|
-
accordionData: [{
|
|
29507
|
-
questions: 'Quels sont les risques identifiés ?',
|
|
29508
|
-
description: 'Listez les principaux risques dans votre environnement.'
|
|
29509
|
-
}, {
|
|
29510
|
-
questions: 'Des mesures de prévention ont-elles été mises en place ?',
|
|
29511
|
-
description: 'Exemples : équipements de sécurité, formation, procédures.'
|
|
29512
|
-
}]
|
|
29433
|
+
classicContent: false,
|
|
29434
|
+
withFooterTemplate: false
|
|
29513
29435
|
},
|
|
29514
|
-
|
|
29436
|
+
withFooterTemplate: {
|
|
29515
29437
|
classicContent: true,
|
|
29516
|
-
|
|
29517
|
-
withFooterTemplate: true,
|
|
29518
|
-
title: 'Panneau avec pied de page',
|
|
29519
|
-
avatarLabel: 'F',
|
|
29520
|
-
text: 'Le contenu est visible au-dessus du footer personnalisé.',
|
|
29521
|
-
footerButtons: [{
|
|
29522
|
-
icon: 'pi pi-user',
|
|
29523
|
-
severity: 'primary'
|
|
29524
|
-
}, {
|
|
29525
|
-
icon: 'pi pi-cog',
|
|
29526
|
-
severity: 'secondary'
|
|
29527
|
-
}],
|
|
29528
|
-
footerNote: 'Dernière mise à jour : il y a 5 minutes'
|
|
29438
|
+
withFooterTemplate: true
|
|
29529
29439
|
}
|
|
29530
29440
|
};
|
|
29531
29441
|
|
|
@@ -37958,11 +37868,11 @@ var Password = function Password(_ref) {
|
|
|
37958
37868
|
_ref$passwordWithTemp2 = _ref.passwordWithTemplateNative,
|
|
37959
37869
|
passwordWithTemplateNative = _ref$passwordWithTemp2 === void 0 ? false : _ref$passwordWithTemp2;
|
|
37960
37870
|
var _useState = useState(''),
|
|
37961
|
-
_useState2 = _slicedToArray$
|
|
37871
|
+
_useState2 = _slicedToArray$b(_useState, 2),
|
|
37962
37872
|
value = _useState2[0],
|
|
37963
37873
|
setValue = _useState2[1];
|
|
37964
37874
|
var _useState3 = useState(''),
|
|
37965
|
-
_useState4 = _slicedToArray$
|
|
37875
|
+
_useState4 = _slicedToArray$b(_useState3, 2),
|
|
37966
37876
|
strengthLabel = _useState4[0],
|
|
37967
37877
|
setStrengthLabel = _useState4[1];
|
|
37968
37878
|
var evaluateStrength = function evaluateStrength(password) {
|