@rotorjs/dashboard 0.5.0 → 0.5.2
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/dist/main.d.ts +1 -0
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -206,8 +206,9 @@ var p = class extends n {
|
|
|
206
206
|
getLocale(e) {
|
|
207
207
|
if (e?.locale) return e.locale;
|
|
208
208
|
if (this.#e?.locale) return this.#e.locale;
|
|
209
|
+
this.#e?.reducer?.addInterest(f(_));
|
|
209
210
|
let t = this.#e?.reducer?.engine.getFact(_)?.value;
|
|
210
|
-
return
|
|
211
|
+
return typeof t == "string" && t ? t : void 0;
|
|
211
212
|
}
|
|
212
213
|
getFormat(e) {
|
|
213
214
|
return new Intl.NumberFormat(this.getLocale(e));
|
|
@@ -236,4 +237,4 @@ function y(e, t) {
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
//#endregion
|
|
239
|
-
export { p as DashboardEngine, m as DashboardEventTarget, h as DashboardStateConsumer, g as DashboardStateReducer, v as NumberFormatter, f as dashboardFactInterest, _ as dashboardLocaleFact, d as dashboardVarInterest };
|
|
240
|
+
export { p as DashboardEngine, c as DashboardEnvironment, m as DashboardEventTarget, h as DashboardStateConsumer, g as DashboardStateReducer, u as FactEvent, v as NumberFormatter, l as VarEvent, f as dashboardFactInterest, _ as dashboardLocaleFact, d as dashboardVarInterest };
|