windows-plus-utilities 0.0.35 → 0.0.37
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/empty-display/components/empty-display/empty-display.component.d.ts +5 -0
- package/empty-display/empty-display.module.d.ts +8 -0
- package/empty-display/index.d.ts +5 -0
- package/empty-display/public-api.d.ts +2 -0
- package/esm2020/empty-display/components/empty-display/empty-display.component.mjs +11 -0
- package/esm2020/empty-display/empty-display.module.mjs +24 -0
- package/esm2020/empty-display/public-api.mjs +6 -0
- package/esm2020/empty-display/windows-plus-utilities-empty-display.mjs +5 -0
- package/esm2020/table/components/table/table.component.mjs +3 -3
- package/esm2020/table/table.module.mjs +1 -1
- package/esm2020/util/pipe/initialism/initialism.module.mjs +1 -1
- package/esm2020/util/pipe/initialism/initialism.pipe.mjs +1 -1
- package/esm2020/util/pipe/replace/replace.pipe.mjs +1 -1
- package/fesm2015/windows-plus-utilities-empty-display.mjs +43 -0
- package/fesm2015/windows-plus-utilities-empty-display.mjs.map +1 -0
- package/fesm2015/windows-plus-utilities-table.mjs +2 -2
- package/fesm2015/windows-plus-utilities-table.mjs.map +1 -1
- package/fesm2015/windows-plus-utilities-util.mjs.map +1 -1
- package/fesm2020/windows-plus-utilities-empty-display.mjs +43 -0
- package/fesm2020/windows-plus-utilities-empty-display.mjs.map +1 -0
- package/fesm2020/windows-plus-utilities-table.mjs +2 -2
- package/fesm2020/windows-plus-utilities-table.mjs.map +1 -1
- package/fesm2020/windows-plus-utilities-util.mjs.map +1 -1
- package/package.json +11 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EmptyDisplayComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyDisplayComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyDisplayComponent, "wp-empty-display", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/empty-display/empty-display.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class EmptyDisplayModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyDisplayModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EmptyDisplayModule, [typeof i1.EmptyDisplayComponent], [typeof i2.CommonModule], [typeof i1.EmptyDisplayComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EmptyDisplayModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class EmptyDisplayComponent {
|
|
4
|
+
}
|
|
5
|
+
EmptyDisplayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
EmptyDisplayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: EmptyDisplayComponent, selector: "wp-empty-display", ngImport: i0, template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>", styles: [""] });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ selector: 'wp-empty-display', template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>" }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHktZGlzcGxheS5jb21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3c8L3A+XG5cdDwvZGl2PlxuPC9kaXY+Il19
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { EmptyDisplayComponent } from './components/empty-display/empty-display.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class EmptyDisplayModule {
|
|
6
|
+
}
|
|
7
|
+
EmptyDisplayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
EmptyDisplayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, declarations: [EmptyDisplayComponent], imports: [CommonModule], exports: [EmptyDisplayComponent] });
|
|
9
|
+
EmptyDisplayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, imports: [CommonModule] });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
declarations: [
|
|
14
|
+
EmptyDisplayComponent
|
|
15
|
+
],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule
|
|
18
|
+
],
|
|
19
|
+
exports: [
|
|
20
|
+
EmptyDisplayComponent
|
|
21
|
+
]
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHktZGlzcGxheS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy93aW5kb3dzLXBsdXMtdXRpbGl0aWVzL2Vt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XG5leHBvcnQgY2xhc3MgRW1wdHlEaXNwbGF5TW9kdWxlIHsgfVxuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of windows-plus-utilities
|
|
3
|
+
*/
|
|
4
|
+
export * from './components/empty-display/empty-display.component';
|
|
5
|
+
export * from './empty-display.module';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3dpbmRvd3MtcGx1cy11dGlsaXRpZXMvZW1wdHktZGlzcGxheS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxvREFBb0QsQ0FBQztBQUNuRSxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHdpbmRvd3MtcGx1cy11dGlsaXRpZXNcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvZW1wdHktZGlzcGxheS9lbXB0eS1kaXNwbGF5LmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZW1wdHktZGlzcGxheS5tb2R1bGUnO1xyXG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93cy1wbHVzLXV0aWxpdGllcy1lbXB0eS1kaXNwbGF5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvd2luZG93cy1wbHVzLXV0aWxpdGllcy9lbXB0eS1kaXNwbGF5L3dpbmRvd3MtcGx1cy11dGlsaXRpZXMtZW1wdHktZGlzcGxheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -25,10 +25,10 @@ export class TableComponent {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\
|
|
28
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.CustomButtonComponent, selector: "wp-custom-button", inputs: ["value", "type", "colour", "id", "outline", "disabled", "icon"], outputs: ["handleClick"] }] });
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
|
-
args: [{ selector: 'wp-table', template: "<div>\
|
|
31
|
+
args: [{ selector: 'wp-table', template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"] }]
|
|
32
32
|
}], ctorParameters: function () { return []; }, propDecorators: { id: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}], title: [{
|
|
@@ -38,4 +38,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
38
38
|
}], tableData: [{
|
|
39
39
|
type: Input
|
|
40
40
|
}] } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2luZG93cy1wbHVzLXV0aWxpdGllcy90YWJsZS9jb21wb25lbnRzL3RhYmxlL3RhYmxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dpbmRvd3MtcGx1cy11dGlsaXRpZXMvdGFibGUvY29tcG9uZW50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x0XHRcdFx0PC9kaXY+XG5cdFx0XHRcdFx0XHRcdDwvbmctY29udGFpbmVyPlxuXHRcdFx0XHRcdFx0PC90ZD5cblx0XHRcdFx0XHQ8L3RyPlxuXHRcdFx0XHQ8L3Rib2R5PlxuXHRcdFx0PC90YWJsZT5cblx0XHQ8L2Rpdj5cblx0PC9uZy10ZW1wbGF0ZT5cblx0PG5nLXRlbXBsYXRlICNlbXB0eUJsb2NrPlxuXHRcdDxwIGNsYXNzPVwidGV4dC1ncmV5XCI+VGhlcmUgaXMgbm8gZGF0YSB0byBzaG93PC9wPlxuXHQ8L25nLXRlbXBsYXRlPlxuPC9kaXY+Il19
|
|
@@ -25,4 +25,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
25
25
|
]
|
|
26
26
|
}]
|
|
27
27
|
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvd2luZG93cy1wbHVzLXV0aWxpdGllcy90YWJsZS90YWJsZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDOztBQWM1RSxNQUFNLE9BQU8sV0FBVzs7d0dBQVgsV0FBVzt5R0FBWCxXQUFXLGlCQVZwQixjQUFjLGFBR2pCLFlBQVk7UUFDWCxrQkFBa0IsYUFHaEIsY0FBYzt5R0FHTCxXQUFXLFlBUHZCLFlBQVk7UUFDWCxrQkFBa0I7MkZBTVAsV0FBVztrQkFadkIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osY0FBYztxQkFDZjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1YsWUFBWTt3QkFDWCxrQkFBa0I7cUJBQ2pCO29CQUNELE9BQU8sRUFBRTt3QkFDUCxjQUFjO3FCQUNmO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBUYWJsZUNvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy90YWJsZS90YWJsZS5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ3VzdG9tQnV0dG9uTW9kdWxlIH0gZnJvbSAnd2luZG93cy1wbHVzLWZvcm0tZmllbGRzL2N1c3RvbS1idXR0b24nO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBUYWJsZUNvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG5cdENvbW1vbk1vZHVsZSxcblx0XHRDdXN0b21CdXR0b25Nb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBUYWJsZUNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFRhYmxlTW9kdWxlIHsgfVxuIl19
|
|
@@ -21,4 +21,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
21
21
|
]
|
|
22
22
|
}]
|
|
23
23
|
}] });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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21tb25Nb2R1bGVcbiAgXSxcblx0ZXhwb3J0czogW1xuXHRcdEluaXRpYWxpc21QaXBlXG5cdF1cbn0pXG5leHBvcnQgY2xhc3MgSW5pdGlhbGlzbU1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -18,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
18
18
|
name: 'initialism'
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGlzbS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2luZG93cy1wbHVzLXV0aWxpdGllcy91dGlsL3BpcGUvaW5pdGlhbGlzbS9pbml0aWFsaXNtLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBS3BELE1BQU0sT0FBTyxjQUFjO0lBRXpCLFNBQVMsQ0FBQyxLQUFhLEVBQUUsWUFBb0IsRUFBRTtRQUM3QyxPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3ZDLENBQUM7SUFFTSxNQUFNLENBQUMsS0FBYSxFQUFFLFNBQWlCO1FBQzlDLE1BQU0sUUFBUSxHQUFHLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDL0QsTUFBTSxPQUFPLEdBQUcsUUFBUSxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsRUFBR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mluZywgcmVwbGFjZTogc3RyaW5nLCB3aXRoVGhpczogc3RyaW5nKTogc3RyaW5nIHtcblx0XHRyZXR1cm4gdmFsdWUucmVwbGFjZShuZXcgUmVnRXhwKHJlcGxhY2UsICdnJyksIHdpdGhUaGlzKVxuXHR9XG59XG4iXX0=
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class EmptyDisplayComponent {
|
|
6
|
+
}
|
|
7
|
+
EmptyDisplayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
EmptyDisplayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: EmptyDisplayComponent, selector: "wp-empty-display", ngImport: i0, template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>", styles: [""] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'wp-empty-display', template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>" }]
|
|
12
|
+
}] });
|
|
13
|
+
|
|
14
|
+
class EmptyDisplayModule {
|
|
15
|
+
}
|
|
16
|
+
EmptyDisplayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17
|
+
EmptyDisplayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, declarations: [EmptyDisplayComponent], imports: [CommonModule], exports: [EmptyDisplayComponent] });
|
|
18
|
+
EmptyDisplayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, imports: [CommonModule] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, decorators: [{
|
|
20
|
+
type: NgModule,
|
|
21
|
+
args: [{
|
|
22
|
+
declarations: [
|
|
23
|
+
EmptyDisplayComponent
|
|
24
|
+
],
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule
|
|
27
|
+
],
|
|
28
|
+
exports: [
|
|
29
|
+
EmptyDisplayComponent
|
|
30
|
+
]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* Public API Surface of windows-plus-utilities
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { EmptyDisplayComponent, EmptyDisplayModule };
|
|
43
|
+
//# sourceMappingURL=windows-plus-utilities-empty-display.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-empty-display.mjs","sources":["../../../projects/windows-plus-utilities/empty-display/components/empty-display/empty-display.component.ts","../../../projects/windows-plus-utilities/empty-display/components/empty-display/empty-display.component.html","../../../projects/windows-plus-utilities/empty-display/empty-display.module.ts","../../../projects/windows-plus-utilities/empty-display/public-api.ts","../../../projects/windows-plus-utilities/empty-display/windows-plus-utilities-empty-display.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'wp-empty-display',\n templateUrl: './empty-display.component.html',\n styleUrls: ['./empty-display.component.sass']\n})\nexport class EmptyDisplayComponent {\n\n}\n","<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EmptyDisplayComponent } from './components/empty-display/empty-display.component';\n\n\n\n@NgModule({\n declarations: [\n EmptyDisplayComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n EmptyDisplayComponent\n ]\n})\nexport class EmptyDisplayModule { }\n","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\n\r\nexport * from './components/empty-display/empty-display.component';\r\nexport * from './empty-display.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAOa,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,wDCPlC,0HAIM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDGO,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;+BACE,kBAAkB,EAAA,QAAA,EAAA,0HAAA,EAAA,CAAA;;;MEcjB,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAT3B,YAAA,EAAA,CAAA,qBAAqB,CAGrB,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGZ,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAN3B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;iBACF,CAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -28,10 +28,10 @@ class TableComponent {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\
|
|
31
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.CustomButtonComponent, selector: "wp-custom-button", inputs: ["value", "type", "colour", "id", "outline", "disabled", "icon"], outputs: ["handleClick"] }] });
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
|
-
args: [{ selector: 'wp-table', template: "<div>\
|
|
34
|
+
args: [{ selector: 'wp-table', template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"] }]
|
|
35
35
|
}], ctorParameters: function () { return []; }, propDecorators: { id: [{
|
|
36
36
|
type: Input
|
|
37
37
|
}], title: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-plus-utilities-table.mjs","sources":["../../../projects/windows-plus-utilities/table/components/table/table.component.ts","../../../projects/windows-plus-utilities/table/components/table/table.component.html","../../../projects/windows-plus-utilities/table/table.module.ts","../../../projects/windows-plus-utilities/table/public-api.ts","../../../projects/windows-plus-utilities/table/windows-plus-utilities-table.ts"],"sourcesContent":["import { Component, Input, OnInit, Output } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-table.mjs","sources":["../../../projects/windows-plus-utilities/table/components/table/table.component.ts","../../../projects/windows-plus-utilities/table/components/table/table.component.html","../../../projects/windows-plus-utilities/table/table.module.ts","../../../projects/windows-plus-utilities/table/public-api.ts","../../../projects/windows-plus-utilities/table/windows-plus-utilities-table.ts"],"sourcesContent":["import { Component, Input, OnInit, Output } from '@angular/core';\nimport { TableData } from '../../util/types/table-data/table-data.type'\n\n@Component({\n selector: 'wp-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.sass']\n})\nexport class TableComponent implements OnInit {\n\t/**\n\t * @description the identifier of the table element\n\t */\n\t@Input() id: string\n\t/**\n\t * @description the title of the table\n\t */\n\t@Input() title: string\n\t/**\n\t * @description the table headers\n\t */\n\t@Input() headers: string\n\t/**\n\t * @description the table data to be displayed\n\t */\n\t@Input() tableData: TableData[]\n\t/**\n\t * @author Alex Hodson\n\t * @description class constructor specifying the required services and properties for the component\n\t */\n\tconstructor() { }\n\t/**\n\t * @author Alex Hodson\n\t * @description the method to be run when the component is rendered\n\t */\n\tngOnInit(): void {\n\t}\n\t/**\n\t * @author Alex Hodson\n\t * @description identifies whether the given element is a string or number; If so, the element can be rendered normally\n\t * @param element the element to be checked\n\t * @returns whether the given element is a string or number\n\t */\n\tisString(element: TableData): boolean {\n\t\treturn typeof element === 'string' || typeof element === 'number' || element == null\n\t}\n}\n","<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TableComponent } from './components/table/table.component';\nimport { CustomButtonModule } from 'windows-plus-form-fields/custom-button';\n\n@NgModule({\n declarations: [\n TableComponent\n ],\n imports: [\n\tCommonModule,\n\t\tCustomButtonModule,\n ],\n exports: [\n TableComponent\n ]\n})\nexport class TableModule { }\n","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\n\r\nexport * from './components/table/table.component';\r\nexport * from './util/interface/config/table-configuration.interface';\r\nexport * from './util/types/table-data/table-data.type';\r\nexport * from './table.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-plus-utilities-util.mjs","sources":["../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.module.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.module.ts","../../../projects/windows-plus-utilities/util/helper/string/string-helper.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.module.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.module.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.module.ts","../../../projects/windows-plus-utilities/util/public-api.ts","../../../projects/windows-plus-utilities/util/windows-plus-utilities-util.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'beautify'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description the beautify text pipe takes a string and formats it into a more visually pleasing format. The pipe will add a space before any capital letter\r\n * and then capitalise the first letter of the string\r\n */\r\nexport class BeautifyTextPipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, args?: any): any {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given string. A space will be added before any capital letter and then the first letter is capitalised\r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string): string {\r\n\t\tconst replaceResult: string = text.replace(/([A-Z])/g, \" $1\").trim()\r\n\t\tconst output: string = replaceResult.charAt(0).toUpperCase() + replaceResult.slice(1)\r\n\r\n\t\treturn output\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { BeautifyTextPipe } from './beautify-text.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n BeautifyTextPipe\r\n ],\r\n exports: [\r\n BeautifyTextPipe\r\n ]\r\n})\r\nexport class BeautifyTextModule{}","import { Pipe, PipeTransform } from '@angular/core'\r\n\r\n@Pipe({\r\n\tname: 'formatDate'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date string into a user friendly UTC string\r\n */\r\nexport class FormatDatePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tif (text === '' || text === '-') return text\r\n\t\tconst date = new Date(text)\r\n\r\n\t\treturn date.toLocaleString('en-GB', {\r\n\t\t\tweekday: 'short', // long, short, narrow\r\n\t\t\tday: 'numeric', // numeric, 2-digit\r\n\t\t\tyear: 'numeric', // numeric, 2-digit\r\n\t\t\tmonth: 'long', // numeric, 2-digit, long, short, narrow\r\n\t\t})\r\n\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDatePipe } from './format-date.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDatePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDatePipe\r\n\t]\r\n})\r\nexport class FormatDateModule { }\r\n","/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing all letters\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\n export const capitalizeAll = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\treturn value.toUpperCase()\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing the first letter\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\nexport const capitalizeFirst = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst startingLetter = 0\r\n\tconst remainingIdx = 1\r\n\r\n\treturn value.charAt(startingLetter).toUpperCase() + value.slice(remainingIdx)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description splits the given string at the specified delimiter\r\n * @param {string} value the value to be split\r\n * @param {string} delimiter the value to be split at\r\n * @returns {string[]} the split value\r\n */\r\nexport const splitAt = (value: string, delimiter: string): string[] => {\r\n\tif (!value) return ['']\r\n\r\n\treturn value.split(delimiter)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description joins the given array using the specified delimiter\r\n * @param {string} delimiter the value to be joined with\r\n * @param {string[]} data the data to be joined\r\n * @returns {string} the joined value\r\n */\r\nexport const joinWith = (delimiter: string, data: string[] = []): string => data.join(delimiter)\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description replaces each substring of the value that matches the given target and replaces the match with the provided replacement value\r\n * @param {string} value the value to be modified\r\n * @param {string} target the value to be replaced\r\n * @param {string} replacement the replacement value\r\n * @returns {string} the modified value\r\n */\r\nexport const replaceAll = (value: string, target: string, replacement: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst regex = new RegExp(target, 'g')\r\n\r\n\treturn value.replace(regex, replacement)\r\n}\r\n/**\r\n * @author Alex Hodson\r\n * @description attempts to find the index of a given substring\r\n * @param {string} value the value to be searched\r\n * @param {string} target the value to be identified\r\n * @returns {number} the index of the target string within the given value\r\n */\r\nexport const findSubstringIndex = (value: string, target: string): number => {\r\n\tif (!value) return -1\r\n\r\n\treturn value.indexOf(target)\r\n}","import { Pipe, PipeTransform } from '@angular/core'\r\nimport { format } from 'date-fns'\r\nimport { replaceAll } from '../../helper/string/string-helper'\r\n\r\n@Pipe({\r\n\tname: 'formatDateTime'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date time string into a user friendly UTC string\r\n */\r\nexport class FormatDateTimePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date time string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tconst date = new Date(replaceAll(text, 'Z', ''))\r\n\t\treturn format(date, 'E, d MMMM yyyy H:mm:ss')\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDateTimePipe } from './format-date-time.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDateTimePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDateTimePipe\r\n\t]\r\n})\r\nexport class FormatDateTimeModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'initialism'\r\n})\r\nexport class InitialismPipe implements PipeTransform {\r\n\r\n transform(value: string, delimiter: string = ''): string {\r\n return this.format(value, delimiter);\r\n }\r\n\r\n\tprivate format(value: string, delimiter: string): string {\r\n\t\tconst elements = !!delimiter ? value.split(delimiter) : [value]\r\n\t\tconst letters = elements.map(element => element[0]).join('').toUpperCase()\r\n\r\n\t\treturn letters\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { InitialismPipe } from './initialism.pipe';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n InitialismPipe\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tInitialismPipe\r\n\t]\r\n})\r\nexport class InitialismModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'replace'\r\n})\r\nexport class ReplacePipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param replace the string to be replaced\r\n\t * @param withThis the replacement string\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, replace: string, withThis: string): string {\r\n\t\treturn this.format(value, replace, withThis)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description replaces a substring with the given replacement in a value\r\n\t * @param value the value of the HTML element\r\n\t * @param replace the string to be replaced\r\n\t * @param withThis the replacement string\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(value: string, replace: string, withThis: string): string {\r\n\t\treturn value.replace(new RegExp(replace, 'g'), withThis)\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { ReplacePipe } from './replace.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n ReplacePipe\r\n ],\r\n exports: [\r\n ReplacePipe\r\n ]\r\n})\r\nexport class ReplaceModule{}","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\nexport * from './pipe/beautify-text/beautify-text.module'\r\nexport * from './pipe/beautify-text/beautify-text.pipe'\r\n\r\nexport * from './pipe/format-date/format-date.module'\r\nexport * from './pipe/format-date/format-date.pipe'\r\n\r\nexport * from './pipe/format-date-time/format-date-time.module'\r\nexport * from './pipe/format-date-time/format-date-time.pipe'\r\n\r\nexport * from './pipe/initialism/initialism.module'\r\nexport * from './pipe/initialism/initialism.pipe'\r\n\r\nexport * from './pipe/replace/replace.module'\r\nexport * from './pipe/replace/replace.pipe'\r\n\r\nexport * from './helper/string/string-helper'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;AAIG;MACU,gBAAgB,CAAA;AAC5B;;;;;;AAMG;IACH,SAAS,CAAC,KAAa,EAAE,IAAU,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;KACzB;AAED;;;;;AAKG;AACK,IAAA,MAAM,CAAC,IAAY,EAAA;AAC1B,QAAA,MAAM,aAAa,GAAW,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAA;AACpE,QAAA,MAAM,MAAM,GAAW,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAErF,QAAA,OAAO,MAAM,CAAA;KACb;;6GAvBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAhB,gBAAgB,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;iBACjB,CAAA;;;MCQY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAN3B,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAGhB,gBAAgB,CAAA,EAAA,CAAA,CAAA;gHAGP,kBAAkB,EAA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;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACZ,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,WAAW;AACZ,qBAAA;iBACF,CAAA;;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-util.mjs","sources":["../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.module.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.module.ts","../../../projects/windows-plus-utilities/util/helper/string/string-helper.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.module.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.module.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.module.ts","../../../projects/windows-plus-utilities/util/public-api.ts","../../../projects/windows-plus-utilities/util/windows-plus-utilities-util.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'beautify'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description the beautify text pipe takes a string and formats it into a more visually pleasing format. The pipe will add a space before any capital letter\r\n * and then capitalise the first letter of the string\r\n */\r\nexport class BeautifyTextPipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, args?: any): any {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given string. A space will be added before any capital letter and then the first letter is capitalised\r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string): string {\r\n\t\tconst replaceResult: string = text.replace(/([A-Z])/g, \" $1\").trim()\r\n\t\tconst output: string = replaceResult.charAt(0).toUpperCase() + replaceResult.slice(1)\r\n\r\n\t\treturn output\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { BeautifyTextPipe } from './beautify-text.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n BeautifyTextPipe\r\n ],\r\n exports: [\r\n BeautifyTextPipe\r\n ]\r\n})\r\nexport class BeautifyTextModule{}","import { Pipe, PipeTransform } from '@angular/core'\r\n\r\n@Pipe({\r\n\tname: 'formatDate'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date string into a user friendly UTC string\r\n */\r\nexport class FormatDatePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tif (text === '' || text === '-') return text\r\n\t\tconst date = new Date(text)\r\n\r\n\t\treturn date.toLocaleString('en-GB', {\r\n\t\t\tweekday: 'short', // long, short, narrow\r\n\t\t\tday: 'numeric', // numeric, 2-digit\r\n\t\t\tyear: 'numeric', // numeric, 2-digit\r\n\t\t\tmonth: 'long', // numeric, 2-digit, long, short, narrow\r\n\t\t})\r\n\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDatePipe } from './format-date.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDatePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDatePipe\r\n\t]\r\n})\r\nexport class FormatDateModule { }\r\n","/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing all letters\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\n export const capitalizeAll = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\treturn value.toUpperCase()\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing the first letter\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\nexport const capitalizeFirst = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst startingLetter = 0\r\n\tconst remainingIdx = 1\r\n\r\n\treturn value.charAt(startingLetter).toUpperCase() + value.slice(remainingIdx)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description splits the given string at the specified delimiter\r\n * @param {string} value the value to be split\r\n * @param {string} delimiter the value to be split at\r\n * @returns {string[]} the split value\r\n */\r\nexport const splitAt = (value: string, delimiter: string): string[] => {\r\n\tif (!value) return ['']\r\n\r\n\treturn value.split(delimiter)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description joins the given array using the specified delimiter\r\n * @param {string} delimiter the value to be joined with\r\n * @param {string[]} data the data to be joined\r\n * @returns {string} the joined value\r\n */\r\nexport const joinWith = (delimiter: string, data: string[] = []): string => data.join(delimiter)\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description replaces each substring of the value that matches the given target and replaces the match with the provided replacement value\r\n * @param {string} value the value to be modified\r\n * @param {string} target the value to be replaced\r\n * @param {string} replacement the replacement value\r\n * @returns {string} the modified value\r\n */\r\nexport const replaceAll = (value: string, target: string, replacement: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst regex = new RegExp(target, 'g')\r\n\r\n\treturn value.replace(regex, replacement)\r\n}\r\n/**\r\n * @author Alex Hodson\r\n * @description attempts to find the index of a given substring\r\n * @param {string} value the value to be searched\r\n * @param {string} target the value to be identified\r\n * @returns {number} the index of the target string within the given value\r\n */\r\nexport const findSubstringIndex = (value: string, target: string): number => {\r\n\tif (!value) return -1\r\n\r\n\treturn value.indexOf(target)\r\n}","import { Pipe, PipeTransform } from '@angular/core'\r\nimport { format } from 'date-fns'\r\nimport { replaceAll } from '../../helper/string/string-helper'\r\n\r\n@Pipe({\r\n\tname: 'formatDateTime'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date time string into a user friendly UTC string\r\n */\r\nexport class FormatDateTimePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date time string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tconst date = new Date(replaceAll(text, 'Z', ''))\r\n\t\treturn format(date, 'E, d MMMM yyyy H:mm:ss')\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDateTimePipe } from './format-date-time.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDateTimePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDateTimePipe\r\n\t]\r\n})\r\nexport class FormatDateTimeModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'initialism'\n})\nexport class InitialismPipe implements PipeTransform {\n\n transform(value: string, delimiter: string = ''): string {\n return this.format(value, delimiter);\n }\n\n\tprivate format(value: string, delimiter: string): string {\n\t\tconst elements = !!delimiter ? value.split(delimiter) : [value]\n\t\tconst letters = elements.map(element => element[0]).join('').toUpperCase()\n\n\t\treturn letters\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InitialismPipe } from './initialism.pipe';\n\n\n\n@NgModule({\n declarations: [\n InitialismPipe\n ],\n imports: [\n CommonModule\n ],\n\texports: [\n\t\tInitialismPipe\n\t]\n})\nexport class InitialismModule { }\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'replace'\n})\nexport class ReplacePipe implements PipeTransform {\n\t/**\n\t * @author Alex Hodson\n\t * @description the entry point for the point which calls the format method and returns its value\n\t * @param value the value of the HTML element\n\t * @param replace the string to be replaced\n\t * @param withThis the replacement string\n\t * @returns the formatted value\n\t */\n\ttransform(value: string, replace: string, withThis: string): string {\n\t\treturn this.format(value, replace, withThis)\n\t}\n\n\t/**\n\t * @author Alex Hodson\n\t * @description replaces a substring with the given replacement in a value\n\t * @param value the value of the HTML element\n\t * @param replace the string to be replaced\n\t * @param withThis the replacement string\n\t * @returns the formatted value\n\t */\n\tprivate format(value: string, replace: string, withThis: string): string {\n\t\treturn value.replace(new RegExp(replace, 'g'), withThis)\n\t}\n}\n","import { NgModule } from '@angular/core'\r\nimport { ReplacePipe } from './replace.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n ReplacePipe\r\n ],\r\n exports: [\r\n ReplacePipe\r\n ]\r\n})\r\nexport class ReplaceModule{}","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\nexport * from './pipe/beautify-text/beautify-text.module'\r\nexport * from './pipe/beautify-text/beautify-text.pipe'\r\n\r\nexport * from './pipe/format-date/format-date.module'\r\nexport * from './pipe/format-date/format-date.pipe'\r\n\r\nexport * from './pipe/format-date-time/format-date-time.module'\r\nexport * from './pipe/format-date-time/format-date-time.pipe'\r\n\r\nexport * from './pipe/initialism/initialism.module'\r\nexport * from './pipe/initialism/initialism.pipe'\r\n\r\nexport * from './pipe/replace/replace.module'\r\nexport * from './pipe/replace/replace.pipe'\r\n\r\nexport * from './helper/string/string-helper'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;AAIG;MACU,gBAAgB,CAAA;AAC5B;;;;;;AAMG;IACH,SAAS,CAAC,KAAa,EAAE,IAAU,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;KACzB;AAED;;;;;AAKG;AACK,IAAA,MAAM,CAAC,IAAY,EAAA;AAC1B,QAAA,MAAM,aAAa,GAAW,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAA;AACpE,QAAA,MAAM,MAAM,GAAW,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAErF,QAAA,OAAO,MAAM,CAAA;KACb;;6GAvBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAhB,gBAAgB,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;iBACjB,CAAA;;;MCQY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAN3B,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAGhB,gBAAgB,CAAA,EAAA,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UAAA,EAAA,CAAA;kBATzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACZ,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,WAAW;AACZ,qBAAA;iBACF,CAAA;;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class EmptyDisplayComponent {
|
|
6
|
+
}
|
|
7
|
+
EmptyDisplayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
EmptyDisplayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: EmptyDisplayComponent, selector: "wp-empty-display", ngImport: i0, template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>", styles: [""] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'wp-empty-display', template: "<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>" }]
|
|
12
|
+
}] });
|
|
13
|
+
|
|
14
|
+
class EmptyDisplayModule {
|
|
15
|
+
}
|
|
16
|
+
EmptyDisplayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17
|
+
EmptyDisplayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, declarations: [EmptyDisplayComponent], imports: [CommonModule], exports: [EmptyDisplayComponent] });
|
|
18
|
+
EmptyDisplayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, imports: [CommonModule] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: EmptyDisplayModule, decorators: [{
|
|
20
|
+
type: NgModule,
|
|
21
|
+
args: [{
|
|
22
|
+
declarations: [
|
|
23
|
+
EmptyDisplayComponent
|
|
24
|
+
],
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule
|
|
27
|
+
],
|
|
28
|
+
exports: [
|
|
29
|
+
EmptyDisplayComponent
|
|
30
|
+
]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* Public API Surface of windows-plus-utilities
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { EmptyDisplayComponent, EmptyDisplayModule };
|
|
43
|
+
//# sourceMappingURL=windows-plus-utilities-empty-display.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-empty-display.mjs","sources":["../../../projects/windows-plus-utilities/empty-display/components/empty-display/empty-display.component.ts","../../../projects/windows-plus-utilities/empty-display/components/empty-display/empty-display.component.html","../../../projects/windows-plus-utilities/empty-display/empty-display.module.ts","../../../projects/windows-plus-utilities/empty-display/public-api.ts","../../../projects/windows-plus-utilities/empty-display/windows-plus-utilities-empty-display.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'wp-empty-display',\n templateUrl: './empty-display.component.html',\n styleUrls: ['./empty-display.component.sass']\n})\nexport class EmptyDisplayComponent {\n\n}\n","<div class=\"row\">\n\t<div class=\"col-12\">\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EmptyDisplayComponent } from './components/empty-display/empty-display.component';\n\n\n\n@NgModule({\n declarations: [\n EmptyDisplayComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n EmptyDisplayComponent\n ]\n})\nexport class EmptyDisplayModule { }\n","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\n\r\nexport * from './components/empty-display/empty-display.component';\r\nexport * from './empty-display.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAOa,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,wDCPlC,0HAIM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDGO,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;+BACE,kBAAkB,EAAA,QAAA,EAAA,0HAAA,EAAA,CAAA;;;MEcjB,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAT3B,YAAA,EAAA,CAAA,qBAAqB,CAGrB,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGZ,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAN3B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -28,10 +28,10 @@ class TableComponent {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\
|
|
31
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TableComponent, selector: "wp-table", inputs: { id: "id", title: "title", headers: "headers", tableData: "tableData" }, ngImport: i0, template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.CustomButtonComponent, selector: "wp-custom-button", inputs: ["value", "type", "colour", "id", "outline", "disabled", "icon"], outputs: ["handleClick"] }] });
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TableComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
|
-
args: [{ selector: 'wp-table', template: "<div>\
|
|
34
|
+
args: [{ selector: 'wp-table', template: "<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>", styles: [".table-responsive{max-height:500px;width:100%;overflow-y:auto}table{table-layout:fixed}table .thead{font-size:14px;font-family:--wp-fontFamily}table .thead-blue th{background:var(--wp-secondaryBlue);color:#fff}table th{position:sticky;top:0}table .table-cell{font-size:14px;font-family:--wp-fontFamily;padding:5px}\n"] }]
|
|
35
35
|
}], ctorParameters: function () { return []; }, propDecorators: { id: [{
|
|
36
36
|
type: Input
|
|
37
37
|
}], title: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-plus-utilities-table.mjs","sources":["../../../projects/windows-plus-utilities/table/components/table/table.component.ts","../../../projects/windows-plus-utilities/table/components/table/table.component.html","../../../projects/windows-plus-utilities/table/table.module.ts","../../../projects/windows-plus-utilities/table/public-api.ts","../../../projects/windows-plus-utilities/table/windows-plus-utilities-table.ts"],"sourcesContent":["import { Component, Input, OnInit, Output } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-table.mjs","sources":["../../../projects/windows-plus-utilities/table/components/table/table.component.ts","../../../projects/windows-plus-utilities/table/components/table/table.component.html","../../../projects/windows-plus-utilities/table/table.module.ts","../../../projects/windows-plus-utilities/table/public-api.ts","../../../projects/windows-plus-utilities/table/windows-plus-utilities-table.ts"],"sourcesContent":["import { Component, Input, OnInit, Output } from '@angular/core';\nimport { TableData } from '../../util/types/table-data/table-data.type'\n\n@Component({\n selector: 'wp-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.sass']\n})\nexport class TableComponent implements OnInit {\n\t/**\n\t * @description the identifier of the table element\n\t */\n\t@Input() id: string\n\t/**\n\t * @description the title of the table\n\t */\n\t@Input() title: string\n\t/**\n\t * @description the table headers\n\t */\n\t@Input() headers: string\n\t/**\n\t * @description the table data to be displayed\n\t */\n\t@Input() tableData: TableData[]\n\t/**\n\t * @author Alex Hodson\n\t * @description class constructor specifying the required services and properties for the component\n\t */\n\tconstructor() { }\n\t/**\n\t * @author Alex Hodson\n\t * @description the method to be run when the component is rendered\n\t */\n\tngOnInit(): void {\n\t}\n\t/**\n\t * @author Alex Hodson\n\t * @description identifies whether the given element is a string or number; If so, the element can be rendered normally\n\t * @param element the element to be checked\n\t * @returns whether the given element is a string or number\n\t */\n\tisString(element: TableData): boolean {\n\t\treturn typeof element === 'string' || typeof element === 'number' || element == null\n\t}\n}\n","<div>\n\t<h2 class=\"lead\">{{title}}</h2>\n\t<div *ngIf=\"tableData.length > 0 then tableBlock else emptyBlock\"></div>\n\t<ng-template #tableBlock>\n\t\t<div class=\"scrollable-wrap\">\n\t\t\t<table [id]=\"id\" class=\"table table-responsive\">\n\t\t\t\t<thead class=\"thead thead-blue\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let header of headers\">{{header}}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let row of tableData\">\n\t\t\t\t\t\t<td class=\"table-cell text-grey\" *ngFor=\"let header of headers\">\n\t\t\t\t\t\t\t<ng-container [ngSwitch]=\"true\">\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"isString(row[header])\">\n\t\t\t\t\t\t\t\t\t{{row[header]}}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngSwitchCase=\"!isString(row[header])\">\n\t\t\t\t\t\t\t\t\t<wp-custom-button \n\t\t\t\t\t\t\t\t\t\t[id]=\"row[header].id\"\n\t\t\t\t\t\t\t\t\t\t[value]=\"row[header].value\"\n\t\t\t\t\t\t\t\t\t\t[type]=\"row[header].type\"\n\t\t\t\t\t\t\t\t\t\t[colour]=\"row[header].colour\"\n\t\t\t\t\t\t\t\t\t\t[outline]=\"row[header].outline\"\n\t\t\t\t\t\t\t\t\t\t[disabled]=\"row[header].disabled\"\n\t\t\t\t\t\t\t\t\t\t[icon]=\"row[header].icon\"\n\t\t\t\t\t\t\t\t\t\t(handleClick)=\"row[header].handleClick($event)\"\n\t\t\t\t\t\t\t\t\t></wp-custom-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #emptyBlock>\n\t\t<p class=\"text-grey\">There is no data to show</p>\n\t</ng-template>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TableComponent } from './components/table/table.component';\nimport { CustomButtonModule } from 'windows-plus-form-fields/custom-button';\n\n@NgModule({\n declarations: [\n TableComponent\n ],\n imports: [\n\tCommonModule,\n\t\tCustomButtonModule,\n ],\n exports: [\n TableComponent\n ]\n})\nexport class TableModule { }\n","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\n\r\nexport * from './components/table/table.component';\r\nexport * from './util/interface/config/table-configuration.interface';\r\nexport * from './util/types/table-data/table-data.type';\r\nexport * from './table.module';\r\n","/**\n * Generated bundle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Ac;AACf,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-plus-utilities-util.mjs","sources":["../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.module.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.module.ts","../../../projects/windows-plus-utilities/util/helper/string/string-helper.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.module.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.module.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.module.ts","../../../projects/windows-plus-utilities/util/public-api.ts","../../../projects/windows-plus-utilities/util/windows-plus-utilities-util.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'beautify'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description the beautify text pipe takes a string and formats it into a more visually pleasing format. The pipe will add a space before any capital letter\r\n * and then capitalise the first letter of the string\r\n */\r\nexport class BeautifyTextPipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, args?: any): any {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given string. A space will be added before any capital letter and then the first letter is capitalised\r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string): string {\r\n\t\tconst replaceResult: string = text.replace(/([A-Z])/g, \" $1\").trim()\r\n\t\tconst output: string = replaceResult.charAt(0).toUpperCase() + replaceResult.slice(1)\r\n\r\n\t\treturn output\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { BeautifyTextPipe } from './beautify-text.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n BeautifyTextPipe\r\n ],\r\n exports: [\r\n BeautifyTextPipe\r\n ]\r\n})\r\nexport class BeautifyTextModule{}","import { Pipe, PipeTransform } from '@angular/core'\r\n\r\n@Pipe({\r\n\tname: 'formatDate'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date string into a user friendly UTC string\r\n */\r\nexport class FormatDatePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tif (text === '' || text === '-') return text\r\n\t\tconst date = new Date(text)\r\n\r\n\t\treturn date.toLocaleString('en-GB', {\r\n\t\t\tweekday: 'short', // long, short, narrow\r\n\t\t\tday: 'numeric', // numeric, 2-digit\r\n\t\t\tyear: 'numeric', // numeric, 2-digit\r\n\t\t\tmonth: 'long', // numeric, 2-digit, long, short, narrow\r\n\t\t})\r\n\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDatePipe } from './format-date.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDatePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDatePipe\r\n\t]\r\n})\r\nexport class FormatDateModule { }\r\n","/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing all letters\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\n export const capitalizeAll = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\treturn value.toUpperCase()\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing the first letter\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\nexport const capitalizeFirst = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst startingLetter = 0\r\n\tconst remainingIdx = 1\r\n\r\n\treturn value.charAt(startingLetter).toUpperCase() + value.slice(remainingIdx)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description splits the given string at the specified delimiter\r\n * @param {string} value the value to be split\r\n * @param {string} delimiter the value to be split at\r\n * @returns {string[]} the split value\r\n */\r\nexport const splitAt = (value: string, delimiter: string): string[] => {\r\n\tif (!value) return ['']\r\n\r\n\treturn value.split(delimiter)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description joins the given array using the specified delimiter\r\n * @param {string} delimiter the value to be joined with\r\n * @param {string[]} data the data to be joined\r\n * @returns {string} the joined value\r\n */\r\nexport const joinWith = (delimiter: string, data: string[] = []): string => data.join(delimiter)\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description replaces each substring of the value that matches the given target and replaces the match with the provided replacement value\r\n * @param {string} value the value to be modified\r\n * @param {string} target the value to be replaced\r\n * @param {string} replacement the replacement value\r\n * @returns {string} the modified value\r\n */\r\nexport const replaceAll = (value: string, target: string, replacement: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst regex = new RegExp(target, 'g')\r\n\r\n\treturn value.replace(regex, replacement)\r\n}\r\n/**\r\n * @author Alex Hodson\r\n * @description attempts to find the index of a given substring\r\n * @param {string} value the value to be searched\r\n * @param {string} target the value to be identified\r\n * @returns {number} the index of the target string within the given value\r\n */\r\nexport const findSubstringIndex = (value: string, target: string): number => {\r\n\tif (!value) return -1\r\n\r\n\treturn value.indexOf(target)\r\n}","import { Pipe, PipeTransform } from '@angular/core'\r\nimport { format } from 'date-fns'\r\nimport { replaceAll } from '../../helper/string/string-helper'\r\n\r\n@Pipe({\r\n\tname: 'formatDateTime'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date time string into a user friendly UTC string\r\n */\r\nexport class FormatDateTimePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date time string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tconst date = new Date(replaceAll(text, 'Z', ''))\r\n\t\treturn format(date, 'E, d MMMM yyyy H:mm:ss')\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDateTimePipe } from './format-date-time.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDateTimePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDateTimePipe\r\n\t]\r\n})\r\nexport class FormatDateTimeModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'initialism'\r\n})\r\nexport class InitialismPipe implements PipeTransform {\r\n\r\n transform(value: string, delimiter: string = ''): string {\r\n return this.format(value, delimiter);\r\n }\r\n\r\n\tprivate format(value: string, delimiter: string): string {\r\n\t\tconst elements = !!delimiter ? value.split(delimiter) : [value]\r\n\t\tconst letters = elements.map(element => element[0]).join('').toUpperCase()\r\n\r\n\t\treturn letters\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { InitialismPipe } from './initialism.pipe';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n InitialismPipe\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tInitialismPipe\r\n\t]\r\n})\r\nexport class InitialismModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'replace'\r\n})\r\nexport class ReplacePipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param replace the string to be replaced\r\n\t * @param withThis the replacement string\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, replace: string, withThis: string): string {\r\n\t\treturn this.format(value, replace, withThis)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description replaces a substring with the given replacement in a value\r\n\t * @param value the value of the HTML element\r\n\t * @param replace the string to be replaced\r\n\t * @param withThis the replacement string\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(value: string, replace: string, withThis: string): string {\r\n\t\treturn value.replace(new RegExp(replace, 'g'), withThis)\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { ReplacePipe } from './replace.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n ReplacePipe\r\n ],\r\n exports: [\r\n ReplacePipe\r\n ]\r\n})\r\nexport class ReplaceModule{}","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\nexport * from './pipe/beautify-text/beautify-text.module'\r\nexport * from './pipe/beautify-text/beautify-text.pipe'\r\n\r\nexport * from './pipe/format-date/format-date.module'\r\nexport * from './pipe/format-date/format-date.pipe'\r\n\r\nexport * from './pipe/format-date-time/format-date-time.module'\r\nexport * from './pipe/format-date-time/format-date-time.pipe'\r\n\r\nexport * from './pipe/initialism/initialism.module'\r\nexport * from './pipe/initialism/initialism.pipe'\r\n\r\nexport * from './pipe/replace/replace.module'\r\nexport * from './pipe/replace/replace.pipe'\r\n\r\nexport * from './helper/string/string-helper'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;AAIG;MACU,gBAAgB,CAAA;AAC5B;;;;;;AAMG;IACH,SAAS,CAAC,KAAa,EAAE,IAAU,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;KACzB;AAED;;;;;AAKG;AACK,IAAA,MAAM,CAAC,IAAY,EAAA;AAC1B,QAAA,MAAM,aAAa,GAAW,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAA;AACpE,QAAA,MAAM,MAAM,GAAW,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAErF,QAAA,OAAO,MAAM,CAAA;KACb;;6GAvBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAhB,gBAAgB,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AACjB,iBAAA,CAAA;;;MCQY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAN3B,gBAAgB,CAAA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A,EAAA,CAGX,WAAW,CAAA,EAAA,CAAA,CAAA;2GAGF,aAAa,EAAA,CAAA,CAAA;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBATzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACZ,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,WAAW;AACZ,qBAAA;AACF,iBAAA,CAAA;;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"windows-plus-utilities-util.mjs","sources":["../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/beautify-text/beautify-text.module.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date/format-date.module.ts","../../../projects/windows-plus-utilities/util/helper/string/string-helper.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/format-date-time/format-date-time.module.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/initialism/initialism.module.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.pipe.ts","../../../projects/windows-plus-utilities/util/pipe/replace/replace.module.ts","../../../projects/windows-plus-utilities/util/public-api.ts","../../../projects/windows-plus-utilities/util/windows-plus-utilities-util.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'beautify'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description the beautify text pipe takes a string and formats it into a more visually pleasing format. The pipe will add a space before any capital letter\r\n * and then capitalise the first letter of the string\r\n */\r\nexport class BeautifyTextPipe implements PipeTransform {\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, args?: any): any {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given string. A space will be added before any capital letter and then the first letter is capitalised\r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string): string {\r\n\t\tconst replaceResult: string = text.replace(/([A-Z])/g, \" $1\").trim()\r\n\t\tconst output: string = replaceResult.charAt(0).toUpperCase() + replaceResult.slice(1)\r\n\r\n\t\treturn output\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core'\r\nimport { BeautifyTextPipe } from './beautify-text.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n BeautifyTextPipe\r\n ],\r\n exports: [\r\n BeautifyTextPipe\r\n ]\r\n})\r\nexport class BeautifyTextModule{}","import { Pipe, PipeTransform } from '@angular/core'\r\n\r\n@Pipe({\r\n\tname: 'formatDate'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date string into a user friendly UTC string\r\n */\r\nexport class FormatDatePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tif (text === '' || text === '-') return text\r\n\t\tconst date = new Date(text)\r\n\r\n\t\treturn date.toLocaleString('en-GB', {\r\n\t\t\tweekday: 'short', // long, short, narrow\r\n\t\t\tday: 'numeric', // numeric, 2-digit\r\n\t\t\tyear: 'numeric', // numeric, 2-digit\r\n\t\t\tmonth: 'long', // numeric, 2-digit, long, short, narrow\r\n\t\t})\r\n\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDatePipe } from './format-date.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDatePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDatePipe\r\n\t]\r\n})\r\nexport class FormatDateModule { }\r\n","/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing all letters\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\n export const capitalizeAll = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\treturn value.toUpperCase()\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description modifies the given value by capitalizing the first letter\r\n * @param {string} value the value to be modified\r\n * @returns {string} the modified value\r\n */\r\nexport const capitalizeFirst = (value: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst startingLetter = 0\r\n\tconst remainingIdx = 1\r\n\r\n\treturn value.charAt(startingLetter).toUpperCase() + value.slice(remainingIdx)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description splits the given string at the specified delimiter\r\n * @param {string} value the value to be split\r\n * @param {string} delimiter the value to be split at\r\n * @returns {string[]} the split value\r\n */\r\nexport const splitAt = (value: string, delimiter: string): string[] => {\r\n\tif (!value) return ['']\r\n\r\n\treturn value.split(delimiter)\r\n}\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description joins the given array using the specified delimiter\r\n * @param {string} delimiter the value to be joined with\r\n * @param {string[]} data the data to be joined\r\n * @returns {string} the joined value\r\n */\r\nexport const joinWith = (delimiter: string, data: string[] = []): string => data.join(delimiter)\r\n\r\n/**\r\n * @author Alex Hodson\r\n * @description replaces each substring of the value that matches the given target and replaces the match with the provided replacement value\r\n * @param {string} value the value to be modified\r\n * @param {string} target the value to be replaced\r\n * @param {string} replacement the replacement value\r\n * @returns {string} the modified value\r\n */\r\nexport const replaceAll = (value: string, target: string, replacement: string): string => {\r\n\tif (!value) return ''\r\n\r\n\tconst regex = new RegExp(target, 'g')\r\n\r\n\treturn value.replace(regex, replacement)\r\n}\r\n/**\r\n * @author Alex Hodson\r\n * @description attempts to find the index of a given substring\r\n * @param {string} value the value to be searched\r\n * @param {string} target the value to be identified\r\n * @returns {number} the index of the target string within the given value\r\n */\r\nexport const findSubstringIndex = (value: string, target: string): number => {\r\n\tif (!value) return -1\r\n\r\n\treturn value.indexOf(target)\r\n}","import { Pipe, PipeTransform } from '@angular/core'\r\nimport { format } from 'date-fns'\r\nimport { replaceAll } from '../../helper/string/string-helper'\r\n\r\n@Pipe({\r\n\tname: 'formatDateTime'\r\n})\r\n/**\r\n * @author Alex Hodson\r\n * @description a pipe which formats a given date time string into a user friendly UTC string\r\n */\r\nexport class FormatDateTimePipe implements PipeTransform {\r\n\t\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description the entry point for the point which calls the format method and returns its value\r\n\t * @param value the value of the HTML element\r\n\t * @param args any extra arguments passed\r\n\t * @returns the formatted value\r\n\t */\r\n\ttransform(value: string, ...args: unknown[]): string {\r\n\t\treturn this.format(value)\r\n\t}\r\n\r\n\t/**\r\n\t * @author Alex Hodson\r\n\t * @description formats the given date time string into a UTC string \r\n\t * @param text the text to be formatted\r\n\t * @returns the formatted value\r\n\t */\r\n\tprivate format(text: string) {\r\n\t\tconst date = new Date(replaceAll(text, 'Z', ''))\r\n\t\treturn format(date, 'E, d MMMM yyyy H:mm:ss')\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDateTimePipe } from './format-date-time.pipe'\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n\t\tFormatDateTimePipe\r\n\t],\r\n imports: [\r\n CommonModule\r\n ],\r\n\texports: [\r\n\t\tFormatDateTimePipe\r\n\t]\r\n})\r\nexport class FormatDateTimeModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'initialism'\n})\nexport class InitialismPipe implements PipeTransform {\n\n transform(value: string, delimiter: string = ''): string {\n return this.format(value, delimiter);\n }\n\n\tprivate format(value: string, delimiter: string): string {\n\t\tconst elements = !!delimiter ? value.split(delimiter) : [value]\n\t\tconst letters = elements.map(element => element[0]).join('').toUpperCase()\n\n\t\treturn letters\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InitialismPipe } from './initialism.pipe';\n\n\n\n@NgModule({\n declarations: [\n InitialismPipe\n ],\n imports: [\n CommonModule\n ],\n\texports: [\n\t\tInitialismPipe\n\t]\n})\nexport class InitialismModule { }\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'replace'\n})\nexport class ReplacePipe implements PipeTransform {\n\t/**\n\t * @author Alex Hodson\n\t * @description the entry point for the point which calls the format method and returns its value\n\t * @param value the value of the HTML element\n\t * @param replace the string to be replaced\n\t * @param withThis the replacement string\n\t * @returns the formatted value\n\t */\n\ttransform(value: string, replace: string, withThis: string): string {\n\t\treturn this.format(value, replace, withThis)\n\t}\n\n\t/**\n\t * @author Alex Hodson\n\t * @description replaces a substring with the given replacement in a value\n\t * @param value the value of the HTML element\n\t * @param replace the string to be replaced\n\t * @param withThis the replacement string\n\t * @returns the formatted value\n\t */\n\tprivate format(value: string, replace: string, withThis: string): string {\n\t\treturn value.replace(new RegExp(replace, 'g'), withThis)\n\t}\n}\n","import { NgModule } from '@angular/core'\r\nimport { ReplacePipe } from './replace.pipe'\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [ \r\n ReplacePipe\r\n ],\r\n exports: [\r\n ReplacePipe\r\n ]\r\n})\r\nexport class ReplaceModule{}","/*\r\n * Public API Surface of windows-plus-utilities\r\n */\r\nexport * from './pipe/beautify-text/beautify-text.module'\r\nexport * from './pipe/beautify-text/beautify-text.pipe'\r\n\r\nexport * from './pipe/format-date/format-date.module'\r\nexport * from './pipe/format-date/format-date.pipe'\r\n\r\nexport * from './pipe/format-date-time/format-date-time.module'\r\nexport * from './pipe/format-date-time/format-date-time.pipe'\r\n\r\nexport * from './pipe/initialism/initialism.module'\r\nexport * from './pipe/initialism/initialism.pipe'\r\n\r\nexport * from './pipe/replace/replace.module'\r\nexport * from './pipe/replace/replace.pipe'\r\n\r\nexport * from './helper/string/string-helper'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;AAIG;MACU,gBAAgB,CAAA;AAC5B;;;;;;AAMG;IACH,SAAS,CAAC,KAAa,EAAE,IAAU,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;KACzB;AAED;;;;;AAKG;AACK,IAAA,MAAM,CAAC,IAAY,EAAA;AAC1B,QAAA,MAAM,aAAa,GAAW,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAA;AACpE,QAAA,MAAM,MAAM,GAAW,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAErF,QAAA,OAAO,MAAM,CAAA;KACb;;6GAvBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAhB,gBAAgB,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AACjB,iBAAA,CAAA;;;MCQY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,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A,CAAA,QAAA,EAAA,CAAA,CAAA;2GAAb,aAAa,EAAA,YAAA,EAAA,CANtB,WAAW,CAAA,EAAA,OAAA,EAAA,CAGX,WAAW,CAAA,EAAA,CAAA,CAAA;2GAGF,aAAa,EAAA,CAAA,CAAA;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBATzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACZ,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,WAAW;AACZ,qBAAA;AACF,iBAAA,CAAA;;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windows-plus-utilities",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.1.2",
|
|
6
6
|
"@angular/core": "^15.1.2",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
9
9
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
10
10
|
"date-fns": "^2.29.3",
|
|
11
|
-
"windows-plus-form-fields": "^0.0.
|
|
12
|
-
"windows-plus-theme": "^1.0.
|
|
11
|
+
"windows-plus-form-fields": "^0.0.30",
|
|
12
|
+
"windows-plus-theme": "^1.0.18"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.3.0"
|
|
@@ -40,6 +40,14 @@
|
|
|
40
40
|
"node": "./fesm2015/windows-plus-utilities-custom-card.mjs",
|
|
41
41
|
"default": "./fesm2020/windows-plus-utilities-custom-card.mjs"
|
|
42
42
|
},
|
|
43
|
+
"./empty-display": {
|
|
44
|
+
"types": "./empty-display/index.d.ts",
|
|
45
|
+
"esm2020": "./esm2020/empty-display/windows-plus-utilities-empty-display.mjs",
|
|
46
|
+
"es2020": "./fesm2020/windows-plus-utilities-empty-display.mjs",
|
|
47
|
+
"es2015": "./fesm2015/windows-plus-utilities-empty-display.mjs",
|
|
48
|
+
"node": "./fesm2015/windows-plus-utilities-empty-display.mjs",
|
|
49
|
+
"default": "./fesm2020/windows-plus-utilities-empty-display.mjs"
|
|
50
|
+
},
|
|
43
51
|
"./main-menu": {
|
|
44
52
|
"types": "./main-menu/index.d.ts",
|
|
45
53
|
"esm2020": "./esm2020/main-menu/windows-plus-utilities-main-menu.mjs",
|