@nanahoshi/mona-ui 0.23.0 → 0.23.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/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component--nF_Q7Bd.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-CIMXz60d.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-S2qxwP2M.mjs → nanahoshi-mona-ui-grid-grid-list.component-CpeheGXU.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Dwy8hCm7.mjs → nanahoshi-mona-ui-grid-grid-row.component-B_5ay_Nz.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DArxdAah.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BzKywU5b.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-bduDEm-x.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-IewqeT4m.mjs} +8 -8
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +47 -7
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +386 -180
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +266 -99
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +35 -32
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1 -1
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +1 -0
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +35 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +82 -16
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +50 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +18 -4
- package/types/nanahoshi-mona-ui-locales.d.ts +13 -0
|
@@ -72,7 +72,8 @@ type Action<P = void, R = void> = (arg: P) => R;
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Generates a unique control ID for an element.
|
|
75
|
-
* The ID consists of
|
|
75
|
+
* The ID consists of the `mona-` prefix followed by a random hexadecimal string.
|
|
76
|
+
* It contains only characters that are safe in CSS selectors, so it can be used with `querySelector("#…")` unescaped.
|
|
76
77
|
* @param {number} [level=0] - The nesting level of the element. This increases the length of the generated ID.
|
|
77
78
|
* @param {number} [length=7] - The base length of the random part of the ID.
|
|
78
79
|
* @returns {string} A unique control ID string for use for elements.
|
|
@@ -99,12 +100,12 @@ declare const themeOverlaySurfaceClasses = "\n [background-color:var(--mona-e
|
|
|
99
100
|
declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElement) => void;
|
|
100
101
|
|
|
101
102
|
interface WindowStyleSettings {
|
|
103
|
+
left?: number;
|
|
102
104
|
maxHeight?: number;
|
|
103
105
|
maxWidth?: number;
|
|
104
106
|
minHeight?: number;
|
|
105
107
|
minWidth?: number;
|
|
106
108
|
top?: number;
|
|
107
|
-
left?: number;
|
|
108
109
|
windowClass?: string | string[];
|
|
109
110
|
}
|
|
110
111
|
declare const setWindowStyles: (element: HTMLElement, settings: WindowStyleSettings) => void;
|
|
@@ -136,8 +137,21 @@ declare enum NavigationKeys {
|
|
|
136
137
|
declare const NavigationKeysList: string[];
|
|
137
138
|
declare const isNavigationKey: (key: string) => boolean;
|
|
138
139
|
|
|
139
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Modifier state of a keyboard event. Typeahead is skipped while Ctrl, Meta or Alt is held,
|
|
142
|
+
* so shortcuts such as Ctrl+A or Cmd+C keep their default behavior.
|
|
143
|
+
*/
|
|
144
|
+
interface TypeaheadModifiers {
|
|
145
|
+
readonly altKey?: boolean;
|
|
146
|
+
readonly ctrlKey?: boolean;
|
|
147
|
+
readonly metaKey?: boolean;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Returns whether a `KeyboardEvent.key` value should feed typeahead.
|
|
151
|
+
* Any single letter or digit in any script counts, plus space, `-` and `_`.
|
|
152
|
+
*/
|
|
153
|
+
declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => boolean;
|
|
140
154
|
declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
|
|
141
155
|
|
|
142
156
|
export { AttributeBinderDirective, NavigationKeys, NavigationKeysList, createElementControlId, focusElement, hex2rgba, hsla2hsva, hsva2rgba, isNavigationKey, isTypeaheadKey, isValidHex, isValidHsla, isValidRgb, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setWindowStyles, setupTypeahead, string2Hsla, string2rgba, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, toCssValue };
|
|
143
|
-
export type { Action, AttributeConfig, Channel, ColorScheme, HSL, HSLA, HSV, HSVA, HSVChannel, RGB, RGBA, RGBAChannel, RGBChannel, VariantInputs, WindowStyleSettings };
|
|
157
|
+
export type { Action, AttributeConfig, Channel, ColorScheme, HSL, HSLA, HSV, HSVA, HSVChannel, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs, WindowStyleSettings };
|
|
@@ -239,6 +239,7 @@ declare const MONA_AR_SA_LOCALE: {
|
|
|
239
239
|
selectRow: (rowNumber: number) => string;
|
|
240
240
|
};
|
|
241
241
|
list: {
|
|
242
|
+
filterList: string;
|
|
242
243
|
noData: string;
|
|
243
244
|
};
|
|
244
245
|
listBox: {
|
|
@@ -616,6 +617,7 @@ declare const MONA_ES_ES_LOCALE: {
|
|
|
616
617
|
selectRow: (rowNumber: number) => string;
|
|
617
618
|
};
|
|
618
619
|
list: {
|
|
620
|
+
filterList: string;
|
|
619
621
|
noData: string;
|
|
620
622
|
};
|
|
621
623
|
listBox: {
|
|
@@ -993,6 +995,7 @@ declare const MONA_DE_DE_LOCALE: {
|
|
|
993
995
|
selectRow: (rowNumber: number) => string;
|
|
994
996
|
};
|
|
995
997
|
list: {
|
|
998
|
+
filterList: string;
|
|
996
999
|
noData: string;
|
|
997
1000
|
};
|
|
998
1001
|
listBox: {
|
|
@@ -1370,6 +1373,7 @@ declare const MONA_FR_FR_LOCALE: {
|
|
|
1370
1373
|
selectRow: (rowNumber: number) => string;
|
|
1371
1374
|
};
|
|
1372
1375
|
list: {
|
|
1376
|
+
filterList: string;
|
|
1373
1377
|
noData: string;
|
|
1374
1378
|
};
|
|
1375
1379
|
listBox: {
|
|
@@ -1747,6 +1751,7 @@ declare const MONA_IT_IT_LOCALE: {
|
|
|
1747
1751
|
selectRow: (rowNumber: number) => string;
|
|
1748
1752
|
};
|
|
1749
1753
|
list: {
|
|
1754
|
+
filterList: string;
|
|
1750
1755
|
noData: string;
|
|
1751
1756
|
};
|
|
1752
1757
|
listBox: {
|
|
@@ -2124,6 +2129,7 @@ declare const MONA_JA_JP_LOCALE: {
|
|
|
2124
2129
|
selectRow: (rowNumber: number) => string;
|
|
2125
2130
|
};
|
|
2126
2131
|
list: {
|
|
2132
|
+
filterList: string;
|
|
2127
2133
|
noData: string;
|
|
2128
2134
|
};
|
|
2129
2135
|
listBox: {
|
|
@@ -2501,6 +2507,7 @@ declare const MONA_KO_KR_LOCALE: {
|
|
|
2501
2507
|
selectRow: (rowNumber: number) => string;
|
|
2502
2508
|
};
|
|
2503
2509
|
list: {
|
|
2510
|
+
filterList: string;
|
|
2504
2511
|
noData: string;
|
|
2505
2512
|
};
|
|
2506
2513
|
listBox: {
|
|
@@ -2878,6 +2885,7 @@ declare const MONA_PT_BR_LOCALE: {
|
|
|
2878
2885
|
selectRow: (rowNumber: number) => string;
|
|
2879
2886
|
};
|
|
2880
2887
|
list: {
|
|
2888
|
+
filterList: string;
|
|
2881
2889
|
noData: string;
|
|
2882
2890
|
};
|
|
2883
2891
|
listBox: {
|
|
@@ -3255,6 +3263,7 @@ declare const MONA_ZH_CN_LOCALE: {
|
|
|
3255
3263
|
selectRow: (rowNumber: number) => string;
|
|
3256
3264
|
};
|
|
3257
3265
|
list: {
|
|
3266
|
+
filterList: string;
|
|
3258
3267
|
noData: string;
|
|
3259
3268
|
};
|
|
3260
3269
|
listBox: {
|
|
@@ -3632,6 +3641,7 @@ declare const MONA_ZH_TW_LOCALE: {
|
|
|
3632
3641
|
selectRow: (rowNumber: number) => string;
|
|
3633
3642
|
};
|
|
3634
3643
|
list: {
|
|
3644
|
+
filterList: string;
|
|
3635
3645
|
noData: string;
|
|
3636
3646
|
};
|
|
3637
3647
|
listBox: {
|
|
@@ -4009,6 +4019,7 @@ declare const MONA_TR_TR_LOCALE: {
|
|
|
4009
4019
|
selectRow: (rowNumber: number) => string;
|
|
4010
4020
|
};
|
|
4011
4021
|
list: {
|
|
4022
|
+
filterList: string;
|
|
4012
4023
|
noData: string;
|
|
4013
4024
|
};
|
|
4014
4025
|
listBox: {
|
|
@@ -4386,6 +4397,7 @@ declare const MONA_ID_ID_LOCALE: {
|
|
|
4386
4397
|
selectRow: (rowNumber: number) => string;
|
|
4387
4398
|
};
|
|
4388
4399
|
list: {
|
|
4400
|
+
filterList: string;
|
|
4389
4401
|
noData: string;
|
|
4390
4402
|
};
|
|
4391
4403
|
listBox: {
|
|
@@ -4763,6 +4775,7 @@ declare const MONA_RU_RU_LOCALE: {
|
|
|
4763
4775
|
selectRow: (rowNumber: number) => string;
|
|
4764
4776
|
};
|
|
4765
4777
|
list: {
|
|
4778
|
+
filterList: string;
|
|
4766
4779
|
noData: string;
|
|
4767
4780
|
};
|
|
4768
4781
|
listBox: {
|