@yuuvis/client-core 2.3.14 → 2.3.16
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.
|
@@ -1547,7 +1547,12 @@ class SystemService {
|
|
|
1547
1547
|
return ce.has(ObjectTypeClassification.OBJECT_TYPE_ICON) ? ce.get(ObjectTypeClassification.OBJECT_TYPE_ICON).options[0] : null;
|
|
1548
1548
|
}
|
|
1549
1549
|
getLocalizedResource(key) {
|
|
1550
|
-
|
|
1550
|
+
try {
|
|
1551
|
+
return this.system.i18n[key];
|
|
1552
|
+
}
|
|
1553
|
+
catch (error) {
|
|
1554
|
+
return key;
|
|
1555
|
+
}
|
|
1551
1556
|
}
|
|
1552
1557
|
getLocalizedLabel(id) {
|
|
1553
1558
|
return this.getLocalizedResource(`${id}_label`);
|
|
@@ -2195,14 +2200,14 @@ var Direction;
|
|
|
2195
2200
|
Direction["RTL"] = "rtl";
|
|
2196
2201
|
})(Direction || (Direction = {}));
|
|
2197
2202
|
|
|
2203
|
+
const CUSTOM_EVENTS = new InjectionToken('CUSTOM_EVENTS', { factory: () => [] });
|
|
2204
|
+
const CUSTOM_EVENTS_TRUSTED_ORIGINS = new InjectionToken('CUSTOM_EVENTS_TRUSTED_ORIGINS', { factory: () => [] });
|
|
2205
|
+
|
|
2198
2206
|
/**
|
|
2199
2207
|
* Mandatory Custom event prefix for all custom YUV events
|
|
2200
2208
|
*/
|
|
2201
2209
|
const CUSTOM_YUV_EVENT_PREFIX = 'yuv.';
|
|
2202
2210
|
|
|
2203
|
-
const CUSTOM_EVENTS = new InjectionToken('CUSTOM_EVENTS', { factory: () => [] });
|
|
2204
|
-
const CUSTOM_EVENTS_TRUSTED_ORIGINS = new InjectionToken('CUSTOM_EVENTS_TRUSTED_ORIGINS', { factory: () => [] });
|
|
2205
|
-
|
|
2206
2211
|
/**
|
|
2207
2212
|
* Service for providing triggered events
|
|
2208
2213
|
*/
|