@cratis/components 4.42.0 → 4.42.1
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/compat-manifest.json +11 -11
- package/dist/esm/Chat/ChatSidebar.d.ts +2 -2
- package/dist/esm/Chat/ChatSidebar.d.ts.map +1 -1
- package/dist/esm/Chat/ChatSidebar.js +21 -101
- package/dist/esm/Chat/ChatSidebar.js.map +1 -1
- package/dist/esm/Chat/ChatSidebarContent.d.ts +25 -0
- package/dist/esm/Chat/ChatSidebarContent.d.ts.map +1 -0
- package/dist/esm/Chat/ChatSidebarContent.js +12 -0
- package/dist/esm/Chat/ChatSidebarContent.js.map +1 -0
- package/dist/esm/Chat/ChatSidebarHeader.d.ts +16 -0
- package/dist/esm/Chat/ChatSidebarHeader.d.ts.map +1 -0
- package/dist/esm/Chat/ChatSidebarHeader.js +26 -0
- package/dist/esm/Chat/ChatSidebarHeader.js.map +1 -0
- package/dist/esm/Chat/ChatSidebarShells.d.ts +31 -0
- package/dist/esm/Chat/ChatSidebarShells.d.ts.map +1 -0
- package/dist/esm/Chat/ChatSidebarShells.js +43 -0
- package/dist/esm/Chat/ChatSidebarShells.js.map +1 -0
- package/dist/esm/Chat/useNonModalPhase.d.ts +16 -0
- package/dist/esm/Chat/useNonModalPhase.d.ts.map +1 -0
- package/dist/esm/Chat/useNonModalPhase.js +38 -0
- package/dist/esm/Chat/useNonModalPhase.js.map +1 -0
- package/dist/esm/Chat/useTopicSelection.d.ts +31 -0
- package/dist/esm/Chat/useTopicSelection.d.ts.map +1 -0
- package/dist/esm/Chat/useTopicSelection.js +45 -0
- package/dist/esm/Chat/useTopicSelection.js.map +1 -0
- package/dist/esm/DataTables/ColumnFilterActions.d.ts +11 -0
- package/dist/esm/DataTables/ColumnFilterActions.d.ts.map +1 -0
- package/dist/esm/DataTables/ColumnFilterActions.js +8 -0
- package/dist/esm/DataTables/ColumnFilterActions.js.map +1 -0
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts +1 -1
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts.map +1 -1
- package/dist/esm/DataTables/ColumnFilterMenu.js +16 -148
- package/dist/esm/DataTables/ColumnFilterMenu.js.map +1 -1
- package/dist/esm/DataTables/ColumnFilterTrigger.d.ts +12 -0
- package/dist/esm/DataTables/ColumnFilterTrigger.d.ts.map +1 -0
- package/dist/esm/DataTables/ColumnFilterTrigger.js +9 -0
- package/dist/esm/DataTables/ColumnFilterTrigger.js.map +1 -0
- package/dist/esm/DataTables/ColumnFilterValueInput.d.ts +24 -0
- package/dist/esm/DataTables/ColumnFilterValueInput.d.ts.map +1 -0
- package/dist/esm/DataTables/ColumnFilterValueInput.js +39 -0
- package/dist/esm/DataTables/ColumnFilterValueInput.js.map +1 -0
- package/dist/esm/DataTables/columnFilterMatchModes.d.ts +10 -0
- package/dist/esm/DataTables/columnFilterMatchModes.d.ts.map +1 -0
- package/dist/esm/DataTables/columnFilterMatchModes.js +52 -0
- package/dist/esm/DataTables/columnFilterMatchModes.js.map +1 -0
- package/dist/esm/DataTables/resolveColumnFilterLabels.d.ts +4 -0
- package/dist/esm/DataTables/resolveColumnFilterLabels.d.ts.map +1 -0
- package/dist/esm/DataTables/resolveColumnFilterLabels.js +20 -0
- package/dist/esm/DataTables/resolveColumnFilterLabels.js.map +1 -0
- package/dist/esm/DataTables/useColumnFilterDraft.d.ts +13 -0
- package/dist/esm/DataTables/useColumnFilterDraft.d.ts.map +1 -0
- package/dist/esm/DataTables/useColumnFilterDraft.js +24 -0
- package/dist/esm/DataTables/useColumnFilterDraft.js.map +1 -0
- package/dist/esm/DataTables/useRestoreFocusOnClose.d.ts +7 -0
- package/dist/esm/DataTables/useRestoreFocusOnClose.d.ts.map +1 -0
- package/dist/esm/DataTables/useRestoreFocusOnClose.js +30 -0
- package/dist/esm/DataTables/useRestoreFocusOnClose.js.map +1 -0
- package/dist/esm/Dialogs/DialogDocument.d.ts +22 -0
- package/dist/esm/Dialogs/DialogDocument.d.ts.map +1 -0
- package/dist/esm/Dialogs/DialogDocument.js +24 -0
- package/dist/esm/Dialogs/DialogDocument.js.map +1 -0
- package/dist/esm/Dialogs/DialogFooter.d.ts +24 -0
- package/dist/esm/Dialogs/DialogFooter.d.ts.map +1 -0
- package/dist/esm/Dialogs/DialogFooter.js +65 -0
- package/dist/esm/Dialogs/DialogFooter.js.map +1 -0
- package/dist/esm/Dialogs/DialogHeader.d.ts +31 -0
- package/dist/esm/Dialogs/DialogHeader.d.ts.map +1 -0
- package/dist/esm/Dialogs/DialogHeader.js +28 -0
- package/dist/esm/Dialogs/DialogHeader.js.map +1 -0
- package/dist/esm/Dialogs/DialogImplementation.d.ts +1 -2
- package/dist/esm/Dialogs/DialogImplementation.d.ts.map +1 -1
- package/dist/esm/Dialogs/DialogImplementation.js +88 -189
- package/dist/esm/Dialogs/DialogImplementation.js.map +1 -1
- package/dist/esm/Dialogs/DialogShells.d.ts +29 -0
- package/dist/esm/Dialogs/DialogShells.d.ts.map +1 -0
- package/dist/esm/Dialogs/DialogShells.js +36 -0
- package/dist/esm/Dialogs/DialogShells.js.map +1 -0
- package/dist/esm/Dialogs/dialogPartAttributes.d.ts +19 -0
- package/dist/esm/Dialogs/dialogPartAttributes.d.ts.map +1 -0
- package/dist/esm/Dialogs/dialogPartAttributes.js +10 -0
- package/dist/esm/Dialogs/dialogPartAttributes.js.map +1 -0
- package/dist/esm/Dialogs/resolveDialogLabels.d.ts +29 -0
- package/dist/esm/Dialogs/resolveDialogLabels.d.ts.map +1 -0
- package/dist/esm/Dialogs/resolveDialogLabels.js +11 -0
- package/dist/esm/Dialogs/resolveDialogLabels.js.map +1 -0
- package/dist/esm/Dialogs/useDialogClose.d.ts +13 -0
- package/dist/esm/Dialogs/useDialogClose.d.ts.map +1 -0
- package/dist/esm/Dialogs/useDialogClose.js +32 -0
- package/dist/esm/Dialogs/useDialogClose.js.map +1 -0
- package/dist/esm/Dialogs/useDialogFocus.d.ts +26 -0
- package/dist/esm/Dialogs/useDialogFocus.d.ts.map +1 -0
- package/dist/esm/Dialogs/useDialogFocus.js +56 -0
- package/dist/esm/Dialogs/useDialogFocus.js.map +1 -0
- package/dist/esm/Dialogs/useDialogZIndex.d.ts +9 -0
- package/dist/esm/Dialogs/useDialogZIndex.d.ts.map +1 -0
- package/dist/esm/Dialogs/useDialogZIndex.js +19 -0
- package/dist/esm/Dialogs/useDialogZIndex.js.map +1 -0
- package/dist/esm/SchemaEditor/ReadOnlyTypeCell.d.ts +6 -0
- package/dist/esm/SchemaEditor/ReadOnlyTypeCell.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/ReadOnlyTypeCell.js +19 -0
- package/dist/esm/SchemaEditor/ReadOnlyTypeCell.js.map +1 -0
- package/dist/esm/SchemaEditor/SchemaEditor.d.ts.map +1 -1
- package/dist/esm/SchemaEditor/SchemaEditor.js +44 -514
- package/dist/esm/SchemaEditor/SchemaEditor.js.map +1 -1
- package/dist/esm/SchemaEditor/SchemaEditorNavigation.d.ts +13 -0
- package/dist/esm/SchemaEditor/SchemaEditorNavigation.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/SchemaEditorNavigation.js +36 -0
- package/dist/esm/SchemaEditor/SchemaEditorNavigation.js.map +1 -0
- package/dist/esm/SchemaEditor/SchemaEditorTable.d.ts +34 -0
- package/dist/esm/SchemaEditor/SchemaEditorTable.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/SchemaEditorTable.js +54 -0
- package/dist/esm/SchemaEditor/SchemaEditorTable.js.map +1 -0
- package/dist/esm/SchemaEditor/TypeCell.d.ts.map +1 -1
- package/dist/esm/SchemaEditor/TypeCell.js +14 -80
- package/dist/esm/SchemaEditor/TypeCell.js.map +1 -1
- package/dist/esm/SchemaEditor/TypeCellActions.d.ts +13 -0
- package/dist/esm/SchemaEditor/TypeCellActions.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/TypeCellActions.js +19 -0
- package/dist/esm/SchemaEditor/TypeCellActions.js.map +1 -0
- package/dist/esm/SchemaEditor/resolveTypeChange.d.ts +12 -0
- package/dist/esm/SchemaEditor/resolveTypeChange.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/resolveTypeChange.js +19 -0
- package/dist/esm/SchemaEditor/resolveTypeChange.js.map +1 -0
- package/dist/esm/SchemaEditor/schemaDocument.d.ts +20 -0
- package/dist/esm/SchemaEditor/schemaDocument.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/schemaDocument.js +70 -0
- package/dist/esm/SchemaEditor/schemaDocument.js.map +1 -0
- package/dist/esm/SchemaEditor/schemaEditorMenu.d.ts +30 -0
- package/dist/esm/SchemaEditor/schemaEditorMenu.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/schemaEditorMenu.js +51 -0
- package/dist/esm/SchemaEditor/schemaEditorMenu.js.map +1 -0
- package/dist/esm/SchemaEditor/schemaPropertyEdits.d.ts +33 -0
- package/dist/esm/SchemaEditor/schemaPropertyEdits.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/schemaPropertyEdits.js +134 -0
- package/dist/esm/SchemaEditor/schemaPropertyEdits.js.map +1 -0
- package/dist/esm/SchemaEditor/typeOptions.d.ts +11 -0
- package/dist/esm/SchemaEditor/typeOptions.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/typeOptions.js +20 -0
- package/dist/esm/SchemaEditor/typeOptions.js.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaDocument.d.ts +26 -0
- package/dist/esm/SchemaEditor/useSchemaDocument.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaDocument.js +65 -0
- package/dist/esm/SchemaEditor/useSchemaDocument.js.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaEdits.d.ts +29 -0
- package/dist/esm/SchemaEditor/useSchemaEdits.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaEdits.js +50 -0
- package/dist/esm/SchemaEditor/useSchemaEdits.js.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaNavigation.d.ts +15 -0
- package/dist/esm/SchemaEditor/useSchemaNavigation.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaNavigation.js +24 -0
- package/dist/esm/SchemaEditor/useSchemaNavigation.js.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaRows.d.ts +17 -0
- package/dist/esm/SchemaEditor/useSchemaRows.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/useSchemaRows.js +49 -0
- package/dist/esm/SchemaEditor/useSchemaRows.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DialogResult } from '@cratis/arc.react/dialogs';
|
|
2
|
+
import type { DialogProps } from './Dialog.js';
|
|
3
|
+
type CloseHandlers = Pick<DialogProps, 'onClose' | 'onConfirm' | 'onCancel'>;
|
|
4
|
+
/**
|
|
5
|
+
* Builds the close handler of a dialog: it runs the host's confirm, cancel or close callback,
|
|
6
|
+
* closes through the Arc dialog context when allowed and reports a refused confirmation.
|
|
7
|
+
* @param handlers The host's close, confirm and cancel callbacks.
|
|
8
|
+
* @param onRefused Invoked when a confirmation was refused and the dialog stays open.
|
|
9
|
+
* @returns A handler that closes the dialog with a result.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useDialogClose: (handlers: CloseHandlers, onRefused: () => void) => (result: DialogResult) => Promise<void>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useDialogClose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogClose.d.ts","sourceRoot":"","sources":["../../../Dialogs/useDialogClose.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAU,CAAC;AAE5C,KAAK,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC,CAAC;AAoB7E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAc,aAAa,aAAa,MAAM,IAAI,cAGnD,YAAY,kBAIrC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useDialogContext, DialogResult } from '@cratis/arc.react/dialogs';
|
|
2
|
+
|
|
3
|
+
const isConfirmation = (result) => result === DialogResult.Ok || result === DialogResult.Yes;
|
|
4
|
+
const shouldCloseAfter = async (result, { onClose, onConfirm, onCancel }) => {
|
|
5
|
+
if (isConfirmation(result) && onConfirm)
|
|
6
|
+
return (await onConfirm()) === true;
|
|
7
|
+
if (!isConfirmation(result) && onCancel)
|
|
8
|
+
return (await onCancel()) === true;
|
|
9
|
+
if (onClose)
|
|
10
|
+
return (await onClose(result)) !== false;
|
|
11
|
+
return true;
|
|
12
|
+
};
|
|
13
|
+
const useContextCloseDialog = () => {
|
|
14
|
+
try {
|
|
15
|
+
return useDialogContext()?.closeDialog;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const useDialogClose = (handlers, onRefused) => {
|
|
22
|
+
const closeThroughContext = useContextCloseDialog();
|
|
23
|
+
return async (result) => {
|
|
24
|
+
if (await shouldCloseAfter(result, handlers))
|
|
25
|
+
closeThroughContext?.(result);
|
|
26
|
+
else if (isConfirmation(result))
|
|
27
|
+
onRefused();
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { useDialogClose };
|
|
32
|
+
//# sourceMappingURL=useDialogClose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogClose.js","sources":["../../../Dialogs/useDialogClose.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { DialogResult, useDialogContext } from '@cratis/arc.react/dialogs';\nimport type { DialogProps } from './Dialog';\n\ntype CloseHandlers = Pick<DialogProps, 'onClose' | 'onConfirm' | 'onCancel'>;\n\nconst isConfirmation = (result: DialogResult) => result === DialogResult.Ok || result === DialogResult.Yes;\n\n/** Runs the host's handler for a result and reports whether the dialog should close. */\nconst shouldCloseAfter = async (result: DialogResult, { onClose, onConfirm, onCancel }: CloseHandlers) => {\n if (isConfirmation(result) && onConfirm) return (await onConfirm()) === true;\n if (!isConfirmation(result) && onCancel) return (await onCancel()) === true;\n if (onClose) return (await onClose(result)) !== false;\n return true;\n};\n\nconst useContextCloseDialog = () => {\n try {\n return useDialogContext()?.closeDialog;\n } catch {\n return undefined;\n }\n};\n\n/**\n * Builds the close handler of a dialog: it runs the host's confirm, cancel or close callback,\n * closes through the Arc dialog context when allowed and reports a refused confirmation.\n * @param handlers The host's close, confirm and cancel callbacks.\n * @param onRefused Invoked when a confirmation was refused and the dialog stays open.\n * @returns A handler that closes the dialog with a result.\n */\nexport const useDialogClose = (handlers: CloseHandlers, onRefused: () => void) => {\n const closeThroughContext = useContextCloseDialog();\n\n return async (result: DialogResult) => {\n if (await shouldCloseAfter(result, handlers)) closeThroughContext?.(result);\n else if (isConfirmation(result)) onRefused();\n };\n};\n"],"names":[],"mappings":";;AAQA,MAAM,cAAc,GAAG,CAAC,MAAoB,KAAK,MAAM,KAAK,YAAY,CAAC,EAAE,IAAI,MAAM,KAAK,YAAY,CAAC,GAAG;AAG1G,MAAM,gBAAgB,GAAG,OAAO,MAAoB,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAiB,KAAI;AACrG,IAAA,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,SAAS;AAAE,QAAA,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,IAAI;AAC5E,IAAA,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,QAAQ;AAAE,QAAA,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,IAAI;AAC3E,IAAA,IAAI,OAAO;QAAE,OAAO,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK;AACrD,IAAA,OAAO,IAAI;AACf,CAAC;AAED,MAAM,qBAAqB,GAAG,MAAK;AAC/B,IAAA,IAAI;AACA,QAAA,OAAO,gBAAgB,EAAE,EAAE,WAAW;IAC1C;AAAE,IAAA,MAAM;AACJ,QAAA,OAAO,SAAS;IACpB;AACJ,CAAC;MASY,cAAc,GAAG,CAAC,QAAuB,EAAE,SAAqB,KAAI;AAC7E,IAAA,MAAM,mBAAmB,GAAG,qBAAqB,EAAE;AAEnD,IAAA,OAAO,OAAO,MAAoB,KAAI;AAClC,QAAA,IAAI,MAAM,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC;AAAE,YAAA,mBAAmB,GAAG,MAAM,CAAC;aACtE,IAAI,cAAc,CAAC,MAAM,CAAC;AAAE,YAAA,SAAS,EAAE;AAChD,IAAA,CAAC;AACL;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DialogInitialFocus } from './DialogInitialFocus.js';
|
|
2
|
+
interface DialogFocusOptions {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
isBusy: boolean;
|
|
5
|
+
initialFocus: DialogInitialFocus;
|
|
6
|
+
refusedMessage: string;
|
|
7
|
+
}
|
|
8
|
+
interface Announcement {
|
|
9
|
+
key: number;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Owns the dialog's focus behavior: initial focus, keeping focus off `<body>` while work is in
|
|
14
|
+
* flight, and returning focus and announcing the outcome after a refused confirm.
|
|
15
|
+
* @param options The dialog's visibility, busy state, resolved initial focus and refusal message.
|
|
16
|
+
* @returns The refs to attach to title and buttons, the live-region announcement and a refusal notifier.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useDialogFocus: ({ visible, isBusy, initialFocus, refusedMessage }: DialogFocusOptions) => {
|
|
19
|
+
titleRef: import("react").RefObject<HTMLHeadingElement | null>;
|
|
20
|
+
confirmRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
21
|
+
cancelRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
22
|
+
announcement: Announcement | null;
|
|
23
|
+
onRefused: () => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useDialogFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogFocus.d.ts","sourceRoot":"","sources":["../../../Dialogs/useDialogFocus.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAE1D,UAAU,kBAAkB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,YAAY;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB;AAQD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,sDAAuD,kBAAkB;;;;;;CA+CnG,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { DialogInitialFocus } from './DialogInitialFocus.js';
|
|
3
|
+
|
|
4
|
+
const focusTitle = (title) => {
|
|
5
|
+
if (!title)
|
|
6
|
+
return;
|
|
7
|
+
title.tabIndex = -1;
|
|
8
|
+
title.focus();
|
|
9
|
+
};
|
|
10
|
+
const useDialogFocus = ({ visible, isBusy, initialFocus, refusedMessage }) => {
|
|
11
|
+
const titleRef = useRef(null);
|
|
12
|
+
const confirmRef = useRef(null);
|
|
13
|
+
const cancelRef = useRef(null);
|
|
14
|
+
const [refusals, setRefusals] = useState(0);
|
|
15
|
+
const handledRefusals = useRef(0);
|
|
16
|
+
const [announcement, setAnnouncement] = useState(null);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (!visible)
|
|
19
|
+
return;
|
|
20
|
+
const target = initialFocus === DialogInitialFocus.Confirm
|
|
21
|
+
? confirmRef.current
|
|
22
|
+
: initialFocus === DialogInitialFocus.Cancel
|
|
23
|
+
? cancelRef.current
|
|
24
|
+
: titleRef.current;
|
|
25
|
+
const frame = requestAnimationFrame(() => target?.focus());
|
|
26
|
+
return () => cancelAnimationFrame(frame);
|
|
27
|
+
}, [initialFocus, visible]);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!visible || !isBusy)
|
|
30
|
+
return;
|
|
31
|
+
setAnnouncement(null);
|
|
32
|
+
const active = document.activeElement;
|
|
33
|
+
if (active && active !== document.body)
|
|
34
|
+
return;
|
|
35
|
+
if (confirmRef.current)
|
|
36
|
+
confirmRef.current.focus();
|
|
37
|
+
else
|
|
38
|
+
focusTitle(titleRef.current);
|
|
39
|
+
}, [isBusy, visible]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (refusals === handledRefusals.current || isBusy)
|
|
42
|
+
return;
|
|
43
|
+
handledRefusals.current = refusals;
|
|
44
|
+
const confirm = confirmRef.current;
|
|
45
|
+
if (confirm && !confirm.disabled)
|
|
46
|
+
confirm.focus();
|
|
47
|
+
else
|
|
48
|
+
focusTitle(titleRef.current);
|
|
49
|
+
setAnnouncement({ key: refusals, text: refusedMessage });
|
|
50
|
+
}, [refusals, isBusy, refusedMessage]);
|
|
51
|
+
const onRefused = () => setRefusals((count) => count + 1);
|
|
52
|
+
return { titleRef, confirmRef, cancelRef, announcement, onRefused };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { useDialogFocus };
|
|
56
|
+
//# sourceMappingURL=useDialogFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogFocus.js","sources":["../../../Dialogs/useDialogFocus.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useEffect, useRef, useState } from 'react';\nimport { DialogInitialFocus } from './DialogInitialFocus';\n\ninterface DialogFocusOptions {\n visible: boolean;\n isBusy: boolean;\n initialFocus: DialogInitialFocus;\n refusedMessage: string;\n}\n\ninterface Announcement {\n key: number;\n text: string;\n}\n\nconst focusTitle = (title: HTMLHeadingElement | null) => {\n if (!title) return;\n title.tabIndex = -1;\n title.focus();\n};\n\n/**\n * Owns the dialog's focus behavior: initial focus, keeping focus off `<body>` while work is in\n * flight, and returning focus and announcing the outcome after a refused confirm.\n * @param options The dialog's visibility, busy state, resolved initial focus and refusal message.\n * @returns The refs to attach to title and buttons, the live-region announcement and a refusal notifier.\n */\nexport const useDialogFocus = ({ visible, isBusy, initialFocus, refusedMessage }: DialogFocusOptions) => {\n const titleRef = useRef<HTMLHeadingElement>(null);\n const confirmRef = useRef<HTMLButtonElement>(null);\n const cancelRef = useRef<HTMLButtonElement>(null);\n const [refusals, setRefusals] = useState(0);\n const handledRefusals = useRef(0);\n const [announcement, setAnnouncement] = useState<Announcement | null>(null);\n\n useEffect(() => {\n if (!visible) return;\n const target =\n initialFocus === DialogInitialFocus.Confirm\n ? confirmRef.current\n : initialFocus === DialogInitialFocus.Cancel\n ? cancelRef.current\n : titleRef.current;\n const frame = requestAnimationFrame(() => target?.focus());\n return () => cancelAnimationFrame(frame);\n }, [initialFocus, visible]);\n\n // Keyboard focus must never be stranded on <body> while work is in flight: the confirm\n // button stays focusable (aria-disabled), and a focus held by a now-inert field moves to it.\n useEffect(() => {\n if (!visible || !isBusy) return;\n setAnnouncement(null);\n const active = document.activeElement;\n if (active && active !== document.body) return;\n if (confirmRef.current) confirmRef.current.focus();\n else focusTitle(titleRef.current);\n }, [isBusy, visible]);\n\n // A refused confirm (the dialog stays open) returns focus to the confirm button, or to the\n // title when confirm is not enabled, and announces the outcome through the live region.\n useEffect(() => {\n // Each refusal is handled once: a later busy-to-idle change, such as a successful retry,\n // must neither move focus nor announce the earlier refusal again.\n if (refusals === handledRefusals.current || isBusy) return;\n handledRefusals.current = refusals;\n const confirm = confirmRef.current;\n if (confirm && !confirm.disabled) confirm.focus();\n else focusTitle(titleRef.current);\n setAnnouncement({ key: refusals, text: refusedMessage });\n }, [refusals, isBusy, refusedMessage]);\n\n const onRefused = () => setRefusals((count) => count + 1);\n\n return { titleRef, confirmRef, cancelRef, announcement, onRefused };\n};\n"],"names":[],"mappings":";;;AAkBA,MAAM,UAAU,GAAG,CAAC,KAAgC,KAAI;AACpD,IAAA,IAAI,CAAC,KAAK;QAAE;AACZ,IAAA,KAAK,CAAC,QAAQ,GAAG,EAAE;IACnB,KAAK,CAAC,KAAK,EAAE;AACjB,CAAC;AAQM,MAAM,cAAc,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAsB,KAAI;AACpG,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAqB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAoB,IAAI,CAAC;AAClD,IAAA,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC;IACjD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AAC3C,IAAA,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC;IACjC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAsB,IAAI,CAAC;IAE3E,SAAS,CAAC,MAAK;AACX,QAAA,IAAI,CAAC,OAAO;YAAE;AACd,QAAA,MAAM,MAAM,GACR,YAAY,KAAK,kBAAkB,CAAC;cAC9B,UAAU,CAAC;AACb,cAAE,YAAY,KAAK,kBAAkB,CAAC;kBAClC,SAAS,CAAC;AACZ,kBAAE,QAAQ,CAAC,OAAO;AAC5B,QAAA,MAAM,KAAK,GAAG,qBAAqB,CAAC,MAAM,MAAM,EAAE,KAAK,EAAE,CAAC;AAC1D,QAAA,OAAO,MAAM,oBAAoB,CAAC,KAAK,CAAC;AAC5C,IAAA,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAI3B,SAAS,CAAC,MAAK;AACX,QAAA,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM;YAAE;QACzB,eAAe,CAAC,IAAI,CAAC;AACrB,QAAA,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa;AACrC,QAAA,IAAI,MAAM,IAAI,MAAM,KAAK,QAAQ,CAAC,IAAI;YAAE;QACxC,IAAI,UAAU,CAAC,OAAO;AAAE,YAAA,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE;;AAC7C,YAAA,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;AACrC,IAAA,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIrB,SAAS,CAAC,MAAK;AAGX,QAAA,IAAI,QAAQ,KAAK,eAAe,CAAC,OAAO,IAAI,MAAM;YAAE;AACpD,QAAA,eAAe,CAAC,OAAO,GAAG,QAAQ;AAClC,QAAA,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO;AAClC,QAAA,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ;YAAE,OAAO,CAAC,KAAK,EAAE;;AAC5C,YAAA,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;QACjC,eAAe,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAC5D,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;AAEtC,IAAA,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,CAAC,KAAK,KAAK,KAAK,GAAG,CAAC,CAAC;IAEzD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;AACvE;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assigns a dialog a strictly increasing tier for as long as it is visible, so a second
|
|
3
|
+
* dialog opened from a child of this one stacks above it rather than colliding on the same
|
|
4
|
+
* static z-index.
|
|
5
|
+
* @param visible Whether the dialog is visible.
|
|
6
|
+
* @returns The z-index for the dialog's tier, or undefined while it has none.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useDialogZIndex: (visible: boolean) => string | undefined;
|
|
9
|
+
//# sourceMappingURL=useDialogZIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogZIndex.d.ts","sourceRoot":"","sources":["../../../Dialogs/useDialogZIndex.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,YAAa,OAAO,uBAY/C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useState, useLayoutEffect } from 'react';
|
|
2
|
+
import { openDialogTier, closeDialogTier, dialogZIndexForTier } from '../renderer/dialogStack.js';
|
|
3
|
+
|
|
4
|
+
const useDialogZIndex = (visible) => {
|
|
5
|
+
const [dialogTier, setDialogTier] = useState(null);
|
|
6
|
+
useLayoutEffect(() => {
|
|
7
|
+
if (!visible) {
|
|
8
|
+
setDialogTier(null);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const tier = openDialogTier();
|
|
12
|
+
setDialogTier(tier);
|
|
13
|
+
return () => closeDialogTier(tier);
|
|
14
|
+
}, [visible]);
|
|
15
|
+
return dialogTier === null ? undefined : dialogZIndexForTier(dialogTier);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { useDialogZIndex };
|
|
19
|
+
//# sourceMappingURL=useDialogZIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDialogZIndex.js","sources":["../../../Dialogs/useDialogZIndex.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useLayoutEffect, useState } from 'react';\nimport { closeDialogTier, dialogZIndexForTier, openDialogTier } from '../renderer/dialogStack';\n\n/**\n * Assigns a dialog a strictly increasing tier for as long as it is visible, so a second\n * dialog opened from a child of this one stacks above it rather than colliding on the same\n * static z-index.\n * @param visible Whether the dialog is visible.\n * @returns The z-index for the dialog's tier, or undefined while it has none.\n */\nexport const useDialogZIndex = (visible: boolean) => {\n const [dialogTier, setDialogTier] = useState<number | null>(null);\n useLayoutEffect(() => {\n if (!visible) {\n setDialogTier(null);\n return;\n }\n const tier = openDialogTier();\n setDialogTier(tier);\n return () => closeDialogTier(tier);\n }, [visible]);\n return dialogTier === null ? undefined : dialogZIndexForTier(dialogTier);\n};\n"],"names":[],"mappings":";;;AAaO,MAAM,eAAe,GAAG,CAAC,OAAgB,KAAI;IAChD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC;IACjE,eAAe,CAAC,MAAK;QACjB,IAAI,CAAC,OAAO,EAAE;YACV,aAAa,CAAC,IAAI,CAAC;YACnB;QACJ;AACA,QAAA,MAAM,IAAI,GAAG,cAAc,EAAE;QAC7B,aAAa,CAAC,IAAI,CAAC;AACnB,QAAA,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC;AACtC,IAAA,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AACb,IAAA,OAAO,UAAU,KAAK,IAAI,GAAG,SAAS,GAAG,mBAAmB,CAAC,UAAU,CAAC;AAC5E;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { JsonSchemaProperty } from '../types/JsonSchema.js';
|
|
2
|
+
/** The read-only view of an array or object type: a label that offers navigation when there is something to navigate to. */
|
|
3
|
+
export declare const ReadOnlyContainerType: ({ rowData }: {
|
|
4
|
+
rowData: JsonSchemaProperty;
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=ReadOnlyTypeCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadOnlyTypeCell.d.ts","sourceRoot":"","sources":["../../../SchemaEditor/ReadOnlyTypeCell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAiC9D,4HAA4H;AAC5H,eAAO,MAAM,qBAAqB,gBAAiB;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,gCAajF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import * as faIcons from 'react-icons/fa6';
|
|
3
|
+
|
|
4
|
+
const NavigationArrow = () => (jsxs(Fragment, { children: [jsx("div", { style: { flex: 1 } }), jsx("span", { style: { display: 'flex', alignItems: 'center' }, children: jsx(faIcons.FaArrowRight, { style: {
|
|
5
|
+
fontSize: '1rem',
|
|
6
|
+
color: 'var(--cratis-primary-color)',
|
|
7
|
+
} }) })] }));
|
|
8
|
+
const ContainerView = ({ title, text, navigable }) => (jsxs("div", { className: 'cratis:flex cratis:items-center cratis:gap-2 cratis:w-full', style: { height: '100%' }, title: title, children: [jsx("span", { children: text }), navigable && jsx(NavigationArrow, {})] }));
|
|
9
|
+
const ReadOnlyContainerType = ({ rowData }) => {
|
|
10
|
+
if (rowData.type === 'object') {
|
|
11
|
+
return jsx(ContainerView, { title: 'Click to navigate to object properties', text: 'Object', navigable: true });
|
|
12
|
+
}
|
|
13
|
+
const itemType = rowData.items?.type || 'string';
|
|
14
|
+
const isNavigable = itemType === 'object';
|
|
15
|
+
return (jsx(ContainerView, { title: isNavigable ? 'Click to navigate to item definition' : undefined, text: `Array of ${itemType}`, navigable: isNavigable }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { ReadOnlyContainerType };
|
|
19
|
+
//# sourceMappingURL=ReadOnlyTypeCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadOnlyTypeCell.js","sources":["../../../SchemaEditor/ReadOnlyTypeCell.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport * as faIcons from 'react-icons/fa6';\nimport type { JsonSchemaProperty } from '../types/JsonSchema';\n\nconst NavigationArrow = () => (\n <>\n <div style={{ flex: 1 }} />\n <span style={{ display: 'flex', alignItems: 'center' }}>\n <faIcons.FaArrowRight\n style={{\n fontSize: '1rem',\n color: 'var(--cratis-primary-color)',\n }}\n />\n </span>\n </>\n);\n\ninterface ContainerViewProps {\n title: string | undefined;\n text: string;\n navigable: boolean;\n}\n\nconst ContainerView = ({ title, text, navigable }: ContainerViewProps) => (\n <div\n className='cratis:flex cratis:items-center cratis:gap-2 cratis:w-full'\n style={{ height: '100%' }}\n title={title}\n >\n <span>{text}</span>\n {navigable && <NavigationArrow />}\n </div>\n);\n\n/** The read-only view of an array or object type: a label that offers navigation when there is something to navigate to. */\nexport const ReadOnlyContainerType = ({ rowData }: { rowData: JsonSchemaProperty }) => {\n if (rowData.type === 'object') {\n return <ContainerView title='Click to navigate to object properties' text='Object' navigable />;\n }\n const itemType = rowData.items?.type || 'string';\n const isNavigable = itemType === 'object';\n return (\n <ContainerView\n title={isNavigable ? 'Click to navigate to item definition' : undefined}\n text={`Array of ${itemType}`}\n navigable={isNavigable}\n />\n );\n};\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;AAMA,MAAM,eAAe,GAAG,OACpBA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACIC,GAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAI,EAC3BA,GAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAA,QAAA,EAClDA,IAAC,OAAO,CAAC,YAAY,EAAA,EACjB,KAAK,EAAE;AACH,oBAAA,QAAQ,EAAE,MAAM;AAChB,oBAAA,KAAK,EAAE,6BAA6B;iBACvC,EAAA,CACH,EAAA,CACC,CAAA,EAAA,CACR,CACN;AAQD,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAsB,MACjEF,IAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAC,4DAA4D,EACtE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EACzB,KAAK,EAAE,KAAK,EAAA,QAAA,EAAA,CAEZE,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,IAAI,EAAA,CAAQ,EAClB,SAAS,IAAIA,GAAA,CAAC,eAAe,EAAA,EAAA,CAAG,CAAA,EAAA,CAC/B,CACT;MAGY,qBAAqB,GAAG,CAAC,EAAE,OAAO,EAAmC,KAAI;AAClF,IAAA,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE;AAC3B,QAAA,OAAOA,GAAA,CAAC,aAAa,EAAA,EAAC,KAAK,EAAC,wCAAwC,EAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,SAAG;IACnG;IACA,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,EAAE,IAAI,IAAI,QAAQ;AAChD,IAAA,MAAM,WAAW,GAAG,QAAQ,KAAK,QAAQ;IACzC,QACIA,GAAA,CAAC,aAAa,EAAA,EACV,KAAK,EAAE,WAAW,GAAG,sCAAsC,GAAG,SAAS,EACvE,IAAI,EAAE,CAAA,SAAA,EAAY,QAAQ,CAAA,CAAE,EAC5B,SAAS,EAAE,WAAW,EAAA,CACxB;AAEV;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEditor.d.ts","sourceRoot":"","sources":["../../../SchemaEditor/SchemaEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaEditor.d.ts","sourceRoot":"","sources":["../../../SchemaEditor/SchemaEditor.tsx"],"names":[],"mappings":"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"}
|