plataforma-fundacao-componentes 2.26.5 → 2.26.7
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/assets/icons/Bell16Icon.d.ts +3 -0
- package/dist/assets/icons/BellIcon.d.ts +3 -0
- package/dist/assets/icons/PercentLoaderIcon.d.ts +5 -3
- package/dist/assets/icons/Settings16Icon.d.ts +3 -0
- package/dist/components/button/Button.d.ts +1 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -3
- package/dist/components/container/Container.d.ts +3 -6
- package/dist/components/dropdownMenu/DropdownMenu.d.ts +5 -10
- package/dist/components/floatingPanel/FloatingPanel.d.ts +18 -11
- package/dist/components/fullHeightContainer/FullHeightContainer.d.ts +2 -8
- package/dist/components/fullHeightContainer/FullHeightContainer.stories.d.ts +4 -4
- package/dist/components/header/Header.d.ts +2 -3
- package/dist/components/iconButton/IconButton.d.ts +2 -10
- package/dist/components/input/Input.d.ts +1 -14
- package/dist/components/itemDropdownDownload/ItemDropdownDownload.d.ts +4 -10
- package/dist/components/notification/Notification.d.ts +5 -12
- package/dist/components/notification/Notification.stories.d.ts +7 -8
- package/dist/components/notificationPanel/NotificationPanel.d.ts +21 -0
- package/dist/components/notificationPanel/NotificationPanel.stories.d.ts +6 -0
- package/dist/components/select/Select.d.ts +0 -1
- package/dist/components/select/Select.stories.d.ts +3 -1
- package/dist/components/videoModal/VideoModal.d.ts +4 -4
- package/dist/hooks/useEvent/useEvent.d.ts +6 -0
- package/dist/hooks/useFloatingPanel/useFloatingPanel.d.ts +21 -0
- package/dist/hooks/useFloatingPanel/useFloatingPanel.stories.d.ts +8 -0
- package/dist/hooks/useSystemInfo/useSystemInfo.d.ts +6 -0
- package/dist/hooks/useSystemInfo/useSystemInfo.stories.d.ts +6 -0
- package/dist/index.css +247 -206
- package/dist/index.d.ts +11 -3
- package/dist/index.js +821 -697
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +818 -699
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/Notification.d.ts +1 -0
- package/dist/libraries/System.d.ts +19 -0
- package/dist/utils/HTMLutils.d.ts +0 -1
- package/dist/utils/MaskUtils.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { useMemo, useState, useEffect, memo, isValidElement, useCallback, useRef, useLayoutEffect, createElement,
|
|
1
|
+
import React, { useMemo, useState, useEffect, memo, forwardRef, isValidElement, useCallback, useRef, useLayoutEffect, createElement, Fragment as Fragment$1, createRef, useImperativeHandle } from 'react';
|
|
2
2
|
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
3
3
|
import { Chart } from 'chart.js';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import DOMPurify from 'dompurify';
|
|
6
|
+
import { useFloating, autoUpdate, offset, flip, shift, size, useTransitionStyles, FloatingPortal, arrow, useHover, useFocus, useDismiss, useRole, useInteractions, FloatingArrow } from '@floating-ui/react';
|
|
6
7
|
import Sortable from 'sortablejs';
|
|
7
8
|
import QR from 'qrcode';
|
|
8
|
-
import { useFloating, autoUpdate, offset, flip, shift, arrow, useHover, useFocus, useDismiss, useRole, useInteractions, useTransitionStyles, FloatingPortal, FloatingArrow } from '@floating-ui/react';
|
|
9
9
|
import html2canvas from 'html2canvas';
|
|
10
10
|
import { jsPDF } from 'jspdf';
|
|
11
11
|
|
|
@@ -142,37 +142,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
142
142
|
}
|
|
143
143
|
return target;
|
|
144
144
|
}
|
|
145
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
146
|
-
if (!o) return;
|
|
147
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
148
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
149
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
150
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
151
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
152
|
-
}
|
|
153
|
-
function _arrayLikeToArray(arr, len) {
|
|
154
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
155
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
156
|
-
return arr2;
|
|
157
|
-
}
|
|
158
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
159
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
160
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
161
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
162
|
-
if (it) o = it;
|
|
163
|
-
var i = 0;
|
|
164
|
-
return function () {
|
|
165
|
-
if (i >= o.length) return {
|
|
166
|
-
done: true
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
done: false,
|
|
170
|
-
value: o[i++]
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
175
|
-
}
|
|
176
145
|
|
|
177
146
|
var getMergedClassNames = function getMergedClassNames(arr) {
|
|
178
147
|
return arr.filter(function (el) {
|
|
@@ -197,12 +166,6 @@ var isMobile = function isMobile() {
|
|
|
197
166
|
return navigator.userAgent.match(toMatchItem);
|
|
198
167
|
});
|
|
199
168
|
};
|
|
200
|
-
var isiPhone = function isiPhone() {
|
|
201
|
-
var toMatch = [/iPhone/i, /iPad/i, /iPod/i];
|
|
202
|
-
return toMatch.some(function (toMatchItem) {
|
|
203
|
-
return navigator.userAgent.match(toMatchItem);
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
169
|
var Interval = /*#__PURE__*/function () {
|
|
207
170
|
function Interval(callback, delay) {
|
|
208
171
|
var _this = this;
|
|
@@ -243,34 +206,33 @@ var Interval = /*#__PURE__*/function () {
|
|
|
243
206
|
};
|
|
244
207
|
return Interval;
|
|
245
208
|
}();
|
|
246
|
-
var getParents = function getParents(anchor) {
|
|
247
|
-
if (!anchor) return [];
|
|
248
|
-
if (anchor.id === 'root' || !(anchor !== null && anchor !== void 0 && anchor.parentElement)) {
|
|
249
|
-
return [anchor];
|
|
250
|
-
}
|
|
251
|
-
return [anchor].concat(getParents(anchor.parentElement));
|
|
252
|
-
};
|
|
253
209
|
|
|
210
|
+
var _excluded = ["value", "hideCheck", "indefinido", "className"];
|
|
254
211
|
var rootClassName$7 = 'percent-loader-icon';
|
|
255
|
-
var PercentLoaderIcon = function PercentLoaderIcon(
|
|
256
|
-
var
|
|
212
|
+
var PercentLoaderIcon = function PercentLoaderIcon(_ref) {
|
|
213
|
+
var value = _ref.value,
|
|
214
|
+
hideCheck = _ref.hideCheck,
|
|
215
|
+
indefinido = _ref.indefinido,
|
|
216
|
+
_ref$className = _ref.className,
|
|
217
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
257
219
|
var getStrokeDashOffset = function getStrokeDashOffset() {
|
|
258
|
-
var
|
|
259
|
-
var v = props.indefinido ? '25' : (_props$value = props.value) != null ? _props$value : '';
|
|
220
|
+
var v = indefinido ? '25' : value != null ? value : '';
|
|
260
221
|
return 264 - 264 * parseInt(String(v)) / 100;
|
|
261
222
|
};
|
|
262
|
-
var _useState = useState(
|
|
223
|
+
var _useState = useState(indefinido ? getStrokeDashOffset() : 264),
|
|
263
224
|
sdo = _useState[0],
|
|
264
225
|
setSdo = _useState[1];
|
|
265
226
|
useEffect(function () {
|
|
266
227
|
setSdo(getStrokeDashOffset());
|
|
267
|
-
}, [
|
|
268
|
-
|
|
269
|
-
|
|
228
|
+
}, [value, indefinido]);
|
|
229
|
+
var classNames = useMergedClassNames([rootClassName$7, indefinido ? 'indefinido' : '', className]);
|
|
230
|
+
return React.createElement("svg", Object.assign({
|
|
231
|
+
className: classNames,
|
|
270
232
|
viewBox: '0 0 100 100',
|
|
271
233
|
fill: 'currentColor',
|
|
272
234
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
273
|
-
}, React.createElement("circle", {
|
|
235
|
+
}, props), React.createElement("circle", {
|
|
274
236
|
cx: '50',
|
|
275
237
|
cy: '50',
|
|
276
238
|
r: '42'
|
|
@@ -280,12 +242,12 @@ var PercentLoaderIcon = function PercentLoaderIcon(props) {
|
|
|
280
242
|
r: '42',
|
|
281
243
|
strokeDashoffset: sdo,
|
|
282
244
|
stroke: 'currentColor'
|
|
283
|
-
}), !
|
|
245
|
+
}), !indefinido && !hideCheck ? React.createElement("path", {
|
|
284
246
|
d: 'M710.428,339.1l12.762,12.454,22.376-25.148',
|
|
285
247
|
fill: 'none',
|
|
286
248
|
strokeWidth: '5',
|
|
287
249
|
strokeDasharray: '52',
|
|
288
|
-
strokeDashoffset: parseInt(String(
|
|
250
|
+
strokeDashoffset: parseInt(String(value != null ? value : '')) === 100 ? 0 : 52,
|
|
289
251
|
stroke: 'currentColor'
|
|
290
252
|
}) : undefined);
|
|
291
253
|
};
|
|
@@ -867,12 +829,12 @@ var CreditIcon = function CreditIcon() {
|
|
|
867
829
|
}));
|
|
868
830
|
};
|
|
869
831
|
|
|
870
|
-
var _excluded = ["className"];
|
|
832
|
+
var _excluded$1 = ["className"];
|
|
871
833
|
var rootClassName$A = 'icon-component';
|
|
872
834
|
var InformationIcon = function InformationIcon(_ref) {
|
|
873
835
|
var _ref$className = _ref.className,
|
|
874
836
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
875
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
837
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
876
838
|
var classNames = useMergedClassNames([rootClassName$A, className]);
|
|
877
839
|
return React.createElement("svg", Object.assign({
|
|
878
840
|
viewBox: '0 0 24 24',
|
|
@@ -1222,13 +1184,13 @@ var LinkIcon = function LinkIcon() {
|
|
|
1222
1184
|
}));
|
|
1223
1185
|
};
|
|
1224
1186
|
|
|
1225
|
-
var _excluded$
|
|
1187
|
+
var _excluded$2 = ["theme", "size", "className"];
|
|
1226
1188
|
var rootClassName$L = 'loader-three-dots';
|
|
1227
1189
|
var ThreeDotsLoader = function ThreeDotsLoader(_ref) {
|
|
1228
1190
|
var theme = _ref.theme,
|
|
1229
1191
|
size = _ref.size,
|
|
1230
1192
|
className = _ref.className,
|
|
1231
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1193
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
1232
1194
|
return React.createElement("div", Object.assign({
|
|
1233
1195
|
className: useMergedClassNames([rootClassName$L, className != null ? className : '', rootClassName$L + "-" + (theme != null ? theme : 'primary'), rootClassName$L + "-size-" + (size != null ? size : 3)])
|
|
1234
1196
|
}, rest), React.createElement("div", null), React.createElement("div", null), React.createElement("div", null));
|
|
@@ -4630,14 +4592,14 @@ function Banner(props) {
|
|
|
4630
4592
|
})));
|
|
4631
4593
|
}
|
|
4632
4594
|
|
|
4633
|
-
var _excluded$
|
|
4595
|
+
var _excluded$3 = ["icon", "label", "subtitle", "className"];
|
|
4634
4596
|
var rootClassName$1D = 'component-big-block-button';
|
|
4635
4597
|
function BigBlockButton(_ref) {
|
|
4636
4598
|
var icon = _ref.icon,
|
|
4637
4599
|
label = _ref.label,
|
|
4638
4600
|
subtitle = _ref.subtitle,
|
|
4639
4601
|
className = _ref.className,
|
|
4640
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4602
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
4641
4603
|
return React.createElement("button", Object.assign({}, props, {
|
|
4642
4604
|
className: useMergedClassNames([rootClassName$1D, className])
|
|
4643
4605
|
}), React.createElement("div", {
|
|
@@ -4662,44 +4624,55 @@ var NotificationType;
|
|
|
4662
4624
|
NotificationType["PrimaryDark"] = "primary-dark";
|
|
4663
4625
|
NotificationType["PrimaryInvert"] = "primary-invert";
|
|
4664
4626
|
NotificationType["Error"] = "error";
|
|
4627
|
+
NotificationType["ErrorLight"] = "error-light";
|
|
4665
4628
|
NotificationType["Default"] = "default";
|
|
4666
4629
|
NotificationType["Disabled"] = "disabled";
|
|
4667
4630
|
})(NotificationType || (NotificationType = {}));
|
|
4668
4631
|
|
|
4632
|
+
var _excluded$4 = ["className", "bordered", "position", "type", "verticalOuter", "horizontalOuter"];
|
|
4669
4633
|
var rootClassName$1E = 'component-notification';
|
|
4670
|
-
function Notification(
|
|
4671
|
-
var
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4634
|
+
function Notification(_ref) {
|
|
4635
|
+
var _ref$className = _ref.className,
|
|
4636
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4637
|
+
_ref$bordered = _ref.bordered,
|
|
4638
|
+
bordered = _ref$bordered === void 0 ? false : _ref$bordered,
|
|
4639
|
+
_ref$position = _ref.position,
|
|
4640
|
+
position = _ref$position === void 0 ? NotificationPosition.TopRight : _ref$position,
|
|
4641
|
+
_ref$type = _ref.type,
|
|
4642
|
+
type = _ref$type === void 0 ? NotificationType.Error : _ref$type,
|
|
4643
|
+
_ref$verticalOuter = _ref.verticalOuter,
|
|
4644
|
+
verticalOuter = _ref$verticalOuter === void 0 ? 10 : _ref$verticalOuter,
|
|
4645
|
+
_ref$horizontalOuter = _ref.horizontalOuter,
|
|
4646
|
+
horizontalOuter = _ref$horizontalOuter === void 0 ? 10 : _ref$horizontalOuter,
|
|
4647
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
4648
|
+
var classNames = useMergedClassNames([rootClassName$1E + "-outer", className]);
|
|
4677
4649
|
var label = useMemo(function () {
|
|
4678
|
-
if (
|
|
4679
|
-
if (props.count
|
|
4650
|
+
if (props.count === true) return ' ';
|
|
4651
|
+
if (props.count === false) return '';
|
|
4652
|
+
if (typeof props.count === 'number') {
|
|
4653
|
+
if (!props.count || !String(props.count)) return 0;
|
|
4654
|
+
if (props.count < 0) return '!';
|
|
4655
|
+
}
|
|
4680
4656
|
return props.count;
|
|
4681
4657
|
}, [props.count]);
|
|
4682
|
-
return React.createElement("div",
|
|
4683
|
-
|
|
4658
|
+
return React.createElement("div", {
|
|
4659
|
+
className: classNames
|
|
4660
|
+
}, props.children, React.createElement(CSSTransition, {
|
|
4661
|
+
"in": Boolean(label),
|
|
4684
4662
|
classNames: rootClassName$1E,
|
|
4685
4663
|
timeout: 300,
|
|
4686
4664
|
unmountOnExit: true
|
|
4687
4665
|
}, React.createElement("div", {
|
|
4688
|
-
|
|
4666
|
+
"data-bordered": bordered,
|
|
4667
|
+
className: rootClassName$1E + " " + rootClassName$1E + "-" + position + " " + rootClassName$1E + "-" + type,
|
|
4689
4668
|
style: {
|
|
4690
|
-
top: String(
|
|
4691
|
-
right: String(
|
|
4692
|
-
left: String(
|
|
4693
|
-
bottom: String(
|
|
4669
|
+
top: String(position).match(/top/) ? 0 - (verticalOuter || 0) + "px" : 'unset',
|
|
4670
|
+
right: String(position).match(/right/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4671
|
+
left: String(position).match(/left/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4672
|
+
bottom: String(position).match(/bottom/) ? 0 - (verticalOuter || 0) + "px" : 'unset'
|
|
4694
4673
|
}
|
|
4695
4674
|
}, label)));
|
|
4696
4675
|
}
|
|
4697
|
-
Notification.defaultProps = {
|
|
4698
|
-
type: NotificationType.Error,
|
|
4699
|
-
position: NotificationPosition.TopRight,
|
|
4700
|
-
verticalOuter: 10,
|
|
4701
|
-
horizontalOuter: 10
|
|
4702
|
-
};
|
|
4703
4676
|
|
|
4704
4677
|
var rootClassName$1F = 'bottom-navigation';
|
|
4705
4678
|
function BottomNavigation(props) {
|
|
@@ -4774,9 +4747,9 @@ var ButtonThemes;
|
|
|
4774
4747
|
ButtonThemes["HeaderUserBold"] = "header-user-bold";
|
|
4775
4748
|
})(ButtonThemes || (ButtonThemes = {}));
|
|
4776
4749
|
|
|
4777
|
-
var _excluded$
|
|
4750
|
+
var _excluded$5 = ["className", "theme", "w100", "leftIcon", "rightIcon", "mobileBottomPage", "loader", "loading", "children"];
|
|
4778
4751
|
var rootClassName$1H = 'component-button';
|
|
4779
|
-
|
|
4752
|
+
var Button = forwardRef(function (_ref, ref) {
|
|
4780
4753
|
var className = _ref.className,
|
|
4781
4754
|
_ref$theme = _ref.theme,
|
|
4782
4755
|
theme = _ref$theme === void 0 ? ButtonThemes.Primary : _ref$theme,
|
|
@@ -4787,7 +4760,7 @@ function Button(_ref) {
|
|
|
4787
4760
|
loader = _ref.loader,
|
|
4788
4761
|
loading = _ref.loading,
|
|
4789
4762
|
children = _ref.children,
|
|
4790
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4763
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
4791
4764
|
var handleClick = function handleClick(evt) {
|
|
4792
4765
|
if (!props.disabled && !loading) {
|
|
4793
4766
|
var _props$onClick;
|
|
@@ -4802,7 +4775,9 @@ function Button(_ref) {
|
|
|
4802
4775
|
theme: theme === ButtonThemes.Primary && !props.disabled ? 'secondary' : 'primary'
|
|
4803
4776
|
}, loader != null ? loader : {})));
|
|
4804
4777
|
}, [loader, props.disabled, theme]);
|
|
4805
|
-
return React.createElement("button", Object.assign({
|
|
4778
|
+
return React.createElement("button", Object.assign({
|
|
4779
|
+
ref: ref
|
|
4780
|
+
}, props, {
|
|
4806
4781
|
className: useMergedClassNames(['nunito', rootClassName$1H, className, rootClassName$1H + "-" + theme, w100 ? rootClassName$1H + "-w100" : '', mobileBottomPage ? rootClassName$1H + "-bottom-mobile" : '']),
|
|
4807
4782
|
onClick: handleClick
|
|
4808
4783
|
}), leftIcon && React.createElement("div", {
|
|
@@ -4812,7 +4787,8 @@ function Button(_ref) {
|
|
|
4812
4787
|
}, children), rightIcon && React.createElement("div", {
|
|
4813
4788
|
className: getMergedClassNames([rootClassName$1H + "-icon", rootClassName$1H + "-right-icon", loading ? rootClassName$1H + "-hide" : ''])
|
|
4814
4789
|
}, rightIcon), loading ? loaderElement : undefined);
|
|
4815
|
-
}
|
|
4790
|
+
});
|
|
4791
|
+
Button.displayName = 'Button';
|
|
4816
4792
|
var Button$1 = memo(Button);
|
|
4817
4793
|
|
|
4818
4794
|
var FileTypes;
|
|
@@ -5266,32 +5242,31 @@ function useCarouselBehaviour(props) {
|
|
|
5266
5242
|
}))), handleChange];
|
|
5267
5243
|
}
|
|
5268
5244
|
|
|
5245
|
+
var _excluded$6 = ["theme", "disabled", "icon", "onClick"];
|
|
5269
5246
|
var rootClassName$1M = 'component-icon-button';
|
|
5270
|
-
|
|
5271
|
-
var
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5247
|
+
var IconButton = forwardRef(function (_ref, ref) {
|
|
5248
|
+
var _ref$theme = _ref.theme,
|
|
5249
|
+
theme = _ref$theme === void 0 ? 'primary' : _ref$theme,
|
|
5250
|
+
_ref$disabled = _ref.disabled,
|
|
5251
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
5252
|
+
_ref$icon = _ref.icon,
|
|
5253
|
+
icon = _ref$icon === void 0 ? '-' : _ref$icon,
|
|
5254
|
+
onClick = _ref.onClick,
|
|
5255
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
5256
|
+
var handleClick = useCallback(function (evt) {
|
|
5257
|
+
if (!disabled) {
|
|
5258
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(evt);
|
|
5275
5259
|
}
|
|
5276
|
-
};
|
|
5277
|
-
var
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
return p;
|
|
5287
|
-
};
|
|
5288
|
-
return React.createElement("button", Object.assign({}, getProps()), props.icon);
|
|
5289
|
-
}
|
|
5290
|
-
IconButton.defaultProps = {
|
|
5291
|
-
theme: 'primary',
|
|
5292
|
-
disabled: false,
|
|
5293
|
-
icon: '-'
|
|
5294
|
-
};
|
|
5260
|
+
}, [disabled, onClick]);
|
|
5261
|
+
var classNames = useMergedClassNames([rootClassName$1M, props.className, rootClassName$1M + "-" + theme]);
|
|
5262
|
+
return React.createElement("button", Object.assign({
|
|
5263
|
+
ref: ref,
|
|
5264
|
+
onClick: handleClick
|
|
5265
|
+
}, props, {
|
|
5266
|
+
className: classNames
|
|
5267
|
+
}), icon);
|
|
5268
|
+
});
|
|
5269
|
+
IconButton.displayName = 'IconButton';
|
|
5295
5270
|
var IconButton$1 = memo(IconButton);
|
|
5296
5271
|
|
|
5297
5272
|
var rootClassName$1N = 'element-paginator';
|
|
@@ -7023,7 +6998,7 @@ var CheckboxThemes;
|
|
|
7023
6998
|
CheckboxThemes["Blue"] = "blue";
|
|
7024
6999
|
})(CheckboxThemes || (CheckboxThemes = {}));
|
|
7025
7000
|
|
|
7026
|
-
var _excluded$
|
|
7001
|
+
var _excluded$7 = ["value", "tag", "onChange", "theme", "className", "error", "type"];
|
|
7027
7002
|
var rootClassName$1S = 'component-checkbox';
|
|
7028
7003
|
function Checkbox(_ref) {
|
|
7029
7004
|
var value = _ref.value,
|
|
@@ -7036,7 +7011,7 @@ function Checkbox(_ref) {
|
|
|
7036
7011
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
7037
7012
|
_ref$type = _ref.type,
|
|
7038
7013
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
7039
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7014
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
7040
7015
|
var handleClick = useCallback(function (evt) {
|
|
7041
7016
|
if (!props.disabled) {
|
|
7042
7017
|
onChange === null || onChange === void 0 ? void 0 : onChange(!value, evt);
|
|
@@ -7092,37 +7067,93 @@ Col.defaultProps = {
|
|
|
7092
7067
|
};
|
|
7093
7068
|
var Col$1 = memo(Col);
|
|
7094
7069
|
|
|
7095
|
-
var
|
|
7096
|
-
function
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7070
|
+
var OS;
|
|
7071
|
+
(function (OS) {
|
|
7072
|
+
OS["Windows"] = "Windows";
|
|
7073
|
+
OS["Linux"] = "Linux";
|
|
7074
|
+
OS["MacOS"] = "MacOS";
|
|
7075
|
+
OS["iOS"] = "iOS";
|
|
7076
|
+
OS["Android"] = "Android";
|
|
7077
|
+
OS["ChromeOS"] = "ChromeOS";
|
|
7078
|
+
OS["Other"] = "Other";
|
|
7079
|
+
})(OS || (OS = {}));
|
|
7080
|
+
var Browser;
|
|
7081
|
+
(function (Browser) {
|
|
7082
|
+
Browser["Brave"] = "Brave";
|
|
7083
|
+
Browser["Chrome"] = "Chrome";
|
|
7084
|
+
Browser["Firefox"] = "Firefox";
|
|
7085
|
+
Browser["Opera"] = "Opera";
|
|
7086
|
+
Browser["Safari"] = "Safari";
|
|
7087
|
+
Browser["Edge"] = "Edge";
|
|
7088
|
+
Browser["IE"] = "IE";
|
|
7089
|
+
Browser["Other"] = "Other";
|
|
7090
|
+
})(Browser || (Browser = {}));
|
|
7091
|
+
|
|
7092
|
+
function useSystemInfo() {
|
|
7093
|
+
var os = useMemo(function () {
|
|
7094
|
+
if (/Android/i.test(navigator.userAgent)) return OS.Android;
|
|
7095
|
+
if (/iPhone/i.test(navigator.userAgent)) return OS.iOS;
|
|
7096
|
+
if (/Windows/i.test(navigator.userAgent)) return OS.Windows;
|
|
7097
|
+
if (/Linux/i.test(navigator.userAgent)) return OS.Linux;
|
|
7098
|
+
if (/CrOS/i.test(navigator.userAgent)) return OS.ChromeOS;
|
|
7099
|
+
if (/Macintosh/i.test(navigator.userAgent)) return OS.MacOS;
|
|
7100
|
+
return OS.Other;
|
|
7101
|
+
}, []);
|
|
7102
|
+
var browser = useMemo(function () {
|
|
7103
|
+
if (/Edge/i.test(navigator.userAgent)) return Browser.Edge;
|
|
7104
|
+
if (/Brave/i.test(navigator.userAgent)) return Browser.Brave;
|
|
7105
|
+
if (/CriOS/i.test(navigator.userAgent)) return Browser.Chrome;
|
|
7106
|
+
if (/Chrome/i.test(navigator.userAgent)) return Browser.Chrome;
|
|
7107
|
+
if (/Firefox/i.test(navigator.userAgent)) return Browser.Firefox;
|
|
7108
|
+
if (/Opera/i.test(navigator.userAgent)) return Browser.Opera;
|
|
7109
|
+
if (/Safari/i.test(navigator.userAgent)) return Browser.Safari;
|
|
7110
|
+
if (/Trident/i.test(navigator.userAgent)) return Browser.IE;
|
|
7111
|
+
if (/MSIE/i.test(navigator.userAgent)) return Browser.IE;
|
|
7112
|
+
return Browser.Other;
|
|
7113
|
+
}, []);
|
|
7114
|
+
var isMobile = useMemo(function () {
|
|
7115
|
+
return /Mobile/.test(navigator.userAgent);
|
|
7116
|
+
}, []);
|
|
7117
|
+
return {
|
|
7118
|
+
os: os,
|
|
7119
|
+
browser: browser,
|
|
7120
|
+
isMobile: isMobile
|
|
7111
7121
|
};
|
|
7112
|
-
|
|
7122
|
+
}
|
|
7123
|
+
|
|
7124
|
+
var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "className", "style"];
|
|
7125
|
+
var rootClassName$1U = 'component-container';
|
|
7126
|
+
function Container(_ref) {
|
|
7127
|
+
var position = _ref.position,
|
|
7128
|
+
_ref$fluid = _ref.fluid,
|
|
7129
|
+
fluid = _ref$fluid === void 0 ? false : _ref$fluid,
|
|
7130
|
+
_ref$verticalPadding = _ref.verticalPadding,
|
|
7131
|
+
verticalPadding = _ref$verticalPadding === void 0 ? false : _ref$verticalPadding,
|
|
7132
|
+
_ref$hasMobileButton = _ref.hasMobileButton,
|
|
7133
|
+
hasMobileButton = _ref$hasMobileButton === void 0 ? false : _ref$hasMobileButton,
|
|
7134
|
+
_ref$hasHeader = _ref.hasHeader,
|
|
7135
|
+
hasHeader = _ref$hasHeader === void 0 ? false : _ref$hasHeader,
|
|
7136
|
+
_ref$hasAdvancedHeade = _ref.hasAdvancedHeader,
|
|
7137
|
+
hasAdvancedHeader = _ref$hasAdvancedHeade === void 0 ? false : _ref$hasAdvancedHeade,
|
|
7138
|
+
_ref$className = _ref.className,
|
|
7139
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7140
|
+
_ref$style = _ref.style,
|
|
7141
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7142
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7143
|
+
var mobile = useSystemInfo().isMobile;
|
|
7144
|
+
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7145
|
+
return React.createElement("div", Object.assign({}, props, {
|
|
7146
|
+
className: classNames,
|
|
7147
|
+
style: _extends({
|
|
7148
|
+
position: position
|
|
7149
|
+
}, style)
|
|
7150
|
+
}), React.createElement("div", {
|
|
7113
7151
|
className: rootClassName$1U + "-insider"
|
|
7114
7152
|
}, props.children));
|
|
7115
7153
|
}
|
|
7116
|
-
Container.defaultProps = {
|
|
7117
|
-
fluid: false,
|
|
7118
|
-
verticalPadding: false,
|
|
7119
|
-
hasMobileButton: false,
|
|
7120
|
-
hasAdvancedHeader: false,
|
|
7121
|
-
hasHeader: false
|
|
7122
|
-
};
|
|
7123
7154
|
var Container$1 = memo(Container);
|
|
7124
7155
|
|
|
7125
|
-
var _excluded$
|
|
7156
|
+
var _excluded$9 = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7126
7157
|
var rootClassName$1V = 'component-control-label';
|
|
7127
7158
|
function ControlLabel(_ref) {
|
|
7128
7159
|
var _control$props;
|
|
@@ -7131,7 +7162,7 @@ function ControlLabel(_ref) {
|
|
|
7131
7162
|
labelGap = _ref.labelGap,
|
|
7132
7163
|
label = _ref.label,
|
|
7133
7164
|
className = _ref.className,
|
|
7134
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7165
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7135
7166
|
var ref = useRef();
|
|
7136
7167
|
return React.createElement("label", Object.assign({}, props, {
|
|
7137
7168
|
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
@@ -7150,7 +7181,7 @@ var formatHexadecimalColor = function formatHexadecimalColor(input) {
|
|
|
7150
7181
|
return value;
|
|
7151
7182
|
};
|
|
7152
7183
|
var getStringWithoutSpecialChar = function getStringWithoutSpecialChar(input) {
|
|
7153
|
-
var value = String(input).
|
|
7184
|
+
var value = String(input).normalize('NFD').replace(/(?:[\^`\xA8\xAF\xB4\xB7\xB8\u02B0-\u034E\u0350-\u0357\u035D-\u0362\u0374\u0375\u037A\u0384\u0385\u0483-\u0487\u0559\u0591-\u05A1\u05A3-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0657\u0658\u06DF\u06E0\u06E5\u06E6\u06EA-\u06EC\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F5\u0818\u0819\u0898-\u089F\u08C9-\u08D2\u08E3-\u08FE\u093C\u094D\u0951-\u0954\u0971\u09BC\u09CD\u0A3C\u0A4D\u0ABC\u0ACD\u0AFD-\u0AFF\u0B3C\u0B4D\u0B55\u0BCD\u0C3C\u0C4D\u0CBC\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E47-\u0E4C\u0E4E\u0EBA\u0EC8-\u0ECC\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F82-\u0F84\u0F86\u0F87\u0FC6\u1037\u1039\u103A\u1063\u1064\u1069-\u106D\u1087-\u108D\u108F\u109A\u109B\u135D-\u135F\u1714\u1715\u17C9-\u17D3\u17DD\u1939-\u193B\u1A75-\u1A7C\u1A7F\u1AB0-\u1ABE\u1AC1-\u1ACB\u1B34\u1B44\u1B6B-\u1B73\u1BAA\u1BAB\u1C36\u1C37\u1C78-\u1C7D\u1CD0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1D2C-\u1D6A\u1DC4-\u1DCF\u1DF5-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2CEF-\u2CF1\u2E2F\u302A-\u302F\u3099-\u309C\u30FC\uA66F\uA67C\uA67D\uA67F\uA69C\uA69D\uA6F0\uA6F1\uA700-\uA721\uA788-\uA78A\uA7F8\uA7F9\uA8C4\uA8E0-\uA8F1\uA92B-\uA92E\uA953\uA9B3\uA9C0\uA9E5\uAA7B-\uAA7D\uAABF-\uAAC2\uAAF6\uAB5B-\uAB5F\uAB69-\uAB6B\uABEC\uABED\uFB1E\uFE20-\uFE2F\uFF3E\uFF40\uFF70\uFF9E\uFF9F\uFFE3]|\uD800\uDEE0|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDEE5\uDEE6]|\uD803[\uDD22-\uDD27\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC46\uDC70\uDCB9\uDCBA\uDD33\uDD34\uDD73\uDDC0\uDDCA-\uDDCC\uDE35\uDE36\uDEE9\uDEEA\uDF3C\uDF4D\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC42\uDC46\uDCC2\uDCC3\uDDBF\uDDC0\uDE3F\uDEB6\uDEB7\uDF2B]|\uD806[\uDC39\uDC3A\uDD3D\uDD3E\uDD43\uDDE0\uDE34\uDE47\uDE99]|\uD807[\uDC3F\uDD42\uDD44\uDD45\uDD97]|\uD80D[\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF8F-\uDF9F\uDFF0\uDFF1]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD67-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD]|\uD838[\uDC30-\uDC6D\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD46\uDD48-\uDD4A])/g, '');
|
|
7154
7185
|
return value;
|
|
7155
7186
|
};
|
|
7156
7187
|
|
|
@@ -7363,7 +7394,7 @@ function DatePickerCalendar(props) {
|
|
|
7363
7394
|
}
|
|
7364
7395
|
var DatePickerCalendar$1 = memo(DatePickerCalendar);
|
|
7365
7396
|
|
|
7366
|
-
var _excluded$
|
|
7397
|
+
var _excluded$a = ["language"];
|
|
7367
7398
|
var rootClassName$1X = 'component-date-picker';
|
|
7368
7399
|
function DatePicker(_ref) {
|
|
7369
7400
|
var _ref$language = _ref.language,
|
|
@@ -7373,7 +7404,7 @@ function DatePicker(_ref) {
|
|
|
7373
7404
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
7374
7405
|
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
7375
7406
|
} : _ref$language,
|
|
7376
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7407
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
7377
7408
|
var id = useMemo(function () {
|
|
7378
7409
|
return "picker_" + getUniqueKey();
|
|
7379
7410
|
}, []);
|
|
@@ -7511,11 +7542,11 @@ DatePicker.defaultProps = {
|
|
|
7511
7542
|
};
|
|
7512
7543
|
var DatePicker$1 = memo(DatePicker);
|
|
7513
7544
|
|
|
7514
|
-
var _excluded$
|
|
7545
|
+
var _excluded$b = ["showLabel"];
|
|
7515
7546
|
var rootClassName$1Y = 'component-doughnut';
|
|
7516
7547
|
function Doughnut(_ref) {
|
|
7517
7548
|
var showLabel = _ref.showLabel,
|
|
7518
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7549
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
7519
7550
|
var _useProgressiveCount = useProgressiveCount(),
|
|
7520
7551
|
val = _useProgressiveCount[0],
|
|
7521
7552
|
setVal = _useProgressiveCount[1];
|
|
@@ -7580,6 +7611,98 @@ function DropdownItem(props) {
|
|
|
7580
7611
|
}
|
|
7581
7612
|
var DropdownItem$1 = memo(DropdownItem);
|
|
7582
7613
|
|
|
7614
|
+
function useFloatingPanel(_ref) {
|
|
7615
|
+
var stateOpened = _ref.stateOpened,
|
|
7616
|
+
_ref$matchWidth = _ref.matchWidth,
|
|
7617
|
+
matchWidth = _ref$matchWidth === void 0 ? false : _ref$matchWidth,
|
|
7618
|
+
_ref$offset = _ref.offset,
|
|
7619
|
+
offset$1 = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7620
|
+
_ref$placement = _ref.placement,
|
|
7621
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7622
|
+
_ref$strategy = _ref.strategy,
|
|
7623
|
+
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
7624
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7625
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['top', 'bottom', 'right-start', 'right'] : _ref$fallbackPlacemen,
|
|
7626
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7627
|
+
elements = _ref.elements;
|
|
7628
|
+
var opened = stateOpened[0],
|
|
7629
|
+
setOpened = stateOpened[1];
|
|
7630
|
+
var _useState = useState(null),
|
|
7631
|
+
maxHeight = _useState[0],
|
|
7632
|
+
setMaxHeight = _useState[1];
|
|
7633
|
+
var _useFloating = useFloating({
|
|
7634
|
+
elements: elements,
|
|
7635
|
+
open: opened,
|
|
7636
|
+
onOpenChange: setOpened,
|
|
7637
|
+
whileElementsMounted: autoUpdate,
|
|
7638
|
+
transform: false,
|
|
7639
|
+
placement: placement,
|
|
7640
|
+
strategy: strategy,
|
|
7641
|
+
middleware: [offset(offset$1), flip({
|
|
7642
|
+
fallbackPlacements: fallbackPlacements
|
|
7643
|
+
}), shift(), size({
|
|
7644
|
+
apply: function apply(_ref2) {
|
|
7645
|
+
var rects = _ref2.rects,
|
|
7646
|
+
elements = _ref2.elements,
|
|
7647
|
+
availableHeight = _ref2.availableHeight;
|
|
7648
|
+
if (matchWidth) {
|
|
7649
|
+
Object.assign(elements.floating.style, {
|
|
7650
|
+
width: rects.reference.width + "px"
|
|
7651
|
+
});
|
|
7652
|
+
}
|
|
7653
|
+
setMaxHeight(availableHeight);
|
|
7654
|
+
heightAvaliableCallback === null || heightAvaliableCallback === void 0 ? void 0 : heightAvaliableCallback(availableHeight);
|
|
7655
|
+
}
|
|
7656
|
+
})]
|
|
7657
|
+
}),
|
|
7658
|
+
refs = _useFloating.refs,
|
|
7659
|
+
floatingStyles = _useFloating.floatingStyles,
|
|
7660
|
+
context = _useFloating.context;
|
|
7661
|
+
var _useTransitionStyles = useTransitionStyles(context, {
|
|
7662
|
+
duration: 250,
|
|
7663
|
+
initial: function initial(_ref3) {
|
|
7664
|
+
var side = _ref3.side;
|
|
7665
|
+
return {
|
|
7666
|
+
transform: ['top', 'bottom'].includes(side) ? 'translateY(10px)' : '',
|
|
7667
|
+
opacity: 0
|
|
7668
|
+
};
|
|
7669
|
+
},
|
|
7670
|
+
common: {
|
|
7671
|
+
transform: 'translateY(0px)',
|
|
7672
|
+
opacity: 1
|
|
7673
|
+
}
|
|
7674
|
+
}),
|
|
7675
|
+
isMounted = _useTransitionStyles.isMounted,
|
|
7676
|
+
styles = _useTransitionStyles.styles;
|
|
7677
|
+
return {
|
|
7678
|
+
panelRef: refs.setFloating,
|
|
7679
|
+
panelStyles: _extends({}, floatingStyles, {
|
|
7680
|
+
maxHeight: maxHeight
|
|
7681
|
+
}, styles),
|
|
7682
|
+
anchorRef: refs.setReference,
|
|
7683
|
+
isMounted: isMounted
|
|
7684
|
+
};
|
|
7685
|
+
}
|
|
7686
|
+
|
|
7687
|
+
function useEvent(events) {
|
|
7688
|
+
useLayoutEffect(function () {
|
|
7689
|
+
events.forEach(function (_ref) {
|
|
7690
|
+
var event = _ref.event,
|
|
7691
|
+
handler = _ref.handler,
|
|
7692
|
+
target = _ref.target;
|
|
7693
|
+
(target != null ? target : document.body).addEventListener(event, handler);
|
|
7694
|
+
});
|
|
7695
|
+
return function () {
|
|
7696
|
+
events.forEach(function (_ref2) {
|
|
7697
|
+
var event = _ref2.event,
|
|
7698
|
+
handler = _ref2.handler,
|
|
7699
|
+
target = _ref2.target;
|
|
7700
|
+
(target != null ? target : document.body).removeEventListener(event, handler);
|
|
7701
|
+
});
|
|
7702
|
+
};
|
|
7703
|
+
}, [events]);
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7583
7706
|
function useOutsideClick(refs, handler, options) {
|
|
7584
7707
|
var _options3;
|
|
7585
7708
|
if (options === void 0) {
|
|
@@ -7607,8 +7730,77 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7607
7730
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7608
7731
|
}
|
|
7609
7732
|
|
|
7610
|
-
var _excluded$
|
|
7611
|
-
var rootClassName$1_ = '
|
|
7733
|
+
var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
|
|
7734
|
+
var rootClassName$1_ = 'floating-panel';
|
|
7735
|
+
function FloatingPanel(_ref) {
|
|
7736
|
+
var opened = _ref.opened,
|
|
7737
|
+
setOpened = _ref.setOpened,
|
|
7738
|
+
_ref$className = _ref.className,
|
|
7739
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7740
|
+
statedAnchorRef = _ref.statedAnchorRef,
|
|
7741
|
+
matchWidth = _ref.matchWidth,
|
|
7742
|
+
_ref$placement = _ref.placement,
|
|
7743
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7744
|
+
_ref$closeOnEsc = _ref.closeOnEsc,
|
|
7745
|
+
closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
|
|
7746
|
+
_ref$closeOnOutClick = _ref.closeOnOutClick,
|
|
7747
|
+
closeOnOutClick = _ref$closeOnOutClick === void 0 ? true : _ref$closeOnOutClick,
|
|
7748
|
+
_ref$style = _ref.style,
|
|
7749
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7750
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7751
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['bottom', 'bottom-end', 'bottom-start', 'top', 'top-start', 'top-end', 'left', 'right'] : _ref$fallbackPlacemen,
|
|
7752
|
+
_ref$offset = _ref.offset,
|
|
7753
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7754
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7755
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7756
|
+
var _useState = useState(),
|
|
7757
|
+
panelRef = _useState[0],
|
|
7758
|
+
setPanelRef = _useState[1];
|
|
7759
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
7760
|
+
stateOpened: [opened, setOpened],
|
|
7761
|
+
strategy: 'fixed',
|
|
7762
|
+
placement: placement,
|
|
7763
|
+
fallbackPlacements: fallbackPlacements,
|
|
7764
|
+
matchWidth: matchWidth,
|
|
7765
|
+
elements: {
|
|
7766
|
+
floating: panelRef,
|
|
7767
|
+
reference: statedAnchorRef
|
|
7768
|
+
},
|
|
7769
|
+
heightAvaliableCallback: heightAvaliableCallback,
|
|
7770
|
+
offset: offset
|
|
7771
|
+
}),
|
|
7772
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
7773
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
7774
|
+
var classNames = useMergedClassNames([rootClassName$1_, className]);
|
|
7775
|
+
useEvent([{
|
|
7776
|
+
event: 'keydown',
|
|
7777
|
+
handler: function handler(e) {
|
|
7778
|
+
if (closeOnEsc && opened && 'key' in e && e.key === 'Escape') {
|
|
7779
|
+
setOpened(false);
|
|
7780
|
+
e.preventDefault();
|
|
7781
|
+
e.stopPropagation();
|
|
7782
|
+
}
|
|
7783
|
+
}
|
|
7784
|
+
}]);
|
|
7785
|
+
useOutsideClick([{
|
|
7786
|
+
current: panelRef != null ? panelRef : null
|
|
7787
|
+
}, {
|
|
7788
|
+
current: statedAnchorRef != null ? statedAnchorRef : null
|
|
7789
|
+
}], function (isInside) {
|
|
7790
|
+
if (closeOnOutClick && opened && !isInside) setOpened(false);
|
|
7791
|
+
});
|
|
7792
|
+
return React.createElement(FloatingPortal, null, isMounted && React.createElement("div", Object.assign({}, props, {
|
|
7793
|
+
className: classNames,
|
|
7794
|
+
ref: function ref(r) {
|
|
7795
|
+
return setPanelRef(r);
|
|
7796
|
+
},
|
|
7797
|
+
style: _extends({}, style, panelStyles)
|
|
7798
|
+
}), props.children));
|
|
7799
|
+
}
|
|
7800
|
+
var FloatingPanel$1 = memo(FloatingPanel);
|
|
7801
|
+
|
|
7802
|
+
var _excluded$d = ["opened", "setOpened", "content", "closeOnEsc", "closeOnOutClick", "children", "panelProps", "removePadding"];
|
|
7803
|
+
var rootClassName$1$ = 'component-dropdown-menu';
|
|
7612
7804
|
function DropdownMenu(_ref) {
|
|
7613
7805
|
var _panelProps$className;
|
|
7614
7806
|
var opened = _ref.opened,
|
|
@@ -7619,206 +7811,37 @@ function DropdownMenu(_ref) {
|
|
|
7619
7811
|
children = _ref.children,
|
|
7620
7812
|
_ref$panelProps = _ref.panelProps,
|
|
7621
7813
|
panelProps = _ref$panelProps === void 0 ? {} : _ref$panelProps,
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
var bound = trigger.getBoundingClientRect();
|
|
7644
|
-
var pontoCentralX = bound.x + bound.width / 2;
|
|
7645
|
-
var pontoCentralY = bound.y + bound.height / 2;
|
|
7646
|
-
var windowHeight = window.innerHeight;
|
|
7647
|
-
var windowWidth = window.innerWidth;
|
|
7648
|
-
if (pontoCentralX < windowWidth / 2) {
|
|
7649
|
-
painel.style.left = bound.x + "px";
|
|
7650
|
-
if (pontoCentralY < windowHeight / 2) {
|
|
7651
|
-
painel.style.top = bound.y + bound.height + "px";
|
|
7652
|
-
} else {
|
|
7653
|
-
painel.style.top = bound.y - painel.getBoundingClientRect().height + "px";
|
|
7654
|
-
}
|
|
7655
|
-
} else {
|
|
7656
|
-
painel.style.right = windowWidth - bound.x - bound.width + "px";
|
|
7657
|
-
if (pontoCentralY < windowHeight / 2) {
|
|
7658
|
-
painel.style.top = bound.y + bound.height + "px";
|
|
7659
|
-
} else {
|
|
7660
|
-
painel.style.top = bound.y - painel.getBoundingClientRect().height + "px";
|
|
7661
|
-
}
|
|
7662
|
-
}
|
|
7663
|
-
};
|
|
7664
|
-
if (opened) {
|
|
7665
|
-
position();
|
|
7666
|
-
var _inter = setInterval(position, 100);
|
|
7667
|
-
setInter(_inter);
|
|
7668
|
-
}
|
|
7669
|
-
return function () {
|
|
7670
|
-
if (interRef.current) {
|
|
7671
|
-
clearInterval(interRef.current);
|
|
7672
|
-
setInter(null);
|
|
7673
|
-
}
|
|
7674
|
-
};
|
|
7675
|
-
}, [opened]);
|
|
7676
|
-
useOutsideClick([wrapperRef], function (isInside) {
|
|
7677
|
-
if (closeOnOutClick && !isInside) {
|
|
7678
|
-
setOpened(false);
|
|
7679
|
-
}
|
|
7680
|
-
});
|
|
7681
|
-
useEffect(function () {
|
|
7682
|
-
var onEscPress = function onEscPress(evt) {
|
|
7683
|
-
if (evt.key === 'Escape') {
|
|
7684
|
-
setOpened(false);
|
|
7685
|
-
}
|
|
7686
|
-
};
|
|
7687
|
-
if (closeOnEsc) {
|
|
7688
|
-
if (opened) {
|
|
7689
|
-
document.addEventListener('keyup', onEscPress);
|
|
7690
|
-
} else {
|
|
7691
|
-
document.removeEventListener('keyup', onEscPress);
|
|
7692
|
-
}
|
|
7693
|
-
}
|
|
7694
|
-
return function () {
|
|
7695
|
-
document.removeEventListener('keyup', onEscPress);
|
|
7696
|
-
};
|
|
7697
|
-
}, [opened]);
|
|
7698
|
-
return React.createElement("div", Object.assign({}, props, {
|
|
7699
|
-
ref: wrapperRef,
|
|
7700
|
-
id: id,
|
|
7701
|
-
className: [rootClassName$1_, props.className || ''].join(' ')
|
|
7702
|
-
}), React.createElement("div", {
|
|
7703
|
-
className: rootClassName$1_ + "-children"
|
|
7704
|
-
}, children), React.createElement(CSSTransition, {
|
|
7705
|
-
"in": opened,
|
|
7706
|
-
timeout: 300,
|
|
7707
|
-
classNames: rootClassName$1_ + "-panel-fade",
|
|
7708
|
-
unmountOnExit: true
|
|
7709
|
-
}, React.createElement("div", Object.assign({
|
|
7710
|
-
ref: panelRef
|
|
7711
|
-
}, panelProps, {
|
|
7712
|
-
className: [rootClassName$1_ + "-panel scroll-white", (_panelProps$className = panelProps === null || panelProps === void 0 ? void 0 : panelProps.className) != null ? _panelProps$className : ''].join(' ')
|
|
7713
|
-
}), content)));
|
|
7714
|
-
}
|
|
7715
|
-
DropdownMenu.defaultProps = {
|
|
7716
|
-
closeOnOutClick: true,
|
|
7717
|
-
closeOnEsc: true
|
|
7718
|
-
};
|
|
7719
|
-
|
|
7720
|
-
var rootClassName$1$ = 'floating-panel';
|
|
7721
|
-
function FloatingPanel(props) {
|
|
7722
|
-
var id = useMemo(getUniqueKey, []);
|
|
7723
|
-
var onClick = useCallback(function (evt) {
|
|
7724
|
-
var wrapper = document.getElementById(id);
|
|
7725
|
-
if (!wrapper) return;
|
|
7726
|
-
if (!evt.composedPath().includes(wrapper)) {
|
|
7727
|
-
props.setOpened(false);
|
|
7728
|
-
evt.preventDefault();
|
|
7729
|
-
}
|
|
7730
|
-
}, [id, props]);
|
|
7731
|
-
var onEsc = useCallback(function (evt) {
|
|
7732
|
-
if (evt.key === 'Escape') {
|
|
7733
|
-
evt.preventDefault();
|
|
7734
|
-
evt.stopPropagation();
|
|
7735
|
-
props.setOpened(false);
|
|
7736
|
-
}
|
|
7737
|
-
}, [props]);
|
|
7738
|
-
var updatePosition = useCallback(function () {
|
|
7739
|
-
var wrapper = document.getElementById(id);
|
|
7740
|
-
if (!wrapper) return;
|
|
7741
|
-
var computedStyle = wrapper.getBoundingClientRect();
|
|
7742
|
-
var panel = document.querySelector("#" + id + " ." + rootClassName$1$);
|
|
7743
|
-
if (!panel) return;
|
|
7744
|
-
panel.style.top = computedStyle.top + computedStyle.height + "px";
|
|
7745
|
-
panel.style.left = computedStyle.left + "px";
|
|
7746
|
-
}, [id]);
|
|
7747
|
-
var updateSize = useCallback(function () {
|
|
7748
|
-
var _document$getElementB;
|
|
7749
|
-
var anchor = (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.parentElement;
|
|
7750
|
-
var panel = document.querySelector("#" + id + " ." + rootClassName$1$);
|
|
7751
|
-
if (!panel || !anchor) return;
|
|
7752
|
-
var computedStyle = window.getComputedStyle(anchor);
|
|
7753
|
-
panel.style.width = computedStyle.width;
|
|
7754
|
-
}, [id]);
|
|
7755
|
-
useEffect(function () {
|
|
7756
|
-
var wrapper = document.getElementById(id);
|
|
7757
|
-
var scrollableElements = getParents(wrapper);
|
|
7758
|
-
var positionAndSize = function positionAndSize() {
|
|
7759
|
-
updatePosition();
|
|
7760
|
-
updateSize();
|
|
7761
|
-
};
|
|
7762
|
-
var observer = new window.MutationObserver(positionAndSize);
|
|
7763
|
-
var timeout;
|
|
7764
|
-
if (props.opened) {
|
|
7765
|
-
positionAndSize();
|
|
7766
|
-
observer.observe(document.body, {
|
|
7767
|
-
attributes: true,
|
|
7768
|
-
childList: true,
|
|
7769
|
-
characterData: true,
|
|
7770
|
-
subtree: true
|
|
7771
|
-
});
|
|
7772
|
-
for (var _iterator = _createForOfIteratorHelperLoose(scrollableElements), _step; !(_step = _iterator()).done;) {
|
|
7773
|
-
var el = _step.value;
|
|
7774
|
-
el.addEventListener('scroll', updatePosition);
|
|
7775
|
-
}
|
|
7776
|
-
timeout = setTimeout(function () {
|
|
7777
|
-
window.addEventListener('resize', positionAndSize);
|
|
7778
|
-
document.addEventListener('keydown', onEsc);
|
|
7779
|
-
document.addEventListener('click', onClick);
|
|
7780
|
-
}, 300);
|
|
7781
|
-
}
|
|
7782
|
-
return function () {
|
|
7783
|
-
if (timeout) clearTimeout(timeout);
|
|
7784
|
-
if (props.opened) {
|
|
7785
|
-
observer.disconnect();
|
|
7786
|
-
document.removeEventListener('keydown', onEsc);
|
|
7787
|
-
document.removeEventListener('click', onClick);
|
|
7788
|
-
window.removeEventListener('resize', positionAndSize);
|
|
7789
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose(scrollableElements), _step2; !(_step2 = _iterator2()).done;) {
|
|
7790
|
-
var _el = _step2.value;
|
|
7791
|
-
_el.removeEventListener('scroll', updatePosition);
|
|
7792
|
-
}
|
|
7793
|
-
}
|
|
7794
|
-
};
|
|
7795
|
-
}, [props.opened]);
|
|
7796
|
-
return React.createElement("div", {
|
|
7797
|
-
id: id,
|
|
7798
|
-
className: rootClassName$1$ + "-wrapper",
|
|
7799
|
-
style: {
|
|
7800
|
-
bottom: props.bottom
|
|
7801
|
-
}
|
|
7802
|
-
}, React.createElement(CSSTransition, {
|
|
7803
|
-
"in": props.opened,
|
|
7804
|
-
classNames: rootClassName$1$,
|
|
7805
|
-
timeout: 300,
|
|
7806
|
-
unmountOnExit: true
|
|
7807
|
-
}, React.createElement("div", {
|
|
7808
|
-
className: useMergedClassNames([rootClassName$1$, props.className, props.boxShadow ? 'shadow' : '', props.radiusStyle])
|
|
7809
|
-
}, props.children)));
|
|
7814
|
+
removePadding = _ref.removePadding,
|
|
7815
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
7816
|
+
var _useState = useState(),
|
|
7817
|
+
ref = _useState[0],
|
|
7818
|
+
setRef = _useState[1];
|
|
7819
|
+
var classNames = useMergedClassNames([rootClassName$1$ + "-panel scroll-white", removePadding ? 'no-padding' : '', (_panelProps$className = panelProps === null || panelProps === void 0 ? void 0 : panelProps.className) != null ? _panelProps$className : '']);
|
|
7820
|
+
var anchorClassNames = useMergedClassNames([rootClassName$1$, props.className || '']);
|
|
7821
|
+
return React.createElement(Fragment$1, null, React.createElement("div", Object.assign({}, props, {
|
|
7822
|
+
ref: function ref(r) {
|
|
7823
|
+
return setRef(r);
|
|
7824
|
+
},
|
|
7825
|
+
className: anchorClassNames
|
|
7826
|
+
}), children), React.createElement(FloatingPanel$1, Object.assign({
|
|
7827
|
+
statedAnchorRef: ref,
|
|
7828
|
+
opened: opened != null ? opened : false,
|
|
7829
|
+
setOpened: setOpened,
|
|
7830
|
+
closeOnEsc: closeOnEsc,
|
|
7831
|
+
closeOnOutClick: closeOnOutClick
|
|
7832
|
+
}, panelProps), React.createElement("div", {
|
|
7833
|
+
className: classNames
|
|
7834
|
+
}, content)));
|
|
7810
7835
|
}
|
|
7811
|
-
FloatingPanel.defaultProps = {
|
|
7812
|
-
boxShadow: true,
|
|
7813
|
-
radiusStyle: 'only-bottom'
|
|
7814
|
-
};
|
|
7815
|
-
var FloatingPanel$1 = memo(FloatingPanel);
|
|
7816
7836
|
|
|
7817
7837
|
var rootClassName$20 = 'dropdown-selector';
|
|
7818
7838
|
function DropdownSelector(props) {
|
|
7819
7839
|
var _useState = useState(false),
|
|
7820
7840
|
opened = _useState[0],
|
|
7821
7841
|
setOpened = _useState[1];
|
|
7842
|
+
var _useState2 = useState(null),
|
|
7843
|
+
anchorRef = _useState2[0],
|
|
7844
|
+
setAnchorRef = _useState2[1];
|
|
7822
7845
|
var label = useMemo(function () {
|
|
7823
7846
|
var _ref, _props$options$find$l, _props$options, _props$options$find;
|
|
7824
7847
|
return (_ref = (_props$options$find$l = (_props$options = props.options) === null || _props$options === void 0 ? void 0 : (_props$options$find = _props$options.find(function (opt) {
|
|
@@ -7841,6 +7864,9 @@ function DropdownSelector(props) {
|
|
|
7841
7864
|
return React.createElement("div", {
|
|
7842
7865
|
className: useMergedClassNames([rootClassName$20 + "-wrapper", props.w100 ? 'w-100' : '', opened ? 'opened' : ''])
|
|
7843
7866
|
}, React.createElement("button", {
|
|
7867
|
+
ref: function ref(r) {
|
|
7868
|
+
return setAnchorRef(r);
|
|
7869
|
+
},
|
|
7844
7870
|
className: useMergedClassNames([rootClassName$20, props.w100 ? 'w-100' : '', opened ? 'opened' : '']),
|
|
7845
7871
|
onClick: function onClick() {
|
|
7846
7872
|
setOpened(!opened);
|
|
@@ -7850,6 +7876,7 @@ function DropdownSelector(props) {
|
|
|
7850
7876
|
}, label), React.createElement("div", {
|
|
7851
7877
|
className: useMergedClassNames([rootClassName$20 + "-icon", opened ? 'opened' : ''])
|
|
7852
7878
|
}, React.createElement(ChevronArrowDownIcon, null))), React.createElement(FloatingPanel$1, {
|
|
7879
|
+
statedAnchorRef: anchorRef,
|
|
7853
7880
|
opened: opened,
|
|
7854
7881
|
setOpened: setOpened,
|
|
7855
7882
|
className: rootClassName$20 + "-menu"
|
|
@@ -7990,7 +8017,7 @@ var EtiquetasStyle;
|
|
|
7990
8017
|
EtiquetasStyle["Yellow"] = "yellow";
|
|
7991
8018
|
})(EtiquetasStyle || (EtiquetasStyle = {}));
|
|
7992
8019
|
|
|
7993
|
-
var _excluded$
|
|
8020
|
+
var _excluded$e = ["theme", "label", "icon", "fitContent"];
|
|
7994
8021
|
var rootClassName$22 = 'component-etiqueta';
|
|
7995
8022
|
function Etiqueta(_ref) {
|
|
7996
8023
|
var _ref$theme = _ref.theme,
|
|
@@ -7998,7 +8025,7 @@ function Etiqueta(_ref) {
|
|
|
7998
8025
|
label = _ref.label,
|
|
7999
8026
|
icon = _ref.icon,
|
|
8000
8027
|
fitContent = _ref.fitContent,
|
|
8001
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8028
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
8002
8029
|
return React.createElement("div", Object.assign({}, props, {
|
|
8003
8030
|
className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
|
|
8004
8031
|
}), icon ? React.createElement("div", {
|
|
@@ -8367,22 +8394,54 @@ function FooterSicredi(props) {
|
|
|
8367
8394
|
}
|
|
8368
8395
|
var FooterSicredi$1 = memo(FooterSicredi);
|
|
8369
8396
|
|
|
8397
|
+
var _excluded$f = ["header", "footer"];
|
|
8370
8398
|
var rootClassName$27 = 'full-height-container';
|
|
8371
|
-
function FullHeightContainer(
|
|
8399
|
+
function FullHeightContainer(_ref) {
|
|
8400
|
+
var header = _ref.header,
|
|
8401
|
+
footer = _ref.footer,
|
|
8402
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
8403
|
+
var headerRef = createRef();
|
|
8404
|
+
var contentRef = createRef();
|
|
8405
|
+
var footerRef = createRef();
|
|
8406
|
+
var mobile = useSystemInfo().isMobile;
|
|
8407
|
+
useLayoutEffect(function () {
|
|
8408
|
+
var observable = new ResizeObserver(function () {
|
|
8409
|
+
if (contentRef.current && header && headerRef.current) {
|
|
8410
|
+
var _headerRef$current;
|
|
8411
|
+
contentRef.current.style.paddingTop = ((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.getBoundingClientRect().height) + "px";
|
|
8412
|
+
} else if (contentRef.current) {
|
|
8413
|
+
contentRef.current.style.paddingTop = '';
|
|
8414
|
+
}
|
|
8415
|
+
if (contentRef.current && footer && footerRef.current) {
|
|
8416
|
+
var _footerRef$current;
|
|
8417
|
+
contentRef.current.style.paddingBottom = ((_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.getBoundingClientRect().height) + "px";
|
|
8418
|
+
} else if (contentRef.current) {
|
|
8419
|
+
contentRef.current.style.paddingBottom = '';
|
|
8420
|
+
}
|
|
8421
|
+
});
|
|
8422
|
+
if (headerRef.current) {
|
|
8423
|
+
observable.observe(headerRef.current);
|
|
8424
|
+
}
|
|
8425
|
+
if (footerRef.current) {
|
|
8426
|
+
observable.observe(footerRef.current);
|
|
8427
|
+
}
|
|
8428
|
+
return function () {
|
|
8429
|
+
observable.disconnect();
|
|
8430
|
+
};
|
|
8431
|
+
}, [headerRef, footerRef, contentRef, header, footer]);
|
|
8372
8432
|
return React.createElement("div", {
|
|
8373
8433
|
className: rootClassName$27
|
|
8374
8434
|
}, React.createElement("div", {
|
|
8375
|
-
className: rootClassName$27 + "-row-header"
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
className: rootClassName$27 + "-row-
|
|
8380
|
-
}, props.
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
};
|
|
8435
|
+
className: rootClassName$27 + "-row-header",
|
|
8436
|
+
ref: headerRef
|
|
8437
|
+
}, header), React.createElement("div", {
|
|
8438
|
+
ref: contentRef,
|
|
8439
|
+
className: getMergedClassNames([rootClassName$27 + "-row-content", props.verticalPadding ? 'vertical-padding' : '', props.horizontalPadding ? 'horizontal-padding' : '', mobile ? 'mobile' : ''])
|
|
8440
|
+
}, props.children), footer ? React.createElement("div", {
|
|
8441
|
+
className: rootClassName$27 + "-row-footer",
|
|
8442
|
+
ref: footerRef
|
|
8443
|
+
}, footer) : undefined);
|
|
8444
|
+
}
|
|
8386
8445
|
var FullHeightContainer$1 = memo(FullHeightContainer);
|
|
8387
8446
|
|
|
8388
8447
|
var HeaderType;
|
|
@@ -8434,7 +8493,6 @@ function Header(props) {
|
|
|
8434
8493
|
}));
|
|
8435
8494
|
}
|
|
8436
8495
|
Header.defaultProps = {
|
|
8437
|
-
position: 'fixed',
|
|
8438
8496
|
theme: HeaderType.Verde
|
|
8439
8497
|
};
|
|
8440
8498
|
var Header$1 = memo(Header);
|
|
@@ -8474,7 +8532,7 @@ Information.defaultProps = {
|
|
|
8474
8532
|
};
|
|
8475
8533
|
|
|
8476
8534
|
var rootClassName$2b = 'component-input';
|
|
8477
|
-
|
|
8535
|
+
var Input = forwardRef(function (props, ref) {
|
|
8478
8536
|
var getProps = function getProps() {
|
|
8479
8537
|
var p = _extends({}, props, {
|
|
8480
8538
|
id: props.id ? props.id + "-input" : undefined,
|
|
@@ -8499,7 +8557,8 @@ function Input(props) {
|
|
|
8499
8557
|
}, !props.hideLabelAndHelperText && React.createElement("div", {
|
|
8500
8558
|
className: rootClassName$2b + "-label nunito"
|
|
8501
8559
|
}, props.label || ''), React.createElement("div", {
|
|
8502
|
-
className: rootClassName$2b + "-input-container"
|
|
8560
|
+
className: rootClassName$2b + "-input-container",
|
|
8561
|
+
ref: ref
|
|
8503
8562
|
}, React.createElement("input", Object.assign({}, getProps())), props.rightObject && React.createElement("div", {
|
|
8504
8563
|
className: rootClassName$2b + "-right-object"
|
|
8505
8564
|
}, props.rightObject)), !props.hideLabelAndHelperText && React.createElement("div", {
|
|
@@ -8509,7 +8568,8 @@ function Input(props) {
|
|
|
8509
8568
|
}, props.helperText || ''), props.counter && React.createElement("div", {
|
|
8510
8569
|
className: rootClassName$2b + "-counter"
|
|
8511
8570
|
}, "" + String(props.value || '').length + (props.maxLength || props.maxLength === 0 ? "/" + props.maxLength : ''))));
|
|
8512
|
-
}
|
|
8571
|
+
});
|
|
8572
|
+
Input.displayName = 'Input';
|
|
8513
8573
|
Input.defaultProps = {
|
|
8514
8574
|
value: '',
|
|
8515
8575
|
loading: false,
|
|
@@ -8581,90 +8641,46 @@ InputArea.defaultProps = {
|
|
|
8581
8641
|
};
|
|
8582
8642
|
var InputArea$1 = memo(InputArea);
|
|
8583
8643
|
|
|
8644
|
+
var _excluded$g = ["label", "opened", "setOpened", "closeOnOutClick", "closeOnEsc", "downloads"];
|
|
8584
8645
|
var rootClassName$2d = 'component-item-dropdown-download';
|
|
8585
|
-
function ItemDropdownDownload(
|
|
8586
|
-
var
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
delete p.closeOnOutClick;
|
|
8605
|
-
delete p.closeOnEsc;
|
|
8606
|
-
delete p.downloads;
|
|
8607
|
-
return p;
|
|
8608
|
-
}, [props]);
|
|
8609
|
-
useEffect(function () {
|
|
8610
|
-
var onHandleClick = function onHandleClick(evt) {
|
|
8611
|
-
if (evt.path) {
|
|
8612
|
-
if (document.querySelector("#" + id + " ." + rootClassName$2d + "-panel.panel-fade-enter-done") && !evt.path.includes(document.querySelector("#" + id))) props.setOpened(false);
|
|
8613
|
-
} else {
|
|
8614
|
-
var aux = evt.target;
|
|
8615
|
-
var deveFechar = true;
|
|
8616
|
-
while (aux && aux.id !== 'root') {
|
|
8617
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2d + "-outer")) {
|
|
8618
|
-
deveFechar = false;
|
|
8619
|
-
break;
|
|
8620
|
-
}
|
|
8621
|
-
aux = aux.parentElement;
|
|
8622
|
-
}
|
|
8623
|
-
if (deveFechar) {
|
|
8624
|
-
props.setOpened(false);
|
|
8625
|
-
}
|
|
8626
|
-
}
|
|
8627
|
-
};
|
|
8628
|
-
var onEscPress = function onEscPress(evt) {
|
|
8629
|
-
if (evt.key === 'Escape') {
|
|
8630
|
-
props.setOpened(false);
|
|
8631
|
-
}
|
|
8632
|
-
};
|
|
8633
|
-
if (props.closeOnOutClick) {
|
|
8634
|
-
if (props.opened) {
|
|
8635
|
-
document.addEventListener('mousedown', onHandleClick);
|
|
8636
|
-
} else {
|
|
8637
|
-
document.removeEventListener('mousedown', onHandleClick);
|
|
8646
|
+
function ItemDropdownDownload(_ref) {
|
|
8647
|
+
var label = _ref.label,
|
|
8648
|
+
opened = _ref.opened,
|
|
8649
|
+
setOpened = _ref.setOpened,
|
|
8650
|
+
_ref$downloads = _ref.downloads,
|
|
8651
|
+
downloads = _ref$downloads === void 0 ? [] : _ref$downloads,
|
|
8652
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8653
|
+
var _useState = useState(null),
|
|
8654
|
+
ref = _useState[0],
|
|
8655
|
+
setRef = _useState[1];
|
|
8656
|
+
var classNames = useMergedClassNames([rootClassName$2d, props.className || '', opened ? 'opened' : 'closed']);
|
|
8657
|
+
return React.createElement(Fragment$1, null, React.createElement("button", Object.assign({}, props, {
|
|
8658
|
+
ref: function ref(e) {
|
|
8659
|
+
return setRef(e);
|
|
8660
|
+
},
|
|
8661
|
+
className: classNames,
|
|
8662
|
+
onClick: function onClick(evt) {
|
|
8663
|
+
if (typeof props.onClick === 'function') {
|
|
8664
|
+
props.onClick(evt);
|
|
8638
8665
|
}
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
if (props.opened) {
|
|
8642
|
-
document.addEventListener('keyup', onEscPress);
|
|
8643
|
-
} else {
|
|
8644
|
-
document.removeEventListener('keyup', onEscPress);
|
|
8666
|
+
if (typeof setOpened === 'function') {
|
|
8667
|
+
setOpened(!opened);
|
|
8645
8668
|
}
|
|
8646
8669
|
}
|
|
8647
|
-
|
|
8648
|
-
document.removeEventListener('mousedown', onHandleClick);
|
|
8649
|
-
document.removeEventListener('click', onHandleClick);
|
|
8650
|
-
document.removeEventListener('keyup', onEscPress);
|
|
8651
|
-
};
|
|
8652
|
-
}, [props.opened]);
|
|
8653
|
-
return React.createElement("div", {
|
|
8654
|
-
className: rootClassName$2d + "-outer",
|
|
8655
|
-
id: id
|
|
8656
|
-
}, React.createElement("button", Object.assign({}, filteredProps), React.createElement("div", {
|
|
8670
|
+
}), React.createElement("div", {
|
|
8657
8671
|
className: rootClassName$2d + "-label"
|
|
8658
|
-
},
|
|
8659
|
-
className: getMergedClassNames([rootClassName$2d + "-arrow",
|
|
8660
|
-
}, React.createElement(ChevronArrowDownIcon, null))), React.createElement(
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8672
|
+
}, label), React.createElement("div", {
|
|
8673
|
+
className: getMergedClassNames([rootClassName$2d + "-arrow", opened ? 'up' : 'down'])
|
|
8674
|
+
}, React.createElement(ChevronArrowDownIcon, null))), React.createElement(FloatingPanel$1, {
|
|
8675
|
+
matchWidth: true,
|
|
8676
|
+
opened: opened,
|
|
8677
|
+
setOpened: setOpened,
|
|
8678
|
+
statedAnchorRef: ref,
|
|
8679
|
+
placement: 'bottom',
|
|
8680
|
+
fallbackPlacements: ['bottom', 'top', 'left', 'right'],
|
|
8681
|
+
offset: 6,
|
|
8666
8682
|
className: rootClassName$2d + "-panel"
|
|
8667
|
-
},
|
|
8683
|
+
}, downloads === null || downloads === void 0 ? void 0 : downloads.map(function (download, index) {
|
|
8668
8684
|
return React.createElement("button", {
|
|
8669
8685
|
id: download.id || undefined,
|
|
8670
8686
|
className: rootClassName$2d + "-item " + (download.loading ? 'loading' : ''),
|
|
@@ -8681,12 +8697,8 @@ function ItemDropdownDownload(props) {
|
|
|
8681
8697
|
}, download.loading ? React.createElement(PercentLoaderIcon, {
|
|
8682
8698
|
indefinido: true
|
|
8683
8699
|
}) : React.createElement(CloudDownloadIcon, null)));
|
|
8684
|
-
})
|
|
8700
|
+
})));
|
|
8685
8701
|
}
|
|
8686
|
-
ItemDropdownDownload.defaultProps = {
|
|
8687
|
-
closeOnOutClick: true,
|
|
8688
|
-
closeOnEsc: true
|
|
8689
|
-
};
|
|
8690
8702
|
var ItemDropdownDownload$1 = memo(ItemDropdownDownload);
|
|
8691
8703
|
|
|
8692
8704
|
var rootClassName$2e = 'component-menu-item';
|
|
@@ -8958,7 +8970,7 @@ function useScreenSize() {
|
|
|
8958
8970
|
return value;
|
|
8959
8971
|
}
|
|
8960
8972
|
|
|
8961
|
-
var _excluded$
|
|
8973
|
+
var _excluded$h = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
|
|
8962
8974
|
var rootClassName$2g = 'component-modal';
|
|
8963
8975
|
function Modal(_ref) {
|
|
8964
8976
|
var className = _ref.className,
|
|
@@ -8972,7 +8984,7 @@ function Modal(_ref) {
|
|
|
8972
8984
|
_ref$tag = _ref.tag,
|
|
8973
8985
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
8974
8986
|
title = _ref.title,
|
|
8975
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8987
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8976
8988
|
var _useScreenSize = useScreenSize(),
|
|
8977
8989
|
rankedSize = _useScreenSize.rankedSize;
|
|
8978
8990
|
var modalProps = useMemo(function () {
|
|
@@ -9145,7 +9157,7 @@ PageSubTitle.defaultProps = {
|
|
|
9145
9157
|
text: ''
|
|
9146
9158
|
};
|
|
9147
9159
|
|
|
9148
|
-
var _excluded$
|
|
9160
|
+
var _excluded$i = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9149
9161
|
function usePagination(props) {
|
|
9150
9162
|
var _ref;
|
|
9151
9163
|
if (props === void 0) {
|
|
@@ -9169,7 +9181,7 @@ function usePagination(props) {
|
|
|
9169
9181
|
_props$siblingCount = _props.siblingCount,
|
|
9170
9182
|
siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
|
|
9171
9183
|
maxLength = _props.maxLength,
|
|
9172
|
-
other = _objectWithoutPropertiesLoose(_props, _excluded$
|
|
9184
|
+
other = _objectWithoutPropertiesLoose(_props, _excluded$i);
|
|
9173
9185
|
var isControlledRef = useRef(pageProp !== undefined);
|
|
9174
9186
|
var _useState = useState(currentPage),
|
|
9175
9187
|
pageCurrent = _useState[0],
|
|
@@ -9261,7 +9273,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9261
9273
|
}));
|
|
9262
9274
|
};
|
|
9263
9275
|
|
|
9264
|
-
var _excluded$
|
|
9276
|
+
var _excluded$j = ["page", "type", "selected"];
|
|
9265
9277
|
var rootClassName$2k = 'pagination-component';
|
|
9266
9278
|
var Pagination = function Pagination(props) {
|
|
9267
9279
|
var _useScreenSize = useScreenSize(),
|
|
@@ -9387,7 +9399,7 @@ var Pagination = function Pagination(props) {
|
|
|
9387
9399
|
var page = _ref2.page,
|
|
9388
9400
|
type = _ref2.type,
|
|
9389
9401
|
selected = _ref2.selected,
|
|
9390
|
-
item = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9402
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
9391
9403
|
var children = null;
|
|
9392
9404
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9393
9405
|
children = React.createElement("li", {
|
|
@@ -9728,7 +9740,7 @@ var RadioButtonType;
|
|
|
9728
9740
|
RadioButtonType["New"] = "new";
|
|
9729
9741
|
})(RadioButtonType || (RadioButtonType = {}));
|
|
9730
9742
|
|
|
9731
|
-
var _excluded$
|
|
9743
|
+
var _excluded$k = ["onChange", "value", "className", "theme", "error", "type"];
|
|
9732
9744
|
var rootClassName$2o = 'component-radio-button';
|
|
9733
9745
|
function RadioButton(_ref) {
|
|
9734
9746
|
var onChange = _ref.onChange,
|
|
@@ -9741,7 +9753,7 @@ function RadioButton(_ref) {
|
|
|
9741
9753
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
9742
9754
|
_ref$type = _ref.type,
|
|
9743
9755
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
9744
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9756
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
9745
9757
|
var classNames = useMergedClassNames([rootClassName$2o, theme, className]);
|
|
9746
9758
|
return React.createElement("button", Object.assign({}, props, {
|
|
9747
9759
|
type: type,
|
|
@@ -10092,25 +10104,24 @@ var Search$1 = memo(Search);
|
|
|
10092
10104
|
|
|
10093
10105
|
var rootClassName$2r = 'component-select';
|
|
10094
10106
|
function Select(props) {
|
|
10095
|
-
var _props$
|
|
10096
|
-
var
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
var
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
var
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
interRef.current = inter;
|
|
10107
|
+
var _props$options4;
|
|
10108
|
+
var systemInfo = useSystemInfo();
|
|
10109
|
+
var panelId = useMemo(function () {
|
|
10110
|
+
return getUniqueKey();
|
|
10111
|
+
}, []);
|
|
10112
|
+
var _useState = useState(),
|
|
10113
|
+
anchorRef = _useState[0],
|
|
10114
|
+
setAnchorRef = _useState[1];
|
|
10115
|
+
var wrapperRef = createRef();
|
|
10116
|
+
var _useState2 = useState(false),
|
|
10117
|
+
panelOpened = _useState2[0],
|
|
10118
|
+
setPanelOpened = _useState2[1];
|
|
10119
|
+
var _useState3 = useState(''),
|
|
10120
|
+
filterInput = _useState3[0],
|
|
10121
|
+
setFilterInput = _useState3[1];
|
|
10122
|
+
var _useState4 = useState(false),
|
|
10123
|
+
fakeSelectFocused = _useState4[0],
|
|
10124
|
+
setFakeSelectFocused = _useState4[1];
|
|
10114
10125
|
var getKey = function getKey(option) {
|
|
10115
10126
|
if (option) {
|
|
10116
10127
|
if (option.key) return option.key;
|
|
@@ -10118,93 +10129,6 @@ function Select(props) {
|
|
|
10118
10129
|
}
|
|
10119
10130
|
return getUniqueKey();
|
|
10120
10131
|
};
|
|
10121
|
-
useEffect(function () {
|
|
10122
|
-
var func = function func(evt) {
|
|
10123
|
-
var aux = evt.target;
|
|
10124
|
-
var deveFechar = true;
|
|
10125
|
-
while (aux && aux.id !== 'root') {
|
|
10126
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2r + "-outer")) {
|
|
10127
|
-
deveFechar = false;
|
|
10128
|
-
break;
|
|
10129
|
-
}
|
|
10130
|
-
aux = aux.parentElement;
|
|
10131
|
-
}
|
|
10132
|
-
if (deveFechar) {
|
|
10133
|
-
setPanelOpened(false);
|
|
10134
|
-
}
|
|
10135
|
-
};
|
|
10136
|
-
var onEsc = function onEsc(evt) {
|
|
10137
|
-
if (evt.key === 'Escape') {
|
|
10138
|
-
setPanelOpened(false);
|
|
10139
|
-
evt.preventDefault();
|
|
10140
|
-
evt.stopPropagation();
|
|
10141
|
-
}
|
|
10142
|
-
};
|
|
10143
|
-
if (panelOpened) {
|
|
10144
|
-
var _document, _document$querySelect;
|
|
10145
|
-
document.addEventListener('keydown', onEsc);
|
|
10146
|
-
document.addEventListener('click', func);
|
|
10147
|
-
document.body.append(document.querySelector("#" + panelId));
|
|
10148
|
-
(_document = document) === null || _document === void 0 ? void 0 : (_document$querySelect = _document.querySelector("#" + id)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.append(document.querySelector("#" + panelId));
|
|
10149
|
-
} else {
|
|
10150
|
-
document.removeEventListener('keydown', onEsc);
|
|
10151
|
-
document.removeEventListener('click', func);
|
|
10152
|
-
setTimeout(function () {
|
|
10153
|
-
return setFilterInput('');
|
|
10154
|
-
}, 400);
|
|
10155
|
-
}
|
|
10156
|
-
return function () {
|
|
10157
|
-
document.removeEventListener('keydown', onEsc);
|
|
10158
|
-
document.removeEventListener('click', func);
|
|
10159
|
-
};
|
|
10160
|
-
}, [id, panelId, panelOpened]);
|
|
10161
|
-
useEffect(function () {
|
|
10162
|
-
if (interRef.current) {
|
|
10163
|
-
clearInterval(interRef.current);
|
|
10164
|
-
setInter(null);
|
|
10165
|
-
}
|
|
10166
|
-
var position = function position() {
|
|
10167
|
-
var trigger = document.querySelector("#" + id);
|
|
10168
|
-
var panel = document.querySelector("#" + panelId + ".panel-fade-enter-active, #" + panelId + ".panel-fade-enter-done, #" + panelId + ".panel-fade-exit-active");
|
|
10169
|
-
if (!trigger || !panel) return;
|
|
10170
|
-
var triggerBound = trigger.getBoundingClientRect();
|
|
10171
|
-
panel.style.width = triggerBound.width + "px";
|
|
10172
|
-
var windowHeight = window.innerHeight;
|
|
10173
|
-
var panelHeight = panel.getBoundingClientRect().height;
|
|
10174
|
-
var fitBottom = panelHeight + triggerBound.bottom < windowHeight;
|
|
10175
|
-
var fitTop = triggerBound.top - panelHeight > 0;
|
|
10176
|
-
if (fitBottom && !props.bottomPanel) {
|
|
10177
|
-
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10178
|
-
panel.style.left = 'unset';
|
|
10179
|
-
panel.style.bottom = 'unset';
|
|
10180
|
-
panel.style.borderRadius = '0 0 8px 8px';
|
|
10181
|
-
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10182
|
-
} else if (fitTop && !props.bottomPanel) {
|
|
10183
|
-
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10184
|
-
panel.style.left = 'unset';
|
|
10185
|
-
panel.style.bottom = 'unset';
|
|
10186
|
-
panel.style.borderRadius = '8px';
|
|
10187
|
-
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10188
|
-
} else {
|
|
10189
|
-
panel.style.top = 'unset';
|
|
10190
|
-
panel.style.left = '0';
|
|
10191
|
-
panel.style.bottom = '0';
|
|
10192
|
-
panel.style.width = '100%';
|
|
10193
|
-
panel.style.borderRadius = '8px 8px 0 0';
|
|
10194
|
-
panel.style.boxShadow = '0 -10px 0 5000px rgba(0, 0, 0, 0.5)';
|
|
10195
|
-
}
|
|
10196
|
-
};
|
|
10197
|
-
if (panelOpened) {
|
|
10198
|
-
position();
|
|
10199
|
-
setInter(setInterval(position, 20));
|
|
10200
|
-
}
|
|
10201
|
-
return function () {
|
|
10202
|
-
if (interRef.current) {
|
|
10203
|
-
clearInterval(interRef.current);
|
|
10204
|
-
setInter(null);
|
|
10205
|
-
}
|
|
10206
|
-
};
|
|
10207
|
-
}, [panelOpened]);
|
|
10208
10132
|
var opcoes = JSON.stringify(props.options);
|
|
10209
10133
|
useEffect(function () {
|
|
10210
10134
|
if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
|
|
@@ -10219,7 +10143,7 @@ function Select(props) {
|
|
|
10219
10143
|
}
|
|
10220
10144
|
}
|
|
10221
10145
|
}, [opcoes]);
|
|
10222
|
-
var
|
|
10146
|
+
var RightObject = useMemo(function () {
|
|
10223
10147
|
return React.createElement("div", {
|
|
10224
10148
|
className: rootClassName$2r + "-objects"
|
|
10225
10149
|
}, props.clearButton && !props.readOnly && (props.multiple && props.value && Array.isArray(props.value) && props.value.length || !props.multiple && (props.value || props.value === 0 || props.value === false)) ? React.createElement(IconButton$1, {
|
|
@@ -10228,6 +10152,7 @@ function Select(props) {
|
|
|
10228
10152
|
className: rootClassName$2r + "-clear-button",
|
|
10229
10153
|
icon: React.createElement(CloseIcon, null),
|
|
10230
10154
|
onClick: function onClick() {
|
|
10155
|
+
setPanelOpened(false);
|
|
10231
10156
|
if (props.multiple) {
|
|
10232
10157
|
props.onChange([], {
|
|
10233
10158
|
setPanelOpened: setPanelOpened
|
|
@@ -10247,25 +10172,27 @@ function Select(props) {
|
|
|
10247
10172
|
},
|
|
10248
10173
|
icon: React.createElement(ChevronArrowDownIcon, null)
|
|
10249
10174
|
}));
|
|
10250
|
-
};
|
|
10175
|
+
}, [panelOpened, props]);
|
|
10251
10176
|
var getInputProps = function getInputProps() {
|
|
10252
10177
|
var _props$options;
|
|
10253
10178
|
var p = _extends({}, props, {
|
|
10254
10179
|
className: getMergedClassNames([rootClassName$2r, props.className]),
|
|
10255
10180
|
forceFocus: fakeSelectFocused,
|
|
10256
10181
|
readOnly: true,
|
|
10257
|
-
rightObject:
|
|
10182
|
+
rightObject: RightObject,
|
|
10258
10183
|
onClick: function onClick() {
|
|
10259
|
-
var
|
|
10260
|
-
|
|
10184
|
+
var _wrapperRef$current;
|
|
10185
|
+
var selectFake = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10186
|
+
if (!props.multiple && systemInfo.os === OS.iOS && selectFake) {
|
|
10261
10187
|
selectFake.focus();
|
|
10262
10188
|
} else {
|
|
10263
10189
|
setPanelOpened(!panelOpened);
|
|
10264
10190
|
}
|
|
10265
10191
|
},
|
|
10266
10192
|
onFocus: function onFocus(evt) {
|
|
10267
|
-
var
|
|
10268
|
-
|
|
10193
|
+
var _wrapperRef$current2;
|
|
10194
|
+
var selectFake = (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10195
|
+
if (!props.multiple && systemInfo.os === OS.iOS && selectFake) {
|
|
10269
10196
|
selectFake.focus();
|
|
10270
10197
|
} else {
|
|
10271
10198
|
evt.target.setSelectionRange(0, 0);
|
|
@@ -10282,7 +10209,7 @@ function Select(props) {
|
|
|
10282
10209
|
inputFilter.focus();
|
|
10283
10210
|
evt.preventDefault();
|
|
10284
10211
|
} else {
|
|
10285
|
-
var firstOption = document.querySelector("#" +
|
|
10212
|
+
var firstOption = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10286
10213
|
if (firstOption) {
|
|
10287
10214
|
firstOption.focus();
|
|
10288
10215
|
evt.preventDefault();
|
|
@@ -10297,7 +10224,6 @@ function Select(props) {
|
|
|
10297
10224
|
})[0]
|
|
10298
10225
|
});
|
|
10299
10226
|
delete p.showPanelFooter;
|
|
10300
|
-
delete p.bottomPanel;
|
|
10301
10227
|
delete p.clearButton;
|
|
10302
10228
|
delete p.multiplePlaceholder;
|
|
10303
10229
|
delete p.multiple;
|
|
@@ -10461,48 +10387,19 @@ function Select(props) {
|
|
|
10461
10387
|
var optionsFiltered = useMemo(function () {
|
|
10462
10388
|
var _props$options2;
|
|
10463
10389
|
return ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
|
|
10464
|
-
return getStringWithoutSpecialChar(op.label).toLowerCase().
|
|
10390
|
+
return getStringWithoutSpecialChar(String(op.label)).toLowerCase().includes(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10465
10391
|
})) || [];
|
|
10466
10392
|
}, [props.options, filterInput]);
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
}, !props.multiple && isiPhone() && React.createElement("select", {
|
|
10471
|
-
className: rootClassName$2r + "-select-fake",
|
|
10472
|
-
value: props.value ? String(props.value) : '',
|
|
10473
|
-
onChange: function onChange(evt) {
|
|
10474
|
-
return props.onChange(evt.target.value, {
|
|
10475
|
-
setPanelOpened: setPanelOpened
|
|
10476
|
-
});
|
|
10477
|
-
},
|
|
10478
|
-
tabIndex: props.tabIndex,
|
|
10479
|
-
onFocus: function onFocus() {
|
|
10480
|
-
return setFakeSelectFocused(true);
|
|
10481
|
-
},
|
|
10482
|
-
onBlur: function onBlur() {
|
|
10483
|
-
return setFakeSelectFocused(false);
|
|
10484
|
-
}
|
|
10485
|
-
}, React.createElement("option", {
|
|
10486
|
-
value: '',
|
|
10487
|
-
disabled: true
|
|
10488
|
-
}, languageValues.components.select.single.fakeOption), (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt) {
|
|
10489
|
-
return React.createElement("option", {
|
|
10490
|
-
key: getKey(opt),
|
|
10491
|
-
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10492
|
-
}, opt.label);
|
|
10493
|
-
})), React.createElement(Input$1, Object.assign({}, getInputProps())), React.createElement(CSSTransition, {
|
|
10494
|
-
"in": panelOpened,
|
|
10495
|
-
timeout: 300,
|
|
10496
|
-
classNames: 'panel-fade',
|
|
10497
|
-
unmountOnExit: true,
|
|
10498
|
-
onEnter: function onEnter() {
|
|
10393
|
+
var skipFirst = useRef(true);
|
|
10394
|
+
useLayoutEffect(function () {
|
|
10395
|
+
if (panelOpened) {
|
|
10499
10396
|
var panel = document.querySelector("#" + panelId);
|
|
10500
10397
|
if (window.innerHeight < panel.getBoundingClientRect().bottom) {
|
|
10501
10398
|
panel.style.top = 'unset';
|
|
10502
10399
|
panel.style.bottom = '0';
|
|
10503
10400
|
}
|
|
10504
10401
|
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-panel-input input");
|
|
10505
|
-
if (firstInput &&
|
|
10402
|
+
if (firstInput && systemInfo.os !== OS.iOS) {
|
|
10506
10403
|
setTimeout(function () {
|
|
10507
10404
|
firstInput.focus();
|
|
10508
10405
|
}, 50);
|
|
@@ -10515,8 +10412,8 @@ function Select(props) {
|
|
|
10515
10412
|
}, 50);
|
|
10516
10413
|
}
|
|
10517
10414
|
} else {
|
|
10518
|
-
var _props$
|
|
10519
|
-
var elProps = (_props$
|
|
10415
|
+
var _props$options3;
|
|
10416
|
+
var elProps = (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt, index) {
|
|
10520
10417
|
return _extends({}, opt, {
|
|
10521
10418
|
ind: index
|
|
10522
10419
|
});
|
|
@@ -10533,16 +10430,71 @@ function Select(props) {
|
|
|
10533
10430
|
}
|
|
10534
10431
|
}
|
|
10535
10432
|
}
|
|
10536
|
-
}
|
|
10537
|
-
|
|
10538
|
-
var inputElement =
|
|
10539
|
-
if (inputElement &&
|
|
10433
|
+
} else if (!skipFirst.current) {
|
|
10434
|
+
var _wrapperRef$current3;
|
|
10435
|
+
var inputElement = (_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.querySelector("input");
|
|
10436
|
+
if (inputElement && systemInfo.os !== OS.iOS) {
|
|
10540
10437
|
inputElement.focus();
|
|
10541
10438
|
}
|
|
10439
|
+
} else if (skipFirst) {
|
|
10440
|
+
skipFirst.current = false;
|
|
10542
10441
|
}
|
|
10543
|
-
},
|
|
10442
|
+
}, [panelOpened]);
|
|
10443
|
+
var setMaxHeight = useCallback(function (h) {
|
|
10444
|
+
var max = h - 12;
|
|
10445
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options");
|
|
10446
|
+
if (props.showPanelFooter) {
|
|
10447
|
+
max -= 40;
|
|
10448
|
+
}
|
|
10449
|
+
if (props.panelFilter) {
|
|
10450
|
+
max -= 48;
|
|
10451
|
+
}
|
|
10452
|
+
if (window.innerHeight > 400) {
|
|
10453
|
+
max = Math.min(max, 40 * 6);
|
|
10454
|
+
}
|
|
10455
|
+
el === null || el === void 0 ? void 0 : el.style.setProperty('max-height', max + "px");
|
|
10456
|
+
}, [panelId, props.showPanelFooter, props.panelFilter]);
|
|
10457
|
+
return React.createElement("div", {
|
|
10458
|
+
ref: wrapperRef,
|
|
10459
|
+
className: rootClassName$2r + "-outer"
|
|
10460
|
+
}, !props.multiple && systemInfo.os === OS.iOS && React.createElement("select", {
|
|
10461
|
+
className: rootClassName$2r + "-select-fake",
|
|
10462
|
+
value: props.value ? String(props.value) : '',
|
|
10463
|
+
onChange: function onChange(evt) {
|
|
10464
|
+
return props.onChange(evt.target.value, {
|
|
10465
|
+
setPanelOpened: setPanelOpened
|
|
10466
|
+
});
|
|
10467
|
+
},
|
|
10468
|
+
tabIndex: props.tabIndex,
|
|
10469
|
+
onFocus: function onFocus() {
|
|
10470
|
+
return setFakeSelectFocused(true);
|
|
10471
|
+
},
|
|
10472
|
+
onBlur: function onBlur() {
|
|
10473
|
+
return setFakeSelectFocused(false);
|
|
10474
|
+
}
|
|
10475
|
+
}, React.createElement("option", {
|
|
10476
|
+
value: '',
|
|
10477
|
+
disabled: true
|
|
10478
|
+
}, languageValues.components.select.single.fakeOption), (_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.map(function (opt) {
|
|
10479
|
+
return React.createElement("option", {
|
|
10480
|
+
key: getKey(opt),
|
|
10481
|
+
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10482
|
+
}, opt.label);
|
|
10483
|
+
})), React.createElement(Input$1, Object.assign({}, getInputProps(), {
|
|
10484
|
+
ref: function ref(r) {
|
|
10485
|
+
return setAnchorRef(r);
|
|
10486
|
+
}
|
|
10487
|
+
})), React.createElement(FloatingPanel$1, {
|
|
10488
|
+
statedAnchorRef: anchorRef,
|
|
10489
|
+
opened: panelOpened,
|
|
10490
|
+
setOpened: setPanelOpened,
|
|
10491
|
+
matchWidth: true,
|
|
10492
|
+
placement: 'bottom',
|
|
10493
|
+
fallbackPlacements: ['top', 'left', 'right'],
|
|
10494
|
+
offset: 1,
|
|
10544
10495
|
id: panelId,
|
|
10545
|
-
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : '')
|
|
10496
|
+
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : ''),
|
|
10497
|
+
heightAvaliableCallback: setMaxHeight
|
|
10546
10498
|
}, props.panelFilter && props.options && !!props.options.length && React.createElement("div", {
|
|
10547
10499
|
className: rootClassName$2r + "-panel-input"
|
|
10548
10500
|
}, React.createElement(Input$1, {
|
|
@@ -10554,7 +10506,7 @@ function Select(props) {
|
|
|
10554
10506
|
hideLabelAndHelperText: true,
|
|
10555
10507
|
onKeyDown: function onKeyDown(evt) {
|
|
10556
10508
|
if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'ArrowDown') {
|
|
10557
|
-
var el = document.querySelector("#" +
|
|
10509
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10558
10510
|
if (el) {
|
|
10559
10511
|
el.focus();
|
|
10560
10512
|
evt.preventDefault();
|
|
@@ -10594,7 +10546,7 @@ function Select(props) {
|
|
|
10594
10546
|
setPanelOpened: setPanelOpened
|
|
10595
10547
|
});
|
|
10596
10548
|
}
|
|
10597
|
-
}, languageValues.components.select.clearAll)))))
|
|
10549
|
+
}, languageValues.components.select.clearAll)))));
|
|
10598
10550
|
}
|
|
10599
10551
|
Select.defaultProps = {
|
|
10600
10552
|
onChange: undefined,
|
|
@@ -10641,7 +10593,7 @@ Switch.defaultProps = {
|
|
|
10641
10593
|
scale: 1
|
|
10642
10594
|
};
|
|
10643
10595
|
|
|
10644
|
-
var _excluded$
|
|
10596
|
+
var _excluded$l = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10645
10597
|
var rootClassName$2t = 'component-table';
|
|
10646
10598
|
function TypedTable(props) {
|
|
10647
10599
|
return React.createElement(Table, Object.assign({}, props));
|
|
@@ -10654,7 +10606,7 @@ function Table(_ref) {
|
|
|
10654
10606
|
sortable = _ref.sortable,
|
|
10655
10607
|
upperHeader = _ref.upperHeader,
|
|
10656
10608
|
className = _ref.className,
|
|
10657
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10609
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
10658
10610
|
var itemsId = useMemo(function () {
|
|
10659
10611
|
return "table" + getUniqueKey();
|
|
10660
10612
|
}, []);
|
|
@@ -11254,13 +11206,13 @@ function TextEditorColorPicker(props) {
|
|
|
11254
11206
|
}, "OK")));
|
|
11255
11207
|
}
|
|
11256
11208
|
|
|
11257
|
-
var _excluded$
|
|
11209
|
+
var _excluded$m = ["icon", "active"];
|
|
11258
11210
|
var rootClassName$2C = 'text-editor-header-button';
|
|
11259
11211
|
function TextEditorHeaderButton(_ref) {
|
|
11260
11212
|
var _props$className;
|
|
11261
11213
|
var icon = _ref.icon,
|
|
11262
11214
|
active = _ref.active,
|
|
11263
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11215
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
11264
11216
|
return React.createElement("button", Object.assign({
|
|
11265
11217
|
className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11266
11218
|
}, props), icon);
|
|
@@ -11809,6 +11761,7 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11809
11761
|
return a.id !== id;
|
|
11810
11762
|
});
|
|
11811
11763
|
setArrayOfToast(arr);
|
|
11764
|
+
toasts.current = arr;
|
|
11812
11765
|
};
|
|
11813
11766
|
useImperativeHandle(ref, function () {
|
|
11814
11767
|
return {
|
|
@@ -12118,7 +12071,7 @@ TopLoader.defaultProps = {
|
|
|
12118
12071
|
})
|
|
12119
12072
|
};
|
|
12120
12073
|
|
|
12121
|
-
var _excluded$
|
|
12074
|
+
var _excluded$n = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
|
|
12122
12075
|
var rootClassName$2M = 'video-modal';
|
|
12123
12076
|
function VideoModal(_ref) {
|
|
12124
12077
|
var _ref2;
|
|
@@ -12132,7 +12085,7 @@ function VideoModal(_ref) {
|
|
|
12132
12085
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
12133
12086
|
urlVideo = _ref.urlVideo,
|
|
12134
12087
|
videoPlayerProps = _ref.videoPlayerProps,
|
|
12135
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12088
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
12136
12089
|
var _useScreenSize = useScreenSize(),
|
|
12137
12090
|
rankedSize = _useScreenSize.rankedSize;
|
|
12138
12091
|
var handleClose = useCallback(function () {
|
|
@@ -12158,13 +12111,57 @@ VideoModal.defaultProps = {
|
|
|
12158
12111
|
size: 'md'
|
|
12159
12112
|
};
|
|
12160
12113
|
|
|
12161
|
-
var _excluded$
|
|
12114
|
+
var _excluded$o = ["className"];
|
|
12162
12115
|
var rootClassName$2N = 'icon-component';
|
|
12163
|
-
var
|
|
12116
|
+
var Bell16Icon = function Bell16Icon(_ref) {
|
|
12164
12117
|
var _ref$className = _ref.className,
|
|
12165
12118
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12166
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12119
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
12167
12120
|
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12121
|
+
return React.createElement("svg", Object.assign({
|
|
12122
|
+
width: '16',
|
|
12123
|
+
height: '16',
|
|
12124
|
+
viewBox: '0 0 16 16',
|
|
12125
|
+
fill: 'none',
|
|
12126
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12127
|
+
className: classNames
|
|
12128
|
+
}, props), React.createElement("path", {
|
|
12129
|
+
fillRule: 'evenodd',
|
|
12130
|
+
clipRule: 'evenodd',
|
|
12131
|
+
d: 'M12.2013 8.544C12.2073 10.042 12.7943 11.453 13.8541 12.516C13.9653 12.626 14.0144 12.78 13.9964 12.931C14.0074 13.042 13.9913 13.158 13.9443 13.266C13.8441 13.515 13.6317 13.669 13.3112 13.678H10.4643C10.3832 14.971 9.31538 16 8.00014 16C6.6859 16 5.61808 14.971 5.53594 13.678H2.68308H2.67406C2.4016 13.678 2.15518 13.512 2.05201 13.252C1.99391 13.121 1.98589 12.973 2.02095 12.834C2.02095 12.716 2.06102 12.603 2.14717 12.516C3.20697 11.453 3.79397 10.042 3.79998 8.542L3.79898 6.082C3.79698 4.199 5.06814 2.543 6.89025 2.055C6.99342 2.029 7.05453 2.016 7.11864 2.003C7.23884 1.978 7.36906 1.966 7.49929 1.957V0.5C7.49929 0.224 7.72367 0 8.00014 0C8.27761 0 8.50099 0.224 8.50099 0.5V1.957C8.63222 1.966 8.76244 1.978 8.89066 2.005C8.94675 2.016 9.00786 2.029 9.06996 2.044C10.9331 2.543 12.2043 4.199 12.2023 6.083L12.2013 8.544ZM9.47866 13.178C9.47866 12.902 9.70304 12.678 9.97951 12.678H12.6571C11.7175 11.508 11.2056 10.066 11.1996 8.546L11.2006 6.082C11.2026 4.651 10.2359 3.392 8.85059 3.022L8.68731 2.984C8.61038 2.9673 8.53764 2.96176 8.46617 2.95631C8.45203 2.95523 8.43793 2.95416 8.42386 2.953L8.30165 2.945C8.28562 2.944 8.20449 2.931 8.18846 2.928L8.04321 2.917C8.02759 2.91815 7.99794 2.91798 7.97065 2.91781C7.95069 2.91769 7.93201 2.91758 7.921 2.918L7.57742 2.953C7.56222 2.95425 7.54698 2.9554 7.53173 2.95656C7.46158 2.96187 7.3911 2.96721 7.32198 2.982L7.18174 3.013C5.76533 3.392 4.79868 4.651 4.80069 6.081L4.80169 8.544C4.79568 10.066 4.28281 11.508 3.34421 12.678H6.02177C6.29824 12.678 6.52262 12.902 6.52262 13.178V13.525C6.52262 14.338 7.18575 15 8.00014 15C8.81553 15 9.47866 14.338 9.47866 13.525V13.178Z',
|
|
12132
|
+
fill: 'currentColor'
|
|
12133
|
+
}));
|
|
12134
|
+
};
|
|
12135
|
+
|
|
12136
|
+
var _excluded$p = ["className"];
|
|
12137
|
+
var rootClassName$2O = 'icon-component';
|
|
12138
|
+
var BellIcon = function BellIcon(_ref) {
|
|
12139
|
+
var _ref$className = _ref.className,
|
|
12140
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12141
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
12142
|
+
var classNames = useMergedClassNames([rootClassName$2O, className]);
|
|
12143
|
+
return React.createElement("svg", Object.assign({
|
|
12144
|
+
width: '24',
|
|
12145
|
+
height: '24',
|
|
12146
|
+
viewBox: '0 0 24 24',
|
|
12147
|
+
fill: 'none',
|
|
12148
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12149
|
+
className: classNames
|
|
12150
|
+
}, props), React.createElement("path", {
|
|
12151
|
+
fillRule: 'evenodd',
|
|
12152
|
+
clipRule: 'evenodd',
|
|
12153
|
+
d: 'M20.8526 19.112C20.9707 19.229 21.0211 19.396 20.9919 19.555C21.01 19.693 20.9929 19.835 20.9343 19.967C20.8253 20.249 20.5095 20.431 20.2067 20.439H15.5633V20.469C15.5633 22.416 13.9648 24 12.0009 24C10.0359 24 8.43735 22.416 8.43735 20.469V20.439H3.78592H3.7728C3.46398 20.439 3.17434 20.244 3.05828 19.949C2.98965 19.793 2.98259 19.615 3.03204 19.448C3.02397 19.324 3.05626 19.203 3.1481 19.112C4.8365 17.432 5.77103 15.203 5.78112 12.833L5.7791 9.058C5.77607 6.292 7.65824 3.858 10.3558 3.141C10.4992 3.104 10.589 3.085 10.6778 3.067C10.8736 3.027 11.0653 3.011 11.2571 2.999L11.4256 2.986L11.4962 2.974V0.5C11.4962 0.223 11.7213 0 12.0009 0C12.2794 0 12.5055 0.223 12.5055 0.5V2.974C12.5103 2.97536 12.5146 2.97579 12.5191 2.97625C12.5212 2.97646 12.5234 2.97668 12.5256 2.977L12.7436 2.999C12.9354 3.011 13.1281 3.027 13.3169 3.066C13.4117 3.085 13.5015 3.104 13.5893 3.127C16.3425 3.858 18.2256 6.292 18.2226 9.059L18.2206 12.835C18.2307 15.203 19.1642 17.432 20.8526 19.112ZM14.5541 19.939C14.5541 19.663 14.7802 19.439 15.0587 19.439H19.7768C18.1277 17.622 17.2215 15.297 17.2114 12.836L17.2134 9.058C17.2164 6.743 15.6411 4.708 13.3835 4.108C13.2793 4.08031 13.2128 4.06599 13.1535 4.05324C13.1422 4.0508 13.1311 4.04841 13.1201 4.046C12.9782 4.01659 12.8431 4.00745 12.7094 3.99841C12.6976 3.99761 12.6858 3.99681 12.674 3.996L12.4883 3.982C12.4722 3.981 12.3551 3.963 12.3399 3.96L12.1906 3.946C12.0765 3.94 12.0412 3.935 12.0069 3.93C12.0059 3.93 12.0049 3.93025 12.0039 3.9305C12.0029 3.93075 12.0019 3.931 12.0009 3.931C11.9998 3.931 11.9988 3.93075 11.9978 3.9305C11.9968 3.93025 11.9958 3.93 11.9948 3.93L11.9912 3.93053C11.9581 3.93535 11.926 3.94004 11.8939 3.941C11.8898 3.941 11.7152 3.951 11.7122 3.952C11.6961 3.955 11.5316 3.98 11.5154 3.982L11.3277 3.996C11.316 3.9968 11.3042 3.99759 11.2925 3.99838C11.1581 4.00743 11.0245 4.01641 10.8927 4.044C10.8816 4.04635 10.8706 4.04864 10.8599 4.0509C10.7928 4.06495 10.7329 4.07749 10.6737 4.093C8.35964 4.708 6.78528 6.743 6.78831 9.057L6.79032 12.835C6.78023 15.297 5.87296 17.622 4.22492 19.439H8.94195C9.2215 19.439 9.44655 19.663 9.44655 19.939V20.469C9.44655 21.865 10.592 23 12.0009 23C13.4087 23 14.5541 21.865 14.5541 20.469V19.939Z',
|
|
12154
|
+
fill: 'currentColor'
|
|
12155
|
+
}));
|
|
12156
|
+
};
|
|
12157
|
+
|
|
12158
|
+
var _excluded$q = ["className"];
|
|
12159
|
+
var rootClassName$2P = 'icon-component';
|
|
12160
|
+
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12161
|
+
var _ref$className = _ref.className,
|
|
12162
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12163
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
12164
|
+
var classNames = useMergedClassNames([rootClassName$2P, className]);
|
|
12168
12165
|
return React.createElement("svg", Object.assign({
|
|
12169
12166
|
viewBox: '0 0 12 12',
|
|
12170
12167
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -12179,10 +12176,10 @@ var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
|
12179
12176
|
}));
|
|
12180
12177
|
};
|
|
12181
12178
|
|
|
12182
|
-
var rootClassName$
|
|
12179
|
+
var rootClassName$2Q = 'icon-component';
|
|
12183
12180
|
var PhonePlusIcon = function PhonePlusIcon() {
|
|
12184
12181
|
return React.createElement("svg", {
|
|
12185
|
-
className: rootClassName$
|
|
12182
|
+
className: rootClassName$2Q,
|
|
12186
12183
|
viewBox: '0 0 24 24',
|
|
12187
12184
|
fill: 'currentColor',
|
|
12188
12185
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -12193,7 +12190,22 @@ var PhonePlusIcon = function PhonePlusIcon() {
|
|
|
12193
12190
|
}));
|
|
12194
12191
|
};
|
|
12195
12192
|
|
|
12196
|
-
var rootClassName$
|
|
12193
|
+
var rootClassName$2R = 'icon-component';
|
|
12194
|
+
var Settings16Icon = function Settings16Icon() {
|
|
12195
|
+
return React.createElement("svg", {
|
|
12196
|
+
className: rootClassName$2R,
|
|
12197
|
+
viewBox: '0 0 16 16',
|
|
12198
|
+
fill: 'currentColor',
|
|
12199
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
12200
|
+
}, React.createElement("path", {
|
|
12201
|
+
fillRule: 'evenodd',
|
|
12202
|
+
clipRule: 'evenodd',
|
|
12203
|
+
d: 'M14.5535 7.29484L15.6965 6.23441C16.0246 5.93023 16.0948 5.45145 15.8674 5.0719L14.5784 2.93093C14.3509 2.55121 13.8816 2.36878 13.4415 2.4906L11.8723 2.92191C11.4921 2.65989 11.0838 2.4382 10.6539 2.2604L10.2522 0.723412C10.1435 0.299985 9.74737 0.00210814 9.29151 5.77838e-06L6.71207 0C6.25442 0 5.85575 0.298948 5.74625 0.725421L5.32683 2.33479C4.94525 2.50579 4.58153 2.71205 4.2409 2.95044L2.55717 2.48922C2.11986 2.36756 1.6502 2.54913 1.42213 2.9299L0.134139 5.0711C-0.0951256 5.44811 -0.0252625 5.92954 0.303601 6.23449L1.592 7.43019C1.55527 7.80953 1.55528 8.19175 1.59201 8.57155L0.303725 9.76539C-0.0245352 10.0698 -0.0947095 10.5496 0.132619 10.9291L1.42167 13.0701C1.65117 13.4496 2.11865 13.6307 2.55691 13.5109L4.2405 13.0497C4.58094 13.2885 4.94474 13.495 5.32679 13.6662L5.74667 15.2782C5.85864 15.7036 6.25569 16 6.71207 16H9.28901C9.74555 16 10.1429 15.7012 10.2526 15.2761L10.653 13.7414C11.0829 13.5634 11.4915 13.3417 11.8712 13.0801L13.4414 13.5117C13.8799 13.633 14.3489 13.4514 14.5773 13.0721L15.8658 10.931C16.0937 10.5506 16.0235 10.0718 15.6954 9.76751L14.5535 8.70641C14.6089 8.23717 14.6089 7.76408 14.5535 7.29484ZM13.6937 12.5407L11.9097 12.0503C11.7491 12.0062 11.5762 12.0386 11.4447 12.1374C11.0153 12.46 10.5366 12.7195 10.0256 12.907C9.86672 12.9653 9.74748 13.0943 9.70618 13.2526L9.25027 15H6.74894L6.27665 13.1868C6.23677 13.0337 6.12389 12.9076 5.97214 12.8467C5.50605 12.6597 5.0692 12.4114 4.67408 12.1091C4.54235 12.0083 4.36796 11.9748 4.20595 12.0192L2.30633 12.5396L1.05444 10.4603L2.50121 9.11961C2.62046 9.0091 2.67779 8.85077 2.65562 8.69315C2.59098 8.23354 2.59098 7.76755 2.6556 7.30899C2.6778 7.15145 2.62059 6.99318 2.50149 6.88265L1.05546 5.54066L2.30673 3.46052L4.20595 3.98078C4.3677 4.02509 4.54181 3.99179 4.67348 3.89135C5.06945 3.5893 5.50662 3.34109 5.97214 3.15426C6.12387 3.09336 6.23674 2.96734 6.27663 2.81427L6.74945 1H9.25003L9.70727 2.74959C9.74865 2.90792 9.86799 3.0369 10.027 3.09512C10.5376 3.28213 11.0153 3.54126 11.4458 3.86464C11.5773 3.96344 11.7501 3.99579 11.9107 3.95166L13.6942 3.46144L14.9457 5.54005L13.6398 6.75159C13.518 6.86461 13.461 7.0274 13.4872 7.18804C13.5748 7.72699 13.5748 8.27401 13.4872 8.81297C13.4611 8.97346 13.5179 9.13612 13.6395 9.24913L14.9447 10.4619L13.6937 12.5407ZM7.99991 4.25049C10.159 4.25049 11.9091 5.92935 11.9091 8.00049C11.9091 10.0716 10.159 11.7505 7.99991 11.7505C5.84085 11.7505 4.09073 10.0716 4.09073 8.00049C4.09073 5.92935 5.84085 4.25049 7.99991 4.25049ZM7.99971 5.25049C6.41637 5.25049 5.13297 6.48163 5.13297 8.00049C5.13297 9.51935 6.41637 10.7505 7.99971 10.7505C9.58304 10.7505 10.8664 9.51935 10.8664 8.00049C10.8664 6.48163 9.58304 5.25049 7.99971 5.25049Z',
|
|
12204
|
+
fill: 'currentColor'
|
|
12205
|
+
}));
|
|
12206
|
+
};
|
|
12207
|
+
|
|
12208
|
+
var rootClassName$2S = 'calendar-header';
|
|
12197
12209
|
function CalendarHeader(props) {
|
|
12198
12210
|
var size = useScreenSize();
|
|
12199
12211
|
var days = useMemo(function () {
|
|
@@ -12203,16 +12215,16 @@ function CalendarHeader(props) {
|
|
|
12203
12215
|
return props.language.daysOfWeek;
|
|
12204
12216
|
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
12205
12217
|
return React.createElement("div", {
|
|
12206
|
-
className: rootClassName$
|
|
12218
|
+
className: rootClassName$2S
|
|
12207
12219
|
}, days.map(function (d, i) {
|
|
12208
12220
|
return React.createElement("div", {
|
|
12209
|
-
className: rootClassName$
|
|
12221
|
+
className: rootClassName$2S + "-day",
|
|
12210
12222
|
key: i
|
|
12211
12223
|
}, d);
|
|
12212
12224
|
}));
|
|
12213
12225
|
}
|
|
12214
12226
|
|
|
12215
|
-
var rootClassName$
|
|
12227
|
+
var rootClassName$2T = 'evento-calendario';
|
|
12216
12228
|
function CalendarEvent(props) {
|
|
12217
12229
|
var _useState = useState(props.forceExpanded || false),
|
|
12218
12230
|
expanded = _useState[0],
|
|
@@ -12241,12 +12253,12 @@ function CalendarEvent(props) {
|
|
|
12241
12253
|
return React.createElement(Fragment$1, null, "large");
|
|
12242
12254
|
case 'medium':
|
|
12243
12255
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12244
|
-
className: rootClassName$
|
|
12256
|
+
className: rootClassName$2T + "-tipo",
|
|
12245
12257
|
style: {
|
|
12246
12258
|
borderColor: props.color
|
|
12247
12259
|
}
|
|
12248
12260
|
}, props.tipoEvento), React.createElement("div", {
|
|
12249
|
-
className: rootClassName$
|
|
12261
|
+
className: rootClassName$2T + "-label"
|
|
12250
12262
|
}, React.createElement(CSSTransition, {
|
|
12251
12263
|
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
12252
12264
|
timeout: 300,
|
|
@@ -12256,26 +12268,26 @@ function CalendarEvent(props) {
|
|
|
12256
12268
|
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
12257
12269
|
animateOpacity: true
|
|
12258
12270
|
}, React.createElement(Fragment$1, null, React.createElement("span", null, props.expandedLabel), React.createElement("div", {
|
|
12259
|
-
className: rootClassName$
|
|
12271
|
+
className: rootClassName$2T + "-date-label"
|
|
12260
12272
|
}, props.expandedDate)))), React.createElement("div", {
|
|
12261
|
-
className: rootClassName$
|
|
12273
|
+
className: rootClassName$2T + "-modalidade"
|
|
12262
12274
|
}, React.createElement("div", {
|
|
12263
|
-
className: rootClassName$
|
|
12275
|
+
className: rootClassName$2T + "-icon"
|
|
12264
12276
|
}, props.icon), React.createElement("div", {
|
|
12265
|
-
className: rootClassName$
|
|
12277
|
+
className: rootClassName$2T + "-modalidade-label nunito"
|
|
12266
12278
|
}, props.iconLabel)));
|
|
12267
12279
|
case 'small':
|
|
12268
12280
|
default:
|
|
12269
12281
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12270
|
-
className: rootClassName$
|
|
12282
|
+
className: rootClassName$2T + "-icon"
|
|
12271
12283
|
}, props.icon), React.createElement("div", {
|
|
12272
|
-
className: rootClassName$
|
|
12284
|
+
className: rootClassName$2T + "-label nunito"
|
|
12273
12285
|
}, props.tipoEvento, " | ", props.label));
|
|
12274
12286
|
}
|
|
12275
12287
|
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
12276
12288
|
return React.createElement("button", {
|
|
12277
12289
|
ref: ref,
|
|
12278
|
-
className: useMergedClassNames([rootClassName$
|
|
12290
|
+
className: useMergedClassNames([rootClassName$2T, props.size, props.borderStyle]),
|
|
12279
12291
|
disabled: props.disabled,
|
|
12280
12292
|
onClick: function onClick(evt) {
|
|
12281
12293
|
if (typeof props.onClick === 'function') {
|
|
@@ -12301,10 +12313,10 @@ CalendarEvent.defaultProps = {
|
|
|
12301
12313
|
};
|
|
12302
12314
|
var CalendarEvent$1 = memo(CalendarEvent);
|
|
12303
12315
|
|
|
12304
|
-
var rootClassName$
|
|
12316
|
+
var rootClassName$2U = 'calendar-chip';
|
|
12305
12317
|
function CalendarChip(props) {
|
|
12306
12318
|
return React.createElement("button", {
|
|
12307
|
-
className: useMergedClassNames([rootClassName$
|
|
12319
|
+
className: useMergedClassNames([rootClassName$2U, 'nunito']),
|
|
12308
12320
|
onClick: props.onClick,
|
|
12309
12321
|
disabled: props.disabled,
|
|
12310
12322
|
style: {
|
|
@@ -12319,11 +12331,11 @@ CalendarChip.defaultProps = {
|
|
|
12319
12331
|
};
|
|
12320
12332
|
var CalendarChip$1 = memo(CalendarChip);
|
|
12321
12333
|
|
|
12322
|
-
var rootClassName$
|
|
12334
|
+
var rootClassName$2V = 'calendar-month-day';
|
|
12323
12335
|
function CalendarMonthDay(props) {
|
|
12324
12336
|
var _props$eventos, _props$eventos$length, _props$eventos2, _props$eventos$length2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
12325
12337
|
var classNames = useMemo(function () {
|
|
12326
|
-
return getMergedClassNames([rootClassName$
|
|
12338
|
+
return getMergedClassNames([rootClassName$2V, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
12327
12339
|
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
12328
12340
|
var date = new Date();
|
|
12329
12341
|
date.setDate(date.getDate() - 1);
|
|
@@ -12337,9 +12349,9 @@ function CalendarMonthDay(props) {
|
|
|
12337
12349
|
}
|
|
12338
12350
|
}
|
|
12339
12351
|
}, React.createElement("div", {
|
|
12340
|
-
className: rootClassName$
|
|
12352
|
+
className: rootClassName$2V + "-label-line"
|
|
12341
12353
|
}, React.createElement("div", {
|
|
12342
|
-
className: rootClassName$
|
|
12354
|
+
className: rootClassName$2V + "-day nunito",
|
|
12343
12355
|
onClick: function onClick(evt) {
|
|
12344
12356
|
if (props.pocket && !props.disabled && typeof props.onPlusButtonClick === 'function') {
|
|
12345
12357
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -12360,7 +12372,7 @@ function CalendarMonthDay(props) {
|
|
|
12360
12372
|
},
|
|
12361
12373
|
disabled: props.disabled
|
|
12362
12374
|
}) : undefined)), !props.pocket ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12363
|
-
className: rootClassName$
|
|
12375
|
+
className: rootClassName$2V + "-eventos"
|
|
12364
12376
|
}, (_props$eventos4 = props.eventos) === null || _props$eventos4 === void 0 ? void 0 : (_props$eventos4$slice = _props$eventos4.slice(0, 2)) === null || _props$eventos4$slice === void 0 ? void 0 : _props$eventos4$slice.map(function (e) {
|
|
12365
12377
|
return React.createElement(CalendarEvent$1, Object.assign({
|
|
12366
12378
|
key: e.id
|
|
@@ -12369,7 +12381,7 @@ function CalendarMonthDay(props) {
|
|
|
12369
12381
|
}));
|
|
12370
12382
|
})), props.showAddButton ? React.createElement("button", {
|
|
12371
12383
|
disabled: props.disabledPrevAddButton ? props.day < date ? true : false : false,
|
|
12372
|
-
className: rootClassName$
|
|
12384
|
+
className: rootClassName$2V + "-button",
|
|
12373
12385
|
onClick: function onClick(evt) {
|
|
12374
12386
|
if (typeof props.onAddButtonClick === 'function') {
|
|
12375
12387
|
var _props$onAddButtonCli;
|
|
@@ -12381,7 +12393,7 @@ function CalendarMonthDay(props) {
|
|
|
12381
12393
|
}
|
|
12382
12394
|
var CalendarMonthDay$1 = memo(CalendarMonthDay);
|
|
12383
12395
|
|
|
12384
|
-
var rootClassName$
|
|
12396
|
+
var rootClassName$2W = 'calendar-days';
|
|
12385
12397
|
function CalendarDays(props) {
|
|
12386
12398
|
var today = useMemo(function () {
|
|
12387
12399
|
return new Date();
|
|
@@ -12399,7 +12411,7 @@ function CalendarDays(props) {
|
|
|
12399
12411
|
return false;
|
|
12400
12412
|
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
12401
12413
|
return React.createElement("div", {
|
|
12402
|
-
className: rootClassName$
|
|
12414
|
+
className: rootClassName$2W
|
|
12403
12415
|
}, days.map(function (d) {
|
|
12404
12416
|
var _props$eventos;
|
|
12405
12417
|
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
@@ -12424,8 +12436,8 @@ function CalendarDays(props) {
|
|
|
12424
12436
|
}
|
|
12425
12437
|
var CalendarDays$1 = memo(CalendarDays);
|
|
12426
12438
|
|
|
12427
|
-
var _excluded$
|
|
12428
|
-
var rootClassName$
|
|
12439
|
+
var _excluded$r = ["language", "visao", "referencia"];
|
|
12440
|
+
var rootClassName$2X = 'calendar';
|
|
12429
12441
|
function Calendar(_ref) {
|
|
12430
12442
|
var _ref$language = _ref.language,
|
|
12431
12443
|
language = _ref$language === void 0 ? ptbrCalendarLanguage : _ref$language,
|
|
@@ -12433,7 +12445,7 @@ function Calendar(_ref) {
|
|
|
12433
12445
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12434
12446
|
_ref$referencia = _ref.referencia,
|
|
12435
12447
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12436
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12448
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
12437
12449
|
var id = useMemo(getUniqueKey, []);
|
|
12438
12450
|
var _useState = useState(false),
|
|
12439
12451
|
pocket = _useState[0],
|
|
@@ -12441,7 +12453,7 @@ function Calendar(_ref) {
|
|
|
12441
12453
|
var pocketRef = useRef(pocket);
|
|
12442
12454
|
pocketRef.current = pocket;
|
|
12443
12455
|
var classNames = useMemo(function () {
|
|
12444
|
-
return getMergedClassNames([rootClassName$
|
|
12456
|
+
return getMergedClassNames([rootClassName$2X, props.loading ? 'loading' : '']);
|
|
12445
12457
|
}, [props.loading]);
|
|
12446
12458
|
var cbResize = useCallback(function (evt) {
|
|
12447
12459
|
if (pocketRef.current) {
|
|
@@ -12517,7 +12529,7 @@ function FormattedText(text) {
|
|
|
12517
12529
|
}));
|
|
12518
12530
|
}
|
|
12519
12531
|
|
|
12520
|
-
var rootClassName$
|
|
12532
|
+
var rootClassName$2Y = 'scroll-arrow-overflow';
|
|
12521
12533
|
function ScrollArrowOverflow(props) {
|
|
12522
12534
|
var ref = createRef();
|
|
12523
12535
|
var atualRef = useRef(0);
|
|
@@ -12589,9 +12601,9 @@ function ScrollArrowOverflow(props) {
|
|
|
12589
12601
|
};
|
|
12590
12602
|
}, []);
|
|
12591
12603
|
return React.createElement("div", {
|
|
12592
|
-
className: useMergedClassNames([rootClassName$
|
|
12604
|
+
className: useMergedClassNames([rootClassName$2Y, props.arrows])
|
|
12593
12605
|
}, React.createElement("div", {
|
|
12594
|
-
className: rootClassName$
|
|
12606
|
+
className: rootClassName$2Y + "-navigation"
|
|
12595
12607
|
}, React.createElement(IconButton$1, {
|
|
12596
12608
|
disabled: start,
|
|
12597
12609
|
icon: React.createElement(CircleArrowLeft, null),
|
|
@@ -12606,7 +12618,7 @@ function ScrollArrowOverflow(props) {
|
|
|
12606
12618
|
}
|
|
12607
12619
|
})), React.createElement("div", {
|
|
12608
12620
|
ref: ref,
|
|
12609
|
-
className: rootClassName$
|
|
12621
|
+
className: rootClassName$2Y + "-overflow"
|
|
12610
12622
|
}, props.children));
|
|
12611
12623
|
}
|
|
12612
12624
|
ScrollArrowOverflow.defaultProps = {
|
|
@@ -12615,26 +12627,26 @@ ScrollArrowOverflow.defaultProps = {
|
|
|
12615
12627
|
};
|
|
12616
12628
|
var ScrollArrowOverflow$1 = memo(ScrollArrowOverflow);
|
|
12617
12629
|
|
|
12618
|
-
var rootClassName$
|
|
12630
|
+
var rootClassName$2Z = 'hour-events';
|
|
12619
12631
|
function HourEvents(props) {
|
|
12620
12632
|
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
12621
12633
|
var _useState = useState(props.defaultOpened),
|
|
12622
12634
|
opened = _useState[0],
|
|
12623
12635
|
setOpened = _useState[1];
|
|
12624
12636
|
return React.createElement("div", {
|
|
12625
|
-
className: rootClassName$
|
|
12637
|
+
className: rootClassName$2Z
|
|
12626
12638
|
}, React.createElement("div", {
|
|
12627
|
-
className: rootClassName$
|
|
12639
|
+
className: rootClassName$2Z + "-first-line"
|
|
12628
12640
|
}, React.createElement("div", {
|
|
12629
|
-
className: rootClassName$
|
|
12641
|
+
className: rootClassName$2Z + "-hour"
|
|
12630
12642
|
}, props.hour), React.createElement("div", {
|
|
12631
|
-
className: rootClassName$
|
|
12643
|
+
className: rootClassName$2Z + "-line"
|
|
12632
12644
|
}), !props.events || !props.events.length ? React.createElement("div", {
|
|
12633
|
-
className: rootClassName$
|
|
12645
|
+
className: rootClassName$2Z + "-no-events nunito"
|
|
12634
12646
|
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React.createElement("div", {
|
|
12635
|
-
className: rootClassName$
|
|
12647
|
+
className: rootClassName$2Z + "-counter nunito"
|
|
12636
12648
|
}, (_props$language2 = props.language) === null || _props$language2 === void 0 ? void 0 : _props$language2.events((_props$events = props.events) === null || _props$events === void 0 ? void 0 : _props$events.length))), (_props$events2 = props.events) !== null && _props$events2 !== void 0 && _props$events2.length ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12637
|
-
className: rootClassName$
|
|
12649
|
+
className: rootClassName$2Z + "-toggle"
|
|
12638
12650
|
}, React.createElement(Button$1, {
|
|
12639
12651
|
theme: ButtonThemes.DefaultPrimary,
|
|
12640
12652
|
onClick: function onClick() {
|
|
@@ -12669,7 +12681,7 @@ HourEvents.defaultProps = {
|
|
|
12669
12681
|
};
|
|
12670
12682
|
var HourEvents$1 = memo(HourEvents);
|
|
12671
12683
|
|
|
12672
|
-
var rootClassName$
|
|
12684
|
+
var rootClassName$2_ = 'inline-month-picker';
|
|
12673
12685
|
function InlineMonthPicker(props) {
|
|
12674
12686
|
var _props$labelGen;
|
|
12675
12687
|
var d = new Date(props.value.getTime());
|
|
@@ -12681,13 +12693,13 @@ function InlineMonthPicker(props) {
|
|
|
12681
12693
|
}
|
|
12682
12694
|
};
|
|
12683
12695
|
return React.createElement("div", {
|
|
12684
|
-
className: rootClassName$
|
|
12696
|
+
className: rootClassName$2_
|
|
12685
12697
|
}, React.createElement("div", {
|
|
12686
|
-
className: rootClassName$
|
|
12698
|
+
className: rootClassName$2_ + "-icon"
|
|
12687
12699
|
}, React.createElement(CalendarCheckIcon, null)), React.createElement("div", {
|
|
12688
|
-
className: rootClassName$
|
|
12700
|
+
className: rootClassName$2_ + "-label"
|
|
12689
12701
|
}, (_props$labelGen = props.labelGen) === null || _props$labelGen === void 0 ? void 0 : _props$labelGen.call(props, props.value)), React.createElement("div", {
|
|
12690
|
-
className: rootClassName$
|
|
12702
|
+
className: rootClassName$2_ + "-actions"
|
|
12691
12703
|
}, React.createElement(IconButton$1, {
|
|
12692
12704
|
icon: React.createElement(ChevronArrowLeftIcon, null),
|
|
12693
12705
|
onClick: function onClick() {
|
|
@@ -12713,7 +12725,113 @@ InlineMonthPicker.defaultProps = {
|
|
|
12713
12725
|
};
|
|
12714
12726
|
var InlineMonthPicker$1 = memo(InlineMonthPicker);
|
|
12715
12727
|
|
|
12716
|
-
var rootClassName$
|
|
12728
|
+
var rootClassName$2$ = 'component-notification-panel';
|
|
12729
|
+
function NotificationPanel(_ref) {
|
|
12730
|
+
var opened = _ref.opened,
|
|
12731
|
+
setOpened = _ref.setOpened,
|
|
12732
|
+
icon = _ref.children,
|
|
12733
|
+
_ref$notifications = _ref.notifications,
|
|
12734
|
+
notifications = _ref$notifications === void 0 ? [] : _ref$notifications,
|
|
12735
|
+
title = _ref.title,
|
|
12736
|
+
settingsButton = _ref.settingsButton,
|
|
12737
|
+
loading = _ref.loading,
|
|
12738
|
+
paginator = _ref.paginator;
|
|
12739
|
+
var _useState = useState(null),
|
|
12740
|
+
panelRef = _useState[0],
|
|
12741
|
+
setPanelRef = _useState[1];
|
|
12742
|
+
var _useState2 = useState(null),
|
|
12743
|
+
anchorRef = _useState2[0],
|
|
12744
|
+
setAnchorRef = _useState2[1];
|
|
12745
|
+
var headerRef = React.createRef();
|
|
12746
|
+
var footerRef = React.createRef();
|
|
12747
|
+
var bodyRef = React.createRef();
|
|
12748
|
+
useLayoutEffect(function () {
|
|
12749
|
+
var _headerRef$current$cl, _headerRef$current, _footerRef$current$cl, _footerRef$current, _bodyRef$current;
|
|
12750
|
+
var mh = panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight;
|
|
12751
|
+
var headerHeight = (_headerRef$current$cl = (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.clientHeight) != null ? _headerRef$current$cl : 0;
|
|
12752
|
+
var footerHeight = (_footerRef$current$cl = (_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.clientHeight) != null ? _footerRef$current$cl : 0;
|
|
12753
|
+
(_bodyRef$current = bodyRef.current) === null || _bodyRef$current === void 0 ? void 0 : _bodyRef$current.style.setProperty('max-height', mh && parseFloat(mh) > 20 ? parseFloat(mh) - headerHeight - footerHeight - 20 + "px" : '80vh');
|
|
12754
|
+
}, [bodyRef, footerRef, headerRef, panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight]);
|
|
12755
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
12756
|
+
stateOpened: [opened, setOpened],
|
|
12757
|
+
elements: {
|
|
12758
|
+
floating: panelRef,
|
|
12759
|
+
reference: anchorRef
|
|
12760
|
+
},
|
|
12761
|
+
strategy: 'fixed',
|
|
12762
|
+
matchWidth: false,
|
|
12763
|
+
placement: 'bottom-end',
|
|
12764
|
+
offset: 4
|
|
12765
|
+
}),
|
|
12766
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
12767
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
12768
|
+
useEvent([{
|
|
12769
|
+
event: 'keydown',
|
|
12770
|
+
handler: function handler(e) {
|
|
12771
|
+
if (opened && 'key' in e && e.key === 'Escape') {
|
|
12772
|
+
setOpened(false);
|
|
12773
|
+
e.preventDefault();
|
|
12774
|
+
e.stopPropagation();
|
|
12775
|
+
}
|
|
12776
|
+
}
|
|
12777
|
+
}]);
|
|
12778
|
+
useOutsideClick([{
|
|
12779
|
+
current: panelRef
|
|
12780
|
+
}, {
|
|
12781
|
+
current: anchorRef
|
|
12782
|
+
}], function (isInside) {
|
|
12783
|
+
if (opened && !isInside) setOpened(false);
|
|
12784
|
+
});
|
|
12785
|
+
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12786
|
+
ref: function ref(e) {
|
|
12787
|
+
return setAnchorRef(e);
|
|
12788
|
+
}
|
|
12789
|
+
}, icon), isMounted && React.createElement("div", {
|
|
12790
|
+
ref: function ref(e) {
|
|
12791
|
+
return setPanelRef(e);
|
|
12792
|
+
},
|
|
12793
|
+
className: rootClassName$2$,
|
|
12794
|
+
style: _extends({}, panelStyles)
|
|
12795
|
+
}, React.createElement("div", {
|
|
12796
|
+
className: rootClassName$2$ + "-header",
|
|
12797
|
+
ref: headerRef
|
|
12798
|
+
}, React.createElement(Bell16Icon, {
|
|
12799
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12800
|
+
}), React.createElement("div", {
|
|
12801
|
+
className: rootClassName$2$ + "-header-title"
|
|
12802
|
+
}, title), loading && React.createElement(PercentLoaderIcon, {
|
|
12803
|
+
indefinido: true,
|
|
12804
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12805
|
+
}), settingsButton), React.createElement("div", {
|
|
12806
|
+
className: rootClassName$2$ + "-body scroll-white",
|
|
12807
|
+
ref: bodyRef
|
|
12808
|
+
}, notifications.map(function (n, i) {
|
|
12809
|
+
return React.createElement("div", {
|
|
12810
|
+
key: n.text + "-" + i,
|
|
12811
|
+
className: rootClassName$2$ + "-noti",
|
|
12812
|
+
onClick: n.onClick
|
|
12813
|
+
}, React.createElement("div", {
|
|
12814
|
+
className: rootClassName$2$ + "-noti-left"
|
|
12815
|
+
}, React.createElement("div", {
|
|
12816
|
+
className: rootClassName$2$ + "-noti-head"
|
|
12817
|
+
}, n.alert && React.createElement("span", {
|
|
12818
|
+
className: rootClassName$2$ + "-noti-alert"
|
|
12819
|
+
}), React.createElement("div", {
|
|
12820
|
+
className: rootClassName$2$ + "-noti-title"
|
|
12821
|
+
}, n.title)), n.text && React.createElement("div", {
|
|
12822
|
+
className: rootClassName$2$ + "-noti-text"
|
|
12823
|
+
}, n.text), n.date && React.createElement("div", {
|
|
12824
|
+
className: rootClassName$2$ + "-noti-date"
|
|
12825
|
+
}, n.date)), React.createElement("div", {
|
|
12826
|
+
className: rootClassName$2$ + "-noti-right"
|
|
12827
|
+
}, React.createElement(CircleArrowRight, null)));
|
|
12828
|
+
})), Boolean(paginator) && React.createElement("div", {
|
|
12829
|
+
className: rootClassName$2$ + "-footer",
|
|
12830
|
+
ref: footerRef
|
|
12831
|
+
}, paginator)));
|
|
12832
|
+
}
|
|
12833
|
+
|
|
12834
|
+
var rootClassName$30 = 'qrcode';
|
|
12717
12835
|
function QRCode(props) {
|
|
12718
12836
|
var ref = createRef();
|
|
12719
12837
|
useEffect(function () {
|
|
@@ -12732,7 +12850,7 @@ function QRCode(props) {
|
|
|
12732
12850
|
});
|
|
12733
12851
|
}, [props, ref]);
|
|
12734
12852
|
var className = useMemo(function () {
|
|
12735
|
-
return getMergedClassNames([rootClassName$
|
|
12853
|
+
return getMergedClassNames([rootClassName$30, props.button ? 'button' : '']);
|
|
12736
12854
|
}, [props.button]);
|
|
12737
12855
|
return React.createElement("div", {
|
|
12738
12856
|
className: className,
|
|
@@ -12753,10 +12871,10 @@ QRCode.defaultProps = {
|
|
|
12753
12871
|
};
|
|
12754
12872
|
var QRCode$1 = memo(QRCode);
|
|
12755
12873
|
|
|
12756
|
-
var rootClassName$
|
|
12874
|
+
var rootClassName$31 = 'icon-component';
|
|
12757
12875
|
var DecreaseIcon = function DecreaseIcon() {
|
|
12758
12876
|
return React.createElement("svg", {
|
|
12759
|
-
className: rootClassName$
|
|
12877
|
+
className: rootClassName$31,
|
|
12760
12878
|
viewBox: '0 0 24 24',
|
|
12761
12879
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
12762
12880
|
}, React.createElement("path", {
|
|
@@ -12767,12 +12885,12 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
12767
12885
|
}));
|
|
12768
12886
|
};
|
|
12769
12887
|
|
|
12770
|
-
var _excluded$
|
|
12771
|
-
var rootClassName$
|
|
12888
|
+
var _excluded$s = ["type"];
|
|
12889
|
+
var rootClassName$32 = 'component-table-left-checkbox-with-label';
|
|
12772
12890
|
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12773
12891
|
var _props$spanProps2, _props$spanProps3;
|
|
12774
12892
|
var type = _ref.type,
|
|
12775
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12893
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12776
12894
|
var style = useMemo(function () {
|
|
12777
12895
|
var _props$spanProps$styl, _props$spanProps;
|
|
12778
12896
|
var style = _extends({
|
|
@@ -12787,13 +12905,13 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12787
12905
|
return style;
|
|
12788
12906
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
12789
12907
|
return React.createElement("div", {
|
|
12790
|
-
className: getMergedClassNames([rootClassName$
|
|
12908
|
+
className: getMergedClassNames([rootClassName$32, props.w100 ? 'w-100' : ''])
|
|
12791
12909
|
}, React.createElement("span", {
|
|
12792
|
-
className: rootClassName$
|
|
12910
|
+
className: rootClassName$32 + "-checkbox-wrapper",
|
|
12793
12911
|
"tooltip-position": props['tooltip-position'],
|
|
12794
12912
|
"tooltip-text": props['tooltip-text']
|
|
12795
12913
|
}, type === 'addRemove' ? React.createElement(IconButton$1, {
|
|
12796
|
-
className: getMergedClassNames([rootClassName$
|
|
12914
|
+
className: getMergedClassNames([rootClassName$32 + "-add-remove-button", props.value ? rootClassName$32 + "-danger" : '']),
|
|
12797
12915
|
icon: props.value ? React.createElement(DecreaseIcon, null) : React.createElement(AddIcon, null),
|
|
12798
12916
|
disabled: props.disabled,
|
|
12799
12917
|
onClick: function onClick(evt) {
|
|
@@ -12807,7 +12925,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12807
12925
|
onChange: props.onChange,
|
|
12808
12926
|
theme: props.theme
|
|
12809
12927
|
})), React.createElement("span", Object.assign({}, (_props$spanProps2 = props.spanProps) != null ? _props$spanProps2 : {}, {
|
|
12810
|
-
className: getMergedClassNames([rootClassName$
|
|
12928
|
+
className: getMergedClassNames([rootClassName$32 + "-label-wrapper", ((_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.className) || '']),
|
|
12811
12929
|
style: style,
|
|
12812
12930
|
onClick: function onClick(evt) {
|
|
12813
12931
|
var _props$spanProps4, _props$spanProps4$onC;
|
|
@@ -12820,7 +12938,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12820
12938
|
}), props.label));
|
|
12821
12939
|
};
|
|
12822
12940
|
|
|
12823
|
-
var rootClassName$
|
|
12941
|
+
var rootClassName$33 = 'tooltip-element';
|
|
12824
12942
|
function TooltipElement(_ref) {
|
|
12825
12943
|
var label = _ref.label,
|
|
12826
12944
|
_ref$placement = _ref.placement,
|
|
@@ -12879,14 +12997,14 @@ function TooltipElement(_ref) {
|
|
|
12879
12997
|
isMounted = _useTransitionStyles.isMounted,
|
|
12880
12998
|
transitionStyles = _useTransitionStyles.styles;
|
|
12881
12999
|
return React.createElement(Fragment$1, null, React.createElement("div", Object.assign({
|
|
12882
|
-
className: rootClassName$
|
|
13000
|
+
className: rootClassName$33 + "-reference",
|
|
12883
13001
|
ref: refs.setReference
|
|
12884
13002
|
}, getReferenceProps(wrapperProps)), children), React.createElement(FloatingPortal, null, isMounted && React.createElement("div", Object.assign({
|
|
12885
|
-
className: rootClassName$
|
|
13003
|
+
className: rootClassName$33 + "-tooltip",
|
|
12886
13004
|
ref: refs.setFloating,
|
|
12887
13005
|
style: _extends({}, floatingStyles, transitionStyles)
|
|
12888
13006
|
}, getFloatingProps()), React.createElement("span", {
|
|
12889
|
-
className: rootClassName$
|
|
13007
|
+
className: rootClassName$33 + "-label"
|
|
12890
13008
|
}, label), React.createElement(FloatingArrow, {
|
|
12891
13009
|
ref: arrowRef,
|
|
12892
13010
|
context: context,
|
|
@@ -12894,8 +13012,8 @@ function TooltipElement(_ref) {
|
|
|
12894
13012
|
}))));
|
|
12895
13013
|
}
|
|
12896
13014
|
|
|
12897
|
-
var _excluded$
|
|
12898
|
-
var rootClassName$
|
|
13015
|
+
var _excluded$t = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
13016
|
+
var rootClassName$34 = 'typography';
|
|
12899
13017
|
var Typography = forwardRef(function (_ref, ref) {
|
|
12900
13018
|
var _ref$className = _ref.className,
|
|
12901
13019
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -12914,8 +13032,8 @@ var Typography = forwardRef(function (_ref, ref) {
|
|
|
12914
13032
|
} : _ref$format,
|
|
12915
13033
|
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
12916
13034
|
children = _ref.children,
|
|
12917
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12918
|
-
var classNames = useMergedClassNames([rootClassName$
|
|
13035
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
13036
|
+
var classNames = useMergedClassNames([rootClassName$34 + "-tp", focus ? rootClassName$34 + "-focus" : '', color, variant, className]);
|
|
12919
13037
|
var tag = useMemo(function () {
|
|
12920
13038
|
switch (variant) {
|
|
12921
13039
|
case 'body':
|
|
@@ -43979,7 +44097,7 @@ function useHTMLShare() {
|
|
|
43979
44097
|
};
|
|
43980
44098
|
}
|
|
43981
44099
|
|
|
43982
|
-
var rootClassName$
|
|
44100
|
+
var rootClassName$35 = 'comp-modal-manager';
|
|
43983
44101
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
43984
44102
|
var hackFocus$1 = function hackFocus() {
|
|
43985
44103
|
var tmp = document.createElement('input');
|
|
@@ -44047,13 +44165,13 @@ function useModalManager() {
|
|
|
44047
44165
|
return [React.createElement(React.Fragment, {
|
|
44048
44166
|
key: 1
|
|
44049
44167
|
}, React.createElement(TransitionGroup, {
|
|
44050
|
-
className: rootClassName$
|
|
44168
|
+
className: rootClassName$35 + "-modals"
|
|
44051
44169
|
}, arrayOfModal.map(function (obj) {
|
|
44052
44170
|
var _obj$props2, _obj$props3;
|
|
44053
44171
|
var ModalComponent = React.createElement(obj.component, obj.props);
|
|
44054
44172
|
return React.createElement(CSSTransition, {
|
|
44055
44173
|
timeout: 300,
|
|
44056
|
-
classNames: rootClassName$
|
|
44174
|
+
classNames: rootClassName$35 + "-mask",
|
|
44057
44175
|
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
44058
44176
|
unmountOnExit: true
|
|
44059
44177
|
}, React.createElement(ModalMask, {
|
|
@@ -44324,7 +44442,7 @@ function useTimeElapsed(timeLeftInSeconds, callBackZero) {
|
|
|
44324
44442
|
return timeToReturn;
|
|
44325
44443
|
}
|
|
44326
44444
|
|
|
44327
|
-
var rootClassName$
|
|
44445
|
+
var rootClassName$36 = 'comp-toast-manager';
|
|
44328
44446
|
var count$1 = 0;
|
|
44329
44447
|
function useToastManager(props) {
|
|
44330
44448
|
var _props$max;
|
|
@@ -44344,6 +44462,7 @@ function useToastManager(props) {
|
|
|
44344
44462
|
return a.id !== id;
|
|
44345
44463
|
});
|
|
44346
44464
|
setArrayOfToast(arr);
|
|
44465
|
+
toastsRef.current = arr;
|
|
44347
44466
|
};
|
|
44348
44467
|
var showToast = useCallback(function (toast) {
|
|
44349
44468
|
var id = "toaster-" + count$1;
|
|
@@ -44369,17 +44488,17 @@ function useToastManager(props) {
|
|
|
44369
44488
|
toastsRef.current = [];
|
|
44370
44489
|
}, []);
|
|
44371
44490
|
var classNames = useMemo(function () {
|
|
44372
|
-
return getMergedClassNames([rootClassName$
|
|
44491
|
+
return getMergedClassNames([rootClassName$36 + "-toasts", rootClassName$36 + "-" + verticalPosition, rootClassName$36 + "-" + horizontalPosition, reverse ? rootClassName$36 + "-reverse" : '', animateSize ? rootClassName$36 + "-animate-size" : '']);
|
|
44373
44492
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
44374
44493
|
useLayoutEffect(function () {
|
|
44375
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
44494
|
+
var wrapper = document.querySelector("." + rootClassName$36 + "-toasts");
|
|
44376
44495
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
44377
44496
|
var somaDasAlturas = 0;
|
|
44378
44497
|
if (verticalPosition === 'top' && !reverse) {
|
|
44379
44498
|
somaDasAlturas = 12;
|
|
44380
44499
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
44381
44500
|
var el = wrapper.children[i];
|
|
44382
|
-
if (!el.classList.contains(rootClassName$
|
|
44501
|
+
if (!el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44383
44502
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44384
44503
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
44385
44504
|
}
|
|
@@ -44387,7 +44506,7 @@ function useToastManager(props) {
|
|
|
44387
44506
|
} else if (verticalPosition === 'top') {
|
|
44388
44507
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
44389
44508
|
var _el = wrapper.children[_i];
|
|
44390
|
-
if (!_el.classList.contains(rootClassName$
|
|
44509
|
+
if (!_el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44391
44510
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
44392
44511
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44393
44512
|
}
|
|
@@ -44395,7 +44514,7 @@ function useToastManager(props) {
|
|
|
44395
44514
|
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
44396
44515
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
44397
44516
|
var _el2 = wrapper.children[_i2];
|
|
44398
|
-
if (!_el2.classList.contains(rootClassName$
|
|
44517
|
+
if (!_el2.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44399
44518
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
44400
44519
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44401
44520
|
}
|
|
@@ -44404,7 +44523,7 @@ function useToastManager(props) {
|
|
|
44404
44523
|
somaDasAlturas = 12;
|
|
44405
44524
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
44406
44525
|
var _el3 = wrapper.children[_i3];
|
|
44407
|
-
if (!_el3.classList.contains(rootClassName$
|
|
44526
|
+
if (!_el3.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44408
44527
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44409
44528
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
44410
44529
|
}
|
|
@@ -44419,11 +44538,11 @@ function useToastManager(props) {
|
|
|
44419
44538
|
}, arrayOfToast.map(function (toast) {
|
|
44420
44539
|
return React.createElement(CSSTransition, {
|
|
44421
44540
|
timeout: 300,
|
|
44422
|
-
classNames: rootClassName$
|
|
44541
|
+
classNames: rootClassName$36 + "-toast",
|
|
44423
44542
|
key: toast.id,
|
|
44424
44543
|
unmountOnExit: true
|
|
44425
44544
|
}, React.createElement("div", {
|
|
44426
|
-
className: rootClassName$
|
|
44545
|
+
className: rootClassName$36 + "-toastzin"
|
|
44427
44546
|
}, React.createElement(Toast, {
|
|
44428
44547
|
theme: toast.theme,
|
|
44429
44548
|
label: toast.label,
|
|
@@ -44451,7 +44570,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44451
44570
|
return [value, setValue, validation(value)];
|
|
44452
44571
|
}
|
|
44453
44572
|
|
|
44454
|
-
var _excluded$
|
|
44573
|
+
var _excluded$u = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44455
44574
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44456
44575
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44457
44576
|
function AlertModal(_ref) {
|
|
@@ -44461,7 +44580,7 @@ function AlertModal(_ref) {
|
|
|
44461
44580
|
onConfirm = _ref.onConfirm,
|
|
44462
44581
|
_ref$showIcons = _ref.showIcons,
|
|
44463
44582
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44464
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44583
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
44465
44584
|
var _useState = useState(false),
|
|
44466
44585
|
loading = _useState[0],
|
|
44467
44586
|
setLoading = _useState[1];
|
|
@@ -44594,5 +44713,5 @@ var getStatusClassName = function getStatusClassName(status) {
|
|
|
44594
44713
|
};
|
|
44595
44714
|
var STATUS_PAUTA = [STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_LIBERADA, STATUS_PAUTA_ENCERRADA];
|
|
44596
44715
|
|
|
44597
|
-
export { ATMIcon, Accordion, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddIcon as AddCircleIcon, AddIcon, AgencyIcon, AlertIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiasIcon, BackOfficeIcon, Banner, BarChartIcon, BeeIcon, BigBlockButton, BigPlayIcon, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Calendar$1 as Calendar, CalendarCheckIcon, CalendarEvent$1 as CalendarEvent, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, Chip$1 as Chip, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, ControlLabel$1 as ControlLabel, ControlLabelPosition, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, DropdownSelector$1 as DropdownSelector, EditIcon, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileTypes, FileUpload, FilesIcon, FilterIcon, FloatingPanel$1 as FloatingPanel, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FormattedText, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSeparator, HeaderType, HomeIcon, HourEvents$1 as HourEvents, IconButton$1 as IconButton, IconButtonType, ImageTypes, Information, InformationIcon, InlineMonthPicker$1 as InlineMonthPicker, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftControlWithLabel as LeftCheckboxWithLabel, LeftControlWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, MiniInformationIcon, Modal, ModalManager, ModalSizes, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotebookIcon, Notification, NotificationPosition, NotificationType, OptionsIcon, PageSubTitle, PageTitle, Pagination, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PhonePlusIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, ScreenSize, ScrollArrowOverflow$1 as ScrollArrowOverflow, Search$1 as Search, SearchIcon, Select$1 as Select, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipElement, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, Typography, UnderlineIcon, UndoIcon, UserIcon, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, stringToReactElement, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useHTMLShare, useModalManager, useOutsideClick, usePagination, useProgressiveCount, usePublicMenuList, useScreenSize, useScrollTo, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
|
|
44716
|
+
export { ATMIcon, Accordion, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddIcon as AddCircleIcon, AddIcon, AgencyIcon, AlertIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiasIcon, BackOfficeIcon, Banner, BarChartIcon, BeeIcon, Bell16Icon, BellIcon, BigBlockButton, BigPlayIcon, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Browser, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Calendar$1 as Calendar, CalendarCheckIcon, CalendarEvent$1 as CalendarEvent, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, Chip$1 as Chip, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, ControlLabel$1 as ControlLabel, ControlLabelPosition, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, DropdownSelector$1 as DropdownSelector, EditIcon, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileTypes, FileUpload, FilesIcon, FilterIcon, FloatingPanel$1 as FloatingPanel, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FormattedText, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSeparator, HeaderType, HomeIcon, HourEvents$1 as HourEvents, IconButton$1 as IconButton, IconButtonType, ImageTypes, Information, InformationIcon, InlineMonthPicker$1 as InlineMonthPicker, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftControlWithLabel as LeftCheckboxWithLabel, LeftControlWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, MiniInformationIcon, Modal, ModalManager, ModalSizes, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotebookIcon, Notification, NotificationPanel, NotificationPosition, NotificationType, OS, OptionsIcon, PageSubTitle, PageTitle, Pagination, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PhonePlusIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, ScreenSize, ScrollArrowOverflow$1 as ScrollArrowOverflow, Search$1 as Search, SearchIcon, Select$1 as Select, Settings16Icon, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipElement, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, Typography, UnderlineIcon, UndoIcon, UserIcon, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, stringToReactElement, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useEvent, useFloatingPanel, useHTMLShare, useModalManager, useOutsideClick, usePagination, useProgressiveCount, usePublicMenuList, useScreenSize, useScrollTo, useStorageState, useSystemInfo, useTimeElapsed, useToastManager, useValidatedState };
|
|
44598
44717
|
//# sourceMappingURL=index.modern.js.map
|