@ninebone/table 0.0.668 → 0.0.670
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/nine-table.js +10 -10
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +1 -1
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -697,8 +697,17 @@ const pt = class pt extends HTMLElement {
|
|
|
697
697
|
d(this, et, null);
|
|
698
698
|
d(this, st);
|
|
699
699
|
E(this, "invalidate", /* @__PURE__ */ c(() => {
|
|
700
|
-
t(this, st).refresh();
|
|
700
|
+
H.log("sheet.invalidate()"), t(this, st).refresh();
|
|
701
701
|
}, "invalidate"));
|
|
702
|
+
E(this, "generate", /* @__PURE__ */ c((e) => {
|
|
703
|
+
if (!e) return;
|
|
704
|
+
y(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this);
|
|
705
|
+
const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), n = this.querySelector(".ng-nodata-overlay");
|
|
706
|
+
s && n && (n.style.top = `${s.offsetHeight}px`), r && n && (n.style.bottom = `${r.offsetHeight}px`), t(this, st).initialize(), setTimeout(() => {
|
|
707
|
+
var o;
|
|
708
|
+
(o = this.querySelector("nine-table-hscrollbar")) == null || o.refresh();
|
|
709
|
+
}, 0);
|
|
710
|
+
}, "generate"));
|
|
702
711
|
d(this, Vt, /* @__PURE__ */ c(() => {
|
|
703
712
|
[
|
|
704
713
|
{ selector: ".ng-container-body", type: null },
|
|
@@ -720,15 +729,6 @@ const pt = class pt extends HTMLElement {
|
|
|
720
729
|
}), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
|
|
721
730
|
});
|
|
722
731
|
}, "#updateContainerWidths"));
|
|
723
|
-
E(this, "generate", /* @__PURE__ */ c((e) => {
|
|
724
|
-
if (!e) return;
|
|
725
|
-
y(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this);
|
|
726
|
-
const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), n = this.querySelector(".ng-nodata-overlay");
|
|
727
|
-
s && n && (n.style.top = `${s.offsetHeight}px`), r && n && (n.style.bottom = `${r.offsetHeight}px`), t(this, st).initialize(), setTimeout(() => {
|
|
728
|
-
var o;
|
|
729
|
-
(o = this.querySelector("nine-table-hscrollbar")) == null || o.refresh();
|
|
730
|
-
}, 0);
|
|
731
|
-
}, "generate"));
|
|
732
732
|
d(this, ct, /* @__PURE__ */ c((e, s, r) => {
|
|
733
733
|
const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), h = n.querySelector("tfoot");
|
|
734
734
|
if (r === "header") {
|