feat(18-01): money list column, danger record actions, preview Edit rule and table kit (task 2)
- columns.yaml type: money with currency or currencyFrom (exactly one), never searchable, not sortable by default; every list row carries the currencyFrom column's value under its own key; the schema serves currency and currencyFrom on the column - pact.AdminRecordAction.Danger, served as danger on cabana.RecordAction (absent when false); RecordActions.vue passes it to the confirm dialog - CellValue money kind through formatMoney with the row's code, the em dash when empty and the amount alone without a code; DataTable aligns money headers and cells to the right - PreviewView renders Edit only when a registered value field allows update (F6) - main.css .summer-table* and .summer-stat__note kit classes (F7) over --c-* variables; cabana README kit rows - fixture record actions void (danger) and resend; TestMoneyListCompile, TestMoneyListSmoke and TestRecordActionDangerSmoke; regenerated OpenAPI and TS types; rebuilt dist; lists-and-filters and admin-controllers docs
This commit is contained in:
13
admin/src/api/schema.d.ts
vendored
13
admin/src/api/schema.d.ts
vendored
@@ -5802,6 +5802,14 @@ export interface components {
|
||||
[key: string]: components["schemas"]["cabana.MessageForms"];
|
||||
};
|
||||
"cabana.ListColumn": {
|
||||
/**
|
||||
* @description Currency is the ISO 4217 code of a `type: money` column; CurrencyFrom
|
||||
* names the model column that holds each row's code instead. Every list
|
||||
* row carries the CurrencyFrom column's value under its own key, so the
|
||||
* admin never guesses a currency (D-07).
|
||||
*/
|
||||
currency?: string;
|
||||
currencyFrom?: string;
|
||||
/**
|
||||
* @description Invisible marks a column that is searched and sorted on the server but
|
||||
* not shown: the admin renders no header or cell for it and list rows do
|
||||
@@ -5949,6 +5957,11 @@ export interface components {
|
||||
};
|
||||
"cabana.RecordAction": {
|
||||
confirm?: string;
|
||||
/**
|
||||
* @description Danger marks an action whose confirm dialog takes the danger variant
|
||||
* (pact.AdminRecordAction.Danger); an ordinary action omits the key.
|
||||
*/
|
||||
danger?: boolean;
|
||||
label: string;
|
||||
name: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user