@dative-gpi/foundation-shared-components 1.0.188 → 1.0.189

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.
@@ -30,18 +30,31 @@ export default defineComponent({
30
30
  label : {
31
31
  type: String,
32
32
  required: false
33
- }
33
+ },
34
+ allowedAggregation: {
35
+ type: Array as PropType<AggregationType[]>,
36
+ required: false,
37
+ default: null
38
+ },
34
39
  },
35
40
  emits: ['update:modelValue'],
36
- setup() {
41
+ setup(props) {
37
42
 
38
43
  const aggregationTypeItems = computed(()=>{
44
+ if (props.allowedAggregation != null) {
45
+ return props.allowedAggregation.map((f)=>{
46
+ return {
47
+ id: f,
48
+ label: aggregationTypeLabel(f)
49
+ }
50
+ })
51
+ }
39
52
  return getEnumEntries(AggregationType).filter(f=>f.value != AggregationType.None).map((f)=>{
40
53
  return {
41
54
  id: f.value,
42
55
  label: aggregationTypeLabel(f.value)
43
56
  }
44
- })
57
+ });
45
58
  });
46
59
 
47
60
  return {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
6
  "sideEffects": false,
7
- "version": "1.0.188",
7
+ "version": "1.0.189",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,8 +13,8 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-shared-domain": "1.0.188",
17
- "@dative-gpi/foundation-shared-services": "1.0.188"
16
+ "@dative-gpi/foundation-shared-domain": "1.0.189",
17
+ "@dative-gpi/foundation-shared-services": "1.0.189"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -38,5 +38,5 @@
38
38
  "sass": "1.71.1",
39
39
  "sass-loader": "13.3.2"
40
40
  },
41
- "gitHead": "5d77493228261fb2a57c5a2e233152715b9322e3"
41
+ "gitHead": "d8aba8b5dcb22f199fd7402816743f462d698299"
42
42
  }