@fuse_ui/label 0.0.1
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 +7 -0
- package/fesm2022/fuse_ui-label.mjs +24 -0
- package/fesm2022/fuse_ui-label.mjs.map +1 -0
- package/package.json +59 -0
- package/types/fuse_ui-label.d.ts +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class FuseLabelComponent {
|
|
5
|
+
/** Associates the label with a form control by id. */
|
|
6
|
+
for = input('', ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
|
|
7
|
+
/** Renders the required asterisk and applies the required modifier class. */
|
|
8
|
+
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
9
|
+
/** Applies the disabled style modifier. */
|
|
10
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuseLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: FuseLabelComponent, isStandalone: true, selector: "fuse-label", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<label\n [attr.for]=\"for() || null\"\n [class.fuse-label--required]=\"required()\"\n [class.fuse-label--disabled]=\"disabled()\">\n <ng-content></ng-content>\n @if (required()) {\n <span class=\"fuse-label__asterisk\" aria-hidden=\"true\">*</span>\n }\n</label>\n", styles: [":host{--fuse-label-color: var(--fuse-color-text-primary);--fuse-label-color-disabled: var(--fuse-color-text-disabled);--fuse-label-font-size: var(--fuse-font-size-sm);--fuse-label-font-weight: var(--fuse-font-weight-medium);display:inline-block}label{display:inline-flex;align-items:baseline;gap:var(--fuse-spacing-1);font-size:var(--fuse-label-font-size);font-weight:var(--fuse-label-font-weight);color:var(--fuse-label-color);line-height:1.25;cursor:default}label.fuse-label--disabled{color:var(--fuse-label-color-disabled);cursor:not-allowed}.fuse-label__asterisk{color:var(--fuse-color-danger);font-weight:var(--fuse-font-weight-medium);line-height:1}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuseLabelComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: 'fuse-label', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label\n [attr.for]=\"for() || null\"\n [class.fuse-label--required]=\"required()\"\n [class.fuse-label--disabled]=\"disabled()\">\n <ng-content></ng-content>\n @if (required()) {\n <span class=\"fuse-label__asterisk\" aria-hidden=\"true\">*</span>\n }\n</label>\n", styles: [":host{--fuse-label-color: var(--fuse-color-text-primary);--fuse-label-color-disabled: var(--fuse-color-text-disabled);--fuse-label-font-size: var(--fuse-font-size-sm);--fuse-label-font-weight: var(--fuse-font-weight-medium);display:inline-block}label{display:inline-flex;align-items:baseline;gap:var(--fuse-spacing-1);font-size:var(--fuse-label-font-size);font-weight:var(--fuse-label-font-weight);color:var(--fuse-label-color);line-height:1.25;cursor:default}label.fuse-label--disabled{color:var(--fuse-label-color-disabled);cursor:not-allowed}.fuse-label__asterisk{color:var(--fuse-color-danger);font-weight:var(--fuse-font-weight-medium);line-height:1}\n"] }]
|
|
17
|
+
}], propDecorators: { for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Generated bundle index. Do not edit.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export { FuseLabelComponent };
|
|
24
|
+
//# sourceMappingURL=fuse_ui-label.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fuse_ui-label.mjs","sources":["../../../../packages/label/src/lib/label/fuse-label.component.ts","../../../../packages/label/src/lib/label/fuse-label.component.html","../../../../packages/label/src/fuse_ui-label.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'fuse-label',\n standalone: true,\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './fuse-label.component.html',\n styleUrl: './fuse-label.component.scss',\n})\nexport class FuseLabelComponent {\n /** Associates the label with a form control by id. */\n readonly for = input('');\n\n /** Renders the required asterisk and applies the required modifier class. */\n readonly required = input(false);\n\n /** Applies the disabled style modifier. */\n readonly disabled = input(false);\n}\n","<label\n [attr.for]=\"for() || null\"\n [class.fuse-label--required]=\"required()\"\n [class.fuse-label--disabled]=\"disabled()\">\n <ng-content></ng-content>\n @if (required()) {\n <span class=\"fuse-label__asterisk\" aria-hidden=\"true\">*</span>\n }\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAca,kBAAkB,CAAA;;AAEpB,IAAA,GAAG,GAAG,KAAK,CAAC,EAAE,0EAAC;;AAGf,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC;;AAGvB,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC;uGARrB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,scCd/B,mRASA,EAAA,MAAA,EAAA,CAAA,mpBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDKa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAR9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mRAAA,EAAA,MAAA,EAAA,CAAA,mpBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fuse_ui/label",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"fuse-ui",
|
|
10
|
+
"angular",
|
|
11
|
+
"ionic",
|
|
12
|
+
"ionic8",
|
|
13
|
+
"angular18",
|
|
14
|
+
"angular19",
|
|
15
|
+
"angular20",
|
|
16
|
+
"angular21",
|
|
17
|
+
"ui-components",
|
|
18
|
+
"design-system",
|
|
19
|
+
"css-variables",
|
|
20
|
+
"signals",
|
|
21
|
+
"standalone",
|
|
22
|
+
"multi-theme",
|
|
23
|
+
"dark-mode",
|
|
24
|
+
"fluid-typography",
|
|
25
|
+
"animated"
|
|
26
|
+
],
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/core": ">=18.0.0",
|
|
29
|
+
"@angular/common": ">=18.0.0",
|
|
30
|
+
"rxjs": ">=7.4.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"@ionic/angular": {
|
|
34
|
+
"optional": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": [
|
|
38
|
+
"*.css",
|
|
39
|
+
"**/*.scss"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20.0.0"
|
|
43
|
+
},
|
|
44
|
+
"module": "fesm2022/fuse_ui-label.mjs",
|
|
45
|
+
"typings": "types/fuse_ui-label.d.ts",
|
|
46
|
+
"exports": {
|
|
47
|
+
"./package.json": {
|
|
48
|
+
"default": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
".": {
|
|
51
|
+
"types": "./types/fuse_ui-label.d.ts",
|
|
52
|
+
"default": "./fesm2022/fuse_ui-label.mjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"type": "module",
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"tslib": "^2.3.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class FuseLabelComponent {
|
|
4
|
+
/** Associates the label with a form control by id. */
|
|
5
|
+
readonly for: _angular_core.InputSignal<string>;
|
|
6
|
+
/** Renders the required asterisk and applies the required modifier class. */
|
|
7
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
8
|
+
/** Applies the disabled style modifier. */
|
|
9
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
10
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FuseLabelComponent, never>;
|
|
11
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FuseLabelComponent, "fuse-label", never, { "for": { "alias": "for"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { FuseLabelComponent };
|