@nanahoshi/mona-ui 0.37.0 → 0.39.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/date-picker.md +2 -0
- package/docs/api/date-range-picker.md +2 -0
- package/docs/api/datetime-picker.md +2 -0
- 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/i18n.md +33 -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/time-picker.md +2 -0
- package/docs/api/tree-view.md +2 -2
- package/docs/auto-complete.md +2 -0
- package/docs/combo-box.md +2 -0
- package/docs/date-picker.md +5 -1
- package/docs/date-range-picker.md +5 -1
- package/docs/datetime-picker.md +5 -1
- package/docs/dropdown-list.md +52 -0
- package/docs/dropdown-tree.md +427 -0
- package/docs/multi-select-tree.md +353 -0
- package/docs/multi-select.md +6 -0
- package/docs/time-picker.md +5 -1
- package/dropdown-tree/package.json +4 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +36 -2
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +37 -3
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +52 -5
- 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 +730 -60
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -2
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +4 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs → nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs → nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs} +3 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs} +2 -2
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +8 -4
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +80 -37
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +7 -0
- 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-time-picker.mjs +39 -4
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -1
- package/i18n/catalogs/en-US.messages.json +9 -0
- package/llms.txt +6 -2
- package/locales/ar-sa/ar-sa.messages.json +9 -0
- package/locales/de-de/de-de.messages.json +9 -0
- package/locales/es-es/es-es.messages.json +9 -0
- package/locales/fr-fr/fr-fr.messages.json +9 -0
- package/locales/id-id/id-id.messages.json +9 -0
- package/locales/it-it/it-it.messages.json +9 -0
- package/locales/ja-jp/ja-jp.messages.json +9 -0
- package/locales/ko-kr/ko-kr.messages.json +9 -0
- package/locales/pl-pl/pl-pl.messages.json +9 -0
- package/locales/pt-br/pt-br.messages.json +9 -0
- package/locales/ru-ru/ru-ru.messages.json +9 -0
- package/locales/tr-tr/tr-tr.messages.json +9 -0
- package/locales/zh-cn/zh-cn.messages.json +9 -0
- package/locales/zh-tw/zh-tw.messages.json +9 -0
- package/multi-select-tree/package.json +4 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-date-picker.d.ts +25 -1
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +26 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +34 -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 +218 -9
- package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +36 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -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/types/nanahoshi-mona-ui-time-picker.d.ts +29 -2
|
@@ -2002,6 +2002,8 @@ var EditorFontFamilyComponent = class EditorFontFamilyComponent {
|
|
|
2002
2002
|
type: DropdownListComponent,
|
|
2003
2003
|
selector: "mona-dropdown-list",
|
|
2004
2004
|
inputs: [
|
|
2005
|
+
"adaptiveMode",
|
|
2006
|
+
"adaptiveTitle",
|
|
2005
2007
|
"aria-describedby",
|
|
2006
2008
|
"aria-label",
|
|
2007
2009
|
"aria-labelledby",
|
|
@@ -2042,7 +2044,7 @@ var EditorFontFamilyComponent = class EditorFontFamilyComponent {
|
|
|
2042
2044
|
{
|
|
2043
2045
|
kind: "directive",
|
|
2044
2046
|
type: DropdownItemTemplateDirective,
|
|
2045
|
-
selector: " ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate] "
|
|
2047
|
+
selector: " ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaDropDownTreeItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate], ng-template[monaMultiSelectTreeItemTemplate] "
|
|
2046
2048
|
}
|
|
2047
2049
|
]
|
|
2048
2050
|
});
|
|
@@ -2198,6 +2200,8 @@ var EditorFontSizeComponent = class EditorFontSizeComponent {
|
|
|
2198
2200
|
type: DropdownListComponent,
|
|
2199
2201
|
selector: "mona-dropdown-list",
|
|
2200
2202
|
inputs: [
|
|
2203
|
+
"adaptiveMode",
|
|
2204
|
+
"adaptiveTitle",
|
|
2201
2205
|
"aria-describedby",
|
|
2202
2206
|
"aria-label",
|
|
2203
2207
|
"aria-labelledby",
|
|
@@ -2319,6 +2323,8 @@ var EditorHeadingsComponent = class EditorHeadingsComponent {
|
|
|
2319
2323
|
type: DropdownListComponent,
|
|
2320
2324
|
selector: "mona-dropdown-list",
|
|
2321
2325
|
inputs: [
|
|
2326
|
+
"adaptiveMode",
|
|
2327
|
+
"adaptiveTitle",
|
|
2322
2328
|
"aria-describedby",
|
|
2323
2329
|
"aria-label",
|
|
2324
2330
|
"aria-labelledby",
|
|
@@ -2359,7 +2365,7 @@ var EditorHeadingsComponent = class EditorHeadingsComponent {
|
|
|
2359
2365
|
{
|
|
2360
2366
|
kind: "directive",
|
|
2361
2367
|
type: DropdownItemTemplateDirective,
|
|
2362
|
-
selector: " ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate] "
|
|
2368
|
+
selector: " ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaDropDownTreeItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate], ng-template[monaMultiSelectTreeItemTemplate] "
|
|
2363
2369
|
}
|
|
2364
2370
|
]
|
|
2365
2371
|
});
|
|
@@ -811,6 +811,8 @@ var FilterMenuComponent = class FilterMenuComponent {
|
|
|
811
811
|
type: DropdownListComponent,
|
|
812
812
|
selector: "mona-dropdown-list",
|
|
813
813
|
inputs: [
|
|
814
|
+
"adaptiveMode",
|
|
815
|
+
"adaptiveTitle",
|
|
814
816
|
"aria-describedby",
|
|
815
817
|
"aria-label",
|
|
816
818
|
"aria-labelledby",
|
|
@@ -919,6 +921,8 @@ var FilterMenuComponent = class FilterMenuComponent {
|
|
|
919
921
|
type: DatePickerComponent,
|
|
920
922
|
selector: "mona-date-picker",
|
|
921
923
|
inputs: [
|
|
924
|
+
"adaptiveMode",
|
|
925
|
+
"adaptiveTitle",
|
|
922
926
|
"aria-describedby",
|
|
923
927
|
"aria-label",
|
|
924
928
|
"aria-labelledby",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GridService, I as gridRowDragPreviewThemeVariants, P as gridListTableThemeVariants, W as GridLockedCellDirective, j as gridListBaseThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs";
|
|
2
|
-
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-
|
|
2
|
+
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs";
|
|
3
3
|
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs";
|
|
4
4
|
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -471,4 +471,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
471
471
|
});
|
|
472
472
|
export { GridListComponent };
|
|
473
473
|
|
|
474
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-list.component-
|
|
474
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs.map
|
|
@@ -692,6 +692,8 @@ var GridEditorComponent = class GridEditorComponent {
|
|
|
692
692
|
type: DatePickerComponent,
|
|
693
693
|
selector: "mona-date-picker",
|
|
694
694
|
inputs: [
|
|
695
|
+
"adaptiveMode",
|
|
696
|
+
"adaptiveTitle",
|
|
695
697
|
"aria-describedby",
|
|
696
698
|
"aria-label",
|
|
697
699
|
"aria-labelledby",
|
|
@@ -2127,4 +2129,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2127
2129
|
});
|
|
2128
2130
|
export { GridCellDirective as i, GridGroupRowComponent as n, GridAddRowComponent as r, GridRowComponent as t };
|
|
2129
2131
|
|
|
2130
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-row.component-
|
|
2132
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GridService, P as gridListTableThemeVariants, Z as GridNavigationService, _ as gridFooterThemeVariants, g as gridFooterTableThemeVariants, j as gridListBaseThemeVariants } from "./nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs";
|
|
2
|
-
import { n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-
|
|
2
|
+
import { n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs";
|
|
3
3
|
import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs";
|
|
4
4
|
import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -327,4 +327,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
327
327
|
});
|
|
328
328
|
export { GridVirtualListComponent };
|
|
329
329
|
|
|
330
|
-
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
330
|
+
//# sourceMappingURL=nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs.map
|
|
@@ -4027,6 +4027,8 @@ var GridFilterRowCellComponent = class GridFilterRowCellComponent {
|
|
|
4027
4027
|
type: DatePickerComponent,
|
|
4028
4028
|
selector: "mona-date-picker",
|
|
4029
4029
|
inputs: [
|
|
4030
|
+
"adaptiveMode",
|
|
4031
|
+
"adaptiveTitle",
|
|
4030
4032
|
"aria-describedby",
|
|
4031
4033
|
"aria-label",
|
|
4032
4034
|
"aria-labelledby",
|
|
@@ -4067,6 +4069,8 @@ var GridFilterRowCellComponent = class GridFilterRowCellComponent {
|
|
|
4067
4069
|
type: DropdownListComponent,
|
|
4068
4070
|
selector: "mona-dropdown-list",
|
|
4069
4071
|
inputs: [
|
|
4072
|
+
"adaptiveMode",
|
|
4073
|
+
"adaptiveTitle",
|
|
4070
4074
|
"aria-describedby",
|
|
4071
4075
|
"aria-label",
|
|
4072
4076
|
"aria-labelledby",
|
|
@@ -5563,8 +5567,8 @@ var GridComponent = class GridComponent {
|
|
|
5563
5567
|
NgTemplateOutlet,
|
|
5564
5568
|
GridColgroupComponent,
|
|
5565
5569
|
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs").then((m) => m.GridFooterRowComponent),
|
|
5566
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5567
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5570
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs").then((m) => m.GridListComponent),
|
|
5571
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs").then((m) => m.GridVirtualListComponent),
|
|
5568
5572
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5569
5573
|
]]
|
|
5570
5574
|
});
|
|
@@ -5577,8 +5581,8 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
5577
5581
|
type: GridComponent,
|
|
5578
5582
|
resolveDeferredDeps: () => [
|
|
5579
5583
|
import("./nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs").then((m) => m.GridFooterRowComponent),
|
|
5580
|
-
import("./nanahoshi-mona-ui-grid-grid-list.component-
|
|
5581
|
-
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-
|
|
5584
|
+
import("./nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs").then((m) => m.GridListComponent),
|
|
5585
|
+
import("./nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs").then((m) => m.GridVirtualListComponent),
|
|
5582
5586
|
import("@nanahoshi/mona-ui/spinner").then((m) => m.SpinnerComponent)
|
|
5583
5587
|
],
|
|
5584
5588
|
resolveMetadata: (GridFooterRowComponent, GridListComponent, GridVirtualListComponent, SpinnerComponent) => ({
|
|
@@ -476,7 +476,9 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
476
476
|
ok: null
|
|
477
477
|
},
|
|
478
478
|
dropdownList: { clear: null },
|
|
479
|
+
dropdownTree: { clear: null },
|
|
479
480
|
dropdowns: {
|
|
481
|
+
close: null,
|
|
480
482
|
itemPosition: [
|
|
481
483
|
{
|
|
482
484
|
name: "text",
|
|
@@ -985,6 +987,17 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
985
987
|
}],
|
|
986
988
|
selectAll: null
|
|
987
989
|
},
|
|
990
|
+
multiSelectTree: {
|
|
991
|
+
clear: null,
|
|
992
|
+
itemsCount: [{
|
|
993
|
+
name: "count",
|
|
994
|
+
type: "number"
|
|
995
|
+
}],
|
|
996
|
+
removeMoreItems: [{
|
|
997
|
+
name: "count",
|
|
998
|
+
type: "number"
|
|
999
|
+
}]
|
|
1000
|
+
},
|
|
988
1001
|
notification: {
|
|
989
1002
|
close: null,
|
|
990
1003
|
error: null,
|
|
@@ -245,6 +245,7 @@ var TreeService = class TreeService {
|
|
|
245
245
|
enabled: false,
|
|
246
246
|
mode: "multiple"
|
|
247
247
|
}, ...ngDevMode ? [{ debugName: "checkableOptions" }] : /* istanbul ignore next */ []);
|
|
248
|
+
this.checkedKeys = this.#checkedKeys.asReadonly();
|
|
248
249
|
this.checkedKeysChange$ = new Subject();
|
|
249
250
|
this.children = signal("", ...ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []);
|
|
250
251
|
this.childrenLoadError$ = new Subject();
|
|
@@ -382,6 +383,11 @@ var TreeService = class TreeService {
|
|
|
382
383
|
const identity = this.getNodeIdentity(node);
|
|
383
384
|
return _a.flatten(this.nodeSet()).firstOrDefault((candidate) => candidate.data === node.data || this.getNodeIdentity(candidate) === identity) ?? null;
|
|
384
385
|
}
|
|
386
|
+
findFirstMatch() {
|
|
387
|
+
const filterText = this.filterText();
|
|
388
|
+
if (!filterText) return null;
|
|
389
|
+
return _a.flatten(this.nodeSet()).firstOrDefault((node) => this.isFiltered(this.getNodeText(node), filterText)) ?? null;
|
|
390
|
+
}
|
|
385
391
|
findNodeByText(prefix) {
|
|
386
392
|
const normalizedPrefix = prefix.toLowerCase();
|
|
387
393
|
const nodes = this.#navigableNodes().toArray();
|
|
@@ -1229,6 +1235,43 @@ const treeNodeExpanderThemeVariants = cva(`
|
|
|
1229
1235
|
-ms-6 flex h-full min-w-6 items-center justify-center
|
|
1230
1236
|
cursor-pointer text-sm text-foreground
|
|
1231
1237
|
`);
|
|
1238
|
+
function handleTreeNavigationKey(event, context) {
|
|
1239
|
+
if (event.ctrlKey || event.metaKey || event.altKey) return false;
|
|
1240
|
+
const { rtl, treeService } = context;
|
|
1241
|
+
const navigatedNode = treeService.navigatedNode();
|
|
1242
|
+
const collapseKey = rtl ? "ArrowRight" : "ArrowLeft";
|
|
1243
|
+
const expandKey = rtl ? "ArrowLeft" : "ArrowRight";
|
|
1244
|
+
switch (event.key) {
|
|
1245
|
+
case "ArrowUp":
|
|
1246
|
+
treeService.navigate("previous");
|
|
1247
|
+
break;
|
|
1248
|
+
case "ArrowDown":
|
|
1249
|
+
treeService.navigate("next");
|
|
1250
|
+
break;
|
|
1251
|
+
case collapseKey:
|
|
1252
|
+
if (navigatedNode && !treeService.toggleNodeExpand(navigatedNode, false) && navigatedNode.parent) treeService.navigatedNode.set(navigatedNode.parent);
|
|
1253
|
+
break;
|
|
1254
|
+
case expandKey:
|
|
1255
|
+
if (!navigatedNode || !treeService.hasChildren(navigatedNode)) break;
|
|
1256
|
+
if (!treeService.isExpanded(navigatedNode)) treeService.toggleNodeExpand(navigatedNode, true);
|
|
1257
|
+
else if (!navigatedNode.children().isEmpty()) treeService.navigate("next");
|
|
1258
|
+
break;
|
|
1259
|
+
case "*":
|
|
1260
|
+
if (navigatedNode) treeService.expandSiblings(navigatedNode);
|
|
1261
|
+
break;
|
|
1262
|
+
case "Home":
|
|
1263
|
+
treeService.navigate("first");
|
|
1264
|
+
break;
|
|
1265
|
+
case "End":
|
|
1266
|
+
treeService.navigate("last");
|
|
1267
|
+
break;
|
|
1268
|
+
default:
|
|
1269
|
+
if (event.key === " " || !isTypeaheadKey(event.key, event)) return false;
|
|
1270
|
+
context.typeahead(event.key);
|
|
1271
|
+
}
|
|
1272
|
+
event.preventDefault();
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1232
1275
|
var NodeDragEndEvent = class extends NodeEvent {
|
|
1233
1276
|
constructor(node, event) {
|
|
1234
1277
|
super("nodeDragEnd", node, event);
|
|
@@ -2055,6 +2098,7 @@ var TreeComponent = class TreeComponent {
|
|
|
2055
2098
|
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
2056
2099
|
this.ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
2057
2100
|
this.data = input(...ngDevMode ? [void 0, { debugName: "data" }] : /* istanbul ignore next */ []);
|
|
2101
|
+
this.focusable = input(true, ...ngDevMode ? [{ debugName: "focusable" }] : /* istanbul ignore next */ []);
|
|
2058
2102
|
this.nodeTemplate = contentChild(TreeNodeTemplateDirective, {
|
|
2059
2103
|
...ngDevMode ? { debugName: "nodeTemplate" } : /* istanbul ignore next */ {},
|
|
2060
2104
|
read: TemplateRef
|
|
@@ -2066,6 +2110,11 @@ var TreeComponent = class TreeComponent {
|
|
|
2066
2110
|
if (node !== null) this.#lastNavigatedNode = node;
|
|
2067
2111
|
});
|
|
2068
2112
|
});
|
|
2113
|
+
effect(() => {
|
|
2114
|
+
const node = this.treeService.navigatedNode();
|
|
2115
|
+
if (node === null) return;
|
|
2116
|
+
untracked(() => afterNextRender({ read: () => this.scrollNodeIntoView(node) }, { injector: this.#injector }));
|
|
2117
|
+
});
|
|
2069
2118
|
effect(() => {
|
|
2070
2119
|
const nodeTemplate = this.nodeTemplate() ?? null;
|
|
2071
2120
|
untracked(() => {
|
|
@@ -2183,6 +2232,11 @@ var TreeComponent = class TreeComponent {
|
|
|
2183
2232
|
position: "inside"
|
|
2184
2233
|
});
|
|
2185
2234
|
}
|
|
2235
|
+
scrollNodeIntoView(node) {
|
|
2236
|
+
if (this.#destroyRef.destroyed) return;
|
|
2237
|
+
const id = this.treeService.getNodeElementId(node.uid);
|
|
2238
|
+
(this.#document.getElementById(id)?.firstElementChild)?.scrollIntoView({ block: "nearest" });
|
|
2239
|
+
}
|
|
2186
2240
|
setFocusSubscription() {
|
|
2187
2241
|
this.#focusMonitor.monitor(this.#hostElementRef.nativeElement, true).pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((origin) => {
|
|
2188
2242
|
if (origin) {
|
|
@@ -2205,33 +2259,13 @@ var TreeComponent = class TreeComponent {
|
|
|
2205
2259
|
fromEvent(this.#hostElementRef.nativeElement, "keydown").pipe(filter((event) => !event.isComposing && this.isTreeKeyTarget(event)), takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
|
|
2206
2260
|
if (this.handleMoveKey(event)) return;
|
|
2207
2261
|
if (event.ctrlKey || event.metaKey || event.altKey) return;
|
|
2262
|
+
if (handleTreeNavigationKey(event, {
|
|
2263
|
+
rtl: this.isRtl(),
|
|
2264
|
+
treeService: this.treeService,
|
|
2265
|
+
typeahead: (key) => this.#typeaheadKey$.next(key)
|
|
2266
|
+
})) return;
|
|
2208
2267
|
const navigatedNode = this.treeService.navigatedNode();
|
|
2209
|
-
|
|
2210
|
-
const collapseKey = isRtl ? "ArrowRight" : "ArrowLeft";
|
|
2211
|
-
const expandKey = isRtl ? "ArrowLeft" : "ArrowRight";
|
|
2212
|
-
if (event.key === "ArrowUp") {
|
|
2213
|
-
event.preventDefault();
|
|
2214
|
-
this.treeService.navigate("previous");
|
|
2215
|
-
} else if (event.key === "ArrowDown") {
|
|
2216
|
-
event.preventDefault();
|
|
2217
|
-
this.treeService.navigate("next");
|
|
2218
|
-
} else if (event.key === collapseKey) {
|
|
2219
|
-
event.preventDefault();
|
|
2220
|
-
if (!navigatedNode) return;
|
|
2221
|
-
if (this.treeService.toggleNodeExpand(navigatedNode, false)) return;
|
|
2222
|
-
if (navigatedNode.parent) this.treeService.navigatedNode.set(navigatedNode.parent);
|
|
2223
|
-
} else if (event.key === expandKey) {
|
|
2224
|
-
event.preventDefault();
|
|
2225
|
-
if (!navigatedNode || !this.treeService.hasChildren(navigatedNode)) return;
|
|
2226
|
-
if (!this.treeService.isExpanded(navigatedNode)) this.treeService.toggleNodeExpand(navigatedNode, true);
|
|
2227
|
-
else if (!navigatedNode.children().isEmpty()) this.treeService.navigate("next");
|
|
2228
|
-
} else if (event.key === "*") {
|
|
2229
|
-
event.preventDefault();
|
|
2230
|
-
if (navigatedNode) this.treeService.expandSiblings(navigatedNode);
|
|
2231
|
-
} else if (event.key !== " " && isTypeaheadKey(event.key, event)) {
|
|
2232
|
-
event.preventDefault();
|
|
2233
|
-
this.#typeaheadKey$.next(event.key);
|
|
2234
|
-
} else if (event.key === " ") {
|
|
2268
|
+
if (event.key === " ") {
|
|
2235
2269
|
event.preventDefault();
|
|
2236
2270
|
if (!navigatedNode || this.treeService.isDisabled(navigatedNode)) return;
|
|
2237
2271
|
if (!this.treeService.isCheckable(navigatedNode)) return;
|
|
@@ -2245,12 +2279,6 @@ var TreeComponent = class TreeComponent {
|
|
|
2245
2279
|
checked: newCheckState
|
|
2246
2280
|
});
|
|
2247
2281
|
}
|
|
2248
|
-
} else if (event.key === "Home") {
|
|
2249
|
-
event.preventDefault();
|
|
2250
|
-
this.treeService.navigate("first");
|
|
2251
|
-
} else if (event.key === "End") {
|
|
2252
|
-
event.preventDefault();
|
|
2253
|
-
this.treeService.navigate("last");
|
|
2254
2282
|
} else if (event.key === "Enter") {
|
|
2255
2283
|
event.preventDefault();
|
|
2256
2284
|
if (!navigatedNode || this.treeService.isDisabled(navigatedNode)) return;
|
|
@@ -2333,17 +2361,24 @@ var TreeComponent = class TreeComponent {
|
|
|
2333
2361
|
isSignal: true,
|
|
2334
2362
|
isRequired: false,
|
|
2335
2363
|
transformFunction: null
|
|
2364
|
+
},
|
|
2365
|
+
focusable: {
|
|
2366
|
+
classPropertyName: "focusable",
|
|
2367
|
+
publicName: "focusable",
|
|
2368
|
+
isSignal: true,
|
|
2369
|
+
isRequired: false,
|
|
2370
|
+
transformFunction: null
|
|
2336
2371
|
}
|
|
2337
2372
|
},
|
|
2338
2373
|
host: { properties: {
|
|
2339
2374
|
"class": "baseClass()",
|
|
2340
2375
|
"attr.role": "'tree'",
|
|
2341
|
-
"attr.tabindex": "0",
|
|
2376
|
+
"attr.tabindex": "focusable() ? 0 : null",
|
|
2342
2377
|
"attr.aria-label": "ariaLabel() || null",
|
|
2343
2378
|
"attr.aria-labelledby": "ariaLabelledBy() || null",
|
|
2344
2379
|
"attr.aria-describedby": "ariaDescribedBy() || null",
|
|
2345
2380
|
"attr.aria-multiselectable": "multiselectable()",
|
|
2346
|
-
"attr.aria-activedescendant": "activeDescendantId()",
|
|
2381
|
+
"attr.aria-activedescendant": "focusable() ? activeDescendantId() : null",
|
|
2347
2382
|
"attr.aria-keyshortcuts": "keyShortcuts()"
|
|
2348
2383
|
} },
|
|
2349
2384
|
queries: [{
|
|
@@ -2386,12 +2421,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2386
2421
|
host: {
|
|
2387
2422
|
"[class]": "baseClass()",
|
|
2388
2423
|
"[attr.role]": "'tree'",
|
|
2389
|
-
"[attr.tabindex]": "0",
|
|
2424
|
+
"[attr.tabindex]": "focusable() ? 0 : null",
|
|
2390
2425
|
"[attr.aria-label]": "ariaLabel() || null",
|
|
2391
2426
|
"[attr.aria-labelledby]": "ariaLabelledBy() || null",
|
|
2392
2427
|
"[attr.aria-describedby]": "ariaDescribedBy() || null",
|
|
2393
2428
|
"[attr.aria-multiselectable]": "multiselectable()",
|
|
2394
|
-
"[attr.aria-activedescendant]": "activeDescendantId()",
|
|
2429
|
+
"[attr.aria-activedescendant]": "focusable() ? activeDescendantId() : null",
|
|
2395
2430
|
"[attr.aria-keyshortcuts]": "keyShortcuts()"
|
|
2396
2431
|
},
|
|
2397
2432
|
template: "<mona-sub-tree [nodes]=\"treeService.viewNodeSet()\" [parent]=\"null\" [depth]=\"0\"></mona-sub-tree>\n@if (treeService.dragging() && treeService.dropAllowed()) {\n <mona-tree-drop-hint></mona-tree-drop-hint>\n}\n"
|
|
@@ -2431,6 +2466,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2431
2466
|
required: false
|
|
2432
2467
|
}]
|
|
2433
2468
|
}],
|
|
2469
|
+
focusable: [{
|
|
2470
|
+
type: i0.Input,
|
|
2471
|
+
args: [{
|
|
2472
|
+
isSignal: true,
|
|
2473
|
+
alias: "focusable",
|
|
2474
|
+
required: false
|
|
2475
|
+
}]
|
|
2476
|
+
}],
|
|
2434
2477
|
nodeTemplate: [{
|
|
2435
2478
|
type: i0.ContentChild,
|
|
2436
2479
|
args: [i0.forwardRef(() => TreeNodeTemplateDirective), {
|
|
@@ -2545,6 +2588,6 @@ function moveTreeNode(treeData, event, idKey, childrenKey) {
|
|
|
2545
2588
|
if (draggedNode) insertNode(updatedTree);
|
|
2546
2589
|
return updatedTree;
|
|
2547
2590
|
}
|
|
2548
|
-
export { InternalNodeDragEvent, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropEventSansTree, NodeEvent, NodeSelectEvent, TREE_DEFAULT_MESSAGES, TreeComponent, TreeNode, TreeNodeTemplateDirective, TreeService, moveFlatTreeNode, moveTreeNode };
|
|
2591
|
+
export { InternalNodeDragEvent, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropEventSansTree, NodeEvent, NodeSelectEvent, TREE_DEFAULT_MESSAGES, TreeComponent, TreeNode, TreeNodeTemplateDirective, TreeService, getTreeNodeElementId, handleTreeNavigationKey, moveFlatTreeNode, moveTreeNode };
|
|
2549
2592
|
|
|
2550
2593
|
//# sourceMappingURL=nanahoshi-mona-ui-internal-tree.mjs.map
|
|
@@ -233,7 +233,9 @@ const MONA_AR_SA_LOCALE = {
|
|
|
233
233
|
ok: "موافق"
|
|
234
234
|
},
|
|
235
235
|
dropdownList: { clear: "مسح" },
|
|
236
|
+
dropdownTree: { clear: "مسح" },
|
|
236
237
|
dropdowns: {
|
|
238
|
+
close: "إغلاق",
|
|
237
239
|
itemPosition: (text, position, total) => `${text}، العنصر ${localizeNumber(position)} من ${localizeNumber(total)}`,
|
|
238
240
|
noResultsFound: "لم يتم العثور على نتائج",
|
|
239
241
|
resultsAvailable: (count) => `عدد النتائج المتاحة: ${localizeNumber(count)}`
|
|
@@ -573,6 +575,11 @@ const MONA_AR_SA_LOCALE = {
|
|
|
573
575
|
removeMoreItems: (count) => `حذف العناصر الإضافية (${localizeNumber(count)})`,
|
|
574
576
|
selectAll: "تحديد الكل"
|
|
575
577
|
},
|
|
578
|
+
multiSelectTree: {
|
|
579
|
+
clear: "مسح",
|
|
580
|
+
itemsCount: (count) => `+ ${localizeNumber(count)}`,
|
|
581
|
+
removeMoreItems: (count) => `حذف العناصر الإضافية (${localizeNumber(count)})`
|
|
582
|
+
},
|
|
576
583
|
notification: {
|
|
577
584
|
close: "إغلاق",
|
|
578
585
|
error: "خطأ",
|
|
@@ -217,7 +217,9 @@ const MONA_DE_DE_LOCALE = {
|
|
|
217
217
|
ok: "OK"
|
|
218
218
|
},
|
|
219
219
|
dropdownList: { clear: "Leeren" },
|
|
220
|
+
dropdownTree: { clear: "Leeren" },
|
|
220
221
|
dropdowns: {
|
|
222
|
+
close: "Schließen",
|
|
221
223
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} von ${localizeNumber(total)}`,
|
|
222
224
|
noResultsFound: "Keine Ergebnisse gefunden",
|
|
223
225
|
resultsAvailable: (count) => count === 1 ? "1 Ergebnis verfügbar" : `${localizeNumber(count)} Ergebnisse verfügbar`
|
|
@@ -495,6 +497,11 @@ const MONA_DE_DE_LOCALE = {
|
|
|
495
497
|
removeMoreItems: (count) => count === 1 ? `${localizeNumber(count)} weiteres Element entfernen` : `${localizeNumber(count)} weitere Elemente entfernen`,
|
|
496
498
|
selectAll: "Alle auswählen"
|
|
497
499
|
},
|
|
500
|
+
multiSelectTree: {
|
|
501
|
+
clear: "Leeren",
|
|
502
|
+
itemsCount: (count) => count === 1 ? `+ ${localizeNumber(count)} Element` : `+ ${localizeNumber(count)} Elemente`,
|
|
503
|
+
removeMoreItems: (count) => count === 1 ? `${localizeNumber(count)} weiteres Element entfernen` : `${localizeNumber(count)} weitere Elemente entfernen`
|
|
504
|
+
},
|
|
498
505
|
notification: {
|
|
499
506
|
close: "Schließen",
|
|
500
507
|
error: "Fehler",
|
|
@@ -217,7 +217,9 @@ const MONA_ES_ES_LOCALE = {
|
|
|
217
217
|
ok: "Aceptar"
|
|
218
218
|
},
|
|
219
219
|
dropdownList: { clear: "Limpiar" },
|
|
220
|
+
dropdownTree: { clear: "Limpiar" },
|
|
220
221
|
dropdowns: {
|
|
222
|
+
close: "Cerrar",
|
|
221
223
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} de ${localizeNumber(total)}`,
|
|
222
224
|
noResultsFound: "No se han encontrado resultados",
|
|
223
225
|
resultsAvailable: (count) => count === 1 ? "1 resultado disponible" : `${localizeNumber(count)} resultados disponibles`
|
|
@@ -513,6 +515,11 @@ const MONA_ES_ES_LOCALE = {
|
|
|
513
515
|
removeMoreItems: (count) => count === 1 ? `Quitar ${localizeNumber(count)} elemento más` : `Quitar ${localizeNumber(count)} elementos más`,
|
|
514
516
|
selectAll: "Seleccionar todo"
|
|
515
517
|
},
|
|
518
|
+
multiSelectTree: {
|
|
519
|
+
clear: "Limpiar",
|
|
520
|
+
itemsCount: (count) => count === 1 ? `+ ${localizeNumber(count)} elemento` : `+ ${localizeNumber(count)} elementos`,
|
|
521
|
+
removeMoreItems: (count) => count === 1 ? `Quitar ${localizeNumber(count)} elemento más` : `Quitar ${localizeNumber(count)} elementos más`
|
|
522
|
+
},
|
|
516
523
|
notification: {
|
|
517
524
|
close: "Cerrar",
|
|
518
525
|
error: "Error",
|
|
@@ -217,7 +217,9 @@ const MONA_FR_FR_LOCALE = {
|
|
|
217
217
|
ok: "OK"
|
|
218
218
|
},
|
|
219
219
|
dropdownList: { clear: "Effacer" },
|
|
220
|
+
dropdownTree: { clear: "Effacer" },
|
|
220
221
|
dropdowns: {
|
|
222
|
+
close: "Fermer",
|
|
221
223
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} sur ${localizeNumber(total)}`,
|
|
222
224
|
noResultsFound: "Aucun résultat trouvé",
|
|
223
225
|
resultsAvailable: (count) => count === 1 ? "1 résultat disponible" : `${localizeNumber(count)} résultats disponibles`
|
|
@@ -513,6 +515,11 @@ const MONA_FR_FR_LOCALE = {
|
|
|
513
515
|
removeMoreItems: (count) => count === 1 ? `Retirer ${localizeNumber(count)} autre élément` : `Retirer ${localizeNumber(count)} autres éléments`,
|
|
514
516
|
selectAll: "Tout sélectionner"
|
|
515
517
|
},
|
|
518
|
+
multiSelectTree: {
|
|
519
|
+
clear: "Effacer",
|
|
520
|
+
itemsCount: (count) => count === 1 ? `+ ${localizeNumber(count)} élément` : `+ ${localizeNumber(count)} éléments`,
|
|
521
|
+
removeMoreItems: (count) => count === 1 ? `Retirer ${localizeNumber(count)} autre élément` : `Retirer ${localizeNumber(count)} autres éléments`
|
|
522
|
+
},
|
|
516
523
|
notification: {
|
|
517
524
|
close: "Fermer",
|
|
518
525
|
error: "Erreur",
|
|
@@ -201,7 +201,9 @@ const MONA_ID_ID_LOCALE = {
|
|
|
201
201
|
ok: "OK"
|
|
202
202
|
},
|
|
203
203
|
dropdownList: { clear: "Bersihkan" },
|
|
204
|
+
dropdownTree: { clear: "Bersihkan" },
|
|
204
205
|
dropdowns: {
|
|
206
|
+
close: "Tutup",
|
|
205
207
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} dari ${localizeNumber(total)}`,
|
|
206
208
|
noResultsFound: "Tidak ada hasil",
|
|
207
209
|
resultsAvailable: (count) => `${localizeNumber(count)} hasil tersedia`
|
|
@@ -464,6 +466,11 @@ const MONA_ID_ID_LOCALE = {
|
|
|
464
466
|
removeMoreItems: (count) => `Hapus ${localizeNumber(count)} item lainnya`,
|
|
465
467
|
selectAll: "Pilih semua"
|
|
466
468
|
},
|
|
469
|
+
multiSelectTree: {
|
|
470
|
+
clear: "Bersihkan",
|
|
471
|
+
itemsCount: (count) => `+ ${localizeNumber(count)} item`,
|
|
472
|
+
removeMoreItems: (count) => `Hapus ${localizeNumber(count)} item lainnya`
|
|
473
|
+
},
|
|
467
474
|
notification: {
|
|
468
475
|
close: "Tutup",
|
|
469
476
|
error: "Kesalahan",
|
|
@@ -217,7 +217,9 @@ const MONA_IT_IT_LOCALE = {
|
|
|
217
217
|
ok: "OK"
|
|
218
218
|
},
|
|
219
219
|
dropdownList: { clear: "Cancella" },
|
|
220
|
+
dropdownTree: { clear: "Cancella" },
|
|
220
221
|
dropdowns: {
|
|
222
|
+
close: "Chiudi",
|
|
221
223
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} di ${localizeNumber(total)}`,
|
|
222
224
|
noResultsFound: "Nessun risultato trovato",
|
|
223
225
|
resultsAvailable: (count) => count === 1 ? "1 risultato disponibile" : `${localizeNumber(count)} risultati disponibili`
|
|
@@ -513,6 +515,11 @@ const MONA_IT_IT_LOCALE = {
|
|
|
513
515
|
removeMoreItems: (count) => count === 1 ? "Rimuovi un altro elemento" : `Rimuovi altri ${localizeNumber(count)} elementi`,
|
|
514
516
|
selectAll: "Seleziona tutto"
|
|
515
517
|
},
|
|
518
|
+
multiSelectTree: {
|
|
519
|
+
clear: "Cancella",
|
|
520
|
+
itemsCount: (count) => count === 1 ? "+ 1 elemento" : `+ ${localizeNumber(count)} elementi`,
|
|
521
|
+
removeMoreItems: (count) => count === 1 ? "Rimuovi un altro elemento" : `Rimuovi altri ${localizeNumber(count)} elementi`
|
|
522
|
+
},
|
|
516
523
|
notification: {
|
|
517
524
|
close: "Chiudi",
|
|
518
525
|
error: "Errore",
|
|
@@ -201,7 +201,9 @@ const MONA_JA_JP_LOCALE = {
|
|
|
201
201
|
ok: "OK"
|
|
202
202
|
},
|
|
203
203
|
dropdownList: { clear: "クリア" },
|
|
204
|
+
dropdownTree: { clear: "クリア" },
|
|
204
205
|
dropdowns: {
|
|
206
|
+
close: "閉じる",
|
|
205
207
|
itemPosition: (text, position, total) => `${text}、${localizeNumber(total)}件中${localizeNumber(position)}件目`,
|
|
206
208
|
noResultsFound: "結果が見つかりません",
|
|
207
209
|
resultsAvailable: (count) => `${localizeNumber(count)}件の結果があります`
|
|
@@ -464,6 +466,11 @@ const MONA_JA_JP_LOCALE = {
|
|
|
464
466
|
removeMoreItems: (count) => `他の${localizeNumber(count)}件を削除`,
|
|
465
467
|
selectAll: "すべて選択"
|
|
466
468
|
},
|
|
469
|
+
multiSelectTree: {
|
|
470
|
+
clear: "クリア",
|
|
471
|
+
itemsCount: (count) => `+ ${localizeNumber(count)}件`,
|
|
472
|
+
removeMoreItems: (count) => `他の${localizeNumber(count)}件を削除`
|
|
473
|
+
},
|
|
467
474
|
notification: {
|
|
468
475
|
close: "閉じる",
|
|
469
476
|
error: "エラー",
|
|
@@ -201,7 +201,9 @@ const MONA_KO_KR_LOCALE = {
|
|
|
201
201
|
ok: "확인"
|
|
202
202
|
},
|
|
203
203
|
dropdownList: { clear: "지우기" },
|
|
204
|
+
dropdownTree: { clear: "지우기" },
|
|
204
205
|
dropdowns: {
|
|
206
|
+
close: "닫기",
|
|
205
207
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(total)}개 중 ${localizeNumber(position)}번째`,
|
|
206
208
|
noResultsFound: "결과를 찾을 수 없습니다",
|
|
207
209
|
resultsAvailable: (count) => `사용 가능한 결과 ${localizeNumber(count)}개`
|
|
@@ -464,6 +466,11 @@ const MONA_KO_KR_LOCALE = {
|
|
|
464
466
|
removeMoreItems: (count) => `나머지 ${localizeNumber(count)}개 삭제`,
|
|
465
467
|
selectAll: "모두 선택"
|
|
466
468
|
},
|
|
469
|
+
multiSelectTree: {
|
|
470
|
+
clear: "지우기",
|
|
471
|
+
itemsCount: (count) => `+ ${localizeNumber(count)}개`,
|
|
472
|
+
removeMoreItems: (count) => `나머지 ${localizeNumber(count)}개 삭제`
|
|
473
|
+
},
|
|
467
474
|
notification: {
|
|
468
475
|
close: "닫기",
|
|
469
476
|
error: "오류",
|
|
@@ -230,7 +230,9 @@ const MONA_PL_PL_LOCALE = {
|
|
|
230
230
|
ok: "OK"
|
|
231
231
|
},
|
|
232
232
|
dropdownList: { clear: "Wyczyść" },
|
|
233
|
+
dropdownTree: { clear: "Wyczyść" },
|
|
233
234
|
dropdowns: {
|
|
235
|
+
close: "Zamknij",
|
|
234
236
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} z ${localizeNumber(total)}`,
|
|
235
237
|
noResultsFound: "Nie znaleziono wyników",
|
|
236
238
|
resultsAvailable: (count) => plural(PLURAL_RULES.select(count), {
|
|
@@ -578,6 +580,21 @@ const MONA_PL_PL_LOCALE = {
|
|
|
578
580
|
})}`,
|
|
579
581
|
selectAll: "Zaznacz wszystko"
|
|
580
582
|
},
|
|
583
|
+
multiSelectTree: {
|
|
584
|
+
clear: "Wyczyść",
|
|
585
|
+
itemsCount: (count) => `+ ${plural(PLURAL_RULES.select(count), {
|
|
586
|
+
one: () => `${localizeNumber(count)} element`,
|
|
587
|
+
few: () => `${localizeNumber(count)} elementy`,
|
|
588
|
+
many: () => `${localizeNumber(count)} elementów`,
|
|
589
|
+
other: () => `${localizeNumber(count)} elementu`
|
|
590
|
+
})}`,
|
|
591
|
+
removeMoreItems: (count) => `Usuń jeszcze ${plural(PLURAL_RULES.select(count), {
|
|
592
|
+
one: () => `${localizeNumber(count)} element`,
|
|
593
|
+
few: () => `${localizeNumber(count)} elementy`,
|
|
594
|
+
many: () => `${localizeNumber(count)} elementów`,
|
|
595
|
+
other: () => `${localizeNumber(count)} elementu`
|
|
596
|
+
})}`
|
|
597
|
+
},
|
|
581
598
|
notification: {
|
|
582
599
|
close: "Zamknij",
|
|
583
600
|
error: "Błąd",
|
|
@@ -217,7 +217,9 @@ const MONA_PT_BR_LOCALE = {
|
|
|
217
217
|
ok: "OK"
|
|
218
218
|
},
|
|
219
219
|
dropdownList: { clear: "Limpar" },
|
|
220
|
+
dropdownTree: { clear: "Limpar" },
|
|
220
221
|
dropdowns: {
|
|
222
|
+
close: "Fechar",
|
|
221
223
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} de ${localizeNumber(total)}`,
|
|
222
224
|
noResultsFound: "Nenhum resultado encontrado",
|
|
223
225
|
resultsAvailable: (count) => count === 1 ? "1 resultado disponível" : `${localizeNumber(count)} resultados disponíveis`
|
|
@@ -513,6 +515,11 @@ const MONA_PT_BR_LOCALE = {
|
|
|
513
515
|
removeMoreItems: (count) => count === 1 ? "Remover mais 1 item" : `Remover mais ${localizeNumber(count)} itens`,
|
|
514
516
|
selectAll: "Selecionar tudo"
|
|
515
517
|
},
|
|
518
|
+
multiSelectTree: {
|
|
519
|
+
clear: "Limpar",
|
|
520
|
+
itemsCount: (count) => count === 1 ? "+ 1 item" : `+ ${localizeNumber(count)} itens`,
|
|
521
|
+
removeMoreItems: (count) => count === 1 ? "Remover mais 1 item" : `Remover mais ${localizeNumber(count)} itens`
|
|
522
|
+
},
|
|
516
523
|
notification: {
|
|
517
524
|
close: "Fechar",
|
|
518
525
|
error: "Erro",
|
|
@@ -225,7 +225,9 @@ const MONA_RU_RU_LOCALE = {
|
|
|
225
225
|
ok: "ОК"
|
|
226
226
|
},
|
|
227
227
|
dropdownList: { clear: "Очистить" },
|
|
228
|
+
dropdownTree: { clear: "Очистить" },
|
|
228
229
|
dropdowns: {
|
|
230
|
+
close: "Закрыть",
|
|
229
231
|
itemPosition: (text, position, total) => `${text}, ${localizeNumber(position)} из ${localizeNumber(total)}`,
|
|
230
232
|
noResultsFound: "Результаты не найдены",
|
|
231
233
|
resultsAvailable: (count) => `Доступно результатов: ${localizeNumber(count)}`
|
|
@@ -568,6 +570,21 @@ const MONA_RU_RU_LOCALE = {
|
|
|
568
570
|
})}`,
|
|
569
571
|
selectAll: "Выбрать все"
|
|
570
572
|
},
|
|
573
|
+
multiSelectTree: {
|
|
574
|
+
clear: "Очистить",
|
|
575
|
+
itemsCount: (count) => `+ ${plural(PLURAL_RULES.select(count), {
|
|
576
|
+
one: () => `${localizeNumber(count)} элемент`,
|
|
577
|
+
few: () => `${localizeNumber(count)} элемента`,
|
|
578
|
+
many: () => `${localizeNumber(count)} элементов`,
|
|
579
|
+
other: () => `${localizeNumber(count)} элемента`
|
|
580
|
+
})}`,
|
|
581
|
+
removeMoreItems: (count) => `Удалить ещё ${plural(PLURAL_RULES.select(count), {
|
|
582
|
+
one: () => `${localizeNumber(count)} элемент`,
|
|
583
|
+
few: () => `${localizeNumber(count)} элемента`,
|
|
584
|
+
many: () => `${localizeNumber(count)} элементов`,
|
|
585
|
+
other: () => `${localizeNumber(count)} элемента`
|
|
586
|
+
})}`
|
|
587
|
+
},
|
|
571
588
|
notification: {
|
|
572
589
|
close: "Закрыть",
|
|
573
590
|
error: "Ошибка",
|