@nanahoshi/mona-ui 0.39.1 → 0.41.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/grid.md +214 -17
- package/docs/api/i18n.md +36 -0
- package/docs/api/kanban.md +222 -0
- package/docs/api/locales.md +14 -14
- package/docs/api/sortable.md +189 -0
- package/docs/api/tabs.md +20 -0
- package/docs/grid-selection.md +134 -9
- package/docs/grid-state-export.md +56 -6
- package/docs/grid-tree.md +279 -0
- package/docs/kanban.md +293 -0
- package/docs/sortable.md +320 -0
- package/docs/tabs.md +59 -10
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs} +4 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs → nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs → nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs} +52 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-8h2EMexB.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs → nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs} +646 -20
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1663 -22
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +56 -0
- package/fesm2022/nanahoshi-mona-ui-kanban.mjs +660 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +21 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +21 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +11 -0
- package/fesm2022/nanahoshi-mona-ui-sortable.mjs +733 -0
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +112 -5
- package/i18n/catalogs/en-US.messages.json +11 -0
- package/kanban/package.json +4 -0
- package/llms.txt +10 -5
- package/locales/ar-sa/ar-sa.messages.json +11 -0
- package/locales/de-de/de-de.messages.json +11 -0
- package/locales/es-es/es-es.messages.json +11 -0
- package/locales/fr-fr/fr-fr.messages.json +11 -0
- package/locales/id-id/id-id.messages.json +11 -0
- package/locales/it-it/it-it.messages.json +11 -0
- package/locales/ja-jp/ja-jp.messages.json +11 -0
- package/locales/ko-kr/ko-kr.messages.json +11 -0
- package/locales/pl-pl/pl-pl.messages.json +11 -0
- package/locales/pt-br/pt-br.messages.json +11 -0
- package/locales/ru-ru/ru-ru.messages.json +11 -0
- package/locales/tr-tr/tr-tr.messages.json +11 -0
- package/locales/zh-cn/zh-cn.messages.json +11 -0
- package/locales/zh-tw/zh-tw.messages.json +11 -0
- package/package.json +9 -1
- package/sortable/package.json +4 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +305 -3
- package/types/nanahoshi-mona-ui-i18n.d.ts +23 -0
- package/types/nanahoshi-mona-ui-kanban.d.ts +270 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +11 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +11 -0
- package/types/nanahoshi-mona-ui-sortable.d.ts +245 -0
- package/types/nanahoshi-mona-ui-tabs.d.ts +46 -0
|
@@ -9,6 +9,7 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
|
9
9
|
import { LucideChevronDown, LucideChevronLeft, LucideChevronRight, LucideChevronUp, LucideX } from "@lucide/angular";
|
|
10
10
|
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
11
11
|
import { MonaI18nService, injectComponentDirection } from "@nanahoshi/mona-ui/i18n";
|
|
12
|
+
import { SortableDirective, SortableItemDirective } from "@nanahoshi/mona-ui/sortable";
|
|
12
13
|
import { EMPTY, Subject, asapScheduler, interval, switchMap, tap, timer } from "rxjs";
|
|
13
14
|
import { createElementControlId } from "@nanahoshi/mona-ui/internal";
|
|
14
15
|
var TabCloseEvent = class extends PreventableEvent {
|
|
@@ -26,6 +27,25 @@ var TabCloseEvent = class extends PreventableEvent {
|
|
|
26
27
|
return this.#selected;
|
|
27
28
|
}
|
|
28
29
|
};
|
|
30
|
+
var TabReorderEvent = class {
|
|
31
|
+
#currentIndex;
|
|
32
|
+
#originalEvent;
|
|
33
|
+
#previousIndex;
|
|
34
|
+
constructor(previousIndex, currentIndex, originalEvent) {
|
|
35
|
+
this.#currentIndex = currentIndex;
|
|
36
|
+
this.#originalEvent = originalEvent;
|
|
37
|
+
this.#previousIndex = previousIndex;
|
|
38
|
+
}
|
|
39
|
+
get currentIndex() {
|
|
40
|
+
return this.#currentIndex;
|
|
41
|
+
}
|
|
42
|
+
get originalEvent() {
|
|
43
|
+
return this.#originalEvent;
|
|
44
|
+
}
|
|
45
|
+
get previousIndex() {
|
|
46
|
+
return this.#previousIndex;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
29
49
|
var TabSelectEvent = class extends PreventableEvent {
|
|
30
50
|
#index;
|
|
31
51
|
constructor(index, originalEvent) {
|
|
@@ -128,6 +148,8 @@ const tabListListThemeVariants = cva(`
|
|
|
128
148
|
const tabListListItemThemeVariants = cva(`
|
|
129
149
|
relative flex shrink-0 cursor-pointer
|
|
130
150
|
transition-colors duration-(--mona-motion-standard) ease-out
|
|
151
|
+
[&.cdk-drag-preview]:rounded-md [&.cdk-drag-preview]:border [&.cdk-drag-preview]:border-border
|
|
152
|
+
[&.cdk-drag-preview]:bg-surface-raised
|
|
131
153
|
`, {
|
|
132
154
|
variants: {
|
|
133
155
|
active: {
|
|
@@ -373,6 +395,7 @@ var TabListComponent = class TabListComponent {
|
|
|
373
395
|
this.scrollButtonClass = computed(() => {
|
|
374
396
|
return tabListScrollButtonThemeVariants();
|
|
375
397
|
}, ...ngDevMode ? [{ debugName: "scrollButtonClass" }] : /* istanbul ignore next */ []);
|
|
398
|
+
this.sortableTabs = computed(() => Array.from(this.tabList()), ...ngDevMode ? [{ debugName: "sortableTabs" }] : /* istanbul ignore next */ []);
|
|
376
399
|
this.tabClass = computed(() => {
|
|
377
400
|
return tabListTabThemeVariants({
|
|
378
401
|
position: this.position(),
|
|
@@ -394,8 +417,10 @@ var TabListComponent = class TabListComponent {
|
|
|
394
417
|
this.position = input.required(...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
395
418
|
this.selectedTabId = model(null, ...ngDevMode ? [{ debugName: "selectedTabId" }] : /* istanbul ignore next */ []);
|
|
396
419
|
this.size = input.required(...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
420
|
+
this.sortable = input(false, ...ngDevMode ? [{ debugName: "sortable" }] : /* istanbul ignore next */ []);
|
|
397
421
|
this.tabClose = output();
|
|
398
422
|
this.tabList = input.required(...ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []);
|
|
423
|
+
this.tabReorder = output();
|
|
399
424
|
this.tabSelect = output();
|
|
400
425
|
afterRenderEffect({ read: () => {
|
|
401
426
|
const tabs = Array.from(this.tabList());
|
|
@@ -446,6 +471,9 @@ var TabListComponent = class TabListComponent {
|
|
|
446
471
|
event.stopPropagation();
|
|
447
472
|
this.emitTabClose(tab, event);
|
|
448
473
|
}
|
|
474
|
+
onTabMove(event) {
|
|
475
|
+
this.tabReorder.emit(new TabReorderEvent(event.previousIndex, event.currentIndex, event.originalEvent));
|
|
476
|
+
}
|
|
449
477
|
startContinuousScroll(event, element, direction) {
|
|
450
478
|
event.currentTarget.setPointerCapture(event.pointerId);
|
|
451
479
|
this.startScrolling(element, direction, "continuous");
|
|
@@ -460,6 +488,10 @@ var TabListComponent = class TabListComponent {
|
|
|
460
488
|
stopScrolling() {
|
|
461
489
|
this.#scrollIntent$.next(null);
|
|
462
490
|
}
|
|
491
|
+
tabKeyShortcuts(closable, moveShortcuts) {
|
|
492
|
+
const shortcuts = [closable ? "Delete Backspace" : null, moveShortcuts].filter((keys) => keys != null);
|
|
493
|
+
return shortcuts.length === 0 ? null : shortcuts.join(" ");
|
|
494
|
+
}
|
|
463
495
|
activateTab(tab, event) {
|
|
464
496
|
if (tab.id !== this.selectedTabId() && !this.emitTabSelect(tab, event)) this.selectTab(tab);
|
|
465
497
|
this.focusTab(tab);
|
|
@@ -670,6 +702,13 @@ var TabListComponent = class TabListComponent {
|
|
|
670
702
|
isRequired: true,
|
|
671
703
|
transformFunction: null
|
|
672
704
|
},
|
|
705
|
+
sortable: {
|
|
706
|
+
classPropertyName: "sortable",
|
|
707
|
+
publicName: "sortable",
|
|
708
|
+
isSignal: true,
|
|
709
|
+
isRequired: false,
|
|
710
|
+
transformFunction: null
|
|
711
|
+
},
|
|
673
712
|
tabList: {
|
|
674
713
|
classPropertyName: "tabList",
|
|
675
714
|
publicName: "tabList",
|
|
@@ -681,6 +720,7 @@ var TabListComponent = class TabListComponent {
|
|
|
681
720
|
outputs: {
|
|
682
721
|
selectedTabId: "selectedTabIdChange",
|
|
683
722
|
tabClose: "tabClose",
|
|
723
|
+
tabReorder: "tabReorder",
|
|
684
724
|
tabSelect: "tabSelect"
|
|
685
725
|
},
|
|
686
726
|
host: {
|
|
@@ -708,7 +748,7 @@ var TabListComponent = class TabListComponent {
|
|
|
708
748
|
isSignal: true
|
|
709
749
|
}],
|
|
710
750
|
ngImport: i0,
|
|
711
|
-
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabClosable && !itemDisabled
|
|
751
|
+
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n",
|
|
712
752
|
dependencies: [
|
|
713
753
|
{
|
|
714
754
|
kind: "directive",
|
|
@@ -741,6 +781,32 @@ var TabListComponent = class TabListComponent {
|
|
|
741
781
|
"ngTemplateOutletInjector"
|
|
742
782
|
]
|
|
743
783
|
},
|
|
784
|
+
{
|
|
785
|
+
kind: "directive",
|
|
786
|
+
type: SortableDirective,
|
|
787
|
+
selector: "[monaSortable]",
|
|
788
|
+
inputs: [
|
|
789
|
+
"sortableCanEnter",
|
|
790
|
+
"sortableDisabled",
|
|
791
|
+
"monaSortable",
|
|
792
|
+
"sortableLabel",
|
|
793
|
+
"sortableLockAxis",
|
|
794
|
+
"sortableOrientation"
|
|
795
|
+
],
|
|
796
|
+
outputs: ["monaSortableChange", "sortableMove"],
|
|
797
|
+
exportAs: ["monaSortable"]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
kind: "directive",
|
|
801
|
+
type: SortableItemDirective,
|
|
802
|
+
selector: "[monaSortableItem]",
|
|
803
|
+
inputs: [
|
|
804
|
+
"sortableDisabled",
|
|
805
|
+
"monaSortableItem",
|
|
806
|
+
"sortableLabel"
|
|
807
|
+
],
|
|
808
|
+
exportAs: ["monaSortableItem"]
|
|
809
|
+
},
|
|
744
810
|
{
|
|
745
811
|
kind: "directive",
|
|
746
812
|
type: TabListItemDirective,
|
|
@@ -793,6 +859,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
793
859
|
imports: [
|
|
794
860
|
ButtonDirective,
|
|
795
861
|
NgTemplateOutlet,
|
|
862
|
+
SortableDirective,
|
|
863
|
+
SortableItemDirective,
|
|
796
864
|
TabListItemDirective,
|
|
797
865
|
LucideChevronDown,
|
|
798
866
|
LucideChevronLeft,
|
|
@@ -808,7 +876,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
808
876
|
"(focusout)": "onFocusOut($event)",
|
|
809
877
|
"(keydown)": "onKeydown($event)"
|
|
810
878
|
},
|
|
811
|
-
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabClosable && !itemDisabled
|
|
879
|
+
template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n"
|
|
812
880
|
}]
|
|
813
881
|
}],
|
|
814
882
|
ctorParameters: () => [],
|
|
@@ -880,6 +948,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
880
948
|
required: true
|
|
881
949
|
}]
|
|
882
950
|
}],
|
|
951
|
+
sortable: [{
|
|
952
|
+
type: i0.Input,
|
|
953
|
+
args: [{
|
|
954
|
+
isSignal: true,
|
|
955
|
+
alias: "sortable",
|
|
956
|
+
required: false
|
|
957
|
+
}]
|
|
958
|
+
}],
|
|
883
959
|
tabClose: [{
|
|
884
960
|
type: i0.Output,
|
|
885
961
|
args: ["tabClose"]
|
|
@@ -892,6 +968,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
892
968
|
required: true
|
|
893
969
|
}]
|
|
894
970
|
}],
|
|
971
|
+
tabReorder: [{
|
|
972
|
+
type: i0.Output,
|
|
973
|
+
args: ["tabReorder"]
|
|
974
|
+
}],
|
|
895
975
|
tabSelect: [{
|
|
896
976
|
type: i0.Output,
|
|
897
977
|
args: ["tabSelect"]
|
|
@@ -1141,7 +1221,12 @@ var TabsComponent = class TabsComponent {
|
|
|
1141
1221
|
this.position = input("top", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
1142
1222
|
this.selectedIndex = model(0, ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
|
|
1143
1223
|
this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
1224
|
+
this.sortable = input(false, {
|
|
1225
|
+
...ngDevMode ? { debugName: "sortable" } : /* istanbul ignore next */ {},
|
|
1226
|
+
transform: booleanAttribute
|
|
1227
|
+
});
|
|
1144
1228
|
this.tabClose = output();
|
|
1229
|
+
this.tabReorder = output();
|
|
1145
1230
|
this.tabSelect = output();
|
|
1146
1231
|
this.userClass = input("", {
|
|
1147
1232
|
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
@@ -1264,6 +1349,13 @@ var TabsComponent = class TabsComponent {
|
|
|
1264
1349
|
isRequired: false,
|
|
1265
1350
|
transformFunction: null
|
|
1266
1351
|
},
|
|
1352
|
+
sortable: {
|
|
1353
|
+
classPropertyName: "sortable",
|
|
1354
|
+
publicName: "sortable",
|
|
1355
|
+
isSignal: true,
|
|
1356
|
+
isRequired: false,
|
|
1357
|
+
transformFunction: null
|
|
1358
|
+
},
|
|
1267
1359
|
userClass: {
|
|
1268
1360
|
classPropertyName: "userClass",
|
|
1269
1361
|
publicName: "class",
|
|
@@ -1275,6 +1367,7 @@ var TabsComponent = class TabsComponent {
|
|
|
1275
1367
|
outputs: {
|
|
1276
1368
|
selectedIndex: "selectedIndexChange",
|
|
1277
1369
|
tabClose: "tabClose",
|
|
1370
|
+
tabReorder: "tabReorder",
|
|
1278
1371
|
tabSelect: "tabSelect"
|
|
1279
1372
|
},
|
|
1280
1373
|
host: { properties: {
|
|
@@ -1295,7 +1388,7 @@ var TabsComponent = class TabsComponent {
|
|
|
1295
1388
|
isSignal: true
|
|
1296
1389
|
}],
|
|
1297
1390
|
ngImport: i0,
|
|
1298
|
-
template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n",
|
|
1391
|
+
template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n",
|
|
1299
1392
|
dependencies: [{
|
|
1300
1393
|
kind: "directive",
|
|
1301
1394
|
type: NgTemplateOutlet,
|
|
@@ -1317,11 +1410,13 @@ var TabsComponent = class TabsComponent {
|
|
|
1317
1410
|
"position",
|
|
1318
1411
|
"selectedTabId",
|
|
1319
1412
|
"size",
|
|
1413
|
+
"sortable",
|
|
1320
1414
|
"tabList"
|
|
1321
1415
|
],
|
|
1322
1416
|
outputs: [
|
|
1323
1417
|
"selectedTabIdChange",
|
|
1324
1418
|
"tabClose",
|
|
1419
|
+
"tabReorder",
|
|
1325
1420
|
"tabSelect"
|
|
1326
1421
|
]
|
|
1327
1422
|
}]
|
|
@@ -1343,7 +1438,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1343
1438
|
"[attr.aria-label]": "null",
|
|
1344
1439
|
"[attr.aria-labelledby]": "null"
|
|
1345
1440
|
},
|
|
1346
|
-
template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n"
|
|
1441
|
+
template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n"
|
|
1347
1442
|
}]
|
|
1348
1443
|
}],
|
|
1349
1444
|
ctorParameters: () => [],
|
|
@@ -1423,10 +1518,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1423
1518
|
required: false
|
|
1424
1519
|
}]
|
|
1425
1520
|
}],
|
|
1521
|
+
sortable: [{
|
|
1522
|
+
type: i0.Input,
|
|
1523
|
+
args: [{
|
|
1524
|
+
isSignal: true,
|
|
1525
|
+
alias: "sortable",
|
|
1526
|
+
required: false
|
|
1527
|
+
}]
|
|
1528
|
+
}],
|
|
1426
1529
|
tabClose: [{
|
|
1427
1530
|
type: i0.Output,
|
|
1428
1531
|
args: ["tabClose"]
|
|
1429
1532
|
}],
|
|
1533
|
+
tabReorder: [{
|
|
1534
|
+
type: i0.Output,
|
|
1535
|
+
args: ["tabReorder"]
|
|
1536
|
+
}],
|
|
1430
1537
|
tabSelect: [{
|
|
1431
1538
|
type: i0.Output,
|
|
1432
1539
|
args: ["tabSelect"]
|
|
@@ -1441,6 +1548,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1441
1548
|
}]
|
|
1442
1549
|
}
|
|
1443
1550
|
});
|
|
1444
|
-
export { TABS_DEFAULT_MESSAGES, TabCloseEvent, TabComponent, TabContentTemplateDirective, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
|
|
1551
|
+
export { TABS_DEFAULT_MESSAGES, TabCloseEvent, TabComponent, TabContentTemplateDirective, TabReorderEvent, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
|
|
1445
1552
|
|
|
1446
1553
|
//# sourceMappingURL=nanahoshi-mona-ui-tabs.mjs.map
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Cancel",
|
|
384
384
|
"cancelNewRow": "Cancel new row",
|
|
385
385
|
"cancelRowEdit": "Cancel editing row {rowNumber}",
|
|
386
|
+
"cellsCopied": "{count, plural, =1 {Copied # cell} other {Copied # cells}}",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {No cells pasted} =1 {Pasted # cell} other {Pasted # cells}}",
|
|
386
388
|
"clearFilter": "Clear filter for {column}",
|
|
387
389
|
"collapseDetail": "Collapse details of row {rowNumber}",
|
|
388
390
|
"columnGrouped": "Grouped by {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Sort order {position}",
|
|
437
439
|
"toolbar": "Grid toolbar"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count, plural, =1 {# card} other {# cards}}",
|
|
443
|
+
"cardCountWithLimit": "{count} of {limit, plural, =1 {# card} other {# cards}}",
|
|
444
|
+
"emptyColumn": "No cards"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Optional"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Minimum value",
|
|
552
559
|
"sliderValue": "Slider value"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} moved to position {position} of {total}",
|
|
563
|
+
"itemMovedToList": "{item} moved to {list}, position {position} of {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Cancel",
|
|
556
567
|
"loading": "Loading"
|
package/llms.txt
CHANGED
|
@@ -86,10 +86,12 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
86
86
|
- [Avatar](docs/avatar.md): Shows a person or entity as an image, text label or projected content, alone or stacked in a group.
|
|
87
87
|
- [Badge](docs/badge.md): A small filled or outlined label for a count or a status.
|
|
88
88
|
- [Chip](docs/chip.md): A compact label that can be selected, removed or given a prefix.
|
|
89
|
+
- [Kanban](docs/kanban.md): A board of columns that cards move between by dragging or with the keyboard, with column limits.
|
|
89
90
|
- [List Box](docs/list-box.md): A selectable list with a toolbar for moving items and transferring them between lists.
|
|
90
91
|
- [List View](docs/list-view.md): Renders a collection as a list, with optional selection, grouping and paging.
|
|
91
92
|
- [Pager](docs/pager.md): Pagination controls with page buttons, a page-size selector and a page-jump input.
|
|
92
93
|
- [QR Code](docs/qr-code.md): Encodes text or a URL as a scannable QR code, with logo overlays and PNG, SVG and PDF export.
|
|
94
|
+
- [Sortable](docs/sortable.md): Lets users reorder any list by dragging or with the keyboard, and move items between connected lists.
|
|
93
95
|
- [Tree View](docs/tree-view.md): Hierarchical data as an expandable, keyboard-navigable tree.
|
|
94
96
|
|
|
95
97
|
## Grid
|
|
@@ -97,12 +99,13 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
97
99
|
- [Grid Overview](docs/grid.md): Tabular data in typed columns with paging, templates and a toolbar, extended by feature directives.
|
|
98
100
|
- [Sorting & Filtering](docs/grid-sorting-filtering.md): Sort rows by column headers and filter them from a header menu or a filter row.
|
|
99
101
|
- [Grouping & Aggregates](docs/grid-grouping.md): Group rows by column values and show sums, averages and other aggregates in footers.
|
|
100
|
-
- [
|
|
102
|
+
- [Tree List](docs/grid-tree.md): Show hierarchical rows in a grid, nested or linked by a parent key, with expandable levels.
|
|
103
|
+
- [Selection](docs/grid-selection.md): Select rows by key with checkboxes, clicks and the keyboard, or a range of cells to copy and paste.
|
|
101
104
|
- [Editing](docs/grid-editing.md): Edit cells or rows inline with Signal Forms, and add, save, cancel and remove rows.
|
|
102
105
|
- [Columns](docs/grid-columns.md): Group, resize, reorder, lock and hide columns, by pointer, keyboard or the column chooser.
|
|
103
106
|
- [Rows](docs/grid-rows.md): Expandable detail rows, row reordering by drag or keyboard, row classes and row sizing.
|
|
104
107
|
- [Server Binding & Virtualization](docs/grid-server.md): Load pages from a server, or render only the visible rows of a large data set.
|
|
105
|
-
- [State & Export](docs/grid-state-export.md): Save and restore the grid's columns, sort, filter, groups and page size, and export rows as CSV or
|
|
108
|
+
- [State & Export](docs/grid-state-export.md): Save and restore the grid's columns, sort, filter, groups and page size, and export rows as CSV, Excel or PDF.
|
|
106
109
|
|
|
107
110
|
## Charts
|
|
108
111
|
|
|
@@ -198,8 +201,9 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
198
201
|
- [`@nanahoshi/mona-ui/file-upload`](docs/api/file-upload.md): 8 exports, in full.
|
|
199
202
|
- [`@nanahoshi/mona-ui/filter`](docs/api/filter.md): 7 exports, in full.
|
|
200
203
|
- [`@nanahoshi/mona-ui/form-field`](docs/api/form-field.md): 6 exports, in full.
|
|
201
|
-
- [`@nanahoshi/mona-ui/grid`](docs/api/grid.md):
|
|
202
|
-
- [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md):
|
|
204
|
+
- [`@nanahoshi/mona-ui/grid`](docs/api/grid.md): 97 exports, in full.
|
|
205
|
+
- [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md): 120 exports, in full.
|
|
206
|
+
- [`@nanahoshi/mona-ui/kanban`](docs/api/kanban.md): 10 exports, in full.
|
|
203
207
|
- [`@nanahoshi/mona-ui/label`](docs/api/label.md): 4 exports, in full.
|
|
204
208
|
- [`@nanahoshi/mona-ui/list`](docs/api/list.md): 10 exports, in full.
|
|
205
209
|
- [`@nanahoshi/mona-ui/list-box`](docs/api/list-box.md): 16 exports, in full.
|
|
@@ -229,12 +233,13 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
229
233
|
- [`@nanahoshi/mona-ui/sidebar`](docs/api/sidebar.md): 36 exports, in full.
|
|
230
234
|
- [`@nanahoshi/mona-ui/skeleton`](docs/api/skeleton.md): 1 export, in full.
|
|
231
235
|
- [`@nanahoshi/mona-ui/slider`](docs/api/slider.md): 8 exports, in full.
|
|
236
|
+
- [`@nanahoshi/mona-ui/sortable`](docs/api/sortable.md): 10 exports, in full.
|
|
232
237
|
- [`@nanahoshi/mona-ui/spinner`](docs/api/spinner.md): 9 exports, in full.
|
|
233
238
|
- [`@nanahoshi/mona-ui/split-button`](docs/api/split-button.md): 14 exports, in full.
|
|
234
239
|
- [`@nanahoshi/mona-ui/splitter`](docs/api/splitter.md): 3 exports, in full.
|
|
235
240
|
- [`@nanahoshi/mona-ui/stepper`](docs/api/stepper.md): 9 exports, in full.
|
|
236
241
|
- [`@nanahoshi/mona-ui/switch`](docs/api/switch.md): 5 exports, in full.
|
|
237
|
-
- [`@nanahoshi/mona-ui/tabs`](docs/api/tabs.md):
|
|
242
|
+
- [`@nanahoshi/mona-ui/tabs`](docs/api/tabs.md): 9 exports, in full.
|
|
238
243
|
- [`@nanahoshi/mona-ui/text-area`](docs/api/text-area.md): 1 export, in full.
|
|
239
244
|
- [`@nanahoshi/mona-ui/text-box`](docs/api/text-box.md): 6 exports, in full.
|
|
240
245
|
- [`@nanahoshi/mona-ui/theme`](docs/api/theme.md): 53 exports, in full.
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "إلغاء",
|
|
384
384
|
"cancelNewRow": "إلغاء الصف الجديد",
|
|
385
385
|
"cancelRowEdit": "إلغاء تحرير الصف {rowNumber}",
|
|
386
|
+
"cellsCopied": "الخلايا المنسوخة: {count}",
|
|
387
|
+
"cellsPasted": "الخلايا التي تم اللصق فيها: {count}",
|
|
386
388
|
"clearFilter": "مسح تصفية {column}",
|
|
387
389
|
"collapseDetail": "طي تفاصيل الصف {rowNumber}",
|
|
388
390
|
"columnGrouped": "تم التجميع حسب {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "ترتيب الفرز {position}",
|
|
437
439
|
"toolbar": "شريط أدوات الجدول"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "عدد البطاقات: {count}",
|
|
443
|
+
"cardCountWithLimit": "عدد البطاقات: {count} من {limit}",
|
|
444
|
+
"emptyColumn": "لا توجد بطاقات"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "اختياري"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "الحد الأدنى",
|
|
552
559
|
"sliderValue": "قيمة شريط التمرير"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "تم نقل {item} إلى الموضع {position} من {total}",
|
|
563
|
+
"itemMovedToList": "تم نقل {item} إلى {list}، الموضع {position} من {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "إلغاء",
|
|
556
567
|
"loading": "جارٍ التحميل"
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Abbrechen",
|
|
384
384
|
"cancelNewRow": "Neue Zeile verwerfen",
|
|
385
385
|
"cancelRowEdit": "Bearbeitung von Zeile {rowNumber} abbrechen",
|
|
386
|
+
"cellsCopied": "{count, plural, one {# Zelle kopiert} other {# Zellen kopiert}}",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {Keine Zellen eingefügt} one {# Zelle eingefügt} other {# Zellen eingefügt}}",
|
|
386
388
|
"clearFilter": "Filter für {column} leeren",
|
|
387
389
|
"collapseDetail": "Details von Zeile {rowNumber} ausblenden",
|
|
388
390
|
"columnGrouped": "Nach {column} gruppiert",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Sortierreihenfolge {position}",
|
|
437
439
|
"toolbar": "Tabellen-Symbolleiste"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count, plural, =1 {# Karte} other {# Karten}}",
|
|
443
|
+
"cardCountWithLimit": "{count} von {limit, plural, =1 {# Karte} other {# Karten}}",
|
|
444
|
+
"emptyColumn": "Keine Karten"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Optional"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Minimalwert",
|
|
552
559
|
"sliderValue": "Wert des Schiebereglers"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} an Position {position} von {total} verschoben",
|
|
563
|
+
"itemMovedToList": "{item} nach {list} verschoben, Position {position} von {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Abbrechen",
|
|
556
567
|
"loading": "Wird geladen"
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Cancelar",
|
|
384
384
|
"cancelNewRow": "Descartar fila nueva",
|
|
385
385
|
"cancelRowEdit": "Cancelar edición de la fila {rowNumber}",
|
|
386
|
+
"cellsCopied": "{count, plural, one {# celda copiada} other {# celdas copiadas}}",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {No se pegó ninguna celda} one {# celda pegada} other {# celdas pegadas}}",
|
|
386
388
|
"clearFilter": "Limpiar filtro de {column}",
|
|
387
389
|
"collapseDetail": "Ocultar detalles de la fila {rowNumber}",
|
|
388
390
|
"columnGrouped": "Agrupado por {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Orden de clasificación {position}",
|
|
437
439
|
"toolbar": "Barra de herramientas de la tabla"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count, plural, =1 {# tarjeta} other {# tarjetas}}",
|
|
443
|
+
"cardCountWithLimit": "{count} de {limit, plural, =1 {# tarjeta} other {# tarjetas}}",
|
|
444
|
+
"emptyColumn": "No hay tarjetas"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Opcional"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Valor mínimo",
|
|
552
559
|
"sliderValue": "Valor del control deslizante"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} ahora está en la posición {position} de {total}",
|
|
563
|
+
"itemMovedToList": "{item} ahora está en {list}, posición {position} de {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Cancelar",
|
|
556
567
|
"loading": "Cargando"
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Annuler",
|
|
384
384
|
"cancelNewRow": "Annuler la nouvelle ligne",
|
|
385
385
|
"cancelRowEdit": "Annuler la modification de la ligne {rowNumber}",
|
|
386
|
+
"cellsCopied": "{count, plural, one {# cellule copiée} other {# cellules copiées}}",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {Aucune cellule collée} one {# cellule collée} other {# cellules collées}}",
|
|
386
388
|
"clearFilter": "Effacer le filtre de {column}",
|
|
387
389
|
"collapseDetail": "Masquer les détails de la ligne {rowNumber}",
|
|
388
390
|
"columnGrouped": "Groupé par {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Ordre de tri {position}",
|
|
437
439
|
"toolbar": "Barre d’outils du tableau"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count, plural, =1 {# carte} other {# cartes}}",
|
|
443
|
+
"cardCountWithLimit": "{count} sur {limit, plural, =1 {# carte} other {# cartes}}",
|
|
444
|
+
"emptyColumn": "Aucune carte"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Facultatif"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Valeur minimale",
|
|
552
559
|
"sliderValue": "Valeur du curseur"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} est maintenant en position {position} sur {total}",
|
|
563
|
+
"itemMovedToList": "{item} est maintenant dans {list}, à la position {position} sur {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Annuler",
|
|
556
567
|
"loading": "Chargement"
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Batal",
|
|
384
384
|
"cancelNewRow": "Batalkan baris baru",
|
|
385
385
|
"cancelRowEdit": "Batalkan pengeditan baris {rowNumber}",
|
|
386
|
+
"cellsCopied": "{count} sel disalin",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {Tidak ada sel yang ditempel} other {# sel ditempel}}",
|
|
386
388
|
"clearFilter": "Bersihkan saringan kolom {column}",
|
|
387
389
|
"collapseDetail": "Sembunyikan detail baris {rowNumber}",
|
|
388
390
|
"columnGrouped": "Dikelompokkan menurut {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Urutan pengurutan {position}",
|
|
437
439
|
"toolbar": "Bilah alat tabel"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count} kartu",
|
|
443
|
+
"cardCountWithLimit": "{count} dari {limit} kartu",
|
|
444
|
+
"emptyColumn": "Tidak ada kartu"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Opsional"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Nilai minimum",
|
|
552
559
|
"sliderValue": "Nilai penggeser"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} dipindahkan ke posisi {position} dari {total}",
|
|
563
|
+
"itemMovedToList": "{item} dipindahkan ke {list}, posisi {position} dari {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Batal",
|
|
556
567
|
"loading": "Memuat"
|
|
@@ -383,6 +383,8 @@
|
|
|
383
383
|
"cancel": "Annulla",
|
|
384
384
|
"cancelNewRow": "Annulla nuova riga",
|
|
385
385
|
"cancelRowEdit": "Annulla modifica della riga {rowNumber}",
|
|
386
|
+
"cellsCopied": "{count, plural, one {# cella copiata} other {# celle copiate}}",
|
|
387
|
+
"cellsPasted": "{count, plural, =0 {Nessuna cella incollata} one {# cella incollata} other {# celle incollate}}",
|
|
386
388
|
"clearFilter": "Cancella filtro di {column}",
|
|
387
389
|
"collapseDetail": "Nascondi i dettagli della riga {rowNumber}",
|
|
388
390
|
"columnGrouped": "Raggruppato per {column}",
|
|
@@ -436,6 +438,11 @@
|
|
|
436
438
|
"sortOrder": "Ordine di ordinamento {position}",
|
|
437
439
|
"toolbar": "Barra degli strumenti della tabella"
|
|
438
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count, plural, =1 {# scheda} other {# schede}}",
|
|
443
|
+
"cardCountWithLimit": "{count} di {limit, plural, =1 {# scheda} other {# schede}}",
|
|
444
|
+
"emptyColumn": "Nessuna scheda"
|
|
445
|
+
},
|
|
439
446
|
"label": {
|
|
440
447
|
"optional": "Facoltativo"
|
|
441
448
|
},
|
|
@@ -551,6 +558,10 @@
|
|
|
551
558
|
"minimumValue": "Valore minimo",
|
|
552
559
|
"sliderValue": "Valore del cursore"
|
|
553
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} ora è in posizione {position} di {total}",
|
|
563
|
+
"itemMovedToList": "{item} ora è in {list}, posizione {position} di {total}"
|
|
564
|
+
},
|
|
554
565
|
"spinner": {
|
|
555
566
|
"cancel": "Annulla",
|
|
556
567
|
"loading": "Caricamento in corso"
|