@tstdl/base 0.87.11 → 0.87.13
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.
|
@@ -100,7 +100,9 @@ class ArrayList extends import_list.List {
|
|
|
100
100
|
}
|
|
101
101
|
_removeAt(index) {
|
|
102
102
|
if (index == 0) {
|
|
103
|
-
|
|
103
|
+
const value = this.backingArray.shift();
|
|
104
|
+
this.updateSize();
|
|
105
|
+
return value;
|
|
104
106
|
}
|
|
105
107
|
return this.removeManyAt(index, 1)[0];
|
|
106
108
|
}
|
package/package.json
CHANGED
|
@@ -38,11 +38,12 @@ var import_untracked_operator = require("../signals/untracked-operator.js");
|
|
|
38
38
|
var import_type_guards = require("../utils/type-guards.js");
|
|
39
39
|
var import_localization_service = require("./localization.service.js");
|
|
40
40
|
const missingLocalizationKeyText = "[MISSING LOCALIZATION KEY]";
|
|
41
|
-
function resolveDynamicText(text, localizationService
|
|
41
|
+
function resolveDynamicText(text, localizationService) {
|
|
42
|
+
const resolvedLocalizationService = localizationService ?? ((0, import_inject.isInInjectionContext)() ? (0, import_inject.inject)(import_localization_service.LocalizationService) : (0, import_core.getGlobalInjector)().resolve(import_localization_service.LocalizationService));
|
|
42
43
|
const localizableTextSignal = (0, import_api.isSignal)(text) ? text : (0, import_rxjs.isObservable)(text) ? (0, import_api.toSignal)(text.pipe((0, import_untracked_operator.runInUntracked)()), { initialValue: missingLocalizationKeyText }) : (0, import_api.computed)(() => text);
|
|
43
44
|
return (0, import_switch_map.switchMap)(() => {
|
|
44
45
|
const localizableText = localizableTextSignal();
|
|
45
|
-
return (0, import_type_guards.isString)(localizableText) ? (0, import_api.computed)(() => localizableText) :
|
|
46
|
+
return (0, import_type_guards.isString)(localizableText) ? (0, import_api.computed)(() => localizableText) : resolvedLocalizationService.localize(localizableText);
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
function resolveDynamicText$(text, localizationService) {
|