@dative-gpi/foundation-shared-components 0.0.42 → 0.0.44

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.
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="fs-fade-out"
4
+ ref="fadeOutRef"
4
5
  :style="style"
5
6
  @scroll="onScroll"
6
7
  >
@@ -11,7 +12,7 @@
11
12
  </template>
12
13
 
13
14
  <script lang="ts">
14
- import { computed, defineComponent, PropType, ref } from "vue";
15
+ import { computed, defineComponent, onMounted, PropType, ref } from "vue";
15
16
 
16
17
  import { useColors } from "@dative-gpi/foundation-shared-components/composables";
17
18
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -45,8 +46,9 @@ export default defineComponent({
45
46
 
46
47
  const backgrounds = getColors(ColorEnum.Background);
47
48
 
49
+ const fadeOutRef = ref(null);
48
50
  const topMaskHeight = ref("0px");
49
- const bottomMaskHeight = ref(sizeToVar(props.maskHeight));
51
+ const bottomMaskHeight = ref("0px");
50
52
 
51
53
  const style = computed((): { [code: string]: string } & Partial<CSSStyleDeclaration> => {
52
54
  return {
@@ -120,7 +122,16 @@ export default defineComponent({
120
122
  }
121
123
  }
122
124
 
125
+ onMounted((): void => {
126
+ if (fadeOutRef.value) {
127
+ if (fadeOutRef.value.clientHeight < fadeOutRef.value.scrollHeight) {
128
+ bottomMaskHeight.value = sizeToVar(props.maskHeight);
129
+ }
130
+ }
131
+ });
132
+
123
133
  return {
134
+ fadeOutRef,
124
135
  style,
125
136
  onScroll
126
137
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "0.0.42",
4
+ "version": "0.0.44",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "0.0.42",
14
- "@dative-gpi/foundation-shared-services": "0.0.42",
13
+ "@dative-gpi/foundation-shared-domain": "0.0.44",
14
+ "@dative-gpi/foundation-shared-services": "0.0.44",
15
15
  "@fontsource/montserrat": "^5.0.16",
16
16
  "@lexical/clipboard": "^0.12.5",
17
17
  "@lexical/history": "^0.12.5",
@@ -32,5 +32,5 @@
32
32
  "sass": "^1.69.5",
33
33
  "sass-loader": "^13.3.2"
34
34
  },
35
- "gitHead": "b04bea74796441bbb7176bcdd7d1a23317faa2b8"
35
+ "gitHead": "485812f109093aa8e931f04fdcd1fd54f46f66fc"
36
36
  }