plataforma-fundacao-componentes 2.22.18 → 2.22.21
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/checkbox/Checkbox.d.ts +2 -1
- package/dist/index.js +59 -44
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +59 -44
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1338,6 +1338,7 @@ var CheckboxThemes;
|
|
|
1338
1338
|
})(CheckboxThemes || (CheckboxThemes = {}));
|
|
1339
1339
|
|
|
1340
1340
|
var rootClassName$s = 'component-checkbox';
|
|
1341
|
+
|
|
1341
1342
|
function Checkbox(props) {
|
|
1342
1343
|
var fProps = useMemo(function () {
|
|
1343
1344
|
var handleClick = function handleClick(evt) {
|
|
@@ -1366,12 +1367,14 @@ function Checkbox(props) {
|
|
|
1366
1367
|
|
|
1367
1368
|
return React.createElement("button", Object.assign({}, fProps));
|
|
1368
1369
|
}
|
|
1370
|
+
|
|
1369
1371
|
Checkbox.defaultProps = {
|
|
1370
1372
|
disabled: false,
|
|
1371
1373
|
value: false,
|
|
1372
1374
|
theme: 'primary',
|
|
1373
1375
|
onChange: function onChange() {}
|
|
1374
1376
|
};
|
|
1377
|
+
var Checkbox$1 = memo(Checkbox);
|
|
1375
1378
|
|
|
1376
1379
|
var rootClassName$t = 'component-bloco-de-notas';
|
|
1377
1380
|
function BlocoDeNotas(props) {
|
|
@@ -1407,7 +1410,7 @@ function BlocoDeNotas(props) {
|
|
|
1407
1410
|
className: rootClassName$t + "-left-content"
|
|
1408
1411
|
}, React.createElement("div", {
|
|
1409
1412
|
className: rootClassName$t + "-checkbox"
|
|
1410
|
-
}, React.createElement(Checkbox, {
|
|
1413
|
+
}, React.createElement(Checkbox$1, {
|
|
1411
1414
|
disabled: props.loading || !props.notas || !props.notas.length,
|
|
1412
1415
|
theme: CheckboxThemes.Blue,
|
|
1413
1416
|
value: Boolean(props.notas && props.notas.length && props.notas.length === props.selected.length),
|
|
@@ -1475,7 +1478,7 @@ function BlocoDeNotas(props) {
|
|
|
1475
1478
|
className: rootClassName$t + "-nota-left-content"
|
|
1476
1479
|
}, React.createElement("div", {
|
|
1477
1480
|
className: rootClassName$t + "-checkbox"
|
|
1478
|
-
}, React.createElement(Checkbox, {
|
|
1481
|
+
}, React.createElement(Checkbox$1, {
|
|
1479
1482
|
theme: CheckboxThemes.Blue,
|
|
1480
1483
|
value: nota.id ? props.selected.indexOf(nota.id) > -1 : false,
|
|
1481
1484
|
onChange: function onChange(evt) {
|
|
@@ -9264,7 +9267,7 @@ function Select(props) {
|
|
|
9264
9267
|
}
|
|
9265
9268
|
},
|
|
9266
9269
|
onClick: handleChange
|
|
9267
|
-
}, React.createElement(Checkbox, {
|
|
9270
|
+
}, React.createElement(Checkbox$1, {
|
|
9268
9271
|
value: checked,
|
|
9269
9272
|
disabled: props.readOnly,
|
|
9270
9273
|
onChange: function onChange() {
|
|
@@ -9587,7 +9590,7 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
9587
9590
|
className: rootClassName$1w + "-checkbox-wrapper",
|
|
9588
9591
|
"tooltip-position": props['tooltip-position'],
|
|
9589
9592
|
"tooltip-text": props['tooltip-text']
|
|
9590
|
-
}, React.createElement(Checkbox, {
|
|
9593
|
+
}, React.createElement(Checkbox$1, {
|
|
9591
9594
|
value: props.value,
|
|
9592
9595
|
disabled: props.disabled,
|
|
9593
9596
|
onChange: props.onChange,
|
|
@@ -9941,8 +9944,6 @@ var TableUpperHeader$1 = memo(TableUpperHeader);
|
|
|
9941
9944
|
var rootClassName$1B = 'component-table-with-overflow';
|
|
9942
9945
|
|
|
9943
9946
|
function TableWithOverflow(props) {
|
|
9944
|
-
var _props$columns, _props$lines;
|
|
9945
|
-
|
|
9946
9947
|
var mediaQuery = useScreenSize();
|
|
9947
9948
|
var wrapperClassName = useMemo(function () {
|
|
9948
9949
|
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
|
|
@@ -9992,6 +9993,54 @@ function TableWithOverflow(props) {
|
|
|
9992
9993
|
return prev + n;
|
|
9993
9994
|
}, 8) + "px" : '8px';
|
|
9994
9995
|
}, [props.columns, atLeastOneStaticColumn]);
|
|
9996
|
+
var renderLinesKey = useMemo(function () {
|
|
9997
|
+
return getUniqueKey();
|
|
9998
|
+
}, [props.lines]);
|
|
9999
|
+
var columnsHeader = useMemo(function () {
|
|
10000
|
+
var _props$columns;
|
|
10001
|
+
|
|
10002
|
+
return (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
|
|
10003
|
+
var _column$props;
|
|
10004
|
+
|
|
10005
|
+
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10006
|
+
return React.createElement("th", Object.assign({
|
|
10007
|
+
key: "header-" + column.key,
|
|
10008
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10009
|
+
}, column.props, {
|
|
10010
|
+
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10011
|
+
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10012
|
+
}), column.value);
|
|
10013
|
+
});
|
|
10014
|
+
}, [props.columns, renderLinesKey]);
|
|
10015
|
+
var lines = useMemo(function () {
|
|
10016
|
+
var _props$lines;
|
|
10017
|
+
|
|
10018
|
+
return (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
10019
|
+
var _props$columns2;
|
|
10020
|
+
|
|
10021
|
+
var k = line.key ? line.key : lineIndex;
|
|
10022
|
+
return React.createElement("tr", {
|
|
10023
|
+
key: k,
|
|
10024
|
+
"aria-disabled": line.disabled || false
|
|
10025
|
+
}, React.createElement("td", {
|
|
10026
|
+
"data-draggable": false,
|
|
10027
|
+
className: 'absolute left-0'
|
|
10028
|
+
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10029
|
+
var _column$props2, _column$props3;
|
|
10030
|
+
|
|
10031
|
+
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10032
|
+
return React.createElement("td", Object.assign({
|
|
10033
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10034
|
+
key: k + "-" + column.key + (column.absolute ? '' : renderLinesKey)
|
|
10035
|
+
}, column.props, {
|
|
10036
|
+
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10037
|
+
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10038
|
+
}), line[column.key]);
|
|
10039
|
+
}), React.createElement("td", {
|
|
10040
|
+
className: 'absolute right-0'
|
|
10041
|
+
}));
|
|
10042
|
+
});
|
|
10043
|
+
}, [props.lines, renderLinesKey]);
|
|
9995
10044
|
return React.createElement("div", {
|
|
9996
10045
|
className: rootClassName$1B
|
|
9997
10046
|
}, props.upperHeader ? React.createElement("div", {
|
|
@@ -10019,43 +10068,9 @@ function TableWithOverflow(props) {
|
|
|
10019
10068
|
ref: outerTableRef
|
|
10020
10069
|
}, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
10021
10070
|
className: 'absolute left-0'
|
|
10022
|
-
}),
|
|
10023
|
-
var _column$props;
|
|
10024
|
-
|
|
10025
|
-
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10026
|
-
return React.createElement("th", Object.assign({
|
|
10027
|
-
key: "header-" + column.key,
|
|
10028
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10029
|
-
}, column.props, {
|
|
10030
|
-
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10031
|
-
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10032
|
-
}), column.value);
|
|
10033
|
-
}), React.createElement("th", {
|
|
10071
|
+
}), columnsHeader, React.createElement("th", {
|
|
10034
10072
|
className: 'absolute right-0'
|
|
10035
|
-
})), React.createElement("tr", null)), React.createElement("tbody", null,
|
|
10036
|
-
var _props$columns2;
|
|
10037
|
-
|
|
10038
|
-
return React.createElement("tr", {
|
|
10039
|
-
key: lineIndex,
|
|
10040
|
-
"aria-disabled": line.disabled || false
|
|
10041
|
-
}, React.createElement("td", {
|
|
10042
|
-
"data-draggable": false,
|
|
10043
|
-
className: 'absolute left-0'
|
|
10044
|
-
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10045
|
-
var _column$props2, _column$props3;
|
|
10046
|
-
|
|
10047
|
-
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10048
|
-
return React.createElement("td", Object.assign({
|
|
10049
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10050
|
-
key: lineIndex + "-" + column.key
|
|
10051
|
-
}, column.props, {
|
|
10052
|
-
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10053
|
-
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10054
|
-
}), line[column.key]);
|
|
10055
|
-
}), React.createElement("td", {
|
|
10056
|
-
className: 'absolute right-0'
|
|
10057
|
-
}));
|
|
10058
|
-
})))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10073
|
+
})), React.createElement("tr", null)), React.createElement("tbody", null, lines))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10059
10074
|
className: rootClassName$1B + "-no-result"
|
|
10060
10075
|
}, props.noResultMessage) : undefined));
|
|
10061
10076
|
}
|
|
@@ -10653,7 +10668,7 @@ function TextEditorUrlCreator(props) {
|
|
|
10653
10668
|
onEnter: handleSubmit
|
|
10654
10669
|
})), /*#__PURE__*/React.createElement(Row$1, {
|
|
10655
10670
|
className: rootClassName$1U + "-new-tab-row"
|
|
10656
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
10671
|
+
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
10657
10672
|
value: newTab,
|
|
10658
10673
|
onChange: function onChange(value) {
|
|
10659
10674
|
return setNewTab(value);
|
|
@@ -11925,5 +11940,5 @@ var ModalSizes;
|
|
|
11925
11940
|
ModalSizes["ExtraLarge"] = "extra-large";
|
|
11926
11941
|
})(ModalSizes || (ModalSizes = {}));
|
|
11927
11942
|
|
|
11928
|
-
export { Accordion, Aconteceu, ActionsColumn, AdvancedSemiHeader, AlertModal, AnimatedLink$1 as AnimatedLink, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BigBlockButton, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Card, CardTypes, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, Checkbox, CheckboxThemes, Col$1 as Col, Collapse$1 as Collapse, ConfirmModal, Container$1 as Container, DatePicker$1 as DatePicker, DestructiveModal, Doughnut$1 as Doughnut, DoughnutSquare, DropdownItem$1 as DropdownItem, DropdownMenu, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FileUpload, FooterSicredi$1 as FooterSicredi, FullHeightContainer$1 as FullHeightContainer, FundacaoLogoTheme, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, Input$1 as Input, InputArea$1 as InputArea, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, Menu$1 as Menu, MenuItem, Modal, ModalManager, ModalSizes, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, NotificationPosition, NotificationType, PageSubTitle, PageTitle, Paginator, PreviaVideo$1 as PreviaVideo, ProgressBar, RadioButton$1 as RadioButton, RadioButtonType, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, SearchBlocoDeNotas, Select$1 as Select, SicrediLogoTheme, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TypedTable, VideoItem, VideoModal, VideoPlayer, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useTimeElapsed, useToastManager, useValidatedState };
|
|
11943
|
+
export { Accordion, Aconteceu, ActionsColumn, AdvancedSemiHeader, AlertModal, AnimatedLink$1 as AnimatedLink, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BigBlockButton, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Card, CardTypes, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, Checkbox$1 as Checkbox, CheckboxThemes, Col$1 as Col, Collapse$1 as Collapse, ConfirmModal, Container$1 as Container, DatePicker$1 as DatePicker, DestructiveModal, Doughnut$1 as Doughnut, DoughnutSquare, DropdownItem$1 as DropdownItem, DropdownMenu, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FileUpload, FooterSicredi$1 as FooterSicredi, FullHeightContainer$1 as FullHeightContainer, FundacaoLogoTheme, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, Input$1 as Input, InputArea$1 as InputArea, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, Menu$1 as Menu, MenuItem, Modal, ModalManager, ModalSizes, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, NotificationPosition, NotificationType, PageSubTitle, PageTitle, Paginator, PreviaVideo$1 as PreviaVideo, ProgressBar, RadioButton$1 as RadioButton, RadioButtonType, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, SearchBlocoDeNotas, Select$1 as Select, SicrediLogoTheme, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TypedTable, VideoItem, VideoModal, VideoPlayer, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useTimeElapsed, useToastManager, useValidatedState };
|
|
11929
11944
|
//# sourceMappingURL=index.modern.js.map
|