@libs-ui/components-breadcrumb 0.2.357-7 → 0.2.357-9
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/README.md +3 -14
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -157,12 +157,10 @@ export class ExampleComponent {
|
|
|
157
157
|
private breadcrumbControl: IBreadCrumbFunctionControlEvent | undefined;
|
|
158
158
|
|
|
159
159
|
handlerFunctionControl(event: IBreadCrumbFunctionControlEvent): void {
|
|
160
|
-
event.stopPropagation?.();
|
|
161
160
|
this.breadcrumbControl = event;
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
handlerStepSelected(event: ITabBreadCrumbSelected): void {
|
|
165
|
-
event.stopPropagation?.();
|
|
166
164
|
this.breadcrumbControl?.setSelectedStep(event.index);
|
|
167
165
|
}
|
|
168
166
|
|
|
@@ -219,7 +217,6 @@ export class ExampleComponent {
|
|
|
219
217
|
];
|
|
220
218
|
|
|
221
219
|
handlerMultiStepSelect(event: ITabBreadCrumbMultiStepSelected<ITabBreadCrumbMultiStep>): void {
|
|
222
|
-
event.stopPropagation?.();
|
|
223
220
|
console.log('Selected step:', event.index, 'Type:', event.type);
|
|
224
221
|
}
|
|
225
222
|
}
|
|
@@ -277,8 +274,8 @@ export class ExampleComponent {
|
|
|
277
274
|
|
|
278
275
|
| Output | Type | Mô tả | Handler TS | Binding HTML |
|
|
279
276
|
|---|---|---|---|---|
|
|
280
|
-
| `(outFunctionControl)` | `IBreadCrumbFunctionControlEvent` | Emit object chứa các hàm điều khiển component, phát ngay trong `ngOnInit`. Phải capture để gọi API programmatic. | `handlerFunctionControl(event: IBreadCrumbFunctionControlEvent): void {
|
|
281
|
-
| `(outStepSelected)` | `ITabBreadCrumbSelected` | Emit khi người dùng click vào một bước (không phát nếu bước bị `disable`) | `handlerStepSelected(event: ITabBreadCrumbSelected): void {
|
|
277
|
+
| `(outFunctionControl)` | `IBreadCrumbFunctionControlEvent` | Emit object chứa các hàm điều khiển component, phát ngay trong `ngOnInit`. Phải capture để gọi API programmatic. | `handlerFunctionControl(event: IBreadCrumbFunctionControlEvent): void { this.control = event; }` | `(outFunctionControl)="handlerFunctionControl($event)"` |
|
|
278
|
+
| `(outStepSelected)` | `ITabBreadCrumbSelected` | Emit khi người dùng click vào một bước (không phát nếu bước bị `disable`) | `handlerStepSelected(event: ITabBreadCrumbSelected): void { this.control?.setSelectedStep(event.index); }` | `(outStepSelected)="handlerStepSelected($event)"` |
|
|
282
279
|
|
|
283
280
|
## @Input() — LibsUiComponentsBreadcrumbMultiStepComponent
|
|
284
281
|
|
|
@@ -297,7 +294,7 @@ Kế thừa toàn bộ Output của `LibsUiComponentsBreadcrumbComponent`, cộn
|
|
|
297
294
|
|
|
298
295
|
| Output | Type | Mô tả | Handler TS | Binding HTML |
|
|
299
296
|
|---|---|---|---|---|
|
|
300
|
-
| `(outMultiStepSelect)` | `ITabBreadCrumbMultiStepSelected<any>` | Emit khi người dùng chọn bước (text click hoặc chọn item từ dropdown). Kèm `callBack` để ẩn/hiện keys trong dropdown. | `handlerMultiStepSelect(event: ITabBreadCrumbMultiStepSelected<MyStep>): void {
|
|
297
|
+
| `(outMultiStepSelect)` | `ITabBreadCrumbMultiStepSelected<any>` | Emit khi người dùng chọn bước (text click hoặc chọn item từ dropdown). Kèm `callBack` để ẩn/hiện keys trong dropdown. | `handlerMultiStepSelect(event: ITabBreadCrumbMultiStepSelected<MyStep>): void { this.onSelectStep(event); }` | `(outMultiStepSelect)="handlerMultiStepSelect($event)"` |
|
|
301
298
|
|
|
302
299
|
## FunctionsControl API — IBreadCrumbFunctionControlEvent
|
|
303
300
|
|
|
@@ -421,11 +418,3 @@ import { LibsUiComponentsBreadcrumbMultiStepComponent } from '@libs-ui/component
|
|
|
421
418
|
(outMultiStepSelect)="handlerMultiStepSelect($event)"
|
|
422
419
|
/>
|
|
423
420
|
```
|
|
424
|
-
|
|
425
|
-
## Demo
|
|
426
|
-
|
|
427
|
-
```bash
|
|
428
|
-
npx nx serve core-ui
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
Truy cập: http://localhost:4500/components/breadcrumb
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-breadcrumb",
|
|
3
|
-
"version": "0.2.357-
|
|
3
|
+
"version": "0.2.357-9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
7
|
"@ngx-translate/core": "^15.0.0",
|
|
8
|
-
"@libs-ui/components-list": "0.2.357-
|
|
9
|
-
"@libs-ui/components-popover": "0.2.357-
|
|
10
|
-
"@libs-ui/components-dropdown": "0.2.357-
|
|
8
|
+
"@libs-ui/components-list": "0.2.357-9",
|
|
9
|
+
"@libs-ui/components-popover": "0.2.357-9",
|
|
10
|
+
"@libs-ui/components-dropdown": "0.2.357-9"
|
|
11
11
|
},
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"module": "fesm2022/libs-ui-components-breadcrumb.mjs",
|