plataforma-fundacao-componentes 2.26.3 → 2.26.5
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/components/tooltipElement/TooltipElement.d.ts +11 -0
- package/dist/components/tooltipElement/TooltipElement.stories.d.ts +7 -0
- package/dist/components/typography/Typography.d.ts +14 -0
- package/dist/components/typography/Typography.stories.d.ts +39 -0
- package/dist/index.css +426 -257
- package/dist/index.d.ts +18 -16
- package/dist/index.js +594 -456
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +594 -458
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/HTMLutils.d.ts +1 -1
- package/package.json +2 -1
package/dist/index.modern.js
CHANGED
|
@@ -5,6 +5,7 @@ import moment from 'moment';
|
|
|
5
5
|
import DOMPurify from 'dompurify';
|
|
6
6
|
import Sortable from 'sortablejs';
|
|
7
7
|
import QR from 'qrcode';
|
|
8
|
+
import { useFloating, autoUpdate, offset, flip, shift, arrow, useHover, useFocus, useDismiss, useRole, useInteractions, useTransitionStyles, FloatingPortal, FloatingArrow } from '@floating-ui/react';
|
|
8
9
|
import html2canvas from 'html2canvas';
|
|
9
10
|
import { jsPDF } from 'jspdf';
|
|
10
11
|
|
|
@@ -178,13 +179,13 @@ var getMergedClassNames = function getMergedClassNames(arr) {
|
|
|
178
179
|
return Boolean(el);
|
|
179
180
|
}).join(' ');
|
|
180
181
|
};
|
|
181
|
-
|
|
182
|
+
function useMergedClassNames(arr) {
|
|
182
183
|
return useMemo(function () {
|
|
183
184
|
return arr.filter(function (el) {
|
|
184
185
|
return Boolean(el);
|
|
185
186
|
}).join(' ');
|
|
186
187
|
}, [arr]);
|
|
187
|
-
}
|
|
188
|
+
}
|
|
188
189
|
var getUniqueKey = function getUniqueKey() {
|
|
189
190
|
var atual = window.sessionStorage.getItem('chaveAtual') ? parseInt(window.sessionStorage.getItem('chaveAtual') || '1') : 1;
|
|
190
191
|
window.sessionStorage.setItem('chaveAtual', String(atual + 1));
|
|
@@ -7091,34 +7092,11 @@ Col.defaultProps = {
|
|
|
7091
7092
|
};
|
|
7092
7093
|
var Col$1 = memo(Col);
|
|
7093
7094
|
|
|
7094
|
-
var
|
|
7095
|
-
var rootClassName$1U = 'component-control-label';
|
|
7096
|
-
function ControlLabel(_ref) {
|
|
7097
|
-
var _control$props;
|
|
7098
|
-
var control = _ref.control,
|
|
7099
|
-
labelPosition = _ref.labelPosition,
|
|
7100
|
-
labelGap = _ref.labelGap,
|
|
7101
|
-
label = _ref.label,
|
|
7102
|
-
className = _ref.className,
|
|
7103
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
7104
|
-
var ref = useRef();
|
|
7105
|
-
return React.createElement("label", Object.assign({}, props, {
|
|
7106
|
-
className: getMergedClassNames([className, rootClassName$1U, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
7107
|
-
ref: ref,
|
|
7108
|
-
style: labelGap ? {
|
|
7109
|
-
gap: labelGap + "px"
|
|
7110
|
-
} : {}
|
|
7111
|
-
}), control, React.createElement("span", {
|
|
7112
|
-
className: 'nunito'
|
|
7113
|
-
}, label));
|
|
7114
|
-
}
|
|
7115
|
-
var ControlLabel$1 = memo(ControlLabel);
|
|
7116
|
-
|
|
7117
|
-
var rootClassName$1V = 'component-container';
|
|
7095
|
+
var rootClassName$1U = 'component-container';
|
|
7118
7096
|
function Container(props) {
|
|
7119
7097
|
var getProps = function getProps() {
|
|
7120
7098
|
var p = _extends({}, props, {
|
|
7121
|
-
className: getMergedClassNames([rootClassName$
|
|
7099
|
+
className: getMergedClassNames([rootClassName$1U, props.className, props.fluid ? 'fluid' : '', props.verticalPadding ? 'vertical-padding' : '', props.hasMobileButton ? 'has-mobile-button' : '', props.hasHeader ? 'has-header' : '', props.hasAdvancedHeader ? 'has-advanced-header' : '']),
|
|
7122
7100
|
style: _extends({}, props.style, {
|
|
7123
7101
|
position: props.position
|
|
7124
7102
|
})
|
|
@@ -7132,7 +7110,7 @@ function Container(props) {
|
|
|
7132
7110
|
return p;
|
|
7133
7111
|
};
|
|
7134
7112
|
return React.createElement("div", Object.assign({}, getProps()), React.createElement("div", {
|
|
7135
|
-
className: rootClassName$
|
|
7113
|
+
className: rootClassName$1U + "-insider"
|
|
7136
7114
|
}, props.children));
|
|
7137
7115
|
}
|
|
7138
7116
|
Container.defaultProps = {
|
|
@@ -7144,6 +7122,29 @@ Container.defaultProps = {
|
|
|
7144
7122
|
};
|
|
7145
7123
|
var Container$1 = memo(Container);
|
|
7146
7124
|
|
|
7125
|
+
var _excluded$5 = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7126
|
+
var rootClassName$1V = 'component-control-label';
|
|
7127
|
+
function ControlLabel(_ref) {
|
|
7128
|
+
var _control$props;
|
|
7129
|
+
var control = _ref.control,
|
|
7130
|
+
labelPosition = _ref.labelPosition,
|
|
7131
|
+
labelGap = _ref.labelGap,
|
|
7132
|
+
label = _ref.label,
|
|
7133
|
+
className = _ref.className,
|
|
7134
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
7135
|
+
var ref = useRef();
|
|
7136
|
+
return React.createElement("label", Object.assign({}, props, {
|
|
7137
|
+
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
7138
|
+
ref: ref,
|
|
7139
|
+
style: labelGap ? {
|
|
7140
|
+
gap: labelGap + "px"
|
|
7141
|
+
} : {}
|
|
7142
|
+
}), control, React.createElement("span", {
|
|
7143
|
+
className: 'nunito'
|
|
7144
|
+
}, label));
|
|
7145
|
+
}
|
|
7146
|
+
var ControlLabel$1 = memo(ControlLabel);
|
|
7147
|
+
|
|
7147
7148
|
var formatHexadecimalColor = function formatHexadecimalColor(input) {
|
|
7148
7149
|
var value = String(input).replace(/\W/g, '').slice(0, 6).replace(/[^a-fA-F0-9]/g, '').replace(/(.)/, '#$1');
|
|
7149
7150
|
return value;
|
|
@@ -8384,19 +8385,6 @@ FullHeightContainer.defaultProps = {
|
|
|
8384
8385
|
};
|
|
8385
8386
|
var FullHeightContainer$1 = memo(FullHeightContainer);
|
|
8386
8387
|
|
|
8387
|
-
var HEADER_SEPARATOR_PRIMARY = 'primary';
|
|
8388
|
-
var HEADER_SEPARATOR_SECONDARY = 'secondary';
|
|
8389
|
-
|
|
8390
|
-
var rootClassName$28 = 'component-header-separator';
|
|
8391
|
-
function HeaderSeparator(props) {
|
|
8392
|
-
return React.createElement("div", {
|
|
8393
|
-
className: getMergedClassNames([rootClassName$28, rootClassName$28 + "-" + props.theme])
|
|
8394
|
-
});
|
|
8395
|
-
}
|
|
8396
|
-
HeaderSeparator.defaultProps = {
|
|
8397
|
-
theme: HEADER_SEPARATOR_PRIMARY
|
|
8398
|
-
};
|
|
8399
|
-
|
|
8400
8388
|
var HeaderType;
|
|
8401
8389
|
(function (HeaderType) {
|
|
8402
8390
|
HeaderType["Verde"] = "primary";
|
|
@@ -8405,7 +8393,7 @@ var HeaderType;
|
|
|
8405
8393
|
HeaderType["Assembleia"] = "assembleia";
|
|
8406
8394
|
})(HeaderType || (HeaderType = {}));
|
|
8407
8395
|
|
|
8408
|
-
var rootClassName$
|
|
8396
|
+
var rootClassName$28 = 'component-header';
|
|
8409
8397
|
function Header(props) {
|
|
8410
8398
|
var _props$blackBar;
|
|
8411
8399
|
var p = useMemo(function () {
|
|
@@ -8416,31 +8404,31 @@ function Header(props) {
|
|
|
8416
8404
|
(_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props, evt);
|
|
8417
8405
|
}
|
|
8418
8406
|
},
|
|
8419
|
-
className: getMergedClassNames([rootClassName$
|
|
8407
|
+
className: getMergedClassNames([rootClassName$28, props.className, rootClassName$28 + "-" + props.theme, props.blackBar && props.blackBar.show ? 'has-black-bar' : ''])
|
|
8420
8408
|
};
|
|
8421
8409
|
}, [props]);
|
|
8422
|
-
var clearfixClassNames = getMergedClassNames([rootClassName$
|
|
8410
|
+
var clearfixClassNames = getMergedClassNames([rootClassName$28 + "-clearfix", rootClassName$28 + "-" + props.theme]);
|
|
8423
8411
|
return React.createElement(React.Fragment, null, React.createElement("header", Object.assign({}, p, {
|
|
8424
8412
|
style: {
|
|
8425
8413
|
position: props.position
|
|
8426
8414
|
}
|
|
8427
8415
|
}), props.blackBar && props.blackBar.show ? React.createElement("div", {
|
|
8428
|
-
className: rootClassName$
|
|
8416
|
+
className: rootClassName$28 + "-black-bar"
|
|
8429
8417
|
}, React.createElement("a", {
|
|
8430
8418
|
href: props.blackBar.link,
|
|
8431
8419
|
target: (_props$blackBar = props.blackBar) === null || _props$blackBar === void 0 ? void 0 : _props$blackBar.target
|
|
8432
8420
|
}, props.blackBar.icon, React.createElement("span", {
|
|
8433
8421
|
className: 'nunito'
|
|
8434
8422
|
}, props.blackBar.label))) : undefined, React.createElement("div", {
|
|
8435
|
-
className: rootClassName$
|
|
8423
|
+
className: rootClassName$28 + "-header-item"
|
|
8436
8424
|
}, props.leftContent, props.separator && props.separator.show ? React.createElement("div", {
|
|
8437
|
-
className: rootClassName$
|
|
8425
|
+
className: rootClassName$28 + "-separator-logo"
|
|
8438
8426
|
}, props.separator.label) : undefined), React.createElement("div", {
|
|
8439
|
-
className: rootClassName$
|
|
8427
|
+
className: rootClassName$28 + "-header-item"
|
|
8440
8428
|
}, props.centerContent), React.createElement("div", {
|
|
8441
|
-
className: rootClassName$
|
|
8429
|
+
className: rootClassName$28 + "-header-item"
|
|
8442
8430
|
}, props.rightContent)), props.theme === HeaderType.Semi && React.createElement("div", {
|
|
8443
|
-
className: rootClassName$
|
|
8431
|
+
className: rootClassName$28 + "-semi-clear"
|
|
8444
8432
|
}), props.clearfix && React.createElement("div", {
|
|
8445
8433
|
className: clearfixClassNames
|
|
8446
8434
|
}));
|
|
@@ -8451,6 +8439,19 @@ Header.defaultProps = {
|
|
|
8451
8439
|
};
|
|
8452
8440
|
var Header$1 = memo(Header);
|
|
8453
8441
|
|
|
8442
|
+
var HEADER_SEPARATOR_PRIMARY = 'primary';
|
|
8443
|
+
var HEADER_SEPARATOR_SECONDARY = 'secondary';
|
|
8444
|
+
|
|
8445
|
+
var rootClassName$29 = 'component-header-separator';
|
|
8446
|
+
function HeaderSeparator(props) {
|
|
8447
|
+
return React.createElement("div", {
|
|
8448
|
+
className: getMergedClassNames([rootClassName$29, rootClassName$29 + "-" + props.theme])
|
|
8449
|
+
});
|
|
8450
|
+
}
|
|
8451
|
+
HeaderSeparator.defaultProps = {
|
|
8452
|
+
theme: HEADER_SEPARATOR_PRIMARY
|
|
8453
|
+
};
|
|
8454
|
+
|
|
8454
8455
|
var rootClassName$2a = 'component-information-icon';
|
|
8455
8456
|
function Information(props) {
|
|
8456
8457
|
var getProps = function getProps() {
|
|
@@ -9144,82 +9145,6 @@ PageSubTitle.defaultProps = {
|
|
|
9144
9145
|
text: ''
|
|
9145
9146
|
};
|
|
9146
9147
|
|
|
9147
|
-
var rootClassName$2j = 'component-paginator';
|
|
9148
|
-
function Paginator(props) {
|
|
9149
|
-
var _useState = useState([]),
|
|
9150
|
-
arrOfNumbers = _useState[0],
|
|
9151
|
-
setArrOfNumbers = _useState[1];
|
|
9152
|
-
useEffect(function () {
|
|
9153
|
-
var arr = [];
|
|
9154
|
-
var inicio = 1;
|
|
9155
|
-
var fim = props.quantidadeDePaginas;
|
|
9156
|
-
if (props.maxLength) {
|
|
9157
|
-
var maxLength = props.maxLength > props.quantidadeDePaginas ? props.quantidadeDePaginas : props.maxLength;
|
|
9158
|
-
inicio = Math.round(props.paginaAtual - maxLength / 2);
|
|
9159
|
-
inicio = Math.max(inicio, 1);
|
|
9160
|
-
fim = inicio + maxLength - 1;
|
|
9161
|
-
if (fim > props.quantidadeDePaginas) {
|
|
9162
|
-
fim = props.quantidadeDePaginas;
|
|
9163
|
-
inicio = fim - maxLength + 1;
|
|
9164
|
-
}
|
|
9165
|
-
}
|
|
9166
|
-
for (var i = inicio; i <= fim; i++) {
|
|
9167
|
-
arr.push(i);
|
|
9168
|
-
}
|
|
9169
|
-
setArrOfNumbers(arr);
|
|
9170
|
-
}, [props.quantidadeDePaginas, props.maxLength, props.paginaAtual]);
|
|
9171
|
-
return React.createElement("div", {
|
|
9172
|
-
id: props.id ? props.id : undefined,
|
|
9173
|
-
className: getMergedClassNames([rootClassName$2j, props.className || ''])
|
|
9174
|
-
}, React.createElement("div", {
|
|
9175
|
-
className: rootClassName$2j + "-center-content"
|
|
9176
|
-
}, React.createElement("div", {
|
|
9177
|
-
className: props.loading ? "hidden" : ''
|
|
9178
|
-
}, props.quantidadeDePaginas > 1 ? React.createElement("div", {
|
|
9179
|
-
className: rootClassName$2j + "-left-arrow"
|
|
9180
|
-
}, React.createElement(IconButton$1, {
|
|
9181
|
-
disabled: props.paginaAtual === 1,
|
|
9182
|
-
icon: React.createElement(ChevronArrowLeftIcon, null),
|
|
9183
|
-
onClick: function onClick() {
|
|
9184
|
-
if (typeof props.onChange === 'function') {
|
|
9185
|
-
props.onChange(props.paginaAtual - 1);
|
|
9186
|
-
}
|
|
9187
|
-
}
|
|
9188
|
-
})) : undefined, React.createElement("div", {
|
|
9189
|
-
className: rootClassName$2j + "-numbers"
|
|
9190
|
-
}, arrOfNumbers.map(function (num) {
|
|
9191
|
-
return React.createElement("button", {
|
|
9192
|
-
key: num,
|
|
9193
|
-
className: getMergedClassNames([rootClassName$2j + "-number", num === props.paginaAtual ? 'active' : '']),
|
|
9194
|
-
onClick: function onClick() {
|
|
9195
|
-
if (typeof props.onChange === 'function' && num !== props.paginaAtual) {
|
|
9196
|
-
props.onChange(num);
|
|
9197
|
-
}
|
|
9198
|
-
}
|
|
9199
|
-
}, num);
|
|
9200
|
-
})), props.quantidadeDePaginas > 1 ? React.createElement("div", {
|
|
9201
|
-
className: rootClassName$2j + "-right-arrow"
|
|
9202
|
-
}, React.createElement(IconButton$1, {
|
|
9203
|
-
icon: React.createElement(ChevronArrowRightIcon, null),
|
|
9204
|
-
onClick: function onClick() {
|
|
9205
|
-
if (typeof props.onChange === 'function') {
|
|
9206
|
-
props.onChange(props.paginaAtual + 1);
|
|
9207
|
-
}
|
|
9208
|
-
},
|
|
9209
|
-
disabled: props.paginaAtual >= props.quantidadeDePaginas
|
|
9210
|
-
})) : undefined), React.createElement(CSSTransition, {
|
|
9211
|
-
classNames: rootClassName$2j + "-loader",
|
|
9212
|
-
"in": props.loading,
|
|
9213
|
-
timeout: 300,
|
|
9214
|
-
unmountOnExit: true
|
|
9215
|
-
}, React.createElement("div", {
|
|
9216
|
-
className: rootClassName$2j + "-loader"
|
|
9217
|
-
}, React.createElement(ThreeDotsLoader, {
|
|
9218
|
-
size: 2
|
|
9219
|
-
})))));
|
|
9220
|
-
}
|
|
9221
|
-
Paginator.defaultProps = {};
|
|
9222
|
-
|
|
9223
9148
|
var _excluded$b = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9224
9149
|
function usePagination(props) {
|
|
9225
9150
|
var _ref;
|
|
@@ -9323,10 +9248,10 @@ function usePagination(props) {
|
|
|
9323
9248
|
}, other);
|
|
9324
9249
|
}
|
|
9325
9250
|
|
|
9326
|
-
var rootClassName$
|
|
9251
|
+
var rootClassName$2j = 'icon-component';
|
|
9327
9252
|
var ThreeDots = function ThreeDots() {
|
|
9328
9253
|
return React.createElement("svg", {
|
|
9329
|
-
className: rootClassName$
|
|
9254
|
+
className: rootClassName$2j,
|
|
9330
9255
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
9331
9256
|
fill: 'none',
|
|
9332
9257
|
viewBox: '0.8 0.71 10.32 2.37'
|
|
@@ -9337,7 +9262,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9337
9262
|
};
|
|
9338
9263
|
|
|
9339
9264
|
var _excluded$c = ["page", "type", "selected"];
|
|
9340
|
-
var rootClassName$
|
|
9265
|
+
var rootClassName$2k = 'pagination-component';
|
|
9341
9266
|
var Pagination = function Pagination(props) {
|
|
9342
9267
|
var _useScreenSize = useScreenSize(),
|
|
9343
9268
|
size = _useScreenSize.size,
|
|
@@ -9409,7 +9334,7 @@ var Pagination = function Pagination(props) {
|
|
|
9409
9334
|
return false;
|
|
9410
9335
|
}, [size, rowsPerPage, countPages, rankedSize]);
|
|
9411
9336
|
return React.createElement(Row$1, {
|
|
9412
|
-
className: getMergedClassNames([rootClassName$
|
|
9337
|
+
className: getMergedClassNames([rootClassName$2k, countPages ? 'hasLeftItem' : '', countPages || rowsPerPage ? 'oneOf' : ''])
|
|
9413
9338
|
}, countPages || rowsPerPage ? React.createElement(Col$1, {
|
|
9414
9339
|
noPadding: true,
|
|
9415
9340
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12]
|
|
@@ -9514,6 +9439,82 @@ var Pagination = function Pagination(props) {
|
|
|
9514
9439
|
}))))));
|
|
9515
9440
|
};
|
|
9516
9441
|
|
|
9442
|
+
var rootClassName$2l = 'component-paginator';
|
|
9443
|
+
function Paginator(props) {
|
|
9444
|
+
var _useState = useState([]),
|
|
9445
|
+
arrOfNumbers = _useState[0],
|
|
9446
|
+
setArrOfNumbers = _useState[1];
|
|
9447
|
+
useEffect(function () {
|
|
9448
|
+
var arr = [];
|
|
9449
|
+
var inicio = 1;
|
|
9450
|
+
var fim = props.quantidadeDePaginas;
|
|
9451
|
+
if (props.maxLength) {
|
|
9452
|
+
var maxLength = props.maxLength > props.quantidadeDePaginas ? props.quantidadeDePaginas : props.maxLength;
|
|
9453
|
+
inicio = Math.round(props.paginaAtual - maxLength / 2);
|
|
9454
|
+
inicio = Math.max(inicio, 1);
|
|
9455
|
+
fim = inicio + maxLength - 1;
|
|
9456
|
+
if (fim > props.quantidadeDePaginas) {
|
|
9457
|
+
fim = props.quantidadeDePaginas;
|
|
9458
|
+
inicio = fim - maxLength + 1;
|
|
9459
|
+
}
|
|
9460
|
+
}
|
|
9461
|
+
for (var i = inicio; i <= fim; i++) {
|
|
9462
|
+
arr.push(i);
|
|
9463
|
+
}
|
|
9464
|
+
setArrOfNumbers(arr);
|
|
9465
|
+
}, [props.quantidadeDePaginas, props.maxLength, props.paginaAtual]);
|
|
9466
|
+
return React.createElement("div", {
|
|
9467
|
+
id: props.id ? props.id : undefined,
|
|
9468
|
+
className: getMergedClassNames([rootClassName$2l, props.className || ''])
|
|
9469
|
+
}, React.createElement("div", {
|
|
9470
|
+
className: rootClassName$2l + "-center-content"
|
|
9471
|
+
}, React.createElement("div", {
|
|
9472
|
+
className: props.loading ? "hidden" : ''
|
|
9473
|
+
}, props.quantidadeDePaginas > 1 ? React.createElement("div", {
|
|
9474
|
+
className: rootClassName$2l + "-left-arrow"
|
|
9475
|
+
}, React.createElement(IconButton$1, {
|
|
9476
|
+
disabled: props.paginaAtual === 1,
|
|
9477
|
+
icon: React.createElement(ChevronArrowLeftIcon, null),
|
|
9478
|
+
onClick: function onClick() {
|
|
9479
|
+
if (typeof props.onChange === 'function') {
|
|
9480
|
+
props.onChange(props.paginaAtual - 1);
|
|
9481
|
+
}
|
|
9482
|
+
}
|
|
9483
|
+
})) : undefined, React.createElement("div", {
|
|
9484
|
+
className: rootClassName$2l + "-numbers"
|
|
9485
|
+
}, arrOfNumbers.map(function (num) {
|
|
9486
|
+
return React.createElement("button", {
|
|
9487
|
+
key: num,
|
|
9488
|
+
className: getMergedClassNames([rootClassName$2l + "-number", num === props.paginaAtual ? 'active' : '']),
|
|
9489
|
+
onClick: function onClick() {
|
|
9490
|
+
if (typeof props.onChange === 'function' && num !== props.paginaAtual) {
|
|
9491
|
+
props.onChange(num);
|
|
9492
|
+
}
|
|
9493
|
+
}
|
|
9494
|
+
}, num);
|
|
9495
|
+
})), props.quantidadeDePaginas > 1 ? React.createElement("div", {
|
|
9496
|
+
className: rootClassName$2l + "-right-arrow"
|
|
9497
|
+
}, React.createElement(IconButton$1, {
|
|
9498
|
+
icon: React.createElement(ChevronArrowRightIcon, null),
|
|
9499
|
+
onClick: function onClick() {
|
|
9500
|
+
if (typeof props.onChange === 'function') {
|
|
9501
|
+
props.onChange(props.paginaAtual + 1);
|
|
9502
|
+
}
|
|
9503
|
+
},
|
|
9504
|
+
disabled: props.paginaAtual >= props.quantidadeDePaginas
|
|
9505
|
+
})) : undefined), React.createElement(CSSTransition, {
|
|
9506
|
+
classNames: rootClassName$2l + "-loader",
|
|
9507
|
+
"in": props.loading,
|
|
9508
|
+
timeout: 300,
|
|
9509
|
+
unmountOnExit: true
|
|
9510
|
+
}, React.createElement("div", {
|
|
9511
|
+
className: rootClassName$2l + "-loader"
|
|
9512
|
+
}, React.createElement(ThreeDotsLoader, {
|
|
9513
|
+
size: 2
|
|
9514
|
+
})))));
|
|
9515
|
+
}
|
|
9516
|
+
Paginator.defaultProps = {};
|
|
9517
|
+
|
|
9517
9518
|
var rootClassName$2m = 'component-video-player';
|
|
9518
9519
|
function VideoPlayer(props) {
|
|
9519
9520
|
var youtubeRegex = /youtu(\.){0,1}be/;
|
|
@@ -10640,32 +10641,8 @@ Switch.defaultProps = {
|
|
|
10640
10641
|
scale: 1
|
|
10641
10642
|
};
|
|
10642
10643
|
|
|
10643
|
-
var IconButtonType;
|
|
10644
|
-
(function (IconButtonType) {
|
|
10645
|
-
IconButtonType["Primary"] = "primary";
|
|
10646
|
-
IconButtonType["Secondary"] = "secondary";
|
|
10647
|
-
IconButtonType["Gray"] = "gray";
|
|
10648
|
-
IconButtonType["Dark"] = "dark";
|
|
10649
|
-
IconButtonType["Blue"] = "blue";
|
|
10650
|
-
})(IconButtonType || (IconButtonType = {}));
|
|
10651
|
-
|
|
10652
|
-
var rootClassName$2t = 'component-table-actions-column';
|
|
10653
|
-
var ActionsColumn = function ActionsColumn(props) {
|
|
10654
|
-
return React.createElement("div", {
|
|
10655
|
-
className: rootClassName$2t
|
|
10656
|
-
}, props.buttons && props.buttons.length ? props.buttons.map(function (btn, index) {
|
|
10657
|
-
return React.createElement(IconButton$1, Object.assign({
|
|
10658
|
-
key: index,
|
|
10659
|
-
theme: IconButtonType.Primary
|
|
10660
|
-
}, btn));
|
|
10661
|
-
}) : undefined);
|
|
10662
|
-
};
|
|
10663
|
-
ActionsColumn.defaultProps = {
|
|
10664
|
-
buttons: []
|
|
10665
|
-
};
|
|
10666
|
-
|
|
10667
10644
|
var _excluded$e = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10668
|
-
var rootClassName$
|
|
10645
|
+
var rootClassName$2t = 'component-table';
|
|
10669
10646
|
function TypedTable(props) {
|
|
10670
10647
|
return React.createElement(Table, Object.assign({}, props));
|
|
10671
10648
|
}
|
|
@@ -10687,8 +10664,8 @@ function Table(_ref) {
|
|
|
10687
10664
|
var el = document.getElementById(itemsId);
|
|
10688
10665
|
sortableComponent = new Sortable(el, {
|
|
10689
10666
|
animation: 300,
|
|
10690
|
-
ghostClass: rootClassName$
|
|
10691
|
-
dragClass: rootClassName$
|
|
10667
|
+
ghostClass: rootClassName$2t + "-item-ghost",
|
|
10668
|
+
dragClass: rootClassName$2t + "-item-dragging",
|
|
10692
10669
|
onStart: function onStart() {
|
|
10693
10670
|
document.body.classList.add('document-grabbing');
|
|
10694
10671
|
},
|
|
@@ -10720,9 +10697,9 @@ function Table(_ref) {
|
|
|
10720
10697
|
};
|
|
10721
10698
|
}, [sortable, itemsId]);
|
|
10722
10699
|
return React.createElement("div", {
|
|
10723
|
-
className: rootClassName$
|
|
10700
|
+
className: rootClassName$2t + "-outer"
|
|
10724
10701
|
}, upperHeader ? React.createElement(React.Fragment, null, React.createElement("div", {
|
|
10725
|
-
className: getMergedClassNames([rootClassName$
|
|
10702
|
+
className: getMergedClassNames([rootClassName$2t + "-upper-header", upperHeader.active ? 'active' : ''])
|
|
10726
10703
|
}, upperHeader.buttons && upperHeader.buttons.length ? upperHeader.buttons.map(function (btn, index) {
|
|
10727
10704
|
return React.createElement("button", {
|
|
10728
10705
|
id: btn.id || undefined,
|
|
@@ -10731,9 +10708,9 @@ function Table(_ref) {
|
|
|
10731
10708
|
disabled: !(upperHeader !== null && upperHeader !== void 0 && upperHeader.active) || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
|
|
10732
10709
|
}, React.createElement("span", null, btn.icon), btn.label);
|
|
10733
10710
|
}) : undefined)) : undefined, React.createElement("div", {
|
|
10734
|
-
className: rootClassName$
|
|
10711
|
+
className: rootClassName$2t + "-outer-table"
|
|
10735
10712
|
}, React.createElement("table", Object.assign({}, props, {
|
|
10736
|
-
className: getMergedClassNames([rootClassName$
|
|
10713
|
+
className: getMergedClassNames([rootClassName$2t, className || '', upperHeader ? 'has-upper-header' : ''])
|
|
10737
10714
|
}), React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null), columns && columns.length ? Array.from(columns).map(function (column, columnIndex) {
|
|
10738
10715
|
return React.createElement("th", Object.assign({}, column.props, {
|
|
10739
10716
|
key: column.key ? column.key : columnIndex
|
|
@@ -10760,6 +10737,30 @@ function Table(_ref) {
|
|
|
10760
10737
|
}) : undefined))));
|
|
10761
10738
|
}
|
|
10762
10739
|
|
|
10740
|
+
var IconButtonType;
|
|
10741
|
+
(function (IconButtonType) {
|
|
10742
|
+
IconButtonType["Primary"] = "primary";
|
|
10743
|
+
IconButtonType["Secondary"] = "secondary";
|
|
10744
|
+
IconButtonType["Gray"] = "gray";
|
|
10745
|
+
IconButtonType["Dark"] = "dark";
|
|
10746
|
+
IconButtonType["Blue"] = "blue";
|
|
10747
|
+
})(IconButtonType || (IconButtonType = {}));
|
|
10748
|
+
|
|
10749
|
+
var rootClassName$2u = 'component-table-actions-column';
|
|
10750
|
+
var ActionsColumn = function ActionsColumn(props) {
|
|
10751
|
+
return React.createElement("div", {
|
|
10752
|
+
className: rootClassName$2u
|
|
10753
|
+
}, props.buttons && props.buttons.length ? props.buttons.map(function (btn, index) {
|
|
10754
|
+
return React.createElement(IconButton$1, Object.assign({
|
|
10755
|
+
key: index,
|
|
10756
|
+
theme: IconButtonType.Primary
|
|
10757
|
+
}, btn));
|
|
10758
|
+
}) : undefined);
|
|
10759
|
+
};
|
|
10760
|
+
ActionsColumn.defaultProps = {
|
|
10761
|
+
buttons: []
|
|
10762
|
+
};
|
|
10763
|
+
|
|
10763
10764
|
var titleClassName$1 = 'component-table-actions';
|
|
10764
10765
|
function TableActions(props) {
|
|
10765
10766
|
var _props$actions;
|
|
@@ -12157,10 +12158,31 @@ VideoModal.defaultProps = {
|
|
|
12157
12158
|
size: 'md'
|
|
12158
12159
|
};
|
|
12159
12160
|
|
|
12161
|
+
var _excluded$h = ["className"];
|
|
12160
12162
|
var rootClassName$2N = 'icon-component';
|
|
12163
|
+
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12164
|
+
var _ref$className = _ref.className,
|
|
12165
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12166
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
12167
|
+
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12168
|
+
return React.createElement("svg", Object.assign({
|
|
12169
|
+
viewBox: '0 0 12 12',
|
|
12170
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
12171
|
+
fill: 'none'
|
|
12172
|
+
}, props, {
|
|
12173
|
+
className: classNames
|
|
12174
|
+
}), React.createElement("path", {
|
|
12175
|
+
fillRule: 'evenodd',
|
|
12176
|
+
clipRule: 'evenodd',
|
|
12177
|
+
d: 'M12 6C12 2.68564 9.31436 0 6 0C2.68564 0 0 2.68564 0 6C0 7.01942 0.254625 8.00224 0.733857 8.87715C1.10309 9.55088 1.5972 10.1477 2.18733 10.6329C3.25333 11.5114 4.58947 12 6 12C9.31436 12 12 9.31436 12 6ZM0.75 6C0.75 3.09986 3.09986 0.75 6 0.75C8.90014 0.75 11.25 3.09986 11.25 6C11.25 8.90014 8.90014 11.25 6 11.25C4.76512 11.25 3.59719 10.8229 2.66398 10.0539C2.14748 9.62916 1.7149 9.10668 1.3916 8.51678C0.972551 7.75174 0.75 6.89272 0.75 6ZM5.625 5.12622V8.90472C5.625 9.11183 5.79289 9.27972 6 9.27972C6.20711 9.27972 6.375 9.11183 6.375 8.90472V5.12622C6.375 4.91911 6.20711 4.75122 6 4.75122C5.79289 4.75122 5.625 4.91911 5.625 5.12622ZM6 3.09521C6.25875 3.09521 6.46875 3.30446 6.46875 3.56396C6.46875 3.82271 6.25875 4.03271 6 4.03271C5.74125 4.03271 5.53125 3.82271 5.53125 3.56396C5.53125 3.30446 5.74125 3.09521 6 3.09521Z',
|
|
12178
|
+
fill: 'currentColor'
|
|
12179
|
+
}));
|
|
12180
|
+
};
|
|
12181
|
+
|
|
12182
|
+
var rootClassName$2O = 'icon-component';
|
|
12161
12183
|
var PhonePlusIcon = function PhonePlusIcon() {
|
|
12162
12184
|
return React.createElement("svg", {
|
|
12163
|
-
className: rootClassName$
|
|
12185
|
+
className: rootClassName$2O,
|
|
12164
12186
|
viewBox: '0 0 24 24',
|
|
12165
12187
|
fill: 'currentColor',
|
|
12166
12188
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -12171,7 +12193,7 @@ var PhonePlusIcon = function PhonePlusIcon() {
|
|
|
12171
12193
|
}));
|
|
12172
12194
|
};
|
|
12173
12195
|
|
|
12174
|
-
var rootClassName$
|
|
12196
|
+
var rootClassName$2P = 'calendar-header';
|
|
12175
12197
|
function CalendarHeader(props) {
|
|
12176
12198
|
var size = useScreenSize();
|
|
12177
12199
|
var days = useMemo(function () {
|
|
@@ -12181,16 +12203,16 @@ function CalendarHeader(props) {
|
|
|
12181
12203
|
return props.language.daysOfWeek;
|
|
12182
12204
|
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
12183
12205
|
return React.createElement("div", {
|
|
12184
|
-
className: rootClassName$
|
|
12206
|
+
className: rootClassName$2P
|
|
12185
12207
|
}, days.map(function (d, i) {
|
|
12186
12208
|
return React.createElement("div", {
|
|
12187
|
-
className: rootClassName$
|
|
12209
|
+
className: rootClassName$2P + "-day",
|
|
12188
12210
|
key: i
|
|
12189
12211
|
}, d);
|
|
12190
12212
|
}));
|
|
12191
12213
|
}
|
|
12192
12214
|
|
|
12193
|
-
var rootClassName$
|
|
12215
|
+
var rootClassName$2Q = 'evento-calendario';
|
|
12194
12216
|
function CalendarEvent(props) {
|
|
12195
12217
|
var _useState = useState(props.forceExpanded || false),
|
|
12196
12218
|
expanded = _useState[0],
|
|
@@ -12219,12 +12241,12 @@ function CalendarEvent(props) {
|
|
|
12219
12241
|
return React.createElement(Fragment$1, null, "large");
|
|
12220
12242
|
case 'medium':
|
|
12221
12243
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12222
|
-
className: rootClassName$
|
|
12244
|
+
className: rootClassName$2Q + "-tipo",
|
|
12223
12245
|
style: {
|
|
12224
12246
|
borderColor: props.color
|
|
12225
12247
|
}
|
|
12226
12248
|
}, props.tipoEvento), React.createElement("div", {
|
|
12227
|
-
className: rootClassName$
|
|
12249
|
+
className: rootClassName$2Q + "-label"
|
|
12228
12250
|
}, React.createElement(CSSTransition, {
|
|
12229
12251
|
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
12230
12252
|
timeout: 300,
|
|
@@ -12234,26 +12256,26 @@ function CalendarEvent(props) {
|
|
|
12234
12256
|
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
12235
12257
|
animateOpacity: true
|
|
12236
12258
|
}, React.createElement(Fragment$1, null, React.createElement("span", null, props.expandedLabel), React.createElement("div", {
|
|
12237
|
-
className: rootClassName$
|
|
12259
|
+
className: rootClassName$2Q + "-date-label"
|
|
12238
12260
|
}, props.expandedDate)))), React.createElement("div", {
|
|
12239
|
-
className: rootClassName$
|
|
12261
|
+
className: rootClassName$2Q + "-modalidade"
|
|
12240
12262
|
}, React.createElement("div", {
|
|
12241
|
-
className: rootClassName$
|
|
12263
|
+
className: rootClassName$2Q + "-icon"
|
|
12242
12264
|
}, props.icon), React.createElement("div", {
|
|
12243
|
-
className: rootClassName$
|
|
12265
|
+
className: rootClassName$2Q + "-modalidade-label nunito"
|
|
12244
12266
|
}, props.iconLabel)));
|
|
12245
12267
|
case 'small':
|
|
12246
12268
|
default:
|
|
12247
12269
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12248
|
-
className: rootClassName$
|
|
12270
|
+
className: rootClassName$2Q + "-icon"
|
|
12249
12271
|
}, props.icon), React.createElement("div", {
|
|
12250
|
-
className: rootClassName$
|
|
12272
|
+
className: rootClassName$2Q + "-label nunito"
|
|
12251
12273
|
}, props.tipoEvento, " | ", props.label));
|
|
12252
12274
|
}
|
|
12253
12275
|
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
12254
12276
|
return React.createElement("button", {
|
|
12255
12277
|
ref: ref,
|
|
12256
|
-
className: useMergedClassNames([rootClassName$
|
|
12278
|
+
className: useMergedClassNames([rootClassName$2Q, props.size, props.borderStyle]),
|
|
12257
12279
|
disabled: props.disabled,
|
|
12258
12280
|
onClick: function onClick(evt) {
|
|
12259
12281
|
if (typeof props.onClick === 'function') {
|
|
@@ -12279,10 +12301,10 @@ CalendarEvent.defaultProps = {
|
|
|
12279
12301
|
};
|
|
12280
12302
|
var CalendarEvent$1 = memo(CalendarEvent);
|
|
12281
12303
|
|
|
12282
|
-
var rootClassName$
|
|
12304
|
+
var rootClassName$2R = 'calendar-chip';
|
|
12283
12305
|
function CalendarChip(props) {
|
|
12284
12306
|
return React.createElement("button", {
|
|
12285
|
-
className: useMergedClassNames([rootClassName$
|
|
12307
|
+
className: useMergedClassNames([rootClassName$2R, 'nunito']),
|
|
12286
12308
|
onClick: props.onClick,
|
|
12287
12309
|
disabled: props.disabled,
|
|
12288
12310
|
style: {
|
|
@@ -12297,11 +12319,11 @@ CalendarChip.defaultProps = {
|
|
|
12297
12319
|
};
|
|
12298
12320
|
var CalendarChip$1 = memo(CalendarChip);
|
|
12299
12321
|
|
|
12300
|
-
var rootClassName$
|
|
12322
|
+
var rootClassName$2S = 'calendar-month-day';
|
|
12301
12323
|
function CalendarMonthDay(props) {
|
|
12302
12324
|
var _props$eventos, _props$eventos$length, _props$eventos2, _props$eventos$length2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
12303
12325
|
var classNames = useMemo(function () {
|
|
12304
|
-
return getMergedClassNames([rootClassName$
|
|
12326
|
+
return getMergedClassNames([rootClassName$2S, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
12305
12327
|
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
12306
12328
|
var date = new Date();
|
|
12307
12329
|
date.setDate(date.getDate() - 1);
|
|
@@ -12315,9 +12337,9 @@ function CalendarMonthDay(props) {
|
|
|
12315
12337
|
}
|
|
12316
12338
|
}
|
|
12317
12339
|
}, React.createElement("div", {
|
|
12318
|
-
className: rootClassName$
|
|
12340
|
+
className: rootClassName$2S + "-label-line"
|
|
12319
12341
|
}, React.createElement("div", {
|
|
12320
|
-
className: rootClassName$
|
|
12342
|
+
className: rootClassName$2S + "-day nunito",
|
|
12321
12343
|
onClick: function onClick(evt) {
|
|
12322
12344
|
if (props.pocket && !props.disabled && typeof props.onPlusButtonClick === 'function') {
|
|
12323
12345
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -12338,7 +12360,7 @@ function CalendarMonthDay(props) {
|
|
|
12338
12360
|
},
|
|
12339
12361
|
disabled: props.disabled
|
|
12340
12362
|
}) : undefined)), !props.pocket ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12341
|
-
className: rootClassName$
|
|
12363
|
+
className: rootClassName$2S + "-eventos"
|
|
12342
12364
|
}, (_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) {
|
|
12343
12365
|
return React.createElement(CalendarEvent$1, Object.assign({
|
|
12344
12366
|
key: e.id
|
|
@@ -12347,7 +12369,7 @@ function CalendarMonthDay(props) {
|
|
|
12347
12369
|
}));
|
|
12348
12370
|
})), props.showAddButton ? React.createElement("button", {
|
|
12349
12371
|
disabled: props.disabledPrevAddButton ? props.day < date ? true : false : false,
|
|
12350
|
-
className: rootClassName$
|
|
12372
|
+
className: rootClassName$2S + "-button",
|
|
12351
12373
|
onClick: function onClick(evt) {
|
|
12352
12374
|
if (typeof props.onAddButtonClick === 'function') {
|
|
12353
12375
|
var _props$onAddButtonCli;
|
|
@@ -12359,7 +12381,7 @@ function CalendarMonthDay(props) {
|
|
|
12359
12381
|
}
|
|
12360
12382
|
var CalendarMonthDay$1 = memo(CalendarMonthDay);
|
|
12361
12383
|
|
|
12362
|
-
var rootClassName$
|
|
12384
|
+
var rootClassName$2T = 'calendar-days';
|
|
12363
12385
|
function CalendarDays(props) {
|
|
12364
12386
|
var today = useMemo(function () {
|
|
12365
12387
|
return new Date();
|
|
@@ -12377,7 +12399,7 @@ function CalendarDays(props) {
|
|
|
12377
12399
|
return false;
|
|
12378
12400
|
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
12379
12401
|
return React.createElement("div", {
|
|
12380
|
-
className: rootClassName$
|
|
12402
|
+
className: rootClassName$2T
|
|
12381
12403
|
}, days.map(function (d) {
|
|
12382
12404
|
var _props$eventos;
|
|
12383
12405
|
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
@@ -12402,8 +12424,8 @@ function CalendarDays(props) {
|
|
|
12402
12424
|
}
|
|
12403
12425
|
var CalendarDays$1 = memo(CalendarDays);
|
|
12404
12426
|
|
|
12405
|
-
var _excluded$
|
|
12406
|
-
var rootClassName$
|
|
12427
|
+
var _excluded$i = ["language", "visao", "referencia"];
|
|
12428
|
+
var rootClassName$2U = 'calendar';
|
|
12407
12429
|
function Calendar(_ref) {
|
|
12408
12430
|
var _ref$language = _ref.language,
|
|
12409
12431
|
language = _ref$language === void 0 ? ptbrCalendarLanguage : _ref$language,
|
|
@@ -12411,7 +12433,7 @@ function Calendar(_ref) {
|
|
|
12411
12433
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12412
12434
|
_ref$referencia = _ref.referencia,
|
|
12413
12435
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12414
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12436
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
12415
12437
|
var id = useMemo(getUniqueKey, []);
|
|
12416
12438
|
var _useState = useState(false),
|
|
12417
12439
|
pocket = _useState[0],
|
|
@@ -12419,7 +12441,7 @@ function Calendar(_ref) {
|
|
|
12419
12441
|
var pocketRef = useRef(pocket);
|
|
12420
12442
|
pocketRef.current = pocket;
|
|
12421
12443
|
var classNames = useMemo(function () {
|
|
12422
|
-
return getMergedClassNames([rootClassName$
|
|
12444
|
+
return getMergedClassNames([rootClassName$2U, props.loading ? 'loading' : '']);
|
|
12423
12445
|
}, [props.loading]);
|
|
12424
12446
|
var cbResize = useCallback(function (evt) {
|
|
12425
12447
|
if (pocketRef.current) {
|
|
@@ -12476,7 +12498,26 @@ Calendar.defaultProps = {
|
|
|
12476
12498
|
};
|
|
12477
12499
|
var Calendar$1 = memo(Calendar);
|
|
12478
12500
|
|
|
12479
|
-
|
|
12501
|
+
function FormattedText(text) {
|
|
12502
|
+
var _text$text, _text$tag, _text$props;
|
|
12503
|
+
var _final = typeof text === 'string' ? text : (_text$text = text.text) != null ? _text$text : '';
|
|
12504
|
+
var tag = typeof text === 'string' ? 'span' : (_text$tag = text.tag) != null ? _text$tag : 'span';
|
|
12505
|
+
var props = typeof text === 'string' ? {} : (_text$props = text.props) != null ? _text$props : {};
|
|
12506
|
+
_final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
|
|
12507
|
+
for (var _len = arguments.length, replacers = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12508
|
+
replacers[_key - 1] = arguments[_key];
|
|
12509
|
+
}
|
|
12510
|
+
replacers.forEach(function (s, i) {
|
|
12511
|
+
_final = _final.replaceAll("#" + (i + 1) + "#", s);
|
|
12512
|
+
});
|
|
12513
|
+
return React.createElement(tag, _extends({}, props, {
|
|
12514
|
+
dangerouslySetInnerHTML: {
|
|
12515
|
+
__html: DOMPurify.sanitize(_final)
|
|
12516
|
+
}
|
|
12517
|
+
}));
|
|
12518
|
+
}
|
|
12519
|
+
|
|
12520
|
+
var rootClassName$2V = 'scroll-arrow-overflow';
|
|
12480
12521
|
function ScrollArrowOverflow(props) {
|
|
12481
12522
|
var ref = createRef();
|
|
12482
12523
|
var atualRef = useRef(0);
|
|
@@ -12548,9 +12589,9 @@ function ScrollArrowOverflow(props) {
|
|
|
12548
12589
|
};
|
|
12549
12590
|
}, []);
|
|
12550
12591
|
return React.createElement("div", {
|
|
12551
|
-
className: useMergedClassNames([rootClassName$
|
|
12592
|
+
className: useMergedClassNames([rootClassName$2V, props.arrows])
|
|
12552
12593
|
}, React.createElement("div", {
|
|
12553
|
-
className: rootClassName$
|
|
12594
|
+
className: rootClassName$2V + "-navigation"
|
|
12554
12595
|
}, React.createElement(IconButton$1, {
|
|
12555
12596
|
disabled: start,
|
|
12556
12597
|
icon: React.createElement(CircleArrowLeft, null),
|
|
@@ -12565,7 +12606,7 @@ function ScrollArrowOverflow(props) {
|
|
|
12565
12606
|
}
|
|
12566
12607
|
})), React.createElement("div", {
|
|
12567
12608
|
ref: ref,
|
|
12568
|
-
className: rootClassName$
|
|
12609
|
+
className: rootClassName$2V + "-overflow"
|
|
12569
12610
|
}, props.children));
|
|
12570
12611
|
}
|
|
12571
12612
|
ScrollArrowOverflow.defaultProps = {
|
|
@@ -12574,26 +12615,26 @@ ScrollArrowOverflow.defaultProps = {
|
|
|
12574
12615
|
};
|
|
12575
12616
|
var ScrollArrowOverflow$1 = memo(ScrollArrowOverflow);
|
|
12576
12617
|
|
|
12577
|
-
var rootClassName$
|
|
12618
|
+
var rootClassName$2W = 'hour-events';
|
|
12578
12619
|
function HourEvents(props) {
|
|
12579
12620
|
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
12580
12621
|
var _useState = useState(props.defaultOpened),
|
|
12581
12622
|
opened = _useState[0],
|
|
12582
12623
|
setOpened = _useState[1];
|
|
12583
12624
|
return React.createElement("div", {
|
|
12584
|
-
className: rootClassName$
|
|
12625
|
+
className: rootClassName$2W
|
|
12585
12626
|
}, React.createElement("div", {
|
|
12586
|
-
className: rootClassName$
|
|
12627
|
+
className: rootClassName$2W + "-first-line"
|
|
12587
12628
|
}, React.createElement("div", {
|
|
12588
|
-
className: rootClassName$
|
|
12629
|
+
className: rootClassName$2W + "-hour"
|
|
12589
12630
|
}, props.hour), React.createElement("div", {
|
|
12590
|
-
className: rootClassName$
|
|
12631
|
+
className: rootClassName$2W + "-line"
|
|
12591
12632
|
}), !props.events || !props.events.length ? React.createElement("div", {
|
|
12592
|
-
className: rootClassName$
|
|
12633
|
+
className: rootClassName$2W + "-no-events nunito"
|
|
12593
12634
|
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React.createElement("div", {
|
|
12594
|
-
className: rootClassName$
|
|
12635
|
+
className: rootClassName$2W + "-counter nunito"
|
|
12595
12636
|
}, (_props$language2 = props.language) === null || _props$language2 === void 0 ? void 0 : _props$language2.events((_props$events = props.events) === null || _props$events === void 0 ? void 0 : _props$events.length))), (_props$events2 = props.events) !== null && _props$events2 !== void 0 && _props$events2.length ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
12596
|
-
className: rootClassName$
|
|
12637
|
+
className: rootClassName$2W + "-toggle"
|
|
12597
12638
|
}, React.createElement(Button$1, {
|
|
12598
12639
|
theme: ButtonThemes.DefaultPrimary,
|
|
12599
12640
|
onClick: function onClick() {
|
|
@@ -12628,7 +12669,7 @@ HourEvents.defaultProps = {
|
|
|
12628
12669
|
};
|
|
12629
12670
|
var HourEvents$1 = memo(HourEvents);
|
|
12630
12671
|
|
|
12631
|
-
var rootClassName$
|
|
12672
|
+
var rootClassName$2X = 'inline-month-picker';
|
|
12632
12673
|
function InlineMonthPicker(props) {
|
|
12633
12674
|
var _props$labelGen;
|
|
12634
12675
|
var d = new Date(props.value.getTime());
|
|
@@ -12640,13 +12681,13 @@ function InlineMonthPicker(props) {
|
|
|
12640
12681
|
}
|
|
12641
12682
|
};
|
|
12642
12683
|
return React.createElement("div", {
|
|
12643
|
-
className: rootClassName$
|
|
12684
|
+
className: rootClassName$2X
|
|
12644
12685
|
}, React.createElement("div", {
|
|
12645
|
-
className: rootClassName$
|
|
12686
|
+
className: rootClassName$2X + "-icon"
|
|
12646
12687
|
}, React.createElement(CalendarCheckIcon, null)), React.createElement("div", {
|
|
12647
|
-
className: rootClassName$
|
|
12688
|
+
className: rootClassName$2X + "-label"
|
|
12648
12689
|
}, (_props$labelGen = props.labelGen) === null || _props$labelGen === void 0 ? void 0 : _props$labelGen.call(props, props.value)), React.createElement("div", {
|
|
12649
|
-
className: rootClassName$
|
|
12690
|
+
className: rootClassName$2X + "-actions"
|
|
12650
12691
|
}, React.createElement(IconButton$1, {
|
|
12651
12692
|
icon: React.createElement(ChevronArrowLeftIcon, null),
|
|
12652
12693
|
onClick: function onClick() {
|
|
@@ -12672,7 +12713,7 @@ InlineMonthPicker.defaultProps = {
|
|
|
12672
12713
|
};
|
|
12673
12714
|
var InlineMonthPicker$1 = memo(InlineMonthPicker);
|
|
12674
12715
|
|
|
12675
|
-
var rootClassName$
|
|
12716
|
+
var rootClassName$2Y = 'qrcode';
|
|
12676
12717
|
function QRCode(props) {
|
|
12677
12718
|
var ref = createRef();
|
|
12678
12719
|
useEffect(function () {
|
|
@@ -12691,7 +12732,7 @@ function QRCode(props) {
|
|
|
12691
12732
|
});
|
|
12692
12733
|
}, [props, ref]);
|
|
12693
12734
|
var className = useMemo(function () {
|
|
12694
|
-
return getMergedClassNames([rootClassName$
|
|
12735
|
+
return getMergedClassNames([rootClassName$2Y, props.button ? 'button' : '']);
|
|
12695
12736
|
}, [props.button]);
|
|
12696
12737
|
return React.createElement("div", {
|
|
12697
12738
|
className: className,
|
|
@@ -12712,6 +12753,208 @@ QRCode.defaultProps = {
|
|
|
12712
12753
|
};
|
|
12713
12754
|
var QRCode$1 = memo(QRCode);
|
|
12714
12755
|
|
|
12756
|
+
var rootClassName$2Z = 'icon-component';
|
|
12757
|
+
var DecreaseIcon = function DecreaseIcon() {
|
|
12758
|
+
return React.createElement("svg", {
|
|
12759
|
+
className: rootClassName$2Z,
|
|
12760
|
+
viewBox: '0 0 24 24',
|
|
12761
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
12762
|
+
}, React.createElement("path", {
|
|
12763
|
+
fillRule: 'evenodd',
|
|
12764
|
+
clipRule: 'evenodd',
|
|
12765
|
+
d: 'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM17.5 12C17.5 11.7239 17.2761 11.5 17 11.5H7L6.91012 11.5081C6.67688 11.5504 6.5 11.7545 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5H17L17.0899 12.4919C17.3231 12.4496 17.5 12.2455 17.5 12Z',
|
|
12766
|
+
fill: 'currentColor'
|
|
12767
|
+
}));
|
|
12768
|
+
};
|
|
12769
|
+
|
|
12770
|
+
var _excluded$j = ["type"];
|
|
12771
|
+
var rootClassName$2_ = 'component-table-left-checkbox-with-label';
|
|
12772
|
+
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12773
|
+
var _props$spanProps2, _props$spanProps3;
|
|
12774
|
+
var type = _ref.type,
|
|
12775
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
12776
|
+
var style = useMemo(function () {
|
|
12777
|
+
var _props$spanProps$styl, _props$spanProps;
|
|
12778
|
+
var style = _extends({
|
|
12779
|
+
justifyContent: props.justifyContent
|
|
12780
|
+
}, (_props$spanProps$styl = (_props$spanProps = props.spanProps) === null || _props$spanProps === void 0 ? void 0 : _props$spanProps.style) != null ? _props$spanProps$styl : {});
|
|
12781
|
+
if (props.removeUserSelect) {
|
|
12782
|
+
style.userSelect = 'none';
|
|
12783
|
+
}
|
|
12784
|
+
if (props.anchorLabelToCheckbox && !props.disabled) {
|
|
12785
|
+
style.cursor = 'pointer';
|
|
12786
|
+
}
|
|
12787
|
+
return style;
|
|
12788
|
+
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
12789
|
+
return React.createElement("div", {
|
|
12790
|
+
className: getMergedClassNames([rootClassName$2_, props.w100 ? 'w-100' : ''])
|
|
12791
|
+
}, React.createElement("span", {
|
|
12792
|
+
className: rootClassName$2_ + "-checkbox-wrapper",
|
|
12793
|
+
"tooltip-position": props['tooltip-position'],
|
|
12794
|
+
"tooltip-text": props['tooltip-text']
|
|
12795
|
+
}, type === 'addRemove' ? React.createElement(IconButton$1, {
|
|
12796
|
+
className: getMergedClassNames([rootClassName$2_ + "-add-remove-button", props.value ? rootClassName$2_ + "-danger" : '']),
|
|
12797
|
+
icon: props.value ? React.createElement(DecreaseIcon, null) : React.createElement(AddIcon, null),
|
|
12798
|
+
disabled: props.disabled,
|
|
12799
|
+
onClick: function onClick(evt) {
|
|
12800
|
+
var _props$onChange;
|
|
12801
|
+
evt.stopPropagation();
|
|
12802
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, !props.value, evt);
|
|
12803
|
+
}
|
|
12804
|
+
}) : React.createElement(Checkbox$1, {
|
|
12805
|
+
value: props.value,
|
|
12806
|
+
disabled: props.disabled,
|
|
12807
|
+
onChange: props.onChange,
|
|
12808
|
+
theme: props.theme
|
|
12809
|
+
})), React.createElement("span", Object.assign({}, (_props$spanProps2 = props.spanProps) != null ? _props$spanProps2 : {}, {
|
|
12810
|
+
className: getMergedClassNames([rootClassName$2_ + "-label-wrapper", ((_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.className) || '']),
|
|
12811
|
+
style: style,
|
|
12812
|
+
onClick: function onClick(evt) {
|
|
12813
|
+
var _props$spanProps4, _props$spanProps4$onC;
|
|
12814
|
+
if (props.anchorLabelToCheckbox) {
|
|
12815
|
+
var _props$onChange2;
|
|
12816
|
+
(_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 ? void 0 : _props$onChange2.call(props, !props.value, evt);
|
|
12817
|
+
}
|
|
12818
|
+
(_props$spanProps4 = props.spanProps) === null || _props$spanProps4 === void 0 ? void 0 : (_props$spanProps4$onC = _props$spanProps4.onClick) === null || _props$spanProps4$onC === void 0 ? void 0 : _props$spanProps4$onC.call(_props$spanProps4, evt);
|
|
12819
|
+
}
|
|
12820
|
+
}), props.label));
|
|
12821
|
+
};
|
|
12822
|
+
|
|
12823
|
+
var rootClassName$2$ = 'tooltip-element';
|
|
12824
|
+
function TooltipElement(_ref) {
|
|
12825
|
+
var label = _ref.label,
|
|
12826
|
+
_ref$placement = _ref.placement,
|
|
12827
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
12828
|
+
_ref$fallbackPlacemen = _ref.fallbackPlacements,
|
|
12829
|
+
fallbackPlacements = _ref$fallbackPlacemen === void 0 ? ['right', 'left', 'bottom'] : _ref$fallbackPlacemen,
|
|
12830
|
+
_ref$wrapperProps = _ref.wrapperProps,
|
|
12831
|
+
wrapperProps = _ref$wrapperProps === void 0 ? {} : _ref$wrapperProps,
|
|
12832
|
+
children = _ref.children;
|
|
12833
|
+
var arrowRef = useRef(null);
|
|
12834
|
+
var _useState = useState(false),
|
|
12835
|
+
opened = _useState[0],
|
|
12836
|
+
setOpened = _useState[1];
|
|
12837
|
+
var _useFloating = useFloating({
|
|
12838
|
+
open: opened,
|
|
12839
|
+
onOpenChange: setOpened,
|
|
12840
|
+
placement: placement,
|
|
12841
|
+
whileElementsMounted: autoUpdate,
|
|
12842
|
+
transform: false,
|
|
12843
|
+
strategy: 'fixed',
|
|
12844
|
+
middleware: [offset(7 + 2), flip({
|
|
12845
|
+
fallbackPlacements: fallbackPlacements
|
|
12846
|
+
}), shift(), arrow({
|
|
12847
|
+
element: arrowRef,
|
|
12848
|
+
padding: 8
|
|
12849
|
+
})]
|
|
12850
|
+
}),
|
|
12851
|
+
floatingStyles = _useFloating.floatingStyles,
|
|
12852
|
+
refs = _useFloating.refs,
|
|
12853
|
+
context = _useFloating.context;
|
|
12854
|
+
var hover = useHover(context, {
|
|
12855
|
+
move: false
|
|
12856
|
+
});
|
|
12857
|
+
var focus = useFocus(context);
|
|
12858
|
+
var dismiss = useDismiss(context);
|
|
12859
|
+
var role = useRole(context, {
|
|
12860
|
+
role: 'tooltip'
|
|
12861
|
+
});
|
|
12862
|
+
var _useInteractions = useInteractions([hover, focus, dismiss, role]),
|
|
12863
|
+
getReferenceProps = _useInteractions.getReferenceProps,
|
|
12864
|
+
getFloatingProps = _useInteractions.getFloatingProps;
|
|
12865
|
+
var _useTransitionStyles = useTransitionStyles(context, {
|
|
12866
|
+
duration: 250,
|
|
12867
|
+
initial: function initial(_ref2) {
|
|
12868
|
+
var side = _ref2.side;
|
|
12869
|
+
return {
|
|
12870
|
+
transform: ['top', 'bottom'].includes(side) ? 'translateY(5px)' : '',
|
|
12871
|
+
opacity: 0
|
|
12872
|
+
};
|
|
12873
|
+
},
|
|
12874
|
+
common: {
|
|
12875
|
+
transform: 'translateY(0px)',
|
|
12876
|
+
opacity: 1
|
|
12877
|
+
}
|
|
12878
|
+
}),
|
|
12879
|
+
isMounted = _useTransitionStyles.isMounted,
|
|
12880
|
+
transitionStyles = _useTransitionStyles.styles;
|
|
12881
|
+
return React.createElement(Fragment$1, null, React.createElement("div", Object.assign({
|
|
12882
|
+
className: rootClassName$2$ + "-reference",
|
|
12883
|
+
ref: refs.setReference
|
|
12884
|
+
}, getReferenceProps(wrapperProps)), children), React.createElement(FloatingPortal, null, isMounted && React.createElement("div", Object.assign({
|
|
12885
|
+
className: rootClassName$2$ + "-tooltip",
|
|
12886
|
+
ref: refs.setFloating,
|
|
12887
|
+
style: _extends({}, floatingStyles, transitionStyles)
|
|
12888
|
+
}, getFloatingProps()), React.createElement("span", {
|
|
12889
|
+
className: rootClassName$2$ + "-label"
|
|
12890
|
+
}, label), React.createElement(FloatingArrow, {
|
|
12891
|
+
ref: arrowRef,
|
|
12892
|
+
context: context,
|
|
12893
|
+
fill: '#323c32'
|
|
12894
|
+
}))));
|
|
12895
|
+
}
|
|
12896
|
+
|
|
12897
|
+
var _excluded$k = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
12898
|
+
var rootClassName$30 = 'typography';
|
|
12899
|
+
var Typography = forwardRef(function (_ref, ref) {
|
|
12900
|
+
var _ref$className = _ref.className,
|
|
12901
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12902
|
+
_ref$variant = _ref.variant,
|
|
12903
|
+
variant = _ref$variant === void 0 ? 'body' : _ref$variant,
|
|
12904
|
+
_ref$color = _ref.color,
|
|
12905
|
+
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
12906
|
+
_ref$focus = _ref.focus,
|
|
12907
|
+
focus = _ref$focus === void 0 ? false : _ref$focus,
|
|
12908
|
+
style = _ref.style,
|
|
12909
|
+
alignment = _ref.alignment,
|
|
12910
|
+
_ref$format = _ref.format,
|
|
12911
|
+
format = _ref$format === void 0 ? {
|
|
12912
|
+
active: false,
|
|
12913
|
+
replacers: []
|
|
12914
|
+
} : _ref$format,
|
|
12915
|
+
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
12916
|
+
children = _ref.children,
|
|
12917
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
12918
|
+
var classNames = useMergedClassNames([rootClassName$30 + "-tp", focus ? rootClassName$30 + "-focus" : '', color, variant, className]);
|
|
12919
|
+
var tag = useMemo(function () {
|
|
12920
|
+
switch (variant) {
|
|
12921
|
+
case 'body':
|
|
12922
|
+
return 'p';
|
|
12923
|
+
case 'caption':
|
|
12924
|
+
case 'small':
|
|
12925
|
+
return 'span';
|
|
12926
|
+
default:
|
|
12927
|
+
return variant;
|
|
12928
|
+
}
|
|
12929
|
+
}, [variant]);
|
|
12930
|
+
var formatted = useMemo(function () {
|
|
12931
|
+
if (typeof children === 'string' && (format === true || format !== null && format !== void 0 && format.active)) {
|
|
12932
|
+
var content = children.toString().replace(/_([^_]*)_/g, '<i>$1</i>').replace(/\*{4}([^*]*)\*{4}/g, '<span style="font-weight: 500;">$1</span>').replace(/\*{3}([^*]*)\*{3}/g, '<span style="font-weight: 600;">$1</span>').replace(/\*{2}([^*]*)\*{2}/g, '<span style="font-weight: 700;">$1</span>').replace(/\*([^*]*)\*/g, '<b>$1</b>').replace(/~([^~]*)~/g, '<del>$1</del>');
|
|
12933
|
+
if (format !== true) {
|
|
12934
|
+
var _format$replacers;
|
|
12935
|
+
(_format$replacers = format.replacers) === null || _format$replacers === void 0 ? void 0 : _format$replacers.forEach(function (s, i) {
|
|
12936
|
+
content = content.replaceAll("#" + (i + 1) + "#", s);
|
|
12937
|
+
});
|
|
12938
|
+
}
|
|
12939
|
+
return DOMPurify.sanitize(content, {
|
|
12940
|
+
ADD_ATTR: ['target']
|
|
12941
|
+
});
|
|
12942
|
+
}
|
|
12943
|
+
return undefined;
|
|
12944
|
+
}, [children, format]);
|
|
12945
|
+
return createElement(tag, _extends({
|
|
12946
|
+
ref: ref,
|
|
12947
|
+
className: classNames,
|
|
12948
|
+
style: _extends({}, style != null ? style : {}, alignment ? {
|
|
12949
|
+
textAlign: alignment
|
|
12950
|
+
} : {}),
|
|
12951
|
+
dangerouslySetInnerHTML: formatted ? {
|
|
12952
|
+
__html: formatted
|
|
12953
|
+
} : dangerouslySetInnerHTML
|
|
12954
|
+
}, props), formatted ? undefined : children);
|
|
12955
|
+
});
|
|
12956
|
+
Typography.displayName = 'Typography';
|
|
12957
|
+
|
|
12715
12958
|
function useCallbackedState(callback, initialValue) {
|
|
12716
12959
|
var _useState = useState(initialValue),
|
|
12717
12960
|
value = _useState[0],
|
|
@@ -43736,7 +43979,7 @@ function useHTMLShare() {
|
|
|
43736
43979
|
};
|
|
43737
43980
|
}
|
|
43738
43981
|
|
|
43739
|
-
var rootClassName$
|
|
43982
|
+
var rootClassName$31 = 'comp-modal-manager';
|
|
43740
43983
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
43741
43984
|
var hackFocus$1 = function hackFocus() {
|
|
43742
43985
|
var tmp = document.createElement('input');
|
|
@@ -43804,13 +44047,13 @@ function useModalManager() {
|
|
|
43804
44047
|
return [React.createElement(React.Fragment, {
|
|
43805
44048
|
key: 1
|
|
43806
44049
|
}, React.createElement(TransitionGroup, {
|
|
43807
|
-
className: rootClassName$
|
|
44050
|
+
className: rootClassName$31 + "-modals"
|
|
43808
44051
|
}, arrayOfModal.map(function (obj) {
|
|
43809
44052
|
var _obj$props2, _obj$props3;
|
|
43810
44053
|
var ModalComponent = React.createElement(obj.component, obj.props);
|
|
43811
44054
|
return React.createElement(CSSTransition, {
|
|
43812
44055
|
timeout: 300,
|
|
43813
|
-
classNames: rootClassName$
|
|
44056
|
+
classNames: rootClassName$31 + "-mask",
|
|
43814
44057
|
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
43815
44058
|
unmountOnExit: true
|
|
43816
44059
|
}, React.createElement(ModalMask, {
|
|
@@ -43828,6 +44071,134 @@ function useModalManager() {
|
|
|
43828
44071
|
}))), openModal, closeModal];
|
|
43829
44072
|
}
|
|
43830
44073
|
|
|
44074
|
+
var References;
|
|
44075
|
+
(function (References) {
|
|
44076
|
+
References[References["FORCE_CLOSE"] = -1] = "FORCE_CLOSE";
|
|
44077
|
+
References[References["OPENED_ACTIVE"] = 0] = "OPENED_ACTIVE";
|
|
44078
|
+
})(References || (References = {}));
|
|
44079
|
+
var sortItems = function sortItems(a, b) {
|
|
44080
|
+
return a.ordem - b.ordem;
|
|
44081
|
+
};
|
|
44082
|
+
function usePublicMenuList(props) {
|
|
44083
|
+
var hasPermission = useCallback(function (need) {
|
|
44084
|
+
var needPermission = need.roles && need.roles.length || need.programas && need.programas.length;
|
|
44085
|
+
var hasRole = need.roles && need.roles.length && need.roles.some(function (role) {
|
|
44086
|
+
return props.roles && props.roles.includes(role);
|
|
44087
|
+
});
|
|
44088
|
+
var hasRoleByPrograma = need.programas && need.programas.length && need.programas.some(function (prog) {
|
|
44089
|
+
return props.allProfilesForProgramas[prog] && props.allProfilesForProgramas[prog].some(function (profile) {
|
|
44090
|
+
return props.roles && props.roles.includes(profile);
|
|
44091
|
+
});
|
|
44092
|
+
});
|
|
44093
|
+
return !needPermission || hasRole || hasRoleByPrograma;
|
|
44094
|
+
}, [props.allProfilesForProgramas, props.roles]);
|
|
44095
|
+
var _useState = useState(References.OPENED_ACTIVE),
|
|
44096
|
+
subListReference = _useState[0],
|
|
44097
|
+
setSubListReference = _useState[1];
|
|
44098
|
+
var isOpenedByReference = useCallback(function (reference) {
|
|
44099
|
+
return reference === subListReference;
|
|
44100
|
+
}, [subListReference]);
|
|
44101
|
+
var setOpenedByReference = useCallback(function (reference) {
|
|
44102
|
+
if (isOpenedByReference(reference)) {
|
|
44103
|
+
setSubListReference(References.FORCE_CLOSE);
|
|
44104
|
+
} else {
|
|
44105
|
+
setSubListReference(reference);
|
|
44106
|
+
}
|
|
44107
|
+
}, [isOpenedByReference]);
|
|
44108
|
+
var handleClickLink = useCallback(function (url, obj) {
|
|
44109
|
+
if (!url) return;
|
|
44110
|
+
var target = obj.novaAba ? '_blank' : '_self';
|
|
44111
|
+
var isPermitted = !obj.permissoes || hasPermission(obj.permissoes);
|
|
44112
|
+
var watchIncongruencia = obj.permissoes && obj.permissoes.incongruencia;
|
|
44113
|
+
if (watchIncongruencia && props.incongruencia && typeof props.openModalIncongruencia === 'function') {
|
|
44114
|
+
props.openModalIncongruencia();
|
|
44115
|
+
} else if (isPermitted) {
|
|
44116
|
+
if (obj.internal) {
|
|
44117
|
+
props.history.push(url.replace(window.location.origin, ''));
|
|
44118
|
+
} else {
|
|
44119
|
+
window.open(url, target);
|
|
44120
|
+
}
|
|
44121
|
+
setOpenedByReference(References.OPENED_ACTIVE);
|
|
44122
|
+
} else if (obj.permissoes) {
|
|
44123
|
+
var _obj$permissoes$progr, _obj$permissoes$roles;
|
|
44124
|
+
var isPrograma = obj.permissoes.programas && !!obj.permissoes.programas.length;
|
|
44125
|
+
var plural = isPrograma ? obj.permissoes.programas && obj.permissoes.programas.length > 1 : obj.permissoes.roles && obj.permissoes.roles.length > 1;
|
|
44126
|
+
var label = isPrograma ? (_obj$permissoes$progr = obj.permissoes.programas) === null || _obj$permissoes$progr === void 0 ? void 0 : _obj$permissoes$progr.map(function (prog) {
|
|
44127
|
+
var _props$getProgramaLab;
|
|
44128
|
+
return (_props$getProgramaLab = props.getProgramaLabel(prog)) != null ? _props$getProgramaLab : '';
|
|
44129
|
+
}).join(', ') : (_obj$permissoes$roles = obj.permissoes.roles) === null || _obj$permissoes$roles === void 0 ? void 0 : _obj$permissoes$roles.join(', ');
|
|
44130
|
+
props.openModalProfileWarning(label || '', plural, !isPrograma || obj.permissoes && obj.permissoes.forcePerfilLabel, obj.labelPrograma);
|
|
44131
|
+
setOpenedByReference(References.FORCE_CLOSE);
|
|
44132
|
+
}
|
|
44133
|
+
props.closeMenu();
|
|
44134
|
+
}, [hasPermission, props, setOpenedByReference]);
|
|
44135
|
+
var getSubList = useCallback(function (itens) {
|
|
44136
|
+
if (!itens || !itens.length) return undefined;
|
|
44137
|
+
return itens.sort(sortItems).filter(function (sub) {
|
|
44138
|
+
if (sub.permissoes && sub.permissoes.hide) {
|
|
44139
|
+
return hasPermission(sub.permissoes);
|
|
44140
|
+
}
|
|
44141
|
+
return true;
|
|
44142
|
+
}).map(function (sub) {
|
|
44143
|
+
return {
|
|
44144
|
+
id: sub.id,
|
|
44145
|
+
icon: React.createElement(ListDotIcon, null),
|
|
44146
|
+
label: sub.label,
|
|
44147
|
+
active: sub.regex ? props.isRoute(window.location.pathname, new RegExp(sub.regex)) : false,
|
|
44148
|
+
onClick: function onClick() {
|
|
44149
|
+
if (sub.url) handleClickLink(sub.url, {
|
|
44150
|
+
novaAba: sub.novaAba,
|
|
44151
|
+
permissoes: sub.permissoes,
|
|
44152
|
+
internal: Boolean(sub.idFerramenta && sub.idFerramenta === props.idFerramenta),
|
|
44153
|
+
labelPrograma: sub.labelPrograma
|
|
44154
|
+
});
|
|
44155
|
+
}
|
|
44156
|
+
};
|
|
44157
|
+
});
|
|
44158
|
+
}, [handleClickLink, hasPermission, props]);
|
|
44159
|
+
var menus = useMemo(function () {
|
|
44160
|
+
if (!props.menus) return [];
|
|
44161
|
+
return props.menus.sort(sortItems).filter(function (item) {
|
|
44162
|
+
var _item$subItems;
|
|
44163
|
+
if (item.permissoes && item.permissoes.hide || (_item$subItems = item.subItems) !== null && _item$subItems !== void 0 && _item$subItems.some(function (s) {
|
|
44164
|
+
return s.permissoes && s.permissoes.hide;
|
|
44165
|
+
})) {
|
|
44166
|
+
var _item$subItems2;
|
|
44167
|
+
return !((_item$subItems2 = item.subItems) !== null && _item$subItems2 !== void 0 && _item$subItems2.every(function (s) {
|
|
44168
|
+
return s.permissoes && s.permissoes.hide && !hasPermission(s.permissoes);
|
|
44169
|
+
}));
|
|
44170
|
+
}
|
|
44171
|
+
return true;
|
|
44172
|
+
}).map(function (it) {
|
|
44173
|
+
return {
|
|
44174
|
+
id: it.id,
|
|
44175
|
+
icon: stringToReactElement(it.icon, {
|
|
44176
|
+
style: {
|
|
44177
|
+
height: '24px',
|
|
44178
|
+
width: '24px'
|
|
44179
|
+
}
|
|
44180
|
+
}),
|
|
44181
|
+
label: it.label,
|
|
44182
|
+
active: it.regex ? props.isRoute(window.location.pathname, new RegExp(it.regex)) : false,
|
|
44183
|
+
onClick: it.url ? function () {
|
|
44184
|
+
var _it$novaAba;
|
|
44185
|
+
return handleClickLink(it.url, {
|
|
44186
|
+
novaAba: (_it$novaAba = it.novaAba) != null ? _it$novaAba : false,
|
|
44187
|
+
permissoes: it.permissoes,
|
|
44188
|
+
internal: Boolean(it.idFerramenta && it.idFerramenta === props.idFerramenta),
|
|
44189
|
+
labelPrograma: it.labelPrograma
|
|
44190
|
+
});
|
|
44191
|
+
} : function () {
|
|
44192
|
+
setOpenedByReference(it.id);
|
|
44193
|
+
},
|
|
44194
|
+
subListOpened: isOpenedByReference(it.id),
|
|
44195
|
+
subList: getSubList(it.subItems)
|
|
44196
|
+
};
|
|
44197
|
+
});
|
|
44198
|
+
}, [isOpenedByReference, props.menus, props.history.location, props.roles]);
|
|
44199
|
+
return menus;
|
|
44200
|
+
}
|
|
44201
|
+
|
|
43831
44202
|
function useScrollTo() {
|
|
43832
44203
|
var scrollTo = function scrollTo(_ref) {
|
|
43833
44204
|
var to = _ref.to,
|
|
@@ -43953,7 +44324,7 @@ function useTimeElapsed(timeLeftInSeconds, callBackZero) {
|
|
|
43953
44324
|
return timeToReturn;
|
|
43954
44325
|
}
|
|
43955
44326
|
|
|
43956
|
-
var rootClassName$
|
|
44327
|
+
var rootClassName$32 = 'comp-toast-manager';
|
|
43957
44328
|
var count$1 = 0;
|
|
43958
44329
|
function useToastManager(props) {
|
|
43959
44330
|
var _props$max;
|
|
@@ -43998,17 +44369,17 @@ function useToastManager(props) {
|
|
|
43998
44369
|
toastsRef.current = [];
|
|
43999
44370
|
}, []);
|
|
44000
44371
|
var classNames = useMemo(function () {
|
|
44001
|
-
return getMergedClassNames([rootClassName$
|
|
44372
|
+
return getMergedClassNames([rootClassName$32 + "-toasts", rootClassName$32 + "-" + verticalPosition, rootClassName$32 + "-" + horizontalPosition, reverse ? rootClassName$32 + "-reverse" : '', animateSize ? rootClassName$32 + "-animate-size" : '']);
|
|
44002
44373
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
44003
44374
|
useLayoutEffect(function () {
|
|
44004
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
44375
|
+
var wrapper = document.querySelector("." + rootClassName$32 + "-toasts");
|
|
44005
44376
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
44006
44377
|
var somaDasAlturas = 0;
|
|
44007
44378
|
if (verticalPosition === 'top' && !reverse) {
|
|
44008
44379
|
somaDasAlturas = 12;
|
|
44009
44380
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
44010
44381
|
var el = wrapper.children[i];
|
|
44011
|
-
if (!el.classList.contains(rootClassName$
|
|
44382
|
+
if (!el.classList.contains(rootClassName$32 + "-toast-exit")) {
|
|
44012
44383
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44013
44384
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
44014
44385
|
}
|
|
@@ -44016,7 +44387,7 @@ function useToastManager(props) {
|
|
|
44016
44387
|
} else if (verticalPosition === 'top') {
|
|
44017
44388
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
44018
44389
|
var _el = wrapper.children[_i];
|
|
44019
|
-
if (!_el.classList.contains(rootClassName$
|
|
44390
|
+
if (!_el.classList.contains(rootClassName$32 + "-toast-exit")) {
|
|
44020
44391
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
44021
44392
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
44022
44393
|
}
|
|
@@ -44024,7 +44395,7 @@ function useToastManager(props) {
|
|
|
44024
44395
|
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
44025
44396
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
44026
44397
|
var _el2 = wrapper.children[_i2];
|
|
44027
|
-
if (!_el2.classList.contains(rootClassName$
|
|
44398
|
+
if (!_el2.classList.contains(rootClassName$32 + "-toast-exit")) {
|
|
44028
44399
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
44029
44400
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44030
44401
|
}
|
|
@@ -44033,7 +44404,7 @@ function useToastManager(props) {
|
|
|
44033
44404
|
somaDasAlturas = 12;
|
|
44034
44405
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
44035
44406
|
var _el3 = wrapper.children[_i3];
|
|
44036
|
-
if (!_el3.classList.contains(rootClassName$
|
|
44407
|
+
if (!_el3.classList.contains(rootClassName$32 + "-toast-exit")) {
|
|
44037
44408
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
44038
44409
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
44039
44410
|
}
|
|
@@ -44048,11 +44419,11 @@ function useToastManager(props) {
|
|
|
44048
44419
|
}, arrayOfToast.map(function (toast) {
|
|
44049
44420
|
return React.createElement(CSSTransition, {
|
|
44050
44421
|
timeout: 300,
|
|
44051
|
-
classNames: rootClassName$
|
|
44422
|
+
classNames: rootClassName$32 + "-toast",
|
|
44052
44423
|
key: toast.id,
|
|
44053
44424
|
unmountOnExit: true
|
|
44054
44425
|
}, React.createElement("div", {
|
|
44055
|
-
className: rootClassName$
|
|
44426
|
+
className: rootClassName$32 + "-toastzin"
|
|
44056
44427
|
}, React.createElement(Toast, {
|
|
44057
44428
|
theme: toast.theme,
|
|
44058
44429
|
label: toast.label,
|
|
@@ -44080,242 +44451,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44080
44451
|
return [value, setValue, validation(value)];
|
|
44081
44452
|
}
|
|
44082
44453
|
|
|
44083
|
-
var
|
|
44084
|
-
(function (References) {
|
|
44085
|
-
References[References["FORCE_CLOSE"] = -1] = "FORCE_CLOSE";
|
|
44086
|
-
References[References["OPENED_ACTIVE"] = 0] = "OPENED_ACTIVE";
|
|
44087
|
-
})(References || (References = {}));
|
|
44088
|
-
var sortItems = function sortItems(a, b) {
|
|
44089
|
-
return a.ordem - b.ordem;
|
|
44090
|
-
};
|
|
44091
|
-
function usePublicMenuList(props) {
|
|
44092
|
-
var hasPermission = useCallback(function (need) {
|
|
44093
|
-
var needPermission = need.roles && need.roles.length || need.programas && need.programas.length;
|
|
44094
|
-
var hasRole = need.roles && need.roles.length && need.roles.some(function (role) {
|
|
44095
|
-
return props.roles && props.roles.includes(role);
|
|
44096
|
-
});
|
|
44097
|
-
var hasRoleByPrograma = need.programas && need.programas.length && need.programas.some(function (prog) {
|
|
44098
|
-
return props.allProfilesForProgramas[prog] && props.allProfilesForProgramas[prog].some(function (profile) {
|
|
44099
|
-
return props.roles && props.roles.includes(profile);
|
|
44100
|
-
});
|
|
44101
|
-
});
|
|
44102
|
-
return !needPermission || hasRole || hasRoleByPrograma;
|
|
44103
|
-
}, [props.allProfilesForProgramas, props.roles]);
|
|
44104
|
-
var _useState = useState(References.OPENED_ACTIVE),
|
|
44105
|
-
subListReference = _useState[0],
|
|
44106
|
-
setSubListReference = _useState[1];
|
|
44107
|
-
var isOpenedByReference = useCallback(function (reference) {
|
|
44108
|
-
return reference === subListReference;
|
|
44109
|
-
}, [subListReference]);
|
|
44110
|
-
var setOpenedByReference = useCallback(function (reference) {
|
|
44111
|
-
if (isOpenedByReference(reference)) {
|
|
44112
|
-
setSubListReference(References.FORCE_CLOSE);
|
|
44113
|
-
} else {
|
|
44114
|
-
setSubListReference(reference);
|
|
44115
|
-
}
|
|
44116
|
-
}, [isOpenedByReference]);
|
|
44117
|
-
var handleClickLink = useCallback(function (url, obj) {
|
|
44118
|
-
if (!url) return;
|
|
44119
|
-
var target = obj.novaAba ? '_blank' : '_self';
|
|
44120
|
-
var isPermitted = !obj.permissoes || hasPermission(obj.permissoes);
|
|
44121
|
-
var watchIncongruencia = obj.permissoes && obj.permissoes.incongruencia;
|
|
44122
|
-
if (watchIncongruencia && props.incongruencia && typeof props.openModalIncongruencia === 'function') {
|
|
44123
|
-
props.openModalIncongruencia();
|
|
44124
|
-
} else if (isPermitted) {
|
|
44125
|
-
if (obj.internal) {
|
|
44126
|
-
props.history.push(url.replace(window.location.origin, ''));
|
|
44127
|
-
} else {
|
|
44128
|
-
window.open(url, target);
|
|
44129
|
-
}
|
|
44130
|
-
setOpenedByReference(References.OPENED_ACTIVE);
|
|
44131
|
-
} else if (obj.permissoes) {
|
|
44132
|
-
var _obj$permissoes$progr, _obj$permissoes$roles;
|
|
44133
|
-
var isPrograma = obj.permissoes.programas && !!obj.permissoes.programas.length;
|
|
44134
|
-
var plural = isPrograma ? obj.permissoes.programas && obj.permissoes.programas.length > 1 : obj.permissoes.roles && obj.permissoes.roles.length > 1;
|
|
44135
|
-
var label = isPrograma ? (_obj$permissoes$progr = obj.permissoes.programas) === null || _obj$permissoes$progr === void 0 ? void 0 : _obj$permissoes$progr.map(function (prog) {
|
|
44136
|
-
var _props$getProgramaLab;
|
|
44137
|
-
return (_props$getProgramaLab = props.getProgramaLabel(prog)) != null ? _props$getProgramaLab : '';
|
|
44138
|
-
}).join(', ') : (_obj$permissoes$roles = obj.permissoes.roles) === null || _obj$permissoes$roles === void 0 ? void 0 : _obj$permissoes$roles.join(', ');
|
|
44139
|
-
props.openModalProfileWarning(label || '', plural, !isPrograma || obj.permissoes && obj.permissoes.forcePerfilLabel, obj.labelPrograma);
|
|
44140
|
-
setOpenedByReference(References.FORCE_CLOSE);
|
|
44141
|
-
}
|
|
44142
|
-
props.closeMenu();
|
|
44143
|
-
}, [hasPermission, props, setOpenedByReference]);
|
|
44144
|
-
var getSubList = useCallback(function (itens) {
|
|
44145
|
-
if (!itens || !itens.length) return undefined;
|
|
44146
|
-
return itens.sort(sortItems).filter(function (sub) {
|
|
44147
|
-
if (sub.permissoes && sub.permissoes.hide) {
|
|
44148
|
-
return hasPermission(sub.permissoes);
|
|
44149
|
-
}
|
|
44150
|
-
return true;
|
|
44151
|
-
}).map(function (sub) {
|
|
44152
|
-
return {
|
|
44153
|
-
id: sub.id,
|
|
44154
|
-
icon: React.createElement(ListDotIcon, null),
|
|
44155
|
-
label: sub.label,
|
|
44156
|
-
active: sub.regex ? props.isRoute(window.location.pathname, new RegExp(sub.regex)) : false,
|
|
44157
|
-
onClick: function onClick() {
|
|
44158
|
-
if (sub.url) handleClickLink(sub.url, {
|
|
44159
|
-
novaAba: sub.novaAba,
|
|
44160
|
-
permissoes: sub.permissoes,
|
|
44161
|
-
internal: Boolean(sub.idFerramenta && sub.idFerramenta === props.idFerramenta),
|
|
44162
|
-
labelPrograma: sub.labelPrograma
|
|
44163
|
-
});
|
|
44164
|
-
}
|
|
44165
|
-
};
|
|
44166
|
-
});
|
|
44167
|
-
}, [handleClickLink, hasPermission, props]);
|
|
44168
|
-
var menus = useMemo(function () {
|
|
44169
|
-
if (!props.menus) return [];
|
|
44170
|
-
return props.menus.sort(sortItems).filter(function (item) {
|
|
44171
|
-
var _item$subItems;
|
|
44172
|
-
if (item.permissoes && item.permissoes.hide || (_item$subItems = item.subItems) !== null && _item$subItems !== void 0 && _item$subItems.some(function (s) {
|
|
44173
|
-
return s.permissoes && s.permissoes.hide;
|
|
44174
|
-
})) {
|
|
44175
|
-
var _item$subItems2;
|
|
44176
|
-
return !((_item$subItems2 = item.subItems) !== null && _item$subItems2 !== void 0 && _item$subItems2.every(function (s) {
|
|
44177
|
-
return s.permissoes && s.permissoes.hide && !hasPermission(s.permissoes);
|
|
44178
|
-
}));
|
|
44179
|
-
}
|
|
44180
|
-
return true;
|
|
44181
|
-
}).map(function (it) {
|
|
44182
|
-
return {
|
|
44183
|
-
id: it.id,
|
|
44184
|
-
icon: stringToReactElement(it.icon, {
|
|
44185
|
-
style: {
|
|
44186
|
-
height: '24px',
|
|
44187
|
-
width: '24px'
|
|
44188
|
-
}
|
|
44189
|
-
}),
|
|
44190
|
-
label: it.label,
|
|
44191
|
-
active: it.regex ? props.isRoute(window.location.pathname, new RegExp(it.regex)) : false,
|
|
44192
|
-
onClick: it.url ? function () {
|
|
44193
|
-
var _it$novaAba;
|
|
44194
|
-
return handleClickLink(it.url, {
|
|
44195
|
-
novaAba: (_it$novaAba = it.novaAba) != null ? _it$novaAba : false,
|
|
44196
|
-
permissoes: it.permissoes,
|
|
44197
|
-
internal: Boolean(it.idFerramenta && it.idFerramenta === props.idFerramenta),
|
|
44198
|
-
labelPrograma: it.labelPrograma
|
|
44199
|
-
});
|
|
44200
|
-
} : function () {
|
|
44201
|
-
setOpenedByReference(it.id);
|
|
44202
|
-
},
|
|
44203
|
-
subListOpened: isOpenedByReference(it.id),
|
|
44204
|
-
subList: getSubList(it.subItems)
|
|
44205
|
-
};
|
|
44206
|
-
});
|
|
44207
|
-
}, [isOpenedByReference, props.menus, props.history.location, props.roles]);
|
|
44208
|
-
return menus;
|
|
44209
|
-
}
|
|
44210
|
-
|
|
44211
|
-
function FormattedText(text) {
|
|
44212
|
-
var _text$text, _text$tag, _text$props;
|
|
44213
|
-
var _final = typeof text === 'string' ? text : (_text$text = text.text) != null ? _text$text : '';
|
|
44214
|
-
var tag = typeof text === 'string' ? 'span' : (_text$tag = text.tag) != null ? _text$tag : 'span';
|
|
44215
|
-
var props = typeof text === 'string' ? {} : (_text$props = text.props) != null ? _text$props : {};
|
|
44216
|
-
_final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
|
|
44217
|
-
for (var _len = arguments.length, replacers = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
44218
|
-
replacers[_key - 1] = arguments[_key];
|
|
44219
|
-
}
|
|
44220
|
-
replacers.forEach(function (s, i) {
|
|
44221
|
-
_final = _final.replaceAll("#" + (i + 1) + "#", s);
|
|
44222
|
-
});
|
|
44223
|
-
return React.createElement(tag, _extends({}, props, {
|
|
44224
|
-
dangerouslySetInnerHTML: {
|
|
44225
|
-
__html: DOMPurify.sanitize(_final)
|
|
44226
|
-
}
|
|
44227
|
-
}));
|
|
44228
|
-
}
|
|
44229
|
-
|
|
44230
|
-
var rootClassName$2_ = 'icon-component';
|
|
44231
|
-
var DecreaseIcon = function DecreaseIcon() {
|
|
44232
|
-
return React.createElement("svg", {
|
|
44233
|
-
className: rootClassName$2_,
|
|
44234
|
-
viewBox: '0 0 24 24',
|
|
44235
|
-
xmlns: 'http://www.w3.org/2000/svg'
|
|
44236
|
-
}, React.createElement("path", {
|
|
44237
|
-
fillRule: 'evenodd',
|
|
44238
|
-
clipRule: 'evenodd',
|
|
44239
|
-
d: 'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM17.5 12C17.5 11.7239 17.2761 11.5 17 11.5H7L6.91012 11.5081C6.67688 11.5504 6.5 11.7545 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5H17L17.0899 12.4919C17.3231 12.4496 17.5 12.2455 17.5 12Z',
|
|
44240
|
-
fill: 'currentColor'
|
|
44241
|
-
}));
|
|
44242
|
-
};
|
|
44243
|
-
|
|
44244
|
-
var _excluded$i = ["type"];
|
|
44245
|
-
var rootClassName$2$ = 'component-table-left-checkbox-with-label';
|
|
44246
|
-
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
44247
|
-
var _props$spanProps2, _props$spanProps3;
|
|
44248
|
-
var type = _ref.type,
|
|
44249
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
44250
|
-
var style = useMemo(function () {
|
|
44251
|
-
var _props$spanProps$styl, _props$spanProps;
|
|
44252
|
-
var style = _extends({
|
|
44253
|
-
justifyContent: props.justifyContent
|
|
44254
|
-
}, (_props$spanProps$styl = (_props$spanProps = props.spanProps) === null || _props$spanProps === void 0 ? void 0 : _props$spanProps.style) != null ? _props$spanProps$styl : {});
|
|
44255
|
-
if (props.removeUserSelect) {
|
|
44256
|
-
style.userSelect = 'none';
|
|
44257
|
-
}
|
|
44258
|
-
if (props.anchorLabelToCheckbox && !props.disabled) {
|
|
44259
|
-
style.cursor = 'pointer';
|
|
44260
|
-
}
|
|
44261
|
-
return style;
|
|
44262
|
-
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
44263
|
-
return React.createElement("div", {
|
|
44264
|
-
className: getMergedClassNames([rootClassName$2$, props.w100 ? 'w-100' : ''])
|
|
44265
|
-
}, React.createElement("span", {
|
|
44266
|
-
className: rootClassName$2$ + "-checkbox-wrapper",
|
|
44267
|
-
"tooltip-position": props['tooltip-position'],
|
|
44268
|
-
"tooltip-text": props['tooltip-text']
|
|
44269
|
-
}, type === 'addRemove' ? React.createElement(IconButton$1, {
|
|
44270
|
-
className: getMergedClassNames([rootClassName$2$ + "-add-remove-button", props.value ? rootClassName$2$ + "-danger" : '']),
|
|
44271
|
-
icon: props.value ? React.createElement(DecreaseIcon, null) : React.createElement(AddIcon, null),
|
|
44272
|
-
disabled: props.disabled,
|
|
44273
|
-
onClick: function onClick(evt) {
|
|
44274
|
-
var _props$onChange;
|
|
44275
|
-
evt.stopPropagation();
|
|
44276
|
-
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, !props.value, evt);
|
|
44277
|
-
}
|
|
44278
|
-
}) : React.createElement(Checkbox$1, {
|
|
44279
|
-
value: props.value,
|
|
44280
|
-
disabled: props.disabled,
|
|
44281
|
-
onChange: props.onChange,
|
|
44282
|
-
theme: props.theme
|
|
44283
|
-
})), React.createElement("span", Object.assign({}, (_props$spanProps2 = props.spanProps) != null ? _props$spanProps2 : {}, {
|
|
44284
|
-
className: getMergedClassNames([rootClassName$2$ + "-label-wrapper", ((_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.className) || '']),
|
|
44285
|
-
style: style,
|
|
44286
|
-
onClick: function onClick(evt) {
|
|
44287
|
-
var _props$spanProps4, _props$spanProps4$onC;
|
|
44288
|
-
if (props.anchorLabelToCheckbox) {
|
|
44289
|
-
var _props$onChange2;
|
|
44290
|
-
(_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 ? void 0 : _props$onChange2.call(props, !props.value, evt);
|
|
44291
|
-
}
|
|
44292
|
-
(_props$spanProps4 = props.spanProps) === null || _props$spanProps4 === void 0 ? void 0 : (_props$spanProps4$onC = _props$spanProps4.onClick) === null || _props$spanProps4$onC === void 0 ? void 0 : _props$spanProps4$onC.call(_props$spanProps4, evt);
|
|
44293
|
-
}
|
|
44294
|
-
}), props.label));
|
|
44295
|
-
};
|
|
44296
|
-
|
|
44297
|
-
var _excluded$j = ["className"];
|
|
44298
|
-
var rootClassName$30 = 'icon-component';
|
|
44299
|
-
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
44300
|
-
var _ref$className = _ref.className,
|
|
44301
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44302
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
44303
|
-
var classNames = useMergedClassNames([rootClassName$30, className]);
|
|
44304
|
-
return React.createElement("svg", Object.assign({
|
|
44305
|
-
viewBox: '0 0 12 12',
|
|
44306
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
44307
|
-
fill: 'none'
|
|
44308
|
-
}, props, {
|
|
44309
|
-
className: classNames
|
|
44310
|
-
}), React.createElement("path", {
|
|
44311
|
-
fillRule: 'evenodd',
|
|
44312
|
-
clipRule: 'evenodd',
|
|
44313
|
-
d: 'M12 6C12 2.68564 9.31436 0 6 0C2.68564 0 0 2.68564 0 6C0 7.01942 0.254625 8.00224 0.733857 8.87715C1.10309 9.55088 1.5972 10.1477 2.18733 10.6329C3.25333 11.5114 4.58947 12 6 12C9.31436 12 12 9.31436 12 6ZM0.75 6C0.75 3.09986 3.09986 0.75 6 0.75C8.90014 0.75 11.25 3.09986 11.25 6C11.25 8.90014 8.90014 11.25 6 11.25C4.76512 11.25 3.59719 10.8229 2.66398 10.0539C2.14748 9.62916 1.7149 9.10668 1.3916 8.51678C0.972551 7.75174 0.75 6.89272 0.75 6ZM5.625 5.12622V8.90472C5.625 9.11183 5.79289 9.27972 6 9.27972C6.20711 9.27972 6.375 9.11183 6.375 8.90472V5.12622C6.375 4.91911 6.20711 4.75122 6 4.75122C5.79289 4.75122 5.625 4.91911 5.625 5.12622ZM6 3.09521C6.25875 3.09521 6.46875 3.30446 6.46875 3.56396C6.46875 3.82271 6.25875 4.03271 6 4.03271C5.74125 4.03271 5.53125 3.82271 5.53125 3.56396C5.53125 3.30446 5.74125 3.09521 6 3.09521Z',
|
|
44314
|
-
fill: 'currentColor'
|
|
44315
|
-
}));
|
|
44316
|
-
};
|
|
44317
|
-
|
|
44318
|
-
var _excluded$k = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44454
|
+
var _excluded$l = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44319
44455
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44320
44456
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44321
44457
|
function AlertModal(_ref) {
|
|
@@ -44325,7 +44461,7 @@ function AlertModal(_ref) {
|
|
|
44325
44461
|
onConfirm = _ref.onConfirm,
|
|
44326
44462
|
_ref$showIcons = _ref.showIcons,
|
|
44327
44463
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44328
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44464
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
44329
44465
|
var _useState = useState(false),
|
|
44330
44466
|
loading = _useState[0],
|
|
44331
44467
|
setLoading = _useState[1];
|
|
@@ -44458,5 +44594,5 @@ var getStatusClassName = function getStatusClassName(status) {
|
|
|
44458
44594
|
};
|
|
44459
44595
|
var STATUS_PAUTA = [STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_LIBERADA, STATUS_PAUTA_ENCERRADA];
|
|
44460
44596
|
|
|
44461
|
-
export { ATMIcon, Accordion, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddIcon as AddCircleIcon, AddIcon, AgencyIcon, AlertIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiasIcon, BackOfficeIcon, Banner, BarChartIcon, BeeIcon, BigBlockButton, BigPlayIcon, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Calendar$1 as Calendar, CalendarCheckIcon, CalendarEvent$1 as CalendarEvent, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, Chip$1 as Chip, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, ControlLabel$1 as ControlLabel, ControlLabelPosition, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, DropdownSelector$1 as DropdownSelector, EditIcon, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileTypes, FileUpload, FilesIcon, FilterIcon, FloatingPanel$1 as FloatingPanel, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FormattedText, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSeparator, HeaderType, HomeIcon, HourEvents$1 as HourEvents, IconButton$1 as IconButton, IconButtonType, ImageTypes, Information, InformationIcon, InlineMonthPicker$1 as InlineMonthPicker, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftControlWithLabel as LeftCheckboxWithLabel, LeftControlWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, MiniInformationIcon, Modal, ModalManager, ModalSizes, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotebookIcon, Notification, NotificationPosition, NotificationType, OptionsIcon, PageSubTitle, PageTitle, Pagination, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PhonePlusIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, ScreenSize, ScrollArrowOverflow$1 as ScrollArrowOverflow, Search$1 as Search, SearchIcon, Select$1 as Select, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, UnderlineIcon, UndoIcon, UserIcon, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, stringToReactElement, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useHTMLShare, useModalManager, useOutsideClick, usePagination, useProgressiveCount, usePublicMenuList, useScreenSize, useScrollTo, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
|
|
44597
|
+
export { ATMIcon, Accordion, AconteceuIcon, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AddAssemblyIcon, AddIcon as AddCircleIcon, AddIcon, AgencyIcon, AlertIcon, AlertModal, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnimatedLink$1 as AnimatedLink, ArrowLeftIcon, ArrowRightIcon, AssembleiasIcon, BackOfficeIcon, Banner, BarChartIcon, BeeIcon, BigBlockButton, BigPlayIcon, BoldIcon, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Calendar$1 as Calendar, CalendarCheckIcon, CalendarEvent$1 as CalendarEvent, CalendarIcon, Card, CardTypes, CardsIcon, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, CataventoVerde, CheckCircleIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxThemes, ChequeIcon, ChevronArrowDownIcon, ChevronArrowLeftIcon, ChevronArrowRightIcon, Chip$1 as Chip, CircleArrowLeft, CircleArrowRight, ClockIcon, CloseIcon, CloudDownloadIcon, CloudUploadIcon, Col$1 as Col, Collapse$1 as Collapse, ComitesIcon, ComunidadeIcon, ConfirmModal, Container$1 as Container, ControlLabel$1 as ControlLabel, ControlLabelPosition, CopyIcon, CreditIcon, CrescerIcon, CrescerLogo, DatePicker$1 as DatePicker, DestructiveModal, DevicePlusIcon, Doughnut$1 as Doughnut, DoughnutSquare, DownloadIcon, DraggableIcon, DropdownItem$1 as DropdownItem, DropdownMenu, DropdownSelector$1 as DropdownSelector, EditIcon, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, EvidenciasIcon, ExclamationIcon, ExitIconArrowLeft, ExitIconArrowRight, EyeIcon, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FilePlusIcon, FileTypes, FileUpload, FilesIcon, FilterIcon, FloatingPanel$1 as FloatingPanel, FontColorIcon, FontIcon, FooterSicredi$1 as FooterSicredi, FormacaoIcon, FormattedText, FullHeightContainer$1 as FullHeightContainer, FundacaoLogo, FundacaoLogoTheme, FundoSocialIcon, GlobeIcon, GraduationIcon, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, HamburgerIcon, HandUpIcon, Header$1 as Header, HeaderSeparator, HeaderType, HomeIcon, HourEvents$1 as HourEvents, IconButton$1 as IconButton, IconButtonType, ImageTypes, Information, InformationIcon, InlineMonthPicker$1 as InlineMonthPicker, Input$1 as Input, InputArea$1 as InputArea, InvestimentIcon, ItalicIcon, ItemDropdownDownload$1 as ItemDropdownDownload, LeftControlWithLabel as LeftCheckboxWithLabel, LeftControlWithLabel, LinkIcon, LinksUteisIcon, ListDotIcon, ListIcon, LoaderIcon, LocalIcon, LockIcon, Menu$1 as Menu, MenuItem, MessageIcon, MiniInformationIcon, Modal, ModalManager, ModalSizes, MoneyByMonth, MoneyFileIcon, MoneyMonthLineChart, NavigatorWithMouse, NotebookIcon, Notification, NotificationPosition, NotificationType, OptionsIcon, PageSubTitle, PageTitle, Pagination, Paginator, ParticipantesIcon, PaymentIcon, PercentLoaderIcon, PhonePlusIcon, PieChartIcon, PlayIcon, PreviaVideo$1 as PreviaVideo, PrintIcon, QRCode$1 as QRCode, QRCodeIcon, QRCodeWhatsapp, RadioButton$1 as RadioButton, RadioButtonType, RedoIcon, RefreshIcon, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, ScreenSize, ScrollArrowOverflow$1 as ScrollArrowOverflow, Search$1 as Search, SearchIcon, Select$1 as Select, SettingsIcon, SicrediLogo, SicrediLogoTheme, SquaresIcon, SustentabilidadeIcon, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ThreeDotsLoader, ThumbsUpIcon, TimesCircleIcon, Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipElement, TooltipManager, TooltipPosition, TopLoader, TransferenciaIcon, TrashIcon, TrianguloInferior, TwoFileIcon, TypedTable, Typography, UnderlineIcon, UndoIcon, UserIcon, VideoModal, VideoPlayer, WebsiteIcon, getStatusClassName, stringToReactElement, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useHTMLShare, useModalManager, useOutsideClick, usePagination, useProgressiveCount, usePublicMenuList, useScreenSize, useScrollTo, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
|
|
44462
44598
|
//# sourceMappingURL=index.modern.js.map
|