@dative-gpi/foundation-shared-components 0.0.161 → 0.0.162

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.
@@ -7,7 +7,7 @@
7
7
  v-bind="$attrs"
8
8
  >
9
9
  <template
10
- v-for="(_, name) in $slots"
10
+ v-for="(_, name) in slots"
11
11
  v-slot:[name]="slotData"
12
12
  >
13
13
  <slot
@@ -56,6 +56,8 @@ import { computed, defineComponent, PropType, ref, watch } from "vue";
56
56
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
57
57
  import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
58
58
 
59
+ import { useSlots } from "../../composables";
60
+
59
61
  import FSTextField from "./FSTextField.vue";
60
62
  import FSButton from "../FSButton.vue";
61
63
 
@@ -120,6 +122,10 @@ export default defineComponent({
120
122
  emits: ["update:modelValue"],
121
123
  setup(props, { emit }) {
122
124
  const { $tr } = useTranslationsProvider();
125
+ const { slots } = useSlots();
126
+
127
+ delete slots["prepend-inner"];
128
+ delete slots.append;
123
129
 
124
130
  const innerValue = ref(props.modelValue);
125
131
 
@@ -148,6 +154,7 @@ export default defineComponent({
148
154
  buttonLabel,
149
155
  innerValue,
150
156
  ColorEnum,
157
+ slots,
151
158
  onSearch
152
159
  };
153
160
  }
@@ -15,7 +15,7 @@
15
15
  v-bind="$attrs"
16
16
  >
17
17
  <template
18
- v-for="(_, name) in $slots"
18
+ v-for="(_, name) in slots"
19
19
  v-slot:[name]="slotData"
20
20
  >
21
21
  <slot
@@ -26,17 +26,16 @@
26
26
  <template
27
27
  #append-inner
28
28
  >
29
+ <FSButton
30
+ variant="icon"
31
+ icon="mdi-tag-outline"
32
+ :editable="$props.editable"
33
+ :color="ColorEnum.Dark"
34
+ @click="onAdd"
35
+ />
29
36
  <slot
30
37
  name="append-inner"
31
- >
32
- <FSButton
33
- variant="icon"
34
- icon="mdi-tag-outline"
35
- :editable="$props.editable"
36
- :color="ColorEnum.Dark"
37
- @click="onAdd"
38
- />
39
- </slot>
38
+ />
40
39
  </template>
41
40
  </FSTextField>
42
41
  <FSTagGroup
@@ -52,8 +51,8 @@
52
51
  <script lang="ts">
53
52
  import { computed, defineComponent, PropType, ref } from "vue";
54
53
 
54
+ import { useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
55
55
  import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
56
- import { useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
57
56
 
58
57
  import FSTextField from "./FSTextField.vue";
59
58
  import FSTagGroup from "../FSTagGroup.vue";
@@ -119,6 +118,9 @@ export default defineComponent({
119
118
  setup(props, { emit }) {
120
119
  const {validateOn, getMessages} = useRules();
121
120
  const { getColors } = useColors();
121
+ const { slots } = useSlots();
122
+
123
+ delete slots["append-inner"];
122
124
 
123
125
  const errors = getColors(ColorEnum.Error);
124
126
  const lights = getColors(ColorEnum.Light);
@@ -170,6 +172,7 @@ export default defineComponent({
170
172
  validateOn,
171
173
  ColorEnum,
172
174
  messages,
175
+ slots,
173
176
  style,
174
177
  onRemove,
175
178
  onAdd
@@ -6,7 +6,7 @@
6
6
  v-bind="$attrs"
7
7
  >
8
8
  <template
9
- v-for="(_, name) in $slots"
9
+ v-for="(_, name) in slots"
10
10
  v-slot:[name]="slotData"
11
11
  >
12
12
  <slot
@@ -89,7 +89,7 @@ import { computed, defineComponent, onMounted, PropType, ref } from "vue";
89
89
  import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
90
90
  import { useLanguages } from "@dative-gpi/foundation-shared-services/composables";
91
91
 
92
- import { useColors } from "../../composables";
92
+ import { useColors, useSlots } from "../../composables";
93
93
 
94
94
  import FSDialogSubmit from "../FSDialogSubmit.vue";
95
95
  import FSTextField from "./FSTextField.vue";
@@ -159,6 +159,9 @@ export default defineComponent({
159
159
  setup(props, { emit }) {
160
160
  const { getMany: getManyLanguages, fetching: fetchingLanguages, entities: languages } = useLanguages();
161
161
  const { getColors } = useColors();
162
+ const { slots } = useSlots();
163
+
164
+ delete slots.append;
162
165
 
163
166
  const innerTranslations = ref(props.translations);
164
167
  const dialog = ref(false);
@@ -225,6 +228,7 @@ export default defineComponent({
225
228
  ColorEnum,
226
229
  languages,
227
230
  dialog,
231
+ slots,
228
232
  style,
229
233
  getTranslation,
230
234
  setTranslation,
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.161",
4
+ "version": "0.0.162",
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.161",
14
- "@dative-gpi/foundation-shared-services": "0.0.161",
13
+ "@dative-gpi/foundation-shared-domain": "0.0.162",
14
+ "@dative-gpi/foundation-shared-services": "0.0.162",
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": "f6534cbfe0ebbaf134fd2734c7abd9ecad95fcc4"
35
+ "gitHead": "bc6eb7f88688792ee99ea10e71b4a53df55b464f"
36
36
  }