@dative-gpi/foundation-shared-components 0.0.178 → 0.0.180

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.
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <FSToggleSet
3
+ :values="positions"
4
+ :modelValue="$props.modelValue"
5
+ @update:modelValue="$emit('update:modelValue', $event)"
6
+ v-bind="$attrs"
7
+ >
8
+ <template
9
+ v-for="(_, name) in $slots"
10
+ v-slot:[name]="slotData"
11
+ >
12
+ <slot
13
+ :name="name"
14
+ v-bind="slotData"
15
+ />
16
+ </template>
17
+ </FSToggleSet>
18
+ </template>
19
+
20
+ <script lang="ts">
21
+ import { computed, defineComponent } from "vue";
22
+ import type { PropType } from "vue";
23
+
24
+ import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
25
+ import { Position } from "@dative-gpi/foundation-shared-domain/models";
26
+
27
+ export default defineComponent({
28
+ name: "FSToggleSetPosition",
29
+ props: {
30
+ modelValue: {
31
+ type: Number as PropType<Position>,
32
+ required: false,
33
+ default: Position.Abscissa
34
+ },
35
+ useNone: {
36
+ type: Boolean,
37
+ required: false,
38
+ default: false
39
+ }
40
+ },
41
+ emits: ["update:modelValue"],
42
+ setup(props) {
43
+ const { $tr } = useTranslationsProvider();
44
+
45
+ const positions = computed((): { id: Position; label: string }[] => {
46
+ const items = [
47
+ { id: Position.Abscissa, label: $tr("ui.position.abscissa", "Right") },
48
+ { id: Position.Ordinate, label: $tr("ui.position.ordinate", "Bottom") }
49
+ ];
50
+ if (props.useNone) {
51
+ items.unshift({ id: Position.None, label: $tr("ui.position.none", "None") });
52
+ }
53
+ return items;
54
+ });
55
+
56
+ return {
57
+ positions
58
+ };
59
+ }
60
+ });
61
+ </script>
@@ -51,7 +51,7 @@ export const useColors = () => {
51
51
  }
52
52
 
53
53
  if(color.darken(0.15).isLight()){
54
- return color.darken(0.6);
54
+ return color.darken(0.8);
55
55
  }
56
56
  return color.lighten(color.value() / 50);
57
57
  }
@@ -117,4 +117,4 @@ export const useColors = () => {
117
117
  getGradients,
118
118
  getBasePaletteColors
119
119
  };
120
- }
120
+ }
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.178",
4
+ "version": "0.0.180",
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.178",
14
- "@dative-gpi/foundation-shared-services": "0.0.178"
13
+ "@dative-gpi/foundation-shared-domain": "0.0.180",
14
+ "@dative-gpi/foundation-shared-services": "0.0.180"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -36,5 +36,5 @@
36
36
  "sass": "1.71.1",
37
37
  "sass-loader": "13.3.2"
38
38
  },
39
- "gitHead": "965b5f2c9bdb926c03d5a17f94991d2fc2621e51"
39
+ "gitHead": "c7c4eede33fbe20a0c69429865dc52d3a06925d7"
40
40
  }