plataforma-fundacao-componentes 2.22.19 → 2.22.20
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 +30 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +30 -19
- 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,7 +9944,7 @@ var TableUpperHeader$1 = memo(TableUpperHeader);
|
|
|
9941
9944
|
var rootClassName$1B = 'component-table-with-overflow';
|
|
9942
9945
|
|
|
9943
9946
|
function TableWithOverflow(props) {
|
|
9944
|
-
var _props$
|
|
9947
|
+
var _props$lines;
|
|
9945
9948
|
|
|
9946
9949
|
var mediaQuery = useScreenSize();
|
|
9947
9950
|
var wrapperClassName = useMemo(function () {
|
|
@@ -9992,6 +9995,25 @@ function TableWithOverflow(props) {
|
|
|
9992
9995
|
return prev + n;
|
|
9993
9996
|
}, 8) + "px" : '8px';
|
|
9994
9997
|
}, [props.columns, atLeastOneStaticColumn]);
|
|
9998
|
+
var renderKey = useMemo(function () {
|
|
9999
|
+
return getUniqueKey();
|
|
10000
|
+
}, [props.lines]);
|
|
10001
|
+
var columnsHeader = useMemo(function () {
|
|
10002
|
+
var _props$columns;
|
|
10003
|
+
|
|
10004
|
+
return (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
|
|
10005
|
+
var _column$props;
|
|
10006
|
+
|
|
10007
|
+
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10008
|
+
return React.createElement("th", Object.assign({
|
|
10009
|
+
key: "header-" + column.key,
|
|
10010
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10011
|
+
}, column.props, {
|
|
10012
|
+
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10013
|
+
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10014
|
+
}), column.value);
|
|
10015
|
+
});
|
|
10016
|
+
}, [props.columns, renderKey]);
|
|
9995
10017
|
return React.createElement("div", {
|
|
9996
10018
|
className: rootClassName$1B
|
|
9997
10019
|
}, props.upperHeader ? React.createElement("div", {
|
|
@@ -10019,18 +10041,7 @@ function TableWithOverflow(props) {
|
|
|
10019
10041
|
ref: outerTableRef
|
|
10020
10042
|
}, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
10021
10043
|
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", {
|
|
10044
|
+
}), columnsHeader, React.createElement("th", {
|
|
10034
10045
|
className: 'absolute right-0'
|
|
10035
10046
|
})), React.createElement("tr", null)), React.createElement("tbody", null, (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
10036
10047
|
var _props$columns2;
|
|
@@ -10654,7 +10665,7 @@ function TextEditorUrlCreator(props) {
|
|
|
10654
10665
|
onEnter: handleSubmit
|
|
10655
10666
|
})), /*#__PURE__*/React.createElement(Row$1, {
|
|
10656
10667
|
className: rootClassName$1U + "-new-tab-row"
|
|
10657
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
10668
|
+
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
10658
10669
|
value: newTab,
|
|
10659
10670
|
onChange: function onChange(value) {
|
|
10660
10671
|
return setNewTab(value);
|
|
@@ -11926,5 +11937,5 @@ var ModalSizes;
|
|
|
11926
11937
|
ModalSizes["ExtraLarge"] = "extra-large";
|
|
11927
11938
|
})(ModalSizes || (ModalSizes = {}));
|
|
11928
11939
|
|
|
11929
|
-
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 };
|
|
11940
|
+
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 };
|
|
11930
11941
|
//# sourceMappingURL=index.modern.js.map
|