@evergis/uilib-gl 1.0.6 → 1.0.7

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.
@@ -19292,7 +19292,7 @@ var setHeight$1 = function setHeight(height) {
19292
19292
  return typeof height === "number" ? height + "px" : typeof height === "undefined" ? "368px" : height;
19293
19293
  };
19294
19294
 
19295
- var TableComponent = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-spacing: 0;\n width: ", ";\n height: ", ";\n overflow: scroll;\n font: ", ";\n color: ", ";\n pointer-events: ", ";\n\n table {\n display: table;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead {\n user-select: none;\n }\n\n tbody {\n overflow: auto;\n }\n\n tr {\n :last-child {\n td {\n border-bottom: 0;\n }\n }\n\n &.even td {\n background-color: ", " !important;\n }\n }\n\n th {\n position: sticky;\n top: 0;\n margin: 0;\n padding: 0 0 0 10px;\n box-sizing: border-box;\n background-color: ", ";\n font-size: 14px;\n font-weight: 100;\n color: ", ";\n z-index: 3;\n\n &.special {\n left: 0;\n }\n\n &:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 8px;\n height: 100%;\n margin-left: -0.13rem;\n background-color: ", ";\n }\n\n .th-container {\n display: flex;\n align-items: stretch;\n\n .th-cell {\n width: calc(100% - 8px);\n color: ", ";\n user-select: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n padding: 10px 10px 10px 0;\n box-sizing: border-box;\n text-align: left;\n }\n\n .th-resize {\n position: relative;\n display: flex;\n justify-content: center;\n min-width: 8px;\n width: 8px;\n cursor: col-resize;\n\n .th-resize-ruler {\n position: fixed;\n height: ", ";\n display: none;\n width: 2px;\n pointer-events: none;\n background-color: ", ";\n }\n\n &:hover,\n &:active {\n .th-resize-ruler {\n display: block;\n }\n }\n }\n }\n }\n\n td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n padding: 10px 20px 10px 34px;\n box-sizing: border-box;\n height: 40px;\n font-size: 14px;\n z-index: 1;\n\n &.special {\n position: sticky;\n left: 0;\n padding: 0 0 0 10px;\n z-index: 2;\n background-color: ", " !important;\n }\n }\n"])), function (_ref3) {
19295
+ var TableComponent = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-spacing: 0;\n width: ", ";\n height: ", ";\n overflow: auto;\n font: ", ";\n color: ", ";\n pointer-events: ", ";\n\n table {\n display: table;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead {\n user-select: none;\n }\n\n tbody {\n overflow: auto;\n\n :hover td {\n opacity: 0.28;\n }\n }\n\n tr {\n td {\n border-bottom: ", ";\n transition: all ", ";\n }\n\n :hover td {\n background-color: ", ";\n border-bottom-color: transparent;\n opacity: 1;\n }\n }\n\n th {\n position: sticky;\n top: 0;\n margin: 0;\n padding: 0 0 0 10px;\n box-sizing: border-box;\n background-color: ", ";\n font-size: 14px;\n font-weight: 100;\n color: ", ";\n z-index: 3;\n\n &.special {\n left: 0;\n }\n\n &:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 8px;\n height: 100%;\n margin-left: -0.13rem;\n background-color: ", ";\n }\n\n .th-container {\n display: flex;\n align-items: stretch;\n\n .th-cell {\n width: calc(100% - 8px);\n color: ", ";\n user-select: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n padding: 10px 10px 10px 0;\n box-sizing: border-box;\n text-align: left;\n }\n\n .th-resize {\n position: relative;\n display: flex;\n justify-content: center;\n min-width: 8px;\n width: 8px;\n cursor: col-resize;\n\n .th-resize-ruler {\n position: fixed;\n height: ", ";\n display: none;\n width: 2px;\n pointer-events: none;\n background-color: ", ";\n }\n\n &:hover,\n &:active {\n .th-resize-ruler {\n display: block;\n }\n }\n }\n }\n }\n\n td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n padding: 10px 20px 10px 34px;\n box-sizing: border-box;\n height: 40px;\n font-size: 14px;\n z-index: 1;\n\n &.special {\n position: sticky;\n left: 0;\n padding: 0 0 0 10px;\n z-index: 2;\n background-color: ", ";\n }\n }\n"])), function (_ref3) {
19296
19296
  var width = _ref3.tableWidth;
19297
19297
  return setWidth$1(width);
19298
19298
  }, function (_ref4) {
@@ -19309,105 +19309,100 @@ var TableComponent = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObj
19309
19309
  return showTable ? "none" : "auto";
19310
19310
  }, function (_ref8) {
19311
19311
  var theme = _ref8.theme;
19312
- return theme.palette.elementDarkNoAlpha;
19313
- }, function (_ref9) {
19312
+ return "1px solid " + theme.palette.elementDark;
19313
+ }, transition.hover, function (_ref9) {
19314
19314
  var theme = _ref9.theme;
19315
- return theme.palette.background;
19315
+ return theme.palette.elementDark;
19316
19316
  }, function (_ref10) {
19317
19317
  var theme = _ref10.theme;
19318
- return theme.palette.textPrimary;
19318
+ return theme.palette.background;
19319
19319
  }, function (_ref11) {
19320
19320
  var theme = _ref11.theme;
19321
- return theme.palette.background;
19321
+ return theme.palette.textPrimary;
19322
19322
  }, function (_ref12) {
19323
19323
  var theme = _ref12.theme;
19324
- return theme.palette.textPrimary;
19324
+ return theme.palette.background;
19325
19325
  }, function (_ref13) {
19326
- var height = _ref13.tableHeight;
19327
- return setHeight$1(height);
19326
+ var theme = _ref13.theme;
19327
+ return theme.palette.textPrimary;
19328
19328
  }, function (_ref14) {
19329
- var theme = _ref14.theme;
19330
- return theme.palette.elementDeep;
19329
+ var height = _ref14.tableHeight;
19330
+ return setHeight$1(height);
19331
19331
  }, function (_ref15) {
19332
19332
  var theme = _ref15.theme;
19333
+ return theme.palette.elementDeep;
19334
+ }, function (_ref16) {
19335
+ var theme = _ref16.theme;
19333
19336
  return theme.palette.background;
19334
19337
  });
19335
19338
  var HeaderCellPrefix = /*#__PURE__*/styled.div(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 16px;\n height: 16px;\n margin-right: 8px;\n"])));
19336
- var HeaderCellComponent = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n flex-direction: row;\n cursor: ", ";\n align-items: center;\n max-width: 100%;\n\n &[data-sorted=\"true\"] {\n ", " {\n display: none;\n }\n }\n\n & > ", " {\n opacity: 0;\n margin-right: 8px;\n display: ", ";\n }\n\n &[data-sorted=\"true\"] {\n & > ", " {\n opacity: 1;\n }\n\n color: ", ";\n }\n"])), function (_ref16) {
19337
- var noSort = _ref16.noSort;
19338
- return noSort ? "default" : "pointer";
19339
- }, HeaderCellPrefix, Icon, function (_ref17) {
19339
+ var HeaderCellComponent = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n flex-direction: row;\n cursor: ", ";\n align-items: center;\n max-width: 100%;\n\n &[data-sorted=\"true\"] {\n ", " {\n display: none;\n }\n }\n\n & > ", " {\n opacity: 0;\n margin-right: 8px;\n display: ", ";\n }\n\n &[data-sorted=\"true\"] {\n & > ", " {\n opacity: 1;\n }\n\n color: ", ";\n }\n"])), function (_ref17) {
19340
19340
  var noSort = _ref17.noSort;
19341
+ return noSort ? "default" : "pointer";
19342
+ }, HeaderCellPrefix, Icon, function (_ref18) {
19343
+ var noSort = _ref18.noSort;
19341
19344
  return noSort && "none";
19342
- }, Icon, function (_ref18) {
19343
- var palette = _ref18.theme.palette;
19345
+ }, Icon, function (_ref19) {
19346
+ var palette = _ref19.theme.palette;
19344
19347
  return palette.primary;
19345
19348
  });
19346
19349
  var FilterContainer = /*#__PURE__*/styled.div(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n margin-top: 1rem;\n"])));
19347
- var TableFooter = /*#__PURE__*/styled.div(_templateObject6$g || (_templateObject6$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 1rem 0 1.5rem;\n min-height: 2rem;\n max-height: 2rem;\n box-shadow: ", ";\n box-sizing: border-box;\n"])), function (_ref19) {
19348
- var theme = _ref19.theme;
19349
- return theme.shadows.top;
19350
- });
19351
- var TableFooterSummary = /*#__PURE__*/styled.div(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font: ", ";\n color: ", ";\n"])), function (_ref20) {
19350
+ var TableFooter = /*#__PURE__*/styled.div(_templateObject6$g || (_templateObject6$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 1rem 0 1.5rem;\n min-height: 2rem;\n max-height: 2rem;\n box-sizing: border-box;\n border-top: ", ";\n"])), function (_ref20) {
19352
19351
  var theme = _ref20.theme;
19353
- return theme.fonts.description;
19354
- }, function (_ref21) {
19352
+ return "2px solid " + theme.palette.elementDark;
19353
+ });
19354
+ var TableFooterSummary = /*#__PURE__*/styled.div(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font: ", ";\n color: ", ";\n"])), function (_ref21) {
19355
19355
  var theme = _ref21.theme;
19356
+ return theme.fonts.description;
19357
+ }, function (_ref22) {
19358
+ var theme = _ref22.theme;
19356
19359
  return theme.palette.textSecondary;
19357
19360
  });
19358
- var TableFooterControls = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font: ", ";\n color: ", ";\n"])), function (_ref22) {
19359
- var theme = _ref22.theme;
19360
- return theme.fonts.description;
19361
- }, function (_ref23) {
19361
+ var TableFooterControls = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font: ", ";\n color: ", ";\n"])), function (_ref23) {
19362
19362
  var theme = _ref23.theme;
19363
+ return theme.fonts.description;
19364
+ }, function (_ref24) {
19365
+ var theme = _ref24.theme;
19363
19366
  return theme.palette.textPrimary;
19364
19367
  });
19365
- var TableContainer = /*#__PURE__*/styled.div(_templateObject9$6 || (_templateObject9$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n\n thead {\n height: ", ";\n\n th {\n box-shadow: ", ";\n border-bottom: ", ";\n\n &.special {\n box-shadow: ", ";\n z-index: ", ";\n border-right: ", ";\n }\n }\n\n .th-container {\n height: ", ";\n }\n }\n\n td {\n &.special {\n border-right: ", ";\n z-index: ", ";\n }\n }\n\n ", " {\n width: ", ";\n min-height: ", ";\n }\n\n ", " {\n width: ", ";\n }\n"])), function (_ref24) {
19366
- var filtersOn = _ref24.filtersOn;
19368
+ var TableContainer = /*#__PURE__*/styled.div(_templateObject9$6 || (_templateObject9$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n\n thead {\n height: ", ";\n\n th {\n border-bottom: ", ";\n\n &.special {\n z-index: ", ";\n border-right: ", ";\n }\n }\n\n .th-container {\n height: ", ";\n }\n }\n\n td {\n &.special {\n border-right: ", ";\n z-index: ", ";\n }\n }\n\n ", " {\n width: ", ";\n min-height: ", ";\n }\n\n ", " {\n width: ", ";\n }\n"])), function (_ref25) {
19369
+ var filtersOn = _ref25.filtersOn;
19367
19370
  return !filtersOn ? "37px" : "85px";
19368
- }, function (_ref25) {
19369
- var $loading = _ref25.$loading,
19370
- shadows = _ref25.theme.shadows;
19371
- return $loading ? "none" : shadows.normal;
19372
19371
  }, function (_ref26) {
19373
19372
  var $loading = _ref26.$loading,
19374
19373
  theme = _ref26.theme;
19375
- return $loading ? "1px solid transparent" : "1px solid " + theme.palette.elementDeep;
19374
+ return $loading ? "2px solid transparent" : "2px solid " + theme.palette.elementDark;
19376
19375
  }, function (_ref27) {
19377
- var $loading = _ref27.$loading,
19378
- shadows = _ref27.theme.shadows;
19379
- return $loading ? "none" : shadows.normalExtra;
19380
- }, function (_ref28) {
19381
- var scrolled = _ref28.scrolled;
19376
+ var scrolled = _ref27.scrolled;
19382
19377
  return scrolled && 4;
19378
+ }, function (_ref28) {
19379
+ var scrolled = _ref28.scrolled,
19380
+ theme = _ref28.theme;
19381
+ return scrolled ? "1px solid " + theme.palette.elementDark : "none";
19383
19382
  }, function (_ref29) {
19384
- var scrolled = _ref29.scrolled,
19385
- theme = _ref29.theme;
19386
- return scrolled ? "1px solid " + theme.palette.elementDeep : "none";
19387
- }, function (_ref30) {
19388
- var filtersOn = _ref30.filtersOn;
19383
+ var filtersOn = _ref29.filtersOn;
19389
19384
  return !filtersOn ? "37px" : "85px";
19390
- }, function (_ref31) {
19391
- var scrolled = _ref31.scrolled,
19392
- theme = _ref31.theme;
19385
+ }, function (_ref30) {
19386
+ var scrolled = _ref30.scrolled,
19387
+ theme = _ref30.theme;
19393
19388
  return scrolled ? "1px solid " + theme.palette.elementDeep : "none";
19394
- }, function (_ref32) {
19395
- var scrolled = _ref32.scrolled;
19389
+ }, function (_ref31) {
19390
+ var scrolled = _ref31.scrolled;
19396
19391
  return scrolled && 3;
19397
- }, LoadingContainer, function (_ref33) {
19398
- var width = _ref33.width;
19392
+ }, LoadingContainer, function (_ref32) {
19393
+ var width = _ref32.width;
19399
19394
  return setWidth$1(width);
19400
- }, function (_ref34) {
19401
- var $loading = _ref34.$loading;
19395
+ }, function (_ref33) {
19396
+ var $loading = _ref33.$loading;
19402
19397
  return !$loading ? "0" : "40px";
19403
- }, TableFooter, function (_ref35) {
19404
- var width = _ref35.width;
19398
+ }, TableFooter, function (_ref34) {
19399
+ var width = _ref34.width;
19405
19400
  return setWidth$1(width);
19406
19401
  });
19407
19402
  var SpecialHeadCellContent = /*#__PURE__*/styled.div(_templateObject10$4 || (_templateObject10$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n align-items: center;\n padding-left: 0.25rem;\n"])));
19408
19403
  var SpecialBodyCellContent = /*#__PURE__*/styled.div(_templateObject11$2 || (_templateObject11$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
19409
- var Tbody = /*#__PURE__*/styled.tbody(_templateObject12$2 || (_templateObject12$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n opacity: ", ";\n"])), function (_ref36) {
19410
- var showTable = _ref36.showTable;
19404
+ var Tbody = /*#__PURE__*/styled.tbody(_templateObject12$2 || (_templateObject12$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n opacity: ", ";\n"])), function (_ref35) {
19405
+ var showTable = _ref35.showTable;
19411
19406
  return showTable ? 0.64 : 1;
19412
19407
  });
19413
19408
  var ColName = /*#__PURE__*/styled.div(_templateObject13$2 || (_templateObject13$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n"])), /*#__PURE__*/ellipsis());