@nanahoshi/mona-ui 0.49.0 → 0.50.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/breadcrumb.json +1 -1
- package/docs/api/breadcrumb.md +5 -1
- package/docs/api/index.json +1 -1
- package/docs/breadcrumb.md +58 -4
- package/docs/manifest.json +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +116 -32
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +18 -4
|
@@ -43,12 +43,24 @@ export declare class BreadcrumbItemComponent {
|
|
|
43
43
|
"itemClick": "itemClick";
|
|
44
44
|
}, ["link"], ["*"], true, never>;
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* An item, and whether it and the separator after it are folded. Every item and separator stays in the list, folded or
|
|
48
|
+
* not, so the breadcrumb can measure the whole trail.
|
|
49
|
+
*/
|
|
47
50
|
interface BreadcrumbEntry {
|
|
51
|
+
/** Whether the button that stands for the folded items comes before this item: the second of three or more. */
|
|
52
|
+
readonly foldButtonBefore: boolean;
|
|
53
|
+
readonly folded: boolean;
|
|
54
|
+
/** What the separator after the item reports. */
|
|
48
55
|
readonly index: number;
|
|
49
|
-
readonly item: BreadcrumbItemComponent
|
|
50
|
-
readonly
|
|
56
|
+
readonly item: BreadcrumbItemComponent;
|
|
57
|
+
readonly separatorFolded: boolean;
|
|
51
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* A trail of `mona-breadcrumb-item`s that leads to the current page. When the trail is wider than its box, its middle
|
|
61
|
+
* folds behind a button that shows it again, the items nearest the start first, so the first item and the current page
|
|
62
|
+
* stay readable.
|
|
63
|
+
*/
|
|
52
64
|
export declare class BreadcrumbComponent implements BreadcrumbVariantInput {
|
|
53
65
|
#private;
|
|
54
66
|
protected readonly currentItemClass: import("@angular/core").Signal<string>;
|
|
@@ -81,7 +93,8 @@ export declare class BreadcrumbComponent implements BreadcrumbVariantInput {
|
|
|
81
93
|
readonly lastItemCurrent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
82
94
|
/**
|
|
83
95
|
* @description The most items to show before the middle of the trail collapses behind a button that shows it again.
|
|
84
|
-
* The
|
|
96
|
+
* The trail also folds whatever doesn't fit its width, with or without it. The first and last items always stay, so
|
|
97
|
+
* anything below 2 counts as 2. `null` sets no count.
|
|
85
98
|
* @default null
|
|
86
99
|
*/
|
|
87
100
|
readonly maxItems: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
@@ -90,6 +103,7 @@ export declare class BreadcrumbComponent implements BreadcrumbVariantInput {
|
|
|
90
103
|
* @default ""
|
|
91
104
|
*/
|
|
92
105
|
readonly userClass: import("@angular/core").InputSignal<string>;
|
|
106
|
+
constructor();
|
|
93
107
|
/**
|
|
94
108
|
* Shows the whole trail. The button that was just activated goes away, so focus moves to the first item it revealed.
|
|
95
109
|
*/
|