@aws/mynah-ui 4.34.1 → 4.35.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat-item/chat-item-form-items.d.ts +1 -1
- package/dist/components/chat-item/prompt-input/prompt-options.d.ts +1 -1
- package/dist/components/detailed-list/detailed-list-sheet.d.ts +1 -0
- package/dist/components/detailed-list/detailed-list.d.ts +2 -0
- package/dist/components/form-items/form-item-list.d.ts +43 -0
- package/dist/components/sheet.d.ts +10 -1
- package/dist/helper/test-ids.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +27 -3
- package/package.json +3 -1
- package/ui-tests/jest.chromium.config.js +22 -0
- package/ui-tests/jest.webkit.config.js +22 -0
- package/ui-tests/package.json +2 -0
- package/ui-tests/run-browser-tests.ts +30 -0
- package/ui-tests/dist/27f62b53b93858475a7f.ttf +0 -0
- package/ui-tests/dist/d50a80138ec4f2fb5e9f.ttf +0 -0
- package/ui-tests/dist/index.html +0 -9
- package/ui-tests/dist/main.js +0 -1366
- package/ui-tests/dist/main.js.map +0 -1
|
@@ -14,5 +14,5 @@ export declare class PromptOptions {
|
|
|
14
14
|
constructor(props: PromptOptionsProps);
|
|
15
15
|
private readonly getFilterOptionsWrapper;
|
|
16
16
|
readonly update: (filterOptions?: FilterOption[], buttons?: ChatItemButton[]) => void;
|
|
17
|
-
readonly getOptionValues: () => Record<string, string>;
|
|
17
|
+
readonly getOptionValues: () => Record<string, string | string[]>;
|
|
18
18
|
}
|
|
@@ -7,6 +7,7 @@ export interface DetailedListSheetProps {
|
|
|
7
7
|
onFilterValueChange?: (filterValues: Record<string, any>, isValid: boolean) => void;
|
|
8
8
|
onKeyPress?: (e: KeyboardEvent) => void;
|
|
9
9
|
onItemSelect?: (detailedListItem: DetailedListItem) => void;
|
|
10
|
+
onTitleActionClick?: (action: ChatItemButton) => void;
|
|
10
11
|
onActionClick?: (action: ChatItemButton) => void;
|
|
11
12
|
onClose?: () => void;
|
|
12
13
|
};
|
|
@@ -12,6 +12,7 @@ export declare class DetailedListWrapper {
|
|
|
12
12
|
render: ExtendedHTMLElement;
|
|
13
13
|
private readonly detailedListItemGroupsContainer;
|
|
14
14
|
private readonly filtersContainer;
|
|
15
|
+
private readonly filterActionsContainer;
|
|
15
16
|
private readonly headerContainer;
|
|
16
17
|
private readonly props;
|
|
17
18
|
private detailedListItemsBlockData;
|
|
@@ -20,6 +21,7 @@ export declare class DetailedListWrapper {
|
|
|
20
21
|
constructor(props: DetailedListWrapperProps);
|
|
21
22
|
private readonly getHeader;
|
|
22
23
|
private readonly getFilters;
|
|
24
|
+
private readonly getFilterActions;
|
|
23
25
|
private readonly getDetailedListItemGroups;
|
|
24
26
|
private readonly getDetailedListItemElements;
|
|
25
27
|
readonly changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean, scrollIntoView?: boolean) => void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
+
import { ChatItemFormItem, ListItemEntry } from '../../static';
|
|
7
|
+
export interface FormItemListProps {
|
|
8
|
+
items: ChatItemFormItem[];
|
|
9
|
+
entries: ListItemEntry[];
|
|
10
|
+
classNames?: string[];
|
|
11
|
+
attributes?: Record<string, string>;
|
|
12
|
+
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
13
|
+
description?: ExtendedHTMLElement;
|
|
14
|
+
wrapperTestId?: string;
|
|
15
|
+
onChange?: (values: string[]) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare abstract class FormItemListAbstract {
|
|
18
|
+
render: ExtendedHTMLElement;
|
|
19
|
+
setValue: (value: ListItemEntry[]) => void;
|
|
20
|
+
getValue: () => string[];
|
|
21
|
+
setEnabled: (enabled: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare class FormItemListInternal extends FormItemListAbstract {
|
|
24
|
+
private readonly rowWrapper;
|
|
25
|
+
private readonly addButton;
|
|
26
|
+
private readonly props;
|
|
27
|
+
private readonly rows;
|
|
28
|
+
private formData;
|
|
29
|
+
render: ExtendedHTMLElement;
|
|
30
|
+
constructor(props: FormItemListProps);
|
|
31
|
+
private addRow;
|
|
32
|
+
private removeRow;
|
|
33
|
+
setValue: (value: ListItemEntry[]) => void;
|
|
34
|
+
getValue: () => string[];
|
|
35
|
+
setEnabled: (enabled: boolean) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare class FormItemList extends FormItemListAbstract {
|
|
38
|
+
render: ExtendedHTMLElement;
|
|
39
|
+
constructor(props: FormItemListProps);
|
|
40
|
+
setValue: (value: ListItemEntry[]) => void;
|
|
41
|
+
getValue: () => string[];
|
|
42
|
+
setEnabled: (enabled: boolean) => void;
|
|
43
|
+
}
|
|
@@ -2,19 +2,28 @@
|
|
|
2
2
|
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { DomBuilderObject, ExtendedHTMLElement } from '../main';
|
|
5
|
+
import { ChatItemButton, DomBuilderObject, ExtendedHTMLElement } from '../main';
|
|
6
6
|
export interface SheetProps {
|
|
7
7
|
title?: string;
|
|
8
8
|
children?: Array<ExtendedHTMLElement | HTMLElement | string | DomBuilderObject>;
|
|
9
9
|
fullScreen?: boolean;
|
|
10
10
|
description?: string;
|
|
11
|
+
actions?: ChatItemButton[];
|
|
11
12
|
onClose: () => void;
|
|
13
|
+
onActionClick?: (action: ChatItemButton) => void;
|
|
12
14
|
}
|
|
13
15
|
export declare class Sheet {
|
|
16
|
+
private sheetTitle;
|
|
17
|
+
private sheetTitleActions;
|
|
18
|
+
private sheetDescription;
|
|
14
19
|
sheetContainer: ExtendedHTMLElement;
|
|
15
20
|
sheetWrapper: ExtendedHTMLElement;
|
|
16
21
|
onClose: () => void;
|
|
22
|
+
onActionClick: ((action: ChatItemButton) => void) | undefined;
|
|
17
23
|
constructor();
|
|
24
|
+
private readonly getTitle;
|
|
25
|
+
private readonly getTitleActions;
|
|
26
|
+
private readonly getDescription;
|
|
18
27
|
close: () => void;
|
|
19
28
|
show: () => void;
|
|
20
29
|
}
|