@windward/integrations 0.5.0 → 0.6.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # Changelog
2
+
3
+ ### Release [0.6.0] created - 2024-07-30
4
+
@@ -0,0 +1,14 @@
1
+ image: atlassian/default-image:3
2
+
3
+ pipelines:
4
+ custom:
5
+ create-release:
6
+ import: infrastructure-automation:master:create-release
7
+ publish-release:
8
+ import: infrastructure-automation:master:publish-release
9
+
10
+ branches:
11
+ "release/*":
12
+ import: infrastructure-automation:master:auto-update
13
+ "hotfix/*":
14
+ import: infrastructure-automation:master:auto-update
@@ -94,7 +94,7 @@
94
94
  </v-col>
95
95
  <v-col cols="10">
96
96
  <v-progress-linear
97
- v-model="item.progress"
97
+ :value="item.progress"
98
98
  buffer-value="0"
99
99
  height="15"
100
100
  color="primary"
@@ -4,7 +4,7 @@
4
4
  v-model="block.metadata.config.title"
5
5
  outlined
6
6
  :counter="50"
7
- maxlength="50"
7
+ :rules="validation.shortInputRules"
8
8
  :label="
9
9
  $t(
10
10
  'windward.integrations.components.settings.external_integration.lti_consumer.title'
@@ -15,8 +15,8 @@
15
15
  <v-textarea
16
16
  v-model="block.metadata.config.instructions"
17
17
  outlined
18
+ :rules="validation.instructionRule"
18
19
  :counter="255"
19
- maxlength="255"
20
20
  :label="
21
21
  $t(
22
22
  'windward.integrations.components.settings.external_integration.lti_consumer.instructions'
@@ -125,6 +125,24 @@ export default {
125
125
  value: 'modal',
126
126
  },
127
127
  ],
128
+ validation: {
129
+ shortInputRules: [
130
+ (v) =>
131
+ v.length <= 50 ||
132
+ this.$t(
133
+ 'windward.integrations.shared.settings.errors.input_limitations',
134
+ [50]
135
+ ),
136
+ ],
137
+ instructionRule: [
138
+ (v) =>
139
+ v.length <= 255 ||
140
+ this.$t(
141
+ 'windward.integrations.shared.settings.errors.input_limitations',
142
+ [255]
143
+ ),
144
+ ],
145
+ },
128
146
  }
129
147
  },
130
148
  async fetch() {
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'LTI Consumer',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Must be less than {0} characters.'
7
+ },
5
8
  }
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'Consumidor LTI',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Debe tener menos de {0} caracteres.'
7
+ },
5
8
  }
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'LTI konsument',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Måste vara mindre än {0} tecken.',
7
+ },
5
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/integrations",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Windward UI Plugin Integrations for 3rd Party Systems",
5
5
  "main": "plugin.js",
6
6
  "scripts": {