@open-rlb/ng-bootstrap 3.1.11 → 3.1.13
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.
|
@@ -568,6 +568,7 @@ class BadgeComponent {
|
|
|
568
568
|
this.hiddenText = input(undefined, { ...(ngDevMode ? { debugName: "hiddenText" } : {}), alias: 'hidden-text' });
|
|
569
569
|
this.border = input(false, { ...(ngDevMode ? { debugName: "border" } : {}), alias: 'border', transform: booleanAttribute });
|
|
570
570
|
this.cssClass = input('', { ...(ngDevMode ? { debugName: "cssClass" } : {}), alias: 'class' });
|
|
571
|
+
this.textColor = input(undefined, { ...(ngDevMode ? { debugName: "textColor" } : {}), alias: 'badge-text-color' });
|
|
571
572
|
this.template = viewChild.required('template');
|
|
572
573
|
this.style = computed(() => {
|
|
573
574
|
let style = 'badge';
|
|
@@ -580,7 +581,10 @@ class BadgeComponent {
|
|
|
580
581
|
if (this.border()) {
|
|
581
582
|
style += ` border`;
|
|
582
583
|
}
|
|
583
|
-
|
|
584
|
+
if (this.textColor()) {
|
|
585
|
+
style += ` text-${this.textColor()}`;
|
|
586
|
+
}
|
|
587
|
+
return (style += this.cssClass() ? ` ${this.cssClass()}` : '');
|
|
584
588
|
}, ...(ngDevMode ? [{ debugName: "style" }] : []));
|
|
585
589
|
}
|
|
586
590
|
ngOnInit() {
|
|
@@ -589,32 +593,34 @@ class BadgeComponent {
|
|
|
589
593
|
this.viewContainerRef.element.nativeElement.remove();
|
|
590
594
|
}
|
|
591
595
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BadgeComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
592
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: BadgeComponent, isStandalone: false, selector: "span[rlb-badge], img[rlb-badge]", inputs: { pill: { classPropertyName: "pill", publicName: "pill", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, hiddenText: { classPropertyName: "hiddenText", publicName: "hidden-text", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
596
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: BadgeComponent, isStandalone: false, selector: "span[rlb-badge], img[rlb-badge]", inputs: { pill: { classPropertyName: "pill", publicName: "pill", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, hiddenText: { classPropertyName: "hiddenText", publicName: "hidden-text", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "badge-text-color", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
597
|
+
<ng-template #template>
|
|
598
|
+
<span [class]="style()">
|
|
599
|
+
<ng-content></ng-content>
|
|
600
|
+
@if (hiddenText()) {
|
|
601
|
+
<span class="visually-hidden">{{ hiddenText() }}</span>
|
|
602
|
+
}
|
|
603
|
+
</span>
|
|
604
|
+
</ng-template>
|
|
605
|
+
`, isInline: true }); }
|
|
601
606
|
}
|
|
602
607
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
603
608
|
type: Component,
|
|
604
609
|
args: [{
|
|
605
610
|
selector: 'span[rlb-badge], img[rlb-badge]',
|
|
606
611
|
template: `
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
612
|
+
<ng-template #template>
|
|
613
|
+
<span [class]="style()">
|
|
614
|
+
<ng-content></ng-content>
|
|
615
|
+
@if (hiddenText()) {
|
|
616
|
+
<span class="visually-hidden">{{ hiddenText() }}</span>
|
|
617
|
+
}
|
|
618
|
+
</span>
|
|
619
|
+
</ng-template>
|
|
620
|
+
`,
|
|
621
|
+
standalone: false,
|
|
616
622
|
}]
|
|
617
|
-
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { pill: [{ type: i0.Input, args: [{ isSignal: true, alias: "pill", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], hiddenText: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden-text", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], template: [{ type: i0.ViewChild, args: ['template', { isSignal: true }] }] } });
|
|
623
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { pill: [{ type: i0.Input, args: [{ isSignal: true, alias: "pill", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], hiddenText: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden-text", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], textColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge-text-color", required: false }] }], template: [{ type: i0.ViewChild, args: ['template', { isSignal: true }] }] } });
|
|
618
624
|
|
|
619
625
|
class BadgeDirective {
|
|
620
626
|
constructor(elementRef, renderer) {
|
|
@@ -4132,7 +4138,7 @@ class ListItemImageComponent {
|
|
|
4132
4138
|
</div>
|
|
4133
4139
|
}
|
|
4134
4140
|
</div>
|
|
4135
|
-
`, isInline: true, dependencies: [{ kind: "component", type: BadgeComponent, selector: "span[rlb-badge], img[rlb-badge]", inputs: ["pill", "color", "hidden-text", "border", "class"] }, { kind: "component", type: AvatarComponent, selector: "rlb-avatar", inputs: ["size", "shape", "src", "class"] }] }); }
|
|
4141
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BadgeComponent, selector: "span[rlb-badge], img[rlb-badge]", inputs: ["pill", "color", "hidden-text", "border", "class", "badge-text-color"] }, { kind: "component", type: AvatarComponent, selector: "rlb-avatar", inputs: ["size", "shape", "src", "class"] }] }); }
|
|
4136
4142
|
}
|
|
4137
4143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ListItemImageComponent, decorators: [{
|
|
4138
4144
|
type: Component,
|
|
@@ -4851,7 +4857,7 @@ class RlbPlaceholderLineComponent {
|
|
|
4851
4857
|
this.size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
4852
4858
|
this.color = input('secondary', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
4853
4859
|
this.width = input('100%', ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
4854
|
-
this.height = input(
|
|
4860
|
+
this.height = input('1.5rem', ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
4855
4861
|
this.rounded = input(true, ...(ngDevMode ? [{ debugName: "rounded" }] : []));
|
|
4856
4862
|
this.hostClasses = computed(() => {
|
|
4857
4863
|
const classes = ['placeholder', `bg-${this.color()}`];
|