Skip to content

Commit

Permalink
Merge branch 'qbd-direct-onboarding-pre-requisite-UI' into qbd-direct…
Browse files Browse the repository at this point in the history
…-onboarding-download-file-UI
  • Loading branch information
ashwin1111 committed Nov 13, 2024
2 parents 0a76af2 + 51e8add commit 0e62698
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/app/core/models/common/helper.model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FormGroup, Validators } from "@angular/forms";

export type checkBoxEmit = {
export type checkBoxEvent = {
id: number;
value: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { TestBed } from '@angular/core/testing';
import { QbdDirectConnectorService } from './qbd-direct-connector.service';

describe('QbdDirectConnectorService', () => {
let service: QbdDirectConnectorService;

beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(QbdDirectConnectorService);
});

it('should be created', () => {
expect(service).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class QbdDirectConnectorServiceTsService {
export class QbdDirectConnectorService {

constructor() { }
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div [ngClass]="isCheckboxSelected ? 'checkedText' : 'unCheckedText'">
<div [ngClass]="isCheckboxSelected ? 'checked-text' : 'unchecked-text'">
<p-button>
<ng-template pTemplate="content">
<label class="tw-flex tw-items-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ChechboxButtonComponent } from './chechbox-button.component';
import { CheckboxButtonComponent } from './checkbox-button.component';

describe('ChechboxButtonComponent', () => {
let component: ChechboxButtonComponent;
let fixture: ComponentFixture<ChechboxButtonComponent>;
describe('CheckboxButtonComponent', () => {
let component: CheckboxButtonComponent;
let fixture: ComponentFixture<CheckboxButtonComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ChechboxButtonComponent]
imports: [CheckboxButtonComponent]
})
.compileComponents();

fixture = TestBed.createComponent(ChechboxButtonComponent);
fixture = TestBed.createComponent(CheckboxButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { brandingConfig } from 'src/app/branding/branding-config';
import { checkBoxEmit } from 'src/app/core/models/common/helper.model';
import { checkBoxEvent } from 'src/app/core/models/common/helper.model';

@Component({
selector: 'app-chechbox-button',
selector: 'app-checkbox-button',
standalone: true,
imports: [ButtonModule, CommonModule],
templateUrl: './chechbox-button.component.html',
styleUrl: './chechbox-button.component.scss'
templateUrl: './checkbox-button.component.html',
styleUrl: './checkbox-button.component.scss'
})
export class ChechboxButtonComponent {
export class CheckboxButtonComponent {

@Input() unCheckedText: string;
@Input({required: true}) unCheckedText: string;

@Input() checkedText: string;
@Input({required: true}) checkedText: string;

@Input() id: number;
@Input({required: true}) id: number;

@Output() checkBoxUpdated: EventEmitter<checkBoxEmit> = new EventEmitter();
@Output() checkBoxUpdated: EventEmitter<checkBoxEvent> = new EventEmitter();

isCheckboxSelected: boolean = false;

Expand Down
6 changes: 3 additions & 3 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ import { SentenceCasePipe } from './pipes/sentence-case.pipe';
import { IconFieldModule } from 'primeng/iconfield';
import { InputIconModule } from 'primeng/inputicon';
import { BadgeComponent } from './components/core/badge/badge.component';
import { ChechboxButtonComponent } from './components/input/chechbox-button/chechbox-button.component';
import { CheckboxButtonComponent } from './components/input/checkbox-button/checkbox-button.component';


@NgModule({
Expand Down Expand Up @@ -193,7 +193,7 @@ import { ChechboxButtonComponent } from './components/input/chechbox-button/chec
TabMenuModule,
IconFieldModule,
InputIconModule,
ChechboxButtonComponent,
CheckboxButtonComponent,
IconSpriteModule.forRoot({ path: 'assets/sprites/sprite.svg' })
],
exports: [
Expand Down Expand Up @@ -269,7 +269,7 @@ import { ChechboxButtonComponent } from './components/input/chechbox-button/chec
OptionalFieldComponent,
SentenceCasePipe,
BadgeComponent,
ChechboxButtonComponent
CheckboxButtonComponent
]
})
export class SharedModule { }

0 comments on commit 0e62698

Please sign in to comment.