@nanahoshi/mona-ui 0.40.0 → 0.42.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/auto-complete.md +2 -0
- package/docs/api/combo-box.md +2 -0
- package/docs/api/common.md +1 -1
- package/docs/api/dropdowns.md +3 -1
- package/docs/api/i18n.md +54 -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/sparkline.md +85 -0
- package/docs/api/tabs.md +20 -0
- package/docs/auto-complete.md +64 -0
- package/docs/combo-box.md +65 -0
- package/docs/kanban.md +293 -0
- package/docs/sortable.md +320 -0
- package/docs/sparkline.md +303 -0
- package/docs/tabs.md +59 -10
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +95 -30
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +58 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +64 -29
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +87 -0
- package/fesm2022/nanahoshi-mona-ui-kanban.mjs +660 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +44 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-sortable.mjs +733 -0
- package/fesm2022/nanahoshi-mona-ui-sparkline.mjs +573 -0
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +112 -5
- package/i18n/catalogs/en-US.messages.json +14 -0
- package/kanban/package.json +4 -0
- package/llms.txt +8 -2
- package/locales/ar-sa/ar-sa.messages.json +14 -0
- package/locales/de-de/de-de.messages.json +14 -0
- package/locales/es-es/es-es.messages.json +14 -0
- package/locales/fr-fr/fr-fr.messages.json +14 -0
- package/locales/id-id/id-id.messages.json +14 -0
- package/locales/it-it/it-it.messages.json +14 -0
- package/locales/ja-jp/ja-jp.messages.json +14 -0
- package/locales/ko-kr/ko-kr.messages.json +14 -0
- package/locales/pl-pl/pl-pl.messages.json +14 -0
- package/locales/pt-br/pt-br.messages.json +14 -0
- package/locales/ru-ru/ru-ru.messages.json +14 -0
- package/locales/tr-tr/tr-tr.messages.json +14 -0
- package/locales/zh-cn/zh-cn.messages.json +14 -0
- package/locales/zh-tw/zh-tw.messages.json +14 -0
- package/package.json +13 -1
- package/sortable/package.json +4 -0
- package/sparkline/package.json +4 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +42 -1
- package/types/nanahoshi-mona-ui-combo-box.d.ts +37 -1
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +54 -4
- package/types/nanahoshi-mona-ui-i18n.d.ts +31 -0
- package/types/nanahoshi-mona-ui-kanban.d.ts +270 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +14 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +14 -0
- package/types/nanahoshi-mona-ui-sortable.d.ts +245 -0
- package/types/nanahoshi-mona-ui-sparkline.d.ts +228 -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
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Sort order {position}",
|
|
439
439
|
"toolbar": "Grid toolbar"
|
|
440
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
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Optional"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Minimum value",
|
|
554
559
|
"sliderValue": "Slider value"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} moved to position {position} of {total}",
|
|
563
|
+
"itemMovedToList": "{item} moved to {list}, position {position} of {total}"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "No data",
|
|
567
|
+
"summary": "{count, plural, =1 {# value} other {# values}}, first {first}, last {last}, lowest {min}, highest {max}",
|
|
568
|
+
"winLossSummary": "{wins, plural, =1 {# win} other {# wins}}, {losses, plural, =1 {# loss} other {# losses}}, {draws, plural, =1 {# draw} other {# draws}}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Cancel",
|
|
558
572
|
"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
|
|
@@ -118,6 +120,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
118
120
|
- [Treemap](docs/chart-treemap.md): A treemap series that tiles hierarchical data by value.
|
|
119
121
|
- [Radar & Polar](docs/chart-radar.md): Radar and polar series on angular and radial axes, for comparing metrics or directions.
|
|
120
122
|
- [Radial](docs/chart-radial.md): Radial bar, rose and gauge series that draw values as arcs around a center.
|
|
123
|
+
- [Sparkline](docs/sparkline.md): A word-sized line, area, column or win-loss chart, for a table cell or a line of text.
|
|
121
124
|
|
|
122
125
|
## Navigation
|
|
123
126
|
|
|
@@ -200,7 +203,8 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
200
203
|
- [`@nanahoshi/mona-ui/filter`](docs/api/filter.md): 7 exports, in full.
|
|
201
204
|
- [`@nanahoshi/mona-ui/form-field`](docs/api/form-field.md): 6 exports, in full.
|
|
202
205
|
- [`@nanahoshi/mona-ui/grid`](docs/api/grid.md): 97 exports, in full.
|
|
203
|
-
- [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md):
|
|
206
|
+
- [`@nanahoshi/mona-ui/i18n`](docs/api/i18n.md): 121 exports, in full.
|
|
207
|
+
- [`@nanahoshi/mona-ui/kanban`](docs/api/kanban.md): 10 exports, in full.
|
|
204
208
|
- [`@nanahoshi/mona-ui/label`](docs/api/label.md): 4 exports, in full.
|
|
205
209
|
- [`@nanahoshi/mona-ui/list`](docs/api/list.md): 10 exports, in full.
|
|
206
210
|
- [`@nanahoshi/mona-ui/list-box`](docs/api/list-box.md): 16 exports, in full.
|
|
@@ -230,12 +234,14 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
230
234
|
- [`@nanahoshi/mona-ui/sidebar`](docs/api/sidebar.md): 36 exports, in full.
|
|
231
235
|
- [`@nanahoshi/mona-ui/skeleton`](docs/api/skeleton.md): 1 export, in full.
|
|
232
236
|
- [`@nanahoshi/mona-ui/slider`](docs/api/slider.md): 8 exports, in full.
|
|
237
|
+
- [`@nanahoshi/mona-ui/sortable`](docs/api/sortable.md): 10 exports, in full.
|
|
238
|
+
- [`@nanahoshi/mona-ui/sparkline`](docs/api/sparkline.md): 5 exports, in full.
|
|
233
239
|
- [`@nanahoshi/mona-ui/spinner`](docs/api/spinner.md): 9 exports, in full.
|
|
234
240
|
- [`@nanahoshi/mona-ui/split-button`](docs/api/split-button.md): 14 exports, in full.
|
|
235
241
|
- [`@nanahoshi/mona-ui/splitter`](docs/api/splitter.md): 3 exports, in full.
|
|
236
242
|
- [`@nanahoshi/mona-ui/stepper`](docs/api/stepper.md): 9 exports, in full.
|
|
237
243
|
- [`@nanahoshi/mona-ui/switch`](docs/api/switch.md): 5 exports, in full.
|
|
238
|
-
- [`@nanahoshi/mona-ui/tabs`](docs/api/tabs.md):
|
|
244
|
+
- [`@nanahoshi/mona-ui/tabs`](docs/api/tabs.md): 9 exports, in full.
|
|
239
245
|
- [`@nanahoshi/mona-ui/text-area`](docs/api/text-area.md): 1 export, in full.
|
|
240
246
|
- [`@nanahoshi/mona-ui/text-box`](docs/api/text-box.md): 6 exports, in full.
|
|
241
247
|
- [`@nanahoshi/mona-ui/theme`](docs/api/theme.md): 53 exports, in full.
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "ترتيب الفرز {position}",
|
|
439
439
|
"toolbar": "شريط أدوات الجدول"
|
|
440
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "عدد البطاقات: {count}",
|
|
443
|
+
"cardCountWithLimit": "عدد البطاقات: {count} من {limit}",
|
|
444
|
+
"emptyColumn": "لا توجد بطاقات"
|
|
445
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "اختياري"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "الحد الأدنى",
|
|
554
559
|
"sliderValue": "قيمة شريط التمرير"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "تم نقل {item} إلى الموضع {position} من {total}",
|
|
563
|
+
"itemMovedToList": "تم نقل {item} إلى {list}، الموضع {position} من {total}"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "لا توجد بيانات",
|
|
567
|
+
"summary": "عدد القيم: {count}، الأولى {first}، الأخيرة {last}، الأدنى {min}، الأعلى {max}",
|
|
568
|
+
"winLossSummary": "الفوز: {wins}، الخسارة: {losses}، التعادل: {draws}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "إلغاء",
|
|
558
572
|
"loading": "جارٍ التحميل"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Sortierreihenfolge {position}",
|
|
439
439
|
"toolbar": "Tabellen-Symbolleiste"
|
|
440
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
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Optional"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Minimalwert",
|
|
554
559
|
"sliderValue": "Wert des Schiebereglers"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} an Position {position} von {total} verschoben",
|
|
563
|
+
"itemMovedToList": "{item} nach {list} verschoben, Position {position} von {total}"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "Keine Daten",
|
|
567
|
+
"summary": "{count, plural, =1 {# Wert} other {# Werte}}, erster {first}, letzter {last}, niedrigster {min}, höchster {max}",
|
|
568
|
+
"winLossSummary": "{wins, plural, =1 {# Sieg} other {# Siege}}, {losses, plural, =1 {# Niederlage} other {# Niederlagen}}, {draws, plural, =1 {# Unentschieden} other {# Unentschieden}}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Abbrechen",
|
|
558
572
|
"loading": "Wird geladen"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Orden de clasificación {position}",
|
|
439
439
|
"toolbar": "Barra de herramientas de la tabla"
|
|
440
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
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Opcional"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Valor mínimo",
|
|
554
559
|
"sliderValue": "Valor del control deslizante"
|
|
555
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
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "No hay datos",
|
|
567
|
+
"summary": "{count, plural, =1 {# valor} other {# valores}}, primero {first}, último {last}, mínimo {min}, máximo {max}",
|
|
568
|
+
"winLossSummary": "{wins, plural, =1 {# victoria} other {# victorias}}, {losses, plural, =1 {# derrota} other {# derrotas}}, {draws, plural, =1 {# empate} other {# empates}}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Cancelar",
|
|
558
572
|
"loading": "Cargando"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Ordre de tri {position}",
|
|
439
439
|
"toolbar": "Barre d’outils du tableau"
|
|
440
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
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Facultatif"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Valeur minimale",
|
|
554
559
|
"sliderValue": "Valeur du curseur"
|
|
555
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
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "Aucune donnée",
|
|
567
|
+
"summary": "{count, plural, =1 {# valeur} other {# valeurs}}, première {first}, dernière {last}, minimum {min}, maximum {max}",
|
|
568
|
+
"winLossSummary": "{wins, plural, =1 {# victoire} other {# victoires}}, {losses, plural, =1 {# défaite} other {# défaites}}, {draws, plural, =1 {# match nul} other {# matchs nuls}}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Annuler",
|
|
558
572
|
"loading": "Chargement"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Urutan pengurutan {position}",
|
|
439
439
|
"toolbar": "Bilah alat tabel"
|
|
440
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "{count} kartu",
|
|
443
|
+
"cardCountWithLimit": "{count} dari {limit} kartu",
|
|
444
|
+
"emptyColumn": "Tidak ada kartu"
|
|
445
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Opsional"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Nilai minimum",
|
|
554
559
|
"sliderValue": "Nilai penggeser"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} dipindahkan ke posisi {position} dari {total}",
|
|
563
|
+
"itemMovedToList": "{item} dipindahkan ke {list}, posisi {position} dari {total}"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "Tidak ada data",
|
|
567
|
+
"summary": "{count} nilai, pertama {first}, terakhir {last}, terendah {min}, tertinggi {max}",
|
|
568
|
+
"winLossSummary": "{wins} menang, {losses} kalah, {draws} seri"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Batal",
|
|
558
572
|
"loading": "Memuat"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "Ordine di ordinamento {position}",
|
|
439
439
|
"toolbar": "Barra degli strumenti della tabella"
|
|
440
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
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "Facoltativo"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "Valore minimo",
|
|
554
559
|
"sliderValue": "Valore del cursore"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item} ora è in posizione {position} di {total}",
|
|
563
|
+
"itemMovedToList": "{item} ora è in {list}, posizione {position} di {total}"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "Nessun dato disponibile",
|
|
567
|
+
"summary": "{count, plural, =1 {# valore} other {# valori}}, primo {first}, ultimo {last}, minimo {min}, massimo {max}",
|
|
568
|
+
"winLossSummary": "{wins, plural, =1 {# vittoria} other {# vittorie}}, {losses, plural, =1 {# sconfitta} other {# sconfitte}}, {draws, plural, =1 {# pareggio} other {# pareggi}}"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "Annulla",
|
|
558
572
|
"loading": "Caricamento in corso"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "並べ替え順 {position}",
|
|
439
439
|
"toolbar": "表のツールバー"
|
|
440
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "カード{count}枚",
|
|
443
|
+
"cardCountWithLimit": "カード{limit}枚中{count}枚",
|
|
444
|
+
"emptyColumn": "カードはありません"
|
|
445
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "任意"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "最小値",
|
|
554
559
|
"sliderValue": "スライダーの値"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item}を{total}件中{position}番目に移動しました",
|
|
563
|
+
"itemMovedToList": "{item}を{list}の{total}件中{position}番目に移動しました"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "データがありません",
|
|
567
|
+
"summary": "{count}個の値、最初 {first}、最後 {last}、最小 {min}、最大 {max}",
|
|
568
|
+
"winLossSummary": "{wins}勝、{losses}敗、{draws}分"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "キャンセル",
|
|
558
572
|
"loading": "読み込み中"
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"sortOrder": "정렬 순서 {position}",
|
|
439
439
|
"toolbar": "표 도구 모음"
|
|
440
440
|
},
|
|
441
|
+
"kanban": {
|
|
442
|
+
"cardCount": "카드 {count}개",
|
|
443
|
+
"cardCountWithLimit": "카드 {limit}개 중 {count}개",
|
|
444
|
+
"emptyColumn": "카드 없음"
|
|
445
|
+
},
|
|
441
446
|
"label": {
|
|
442
447
|
"optional": "선택 사항"
|
|
443
448
|
},
|
|
@@ -553,6 +558,15 @@
|
|
|
553
558
|
"minimumValue": "최솟값",
|
|
554
559
|
"sliderValue": "슬라이더 값"
|
|
555
560
|
},
|
|
561
|
+
"sortable": {
|
|
562
|
+
"itemMoved": "{item}을(를) {total}개 중 {position}번째 위치로 이동했습니다",
|
|
563
|
+
"itemMovedToList": "{item}을(를) {list}의 {total}개 중 {position}번째 위치로 이동했습니다"
|
|
564
|
+
},
|
|
565
|
+
"sparkline": {
|
|
566
|
+
"noData": "데이터 없음",
|
|
567
|
+
"summary": "값 {count}개, 처음 {first}, 마지막 {last}, 최저 {min}, 최고 {max}",
|
|
568
|
+
"winLossSummary": "{wins}승 {losses}패 {draws}무"
|
|
569
|
+
},
|
|
556
570
|
"spinner": {
|
|
557
571
|
"cancel": "취소",
|
|
558
572
|
"loading": "로딩 중"
|