sk-ghocomps 1.1.26

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/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # GHOComps
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build GHOComps
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/ghocomps
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
42
+
43
+ ## Running unit tests
44
+
45
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
+
47
+ ```bash
48
+ ng test
49
+ ```
50
+
51
+ ## Running end-to-end tests
52
+
53
+ For end-to-end (e2e) testing, run:
54
+
55
+ ```bash
56
+ ng e2e
57
+ ```
58
+
59
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
+
61
+ ## Additional Resources
62
+
63
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,906 @@
1
+ import * as i1 from '@angular/common';
2
+ import { CommonModule, DatePipe } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { EventEmitter, HostListener, Output, Input, ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
5
+ import * as i2 from '@angular/forms';
6
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
7
+ import { MatCardModule } from '@angular/material/card';
8
+ import { MatCalendar, MatDatepickerModule } from '@angular/material/datepicker';
9
+ import { provideNativeDateAdapter } from '@angular/material/core';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatDialogClose } from '@angular/material/dialog';
12
+
13
+ class GHOdropdown {
14
+ el;
15
+ cdr;
16
+ ngZone;
17
+ constructor(el, cdr, ngZone) {
18
+ this.el = el;
19
+ this.cdr = cdr;
20
+ this.ngZone = ngZone;
21
+ }
22
+ options = [];
23
+ placeholder = 'Select an option';
24
+ showclear = true;
25
+ appearance = "outline";
26
+ label = "";
27
+ filter = true;
28
+ listdata = [];
29
+ isOpen = false;
30
+ selectedtxt = "";
31
+ sharedValue = '';
32
+ sharedValueChange = new EventEmitter();
33
+ selectionchange = new EventEmitter();
34
+ onModelChange(v) {
35
+ this.sharedValue = v;
36
+ this.sharedValueChange.emit(v);
37
+ this.setlabel();
38
+ }
39
+ setlabel() {
40
+ if (this.listdata.length > 0) {
41
+ for (let i = 0; i < this.listdata.length; i++) {
42
+ if (this.sharedValue && this.listdata[i].value.toString() == this.sharedValue.toString()) {
43
+ this.selectedtxt = this.listdata[i].label;
44
+ break;
45
+ }
46
+ else {
47
+ this.selectedtxt = this.label;
48
+ }
49
+ }
50
+ }
51
+ else {
52
+ this.selectedtxt = this.label;
53
+ }
54
+ }
55
+ ngOnChanges(changes) {
56
+ if (changes['options']) {
57
+ this.listdata = [];
58
+ debugger;
59
+ const allKeys = Array.from(new Set(this.options.flatMap(item => Object.keys(item))));
60
+ for (let i = 0; i < this.options.length; i++) {
61
+ if (allKeys.length == 1) {
62
+ this.listdata.push({ label: this.options[i][allKeys[0]], value: this.options[i][allKeys[0]] });
63
+ }
64
+ else {
65
+ this.listdata.push({ label: this.options[i][allKeys[1]], value: this.options[i][allKeys[0]] });
66
+ }
67
+ }
68
+ this.setlabel();
69
+ }
70
+ if (changes['sharedValue']) {
71
+ this.setlabel();
72
+ }
73
+ }
74
+ toggleDropdown() {
75
+ this.isOpen = !this.isOpen;
76
+ }
77
+ clear() {
78
+ this.onModelChange("");
79
+ this.isOpen = false;
80
+ }
81
+ closeDropdown() {
82
+ this.isOpen = false;
83
+ }
84
+ onSelectionChange(v) {
85
+ this.isOpen = false;
86
+ this.onModelChange(v.value);
87
+ this.selectionchange.emit(v);
88
+ }
89
+ datavalid() {
90
+ if (this.label != this.selectedtxt) {
91
+ return true;
92
+ }
93
+ if (this.label == this.selectedtxt) {
94
+ return false;
95
+ }
96
+ return false;
97
+ }
98
+ onOutsideClick(event) {
99
+ if (!this.el.nativeElement.contains(event.target)) {
100
+ this.isOpen = false;
101
+ }
102
+ }
103
+ getclearclass() {
104
+ if (this.appearance == "outline") {
105
+ if (this.datavalid() && this.showclear) {
106
+ return "input-outline-filter-img";
107
+ }
108
+ }
109
+ else {
110
+ return "input-mat-img ";
111
+ }
112
+ return "input-mat";
113
+ }
114
+ getclass() {
115
+ if (this.appearance == "outline") {
116
+ let css = " d-flex gap-3";
117
+ if (!this.filter) {
118
+ css = "input-outline";
119
+ }
120
+ if (this.filter) {
121
+ if (!this.datavalid()) {
122
+ css = "input-outline";
123
+ }
124
+ }
125
+ if (this.filter) {
126
+ if (this.datavalid()) {
127
+ css = "input-outline-filter ";
128
+ }
129
+ }
130
+ if (!this.showclear) {
131
+ css = "input-outline";
132
+ }
133
+ return css + " input d-flex gap-3 ";
134
+ }
135
+ else {
136
+ return "input-mat d-flex gap-3 ";
137
+ }
138
+ }
139
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOdropdown, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
140
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: GHOdropdown, isStandalone: true, selector: "gho-dropdown", inputs: { options: "options", placeholder: "placeholder", showclear: "showclear", appearance: "appearance", label: "label", filter: "filter", sharedValue: "sharedValue" }, outputs: { sharedValueChange: "sharedValueChange", selectionchange: "selectionchange" }, host: { listeners: { "document:click": "onOutsideClick($event)" } }, usesOnChanges: true, ngImport: i0, template: `
141
+ <div style="height: 55px !important;">
142
+ <div style="height: 18px !important;">
143
+ @if(datavalid())
144
+ {
145
+ <div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
146
+ </div>
147
+ }
148
+ </div>
149
+ <table style="width: 100%;">
150
+ <tr>
151
+ <td>
152
+ <div (click)="toggleDropdown()" [ngClass]="getclass()">
153
+ <span>{{selectedtxt}}</span>
154
+ <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i>
155
+ </div>
156
+ </td>
157
+ @if(filter && datavalid() )
158
+ {
159
+ <td>
160
+ <div (click)="clear()" [ngClass]="getclearclass()">
161
+ <i class="bi bi-x-lg "></i>
162
+ </div>
163
+ </td> }
164
+ </tr>
165
+ </table>
166
+ </div>
167
+ @if(isOpen){
168
+ <div class="dropdown-menu show ">
169
+ <div class="list-panel">
170
+ @for (dlitem of listdata; track dlitem) {
171
+ <div class="list-item " (click)="onSelectionChange(dlitem)" [class.list-item-selected]="dlitem.value == sharedValue">
172
+ <table class="w100">
173
+ <tr>
174
+ <td>
175
+ {{ dlitem.label }}
176
+ </td>
177
+ @if(dlitem.value == sharedValue){
178
+ <td class="right" style="width:30px;"> <i class="bi bi-check2"></i> </td>}
179
+ </tr>
180
+ </table>
181
+ </div>
182
+ }
183
+ </div>
184
+ <table class=w100>
185
+ <tr class="bt ">
186
+ <td class="p10" (click)="clear()"><span matButton class="ghoddl-btn "> Clear </span> </td>
187
+ <td class="p10" (click)="closeDropdown()"><span matButton class="ghoddl-btn "> Cancel </span> </td>
188
+ </tr>
189
+ </table>
190
+ </div>
191
+ }
192
+ `, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
193
+ }
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOdropdown, decorators: [{
195
+ type: Component,
196
+ args: [{ selector: 'gho-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, FormsModule], template: `
197
+ <div style="height: 55px !important;">
198
+ <div style="height: 18px !important;">
199
+ @if(datavalid())
200
+ {
201
+ <div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
202
+ </div>
203
+ }
204
+ </div>
205
+ <table style="width: 100%;">
206
+ <tr>
207
+ <td>
208
+ <div (click)="toggleDropdown()" [ngClass]="getclass()">
209
+ <span>{{selectedtxt}}</span>
210
+ <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i>
211
+ </div>
212
+ </td>
213
+ @if(filter && datavalid() )
214
+ {
215
+ <td>
216
+ <div (click)="clear()" [ngClass]="getclearclass()">
217
+ <i class="bi bi-x-lg "></i>
218
+ </div>
219
+ </td> }
220
+ </tr>
221
+ </table>
222
+ </div>
223
+ @if(isOpen){
224
+ <div class="dropdown-menu show ">
225
+ <div class="list-panel">
226
+ @for (dlitem of listdata; track dlitem) {
227
+ <div class="list-item " (click)="onSelectionChange(dlitem)" [class.list-item-selected]="dlitem.value == sharedValue">
228
+ <table class="w100">
229
+ <tr>
230
+ <td>
231
+ {{ dlitem.label }}
232
+ </td>
233
+ @if(dlitem.value == sharedValue){
234
+ <td class="right" style="width:30px;"> <i class="bi bi-check2"></i> </td>}
235
+ </tr>
236
+ </table>
237
+ </div>
238
+ }
239
+ </div>
240
+ <table class=w100>
241
+ <tr class="bt ">
242
+ <td class="p10" (click)="clear()"><span matButton class="ghoddl-btn "> Clear </span> </td>
243
+ <td class="p10" (click)="closeDropdown()"><span matButton class="ghoddl-btn "> Cancel </span> </td>
244
+ </tr>
245
+ </table>
246
+ </div>
247
+ }
248
+ `, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"] }]
249
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { options: [{
250
+ type: Input
251
+ }], placeholder: [{
252
+ type: Input
253
+ }], showclear: [{
254
+ type: Input
255
+ }], appearance: [{
256
+ type: Input
257
+ }], label: [{
258
+ type: Input
259
+ }], filter: [{
260
+ type: Input
261
+ }], sharedValue: [{
262
+ type: Input
263
+ }], sharedValueChange: [{
264
+ type: Output
265
+ }], selectionchange: [{
266
+ type: Output
267
+ }], onOutsideClick: [{
268
+ type: HostListener,
269
+ args: ['document:click', ['$event']]
270
+ }] } });
271
+
272
+ class GHOInput {
273
+ el;
274
+ cdr;
275
+ datePipe;
276
+ constructor(el, cdr, datePipe) {
277
+ this.el = el;
278
+ this.cdr = cdr;
279
+ this.datePipe = datePipe;
280
+ }
281
+ list = [];
282
+ label = "";
283
+ appearance = "outline";
284
+ filter = false;
285
+ showclear = false;
286
+ placeholder = "";
287
+ sharedValue = '';
288
+ sharedValueChange = new EventEmitter();
289
+ onInput(event) {
290
+ this.sharedValue = event.target.value;
291
+ this.sharedValueChange.emit(this.sharedValue);
292
+ this.setlabel();
293
+ }
294
+ clear() {
295
+ this.sharedValue = "";
296
+ this.sharedValueChange.emit(this.sharedValue);
297
+ this.setlabel();
298
+ }
299
+ setlabel() {
300
+ if (this.sharedValue.length > 0) {
301
+ this.placeholder = "";
302
+ }
303
+ else {
304
+ this.placeholder = this.label;
305
+ }
306
+ }
307
+ ngOnChanges(changes) {
308
+ if (changes['sharedValue']) {
309
+ this.setlabel();
310
+ }
311
+ }
312
+ getclass() {
313
+ if (this.appearance == "outline") {
314
+ let css = " d-flex gap-3";
315
+ if (!this.filter) {
316
+ css = "input-outline";
317
+ }
318
+ if (this.filter) {
319
+ if (!this.datavalid()) {
320
+ css = "input-outline";
321
+ }
322
+ }
323
+ if (this.filter) {
324
+ if (this.datavalid() && this.showclear) {
325
+ css = "input-outline-filter input-filter";
326
+ }
327
+ }
328
+ if (this.filter) {
329
+ if (this.datavalid() && !this.showclear) {
330
+ css = "input-outline input-filter ";
331
+ }
332
+ }
333
+ if (!this.showclear) {
334
+ css = "input-outline";
335
+ }
336
+ return css + " input";
337
+ }
338
+ else {
339
+ return "input-mat d-flex gap-3 ";
340
+ }
341
+ }
342
+ getclearclass() {
343
+ if (this.appearance == "outline") {
344
+ if (this.datavalid() && this.showclear) {
345
+ return "input-outline-filter-img";
346
+ }
347
+ }
348
+ else {
349
+ return "input-mat-img ";
350
+ }
351
+ return "input-mat";
352
+ }
353
+ datavalid() {
354
+ if (this.placeholder == this.label) {
355
+ return false;
356
+ }
357
+ else {
358
+ return true;
359
+ }
360
+ }
361
+ ngOnInit() {
362
+ }
363
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOInput, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
364
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: GHOInput, isStandalone: true, selector: "gho-input", inputs: { list: "list", label: "label", appearance: "appearance", filter: "filter", showclear: "showclear", sharedValue: "sharedValue" }, outputs: { sharedValueChange: "sharedValueChange" }, providers: [DatePipe], usesOnChanges: true, ngImport: i0, template: `<div style="height: 55px !important;">
365
+ <div style="height: 18px !important;">
366
+ @if(datavalid())
367
+ {
368
+ <div [ngStyle]="{ margin: '-2px 5px' }" class="input-label">{{label}}
369
+ </div>
370
+ }
371
+
372
+ </div>
373
+ <div >
374
+ <table style="width: 100%;">
375
+ <tr>
376
+ <td> <input type="text" [placeholder]="placeholder" [ngModel]="sharedValue" (input)="onInput($event)"
377
+ [ngClass]="getclass()"></td>
378
+ @if(filter && datavalid() )
379
+ {
380
+ <td>
381
+ <div (click)="clear()" [ngClass]="getclearclass()">
382
+ <i class="bi bi-x-lg "></i>
383
+ </div>
384
+ </td> }
385
+ </tr>
386
+ </table>
387
+ </div>
388
+ </div>`, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
389
+ }
390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOInput, decorators: [{
391
+ type: Component,
392
+ args: [{ selector: 'gho-input', standalone: true, imports: [CommonModule, FormsModule,], template: `<div style="height: 55px !important;">
393
+ <div style="height: 18px !important;">
394
+ @if(datavalid())
395
+ {
396
+ <div [ngStyle]="{ margin: '-2px 5px' }" class="input-label">{{label}}
397
+ </div>
398
+ }
399
+
400
+ </div>
401
+ <div >
402
+ <table style="width: 100%;">
403
+ <tr>
404
+ <td> <input type="text" [placeholder]="placeholder" [ngModel]="sharedValue" (input)="onInput($event)"
405
+ [ngClass]="getclass()"></td>
406
+ @if(filter && datavalid() )
407
+ {
408
+ <td>
409
+ <div (click)="clear()" [ngClass]="getclearclass()">
410
+ <i class="bi bi-x-lg "></i>
411
+ </div>
412
+ </td> }
413
+ </tr>
414
+ </table>
415
+ </div>
416
+ </div>`, providers: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"] }]
417
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.DatePipe }], propDecorators: { list: [{
418
+ type: Input
419
+ }], label: [{
420
+ type: Input
421
+ }], appearance: [{
422
+ type: Input
423
+ }], filter: [{
424
+ type: Input
425
+ }], showclear: [{
426
+ type: Input
427
+ }], sharedValue: [{
428
+ type: Input
429
+ }], sharedValueChange: [{
430
+ type: Output
431
+ }] } });
432
+
433
+ class GHODate {
434
+ el;
435
+ cdr;
436
+ datePipe;
437
+ constructor(el, cdr, datePipe) {
438
+ this.el = el;
439
+ this.cdr = cdr;
440
+ this.datePipe = datePipe;
441
+ }
442
+ options = [];
443
+ placeholder = 'Select an option';
444
+ showclear = true;
445
+ appearance = "outline";
446
+ label = "";
447
+ filter = true;
448
+ value = "";
449
+ disabled = false;
450
+ listdata = [];
451
+ isOpen = false;
452
+ selectedtxt = "";
453
+ days = [];
454
+ years = [];
455
+ months = [];
456
+ currentYear = new Date().getFullYear();
457
+ d;
458
+ m;
459
+ y;
460
+ // Writes a new value to the element
461
+ writeValue(value) {
462
+ this.value = value;
463
+ if (this.value !== undefined && this.value !== null) {
464
+ const date = new Date(value);
465
+ if (!date) {
466
+ this.d = null;
467
+ this.m = null;
468
+ this.y = null;
469
+ }
470
+ else {
471
+ const formatted = this.datePipe.transform(date, 'MM/dd/yyyy');
472
+ if (formatted !== undefined && formatted !== null) {
473
+ const [month, day, year] = formatted.split('/').map(Number);
474
+ this.m = month,
475
+ this.y = year;
476
+ this.d = day;
477
+ }
478
+ }
479
+ }
480
+ }
481
+ onmodelchange(e, t) {
482
+ if (t == "d") {
483
+ this.d = e.value;
484
+ }
485
+ if (t == "m") {
486
+ this.m = e.value;
487
+ }
488
+ if (t == "y") {
489
+ this.y = e.value;
490
+ }
491
+ this.setdt();
492
+ }
493
+ ngOnInit() {
494
+ this.populateYears();
495
+ this.populateMonths();
496
+ this.populateDays(31);
497
+ }
498
+ setdt() {
499
+ if (this.d == 0 || this.m == 0 || this.y == 0) {
500
+ this.value = "";
501
+ }
502
+ else {
503
+ this.value = this.m + " - " + this.d + " - " + this.y;
504
+ }
505
+ this.onChange(this.value);
506
+ this.onTouched();
507
+ }
508
+ onDateChangeFromCalender(date) {
509
+ if (!date)
510
+ return;
511
+ const formatted = this.datePipe.transform(date, 'MM/dd/yyyy');
512
+ if (formatted !== undefined && formatted !== null) {
513
+ const [month, day, year] = formatted.split('/').map(Number);
514
+ this.m = month,
515
+ this.y = year;
516
+ this.d = day;
517
+ }
518
+ this.setdt();
519
+ this.isOpen = false;
520
+ this.cdr.detectChanges();
521
+ }
522
+ populateMonths() {
523
+ this.months = [
524
+ { value: "1", name: 'January' },
525
+ { value: "2", name: 'February' },
526
+ { value: "3", name: 'March' },
527
+ { value: "4", name: 'April' },
528
+ { value: "5", name: 'May' },
529
+ { value: "6", name: 'June' },
530
+ { value: "7", name: 'July' },
531
+ { value: "8", name: 'August' },
532
+ { value: "9", name: 'September' },
533
+ { value: "10", name: 'October' },
534
+ { value: "11", name: 'November' },
535
+ { value: "12", name: 'December' }
536
+ ];
537
+ }
538
+ populateYears(start = (this.currentYear - 95), end = 1 + new Date().getFullYear()) {
539
+ for (let year = end; year >= start; year--) {
540
+ this.years.push({ value: year.toString() });
541
+ }
542
+ }
543
+ populateDays(start = 1, end = 31) {
544
+ for (let i = 1; i < 32; i++) {
545
+ this.days.push({ value: i.toString() });
546
+ }
547
+ }
548
+ gettxt() {
549
+ if (this.datavalid()) {
550
+ return this.value;
551
+ }
552
+ else {
553
+ return this.label;
554
+ }
555
+ }
556
+ toggleDropdown() {
557
+ this.isOpen = !this.isOpen;
558
+ }
559
+ clear() {
560
+ this.value = "";
561
+ this.onChange(this.value);
562
+ this.onTouched();
563
+ }
564
+ closeDropdown() {
565
+ this.isOpen = false;
566
+ }
567
+ datavalid() {
568
+ if (this.value === undefined || this.value == null || this.value == "" || this.value == "0") {
569
+ return false;
570
+ }
571
+ else {
572
+ return true;
573
+ }
574
+ }
575
+ // Functions to call when the value changes or the control is touched
576
+ onChange = () => { };
577
+ onTouched = () => { };
578
+ // Registers a callback function that is called when the control's value changes in the UI
579
+ registerOnChange(fn) {
580
+ this.isOpen = false;
581
+ this.onChange = fn;
582
+ }
583
+ // Registers a callback function that is called whenever the control receives a touch event
584
+ registerOnTouched(fn) {
585
+ this.onTouched = fn;
586
+ }
587
+ // Sets the disabled state of the control
588
+ setDisabledState(isDisabled) {
589
+ this.disabled = isDisabled;
590
+ }
591
+ onSelectionChange(v) {
592
+ this.isOpen = false;
593
+ this.selectedtxt = v.label;
594
+ const newValue = v.value;
595
+ this.value = newValue;
596
+ this.onChange(newValue); // Notify Angular forms about the change
597
+ this.onTouched(); // Mark the control as touched
598
+ }
599
+ onOutsideClick(event) {
600
+ if (!this.el.nativeElement.contains(event.target)) {
601
+ this.isOpen = false;
602
+ }
603
+ }
604
+ getclearclass() {
605
+ if (this.appearance == "outline") {
606
+ if (this.datavalid() && this.showclear) {
607
+ return "input-outline-filter-img";
608
+ }
609
+ }
610
+ else {
611
+ return "input-mat-img ";
612
+ }
613
+ return "input-mat";
614
+ }
615
+ getclass() {
616
+ if (this.appearance == "outline") {
617
+ let css = " d-flex gap-3";
618
+ if (!this.filter) {
619
+ css = "input-outline";
620
+ }
621
+ if (this.filter) {
622
+ if (!this.datavalid()) {
623
+ css = "input-outline";
624
+ }
625
+ }
626
+ if (this.filter) {
627
+ if (this.datavalid()) {
628
+ css = "input-outline-filter ";
629
+ }
630
+ }
631
+ if (!this.showclear) {
632
+ css = "input-outline";
633
+ }
634
+ return css + " input d-flex gap-3 ";
635
+ }
636
+ else {
637
+ return "input-mat d-flex gap-3 ";
638
+ }
639
+ }
640
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHODate, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
641
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: GHODate, isStandalone: true, selector: "gho-date", inputs: { options: "options", placeholder: "placeholder", showclear: "showclear", appearance: "appearance", label: "label", filter: "filter" }, host: { listeners: { "document:click": "onOutsideClick($event)" } }, providers: [provideNativeDateAdapter(), DatePipe,
642
+ {
643
+ provide: NG_VALUE_ACCESSOR,
644
+ useExisting: forwardRef(() => GHODate),
645
+ multi: true
646
+ }], ngImport: i0, template: `
647
+ <div style="height: 55px !important;">
648
+ <div style="height: 18px !important;">
649
+ @if(datavalid())
650
+ {
651
+ <div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
652
+ </div>
653
+ }
654
+ </div>
655
+ <table style="width: 100%;">
656
+ <tr>
657
+ <td>
658
+ <div (click)="toggleDropdown()" [ngClass]="getclass()">
659
+ <span>{{ gettxt()}}</span>
660
+ <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i>
661
+ </div>
662
+ </td>
663
+ @if(filter && datavalid() )
664
+ {
665
+ <td>
666
+ <div (click)="clear()" [ngClass]="getclearclass()">
667
+ <i class="bi bi-x-lg "></i>
668
+ </div>
669
+ </td> }
670
+
671
+
672
+ </tr>
673
+ </table>
674
+ </div>
675
+ @if(isOpen){
676
+ <div class="dropdown-menu show">
677
+ <table>
678
+ <tr class="bb">
679
+ <td class="pl10">
680
+ <gho-dropdown [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
681
+ label="Month"></gho-dropdown>
682
+ </td>
683
+ <td class="">
684
+ <gho-dropdown [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
685
+ label="Day"></gho-dropdown>
686
+ </td>
687
+ <td class="pr10">
688
+ <gho-dropdown [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
689
+ label="Year"></gho-dropdown>
690
+
691
+ </td>
692
+
693
+ <td class="pr10 pointer" style="width: 30px; padding-top: 10px;">
694
+ <div (click)="isOpen=false" >
695
+ <i class="bi bi-check2 bold"></i>
696
+ </div>
697
+ </td>
698
+ </tr>
699
+
700
+ <tr>
701
+ <td colspan="5">
702
+ <mat-calendar (selectedChange)="onDateChangeFromCalender($event)">
703
+ </mat-calendar>
704
+ </td>
705
+ </tr>
706
+
707
+ </table>
708
+
709
+ </div>
710
+ }
711
+ `, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: GHOdropdown, selector: "gho-dropdown", inputs: ["options", "placeholder", "showclear", "appearance", "label", "filter", "sharedValue"], outputs: ["sharedValueChange", "selectionchange"] }, { kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "ngmodule", type: MatCardModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
712
+ }
713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHODate, decorators: [{
714
+ type: Component,
715
+ args: [{ selector: 'gho-date', standalone: true, imports: [CommonModule, FormsModule, GHOdropdown, MatCalendar, MatDatepickerModule,
716
+ MatCardModule, DatePipe], template: `
717
+ <div style="height: 55px !important;">
718
+ <div style="height: 18px !important;">
719
+ @if(datavalid())
720
+ {
721
+ <div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
722
+ </div>
723
+ }
724
+ </div>
725
+ <table style="width: 100%;">
726
+ <tr>
727
+ <td>
728
+ <div (click)="toggleDropdown()" [ngClass]="getclass()">
729
+ <span>{{ gettxt()}}</span>
730
+ <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i>
731
+ </div>
732
+ </td>
733
+ @if(filter && datavalid() )
734
+ {
735
+ <td>
736
+ <div (click)="clear()" [ngClass]="getclearclass()">
737
+ <i class="bi bi-x-lg "></i>
738
+ </div>
739
+ </td> }
740
+
741
+
742
+ </tr>
743
+ </table>
744
+ </div>
745
+ @if(isOpen){
746
+ <div class="dropdown-menu show">
747
+ <table>
748
+ <tr class="bb">
749
+ <td class="pl10">
750
+ <gho-dropdown [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
751
+ label="Month"></gho-dropdown>
752
+ </td>
753
+ <td class="">
754
+ <gho-dropdown [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
755
+ label="Day"></gho-dropdown>
756
+ </td>
757
+ <td class="pr10">
758
+ <gho-dropdown [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
759
+ label="Year"></gho-dropdown>
760
+
761
+ </td>
762
+
763
+ <td class="pr10 pointer" style="width: 30px; padding-top: 10px;">
764
+ <div (click)="isOpen=false" >
765
+ <i class="bi bi-check2 bold"></i>
766
+ </div>
767
+ </td>
768
+ </tr>
769
+
770
+ <tr>
771
+ <td colspan="5">
772
+ <mat-calendar (selectedChange)="onDateChangeFromCalender($event)">
773
+ </mat-calendar>
774
+ </td>
775
+ </tr>
776
+
777
+ </table>
778
+
779
+ </div>
780
+ }
781
+ `, providers: [provideNativeDateAdapter(), DatePipe,
782
+ {
783
+ provide: NG_VALUE_ACCESSOR,
784
+ useExisting: forwardRef(() => GHODate),
785
+ multi: true
786
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input:focus{border:1px solid #7c7b7bdf;outline:none}.input:hover{background:var(--hover)}.input-outline{border-radius:5px!important}.input-outline-filter{border-top-left-radius:5px!important;border-bottom-left-radius:5px!important;background:var(--filter)}.input-filter{background:var(--filter)}.input-outline-filter-img{padding:5px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important;background:var(--filter);border:1px solid #7c7b7bdf;cursor:pointer}.input-mat,.input-mat-img{border-bottom:1px solid #7c7b7bdf;padding:5px!important;cursor:pointer}.list-item{padding:5px 12px;cursor:pointer;font-size:14px}.filterd{background-color:var(--selected);font-weight:400;cursor:pointer}.list-item-selected{color:var(--primary);font-weight:500}.list-item:hover{background:var(--hover)}.list-panel{background-color:#fff;max-height:400px!important;overflow-y:auto}.arrow-icon{transition:transform .2s ease}.arrow-icon.rotate{transform:rotate(180deg)}.date-dropdown{min-width:280px;padding:0;border:none;border-radius:10px;transition:min-width .25s ease;overflow:hidden}.date-dropdown.custom-open{min-width:560px}.preset-panel{display:flex;flex-direction:column;background-color:#fff}.preset-item{background:transparent;border:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .15s ease}.preset-item:hover{background-color:#f1f3f5}.clear-item{color:#e63f3f;margin-top:6px}.custom-panel{background-color:#fff;border-top:1px solid #dee2e6}@media (min-width: 992px){.custom-panel{border-top:none;border-left:1px solid #dee2e6}}.form-label{font-size:12px;font-weight:500;color:#6c757d}.form-control{font-size:14px;padding:6px 10px}\n"] }]
787
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.DatePipe }], propDecorators: { options: [{
788
+ type: Input
789
+ }], placeholder: [{
790
+ type: Input
791
+ }], showclear: [{
792
+ type: Input
793
+ }], appearance: [{
794
+ type: Input
795
+ }], label: [{
796
+ type: Input
797
+ }], filter: [{
798
+ type: Input
799
+ }], onOutsideClick: [{
800
+ type: HostListener,
801
+ args: ['document:click', ['$event']]
802
+ }] } });
803
+
804
+ class GHOHelp {
805
+ data;
806
+ dialog = inject(MatDialog);
807
+ asyncAction = new EventEmitter();
808
+ triggerParentAsync() {
809
+ const actionPromise = new Promise(resolve => {
810
+ this.asyncAction.emit(resolve);
811
+ });
812
+ actionPromise.then(result => {
813
+ this.data = result;
814
+ });
815
+ }
816
+ ngOnInit() {
817
+ this.triggerParentAsync();
818
+ }
819
+ openhelp() {
820
+ const headerHeight = 80;
821
+ const dialogRef = this.dialog.open(DialogHelp, {
822
+ data: this.data,
823
+ height: `calc(100vh - ${headerHeight}px)`,
824
+ position: { right: '10', top: `${headerHeight}px` },
825
+ panelClass: 'right-dialog-panel',
826
+ enterAnimationDuration: '250ms',
827
+ exitAnimationDuration: '200ms',
828
+ });
829
+ }
830
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOHelp, deps: [], target: i0.ɵɵFactoryTarget.Component });
831
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: GHOHelp, isStandalone: true, selector: "gho-help", inputs: { data: "data" }, outputs: { asyncAction: "asyncAction" }, ngImport: i0, template: `<div class="right pointer" (click)="openhelp()" style="vertical-align: middle;">
832
+ <i class="bi bi-patch-question fs-5 pointer"></i>
833
+ </div>
834
+ `, isInline: true, styles: [".right-dialog-panel .mdc-dialog__surface{height:100%!important;padding:10;border-radius:0!important;animation:slideInRight .5s ease-out}.right-dialog-panel .mdc-dialog__surface .w100{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }] });
835
+ }
836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOHelp, decorators: [{
837
+ type: Component,
838
+ args: [{ selector: 'gho-help', standalone: true, imports: [CommonModule, FormsModule], template: `<div class="right pointer" (click)="openhelp()" style="vertical-align: middle;">
839
+ <i class="bi bi-patch-question fs-5 pointer"></i>
840
+ </div>
841
+ `, styles: [".right-dialog-panel .mdc-dialog__surface{height:100%!important;padding:10;border-radius:0!important;animation:slideInRight .5s ease-out}.right-dialog-panel .mdc-dialog__surface .w100{width:100%}\n"] }]
842
+ }], propDecorators: { data: [{
843
+ type: Input
844
+ }], asyncAction: [{
845
+ type: Output
846
+ }] } });
847
+ class DialogHelp {
848
+ dialogRef = inject((MatDialogRef));
849
+ data = inject(MAT_DIALOG_DATA);
850
+ innerhtml = "No help available now";
851
+ title = "Topic not available";
852
+ ngOnInit() {
853
+ this.title = this.data.t;
854
+ this.innerhtml = this.data.m;
855
+ }
856
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DialogHelp, deps: [], target: i0.ɵɵFactoryTarget.Component });
857
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: DialogHelp, isStandalone: true, selector: "dialog-help", ngImport: i0, template: `
858
+ <div class=w100>
859
+ <table class="w100">
860
+ <tr>
861
+ <td class="section-title"> {{title}}
862
+ </td>
863
+ <td class="section-title right" >
864
+ <i mat-dialog-close class="right bi-x-lg bold pointer"></i>
865
+ </td>
866
+ </tr>
867
+ </table>
868
+
869
+ <div class="p10" [innerHTML]="innerhtml"></div>
870
+
871
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
872
+ }
873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DialogHelp, decorators: [{
874
+ type: Component,
875
+ args: [{
876
+ selector: 'dialog-help',
877
+ template: `
878
+ <div class=w100>
879
+ <table class="w100">
880
+ <tr>
881
+ <td class="section-title"> {{title}}
882
+ </td>
883
+ <td class="section-title right" >
884
+ <i mat-dialog-close class="right bi-x-lg bold pointer"></i>
885
+ </td>
886
+ </tr>
887
+ </table>
888
+
889
+ <div class="p10" [innerHTML]="innerhtml"></div>
890
+
891
+ `,
892
+ imports: [FormsModule, MatButtonModule, MatDialogClose,
893
+ ],
894
+ }]
895
+ }] });
896
+
897
+ /*
898
+ * Public API Surface of ghocomps
899
+ */
900
+
901
+ /**
902
+ * Generated bundle index. Do not edit.
903
+ */
904
+
905
+ export { DialogHelp, GHODate, GHOHelp, GHOInput, GHOdropdown };
906
+ //# sourceMappingURL=sk-ghocomps.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sk-ghocomps.mjs","sources":["../../../projects/ghocomps/src/lib/dropdown.ts","../../../projects/ghocomps/src/lib/input.ts","../../../projects/ghocomps/src/lib/date.ts","../../../projects/ghocomps/src/lib/helps.ts","../../../projects/ghocomps/src/public-api.ts","../../../projects/ghocomps/src/sk-ghocomps.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input,\r\n NgZone, Output, SimpleChanges,\r\n OnChanges\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'gho-dropdown',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, FormsModule],\r\n template: `\r\n<div style=\"height: 55px !important;\">\r\n <div style=\"height: 18px !important;\">\r\n @if(datavalid())\r\n {\r\n <div [ngStyle]=\"{ margin: '-3px 5px' }\" class=\"input-label\">{{label}}\r\n </div>\r\n }\r\n </div>\r\n <table style=\"width: 100%;\">\r\n <tr>\r\n <td>\r\n <div (click)=\"toggleDropdown()\" [ngClass]=\"getclass()\">\r\n <span>{{selectedtxt}}</span>\r\n <i class=\"bi bi-caret-down-fill arrow-icon\" [class.rotate]=\"isOpen\"></i>\r\n </div>\r\n </td>\r\n @if(filter && datavalid() )\r\n {\r\n <td>\r\n <div (click)=\"clear()\" [ngClass]=\"getclearclass()\">\r\n <i class=\"bi bi-x-lg \"></i>\r\n </div>\r\n </td> } \r\n </tr>\r\n </table>\r\n</div>\r\n@if(isOpen){\r\n<div class=\"dropdown-menu show \">\r\n <div class=\"list-panel\">\r\n @for (dlitem of listdata; track dlitem) {\r\n <div class=\"list-item \" (click)=\"onSelectionChange(dlitem)\" [class.list-item-selected]=\"dlitem.value == sharedValue\">\r\n <table class=\"w100\">\r\n <tr>\r\n <td>\r\n {{ dlitem.label }}\r\n </td>\r\n @if(dlitem.value == sharedValue){\r\n <td class=\"right\" style=\"width:30px;\"> <i class=\"bi bi-check2\"></i> </td>}\r\n </tr>\r\n </table>\r\n </div>\r\n }\r\n </div>\r\n <table class=w100>\r\n <tr class=\"bt \">\r\n <td class=\"p10\" (click)=\"clear()\"><span matButton class=\"ghoddl-btn \"> Clear </span> </td>\r\n <td class=\"p10\" (click)=\"closeDropdown()\"><span matButton class=\"ghoddl-btn \"> Cancel </span> </td>\r\n </tr>\r\n </table>\r\n</div>\r\n}\r\n`,\r\n styleUrl: './input.css',\r\n})\r\nexport class GHOdropdown implements OnChanges {\r\n constructor(private el: ElementRef, private cdr: ChangeDetectorRef, private ngZone: NgZone) { }\r\n @Input() options: any[] = [];\r\n @Input() placeholder: string = 'Select an option';\r\n @Input() showclear: boolean = true;\r\n @Input() appearance: string = \"outline\"\r\n @Input() label: string = \"\";\r\n @Input() filter: boolean = true;\r\n listdata: { label: string; value: string }[] = [];\r\n isOpen = false;\r\n selectedtxt: string = \"\";\r\n\r\n @Input() sharedValue: string = '';\r\n @Output() sharedValueChange = new EventEmitter<string>();\r\n @Output() selectionchange = new EventEmitter<([])>();\r\n\r\n\r\n\r\n onModelChange(v: string): void {\r\n this.sharedValue = v;\r\n this.sharedValueChange.emit(v);\r\n this.setlabel();\r\n }\r\n setlabel() {\r\n if (this.listdata.length > 0) {\r\n for (let i: number = 0; i < this.listdata.length; i++) {\r\n\r\n if (this.sharedValue &&this.listdata[i].value.toString() == this.sharedValue.toString()) {\r\n this.selectedtxt = this.listdata[i].label\r\n break;\r\n }\r\n else {\r\n this.selectedtxt = this.label\r\n }\r\n }\r\n }\r\n else { this.selectedtxt = this.label }\r\n }\r\n\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['options']) {\r\n this.listdata = []; debugger;\r\n const allKeys = Array.from(\r\n new Set(this.options.flatMap(item => Object.keys(item)))\r\n );\r\n for (let i: number = 0; i < this.options.length; i++) {\r\n if (allKeys.length == 1) {\r\n this.listdata.push({ label: this.options[i][allKeys[0]], value: this.options[i][allKeys[0]] })\r\n }\r\n else {\r\n this.listdata.push({ label: this.options[i][allKeys[1]], value: this.options[i][allKeys[0]] })\r\n }\r\n }\r\n this.setlabel();\r\n }\r\n if (changes['sharedValue']) {\r\n this.setlabel();\r\n }\r\n }\r\n\r\n\r\n toggleDropdown(): void {\r\n this.isOpen = !this.isOpen;\r\n }\r\n\r\n clear() {\r\n this.onModelChange(\"\")\r\n this.isOpen = false;\r\n }\r\n\r\n closeDropdown(): void {\r\n this.isOpen = false;\r\n }\r\n\r\n onSelectionChange(v: any) {\r\n this.isOpen = false;\r\n this.onModelChange(v.value);\r\n this.selectionchange.emit(v);\r\n }\r\n\r\n datavalid() {\r\n if (this.label != this.selectedtxt) { return true }\r\n if (this.label == this.selectedtxt) { return false }\r\n return false;\r\n }\r\n\r\n @HostListener('document:click', ['$event'])\r\n onOutsideClick(event: Event): void {\r\n if (!this.el.nativeElement.contains(event.target)) {\r\n this.isOpen = false;\r\n }\r\n }\r\n\r\n\r\n getclearclass() {\r\n if (this.appearance == \"outline\") {\r\n if (this.datavalid() && this.showclear) { return \"input-outline-filter-img\"; }\r\n }\r\n else { return \"input-mat-img \"; }\r\n return \"input-mat\";\r\n }\r\n getclass() {\r\n if (this.appearance == \"outline\") {\r\n let css = \" d-flex gap-3\"\r\n if (!this.filter) { css = \"input-outline\" }\r\n\r\n if (this.filter) { if (!this.datavalid()) { css = \"input-outline\" } }\r\n\r\n if (this.filter) { if (this.datavalid()) { css = \"input-outline-filter \" } }\r\n\r\n if (!this.showclear) { css = \"input-outline\" }\r\n\r\n return css + \" input d-flex gap-3 \"\r\n }\r\n else {\r\n return \"input-mat d-flex gap-3 \"\r\n }\r\n }\r\n\r\n}","import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, model, ElementRef, EventEmitter, Input, OnInit, Output, SimpleChanges }\r\n from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { DatePipe } from '@angular/common';\r\nexport interface DateFilterResult {\r\n label: string;\r\n value: string;\r\n from?: string | null;\r\n to?: string | null;\r\n}\r\n\r\n@Component({\r\n selector: 'gho-input',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, ],\r\n template: `<div style=\"height: 55px !important;\">\r\n <div style=\"height: 18px !important;\">\r\n @if(datavalid())\r\n {\r\n <div [ngStyle]=\"{ margin: '-2px 5px' }\" class=\"input-label\">{{label}}\r\n </div>\r\n }\r\n\r\n </div>\r\n <div >\r\n <table style=\"width: 100%;\">\r\n <tr>\r\n <td> <input type=\"text\" [placeholder]=\"placeholder\" [ngModel]=\"sharedValue\" (input)=\"onInput($event)\"\r\n [ngClass]=\"getclass()\"></td>\r\n @if(filter && datavalid() )\r\n {\r\n <td>\r\n <div (click)=\"clear()\" [ngClass]=\"getclearclass()\">\r\n <i class=\"bi bi-x-lg \"></i>\r\n </div>\r\n </td> }\r\n </tr>\r\n </table>\r\n </div>\r\n</div>`,\r\n styleUrl: './input.css',\r\n providers: [DatePipe],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class GHOInput implements OnInit {\r\n constructor(private el: ElementRef, private cdr: ChangeDetectorRef, private datePipe: DatePipe) { }\r\n @Input() list: [] = [];\r\n @Input() label: string = \"\";\r\n @Input() appearance: string = \"outline\"\r\n @Input() filter: boolean = false;\r\n @Input() showclear: boolean = false;\r\n placeholder: string = \"\";\r\n @Input() sharedValue: string = '';\r\n @Output() sharedValueChange = new EventEmitter<string>();\r\n\r\n\r\n onInput(event: Event): void {\r\n this.sharedValue = (event.target as HTMLInputElement).value\r\n this.sharedValueChange.emit(this.sharedValue);\r\n this.setlabel();\r\n }\r\n\r\n clear()\r\n {\r\n this.sharedValue = \"\"\r\n this.sharedValueChange.emit(this.sharedValue);\r\n this.setlabel();\r\n }\r\n\r\n setlabel() {\r\n if (this.sharedValue.length > 0) {\r\n this.placeholder = \"\"\r\n }\r\n else { this.placeholder = this.label }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['sharedValue']) {\r\n this.setlabel();\r\n }\r\n }\r\n\r\n getclass() {\r\n if (this.appearance == \"outline\") {\r\n let css = \" d-flex gap-3\"\r\n if (!this.filter) { css = \"input-outline\" }\r\n\r\n if (this.filter) { if (!this.datavalid()) { css = \"input-outline\" } }\r\n\r\n if (this.filter) { if (this.datavalid() && this.showclear) { css = \"input-outline-filter input-filter\" } }\r\n\r\n if (this.filter) { if (this.datavalid() && !this.showclear) { css = \"input-outline input-filter \" } }\r\n\r\n\r\n if (!this.showclear) { css = \"input-outline\" }\r\n\r\n return css + \" input\"\r\n }\r\n else {\r\n return \"input-mat d-flex gap-3 \"\r\n }\r\n }\r\n \r\n getclearclass() {\r\n if (this.appearance == \"outline\") {\r\n if (this.datavalid() && this.showclear) { return \"input-outline-filter-img\"; }\r\n }\r\n else { return \"input-mat-img \"; }\r\n return \"input-mat\";\r\n }\r\n\r\n datavalid() {\r\n if (this.placeholder==this.label) {\r\n return false;\r\n }\r\n else { return true; }\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, HostListener,\r\n Input, OnInit, SimpleChanges\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { GHOdropdown } from \"./dropdown\";\r\nimport { MatCardModule } from \"@angular/material/card\";\r\nimport { MatCalendar } from \"@angular/material/datepicker\";\r\nimport { provideNativeDateAdapter } from '@angular/material/core';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { DatePipe } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'gho-date',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, GHOdropdown, MatCalendar, MatDatepickerModule,\r\n MatCardModule, DatePipe],\r\n template:`\r\n <div style=\"height: 55px !important;\">\r\n <div style=\"height: 18px !important;\">\r\n @if(datavalid())\r\n {\r\n <div [ngStyle]=\"{ margin: '-3px 5px' }\" class=\"input-label\">{{label}}\r\n </div>\r\n }\r\n </div>\r\n <table style=\"width: 100%;\">\r\n <tr>\r\n <td>\r\n <div (click)=\"toggleDropdown()\" [ngClass]=\"getclass()\">\r\n <span>{{ gettxt()}}</span>\r\n <i class=\"bi bi-caret-down-fill arrow-icon\" [class.rotate]=\"isOpen\"></i>\r\n </div>\r\n </td>\r\n @if(filter && datavalid() )\r\n {\r\n <td>\r\n <div (click)=\"clear()\" [ngClass]=\"getclearclass()\">\r\n <i class=\"bi bi-x-lg \"></i>\r\n </div>\r\n </td> }\r\n\r\n\r\n </tr>\r\n </table>\r\n </div>\r\n @if(isOpen){\r\n <div class=\"dropdown-menu show\">\r\n <table>\r\n <tr class=\"bb\">\r\n <td class=\"pl10\">\r\n <gho-dropdown [options]=\"months\" [(sharedValue)]=\"m\" (selectionchange)=\"onmodelchange($event,'m')\" [filter]=false\r\n label=\"Month\"></gho-dropdown>\r\n </td>\r\n <td class=\"\">\r\n <gho-dropdown [options]=\"days\" [(sharedValue)]=\"d\" (selectionchange)=\"onmodelchange($event,'d')\" [filter]=false\r\n label=\"Day\"></gho-dropdown>\r\n </td>\r\n <td class=\"pr10\">\r\n <gho-dropdown [options]=\"years\" [(sharedValue)]=\"y\" (selectionchange)=\"onmodelchange($event,'y')\" [filter]=false\r\n label=\"Year\"></gho-dropdown>\r\n\r\n </td>\r\n \r\n <td class=\"pr10 pointer\" style=\"width: 30px; padding-top: 10px;\">\r\n <div (click)=\"isOpen=false\" >\r\n <i class=\"bi bi-check2 bold\"></i>\r\n </div>\r\n </td>\r\n </tr>\r\n\r\n <tr>\r\n <td colspan=\"5\">\r\n <mat-calendar (selectedChange)=\"onDateChangeFromCalender($event)\">\r\n </mat-calendar>\r\n </td>\r\n </tr>\r\n\r\n </table>\r\n\r\n </div>\r\n }\r\n `,\r\n styleUrl: './input.css',\r\n providers: [provideNativeDateAdapter(), DatePipe,\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => GHODate),\r\n multi: true\r\n }],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class GHODate implements ControlValueAccessor, OnInit {\r\n constructor(private el: ElementRef, private cdr: ChangeDetectorRef,\r\n private datePipe: DatePipe) { }\r\n @Input() options: any[] = [];\r\n @Input() placeholder: string = 'Select an option';\r\n @Input() showclear: boolean = true;\r\n @Input() appearance: string = \"outline\"\r\n @Input() label: string = \"\";\r\n @Input() filter: boolean = true;\r\n public value: string = \"\";\r\n public disabled: boolean = false;\r\n listdata: { label: string; value: string }[] = [];\r\n isOpen = false;\r\n selectedtxt: string = \"\";\r\n days: { value: string }[] = []\r\n years: { value: string }[] = [];\r\n months: { value: string, name: string }[] = [];\r\n currentYear: number = new Date().getFullYear();\r\n d: any;\r\n m: any;\r\n y: any;\r\n\r\n\r\n // Writes a new value to the element\r\n writeValue(value: any): void {\r\n this.value = value;\r\n if (this.value !== undefined && this.value !== null) {\r\n const date = new Date(value);\r\n if (!date) {\r\n this.d = null;\r\n this.m = null;\r\n this.y = null;\r\n }\r\n else {\r\n const formatted = this.datePipe.transform(date, 'MM/dd/yyyy');\r\n if (formatted !== undefined && formatted !== null) {\r\n const [month, day, year] = formatted.split('/').map(Number);\r\n this.m = month,\r\n this.y = year;\r\n this.d = day\r\n }\r\n }\r\n }\r\n }\r\n\r\n onmodelchange(e: any, t: any) {\r\n if (t == \"d\") { this.d = e.value }\r\n if (t == \"m\") { this.m = e.value }\r\n if (t == \"y\") { this.y = e.value }\r\n this.setdt();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.populateYears();\r\n this.populateMonths();\r\n this.populateDays(31);\r\n }\r\n\r\n\r\n setdt() {\r\n if (this.d == 0 || this.m == 0 || this.y == 0) { this.value = \"\" }\r\n else {\r\n this.value = this.m + \" - \" + this.d + \" - \" + this.y\r\n }\r\n this.onChange(this.value);\r\n this.onTouched();\r\n }\r\n\r\n onDateChangeFromCalender(date: Date | null) {\r\n if (!date) return;\r\n const formatted = this.datePipe.transform(date, 'MM/dd/yyyy');\r\n if (formatted !== undefined && formatted !== null) {\r\n const [month, day, year] = formatted.split('/').map(Number);\r\n this.m = month,\r\n this.y = year;\r\n this.d = day\r\n }\r\n this.setdt()\r\n this.isOpen = false;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n populateMonths() {\r\n this.months = [\r\n { value: \"1\", name: 'January' },\r\n { value: \"2\", name: 'February' },\r\n { value: \"3\", name: 'March' },\r\n { value: \"4\", name: 'April' },\r\n { value: \"5\", name: 'May' },\r\n { value: \"6\", name: 'June' },\r\n { value: \"7\", name: 'July' },\r\n { value: \"8\", name: 'August' },\r\n { value: \"9\", name: 'September' },\r\n { value: \"10\", name: 'October' },\r\n { value: \"11\", name: 'November' },\r\n { value: \"12\", name: 'December' }\r\n ];\r\n }\r\n populateYears(start = (this.currentYear - 95), end = 1 + new Date().getFullYear()) {\r\n for (let year = end; year >= start; year--) {\r\n this.years.push({ value: year.toString() });\r\n }\r\n }\r\n\r\n populateDays(start = 1, end = 31) {\r\n for (let i: number = 1; i < 32; i++) {\r\n this.days.push({ value: i.toString() });\r\n }\r\n }\r\n\r\n gettxt() {\r\n if (this.datavalid()) { return this.value }\r\n else { return this.label }\r\n }\r\n\r\n toggleDropdown(): void {\r\n this.isOpen = !this.isOpen;\r\n }\r\n\r\n clear() {\r\n this.value = \"\";\r\n this.onChange(this.value);\r\n this.onTouched();\r\n }\r\n\r\n closeDropdown(): void {\r\n this.isOpen = false;\r\n }\r\n\r\n datavalid() {\r\n if (this.value === undefined || this.value == null || this.value == \"\" || this.value == \"0\") {\r\n return false;\r\n }\r\n else { return true; }\r\n }\r\n\r\n\r\n // Functions to call when the value changes or the control is touched\r\n onChange: any = () => { };\r\n onTouched: any = () => { };\r\n\r\n // Registers a callback function that is called when the control's value changes in the UI\r\n registerOnChange(fn: any): void {\r\n this.isOpen = false;\r\n this.onChange = fn;\r\n }\r\n\r\n // Registers a callback function that is called whenever the control receives a touch event\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n\r\n\r\n // Sets the disabled state of the control\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n }\r\n\r\n\r\n onSelectionChange(v: any) {\r\n this.isOpen = false;\r\n this.selectedtxt = v.label;\r\n const newValue = v.value;\r\n this.value = newValue;\r\n this.onChange(newValue); // Notify Angular forms about the change\r\n this.onTouched(); // Mark the control as touched\r\n }\r\n\r\n\r\n\r\n @HostListener('document:click', ['$event'])\r\n onOutsideClick(event: Event): void {\r\n if (!this.el.nativeElement.contains(event.target)) {\r\n this.isOpen = false;\r\n }\r\n }\r\n\r\n\r\n getclearclass() {\r\n if (this.appearance == \"outline\") {\r\n if (this.datavalid() && this.showclear) { return \"input-outline-filter-img\"; }\r\n }\r\n else { return \"input-mat-img \"; }\r\n return \"input-mat\";\r\n }\r\n getclass() {\r\n if (this.appearance == \"outline\") {\r\n let css = \" d-flex gap-3\"\r\n if (!this.filter) { css = \"input-outline\" }\r\n\r\n if (this.filter) { if (!this.datavalid()) { css = \"input-outline\" } }\r\n\r\n if (this.filter) { if (this.datavalid()) { css = \"input-outline-filter \" } }\r\n\r\n if (!this.showclear) { css = \"input-outline\" }\r\n\r\n return css + \" input d-flex gap-3 \"\r\n }\r\n else {\r\n return \"input-mat d-flex gap-3 \"\r\n }\r\n }\r\n\r\n}","import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport {\r\n MAT_DIALOG_DATA, MatDialog, MatDialogClose, MatDialogRef,\r\n} from '@angular/material/dialog';\r\nimport { CommonModule, } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'gho-help',\r\n standalone: true,\r\n imports: [ CommonModule,FormsModule],\r\n template: `<div class=\"right pointer\" (click)=\"openhelp()\" style=\"vertical-align: middle;\">\r\n <i class=\"bi bi-patch-question fs-5 pointer\"></i>\r\n </div> \r\n `,\r\n styles: `\r\n .right-dialog-panel .mdc-dialog__surface {\r\n height: 100% !important;\r\n padding: 10;\r\n border-radius: 0 !important;\r\n animation: slideInRight 0.5s ease-out;\r\n .w100\r\n {width:100%}\r\n\r\n }`\r\n})\r\nexport class GHOHelp implements OnInit {\r\n @Input() data: any;\r\n dialog = inject(MatDialog);\r\n @Output() asyncAction = new EventEmitter<(result: any) => void>();\r\n \r\n triggerParentAsync() {\r\n const actionPromise = new Promise<string>(resolve => {\r\n this.asyncAction.emit(resolve);\r\n });\r\n actionPromise.then(result => {\r\n this.data = result;\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n this.triggerParentAsync();\r\n }\r\n openhelp() {\r\n const headerHeight = 80;\r\n const dialogRef = this.dialog.open(DialogHelp, {\r\n data: this.data,\r\n height: `calc(100vh - ${headerHeight}px)`,\r\n position: { right: '10', top: `${headerHeight}px` },\r\n panelClass: 'right-dialog-panel',\r\n enterAnimationDuration: '250ms',\r\n exitAnimationDuration: '200ms',\r\n });\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'dialog-help',\r\n template: `\r\n <div class=w100>\r\n <table class=\"w100\">\r\n <tr>\r\n <td class=\"section-title\"> {{title}}\r\n </td>\r\n <td class=\"section-title right\" >\r\n <i mat-dialog-close class=\"right bi-x-lg bold pointer\"></i>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <div class=\"p10\" [innerHTML]=\"innerhtml\"></div> \r\n \r\n `,\r\n imports: [FormsModule, MatButtonModule, MatDialogClose,\r\n ],\r\n})\r\nexport class DialogHelp {\r\n readonly dialogRef = inject(MatDialogRef<DialogHelp>);\r\n data = inject(MAT_DIALOG_DATA);\r\n innerhtml: string = \"No help available now\"\r\n title: string = \"Topic not available\"\r\n\r\n ngOnInit(): void {\r\n this.title = this.data.t;\r\n this.innerhtml = this.data.m;\r\n }\r\n\r\n}","/*\r\n * Public API Surface of ghocomps\r\n */\r\n\r\nexport * from './lib/dropdown';\r\nexport * from './lib/input';\r\nexport * from './lib/date';\r\nexport * from './lib/helps';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAoEa,WAAW,CAAA;AACF,IAAA,EAAA;AAAwB,IAAA,GAAA;AAAgC,IAAA,MAAA;AAA5E,IAAA,WAAA,CAAoB,EAAc,EAAU,GAAsB,EAAU,MAAc,EAAA;QAAtE,IAAA,CAAA,EAAE,GAAF,EAAE;QAAsB,IAAA,CAAA,GAAG,GAAH,GAAG;QAA6B,IAAA,CAAA,MAAM,GAAN,MAAM;IAAY;IACrF,OAAO,GAAU,EAAE;IACnB,WAAW,GAAW,kBAAkB;IACxC,SAAS,GAAY,IAAI;IACzB,UAAU,GAAW,SAAS;IAC9B,KAAK,GAAW,EAAE;IAClB,MAAM,GAAY,IAAI;IAC/B,QAAQ,GAAuC,EAAE;IACjD,MAAM,GAAG,KAAK;IACd,WAAW,GAAW,EAAE;IAEf,WAAW,GAAW,EAAE;AACvB,IAAA,iBAAiB,GAAG,IAAI,YAAY,EAAU;AAC9C,IAAA,eAAe,GAAG,IAAI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AA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;AAcX,EAAA,CAAA;AACC,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc;AACrD,qBAAA;AACJ,iBAAA;;;AC5ED;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,153 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnChanges, ElementRef, ChangeDetectorRef, NgZone, EventEmitter, SimpleChanges, OnInit } from '@angular/core';
3
+ import { DatePipe } from '@angular/common';
4
+ import { ControlValueAccessor } from '@angular/forms';
5
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
6
+
7
+ declare class GHOdropdown implements OnChanges {
8
+ private el;
9
+ private cdr;
10
+ private ngZone;
11
+ constructor(el: ElementRef, cdr: ChangeDetectorRef, ngZone: NgZone);
12
+ options: any[];
13
+ placeholder: string;
14
+ showclear: boolean;
15
+ appearance: string;
16
+ label: string;
17
+ filter: boolean;
18
+ listdata: {
19
+ label: string;
20
+ value: string;
21
+ }[];
22
+ isOpen: boolean;
23
+ selectedtxt: string;
24
+ sharedValue: string;
25
+ sharedValueChange: EventEmitter<string>;
26
+ selectionchange: EventEmitter<[]>;
27
+ onModelChange(v: string): void;
28
+ setlabel(): void;
29
+ ngOnChanges(changes: SimpleChanges): void;
30
+ toggleDropdown(): void;
31
+ clear(): void;
32
+ closeDropdown(): void;
33
+ onSelectionChange(v: any): void;
34
+ datavalid(): boolean;
35
+ onOutsideClick(event: Event): void;
36
+ getclearclass(): "input-outline-filter-img" | "input-mat-img " | "input-mat";
37
+ getclass(): string;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<GHOdropdown, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<GHOdropdown, "gho-dropdown", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showclear": { "alias": "showclear"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "label": { "alias": "label"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "sharedValue": { "alias": "sharedValue"; "required": false; }; }, { "sharedValueChange": "sharedValueChange"; "selectionchange": "selectionchange"; }, never, never, true, never>;
40
+ }
41
+
42
+ interface DateFilterResult {
43
+ label: string;
44
+ value: string;
45
+ from?: string | null;
46
+ to?: string | null;
47
+ }
48
+ declare class GHOInput implements OnInit {
49
+ private el;
50
+ private cdr;
51
+ private datePipe;
52
+ constructor(el: ElementRef, cdr: ChangeDetectorRef, datePipe: DatePipe);
53
+ list: [];
54
+ label: string;
55
+ appearance: string;
56
+ filter: boolean;
57
+ showclear: boolean;
58
+ placeholder: string;
59
+ sharedValue: string;
60
+ sharedValueChange: EventEmitter<string>;
61
+ onInput(event: Event): void;
62
+ clear(): void;
63
+ setlabel(): void;
64
+ ngOnChanges(changes: SimpleChanges): void;
65
+ getclass(): string;
66
+ getclearclass(): "input-outline-filter-img" | "input-mat-img " | "input-mat";
67
+ datavalid(): boolean;
68
+ ngOnInit(): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<GHOInput, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<GHOInput, "gho-input", never, { "list": { "alias": "list"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "showclear": { "alias": "showclear"; "required": false; }; "sharedValue": { "alias": "sharedValue"; "required": false; }; }, { "sharedValueChange": "sharedValueChange"; }, never, never, true, never>;
71
+ }
72
+
73
+ declare class GHODate implements ControlValueAccessor, OnInit {
74
+ private el;
75
+ private cdr;
76
+ private datePipe;
77
+ constructor(el: ElementRef, cdr: ChangeDetectorRef, datePipe: DatePipe);
78
+ options: any[];
79
+ placeholder: string;
80
+ showclear: boolean;
81
+ appearance: string;
82
+ label: string;
83
+ filter: boolean;
84
+ value: string;
85
+ disabled: boolean;
86
+ listdata: {
87
+ label: string;
88
+ value: string;
89
+ }[];
90
+ isOpen: boolean;
91
+ selectedtxt: string;
92
+ days: {
93
+ value: string;
94
+ }[];
95
+ years: {
96
+ value: string;
97
+ }[];
98
+ months: {
99
+ value: string;
100
+ name: string;
101
+ }[];
102
+ currentYear: number;
103
+ d: any;
104
+ m: any;
105
+ y: any;
106
+ writeValue(value: any): void;
107
+ onmodelchange(e: any, t: any): void;
108
+ ngOnInit(): void;
109
+ setdt(): void;
110
+ onDateChangeFromCalender(date: Date | null): void;
111
+ populateMonths(): void;
112
+ populateYears(start?: number, end?: number): void;
113
+ populateDays(start?: number, end?: number): void;
114
+ gettxt(): string;
115
+ toggleDropdown(): void;
116
+ clear(): void;
117
+ closeDropdown(): void;
118
+ datavalid(): boolean;
119
+ onChange: any;
120
+ onTouched: any;
121
+ registerOnChange(fn: any): void;
122
+ registerOnTouched(fn: any): void;
123
+ setDisabledState?(isDisabled: boolean): void;
124
+ onSelectionChange(v: any): void;
125
+ onOutsideClick(event: Event): void;
126
+ getclearclass(): "input-outline-filter-img" | "input-mat-img " | "input-mat";
127
+ getclass(): string;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<GHODate, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<GHODate, "gho-date", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showclear": { "alias": "showclear"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "label": { "alias": "label"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, true, never>;
130
+ }
131
+
132
+ declare class GHOHelp implements OnInit {
133
+ data: any;
134
+ dialog: MatDialog;
135
+ asyncAction: EventEmitter<(result: any) => void>;
136
+ triggerParentAsync(): void;
137
+ ngOnInit(): void;
138
+ openhelp(): void;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<GHOHelp, never>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<GHOHelp, "gho-help", never, { "data": { "alias": "data"; "required": false; }; }, { "asyncAction": "asyncAction"; }, never, never, true, never>;
141
+ }
142
+ declare class DialogHelp {
143
+ readonly dialogRef: MatDialogRef<any, any>;
144
+ data: any;
145
+ innerhtml: string;
146
+ title: string;
147
+ ngOnInit(): void;
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogHelp, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogHelp, "dialog-help", never, {}, {}, never, never, true, never>;
150
+ }
151
+
152
+ export { DialogHelp, GHODate, GHOHelp, GHOInput, GHOdropdown };
153
+ export type { DateFilterResult };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "sk-ghocomps",
3
+ "version": "1.1.26",
4
+ "peerDependencies": {
5
+ "@angular/common": "^20.3.0",
6
+ "@angular/core": "^20.3.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false,
12
+ "module": "fesm2022/sk-ghocomps.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/sk-ghocomps.mjs"
21
+ }
22
+ }
23
+ }