dsh-workbench-tasks 5.2.31 → 5.2.33
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/lib/client.js +59 -45
- package/lib/index.js +2 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -8964,6 +8964,13 @@ var require_styles = __commonJS({
|
|
|
8964
8964
|
".wbt-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}",
|
|
8965
8965
|
".wbt-field{display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:0}",
|
|
8966
8966
|
".wbt-field.full{grid-column:1 / -1}",
|
|
8967
|
+
".wbt-create-tl{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px 10px;border:1px solid var(--wbt-line);border-radius:10px;background:color-mix(in oklab,var(--wbt-accent) 4%,transparent);box-sizing:border-box}",
|
|
8968
|
+
".wbt-create-tl-head{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:12px}",
|
|
8969
|
+
".wbt-create-tl-head>span:first-child{font-weight:600}",
|
|
8970
|
+
".wbt-create-tl-hint{font-size:11px;opacity:.55;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
8971
|
+
".wbt-create-tl .wbt-timeline-picker{display:flex;flex-direction:column;gap:6px;min-width:0}",
|
|
8972
|
+
".wbt-create-tl .wbt-picker-list{max-height:180px;scrollbar-gutter:stable}",
|
|
8973
|
+
".wbt-create-tl .wbt-timeline-pager{margin-top:4px;font-size:11.5px}",
|
|
8967
8974
|
".wbt-field>span{opacity:.62;font-size:11.5px}",
|
|
8968
8975
|
".wbt-modal-foot{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:2px}",
|
|
8969
8976
|
// 预览面板:只让内容区滚动,头部标题与右上角 × 固定不动(滚动壳限定在 .wbt-preview,不影响其它弹窗)。
|
|
@@ -9028,6 +9035,42 @@ var require_styles = __commonJS({
|
|
|
9028
9035
|
}
|
|
9029
9036
|
});
|
|
9030
9037
|
|
|
9038
|
+
// packages/addons/tasks/client/timeline/timeline-styles.cjs
|
|
9039
|
+
var require_timeline_styles = __commonJS({
|
|
9040
|
+
"packages/addons/tasks/client/timeline/timeline-styles.cjs"(exports2, module2) {
|
|
9041
|
+
"use strict";
|
|
9042
|
+
module2.exports = [
|
|
9043
|
+
".wbt-timeline-view{padding:0;color:inherit;box-sizing:border-box;overflow:auto}",
|
|
9044
|
+
".wbt-timeline-toolbar,.wbt-timeline-search,.wbt-timeline-pager,.wbt-timeline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
|
|
9045
|
+
".wbt-timeline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}",
|
|
9046
|
+
".wbt-timeline-toolbar-main{display:flex;align-items:center;gap:8px;flex:1 1 320px;min-width:0;flex-wrap:wrap}",
|
|
9047
|
+
".wbt-timeline-toolbar-main .wbt-timeline-search{flex:1 1 220px;min-width:0}",
|
|
9048
|
+
".wbt-timeline-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}",
|
|
9049
|
+
".wbt-timeline-columns{display:grid;grid-template-columns:minmax(240px,32%) minmax(0,1fr);gap:12px;align-items:start}",
|
|
9050
|
+
".wbt-timeline-left,.wbt-timeline-right{min-width:0;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);padding:12px}",
|
|
9051
|
+
".wbt-timeline-single{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;white-space:nowrap}.wbt-timeline-search input{min-width:0;flex:1}",
|
|
9052
|
+
".wbt-timeline-list{max-height:840px;overflow:auto;overscroll-behavior:contain}.wbt-timeline-left>.wbt-timeline-list,.wbt-timeline-left>.wbt-err{margin-top:2px}.wbt-timeline-view .wbt-timeline-option{position:relative;box-sizing:border-box;min-height:56px;padding:10px 12px;border:0;border-bottom:1px solid var(--wbt-line);border-radius:var(--wb-radius-sm,6px);display:flex;flex-direction:column;gap:4px;cursor:pointer;color:inherit;background:transparent;background-image:none}",
|
|
9053
|
+
".wbt-timeline-option-title{display:flex;gap:8px;align-items:center;min-width:0}.wbt-timeline-option-title strong{font-size:13px;font-weight:560;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.wbt-timeline-option>span{font-size:11.5px;opacity:.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
|
|
9054
|
+
".wbt-timeline-option>.wbt-timeline-excerpt{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",
|
|
9055
|
+
".wbt-timeline-view .wbt-timeline-option.current{box-shadow:inset 3px 0 var(--wbt-accent),inset 0 0 0 1px var(--wbt-line);background:color-mix(in oklab,var(--wbt-accent) 8%,transparent);background-image:none}.wbt-timeline-view .wbt-timeline-option:hover{background:color-mix(in oklab,var(--wbt-accent) 12%,transparent)}",
|
|
9056
|
+
".wbt-timeline-option:focus-visible,.wbt-timeline-view button:focus-visible,.wbt-timeline-modal button:focus-visible{outline:2px solid var(--wbt-accent);outline-offset:2px}.wbt-timeline-option input[type=checkbox],.wbt-timeline-single input{appearance:auto;width:15px;height:15px;flex:none;accent-color:var(--wbt-accent)}",
|
|
9057
|
+
".wbt-timeline-pager{justify-content:space-between;font-size:12px;margin-top:12px}.wbt-timeline-right h3,.wbt-timeline-summary h4{font-size:15px;font-weight:600;margin:0 0 8px;overflow-wrap:anywhere}.wbt-timeline-eyebrow{font-size:11.5px;opacity:.55;margin-bottom:4px;overflow-wrap:anywhere}",
|
|
9058
|
+
".wbt-timeline-summary{min-width:0}.wbt-timeline-desc{max-height:64px;overflow:hidden;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.wbt-timeline-actions{margin:8px 0}.wbt-timeline-actions>.wbt-act-del{margin-left:auto}",
|
|
9059
|
+
".wbt-timeline-right>.wbt-timeline-members{min-height:0;max-height:65vh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}",
|
|
9060
|
+
// Scoped reset defeats ordinary host button surfaces without touching unrelated task controls.
|
|
9061
|
+
":is(.wbt-timeline-view,.wbt-timeline-modal) button:is(.wbt-timeline-member,.wbt-timeline-remove,.wbt-timeline-id){appearance:none;background:transparent;background-image:none;color:inherit;border:0;box-shadow:none;border-radius:var(--wb-radius-sm,6px);font:inherit;cursor:pointer;min-width:0;min-height:0;width:auto;margin:0}",
|
|
9062
|
+
":is(.wbt-timeline-view,.wbt-timeline-modal) .wbt-timeline-id{display:inline-flex;align-items:center;gap:4px;padding:4px;max-width:180px}.wbt-timeline-id code{font-size:11.5px;opacity:.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
9063
|
+
":is(.wbt-timeline-view,.wbt-timeline-modal) .wbt-act-del{color:var(--dsw-alias-state-error-primary,var(--wbt-accent));background:transparent;border-color:var(--wbt-line)}",
|
|
9064
|
+
'.wbt-timeline-members{list-style:none;padding:0;margin:8px 0;min-width:0}.wbt-timeline-member-row{display:grid;grid-template-columns:92px 14px minmax(0,1fr) auto 28px;gap:8px;align-items:center;min-height:40px;position:relative;padding:0;margin:0}.wbt-timeline-date{font-size:11.5px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;opacity:.7}.wbt-timeline-node{align-self:stretch;position:relative}.wbt-timeline-node:before{content:"";position:absolute;width:1px;left:50%;top:0;bottom:0;background:var(--wbt-line)}.wbt-timeline-node:after{content:"";position:absolute;width:6px;height:6px;left:calc(50% - 2.5px);top:calc(50% - 3px);border-radius:50%;background:var(--wbt-accent)}',
|
|
9065
|
+
":is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-member{padding:8px 0;text-align:left;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-member:hover{text-decoration:underline;text-underline-offset:3px}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-remove{display:flex;justify-content:center;align-items:center;width:28px;height:28px;padding:4px;opacity:.35}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-remove:is(:hover,:focus-visible){opacity:.9;background:var(--wbt-surface)}.wbt-timeline-member-row>.wbt-badge{white-space:nowrap;margin:0}.wbt-timeline-remove:disabled{cursor:default}",
|
|
9066
|
+
".wbt-timeline-member-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--wbt-line);padding-top:8px}.wbt-timeline-member-footer>span{font-size:11.5px;opacity:.65}.wbt-timeline-member-footer .wbt-timeline-pager{margin:0}",
|
|
9067
|
+
".wbt-modal.wide.wbt-timeline-modal{display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.wbt-timeline-modal-body{min-height:0;overflow:auto;flex:1;padding:12px}.wbt-timeline-member-section{min-width:0;margin-top:12px}.wbt-timeline-member-scroll{max-height:40vh;overflow:auto;overscroll-behavior:contain}.wbt-timeline-pick{border-top:1px solid var(--wbt-line);padding-top:12px;margin-top:12px}.wbt-timeline-empty{padding:12px 0}.wbt-picker-selected{font-size:12px;margin:6px 0;min-height:16px}.wbt-picker-list{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-sm,6px);padding:4px;background:var(--wbt-surface)}.wbt-picker-note{margin:6px;font-size:12px;opacity:.7}.wbt-picker-opt{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:var(--wb-radius-sm,6px);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.wbt-picker-opt:hover,.wbt-picker-opt:focus-visible{background:color-mix(in oklab,var(--wbt-accent) 12%,transparent)}.wbt-picker-opt:focus-visible{outline:2px solid var(--wbt-accent);outline-offset:-2px}.wbt-picker-opt.selected{background:color-mix(in oklab,var(--wbt-accent) 16%,transparent);font-weight:600}.wbt-picker-opt-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wbt-picker-opt-count{font-size:11px;opacity:.6;white-space:nowrap}.wbt-timeline-confirm{padding:12px;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);margin:8px 0;line-height:1.6;background:var(--wbt-surface)}.wbt-timeline-confirm .wbt-btn{margin:8px 8px 0 0}",
|
|
9068
|
+
".wbt-timeline-desc.expanded{max-height:none}.wbt-timeline-selected{min-width:0;overflow-wrap:anywhere;flex:1}.wbt-modal-foot.wbt-timeline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}.wbt-timeline-modal .wbt-empty{padding:12px;margin:8px 0;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);background:var(--wbt-surface);line-height:1.6}",
|
|
9069
|
+
"@media(max-width:720px){.wbt-timeline-selected{flex:1 1 100%}.wbt-picker-list{max-height:180px}.wbt-timeline-columns{grid-template-columns:1fr}.wbt-timeline-toolbar-main{flex:1 1 100%}.wbt-timeline-toolbar-actions{flex:1 1 100%;justify-content:flex-end;margin-left:0}.wbt-timeline-list{max-height:320px}.wbt-timeline-toolbar{flex-wrap:wrap}.wbt-timeline-member-row{grid-template-columns:76px 8px minmax(0,1fr) auto 28px;gap:4px}.wbt-timeline-left,.wbt-timeline-right{padding:12px}.wbt-timeline-date{font-size:10.5px}.wbt-timeline-member-row>.wbt-badge{font-size:10.5px;padding:2px 4px}.wbt-timeline-actions>.wbt-act-del{margin-left:0}.wbt-timeline-id{max-width:140px}}"
|
|
9070
|
+
].join("\n");
|
|
9071
|
+
}
|
|
9072
|
+
});
|
|
9073
|
+
|
|
9031
9074
|
// packages/addons/tasks/client/ui/highlight.cjs
|
|
9032
9075
|
var require_highlight2 = __commonJS({
|
|
9033
9076
|
"packages/addons/tasks/client/ui/highlight.cjs"(exports2, module2) {
|
|
@@ -10166,6 +10209,19 @@ var require_create_modal = __commonJS({
|
|
|
10166
10209
|
});
|
|
10167
10210
|
}
|
|
10168
10211
|
var title = source === "2" ? t.restartTitle : source === "1" ? tr("\u5411\u5DF2\u6709\u65F6\u95F4\u7EBF\u6DFB\u52A0\u4EFB\u52A1") : t.newTask;
|
|
10212
|
+
var timelineSection = source !== "2" ? h(
|
|
10213
|
+
"div",
|
|
10214
|
+
{ className: "wbt-create-tl full" },
|
|
10215
|
+
h(
|
|
10216
|
+
"div",
|
|
10217
|
+
{ className: "wbt-create-tl-head" },
|
|
10218
|
+
h("span", null, t.timeline),
|
|
10219
|
+
source === "1" ? h("span", { className: "wbt-create-tl-hint" }, tr("\u5411\u5DF2\u6709\u65F6\u95F4\u7EBF\u6DFB\u52A0\u4EFB\u52A1")) : null
|
|
10220
|
+
),
|
|
10221
|
+
h(TimelinePicker, { api: props.api, t, value: form.timelineId, onChange: function(value) {
|
|
10222
|
+
set("timelineId", value);
|
|
10223
|
+
}, disabled: isBusy })
|
|
10224
|
+
) : null;
|
|
10169
10225
|
return h(
|
|
10170
10226
|
"div",
|
|
10171
10227
|
{ className: "wbt-modal-mask", onKeyDownCapture: onModalKey, onMouseDown: function(e) {
|
|
@@ -10178,9 +10234,6 @@ var require_create_modal = __commonJS({
|
|
|
10178
10234
|
source === "2" ? h("div", { className: "wbt-mhint" }, t.restartPriorityHint) : null,
|
|
10179
10235
|
source !== "0" && origin ? h("div", { className: "wbt-mhint" }, "\u6765\u6E90\uFF1A" + (origin.title || origin.id) + (source === "2" ? tr(" \xB7 \u81EA\u52A8\u7EE7\u627F\u539F\u65F6\u95F4\u7EBF") : "")) : null,
|
|
10180
10236
|
source === "2" && !(origin && origin.timelineId) ? h("p", { className: "wbt-err", role: "alert" }, tr("\u8BF7\u5148\u624B\u52A8\u5EFA\u7ACB\u5E76\u5173\u8054\u65F6\u95F4\u7EBF\uFF0C\u518D\u91CD\u542F")) : null,
|
|
10181
|
-
source !== "2" ? h(TimelinePicker, { api: props.api, t, value: form.timelineId, onChange: function(value) {
|
|
10182
|
-
set("timelineId", value);
|
|
10183
|
-
}, disabled: isBusy }) : null,
|
|
10184
10237
|
h(
|
|
10185
10238
|
"div",
|
|
10186
10239
|
{ className: "wbt-form" },
|
|
@@ -10193,6 +10246,7 @@ var require_create_modal = __commonJS({
|
|
|
10193
10246
|
hostHasAddon("wb-addon-tags") ? h("label", { className: "wbt-field full" }, h("span", null, t.tags), h("input", { className: "wbt-input", value: form.tags, placeholder: t.tagPlaceholder, onChange: function(e) {
|
|
10194
10247
|
set("tags", e.target.value);
|
|
10195
10248
|
} })) : null,
|
|
10249
|
+
timelineSection,
|
|
10196
10250
|
h(WorkspaceSelect, { api: props.api, lang: props.lang, value: form.workspaceIds, onChange: function(ids) {
|
|
10197
10251
|
set("workspaceIds", ids);
|
|
10198
10252
|
} }),
|
|
@@ -10283,42 +10337,6 @@ var require_timeline_title = __commonJS({
|
|
|
10283
10337
|
}
|
|
10284
10338
|
});
|
|
10285
10339
|
|
|
10286
|
-
// packages/addons/tasks/client/timeline/timeline-styles.cjs
|
|
10287
|
-
var require_timeline_styles = __commonJS({
|
|
10288
|
-
"packages/addons/tasks/client/timeline/timeline-styles.cjs"(exports2, module2) {
|
|
10289
|
-
"use strict";
|
|
10290
|
-
module2.exports = [
|
|
10291
|
-
".wbt-timeline-view{padding:0;color:inherit;box-sizing:border-box;overflow:auto}",
|
|
10292
|
-
".wbt-timeline-toolbar,.wbt-timeline-search,.wbt-timeline-pager,.wbt-timeline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
|
|
10293
|
-
".wbt-timeline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}",
|
|
10294
|
-
".wbt-timeline-toolbar-main{display:flex;align-items:center;gap:8px;flex:1 1 320px;min-width:0;flex-wrap:wrap}",
|
|
10295
|
-
".wbt-timeline-toolbar-main .wbt-timeline-search{flex:1 1 220px;min-width:0}",
|
|
10296
|
-
".wbt-timeline-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}",
|
|
10297
|
-
".wbt-timeline-columns{display:grid;grid-template-columns:minmax(240px,32%) minmax(0,1fr);gap:12px;align-items:start}",
|
|
10298
|
-
".wbt-timeline-left,.wbt-timeline-right{min-width:0;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);padding:12px}",
|
|
10299
|
-
".wbt-timeline-single{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;white-space:nowrap}.wbt-timeline-search input{min-width:0;flex:1}",
|
|
10300
|
-
".wbt-timeline-list{max-height:840px;overflow:auto;overscroll-behavior:contain}.wbt-timeline-left>.wbt-timeline-list,.wbt-timeline-left>.wbt-err{margin-top:2px}.wbt-timeline-view .wbt-timeline-option{position:relative;box-sizing:border-box;min-height:56px;padding:10px 12px;border:0;border-bottom:1px solid var(--wbt-line);border-radius:var(--wb-radius-sm,6px);display:flex;flex-direction:column;gap:4px;cursor:pointer;color:inherit;background:transparent;background-image:none}",
|
|
10301
|
-
".wbt-timeline-option-title{display:flex;gap:8px;align-items:center;min-width:0}.wbt-timeline-option-title strong{font-size:13px;font-weight:560;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.wbt-timeline-option>span{font-size:11.5px;opacity:.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
|
|
10302
|
-
".wbt-timeline-option>.wbt-timeline-excerpt{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",
|
|
10303
|
-
".wbt-timeline-view .wbt-timeline-option.current{box-shadow:inset 3px 0 var(--wbt-accent),inset 0 0 0 1px var(--wbt-line);background:color-mix(in oklab,var(--wbt-accent) 8%,transparent);background-image:none}.wbt-timeline-view .wbt-timeline-option:hover{background:color-mix(in oklab,var(--wbt-accent) 12%,transparent)}",
|
|
10304
|
-
".wbt-timeline-option:focus-visible,.wbt-timeline-view button:focus-visible,.wbt-timeline-modal button:focus-visible{outline:2px solid var(--wbt-accent);outline-offset:2px}.wbt-timeline-option input[type=checkbox],.wbt-timeline-single input{appearance:auto;width:15px;height:15px;flex:none;accent-color:var(--wbt-accent)}",
|
|
10305
|
-
".wbt-timeline-pager{justify-content:space-between;font-size:12px;margin-top:12px}.wbt-timeline-right h3,.wbt-timeline-summary h4{font-size:15px;font-weight:600;margin:0 0 8px;overflow-wrap:anywhere}.wbt-timeline-eyebrow{font-size:11.5px;opacity:.55;margin-bottom:4px;overflow-wrap:anywhere}",
|
|
10306
|
-
".wbt-timeline-summary{min-width:0}.wbt-timeline-desc{max-height:64px;overflow:hidden;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.wbt-timeline-actions{margin:8px 0}.wbt-timeline-actions>.wbt-act-del{margin-left:auto}",
|
|
10307
|
-
".wbt-timeline-right>.wbt-timeline-members{min-height:0;max-height:65vh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}",
|
|
10308
|
-
// Scoped reset defeats ordinary host button surfaces without touching unrelated task controls.
|
|
10309
|
-
":is(.wbt-timeline-view,.wbt-timeline-modal) button:is(.wbt-timeline-member,.wbt-timeline-remove,.wbt-timeline-id){appearance:none;background:transparent;background-image:none;color:inherit;border:0;box-shadow:none;border-radius:var(--wb-radius-sm,6px);font:inherit;cursor:pointer;min-width:0;min-height:0;width:auto;margin:0}",
|
|
10310
|
-
":is(.wbt-timeline-view,.wbt-timeline-modal) .wbt-timeline-id{display:inline-flex;align-items:center;gap:4px;padding:4px;max-width:180px}.wbt-timeline-id code{font-size:11.5px;opacity:.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
10311
|
-
":is(.wbt-timeline-view,.wbt-timeline-modal) .wbt-act-del{color:var(--dsw-alias-state-error-primary,var(--wbt-accent));background:transparent;border-color:var(--wbt-line)}",
|
|
10312
|
-
'.wbt-timeline-members{list-style:none;padding:0;margin:8px 0;min-width:0}.wbt-timeline-member-row{display:grid;grid-template-columns:92px 14px minmax(0,1fr) auto 28px;gap:8px;align-items:center;min-height:40px;position:relative;padding:0;margin:0}.wbt-timeline-date{font-size:11.5px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;opacity:.7}.wbt-timeline-node{align-self:stretch;position:relative}.wbt-timeline-node:before{content:"";position:absolute;width:1px;left:50%;top:0;bottom:0;background:var(--wbt-line)}.wbt-timeline-node:after{content:"";position:absolute;width:6px;height:6px;left:calc(50% - 2.5px);top:calc(50% - 3px);border-radius:50%;background:var(--wbt-accent)}',
|
|
10313
|
-
":is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-member{padding:8px 0;text-align:left;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-member:hover{text-decoration:underline;text-underline-offset:3px}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-remove{display:flex;justify-content:center;align-items:center;width:28px;height:28px;padding:4px;opacity:.35}:is(.wbt-timeline-view,.wbt-timeline-modal) button.wbt-timeline-remove:is(:hover,:focus-visible){opacity:.9;background:var(--wbt-surface)}.wbt-timeline-member-row>.wbt-badge{white-space:nowrap;margin:0}.wbt-timeline-remove:disabled{cursor:default}",
|
|
10314
|
-
".wbt-timeline-member-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--wbt-line);padding-top:8px}.wbt-timeline-member-footer>span{font-size:11.5px;opacity:.65}.wbt-timeline-member-footer .wbt-timeline-pager{margin:0}",
|
|
10315
|
-
".wbt-modal.wide.wbt-timeline-modal{display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.wbt-timeline-modal-body{min-height:0;overflow:auto;flex:1;padding:12px}.wbt-timeline-member-section{min-width:0;margin-top:12px}.wbt-timeline-member-scroll{max-height:40vh;overflow:auto;overscroll-behavior:contain}.wbt-timeline-pick{border-top:1px solid var(--wbt-line);padding-top:12px;margin-top:12px}.wbt-timeline-empty{padding:12px 0}.wbt-picker-selected{font-size:12px;margin:6px 0;min-height:16px}.wbt-picker-list{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-sm,6px);padding:4px;background:var(--wbt-surface)}.wbt-picker-note{margin:6px;font-size:12px;opacity:.7}.wbt-picker-opt{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:var(--wb-radius-sm,6px);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.wbt-picker-opt:hover,.wbt-picker-opt:focus-visible{background:color-mix(in oklab,var(--wbt-accent) 12%,transparent)}.wbt-picker-opt:focus-visible{outline:2px solid var(--wbt-accent);outline-offset:-2px}.wbt-picker-opt.selected{background:color-mix(in oklab,var(--wbt-accent) 16%,transparent);font-weight:600}.wbt-picker-opt-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wbt-picker-opt-count{font-size:11px;opacity:.6;white-space:nowrap}.wbt-timeline-confirm{padding:12px;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);margin:8px 0;line-height:1.6;background:var(--wbt-surface)}.wbt-timeline-confirm .wbt-btn{margin:8px 8px 0 0}",
|
|
10316
|
-
".wbt-timeline-desc.expanded{max-height:none}.wbt-timeline-selected{min-width:0;overflow-wrap:anywhere;flex:1}.wbt-modal-foot.wbt-timeline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}.wbt-timeline-modal .wbt-empty{padding:12px;margin:8px 0;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);background:var(--wbt-surface);line-height:1.6}",
|
|
10317
|
-
"@media(max-width:720px){.wbt-timeline-selected{flex:1 1 100%}.wbt-picker-list{max-height:180px}.wbt-timeline-columns{grid-template-columns:1fr}.wbt-timeline-toolbar-main{flex:1 1 100%}.wbt-timeline-toolbar-actions{flex:1 1 100%;justify-content:flex-end;margin-left:0}.wbt-timeline-list{max-height:320px}.wbt-timeline-toolbar{flex-wrap:wrap}.wbt-timeline-member-row{grid-template-columns:76px 8px minmax(0,1fr) auto 28px;gap:4px}.wbt-timeline-left,.wbt-timeline-right{padding:12px}.wbt-timeline-date{font-size:10.5px}.wbt-timeline-member-row>.wbt-badge{font-size:10.5px;padding:2px 4px}.wbt-timeline-actions>.wbt-act-del{margin-left:0}.wbt-timeline-id{max-width:140px}}"
|
|
10318
|
-
].join("\n");
|
|
10319
|
-
}
|
|
10320
|
-
});
|
|
10321
|
-
|
|
10322
10340
|
// packages/addons/tasks/client/timeline/timeline-members.cjs
|
|
10323
10341
|
var require_timeline_members = __commonJS({
|
|
10324
10342
|
"packages/addons/tasks/client/timeline/timeline-members.cjs"(exports2, module2) {
|
|
@@ -10341,7 +10359,6 @@ var require_task_timeline_modal = __commonJS({
|
|
|
10341
10359
|
var h = React.createElement, controls = require_timeline_controls()(React);
|
|
10342
10360
|
var MemberRows = require_timeline_member_rows()(React, statusInfo);
|
|
10343
10361
|
var splitTitle = require_timeline_title();
|
|
10344
|
-
var CSS = require_timeline_styles();
|
|
10345
10362
|
return function TaskTimelineModal(p) {
|
|
10346
10363
|
var tr = require_timeline_copy()(p.t), lang = p.t && p.t.timeline === "Timeline" ? "en" : "zh";
|
|
10347
10364
|
var ts = React.useState(p.task), task = ts[0], setTask = ts[1];
|
|
@@ -10513,7 +10530,6 @@ var require_task_timeline_modal = __commonJS({
|
|
|
10513
10530
|
return h(
|
|
10514
10531
|
"div",
|
|
10515
10532
|
{ className: "wbt-modal-mask", onKeyDown },
|
|
10516
|
-
h("style", null, CSS),
|
|
10517
10533
|
h(
|
|
10518
10534
|
"div",
|
|
10519
10535
|
{ ref: dialog, tabIndex: -1, className: "wbt-modal wide wbt-timeline-modal", role: "dialog", "aria-modal": true, "aria-label": tr("\u4EFB\u52A1\u65F6\u95F4\u7EBF") },
|
|
@@ -12530,7 +12546,6 @@ var require_timeline_view = __commonJS({
|
|
|
12530
12546
|
var React = deps.React, h = React.createElement, COPY = deps.COPY;
|
|
12531
12547
|
var controls = require_timeline_controls()(React), AddMembers = require_timeline_add_members()(React);
|
|
12532
12548
|
var Merge = require_timeline_merge()(React);
|
|
12533
|
-
var CSS = require_timeline_styles();
|
|
12534
12549
|
var MemberRows = require_timeline_member_rows()(React, deps.statusInfo);
|
|
12535
12550
|
var TaskPreview = require_task_preview()(React, deps.TaskItem);
|
|
12536
12551
|
var receipts = require_ownership();
|
|
@@ -12756,7 +12771,6 @@ var require_timeline_view = __commonJS({
|
|
|
12756
12771
|
return h(
|
|
12757
12772
|
"div",
|
|
12758
12773
|
{ className: "wbt-root wbt-timeline-view" },
|
|
12759
|
-
h("style", null, CSS),
|
|
12760
12774
|
h(
|
|
12761
12775
|
"div",
|
|
12762
12776
|
{ className: "wbt-timeline-toolbar" },
|
|
@@ -13132,7 +13146,7 @@ var require_timeline_view = __commonJS({
|
|
|
13132
13146
|
title: over ? "\u5DF2\u8D85\u8FC7\u8BA1\u5212\u5B8C\u6210\u65F6\u95F4" : "\u8DDD\u8BA1\u5212\u5B8C\u6210"
|
|
13133
13147
|
}, h(Icon2, { name: "clock", size: 11 }), h("span", { className: "wbt-cd-num" }, text));
|
|
13134
13148
|
}
|
|
13135
|
-
var CSS = require_styles();
|
|
13149
|
+
var CSS = require_styles() + "\n" + require_timeline_styles();
|
|
13136
13150
|
function injectCss() {
|
|
13137
13151
|
if (typeof document === "undefined") return;
|
|
13138
13152
|
var old = document.getElementById("wb-addon-tasks-v2-css");
|
|
@@ -13530,7 +13544,7 @@ var require_timeline_view = __commonJS({
|
|
|
13530
13544
|
var TimelineView = require_timeline_view()({ React, COPY, injectCss, statusInfo, configView, CFG_FALLBACK, TaskItem, EditModal, DoneModal, TimelineModal, CreateModal });
|
|
13531
13545
|
host.registerAddon({
|
|
13532
13546
|
id: "wb-addon-tasks",
|
|
13533
|
-
version: "5.2.
|
|
13547
|
+
version: "5.2.33",
|
|
13534
13548
|
icon: ICONS["list-checks"],
|
|
13535
13549
|
views: [
|
|
13536
13550
|
{ id: "stats", icon: tabIcon("chart"), title: { zh: "\u7EDF\u8BA1", en: "Stats" }, component: statsView.TasksStatsView, keepAlive: true },
|
package/lib/index.js
CHANGED
|
@@ -129,7 +129,8 @@ export function apply(ctx) {
|
|
|
129
129
|
id: "wb-addon-tasks",
|
|
130
130
|
title: "任务",
|
|
131
131
|
description: "任务树 + 统计/记录/时间线/配置/数据五个视图:紧急/已关闭/已开启/已完成/总览,可按标签筛选(需安装标签插件),附统计报表与只读数据浏览",
|
|
132
|
-
version: "5.2.
|
|
132
|
+
version: "5.2.33",
|
|
133
|
+
category: "work",
|
|
133
134
|
tables: ["task", "task_node", "task_timeline", "task_timeline_link", "task_workspace", "task_workspace_link"],
|
|
134
135
|
sync: taskSync,
|
|
135
136
|
views: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workbench-tasks",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.33",
|
|
4
4
|
"description": "个人工作台任务插件:任务树、优先级、截止日、时间线与重启",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"id": "wb-addon-tasks",
|
|
18
18
|
"title": "任务",
|
|
19
19
|
"description": "任务树 + 统计/记录/时间线/工作区/配置/数据/命令/Action 八个视图:紧急/已关闭/已开启/已完成/总览,可按标签筛选,附统计报表与表数据浏览",
|
|
20
|
-
"version": "5.2.
|
|
20
|
+
"version": "5.2.33",
|
|
21
21
|
"minShell": "0.8.0",
|
|
22
22
|
"tables": [
|
|
23
23
|
"task",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"./package.json": "./package.json"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"dsh-workbench-host": "^0.8.
|
|
104
|
+
"dsh-workbench-host": "^0.8.2"
|
|
105
105
|
},
|
|
106
106
|
"dsh": {
|
|
107
107
|
"bundle": {
|