@crewlethq/ui 0.186.0 → 0.187.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/README.md +12 -0
- package/dist/ActivityLine/index.js +3 -3
- package/dist/AddPill/AddPill.d.ts +26 -9
- package/dist/AddPill/index.d.ts +2 -2
- package/dist/AddPill/index.js +1 -1
- package/dist/AgentHandoffPanel/index.js +1 -1
- package/dist/AppShell/index.js +2 -2
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/Avatar/AvatarStack.d.ts +9 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
- package/dist/CommentThread/index.js +3 -3
- package/dist/DataGrid/index.js +2 -2
- package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
- package/dist/DataView/index.js +2 -2
- package/dist/DatasetSource/index.js +2 -2
- package/dist/DurationField/index.js +2 -2
- package/dist/EditingStatus/index.js +2 -2
- package/dist/EntityChip/index.js +1 -1
- package/dist/ImageUpload/index.js +1 -1
- package/dist/InlineEditor/index.js +3 -3
- package/dist/OrgLabel/OrgLabel.d.ts +6 -0
- package/dist/OrgLabel/index.js +2 -2
- package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
- package/dist/OrgNode/index.js +3 -3
- package/dist/OrgTable/OrgTable.d.ts +6 -3
- package/dist/OrgTable/index.js +7 -7
- package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
- package/dist/PeopleRail/index.js +1 -1
- package/dist/PresenceStack/index.js +1 -1
- package/dist/Principal/index.js +1 -1
- package/dist/PrincipalPicker/index.js +1 -1
- package/dist/ProposalCard/index.js +4 -4
- package/dist/RailList/index.js +2 -2
- package/dist/RelativeTime/clock.d.ts +6 -0
- package/dist/RelativeTime/index.js +1 -1
- package/dist/RichEditor/index.js +1 -1
- package/dist/Select/Select.d.ts +10 -0
- package/dist/Select/index.js +1 -1
- package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
- package/dist/SettingsTable/index.js +2 -2
- package/dist/ShareDialog/index.js +3 -3
- package/dist/SheetColumnEditor/index.js +2 -2
- package/dist/SheetGrid/index.js +1 -1
- package/dist/TableCells/index.js +3 -3
- package/dist/ThreadSummary/index.js +2 -2
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/TreeGrid/index.js +3 -3
- package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
- package/dist/ValueField/index.js +2 -2
- package/dist/VersionTimeline/index.js +3 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/WorkingLine/index.js +2 -2
- package/dist/{chunk-4NOTOHF7.js → chunk-2TN6ALNE.js} +1 -1
- package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
- package/dist/{chunk-LMP2Y7PZ.js → chunk-5UUG3QCO.js} +1 -1
- package/dist/{chunk-GBKBME7Q.js → chunk-5ZL3PXEL.js} +6 -1
- package/dist/{chunk-L4M3EOCH.js → chunk-6DQPSI54.js} +1 -1
- package/dist/{chunk-WDVENT6N.js → chunk-72AZMU55.js} +33 -12
- package/dist/{chunk-5LLZEA7F.js → chunk-7BDGWCB4.js} +1 -1
- package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
- package/dist/{chunk-ZDHQ5ZDT.js → chunk-A4CTKERL.js} +1 -1
- package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
- package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
- package/dist/{chunk-D3G7T4NA.js → chunk-CPOTDACH.js} +3 -3
- package/dist/{chunk-UBXJBVYV.js → chunk-DPDOQJWH.js} +2 -2
- package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
- package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
- package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
- package/dist/{chunk-6PDRZJJA.js → chunk-KCV47P7J.js} +1 -1
- package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
- package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
- package/dist/{chunk-NKSPHNL2.js → chunk-PV3TWLEK.js} +1 -1
- package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
- package/dist/{chunk-7U6JFHJY.js → chunk-RYTE4I55.js} +12 -5
- package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
- package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
- package/dist/{chunk-KRF3GQ63.js → chunk-TDQB6AXC.js} +1 -1
- package/dist/{chunk-FEMWZYZV.js → chunk-UIRMNARM.js} +1 -1
- package/dist/{chunk-JIBK6CQZ.js → chunk-V2ZUNC7X.js} +2 -2
- package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
- package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
- package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
- package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
- package/dist/generated/index.js +58 -58
- package/dist/index.js +58 -58
- package/dist/styles.css +107 -22
- package/package.json +3 -3
- package/dist/{Editor-NFC7HEWU.js → Editor-WFP2MM6M.js} +1 -1
- package/dist/{chunk-5EYWFZ4G.js → chunk-SVA5VPCB.js} +1 -1
package/dist/Select/Select.d.ts
CHANGED
|
@@ -146,6 +146,16 @@ export interface SelectProps extends NativePassthrough {
|
|
|
146
146
|
* A quiet filter that is on takes the accent's soft fill and ink.
|
|
147
147
|
*/
|
|
148
148
|
appearance?: SelectAppearance;
|
|
149
|
+
/**
|
|
150
|
+
* `flush` pulls the trigger back by its own padding and border, so its text
|
|
151
|
+
* starts on the column's x, as a quiet picker in a table cell wants.
|
|
152
|
+
*/
|
|
153
|
+
inset?: 'default' | 'flush' | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* `fit` sets every option's `hint` in one column at the row's end, as wide as
|
|
156
|
+
* the widest, so a status dot in each starts at one x. Listbox mode only.
|
|
157
|
+
*/
|
|
158
|
+
hintColumn?: 'inline' | 'fit' | undefined;
|
|
149
159
|
ariaLabel?: string;
|
|
150
160
|
searchable?: boolean;
|
|
151
161
|
searchPlaceholder?: string;
|
package/dist/Select/index.js
CHANGED
|
@@ -164,6 +164,16 @@
|
|
|
164
164
|
cursor: not-allowed;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
/* FLUSH: pulled back by its own leading padding and border, so its text starts on the column's x. */
|
|
168
|
+
.crewlet-select--flush {
|
|
169
|
+
--crewlet-select-flush: calc(var(--spacing-3) + 1px);
|
|
170
|
+
margin-inline-start: calc(-1 * var(--crewlet-select-flush));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.crewlet-select--flush.crewlet-select--sm {
|
|
174
|
+
--crewlet-select-flush: calc(var(--spacing-2) + 1px);
|
|
175
|
+
}
|
|
176
|
+
|
|
167
177
|
/* ── The trigger, native and built ───────────────────────────────────── */
|
|
168
178
|
|
|
169
179
|
/*
|
|
@@ -469,7 +479,9 @@ svg.crewlet-select__chevron {
|
|
|
469
479
|
/* A hint ends the row's FIRST line, on the label's baseline, rather than
|
|
470
480
|
sitting on the row's top edge at its own smaller size. */
|
|
471
481
|
.crewlet-select__option:has(> .crewlet-listbox__hint) .crewlet-select__option-body,
|
|
472
|
-
.crewlet-select__option > .crewlet-listbox__hint
|
|
482
|
+
.crewlet-select__option > .crewlet-listbox__hint,
|
|
483
|
+
.crewlet-select__option-main:has(> .crewlet-listbox__hint) > .crewlet-select__option-body,
|
|
484
|
+
.crewlet-select__option-main > .crewlet-listbox__hint {
|
|
473
485
|
align-self: baseline;
|
|
474
486
|
}
|
|
475
487
|
|
|
@@ -573,3 +585,40 @@ svg.crewlet-select__chevron {
|
|
|
573
585
|
transition: none;
|
|
574
586
|
}
|
|
575
587
|
}
|
|
588
|
+
|
|
589
|
+
/* A FITTED HINT COLUMN: every row on two shared tracks, so each hint starts at one x.
|
|
590
|
+
One weight in every row, so the chosen row's hint is no wider. */
|
|
591
|
+
.crewlet-select__list.crewlet-select__list--fit {
|
|
592
|
+
display: grid;
|
|
593
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
594
|
+
align-content: start;
|
|
595
|
+
column-gap: var(--spacing-3);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.crewlet-select__list--fit > .crewlet-select__option,
|
|
599
|
+
.crewlet-select__list--fit > .crewlet-select__group,
|
|
600
|
+
.crewlet-select__list--fit > .crewlet-select__group > .crewlet-select__option {
|
|
601
|
+
display: grid;
|
|
602
|
+
grid-template-columns: subgrid;
|
|
603
|
+
grid-column: 1 / -1;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.crewlet-select__list--fit > .crewlet-select__group > .crewlet-listbox__heading {
|
|
607
|
+
grid-column: 1 / -1;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.crewlet-select__option-main {
|
|
611
|
+
display: flex;
|
|
612
|
+
align-items: flex-start;
|
|
613
|
+
gap: var(--spacing-2);
|
|
614
|
+
min-width: 0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.crewlet-select__menu .crewlet-select__option-hint {
|
|
618
|
+
display: inline-flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
justify-self: start;
|
|
621
|
+
margin-left: 0;
|
|
622
|
+
min-height: calc(var(--font-line-height-normal) * 1em);
|
|
623
|
+
font-weight: var(--font-weight-regular);
|
|
624
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-LG72TVII.js';
|
|
2
|
+
import '../chunk-WU73BKXL.js';
|
|
3
3
|
import '../chunk-5WJKJGL4.js';
|
|
4
4
|
import '../chunk-STJ7QBC3.js';
|
|
5
5
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-3PBQNCPC.js';
|
|
2
|
+
import '../chunk-QZNENGHA.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
4
|
import '../chunk-265IX4YA.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-X2CFDU5S.js';
|
|
6
6
|
import '../chunk-EX5XAEST.js';
|
|
7
7
|
import '../chunk-AJFA2XDQ.js';
|
|
8
8
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-
|
|
1
|
+
export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-EO4CV3P7.js';
|
|
2
2
|
import '../chunk-FFMCMSJB.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-QZNENGHA.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
5
5
|
import '../chunk-LFSIKGRQ.js';
|
|
6
6
|
import '../chunk-Z7JYG5TF.js';
|
package/dist/SheetGrid/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import '../chunk-LFSIKGRQ.js';
|
|
|
8
8
|
import '../chunk-Z7JYG5TF.js';
|
|
9
9
|
import '../chunk-AYKXMIOR.js';
|
|
10
10
|
import '../chunk-4IB7HVDN.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-X2CFDU5S.js';
|
|
12
12
|
import '../chunk-EX5XAEST.js';
|
|
13
13
|
import '../chunk-AJFA2XDQ.js';
|
|
14
14
|
import '../chunk-YMFFGPFE.js';
|
package/dist/TableCells/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-
|
|
1
|
+
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-7BDGWCB4.js';
|
|
2
2
|
import '../chunk-MGJAOLZC.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-5ZL3PXEL.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-X2CFDU5S.js';
|
|
6
6
|
import '../chunk-EX5XAEST.js';
|
|
7
7
|
import '../chunk-AJFA2XDQ.js';
|
|
8
8
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-FTWZ2AQR.js';
|
|
2
|
+
import '../chunk-X2CFDU5S.js';
|
|
3
3
|
import '../chunk-EX5XAEST.js';
|
|
4
4
|
import '../chunk-AJFA2XDQ.js';
|
|
5
5
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-CHBNLTVC.js';
|
|
2
|
+
import '../chunk-QZNENGHA.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
4
|
import '../chunk-EE3DJMSQ.js';
|
|
5
5
|
import '../chunk-AJFA2XDQ.js';
|
package/dist/TreeGrid/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { TreeGrid } from '../chunk-
|
|
1
|
+
export { TreeGrid } from '../chunk-72AZMU55.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-DPDOQJWH.js';
|
|
4
|
+
import '../chunk-WU73BKXL.js';
|
|
5
5
|
import '../chunk-CUEPPDBC.js';
|
|
6
6
|
import '../chunk-WFAJYBLX.js';
|
|
7
7
|
import '../chunk-JMBPMSNI.js';
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
border-radius: var(--radius-md);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
|
|
60
|
+
.crewlet-tree-grid {
|
|
61
|
+
--crewlet-avatar-stack-ground: var(--color-surface-subtle);
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
.crewlet-tree-grid__grid {
|
|
60
65
|
display: grid;
|
|
61
66
|
grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
|
|
@@ -134,6 +139,7 @@
|
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
.crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
|
|
142
|
+
--crewlet-avatar-stack-tint: var(--color-surface-hover);
|
|
137
143
|
background: var(--color-surface-hover);
|
|
138
144
|
}
|
|
139
145
|
|
|
@@ -295,6 +301,13 @@
|
|
|
295
301
|
outline-offset: var(--size-focus-ring-inset-offset);
|
|
296
302
|
}
|
|
297
303
|
|
|
304
|
+
/* AFTER A POINTER PRESS, NO RING: the keyboard's ring returns with its next key.
|
|
305
|
+
Transparent rather than none, so forced-colors mode still draws one. */
|
|
306
|
+
.crewlet-tree-grid[data-pointer] .crewlet-tree-grid__row:focus-visible,
|
|
307
|
+
.crewlet-tree-grid[data-pointer] .crewlet-tree-grid__cell:focus-visible {
|
|
308
|
+
outline: 2px solid transparent;
|
|
309
|
+
}
|
|
310
|
+
|
|
298
311
|
/*
|
|
299
312
|
* A HEADLESS GRID keeps its header row for a screen reader and draws no band:
|
|
300
313
|
* the row is taken out of the layout the way VisuallyHidden takes text out.
|
|
@@ -399,8 +412,12 @@
|
|
|
399
412
|
justify-content: flex-start;
|
|
400
413
|
}
|
|
401
414
|
|
|
402
|
-
/* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES
|
|
403
|
-
|
|
415
|
+
/* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES in a compact card (below); a
|
|
416
|
+
labelled card starts it at the grid's edge, so its labels are one column. */
|
|
417
|
+
.crewlet-tree-grid[data-stacked]:not([data-phone-rows='compact']) .crewlet-tree-grid__cell {
|
|
418
|
+
--crewlet-tree-grid-value-indent: var(--crewlet-tree-grid-edge);
|
|
419
|
+
}
|
|
420
|
+
|
|
404
421
|
.crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
|
|
405
422
|
padding-block: 1px;
|
|
406
423
|
padding-inline: var(
|
package/dist/ValueField/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-A42UVBJQ.js';
|
|
2
|
+
import '../chunk-QZNENGHA.js';
|
|
3
3
|
import '../chunk-YXRC2NSO.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
5
5
|
import '../chunk-2YTOOH3A.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { VersionTimeline } from '../chunk-
|
|
1
|
+
export { VersionTimeline } from '../chunk-KCV47P7J.js';
|
|
2
2
|
import '../chunk-265IX4YA.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-5ZL3PXEL.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-X2CFDU5S.js';
|
|
6
6
|
import '../chunk-EX5XAEST.js';
|
|
7
7
|
import '../chunk-AJFA2XDQ.js';
|
|
8
8
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { WidgetFrame } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { WidgetFrame } from '../chunk-PV3TWLEK.js';
|
|
2
|
+
import '../chunk-5ZL3PXEL.js';
|
|
3
3
|
import '../chunk-WGLOH33S.js';
|
|
4
4
|
import '../chunk-WFAJYBLX.js';
|
|
5
5
|
import '../chunk-HTS5RJ7S.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-S33O4PTO.js';
|
|
2
|
+
import '../chunk-X2CFDU5S.js';
|
|
3
3
|
import '../chunk-EX5XAEST.js';
|
|
4
4
|
import '../chunk-AJFA2XDQ.js';
|
|
5
5
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
2
|
-
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-
|
|
2
|
+
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-5ZL3PXEL.js';
|
|
3
3
|
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
4
|
import { Composer } from './chunk-EGBHW6FS.js';
|
|
5
5
|
import { Button } from './chunk-NMIXL2YH.js';
|
|
@@ -5,6 +5,7 @@ import { useSyncExternalStore } from 'react';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var now = Date.now();
|
|
8
|
+
var decided = false;
|
|
8
9
|
var listeners = /* @__PURE__ */ new Set();
|
|
9
10
|
var timer = 0;
|
|
10
11
|
function tick() {
|
|
@@ -37,7 +38,11 @@ function subscribe(listener) {
|
|
|
37
38
|
}
|
|
38
39
|
var TICK = 1e3;
|
|
39
40
|
function read() {
|
|
40
|
-
if (!timer) {
|
|
41
|
+
if (!timer && !decided) {
|
|
42
|
+
decided = true;
|
|
43
|
+
queueMicrotask(() => {
|
|
44
|
+
decided = false;
|
|
45
|
+
});
|
|
41
46
|
const current = Date.now();
|
|
42
47
|
if (Math.abs(current - now) >= TICK) now = current;
|
|
43
48
|
}
|
|
@@ -4,7 +4,7 @@ import { DateTimePicker } from './chunk-PHA2MBXY.js';
|
|
|
4
4
|
import { DataTable } from './chunk-KOTOBDOA.js';
|
|
5
5
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
6
6
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
7
|
-
import { RelativeTime } from './chunk-
|
|
7
|
+
import { RelativeTime } from './chunk-5ZL3PXEL.js';
|
|
8
8
|
import { Menu } from './chunk-4IB7HVDN.js';
|
|
9
9
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
10
10
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
|
|
2
|
-
import { fitGridColumns } from './chunk-
|
|
3
|
-
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-
|
|
2
|
+
import { fitGridColumns } from './chunk-DPDOQJWH.js';
|
|
3
|
+
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-WU73BKXL.js';
|
|
4
4
|
import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
|
|
5
5
|
import { EmptyState } from './chunk-HG7J6I65.js';
|
|
6
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
@@ -9,8 +9,8 @@ import { IconButton } from './chunk-CMEZGORB.js';
|
|
|
9
9
|
import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
|
|
10
10
|
import { focusables } from './chunk-EDPMHSLZ.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
12
|
-
import './TreeGrid-
|
|
13
|
-
import { useRef, useState,
|
|
12
|
+
import './TreeGrid-QKEQXK26.css';
|
|
13
|
+
import { useRef, useState, useEffect, useLayoutEffect, useMemo, useCallback, useImperativeHandle } from 'react';
|
|
14
14
|
import { breakpoint } from '@crewlethq/tokens';
|
|
15
15
|
import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -97,6 +97,14 @@ function TreeGrid({
|
|
|
97
97
|
}) {
|
|
98
98
|
const text = { ...LABELS, ...labels };
|
|
99
99
|
const frame = useRef(null);
|
|
100
|
+
const [pointer, setPointer] = useState(false);
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
if (!pointer) return void 0;
|
|
103
|
+
const key = () => setPointer(false);
|
|
104
|
+
document.addEventListener("keydown", key, true);
|
|
105
|
+
return () => document.removeEventListener("keydown", key, true);
|
|
106
|
+
}, [pointer]);
|
|
107
|
+
const onPointerDownCapture = () => setPointer(true);
|
|
100
108
|
const gridEl = useRef(null);
|
|
101
109
|
const [width, setWidth] = useState(0);
|
|
102
110
|
const reportWidth = useRef(onWidthChange);
|
|
@@ -363,16 +371,26 @@ function TreeGrid({
|
|
|
363
371
|
className
|
|
364
372
|
);
|
|
365
373
|
if (forest.length === 0 && empty) {
|
|
366
|
-
return /* @__PURE__ */ jsx(
|
|
367
|
-
|
|
374
|
+
return /* @__PURE__ */ jsx(
|
|
375
|
+
"div",
|
|
368
376
|
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
377
|
+
ref: frame,
|
|
378
|
+
className: frameClass,
|
|
379
|
+
"data-flush": flush || void 0,
|
|
380
|
+
"data-pointer": pointer || void 0,
|
|
381
|
+
onPointerDownCapture,
|
|
382
|
+
children: /* @__PURE__ */ jsx("div", { className: "crewlet-tree-grid__scroller", children: /* @__PURE__ */ jsx(
|
|
383
|
+
EmptyState,
|
|
384
|
+
{
|
|
385
|
+
size: "compact",
|
|
386
|
+
icon: empty.icon,
|
|
387
|
+
title: empty.title,
|
|
388
|
+
description: empty.hint,
|
|
389
|
+
action: empty.action
|
|
390
|
+
}
|
|
391
|
+
) })
|
|
374
392
|
}
|
|
375
|
-
)
|
|
393
|
+
);
|
|
376
394
|
}
|
|
377
395
|
return /* @__PURE__ */ jsx(
|
|
378
396
|
"div",
|
|
@@ -382,6 +400,8 @@ function TreeGrid({
|
|
|
382
400
|
"data-flush": flush || void 0,
|
|
383
401
|
"data-stacked": stacked || void 0,
|
|
384
402
|
"data-phone-rows": stacked && phoneRows === "compact" ? "compact" : void 0,
|
|
403
|
+
"data-pointer": pointer || void 0,
|
|
404
|
+
onPointerDownCapture,
|
|
385
405
|
children: /* @__PURE__ */ jsxs(LayerHost, { className: "crewlet-tree-grid__layer", children: [
|
|
386
406
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-tree-grid__scroller", onScroll, children: [
|
|
387
407
|
/* @__PURE__ */ jsxs(
|
|
@@ -455,6 +475,7 @@ function TreeGrid({
|
|
|
455
475
|
"aria-colindex": col,
|
|
456
476
|
tabIndex: stop(id, col) && !hasControl(id, col, drawn[col - 1]?.key ?? "") ? 0 : -1,
|
|
457
477
|
"data-size": one?.size === "sm" ? "sm" : void 0,
|
|
478
|
+
"data-align": one?.align,
|
|
458
479
|
"data-label": one && !one.action && col > 1 ? headerWord(one) || one.label || void 0 : void 0,
|
|
459
480
|
className: cx(
|
|
460
481
|
"crewlet-tree-grid__cell",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Link } from './chunk-MGJAOLZC.js';
|
|
2
|
-
import { RelativeTime } from './chunk-
|
|
2
|
+
import { RelativeTime } from './chunk-5ZL3PXEL.js';
|
|
3
3
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
4
4
|
import { overflowWords, shownBeforeOverflow, ListOverflow } from './chunk-EX5XAEST.js';
|
|
5
5
|
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-QZNENGHA.js';
|
|
2
2
|
import { Combobox } from './chunk-YXRC2NSO.js';
|
|
3
3
|
import { Button } from './chunk-NMIXL2YH.js';
|
|
4
4
|
import { FormField, Textarea, InputAffix } from './chunk-LSQ5BNLZ.js';
|
|
@@ -7,7 +7,7 @@ import './Input-YVCNNTYT.css';
|
|
|
7
7
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
8
8
|
import './HitArea-QUOS6ZDJ.css';
|
|
9
9
|
import './Combobox-GHT43K32.css';
|
|
10
|
-
import './Select-
|
|
10
|
+
import './Select-DRBDKBRO.css';
|
|
11
11
|
import './ValueField-JK7JPVR6.css';
|
|
12
12
|
import { useId, useState, useRef } from 'react';
|
|
13
13
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-WFP2MM6M.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './OrgLabel-
|
|
3
|
+
import './OrgLabel-4NDGABVY.css';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
function OrgLabel(props) {
|
|
@@ -11,7 +11,8 @@ function OrgLabel(props) {
|
|
|
11
11
|
className: cx(
|
|
12
12
|
"crewlet-org-label__icon",
|
|
13
13
|
props.iconSize === "lg" && "crewlet-org-label__icon--lg",
|
|
14
|
-
props.iconRing === true && "crewlet-org-label__icon--ring"
|
|
14
|
+
props.iconRing === true && "crewlet-org-label__icon--ring",
|
|
15
|
+
props.iconTone === "own" && "crewlet-org-label__icon--own"
|
|
15
16
|
),
|
|
16
17
|
"aria-hidden": "true",
|
|
17
18
|
children: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-QZNENGHA.js';
|
|
2
2
|
import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
|
|
3
3
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
4
4
|
import { Button } from './chunk-NMIXL2YH.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
2
|
-
import { RelativeTime } from './chunk-
|
|
2
|
+
import { RelativeTime } from './chunk-5ZL3PXEL.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
4
|
import { Card } from './chunk-G732IWP4.js';
|
|
5
|
-
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
6
5
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
6
|
+
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
7
7
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
8
|
-
import { AvatarStack } from './chunk-
|
|
8
|
+
import { AvatarStack } from './chunk-X2CFDU5S.js';
|
|
9
9
|
import { Checkbox } from './chunk-ED24QJYL.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-
|
|
1
|
+
import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-WU73BKXL.js';
|
|
2
2
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
3
3
|
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
4
4
|
import { EmptyState } from './chunk-HG7J6I65.js';
|
|
@@ -8,7 +8,7 @@ import { titleWhenCut } from './chunk-WSIJDWUG.js';
|
|
|
8
8
|
import { IconButton } from './chunk-CMEZGORB.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
|
-
import './DataGrid-
|
|
11
|
+
import './DataGrid-UGOZXHJS.css';
|
|
12
12
|
import { useId, useRef, useState, useMemo, useCallback, useLayoutEffect, useImperativeHandle, useSyncExternalStore, useEffect, Fragment as Fragment$1 } from 'react';
|
|
13
13
|
import { breakpoint } from '@crewlethq/tokens';
|
|
14
14
|
import { GripVerticalGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -2,12 +2,61 @@ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
3
|
import './AddPill-XLESL6BA.css';
|
|
4
4
|
import { useState, useId, useRef, useCallback, useEffect, Fragment } from 'react';
|
|
5
|
+
import { cssLength } from '@crewlethq/icons/glyphs';
|
|
5
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
8
|
var ADD_PILL_MS = 200;
|
|
8
|
-
function
|
|
9
|
+
function AddCircleGlyph({ size, className, ...rest }) {
|
|
10
|
+
const length = cssLength(size);
|
|
11
|
+
return /* @__PURE__ */ jsxs(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: length,
|
|
15
|
+
height: length,
|
|
16
|
+
fill: "none",
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
strokeWidth: 1.5,
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
focusable: "false",
|
|
22
|
+
className: cx("crewlet-add-mark", className),
|
|
23
|
+
...rest,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
|
|
27
|
+
/* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function AddPill(props) {
|
|
33
|
+
return props.onAdd === void 0 ? /* @__PURE__ */ jsx(SplitAddPill, { ...props }) : /* @__PURE__ */ jsx(SingleAdd, { ...props });
|
|
34
|
+
}
|
|
35
|
+
function SingleAdd({ label, onAdd, size = "sm", tabIndex, onOpen, className }) {
|
|
36
|
+
return /* @__PURE__ */ jsx("div", { className: cx("crewlet-add-pill", className), "data-phase": "closed", "data-size": size, "data-face": "off", children: /* @__PURE__ */ jsxs(
|
|
37
|
+
"button",
|
|
38
|
+
{
|
|
39
|
+
type: "button",
|
|
40
|
+
className: "crewlet-add-pill__mark",
|
|
41
|
+
"aria-label": label,
|
|
42
|
+
title: label,
|
|
43
|
+
tabIndex,
|
|
44
|
+
onClick: (event) => {
|
|
45
|
+
event.stopPropagation();
|
|
46
|
+
onOpen?.();
|
|
47
|
+
onAdd();
|
|
48
|
+
},
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
|
|
51
|
+
/* @__PURE__ */ jsx(AddCircleGlyph, {})
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) });
|
|
55
|
+
}
|
|
56
|
+
function SplitAddPill({
|
|
9
57
|
label,
|
|
10
58
|
sections,
|
|
59
|
+
face = true,
|
|
11
60
|
size = "sm",
|
|
12
61
|
layout = "split",
|
|
13
62
|
tabIndex,
|
|
@@ -72,9 +121,12 @@ function AddPill({
|
|
|
72
121
|
"data-phase": phase,
|
|
73
122
|
"data-size": size,
|
|
74
123
|
"data-layout": layout,
|
|
124
|
+
"data-face": face ? void 0 : "off",
|
|
75
125
|
ref: group,
|
|
76
126
|
onBlur,
|
|
77
|
-
onMouseEnter: () =>
|
|
127
|
+
onMouseEnter: () => {
|
|
128
|
+
if (face) setPhase((was) => was === "locked" ? was : "preview");
|
|
129
|
+
},
|
|
78
130
|
onMouseLeave: () => {
|
|
79
131
|
if (phase === "preview") close(false);
|
|
80
132
|
},
|
|
@@ -93,10 +145,7 @@ function AddPill({
|
|
|
93
145
|
onClick: press,
|
|
94
146
|
children: [
|
|
95
147
|
/* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
|
|
98
|
-
/* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
|
|
99
|
-
] })
|
|
148
|
+
/* @__PURE__ */ jsx(AddCircleGlyph, {})
|
|
100
149
|
]
|
|
101
150
|
}
|
|
102
151
|
),
|
|
@@ -137,4 +186,4 @@ function AddPill({
|
|
|
137
186
|
);
|
|
138
187
|
}
|
|
139
188
|
|
|
140
|
-
export { ADD_PILL_MS, AddPill };
|
|
189
|
+
export { ADD_PILL_MS, AddCircleGlyph, AddPill };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-QZNENGHA.js';
|
|
2
2
|
import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
|
|
3
3
|
import { HueSwatch } from './chunk-NFLSK6T3.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
2
|
-
import { RelativeTime } from './chunk-
|
|
2
|
+
import { RelativeTime } from './chunk-5ZL3PXEL.js';
|
|
3
3
|
import { Timeline } from './chunk-XDUXAQIS.js';
|
|
4
4
|
import { Button } from './chunk-NMIXL2YH.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|