@teselagen/ui 0.3.60 → 0.3.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.60",
3
+ "version": "0.3.61",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -2029,7 +2029,8 @@ class DataTable extends React.Component {
2029
2029
  this.startCellEdit(cellId);
2030
2030
  },
2031
2031
  ...(err && {
2032
- "data-tip": err?.message || err
2032
+ "data-tip": err?.message || err,
2033
+ "no-child-data-tip": true
2033
2034
  }),
2034
2035
  onContextMenu: e => {
2035
2036
  if (!isPrimarySelected) {
@@ -171,6 +171,7 @@ let clearMe;
171
171
  isEllipsized &&
172
172
  el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
173
173
  !el.classList.contains("no-data-tip") &&
174
+ !parentIncludesNoChildDataTip(el, 0) &&
174
175
  !document.body.classList.contains("drag-active") &&
175
176
  el.textContent &&
176
177
  el.textContent?.trim?.().length !== 0
@@ -189,3 +190,10 @@ let clearMe;
189
190
  }
190
191
  });
191
192
  })();
193
+
194
+ function parentIncludesNoChildDataTip(el, count) {
195
+ if (count > 4) return false;
196
+ if (!el) return false;
197
+ if (el.classList.contains("no-child-data-tip")) return true;
198
+ return parentIncludesNoChildDataTip(el.parentElement, count + 1);
199
+ }
package/src/style.css CHANGED
@@ -241,4 +241,4 @@ button:not(:disabled):active {
241
241
  box-shadow: unset !important;
242
242
  text-align: unset !important;
243
243
  cursor: pointer !important;
244
- } */
244
+ } */
package/style.css CHANGED
@@ -9059,7 +9059,8 @@ button:not(:disabled):active {
9059
9059
  box-shadow: unset !important;
9060
9060
  text-align: unset !important;
9061
9061
  cursor: pointer !important;
9062
- } */.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
9062
+ } */
9063
+ .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
9063
9064
  .rg-celleditor input {
9064
9065
  border: none;
9065
9066
  }