@mintplayer/ng-bootstrap 16.11.3 → 16.11.4
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/badge/src/badge.component.d.ts +1 -3
- package/esm2022/badge/src/badge.component.mjs +1 -2
- package/esm2022/form/src/form-control/form-control.directive.mjs +10 -6
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +7 -5
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/form/src/form-control/form-control.directive.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
2
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BsBadgeComponent
|
|
4
|
+
export declare class BsBadgeComponent {
|
|
6
5
|
constructor();
|
|
7
6
|
colors: typeof Color;
|
|
8
7
|
type$: BehaviorSubject<Color>;
|
|
9
8
|
get type(): Color;
|
|
10
9
|
set type(value: Color);
|
|
11
10
|
colorClass$: Observable<string>;
|
|
12
|
-
ngOnInit(): void;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsBadgeComponent, never>;
|
|
14
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsBadgeComponent, "bs-badge", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
15
13
|
}
|
|
@@ -17,7 +17,6 @@ export class BsBadgeComponent {
|
|
|
17
17
|
set type(value) {
|
|
18
18
|
this.type$.next(value);
|
|
19
19
|
}
|
|
20
|
-
ngOnInit() { }
|
|
21
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
21
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.2", type: BsBadgeComponent, selector: "bs-badge", inputs: { type: "type" }, ngImport: i0, template: "<span class=\"badge\" [class]=\"colorClass$ | async\">\n <ng-content></ng-content>\n</span>", styles: [":host ::ng-deep .badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}:host ::ng-deep .badge:empty{display:none}:host ::ng-deep .btn .badge{position:relative;top:-1px}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
23
22
|
}
|
|
@@ -27,4 +26,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImpor
|
|
|
27
26
|
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
28
27
|
type: Input
|
|
29
28
|
}] } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9iYWRnZS9zcmMvYmFkZ2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9iYWRnZS9zcmMvYmFkZ2UuY29tcG9uZW50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';
|
|
1
|
+
import { Directive, HostBinding, Optional } from '@angular/core';
|
|
2
|
+
import { BsFormComponent } from '../form/form.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../form/form.component";
|
|
3
5
|
export class BsFormControlDirective {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.formControlClass =
|
|
6
|
+
constructor(form) {
|
|
7
|
+
this.formControlClass = !!form;
|
|
6
8
|
}
|
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, deps: [{ token: i1.BsFormComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8
10
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.2", type: BsFormControlDirective, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)", host: { properties: { "class.form-control": "this.formControlClass" } }, ngImport: i0 }); }
|
|
9
11
|
}
|
|
10
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, decorators: [{
|
|
@@ -12,8 +14,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImpor
|
|
|
12
14
|
args: [{
|
|
13
15
|
selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)'
|
|
14
16
|
}]
|
|
15
|
-
}],
|
|
17
|
+
}], ctorParameters: function () { return [{ type: i1.BsFormComponent, decorators: [{
|
|
18
|
+
type: Optional
|
|
19
|
+
}] }]; }, propDecorators: { formControlClass: [{
|
|
16
20
|
type: HostBinding,
|
|
17
21
|
args: ['class.form-control']
|
|
18
22
|
}] } });
|
|
19
|
-
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wgYnMtZm9ybSB0ZXh0YXJlYTpub3QoLm5vLWZvcm0tY29udHJvbCknXG59KVxuZXhwb3J0IGNsYXNzIEJzRm9ybUNvbnRyb2xEaXJlY3RpdmUge1xuICBjb25zdHJ1Y3RvcihAT3B0aW9uYWwoKSBmb3JtPzogQnNGb3JtQ29tcG9uZW50KSB7XG4gICAgdGhpcy5mb3JtQ29udHJvbENsYXNzID0gISFmb3JtO1xuICB9XG4gIEBIb3N0QmluZGluZygnY2xhc3MuZm9ybS1jb250cm9sJykgZm9ybUNvbnRyb2xDbGFzczogYm9vbGVhbjtcbn1cbiJdfQ==
|
|
@@ -19,7 +19,6 @@ class BsBadgeComponent {
|
|
|
19
19
|
set type(value) {
|
|
20
20
|
this.type$.next(value);
|
|
21
21
|
}
|
|
22
|
-
ngOnInit() { }
|
|
23
22
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
23
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.2", type: BsBadgeComponent, selector: "bs-badge", inputs: { type: "type" }, ngImport: i0, template: "<span class=\"badge\" [class]=\"colorClass$ | async\">\n <ng-content></ng-content>\n</span>", styles: [":host ::ng-deep .badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}:host ::ng-deep .badge:empty{display:none}:host ::ng-deep .btn .badge{position:relative;top:-1px}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
25
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.html","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.module.ts","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["import { Component,
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.html","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.module.ts","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { BehaviorSubject, map, Observable } from 'rxjs';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-badge',\n templateUrl: './badge.component.html',\n styleUrls: ['./badge.component.scss'],\n})\nexport class BsBadgeComponent {\n constructor() {\n this.colorClass$ = this.type$\n .pipe(map((type) => `bg-${this.colors[type]}`));\n }\n\n colors = Color;\n\n //#region Type\n type$ = new BehaviorSubject<Color>(Color.primary);\n public get type() {\n return this.type$.value;\n }\n @Input() public set type(value: Color) {\n this.type$.next(value);\n }\n //#endregion\n\n colorClass$: Observable<string>;\n}\n","<span class=\"badge\" [class]=\"colorClass$ | async\">\n <ng-content></ng-content>\n</span>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsBadgeComponent } from './badge.component';\n\n@NgModule({\n declarations: [BsBadgeComponent],\n imports: [CommonModule],\n exports: [BsBadgeComponent],\n})\nexport class BsBadgeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,gBAAgB,CAAA;AAC3B,IAA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AAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAJT,YAAA,EAAA,CAAA,gBAAgB,CACrB,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,gBAAgB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAHd,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, Directive, HostBinding, NgModule } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, Directive, Optional, HostBinding, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
|
|
5
5
|
class BsFormComponent {
|
|
@@ -25,10 +25,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImpor
|
|
|
25
25
|
}] } });
|
|
26
26
|
|
|
27
27
|
class BsFormControlDirective {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.formControlClass =
|
|
28
|
+
constructor(form) {
|
|
29
|
+
this.formControlClass = !!form;
|
|
30
30
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, deps: [{ token: BsFormComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
32
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.2", type: BsFormControlDirective, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)", host: { properties: { "class.form-control": "this.formControlClass" } }, ngImport: i0 }); }
|
|
33
33
|
}
|
|
34
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: BsFormControlDirective, decorators: [{
|
|
@@ -36,7 +36,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImpor
|
|
|
36
36
|
args: [{
|
|
37
37
|
selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)'
|
|
38
38
|
}]
|
|
39
|
-
}],
|
|
39
|
+
}], ctorParameters: function () { return [{ type: BsFormComponent, decorators: [{
|
|
40
|
+
type: Optional
|
|
41
|
+
}] }]; }, propDecorators: { formControlClass: [{
|
|
40
42
|
type: HostBinding,
|
|
41
43
|
args: ['class.form-control']
|
|
42
44
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form.module.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n styleUrls: ['./form.component.scss'],\n})\nexport class BsFormComponent {\n @Input() action?: string;\n @Input() method?: 'GET' | 'POST' | 'PUT' | 'DELETE';\n\n @Output() submitted = new EventEmitter<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<form (submit)=\"onSubmit($event)\" [action]=\"action\" [method]=\"method\">\n <ng-content></ng-content>\n</form>","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)'\n})\nexport class BsFormControlDirective {\n @HostBinding('class.form-control') formControlClass
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-form.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form/form.component.html","../../../../libs/mintplayer-ng-bootstrap/form/src/form-control/form-control.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form-group/form-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/form/src/form.module.ts","../../../../libs/mintplayer-ng-bootstrap/form/mintplayer-ng-bootstrap-form.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'bs-form',\n templateUrl: './form.component.html',\n styleUrls: ['./form.component.scss'],\n})\nexport class BsFormComponent {\n @Input() action?: string;\n @Input() method?: 'GET' | 'POST' | 'PUT' | 'DELETE';\n\n @Output() submitted = new EventEmitter<Event>();\n onSubmit(ev: Event) {\n this.submitted.emit(ev);\n return false;\n }\n}\n","<form (submit)=\"onSubmit($event)\" [action]=\"action\" [method]=\"method\">\n <ng-content></ng-content>\n</form>","import { Directive, HostBinding, Optional } from '@angular/core';\nimport { BsFormComponent } from '../form/form.component';\n\n@Directive({\n selector: 'bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)'\n})\nexport class BsFormControlDirective {\n constructor(@Optional() form?: BsFormComponent) {\n this.formControlClass = !!form;\n }\n @HostBinding('class.form-control') formControlClass: boolean;\n}\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[bsFormGroup]'\n})\nexport class BsFormGroupDirective {\n @HostBinding('class.form-group') formGroupClass = true;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsFormComponent } from './form/form.component';\nimport { BsFormControlDirective } from './form-control/form-control.directive';\nimport { BsFormGroupDirective } from './form-group/form-group.directive';\n\n@NgModule({\n declarations: [BsFormComponent, BsFormControlDirective, BsFormGroupDirective],\n imports: [CommonModule],\n exports: [BsFormComponent, BsFormControlDirective, BsFormGroupDirective],\n})\nexport class BsFormModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsFormComponent"],"mappings":";;;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;AASY,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAS,CAAC;AAKjD,KAAA;AAJC,IAAA,QAAQ,CAAC,EAAS,EAAA;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxB,QAAA,OAAO,KAAK,CAAC;KACd;8GARU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,oICP5B,sHAEO,EAAA,MAAA,EAAA,CAAA,4nXAAA,C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AC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,CAAC;AACzE,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { BsFormComponent } from '../form/form.component';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class BsFormControlDirective {
|
|
4
|
+
constructor(form?: BsFormComponent);
|
|
3
5
|
formControlClass: boolean;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BsFormControlDirective,
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFormControlDirective, [{ optional: true; }]>;
|
|
5
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BsFormControlDirective, "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)", never, {}, {}, never, never, false, never>;
|
|
6
8
|
}
|