@ninebone/util 1.0.39 → 1.0.40
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-util.js +5 -3
- package/dist/nine-util.js.map +1 -1
- package/dist/nine-util.umd.js +1 -1
- package/dist/nine-util.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-util.js
CHANGED
|
@@ -1147,7 +1147,7 @@ prepare_fn = function(type, message, title, defaultClass) {
|
|
|
1147
1147
|
// static 필드는 클래스 자체에 저장됨
|
|
1148
1148
|
__publicField(NineUxUtil, "cssPath", "");
|
|
1149
1149
|
Object.assign(nine$1, new NineUxUtil());
|
|
1150
|
-
class
|
|
1150
|
+
class NineSplitter extends HTMLElement {
|
|
1151
1151
|
constructor() {
|
|
1152
1152
|
super();
|
|
1153
1153
|
__privateAdd(this, _mode);
|
|
@@ -1313,7 +1313,7 @@ class UxSplitter extends HTMLElement {
|
|
|
1313
1313
|
const htmlTmpl = document.createElement("template");
|
|
1314
1314
|
htmlTmpl.innerHTML = `
|
|
1315
1315
|
<style>
|
|
1316
|
-
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.
|
|
1316
|
+
@import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.40"}/dist/css/nine-util.css";
|
|
1317
1317
|
${customImport}
|
|
1318
1318
|
</style>
|
|
1319
1319
|
${gripTmpl}
|
|
@@ -1326,6 +1326,7 @@ class UxSplitter extends HTMLElement {
|
|
|
1326
1326
|
window.addEventListener("resize", () => __privateGet(this, _prepareLayout).call(this));
|
|
1327
1327
|
});
|
|
1328
1328
|
__privateAdd(this, _prepareLayout, () => {
|
|
1329
|
+
trace$1.log("**********");
|
|
1329
1330
|
const isHorizontal = __privateGet(this, _mode) === "h";
|
|
1330
1331
|
const parent = this.parentElement;
|
|
1331
1332
|
const allPanels = Array.from(parent.children).filter((el) => el.tagName.toLowerCase() !== "nine-splitter");
|
|
@@ -1341,6 +1342,7 @@ class UxSplitter extends HTMLElement {
|
|
|
1341
1342
|
const newSize = totalParentSize * (size / totalContentSize);
|
|
1342
1343
|
const flexGrow = newSize / totalParentSize;
|
|
1343
1344
|
panel.style.flex = `${flexGrow} ${flexGrow} 0`;
|
|
1345
|
+
trace$1.log(panel.style.flex);
|
|
1344
1346
|
});
|
|
1345
1347
|
});
|
|
1346
1348
|
this.attachShadow({ mode: "open" });
|
|
@@ -1359,7 +1361,7 @@ _startDrag = new WeakMap();
|
|
|
1359
1361
|
_init2 = new WeakMap();
|
|
1360
1362
|
_prepareLayout = new WeakMap();
|
|
1361
1363
|
if (!customElements.get("nine-splitter")) {
|
|
1362
|
-
customElements.define("nine-splitter",
|
|
1364
|
+
customElements.define("nine-splitter", NineSplitter);
|
|
1363
1365
|
}
|
|
1364
1366
|
function getDefaultExportFromCjs(x) {
|
|
1365
1367
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|