@webority/ui-elements 0.168.0 → 0.169.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/{WuiCommentThread-AYovTYSA.js → WuiCommentThread-RB100aB1.js} +1 -1
- package/dist/{WuiContextMenu-CyejQsef.js → WuiContextMenu-ClMVFeos.js} +1 -1
- package/dist/{WuiDataTable-BniN81KC.js → WuiDataTable-D0tGIVtG.js} +1 -1
- package/dist/{WuiDatePicker-q0s8tL_E.js → WuiDatePicker-BiZciUAZ.js} +1 -1
- package/dist/{WuiDateRange-p2r5A9CY.js → WuiDateRange-DSq6Mj4v.js} +1 -1
- package/dist/{WuiDrawer-CQ7nRHUD.js → WuiDrawer-n8WlVPq_.js} +1 -1
- package/dist/{WuiDropdown-BQC04Q48.js → WuiDropdown-D2jEbCfv.js} +1 -1
- package/dist/{WuiEntryGrid-DPAYNu1v.js → WuiEntryGrid-Bm5_MizA.js} +1 -1
- package/dist/WuiGantt-BsQUCR2U.js +1 -0
- package/dist/{WuiHoverCard-DRZh88zM.js → WuiHoverCard-DmApQa9R.js} +1 -1
- package/dist/{WuiInlineEdit-CEjs5Ruk.js → WuiInlineEdit-C64O31MF.js} +1 -1
- package/dist/{WuiLightbox-DDQAOabU.js → WuiLightbox-cm5eHcMK.js} +1 -1
- package/dist/{WuiMentionInput-CkhrCz_2.js → WuiMentionInput-D7HC7U2Q.js} +1 -1
- package/dist/{WuiModal-BRILsSMq.js → WuiModal-DuBerYTv.js} +1 -1
- package/dist/{WuiNavigationMenu-BCnqv7e-.js → WuiNavigationMenu-VG-ZJstT.js} +1 -1
- package/dist/{WuiNotificationCenter-BCXT3Y7m.js → WuiNotificationCenter-hluDIzO8.js} +1 -1
- package/dist/{WuiOverflow-DtetLQHW.js → WuiOverflow-MzrZwzud.js} +1 -1
- package/dist/{WuiPhone-B6jgFRSi.js → WuiPhone-C03OuI7-.js} +1 -1
- package/dist/{WuiPopover-BzVxNSs1.js → WuiPopover-BxQj74kE.js} +1 -1
- package/dist/{WuiRelativeTime-DTGKGHbK.js → WuiRelativeTime-CujAFS_w.js} +1 -1
- package/dist/WuiSelect-DpZbgU4v.js +9 -0
- package/dist/{WuiShortcuts-DSjwaZx7.js → WuiShortcuts-CSFOyAKI.js} +1 -1
- package/dist/{WuiTimePicker-C5XouoR7.js → WuiTimePicker-BxcImgm1.js} +1 -1
- package/dist/{WuiTour-BDOGWyNA.js → WuiTour-Beop0n-H.js} +1 -1
- package/dist/WuiTree-DGclk55_.js +1 -0
- package/dist/WuiTreePicker-CBhasmC5.js +1 -0
- package/dist/{WuiWhatsNew-DOo54GiH.js → WuiWhatsNew-BtWJkzTv.js} +1 -1
- package/dist/anchorOverlay-DSzkGQPi.js +1 -0
- package/dist/avatarHtml-BtbN7cA5.js +1 -0
- package/dist/{calendarMath-CFjBxJYM.js → calendarMath-ChZ_s7HH.js} +1 -1
- package/dist/{chips-CemguTKJ.js → chips-IbfKMhVk.js} +1 -1
- package/dist/{dataTable-CKz4Oncc.js → dataTable-sRTzep19.js} +1 -1
- package/dist/{drawerDiscard-BjykHS_G.js → drawerDiscard-CIZZuKmY.js} +1 -1
- package/dist/elements/comment-thread.js +1 -1
- package/dist/elements/context-menu.js +1 -1
- package/dist/elements/data-table.js +1 -1
- package/dist/elements/date-range.js +1 -1
- package/dist/elements/datepicker.js +1 -1
- package/dist/elements/drawer.js +1 -1
- package/dist/elements/dropdown.js +1 -1
- package/dist/elements/entry-grid.js +1 -1
- package/dist/elements/filter-popover.js +1 -1
- package/dist/elements/gantt.js +1 -0
- package/dist/elements/hover-card.js +1 -1
- package/dist/elements/inline-edit.js +1 -1
- package/dist/elements/kanban.js +1 -1
- package/dist/elements/lightbox.js +1 -1
- package/dist/elements/mention-input.js +1 -1
- package/dist/elements/modal.js +1 -1
- package/dist/elements/navigation-menu.js +1 -1
- package/dist/elements/notification-center.js +1 -1
- package/dist/elements/overflow.js +1 -1
- package/dist/elements/phone.js +1 -1
- package/dist/elements/popover.js +1 -1
- package/dist/elements/relative-time.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/shortcuts.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tour.js +1 -1
- package/dist/elements/tree-picker.js +1 -0
- package/dist/elements/tree.js +1 -1
- package/dist/elements/whats-new.js +1 -1
- package/dist/{fileViewer.g-B5XQ5WKr.js → fileViewer.g-DQ-YkF8l.js} +1 -1
- package/dist/{fileViewerImage-B0Q9zdgW.js → fileViewerImage-DT0a9KaL.js} +1 -1
- package/dist/{fileViewerMedia-D3fdG-Ti.js → fileViewerMedia-BFNxdaYX.js} +1 -1
- package/dist/{fileViewerPdf-DeRWa1JE.js → fileViewerPdf-Boo6uXQO.js} +1 -1
- package/dist/{filterPopover-DmeVG4_N.js → filterPopover-BVBxgtc5.js} +1 -1
- package/dist/{formatters-Dy4kQQ_h.js → formatters-CMTSYlW9.js} +1 -1
- package/dist/gantt.g-TdTxeruW.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/initials-Qb6ITcri.js +1 -0
- package/dist/{inlineEditText-BUO5sZxN.js → inlineEditText-5FT8SGqR.js} +1 -1
- package/dist/{kanban-CEZmyYFY.js → kanban-CRRLqNn_.js} +1 -1
- package/dist/{kanbanModel-Dp5c1rTs.js → kanbanModel-sAwpMCpn.js} +1 -1
- package/dist/listboxKeyNav-DtlIOryj.js +1 -0
- package/dist/loader-Cf_ozcXz.js +1 -0
- package/dist/{nativeOverlay-C1Rw2gIW.js → nativeOverlay-D3VmY8qn.js} +1 -1
- package/dist/{notificationDays-B7cbYu4q.js → notificationDays-DQlrEZ3z.js} +1 -1
- package/dist/{relativeTime-CdFw-ekO.js → relativeTime-CQuwuwZ-.js} +1 -1
- package/dist/search-BVox4aaA.js +1 -0
- package/dist/server.js +1 -1
- package/dist/text/en.json +145 -0
- package/dist/text.js +1 -1
- package/dist/treePicker.g-BR35ru5f.js +1 -0
- package/dist/ui-chart.global.js +2 -2
- package/dist/ui-chart.js +2 -2
- package/dist/ui-elements/carousel.global.js +1 -1
- package/dist/ui-elements/code-block.global.js +1 -1
- package/dist/ui-elements/command-palette.global.js +1 -1
- package/dist/ui-elements/comment-thread.global.js +1 -1
- package/dist/ui-elements/consent-banner.global.js +1 -1
- package/dist/ui-elements/context-menu.global.js +1 -1
- package/dist/ui-elements/date-range.global.js +1 -1
- package/dist/ui-elements/drawer.global.js +1 -1
- package/dist/ui-elements/dropdown.global.js +1 -1
- package/dist/ui-elements/entry-grid.global.js +2 -2
- package/dist/ui-elements/gantt.global.js +1 -0
- package/dist/ui-elements/glyphs.global.js +1 -1
- package/dist/ui-elements/image-crop.global.js +1 -1
- package/dist/ui-elements/inline-edit.global.js +1 -1
- package/dist/ui-elements/kanban.global.js +1 -1
- package/dist/ui-elements/lead-popup.global.js +1 -1
- package/dist/ui-elements/lightbox.global.js +1 -1
- package/dist/ui-elements/markdown.global.js +1 -1
- package/dist/ui-elements/org-tree.global.js +1 -1
- package/dist/ui-elements/phone.global.js +1 -1
- package/dist/ui-elements/popover.global.js +1 -1
- package/dist/ui-elements/saved-views.global.js +1 -1
- package/dist/ui-elements/select-chips.global.js +1 -1
- package/dist/ui-elements/select-recents.global.js +1 -1
- package/dist/ui-elements/select-search.global.js +1 -1
- package/dist/ui-elements/select-window.global.js +1 -0
- package/dist/ui-elements/slider.global.js +1 -1
- package/dist/ui-elements/sortable.global.js +1 -1
- package/dist/ui-elements/status-icon.global.js +1 -1
- package/dist/ui-elements/timepicker.global.js +1 -1
- package/dist/ui-elements/tour.global.js +1 -1
- package/dist/ui-elements/tree-picker.global.js +1 -0
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +21 -21
- package/dist/ui-elements.js +1 -1
- package/dist/ui-file-viewer.global.js +1 -1
- package/dist/ui-file-viewer.js +1 -1
- package/dist/ui-tour.global.js +1 -1
- package/dist/window-BZWK3rQk.js +1 -0
- package/package.json +13 -5
- package/types/WuiGantt.d.ts +70 -0
- package/types/WuiSelect.d.ts +9 -0
- package/types/WuiTree.d.ts +37 -2
- package/types/WuiTreePicker.d.ts +64 -0
- package/types/chartSpec.d.ts +1 -1
- package/types/elements/gantt.d.ts +2 -0
- package/types/elements/tree-picker.d.ts +2 -0
- package/types/formatters.d.ts +6 -4
- package/types/ganttLayout.d.ts +116 -0
- package/types/ganttTable.d.ts +24 -0
- package/types/ganttTypes.d.ts +43 -0
- package/types/global/parts/select-window.d.ts +1 -0
- package/types/global/shared.d.ts +4 -0
- package/types/globals.d.ts +5 -1
- package/types/helpers.d.ts +3 -0
- package/types/index.d.ts +5 -1
- package/types/initials.d.ts +5 -0
- package/types/listboxKeyNav.d.ts +13 -0
- package/types/select/list.d.ts +58 -2
- package/types/select/window.d.ts +39 -0
- package/types/select/windowLoad.d.ts +1 -0
- package/types/select/windowLoadGlobal.d.ts +1 -0
- package/types/select/windowThreshold.d.ts +1 -0
- package/types/select/windowed.d.ts +2 -0
- package/types/text/web/catalogue.g.d.ts +12 -0
- package/types/text/web/gantt.g.d.ts +47 -0
- package/types/text/web/idleTimeoutDialog.g.d.ts +7 -0
- package/types/text/web/index.g.d.ts +6 -0
- package/types/text/web/loadMore.g.d.ts +8 -0
- package/types/text/web/queryBuilder.g.d.ts +59 -0
- package/types/text/web/transferList.g.d.ts +18 -0
- package/types/text/web/treePicker.g.d.ts +12 -0
- package/types/treePicker/treeKeys.d.ts +46 -0
- package/types/treePicker/treePickerView.d.ts +31 -0
- package/types/treePicker/treeState.d.ts +42 -0
- package/dist/WuiSelect-CMHoPHlx.js +0 -9
- package/dist/WuiTree-CeYbyaCx.js +0 -1
- package/dist/anchorOverlay-B8fu8hjz.js +0 -1
- package/dist/listboxKeyNav-CF7tMDGG.js +0 -1
- package/dist/loader-CQJFj96n.js +0 -1
- package/dist/search-Cj1YQUwK.js +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { GanttLayout, GanttRow, GanttSpec, GanttZoom } from "./ganttTypes.ts";
|
|
2
|
+
export declare const DAY_MS = 86400000;
|
|
3
|
+
export declare const GEOMETRY: Readonly<{
|
|
4
|
+
groupBarH: 6;
|
|
5
|
+
milestone: 14;
|
|
6
|
+
tierH: 28;
|
|
7
|
+
spanDays: Readonly<Record<"day" | "week", number>>;
|
|
8
|
+
arrow: 5;
|
|
9
|
+
elbow: 8;
|
|
10
|
+
}>;
|
|
11
|
+
export interface LayoutGeometry {
|
|
12
|
+
rowH: number;
|
|
13
|
+
groupH: number;
|
|
14
|
+
barH: number;
|
|
15
|
+
barTop: number;
|
|
16
|
+
groupBarTop: number;
|
|
17
|
+
ppd: Readonly<Record<GanttZoom, number>>;
|
|
18
|
+
}
|
|
19
|
+
export declare const LAYOUT_GEOMETRY: Readonly<Record<GanttLayout, LayoutGeometry>>;
|
|
20
|
+
export declare class GanttError extends Error {
|
|
21
|
+
}
|
|
22
|
+
/** UTC milliseconds of the calendar day `iso` ("YYYY-MM-DD"); throws GanttError for anything else. */
|
|
23
|
+
export declare function parseDay(iso: string): number;
|
|
24
|
+
/** "DD-MMM-YYYY" with the English month abbreviations: the house display format. */
|
|
25
|
+
export declare function formatDay(ms: number): string;
|
|
26
|
+
export declare function isoDay(ms: number): string;
|
|
27
|
+
/** The calendar day in Asia/Kolkata at `now`, as "YYYY-MM-DD". Zone rules come from Intl, not a fixed offset. */
|
|
28
|
+
export declare function todayIst(now?: number): string;
|
|
29
|
+
/** The first day of the window that shows `todayMs` in its usual place for the zoom. */
|
|
30
|
+
export declare function windowFor(zoom: GanttZoom, todayMs: number): number;
|
|
31
|
+
/** Moves a day onto the zoom's grid: a week starts on Monday, a month on its first day. */
|
|
32
|
+
export declare function snap(zoom: GanttZoom, fromMs: number): number;
|
|
33
|
+
/** The window moved by half its span, forwards (dir 1) or backwards (dir -1). */
|
|
34
|
+
export declare function shiftWindow(zoom: GanttZoom, fromMs: number, dir: -1 | 1): number;
|
|
35
|
+
export interface AxisCell {
|
|
36
|
+
x: number;
|
|
37
|
+
w: number;
|
|
38
|
+
label: string;
|
|
39
|
+
sub?: string;
|
|
40
|
+
weekend?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface Axis {
|
|
43
|
+
startMs: number;
|
|
44
|
+
endMs: number;
|
|
45
|
+
days: number;
|
|
46
|
+
width: number;
|
|
47
|
+
ppd: number;
|
|
48
|
+
x(ms: number): number;
|
|
49
|
+
top: AxisCell[];
|
|
50
|
+
bottom: AxisCell[];
|
|
51
|
+
gridX: number[];
|
|
52
|
+
weekendX: number[];
|
|
53
|
+
}
|
|
54
|
+
export declare function buildAxis(mode: GanttLayout, zoom: GanttZoom, fromMs: number): Axis;
|
|
55
|
+
/** Throws GanttError on the first rule a spec breaks; the message names the row by its key. */
|
|
56
|
+
export declare function validateGantt(spec: Pick<GanttSpec, "rows" | "zoom" | "layout">): void;
|
|
57
|
+
export type LabelPlace = "inside" | "after";
|
|
58
|
+
/** A bar label sits inside the bar when its estimated width fits, else after the bar. */
|
|
59
|
+
export declare function labelPlace(name: string, percent: number, barWidth: number): LabelPlace;
|
|
60
|
+
export interface PlacedRow {
|
|
61
|
+
row: GanttRow;
|
|
62
|
+
kind: "group" | "bar" | "milestone";
|
|
63
|
+
index: number;
|
|
64
|
+
top: number;
|
|
65
|
+
height: number;
|
|
66
|
+
x: number;
|
|
67
|
+
w: number;
|
|
68
|
+
clippedLeft: boolean;
|
|
69
|
+
clippedRight: boolean;
|
|
70
|
+
hidden: boolean;
|
|
71
|
+
place?: LabelPlace;
|
|
72
|
+
flip?: boolean;
|
|
73
|
+
group?: {
|
|
74
|
+
name: string;
|
|
75
|
+
count: number;
|
|
76
|
+
percent: number;
|
|
77
|
+
folded: boolean;
|
|
78
|
+
startMs: number;
|
|
79
|
+
endMs: number;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface Arrow {
|
|
83
|
+
fromKey: string;
|
|
84
|
+
toKey: string;
|
|
85
|
+
d: string;
|
|
86
|
+
head: string;
|
|
87
|
+
}
|
|
88
|
+
export interface Layout {
|
|
89
|
+
layout: GanttLayout;
|
|
90
|
+
geometry: LayoutGeometry;
|
|
91
|
+
axis: Axis;
|
|
92
|
+
rows: PlacedRow[];
|
|
93
|
+
height: number;
|
|
94
|
+
today: {
|
|
95
|
+
x: number;
|
|
96
|
+
inWindow: boolean;
|
|
97
|
+
};
|
|
98
|
+
arrows: Arrow[];
|
|
99
|
+
}
|
|
100
|
+
/** Finish-to-start route from a's right edge to b's left edge; both ends at height y. */
|
|
101
|
+
export declare function routeArrow(a: {
|
|
102
|
+
r: number;
|
|
103
|
+
y: number;
|
|
104
|
+
}, b: {
|
|
105
|
+
l: number;
|
|
106
|
+
y: number;
|
|
107
|
+
}): {
|
|
108
|
+
d: string;
|
|
109
|
+
head: string;
|
|
110
|
+
};
|
|
111
|
+
export declare function layout(spec: GanttSpec, resolved: {
|
|
112
|
+
layout: GanttLayout;
|
|
113
|
+
zoom: GanttZoom;
|
|
114
|
+
fromMs: number;
|
|
115
|
+
todayMs: number;
|
|
116
|
+
}): Layout;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type PlacedRow } from "./ganttLayout.ts";
|
|
2
|
+
import type { GANTT_TEXT } from "./text/web/gantt.g.ts";
|
|
3
|
+
/** A task row of the table carries this attribute with its row key; a click on it selects the row. */
|
|
4
|
+
export declare const PICK_ATTR = "data-wui-gantt-pick";
|
|
5
|
+
export interface GanttTableInput {
|
|
6
|
+
/** The table's accessible name. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** `layout(...).rows` of the table layout; empty in the loading, empty and error states. */
|
|
9
|
+
rows: readonly PlacedRow[];
|
|
10
|
+
/** Height of the header row in px: two axis tiers. */
|
|
11
|
+
headHeight: number;
|
|
12
|
+
selected: string | null;
|
|
13
|
+
text: typeof GANTT_TEXT;
|
|
14
|
+
/** The element's focus-token attribute; a group toggle carries `group:<name>` in it. */
|
|
15
|
+
focusAttr: string;
|
|
16
|
+
/** Loading state: this many placeholder rows follow the head, each `rowHeight` tall with a `barHeight` bar. */
|
|
17
|
+
skeleton?: {
|
|
18
|
+
rows: number;
|
|
19
|
+
rowHeight: number;
|
|
20
|
+
barHeight: number;
|
|
21
|
+
} | undefined;
|
|
22
|
+
}
|
|
23
|
+
/** The task table of the table layout: one row per placed row, each as tall as its lane row. */
|
|
24
|
+
export declare function ganttTable(input: GanttTableInput): HTMLElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type GanttZoom = "day" | "week" | "month";
|
|
2
|
+
export type GanttStatus = "done" | "inProgress" | "atRisk" | "notStarted";
|
|
3
|
+
export type GanttState = "ready" | "loading" | "empty" | "error";
|
|
4
|
+
export type GanttLayout = "table" | "lanes";
|
|
5
|
+
export interface GanttRow {
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
start?: string | undefined;
|
|
9
|
+
end?: string | undefined;
|
|
10
|
+
progress?: number | undefined;
|
|
11
|
+
status?: GanttStatus | undefined;
|
|
12
|
+
owner?: string | undefined;
|
|
13
|
+
dependsOn?: string[] | undefined;
|
|
14
|
+
group?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface GanttSpec {
|
|
17
|
+
title: string;
|
|
18
|
+
rows: GanttRow[];
|
|
19
|
+
layout?: GanttLayout | undefined;
|
|
20
|
+
zoom?: GanttZoom | undefined;
|
|
21
|
+
from?: string | undefined;
|
|
22
|
+
folded?: string[] | undefined;
|
|
23
|
+
selected?: string | null | undefined;
|
|
24
|
+
today?: string | undefined;
|
|
25
|
+
state?: GanttState | undefined;
|
|
26
|
+
emptyText?: string | undefined;
|
|
27
|
+
errorText?: string | undefined;
|
|
28
|
+
loadingText?: string | undefined;
|
|
29
|
+
addTask?: boolean | undefined;
|
|
30
|
+
controlled?: boolean | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface GanttZoomChangeDetail {
|
|
33
|
+
zoom: GanttZoom;
|
|
34
|
+
}
|
|
35
|
+
export interface GanttFromChangeDetail {
|
|
36
|
+
from: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GanttFoldChangeDetail {
|
|
39
|
+
folded: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface GanttSelectDetail {
|
|
42
|
+
key: string | null;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/global/shared.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as anchorOverlay from "../anchorOverlay.ts";
|
|
2
|
+
import * as avatarHtml from "../avatarHtml.ts";
|
|
2
3
|
import * as buttonClass from "../buttonClass.ts";
|
|
3
4
|
import * as calendarMath from "../calendarMath.ts";
|
|
4
5
|
import * as copyText from "../copyText.ts";
|
|
@@ -22,6 +23,7 @@ import * as optionLabel from "../optionLabel.ts";
|
|
|
22
23
|
import * as selectList from "../select/list.ts";
|
|
23
24
|
import * as partRegistry from "../select/partRegistry.ts";
|
|
24
25
|
import * as selectRemote from "../select/remote.ts";
|
|
26
|
+
import * as selectWindow from "../select/window.ts";
|
|
25
27
|
import * as wuiHttp from "../server/wuiHttp.ts";
|
|
26
28
|
import * as stepperHeader from "../stepperHeader.ts";
|
|
27
29
|
import * as tableSelect from "../tableSelect.ts";
|
|
@@ -36,6 +38,7 @@ import * as glyphs from "./glyphs.ts";
|
|
|
36
38
|
import * as loader from "./loader.ts";
|
|
37
39
|
export declare const SHARED_MODULES: Readonly<{
|
|
38
40
|
anchorOverlay: typeof anchorOverlay;
|
|
41
|
+
avatarHtml: typeof avatarHtml;
|
|
39
42
|
buttonClass: typeof buttonClass;
|
|
40
43
|
calendarMath: typeof calendarMath;
|
|
41
44
|
copyText: typeof copyText;
|
|
@@ -63,6 +66,7 @@ export declare const SHARED_MODULES: Readonly<{
|
|
|
63
66
|
selectList: typeof selectList;
|
|
64
67
|
selectRemote: typeof selectRemote;
|
|
65
68
|
selectText: typeof selectText;
|
|
69
|
+
selectWindow: typeof selectWindow;
|
|
66
70
|
stepperHeader: typeof stepperHeader;
|
|
67
71
|
tableSelect: typeof tableSelect;
|
|
68
72
|
textMatch: typeof textMatch;
|
package/types/globals.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type { WuiDrawer } from "./WuiDrawer.ts";
|
|
|
19
19
|
import type { WuiDropdown } from "./WuiDropdown.ts";
|
|
20
20
|
import type { WuiEntryGrid } from "./WuiEntryGrid.ts";
|
|
21
21
|
import type { WuiFileViewer } from "./WuiFileViewer.ts";
|
|
22
|
+
import type { WuiGantt } from "./WuiGantt.ts";
|
|
22
23
|
import type { WuiHoverCard } from "./WuiHoverCard.ts";
|
|
23
24
|
import type { WuiImageCrop } from "./WuiImageCrop.ts";
|
|
24
25
|
import type { WuiInlineEdit } from "./WuiInlineEdit.ts";
|
|
@@ -48,6 +49,7 @@ import type { WuiSortable } from "./WuiSortable.ts";
|
|
|
48
49
|
import type { WuiTimePicker } from "./WuiTimePicker.ts";
|
|
49
50
|
import type { WuiTour } from "./WuiTour.ts";
|
|
50
51
|
import type { WuiTree } from "./WuiTree.ts";
|
|
52
|
+
import type { WuiTreePicker } from "./WuiTreePicker.ts";
|
|
51
53
|
import type { WuiTruncate } from "./WuiTruncate.ts";
|
|
52
54
|
import type { WuiWhatsNew } from "./WuiWhatsNew.ts";
|
|
53
55
|
import type { WuiWizard } from "./WuiWizard.ts";
|
|
@@ -70,6 +72,7 @@ export interface WuiElementTagMap {
|
|
|
70
72
|
"wui-entry-grid": WuiEntryGrid;
|
|
71
73
|
"wui-file-viewer": WuiFileViewer;
|
|
72
74
|
"wui-filter-popover": WuiFilterPopover;
|
|
75
|
+
"wui-gantt": WuiGantt;
|
|
73
76
|
"wui-hover-card": WuiHoverCard;
|
|
74
77
|
"wui-image-crop": WuiImageCrop;
|
|
75
78
|
"wui-inline-edit": WuiInlineEdit;
|
|
@@ -102,6 +105,7 @@ export interface WuiElementTagMap {
|
|
|
102
105
|
"wui-tour": WuiTour;
|
|
103
106
|
"wui-tour-step": WuiTourStep;
|
|
104
107
|
"wui-tree": WuiTree;
|
|
108
|
+
"wui-tree-picker": WuiTreePicker;
|
|
105
109
|
"wui-truncate": WuiTruncate;
|
|
106
110
|
"wui-whats-new": WuiWhatsNew;
|
|
107
111
|
"wui-wizard": WuiWizard;
|
|
@@ -152,7 +156,7 @@ declare global {
|
|
|
152
156
|
}
|
|
153
157
|
interface DocumentEventMap extends WuiEventMap {
|
|
154
158
|
}
|
|
155
|
-
var WeborityUiElements: typeof import("./global/core.ts") & Partial<typeof import("./elements/carousel.ts")> & Partial<typeof import("./elements/code-block.ts")> & Partial<typeof import("./elements/command-palette.ts")> & Partial<typeof import("./elements/comment-thread.ts")> & Partial<typeof import("./elements/consent-banner.ts")> & Partial<typeof import("./elements/context-menu.ts")> & Partial<typeof import("./elements/date-range.ts")> & Partial<typeof import("./elements/drawer.ts")> & Partial<typeof import("./elements/dropdown.ts")> & Partial<typeof import("./elements/image-crop.ts")> & Partial<typeof import("./elements/inline-edit.ts")> & Partial<typeof import("./elements/kanban.ts")> & Partial<typeof import("./elements/lead-popup.ts")> & Partial<typeof import("./elements/lightbox.ts")> & Partial<typeof import("./elements/org-tree.ts")> & Partial<typeof import("./elements/markdown.ts")> & Partial<typeof import("./elements/modal.ts")> & Partial<typeof import("./elements/phone.ts")> & Partial<typeof import("./elements/popover.ts")> & Partial<typeof import("./global/parts/select-country.ts")> & Partial<typeof import("./elements/saved-views.ts")> & Partial<typeof import("./global/parts/select-chips.ts")> & Partial<typeof import("./global/parts/select-recents.ts")> & Partial<typeof import("./global/parts/select-search.ts")> & Partial<typeof import("./elements/slider.ts")> & Partial<typeof import("./elements/sortable.ts")> & Partial<typeof import("./elements/status-icon.ts")> & Partial<typeof import("./elements/timepicker.ts")> & Partial<typeof import("./elements/tour.ts")> & Partial<typeof import("./elements/tree.ts")> & Partial<typeof import("./elements/wizard.ts")>;
|
|
159
|
+
var WeborityUiElements: typeof import("./global/core.ts") & Partial<typeof import("./elements/carousel.ts")> & Partial<typeof import("./elements/code-block.ts")> & Partial<typeof import("./elements/command-palette.ts")> & Partial<typeof import("./elements/comment-thread.ts")> & Partial<typeof import("./elements/consent-banner.ts")> & Partial<typeof import("./elements/context-menu.ts")> & Partial<typeof import("./elements/date-range.ts")> & Partial<typeof import("./elements/drawer.ts")> & Partial<typeof import("./elements/dropdown.ts")> & Partial<typeof import("./elements/gantt.ts")> & Partial<typeof import("./elements/image-crop.ts")> & Partial<typeof import("./elements/inline-edit.ts")> & Partial<typeof import("./elements/kanban.ts")> & Partial<typeof import("./elements/lead-popup.ts")> & Partial<typeof import("./elements/lightbox.ts")> & Partial<typeof import("./elements/org-tree.ts")> & Partial<typeof import("./elements/markdown.ts")> & Partial<typeof import("./elements/modal.ts")> & Partial<typeof import("./elements/phone.ts")> & Partial<typeof import("./elements/popover.ts")> & Partial<typeof import("./global/parts/select-country.ts")> & Partial<typeof import("./elements/saved-views.ts")> & Partial<typeof import("./global/parts/select-chips.ts")> & Partial<typeof import("./global/parts/select-recents.ts")> & Partial<typeof import("./global/parts/select-search.ts")> & Partial<typeof import("./elements/slider.ts")> & Partial<typeof import("./elements/sortable.ts")> & Partial<typeof import("./elements/status-icon.ts")> & Partial<typeof import("./elements/timepicker.ts")> & Partial<typeof import("./elements/tour.ts")> & Partial<typeof import("./elements/tree.ts")> & Partial<typeof import("./elements/tree-picker.ts")> & Partial<typeof import("./elements/wizard.ts")>;
|
|
156
160
|
var WeborityFileViewer: typeof import("./fileViewer.ts") | undefined;
|
|
157
161
|
var WeborityChart: typeof import("./chart.ts") | undefined;
|
|
158
162
|
var WeborityCalendar: typeof import("./calendar.ts") | undefined;
|
package/types/helpers.d.ts
CHANGED
|
@@ -9,8 +9,11 @@ export { isElementDefined, whenElementDefined } from "./elementRegistry.ts";
|
|
|
9
9
|
export { acceptDroppedFiles, attachFileDrop } from "./fileDrop.ts";
|
|
10
10
|
export { acceptLabel, DEFAULT_IMAGE_ACCEPT, DEFAULT_MAX_SIZE_MB, formatFileSize, isImageFile, isImageOnlyAccept, isPdfFile, matchesAccept, validateFile, } from "./fileValidation.ts";
|
|
11
11
|
export { CURRENCIES, DATE_PATTERNS, DURATION_UNITS, emptyValueLabel, FORMAT_STYLES, formatCompact, formatCurrency, formatDate, formatDateTime, formatDuration, formatNumber, formatPercent, formatValue, IST_TIME_ZONE, MONEY_UNITS, timeZoneLabel, toInstant, } from "./formatters.ts";
|
|
12
|
+
export { GanttError, validateGantt } from "./ganttLayout.ts";
|
|
13
|
+
export type { GanttFoldChangeDetail, GanttFromChangeDetail, GanttLayout, GanttRow, GanttSelectDetail, GanttSpec, GanttState, GanttStatus, GanttZoom, GanttZoomChangeDetail, } from "./ganttTypes.ts";
|
|
12
14
|
export { glyphSvg } from "./iconGlyphs.g.ts";
|
|
13
15
|
export { isImeSafeEnter } from "./imeSafeEnter.ts";
|
|
16
|
+
export { initialsOf } from "./initials.ts";
|
|
14
17
|
export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TYPES, type InlineEditFailedDetail, type InlineEditOption, type InlineEditSavedDetail, type InlineEditTextConfig, type InlineEditTextResult, type InlineEditType, inlineEditText, } from "./inlineEditText.ts";
|
|
15
18
|
export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPUT_TYPES, MASK_NAMES, maskedPostValue, postedMasked, rawMasked, resolveMask, } from "./inputMask.ts";
|
|
16
19
|
export { isDrawn } from "./isDrawn.ts";
|
package/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { WuiDock } from "./WuiDock.ts";
|
|
|
13
13
|
import { WuiDrawer } from "./WuiDrawer.ts";
|
|
14
14
|
import { WuiDropdown } from "./WuiDropdown.ts";
|
|
15
15
|
import { WuiEntryGrid } from "./WuiEntryGrid.ts";
|
|
16
|
+
import { WuiGantt } from "./WuiGantt.ts";
|
|
16
17
|
import { WuiHoverCard } from "./WuiHoverCard.ts";
|
|
17
18
|
import { WuiImageCrop } from "./WuiImageCrop.ts";
|
|
18
19
|
import { WuiInlineEdit } from "./WuiInlineEdit.ts";
|
|
@@ -41,16 +42,19 @@ import { WuiSortable } from "./WuiSortable.ts";
|
|
|
41
42
|
import { WuiTimePicker } from "./WuiTimePicker.ts";
|
|
42
43
|
import { WuiTour } from "./WuiTour.ts";
|
|
43
44
|
import { WuiTree } from "./WuiTree.ts";
|
|
45
|
+
import { WuiTreePicker } from "./WuiTreePicker.ts";
|
|
44
46
|
import { WuiTruncate } from "./WuiTruncate.ts";
|
|
45
47
|
import { WuiWhatsNew } from "./WuiWhatsNew.ts";
|
|
46
48
|
import { WuiWizard } from "./WuiWizard.ts";
|
|
47
49
|
import { WuiWizardStep } from "./WuiWizardStep.ts";
|
|
48
50
|
export declare function defineWeborityElements(): void;
|
|
49
51
|
export { formatCompact, formatCurrency, formatDate, formatDateTime, formatNumber, formatPercent, formatValue, } from "./formatters.ts";
|
|
52
|
+
export type * from "./ganttTypes.ts";
|
|
50
53
|
export type { WuiElementTagMap } from "./globals.ts";
|
|
51
54
|
export { ROW_DROP_EVENT } from "./rowDrop.ts";
|
|
52
55
|
export { DISCARD_EVENT } from "./server/drawerDiscard.ts";
|
|
53
56
|
export { SHORTCUT_EVENT } from "./shortcutKeys.ts";
|
|
54
57
|
export { THEME_CHANGE_EVENT } from "./themeTransition.ts";
|
|
58
|
+
export type { TreePickerNode } from "./treePicker/treeState.ts";
|
|
55
59
|
export { WHATS_NEW_READ_EVENT } from "./WuiWhatsNew.ts";
|
|
56
|
-
export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDock, WuiDrawer, WuiDropdown, WuiEntryGrid, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiModal, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiPopover, WuiRating, WuiRecordPager, WuiRelativeTime, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
|
|
60
|
+
export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDock, WuiDrawer, WuiDropdown, WuiEntryGrid, WuiGantt, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiModal, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiPopover, WuiRating, WuiRecordPager, WuiRelativeTime, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTreePicker, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
|
package/types/listboxKeyNav.d.ts
CHANGED
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
* onEscape: (e) => { ... }, // fired when Escape pressed; the caller cancels e
|
|
18
18
|
* onTypeahead: (char) => { ... }, // optional: invoked for printable keys outside input
|
|
19
19
|
* typeaheadMs: 500, // optional: buffer clear timeout (default 500)
|
|
20
|
+
* getCount: () => rowCount, // optional: rows in the whole list (windowed callers)
|
|
21
|
+
* getOptionAt: (i) => rowElement(i), // optional: the row element at a data index
|
|
22
|
+
* findByPrefix: (prefix, from) => index, // optional: first row at or after `from` whose text starts with prefix, else -1
|
|
20
23
|
* });
|
|
21
24
|
* // Then bind: element.addEventListener('keydown', handler);
|
|
22
25
|
* // On unmount: handler.teardown();
|
|
@@ -25,6 +28,10 @@
|
|
|
25
28
|
* **Key contract:** setActive(-1) on close and on Escape is the caller's responsibility
|
|
26
29
|
* (or part of onEscape). This module manages the cursor AND the typeahead buffer lifecycle,
|
|
27
30
|
* but does NOT know how to open/close, those are element-specific (control button, menu div).
|
|
31
|
+
*
|
|
32
|
+
* **Windowed lists:** when only the rows near the scroll position exist in the DOM, `getVisibleOptions`
|
|
33
|
+
* returns just those rows, so the cursor must move over data indexes instead. A windowed caller supplies
|
|
34
|
+
* all three of `getCount`, `getOptionAt` and `findByPrefix`; without them the rendered rows are the list.
|
|
28
35
|
*/
|
|
29
36
|
export interface ListboxKeyNavConfig {
|
|
30
37
|
getVisibleOptions: () => HTMLElement[];
|
|
@@ -34,6 +41,9 @@ export interface ListboxKeyNavConfig {
|
|
|
34
41
|
onEscape?: (e: KeyboardEvent) => void;
|
|
35
42
|
onTypeahead?: (char: string, activeIndex: number, visibleOptions: HTMLElement[]) => void;
|
|
36
43
|
typeaheadMs?: number;
|
|
44
|
+
getCount?: () => number;
|
|
45
|
+
getOptionAt?: (index: number) => HTMLElement | undefined;
|
|
46
|
+
findByPrefix?: (prefix: string, from: number) => number;
|
|
37
47
|
}
|
|
38
48
|
export interface ListboxKeyNav {
|
|
39
49
|
handler: (e: KeyboardEvent) => void;
|
|
@@ -50,6 +60,9 @@ export interface ListboxKeyNav {
|
|
|
50
60
|
* @param [config.onEscape] - (e) => void, Escape key action (may include close + teardown); the caller cancels e
|
|
51
61
|
* @param [config.onTypeahead] - (char, activeIndex, visibleOptions) => void, char matched to option
|
|
52
62
|
* @param [config.typeaheadMs] - clear buffer timeout (default 500)
|
|
63
|
+
* @param [config.getCount] - total rows when the list is windowed (default: the rendered rows)
|
|
64
|
+
* @param [config.getOptionAt] - the row element at a data index when the list is windowed
|
|
65
|
+
* @param [config.findByPrefix] - (prefix, from) => data index of the first match, -1 for none, when the list is windowed
|
|
53
66
|
* @returns { handler: (KeyboardEvent) => void, teardown: () => void, clearTypeahead: () => void }
|
|
54
67
|
*/
|
|
55
68
|
export declare function createListboxKeyNav(config: ListboxKeyNavConfig): ListboxKeyNav;
|
package/types/select/list.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SelectOption } from "./option.ts";
|
|
2
|
-
type ActionRow = {
|
|
2
|
+
export type ActionRow = {
|
|
3
3
|
position: "top" | "bottom";
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
@@ -12,12 +12,44 @@ type Recents = {
|
|
|
12
12
|
* The options whose label, description or meta contains the query, ignoring case. An empty query keeps every option.
|
|
13
13
|
*/
|
|
14
14
|
export declare function filterOptions(options: SelectOption[], query: string): SelectOption[];
|
|
15
|
+
export declare const drawn: WeakMap<HTMLElement, string>;
|
|
16
|
+
export type Pos = {
|
|
17
|
+
index: number;
|
|
18
|
+
size: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const posAttrs: (pos: Pos | undefined) => string;
|
|
21
|
+
export type WindowView = {
|
|
22
|
+
options: SelectOption[];
|
|
23
|
+
query: string;
|
|
24
|
+
rows: SelectOption[];
|
|
25
|
+
pre: string;
|
|
26
|
+
post: string;
|
|
27
|
+
picked: Set<string>;
|
|
28
|
+
top: ActionRow[];
|
|
29
|
+
recent: SelectOption[];
|
|
30
|
+
bottom: ActionRow[];
|
|
31
|
+
bodyBase: number;
|
|
32
|
+
total: number;
|
|
33
|
+
};
|
|
34
|
+
export type WindowImpl = {
|
|
35
|
+
render(listEl: HTMLElement, view: WindowView): void;
|
|
36
|
+
refresh(listEl: HTMLElement): boolean;
|
|
37
|
+
reveal(listEl: HTMLElement, index: number): HTMLElement | null;
|
|
38
|
+
indexOfValue(listEl: HTMLElement, values: readonly string[]): number;
|
|
39
|
+
indexByPrefix(listEl: HTMLElement, prefix: string): number;
|
|
40
|
+
clear(listEl: HTMLElement): void;
|
|
41
|
+
};
|
|
42
|
+
export declare function registerWindowImpl(impl: WindowImpl | undefined): void;
|
|
15
43
|
/**
|
|
16
44
|
* Draws the listbox. Rows are filtered by `query`; a part that owns filtering passes "" and its own rows.
|
|
17
45
|
* The empty row shows when no option row or action row is drawn, or when status is "empty"; the loading
|
|
18
46
|
* row replaces it while status is "loading", and the hint row replaces it while status is "hint".
|
|
19
47
|
* `recents` draws a heading, its rows and a divider above the full list.
|
|
48
|
+
* A list of more than SELECT_WINDOW_THRESHOLD option rows draws only the rows near the scroll position, between
|
|
49
|
+
* two spacers, once its window is registered; until then it draws every row. Either way each row keeps its
|
|
50
|
+
* row index in its id.
|
|
20
51
|
* @param listEl the listbox (.wui-select-options); its id prefixes each row id
|
|
52
|
+
* @returns the option rows the whole list holds, whether it is windowed, and whether it is long
|
|
21
53
|
*/
|
|
22
54
|
export declare function renderOptions(listEl: HTMLElement, options: SelectOption[], view?: {
|
|
23
55
|
selected?: string[] | undefined;
|
|
@@ -28,5 +60,29 @@ export declare function renderOptions(listEl: HTMLElement, options: SelectOption
|
|
|
28
60
|
hintText?: string | undefined;
|
|
29
61
|
actionRow?: ActionRow[] | undefined;
|
|
30
62
|
recents?: Recents | undefined;
|
|
31
|
-
}):
|
|
63
|
+
}): {
|
|
64
|
+
rows: number;
|
|
65
|
+
windowed: boolean;
|
|
66
|
+
long: boolean;
|
|
67
|
+
};
|
|
68
|
+
export declare const rowId: (listboxId: string, i: number) => string;
|
|
69
|
+
/**
|
|
70
|
+
* Redraws a windowed listbox when its scroll position moved the window.
|
|
71
|
+
* @returns whether the drawn rows changed
|
|
72
|
+
*/
|
|
73
|
+
export declare function refreshWindow(listEl: HTMLElement): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Scrolls a windowed listbox so row `index` is drawn and fully in view.
|
|
76
|
+
* @returns the row element, or null when the listbox has no such row
|
|
77
|
+
*/
|
|
78
|
+
export declare function revealRow(listEl: HTMLElement, index: number): HTMLElement | null;
|
|
79
|
+
/**
|
|
80
|
+
* The first row of a listbox, in row order, that holds one of `values`; -1 for none.
|
|
81
|
+
*/
|
|
82
|
+
export declare function rowIndexOfValue(listEl: HTMLElement, values: readonly string[]): number;
|
|
83
|
+
/**
|
|
84
|
+
* The first row of a listbox whose text starts with `prefix` (lower case); -1 for none.
|
|
85
|
+
*/
|
|
86
|
+
export declare function rowIndexByPrefix(listEl: HTMLElement, prefix: string): number;
|
|
87
|
+
export declare function optionRow(o: SelectOption, id: string, sel: boolean, pos?: Pos): string;
|
|
32
88
|
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const SELECT_WINDOW_OVERSCAN = 8;
|
|
2
|
+
export declare const FALLBACK_ROW_HEIGHT = 36;
|
|
3
|
+
export type HeightIndex = {
|
|
4
|
+
count: number;
|
|
5
|
+
estimate: number;
|
|
6
|
+
setEstimate(h: number): void;
|
|
7
|
+
set(i: number, h: number): boolean;
|
|
8
|
+
heightOf(i: number): number;
|
|
9
|
+
offsetOf(i: number): number;
|
|
10
|
+
total(): number;
|
|
11
|
+
indexAt(offset: number): number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Entry heights for a list of `count` entries: a measured height where one was set, `estimate` elsewhere.
|
|
15
|
+
* Offsets come from a prefix sum rebuilt lazily after a change.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createHeightIndex(count: number, estimate?: number): HeightIndex;
|
|
18
|
+
/**
|
|
19
|
+
* The entries to draw for a scroll box: `start` to `end` (exclusive) and the heights of the spacers above and below.
|
|
20
|
+
* @param heights the entry heights
|
|
21
|
+
* @param box the scroll position and visible height, with an optional overscan
|
|
22
|
+
*/
|
|
23
|
+
export declare function windowRange(heights: HeightIndex, box: {
|
|
24
|
+
scrollTop: number;
|
|
25
|
+
viewport: number;
|
|
26
|
+
overscan?: number;
|
|
27
|
+
}): {
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
before: number;
|
|
31
|
+
after: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The scrollTop that puts entry `i` fully inside the box with the least movement.
|
|
35
|
+
*/
|
|
36
|
+
export declare function scrollTopToReveal(heights: HeightIndex, i: number, box: {
|
|
37
|
+
scrollTop: number;
|
|
38
|
+
viewport: number;
|
|
39
|
+
}): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadWindow(): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadWindow: () => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SELECT_WINDOW_THRESHOLD = 300;
|
|
@@ -47,8 +47,10 @@ import type { FilterBarText } from "./filterBar.g.ts";
|
|
|
47
47
|
import type { FloatingDockText } from "./floatingDock.g.ts";
|
|
48
48
|
import type { FormattersText } from "./formatters.g.ts";
|
|
49
49
|
import type { FormulaStepsText } from "./formulaSteps.g.ts";
|
|
50
|
+
import type { GanttText } from "./gantt.g.ts";
|
|
50
51
|
import type { HoverCardText } from "./hoverCard.g.ts";
|
|
51
52
|
import type { HttpFailureText } from "./httpFailure.g.ts";
|
|
53
|
+
import type { IdleTimeoutDialogText } from "./idleTimeoutDialog.g.ts";
|
|
52
54
|
import type { ImageCropText } from "./imageCrop.g.ts";
|
|
53
55
|
import type { ImagePickerText } from "./imagePicker.g.ts";
|
|
54
56
|
import type { InfoTipText } from "./infoTip.g.ts";
|
|
@@ -61,6 +63,7 @@ import type { KpiTileText } from "./kpiTile.g.ts";
|
|
|
61
63
|
import type { LabelHelpText } from "./labelHelp.g.ts";
|
|
62
64
|
import type { LeadPopupText } from "./leadPopup.g.ts";
|
|
63
65
|
import type { LightboxText } from "./lightbox.g.ts";
|
|
66
|
+
import type { LoadMoreText } from "./loadMore.g.ts";
|
|
64
67
|
import type { MentionInputText } from "./mentionInput.g.ts";
|
|
65
68
|
import type { ModalText } from "./modal.g.ts";
|
|
66
69
|
import type { ModalCardRendererText } from "./modalCardRenderer.g.ts";
|
|
@@ -81,6 +84,7 @@ import type { PhoneText } from "./phone.g.ts";
|
|
|
81
84
|
import type { PhoneNumberInputText } from "./phoneNumberInput.g.ts";
|
|
82
85
|
import type { PricingCardText } from "./pricingCard.g.ts";
|
|
83
86
|
import type { QrCodeText } from "./qrCode.g.ts";
|
|
87
|
+
import type { QueryBuilderText } from "./queryBuilder.g.ts";
|
|
84
88
|
import type { RadioText } from "./radio.g.ts";
|
|
85
89
|
import type { RadioGroupText } from "./radioGroup.g.ts";
|
|
86
90
|
import type { RatingText } from "./rating.g.ts";
|
|
@@ -123,7 +127,9 @@ import type { TimePickerText } from "./timePicker.g.ts";
|
|
|
123
127
|
import type { ToastText } from "./toast.g.ts";
|
|
124
128
|
import type { TourText } from "./tour.g.ts";
|
|
125
129
|
import type { TourAdvanceText } from "./tourAdvance.g.ts";
|
|
130
|
+
import type { TransferListText } from "./transferList.g.ts";
|
|
126
131
|
import type { TreeText } from "./tree.g.ts";
|
|
132
|
+
import type { TreePickerText } from "./treePicker.g.ts";
|
|
127
133
|
import type { UnsavedChangesText } from "./unsavedChanges.g.ts";
|
|
128
134
|
import type { UpdateBarText } from "./updateBar.g.ts";
|
|
129
135
|
import type { ValueText } from "./value.g.ts";
|
|
@@ -180,8 +186,10 @@ export interface WuiTextCatalogue {
|
|
|
180
186
|
readonly floatingDock: FloatingDockText;
|
|
181
187
|
readonly formatters: FormattersText;
|
|
182
188
|
readonly formulaSteps: FormulaStepsText;
|
|
189
|
+
readonly gantt: GanttText;
|
|
183
190
|
readonly hoverCard: HoverCardText;
|
|
184
191
|
readonly httpFailure: HttpFailureText;
|
|
192
|
+
readonly idleTimeoutDialog: IdleTimeoutDialogText;
|
|
185
193
|
readonly imageCrop: ImageCropText;
|
|
186
194
|
readonly imagePicker: ImagePickerText;
|
|
187
195
|
readonly infoTip: InfoTipText;
|
|
@@ -194,6 +202,7 @@ export interface WuiTextCatalogue {
|
|
|
194
202
|
readonly labelHelp: LabelHelpText;
|
|
195
203
|
readonly leadPopup: LeadPopupText;
|
|
196
204
|
readonly lightbox: LightboxText;
|
|
205
|
+
readonly loadMore: LoadMoreText;
|
|
197
206
|
readonly mentionInput: MentionInputText;
|
|
198
207
|
readonly modal: ModalText;
|
|
199
208
|
readonly modalCardRenderer: ModalCardRendererText;
|
|
@@ -214,6 +223,7 @@ export interface WuiTextCatalogue {
|
|
|
214
223
|
readonly phoneNumberInput: PhoneNumberInputText;
|
|
215
224
|
readonly pricingCard: PricingCardText;
|
|
216
225
|
readonly qrCode: QrCodeText;
|
|
226
|
+
readonly queryBuilder: QueryBuilderText;
|
|
217
227
|
readonly radio: RadioText;
|
|
218
228
|
readonly radioGroup: RadioGroupText;
|
|
219
229
|
readonly rating: RatingText;
|
|
@@ -256,7 +266,9 @@ export interface WuiTextCatalogue {
|
|
|
256
266
|
readonly toast: ToastText;
|
|
257
267
|
readonly tour: TourText;
|
|
258
268
|
readonly tourAdvance: TourAdvanceText;
|
|
269
|
+
readonly transferList: TransferListText;
|
|
259
270
|
readonly tree: TreeText;
|
|
271
|
+
readonly treePicker: TreePickerText;
|
|
260
272
|
readonly unsavedChanges: UnsavedChangesText;
|
|
261
273
|
readonly updateBar: UpdateBarText;
|
|
262
274
|
readonly value: ValueText;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type GanttText = {
|
|
2
|
+
readonly addTaskLabel: string;
|
|
3
|
+
readonly barLabel: string;
|
|
4
|
+
readonly barLabelAfter: string;
|
|
5
|
+
readonly dayLabel: string;
|
|
6
|
+
readonly detailsCloseLabel: string;
|
|
7
|
+
readonly detailsDates: string;
|
|
8
|
+
readonly detailsDone: string;
|
|
9
|
+
readonly detailsOwner: string;
|
|
10
|
+
readonly detailsRange: string;
|
|
11
|
+
readonly detailsStartsAfter: string;
|
|
12
|
+
readonly earlierLabel: string;
|
|
13
|
+
readonly emptyText: string;
|
|
14
|
+
readonly emptyTitle: string;
|
|
15
|
+
readonly errorText: string;
|
|
16
|
+
readonly foldLabel: string;
|
|
17
|
+
readonly groupSummaryOne: string;
|
|
18
|
+
readonly groupSummaryOther: string;
|
|
19
|
+
readonly helpText: string;
|
|
20
|
+
readonly helpTextTable: string;
|
|
21
|
+
readonly laterLabel: string;
|
|
22
|
+
readonly legendLabel: string;
|
|
23
|
+
readonly legendRemaining: string;
|
|
24
|
+
readonly loadingText: string;
|
|
25
|
+
readonly milestoneBarLabel: string;
|
|
26
|
+
readonly milestoneLabel: string;
|
|
27
|
+
readonly monthLabel: string;
|
|
28
|
+
readonly retryLabel: string;
|
|
29
|
+
readonly scaleLabel: string;
|
|
30
|
+
readonly statusAtRisk: string;
|
|
31
|
+
readonly statusDone: string;
|
|
32
|
+
readonly statusInProgress: string;
|
|
33
|
+
readonly statusNotStarted: string;
|
|
34
|
+
readonly summaryMilestonesOne: string;
|
|
35
|
+
readonly summaryMilestonesOther: string;
|
|
36
|
+
readonly summaryRange: string;
|
|
37
|
+
readonly summaryTasksOne: string;
|
|
38
|
+
readonly summaryTasksOther: string;
|
|
39
|
+
readonly tableEnd: string;
|
|
40
|
+
readonly tableName: string;
|
|
41
|
+
readonly tableStart: string;
|
|
42
|
+
readonly tableStatus: string;
|
|
43
|
+
readonly todayLabel: string;
|
|
44
|
+
readonly unfoldLabel: string;
|
|
45
|
+
readonly weekLabel: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const GANTT_TEXT: GanttText;
|