cat-qw-lib 0.0.2 → 0.0.3
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/fesm2022/cat-qw-lib.mjs +2033 -0
- package/fesm2022/cat-qw-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/admin/action-admin/action-admin.module.d.ts +9 -0
- package/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.d.ts +5 -0
- package/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.d.ts +12 -0
- package/lib/admin/action-admin/models/action.model.d.ts +9 -0
- package/lib/admin/action-admin/state/action.service.d.ts +13 -0
- package/lib/admin/action-admin/state/action.store.d.ts +8 -0
- package/lib/admin/api-admin/api-admin.module.d.ts +18 -0
- package/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.d.ts +30 -0
- package/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.d.ts +10 -0
- package/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.d.ts +14 -0
- package/lib/admin/api-admin/models/api-admin.model.d.ts +15 -0
- package/lib/admin/api-admin/models/credentials.model.d.ts +4 -0
- package/lib/admin/api-admin/state/api-admin.service.d.ts +16 -0
- package/lib/admin/api-admin/state/api-admin.store.d.ts +8 -0
- package/lib/shared/_base/base-control/base-control.component.d.ts +22 -0
- package/lib/shared/_base/base-form/base-form.component.d.ts +27 -0
- package/lib/shared/_base/base-list/base-list.component.d.ts +16 -0
- package/lib/shared/components/form-container/form-container.component.d.ts +26 -0
- package/lib/shared/components/sidebar/sidebar.component.d.ts +13 -0
- package/lib/shared/constant/CSS.d.ts +11 -0
- package/lib/shared/constant/DATASOURCES.d.ts +10 -0
- package/lib/shared/constant/ERROR.d.ts +3 -0
- package/lib/shared/constant/HEADERS.d.ts +4 -0
- package/lib/shared/constant/LIST-CONFIG.d.ts +8 -0
- package/lib/shared/constant/LOOKUPS.d.ts +3 -0
- package/lib/shared/constant/ROUTES.d.ts +12 -0
- package/lib/shared/constant/SHARED.d.ts +565 -0
- package/lib/shared/constant/URLS.d.ts +3 -0
- package/lib/shared/controls/button/button.component.d.ts +6 -0
- package/lib/shared/controls/check-box/check-box.component.d.ts +6 -0
- package/lib/shared/controls/date/date.component.d.ts +12 -0
- package/lib/shared/controls/dropdown/dropdown.component.d.ts +19 -0
- package/lib/shared/controls/file-upload/file-upload.component.d.ts +7 -0
- package/lib/shared/controls/password/password.component.d.ts +9 -0
- package/lib/shared/controls/text-area/text-area.component.d.ts +8 -0
- package/lib/shared/controls/text-box/text-box.component.d.ts +7 -0
- package/lib/shared/controls/username/username.component.d.ts +6 -0
- package/{src/lib/shared/index.ts → lib/shared/index.d.ts} +30 -35
- package/lib/shared/models/attribute.model.d.ts +41 -0
- package/lib/shared/models/base.model.d.ts +3 -0
- package/lib/shared/models/list.model.d.ts +11 -0
- package/lib/shared/pipe/capitalize-words.pipe.d.ts +7 -0
- package/lib/shared/services/app-config.service.d.ts +12 -0
- package/lib/shared/services/auth/auth.guard.d.ts +12 -0
- package/lib/shared/services/date-parser.service.d.ts +7 -0
- package/lib/shared/services/list.service.d.ts +13 -0
- package/lib/shared/services/session.service.d.ts +13 -0
- package/lib/shared/services/table.builder.d.ts +11 -0
- package/lib/shared/services/validator.service.d.ts +7 -0
- package/lib/shared/shared.module.d.ts +32 -0
- package/lib/shared/state/base.query.d.ts +19 -0
- package/lib/shared/state/base.service.d.ts +27 -0
- package/lib/shared/state/base.state.d.ts +4 -0
- package/lib/shared/state/base.store.d.ts +24 -0
- package/lib/shared/table-primary/components/table-primary.component.d.ts +26 -0
- package/lib/shared/table-primary/models/table-primary-header.model.d.ts +6 -0
- package/lib/shared/table-primary/models/table-primary.model.d.ts +5 -0
- package/package.json +25 -16
- package/{src/public-api.ts → public-api.d.ts} +6 -11
- package/ng-package.json +0 -10
- package/src/lib/admin/action-admin/action-admin.module.ts +0 -16
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.html +0 -1
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.scss +0 -0
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.spec.ts +0 -23
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.ts +0 -11
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.html +0 -5
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.scss +0 -0
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.spec.ts +0 -23
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.ts +0 -24
- package/src/lib/admin/action-admin/models/action.model.ts +0 -12
- package/src/lib/admin/action-admin/state/action.query.ts +0 -11
- package/src/lib/admin/action-admin/state/action.service.ts +0 -18
- package/src/lib/admin/action-admin/state/action.state.ts +0 -14
- package/src/lib/admin/action-admin/state/action.store.ts +0 -14
- package/src/lib/admin/admin.module.ts +0 -22
- package/src/lib/admin/api-admin/api-admin.module.ts +0 -39
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.html +0 -96
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.scss +0 -6
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.ts +0 -94
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.html +0 -6
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.scss +0 -0
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.ts +0 -17
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.html +0 -29
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.scss +0 -0
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.spec.ts +0 -21
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.ts +0 -25
- package/src/lib/admin/api-admin/models/api-admin.model.ts +0 -16
- package/src/lib/admin/api-admin/models/credentials.model.ts +0 -4
- package/src/lib/admin/api-admin/state/api-admin.query.ts +0 -14
- package/src/lib/admin/api-admin/state/api-admin.service.ts +0 -31
- package/src/lib/admin/api-admin/state/api-admin.state.ts +0 -14
- package/src/lib/admin/api-admin/state/api-admin.store.ts +0 -13
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.css +0 -0
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.html +0 -1
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.ts +0 -11
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.css +0 -0
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.html +0 -1
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.ts +0 -11
- package/src/lib/admin/dd-admin/dd-admin.module.ts +0 -12
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.css +0 -0
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.html +0 -1
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.ts +0 -11
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.css +0 -0
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.html +0 -1
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.ts +0 -11
- package/src/lib/admin/queue-admin/queue-admin.module.ts +0 -12
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.css +0 -0
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.html +0 -1
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.ts +0 -11
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.css +0 -0
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.html +0 -1
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.ts +0 -11
- package/src/lib/admin/widget-admin/widget-admin.module.ts +0 -12
- package/src/lib/shared/_base/base-control/base-control.component.html +0 -1
- package/src/lib/shared/_base/base-control/base-control.component.scss +0 -0
- package/src/lib/shared/_base/base-control/base-control.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-control/base-control.component.ts +0 -55
- package/src/lib/shared/_base/base-form/base-form.component.html +0 -1
- package/src/lib/shared/_base/base-form/base-form.component.scss +0 -0
- package/src/lib/shared/_base/base-form/base-form.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-form/base-form.component.ts +0 -81
- package/src/lib/shared/_base/base-list/base-list.component.html +0 -1
- package/src/lib/shared/_base/base-list/base-list.component.scss +0 -0
- package/src/lib/shared/_base/base-list/base-list.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-list/base-list.component.ts +0 -31
- package/src/lib/shared/components/form-container/form-container.component.html +0 -55
- package/src/lib/shared/components/form-container/form-container.component.scss +0 -108
- package/src/lib/shared/components/form-container/form-container.component.spec.ts +0 -21
- package/src/lib/shared/components/form-container/form-container.component.ts +0 -55
- package/src/lib/shared/components/sidebar/sidebar.component.html +0 -13
- package/src/lib/shared/components/sidebar/sidebar.component.scss +0 -45
- package/src/lib/shared/components/sidebar/sidebar.component.spec.ts +0 -21
- package/src/lib/shared/components/sidebar/sidebar.component.ts +0 -26
- package/src/lib/shared/constant/CSS.ts +0 -9
- package/src/lib/shared/constant/DATASOURCES.ts +0 -10
- package/src/lib/shared/constant/ERROR.ts +0 -3
- package/src/lib/shared/constant/HEADERS.ts +0 -4
- package/src/lib/shared/constant/LIST-CONFIG.ts +0 -10
- package/src/lib/shared/constant/LOOKUPS.ts +0 -3
- package/src/lib/shared/constant/ROUTES.ts +0 -12
- package/src/lib/shared/constant/SHARED.ts +0 -603
- package/src/lib/shared/constant/URLS.ts +0 -3
- package/src/lib/shared/controls/button/button.component.html +0 -25
- package/src/lib/shared/controls/button/button.component.scss +0 -0
- package/src/lib/shared/controls/button/button.component.spec.ts +0 -21
- package/src/lib/shared/controls/button/button.component.ts +0 -15
- package/src/lib/shared/controls/check-box/check-box.component.html +0 -22
- package/src/lib/shared/controls/check-box/check-box.component.scss +0 -32
- package/src/lib/shared/controls/check-box/check-box.component.spec.ts +0 -26
- package/src/lib/shared/controls/check-box/check-box.component.ts +0 -16
- package/src/lib/shared/controls/date/date.component.html +0 -43
- package/src/lib/shared/controls/date/date.component.scss +0 -0
- package/src/lib/shared/controls/date/date.component.spec.ts +0 -21
- package/src/lib/shared/controls/date/date.component.ts +0 -42
- package/src/lib/shared/controls/dropdown/dropdown.component.html +0 -28
- package/src/lib/shared/controls/dropdown/dropdown.component.scss +0 -12
- package/src/lib/shared/controls/dropdown/dropdown.component.ts +0 -71
- package/src/lib/shared/controls/file-upload/file-upload.component.html +0 -18
- package/src/lib/shared/controls/file-upload/file-upload.component.scss +0 -0
- package/src/lib/shared/controls/file-upload/file-upload.component.spec.ts +0 -21
- package/src/lib/shared/controls/file-upload/file-upload.component.ts +0 -19
- package/src/lib/shared/controls/number-feild/number-feild.component.html +0 -39
- package/src/lib/shared/controls/number-feild/number-feild.component.scss +0 -13
- package/src/lib/shared/controls/number-feild/number-feild.component.spec.ts +0 -21
- package/src/lib/shared/controls/number-feild/number-feild.component.ts +0 -35
- package/src/lib/shared/controls/password/password.component.html +0 -22
- package/src/lib/shared/controls/password/password.component.scss +0 -0
- package/src/lib/shared/controls/password/password.component.spec.ts +0 -28
- package/src/lib/shared/controls/password/password.component.ts +0 -24
- package/src/lib/shared/controls/text-area/text-area.component.html +0 -36
- package/src/lib/shared/controls/text-area/text-area.component.scss +0 -22
- package/src/lib/shared/controls/text-area/text-area.component.spec.ts +0 -23
- package/src/lib/shared/controls/text-area/text-area.component.ts +0 -25
- package/src/lib/shared/controls/text-box/text-box.component.html +0 -44
- package/src/lib/shared/controls/text-box/text-box.component.scss +0 -25
- package/src/lib/shared/controls/text-box/text-box.component.spec.ts +0 -30
- package/src/lib/shared/controls/text-box/text-box.component.ts +0 -26
- package/src/lib/shared/controls/username/username.component.html +0 -16
- package/src/lib/shared/controls/username/username.component.scss +0 -0
- package/src/lib/shared/controls/username/username.component.spec.ts +0 -29
- package/src/lib/shared/controls/username/username.component.ts +0 -17
- package/src/lib/shared/models/attribute.model.ts +0 -42
- package/src/lib/shared/models/base.model.ts +0 -3
- package/src/lib/shared/models/list.model.ts +0 -27
- package/src/lib/shared/models/message.model.ts +0 -4
- package/src/lib/shared/pipe/capitalize-words.pipe.spec.ts +0 -8
- package/src/lib/shared/pipe/capitalize-words.pipe.ts +0 -17
- package/src/lib/shared/services/app-config.service.spec.ts +0 -16
- package/src/lib/shared/services/app-config.service.ts +0 -25
- package/src/lib/shared/services/auth/auth.guard.spec.ts +0 -17
- package/src/lib/shared/services/auth/auth.guard.ts +0 -25
- package/src/lib/shared/services/data-transformer.service.spec.ts +0 -16
- package/src/lib/shared/services/data-transformer.service.ts +0 -41
- package/src/lib/shared/services/date-parser.service.spec.ts +0 -16
- package/src/lib/shared/services/date-parser.service.ts +0 -54
- package/src/lib/shared/services/list.service.spec.ts +0 -16
- package/src/lib/shared/services/list.service.ts +0 -53
- package/src/lib/shared/services/session.service.spec.ts +0 -16
- package/src/lib/shared/services/session.service.ts +0 -37
- package/src/lib/shared/services/table.builder.ts +0 -38
- package/src/lib/shared/services/validator.service.spec.ts +0 -16
- package/src/lib/shared/services/validator.service.ts +0 -13
- package/src/lib/shared/shared.module.ts +0 -62
- package/src/lib/shared/state/base.query.ts +0 -48
- package/src/lib/shared/state/base.service.ts +0 -69
- package/src/lib/shared/state/base.state.ts +0 -6
- package/src/lib/shared/state/base.store.ts +0 -56
- package/src/lib/shared/table-primary/components/table-primary.component.html +0 -56
- package/src/lib/shared/table-primary/components/table-primary.component.scss +0 -187
- package/src/lib/shared/table-primary/components/table-primary.component.spec.ts +0 -21
- package/src/lib/shared/table-primary/components/table-primary.component.ts +0 -71
- package/src/lib/shared/table-primary/models/table-primary-header.model.ts +0 -7
- package/src/lib/shared/table-primary/models/table-primary.model.ts +0 -6
- package/src/lib/widget/components/widget-body/widget-body.component.html +0 -1
- package/src/lib/widget/components/widget-body/widget-body.component.scss +0 -0
- package/src/lib/widget/components/widget-body/widget-body.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-body/widget-body.component.ts +0 -11
- package/src/lib/widget/components/widget-container/widget-container.component.css +0 -0
- package/src/lib/widget/components/widget-container/widget-container.component.html +0 -1
- package/src/lib/widget/components/widget-container/widget-container.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-container/widget-container.component.ts +0 -11
- package/src/lib/widget/components/widget-footer/widget-footer.component.css +0 -0
- package/src/lib/widget/components/widget-footer/widget-footer.component.html +0 -1
- package/src/lib/widget/components/widget-footer/widget-footer.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-footer/widget-footer.component.ts +0 -11
- package/src/lib/widget/components/widget-header/widget-header.component.css +0 -0
- package/src/lib/widget/components/widget-header/widget-header.component.html +0 -1
- package/src/lib/widget/components/widget-header/widget-header.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-header/widget-header.component.ts +0 -11
- package/src/lib/widget/components/widget-item/widget-item.component.css +0 -0
- package/src/lib/widget/components/widget-item/widget-item.component.html +0 -1
- package/src/lib/widget/components/widget-item/widget-item.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-item/widget-item.component.ts +0 -11
- package/src/lib/widget/widget.module.ts +0 -12
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
5
|
-
import { BaseControlComponent } from '../../_base/base-control/base-control.component';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'text-area',
|
|
9
|
-
templateUrl: './text-area.component.html',
|
|
10
|
-
styleUrl: './text-area.component.scss',
|
|
11
|
-
standalone : true,
|
|
12
|
-
imports : [CommonModule ,InputTextareaModule, FormsModule]
|
|
13
|
-
})
|
|
14
|
-
export class TextAreaComponent extends BaseControlComponent {
|
|
15
|
-
@Input() rowspan : number = 0
|
|
16
|
-
override getValue() {
|
|
17
|
-
if(this.record[this.attributeModel.name] == false){
|
|
18
|
-
return typeof this.record[this.attributeModel.name] == "string" ? "" : "No"
|
|
19
|
-
}else if( this.record[this.attributeModel.name] == true){
|
|
20
|
-
return "Yes"
|
|
21
|
-
}else{
|
|
22
|
-
return this.record[this.attributeModel.name] ?? "-"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<ng-container >
|
|
2
|
-
<div class="">
|
|
3
|
-
|
|
4
|
-
<div *ngIf="attributeModel.displayText" class="mb-2">
|
|
5
|
-
<label>{{ attributeModel.displayText }}</label>
|
|
6
|
-
<span class="asterisk ml-1" *ngIf="attributeModel.isRequired">*</span>
|
|
7
|
-
</div>
|
|
8
|
-
@if (attributeModel.readonly) {
|
|
9
|
-
<div class="mb-2" [ngStyle]="{'font-size':'14px', 'color':'#0F1729', 'font-weight':'600' }">
|
|
10
|
-
<label class="text-value-wrapper" [ngStyle]="{color: attributeModel.textColorOnReadonly}">{{ getValue() }}</label>
|
|
11
|
-
</div>
|
|
12
|
-
} @else {
|
|
13
|
-
<div class="inputTextBox">
|
|
14
|
-
|
|
15
|
-
<input
|
|
16
|
-
pInputText
|
|
17
|
-
type="text"
|
|
18
|
-
autocomplete="off"
|
|
19
|
-
[placeholder]="attributeModel.placeholder ?? ''"
|
|
20
|
-
class="block p-inputtext w-full"
|
|
21
|
-
[pTooltip]="attributeModel.tooltip ?? ''"
|
|
22
|
-
[tooltipPosition]="attributeModel.toolTipPosition ?? '' "
|
|
23
|
-
[ngModel]="record?.[attributeModel.name] ?? ''"
|
|
24
|
-
[disabled]="attributeModel?.readonly ?? false"
|
|
25
|
-
[name]="attributeModel.name ?? 'textBox'"
|
|
26
|
-
[required]="attributeModel.isRequired ?? false"
|
|
27
|
-
[ngStyle]="{
|
|
28
|
-
width: attributeModel.customColumnWidth
|
|
29
|
-
? attributeModel.customColumnWidth
|
|
30
|
-
: '',
|
|
31
|
-
padding: attributeModel.customPadding ? attributeModel.customPadding : ''
|
|
32
|
-
}"
|
|
33
|
-
#textboxField="ngModel"
|
|
34
|
-
(ngModelChange)="handleModelChange($event, textboxField.valid)"
|
|
35
|
-
[ngClass]="{
|
|
36
|
-
'ng-dirty ng-invalid':
|
|
37
|
-
(!textboxField.valid && error)
|
|
38
|
-
}"
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
}
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
</ng-container>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.asterisk{
|
|
2
|
-
color: red;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.inputTextBox{
|
|
6
|
-
position: relative;
|
|
7
|
-
}
|
|
8
|
-
.textCount{
|
|
9
|
-
position: absolute;
|
|
10
|
-
bottom: 23%;
|
|
11
|
-
right: 1%;
|
|
12
|
-
color: #bcbcbc;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.markRed{
|
|
16
|
-
color: red;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.text-value-wrapper{
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
text-overflow: ellipsis;
|
|
23
|
-
display: block;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { TextBoxComponent } from './text-box.component';
|
|
4
|
-
|
|
5
|
-
describe('TextBoxComponent', () => {
|
|
6
|
-
let component: TextBoxComponent;
|
|
7
|
-
let fixture: ComponentFixture<TextBoxComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [TextBoxComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(TextBoxComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
component.attributeModel = {
|
|
18
|
-
placeholder: "Enter textbox",
|
|
19
|
-
name: "textbox",
|
|
20
|
-
isRequired: true,
|
|
21
|
-
readonly: false
|
|
22
|
-
};
|
|
23
|
-
component.record = {}
|
|
24
|
-
fixture.detectChanges();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should create', () => {
|
|
28
|
-
expect(component).toBeTruthy();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { Component } from '@angular/core';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
6
|
-
import { BaseControlComponent } from '../../_base/base-control/base-control.component';
|
|
7
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'text-box',
|
|
11
|
-
templateUrl: './text-box.component.html',
|
|
12
|
-
styleUrl: './text-box.component.scss',
|
|
13
|
-
standalone : true,
|
|
14
|
-
imports : [CommonModule,InputTextModule, FormsModule, TooltipModule]
|
|
15
|
-
})
|
|
16
|
-
export class TextBoxComponent extends BaseControlComponent {
|
|
17
|
-
override getValue() {
|
|
18
|
-
if(this.record[this.attributeModel.name] == false){
|
|
19
|
-
return typeof this.record[this.attributeModel.name] == "string" ? "" : "No"
|
|
20
|
-
}else if( this.record[this.attributeModel.name] == true){
|
|
21
|
-
return "Yes"
|
|
22
|
-
}else{
|
|
23
|
-
return this.record[this.attributeModel.name] ?? "-"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<ng-container>
|
|
2
|
-
<div class="username-control">
|
|
3
|
-
<span class="p-input-icon-left">
|
|
4
|
-
<i class="pi pi-envelope"></i>
|
|
5
|
-
<input pInputText type="text"
|
|
6
|
-
autocomplete="off"
|
|
7
|
-
[placeholder]="attributeModel.placeholder ?? ''"
|
|
8
|
-
[ngModel]="record[attributeModel.name]"
|
|
9
|
-
[required]="attributeModel.isRequired ?? false"
|
|
10
|
-
[disabled]="attributeModel.readonly ?? false"
|
|
11
|
-
#usernameField="ngModel"
|
|
12
|
-
(ngModelChange)="handleModelChange($event, usernameField.valid)"
|
|
13
|
-
/>
|
|
14
|
-
</span>
|
|
15
|
-
</div>
|
|
16
|
-
</ng-container>
|
|
File without changes
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { UsernameComponent } from './username.component';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
|
|
5
|
-
describe('UsernameComponent', () => {
|
|
6
|
-
let component: UsernameComponent;
|
|
7
|
-
let fixture: ComponentFixture<UsernameComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [UsernameComponent, CommonModule],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(UsernameComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
component.attributeModel = {
|
|
17
|
-
placeholder: "Enter username",
|
|
18
|
-
name: "username",
|
|
19
|
-
isRequired: true,
|
|
20
|
-
readonly: false
|
|
21
|
-
};
|
|
22
|
-
component.record = {};
|
|
23
|
-
fixture.detectChanges();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('should create', () => {
|
|
27
|
-
expect(component).toBeTruthy();
|
|
28
|
-
});
|
|
29
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { BaseControlComponent } from '../../_base/base-control/base-control.component';
|
|
5
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'username',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [CommonModule, InputTextModule,FormsModule],
|
|
11
|
-
templateUrl: './username.component.html',
|
|
12
|
-
styleUrls: ['./username.component.scss'],
|
|
13
|
-
})
|
|
14
|
-
export class UsernameComponent extends BaseControlComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { SelectItem } from "primeng/api";
|
|
2
|
-
|
|
3
|
-
export class AttributeModel {
|
|
4
|
-
displayText ?: string;
|
|
5
|
-
readonly ?: boolean;
|
|
6
|
-
name ?: any;
|
|
7
|
-
isRequired?: boolean;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
maxLength?: number;
|
|
10
|
-
infoText?: string;
|
|
11
|
-
buttonLabel?: string;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
customButtonWidth?: string;
|
|
14
|
-
isPrimary?: number;
|
|
15
|
-
title?: string;
|
|
16
|
-
customColumnWidth?: string;
|
|
17
|
-
customHeight?: string;
|
|
18
|
-
icon?: string;
|
|
19
|
-
iconPosition?: 'left' | 'right';
|
|
20
|
-
customPadding?: string;
|
|
21
|
-
dataSource?: string;
|
|
22
|
-
listValueProperty?: string;
|
|
23
|
-
listLabelProperty?: string;
|
|
24
|
-
options?: SelectItem[];
|
|
25
|
-
childListName?: any;
|
|
26
|
-
childListKey?:any;
|
|
27
|
-
inputId?:string;
|
|
28
|
-
allowFraction?:string = 'Y'
|
|
29
|
-
numberMode?:string;
|
|
30
|
-
currency?:string;
|
|
31
|
-
locale ?: 'en-GB';
|
|
32
|
-
tooltip?:string;
|
|
33
|
-
toolTipPosition?:string
|
|
34
|
-
hourFormat?:string
|
|
35
|
-
yearRange?:string
|
|
36
|
-
showCalenderIcon ?: boolean
|
|
37
|
-
additionalFilterList?:string
|
|
38
|
-
additionalFilterKey?:string
|
|
39
|
-
lookupName?:any
|
|
40
|
-
textColorOnReadonly ?: any
|
|
41
|
-
hideLabelOnForm?:boolean = false
|
|
42
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SelectItem } from "primeng/api";
|
|
2
|
-
|
|
3
|
-
export class List {
|
|
4
|
-
dataSource?: string;
|
|
5
|
-
records: any[];
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
forProperty!: string;
|
|
9
|
-
items: SelectItem[];
|
|
10
|
-
allItems: SelectItem[];
|
|
11
|
-
|
|
12
|
-
constructor(dataSource: string, records: any[] = [], label: string, value: string, forProperty?: string) {
|
|
13
|
-
this.dataSource = dataSource
|
|
14
|
-
this.records = records;
|
|
15
|
-
this.label = label;
|
|
16
|
-
this.value = value;
|
|
17
|
-
this.dataSource = dataSource;
|
|
18
|
-
this.forProperty = forProperty ?? ""
|
|
19
|
-
this.items = records?.map((i) => {
|
|
20
|
-
return { label: i[this?.label] ? i[this?.label] : 'No label', value: i[this?.value] };
|
|
21
|
-
});
|
|
22
|
-
this.allItems = this.records?.map((i) => {
|
|
23
|
-
return { label: i[this?.label] ? i[this?.label] : 'No label', value: i[this?.value] };
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Pipe({
|
|
4
|
-
name: 'capitalizeWords',
|
|
5
|
-
standalone: true,
|
|
6
|
-
})
|
|
7
|
-
export class CapitalizeWordsPipe implements PipeTransform {
|
|
8
|
-
transform(value: string): string {
|
|
9
|
-
if (!value) return value;
|
|
10
|
-
return value
|
|
11
|
-
.split(' ')
|
|
12
|
-
.map(word =>
|
|
13
|
-
word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
|
|
14
|
-
)
|
|
15
|
-
.join(' ');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AppConfigService } from './app-config.service';
|
|
4
|
-
|
|
5
|
-
describe('AppConfigService', () => {
|
|
6
|
-
let service: AppConfigService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(AppConfigService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { firstValueFrom } from 'rxjs';
|
|
4
|
-
import { URLS } from '../constant/URLS';
|
|
5
|
-
@Injectable({
|
|
6
|
-
providedIn: 'root'
|
|
7
|
-
})
|
|
8
|
-
export class AppConfigService {
|
|
9
|
-
|
|
10
|
-
private appConfig: any;
|
|
11
|
-
|
|
12
|
-
constructor(private http: HttpClient) {}
|
|
13
|
-
async loadAppConfig() {
|
|
14
|
-
this.appConfig = await firstValueFrom(this.http.get(URLS.CONFIGFILEURL));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
get apiBaseUrl() {
|
|
18
|
-
return this.appConfig?.apiUrl;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
get visibilityOptions(){
|
|
22
|
-
return this.appConfig?.visibilityOption
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
import { CanActivateFn } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { authGuard } from './auth.guard';
|
|
5
|
-
|
|
6
|
-
describe('authGuard', () => {
|
|
7
|
-
const executeGuard: CanActivateFn = (...guardParameters) =>
|
|
8
|
-
TestBed.runInInjectionContext(() => authGuard(...guardParameters));
|
|
9
|
-
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
TestBed.configureTestingModule({});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('should be created', () => {
|
|
15
|
-
expect(executeGuard).toBeTruthy();
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
3
|
-
import { SessionService } from '../session.service';
|
|
4
|
-
import { map, Observable, of, tap } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
@Injectable({
|
|
7
|
-
providedIn: 'root',
|
|
8
|
-
})
|
|
9
|
-
export class AuthGuard implements CanActivate {
|
|
10
|
-
constructor(public _sessionService : SessionService,private _router: Router) {}
|
|
11
|
-
|
|
12
|
-
canActivate(
|
|
13
|
-
next: ActivatedRouteSnapshot,
|
|
14
|
-
state: RouterStateSnapshot
|
|
15
|
-
): Observable<boolean> {
|
|
16
|
-
return of(this._sessionService.getSessionID()).pipe(
|
|
17
|
-
tap((sessionID) => {
|
|
18
|
-
if (!sessionID) {
|
|
19
|
-
this._router.navigateByUrl("auth/login" + "?returnUrl=" + state.url);
|
|
20
|
-
}
|
|
21
|
-
}),
|
|
22
|
-
map((sessionID) => !!sessionID)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { DataTransformerService } from './data-transformer.service';
|
|
4
|
-
|
|
5
|
-
describe('DataTransformerService', () => {
|
|
6
|
-
let service: DataTransformerService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(DataTransformerService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { SHARED } from '../constant/SHARED';
|
|
3
|
-
|
|
4
|
-
@Injectable({
|
|
5
|
-
providedIn: 'root'
|
|
6
|
-
})
|
|
7
|
-
export class DataTransformerService {
|
|
8
|
-
|
|
9
|
-
constructor() { }
|
|
10
|
-
flattenObject(data: any, result: any[] = [], additionalFields: any = {}): any[] {
|
|
11
|
-
for (const key in data) {
|
|
12
|
-
if (data.hasOwnProperty(key)) {
|
|
13
|
-
if (typeof data[key] === SHARED.TYPE_OBJECT && data[key] !== null && !Array.isArray(data[key])) {
|
|
14
|
-
this.flattenObject(data[key], result);
|
|
15
|
-
} else {
|
|
16
|
-
result.push({
|
|
17
|
-
label: this.transformLabel(key),
|
|
18
|
-
value: data[key]
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (additionalFields._id) {
|
|
24
|
-
result.push({
|
|
25
|
-
_id: additionalFields._id
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (additionalFields.QueueID) {
|
|
30
|
-
result.push({
|
|
31
|
-
QueueID: additionalFields.QueueID
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
transformLabel(key: string): string {
|
|
39
|
-
return key.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase());
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { DateParserService } from './date-parser.service';
|
|
4
|
-
|
|
5
|
-
describe('DateParserService', () => {
|
|
6
|
-
let service: DateParserService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(DateParserService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import moment from 'moment';
|
|
3
|
-
import { SHARED } from '../constant/SHARED';
|
|
4
|
-
|
|
5
|
-
@Injectable({
|
|
6
|
-
providedIn: 'root'
|
|
7
|
-
})
|
|
8
|
-
export class DateParserService {
|
|
9
|
-
|
|
10
|
-
constructor() { }
|
|
11
|
-
|
|
12
|
-
parseDate(date:any) {
|
|
13
|
-
|
|
14
|
-
if (
|
|
15
|
-
moment(date, SHARED.DATE_FORMAT_TYPE2, true).isValid()
|
|
16
|
-
) {
|
|
17
|
-
const date1 = date.toString().split(SHARED.HIPHEN)[0];
|
|
18
|
-
const month = date.toString().split(SHARED.HIPHEN)[1];
|
|
19
|
-
const year = date.toString().split(SHARED.HIPHEN)[2];
|
|
20
|
-
return moment.utc(`${year}-${month}-${date1}`).toDate();
|
|
21
|
-
}
|
|
22
|
-
else if (
|
|
23
|
-
moment(date, SHARED.DATE_FORMAT, true).isValid()
|
|
24
|
-
) {
|
|
25
|
-
const date1 = date.toString().split(SHARED.SLASH)[0];
|
|
26
|
-
const month = date.toString().split(SHARED.SLASH)[1];
|
|
27
|
-
const year = date.toString().split(SHARED.SLASH)[2];
|
|
28
|
-
return moment.utc(`${year}-${month}-${date1}`).toDate();
|
|
29
|
-
}
|
|
30
|
-
else if (moment(date, SHARED.DATE_FORMAT_TYPE3, true).isValid()) {
|
|
31
|
-
const dateParts = date.toString().split(SHARED.HIPHEN);
|
|
32
|
-
const year = dateParts[0];
|
|
33
|
-
const month = dateParts[1];
|
|
34
|
-
const day = dateParts[2];
|
|
35
|
-
return moment.utc(`${year}-${month}-${day}`).toDate();
|
|
36
|
-
}
|
|
37
|
-
else if (
|
|
38
|
-
|
|
39
|
-
date instanceof Date ||
|
|
40
|
-
new Date(date).toString() != SHARED.INVALIDDATE
|
|
41
|
-
) {
|
|
42
|
-
|
|
43
|
-
const result = new Date(date);
|
|
44
|
-
result.setHours(0, 0, 0, 0);
|
|
45
|
-
return moment.utc(`${result.getFullYear()}-${result.getMonth()+1}-${result.getDate()}`).toDate();
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
throw new Error(SHARED.INVALIDDATE);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return SHARED.INVALIDDATE
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ListService } from './list.service';
|
|
4
|
-
|
|
5
|
-
describe('ListService', () => {
|
|
6
|
-
let service: ListService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(ListService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { firstValueFrom } from "rxjs";
|
|
2
|
-
import { List } from "../models/list.model";
|
|
3
|
-
import { Injectable } from "@angular/core";
|
|
4
|
-
import { HttpClient } from "@angular/common/http";
|
|
5
|
-
import { AppConfigService } from "./app-config.service";
|
|
6
|
-
|
|
7
|
-
@Injectable({
|
|
8
|
-
providedIn: 'root',
|
|
9
|
-
})
|
|
10
|
-
export class ListService {
|
|
11
|
-
constructor(public http: HttpClient, public configService: AppConfigService) {}
|
|
12
|
-
|
|
13
|
-
async getLists(models: any[]) {
|
|
14
|
-
const lists: List[] = [];
|
|
15
|
-
|
|
16
|
-
for (const model of models) {
|
|
17
|
-
if (model.dataSource) {
|
|
18
|
-
try {
|
|
19
|
-
const response = await firstValueFrom(
|
|
20
|
-
this.getbyPathName(model.dataSource)
|
|
21
|
-
);
|
|
22
|
-
const list = new List(
|
|
23
|
-
model.dataSource,
|
|
24
|
-
response as any[],
|
|
25
|
-
model.listLabelProperty as string,
|
|
26
|
-
model.listValueProperty as string,
|
|
27
|
-
model.dataSource
|
|
28
|
-
);
|
|
29
|
-
list.forProperty = model.name;
|
|
30
|
-
lists.push(list);
|
|
31
|
-
} catch (error) {
|
|
32
|
-
console.error(`Error fetching data from ${model.dataSource}:`, error);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (model.options) {
|
|
36
|
-
const list = new List(
|
|
37
|
-
model.dataSource,
|
|
38
|
-
model.options as any[],
|
|
39
|
-
model.listLabelProperty as string,
|
|
40
|
-
model.listValueProperty as string,
|
|
41
|
-
undefined
|
|
42
|
-
);
|
|
43
|
-
list.forProperty = model.name;
|
|
44
|
-
lists.push(list);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return lists;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
getbyPathName(data: string) {
|
|
51
|
-
return this.http.get(this.configService.apiBaseUrl + data);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SessionService } from './session.service';
|
|
4
|
-
|
|
5
|
-
describe('SessionService', () => {
|
|
6
|
-
let service: SessionService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(SessionService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|