{"version":3,"file":"edit-labels.cjs","names":[],"sources":["../../../src/components/DataTable/edit-labels.ts"],"sourcesContent":["/** Where a commit should send focus next. */\nexport type CellCommitMove = \"none\" | \"next\" | \"previous\";\n\n/** Copy for the inline-editing affordances. Every entry has a PT-BR default. */\nexport interface DataTableEditLabels {\n    /**\n     * Visually hidden prefix that turns a cell's own content into the button's name.\n     *\n     * A prefix and not a whole label: the accessible name has to *contain* the visible\n     * text (WCAG 2.5.3, Label in Name), and a label built from the raw value would say\n     * \"850000\" over a cell that reads `R$ 8.500,00` — which breaks voice control and\n     * makes the screen reader disagree with the screen.\n     *\n     * A single space is appended when it is rendered, so the name reads\n     * `\"Editar Salário: R$ 8.500,00\"`. Do not add one yourself.\n     */\n    editCell: (column: string) => string;\n    /** Accessible name of the editor input. */\n    editor: (column: string, rowNumber: number) => string;\n    /** Announced (politely) once a cell saved. */\n    saved: (column: string) => string;\n    /** Shown in the cell when the save was rejected and no reason was thrown. */\n    saveFailed: (column: string) => string;\n}\n\n/**\n * PT-BR defaults, matching the rest of the component copy in the SDK.\n *\n * In their own module rather than next to `EditableCell` so that file exports\n * components and nothing else, which is what keeps Fast Refresh working for\n * anyone editing the component.\n */\nexport const DEFAULT_EDIT_LABELS: DataTableEditLabels = {\n    editCell: (column) => `Editar ${column}:`,\n    editor: (column, rowNumber) => `${column}, linha ${rowNumber}`,\n    saved: (column) => `${column} salvo`,\n    saveFailed: (column) => `Não foi possível salvar ${column}.`,\n};\n"],"mappings":"AAgCA,IAAa,EAA2C,CACpD,SAAW,GAAW,UAAU,EAAO,GACvC,QAAS,EAAQ,IAAc,GAAG,EAAO,UAAU,IACnD,MAAQ,GAAW,GAAG,EAAO,QAC7B,WAAa,GAAW,2BAA2B,EAAO,EAC9D"}