@aseansc/ui 4.0.1 → 4.1.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/CHANGELOG.md +19 -0
- package/fesm2022/aseansc-ui.mjs +75 -20
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/layout/_menu.scss +1 -0
- package/tokens/preset.css +1 -0
- package/types/aseansc-ui.d.ts +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aseansc/ui",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "ASC Internal UI Component Library — Angular 22 + PrimeNG 21 + TailwindCSS 4 (PrimeNG capped at 21.x — 22.x requires a paid PrimeUI license key, xem README.md)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ASC Team",
|
package/tokens/layout/_menu.scss
CHANGED
package/tokens/preset.css
CHANGED
package/types/aseansc-ui.d.ts
CHANGED
|
@@ -311,6 +311,16 @@ interface AscMenuItem extends MenuItem {
|
|
|
311
311
|
permissions?: string[];
|
|
312
312
|
/** URL tới file .svg — render qua `asc-icon` thay cho `icon` (class PrimeIcons) */
|
|
313
313
|
iconSrc?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Kích thước icon — áp cho cả width lẫn height, nhận mọi giá trị CSS ('24px', '1.5rem').
|
|
316
|
+
* Với `icon` (class PrimeIcons) thì map sang `font-size`. Mặc định theo font của menu.
|
|
317
|
+
*/
|
|
318
|
+
iconSize?: string;
|
|
319
|
+
/** Ghi đè riêng chiều rộng icon — ưu tiên hơn `iconSize`. */
|
|
320
|
+
iconWidth?: string;
|
|
321
|
+
/** Ghi đè riêng chiều cao icon — ưu tiên hơn `iconSize`. */
|
|
322
|
+
iconHeight?: string;
|
|
323
|
+
items?: AscMenuItem[];
|
|
314
324
|
}
|
|
315
325
|
|
|
316
326
|
declare function provideAscUI(config?: AscUIConfig): EnvironmentProviders;
|
|
@@ -1951,6 +1961,7 @@ declare class AscAvatarGroupComponent {
|
|
|
1951
1961
|
* @example
|
|
1952
1962
|
* <asc-icon src="/assets/icons/user.svg" />
|
|
1953
1963
|
* <asc-icon src="/assets/icons/star.svg" size="24px" (loadError)="onIconError($event)" />
|
|
1964
|
+
* <asc-icon src="/assets/icons/logo.svg" width="96px" height="24px" />
|
|
1954
1965
|
*/
|
|
1955
1966
|
declare class AscIconComponent {
|
|
1956
1967
|
private readonly iconService;
|
|
@@ -1958,12 +1969,16 @@ declare class AscIconComponent {
|
|
|
1958
1969
|
src: _angular_core.InputSignal<string>;
|
|
1959
1970
|
/** Kích thước CSS áp cho width/height — vd '24px', '1.5rem' */
|
|
1960
1971
|
size: _angular_core.InputSignal<string>;
|
|
1972
|
+
/** Ghi đè riêng chiều rộng — ưu tiên hơn `size` (icon không vuông) */
|
|
1973
|
+
width: _angular_core.InputSignal<string | undefined>;
|
|
1974
|
+
/** Ghi đè riêng chiều cao — ưu tiên hơn `size` (icon không vuông) */
|
|
1975
|
+
height: _angular_core.InputSignal<string | undefined>;
|
|
1961
1976
|
/** Emit khi fetch SVG lỗi (404, network...) */
|
|
1962
1977
|
loadError: _angular_core.OutputEmitterRef<unknown>;
|
|
1963
1978
|
private readonly svg$;
|
|
1964
1979
|
protected svg: _angular_core.Signal<_angular_platform_browser.SafeHtml | null>;
|
|
1965
1980
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscIconComponent, never>;
|
|
1966
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscIconComponent, "asc-icon", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "loadError": "loadError"; }, never, never, true, never>;
|
|
1981
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscIconComponent, "asc-icon", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, { "loadError": "loadError"; }, never, never, true, never>;
|
|
1967
1982
|
}
|
|
1968
1983
|
|
|
1969
1984
|
/**
|