mood-ui 0.13.1 → 0.14.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/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Drawer.cjs.map +1 -1
- package/dist/components/feedback/Drawer.mjs.map +1 -1
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs +11 -7
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs +17 -13
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Modal.cjs.map +1 -1
- package/dist/components/feedback/Modal.mjs.map +1 -1
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs +10 -3
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs +16 -9
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Toast.cjs +1 -1
- package/dist/components/feedback/Toast.cjs.map +1 -1
- package/dist/components/feedback/Toast.mjs +1 -1
- package/dist/components/feedback/Toast.mjs.map +1 -1
- package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.cjs +4 -2
- package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.mjs +5 -3
- package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/ToastContainer.cjs +1 -1
- package/dist/components/feedback/ToastContainer.cjs.map +1 -1
- package/dist/components/feedback/ToastContainer.mjs +1 -1
- package/dist/components/feedback/ToastContainer.mjs.map +1 -1
- package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.cjs +4 -2
- package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.mjs +6 -4
- package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/dialog/DialogTrigger.cjs.map +1 -1
- package/dist/components/feedback/dialog/DialogTrigger.mjs.map +1 -1
- package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
- package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
- package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/sheet/SheetTrigger.cjs.map +1 -1
- package/dist/components/feedback/sheet/SheetTrigger.mjs.map +1 -1
- package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
- package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
- package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelect.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelect.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.cjs +53 -6
- package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.mjs +54 -7
- package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs +33 -8
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs +34 -9
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContext.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContext.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs +31 -14
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs +32 -15
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.cjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.mjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.cjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.mjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs +7 -0
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs +7 -0
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/config/ModoLocale.cjs +4 -0
- package/dist/config/ModoLocale.cjs.map +1 -1
- package/dist/config/ModoLocale.mjs +4 -0
- package/dist/config/ModoLocale.mjs.map +1 -1
- package/dist/config/locales/es.cjs +4 -0
- package/dist/config/locales/es.cjs.map +1 -1
- package/dist/config/locales/es.mjs +4 -0
- package/dist/config/locales/es.mjs.map +1 -1
- package/dist/mood-ui.css +35 -27
- package/dist/types/components/forms/morph-select/MorphSelect.vue.d.ts +8 -7
- package/dist/types/components/forms/morph-select/MorphSelectContext.d.ts +6 -1
- package/dist/types/components/forms/morph-select/MorphSelectTrigger.vue.d.ts +6 -3
- package/dist/types/components/forms/morph-select/index.d.ts +24 -18
- package/dist/types/config/ModoLocale.d.ts +6 -0
- package/dist/types/interfaces/feedback/Drawer.interface.d.ts +2 -0
- package/dist/types/interfaces/feedback/Modal.interface.d.ts +2 -0
- package/dist/types/interfaces/forms/ModeOrb.interface.d.ts +3 -3
- package/dist/types/interfaces/forms/MorphSelect.interface.d.ts +13 -5
- package/dist/types/utils/morph/morphHelpers.d.ts +6 -0
- package/dist/utils/morph/morphHelpers.cjs +16 -0
- package/dist/utils/morph/morphHelpers.cjs.map +1 -1
- package/dist/utils/morph/morphHelpers.mjs +16 -1
- package/dist/utils/morph/morphHelpers.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModoLocale.mjs","names":[],"sources":["../../src/config/ModoLocale.ts"],"sourcesContent":["import type { InjectionKey, Ref } from \"vue\";\n\n/**\n * Design-system locale strings.\n *\n * Every namespace corresponds to a component (or a small group). Keys are\n * stable contract — renaming a key is a breaking change for consumers.\n *\n * Rules:\n * - Keep entries short and component-scoped. This is UI copy, not i18n\n * for user content.\n * - Never use HTML. These strings are injected as text / aria-label.\n * - Placeholders use `{name}` interpolation (see `interpolate()`).\n *\n * Precedence resolved by components:\n * component prop (e.g. `rejectMessages`) → provider locale → default EN.\n */\nexport interface ModoLocale {\n /** Shared strings used across multiple components. */\n common: {\n clear: string;\n loading: string;\n close: string;\n dismiss: string;\n remove: string;\n };\n input: {\n clear: string;\n };\n textarea: {\n clear: string;\n };\n select: {\n empty: string;\n clear: string;\n clearSearch: string;\n };\n multiSelect: {\n clear: string;\n clearSearch: string;\n };\n combobox: {\n clear: string;\n toggleOptions: string;\n };\n numberInput: {\n increment: string;\n decrement: string;\n };\n searchInput: {\n clear: string;\n };\n passwordInput: {\n show: string;\n hide: string;\n /** Label per strength score. Empty string `''` is valid for score 0. */\n strength: {\n 0: string;\n 1: string;\n 2: string;\n 3: string;\n 4: string;\n };\n };\n dateField: {\n clear: string;\n };\n dateTimeField: {\n clear: string;\n };\n dateRangeField: {\n clear: string;\n };\n calendar: {\n prevYear: string;\n prevMonth: string;\n nextMonth: string;\n nextYear: string;\n today: string;\n };\n agenda: {\n empty: string;\n };\n fileInput: {\n /** Trigger / inline placeholder. */\n placeholder: string;\n /** aria-label when variant='area' and no explicit label is given. */\n uploadFiles: string;\n /** Default for `dropzoneLabel` when variant='area' and nothing selected. */\n dropzoneLabel: string;\n dropzoneLabelMultiple: string;\n /** Default for helper text under the trigger (\"up to 5MB · max 3\"). */\n hintUpTo: string;\n hintMax: string;\n /** Action labels for the inline browse button. */\n browse: string;\n addMore: string;\n replace: string;\n /** Headline when several files are selected: `{count} files selected`. */\n filesSelected: string;\n reject: {\n size: string;\n sizeNoLimit: string;\n type: string;\n count: string;\n countNoLimit: string;\n };\n };\n banner: {\n dismiss: string;\n };\n badge: {\n remove: string;\n };\n avatarGroup: {\n /** `{count}` placeholder: total users in the group. */\n group: string;\n };\n slider: {\n /** Generic aria-label when no label / ariaLabel is provided. */\n aria: string;\n };\n skeleton: {\n loading: string;\n };\n avatarUpload: {\n /** Accessible label for the upload dropzone button. */\n uploadLabel: string;\n /** Body text inside the dropzone when empty. */\n dragPrompt: string;\n generateLabel: string;\n regenerateLabel: string;\n saveLabel: string;\n removeLabel: string;\n cancelLabel: string;\n cropTitle: string;\n cropConfirm: string;\n cropReset: string;\n /** Default placeholder for the AI prompt input. */\n promptPlaceholder: string;\n /** Accessible label for the variant selector group. */\n variantLabel: string;\n /** Accessible label for the prompt suggestions chip group. */\n promptSuggestionsLabel: string;\n /** Screen-reader live announcement while generating. */\n generating: string;\n /** Screen-reader live announcement on success. */\n generated: string;\n saving: string;\n saved: string;\n errorGenerate: string;\n errorUpload: string;\n errorSave: string;\n /** `{limit}` placeholder: human-readable size (e.g. \"5 MB\"). */\n errorSize: string;\n /** `{types}` placeholder: comma-separated list of allowed formats. */\n errorType: string;\n /** Badge label shown on AI-generated avatars. */\n aiLabel: string;\n };\n phoneInput: {\n /** aria-label on the country selector button. */\n selectCountry: string;\n /** Placeholder inside the country search box. */\n searchCountry: string;\n /** Empty state when country search returns no matches. */\n noResults: string;\n };\n otpInput: {\n /** Prefix for per-slot aria-label: \"Digit 1\", \"Digit 2\"… */\n digit: string;\n };\n /**\n * Strings for the `Table` component family. Phase 1 only ships a small\n * subset (empty/loading/caption); later phases extend this namespace\n * with sort, selection, pagination, filter, edit, group, toolbar.\n */\n table: {\n /** Empty state when `data` is empty and no filter is applied. */\n empty: string;\n /** Empty state when filtering produced zero rows. */\n noResults: string;\n /** Visually hidden caption / aria-label fallback. */\n defaultLabel: string;\n /** SR-only announcement while `loading` is true. */\n loading: string;\n /** Sortable column hints (announced via `aria-sort` + button label). */\n sortAscending: string;\n sortDescending: string;\n sortNone: string;\n /** Live region announcement when a column gets sorted. */\n sortedBy: string;\n /** Selection a11y. */\n selectAllRows: string;\n selectRow: string;\n /** Live region after a row is (de)selected: `{count} selected`. */\n selectedCount: string;\n /** Row expansion controls. */\n expandRow: string;\n collapseRow: string;\n /** Filter row UX. */\n filterPlaceholder: string;\n clearFilter: string;\n /** Global search input (Phase 5a · toolbar). */\n searchPlaceholder: string;\n /** Toolbar column-visibility menu (Phase 5b). */\n columnVisibility: string;\n /** Toolbar export menu (Phase 5c). */\n export: string;\n exportCsv: string;\n exportJson: string;\n exportClipboard: string;\n /** Live region after Ctrl/Cmd+C copy of selected rows (Phase 5e). */\n copiedRows: string;\n /** Column resize handle (aria-label). */\n resizeColumn: string;\n /** Column reorder drag handle / announcement. */\n reorderColumn: string;\n /** Live region: `Moved {column} to position {position}`. */\n movedColumn: string;\n /** Pagination controls (used by `<TablePagination>`). */\n pagination: {\n previous: string;\n next: string;\n first: string;\n last: string;\n /** `Page {current} of {total}` when both numbers are known. */\n page: string;\n rowsPerPage: string;\n /** Range readout: `{from}-{to} of {total}`. */\n range: string;\n /** Range readout when total is unknown: `{from}-{to}`. */\n rangeUnknown: string;\n };\n /** Inline cell editing (Phase 4a). */\n edit: {\n /** Aria-label / tooltip on an editable cell's editor. */\n editCell: string;\n /** Hint shown after entering edit mode (sr-only). */\n commitHint: string;\n /** Generic invalid-value message used when no validator runs. */\n invalid: string;\n };\n };\n switcher: {\n /** Default aria-label for the trigger when no `ariaLabel` prop is passed. */\n ariaLabel: string;\n /** Trigger primary text when no item matches `modelValue`. */\n placeholder: string;\n /** Search input placeholder when `searchable=true`. */\n searchPlaceholder: string;\n /** Shown inside the panel when `items.length === 0`. */\n empty: string;\n /** Shown inside the panel when the search query matches no items. */\n noResults: string;\n /** Visually hidden text appended to the active item for screen readers. */\n activeItemSr: string;\n };\n dialog: {\n /** Fallback accessible name when the dialog has no DialogTitle. */\n label: string;\n };\n sheet: {\n /** Fallback accessible name when the sheet has no SheetTitle. */\n label: string;\n };\n morphSelect: {\n placeholder: string;\n searchPlaceholder: string;\n empty: string;\n };\n liquidToast: {\n /** Accessible name of the toaster landmark. */\n region: string;\n };\n modeOrb: {\n /** Default aria-label of the color-mode toggle. */\n toggle: string;\n };\n}\n\n/** Default locale (English). Serves as the non-breaking fallback. */\nexport const defaultLocale: ModoLocale = {\n common: {\n clear: \"Clear\",\n loading: \"Loading\",\n close: \"Close\",\n dismiss: \"Dismiss\",\n remove: \"Remove\",\n },\n input: { clear: \"Clear input\" },\n textarea: { clear: \"Clear textarea\" },\n select: {\n empty: \"No results.\",\n clear: \"Clear selection\",\n clearSearch: \"Clear search\",\n },\n multiSelect: {\n clear: \"Clear selection\",\n clearSearch: \"Clear search\",\n },\n combobox: {\n clear: \"Clear\",\n toggleOptions: \"Toggle options\",\n },\n numberInput: {\n increment: \"Increment\",\n decrement: \"Decrement\",\n },\n searchInput: { clear: \"Clear search\" },\n passwordInput: {\n show: \"Show password\",\n hide: \"Hide password\",\n strength: { 0: \"\", 1: \"Weak\", 2: \"Fair\", 3: \"Good\", 4: \"Strong\" },\n },\n dateField: { clear: \"Clear date\" },\n dateTimeField: { clear: \"Clear datetime\" },\n dateRangeField: { clear: \"Clear range\" },\n calendar: {\n prevYear: \"Previous year\",\n prevMonth: \"Previous month\",\n nextMonth: \"Next month\",\n nextYear: \"Next year\",\n today: \"Go to today\",\n },\n agenda: { empty: \"No upcoming events\" },\n fileInput: {\n placeholder: \"Click or drop files…\",\n uploadFiles: \"Upload files\",\n dropzoneLabel: \"Drag a file here or click to browse\",\n dropzoneLabelMultiple: \"Drag files here or click to browse\",\n hintUpTo: \"up to {limit}\",\n hintMax: \"max {limit}\",\n browse: \"Browse\",\n addMore: \"Add more\",\n replace: \"Replace\",\n filesSelected: \"{count} files selected\",\n reject: {\n size: \"Too big (max {limit})\",\n sizeNoLimit: \"File too big\",\n type: \"Type not allowed\",\n count: \"Too many files (max {limit})\",\n countNoLimit: \"Too many files\",\n },\n },\n banner: { dismiss: \"Dismiss\" },\n badge: { remove: \"Remove\" },\n avatarGroup: { group: \"Group of {count} users\" },\n slider: { aria: \"Slider\" },\n skeleton: { loading: \"Loading\" },\n avatarUpload: {\n uploadLabel: \"Upload avatar. Drag an image or press Enter to browse\",\n dragPrompt: \"Drag an image or click to browse\",\n generateLabel: \"Generate with AI\",\n regenerateLabel: \"Regenerate\",\n saveLabel: \"Save\",\n removeLabel: \"Remove avatar\",\n cancelLabel: \"Cancel\",\n cropTitle: \"Crop image\",\n cropConfirm: \"Confirm crop\",\n cropReset: \"Reset\",\n promptPlaceholder: \"Describe how you want to look…\",\n variantLabel: \"Visual style\",\n promptSuggestionsLabel: \"Quick prompts\",\n generating: \"Generating avatar…\",\n generated: \"Avatar generated successfully\",\n saving: \"Saving avatar…\",\n saved: \"Avatar saved\",\n errorGenerate: \"Failed to generate avatar\",\n errorUpload: \"Failed to process the image\",\n errorSave: \"Failed to save avatar\",\n errorSize: \"File exceeds the maximum size of {limit}\",\n errorType: \"Format not allowed. Use {types}\",\n aiLabel: \"AI generated\",\n },\n phoneInput: {\n selectCountry: \"Select country\",\n searchCountry: \"Search country\\u2026\",\n noResults: \"No results\",\n },\n otpInput: {\n digit: \"Digit\",\n },\n table: {\n empty: \"No data\",\n noResults: \"No results match your filters\",\n defaultLabel: \"Data table\",\n loading: \"Loading rows\",\n sortAscending: \"Sort ascending\",\n sortDescending: \"Sort descending\",\n sortNone: \"Clear sort\",\n sortedBy: \"Sorted by {column} {direction}\",\n selectAllRows: \"Select all rows\",\n selectRow: \"Select row\",\n selectedCount: \"{count} selected\",\n expandRow: \"Expand row\",\n collapseRow: \"Collapse row\",\n filterPlaceholder: \"Filter…\",\n clearFilter: \"Clear filter\",\n searchPlaceholder: \"Search…\",\n columnVisibility: \"Columns\",\n export: \"Export\",\n exportCsv: \"Download CSV\",\n copiedRows: \"{count} rows copied\",\n exportJson: \"Download JSON\",\n exportClipboard: \"Copy to clipboard\",\n resizeColumn: \"Resize column\",\n reorderColumn: \"Reorder column\",\n movedColumn: \"Moved {column} to position {position}\",\n pagination: {\n previous: \"Previous page\",\n next: \"Next page\",\n first: \"First page\",\n last: \"Last page\",\n page: \"Page {current} of {total}\",\n rowsPerPage: \"Rows per page\",\n range: \"{from}-{to} of {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Edit cell\",\n commitHint: \"Press Enter to save, Escape to cancel.\",\n invalid: \"Invalid value\",\n },\n },\n switcher: {\n ariaLabel: \"Switch context\",\n placeholder: \"Select…\",\n searchPlaceholder: \"Search…\",\n empty: \"No options.\",\n noResults: \"No matches.\",\n activeItemSr: \"Currently selected\",\n },\n dialog: { label: \"Dialog\" },\n sheet: { label: \"Sheet\" },\n morphSelect: {\n placeholder: \"Select…\",\n searchPlaceholder: \"Search…\",\n empty: \"No results.\",\n },\n liquidToast: { region: \"Notifications\" },\n modeOrb: { toggle: \"Toggle color mode\" },\n};\n\n/** Deep-partial for consumer overrides. Each leaf string stays optional. */\nexport type DeepPartial<T> = {\n [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];\n};\n\nexport type PartialLocale = DeepPartial<ModoLocale>;\n\n/** Deep-merge `override` into `base`. Non-destructive; returns a new object. */\nexport function mergeLocale(\n base: ModoLocale,\n override?: PartialLocale,\n): ModoLocale {\n if (!override) return base;\n const out: any = {};\n for (const key of Object.keys(base) as (keyof ModoLocale)[]) {\n const b = (base as any)[key];\n const o = (override as any)[key];\n if (o === undefined) {\n out[key] = b;\n } else if (b && typeof b === \"object\" && !Array.isArray(b)) {\n out[key] = deepMergeObj(b, o);\n } else {\n out[key] = o;\n }\n }\n return out as ModoLocale;\n}\n\nfunction deepMergeObj(base: any, override: any): any {\n if (!override) return base;\n const out: any = { ...base };\n for (const key of Object.keys(override)) {\n const b = base[key];\n const o = override[key];\n if (\n b &&\n typeof b === \"object\" &&\n !Array.isArray(b) &&\n o &&\n typeof o === \"object\" &&\n !Array.isArray(o)\n ) {\n out[key] = deepMergeObj(b, o);\n } else if (o !== undefined) {\n out[key] = o;\n }\n }\n return out;\n}\n\n/**\n * Simple `{name}` interpolator. Values not provided pass through (keeps the\n * placeholder untouched), so missing data never throws.\n */\nexport function interpolate(\n template: string,\n vars?: Record<string, string | number>,\n): string {\n if (!template || !vars) return template;\n return template.replace(/\\{(\\w+)\\}/g, (match, k) => {\n const v = vars[k];\n return v === undefined || v === null ? match : String(v);\n });\n}\n\nexport const MODO_LOCALE: InjectionKey<Ref<ModoLocale>> = Symbol(\"modo-locale\");\n"],"mappings":";;AA0RA,IAAa,gBAA4B;CACvC,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO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,OAAO;CACtB,MAAM,MAAW,EAAE,GAAG,MAAM;CAC5B,KAAK,MAAM,OAAO,OAAO,KAAK,SAAS,EAAE;EACvC,MAAM,IAAI,KAAK;EACf,MAAM,IAAI,SAAS;EACnB,IACE,KACA,OAAO,MAAM,YACb,CAAC,MAAM,QAAQ,EAAE,IACjB,KACA,OAAO,MAAM,YACb,CAAC,MAAM,QAAQ,EAAE,EAEjB,IAAI,OAAO,aAAa,GAAG,EAAE;OACxB,IAAI,MAAM,KAAA,GACf,IAAI,OAAO;;CAGf,OAAO;;;;;;AAOT,SAAgB,YACd,UACA,MACQ;CACR,IAAI,CAAC,YAAY,CAAC,MAAM,OAAO;CAC/B,OAAO,SAAS,QAAQ,eAAe,OAAO,MAAM;EAClD,MAAM,IAAI,KAAK;EACf,OAAO,MAAM,KAAA,KAAa,MAAM,OAAO,QAAQ,OAAO,EAAE;GACxD;;AAGJ,IAAa,cAA6C,OAAO,cAAc"}
|
|
1
|
+
{"version":3,"file":"ModoLocale.mjs","names":[],"sources":["../../src/config/ModoLocale.ts"],"sourcesContent":["import type { InjectionKey, Ref } from \"vue\";\n\n/**\n * Design-system locale strings.\n *\n * Every namespace corresponds to a component (or a small group). Keys are\n * stable contract — renaming a key is a breaking change for consumers.\n *\n * Rules:\n * - Keep entries short and component-scoped. This is UI copy, not i18n\n * for user content.\n * - Never use HTML. These strings are injected as text / aria-label.\n * - Placeholders use `{name}` interpolation (see `interpolate()`).\n *\n * Precedence resolved by components:\n * component prop (e.g. `rejectMessages`) → provider locale → default EN.\n */\nexport interface ModoLocale {\n /** Shared strings used across multiple components. */\n common: {\n clear: string;\n loading: string;\n close: string;\n dismiss: string;\n remove: string;\n };\n input: {\n clear: string;\n };\n textarea: {\n clear: string;\n };\n select: {\n empty: string;\n clear: string;\n clearSearch: string;\n };\n multiSelect: {\n clear: string;\n clearSearch: string;\n };\n combobox: {\n clear: string;\n toggleOptions: string;\n };\n numberInput: {\n increment: string;\n decrement: string;\n };\n searchInput: {\n clear: string;\n };\n passwordInput: {\n show: string;\n hide: string;\n /** Label per strength score. Empty string `''` is valid for score 0. */\n strength: {\n 0: string;\n 1: string;\n 2: string;\n 3: string;\n 4: string;\n };\n };\n dateField: {\n clear: string;\n };\n dateTimeField: {\n clear: string;\n };\n dateRangeField: {\n clear: string;\n };\n calendar: {\n prevYear: string;\n prevMonth: string;\n nextMonth: string;\n nextYear: string;\n today: string;\n };\n agenda: {\n empty: string;\n };\n fileInput: {\n /** Trigger / inline placeholder. */\n placeholder: string;\n /** aria-label when variant='area' and no explicit label is given. */\n uploadFiles: string;\n /** Default for `dropzoneLabel` when variant='area' and nothing selected. */\n dropzoneLabel: string;\n dropzoneLabelMultiple: string;\n /** Default for helper text under the trigger (\"up to 5MB · max 3\"). */\n hintUpTo: string;\n hintMax: string;\n /** Action labels for the inline browse button. */\n browse: string;\n addMore: string;\n replace: string;\n /** Headline when several files are selected: `{count} files selected`. */\n filesSelected: string;\n reject: {\n size: string;\n sizeNoLimit: string;\n type: string;\n count: string;\n countNoLimit: string;\n };\n };\n banner: {\n dismiss: string;\n };\n badge: {\n remove: string;\n };\n avatarGroup: {\n /** `{count}` placeholder: total users in the group. */\n group: string;\n };\n slider: {\n /** Generic aria-label when no label / ariaLabel is provided. */\n aria: string;\n };\n skeleton: {\n loading: string;\n };\n avatarUpload: {\n /** Accessible label for the upload dropzone button. */\n uploadLabel: string;\n /** Body text inside the dropzone when empty. */\n dragPrompt: string;\n generateLabel: string;\n regenerateLabel: string;\n saveLabel: string;\n removeLabel: string;\n cancelLabel: string;\n cropTitle: string;\n cropConfirm: string;\n cropReset: string;\n /** Default placeholder for the AI prompt input. */\n promptPlaceholder: string;\n /** Accessible label for the variant selector group. */\n variantLabel: string;\n /** Accessible label for the prompt suggestions chip group. */\n promptSuggestionsLabel: string;\n /** Screen-reader live announcement while generating. */\n generating: string;\n /** Screen-reader live announcement on success. */\n generated: string;\n saving: string;\n saved: string;\n errorGenerate: string;\n errorUpload: string;\n errorSave: string;\n /** `{limit}` placeholder: human-readable size (e.g. \"5 MB\"). */\n errorSize: string;\n /** `{types}` placeholder: comma-separated list of allowed formats. */\n errorType: string;\n /** Badge label shown on AI-generated avatars. */\n aiLabel: string;\n };\n phoneInput: {\n /** aria-label on the country selector button. */\n selectCountry: string;\n /** Placeholder inside the country search box. */\n searchCountry: string;\n /** Empty state when country search returns no matches. */\n noResults: string;\n };\n otpInput: {\n /** Prefix for per-slot aria-label: \"Digit 1\", \"Digit 2\"… */\n digit: string;\n };\n /**\n * Strings for the `Table` component family. Phase 1 only ships a small\n * subset (empty/loading/caption); later phases extend this namespace\n * with sort, selection, pagination, filter, edit, group, toolbar.\n */\n table: {\n /** Empty state when `data` is empty and no filter is applied. */\n empty: string;\n /** Empty state when filtering produced zero rows. */\n noResults: string;\n /** Visually hidden caption / aria-label fallback. */\n defaultLabel: string;\n /** SR-only announcement while `loading` is true. */\n loading: string;\n /** Sortable column hints (announced via `aria-sort` + button label). */\n sortAscending: string;\n sortDescending: string;\n sortNone: string;\n /** Live region announcement when a column gets sorted. */\n sortedBy: string;\n /** Selection a11y. */\n selectAllRows: string;\n selectRow: string;\n /** Live region after a row is (de)selected: `{count} selected`. */\n selectedCount: string;\n /** Row expansion controls. */\n expandRow: string;\n collapseRow: string;\n /** Filter row UX. */\n filterPlaceholder: string;\n clearFilter: string;\n /** Global search input (Phase 5a · toolbar). */\n searchPlaceholder: string;\n /** Toolbar column-visibility menu (Phase 5b). */\n columnVisibility: string;\n /** Toolbar export menu (Phase 5c). */\n export: string;\n exportCsv: string;\n exportJson: string;\n exportClipboard: string;\n /** Live region after Ctrl/Cmd+C copy of selected rows (Phase 5e). */\n copiedRows: string;\n /** Column resize handle (aria-label). */\n resizeColumn: string;\n /** Column reorder drag handle / announcement. */\n reorderColumn: string;\n /** Live region: `Moved {column} to position {position}`. */\n movedColumn: string;\n /** Pagination controls (used by `<TablePagination>`). */\n pagination: {\n previous: string;\n next: string;\n first: string;\n last: string;\n /** `Page {current} of {total}` when both numbers are known. */\n page: string;\n rowsPerPage: string;\n /** Range readout: `{from}-{to} of {total}`. */\n range: string;\n /** Range readout when total is unknown: `{from}-{to}`. */\n rangeUnknown: string;\n };\n /** Inline cell editing (Phase 4a). */\n edit: {\n /** Aria-label / tooltip on an editable cell's editor. */\n editCell: string;\n /** Hint shown after entering edit mode (sr-only). */\n commitHint: string;\n /** Generic invalid-value message used when no validator runs. */\n invalid: string;\n };\n };\n switcher: {\n /** Default aria-label for the trigger when no `ariaLabel` prop is passed. */\n ariaLabel: string;\n /** Trigger primary text when no item matches `modelValue`. */\n placeholder: string;\n /** Search input placeholder when `searchable=true`. */\n searchPlaceholder: string;\n /** Shown inside the panel when `items.length === 0`. */\n empty: string;\n /** Shown inside the panel when the search query matches no items. */\n noResults: string;\n /** Visually hidden text appended to the active item for screen readers. */\n activeItemSr: string;\n };\n dialog: {\n /** Fallback accessible name when the dialog has no DialogTitle. */\n label: string;\n };\n sheet: {\n /** Fallback accessible name when the sheet has no SheetTitle. */\n label: string;\n };\n morphSelect: {\n placeholder: string;\n searchPlaceholder: string;\n empty: string;\n };\n liquidToast: {\n /** Accessible name of the toaster landmark. */\n region: string;\n };\n toast: {\n /** Accessible name of the toast region. */\n region: string;\n /** Accessible name of the per-toast dismiss button. */\n dismiss: string;\n };\n modeOrb: {\n /** Default aria-label of the color-mode toggle. */\n toggle: string;\n };\n}\n\n/** Default locale (English). Serves as the non-breaking fallback. */\nexport const defaultLocale: ModoLocale = {\n common: {\n clear: \"Clear\",\n loading: \"Loading\",\n close: \"Close\",\n dismiss: \"Dismiss\",\n remove: \"Remove\",\n },\n input: { clear: \"Clear input\" },\n textarea: { clear: \"Clear textarea\" },\n select: {\n empty: \"No results.\",\n clear: \"Clear selection\",\n clearSearch: \"Clear search\",\n },\n multiSelect: {\n clear: \"Clear selection\",\n clearSearch: \"Clear search\",\n },\n combobox: {\n clear: \"Clear\",\n toggleOptions: \"Toggle options\",\n },\n numberInput: {\n increment: \"Increment\",\n decrement: \"Decrement\",\n },\n searchInput: { clear: \"Clear search\" },\n passwordInput: {\n show: \"Show password\",\n hide: \"Hide password\",\n strength: { 0: \"\", 1: \"Weak\", 2: \"Fair\", 3: \"Good\", 4: \"Strong\" },\n },\n dateField: { clear: \"Clear date\" },\n dateTimeField: { clear: \"Clear datetime\" },\n dateRangeField: { clear: \"Clear range\" },\n calendar: {\n prevYear: \"Previous year\",\n prevMonth: \"Previous month\",\n nextMonth: \"Next month\",\n nextYear: \"Next year\",\n today: \"Go to today\",\n },\n agenda: { empty: \"No upcoming events\" },\n fileInput: {\n placeholder: \"Click or drop files…\",\n uploadFiles: \"Upload files\",\n dropzoneLabel: \"Drag a file here or click to browse\",\n dropzoneLabelMultiple: \"Drag files here or click to browse\",\n hintUpTo: \"up to {limit}\",\n hintMax: \"max {limit}\",\n browse: \"Browse\",\n addMore: \"Add more\",\n replace: \"Replace\",\n filesSelected: \"{count} files selected\",\n reject: {\n size: \"Too big (max {limit})\",\n sizeNoLimit: \"File too big\",\n type: \"Type not allowed\",\n count: \"Too many files (max {limit})\",\n countNoLimit: \"Too many files\",\n },\n },\n banner: { dismiss: \"Dismiss\" },\n badge: { remove: \"Remove\" },\n avatarGroup: { group: \"Group of {count} users\" },\n slider: { aria: \"Slider\" },\n skeleton: { loading: \"Loading\" },\n avatarUpload: {\n uploadLabel: \"Upload avatar. Drag an image or press Enter to browse\",\n dragPrompt: \"Drag an image or click to browse\",\n generateLabel: \"Generate with AI\",\n regenerateLabel: \"Regenerate\",\n saveLabel: \"Save\",\n removeLabel: \"Remove avatar\",\n cancelLabel: \"Cancel\",\n cropTitle: \"Crop image\",\n cropConfirm: \"Confirm crop\",\n cropReset: \"Reset\",\n promptPlaceholder: \"Describe how you want to look…\",\n variantLabel: \"Visual style\",\n promptSuggestionsLabel: \"Quick prompts\",\n generating: \"Generating avatar…\",\n generated: \"Avatar generated successfully\",\n saving: \"Saving avatar…\",\n saved: \"Avatar saved\",\n errorGenerate: \"Failed to generate avatar\",\n errorUpload: \"Failed to process the image\",\n errorSave: \"Failed to save avatar\",\n errorSize: \"File exceeds the maximum size of {limit}\",\n errorType: \"Format not allowed. Use {types}\",\n aiLabel: \"AI generated\",\n },\n phoneInput: {\n selectCountry: \"Select country\",\n searchCountry: \"Search country\\u2026\",\n noResults: \"No results\",\n },\n otpInput: {\n digit: \"Digit\",\n },\n table: {\n empty: \"No data\",\n noResults: \"No results match your filters\",\n defaultLabel: \"Data table\",\n loading: \"Loading rows\",\n sortAscending: \"Sort ascending\",\n sortDescending: \"Sort descending\",\n sortNone: \"Clear sort\",\n sortedBy: \"Sorted by {column} {direction}\",\n selectAllRows: \"Select all rows\",\n selectRow: \"Select row\",\n selectedCount: \"{count} selected\",\n expandRow: \"Expand row\",\n collapseRow: \"Collapse row\",\n filterPlaceholder: \"Filter…\",\n clearFilter: \"Clear filter\",\n searchPlaceholder: \"Search…\",\n columnVisibility: \"Columns\",\n export: \"Export\",\n exportCsv: \"Download CSV\",\n copiedRows: \"{count} rows copied\",\n exportJson: \"Download JSON\",\n exportClipboard: \"Copy to clipboard\",\n resizeColumn: \"Resize column\",\n reorderColumn: \"Reorder column\",\n movedColumn: \"Moved {column} to position {position}\",\n pagination: {\n previous: \"Previous page\",\n next: \"Next page\",\n first: \"First page\",\n last: \"Last page\",\n page: \"Page {current} of {total}\",\n rowsPerPage: \"Rows per page\",\n range: \"{from}-{to} of {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Edit cell\",\n commitHint: \"Press Enter to save, Escape to cancel.\",\n invalid: \"Invalid value\",\n },\n },\n switcher: {\n ariaLabel: \"Switch context\",\n placeholder: \"Select…\",\n searchPlaceholder: \"Search…\",\n empty: \"No options.\",\n noResults: \"No matches.\",\n activeItemSr: \"Currently selected\",\n },\n dialog: { label: \"Dialog\" },\n sheet: { label: \"Sheet\" },\n morphSelect: {\n placeholder: \"Select…\",\n searchPlaceholder: \"Search…\",\n empty: \"No results.\",\n },\n liquidToast: { region: \"Notifications\" },\n toast: { region: \"Notifications\", dismiss: \"Dismiss notification\" },\n modeOrb: { toggle: \"Toggle color mode\" },\n};\n\n/** Deep-partial for consumer overrides. Each leaf string stays optional. */\nexport type DeepPartial<T> = {\n [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];\n};\n\nexport type PartialLocale = DeepPartial<ModoLocale>;\n\n/** Deep-merge `override` into `base`. Non-destructive; returns a new object. */\nexport function mergeLocale(\n base: ModoLocale,\n override?: PartialLocale,\n): ModoLocale {\n if (!override) return base;\n const out: any = {};\n for (const key of Object.keys(base) as (keyof ModoLocale)[]) {\n const b = (base as any)[key];\n const o = (override as any)[key];\n if (o === undefined) {\n out[key] = b;\n } else if (b && typeof b === \"object\" && !Array.isArray(b)) {\n out[key] = deepMergeObj(b, o);\n } else {\n out[key] = o;\n }\n }\n return out as ModoLocale;\n}\n\nfunction deepMergeObj(base: any, override: any): any {\n if (!override) return base;\n const out: any = { ...base };\n for (const key of Object.keys(override)) {\n const b = base[key];\n const o = override[key];\n if (\n b &&\n typeof b === \"object\" &&\n !Array.isArray(b) &&\n o &&\n typeof o === \"object\" &&\n !Array.isArray(o)\n ) {\n out[key] = deepMergeObj(b, o);\n } else if (o !== undefined) {\n out[key] = o;\n }\n }\n return out;\n}\n\n/**\n * Simple `{name}` interpolator. Values not provided pass through (keeps the\n * placeholder untouched), so missing data never throws.\n */\nexport function interpolate(\n template: string,\n vars?: Record<string, string | number>,\n): string {\n if (!template || !vars) return template;\n return template.replace(/\\{(\\w+)\\}/g, (match, k) => {\n const v = vars[k];\n return v === undefined || v === null ? match : String(v);\n });\n}\n\nexport const MODO_LOCALE: InjectionKey<Ref<ModoLocale>> = Symbol(\"modo-locale\");\n"],"mappings":";;AAgSA,IAAa,gBAA4B;CACvC,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,QAAQ;EACT;CACD,OAAO,EAAE,OAAO,eAAe;CAC/B,UAAU,EAAE,OAAO,kBAAk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CAC5B,KAAK,MAAM,OAAO,OAAO,KAAK,SAAS,EAAE;EACvC,MAAM,IAAI,KAAK;EACf,MAAM,IAAI,SAAS;EACnB,IACE,KACA,OAAO,MAAM,YACb,CAAC,MAAM,QAAQ,EAAE,IACjB,KACA,OAAO,MAAM,YACb,CAAC,MAAM,QAAQ,EAAE,EAEjB,IAAI,OAAO,aAAa,GAAG,EAAE;OACxB,IAAI,MAAM,KAAA,GACf,IAAI,OAAO;;CAGf,OAAO;;;;;;AAOT,SAAgB,YACd,UACA,MACQ;CACR,IAAI,CAAC,YAAY,CAAC,MAAM,OAAO;CAC/B,OAAO,SAAS,QAAQ,eAAe,OAAO,MAAM;EAClD,MAAM,IAAI,KAAK;EACf,OAAO,MAAM,KAAA,KAAa,MAAM,OAAO,QAAQ,OAAO,EAAE;GACxD;;AAGJ,IAAa,cAA6C,OAAO,cAAc"}
|
|
@@ -163,6 +163,10 @@ var es = {
|
|
|
163
163
|
empty: "Sin resultados."
|
|
164
164
|
},
|
|
165
165
|
liquidToast: { region: "Notificaciones" },
|
|
166
|
+
toast: {
|
|
167
|
+
region: "Notificaciones",
|
|
168
|
+
dismiss: "Descartar notificación"
|
|
169
|
+
},
|
|
166
170
|
modeOrb: { toggle: "Cambiar modo de color" }
|
|
167
171
|
};
|
|
168
172
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.cjs","names":[],"sources":["../../../src/config/locales/es.ts"],"sourcesContent":["import type { ModoLocale } from \"../ModoLocale\";\n\n/** Locale español completo para mood-ui. */\nexport const es: ModoLocale = {\n common: {\n clear: \"Limpiar\",\n loading: \"Cargando\",\n close: \"Cerrar\",\n dismiss: \"Descartar\",\n remove: \"Eliminar\",\n },\n input: {\n clear: \"Limpiar campo\",\n },\n textarea: {\n clear: \"Limpiar área de texto\",\n },\n select: {\n empty: \"Sin resultados.\",\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n multiSelect: {\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n combobox: {\n clear: \"Limpiar\",\n toggleOptions: \"Mostrar/ocultar opciones\",\n },\n numberInput: {\n increment: \"Incrementar\",\n decrement: \"Decrementar\",\n },\n searchInput: {\n clear: \"Limpiar búsqueda\",\n },\n passwordInput: {\n show: \"Mostrar contraseña\",\n hide: \"Ocultar contraseña\",\n strength: {\n 0: \"\",\n 1: \"Muy débil\",\n 2: \"Débil\",\n 3: \"Buena\",\n 4: \"Fuerte\",\n },\n },\n dateField: {\n clear: \"Limpiar fecha\",\n },\n dateTimeField: {\n clear: \"Limpiar fecha y hora\",\n },\n dateRangeField: {\n clear: \"Limpiar rango\",\n },\n calendar: {\n prevYear: \"Año anterior\",\n prevMonth: \"Mes anterior\",\n nextMonth: \"Mes siguiente\",\n nextYear: \"Año siguiente\",\n today: \"Ir a hoy\",\n },\n agenda: {\n empty: \"Sin eventos próximos\",\n },\n fileInput: {\n placeholder: \"Haz clic o arrastra archivos…\",\n uploadFiles: \"Subir archivos\",\n dropzoneLabel: \"Arrastra un archivo aquí o haz clic para seleccionar\",\n dropzoneLabelMultiple: \"Arrastra archivos aquí o haz clic para seleccionar\",\n hintUpTo: \"hasta {limit}\",\n hintMax: \"máx. {limit}\",\n browse: \"Explorar\",\n addMore: \"Agregar más\",\n replace: \"Reemplazar\",\n filesSelected: \"{count} archivos seleccionados\",\n reject: {\n size: \"Demasiado grande (máx. {limit})\",\n sizeNoLimit: \"Archivo demasiado grande\",\n type: \"Tipo de archivo no permitido\",\n count: \"Demasiados archivos (máx. {limit})\",\n countNoLimit: \"Demasiados archivos\",\n },\n },\n banner: {\n dismiss: \"Descartar\",\n },\n badge: {\n remove: \"Eliminar\",\n },\n avatarGroup: {\n group: \"Grupo de {count} usuarios\",\n },\n slider: {\n aria: \"Control deslizante\",\n },\n skeleton: {\n loading: \"Cargando\",\n },\n avatarUpload: {\n uploadLabel:\n \"Subir avatar. Arrastra una imagen o presiona Enter para explorar\",\n dragPrompt: \"Arrastra una imagen o haz clic para explorar\",\n generateLabel: \"Generar con IA\",\n regenerateLabel: \"Regenerar\",\n saveLabel: \"Guardar\",\n removeLabel: \"Eliminar avatar\",\n cancelLabel: \"Cancelar\",\n cropTitle: \"Recortar imagen\",\n cropConfirm: \"Confirmar recorte\",\n cropReset: \"Restablecer\",\n promptPlaceholder: \"Describe cómo quieres verte…\",\n variantLabel: \"Estilo visual\",\n promptSuggestionsLabel: \"Sugerencias rápidas\",\n generating: \"Generando avatar…\",\n generated: \"Avatar generado exitosamente\",\n saving: \"Guardando avatar…\",\n saved: \"Avatar guardado\",\n errorGenerate: \"Error al generar el avatar\",\n errorUpload: \"Error al procesar la imagen\",\n errorSave: \"Error al guardar el avatar\",\n errorSize: \"El archivo supera el tamaño máximo de {limit}\",\n errorType: \"Formato no permitido. Usa {types}\",\n aiLabel: \"Generado con IA\",\n },\n phoneInput: {\n selectCountry: \"Seleccionar país\",\n searchCountry: \"Buscar país…\",\n noResults: \"Sin resultados\",\n },\n otpInput: {\n digit: \"Dígito\",\n },\n table: {\n empty: \"Sin datos\",\n noResults: \"Ningún resultado coincide con los filtros\",\n defaultLabel: \"Tabla de datos\",\n loading: \"Cargando filas\",\n sortAscending: \"Orden ascendente\",\n sortDescending: \"Orden descendente\",\n sortNone: \"Quitar orden\",\n sortedBy: \"Ordenado por {column} {direction}\",\n selectAllRows: \"Seleccionar todas las filas\",\n selectRow: \"Seleccionar fila\",\n selectedCount: \"{count} seleccionadas\",\n expandRow: \"Expandir fila\",\n collapseRow: \"Contraer fila\",\n filterPlaceholder: \"Filtrar…\",\n clearFilter: \"Limpiar filtro\",\n searchPlaceholder: \"Buscar…\",\n columnVisibility: \"Columnas\",\n export: \"Exportar\",\n exportCsv: \"Descargar CSV\",\n exportJson: \"Descargar JSON\",\n exportClipboard: \"Copiar al portapapeles\",\n copiedRows: \"{count} filas copiadas\",\n resizeColumn: \"Redimensionar columna\",\n reorderColumn: \"Reordenar columna\",\n movedColumn: \"Se movió {column} a la posición {position}\",\n pagination: {\n previous: \"Página anterior\",\n next: \"Página siguiente\",\n first: \"Primera página\",\n last: \"Última página\",\n page: \"Página {current} de {total}\",\n rowsPerPage: \"Filas por página\",\n range: \"{from}-{to} de {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Editar celda\",\n commitHint: \"Presiona Enter para guardar, Escape para cancelar.\",\n invalid: \"Valor no válido\",\n },\n },\n switcher: {\n ariaLabel: \"Cambiar contexto\",\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin opciones.\",\n noResults: \"Sin resultados.\",\n activeItemSr: \"Actualmente seleccionado\",\n },\n dialog: { label: \"Diálogo\" },\n sheet: { label: \"Panel\" },\n morphSelect: {\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin resultados.\",\n },\n liquidToast: { region: \"Notificaciones\" },\n modeOrb: { toggle: \"Cambiar modo de color\" },\n};\n"],"mappings":";;AAGA,IAAa,KAAiB;CAC5B,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,QAAQ;EACT;CACD,OAAO,EACL,OAAO,iBACR;CACD,UAAU,EACR,OAAO,yBACR;CACD,QAAQ;EACN,OAAO;EACP,OAAO;EACP,aAAa;EACd;CACD,aAAa;EACX,OAAO;EACP,aAAa;EACd;CACD,UAAU;EACR,OAAO;EACP,eAAe;EAChB;CACD,aAAa;EACX,WAAW;EACX,WAAW;EACZ;CACD,aAAa,EACX,OAAO,oBACR;CACD,eAAe;EACb,MAAM;EACN,MAAM;EACN,UAAU;GACR,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACJ;EACF;CACD,WAAW,EACT,OAAO,iBACR;CACD,eAAe,EACb,OAAO,wBACR;CACD,gBAAgB,EACd,OAAO,iBACR;CACD,UAAU;EACR,UAAU;EACV,WAAW;EACX,WAAW;EACX,UAAU;EACV,OAAO;EACR;CACD,QAA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EACP,WAAW;EACX,cAAc;EACf;CACD,QAAQ,EAAE,OAAO,WAAW;CAC5B,OAAO,EAAE,OAAO,SAAS;CACzB,aAAa;EACX,aAAa;EACb,mBAAmB;EACnB,OAAO;EACR;CACD,aAAa,EAAE,QAAQ,kBAAkB;CACzC,SAAS,EAAE,QAAQ,yBAAyB;CAC7C"}
|
|
1
|
+
{"version":3,"file":"es.cjs","names":[],"sources":["../../../src/config/locales/es.ts"],"sourcesContent":["import type { ModoLocale } from \"../ModoLocale\";\n\n/** Locale español completo para mood-ui. */\nexport const es: ModoLocale = {\n common: {\n clear: \"Limpiar\",\n loading: \"Cargando\",\n close: \"Cerrar\",\n dismiss: \"Descartar\",\n remove: \"Eliminar\",\n },\n input: {\n clear: \"Limpiar campo\",\n },\n textarea: {\n clear: \"Limpiar área de texto\",\n },\n select: {\n empty: \"Sin resultados.\",\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n multiSelect: {\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n combobox: {\n clear: \"Limpiar\",\n toggleOptions: \"Mostrar/ocultar opciones\",\n },\n numberInput: {\n increment: \"Incrementar\",\n decrement: \"Decrementar\",\n },\n searchInput: {\n clear: \"Limpiar búsqueda\",\n },\n passwordInput: {\n show: \"Mostrar contraseña\",\n hide: \"Ocultar contraseña\",\n strength: {\n 0: \"\",\n 1: \"Muy débil\",\n 2: \"Débil\",\n 3: \"Buena\",\n 4: \"Fuerte\",\n },\n },\n dateField: {\n clear: \"Limpiar fecha\",\n },\n dateTimeField: {\n clear: \"Limpiar fecha y hora\",\n },\n dateRangeField: {\n clear: \"Limpiar rango\",\n },\n calendar: {\n prevYear: \"Año anterior\",\n prevMonth: \"Mes anterior\",\n nextMonth: \"Mes siguiente\",\n nextYear: \"Año siguiente\",\n today: \"Ir a hoy\",\n },\n agenda: {\n empty: \"Sin eventos próximos\",\n },\n fileInput: {\n placeholder: \"Haz clic o arrastra archivos…\",\n uploadFiles: \"Subir archivos\",\n dropzoneLabel: \"Arrastra un archivo aquí o haz clic para seleccionar\",\n dropzoneLabelMultiple: \"Arrastra archivos aquí o haz clic para seleccionar\",\n hintUpTo: \"hasta {limit}\",\n hintMax: \"máx. {limit}\",\n browse: \"Explorar\",\n addMore: \"Agregar más\",\n replace: \"Reemplazar\",\n filesSelected: \"{count} archivos seleccionados\",\n reject: {\n size: \"Demasiado grande (máx. {limit})\",\n sizeNoLimit: \"Archivo demasiado grande\",\n type: \"Tipo de archivo no permitido\",\n count: \"Demasiados archivos (máx. {limit})\",\n countNoLimit: \"Demasiados archivos\",\n },\n },\n banner: {\n dismiss: \"Descartar\",\n },\n badge: {\n remove: \"Eliminar\",\n },\n avatarGroup: {\n group: \"Grupo de {count} usuarios\",\n },\n slider: {\n aria: \"Control deslizante\",\n },\n skeleton: {\n loading: \"Cargando\",\n },\n avatarUpload: {\n uploadLabel:\n \"Subir avatar. Arrastra una imagen o presiona Enter para explorar\",\n dragPrompt: \"Arrastra una imagen o haz clic para explorar\",\n generateLabel: \"Generar con IA\",\n regenerateLabel: \"Regenerar\",\n saveLabel: \"Guardar\",\n removeLabel: \"Eliminar avatar\",\n cancelLabel: \"Cancelar\",\n cropTitle: \"Recortar imagen\",\n cropConfirm: \"Confirmar recorte\",\n cropReset: \"Restablecer\",\n promptPlaceholder: \"Describe cómo quieres verte…\",\n variantLabel: \"Estilo visual\",\n promptSuggestionsLabel: \"Sugerencias rápidas\",\n generating: \"Generando avatar…\",\n generated: \"Avatar generado exitosamente\",\n saving: \"Guardando avatar…\",\n saved: \"Avatar guardado\",\n errorGenerate: \"Error al generar el avatar\",\n errorUpload: \"Error al procesar la imagen\",\n errorSave: \"Error al guardar el avatar\",\n errorSize: \"El archivo supera el tamaño máximo de {limit}\",\n errorType: \"Formato no permitido. Usa {types}\",\n aiLabel: \"Generado con IA\",\n },\n phoneInput: {\n selectCountry: \"Seleccionar país\",\n searchCountry: \"Buscar país…\",\n noResults: \"Sin resultados\",\n },\n otpInput: {\n digit: \"Dígito\",\n },\n table: {\n empty: \"Sin datos\",\n noResults: \"Ningún resultado coincide con los filtros\",\n defaultLabel: \"Tabla de datos\",\n loading: \"Cargando filas\",\n sortAscending: \"Orden ascendente\",\n sortDescending: \"Orden descendente\",\n sortNone: \"Quitar orden\",\n sortedBy: \"Ordenado por {column} {direction}\",\n selectAllRows: \"Seleccionar todas las filas\",\n selectRow: \"Seleccionar fila\",\n selectedCount: \"{count} seleccionadas\",\n expandRow: \"Expandir fila\",\n collapseRow: \"Contraer fila\",\n filterPlaceholder: \"Filtrar…\",\n clearFilter: \"Limpiar filtro\",\n searchPlaceholder: \"Buscar…\",\n columnVisibility: \"Columnas\",\n export: \"Exportar\",\n exportCsv: \"Descargar CSV\",\n exportJson: \"Descargar JSON\",\n exportClipboard: \"Copiar al portapapeles\",\n copiedRows: \"{count} filas copiadas\",\n resizeColumn: \"Redimensionar columna\",\n reorderColumn: \"Reordenar columna\",\n movedColumn: \"Se movió {column} a la posición {position}\",\n pagination: {\n previous: \"Página anterior\",\n next: \"Página siguiente\",\n first: \"Primera página\",\n last: \"Última página\",\n page: \"Página {current} de {total}\",\n rowsPerPage: \"Filas por página\",\n range: \"{from}-{to} de {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Editar celda\",\n commitHint: \"Presiona Enter para guardar, Escape para cancelar.\",\n invalid: \"Valor no válido\",\n },\n },\n switcher: {\n ariaLabel: \"Cambiar contexto\",\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin opciones.\",\n noResults: \"Sin resultados.\",\n activeItemSr: \"Actualmente seleccionado\",\n },\n dialog: { label: \"Diálogo\" },\n sheet: { label: \"Panel\" },\n morphSelect: {\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin resultados.\",\n },\n liquidToast: { region: \"Notificaciones\" },\n toast: { region: \"Notificaciones\", dismiss: \"Descartar notificación\" },\n modeOrb: { toggle: \"Cambiar modo de color\" },\n};\n"],"mappings":";;AAGA,IAAa,KAAiB;CAC5B,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,QAAQ;EACT;CACD,OAAO,EACL,OAAO,iBACR;CACD,UAAU,EACR,OAAO,yBACR;CACD,QAAQ;EACN,OAAO;EACP,OAAO;EACP,aAAa;EACd;CACD,aAAa;EACX,OAAO;EACP,aAAa;EACd;CACD,UAAU;EACR,OAAO;EACP,eAAe;EAChB;CACD,aAAa;EACX,WAAW;EACX,WAAW;EACZ;CACD,aAAa,EACX,OAAO,oBACR;CACD,eAAe;EACb,MAAM;EACN,MAAM;EACN,UAAU;GACR,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACJ;EACF;CACD,WAAW,EACT,OAAO,iBACR;CACD,eAAe,EACb,OAAO,wBACR;CACD,gBAAgB,EACd,OAAO,iBACR;CACD,UAAU;EACR,UAAU;EACV,WAAW;EACX,WAAW;EACX,UAAU;EACV,OAAO;EACR;CACD,QAAQ,EACN,OAAO,wBACR;CACD,WAAW;EACT,aAAa;EACb,aAAa;EACb,eAAe;EACf,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,QAAQ;EACR,SAAS;EACT,SAAS;EACT,eAAe;EACf,QAAQ;GACN,MAAM;GACN,aAAa;GACb,MAAM;GACN,OAAO;GACP,cAAc;GACf;EACF;CACD,QAAQ,EACN,SAAS,aACV;CACD,OAAO,EACL,QAAQ,YACT;CACD,aAAa,EACX,OAAO,6BACR;CACD,QAAQ,EACN,MAAM,sBACP;CACD,UAAU,EACR,SAAS,YACV;CACD,cAAc;EACZ,aACE;EACF,YAAY;EACZ,eAAe;EACf,iBAAiB;EACjB,WAAW;EACX,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,WAAW;EACX,mBAAmB;EACnB,cAAc;EACd,wBAAwB;EACxB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,OAAO;EACP,eAAe;EACf,aAAa;EACb,WAAW;EACX,WAAW;EACX,WAAW;EACX,SAAS;EACV;CACD,YAAY;EACV,eAAe;EACf,eAAe;EACf,WAAW;EACZ;CACD,UAAU,EACR,OAAO,UACR;CACD,OAAO;EACL,OAAO;EACP,WAAW;EACX,cAAc;EACd,SAAS;EACT,eAAe;EACf,gBAAgB;EAChB,UAAU;EACV,UAAU;EACV,eAAe;EACf,WAAW;EACX,eAAe;EACf,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,YAAY;EACZ,cAAc;EACd,eAAe;EACf,aAAa;EACb,YAAY;GACV,UAAU;GACV,MAAM;GACN,OAAO;GACP,MAAM;GACN,MAAM;GACN,aAAa;GACb,OAAO;GACP,cAAc;GACf;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACZ,SAAS;GACV;EACF;CACD,UAAU;EACR,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,OAAO;EACP,WAAW;EACX,cAAc;EACf;CACD,QAAQ,EAAE,OAAO,WAAW;CAC5B,OAAO,EAAE,OAAO,SAAS;CACzB,aAAa;EACX,aAAa;EACb,mBAAmB;EACnB,OAAO;EACR;CACD,aAAa,EAAE,QAAQ,kBAAkB;CACzC,OAAO;EAAE,QAAQ;EAAkB,SAAS;EAA0B;CACtE,SAAS,EAAE,QAAQ,yBAAyB;CAC7C"}
|
|
@@ -163,6 +163,10 @@ var es = {
|
|
|
163
163
|
empty: "Sin resultados."
|
|
164
164
|
},
|
|
165
165
|
liquidToast: { region: "Notificaciones" },
|
|
166
|
+
toast: {
|
|
167
|
+
region: "Notificaciones",
|
|
168
|
+
dismiss: "Descartar notificación"
|
|
169
|
+
},
|
|
166
170
|
modeOrb: { toggle: "Cambiar modo de color" }
|
|
167
171
|
};
|
|
168
172
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.mjs","names":[],"sources":["../../../src/config/locales/es.ts"],"sourcesContent":["import type { ModoLocale } from \"../ModoLocale\";\n\n/** Locale español completo para mood-ui. */\nexport const es: ModoLocale = {\n common: {\n clear: \"Limpiar\",\n loading: \"Cargando\",\n close: \"Cerrar\",\n dismiss: \"Descartar\",\n remove: \"Eliminar\",\n },\n input: {\n clear: \"Limpiar campo\",\n },\n textarea: {\n clear: \"Limpiar área de texto\",\n },\n select: {\n empty: \"Sin resultados.\",\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n multiSelect: {\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n combobox: {\n clear: \"Limpiar\",\n toggleOptions: \"Mostrar/ocultar opciones\",\n },\n numberInput: {\n increment: \"Incrementar\",\n decrement: \"Decrementar\",\n },\n searchInput: {\n clear: \"Limpiar búsqueda\",\n },\n passwordInput: {\n show: \"Mostrar contraseña\",\n hide: \"Ocultar contraseña\",\n strength: {\n 0: \"\",\n 1: \"Muy débil\",\n 2: \"Débil\",\n 3: \"Buena\",\n 4: \"Fuerte\",\n },\n },\n dateField: {\n clear: \"Limpiar fecha\",\n },\n dateTimeField: {\n clear: \"Limpiar fecha y hora\",\n },\n dateRangeField: {\n clear: \"Limpiar rango\",\n },\n calendar: {\n prevYear: \"Año anterior\",\n prevMonth: \"Mes anterior\",\n nextMonth: \"Mes siguiente\",\n nextYear: \"Año siguiente\",\n today: \"Ir a hoy\",\n },\n agenda: {\n empty: \"Sin eventos próximos\",\n },\n fileInput: {\n placeholder: \"Haz clic o arrastra archivos…\",\n uploadFiles: \"Subir archivos\",\n dropzoneLabel: \"Arrastra un archivo aquí o haz clic para seleccionar\",\n dropzoneLabelMultiple: \"Arrastra archivos aquí o haz clic para seleccionar\",\n hintUpTo: \"hasta {limit}\",\n hintMax: \"máx. {limit}\",\n browse: \"Explorar\",\n addMore: \"Agregar más\",\n replace: \"Reemplazar\",\n filesSelected: \"{count} archivos seleccionados\",\n reject: {\n size: \"Demasiado grande (máx. {limit})\",\n sizeNoLimit: \"Archivo demasiado grande\",\n type: \"Tipo de archivo no permitido\",\n count: \"Demasiados archivos (máx. {limit})\",\n countNoLimit: \"Demasiados archivos\",\n },\n },\n banner: {\n dismiss: \"Descartar\",\n },\n badge: {\n remove: \"Eliminar\",\n },\n avatarGroup: {\n group: \"Grupo de {count} usuarios\",\n },\n slider: {\n aria: \"Control deslizante\",\n },\n skeleton: {\n loading: \"Cargando\",\n },\n avatarUpload: {\n uploadLabel:\n \"Subir avatar. Arrastra una imagen o presiona Enter para explorar\",\n dragPrompt: \"Arrastra una imagen o haz clic para explorar\",\n generateLabel: \"Generar con IA\",\n regenerateLabel: \"Regenerar\",\n saveLabel: \"Guardar\",\n removeLabel: \"Eliminar avatar\",\n cancelLabel: \"Cancelar\",\n cropTitle: \"Recortar imagen\",\n cropConfirm: \"Confirmar recorte\",\n cropReset: \"Restablecer\",\n promptPlaceholder: \"Describe cómo quieres verte…\",\n variantLabel: \"Estilo visual\",\n promptSuggestionsLabel: \"Sugerencias rápidas\",\n generating: \"Generando avatar…\",\n generated: \"Avatar generado exitosamente\",\n saving: \"Guardando avatar…\",\n saved: \"Avatar guardado\",\n errorGenerate: \"Error al generar el avatar\",\n errorUpload: \"Error al procesar la imagen\",\n errorSave: \"Error al guardar el avatar\",\n errorSize: \"El archivo supera el tamaño máximo de {limit}\",\n errorType: \"Formato no permitido. Usa {types}\",\n aiLabel: \"Generado con IA\",\n },\n phoneInput: {\n selectCountry: \"Seleccionar país\",\n searchCountry: \"Buscar país…\",\n noResults: \"Sin resultados\",\n },\n otpInput: {\n digit: \"Dígito\",\n },\n table: {\n empty: \"Sin datos\",\n noResults: \"Ningún resultado coincide con los filtros\",\n defaultLabel: \"Tabla de datos\",\n loading: \"Cargando filas\",\n sortAscending: \"Orden ascendente\",\n sortDescending: \"Orden descendente\",\n sortNone: \"Quitar orden\",\n sortedBy: \"Ordenado por {column} {direction}\",\n selectAllRows: \"Seleccionar todas las filas\",\n selectRow: \"Seleccionar fila\",\n selectedCount: \"{count} seleccionadas\",\n expandRow: \"Expandir fila\",\n collapseRow: \"Contraer fila\",\n filterPlaceholder: \"Filtrar…\",\n clearFilter: \"Limpiar filtro\",\n searchPlaceholder: \"Buscar…\",\n columnVisibility: \"Columnas\",\n export: \"Exportar\",\n exportCsv: \"Descargar CSV\",\n exportJson: \"Descargar JSON\",\n exportClipboard: \"Copiar al portapapeles\",\n copiedRows: \"{count} filas copiadas\",\n resizeColumn: \"Redimensionar columna\",\n reorderColumn: \"Reordenar columna\",\n movedColumn: \"Se movió {column} a la posición {position}\",\n pagination: {\n previous: \"Página anterior\",\n next: \"Página siguiente\",\n first: \"Primera página\",\n last: \"Última página\",\n page: \"Página {current} de {total}\",\n rowsPerPage: \"Filas por página\",\n range: \"{from}-{to} de {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Editar celda\",\n commitHint: \"Presiona Enter para guardar, Escape para cancelar.\",\n invalid: \"Valor no válido\",\n },\n },\n switcher: {\n ariaLabel: \"Cambiar contexto\",\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin opciones.\",\n noResults: \"Sin resultados.\",\n activeItemSr: \"Actualmente seleccionado\",\n },\n dialog: { label: \"Diálogo\" },\n sheet: { label: \"Panel\" },\n morphSelect: {\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin resultados.\",\n },\n liquidToast: { region: \"Notificaciones\" },\n modeOrb: { toggle: \"Cambiar modo de color\" },\n};\n"],"mappings":";;AAGA,IAAa,KAAiB;CAC5B,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,QAAQ;EACT;CACD,OAAO,EACL,OAAO,iBACR;CACD,UAAU,EACR,OAAO,yBACR;CACD,QAAQ;EACN,OAAO;EACP,OAAO;EACP,aAAa;EACd;CACD,aAAa;EACX,OAAO;EACP,aAAa;EACd;CACD,UAAU;EACR,OAAO;EACP,eAAe;EAChB;CACD,aAAa;EACX,WAAW;EACX,WAAW;EACZ;CACD,aAAa,EACX,OAAO,oBACR;CACD,eAAe;EACb,MAAM;EACN,MAAM;EACN,UAAU;GACR,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACJ;EACF;CACD,WAAW,EACT,OAAO,iBACR;CACD,eAAe,EACb,OAAO,wBACR;CACD,gBAAgB,EACd,OAAO,iBACR;CACD,UAAU;EACR,UAAU;EACV,WAAW;EACX,WAAW;EACX,UAAU;EACV,OAAO;EACR;CACD,QAAQ,EACN,OAAO,wBACR;CACD,WAAW;EACT,aAAa;EACb,aAAa;EACb,eAAe;EACf,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,QAAQ;EACR,SAAS;EACT,SAAS;EACT,eAAe;EACf,QAAQ;GACN,MAAM;GACN,aAAa;GACb,MAAM;GACN,OAAO;GACP,cAAc;GACf;EACF;CACD,QAAQ,EACN,SAAS,aACV;CACD,OAAO,EACL,QAAQ,YACT;CACD,aAAa,EACX,OAAO,6BACR;CACD,QAAQ,EACN,MAAM,sBACP;CACD,UAAU,EACR,SAAS,YACV;CACD,cAAc;EACZ,aACE;EACF,YAAY;EACZ,eAAe;EACf,iBAAiB;EACjB,WAAW;EACX,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,WAAW;EACX,mBAAmB;EACnB,cAAc;EACd,wBAAwB;EACxB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,OAAO;EACP,eAAe;EACf,aAAa;EACb,WAAW;EACX,WAAW;EACX,WAAW;EACX,SAAS;EACV;CACD,YAAY;EACV,eAAe;EACf,eAAe;EACf,WAAW;EACZ;CACD,UAAU,EACR,OAAO,UACR;CACD,OAAO;EACL,OAAO;EACP,WAAW;EACX,cAAc;EACd,SAAS;EACT,eAAe;EACf,gBAAgB;EAChB,UAAU;EACV,UAAU;EACV,eAAe;EACf,WAAW;EACX,eAAe;EACf,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,YAAY;EACZ,cAAc;EACd,eAAe;EACf,aAAa;EACb,YAAY;GACV,UAAU;GACV,MAAM;GACN,OAAO;GACP,MAAM;GACN,MAAM;GACN,aAAa;GACb,OAAO;GACP,cAAc;GACf;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACZ,SAAS;GACV;EACF;CACD,UAAU;EACR,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,OAAO;EACP,WAAW;EACX,cAAc;EACf;CACD,QAAQ,EAAE,OAAO,WAAW;CAC5B,OAAO,EAAE,OAAO,SAAS;CACzB,aAAa;EACX,aAAa;EACb,mBAAmB;EACnB,OAAO;EACR;CACD,aAAa,EAAE,QAAQ,kBAAkB;CACzC,SAAS,EAAE,QAAQ,yBAAyB;CAC7C"}
|
|
1
|
+
{"version":3,"file":"es.mjs","names":[],"sources":["../../../src/config/locales/es.ts"],"sourcesContent":["import type { ModoLocale } from \"../ModoLocale\";\n\n/** Locale español completo para mood-ui. */\nexport const es: ModoLocale = {\n common: {\n clear: \"Limpiar\",\n loading: \"Cargando\",\n close: \"Cerrar\",\n dismiss: \"Descartar\",\n remove: \"Eliminar\",\n },\n input: {\n clear: \"Limpiar campo\",\n },\n textarea: {\n clear: \"Limpiar área de texto\",\n },\n select: {\n empty: \"Sin resultados.\",\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n multiSelect: {\n clear: \"Limpiar selección\",\n clearSearch: \"Limpiar búsqueda\",\n },\n combobox: {\n clear: \"Limpiar\",\n toggleOptions: \"Mostrar/ocultar opciones\",\n },\n numberInput: {\n increment: \"Incrementar\",\n decrement: \"Decrementar\",\n },\n searchInput: {\n clear: \"Limpiar búsqueda\",\n },\n passwordInput: {\n show: \"Mostrar contraseña\",\n hide: \"Ocultar contraseña\",\n strength: {\n 0: \"\",\n 1: \"Muy débil\",\n 2: \"Débil\",\n 3: \"Buena\",\n 4: \"Fuerte\",\n },\n },\n dateField: {\n clear: \"Limpiar fecha\",\n },\n dateTimeField: {\n clear: \"Limpiar fecha y hora\",\n },\n dateRangeField: {\n clear: \"Limpiar rango\",\n },\n calendar: {\n prevYear: \"Año anterior\",\n prevMonth: \"Mes anterior\",\n nextMonth: \"Mes siguiente\",\n nextYear: \"Año siguiente\",\n today: \"Ir a hoy\",\n },\n agenda: {\n empty: \"Sin eventos próximos\",\n },\n fileInput: {\n placeholder: \"Haz clic o arrastra archivos…\",\n uploadFiles: \"Subir archivos\",\n dropzoneLabel: \"Arrastra un archivo aquí o haz clic para seleccionar\",\n dropzoneLabelMultiple: \"Arrastra archivos aquí o haz clic para seleccionar\",\n hintUpTo: \"hasta {limit}\",\n hintMax: \"máx. {limit}\",\n browse: \"Explorar\",\n addMore: \"Agregar más\",\n replace: \"Reemplazar\",\n filesSelected: \"{count} archivos seleccionados\",\n reject: {\n size: \"Demasiado grande (máx. {limit})\",\n sizeNoLimit: \"Archivo demasiado grande\",\n type: \"Tipo de archivo no permitido\",\n count: \"Demasiados archivos (máx. {limit})\",\n countNoLimit: \"Demasiados archivos\",\n },\n },\n banner: {\n dismiss: \"Descartar\",\n },\n badge: {\n remove: \"Eliminar\",\n },\n avatarGroup: {\n group: \"Grupo de {count} usuarios\",\n },\n slider: {\n aria: \"Control deslizante\",\n },\n skeleton: {\n loading: \"Cargando\",\n },\n avatarUpload: {\n uploadLabel:\n \"Subir avatar. Arrastra una imagen o presiona Enter para explorar\",\n dragPrompt: \"Arrastra una imagen o haz clic para explorar\",\n generateLabel: \"Generar con IA\",\n regenerateLabel: \"Regenerar\",\n saveLabel: \"Guardar\",\n removeLabel: \"Eliminar avatar\",\n cancelLabel: \"Cancelar\",\n cropTitle: \"Recortar imagen\",\n cropConfirm: \"Confirmar recorte\",\n cropReset: \"Restablecer\",\n promptPlaceholder: \"Describe cómo quieres verte…\",\n variantLabel: \"Estilo visual\",\n promptSuggestionsLabel: \"Sugerencias rápidas\",\n generating: \"Generando avatar…\",\n generated: \"Avatar generado exitosamente\",\n saving: \"Guardando avatar…\",\n saved: \"Avatar guardado\",\n errorGenerate: \"Error al generar el avatar\",\n errorUpload: \"Error al procesar la imagen\",\n errorSave: \"Error al guardar el avatar\",\n errorSize: \"El archivo supera el tamaño máximo de {limit}\",\n errorType: \"Formato no permitido. Usa {types}\",\n aiLabel: \"Generado con IA\",\n },\n phoneInput: {\n selectCountry: \"Seleccionar país\",\n searchCountry: \"Buscar país…\",\n noResults: \"Sin resultados\",\n },\n otpInput: {\n digit: \"Dígito\",\n },\n table: {\n empty: \"Sin datos\",\n noResults: \"Ningún resultado coincide con los filtros\",\n defaultLabel: \"Tabla de datos\",\n loading: \"Cargando filas\",\n sortAscending: \"Orden ascendente\",\n sortDescending: \"Orden descendente\",\n sortNone: \"Quitar orden\",\n sortedBy: \"Ordenado por {column} {direction}\",\n selectAllRows: \"Seleccionar todas las filas\",\n selectRow: \"Seleccionar fila\",\n selectedCount: \"{count} seleccionadas\",\n expandRow: \"Expandir fila\",\n collapseRow: \"Contraer fila\",\n filterPlaceholder: \"Filtrar…\",\n clearFilter: \"Limpiar filtro\",\n searchPlaceholder: \"Buscar…\",\n columnVisibility: \"Columnas\",\n export: \"Exportar\",\n exportCsv: \"Descargar CSV\",\n exportJson: \"Descargar JSON\",\n exportClipboard: \"Copiar al portapapeles\",\n copiedRows: \"{count} filas copiadas\",\n resizeColumn: \"Redimensionar columna\",\n reorderColumn: \"Reordenar columna\",\n movedColumn: \"Se movió {column} a la posición {position}\",\n pagination: {\n previous: \"Página anterior\",\n next: \"Página siguiente\",\n first: \"Primera página\",\n last: \"Última página\",\n page: \"Página {current} de {total}\",\n rowsPerPage: \"Filas por página\",\n range: \"{from}-{to} de {total}\",\n rangeUnknown: \"{from}-{to}\",\n },\n edit: {\n editCell: \"Editar celda\",\n commitHint: \"Presiona Enter para guardar, Escape para cancelar.\",\n invalid: \"Valor no válido\",\n },\n },\n switcher: {\n ariaLabel: \"Cambiar contexto\",\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin opciones.\",\n noResults: \"Sin resultados.\",\n activeItemSr: \"Actualmente seleccionado\",\n },\n dialog: { label: \"Diálogo\" },\n sheet: { label: \"Panel\" },\n morphSelect: {\n placeholder: \"Selecciona…\",\n searchPlaceholder: \"Buscar…\",\n empty: \"Sin resultados.\",\n },\n liquidToast: { region: \"Notificaciones\" },\n toast: { region: \"Notificaciones\", dismiss: \"Descartar notificación\" },\n modeOrb: { toggle: \"Cambiar modo de color\" },\n};\n"],"mappings":";;AAGA,IAAa,KAAiB;CAC5B,QAAQ;EACN,OAAO;EACP,SAAS;EACT,OAAO;EACP,SAAS;EACT,QAAQ;EACT;CACD,OAAO,EACL,OAAO,iBACR;CACD,UAAU,EACR,OAAO,yBACR;CACD,QAAQ;EACN,OAAO;EACP,OAAO;EACP,aAAa;EACd;CACD,aAAa;EACX,OAAO;EACP,aAAa;EACd;CACD,UAAU;EACR,OAAO;EACP,eAAe;EAChB;CACD,aAAa;EACX,WAAW;EACX,WAAW;EACZ;CACD,aAAa,EACX,OAAO,oBACR;CACD,eAAe;EACb,MAAM;EACN,MAAM;EACN,UAAU;GACR,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACJ;EACF;CACD,WAAW,EACT,OAAO,iBACR;CACD,eAAe,EACb,OAAO,wBACR;CACD,gBAAgB,EACd,OAAO,iBACR;CACD,UAAU;EACR,UAAU;EACV,WAAW;EACX,WAAW;EACX,UAAU;EACV,OAAO;EACR;CACD,QAAQ,EACN,OAAO,wBACR;CACD,WAAW;EACT,aAAa;EACb,aAAa;EACb,eAAe;EACf,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,QAAQ;EACR,SAAS;EACT,SAAS;EACT,eAAe;EACf,QAAQ;GACN,MAAM;GACN,aAAa;GACb,MAAM;GACN,OAAO;GACP,cAA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AS;EAA0B;CACtE,SAAS,EAAE,QAAQ,yBAAyB;CAC7C"}
|
package/dist/mood-ui.css
CHANGED
|
@@ -704,45 +704,45 @@ to { background-position: 1rem 0;
|
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
@media (prefers-reduced-motion: reduce) {
|
|
707
|
-
.modo-toast[data-v-
|
|
707
|
+
.modo-toast[data-v-75a66e0b] {
|
|
708
708
|
transition: none !important;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
.modo-toast-slide-right-enter-from[data-v-
|
|
712
|
+
.modo-toast-slide-right-enter-from[data-v-43c0c7e8] { transform: translateX(110%); opacity: 0;
|
|
713
713
|
}
|
|
714
|
-
.modo-toast-slide-right-leave-to[data-v-
|
|
714
|
+
.modo-toast-slide-right-leave-to[data-v-43c0c7e8] { transform: translateX(110%); opacity: 0;
|
|
715
715
|
}
|
|
716
|
-
.modo-toast-slide-right-enter-active[data-v-
|
|
717
|
-
.modo-toast-slide-right-leave-active[data-v-
|
|
716
|
+
.modo-toast-slide-right-enter-active[data-v-43c0c7e8],
|
|
717
|
+
.modo-toast-slide-right-leave-active[data-v-43c0c7e8] { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), opacity 200ms ease;
|
|
718
718
|
}
|
|
719
|
-
.modo-toast-slide-left-enter-from[data-v-
|
|
719
|
+
.modo-toast-slide-left-enter-from[data-v-43c0c7e8] { transform: translateX(-110%); opacity: 0;
|
|
720
720
|
}
|
|
721
|
-
.modo-toast-slide-left-leave-to[data-v-
|
|
721
|
+
.modo-toast-slide-left-leave-to[data-v-43c0c7e8] { transform: translateX(-110%); opacity: 0;
|
|
722
722
|
}
|
|
723
|
-
.modo-toast-slide-left-enter-active[data-v-
|
|
724
|
-
.modo-toast-slide-left-leave-active[data-v-
|
|
723
|
+
.modo-toast-slide-left-enter-active[data-v-43c0c7e8],
|
|
724
|
+
.modo-toast-slide-left-leave-active[data-v-43c0c7e8] { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), opacity 200ms ease;
|
|
725
725
|
}
|
|
726
|
-
.modo-toast-slide-vertical-enter-from[data-v-
|
|
726
|
+
.modo-toast-slide-vertical-enter-from[data-v-43c0c7e8] { transform: translateY(-30%); opacity: 0;
|
|
727
727
|
}
|
|
728
|
-
.modo-toast-slide-vertical-leave-to[data-v-
|
|
728
|
+
.modo-toast-slide-vertical-leave-to[data-v-43c0c7e8] { transform: translateY(-30%); opacity: 0;
|
|
729
729
|
}
|
|
730
|
-
.modo-toast-slide-vertical-enter-active[data-v-
|
|
731
|
-
.modo-toast-slide-vertical-leave-active[data-v-
|
|
730
|
+
.modo-toast-slide-vertical-enter-active[data-v-43c0c7e8],
|
|
731
|
+
.modo-toast-slide-vertical-leave-active[data-v-43c0c7e8] { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), opacity 200ms ease;
|
|
732
732
|
}
|
|
733
|
-
.modo-toast-fade-enter-from[data-v-
|
|
734
|
-
.modo-toast-fade-leave-to[data-v-
|
|
733
|
+
.modo-toast-fade-enter-from[data-v-43c0c7e8],
|
|
734
|
+
.modo-toast-fade-leave-to[data-v-43c0c7e8] { opacity: 0;
|
|
735
735
|
}
|
|
736
|
-
.modo-toast-fade-enter-active[data-v-
|
|
737
|
-
.modo-toast-fade-leave-active[data-v-
|
|
736
|
+
.modo-toast-fade-enter-active[data-v-43c0c7e8],
|
|
737
|
+
.modo-toast-fade-leave-active[data-v-43c0c7e8] { transition: opacity 150ms ease;
|
|
738
738
|
}
|
|
739
739
|
@media (prefers-reduced-motion: reduce) {
|
|
740
|
-
.modo-toast-slide-right-enter-from[data-v-
|
|
741
|
-
.modo-toast-slide-left-enter-from[data-v-
|
|
742
|
-
.modo-toast-slide-vertical-enter-from[data-v-
|
|
743
|
-
.modo-toast-slide-right-leave-to[data-v-
|
|
744
|
-
.modo-toast-slide-left-leave-to[data-v-
|
|
745
|
-
.modo-toast-slide-vertical-leave-to[data-v-
|
|
740
|
+
.modo-toast-slide-right-enter-from[data-v-43c0c7e8],
|
|
741
|
+
.modo-toast-slide-left-enter-from[data-v-43c0c7e8],
|
|
742
|
+
.modo-toast-slide-vertical-enter-from[data-v-43c0c7e8],
|
|
743
|
+
.modo-toast-slide-right-leave-to[data-v-43c0c7e8],
|
|
744
|
+
.modo-toast-slide-left-leave-to[data-v-43c0c7e8],
|
|
745
|
+
.modo-toast-slide-vertical-leave-to[data-v-43c0c7e8] {
|
|
746
746
|
transform: none;
|
|
747
747
|
}
|
|
748
748
|
}
|
|
@@ -2210,12 +2210,12 @@ to { background-position: 1rem 0;
|
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
2212
2212
|
/* ModeOrb & circular view-transition wave. Every color is a provider token:
|
|
2213
|
-
* the sphere uses `--modo-orb` (
|
|
2214
|
-
*
|
|
2213
|
+
* the sphere uses `--modo-orb` (the provider's primary palette by default,
|
|
2214
|
+
* or the semantic color passed in) and the crest uses the incoming theme's
|
|
2215
2215
|
* foreground. Size, focus ring and disabled state come from utility classes
|
|
2216
2216
|
* set by the component. */
|
|
2217
2217
|
.modo-mode-orb {
|
|
2218
|
-
--modo-orb: var(--
|
|
2218
|
+
--modo-orb: var(--primary);
|
|
2219
2219
|
position: relative;
|
|
2220
2220
|
display: inline-flex;
|
|
2221
2221
|
flex-shrink: 0;
|
|
@@ -2811,7 +2811,15 @@ to {
|
|
|
2811
2811
|
flex: none;
|
|
2812
2812
|
width: var(--modo-glass-switch-w);
|
|
2813
2813
|
height: var(--modo-glass-switch-h);
|
|
2814
|
-
|
|
2814
|
+
/* Off track: Valux's 22% ink in light mode. In dark mode 22% of a light
|
|
2815
|
+
ink barely separates from a card, so it goes to 34% and gets a hairline
|
|
2816
|
+
edge. `light-dark()` follows the color-scheme set by `.dark` and by a
|
|
2817
|
+
scoped `[data-modo-theme]`. */
|
|
2818
|
+
background: light-dark(
|
|
2819
|
+
color-mix(in srgb, var(--foreground), transparent 78%),
|
|
2820
|
+
color-mix(in srgb, var(--foreground), transparent 66%)
|
|
2821
|
+
);
|
|
2822
|
+
box-shadow: inset 0 0 0 1px light-dark(transparent, color-mix(in srgb, var(--foreground), transparent 86%));
|
|
2815
2823
|
/* On BOTH track and thumb: the touch usually lands on the thumb, and
|
|
2816
2824
|
iOS fires pointercancel (to scroll) unless the target opts out. */
|
|
2817
2825
|
touch-action: none;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { MorphSelectProps } from '../../../interfaces/forms/MorphSelect.interface';
|
|
2
2
|
declare var __VLS_1: {
|
|
3
|
-
value: string;
|
|
3
|
+
value: string | string[];
|
|
4
4
|
open: boolean;
|
|
5
5
|
};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import('vue').DefineComponent<MorphSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
change: (value: string) => any;
|
|
11
|
-
"update:modelValue": (value: string) => any;
|
|
10
|
+
change: (value: string | string[]) => any;
|
|
11
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
12
12
|
openChange: (value: boolean) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<MorphSelectProps> & Readonly<{
|
|
14
|
-
onChange?: ((value: string) => any) | undefined;
|
|
15
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string | string[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
16
16
|
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
color: import('../../..').ModoColor;
|
|
19
19
|
invalid: boolean;
|
|
20
20
|
fullWidth: boolean;
|
|
21
21
|
disabled: boolean;
|
|
22
|
+
multiple: boolean;
|
|
22
23
|
required: boolean;
|
|
23
|
-
modelValue: string;
|
|
24
|
+
modelValue: string | string[];
|
|
24
25
|
readonly: boolean;
|
|
25
|
-
defaultValue: string;
|
|
26
|
+
defaultValue: string | string[];
|
|
26
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,7 +6,12 @@ interface SelectContext {
|
|
|
6
6
|
/** Trigger id (FormField-aware); the listbox is `${fieldId}-listbox`. */
|
|
7
7
|
fieldId: ComputedRef<string>;
|
|
8
8
|
options: Ref<readonly MorphSelectOption[]>;
|
|
9
|
-
value: Ref<string>;
|
|
9
|
+
value: Ref<string | string[]>;
|
|
10
|
+
/** True when the select keeps several values (`multiple`). */
|
|
11
|
+
multiple: ComputedRef<boolean>;
|
|
12
|
+
/** Selected options, in option order. */
|
|
13
|
+
selectedOptions: ComputedRef<MorphSelectOption[]>;
|
|
14
|
+
isSelected: (value: string) => boolean;
|
|
10
15
|
disabled: ComputedRef<boolean>;
|
|
11
16
|
readonly: ComputedRef<boolean>;
|
|
12
17
|
required: ComputedRef<boolean>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { MorphSelectTriggerProps } from '../../../interfaces/forms/MorphSelect.interface';
|
|
2
|
-
declare var __VLS_1: {
|
|
3
|
-
option: import('../../..').MorphSelectOption
|
|
2
|
+
declare var __VLS_1: {}, __VLS_8: {
|
|
3
|
+
option: import('../../..').MorphSelectOption;
|
|
4
|
+
options: import('../../..').MorphSelectOption[];
|
|
4
5
|
};
|
|
5
6
|
type __VLS_Slots = {} & {
|
|
6
|
-
|
|
7
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
10
|
};
|
|
8
11
|
declare const __VLS_base: import('vue').DefineComponent<MorphSelectTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MorphSelectTriggerProps> & Readonly<{}>, {
|
|
9
12
|
variant: "outline" | "filled" | "ghost";
|
|
@@ -2,22 +2,23 @@ import { default as MorphSelectTrigger } from './MorphSelectTrigger.vue';
|
|
|
2
2
|
import { default as MorphSelectContent } from './MorphSelectContent.vue';
|
|
3
3
|
declare const MorphSelect: {
|
|
4
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../..').MorphSelectProps> & Readonly<{
|
|
5
|
-
onChange?: ((value: string) => any) | undefined;
|
|
6
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
5
|
+
onChange?: ((value: string | string[]) => any) | undefined;
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
7
7
|
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
8
8
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
change: (value: string) => any;
|
|
10
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
+
change: (value: string | string[]) => any;
|
|
10
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
11
11
|
openChange: (value: boolean) => any;
|
|
12
12
|
}, import('vue').PublicProps, {
|
|
13
13
|
color: import('../../..').ModoColor;
|
|
14
14
|
invalid: boolean;
|
|
15
15
|
fullWidth: boolean;
|
|
16
16
|
disabled: boolean;
|
|
17
|
+
multiple: boolean;
|
|
17
18
|
required: boolean;
|
|
18
|
-
modelValue: string;
|
|
19
|
+
modelValue: string | string[];
|
|
19
20
|
readonly: boolean;
|
|
20
|
-
defaultValue: string;
|
|
21
|
+
defaultValue: string | string[];
|
|
21
22
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
22
23
|
P: {};
|
|
23
24
|
B: {};
|
|
@@ -26,43 +27,45 @@ declare const MorphSelect: {
|
|
|
26
27
|
M: {};
|
|
27
28
|
Defaults: {};
|
|
28
29
|
}, Readonly<import('../../..').MorphSelectProps> & Readonly<{
|
|
29
|
-
onChange?: ((value: string) => any) | undefined;
|
|
30
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
|
+
onChange?: ((value: string | string[]) => any) | undefined;
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
31
32
|
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
32
33
|
}>, {}, {}, {}, {}, {
|
|
33
34
|
color: import('../../..').ModoColor;
|
|
34
35
|
invalid: boolean;
|
|
35
36
|
fullWidth: boolean;
|
|
36
37
|
disabled: boolean;
|
|
38
|
+
multiple: boolean;
|
|
37
39
|
required: boolean;
|
|
38
|
-
modelValue: string;
|
|
40
|
+
modelValue: string | string[];
|
|
39
41
|
readonly: boolean;
|
|
40
|
-
defaultValue: string;
|
|
42
|
+
defaultValue: string | string[];
|
|
41
43
|
}>;
|
|
42
44
|
__isFragment?: never;
|
|
43
45
|
__isTeleport?: never;
|
|
44
46
|
__isSuspense?: never;
|
|
45
47
|
} & import('vue').ComponentOptionsBase<Readonly<import('../../..').MorphSelectProps> & Readonly<{
|
|
46
|
-
onChange?: ((value: string) => any) | undefined;
|
|
47
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
48
|
+
onChange?: ((value: string | string[]) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
48
50
|
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
49
51
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
change: (value: string) => any;
|
|
51
|
-
"update:modelValue": (value: string) => any;
|
|
52
|
+
change: (value: string | string[]) => any;
|
|
53
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
52
54
|
openChange: (value: boolean) => any;
|
|
53
55
|
}, string, {
|
|
54
56
|
color: import('../../..').ModoColor;
|
|
55
57
|
invalid: boolean;
|
|
56
58
|
fullWidth: boolean;
|
|
57
59
|
disabled: boolean;
|
|
60
|
+
multiple: boolean;
|
|
58
61
|
required: boolean;
|
|
59
|
-
modelValue: string;
|
|
62
|
+
modelValue: string | string[];
|
|
60
63
|
readonly: boolean;
|
|
61
|
-
defaultValue: string;
|
|
64
|
+
defaultValue: string | string[];
|
|
62
65
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
63
66
|
$slots: {
|
|
64
67
|
default?: (props: {
|
|
65
|
-
value: string;
|
|
68
|
+
value: string | string[];
|
|
66
69
|
open: boolean;
|
|
67
70
|
}) => any;
|
|
68
71
|
};
|
|
@@ -87,8 +90,11 @@ declare const MorphSelect: {
|
|
|
87
90
|
variant: "outline" | "filled" | "ghost";
|
|
88
91
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
89
92
|
$slots: {
|
|
93
|
+
icon?: (props: {}) => any;
|
|
94
|
+
} & {
|
|
90
95
|
default?: (props: {
|
|
91
|
-
option: import('../../..').MorphSelectOption
|
|
96
|
+
option: import('../../..').MorphSelectOption;
|
|
97
|
+
options: import('../../..').MorphSelectOption[];
|
|
92
98
|
}) => any;
|
|
93
99
|
};
|
|
94
100
|
});
|
|
@@ -272,6 +272,12 @@ export interface ModoLocale {
|
|
|
272
272
|
/** Accessible name of the toaster landmark. */
|
|
273
273
|
region: string;
|
|
274
274
|
};
|
|
275
|
+
toast: {
|
|
276
|
+
/** Accessible name of the toast region. */
|
|
277
|
+
region: string;
|
|
278
|
+
/** Accessible name of the per-toast dismiss button. */
|
|
279
|
+
dismiss: string;
|
|
280
|
+
};
|
|
275
281
|
modeOrb: {
|
|
276
282
|
/** Default aria-label of the color-mode toggle. */
|
|
277
283
|
toggle: string;
|
|
@@ -12,9 +12,9 @@ export interface ModeOrbProps {
|
|
|
12
12
|
*/
|
|
13
13
|
size?: ModoSize;
|
|
14
14
|
/**
|
|
15
|
-
* Sphere color. `default`
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Sphere color. Follows the provider: `default` paints the sphere with the
|
|
16
|
+
* provider's primary palette; a semantic color (`danger`, `success`…) uses
|
|
17
|
+
* that token instead.
|
|
18
18
|
*/
|
|
19
19
|
color?: ModoColor;
|
|
20
20
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
1
|
+
import { Component, VNodeChild } from 'vue';
|
|
2
2
|
import { ModoColor, ModoHalo, ModoRadius, ModoSize } from '../../config/ModoConfig';
|
|
3
3
|
export interface MorphSelectOption {
|
|
4
4
|
value: string;
|
|
@@ -14,10 +14,16 @@ export interface MorphSelectOption {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface MorphSelectProps {
|
|
16
16
|
options: readonly MorphSelectOption[];
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Lets the user pick several options. The panel stays open while options
|
|
19
|
+
* are toggled, `v-model` is a `string[]` and the form submits one value per
|
|
20
|
+
* selected option. @default false
|
|
21
|
+
*/
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
/** v-model: a `string`, or a `string[]` with `multiple`. When omitted the select is uncontrolled (`defaultValue`). */
|
|
24
|
+
modelValue?: string | string[];
|
|
25
|
+
/** Initial value when uncontrolled (`string[]` with `multiple`); also the value restored on form reset. */
|
|
26
|
+
defaultValue?: string | string[];
|
|
21
27
|
/** Visible label above the field. */
|
|
22
28
|
label?: string;
|
|
23
29
|
/** Helper text under the field (hidden when `errorText` is set). */
|
|
@@ -51,6 +57,8 @@ export interface MorphSelectProps {
|
|
|
51
57
|
export interface MorphSelectTriggerProps {
|
|
52
58
|
/** Placeholder when nothing is selected. Defaults to the `morphSelect.placeholder` locale string. */
|
|
53
59
|
placeholder?: string;
|
|
60
|
+
/** Leading icon inside the field, sized and colored like the chevron. The `icon` slot overrides it. */
|
|
61
|
+
icon?: Component;
|
|
54
62
|
/** Field look, same variants as the native `Select`. @default 'outline' */
|
|
55
63
|
variant?: 'outline' | 'filled' | 'ghost';
|
|
56
64
|
}
|
|
@@ -66,3 +66,9 @@ export interface ParsedShortcut {
|
|
|
66
66
|
}
|
|
67
67
|
export declare function parseShortcut(shortcut: string): ParsedShortcut;
|
|
68
68
|
export declare function matchesShortcut(event: KeyboardEvent, shortcut: string): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* True when Enter or Space on an `asChild` trigger must open the overlay by
|
|
71
|
+
* hand: the slotted element is not a native control (e.g. a `<span
|
|
72
|
+
* role="button">`), so the browser will not turn the key into a click.
|
|
73
|
+
*/
|
|
74
|
+
export declare function isKeyboardActivation(event: KeyboardEvent): boolean;
|
|
@@ -608,6 +608,21 @@ function matchesShortcut(event, shortcut) {
|
|
|
608
608
|
const parsed = parseShortcut(shortcut);
|
|
609
609
|
return parsed.key === event.key.toLowerCase() && parsed.meta === event.metaKey && parsed.shift === event.shiftKey && parsed.alt === event.altKey && parsed.ctrl === event.ctrlKey;
|
|
610
610
|
}
|
|
611
|
+
var NATIVE_ACTIVATION = "button, a[href], input, select, textarea, summary, [contenteditable=\"true\"]";
|
|
612
|
+
/**
|
|
613
|
+
* True when Enter or Space on an `asChild` trigger must open the overlay by
|
|
614
|
+
* hand: the slotted element is not a native control (e.g. a `<span
|
|
615
|
+
* role="button">`), so the browser will not turn the key into a click.
|
|
616
|
+
*/
|
|
617
|
+
function isKeyboardActivation(event) {
|
|
618
|
+
if (event.key !== "Enter" && event.key !== " ") return false;
|
|
619
|
+
if (event.repeat || event.defaultPrevented) return false;
|
|
620
|
+
const target = event.target;
|
|
621
|
+
const host = event.currentTarget;
|
|
622
|
+
if (!target || !host) return false;
|
|
623
|
+
const native = target.closest(NATIVE_ACTIVATION);
|
|
624
|
+
return !(native && host.contains(native));
|
|
625
|
+
}
|
|
611
626
|
//#endregion
|
|
612
627
|
exports.acquireScrollLock = acquireScrollLock;
|
|
613
628
|
exports.adoptTriggerSurface = adoptTriggerSurface;
|
|
@@ -615,6 +630,7 @@ exports.attachCloseScrub = attachCloseScrub;
|
|
|
615
630
|
exports.attachFocusTrap = attachFocusTrap;
|
|
616
631
|
exports.attachSheetExpand = attachSheetExpand;
|
|
617
632
|
exports.attachSheetPullDismiss = attachSheetPullDismiss;
|
|
633
|
+
exports.isKeyboardActivation = isKeyboardActivation;
|
|
618
634
|
exports.isTopMorphLayer = isTopMorphLayer;
|
|
619
635
|
exports.matchesShortcut = matchesShortcut;
|
|
620
636
|
exports.populateGhost = populateGhost;
|