@aggdirect/coolmap 2.6.7 → 2.6.8

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.
Files changed (109) hide show
  1. package/karma.conf.js +44 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +5 -30
  4. package/src/assets/mixin.scss +28 -0
  5. package/src/assets/palette.scss +24 -0
  6. package/src/assets/variable.scss +15 -0
  7. package/src/lib/component/add-route/add-route.component.html +136 -0
  8. package/src/lib/component/add-route/add-route.component.scss +236 -0
  9. package/src/lib/component/add-route/add-route.component.spec.ts +23 -0
  10. package/src/lib/component/add-route/add-route.component.ts +295 -0
  11. package/src/lib/component/job-code/job-code.component.html +79 -0
  12. package/src/lib/component/job-code/job-code.component.scss +396 -0
  13. package/src/lib/component/job-code/job-code.component.ts +157 -0
  14. package/src/lib/component/map/map.component.css +0 -0
  15. package/src/lib/component/map/map.component.html +4 -0
  16. package/src/lib/component/map/map.component.spec.ts +23 -0
  17. package/src/lib/component/map/map.component.ts +34 -0
  18. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.html +46 -0
  19. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.scss +18 -0
  20. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.spec.ts +23 -0
  21. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.ts +131 -0
  22. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.html +48 -0
  23. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.scss +24 -0
  24. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.ts +154 -0
  25. package/src/lib/component/nav/nav.component.html +19 -0
  26. package/src/lib/component/nav/nav.component.scss +67 -0
  27. package/src/lib/component/nav/nav.component.ts +38 -0
  28. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.html +56 -0
  29. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.scss +168 -0
  30. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.spec.ts +23 -0
  31. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.ts +43 -0
  32. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.html +66 -0
  33. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +232 -0
  34. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +234 -0
  35. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.html +7 -0
  36. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.scss +10 -0
  37. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.spec.ts +23 -0
  38. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.ts +15 -0
  39. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.html +28 -0
  40. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.scss +172 -0
  41. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.spec.ts +23 -0
  42. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.ts +20 -0
  43. package/src/lib/component/shared/dialog/dialog.component.html +7 -0
  44. package/src/lib/component/shared/dialog/dialog.component.scss +30 -0
  45. package/src/lib/component/shared/dialog/dialog.component.ts +18 -0
  46. package/src/lib/component/shared/estimation-display/estimation-display.component.html +7 -0
  47. package/src/lib/component/shared/estimation-display/estimation-display.component.scss +7 -0
  48. package/src/lib/component/shared/estimation-display/estimation-display.component.ts +13 -0
  49. package/src/lib/component/shared/job-route-list/job-route-list.component.html +30 -0
  50. package/src/lib/component/shared/job-route-list/job-route-list.component.scss +15 -0
  51. package/src/lib/component/shared/job-route-list/job-route-list.component.spec.ts +23 -0
  52. package/src/lib/component/shared/job-route-list/job-route-list.component.ts +54 -0
  53. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.html +11 -0
  54. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.scss +13 -0
  55. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.spec.ts +23 -0
  56. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.ts +19 -0
  57. package/src/lib/component/shared/jobcode-status/jobcode-status.component.html +5 -0
  58. package/src/lib/component/shared/jobcode-status/jobcode-status.component.scss +40 -0
  59. package/src/lib/component/shared/jobcode-status/jobcode-status.component.spec.ts +23 -0
  60. package/src/lib/component/shared/jobcode-status/jobcode-status.component.ts +11 -0
  61. package/src/lib/component/shared/route-info-card/route-info-card.component.html +11 -0
  62. package/src/lib/component/shared/route-info-card/route-info-card.component.scss +50 -0
  63. package/src/lib/component/shared/route-info-card/route-info-card.component.spec.ts +23 -0
  64. package/src/lib/component/shared/route-info-card/route-info-card.component.ts +69 -0
  65. package/src/lib/coolmap.module.ts +117 -0
  66. package/{public-api.d.ts → src/public-api.ts} +8 -0
  67. package/src/test.ts +27 -0
  68. package/tsconfig.lib.json +15 -0
  69. package/tsconfig.lib.prod.json +10 -0
  70. package/tsconfig.spec.json +17 -0
  71. package/esm2022/aggdirect-coolmap.mjs +0 -5
  72. package/esm2022/lib/component/add-route/add-route.component.mjs +0 -348
  73. package/esm2022/lib/component/job-code/job-code.component.mjs +0 -192
  74. package/esm2022/lib/component/map/map.component.mjs +0 -39
  75. package/esm2022/lib/component/nav/layout/add-route-nav/add-route-nav.component.mjs +0 -152
  76. package/esm2022/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +0 -119
  77. package/esm2022/lib/component/nav/nav.component.mjs +0 -54
  78. package/esm2022/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.mjs +0 -77
  79. package/esm2022/lib/component/route-jobcode-list/route-jobcode-list.component.mjs +0 -321
  80. package/esm2022/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.mjs +0 -19
  81. package/esm2022/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.mjs +0 -37
  82. package/esm2022/lib/component/shared/dialog/dialog.component.mjs +0 -31
  83. package/esm2022/lib/component/shared/estimation-display/estimation-display.component.mjs +0 -18
  84. package/esm2022/lib/component/shared/job-route-list/job-route-list.component.mjs +0 -79
  85. package/esm2022/lib/component/shared/jobcode-overview/jobcode-overview.component.mjs +0 -24
  86. package/esm2022/lib/component/shared/jobcode-status/jobcode-status.component.mjs +0 -15
  87. package/esm2022/lib/component/shared/route-info-card/route-info-card.component.mjs +0 -57
  88. package/esm2022/lib/coolmap.module.mjs +0 -186
  89. package/esm2022/public-api.mjs +0 -19
  90. package/fesm2022/aggdirect-coolmap.mjs +0 -1644
  91. package/fesm2022/aggdirect-coolmap.mjs.map +0 -1
  92. package/index.d.ts +0 -5
  93. package/lib/component/add-route/add-route.component.d.ts +0 -61
  94. package/lib/component/job-code/job-code.component.d.ts +0 -42
  95. package/lib/component/map/map.component.d.ts +0 -15
  96. package/lib/component/nav/layout/add-route-nav/add-route-nav.component.d.ts +0 -49
  97. package/lib/component/nav/layout/job-code-nav/job-code-nav.component.d.ts +0 -42
  98. package/lib/component/nav/nav.component.d.ts +0 -31
  99. package/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.d.ts +0 -20
  100. package/lib/component/route-jobcode-list/route-jobcode-list.component.d.ts +0 -42
  101. package/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.d.ts +0 -9
  102. package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts +0 -12
  103. package/lib/component/shared/dialog/dialog.component.d.ts +0 -13
  104. package/lib/component/shared/estimation-display/estimation-display.component.d.ts +0 -8
  105. package/lib/component/shared/job-route-list/job-route-list.component.d.ts +0 -26
  106. package/lib/component/shared/jobcode-overview/jobcode-overview.component.d.ts +0 -10
  107. package/lib/component/shared/jobcode-status/jobcode-status.component.d.ts +0 -7
  108. package/lib/component/shared/route-info-card/route-info-card.component.d.ts +0 -29
  109. package/lib/coolmap.module.d.ts +0 -44
package/karma.conf.js ADDED
@@ -0,0 +1,44 @@
1
+ // Karma configuration file, see link for more information
2
+ // https://karma-runner.github.io/1.0/config/configuration-file.html
3
+
4
+ module.exports = function (config) {
5
+ config.set({
6
+ basePath: '',
7
+ frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
+ plugins: [
9
+ require('karma-jasmine'),
10
+ require('karma-chrome-launcher'),
11
+ require('karma-jasmine-html-reporter'),
12
+ require('karma-coverage'),
13
+ require('@angular-devkit/build-angular/plugins/karma')
14
+ ],
15
+ client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
22
+ clearContext: false // leave Jasmine Spec Runner output visible in browser
23
+ },
24
+ jasmineHtmlReporter: {
25
+ suppressAll: true // removes the duplicated traces
26
+ },
27
+ coverageReporter: {
28
+ dir: require('path').join(__dirname, '../../coverage/coolmap'),
29
+ subdir: '.',
30
+ reporters: [
31
+ { type: 'html' },
32
+ { type: 'text-summary' }
33
+ ]
34
+ },
35
+ reporters: ['progress', 'kjhtml'],
36
+ port: 9876,
37
+ colors: true,
38
+ logLevel: config.LOG_INFO,
39
+ autoWatch: true,
40
+ browsers: ['Chrome'],
41
+ singleRun: false,
42
+ restartOnFileChange: true
43
+ });
44
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/coolmap",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aggdirect/coolmap",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.8",
6
6
  "@angular/core": "^17.0.8"
@@ -16,6 +16,9 @@
16
16
  },
17
17
  "description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.",
18
18
  "main": "karma.conf.js",
19
+ "scripts": {
20
+ "test": "echo \"Error: no test specified\" && exit 1"
21
+ },
19
22
  "author": "Navin Vishwakarma <navin@ogmaconceptions.com>",
20
23
  "contributors": [
21
24
  "Santanu Das <santanu.das@ogmaconceptions.com>"
@@ -23,33 +26,5 @@
23
26
  "license": "ISC",
24
27
  "keywords": [
25
28
  "coolmap"
26
- ],
27
- "module": "fesm2022/aggdirect-coolmap.mjs",
28
- "typings": "index.d.ts",
29
- "exports": {
30
- "./package.json": {
31
- "default": "./package.json"
32
- },
33
- ".": {
34
- "types": "./index.d.ts",
35
- "esm2022": "./esm2022/aggdirect-coolmap.mjs",
36
- "esm": "./esm2022/aggdirect-coolmap.mjs",
37
- "default": "./fesm2022/aggdirect-coolmap.mjs"
38
- }
39
- },
40
- "sideEffects": false,
41
- "directories": {
42
- "lib": "lib"
43
- },
44
- "scripts": {
45
- "test": "echo \"Error: no test specified\" && exit 1"
46
- },
47
- "repository": {
48
- "type": "git",
49
- "url": "git+https://github.com/bulldog-dev/npm-packages.git"
50
- },
51
- "bugs": {
52
- "url": "https://github.com/bulldog-dev/npm-packages/issues"
53
- },
54
- "homepage": "https://github.com/bulldog-dev/npm-packages#readme"
29
+ ]
55
30
  }
@@ -0,0 +1,28 @@
1
+ @mixin ul{
2
+ margin: 0;
3
+ padding: 0;
4
+ list-style: none;
5
+ }
6
+ @mixin img{
7
+ max-width: 100%;
8
+ vertical-align: middle;
9
+ }
10
+ @mixin justify-start{
11
+ display:flex;
12
+ justify-content: flex-start;
13
+ }
14
+ @mixin justify-center{
15
+ display:flex;
16
+ justify-content: center;
17
+ }
18
+ @mixin justify-space-between{
19
+ display:flex;
20
+ justify-content: space-between;
21
+ }
22
+ @mixin justify-end{
23
+ display:flex;
24
+ justify-content: flex-start;
25
+ }
26
+ @mixin align-center{
27
+ align-items: center;
28
+ }
@@ -0,0 +1,24 @@
1
+ $color-key:'base' !default;
2
+ $colors:(
3
+
4
+ 'primary':(50: #000, 100: #fff, 200: #326ad3, 300: #ffad56, 400: #39c471, 500: #e8e8e8, 600: #767676, 700: #fbfbfb, 800: #3f51b5),
5
+
6
+ );
7
+
8
+
9
+ @function palette(
10
+ $name: 'primary',
11
+ $variant: $color-key,
12
+ $opacity: 1) {
13
+ $color: null;
14
+ $color-spectrum: map-get($colors, $name);
15
+ @if $color-spectrum {
16
+ $color: map-get($color-spectrum, $variant);
17
+ }
18
+ $alpha: if(type-of($opacity) == 'number', $opacity, map-get($color-opacity, $opacity));
19
+ @if $alpha {
20
+ $color: rgba($color, $alpha);
21
+ }
22
+ @return $color;
23
+ }
24
+
@@ -0,0 +1,15 @@
1
+ @import './palette.scss';
2
+ @import './mixin.scss';
3
+
4
+ $black: palette('primary', 50);
5
+ $white: palette('primary', 100);
6
+ $blue: palette('primary', 200);
7
+ $orenge: palette('primary', 300);
8
+ $green: palette('primary', 400);
9
+ $grey: palette('primary', 500);
10
+ $softgrey: palette('primary', 600);
11
+ $softwhite: palette('primary', 700);
12
+ $buttoncolor: palette('primary', 800);
13
+
14
+
15
+
@@ -0,0 +1,136 @@
1
+ <div class="addroutebox">
2
+ <div class="routedetailbox" *ngIf="enablePopUp">
3
+ <div class="closebtnroutedetail">
4
+ <mat-icon (click)="prevantPopupClose = false; enablePopUp = false;">clear</mat-icon>
5
+ </div>
6
+ <lib-route-info-card [propData]="{className: 'routeCard', repository: config['repository']}" [popupData]="popupDetails"></lib-route-info-card>
7
+ <div class="createTxt">
8
+ <small>
9
+ Created by {{popupDetails['created_by_name']}} on {{popupDetails['created_at']}}
10
+ </small>
11
+ <button class="editbtn" (click)="editEvent()">Edit</button>
12
+ </div>
13
+ </div>
14
+ <div class="add_add_route_box" cdkDrag [style.visibility]="!enableForm ? 'hidden' : 'visible'">
15
+ <div class="topheadingprt">
16
+ <h2> {{routeId? 'EDIT' : 'ADD'}} ROUTE </h2>
17
+ <div class="buttonprt">
18
+ <button *ngIf="routeId" class="delbtn" (click)="openDialog()">Delete</button>
19
+ <button mat-raised-button type="submit" class="closebtn" (click)="changeNav.next('Addroute')">Close</button>
20
+ </div>
21
+ </div>
22
+ <form [formGroup]="addRouteForm">
23
+ <div class="route_form_area">
24
+ <div class="col-6">
25
+ <mat-form-field>
26
+ <mat-label>Route Name</mat-label>
27
+ <input matInput formControlName="route_name" autocomplete="nope" (mousedown)="$event.stopPropagation()">
28
+ <mat-error *ngIf="addRouteForm.controls['route_name'].hasError('required')">
29
+ Route Name is required
30
+ </mat-error>
31
+ </mat-form-field>
32
+ </div>
33
+ <div class="col-6">
34
+ <mat-form-field>
35
+ <mat-label>Customer_name</mat-label>
36
+ <input type="text" placeholder="Customer Name" matInput formControlName="customer_name" [matAutocomplete]="auto" (mousedown)="$event.stopPropagation()">
37
+ <mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
38
+ <mat-option *ngFor="let customer of customersList$ | async" [value]="customer['customer_name']">
39
+ {{customer['customer_name']}}
40
+ </mat-option>
41
+ </mat-autocomplete>
42
+ <mat-error *ngIf="addRouteForm.controls['customer_name'].hasError('required')">
43
+ Customer name is required.
44
+ </mat-error>
45
+ </mat-form-field>
46
+ </div>
47
+ <div class="col-6">
48
+ <mat-form-field>
49
+ <mat-label>Pickup</mat-label>
50
+ <input type="text" placeholder="Search..." matInput #filterPickup [matAutocomplete]="pickupAutocomplete"
51
+ formControlName="pickup_location" (mousedown)="$event.stopPropagation()">
52
+
53
+ <mat-autocomplete #pickupAutocomplete="matAutocomplete">
54
+ <mat-option (click)="selectedLongLat('pickup', option)" *ngFor="let option of pickupOptions"
55
+ [value]="option?.place_name">
56
+ {{option?.place_name}}
57
+ </mat-option>
58
+ </mat-autocomplete>
59
+ </mat-form-field>
60
+ <mat-error *ngIf="addRouteForm.controls['pickup_lat_lng'].touched && addRouteForm.controls['pickup_lat_lng'].hasError('required')">
61
+ Please select pickup location from the list.
62
+ </mat-error>
63
+ </div>
64
+ <div class="col-6">
65
+ <mat-form-field>
66
+ <mat-label>Delivery</mat-label>
67
+ <input type="text" placeholder="Search..." matInput #filterDelivery [matAutocomplete]="deliveryAutocomplete"
68
+ formControlName="delivery_location" (mousedown)="$event.stopPropagation()">
69
+ <mat-autocomplete #deliveryAutocomplete="matAutocomplete">
70
+ <mat-option (click)="selectedLongLat('delivery', option)" *ngFor="let option of deliveryOptions"
71
+ [value]="option?.place_name">
72
+ {{option?.place_name}}
73
+ </mat-option>
74
+ </mat-autocomplete>
75
+ </mat-form-field>
76
+ <mat-error *ngIf="addRouteForm.controls['delivery_lat_lng'].touched && addRouteForm.controls['delivery_lat_lng'].hasError('required')">
77
+ Please select delivery location from the list.
78
+ </mat-error>
79
+ </div>
80
+ <div class="col-6">
81
+ <mat-form-field>
82
+ <mat-label>Notes</mat-label>
83
+ <textarea style="height: 18px; resize: none;" matInput name="" id="" cols="30" rows="10" formControlName="note" autocomplete="nope" (mousedown)="$event.stopPropagation()"></textarea>
84
+ <mat-error *ngIf="addRouteForm.controls['note'].hasError('maxlength')">
85
+ Notes should be within 2048 characters.
86
+ </mat-error>
87
+ </mat-form-field>
88
+ </div>
89
+
90
+ <div class="col-6 d-flex">
91
+ <div class="inputbox m-0">
92
+ <mat-form-field>
93
+ <mat-label>Unit type</mat-label>
94
+ <mat-select formControlName="unit_id" (selectionChange)="checkAndFetchRouteInformation()" (mousedown)="$event.stopPropagation()">
95
+ <mat-option *ngFor="let unit of unitsList" [value]="unit?.id"> {{unit?.type}} </mat-option>
96
+ </mat-select>
97
+ <mat-error *ngIf="addRouteForm.controls['unit_id'].hasError('required')">
98
+ Unit is required
99
+ </mat-error>
100
+ </mat-form-field>
101
+ </div>
102
+
103
+ <div class="inputbox m-0">
104
+ <mat-form-field>
105
+ <mat-label>Material</mat-label>
106
+ <mat-select formControlName="materials_id" (mousedown)="$event.stopPropagation()">
107
+ <mat-option *ngFor="let material of materialsList" [value]="config.repository === 'coolmap' ? material?.material_id : material?.sub_material_id"> {{config.repository === 'coolmap' ? material?.material : material?.label}}
108
+ </mat-option>
109
+ </mat-select>
110
+ <mat-error *ngIf="addRouteForm.controls['materials_id'].hasError('required')">
111
+ Material is required
112
+ </mat-error>
113
+ </mat-form-field>
114
+ </div>
115
+ </div>
116
+ <div class="col-6">
117
+ <app-estimation-display *ngIf="addRouteForm?.value?.pickup_lat_lng && addRouteForm?.value?.delivery_lat_lng" [value]="addRouteForm['value']"></app-estimation-display>
118
+ </div>
119
+ <div class="col-6" *ngIf="addRouteForm['value']['trucker_pay_estimate'] && addRouteForm['value']['customer_price_estimate']">
120
+ <span *ngIf="config['repository'] !== 'customer'" class="estimate" (mousedown)="$event.stopPropagation()">
121
+ Trucker Pay Estimate - <b>{{'$'+ addRouteForm['value']['trucker_pay_estimate']}}</b>
122
+ </span>
123
+ <span class="estimate" (mousedown)="$event.stopPropagation()">
124
+ Customer Price Estimate - <b>{{'$'+ addRouteForm['value']['customer_price_estimate']}}</b>
125
+ </span>
126
+ </div>
127
+ <button mat-raised-button type="submit" (click)="saveRoute()" *ngIf="preventSave"
128
+ [disabled]="addRouteForm.invalid && preventSave || preventInitialSave">{{routeId? 'Update' : 'Save'}}
129
+ </button>
130
+ <div class="loader">
131
+ <mat-spinner *ngIf="!preventSave"></mat-spinner>
132
+ </div>
133
+ </div>
134
+ </form>
135
+ </div>
136
+ </div>
@@ -0,0 +1,236 @@
1
+ @import "../../../assets/variable.scss";
2
+ .addroutebox{
3
+ width: calc(100% - 340px);
4
+ position: absolute;
5
+ left: 320px;
6
+ bottom: 10px;
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: flex-start;
10
+
11
+ .routedetailbox{
12
+ max-width: 300px;
13
+ padding: 10px;
14
+ background-color: #fff;
15
+ border-radius: 20px;
16
+ margin-right: 20px;
17
+ @media (min-width:1600px) {
18
+ max-width: 280px;
19
+ }
20
+ }
21
+ .editbtn{
22
+ background: #326ad3;
23
+ padding: 10px 25px 10px 25px;
24
+ color: white;
25
+ font-size: 0.8125rem;
26
+ border-radius: 30px;
27
+ float: right;
28
+ }
29
+ }
30
+ .add_add_route_box {
31
+ background: $white;
32
+ padding: 10px 20px;
33
+ border-radius: 20px;
34
+ box-shadow: 2px 4px 4px 2px rgb(0 0 0 / 14%);
35
+ height: 370px;
36
+ width: 100%;
37
+ position: relative;
38
+ cursor: move;
39
+
40
+ .route_form_area {
41
+ display: flex;
42
+ flex-wrap: wrap;
43
+ justify-content: space-between;
44
+ .col-6 {
45
+ width: 48%;
46
+ margin-top: 10px;
47
+ justify-content: space-between;
48
+ .inputbox {
49
+ width: 47%;
50
+ }
51
+ span {
52
+ font-size: 0.875rem;
53
+ }
54
+ }
55
+ button {
56
+ background: $blue;
57
+ padding: 0px 18px;
58
+ color: $white;
59
+ font-size: 0.8125rem;
60
+ border-radius: 30px;
61
+ position: absolute;
62
+ right: 18px;
63
+ top: 20px;
64
+ height: 35px;
65
+ }
66
+ }
67
+ }
68
+ .closebtn{
69
+ background: $black;
70
+ color: $white;
71
+ border-radius: 30px;
72
+ padding: 0px 18px;
73
+ margin-left: 10px;
74
+ height: 35px;
75
+ }
76
+ .delbtn{
77
+ background:red;
78
+ color: $white;
79
+ border-radius: 30px;
80
+ padding: 10px 18px 10px 18px;
81
+ }
82
+ .add_route_listingpart {
83
+ .listing_toggle {
84
+ background: $white;
85
+ border-radius: 15px;
86
+ padding: 8px 10px;
87
+ position: absolute;
88
+ right: 10px;
89
+ top: 30px;
90
+ cursor: pointer;
91
+ }
92
+ }
93
+ .listing_box {
94
+ background: #282828;
95
+ height: 100vh;
96
+ position: fixed;
97
+ right: 0;
98
+ top: 0;
99
+ z-index: 1111;
100
+ box-shadow: -3px 0px 5px 0px rgba(255, 255, 255, 0.08);
101
+ transition: 0.5s;
102
+ -webkit-transition: 0.5s;
103
+ transition: 0.5s;
104
+ -webkit-transition: 0.5s;
105
+ -moz-transition: 0.5s;
106
+ width: 0;
107
+ border-radius: 40px 0px 0px 40px;
108
+ opacity: 0;
109
+ .closebtn {
110
+ display: none;
111
+ }
112
+ }
113
+ .show {
114
+ .listing_box {
115
+ width: 250px;
116
+ max-width: 250px;
117
+ -webkit-box-flex: 0;
118
+ flex: 0 0 250px;
119
+ transition: 0.5s;
120
+ -webkit-transition: 0.5s;
121
+ transition: 0.5s;
122
+ -webkit-transition: 0.5s;
123
+ -moz-transition: 0.5s;
124
+ padding: 40px 0px 40px 20px;
125
+ opacity: 1;
126
+ @media (min-width:1600px) {
127
+ width: 320px;
128
+ max-width: 320px;
129
+ -webkit-box-flex: 0;
130
+ flex: 0 0 320px;
131
+ }
132
+ h2 {
133
+ color: $white;
134
+ white-space: nowrap;
135
+ }
136
+ ul {
137
+ padding: 0 20px 0 0;
138
+ li {
139
+ background: #4a4a4a;
140
+ padding: 15px;
141
+ border-radius: 15px;
142
+ display: flex;
143
+ margin-bottom: 15px;
144
+ .companayIcon {
145
+ width: 40px;
146
+ height: 40px;
147
+ border-radius: 10px;
148
+ background: $white;
149
+ margin-right: 10px;
150
+ display: flex;
151
+ justify-content: center;
152
+ align-items: center;
153
+ }
154
+ .company_cont {
155
+ width: calc(100% - 50px);
156
+ h3 {
157
+ color: $white;
158
+ font-size: 15px;
159
+ font-weight: normal;
160
+ margin: 0;
161
+ text-overflow: ellipsis;
162
+ max-width: 129px;
163
+ -webkit-box-orient: vertical;
164
+ white-space: nowrap;
165
+ overflow: hidden;
166
+ @media (min-width:1600px) {
167
+ max-width: 170px;
168
+ }
169
+ }
170
+ p {
171
+ color: #bcbcbc;
172
+ font-size: 12px;
173
+ margin: 5px 0;
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ display: -webkit-box;
177
+ -webkit-line-clamp: 2;
178
+ -webkit-box-orient: vertical;
179
+ line-height: 16px;
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ .closebtn {
186
+ position: absolute;
187
+ left: -33px;
188
+ top: 50px;
189
+ background: #282828;
190
+ color: $white;
191
+ padding: 8px;
192
+ border-top-left-radius: 15px;
193
+ border-bottom-left-radius: 15px;
194
+ cursor: pointer;
195
+ box-shadow: -4px 2px 5px 0px rgba(255, 255, 255, 0.08);
196
+ display: block;
197
+ }
198
+ }
199
+ .loader{
200
+ position: absolute;
201
+ width: 95%;
202
+ height: 100%;
203
+ display: flex;
204
+ justify-content: center;
205
+ align-items: center;
206
+ pointer-events: none;
207
+ }
208
+ .buttonprt{
209
+ margin-right: 83px;
210
+ }
211
+
212
+ .closebtnroutedetail{
213
+ box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.11);
214
+ border-radius: 100%;
215
+ width: 30px;
216
+ height: 30px;
217
+ display: flex;
218
+ justify-content: center;
219
+ align-items: center;
220
+ cursor: pointer;
221
+ background: #fff;
222
+ position: absolute;
223
+ top: -11px;
224
+ left: -11px;
225
+ }
226
+ .routenotes{
227
+ max-height: 170px;
228
+ overflow: auto;
229
+ }
230
+ .estimate{
231
+ margin-right: 20px;
232
+ font-size: 0.7rem;
233
+ @media (min-width:1600px) {
234
+ font-size: 0.95rem;
235
+ }
236
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AddRouteComponent } from './add-route.component';
4
+
5
+ describe('AddRouteComponent', () => {
6
+ let component: AddRouteComponent;
7
+ let fixture: ComponentFixture<AddRouteComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AddRouteComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AddRouteComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });