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.js
CHANGED
|
@@ -6,9 +6,9 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
6
6
|
var chart_js = require('chart.js');
|
|
7
7
|
var moment = _interopDefault(require('moment'));
|
|
8
8
|
var DOMPurify = _interopDefault(require('dompurify'));
|
|
9
|
+
var react = require('@floating-ui/react');
|
|
9
10
|
var Sortable = _interopDefault(require('sortablejs'));
|
|
10
11
|
var QR = _interopDefault(require('qrcode'));
|
|
11
|
-
var react = require('@floating-ui/react');
|
|
12
12
|
var html2canvas = _interopDefault(require('html2canvas'));
|
|
13
13
|
var jspdf = require('jspdf');
|
|
14
14
|
|
|
@@ -145,37 +145,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
145
145
|
}
|
|
146
146
|
return target;
|
|
147
147
|
}
|
|
148
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
149
|
-
if (!o) return;
|
|
150
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
151
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
152
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
153
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
154
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
155
|
-
}
|
|
156
|
-
function _arrayLikeToArray(arr, len) {
|
|
157
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
158
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
159
|
-
return arr2;
|
|
160
|
-
}
|
|
161
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
162
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
163
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
164
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
165
|
-
if (it) o = it;
|
|
166
|
-
var i = 0;
|
|
167
|
-
return function () {
|
|
168
|
-
if (i >= o.length) return {
|
|
169
|
-
done: true
|
|
170
|
-
};
|
|
171
|
-
return {
|
|
172
|
-
done: false,
|
|
173
|
-
value: o[i++]
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
178
|
-
}
|
|
179
148
|
|
|
180
149
|
var getMergedClassNames = function getMergedClassNames(arr) {
|
|
181
150
|
return arr.filter(function (el) {
|
|
@@ -200,12 +169,6 @@ var isMobile = function isMobile() {
|
|
|
200
169
|
return navigator.userAgent.match(toMatchItem);
|
|
201
170
|
});
|
|
202
171
|
};
|
|
203
|
-
var isiPhone = function isiPhone() {
|
|
204
|
-
var toMatch = [/iPhone/i, /iPad/i, /iPod/i];
|
|
205
|
-
return toMatch.some(function (toMatchItem) {
|
|
206
|
-
return navigator.userAgent.match(toMatchItem);
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
172
|
var Interval = /*#__PURE__*/function () {
|
|
210
173
|
function Interval(callback, delay) {
|
|
211
174
|
var _this = this;
|
|
@@ -246,34 +209,33 @@ var Interval = /*#__PURE__*/function () {
|
|
|
246
209
|
};
|
|
247
210
|
return Interval;
|
|
248
211
|
}();
|
|
249
|
-
var getParents = function getParents(anchor) {
|
|
250
|
-
if (!anchor) return [];
|
|
251
|
-
if (anchor.id === 'root' || !(anchor !== null && anchor !== void 0 && anchor.parentElement)) {
|
|
252
|
-
return [anchor];
|
|
253
|
-
}
|
|
254
|
-
return [anchor].concat(getParents(anchor.parentElement));
|
|
255
|
-
};
|
|
256
212
|
|
|
213
|
+
var _excluded = ["value", "hideCheck", "indefinido", "className"];
|
|
257
214
|
var rootClassName$7 = 'percent-loader-icon';
|
|
258
|
-
var PercentLoaderIcon = function PercentLoaderIcon(
|
|
259
|
-
var
|
|
215
|
+
var PercentLoaderIcon = function PercentLoaderIcon(_ref) {
|
|
216
|
+
var value = _ref.value,
|
|
217
|
+
hideCheck = _ref.hideCheck,
|
|
218
|
+
indefinido = _ref.indefinido,
|
|
219
|
+
_ref$className = _ref.className,
|
|
220
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
221
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
260
222
|
var getStrokeDashOffset = function getStrokeDashOffset() {
|
|
261
|
-
var
|
|
262
|
-
var v = props.indefinido ? '25' : (_props$value = props.value) != null ? _props$value : '';
|
|
223
|
+
var v = indefinido ? '25' : value != null ? value : '';
|
|
263
224
|
return 264 - 264 * parseInt(String(v)) / 100;
|
|
264
225
|
};
|
|
265
|
-
var _useState = React.useState(
|
|
226
|
+
var _useState = React.useState(indefinido ? getStrokeDashOffset() : 264),
|
|
266
227
|
sdo = _useState[0],
|
|
267
228
|
setSdo = _useState[1];
|
|
268
229
|
React.useEffect(function () {
|
|
269
230
|
setSdo(getStrokeDashOffset());
|
|
270
|
-
}, [
|
|
271
|
-
|
|
272
|
-
|
|
231
|
+
}, [value, indefinido]);
|
|
232
|
+
var classNames = useMergedClassNames([rootClassName$7, indefinido ? 'indefinido' : '', className]);
|
|
233
|
+
return React__default.createElement("svg", Object.assign({
|
|
234
|
+
className: classNames,
|
|
273
235
|
viewBox: '0 0 100 100',
|
|
274
236
|
fill: 'currentColor',
|
|
275
237
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
276
|
-
}, React__default.createElement("circle", {
|
|
238
|
+
}, props), React__default.createElement("circle", {
|
|
277
239
|
cx: '50',
|
|
278
240
|
cy: '50',
|
|
279
241
|
r: '42'
|
|
@@ -283,12 +245,12 @@ var PercentLoaderIcon = function PercentLoaderIcon(props) {
|
|
|
283
245
|
r: '42',
|
|
284
246
|
strokeDashoffset: sdo,
|
|
285
247
|
stroke: 'currentColor'
|
|
286
|
-
}), !
|
|
248
|
+
}), !indefinido && !hideCheck ? React__default.createElement("path", {
|
|
287
249
|
d: 'M710.428,339.1l12.762,12.454,22.376-25.148',
|
|
288
250
|
fill: 'none',
|
|
289
251
|
strokeWidth: '5',
|
|
290
252
|
strokeDasharray: '52',
|
|
291
|
-
strokeDashoffset: parseInt(String(
|
|
253
|
+
strokeDashoffset: parseInt(String(value != null ? value : '')) === 100 ? 0 : 52,
|
|
292
254
|
stroke: 'currentColor'
|
|
293
255
|
}) : undefined);
|
|
294
256
|
};
|
|
@@ -869,12 +831,12 @@ var CreditIcon = function CreditIcon() {
|
|
|
869
831
|
}));
|
|
870
832
|
};
|
|
871
833
|
|
|
872
|
-
var _excluded = ["className"];
|
|
834
|
+
var _excluded$1 = ["className"];
|
|
873
835
|
var rootClassName$A = 'icon-component';
|
|
874
836
|
var InformationIcon = function InformationIcon(_ref) {
|
|
875
837
|
var _ref$className = _ref.className,
|
|
876
838
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
877
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
839
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
878
840
|
var classNames = useMergedClassNames([rootClassName$A, className]);
|
|
879
841
|
return React__default.createElement("svg", Object.assign({
|
|
880
842
|
viewBox: '0 0 24 24',
|
|
@@ -1223,13 +1185,13 @@ var LinkIcon = function LinkIcon() {
|
|
|
1223
1185
|
}));
|
|
1224
1186
|
};
|
|
1225
1187
|
|
|
1226
|
-
var _excluded$
|
|
1188
|
+
var _excluded$2 = ["theme", "size", "className"];
|
|
1227
1189
|
var rootClassName$L = 'loader-three-dots';
|
|
1228
1190
|
var ThreeDotsLoader = function ThreeDotsLoader(_ref) {
|
|
1229
1191
|
var theme = _ref.theme,
|
|
1230
1192
|
size = _ref.size,
|
|
1231
1193
|
className = _ref.className,
|
|
1232
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1194
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
1233
1195
|
return React__default.createElement("div", Object.assign({
|
|
1234
1196
|
className: useMergedClassNames([rootClassName$L, className != null ? className : '', rootClassName$L + "-" + (theme != null ? theme : 'primary'), rootClassName$L + "-size-" + (size != null ? size : 3)])
|
|
1235
1197
|
}, rest), React__default.createElement("div", null), React__default.createElement("div", null), React__default.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__default.createElement("button", Object.assign({}, props, {
|
|
4642
4604
|
className: useMergedClassNames([rootClassName$1D, className])
|
|
4643
4605
|
}), React__default.createElement("div", {
|
|
@@ -4660,44 +4622,55 @@ function BigBlockButton(_ref) {
|
|
|
4660
4622
|
NotificationType["PrimaryDark"] = "primary-dark";
|
|
4661
4623
|
NotificationType["PrimaryInvert"] = "primary-invert";
|
|
4662
4624
|
NotificationType["Error"] = "error";
|
|
4625
|
+
NotificationType["ErrorLight"] = "error-light";
|
|
4663
4626
|
NotificationType["Default"] = "default";
|
|
4664
4627
|
NotificationType["Disabled"] = "disabled";
|
|
4665
4628
|
})(exports.NotificationType || (exports.NotificationType = {}));
|
|
4666
4629
|
|
|
4630
|
+
var _excluded$4 = ["className", "bordered", "position", "type", "verticalOuter", "horizontalOuter"];
|
|
4667
4631
|
var rootClassName$1E = 'component-notification';
|
|
4668
|
-
function Notification(
|
|
4669
|
-
var
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4632
|
+
function Notification(_ref) {
|
|
4633
|
+
var _ref$className = _ref.className,
|
|
4634
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4635
|
+
_ref$bordered = _ref.bordered,
|
|
4636
|
+
bordered = _ref$bordered === void 0 ? false : _ref$bordered,
|
|
4637
|
+
_ref$position = _ref.position,
|
|
4638
|
+
position = _ref$position === void 0 ? exports.NotificationPosition.TopRight : _ref$position,
|
|
4639
|
+
_ref$type = _ref.type,
|
|
4640
|
+
type = _ref$type === void 0 ? exports.NotificationType.Error : _ref$type,
|
|
4641
|
+
_ref$verticalOuter = _ref.verticalOuter,
|
|
4642
|
+
verticalOuter = _ref$verticalOuter === void 0 ? 10 : _ref$verticalOuter,
|
|
4643
|
+
_ref$horizontalOuter = _ref.horizontalOuter,
|
|
4644
|
+
horizontalOuter = _ref$horizontalOuter === void 0 ? 10 : _ref$horizontalOuter,
|
|
4645
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
4646
|
+
var classNames = useMergedClassNames([rootClassName$1E + "-outer", className]);
|
|
4675
4647
|
var label = React.useMemo(function () {
|
|
4676
|
-
if (
|
|
4677
|
-
if (props.count
|
|
4648
|
+
if (props.count === true) return ' ';
|
|
4649
|
+
if (props.count === false) return '';
|
|
4650
|
+
if (typeof props.count === 'number') {
|
|
4651
|
+
if (!props.count || !String(props.count)) return 0;
|
|
4652
|
+
if (props.count < 0) return '!';
|
|
4653
|
+
}
|
|
4678
4654
|
return props.count;
|
|
4679
4655
|
}, [props.count]);
|
|
4680
|
-
return React__default.createElement("div",
|
|
4681
|
-
|
|
4656
|
+
return React__default.createElement("div", {
|
|
4657
|
+
className: classNames
|
|
4658
|
+
}, props.children, React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
4659
|
+
"in": Boolean(label),
|
|
4682
4660
|
classNames: rootClassName$1E,
|
|
4683
4661
|
timeout: 300,
|
|
4684
4662
|
unmountOnExit: true
|
|
4685
4663
|
}, React__default.createElement("div", {
|
|
4686
|
-
|
|
4664
|
+
"data-bordered": bordered,
|
|
4665
|
+
className: rootClassName$1E + " " + rootClassName$1E + "-" + position + " " + rootClassName$1E + "-" + type,
|
|
4687
4666
|
style: {
|
|
4688
|
-
top: String(
|
|
4689
|
-
right: String(
|
|
4690
|
-
left: String(
|
|
4691
|
-
bottom: String(
|
|
4667
|
+
top: String(position).match(/top/) ? 0 - (verticalOuter || 0) + "px" : 'unset',
|
|
4668
|
+
right: String(position).match(/right/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4669
|
+
left: String(position).match(/left/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4670
|
+
bottom: String(position).match(/bottom/) ? 0 - (verticalOuter || 0) + "px" : 'unset'
|
|
4692
4671
|
}
|
|
4693
4672
|
}, label)));
|
|
4694
4673
|
}
|
|
4695
|
-
Notification.defaultProps = {
|
|
4696
|
-
type: exports.NotificationType.Error,
|
|
4697
|
-
position: exports.NotificationPosition.TopRight,
|
|
4698
|
-
verticalOuter: 10,
|
|
4699
|
-
horizontalOuter: 10
|
|
4700
|
-
};
|
|
4701
4674
|
|
|
4702
4675
|
var rootClassName$1F = 'bottom-navigation';
|
|
4703
4676
|
function BottomNavigation(props) {
|
|
@@ -4771,9 +4744,9 @@ BreadCrumb.defaultProps = {
|
|
|
4771
4744
|
ButtonThemes["HeaderUserBold"] = "header-user-bold";
|
|
4772
4745
|
})(exports.ButtonThemes || (exports.ButtonThemes = {}));
|
|
4773
4746
|
|
|
4774
|
-
var _excluded$
|
|
4747
|
+
var _excluded$5 = ["className", "theme", "w100", "leftIcon", "rightIcon", "mobileBottomPage", "loader", "loading", "children"];
|
|
4775
4748
|
var rootClassName$1H = 'component-button';
|
|
4776
|
-
|
|
4749
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
4777
4750
|
var className = _ref.className,
|
|
4778
4751
|
_ref$theme = _ref.theme,
|
|
4779
4752
|
theme = _ref$theme === void 0 ? exports.ButtonThemes.Primary : _ref$theme,
|
|
@@ -4784,7 +4757,7 @@ function Button(_ref) {
|
|
|
4784
4757
|
loader = _ref.loader,
|
|
4785
4758
|
loading = _ref.loading,
|
|
4786
4759
|
children = _ref.children,
|
|
4787
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4760
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
4788
4761
|
var handleClick = function handleClick(evt) {
|
|
4789
4762
|
if (!props.disabled && !loading) {
|
|
4790
4763
|
var _props$onClick;
|
|
@@ -4799,7 +4772,9 @@ function Button(_ref) {
|
|
|
4799
4772
|
theme: theme === exports.ButtonThemes.Primary && !props.disabled ? 'secondary' : 'primary'
|
|
4800
4773
|
}, loader != null ? loader : {})));
|
|
4801
4774
|
}, [loader, props.disabled, theme]);
|
|
4802
|
-
return React__default.createElement("button", Object.assign({
|
|
4775
|
+
return React__default.createElement("button", Object.assign({
|
|
4776
|
+
ref: ref
|
|
4777
|
+
}, props, {
|
|
4803
4778
|
className: useMergedClassNames(['nunito', rootClassName$1H, className, rootClassName$1H + "-" + theme, w100 ? rootClassName$1H + "-w100" : '', mobileBottomPage ? rootClassName$1H + "-bottom-mobile" : '']),
|
|
4804
4779
|
onClick: handleClick
|
|
4805
4780
|
}), leftIcon && React__default.createElement("div", {
|
|
@@ -4809,7 +4784,8 @@ function Button(_ref) {
|
|
|
4809
4784
|
}, children), rightIcon && React__default.createElement("div", {
|
|
4810
4785
|
className: getMergedClassNames([rootClassName$1H + "-icon", rootClassName$1H + "-right-icon", loading ? rootClassName$1H + "-hide" : ''])
|
|
4811
4786
|
}, rightIcon), loading ? loaderElement : undefined);
|
|
4812
|
-
}
|
|
4787
|
+
});
|
|
4788
|
+
Button.displayName = 'Button';
|
|
4813
4789
|
var Button$1 = React.memo(Button);
|
|
4814
4790
|
|
|
4815
4791
|
(function (FileTypes) {
|
|
@@ -5260,32 +5236,31 @@ function useCarouselBehaviour(props) {
|
|
|
5260
5236
|
}))), handleChange];
|
|
5261
5237
|
}
|
|
5262
5238
|
|
|
5239
|
+
var _excluded$6 = ["theme", "disabled", "icon", "onClick"];
|
|
5263
5240
|
var rootClassName$1M = 'component-icon-button';
|
|
5264
|
-
|
|
5265
|
-
var
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5241
|
+
var IconButton = React.forwardRef(function (_ref, ref) {
|
|
5242
|
+
var _ref$theme = _ref.theme,
|
|
5243
|
+
theme = _ref$theme === void 0 ? 'primary' : _ref$theme,
|
|
5244
|
+
_ref$disabled = _ref.disabled,
|
|
5245
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
5246
|
+
_ref$icon = _ref.icon,
|
|
5247
|
+
icon = _ref$icon === void 0 ? '-' : _ref$icon,
|
|
5248
|
+
onClick = _ref.onClick,
|
|
5249
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
5250
|
+
var handleClick = React.useCallback(function (evt) {
|
|
5251
|
+
if (!disabled) {
|
|
5252
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(evt);
|
|
5269
5253
|
}
|
|
5270
|
-
};
|
|
5271
|
-
var
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
return p;
|
|
5281
|
-
};
|
|
5282
|
-
return React__default.createElement("button", Object.assign({}, getProps()), props.icon);
|
|
5283
|
-
}
|
|
5284
|
-
IconButton.defaultProps = {
|
|
5285
|
-
theme: 'primary',
|
|
5286
|
-
disabled: false,
|
|
5287
|
-
icon: '-'
|
|
5288
|
-
};
|
|
5254
|
+
}, [disabled, onClick]);
|
|
5255
|
+
var classNames = useMergedClassNames([rootClassName$1M, props.className, rootClassName$1M + "-" + theme]);
|
|
5256
|
+
return React__default.createElement("button", Object.assign({
|
|
5257
|
+
ref: ref,
|
|
5258
|
+
onClick: handleClick
|
|
5259
|
+
}, props, {
|
|
5260
|
+
className: classNames
|
|
5261
|
+
}), icon);
|
|
5262
|
+
});
|
|
5263
|
+
IconButton.displayName = 'IconButton';
|
|
5289
5264
|
var IconButton$1 = React.memo(IconButton);
|
|
5290
5265
|
|
|
5291
5266
|
var rootClassName$1N = 'element-paginator';
|
|
@@ -7016,7 +6991,7 @@ MoneyByMonth.defaultProps = {
|
|
|
7016
6991
|
CheckboxThemes["Blue"] = "blue";
|
|
7017
6992
|
})(exports.CheckboxThemes || (exports.CheckboxThemes = {}));
|
|
7018
6993
|
|
|
7019
|
-
var _excluded$
|
|
6994
|
+
var _excluded$7 = ["value", "tag", "onChange", "theme", "className", "error", "type"];
|
|
7020
6995
|
var rootClassName$1S = 'component-checkbox';
|
|
7021
6996
|
function Checkbox(_ref) {
|
|
7022
6997
|
var value = _ref.value,
|
|
@@ -7029,7 +7004,7 @@ function Checkbox(_ref) {
|
|
|
7029
7004
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
7030
7005
|
_ref$type = _ref.type,
|
|
7031
7006
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
7032
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7007
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
7033
7008
|
var handleClick = React.useCallback(function (evt) {
|
|
7034
7009
|
if (!props.disabled) {
|
|
7035
7010
|
onChange === null || onChange === void 0 ? void 0 : onChange(!value, evt);
|
|
@@ -7085,37 +7060,91 @@ Col.defaultProps = {
|
|
|
7085
7060
|
};
|
|
7086
7061
|
var Col$1 = React.memo(Col);
|
|
7087
7062
|
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7063
|
+
(function (OS) {
|
|
7064
|
+
OS["Windows"] = "Windows";
|
|
7065
|
+
OS["Linux"] = "Linux";
|
|
7066
|
+
OS["MacOS"] = "MacOS";
|
|
7067
|
+
OS["iOS"] = "iOS";
|
|
7068
|
+
OS["Android"] = "Android";
|
|
7069
|
+
OS["ChromeOS"] = "ChromeOS";
|
|
7070
|
+
OS["Other"] = "Other";
|
|
7071
|
+
})(exports.OS || (exports.OS = {}));
|
|
7072
|
+
(function (Browser) {
|
|
7073
|
+
Browser["Brave"] = "Brave";
|
|
7074
|
+
Browser["Chrome"] = "Chrome";
|
|
7075
|
+
Browser["Firefox"] = "Firefox";
|
|
7076
|
+
Browser["Opera"] = "Opera";
|
|
7077
|
+
Browser["Safari"] = "Safari";
|
|
7078
|
+
Browser["Edge"] = "Edge";
|
|
7079
|
+
Browser["IE"] = "IE";
|
|
7080
|
+
Browser["Other"] = "Other";
|
|
7081
|
+
})(exports.Browser || (exports.Browser = {}));
|
|
7082
|
+
|
|
7083
|
+
function useSystemInfo() {
|
|
7084
|
+
var os = React.useMemo(function () {
|
|
7085
|
+
if (/Android/i.test(navigator.userAgent)) return exports.OS.Android;
|
|
7086
|
+
if (/iPhone/i.test(navigator.userAgent)) return exports.OS.iOS;
|
|
7087
|
+
if (/Windows/i.test(navigator.userAgent)) return exports.OS.Windows;
|
|
7088
|
+
if (/Linux/i.test(navigator.userAgent)) return exports.OS.Linux;
|
|
7089
|
+
if (/CrOS/i.test(navigator.userAgent)) return exports.OS.ChromeOS;
|
|
7090
|
+
if (/Macintosh/i.test(navigator.userAgent)) return exports.OS.MacOS;
|
|
7091
|
+
return exports.OS.Other;
|
|
7092
|
+
}, []);
|
|
7093
|
+
var browser = React.useMemo(function () {
|
|
7094
|
+
if (/Edge/i.test(navigator.userAgent)) return exports.Browser.Edge;
|
|
7095
|
+
if (/Brave/i.test(navigator.userAgent)) return exports.Browser.Brave;
|
|
7096
|
+
if (/CriOS/i.test(navigator.userAgent)) return exports.Browser.Chrome;
|
|
7097
|
+
if (/Chrome/i.test(navigator.userAgent)) return exports.Browser.Chrome;
|
|
7098
|
+
if (/Firefox/i.test(navigator.userAgent)) return exports.Browser.Firefox;
|
|
7099
|
+
if (/Opera/i.test(navigator.userAgent)) return exports.Browser.Opera;
|
|
7100
|
+
if (/Safari/i.test(navigator.userAgent)) return exports.Browser.Safari;
|
|
7101
|
+
if (/Trident/i.test(navigator.userAgent)) return exports.Browser.IE;
|
|
7102
|
+
if (/MSIE/i.test(navigator.userAgent)) return exports.Browser.IE;
|
|
7103
|
+
return exports.Browser.Other;
|
|
7104
|
+
}, []);
|
|
7105
|
+
var isMobile = React.useMemo(function () {
|
|
7106
|
+
return /Mobile/.test(navigator.userAgent);
|
|
7107
|
+
}, []);
|
|
7108
|
+
return {
|
|
7109
|
+
os: os,
|
|
7110
|
+
browser: browser,
|
|
7111
|
+
isMobile: isMobile
|
|
7104
7112
|
};
|
|
7105
|
-
|
|
7113
|
+
}
|
|
7114
|
+
|
|
7115
|
+
var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "className", "style"];
|
|
7116
|
+
var rootClassName$1U = 'component-container';
|
|
7117
|
+
function Container(_ref) {
|
|
7118
|
+
var position = _ref.position,
|
|
7119
|
+
_ref$fluid = _ref.fluid,
|
|
7120
|
+
fluid = _ref$fluid === void 0 ? false : _ref$fluid,
|
|
7121
|
+
_ref$verticalPadding = _ref.verticalPadding,
|
|
7122
|
+
verticalPadding = _ref$verticalPadding === void 0 ? false : _ref$verticalPadding,
|
|
7123
|
+
_ref$hasMobileButton = _ref.hasMobileButton,
|
|
7124
|
+
hasMobileButton = _ref$hasMobileButton === void 0 ? false : _ref$hasMobileButton,
|
|
7125
|
+
_ref$hasHeader = _ref.hasHeader,
|
|
7126
|
+
hasHeader = _ref$hasHeader === void 0 ? false : _ref$hasHeader,
|
|
7127
|
+
_ref$hasAdvancedHeade = _ref.hasAdvancedHeader,
|
|
7128
|
+
hasAdvancedHeader = _ref$hasAdvancedHeade === void 0 ? false : _ref$hasAdvancedHeade,
|
|
7129
|
+
_ref$className = _ref.className,
|
|
7130
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7131
|
+
_ref$style = _ref.style,
|
|
7132
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7133
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7134
|
+
var mobile = useSystemInfo().isMobile;
|
|
7135
|
+
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7136
|
+
return React__default.createElement("div", Object.assign({}, props, {
|
|
7137
|
+
className: classNames,
|
|
7138
|
+
style: _extends({
|
|
7139
|
+
position: position
|
|
7140
|
+
}, style)
|
|
7141
|
+
}), React__default.createElement("div", {
|
|
7106
7142
|
className: rootClassName$1U + "-insider"
|
|
7107
7143
|
}, props.children));
|
|
7108
7144
|
}
|
|
7109
|
-
Container.defaultProps = {
|
|
7110
|
-
fluid: false,
|
|
7111
|
-
verticalPadding: false,
|
|
7112
|
-
hasMobileButton: false,
|
|
7113
|
-
hasAdvancedHeader: false,
|
|
7114
|
-
hasHeader: false
|
|
7115
|
-
};
|
|
7116
7145
|
var Container$1 = React.memo(Container);
|
|
7117
7146
|
|
|
7118
|
-
var _excluded$
|
|
7147
|
+
var _excluded$9 = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7119
7148
|
var rootClassName$1V = 'component-control-label';
|
|
7120
7149
|
function ControlLabel(_ref) {
|
|
7121
7150
|
var _control$props;
|
|
@@ -7124,7 +7153,7 @@ function ControlLabel(_ref) {
|
|
|
7124
7153
|
labelGap = _ref.labelGap,
|
|
7125
7154
|
label = _ref.label,
|
|
7126
7155
|
className = _ref.className,
|
|
7127
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7156
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7128
7157
|
var ref = React.useRef();
|
|
7129
7158
|
return React__default.createElement("label", Object.assign({}, props, {
|
|
7130
7159
|
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
@@ -7143,7 +7172,7 @@ var formatHexadecimalColor = function formatHexadecimalColor(input) {
|
|
|
7143
7172
|
return value;
|
|
7144
7173
|
};
|
|
7145
7174
|
var getStringWithoutSpecialChar = function getStringWithoutSpecialChar(input) {
|
|
7146
|
-
var value = String(input).
|
|
7175
|
+
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, '');
|
|
7147
7176
|
return value;
|
|
7148
7177
|
};
|
|
7149
7178
|
|
|
@@ -7356,7 +7385,7 @@ function DatePickerCalendar(props) {
|
|
|
7356
7385
|
}
|
|
7357
7386
|
var DatePickerCalendar$1 = React.memo(DatePickerCalendar);
|
|
7358
7387
|
|
|
7359
|
-
var _excluded$
|
|
7388
|
+
var _excluded$a = ["language"];
|
|
7360
7389
|
var rootClassName$1X = 'component-date-picker';
|
|
7361
7390
|
function DatePicker(_ref) {
|
|
7362
7391
|
var _ref$language = _ref.language,
|
|
@@ -7366,7 +7395,7 @@ function DatePicker(_ref) {
|
|
|
7366
7395
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
7367
7396
|
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
7368
7397
|
} : _ref$language,
|
|
7369
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7398
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
7370
7399
|
var id = React.useMemo(function () {
|
|
7371
7400
|
return "picker_" + getUniqueKey();
|
|
7372
7401
|
}, []);
|
|
@@ -7504,11 +7533,11 @@ DatePicker.defaultProps = {
|
|
|
7504
7533
|
};
|
|
7505
7534
|
var DatePicker$1 = React.memo(DatePicker);
|
|
7506
7535
|
|
|
7507
|
-
var _excluded$
|
|
7536
|
+
var _excluded$b = ["showLabel"];
|
|
7508
7537
|
var rootClassName$1Y = 'component-doughnut';
|
|
7509
7538
|
function Doughnut(_ref) {
|
|
7510
7539
|
var showLabel = _ref.showLabel,
|
|
7511
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7540
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
7512
7541
|
var _useProgressiveCount = useProgressiveCount(),
|
|
7513
7542
|
val = _useProgressiveCount[0],
|
|
7514
7543
|
setVal = _useProgressiveCount[1];
|
|
@@ -7573,6 +7602,98 @@ function DropdownItem(props) {
|
|
|
7573
7602
|
}
|
|
7574
7603
|
var DropdownItem$1 = React.memo(DropdownItem);
|
|
7575
7604
|
|
|
7605
|
+
function useFloatingPanel(_ref) {
|
|
7606
|
+
var stateOpened = _ref.stateOpened,
|
|
7607
|
+
_ref$matchWidth = _ref.matchWidth,
|
|
7608
|
+
matchWidth = _ref$matchWidth === void 0 ? false : _ref$matchWidth,
|
|
7609
|
+
_ref$offset = _ref.offset,
|
|
7610
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7611
|
+
_ref$placement = _ref.placement,
|
|
7612
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7613
|
+
_ref$strategy = _ref.strategy,
|
|
7614
|
+
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
7615
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7616
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['top', 'bottom', 'right-start', 'right'] : _ref$fallbackPlacemen,
|
|
7617
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7618
|
+
elements = _ref.elements;
|
|
7619
|
+
var opened = stateOpened[0],
|
|
7620
|
+
setOpened = stateOpened[1];
|
|
7621
|
+
var _useState = React.useState(null),
|
|
7622
|
+
maxHeight = _useState[0],
|
|
7623
|
+
setMaxHeight = _useState[1];
|
|
7624
|
+
var _useFloating = react.useFloating({
|
|
7625
|
+
elements: elements,
|
|
7626
|
+
open: opened,
|
|
7627
|
+
onOpenChange: setOpened,
|
|
7628
|
+
whileElementsMounted: react.autoUpdate,
|
|
7629
|
+
transform: false,
|
|
7630
|
+
placement: placement,
|
|
7631
|
+
strategy: strategy,
|
|
7632
|
+
middleware: [react.offset(offset), react.flip({
|
|
7633
|
+
fallbackPlacements: fallbackPlacements
|
|
7634
|
+
}), react.shift(), react.size({
|
|
7635
|
+
apply: function apply(_ref2) {
|
|
7636
|
+
var rects = _ref2.rects,
|
|
7637
|
+
elements = _ref2.elements,
|
|
7638
|
+
availableHeight = _ref2.availableHeight;
|
|
7639
|
+
if (matchWidth) {
|
|
7640
|
+
Object.assign(elements.floating.style, {
|
|
7641
|
+
width: rects.reference.width + "px"
|
|
7642
|
+
});
|
|
7643
|
+
}
|
|
7644
|
+
setMaxHeight(availableHeight);
|
|
7645
|
+
heightAvaliableCallback === null || heightAvaliableCallback === void 0 ? void 0 : heightAvaliableCallback(availableHeight);
|
|
7646
|
+
}
|
|
7647
|
+
})]
|
|
7648
|
+
}),
|
|
7649
|
+
refs = _useFloating.refs,
|
|
7650
|
+
floatingStyles = _useFloating.floatingStyles,
|
|
7651
|
+
context = _useFloating.context;
|
|
7652
|
+
var _useTransitionStyles = react.useTransitionStyles(context, {
|
|
7653
|
+
duration: 250,
|
|
7654
|
+
initial: function initial(_ref3) {
|
|
7655
|
+
var side = _ref3.side;
|
|
7656
|
+
return {
|
|
7657
|
+
transform: ['top', 'bottom'].includes(side) ? 'translateY(10px)' : '',
|
|
7658
|
+
opacity: 0
|
|
7659
|
+
};
|
|
7660
|
+
},
|
|
7661
|
+
common: {
|
|
7662
|
+
transform: 'translateY(0px)',
|
|
7663
|
+
opacity: 1
|
|
7664
|
+
}
|
|
7665
|
+
}),
|
|
7666
|
+
isMounted = _useTransitionStyles.isMounted,
|
|
7667
|
+
styles = _useTransitionStyles.styles;
|
|
7668
|
+
return {
|
|
7669
|
+
panelRef: refs.setFloating,
|
|
7670
|
+
panelStyles: _extends({}, floatingStyles, {
|
|
7671
|
+
maxHeight: maxHeight
|
|
7672
|
+
}, styles),
|
|
7673
|
+
anchorRef: refs.setReference,
|
|
7674
|
+
isMounted: isMounted
|
|
7675
|
+
};
|
|
7676
|
+
}
|
|
7677
|
+
|
|
7678
|
+
function useEvent(events) {
|
|
7679
|
+
React.useLayoutEffect(function () {
|
|
7680
|
+
events.forEach(function (_ref) {
|
|
7681
|
+
var event = _ref.event,
|
|
7682
|
+
handler = _ref.handler,
|
|
7683
|
+
target = _ref.target;
|
|
7684
|
+
(target != null ? target : document.body).addEventListener(event, handler);
|
|
7685
|
+
});
|
|
7686
|
+
return function () {
|
|
7687
|
+
events.forEach(function (_ref2) {
|
|
7688
|
+
var event = _ref2.event,
|
|
7689
|
+
handler = _ref2.handler,
|
|
7690
|
+
target = _ref2.target;
|
|
7691
|
+
(target != null ? target : document.body).removeEventListener(event, handler);
|
|
7692
|
+
});
|
|
7693
|
+
};
|
|
7694
|
+
}, [events]);
|
|
7695
|
+
}
|
|
7696
|
+
|
|
7576
7697
|
function useOutsideClick(refs, handler, options) {
|
|
7577
7698
|
var _options3;
|
|
7578
7699
|
if (options === void 0) {
|
|
@@ -7600,8 +7721,77 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7600
7721
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7601
7722
|
}
|
|
7602
7723
|
|
|
7603
|
-
var _excluded$
|
|
7604
|
-
var rootClassName$1_ = '
|
|
7724
|
+
var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
|
|
7725
|
+
var rootClassName$1_ = 'floating-panel';
|
|
7726
|
+
function FloatingPanel(_ref) {
|
|
7727
|
+
var opened = _ref.opened,
|
|
7728
|
+
setOpened = _ref.setOpened,
|
|
7729
|
+
_ref$className = _ref.className,
|
|
7730
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7731
|
+
statedAnchorRef = _ref.statedAnchorRef,
|
|
7732
|
+
matchWidth = _ref.matchWidth,
|
|
7733
|
+
_ref$placement = _ref.placement,
|
|
7734
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7735
|
+
_ref$closeOnEsc = _ref.closeOnEsc,
|
|
7736
|
+
closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
|
|
7737
|
+
_ref$closeOnOutClick = _ref.closeOnOutClick,
|
|
7738
|
+
closeOnOutClick = _ref$closeOnOutClick === void 0 ? true : _ref$closeOnOutClick,
|
|
7739
|
+
_ref$style = _ref.style,
|
|
7740
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7741
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7742
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['bottom', 'bottom-end', 'bottom-start', 'top', 'top-start', 'top-end', 'left', 'right'] : _ref$fallbackPlacemen,
|
|
7743
|
+
_ref$offset = _ref.offset,
|
|
7744
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7745
|
+
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7746
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7747
|
+
var _useState = React.useState(),
|
|
7748
|
+
panelRef = _useState[0],
|
|
7749
|
+
setPanelRef = _useState[1];
|
|
7750
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
7751
|
+
stateOpened: [opened, setOpened],
|
|
7752
|
+
strategy: 'fixed',
|
|
7753
|
+
placement: placement,
|
|
7754
|
+
fallbackPlacements: fallbackPlacements,
|
|
7755
|
+
matchWidth: matchWidth,
|
|
7756
|
+
elements: {
|
|
7757
|
+
floating: panelRef,
|
|
7758
|
+
reference: statedAnchorRef
|
|
7759
|
+
},
|
|
7760
|
+
heightAvaliableCallback: heightAvaliableCallback,
|
|
7761
|
+
offset: offset
|
|
7762
|
+
}),
|
|
7763
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
7764
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
7765
|
+
var classNames = useMergedClassNames([rootClassName$1_, className]);
|
|
7766
|
+
useEvent([{
|
|
7767
|
+
event: 'keydown',
|
|
7768
|
+
handler: function handler(e) {
|
|
7769
|
+
if (closeOnEsc && opened && 'key' in e && e.key === 'Escape') {
|
|
7770
|
+
setOpened(false);
|
|
7771
|
+
e.preventDefault();
|
|
7772
|
+
e.stopPropagation();
|
|
7773
|
+
}
|
|
7774
|
+
}
|
|
7775
|
+
}]);
|
|
7776
|
+
useOutsideClick([{
|
|
7777
|
+
current: panelRef != null ? panelRef : null
|
|
7778
|
+
}, {
|
|
7779
|
+
current: statedAnchorRef != null ? statedAnchorRef : null
|
|
7780
|
+
}], function (isInside) {
|
|
7781
|
+
if (closeOnOutClick && opened && !isInside) setOpened(false);
|
|
7782
|
+
});
|
|
7783
|
+
return React__default.createElement(react.FloatingPortal, null, isMounted && React__default.createElement("div", Object.assign({}, props, {
|
|
7784
|
+
className: classNames,
|
|
7785
|
+
ref: function ref(r) {
|
|
7786
|
+
return setPanelRef(r);
|
|
7787
|
+
},
|
|
7788
|
+
style: _extends({}, style, panelStyles)
|
|
7789
|
+
}), props.children));
|
|
7790
|
+
}
|
|
7791
|
+
var FloatingPanel$1 = React.memo(FloatingPanel);
|
|
7792
|
+
|
|
7793
|
+
var _excluded$d = ["opened", "setOpened", "content", "closeOnEsc", "closeOnOutClick", "children", "panelProps", "removePadding"];
|
|
7794
|
+
var rootClassName$1$ = 'component-dropdown-menu';
|
|
7605
7795
|
function DropdownMenu(_ref) {
|
|
7606
7796
|
var _panelProps$className;
|
|
7607
7797
|
var opened = _ref.opened,
|
|
@@ -7612,206 +7802,37 @@ function DropdownMenu(_ref) {
|
|
|
7612
7802
|
children = _ref.children,
|
|
7613
7803
|
_ref$panelProps = _ref.panelProps,
|
|
7614
7804
|
panelProps = _ref$panelProps === void 0 ? {} : _ref$panelProps,
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
var bound = trigger.getBoundingClientRect();
|
|
7637
|
-
var pontoCentralX = bound.x + bound.width / 2;
|
|
7638
|
-
var pontoCentralY = bound.y + bound.height / 2;
|
|
7639
|
-
var windowHeight = window.innerHeight;
|
|
7640
|
-
var windowWidth = window.innerWidth;
|
|
7641
|
-
if (pontoCentralX < windowWidth / 2) {
|
|
7642
|
-
painel.style.left = bound.x + "px";
|
|
7643
|
-
if (pontoCentralY < windowHeight / 2) {
|
|
7644
|
-
painel.style.top = bound.y + bound.height + "px";
|
|
7645
|
-
} else {
|
|
7646
|
-
painel.style.top = bound.y - painel.getBoundingClientRect().height + "px";
|
|
7647
|
-
}
|
|
7648
|
-
} else {
|
|
7649
|
-
painel.style.right = windowWidth - bound.x - bound.width + "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
|
-
}
|
|
7656
|
-
};
|
|
7657
|
-
if (opened) {
|
|
7658
|
-
position();
|
|
7659
|
-
var _inter = setInterval(position, 100);
|
|
7660
|
-
setInter(_inter);
|
|
7661
|
-
}
|
|
7662
|
-
return function () {
|
|
7663
|
-
if (interRef.current) {
|
|
7664
|
-
clearInterval(interRef.current);
|
|
7665
|
-
setInter(null);
|
|
7666
|
-
}
|
|
7667
|
-
};
|
|
7668
|
-
}, [opened]);
|
|
7669
|
-
useOutsideClick([wrapperRef], function (isInside) {
|
|
7670
|
-
if (closeOnOutClick && !isInside) {
|
|
7671
|
-
setOpened(false);
|
|
7672
|
-
}
|
|
7673
|
-
});
|
|
7674
|
-
React.useEffect(function () {
|
|
7675
|
-
var onEscPress = function onEscPress(evt) {
|
|
7676
|
-
if (evt.key === 'Escape') {
|
|
7677
|
-
setOpened(false);
|
|
7678
|
-
}
|
|
7679
|
-
};
|
|
7680
|
-
if (closeOnEsc) {
|
|
7681
|
-
if (opened) {
|
|
7682
|
-
document.addEventListener('keyup', onEscPress);
|
|
7683
|
-
} else {
|
|
7684
|
-
document.removeEventListener('keyup', onEscPress);
|
|
7685
|
-
}
|
|
7686
|
-
}
|
|
7687
|
-
return function () {
|
|
7688
|
-
document.removeEventListener('keyup', onEscPress);
|
|
7689
|
-
};
|
|
7690
|
-
}, [opened]);
|
|
7691
|
-
return React__default.createElement("div", Object.assign({}, props, {
|
|
7692
|
-
ref: wrapperRef,
|
|
7693
|
-
id: id,
|
|
7694
|
-
className: [rootClassName$1_, props.className || ''].join(' ')
|
|
7695
|
-
}), React__default.createElement("div", {
|
|
7696
|
-
className: rootClassName$1_ + "-children"
|
|
7697
|
-
}, children), React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
7698
|
-
"in": opened,
|
|
7699
|
-
timeout: 300,
|
|
7700
|
-
classNames: rootClassName$1_ + "-panel-fade",
|
|
7701
|
-
unmountOnExit: true
|
|
7702
|
-
}, React__default.createElement("div", Object.assign({
|
|
7703
|
-
ref: panelRef
|
|
7704
|
-
}, panelProps, {
|
|
7705
|
-
className: [rootClassName$1_ + "-panel scroll-white", (_panelProps$className = panelProps === null || panelProps === void 0 ? void 0 : panelProps.className) != null ? _panelProps$className : ''].join(' ')
|
|
7706
|
-
}), content)));
|
|
7707
|
-
}
|
|
7708
|
-
DropdownMenu.defaultProps = {
|
|
7709
|
-
closeOnOutClick: true,
|
|
7710
|
-
closeOnEsc: true
|
|
7711
|
-
};
|
|
7712
|
-
|
|
7713
|
-
var rootClassName$1$ = 'floating-panel';
|
|
7714
|
-
function FloatingPanel(props) {
|
|
7715
|
-
var id = React.useMemo(getUniqueKey, []);
|
|
7716
|
-
var onClick = React.useCallback(function (evt) {
|
|
7717
|
-
var wrapper = document.getElementById(id);
|
|
7718
|
-
if (!wrapper) return;
|
|
7719
|
-
if (!evt.composedPath().includes(wrapper)) {
|
|
7720
|
-
props.setOpened(false);
|
|
7721
|
-
evt.preventDefault();
|
|
7722
|
-
}
|
|
7723
|
-
}, [id, props]);
|
|
7724
|
-
var onEsc = React.useCallback(function (evt) {
|
|
7725
|
-
if (evt.key === 'Escape') {
|
|
7726
|
-
evt.preventDefault();
|
|
7727
|
-
evt.stopPropagation();
|
|
7728
|
-
props.setOpened(false);
|
|
7729
|
-
}
|
|
7730
|
-
}, [props]);
|
|
7731
|
-
var updatePosition = React.useCallback(function () {
|
|
7732
|
-
var wrapper = document.getElementById(id);
|
|
7733
|
-
if (!wrapper) return;
|
|
7734
|
-
var computedStyle = wrapper.getBoundingClientRect();
|
|
7735
|
-
var panel = document.querySelector("#" + id + " ." + rootClassName$1$);
|
|
7736
|
-
if (!panel) return;
|
|
7737
|
-
panel.style.top = computedStyle.top + computedStyle.height + "px";
|
|
7738
|
-
panel.style.left = computedStyle.left + "px";
|
|
7739
|
-
}, [id]);
|
|
7740
|
-
var updateSize = React.useCallback(function () {
|
|
7741
|
-
var _document$getElementB;
|
|
7742
|
-
var anchor = (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.parentElement;
|
|
7743
|
-
var panel = document.querySelector("#" + id + " ." + rootClassName$1$);
|
|
7744
|
-
if (!panel || !anchor) return;
|
|
7745
|
-
var computedStyle = window.getComputedStyle(anchor);
|
|
7746
|
-
panel.style.width = computedStyle.width;
|
|
7747
|
-
}, [id]);
|
|
7748
|
-
React.useEffect(function () {
|
|
7749
|
-
var wrapper = document.getElementById(id);
|
|
7750
|
-
var scrollableElements = getParents(wrapper);
|
|
7751
|
-
var positionAndSize = function positionAndSize() {
|
|
7752
|
-
updatePosition();
|
|
7753
|
-
updateSize();
|
|
7754
|
-
};
|
|
7755
|
-
var observer = new window.MutationObserver(positionAndSize);
|
|
7756
|
-
var timeout;
|
|
7757
|
-
if (props.opened) {
|
|
7758
|
-
positionAndSize();
|
|
7759
|
-
observer.observe(document.body, {
|
|
7760
|
-
attributes: true,
|
|
7761
|
-
childList: true,
|
|
7762
|
-
characterData: true,
|
|
7763
|
-
subtree: true
|
|
7764
|
-
});
|
|
7765
|
-
for (var _iterator = _createForOfIteratorHelperLoose(scrollableElements), _step; !(_step = _iterator()).done;) {
|
|
7766
|
-
var el = _step.value;
|
|
7767
|
-
el.addEventListener('scroll', updatePosition);
|
|
7768
|
-
}
|
|
7769
|
-
timeout = setTimeout(function () {
|
|
7770
|
-
window.addEventListener('resize', positionAndSize);
|
|
7771
|
-
document.addEventListener('keydown', onEsc);
|
|
7772
|
-
document.addEventListener('click', onClick);
|
|
7773
|
-
}, 300);
|
|
7774
|
-
}
|
|
7775
|
-
return function () {
|
|
7776
|
-
if (timeout) clearTimeout(timeout);
|
|
7777
|
-
if (props.opened) {
|
|
7778
|
-
observer.disconnect();
|
|
7779
|
-
document.removeEventListener('keydown', onEsc);
|
|
7780
|
-
document.removeEventListener('click', onClick);
|
|
7781
|
-
window.removeEventListener('resize', positionAndSize);
|
|
7782
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose(scrollableElements), _step2; !(_step2 = _iterator2()).done;) {
|
|
7783
|
-
var _el = _step2.value;
|
|
7784
|
-
_el.removeEventListener('scroll', updatePosition);
|
|
7785
|
-
}
|
|
7786
|
-
}
|
|
7787
|
-
};
|
|
7788
|
-
}, [props.opened]);
|
|
7789
|
-
return React__default.createElement("div", {
|
|
7790
|
-
id: id,
|
|
7791
|
-
className: rootClassName$1$ + "-wrapper",
|
|
7792
|
-
style: {
|
|
7793
|
-
bottom: props.bottom
|
|
7794
|
-
}
|
|
7795
|
-
}, React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
7796
|
-
"in": props.opened,
|
|
7797
|
-
classNames: rootClassName$1$,
|
|
7798
|
-
timeout: 300,
|
|
7799
|
-
unmountOnExit: true
|
|
7800
|
-
}, React__default.createElement("div", {
|
|
7801
|
-
className: useMergedClassNames([rootClassName$1$, props.className, props.boxShadow ? 'shadow' : '', props.radiusStyle])
|
|
7802
|
-
}, props.children)));
|
|
7805
|
+
removePadding = _ref.removePadding,
|
|
7806
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
7807
|
+
var _useState = React.useState(),
|
|
7808
|
+
ref = _useState[0],
|
|
7809
|
+
setRef = _useState[1];
|
|
7810
|
+
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 : '']);
|
|
7811
|
+
var anchorClassNames = useMergedClassNames([rootClassName$1$, props.className || '']);
|
|
7812
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("div", Object.assign({}, props, {
|
|
7813
|
+
ref: function ref(r) {
|
|
7814
|
+
return setRef(r);
|
|
7815
|
+
},
|
|
7816
|
+
className: anchorClassNames
|
|
7817
|
+
}), children), React__default.createElement(FloatingPanel$1, Object.assign({
|
|
7818
|
+
statedAnchorRef: ref,
|
|
7819
|
+
opened: opened != null ? opened : false,
|
|
7820
|
+
setOpened: setOpened,
|
|
7821
|
+
closeOnEsc: closeOnEsc,
|
|
7822
|
+
closeOnOutClick: closeOnOutClick
|
|
7823
|
+
}, panelProps), React__default.createElement("div", {
|
|
7824
|
+
className: classNames
|
|
7825
|
+
}, content)));
|
|
7803
7826
|
}
|
|
7804
|
-
FloatingPanel.defaultProps = {
|
|
7805
|
-
boxShadow: true,
|
|
7806
|
-
radiusStyle: 'only-bottom'
|
|
7807
|
-
};
|
|
7808
|
-
var FloatingPanel$1 = React.memo(FloatingPanel);
|
|
7809
7827
|
|
|
7810
7828
|
var rootClassName$20 = 'dropdown-selector';
|
|
7811
7829
|
function DropdownSelector(props) {
|
|
7812
7830
|
var _useState = React.useState(false),
|
|
7813
7831
|
opened = _useState[0],
|
|
7814
7832
|
setOpened = _useState[1];
|
|
7833
|
+
var _useState2 = React.useState(null),
|
|
7834
|
+
anchorRef = _useState2[0],
|
|
7835
|
+
setAnchorRef = _useState2[1];
|
|
7815
7836
|
var label = React.useMemo(function () {
|
|
7816
7837
|
var _ref, _props$options$find$l, _props$options, _props$options$find;
|
|
7817
7838
|
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) {
|
|
@@ -7834,6 +7855,9 @@ function DropdownSelector(props) {
|
|
|
7834
7855
|
return React__default.createElement("div", {
|
|
7835
7856
|
className: useMergedClassNames([rootClassName$20 + "-wrapper", props.w100 ? 'w-100' : '', opened ? 'opened' : ''])
|
|
7836
7857
|
}, React__default.createElement("button", {
|
|
7858
|
+
ref: function ref(r) {
|
|
7859
|
+
return setAnchorRef(r);
|
|
7860
|
+
},
|
|
7837
7861
|
className: useMergedClassNames([rootClassName$20, props.w100 ? 'w-100' : '', opened ? 'opened' : '']),
|
|
7838
7862
|
onClick: function onClick() {
|
|
7839
7863
|
setOpened(!opened);
|
|
@@ -7843,6 +7867,7 @@ function DropdownSelector(props) {
|
|
|
7843
7867
|
}, label), React__default.createElement("div", {
|
|
7844
7868
|
className: useMergedClassNames([rootClassName$20 + "-icon", opened ? 'opened' : ''])
|
|
7845
7869
|
}, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement(FloatingPanel$1, {
|
|
7870
|
+
statedAnchorRef: anchorRef,
|
|
7846
7871
|
opened: opened,
|
|
7847
7872
|
setOpened: setOpened,
|
|
7848
7873
|
className: rootClassName$20 + "-menu"
|
|
@@ -7982,7 +8007,7 @@ var Etapas$1 = React.memo(Etapas);
|
|
|
7982
8007
|
EtiquetasStyle["Yellow"] = "yellow";
|
|
7983
8008
|
})(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
|
|
7984
8009
|
|
|
7985
|
-
var _excluded$
|
|
8010
|
+
var _excluded$e = ["theme", "label", "icon", "fitContent"];
|
|
7986
8011
|
var rootClassName$22 = 'component-etiqueta';
|
|
7987
8012
|
function Etiqueta(_ref) {
|
|
7988
8013
|
var _ref$theme = _ref.theme,
|
|
@@ -7990,7 +8015,7 @@ function Etiqueta(_ref) {
|
|
|
7990
8015
|
label = _ref.label,
|
|
7991
8016
|
icon = _ref.icon,
|
|
7992
8017
|
fitContent = _ref.fitContent,
|
|
7993
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8018
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
7994
8019
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
7995
8020
|
className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
|
|
7996
8021
|
}), icon ? React__default.createElement("div", {
|
|
@@ -8359,22 +8384,54 @@ function FooterSicredi(props) {
|
|
|
8359
8384
|
}
|
|
8360
8385
|
var FooterSicredi$1 = React.memo(FooterSicredi);
|
|
8361
8386
|
|
|
8387
|
+
var _excluded$f = ["header", "footer"];
|
|
8362
8388
|
var rootClassName$27 = 'full-height-container';
|
|
8363
|
-
function FullHeightContainer(
|
|
8389
|
+
function FullHeightContainer(_ref) {
|
|
8390
|
+
var header = _ref.header,
|
|
8391
|
+
footer = _ref.footer,
|
|
8392
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
8393
|
+
var headerRef = React.createRef();
|
|
8394
|
+
var contentRef = React.createRef();
|
|
8395
|
+
var footerRef = React.createRef();
|
|
8396
|
+
var mobile = useSystemInfo().isMobile;
|
|
8397
|
+
React.useLayoutEffect(function () {
|
|
8398
|
+
var observable = new ResizeObserver(function () {
|
|
8399
|
+
if (contentRef.current && header && headerRef.current) {
|
|
8400
|
+
var _headerRef$current;
|
|
8401
|
+
contentRef.current.style.paddingTop = ((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.getBoundingClientRect().height) + "px";
|
|
8402
|
+
} else if (contentRef.current) {
|
|
8403
|
+
contentRef.current.style.paddingTop = '';
|
|
8404
|
+
}
|
|
8405
|
+
if (contentRef.current && footer && footerRef.current) {
|
|
8406
|
+
var _footerRef$current;
|
|
8407
|
+
contentRef.current.style.paddingBottom = ((_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.getBoundingClientRect().height) + "px";
|
|
8408
|
+
} else if (contentRef.current) {
|
|
8409
|
+
contentRef.current.style.paddingBottom = '';
|
|
8410
|
+
}
|
|
8411
|
+
});
|
|
8412
|
+
if (headerRef.current) {
|
|
8413
|
+
observable.observe(headerRef.current);
|
|
8414
|
+
}
|
|
8415
|
+
if (footerRef.current) {
|
|
8416
|
+
observable.observe(footerRef.current);
|
|
8417
|
+
}
|
|
8418
|
+
return function () {
|
|
8419
|
+
observable.disconnect();
|
|
8420
|
+
};
|
|
8421
|
+
}, [headerRef, footerRef, contentRef, header, footer]);
|
|
8364
8422
|
return React__default.createElement("div", {
|
|
8365
8423
|
className: rootClassName$27
|
|
8366
8424
|
}, React__default.createElement("div", {
|
|
8367
|
-
className: rootClassName$27 + "-row-header"
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
className: rootClassName$27 + "-row-
|
|
8372
|
-
}, props.
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
};
|
|
8425
|
+
className: rootClassName$27 + "-row-header",
|
|
8426
|
+
ref: headerRef
|
|
8427
|
+
}, header), React__default.createElement("div", {
|
|
8428
|
+
ref: contentRef,
|
|
8429
|
+
className: getMergedClassNames([rootClassName$27 + "-row-content", props.verticalPadding ? 'vertical-padding' : '', props.horizontalPadding ? 'horizontal-padding' : '', mobile ? 'mobile' : ''])
|
|
8430
|
+
}, props.children), footer ? React__default.createElement("div", {
|
|
8431
|
+
className: rootClassName$27 + "-row-footer",
|
|
8432
|
+
ref: footerRef
|
|
8433
|
+
}, footer) : undefined);
|
|
8434
|
+
}
|
|
8378
8435
|
var FullHeightContainer$1 = React.memo(FullHeightContainer);
|
|
8379
8436
|
|
|
8380
8437
|
(function (HeaderType) {
|
|
@@ -8425,7 +8482,6 @@ function Header(props) {
|
|
|
8425
8482
|
}));
|
|
8426
8483
|
}
|
|
8427
8484
|
Header.defaultProps = {
|
|
8428
|
-
position: 'fixed',
|
|
8429
8485
|
theme: exports.HeaderType.Verde
|
|
8430
8486
|
};
|
|
8431
8487
|
var Header$1 = React.memo(Header);
|
|
@@ -8465,7 +8521,7 @@ Information.defaultProps = {
|
|
|
8465
8521
|
};
|
|
8466
8522
|
|
|
8467
8523
|
var rootClassName$2b = 'component-input';
|
|
8468
|
-
|
|
8524
|
+
var Input = React.forwardRef(function (props, ref) {
|
|
8469
8525
|
var getProps = function getProps() {
|
|
8470
8526
|
var p = _extends({}, props, {
|
|
8471
8527
|
id: props.id ? props.id + "-input" : undefined,
|
|
@@ -8490,7 +8546,8 @@ function Input(props) {
|
|
|
8490
8546
|
}, !props.hideLabelAndHelperText && React__default.createElement("div", {
|
|
8491
8547
|
className: rootClassName$2b + "-label nunito"
|
|
8492
8548
|
}, props.label || ''), React__default.createElement("div", {
|
|
8493
|
-
className: rootClassName$2b + "-input-container"
|
|
8549
|
+
className: rootClassName$2b + "-input-container",
|
|
8550
|
+
ref: ref
|
|
8494
8551
|
}, React__default.createElement("input", Object.assign({}, getProps())), props.rightObject && React__default.createElement("div", {
|
|
8495
8552
|
className: rootClassName$2b + "-right-object"
|
|
8496
8553
|
}, props.rightObject)), !props.hideLabelAndHelperText && React__default.createElement("div", {
|
|
@@ -8500,7 +8557,8 @@ function Input(props) {
|
|
|
8500
8557
|
}, props.helperText || ''), props.counter && React__default.createElement("div", {
|
|
8501
8558
|
className: rootClassName$2b + "-counter"
|
|
8502
8559
|
}, "" + String(props.value || '').length + (props.maxLength || props.maxLength === 0 ? "/" + props.maxLength : ''))));
|
|
8503
|
-
}
|
|
8560
|
+
});
|
|
8561
|
+
Input.displayName = 'Input';
|
|
8504
8562
|
Input.defaultProps = {
|
|
8505
8563
|
value: '',
|
|
8506
8564
|
loading: false,
|
|
@@ -8572,90 +8630,46 @@ InputArea.defaultProps = {
|
|
|
8572
8630
|
};
|
|
8573
8631
|
var InputArea$1 = React.memo(InputArea);
|
|
8574
8632
|
|
|
8633
|
+
var _excluded$g = ["label", "opened", "setOpened", "closeOnOutClick", "closeOnEsc", "downloads"];
|
|
8575
8634
|
var rootClassName$2d = 'component-item-dropdown-download';
|
|
8576
|
-
function ItemDropdownDownload(
|
|
8577
|
-
var
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
delete p.closeOnOutClick;
|
|
8596
|
-
delete p.closeOnEsc;
|
|
8597
|
-
delete p.downloads;
|
|
8598
|
-
return p;
|
|
8599
|
-
}, [props]);
|
|
8600
|
-
React.useEffect(function () {
|
|
8601
|
-
var onHandleClick = function onHandleClick(evt) {
|
|
8602
|
-
if (evt.path) {
|
|
8603
|
-
if (document.querySelector("#" + id + " ." + rootClassName$2d + "-panel.panel-fade-enter-done") && !evt.path.includes(document.querySelector("#" + id))) props.setOpened(false);
|
|
8604
|
-
} else {
|
|
8605
|
-
var aux = evt.target;
|
|
8606
|
-
var deveFechar = true;
|
|
8607
|
-
while (aux && aux.id !== 'root') {
|
|
8608
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2d + "-outer")) {
|
|
8609
|
-
deveFechar = false;
|
|
8610
|
-
break;
|
|
8611
|
-
}
|
|
8612
|
-
aux = aux.parentElement;
|
|
8613
|
-
}
|
|
8614
|
-
if (deveFechar) {
|
|
8615
|
-
props.setOpened(false);
|
|
8616
|
-
}
|
|
8617
|
-
}
|
|
8618
|
-
};
|
|
8619
|
-
var onEscPress = function onEscPress(evt) {
|
|
8620
|
-
if (evt.key === 'Escape') {
|
|
8621
|
-
props.setOpened(false);
|
|
8622
|
-
}
|
|
8623
|
-
};
|
|
8624
|
-
if (props.closeOnOutClick) {
|
|
8625
|
-
if (props.opened) {
|
|
8626
|
-
document.addEventListener('mousedown', onHandleClick);
|
|
8627
|
-
} else {
|
|
8628
|
-
document.removeEventListener('mousedown', onHandleClick);
|
|
8635
|
+
function ItemDropdownDownload(_ref) {
|
|
8636
|
+
var label = _ref.label,
|
|
8637
|
+
opened = _ref.opened,
|
|
8638
|
+
setOpened = _ref.setOpened,
|
|
8639
|
+
_ref$downloads = _ref.downloads,
|
|
8640
|
+
downloads = _ref$downloads === void 0 ? [] : _ref$downloads,
|
|
8641
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8642
|
+
var _useState = React.useState(null),
|
|
8643
|
+
ref = _useState[0],
|
|
8644
|
+
setRef = _useState[1];
|
|
8645
|
+
var classNames = useMergedClassNames([rootClassName$2d, props.className || '', opened ? 'opened' : 'closed']);
|
|
8646
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("button", Object.assign({}, props, {
|
|
8647
|
+
ref: function ref(e) {
|
|
8648
|
+
return setRef(e);
|
|
8649
|
+
},
|
|
8650
|
+
className: classNames,
|
|
8651
|
+
onClick: function onClick(evt) {
|
|
8652
|
+
if (typeof props.onClick === 'function') {
|
|
8653
|
+
props.onClick(evt);
|
|
8629
8654
|
}
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
if (props.opened) {
|
|
8633
|
-
document.addEventListener('keyup', onEscPress);
|
|
8634
|
-
} else {
|
|
8635
|
-
document.removeEventListener('keyup', onEscPress);
|
|
8655
|
+
if (typeof setOpened === 'function') {
|
|
8656
|
+
setOpened(!opened);
|
|
8636
8657
|
}
|
|
8637
8658
|
}
|
|
8638
|
-
|
|
8639
|
-
document.removeEventListener('mousedown', onHandleClick);
|
|
8640
|
-
document.removeEventListener('click', onHandleClick);
|
|
8641
|
-
document.removeEventListener('keyup', onEscPress);
|
|
8642
|
-
};
|
|
8643
|
-
}, [props.opened]);
|
|
8644
|
-
return React__default.createElement("div", {
|
|
8645
|
-
className: rootClassName$2d + "-outer",
|
|
8646
|
-
id: id
|
|
8647
|
-
}, React__default.createElement("button", Object.assign({}, filteredProps), React__default.createElement("div", {
|
|
8659
|
+
}), React__default.createElement("div", {
|
|
8648
8660
|
className: rootClassName$2d + "-label"
|
|
8649
|
-
},
|
|
8650
|
-
className: getMergedClassNames([rootClassName$2d + "-arrow",
|
|
8651
|
-
}, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement(
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8661
|
+
}, label), React__default.createElement("div", {
|
|
8662
|
+
className: getMergedClassNames([rootClassName$2d + "-arrow", opened ? 'up' : 'down'])
|
|
8663
|
+
}, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement(FloatingPanel$1, {
|
|
8664
|
+
matchWidth: true,
|
|
8665
|
+
opened: opened,
|
|
8666
|
+
setOpened: setOpened,
|
|
8667
|
+
statedAnchorRef: ref,
|
|
8668
|
+
placement: 'bottom',
|
|
8669
|
+
fallbackPlacements: ['bottom', 'top', 'left', 'right'],
|
|
8670
|
+
offset: 6,
|
|
8657
8671
|
className: rootClassName$2d + "-panel"
|
|
8658
|
-
},
|
|
8672
|
+
}, downloads === null || downloads === void 0 ? void 0 : downloads.map(function (download, index) {
|
|
8659
8673
|
return React__default.createElement("button", {
|
|
8660
8674
|
id: download.id || undefined,
|
|
8661
8675
|
className: rootClassName$2d + "-item " + (download.loading ? 'loading' : ''),
|
|
@@ -8672,12 +8686,8 @@ function ItemDropdownDownload(props) {
|
|
|
8672
8686
|
}, download.loading ? React__default.createElement(PercentLoaderIcon, {
|
|
8673
8687
|
indefinido: true
|
|
8674
8688
|
}) : React__default.createElement(CloudDownloadIcon, null)));
|
|
8675
|
-
})
|
|
8689
|
+
})));
|
|
8676
8690
|
}
|
|
8677
|
-
ItemDropdownDownload.defaultProps = {
|
|
8678
|
-
closeOnOutClick: true,
|
|
8679
|
-
closeOnEsc: true
|
|
8680
|
-
};
|
|
8681
8691
|
var ItemDropdownDownload$1 = React.memo(ItemDropdownDownload);
|
|
8682
8692
|
|
|
8683
8693
|
var rootClassName$2e = 'component-menu-item';
|
|
@@ -8948,7 +8958,7 @@ function useScreenSize() {
|
|
|
8948
8958
|
return value;
|
|
8949
8959
|
}
|
|
8950
8960
|
|
|
8951
|
-
var _excluded$
|
|
8961
|
+
var _excluded$h = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
|
|
8952
8962
|
var rootClassName$2g = 'component-modal';
|
|
8953
8963
|
function Modal(_ref) {
|
|
8954
8964
|
var className = _ref.className,
|
|
@@ -8962,7 +8972,7 @@ function Modal(_ref) {
|
|
|
8962
8972
|
_ref$tag = _ref.tag,
|
|
8963
8973
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
8964
8974
|
title = _ref.title,
|
|
8965
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8975
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8966
8976
|
var _useScreenSize = useScreenSize(),
|
|
8967
8977
|
rankedSize = _useScreenSize.rankedSize;
|
|
8968
8978
|
var modalProps = React.useMemo(function () {
|
|
@@ -9135,7 +9145,7 @@ PageSubTitle.defaultProps = {
|
|
|
9135
9145
|
text: ''
|
|
9136
9146
|
};
|
|
9137
9147
|
|
|
9138
|
-
var _excluded$
|
|
9148
|
+
var _excluded$i = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9139
9149
|
function usePagination(props) {
|
|
9140
9150
|
var _ref;
|
|
9141
9151
|
if (props === void 0) {
|
|
@@ -9159,7 +9169,7 @@ function usePagination(props) {
|
|
|
9159
9169
|
_props$siblingCount = _props.siblingCount,
|
|
9160
9170
|
siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
|
|
9161
9171
|
maxLength = _props.maxLength,
|
|
9162
|
-
other = _objectWithoutPropertiesLoose(_props, _excluded$
|
|
9172
|
+
other = _objectWithoutPropertiesLoose(_props, _excluded$i);
|
|
9163
9173
|
var isControlledRef = React.useRef(pageProp !== undefined);
|
|
9164
9174
|
var _useState = React.useState(currentPage),
|
|
9165
9175
|
pageCurrent = _useState[0],
|
|
@@ -9251,7 +9261,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9251
9261
|
}));
|
|
9252
9262
|
};
|
|
9253
9263
|
|
|
9254
|
-
var _excluded$
|
|
9264
|
+
var _excluded$j = ["page", "type", "selected"];
|
|
9255
9265
|
var rootClassName$2k = 'pagination-component';
|
|
9256
9266
|
var Pagination = function Pagination(props) {
|
|
9257
9267
|
var _useScreenSize = useScreenSize(),
|
|
@@ -9377,7 +9387,7 @@ var Pagination = function Pagination(props) {
|
|
|
9377
9387
|
var page = _ref2.page,
|
|
9378
9388
|
type = _ref2.type,
|
|
9379
9389
|
selected = _ref2.selected,
|
|
9380
|
-
item = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9390
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
9381
9391
|
var children = null;
|
|
9382
9392
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9383
9393
|
children = React__default.createElement("li", {
|
|
@@ -9717,7 +9727,7 @@ var PreviaVideo$1 = React.memo(PreviaVideo);
|
|
|
9717
9727
|
RadioButtonType["New"] = "new";
|
|
9718
9728
|
})(exports.RadioButtonType || (exports.RadioButtonType = {}));
|
|
9719
9729
|
|
|
9720
|
-
var _excluded$
|
|
9730
|
+
var _excluded$k = ["onChange", "value", "className", "theme", "error", "type"];
|
|
9721
9731
|
var rootClassName$2o = 'component-radio-button';
|
|
9722
9732
|
function RadioButton(_ref) {
|
|
9723
9733
|
var onChange = _ref.onChange,
|
|
@@ -9730,7 +9740,7 @@ function RadioButton(_ref) {
|
|
|
9730
9740
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
9731
9741
|
_ref$type = _ref.type,
|
|
9732
9742
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
9733
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9743
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
9734
9744
|
var classNames = useMergedClassNames([rootClassName$2o, theme, className]);
|
|
9735
9745
|
return React__default.createElement("button", Object.assign({}, props, {
|
|
9736
9746
|
type: type,
|
|
@@ -10081,25 +10091,24 @@ var Search$1 = React.memo(Search);
|
|
|
10081
10091
|
|
|
10082
10092
|
var rootClassName$2r = 'component-select';
|
|
10083
10093
|
function Select(props) {
|
|
10084
|
-
var _props$
|
|
10085
|
-
var
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
var
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
var
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
interRef.current = inter;
|
|
10094
|
+
var _props$options4;
|
|
10095
|
+
var systemInfo = useSystemInfo();
|
|
10096
|
+
var panelId = React.useMemo(function () {
|
|
10097
|
+
return getUniqueKey();
|
|
10098
|
+
}, []);
|
|
10099
|
+
var _useState = React.useState(),
|
|
10100
|
+
anchorRef = _useState[0],
|
|
10101
|
+
setAnchorRef = _useState[1];
|
|
10102
|
+
var wrapperRef = React.createRef();
|
|
10103
|
+
var _useState2 = React.useState(false),
|
|
10104
|
+
panelOpened = _useState2[0],
|
|
10105
|
+
setPanelOpened = _useState2[1];
|
|
10106
|
+
var _useState3 = React.useState(''),
|
|
10107
|
+
filterInput = _useState3[0],
|
|
10108
|
+
setFilterInput = _useState3[1];
|
|
10109
|
+
var _useState4 = React.useState(false),
|
|
10110
|
+
fakeSelectFocused = _useState4[0],
|
|
10111
|
+
setFakeSelectFocused = _useState4[1];
|
|
10103
10112
|
var getKey = function getKey(option) {
|
|
10104
10113
|
if (option) {
|
|
10105
10114
|
if (option.key) return option.key;
|
|
@@ -10107,93 +10116,6 @@ function Select(props) {
|
|
|
10107
10116
|
}
|
|
10108
10117
|
return getUniqueKey();
|
|
10109
10118
|
};
|
|
10110
|
-
React.useEffect(function () {
|
|
10111
|
-
var func = function func(evt) {
|
|
10112
|
-
var aux = evt.target;
|
|
10113
|
-
var deveFechar = true;
|
|
10114
|
-
while (aux && aux.id !== 'root') {
|
|
10115
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2r + "-outer")) {
|
|
10116
|
-
deveFechar = false;
|
|
10117
|
-
break;
|
|
10118
|
-
}
|
|
10119
|
-
aux = aux.parentElement;
|
|
10120
|
-
}
|
|
10121
|
-
if (deveFechar) {
|
|
10122
|
-
setPanelOpened(false);
|
|
10123
|
-
}
|
|
10124
|
-
};
|
|
10125
|
-
var onEsc = function onEsc(evt) {
|
|
10126
|
-
if (evt.key === 'Escape') {
|
|
10127
|
-
setPanelOpened(false);
|
|
10128
|
-
evt.preventDefault();
|
|
10129
|
-
evt.stopPropagation();
|
|
10130
|
-
}
|
|
10131
|
-
};
|
|
10132
|
-
if (panelOpened) {
|
|
10133
|
-
var _document, _document$querySelect;
|
|
10134
|
-
document.addEventListener('keydown', onEsc);
|
|
10135
|
-
document.addEventListener('click', func);
|
|
10136
|
-
document.body.append(document.querySelector("#" + panelId));
|
|
10137
|
-
(_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));
|
|
10138
|
-
} else {
|
|
10139
|
-
document.removeEventListener('keydown', onEsc);
|
|
10140
|
-
document.removeEventListener('click', func);
|
|
10141
|
-
setTimeout(function () {
|
|
10142
|
-
return setFilterInput('');
|
|
10143
|
-
}, 400);
|
|
10144
|
-
}
|
|
10145
|
-
return function () {
|
|
10146
|
-
document.removeEventListener('keydown', onEsc);
|
|
10147
|
-
document.removeEventListener('click', func);
|
|
10148
|
-
};
|
|
10149
|
-
}, [id, panelId, panelOpened]);
|
|
10150
|
-
React.useEffect(function () {
|
|
10151
|
-
if (interRef.current) {
|
|
10152
|
-
clearInterval(interRef.current);
|
|
10153
|
-
setInter(null);
|
|
10154
|
-
}
|
|
10155
|
-
var position = function position() {
|
|
10156
|
-
var trigger = document.querySelector("#" + id);
|
|
10157
|
-
var panel = document.querySelector("#" + panelId + ".panel-fade-enter-active, #" + panelId + ".panel-fade-enter-done, #" + panelId + ".panel-fade-exit-active");
|
|
10158
|
-
if (!trigger || !panel) return;
|
|
10159
|
-
var triggerBound = trigger.getBoundingClientRect();
|
|
10160
|
-
panel.style.width = triggerBound.width + "px";
|
|
10161
|
-
var windowHeight = window.innerHeight;
|
|
10162
|
-
var panelHeight = panel.getBoundingClientRect().height;
|
|
10163
|
-
var fitBottom = panelHeight + triggerBound.bottom < windowHeight;
|
|
10164
|
-
var fitTop = triggerBound.top - panelHeight > 0;
|
|
10165
|
-
if (fitBottom && !props.bottomPanel) {
|
|
10166
|
-
panel.style.top = triggerBound.bottom - 16 + "px";
|
|
10167
|
-
panel.style.left = 'unset';
|
|
10168
|
-
panel.style.bottom = 'unset';
|
|
10169
|
-
panel.style.borderRadius = '0 0 8px 8px';
|
|
10170
|
-
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10171
|
-
} else if (fitTop && !props.bottomPanel) {
|
|
10172
|
-
panel.style.top = triggerBound.top - panelHeight + "px";
|
|
10173
|
-
panel.style.left = 'unset';
|
|
10174
|
-
panel.style.bottom = 'unset';
|
|
10175
|
-
panel.style.borderRadius = '8px';
|
|
10176
|
-
panel.style.boxShadow = '0 0 2px 0 rgba(90, 100, 90, 0.3)';
|
|
10177
|
-
} else {
|
|
10178
|
-
panel.style.top = 'unset';
|
|
10179
|
-
panel.style.left = '0';
|
|
10180
|
-
panel.style.bottom = '0';
|
|
10181
|
-
panel.style.width = '100%';
|
|
10182
|
-
panel.style.borderRadius = '8px 8px 0 0';
|
|
10183
|
-
panel.style.boxShadow = '0 -10px 0 5000px rgba(0, 0, 0, 0.5)';
|
|
10184
|
-
}
|
|
10185
|
-
};
|
|
10186
|
-
if (panelOpened) {
|
|
10187
|
-
position();
|
|
10188
|
-
setInter(setInterval(position, 20));
|
|
10189
|
-
}
|
|
10190
|
-
return function () {
|
|
10191
|
-
if (interRef.current) {
|
|
10192
|
-
clearInterval(interRef.current);
|
|
10193
|
-
setInter(null);
|
|
10194
|
-
}
|
|
10195
|
-
};
|
|
10196
|
-
}, [panelOpened]);
|
|
10197
10119
|
var opcoes = JSON.stringify(props.options);
|
|
10198
10120
|
React.useEffect(function () {
|
|
10199
10121
|
if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
|
|
@@ -10208,7 +10130,7 @@ function Select(props) {
|
|
|
10208
10130
|
}
|
|
10209
10131
|
}
|
|
10210
10132
|
}, [opcoes]);
|
|
10211
|
-
var
|
|
10133
|
+
var RightObject = React.useMemo(function () {
|
|
10212
10134
|
return React__default.createElement("div", {
|
|
10213
10135
|
className: rootClassName$2r + "-objects"
|
|
10214
10136
|
}, 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__default.createElement(IconButton$1, {
|
|
@@ -10217,6 +10139,7 @@ function Select(props) {
|
|
|
10217
10139
|
className: rootClassName$2r + "-clear-button",
|
|
10218
10140
|
icon: React__default.createElement(CloseIcon, null),
|
|
10219
10141
|
onClick: function onClick() {
|
|
10142
|
+
setPanelOpened(false);
|
|
10220
10143
|
if (props.multiple) {
|
|
10221
10144
|
props.onChange([], {
|
|
10222
10145
|
setPanelOpened: setPanelOpened
|
|
@@ -10236,25 +10159,27 @@ function Select(props) {
|
|
|
10236
10159
|
},
|
|
10237
10160
|
icon: React__default.createElement(ChevronArrowDownIcon, null)
|
|
10238
10161
|
}));
|
|
10239
|
-
};
|
|
10162
|
+
}, [panelOpened, props]);
|
|
10240
10163
|
var getInputProps = function getInputProps() {
|
|
10241
10164
|
var _props$options;
|
|
10242
10165
|
var p = _extends({}, props, {
|
|
10243
10166
|
className: getMergedClassNames([rootClassName$2r, props.className]),
|
|
10244
10167
|
forceFocus: fakeSelectFocused,
|
|
10245
10168
|
readOnly: true,
|
|
10246
|
-
rightObject:
|
|
10169
|
+
rightObject: RightObject,
|
|
10247
10170
|
onClick: function onClick() {
|
|
10248
|
-
var
|
|
10249
|
-
|
|
10171
|
+
var _wrapperRef$current;
|
|
10172
|
+
var selectFake = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10173
|
+
if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
|
|
10250
10174
|
selectFake.focus();
|
|
10251
10175
|
} else {
|
|
10252
10176
|
setPanelOpened(!panelOpened);
|
|
10253
10177
|
}
|
|
10254
10178
|
},
|
|
10255
10179
|
onFocus: function onFocus(evt) {
|
|
10256
|
-
var
|
|
10257
|
-
|
|
10180
|
+
var _wrapperRef$current2;
|
|
10181
|
+
var selectFake = (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10182
|
+
if (!props.multiple && systemInfo.os === exports.OS.iOS && selectFake) {
|
|
10258
10183
|
selectFake.focus();
|
|
10259
10184
|
} else {
|
|
10260
10185
|
evt.target.setSelectionRange(0, 0);
|
|
@@ -10271,7 +10196,7 @@ function Select(props) {
|
|
|
10271
10196
|
inputFilter.focus();
|
|
10272
10197
|
evt.preventDefault();
|
|
10273
10198
|
} else {
|
|
10274
|
-
var firstOption = document.querySelector("#" +
|
|
10199
|
+
var firstOption = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10275
10200
|
if (firstOption) {
|
|
10276
10201
|
firstOption.focus();
|
|
10277
10202
|
evt.preventDefault();
|
|
@@ -10286,7 +10211,6 @@ function Select(props) {
|
|
|
10286
10211
|
})[0]
|
|
10287
10212
|
});
|
|
10288
10213
|
delete p.showPanelFooter;
|
|
10289
|
-
delete p.bottomPanel;
|
|
10290
10214
|
delete p.clearButton;
|
|
10291
10215
|
delete p.multiplePlaceholder;
|
|
10292
10216
|
delete p.multiple;
|
|
@@ -10450,48 +10374,19 @@ function Select(props) {
|
|
|
10450
10374
|
var optionsFiltered = React.useMemo(function () {
|
|
10451
10375
|
var _props$options2;
|
|
10452
10376
|
return ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (op) {
|
|
10453
|
-
return getStringWithoutSpecialChar(op.label).toLowerCase().
|
|
10377
|
+
return getStringWithoutSpecialChar(String(op.label)).toLowerCase().includes(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10454
10378
|
})) || [];
|
|
10455
10379
|
}, [props.options, filterInput]);
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
}, !props.multiple && isiPhone() && React__default.createElement("select", {
|
|
10460
|
-
className: rootClassName$2r + "-select-fake",
|
|
10461
|
-
value: props.value ? String(props.value) : '',
|
|
10462
|
-
onChange: function onChange(evt) {
|
|
10463
|
-
return props.onChange(evt.target.value, {
|
|
10464
|
-
setPanelOpened: setPanelOpened
|
|
10465
|
-
});
|
|
10466
|
-
},
|
|
10467
|
-
tabIndex: props.tabIndex,
|
|
10468
|
-
onFocus: function onFocus() {
|
|
10469
|
-
return setFakeSelectFocused(true);
|
|
10470
|
-
},
|
|
10471
|
-
onBlur: function onBlur() {
|
|
10472
|
-
return setFakeSelectFocused(false);
|
|
10473
|
-
}
|
|
10474
|
-
}, React__default.createElement("option", {
|
|
10475
|
-
value: '',
|
|
10476
|
-
disabled: true
|
|
10477
|
-
}, languageValues.components.select.single.fakeOption), (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt) {
|
|
10478
|
-
return React__default.createElement("option", {
|
|
10479
|
-
key: getKey(opt),
|
|
10480
|
-
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10481
|
-
}, opt.label);
|
|
10482
|
-
})), React__default.createElement(Input$1, Object.assign({}, getInputProps())), React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
10483
|
-
"in": panelOpened,
|
|
10484
|
-
timeout: 300,
|
|
10485
|
-
classNames: 'panel-fade',
|
|
10486
|
-
unmountOnExit: true,
|
|
10487
|
-
onEnter: function onEnter() {
|
|
10380
|
+
var skipFirst = React.useRef(true);
|
|
10381
|
+
React.useLayoutEffect(function () {
|
|
10382
|
+
if (panelOpened) {
|
|
10488
10383
|
var panel = document.querySelector("#" + panelId);
|
|
10489
10384
|
if (window.innerHeight < panel.getBoundingClientRect().bottom) {
|
|
10490
10385
|
panel.style.top = 'unset';
|
|
10491
10386
|
panel.style.bottom = '0';
|
|
10492
10387
|
}
|
|
10493
10388
|
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-panel-input input");
|
|
10494
|
-
if (firstInput &&
|
|
10389
|
+
if (firstInput && systemInfo.os !== exports.OS.iOS) {
|
|
10495
10390
|
setTimeout(function () {
|
|
10496
10391
|
firstInput.focus();
|
|
10497
10392
|
}, 50);
|
|
@@ -10504,8 +10399,8 @@ function Select(props) {
|
|
|
10504
10399
|
}, 50);
|
|
10505
10400
|
}
|
|
10506
10401
|
} else {
|
|
10507
|
-
var _props$
|
|
10508
|
-
var elProps = (_props$
|
|
10402
|
+
var _props$options3;
|
|
10403
|
+
var elProps = (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt, index) {
|
|
10509
10404
|
return _extends({}, opt, {
|
|
10510
10405
|
ind: index
|
|
10511
10406
|
});
|
|
@@ -10522,16 +10417,71 @@ function Select(props) {
|
|
|
10522
10417
|
}
|
|
10523
10418
|
}
|
|
10524
10419
|
}
|
|
10525
|
-
}
|
|
10526
|
-
|
|
10527
|
-
var inputElement =
|
|
10528
|
-
if (inputElement &&
|
|
10420
|
+
} else if (!skipFirst.current) {
|
|
10421
|
+
var _wrapperRef$current3;
|
|
10422
|
+
var inputElement = (_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.querySelector("input");
|
|
10423
|
+
if (inputElement && systemInfo.os !== exports.OS.iOS) {
|
|
10529
10424
|
inputElement.focus();
|
|
10530
10425
|
}
|
|
10426
|
+
} else if (skipFirst) {
|
|
10427
|
+
skipFirst.current = false;
|
|
10531
10428
|
}
|
|
10532
|
-
},
|
|
10429
|
+
}, [panelOpened]);
|
|
10430
|
+
var setMaxHeight = React.useCallback(function (h) {
|
|
10431
|
+
var max = h - 12;
|
|
10432
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options");
|
|
10433
|
+
if (props.showPanelFooter) {
|
|
10434
|
+
max -= 40;
|
|
10435
|
+
}
|
|
10436
|
+
if (props.panelFilter) {
|
|
10437
|
+
max -= 48;
|
|
10438
|
+
}
|
|
10439
|
+
if (window.innerHeight > 400) {
|
|
10440
|
+
max = Math.min(max, 40 * 6);
|
|
10441
|
+
}
|
|
10442
|
+
el === null || el === void 0 ? void 0 : el.style.setProperty('max-height', max + "px");
|
|
10443
|
+
}, [panelId, props.showPanelFooter, props.panelFilter]);
|
|
10444
|
+
return React__default.createElement("div", {
|
|
10445
|
+
ref: wrapperRef,
|
|
10446
|
+
className: rootClassName$2r + "-outer"
|
|
10447
|
+
}, !props.multiple && systemInfo.os === exports.OS.iOS && React__default.createElement("select", {
|
|
10448
|
+
className: rootClassName$2r + "-select-fake",
|
|
10449
|
+
value: props.value ? String(props.value) : '',
|
|
10450
|
+
onChange: function onChange(evt) {
|
|
10451
|
+
return props.onChange(evt.target.value, {
|
|
10452
|
+
setPanelOpened: setPanelOpened
|
|
10453
|
+
});
|
|
10454
|
+
},
|
|
10455
|
+
tabIndex: props.tabIndex,
|
|
10456
|
+
onFocus: function onFocus() {
|
|
10457
|
+
return setFakeSelectFocused(true);
|
|
10458
|
+
},
|
|
10459
|
+
onBlur: function onBlur() {
|
|
10460
|
+
return setFakeSelectFocused(false);
|
|
10461
|
+
}
|
|
10462
|
+
}, React__default.createElement("option", {
|
|
10463
|
+
value: '',
|
|
10464
|
+
disabled: true
|
|
10465
|
+
}, languageValues.components.select.single.fakeOption), (_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.map(function (opt) {
|
|
10466
|
+
return React__default.createElement("option", {
|
|
10467
|
+
key: getKey(opt),
|
|
10468
|
+
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10469
|
+
}, opt.label);
|
|
10470
|
+
})), React__default.createElement(Input$1, Object.assign({}, getInputProps(), {
|
|
10471
|
+
ref: function ref(r) {
|
|
10472
|
+
return setAnchorRef(r);
|
|
10473
|
+
}
|
|
10474
|
+
})), React__default.createElement(FloatingPanel$1, {
|
|
10475
|
+
statedAnchorRef: anchorRef,
|
|
10476
|
+
opened: panelOpened,
|
|
10477
|
+
setOpened: setPanelOpened,
|
|
10478
|
+
matchWidth: true,
|
|
10479
|
+
placement: 'bottom',
|
|
10480
|
+
fallbackPlacements: ['top', 'left', 'right'],
|
|
10481
|
+
offset: 1,
|
|
10533
10482
|
id: panelId,
|
|
10534
|
-
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : '')
|
|
10483
|
+
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : ''),
|
|
10484
|
+
heightAvaliableCallback: setMaxHeight
|
|
10535
10485
|
}, props.panelFilter && props.options && !!props.options.length && React__default.createElement("div", {
|
|
10536
10486
|
className: rootClassName$2r + "-panel-input"
|
|
10537
10487
|
}, React__default.createElement(Input$1, {
|
|
@@ -10543,7 +10493,7 @@ function Select(props) {
|
|
|
10543
10493
|
hideLabelAndHelperText: true,
|
|
10544
10494
|
onKeyDown: function onKeyDown(evt) {
|
|
10545
10495
|
if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'ArrowDown') {
|
|
10546
|
-
var el = document.querySelector("#" +
|
|
10496
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10547
10497
|
if (el) {
|
|
10548
10498
|
el.focus();
|
|
10549
10499
|
evt.preventDefault();
|
|
@@ -10583,7 +10533,7 @@ function Select(props) {
|
|
|
10583
10533
|
setPanelOpened: setPanelOpened
|
|
10584
10534
|
});
|
|
10585
10535
|
}
|
|
10586
|
-
}, languageValues.components.select.clearAll)))))
|
|
10536
|
+
}, languageValues.components.select.clearAll)))));
|
|
10587
10537
|
}
|
|
10588
10538
|
Select.defaultProps = {
|
|
10589
10539
|
onChange: undefined,
|
|
@@ -10630,7 +10580,7 @@ Switch.defaultProps = {
|
|
|
10630
10580
|
scale: 1
|
|
10631
10581
|
};
|
|
10632
10582
|
|
|
10633
|
-
var _excluded$
|
|
10583
|
+
var _excluded$l = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10634
10584
|
var rootClassName$2t = 'component-table';
|
|
10635
10585
|
function TypedTable(props) {
|
|
10636
10586
|
return React__default.createElement(Table, Object.assign({}, props));
|
|
@@ -10643,7 +10593,7 @@ function Table(_ref) {
|
|
|
10643
10593
|
sortable = _ref.sortable,
|
|
10644
10594
|
upperHeader = _ref.upperHeader,
|
|
10645
10595
|
className = _ref.className,
|
|
10646
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10596
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
10647
10597
|
var itemsId = React.useMemo(function () {
|
|
10648
10598
|
return "table" + getUniqueKey();
|
|
10649
10599
|
}, []);
|
|
@@ -11242,13 +11192,13 @@ function TextEditorColorPicker(props) {
|
|
|
11242
11192
|
}, "OK")));
|
|
11243
11193
|
}
|
|
11244
11194
|
|
|
11245
|
-
var _excluded$
|
|
11195
|
+
var _excluded$m = ["icon", "active"];
|
|
11246
11196
|
var rootClassName$2C = 'text-editor-header-button';
|
|
11247
11197
|
function TextEditorHeaderButton(_ref) {
|
|
11248
11198
|
var _props$className;
|
|
11249
11199
|
var icon = _ref.icon,
|
|
11250
11200
|
active = _ref.active,
|
|
11251
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11201
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
11252
11202
|
return React__default.createElement("button", Object.assign({
|
|
11253
11203
|
className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11254
11204
|
}, props), icon);
|
|
@@ -11796,6 +11746,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11796
11746
|
return a.id !== id;
|
|
11797
11747
|
});
|
|
11798
11748
|
setArrayOfToast(arr);
|
|
11749
|
+
toasts.current = arr;
|
|
11799
11750
|
};
|
|
11800
11751
|
React.useImperativeHandle(ref, function () {
|
|
11801
11752
|
return {
|
|
@@ -12104,7 +12055,7 @@ TopLoader.defaultProps = {
|
|
|
12104
12055
|
})
|
|
12105
12056
|
};
|
|
12106
12057
|
|
|
12107
|
-
var _excluded$
|
|
12058
|
+
var _excluded$n = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
|
|
12108
12059
|
var rootClassName$2M = 'video-modal';
|
|
12109
12060
|
function VideoModal(_ref) {
|
|
12110
12061
|
var _ref2;
|
|
@@ -12118,7 +12069,7 @@ function VideoModal(_ref) {
|
|
|
12118
12069
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
12119
12070
|
urlVideo = _ref.urlVideo,
|
|
12120
12071
|
videoPlayerProps = _ref.videoPlayerProps,
|
|
12121
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12072
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
12122
12073
|
var _useScreenSize = useScreenSize(),
|
|
12123
12074
|
rankedSize = _useScreenSize.rankedSize;
|
|
12124
12075
|
var handleClose = React.useCallback(function () {
|
|
@@ -12144,13 +12095,57 @@ VideoModal.defaultProps = {
|
|
|
12144
12095
|
size: 'md'
|
|
12145
12096
|
};
|
|
12146
12097
|
|
|
12147
|
-
var _excluded$
|
|
12098
|
+
var _excluded$o = ["className"];
|
|
12148
12099
|
var rootClassName$2N = 'icon-component';
|
|
12149
|
-
var
|
|
12100
|
+
var Bell16Icon = function Bell16Icon(_ref) {
|
|
12150
12101
|
var _ref$className = _ref.className,
|
|
12151
12102
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12152
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12103
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
12153
12104
|
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12105
|
+
return React__default.createElement("svg", Object.assign({
|
|
12106
|
+
width: '16',
|
|
12107
|
+
height: '16',
|
|
12108
|
+
viewBox: '0 0 16 16',
|
|
12109
|
+
fill: 'none',
|
|
12110
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12111
|
+
className: classNames
|
|
12112
|
+
}, props), React__default.createElement("path", {
|
|
12113
|
+
fillRule: 'evenodd',
|
|
12114
|
+
clipRule: 'evenodd',
|
|
12115
|
+
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',
|
|
12116
|
+
fill: 'currentColor'
|
|
12117
|
+
}));
|
|
12118
|
+
};
|
|
12119
|
+
|
|
12120
|
+
var _excluded$p = ["className"];
|
|
12121
|
+
var rootClassName$2O = 'icon-component';
|
|
12122
|
+
var BellIcon = function BellIcon(_ref) {
|
|
12123
|
+
var _ref$className = _ref.className,
|
|
12124
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12125
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
12126
|
+
var classNames = useMergedClassNames([rootClassName$2O, className]);
|
|
12127
|
+
return React__default.createElement("svg", Object.assign({
|
|
12128
|
+
width: '24',
|
|
12129
|
+
height: '24',
|
|
12130
|
+
viewBox: '0 0 24 24',
|
|
12131
|
+
fill: 'none',
|
|
12132
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12133
|
+
className: classNames
|
|
12134
|
+
}, props), React__default.createElement("path", {
|
|
12135
|
+
fillRule: 'evenodd',
|
|
12136
|
+
clipRule: 'evenodd',
|
|
12137
|
+
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',
|
|
12138
|
+
fill: 'currentColor'
|
|
12139
|
+
}));
|
|
12140
|
+
};
|
|
12141
|
+
|
|
12142
|
+
var _excluded$q = ["className"];
|
|
12143
|
+
var rootClassName$2P = 'icon-component';
|
|
12144
|
+
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12145
|
+
var _ref$className = _ref.className,
|
|
12146
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12147
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
12148
|
+
var classNames = useMergedClassNames([rootClassName$2P, className]);
|
|
12154
12149
|
return React__default.createElement("svg", Object.assign({
|
|
12155
12150
|
viewBox: '0 0 12 12',
|
|
12156
12151
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -12165,10 +12160,10 @@ var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
|
12165
12160
|
}));
|
|
12166
12161
|
};
|
|
12167
12162
|
|
|
12168
|
-
var rootClassName$
|
|
12163
|
+
var rootClassName$2Q = 'icon-component';
|
|
12169
12164
|
var PhonePlusIcon = function PhonePlusIcon() {
|
|
12170
12165
|
return React__default.createElement("svg", {
|
|
12171
|
-
className: rootClassName$
|
|
12166
|
+
className: rootClassName$2Q,
|
|
12172
12167
|
viewBox: '0 0 24 24',
|
|
12173
12168
|
fill: 'currentColor',
|
|
12174
12169
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -12179,7 +12174,22 @@ var PhonePlusIcon = function PhonePlusIcon() {
|
|
|
12179
12174
|
}));
|
|
12180
12175
|
};
|
|
12181
12176
|
|
|
12182
|
-
var rootClassName$
|
|
12177
|
+
var rootClassName$2R = 'icon-component';
|
|
12178
|
+
var Settings16Icon = function Settings16Icon() {
|
|
12179
|
+
return React__default.createElement("svg", {
|
|
12180
|
+
className: rootClassName$2R,
|
|
12181
|
+
viewBox: '0 0 16 16',
|
|
12182
|
+
fill: 'currentColor',
|
|
12183
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
12184
|
+
}, React__default.createElement("path", {
|
|
12185
|
+
fillRule: 'evenodd',
|
|
12186
|
+
clipRule: 'evenodd',
|
|
12187
|
+
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',
|
|
12188
|
+
fill: 'currentColor'
|
|
12189
|
+
}));
|
|
12190
|
+
};
|
|
12191
|
+
|
|
12192
|
+
var rootClassName$2S = 'calendar-header';
|
|
12183
12193
|
function CalendarHeader(props) {
|
|
12184
12194
|
var size = useScreenSize();
|
|
12185
12195
|
var days = React.useMemo(function () {
|
|
@@ -12189,16 +12199,16 @@ function CalendarHeader(props) {
|
|
|
12189
12199
|
return props.language.daysOfWeek;
|
|
12190
12200
|
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
12191
12201
|
return React__default.createElement("div", {
|
|
12192
|
-
className: rootClassName$
|
|
12202
|
+
className: rootClassName$2S
|
|
12193
12203
|
}, days.map(function (d, i) {
|
|
12194
12204
|
return React__default.createElement("div", {
|
|
12195
|
-
className: rootClassName$
|
|
12205
|
+
className: rootClassName$2S + "-day",
|
|
12196
12206
|
key: i
|
|
12197
12207
|
}, d);
|
|
12198
12208
|
}));
|
|
12199
12209
|
}
|
|
12200
12210
|
|
|
12201
|
-
var rootClassName$
|
|
12211
|
+
var rootClassName$2T = 'evento-calendario';
|
|
12202
12212
|
function CalendarEvent(props) {
|
|
12203
12213
|
var _useState = React.useState(props.forceExpanded || false),
|
|
12204
12214
|
expanded = _useState[0],
|
|
@@ -12227,12 +12237,12 @@ function CalendarEvent(props) {
|
|
|
12227
12237
|
return React__default.createElement(React.Fragment, null, "large");
|
|
12228
12238
|
case 'medium':
|
|
12229
12239
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12230
|
-
className: rootClassName$
|
|
12240
|
+
className: rootClassName$2T + "-tipo",
|
|
12231
12241
|
style: {
|
|
12232
12242
|
borderColor: props.color
|
|
12233
12243
|
}
|
|
12234
12244
|
}, props.tipoEvento), React__default.createElement("div", {
|
|
12235
|
-
className: rootClassName$
|
|
12245
|
+
className: rootClassName$2T + "-label"
|
|
12236
12246
|
}, React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
12237
12247
|
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
12238
12248
|
timeout: 300,
|
|
@@ -12242,26 +12252,26 @@ function CalendarEvent(props) {
|
|
|
12242
12252
|
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
12243
12253
|
animateOpacity: true
|
|
12244
12254
|
}, React__default.createElement(React.Fragment, null, React__default.createElement("span", null, props.expandedLabel), React__default.createElement("div", {
|
|
12245
|
-
className: rootClassName$
|
|
12255
|
+
className: rootClassName$2T + "-date-label"
|
|
12246
12256
|
}, props.expandedDate)))), React__default.createElement("div", {
|
|
12247
|
-
className: rootClassName$
|
|
12257
|
+
className: rootClassName$2T + "-modalidade"
|
|
12248
12258
|
}, React__default.createElement("div", {
|
|
12249
|
-
className: rootClassName$
|
|
12259
|
+
className: rootClassName$2T + "-icon"
|
|
12250
12260
|
}, props.icon), React__default.createElement("div", {
|
|
12251
|
-
className: rootClassName$
|
|
12261
|
+
className: rootClassName$2T + "-modalidade-label nunito"
|
|
12252
12262
|
}, props.iconLabel)));
|
|
12253
12263
|
case 'small':
|
|
12254
12264
|
default:
|
|
12255
12265
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12256
|
-
className: rootClassName$
|
|
12266
|
+
className: rootClassName$2T + "-icon"
|
|
12257
12267
|
}, props.icon), React__default.createElement("div", {
|
|
12258
|
-
className: rootClassName$
|
|
12268
|
+
className: rootClassName$2T + "-label nunito"
|
|
12259
12269
|
}, props.tipoEvento, " | ", props.label));
|
|
12260
12270
|
}
|
|
12261
12271
|
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
12262
12272
|
return React__default.createElement("button", {
|
|
12263
12273
|
ref: ref,
|
|
12264
|
-
className: useMergedClassNames([rootClassName$
|
|
12274
|
+
className: useMergedClassNames([rootClassName$2T, props.size, props.borderStyle]),
|
|
12265
12275
|
disabled: props.disabled,
|
|
12266
12276
|
onClick: function onClick(evt) {
|
|
12267
12277
|
if (typeof props.onClick === 'function') {
|
|
@@ -12287,10 +12297,10 @@ CalendarEvent.defaultProps = {
|
|
|
12287
12297
|
};
|
|
12288
12298
|
var CalendarEvent$1 = React.memo(CalendarEvent);
|
|
12289
12299
|
|
|
12290
|
-
var rootClassName$
|
|
12300
|
+
var rootClassName$2U = 'calendar-chip';
|
|
12291
12301
|
function CalendarChip(props) {
|
|
12292
12302
|
return React__default.createElement("button", {
|
|
12293
|
-
className: useMergedClassNames([rootClassName$
|
|
12303
|
+
className: useMergedClassNames([rootClassName$2U, 'nunito']),
|
|
12294
12304
|
onClick: props.onClick,
|
|
12295
12305
|
disabled: props.disabled,
|
|
12296
12306
|
style: {
|
|
@@ -12305,11 +12315,11 @@ CalendarChip.defaultProps = {
|
|
|
12305
12315
|
};
|
|
12306
12316
|
var CalendarChip$1 = React.memo(CalendarChip);
|
|
12307
12317
|
|
|
12308
|
-
var rootClassName$
|
|
12318
|
+
var rootClassName$2V = 'calendar-month-day';
|
|
12309
12319
|
function CalendarMonthDay(props) {
|
|
12310
12320
|
var _props$eventos, _props$eventos$length, _props$eventos2, _props$eventos$length2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
12311
12321
|
var classNames = React.useMemo(function () {
|
|
12312
|
-
return getMergedClassNames([rootClassName$
|
|
12322
|
+
return getMergedClassNames([rootClassName$2V, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
12313
12323
|
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
12314
12324
|
var date = new Date();
|
|
12315
12325
|
date.setDate(date.getDate() - 1);
|
|
@@ -12323,9 +12333,9 @@ function CalendarMonthDay(props) {
|
|
|
12323
12333
|
}
|
|
12324
12334
|
}
|
|
12325
12335
|
}, React__default.createElement("div", {
|
|
12326
|
-
className: rootClassName$
|
|
12336
|
+
className: rootClassName$2V + "-label-line"
|
|
12327
12337
|
}, React__default.createElement("div", {
|
|
12328
|
-
className: rootClassName$
|
|
12338
|
+
className: rootClassName$2V + "-day nunito",
|
|
12329
12339
|
onClick: function onClick(evt) {
|
|
12330
12340
|
if (props.pocket && !props.disabled && typeof props.onPlusButtonClick === 'function') {
|
|
12331
12341
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -12346,7 +12356,7 @@ function CalendarMonthDay(props) {
|
|
|
12346
12356
|
},
|
|
12347
12357
|
disabled: props.disabled
|
|
12348
12358
|
}) : undefined)), !props.pocket ? React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12349
|
-
className: rootClassName$
|
|
12359
|
+
className: rootClassName$2V + "-eventos"
|
|
12350
12360
|
}, (_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) {
|
|
12351
12361
|
return React__default.createElement(CalendarEvent$1, Object.assign({
|
|
12352
12362
|
key: e.id
|
|
@@ -12355,7 +12365,7 @@ function CalendarMonthDay(props) {
|
|
|
12355
12365
|
}));
|
|
12356
12366
|
})), props.showAddButton ? React__default.createElement("button", {
|
|
12357
12367
|
disabled: props.disabledPrevAddButton ? props.day < date ? true : false : false,
|
|
12358
|
-
className: rootClassName$
|
|
12368
|
+
className: rootClassName$2V + "-button",
|
|
12359
12369
|
onClick: function onClick(evt) {
|
|
12360
12370
|
if (typeof props.onAddButtonClick === 'function') {
|
|
12361
12371
|
var _props$onAddButtonCli;
|
|
@@ -12367,7 +12377,7 @@ function CalendarMonthDay(props) {
|
|
|
12367
12377
|
}
|
|
12368
12378
|
var CalendarMonthDay$1 = React.memo(CalendarMonthDay);
|
|
12369
12379
|
|
|
12370
|
-
var rootClassName$
|
|
12380
|
+
var rootClassName$2W = 'calendar-days';
|
|
12371
12381
|
function CalendarDays(props) {
|
|
12372
12382
|
var today = React.useMemo(function () {
|
|
12373
12383
|
return new Date();
|
|
@@ -12385,7 +12395,7 @@ function CalendarDays(props) {
|
|
|
12385
12395
|
return false;
|
|
12386
12396
|
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
12387
12397
|
return React__default.createElement("div", {
|
|
12388
|
-
className: rootClassName$
|
|
12398
|
+
className: rootClassName$2W
|
|
12389
12399
|
}, days.map(function (d) {
|
|
12390
12400
|
var _props$eventos;
|
|
12391
12401
|
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
@@ -12410,8 +12420,8 @@ function CalendarDays(props) {
|
|
|
12410
12420
|
}
|
|
12411
12421
|
var CalendarDays$1 = React.memo(CalendarDays);
|
|
12412
12422
|
|
|
12413
|
-
var _excluded$
|
|
12414
|
-
var rootClassName$
|
|
12423
|
+
var _excluded$r = ["language", "visao", "referencia"];
|
|
12424
|
+
var rootClassName$2X = 'calendar';
|
|
12415
12425
|
function Calendar(_ref) {
|
|
12416
12426
|
var _ref$language = _ref.language,
|
|
12417
12427
|
language = _ref$language === void 0 ? ptbrCalendarLanguage : _ref$language,
|
|
@@ -12419,7 +12429,7 @@ function Calendar(_ref) {
|
|
|
12419
12429
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12420
12430
|
_ref$referencia = _ref.referencia,
|
|
12421
12431
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12422
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12432
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
12423
12433
|
var id = React.useMemo(getUniqueKey, []);
|
|
12424
12434
|
var _useState = React.useState(false),
|
|
12425
12435
|
pocket = _useState[0],
|
|
@@ -12427,7 +12437,7 @@ function Calendar(_ref) {
|
|
|
12427
12437
|
var pocketRef = React.useRef(pocket);
|
|
12428
12438
|
pocketRef.current = pocket;
|
|
12429
12439
|
var classNames = React.useMemo(function () {
|
|
12430
|
-
return getMergedClassNames([rootClassName$
|
|
12440
|
+
return getMergedClassNames([rootClassName$2X, props.loading ? 'loading' : '']);
|
|
12431
12441
|
}, [props.loading]);
|
|
12432
12442
|
var cbResize = React.useCallback(function (evt) {
|
|
12433
12443
|
if (pocketRef.current) {
|
|
@@ -12503,7 +12513,7 @@ function FormattedText(text) {
|
|
|
12503
12513
|
}));
|
|
12504
12514
|
}
|
|
12505
12515
|
|
|
12506
|
-
var rootClassName$
|
|
12516
|
+
var rootClassName$2Y = 'scroll-arrow-overflow';
|
|
12507
12517
|
function ScrollArrowOverflow(props) {
|
|
12508
12518
|
var ref = React.createRef();
|
|
12509
12519
|
var atualRef = React.useRef(0);
|
|
@@ -12575,9 +12585,9 @@ function ScrollArrowOverflow(props) {
|
|
|
12575
12585
|
};
|
|
12576
12586
|
}, []);
|
|
12577
12587
|
return React__default.createElement("div", {
|
|
12578
|
-
className: useMergedClassNames([rootClassName$
|
|
12588
|
+
className: useMergedClassNames([rootClassName$2Y, props.arrows])
|
|
12579
12589
|
}, React__default.createElement("div", {
|
|
12580
|
-
className: rootClassName$
|
|
12590
|
+
className: rootClassName$2Y + "-navigation"
|
|
12581
12591
|
}, React__default.createElement(IconButton$1, {
|
|
12582
12592
|
disabled: start,
|
|
12583
12593
|
icon: React__default.createElement(CircleArrowLeft, null),
|
|
@@ -12592,7 +12602,7 @@ function ScrollArrowOverflow(props) {
|
|
|
12592
12602
|
}
|
|
12593
12603
|
})), React__default.createElement("div", {
|
|
12594
12604
|
ref: ref,
|
|
12595
|
-
className: rootClassName$
|
|
12605
|
+
className: rootClassName$2Y + "-overflow"
|
|
12596
12606
|
}, props.children));
|
|
12597
12607
|
}
|
|
12598
12608
|
ScrollArrowOverflow.defaultProps = {
|
|
@@ -12601,26 +12611,26 @@ ScrollArrowOverflow.defaultProps = {
|
|
|
12601
12611
|
};
|
|
12602
12612
|
var ScrollArrowOverflow$1 = React.memo(ScrollArrowOverflow);
|
|
12603
12613
|
|
|
12604
|
-
var rootClassName$
|
|
12614
|
+
var rootClassName$2Z = 'hour-events';
|
|
12605
12615
|
function HourEvents(props) {
|
|
12606
12616
|
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
12607
12617
|
var _useState = React.useState(props.defaultOpened),
|
|
12608
12618
|
opened = _useState[0],
|
|
12609
12619
|
setOpened = _useState[1];
|
|
12610
12620
|
return React__default.createElement("div", {
|
|
12611
|
-
className: rootClassName$
|
|
12621
|
+
className: rootClassName$2Z
|
|
12612
12622
|
}, React__default.createElement("div", {
|
|
12613
|
-
className: rootClassName$
|
|
12623
|
+
className: rootClassName$2Z + "-first-line"
|
|
12614
12624
|
}, React__default.createElement("div", {
|
|
12615
|
-
className: rootClassName$
|
|
12625
|
+
className: rootClassName$2Z + "-hour"
|
|
12616
12626
|
}, props.hour), React__default.createElement("div", {
|
|
12617
|
-
className: rootClassName$
|
|
12627
|
+
className: rootClassName$2Z + "-line"
|
|
12618
12628
|
}), !props.events || !props.events.length ? React__default.createElement("div", {
|
|
12619
|
-
className: rootClassName$
|
|
12629
|
+
className: rootClassName$2Z + "-no-events nunito"
|
|
12620
12630
|
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React__default.createElement("div", {
|
|
12621
|
-
className: rootClassName$
|
|
12631
|
+
className: rootClassName$2Z + "-counter nunito"
|
|
12622
12632
|
}, (_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__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12623
|
-
className: rootClassName$
|
|
12633
|
+
className: rootClassName$2Z + "-toggle"
|
|
12624
12634
|
}, React__default.createElement(Button$1, {
|
|
12625
12635
|
theme: exports.ButtonThemes.DefaultPrimary,
|
|
12626
12636
|
onClick: function onClick() {
|
|
@@ -12655,7 +12665,7 @@ HourEvents.defaultProps = {
|
|
|
12655
12665
|
};
|
|
12656
12666
|
var HourEvents$1 = React.memo(HourEvents);
|
|
12657
12667
|
|
|
12658
|
-
var rootClassName$
|
|
12668
|
+
var rootClassName$2_ = 'inline-month-picker';
|
|
12659
12669
|
function InlineMonthPicker(props) {
|
|
12660
12670
|
var _props$labelGen;
|
|
12661
12671
|
var d = new Date(props.value.getTime());
|
|
@@ -12667,13 +12677,13 @@ function InlineMonthPicker(props) {
|
|
|
12667
12677
|
}
|
|
12668
12678
|
};
|
|
12669
12679
|
return React__default.createElement("div", {
|
|
12670
|
-
className: rootClassName$
|
|
12680
|
+
className: rootClassName$2_
|
|
12671
12681
|
}, React__default.createElement("div", {
|
|
12672
|
-
className: rootClassName$
|
|
12682
|
+
className: rootClassName$2_ + "-icon"
|
|
12673
12683
|
}, React__default.createElement(CalendarCheckIcon, null)), React__default.createElement("div", {
|
|
12674
|
-
className: rootClassName$
|
|
12684
|
+
className: rootClassName$2_ + "-label"
|
|
12675
12685
|
}, (_props$labelGen = props.labelGen) === null || _props$labelGen === void 0 ? void 0 : _props$labelGen.call(props, props.value)), React__default.createElement("div", {
|
|
12676
|
-
className: rootClassName$
|
|
12686
|
+
className: rootClassName$2_ + "-actions"
|
|
12677
12687
|
}, React__default.createElement(IconButton$1, {
|
|
12678
12688
|
icon: React__default.createElement(ChevronArrowLeftIcon, null),
|
|
12679
12689
|
onClick: function onClick() {
|
|
@@ -12699,7 +12709,113 @@ InlineMonthPicker.defaultProps = {
|
|
|
12699
12709
|
};
|
|
12700
12710
|
var InlineMonthPicker$1 = React.memo(InlineMonthPicker);
|
|
12701
12711
|
|
|
12702
|
-
var rootClassName$
|
|
12712
|
+
var rootClassName$2$ = 'component-notification-panel';
|
|
12713
|
+
function NotificationPanel(_ref) {
|
|
12714
|
+
var opened = _ref.opened,
|
|
12715
|
+
setOpened = _ref.setOpened,
|
|
12716
|
+
icon = _ref.children,
|
|
12717
|
+
_ref$notifications = _ref.notifications,
|
|
12718
|
+
notifications = _ref$notifications === void 0 ? [] : _ref$notifications,
|
|
12719
|
+
title = _ref.title,
|
|
12720
|
+
settingsButton = _ref.settingsButton,
|
|
12721
|
+
loading = _ref.loading,
|
|
12722
|
+
paginator = _ref.paginator;
|
|
12723
|
+
var _useState = React.useState(null),
|
|
12724
|
+
panelRef = _useState[0],
|
|
12725
|
+
setPanelRef = _useState[1];
|
|
12726
|
+
var _useState2 = React.useState(null),
|
|
12727
|
+
anchorRef = _useState2[0],
|
|
12728
|
+
setAnchorRef = _useState2[1];
|
|
12729
|
+
var headerRef = React__default.createRef();
|
|
12730
|
+
var footerRef = React__default.createRef();
|
|
12731
|
+
var bodyRef = React__default.createRef();
|
|
12732
|
+
React.useLayoutEffect(function () {
|
|
12733
|
+
var _headerRef$current$cl, _headerRef$current, _footerRef$current$cl, _footerRef$current, _bodyRef$current;
|
|
12734
|
+
var mh = panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight;
|
|
12735
|
+
var headerHeight = (_headerRef$current$cl = (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.clientHeight) != null ? _headerRef$current$cl : 0;
|
|
12736
|
+
var footerHeight = (_footerRef$current$cl = (_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.clientHeight) != null ? _footerRef$current$cl : 0;
|
|
12737
|
+
(_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');
|
|
12738
|
+
}, [bodyRef, footerRef, headerRef, panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight]);
|
|
12739
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
12740
|
+
stateOpened: [opened, setOpened],
|
|
12741
|
+
elements: {
|
|
12742
|
+
floating: panelRef,
|
|
12743
|
+
reference: anchorRef
|
|
12744
|
+
},
|
|
12745
|
+
strategy: 'fixed',
|
|
12746
|
+
matchWidth: false,
|
|
12747
|
+
placement: 'bottom-end',
|
|
12748
|
+
offset: 4
|
|
12749
|
+
}),
|
|
12750
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
12751
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
12752
|
+
useEvent([{
|
|
12753
|
+
event: 'keydown',
|
|
12754
|
+
handler: function handler(e) {
|
|
12755
|
+
if (opened && 'key' in e && e.key === 'Escape') {
|
|
12756
|
+
setOpened(false);
|
|
12757
|
+
e.preventDefault();
|
|
12758
|
+
e.stopPropagation();
|
|
12759
|
+
}
|
|
12760
|
+
}
|
|
12761
|
+
}]);
|
|
12762
|
+
useOutsideClick([{
|
|
12763
|
+
current: panelRef
|
|
12764
|
+
}, {
|
|
12765
|
+
current: anchorRef
|
|
12766
|
+
}], function (isInside) {
|
|
12767
|
+
if (opened && !isInside) setOpened(false);
|
|
12768
|
+
});
|
|
12769
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12770
|
+
ref: function ref(e) {
|
|
12771
|
+
return setAnchorRef(e);
|
|
12772
|
+
}
|
|
12773
|
+
}, icon), isMounted && React__default.createElement("div", {
|
|
12774
|
+
ref: function ref(e) {
|
|
12775
|
+
return setPanelRef(e);
|
|
12776
|
+
},
|
|
12777
|
+
className: rootClassName$2$,
|
|
12778
|
+
style: _extends({}, panelStyles)
|
|
12779
|
+
}, React__default.createElement("div", {
|
|
12780
|
+
className: rootClassName$2$ + "-header",
|
|
12781
|
+
ref: headerRef
|
|
12782
|
+
}, React__default.createElement(Bell16Icon, {
|
|
12783
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12784
|
+
}), React__default.createElement("div", {
|
|
12785
|
+
className: rootClassName$2$ + "-header-title"
|
|
12786
|
+
}, title), loading && React__default.createElement(PercentLoaderIcon, {
|
|
12787
|
+
indefinido: true,
|
|
12788
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12789
|
+
}), settingsButton), React__default.createElement("div", {
|
|
12790
|
+
className: rootClassName$2$ + "-body scroll-white",
|
|
12791
|
+
ref: bodyRef
|
|
12792
|
+
}, notifications.map(function (n, i) {
|
|
12793
|
+
return React__default.createElement("div", {
|
|
12794
|
+
key: n.text + "-" + i,
|
|
12795
|
+
className: rootClassName$2$ + "-noti",
|
|
12796
|
+
onClick: n.onClick
|
|
12797
|
+
}, React__default.createElement("div", {
|
|
12798
|
+
className: rootClassName$2$ + "-noti-left"
|
|
12799
|
+
}, React__default.createElement("div", {
|
|
12800
|
+
className: rootClassName$2$ + "-noti-head"
|
|
12801
|
+
}, n.alert && React__default.createElement("span", {
|
|
12802
|
+
className: rootClassName$2$ + "-noti-alert"
|
|
12803
|
+
}), React__default.createElement("div", {
|
|
12804
|
+
className: rootClassName$2$ + "-noti-title"
|
|
12805
|
+
}, n.title)), n.text && React__default.createElement("div", {
|
|
12806
|
+
className: rootClassName$2$ + "-noti-text"
|
|
12807
|
+
}, n.text), n.date && React__default.createElement("div", {
|
|
12808
|
+
className: rootClassName$2$ + "-noti-date"
|
|
12809
|
+
}, n.date)), React__default.createElement("div", {
|
|
12810
|
+
className: rootClassName$2$ + "-noti-right"
|
|
12811
|
+
}, React__default.createElement(CircleArrowRight, null)));
|
|
12812
|
+
})), Boolean(paginator) && React__default.createElement("div", {
|
|
12813
|
+
className: rootClassName$2$ + "-footer",
|
|
12814
|
+
ref: footerRef
|
|
12815
|
+
}, paginator)));
|
|
12816
|
+
}
|
|
12817
|
+
|
|
12818
|
+
var rootClassName$30 = 'qrcode';
|
|
12703
12819
|
function QRCode(props) {
|
|
12704
12820
|
var ref = React.createRef();
|
|
12705
12821
|
React.useEffect(function () {
|
|
@@ -12718,7 +12834,7 @@ function QRCode(props) {
|
|
|
12718
12834
|
});
|
|
12719
12835
|
}, [props, ref]);
|
|
12720
12836
|
var className = React.useMemo(function () {
|
|
12721
|
-
return getMergedClassNames([rootClassName$
|
|
12837
|
+
return getMergedClassNames([rootClassName$30, props.button ? 'button' : '']);
|
|
12722
12838
|
}, [props.button]);
|
|
12723
12839
|
return React__default.createElement("div", {
|
|
12724
12840
|
className: className,
|
|
@@ -12739,10 +12855,10 @@ QRCode.defaultProps = {
|
|
|
12739
12855
|
};
|
|
12740
12856
|
var QRCode$1 = React.memo(QRCode);
|
|
12741
12857
|
|
|
12742
|
-
var rootClassName$
|
|
12858
|
+
var rootClassName$31 = 'icon-component';
|
|
12743
12859
|
var DecreaseIcon = function DecreaseIcon() {
|
|
12744
12860
|
return React__default.createElement("svg", {
|
|
12745
|
-
className: rootClassName$
|
|
12861
|
+
className: rootClassName$31,
|
|
12746
12862
|
viewBox: '0 0 24 24',
|
|
12747
12863
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
12748
12864
|
}, React__default.createElement("path", {
|
|
@@ -12753,12 +12869,12 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
12753
12869
|
}));
|
|
12754
12870
|
};
|
|
12755
12871
|
|
|
12756
|
-
var _excluded$
|
|
12757
|
-
var rootClassName$
|
|
12872
|
+
var _excluded$s = ["type"];
|
|
12873
|
+
var rootClassName$32 = 'component-table-left-checkbox-with-label';
|
|
12758
12874
|
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12759
12875
|
var _props$spanProps2, _props$spanProps3;
|
|
12760
12876
|
var type = _ref.type,
|
|
12761
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12877
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12762
12878
|
var style = React.useMemo(function () {
|
|
12763
12879
|
var _props$spanProps$styl, _props$spanProps;
|
|
12764
12880
|
var style = _extends({
|
|
@@ -12773,13 +12889,13 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12773
12889
|
return style;
|
|
12774
12890
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
12775
12891
|
return React__default.createElement("div", {
|
|
12776
|
-
className: getMergedClassNames([rootClassName$
|
|
12892
|
+
className: getMergedClassNames([rootClassName$32, props.w100 ? 'w-100' : ''])
|
|
12777
12893
|
}, React__default.createElement("span", {
|
|
12778
|
-
className: rootClassName$
|
|
12894
|
+
className: rootClassName$32 + "-checkbox-wrapper",
|
|
12779
12895
|
"tooltip-position": props['tooltip-position'],
|
|
12780
12896
|
"tooltip-text": props['tooltip-text']
|
|
12781
12897
|
}, type === 'addRemove' ? React__default.createElement(IconButton$1, {
|
|
12782
|
-
className: getMergedClassNames([rootClassName$
|
|
12898
|
+
className: getMergedClassNames([rootClassName$32 + "-add-remove-button", props.value ? rootClassName$32 + "-danger" : '']),
|
|
12783
12899
|
icon: props.value ? React__default.createElement(DecreaseIcon, null) : React__default.createElement(AddIcon, null),
|
|
12784
12900
|
disabled: props.disabled,
|
|
12785
12901
|
onClick: function onClick(evt) {
|
|
@@ -12793,7 +12909,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12793
12909
|
onChange: props.onChange,
|
|
12794
12910
|
theme: props.theme
|
|
12795
12911
|
})), React__default.createElement("span", Object.assign({}, (_props$spanProps2 = props.spanProps) != null ? _props$spanProps2 : {}, {
|
|
12796
|
-
className: getMergedClassNames([rootClassName$
|
|
12912
|
+
className: getMergedClassNames([rootClassName$32 + "-label-wrapper", ((_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.className) || '']),
|
|
12797
12913
|
style: style,
|
|
12798
12914
|
onClick: function onClick(evt) {
|
|
12799
12915
|
var _props$spanProps4, _props$spanProps4$onC;
|
|
@@ -12806,7 +12922,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12806
12922
|
}), props.label));
|
|
12807
12923
|
};
|
|
12808
12924
|
|
|
12809
|
-
var rootClassName$
|
|
12925
|
+
var rootClassName$33 = 'tooltip-element';
|
|
12810
12926
|
function TooltipElement(_ref) {
|
|
12811
12927
|
var label = _ref.label,
|
|
12812
12928
|
_ref$placement = _ref.placement,
|
|
@@ -12865,14 +12981,14 @@ function TooltipElement(_ref) {
|
|
|
12865
12981
|
isMounted = _useTransitionStyles.isMounted,
|
|
12866
12982
|
transitionStyles = _useTransitionStyles.styles;
|
|
12867
12983
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", Object.assign({
|
|
12868
|
-
className: rootClassName$
|
|
12984
|
+
className: rootClassName$33 + "-reference",
|
|
12869
12985
|
ref: refs.setReference
|
|
12870
12986
|
}, getReferenceProps(wrapperProps)), children), React__default.createElement(react.FloatingPortal, null, isMounted && React__default.createElement("div", Object.assign({
|
|
12871
|
-
className: rootClassName$
|
|
12987
|
+
className: rootClassName$33 + "-tooltip",
|
|
12872
12988
|
ref: refs.setFloating,
|
|
12873
12989
|
style: _extends({}, floatingStyles, transitionStyles)
|
|
12874
12990
|
}, getFloatingProps()), React__default.createElement("span", {
|
|
12875
|
-
className: rootClassName$
|
|
12991
|
+
className: rootClassName$33 + "-label"
|
|
12876
12992
|
}, label), React__default.createElement(react.FloatingArrow, {
|
|
12877
12993
|
ref: arrowRef,
|
|
12878
12994
|
context: context,
|
|
@@ -12880,8 +12996,8 @@ function TooltipElement(_ref) {
|
|
|
12880
12996
|
}))));
|
|
12881
12997
|
}
|
|
12882
12998
|
|
|
12883
|
-
var _excluded$
|
|
12884
|
-
var rootClassName$
|
|
12999
|
+
var _excluded$t = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
13000
|
+
var rootClassName$34 = 'typography';
|
|
12885
13001
|
var Typography = React.forwardRef(function (_ref, ref) {
|
|
12886
13002
|
var _ref$className = _ref.className,
|
|
12887
13003
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -12900,8 +13016,8 @@ var Typography = React.forwardRef(function (_ref, ref) {
|
|
|
12900
13016
|
} : _ref$format,
|
|
12901
13017
|
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
12902
13018
|
children = _ref.children,
|
|
12903
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12904
|
-
var classNames = useMergedClassNames([rootClassName$
|
|
13019
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
13020
|
+
var classNames = useMergedClassNames([rootClassName$34 + "-tp", focus ? rootClassName$34 + "-focus" : '', color, variant, className]);
|
|
12905
13021
|
var tag = React.useMemo(function () {
|
|
12906
13022
|
switch (variant) {
|
|
12907
13023
|
case 'body':
|
|
@@ -43965,7 +44081,7 @@ function useHTMLShare() {
|
|
|
43965
44081
|
};
|
|
43966
44082
|
}
|
|
43967
44083
|
|
|
43968
|
-
var rootClassName$
|
|
44084
|
+
var rootClassName$35 = 'comp-modal-manager';
|
|
43969
44085
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
43970
44086
|
var hackFocus$1 = function hackFocus() {
|
|
43971
44087
|
var tmp = document.createElement('input');
|
|
@@ -44033,13 +44149,13 @@ function useModalManager() {
|
|
|
44033
44149
|
return [React__default.createElement(React__default.Fragment, {
|
|
44034
44150
|
key: 1
|
|
44035
44151
|
}, React__default.createElement(reactTransitionGroup.TransitionGroup, {
|
|
44036
|
-
className: rootClassName$
|
|
44152
|
+
className: rootClassName$35 + "-modals"
|
|
44037
44153
|
}, arrayOfModal.map(function (obj) {
|
|
44038
44154
|
var _obj$props2, _obj$props3;
|
|
44039
44155
|
var ModalComponent = React__default.createElement(obj.component, obj.props);
|
|
44040
44156
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
44041
44157
|
timeout: 300,
|
|
44042
|
-
classNames: rootClassName$
|
|
44158
|
+
classNames: rootClassName$35 + "-mask",
|
|
44043
44159
|
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
44044
44160
|
unmountOnExit: true
|
|
44045
44161
|
}, React__default.createElement(ModalMask, {
|
|
@@ -44310,7 +44426,7 @@ function useTimeElapsed(timeLeftInSeconds, callBackZero) {
|
|
|
44310
44426
|
return timeToReturn;
|
|
44311
44427
|
}
|
|
44312
44428
|
|
|
44313
|
-
var rootClassName$
|
|
44429
|
+
var rootClassName$36 = 'comp-toast-manager';
|
|
44314
44430
|
var count$1 = 0;
|
|
44315
44431
|
function useToastManager(props) {
|
|
44316
44432
|
var _props$max;
|
|
@@ -44330,6 +44446,7 @@ function useToastManager(props) {
|
|
|
44330
44446
|
return a.id !== id;
|
|
44331
44447
|
});
|
|
44332
44448
|
setArrayOfToast(arr);
|
|
44449
|
+
toastsRef.current = arr;
|
|
44333
44450
|
};
|
|
44334
44451
|
var showToast = React.useCallback(function (toast) {
|
|
44335
44452
|
var id = "toaster-" + count$1;
|
|
@@ -44355,17 +44472,17 @@ function useToastManager(props) {
|
|
|
44355
44472
|
toastsRef.current = [];
|
|
44356
44473
|
}, []);
|
|
44357
44474
|
var classNames = React.useMemo(function () {
|
|
44358
|
-
return getMergedClassNames([rootClassName$
|
|
44475
|
+
return getMergedClassNames([rootClassName$36 + "-toasts", rootClassName$36 + "-" + verticalPosition, rootClassName$36 + "-" + horizontalPosition, reverse ? rootClassName$36 + "-reverse" : '', animateSize ? rootClassName$36 + "-animate-size" : '']);
|
|
44359
44476
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
44360
44477
|
React.useLayoutEffect(function () {
|
|
44361
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
44478
|
+
var wrapper = document.querySelector("." + rootClassName$36 + "-toasts");
|
|
44362
44479
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
44363
44480
|
var somaDasAlturas = 0;
|
|
44364
44481
|
if (verticalPosition === 'top' && !reverse) {
|
|
44365
44482
|
somaDasAlturas = 12;
|
|
44366
44483
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
44367
44484
|
var el = wrapper.children[i];
|
|
44368
|
-
if (!el.classList.contains(rootClassName$
|
|
44485
|
+
if (!el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44369
44486
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44370
44487
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
44371
44488
|
}
|
|
@@ -44373,7 +44490,7 @@ function useToastManager(props) {
|
|
|
44373
44490
|
} else if (verticalPosition === 'top') {
|
|
44374
44491
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
44375
44492
|
var _el = wrapper.children[_i];
|
|
44376
|
-
if (!_el.classList.contains(rootClassName$
|
|
44493
|
+
if (!_el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44377
44494
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
44378
44495
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44379
44496
|
}
|
|
@@ -44381,7 +44498,7 @@ function useToastManager(props) {
|
|
|
44381
44498
|
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
44382
44499
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
44383
44500
|
var _el2 = wrapper.children[_i2];
|
|
44384
|
-
if (!_el2.classList.contains(rootClassName$
|
|
44501
|
+
if (!_el2.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44385
44502
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
44386
44503
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44387
44504
|
}
|
|
@@ -44390,7 +44507,7 @@ function useToastManager(props) {
|
|
|
44390
44507
|
somaDasAlturas = 12;
|
|
44391
44508
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
44392
44509
|
var _el3 = wrapper.children[_i3];
|
|
44393
|
-
if (!_el3.classList.contains(rootClassName$
|
|
44510
|
+
if (!_el3.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44394
44511
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44395
44512
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
44396
44513
|
}
|
|
@@ -44405,11 +44522,11 @@ function useToastManager(props) {
|
|
|
44405
44522
|
}, arrayOfToast.map(function (toast) {
|
|
44406
44523
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
44407
44524
|
timeout: 300,
|
|
44408
|
-
classNames: rootClassName$
|
|
44525
|
+
classNames: rootClassName$36 + "-toast",
|
|
44409
44526
|
key: toast.id,
|
|
44410
44527
|
unmountOnExit: true
|
|
44411
44528
|
}, React__default.createElement("div", {
|
|
44412
|
-
className: rootClassName$
|
|
44529
|
+
className: rootClassName$36 + "-toastzin"
|
|
44413
44530
|
}, React__default.createElement(Toast, {
|
|
44414
44531
|
theme: toast.theme,
|
|
44415
44532
|
label: toast.label,
|
|
@@ -44437,7 +44554,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44437
44554
|
return [value, setValue, validation(value)];
|
|
44438
44555
|
}
|
|
44439
44556
|
|
|
44440
|
-
var _excluded$
|
|
44557
|
+
var _excluded$u = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44441
44558
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44442
44559
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44443
44560
|
function AlertModal(_ref) {
|
|
@@ -44447,7 +44564,7 @@ function AlertModal(_ref) {
|
|
|
44447
44564
|
onConfirm = _ref.onConfirm,
|
|
44448
44565
|
_ref$showIcons = _ref.showIcons,
|
|
44449
44566
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44450
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44567
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
44451
44568
|
var _useState = React.useState(false),
|
|
44452
44569
|
loading = _useState[0],
|
|
44453
44570
|
setLoading = _useState[1];
|
|
@@ -44601,6 +44718,8 @@ exports.BackOfficeIcon = BackOfficeIcon;
|
|
|
44601
44718
|
exports.Banner = Banner;
|
|
44602
44719
|
exports.BarChartIcon = BarChartIcon;
|
|
44603
44720
|
exports.BeeIcon = BeeIcon;
|
|
44721
|
+
exports.Bell16Icon = Bell16Icon;
|
|
44722
|
+
exports.BellIcon = BellIcon;
|
|
44604
44723
|
exports.BigBlockButton = BigBlockButton;
|
|
44605
44724
|
exports.BigPlayIcon = BigPlayIcon;
|
|
44606
44725
|
exports.BoldIcon = BoldIcon;
|
|
@@ -44718,6 +44837,7 @@ exports.MoneyMonthLineChart = MoneyMonthLineChart;
|
|
|
44718
44837
|
exports.NavigatorWithMouse = NavigatorWithMouse;
|
|
44719
44838
|
exports.NotebookIcon = NotebookIcon;
|
|
44720
44839
|
exports.Notification = Notification;
|
|
44840
|
+
exports.NotificationPanel = NotificationPanel;
|
|
44721
44841
|
exports.OptionsIcon = OptionsIcon;
|
|
44722
44842
|
exports.PageSubTitle = PageSubTitle;
|
|
44723
44843
|
exports.PageTitle = PageTitle;
|
|
@@ -44746,6 +44866,7 @@ exports.ScrollArrowOverflow = ScrollArrowOverflow$1;
|
|
|
44746
44866
|
exports.Search = Search$1;
|
|
44747
44867
|
exports.SearchIcon = SearchIcon;
|
|
44748
44868
|
exports.Select = Select$1;
|
|
44869
|
+
exports.Settings16Icon = Settings16Icon;
|
|
44749
44870
|
exports.SettingsIcon = SettingsIcon;
|
|
44750
44871
|
exports.SicrediLogo = SicrediLogo;
|
|
44751
44872
|
exports.SquaresIcon = SquaresIcon;
|
|
@@ -44786,6 +44907,8 @@ exports.useCarouselBehaviour = useCarouselBehaviour;
|
|
|
44786
44907
|
exports.useControlledTimer = useControlledTimer;
|
|
44787
44908
|
exports.useDraggableContainer = useDraggableContainer;
|
|
44788
44909
|
exports.useDropOpened = useDropOpened;
|
|
44910
|
+
exports.useEvent = useEvent;
|
|
44911
|
+
exports.useFloatingPanel = useFloatingPanel;
|
|
44789
44912
|
exports.useHTMLShare = useHTMLShare;
|
|
44790
44913
|
exports.useModalManager = useModalManager;
|
|
44791
44914
|
exports.useOutsideClick = useOutsideClick;
|
|
@@ -44795,6 +44918,7 @@ exports.usePublicMenuList = usePublicMenuList;
|
|
|
44795
44918
|
exports.useScreenSize = useScreenSize;
|
|
44796
44919
|
exports.useScrollTo = useScrollTo;
|
|
44797
44920
|
exports.useStorageState = useStorageState;
|
|
44921
|
+
exports.useSystemInfo = useSystemInfo;
|
|
44798
44922
|
exports.useTimeElapsed = useTimeElapsed;
|
|
44799
44923
|
exports.useToastManager = useToastManager;
|
|
44800
44924
|
exports.useValidatedState = useValidatedState;
|