sk-ghocomps 1.1.26 → 1.4.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/fesm2022/sk-ghocomps.mjs +150 -59
- package/fesm2022/sk-ghocomps.mjs.map +1 -1
- package/index.d.ts +6 -2
- package/package.json +1 -1
package/fesm2022/sk-ghocomps.mjs
CHANGED
|
@@ -22,6 +22,7 @@ class GHOdropdown {
|
|
|
22
22
|
options = [];
|
|
23
23
|
placeholder = 'Select an option';
|
|
24
24
|
showclear = true;
|
|
25
|
+
showoptions = true;
|
|
25
26
|
appearance = "outline";
|
|
26
27
|
label = "";
|
|
27
28
|
filter = true;
|
|
@@ -113,7 +114,7 @@ class GHOdropdown {
|
|
|
113
114
|
}
|
|
114
115
|
getclass() {
|
|
115
116
|
if (this.appearance == "outline") {
|
|
116
|
-
let css = "
|
|
117
|
+
let css = "";
|
|
117
118
|
if (!this.filter) {
|
|
118
119
|
css = "input-outline";
|
|
119
120
|
}
|
|
@@ -137,7 +138,7 @@ class GHOdropdown {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
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
|
+
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", showoptions: "showoptions", 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
142
|
<div style="height: 55px !important;">
|
|
142
143
|
<div style="height: 18px !important;">
|
|
143
144
|
@if(datavalid())
|
|
@@ -146,27 +147,30 @@ class GHOdropdown {
|
|
|
146
147
|
</div>
|
|
147
148
|
}
|
|
148
149
|
</div>
|
|
149
|
-
<table
|
|
150
|
+
<table class="input-ddl">
|
|
150
151
|
<tr>
|
|
151
|
-
<td>
|
|
152
|
+
<td class="w100">
|
|
152
153
|
<div (click)="toggleDropdown()" [ngClass]="getclass()">
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
<table class="w100"><tr> <td class="w100">{{selectedtxt}}</td>
|
|
155
|
+
<td ><i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i></td>
|
|
156
|
+
</tr>
|
|
157
|
+
</table>
|
|
155
158
|
</div>
|
|
156
159
|
</td>
|
|
157
160
|
@if(filter && datavalid() )
|
|
158
161
|
{
|
|
159
162
|
<td>
|
|
160
163
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
<table class="w100"><tr> <td class="w100"><i class="bi bi-x-lg "></i></td> </tr>
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
163
167
|
</td> }
|
|
164
168
|
</tr>
|
|
165
169
|
</table>
|
|
166
170
|
</div>
|
|
167
171
|
@if(isOpen){
|
|
168
|
-
<div class="dropdown-menu show ">
|
|
169
|
-
<div class="list-panel">
|
|
172
|
+
<div class="dropdown-menu show " style="position: absolute; z-index: 9999; overflow: visible;">
|
|
173
|
+
<div class="list-panel" >
|
|
170
174
|
@for (dlitem of listdata; track dlitem) {
|
|
171
175
|
<div class="list-item " (click)="onSelectionChange(dlitem)" [class.list-item-selected]="dlitem.value == sharedValue">
|
|
172
176
|
<table class="w100">
|
|
@@ -181,15 +185,17 @@ class GHOdropdown {
|
|
|
181
185
|
</div>
|
|
182
186
|
}
|
|
183
187
|
</div>
|
|
188
|
+
@if(showoptions)
|
|
189
|
+
{
|
|
184
190
|
<table class=w100>
|
|
185
191
|
<tr class="bt ">
|
|
186
192
|
<td class="p10" (click)="clear()"><span matButton class="ghoddl-btn "> Clear </span> </td>
|
|
187
193
|
<td class="p10" (click)="closeDropdown()"><span matButton class="ghoddl-btn "> Cancel </span> </td>
|
|
188
194
|
</tr>
|
|
189
|
-
</table>
|
|
195
|
+
</table>}
|
|
190
196
|
</div>
|
|
191
197
|
}
|
|
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
|
|
198
|
+
`, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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
199
|
}
|
|
194
200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOdropdown, decorators: [{
|
|
195
201
|
type: Component,
|
|
@@ -202,27 +208,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
202
208
|
</div>
|
|
203
209
|
}
|
|
204
210
|
</div>
|
|
205
|
-
<table
|
|
211
|
+
<table class="input-ddl">
|
|
206
212
|
<tr>
|
|
207
|
-
<td>
|
|
213
|
+
<td class="w100">
|
|
208
214
|
<div (click)="toggleDropdown()" [ngClass]="getclass()">
|
|
209
|
-
|
|
210
|
-
|
|
215
|
+
<table class="w100"><tr> <td class="w100">{{selectedtxt}}</td>
|
|
216
|
+
<td ><i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i></td>
|
|
217
|
+
</tr>
|
|
218
|
+
</table>
|
|
211
219
|
</div>
|
|
212
220
|
</td>
|
|
213
221
|
@if(filter && datavalid() )
|
|
214
222
|
{
|
|
215
223
|
<td>
|
|
216
224
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
217
|
-
|
|
218
|
-
|
|
225
|
+
<table class="w100"><tr> <td class="w100"><i class="bi bi-x-lg "></i></td> </tr>
|
|
226
|
+
</table>
|
|
227
|
+
</div>
|
|
219
228
|
</td> }
|
|
220
229
|
</tr>
|
|
221
230
|
</table>
|
|
222
231
|
</div>
|
|
223
232
|
@if(isOpen){
|
|
224
|
-
<div class="dropdown-menu show ">
|
|
225
|
-
<div class="list-panel">
|
|
233
|
+
<div class="dropdown-menu show " style="position: absolute; z-index: 9999; overflow: visible;">
|
|
234
|
+
<div class="list-panel" >
|
|
226
235
|
@for (dlitem of listdata; track dlitem) {
|
|
227
236
|
<div class="list-item " (click)="onSelectionChange(dlitem)" [class.list-item-selected]="dlitem.value == sharedValue">
|
|
228
237
|
<table class="w100">
|
|
@@ -237,21 +246,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
237
246
|
</div>
|
|
238
247
|
}
|
|
239
248
|
</div>
|
|
249
|
+
@if(showoptions)
|
|
250
|
+
{
|
|
240
251
|
<table class=w100>
|
|
241
252
|
<tr class="bt ">
|
|
242
253
|
<td class="p10" (click)="clear()"><span matButton class="ghoddl-btn "> Clear </span> </td>
|
|
243
254
|
<td class="p10" (click)="closeDropdown()"><span matButton class="ghoddl-btn "> Cancel </span> </td>
|
|
244
255
|
</tr>
|
|
245
|
-
</table>
|
|
256
|
+
</table>}
|
|
246
257
|
</div>
|
|
247
258
|
}
|
|
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
|
|
259
|
+
`, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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
260
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { options: [{
|
|
250
261
|
type: Input
|
|
251
262
|
}], placeholder: [{
|
|
252
263
|
type: Input
|
|
253
264
|
}], showclear: [{
|
|
254
265
|
type: Input
|
|
266
|
+
}], showoptions: [{
|
|
267
|
+
type: Input
|
|
255
268
|
}], appearance: [{
|
|
256
269
|
type: Input
|
|
257
270
|
}], label: [{
|
|
@@ -279,6 +292,8 @@ class GHOInput {
|
|
|
279
292
|
this.datePipe = datePipe;
|
|
280
293
|
}
|
|
281
294
|
list = [];
|
|
295
|
+
iconcss = "";
|
|
296
|
+
type = "text";
|
|
282
297
|
label = "";
|
|
283
298
|
appearance = "outline";
|
|
284
299
|
filter = false;
|
|
@@ -286,6 +301,30 @@ class GHOInput {
|
|
|
286
301
|
placeholder = "";
|
|
287
302
|
sharedValue = '';
|
|
288
303
|
sharedValueChange = new EventEmitter();
|
|
304
|
+
geticon() {
|
|
305
|
+
if (this.iconcss == "user") {
|
|
306
|
+
return "bi bi-person fs-1";
|
|
307
|
+
}
|
|
308
|
+
if (this.iconcss == "tel") {
|
|
309
|
+
return "bi-telephone-fill";
|
|
310
|
+
}
|
|
311
|
+
if (this.iconcss == "money") {
|
|
312
|
+
return "bi bi-currency-dollar";
|
|
313
|
+
}
|
|
314
|
+
if (this.iconcss == "email") {
|
|
315
|
+
return "bi bi-envelope-fill ";
|
|
316
|
+
}
|
|
317
|
+
if (this.iconcss == "password") {
|
|
318
|
+
return "bi bi-file-lock";
|
|
319
|
+
}
|
|
320
|
+
if (this.iconcss == "filter") {
|
|
321
|
+
return "bi bi-funnel-fill";
|
|
322
|
+
}
|
|
323
|
+
if (this.iconcss == "search") {
|
|
324
|
+
return "bi bi-search";
|
|
325
|
+
}
|
|
326
|
+
return "";
|
|
327
|
+
}
|
|
289
328
|
onInput(event) {
|
|
290
329
|
this.sharedValue = event.target.value;
|
|
291
330
|
this.sharedValueChange.emit(this.sharedValue);
|
|
@@ -333,7 +372,7 @@ class GHOInput {
|
|
|
333
372
|
if (!this.showclear) {
|
|
334
373
|
css = "input-outline";
|
|
335
374
|
}
|
|
336
|
-
return css + " input";
|
|
375
|
+
return css + " input d-flex ";
|
|
337
376
|
}
|
|
338
377
|
else {
|
|
339
378
|
return "input-mat d-flex gap-3 ";
|
|
@@ -361,61 +400,103 @@ class GHOInput {
|
|
|
361
400
|
ngOnInit() {
|
|
362
401
|
}
|
|
363
402
|
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:
|
|
403
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: GHOInput, isStandalone: true, selector: "gho-input", inputs: { list: "list", iconcss: "iconcss", type: "type", label: "label", appearance: "appearance", filter: "filter", showclear: "showclear", sharedValue: "sharedValue" }, outputs: { sharedValueChange: "sharedValueChange" }, providers: [DatePipe], usesOnChanges: true, ngImport: i0, template: `
|
|
404
|
+
|
|
405
|
+
<div style="height: 55px !important;">
|
|
365
406
|
<div style="height: 18px !important;">
|
|
366
407
|
@if(datavalid())
|
|
367
408
|
{
|
|
368
|
-
<div [ngStyle]="{ margin: '-
|
|
409
|
+
<div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
|
|
369
410
|
</div>
|
|
370
411
|
}
|
|
371
|
-
|
|
372
412
|
</div>
|
|
373
|
-
|
|
413
|
+
|
|
414
|
+
<div style="width: 100%;">
|
|
374
415
|
<table style="width: 100%;">
|
|
375
416
|
<tr>
|
|
376
|
-
<td>
|
|
377
|
-
|
|
417
|
+
<td>
|
|
418
|
+
<div [ngClass]="getclass()">
|
|
419
|
+
<table class="w100" >
|
|
420
|
+
<tr>
|
|
421
|
+
@if(iconcss !=""){
|
|
422
|
+
<td style="padding-right: 5px;"> <i [ngClass]="geticon()" style="font-size: 16px !important;"></i></td>}
|
|
423
|
+
<td>
|
|
424
|
+
<input type="type" [placeholder]="placeholder" [ngModel]="sharedValue"
|
|
425
|
+
(input)="onInput($event)">
|
|
426
|
+
</td>
|
|
427
|
+
</tr>
|
|
428
|
+
</table>
|
|
429
|
+
</div>
|
|
430
|
+
|
|
431
|
+
</td>
|
|
378
432
|
@if(filter && datavalid() )
|
|
379
433
|
{
|
|
380
434
|
<td>
|
|
381
435
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
382
|
-
<
|
|
436
|
+
<table>
|
|
437
|
+
<tr>
|
|
438
|
+
<td> <i class="bi bi-x-lg "></i></td>
|
|
439
|
+
</tr>
|
|
440
|
+
</table>
|
|
383
441
|
</div>
|
|
384
442
|
</td> }
|
|
385
443
|
</tr>
|
|
386
444
|
</table>
|
|
387
445
|
</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
|
|
446
|
+
</div>`, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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
447
|
}
|
|
390
448
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHOInput, decorators: [{
|
|
391
449
|
type: Component,
|
|
392
|
-
args: [{ selector: 'gho-input', standalone: true, imports: [CommonModule, FormsModule,], template:
|
|
450
|
+
args: [{ selector: 'gho-input', standalone: true, imports: [CommonModule, FormsModule,], template: `
|
|
451
|
+
|
|
452
|
+
<div style="height: 55px !important;">
|
|
393
453
|
<div style="height: 18px !important;">
|
|
394
454
|
@if(datavalid())
|
|
395
455
|
{
|
|
396
|
-
<div [ngStyle]="{ margin: '-
|
|
456
|
+
<div [ngStyle]="{ margin: '-3px 5px' }" class="input-label">{{label}}
|
|
397
457
|
</div>
|
|
398
458
|
}
|
|
399
|
-
|
|
400
459
|
</div>
|
|
401
|
-
|
|
460
|
+
|
|
461
|
+
<div style="width: 100%;">
|
|
402
462
|
<table style="width: 100%;">
|
|
403
463
|
<tr>
|
|
404
|
-
<td>
|
|
405
|
-
|
|
464
|
+
<td>
|
|
465
|
+
<div [ngClass]="getclass()">
|
|
466
|
+
<table class="w100" >
|
|
467
|
+
<tr>
|
|
468
|
+
@if(iconcss !=""){
|
|
469
|
+
<td style="padding-right: 5px;"> <i [ngClass]="geticon()" style="font-size: 16px !important;"></i></td>}
|
|
470
|
+
<td>
|
|
471
|
+
<input type="type" [placeholder]="placeholder" [ngModel]="sharedValue"
|
|
472
|
+
(input)="onInput($event)">
|
|
473
|
+
</td>
|
|
474
|
+
</tr>
|
|
475
|
+
</table>
|
|
476
|
+
</div>
|
|
477
|
+
|
|
478
|
+
</td>
|
|
406
479
|
@if(filter && datavalid() )
|
|
407
480
|
{
|
|
408
481
|
<td>
|
|
409
482
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
410
|
-
<
|
|
483
|
+
<table>
|
|
484
|
+
<tr>
|
|
485
|
+
<td> <i class="bi bi-x-lg "></i></td>
|
|
486
|
+
</tr>
|
|
487
|
+
</table>
|
|
411
488
|
</div>
|
|
412
489
|
</td> }
|
|
413
490
|
</tr>
|
|
414
491
|
</table>
|
|
415
492
|
</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
|
|
493
|
+
</div>`, providers: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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
494
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.DatePipe }], propDecorators: { list: [{
|
|
418
495
|
type: Input
|
|
496
|
+
}], iconcss: [{
|
|
497
|
+
type: Input
|
|
498
|
+
}], type: [{
|
|
499
|
+
type: Input
|
|
419
500
|
}], label: [{
|
|
420
501
|
type: Input
|
|
421
502
|
}], appearance: [{
|
|
@@ -654,17 +735,20 @@ class GHODate {
|
|
|
654
735
|
</div>
|
|
655
736
|
<table style="width: 100%;">
|
|
656
737
|
<tr>
|
|
657
|
-
|
|
738
|
+
<td class="w100">
|
|
658
739
|
<div (click)="toggleDropdown()" [ngClass]="getclass()">
|
|
659
|
-
|
|
660
|
-
|
|
740
|
+
<table class="w100"><tr> <td class="w100">{{ gettxt()}}</td>
|
|
741
|
+
<td > <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i></td>
|
|
742
|
+
</tr>
|
|
743
|
+
</table>
|
|
661
744
|
</div>
|
|
662
745
|
</td>
|
|
663
746
|
@if(filter && datavalid() )
|
|
664
747
|
{
|
|
665
748
|
<td>
|
|
666
749
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
667
|
-
<i class="bi bi-x-lg "></i>
|
|
750
|
+
<table class="w100"><tr> <td class="w100"><i class="bi bi-x-lg "></i></td> </tr>
|
|
751
|
+
</table>
|
|
668
752
|
</div>
|
|
669
753
|
</td> }
|
|
670
754
|
|
|
@@ -674,18 +758,18 @@ class GHODate {
|
|
|
674
758
|
</div>
|
|
675
759
|
@if(isOpen){
|
|
676
760
|
<div class="dropdown-menu show">
|
|
677
|
-
<table>
|
|
678
|
-
<tr
|
|
761
|
+
<table class="w100">
|
|
762
|
+
<tr >
|
|
679
763
|
<td class="pl10">
|
|
680
|
-
<gho-dropdown [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
|
|
764
|
+
<gho-dropdown [showoptions]="false" [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
|
|
681
765
|
label="Month"></gho-dropdown>
|
|
682
766
|
</td>
|
|
683
767
|
<td class="">
|
|
684
|
-
<gho-dropdown [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
|
|
768
|
+
<gho-dropdown [showoptions]="false" [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
|
|
685
769
|
label="Day"></gho-dropdown>
|
|
686
770
|
</td>
|
|
687
771
|
<td class="pr10">
|
|
688
|
-
<gho-dropdown [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
|
|
772
|
+
<gho-dropdown [showoptions]="false" [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
|
|
689
773
|
label="Year"></gho-dropdown>
|
|
690
774
|
|
|
691
775
|
</td>
|
|
@@ -697,6 +781,8 @@ class GHODate {
|
|
|
697
781
|
</td>
|
|
698
782
|
</tr>
|
|
699
783
|
|
|
784
|
+
<tr class="bb">
|
|
785
|
+
<td colspan="5" class=p10> </td></tr>
|
|
700
786
|
<tr>
|
|
701
787
|
<td colspan="5">
|
|
702
788
|
<mat-calendar (selectedChange)="onDateChangeFromCalender($event)">
|
|
@@ -708,7 +794,7 @@ class GHODate {
|
|
|
708
794
|
|
|
709
795
|
</div>
|
|
710
796
|
}
|
|
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
|
|
797
|
+
`, isInline: true, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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", "showoptions", "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
798
|
}
|
|
713
799
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GHODate, decorators: [{
|
|
714
800
|
type: Component,
|
|
@@ -724,17 +810,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
724
810
|
</div>
|
|
725
811
|
<table style="width: 100%;">
|
|
726
812
|
<tr>
|
|
727
|
-
|
|
813
|
+
<td class="w100">
|
|
728
814
|
<div (click)="toggleDropdown()" [ngClass]="getclass()">
|
|
729
|
-
|
|
730
|
-
|
|
815
|
+
<table class="w100"><tr> <td class="w100">{{ gettxt()}}</td>
|
|
816
|
+
<td > <i class="bi bi-caret-down-fill arrow-icon" [class.rotate]="isOpen"></i></td>
|
|
817
|
+
</tr>
|
|
818
|
+
</table>
|
|
731
819
|
</div>
|
|
732
820
|
</td>
|
|
733
821
|
@if(filter && datavalid() )
|
|
734
822
|
{
|
|
735
823
|
<td>
|
|
736
824
|
<div (click)="clear()" [ngClass]="getclearclass()">
|
|
737
|
-
<i class="bi bi-x-lg "></i>
|
|
825
|
+
<table class="w100"><tr> <td class="w100"><i class="bi bi-x-lg "></i></td> </tr>
|
|
826
|
+
</table>
|
|
738
827
|
</div>
|
|
739
828
|
</td> }
|
|
740
829
|
|
|
@@ -744,18 +833,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
744
833
|
</div>
|
|
745
834
|
@if(isOpen){
|
|
746
835
|
<div class="dropdown-menu show">
|
|
747
|
-
<table>
|
|
748
|
-
<tr
|
|
836
|
+
<table class="w100">
|
|
837
|
+
<tr >
|
|
749
838
|
<td class="pl10">
|
|
750
|
-
<gho-dropdown [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
|
|
839
|
+
<gho-dropdown [showoptions]="false" [options]="months" [(sharedValue)]="m" (selectionchange)="onmodelchange($event,'m')" [filter]=false
|
|
751
840
|
label="Month"></gho-dropdown>
|
|
752
841
|
</td>
|
|
753
842
|
<td class="">
|
|
754
|
-
<gho-dropdown [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
|
|
843
|
+
<gho-dropdown [showoptions]="false" [options]="days" [(sharedValue)]="d" (selectionchange)="onmodelchange($event,'d')" [filter]=false
|
|
755
844
|
label="Day"></gho-dropdown>
|
|
756
845
|
</td>
|
|
757
846
|
<td class="pr10">
|
|
758
|
-
<gho-dropdown [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
|
|
847
|
+
<gho-dropdown [showoptions]="false" [options]="years" [(sharedValue)]="y" (selectionchange)="onmodelchange($event,'y')" [filter]=false
|
|
759
848
|
label="Year"></gho-dropdown>
|
|
760
849
|
|
|
761
850
|
</td>
|
|
@@ -767,6 +856,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
767
856
|
</td>
|
|
768
857
|
</tr>
|
|
769
858
|
|
|
859
|
+
<tr class="bb">
|
|
860
|
+
<td colspan="5" class=p10> </td></tr>
|
|
770
861
|
<tr>
|
|
771
862
|
<td colspan="5">
|
|
772
863
|
<mat-calendar (selectedChange)="onDateChangeFromCalender($event)">
|
|
@@ -783,7 +874,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
783
874
|
provide: NG_VALUE_ACCESSOR,
|
|
784
875
|
useExisting: forwardRef(() => GHODate),
|
|
785
876
|
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
|
|
877
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".input{cursor:pointer;border:1px solid #7c7b7bdf;padding:5px!important;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-label{background-color:transparent;position:inherit;color:#202020;font-size:12px;padding-left:5px}input{border:none;outline:none;padding:0;background-color:transparent}.input:hover{background:var(--hover)}.input-ddl{width:100%}.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;z-index:99999!important}.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
878
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.DatePipe }], propDecorators: { options: [{
|
|
788
879
|
type: Input
|
|
789
880
|
}], placeholder: [{
|
|
@@ -1 +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,YAAY,EAAQ;AAIpD,IAAA,aAAa,CAAC,CAAS,EAAA;AACrB,QAAA,IAAI,CAAC,WAAW,GAAG,CAAC;AACpB,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,EAAE;IACjB;IACA,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;AAC5B,YAAA,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,C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ACxB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC;wGATS,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAV,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAlBT,CAAA;;;;;;;;;;;;;;AAcX,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACW,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,cAAc,EAAA,QAAA,EAAA,sCAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,MAAA,EAAA,kBAAA,EAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAG7C,UAAU,EAAA,UAAA,EAAA,CAAA;kBApBtB,SAAS;AAAC,YAAA,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;;;;"}
|
|
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 class=\"input-ddl\">\r\n <tr>\r\n <td class=\"w100\">\r\n <div (click)=\"toggleDropdown()\" [ngClass]=\"getclass()\">\r\n <table class=\"w100\"><tr> <td class=\"w100\">{{selectedtxt}}</td> \r\n <td ><i class=\"bi bi-caret-down-fill arrow-icon\" [class.rotate]=\"isOpen\"></i></td>\r\n </tr>\r\n </table>\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 <table class=\"w100\"><tr> <td class=\"w100\"><i class=\"bi bi-x-lg \"></i></td> </tr>\r\n </table>\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 \" style=\"position: absolute; z-index: 9999; overflow: visible;\">\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 @if(showoptions)\r\n {\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() showoptions: boolean = true;\r\n\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 = \"\"\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: `\r\n \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 \r\n <div style=\"width: 100%;\">\r\n <table style=\"width: 100%;\">\r\n <tr>\r\n <td>\r\n <div [ngClass]=\"getclass()\">\r\n <table class=\"w100\" >\r\n <tr>\r\n @if(iconcss !=\"\"){\r\n <td style=\"padding-right: 5px;\"> <i [ngClass]=\"geticon()\" style=\"font-size: 16px !important;\"></i></td>}\r\n <td>\r\n <input type=\"type\" [placeholder]=\"placeholder\" [ngModel]=\"sharedValue\"\r\n (input)=\"onInput($event)\">\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n </td>\r\n @if(filter && datavalid() )\r\n {\r\n <td>\r\n <div (click)=\"clear()\" [ngClass]=\"getclearclass()\">\r\n <table>\r\n <tr>\r\n <td> <i class=\"bi bi-x-lg \"></i></td>\r\n </tr>\r\n </table>\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() iconcss: string = \"\";\r\n @Input() type: string = \"text\";\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 geticon() {\r\n if (this.iconcss == \"user\") { return \"bi bi-person fs-1\" }\r\n if (this.iconcss == \"tel\") { return \"bi-telephone-fill\" }\r\n if (this.iconcss == \"money\") { return \"bi bi-currency-dollar\" }\r\n if (this.iconcss == \"email\") { return \"bi bi-envelope-fill \" }\r\n if (this.iconcss == \"password\") { return \"bi bi-file-lock\" }\r\n if (this.iconcss == \"filter\") { return \"bi bi-funnel-fill\" }\r\n if (this.iconcss == \"search\") { return \"bi bi-search\" }\r\n return \"\";\r\n }\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 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 d-flex \"\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 class=\"w100\">\r\n <div (click)=\"toggleDropdown()\" [ngClass]=\"getclass()\">\r\n <table class=\"w100\"><tr> <td class=\"w100\">{{ gettxt()}}</td> \r\n <td > <i class=\"bi bi-caret-down-fill arrow-icon\" [class.rotate]=\"isOpen\"></i></td>\r\n </tr>\r\n </table>\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 <table class=\"w100\"><tr> <td class=\"w100\"><i class=\"bi bi-x-lg \"></i></td> </tr>\r\n </table>\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 class=\"w100\">\r\n <tr >\r\n <td class=\"pl10\">\r\n <gho-dropdown [showoptions]=\"false\" [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 [showoptions]=\"false\" [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 [showoptions]=\"false\" [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 class=\"bb\">\r\n <td colspan=\"5\" class=p10> </td></tr>\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":";;;;;;;;;;;;MAyEa,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,I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ApBtB,SAAS;AAAC,YAAA,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
CHANGED
|
@@ -12,6 +12,7 @@ declare class GHOdropdown implements OnChanges {
|
|
|
12
12
|
options: any[];
|
|
13
13
|
placeholder: string;
|
|
14
14
|
showclear: boolean;
|
|
15
|
+
showoptions: boolean;
|
|
15
16
|
appearance: string;
|
|
16
17
|
label: string;
|
|
17
18
|
filter: boolean;
|
|
@@ -36,7 +37,7 @@ declare class GHOdropdown implements OnChanges {
|
|
|
36
37
|
getclearclass(): "input-outline-filter-img" | "input-mat-img " | "input-mat";
|
|
37
38
|
getclass(): string;
|
|
38
39
|
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
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GHOdropdown, "gho-dropdown", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showclear": { "alias": "showclear"; "required": false; }; "showoptions": { "alias": "showoptions"; "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
|
}
|
|
41
42
|
|
|
42
43
|
interface DateFilterResult {
|
|
@@ -51,6 +52,8 @@ declare class GHOInput implements OnInit {
|
|
|
51
52
|
private datePipe;
|
|
52
53
|
constructor(el: ElementRef, cdr: ChangeDetectorRef, datePipe: DatePipe);
|
|
53
54
|
list: [];
|
|
55
|
+
iconcss: string;
|
|
56
|
+
type: string;
|
|
54
57
|
label: string;
|
|
55
58
|
appearance: string;
|
|
56
59
|
filter: boolean;
|
|
@@ -58,6 +61,7 @@ declare class GHOInput implements OnInit {
|
|
|
58
61
|
placeholder: string;
|
|
59
62
|
sharedValue: string;
|
|
60
63
|
sharedValueChange: EventEmitter<string>;
|
|
64
|
+
geticon(): "" | "bi bi-person fs-1" | "bi-telephone-fill" | "bi bi-currency-dollar" | "bi bi-envelope-fill " | "bi bi-file-lock" | "bi bi-funnel-fill" | "bi bi-search";
|
|
61
65
|
onInput(event: Event): void;
|
|
62
66
|
clear(): void;
|
|
63
67
|
setlabel(): void;
|
|
@@ -67,7 +71,7 @@ declare class GHOInput implements OnInit {
|
|
|
67
71
|
datavalid(): boolean;
|
|
68
72
|
ngOnInit(): void;
|
|
69
73
|
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>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GHOInput, "gho-input", never, { "list": { "alias": "list"; "required": false; }; "iconcss": { "alias": "iconcss"; "required": false; }; "type": { "alias": "type"; "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
75
|
}
|
|
72
76
|
|
|
73
77
|
declare class GHODate implements ControlValueAccessor, OnInit {
|