@profitliga/ui 1.2.51 → 1.2.52

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.
@@ -7,4 +7,5 @@ export * from './dayjs.util';
7
7
  export * from './uploadFile.util';
8
8
  export * from './internationalized.utils';
9
9
  export * from './breakpoints.util';
10
+ export * from './parseFileSize.util';
10
11
  export { priceFormat } from './priceFormat.util';
@@ -1,9 +1,9 @@
1
- import { toValue as x, unref as h, h as p } from "vue";
2
- import { p as S } from "../parseFileSize.util-D6rrCgGW.js";
3
- import { b as R } from "../parseFileSize.util-D6rrCgGW.js";
1
+ import { toValue as x, unref as S, h as p } from "vue";
2
+ import { p as h } from "../parseFileSize.util-D6rrCgGW.js";
3
+ import { b as R, f as j } from "../parseFileSize.util-D6rrCgGW.js";
4
4
  export * from "@internationalized/date";
5
- import { default as q } from "dayjs";
6
- function z() {
5
+ import { default as B } from "dayjs";
6
+ function k() {
7
7
  const e = /* @__PURE__ */ new Map();
8
8
  return {
9
9
  on(r, t) {
@@ -42,7 +42,7 @@ function z() {
42
42
  }
43
43
  const d = /* @__PURE__ */ new WeakMap();
44
44
  function g(e) {
45
- const r = h(e);
45
+ const r = S(e);
46
46
  return r?.$el ?? r;
47
47
  }
48
48
  function v(e) {
@@ -120,7 +120,7 @@ function A(e = {}) {
120
120
  const i = l.target;
121
121
  let o = [];
122
122
  if (i.files && i.files.length > 0 && (o = Array.from(i.files), e.maxFiles && o.length > e.maxFiles && (o = o.slice(0, e.maxFiles)), e.maxFileSize)) {
123
- const a = S(e.maxFileSize);
123
+ const a = h(e.maxFileSize);
124
124
  o = o.filter((f) => f.size <= a);
125
125
  }
126
126
  if (document.body.removeChild(t), e.returnType === "raw") {
@@ -150,12 +150,14 @@ const N = (e, r = !0) => {
150
150
  ]);
151
151
  };
152
152
  export {
153
- z as EventBus,
153
+ k as EventBus,
154
154
  R as breakpoints,
155
- q as dayjs,
155
+ B as dayjs,
156
+ j as formatFileSize,
156
157
  $ as formatPrice,
157
158
  P as onClickOutside,
158
159
  A as openFileDialog,
160
+ h as parseFileSize,
159
161
  M as parsePrice,
160
162
  N as priceFormat,
161
163
  C as sumPrices,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profitliga/ui",
3
- "version": "1.2.51",
3
+ "version": "1.2.52",
4
4
  "author": "Profit League<dev@pr-lg.ru>",
5
5
  "license": "MIT",
6
6
  "description": "Vue 3 UI component library with TypeScript and SCSS",