pge-front-common 14.1.33 → 14.1.34

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/lib/index.esm.js CHANGED
@@ -8816,7 +8816,7 @@ styleInject(css_248z$f);
8816
8816
 
8817
8817
  var TableComponent = function (_a) {
8818
8818
  var _b;
8819
- var columns = _a.columns, data = _a.data, onSort = _a.onSort, renderCell = _a.renderCell, onActionClick = _a.onActionClick, _c = _a.noRecordsMessage, noRecordsMessage = _c === void 0 ? "Nenhum registro encontrado" : _c, hasIcon = _a.hasIcon, renderActionIconCell = _a.renderActionIconCell, columnIcon = _a.columnIcon, iconColumnName = _a.iconColumnName, setBorderTable = _a.setBorderTable, _d = _a.hasBottomRounded, hasBottomRounded = _d === void 0 ? true : _d, renderHeaderCell = _a.renderHeaderCell, _e = _a.textAlignment, textAlignment = _e === void 0 ? "center" : _e, getRowClassName = _a.getRowClassName;
8819
+ var columns = _a.columns, data = _a.data, onSort = _a.onSort, renderCell = _a.renderCell; _a.onActionClick; var _c = _a.noRecordsMessage, noRecordsMessage = _c === void 0 ? "Nenhum registro encontrado" : _c, hasIcon = _a.hasIcon, renderActionIconCell = _a.renderActionIconCell, columnIcon = _a.columnIcon, iconColumnName = _a.iconColumnName, setBorderTable = _a.setBorderTable, _d = _a.hasBottomRounded, hasBottomRounded = _d === void 0 ? true : _d, renderHeaderCell = _a.renderHeaderCell, _e = _a.textAlignment, textAlignment = _e === void 0 ? "center" : _e, getRowClassName = _a.getRowClassName;
8820
8820
  var handleSort = function (uid) {
8821
8821
  if (onSort)
8822
8822
  onSort(uid);
@@ -8828,10 +8828,10 @@ var TableComponent = function (_a) {
8828
8828
  return renderCell(item, column.uid);
8829
8829
  };
8830
8830
  var handleRenderHeaderCell = function (columnName, isSortable, columnIcon) {
8831
- return (renderHeaderCell === null || renderHeaderCell === void 0 ? void 0 : renderHeaderCell(columnName, isSortable, columnIcon)) || (React__default.createElement(React__default.Fragment, null,
8831
+ return ((renderHeaderCell === null || renderHeaderCell === void 0 ? void 0 : renderHeaderCell(columnName, isSortable, columnIcon)) || (React__default.createElement(React__default.Fragment, null,
8832
8832
  columnName,
8833
8833
  " ",
8834
- columnIcon && columnIcon));
8834
+ columnIcon && columnIcon)));
8835
8835
  };
8836
8836
  return (React__default.createElement("div", { className: clsx(styles$f.tableResponsive, (_b = {},
8837
8837
  _b[styles$f.tableResponse__setBorderRadius] = setBorderTable,
@@ -8850,7 +8850,7 @@ var TableComponent = function (_a) {
8850
8850
  React__default.createElement("tbody", { className: styles$f.tbody }, data.length > 0 ? (data.map(function (item, index) { return (React__default.createElement("tr", { key: item.id || index, className: clsx(index % 2 === 0 ? styles$f.rowWhite : styles$f.rowGray, getRowClassName === null || getRowClassName === void 0 ? void 0 : getRowClassName(item, index)) },
8851
8851
  columns.map(function (column) { return (React__default.createElement("td", { key: item.id + column.uid, className: "".concat(styles$f.td, " ").concat(styles$f[textAlignment]) }, renderColumnCell(item, column))); }),
8852
8852
  hasIcon && (React__default.createElement("td", { className: "".concat(styles$f.actionCell, " ").concat(styles$f[textAlignment]) }, renderActionIconCell(item))))); })) : (React__default.createElement("tr", null,
8853
- React__default.createElement("td", { colSpan: columns.length + (onActionClick ? 1 : 0), className: styles$f.noRecords }, noRecordsMessage)))))));
8853
+ React__default.createElement("td", { colSpan: columns.length + (hasIcon ? 1 : 0), className: styles$f.noRecords }, noRecordsMessage)))))));
8854
8854
  };
8855
8855
 
8856
8856
  var css_248z$e = ".styles-module__textInput___gaz7I {\r\n width: 100%;\r\n height: 48px;\r\n padding: 14px 8px 14px 8px;\r\n border-radius: 8px;\r\n gap: 4px;\r\n font-size: 13px;\r\n border: 1px solid var(--color-border);\r\n color: var(--color-dark-gray);\r\n outline: none;\r\n transition: all 0.5s;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP {\r\n width: 100%;\r\n color: var(--color-input);\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP input {\r\n border-top-left-radius: 8px;\r\n border-bottom-left-radius: 8px;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP .p-calendar-disabled {\r\n border-radius: 8px;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP .p-calendar-disabled,\r\n.styles-module__inputContainer___fmTYP .p-button.p-disabled,\r\n.styles-module__inputContainer___fmTYP input:disabled {\r\n background-color: #eeeeee !important;\r\n cursor: not-allowed;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP input::placeholder {\r\n font-weight: 700;\r\n color: var(--input-placeholder-color);\r\n font-size: var(--font-size-14, 14px);\r\n line-height: 24px;\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP .p-inputtext {\r\n border-color: var(--color-border);\r\n}\r\n\r\n.styles-module__inputContainer___fmTYP .p-button {\r\n line-height: 22px;\r\n border-color: var(--color-border);\r\n border-top-right-radius: 8px;\r\n border-bottom-right-radius: 8px;\r\n}\r\n\r\n.styles-module__iconWrapper___H3Icv {\r\n position: absolute;\r\n left: 8px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.styles-module__labelRequired___4ewKH::after {\r\n content: \" *\";\r\n color: var(--color-danger);\r\n}\r\n\r\n.styles-module__titleLabel___6M8ua {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 5px;\r\n justify-content: space-between;\r\n}\r\n\r\n.styles-module__labelInput___wWffN {\r\n color: var(--color-label);\r\n line-height: 24px;\r\n font-size: 16px;\r\n bottom: 5px;\r\n font-weight: 700;\r\n}\r\n\r\n.styles-module__textInput___gaz7I:disabled {\r\n background: var(--background-color-table-primary);\r\n cursor: not-allowed;\r\n}\r\n\r\n.styles-module__textInput___gaz7I:focus {\r\n color: var(--color-gray-medium);\r\n outline: none;\r\n border: 1px solid var(--color-primary);\r\n box-shadow: 0px 0px 0px 2px var(--color-focus-outline);\r\n}\r\n\r\n.styles-module__textInput___gaz7I::placeholder {\r\n font-weight: bold;\r\n color: var(--color-input) 33;\r\n}\r\n\r\n.styles-module__textInputDanger___YqaWP {\r\n border: 1px solid var(--alert-color);\r\n box-shadow: 0px 0px 0px 2px var(--color-red-light);\r\n}\r\n\r\n.styles-module__password-input-container___o0AsP {\r\n position: relative;\r\n width: 360px;\r\n}\r\n\r\n.styles-module__inputTextPswUser___0xWHh:focus {\r\n border-color: var(--color-primary);\r\n box-shadow: none;\r\n}\r\n\r\n.styles-module__inputTextPswUser___0xWHh:disabled {\r\n background-color: var(--light-grey-color);\r\n border: var(--color-border);\r\n}\r\n\r\n.styles-module__inputTextPswUser___0xWHh::placeholder {\r\n font-weight: 587;\r\n color: var(--light-grey-color);\r\n}\r\n\r\n.styles-module__buttonTextPswUser___-UY3m {\r\n position: absolute;\r\n top: 50%;\r\n right: 15px;\r\n transform: translateY(-50%);\r\n cursor: pointer;\r\n background: none;\r\n border: none;\r\n padding: 0;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.styles-module__buttonTextPswUser___-UY3m.styles-module__error___Uy-55 {\r\n top: 35%;\r\n}\r\n\r\n.styles-module__iconEye___MiJMN {\r\n width: 24px;\r\n height: 24px;\r\n color: var(--light-grey-color);\r\n}\r\n\r\n.styles-module__restrictionMessage___QA5v7 {\r\n color: var(--alert-color);\r\n font-size: 12px;\r\n font-weight: 700;\r\n line-height: 15px;\r\n text-align: left;\r\n margin-left: 8px;\r\n}\r\n\r\n.styles-module__iconWrapperLeft___mzyII {\r\n position: absolute;\r\n left: 8px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.styles-module__iconWrapperRight___-s-pG {\r\n position: absolute;\r\n right: 8px;\r\n display: flex;\r\n align-items: center;\r\n background: none;\r\n border: none;\r\n padding: 0;\r\n cursor: pointer;\r\n color: inherit;\r\n}\r\n\r\n#styles-module__inputwrapper___4UacS {\r\n height: 48px;\r\n padding: 14px 8px 14px 8px;\r\n}\r\n\r\n#styles-module__buttonDisplay___tNJLk {\r\n width: 100%;\r\n}\r\n\r\n.styles-module__errorRequired___YsP4q {\r\n font-size: 16px;\r\n font-weight: 700;\r\n line-height: 24px;\r\n text-align: left;\r\n color: var(--color-danger);\r\n}\r\n\r\n.styles-module__calendarWrapper___Txz5G:focus-within {\r\n border: 1px solid #1a95b0;\r\n box-shadow: 0 0 0 0.2rem #0091ea80;\r\n}\r\n\r\n.styles-module__textCalendar___0ZZB- {\r\n width: 100%;\r\n height: 48px;\r\n padding: 14px 8px;\r\n border: none; \r\n border-radius: 0; \r\n}\r\n\r\n.styles-module__calendarWrapper___Txz5G {\r\n display: inline-flex;\r\n align-items: center;\r\n border-radius: 8px;\r\n border: 1px solid var(--color-border);\r\n}\r\n\r\n.styles-module__calendarError___UUWT4 {\r\n border: 1px solid #CB0A0A;\r\n box-shadow: 0 0 0 2px rgba(203,10,10,0.5);\r\n}\r\n\r\n.styles-module__calendarFocus___B899c {\r\n border: 1px solid #1a95b0;\r\n box-shadow: 0 0 0 0.2rem #0091ea80;\r\n}\r\n\r\n.styles-module__textCalendar___0ZZB- {\r\n width: 100%;\r\n height: 48px;\r\n padding: 14px 8px;\r\n border: none;\r\n border-radius: 0;\r\n}\r\n\r\n.p-calendar .p-inputtext,\r\n.p-calendar .p-button-icon-only {\r\n border: none !important;\r\n box-shadow: none !important;\r\n}\r\n";
@@ -24235,7 +24235,7 @@ var Chip = React__default.forwardRef(function (_a, ref) {
24235
24235
  });
24236
24236
  Chip.displayName = "Chip";
24237
24237
 
24238
- var css_248z$1 = ".styles-module__anchorButton___--an4 {\r\n background: transparent;\r\n border: none;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.styles-module__menuContainer___yHaTV {\r\n position: absolute;\r\n z-index: 3000;\r\n border: 1px solid var(--color-border);\r\n border-radius: 10px;\r\n padding: 10px;\r\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),\r\n 0 4px 6px -4px rgba(0, 0, 0, 0.1);\r\n overflow: hidden;\r\n background-color: var(--background-color);\r\n}\r\n\r\n.styles-module__menuContent___MVxcu {\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 92vw;\r\n max-height: 70vh;\r\n overflow: hidden;\r\n}\r\n";
24238
+ var css_248z$1 = ".styles-module__anchorButton___--an4 {\r\n background: transparent;\r\n border: none;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.styles-module__menuContainer___yHaTV {\r\n position: absolute;\r\n z-index: 3000;\r\n border: 1px solid var(--color-border);\r\n border-radius: 10px;\r\n padding: 10px;\r\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),\r\n 0 4px 6px -4px rgba(0, 0, 0, 0.1);\r\n overflow: hidden;\r\n background-color: var(--background-color);\r\n}\r\n\r\n.styles-module__menuContent___MVxcu {\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 92vw;\r\n max-height: 70vh;\r\n overflow: hidden;\r\n}\r\n";
24239
24239
  var styles = {"anchorButton":"styles-module__anchorButton___--an4","menuContainer":"styles-module__menuContainer___yHaTV","menuContent":"styles-module__menuContent___MVxcu"};
24240
24240
  styleInject(css_248z$1);
24241
24241
 
@@ -24244,7 +24244,9 @@ var FloatingMenu = function (_a) {
24244
24244
  var anchor = _a.anchor, anchorContent = _a.anchorContent, isOpen = _a.isOpen, onClose = _a.onClose, children = _a.children, className = _a.className, style = _a.style;
24245
24245
  var containerRef = useRef(null);
24246
24246
  var internalAnchorRef = useRef(null);
24247
- var _b = useState({}), computedStyle = _b[0], setComputedStyle = _b[1];
24247
+ var _b = useState({
24248
+ visibility: "hidden",
24249
+ }), computedStyle = _b[0], setComputedStyle = _b[1];
24248
24250
  var _c = useState(false), isMobile = _c[0], setIsMobile = _c[1];
24249
24251
  var _d = useState(false), internalOpen = _d[0], setInternalOpen = _d[1];
24250
24252
  var menuId = useMemo(function () { return "floating-menu-".concat(Math.random().toString(36).slice(2, 9)); }, []);
@@ -24258,7 +24260,7 @@ var FloatingMenu = function (_a) {
24258
24260
  }, []);
24259
24261
  var resolvedOpen = typeof isOpen === "boolean" ? isOpen : internalOpen;
24260
24262
  var resolvedAnchor = anchor || internalAnchorRef.current;
24261
- useEffect(function () {
24263
+ useLayoutEffect(function () {
24262
24264
  if (!resolvedOpen || !resolvedAnchor || !containerRef.current)
24263
24265
  return;
24264
24266
  var updatePosition = function () {
@@ -24327,6 +24329,7 @@ var FloatingMenu = function (_a) {
24327
24329
  width: isMobile ? "auto" : undefined,
24328
24330
  maxHeight: isMobile ? vh * 0.7 : undefined,
24329
24331
  overflow: isMobile ? "auto" : undefined,
24332
+ visibility: "visible",
24330
24333
  };
24331
24334
  setComputedStyle(computed);
24332
24335
  };