expedite-components 0.0.3 → 0.0.4

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.
@@ -19998,19 +19998,32 @@ const a2 = (e) => (en("data-v-adfc84e9"), e = e(), tn(), e), l2 = /* @__PURE__ *
19998
19998
  ]));
19999
19999
  }
20000
20000
  }, Jo = /* @__PURE__ */ Me(L2, [["__scopeId", "data-v-46273585"]]), P2 = {
20001
+ install(e) {
20002
+ e.config.globalProperties.$formatCurrency = (r, t = {}) => {
20003
+ const n = {}, i = t.locale || n.locale || "en-US", o = t.currency || n.currency || "USD";
20004
+ let c = r;
20005
+ return typeof r == "string" && (c = Number(r.replace(/[^0-9.-]/g, ""))), new Intl.NumberFormat(i, {
20006
+ style: "currency",
20007
+ currency: o,
20008
+ ...t
20009
+ }).format(Number.isFinite(c) ? c : 0);
20010
+ };
20011
+ }
20012
+ }, M2 = {
20001
20013
  ExpediteConfigurator: Xo,
20002
20014
  ExpediteGPT: Jo
20003
- }, q2 = {
20015
+ }, j2 = {
20004
20016
  install(e, r = {}) {
20005
- e.component("ExpediteConfigurator", Xo), e.component("ExpediteGPT", Jo);
20017
+ e.component("ExpediteConfigurator", Xo), e.component("ExpediteGPT", Jo), e.use(P2);
20006
20018
  },
20007
20019
  // Also export components for named imports
20008
- ...P2
20020
+ ...M2
20009
20021
  };
20010
20022
  export {
20011
- P2 as Components,
20023
+ M2 as Components,
20024
+ P2 as CurrencyFormatter,
20012
20025
  Xo as ExpediteConfigurator,
20013
20026
  Jo as ExpediteGPT,
20014
- q2 as default,
20027
+ j2 as default,
20015
20028
  nn as useRootStore
20016
20029
  };