@webority/ui-elements 0.179.0 → 0.181.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/select/list.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export type WindowImpl = {
|
|
|
43
43
|
indexByPrefix(listEl: HTMLElement, prefix: string): number;
|
|
44
44
|
clear(listEl: HTMLElement): void;
|
|
45
45
|
};
|
|
46
|
+
/** True once the select-window part has registered its windowed listbox. */
|
|
47
|
+
export declare function windowImplRegistered(): boolean;
|
|
46
48
|
export declare function registerWindowImpl(impl: WindowImpl | undefined): void;
|
|
47
49
|
export declare function clearOptions(listEl: HTMLElement): void;
|
|
48
50
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createDiscardPrompt, DISCARD_EVENT, initDrawerDiscard } from "./drawerDiscard.ts";
|
|
2
|
+
export { closeRemotePane, initRemoteModals, loadRemoteDrawer, loadRemoteModal, loadRemotePane } from "./remoteModal.ts";
|
|
3
|
+
export { CONFIRM_DIALOG_ID, CONFIRM_TONES, confirmAction, initServerActions, type PostActionOptions, postAction } from "./serverActions.ts";
|
|
4
|
+
export { initServerTables } from "./serverTable.ts";
|
|
5
|
+
export { getServerTable } from "./serverTableRegistry.ts";
|
|
6
|
+
export { formValues, initUnsavedChanges, resetUnsavedChanges } from "./unsavedChanges.ts";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { FLASH_STORAGE_KEY, FLASH_VARIANTS } from "./flash.ts";
|
|
2
|
+
export { initFlashToasts } from "./flashToasts.ts";
|
|
3
|
+
export { WuiPostError } from "./postError.ts";
|
|
4
|
+
export { applyRefresh, refreshAfter, reloadsPage } from "./refreshAfter.ts";
|
|
5
|
+
export { refreshRegions } from "./regions.ts";
|
|
6
|
+
export { parseServerHtml } from "./serverHtml.ts";
|
|
7
|
+
export { runToastAction, showResultToast, showToast, TOAST_ACTION_MS } from "./toastAction.ts";
|
|
8
|
+
export { parseToastAction, TOAST_ACTION_METHODS } from "./toastHeader.ts";
|
|
9
|
+
export { CSRF_META_NAME, classifyStatus, configureCsrf, createRequestQueue, DEFAULT_CSRF_HEADER, HTTP_KINDS, readCsrf, timeoutFromAttribute, WUI_HEADERS, type WuiRefresh, type WuiResult, wuiFetch, } from "./wuiHttp.ts";
|
|
10
|
+
export { type WuiUploadOptions, wuiUpload } from "./wuiUpload.ts";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WuiToastAction } from "./wuiHttp.ts";
|
|
2
|
+
/** Every value a flash or a toast variant takes. */
|
|
3
|
+
export declare const FLASH_VARIANTS: readonly ["success", "info", "warning", "danger"];
|
|
4
|
+
export type FlashVariant = (typeof FLASH_VARIANTS)[number];
|
|
5
|
+
export declare const isToastVariant: (value: string) => value is FlashVariant;
|
|
6
|
+
/** The session storage key a flash waits under. */
|
|
7
|
+
export declare const FLASH_STORAGE_KEY: string;
|
|
8
|
+
export interface StoredFlash {
|
|
9
|
+
message: string;
|
|
10
|
+
variant: FlashVariant;
|
|
11
|
+
action: WuiToastAction | null;
|
|
12
|
+
}
|
|
13
|
+
/** Stores a toast for the next page to show. An empty message stores nothing. */
|
|
14
|
+
export declare function storeFlash(message: string | null | undefined, variant: string, action?: WuiToastAction | null): void;
|
|
15
|
+
/** Reads and removes the stored flash, or returns null when none waits. Throws a TypeError for a stored value that is not a flash. */
|
|
16
|
+
export declare function takeStoredFlash(): StoredFlash | null;
|
package/types/server/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { CONFIRM_DIALOG_ID, CONFIRM_TONES, confirmAction, FLASH_STORAGE_KEY, FLASH_VARIANTS, initServerActions, } from "./serverActions.ts";
|
|
4
|
-
export { parseServerHtml } from "./serverHtml.ts";
|
|
5
|
-
export { getServerTable, initServerTables } from "./serverTable.ts";
|
|
1
|
+
export * from "./behaviours.ts";
|
|
2
|
+
export * from "./core.ts";
|
|
6
3
|
export { getShell, initShellParts } from "./shellParts.ts";
|
|
7
|
-
export { runToastAction, showResultToast, TOAST_ACTION_MS } from "./toastAction.ts";
|
|
8
|
-
export { parseToastAction, TOAST_ACTION_METHODS } from "./toastHeader.ts";
|
|
9
|
-
export { formValues, initUnsavedChanges, resetUnsavedChanges } from "./unsavedChanges.ts";
|
|
10
|
-
export { CSRF_META_NAME, classifyStatus, configureCsrf, createRequestQueue, DEFAULT_CSRF_HEADER, HTTP_KINDS, readCsrf, timeoutFromAttribute, WUI_HEADERS, wuiFetch, } from "./wuiHttp.ts";
|
|
11
|
-
export { type WuiUploadOptions, wuiUpload } from "./wuiUpload.ts";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HttpKind } from "./wuiHttp.ts";
|
|
2
|
+
/** A post that was refused or failed. The message is already toasted, except for a 422 HTML form answer the caller shows. */
|
|
3
|
+
export declare class WuiPostError extends Error {
|
|
4
|
+
readonly code: string | null;
|
|
5
|
+
readonly status: number;
|
|
6
|
+
readonly html: string | null;
|
|
7
|
+
readonly body: unknown;
|
|
8
|
+
readonly kind: HttpKind;
|
|
9
|
+
constructor(message: string, details: {
|
|
10
|
+
code: string | null;
|
|
11
|
+
status: number;
|
|
12
|
+
html: string | null;
|
|
13
|
+
body: unknown;
|
|
14
|
+
kind: HttpKind;
|
|
15
|
+
cause?: unknown;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { WuiResult, WuiToastAction } from "./wuiHttp.ts";
|
|
2
|
+
export interface RefreshPlan {
|
|
3
|
+
tables: "all" | readonly string[];
|
|
4
|
+
regions: "all" | readonly string[];
|
|
5
|
+
reload: "page" | "auto" | "never";
|
|
6
|
+
message: string | null;
|
|
7
|
+
variant: string;
|
|
8
|
+
action: WuiToastAction | null;
|
|
9
|
+
}
|
|
10
|
+
export interface ApplyOptions {
|
|
11
|
+
/** An element whose own table must not refresh (the table that just settled its own action). */
|
|
12
|
+
skip?: Element | null;
|
|
13
|
+
/** False blocks only the automatic page-rule reload; a plan that asks for a reload always reloads. */
|
|
14
|
+
allowReload?: boolean;
|
|
15
|
+
/** The element that fired the action; a plan from inside an open dialog, drawer or pane is held. */
|
|
16
|
+
origin?: Element | null;
|
|
17
|
+
}
|
|
18
|
+
export type DialogHold = (origin: Element, plan: RefreshPlan) => boolean;
|
|
19
|
+
/** True for an element that opts out of every refresh with data-wui-refresh="none". */
|
|
20
|
+
export declare function isRefreshOff(el: Element | null | undefined): boolean;
|
|
21
|
+
/** The plan an action answer asks for, or null when the answer is not ok. */
|
|
22
|
+
export declare function planOf(result: WuiResult): RefreshPlan | null;
|
|
23
|
+
/** Combines two plans: the union of what each refreshes, the strongest reload, and the last message. */
|
|
24
|
+
export declare function mergePlans(a: RefreshPlan | null, b: RefreshPlan): RefreshPlan;
|
|
25
|
+
/** True when the plan reloads the page: always for "page", and for "auto" only on a page with no server table. */
|
|
26
|
+
export declare function planReloads(plan: RefreshPlan): boolean;
|
|
27
|
+
/** True when the action's answer reloads the page, so the caller skips its own toast (the flash shows after the reload). */
|
|
28
|
+
export declare function reloadsPage(result: WuiResult): boolean;
|
|
29
|
+
/** Reloads the current address with the hash cleared. Never location.reload, which would post a page drawn by a POST again. */
|
|
30
|
+
export declare function reloadPage(): void;
|
|
31
|
+
/** Registers the one function that holds a plan for an open remote dialog, drawer or pane; null clears it. */
|
|
32
|
+
export declare function setDialogHold(hold: DialogHold | null): void;
|
|
33
|
+
/** True when the registered hold keeps the plan until its dialog, drawer or pane closes. */
|
|
34
|
+
export declare function holdInDialog(plan: RefreshPlan, origin: Element): boolean;
|
|
35
|
+
/** True for a plan that refreshes nothing: the NoRefresh() shape. */
|
|
36
|
+
export declare function refreshesNothing(plan: RefreshPlan | null): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Applies a plan. Reloads the page when the plan says so, carrying the toast across; otherwise refreshes the
|
|
39
|
+
* tables and the regions in place. A plan from inside an open dialog is held until it closes.
|
|
40
|
+
*/
|
|
41
|
+
export declare function applyPlan(plan: RefreshPlan, options?: ApplyOptions): Promise<"reloaded" | "refreshed" | "held">;
|
|
42
|
+
/** Applies the refresh an action answer asks for; "none" when the answer is not ok. */
|
|
43
|
+
export declare function refreshAfter(result: WuiResult, options?: ApplyOptions): Promise<"reloaded" | "refreshed" | "held" | "none">;
|
|
44
|
+
/** The public WUI.applyRefresh(): refreshes every table and region in place, and never reloads. */
|
|
45
|
+
export declare function applyRefresh(): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const REGION_SRC_ATTR: string;
|
|
2
|
+
export declare const REGION_KEY_ATTR: string;
|
|
3
|
+
export declare const REFRESH_ATTR: string;
|
|
4
|
+
/** Re-fetches the regions on the page (every one, or those whose key is in `keys`); a failed answer keeps the content. */
|
|
5
|
+
export declare function refreshRegions(keys?: "all" | readonly string[]): Promise<void>;
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
+
import { type HttpKind } from "./wuiHttp.ts";
|
|
1
2
|
/** Id of the shared confirm dialog. */
|
|
2
3
|
export declare const CONFIRM_DIALOG_ID: string;
|
|
3
4
|
/** Every value data-wui-confirm-tone takes; absent is a plain confirmation. */
|
|
4
5
|
export declare const CONFIRM_TONES: readonly string[];
|
|
5
|
-
/** Every value data-wui-flash-variant takes. */
|
|
6
|
-
export declare const FLASH_VARIANTS: readonly ["success", "info", "warning", "danger"];
|
|
7
|
-
type ToastVariant = (typeof FLASH_VARIANTS)[number];
|
|
8
|
-
export declare const isToastVariant: (value: string) => value is ToastVariant;
|
|
9
|
-
/** Where a toast waits across the reload or redirect of data-wui-post. */
|
|
10
|
-
export declare const FLASH_STORAGE_KEY: string;
|
|
11
6
|
/**
|
|
12
7
|
* Ask in the shared confirm dialog from script, and on Confirm run `proceed` with `trigger` let
|
|
13
8
|
* through: a click on it, or a submit of it, that `proceed` makes does not ask its own
|
|
14
9
|
* data-wui-confirm question a second time.
|
|
15
10
|
*
|
|
16
11
|
* @param trigger the link, button or form the person acted on
|
|
17
|
-
* @param options the dialog's words,
|
|
12
|
+
* @param options the dialog's words, the tone when the action is dangerous, and the icon (warning, info or delete) and cancel label when given
|
|
18
13
|
* @param proceed runs once the person confirms
|
|
19
14
|
*/
|
|
20
15
|
export declare function confirmAction(trigger: Element, options: unknown, proceed: () => void): void;
|
|
21
|
-
export declare
|
|
22
|
-
/**
|
|
16
|
+
export declare const failureText: (kind: HttpKind) => string;
|
|
17
|
+
/** The options postAction takes; each is optional. */
|
|
18
|
+
export interface PostActionOptions {
|
|
19
|
+
body?: FormData | URLSearchParams | Record<string, string>;
|
|
20
|
+
json?: unknown;
|
|
21
|
+
method?: "POST" | "PUT" | "PATCH" | "DELETE";
|
|
22
|
+
refresh?: boolean;
|
|
23
|
+
toast?: boolean;
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Posts to url with the antiforgery token and settles it. Resolves with the answer's JSON, its HTML fragment or null;
|
|
28
|
+
* rejects with a WuiPostError on any refusal or failure. The answer's refresh applies unless refresh is false.
|
|
29
|
+
*/
|
|
30
|
+
export declare function postAction(url: string, options?: PostActionOptions): Promise<unknown>;
|
|
31
|
+
/** Wire the delegated confirm and post listeners once per document. */
|
|
23
32
|
export declare function initServerActions(root?: Document | Element): void;
|
|
24
|
-
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WuiResult } from "./wuiHttp.ts";
|
|
2
|
+
/** The body of a refused answer as text: the HTML a 422 form carries, else the body read once; "" when there is none. */
|
|
3
|
+
export declare function readErrorBody(result: WuiResult): Promise<string>;
|
|
4
|
+
/** The reason a problem body gives: its message, then its detail, then a title that is not a generic phrase; null when none does. */
|
|
5
|
+
export declare function serverMessage(body: unknown, statusText: string): string | null;
|
|
@@ -33,5 +33,3 @@ export interface ServerTableHandle {
|
|
|
33
33
|
}
|
|
34
34
|
/** Wire every server-paged table under `root`. */
|
|
35
35
|
export declare function initServerTables(root?: Document | Element): void;
|
|
36
|
-
/** The handle of the server table `el` belongs to, or null. */
|
|
37
|
-
export declare function getServerTable(el: Node | null | undefined): ServerTableHandle | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ServerTableHandle } from "./serverTable.ts";
|
|
2
|
+
/** Records the handle of a server table that has just been wired. */
|
|
3
|
+
export declare function registerServerTable(el: HTMLElement, handle: ServerTableHandle): void;
|
|
4
|
+
/** True when the server table element is already wired. */
|
|
5
|
+
export declare function isServerTableWired(el: HTMLElement): boolean;
|
|
6
|
+
/** The handle of the server table `el` belongs to, or null. */
|
|
7
|
+
export declare function getServerTable(el: Node | null | undefined): ServerTableHandle | null;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/** A count above this shows as "99+"
|
|
1
|
+
/** A count above this shows as "99+" on a capped tab bar badge. */
|
|
2
2
|
export declare const UNREAD_CAP: number;
|
|
3
3
|
/** One year, in seconds: how long the remembered rail state lasts. */
|
|
4
4
|
export declare const COLLAPSED_COOKIE_MAX_AGE: number;
|
|
5
5
|
export interface ShellHandle {
|
|
6
6
|
el: HTMLElement;
|
|
7
|
-
setUnread(n: number): void;
|
|
8
7
|
setTabCount(href: string, count: number | null, tone?: string): void;
|
|
9
|
-
refreshNotifications(): Promise<void>;
|
|
10
8
|
collapsed: boolean;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ShellHandle } from "./shellParts.ts";
|
|
2
|
+
/** Records the handle of a shell that has just been wired. */
|
|
3
|
+
export declare function registerShell(shell: Element, handle: ShellHandle): void;
|
|
4
|
+
/** Drops the handle of a shell that was torn down. */
|
|
5
|
+
export declare function forgetShell(shell: Element): void;
|
|
6
|
+
/** The handle of the wired shell `el` is (or is inside), or null when there is none or it is not wired yet. */
|
|
7
|
+
export declare function wiredShell(el: Element | null): ShellHandle | null;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { type WuiResult, type WuiToastAction } from "./wuiHttp.ts";
|
|
2
2
|
export declare const TOAST_ACTION_MS: number;
|
|
3
|
-
export declare function wuiHost(): WuiHost;
|
|
4
3
|
/** Toasts a settled answer's message, with its action button when it carries one. */
|
|
5
4
|
export declare function showResultToast(result: WuiResult | null | undefined, variant?: string): void;
|
|
6
|
-
/**
|
|
7
|
-
export declare function
|
|
5
|
+
/** Toasts a message, with an action button when one is given; a click on the button settles the action (see runToastAction). */
|
|
6
|
+
export declare function showToast(message: string, variant: string, action?: WuiToastAction | null): void;
|
|
7
|
+
/**
|
|
8
|
+
* Posts the action and settles it: its answer toasts unless it reloads the page, then its refresh applies (the page
|
|
9
|
+
* rule, or the narrowing the answer's Wui-Refresh header names). origin is the button the person clicked.
|
|
10
|
+
*/
|
|
11
|
+
export declare function runToastAction(action: WuiToastAction, origin?: Element | null): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wuiHost(): WuiHost;
|
|
@@ -22,7 +22,7 @@ export declare const WUI_HEADERS: Readonly<{
|
|
|
22
22
|
keepOpen: string;
|
|
23
23
|
toastVariant: string;
|
|
24
24
|
toastAction: string;
|
|
25
|
-
|
|
25
|
+
refresh: string;
|
|
26
26
|
next: string;
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
@@ -51,6 +51,12 @@ export interface WuiFetchOptions {
|
|
|
51
51
|
/** Replaces the session-expiry navigation (tests, or a host that wants to show a "signed out" notice first). */
|
|
52
52
|
navigate?: ((url: string) => void) | undefined;
|
|
53
53
|
}
|
|
54
|
+
/** What an action answer asks the page to refresh, from the Wui-Refresh header. */
|
|
55
|
+
export interface WuiRefresh {
|
|
56
|
+
tables: "all" | string[];
|
|
57
|
+
regions: "all" | string[];
|
|
58
|
+
reloadPage: boolean;
|
|
59
|
+
}
|
|
54
60
|
export interface WuiResult {
|
|
55
61
|
kind: HttpKind;
|
|
56
62
|
ok: boolean;
|
|
@@ -66,6 +72,7 @@ export interface WuiResult {
|
|
|
66
72
|
fragment: boolean;
|
|
67
73
|
data: unknown;
|
|
68
74
|
next: string | null;
|
|
75
|
+
refresh: WuiRefresh | null;
|
|
69
76
|
}
|
|
70
77
|
export interface RequestQueue {
|
|
71
78
|
run(url: string, options?: WuiFetchOptions): Promise<WuiResult>;
|
|
@@ -85,7 +92,7 @@ export declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
|
85
92
|
export declare function timeoutFromAttribute(value: string | null): number | undefined;
|
|
86
93
|
export declare function settleResponse(kind: HttpKind, response?: Response | null, html?: string): WuiResult;
|
|
87
94
|
/**
|
|
88
|
-
* Fetch `url` and settle as a classified result; never rejects for an HTTP or network failure; it rejects with a TypeError when an answer's Wui-
|
|
95
|
+
* Fetch `url` and settle as a classified result; never rejects for an HTTP or network failure; it rejects with a TypeError when an answer's Wui-Refresh header is malformed or its JSON body is not JSON (a server defect).
|
|
89
96
|
*/
|
|
90
97
|
export declare function wuiFetch(url: string, options?: WuiFetchOptions): Promise<WuiResult>;
|
|
91
98
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers a sticky layer and keeps its --wui-sticky-stack-height current until the returned function is called.
|
|
3
|
+
* @param el The sticky element: the page header, the tab strip or the table's thead.
|
|
4
|
+
* @returns Unregister: removes the layer and its custom property.
|
|
5
|
+
*/
|
|
6
|
+
export declare function registerStickyLayer(el: HTMLElement): () => void;
|
package/types/tableSelect.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const SELECT_CELL_CLASS = "wui-select-cell";
|
|
2
|
+
export declare const GROUP_SELECT_CLASS = "wui-group-select";
|
|
2
3
|
/** `<th class="wui-select-cell">` holding the select-all box. */
|
|
3
4
|
export declare function createSelectHeaderCell(doc?: Document): HTMLTableCellElement;
|
|
4
5
|
/** `<td class="wui-select-cell">` holding one row's box, disabled when the row cannot be selected. */
|
|
@@ -7,6 +8,10 @@ export declare function createSelectRowCell(doc?: Document, { disabled }?: {
|
|
|
7
8
|
}): HTMLTableCellElement;
|
|
8
9
|
/** The empty `<td class="wui-select-cell">` a totals row gets. */
|
|
9
10
|
export declare function createSelectSpacerCell(doc?: Document): HTMLTableCellElement;
|
|
11
|
+
/** `<td class="wui-select-cell wui-group-select">` holding the box that ticks one group's selectable rows. */
|
|
12
|
+
export declare function createGroupSelectCell(doc: Document, groupLabel: string): HTMLTableCellElement;
|
|
13
|
+
/** The body rows under a group header: the siblings up to the next group header or spacer, without expanded detail rows. */
|
|
14
|
+
export declare function groupRowsOf(header: HTMLTableRowElement): HTMLTableRowElement[];
|
|
10
15
|
/** Give each body row that has none its leading select cell. Safe to call after every row swap. */
|
|
11
16
|
export declare function addRowSelectCells(rows: Iterable<HTMLTableRowElement>): void;
|
|
12
17
|
/**
|
|
@@ -22,6 +27,11 @@ export declare function syncSelectAll(table: HTMLTableElement): {
|
|
|
22
27
|
selected: number;
|
|
23
28
|
total: number;
|
|
24
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Bring each group header's box in step with the selectable rows under it: checked when all of them
|
|
32
|
+
* are, indeterminate when some are, disabled when none can be selected.
|
|
33
|
+
*/
|
|
34
|
+
export declare function syncGroupSelect(table: HTMLTableElement): void;
|
|
25
35
|
/**
|
|
26
36
|
* Shift+click on a row box selects the range from the last row box clicked: every box between the
|
|
27
37
|
* two takes the state the clicked box just got. `onRange(boxes, checked)` receives the other boxes
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export type AsyncBlockText = {
|
|
2
2
|
readonly emptyTitle: string;
|
|
3
3
|
readonly errorTitle: string;
|
|
4
|
+
readonly failedOnce: string;
|
|
5
|
+
readonly failedTimes: string;
|
|
4
6
|
readonly loadingLabel: string;
|
|
7
|
+
readonly retryFailedTitle: string;
|
|
5
8
|
readonly retryLabel: string;
|
|
6
9
|
};
|
|
7
10
|
export declare const ASYNC_BLOCK_TEXT: AsyncBlockText;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type CalendarText = {
|
|
2
|
+
readonly agendaLabel: string;
|
|
2
3
|
readonly allDayDateText: string;
|
|
3
4
|
readonly allDayLabel: string;
|
|
4
5
|
readonly calendarViewLabel: string;
|
|
@@ -13,6 +14,7 @@ export type CalendarText = {
|
|
|
13
14
|
readonly nextLabel: string;
|
|
14
15
|
readonly previousLabel: string;
|
|
15
16
|
readonly rangeTitleText: string;
|
|
17
|
+
readonly timelineLabel: string;
|
|
16
18
|
readonly todayLabel: string;
|
|
17
19
|
readonly tryAgainLabel: string;
|
|
18
20
|
readonly weekLabel: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AccountSwitcherText } from "./accountSwitcher.g.ts";
|
|
2
|
+
import type { AgendaText } from "./agenda.g.ts";
|
|
2
3
|
import type { AlertText } from "./alert.g.ts";
|
|
3
4
|
import type { AsyncBlockText } from "./asyncBlock.g.ts";
|
|
4
5
|
import type { AvatarText } from "./avatar.g.ts";
|
|
@@ -8,6 +9,7 @@ import type { BreadcrumbsText } from "./breadcrumbs.g.ts";
|
|
|
8
9
|
import type { CalendarText } from "./calendar.g.ts";
|
|
9
10
|
import type { CardText } from "./card.g.ts";
|
|
10
11
|
import type { CarouselText } from "./carousel.g.ts";
|
|
12
|
+
import type { ChangeListText } from "./changeList.g.ts";
|
|
11
13
|
import type { ChartText } from "./chart.g.ts";
|
|
12
14
|
import type { ChartCardText } from "./chartCard.g.ts";
|
|
13
15
|
import type { CheckText } from "./check.g.ts";
|
|
@@ -28,6 +30,8 @@ import type { ConsentBannerText } from "./consentBanner.g.ts";
|
|
|
28
30
|
import type { ContextMenuText } from "./contextMenu.g.ts";
|
|
29
31
|
import type { CopyButtonText } from "./copyButton.g.ts";
|
|
30
32
|
import type { CustomRuleText } from "./customRule.g.ts";
|
|
33
|
+
import type { DashboardGridText } from "./dashboardGrid.g.ts";
|
|
34
|
+
import type { DashboardHeaderText } from "./dashboardHeader.g.ts";
|
|
31
35
|
import type { DataTableText } from "./dataTable.g.ts";
|
|
32
36
|
import type { DatePickerText } from "./datePicker.g.ts";
|
|
33
37
|
import type { DateRangePickerText } from "./dateRangePicker.g.ts";
|
|
@@ -45,6 +49,7 @@ import type { FileValidationText } from "./fileValidation.g.ts";
|
|
|
45
49
|
import type { FileViewerText } from "./fileViewer.g.ts";
|
|
46
50
|
import type { FilterBarText } from "./filterBar.g.ts";
|
|
47
51
|
import type { FloatingDockText } from "./floatingDock.g.ts";
|
|
52
|
+
import type { FormActionsText } from "./formActions.g.ts";
|
|
48
53
|
import type { FormattersText } from "./formatters.g.ts";
|
|
49
54
|
import type { FormulaStepsText } from "./formulaSteps.g.ts";
|
|
50
55
|
import type { GanttText } from "./gantt.g.ts";
|
|
@@ -65,6 +70,7 @@ import type { LeadPopupText } from "./leadPopup.g.ts";
|
|
|
65
70
|
import type { LightboxText } from "./lightbox.g.ts";
|
|
66
71
|
import type { LoadMoreText } from "./loadMore.g.ts";
|
|
67
72
|
import type { MentionInputText } from "./mentionInput.g.ts";
|
|
73
|
+
import type { MiniCalendarText } from "./miniCalendar.g.ts";
|
|
68
74
|
import type { ModalText } from "./modal.g.ts";
|
|
69
75
|
import type { ModalCardRendererText } from "./modalCardRenderer.g.ts";
|
|
70
76
|
import type { ModalContentText } from "./modalContent.g.ts";
|
|
@@ -72,6 +78,7 @@ import type { ModalFormText } from "./modalForm.g.ts";
|
|
|
72
78
|
import type { NavigationMenuText } from "./navigationMenu.g.ts";
|
|
73
79
|
import type { NotificationCentreText } from "./notificationCentre.g.ts";
|
|
74
80
|
import type { NumberInputText } from "./numberInput.g.ts";
|
|
81
|
+
import type { OfflineBannerText } from "./offlineBanner.g.ts";
|
|
75
82
|
import type { OnboardingChecklistText } from "./onboardingChecklist.g.ts";
|
|
76
83
|
import type { OrgTreeText } from "./orgTree.g.ts";
|
|
77
84
|
import type { OtpInputText } from "./otpInput.g.ts";
|
|
@@ -85,12 +92,14 @@ import type { PhoneNumberInputText } from "./phoneNumberInput.g.ts";
|
|
|
85
92
|
import type { PricingCardText } from "./pricingCard.g.ts";
|
|
86
93
|
import type { QrCodeText } from "./qrCode.g.ts";
|
|
87
94
|
import type { QueryBuilderText } from "./queryBuilder.g.ts";
|
|
95
|
+
import type { QueueBundleText } from "./queueBundle.g.ts";
|
|
88
96
|
import type { RadioText } from "./radio.g.ts";
|
|
89
97
|
import type { RadioGroupText } from "./radioGroup.g.ts";
|
|
90
98
|
import type { RatingText } from "./rating.g.ts";
|
|
91
99
|
import type { RecordPagerText } from "./recordPager.g.ts";
|
|
92
100
|
import type { RelativeTimeText } from "./relativeTime.g.ts";
|
|
93
101
|
import type { RepeaterText } from "./repeater.g.ts";
|
|
102
|
+
import type { ResultBlockText } from "./resultBlock.g.ts";
|
|
94
103
|
import type { RichTextText } from "./richText.g.ts";
|
|
95
104
|
import type { RouteErrorText } from "./routeError.g.ts";
|
|
96
105
|
import type { RowActionsText } from "./rowActions.g.ts";
|
|
@@ -101,6 +110,7 @@ import type { SearchText } from "./search.g.ts";
|
|
|
101
110
|
import type { SectionLeadCaptureText } from "./sectionLeadCapture.g.ts";
|
|
102
111
|
import type { SegmentedText } from "./segmented.g.ts";
|
|
103
112
|
import type { SelectText } from "./select.g.ts";
|
|
113
|
+
import type { SettingRowText } from "./settingRow.g.ts";
|
|
104
114
|
import type { ShellText } from "./shell.g.ts";
|
|
105
115
|
import type { ShortcutKeysText } from "./shortcutKeys.g.ts";
|
|
106
116
|
import type { ShowMoreText } from "./showMore.g.ts";
|
|
@@ -138,6 +148,7 @@ import type { WizardText } from "./wizard.g.ts";
|
|
|
138
148
|
import type { WorkspaceSwitcherText } from "./workspaceSwitcher.g.ts";
|
|
139
149
|
export interface WuiTextCatalogue {
|
|
140
150
|
readonly accountSwitcher: AccountSwitcherText;
|
|
151
|
+
readonly agenda: AgendaText;
|
|
141
152
|
readonly alert: AlertText;
|
|
142
153
|
readonly asyncBlock: AsyncBlockText;
|
|
143
154
|
readonly avatar: AvatarText;
|
|
@@ -147,6 +158,7 @@ export interface WuiTextCatalogue {
|
|
|
147
158
|
readonly calendar: CalendarText;
|
|
148
159
|
readonly card: CardText;
|
|
149
160
|
readonly carousel: CarouselText;
|
|
161
|
+
readonly changeList: ChangeListText;
|
|
150
162
|
readonly chart: ChartText;
|
|
151
163
|
readonly chartCard: ChartCardText;
|
|
152
164
|
readonly check: CheckText;
|
|
@@ -167,6 +179,8 @@ export interface WuiTextCatalogue {
|
|
|
167
179
|
readonly contextMenu: ContextMenuText;
|
|
168
180
|
readonly copyButton: CopyButtonText;
|
|
169
181
|
readonly customRule: CustomRuleText;
|
|
182
|
+
readonly dashboardGrid: DashboardGridText;
|
|
183
|
+
readonly dashboardHeader: DashboardHeaderText;
|
|
170
184
|
readonly dataTable: DataTableText;
|
|
171
185
|
readonly datePicker: DatePickerText;
|
|
172
186
|
readonly dateRangePicker: DateRangePickerText;
|
|
@@ -184,6 +198,7 @@ export interface WuiTextCatalogue {
|
|
|
184
198
|
readonly fileViewer: FileViewerText;
|
|
185
199
|
readonly filterBar: FilterBarText;
|
|
186
200
|
readonly floatingDock: FloatingDockText;
|
|
201
|
+
readonly formActions: FormActionsText;
|
|
187
202
|
readonly formatters: FormattersText;
|
|
188
203
|
readonly formulaSteps: FormulaStepsText;
|
|
189
204
|
readonly gantt: GanttText;
|
|
@@ -204,6 +219,7 @@ export interface WuiTextCatalogue {
|
|
|
204
219
|
readonly lightbox: LightboxText;
|
|
205
220
|
readonly loadMore: LoadMoreText;
|
|
206
221
|
readonly mentionInput: MentionInputText;
|
|
222
|
+
readonly miniCalendar: MiniCalendarText;
|
|
207
223
|
readonly modal: ModalText;
|
|
208
224
|
readonly modalCardRenderer: ModalCardRendererText;
|
|
209
225
|
readonly modalContent: ModalContentText;
|
|
@@ -211,6 +227,7 @@ export interface WuiTextCatalogue {
|
|
|
211
227
|
readonly navigationMenu: NavigationMenuText;
|
|
212
228
|
readonly notificationCentre: NotificationCentreText;
|
|
213
229
|
readonly numberInput: NumberInputText;
|
|
230
|
+
readonly offlineBanner: OfflineBannerText;
|
|
214
231
|
readonly onboardingChecklist: OnboardingChecklistText;
|
|
215
232
|
readonly orgTree: OrgTreeText;
|
|
216
233
|
readonly otpInput: OtpInputText;
|
|
@@ -224,12 +241,14 @@ export interface WuiTextCatalogue {
|
|
|
224
241
|
readonly pricingCard: PricingCardText;
|
|
225
242
|
readonly qrCode: QrCodeText;
|
|
226
243
|
readonly queryBuilder: QueryBuilderText;
|
|
244
|
+
readonly queueBundle: QueueBundleText;
|
|
227
245
|
readonly radio: RadioText;
|
|
228
246
|
readonly radioGroup: RadioGroupText;
|
|
229
247
|
readonly rating: RatingText;
|
|
230
248
|
readonly recordPager: RecordPagerText;
|
|
231
249
|
readonly relativeTime: RelativeTimeText;
|
|
232
250
|
readonly repeater: RepeaterText;
|
|
251
|
+
readonly resultBlock: ResultBlockText;
|
|
233
252
|
readonly richText: RichTextText;
|
|
234
253
|
readonly routeError: RouteErrorText;
|
|
235
254
|
readonly rowActions: RowActionsText;
|
|
@@ -240,6 +259,7 @@ export interface WuiTextCatalogue {
|
|
|
240
259
|
readonly sectionLeadCapture: SectionLeadCaptureText;
|
|
241
260
|
readonly segmented: SegmentedText;
|
|
242
261
|
readonly select: SelectText;
|
|
262
|
+
readonly settingRow: SettingRowText;
|
|
243
263
|
readonly shell: ShellText;
|
|
244
264
|
readonly shortcutKeys: ShortcutKeysText;
|
|
245
265
|
readonly showMore: ShowMoreText;
|
|
@@ -80,6 +80,7 @@ export type ChartText = {
|
|
|
80
80
|
readonly sharedAxisText: string;
|
|
81
81
|
readonly showingFirstRowsDownloadText: string;
|
|
82
82
|
readonly smallMultiplesLabel: string;
|
|
83
|
+
readonly soFarText: string;
|
|
83
84
|
readonly stackedPercentText: string;
|
|
84
85
|
readonly stackedText: string;
|
|
85
86
|
readonly stageLabel: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DashboardGridText = {
|
|
2
|
+
readonly addEmptyText: string;
|
|
3
|
+
readonly addLabel: string;
|
|
4
|
+
readonly earlierLabel: string;
|
|
5
|
+
readonly earlierText: string;
|
|
6
|
+
readonly editLabel: string;
|
|
7
|
+
readonly hiddenText: string;
|
|
8
|
+
readonly hideLabel: string;
|
|
9
|
+
readonly hideText: string;
|
|
10
|
+
readonly laterLabel: string;
|
|
11
|
+
readonly laterText: string;
|
|
12
|
+
readonly movedText: string;
|
|
13
|
+
readonly resetLabel: string;
|
|
14
|
+
readonly resetText: string;
|
|
15
|
+
readonly showLabel: string;
|
|
16
|
+
readonly shownText: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DASHBOARD_GRID_TEXT: DashboardGridText;
|
|
@@ -29,8 +29,12 @@ export type DataTableText = {
|
|
|
29
29
|
readonly rowSavedText: string;
|
|
30
30
|
readonly rowWasNotSavedText: string;
|
|
31
31
|
readonly rowsSavedText: string;
|
|
32
|
+
readonly saveBusyLabel: string;
|
|
33
|
+
readonly saveDoneLabel: string;
|
|
34
|
+
readonly saveFailedLabel: string;
|
|
32
35
|
readonly savedText: string;
|
|
33
36
|
readonly selectAllRowsLabel: string;
|
|
37
|
+
readonly selectGroupLabel: string;
|
|
34
38
|
readonly selectRowLabel: string;
|
|
35
39
|
readonly timeoutMessage: string;
|
|
36
40
|
readonly wasNotSavedText: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type EntryGridText = {
|
|
2
2
|
readonly addLabel: string;
|
|
3
|
+
readonly cancelLabel: string;
|
|
3
4
|
readonly commitNextLabel: string;
|
|
4
5
|
readonly commitStayLabel: string;
|
|
5
6
|
readonly dirtyLabel: string;
|
|
@@ -9,6 +10,7 @@ export type EntryGridText = {
|
|
|
9
10
|
readonly label: string;
|
|
10
11
|
readonly moveLabel: string;
|
|
11
12
|
readonly removeLineLabel: string;
|
|
13
|
+
readonly rowActionsLabel: string;
|
|
12
14
|
readonly savedLabel: string;
|
|
13
15
|
readonly savingLabel: string;
|
|
14
16
|
readonly statusLabel: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type FormActionsText = {
|
|
2
|
+
readonly dirty: string;
|
|
3
|
+
readonly invalidOne: string;
|
|
4
|
+
readonly invalidOther: string;
|
|
5
|
+
readonly pristine: string;
|
|
6
|
+
readonly saved: string;
|
|
7
|
+
readonly saving: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const FORM_ACTIONS_TEXT: FormActionsText;
|
|
@@ -2,6 +2,8 @@ export type GanttText = {
|
|
|
2
2
|
readonly addTaskLabel: string;
|
|
3
3
|
readonly barLabel: string;
|
|
4
4
|
readonly barLabelAfter: string;
|
|
5
|
+
readonly clashLabel: string;
|
|
6
|
+
readonly countLabel: string;
|
|
5
7
|
readonly dayLabel: string;
|
|
6
8
|
readonly detailsCloseLabel: string;
|
|
7
9
|
readonly detailsDates: string;
|