@akira-io/ui 2.0.0 → 2.2.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/blocks.d.ts +4 -4
- package/dist/blocks.js +11 -10
- package/dist/blocks.js.map +1 -1
- package/dist/{chunk-3Z2VGVPI.js → chunk-53V4J7MC.js} +2 -2
- package/dist/{chunk-VA6A4HZ2.js → chunk-BH3B26DK.js} +5 -5
- package/dist/{chunk-TM5MN3MI.js → chunk-BP2YDMMI.js} +2 -2
- package/dist/{chunk-DE2AJ54R.js → chunk-BR3JI3KN.js} +6 -6
- package/dist/{chunk-YBXRJSR3.js → chunk-CAUTXZ4U.js} +2 -2
- package/dist/chunk-EXTOGROG.js +42 -0
- package/dist/chunk-EXTOGROG.js.map +1 -0
- package/dist/{chunk-SZUXATOF.js → chunk-MCHHCLV3.js} +4 -4
- package/dist/{chunk-2V6HUWST.js → chunk-NKPFIA32.js} +2 -2
- package/dist/{chunk-E26KKMGS.js → chunk-OS7YY5R4.js} +1 -1
- package/dist/{chunk-E26KKMGS.js.map → chunk-OS7YY5R4.js.map} +1 -1
- package/dist/{chunk-UXVI326F.js → chunk-PCYYU332.js} +3 -3
- package/dist/{chunk-KHOA4TEI.js → chunk-PPWJK5T3.js} +7 -1
- package/dist/chunk-PPWJK5T3.js.map +1 -0
- package/dist/{chunk-B3L6PRLX.js → chunk-PYXUFFMO.js} +12 -5
- package/dist/chunk-PYXUFFMO.js.map +1 -0
- package/dist/{chunk-EYPM6IMS.js → chunk-QZRSQVCN.js} +2 -2
- package/dist/{chunk-UCJTM3UM.js → chunk-RE4M2G2Y.js} +139 -55
- package/dist/chunk-RE4M2G2Y.js.map +1 -0
- package/dist/code.js +3 -3
- package/dist/{context-Soro3B1I.d.ts → context-Dqf-5Qne.d.ts} +10 -2
- package/dist/editor.js +5 -5
- package/dist/index.d.ts +23 -10
- package/dist/index.js +156 -123
- package/dist/index.js.map +1 -1
- package/dist/inertia.js +9 -8
- package/dist/inertia.js.map +1 -1
- package/dist/locales/fr.d.ts +44 -0
- package/dist/locales/fr.js +248 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/pt.d.ts +2 -2
- package/dist/locales/pt.js.map +1 -1
- package/dist/shells.d.ts +1 -1
- package/dist/shells.js +6 -5
- package/dist/shells.js.map +1 -1
- package/dist/{sidebar-BLL2tgTt.d.ts → sidebar-_xQ3IehY.d.ts} +3 -1
- package/package.json +5 -1
- package/theme.css +11 -0
- package/dist/chunk-B3L6PRLX.js.map +0 -1
- package/dist/chunk-KHOA4TEI.js.map +0 -1
- package/dist/chunk-UCJTM3UM.js.map +0 -1
- /package/dist/{chunk-3Z2VGVPI.js.map → chunk-53V4J7MC.js.map} +0 -0
- /package/dist/{chunk-VA6A4HZ2.js.map → chunk-BH3B26DK.js.map} +0 -0
- /package/dist/{chunk-TM5MN3MI.js.map → chunk-BP2YDMMI.js.map} +0 -0
- /package/dist/{chunk-DE2AJ54R.js.map → chunk-BR3JI3KN.js.map} +0 -0
- /package/dist/{chunk-YBXRJSR3.js.map → chunk-CAUTXZ4U.js.map} +0 -0
- /package/dist/{chunk-SZUXATOF.js.map → chunk-MCHHCLV3.js.map} +0 -0
- /package/dist/{chunk-2V6HUWST.js.map → chunk-NKPFIA32.js.map} +0 -0
- /package/dist/{chunk-UXVI326F.js.map → chunk-PCYYU332.js.map} +0 -0
- /package/dist/{chunk-EYPM6IMS.js.map → chunk-QZRSQVCN.js.map} +0 -0
package/dist/inertia.js
CHANGED
|
@@ -4,21 +4,22 @@
|
|
|
4
4
|
import {
|
|
5
5
|
LoginFormPreset,
|
|
6
6
|
TourProvider
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BR3JI3KN.js";
|
|
8
|
+
import "./chunk-BH3B26DK.js";
|
|
9
|
+
import "./chunk-OS7YY5R4.js";
|
|
10
|
+
import "./chunk-BP2YDMMI.js";
|
|
11
11
|
import {
|
|
12
12
|
AppSidebar,
|
|
13
13
|
AppSidebarHeader,
|
|
14
14
|
Breadcrumbs,
|
|
15
15
|
NavMain,
|
|
16
16
|
SettingsLayout
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-MCHHCLV3.js";
|
|
18
|
+
import "./chunk-PYXUFFMO.js";
|
|
19
19
|
import "./chunk-L2H5GIF7.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-EXTOGROG.js";
|
|
21
|
+
import "./chunk-53V4J7MC.js";
|
|
22
|
+
import "./chunk-PPWJK5T3.js";
|
|
22
23
|
|
|
23
24
|
// src/inertia.ts
|
|
24
25
|
import { Form, Link, router, usePage } from "@inertiajs/react";
|
package/dist/inertia.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/inertia.ts","../src/inertia-table-filters.ts","../src/inertia-tour-progress.ts"],"sourcesContent":["'use client';\n\nimport { Form, Link, router, usePage } from '@inertiajs/react';\nimport {\n createElement,\n type ComponentType,\n type PropsWithChildren,\n type ReactElement,\n type ReactNode,\n} from 'react';\n\nimport { LoginFormPreset, type LoginFormLabels } from '@/blocks/login-form';\nimport {\n TourProvider as BaseTourProvider,\n type TourLabels,\n type TourProgress,\n} from '@/blocks/tour';\nimport {\n createTableFiltersHook,\n type TableFilters,\n type TableFiltersOptions,\n type TableFiltersRouter,\n type TableFilterValue,\n} from '@/inertia-table-filters';\nimport { recordTourProgress } from '@/inertia-tour-progress';\nimport { AppSidebar as BaseAppSidebar } from '@/shells/app-sidebar';\nimport { AppSidebarHeader as BaseAppSidebarHeader } from '@/shells/app-sidebar-header';\nimport { Breadcrumbs as BaseBreadcrumbs } from '@/shells/breadcrumbs';\nimport { NavMain as BaseNavMain } from '@/shells/nav-main';\nimport { SettingsLayout as BaseSettingsLayout } from '@/shells/settings-layout';\nimport type {\n BreadcrumbItem,\n LinkComponent,\n NavGroup,\n NavItem,\n SharedUser,\n UrlLike,\n} from '@/types';\n\nexport const InertiaLink = Link as unknown as LinkComponent;\n\nexport type {\n TableFilters,\n TableFiltersOptions,\n TableFiltersRouter,\n TableFilterValue,\n};\n\nexport const useTableFilters = createTableFiltersHook(router);\n\nexport function useCurrentUrl(): string {\n return usePage().url;\n}\n\nexport function AppSidebar(props: {\n logo: ReactNode;\n logoHref: UrlLike;\n groups: NavGroup[];\n footerItems?: NavItem[];\n user: SharedUser;\n settingsHref: UrlLike;\n logoutHref: UrlLike;\n collapsibleGroups?: boolean;\n collapsedGroups?: string[];\n onCollapsedChange?: (collapsedGroups: string[]) => void;\n onSettingsClick?: () => void;\n onLogout?: () => void;\n}): ReactElement {\n return createElement(BaseAppSidebar, {\n ...props,\n currentUrl: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\nexport function AppSidebarHeader(props: {\n breadcrumbs?: BreadcrumbItem[];\n onSearchClick?: () => void;\n searchLabel?: string;\n}): ReactElement {\n return createElement(BaseAppSidebarHeader, {\n ...props,\n linkComponent: InertiaLink,\n });\n}\n\nexport function Breadcrumbs(props: {\n breadcrumbs: BreadcrumbItem[];\n}): ReactElement {\n return createElement(BaseBreadcrumbs, {\n ...props,\n linkComponent: InertiaLink,\n });\n}\n\nexport function NavMain(props: {\n items: NavItem[];\n label?: string;\n collapsible?: boolean;\n defaultOpen?: boolean;\n collapsedGroups?: string[];\n onCollapsedChange?: (collapsedGroups: string[]) => void;\n}): ReactElement {\n return createElement(BaseNavMain, {\n ...props,\n currentUrl: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\nexport function SettingsLayout(\n props: PropsWithChildren<{\n items: NavItem[];\n title?: string;\n description?: string;\n wide?: boolean;\n }>,\n): ReactElement {\n return createElement(BaseSettingsLayout, {\n ...props,\n currentPath: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\ninterface LoginPostFormRenderProps {\n processing: boolean;\n errors: Partial<Record<'email' | 'password' | 'remember', string>>;\n}\n\ninterface LoginPostFormProps {\n action: string;\n method: 'post';\n resetOnSuccess: string[];\n className?: string;\n 'data-slot': string;\n children: (props: LoginPostFormRenderProps) => ReactNode;\n}\n\nconst LoginPostForm = Form as unknown as ComponentType<LoginPostFormProps>;\n\nexport function InertiaLoginForm({\n action,\n status,\n forgotPasswordHref,\n labels,\n className,\n slotName = 'inertia-login-form',\n}: {\n action: string;\n status?: string;\n forgotPasswordHref?: UrlLike;\n labels?: Partial<LoginFormLabels>;\n className?: string;\n slotName?: string;\n}): ReactElement {\n return createElement(LoginPostForm, {\n action,\n method: 'post',\n resetOnSuccess: ['password'],\n className,\n 'data-slot': slotName,\n children: ({ processing, errors }) =>\n createElement(LoginFormPreset, {\n errors,\n processing,\n status,\n forgotPasswordHref,\n labels,\n linkComponent: InertiaLink,\n }),\n });\n}\n\nexport function InertiaTourProvider({\n children,\n progressUrl,\n labels,\n}: PropsWithChildren<{\n progressUrl: (tour: string) => string;\n labels?: Partial<TourLabels>;\n}>): ReactElement {\n const seen = (usePage().props.tours ?? {}) as Record<string, number>;\n\n return createElement(BaseTourProvider, {\n seen,\n labels,\n children,\n onProgress: (progress: TourProgress) =>\n recordTourProgress(progressUrl(progress.tour), progress),\n });\n}\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\nexport type TableFilterValue = string | string[] | number | null | undefined;\n\nexport type TableFilterQuery = Record<string, string | string[]>;\n\nexport interface TableFiltersVisitOptions {\n data: TableFilterQuery;\n only?: string[];\n preserveState: boolean;\n preserveScroll: boolean;\n replace: boolean;\n onCancelToken: (token: { cancel: () => void }) => void;\n}\n\nexport interface TableFiltersRouter {\n visit: (url: string, options: TableFiltersVisitOptions) => void;\n}\n\nexport interface TableFiltersOptions {\n url: string;\n filters: Record<string, TableFilterValue>;\n only?: string[];\n searchKey?: string;\n pageKey?: string;\n debounce?: number;\n}\n\nexport interface TableFilters {\n search: string;\n setSearch: (value: string) => void;\n filterValues: Record<string, string[]>;\n setFilter: (key: string, values: string[]) => void;\n clearFilters: () => void;\n setPage: (pageIndex: number) => void;\n apply: (changes: Record<string, TableFilterValue>) => void;\n}\n\nexport type UseTableFilters = (options: TableFiltersOptions) => TableFilters;\n\nconst DEFAULT_DEBOUNCE = 300;\n\nexport function toQuery(\n filters: Record<string, TableFilterValue>,\n): TableFilterQuery {\n const query: TableFilterQuery = {};\n\n for (const [key, value] of Object.entries(filters)) {\n if (Array.isArray(value)) {\n const values = value.filter((entry) => entry !== '');\n\n if (values.length > 0) {\n query[key] = values;\n }\n\n continue;\n }\n\n if (value === null || value === undefined || value === '') {\n continue;\n }\n\n query[key] = String(value);\n }\n\n return query;\n}\n\nexport function toFilterValues(\n filters: Record<string, TableFilterValue>,\n exclude: string[] = [],\n): Record<string, string[]> {\n const values: Record<string, string[]> = {};\n\n for (const [key, value] of Object.entries(toQuery(filters))) {\n if (exclude.includes(key)) {\n continue;\n }\n\n values[key] = Array.isArray(value) ? value : [value];\n }\n\n return values;\n}\n\nexport function createTableFiltersHook(\n router: TableFiltersRouter,\n): UseTableFilters {\n return function useTableFilters({\n url,\n filters,\n only,\n searchKey = 'search',\n pageKey = 'page',\n debounce = DEFAULT_DEBOUNCE,\n }: TableFiltersOptions): TableFilters {\n const initialSearch = filters[searchKey];\n const [search, setSearchState] = useState(\n typeof initialSearch === 'string' ? initialSearch : '',\n );\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const pending = useRef<{ cancel: () => void } | null>(null);\n const state = useRef({ url, filters, only, searchKey, pageKey });\n\n state.current = { url, filters, only, searchKey, pageKey };\n\n const visit = useCallback(\n (changes: Record<string, TableFilterValue>) => {\n const current = state.current;\n\n pending.current?.cancel();\n\n router.visit(current.url, {\n data: toQuery({ ...current.filters, ...changes }),\n only: current.only,\n preserveState: true,\n preserveScroll: true,\n replace: true,\n onCancelToken: (token) => {\n pending.current = token;\n },\n });\n },\n [],\n );\n\n const cancelPendingSearch = useCallback(() => {\n if (timer.current !== null) {\n clearTimeout(timer.current);\n timer.current = null;\n }\n }, []);\n\n useEffect(() => cancelPendingSearch, [cancelPendingSearch]);\n\n const setSearch = useCallback(\n (value: string) => {\n setSearchState(value);\n cancelPendingSearch();\n\n timer.current = setTimeout(() => {\n timer.current = null;\n visit({\n [state.current.searchKey]: value,\n [state.current.pageKey]: null,\n });\n }, debounce);\n },\n [cancelPendingSearch, debounce, visit],\n );\n\n const setFilter = useCallback(\n (key: string, values: string[]) => {\n cancelPendingSearch();\n visit({ [key]: values, [state.current.pageKey]: null });\n },\n [cancelPendingSearch, visit],\n );\n\n const clearFilters = useCallback(() => {\n cancelPendingSearch();\n setSearchState('');\n\n const current = state.current;\n const cleared = Object.fromEntries(\n Object.keys(current.filters).map((key) => [key, null]),\n );\n\n visit({ ...cleared, [current.pageKey]: null });\n }, [cancelPendingSearch, visit]);\n\n const setPage = useCallback(\n (pageIndex: number) => {\n visit({\n [state.current.pageKey]:\n pageIndex > 0 ? pageIndex + 1 : null,\n });\n },\n [visit],\n );\n\n const apply = useCallback(\n (changes: Record<string, TableFilterValue>) => {\n cancelPendingSearch();\n visit({ ...changes, [state.current.pageKey]: null });\n },\n [cancelPendingSearch, visit],\n );\n\n return {\n search,\n setSearch,\n filterValues: toFilterValues(filters, [searchKey, pageKey]),\n setFilter,\n clearFilters,\n setPage,\n apply,\n };\n };\n}\n","import type { TourProgress } from '@/blocks/tour';\n\nexport function xsrfToken(): string {\n const cookie = document.cookie\n .split('; ')\n .find((entry) => entry.startsWith('XSRF-TOKEN='));\n\n return cookie ? decodeURIComponent(cookie.slice('XSRF-TOKEN='.length)) : '';\n}\n\nexport function recordTourProgress(url: string, progress: TourProgress): void {\n void fetch(url, {\n method: 'POST',\n credentials: 'same-origin',\n keepalive: true,\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-XSRF-TOKEN': xsrfToken(),\n },\n body: JSON.stringify({\n version: progress.version,\n last_step: progress.lastStep,\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,CAAC,EAAE,YAAY,OAAO,MAC5B,cAAc,iBAAiB;AAAA,MAC3B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAe;AAAA,IACnB,CAAC;AAAA,EACT,CAAC;AACL;AAEO,SAAS,oBAAoB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AACJ,GAGkB;AACd,QAAM,OAAQ,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,SAAO,cAAc,cAAkB;AAAA,IACnC;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY,CAAC,aACT,mBAAmB,YAAY,SAAS,IAAI,GAAG,QAAQ;AAAA,EAC/D,CAAC;AACL;","names":["router","useTableFilters","AppSidebar","AppSidebarHeader","Breadcrumbs","NavMain","SettingsLayout"]}
|
|
1
|
+
{"version":3,"sources":["../src/inertia.ts","../src/inertia-table-filters.ts","../src/inertia-tour-progress.ts"],"sourcesContent":["'use client';\n\nimport { Form, Link, router, usePage } from '@inertiajs/react';\nimport {\n createElement,\n type ComponentType,\n type PropsWithChildren,\n type ReactElement,\n type ReactNode,\n} from 'react';\n\nimport { LoginFormPreset, type LoginFormLabels } from '@/blocks/login-form';\nimport {\n TourProvider as BaseTourProvider,\n type TourLabels,\n type TourProgress,\n} from '@/blocks/tour';\nimport {\n createTableFiltersHook,\n type TableFilters,\n type TableFiltersOptions,\n type TableFiltersRouter,\n type TableFilterValue,\n} from '@/inertia-table-filters';\nimport { recordTourProgress } from '@/inertia-tour-progress';\nimport { AppSidebar as BaseAppSidebar } from '@/shells/app-sidebar';\nimport { AppSidebarHeader as BaseAppSidebarHeader } from '@/shells/app-sidebar-header';\nimport { Breadcrumbs as BaseBreadcrumbs } from '@/shells/breadcrumbs';\nimport { NavMain as BaseNavMain } from '@/shells/nav-main';\nimport { SettingsLayout as BaseSettingsLayout } from '@/shells/settings-layout';\nimport type {\n BreadcrumbItem,\n LinkComponent,\n NavGroup,\n NavItem,\n SharedUser,\n UrlLike,\n} from '@/types';\n\nexport const InertiaLink = Link as unknown as LinkComponent;\n\nexport type {\n TableFilters,\n TableFiltersOptions,\n TableFiltersRouter,\n TableFilterValue,\n};\n\nexport const useTableFilters = createTableFiltersHook(router);\n\nexport function useCurrentUrl(): string {\n return usePage().url;\n}\n\nexport function AppSidebar(props: {\n logo: ReactNode;\n logoHref: UrlLike;\n groups: NavGroup[];\n footerItems?: NavItem[];\n user: SharedUser;\n settingsHref: UrlLike;\n logoutHref: UrlLike;\n collapsibleGroups?: boolean;\n collapsedGroups?: string[];\n onCollapsedChange?: (collapsedGroups: string[]) => void;\n onSettingsClick?: () => void;\n onLogout?: () => void;\n}): ReactElement {\n return createElement(BaseAppSidebar, {\n ...props,\n currentUrl: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\nexport function AppSidebarHeader(props: {\n breadcrumbs?: BreadcrumbItem[];\n onSearchClick?: () => void;\n searchLabel?: string;\n}): ReactElement {\n return createElement(BaseAppSidebarHeader, {\n ...props,\n linkComponent: InertiaLink,\n });\n}\n\nexport function Breadcrumbs(props: {\n breadcrumbs: BreadcrumbItem[];\n}): ReactElement {\n return createElement(BaseBreadcrumbs, {\n ...props,\n linkComponent: InertiaLink,\n });\n}\n\nexport function NavMain(props: {\n items: NavItem[];\n label?: string;\n collapsible?: boolean;\n defaultOpen?: boolean;\n collapsedGroups?: string[];\n onCollapsedChange?: (collapsedGroups: string[]) => void;\n}): ReactElement {\n return createElement(BaseNavMain, {\n ...props,\n currentUrl: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\nexport function SettingsLayout(\n props: PropsWithChildren<{\n items: NavItem[];\n title?: string;\n description?: string;\n wide?: boolean;\n }>,\n): ReactElement {\n return createElement(BaseSettingsLayout, {\n ...props,\n currentPath: usePage().url,\n linkComponent: InertiaLink,\n });\n}\n\ninterface LoginPostFormRenderProps {\n processing: boolean;\n errors: Partial<Record<'email' | 'password' | 'remember', string>>;\n}\n\ninterface LoginPostFormProps {\n action: string;\n method: 'post';\n resetOnSuccess: string[];\n className?: string;\n 'data-slot': string;\n children: (props: LoginPostFormRenderProps) => ReactNode;\n}\n\nconst LoginPostForm = Form as unknown as ComponentType<LoginPostFormProps>;\n\nexport function InertiaLoginForm({\n action,\n status,\n forgotPasswordHref,\n labels,\n className,\n slotName = 'inertia-login-form',\n}: {\n action: string;\n status?: string;\n forgotPasswordHref?: UrlLike;\n labels?: Partial<LoginFormLabels>;\n className?: string;\n slotName?: string;\n}): ReactElement {\n return createElement(LoginPostForm, {\n action,\n method: 'post',\n resetOnSuccess: ['password'],\n className,\n 'data-slot': slotName,\n children: ({ processing, errors }) =>\n createElement(LoginFormPreset, {\n errors,\n processing,\n status,\n forgotPasswordHref,\n labels,\n linkComponent: InertiaLink,\n }),\n });\n}\n\nexport function InertiaTourProvider({\n children,\n progressUrl,\n labels,\n}: PropsWithChildren<{\n progressUrl: (tour: string) => string;\n labels?: Partial<TourLabels>;\n}>): ReactElement {\n const seen = (usePage().props.tours ?? {}) as Record<string, number>;\n\n return createElement(BaseTourProvider, {\n seen,\n labels,\n children,\n onProgress: (progress: TourProgress) =>\n recordTourProgress(progressUrl(progress.tour), progress),\n });\n}\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\nexport type TableFilterValue = string | string[] | number | null | undefined;\n\nexport type TableFilterQuery = Record<string, string | string[]>;\n\nexport interface TableFiltersVisitOptions {\n data: TableFilterQuery;\n only?: string[];\n preserveState: boolean;\n preserveScroll: boolean;\n replace: boolean;\n onCancelToken: (token: { cancel: () => void }) => void;\n}\n\nexport interface TableFiltersRouter {\n visit: (url: string, options: TableFiltersVisitOptions) => void;\n}\n\nexport interface TableFiltersOptions {\n url: string;\n filters: Record<string, TableFilterValue>;\n only?: string[];\n searchKey?: string;\n pageKey?: string;\n debounce?: number;\n}\n\nexport interface TableFilters {\n search: string;\n setSearch: (value: string) => void;\n filterValues: Record<string, string[]>;\n setFilter: (key: string, values: string[]) => void;\n clearFilters: () => void;\n setPage: (pageIndex: number) => void;\n apply: (changes: Record<string, TableFilterValue>) => void;\n}\n\nexport type UseTableFilters = (options: TableFiltersOptions) => TableFilters;\n\nconst DEFAULT_DEBOUNCE = 300;\n\nexport function toQuery(\n filters: Record<string, TableFilterValue>,\n): TableFilterQuery {\n const query: TableFilterQuery = {};\n\n for (const [key, value] of Object.entries(filters)) {\n if (Array.isArray(value)) {\n const values = value.filter((entry) => entry !== '');\n\n if (values.length > 0) {\n query[key] = values;\n }\n\n continue;\n }\n\n if (value === null || value === undefined || value === '') {\n continue;\n }\n\n query[key] = String(value);\n }\n\n return query;\n}\n\nexport function toFilterValues(\n filters: Record<string, TableFilterValue>,\n exclude: string[] = [],\n): Record<string, string[]> {\n const values: Record<string, string[]> = {};\n\n for (const [key, value] of Object.entries(toQuery(filters))) {\n if (exclude.includes(key)) {\n continue;\n }\n\n values[key] = Array.isArray(value) ? value : [value];\n }\n\n return values;\n}\n\nexport function createTableFiltersHook(\n router: TableFiltersRouter,\n): UseTableFilters {\n return function useTableFilters({\n url,\n filters,\n only,\n searchKey = 'search',\n pageKey = 'page',\n debounce = DEFAULT_DEBOUNCE,\n }: TableFiltersOptions): TableFilters {\n const initialSearch = filters[searchKey];\n const [search, setSearchState] = useState(\n typeof initialSearch === 'string' ? initialSearch : '',\n );\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const pending = useRef<{ cancel: () => void } | null>(null);\n const state = useRef({ url, filters, only, searchKey, pageKey });\n\n state.current = { url, filters, only, searchKey, pageKey };\n\n const visit = useCallback(\n (changes: Record<string, TableFilterValue>) => {\n const current = state.current;\n\n pending.current?.cancel();\n\n router.visit(current.url, {\n data: toQuery({ ...current.filters, ...changes }),\n only: current.only,\n preserveState: true,\n preserveScroll: true,\n replace: true,\n onCancelToken: (token) => {\n pending.current = token;\n },\n });\n },\n [],\n );\n\n const cancelPendingSearch = useCallback(() => {\n if (timer.current !== null) {\n clearTimeout(timer.current);\n timer.current = null;\n }\n }, []);\n\n useEffect(() => cancelPendingSearch, [cancelPendingSearch]);\n\n const setSearch = useCallback(\n (value: string) => {\n setSearchState(value);\n cancelPendingSearch();\n\n timer.current = setTimeout(() => {\n timer.current = null;\n visit({\n [state.current.searchKey]: value,\n [state.current.pageKey]: null,\n });\n }, debounce);\n },\n [cancelPendingSearch, debounce, visit],\n );\n\n const setFilter = useCallback(\n (key: string, values: string[]) => {\n cancelPendingSearch();\n visit({ [key]: values, [state.current.pageKey]: null });\n },\n [cancelPendingSearch, visit],\n );\n\n const clearFilters = useCallback(() => {\n cancelPendingSearch();\n setSearchState('');\n\n const current = state.current;\n const cleared = Object.fromEntries(\n Object.keys(current.filters).map((key) => [key, null]),\n );\n\n visit({ ...cleared, [current.pageKey]: null });\n }, [cancelPendingSearch, visit]);\n\n const setPage = useCallback(\n (pageIndex: number) => {\n visit({\n [state.current.pageKey]:\n pageIndex > 0 ? pageIndex + 1 : null,\n });\n },\n [visit],\n );\n\n const apply = useCallback(\n (changes: Record<string, TableFilterValue>) => {\n cancelPendingSearch();\n visit({ ...changes, [state.current.pageKey]: null });\n },\n [cancelPendingSearch, visit],\n );\n\n return {\n search,\n setSearch,\n filterValues: toFilterValues(filters, [searchKey, pageKey]),\n setFilter,\n clearFilters,\n setPage,\n apply,\n };\n };\n}\n","import type { TourProgress } from '@/blocks/tour';\n\nexport function xsrfToken(): string {\n const cookie = document.cookie\n .split('; ')\n .find((entry) => entry.startsWith('XSRF-TOKEN='));\n\n return cookie ? decodeURIComponent(cookie.slice('XSRF-TOKEN='.length)) : '';\n}\n\nexport function recordTourProgress(url: string, progress: TourProgress): void {\n void fetch(url, {\n method: 'POST',\n credentials: 'same-origin',\n keepalive: true,\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-XSRF-TOKEN': xsrfToken(),\n },\n body: JSON.stringify({\n version: progress.version,\n last_step: progress.lastStep,\n outcome: progress.outcome,\n }),\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS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AA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAe;AAAA,IACnB,CAAC;AAAA,EACT,CAAC;AACL;AAEO,SAAS,oBAAoB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AACJ,GAGkB;AACd,QAAM,OAAQ,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,SAAO,cAAc,cAAkB;AAAA,IACnC;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY,CAAC,aACT,mBAAmB,YAAY,SAAS,IAAI,GAAG,QAAQ;AAAA,EAC/D,CAAC;AACL;","names":["router","useTableFilters","AppSidebar","AppSidebarHeader","Breadcrumbs","NavMain","SettingsLayout"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { G as AlertLabels, J as AppearanceToggleLabels, M as ComboboxLabels, ar as CommandPaletteLabels, Q as ConfirmDialogLabels, C as CopyButtonLabels, W as DataTableFacetedFilterLabels, Y as DataTableLabels, a as DateFilterLabels, b as DateFilterOption, a0 as DatePickerLabels, a3 as DateRangeFilterLabels, F as FloatingSheetLabels, as as FullUiLabels, a7 as PasswordInputLabels, ab as SaveStatusLabels, q as SettingsLabels } from '../context-Dqf-5Qne.js';
|
|
2
|
+
import { e as DangerZoneLabels, a as FormOverlayLabels, i as TwoFactorLabels } from '../types-CfAUvz--.js';
|
|
3
|
+
import { a as LoginFormLabels, e as TourLabels } from '../types-1LUmNJf_.js';
|
|
4
|
+
import { a as CodeBlockLabels, c as JsonViewerLabels } from '../json-viewer-Bssv9mTD.js';
|
|
5
|
+
import { f as FieldLabels } from '../field-C1TdmC2t.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'lucide-react';
|
|
8
|
+
import '../types-CMZRvMV5.js';
|
|
9
|
+
import '@tanstack/react-table';
|
|
10
|
+
import 'class-variance-authority/types';
|
|
11
|
+
import 'class-variance-authority';
|
|
12
|
+
import '../input-B4uEClxB.js';
|
|
13
|
+
import '@radix-ui/react-slot';
|
|
14
|
+
import '@radix-ui/react-label';
|
|
15
|
+
|
|
16
|
+
declare const alertLabelsFr: AlertLabels;
|
|
17
|
+
declare const appearanceToggleLabelsFr: AppearanceToggleLabels;
|
|
18
|
+
declare const dataTableLabelsFr: DataTableLabels;
|
|
19
|
+
declare const floatingSheetLabelsFr: FloatingSheetLabels;
|
|
20
|
+
declare const formOverlayLabelsFr: FormOverlayLabels;
|
|
21
|
+
declare const dateRangeFilterLabelsFr: DateRangeFilterLabels;
|
|
22
|
+
declare const datePickerLabelsFr: DatePickerLabels;
|
|
23
|
+
declare const comboboxLabelsFr: ComboboxLabels;
|
|
24
|
+
declare const confirmDialogLabelsFr: ConfirmDialogLabels;
|
|
25
|
+
declare const fieldLabelsFr: FieldLabels;
|
|
26
|
+
declare const passwordInputLabelsFr: PasswordInputLabels;
|
|
27
|
+
declare const dataTableFacetedFilterLabelsFr: DataTableFacetedFilterLabels;
|
|
28
|
+
declare const commandPaletteLabelsFr: CommandPaletteLabels;
|
|
29
|
+
declare const tourLabelsFr: TourLabels;
|
|
30
|
+
declare const dateFilterPresetsFr: DateFilterOption[];
|
|
31
|
+
declare const dateFilterOperatorsFr: DateFilterOption[];
|
|
32
|
+
declare const dateFilterUnitsFr: DateFilterOption[];
|
|
33
|
+
declare const dateFilterLabelsFr: DateFilterLabels;
|
|
34
|
+
declare const settingsLabelsFr: SettingsLabels;
|
|
35
|
+
declare const saveStatusLabelsFr: SaveStatusLabels;
|
|
36
|
+
declare const copyButtonLabelsFr: CopyButtonLabels;
|
|
37
|
+
declare const loginFormLabelsFr: LoginFormLabels;
|
|
38
|
+
declare const twoFactorLabelsFr: TwoFactorLabels;
|
|
39
|
+
declare const dangerZoneLabelsFr: DangerZoneLabels;
|
|
40
|
+
declare const codeBlockLabelsFr: CodeBlockLabels;
|
|
41
|
+
declare const jsonViewerLabelsFr: JsonViewerLabels;
|
|
42
|
+
declare const frLabels: FullUiLabels;
|
|
43
|
+
|
|
44
|
+
export { alertLabelsFr, appearanceToggleLabelsFr, codeBlockLabelsFr, comboboxLabelsFr, commandPaletteLabelsFr, confirmDialogLabelsFr, copyButtonLabelsFr, dangerZoneLabelsFr, dataTableFacetedFilterLabelsFr, dataTableLabelsFr, dateFilterLabelsFr, dateFilterOperatorsFr, dateFilterPresetsFr, dateFilterUnitsFr, datePickerLabelsFr, dateRangeFilterLabelsFr, fieldLabelsFr, floatingSheetLabelsFr, formOverlayLabelsFr, frLabels, jsonViewerLabelsFr, loginFormLabelsFr, passwordInputLabelsFr, saveStatusLabelsFr, settingsLabelsFr, tourLabelsFr, twoFactorLabelsFr };
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// src/locales/fr.ts
|
|
2
|
+
var alertLabelsFr = {
|
|
3
|
+
warningLabel: "Avertissement",
|
|
4
|
+
infoLabel: "Information"
|
|
5
|
+
};
|
|
6
|
+
var appearanceToggleLabelsFr = {
|
|
7
|
+
groupLabel: "Apparence",
|
|
8
|
+
lightLabel: "Clair",
|
|
9
|
+
darkLabel: "Sombre",
|
|
10
|
+
systemLabel: "Syst\xE8me"
|
|
11
|
+
};
|
|
12
|
+
var dataTableLabelsFr = {
|
|
13
|
+
searchPlaceholder: "Rechercher...",
|
|
14
|
+
emptyLabel: "Aucun r\xE9sultat.",
|
|
15
|
+
createLabel: "Nouveau",
|
|
16
|
+
clearFiltersLabel: "Effacer les filtres",
|
|
17
|
+
paginationLabel: (page, pages) => `Page ${page} sur ${pages}`,
|
|
18
|
+
noOptionsLabel: "Aucune option.",
|
|
19
|
+
totalLabel: (total) => `${total.toLocaleString("fr-FR")} enregistrements`
|
|
20
|
+
};
|
|
21
|
+
var floatingSheetLabelsFr = {
|
|
22
|
+
backLabel: "Retour",
|
|
23
|
+
closeLabel: "Fermer"
|
|
24
|
+
};
|
|
25
|
+
var formOverlayLabelsFr = {
|
|
26
|
+
cancelLabel: "Annuler",
|
|
27
|
+
saveLabel: "Enregistrer",
|
|
28
|
+
savingLabel: "Enregistrement..."
|
|
29
|
+
};
|
|
30
|
+
var dateRangeFilterLabelsFr = {
|
|
31
|
+
emptyLabel: "Plage de dates",
|
|
32
|
+
dateFormat: "dd/MM/yy"
|
|
33
|
+
};
|
|
34
|
+
var datePickerLabelsFr = {
|
|
35
|
+
placeholder: "Choisir une date",
|
|
36
|
+
dateFormat: "dd/MM/yy",
|
|
37
|
+
clearLabel: "Effacer la date"
|
|
38
|
+
};
|
|
39
|
+
var comboboxLabelsFr = {
|
|
40
|
+
placeholder: "S\xE9lectionnez une option",
|
|
41
|
+
searchPlaceholder: "Rechercher...",
|
|
42
|
+
emptyText: "Aucun r\xE9sultat."
|
|
43
|
+
};
|
|
44
|
+
var confirmDialogLabelsFr = {
|
|
45
|
+
title: "Confirmer l'action",
|
|
46
|
+
description: "\xCAtes-vous s\xFBr de vouloir continuer ? Cette action ne peut pas \xEAtre annul\xE9e.",
|
|
47
|
+
confirmText: "Confirmer",
|
|
48
|
+
cancelText: "Annuler"
|
|
49
|
+
};
|
|
50
|
+
var fieldLabelsFr = {
|
|
51
|
+
requiredLabel: "Obligatoire"
|
|
52
|
+
};
|
|
53
|
+
var passwordInputLabelsFr = {
|
|
54
|
+
showLabel: "Afficher le mot de passe",
|
|
55
|
+
hideLabel: "Masquer le mot de passe"
|
|
56
|
+
};
|
|
57
|
+
var dataTableFacetedFilterLabelsFr = {
|
|
58
|
+
noOptionsLabel: "Aucune option."
|
|
59
|
+
};
|
|
60
|
+
var commandPaletteLabelsFr = {
|
|
61
|
+
placeholder: "Rechercher...",
|
|
62
|
+
noResultsLabel: "Aucun r\xE9sultat trouv\xE9"
|
|
63
|
+
};
|
|
64
|
+
var tourLabelsFr = {
|
|
65
|
+
next: "Suivant",
|
|
66
|
+
previous: "Pr\xE9c\xE9dent",
|
|
67
|
+
done: "Terminer",
|
|
68
|
+
progress: "{{current}} sur {{total}}"
|
|
69
|
+
};
|
|
70
|
+
var dateFilterPresetsFr = [
|
|
71
|
+
{ value: "today", label: "Aujourd'hui" },
|
|
72
|
+
{ value: "yesterday", label: "Hier" },
|
|
73
|
+
{ value: "previous_week", label: "Semaine pr\xE9c\xE9dente" },
|
|
74
|
+
{ value: "previous_7_days", label: "7 derniers jours" },
|
|
75
|
+
{ value: "previous_30_days", label: "30 derniers jours" },
|
|
76
|
+
{ value: "previous_month", label: "Mois pr\xE9c\xE9dent" },
|
|
77
|
+
{ value: "previous_3_months", label: "3 derniers mois" },
|
|
78
|
+
{ value: "previous_12_months", label: "12 derniers mois" }
|
|
79
|
+
];
|
|
80
|
+
var dateFilterOperatorsFr = [
|
|
81
|
+
{ value: "between", label: "Entre" },
|
|
82
|
+
{ value: "before", label: "Avant" },
|
|
83
|
+
{ value: "on", label: "Le" },
|
|
84
|
+
{ value: "after", label: "Apr\xE8s" }
|
|
85
|
+
];
|
|
86
|
+
var dateFilterUnitsFr = [
|
|
87
|
+
{ value: "day", label: "jours" },
|
|
88
|
+
{ value: "week", label: "semaines" },
|
|
89
|
+
{ value: "month", label: "mois" },
|
|
90
|
+
{ value: "quarter", label: "trimestres" },
|
|
91
|
+
{ value: "year", label: "ans" }
|
|
92
|
+
];
|
|
93
|
+
var dateFilterLabelsFr = {
|
|
94
|
+
all: "Toute la p\xE9riode",
|
|
95
|
+
fixed: "Plage fixe...",
|
|
96
|
+
relative: "Plage relative...",
|
|
97
|
+
relativeTitle: "Plage relative",
|
|
98
|
+
apply: "Appliquer le filtre",
|
|
99
|
+
back: "Retour",
|
|
100
|
+
latest: "Derniers",
|
|
101
|
+
ago: "il y a",
|
|
102
|
+
includeCurrent: "Inclure la p\xE9riode actuelle",
|
|
103
|
+
startingAgo: "\xC0 partir de",
|
|
104
|
+
removeOffset: "Supprimer le d\xE9calage",
|
|
105
|
+
fallback: "Date"
|
|
106
|
+
};
|
|
107
|
+
var settingsLabelsFr = {
|
|
108
|
+
back: "Retour"
|
|
109
|
+
};
|
|
110
|
+
var saveStatusLabelsFr = {
|
|
111
|
+
error: "Vos modifications n'ont pas pu \xEAtre enregistr\xE9es",
|
|
112
|
+
idle: "Les modifications sont enregistr\xE9es automatiquement",
|
|
113
|
+
saved: "Enregistr\xE9",
|
|
114
|
+
saving: "Enregistrement"
|
|
115
|
+
};
|
|
116
|
+
var copyButtonLabelsFr = {
|
|
117
|
+
copyLabel: "Copier",
|
|
118
|
+
copiedLabel: "Copi\xE9"
|
|
119
|
+
};
|
|
120
|
+
var loginFormLabelsFr = {
|
|
121
|
+
emailLabel: "Adresse e-mail",
|
|
122
|
+
emailPlaceholder: "email@exemple.com",
|
|
123
|
+
passwordLabel: "Mot de passe",
|
|
124
|
+
passwordPlaceholder: "Mot de passe",
|
|
125
|
+
forgotPasswordLabel: "Mot de passe oubli\xE9 ?",
|
|
126
|
+
rememberLabel: "Se souvenir de moi",
|
|
127
|
+
submitLabel: "Se connecter",
|
|
128
|
+
submittingLabel: "Connexion"
|
|
129
|
+
};
|
|
130
|
+
var twoFactorLabelsFr = {
|
|
131
|
+
setupTitle: "Authentification \xE0 deux facteurs",
|
|
132
|
+
setupDescription: "Ajoutez une seconde \xE9tape \xE0 votre connexion avec une application authentificatrice.",
|
|
133
|
+
pendingLabel: "Pr\xE9paration de votre cl\xE9 de configuration",
|
|
134
|
+
scanTitle: "Scannez le code",
|
|
135
|
+
scanDescription: "Ouvrez l'application authentificatrice et scannez le code ci-dessous pour ajouter ce compte.",
|
|
136
|
+
qrFallbackLabel: "Le code QR n'est pas encore disponible.",
|
|
137
|
+
manualKeyLabel: "Cl\xE9 de configuration",
|
|
138
|
+
manualKeyDescription: "Saisissez cette cl\xE9 manuellement si l'application ne peut pas scanner le code.",
|
|
139
|
+
manualKeyRevealLabel: "Afficher la cl\xE9",
|
|
140
|
+
manualKeyHideLabel: "Masquer la cl\xE9",
|
|
141
|
+
continueLabel: "Continuer",
|
|
142
|
+
confirmTitle: "Confirmez le code",
|
|
143
|
+
confirmDescription: "Saisissez le code \xE0 six chiffres affich\xE9 dans l'application authentificatrice.",
|
|
144
|
+
codeLabel: "Code d'authentification",
|
|
145
|
+
recoveryCodeLabel: "Code de r\xE9cup\xE9ration",
|
|
146
|
+
recoveryCodePlaceholder: "Saisissez un code de r\xE9cup\xE9ration",
|
|
147
|
+
useRecoveryCodeLabel: "Utiliser un code de r\xE9cup\xE9ration",
|
|
148
|
+
useCodeLabel: "Utiliser un code d'authentification",
|
|
149
|
+
verifyLabel: "V\xE9rifier",
|
|
150
|
+
verifyingLabel: "V\xE9rification",
|
|
151
|
+
errorFallbackLabel: "Cela n'a pas fonctionn\xE9. R\xE9essayez.",
|
|
152
|
+
cancelLabel: "Annuler",
|
|
153
|
+
challengeTitle: "Confirmation \xE0 deux facteurs",
|
|
154
|
+
challengeDescription: "Confirmez l'acc\xE8s \xE0 votre compte avec le code de l'application authentificatrice.",
|
|
155
|
+
recoveryTitle: "Codes de r\xE9cup\xE9ration",
|
|
156
|
+
recoveryDescription: "Conservez ces codes en lieu s\xFBr. Chacun vous permet de vous connecter une fois si vous perdez votre appareil.",
|
|
157
|
+
recoveryWarning: "Ils ne sont affich\xE9s qu'une seule fois et ne peuvent pas \xEAtre consult\xE9s \xE0 nouveau.",
|
|
158
|
+
revealLabel: "Afficher les codes",
|
|
159
|
+
hideLabel: "Masquer les codes",
|
|
160
|
+
copyLabel: "Copier",
|
|
161
|
+
copiedLabel: "Copi\xE9",
|
|
162
|
+
copyFailedLabel: "Impossible de copier ici. S\xE9lectionnez les codes manuellement.",
|
|
163
|
+
regenerateLabel: "R\xE9g\xE9n\xE9rer les codes",
|
|
164
|
+
doneLabel: "Terminer",
|
|
165
|
+
disableLabel: "D\xE9sactiver l'authentification \xE0 deux facteurs",
|
|
166
|
+
disableTitle: "D\xE9sactiver l'authentification \xE0 deux facteurs",
|
|
167
|
+
disableDescription: "Votre compte ne sera plus prot\xE9g\xE9 que par le mot de passe. Les codes de r\xE9cup\xE9ration cesseront de fonctionner.",
|
|
168
|
+
disableConfirmLabel: "D\xE9sactiver",
|
|
169
|
+
disableCancelLabel: "Garder active"
|
|
170
|
+
};
|
|
171
|
+
var dangerZoneLabelsFr = {
|
|
172
|
+
title: "Zone de danger",
|
|
173
|
+
description: "Ces actions sont d\xE9finitives et ne peuvent pas \xEAtre annul\xE9es.",
|
|
174
|
+
actionLabel: "Supprimer",
|
|
175
|
+
confirmTitle: "Confirmer l'action",
|
|
176
|
+
confirmDescription: "\xCAtes-vous s\xFBr de vouloir continuer ? Cette action ne peut pas \xEAtre annul\xE9e.",
|
|
177
|
+
confirmText: "Confirmer",
|
|
178
|
+
cancelText: "Annuler",
|
|
179
|
+
requiredValueLabel: "Saisissez {{value}} pour confirmer"
|
|
180
|
+
};
|
|
181
|
+
var codeBlockLabelsFr = {
|
|
182
|
+
copyLabel: "Copier",
|
|
183
|
+
copiedLabel: "Copi\xE9",
|
|
184
|
+
expandLabel: "D\xE9velopper",
|
|
185
|
+
collapseLabel: "R\xE9duire"
|
|
186
|
+
};
|
|
187
|
+
var jsonViewerLabelsFr = {
|
|
188
|
+
copyLabel: "Copier",
|
|
189
|
+
copiedLabel: "Copi\xE9",
|
|
190
|
+
expandLabel: "D\xE9velopper",
|
|
191
|
+
collapseLabel: "R\xE9duire",
|
|
192
|
+
circularLabel: "R\xE9f\xE9rence circulaire",
|
|
193
|
+
entriesLabel: (count) => `${count} ${count === 1 ? "entr\xE9e" : "entr\xE9es"}`
|
|
194
|
+
};
|
|
195
|
+
var frLabels = {
|
|
196
|
+
alert: alertLabelsFr,
|
|
197
|
+
codeBlock: codeBlockLabelsFr,
|
|
198
|
+
combobox: comboboxLabelsFr,
|
|
199
|
+
commandPalette: commandPaletteLabelsFr,
|
|
200
|
+
confirmDialog: confirmDialogLabelsFr,
|
|
201
|
+
appearanceToggle: appearanceToggleLabelsFr,
|
|
202
|
+
copyButton: copyButtonLabelsFr,
|
|
203
|
+
dataTable: dataTableLabelsFr,
|
|
204
|
+
dataTableFacetedFilter: dataTableFacetedFilterLabelsFr,
|
|
205
|
+
dateFilter: dateFilterLabelsFr,
|
|
206
|
+
dateFilterOperators: dateFilterOperatorsFr,
|
|
207
|
+
dateFilterPresets: dateFilterPresetsFr,
|
|
208
|
+
dateFilterUnits: dateFilterUnitsFr,
|
|
209
|
+
datePicker: datePickerLabelsFr,
|
|
210
|
+
dateRangeFilter: dateRangeFilterLabelsFr,
|
|
211
|
+
floatingSheet: floatingSheetLabelsFr,
|
|
212
|
+
jsonViewer: jsonViewerLabelsFr,
|
|
213
|
+
loginForm: loginFormLabelsFr,
|
|
214
|
+
passwordInput: passwordInputLabelsFr,
|
|
215
|
+
saveStatus: saveStatusLabelsFr,
|
|
216
|
+
settings: settingsLabelsFr,
|
|
217
|
+
tour: tourLabelsFr
|
|
218
|
+
};
|
|
219
|
+
export {
|
|
220
|
+
alertLabelsFr,
|
|
221
|
+
appearanceToggleLabelsFr,
|
|
222
|
+
codeBlockLabelsFr,
|
|
223
|
+
comboboxLabelsFr,
|
|
224
|
+
commandPaletteLabelsFr,
|
|
225
|
+
confirmDialogLabelsFr,
|
|
226
|
+
copyButtonLabelsFr,
|
|
227
|
+
dangerZoneLabelsFr,
|
|
228
|
+
dataTableFacetedFilterLabelsFr,
|
|
229
|
+
dataTableLabelsFr,
|
|
230
|
+
dateFilterLabelsFr,
|
|
231
|
+
dateFilterOperatorsFr,
|
|
232
|
+
dateFilterPresetsFr,
|
|
233
|
+
dateFilterUnitsFr,
|
|
234
|
+
datePickerLabelsFr,
|
|
235
|
+
dateRangeFilterLabelsFr,
|
|
236
|
+
fieldLabelsFr,
|
|
237
|
+
floatingSheetLabelsFr,
|
|
238
|
+
formOverlayLabelsFr,
|
|
239
|
+
frLabels,
|
|
240
|
+
jsonViewerLabelsFr,
|
|
241
|
+
loginFormLabelsFr,
|
|
242
|
+
passwordInputLabelsFr,
|
|
243
|
+
saveStatusLabelsFr,
|
|
244
|
+
settingsLabelsFr,
|
|
245
|
+
tourLabelsFr,
|
|
246
|
+
twoFactorLabelsFr
|
|
247
|
+
};
|
|
248
|
+
//# sourceMappingURL=fr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/locales/fr.ts"],"sourcesContent":["import type { CommandPaletteLabels } from '@/blocks/command-palette';\nimport type { DangerZoneLabels } from '@/blocks/danger-zone';\nimport type {\n DateFilterLabels,\n DateFilterOption,\n} from '@/blocks/date-filter/types';\nimport type { FormOverlayLabels } from '@/blocks/form-overlay';\nimport type { LoginFormLabels } from '@/blocks/login-form/types';\nimport type { SettingsLabels } from '@/blocks/settings-page';\nimport type { TourLabels } from '@/blocks/tour/types';\nimport type { TwoFactorLabels } from '@/blocks/two-factor/types';\nimport type { AlertLabels } from '@/components/ui/alert';\nimport type { AppearanceToggleLabels } from '@/components/ui/appearance-toggle';\nimport type { CodeBlockLabels } from '@/components/ui/code-block';\nimport type { ComboboxLabels } from '@/components/ui/combobox';\nimport type { ConfirmDialogLabels } from '@/components/ui/confirm-dialog';\nimport type { CopyButtonLabels } from '@/components/ui/copy-button';\nimport type { DataTableLabels } from '@/components/ui/data-table';\nimport type { DataTableFacetedFilterLabels } from '@/components/ui/data-table-faceted-filter';\nimport type { DatePickerLabels } from '@/components/ui/date-picker';\nimport type { DateRangeFilterLabels } from '@/components/ui/date-range-filter';\nimport type { FieldLabels } from '@/components/ui/field';\nimport type { FloatingSheetLabels } from '@/components/ui/floating-sheet';\nimport type { JsonViewerLabels } from '@/components/ui/json-viewer';\nimport type { PasswordInputLabels } from '@/components/ui/password-input';\nimport type { SaveStatusLabels } from '@/components/ui/save-status';\nimport type { FullUiLabels } from '@/locales/context';\n\nexport const alertLabelsFr: AlertLabels = {\n warningLabel: 'Avertissement',\n infoLabel: 'Information',\n};\n\nexport const appearanceToggleLabelsFr: AppearanceToggleLabels = {\n groupLabel: 'Apparence',\n lightLabel: 'Clair',\n darkLabel: 'Sombre',\n systemLabel: 'Système',\n};\n\nexport const dataTableLabelsFr: DataTableLabels = {\n searchPlaceholder: 'Rechercher...',\n emptyLabel: 'Aucun résultat.',\n createLabel: 'Nouveau',\n clearFiltersLabel: 'Effacer les filtres',\n paginationLabel: (page, pages) => `Page ${page} sur ${pages}`,\n noOptionsLabel: 'Aucune option.',\n totalLabel: (total) => `${total.toLocaleString('fr-FR')} enregistrements`,\n};\n\nexport const floatingSheetLabelsFr: FloatingSheetLabels = {\n backLabel: 'Retour',\n closeLabel: 'Fermer',\n};\n\nexport const formOverlayLabelsFr: FormOverlayLabels = {\n cancelLabel: 'Annuler',\n saveLabel: 'Enregistrer',\n savingLabel: 'Enregistrement...',\n};\n\nexport const dateRangeFilterLabelsFr: DateRangeFilterLabels = {\n emptyLabel: 'Plage de dates',\n dateFormat: 'dd/MM/yy',\n};\n\nexport const datePickerLabelsFr: DatePickerLabels = {\n placeholder: 'Choisir une date',\n dateFormat: 'dd/MM/yy',\n clearLabel: 'Effacer la date',\n};\n\nexport const comboboxLabelsFr: ComboboxLabels = {\n placeholder: 'Sélectionnez une option',\n searchPlaceholder: 'Rechercher...',\n emptyText: 'Aucun résultat.',\n};\n\nexport const confirmDialogLabelsFr: ConfirmDialogLabels = {\n title: \"Confirmer l'action\",\n description:\n 'Êtes-vous sûr de vouloir continuer ? Cette action ne peut pas être annulée.',\n confirmText: 'Confirmer',\n cancelText: 'Annuler',\n};\n\nexport const fieldLabelsFr: FieldLabels = {\n requiredLabel: 'Obligatoire',\n};\n\nexport const passwordInputLabelsFr: PasswordInputLabels = {\n showLabel: 'Afficher le mot de passe',\n hideLabel: 'Masquer le mot de passe',\n};\n\nexport const dataTableFacetedFilterLabelsFr: DataTableFacetedFilterLabels = {\n noOptionsLabel: 'Aucune option.',\n};\n\nexport const commandPaletteLabelsFr: CommandPaletteLabels = {\n placeholder: 'Rechercher...',\n noResultsLabel: 'Aucun résultat trouvé',\n};\n\nexport const tourLabelsFr: TourLabels = {\n next: 'Suivant',\n previous: 'Précédent',\n done: 'Terminer',\n progress: '{{current}} sur {{total}}',\n};\n\nexport const dateFilterPresetsFr: DateFilterOption[] = [\n { value: 'today', label: \"Aujourd'hui\" },\n { value: 'yesterday', label: 'Hier' },\n { value: 'previous_week', label: 'Semaine précédente' },\n { value: 'previous_7_days', label: '7 derniers jours' },\n { value: 'previous_30_days', label: '30 derniers jours' },\n { value: 'previous_month', label: 'Mois précédent' },\n { value: 'previous_3_months', label: '3 derniers mois' },\n { value: 'previous_12_months', label: '12 derniers mois' },\n];\n\nexport const dateFilterOperatorsFr: DateFilterOption[] = [\n { value: 'between', label: 'Entre' },\n { value: 'before', label: 'Avant' },\n { value: 'on', label: 'Le' },\n { value: 'after', label: 'Après' },\n];\n\nexport const dateFilterUnitsFr: DateFilterOption[] = [\n { value: 'day', label: 'jours' },\n { value: 'week', label: 'semaines' },\n { value: 'month', label: 'mois' },\n { value: 'quarter', label: 'trimestres' },\n { value: 'year', label: 'ans' },\n];\n\nexport const dateFilterLabelsFr: DateFilterLabels = {\n all: 'Toute la période',\n fixed: 'Plage fixe...',\n relative: 'Plage relative...',\n relativeTitle: 'Plage relative',\n apply: 'Appliquer le filtre',\n back: 'Retour',\n latest: 'Derniers',\n ago: 'il y a',\n includeCurrent: 'Inclure la période actuelle',\n startingAgo: 'À partir de',\n removeOffset: 'Supprimer le décalage',\n fallback: 'Date',\n};\n\nexport const settingsLabelsFr: SettingsLabels = {\n back: 'Retour',\n};\n\nexport const saveStatusLabelsFr: SaveStatusLabels = {\n error: \"Vos modifications n'ont pas pu être enregistrées\",\n idle: 'Les modifications sont enregistrées automatiquement',\n saved: 'Enregistré',\n saving: 'Enregistrement',\n};\n\nexport const copyButtonLabelsFr: CopyButtonLabels = {\n copyLabel: 'Copier',\n copiedLabel: 'Copié',\n};\n\nexport const loginFormLabelsFr: LoginFormLabels = {\n emailLabel: 'Adresse e-mail',\n emailPlaceholder: 'email@exemple.com',\n passwordLabel: 'Mot de passe',\n passwordPlaceholder: 'Mot de passe',\n forgotPasswordLabel: 'Mot de passe oublié ?',\n rememberLabel: 'Se souvenir de moi',\n submitLabel: 'Se connecter',\n submittingLabel: 'Connexion',\n};\n\nexport const twoFactorLabelsFr: TwoFactorLabels = {\n setupTitle: 'Authentification à deux facteurs',\n setupDescription:\n 'Ajoutez une seconde étape à votre connexion avec une application authentificatrice.',\n pendingLabel: 'Préparation de votre clé de configuration',\n scanTitle: 'Scannez le code',\n scanDescription:\n \"Ouvrez l'application authentificatrice et scannez le code ci-dessous pour ajouter ce compte.\",\n qrFallbackLabel: \"Le code QR n'est pas encore disponible.\",\n manualKeyLabel: 'Clé de configuration',\n manualKeyDescription:\n \"Saisissez cette clé manuellement si l'application ne peut pas scanner le code.\",\n manualKeyRevealLabel: 'Afficher la clé',\n manualKeyHideLabel: 'Masquer la clé',\n continueLabel: 'Continuer',\n confirmTitle: 'Confirmez le code',\n confirmDescription:\n \"Saisissez le code à six chiffres affiché dans l'application authentificatrice.\",\n codeLabel: \"Code d'authentification\",\n recoveryCodeLabel: 'Code de récupération',\n recoveryCodePlaceholder: 'Saisissez un code de récupération',\n useRecoveryCodeLabel: 'Utiliser un code de récupération',\n useCodeLabel: \"Utiliser un code d'authentification\",\n verifyLabel: 'Vérifier',\n verifyingLabel: 'Vérification',\n errorFallbackLabel: \"Cela n'a pas fonctionné. Réessayez.\",\n cancelLabel: 'Annuler',\n challengeTitle: 'Confirmation à deux facteurs',\n challengeDescription:\n \"Confirmez l'accès à votre compte avec le code de l'application authentificatrice.\",\n recoveryTitle: 'Codes de récupération',\n recoveryDescription:\n 'Conservez ces codes en lieu sûr. Chacun vous permet de vous connecter une fois si vous perdez votre appareil.',\n recoveryWarning:\n \"Ils ne sont affichés qu'une seule fois et ne peuvent pas être consultés à nouveau.\",\n revealLabel: 'Afficher les codes',\n hideLabel: 'Masquer les codes',\n copyLabel: 'Copier',\n copiedLabel: 'Copié',\n copyFailedLabel:\n 'Impossible de copier ici. Sélectionnez les codes manuellement.',\n regenerateLabel: 'Régénérer les codes',\n doneLabel: 'Terminer',\n disableLabel: \"Désactiver l'authentification à deux facteurs\",\n disableTitle: \"Désactiver l'authentification à deux facteurs\",\n disableDescription:\n 'Votre compte ne sera plus protégé que par le mot de passe. Les codes de récupération cesseront de fonctionner.',\n disableConfirmLabel: 'Désactiver',\n disableCancelLabel: 'Garder active',\n};\n\nexport const dangerZoneLabelsFr: DangerZoneLabels = {\n title: 'Zone de danger',\n description:\n 'Ces actions sont définitives et ne peuvent pas être annulées.',\n actionLabel: 'Supprimer',\n confirmTitle: \"Confirmer l'action\",\n confirmDescription:\n 'Êtes-vous sûr de vouloir continuer ? Cette action ne peut pas être annulée.',\n confirmText: 'Confirmer',\n cancelText: 'Annuler',\n requiredValueLabel: 'Saisissez {{value}} pour confirmer',\n};\n\nexport const codeBlockLabelsFr: CodeBlockLabels = {\n copyLabel: 'Copier',\n copiedLabel: 'Copié',\n expandLabel: 'Développer',\n collapseLabel: 'Réduire',\n};\n\nexport const jsonViewerLabelsFr: JsonViewerLabels = {\n copyLabel: 'Copier',\n copiedLabel: 'Copié',\n expandLabel: 'Développer',\n collapseLabel: 'Réduire',\n circularLabel: 'Référence circulaire',\n entriesLabel: (count) => `${count} ${count === 1 ? 'entrée' : 'entrées'}`,\n};\n\nexport const frLabels: FullUiLabels = {\n alert: alertLabelsFr,\n codeBlock: codeBlockLabelsFr,\n combobox: comboboxLabelsFr,\n commandPalette: commandPaletteLabelsFr,\n confirmDialog: confirmDialogLabelsFr,\n appearanceToggle: appearanceToggleLabelsFr,\n copyButton: copyButtonLabelsFr,\n dataTable: dataTableLabelsFr,\n dataTableFacetedFilter: dataTableFacetedFilterLabelsFr,\n dateFilter: dateFilterLabelsFr,\n dateFilterOperators: dateFilterOperatorsFr,\n dateFilterPresets: dateFilterPresetsFr,\n dateFilterUnits: dateFilterUnitsFr,\n datePicker: datePickerLabelsFr,\n dateRangeFilter: dateRangeFilterLabelsFr,\n floatingSheet: floatingSheetLabelsFr,\n jsonViewer: jsonViewerLabelsFr,\n loginForm: loginFormLabelsFr,\n passwordInput: passwordInputLabelsFr,\n saveStatus: saveStatusLabelsFr,\n settings: settingsLabelsFr,\n tour: tourLabelsFr,\n};\n"],"mappings":";AA4BO,IAAM,gBAA6B;A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AAe;AAAA,EACf,eAAe;AAAA,EACf,cAAc,CAAC,UAAU,GAAG,KAAK,IAAI,UAAU,IAAI,cAAW,YAAS;AAC3E;AAEO,IAAM,WAAyB;AAAA,EAClC,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,MAAM;AACV;","names":[]}
|
package/dist/locales/pt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as AlertLabels, J as AppearanceToggleLabels, M as ComboboxLabels, ar as CommandPaletteLabels, Q as ConfirmDialogLabels, C as CopyButtonLabels, W as DataTableFacetedFilterLabels, Y as DataTableLabels, a as DateFilterLabels, b as DateFilterOption, a0 as DatePickerLabels, a3 as DateRangeFilterLabels, F as FloatingSheetLabels, a7 as PasswordInputLabels,
|
|
1
|
+
import { G as AlertLabels, J as AppearanceToggleLabels, M as ComboboxLabels, ar as CommandPaletteLabels, Q as ConfirmDialogLabels, C as CopyButtonLabels, W as DataTableFacetedFilterLabels, Y as DataTableLabels, a as DateFilterLabels, b as DateFilterOption, a0 as DatePickerLabels, a3 as DateRangeFilterLabels, F as FloatingSheetLabels, a7 as PasswordInputLabels, as as FullUiLabels, ab as SaveStatusLabels, q as SettingsLabels } from '../context-Dqf-5Qne.js';
|
|
2
2
|
import { e as DangerZoneLabels, a as FormOverlayLabels, i as TwoFactorLabels } from '../types-CfAUvz--.js';
|
|
3
3
|
import { a as LoginFormLabels, e as TourLabels } from '../types-1LUmNJf_.js';
|
|
4
4
|
import { a as CodeBlockLabels, c as JsonViewerLabels } from '../json-viewer-Bssv9mTD.js';
|
|
@@ -39,6 +39,6 @@ declare const twoFactorLabelsPt: TwoFactorLabels;
|
|
|
39
39
|
declare const dangerZoneLabelsPt: DangerZoneLabels;
|
|
40
40
|
declare const codeBlockLabelsPt: CodeBlockLabels;
|
|
41
41
|
declare const jsonViewerLabelsPt: JsonViewerLabels;
|
|
42
|
-
declare const ptLabels:
|
|
42
|
+
declare const ptLabels: FullUiLabels;
|
|
43
43
|
|
|
44
44
|
export { alertLabelsPt, appearanceToggleLabelsPt, codeBlockLabelsPt, comboboxLabelsPt, commandPaletteLabelsPt, confirmDialogLabelsPt, copyButtonLabelsPt, dangerZoneLabelsPt, dataTableFacetedFilterLabelsPt, dataTableLabelsPt, dateFilterLabelsPt, dateFilterOperatorsPt, dateFilterPresetsPt, dateFilterUnitsPt, datePickerLabelsPt, dateRangeFilterLabelsPt, fieldLabelsPt, floatingSheetLabelsPt, formOverlayLabelsPt, jsonViewerLabelsPt, loginFormLabelsPt, passwordInputLabelsPt, ptLabels, saveStatusLabelsPt, settingsLabelsPt, tourLabelsPt, twoFactorLabelsPt };
|
package/dist/locales/pt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/locales/pt.ts"],"sourcesContent":["import type { CommandPaletteLabels } from '@/blocks/command-palette';\nimport type { DangerZoneLabels } from '@/blocks/danger-zone';\nimport type {\n DateFilterLabels,\n DateFilterOption,\n} from '@/blocks/date-filter/types';\nimport type { FormOverlayLabels } from '@/blocks/form-overlay';\nimport type { LoginFormLabels } from '@/blocks/login-form/types';\nimport type { SettingsLabels } from '@/blocks/settings-page';\nimport type { TourLabels } from '@/blocks/tour/types';\nimport type { TwoFactorLabels } from '@/blocks/two-factor/types';\nimport type { AlertLabels } from '@/components/ui/alert';\nimport type { AppearanceToggleLabels } from '@/components/ui/appearance-toggle';\nimport type { CodeBlockLabels } from '@/components/ui/code-block';\nimport type { ComboboxLabels } from '@/components/ui/combobox';\nimport type { ConfirmDialogLabels } from '@/components/ui/confirm-dialog';\nimport type { CopyButtonLabels } from '@/components/ui/copy-button';\nimport type { DataTableLabels } from '@/components/ui/data-table';\nimport type { DataTableFacetedFilterLabels } from '@/components/ui/data-table-faceted-filter';\nimport type { DatePickerLabels } from '@/components/ui/date-picker';\nimport type { DateRangeFilterLabels } from '@/components/ui/date-range-filter';\nimport type { FieldLabels } from '@/components/ui/field';\nimport type { FloatingSheetLabels } from '@/components/ui/floating-sheet';\nimport type { JsonViewerLabels } from '@/components/ui/json-viewer';\nimport type { PasswordInputLabels } from '@/components/ui/password-input';\nimport type { SaveStatusLabels } from '@/components/ui/save-status';\nimport type { UiLabels } from '@/locales/context';\n\nexport const alertLabelsPt: AlertLabels = {\n warningLabel: 'Aviso',\n infoLabel: 'Informação',\n};\n\nexport const appearanceToggleLabelsPt: AppearanceToggleLabels = {\n groupLabel: 'Aparência',\n lightLabel: 'Claro',\n darkLabel: 'Escuro',\n systemLabel: 'Sistema',\n};\n\nexport const dataTableLabelsPt: DataTableLabels = {\n searchPlaceholder: 'Pesquisar...',\n emptyLabel: 'Sem registos.',\n createLabel: 'Novo',\n clearFiltersLabel: 'Limpar filtros',\n paginationLabel: (page, pages) => `Página ${page} de ${pages}`,\n noOptionsLabel: 'Sem opções.',\n totalLabel: (total) => `${total.toLocaleString('pt-PT')} registos`,\n};\n\nexport const floatingSheetLabelsPt: FloatingSheetLabels = {\n backLabel: 'Voltar',\n closeLabel: 'Fechar',\n};\n\nexport const formOverlayLabelsPt: FormOverlayLabels = {\n cancelLabel: 'Cancelar',\n saveLabel: 'Guardar',\n savingLabel: 'A guardar...',\n};\n\nexport const dateRangeFilterLabelsPt: DateRangeFilterLabels = {\n emptyLabel: 'Período',\n dateFormat: 'dd/MM/yy',\n};\n\nexport const datePickerLabelsPt: DatePickerLabels = {\n placeholder: 'Escolha uma data',\n dateFormat: 'dd/MM/yy',\n clearLabel: 'Limpar data',\n};\n\nexport const comboboxLabelsPt: ComboboxLabels = {\n placeholder: 'Seleccione uma opção',\n searchPlaceholder: 'Pesquisar...',\n emptyText: 'Sem resultados.',\n};\n\nexport const confirmDialogLabelsPt: ConfirmDialogLabels = {\n title: 'Confirmar Ação',\n description:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n};\n\nexport const fieldLabelsPt: FieldLabels = {\n requiredLabel: 'Obrigatório',\n};\n\nexport const passwordInputLabelsPt: PasswordInputLabels = {\n showLabel: 'Mostrar palavra-passe',\n hideLabel: 'Ocultar palavra-passe',\n};\n\nexport const dataTableFacetedFilterLabelsPt: DataTableFacetedFilterLabels = {\n noOptionsLabel: 'Sem opções.',\n};\n\nexport const commandPaletteLabelsPt: CommandPaletteLabels = {\n placeholder: 'Pesquisar...',\n noResultsLabel: 'Nenhum resultado encontrado',\n};\n\nexport const tourLabelsPt: TourLabels = {\n next: 'Seguinte',\n previous: 'Anterior',\n done: 'Concluir',\n progress: '{{current}} de {{total}}',\n};\n\nexport const dateFilterPresetsPt: DateFilterOption[] = [\n { value: 'today', label: 'Hoje' },\n { value: 'yesterday', label: 'Ontem' },\n { value: 'previous_week', label: 'Semana anterior' },\n { value: 'previous_7_days', label: 'Últimos 7 dias' },\n { value: 'previous_30_days', label: 'Últimos 30 dias' },\n { value: 'previous_month', label: 'Mês anterior' },\n { value: 'previous_3_months', label: 'Últimos 3 meses' },\n { value: 'previous_12_months', label: 'Últimos 12 meses' },\n];\n\nexport const dateFilterOperatorsPt: DateFilterOption[] = [\n { value: 'between', label: 'Entre' },\n { value: 'before', label: 'Antes de' },\n { value: 'on', label: 'Em' },\n { value: 'after', label: 'Depois de' },\n];\n\nexport const dateFilterUnitsPt: DateFilterOption[] = [\n { value: 'day', label: 'dias' },\n { value: 'week', label: 'semanas' },\n { value: 'month', label: 'meses' },\n { value: 'quarter', label: 'trimestres' },\n { value: 'year', label: 'anos' },\n];\n\nexport const dateFilterLabelsPt: DateFilterLabels = {\n all: 'Todo o período',\n fixed: 'Intervalo fixo...',\n relative: 'Intervalo relativo...',\n relativeTitle: 'Intervalo relativo',\n apply: 'Aplicar filtro',\n back: 'Voltar',\n latest: 'Últimos',\n ago: 'há',\n includeCurrent: 'Incluir período atual',\n startingAgo: 'A começar há',\n removeOffset: 'Remover deslocamento',\n fallback: 'Data',\n};\n\nexport const settingsLabelsPt: SettingsLabels = {\n back: 'Voltar',\n};\n\nexport const saveStatusLabelsPt: SaveStatusLabels = {\n error: 'Não foi possível guardar as alterações',\n idle: 'As alterações são guardadas automaticamente',\n saved: 'Guardado',\n saving: 'A guardar',\n};\n\nexport const copyButtonLabelsPt: CopyButtonLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n};\n\nexport const loginFormLabelsPt: LoginFormLabels = {\n emailLabel: 'Endereço de email',\n emailPlaceholder: 'email@exemplo.com',\n passwordLabel: 'Palavra-passe',\n passwordPlaceholder: 'Palavra-passe',\n forgotPasswordLabel: 'Esqueceu-se da palavra-passe?',\n rememberLabel: 'Manter sessão iniciada',\n submitLabel: 'Entrar',\n submittingLabel: 'A entrar',\n};\n\nexport const twoFactorLabelsPt: TwoFactorLabels = {\n setupTitle: 'Autenticação de dois fatores',\n setupDescription:\n 'Acrescente um segundo passo ao seu início de sessão com uma aplicação autenticadora.',\n pendingLabel: 'A preparar a sua chave de configuração',\n scanTitle: 'Leia o código',\n scanDescription:\n 'Abra a aplicação autenticadora e leia o código abaixo para adicionar esta conta.',\n qrFallbackLabel: 'O código QR ainda não está disponível.',\n manualKeyLabel: 'Chave de configuração',\n manualKeyDescription:\n 'Introduza esta chave manualmente se a aplicação não conseguir ler o código.',\n manualKeyRevealLabel: 'Mostrar chave',\n manualKeyHideLabel: 'Ocultar chave',\n continueLabel: 'Continuar',\n confirmTitle: 'Confirme o código',\n confirmDescription:\n 'Introduza o código de seis dígitos apresentado na aplicação autenticadora.',\n codeLabel: 'Código de autenticação',\n recoveryCodeLabel: 'Código de recuperação',\n recoveryCodePlaceholder: 'Introduza um código de recuperação',\n useRecoveryCodeLabel: 'Usar um código de recuperação',\n useCodeLabel: 'Usar um código de autenticação',\n verifyLabel: 'Verificar',\n verifyingLabel: 'A verificar',\n errorFallbackLabel: 'Não resultou. Tente novamente.',\n cancelLabel: 'Cancelar',\n challengeTitle: 'Confirmação em dois passos',\n challengeDescription:\n 'Confirme o acesso à sua conta com o código da aplicação autenticadora.',\n recoveryTitle: 'Códigos de recuperação',\n recoveryDescription:\n 'Guarde estes códigos em lugar seguro. Cada um permite um início de sessão se perder o dispositivo.',\n recoveryWarning:\n 'São mostrados uma única vez e não podem ser lidos depois.',\n revealLabel: 'Mostrar códigos',\n hideLabel: 'Ocultar códigos',\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n copyFailedLabel:\n 'Não é possível copiar aqui. Selecione os códigos manualmente.',\n regenerateLabel: 'Gerar novos códigos',\n doneLabel: 'Concluir',\n disableLabel: 'Desativar autenticação de dois fatores',\n disableTitle: 'Desativar autenticação de dois fatores',\n disableDescription:\n 'A sua conta fica protegida apenas pela palavra-passe. Os códigos de recuperação deixam de funcionar.',\n disableConfirmLabel: 'Desativar',\n disableCancelLabel: 'Manter ativa',\n};\n\nexport const dangerZoneLabelsPt: DangerZoneLabels = {\n title: 'Zona de perigo',\n description: 'Estas ações são permanentes e não podem ser desfeitas.',\n actionLabel: 'Eliminar',\n confirmTitle: 'Confirmar Ação',\n confirmDescription:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n requiredValueLabel: 'Escreva {{value}} para confirmar',\n};\n\nexport const codeBlockLabelsPt: CodeBlockLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n};\n\nexport const jsonViewerLabelsPt: JsonViewerLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n circularLabel: 'Referência circular',\n entriesLabel: (count) => `${count} ${count === 1 ? 'entrada' : 'entradas'}`,\n};\n\nexport const ptLabels: UiLabels = {\n alert: alertLabelsPt,\n codeBlock: codeBlockLabelsPt,\n combobox: comboboxLabelsPt,\n commandPalette: commandPaletteLabelsPt,\n confirmDialog: confirmDialogLabelsPt,\n appearanceToggle: appearanceToggleLabelsPt,\n copyButton: copyButtonLabelsPt,\n dataTable: dataTableLabelsPt,\n dataTableFacetedFilter: dataTableFacetedFilterLabelsPt,\n dateFilter: dateFilterLabelsPt,\n dateFilterOperators: dateFilterOperatorsPt,\n dateFilterPresets: dateFilterPresetsPt,\n dateFilterUnits: dateFilterUnitsPt,\n datePicker: datePickerLabelsPt,\n dateRangeFilter: dateRangeFilterLabelsPt,\n floatingSheet: floatingSheetLabelsPt,\n jsonViewer: jsonViewerLabelsPt,\n loginForm: loginFormLabelsPt,\n passwordInput: passwordInputLabelsPt,\n saveStatus: saveStatusLabelsPt,\n settings: settingsLabelsPt,\n tour: tourLabelsPt,\n};\n"],"mappings":";AA4BO,IAAM,gBAA6B;AAAA,EACtC,cAAc;AAAA,EACd,WAAW;AACf;AAEO,IAAM,2BAAmD;AAAA,EAC5D,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AACjB;AAEO,IAAM,oBAAqC;AAAA,EAC9C,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,iBAAiB,CAAC,MAAM,UAAU,aAAU,IAAI,OAAO,KAAK;AAAA,EAC5D,gBAAgB;AAAA,EAChB,YAAY,CAAC,UAAU,GAAG,MAAM,eAAe,OAAO,CAAC;AAC3D;AAEO,IAAM,wBAA6C;AAAA,EACtD,WAAW;AAAA,EACX,YAAY;AAChB;AAEO,IAAM,sBAAyC;AAAA,EAClD,aAAa;AAAA,EACb,W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AU;AAAA,EACV,MAAM;AACV;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/locales/pt.ts"],"sourcesContent":["import type { CommandPaletteLabels } from '@/blocks/command-palette';\nimport type { DangerZoneLabels } from '@/blocks/danger-zone';\nimport type {\n DateFilterLabels,\n DateFilterOption,\n} from '@/blocks/date-filter/types';\nimport type { FormOverlayLabels } from '@/blocks/form-overlay';\nimport type { LoginFormLabels } from '@/blocks/login-form/types';\nimport type { SettingsLabels } from '@/blocks/settings-page';\nimport type { TourLabels } from '@/blocks/tour/types';\nimport type { TwoFactorLabels } from '@/blocks/two-factor/types';\nimport type { AlertLabels } from '@/components/ui/alert';\nimport type { AppearanceToggleLabels } from '@/components/ui/appearance-toggle';\nimport type { CodeBlockLabels } from '@/components/ui/code-block';\nimport type { ComboboxLabels } from '@/components/ui/combobox';\nimport type { ConfirmDialogLabels } from '@/components/ui/confirm-dialog';\nimport type { CopyButtonLabels } from '@/components/ui/copy-button';\nimport type { DataTableLabels } from '@/components/ui/data-table';\nimport type { DataTableFacetedFilterLabels } from '@/components/ui/data-table-faceted-filter';\nimport type { DatePickerLabels } from '@/components/ui/date-picker';\nimport type { DateRangeFilterLabels } from '@/components/ui/date-range-filter';\nimport type { FieldLabels } from '@/components/ui/field';\nimport type { FloatingSheetLabels } from '@/components/ui/floating-sheet';\nimport type { JsonViewerLabels } from '@/components/ui/json-viewer';\nimport type { PasswordInputLabels } from '@/components/ui/password-input';\nimport type { SaveStatusLabels } from '@/components/ui/save-status';\nimport type { FullUiLabels } from '@/locales/context';\n\nexport const alertLabelsPt: AlertLabels = {\n warningLabel: 'Aviso',\n infoLabel: 'Informação',\n};\n\nexport const appearanceToggleLabelsPt: AppearanceToggleLabels = {\n groupLabel: 'Aparência',\n lightLabel: 'Claro',\n darkLabel: 'Escuro',\n systemLabel: 'Sistema',\n};\n\nexport const dataTableLabelsPt: DataTableLabels = {\n searchPlaceholder: 'Pesquisar...',\n emptyLabel: 'Sem registos.',\n createLabel: 'Novo',\n clearFiltersLabel: 'Limpar filtros',\n paginationLabel: (page, pages) => `Página ${page} de ${pages}`,\n noOptionsLabel: 'Sem opções.',\n totalLabel: (total) => `${total.toLocaleString('pt-PT')} registos`,\n};\n\nexport const floatingSheetLabelsPt: FloatingSheetLabels = {\n backLabel: 'Voltar',\n closeLabel: 'Fechar',\n};\n\nexport const formOverlayLabelsPt: FormOverlayLabels = {\n cancelLabel: 'Cancelar',\n saveLabel: 'Guardar',\n savingLabel: 'A guardar...',\n};\n\nexport const dateRangeFilterLabelsPt: DateRangeFilterLabels = {\n emptyLabel: 'Período',\n dateFormat: 'dd/MM/yy',\n};\n\nexport const datePickerLabelsPt: DatePickerLabels = {\n placeholder: 'Escolha uma data',\n dateFormat: 'dd/MM/yy',\n clearLabel: 'Limpar data',\n};\n\nexport const comboboxLabelsPt: ComboboxLabels = {\n placeholder: 'Seleccione uma opção',\n searchPlaceholder: 'Pesquisar...',\n emptyText: 'Sem resultados.',\n};\n\nexport const confirmDialogLabelsPt: ConfirmDialogLabels = {\n title: 'Confirmar Ação',\n description:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n};\n\nexport const fieldLabelsPt: FieldLabels = {\n requiredLabel: 'Obrigatório',\n};\n\nexport const passwordInputLabelsPt: PasswordInputLabels = {\n showLabel: 'Mostrar palavra-passe',\n hideLabel: 'Ocultar palavra-passe',\n};\n\nexport const dataTableFacetedFilterLabelsPt: DataTableFacetedFilterLabels = {\n noOptionsLabel: 'Sem opções.',\n};\n\nexport const commandPaletteLabelsPt: CommandPaletteLabels = {\n placeholder: 'Pesquisar...',\n noResultsLabel: 'Nenhum resultado encontrado',\n};\n\nexport const tourLabelsPt: TourLabels = {\n next: 'Seguinte',\n previous: 'Anterior',\n done: 'Concluir',\n progress: '{{current}} de {{total}}',\n};\n\nexport const dateFilterPresetsPt: DateFilterOption[] = [\n { value: 'today', label: 'Hoje' },\n { value: 'yesterday', label: 'Ontem' },\n { value: 'previous_week', label: 'Semana anterior' },\n { value: 'previous_7_days', label: 'Últimos 7 dias' },\n { value: 'previous_30_days', label: 'Últimos 30 dias' },\n { value: 'previous_month', label: 'Mês anterior' },\n { value: 'previous_3_months', label: 'Últimos 3 meses' },\n { value: 'previous_12_months', label: 'Últimos 12 meses' },\n];\n\nexport const dateFilterOperatorsPt: DateFilterOption[] = [\n { value: 'between', label: 'Entre' },\n { value: 'before', label: 'Antes de' },\n { value: 'on', label: 'Em' },\n { value: 'after', label: 'Depois de' },\n];\n\nexport const dateFilterUnitsPt: DateFilterOption[] = [\n { value: 'day', label: 'dias' },\n { value: 'week', label: 'semanas' },\n { value: 'month', label: 'meses' },\n { value: 'quarter', label: 'trimestres' },\n { value: 'year', label: 'anos' },\n];\n\nexport const dateFilterLabelsPt: DateFilterLabels = {\n all: 'Todo o período',\n fixed: 'Intervalo fixo...',\n relative: 'Intervalo relativo...',\n relativeTitle: 'Intervalo relativo',\n apply: 'Aplicar filtro',\n back: 'Voltar',\n latest: 'Últimos',\n ago: 'há',\n includeCurrent: 'Incluir período atual',\n startingAgo: 'A começar há',\n removeOffset: 'Remover deslocamento',\n fallback: 'Data',\n};\n\nexport const settingsLabelsPt: SettingsLabels = {\n back: 'Voltar',\n};\n\nexport const saveStatusLabelsPt: SaveStatusLabels = {\n error: 'Não foi possível guardar as alterações',\n idle: 'As alterações são guardadas automaticamente',\n saved: 'Guardado',\n saving: 'A guardar',\n};\n\nexport const copyButtonLabelsPt: CopyButtonLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n};\n\nexport const loginFormLabelsPt: LoginFormLabels = {\n emailLabel: 'Endereço de email',\n emailPlaceholder: 'email@exemplo.com',\n passwordLabel: 'Palavra-passe',\n passwordPlaceholder: 'Palavra-passe',\n forgotPasswordLabel: 'Esqueceu-se da palavra-passe?',\n rememberLabel: 'Manter sessão iniciada',\n submitLabel: 'Entrar',\n submittingLabel: 'A entrar',\n};\n\nexport const twoFactorLabelsPt: TwoFactorLabels = {\n setupTitle: 'Autenticação de dois fatores',\n setupDescription:\n 'Acrescente um segundo passo ao seu início de sessão com uma aplicação autenticadora.',\n pendingLabel: 'A preparar a sua chave de configuração',\n scanTitle: 'Leia o código',\n scanDescription:\n 'Abra a aplicação autenticadora e leia o código abaixo para adicionar esta conta.',\n qrFallbackLabel: 'O código QR ainda não está disponível.',\n manualKeyLabel: 'Chave de configuração',\n manualKeyDescription:\n 'Introduza esta chave manualmente se a aplicação não conseguir ler o código.',\n manualKeyRevealLabel: 'Mostrar chave',\n manualKeyHideLabel: 'Ocultar chave',\n continueLabel: 'Continuar',\n confirmTitle: 'Confirme o código',\n confirmDescription:\n 'Introduza o código de seis dígitos apresentado na aplicação autenticadora.',\n codeLabel: 'Código de autenticação',\n recoveryCodeLabel: 'Código de recuperação',\n recoveryCodePlaceholder: 'Introduza um código de recuperação',\n useRecoveryCodeLabel: 'Usar um código de recuperação',\n useCodeLabel: 'Usar um código de autenticação',\n verifyLabel: 'Verificar',\n verifyingLabel: 'A verificar',\n errorFallbackLabel: 'Não resultou. Tente novamente.',\n cancelLabel: 'Cancelar',\n challengeTitle: 'Confirmação em dois passos',\n challengeDescription:\n 'Confirme o acesso à sua conta com o código da aplicação autenticadora.',\n recoveryTitle: 'Códigos de recuperação',\n recoveryDescription:\n 'Guarde estes códigos em lugar seguro. Cada um permite um início de sessão se perder o dispositivo.',\n recoveryWarning:\n 'São mostrados uma única vez e não podem ser lidos depois.',\n revealLabel: 'Mostrar códigos',\n hideLabel: 'Ocultar códigos',\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n copyFailedLabel:\n 'Não é possível copiar aqui. Selecione os códigos manualmente.',\n regenerateLabel: 'Gerar novos códigos',\n doneLabel: 'Concluir',\n disableLabel: 'Desativar autenticação de dois fatores',\n disableTitle: 'Desativar autenticação de dois fatores',\n disableDescription:\n 'A sua conta fica protegida apenas pela palavra-passe. Os códigos de recuperação deixam de funcionar.',\n disableConfirmLabel: 'Desativar',\n disableCancelLabel: 'Manter ativa',\n};\n\nexport const dangerZoneLabelsPt: DangerZoneLabels = {\n title: 'Zona de perigo',\n description: 'Estas ações são permanentes e não podem ser desfeitas.',\n actionLabel: 'Eliminar',\n confirmTitle: 'Confirmar Ação',\n confirmDescription:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n requiredValueLabel: 'Escreva {{value}} para confirmar',\n};\n\nexport const codeBlockLabelsPt: CodeBlockLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n};\n\nexport const jsonViewerLabelsPt: JsonViewerLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n circularLabel: 'Referência circular',\n entriesLabel: (count) => `${count} ${count === 1 ? 'entrada' : 'entradas'}`,\n};\n\nexport const ptLabels: FullUiLabels = {\n alert: alertLabelsPt,\n codeBlock: codeBlockLabelsPt,\n combobox: comboboxLabelsPt,\n commandPalette: commandPaletteLabelsPt,\n confirmDialog: confirmDialogLabelsPt,\n appearanceToggle: appearanceToggleLabelsPt,\n copyButton: copyButtonLabelsPt,\n dataTable: dataTableLabelsPt,\n dataTableFacetedFilter: dataTableFacetedFilterLabelsPt,\n dateFilter: dateFilterLabelsPt,\n dateFilterOperators: dateFilterOperatorsPt,\n dateFilterPresets: dateFilterPresetsPt,\n dateFilterUnits: dateFilterUnitsPt,\n datePicker: datePickerLabelsPt,\n dateRangeFilter: dateRangeFilterLabelsPt,\n floatingSheet: floatingSheetLabelsPt,\n jsonViewer: jsonViewerLabelsPt,\n loginForm: loginFormLabelsPt,\n passwordInput: passwordInputLabelsPt,\n saveStatus: saveStatusLabelsPt,\n settings: settingsLabelsPt,\n tour: tourLabelsPt,\n};\n"],"mappings":";AA4BO,IAAM,gBAA6B;AAAA,EACtC,cAAc;AAA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A,EACf,cAAc,CAAC,UAAU,GAAG,KAAK,IAAI,UAAU,IAAI,YAAY,UAAU;AAC7E;AAEO,IAAM,WAAyB;AAAA,EAClC,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,MAAM;AACV;","names":[]}
|
package/dist/shells.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { U as UrlLike, N as NavGroup, c as NavItem, d as SharedUser, L as LinkCo
|
|
|
2
2
|
export { C as Column, a as ColumnDef, F as FilterFn, I as IconComponent, e as LinkProps, b as LucideIcon, R as Row, T as TableInstance } from './types-CMZRvMV5.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode, ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
5
|
-
import { d as SidebarGroup } from './sidebar-
|
|
5
|
+
import { d as SidebarGroup } from './sidebar-_xQ3IehY.js';
|
|
6
6
|
import '@tanstack/react-table';
|
|
7
7
|
import 'lucide-react';
|
|
8
8
|
import 'class-variance-authority/types';
|
package/dist/shells.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-IQMRJXEO.js";
|
|
8
8
|
import {
|
|
9
9
|
Card
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NKPFIA32.js";
|
|
11
11
|
import {
|
|
12
12
|
AppSidebar,
|
|
13
13
|
AppSidebarHeader,
|
|
@@ -22,19 +22,20 @@ import {
|
|
|
22
22
|
UserMenuContent,
|
|
23
23
|
useCollapsedGroup,
|
|
24
24
|
useInitials
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MCHHCLV3.js";
|
|
26
26
|
import {
|
|
27
27
|
SidebarInset,
|
|
28
28
|
SidebarProvider,
|
|
29
29
|
useIsMobile
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PYXUFFMO.js";
|
|
31
31
|
import {
|
|
32
32
|
hrefToString
|
|
33
33
|
} from "./chunk-L2H5GIF7.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-EXTOGROG.js";
|
|
35
|
+
import "./chunk-53V4J7MC.js";
|
|
35
36
|
import {
|
|
36
37
|
cn
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-PPWJK5T3.js";
|
|
38
39
|
|
|
39
40
|
// src/shells/app-content.tsx
|
|
40
41
|
import { jsx } from "react/jsx-runtime";
|