@nanahoshi/mona-ui 0.36.1 → 0.38.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/docs/api/common.md +1 -1
- package/docs/api/dropdown-list.md +2 -0
- package/docs/api/dropdown-tree.md +81 -0
- package/docs/api/dropdowns.md +34 -8
- package/docs/api/editor.md +67 -0
- package/docs/api/file-upload.md +1 -1
- package/docs/api/i18n.md +49 -4
- package/docs/api/list.md +1 -1
- package/docs/api/locales.md +14 -14
- package/docs/api/multi-select-tree.md +75 -0
- package/docs/api/multi-select.md +3 -1
- package/docs/api/popup.md +1 -1
- package/docs/api/tree-view.md +2 -2
- package/docs/auto-complete.md +2 -0
- package/docs/combo-box.md +2 -0
- package/docs/dropdown-list.md +52 -0
- package/docs/dropdown-tree.md +427 -0
- package/docs/editor.md +238 -9
- package/docs/multi-select-tree.md +353 -0
- package/docs/multi-select.md +6 -0
- package/dropdown-tree/package.json +4 -0
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +40 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +1061 -0
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +701 -60
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1356 -192
- package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +28 -94
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +63 -1
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +80 -37
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +83 -2
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +66 -1
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +30 -1
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +42 -1
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +42 -1
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +42 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +64 -1
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +42 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +64 -1
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +24 -1
- package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +1179 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +42 -7
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -1
- package/i18n/catalogs/en-US.messages.json +26 -1
- package/llms.txt +7 -3
- package/locales/ar-sa/ar-sa.messages.json +26 -1
- package/locales/de-de/de-de.messages.json +26 -1
- package/locales/es-es/es-es.messages.json +26 -1
- package/locales/fr-fr/fr-fr.messages.json +26 -1
- package/locales/id-id/id-id.messages.json +26 -1
- package/locales/it-it/it-it.messages.json +26 -1
- package/locales/ja-jp/ja-jp.messages.json +26 -1
- package/locales/ko-kr/ko-kr.messages.json +26 -1
- package/locales/pl-pl/pl-pl.messages.json +26 -1
- package/locales/pt-br/pt-br.messages.json +26 -1
- package/locales/ru-ru/ru-ru.messages.json +26 -1
- package/locales/tr-tr/tr-tr.messages.json +26 -1
- package/locales/zh-cn/zh-cn.messages.json +26 -1
- package/locales/zh-tw/zh-tw.messages.json +26 -1
- package/multi-select-tree/package.json +4 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +33 -5
- package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +414 -0
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +198 -8
- package/types/nanahoshi-mona-ui-editor.d.ts +124 -2
- package/types/nanahoshi-mona-ui-file-upload.d.ts +1 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +44 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +36 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +37 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +25 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +25 -0
- package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +456 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +43 -7
package/docs/api/common.md
CHANGED
|
@@ -101,7 +101,7 @@ Class.
|
|
|
101
101
|
| `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
|
|
102
102
|
| `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
|
|
103
103
|
|
|
104
|
-
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent), [`ToolbarItemDirective`](toolbar.md#toolbaritemdirective)
|
|
104
|
+
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent), [`ToolbarItemDirective`](toolbar.md#toolbaritemdirective)
|
|
105
105
|
|
|
106
106
|
## `FilterChangeEvent`
|
|
107
107
|
|
|
@@ -16,6 +16,8 @@ Component.
|
|
|
16
16
|
|
|
17
17
|
| Name | Type | Default | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
+
| `adaptiveMode` | `AdaptiveMode` | `"none"` | Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640 pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field. |
|
|
20
|
+
| `adaptiveTitle` | `string` | `""` | Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet shows the field's name. |
|
|
19
21
|
| `aria-describedby` | `string` | `""` | ID of an element that describes the dropdown list, such as help text or an error message. |
|
|
20
22
|
| `aria-label` | `string` | `""` | Accessible name for the host element. Describe what the component represents. When empty, falls back to the placeholder text. |
|
|
21
23
|
| `aria-labelledby` | `string` | `""` | ID of an external element that provides the accessible name for the host element. |
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# `@nanahoshi/mona-ui/dropdown-tree`
|
|
2
|
+
|
|
3
|
+
Everything `@nanahoshi/mona-ui/dropdown-tree` exports.
|
|
4
|
+
|
|
5
|
+
**Guides:** [Dropdown Tree](../dropdown-tree.md)
|
|
6
|
+
|
|
7
|
+
## `DropdownTreeComponent`
|
|
8
|
+
|
|
9
|
+
Component.
|
|
10
|
+
|
|
11
|
+
**Selector:** `mona-dropdown-tree`
|
|
12
|
+
**Type parameters:** `TData = unknown`, `TValue = TData`
|
|
13
|
+
**Implements:** `FormValueControl<TValue \| null>`
|
|
14
|
+
|
|
15
|
+
### Inputs
|
|
16
|
+
|
|
17
|
+
| Name | Type | Default | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `adaptiveMode` | `AdaptiveMode` | `"none"` | Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640 pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field. |
|
|
20
|
+
| `adaptiveTitle` | `string` | `""` | Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet shows the field's name. |
|
|
21
|
+
| `aria-describedby` | `string` | `""` | ID of an element that describes the dropdown tree, such as help text or an error message. |
|
|
22
|
+
| `aria-label` | `string` | `""` | Accessible name of the dropdown tree. Describe what it represents. When empty, falls back to the placeholder text. |
|
|
23
|
+
| `aria-labelledby` | `string` | `""` | ID of an external element that provides the accessible name of the dropdown tree. |
|
|
24
|
+
| `children` | `ChildrenSelector<TData>` | `""` | Property name or accessor that gives a node's children, for `mode="hierarchical"`. An accessor may return an observable, which loads the children when the node is first opened; set `hasChildren` with it. |
|
|
25
|
+
| `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
26
|
+
| `data` | `Iterable<TData>` | `[]` | The items of the tree: its root items for `mode="hierarchical"`, or every item for `mode="flat"`. |
|
|
27
|
+
| `disabled` | `boolean` | `false` | Renders the component with reduced visual emphasis and removes pointer interaction. |
|
|
28
|
+
| `hasChildren` | `Predicate<TData> \| null` | `null` | Whether an item has children, before they load. Needed when `children` returns an observable. |
|
|
29
|
+
| `idField` | `string` | `""` | Property name that holds an item's unique id, for `mode="flat"`. |
|
|
30
|
+
| `invalid` | `boolean` | `false` | Marks the field as invalid. Set automatically by the `FormField` directive when bound via `[formField]`. |
|
|
31
|
+
| `itemDisabled` | `DropdownFieldPredicateType<TData>` | `undefined` | Predicate or field name that tells whether an item is disabled. A disabled item can't be selected or opened, and neither can its children. |
|
|
32
|
+
| `loading` | `boolean` | `false` | Shows a loading indicator, in place of the clear button, and marks the field busy. It doesn't block interaction: the field stays usable while data loads. |
|
|
33
|
+
| `mode` | `DataStructure` | `"hierarchical"` | Shape of `data`: `"hierarchical"` for items that hold their children (see `children`), or `"flat"` for one list linked by `idField` and `parentIdField`. |
|
|
34
|
+
| `parentIdField` | `string` | `""` | Property name that holds an item's parent id, for `mode="flat"`. Items without one are roots. |
|
|
35
|
+
| `placeholder` | `string` | `""` | Placeholder text shown when no value is selected. It also names the dropdown tree when neither `aria-label` nor `aria-labelledby` is set. |
|
|
36
|
+
| `popupClass` | `string` | `""` | Additional CSS classes applied to the popup element. |
|
|
37
|
+
| `popupHeight` | `ListSizeInputType` | `null` | Maximum height of the popup, in pixels or as a CSS length. Shorter trees shrink to fit. When unset, the popup is at most 200 pixels tall. |
|
|
38
|
+
| `popupWidth` | `ListSizeInputType` | `null` | Width of the popup element. When unset, the popup is as wide as the field. |
|
|
39
|
+
| `readonly` | `boolean` | `false` | Prevents value changes while preserving the component's visual state. |
|
|
40
|
+
| `required` | `boolean` | `false` | Marks the field as required for form validation. |
|
|
41
|
+
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the component. |
|
|
42
|
+
| `showClearButton` | `boolean` | `false` | Shows a clear button that resets the selected value when clicked. |
|
|
43
|
+
| `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the component's dimensions. |
|
|
44
|
+
| `textField` | `DropdownFieldSelectorType<TData, string>` | `undefined` | Property name or accessor that gives an item's text. When unset, the item itself is the text. |
|
|
45
|
+
| `touched` | `boolean` | `false` | Marks the control as touched. Set automatically by the `FormField` directive when bound via `[formField]`. |
|
|
46
|
+
| `value` (two-way) | `TValue \| null` | `null` | The selected item, two-way bindable and compatible with Signal Forms via `[formField]`. It's the data item, or with `valuePrimitive`, the value `valueField` gives for it. `null` means nothing is selected. |
|
|
47
|
+
| `valueField` | `DropdownFieldSelectorType<TData, unknown>` | `undefined` | Property name or accessor that gives an item's value: what identifies the item, matches a value set from code to its node, and is the value with `valuePrimitive`. When unset, the item itself is the value. It should be a stable, unique scalar. |
|
|
48
|
+
| `valuePrimitive` | `boolean` | `false` | Whether the value is what `valueField` gives for the selected item (`true`), or the item itself (`false`). |
|
|
49
|
+
|
|
50
|
+
### Outputs
|
|
51
|
+
|
|
52
|
+
| Name | Type | Description |
|
|
53
|
+
| --- | --- | --- |
|
|
54
|
+
| `close` | `PopupCloseEvent<unknown>` | Emitted when the popup is about to close. This event is preventable. |
|
|
55
|
+
| `closed` | `void` | Emitted after the popup closes. |
|
|
56
|
+
| `open` | `PreventableEvent<Event>` | Emitted when the popup is about to open. This event is preventable. |
|
|
57
|
+
| `opened` | `void` | Emitted after the popup opens. |
|
|
58
|
+
| `touch` | `void` | Emitted when focus leaves the dropdown tree. Moving between it, its clear button and its popup doesn't count. The `FormField` directive listens to this to mark the field as touched. |
|
|
59
|
+
| `valueChange` | `TValue \| null` | Emitted when `value` changes. |
|
|
60
|
+
|
|
61
|
+
### Methods
|
|
62
|
+
|
|
63
|
+
| Signature | Description |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| `focus(options?: FocusOptions): void` | Moves focus to the dropdown tree. |
|
|
66
|
+
|
|
67
|
+
## `DropdownTreeValueTemplateDirective`
|
|
68
|
+
|
|
69
|
+
Directive.
|
|
70
|
+
|
|
71
|
+
Renders the selected item in the field. Its context's `$implicit` is the item, or `null` with nothing selected.
|
|
72
|
+
|
|
73
|
+
**Selector:** `ng-template[monaDropDownTreeValueTemplate]`
|
|
74
|
+
|
|
75
|
+
## `DROPDOWN_TREE_DEFAULT_MESSAGES`
|
|
76
|
+
|
|
77
|
+
Constant.
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
const DROPDOWN_TREE_DEFAULT_MESSAGES: MonaDropdownTreeMessages;
|
|
81
|
+
```
|
package/docs/api/dropdowns.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Everything `@nanahoshi/mona-ui/dropdowns` exports.
|
|
4
4
|
|
|
5
|
-
**Guides:** [Auto Complete](../auto-complete.md), [Combo Box](../combo-box.md), [Dropdown List](../dropdown-list.md), [Multi Select](../multi-select.md)
|
|
5
|
+
**Guides:** [Auto Complete](../auto-complete.md), [Combo Box](../combo-box.md), [Dropdown List](../dropdown-list.md), [Dropdown Tree](../dropdown-tree.md), [Multi Select](../multi-select.md), [Multi Select Tree](../multi-select-tree.md)
|
|
6
6
|
|
|
7
7
|
## `DropdownFilterableDirective`
|
|
8
8
|
|
|
9
9
|
Directive.
|
|
10
10
|
|
|
11
|
-
**Selector:** `mona-auto-complete[monaDropDownFilterable], mona-dropdown-list[monaDropDownFilterable], mona-combo-box[monaDropDownFilterable], mona-multi-select[monaDropDownFilterable]`
|
|
11
|
+
**Selector:** `mona-auto-complete[monaDropDownFilterable], mona-dropdown-list[monaDropDownFilterable], mona-combo-box[monaDropDownFilterable], mona-dropdown-tree[monaDropDownFilterable], mona-multi-select[monaDropDownFilterable], mona-multi-select-tree[monaDropDownFilterable]`
|
|
12
12
|
|
|
13
13
|
### Inputs
|
|
14
14
|
|
|
@@ -60,7 +60,7 @@ Directive.
|
|
|
60
60
|
|
|
61
61
|
Directive.
|
|
62
62
|
|
|
63
|
-
**Selector:** `ng-template[monaDropDownFooterTemplate], ng-template[monaAutoCompleteFooterTemplate], ng-template[monaDropDownListFooterTemplate], ng-template[monaDropDownTreeFooterTemplate], ng-template[monaComboBoxFooterTemplate], ng-template[monaMultiSelectFooterTemplate]`
|
|
63
|
+
**Selector:** `ng-template[monaDropDownFooterTemplate], ng-template[monaAutoCompleteFooterTemplate], ng-template[monaDropDownListFooterTemplate], ng-template[monaDropDownTreeFooterTemplate], ng-template[monaComboBoxFooterTemplate], ng-template[monaMultiSelectFooterTemplate], ng-template[monaMultiSelectTreeFooterTemplate]`
|
|
64
64
|
|
|
65
65
|
## `DropdownGroupHeaderTemplateDirective`
|
|
66
66
|
|
|
@@ -72,13 +72,13 @@ Directive.
|
|
|
72
72
|
|
|
73
73
|
Directive.
|
|
74
74
|
|
|
75
|
-
**Selector:** `ng-template[monaDropDownHeaderTemplate], ng-template[monaAutoCompleteHeaderTemplate], ng-template[monaDropDownListHeaderTemplate], ng-template[monaDropDownTreeHeaderTemplate], ng-template[monaComboBoxHeaderTemplate], ng-template[monaMultiSelectHeaderTemplate]`
|
|
75
|
+
**Selector:** `ng-template[monaDropDownHeaderTemplate], ng-template[monaAutoCompleteHeaderTemplate], ng-template[monaDropDownListHeaderTemplate], ng-template[monaDropDownTreeHeaderTemplate], ng-template[monaComboBoxHeaderTemplate], ng-template[monaMultiSelectHeaderTemplate], ng-template[monaMultiSelectTreeHeaderTemplate]`
|
|
76
76
|
|
|
77
77
|
## `DropdownItemTemplateDirective`
|
|
78
78
|
|
|
79
79
|
Directive.
|
|
80
80
|
|
|
81
|
-
**Selector:** `ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate]`
|
|
81
|
+
**Selector:** `ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaDropDownTreeItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate], ng-template[monaMultiSelectTreeItemTemplate]`
|
|
82
82
|
|
|
83
83
|
## `DropdownListPopupHandlerDirective`
|
|
84
84
|
|
|
@@ -90,7 +90,7 @@ Directive.
|
|
|
90
90
|
|
|
91
91
|
Directive.
|
|
92
92
|
|
|
93
|
-
**Selector:** `ng-template[monaDropDownNoDataTemplate], ng-template[monaAutoCompleteNoDataTemplate], ng-template[monaDropDownListNoDataTemplate], ng-template[monaDropDownTreeNoDataTemplate], ng-template[monaComboBoxNoDataTemplate], ng-template[monaMultiSelectNoDataTemplate]`
|
|
93
|
+
**Selector:** `ng-template[monaDropDownNoDataTemplate], ng-template[monaAutoCompleteNoDataTemplate], ng-template[monaDropDownListNoDataTemplate], ng-template[monaDropDownTreeNoDataTemplate], ng-template[monaComboBoxNoDataTemplate], ng-template[monaMultiSelectNoDataTemplate], ng-template[monaMultiSelectTreeNoDataTemplate]`
|
|
94
94
|
|
|
95
95
|
## `DropdownPrefixTemplateDirective`
|
|
96
96
|
|
|
@@ -151,6 +151,32 @@ Interface.
|
|
|
151
151
|
|
|
152
152
|
**Used by:** [`DropdownDataInputToken`](dropdowns.md#dropdowndatainputtoken)
|
|
153
153
|
|
|
154
|
+
## `DropdownSheetData`
|
|
155
|
+
|
|
156
|
+
Interface.
|
|
157
|
+
|
|
158
|
+
What a dropdown passes to the bottom sheet its popup opens as.
|
|
159
|
+
|
|
160
|
+
### Properties
|
|
161
|
+
|
|
162
|
+
| Name | Type | Description |
|
|
163
|
+
| --- | --- | --- |
|
|
164
|
+
| `content` (read-only) | `TemplateRef<unknown>` | The dropdown's popup template, shown below the sheet's header. |
|
|
165
|
+
| `title` (read-only) | `Signal<string>` | The sheet's title: the dropdown's `adaptiveTitle`, or else its name. |
|
|
166
|
+
|
|
167
|
+
## `AdaptiveMode`
|
|
168
|
+
|
|
169
|
+
Type alias.
|
|
170
|
+
|
|
171
|
+
How a dropdown's popup adapts to a small screen: `"auto"` opens it as a sheet along the bottom of the screen when
|
|
172
|
+
the screen is narrower than 640 pixels, and `"none"` always opens it under the field.
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
type AdaptiveMode = "auto" | "none";
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**Used by:** [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent)
|
|
179
|
+
|
|
154
180
|
## `DropdownFieldPredicateType`
|
|
155
181
|
|
|
156
182
|
Type alias.
|
|
@@ -159,7 +185,7 @@ Type alias.
|
|
|
159
185
|
type DropdownFieldPredicateType<TData> = string | Predicate<TData> | null | undefined;
|
|
160
186
|
```
|
|
161
187
|
|
|
162
|
-
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DropdownDataInput`](dropdowns.md#dropdowndatainput), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent)
|
|
188
|
+
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DropdownDataInput`](dropdowns.md#dropdowndatainput), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent)
|
|
163
189
|
|
|
164
190
|
## `DropdownFieldSelectorType`
|
|
165
191
|
|
|
@@ -169,4 +195,4 @@ Type alias.
|
|
|
169
195
|
type DropdownFieldSelectorType<TData, TResult = unknown> = string | Selector<TData, TResult> | null | undefined;
|
|
170
196
|
```
|
|
171
197
|
|
|
172
|
-
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DropdownDataInput`](dropdowns.md#dropdowndatainput), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent)
|
|
198
|
+
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DropdownDataInput`](dropdowns.md#dropdowndatainput), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent)
|
package/docs/api/editor.md
CHANGED
|
@@ -18,14 +18,21 @@ Component.
|
|
|
18
18
|
| `aria-describedby` | `string` | `""` | The id of an element that describes the content, such as a hint or an error message. |
|
|
19
19
|
| `aria-label` | `string` | `""` | The accessible name of the content. Without it or `aria-labelledby`, the content is named "Rich text editor" (translated). |
|
|
20
20
|
| `aria-labelledby` | `string` | `""` | The id of a visible label for the content, such as a `<label>` next to the editor. |
|
|
21
|
+
| `characterLimit` | `number \| null` | `null` | How many characters the content should fit, counted as people see them: the text without the markup, where an emoji or a letter with an accent counts once. Under the content, a count says how many are left. Typing past the limit isn't blocked, so nothing pasted is lost: the count turns into how many are over, and the editor shows as invalid. For a form, validate the value with `countEditorText`. |
|
|
21
22
|
| `class` | `string` | `""` | CSS classes applied to the host element. |
|
|
22
23
|
| `content` | `string \| JSONContent` | — | **Deprecated.** Use `value` (HTML), or `[formField]` with a signal form. To read the JSON, use the `update` event or the `json` property. The initial content of the editor, as HTML or a `JSONContent` document. A later change replaces the document, unless it is the content the editor already has. |
|
|
23
24
|
| `disabled` | `boolean` | `false` | Disables the editor: the content can't be edited or focused for editing, and the toolbar is inert. When bound to a signal form field via `[formField]`, the form sets it. |
|
|
25
|
+
| `imageAccept` | `string` | `"image/*"` | The image files `imageUpload` takes, as an `accept` attribute: MIME types such as `image/png`, `image/*` for any image, and extensions such as `.png`. |
|
|
26
|
+
| `imageMaxFileSize` | `number \| null` | `null` | The largest image file, in bytes, that `imageUpload` takes. Null takes any size. |
|
|
27
|
+
| `imageUpload` | `FileUploadHandler \| null` | `null` | Uploads image files, and returns the image's address: as a promise or an observable, the same way as the file upload's `upload`. With it, the image form takes a file, and images pasted or dropped into the content upload in place, with a placeholder while they do. Without it, images are added by their address. |
|
|
24
28
|
| `invalid` | `boolean` | `false` | Marks the editor as invalid once it has been touched. When bound to a signal form field via `[formField]`, the form sets it. |
|
|
29
|
+
| `mentionSearch` | `EditorMentionSearch \| null` | `null` | Finds the mentions to offer as `@` and a query are typed. With it, a list of suggestions opens at the `@`: the arrow keys move through it, Enter or Tab puts the highlighted one in the content, and Escape closes it. A mention is kept in the HTML as `<span data-type="mention" data-id="…">`. |
|
|
25
30
|
| `placeholder` | `string` | `""` | Text shown in the empty editor, and given to assistive technology as `aria-placeholder`. It is not a name: use a label or `aria-label` too. |
|
|
26
31
|
| `readonly` | `boolean` | `false` | Makes the content read-only and hides the toolbar. When bound to a signal form field via `[formField]`, the form sets it. |
|
|
27
32
|
| `required` | `boolean` | `false` | Marks the editor as required: once touched, an empty editor is invalid. |
|
|
28
33
|
| `settings` | `Partial<EditorSettings>` | — | The settings of the editor. Changing them rebuilds the editor and keeps its document. |
|
|
34
|
+
| `showCharacterCount` | `boolean` | `false` | Shows how many characters the content has, under it. A `characterLimit` shows the count anyway. |
|
|
35
|
+
| `showWordCount` | `boolean` | `false` | Shows how many words the content has, under it. |
|
|
29
36
|
| `touched` | `boolean` | `false` | Sets the touched state. When bound to a signal form field via `[formField]`, the form sets it. |
|
|
30
37
|
| `value` (two-way) | `string` | `""` | The content of the editor as HTML. An empty editor has the value `""`. Use `[(value)]`, or `[formField]` with a signal form. |
|
|
31
38
|
|
|
@@ -55,6 +62,23 @@ Component.
|
|
|
55
62
|
| --- | --- |
|
|
56
63
|
| `focus(options?: FocusOptions): void` | Moves focus into the editor, keeping the selection it had. |
|
|
57
64
|
|
|
65
|
+
## `countEditorText`
|
|
66
|
+
|
|
67
|
+
Function.
|
|
68
|
+
|
|
69
|
+
Counts the characters or words of the editor's HTML value, as the editor's own count does: the text people see,
|
|
70
|
+
without the markup. Use it in a validator for a limit:
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
validate(path.body, ({ value }) =>
|
|
74
|
+
countEditorText(value(), "characters") > 500 ? { kind: "tooLong", message: "Keep it to 500 characters." } : undefined
|
|
75
|
+
);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
function countEditorText(html: string, unit: EditorTextUnit, locale?: string): number;
|
|
80
|
+
```
|
|
81
|
+
|
|
58
82
|
## `EDITOR_DEFAULT_MESSAGES`
|
|
59
83
|
|
|
60
84
|
Constant.
|
|
@@ -78,6 +102,22 @@ The content of the editor after a user change, emitted by `EditorComponent.updat
|
|
|
78
102
|
|
|
79
103
|
**Used by:** [`EditorComponent`](editor.md#editorcomponent)
|
|
80
104
|
|
|
105
|
+
## `EditorMention`
|
|
106
|
+
|
|
107
|
+
Interface.
|
|
108
|
+
|
|
109
|
+
Someone, or something, the content can mention. A mention keeps both: the content shows `@label`, and the HTML
|
|
110
|
+
keeps the id in `data-id` for the page to read, such as to notify the person.
|
|
111
|
+
|
|
112
|
+
### Properties
|
|
113
|
+
|
|
114
|
+
| Name | Type | Description |
|
|
115
|
+
| --- | --- | --- |
|
|
116
|
+
| `id` (read-only) | `string` | What the mention refers to, such as a user id. |
|
|
117
|
+
| `label` (read-only) | `string` | What the mention shows after the `@`, such as a name. |
|
|
118
|
+
|
|
119
|
+
**Used by:** [`EditorMentionSearch`](editor.md#editormentionsearch)
|
|
120
|
+
|
|
81
121
|
## `EditorSettings`
|
|
82
122
|
|
|
83
123
|
Interface.
|
|
@@ -107,6 +147,7 @@ control, and the editor no longer keeps that kind of content.
|
|
|
107
147
|
| `italic` | `boolean` | Whether the toolbar shows the italic button and the editor keeps italic text. |
|
|
108
148
|
| `link` | `boolean` | Whether the toolbar shows the link buttons and the editor keeps links, turning typed URLs into links. |
|
|
109
149
|
| `list` | `boolean` | Whether the toolbar shows the numbered and bulleted list buttons and the editor keeps those lists. |
|
|
150
|
+
| `mention?` | `boolean` | Whether the editor keeps mentions, and offers them as `@` is typed when it has a `mentionSearch`. It has no toolbar control. Optional, unlike the others, so settings written before it still compile. |
|
|
110
151
|
| `strikethrough` | `boolean` | Whether the toolbar shows the strikethrough button and the editor keeps struck-through text. |
|
|
111
152
|
| `subscript` | `boolean` | Whether the toolbar shows the subscript button and the editor keeps subscript text. |
|
|
112
153
|
| `superscript` | `boolean` | Whether the toolbar shows the superscript button and the editor keeps superscript text. |
|
|
@@ -115,3 +156,29 @@ control, and the editor no longer keeps that kind of content.
|
|
|
115
156
|
| `underline` | `boolean` | Whether the toolbar shows the underline button and the editor keeps underlined text. |
|
|
116
157
|
|
|
117
158
|
**Used by:** [`EditorComponent`](editor.md#editorcomponent)
|
|
159
|
+
|
|
160
|
+
## `EditorMentionSearch`
|
|
161
|
+
|
|
162
|
+
Type alias.
|
|
163
|
+
|
|
164
|
+
Finds the mentions to offer for the text typed after `@`, which is empty right after the `@`. It returns them, or a
|
|
165
|
+
promise or an observable of them; a new search replaces one still running, so an observable can be HttpClient's
|
|
166
|
+
request. Return a few, such as the first ten matches: the list doesn't page.
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
type EditorMentionSearch = ( query: string ) => Iterable<EditorMention> | Observable<Iterable<EditorMention>> | Promise<Iterable<EditorMention>>;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Used by:** [`EditorComponent`](editor.md#editorcomponent)
|
|
173
|
+
|
|
174
|
+
## `EditorTextUnit`
|
|
175
|
+
|
|
176
|
+
Type alias.
|
|
177
|
+
|
|
178
|
+
What `countEditorText` counts: characters as people see them, or words.
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
type EditorTextUnit = "characters" | "words";
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**Used by:** [`countEditorText`](editor.md#counteditortext)
|
package/docs/api/file-upload.md
CHANGED
|
@@ -139,7 +139,7 @@ last value does. For a promise, what it resolves to does. A rejected promise or
|
|
|
139
139
|
type FileUploadHandler = (file: File, context: FileUploadContext) => Observable<unknown> | Promise<unknown>;
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
**Used by:** [`FileUploadComponent`](file-upload.md#fileuploadcomponent)
|
|
142
|
+
**Used by:** [`EditorComponent`](editor.md#editorcomponent), [`FileUploadComponent`](file-upload.md#fileuploadcomponent)
|
|
143
143
|
|
|
144
144
|
## `FileUploadRejection`
|
|
145
145
|
|
package/docs/api/i18n.md
CHANGED
|
@@ -1114,13 +1114,26 @@ Interface.
|
|
|
1114
1114
|
|
|
1115
1115
|
### Properties
|
|
1116
1116
|
|
|
1117
|
+
| Name | Type | Description |
|
|
1118
|
+
| --- | --- | --- |
|
|
1119
|
+
| `close` (read-only) | `string` | The button that closes a dropdown's popup when it opens as a bottom sheet on a small screen. |
|
|
1120
|
+
| `itemPosition` (read-only) | `(text: string, position: number, total: number) => string` | |
|
|
1121
|
+
| `noResultsFound` (read-only) | `string` | |
|
|
1122
|
+
| `resultsAvailable` (read-only) | `(count: number) => string` | |
|
|
1123
|
+
|
|
1124
|
+
**Used by:** [`DROPDOWNS_DEFAULT_MESSAGES`](dropdowns.md#dropdowns-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
1125
|
+
|
|
1126
|
+
## `MonaDropdownTreeMessages`
|
|
1127
|
+
|
|
1128
|
+
Interface.
|
|
1129
|
+
|
|
1130
|
+
### Properties
|
|
1131
|
+
|
|
1117
1132
|
| Name | Type |
|
|
1118
1133
|
| --- | --- |
|
|
1119
|
-
| `
|
|
1120
|
-
| `noResultsFound` (read-only) | `string` |
|
|
1121
|
-
| `resultsAvailable` (read-only) | `(count: number) => string` |
|
|
1134
|
+
| `clear` (read-only) | `string` |
|
|
1122
1135
|
|
|
1123
|
-
**Used by:** [`
|
|
1136
|
+
**Used by:** [`DROPDOWN_TREE_DEFAULT_MESSAGES`](dropdown-tree.md#dropdown-tree-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
1124
1137
|
|
|
1125
1138
|
## `MonaEditorMessages`
|
|
1126
1139
|
|
|
@@ -1146,6 +1159,10 @@ Interface.
|
|
|
1146
1159
|
| `backgroundColor` (read-only) | `string` | The label of the toolbar color picker that sets the text's highlight color. |
|
|
1147
1160
|
| `bold` (read-only) | `string` | The label of the toolbar button that toggles bold. |
|
|
1148
1161
|
| `cancel` (read-only) | `string` | The label of the Cancel button in the link dialog and the insert image form. |
|
|
1162
|
+
| `characterCount` (read-only) | `(count: number) => string` | The count under the content when `showCharacterCount` is set and there's no `characterLimit`. |
|
|
1163
|
+
| `characterLimitHint` (read-only) | `(limit: number) => string` | Describes the content when it has a `characterLimit`, given the limit. Not shown, only read with the content. |
|
|
1164
|
+
| `charactersLeft` (read-only) | `(count: number) => string` | The count under the content while it is within its `characterLimit`, given the characters left. |
|
|
1165
|
+
| `charactersOver` (read-only) | `(count: number) => string` | The count under the content once it is over its `characterLimit`, given the characters over it. |
|
|
1149
1166
|
| `codeBlock` (read-only) | `string` | The label of the toolbar button that toggles a code block. |
|
|
1150
1167
|
| `color` (read-only) | `string` | The label of the toolbar color picker that sets the text color. |
|
|
1151
1168
|
| `contentLabel` (read-only) | `string` | The accessible name of the editable content when the editor has no `aria-label` or `aria-labelledby`. |
|
|
@@ -1153,6 +1170,7 @@ Interface.
|
|
|
1153
1170
|
| `deleteColumn` (read-only) | `string` | The label of the toolbar button that deletes the current column. |
|
|
1154
1171
|
| `deleteRow` (read-only) | `string` | The label of the toolbar button that deletes the current row. |
|
|
1155
1172
|
| `deleteTable` (read-only) | `string` | The label of the toolbar button that deletes the table. |
|
|
1173
|
+
| `editImage` (read-only) | `string` | The title of the image form's window, and the label of the image button, when an image is selected. |
|
|
1156
1174
|
| `editLink` (read-only) | `string` | The title of the link dialog when the selection is already in a link. |
|
|
1157
1175
|
| `enterUrl` (read-only) | `string` | The label of the URL field in the link dialog. |
|
|
1158
1176
|
| `fontSize` (read-only) | `string` | The placeholder of the font size dropdown when the text has no specific size. |
|
|
@@ -1160,6 +1178,11 @@ Interface.
|
|
|
1160
1178
|
| `heading` (read-only) | `(level: number) => string` | The text of a heading level in the format dropdown, given the level number. |
|
|
1161
1179
|
| `heightPx` (read-only) | `string` | The label of the height field in the insert image form. |
|
|
1162
1180
|
| `historyGroup` (read-only) | `string` | The accessible name of the toolbar's undo and redo button group. |
|
|
1181
|
+
| `imageFile` (read-only) | `string` | The accessible name of the file drop zone in the image form, shown when the editor has `imageUpload`. |
|
|
1182
|
+
| `imageInserted` (read-only) | `(name: string) => string` | Announced when a pasted or dropped image has uploaded and is in the content, given the file's name. |
|
|
1183
|
+
| `imageTooLarge` (read-only) | `(name: string, size: string) => string` | Announced when a pasted or dropped image is larger than `imageMaxFileSize`, given its name and the size. |
|
|
1184
|
+
| `imageUploadFailed` (read-only) | `(name: string) => string` | Announced when a pasted or dropped image fails to upload, given the file's name. |
|
|
1185
|
+
| `imageUploading` (read-only) | `(name: string) => string` | Announced when a pasted or dropped image starts uploading, and names its placeholder, given the file's name. |
|
|
1163
1186
|
| `imageUrl` (read-only) | `string` | The label of the image URL field in the insert image form. |
|
|
1164
1187
|
| `indent` (read-only) | `string` | The label of the toolbar button that increases the indentation. |
|
|
1165
1188
|
| `indentGroup` (read-only) | `string` | The accessible name of the toolbar's indent and outdent button group. |
|
|
@@ -1175,12 +1198,17 @@ Interface.
|
|
|
1175
1198
|
| `justify` (read-only) | `string` | The label of the toolbar button that justifies the text. |
|
|
1176
1199
|
| `linkGroup` (read-only) | `string` | The accessible name of the toolbar's link button group. |
|
|
1177
1200
|
| `listGroup` (read-only) | `string` | The accessible name of the toolbar's list button group. |
|
|
1201
|
+
| `mentionNoResults` (read-only) | `string` | Shown in the mention suggestions when the search finds no one. |
|
|
1202
|
+
| `mentionResults` (read-only) | `(count: number) => string` | Announced when the mention suggestions change, given how many there are. |
|
|
1203
|
+
| `mentionSearching` (read-only) | `string` | Shown in the mention suggestions while the search runs. |
|
|
1204
|
+
| `mentionSuggestions` (read-only) | `string` | The accessible name of the mention suggestions list. |
|
|
1178
1205
|
| `mergeCells` (read-only) | `string` | The label of the toolbar button that merges the selected cells. |
|
|
1179
1206
|
| `outdent` (read-only) | `string` | The label of the toolbar button that decreases the indentation. |
|
|
1180
1207
|
| `paragraph` (read-only) | `string` | The text of the plain paragraph option in the format dropdown. |
|
|
1181
1208
|
| `quotation` (read-only) | `string` | The label of the toolbar button that toggles a block quote. |
|
|
1182
1209
|
| `redo` (read-only) | `string` | The label of the toolbar button that redoes the last undone change. |
|
|
1183
1210
|
| `removeLink` (read-only) | `string` | The label of the toolbar button and the link dialog button that remove the link. |
|
|
1211
|
+
| `save` (read-only) | `string` | The label of the image form's button that applies the changes to a selected image. |
|
|
1184
1212
|
| `selectFontFamily` (read-only) | `string` | The label of the toolbar's font family dropdown. |
|
|
1185
1213
|
| `selectFontSize` (read-only) | `string` | The label of the toolbar's font size dropdown. |
|
|
1186
1214
|
| `splitCell` (read-only) | `string` | The label of the toolbar button that splits a merged cell. |
|
|
@@ -1195,6 +1223,7 @@ Interface.
|
|
|
1195
1223
|
| `underline` (read-only) | `string` | The label of the toolbar button that toggles underline. |
|
|
1196
1224
|
| `undo` (read-only) | `string` | The label of the toolbar button that undoes the last change. |
|
|
1197
1225
|
| `widthPx` (read-only) | `string` | The label of the width field in the insert image form. |
|
|
1226
|
+
| `wordCount` (read-only) | `(count: number) => string` | The count under the content when `showWordCount` is set, given the number of words. |
|
|
1198
1227
|
|
|
1199
1228
|
**Used by:** [`EDITOR_DEFAULT_MESSAGES`](editor.md#editor-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
1200
1229
|
|
|
@@ -1310,6 +1339,7 @@ Interface.
|
|
|
1310
1339
|
| `dialog` | `MonaDialogMessages` |
|
|
1311
1340
|
| `dropdownList` | `MonaDropdownListMessages` |
|
|
1312
1341
|
| `dropdowns` | `MonaDropdownsMessages` |
|
|
1342
|
+
| `dropdownTree` | `MonaDropdownTreeMessages` |
|
|
1313
1343
|
| `editor` | `MonaEditorMessages` |
|
|
1314
1344
|
| `fileUpload` | `MonaFileUploadMessages` |
|
|
1315
1345
|
| `filter` | `MonaFilterMessages` |
|
|
@@ -1320,6 +1350,7 @@ Interface.
|
|
|
1320
1350
|
| `listBox` | `MonaListBoxMessages` |
|
|
1321
1351
|
| `maskedTextBox` | `MonaMaskedTextBoxMessages` |
|
|
1322
1352
|
| `multiSelect` | `MonaMultiSelectMessages` |
|
|
1353
|
+
| `multiSelectTree` | `MonaMultiSelectTreeMessages` |
|
|
1323
1354
|
| `notification` | `MonaNotificationMessages` |
|
|
1324
1355
|
| `numericTextBox` | `MonaNumericTextBoxMessages` |
|
|
1325
1356
|
| `otpInput` | `MonaOtpInputMessages` |
|
|
@@ -1391,6 +1422,20 @@ Interface.
|
|
|
1391
1422
|
|
|
1392
1423
|
**Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`MULTI_SELECT_DEFAULT_MESSAGES`](multi-select.md#multi-select-default-messages)
|
|
1393
1424
|
|
|
1425
|
+
## `MonaMultiSelectTreeMessages`
|
|
1426
|
+
|
|
1427
|
+
Interface.
|
|
1428
|
+
|
|
1429
|
+
### Properties
|
|
1430
|
+
|
|
1431
|
+
| Name | Type |
|
|
1432
|
+
| --- | --- |
|
|
1433
|
+
| `clear` (read-only) | `string` |
|
|
1434
|
+
| `itemsCount` (read-only) | `(count: number) => string` |
|
|
1435
|
+
| `removeMoreItems` (read-only) | `(count: number) => string` |
|
|
1436
|
+
|
|
1437
|
+
**Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`MULTI_SELECT_TREE_DEFAULT_MESSAGES`](multi-select-tree.md#multi-select-tree-default-messages)
|
|
1438
|
+
|
|
1394
1439
|
## `MonaNotificationMessages`
|
|
1395
1440
|
|
|
1396
1441
|
Interface.
|
package/docs/api/list.md
CHANGED
|
@@ -70,7 +70,7 @@ Type alias.
|
|
|
70
70
|
type ListSizeInputType = ListSizeType | number;
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
|
|
73
|
+
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
|
|
74
74
|
|
|
75
75
|
## `ListSizeType`
|
|
76
76
|
|