plataforma-fundacao-componentes 2.26.5 → 2.26.6
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 -3
- package/dist/components/dropdownMenu/DropdownMenu.d.ts +5 -10
- package/dist/components/floatingPanel/FloatingPanel.d.ts +17 -11
- package/dist/components/fullHeightContainer/FullHeightContainer.d.ts +2 -8
- package/dist/components/fullHeightContainer/FullHeightContainer.stories.d.ts +4 -4
- 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 +2 -8
- 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/videoModal/VideoModal.d.ts +4 -4
- package/dist/hooks/useEvent/useEvent.d.ts +6 -0
- package/dist/hooks/useFloatingPanel/useFloatingPanel.d.ts +20 -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 +228 -197
- package/dist/index.d.ts +11 -3
- package/dist/index.js +786 -673
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +783 -675
- 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/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) {
|
|
@@ -246,34 +215,33 @@ var Interval = /*#__PURE__*/function () {
|
|
|
246
215
|
};
|
|
247
216
|
return Interval;
|
|
248
217
|
}();
|
|
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
218
|
|
|
219
|
+
var _excluded = ["value", "hideCheck", "indefinido", "className"];
|
|
257
220
|
var rootClassName$7 = 'percent-loader-icon';
|
|
258
|
-
var PercentLoaderIcon = function PercentLoaderIcon(
|
|
259
|
-
var
|
|
221
|
+
var PercentLoaderIcon = function PercentLoaderIcon(_ref) {
|
|
222
|
+
var value = _ref.value,
|
|
223
|
+
hideCheck = _ref.hideCheck,
|
|
224
|
+
indefinido = _ref.indefinido,
|
|
225
|
+
_ref$className = _ref.className,
|
|
226
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
227
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
260
228
|
var getStrokeDashOffset = function getStrokeDashOffset() {
|
|
261
|
-
var
|
|
262
|
-
var v = props.indefinido ? '25' : (_props$value = props.value) != null ? _props$value : '';
|
|
229
|
+
var v = indefinido ? '25' : value != null ? value : '';
|
|
263
230
|
return 264 - 264 * parseInt(String(v)) / 100;
|
|
264
231
|
};
|
|
265
|
-
var _useState = React.useState(
|
|
232
|
+
var _useState = React.useState(indefinido ? getStrokeDashOffset() : 264),
|
|
266
233
|
sdo = _useState[0],
|
|
267
234
|
setSdo = _useState[1];
|
|
268
235
|
React.useEffect(function () {
|
|
269
236
|
setSdo(getStrokeDashOffset());
|
|
270
|
-
}, [
|
|
271
|
-
|
|
272
|
-
|
|
237
|
+
}, [value, indefinido]);
|
|
238
|
+
var classNames = useMergedClassNames([rootClassName$7, indefinido ? 'indefinido' : '', className]);
|
|
239
|
+
return React__default.createElement("svg", Object.assign({
|
|
240
|
+
className: classNames,
|
|
273
241
|
viewBox: '0 0 100 100',
|
|
274
242
|
fill: 'currentColor',
|
|
275
243
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
276
|
-
}, React__default.createElement("circle", {
|
|
244
|
+
}, props), React__default.createElement("circle", {
|
|
277
245
|
cx: '50',
|
|
278
246
|
cy: '50',
|
|
279
247
|
r: '42'
|
|
@@ -283,12 +251,12 @@ var PercentLoaderIcon = function PercentLoaderIcon(props) {
|
|
|
283
251
|
r: '42',
|
|
284
252
|
strokeDashoffset: sdo,
|
|
285
253
|
stroke: 'currentColor'
|
|
286
|
-
}), !
|
|
254
|
+
}), !indefinido && !hideCheck ? React__default.createElement("path", {
|
|
287
255
|
d: 'M710.428,339.1l12.762,12.454,22.376-25.148',
|
|
288
256
|
fill: 'none',
|
|
289
257
|
strokeWidth: '5',
|
|
290
258
|
strokeDasharray: '52',
|
|
291
|
-
strokeDashoffset: parseInt(String(
|
|
259
|
+
strokeDashoffset: parseInt(String(value != null ? value : '')) === 100 ? 0 : 52,
|
|
292
260
|
stroke: 'currentColor'
|
|
293
261
|
}) : undefined);
|
|
294
262
|
};
|
|
@@ -869,12 +837,12 @@ var CreditIcon = function CreditIcon() {
|
|
|
869
837
|
}));
|
|
870
838
|
};
|
|
871
839
|
|
|
872
|
-
var _excluded = ["className"];
|
|
840
|
+
var _excluded$1 = ["className"];
|
|
873
841
|
var rootClassName$A = 'icon-component';
|
|
874
842
|
var InformationIcon = function InformationIcon(_ref) {
|
|
875
843
|
var _ref$className = _ref.className,
|
|
876
844
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
877
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
845
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
878
846
|
var classNames = useMergedClassNames([rootClassName$A, className]);
|
|
879
847
|
return React__default.createElement("svg", Object.assign({
|
|
880
848
|
viewBox: '0 0 24 24',
|
|
@@ -1223,13 +1191,13 @@ var LinkIcon = function LinkIcon() {
|
|
|
1223
1191
|
}));
|
|
1224
1192
|
};
|
|
1225
1193
|
|
|
1226
|
-
var _excluded$
|
|
1194
|
+
var _excluded$2 = ["theme", "size", "className"];
|
|
1227
1195
|
var rootClassName$L = 'loader-three-dots';
|
|
1228
1196
|
var ThreeDotsLoader = function ThreeDotsLoader(_ref) {
|
|
1229
1197
|
var theme = _ref.theme,
|
|
1230
1198
|
size = _ref.size,
|
|
1231
1199
|
className = _ref.className,
|
|
1232
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1200
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
1233
1201
|
return React__default.createElement("div", Object.assign({
|
|
1234
1202
|
className: useMergedClassNames([rootClassName$L, className != null ? className : '', rootClassName$L + "-" + (theme != null ? theme : 'primary'), rootClassName$L + "-size-" + (size != null ? size : 3)])
|
|
1235
1203
|
}, rest), React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement("div", null));
|
|
@@ -4630,14 +4598,14 @@ function Banner(props) {
|
|
|
4630
4598
|
})));
|
|
4631
4599
|
}
|
|
4632
4600
|
|
|
4633
|
-
var _excluded$
|
|
4601
|
+
var _excluded$3 = ["icon", "label", "subtitle", "className"];
|
|
4634
4602
|
var rootClassName$1D = 'component-big-block-button';
|
|
4635
4603
|
function BigBlockButton(_ref) {
|
|
4636
4604
|
var icon = _ref.icon,
|
|
4637
4605
|
label = _ref.label,
|
|
4638
4606
|
subtitle = _ref.subtitle,
|
|
4639
4607
|
className = _ref.className,
|
|
4640
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4608
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
4641
4609
|
return React__default.createElement("button", Object.assign({}, props, {
|
|
4642
4610
|
className: useMergedClassNames([rootClassName$1D, className])
|
|
4643
4611
|
}), React__default.createElement("div", {
|
|
@@ -4660,44 +4628,55 @@ function BigBlockButton(_ref) {
|
|
|
4660
4628
|
NotificationType["PrimaryDark"] = "primary-dark";
|
|
4661
4629
|
NotificationType["PrimaryInvert"] = "primary-invert";
|
|
4662
4630
|
NotificationType["Error"] = "error";
|
|
4631
|
+
NotificationType["ErrorLight"] = "error-light";
|
|
4663
4632
|
NotificationType["Default"] = "default";
|
|
4664
4633
|
NotificationType["Disabled"] = "disabled";
|
|
4665
4634
|
})(exports.NotificationType || (exports.NotificationType = {}));
|
|
4666
4635
|
|
|
4636
|
+
var _excluded$4 = ["className", "bordered", "position", "type", "verticalOuter", "horizontalOuter"];
|
|
4667
4637
|
var rootClassName$1E = 'component-notification';
|
|
4668
|
-
function Notification(
|
|
4669
|
-
var
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4638
|
+
function Notification(_ref) {
|
|
4639
|
+
var _ref$className = _ref.className,
|
|
4640
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4641
|
+
_ref$bordered = _ref.bordered,
|
|
4642
|
+
bordered = _ref$bordered === void 0 ? false : _ref$bordered,
|
|
4643
|
+
_ref$position = _ref.position,
|
|
4644
|
+
position = _ref$position === void 0 ? exports.NotificationPosition.TopRight : _ref$position,
|
|
4645
|
+
_ref$type = _ref.type,
|
|
4646
|
+
type = _ref$type === void 0 ? exports.NotificationType.Error : _ref$type,
|
|
4647
|
+
_ref$verticalOuter = _ref.verticalOuter,
|
|
4648
|
+
verticalOuter = _ref$verticalOuter === void 0 ? 10 : _ref$verticalOuter,
|
|
4649
|
+
_ref$horizontalOuter = _ref.horizontalOuter,
|
|
4650
|
+
horizontalOuter = _ref$horizontalOuter === void 0 ? 10 : _ref$horizontalOuter,
|
|
4651
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
4652
|
+
var classNames = useMergedClassNames([rootClassName$1E + "-outer", className]);
|
|
4675
4653
|
var label = React.useMemo(function () {
|
|
4676
|
-
if (
|
|
4677
|
-
if (props.count
|
|
4654
|
+
if (props.count === true) return ' ';
|
|
4655
|
+
if (props.count === false) return '';
|
|
4656
|
+
if (typeof props.count === 'number') {
|
|
4657
|
+
if (!props.count || !String(props.count)) return 0;
|
|
4658
|
+
if (props.count < 0) return '!';
|
|
4659
|
+
}
|
|
4678
4660
|
return props.count;
|
|
4679
4661
|
}, [props.count]);
|
|
4680
|
-
return React__default.createElement("div",
|
|
4681
|
-
|
|
4662
|
+
return React__default.createElement("div", {
|
|
4663
|
+
className: classNames
|
|
4664
|
+
}, props.children, React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
4665
|
+
"in": Boolean(label),
|
|
4682
4666
|
classNames: rootClassName$1E,
|
|
4683
4667
|
timeout: 300,
|
|
4684
4668
|
unmountOnExit: true
|
|
4685
4669
|
}, React__default.createElement("div", {
|
|
4686
|
-
|
|
4670
|
+
"data-bordered": bordered,
|
|
4671
|
+
className: rootClassName$1E + " " + rootClassName$1E + "-" + position + " " + rootClassName$1E + "-" + type,
|
|
4687
4672
|
style: {
|
|
4688
|
-
top: String(
|
|
4689
|
-
right: String(
|
|
4690
|
-
left: String(
|
|
4691
|
-
bottom: String(
|
|
4673
|
+
top: String(position).match(/top/) ? 0 - (verticalOuter || 0) + "px" : 'unset',
|
|
4674
|
+
right: String(position).match(/right/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4675
|
+
left: String(position).match(/left/) ? 0 - (horizontalOuter || 0) + "px" : 'unset',
|
|
4676
|
+
bottom: String(position).match(/bottom/) ? 0 - (verticalOuter || 0) + "px" : 'unset'
|
|
4692
4677
|
}
|
|
4693
4678
|
}, label)));
|
|
4694
4679
|
}
|
|
4695
|
-
Notification.defaultProps = {
|
|
4696
|
-
type: exports.NotificationType.Error,
|
|
4697
|
-
position: exports.NotificationPosition.TopRight,
|
|
4698
|
-
verticalOuter: 10,
|
|
4699
|
-
horizontalOuter: 10
|
|
4700
|
-
};
|
|
4701
4680
|
|
|
4702
4681
|
var rootClassName$1F = 'bottom-navigation';
|
|
4703
4682
|
function BottomNavigation(props) {
|
|
@@ -4771,9 +4750,9 @@ BreadCrumb.defaultProps = {
|
|
|
4771
4750
|
ButtonThemes["HeaderUserBold"] = "header-user-bold";
|
|
4772
4751
|
})(exports.ButtonThemes || (exports.ButtonThemes = {}));
|
|
4773
4752
|
|
|
4774
|
-
var _excluded$
|
|
4753
|
+
var _excluded$5 = ["className", "theme", "w100", "leftIcon", "rightIcon", "mobileBottomPage", "loader", "loading", "children"];
|
|
4775
4754
|
var rootClassName$1H = 'component-button';
|
|
4776
|
-
|
|
4755
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
4777
4756
|
var className = _ref.className,
|
|
4778
4757
|
_ref$theme = _ref.theme,
|
|
4779
4758
|
theme = _ref$theme === void 0 ? exports.ButtonThemes.Primary : _ref$theme,
|
|
@@ -4784,7 +4763,7 @@ function Button(_ref) {
|
|
|
4784
4763
|
loader = _ref.loader,
|
|
4785
4764
|
loading = _ref.loading,
|
|
4786
4765
|
children = _ref.children,
|
|
4787
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4766
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
4788
4767
|
var handleClick = function handleClick(evt) {
|
|
4789
4768
|
if (!props.disabled && !loading) {
|
|
4790
4769
|
var _props$onClick;
|
|
@@ -4799,7 +4778,9 @@ function Button(_ref) {
|
|
|
4799
4778
|
theme: theme === exports.ButtonThemes.Primary && !props.disabled ? 'secondary' : 'primary'
|
|
4800
4779
|
}, loader != null ? loader : {})));
|
|
4801
4780
|
}, [loader, props.disabled, theme]);
|
|
4802
|
-
return React__default.createElement("button", Object.assign({
|
|
4781
|
+
return React__default.createElement("button", Object.assign({
|
|
4782
|
+
ref: ref
|
|
4783
|
+
}, props, {
|
|
4803
4784
|
className: useMergedClassNames(['nunito', rootClassName$1H, className, rootClassName$1H + "-" + theme, w100 ? rootClassName$1H + "-w100" : '', mobileBottomPage ? rootClassName$1H + "-bottom-mobile" : '']),
|
|
4804
4785
|
onClick: handleClick
|
|
4805
4786
|
}), leftIcon && React__default.createElement("div", {
|
|
@@ -4809,7 +4790,8 @@ function Button(_ref) {
|
|
|
4809
4790
|
}, children), rightIcon && React__default.createElement("div", {
|
|
4810
4791
|
className: getMergedClassNames([rootClassName$1H + "-icon", rootClassName$1H + "-right-icon", loading ? rootClassName$1H + "-hide" : ''])
|
|
4811
4792
|
}, rightIcon), loading ? loaderElement : undefined);
|
|
4812
|
-
}
|
|
4793
|
+
});
|
|
4794
|
+
Button.displayName = 'Button';
|
|
4813
4795
|
var Button$1 = React.memo(Button);
|
|
4814
4796
|
|
|
4815
4797
|
(function (FileTypes) {
|
|
@@ -5260,32 +5242,31 @@ function useCarouselBehaviour(props) {
|
|
|
5260
5242
|
}))), handleChange];
|
|
5261
5243
|
}
|
|
5262
5244
|
|
|
5245
|
+
var _excluded$6 = ["theme", "disabled", "icon", "onClick"];
|
|
5263
5246
|
var rootClassName$1M = 'component-icon-button';
|
|
5264
|
-
|
|
5265
|
-
var
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5247
|
+
var IconButton = React.forwardRef(function (_ref, ref) {
|
|
5248
|
+
var _ref$theme = _ref.theme,
|
|
5249
|
+
theme = _ref$theme === void 0 ? 'primary' : _ref$theme,
|
|
5250
|
+
_ref$disabled = _ref.disabled,
|
|
5251
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
5252
|
+
_ref$icon = _ref.icon,
|
|
5253
|
+
icon = _ref$icon === void 0 ? '-' : _ref$icon,
|
|
5254
|
+
onClick = _ref.onClick,
|
|
5255
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
5256
|
+
var handleClick = React.useCallback(function (evt) {
|
|
5257
|
+
if (!disabled) {
|
|
5258
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(evt);
|
|
5269
5259
|
}
|
|
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
|
-
};
|
|
5260
|
+
}, [disabled, onClick]);
|
|
5261
|
+
var classNames = useMergedClassNames([rootClassName$1M, props.className, rootClassName$1M + "-" + theme]);
|
|
5262
|
+
return React__default.createElement("button", Object.assign({
|
|
5263
|
+
ref: ref,
|
|
5264
|
+
onClick: handleClick
|
|
5265
|
+
}, props, {
|
|
5266
|
+
className: classNames
|
|
5267
|
+
}), icon);
|
|
5268
|
+
});
|
|
5269
|
+
IconButton.displayName = 'IconButton';
|
|
5289
5270
|
var IconButton$1 = React.memo(IconButton);
|
|
5290
5271
|
|
|
5291
5272
|
var rootClassName$1N = 'element-paginator';
|
|
@@ -7016,7 +6997,7 @@ MoneyByMonth.defaultProps = {
|
|
|
7016
6997
|
CheckboxThemes["Blue"] = "blue";
|
|
7017
6998
|
})(exports.CheckboxThemes || (exports.CheckboxThemes = {}));
|
|
7018
6999
|
|
|
7019
|
-
var _excluded$
|
|
7000
|
+
var _excluded$7 = ["value", "tag", "onChange", "theme", "className", "error", "type"];
|
|
7020
7001
|
var rootClassName$1S = 'component-checkbox';
|
|
7021
7002
|
function Checkbox(_ref) {
|
|
7022
7003
|
var value = _ref.value,
|
|
@@ -7029,7 +7010,7 @@ function Checkbox(_ref) {
|
|
|
7029
7010
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
7030
7011
|
_ref$type = _ref.type,
|
|
7031
7012
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
7032
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7013
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
7033
7014
|
var handleClick = React.useCallback(function (evt) {
|
|
7034
7015
|
if (!props.disabled) {
|
|
7035
7016
|
onChange === null || onChange === void 0 ? void 0 : onChange(!value, evt);
|
|
@@ -7085,24 +7066,80 @@ Col.defaultProps = {
|
|
|
7085
7066
|
};
|
|
7086
7067
|
var Col$1 = React.memo(Col);
|
|
7087
7068
|
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7069
|
+
(function (OS) {
|
|
7070
|
+
OS["Windows"] = "Windows";
|
|
7071
|
+
OS["Linux"] = "Linux";
|
|
7072
|
+
OS["MacOS"] = "MacOS";
|
|
7073
|
+
OS["iOS"] = "iOS";
|
|
7074
|
+
OS["Android"] = "Android";
|
|
7075
|
+
OS["ChromeOS"] = "ChromeOS";
|
|
7076
|
+
OS["Other"] = "Other";
|
|
7077
|
+
})(exports.OS || (exports.OS = {}));
|
|
7078
|
+
(function (Browser) {
|
|
7079
|
+
Browser["Brave"] = "Brave";
|
|
7080
|
+
Browser["Chrome"] = "Chrome";
|
|
7081
|
+
Browser["Firefox"] = "Firefox";
|
|
7082
|
+
Browser["Opera"] = "Opera";
|
|
7083
|
+
Browser["Safari"] = "Safari";
|
|
7084
|
+
Browser["Edge"] = "Edge";
|
|
7085
|
+
Browser["IE"] = "IE";
|
|
7086
|
+
Browser["Other"] = "Other";
|
|
7087
|
+
})(exports.Browser || (exports.Browser = {}));
|
|
7088
|
+
|
|
7089
|
+
function useSystemInfo() {
|
|
7090
|
+
var os = React.useMemo(function () {
|
|
7091
|
+
if (/Android/i.test(navigator.userAgent)) return exports.OS.Android;
|
|
7092
|
+
if (/iPhone/i.test(navigator.userAgent)) return exports.OS.iOS;
|
|
7093
|
+
if (/Windows/i.test(navigator.userAgent)) return exports.OS.Windows;
|
|
7094
|
+
if (/Linux/i.test(navigator.userAgent)) return exports.OS.Linux;
|
|
7095
|
+
if (/CrOS/i.test(navigator.userAgent)) return exports.OS.ChromeOS;
|
|
7096
|
+
if (/Macintosh/i.test(navigator.userAgent)) return exports.OS.MacOS;
|
|
7097
|
+
return exports.OS.Other;
|
|
7098
|
+
}, []);
|
|
7099
|
+
var browser = React.useMemo(function () {
|
|
7100
|
+
if (/Edge/i.test(navigator.userAgent)) return exports.Browser.Edge;
|
|
7101
|
+
if (/Brave/i.test(navigator.userAgent)) return exports.Browser.Brave;
|
|
7102
|
+
if (/CriOS/i.test(navigator.userAgent)) return exports.Browser.Chrome;
|
|
7103
|
+
if (/Chrome/i.test(navigator.userAgent)) return exports.Browser.Chrome;
|
|
7104
|
+
if (/Firefox/i.test(navigator.userAgent)) return exports.Browser.Firefox;
|
|
7105
|
+
if (/Opera/i.test(navigator.userAgent)) return exports.Browser.Opera;
|
|
7106
|
+
if (/Safari/i.test(navigator.userAgent)) return exports.Browser.Safari;
|
|
7107
|
+
if (/Trident/i.test(navigator.userAgent)) return exports.Browser.IE;
|
|
7108
|
+
if (/MSIE/i.test(navigator.userAgent)) return exports.Browser.IE;
|
|
7109
|
+
return exports.Browser.Other;
|
|
7110
|
+
}, []);
|
|
7111
|
+
var isMobile = React.useMemo(function () {
|
|
7112
|
+
return /Mobile/.test(navigator.userAgent);
|
|
7113
|
+
}, []);
|
|
7114
|
+
return {
|
|
7115
|
+
os: os,
|
|
7116
|
+
browser: browser,
|
|
7117
|
+
isMobile: isMobile
|
|
7104
7118
|
};
|
|
7105
|
-
|
|
7119
|
+
}
|
|
7120
|
+
|
|
7121
|
+
var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "className", "style"];
|
|
7122
|
+
var rootClassName$1U = 'component-container';
|
|
7123
|
+
function Container(_ref) {
|
|
7124
|
+
var position = _ref.position,
|
|
7125
|
+
fluid = _ref.fluid,
|
|
7126
|
+
verticalPadding = _ref.verticalPadding,
|
|
7127
|
+
hasMobileButton = _ref.hasMobileButton,
|
|
7128
|
+
hasHeader = _ref.hasHeader,
|
|
7129
|
+
hasAdvancedHeader = _ref.hasAdvancedHeader,
|
|
7130
|
+
_ref$className = _ref.className,
|
|
7131
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7132
|
+
_ref$style = _ref.style,
|
|
7133
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7134
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7135
|
+
var mobile = useSystemInfo().isMobile;
|
|
7136
|
+
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7137
|
+
return React__default.createElement("div", Object.assign({}, props, {
|
|
7138
|
+
className: classNames,
|
|
7139
|
+
style: _extends({
|
|
7140
|
+
position: position
|
|
7141
|
+
}, style)
|
|
7142
|
+
}), React__default.createElement("div", {
|
|
7106
7143
|
className: rootClassName$1U + "-insider"
|
|
7107
7144
|
}, props.children));
|
|
7108
7145
|
}
|
|
@@ -7115,7 +7152,7 @@ Container.defaultProps = {
|
|
|
7115
7152
|
};
|
|
7116
7153
|
var Container$1 = React.memo(Container);
|
|
7117
7154
|
|
|
7118
|
-
var _excluded$
|
|
7155
|
+
var _excluded$9 = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7119
7156
|
var rootClassName$1V = 'component-control-label';
|
|
7120
7157
|
function ControlLabel(_ref) {
|
|
7121
7158
|
var _control$props;
|
|
@@ -7124,7 +7161,7 @@ function ControlLabel(_ref) {
|
|
|
7124
7161
|
labelGap = _ref.labelGap,
|
|
7125
7162
|
label = _ref.label,
|
|
7126
7163
|
className = _ref.className,
|
|
7127
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7164
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7128
7165
|
var ref = React.useRef();
|
|
7129
7166
|
return React__default.createElement("label", Object.assign({}, props, {
|
|
7130
7167
|
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
@@ -7356,7 +7393,7 @@ function DatePickerCalendar(props) {
|
|
|
7356
7393
|
}
|
|
7357
7394
|
var DatePickerCalendar$1 = React.memo(DatePickerCalendar);
|
|
7358
7395
|
|
|
7359
|
-
var _excluded$
|
|
7396
|
+
var _excluded$a = ["language"];
|
|
7360
7397
|
var rootClassName$1X = 'component-date-picker';
|
|
7361
7398
|
function DatePicker(_ref) {
|
|
7362
7399
|
var _ref$language = _ref.language,
|
|
@@ -7366,7 +7403,7 @@ function DatePicker(_ref) {
|
|
|
7366
7403
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
7367
7404
|
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
7368
7405
|
} : _ref$language,
|
|
7369
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7406
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
7370
7407
|
var id = React.useMemo(function () {
|
|
7371
7408
|
return "picker_" + getUniqueKey();
|
|
7372
7409
|
}, []);
|
|
@@ -7504,11 +7541,11 @@ DatePicker.defaultProps = {
|
|
|
7504
7541
|
};
|
|
7505
7542
|
var DatePicker$1 = React.memo(DatePicker);
|
|
7506
7543
|
|
|
7507
|
-
var _excluded$
|
|
7544
|
+
var _excluded$b = ["showLabel"];
|
|
7508
7545
|
var rootClassName$1Y = 'component-doughnut';
|
|
7509
7546
|
function Doughnut(_ref) {
|
|
7510
7547
|
var showLabel = _ref.showLabel,
|
|
7511
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7548
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
7512
7549
|
var _useProgressiveCount = useProgressiveCount(),
|
|
7513
7550
|
val = _useProgressiveCount[0],
|
|
7514
7551
|
setVal = _useProgressiveCount[1];
|
|
@@ -7573,6 +7610,96 @@ function DropdownItem(props) {
|
|
|
7573
7610
|
}
|
|
7574
7611
|
var DropdownItem$1 = React.memo(DropdownItem);
|
|
7575
7612
|
|
|
7613
|
+
function useFloatingPanel(_ref) {
|
|
7614
|
+
var stateOpened = _ref.stateOpened,
|
|
7615
|
+
_ref$matchWidth = _ref.matchWidth,
|
|
7616
|
+
matchWidth = _ref$matchWidth === void 0 ? false : _ref$matchWidth,
|
|
7617
|
+
_ref$offset = _ref.offset,
|
|
7618
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7619
|
+
_ref$placement = _ref.placement,
|
|
7620
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7621
|
+
_ref$strategy = _ref.strategy,
|
|
7622
|
+
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
7623
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7624
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['top', 'bottom', 'right-start', 'right'] : _ref$fallbackPlacemen,
|
|
7625
|
+
elements = _ref.elements;
|
|
7626
|
+
var opened = stateOpened[0],
|
|
7627
|
+
setOpened = stateOpened[1];
|
|
7628
|
+
var _useState = React.useState(null),
|
|
7629
|
+
maxHeight = _useState[0],
|
|
7630
|
+
setMaxHeight = _useState[1];
|
|
7631
|
+
var _useFloating = react.useFloating({
|
|
7632
|
+
elements: elements,
|
|
7633
|
+
open: opened,
|
|
7634
|
+
onOpenChange: setOpened,
|
|
7635
|
+
whileElementsMounted: react.autoUpdate,
|
|
7636
|
+
transform: false,
|
|
7637
|
+
placement: placement,
|
|
7638
|
+
strategy: strategy,
|
|
7639
|
+
middleware: [react.offset(offset), react.flip({
|
|
7640
|
+
fallbackPlacements: fallbackPlacements
|
|
7641
|
+
}), react.shift(), react.size({
|
|
7642
|
+
apply: function apply(_ref2) {
|
|
7643
|
+
var rects = _ref2.rects,
|
|
7644
|
+
elements = _ref2.elements,
|
|
7645
|
+
availableHeight = _ref2.availableHeight;
|
|
7646
|
+
if (matchWidth) {
|
|
7647
|
+
Object.assign(elements.floating.style, {
|
|
7648
|
+
width: rects.reference.width + "px"
|
|
7649
|
+
});
|
|
7650
|
+
}
|
|
7651
|
+
setMaxHeight(availableHeight);
|
|
7652
|
+
}
|
|
7653
|
+
})]
|
|
7654
|
+
}),
|
|
7655
|
+
refs = _useFloating.refs,
|
|
7656
|
+
floatingStyles = _useFloating.floatingStyles,
|
|
7657
|
+
context = _useFloating.context;
|
|
7658
|
+
var _useTransitionStyles = react.useTransitionStyles(context, {
|
|
7659
|
+
duration: 250,
|
|
7660
|
+
initial: function initial(_ref3) {
|
|
7661
|
+
var side = _ref3.side;
|
|
7662
|
+
return {
|
|
7663
|
+
transform: ['top', 'bottom'].includes(side) ? 'translateY(10px)' : '',
|
|
7664
|
+
opacity: 0
|
|
7665
|
+
};
|
|
7666
|
+
},
|
|
7667
|
+
common: {
|
|
7668
|
+
transform: 'translateY(0px)',
|
|
7669
|
+
opacity: 1
|
|
7670
|
+
}
|
|
7671
|
+
}),
|
|
7672
|
+
isMounted = _useTransitionStyles.isMounted,
|
|
7673
|
+
styles = _useTransitionStyles.styles;
|
|
7674
|
+
return {
|
|
7675
|
+
panelRef: refs.setFloating,
|
|
7676
|
+
panelStyles: _extends({}, floatingStyles, {
|
|
7677
|
+
maxHeight: maxHeight
|
|
7678
|
+
}, styles),
|
|
7679
|
+
anchorRef: refs.setReference,
|
|
7680
|
+
isMounted: isMounted
|
|
7681
|
+
};
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
function useEvent(events) {
|
|
7685
|
+
React.useLayoutEffect(function () {
|
|
7686
|
+
events.forEach(function (_ref) {
|
|
7687
|
+
var event = _ref.event,
|
|
7688
|
+
handler = _ref.handler,
|
|
7689
|
+
target = _ref.target;
|
|
7690
|
+
(target != null ? target : document.body).addEventListener(event, handler);
|
|
7691
|
+
});
|
|
7692
|
+
return function () {
|
|
7693
|
+
events.forEach(function (_ref2) {
|
|
7694
|
+
var event = _ref2.event,
|
|
7695
|
+
handler = _ref2.handler,
|
|
7696
|
+
target = _ref2.target;
|
|
7697
|
+
(target != null ? target : document.body).removeEventListener(event, handler);
|
|
7698
|
+
});
|
|
7699
|
+
};
|
|
7700
|
+
}, [events]);
|
|
7701
|
+
}
|
|
7702
|
+
|
|
7576
7703
|
function useOutsideClick(refs, handler, options) {
|
|
7577
7704
|
var _options3;
|
|
7578
7705
|
if (options === void 0) {
|
|
@@ -7600,8 +7727,75 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7600
7727
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7601
7728
|
}
|
|
7602
7729
|
|
|
7603
|
-
var _excluded$
|
|
7604
|
-
var rootClassName$1_ = '
|
|
7730
|
+
var _excluded$c = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset"];
|
|
7731
|
+
var rootClassName$1_ = 'floating-panel';
|
|
7732
|
+
function FloatingPanel(_ref) {
|
|
7733
|
+
var opened = _ref.opened,
|
|
7734
|
+
setOpened = _ref.setOpened,
|
|
7735
|
+
_ref$className = _ref.className,
|
|
7736
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7737
|
+
statedAnchorRef = _ref.statedAnchorRef,
|
|
7738
|
+
matchWidth = _ref.matchWidth,
|
|
7739
|
+
_ref$placement = _ref.placement,
|
|
7740
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
7741
|
+
_ref$closeOnEsc = _ref.closeOnEsc,
|
|
7742
|
+
closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
|
|
7743
|
+
_ref$closeOnOutClick = _ref.closeOnOutClick,
|
|
7744
|
+
closeOnOutClick = _ref$closeOnOutClick === void 0 ? true : _ref$closeOnOutClick,
|
|
7745
|
+
_ref$style = _ref.style,
|
|
7746
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7747
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
7748
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['bottom', 'bottom-end', 'bottom-start', 'top', 'top-start', 'top-end', 'left', 'right'] : _ref$fallbackPlacemen,
|
|
7749
|
+
_ref$offset = _ref.offset,
|
|
7750
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7751
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7752
|
+
var _useState = React.useState(),
|
|
7753
|
+
panelRef = _useState[0],
|
|
7754
|
+
setPanelRef = _useState[1];
|
|
7755
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
7756
|
+
stateOpened: [opened, setOpened],
|
|
7757
|
+
strategy: 'fixed',
|
|
7758
|
+
placement: placement,
|
|
7759
|
+
fallbackPlacements: fallbackPlacements,
|
|
7760
|
+
matchWidth: matchWidth,
|
|
7761
|
+
elements: {
|
|
7762
|
+
floating: panelRef,
|
|
7763
|
+
reference: statedAnchorRef
|
|
7764
|
+
},
|
|
7765
|
+
offset: offset
|
|
7766
|
+
}),
|
|
7767
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
7768
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
7769
|
+
var classNames = useMergedClassNames([rootClassName$1_, className]);
|
|
7770
|
+
useEvent([{
|
|
7771
|
+
event: 'keydown',
|
|
7772
|
+
handler: function handler(e) {
|
|
7773
|
+
if (closeOnEsc && opened && 'key' in e && e.key === 'Escape') {
|
|
7774
|
+
setOpened(false);
|
|
7775
|
+
e.preventDefault();
|
|
7776
|
+
e.stopPropagation();
|
|
7777
|
+
}
|
|
7778
|
+
}
|
|
7779
|
+
}]);
|
|
7780
|
+
useOutsideClick([{
|
|
7781
|
+
current: panelRef != null ? panelRef : null
|
|
7782
|
+
}, {
|
|
7783
|
+
current: statedAnchorRef != null ? statedAnchorRef : null
|
|
7784
|
+
}], function (isInside) {
|
|
7785
|
+
if (closeOnOutClick && opened && !isInside) setOpened(false);
|
|
7786
|
+
});
|
|
7787
|
+
return React__default.createElement(react.FloatingPortal, null, isMounted && React__default.createElement("div", Object.assign({}, props, {
|
|
7788
|
+
className: classNames,
|
|
7789
|
+
ref: function ref(r) {
|
|
7790
|
+
return setPanelRef(r);
|
|
7791
|
+
},
|
|
7792
|
+
style: _extends({}, style, panelStyles)
|
|
7793
|
+
}), props.children));
|
|
7794
|
+
}
|
|
7795
|
+
var FloatingPanel$1 = React.memo(FloatingPanel);
|
|
7796
|
+
|
|
7797
|
+
var _excluded$d = ["opened", "setOpened", "content", "closeOnEsc", "closeOnOutClick", "children", "panelProps", "removePadding"];
|
|
7798
|
+
var rootClassName$1$ = 'component-dropdown-menu';
|
|
7605
7799
|
function DropdownMenu(_ref) {
|
|
7606
7800
|
var _panelProps$className;
|
|
7607
7801
|
var opened = _ref.opened,
|
|
@@ -7612,206 +7806,37 @@ function DropdownMenu(_ref) {
|
|
|
7612
7806
|
children = _ref.children,
|
|
7613
7807
|
_ref$panelProps = _ref.panelProps,
|
|
7614
7808
|
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)));
|
|
7809
|
+
removePadding = _ref.removePadding,
|
|
7810
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
7811
|
+
var _useState = React.useState(),
|
|
7812
|
+
ref = _useState[0],
|
|
7813
|
+
setRef = _useState[1];
|
|
7814
|
+
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 : '']);
|
|
7815
|
+
var anchorClassNames = useMergedClassNames([rootClassName$1$, props.className || '']);
|
|
7816
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("div", Object.assign({}, props, {
|
|
7817
|
+
ref: function ref(r) {
|
|
7818
|
+
return setRef(r);
|
|
7819
|
+
},
|
|
7820
|
+
className: anchorClassNames
|
|
7821
|
+
}), children), React__default.createElement(FloatingPanel$1, Object.assign({
|
|
7822
|
+
statedAnchorRef: ref,
|
|
7823
|
+
opened: opened != null ? opened : false,
|
|
7824
|
+
setOpened: setOpened,
|
|
7825
|
+
closeOnEsc: closeOnEsc,
|
|
7826
|
+
closeOnOutClick: closeOnOutClick
|
|
7827
|
+
}, panelProps), React__default.createElement("div", {
|
|
7828
|
+
className: classNames
|
|
7829
|
+
}, content)));
|
|
7803
7830
|
}
|
|
7804
|
-
FloatingPanel.defaultProps = {
|
|
7805
|
-
boxShadow: true,
|
|
7806
|
-
radiusStyle: 'only-bottom'
|
|
7807
|
-
};
|
|
7808
|
-
var FloatingPanel$1 = React.memo(FloatingPanel);
|
|
7809
7831
|
|
|
7810
7832
|
var rootClassName$20 = 'dropdown-selector';
|
|
7811
7833
|
function DropdownSelector(props) {
|
|
7812
7834
|
var _useState = React.useState(false),
|
|
7813
7835
|
opened = _useState[0],
|
|
7814
7836
|
setOpened = _useState[1];
|
|
7837
|
+
var _useState2 = React.useState(null),
|
|
7838
|
+
anchorRef = _useState2[0],
|
|
7839
|
+
setAnchorRef = _useState2[1];
|
|
7815
7840
|
var label = React.useMemo(function () {
|
|
7816
7841
|
var _ref, _props$options$find$l, _props$options, _props$options$find;
|
|
7817
7842
|
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 +7859,9 @@ function DropdownSelector(props) {
|
|
|
7834
7859
|
return React__default.createElement("div", {
|
|
7835
7860
|
className: useMergedClassNames([rootClassName$20 + "-wrapper", props.w100 ? 'w-100' : '', opened ? 'opened' : ''])
|
|
7836
7861
|
}, React__default.createElement("button", {
|
|
7862
|
+
ref: function ref(r) {
|
|
7863
|
+
return setAnchorRef(r);
|
|
7864
|
+
},
|
|
7837
7865
|
className: useMergedClassNames([rootClassName$20, props.w100 ? 'w-100' : '', opened ? 'opened' : '']),
|
|
7838
7866
|
onClick: function onClick() {
|
|
7839
7867
|
setOpened(!opened);
|
|
@@ -7843,6 +7871,7 @@ function DropdownSelector(props) {
|
|
|
7843
7871
|
}, label), React__default.createElement("div", {
|
|
7844
7872
|
className: useMergedClassNames([rootClassName$20 + "-icon", opened ? 'opened' : ''])
|
|
7845
7873
|
}, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement(FloatingPanel$1, {
|
|
7874
|
+
statedAnchorRef: anchorRef,
|
|
7846
7875
|
opened: opened,
|
|
7847
7876
|
setOpened: setOpened,
|
|
7848
7877
|
className: rootClassName$20 + "-menu"
|
|
@@ -7982,7 +8011,7 @@ var Etapas$1 = React.memo(Etapas);
|
|
|
7982
8011
|
EtiquetasStyle["Yellow"] = "yellow";
|
|
7983
8012
|
})(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
|
|
7984
8013
|
|
|
7985
|
-
var _excluded$
|
|
8014
|
+
var _excluded$e = ["theme", "label", "icon", "fitContent"];
|
|
7986
8015
|
var rootClassName$22 = 'component-etiqueta';
|
|
7987
8016
|
function Etiqueta(_ref) {
|
|
7988
8017
|
var _ref$theme = _ref.theme,
|
|
@@ -7990,7 +8019,7 @@ function Etiqueta(_ref) {
|
|
|
7990
8019
|
label = _ref.label,
|
|
7991
8020
|
icon = _ref.icon,
|
|
7992
8021
|
fitContent = _ref.fitContent,
|
|
7993
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8022
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
7994
8023
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
7995
8024
|
className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
|
|
7996
8025
|
}), icon ? React__default.createElement("div", {
|
|
@@ -8359,22 +8388,54 @@ function FooterSicredi(props) {
|
|
|
8359
8388
|
}
|
|
8360
8389
|
var FooterSicredi$1 = React.memo(FooterSicredi);
|
|
8361
8390
|
|
|
8391
|
+
var _excluded$f = ["header", "footer"];
|
|
8362
8392
|
var rootClassName$27 = 'full-height-container';
|
|
8363
|
-
function FullHeightContainer(
|
|
8393
|
+
function FullHeightContainer(_ref) {
|
|
8394
|
+
var header = _ref.header,
|
|
8395
|
+
footer = _ref.footer,
|
|
8396
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
8397
|
+
var headerRef = React.createRef();
|
|
8398
|
+
var contentRef = React.createRef();
|
|
8399
|
+
var footerRef = React.createRef();
|
|
8400
|
+
var mobile = useSystemInfo().isMobile;
|
|
8401
|
+
React.useLayoutEffect(function () {
|
|
8402
|
+
var observable = new ResizeObserver(function () {
|
|
8403
|
+
if (contentRef.current && header && headerRef.current) {
|
|
8404
|
+
var _headerRef$current;
|
|
8405
|
+
contentRef.current.style.paddingTop = ((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.getBoundingClientRect().height) + "px";
|
|
8406
|
+
} else if (contentRef.current) {
|
|
8407
|
+
contentRef.current.style.paddingTop = '';
|
|
8408
|
+
}
|
|
8409
|
+
if (contentRef.current && footer && footerRef.current) {
|
|
8410
|
+
var _footerRef$current;
|
|
8411
|
+
contentRef.current.style.paddingBottom = ((_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.getBoundingClientRect().height) + "px";
|
|
8412
|
+
} else if (contentRef.current) {
|
|
8413
|
+
contentRef.current.style.paddingBottom = '';
|
|
8414
|
+
}
|
|
8415
|
+
});
|
|
8416
|
+
if (headerRef.current) {
|
|
8417
|
+
observable.observe(headerRef.current);
|
|
8418
|
+
}
|
|
8419
|
+
if (footerRef.current) {
|
|
8420
|
+
observable.observe(footerRef.current);
|
|
8421
|
+
}
|
|
8422
|
+
return function () {
|
|
8423
|
+
observable.disconnect();
|
|
8424
|
+
};
|
|
8425
|
+
}, [headerRef, footerRef, contentRef, header, footer]);
|
|
8364
8426
|
return React__default.createElement("div", {
|
|
8365
8427
|
className: rootClassName$27
|
|
8366
8428
|
}, 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
|
-
};
|
|
8429
|
+
className: rootClassName$27 + "-row-header",
|
|
8430
|
+
ref: headerRef
|
|
8431
|
+
}, header), React__default.createElement("div", {
|
|
8432
|
+
ref: contentRef,
|
|
8433
|
+
className: getMergedClassNames([rootClassName$27 + "-row-content", props.verticalPadding ? 'vertical-padding' : '', props.horizontalPadding ? 'horizontal-padding' : '', mobile ? 'mobile' : ''])
|
|
8434
|
+
}, props.children), footer ? React__default.createElement("div", {
|
|
8435
|
+
className: rootClassName$27 + "-row-footer",
|
|
8436
|
+
ref: footerRef
|
|
8437
|
+
}, footer) : undefined);
|
|
8438
|
+
}
|
|
8378
8439
|
var FullHeightContainer$1 = React.memo(FullHeightContainer);
|
|
8379
8440
|
|
|
8380
8441
|
(function (HeaderType) {
|
|
@@ -8465,7 +8526,7 @@ Information.defaultProps = {
|
|
|
8465
8526
|
};
|
|
8466
8527
|
|
|
8467
8528
|
var rootClassName$2b = 'component-input';
|
|
8468
|
-
|
|
8529
|
+
var Input = React.forwardRef(function (props, ref) {
|
|
8469
8530
|
var getProps = function getProps() {
|
|
8470
8531
|
var p = _extends({}, props, {
|
|
8471
8532
|
id: props.id ? props.id + "-input" : undefined,
|
|
@@ -8490,7 +8551,8 @@ function Input(props) {
|
|
|
8490
8551
|
}, !props.hideLabelAndHelperText && React__default.createElement("div", {
|
|
8491
8552
|
className: rootClassName$2b + "-label nunito"
|
|
8492
8553
|
}, props.label || ''), React__default.createElement("div", {
|
|
8493
|
-
className: rootClassName$2b + "-input-container"
|
|
8554
|
+
className: rootClassName$2b + "-input-container",
|
|
8555
|
+
ref: ref
|
|
8494
8556
|
}, React__default.createElement("input", Object.assign({}, getProps())), props.rightObject && React__default.createElement("div", {
|
|
8495
8557
|
className: rootClassName$2b + "-right-object"
|
|
8496
8558
|
}, props.rightObject)), !props.hideLabelAndHelperText && React__default.createElement("div", {
|
|
@@ -8500,7 +8562,8 @@ function Input(props) {
|
|
|
8500
8562
|
}, props.helperText || ''), props.counter && React__default.createElement("div", {
|
|
8501
8563
|
className: rootClassName$2b + "-counter"
|
|
8502
8564
|
}, "" + String(props.value || '').length + (props.maxLength || props.maxLength === 0 ? "/" + props.maxLength : ''))));
|
|
8503
|
-
}
|
|
8565
|
+
});
|
|
8566
|
+
Input.displayName = 'Input';
|
|
8504
8567
|
Input.defaultProps = {
|
|
8505
8568
|
value: '',
|
|
8506
8569
|
loading: false,
|
|
@@ -8572,90 +8635,46 @@ InputArea.defaultProps = {
|
|
|
8572
8635
|
};
|
|
8573
8636
|
var InputArea$1 = React.memo(InputArea);
|
|
8574
8637
|
|
|
8638
|
+
var _excluded$g = ["label", "opened", "setOpened", "closeOnOutClick", "closeOnEsc", "downloads"];
|
|
8575
8639
|
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);
|
|
8640
|
+
function ItemDropdownDownload(_ref) {
|
|
8641
|
+
var label = _ref.label,
|
|
8642
|
+
opened = _ref.opened,
|
|
8643
|
+
setOpened = _ref.setOpened,
|
|
8644
|
+
_ref$downloads = _ref.downloads,
|
|
8645
|
+
downloads = _ref$downloads === void 0 ? [] : _ref$downloads,
|
|
8646
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8647
|
+
var _useState = React.useState(null),
|
|
8648
|
+
ref = _useState[0],
|
|
8649
|
+
setRef = _useState[1];
|
|
8650
|
+
var classNames = useMergedClassNames([rootClassName$2d, props.className || '', opened ? 'opened' : 'closed']);
|
|
8651
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("button", Object.assign({}, props, {
|
|
8652
|
+
ref: function ref(e) {
|
|
8653
|
+
return setRef(e);
|
|
8654
|
+
},
|
|
8655
|
+
className: classNames,
|
|
8656
|
+
onClick: function onClick(evt) {
|
|
8657
|
+
if (typeof props.onClick === 'function') {
|
|
8658
|
+
props.onClick(evt);
|
|
8629
8659
|
}
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
if (props.opened) {
|
|
8633
|
-
document.addEventListener('keyup', onEscPress);
|
|
8634
|
-
} else {
|
|
8635
|
-
document.removeEventListener('keyup', onEscPress);
|
|
8660
|
+
if (typeof setOpened === 'function') {
|
|
8661
|
+
setOpened(!opened);
|
|
8636
8662
|
}
|
|
8637
8663
|
}
|
|
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", {
|
|
8664
|
+
}), React__default.createElement("div", {
|
|
8648
8665
|
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
|
-
|
|
8666
|
+
}, label), React__default.createElement("div", {
|
|
8667
|
+
className: getMergedClassNames([rootClassName$2d + "-arrow", opened ? 'up' : 'down'])
|
|
8668
|
+
}, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement(FloatingPanel$1, {
|
|
8669
|
+
matchWidth: true,
|
|
8670
|
+
opened: opened,
|
|
8671
|
+
setOpened: setOpened,
|
|
8672
|
+
statedAnchorRef: ref,
|
|
8673
|
+
placement: 'bottom',
|
|
8674
|
+
fallbackPlacements: ['bottom', 'top', 'left', 'right'],
|
|
8675
|
+
offset: 6,
|
|
8657
8676
|
className: rootClassName$2d + "-panel"
|
|
8658
|
-
},
|
|
8677
|
+
}, downloads === null || downloads === void 0 ? void 0 : downloads.map(function (download, index) {
|
|
8659
8678
|
return React__default.createElement("button", {
|
|
8660
8679
|
id: download.id || undefined,
|
|
8661
8680
|
className: rootClassName$2d + "-item " + (download.loading ? 'loading' : ''),
|
|
@@ -8672,12 +8691,8 @@ function ItemDropdownDownload(props) {
|
|
|
8672
8691
|
}, download.loading ? React__default.createElement(PercentLoaderIcon, {
|
|
8673
8692
|
indefinido: true
|
|
8674
8693
|
}) : React__default.createElement(CloudDownloadIcon, null)));
|
|
8675
|
-
})
|
|
8694
|
+
})));
|
|
8676
8695
|
}
|
|
8677
|
-
ItemDropdownDownload.defaultProps = {
|
|
8678
|
-
closeOnOutClick: true,
|
|
8679
|
-
closeOnEsc: true
|
|
8680
|
-
};
|
|
8681
8696
|
var ItemDropdownDownload$1 = React.memo(ItemDropdownDownload);
|
|
8682
8697
|
|
|
8683
8698
|
var rootClassName$2e = 'component-menu-item';
|
|
@@ -8948,7 +8963,7 @@ function useScreenSize() {
|
|
|
8948
8963
|
return value;
|
|
8949
8964
|
}
|
|
8950
8965
|
|
|
8951
|
-
var _excluded$
|
|
8966
|
+
var _excluded$h = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
|
|
8952
8967
|
var rootClassName$2g = 'component-modal';
|
|
8953
8968
|
function Modal(_ref) {
|
|
8954
8969
|
var className = _ref.className,
|
|
@@ -8962,7 +8977,7 @@ function Modal(_ref) {
|
|
|
8962
8977
|
_ref$tag = _ref.tag,
|
|
8963
8978
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
8964
8979
|
title = _ref.title,
|
|
8965
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8980
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8966
8981
|
var _useScreenSize = useScreenSize(),
|
|
8967
8982
|
rankedSize = _useScreenSize.rankedSize;
|
|
8968
8983
|
var modalProps = React.useMemo(function () {
|
|
@@ -9135,7 +9150,7 @@ PageSubTitle.defaultProps = {
|
|
|
9135
9150
|
text: ''
|
|
9136
9151
|
};
|
|
9137
9152
|
|
|
9138
|
-
var _excluded$
|
|
9153
|
+
var _excluded$i = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9139
9154
|
function usePagination(props) {
|
|
9140
9155
|
var _ref;
|
|
9141
9156
|
if (props === void 0) {
|
|
@@ -9159,7 +9174,7 @@ function usePagination(props) {
|
|
|
9159
9174
|
_props$siblingCount = _props.siblingCount,
|
|
9160
9175
|
siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
|
|
9161
9176
|
maxLength = _props.maxLength,
|
|
9162
|
-
other = _objectWithoutPropertiesLoose(_props, _excluded$
|
|
9177
|
+
other = _objectWithoutPropertiesLoose(_props, _excluded$i);
|
|
9163
9178
|
var isControlledRef = React.useRef(pageProp !== undefined);
|
|
9164
9179
|
var _useState = React.useState(currentPage),
|
|
9165
9180
|
pageCurrent = _useState[0],
|
|
@@ -9251,7 +9266,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9251
9266
|
}));
|
|
9252
9267
|
};
|
|
9253
9268
|
|
|
9254
|
-
var _excluded$
|
|
9269
|
+
var _excluded$j = ["page", "type", "selected"];
|
|
9255
9270
|
var rootClassName$2k = 'pagination-component';
|
|
9256
9271
|
var Pagination = function Pagination(props) {
|
|
9257
9272
|
var _useScreenSize = useScreenSize(),
|
|
@@ -9377,7 +9392,7 @@ var Pagination = function Pagination(props) {
|
|
|
9377
9392
|
var page = _ref2.page,
|
|
9378
9393
|
type = _ref2.type,
|
|
9379
9394
|
selected = _ref2.selected,
|
|
9380
|
-
item = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9395
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
9381
9396
|
var children = null;
|
|
9382
9397
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9383
9398
|
children = React__default.createElement("li", {
|
|
@@ -9717,7 +9732,7 @@ var PreviaVideo$1 = React.memo(PreviaVideo);
|
|
|
9717
9732
|
RadioButtonType["New"] = "new";
|
|
9718
9733
|
})(exports.RadioButtonType || (exports.RadioButtonType = {}));
|
|
9719
9734
|
|
|
9720
|
-
var _excluded$
|
|
9735
|
+
var _excluded$k = ["onChange", "value", "className", "theme", "error", "type"];
|
|
9721
9736
|
var rootClassName$2o = 'component-radio-button';
|
|
9722
9737
|
function RadioButton(_ref) {
|
|
9723
9738
|
var onChange = _ref.onChange,
|
|
@@ -9730,7 +9745,7 @@ function RadioButton(_ref) {
|
|
|
9730
9745
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
9731
9746
|
_ref$type = _ref.type,
|
|
9732
9747
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
9733
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9748
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
9734
9749
|
var classNames = useMergedClassNames([rootClassName$2o, theme, className]);
|
|
9735
9750
|
return React__default.createElement("button", Object.assign({}, props, {
|
|
9736
9751
|
type: type,
|
|
@@ -10081,25 +10096,23 @@ var Search$1 = React.memo(Search);
|
|
|
10081
10096
|
|
|
10082
10097
|
var rootClassName$2r = 'component-select';
|
|
10083
10098
|
function Select(props) {
|
|
10084
|
-
var _props$
|
|
10085
|
-
var
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
var
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
var
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
var
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
var interRef = React.useRef(inter);
|
|
10102
|
-
interRef.current = inter;
|
|
10099
|
+
var _props$options4;
|
|
10100
|
+
var panelId = React.useMemo(function () {
|
|
10101
|
+
return getUniqueKey();
|
|
10102
|
+
}, []);
|
|
10103
|
+
var _useState = React.useState(),
|
|
10104
|
+
anchorRef = _useState[0],
|
|
10105
|
+
setAnchorRef = _useState[1];
|
|
10106
|
+
var wrapperRef = React.createRef();
|
|
10107
|
+
var _useState2 = React.useState(false),
|
|
10108
|
+
panelOpened = _useState2[0],
|
|
10109
|
+
setPanelOpened = _useState2[1];
|
|
10110
|
+
var _useState3 = React.useState(''),
|
|
10111
|
+
filterInput = _useState3[0],
|
|
10112
|
+
setFilterInput = _useState3[1];
|
|
10113
|
+
var _useState4 = React.useState(false),
|
|
10114
|
+
fakeSelectFocused = _useState4[0],
|
|
10115
|
+
setFakeSelectFocused = _useState4[1];
|
|
10103
10116
|
var getKey = function getKey(option) {
|
|
10104
10117
|
if (option) {
|
|
10105
10118
|
if (option.key) return option.key;
|
|
@@ -10107,93 +10120,6 @@ function Select(props) {
|
|
|
10107
10120
|
}
|
|
10108
10121
|
return getUniqueKey();
|
|
10109
10122
|
};
|
|
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
10123
|
var opcoes = JSON.stringify(props.options);
|
|
10198
10124
|
React.useEffect(function () {
|
|
10199
10125
|
if (props.preSelectUniqueOption && props.options && props.options.length === 1) {
|
|
@@ -10208,7 +10134,7 @@ function Select(props) {
|
|
|
10208
10134
|
}
|
|
10209
10135
|
}
|
|
10210
10136
|
}, [opcoes]);
|
|
10211
|
-
var
|
|
10137
|
+
var RightObject = React.useMemo(function () {
|
|
10212
10138
|
return React__default.createElement("div", {
|
|
10213
10139
|
className: rootClassName$2r + "-objects"
|
|
10214
10140
|
}, 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, {
|
|
@@ -10218,10 +10144,12 @@ function Select(props) {
|
|
|
10218
10144
|
icon: React__default.createElement(CloseIcon, null),
|
|
10219
10145
|
onClick: function onClick() {
|
|
10220
10146
|
if (props.multiple) {
|
|
10147
|
+
setPanelOpened(false);
|
|
10221
10148
|
props.onChange([], {
|
|
10222
10149
|
setPanelOpened: setPanelOpened
|
|
10223
10150
|
});
|
|
10224
10151
|
} else {
|
|
10152
|
+
setPanelOpened(false);
|
|
10225
10153
|
props.onChange(null, {
|
|
10226
10154
|
setPanelOpened: setPanelOpened
|
|
10227
10155
|
});
|
|
@@ -10236,16 +10164,17 @@ function Select(props) {
|
|
|
10236
10164
|
},
|
|
10237
10165
|
icon: React__default.createElement(ChevronArrowDownIcon, null)
|
|
10238
10166
|
}));
|
|
10239
|
-
};
|
|
10167
|
+
}, [panelOpened, props]);
|
|
10240
10168
|
var getInputProps = function getInputProps() {
|
|
10241
10169
|
var _props$options;
|
|
10242
10170
|
var p = _extends({}, props, {
|
|
10243
10171
|
className: getMergedClassNames([rootClassName$2r, props.className]),
|
|
10244
10172
|
forceFocus: fakeSelectFocused,
|
|
10245
10173
|
readOnly: true,
|
|
10246
|
-
rightObject:
|
|
10174
|
+
rightObject: RightObject,
|
|
10247
10175
|
onClick: function onClick() {
|
|
10248
|
-
var
|
|
10176
|
+
var _wrapperRef$current;
|
|
10177
|
+
var selectFake = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10249
10178
|
if (!props.multiple && isiPhone() && selectFake) {
|
|
10250
10179
|
selectFake.focus();
|
|
10251
10180
|
} else {
|
|
@@ -10253,7 +10182,8 @@ function Select(props) {
|
|
|
10253
10182
|
}
|
|
10254
10183
|
},
|
|
10255
10184
|
onFocus: function onFocus(evt) {
|
|
10256
|
-
var
|
|
10185
|
+
var _wrapperRef$current2;
|
|
10186
|
+
var selectFake = (_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.querySelector("." + rootClassName$2r + "-select-fake");
|
|
10257
10187
|
if (!props.multiple && isiPhone() && selectFake) {
|
|
10258
10188
|
selectFake.focus();
|
|
10259
10189
|
} else {
|
|
@@ -10271,7 +10201,7 @@ function Select(props) {
|
|
|
10271
10201
|
inputFilter.focus();
|
|
10272
10202
|
evt.preventDefault();
|
|
10273
10203
|
} else {
|
|
10274
|
-
var firstOption = document.querySelector("#" +
|
|
10204
|
+
var firstOption = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10275
10205
|
if (firstOption) {
|
|
10276
10206
|
firstOption.focus();
|
|
10277
10207
|
evt.preventDefault();
|
|
@@ -10453,38 +10383,8 @@ function Select(props) {
|
|
|
10453
10383
|
return getStringWithoutSpecialChar(op.label).toLowerCase().match(getStringWithoutSpecialChar(filterInput).toLowerCase());
|
|
10454
10384
|
})) || [];
|
|
10455
10385
|
}, [props.options, filterInput]);
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
className: rootClassName$2r + "-outer"
|
|
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() {
|
|
10386
|
+
React.useLayoutEffect(function () {
|
|
10387
|
+
if (panelOpened) {
|
|
10488
10388
|
var panel = document.querySelector("#" + panelId);
|
|
10489
10389
|
if (window.innerHeight < panel.getBoundingClientRect().bottom) {
|
|
10490
10390
|
panel.style.top = 'unset';
|
|
@@ -10504,8 +10404,8 @@ function Select(props) {
|
|
|
10504
10404
|
}, 50);
|
|
10505
10405
|
}
|
|
10506
10406
|
} else {
|
|
10507
|
-
var _props$
|
|
10508
|
-
var elProps = (_props$
|
|
10407
|
+
var _props$options3;
|
|
10408
|
+
var elProps = (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.map(function (opt, index) {
|
|
10509
10409
|
return _extends({}, opt, {
|
|
10510
10410
|
ind: index
|
|
10511
10411
|
});
|
|
@@ -10522,13 +10422,52 @@ function Select(props) {
|
|
|
10522
10422
|
}
|
|
10523
10423
|
}
|
|
10524
10424
|
}
|
|
10525
|
-
}
|
|
10526
|
-
|
|
10527
|
-
var inputElement =
|
|
10425
|
+
} else {
|
|
10426
|
+
var _wrapperRef$current3;
|
|
10427
|
+
var inputElement = (_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.querySelector("input");
|
|
10528
10428
|
if (inputElement && !isiPhone()) {
|
|
10529
10429
|
inputElement.focus();
|
|
10530
10430
|
}
|
|
10531
10431
|
}
|
|
10432
|
+
}, [panelOpened]);
|
|
10433
|
+
return React__default.createElement("div", {
|
|
10434
|
+
ref: wrapperRef,
|
|
10435
|
+
className: rootClassName$2r + "-outer"
|
|
10436
|
+
}, !props.multiple && isiPhone() && React__default.createElement("select", {
|
|
10437
|
+
className: rootClassName$2r + "-select-fake",
|
|
10438
|
+
value: props.value ? String(props.value) : '',
|
|
10439
|
+
onChange: function onChange(evt) {
|
|
10440
|
+
return props.onChange(evt.target.value, {
|
|
10441
|
+
setPanelOpened: setPanelOpened
|
|
10442
|
+
});
|
|
10443
|
+
},
|
|
10444
|
+
tabIndex: props.tabIndex,
|
|
10445
|
+
onFocus: function onFocus() {
|
|
10446
|
+
return setFakeSelectFocused(true);
|
|
10447
|
+
},
|
|
10448
|
+
onBlur: function onBlur() {
|
|
10449
|
+
return setFakeSelectFocused(false);
|
|
10450
|
+
}
|
|
10451
|
+
}, React__default.createElement("option", {
|
|
10452
|
+
value: '',
|
|
10453
|
+
disabled: true
|
|
10454
|
+
}, languageValues.components.select.single.fakeOption), (_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.map(function (opt) {
|
|
10455
|
+
return React__default.createElement("option", {
|
|
10456
|
+
key: getKey(opt),
|
|
10457
|
+
value: typeof opt.value !== 'string' ? String(opt.value) : opt.value
|
|
10458
|
+
}, opt.label);
|
|
10459
|
+
})), React__default.createElement(Input$1, Object.assign({}, getInputProps(), {
|
|
10460
|
+
ref: function ref(r) {
|
|
10461
|
+
return setAnchorRef(r);
|
|
10462
|
+
}
|
|
10463
|
+
})), React__default.createElement(FloatingPanel$1, {
|
|
10464
|
+
statedAnchorRef: anchorRef,
|
|
10465
|
+
opened: panelOpened,
|
|
10466
|
+
setOpened: setPanelOpened,
|
|
10467
|
+
matchWidth: true,
|
|
10468
|
+
placement: 'bottom',
|
|
10469
|
+
fallbackPlacements: ['top', 'left', 'right'],
|
|
10470
|
+
offset: 1
|
|
10532
10471
|
}, React__default.createElement("div", {
|
|
10533
10472
|
id: panelId,
|
|
10534
10473
|
className: rootClassName$2r + "-panel " + (props.multiple ? 'multiple' : '')
|
|
@@ -10543,7 +10482,7 @@ function Select(props) {
|
|
|
10543
10482
|
hideLabelAndHelperText: true,
|
|
10544
10483
|
onKeyDown: function onKeyDown(evt) {
|
|
10545
10484
|
if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'ArrowDown') {
|
|
10546
|
-
var el = document.querySelector("#" +
|
|
10485
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2r + "-options div");
|
|
10547
10486
|
if (el) {
|
|
10548
10487
|
el.focus();
|
|
10549
10488
|
evt.preventDefault();
|
|
@@ -10630,7 +10569,7 @@ Switch.defaultProps = {
|
|
|
10630
10569
|
scale: 1
|
|
10631
10570
|
};
|
|
10632
10571
|
|
|
10633
|
-
var _excluded$
|
|
10572
|
+
var _excluded$l = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10634
10573
|
var rootClassName$2t = 'component-table';
|
|
10635
10574
|
function TypedTable(props) {
|
|
10636
10575
|
return React__default.createElement(Table, Object.assign({}, props));
|
|
@@ -10643,7 +10582,7 @@ function Table(_ref) {
|
|
|
10643
10582
|
sortable = _ref.sortable,
|
|
10644
10583
|
upperHeader = _ref.upperHeader,
|
|
10645
10584
|
className = _ref.className,
|
|
10646
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10585
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
10647
10586
|
var itemsId = React.useMemo(function () {
|
|
10648
10587
|
return "table" + getUniqueKey();
|
|
10649
10588
|
}, []);
|
|
@@ -11242,13 +11181,13 @@ function TextEditorColorPicker(props) {
|
|
|
11242
11181
|
}, "OK")));
|
|
11243
11182
|
}
|
|
11244
11183
|
|
|
11245
|
-
var _excluded$
|
|
11184
|
+
var _excluded$m = ["icon", "active"];
|
|
11246
11185
|
var rootClassName$2C = 'text-editor-header-button';
|
|
11247
11186
|
function TextEditorHeaderButton(_ref) {
|
|
11248
11187
|
var _props$className;
|
|
11249
11188
|
var icon = _ref.icon,
|
|
11250
11189
|
active = _ref.active,
|
|
11251
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11190
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
11252
11191
|
return React__default.createElement("button", Object.assign({
|
|
11253
11192
|
className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11254
11193
|
}, props), icon);
|
|
@@ -11796,6 +11735,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11796
11735
|
return a.id !== id;
|
|
11797
11736
|
});
|
|
11798
11737
|
setArrayOfToast(arr);
|
|
11738
|
+
toasts.current = arr;
|
|
11799
11739
|
};
|
|
11800
11740
|
React.useImperativeHandle(ref, function () {
|
|
11801
11741
|
return {
|
|
@@ -12104,7 +12044,7 @@ TopLoader.defaultProps = {
|
|
|
12104
12044
|
})
|
|
12105
12045
|
};
|
|
12106
12046
|
|
|
12107
|
-
var _excluded$
|
|
12047
|
+
var _excluded$n = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
|
|
12108
12048
|
var rootClassName$2M = 'video-modal';
|
|
12109
12049
|
function VideoModal(_ref) {
|
|
12110
12050
|
var _ref2;
|
|
@@ -12118,7 +12058,7 @@ function VideoModal(_ref) {
|
|
|
12118
12058
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
12119
12059
|
urlVideo = _ref.urlVideo,
|
|
12120
12060
|
videoPlayerProps = _ref.videoPlayerProps,
|
|
12121
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12061
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
12122
12062
|
var _useScreenSize = useScreenSize(),
|
|
12123
12063
|
rankedSize = _useScreenSize.rankedSize;
|
|
12124
12064
|
var handleClose = React.useCallback(function () {
|
|
@@ -12144,13 +12084,57 @@ VideoModal.defaultProps = {
|
|
|
12144
12084
|
size: 'md'
|
|
12145
12085
|
};
|
|
12146
12086
|
|
|
12147
|
-
var _excluded$
|
|
12087
|
+
var _excluded$o = ["className"];
|
|
12148
12088
|
var rootClassName$2N = 'icon-component';
|
|
12149
|
-
|
|
12089
|
+
function Bell16Icon(_ref) {
|
|
12150
12090
|
var _ref$className = _ref.className,
|
|
12151
12091
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12152
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12092
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
12153
12093
|
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12094
|
+
return React__default.createElement("svg", Object.assign({
|
|
12095
|
+
width: '16',
|
|
12096
|
+
height: '16',
|
|
12097
|
+
viewBox: '0 0 16 16',
|
|
12098
|
+
fill: 'none',
|
|
12099
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12100
|
+
className: classNames
|
|
12101
|
+
}, props), React__default.createElement("path", {
|
|
12102
|
+
fillRule: 'evenodd',
|
|
12103
|
+
clipRule: 'evenodd',
|
|
12104
|
+
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',
|
|
12105
|
+
fill: 'currentColor'
|
|
12106
|
+
}));
|
|
12107
|
+
}
|
|
12108
|
+
|
|
12109
|
+
var _excluded$p = ["className"];
|
|
12110
|
+
var rootClassName$2O = 'icon-component';
|
|
12111
|
+
function BellIcon(_ref) {
|
|
12112
|
+
var _ref$className = _ref.className,
|
|
12113
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12114
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
12115
|
+
var classNames = useMergedClassNames([rootClassName$2O, className]);
|
|
12116
|
+
return React__default.createElement("svg", Object.assign({
|
|
12117
|
+
width: '24',
|
|
12118
|
+
height: '24',
|
|
12119
|
+
viewBox: '0 0 24 24',
|
|
12120
|
+
fill: 'none',
|
|
12121
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12122
|
+
className: classNames
|
|
12123
|
+
}, props), React__default.createElement("path", {
|
|
12124
|
+
fillRule: 'evenodd',
|
|
12125
|
+
clipRule: 'evenodd',
|
|
12126
|
+
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',
|
|
12127
|
+
fill: 'currentColor'
|
|
12128
|
+
}));
|
|
12129
|
+
}
|
|
12130
|
+
|
|
12131
|
+
var _excluded$q = ["className"];
|
|
12132
|
+
var rootClassName$2P = 'icon-component';
|
|
12133
|
+
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12134
|
+
var _ref$className = _ref.className,
|
|
12135
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12136
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
12137
|
+
var classNames = useMergedClassNames([rootClassName$2P, className]);
|
|
12154
12138
|
return React__default.createElement("svg", Object.assign({
|
|
12155
12139
|
viewBox: '0 0 12 12',
|
|
12156
12140
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -12165,10 +12149,10 @@ var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
|
12165
12149
|
}));
|
|
12166
12150
|
};
|
|
12167
12151
|
|
|
12168
|
-
var rootClassName$
|
|
12152
|
+
var rootClassName$2Q = 'icon-component';
|
|
12169
12153
|
var PhonePlusIcon = function PhonePlusIcon() {
|
|
12170
12154
|
return React__default.createElement("svg", {
|
|
12171
|
-
className: rootClassName$
|
|
12155
|
+
className: rootClassName$2Q,
|
|
12172
12156
|
viewBox: '0 0 24 24',
|
|
12173
12157
|
fill: 'currentColor',
|
|
12174
12158
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -12179,7 +12163,22 @@ var PhonePlusIcon = function PhonePlusIcon() {
|
|
|
12179
12163
|
}));
|
|
12180
12164
|
};
|
|
12181
12165
|
|
|
12182
|
-
var rootClassName$
|
|
12166
|
+
var rootClassName$2R = 'icon-component';
|
|
12167
|
+
var Settings16Icon = function Settings16Icon() {
|
|
12168
|
+
return React__default.createElement("svg", {
|
|
12169
|
+
className: rootClassName$2R,
|
|
12170
|
+
viewBox: '0 0 16 16',
|
|
12171
|
+
fill: 'currentColor',
|
|
12172
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
12173
|
+
}, React__default.createElement("path", {
|
|
12174
|
+
fillRule: 'evenodd',
|
|
12175
|
+
clipRule: 'evenodd',
|
|
12176
|
+
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',
|
|
12177
|
+
fill: 'currentColor'
|
|
12178
|
+
}));
|
|
12179
|
+
};
|
|
12180
|
+
|
|
12181
|
+
var rootClassName$2S = 'calendar-header';
|
|
12183
12182
|
function CalendarHeader(props) {
|
|
12184
12183
|
var size = useScreenSize();
|
|
12185
12184
|
var days = React.useMemo(function () {
|
|
@@ -12189,16 +12188,16 @@ function CalendarHeader(props) {
|
|
|
12189
12188
|
return props.language.daysOfWeek;
|
|
12190
12189
|
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
12191
12190
|
return React__default.createElement("div", {
|
|
12192
|
-
className: rootClassName$
|
|
12191
|
+
className: rootClassName$2S
|
|
12193
12192
|
}, days.map(function (d, i) {
|
|
12194
12193
|
return React__default.createElement("div", {
|
|
12195
|
-
className: rootClassName$
|
|
12194
|
+
className: rootClassName$2S + "-day",
|
|
12196
12195
|
key: i
|
|
12197
12196
|
}, d);
|
|
12198
12197
|
}));
|
|
12199
12198
|
}
|
|
12200
12199
|
|
|
12201
|
-
var rootClassName$
|
|
12200
|
+
var rootClassName$2T = 'evento-calendario';
|
|
12202
12201
|
function CalendarEvent(props) {
|
|
12203
12202
|
var _useState = React.useState(props.forceExpanded || false),
|
|
12204
12203
|
expanded = _useState[0],
|
|
@@ -12227,12 +12226,12 @@ function CalendarEvent(props) {
|
|
|
12227
12226
|
return React__default.createElement(React.Fragment, null, "large");
|
|
12228
12227
|
case 'medium':
|
|
12229
12228
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12230
|
-
className: rootClassName$
|
|
12229
|
+
className: rootClassName$2T + "-tipo",
|
|
12231
12230
|
style: {
|
|
12232
12231
|
borderColor: props.color
|
|
12233
12232
|
}
|
|
12234
12233
|
}, props.tipoEvento), React__default.createElement("div", {
|
|
12235
|
-
className: rootClassName$
|
|
12234
|
+
className: rootClassName$2T + "-label"
|
|
12236
12235
|
}, React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
12237
12236
|
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
12238
12237
|
timeout: 300,
|
|
@@ -12242,26 +12241,26 @@ function CalendarEvent(props) {
|
|
|
12242
12241
|
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
12243
12242
|
animateOpacity: true
|
|
12244
12243
|
}, React__default.createElement(React.Fragment, null, React__default.createElement("span", null, props.expandedLabel), React__default.createElement("div", {
|
|
12245
|
-
className: rootClassName$
|
|
12244
|
+
className: rootClassName$2T + "-date-label"
|
|
12246
12245
|
}, props.expandedDate)))), React__default.createElement("div", {
|
|
12247
|
-
className: rootClassName$
|
|
12246
|
+
className: rootClassName$2T + "-modalidade"
|
|
12248
12247
|
}, React__default.createElement("div", {
|
|
12249
|
-
className: rootClassName$
|
|
12248
|
+
className: rootClassName$2T + "-icon"
|
|
12250
12249
|
}, props.icon), React__default.createElement("div", {
|
|
12251
|
-
className: rootClassName$
|
|
12250
|
+
className: rootClassName$2T + "-modalidade-label nunito"
|
|
12252
12251
|
}, props.iconLabel)));
|
|
12253
12252
|
case 'small':
|
|
12254
12253
|
default:
|
|
12255
12254
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12256
|
-
className: rootClassName$
|
|
12255
|
+
className: rootClassName$2T + "-icon"
|
|
12257
12256
|
}, props.icon), React__default.createElement("div", {
|
|
12258
|
-
className: rootClassName$
|
|
12257
|
+
className: rootClassName$2T + "-label nunito"
|
|
12259
12258
|
}, props.tipoEvento, " | ", props.label));
|
|
12260
12259
|
}
|
|
12261
12260
|
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
12262
12261
|
return React__default.createElement("button", {
|
|
12263
12262
|
ref: ref,
|
|
12264
|
-
className: useMergedClassNames([rootClassName$
|
|
12263
|
+
className: useMergedClassNames([rootClassName$2T, props.size, props.borderStyle]),
|
|
12265
12264
|
disabled: props.disabled,
|
|
12266
12265
|
onClick: function onClick(evt) {
|
|
12267
12266
|
if (typeof props.onClick === 'function') {
|
|
@@ -12287,10 +12286,10 @@ CalendarEvent.defaultProps = {
|
|
|
12287
12286
|
};
|
|
12288
12287
|
var CalendarEvent$1 = React.memo(CalendarEvent);
|
|
12289
12288
|
|
|
12290
|
-
var rootClassName$
|
|
12289
|
+
var rootClassName$2U = 'calendar-chip';
|
|
12291
12290
|
function CalendarChip(props) {
|
|
12292
12291
|
return React__default.createElement("button", {
|
|
12293
|
-
className: useMergedClassNames([rootClassName$
|
|
12292
|
+
className: useMergedClassNames([rootClassName$2U, 'nunito']),
|
|
12294
12293
|
onClick: props.onClick,
|
|
12295
12294
|
disabled: props.disabled,
|
|
12296
12295
|
style: {
|
|
@@ -12305,11 +12304,11 @@ CalendarChip.defaultProps = {
|
|
|
12305
12304
|
};
|
|
12306
12305
|
var CalendarChip$1 = React.memo(CalendarChip);
|
|
12307
12306
|
|
|
12308
|
-
var rootClassName$
|
|
12307
|
+
var rootClassName$2V = 'calendar-month-day';
|
|
12309
12308
|
function CalendarMonthDay(props) {
|
|
12310
12309
|
var _props$eventos, _props$eventos$length, _props$eventos2, _props$eventos$length2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
12311
12310
|
var classNames = React.useMemo(function () {
|
|
12312
|
-
return getMergedClassNames([rootClassName$
|
|
12311
|
+
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
12312
|
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
12314
12313
|
var date = new Date();
|
|
12315
12314
|
date.setDate(date.getDate() - 1);
|
|
@@ -12323,9 +12322,9 @@ function CalendarMonthDay(props) {
|
|
|
12323
12322
|
}
|
|
12324
12323
|
}
|
|
12325
12324
|
}, React__default.createElement("div", {
|
|
12326
|
-
className: rootClassName$
|
|
12325
|
+
className: rootClassName$2V + "-label-line"
|
|
12327
12326
|
}, React__default.createElement("div", {
|
|
12328
|
-
className: rootClassName$
|
|
12327
|
+
className: rootClassName$2V + "-day nunito",
|
|
12329
12328
|
onClick: function onClick(evt) {
|
|
12330
12329
|
if (props.pocket && !props.disabled && typeof props.onPlusButtonClick === 'function') {
|
|
12331
12330
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -12346,7 +12345,7 @@ function CalendarMonthDay(props) {
|
|
|
12346
12345
|
},
|
|
12347
12346
|
disabled: props.disabled
|
|
12348
12347
|
}) : undefined)), !props.pocket ? React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12349
|
-
className: rootClassName$
|
|
12348
|
+
className: rootClassName$2V + "-eventos"
|
|
12350
12349
|
}, (_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
12350
|
return React__default.createElement(CalendarEvent$1, Object.assign({
|
|
12352
12351
|
key: e.id
|
|
@@ -12355,7 +12354,7 @@ function CalendarMonthDay(props) {
|
|
|
12355
12354
|
}));
|
|
12356
12355
|
})), props.showAddButton ? React__default.createElement("button", {
|
|
12357
12356
|
disabled: props.disabledPrevAddButton ? props.day < date ? true : false : false,
|
|
12358
|
-
className: rootClassName$
|
|
12357
|
+
className: rootClassName$2V + "-button",
|
|
12359
12358
|
onClick: function onClick(evt) {
|
|
12360
12359
|
if (typeof props.onAddButtonClick === 'function') {
|
|
12361
12360
|
var _props$onAddButtonCli;
|
|
@@ -12367,7 +12366,7 @@ function CalendarMonthDay(props) {
|
|
|
12367
12366
|
}
|
|
12368
12367
|
var CalendarMonthDay$1 = React.memo(CalendarMonthDay);
|
|
12369
12368
|
|
|
12370
|
-
var rootClassName$
|
|
12369
|
+
var rootClassName$2W = 'calendar-days';
|
|
12371
12370
|
function CalendarDays(props) {
|
|
12372
12371
|
var today = React.useMemo(function () {
|
|
12373
12372
|
return new Date();
|
|
@@ -12385,7 +12384,7 @@ function CalendarDays(props) {
|
|
|
12385
12384
|
return false;
|
|
12386
12385
|
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
12387
12386
|
return React__default.createElement("div", {
|
|
12388
|
-
className: rootClassName$
|
|
12387
|
+
className: rootClassName$2W
|
|
12389
12388
|
}, days.map(function (d) {
|
|
12390
12389
|
var _props$eventos;
|
|
12391
12390
|
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
@@ -12410,8 +12409,8 @@ function CalendarDays(props) {
|
|
|
12410
12409
|
}
|
|
12411
12410
|
var CalendarDays$1 = React.memo(CalendarDays);
|
|
12412
12411
|
|
|
12413
|
-
var _excluded$
|
|
12414
|
-
var rootClassName$
|
|
12412
|
+
var _excluded$r = ["language", "visao", "referencia"];
|
|
12413
|
+
var rootClassName$2X = 'calendar';
|
|
12415
12414
|
function Calendar(_ref) {
|
|
12416
12415
|
var _ref$language = _ref.language,
|
|
12417
12416
|
language = _ref$language === void 0 ? ptbrCalendarLanguage : _ref$language,
|
|
@@ -12419,7 +12418,7 @@ function Calendar(_ref) {
|
|
|
12419
12418
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12420
12419
|
_ref$referencia = _ref.referencia,
|
|
12421
12420
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12422
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12421
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
12423
12422
|
var id = React.useMemo(getUniqueKey, []);
|
|
12424
12423
|
var _useState = React.useState(false),
|
|
12425
12424
|
pocket = _useState[0],
|
|
@@ -12427,7 +12426,7 @@ function Calendar(_ref) {
|
|
|
12427
12426
|
var pocketRef = React.useRef(pocket);
|
|
12428
12427
|
pocketRef.current = pocket;
|
|
12429
12428
|
var classNames = React.useMemo(function () {
|
|
12430
|
-
return getMergedClassNames([rootClassName$
|
|
12429
|
+
return getMergedClassNames([rootClassName$2X, props.loading ? 'loading' : '']);
|
|
12431
12430
|
}, [props.loading]);
|
|
12432
12431
|
var cbResize = React.useCallback(function (evt) {
|
|
12433
12432
|
if (pocketRef.current) {
|
|
@@ -12503,7 +12502,7 @@ function FormattedText(text) {
|
|
|
12503
12502
|
}));
|
|
12504
12503
|
}
|
|
12505
12504
|
|
|
12506
|
-
var rootClassName$
|
|
12505
|
+
var rootClassName$2Y = 'scroll-arrow-overflow';
|
|
12507
12506
|
function ScrollArrowOverflow(props) {
|
|
12508
12507
|
var ref = React.createRef();
|
|
12509
12508
|
var atualRef = React.useRef(0);
|
|
@@ -12575,9 +12574,9 @@ function ScrollArrowOverflow(props) {
|
|
|
12575
12574
|
};
|
|
12576
12575
|
}, []);
|
|
12577
12576
|
return React__default.createElement("div", {
|
|
12578
|
-
className: useMergedClassNames([rootClassName$
|
|
12577
|
+
className: useMergedClassNames([rootClassName$2Y, props.arrows])
|
|
12579
12578
|
}, React__default.createElement("div", {
|
|
12580
|
-
className: rootClassName$
|
|
12579
|
+
className: rootClassName$2Y + "-navigation"
|
|
12581
12580
|
}, React__default.createElement(IconButton$1, {
|
|
12582
12581
|
disabled: start,
|
|
12583
12582
|
icon: React__default.createElement(CircleArrowLeft, null),
|
|
@@ -12592,7 +12591,7 @@ function ScrollArrowOverflow(props) {
|
|
|
12592
12591
|
}
|
|
12593
12592
|
})), React__default.createElement("div", {
|
|
12594
12593
|
ref: ref,
|
|
12595
|
-
className: rootClassName$
|
|
12594
|
+
className: rootClassName$2Y + "-overflow"
|
|
12596
12595
|
}, props.children));
|
|
12597
12596
|
}
|
|
12598
12597
|
ScrollArrowOverflow.defaultProps = {
|
|
@@ -12601,26 +12600,26 @@ ScrollArrowOverflow.defaultProps = {
|
|
|
12601
12600
|
};
|
|
12602
12601
|
var ScrollArrowOverflow$1 = React.memo(ScrollArrowOverflow);
|
|
12603
12602
|
|
|
12604
|
-
var rootClassName$
|
|
12603
|
+
var rootClassName$2Z = 'hour-events';
|
|
12605
12604
|
function HourEvents(props) {
|
|
12606
12605
|
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
12607
12606
|
var _useState = React.useState(props.defaultOpened),
|
|
12608
12607
|
opened = _useState[0],
|
|
12609
12608
|
setOpened = _useState[1];
|
|
12610
12609
|
return React__default.createElement("div", {
|
|
12611
|
-
className: rootClassName$
|
|
12610
|
+
className: rootClassName$2Z
|
|
12612
12611
|
}, React__default.createElement("div", {
|
|
12613
|
-
className: rootClassName$
|
|
12612
|
+
className: rootClassName$2Z + "-first-line"
|
|
12614
12613
|
}, React__default.createElement("div", {
|
|
12615
|
-
className: rootClassName$
|
|
12614
|
+
className: rootClassName$2Z + "-hour"
|
|
12616
12615
|
}, props.hour), React__default.createElement("div", {
|
|
12617
|
-
className: rootClassName$
|
|
12616
|
+
className: rootClassName$2Z + "-line"
|
|
12618
12617
|
}), !props.events || !props.events.length ? React__default.createElement("div", {
|
|
12619
|
-
className: rootClassName$
|
|
12618
|
+
className: rootClassName$2Z + "-no-events nunito"
|
|
12620
12619
|
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React__default.createElement("div", {
|
|
12621
|
-
className: rootClassName$
|
|
12620
|
+
className: rootClassName$2Z + "-counter nunito"
|
|
12622
12621
|
}, (_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$
|
|
12622
|
+
className: rootClassName$2Z + "-toggle"
|
|
12624
12623
|
}, React__default.createElement(Button$1, {
|
|
12625
12624
|
theme: exports.ButtonThemes.DefaultPrimary,
|
|
12626
12625
|
onClick: function onClick() {
|
|
@@ -12655,7 +12654,7 @@ HourEvents.defaultProps = {
|
|
|
12655
12654
|
};
|
|
12656
12655
|
var HourEvents$1 = React.memo(HourEvents);
|
|
12657
12656
|
|
|
12658
|
-
var rootClassName$
|
|
12657
|
+
var rootClassName$2_ = 'inline-month-picker';
|
|
12659
12658
|
function InlineMonthPicker(props) {
|
|
12660
12659
|
var _props$labelGen;
|
|
12661
12660
|
var d = new Date(props.value.getTime());
|
|
@@ -12667,13 +12666,13 @@ function InlineMonthPicker(props) {
|
|
|
12667
12666
|
}
|
|
12668
12667
|
};
|
|
12669
12668
|
return React__default.createElement("div", {
|
|
12670
|
-
className: rootClassName$
|
|
12669
|
+
className: rootClassName$2_
|
|
12671
12670
|
}, React__default.createElement("div", {
|
|
12672
|
-
className: rootClassName$
|
|
12671
|
+
className: rootClassName$2_ + "-icon"
|
|
12673
12672
|
}, React__default.createElement(CalendarCheckIcon, null)), React__default.createElement("div", {
|
|
12674
|
-
className: rootClassName$
|
|
12673
|
+
className: rootClassName$2_ + "-label"
|
|
12675
12674
|
}, (_props$labelGen = props.labelGen) === null || _props$labelGen === void 0 ? void 0 : _props$labelGen.call(props, props.value)), React__default.createElement("div", {
|
|
12676
|
-
className: rootClassName$
|
|
12675
|
+
className: rootClassName$2_ + "-actions"
|
|
12677
12676
|
}, React__default.createElement(IconButton$1, {
|
|
12678
12677
|
icon: React__default.createElement(ChevronArrowLeftIcon, null),
|
|
12679
12678
|
onClick: function onClick() {
|
|
@@ -12699,7 +12698,113 @@ InlineMonthPicker.defaultProps = {
|
|
|
12699
12698
|
};
|
|
12700
12699
|
var InlineMonthPicker$1 = React.memo(InlineMonthPicker);
|
|
12701
12700
|
|
|
12702
|
-
var rootClassName$
|
|
12701
|
+
var rootClassName$2$ = 'component-notification-panel';
|
|
12702
|
+
function NotificationPanel(_ref) {
|
|
12703
|
+
var opened = _ref.opened,
|
|
12704
|
+
setOpened = _ref.setOpened,
|
|
12705
|
+
icon = _ref.children,
|
|
12706
|
+
_ref$notifications = _ref.notifications,
|
|
12707
|
+
notifications = _ref$notifications === void 0 ? [] : _ref$notifications,
|
|
12708
|
+
title = _ref.title,
|
|
12709
|
+
settingsButton = _ref.settingsButton,
|
|
12710
|
+
loading = _ref.loading,
|
|
12711
|
+
paginator = _ref.paginator;
|
|
12712
|
+
var _useState = React.useState(null),
|
|
12713
|
+
panelRef = _useState[0],
|
|
12714
|
+
setPanelRef = _useState[1];
|
|
12715
|
+
var _useState2 = React.useState(null),
|
|
12716
|
+
anchorRef = _useState2[0],
|
|
12717
|
+
setAnchorRef = _useState2[1];
|
|
12718
|
+
var headerRef = React__default.createRef();
|
|
12719
|
+
var footerRef = React__default.createRef();
|
|
12720
|
+
var bodyRef = React__default.createRef();
|
|
12721
|
+
React.useLayoutEffect(function () {
|
|
12722
|
+
var _headerRef$current$cl, _headerRef$current, _footerRef$current$cl, _footerRef$current, _bodyRef$current;
|
|
12723
|
+
var mh = panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight;
|
|
12724
|
+
var headerHeight = (_headerRef$current$cl = (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.clientHeight) != null ? _headerRef$current$cl : 0;
|
|
12725
|
+
var footerHeight = (_footerRef$current$cl = (_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.clientHeight) != null ? _footerRef$current$cl : 0;
|
|
12726
|
+
(_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');
|
|
12727
|
+
}, [bodyRef, footerRef, headerRef, panelRef === null || panelRef === void 0 ? void 0 : panelRef.style.maxHeight]);
|
|
12728
|
+
var _useFloatingPanel = useFloatingPanel({
|
|
12729
|
+
stateOpened: [opened, setOpened],
|
|
12730
|
+
elements: {
|
|
12731
|
+
floating: panelRef,
|
|
12732
|
+
reference: anchorRef
|
|
12733
|
+
},
|
|
12734
|
+
strategy: 'fixed',
|
|
12735
|
+
matchWidth: false,
|
|
12736
|
+
placement: 'bottom-end',
|
|
12737
|
+
offset: 4
|
|
12738
|
+
}),
|
|
12739
|
+
isMounted = _useFloatingPanel.isMounted,
|
|
12740
|
+
panelStyles = _useFloatingPanel.panelStyles;
|
|
12741
|
+
useEvent([{
|
|
12742
|
+
event: 'keydown',
|
|
12743
|
+
handler: function handler(e) {
|
|
12744
|
+
if (opened && 'key' in e && e.key === 'Escape') {
|
|
12745
|
+
setOpened(false);
|
|
12746
|
+
e.preventDefault();
|
|
12747
|
+
e.stopPropagation();
|
|
12748
|
+
}
|
|
12749
|
+
}
|
|
12750
|
+
}]);
|
|
12751
|
+
useOutsideClick([{
|
|
12752
|
+
current: panelRef
|
|
12753
|
+
}, {
|
|
12754
|
+
current: anchorRef
|
|
12755
|
+
}], function (isInside) {
|
|
12756
|
+
if (opened && !isInside) setOpened(false);
|
|
12757
|
+
});
|
|
12758
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
12759
|
+
ref: function ref(e) {
|
|
12760
|
+
return setAnchorRef(e);
|
|
12761
|
+
}
|
|
12762
|
+
}, icon), isMounted && React__default.createElement("div", {
|
|
12763
|
+
ref: function ref(e) {
|
|
12764
|
+
return setPanelRef(e);
|
|
12765
|
+
},
|
|
12766
|
+
className: rootClassName$2$,
|
|
12767
|
+
style: _extends({}, panelStyles)
|
|
12768
|
+
}, React__default.createElement("div", {
|
|
12769
|
+
className: rootClassName$2$ + "-header",
|
|
12770
|
+
ref: headerRef
|
|
12771
|
+
}, React__default.createElement(Bell16Icon, {
|
|
12772
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12773
|
+
}), React__default.createElement("div", {
|
|
12774
|
+
className: rootClassName$2$ + "-header-title"
|
|
12775
|
+
}, title), loading && React__default.createElement(PercentLoaderIcon, {
|
|
12776
|
+
indefinido: true,
|
|
12777
|
+
className: rootClassName$2$ + "-header-icon"
|
|
12778
|
+
}), settingsButton), React__default.createElement("div", {
|
|
12779
|
+
className: rootClassName$2$ + "-body scroll-white",
|
|
12780
|
+
ref: bodyRef
|
|
12781
|
+
}, notifications.map(function (n, i) {
|
|
12782
|
+
return React__default.createElement("div", {
|
|
12783
|
+
key: n.text + "-" + i,
|
|
12784
|
+
className: rootClassName$2$ + "-noti",
|
|
12785
|
+
onClick: n.onClick
|
|
12786
|
+
}, React__default.createElement("div", {
|
|
12787
|
+
className: rootClassName$2$ + "-noti-left"
|
|
12788
|
+
}, React__default.createElement("div", {
|
|
12789
|
+
className: rootClassName$2$ + "-noti-head"
|
|
12790
|
+
}, n.alert && React__default.createElement("span", {
|
|
12791
|
+
className: rootClassName$2$ + "-noti-alert"
|
|
12792
|
+
}), React__default.createElement("div", {
|
|
12793
|
+
className: rootClassName$2$ + "-noti-title"
|
|
12794
|
+
}, n.title)), n.text && React__default.createElement("div", {
|
|
12795
|
+
className: rootClassName$2$ + "-noti-text"
|
|
12796
|
+
}, n.text), n.date && React__default.createElement("div", {
|
|
12797
|
+
className: rootClassName$2$ + "-noti-date"
|
|
12798
|
+
}, n.date)), React__default.createElement("div", {
|
|
12799
|
+
className: rootClassName$2$ + "-noti-right"
|
|
12800
|
+
}, React__default.createElement(CircleArrowRight, null)));
|
|
12801
|
+
})), Boolean(paginator) && React__default.createElement("div", {
|
|
12802
|
+
className: rootClassName$2$ + "-footer",
|
|
12803
|
+
ref: footerRef
|
|
12804
|
+
}, paginator)));
|
|
12805
|
+
}
|
|
12806
|
+
|
|
12807
|
+
var rootClassName$30 = 'qrcode';
|
|
12703
12808
|
function QRCode(props) {
|
|
12704
12809
|
var ref = React.createRef();
|
|
12705
12810
|
React.useEffect(function () {
|
|
@@ -12718,7 +12823,7 @@ function QRCode(props) {
|
|
|
12718
12823
|
});
|
|
12719
12824
|
}, [props, ref]);
|
|
12720
12825
|
var className = React.useMemo(function () {
|
|
12721
|
-
return getMergedClassNames([rootClassName$
|
|
12826
|
+
return getMergedClassNames([rootClassName$30, props.button ? 'button' : '']);
|
|
12722
12827
|
}, [props.button]);
|
|
12723
12828
|
return React__default.createElement("div", {
|
|
12724
12829
|
className: className,
|
|
@@ -12739,10 +12844,10 @@ QRCode.defaultProps = {
|
|
|
12739
12844
|
};
|
|
12740
12845
|
var QRCode$1 = React.memo(QRCode);
|
|
12741
12846
|
|
|
12742
|
-
var rootClassName$
|
|
12847
|
+
var rootClassName$31 = 'icon-component';
|
|
12743
12848
|
var DecreaseIcon = function DecreaseIcon() {
|
|
12744
12849
|
return React__default.createElement("svg", {
|
|
12745
|
-
className: rootClassName$
|
|
12850
|
+
className: rootClassName$31,
|
|
12746
12851
|
viewBox: '0 0 24 24',
|
|
12747
12852
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
12748
12853
|
}, React__default.createElement("path", {
|
|
@@ -12753,12 +12858,12 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
12753
12858
|
}));
|
|
12754
12859
|
};
|
|
12755
12860
|
|
|
12756
|
-
var _excluded$
|
|
12757
|
-
var rootClassName$
|
|
12861
|
+
var _excluded$s = ["type"];
|
|
12862
|
+
var rootClassName$32 = 'component-table-left-checkbox-with-label';
|
|
12758
12863
|
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12759
12864
|
var _props$spanProps2, _props$spanProps3;
|
|
12760
12865
|
var type = _ref.type,
|
|
12761
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12866
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12762
12867
|
var style = React.useMemo(function () {
|
|
12763
12868
|
var _props$spanProps$styl, _props$spanProps;
|
|
12764
12869
|
var style = _extends({
|
|
@@ -12773,13 +12878,13 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12773
12878
|
return style;
|
|
12774
12879
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
12775
12880
|
return React__default.createElement("div", {
|
|
12776
|
-
className: getMergedClassNames([rootClassName$
|
|
12881
|
+
className: getMergedClassNames([rootClassName$32, props.w100 ? 'w-100' : ''])
|
|
12777
12882
|
}, React__default.createElement("span", {
|
|
12778
|
-
className: rootClassName$
|
|
12883
|
+
className: rootClassName$32 + "-checkbox-wrapper",
|
|
12779
12884
|
"tooltip-position": props['tooltip-position'],
|
|
12780
12885
|
"tooltip-text": props['tooltip-text']
|
|
12781
12886
|
}, type === 'addRemove' ? React__default.createElement(IconButton$1, {
|
|
12782
|
-
className: getMergedClassNames([rootClassName$
|
|
12887
|
+
className: getMergedClassNames([rootClassName$32 + "-add-remove-button", props.value ? rootClassName$32 + "-danger" : '']),
|
|
12783
12888
|
icon: props.value ? React__default.createElement(DecreaseIcon, null) : React__default.createElement(AddIcon, null),
|
|
12784
12889
|
disabled: props.disabled,
|
|
12785
12890
|
onClick: function onClick(evt) {
|
|
@@ -12793,7 +12898,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12793
12898
|
onChange: props.onChange,
|
|
12794
12899
|
theme: props.theme
|
|
12795
12900
|
})), React__default.createElement("span", Object.assign({}, (_props$spanProps2 = props.spanProps) != null ? _props$spanProps2 : {}, {
|
|
12796
|
-
className: getMergedClassNames([rootClassName$
|
|
12901
|
+
className: getMergedClassNames([rootClassName$32 + "-label-wrapper", ((_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.className) || '']),
|
|
12797
12902
|
style: style,
|
|
12798
12903
|
onClick: function onClick(evt) {
|
|
12799
12904
|
var _props$spanProps4, _props$spanProps4$onC;
|
|
@@ -12806,7 +12911,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
|
12806
12911
|
}), props.label));
|
|
12807
12912
|
};
|
|
12808
12913
|
|
|
12809
|
-
var rootClassName$
|
|
12914
|
+
var rootClassName$33 = 'tooltip-element';
|
|
12810
12915
|
function TooltipElement(_ref) {
|
|
12811
12916
|
var label = _ref.label,
|
|
12812
12917
|
_ref$placement = _ref.placement,
|
|
@@ -12865,14 +12970,14 @@ function TooltipElement(_ref) {
|
|
|
12865
12970
|
isMounted = _useTransitionStyles.isMounted,
|
|
12866
12971
|
transitionStyles = _useTransitionStyles.styles;
|
|
12867
12972
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", Object.assign({
|
|
12868
|
-
className: rootClassName$
|
|
12973
|
+
className: rootClassName$33 + "-reference",
|
|
12869
12974
|
ref: refs.setReference
|
|
12870
12975
|
}, getReferenceProps(wrapperProps)), children), React__default.createElement(react.FloatingPortal, null, isMounted && React__default.createElement("div", Object.assign({
|
|
12871
|
-
className: rootClassName$
|
|
12976
|
+
className: rootClassName$33 + "-tooltip",
|
|
12872
12977
|
ref: refs.setFloating,
|
|
12873
12978
|
style: _extends({}, floatingStyles, transitionStyles)
|
|
12874
12979
|
}, getFloatingProps()), React__default.createElement("span", {
|
|
12875
|
-
className: rootClassName$
|
|
12980
|
+
className: rootClassName$33 + "-label"
|
|
12876
12981
|
}, label), React__default.createElement(react.FloatingArrow, {
|
|
12877
12982
|
ref: arrowRef,
|
|
12878
12983
|
context: context,
|
|
@@ -12880,8 +12985,8 @@ function TooltipElement(_ref) {
|
|
|
12880
12985
|
}))));
|
|
12881
12986
|
}
|
|
12882
12987
|
|
|
12883
|
-
var _excluded$
|
|
12884
|
-
var rootClassName$
|
|
12988
|
+
var _excluded$t = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
12989
|
+
var rootClassName$34 = 'typography';
|
|
12885
12990
|
var Typography = React.forwardRef(function (_ref, ref) {
|
|
12886
12991
|
var _ref$className = _ref.className,
|
|
12887
12992
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -12900,8 +13005,8 @@ var Typography = React.forwardRef(function (_ref, ref) {
|
|
|
12900
13005
|
} : _ref$format,
|
|
12901
13006
|
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
12902
13007
|
children = _ref.children,
|
|
12903
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12904
|
-
var classNames = useMergedClassNames([rootClassName$
|
|
13008
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
13009
|
+
var classNames = useMergedClassNames([rootClassName$34 + "-tp", focus ? rootClassName$34 + "-focus" : '', color, variant, className]);
|
|
12905
13010
|
var tag = React.useMemo(function () {
|
|
12906
13011
|
switch (variant) {
|
|
12907
13012
|
case 'body':
|
|
@@ -43965,7 +44070,7 @@ function useHTMLShare() {
|
|
|
43965
44070
|
};
|
|
43966
44071
|
}
|
|
43967
44072
|
|
|
43968
|
-
var rootClassName$
|
|
44073
|
+
var rootClassName$35 = 'comp-modal-manager';
|
|
43969
44074
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
43970
44075
|
var hackFocus$1 = function hackFocus() {
|
|
43971
44076
|
var tmp = document.createElement('input');
|
|
@@ -44033,13 +44138,13 @@ function useModalManager() {
|
|
|
44033
44138
|
return [React__default.createElement(React__default.Fragment, {
|
|
44034
44139
|
key: 1
|
|
44035
44140
|
}, React__default.createElement(reactTransitionGroup.TransitionGroup, {
|
|
44036
|
-
className: rootClassName$
|
|
44141
|
+
className: rootClassName$35 + "-modals"
|
|
44037
44142
|
}, arrayOfModal.map(function (obj) {
|
|
44038
44143
|
var _obj$props2, _obj$props3;
|
|
44039
44144
|
var ModalComponent = React__default.createElement(obj.component, obj.props);
|
|
44040
44145
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
44041
44146
|
timeout: 300,
|
|
44042
|
-
classNames: rootClassName$
|
|
44147
|
+
classNames: rootClassName$35 + "-mask",
|
|
44043
44148
|
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
44044
44149
|
unmountOnExit: true
|
|
44045
44150
|
}, React__default.createElement(ModalMask, {
|
|
@@ -44310,7 +44415,7 @@ function useTimeElapsed(timeLeftInSeconds, callBackZero) {
|
|
|
44310
44415
|
return timeToReturn;
|
|
44311
44416
|
}
|
|
44312
44417
|
|
|
44313
|
-
var rootClassName$
|
|
44418
|
+
var rootClassName$36 = 'comp-toast-manager';
|
|
44314
44419
|
var count$1 = 0;
|
|
44315
44420
|
function useToastManager(props) {
|
|
44316
44421
|
var _props$max;
|
|
@@ -44330,6 +44435,7 @@ function useToastManager(props) {
|
|
|
44330
44435
|
return a.id !== id;
|
|
44331
44436
|
});
|
|
44332
44437
|
setArrayOfToast(arr);
|
|
44438
|
+
toastsRef.current = arr;
|
|
44333
44439
|
};
|
|
44334
44440
|
var showToast = React.useCallback(function (toast) {
|
|
44335
44441
|
var id = "toaster-" + count$1;
|
|
@@ -44355,17 +44461,17 @@ function useToastManager(props) {
|
|
|
44355
44461
|
toastsRef.current = [];
|
|
44356
44462
|
}, []);
|
|
44357
44463
|
var classNames = React.useMemo(function () {
|
|
44358
|
-
return getMergedClassNames([rootClassName$
|
|
44464
|
+
return getMergedClassNames([rootClassName$36 + "-toasts", rootClassName$36 + "-" + verticalPosition, rootClassName$36 + "-" + horizontalPosition, reverse ? rootClassName$36 + "-reverse" : '', animateSize ? rootClassName$36 + "-animate-size" : '']);
|
|
44359
44465
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
44360
44466
|
React.useLayoutEffect(function () {
|
|
44361
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
44467
|
+
var wrapper = document.querySelector("." + rootClassName$36 + "-toasts");
|
|
44362
44468
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
44363
44469
|
var somaDasAlturas = 0;
|
|
44364
44470
|
if (verticalPosition === 'top' && !reverse) {
|
|
44365
44471
|
somaDasAlturas = 12;
|
|
44366
44472
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
44367
44473
|
var el = wrapper.children[i];
|
|
44368
|
-
if (!el.classList.contains(rootClassName$
|
|
44474
|
+
if (!el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44369
44475
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44370
44476
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
44371
44477
|
}
|
|
@@ -44373,7 +44479,7 @@ function useToastManager(props) {
|
|
|
44373
44479
|
} else if (verticalPosition === 'top') {
|
|
44374
44480
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
44375
44481
|
var _el = wrapper.children[_i];
|
|
44376
|
-
if (!_el.classList.contains(rootClassName$
|
|
44482
|
+
if (!_el.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44377
44483
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
44378
44484
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44379
44485
|
}
|
|
@@ -44381,7 +44487,7 @@ function useToastManager(props) {
|
|
|
44381
44487
|
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
44382
44488
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
44383
44489
|
var _el2 = wrapper.children[_i2];
|
|
44384
|
-
if (!_el2.classList.contains(rootClassName$
|
|
44490
|
+
if (!_el2.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44385
44491
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
44386
44492
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44387
44493
|
}
|
|
@@ -44390,7 +44496,7 @@ function useToastManager(props) {
|
|
|
44390
44496
|
somaDasAlturas = 12;
|
|
44391
44497
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
44392
44498
|
var _el3 = wrapper.children[_i3];
|
|
44393
|
-
if (!_el3.classList.contains(rootClassName$
|
|
44499
|
+
if (!_el3.classList.contains(rootClassName$36 + "-toast-exit")) {
|
|
44394
44500
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44395
44501
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
44396
44502
|
}
|
|
@@ -44405,11 +44511,11 @@ function useToastManager(props) {
|
|
|
44405
44511
|
}, arrayOfToast.map(function (toast) {
|
|
44406
44512
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
44407
44513
|
timeout: 300,
|
|
44408
|
-
classNames: rootClassName$
|
|
44514
|
+
classNames: rootClassName$36 + "-toast",
|
|
44409
44515
|
key: toast.id,
|
|
44410
44516
|
unmountOnExit: true
|
|
44411
44517
|
}, React__default.createElement("div", {
|
|
44412
|
-
className: rootClassName$
|
|
44518
|
+
className: rootClassName$36 + "-toastzin"
|
|
44413
44519
|
}, React__default.createElement(Toast, {
|
|
44414
44520
|
theme: toast.theme,
|
|
44415
44521
|
label: toast.label,
|
|
@@ -44437,7 +44543,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44437
44543
|
return [value, setValue, validation(value)];
|
|
44438
44544
|
}
|
|
44439
44545
|
|
|
44440
|
-
var _excluded$
|
|
44546
|
+
var _excluded$u = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44441
44547
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44442
44548
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44443
44549
|
function AlertModal(_ref) {
|
|
@@ -44447,7 +44553,7 @@ function AlertModal(_ref) {
|
|
|
44447
44553
|
onConfirm = _ref.onConfirm,
|
|
44448
44554
|
_ref$showIcons = _ref.showIcons,
|
|
44449
44555
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44450
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44556
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
44451
44557
|
var _useState = React.useState(false),
|
|
44452
44558
|
loading = _useState[0],
|
|
44453
44559
|
setLoading = _useState[1];
|
|
@@ -44601,6 +44707,8 @@ exports.BackOfficeIcon = BackOfficeIcon;
|
|
|
44601
44707
|
exports.Banner = Banner;
|
|
44602
44708
|
exports.BarChartIcon = BarChartIcon;
|
|
44603
44709
|
exports.BeeIcon = BeeIcon;
|
|
44710
|
+
exports.Bell16Icon = Bell16Icon;
|
|
44711
|
+
exports.BellIcon = BellIcon;
|
|
44604
44712
|
exports.BigBlockButton = BigBlockButton;
|
|
44605
44713
|
exports.BigPlayIcon = BigPlayIcon;
|
|
44606
44714
|
exports.BoldIcon = BoldIcon;
|
|
@@ -44718,6 +44826,7 @@ exports.MoneyMonthLineChart = MoneyMonthLineChart;
|
|
|
44718
44826
|
exports.NavigatorWithMouse = NavigatorWithMouse;
|
|
44719
44827
|
exports.NotebookIcon = NotebookIcon;
|
|
44720
44828
|
exports.Notification = Notification;
|
|
44829
|
+
exports.NotificationPanel = NotificationPanel;
|
|
44721
44830
|
exports.OptionsIcon = OptionsIcon;
|
|
44722
44831
|
exports.PageSubTitle = PageSubTitle;
|
|
44723
44832
|
exports.PageTitle = PageTitle;
|
|
@@ -44746,6 +44855,7 @@ exports.ScrollArrowOverflow = ScrollArrowOverflow$1;
|
|
|
44746
44855
|
exports.Search = Search$1;
|
|
44747
44856
|
exports.SearchIcon = SearchIcon;
|
|
44748
44857
|
exports.Select = Select$1;
|
|
44858
|
+
exports.Settings16Icon = Settings16Icon;
|
|
44749
44859
|
exports.SettingsIcon = SettingsIcon;
|
|
44750
44860
|
exports.SicrediLogo = SicrediLogo;
|
|
44751
44861
|
exports.SquaresIcon = SquaresIcon;
|
|
@@ -44786,6 +44896,8 @@ exports.useCarouselBehaviour = useCarouselBehaviour;
|
|
|
44786
44896
|
exports.useControlledTimer = useControlledTimer;
|
|
44787
44897
|
exports.useDraggableContainer = useDraggableContainer;
|
|
44788
44898
|
exports.useDropOpened = useDropOpened;
|
|
44899
|
+
exports.useEvent = useEvent;
|
|
44900
|
+
exports.useFloatingPanel = useFloatingPanel;
|
|
44789
44901
|
exports.useHTMLShare = useHTMLShare;
|
|
44790
44902
|
exports.useModalManager = useModalManager;
|
|
44791
44903
|
exports.useOutsideClick = useOutsideClick;
|
|
@@ -44795,6 +44907,7 @@ exports.usePublicMenuList = usePublicMenuList;
|
|
|
44795
44907
|
exports.useScreenSize = useScreenSize;
|
|
44796
44908
|
exports.useScrollTo = useScrollTo;
|
|
44797
44909
|
exports.useStorageState = useStorageState;
|
|
44910
|
+
exports.useSystemInfo = useSystemInfo;
|
|
44798
44911
|
exports.useTimeElapsed = useTimeElapsed;
|
|
44799
44912
|
exports.useToastManager = useToastManager;
|
|
44800
44913
|
exports.useValidatedState = useValidatedState;
|