@antelopejs/interface-dms 0.14.3 → 0.14.4-next.961.g10b1a7b

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.
@@ -98,11 +98,14 @@ export interface ConfirmDialog {
98
98
  * Fields the user fills in before confirming. Their values are sent with
99
99
  * the action's request — merged into an `api` target's `body`, the input
100
100
  * winning — and a field error the server answers shows under its field.
101
+ * In a dialog a {@link ConfirmDialogFrom} route answers, a field drawn by
102
+ * any input but a built-in one that reads no URL makes the dialog fail.
101
103
  */
102
104
  fields?: FormField[];
103
105
  /**
104
106
  * Escape hatch: a frontend component drawn in the dialog's body, resolved
105
- * by name from the global registry.
107
+ * by name from the global registry. The dashboard leaves it out of a dialog
108
+ * a {@link ConfirmDialogFrom} route answers.
106
109
  */
107
110
  component?: Component;
108
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-dialog.js","sourceRoot":"","sources":["../../src/component-options/confirm-dialog.ts"],"names":[],"mappings":";;AAsJA,wDAQC;AA7JD,sDAA2D;AAiJ3D;;;GAGG;AACH,SAAgB,sBAAsB,CACpC,MAAqB;IAErB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,UAAU,GAA4B,KAAK,CAAC;IAClD,IAAI,MAAM;QAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;IAC/D,IAAI,SAAS;QAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;IAChE,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"confirm-dialog.js","sourceRoot":"","sources":["../../src/component-options/confirm-dialog.ts"],"names":[],"mappings":";;AAyJA,wDAQC;AAhKD,sDAA2D;AAoJ3D;;;GAGG;AACH,SAAgB,sBAAsB,CACpC,MAAqB;IAErB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,UAAU,GAA4B,KAAK,CAAC;IAClD,IAAI,MAAM;QAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;IAC/D,IAAI,SAAS;QAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;IAChE,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -182,7 +182,7 @@ import type {
182
182
  } from "@antelopejs/interface-dms/base/types/confirm-dialog";
183
183
  ```
184
184
 
185
- `ConfirmDialog` is the one confirmation every action asks in: `title`, `description?`, `params?` (interpolated into the texts, besides a row action's row fields; a numeric `count` pluralizes them), `icon?`, `color?` (`ButtonColor`), `confirmLabel?`, `cancelLabel?`, `impact?: ConfirmDialogImpact[]` (`{ icon, label, count? }`), `secondaryAction?: ConfirmDialogSecondaryAction` (`{ label, icon?, target }`, a button next to cancel and confirm that leaves the dialog open; its `target` is an `external` link or `{ type: "download", url, filename? }`, fetched with the user's session), `blocked?` (the dialog only explains why the action cannot run), `confirmText?` (type-to-confirm), `confirmTextCaseInsensitive?` (the typed text compared ignoring case), `fields?: FormField[]` and `component?: Component`. The values of `fields` are sent with the action's request, merged into an `api` target's `body` with the input winning. A field error the server answers shows under its field. `ConfirmDialogFrom` is `{ from: string }`: a URL (on a row action, built-in or custom, the row's fields filled in, such as `{{row._id}}`, plus `{{row.id}}`, the row's id) answering a `ConfirmDialogSerialized`, which `serializeConfirmDialog(dialog)` builds. `ActionConfirm` is either.
185
+ `ConfirmDialog` is the one confirmation every action asks in: `title`, `description?`, `params?` (interpolated into the texts, besides a row action's row fields; a numeric `count` pluralizes them), `icon?`, `color?` (`ButtonColor`), `confirmLabel?`, `cancelLabel?`, `impact?: ConfirmDialogImpact[]` (`{ icon, label, count? }`), `secondaryAction?: ConfirmDialogSecondaryAction` (`{ label, icon?, target }`, a button next to cancel and confirm that leaves the dialog open; its `target` is an `external` link or `{ type: "download", url, filename? }`, fetched with the user's session), `blocked?` (the dialog only explains why the action cannot run), `confirmText?` (type-to-confirm), `confirmTextCaseInsensitive?` (the typed text compared ignoring case), `fields?: FormField[]` and `component?: Component`. The values of `fields` are sent with the action's request, merged into an `api` target's `body` with the input winning. A field error the server answers shows under its field. `ConfirmDialogFrom` is `{ from: string }`: a URL (on a row action, built-in or custom, the row's fields filled in, such as `{{row._id}}`, plus `{{row.id}}`, the row's id) answering a `ConfirmDialogSerialized`, which `serializeConfirmDialog(dialog)` builds. The dashboard draws such an answer without its `component`, and fails it when a field is drawn by any input but a built-in one that reads no URL (see [Confirmations](/docs/components/tables/confirmations)). `ActionConfirm` is either.
186
186
 
187
187
  `ActionTargetSerialized` mirrors the union exactly, with `component` on the `drawer`, `modal` and `sidePanel` variants replaced by `ComponentInfoSerialized`.
188
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-dms",
3
- "version": "0.14.3",
3
+ "version": "0.14.4-next.961.g10b1a7b",
4
4
  "description": "Public AntelopeJS interfaces of the DMS: pages, components, permissions, tenancy, auth, notifications and HTML rendering.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -131,7 +131,7 @@
131
131
  "provenance": true,
132
132
  "registry": "https://registry.npmjs.org/"
133
133
  },
134
- "gitHead": "973d8d35263a5502cdb3a81a29d4ef3cb019512f",
134
+ "gitHead": "10b1a7ba5a64554c601a871300fba4da7ed9c612",
135
135
  "scripts": {
136
136
  "build": "rimraf dist && tsc",
137
137
  "typecheck": "tsc --noEmit",