@solar-icons/angular 2.0.0-beta.2 → 2.0.0-beta.3
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/dist/lib/icon-base.d.ts +3 -2
- package/dist/lib/icon-base.js +9 -3
- package/package.json +1 -1
package/dist/lib/icon-base.d.ts
CHANGED
|
@@ -18,8 +18,9 @@ export declare abstract class IconBase {
|
|
|
18
18
|
readonly secondaryColor: import("@angular/core").InputSignal<string | undefined>;
|
|
19
19
|
readonly secondaryOpacity: import("@angular/core").InputSignal<number | undefined>;
|
|
20
20
|
readonly isolated: import("@angular/core").InputSignal<boolean | undefined>;
|
|
21
|
-
readonly defaultWidth: import("@angular/core").Signal<"24px" | "
|
|
22
|
-
readonly defaultHeight: import("@angular/core").Signal<"24px" | "
|
|
21
|
+
readonly defaultWidth: import("@angular/core").Signal<"24px" | "1em" | undefined>;
|
|
22
|
+
readonly defaultHeight: import("@angular/core").Signal<"24px" | "1em" | undefined>;
|
|
23
|
+
readonly defaultFontSize: import("@angular/core").Signal<"var(--solar-size, 24px)" | null>;
|
|
23
24
|
readonly defaultColor: import("@angular/core").Signal<"currentColor" | "var(--solar-color, currentColor)" | undefined>;
|
|
24
25
|
readonly defaultStrokeWidth: import("@angular/core").Signal<"1.5" | "var(--solar-stroke-width, 1.5)" | undefined>;
|
|
25
26
|
readonly explicitWidth: import("@angular/core").Signal<string | null>;
|
package/dist/lib/icon-base.js
CHANGED
|
@@ -11,13 +11,18 @@ export class IconBase {
|
|
|
11
11
|
defaultWidth = computed(() => {
|
|
12
12
|
if (this.size() !== undefined)
|
|
13
13
|
return undefined;
|
|
14
|
-
return this.isolated() ? '24px' : '
|
|
14
|
+
return this.isolated() ? '24px' : '1em';
|
|
15
15
|
}, ...(ngDevMode ? [{ debugName: "defaultWidth" }] : []));
|
|
16
16
|
defaultHeight = computed(() => {
|
|
17
17
|
if (this.size() !== undefined)
|
|
18
18
|
return undefined;
|
|
19
|
-
return this.isolated() ? '24px' : '
|
|
19
|
+
return this.isolated() ? '24px' : '1em';
|
|
20
20
|
}, ...(ngDevMode ? [{ debugName: "defaultHeight" }] : []));
|
|
21
|
+
defaultFontSize = computed(() => {
|
|
22
|
+
if (this.size() !== undefined)
|
|
23
|
+
return null;
|
|
24
|
+
return this.isolated() ? null : 'var(--solar-size, 24px)';
|
|
25
|
+
}, ...(ngDevMode ? [{ debugName: "defaultFontSize" }] : []));
|
|
21
26
|
defaultColor = computed(() => {
|
|
22
27
|
if (this.color() !== undefined)
|
|
23
28
|
return undefined;
|
|
@@ -65,7 +70,7 @@ export class IconBase {
|
|
|
65
70
|
ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : []));
|
|
66
71
|
titleAttr = input(...(ngDevMode ? [undefined, { debugName: "titleAttr" }] : []));
|
|
67
72
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: IconBase, isStandalone: true, inputs: { alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, secondaryColor: { classPropertyName: "secondaryColor", publicName: "secondaryColor", isSignal: true, isRequired: false, transformFunction: null }, secondaryOpacity: { classPropertyName: "secondaryOpacity", publicName: "secondaryOpacity", isSignal: true, isRequired: false, transformFunction: null }, isolated: { classPropertyName: "isolated", publicName: "isolated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, titleAttr: { classPropertyName: "titleAttr", publicName: "titleAttr", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24", "fill": "none" }, properties: { "attr.width": "defaultWidth()", "attr.height": "defaultHeight()", "attr.color": "defaultColor()", "attr.stroke-width": "defaultStrokeWidth()", "style.width": "explicitWidth()", "style.height": "explicitHeight()", "style.color": "explicitColor()", "style.stroke-width": "explicitStrokeWidth()", "attr.aria-hidden": "alt() || ariaLabel() || titleAttr() ? null : \"true\"", "style.--solar-secondary-color": "duotoneColor()", "style.--solar-secondary-opacity": "duotoneOpacityStr()" } }, ngImport: i0 });
|
|
73
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: IconBase, isStandalone: true, inputs: { alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, secondaryColor: { classPropertyName: "secondaryColor", publicName: "secondaryColor", isSignal: true, isRequired: false, transformFunction: null }, secondaryOpacity: { classPropertyName: "secondaryOpacity", publicName: "secondaryOpacity", isSignal: true, isRequired: false, transformFunction: null }, isolated: { classPropertyName: "isolated", publicName: "isolated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, titleAttr: { classPropertyName: "titleAttr", publicName: "titleAttr", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24", "fill": "none" }, properties: { "attr.width": "defaultWidth()", "attr.height": "defaultHeight()", "attr.color": "defaultColor()", "attr.stroke-width": "defaultStrokeWidth()", "style.width": "explicitWidth()", "style.height": "explicitHeight()", "style.color": "explicitColor()", "style.stroke-width": "explicitStrokeWidth()", "attr.aria-hidden": "alt() || ariaLabel() || titleAttr() ? null : \"true\"", "style.--solar-secondary-color": "duotoneColor()", "style.--solar-secondary-opacity": "duotoneOpacityStr()", "style.font-size": "defaultFontSize()" } }, ngImport: i0 });
|
|
69
74
|
}
|
|
70
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconBase, decorators: [{
|
|
71
76
|
type: Directive,
|
|
@@ -86,6 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
86
91
|
'[attr.aria-hidden]': 'alt() || ariaLabel() || titleAttr() ? null : "true"',
|
|
87
92
|
'[style.--solar-secondary-color]': 'duotoneColor()',
|
|
88
93
|
'[style.--solar-secondary-opacity]': 'duotoneOpacityStr()',
|
|
94
|
+
'[style.font-size]': 'defaultFontSize()',
|
|
89
95
|
},
|
|
90
96
|
}]
|
|
91
97
|
}], propDecorators: { alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], secondaryColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryColor", required: false }] }], secondaryOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryOpacity", required: false }] }], isolated: [{ type: i0.Input, args: [{ isSignal: true, alias: "isolated", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], titleAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleAttr", required: false }] }] } });
|