@design.estate/dees-catalog 21.39.1 → 21.40.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_bundle/bundle.js +174 -137
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-DF4QZTOW.js → chunk-5K6O7YAL.js} +4 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-DF4QZTOW.js.map → chunk-5K6O7YAL.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7SVFKQJK.js → chunk-GQD5HSUW.js} +10 -5
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7SVFKQJK.js.map → chunk-GQD5HSUW.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FGQNHF2X.js → chunk-V55MXKAS.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-FNI3J2QO.js → de-6VMRGXCJ.js} +4 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-6VMRGXCJ.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-43SBKV7A.js → dees-modal-QSZV6TA6.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-4WZ3CPSW.js → dees-workspace-terminal-FXF7TT4M.js} +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.d.ts +8 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.js +9 -4
- package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +5 -0
- package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +180 -141
- package/dist_ts_web/i18n/de.d.ts +5 -1
- package/dist_ts_web/i18n/de.js +3 -2
- package/dist_ts_web/i18n/messages.d.ts +5 -1
- package/dist_ts_web/i18n/messages.js +3 -2
- package/package.json +1 -1
- package/readme.md +22 -9
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.ts +15 -3
- package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +232 -188
- package/ts_web/i18n/de.ts +2 -1
- package/ts_web/i18n/messages.ts +2 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-FNI3J2QO.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FGQNHF2X.js.map → chunk-V55MXKAS.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-43SBKV7A.js.map → dees-modal-QSZV6TA6.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-4WZ3CPSW.js.map → dees-workspace-terminal-FXF7TT4M.js.map} +0 -0
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
toMarkdown,
|
|
25
25
|
visit,
|
|
26
26
|
zwitch
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5K6O7YAL.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__decorateElement,
|
|
@@ -60499,10 +60499,11 @@ var _DeesActionFooter = class _DeesActionFooter extends (_a8 = DeesElement, _act
|
|
|
60499
60499
|
render() {
|
|
60500
60500
|
const primary = this.primaryAction;
|
|
60501
60501
|
const ordered = primary ? [...this.actions.filter((action) => action !== primary), primary] : this.actions;
|
|
60502
|
+
const pending = this.runningAction;
|
|
60502
60503
|
return b3`${this.infoBar.hasInfo(this.info) ? b3`<div class="info">${this.infoBar.render(this.info, this.infoLabel || this.t("actionfooter.info"))}</div>` : ""}${ordered.map((action) => b3`
|
|
60503
60504
|
<dees-button class="action" .text=${this.actionName(action)}
|
|
60504
|
-
.disabled=${this.disabled || !!action.disabled ||
|
|
60505
|
-
.status=${
|
|
60505
|
+
.disabled=${this.disabled || !!action.disabled || pending !== null && pending !== action}
|
|
60506
|
+
.status=${pending === action ? "pending" : "normal"}
|
|
60506
60507
|
.type=${action === primary ? this.primaryActionType : "secondary"}
|
|
60507
60508
|
@clicked=${() => this.run(action)}></dees-button>
|
|
60508
60509
|
`)}`;
|
|
@@ -60521,13 +60522,17 @@ var _DeesActionFooter = class _DeesActionFooter extends (_a8 = DeesElement, _act
|
|
|
60521
60522
|
const primary = this.primaryAction;
|
|
60522
60523
|
if (primary) await this.run(primary);
|
|
60523
60524
|
}
|
|
60525
|
+
/** The action running: the one whose promise is pending, else one its host marks `pending`. */
|
|
60526
|
+
get runningAction() {
|
|
60527
|
+
return this.pendingAction ?? this.actions.find((action) => action.pending) ?? null;
|
|
60528
|
+
}
|
|
60524
60529
|
/** An action's name: the caller's, or the catalog's for an action `catalogAction()` made. */
|
|
60525
60530
|
actionName(actionArg) {
|
|
60526
60531
|
const word = catalogWords.get(actionArg);
|
|
60527
60532
|
return word ? this.t(word) : actionArg.name;
|
|
60528
60533
|
}
|
|
60529
60534
|
async run(actionArg) {
|
|
60530
|
-
if (this.
|
|
60535
|
+
if (this.runningAction || this.disabled || actionArg.disabled) return;
|
|
60531
60536
|
if (actionArg === this.primaryAction && this.beforePrimary?.() === false) return;
|
|
60532
60537
|
this.pendingAction = actionArg;
|
|
60533
60538
|
try {
|
|
@@ -66033,4 +66038,4 @@ lucide/dist/esm/lucide.js:
|
|
|
66033
66038
|
* See the LICENSE file in the root directory of this source tree.
|
|
66034
66039
|
*)
|
|
66035
66040
|
*/
|
|
66036
|
-
//# sourceMappingURL=chunk-
|
|
66041
|
+
//# sourceMappingURL=chunk-GQD5HSUW.js.map
|