plataforma-fundacao-componentes 2.22.19 → 2.22.22

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.
@@ -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,51 @@ function TableWithOverflow(props) {
9992
9993
  return prev + n;
9993
9994
  }, 8) + "px" : '8px';
9994
9995
  }, [props.columns, atLeastOneStaticColumn]);
9996
+ var columnsHeader = useMemo(function () {
9997
+ var _props$columns;
9998
+
9999
+ return (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
10000
+ var _column$props;
10001
+
10002
+ var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10003
+ return React.createElement("th", Object.assign({
10004
+ key: "header-" + column.key + "-" + atLeastOneStaticColumn,
10005
+ "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
10006
+ }, column.props, {
10007
+ style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
10008
+ className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
10009
+ }), column.value);
10010
+ });
10011
+ }, [props.columns, atLeastOneStaticColumn]);
10012
+ var lines = useMemo(function () {
10013
+ var _props$lines;
10014
+
10015
+ return (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
10016
+ var _props$columns2;
10017
+
10018
+ var k = line.key ? line.key : lineIndex;
10019
+ return React.createElement("tr", {
10020
+ key: k,
10021
+ "aria-disabled": line.disabled || false
10022
+ }, React.createElement("td", {
10023
+ "data-draggable": false,
10024
+ className: 'absolute left-0'
10025
+ }), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
10026
+ var _column$props2, _column$props3;
10027
+
10028
+ var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10029
+ return React.createElement("td", Object.assign({
10030
+ "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
10031
+ key: k + "-" + column.key + "-" + atLeastOneStaticColumn
10032
+ }, column.props, {
10033
+ style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
10034
+ className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
10035
+ }), line[column.key]);
10036
+ }), React.createElement("td", {
10037
+ className: 'absolute right-0'
10038
+ }));
10039
+ });
10040
+ }, [props.columns, props.lines, atLeastOneStaticColumn]);
9995
10041
  return React.createElement("div", {
9996
10042
  className: rootClassName$1B
9997
10043
  }, props.upperHeader ? React.createElement("div", {
@@ -10019,44 +10065,9 @@ function TableWithOverflow(props) {
10019
10065
  ref: outerTableRef
10020
10066
  }, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
10021
10067
  className: 'absolute left-0'
10022
- }), (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
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", {
10068
+ }), columnsHeader, React.createElement("th", {
10034
10069
  className: 'absolute right-0'
10035
- })), 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
- var _props$columns2;
10037
-
10038
- var k = line.key ? line.key : lineIndex;
10039
- return React.createElement("tr", {
10040
- key: k,
10041
- "aria-disabled": line.disabled || false
10042
- }, React.createElement("td", {
10043
- "data-draggable": false,
10044
- className: 'absolute left-0'
10045
- }), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
10046
- var _column$props2, _column$props3;
10047
-
10048
- var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10049
- return React.createElement("td", Object.assign({
10050
- "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
10051
- key: k + "-" + column.key
10052
- }, column.props, {
10053
- style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
10054
- className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
10055
- }), line[column.key]);
10056
- }), React.createElement("td", {
10057
- className: 'absolute right-0'
10058
- }));
10059
- })))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
10070
+ })), React.createElement("tr", null)), React.createElement("tbody", null, lines))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
10060
10071
  className: rootClassName$1B + "-no-result"
10061
10072
  }, props.noResultMessage) : undefined));
10062
10073
  }
@@ -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