ninegrid2 6.430.0 → 6.432.0
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.cjs.js +14 -14
- package/dist/bundle.esm.js +14 -14
- package/dist/etc/ngColumns.js +14 -14
- package/package.json +1 -1
- package/src/etc/ngColumns.js +14 -14
package/dist/bundle.cjs.js
CHANGED
|
@@ -14865,24 +14865,24 @@ class ngColumns
|
|
|
14865
14865
|
return this.#owner.activeTmpl.querySelectorAll("[data-bind]").length;
|
|
14866
14866
|
}
|
|
14867
14867
|
|
|
14868
|
-
|
|
14869
|
-
if (!el) return null;
|
|
14868
|
+
info = (v) => {
|
|
14870
14869
|
|
|
14871
|
-
const
|
|
14870
|
+
const element2Info = (el) => {
|
|
14872
14871
|
|
|
14873
|
-
|
|
14874
|
-
"name": el.dataset.bind,
|
|
14875
|
-
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
14876
|
-
"desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
|
|
14877
|
-
};
|
|
14878
|
-
};
|
|
14872
|
+
if (!el) return null;
|
|
14879
14873
|
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14874
|
+
const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
|
|
14875
|
+
|
|
14876
|
+
return {
|
|
14877
|
+
"name": el.dataset.bind,
|
|
14878
|
+
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
14879
|
+
"desc": ths.length > 0 ? ths[ths.length - 1].getAttribute("title") : null,
|
|
14880
|
+
};
|
|
14881
|
+
};
|
|
14883
14882
|
|
|
14884
|
-
|
|
14885
|
-
|
|
14883
|
+
return v ?
|
|
14884
|
+
element2Info(this.#owner.activeTmpl.querySelector(`[data-bind="${v}"]`)) :
|
|
14885
|
+
Array.from(this.#owner.activeTmpl.querySelectorAll("[data-bind]")).map(el => element2Info(el));
|
|
14886
14886
|
}
|
|
14887
14887
|
|
|
14888
14888
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -14863,24 +14863,24 @@ class ngColumns
|
|
|
14863
14863
|
return this.#owner.activeTmpl.querySelectorAll("[data-bind]").length;
|
|
14864
14864
|
}
|
|
14865
14865
|
|
|
14866
|
-
|
|
14867
|
-
if (!el) return null;
|
|
14866
|
+
info = (v) => {
|
|
14868
14867
|
|
|
14869
|
-
const
|
|
14868
|
+
const element2Info = (el) => {
|
|
14870
14869
|
|
|
14871
|
-
|
|
14872
|
-
"name": el.dataset.bind,
|
|
14873
|
-
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
14874
|
-
"desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
|
|
14875
|
-
};
|
|
14876
|
-
};
|
|
14870
|
+
if (!el) return null;
|
|
14877
14871
|
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14872
|
+
const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
|
|
14873
|
+
|
|
14874
|
+
return {
|
|
14875
|
+
"name": el.dataset.bind,
|
|
14876
|
+
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
14877
|
+
"desc": ths.length > 0 ? ths[ths.length - 1].getAttribute("title") : null,
|
|
14878
|
+
};
|
|
14879
|
+
};
|
|
14881
14880
|
|
|
14882
|
-
|
|
14883
|
-
|
|
14881
|
+
return v ?
|
|
14882
|
+
element2Info(this.#owner.activeTmpl.querySelector(`[data-bind="${v}"]`)) :
|
|
14883
|
+
Array.from(this.#owner.activeTmpl.querySelectorAll("[data-bind]")).map(el => element2Info(el));
|
|
14884
14884
|
}
|
|
14885
14885
|
|
|
14886
14886
|
|
package/dist/etc/ngColumns.js
CHANGED
|
@@ -12,24 +12,24 @@ export class ngColumns
|
|
|
12
12
|
return this.#owner.activeTmpl.querySelectorAll("[data-bind]").length;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
if (!el) return null;
|
|
15
|
+
info = (v) => {
|
|
17
16
|
|
|
18
|
-
const
|
|
17
|
+
const element2Info = (el) => {
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
"name": el.dataset.bind,
|
|
22
|
-
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
23
|
-
"desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
19
|
+
if (!el) return null;
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"name": el.dataset.bind,
|
|
25
|
+
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
26
|
+
"desc": ths.length > 0 ? ths[ths.length - 1].getAttribute("title") : null,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
return v ?
|
|
31
|
+
element2Info(this.#owner.activeTmpl.querySelector(`[data-bind="${v}"]`)) :
|
|
32
|
+
Array.from(this.#owner.activeTmpl.querySelectorAll("[data-bind]")).map(el => element2Info(el));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
package/package.json
CHANGED
package/src/etc/ngColumns.js
CHANGED
|
@@ -12,24 +12,24 @@ export class ngColumns
|
|
|
12
12
|
return this.#owner.activeTmpl.querySelectorAll("[data-bind]").length;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
if (!el) return null;
|
|
15
|
+
info = (v) => {
|
|
17
16
|
|
|
18
|
-
const
|
|
17
|
+
const element2Info = (el) => {
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
"name": el.dataset.bind,
|
|
22
|
-
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
23
|
-
"desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
19
|
+
if (!el) return null;
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"name": el.dataset.bind,
|
|
25
|
+
"type": (el.dataset.type || "string").toLocaleLowerCase(),
|
|
26
|
+
"desc": ths.length > 0 ? ths[ths.length - 1].getAttribute("title") : null,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
return v ?
|
|
31
|
+
element2Info(this.#owner.activeTmpl.querySelector(`[data-bind="${v}"]`)) :
|
|
32
|
+
Array.from(this.#owner.activeTmpl.querySelectorAll("[data-bind]")).map(el => element2Info(el));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|