@krosoft/react 0.0.381 → 0.0.382
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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/core/cards/DashboardCard.js +18 -0
- package/dist/components/core/cards/KpiCard.js +36 -0
- package/dist/components/core/cards/KpiCards.js +29 -0
- package/dist/components/core/cards/MetricCard.js +63 -0
- package/dist/components/core/cards/SkeletonCard.js +13 -0
- package/dist/components/core/cards/SkeletonCards.js +11 -0
- package/dist/components/core/cards/index.js +7 -1
- package/dist/components/core/changelog/AppChangelog.js +123 -0
- package/dist/components/core/changelog/AppChangelogEntry.js +85 -0
- package/dist/components/core/changelog/AppChangelogNav.js +39 -0
- package/dist/components/core/changelog/AppChangelogTagFilter.js +39 -0
- package/dist/components/core/changelog/index.js +1 -1
- package/dist/components/core/charts/BarChartHorizontal.js +80 -0
- package/dist/components/core/charts/BarChartVertical.js +68 -0
- package/dist/components/core/charts/ChartCard.js +44 -0
- package/dist/components/core/charts/CircularGauge.js +58 -0
- package/dist/components/core/charts/LineChart.js +69 -0
- package/dist/components/core/charts/PieChart.js +55 -0
- package/dist/components/core/charts/chartColors.js +10 -0
- package/dist/components/core/charts/chartTooltip.helper.js +15 -0
- package/dist/components/core/charts/index.js +8 -1
- package/dist/components/core/dialogs/AboutDialog.js +59 -0
- package/dist/components/core/dialogs/AppDialog.js +81 -0
- package/dist/components/core/dialogs/ConfirmationDialog.js +42 -0
- package/dist/components/core/dialogs/FormDialog.js +105 -0
- package/dist/components/core/dialogs/index.js +7 -4
- package/dist/components/core/filters/ActiveFilters.js +69 -0
- package/dist/components/core/filters/AdvancedFilters.js +103 -0
- package/dist/components/core/filters/ConditionFilter.js +162 -0
- package/dist/components/core/filters/ConditionFilterGroup.js +44 -0
- package/dist/components/core/filters/FilterField.js +64 -0
- package/dist/components/core/filters/FilterPills.js +13 -0
- package/dist/components/core/filters/FilterPillsGroup.js +39 -0
- package/dist/components/core/filters/FiltersContainer.js +54 -0
- package/dist/components/core/filters/FiltersMobileDrawer.js +57 -0
- package/dist/components/core/filters/TableFilter.js +101 -0
- package/dist/components/core/filters/index.js +11 -645
- package/dist/{GenericForm-Dxd6k7l-.js → components/core/forms/GenericForm.js} +45 -43
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/icons/FlagFrIcon.js +28 -0
- package/dist/{icons-n0m_1w7z.js → components/core/icons/FlagGbIcon.js} +3 -26
- package/dist/components/core/icons/index.js +3 -1
- package/dist/components/core/index.js +71 -27
- package/dist/components/core/inputs/DatePicker.js +46 -0
- package/dist/components/core/inputs/DateRangePicker.js +92 -0
- package/dist/{inputs-CBojnClc.js → components/core/inputs/FileDropzone.js} +8 -37
- package/dist/{ImageInput-BeIOm3GY.js → components/core/inputs/ImageInput.js} +5 -5
- package/dist/components/core/inputs/MultiSelect.js +191 -0
- package/dist/components/core/inputs/RatingInput.js +36 -0
- package/dist/{SearchInput-IT_Rvthr.js → components/core/inputs/SearchInput.js} +4 -4
- package/dist/components/core/inputs/SingleSelect.js +198 -0
- package/dist/components/core/inputs/index.js +9 -6
- package/dist/components/core/inputs/select.helper.js +46 -0
- package/dist/{language-DY0EYabh.js → components/core/language/LanguageSelector.js} +13 -12
- package/dist/components/core/language/index.js +1 -1
- package/dist/{AppActions-8HjAaTQK.js → components/core/layouts/AppActions.js} +19 -19
- package/dist/components/core/layouts/AppPageHeader.js +44 -0
- package/dist/{AppSubTitle-DI62BaaB.js → components/core/layouts/AppSubTitle.js} +3 -3
- package/dist/{AppTitle-BXoTrXQc.js → components/core/layouts/AppTitle.js} +3 -3
- package/dist/components/core/layouts/KpiCardsLayout.js +8 -0
- package/dist/components/core/layouts/index.js +6 -50
- package/dist/components/core/markdown/AppMarkdown.js +134 -0
- package/dist/components/core/markdown/AppMarkdownHeading.js +45 -0
- package/dist/components/core/markdown/index.js +1 -1
- package/dist/components/core/navbar/GlobalSearch.js +128 -0
- package/dist/components/core/navbar/NotificationsBell.js +133 -0
- package/dist/components/core/navbar/Sidebar.js +99 -0
- package/dist/components/core/navbar/SidebarHeader.js +26 -0
- package/dist/components/core/navbar/SidebarNavItem.js +72 -0
- package/dist/components/core/navbar/Topbar.js +25 -0
- package/dist/components/core/navbar/index.js +7 -1
- package/dist/{ErrorAlert-cJnfBL8H.js → components/core/states/ErrorAlert.js} +5 -5
- package/dist/{states-CJ8xE_Nm.js → components/core/states/ErrorState.js} +4 -11
- package/dist/components/core/states/LoadingState.js +12 -0
- package/dist/components/core/states/index.js +3 -2
- package/dist/components/core/table/DataTable.js +108 -0
- package/dist/components/core/table/JsonTableOutput.js +75 -0
- package/dist/components/core/table/TableActions.js +75 -0
- package/dist/components/core/table/TableBody.js +130 -0
- package/dist/components/core/table/TableBulkActions.js +47 -0
- package/dist/components/core/table/TableHeader.js +103 -0
- package/dist/components/core/table/TablePagination.js +102 -0
- package/dist/components/core/table/TableSettings.js +117 -0
- package/dist/components/core/table/index.js +9 -709
- package/dist/components/core/tabs/AppTabContainer.js +17 -0
- package/dist/components/core/tabs/AppTabHeader.js +19 -0
- package/dist/components/core/tabs/AppTabs.js +56 -0
- package/dist/components/core/tabs/AppVerticalTabs.js +105 -0
- package/dist/components/core/tabs/index.js +5 -188
- package/dist/{theme-DSumNHLX.js → components/core/theme/ThemeSelector.js} +13 -12
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +117 -34
- package/dist/components/ui/accordion.js +34 -0
- package/dist/components/ui/alert-dialog.js +54 -0
- package/dist/{alert-REQGK9bR.js → components/ui/alert.js} +2 -2
- package/dist/components/ui/aspect-ratio.js +5 -0
- package/dist/components/ui/avatar.js +25 -0
- package/dist/components/ui/badge.js +22 -0
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/{tooltip-_geGvbS7.js → components/ui/button.js} +7 -17
- package/dist/components/ui/calendar.js +44 -0
- package/dist/components/ui/card.js +42 -0
- package/dist/components/ui/carousel.js +115 -0
- package/dist/{chart-wW-fwL3s.js → components/ui/chart.js} +51 -89
- package/dist/components/ui/checkbox.js +31 -0
- package/dist/components/ui/collapsible.js +5 -0
- package/dist/components/ui/command.js +84 -0
- package/dist/components/ui/context-menu.js +71 -0
- package/dist/components/ui/control.js +5 -0
- package/dist/components/ui/dialog.js +49 -0
- package/dist/components/ui/drawer.js +47 -0
- package/dist/components/ui/dropdown-menu.js +72 -0
- package/dist/components/ui/form.js +78 -0
- package/dist/components/ui/hover-card.js +15 -0
- package/dist/components/ui/index.js +49 -9
- package/dist/components/ui/input-otp.js +41 -0
- package/dist/components/ui/input.js +14 -0
- package/dist/components/ui/label.js +14 -0
- package/dist/components/ui/menubar.js +86 -0
- package/dist/components/ui/navigation-menu.js +58 -0
- package/dist/components/ui/pagination.js +62 -0
- package/dist/components/ui/popover.js +15 -0
- package/dist/components/ui/progress.js +17 -0
- package/dist/components/ui/radio-group.js +24 -0
- package/dist/components/ui/resizable.js +18 -0
- package/dist/components/ui/scroll-area.js +29 -0
- package/dist/{select-KWMg2_7Z.js → components/ui/select.js} +3 -3
- package/dist/components/ui/separator.js +15 -0
- package/dist/components/ui/sheet.js +58 -0
- package/dist/components/ui/simple-table.js +57 -0
- package/dist/{skeleton-D6Ga4BLw.js → components/ui/skeleton.js} +2 -2
- package/dist/components/ui/slider.js +17 -0
- package/dist/components/ui/sonner.js +23 -0
- package/dist/components/ui/switch.js +14 -0
- package/dist/components/ui/tabs.js +58 -0
- package/dist/components/ui/textarea.js +12 -0
- package/dist/components/ui/toast.js +53 -0
- package/dist/components/ui/toaster.js +22 -0
- package/dist/components/ui/toggle-group.js +37 -0
- package/dist/components/ui/toggle.js +34 -0
- package/dist/components/ui/tooltip.js +14 -0
- package/dist/{datatable-COQcYUrk.js → constants/datatable.js} +1 -1
- package/dist/constants/index.js +3 -5
- package/dist/constants/search.js +4 -0
- package/dist/contexts/index.js +3 -1
- package/dist/{sidebar.context-BahtU6hE.js → contexts/page.context.js} +2 -2
- package/dist/contexts/sidebar.context.js +5 -0
- package/dist/helpers/changelog.helper.js +69 -0
- package/dist/helpers/index.js +6 -166
- package/dist/{markdown.helper-YJE2H5KQ.js → helpers/markdown.helper.js} +1 -1
- package/dist/helpers/supabase.helper.js +41 -0
- package/dist/helpers/table.helper.js +56 -0
- package/dist/{tailwind.helper-CJaRYBmL.js → helpers/tailwind.helper.js} +1 -1
- package/dist/hooks/behavior/index.js +10 -1
- package/dist/hooks/behavior/useConfirmDeleteDialog.js +21 -0
- package/dist/hooks/behavior/useConfirmationDialog.js +23 -0
- package/dist/hooks/behavior/useDebounce.js +14 -0
- package/dist/hooks/behavior/useDebouncedValue.js +15 -0
- package/dist/hooks/behavior/useDialog.js +21 -0
- package/dist/hooks/behavior/usePage.js +10 -0
- package/dist/hooks/behavior/useSidebar.js +10 -0
- package/dist/hooks/behavior/useTable.js +83 -0
- package/dist/hooks/behavior/useUrlState.js +46 -0
- package/dist/hooks/index.js +20 -11
- package/dist/hooks/ui/index.js +11 -10
- package/dist/{useFixedColumns-Bo-Az3Hp.js → hooks/ui/useDataTable.js} +16 -52
- package/dist/{useDocumentTitle-VoQkict_.js → hooks/ui/useDocumentTitle.js} +2 -2
- package/dist/hooks/ui/useFixedColumns.js +38 -0
- package/dist/{useLanguage-DRnSb5H1.js → hooks/ui/useLanguage.js} +3 -3
- package/dist/{useMobile-pTQ8lWvt.js → hooks/ui/useMobile.js} +1 -1
- package/dist/{useNotifications-CyhTruIG.js → hooks/ui/useNotifications.js} +2 -2
- package/dist/{useScrollFade-D9kqJBDh.js → hooks/ui/useScrollFade.js} +1 -1
- package/dist/{ui-nQGnCss1.js → hooks/ui/useServerTable.js} +2 -2
- package/dist/{useTheme-DIZjiF5F.js → hooks/ui/useTheme.js} +3 -3
- package/dist/{useToast-UeDRLovh.js → hooks/ui/useToast.js} +1 -1
- package/dist/i18n/index.js +4 -1
- package/dist/i18n/krosoftLocales.js +13 -0
- package/dist/i18n/useDateFnsLocale.js +13 -0
- package/dist/i18n/useKrosoftTranslation.js +13 -0
- package/dist/locales/en.json.js +174 -0
- package/dist/locales/fr.json.js +174 -0
- package/dist/providers/SidebarProvider.js +42 -0
- package/dist/providers/index.js +1 -42
- package/dist/pwa/PwaUpdater.js +30 -0
- package/dist/pwa/index.js +3 -50
- package/dist/pwa/pwaUpdateToast.js +25 -0
- package/dist/seasonal/EffectSwitch.js +24 -0
- package/dist/seasonal/EmojiSnowfall.js +24 -0
- package/dist/seasonal/HalloweenEffect.js +17 -0
- package/dist/seasonal/SeasonalEffects.js +8 -0
- package/dist/seasonal/SeasonalEffectsSettings.js +35 -0
- package/dist/seasonal/SnowEffect.js +12 -0
- package/dist/seasonal/index.js +7 -120
- package/dist/seasonal/overlayStyle.js +12 -0
- package/dist/seasonal/seasons.js +7 -0
- package/dist/seasonal/useSeasonalEffects.js +20 -0
- package/dist/seasonal/useStoredToggle.js +21 -0
- package/dist/tailwind/index.js +7 -53
- package/dist/tokens/apply.js +16 -0
- package/dist/tokens/index.js +3 -38
- package/dist/tokens/radius.js +26 -0
- package/dist/types/index.js +0 -1
- package/dist/vendor/tailwindcss/lib/public/create-plugin.js +19 -0
- package/dist/vendor/tailwindcss/lib/util/createPlugin.js +30 -0
- package/dist/vendor/tailwindcss/plugin.js +10 -0
- package/package.json +3 -3
- package/dist/AppMarkdown-CAxm82x0.js +0 -171
- package/dist/MultiSelect-DPN046kI.js +0 -228
- package/dist/SingleSelect-DLY5WylQ.js +0 -313
- package/dist/behavior-B0BYivtN.js +0 -201
- package/dist/cards-DPzVebUM.js +0 -132
- package/dist/changelog-DyPFIscf.js +0 -257
- package/dist/charts-C7rKxkli.js +0 -342
- package/dist/dialogs-CG9Q7pqY.js +0 -269
- package/dist/i18n-BhLphJa3.js +0 -364
- package/dist/navbar-DD0V0pNE.js +0 -432
- package/dist/sheet-cWJO_wkT.js +0 -225
- package/dist/switch-DspImmo_.js +0 -24
- package/dist/ui-Fxy95kSJ.js +0 -1163
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useCallback as e,
|
|
1
|
+
import { useCallback as e, useMemo as t, useRef as n, useState as r } from "react";
|
|
2
2
|
//#region src/hooks/ui/useDataTable.ts
|
|
3
|
-
var
|
|
3
|
+
var i = 100, a = (e) => e.defaultVisible !== !1, ee = (e, t) => {
|
|
4
4
|
let n = new Map(t.map((e) => [e.key, e])), r = e.filter((e) => n.has(e)), i = new Set(r);
|
|
5
5
|
return t.forEach((e, n) => {
|
|
6
6
|
if (i.has(e.key)) return;
|
|
@@ -15,19 +15,19 @@ var a = 100, o = (e) => e.defaultVisible !== !1, ee = (e, t) => {
|
|
|
15
15
|
r.splice(a, 0, e.key), i.add(e.key);
|
|
16
16
|
}), r.map((e) => n.get(e)).filter((e) => e !== void 0);
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
let { totalRows: m, currentPage: ae, pageSize: h, onPageChange: g, onPageSizeChange: _, sortColumn: v, sortDirection: oe, onSortChange: y } = ie ?? {}, [se, ce] =
|
|
18
|
+
function o({ data: o, columns: s, rowKey: c, rowSelectable: l, pageSizeDefault: te, actions: u, bulkActions: d, columnVisibility: ne = !0, columnVisibilityState: f, onColumnVisibilityChange: re, columnVisibilityStorage: p, server: ie }) {
|
|
19
|
+
let { totalRows: m, currentPage: ae, pageSize: h, onPageChange: g, onPageSizeChange: _, sortColumn: v, sortDirection: oe, onSortChange: y } = ie ?? {}, [se, ce] = r(s.find((e) => e.sortable === !0)?.key ?? null), b = v === void 0 ? se : v, [le, ue] = r("asc"), x = oe ?? le, [de, S] = r([]), [C, fe] = r(() => p?.read() ?? {}), w = f ?? C, [T, pe] = r({}), [E, me] = r(null), [he, D] = r(1), O = ae ?? he, [ge, _e] = r(te), k = h ?? ge, ve = n(null), A = n(null), j = n(0), M = n(0), N = n(null), P = n(null), F = u !== void 0 && u.length > 0, I = d !== void 0 && d.length > 0, L = t(() => E === null ? s : ee(E, s), [E, s]), R = s.length > 0 ? s[0].key : void 0, z = t(() => {
|
|
20
20
|
let e = /* @__PURE__ */ new Set();
|
|
21
|
-
for (let t of s) (t.key === R || (w[t.key] ??
|
|
21
|
+
for (let t of s) (t.key === R || (w[t.key] ?? a(t))) && e.add(t.key);
|
|
22
22
|
return e;
|
|
23
23
|
}, [
|
|
24
24
|
s,
|
|
25
25
|
w,
|
|
26
26
|
R
|
|
27
|
-
]), B =
|
|
27
|
+
]), B = t(() => L.filter((e) => z.has(e.key)), [L, z]), V = t(() => s.reduce((e, t) => ({
|
|
28
28
|
...e,
|
|
29
|
-
[t.key]: T[t.key] ?? t.minWidth ??
|
|
30
|
-
}), {}), [s, T]), ye = B.length + +!!I + (F || ne ? 1 : 0), H = m ??
|
|
29
|
+
[t.key]: T[t.key] ?? t.minWidth ?? i
|
|
30
|
+
}), {}), [s, T]), ye = B.length + +!!I + (F || ne ? 1 : 0), H = m ?? o.length, U = Math.max(1, Math.ceil(H / k)), W = O > U ? U : O, G = H === 0 ? 0 : (W - 1) * k, K = m === void 0 ? Math.min(G + k, o.length) : Math.min(G + o.length, m), q = e((e) => {
|
|
31
31
|
g ? g(e) : D(e);
|
|
32
32
|
}, [g]), J = e((e) => {
|
|
33
33
|
_ ? _(e) : (_e(e), D(1));
|
|
@@ -71,7 +71,7 @@ function s({ data: t, columns: s, rowKey: c, rowSelectable: l, pageSizeDefault:
|
|
|
71
71
|
if (e.preventDefault(), N.current === null || N.current === t) return;
|
|
72
72
|
let n = L.map((e) => e.key), r = n.indexOf(N.current), i = n.indexOf(t);
|
|
73
73
|
r !== -1 && i !== -1 && (n.splice(r, 1), n.splice(i, 0, N.current), me(n), N.current = null, P.current = null);
|
|
74
|
-
}, Q =
|
|
74
|
+
}, Q = t(() => y === void 0 ? [...o].sort((e, t) => {
|
|
75
75
|
if (b === null) return 0;
|
|
76
76
|
let n = s.find((e) => e.key === b), r = n?.getSortValue === void 0 ? e[b] : n.getSortValue(e), i = n?.getSortValue === void 0 ? t[b] : n.getSortValue(t);
|
|
77
77
|
if (typeof r == "string" && typeof i == "string") {
|
|
@@ -79,13 +79,13 @@ function s({ data: t, columns: s, rowKey: c, rowSelectable: l, pageSizeDefault:
|
|
|
79
79
|
return x === "asc" ? e : -e;
|
|
80
80
|
}
|
|
81
81
|
return r === i ? 0 : r == null ? 1 : i == null ? -1 : r < i ? x === "asc" ? -1 : 1 : r > i ? x === "asc" ? 1 : -1 : 0;
|
|
82
|
-
}) :
|
|
83
|
-
|
|
82
|
+
}) : o, [
|
|
83
|
+
o,
|
|
84
84
|
b,
|
|
85
85
|
x,
|
|
86
86
|
s,
|
|
87
87
|
y
|
|
88
|
-
]), Ee =
|
|
88
|
+
]), Ee = t(() => m === void 0 ? Q.slice(G, K) : Q, [
|
|
89
89
|
Q,
|
|
90
90
|
G,
|
|
91
91
|
K,
|
|
@@ -123,7 +123,7 @@ function s({ data: t, columns: s, rowKey: c, rowSelectable: l, pageSizeDefault:
|
|
|
123
123
|
toggleColumnVisibility: (e) => {
|
|
124
124
|
let t = s.find((t) => t.key === e);
|
|
125
125
|
if (t === void 0 || e === R) return;
|
|
126
|
-
let n = w[e] ??
|
|
126
|
+
let n = w[e] ?? a(t);
|
|
127
127
|
$({
|
|
128
128
|
...w,
|
|
129
129
|
[e]: !n
|
|
@@ -143,47 +143,11 @@ function s({ data: t, columns: s, rowKey: c, rowSelectable: l, pageSizeDefault:
|
|
|
143
143
|
},
|
|
144
144
|
toggleSelectAll: () => {
|
|
145
145
|
S((e) => {
|
|
146
|
-
let
|
|
147
|
-
return
|
|
146
|
+
let t = l === void 0 ? o : o.filter(l), n = new Set(t.map(c)), r = e.filter((e) => !n.has(c(e)));
|
|
147
|
+
return t.length > 0 && t.every((t) => e.some((e) => c(e) === c(t))) ? r : [...r, ...t];
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
|
-
|
|
154
|
-
var c = (e, t) => {
|
|
155
|
-
let n = Object.keys(e);
|
|
156
|
-
return n.length === Object.keys(t).length && n.every((n) => {
|
|
157
|
-
let r = e[n], i = t[n];
|
|
158
|
-
return r.side === i?.side && r.offset === i.offset && r.isEdge === i.isEdge;
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
function l(e) {
|
|
162
|
-
let [n, r] = i({});
|
|
163
|
-
return t(() => {
|
|
164
|
-
let t = e.current;
|
|
165
|
-
if (!t) return;
|
|
166
|
-
let n = [], i = () => {
|
|
167
|
-
n = Array.from(t.querySelectorAll("thead th[data-fixed-side]"));
|
|
168
|
-
let e = {}, i = (t, n) => {
|
|
169
|
-
let r = 0;
|
|
170
|
-
t.forEach((i, a) => {
|
|
171
|
-
let o = i.dataset.columnKey;
|
|
172
|
-
o !== void 0 && (e[o] = {
|
|
173
|
-
side: n,
|
|
174
|
-
offset: r,
|
|
175
|
-
isEdge: a === t.length - 1
|
|
176
|
-
}, r += i.getBoundingClientRect().width);
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
i(n.filter((e) => e.dataset.fixedSide === "left"), "left"), i(n.filter((e) => e.dataset.fixedSide === "right").reverse(), "right"), r((t) => c(t, e) ? t : e);
|
|
180
|
-
};
|
|
181
|
-
i();
|
|
182
|
-
let a = typeof ResizeObserver > "u" ? null : new ResizeObserver(i);
|
|
183
|
-
return a?.observe(t), n.forEach((e) => a?.observe(e)), () => {
|
|
184
|
-
a?.disconnect();
|
|
185
|
-
};
|
|
186
|
-
}), n;
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
export { s as n, l as t };
|
|
153
|
+
export { o as useDataTable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../i18n/useKrosoftTranslation.js";
|
|
2
2
|
import { useEffect as t } from "react";
|
|
3
3
|
//#region src/hooks/ui/useDocumentTitle.ts
|
|
4
4
|
var n = (n, r, i) => {
|
|
@@ -16,4 +16,4 @@ var n = (n, r, i) => {
|
|
|
16
16
|
]);
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { n as
|
|
19
|
+
export { n as useDocumentTitle };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useLayoutEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/ui/useFixedColumns.ts
|
|
3
|
+
var n = (e, t) => {
|
|
4
|
+
let n = Object.keys(e);
|
|
5
|
+
return n.length === Object.keys(t).length && n.every((n) => {
|
|
6
|
+
let r = e[n], i = t[n];
|
|
7
|
+
return r.side === i?.side && r.offset === i.offset && r.isEdge === i.isEdge;
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
function r(r) {
|
|
11
|
+
let [i, a] = t({});
|
|
12
|
+
return e(() => {
|
|
13
|
+
let e = r.current;
|
|
14
|
+
if (!e) return;
|
|
15
|
+
let t = [], i = () => {
|
|
16
|
+
t = Array.from(e.querySelectorAll("thead th[data-fixed-side]"));
|
|
17
|
+
let r = {}, i = (e, t) => {
|
|
18
|
+
let n = 0;
|
|
19
|
+
e.forEach((i, a) => {
|
|
20
|
+
let o = i.dataset.columnKey;
|
|
21
|
+
o !== void 0 && (r[o] = {
|
|
22
|
+
side: t,
|
|
23
|
+
offset: n,
|
|
24
|
+
isEdge: a === e.length - 1
|
|
25
|
+
}, n += i.getBoundingClientRect().width);
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
i(t.filter((e) => e.dataset.fixedSide === "left"), "left"), i(t.filter((e) => e.dataset.fixedSide === "right").reverse(), "right"), a((e) => n(e, r) ? e : r);
|
|
29
|
+
};
|
|
30
|
+
i();
|
|
31
|
+
let o = typeof ResizeObserver > "u" ? null : new ResizeObserver(i);
|
|
32
|
+
return o?.observe(e), t.forEach((e) => o?.observe(e)), () => {
|
|
33
|
+
o?.disconnect();
|
|
34
|
+
};
|
|
35
|
+
}), i;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { r as useFixedColumns };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./useNotifications
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { useNotifications as t } from "./useNotifications.js";
|
|
3
3
|
import { useTranslation as n } from "react-i18next";
|
|
4
4
|
//#region src/hooks/ui/useLanguage.ts
|
|
5
5
|
function r(r) {
|
|
@@ -20,4 +20,4 @@ function r(r) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { r as
|
|
23
|
+
export { r as useLanguage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toast as e } from "./useToast.js";
|
|
2
2
|
//#region src/hooks/ui/useNotifications.ts
|
|
3
3
|
var t = () => ({
|
|
4
4
|
showSuccess: (t, n, r) => {
|
|
@@ -17,4 +17,4 @@ var t = () => ({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
|
-
export { t };
|
|
20
|
+
export { t as useNotifications };
|
|
@@ -24,4 +24,4 @@ function r(r) {
|
|
|
24
24
|
}), !i.start && !i.end ? {} : { maskImage: `linear-gradient(to right, transparent 0, #000 ${i.start ? n : "0px"}, #000 calc(100% - ${i.end ? n : "0px"}), transparent 100%)` };
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
export { r as
|
|
27
|
+
export { r as useScrollFade };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../../constants/search.js";
|
|
2
2
|
import { useCallback as e, useEffect as t, useState as n } from "react";
|
|
3
3
|
//#region src/hooks/ui/useServerTable.ts
|
|
4
4
|
function r(r, i = "nom", a = {}) {
|
|
@@ -36,4 +36,4 @@ function r(r, i = "nom", a = {}) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
export { r as
|
|
39
|
+
export { r as useServerTable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./useNotifications
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { useNotifications as t } from "./useNotifications.js";
|
|
3
3
|
import { useTheme as n } from "next-themes";
|
|
4
4
|
//#region src/hooks/ui/useTheme.ts
|
|
5
5
|
function r(r) {
|
|
@@ -22,4 +22,4 @@ function r(r) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export { r as
|
|
25
|
+
export { r as useTheme };
|
package/dist/i18n/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { KROSOFT_NAMESPACE as e, krosoftLocales as t, registerKrosoftLocales as n } from "./krosoftLocales.js";
|
|
2
|
+
import { dateFnsLocale as r, useDateFnsLocale as i } from "./useDateFnsLocale.js";
|
|
3
|
+
import { useKrosoftTranslation as a } from "./useKrosoftTranslation.js";
|
|
4
|
+
export { e as KROSOFT_NAMESPACE, r as dateFnsLocale, t as krosoftLocales, n as registerKrosoftLocales, i as useDateFnsLocale, a as useKrosoftTranslation };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../locales/en.json.js";
|
|
2
|
+
import t from "../locales/fr.json.js";
|
|
3
|
+
//#region src/i18n/krosoftLocales.ts
|
|
4
|
+
var n = "krosoft", r = {
|
|
5
|
+
fr: t,
|
|
6
|
+
en: e
|
|
7
|
+
}, i = (e, { overwrite: t = !1 } = {}) => {
|
|
8
|
+
typeof e.addResourceBundle == "function" && Object.entries(r).forEach(([r, i]) => {
|
|
9
|
+
e.addResourceBundle?.(r, n, i, !0, t);
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as KROSOFT_NAMESPACE, r as krosoftLocales, i as registerKrosoftLocales };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { KROSOFT_NAMESPACE as e } from "./krosoftLocales.js";
|
|
2
|
+
import { enGB as t, fr as n } from "date-fns/locale";
|
|
3
|
+
import { useTranslation as r } from "react-i18next";
|
|
4
|
+
//#region src/i18n/useDateFnsLocale.ts
|
|
5
|
+
var i = {
|
|
6
|
+
fr: n,
|
|
7
|
+
en: t
|
|
8
|
+
}, a = n, o = (e) => e === void 0 ? a : i[e.split("-")[0]] ?? a, s = () => {
|
|
9
|
+
let { i18n: t, ready: n } = r(e, { useSuspense: !1 });
|
|
10
|
+
return o(n ? t.resolvedLanguage ?? t.language : void 0);
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { o as dateFnsLocale, s as useDateFnsLocale };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../locales/fr.json.js";
|
|
2
|
+
import { KROSOFT_NAMESPACE as t } from "./krosoftLocales.js";
|
|
3
|
+
import { useTranslation as n } from "react-i18next";
|
|
4
|
+
//#region src/i18n/useKrosoftTranslation.ts
|
|
5
|
+
var r = (t) => {
|
|
6
|
+
let n = t.split(".").reduce((e, t) => typeof e == "object" && e ? e[t] : void 0, e);
|
|
7
|
+
return typeof n == "string" ? n : void 0;
|
|
8
|
+
}, i = (e, t) => t === void 0 ? e : e.replace(/\{\{(\w+)\}\}/g, (e, n) => n in t ? String(t[n]) : e), a = () => {
|
|
9
|
+
let { t: e, i18n: a, ready: o } = n(t, { useSuspense: !1 }), { t: s } = n(void 0, { useSuspense: !1 });
|
|
10
|
+
return { t: (t, n) => o && a.exists(t) ? s(t, n ?? {}) : o && a.exists(t, { ns: "krosoft" }) ? e(t, n ?? {}) : i(r(t) ?? t, n) };
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { a as useKrosoftTranslation };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
//#region src/locales/en.json
|
|
2
|
+
var e = {
|
|
3
|
+
cancel: "Cancel",
|
|
4
|
+
save: "Save",
|
|
5
|
+
saving: "Saving...",
|
|
6
|
+
edit: "Edit",
|
|
7
|
+
delete: "Delete",
|
|
8
|
+
deleting: "Deleting...",
|
|
9
|
+
clear: "Clear",
|
|
10
|
+
apply: "Apply"
|
|
11
|
+
}, t = {
|
|
12
|
+
loading: "Loading...",
|
|
13
|
+
error: "Something went wrong.",
|
|
14
|
+
errorPrefix: "Error:",
|
|
15
|
+
errorTitle: "Error",
|
|
16
|
+
noResult: "No result",
|
|
17
|
+
noResultDot: "No result.",
|
|
18
|
+
noData: "No data available",
|
|
19
|
+
underConstruction: "Section under development",
|
|
20
|
+
comingSoon: "This feature will be available soon"
|
|
21
|
+
}, n = {
|
|
22
|
+
trigger: "Search",
|
|
23
|
+
placeholder: "Search...",
|
|
24
|
+
globalTitle: "Global search",
|
|
25
|
+
globalDescription: "Search for a page or a record across the application.",
|
|
26
|
+
commandTitle: "Command palette",
|
|
27
|
+
commandDescription: "Search for a command to run.",
|
|
28
|
+
loading: "Searching...",
|
|
29
|
+
historyTitle: "Recent searches",
|
|
30
|
+
removeFromHistory: "Remove from history"
|
|
31
|
+
}, r = {
|
|
32
|
+
trigger: "Notifications",
|
|
33
|
+
title: "Notifications",
|
|
34
|
+
empty: "No notifications.",
|
|
35
|
+
markAllAsRead: "Mark all as read",
|
|
36
|
+
remove: "Delete notification",
|
|
37
|
+
seeAll: "See all"
|
|
38
|
+
}, i = {
|
|
39
|
+
placeholder: "Select...",
|
|
40
|
+
create: "Create “{{search}}”",
|
|
41
|
+
section: "Select a section",
|
|
42
|
+
theme: "Select a theme",
|
|
43
|
+
language: "Select a language"
|
|
44
|
+
}, a = {
|
|
45
|
+
pickDate: "Select a date",
|
|
46
|
+
pickPeriod: "Select a period",
|
|
47
|
+
clearPeriod: "Clear the selected period"
|
|
48
|
+
}, o = {
|
|
49
|
+
title: "Filters",
|
|
50
|
+
filter: "Filter",
|
|
51
|
+
reset: "Reset",
|
|
52
|
+
advanced: "Advanced filters",
|
|
53
|
+
more: "More filters",
|
|
54
|
+
active: "Active filters:",
|
|
55
|
+
apply: "Search",
|
|
56
|
+
clear: "Clear filters",
|
|
57
|
+
clearAll: "Clear all",
|
|
58
|
+
selectAll: "Select all",
|
|
59
|
+
deselectAll: "Deselect all",
|
|
60
|
+
remove: "Remove",
|
|
61
|
+
yes: "Yes",
|
|
62
|
+
no: "No",
|
|
63
|
+
condition: {
|
|
64
|
+
label: "Condition",
|
|
65
|
+
field: "Field",
|
|
66
|
+
selectField: "Choose a field...",
|
|
67
|
+
operator: "Operator",
|
|
68
|
+
value: "Value",
|
|
69
|
+
apply: "Apply",
|
|
70
|
+
clear: "Remove filter",
|
|
71
|
+
add: "Condition"
|
|
72
|
+
}
|
|
73
|
+
}, s = {
|
|
74
|
+
validationTitle: "Validation error",
|
|
75
|
+
validationMessage: "Please check the form fields",
|
|
76
|
+
submitError: "Something went wrong while saving"
|
|
77
|
+
}, c = {
|
|
78
|
+
empty: "No image",
|
|
79
|
+
upload: "Click or drag an image",
|
|
80
|
+
drop: "Drop the image here",
|
|
81
|
+
invalidType: "Only {{types}} files are accepted",
|
|
82
|
+
tooLarge: "The file must not exceed {{size}}MB"
|
|
83
|
+
}, l = {
|
|
84
|
+
title: "Drag and drop your files here",
|
|
85
|
+
hint: "or click to browse",
|
|
86
|
+
uploading: "Uploading…"
|
|
87
|
+
}, u = {
|
|
88
|
+
columnsTitle: "Displayed columns",
|
|
89
|
+
showAllColumns: "All",
|
|
90
|
+
hideAllColumns: "None",
|
|
91
|
+
previousPage: "Previous page",
|
|
92
|
+
nextPage: "Next page",
|
|
93
|
+
selectedCount: "{{count}} selected",
|
|
94
|
+
clearSelection: "Clear selection",
|
|
95
|
+
rangeOfTotal: "{{range}} of {{total}}",
|
|
96
|
+
perPage: "{{count}} / page",
|
|
97
|
+
tableMode: "Table mode",
|
|
98
|
+
property: "Property",
|
|
99
|
+
value: "Value"
|
|
100
|
+
}, d = {
|
|
101
|
+
menu: "Navigation menu",
|
|
102
|
+
description: "Main navigation of the application"
|
|
103
|
+
}, f = {
|
|
104
|
+
description: "Choose the interface language",
|
|
105
|
+
current: "Current language: {{language}}",
|
|
106
|
+
switchTo: "Switch to {{language}}",
|
|
107
|
+
updatedTitle: "Language updated",
|
|
108
|
+
updatedMessage: "The language has been changed to {{language}}."
|
|
109
|
+
}, p = {
|
|
110
|
+
system: "Automatic (system)",
|
|
111
|
+
systemMessage: "The theme automatically follows your system preferences",
|
|
112
|
+
light: "Light",
|
|
113
|
+
dark: "Dark",
|
|
114
|
+
updatedTitle: "Theme updated",
|
|
115
|
+
updatedMessage: "The theme has been changed to {{theme}}."
|
|
116
|
+
}, m = {
|
|
117
|
+
updateAvailable: "A new version is available.",
|
|
118
|
+
updateAction: "Refresh",
|
|
119
|
+
updateDismiss: "Dismiss"
|
|
120
|
+
}, h = {
|
|
121
|
+
snow: {
|
|
122
|
+
label: "Snow effect",
|
|
123
|
+
description: "Show snowflakes in December",
|
|
124
|
+
toastEnabled: "❄️ Snow effect enabled",
|
|
125
|
+
toastDisabled: "❄️ Snow effect disabled",
|
|
126
|
+
messageEnabled: "Snowflakes are now visible.",
|
|
127
|
+
messageDisabled: "Snowflakes have been hidden."
|
|
128
|
+
},
|
|
129
|
+
halloween: {
|
|
130
|
+
label: "Halloween effect",
|
|
131
|
+
description: "Show pumpkins and bats from October 25 to November 2",
|
|
132
|
+
toastEnabled: "🎃 Halloween effect enabled",
|
|
133
|
+
toastDisabled: "🎃 Halloween effect disabled",
|
|
134
|
+
messageEnabled: "The pumpkins are out.",
|
|
135
|
+
messageDisabled: "The pumpkins have been put away."
|
|
136
|
+
}
|
|
137
|
+
}, g = {
|
|
138
|
+
title: "About",
|
|
139
|
+
version: "Version",
|
|
140
|
+
environment: "Environment",
|
|
141
|
+
buildDate: "Build date"
|
|
142
|
+
}, _ = {
|
|
143
|
+
copyLink: "Copy link to this section",
|
|
144
|
+
linkCopied: "Link copied to clipboard.",
|
|
145
|
+
linkCopyError: "Unable to copy the link."
|
|
146
|
+
}, v = {
|
|
147
|
+
nav: "Dates",
|
|
148
|
+
empty: "No release notes.",
|
|
149
|
+
noResult: "No release note matches your criteria.",
|
|
150
|
+
tagsPlaceholder: "Categories",
|
|
151
|
+
version: "Version {{version}}"
|
|
152
|
+
}, y = {
|
|
153
|
+
actions: e,
|
|
154
|
+
states: t,
|
|
155
|
+
search: n,
|
|
156
|
+
notifications: r,
|
|
157
|
+
select: i,
|
|
158
|
+
date: a,
|
|
159
|
+
filters: o,
|
|
160
|
+
form: s,
|
|
161
|
+
image: c,
|
|
162
|
+
dropzone: l,
|
|
163
|
+
table: u,
|
|
164
|
+
sidebar: d,
|
|
165
|
+
language: f,
|
|
166
|
+
theme: p,
|
|
167
|
+
pwa: m,
|
|
168
|
+
seasonal: h,
|
|
169
|
+
about: g,
|
|
170
|
+
markdown: _,
|
|
171
|
+
changelog: v
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
export { g as about, e as actions, v as changelog, a as date, y as default, l as dropzone, o as filters, s as form, c as image, f as language, _ as markdown, r as notifications, m as pwa, n as search, h as seasonal, i as select, d as sidebar, t as states, u as table, p as theme };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
//#region src/locales/fr.json
|
|
2
|
+
var e = {
|
|
3
|
+
cancel: "Annuler",
|
|
4
|
+
save: "Enregistrer",
|
|
5
|
+
saving: "Enregistrement...",
|
|
6
|
+
edit: "Modifier",
|
|
7
|
+
delete: "Supprimer",
|
|
8
|
+
deleting: "Suppression...",
|
|
9
|
+
clear: "Effacer",
|
|
10
|
+
apply: "Appliquer"
|
|
11
|
+
}, t = {
|
|
12
|
+
loading: "Chargement...",
|
|
13
|
+
error: "Une erreur est survenue.",
|
|
14
|
+
errorPrefix: "Erreur :",
|
|
15
|
+
errorTitle: "Erreur",
|
|
16
|
+
noResult: "Aucun résultat",
|
|
17
|
+
noResultDot: "Aucun résultat.",
|
|
18
|
+
noData: "Aucune donnée disponible",
|
|
19
|
+
underConstruction: "Section en cours de développement",
|
|
20
|
+
comingSoon: "Cette fonctionnalité sera bientôt disponible"
|
|
21
|
+
}, n = {
|
|
22
|
+
trigger: "Rechercher",
|
|
23
|
+
placeholder: "Rechercher...",
|
|
24
|
+
globalTitle: "Recherche globale",
|
|
25
|
+
globalDescription: "Rechercher une page ou une donnée dans l'application.",
|
|
26
|
+
commandTitle: "Palette de commandes",
|
|
27
|
+
commandDescription: "Rechercher une commande à exécuter.",
|
|
28
|
+
loading: "Recherche...",
|
|
29
|
+
historyTitle: "Recherches récentes",
|
|
30
|
+
removeFromHistory: "Retirer de l'historique"
|
|
31
|
+
}, r = {
|
|
32
|
+
trigger: "Notifications",
|
|
33
|
+
title: "Notifications",
|
|
34
|
+
empty: "Aucune notification.",
|
|
35
|
+
markAllAsRead: "Tout marquer comme lu",
|
|
36
|
+
remove: "Supprimer la notification",
|
|
37
|
+
seeAll: "Voir tout"
|
|
38
|
+
}, i = {
|
|
39
|
+
placeholder: "Sélectionner...",
|
|
40
|
+
create: "Créer « {{search}} »",
|
|
41
|
+
section: "Sélectionner une section",
|
|
42
|
+
theme: "Sélectionner un thème",
|
|
43
|
+
language: "Sélectionner une langue"
|
|
44
|
+
}, a = {
|
|
45
|
+
pickDate: "Sélectionner une date",
|
|
46
|
+
pickPeriod: "Sélectionner une période",
|
|
47
|
+
clearPeriod: "Effacer la période sélectionnée"
|
|
48
|
+
}, o = {
|
|
49
|
+
title: "Filtres",
|
|
50
|
+
filter: "Filtrer",
|
|
51
|
+
reset: "Réinitialiser",
|
|
52
|
+
advanced: "Filtres avancés",
|
|
53
|
+
more: "Plus de filtres",
|
|
54
|
+
active: "Filtres actifs :",
|
|
55
|
+
apply: "Rechercher",
|
|
56
|
+
clear: "Effacer les filtres",
|
|
57
|
+
clearAll: "Effacer tout",
|
|
58
|
+
selectAll: "Tout sélectionner",
|
|
59
|
+
deselectAll: "Tout désélectionner",
|
|
60
|
+
remove: "Retirer",
|
|
61
|
+
yes: "Oui",
|
|
62
|
+
no: "Non",
|
|
63
|
+
condition: {
|
|
64
|
+
label: "Condition",
|
|
65
|
+
field: "Champ",
|
|
66
|
+
selectField: "Choisir un champ...",
|
|
67
|
+
operator: "Opérateur",
|
|
68
|
+
value: "Valeur",
|
|
69
|
+
apply: "Appliquer",
|
|
70
|
+
clear: "Retirer le filtre",
|
|
71
|
+
add: "Condition"
|
|
72
|
+
}
|
|
73
|
+
}, s = {
|
|
74
|
+
validationTitle: "Erreur de validation",
|
|
75
|
+
validationMessage: "Veuillez vérifier les champs du formulaire",
|
|
76
|
+
submitError: "Une erreur est survenue lors de l'enregistrement"
|
|
77
|
+
}, c = {
|
|
78
|
+
empty: "Aucune image",
|
|
79
|
+
upload: "Cliquer ou glisser une image",
|
|
80
|
+
drop: "Déposer l'image ici",
|
|
81
|
+
invalidType: "Seuls les fichiers {{types}} sont acceptés",
|
|
82
|
+
tooLarge: "Le fichier ne doit pas dépasser {{size}}MB"
|
|
83
|
+
}, l = {
|
|
84
|
+
title: "Glissez-déposez vos fichiers ici",
|
|
85
|
+
hint: "ou cliquez pour parcourir",
|
|
86
|
+
uploading: "Envoi en cours…"
|
|
87
|
+
}, u = {
|
|
88
|
+
columnsTitle: "Colonnes affichées",
|
|
89
|
+
showAllColumns: "Tout",
|
|
90
|
+
hideAllColumns: "Aucun",
|
|
91
|
+
previousPage: "Page précédente",
|
|
92
|
+
nextPage: "Page suivante",
|
|
93
|
+
selectedCount: "{{count}} sélectionné(s)",
|
|
94
|
+
clearSelection: "Désélectionner",
|
|
95
|
+
rangeOfTotal: "{{range}} sur {{total}}",
|
|
96
|
+
perPage: "{{count}} / page",
|
|
97
|
+
tableMode: "Mode tableau",
|
|
98
|
+
property: "Propriété",
|
|
99
|
+
value: "Valeur"
|
|
100
|
+
}, d = {
|
|
101
|
+
menu: "Menu de navigation",
|
|
102
|
+
description: "Navigation principale de l'application"
|
|
103
|
+
}, f = {
|
|
104
|
+
description: "Choisissez la langue de l'interface",
|
|
105
|
+
current: "Langue actuelle : {{language}}",
|
|
106
|
+
switchTo: "Passer en {{language}}",
|
|
107
|
+
updatedTitle: "Langue mise à jour",
|
|
108
|
+
updatedMessage: "La langue a été changée vers {{language}}."
|
|
109
|
+
}, p = {
|
|
110
|
+
system: "Automatique (système)",
|
|
111
|
+
systemMessage: "Le thème suit automatiquement les préférences de votre système",
|
|
112
|
+
light: "Clair",
|
|
113
|
+
dark: "Sombre",
|
|
114
|
+
updatedTitle: "Thème mis à jour",
|
|
115
|
+
updatedMessage: "Le thème a été changé vers {{theme}}."
|
|
116
|
+
}, m = {
|
|
117
|
+
updateAvailable: "Une nouvelle version est disponible.",
|
|
118
|
+
updateAction: "Actualiser",
|
|
119
|
+
updateDismiss: "Ignorer"
|
|
120
|
+
}, h = {
|
|
121
|
+
snow: {
|
|
122
|
+
label: "Effet neige",
|
|
123
|
+
description: "Afficher les flocons de neige en décembre",
|
|
124
|
+
toastEnabled: "❄️ Effet neige activé",
|
|
125
|
+
toastDisabled: "❄️ Effet neige désactivé",
|
|
126
|
+
messageEnabled: "Les flocons de neige sont maintenant visibles.",
|
|
127
|
+
messageDisabled: "Les flocons de neige ont été masqués."
|
|
128
|
+
},
|
|
129
|
+
halloween: {
|
|
130
|
+
label: "Effet Halloween",
|
|
131
|
+
description: "Afficher citrouilles et chauves-souris du 25 octobre au 2 novembre",
|
|
132
|
+
toastEnabled: "🎃 Effet Halloween activé",
|
|
133
|
+
toastDisabled: "🎃 Effet Halloween désactivé",
|
|
134
|
+
messageEnabled: "Les citrouilles sont de sortie.",
|
|
135
|
+
messageDisabled: "Les citrouilles ont été rangées."
|
|
136
|
+
}
|
|
137
|
+
}, g = {
|
|
138
|
+
title: "À propos",
|
|
139
|
+
version: "Version",
|
|
140
|
+
environment: "Environnement",
|
|
141
|
+
buildDate: "Date de build"
|
|
142
|
+
}, _ = {
|
|
143
|
+
copyLink: "Copier le lien vers cette section",
|
|
144
|
+
linkCopied: "Lien copié dans le presse-papiers.",
|
|
145
|
+
linkCopyError: "Impossible de copier le lien."
|
|
146
|
+
}, v = {
|
|
147
|
+
nav: "Dates",
|
|
148
|
+
empty: "Aucune note de version.",
|
|
149
|
+
noResult: "Aucune note ne correspond à vos critères.",
|
|
150
|
+
tagsPlaceholder: "Catégories",
|
|
151
|
+
version: "Version {{version}}"
|
|
152
|
+
}, y = {
|
|
153
|
+
actions: e,
|
|
154
|
+
states: t,
|
|
155
|
+
search: n,
|
|
156
|
+
notifications: r,
|
|
157
|
+
select: i,
|
|
158
|
+
date: a,
|
|
159
|
+
filters: o,
|
|
160
|
+
form: s,
|
|
161
|
+
image: c,
|
|
162
|
+
dropzone: l,
|
|
163
|
+
table: u,
|
|
164
|
+
sidebar: d,
|
|
165
|
+
language: f,
|
|
166
|
+
theme: p,
|
|
167
|
+
pwa: m,
|
|
168
|
+
seasonal: h,
|
|
169
|
+
about: g,
|
|
170
|
+
markdown: _,
|
|
171
|
+
changelog: v
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
export { g as about, e as actions, v as changelog, a as date, y as default, l as dropzone, o as filters, s as form, c as image, f as language, _ as markdown, r as notifications, m as pwa, n as search, h as seasonal, i as select, d as sidebar, t as states, u as table, p as theme };
|