terrier-engine 4.4.32 → 4.4.34
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/package.json +1 -1
- package/terrier/gen/hub-icons.ts +25 -1
- package/terrier/images/icons/internal.svg +1 -0
- package/terrier/images/icons/metrics.svg +1 -0
- package/terrier/images/icons/week.svg +1 -0
- package/terrier/images/optimized/icon-internal.svg +1 -0
- package/terrier/images/optimized/icon-metrics.svg +1 -0
- package/terrier/images/optimized/icon-week.svg +1 -0
- package/terrier/images/raw/icon-internal.svg +9 -0
- package/terrier/images/raw/icon-metrics.svg +11 -0
- package/terrier/images/raw/icon-week.svg +9 -0
- package/terrier/parts/panel-part.ts +5 -3
package/package.json
CHANGED
package/terrier/gen/hub-icons.ts
CHANGED
|
@@ -153,6 +153,10 @@ import InfoRaw from '../images/icons/info.svg?raw'
|
|
|
153
153
|
// @ts-ignore
|
|
154
154
|
import InfoSrc from '../images/icons/info.svg'
|
|
155
155
|
// @ts-ignore
|
|
156
|
+
import InternalRaw from '../images/icons/internal.svg?raw'
|
|
157
|
+
// @ts-ignore
|
|
158
|
+
import InternalSrc from '../images/icons/internal.svg'
|
|
159
|
+
// @ts-ignore
|
|
156
160
|
import IssueRaw from '../images/icons/issue.svg?raw'
|
|
157
161
|
// @ts-ignore
|
|
158
162
|
import IssueSrc from '../images/icons/issue.svg'
|
|
@@ -197,6 +201,10 @@ import LevelParkingRaw from '../images/icons/level_parking.svg?raw'
|
|
|
197
201
|
// @ts-ignore
|
|
198
202
|
import LevelParkingSrc from '../images/icons/level_parking.svg'
|
|
199
203
|
// @ts-ignore
|
|
204
|
+
import MetricsRaw from '../images/icons/metrics.svg?raw'
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
import MetricsSrc from '../images/icons/metrics.svg'
|
|
207
|
+
// @ts-ignore
|
|
200
208
|
import MinusRaw from '../images/icons/minus.svg?raw'
|
|
201
209
|
// @ts-ignore
|
|
202
210
|
import MinusSrc from '../images/icons/minus.svg'
|
|
@@ -340,6 +348,10 @@ import UserSrc from '../images/icons/user.svg'
|
|
|
340
348
|
import UsersRaw from '../images/icons/users.svg?raw'
|
|
341
349
|
// @ts-ignore
|
|
342
350
|
import UsersSrc from '../images/icons/users.svg'
|
|
351
|
+
// @ts-ignore
|
|
352
|
+
import WeekRaw from '../images/icons/week.svg?raw'
|
|
353
|
+
// @ts-ignore
|
|
354
|
+
import WeekSrc from '../images/icons/week.svg'
|
|
343
355
|
|
|
344
356
|
export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
|
|
345
357
|
"hub-active": {
|
|
@@ -490,6 +502,10 @@ export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
|
|
|
490
502
|
raw: InfoRaw,
|
|
491
503
|
src: InfoSrc,
|
|
492
504
|
},
|
|
505
|
+
"hub-internal": {
|
|
506
|
+
raw: InternalRaw,
|
|
507
|
+
src: InternalSrc,
|
|
508
|
+
},
|
|
493
509
|
"hub-issue": {
|
|
494
510
|
raw: IssueRaw,
|
|
495
511
|
src: IssueSrc,
|
|
@@ -534,6 +550,10 @@ export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
|
|
|
534
550
|
raw: LevelParkingRaw,
|
|
535
551
|
src: LevelParkingSrc,
|
|
536
552
|
},
|
|
553
|
+
"hub-metrics": {
|
|
554
|
+
raw: MetricsRaw,
|
|
555
|
+
src: MetricsSrc,
|
|
556
|
+
},
|
|
537
557
|
"hub-minus": {
|
|
538
558
|
raw: MinusRaw,
|
|
539
559
|
src: MinusSrc,
|
|
@@ -678,10 +698,14 @@ export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
|
|
|
678
698
|
raw: UsersRaw,
|
|
679
699
|
src: UsersSrc,
|
|
680
700
|
},
|
|
701
|
+
"hub-week": {
|
|
702
|
+
raw: WeekRaw,
|
|
703
|
+
src: WeekSrc,
|
|
704
|
+
},
|
|
681
705
|
}
|
|
682
706
|
|
|
683
707
|
const Names = [
|
|
684
|
-
'hub-active', 'hub-admin', 'hub-archive', 'hub-arrow_down', 'hub-arrow_left', 'hub-arrow_right', 'hub-arrow_up', 'hub-assign', 'hub-attachment', 'hub-back', 'hub-badge', 'hub-board', 'hub-branch', 'hub-bug', 'hub-calculator', 'hub-checkmark', 'hub-close', 'hub-clypboard', 'hub-comment', 'hub-complete', 'hub-dashboard', 'hub-data_pull', 'hub-data_update', 'hub-database', 'hub-day', 'hub-delete', 'hub-documentation', 'hub-edit', 'hub-feature', 'hub-flex', 'hub-forward', 'hub-github', 'hub-history', 'hub-home', 'hub-image', 'hub-inbox', 'hub-info', 'hub-issue', 'hub-lane', 'hub-lane_asap', 'hub-lane_days', 'hub-lane_hours', 'hub-lane_weeks', 'hub-lanes_board', 'hub-level_complete', 'hub-level_highway', 'hub-level_on_ramp', 'hub-level_parking', 'hub-minus', 'hub-night', 'hub-origin', 'hub-pending', 'hub-plus', 'hub-post', 'hub-posts', 'hub-pr_closed', 'hub-pr_merged', 'hub-pr_open', 'hub-prioritized', 'hub-project', 'hub-question', 'hub-reaction', 'hub-read_mail', 'hub-recent', 'hub-refresh', 'hub-request', 'hub-settings', 'hub-status', 'hub-step_deploy', 'hub-step_develop', 'hub-step_investigate', 'hub-step_review', 'hub-step_test', 'hub-steps', 'hub-steps_board', 'hub-subscribe', 'hub-support', 'hub-terrier', 'hub-thumbs_up', 'hub-type', 'hub-unprioritized', 'hub-upload', 'hub-user', 'hub-users'
|
|
708
|
+
'hub-active', 'hub-admin', 'hub-archive', 'hub-arrow_down', 'hub-arrow_left', 'hub-arrow_right', 'hub-arrow_up', 'hub-assign', 'hub-attachment', 'hub-back', 'hub-badge', 'hub-board', 'hub-branch', 'hub-bug', 'hub-calculator', 'hub-checkmark', 'hub-close', 'hub-clypboard', 'hub-comment', 'hub-complete', 'hub-dashboard', 'hub-data_pull', 'hub-data_update', 'hub-database', 'hub-day', 'hub-delete', 'hub-documentation', 'hub-edit', 'hub-feature', 'hub-flex', 'hub-forward', 'hub-github', 'hub-history', 'hub-home', 'hub-image', 'hub-inbox', 'hub-info', 'hub-internal', 'hub-issue', 'hub-lane', 'hub-lane_asap', 'hub-lane_days', 'hub-lane_hours', 'hub-lane_weeks', 'hub-lanes_board', 'hub-level_complete', 'hub-level_highway', 'hub-level_on_ramp', 'hub-level_parking', 'hub-metrics', 'hub-minus', 'hub-night', 'hub-origin', 'hub-pending', 'hub-plus', 'hub-post', 'hub-posts', 'hub-pr_closed', 'hub-pr_merged', 'hub-pr_open', 'hub-prioritized', 'hub-project', 'hub-question', 'hub-reaction', 'hub-read_mail', 'hub-recent', 'hub-refresh', 'hub-request', 'hub-settings', 'hub-status', 'hub-step_deploy', 'hub-step_develop', 'hub-step_investigate', 'hub-step_review', 'hub-step_test', 'hub-steps', 'hub-steps_board', 'hub-subscribe', 'hub-support', 'hub-terrier', 'hub-thumbs_up', 'hub-type', 'hub-unprioritized', 'hub-upload', 'hub-user', 'hub-users', 'hub-week'
|
|
685
709
|
] as const
|
|
686
710
|
|
|
687
711
|
export type HubIconName = typeof Names[number]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="currentColor" fill-rule="evenodd"><path d="m27.642 7.121-9.485 9.486 1.121 1.12a1 1 0 0 1-.707 1.708H13.5a1 1 0 0 1-1-1v-5.071a1 1 0 0 1 1.707-.707l1.121 1.121 9.486-9.485a1 1 0 0 1 1.414 0l1.414 1.414a1 1 0 0 1 0 1.414Z"/><circle cx="16" cy="16" r="11" fill-opacity="0.33" fill-rule="nonzero"/><path fill-rule="nonzero" d="M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4Zm0 2C10.477 6 6 10.477 6 16s4.477 10 10 10 10-4.477 10-10S21.523 6 16 6Z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><circle cx="7" cy="23" r="3" fill="currentColor"/><circle cx="13" cy="12" r="3" fill="currentColor"/><circle cx="19" cy="20" r="3" fill="currentColor"/><circle cx="25" cy="9" r="3" fill="currentColor"/><path stroke="currentColor" stroke-opacity=".25" stroke-width="2" d="m7 23 6-11 6 8 6-11"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="currentColor" fill-rule="evenodd"><path fill-opacity="0.33" fill-rule="nonzero" d="M5 7h22v18H5z"/><path d="M22 4a1 1 0 0 1 1 1v1h3a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3V5a1 1 0 1 1 2 0v1h10V5a1 1 0 0 1 1-1ZM9 8H6v16h20V8h-3v1a1 1 0 0 1-2 0V8H11v1a1 1 0 0 1-2 0V8Z"/><rect width="18" height="4" x="7" y="15" rx="1"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="#000" fill-rule="evenodd"><path d="m27.642 7.121-9.485 9.486 1.121 1.12a1 1 0 0 1-.707 1.708H13.5a1 1 0 0 1-1-1v-5.071a1 1 0 0 1 1.707-.707l1.121 1.121 9.486-9.485a1 1 0 0 1 1.414 0l1.414 1.414a1 1 0 0 1 0 1.414Z"/><circle cx="16" cy="16" r="11" fill-opacity=".25" fill-rule="nonzero"/><path fill-rule="nonzero" d="M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4Zm0 2C10.477 6 6 10.477 6 16s4.477 10 10 10 10-4.477 10-10S21.523 6 16 6Z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><circle cx="7" cy="23" r="3" fill="#000"/><circle cx="13" cy="12" r="3" fill="#000"/><circle cx="19" cy="20" r="3" fill="#000"/><circle cx="25" cy="9" r="3" fill="#000"/><path stroke="#000" stroke-opacity=".25" stroke-width="2" d="m7 23 6-11 6 8 6-11"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="#000" fill-rule="evenodd"><path fill-opacity=".25" fill-rule="nonzero" d="M5 7h22v18H5z"/><path d="M22 4a1 1 0 0 1 1 1v1h3a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3V5a1 1 0 1 1 2 0v1h10V5a1 1 0 0 1 1-1ZM9 8H6v16h20V8h-3v1a1 1 0 0 1-2 0V8H11v1a1 1 0 0 1-2 0V8Z"/><rect width="18" height="4" x="7" y="15" rx="1"/></g></svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>icon-internal</title>
|
|
4
|
+
<g id="icon-internal" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<path d="M27.6421356,7.12132034 L18.1568542,16.6066017 L19.2781746,17.7279221 C19.6686989,18.1184464 19.6686989,18.7516113 19.2781746,19.1421356 C19.0906382,19.329672 18.8362843,19.4350288 18.5710678,19.4350288 L13.5,19.4350288 C12.9477153,19.4350288 12.5,18.9873136 12.5,18.4350288 L12.5,13.363961 C12.5,12.8116763 12.9477153,12.363961 13.5,12.363961 C13.7652165,12.363961 14.0195704,12.4693179 14.2071068,12.6568542 L15.3284271,13.7781746 L24.8137085,4.29289322 C25.2042328,3.90236893 25.8373978,3.90236893 26.2279221,4.29289322 L27.6421356,5.70710678 C28.0326599,6.09763107 28.0326599,6.73079605 27.6421356,7.12132034 Z" id="Path-5" fill="#000000"></path>
|
|
6
|
+
<circle id="Oval" fill-opacity="0.25" fill="#000000" fill-rule="nonzero" cx="16" cy="16" r="11"></circle>
|
|
7
|
+
<path d="M16,4 C22.627417,4 28,9.372583 28,16 C28,22.627417 22.627417,28 16,28 C9.372583,28 4,22.627417 4,16 C4,9.372583 9.372583,4 16,4 Z M16,6 C10.4771525,6 6,10.4771525 6,16 C6,21.5228475 10.4771525,26 16,26 C21.5228475,26 26,21.5228475 26,16 C26,10.4771525 21.5228475,6 16,6 Z" id="Oval" fill="#000000" fill-rule="nonzero"></path>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>icon-metrics</title>
|
|
4
|
+
<g id="icon-metrics" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<circle id="Oval" fill="#000000" cx="7" cy="23" r="3"></circle>
|
|
6
|
+
<circle id="Oval-Copy" fill="#000000" cx="13" cy="12" r="3"></circle>
|
|
7
|
+
<circle id="Oval-Copy-2" fill="#000000" cx="19" cy="20" r="3"></circle>
|
|
8
|
+
<circle id="Oval-Copy-3" fill="#000000" cx="25" cy="9" r="3"></circle>
|
|
9
|
+
<polyline id="Path-99" stroke-opacity="0.25" stroke="#000000" stroke-width="2" points="7 23 13 12 19 20 25 9"></polyline>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>icon-week</title>
|
|
4
|
+
<g id="icon-week" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<rect id="Rectangle" fill-opacity="0.25" fill="#000000" fill-rule="nonzero" x="5" y="7" width="22" height="18"></rect>
|
|
6
|
+
<path d="M22,4 C22.5522847,4 23,4.44771525 23,5 L23,6 L26,6 C27.1045695,6 28,6.8954305 28,8 L28,24 C28,25.1045695 27.1045695,26 26,26 L6,26 C4.8954305,26 4,25.1045695 4,24 L4,8 C4,6.8954305 4.8954305,6 6,6 L9,6 L9,5 C9,4.44771525 9.44771525,4 10,4 C10.5522847,4 11,4.44771525 11,5 L11,6 L21,6 L21,5 C21,4.44771525 21.4477153,4 22,4 Z M9,8 L6,8 L6,24 L26,24 L26,8 L23,8 L23,9 C23,9.55228475 22.5522847,10 22,10 C21.4477153,10 21,9.55228475 21,9 L21,8 L11,8 L11,9 C11,9.55228475 10.5522847,10 10,10 C9.44771525,10 9,9.55228475 9,9 L9,8 Z" id="Combined-Shape" fill="#000000"></path>
|
|
7
|
+
<rect id="Rectangle" fill="#000000" x="7" y="15" width="18" height="4" rx="1"></rect>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -5,7 +5,7 @@ import {untypedKey} from "tuff-core/messages";
|
|
|
5
5
|
|
|
6
6
|
export type CollapsibleConfig = {
|
|
7
7
|
collapsed?: Boolean
|
|
8
|
-
chevronSide
|
|
8
|
+
chevronSide?: string
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* A part that renders content inside a panel.
|
|
@@ -15,8 +15,10 @@ export default abstract class PanelPart<TState> extends ContentPart<TState & { c
|
|
|
15
15
|
toggleCollapseKey = untypedKey()
|
|
16
16
|
|
|
17
17
|
async init() {
|
|
18
|
-
if (this.state.collapsible
|
|
19
|
-
this.state.collapsible.chevronSide
|
|
18
|
+
if (this.state.collapsible) {
|
|
19
|
+
if (!this.state.collapsible.chevronSide) {
|
|
20
|
+
this.state.collapsible.chevronSide = 'left'
|
|
21
|
+
}
|
|
20
22
|
this.onClick(this.toggleCollapseKey, _ => {
|
|
21
23
|
this.toggleCollapse()
|
|
22
24
|
})
|