@webority/ui-elements 0.179.0 → 0.180.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 +10 -0
- package/THIRD-PARTY-NOTICES.txt +3 -3
- package/dist/WuiCalendarViews-Dg9yRY1I.js +1 -0
- package/dist/{WuiCommandPalette-u1XD5WMv.js → WuiCommandPalette-CpmlKjzH.js} +2 -2
- package/dist/{WuiCommentThread-e5t7HceL.js → WuiCommentThread-Cp7AVHvt.js} +1 -1
- package/dist/WuiDashboardGrid-DFpX8Vx0.js +1 -0
- package/dist/WuiDataTable-CSgcwxU5.js +1 -0
- package/dist/WuiDatePicker-CRqjwyf2.js +1 -0
- package/dist/WuiDateRange-BBm_Q69p.js +1 -0
- package/dist/WuiEntryGrid-Z69-1YBh.js +3 -0
- package/dist/WuiGantt-DvmVKJX2.js +1 -0
- package/dist/WuiInlineEdit-JT83k3Nk.js +1 -0
- package/dist/WuiMentionInput-DPCCSQRZ.js +1 -0
- package/dist/WuiMiniCalendar-BhUTIGwe.js +1 -0
- package/dist/WuiNotificationCenter-D5bBM8Lp.js +1 -0
- package/dist/WuiOfflineBanner-DGTFCtyM.js +1 -0
- package/dist/{WuiPhone--w-taM5Q.js → WuiPhone-B5ZLabTY.js} +1 -1
- package/dist/{WuiSavedViews-BR6ZHd9Y.js → WuiSavedViews-CH7IvwgZ.js} +1 -1
- package/dist/WuiSelect-DIW_WXH7.js +1 -0
- package/dist/WuiTimePicker-BKFPf8Fn.js +1 -0
- package/dist/{WuiTree-BjtuCasB.js → WuiTree-Db83Uztv.js} +1 -1
- package/dist/WuiWizardStep-BBkw94dD.js +1 -0
- package/dist/{chips-BdpsN50B.js → chips-paLEDoxn.js} +1 -1
- package/dist/commandPalette.g-DP-Zl8SU.js +1 -0
- package/dist/dashboardGrid.g-vkCZGw6G.js +1 -0
- package/dist/{dataTable-VB3nBucm.js → dataTable-C0q14bkP.js} +1 -1
- package/dist/{dataTable.g-DazoWWps.js → dataTable.g-1PsmN1Nj.js} +1 -1
- package/dist/drawerDiscard-D_LMpaFv.js +1 -0
- package/dist/elements/calendar-views.js +1 -0
- package/dist/elements/command-palette.js +1 -1
- package/dist/elements/comment-thread.js +1 -1
- package/dist/elements/dashboard-grid.js +1 -0
- 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/entry-grid.js +1 -1
- package/dist/elements/gantt.js +1 -1
- package/dist/elements/inline-edit.js +1 -1
- package/dist/elements/kanban.js +1 -1
- package/dist/elements/mention-input.js +1 -1
- package/dist/elements/mini-calendar.js +1 -0
- package/dist/elements/notification-center.js +1 -1
- package/dist/elements/offline-banner.js +1 -0
- package/dist/elements/phone.js +1 -1
- package/dist/elements/saved-views.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tree.js +1 -1
- package/dist/elements/wizard.js +1 -1
- package/dist/gantt.g-CWvMXwBR.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/initials-DKg3IeUa.js +1 -0
- package/dist/inlineEdit.g-DKIhYoPF.js +1 -0
- package/dist/{kanban-jQCTLG3Q.js → kanban-Dayig7ic.js} +1 -1
- package/dist/loader-DUCcKxjq.js +1 -0
- package/dist/{notificationCentre.g-UsAurkUz.js → notificationCentre.g-Cees-vKg.js} +1 -1
- package/dist/{notificationDays-wMr8rZko.js → notificationDays-B1R0RFAY.js} +1 -1
- package/dist/refreshAfter-DhYgWXmQ.js +1 -0
- package/dist/{search-Dl07KqWw.js → search-C46tnoPd.js} +1 -1
- package/dist/server.js +1 -1
- package/dist/shell.g-BhC11Oe3.js +1 -0
- package/dist/tableSelect-juA3KcQh.js +1 -0
- package/dist/tableSelect.g-DwI5_9Nw.js +1 -0
- package/dist/testing.js +1 -0
- package/dist/text/en.json +119 -10
- package/dist/text.js +1 -1
- package/dist/themeTransition-C5nAlClG.js +1 -0
- package/dist/toast.g-CJ8c0BNZ.js +1 -0
- package/dist/ui-calendar.global.js +1 -1
- package/dist/ui-calendar.js +1 -1
- package/dist/ui-chart.global.js +15 -15
- package/dist/ui-chart.js +2 -2
- package/dist/ui-elements/calendar-views.global.js +1 -0
- 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 +2 -2
- 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/dashboard-grid.global.js +1 -0
- package/dist/ui-elements/data-table.global.js +1 -1
- package/dist/ui-elements/date-range.global.js +1 -1
- package/dist/ui-elements/date-time.global.js +1 -1
- package/dist/ui-elements/datepicker.global.js +1 -1
- package/dist/ui-elements/dock.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 -1
- package/dist/ui-elements/glyphs.global.js +1 -1
- package/dist/ui-elements/hover-card.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/mini-calendar.global.js +1 -0
- package/dist/ui-elements/navigation-menu.global.js +1 -1
- package/dist/ui-elements/notification-center.global.js +1 -1
- package/dist/ui-elements/offline-banner.global.js +1 -0
- package/dist/ui-elements/onboarding-checklist.global.js +1 -1
- package/dist/ui-elements/org-tree.global.js +1 -1
- package/dist/ui-elements/otp.global.js +1 -1
- package/dist/ui-elements/overflow.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/rating.global.js +1 -1
- package/dist/ui-elements/record-pager.global.js +1 -1
- package/dist/ui-elements/relative-time.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 -1
- package/dist/ui-elements/server.global.js +1 -0
- package/dist/ui-elements/shell.global.js +1 -0
- package/dist/ui-elements/shortcuts.global.js +1 -1
- package/dist/ui-elements/show-more.global.js +1 -1
- 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/table-export.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 -1
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/truncate.global.js +1 -1
- package/dist/ui-elements/whats-new.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +1 -1
- 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/wizard.g-UKG1dMs_.js +1 -0
- package/dist/wuiHttp-8CYWEbRz.js +1 -0
- package/package.json +25 -5
- package/types/WuiCalendar.d.ts +9 -1
- package/types/WuiCalendarViews.d.ts +34 -0
- package/types/WuiDashboardGrid.d.ts +35 -0
- package/types/WuiDataTable.d.ts +1 -0
- package/types/WuiEntryGrid.d.ts +4 -0
- package/types/WuiFileViewer.d.ts +7 -0
- package/types/WuiGantt.d.ts +6 -1
- package/types/WuiInlineEdit.d.ts +2 -1
- package/types/WuiMiniCalendar.d.ts +27 -0
- package/types/WuiNotificationCenter.d.ts +1 -0
- package/types/WuiOfflineBanner.d.ts +35 -0
- package/types/WuiSelect.d.ts +1 -0
- package/types/WuiTimePicker.d.ts +1 -0
- package/types/WuiWizard.d.ts +13 -0
- package/types/calendarAdapter.d.ts +9 -0
- package/types/calendarModel.d.ts +11 -0
- package/types/chartSpec.d.ts +3 -0
- package/types/dataTable.d.ts +10 -1
- package/types/elements/calendar-views.d.ts +2 -0
- package/types/elements/dashboard-grid.d.ts +1 -0
- package/types/elements/mini-calendar.d.ts +2 -0
- package/types/elements/offline-banner.d.ts +2 -0
- package/types/ganttLayout.d.ts +41 -7
- package/types/ganttTypes.d.ts +15 -0
- package/types/global/chunkChecks.d.ts +1 -0
- package/types/global/chunks.d.ts +4 -0
- package/types/global/core.d.ts +3 -2
- package/types/global/glyphs.d.ts +2 -0
- package/types/global/loader.d.ts +9 -2
- package/types/global/parts/server.d.ts +1 -0
- package/types/global/parts/shell.d.ts +1 -0
- package/types/global/server.d.ts +18 -0
- package/types/global/serverGuard.d.ts +2 -0
- package/types/global/shared.d.ts +22 -0
- package/types/global/tableExport.d.ts +2 -0
- package/types/globals.d.ts +8 -0
- package/types/helpers.d.ts +2 -1
- package/types/index.d.ts +5 -1
- package/types/razor-js/modules/api.d.ts +10 -5
- package/types/razor-js/modules/serverBridge.d.ts +1 -0
- package/types/razor-js/modules/stickyStack.d.ts +1 -0
- package/types/razor-js/webority-ui.d.ts +4 -1
- package/types/select/list.d.ts +2 -0
- package/types/server/behaviours.d.ts +6 -0
- package/types/server/core.d.ts +10 -0
- package/types/server/flash.d.ts +16 -0
- package/types/server/flashToasts.d.ts +2 -0
- package/types/server/index.d.ts +2 -10
- package/types/server/postError.d.ts +17 -0
- package/types/server/refreshAfter.d.ts +45 -0
- package/types/server/regions.d.ts +5 -0
- package/types/server/serverActions.d.ts +18 -10
- package/types/server/serverMessage.d.ts +5 -0
- package/types/server/serverTable.d.ts +0 -2
- package/types/server/serverTableRegistry.d.ts +7 -0
- package/types/server/shellParts.d.ts +1 -3
- package/types/server/shellRegistry.d.ts +7 -0
- package/types/server/toastAction.d.ts +7 -3
- package/types/server/wuiHost.d.ts +1 -0
- package/types/server/wuiHttp.d.ts +9 -2
- package/types/stickyStack.d.ts +6 -0
- package/types/tableSelect.d.ts +10 -0
- package/types/testing.d.ts +4 -0
- package/types/text/web/agenda.g.d.ts +7 -0
- package/types/text/web/asyncBlock.g.d.ts +3 -0
- package/types/text/web/calendar.g.d.ts +2 -0
- package/types/text/web/catalogue.g.d.ts +20 -0
- package/types/text/web/changeList.g.d.ts +5 -0
- package/types/text/web/chart.g.d.ts +1 -0
- package/types/text/web/commandPalette.g.d.ts +1 -0
- package/types/text/web/dashboardGrid.g.d.ts +18 -0
- package/types/text/web/dashboardHeader.g.d.ts +6 -0
- package/types/text/web/dataTable.g.d.ts +4 -0
- package/types/text/web/entryGrid.g.d.ts +2 -0
- package/types/text/web/formActions.g.d.ts +9 -0
- package/types/text/web/gantt.g.d.ts +2 -0
- package/types/text/web/index.g.d.ts +10 -0
- package/types/text/web/kpiTile.g.d.ts +1 -0
- package/types/text/web/miniCalendar.g.d.ts +4 -0
- package/types/text/web/notificationCentre.g.d.ts +4 -0
- package/types/text/web/offlineBanner.g.d.ts +8 -0
- package/types/text/web/queueBundle.g.d.ts +11 -0
- package/types/text/web/resultBlock.g.d.ts +6 -0
- package/types/text/web/routeError.g.d.ts +14 -0
- package/types/text/web/settingRow.g.d.ts +10 -0
- package/types/text/web/shell.g.d.ts +0 -7
- package/types/text/web/tableSelect.g.d.ts +1 -0
- package/types/text/web/unsavedChanges.g.d.ts +1 -0
- package/types/text/web/wizard.g.d.ts +6 -0
- package/types/toastTypes.d.ts +1 -1
- package/dist/WuiDataTable-Ble3hl5L.js +0 -1
- package/dist/WuiDatePicker-3D33rzH4.js +0 -1
- package/dist/WuiDateRange-BnEJ2WpL.js +0 -1
- package/dist/WuiEntryGrid-DkW0tIDy.js +0 -3
- package/dist/WuiGantt-BqNhYIr6.js +0 -1
- package/dist/WuiInlineEdit-D7AuEv1R.js +0 -1
- package/dist/WuiMentionInput-DPpEVL2s.js +0 -1
- package/dist/WuiNotificationCenter-DuvGrqwr.js +0 -1
- package/dist/WuiSelect-CNff3FNi.js +0 -1
- package/dist/WuiTimePicker-DYLFaWDc.js +0 -1
- package/dist/WuiWizardStep-gFtuUzsL.js +0 -1
- package/dist/commandPalette.g-DFWnCufa.js +0 -1
- package/dist/drawerDiscard-APy8TZxi.js +0 -1
- package/dist/gantt.g-TdTxeruW.js +0 -1
- package/dist/initials-Qb6ITcri.js +0 -1
- package/dist/inlineEdit.g-DLDVospu.js +0 -1
- package/dist/loader-A38-PdcB.js +0 -1
- package/dist/shell.g-C2Ht5xl2.js +0 -1
- package/dist/tableSelect.g-Bmd-ExRE.js +0 -1
- package/dist/themeTransition-TF0BqM20.js +0 -1
- package/dist/wizard.g-DOZSBUc5.js +0 -1
- package/dist/wuiHttp-Cw7V8u2w.js +0 -1
package/types/WuiTimePicker.d.ts
CHANGED
package/types/WuiWizard.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ export declare class WuiWizard extends ElementBase {
|
|
|
24
24
|
_observer: MutationObserver | null;
|
|
25
25
|
_glyphs: Element | null;
|
|
26
26
|
_glyphObserver: MutationObserver | null;
|
|
27
|
+
_statusSlot: HTMLElement | null;
|
|
28
|
+
_extraSlot: HTMLElement | null;
|
|
29
|
+
_leave: HTMLDialogElement | null;
|
|
30
|
+
_releaseLeave: (() => void) | null;
|
|
31
|
+
_leaveWaiters: ((left: boolean) => void)[];
|
|
27
32
|
static get observedAttributes(): string[];
|
|
28
33
|
constructor();
|
|
29
34
|
get active(): number;
|
|
@@ -47,6 +52,14 @@ export declare class WuiWizard extends ElementBase {
|
|
|
47
52
|
/** The attribute and value naming the chrome control that holds focus, so a redraw can hand focus back. */
|
|
48
53
|
_focusedControl(): FocusKey | null;
|
|
49
54
|
_restoreFocus(focused: FocusKey | null): void;
|
|
55
|
+
_syncSlots(): void;
|
|
56
|
+
_slot(kind: "status" | "extra", current: HTMLElement | null, className: string): HTMLElement | null;
|
|
57
|
+
requestLeave(): Promise<boolean>;
|
|
58
|
+
_settleLeave(left: boolean): void;
|
|
59
|
+
_leaveDialog(): HTMLDialogElement;
|
|
60
|
+
_openLeave(): void;
|
|
61
|
+
_closeLeave(): void;
|
|
62
|
+
_onLeaveClick(e: Event): void;
|
|
50
63
|
_syncTopBar(steps: HTMLElement[]): void;
|
|
51
64
|
_clampActive(steps: HTMLElement[]): void;
|
|
52
65
|
/**
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type normalizeEvents } from "./calendarModel.ts";
|
|
2
2
|
export type ViewName = "month" | "week" | "day" | "list";
|
|
3
3
|
export type NormalizedEvent = ReturnType<typeof normalizeEvents>[number];
|
|
4
|
+
export interface CalendarMarker {
|
|
5
|
+
date: string;
|
|
6
|
+
tone: "neutral" | "warning";
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
4
9
|
export interface RangeState {
|
|
5
10
|
view: ViewName;
|
|
6
11
|
title: string;
|
|
@@ -28,6 +33,8 @@ export interface MountOptions {
|
|
|
28
33
|
}) => void;
|
|
29
34
|
onRange: (state: RangeState) => void;
|
|
30
35
|
onLoading: (loading: boolean) => void;
|
|
36
|
+
markers?: CalendarMarker[];
|
|
37
|
+
selectedDate?: string | undefined;
|
|
31
38
|
}
|
|
32
39
|
export interface CalendarEngine {
|
|
33
40
|
setView(view: ViewName): void;
|
|
@@ -44,6 +51,8 @@ export interface CalendarEngine {
|
|
|
44
51
|
setCursor(day: string | undefined): boolean;
|
|
45
52
|
labelDays(label: (day: string) => string, fallback: string): void;
|
|
46
53
|
focusDay(day: string): boolean;
|
|
54
|
+
setMarkers(markers: CalendarMarker[]): void;
|
|
55
|
+
setSelected(day: string | null): void;
|
|
47
56
|
dispose(): void;
|
|
48
57
|
}
|
|
49
58
|
export declare const isViewName: (value: string | undefined) => value is ViewName;
|
package/types/calendarModel.d.ts
CHANGED
|
@@ -11,6 +11,17 @@ export declare const NARROW_PX = 576;
|
|
|
11
11
|
export declare function toWallClock(value: unknown, timeZone?: string): string | null;
|
|
12
12
|
/** Whether `value` is a real `YYYY-MM-DD` day. */
|
|
13
13
|
export declare const isIsoDate: (value: unknown) => boolean;
|
|
14
|
+
/** Whether `value` is a real `YYYY-MM` month. */
|
|
15
|
+
export declare const isMonth: (value: unknown) => value is string;
|
|
16
|
+
/** The `YYYY-MM` month of a `YYYY-MM-DD` day. */
|
|
17
|
+
export declare const monthOfDay: (day: string) => string;
|
|
18
|
+
/** The month the query parameter `name` of `href` holds, or null when it is absent or not a real `YYYY-MM` month. */
|
|
19
|
+
export declare function monthFromAddress(href: string, name: string): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* `href` with the query parameter `name` set to `month`, as a path with its query and hash (same origin). Every other
|
|
22
|
+
* parameter and the hash stay; the other parameters are re-encoded in the standard form-encoded way.
|
|
23
|
+
*/
|
|
24
|
+
export declare function addressWithMonth(href: string, name: string, month: string): string;
|
|
14
25
|
/** The day `days` after `iso` (before, when negative). */
|
|
15
26
|
export declare const addDays: (iso: string, days: number) => string;
|
|
16
27
|
/** The same day-of-month `months` later, held to the last day of a shorter month. */
|
package/types/chartSpec.d.ts
CHANGED
|
@@ -110,6 +110,8 @@ export type ChartSpec = {
|
|
|
110
110
|
trend?: boolean;
|
|
111
111
|
/** Print each value on its bar or point. Line, column and bar only; ignored on a stacked chart. Default on for a line, off otherwise. */
|
|
112
112
|
valueLabels?: boolean;
|
|
113
|
+
/** The last period is not finished: a column or bar draws it lighter, a line or area draws its last segment dashed, and its tooltip says so far. Line, area, column and bar only; a stacked line or area ignores it. */
|
|
114
|
+
incompleteLast?: boolean;
|
|
113
115
|
/** A zoom slider under a line or area. Default: on above 5,000 rows. */
|
|
114
116
|
zoom?: boolean;
|
|
115
117
|
/** A gauge's named stretches, each up to a value. */
|
|
@@ -182,6 +184,7 @@ export type NormalizedSpec = {
|
|
|
182
184
|
centerLabel: string;
|
|
183
185
|
sliceValues: boolean;
|
|
184
186
|
valueLabels: boolean;
|
|
187
|
+
incompleteLast: boolean;
|
|
185
188
|
height: number;
|
|
186
189
|
state: ChartState;
|
|
187
190
|
emptyText: string;
|
package/types/dataTable.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare function playRowMoves(rows: Iterable<HTMLTableRowElement>, before
|
|
|
113
113
|
* @param after
|
|
114
114
|
*/
|
|
115
115
|
export declare function rowOrderChanged(before: readonly unknown[] | null, after: readonly unknown[] | null): boolean;
|
|
116
|
-
/** The save states a row shows: `saving` while its add or change is on the way, `error` once it failed. */
|
|
116
|
+
/** The save states a row shows: `saving` while its add or change is on the way, `saved` once it landed, `error` once it failed. */
|
|
117
117
|
export declare const ROW_SAVE_STATES: string[];
|
|
118
118
|
type RowSave = {
|
|
119
119
|
state: string | null;
|
|
@@ -124,10 +124,19 @@ type RowSave = {
|
|
|
124
124
|
export declare const ROW_SAVE_ATTR = "data-wui-save-state";
|
|
125
125
|
/** The line under a failed row's identity cell that says why. */
|
|
126
126
|
export declare const ROW_SAVE_ERROR_CLASS = "wui-row-save-error";
|
|
127
|
+
/** The status a row's save shows in its identity cell on a table with save labels. */
|
|
128
|
+
export declare const ROW_STATUS_CLASS = "wui-row-status";
|
|
127
129
|
/** A row's identity cell: its `.wui-name-cell`, else its first cell after the select and expand cells. */
|
|
128
130
|
export declare const identityCell: (row: HTMLTableRowElement) => HTMLTableCellElement | null;
|
|
129
131
|
/** What a row is called in an announcement: its `.u-name`, else its identity cell's text, without an error line. */
|
|
130
132
|
export declare function rowLabel(row: HTMLTableRowElement): string;
|
|
133
|
+
/**
|
|
134
|
+
* Draws a row's save status in its identity cell, and hides its actions while it saves, on a table that shows
|
|
135
|
+
* save labels. A null state clears the status.
|
|
136
|
+
* @param row
|
|
137
|
+
* @param state
|
|
138
|
+
*/
|
|
139
|
+
export declare function paintSaveStatus(row: HTMLTableRowElement, state: string | null): void;
|
|
131
140
|
/**
|
|
132
141
|
* Shows a row's save state the way React AppDataTable renders it: `saving` sets aria-busy, `error` puts
|
|
133
142
|
* `message` on a line under the identity cell, and null clears both.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../WuiDashboardGrid.ts";
|
package/types/ganttLayout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GanttLayout, GanttRow, GanttSpec, GanttZoom } from "./ganttTypes.ts";
|
|
1
|
+
import type { GanttHalf, GanttLayout, GanttRow, GanttSpec, GanttTone, GanttWeeks, GanttZoom } from "./ganttTypes.ts";
|
|
2
2
|
export declare const DAY_MS = 86400000;
|
|
3
3
|
export declare const GEOMETRY: Readonly<{
|
|
4
4
|
groupBarH: 6;
|
|
@@ -19,6 +19,8 @@ export interface LayoutGeometry {
|
|
|
19
19
|
export declare const LAYOUT_GEOMETRY: Readonly<Record<GanttLayout, LayoutGeometry>>;
|
|
20
20
|
export declare class GanttError extends Error {
|
|
21
21
|
}
|
|
22
|
+
/** The days of a holiday list as UTC midnights; the list is checked by validateGantt first. */
|
|
23
|
+
export declare function holidayDays(list: readonly string[] | undefined): ReadonlySet<number>;
|
|
22
24
|
/** UTC milliseconds of the calendar day `iso` ("YYYY-MM-DD"); throws GanttError for anything else. */
|
|
23
25
|
export declare function parseDay(iso: string): number;
|
|
24
26
|
/** "DD-MMM-YYYY" with the English month abbreviations: the house display format. */
|
|
@@ -31,7 +33,11 @@ export declare function windowFor(zoom: GanttZoom, todayMs: number): number;
|
|
|
31
33
|
/** Moves a day onto the zoom's grid: a week starts on Monday, a month on its first day. */
|
|
32
34
|
export declare function snap(zoom: GanttZoom, fromMs: number): number;
|
|
33
35
|
/** 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;
|
|
36
|
+
export declare function shiftWindow(zoom: GanttZoom, fromMs: number, dir: -1 | 1, weeks?: GanttWeeks): number;
|
|
37
|
+
export interface AxisOptions {
|
|
38
|
+
weeks?: GanttWeeks | undefined;
|
|
39
|
+
holidays?: ReadonlySet<number> | undefined;
|
|
40
|
+
}
|
|
35
41
|
export interface AxisCell {
|
|
36
42
|
x: number;
|
|
37
43
|
w: number;
|
|
@@ -51,15 +57,28 @@ export interface Axis {
|
|
|
51
57
|
gridX: number[];
|
|
52
58
|
weekendX: number[];
|
|
53
59
|
}
|
|
54
|
-
export declare function buildAxis(mode: GanttLayout, zoom: GanttZoom, fromMs: number): Axis;
|
|
60
|
+
export declare function buildAxis(mode: GanttLayout, zoom: GanttZoom, fromMs: number, opts?: AxisOptions): Axis;
|
|
55
61
|
/** 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;
|
|
62
|
+
export declare function validateGantt(spec: Pick<GanttSpec, "rows" | "zoom" | "layout" | "weeks" | "holidays">): void;
|
|
57
63
|
export type LabelPlace = "inside" | "after";
|
|
58
64
|
/** A bar label sits inside the bar when its estimated width fits, else after the bar. */
|
|
59
65
|
export declare function labelPlace(name: string, percent: number, barWidth: number): LabelPlace;
|
|
66
|
+
export interface PlacedBar {
|
|
67
|
+
index: number;
|
|
68
|
+
label: string;
|
|
69
|
+
tone: GanttTone;
|
|
70
|
+
half: GanttHalf | undefined;
|
|
71
|
+
top: number;
|
|
72
|
+
height: number;
|
|
73
|
+
x: number;
|
|
74
|
+
w: number;
|
|
75
|
+
clippedLeft: boolean;
|
|
76
|
+
clippedRight: boolean;
|
|
77
|
+
hidden: boolean;
|
|
78
|
+
}
|
|
60
79
|
export interface PlacedRow {
|
|
61
80
|
row: GanttRow;
|
|
62
|
-
kind: "group" | "bar" | "milestone";
|
|
81
|
+
kind: "group" | "bar" | "milestone" | "lane";
|
|
63
82
|
index: number;
|
|
64
83
|
top: number;
|
|
65
84
|
height: number;
|
|
@@ -78,6 +97,17 @@ export interface PlacedRow {
|
|
|
78
97
|
startMs: number;
|
|
79
98
|
endMs: number;
|
|
80
99
|
};
|
|
100
|
+
bars?: PlacedBar[];
|
|
101
|
+
clashes?: {
|
|
102
|
+
x: number;
|
|
103
|
+
w: number;
|
|
104
|
+
}[];
|
|
105
|
+
subs?: number;
|
|
106
|
+
}
|
|
107
|
+
export interface CountRow {
|
|
108
|
+
top: number;
|
|
109
|
+
height: number;
|
|
110
|
+
counts: number[];
|
|
81
111
|
}
|
|
82
112
|
export interface Arrow {
|
|
83
113
|
fromKey: string;
|
|
@@ -96,6 +126,7 @@ export interface Layout {
|
|
|
96
126
|
inWindow: boolean;
|
|
97
127
|
};
|
|
98
128
|
arrows: Arrow[];
|
|
129
|
+
count: CountRow | null;
|
|
99
130
|
}
|
|
100
131
|
/** Finish-to-start route from a's right edge to b's left edge; both ends at height y. */
|
|
101
132
|
export declare function routeArrow(a: {
|
|
@@ -108,9 +139,12 @@ export declare function routeArrow(a: {
|
|
|
108
139
|
d: string;
|
|
109
140
|
head: string;
|
|
110
141
|
};
|
|
111
|
-
export
|
|
142
|
+
export interface LayoutResolved {
|
|
112
143
|
layout: GanttLayout;
|
|
113
144
|
zoom: GanttZoom;
|
|
114
145
|
fromMs: number;
|
|
115
146
|
todayMs: number;
|
|
116
|
-
|
|
147
|
+
weeks?: GanttWeeks | undefined;
|
|
148
|
+
holidays?: ReadonlySet<number> | undefined;
|
|
149
|
+
}
|
|
150
|
+
export declare function layout(spec: GanttSpec, resolved: LayoutResolved): Layout;
|
package/types/ganttTypes.d.ts
CHANGED
|
@@ -2,6 +2,16 @@ export type GanttZoom = "day" | "week" | "month";
|
|
|
2
2
|
export type GanttStatus = "done" | "inProgress" | "atRisk" | "notStarted";
|
|
3
3
|
export type GanttState = "ready" | "loading" | "empty" | "error";
|
|
4
4
|
export type GanttLayout = "table" | "lanes";
|
|
5
|
+
export type GanttTone = "neutral" | "warning";
|
|
6
|
+
export type GanttHalf = "start" | "end";
|
|
7
|
+
export type GanttWeeks = 1 | 2;
|
|
8
|
+
export interface GanttBar {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
label: string;
|
|
12
|
+
tone: GanttTone;
|
|
13
|
+
half?: GanttHalf | undefined;
|
|
14
|
+
}
|
|
5
15
|
export interface GanttRow {
|
|
6
16
|
key: string;
|
|
7
17
|
name: string;
|
|
@@ -12,6 +22,7 @@ export interface GanttRow {
|
|
|
12
22
|
owner?: string | undefined;
|
|
13
23
|
dependsOn?: string[] | undefined;
|
|
14
24
|
group?: string | undefined;
|
|
25
|
+
bars?: GanttBar[] | undefined;
|
|
15
26
|
}
|
|
16
27
|
export interface GanttSpec {
|
|
17
28
|
title: string;
|
|
@@ -28,6 +39,10 @@ export interface GanttSpec {
|
|
|
28
39
|
loadingText?: string | undefined;
|
|
29
40
|
addTask?: boolean | undefined;
|
|
30
41
|
controlled?: boolean | undefined;
|
|
42
|
+
holidays?: string[] | undefined;
|
|
43
|
+
weeks?: GanttWeeks | undefined;
|
|
44
|
+
countLabel?: string | undefined;
|
|
45
|
+
clashLabel?: string | undefined;
|
|
31
46
|
}
|
|
32
47
|
export interface GanttZoomChangeDetail {
|
|
33
48
|
zoom: GanttZoom;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerChunkChecks(): void;
|
package/types/global/chunks.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ export interface GlobalChunk {
|
|
|
4
4
|
file?: string;
|
|
5
5
|
tags: readonly (keyof WuiElementTagMap)[];
|
|
6
6
|
selfContained?: boolean;
|
|
7
|
+
/** A selector; the chunk loads the first time an element matching it reaches the page. */
|
|
8
|
+
markers?: string;
|
|
7
9
|
}
|
|
10
|
+
export declare const SERVER_MARKERS: Readonly<Record<string, string>>;
|
|
11
|
+
export declare const SHELL_MARKER = "[data-app-shell]";
|
|
8
12
|
export declare const GLOBAL_CHUNKS: Readonly<Record<string, GlobalChunk>>;
|
|
9
13
|
export declare const SHARED_MODULE_FILES: Readonly<Record<string, string>>;
|
|
10
14
|
export declare const CHUNK_DIR = "ui-elements/";
|
package/types/global/core.d.ts
CHANGED
|
@@ -26,14 +26,15 @@ export { buildPasswordRules, DEFAULT_PASSWORD_RULES, evaluatePassword, passwordS
|
|
|
26
26
|
export { formatRelativeTime, relativeTimeTitle } from "../relativeTime.ts";
|
|
27
27
|
export { attachRowDrag, DROP_OVER_CLASS, initRowDrag, ROW_DRAG_TYPE, ROW_DROP_EVENT, syncTargets, tickedKeys } from "../rowDrop.ts";
|
|
28
28
|
export { attachScrollEdges, initScrollEdges, SCROLL_EDGE_SELECTOR } from "../scrollEdges.ts";
|
|
29
|
-
export * from "../server/
|
|
29
|
+
export * from "../server/core.ts";
|
|
30
30
|
export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, moveFocus, runShortcut, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUTS_OFF_ATTRIBUTE, shortcutKey, shortcutName, shortcutsOff, } from "../shortcutKeys.ts";
|
|
31
31
|
export { deriveStepStatus, stepperHeaderItems } from "../stepperHeader.ts";
|
|
32
32
|
export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "../submitOnce.ts";
|
|
33
|
-
export { addRowSelectCells, addSelectColumn, attachShiftRange, createSelectHeaderCell, createSelectRowCell, createSelectSpacerCell, SELECT_CELL_CLASS, syncSelectAll, } from "../tableSelect.ts";
|
|
33
|
+
export { addRowSelectCells, addSelectColumn, attachShiftRange, createGroupSelectCell, createSelectHeaderCell, createSelectRowCell, createSelectSpacerCell, GROUP_SELECT_CLASS, groupRowsOf, SELECT_CELL_CLASS, syncGroupSelect, syncSelectAll, } from "../tableSelect.ts";
|
|
34
34
|
export { fillText, pluralText, readText, setText } from "../text/textStore.ts";
|
|
35
35
|
export { matchSegments } from "../textMatch.ts";
|
|
36
36
|
export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme, readStoredTheme, resolveTheme, storeTheme, THEME_BOOT_SCRIPT_BODY, THEME_CHANGE_EVENT, THEME_EFFECT_DURATION, THEME_EFFECTS, THEME_MODES, THEME_SWITCHING_CLASS, themeBootScript, themeKeyframes, transitionTheme, watchSystemTheme, } from "../themeTransition.ts";
|
|
37
37
|
export { isTimeZone, todayIn, wallClockOf, zoneOffsetMs, zoneParts } from "../zone.ts";
|
|
38
38
|
export { glyphNode } from "./glyphs.ts";
|
|
39
|
+
export { loadedServer, loadedShell, loadServer, loadShell, type ServerModules, type ShellModules } from "./server.ts";
|
|
39
40
|
export { WuiSelect, whenElementsReady };
|
package/types/global/glyphs.d.ts
CHANGED
|
@@ -7,5 +7,7 @@ export declare function glyphNode(name: string, { size, className }?: {
|
|
|
7
7
|
size?: number;
|
|
8
8
|
className?: string;
|
|
9
9
|
}): SVGSVGElement | null;
|
|
10
|
+
/** True once registerGlyphs has run with the lazy glyphs, so the glyphs chunk has handed them over. */
|
|
11
|
+
export declare function lazyGlyphsRegistered(): boolean;
|
|
10
12
|
/** Adds the glyphs the chunk carries and fills every glyph written before they arrived. */
|
|
11
13
|
export declare function registerGlyphs(glyphs: Readonly<Record<string, readonly SvgNode[]>>): void;
|
package/types/global/loader.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ELEMENTS_DEFINED_EVENT = "wui-elements:defined";
|
|
|
4
4
|
export declare const ELEMENTS_LOAD_ERROR_EVENT = "wui-elements:load-error";
|
|
5
5
|
/** Delay before the one retry of a failed chunk request; a second failure is final for the page. */
|
|
6
6
|
export declare const CHUNK_RETRY_MS = 1000;
|
|
7
|
-
/** Starts watching the page for on-demand tags; idempotent. core.js calls it once while it runs. */
|
|
7
|
+
/** Starts watching the page for on-demand tags or markers; idempotent. core.js calls it once while it runs. */
|
|
8
8
|
export declare function startElementLoader(coreScript?: Pick<HTMLScriptElement, "src" | "nonce"> | null): void;
|
|
9
9
|
/** Stops watching the page and forgets every chunk, so the loader can start again (tests start one per case). */
|
|
10
10
|
export declare function stopElementLoader(): void;
|
|
@@ -12,5 +12,12 @@ export declare function stopElementLoader(): void;
|
|
|
12
12
|
export declare function whenElementsReady(root?: Document | Element): Promise<void>;
|
|
13
13
|
/** A file beside the core script (ui-phone.global.js, ui-elements/<key>.global.js), with its own ?v when known. */
|
|
14
14
|
export declare function assetUrl(file: string): string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Lets a chunk with no tags prove it ran: check() must be true before the chunk counts as loaded. A chunk with no
|
|
17
|
+
* tags proves it ran only through this check, so every tag-less part chunk must register one.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registerChunkReadyCheck(key: string, check: () => boolean): void;
|
|
20
|
+
/** The keys of every chunk that registered a ready check; the tests use it to find a tag-less part without one. */
|
|
21
|
+
export declare function chunkReadyCheckKeys(): string[];
|
|
22
|
+
/** Loads one chunk by key; resolves once its file has run and its tags, if any, are defined. */
|
|
16
23
|
export declare function loadChunk(key: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Behaviours from "../server/behaviours.ts";
|
|
2
|
+
import type * as ShellParts from "../server/shellParts.ts";
|
|
3
|
+
export declare const SERVER_CHUNK = "server";
|
|
4
|
+
export declare const SHELL_CHUNK = "shell";
|
|
5
|
+
export type ServerModules = typeof Behaviours;
|
|
6
|
+
export type ShellModules = Pick<typeof ShellParts, "getShell" | "initShellParts">;
|
|
7
|
+
/** Resolves to the server behaviours once the server chunk has run; rejects when it fails to load. */
|
|
8
|
+
export declare function loadServer(): Promise<ServerModules>;
|
|
9
|
+
/** The server behaviours when their chunk has already run, else null. It never starts the load. */
|
|
10
|
+
export declare function loadedServer(): ServerModules | null;
|
|
11
|
+
/** Called once by the server chunk with the modules it carries. */
|
|
12
|
+
export declare function registerServer(server: ServerModules): void;
|
|
13
|
+
/** Resolves to the shell parts once the shell chunk has run; rejects when it fails to load. */
|
|
14
|
+
export declare function loadShell(): Promise<ShellModules>;
|
|
15
|
+
/** The shell parts when their chunk has already run, else null. It never starts the load. */
|
|
16
|
+
export declare function loadedShell(): ShellModules | null;
|
|
17
|
+
/** Called once by the shell chunk with the modules it carries. */
|
|
18
|
+
export declare function registerShellParts(shell: ShellModules): void;
|
package/types/global/shared.d.ts
CHANGED
|
@@ -27,13 +27,23 @@ import * as selectList from "../select/list.ts";
|
|
|
27
27
|
import * as partRegistry from "../select/partRegistry.ts";
|
|
28
28
|
import * as selectRemote from "../select/remote.ts";
|
|
29
29
|
import * as selectWindow from "../select/window.ts";
|
|
30
|
+
import * as flash from "../server/flash.ts";
|
|
31
|
+
import * as postError from "../server/postError.ts";
|
|
32
|
+
import * as refreshAfter from "../server/refreshAfter.ts";
|
|
33
|
+
import * as regions from "../server/regions.ts";
|
|
30
34
|
import * as serverHtml from "../server/serverHtml.ts";
|
|
35
|
+
import * as serverTableRegistry from "../server/serverTableRegistry.ts";
|
|
36
|
+
import * as shellRegistry from "../server/shellRegistry.ts";
|
|
37
|
+
import * as toastAction from "../server/toastAction.ts";
|
|
38
|
+
import * as toastHeader from "../server/toastHeader.ts";
|
|
39
|
+
import * as wuiHost from "../server/wuiHost.ts";
|
|
31
40
|
import * as wuiHttp from "../server/wuiHttp.ts";
|
|
32
41
|
import * as shortcutKeys from "../shortcutKeys.ts";
|
|
33
42
|
import * as stepperHeader from "../stepperHeader.ts";
|
|
34
43
|
import * as svgNodes from "../svgNodes.ts";
|
|
35
44
|
import * as tableSelect from "../tableSelect.ts";
|
|
36
45
|
import * as textStore from "../text/textStore.ts";
|
|
46
|
+
import * as dataTableText from "../text/web/dataTable.g.ts";
|
|
37
47
|
import * as datePickerText from "../text/web/datePicker.g.ts";
|
|
38
48
|
import * as drawerText from "../text/web/drawer.g.ts";
|
|
39
49
|
import * as httpFailureText from "../text/web/httpFailure.g.ts";
|
|
@@ -45,6 +55,7 @@ import * as WuiSelect from "../WuiSelect.ts";
|
|
|
45
55
|
import * as zone from "../zone.ts";
|
|
46
56
|
import * as glyphs from "./glyphs.ts";
|
|
47
57
|
import * as loader from "./loader.ts";
|
|
58
|
+
import * as server from "./server.ts";
|
|
48
59
|
import * as tableExport from "./tableExport.ts";
|
|
49
60
|
export interface SharedModules {
|
|
50
61
|
readonly anchorOverlay: typeof anchorOverlay;
|
|
@@ -53,6 +64,7 @@ export interface SharedModules {
|
|
|
53
64
|
readonly calendarMath: typeof calendarMath;
|
|
54
65
|
readonly copyText: typeof copyText;
|
|
55
66
|
readonly dataTable: typeof dataTable;
|
|
67
|
+
readonly dataTableText: typeof dataTableText;
|
|
56
68
|
readonly datePickerText: typeof datePickerText;
|
|
57
69
|
readonly defineElement: typeof defineElement;
|
|
58
70
|
readonly devWarn: typeof devWarn;
|
|
@@ -60,6 +72,7 @@ export interface SharedModules {
|
|
|
60
72
|
readonly drawerText: typeof drawerText;
|
|
61
73
|
readonly elementBase: typeof elementBase;
|
|
62
74
|
readonly fieldState: typeof fieldState;
|
|
75
|
+
readonly flash: typeof flash;
|
|
63
76
|
readonly formatters: typeof formatters;
|
|
64
77
|
readonly formMirror: typeof formMirror;
|
|
65
78
|
readonly glyphs: typeof glyphs;
|
|
@@ -77,13 +90,19 @@ export interface SharedModules {
|
|
|
77
90
|
readonly notificationDays: typeof notificationDays;
|
|
78
91
|
readonly optionLabel: typeof optionLabel;
|
|
79
92
|
readonly partRegistry: typeof partRegistry;
|
|
93
|
+
readonly postError: typeof postError;
|
|
94
|
+
readonly refreshAfter: typeof refreshAfter;
|
|
95
|
+
readonly regions: typeof regions;
|
|
80
96
|
readonly relativeTime: typeof relativeTime;
|
|
81
97
|
readonly rtl: typeof rtl;
|
|
82
98
|
readonly selectList: typeof selectList;
|
|
83
99
|
readonly selectRemote: typeof selectRemote;
|
|
84
100
|
readonly selectText: typeof selectText;
|
|
85
101
|
readonly selectWindow: typeof selectWindow;
|
|
102
|
+
readonly server: typeof server;
|
|
86
103
|
readonly serverHtml: typeof serverHtml;
|
|
104
|
+
readonly serverTableRegistry: typeof serverTableRegistry;
|
|
105
|
+
readonly shellRegistry: typeof shellRegistry;
|
|
87
106
|
readonly shortcutKeys: typeof shortcutKeys;
|
|
88
107
|
readonly stepperHeader: typeof stepperHeader;
|
|
89
108
|
readonly svgNodes: typeof svgNodes;
|
|
@@ -91,7 +110,10 @@ export interface SharedModules {
|
|
|
91
110
|
readonly tableSelect: typeof tableSelect;
|
|
92
111
|
readonly textMatch: typeof textMatch;
|
|
93
112
|
readonly textStore: typeof textStore;
|
|
113
|
+
readonly toastAction: typeof toastAction;
|
|
114
|
+
readonly toastHeader: typeof toastHeader;
|
|
94
115
|
readonly tooltips: typeof tooltips;
|
|
116
|
+
readonly wuiHost: typeof wuiHost;
|
|
95
117
|
readonly wuiHttp: typeof wuiHttp;
|
|
96
118
|
readonly WuiSelect: typeof WuiSelect;
|
|
97
119
|
readonly zone: typeof zone;
|
|
@@ -4,3 +4,5 @@ export declare const TABLE_EXPORT_CHUNK = "table-export";
|
|
|
4
4
|
export declare function loadTableExport(): Promise<TableExportWriters>;
|
|
5
5
|
/** Called once by the table-export chunk with the writers it carries. */
|
|
6
6
|
export declare function registerTableExport(writers: TableExportWriters): void;
|
|
7
|
+
/** True once the table-export chunk has handed over its writers. */
|
|
8
|
+
export declare function tableExportRegistered(): boolean;
|
package/types/globals.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { OverlayCloseReason } from "./nativeOverlay.ts";
|
|
|
4
4
|
import type { WuiStatusIcon } from "./statusIcons.ts";
|
|
5
5
|
import type { WuiTourStep } from "./tourGlobal.ts";
|
|
6
6
|
import type { WuiCalendar } from "./WuiCalendar.ts";
|
|
7
|
+
import type { WuiCalendarViews } from "./WuiCalendarViews.ts";
|
|
7
8
|
import type { WuiCarousel } from "./WuiCarousel.ts";
|
|
8
9
|
import type { WuiChart } from "./WuiChart.ts";
|
|
9
10
|
import type { WuiCodeBlock } from "./WuiCodeBlock.ts";
|
|
@@ -11,6 +12,7 @@ import type { WuiCommandPalette } from "./WuiCommandPalette.ts";
|
|
|
11
12
|
import type { WuiCommentThread } from "./WuiCommentThread.ts";
|
|
12
13
|
import type { WuiConsentBanner } from "./WuiConsentBanner.ts";
|
|
13
14
|
import type { WuiContextMenu } from "./WuiContextMenu.ts";
|
|
15
|
+
import type { WuiDashboardGrid } from "./WuiDashboardGrid.ts";
|
|
14
16
|
import type { WuiDataTable } from "./WuiDataTable.ts";
|
|
15
17
|
import type { WuiDatePicker } from "./WuiDatePicker.ts";
|
|
16
18
|
import type { WuiDateRange } from "./WuiDateRange.ts";
|
|
@@ -28,9 +30,11 @@ import type { WuiLeadPopup } from "./WuiLeadPopup.ts";
|
|
|
28
30
|
import type { WuiLightbox } from "./WuiLightbox.ts";
|
|
29
31
|
import type { WuiMarkdown } from "./WuiMarkdown.ts";
|
|
30
32
|
import type { WuiMentionInput } from "./WuiMentionInput.ts";
|
|
33
|
+
import type { WuiMiniCalendar } from "./WuiMiniCalendar.ts";
|
|
31
34
|
import type { WuiModal } from "./WuiModal.ts";
|
|
32
35
|
import type { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
|
|
33
36
|
import type { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
|
|
37
|
+
import type { WuiOfflineBanner } from "./WuiOfflineBanner.ts";
|
|
34
38
|
import type { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
|
|
35
39
|
import type { WuiOrgTree } from "./WuiOrgTree.ts";
|
|
36
40
|
import type { WuiOtp } from "./WuiOtp.ts";
|
|
@@ -57,6 +61,8 @@ import type { WuiWizard } from "./WuiWizard.ts";
|
|
|
57
61
|
import type { WuiWizardStep } from "./WuiWizardStep.ts";
|
|
58
62
|
export interface WuiElementTagMap {
|
|
59
63
|
"wui-calendar": WuiCalendar;
|
|
64
|
+
"wui-calendar-views": WuiCalendarViews;
|
|
65
|
+
"wui-dashboard-grid": WuiDashboardGrid;
|
|
60
66
|
"wui-carousel": WuiCarousel;
|
|
61
67
|
"wui-chart": WuiChart;
|
|
62
68
|
"wui-code-block": WuiCodeBlock;
|
|
@@ -79,6 +85,8 @@ export interface WuiElementTagMap {
|
|
|
79
85
|
"wui-image-crop": WuiImageCrop;
|
|
80
86
|
"wui-inline-edit": WuiInlineEdit;
|
|
81
87
|
"wui-kanban": WuiKanban;
|
|
88
|
+
"wui-mini-calendar": WuiMiniCalendar;
|
|
89
|
+
"wui-offline-banner": WuiOfflineBanner;
|
|
82
90
|
"wui-lead-popup": WuiLeadPopup;
|
|
83
91
|
"wui-lightbox": WuiLightbox;
|
|
84
92
|
"wui-markdown": WuiMarkdown;
|
package/types/helpers.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ 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
12
|
export { GanttError, validateGantt } from "./ganttLayout.ts";
|
|
13
|
-
export type { GanttFoldChangeDetail, GanttFromChangeDetail, GanttLayout, GanttRow, GanttSelectDetail, GanttSpec, GanttState, GanttStatus, GanttZoom, GanttZoomChangeDetail, } from "./ganttTypes.ts";
|
|
13
|
+
export type { GanttBar, GanttFoldChangeDetail, GanttFromChangeDetail, GanttHalf, GanttLayout, GanttRow, GanttSelectDetail, GanttSpec, GanttState, GanttStatus, GanttTone, GanttWeeks, GanttZoom, GanttZoomChangeDetail, } from "./ganttTypes.ts";
|
|
14
14
|
export { glyphNode } from "./iconGlyphs.g.ts";
|
|
15
15
|
export { isImeSafeEnter } from "./imeSafeEnter.ts";
|
|
16
16
|
export { initialsOf } from "./initials.ts";
|
|
@@ -30,6 +30,7 @@ export { attachRowDrag, syncTargets } from "./rowDrop.ts";
|
|
|
30
30
|
export { attachScrollEdges, initScrollEdges, SCROLL_EDGE_SELECTOR } from "./scrollEdges.ts";
|
|
31
31
|
export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, listKeys, moveFocus, runShortcut, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUTS_OFF_ATTRIBUTE, selectKey, shortcutKey, shortcutName, shortcutsOff, } from "./shortcutKeys.ts";
|
|
32
32
|
export { deriveStepStatus, stepperHeaderItems } from "./stepperHeader.ts";
|
|
33
|
+
export { registerStickyLayer } from "./stickyStack.ts";
|
|
33
34
|
export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "./submitOnce.ts";
|
|
34
35
|
export { downloadTable, type TableExportFormat, tableCsv, tableXlsx } from "./tableExport.ts";
|
|
35
36
|
export { matchSegments } from "./textMatch.ts";
|
package/types/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { WuiKanban } from "./kanban.ts";
|
|
2
2
|
import { WuiStatusIcon } from "./statusIcons.ts";
|
|
3
|
+
import { WuiCalendarViews } from "./WuiCalendarViews.ts";
|
|
3
4
|
import { WuiCarousel } from "./WuiCarousel.ts";
|
|
4
5
|
import { WuiCodeBlock } from "./WuiCodeBlock.ts";
|
|
5
6
|
import { WuiCommandPalette } from "./WuiCommandPalette.ts";
|
|
6
7
|
import { WuiCommentThread } from "./WuiCommentThread.ts";
|
|
7
8
|
import { WuiConsentBanner } from "./WuiConsentBanner.ts";
|
|
8
9
|
import { WuiContextMenu } from "./WuiContextMenu.ts";
|
|
10
|
+
import { WuiDashboardGrid } from "./WuiDashboardGrid.ts";
|
|
9
11
|
import { WuiDataTable } from "./WuiDataTable.ts";
|
|
10
12
|
import { WuiDatePicker } from "./WuiDatePicker.ts";
|
|
11
13
|
import { WuiDateRange } from "./WuiDateRange.ts";
|
|
@@ -22,9 +24,11 @@ import { WuiLeadPopup } from "./WuiLeadPopup.ts";
|
|
|
22
24
|
import { WuiLightbox } from "./WuiLightbox.ts";
|
|
23
25
|
import { WuiMarkdown } from "./WuiMarkdown.ts";
|
|
24
26
|
import { WuiMentionInput } from "./WuiMentionInput.ts";
|
|
27
|
+
import { WuiMiniCalendar } from "./WuiMiniCalendar.ts";
|
|
25
28
|
import { WuiModal } from "./WuiModal.ts";
|
|
26
29
|
import { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
|
|
27
30
|
import { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
|
|
31
|
+
import { WuiOfflineBanner } from "./WuiOfflineBanner.ts";
|
|
28
32
|
import { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
|
|
29
33
|
import { WuiOrgTree } from "./WuiOrgTree.ts";
|
|
30
34
|
import { WuiOtp } from "./WuiOtp.ts";
|
|
@@ -58,4 +62,4 @@ export { SHORTCUT_EVENT } from "./shortcutKeys.ts";
|
|
|
58
62
|
export { THEME_CHANGE_EVENT } from "./themeTransition.ts";
|
|
59
63
|
export type { TreePickerNode } from "./treePicker/treeState.ts";
|
|
60
64
|
export { WHATS_NEW_READ_EVENT } from "./WuiWhatsNew.ts";
|
|
61
|
-
export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDateTime, 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, };
|
|
65
|
+
export { WuiCalendarViews, WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDashboardGrid, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDateTime, WuiDock, WuiDrawer, WuiDropdown, WuiEntryGrid, WuiGantt, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiMiniCalendar, WuiModal, WuiNavigationMenu, WuiNotificationCenter, WuiOfflineBanner, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiPopover, WuiRating, WuiRecordPager, WuiRelativeTime, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTreePicker, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ModalHandle } from "../../server/remoteModal.ts";
|
|
2
2
|
import type { ServerTableHandle } from "../../server/serverTable.ts";
|
|
3
3
|
import type { ShellHandle } from "../../server/shellParts.ts";
|
|
4
|
-
|
|
4
|
+
type Server = Awaited<ReturnType<typeof window.WeborityUiElements.loadServer>>;
|
|
5
|
+
export type RemoteOptions = Parameters<Server["loadRemoteModal"]>[1];
|
|
5
6
|
export declare const modal: {
|
|
6
7
|
open: (id: string) => void;
|
|
7
8
|
close: (id: string) => void;
|
|
@@ -12,16 +13,19 @@ export declare const drawer: {
|
|
|
12
13
|
};
|
|
13
14
|
export declare const pane: {
|
|
14
15
|
load: (url: string, options?: RemoteOptions) => Promise<ModalHandle>;
|
|
15
|
-
close: (target: string | Element) => void
|
|
16
|
+
close: (target: string | Element) => Promise<void>;
|
|
16
17
|
};
|
|
18
|
+
export type PostOptions = Parameters<Server["postAction"]>[1];
|
|
19
|
+
export declare const post: (url: string, options?: PostOptions) => Promise<unknown>;
|
|
20
|
+
export declare const applyRefresh: () => Promise<void>;
|
|
17
21
|
export declare const tour: {
|
|
18
22
|
start: (id: string) => unknown;
|
|
19
23
|
};
|
|
20
24
|
export declare const table: {
|
|
21
|
-
get: (target: string | Element) => ServerTableHandle
|
|
25
|
+
get: (target: string | Element) => Promise<ServerTableHandle>;
|
|
22
26
|
};
|
|
23
27
|
export declare const shell: {
|
|
24
|
-
get: (target?: string | Element) => ShellHandle
|
|
28
|
+
get: (target?: string | Element) => Promise<ShellHandle>;
|
|
25
29
|
};
|
|
26
30
|
export declare const filePicker: {
|
|
27
31
|
setLoading: (target: string | Element, on: boolean) => void;
|
|
@@ -30,5 +34,6 @@ export declare const button: {
|
|
|
30
34
|
setLoading: (target: HTMLElement | string, isLoading: boolean) => void;
|
|
31
35
|
};
|
|
32
36
|
export declare const unsaved: {
|
|
33
|
-
reset: (target: string | Element) => void
|
|
37
|
+
reset: (target: string | Element) => Promise<void>;
|
|
34
38
|
};
|
|
39
|
+
export {};
|
|
@@ -2,6 +2,7 @@ type Root = Document | Element;
|
|
|
2
2
|
export declare const initServerTables: (root?: Root) => void;
|
|
3
3
|
export declare const initRemoteModals: (root?: Root) => void;
|
|
4
4
|
export declare const initServerActions: (root?: Root) => void;
|
|
5
|
+
export declare const initFlashToasts: (root?: Root) => void;
|
|
5
6
|
export declare const initInputMasks: (root?: Root) => void;
|
|
6
7
|
export declare const initScrollEdges: (root?: Root) => void;
|
|
7
8
|
export declare const initShellParts: (root?: Root) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initStickyLayers: (root?: Document | Element) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../globals.ts";
|
|
2
2
|
import "./modules/pageListeners.ts";
|
|
3
|
-
import { button, drawer, filePicker, modal, pane, shell, table, tour, unsaved } from "./modules/api.ts";
|
|
3
|
+
import { applyRefresh, button, drawer, filePicker, modal, pane, post, shell, table, tour, unsaved } from "./modules/api.ts";
|
|
4
4
|
import { look } from "./modules/look.ts";
|
|
5
5
|
import { dismissAllToasts, toast } from "./modules/toast.ts";
|
|
6
6
|
import * as validation from "./modules/validation.ts";
|
|
@@ -20,6 +20,9 @@ export interface WuiApi {
|
|
|
20
20
|
showErrorSummary: typeof validation.showErrorSummary;
|
|
21
21
|
look: typeof look;
|
|
22
22
|
refresh: typeof refresh;
|
|
23
|
+
post: typeof post;
|
|
24
|
+
applyRefresh: typeof applyRefresh;
|
|
25
|
+
readonly PostError: typeof window.WeborityUiElements.WuiPostError;
|
|
23
26
|
}
|
|
24
27
|
declare global {
|
|
25
28
|
interface WuiHost extends WuiApi {
|