@dskripchenko/laravel-admin 1.21.4 → 1.22.0

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/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export { createAdminRouter, buildRoutesFromManifest, createAuthGuard, createTitl
45
45
  export type { AdminRouter, AdminRouterOptions, RouteComponentResolver, AdminRouteComponent, RouteMeta, AuthGuardOptions, TitleGuardOptions, } from './router';
46
46
  export { useMenuStore } from './stores/menu';
47
47
  export type { MenuItem, MenuGroup } from './stores/menu';
48
+ export { trSafe, useI18nStore, tRaw } from './stores/i18n';
48
49
  export { AdminShell, AdminTopBar, AdminSidebar, GlobalSearch, ThemeToggle, LocaleSwitcher, NotificationBell, UserMenu, } from './components/shell';
49
50
  export { LoginPage, LoginForm, TwoFactorForm } from './components/auth';
50
51
  export { ResourceIndexPage, ResourceFormPage, ResourceViewPage } from './components/resource';
package/dist/index.mjs CHANGED
@@ -2,8 +2,9 @@ import { h as Se, ref as A, computed as M, defineComponent as ne, openBlock as c
2
2
  import { defineStore as e1, createPinia as Bw } from "pinia";
3
3
  import { useRouter as Ze, useRoute as l1, createWebHistory as UI, createRouter as Rw } from "vue-router";
4
4
  import { UidIcon as ae, UidMenu as je, UidMenuItem as De, UidMenuSeparator as $w, UidAvatar as dI, UidSidebarItem as Tw, UidSidebar as Uw, UidSkeleton as Re, UidSidebarGroup as Ow, UidModal as Ew, UidSpinner as Zw, UidSidebarLayout as Ww, useToast as ec, provideLocale as Gw, en as Nw, ru as Xw, UidToastProvider as Kw, UidAlert as Ye, UidInput as Le, UidButton as oe, UidCard as we, UidCheckbox as OI, UidErrorState as sI, UidEmptyState as hI, UidTreeView as Jw, UidTable as Co, UidPagination as Yw, UidGrid as uI, UidStack as Qw, UidBadge as yI, UidSelect as S9, UidStat as ic, UidGauge as ex, UidFormField as Z2, UidTextarea as ax, UidNumberInput as tx, UidDatePicker as nx, usePopover as ox, UidTabs as EI, UidTabPanel as ZI, UidTab as lc, UidDescriptionList as cx, UidDescriptionItem as ix, UidDrawer as lx, UidStepper as rx, UidFileUpload as dx, UidProgress as sx } from "@dskripchenko/ui";
5
- import { t as v, u as W2 } from "./i18n-CoRTQbVV.js";
6
- import { t as hx, p as V9, u as Pe } from "./formState-DC25j4xe.js";
5
+ import { t as v, u as W2 } from "./i18n-CoD-_QDg.js";
6
+ import { a as yj } from "./i18n-CoD-_QDg.js";
7
+ import { t as hx, p as V9, u as Pe } from "./formState-DeRZBwWH.js";
7
8
  import ux from "axios";
8
9
  import { DskWysiwyg as yx } from "@dskripchenko/wysiwyg";
9
10
  import "@dskripchenko/wysiwyg/style.css";
@@ -25188,7 +25189,6 @@ const AI = ne({
25188
25189
  ], 8, VS)) : H("", !0)
25189
25190
  ], 64))
25190
25191
  ])) : ze($.$slots, `cell-${K.key}`, {
25191
- key: 2,
25192
25192
  row: de(Q)
25193
25193
  }, () => [
25194
25194
  q(K.key) ? (c(), z(lw, {
@@ -25222,7 +25222,7 @@ const AI = ne({
25222
25222
  class: "admin-cell-truncate",
25223
25223
  title: ye(K.key, Q)
25224
25224
  }, y(ye(K.key, Q)), 9, BS))
25225
- ])
25225
+ ], void 0, 2)
25226
25226
  ])
25227
25227
  }))
25228
25228
  ]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
@@ -26305,9 +26305,9 @@ const oA = (a, t) => {
26305
26305
  }
26306
26306
  const i = io(d);
26307
26307
  d = 0;
26308
- for (const s of o) for (let r, p = 0; d !== r; ++p) {
26309
- r = d;
26310
- for (const m of s) p < m.length && (i[d++] = m[p]);
26308
+ for (const s of o) for (let r = 0, p = -1; p < d; ++r) {
26309
+ p = d;
26310
+ for (const m of s) r < m.length && (i[d++] = m[r]);
26311
26311
  }
26312
26312
  return i;
26313
26313
  }, kw = (a, t, o) => {
@@ -26350,9 +26350,9 @@ const oA = (a, t) => {
26350
26350
  for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
26351
26351
  }, dA = ({ size: a, K: t }, o = 0, l = 0) => {
26352
26352
  for (let d = 0; d < a; ++d) {
26353
- for (let i = 0; i < 2; ++i) for (let s, r = 0, p = 0, m = 0; r < a; ++r) {
26353
+ for (let i = 0; i < 2; ++i) for (let s, r = 0, p = 0, m = 2; r < a; ++r) {
26354
26354
  const k = 1 & t[i ? d * a + r : r * a + d];
26355
- l += k, p = (p >> 1 | 2098176) & (3047517 ^ k - 1), 2049 & p && (o += 40), k !== s && (m = 0), s = k, o += ++m === 5 ? 3 : m > 5;
26355
+ l += k, p = (p >> 1 | 2098176) & (3047517 ^ k - 1), 2049 & p && (o += 40), k ^ m && (s = 0), m = k, o += ++s === 5 ? 3 : s > 5;
26356
26356
  }
26357
26357
  if (d) for (let i = a + d, s = 5 * t[d - 1] ^ t[d]; i < a * a; i += a) {
26358
26358
  const r = 5 * t[i - 1] ^ t[i];
@@ -26867,17 +26867,14 @@ const sA = "http://www.w3.org/2000/svg", hA = (a, t, o, l = []) => [`<${t}`, ...
26867
26867
  ])
26868
26868
  ]),
26869
26869
  _: 3
26870
- })) : ze(U.$slots, p.value, {
26871
- key: 2,
26872
- section: p.value
26873
- }, () => [
26870
+ })) : ze(U.$slots, p.value, { section: p.value }, () => [
26874
26871
  w(n(we), { padding: "md" }, {
26875
26872
  default: x(() => [
26876
26873
  u("p", tz, " Section «" + y(p.value) + "» не реализована библиотекой — host-проект подключает её через slot " + y(p.value) + ". ", 1)
26877
26874
  ]),
26878
26875
  _: 1
26879
26876
  })
26880
- ])
26877
+ ], void 0, 2)
26881
26878
  ])
26882
26879
  ])
26883
26880
  ]));
@@ -31090,12 +31087,15 @@ export {
31090
31087
  Nb as registerWidget,
31091
31088
  GF as registerWidgets,
31092
31089
  GI as setAdminClient,
31090
+ yj as tRaw,
31093
31091
  LI as toApiError,
31092
+ v as trSafe,
31094
31093
  hx as tryUseFormState,
31095
31094
  N2 as tryUseRecord,
31096
31095
  Qe as useAuthStore,
31097
31096
  B9 as useBrand,
31098
31097
  Pe as useFormState,
31098
+ W2 as useI18nStore,
31099
31099
  co as useLocaleStore,
31100
31100
  Ee as useManifestStore,
31101
31101
  j9 as useMenuStore,