@balinasoftware/balinaui-components 3.3.6 → 3.3.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, EventEmitter, HostListener, Output, Input } from '@angular/core';
|
|
2
|
+
import { Component, EventEmitter, HostListener, Output, Input, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i2 from '@angular/router';
|
|
@@ -281,6 +281,266 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
281
281
|
type: Output
|
|
282
282
|
}] } });
|
|
283
283
|
|
|
284
|
+
class TextBox {
|
|
285
|
+
placeholder = '';
|
|
286
|
+
value = '';
|
|
287
|
+
width = '300px';
|
|
288
|
+
height = '44px';
|
|
289
|
+
type = 'text';
|
|
290
|
+
disabled = false;
|
|
291
|
+
valueChange = new EventEmitter();
|
|
292
|
+
inputChange = new EventEmitter();
|
|
293
|
+
clicked = new EventEmitter();
|
|
294
|
+
onInput(event) {
|
|
295
|
+
const input = event.target;
|
|
296
|
+
this.value = input.value;
|
|
297
|
+
this.valueChange.emit(this.value);
|
|
298
|
+
this.inputChange.emit(this.value);
|
|
299
|
+
}
|
|
300
|
+
onClick(event) {
|
|
301
|
+
this.clicked.emit(event);
|
|
302
|
+
}
|
|
303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: TextBox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
304
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.2", type: TextBox, isStandalone: true, selector: "lib-text-box", inputs: { placeholder: "placeholder", value: "value", width: "width", height: "height", type: "type", disabled: "disabled" }, outputs: { valueChange: "valueChange", inputChange: "inputChange", clicked: "clicked" }, ngImport: i0, template: "<div\n class=\"text-box-container\"\n [style.width]=\"width\"\n>\n\n <input\n class=\"text-box-input\"\n\n [style.height]=\"height\"\n\n [type]=\"type\"\n\n [placeholder]=\"placeholder\"\n\n [value]=\"value\"\n\n [disabled]=\"disabled\"\n\n (input)=\"onInput($event)\"\n\n (click)=\"onClick($event)\"\n />\n\n</div>", styles: [".text-box-container{width:100%;display:flex;align-items:center;box-sizing:border-box}.text-box-input{width:100%;box-sizing:border-box;display:flex;align-items:center;padding:0 18px;border:1px solid #a9a9a9;border-radius:6px;outline:none;background:#fff;color:#222;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:600;transition:border-color .2s ease,box-shadow .2s ease}.text-box-input::placeholder{color:#777;opacity:1;font-size:14px;font-weight:600}.text-box-input:hover{border-color:#777}.text-box-input:focus{border-color:#555;box-shadow:0 0 0 1px #0000000d}.text-box-input:disabled{background:#f5f5f5;color:#999;cursor:not-allowed;border-color:#d0d0d0}@media(max-width:768px){.text-box-input{padding:0 14px;font-size:14px}.text-box-input::placeholder{font-size:14px}}\n"] });
|
|
305
|
+
}
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: TextBox, decorators: [{
|
|
307
|
+
type: Component,
|
|
308
|
+
args: [{ selector: 'lib-text-box', standalone: true, imports: [], template: "<div\n class=\"text-box-container\"\n [style.width]=\"width\"\n>\n\n <input\n class=\"text-box-input\"\n\n [style.height]=\"height\"\n\n [type]=\"type\"\n\n [placeholder]=\"placeholder\"\n\n [value]=\"value\"\n\n [disabled]=\"disabled\"\n\n (input)=\"onInput($event)\"\n\n (click)=\"onClick($event)\"\n />\n\n</div>", styles: [".text-box-container{width:100%;display:flex;align-items:center;box-sizing:border-box}.text-box-input{width:100%;box-sizing:border-box;display:flex;align-items:center;padding:0 18px;border:1px solid #a9a9a9;border-radius:6px;outline:none;background:#fff;color:#222;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:600;transition:border-color .2s ease,box-shadow .2s ease}.text-box-input::placeholder{color:#777;opacity:1;font-size:14px;font-weight:600}.text-box-input:hover{border-color:#777}.text-box-input:focus{border-color:#555;box-shadow:0 0 0 1px #0000000d}.text-box-input:disabled{background:#f5f5f5;color:#999;cursor:not-allowed;border-color:#d0d0d0}@media(max-width:768px){.text-box-input{padding:0 14px;font-size:14px}.text-box-input::placeholder{font-size:14px}}\n"] }]
|
|
309
|
+
}], propDecorators: { placeholder: [{
|
|
310
|
+
type: Input
|
|
311
|
+
}], value: [{
|
|
312
|
+
type: Input
|
|
313
|
+
}], width: [{
|
|
314
|
+
type: Input
|
|
315
|
+
}], height: [{
|
|
316
|
+
type: Input
|
|
317
|
+
}], type: [{
|
|
318
|
+
type: Input
|
|
319
|
+
}], disabled: [{
|
|
320
|
+
type: Input
|
|
321
|
+
}], valueChange: [{
|
|
322
|
+
type: Output
|
|
323
|
+
}], inputChange: [{
|
|
324
|
+
type: Output
|
|
325
|
+
}], clicked: [{
|
|
326
|
+
type: Output
|
|
327
|
+
}] } });
|
|
328
|
+
|
|
329
|
+
class DateInput {
|
|
330
|
+
label = 'Date To';
|
|
331
|
+
value = '';
|
|
332
|
+
width = '420px';
|
|
333
|
+
height = '72px';
|
|
334
|
+
min = '';
|
|
335
|
+
max = '';
|
|
336
|
+
valueChange = new EventEmitter();
|
|
337
|
+
dateChange = new EventEmitter();
|
|
338
|
+
clicked = new EventEmitter();
|
|
339
|
+
dateInput;
|
|
340
|
+
/**
|
|
341
|
+
* Open the browser's native date picker
|
|
342
|
+
*/
|
|
343
|
+
openDatePicker(event) {
|
|
344
|
+
if (event) {
|
|
345
|
+
this.clicked.emit(event);
|
|
346
|
+
}
|
|
347
|
+
const input = this.dateInput?.nativeElement;
|
|
348
|
+
if (!input) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
// Modern browsers
|
|
352
|
+
if ('showPicker' in HTMLInputElement.prototype) {
|
|
353
|
+
input.showPicker();
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
// Fallback
|
|
357
|
+
input.focus();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Date changed
|
|
362
|
+
*/
|
|
363
|
+
onDateChange(event) {
|
|
364
|
+
const input = event.target;
|
|
365
|
+
this.value = input.value;
|
|
366
|
+
this.valueChange.emit(this.value);
|
|
367
|
+
this.dateChange.emit(this.value);
|
|
368
|
+
}
|
|
369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: DateInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
370
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.2", type: DateInput, isStandalone: true, selector: "lib-date-input", inputs: { label: "label", value: "value", width: "width", height: "height", min: "min", max: "max" }, outputs: { valueChange: "valueChange", dateChange: "dateChange", clicked: "clicked" }, viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true }], ngImport: i0, template: "<div\n class=\"date-container\"\n [style.width]=\"width\"\n>\n\n <div\n class=\"date-wrapper\"\n [style.height]=\"height\"\n (click)=\"openDatePicker($event)\"\n >\n\n <!-- Floating label -->\n\n <label class=\"date-label\">\n {{ label }}\n </label>\n\n\n <!-- Date input -->\n\n <input\n #dateInput\n class=\"date-input\"\n type=\"date\"\n\n [value]=\"value\"\n\n [min]=\"min\"\n [max]=\"max\"\n\n (change)=\"onDateChange($event)\"\n\n (click)=\"$event.stopPropagation()\"\n\n autocomplete=\"off\"\n />\n\n\n <!-- Calendar button -->\n\n <button\n type=\"button\"\n class=\"calendar-button\"\n\n (click)=\"openDatePicker($event)\"\n >\n\n <span class=\"calendar-icon\">\n\n <span class=\"calendar-top\"></span>\n\n <span class=\"calendar-body\"></span>\n\n </span>\n\n </button>\n\n </div>\n\n</div>", styles: [".date-container{position:relative;display:flex;flex-direction:column;box-sizing:border-box}.date-wrapper{position:relative;width:100%;display:flex;align-items:center;background:#fff;border:2px solid #68479b;border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:visible;transition:border-color .2s ease}.date-wrapper:hover{border-color:#68479b}.date-wrapper:focus-within{border-color:#68479b}.date-label{position:absolute;top:0;left:18px;transform:translateY(-50%);padding:0 6px;background:#fff;color:#68479b;font-size:17px;font-weight:400;line-height:1;white-space:nowrap;z-index:5;pointer-events:none}.date-input{flex:1;min-width:0;width:100%;height:100%;padding:0 16px 0 24px;border:none;outline:none;background:transparent;color:#222;font-family:Arial,Helvetica,sans-serif;font-size:27px;font-weight:400;line-height:1;box-sizing:border-box;cursor:pointer;pointer-events:none}.calendar-button{flex:0 0 58px;width:58px;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:#f1f1f1;cursor:pointer;box-sizing:border-box;border-radius:0 4px 4px 0;transition:background-color .2s ease}.calendar-button:hover{background:#e9e9e9}.calendar-icon{position:relative;width:28px;height:27px;display:block;border:3px solid #555555;border-radius:4px;box-sizing:border-box}.calendar-top{position:absolute;left:-3px;top:5px;width:28px;height:3px;background:#555}.calendar-body{position:absolute;left:6px;top:13px;width:10px;height:7px;border:2px solid #555555;box-sizing:border-box}.calendar-icon:before,.calendar-icon:after{content:\"\";position:absolute;top:-7px;width:3px;height:9px;background:#555;border-radius:2px}.calendar-icon:before{left:5px}.calendar-icon:after{right:5px}.date-input::-webkit-calendar-picker-indicator{display:none;opacity:0}@media(max-width:768px){.date-label{left:14px;font-size:15px}.date-input{padding-left:16px;font-size:21px}.calendar-button{flex-basis:52px;width:52px}.calendar-icon{transform:scale(.9)}}\n"] });
|
|
371
|
+
}
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: DateInput, decorators: [{
|
|
373
|
+
type: Component,
|
|
374
|
+
args: [{ selector: 'lib-date-input', standalone: true, imports: [], template: "<div\n class=\"date-container\"\n [style.width]=\"width\"\n>\n\n <div\n class=\"date-wrapper\"\n [style.height]=\"height\"\n (click)=\"openDatePicker($event)\"\n >\n\n <!-- Floating label -->\n\n <label class=\"date-label\">\n {{ label }}\n </label>\n\n\n <!-- Date input -->\n\n <input\n #dateInput\n class=\"date-input\"\n type=\"date\"\n\n [value]=\"value\"\n\n [min]=\"min\"\n [max]=\"max\"\n\n (change)=\"onDateChange($event)\"\n\n (click)=\"$event.stopPropagation()\"\n\n autocomplete=\"off\"\n />\n\n\n <!-- Calendar button -->\n\n <button\n type=\"button\"\n class=\"calendar-button\"\n\n (click)=\"openDatePicker($event)\"\n >\n\n <span class=\"calendar-icon\">\n\n <span class=\"calendar-top\"></span>\n\n <span class=\"calendar-body\"></span>\n\n </span>\n\n </button>\n\n </div>\n\n</div>", styles: [".date-container{position:relative;display:flex;flex-direction:column;box-sizing:border-box}.date-wrapper{position:relative;width:100%;display:flex;align-items:center;background:#fff;border:2px solid #68479b;border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:visible;transition:border-color .2s ease}.date-wrapper:hover{border-color:#68479b}.date-wrapper:focus-within{border-color:#68479b}.date-label{position:absolute;top:0;left:18px;transform:translateY(-50%);padding:0 6px;background:#fff;color:#68479b;font-size:17px;font-weight:400;line-height:1;white-space:nowrap;z-index:5;pointer-events:none}.date-input{flex:1;min-width:0;width:100%;height:100%;padding:0 16px 0 24px;border:none;outline:none;background:transparent;color:#222;font-family:Arial,Helvetica,sans-serif;font-size:27px;font-weight:400;line-height:1;box-sizing:border-box;cursor:pointer;pointer-events:none}.calendar-button{flex:0 0 58px;width:58px;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:#f1f1f1;cursor:pointer;box-sizing:border-box;border-radius:0 4px 4px 0;transition:background-color .2s ease}.calendar-button:hover{background:#e9e9e9}.calendar-icon{position:relative;width:28px;height:27px;display:block;border:3px solid #555555;border-radius:4px;box-sizing:border-box}.calendar-top{position:absolute;left:-3px;top:5px;width:28px;height:3px;background:#555}.calendar-body{position:absolute;left:6px;top:13px;width:10px;height:7px;border:2px solid #555555;box-sizing:border-box}.calendar-icon:before,.calendar-icon:after{content:\"\";position:absolute;top:-7px;width:3px;height:9px;background:#555;border-radius:2px}.calendar-icon:before{left:5px}.calendar-icon:after{right:5px}.date-input::-webkit-calendar-picker-indicator{display:none;opacity:0}@media(max-width:768px){.date-label{left:14px;font-size:15px}.date-input{padding-left:16px;font-size:21px}.calendar-button{flex-basis:52px;width:52px}.calendar-icon{transform:scale(.9)}}\n"] }]
|
|
375
|
+
}], propDecorators: { label: [{
|
|
376
|
+
type: Input
|
|
377
|
+
}], value: [{
|
|
378
|
+
type: Input
|
|
379
|
+
}], width: [{
|
|
380
|
+
type: Input
|
|
381
|
+
}], height: [{
|
|
382
|
+
type: Input
|
|
383
|
+
}], min: [{
|
|
384
|
+
type: Input
|
|
385
|
+
}], max: [{
|
|
386
|
+
type: Input
|
|
387
|
+
}], valueChange: [{
|
|
388
|
+
type: Output
|
|
389
|
+
}], dateChange: [{
|
|
390
|
+
type: Output
|
|
391
|
+
}], clicked: [{
|
|
392
|
+
type: Output
|
|
393
|
+
}], dateInput: [{
|
|
394
|
+
type: ViewChild,
|
|
395
|
+
args: ['dateInput']
|
|
396
|
+
}] } });
|
|
397
|
+
|
|
398
|
+
class Dropdown {
|
|
399
|
+
elementRef;
|
|
400
|
+
// =========================
|
|
401
|
+
// Inputs
|
|
402
|
+
// =========================
|
|
403
|
+
label = '';
|
|
404
|
+
placeholder = '';
|
|
405
|
+
options = [];
|
|
406
|
+
value = '';
|
|
407
|
+
width = '250px';
|
|
408
|
+
height = '50px';
|
|
409
|
+
// =========================
|
|
410
|
+
// Outputs
|
|
411
|
+
// =========================
|
|
412
|
+
// Selected value
|
|
413
|
+
valueChange = new EventEmitter();
|
|
414
|
+
// Developer custom event
|
|
415
|
+
optionClick = new EventEmitter();
|
|
416
|
+
// Search event
|
|
417
|
+
searchChange = new EventEmitter();
|
|
418
|
+
// Open / close event
|
|
419
|
+
openedChange = new EventEmitter();
|
|
420
|
+
// =========================
|
|
421
|
+
// Component state
|
|
422
|
+
// =========================
|
|
423
|
+
isOpen = false;
|
|
424
|
+
searchText = '';
|
|
425
|
+
constructor(elementRef) {
|
|
426
|
+
this.elementRef = elementRef;
|
|
427
|
+
}
|
|
428
|
+
// =========================
|
|
429
|
+
// Filter options
|
|
430
|
+
// =========================
|
|
431
|
+
get filteredOptions() {
|
|
432
|
+
const search = this.searchText
|
|
433
|
+
.toLowerCase()
|
|
434
|
+
.trim();
|
|
435
|
+
if (!search) {
|
|
436
|
+
return this.options;
|
|
437
|
+
}
|
|
438
|
+
return this.options.filter(option => option
|
|
439
|
+
.toLowerCase()
|
|
440
|
+
.includes(search));
|
|
441
|
+
}
|
|
442
|
+
// =========================
|
|
443
|
+
// Open dropdown
|
|
444
|
+
// =========================
|
|
445
|
+
openDropdown() {
|
|
446
|
+
if (!this.isOpen) {
|
|
447
|
+
this.isOpen = true;
|
|
448
|
+
this.searchText = this.value;
|
|
449
|
+
this.openedChange.emit(true);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
// =========================
|
|
453
|
+
// Toggle dropdown
|
|
454
|
+
// =========================
|
|
455
|
+
toggleDropdown() {
|
|
456
|
+
this.isOpen = !this.isOpen;
|
|
457
|
+
if (this.isOpen) {
|
|
458
|
+
this.searchText = this.value;
|
|
459
|
+
}
|
|
460
|
+
this.openedChange.emit(this.isOpen);
|
|
461
|
+
}
|
|
462
|
+
// =========================
|
|
463
|
+
// Input / Search
|
|
464
|
+
// =========================
|
|
465
|
+
onInput(event) {
|
|
466
|
+
const input = event.target;
|
|
467
|
+
this.searchText = input.value;
|
|
468
|
+
// Automatically open while typing
|
|
469
|
+
if (!this.isOpen) {
|
|
470
|
+
this.isOpen = true;
|
|
471
|
+
this.openedChange.emit(true);
|
|
472
|
+
}
|
|
473
|
+
// Tell developer about search
|
|
474
|
+
this.searchChange.emit(this.searchText);
|
|
475
|
+
}
|
|
476
|
+
// =========================
|
|
477
|
+
// Select option
|
|
478
|
+
// =========================
|
|
479
|
+
selectOption(option) {
|
|
480
|
+
// Put option name into input
|
|
481
|
+
this.value = option;
|
|
482
|
+
this.searchText = option;
|
|
483
|
+
// Close dropdown
|
|
484
|
+
this.isOpen = false;
|
|
485
|
+
// Tell parent selected value
|
|
486
|
+
this.valueChange.emit(option);
|
|
487
|
+
// Developer custom event
|
|
488
|
+
this.optionClick.emit(option);
|
|
489
|
+
// Tell parent dropdown closed
|
|
490
|
+
this.openedChange.emit(false);
|
|
491
|
+
}
|
|
492
|
+
// =========================
|
|
493
|
+
// Clear
|
|
494
|
+
// =========================
|
|
495
|
+
clear() {
|
|
496
|
+
this.value = '';
|
|
497
|
+
this.searchText = '';
|
|
498
|
+
this.valueChange.emit('');
|
|
499
|
+
}
|
|
500
|
+
// =========================
|
|
501
|
+
// Click outside
|
|
502
|
+
// =========================
|
|
503
|
+
onDocumentClick(event) {
|
|
504
|
+
const clickedInside = this.elementRef.nativeElement
|
|
505
|
+
.contains(event.target);
|
|
506
|
+
if (!clickedInside &&
|
|
507
|
+
this.isOpen) {
|
|
508
|
+
this.isOpen = false;
|
|
509
|
+
this.openedChange.emit(false);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: Dropdown, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
513
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: Dropdown, isStandalone: true, selector: "lib-dropdown", inputs: { label: "label", placeholder: "placeholder", options: "options", value: "value", width: "width", height: "height" }, outputs: { valueChange: "valueChange", optionClick: "optionClick", searchChange: "searchChange", openedChange: "openedChange" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div\n class=\"dropdown-container\"\n [style.width]=\"width\"\n>\n\n <!-- =========================\n INPUT\n ========================= -->\n\n <div\n class=\"dropdown-input-wrapper\"\n [style.height]=\"height\"\n [class.open]=\"isOpen\"\n >\n\n <!-- Floating label -->\n\n @if (label) {\n\n <label\n class=\"dropdown-label\"\n [class.active]=\"isOpen || value || searchText\"\n >\n {{ label }}\n </label>\n\n }\n\n\n <!-- Search input -->\n\n <input\n class=\"dropdown-input\"\n type=\"text\"\n [placeholder]=\"\n !isOpen && !value\n ? placeholder\n : ''\n \"\n [value]=\"searchText\"\n (input)=\"onInput($event)\"\n (click)=\"openDropdown()\"\n autocomplete=\"off\"\n />\n\n\n <!-- Arrow -->\n\n <button\n type=\"button\"\n class=\"dropdown-arrow\"\n (click)=\"toggleDropdown(); $event.stopPropagation()\"\n aria-label=\"Open dropdown\"\n >\n\n <span\n class=\"arrow\"\n [class.rotate]=\"isOpen\"\n >\n \u2304\n </span>\n\n </button>\n\n </div>\n\n\n <!-- =========================\n DROPDOWN OPTIONS\n ========================= -->\n\n @if (isOpen) {\n\n <div class=\"dropdown-menu\">\n\n @if (filteredOptions.length > 0) {\n\n @for (\n option of filteredOptions;\n track option\n ) {\n\n <button\n type=\"button\"\n class=\"dropdown-option\"\n [class.selected]=\"option === value\"\n (click)=\"selectOption(option)\"\n >\n\n {{ option }}\n\n </button>\n\n }\n\n } @else {\n\n <div class=\"no-results\">\n\n No results found\n\n </div>\n\n }\n\n </div>\n\n }\n\n</div>", styles: [".dropdown-container{position:relative;display:flex;flex-direction:column;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}.dropdown-input-wrapper{position:relative;width:100%;display:flex;align-items:center;box-sizing:border-box;background:#fff;border:1px solid #999999;border-radius:5px;transition:border-color .2s ease,box-shadow .2s ease}.dropdown-input-wrapper:hover{border-color:#777}.dropdown-input-wrapper.open{border-color:#555;box-shadow:0 0 0 1px #0000000a}.dropdown-input{flex:1;min-width:0;width:100%;height:100%;border:none;outline:none;background:transparent;padding:4px 14px 0;box-sizing:border-box;color:#222;font-size:14px;font-weight:400}.dropdown-input::placeholder{color:#555;opacity:1}.dropdown-label{position:absolute;top:50%;left:13px;transform:translateY(-50%);padding:0 4px;color:#555;background:#fff;font-size:14px;font-weight:400;pointer-events:none;transition:top .15s ease,font-size .15s ease,color .15s ease}.dropdown-label.active{top:0;transform:translateY(-50%);font-size:11px;color:#555}.dropdown-arrow{flex:0 0 40px;width:40px;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:#222}.arrow{display:flex;align-items:center;justify-content:center;width:20px;height:20px;font-size:25px;line-height:15px;font-weight:400;transition:transform .2s ease}.arrow.rotate{transform:rotate(180deg)}.dropdown-arrow:hover .arrow{color:#000}.dropdown-menu{position:absolute;top:calc(100% + 2px);left:0;width:100%;max-height:210px;display:flex;flex-direction:column;overflow-y:auto;padding:5px 0;box-sizing:border-box;background:#fff;border-radius:0 0 14px 14px;box-shadow:0 4px 12px #00000014;z-index:1000}.dropdown-option{width:100%;min-height:38px;display:flex;align-items:center;justify-content:flex-start;padding:0 16px;border:none;outline:none;background:transparent;color:#333;font-family:inherit;font-size:14px;font-weight:400;text-align:left;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease}.dropdown-option:hover{background-color:#f2f2f2}.dropdown-option.selected{background-color:#eee;color:#222}.no-results{min-height:38px;display:flex;align-items:center;padding:0 16px;color:#888;font-size:14px}.dropdown-menu::-webkit-scrollbar{width:5px}.dropdown-menu::-webkit-scrollbar-track{background:transparent}.dropdown-menu::-webkit-scrollbar-thumb{background:#222;border-radius:10px}@media(max-width:768px){.dropdown-input{font-size:14px}.dropdown-option{min-height:40px;padding:0 14px;font-size:14px}.dropdown-menu{max-height:200px}}\n"] });
|
|
514
|
+
}
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: Dropdown, decorators: [{
|
|
516
|
+
type: Component,
|
|
517
|
+
args: [{ selector: 'lib-dropdown', standalone: true, imports: [], template: "<div\n class=\"dropdown-container\"\n [style.width]=\"width\"\n>\n\n <!-- =========================\n INPUT\n ========================= -->\n\n <div\n class=\"dropdown-input-wrapper\"\n [style.height]=\"height\"\n [class.open]=\"isOpen\"\n >\n\n <!-- Floating label -->\n\n @if (label) {\n\n <label\n class=\"dropdown-label\"\n [class.active]=\"isOpen || value || searchText\"\n >\n {{ label }}\n </label>\n\n }\n\n\n <!-- Search input -->\n\n <input\n class=\"dropdown-input\"\n type=\"text\"\n [placeholder]=\"\n !isOpen && !value\n ? placeholder\n : ''\n \"\n [value]=\"searchText\"\n (input)=\"onInput($event)\"\n (click)=\"openDropdown()\"\n autocomplete=\"off\"\n />\n\n\n <!-- Arrow -->\n\n <button\n type=\"button\"\n class=\"dropdown-arrow\"\n (click)=\"toggleDropdown(); $event.stopPropagation()\"\n aria-label=\"Open dropdown\"\n >\n\n <span\n class=\"arrow\"\n [class.rotate]=\"isOpen\"\n >\n \u2304\n </span>\n\n </button>\n\n </div>\n\n\n <!-- =========================\n DROPDOWN OPTIONS\n ========================= -->\n\n @if (isOpen) {\n\n <div class=\"dropdown-menu\">\n\n @if (filteredOptions.length > 0) {\n\n @for (\n option of filteredOptions;\n track option\n ) {\n\n <button\n type=\"button\"\n class=\"dropdown-option\"\n [class.selected]=\"option === value\"\n (click)=\"selectOption(option)\"\n >\n\n {{ option }}\n\n </button>\n\n }\n\n } @else {\n\n <div class=\"no-results\">\n\n No results found\n\n </div>\n\n }\n\n </div>\n\n }\n\n</div>", styles: [".dropdown-container{position:relative;display:flex;flex-direction:column;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}.dropdown-input-wrapper{position:relative;width:100%;display:flex;align-items:center;box-sizing:border-box;background:#fff;border:1px solid #999999;border-radius:5px;transition:border-color .2s ease,box-shadow .2s ease}.dropdown-input-wrapper:hover{border-color:#777}.dropdown-input-wrapper.open{border-color:#555;box-shadow:0 0 0 1px #0000000a}.dropdown-input{flex:1;min-width:0;width:100%;height:100%;border:none;outline:none;background:transparent;padding:4px 14px 0;box-sizing:border-box;color:#222;font-size:14px;font-weight:400}.dropdown-input::placeholder{color:#555;opacity:1}.dropdown-label{position:absolute;top:50%;left:13px;transform:translateY(-50%);padding:0 4px;color:#555;background:#fff;font-size:14px;font-weight:400;pointer-events:none;transition:top .15s ease,font-size .15s ease,color .15s ease}.dropdown-label.active{top:0;transform:translateY(-50%);font-size:11px;color:#555}.dropdown-arrow{flex:0 0 40px;width:40px;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:#222}.arrow{display:flex;align-items:center;justify-content:center;width:20px;height:20px;font-size:25px;line-height:15px;font-weight:400;transition:transform .2s ease}.arrow.rotate{transform:rotate(180deg)}.dropdown-arrow:hover .arrow{color:#000}.dropdown-menu{position:absolute;top:calc(100% + 2px);left:0;width:100%;max-height:210px;display:flex;flex-direction:column;overflow-y:auto;padding:5px 0;box-sizing:border-box;background:#fff;border-radius:0 0 14px 14px;box-shadow:0 4px 12px #00000014;z-index:1000}.dropdown-option{width:100%;min-height:38px;display:flex;align-items:center;justify-content:flex-start;padding:0 16px;border:none;outline:none;background:transparent;color:#333;font-family:inherit;font-size:14px;font-weight:400;text-align:left;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease}.dropdown-option:hover{background-color:#f2f2f2}.dropdown-option.selected{background-color:#eee;color:#222}.no-results{min-height:38px;display:flex;align-items:center;padding:0 16px;color:#888;font-size:14px}.dropdown-menu::-webkit-scrollbar{width:5px}.dropdown-menu::-webkit-scrollbar-track{background:transparent}.dropdown-menu::-webkit-scrollbar-thumb{background:#222;border-radius:10px}@media(max-width:768px){.dropdown-input{font-size:14px}.dropdown-option{min-height:40px;padding:0 14px;font-size:14px}.dropdown-menu{max-height:200px}}\n"] }]
|
|
518
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { label: [{
|
|
519
|
+
type: Input
|
|
520
|
+
}], placeholder: [{
|
|
521
|
+
type: Input
|
|
522
|
+
}], options: [{
|
|
523
|
+
type: Input
|
|
524
|
+
}], value: [{
|
|
525
|
+
type: Input
|
|
526
|
+
}], width: [{
|
|
527
|
+
type: Input
|
|
528
|
+
}], height: [{
|
|
529
|
+
type: Input
|
|
530
|
+
}], valueChange: [{
|
|
531
|
+
type: Output
|
|
532
|
+
}], optionClick: [{
|
|
533
|
+
type: Output
|
|
534
|
+
}], searchChange: [{
|
|
535
|
+
type: Output
|
|
536
|
+
}], openedChange: [{
|
|
537
|
+
type: Output
|
|
538
|
+
}], onDocumentClick: [{
|
|
539
|
+
type: HostListener,
|
|
540
|
+
args: ['document:click',
|
|
541
|
+
['$event']]
|
|
542
|
+
}] } });
|
|
543
|
+
|
|
284
544
|
/*
|
|
285
545
|
* Public API Surface of balinaui-components
|
|
286
546
|
*/
|
|
@@ -289,5 +549,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
289
549
|
* Generated bundle index. Do not edit.
|
|
290
550
|
*/
|
|
291
551
|
|
|
292
|
-
export { BalinauiComponents, Button, Card, Navbar, TimeFilter };
|
|
552
|
+
export { BalinauiComponents, Button, Card, DateInput, Dropdown, Navbar, TextBox, TimeFilter };
|
|
293
553
|
//# sourceMappingURL=balinasoftware-balinaui-components.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balinasoftware-balinaui-components.mjs","sources":["../../../projects/balinaui-components/src/lib/balinaui-components.ts","../../../projects/balinaui-components/src/lib/navbar/navbar.ts","../../../projects/balinaui-components/src/lib/navbar/navbar.html","../../../projects/balinaui-components/src/lib/button/button.ts","../../../projects/balinaui-components/src/lib/button/button.html","../../../projects/balinaui-components/src/lib/card/card.ts","../../../projects/balinaui-components/src/lib/card/card.html","../../../projects/balinaui-components/src/lib/time-filter/time-filter.ts","../../../projects/balinaui-components/src/lib/time-filter/time-filter.html","../../../projects/balinaui-components/src/public-api.ts","../../../projects/balinaui-components/src/balinasoftware-balinaui-components.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-balinaui-components',\n imports: [],\n template: ` <p>balinaui-components works!</p> `,\n styles: ``,\n})\nexport class BalinauiComponents {}\n","import { Component, ElementRef, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';\nimport { EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { MatIconModule } from '@angular/material/icon';\nexport interface NavLink {\n label: string;\n url: string;\n}\n\nexport interface UserProfile {\n name: any;\n username: string;\n email: string;\n image?: string;\n role?: string;\n initials?: string;\n}\n@Component({\n selector: 'lib-navbar',\n standalone: true,\n imports: [CommonModule, RouterModule, MatIconModule],\n templateUrl: './navbar.html',\n styleUrl: './navbar.css',\n})\nexport class Navbar {\n\n // Brand\n @Input() brand = 'Aero';\n\n @Input() logoAlt = 'Aero logo';\n\n @Input() image = '';\n\n // Navigation\n @Input() links: NavLink[] = [];\n\n // Authentication\n @Input() initiallyLoggedIn = false;\n\n // User profile\n @Input() user: UserProfile = {\n username: 'Guest User',\n email: 'guest@example.com',\n image: '',\n role: 'Guest',\n name: undefined\n };\n\n // Icons\n @Input() notificationIcon = 'notifications';\n\n @Input() profileIcon = 'account_circle';\n\n @Input() userIcon = 'person';\n\n @Input() logoutIcon = 'logout';\n\n // Events\n @Output() login = new EventEmitter<void>();\n\n @Output() logout = new EventEmitter<void>();\n\n isLoggedIn = false;\n isDropdownOpen = false;\n\n constructor(private elementRef: ElementRef) { }\n\n ngOnInit(): void {\n this.isLoggedIn = this.initiallyLoggedIn;\n }\n\n handleLoginClick(): void {\n this.isLoggedIn = true;\n this.login.emit();\n }\n\n handleProfileClick(): void {\n this.isDropdownOpen = !this.isDropdownOpen;\n }\n\n handleLogoutClick(): void {\n this.isLoggedIn = false;\n this.isDropdownOpen = false;\n this.logout.emit();\n }\n\n @HostListener('document:mousedown', ['$event'])\n onDocumentClick(event: MouseEvent): void {\n\n if (\n this.isDropdownOpen &&\n !this.elementRef.nativeElement.contains(event.target)\n ) {\n this.isDropdownOpen = false;\n }\n }\n}\n","<header class=\"anv-navbar\">\n\n <!--TOP STRIPE-->\n <div class=\"anv-topbar\"></div>\n <!--NAVBAR-->\n <div class=\"anv-stripes\">\n <div class=\"anv-content\">\n\n <!--BRAND / LOGO-->\n <img *ngIf=\"image\" [src]=\"image\" [alt]=\"logoAlt\" class=\"anv-brand-icon\" />\n <span *ngIf=\"brand\" class=\"anv-brand-name\">\n {{ brand }}\n </span>\n\n <!--NAVIGATION LINKS-->\n <nav class=\"anv-links\" aria-label=\"Main navigation\">\n <a *ngFor=\"let link of links\" [routerLink]=\"link.url\" routerLinkActive=\"anv-link-active\"\n [routerLinkActiveOptions]=\"{ exact: true }\" class=\"anv-link\">\n {{ link.label }}\n </a>\n </nav>\n\n\n <!--ACTIONS-->\n <div class=\"anv-actions\">\n <!--NOTIFICATION-->\n <button type=\"button\" class=\"anv-icon-btn\" aria-label=\"Notifications\">\n <span class=\"material-icons\">\n {{ notificationIcon }}\n </span>\n </button>\n\n \n <!--DIVIDER-->\n <span class=\"anv-divider\"></span>\n\n <!--LOGIN-->\n <button *ngIf=\"!isLoggedIn\" type=\"button\" class=\"anv-login-btn\" (click)=\"handleLoginClick()\">\n Login\n </button>\n\n <!--PROFILE-->\n <div *ngIf=\"isLoggedIn\" class=\"anv-profile-wrap\">\n\n <!-- PROFILE BUTTON -->\n <button type=\"button\" class=\"anv-profile-btn\" (click)=\"handleProfileClick()\"\n [attr.aria-expanded]=\"isDropdownOpen\" aria-haspopup=\"true\" aria-label=\"User profile\">\n <img *ngIf=\"user.image\" [src]=\"user.image\" [alt]=\"user.name\" class=\"anv-profile-image\" />\n <span *ngIf=\"!user.image\" class=\"material-icons\">\n {{ profileIcon }}\n </span>\n \n </button>\n\n <!-- PROFILE DROPDOWN-->\n\n <div *ngIf=\"isDropdownOpen\" class=\"anv-dropdown\">\n <!-- USER INFORMATION -->\n <div class=\"anv-dropdown-header\">\n <!-- USER IMAGE -->\n <div class=\"anv-dropdown-avatar\">\n <img *ngIf=\"user.image\" [src]=\"user.image\" [alt]=\"user.name\" />\n <span *ngIf=\"!user.image\" class=\"material-icons\">\n {{ userIcon }}\n </span>\n </div>\n\n <!-- USER DETAILS -->\n\n <div class=\"anv-dropdown-info\">\n <span class=\"anv-dropdown-name\">\n {{ user.name }}\n </span>\n <span class=\"anv-dropdown-email\">\n {{ user.email }}\n </span>\n <span *ngIf=\"user.role\" class=\"anv-dropdown-role\">\n {{ user.role }}\n </span>\n </div>\n </div>\n\n <!-- DIVIDER -->\n <hr class=\"anv-dropdown-sep\">\n <!-- LOGOUT -->\n <button type=\"button\" class=\"anv-dropdown-item anv-logout\" (click)=\"handleLogoutClick()\">\n <span class=\"material-icons\">\n {{ logoutIcon }}\n </span>\n <span>\n Log out\n </span>\n </button>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n</header>","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nexport type ButtonVariant =\n | 'solid'\n | 'outline'\n | 'ghost';\n\nexport type ButtonColor =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'light'\n | 'dark'\n | 'link';\n\nexport type ButtonSize =\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl';\n\n@Component({\n selector: 'lib-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n})\nexport class Button {\n // CONTENT\n @Input() text = 'Button';\n // BUTTON TYPE\n @Input() type: 'button' | 'submit' | 'reset' = 'button';\n // VARIANT\n @Input() variant: ButtonVariant = 'solid';\n // STANDARD COLOR\n @Input() color: ButtonColor = 'primary';\n // CUSTOM COLORS\n @Input() customColor?: string;\n @Input() hoverColor?: string;\n @Input() activeColor?: string;\n @Input() textColor?: string;\n @Input() borderColor?: string;\n @Input() hoverTextColor?: string;\n @Input() activeTextColor?: string;\n @Input() disabledColor?: string;\n @Input() disabledTextColor?: string;\n @Input() disabledBorderColor?: string;\n // SIZE\n @Input() size: ButtonSize = 'md';\n // DISABLED\n @Input() disabled = false;\n // CLICK EVENT\n \n @Output() buttonClick = new EventEmitter<MouseEvent>();\n // CLICK HANDLER\n handleClick(event: MouseEvent): void {\n\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n\n this.buttonClick.emit(event);\n }\n\n // CSS VARIABLES\n\n get buttonStyles(): Record<string, string> {\n\n const styles: Record<string, string> = {};\n\n if (this.customColor) {\n styles['--button-custom-color'] = this.customColor;\n }\n\n if (this.hoverColor) {\n styles['--button-hover-color'] = this.hoverColor;\n }\n\n if (this.activeColor) {\n styles['--button-active-color'] = this.activeColor;\n }\n\n if (this.textColor) {\n styles['--button-text-color'] = this.textColor;\n }\n\n if (this.borderColor) {\n styles['--button-border-color'] = this.borderColor;\n }\n\n if (this.hoverTextColor) {\n styles['--button-hover-text-color'] = this.hoverTextColor;\n }\n\n if (this.activeTextColor) {\n styles['--button-active-text-color'] = this.activeTextColor;\n }\n\n if (this.disabledColor) {\n styles['--button-disabled-color'] = this.disabledColor;\n }\n\n if (this.disabledTextColor) {\n styles['--button-disabled-text-color'] =\n this.disabledTextColor;\n }\n\n if (this.disabledBorderColor) {\n styles['--button-disabled-border-color'] =\n this.disabledBorderColor;\n }\n\n return styles;\n }\n}","<button\n [type]=\"type\"\n [disabled]=\"disabled\"\n\n [ngClass]=\"[\n 'lib-button',\n 'lib-button-' + variant,\n 'lib-button-' + color,\n 'lib-button-' + size\n ]\"\n\n [ngStyle]=\"buttonStyles\"\n\n (click)=\"handleClick($event)\"\n>\n {{ text }}\n</button>","import { Component , Input ,Output ,EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-card',\n standalone: true,\n imports: [],\n templateUrl: './card.html',\n styleUrl: './card.css',\n})\nexport class Card {\n @Input() title: string = 'Last 24 hours';\n\n @Input() month: string = 'Jul';\n\n @Input() day: string | number = 9;\n\n @Input() description: string =\n '156 flights were monitored with 96.8% on-time performance. Minor delays occurred due to weather and air traffic.';\n\n @Output() cardClick = new EventEmitter<void>();\n\n onCardClick(): void {\n this.cardClick.emit();\n }\n}\n","<div class=\"card mat-elevation-z1\" (click)=\"onCardClick()\" role=\"button\" tabindex=\"0\">\n\n <!-- Title -->\n <h2 class=\"mat-headline-4 card-title\">\n {{ title }}\n </h2>\n\n <!-- Content -->\n <div class=\"card-content\">\n\n <!-- Date -->\n <div class=\"date-box\">\n\n <div class=\"month mat-title-medium\">\n {{ month }}\n </div>\n\n <div class=\"day mat-headline-5\">\n {{ day }}\n </div>\n\n </div>\n\n <!-- Description -->\n <div class=\"description mat-body-large\">\n {{ description }}\n </div>\n\n </div>\n\n</div>","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-time-filter',\n standalone: true,\n imports: [],\n templateUrl: './time-filter.html',\n styleUrl: './time-filter.css',\n})\nexport class TimeFilter {\n\n @Input() label: string = '';\n\n @Input() value!: string;\n\n @Input() selectedValue: string = '';\n\n @Output() selectedValueChange = new EventEmitter<string>();\n\n @Output() clicked = new EventEmitter<MouseEvent>();\n\n get selected(): boolean {\n return this.value === this.selectedValue;\n }\n\n onClick(event: MouseEvent): void {\n\n // If already selected → unselect\n if (this.selected) {\n this.selectedValueChange.emit('');\n }\n\n // If not selected → select\n else {\n this.selectedValueChange.emit(this.value);\n }\n\n // Developer custom event\n this.clicked.emit(event);\n }\n}\n","<div class=\"time-filter\" (click)=\"onClick($event)\" role=\"button\" tabindex=\"0\">\n <div class=\"radio-circle\" [class.selected]=\"selected\">\n <div class=\"radio-dot\"></div>\n </div>\n\n <span class=\"label\">\n {{ label }}\n </span>\n</div>","/*\n * Public API Surface of balinaui-components\n */\n\nexport * from './lib/balinaui-components';\nexport * from './lib/navbar/navbar';\nexport * from './lib/button/button';\nexport * from './lib/card/card';\nexport * from './lib/time-filter/time-filter';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAQa,kBAAkB,CAAA;uGAAlB,kBAAkB,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,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC;;aAGK;YACH,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC3C;;AAGA,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IAC1B;uGA9BW,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,QAAA,EAAA,IAAA,EAAA,UAAU,oOCTvB,qRAQM,EAAA,MAAA,EAAA,CAAA,qmBAAA,CAAA,EAAA,CAAA;;2FDCO,UAAU,EAAA,UAAA,EAAA,CAAA;kBAPtB,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,qRAAA,EAAA,MAAA,EAAA,CAAA,qmBAAA,CAAA,EAAA;;sBAMV;;sBAEA;;sBAEA;;sBAEA;;sBAEA;;;AEnBH;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"balinasoftware-balinaui-components.mjs","sources":["../../../projects/balinaui-components/src/lib/balinaui-components.ts","../../../projects/balinaui-components/src/lib/navbar/navbar.ts","../../../projects/balinaui-components/src/lib/navbar/navbar.html","../../../projects/balinaui-components/src/lib/button/button.ts","../../../projects/balinaui-components/src/lib/button/button.html","../../../projects/balinaui-components/src/lib/card/card.ts","../../../projects/balinaui-components/src/lib/card/card.html","../../../projects/balinaui-components/src/lib/time-filter/time-filter.ts","../../../projects/balinaui-components/src/lib/time-filter/time-filter.html","../../../projects/balinaui-components/src/lib/text-box/text-box.ts","../../../projects/balinaui-components/src/lib/text-box/text-box.html","../../../projects/balinaui-components/src/lib/date-input/date-input.ts","../../../projects/balinaui-components/src/lib/date-input/date-input.html","../../../projects/balinaui-components/src/lib/dropdown/dropdown.ts","../../../projects/balinaui-components/src/lib/dropdown/dropdown.html","../../../projects/balinaui-components/src/public-api.ts","../../../projects/balinaui-components/src/balinasoftware-balinaui-components.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-balinaui-components',\n imports: [],\n template: ` <p>balinaui-components works!</p> `,\n styles: ``,\n})\nexport class BalinauiComponents {}\n","import { Component, ElementRef, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';\nimport { EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { MatIconModule } from '@angular/material/icon';\nexport interface NavLink {\n label: string;\n url: string;\n}\n\nexport interface UserProfile {\n name: any;\n username: string;\n email: string;\n image?: string;\n role?: string;\n initials?: string;\n}\n@Component({\n selector: 'lib-navbar',\n standalone: true,\n imports: [CommonModule, RouterModule, MatIconModule],\n templateUrl: './navbar.html',\n styleUrl: './navbar.css',\n})\nexport class Navbar {\n\n // Brand\n @Input() brand = 'Aero';\n\n @Input() logoAlt = 'Aero logo';\n\n @Input() image = '';\n\n // Navigation\n @Input() links: NavLink[] = [];\n\n // Authentication\n @Input() initiallyLoggedIn = false;\n\n // User profile\n @Input() user: UserProfile = {\n username: 'Guest User',\n email: 'guest@example.com',\n image: '',\n role: 'Guest',\n name: undefined\n };\n\n // Icons\n @Input() notificationIcon = 'notifications';\n\n @Input() profileIcon = 'account_circle';\n\n @Input() userIcon = 'person';\n\n @Input() logoutIcon = 'logout';\n\n // Events\n @Output() login = new EventEmitter<void>();\n\n @Output() logout = new EventEmitter<void>();\n\n isLoggedIn = false;\n isDropdownOpen = false;\n\n constructor(private elementRef: ElementRef) { }\n\n ngOnInit(): void {\n this.isLoggedIn = this.initiallyLoggedIn;\n }\n\n handleLoginClick(): void {\n this.isLoggedIn = true;\n this.login.emit();\n }\n\n handleProfileClick(): void {\n this.isDropdownOpen = !this.isDropdownOpen;\n }\n\n handleLogoutClick(): void {\n this.isLoggedIn = false;\n this.isDropdownOpen = false;\n this.logout.emit();\n }\n\n @HostListener('document:mousedown', ['$event'])\n onDocumentClick(event: MouseEvent): void {\n\n if (\n this.isDropdownOpen &&\n !this.elementRef.nativeElement.contains(event.target)\n ) {\n this.isDropdownOpen = false;\n }\n }\n}\n","<header class=\"anv-navbar\">\n\n <!--TOP STRIPE-->\n <div class=\"anv-topbar\"></div>\n <!--NAVBAR-->\n <div class=\"anv-stripes\">\n <div class=\"anv-content\">\n\n <!--BRAND / LOGO-->\n <img *ngIf=\"image\" [src]=\"image\" [alt]=\"logoAlt\" class=\"anv-brand-icon\" />\n <span *ngIf=\"brand\" class=\"anv-brand-name\">\n {{ brand }}\n </span>\n\n <!--NAVIGATION LINKS-->\n <nav class=\"anv-links\" aria-label=\"Main navigation\">\n <a *ngFor=\"let link of links\" [routerLink]=\"link.url\" routerLinkActive=\"anv-link-active\"\n [routerLinkActiveOptions]=\"{ exact: true }\" class=\"anv-link\">\n {{ link.label }}\n </a>\n </nav>\n\n\n <!--ACTIONS-->\n <div class=\"anv-actions\">\n <!--NOTIFICATION-->\n <button type=\"button\" class=\"anv-icon-btn\" aria-label=\"Notifications\">\n <span class=\"material-icons\">\n {{ notificationIcon }}\n </span>\n </button>\n\n \n <!--DIVIDER-->\n <span class=\"anv-divider\"></span>\n\n <!--LOGIN-->\n <button *ngIf=\"!isLoggedIn\" type=\"button\" class=\"anv-login-btn\" (click)=\"handleLoginClick()\">\n Login\n </button>\n\n <!--PROFILE-->\n <div *ngIf=\"isLoggedIn\" class=\"anv-profile-wrap\">\n\n <!-- PROFILE BUTTON -->\n <button type=\"button\" class=\"anv-profile-btn\" (click)=\"handleProfileClick()\"\n [attr.aria-expanded]=\"isDropdownOpen\" aria-haspopup=\"true\" aria-label=\"User profile\">\n <img *ngIf=\"user.image\" [src]=\"user.image\" [alt]=\"user.name\" class=\"anv-profile-image\" />\n <span *ngIf=\"!user.image\" class=\"material-icons\">\n {{ profileIcon }}\n </span>\n \n </button>\n\n <!-- PROFILE DROPDOWN-->\n\n <div *ngIf=\"isDropdownOpen\" class=\"anv-dropdown\">\n <!-- USER INFORMATION -->\n <div class=\"anv-dropdown-header\">\n <!-- USER IMAGE -->\n <div class=\"anv-dropdown-avatar\">\n <img *ngIf=\"user.image\" [src]=\"user.image\" [alt]=\"user.name\" />\n <span *ngIf=\"!user.image\" class=\"material-icons\">\n {{ userIcon }}\n </span>\n </div>\n\n <!-- USER DETAILS -->\n\n <div class=\"anv-dropdown-info\">\n <span class=\"anv-dropdown-name\">\n {{ user.name }}\n </span>\n <span class=\"anv-dropdown-email\">\n {{ user.email }}\n </span>\n <span *ngIf=\"user.role\" class=\"anv-dropdown-role\">\n {{ user.role }}\n </span>\n </div>\n </div>\n\n <!-- DIVIDER -->\n <hr class=\"anv-dropdown-sep\">\n <!-- LOGOUT -->\n <button type=\"button\" class=\"anv-dropdown-item anv-logout\" (click)=\"handleLogoutClick()\">\n <span class=\"material-icons\">\n {{ logoutIcon }}\n </span>\n <span>\n Log out\n </span>\n </button>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n</header>","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nexport type ButtonVariant =\n | 'solid'\n | 'outline'\n | 'ghost';\n\nexport type ButtonColor =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'light'\n | 'dark'\n | 'link';\n\nexport type ButtonSize =\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl';\n\n@Component({\n selector: 'lib-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n})\nexport class Button {\n // CONTENT\n @Input() text = 'Button';\n // BUTTON TYPE\n @Input() type: 'button' | 'submit' | 'reset' = 'button';\n // VARIANT\n @Input() variant: ButtonVariant = 'solid';\n // STANDARD COLOR\n @Input() color: ButtonColor = 'primary';\n // CUSTOM COLORS\n @Input() customColor?: string;\n @Input() hoverColor?: string;\n @Input() activeColor?: string;\n @Input() textColor?: string;\n @Input() borderColor?: string;\n @Input() hoverTextColor?: string;\n @Input() activeTextColor?: string;\n @Input() disabledColor?: string;\n @Input() disabledTextColor?: string;\n @Input() disabledBorderColor?: string;\n // SIZE\n @Input() size: ButtonSize = 'md';\n // DISABLED\n @Input() disabled = false;\n // CLICK EVENT\n \n @Output() buttonClick = new EventEmitter<MouseEvent>();\n // CLICK HANDLER\n handleClick(event: MouseEvent): void {\n\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n\n this.buttonClick.emit(event);\n }\n\n // CSS VARIABLES\n\n get buttonStyles(): Record<string, string> {\n\n const styles: Record<string, string> = {};\n\n if (this.customColor) {\n styles['--button-custom-color'] = this.customColor;\n }\n\n if (this.hoverColor) {\n styles['--button-hover-color'] = this.hoverColor;\n }\n\n if (this.activeColor) {\n styles['--button-active-color'] = this.activeColor;\n }\n\n if (this.textColor) {\n styles['--button-text-color'] = this.textColor;\n }\n\n if (this.borderColor) {\n styles['--button-border-color'] = this.borderColor;\n }\n\n if (this.hoverTextColor) {\n styles['--button-hover-text-color'] = this.hoverTextColor;\n }\n\n if (this.activeTextColor) {\n styles['--button-active-text-color'] = this.activeTextColor;\n }\n\n if (this.disabledColor) {\n styles['--button-disabled-color'] = this.disabledColor;\n }\n\n if (this.disabledTextColor) {\n styles['--button-disabled-text-color'] =\n this.disabledTextColor;\n }\n\n if (this.disabledBorderColor) {\n styles['--button-disabled-border-color'] =\n this.disabledBorderColor;\n }\n\n return styles;\n }\n}","<button\n [type]=\"type\"\n [disabled]=\"disabled\"\n\n [ngClass]=\"[\n 'lib-button',\n 'lib-button-' + variant,\n 'lib-button-' + color,\n 'lib-button-' + size\n ]\"\n\n [ngStyle]=\"buttonStyles\"\n\n (click)=\"handleClick($event)\"\n>\n {{ text }}\n</button>","import { Component , Input ,Output ,EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-card',\n standalone: true,\n imports: [],\n templateUrl: './card.html',\n styleUrl: './card.css',\n})\nexport class Card {\n @Input() title: string = 'Last 24 hours';\n\n @Input() month: string = 'Jul';\n\n @Input() day: string | number = 9;\n\n @Input() description: string =\n '156 flights were monitored with 96.8% on-time performance. Minor delays occurred due to weather and air traffic.';\n\n @Output() cardClick = new EventEmitter<void>();\n\n onCardClick(): void {\n this.cardClick.emit();\n }\n}\n","<div class=\"card mat-elevation-z1\" (click)=\"onCardClick()\" role=\"button\" tabindex=\"0\">\n\n <!-- Title -->\n <h2 class=\"mat-headline-4 card-title\">\n {{ title }}\n </h2>\n\n <!-- Content -->\n <div class=\"card-content\">\n\n <!-- Date -->\n <div class=\"date-box\">\n\n <div class=\"month mat-title-medium\">\n {{ month }}\n </div>\n\n <div class=\"day mat-headline-5\">\n {{ day }}\n </div>\n\n </div>\n\n <!-- Description -->\n <div class=\"description mat-body-large\">\n {{ description }}\n </div>\n\n </div>\n\n</div>","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-time-filter',\n standalone: true,\n imports: [],\n templateUrl: './time-filter.html',\n styleUrl: './time-filter.css',\n})\nexport class TimeFilter {\n\n @Input() label: string = '';\n\n @Input() value!: string;\n\n @Input() selectedValue: string = '';\n\n @Output() selectedValueChange = new EventEmitter<string>();\n\n @Output() clicked = new EventEmitter<MouseEvent>();\n\n get selected(): boolean {\n return this.value === this.selectedValue;\n }\n\n onClick(event: MouseEvent): void {\n\n // If already selected → unselect\n if (this.selected) {\n this.selectedValueChange.emit('');\n }\n\n // If not selected → select\n else {\n this.selectedValueChange.emit(this.value);\n }\n\n // Developer custom event\n this.clicked.emit(event);\n }\n}\n","<div class=\"time-filter\" (click)=\"onClick($event)\" role=\"button\" tabindex=\"0\">\n <div class=\"radio-circle\" [class.selected]=\"selected\">\n <div class=\"radio-dot\"></div>\n </div>\n\n <span class=\"label\">\n {{ label }}\n </span>\n</div>","import {Component,EventEmitter,Input,Output} from '@angular/core';\n\n@Component({\n selector: 'lib-text-box',\n standalone: true,\n imports: [],\n templateUrl: './text-box.html',\n styleUrl: './text-box.css'\n})\nexport class TextBox {\n\n @Input() placeholder: string = '';\n\n @Input() value: string = '';\n\n @Input() width: string = '300px';\n\n @Input() height: string = '44px';\n\n @Input() type: string = 'text';\n\n @Input() disabled: boolean = false;\n\n @Output() valueChange =\n new EventEmitter<string>();\n\n @Output() inputChange =\n new EventEmitter<string>();\n\n @Output() clicked =\n new EventEmitter<MouseEvent>();\n\n\n onInput(event: Event): void {\n\n const input =\n event.target as HTMLInputElement;\n\n this.value = input.value;\n\n this.valueChange.emit(\n this.value\n );\n\n this.inputChange.emit(\n this.value\n );\n }\n\n\n onClick(event: MouseEvent): void {\n\n this.clicked.emit(event);\n }\n}","<div\n class=\"text-box-container\"\n [style.width]=\"width\"\n>\n\n <input\n class=\"text-box-input\"\n\n [style.height]=\"height\"\n\n [type]=\"type\"\n\n [placeholder]=\"placeholder\"\n\n [value]=\"value\"\n\n [disabled]=\"disabled\"\n\n (input)=\"onInput($event)\"\n\n (click)=\"onClick($event)\"\n />\n\n</div>","import {Component,ElementRef,EventEmitter,Input,Output,ViewChild} from '@angular/core';\n\n@Component({\n selector: 'lib-date-input',\n standalone: true,\n imports: [],\n templateUrl: './date-input.html',\n styleUrl: './date-input.css'\n})\nexport class DateInput {\n\n @Input() label: string = 'Date To';\n\n @Input() value: string = '';\n\n @Input() width: string = '420px';\n\n @Input() height: string = '72px';\n\n @Input() min: string = '';\n\n @Input() max: string = '';\n\n @Output() valueChange =\n new EventEmitter<string>();\n\n @Output() dateChange =\n new EventEmitter<string>();\n\n @Output() clicked =\n new EventEmitter<MouseEvent>();\n\n\n @ViewChild('dateInput')\n dateInput!: ElementRef<HTMLInputElement>;\n\n\n /**\n * Open the browser's native date picker\n */\n openDatePicker(event?: MouseEvent): void {\n\n if (event) {\n this.clicked.emit(event);\n }\n\n const input = this.dateInput?.nativeElement;\n\n if (!input) {\n return;\n }\n\n // Modern browsers\n if ('showPicker' in HTMLInputElement.prototype) {\n input.showPicker();\n } else {\n // Fallback\n input.focus();\n }\n }\n\n\n /**\n * Date changed\n */\n onDateChange(event: Event): void {\n\n const input =\n event.target as HTMLInputElement;\n\n this.value = input.value;\n\n this.valueChange.emit(this.value);\n\n this.dateChange.emit(this.value);\n }\n}","<div\n class=\"date-container\"\n [style.width]=\"width\"\n>\n\n <div\n class=\"date-wrapper\"\n [style.height]=\"height\"\n (click)=\"openDatePicker($event)\"\n >\n\n <!-- Floating label -->\n\n <label class=\"date-label\">\n {{ label }}\n </label>\n\n\n <!-- Date input -->\n\n <input\n #dateInput\n class=\"date-input\"\n type=\"date\"\n\n [value]=\"value\"\n\n [min]=\"min\"\n [max]=\"max\"\n\n (change)=\"onDateChange($event)\"\n\n (click)=\"$event.stopPropagation()\"\n\n autocomplete=\"off\"\n />\n\n\n <!-- Calendar button -->\n\n <button\n type=\"button\"\n class=\"calendar-button\"\n\n (click)=\"openDatePicker($event)\"\n >\n\n <span class=\"calendar-icon\">\n\n <span class=\"calendar-top\"></span>\n\n <span class=\"calendar-body\"></span>\n\n </span>\n\n </button>\n\n </div>\n\n</div>","import {Component,ElementRef,EventEmitter,HostListener,Input,Output} from '@angular/core';\n\n@Component({\n selector: 'lib-dropdown',\n standalone: true,\n imports: [],\n templateUrl: './dropdown.html',\n styleUrl: './dropdown.css'\n})\nexport class Dropdown {\n\n // =========================\n // Inputs\n // =========================\n\n @Input() label: string = '';\n\n @Input() placeholder: string = '';\n\n @Input() options: string[] = [];\n\n @Input() value: string = '';\n\n @Input() width: string = '250px';\n\n @Input() height: string = '50px';\n\n\n // =========================\n // Outputs\n // =========================\n\n // Selected value\n @Output() valueChange =\n new EventEmitter<string>();\n\n // Developer custom event\n @Output() optionClick =\n new EventEmitter<string>();\n\n // Search event\n @Output() searchChange =\n new EventEmitter<string>();\n\n // Open / close event\n @Output() openedChange =\n new EventEmitter<boolean>();\n\n\n // =========================\n // Component state\n // =========================\n\n isOpen: boolean = false;\n\n searchText: string = '';\n\n\n constructor(\n private elementRef: ElementRef\n ) {}\n\n\n // =========================\n // Filter options\n // =========================\n\n get filteredOptions(): string[] {\n\n const search =\n this.searchText\n .toLowerCase()\n .trim();\n\n if (!search) {\n return this.options;\n }\n\n return this.options.filter(option =>\n option\n .toLowerCase()\n .includes(search)\n );\n }\n\n\n // =========================\n // Open dropdown\n // =========================\n\n openDropdown(): void {\n\n if (!this.isOpen) {\n\n this.isOpen = true;\n\n this.searchText = this.value;\n\n this.openedChange.emit(true);\n }\n }\n\n\n // =========================\n // Toggle dropdown\n // =========================\n\n toggleDropdown(): void {\n\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.searchText = this.value;\n }\n\n this.openedChange.emit(this.isOpen);\n }\n\n\n // =========================\n // Input / Search\n // =========================\n\n onInput(event: Event): void {\n\n const input =\n event.target as HTMLInputElement;\n\n this.searchText = input.value;\n\n // Automatically open while typing\n if (!this.isOpen) {\n\n this.isOpen = true;\n\n this.openedChange.emit(true);\n }\n\n // Tell developer about search\n this.searchChange.emit(\n this.searchText\n );\n }\n\n\n // =========================\n // Select option\n // =========================\n\n selectOption(option: string): void {\n\n // Put option name into input\n this.value = option;\n\n this.searchText = option;\n\n // Close dropdown\n this.isOpen = false;\n\n // Tell parent selected value\n this.valueChange.emit(option);\n\n // Developer custom event\n this.optionClick.emit(option);\n\n // Tell parent dropdown closed\n this.openedChange.emit(false);\n }\n\n\n // =========================\n // Clear\n // =========================\n\n clear(): void {\n\n this.value = '';\n\n this.searchText = '';\n\n this.valueChange.emit('');\n }\n\n\n // =========================\n // Click outside\n // =========================\n\n @HostListener(\n 'document:click',\n ['$event']\n )\n onDocumentClick(event: MouseEvent): void {\n\n const clickedInside =\n this.elementRef.nativeElement\n .contains(event.target);\n\n if (\n !clickedInside &&\n this.isOpen\n ) {\n\n this.isOpen = false;\n\n this.openedChange.emit(false);\n }\n }\n}","<div\n class=\"dropdown-container\"\n [style.width]=\"width\"\n>\n\n <!-- =========================\n INPUT\n ========================= -->\n\n <div\n class=\"dropdown-input-wrapper\"\n [style.height]=\"height\"\n [class.open]=\"isOpen\"\n >\n\n <!-- Floating label -->\n\n @if (label) {\n\n <label\n class=\"dropdown-label\"\n [class.active]=\"isOpen || value || searchText\"\n >\n {{ label }}\n </label>\n\n }\n\n\n <!-- Search input -->\n\n <input\n class=\"dropdown-input\"\n type=\"text\"\n [placeholder]=\"\n !isOpen && !value\n ? placeholder\n : ''\n \"\n [value]=\"searchText\"\n (input)=\"onInput($event)\"\n (click)=\"openDropdown()\"\n autocomplete=\"off\"\n />\n\n\n <!-- Arrow -->\n\n <button\n type=\"button\"\n class=\"dropdown-arrow\"\n (click)=\"toggleDropdown(); $event.stopPropagation()\"\n aria-label=\"Open dropdown\"\n >\n\n <span\n class=\"arrow\"\n [class.rotate]=\"isOpen\"\n >\n ⌄\n </span>\n\n </button>\n\n </div>\n\n\n <!-- =========================\n DROPDOWN OPTIONS\n ========================= -->\n\n @if (isOpen) {\n\n <div class=\"dropdown-menu\">\n\n @if (filteredOptions.length > 0) {\n\n @for (\n option of filteredOptions;\n track option\n ) {\n\n <button\n type=\"button\"\n class=\"dropdown-option\"\n [class.selected]=\"option === value\"\n (click)=\"selectOption(option)\"\n >\n\n {{ option }}\n\n </button>\n\n }\n\n } @else {\n\n <div class=\"no-results\">\n\n No results found\n\n </div>\n\n }\n\n </div>\n\n }\n\n</div>","/*\n * Public API Surface of balinaui-components\n */\n\nexport * from './lib/balinaui-components';\nexport * from './lib/navbar/navbar';\nexport * from './lib/button/button';\nexport * from './lib/card/card';\nexport * from './lib/time-filter/time-filter';\nexport * from './lib/text-box/text-box';\nexport * from './lib/date-input/date-input';\nexport * from './lib/dropdown/dropdown';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAQa,kBAAkB,CAAA;uGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,S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A,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,6YCTrB,00DA6GM,EAAA,MAAA,EAAA,CAAA,+hFAAA,CAAA,EAAA,CAAA;;2FDpGO,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAPpB,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,00DAAA,EAAA,MAAA,EAAA,CAAA,+hFAAA,CAAA,EAAA;;sBAUV;;sBAEA;;sBAEA;;sBAEA;;sBAEA;;sBAEA;;sBAQA;;sBAIA;;sBAIA;;sBAIA;;sBA+IA,YAAY;uBACX,gBAAgB;AAChB,oBAAA,CAAC,QAAQ,CAAC;;;AE9Ld;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -94,5 +94,70 @@ declare class TimeFilter {
|
|
|
94
94
|
static ɵcmp: i0.ɵɵComponentDeclaration<TimeFilter, "lib-time-filter", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
declare class TextBox {
|
|
98
|
+
placeholder: string;
|
|
99
|
+
value: string;
|
|
100
|
+
width: string;
|
|
101
|
+
height: string;
|
|
102
|
+
type: string;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
valueChange: EventEmitter<string>;
|
|
105
|
+
inputChange: EventEmitter<string>;
|
|
106
|
+
clicked: EventEmitter<MouseEvent>;
|
|
107
|
+
onInput(event: Event): void;
|
|
108
|
+
onClick(event: MouseEvent): void;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextBox, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextBox, "lib-text-box", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "inputChange": "inputChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class DateInput {
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
width: string;
|
|
117
|
+
height: string;
|
|
118
|
+
min: string;
|
|
119
|
+
max: string;
|
|
120
|
+
valueChange: EventEmitter<string>;
|
|
121
|
+
dateChange: EventEmitter<string>;
|
|
122
|
+
clicked: EventEmitter<MouseEvent>;
|
|
123
|
+
dateInput: ElementRef<HTMLInputElement>;
|
|
124
|
+
/**
|
|
125
|
+
* Open the browser's native date picker
|
|
126
|
+
*/
|
|
127
|
+
openDatePicker(event?: MouseEvent): void;
|
|
128
|
+
/**
|
|
129
|
+
* Date changed
|
|
130
|
+
*/
|
|
131
|
+
onDateChange(event: Event): void;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateInput, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInput, "lib-date-input", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "valueChange": "valueChange"; "dateChange": "dateChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class Dropdown {
|
|
137
|
+
private elementRef;
|
|
138
|
+
label: string;
|
|
139
|
+
placeholder: string;
|
|
140
|
+
options: string[];
|
|
141
|
+
value: string;
|
|
142
|
+
width: string;
|
|
143
|
+
height: string;
|
|
144
|
+
valueChange: EventEmitter<string>;
|
|
145
|
+
optionClick: EventEmitter<string>;
|
|
146
|
+
searchChange: EventEmitter<string>;
|
|
147
|
+
openedChange: EventEmitter<boolean>;
|
|
148
|
+
isOpen: boolean;
|
|
149
|
+
searchText: string;
|
|
150
|
+
constructor(elementRef: ElementRef);
|
|
151
|
+
get filteredOptions(): string[];
|
|
152
|
+
openDropdown(): void;
|
|
153
|
+
toggleDropdown(): void;
|
|
154
|
+
onInput(event: Event): void;
|
|
155
|
+
selectOption(option: string): void;
|
|
156
|
+
clear(): void;
|
|
157
|
+
onDocumentClick(event: MouseEvent): void;
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dropdown, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "lib-dropdown", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "valueChange": "valueChange"; "optionClick": "optionClick"; "searchChange": "searchChange"; "openedChange": "openedChange"; }, never, never, true, never>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { BalinauiComponents, Button, Card, DateInput, Dropdown, Navbar, TextBox, TimeFilter };
|
|
98
163
|
export type { ButtonColor, ButtonSize, ButtonVariant, NavLink, UserProfile };
|