@design.estate/dees-catalog 3.67.0 → 3.67.1
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_bundle/bundle.js +25 -5
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.js +35 -6
- package/dist_ts_web/elements/00group-dataview/dees-table/types.d.ts +1 -0
- package/dist_watch/bundle.js +23 -3
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-dataview/dees-table/dees-table.ts +35 -6
- package/ts_web/elements/00group-dataview/dees-table/types.ts +1 -0
package/dist_watch/bundle.js
CHANGED
|
@@ -170618,7 +170618,7 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
170618
170618
|
</th>
|
|
170619
170619
|
` : b2``}
|
|
170620
170620
|
${effectiveColumns.filter((c11) => !c11.hidden).map((col) => {
|
|
170621
|
-
const isSortable =
|
|
170621
|
+
const isSortable = col.sortable !== false;
|
|
170622
170622
|
const ariaSort = this.getAriaSort(col);
|
|
170623
170623
|
return b2`
|
|
170624
170624
|
<th
|
|
@@ -170846,10 +170846,16 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
170846
170846
|
headerHeight += realHeadRows[r11].getBoundingClientRect().height;
|
|
170847
170847
|
}
|
|
170848
170848
|
}
|
|
170849
|
-
const
|
|
170849
|
+
const distance = tableRect.bottom - stick.top;
|
|
170850
|
+
const shouldBeActive = tableRect.top < stick.top && distance > 0;
|
|
170850
170851
|
if (shouldBeActive !== this.__floatingActive) {
|
|
170851
170852
|
this.__floatingActive = shouldBeActive;
|
|
170852
170853
|
fh.classList.toggle("active", shouldBeActive);
|
|
170854
|
+
if (!shouldBeActive) {
|
|
170855
|
+
fh.style.height = "";
|
|
170856
|
+
const ft = this.__floatingTableEl;
|
|
170857
|
+
if (ft) ft.style.transform = "";
|
|
170858
|
+
}
|
|
170853
170859
|
if (shouldBeActive) {
|
|
170854
170860
|
this.updateComplete.then(() => this.__syncFloatingHeader());
|
|
170855
170861
|
return;
|
|
@@ -170878,8 +170884,12 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
170878
170884
|
fh.style.top = `${stick.top}px`;
|
|
170879
170885
|
fh.style.left = `${clipLeft}px`;
|
|
170880
170886
|
fh.style.width = `${clipWidth}px`;
|
|
170887
|
+
const visibleHeight = Math.min(headerHeight, distance);
|
|
170888
|
+
const exitOffset = headerHeight - visibleHeight;
|
|
170889
|
+
fh.style.height = `${visibleHeight}px`;
|
|
170881
170890
|
floatTable.style.width = `${tableRect.width}px`;
|
|
170882
170891
|
floatTable.style.marginLeft = `${tableRect.left - clipLeft}px`;
|
|
170892
|
+
floatTable.style.transform = exitOffset > 0 ? `translateY(-${exitOffset}px)` : "";
|
|
170883
170893
|
}
|
|
170884
170894
|
async disconnectedCallback() {
|
|
170885
170895
|
super.disconnectedCallback();
|
|
@@ -171191,7 +171201,7 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
171191
171201
|
const key2 = String(col.key);
|
|
171192
171202
|
const existing = this.getSortDescriptor(key2);
|
|
171193
171203
|
const cascadeLen = this.sortBy.length;
|
|
171194
|
-
const sortableColumnCount = effectiveColumns.filter((c11) =>
|
|
171204
|
+
const sortableColumnCount = effectiveColumns.filter((c11) => c11.sortable !== false).length;
|
|
171195
171205
|
const maxSlot = Math.min(
|
|
171196
171206
|
Math.max(cascadeLen + (existing ? 0 : 1), 1),
|
|
171197
171207
|
Math.max(sortableColumnCount, 1)
|
|
@@ -171285,6 +171295,16 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
171285
171295
|
}, "action")
|
|
171286
171296
|
});
|
|
171287
171297
|
}
|
|
171298
|
+
items.push({ divider: true });
|
|
171299
|
+
items.push({
|
|
171300
|
+
name: this.showColumnFilters ? "Hide column filters" : "Show column filters",
|
|
171301
|
+
iconName: this.showColumnFilters ? "lucide:filterX" : "lucide:filter",
|
|
171302
|
+
action: /* @__PURE__ */ __name(async () => {
|
|
171303
|
+
this.showColumnFilters = !this.showColumnFilters;
|
|
171304
|
+
this.requestUpdate();
|
|
171305
|
+
return null;
|
|
171306
|
+
}, "action")
|
|
171307
|
+
});
|
|
171288
171308
|
return items;
|
|
171289
171309
|
}
|
|
171290
171310
|
// ─── sort: indicator + ARIA ──────────────────────────────────────────
|