@oicl/openbridge-webcomponents-ng 2.0.0-next.158 → 2.0.0-next.159
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.
|
@@ -20,24 +20,12 @@ class ObcStartStopSwitch {
|
|
|
20
20
|
get checked() {
|
|
21
21
|
return this._el.checked;
|
|
22
22
|
}
|
|
23
|
-
set showUncheckedStateIcon(v) {
|
|
24
|
-
this._ngZone.runOutsideAngular(() => (this._el.showUncheckedStateIcon = v));
|
|
25
|
-
}
|
|
26
|
-
get showUncheckedStateIcon() {
|
|
27
|
-
return this._el.showUncheckedStateIcon;
|
|
28
|
-
}
|
|
29
23
|
set variant(v) {
|
|
30
24
|
this._ngZone.runOutsideAngular(() => (this._el.variant = v));
|
|
31
25
|
}
|
|
32
26
|
get variant() {
|
|
33
27
|
return this._el.variant;
|
|
34
28
|
}
|
|
35
|
-
set showCheckedStateIcon(v) {
|
|
36
|
-
this._ngZone.runOutsideAngular(() => (this._el.showCheckedStateIcon = v));
|
|
37
|
-
}
|
|
38
|
-
get showCheckedStateIcon() {
|
|
39
|
-
return this._el.showCheckedStateIcon;
|
|
40
|
-
}
|
|
41
29
|
set size(v) {
|
|
42
30
|
this._ngZone.runOutsideAngular(() => (this._el.size = v));
|
|
43
31
|
}
|
|
@@ -70,7 +58,7 @@ class ObcStartStopSwitch {
|
|
|
70
58
|
}
|
|
71
59
|
changeEvent = new EventEmitter();
|
|
72
60
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ObcStartStopSwitch, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: ObcStartStopSwitch, isStandalone: true, selector: "obc-start-stop-switch", inputs: { checked: "checked",
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: ObcStartStopSwitch, isStandalone: true, selector: "obc-start-stop-switch", inputs: { checked: "checked", variant: "variant", size: "size", disabled: "disabled", hasAlert: "hasAlert", hasDescription: "hasDescription", description: "description" }, outputs: { changeEvent: "changeEvent" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
74
62
|
}
|
|
75
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ObcStartStopSwitch, decorators: [{
|
|
76
64
|
type: Component,
|
|
@@ -82,12 +70,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
82
70
|
}]
|
|
83
71
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { checked: [{
|
|
84
72
|
type: Input
|
|
85
|
-
}], showUncheckedStateIcon: [{
|
|
86
|
-
type: Input
|
|
87
73
|
}], variant: [{
|
|
88
74
|
type: Input
|
|
89
|
-
}], showCheckedStateIcon: [{
|
|
90
|
-
type: Input
|
|
91
75
|
}], size: [{
|
|
92
76
|
type: Input
|
|
93
77
|
}], disabled: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oicl-openbridge-webcomponents-ng-obc-start-stop-switch.mjs","sources":["../../obc-start-stop-switch/src/obc-start-stop-switch.ts","../../obc-start-stop-switch/src/public-api.ts","../../obc-start-stop-switch/src/oicl-openbridge-webcomponents-ng-obc-start-stop-switch.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n Input,\n EventEmitter,\n Output\n\n} from '@angular/core';\nimport {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nexport type {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nimport type {ObcStartStopSwitch as ObcStartStopSwitchElement} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nimport '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\n\n@Component({\n selector: 'obc-start-stop-switch',\n template: '<ng-content></ng-content>',\n standalone: true,\n imports: []\n})\nexport class ObcStartStopSwitch {\n private _el: ObcStartStopSwitchElement;\n private _ngZone: NgZone;\n\n constructor(\n e: ElementRef<ObcStartStopSwitchElement>,\n ngZone: NgZone\n ) {\n this._el = e.nativeElement;\n this._ngZone = ngZone;\n \n this._el.addEventListener('change', (e: Event) => {\n // TODO(justinfagnani): we need to let the element say how to get a value\n // from an event, ex: e.value\n this.changeEvent.emit(e as ObcStartStopSwitchChangeEvent);\n });\n \n }\n\n \n @Input()\n set checked(v: boolean) {\n this._ngZone.runOutsideAngular(() => (this._el.checked = v));\n }\n\n get checked() {\n return this._el.checked;\n }\n \n @Input()\n set
|
|
1
|
+
{"version":3,"file":"oicl-openbridge-webcomponents-ng-obc-start-stop-switch.mjs","sources":["../../obc-start-stop-switch/src/obc-start-stop-switch.ts","../../obc-start-stop-switch/src/public-api.ts","../../obc-start-stop-switch/src/oicl-openbridge-webcomponents-ng-obc-start-stop-switch.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n Input,\n EventEmitter,\n Output\n\n} from '@angular/core';\nimport {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nexport type {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nimport type {ObcStartStopSwitch as ObcStartStopSwitchElement} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\nimport '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';\n\n@Component({\n selector: 'obc-start-stop-switch',\n template: '<ng-content></ng-content>',\n standalone: true,\n imports: []\n})\nexport class ObcStartStopSwitch {\n private _el: ObcStartStopSwitchElement;\n private _ngZone: NgZone;\n\n constructor(\n e: ElementRef<ObcStartStopSwitchElement>,\n ngZone: NgZone\n ) {\n this._el = e.nativeElement;\n this._ngZone = ngZone;\n \n this._el.addEventListener('change', (e: Event) => {\n // TODO(justinfagnani): we need to let the element say how to get a value\n // from an event, ex: e.value\n this.changeEvent.emit(e as ObcStartStopSwitchChangeEvent);\n });\n \n }\n\n \n @Input()\n set checked(v: boolean) {\n this._ngZone.runOutsideAngular(() => (this._el.checked = v));\n }\n\n get checked() {\n return this._el.checked;\n }\n \n @Input()\n set variant(v: StartStopSwitchVariant) {\n this._ngZone.runOutsideAngular(() => (this._el.variant = v));\n }\n\n get variant() {\n return this._el.variant;\n }\n \n @Input()\n set size(v: StartStopSwitchSize) {\n this._ngZone.runOutsideAngular(() => (this._el.size = v));\n }\n\n get size() {\n return this._el.size;\n }\n \n @Input()\n set disabled(v: boolean) {\n this._ngZone.runOutsideAngular(() => (this._el.disabled = v));\n }\n\n get disabled() {\n return this._el.disabled;\n }\n \n @Input()\n set hasAlert(v: boolean) {\n this._ngZone.runOutsideAngular(() => (this._el.hasAlert = v));\n }\n\n get hasAlert() {\n return this._el.hasAlert;\n }\n \n @Input()\n set hasDescription(v: boolean) {\n this._ngZone.runOutsideAngular(() => (this._el.hasDescription = v));\n }\n\n get hasDescription() {\n return this._el.hasDescription;\n }\n \n @Input()\n set description(v: string) {\n this._ngZone.runOutsideAngular(() => (this._el.description = v));\n }\n\n get description() {\n return this._el.description;\n }\n \n\n \n @Output()\n changeEvent = new EventEmitter<ObcStartStopSwitchChangeEvent>();\n \n}\n\n","/* eslint-disable import/extensions */\nexport * from \"./obc-start-stop-switch\";","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAoBa,kBAAkB,CAAA;AACrB,IAAA,GAAG;AACH,IAAA,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SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;AACV,iBAAA;;sBAqBE;;sBASA;;sBASA;;sBASA;;sBASA;;sBASA;;sBASA;;sBAWA;;;ACzGH;;ACAA;;AAEG;;;;"}
|
|
@@ -9,12 +9,8 @@ declare class ObcStartStopSwitch {
|
|
|
9
9
|
constructor(e: ElementRef<ObcStartStopSwitch$1>, ngZone: NgZone);
|
|
10
10
|
set checked(v: boolean);
|
|
11
11
|
get checked(): boolean;
|
|
12
|
-
set showUncheckedStateIcon(v: boolean);
|
|
13
|
-
get showUncheckedStateIcon(): boolean;
|
|
14
12
|
set variant(v: StartStopSwitchVariant);
|
|
15
13
|
get variant(): StartStopSwitchVariant;
|
|
16
|
-
set showCheckedStateIcon(v: boolean);
|
|
17
|
-
get showCheckedStateIcon(): boolean;
|
|
18
14
|
set size(v: StartStopSwitchSize);
|
|
19
15
|
get size(): StartStopSwitchSize;
|
|
20
16
|
set disabled(v: boolean);
|
|
@@ -27,7 +23,7 @@ declare class ObcStartStopSwitch {
|
|
|
27
23
|
get description(): string;
|
|
28
24
|
changeEvent: EventEmitter<ObcStartStopSwitchChangeEvent>;
|
|
29
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObcStartStopSwitch, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ObcStartStopSwitch, "obc-start-stop-switch", never, { "checked": { "alias": "checked"; "required": false; }; "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObcStartStopSwitch, "obc-start-stop-switch", never, { "checked": { "alias": "checked"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasAlert": { "alias": "hasAlert"; "required": false; }; "hasDescription": { "alias": "hasDescription"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "changeEvent": "changeEvent"; }, never, ["*"], true, never>;
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
export { ObcStartStopSwitch };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-ng",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.159",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
6
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.159",
|
|
7
7
|
"tslib": "^2.8.1"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|