@ulu/frontend-vue 0.1.3-beta.11 → 0.1.3-beta.12
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/frontend-vue.js
CHANGED
|
@@ -4161,23 +4161,24 @@ const yh = /* @__PURE__ */ L(ta, [["render", sa]]), ph = {
|
|
|
4161
4161
|
// New prop from SSR version
|
|
4162
4162
|
},
|
|
4163
4163
|
setup(e) {
|
|
4164
|
-
const n = e, t = O(null);
|
|
4165
|
-
let
|
|
4164
|
+
const n = e, t = O(null), s = O(null);
|
|
4165
|
+
let l = null, o = null;
|
|
4166
4166
|
return Be(async () => {
|
|
4167
|
-
|
|
4167
|
+
l = () => al(t.value), l(), s.value = !0, o = Kt(l, 200, !1), window.addEventListener("resize", o);
|
|
4168
4168
|
}), bt(() => {
|
|
4169
|
-
|
|
4170
|
-
}), te(() => n.hidden, (
|
|
4171
|
-
|
|
4172
|
-
}), (
|
|
4169
|
+
o && (window.removeEventListener("resize", o), o = null, l = null);
|
|
4170
|
+
}), te(() => n.hidden, (a, r) => {
|
|
4171
|
+
r && !a && l && l();
|
|
4172
|
+
}), (a, r) => (u(), _(j(e.element), {
|
|
4173
|
+
"data-grid-init": s.value,
|
|
4173
4174
|
ref_key: "rootElement",
|
|
4174
4175
|
ref: t
|
|
4175
4176
|
}, {
|
|
4176
4177
|
default: $(() => [
|
|
4177
|
-
g(
|
|
4178
|
+
g(a.$slots, "default")
|
|
4178
4179
|
]),
|
|
4179
4180
|
_: 3
|
|
4180
|
-
},
|
|
4181
|
+
}, 8, ["data-grid-init"]));
|
|
4181
4182
|
}
|
|
4182
4183
|
}, ja = {
|
|
4183
4184
|
name: "UluTitleRail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluDataGrid.vue.d.ts","sourceRoot":"","sources":["../../../../lib/components/layout/UluDataGrid.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UluDataGrid.vue.d.ts","sourceRoot":"","sources":["../../../../lib/components/layout/UluDataGrid.vue"],"names":[],"mappings":"wBAqLqB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;;qBAEpD,CAAC,EAAE,CAAC;;;AARzB;YAGmB,OAAO,CAAC,OAAO,KAAK,CAAC;;;2OAErC;;;;AAnGD;;;EAaG"}
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
-->
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<component
|
|
19
|
+
<component
|
|
20
|
+
:is="element"
|
|
21
|
+
:data-grid-init="initialized"
|
|
22
|
+
ref="rootElement"
|
|
23
|
+
>
|
|
20
24
|
<slot />
|
|
21
25
|
</component>
|
|
22
26
|
</template>
|
|
@@ -42,12 +46,14 @@
|
|
|
42
46
|
});
|
|
43
47
|
|
|
44
48
|
const rootElement = ref(null); // Ref for the template root element
|
|
49
|
+
const initialized = ref(null);
|
|
45
50
|
let setThisPositionClasses = null; // To store the setPositionClasses function
|
|
46
51
|
let resizeHandler = null; // To store the debounced resize handler
|
|
47
52
|
|
|
48
53
|
onMounted(async () => {
|
|
49
54
|
setThisPositionClasses = () => setPositionClasses(rootElement.value);
|
|
50
55
|
setThisPositionClasses(); // Initial call
|
|
56
|
+
initialized.value = true;
|
|
51
57
|
resizeHandler = debounce(setThisPositionClasses, 200, false); // `this` context is not needed in setup
|
|
52
58
|
window.addEventListener("resize", resizeHandler);
|
|
53
59
|
});
|