@valtimo/plugin 13.44.0 → 13.45.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/fesm2022/valtimo-plugin.mjs +13 -3
- package/fesm2022/valtimo-plugin.mjs.map +1 -1
- package/lib/plugins/verzoek/components/verzoek-configuration/verzoek-configuration.component.d.ts.map +1 -1
- package/lib/services/plugin-management.service.d.ts +1 -0
- package/lib/services/plugin-management.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -255,7 +255,7 @@ class PluginTranslationService {
|
|
|
255
255
|
getTranslation(pluginSpecifications, pluginDefinitionKey, translateKey) {
|
|
256
256
|
const currentLang = this.translateService.currentLang;
|
|
257
257
|
const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginDefinitionKey);
|
|
258
|
-
const translation = pluginSpecification?.pluginTranslations[currentLang][translateKey];
|
|
258
|
+
const translation = pluginSpecification?.pluginTranslations?.[currentLang]?.[translateKey];
|
|
259
259
|
return translation || `${pluginDefinitionKey}.${translateKey}`;
|
|
260
260
|
}
|
|
261
261
|
getTranslationFromPluginActionKey(pluginActionKey) {
|
|
@@ -322,6 +322,9 @@ class PluginManagementService {
|
|
|
322
322
|
getAllPluginConfigurations() {
|
|
323
323
|
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/plugin/configuration`);
|
|
324
324
|
}
|
|
325
|
+
getPluginConfiguration(configurationId) {
|
|
326
|
+
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/plugin/configuration/${configurationId}`);
|
|
327
|
+
}
|
|
325
328
|
getPluginConfigurationsByPluginDefinitionKey(pluginDefinitionKey) {
|
|
326
329
|
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/plugin/configuration?pluginDefinitionKey=${pluginDefinitionKey}`);
|
|
327
330
|
}
|
|
@@ -9775,6 +9778,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
9775
9778
|
* See the License for the specific language governing permissions and
|
|
9776
9779
|
* limitations under the License.
|
|
9777
9780
|
*/
|
|
9781
|
+
const ALL_ITEMS_PAGE_SIZE = 100000;
|
|
9778
9782
|
class VerzoekConfigurationComponent {
|
|
9779
9783
|
getSelectedCaseDefinitionKeyForIndex(index) {
|
|
9780
9784
|
return this.formValue$.pipe(map$1(formValue => Array.isArray(formValue.verzoekProperties) &&
|
|
@@ -9813,7 +9817,7 @@ class VerzoekConfigurationComponent {
|
|
|
9813
9817
|
text: processDefinition.name ?? `<${processDefinition.key}>`,
|
|
9814
9818
|
}))));
|
|
9815
9819
|
this.caseSelectItems$ = this.verzoekPluginService
|
|
9816
|
-
.getCaseDefinitions({ active: true })
|
|
9820
|
+
.getCaseDefinitions({ active: true, size: ALL_ITEMS_PAGE_SIZE })
|
|
9817
9821
|
.pipe(map$1(caseDefinitions => caseDefinitions.content.map(caseDefinition => ({
|
|
9818
9822
|
id: caseDefinition.caseDefinitionKey,
|
|
9819
9823
|
text: caseDefinition.caseDefinitionKey,
|
|
@@ -9857,7 +9861,13 @@ class VerzoekConfigurationComponent {
|
|
|
9857
9861
|
caseVersionTagSelectItemsObservables[uuid].caseDefinitionKey !== caseDefinitionKey) {
|
|
9858
9862
|
caseVersionTagSelectItemsObservables[uuid] = {
|
|
9859
9863
|
caseDefinitionKey,
|
|
9860
|
-
items: this.verzoekPluginService
|
|
9864
|
+
items: this.verzoekPluginService
|
|
9865
|
+
.getCaseDefinitions({
|
|
9866
|
+
caseDefinitionKey,
|
|
9867
|
+
allVersions: true,
|
|
9868
|
+
size: ALL_ITEMS_PAGE_SIZE,
|
|
9869
|
+
})
|
|
9870
|
+
.pipe(map$1(caseDefinitions => [{ text: 'Active version', id: '' }].concat(caseDefinitions.content.map(caseDefinition => ({
|
|
9861
9871
|
text: caseDefinition.caseDefinitionVersionTag,
|
|
9862
9872
|
id: caseDefinition.caseDefinitionVersionTag,
|
|
9863
9873
|
}))))),
|