@dative-gpi/foundation-shared-components 1.0.89 → 1.0.91

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.
@@ -86,6 +86,7 @@
86
86
  :type="$props.type"
87
87
  :style="style"
88
88
  :class="$props.class"
89
+ :disabled="$props.load || !$props.editable"
89
90
  @click.stop="onClick"
90
91
  @mouseover="hover = true"
91
92
  @mouseleave="hover = false"
@@ -28,6 +28,7 @@
28
28
  :wrap="false"
29
29
  >
30
30
  <FSButton
31
+ v-if="$props.showCancelButton"
31
32
  :prependIcon="$props.cancelButtonPrependIcon"
32
33
  :appendIcon="$props.cancelButtonAppendIcon"
33
34
  :variant="$props.cancelButtonVariant"
@@ -36,6 +37,7 @@
36
37
  @click="() => $emit('click:cancelButton', false)"
37
38
  />
38
39
  <FSButton
40
+ v-if="$props.showSubmitButton"
39
41
  type="submit"
40
42
  :prependIcon="$props.submitButtonPrependIcon"
41
43
  :appendIcon="$props.submitButtonAppendIcon"
@@ -122,6 +124,11 @@ export default defineComponent({
122
124
  required: false,
123
125
  default: null
124
126
  },
127
+ showCancelButton: {
128
+ type: Boolean,
129
+ required: false,
130
+ default: true
131
+ },
125
132
  cancelButtonPrependIcon: {
126
133
  type: String as PropType<string | null>,
127
134
  required: false,
@@ -147,6 +154,11 @@ export default defineComponent({
147
154
  required: false,
148
155
  default: ColorEnum.Light
149
156
  },
157
+ showSubmitButton: {
158
+ type: Boolean,
159
+ required: false,
160
+ default: true
161
+ },
150
162
  submitButtonPrependIcon: {
151
163
  type: String as PropType<string | null>,
152
164
  required: false,
@@ -38,6 +38,7 @@
38
38
  :wrap="false"
39
39
  >
40
40
  <FSButton
41
+ v-if="$props.showCancelButton || currentStep > 1"
41
42
  :prependIcon="$props.cancelButtonPrependIcon"
42
43
  :appendIcon="$props.cancelButtonAppendIcon"
43
44
  :variant="$props.cancelButtonVariant"
@@ -46,6 +47,7 @@
46
47
  @click="onPrevious()"
47
48
  />
48
49
  <FSButton
50
+ v-if="$props.showSubmitButton || currentStep < $props.steps"
49
51
  type="submit"
50
52
  :prependIcon="$props.submitButtonPrependIcon"
51
53
  :appendIcon="$props.submitButtonAppendIcon"
@@ -107,6 +109,11 @@ export default defineComponent({
107
109
  type: Number,
108
110
  required: true
109
111
  },
112
+ showCancelButton: {
113
+ type: Boolean,
114
+ required: false,
115
+ default: true
116
+ },
110
117
  cancelButtonPrependIcon: {
111
118
  type: String as PropType<string | null>,
112
119
  required: false,
@@ -132,6 +139,11 @@ export default defineComponent({
132
139
  required: false,
133
140
  default: ColorEnum.Light
134
141
  },
142
+ showSubmitButton: {
143
+ type: Boolean,
144
+ required: false,
145
+ default: true
146
+ },
135
147
  submitButtonPrependIcon: {
136
148
  type: String as PropType<string | null>,
137
149
  required: false,
@@ -33,6 +33,7 @@
33
33
  :wrap="false"
34
34
  >
35
35
  <FSButton
36
+ v-if="$props.showCancelButton"
36
37
  :prependIcon="$props.cancelButtonPrependIcon"
37
38
  :appendIcon="$props.cancelButtonAppendIcon"
38
39
  :variant="$props.cancelButtonVariant"
@@ -41,6 +42,7 @@
41
42
  @click="$emit('update:modelValue', false)"
42
43
  />
43
44
  <FSButton
45
+ v-if="$props.showSubmitButton"
44
46
  :prependIcon="$props.submitButtonPrependIcon"
45
47
  :appendIcon="$props.submitButtonAppendIcon"
46
48
  :variant="$props.submitButtonVariant"
@@ -98,6 +100,11 @@ export default defineComponent({
98
100
  required: false,
99
101
  default: false
100
102
  },
103
+ showCancelButton: {
104
+ type: Boolean,
105
+ required: false,
106
+ default: true
107
+ },
101
108
  cancelButtonPrependIcon: {
102
109
  type: String as PropType<string | null>,
103
110
  required: false,
@@ -123,6 +130,11 @@ export default defineComponent({
123
130
  required: false,
124
131
  default: ColorEnum.Light
125
132
  },
133
+ showSubmitButton: {
134
+ type: Boolean,
135
+ required: false,
136
+ default: true
137
+ },
126
138
  submitButtonPrependIcon: {
127
139
  type: String as PropType<string | null>,
128
140
  required: false,
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <v-window
3
- ref="windowRoot"
4
3
  class="fs-window"
5
4
  :touch="false"
6
5
  :style="style"
@@ -60,12 +59,14 @@ export default defineComponent({
60
59
  const { slots, getChildren } = useSlots();
61
60
 
62
61
  delete slots.default;
63
-
64
- const windowRoot = ref<HTMLElement | null>(null);
62
+
63
+ const showOverflow = ref(true);
64
+ const overflowTimeout = ref<NodeJS.Timeout | null>(null);
65
65
 
66
66
  const style = computed((): StyleValue => ({
67
- "--fs-window-width" : sizeToVar(props.width),
68
- "--fs-window-height" : sizeToVar(props.height)
67
+ "--fs-window-overflow": showOverflow.value ? "visible" : "hidden",
68
+ "--fs-window-height" : sizeToVar(props.height),
69
+ "--fs-window-width" : sizeToVar(props.width)
69
70
  }));
70
71
 
71
72
  const value = (component: VNode, index: number): any => {
@@ -74,17 +75,16 @@ export default defineComponent({
74
75
 
75
76
  // Hide horizontal overflow when switching windows, otherwise let it visible for the FSFadeOut scrollbar
76
77
  watch(() => props.modelValue, (): void => {
77
- if (windowRoot.value == null) {
78
- return;
78
+ showOverflow.value = false;
79
+ if (overflowTimeout.value) {
80
+ clearTimeout(overflowTimeout.value);
79
81
  }
80
- (windowRoot.value as any).$el.style.setProperty("overflow", "hidden", "important");
81
- setTimeout(() => {
82
- (windowRoot.value as any).$el.style.setProperty("overflow", "visible", "important");
83
- }, 1120);
82
+ overflowTimeout.value = setTimeout(() => {
83
+ showOverflow.value = true;
84
+ }, 560);
84
85
  });
85
86
 
86
87
  return {
87
- windowRoot,
88
88
  slots,
89
89
  style,
90
90
  getChildren,
@@ -1544,6 +1544,7 @@ export default defineComponent({
1544
1544
 
1545
1545
  watch(() => props.items, async () => {
1546
1546
  computeFilters();
1547
+ observeIntersection();
1547
1548
  if (innerPage.value !== 1) {
1548
1549
  const formerPage = innerPage.value;
1549
1550
  innerPage.value = 1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.89",
4
+ "version": "1.0.91",
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": "1.0.89",
14
- "@dative-gpi/foundation-shared-services": "1.0.89"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.91",
14
+ "@dative-gpi/foundation-shared-services": "1.0.91"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "9744715fd11929d7cd01e09aebe822283a6214e5"
38
+ "gitHead": "996da7085e717a1b1c0a9e58d6d3cc40b4aadb2b"
39
39
  }
@@ -1,7 +1,7 @@
1
1
  .fs-window {
2
+ overflow: var(--fs-window-overflow) !important;
2
3
  height: var(--fs-window-height);
3
4
  width: var(--fs-window-width);
4
- overflow: visible !important;
5
5
  }
6
6
 
7
7
  .fs-window-item {