@ulu/frontend-vue 0.1.3-beta.11 → 0.1.3-beta.13

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.
@@ -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 s = null, l = null;
4164
+ const n = e, t = O(null), s = O(null);
4165
+ let l = null, o = null;
4166
4166
  return Be(async () => {
4167
- s = () => al(t.value), s(), l = Kt(s, 200, !1), window.addEventListener("resize", l);
4167
+ l = () => al(t.value), l(), s.value = !0, o = Kt(l, 200, !1), window.addEventListener("resize", o);
4168
4168
  }), bt(() => {
4169
- l && (window.removeEventListener("resize", l), l = null, s = null);
4170
- }), te(() => n.hidden, (o, a) => {
4171
- a && !o && s && s();
4172
- }), (o, a) => (u(), _(j(e.element), {
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(o.$slots, "default")
4178
+ g(a.$slots, "default")
4178
4179
  ]),
4179
4180
  _: 3
4180
- }, 512));
4181
+ }, 8, ["data-grid-init"]));
4181
4182
  }
4182
4183
  }, ja = {
4183
4184
  name: "UluTitleRail",
@@ -6370,7 +6371,7 @@ const cm = {
6370
6371
  return (c, i) => k(t) && k(t).length ? (u(), _(j(e.element), {
6371
6372
  key: 0,
6372
6373
  class: "scroll-anchors__nav scroll-anchors__nav--animated scroll-anchors-nav-animated",
6373
- style: G({ "--rail-width": `${e.railWidth}px` })
6374
+ style: G({ "--ulu-sa-nav-rail-width": `${e.railWidth}px` })
6374
6375
  }, {
6375
6376
  default: $(() => [
6376
6377
  h("ul", ni, [
@@ -1 +1 @@
1
- {"version":3,"file":"UluDataGrid.vue.d.ts","sourceRoot":"","sources":["../../../../lib/components/layout/UluDataGrid.vue"],"names":[],"mappings":"wBA0KqB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;;qBAEpD,CAAC,EAAE,CAAC;;;AARzB;YAGmB,OAAO,CAAC,OAAO,KAAK,CAAC;;;2OAErC;;;;AA9FD;;;EAaG"}
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 :is="element" ref="rootElement">
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
  });
@@ -3,7 +3,7 @@
3
3
  v-if="sections && sections.length"
4
4
  :is="element"
5
5
  class="scroll-anchors__nav scroll-anchors__nav--animated scroll-anchors-nav-animated"
6
- :style="{ '--rail-width': `${railWidth}px` }"
6
+ :style="{ '--ulu-sa-nav-rail-width': `${ railWidth }px` }"
7
7
  >
8
8
  <ul class="scroll-anchors-nav-animated__rail">
9
9
  <li
@@ -8,6 +8,7 @@
8
8
 
9
9
  @use "@ulu/frontend/scss/selector";
10
10
  @use "@ulu/frontend/scss/utils";
11
+ @use "@ulu/frontend/scss/color";
11
12
 
12
13
  // Used for function fallback
13
14
  $-fallbacks: () !default;
@@ -48,14 +49,14 @@ $config: (
48
49
  position: relative;
49
50
  }
50
51
  #{ $prefix }__rail {
51
- border-left: var(--rail-width, 3px) solid get("rail-border-color");
52
+ border-left: var(--ulu-sa-nav-rail-width, 3px) solid color.get(get("rail-border-color"));
52
53
  padding-left: get("rail-padding");
53
54
  }
54
55
  #{ $prefix }__indicator {
55
56
  position: absolute;
56
57
  top: 0;
57
58
  left: 0;
58
- background-color: get("indicator-color");
59
+ background-color: color.get(get("indicator-color"));
59
60
  clip-path: get("indicator-clip-path");
60
61
  }
61
62
  #{ $prefix }__indicator--can-transition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.1.3-beta.11",
3
+ "version": "0.1.3-beta.13",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [