@v1nt1248/3nclient-lib 0.0.36 → 0.0.37

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.
@@ -11,3 +11,4 @@ export declare function html2text(html: string): string;
11
11
  * Else Date returns as a string 'YYYY-MM-DD'
12
12
  */
13
13
  export declare function prepareDateAsSting(ts: number): string;
14
+ export declare function capitalize(text: string): string;
package/dist/ui-3n-lib.js CHANGED
@@ -4851,6 +4851,9 @@ function hk(B) {
4851
4851
  const g = oo(), I = oo(B);
4852
4852
  return g.isSame(I, "day") ? I.format("HH:mm") : g.isBefore(I.add(3, "day")) ? I.fromNow() : I.format("YYYY-MM-DD");
4853
4853
  }
4854
+ function lk(B) {
4855
+ return `${B[0].toLocaleUpperCase()}${B.slice(1)}`;
4856
+ }
4854
4857
  var Qi = void 0, ay = function(B) {
4855
4858
  return Qi || (Qi = new Promise(function(g, I) {
4856
4859
  var C = typeof B < "u" ? B : {}, E = C.onAbort;
@@ -6955,7 +6958,7 @@ Object.freeze(xa);
6955
6958
  function uy(B) {
6956
6959
  return B.replace(/[A-Z]/g, (g) => `_${g.toLowerCase()}`);
6957
6960
  }
6958
- const cy = Symbol(), lk = {
6961
+ const cy = Symbol(), yk = {
6959
6962
  install: (B, g) => {
6960
6963
  const { lang: I, messages: C } = g, E = Object.keys(C) || [], e = (n, u) => {
6961
6964
  let w = C[B.config.globalProperties.$locale][n];
@@ -8386,7 +8389,7 @@ const nF = {
8386
8389
  "check-box": IR,
8387
8390
  "check-box-checked": QR,
8388
8391
  "check-box-inderterminate": BR
8389
- }, yk = {
8392
+ }, Fk = {
8390
8393
  install: () => {
8391
8394
  Object.keys(T0).forEach((B) => {
8392
8395
  Ta(B, T0[B]);
@@ -8558,7 +8561,7 @@ const Yg = (B, g) => {
8558
8561
  ], 10, iR));
8559
8562
  }
8560
8563
  });
8561
- const tR = /* @__PURE__ */ Yg(oR, [["__scopeId", "data-v-436fa887"]]), sR = Symbol(), Fk = {
8564
+ const tR = /* @__PURE__ */ Yg(oR, [["__scopeId", "data-v-436fa887"]]), sR = Symbol(), Rk = {
8562
8565
  install: (B) => {
8563
8566
  const g = (I) => {
8564
8567
  const C = document.createElement("div"), E = !I.teleport || I.teleport === "body" ? document.body : document.querySelector(I.teleport), e = I.duration ?? 1500;
@@ -8615,7 +8618,7 @@ const LI = aR(), O0 = {
8615
8618
  off: LI.off.bind(LI),
8616
8619
  emit: LI.emit.bind(LI),
8617
8620
  clear: LI.all.clear.bind(LI)
8618
- }, DR = Symbol(), Rk = {
8621
+ }, DR = Symbol(), Gk = {
8619
8622
  install: (B) => {
8620
8623
  B.config.globalProperties.$emitter = O0, B.provide(DR, { $emitter: O0 });
8621
8624
  }
@@ -8763,7 +8766,7 @@ const LI = aR(), O0 = {
8763
8766
  ])) : Qg("", !0);
8764
8767
  }
8765
8768
  });
8766
- const nR = Symbol(), Gk = {
8769
+ const nR = Symbol(), Uk = {
8767
8770
  install: (B) => {
8768
8771
  let g = {};
8769
8772
  const I = (C) => {
@@ -8807,7 +8810,7 @@ const nR = Symbol(), Gk = {
8807
8810
  B.config.globalProperties.$openDialog = I, B.provide(nR, { $openDialog: I });
8808
8811
  }
8809
8812
  };
8810
- function Uk(B) {
8813
+ function Nk(B) {
8811
8814
  const { app: g = {} } = B, { config: I = {} } = g, { globalProperties: C = {} } = I, { $locale: E, $changeLocale: e, $tr: a } = C;
8812
8815
  return { $i18n: {
8813
8816
  locale: E,
@@ -8815,15 +8818,15 @@ function Uk(B) {
8815
8818
  tr: a
8816
8819
  } };
8817
8820
  }
8818
- function Nk(B) {
8821
+ function fk(B) {
8819
8822
  const { app: g = {} } = B, { config: I = {} } = g, { globalProperties: C = {} } = I, { $createNotice: E } = C;
8820
8823
  return { $createNotice: E };
8821
8824
  }
8822
- function fk(B) {
8825
+ function Mk(B) {
8823
8826
  const { app: g = {} } = B, { config: I = {} } = g, { globalProperties: C = {} } = I, { $emitter: E } = C;
8824
8827
  return { $emitter: E };
8825
8828
  }
8826
- function Mk(B) {
8829
+ function Sk(B) {
8827
8830
  const { app: g = {} } = B, { config: I = {} } = g, { globalProperties: C = {} } = I, { $openDialog: E } = C;
8828
8831
  return { $openDialog: E };
8829
8832
  }
@@ -14076,7 +14079,7 @@ function ya(B, g) {
14076
14079
  }
14077
14080
  ) : g.value;
14078
14081
  }
14079
- const Ok = {
14082
+ const Zk = {
14080
14083
  mounted(B, g) {
14081
14084
  ya(B, g);
14082
14085
  },
@@ -14155,7 +14158,7 @@ const xN = {
14155
14158
  ], 2));
14156
14159
  }
14157
14160
  });
14158
- const Zk = /* @__PURE__ */ Yg(qN, [["__scopeId", "data-v-9724bd82"]]), rr = (B) => (Ja("data-v-0210fe5c"), B = B(), Ka(), B), VN = /* @__PURE__ */ rr(() => /* @__PURE__ */ qA("div", { class: "ui3n-drop-files__dropzone-border" }, null, -1)), TN = { class: "ui3n-drop-files__dropzone-title" }, ON = { class: "ui3n-drop-files__dropzone-icon" }, ZN = ["width", "height"], WN = /* @__PURE__ */ rr(() => /* @__PURE__ */ qA("path", {
14161
+ const Wk = /* @__PURE__ */ Yg(qN, [["__scopeId", "data-v-9724bd82"]]), rr = (B) => (Ja("data-v-0210fe5c"), B = B(), Ka(), B), VN = /* @__PURE__ */ rr(() => /* @__PURE__ */ qA("div", { class: "ui3n-drop-files__dropzone-border" }, null, -1)), TN = { class: "ui3n-drop-files__dropzone-title" }, ON = { class: "ui3n-drop-files__dropzone-icon" }, ZN = ["width", "height"], WN = /* @__PURE__ */ rr(() => /* @__PURE__ */ qA("path", {
14159
14162
  d: "M51 152C47.9333 152 45.3333 150.934 43.2 148.8C41.0667 146.667 40 144.067 40 141V119.8H46.2V141C46.2 142.2 46.7 143.3 47.7 144.3C48.7 145.3 49.8 145.8 51 145.8H141C142.2 145.8 143.3 145.3 144.3 144.3C145.3 143.3 145.8 142.2 145.8 141V119.8H152V141C152 144.067 150.933 146.667 148.8 148.8C146.667 150.934 144.067 152 141 152H51ZM93 122.4V49.2002L72.8 69.2002L68.4 65.0002L96 37.2002L123.6 65.0002L119.2 69.2002L99 49.2002V122.4H93Z",
14160
14163
  fill: "#212121"
14161
14164
  }, null, -1)), PN = [
@@ -14236,7 +14239,7 @@ const Zk = /* @__PURE__ */ Yg(qN, [["__scopeId", "data-v-9724bd82"]]), rr = (B)
14236
14239
  ], 544));
14237
14240
  }
14238
14241
  });
14239
- const Wk = /* @__PURE__ */ Yg(_N, [["__scopeId", "data-v-0210fe5c"]]), zN = /* @__PURE__ */ ng({
14242
+ const Pk = /* @__PURE__ */ Yg(_N, [["__scopeId", "data-v-0210fe5c"]]), zN = /* @__PURE__ */ ng({
14240
14243
  __name: "ui3n-emoji",
14241
14244
  props: {
14242
14245
  emoji: {},
@@ -14273,7 +14276,7 @@ const Wk = /* @__PURE__ */ Yg(_N, [["__scopeId", "data-v-0210fe5c"]]), zN = /* @
14273
14276
  }, Xo(n.readonly ? {} : { click: a }, !0)), wg(e.value && e.value.value), 17));
14274
14277
  }
14275
14278
  });
14276
- const Pk = /* @__PURE__ */ Yg(zN, [["__scopeId", "data-v-f39ee37a"]]), $N = {
14279
+ const jk = /* @__PURE__ */ Yg(zN, [["__scopeId", "data-v-f39ee37a"]]), $N = {
14277
14280
  key: 0,
14278
14281
  class: "ui3n-input__label"
14279
14282
  }, Af = ["value", "placeholder", "disabled"], gf = {
@@ -14375,7 +14378,7 @@ const Pk = /* @__PURE__ */ Yg(zN, [["__scopeId", "data-v-f39ee37a"]]), $N = {
14375
14378
  ], 2));
14376
14379
  }
14377
14380
  });
14378
- const jk = /* @__PURE__ */ Yg(If, [["__scopeId", "data-v-7a07d4ee"]]), Qf = {
14381
+ const Xk = /* @__PURE__ */ Yg(If, [["__scopeId", "data-v-7a07d4ee"]]), Qf = {
14379
14382
  key: 0,
14380
14383
  class: "ui3n-text__label"
14381
14384
  }, Bf = { class: "ui3n-text__body" }, Cf = ["value", "placeholder", "readonly", "rows", "max-rows", "disabled"], Ef = /* @__PURE__ */ ng({
@@ -14445,7 +14448,7 @@ const jk = /* @__PURE__ */ Yg(If, [["__scopeId", "data-v-7a07d4ee"]]), Qf = {
14445
14448
  ], 2));
14446
14449
  }
14447
14450
  });
14448
- const Xk = /* @__PURE__ */ Yg(Ef, [["__scopeId", "data-v-33487f04"]]), ef = /* @__PURE__ */ ng({
14451
+ const _k = /* @__PURE__ */ Yg(Ef, [["__scopeId", "data-v-33487f04"]]), ef = /* @__PURE__ */ ng({
14449
14452
  __name: "ui3n-checkbox",
14450
14453
  props: {
14451
14454
  modelValue: { type: [Boolean, String, Number], default: !1 },
@@ -14518,7 +14521,7 @@ const Xk = /* @__PURE__ */ Yg(Ef, [["__scopeId", "data-v-33487f04"]]), ef = /* @
14518
14521
  ], 2));
14519
14522
  }
14520
14523
  });
14521
- const _k = /* @__PURE__ */ Yg(ef, [["__scopeId", "data-v-d377a283"]]), ho = /* @__PURE__ */ ng({
14524
+ const zk = /* @__PURE__ */ Yg(ef, [["__scopeId", "data-v-d377a283"]]), ho = /* @__PURE__ */ ng({
14522
14525
  __name: "ui3n-table-sort-icon",
14523
14526
  props: {
14524
14527
  size: {},
@@ -14649,7 +14652,7 @@ const _k = /* @__PURE__ */ Yg(ef, [["__scopeId", "data-v-d377a283"]]), ho = /* @
14649
14652
  ]));
14650
14653
  }
14651
14654
  });
14652
- const zk = /* @__PURE__ */ Yg(lf, [["__scopeId", "data-v-5a78ec1c"]]), yf = ["onClick"], Fa = 400, Ff = /* @__PURE__ */ ng({
14655
+ const $k = /* @__PURE__ */ Yg(lf, [["__scopeId", "data-v-5a78ec1c"]]), yf = ["onClick"], Fa = 400, Ff = /* @__PURE__ */ ng({
14653
14656
  __name: "ui3n-menu",
14654
14657
  props: {
14655
14658
  offsetX: { default: 0 },
@@ -14711,7 +14714,7 @@ const zk = /* @__PURE__ */ Yg(lf, [["__scopeId", "data-v-5a78ec1c"]]), yf = ["on
14711
14714
  ], 512));
14712
14715
  }
14713
14716
  });
14714
- const $k = /* @__PURE__ */ Yg(Ff, [["__scopeId", "data-v-c9616aad"]]), Rf = {
14717
+ const Ad = /* @__PURE__ */ Yg(Ff, [["__scopeId", "data-v-c9616aad"]]), Rf = {
14715
14718
  ref: "listElement",
14716
14719
  class: "ui3n-list"
14717
14720
  }, Gf = {
@@ -14761,7 +14764,7 @@ const $k = /* @__PURE__ */ Yg(Ff, [["__scopeId", "data-v-c9616aad"]]), Rf = {
14761
14764
  ], 512));
14762
14765
  }
14763
14766
  });
14764
- const Ad = /* @__PURE__ */ Yg(ff, [["__scopeId", "data-v-9aff363c"]]), Mf = ["data-sid"], Sf = /* @__PURE__ */ ng({
14767
+ const gd = /* @__PURE__ */ Yg(ff, [["__scopeId", "data-v-9aff363c"]]), Mf = ["data-sid"], Sf = /* @__PURE__ */ ng({
14765
14768
  __name: "ui3n-virtual-scroll",
14766
14769
  props: {
14767
14770
  items: {},
@@ -14811,7 +14814,7 @@ const Ad = /* @__PURE__ */ Yg(ff, [["__scopeId", "data-v-9aff363c"]]), Mf = ["da
14811
14814
  ], 544));
14812
14815
  }
14813
14816
  });
14814
- const gd = /* @__PURE__ */ Yg(Sf, [["__scopeId", "data-v-6a998153"]]), Lf = /* @__PURE__ */ ng({
14817
+ const Id = /* @__PURE__ */ Yg(Sf, [["__scopeId", "data-v-6a998153"]]), Lf = /* @__PURE__ */ ng({
14815
14818
  __name: "ui3n-tabs",
14816
14819
  props: {
14817
14820
  modelValue: { default: 0 },
@@ -14864,7 +14867,7 @@ const gd = /* @__PURE__ */ Yg(Sf, [["__scopeId", "data-v-6a998153"]]), Lf = /* @
14864
14867
  ], 16));
14865
14868
  }
14866
14869
  });
14867
- const Id = /* @__PURE__ */ Yg(Lf, [["__scopeId", "data-v-ea3e9bad"]]);
14870
+ const Qd = /* @__PURE__ */ Yg(Lf, [["__scopeId", "data-v-ea3e9bad"]]);
14868
14871
  var kf = Array.isArray, ft = kf, df = typeof sA == "object" && sA && sA.Object === Object && sA, Jf = df, Kf = Jf, Yf = typeof self == "object" && self && self.Object === Object && self, pf = Kf || Yf || Function("return this")(), Mt = pf, Hf = Mt, bf = Hf.Symbol, St = bf, Ra = St, nr = Object.prototype, xf = nr.hasOwnProperty, mf = nr.toString, FC = Ra ? Ra.toStringTag : void 0;
14869
14872
  function vf(B) {
14870
14873
  var g = xf.call(B, FC), I = B[FC];
@@ -15246,51 +15249,52 @@ const da = /* @__PURE__ */ Yg(Ek, [["__scopeId", "data-v-ed52e72c"]]), ik = {
15246
15249
  }, null, 8, ["dot", "value", "color", "text-color"]));
15247
15250
  }
15248
15251
  });
15249
- const Qd = /* @__PURE__ */ Yg(ok, [["__scopeId", "data-v-40242fbe"]]);
15252
+ const Bd = /* @__PURE__ */ Yg(ok, [["__scopeId", "data-v-40242fbe"]]);
15250
15253
  export {
15251
15254
  nR as DIALOGS_KEY,
15252
15255
  cy as I18N_KEY,
15253
15256
  sR as NOTIFICATIONS_KEY,
15254
15257
  bC as SQLiteOn3NStorage,
15255
- Qd as Ui3nBadge,
15258
+ Bd as Ui3nBadge,
15256
15259
  FB as Ui3nButton,
15257
- _k as Ui3nCheckbox,
15258
- Zk as Ui3nChip,
15260
+ zk as Ui3nCheckbox,
15261
+ Wk as Ui3nChip,
15259
15262
  xN as Ui3nClickOutside,
15260
15263
  rR as Ui3nDialog,
15261
- Wk as Ui3nDropFiles,
15262
- Pk as Ui3nEmoji,
15263
- Ok as Ui3nHtml,
15264
+ Pk as Ui3nDropFiles,
15265
+ jk as Ui3nEmoji,
15266
+ Zk as Ui3nHtml,
15264
15267
  xC as Ui3nIcon,
15265
- jk as Ui3nInput,
15266
- Ad as Ui3nList,
15267
- $k as Ui3nMenu,
15268
+ Xk as Ui3nInput,
15269
+ gd as Ui3nList,
15270
+ Ad as Ui3nMenu,
15268
15271
  tR as Ui3nNotification,
15269
- zk as Ui3nTable,
15272
+ $k as Ui3nTable,
15270
15273
  ho as Ui3nTableSortIcon,
15271
- Id as Ui3nTabs,
15272
- Xk as Ui3nText,
15273
- gd as Ui3nVirtualScroll,
15274
+ Qd as Ui3nTabs,
15275
+ _k as Ui3nText,
15276
+ Id as Ui3nVirtualScroll,
15274
15277
  DR as VUEBUS_KEY,
15278
+ lk as capitalize,
15275
15279
  Ay as colorsMap,
15276
- Gk as dialogs,
15280
+ Uk as dialogs,
15277
15281
  S0 as emoticons,
15278
15282
  rk as getDeliveryErrors,
15279
15283
  uk as getElementColor,
15280
15284
  Ya as getRandomId,
15281
15285
  sy as hasSlotContent,
15282
15286
  wk as html2text,
15283
- lk as i18n,
15287
+ yk as i18n,
15284
15288
  ck as invertColor,
15285
15289
  Dk as mailReg,
15286
- Fk as notifications,
15290
+ Rk as notifications,
15287
15291
  Ey as patchTextareaMaxRowsSupport,
15288
15292
  hk as prepareDateAsSting,
15289
- Mk as storeDialogs,
15290
- Uk as storeI18n,
15291
- Nk as storeNotifications,
15292
- fk as storeVueBus,
15293
+ Sk as storeDialogs,
15294
+ Nk as storeI18n,
15295
+ fk as storeNotifications,
15296
+ Mk as storeVueBus,
15293
15297
  nk as transformFileToWeb3NFile,
15294
- yk as useIcons,
15295
- Rk as vueBus
15298
+ Fk as useIcons,
15299
+ Gk as vueBus
15296
15300
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.0.36",
5
+ "version": "0.0.37",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "private": false,
8
8
  "type": "module",