@libs-ui/components-label 0.2.357-0 → 0.2.357-2
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 +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ import { IButton } from '@libs-ui/components-buttons-button';
|
|
|
77
77
|
})
|
|
78
78
|
export class TeamSectionComponent {
|
|
79
79
|
protected buttonsRight: IButton[] = [
|
|
80
|
-
{ classIconLeft: 'libs-ui-icon-
|
|
81
|
-
{ classIconLeft: 'libs-ui-icon-
|
|
80
|
+
{ classIconLeft: 'libs-ui-icon-add', key: 'add', popover: { dataView: 'Thêm mới' } },
|
|
81
|
+
{ classIconLeft: 'libs-ui-icon-arrange', key: 'settings', popover: { dataView: 'Cài đặt' } },
|
|
82
82
|
];
|
|
83
83
|
|
|
84
84
|
protected handlerClickButton(button: IButton): void {
|
|
@@ -191,8 +191,8 @@ const labelConfig: ILabel = {
|
|
|
191
191
|
|---|---|---|---|---|
|
|
192
192
|
| `buttonsDescription` | `IButton[]` | `[]` | Danh sách nút bấm hiển thị vùng mô tả bên dưới nhãn | `[buttonsDescription]="[{ key: 'add', label: 'Thêm' }]"` |
|
|
193
193
|
| `buttonsDescriptionContainerClass` | `string` | `'flex libs-ui-label-description-button'` | Class CSS container bọc ngoài nhóm nút mô tả | `[buttonsDescriptionContainerClass]="'flex gap-2'"` |
|
|
194
|
-
| `buttonsLeft` | `IButton[]` | `[]` | Danh sách nút bấm hiển thị vùng trái (sau nhãn left) | `[buttonsLeft]="[{ classIconLeft: 'libs-ui-icon-
|
|
195
|
-
| `buttonsRight` | `IButton[]` | `[]` | Danh sách nút bấm hiển thị vùng phải | `[buttonsRight]="[{ classIconLeft: 'libs-ui-icon-edit', key: 'edit' }]"` |
|
|
194
|
+
| `buttonsLeft` | `IButton[]` | `[]` | Danh sách nút bấm hiển thị vùng trái (sau nhãn left) | `[buttonsLeft]="[{ classIconLeft: 'libs-ui-icon-add', key: 'add' }]"` |
|
|
195
|
+
| `buttonsRight` | `IButton[]` | `[]` | Danh sách nút bấm hiển thị vùng phải | `[buttonsRight]="[{ classIconLeft: 'libs-ui-icon-edit-line', key: 'edit' }]"` |
|
|
196
196
|
| `classInclude` | `string` | `'libs-ui-label'` | Class CSS bổ sung cho wrapper ngoài cùng của component | `[classInclude]="'my-custom-label'"` |
|
|
197
197
|
| `count` | `number` | `0` | Số ký tự hiện tại để hiển thị trên bộ đếm | `[count]="charCount()"` |
|
|
198
198
|
| `description` | `string` | `undefined` | Văn bản mô tả phụ hiển thị bên dưới nhãn chính (hỗ trợ i18n key) | `[description]="'i18n_field_hint'"` |
|
|
@@ -201,7 +201,7 @@ const labelConfig: ILabel = {
|
|
|
201
201
|
| `disableButtonsLeft` | `boolean` | `undefined` | Vô hiệu hóa tất cả nút bên trái | `[disableButtonsLeft]="isReadonly()"` |
|
|
202
202
|
| `disableButtonsRight` | `boolean` | `undefined` | Vô hiệu hóa tất cả nút bên phải | `[disableButtonsRight]="isReadonly()"` |
|
|
203
203
|
| `hasToggle` | `boolean` | `undefined` | Hiển thị toggle switch trong nhãn | `[hasToggle]="true"` |
|
|
204
|
-
| `iconPopoverClass` | `string` | `'libs-ui-icon-tooltip-outline'` | Class CSS của icon tooltip (hiển thị khi có `popover`) | `[iconPopoverClass]="'libs-ui-icon-
|
|
204
|
+
| `iconPopoverClass` | `string` | `'libs-ui-icon-tooltip-outline'` | Class CSS của icon tooltip (hiển thị khi có `popover`) | `[iconPopoverClass]="'libs-ui-icon-tooltip-outline'"` |
|
|
205
205
|
| `labelLeft` | `string` | `undefined` | Văn bản nhãn bên trái (hỗ trợ i18n key) | `[labelLeft]="'i18n_field_name'"` |
|
|
206
206
|
| `labelLeftBehindToggleButton` | `boolean` | `undefined` | Khi `true`, toggle switch hiển thị trước nhãn trái; khi `false`/`undefined`, toggle ở sau | `[labelLeftBehindToggleButton]="true"` |
|
|
207
207
|
| `labelLeftClass` | `string` | `'libs-ui-label-left-text libs-ui-font-h6m'` | Class CSS bổ sung cho text nhãn trái | `[labelLeftClass]="'text-blue-600'"` |
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-label",
|
|
3
|
-
"version": "0.2.357-
|
|
3
|
+
"version": "0.2.357-2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=18.0.0",
|
|
6
|
-
"@libs-ui/components-buttons-button": "0.2.357-
|
|
7
|
-
"@libs-ui/components-popover": "0.2.357-
|
|
8
|
-
"@libs-ui/components-switch": "0.2.357-
|
|
9
|
-
"@libs-ui/utils": "0.2.357-
|
|
6
|
+
"@libs-ui/components-buttons-button": "0.2.357-2",
|
|
7
|
+
"@libs-ui/components-popover": "0.2.357-2",
|
|
8
|
+
"@libs-ui/components-switch": "0.2.357-2",
|
|
9
|
+
"@libs-ui/utils": "0.2.357-2",
|
|
10
10
|
"@ngx-translate/core": "^15.0.0"
|
|
11
11
|
},
|
|
12
12
|
"sideEffects": false,
|