ecabs-components 0.0.7 → 0.0.9
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/esm2020/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.mjs +19 -0
- package/esm2020/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.mjs +19 -0
- package/esm2020/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.mjs +76 -0
- package/esm2020/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.mjs +24 -0
- package/esm2020/lib/ecabs-phone/ecabs-phone.component.mjs +9 -9
- package/esm2020/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +17 -0
- package/esm2020/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.mjs +24 -0
- package/esm2020/lib/ecabs-table/ecabs-table.component.mjs +43 -0
- package/esm2020/lib/ecabs-table/ecabs-table.module.mjs +33 -0
- package/esm2020/public-api.mjs +9 -1
- package/fesm2015/ecabs-components.mjs +224 -12
- package/fesm2015/ecabs-components.mjs.map +1 -1
- package/fesm2020/ecabs-components.mjs +223 -10
- package/fesm2020/ecabs-components.mjs.map +1 -1
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.d.ts +12 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.d.ts +9 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.d.ts +28 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.d.ts +14 -0
- package/lib/ecabs-phone/ecabs-phone.component.d.ts +3 -2
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.d.ts +8 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.d.ts +9 -0
- package/lib/ecabs-table/ecabs-table.component.d.ts +18 -0
- package/lib/ecabs-table/ecabs-table.module.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Input, NgModule, HostBinding, EventEmitter, Output, Injectable, Directive, HostListener, ViewChild } from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule, HostBinding, EventEmitter, Output, Injectable, Directive, HostListener, ViewChild, ContentChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DecimalPipe } from '@angular/common';
|
|
5
5
|
import * as i5 from '@angular/material/button';
|
|
@@ -32,6 +32,15 @@ import * as i4$2 from 'ngx-mat-intl-tel-input';
|
|
|
32
32
|
import { NgxMatIntlTelInputComponent } from 'ngx-mat-intl-tel-input';
|
|
33
33
|
import * as i3$5 from '@angular/material/radio';
|
|
34
34
|
import { MatRadioModule } from '@angular/material/radio';
|
|
35
|
+
import * as i2$1 from '@angular/router';
|
|
36
|
+
import { RouterModule } from '@angular/router';
|
|
37
|
+
import * as i3$6 from '@angular/material/expansion';
|
|
38
|
+
import { MatExpansionPanel, MatExpansionModule } from '@angular/material/expansion';
|
|
39
|
+
import * as i5$2 from '@angular/material/chips';
|
|
40
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
41
|
+
import { MatTable, MatTableModule } from '@angular/material/table';
|
|
42
|
+
import * as i2$2 from '@angular/material/progress-bar';
|
|
43
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
35
44
|
|
|
36
45
|
class EcabsSpinnerComponent {
|
|
37
46
|
constructor() {
|
|
@@ -1855,14 +1864,10 @@ class EcabsPhoneComponent extends ElementBaseComponent {
|
|
|
1855
1864
|
this.injector = injector;
|
|
1856
1865
|
this.enableSearch = true;
|
|
1857
1866
|
this.useOnlyDisabledClass = false;
|
|
1858
|
-
this.phoneForm = new UntypedFormGroup({
|
|
1859
|
-
phone: new UntypedFormControl(undefined, this.required ? [Validators.required] : []),
|
|
1860
|
-
});
|
|
1861
1867
|
this.prohibitedCharacters = ['-'];
|
|
1862
1868
|
this.onChange = () => { };
|
|
1863
1869
|
this.onTouch = () => { };
|
|
1864
1870
|
}
|
|
1865
|
-
;
|
|
1866
1871
|
get value() {
|
|
1867
1872
|
var _a;
|
|
1868
1873
|
return (_a = this.phoneForm.get('phone')) === null || _a === void 0 ? void 0 : _a.value;
|
|
@@ -1877,18 +1882,21 @@ class EcabsPhoneComponent extends ElementBaseComponent {
|
|
|
1877
1882
|
event.preventDefault();
|
|
1878
1883
|
}
|
|
1879
1884
|
}
|
|
1885
|
+
ngOnInit() {
|
|
1886
|
+
this.phoneForm = new UntypedFormGroup({
|
|
1887
|
+
phone: new UntypedFormControl(undefined, this.required ? [Validators.required] : []),
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1880
1890
|
ngAfterViewInit() {
|
|
1881
1891
|
const ngControl = this.injector.get(NgControl, null);
|
|
1882
1892
|
if (ngControl) {
|
|
1883
1893
|
this.control = ngControl.control;
|
|
1884
1894
|
}
|
|
1885
1895
|
this.phoneSub = this.phoneForm.valueChanges.subscribe((formVal) => {
|
|
1886
|
-
var _a, _b;
|
|
1887
1896
|
this.value = formVal === null || formVal === void 0 ? void 0 : formVal.phone;
|
|
1888
1897
|
this.onChange(this.value);
|
|
1889
1898
|
this.onTouch(this.value);
|
|
1890
|
-
|
|
1891
|
-
this.control.setErrors(errors ? errors : null);
|
|
1899
|
+
this.control.setErrors(this.phoneForm.get('phone').errors);
|
|
1892
1900
|
});
|
|
1893
1901
|
}
|
|
1894
1902
|
writeValue(value) {
|
|
@@ -1908,10 +1916,9 @@ class EcabsPhoneComponent extends ElementBaseComponent {
|
|
|
1908
1916
|
this.phoneInput.reset();
|
|
1909
1917
|
}
|
|
1910
1918
|
onBlur() {
|
|
1911
|
-
|
|
1919
|
+
this.control.setErrors(this.phoneForm.get('phone').errors);
|
|
1912
1920
|
this.onTouch(this.value);
|
|
1913
|
-
|
|
1914
|
-
this.control.setErrors(errors ? errors : null);
|
|
1921
|
+
this.onChange(this.value);
|
|
1915
1922
|
}
|
|
1916
1923
|
}
|
|
1917
1924
|
EcabsPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsPhoneComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2525,9 +2532,214 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2525
2532
|
}]
|
|
2526
2533
|
}] });
|
|
2527
2534
|
|
|
2535
|
+
class EcabsEmptyPlaceholderComponent {
|
|
2536
|
+
}
|
|
2537
|
+
EcabsEmptyPlaceholderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2538
|
+
EcabsEmptyPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: EcabsEmptyPlaceholderComponent, selector: "ecabs-empty-placeholder", inputs: { isEmptyMessage: "isEmptyMessage", redirectPath: "redirectPath", srcImage: "srcImage" }, ngImport: i0, template: "<div class=\"w-full flex flex-col items-center justify-items-center\">\r\n <img class=\"mt-10 w-60\" [src]=\"srcImage\" alt=\"\" />\r\n\r\n <span class=\"heading--sm text-gray-400 my-2\">{{ isEmptyMessage }}</span>\r\n\r\n <a *ngIf=\"redirectPath\" [routerLink]=\"redirectPath?.path && [redirectPath.path]\" class=\"text-sm\">\r\n {{ redirectPath.title }}\r\n </a>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
2539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderComponent, decorators: [{
|
|
2540
|
+
type: Component,
|
|
2541
|
+
args: [{ selector: 'ecabs-empty-placeholder', template: "<div class=\"w-full flex flex-col items-center justify-items-center\">\r\n <img class=\"mt-10 w-60\" [src]=\"srcImage\" alt=\"\" />\r\n\r\n <span class=\"heading--sm text-gray-400 my-2\">{{ isEmptyMessage }}</span>\r\n\r\n <a *ngIf=\"redirectPath\" [routerLink]=\"redirectPath?.path && [redirectPath.path]\" class=\"text-sm\">\r\n {{ redirectPath.title }}\r\n </a>\r\n</div>\r\n" }]
|
|
2542
|
+
}], propDecorators: { isEmptyMessage: [{
|
|
2543
|
+
type: Input
|
|
2544
|
+
}], redirectPath: [{
|
|
2545
|
+
type: Input
|
|
2546
|
+
}], srcImage: [{
|
|
2547
|
+
type: Input
|
|
2548
|
+
}] } });
|
|
2549
|
+
|
|
2550
|
+
class EcabsEmptyPlaceholderModule {
|
|
2551
|
+
}
|
|
2552
|
+
EcabsEmptyPlaceholderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2553
|
+
EcabsEmptyPlaceholderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderModule, declarations: [EcabsEmptyPlaceholderComponent], imports: [CommonModule, RouterModule], exports: [EcabsEmptyPlaceholderComponent] });
|
|
2554
|
+
EcabsEmptyPlaceholderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderModule, imports: [CommonModule, RouterModule] });
|
|
2555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsEmptyPlaceholderModule, decorators: [{
|
|
2556
|
+
type: NgModule,
|
|
2557
|
+
args: [{
|
|
2558
|
+
declarations: [EcabsEmptyPlaceholderComponent],
|
|
2559
|
+
imports: [CommonModule, RouterModule],
|
|
2560
|
+
exports: [EcabsEmptyPlaceholderComponent],
|
|
2561
|
+
}]
|
|
2562
|
+
}] });
|
|
2563
|
+
|
|
2564
|
+
class EcabsExpansionPanelComponent {
|
|
2565
|
+
constructor() {
|
|
2566
|
+
this.title = '';
|
|
2567
|
+
this.expanded = false;
|
|
2568
|
+
this.disabled = false;
|
|
2569
|
+
this.hideToggle = false;
|
|
2570
|
+
this.checked = new EventEmitter();
|
|
2571
|
+
this.opened = new EventEmitter();
|
|
2572
|
+
this.toggle = false;
|
|
2573
|
+
}
|
|
2574
|
+
onOpened() {
|
|
2575
|
+
this.opened.emit();
|
|
2576
|
+
}
|
|
2577
|
+
ngOnChanges(changes) {
|
|
2578
|
+
const { closePanel } = changes;
|
|
2579
|
+
if (closePanel && this.expansionPanel) {
|
|
2580
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
2581
|
+
closePanel.currentValue === true ? this.expansionPanel.close() : this.expansionPanel.open();
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
toggleAction() {
|
|
2585
|
+
this.expanded = !this.expanded;
|
|
2586
|
+
this.checked.emit(this.expanded);
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
EcabsExpansionPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2590
|
+
EcabsExpansionPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: EcabsExpansionPanelComponent, selector: "ecabs-expansion-panel", inputs: { title: "title", description: "description", index: "index", expanded: "expanded", disabled: "disabled", errorMessage: "errorMessage", showErrorMessage: "showErrorMessage", closePanel: "closePanel", showIcon: "showIcon", iconName: "iconName", showCheckbox: "showCheckbox", showStatus: "showStatus", status: "status", hideToggle: "hideToggle" }, outputs: { checked: "checked", opened: "opened" }, viewQueries: [{ propertyName: "expansionPanel", first: true, predicate: MatExpansionPanel, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-accordion class=\"example-headers-align\" multi>\r\n <mat-expansion-panel [expanded]=\"expanded\" [disabled]=\"disabled\" (opened)=\"onOpened()\" [hideToggle]=\"hideToggle\">\r\n <mat-expansion-panel-header *ngIf=\"title\">\r\n <mat-panel-title>\r\n <div>\r\n <div class=\"flex flex-row\">\r\n <div *ngIf=\"index && !showErrorMessage\" class=\"border-current border-2 rounded-full mr-3 index\">\r\n {{ index }}\r\n </div>\r\n <div *ngIf=\"!showErrorMessage && showIcon\" class=\"mr-3 rounded\">\r\n <mat-icon class=\"rounded-icon !text-lg -mt-1\">{{ iconName }}</mat-icon>\r\n </div>\r\n <div *ngIf=\"showErrorMessage\" class=\"mt-1 mr-2\">\r\n <mat-icon color=\"warn\">warning</mat-icon>\r\n </div>\r\n {{ title }}\r\n <div *ngIf=\"showCheckbox\" class=\"ml-2 mt-1\">\r\n <ecabs-checkbox [type]=\"'toggle'\" [(ngModel)]=\"toggle\"\r\n (click)=\"toggleAction()\"></ecabs-checkbox>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showErrorMessage\" class=\"error-message\">{{ errorMessage }}</div>\r\n </div>\r\n </mat-panel-title>\r\n <mat-panel-description>{{ description }}\r\n <mat-chip *ngIf=\"showStatus\" class=\"{{ status | lowercase }}\">\r\n {{ status | titlecase }}\r\n </mat-chip>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>\r\n", styles: [".example-action-buttons{padding-bottom:20px}.example-headers-align .mat-expansion-panel-header-title,.example-headers-align .mat-expansion-panel-header-description{flex-basis:0}.example-headers-align .mat-expansion-panel-header-description{justify-content:flex-end;align-items:center}.example-headers-align .mat-form-field+.mat-form-field{margin-left:8px}:host ::ng-deep .mat-expansion-indicator:after{border-color:var(--color-gray-500)}.index{height:28px;width:28px;display:flex;align-items:center;justify-content:center;text-align:center;padding-top:3px;font-size:16px}.error-message{font-size:.75rem!important;color:var(--color-error);margin-left:2.125rem;margin-top:-.75rem}.rounded{background-color:var(--color-brand-dark);border-radius:50%;height:28px;width:28px;display:flex;align-items:center;justify-content:center;text-align:center}.rounded-icon{color:var(--color-white)}.inactive{background-color:rgba(var(--color-warn-rgb),.05);color:var(--color-warn)}.draft{background-color:var(--color-gray-200);color:var(--color-gray-500)}.published{background-color:rgba(var(--color-info-rgb),.05);color:var(--color-info)}.active{background-color:rgba(var(--color-success-rgb),.05);color:var(--color-success)}.expired{background-color:rgba(var(--color-error-rgb),.05);color:var(--color-error)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$6.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i3$6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3$6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i3$6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i3$6.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5$2.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { kind: "component", type: EcabsCheckboxToggleComponent, selector: "ecabs-checkbox", inputs: ["type", "text", "labelPosition", "indeterminate", "checked"], outputs: ["click", "changed"] }, { kind: "pipe", type: i1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }] });
|
|
2591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelComponent, decorators: [{
|
|
2592
|
+
type: Component,
|
|
2593
|
+
args: [{ selector: 'ecabs-expansion-panel', template: "<mat-accordion class=\"example-headers-align\" multi>\r\n <mat-expansion-panel [expanded]=\"expanded\" [disabled]=\"disabled\" (opened)=\"onOpened()\" [hideToggle]=\"hideToggle\">\r\n <mat-expansion-panel-header *ngIf=\"title\">\r\n <mat-panel-title>\r\n <div>\r\n <div class=\"flex flex-row\">\r\n <div *ngIf=\"index && !showErrorMessage\" class=\"border-current border-2 rounded-full mr-3 index\">\r\n {{ index }}\r\n </div>\r\n <div *ngIf=\"!showErrorMessage && showIcon\" class=\"mr-3 rounded\">\r\n <mat-icon class=\"rounded-icon !text-lg -mt-1\">{{ iconName }}</mat-icon>\r\n </div>\r\n <div *ngIf=\"showErrorMessage\" class=\"mt-1 mr-2\">\r\n <mat-icon color=\"warn\">warning</mat-icon>\r\n </div>\r\n {{ title }}\r\n <div *ngIf=\"showCheckbox\" class=\"ml-2 mt-1\">\r\n <ecabs-checkbox [type]=\"'toggle'\" [(ngModel)]=\"toggle\"\r\n (click)=\"toggleAction()\"></ecabs-checkbox>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showErrorMessage\" class=\"error-message\">{{ errorMessage }}</div>\r\n </div>\r\n </mat-panel-title>\r\n <mat-panel-description>{{ description }}\r\n <mat-chip *ngIf=\"showStatus\" class=\"{{ status | lowercase }}\">\r\n {{ status | titlecase }}\r\n </mat-chip>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>\r\n", styles: [".example-action-buttons{padding-bottom:20px}.example-headers-align .mat-expansion-panel-header-title,.example-headers-align .mat-expansion-panel-header-description{flex-basis:0}.example-headers-align .mat-expansion-panel-header-description{justify-content:flex-end;align-items:center}.example-headers-align .mat-form-field+.mat-form-field{margin-left:8px}:host ::ng-deep .mat-expansion-indicator:after{border-color:var(--color-gray-500)}.index{height:28px;width:28px;display:flex;align-items:center;justify-content:center;text-align:center;padding-top:3px;font-size:16px}.error-message{font-size:.75rem!important;color:var(--color-error);margin-left:2.125rem;margin-top:-.75rem}.rounded{background-color:var(--color-brand-dark);border-radius:50%;height:28px;width:28px;display:flex;align-items:center;justify-content:center;text-align:center}.rounded-icon{color:var(--color-white)}.inactive{background-color:rgba(var(--color-warn-rgb),.05);color:var(--color-warn)}.draft{background-color:var(--color-gray-200);color:var(--color-gray-500)}.published{background-color:rgba(var(--color-info-rgb),.05);color:var(--color-info)}.active{background-color:rgba(var(--color-success-rgb),.05);color:var(--color-success)}.expired{background-color:rgba(var(--color-error-rgb),.05);color:var(--color-error)}\n"] }]
|
|
2594
|
+
}], propDecorators: { title: [{
|
|
2595
|
+
type: Input
|
|
2596
|
+
}], description: [{
|
|
2597
|
+
type: Input
|
|
2598
|
+
}], index: [{
|
|
2599
|
+
type: Input
|
|
2600
|
+
}], expanded: [{
|
|
2601
|
+
type: Input
|
|
2602
|
+
}], disabled: [{
|
|
2603
|
+
type: Input
|
|
2604
|
+
}], errorMessage: [{
|
|
2605
|
+
type: Input
|
|
2606
|
+
}], showErrorMessage: [{
|
|
2607
|
+
type: Input
|
|
2608
|
+
}], closePanel: [{
|
|
2609
|
+
type: Input
|
|
2610
|
+
}], showIcon: [{
|
|
2611
|
+
type: Input
|
|
2612
|
+
}], iconName: [{
|
|
2613
|
+
type: Input
|
|
2614
|
+
}], showCheckbox: [{
|
|
2615
|
+
type: Input
|
|
2616
|
+
}], showStatus: [{
|
|
2617
|
+
type: Input
|
|
2618
|
+
}], status: [{
|
|
2619
|
+
type: Input
|
|
2620
|
+
}], hideToggle: [{
|
|
2621
|
+
type: Input
|
|
2622
|
+
}], checked: [{
|
|
2623
|
+
type: Output
|
|
2624
|
+
}], opened: [{
|
|
2625
|
+
type: Output
|
|
2626
|
+
}], expansionPanel: [{
|
|
2627
|
+
type: ViewChild,
|
|
2628
|
+
args: [MatExpansionPanel]
|
|
2629
|
+
}] } });
|
|
2630
|
+
|
|
2631
|
+
class EcabsExpansionPanelModule {
|
|
2632
|
+
}
|
|
2633
|
+
EcabsExpansionPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2634
|
+
EcabsExpansionPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelModule, declarations: [EcabsExpansionPanelComponent], imports: [CommonModule, FormsModule, MatButtonModule, MatExpansionModule, MatIconModule, MatChipsModule, EcabsCheckboxToggleModule], exports: [EcabsExpansionPanelComponent] });
|
|
2635
|
+
EcabsExpansionPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelModule, imports: [CommonModule, FormsModule, MatButtonModule, MatExpansionModule, MatIconModule, MatChipsModule, EcabsCheckboxToggleModule] });
|
|
2636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsExpansionPanelModule, decorators: [{
|
|
2637
|
+
type: NgModule,
|
|
2638
|
+
args: [{
|
|
2639
|
+
declarations: [EcabsExpansionPanelComponent],
|
|
2640
|
+
imports: [CommonModule, FormsModule, MatButtonModule, MatExpansionModule, MatIconModule, MatChipsModule, EcabsCheckboxToggleModule],
|
|
2641
|
+
exports: [EcabsExpansionPanelComponent],
|
|
2642
|
+
}]
|
|
2643
|
+
}] });
|
|
2644
|
+
|
|
2645
|
+
class EcabsTableFilterWrapperComponent {
|
|
2646
|
+
}
|
|
2647
|
+
EcabsTableFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2648
|
+
EcabsTableFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: EcabsTableFilterWrapperComponent, selector: "ecabs-table-filter-wrapper", inputs: { title: "title", actions: "actions" }, ngImport: i0, template: "<ecabs-expansion-panel [title]=\"title\" class=\"block mb-5\" [expanded]=\"true\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngIf=\"actions\" class=\"flex justify-end\">\r\n <ng-container *ngTemplateOutlet=\"actions\"></ng-container>\r\n </div>\r\n</ecabs-expansion-panel>\r\n", styles: [":root{--color-black: #07080d;--color-white: #ffffff;--color-white-opacity-05: rgba(0, 0, 0, .05);--color-gray-100: #f5f6f9;--color-gray-200: #f8f9f9;--color-gray-300: #d9d9d9;--color-gray-400: #a6a6a6;--color-gray-500: #6b6d73;--color-brand-dark: #193273;--color-brand-dark-rgb: 25, 50, 115;--color-brand-light: #325FDA;--color-brand-light2: #e7efff;--color-brand-light-rgb: 50, 95, 218;--color-brand-300: #e7efff;--color-brand-300-rgb: 231, 239, 255;--color-error: #df3838;--color-error-opacity: #fbe4e4;--color-error-rgb: 223, 56, 56;--color-notification: #f4d04f;--color-notification-rgb: 244, 208, 79;--color-warn: #f2994a;--color-warn-rgb: 242, 153, 74;--color-info: #325fda;--color-info-rgb: 50, 95, 218;--color-warning: #f2994a;--color-warning-opacity: #fdf0e4;--color-success: #25bd3d;--color-success--opacity: #e8f8e5;--color-success-rgb: 37, 189, 61;--color-allocation-started: #E8F8E5;--color-allocation-scheduled: #FDF0E4;--color-allocation-ended: #FBE4E4;--color-allocation-sick: #E7EFFF;--color-allocation-no-show: #EAE5FF;--color-allocation-unavailable: #F2F2F2;--cropper-outline-color: rgba(0, 0, 0, .5)}.mat-expansion-panel-header-title{font-size:22px}:host::ng-deep .btn__group{justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EcabsExpansionPanelComponent, selector: "ecabs-expansion-panel", inputs: ["title", "description", "index", "expanded", "disabled", "errorMessage", "showErrorMessage", "closePanel", "showIcon", "iconName", "showCheckbox", "showStatus", "status", "hideToggle"], outputs: ["checked", "opened"] }] });
|
|
2649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperComponent, decorators: [{
|
|
2650
|
+
type: Component,
|
|
2651
|
+
args: [{ selector: 'ecabs-table-filter-wrapper', template: "<ecabs-expansion-panel [title]=\"title\" class=\"block mb-5\" [expanded]=\"true\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngIf=\"actions\" class=\"flex justify-end\">\r\n <ng-container *ngTemplateOutlet=\"actions\"></ng-container>\r\n </div>\r\n</ecabs-expansion-panel>\r\n", styles: [":root{--color-black: #07080d;--color-white: #ffffff;--color-white-opacity-05: rgba(0, 0, 0, .05);--color-gray-100: #f5f6f9;--color-gray-200: #f8f9f9;--color-gray-300: #d9d9d9;--color-gray-400: #a6a6a6;--color-gray-500: #6b6d73;--color-brand-dark: #193273;--color-brand-dark-rgb: 25, 50, 115;--color-brand-light: #325FDA;--color-brand-light2: #e7efff;--color-brand-light-rgb: 50, 95, 218;--color-brand-300: #e7efff;--color-brand-300-rgb: 231, 239, 255;--color-error: #df3838;--color-error-opacity: #fbe4e4;--color-error-rgb: 223, 56, 56;--color-notification: #f4d04f;--color-notification-rgb: 244, 208, 79;--color-warn: #f2994a;--color-warn-rgb: 242, 153, 74;--color-info: #325fda;--color-info-rgb: 50, 95, 218;--color-warning: #f2994a;--color-warning-opacity: #fdf0e4;--color-success: #25bd3d;--color-success--opacity: #e8f8e5;--color-success-rgb: 37, 189, 61;--color-allocation-started: #E8F8E5;--color-allocation-scheduled: #FDF0E4;--color-allocation-ended: #FBE4E4;--color-allocation-sick: #E7EFFF;--color-allocation-no-show: #EAE5FF;--color-allocation-unavailable: #F2F2F2;--cropper-outline-color: rgba(0, 0, 0, .5)}.mat-expansion-panel-header-title{font-size:22px}:host::ng-deep .btn__group{justify-content:flex-end}\n"] }]
|
|
2652
|
+
}], propDecorators: { title: [{
|
|
2653
|
+
type: Input
|
|
2654
|
+
}], actions: [{
|
|
2655
|
+
type: Input
|
|
2656
|
+
}] } });
|
|
2657
|
+
|
|
2658
|
+
class EcabsTableFilterWrapperModule {
|
|
2659
|
+
}
|
|
2660
|
+
EcabsTableFilterWrapperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2661
|
+
EcabsTableFilterWrapperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperModule, declarations: [EcabsTableFilterWrapperComponent], imports: [CommonModule,
|
|
2662
|
+
EcabsExpansionPanelModule], exports: [EcabsTableFilterWrapperComponent] });
|
|
2663
|
+
EcabsTableFilterWrapperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperModule, imports: [CommonModule,
|
|
2664
|
+
EcabsExpansionPanelModule] });
|
|
2665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableFilterWrapperModule, decorators: [{
|
|
2666
|
+
type: NgModule,
|
|
2667
|
+
args: [{
|
|
2668
|
+
declarations: [EcabsTableFilterWrapperComponent],
|
|
2669
|
+
imports: [
|
|
2670
|
+
CommonModule,
|
|
2671
|
+
EcabsExpansionPanelModule
|
|
2672
|
+
],
|
|
2673
|
+
exports: [EcabsTableFilterWrapperComponent],
|
|
2674
|
+
}]
|
|
2675
|
+
}] });
|
|
2676
|
+
|
|
2677
|
+
class TableComponent {
|
|
2678
|
+
constructor() {
|
|
2679
|
+
this.bordered = false;
|
|
2680
|
+
this.loading = false;
|
|
2681
|
+
}
|
|
2682
|
+
ngAfterContentChecked() {
|
|
2683
|
+
var _a;
|
|
2684
|
+
if (this.table) {
|
|
2685
|
+
this.isEmpty = !((_a = this.table['_data']) === null || _a === void 0 ? void 0 : _a.length);
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2690
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TableComponent, selector: "ecabs-table", inputs: { header: "header", paginator: "paginator", bordered: "bordered", loading: "loading", isEmpty: "isEmpty", isEmptyMessage: "isEmptyMessage", redirectPath: "redirectPath", srcImageEmpty: "srcImageEmpty" }, queries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true }], ngImport: i0, template: "<section class=\"table-ui table-ui--wrapper\" [ngClass]=\"{ 'table-ui__bordered': bordered, loading: loading }\">\r\n <mat-progress-bar *ngIf=\"loading\" mode=\"indeterminate\" class=\"table-ui__progress\"></mat-progress-bar>\r\n\r\n\r\n <div *ngIf=\"header\" class=\"table-ui__header\">\r\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!(isEmptyMessage && isEmpty); else noDataTemplate\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngIf=\"paginator\" class=\"table-ui__paginator\">\r\n <ng-container *ngTemplateOutlet=\"paginator\"></ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <!--#For Empty state -->\r\n <ng-template #noDataTemplate>\r\n <ecabs-empty-placeholder\r\n *ngIf=\"!loading\"\r\n [redirectPath]=\"redirectPath\"\r\n [isEmptyMessage]=\"isEmptyMessage\"\r\n [srcImage]=\"srcImageEmpty\"\r\n ></ecabs-empty-placeholder>\r\n </ng-template>\r\n</section>\r\n", styles: [":host mat-progress-bar{position:absolute;width:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: EcabsEmptyPlaceholderComponent, selector: "ecabs-empty-placeholder", inputs: ["isEmptyMessage", "redirectPath", "srcImage"] }] });
|
|
2691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TableComponent, decorators: [{
|
|
2692
|
+
type: Component,
|
|
2693
|
+
args: [{ selector: 'ecabs-table', template: "<section class=\"table-ui table-ui--wrapper\" [ngClass]=\"{ 'table-ui__bordered': bordered, loading: loading }\">\r\n <mat-progress-bar *ngIf=\"loading\" mode=\"indeterminate\" class=\"table-ui__progress\"></mat-progress-bar>\r\n\r\n\r\n <div *ngIf=\"header\" class=\"table-ui__header\">\r\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!(isEmptyMessage && isEmpty); else noDataTemplate\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngIf=\"paginator\" class=\"table-ui__paginator\">\r\n <ng-container *ngTemplateOutlet=\"paginator\"></ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <!--#For Empty state -->\r\n <ng-template #noDataTemplate>\r\n <ecabs-empty-placeholder\r\n *ngIf=\"!loading\"\r\n [redirectPath]=\"redirectPath\"\r\n [isEmptyMessage]=\"isEmptyMessage\"\r\n [srcImage]=\"srcImageEmpty\"\r\n ></ecabs-empty-placeholder>\r\n </ng-template>\r\n</section>\r\n", styles: [":host mat-progress-bar{position:absolute;width:auto}\n"] }]
|
|
2694
|
+
}], propDecorators: { table: [{
|
|
2695
|
+
type: ContentChild,
|
|
2696
|
+
args: [MatTable]
|
|
2697
|
+
}], header: [{
|
|
2698
|
+
type: Input
|
|
2699
|
+
}], paginator: [{
|
|
2700
|
+
type: Input
|
|
2701
|
+
}], bordered: [{
|
|
2702
|
+
type: Input
|
|
2703
|
+
}], loading: [{
|
|
2704
|
+
type: Input
|
|
2705
|
+
}], isEmpty: [{
|
|
2706
|
+
type: Input
|
|
2707
|
+
}], isEmptyMessage: [{
|
|
2708
|
+
type: Input
|
|
2709
|
+
}], redirectPath: [{
|
|
2710
|
+
type: Input
|
|
2711
|
+
}], srcImageEmpty: [{
|
|
2712
|
+
type: Input
|
|
2713
|
+
}] } });
|
|
2714
|
+
|
|
2715
|
+
class EcabsTableModule {
|
|
2716
|
+
}
|
|
2717
|
+
EcabsTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2718
|
+
EcabsTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableModule, declarations: [TableComponent], imports: [CommonModule,
|
|
2719
|
+
MatProgressBarModule,
|
|
2720
|
+
RouterModule,
|
|
2721
|
+
EcabsEmptyPlaceholderModule], exports: [TableComponent, MatTableModule, EcabsEmptyPlaceholderModule] });
|
|
2722
|
+
EcabsTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableModule, imports: [CommonModule,
|
|
2723
|
+
MatProgressBarModule,
|
|
2724
|
+
RouterModule,
|
|
2725
|
+
EcabsEmptyPlaceholderModule, MatTableModule, EcabsEmptyPlaceholderModule] });
|
|
2726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: EcabsTableModule, decorators: [{
|
|
2727
|
+
type: NgModule,
|
|
2728
|
+
args: [{
|
|
2729
|
+
declarations: [TableComponent],
|
|
2730
|
+
imports: [
|
|
2731
|
+
CommonModule,
|
|
2732
|
+
MatProgressBarModule,
|
|
2733
|
+
RouterModule,
|
|
2734
|
+
EcabsEmptyPlaceholderModule
|
|
2735
|
+
],
|
|
2736
|
+
exports: [TableComponent, MatTableModule, EcabsEmptyPlaceholderModule],
|
|
2737
|
+
}]
|
|
2738
|
+
}] });
|
|
2739
|
+
|
|
2528
2740
|
/**
|
|
2529
2741
|
* Generated bundle index. Do not edit.
|
|
2530
2742
|
*/
|
|
2531
2743
|
|
|
2532
|
-
export { ButtonsComponent, EcabsButtonsModule, EcabsCheckboxToggleComponent, EcabsCheckboxToggleModule, EcabsComponentsService, EcabsDatePickerComponent, EcabsDatePickerHeaderComponent, EcabsDatePickerModule, EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent, EcabsDatetimePickerModule, EcabsIncrementComponent, EcabsIncrementModule, EcabsInputComponent, EcabsInputModule, EcabsLoadingComponent, EcabsLoadingModule, EcabsPhoneComponent, EcabsPhoneModule, EcabsRadioButtonListComponent, EcabsRadioButtonListModule, EcabsSelectComponent, EcabsSelectModule, EcabsSpinnerComponent, EcabsTextAreaModule, EcabsTextareaComponent, EcabsTimeListPanelComponent, EcabsTimepickerComponent, EcabsTimepickerModule, FormTimePickerService, ValidationComponent, ValidationModule, scrollFactory };
|
|
2744
|
+
export { ButtonsComponent, EcabsButtonsModule, EcabsCheckboxToggleComponent, EcabsCheckboxToggleModule, EcabsComponentsService, EcabsDatePickerComponent, EcabsDatePickerHeaderComponent, EcabsDatePickerModule, EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent, EcabsDatetimePickerModule, EcabsEmptyPlaceholderComponent, EcabsEmptyPlaceholderModule, EcabsExpansionPanelComponent, EcabsExpansionPanelModule, EcabsIncrementComponent, EcabsIncrementModule, EcabsInputComponent, EcabsInputModule, EcabsLoadingComponent, EcabsLoadingModule, EcabsPhoneComponent, EcabsPhoneModule, EcabsRadioButtonListComponent, EcabsRadioButtonListModule, EcabsSelectComponent, EcabsSelectModule, EcabsSpinnerComponent, EcabsTableFilterWrapperComponent, EcabsTableFilterWrapperModule, EcabsTableModule, EcabsTextAreaModule, EcabsTextareaComponent, EcabsTimeListPanelComponent, EcabsTimepickerComponent, EcabsTimepickerModule, FormTimePickerService, TableComponent, ValidationComponent, ValidationModule, scrollFactory };
|
|
2533
2745
|
//# sourceMappingURL=ecabs-components.mjs.map
|