mobicloud-core 1.0.94 → 1.0.98
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/bundles/mobicloud-core-components.umd.js +621 -509
- package/bundles/mobicloud-core-components.umd.js.map +1 -1
- package/bundles/mobicloud-core-components.umd.min.js +1 -16
- package/bundles/mobicloud-core-components.umd.min.js.map +1 -1
- package/bundles/mobicloud-core.umd.js +1 -1
- package/bundles/mobicloud-core.umd.js.map +1 -1
- package/bundles/mobicloud-core.umd.min.js +1 -1
- package/bundles/mobicloud-core.umd.min.js.map +1 -1
- package/components/customer-user/customer-user-image/customer-user-image.component.d.ts +1 -0
- package/components/employee/employee-profile-image/employee-profile-image.component.d.ts +1 -0
- package/components/main-nav/main-nav.component.d.ts +23 -5
- package/components/mobicloud-core-components.metadata.json +1 -1
- package/components/vendor-user/vendor-user-image/vendor-user-image.component.d.ts +1 -0
- package/esm2015/components/customer-user/customer-user-image/customer-user-image.component.js +5 -2
- package/esm2015/components/employee/employee-profile-image/employee-profile-image.component.js +5 -2
- package/esm2015/components/main-nav/main-nav.component.js +109 -7
- package/esm2015/components/vendor-user/vendor-user-image/vendor-user-image.component.js +5 -2
- package/esm2015/lib/services/mobicloud-core.service.js +1 -1
- package/esm2015/lib/utils.js +2 -2
- package/fesm2015/mobicloud-core-components.js +124 -16
- package/fesm2015/mobicloud-core-components.js.map +1 -1
- package/fesm2015/mobicloud-core.js +1 -1
- package/fesm2015/mobicloud-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,84 +1,499 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/sidenav'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/expansion'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/card'), require('@angular/material/progress-spinner'), require('@angular/material/slide-toggle'), require('@angular/material/stepper'), require('devextreme-angular'), require('ngx-webcam'), require('mobicloud-core/icons'), require('@angular/cdk/layout'), require('rxjs/operators'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('mobicloud-core/components', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/sidenav', '@angular/material/button', '@angular/material/icon', '@angular/material/expansion', '@angular/material/list', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/card', '@angular/material/progress-spinner', '@angular/material/slide-toggle', '@angular/material/stepper', 'devextreme-angular', 'ngx-webcam', 'mobicloud-core/icons', '@angular/cdk/layout', 'rxjs/operators', 'mobicloud-core', '@angular/material/dialog', 'devextreme/ui/notify', 'mobicloud-core/api', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mobicloud-core'] = global['mobicloud-core'] || {}, global['mobicloud-core'].components = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.sidenav, global.ng.material.button, global.ng.material.icon, global.ng.material.expansion, global.ng.material.list, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.card, global.ng.material.progressSpinner, global.ng.material.slideToggle, global.ng.material.stepper, global['devextreme-angular'], global['ngx-webcam'], global['mobicloud-core'].icons, global.ng.cdk.layout, global.rxjs.operators, global['
|
|
5
|
-
}(this, (function (exports, core, common, router, flexLayout, sidenav, button, icon, expansion, list, menu, toolbar, tooltip, card, progressSpinner, slideToggle, stepper, devextremeAngular, ngxWebcam, icons, layout, operators, mobicloudCore, dialog, notify, api,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/sidenav'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/expansion'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/card'), require('@angular/material/progress-spinner'), require('@angular/material/slide-toggle'), require('@angular/material/stepper'), require('devextreme-angular'), require('ngx-webcam'), require('mobicloud-core/icons'), require('@angular/cdk/layout'), require('rxjs/operators'), require('devextreme/data/data_source'), require('devextreme/data/odata/store'), require('mobicloud-core'), require('@angular/material/dialog'), require('devextreme/ui/notify'), require('mobicloud-core/api'), require('@angular/localize/init'), require('rxjs'), require('devextreme/data/array_store'), require('devextreme/ui/validation_engine'), require('devextreme/core/guid')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('mobicloud-core/components', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/sidenav', '@angular/material/button', '@angular/material/icon', '@angular/material/expansion', '@angular/material/list', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/card', '@angular/material/progress-spinner', '@angular/material/slide-toggle', '@angular/material/stepper', 'devextreme-angular', 'ngx-webcam', 'mobicloud-core/icons', '@angular/cdk/layout', 'rxjs/operators', 'devextreme/data/data_source', 'devextreme/data/odata/store', 'mobicloud-core', '@angular/material/dialog', 'devextreme/ui/notify', 'mobicloud-core/api', '@angular/localize/init', 'rxjs', 'devextreme/data/array_store', 'devextreme/ui/validation_engine', 'devextreme/core/guid'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mobicloud-core'] = global['mobicloud-core'] || {}, global['mobicloud-core'].components = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.sidenav, global.ng.material.button, global.ng.material.icon, global.ng.material.expansion, global.ng.material.list, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.card, global.ng.material.progressSpinner, global.ng.material.slideToggle, global.ng.material.stepper, global['devextreme-angular'], global['ngx-webcam'], global['mobicloud-core'].icons, global.ng.cdk.layout, global.rxjs.operators, global['devextreme/data/data_source'], global['devextreme/data/odata/store'], global['mobicloud-core'], global.ng.material.dialog, global['devextreme/ui/notify'], global['mobicloud-core'].api, global.ng.localize.init, global.rxjs, global.ArrayStore, global.validationEngine, global.Guid));
|
|
5
|
+
}(this, (function (exports, core, common, router, flexLayout, sidenav, button, icon, expansion, list, menu, toolbar, tooltip, card, progressSpinner, slideToggle, stepper, devextremeAngular, ngxWebcam, icons, layout, operators, DataSource, ODataStore, mobicloudCore, dialog, notify, api, init, rxjs, ArrayStore, validationEngine, Guid) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var notify__default = /*#__PURE__*/_interopDefaultLegacy(notify);
|
|
10
9
|
var DataSource__default = /*#__PURE__*/_interopDefaultLegacy(DataSource);
|
|
11
10
|
var ODataStore__default = /*#__PURE__*/_interopDefaultLegacy(ODataStore);
|
|
11
|
+
var notify__default = /*#__PURE__*/_interopDefaultLegacy(notify);
|
|
12
12
|
var ArrayStore__default = /*#__PURE__*/_interopDefaultLegacy(ArrayStore);
|
|
13
13
|
var validationEngine__default = /*#__PURE__*/_interopDefaultLegacy(validationEngine);
|
|
14
14
|
var Guid__default = /*#__PURE__*/_interopDefaultLegacy(Guid);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
16
|
+
/*! *****************************************************************************
|
|
17
|
+
Copyright (c) Microsoft Corporation.
|
|
18
|
+
|
|
19
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
20
|
+
purpose with or without fee is hereby granted.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
23
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
24
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
25
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
26
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
+
***************************************************************************** */
|
|
30
|
+
/* global Reflect, Promise */
|
|
31
|
+
var extendStatics = function (d, b) {
|
|
32
|
+
extendStatics = Object.setPrototypeOf ||
|
|
33
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
34
|
+
function (d, b) { for (var p in b)
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
36
|
+
d[p] = b[p]; };
|
|
37
|
+
return extendStatics(d, b);
|
|
38
|
+
};
|
|
39
|
+
function __extends(d, b) {
|
|
40
|
+
if (typeof b !== "function" && b !== null)
|
|
41
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
42
|
+
extendStatics(d, b);
|
|
43
|
+
function __() { this.constructor = d; }
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
}
|
|
46
|
+
var __assign = function () {
|
|
47
|
+
__assign = Object.assign || function __assign(t) {
|
|
48
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
49
|
+
s = arguments[i];
|
|
50
|
+
for (var p in s)
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
52
|
+
t[p] = s[p];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
46
55
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
return __assign.apply(this, arguments);
|
|
57
|
+
};
|
|
58
|
+
function __rest(s, e) {
|
|
59
|
+
var t = {};
|
|
60
|
+
for (var p in s)
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
62
|
+
t[p] = s[p];
|
|
63
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
64
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
65
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
66
|
+
t[p[i]] = s[p[i]];
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
function __decorate(decorators, target, key, desc) {
|
|
71
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
72
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
73
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
74
|
+
else
|
|
75
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
76
|
+
if (d = decorators[i])
|
|
77
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
78
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
79
|
+
}
|
|
80
|
+
function __param(paramIndex, decorator) {
|
|
81
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
82
|
+
}
|
|
83
|
+
function __metadata(metadataKey, metadataValue) {
|
|
84
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
85
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
86
|
+
}
|
|
87
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
88
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
89
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
90
|
+
function fulfilled(value) { try {
|
|
91
|
+
step(generator.next(value));
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
reject(e);
|
|
95
|
+
} }
|
|
96
|
+
function rejected(value) { try {
|
|
97
|
+
step(generator["throw"](value));
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
reject(e);
|
|
101
|
+
} }
|
|
102
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
103
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function __generator(thisArg, body) {
|
|
107
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
108
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
109
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
110
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
111
|
+
function step(op) {
|
|
112
|
+
if (f)
|
|
113
|
+
throw new TypeError("Generator is already executing.");
|
|
114
|
+
while (_)
|
|
115
|
+
try {
|
|
116
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
117
|
+
return t;
|
|
118
|
+
if (y = 0, t)
|
|
119
|
+
op = [op[0] & 2, t.value];
|
|
120
|
+
switch (op[0]) {
|
|
121
|
+
case 0:
|
|
122
|
+
case 1:
|
|
123
|
+
t = op;
|
|
124
|
+
break;
|
|
125
|
+
case 4:
|
|
126
|
+
_.label++;
|
|
127
|
+
return { value: op[1], done: false };
|
|
128
|
+
case 5:
|
|
129
|
+
_.label++;
|
|
130
|
+
y = op[1];
|
|
131
|
+
op = [0];
|
|
132
|
+
continue;
|
|
133
|
+
case 7:
|
|
134
|
+
op = _.ops.pop();
|
|
135
|
+
_.trys.pop();
|
|
136
|
+
continue;
|
|
137
|
+
default:
|
|
138
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
139
|
+
_ = 0;
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
143
|
+
_.label = op[1];
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
147
|
+
_.label = t[1];
|
|
148
|
+
t = op;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
if (t && _.label < t[2]) {
|
|
152
|
+
_.label = t[2];
|
|
153
|
+
_.ops.push(op);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
if (t[2])
|
|
157
|
+
_.ops.pop();
|
|
158
|
+
_.trys.pop();
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
op = body.call(thisArg, _);
|
|
52
162
|
}
|
|
53
|
-
|
|
54
|
-
|
|
163
|
+
catch (e) {
|
|
164
|
+
op = [6, e];
|
|
165
|
+
y = 0;
|
|
55
166
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
newUrl = newHostUrl + location.pathname.substring(1);
|
|
167
|
+
finally {
|
|
168
|
+
f = t = 0;
|
|
59
169
|
}
|
|
60
|
-
|
|
61
|
-
|
|
170
|
+
if (op[0] & 5)
|
|
171
|
+
throw op[1];
|
|
172
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
176
|
+
if (k2 === undefined)
|
|
177
|
+
k2 = k;
|
|
178
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
179
|
+
}) : (function (o, m, k, k2) {
|
|
180
|
+
if (k2 === undefined)
|
|
181
|
+
k2 = k;
|
|
182
|
+
o[k2] = m[k];
|
|
183
|
+
});
|
|
184
|
+
function __exportStar(m, o) {
|
|
185
|
+
for (var p in m)
|
|
186
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
187
|
+
__createBinding(o, m, p);
|
|
188
|
+
}
|
|
189
|
+
function __values(o) {
|
|
190
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
191
|
+
if (m)
|
|
192
|
+
return m.call(o);
|
|
193
|
+
if (o && typeof o.length === "number")
|
|
194
|
+
return {
|
|
195
|
+
next: function () {
|
|
196
|
+
if (o && i >= o.length)
|
|
197
|
+
o = void 0;
|
|
198
|
+
return { value: o && o[i++], done: !o };
|
|
62
199
|
}
|
|
63
|
-
|
|
200
|
+
};
|
|
201
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
202
|
+
}
|
|
203
|
+
function __read(o, n) {
|
|
204
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
205
|
+
if (!m)
|
|
206
|
+
return o;
|
|
207
|
+
var i = m.call(o), r, ar = [], e;
|
|
208
|
+
try {
|
|
209
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
210
|
+
ar.push(r.value);
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
e = { error: error };
|
|
214
|
+
}
|
|
215
|
+
finally {
|
|
216
|
+
try {
|
|
217
|
+
if (r && !r.done && (m = i["return"]))
|
|
218
|
+
m.call(i);
|
|
64
219
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
220
|
+
finally {
|
|
221
|
+
if (e)
|
|
222
|
+
throw e.error;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return ar;
|
|
226
|
+
}
|
|
227
|
+
/** @deprecated */
|
|
228
|
+
function __spread() {
|
|
229
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
230
|
+
ar = ar.concat(__read(arguments[i]));
|
|
231
|
+
return ar;
|
|
232
|
+
}
|
|
233
|
+
/** @deprecated */
|
|
234
|
+
function __spreadArrays() {
|
|
235
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
236
|
+
s += arguments[i].length;
|
|
237
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
238
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
239
|
+
r[k] = a[j];
|
|
240
|
+
return r;
|
|
241
|
+
}
|
|
242
|
+
function __spreadArray(to, from) {
|
|
243
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
244
|
+
to[j] = from[i];
|
|
245
|
+
return to;
|
|
246
|
+
}
|
|
247
|
+
function __await(v) {
|
|
248
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
249
|
+
}
|
|
250
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
251
|
+
if (!Symbol.asyncIterator)
|
|
252
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
253
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
254
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
255
|
+
function verb(n) { if (g[n])
|
|
256
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
257
|
+
function resume(n, v) { try {
|
|
258
|
+
step(g[n](v));
|
|
259
|
+
}
|
|
260
|
+
catch (e) {
|
|
261
|
+
settle(q[0][3], e);
|
|
262
|
+
} }
|
|
263
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
264
|
+
function fulfill(value) { resume("next", value); }
|
|
265
|
+
function reject(value) { resume("throw", value); }
|
|
266
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
267
|
+
resume(q[0][0], q[0][1]); }
|
|
268
|
+
}
|
|
269
|
+
function __asyncDelegator(o) {
|
|
270
|
+
var i, p;
|
|
271
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
272
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
273
|
+
}
|
|
274
|
+
function __asyncValues(o) {
|
|
275
|
+
if (!Symbol.asyncIterator)
|
|
276
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
277
|
+
var m = o[Symbol.asyncIterator], i;
|
|
278
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
279
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
280
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
281
|
+
}
|
|
282
|
+
function __makeTemplateObject(cooked, raw) {
|
|
283
|
+
if (Object.defineProperty) {
|
|
284
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
cooked.raw = raw;
|
|
288
|
+
}
|
|
289
|
+
return cooked;
|
|
290
|
+
}
|
|
291
|
+
;
|
|
292
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
293
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
294
|
+
}) : function (o, v) {
|
|
295
|
+
o["default"] = v;
|
|
296
|
+
};
|
|
297
|
+
function __importStar(mod) {
|
|
298
|
+
if (mod && mod.__esModule)
|
|
299
|
+
return mod;
|
|
300
|
+
var result = {};
|
|
301
|
+
if (mod != null)
|
|
302
|
+
for (var k in mod)
|
|
303
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
304
|
+
__createBinding(result, mod, k);
|
|
305
|
+
__setModuleDefault(result, mod);
|
|
306
|
+
return result;
|
|
307
|
+
}
|
|
308
|
+
function __importDefault(mod) {
|
|
309
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
310
|
+
}
|
|
311
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
312
|
+
if (kind === "a" && !f)
|
|
313
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
314
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
315
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
316
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
317
|
+
}
|
|
318
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
319
|
+
if (kind === "m")
|
|
320
|
+
throw new TypeError("Private method is not writable");
|
|
321
|
+
if (kind === "a" && !f)
|
|
322
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
323
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
324
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
325
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
var MainNavComponent = /** @class */ (function () {
|
|
329
|
+
function MainNavComponent(breakpointObserver, _router, coreService) {
|
|
330
|
+
var _this = this;
|
|
331
|
+
this.breakpointObserver = breakpointObserver;
|
|
332
|
+
this._router = _router;
|
|
333
|
+
this.coreService = coreService;
|
|
334
|
+
this.selectedOrganizationId = null;
|
|
335
|
+
this._organizationOpened = false;
|
|
336
|
+
this.showMainHeader = false;
|
|
337
|
+
this.showMainSidebar = false;
|
|
338
|
+
this.showMainFooter = false;
|
|
339
|
+
this.isOrganizationUser = false;
|
|
340
|
+
this.isEmployeeUser = false;
|
|
341
|
+
this.isCustomerUser = false;
|
|
342
|
+
this.isVendorUser = false;
|
|
343
|
+
this.isMasterUser = false;
|
|
344
|
+
this.isMasterAdmin = false;
|
|
345
|
+
this.ToolbarItemClick = new core.EventEmitter();
|
|
346
|
+
this.isHandset$ = this.breakpointObserver.observe(layout.Breakpoints.Handset)
|
|
347
|
+
.pipe(operators.map(function (result) { return result.matches; }), operators.shareReplay());
|
|
348
|
+
this.userImageUrl = mobicloudCore.getProfileImageUrl(undefined, undefined, undefined);
|
|
349
|
+
this.themesEnabled = this.coreService.configService.themes_enabled;
|
|
350
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) {
|
|
351
|
+
_this.userName = p === null || p === void 0 ? void 0 : p.user_username;
|
|
352
|
+
_this.user_fullname = p === null || p === void 0 ? void 0 : p.user_name;
|
|
353
|
+
_this.onUserChanged();
|
|
354
|
+
});
|
|
355
|
+
this.coreService.applicationDetailsObservable.subscribe(function (p) {
|
|
356
|
+
if (_this.coreService.isMasterUserAuthenticated()) {
|
|
357
|
+
_this.org_name = "MASTER";
|
|
358
|
+
_this.org_accountnum = "••••••";
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
_this.org_name = p === null || p === void 0 ? void 0 : p.OrganizationName;
|
|
362
|
+
_this.org_accountnum = p === null || p === void 0 ? void 0 : p.OrganizationAccountNumber;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
this.coreService.profileDetailsObservable.subscribe(function (p) {
|
|
366
|
+
var _a, _b, _c, _d, _e, _f;
|
|
367
|
+
_this.userImageUrl = mobicloudCore.getProfileImageUrl((_b = (_a = _this.coreService.profileDetails) === null || _a === void 0 ? void 0 : _a.Image) === null || _b === void 0 ? void 0 : _b.StorageAccountName, (_d = (_c = _this.coreService.profileDetails) === null || _c === void 0 ? void 0 : _c.Image) === null || _d === void 0 ? void 0 : _d.BlobContainerName, (_f = (_e = _this.coreService.profileDetails) === null || _e === void 0 ? void 0 : _e.Image) === null || _f === void 0 ? void 0 : _f.BlobName);
|
|
368
|
+
});
|
|
369
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isOrganizationUser = p === null || p === void 0 ? void 0 : p.isOrganizationUser; });
|
|
370
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isEmployeeUser = p === null || p === void 0 ? void 0 : p.isEmployeeUser; });
|
|
371
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isCustomerUser = p === null || p === void 0 ? void 0 : p.isCustomerUser; });
|
|
372
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isVendorUser = p === null || p === void 0 ? void 0 : p.isVendorUser; });
|
|
373
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isMasterUser = p === null || p === void 0 ? void 0 : p.isMasterUser; });
|
|
374
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isMasterAdmin = p === null || p === void 0 ? void 0 : p.isMasterAdmin; });
|
|
375
|
+
this.coreService.configService.localeIdObservable.subscribe(function (p) { return _this.currentLocaleId = p; });
|
|
376
|
+
this.coreService.configService.languageNameObservable.subscribe(function (p) { return _this.currentLanguageName = p; });
|
|
377
|
+
this.supportedLanguages = this.coreService.configService.getSupportedLanguages();
|
|
378
|
+
this.coreService.configService.themeNameObservable.subscribe(function (p) {
|
|
379
|
+
_this.currentTheme = p;
|
|
380
|
+
_this.currentThemeCaption = _this.coreService.configService.getThemeCaption(p);
|
|
381
|
+
});
|
|
382
|
+
this.supportedThemes = this.coreService.configService.getSupportedThemes();
|
|
383
|
+
this._appName = this.coreService._appName;
|
|
384
|
+
this._appVersion = this.coreService._appVersion;
|
|
385
|
+
}
|
|
386
|
+
MainNavComponent.prototype.onUserChanged = function () {
|
|
387
|
+
if (this.coreService.isMasterUserAuthenticated()) {
|
|
388
|
+
if (this.coreService.hasMasterOrganization()) {
|
|
389
|
+
this.selectedOrganizationId = this.coreService.getMasterOrganization();
|
|
390
|
+
}
|
|
391
|
+
this.createOrganizationsDataSource();
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
MainNavComponent.prototype.onToolbarItemClick = function (name, parameters) {
|
|
395
|
+
this.ToolbarItemClick.emit({ name: name, parameters: parameters });
|
|
396
|
+
};
|
|
397
|
+
MainNavComponent.prototype.signout = function () {
|
|
398
|
+
this.coreService.signout();
|
|
399
|
+
};
|
|
400
|
+
MainNavComponent.prototype.changeLanguage = function (localeId) {
|
|
401
|
+
if (this.currentLocaleId != localeId) {
|
|
402
|
+
var newHostUrl;
|
|
403
|
+
if (localeId == "en-US") {
|
|
404
|
+
newHostUrl = this.coreService.configService.host_url_en;
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
newHostUrl = this.coreService.configService.host_url;
|
|
408
|
+
}
|
|
409
|
+
var newUrl;
|
|
410
|
+
if (location.pathname.startsWith('/')) {
|
|
411
|
+
newUrl = newHostUrl + location.pathname.substring(1);
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
newUrl = newHostUrl + location.pathname;
|
|
415
|
+
}
|
|
416
|
+
window.location.href = newUrl;
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
MainNavComponent.prototype.changeTheme = function (themeName) {
|
|
420
|
+
this.coreService.configService.changeTheme(themeName);
|
|
421
|
+
};
|
|
422
|
+
MainNavComponent.prototype.createOrganizationsDataSource = function () {
|
|
423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
424
|
+
var _this = this;
|
|
425
|
+
return __generator(this, function (_g) {
|
|
426
|
+
this.organizations_store = new ODataStore__default['default']({
|
|
427
|
+
url: this.coreService.configService.getMobiManagementDataUrl() + "OrganizationInfo/GetAll()",
|
|
428
|
+
withCredentials: true,
|
|
429
|
+
key: "OrganizationId",
|
|
430
|
+
keyType: "Guid",
|
|
431
|
+
version: 4,
|
|
432
|
+
beforeSend: function (e) {
|
|
433
|
+
var _a, _b, _c, _d;
|
|
434
|
+
if (((_a = e.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) == "GET") {
|
|
435
|
+
var regex = (/\)\(([^)]+)\)/).exec((_b = e.url) !== null && _b !== void 0 ? _b : '');
|
|
436
|
+
if (regex && regex[1]) {
|
|
437
|
+
var orgId = regex[1];
|
|
438
|
+
e.url = _this.coreService.configService.getMobiManagementDataUrl() + "OrganizationInfo(" + orgId + ")";
|
|
439
|
+
}
|
|
440
|
+
if (!((_c = e.params) === null || _c === void 0 ? void 0 : _c.$orderby)) {
|
|
441
|
+
e.params.$orderby = "Name";
|
|
442
|
+
}
|
|
443
|
+
if ((_d = e.params) === null || _d === void 0 ? void 0 : _d.$filter) {
|
|
444
|
+
e.params.$filter = e.params.$filter + " and Active eq true or Active eq null";
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
e.params.$filter = "Active eq true or Active eq null";
|
|
448
|
+
}
|
|
449
|
+
e.params.$select = "OrganizationId,Name,AccountNumber";
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
this.organizations_ds = new DataSource__default['default']({
|
|
454
|
+
store: this.organizations_store,
|
|
455
|
+
requireTotalCount: true,
|
|
456
|
+
map: function (dataItem) {
|
|
457
|
+
return Object.assign(new mobicloudCore.OrganizationInfo(), dataItem);
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
return [2 /*return*/];
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
MainNavComponent.prototype.organizationChanged = function (args) {
|
|
465
|
+
var _a, _b;
|
|
466
|
+
this.selectedOrganizationId = ((_a = args.selectedRowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (_b = args.selectedRowsData[0]) === null || _b === void 0 ? void 0 : _b.OrganizationId : null;
|
|
467
|
+
};
|
|
468
|
+
MainNavComponent.prototype.organizationChanged_ValueChanged = function (e) {
|
|
469
|
+
if (e.value) {
|
|
470
|
+
this.coreService.setMasterOrganization(e.value.toString()).then(function () {
|
|
471
|
+
console.log("Organization changed");
|
|
472
|
+
location.reload();
|
|
473
|
+
}).catch(function (res) {
|
|
474
|
+
console.error("Failed changing organization:", res);
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
this.coreService.removeMasterOrganization();
|
|
479
|
+
this._router.navigateByUrl("/").then(function (res) {
|
|
480
|
+
location.reload();
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
return MainNavComponent;
|
|
485
|
+
}());
|
|
486
|
+
MainNavComponent.decorators = [
|
|
487
|
+
{ type: core.Component, args: [{
|
|
488
|
+
selector: 'mobicloud-main-nav',
|
|
489
|
+
template: "<mat-sidenav-container class=\"sidenav-container\" fullscreen>\n\n <mat-sidenav #drawer class=\"sidenav\" fixedInViewport [attr.role]=\"(isHandset$ | async) ? 'dialog' : 'navigation'\"\n [mode]=\"(isHandset$ | async) ? 'over' : 'side'\" [opened]=\"(isHandset$ | async) === false\"\n [fxHide]=\"!showMainSidebar\">\n\n <mat-toolbar class=\"menu-toolbar\">\n <mat-toolbar-row>\n <div class=\"menu-toolbar-content\" routerLink=\"/\">\n <div class=\"menu-toolbar-logo-container\">\n <svg-icon name=\"mobicloud_logo\" class=\"menu-toolbar-logo-icon\"></svg-icon>\n </div>\n <div class=\"menu-toolbar-app-tittle\">{{title}}</div>\n </div>\n </mat-toolbar-row>\n </mat-toolbar>\n\n <mat-nav-list>\n <ng-container *ngFor=\"let menuNode1 of menuNodes\">\n <ng-container *ngIf=\"!menuNode1.children; else hasChildren1\">\n <!-- LEVEL 1 FLAT -->\n <a mat-list-item [routerLink]=\"menuNode1.link\" [state]=\"menuNode1.linkstate\" class=\"navitem-level1\" [routerLinkActive]=\"['navitem-level1-active']\" routerLinkActive #rla1_flat=\"routerLinkActive\">\n <mat-icon svgIcon=\"{{menuNode1.svg}}\" [ngClass]=\"{'inactive': !rla1_flat.isActive,'active': rla1_flat.isActive}\"></mat-icon>\n <span>{{ menuNode1.caption }}</span>\n </a>\n </ng-container>\n <ng-template #hasChildren1>\n <!-- LEVEL 1 EXPAND -->\n <mat-expansion-panel class=\"mat-elevation-z0 expansion-panel-level1\" routerLinkActive #rla1_expand=\"routerLinkActive\" [expanded]=\"rla1_expand.isActive\" [@.disabled]=\"true\">\n <!-- <mat-expansion-panel class=\"mat-elevation-z0 expansion-panel-level1\" routerLinkActive #rla1_expand=\"routerLinkActive\" [expanded]=\"true\"> -->\n <mat-expansion-panel-header [ngClass]=\"{'expansion-panel-header-level1': !rla1_expand.isActive,'expansion-panel-header-level1-active': rla1_expand.isActive}\"> \n <mat-panel-title [ngClass]=\"{'expansion-panel-header-title-level1': !rla1_expand.isActive, 'expansion-panel-header-title-level1-active': rla1_expand.isActive}\">\n <mat-icon svgIcon=\"{{menuNode1.svg}}\" [ngClass]=\"{'inactive': !rla1_expand.isActive,'active': rla1_expand.isActive}\"></mat-icon>\n <span>{{ menuNode1.caption }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-container *ngFor=\"let menuNode2 of menuNode1.children\">\n <!-- LEVEL 2 -->\n <ng-container *ngIf=\"!menuNode2.children; else hasChildren2\">\n <!-- LEVEL 2 FLAT -->\n <a mat-list-item [routerLink]=\"menuNode2.link\" [state]=\"menuNode2.linkstate\" class=\"navitem-level2-flat\" [routerLinkActive]=\"['navitem-level2-active-flat']\" routerLinkActive #rla2_flat=\"routerLinkActive\">\n <mat-icon svgIcon=\"{{menuNode2.svg}}\" [ngClass]=\"{'inactive': !rla2_flat.isActive,'active': rla2_flat.isActive}\"></mat-icon>\n <span>{{ menuNode2.caption }}</span>\n </a> \n </ng-container>\n <ng-template #hasChildren2>\n <!-- LEVEL 2 EXPAND -->\n <mat-expansion-panel class=\"mat-elevation-z0 expansion-panel-level2\" routerLinkActive #rla2_expand=\"routerLinkActive\" [expanded]=\"rla2_expand.isActive\" [@.disabled]=\"true\"> \n <mat-expansion-panel-header [ngClass]=\"{'expansion-panel-header-level2': !rla2_expand.isActive,'expansion-panel-header-level2-active': rla2_expand.isActive}\"> \n <mat-panel-title [ngClass]=\"{'expansion-panel-header-title-level2': !rla2_expand.isActive, 'expansion-panel-header-title-level2-active': rla2_expand.isActive}\">\n <mat-icon svgIcon=\"{{menuNode2.svg}}\" [ngClass]=\"{'inactive': !rla2_expand.isActive,'active': rla2_expand.isActive}\"></mat-icon>\n <span>{{ menuNode2.caption }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-container *ngFor=\"let menuNode3 of menuNode2.children\">\n <!-- LEVEL 3 FLAT -->\n <a mat-list-item [routerLink]=\"menuNode3.link\" [state]=\"menuNode3.linkstate\" class=\"navitem-level3-flat\" [routerLinkActive]=\"['navitem-level3-active-flat']\" routerLinkActive #rla3_flat=\"routerLinkActive\">\n <mat-icon svgIcon=\"{{menuNode3.svg}}\" [ngClass]=\"{'inactive': !rla3_flat.isActive,'active': rla3_flat.isActive}\"></mat-icon>\n <span>{{ menuNode3.caption }}</span>\n </a>\n </ng-container>\n </mat-expansion-panel> \n </ng-template>\n </ng-container>\n </mat-expansion-panel> \n </ng-template>\n </ng-container> \n\n </mat-nav-list>\n\n </mat-sidenav>\n\n <!-- *ngIf=\"showMainSidebar\" -->\n\n <mat-sidenav-content class=\"sidenav-maincontent\">\n <mat-toolbar *ngIf=\"showMainHeader\">\n <mat-toolbar-row>\n <button type=\"button\" aria-label=\"Toggle sidenav\" mat-icon-button (click)=\"drawer.toggle()\"\n *ngIf=\"(isHandset$ | async) && showMainSidebar\">\n <mat-icon aria-label=\"menu icon\" class=\"toolbar-menu-button-icon\">menu</mat-icon>\n </button> \n\n <div class=\"organization-select-container\" *ngIf=\"isMasterUser || isMasterAdmin\">\n <dx-drop-down-box stylingMode=\"outlined\" placeholder=\"Select Organization\" [showClearButton]=\"true\" [dataSource]=\"organizations_ds\" [(value)]=\"selectedOrganizationId\" valueExpr=\"OrganizationId\" displayExpr=\"Name\" [(opened)]=\"_organizationOpened\" (onValueChanged)=\"organizationChanged_ValueChanged($event)\">\n <dxo-drop-down-options title=\"Organizations\" i18n-title=\"@@FieldCaption-Organizations\" [showTitle]=\"true\" [fullScreen]=\"false\" [showCloseButton]=\"true\" width=\"340px\"></dxo-drop-down-options>\n <div *dxTemplate=\"let data of 'content'\">\n <dx-data-grid [focusedRowKey]=\"selectedOrganizationId\" [dataSource]=\"organizations_ds\" [hoverStateEnabled]=\"true\" height=\"100%\" (onSelectionChanged)=\"organizationChanged($event)\" (onRowClick)=\"_organizationOpened = false\">\n <dxi-column dataField=\"ID\" i18n-caption=\"@@GridColumn-Id\" caption=\"Id\" [visible]=\"false\"></dxi-column>\n <dxi-column dataField=\"AccountNumber\" i18n-caption=\"@@GridColumn-AccountNumber\" caption=\"Account no.\" width=\"100px\"></dxi-column>\n <dxi-column dataField=\"Name\" i18n-caption=\"@@GridColumn-Name\" caption=\"Name\"></dxi-column>\n <dxo-selection mode=\"single\"></dxo-selection>\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\n <dxo-scrolling mode=\"virtual\"></dxo-scrolling>\n <dxo-paging [enabled]=\"true\" [pageSize]=\"20\"></dxo-paging>\n </dx-data-grid>\n </div> \n </dx-drop-down-box>\n </div>\n \n <span class=\"toolbar-divider\"></span> \n \n <ng-container *ngIf=\"toolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of toolbarItems\">\n <button aria-label=\"Button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" [state]=\"toolbarItem.linkstate\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"menu-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <div class=\"menu-toolbar-button-content\">\n <svg-icon [name]=\"toolbarItem.svg\" svgClass=\"menu-toolbar-button-icon\"></svg-icon> \n </div> \n </button> \n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container>\n \n <button mat-raised-button *ngIf=\"userName\" [matMenuTriggerFor]=\"profileMenu\" appMaterialElevation [matTooltip]=\"user_fullname\" aria-label=\"Profile\" i18n-aria-label=\"@@Action-Profile\" class=\"menu-toolbar-button menu-toolbar-button-profile\">\n <!-- <svg-icon name=\"mobicloud_profile\" svgClass=\"menu-toolbar-button-icon menu-toolbar-button-icon-small\"></svg-icon> -->\n <div class=\"menu-toolbar-button-content\">\n <img alt=\"\"alt=\"\" [src]=\"userImageUrl\" class=\"menu-toolbar-button-profileImage\">\n <div class=\"profile-text-container\">\n <div class=\"profile-text-accountname\">{{org_name}}</div>\n <div class=\"profile-text-accountdetails\">\n <div class=\"profile-text-accountnumber\">{{org_accountnum}}</div>\n <div class=\"profile-text-username\">\n <svg-icon name=\"mobicloud_employee\" svgClass=\"username-icon\" *ngIf=\"isEmployeeUser\"></svg-icon>\n <svg-icon name=\"mobicloud_system_user\" svgClass=\"username-icon\" *ngIf=\"isOrganizationUser\"></svg-icon>\n <svg-icon name=\"mobicloud_customer\" svgClass=\"username-icon\" *ngIf=\"isCustomerUser\"></svg-icon>\n <svg-icon name=\"mobicloud_vendor\" svgClass=\"username-icon\" *ngIf=\"isVendorUser\"></svg-icon>\n <svg-icon name=\"mobicloud_master_user\" svgClass=\"username-icon\" *ngIf=\"isMasterUser\"></svg-icon>\n <svg-icon name=\"mobicloud_master_admin\" svgClass=\"username-icon\" *ngIf=\"isMasterAdmin\"></svg-icon>\n {{userName}}\n </div>\n </div>\n </div>\n <div class=\"profile-expand-container\">\n <svg-icon name=\"mobicloud_expand\" svgClass=\"expand-icon\"></svg-icon>\n </div>\n </div>\n </button> \n <mat-menu #profileMenu class=\"profileMenu\">\n <button aria-label=\"language\" mat-menu-item [matMenuTriggerFor]=\"languages\">\n <mat-icon svgIcon=\"mobicloud_language\" class=\"menu-item-icon\"></mat-icon>\n <span i18n=\"@@Button-Language\">Language</span><span> ({{currentLanguageName}})</span>\n </button> \n\n <button aria-label=\"theme\" mat-menu-item [matMenuTriggerFor]=\"mobiThemes\" *ngIf=\"themesEnabled\">\n <mat-icon svgIcon=\"mobicloud_language\" class=\"menu-item-icon\"></mat-icon>\n <span i18n=\"@@Button-Themes\">Theme</span><span> ({{currentThemeCaption}})</span>\n </button> \n \n\n <button aria-label=\"profile\" mat-menu-item routerLink=\"/management/profile\" *ngIf=\"(!isMasterUser && !isMasterAdmin)\">\n <mat-icon svgIcon=\"mobicloud_myprofile\" class=\"menu-item-icon\"></mat-icon>\n <span i18n=\"@@Button-MyProfile\">My profile</span>\n </button>\n \n <button aria-label=\"signout\" mat-menu-item (click)=\"signout()\">\n <mat-icon svgIcon=\"mobicloud_logout\" class=\"menu-item-icon\"></mat-icon>\n <span i18n=\"@@Button-SignOut\">Sign out</span>\n </button>\n <button aria-label=\"default theme\" mat-menu-item>\n <mat-icon svgIcon=\"mobicloud_theme_default\" class=\"menu-item-icon\"></mat-icon>\n <span>{{_appName}} v{{_appVersion}}</span>\n </button>\n </mat-menu>\n <mat-menu #languages>\n <button aria-label=\"supported languages\" mat-menu-item *ngFor=\"let language of supportedLanguages\" [disabled]=\"currentLocaleId == language.LocaleId\" (click)=\"changeLanguage(language.LocaleId)\">\n <div class=\"flex_div\">\n <img alt=\"\"alt=\"\" class=\"language-icon\" src=\"./assets/languages/language_{{language.FlagCode | lowercase}}.png\">\n <span class=\"language-text\">{{language.LanguageName}}</span>\n </div>\n </button>\n </mat-menu>\n <mat-menu #mobiThemes>\n <button aria-label=\"chnage theme\" mat-menu-item *ngFor=\"let theme of supportedThemes\" [disabled]=\"currentTheme == theme.ThemeName\" (click)=\"changeTheme(theme.ThemeName)\">\n <div class=\"flex_div\">\n <svg-icon name=\"{{theme.Svg}}\" *ngIf=\"theme.Svg\" class=\"theme-icon menu-item-icon\"></svg-icon>\n <span class=\"theme-text\">{{theme.ThemeCaption}}</span>\n </div>\n </button>\n </mat-menu> \n \n </mat-toolbar-row>\n </mat-toolbar>\n\n <ng-container *ngIf=\"!showMainHeader && showMainSidebar\">\n <button aria-label=\"toggle\" type=\"button\" aria-label=\"Toggle sidenav\" mat-icon-button (click)=\"drawer.toggle()\"\n *ngIf=\"(isHandset$ | async)\">\n <mat-icon aria-label=\"menu icon\">menu</mat-icon>\n </button>\n </ng-container>\n\n <!-- Add Content Here -->\n <div class=\"sidenav-innercontent\">\n <ng-content></ng-content>\n </div>\n \n </mat-sidenav-content>\n</mat-sidenav-container>",
|
|
490
|
+
styles: [".sidenav-container{background-color:var(--default-sidebarcontent-color-background)}.sidenav{width:240px;border-right:0;background-color:var(--default-navmenu-color-background)}.mat-toolbar{position:sticky;position:-webkit-sticky;top:0;z-index:1000;height:80px;background-color:var(--default-navtoolbar-color-background)}.menu-toolbar-content{margin-top:20px;display:block;cursor:pointer}.menu-toolbar-content:focus{outline:0}.menu-toolbar-logo-container{height:35px}.menu-toolbar-logo-icon{width:193px;height:35px;fill:var(--default-menu-logo-color)}.toolbar-divider{flex:1 1 auto}.sidenav-innercontent{height:calc(100% - 100px)!important;background-color:var(--default-sidebarcontent-color-background)}.menu-toolbar{background-color:var(--default-navtoolbar-color-background);height:80px}.toolbar-menu-button-icon{color:var(--default-toolbar-iconcolor)}.menu-toolbar-app-tittle{color:var(--default-menu-title-color);font-size:small;margin:0;padding:0;line-height:4mm;height:4mm;text-align:right}.organization-select-container{margin-bottom:1px;margin-top:21px}::ng-deep .organization-select-container .dx-dropdowneditor-input-wrapper{border-radius:2px;background-color:var(--default-groupbox-header-iconbackground)!important;height:38px!important}.menu-toolbar-button{background-color:var(--default-groupbox-header-iconbackground)!important;width:38px;height:38px;min-width:unset!important;padding:0!important;margin-right:8px!important;margin-top:20px}.menu-toolbar-button-content{height:100%;display:flex;margin-left:8px!important}.menu-toolbar-button-icon{pointer-events:none;fill:var(--default-groupbox-header-iconcolor);width:22px;height:22px;margin-top:8px!important}.menu-toolbar-button-profile{width:193px!important}.menu-toolbar-button-profileImage{width:24px!important;height:24px!important;border-radius:50%;margin-bottom:3px;margin-top:8px!important}.menu-toolbar-button-content .profile-text-container{text-align:left;margin-left:5px;width:134px!important;max-width:134px!important}.menu-toolbar-button-content .profile-expand-container{width:18px!important}.menu-toolbar-button-content .profile-expand-container .expand-icon{fill:var(--default-groupbox-header-iconcolor);width:10px;height:10px;margin-right:2px}.menu-toolbar-button-content .profile-text-container .profile-text-accountname{font-size:smaller!important;font-weight:600;line-height:16px;margin-top:3px;height:16px!important;max-height:16px!important;max-width:134px!important;overflow:hidden;text-overflow:ellipsis}.menu-toolbar-button-content .profile-text-container .profile-text-accountdetails{display:flex;font-size:smaller!important;line-height:19px;max-height:19px!important;height:19px!important;max-width:134px!important;width:134px!important}.menu-toolbar-button-content .profile-text-container .profile-text-accountnumber{width:48px!important}.menu-toolbar-button-content .profile-text-container .profile-text-username{width:86px!important;max-width:86px!important;overflow:hidden;text-overflow:ellipsis;display:flex}.menu-toolbar-button-content .profile-text-container .profile-text-username .username-icon{fill:var(--default-groupbox-header-iconcolor);width:13px;height:13px;margin-right:2px;margin-top:3px}::ng-deep .mat-menu-content,::ng-deep .mat-menu-item{background-color:var(--default-popup-background)!important}::ng-deep .mat-menu-item{color:var(--default-popup-textcolor)!important}.menu-item-icon{fill:var(--default-popup-iconcolor)}.language-icon{margin-right:10px;height:16px;width:32px;margin-top:16px}.flex_div{display:flex}.theme-icon{transform:scale(.6)}.theme-text{margin-top:4px}.mat-nav-list{margin:10px 20px;background-color:var(--default-sidebarcontent-color-background)}::ng-deep .mat-list-item-content{padding:0!important}.navitem-level1{background-color:var(--default-navmenu1-buttoncolor-inactive);margin-bottom:12px;border-radius:8px;height:48px;color:var(--default-navmenu1-textcolor-inactive)!important}.mat-nav-list a.navitem-level1-active{background-color:var(--default-navmenu1-buttoncolor-active);color:var(--default-navmenu1-textcolor-active)!important}.navitem-level1 .mat-icon{transform:scale(.9);padding-left:16px}.navitem-level1 .active{fill:var(--default-navmenu1-iconcolor-active)}.navitem-level1 .inactive{fill:var(--default-navmenu1-iconcolor-inactive)}.navitem-level1 span{margin-left:6px;font-weight:600}.mat-expansion-panel{padding-bottom:0!important}.expansion-panel-level1{padding-bottom:10px!important}.expansion-panel-header-level1,.expansion-panel-header-level1:hover{background-color:var(--default-navmenu1-buttoncolor-inactive)!important;height:48px!important;margin:0;padding-left:16px!important}.expansion-panel-header-level1-active{background-color:var(--default-navmenu1-buttoncolor-active)!important;height:48px!important;margin:0;padding-left:16px!important}.expansion-panel-header-title-level1,.expansion-panel-header-title-level1:hover{color:var(--default-navmenu1-textcolor-inactive)!important;font-weight:600}.expansion-panel-header-title-level1-active,.expansion-panel-header-title-level1-active:hover{color:var(--default-navmenu1-textcolor-active)!important;font-weight:600}.expansion-panel-header-title-level1 .mat-icon,.expansion-panel-header-title-level1-active .mat-icon{transform:scale(.8)}.expansion-panel-header-title-level1-active .active{fill:var(--default-navmenu1-iconcolor-active)}.expansion-panel-header-title-level1 .inactive{fill:var(--default-navmenu1-iconcolor-inactive)}.expansion-panel-header-title-level1 span,.expansion-panel-header-title-level1-active span{margin-left:8px;margin-top:2px}.expansion-panel-header-level1 .mat-expansion-panel-header-description,::ng-deep .expansion-panel-header-level1 .mat-expansion-indicator:after{color:var(--default-navmenu1-textcolor-inactive)!important}.expansion-panel-header-level1-active .mat-expansion-panel-header-description,::ng-deep .expansion-panel-header-level1-active .mat-expansion-indicator:after{color:var(--default-navmenu1-textcolor-active)!important}.mat-expansion-panel{background-color:var(--default-navmenu-color-background)!important}::ng-deep .mat-expansion-panel-content{background-color:var(--default-navmenucontent-color-background)}::ng-deep .expansion-panel-level1 .mat-expansion-panel-body{margin-left:16px;margin-top:6px;margin-bottom:10px;padding-top:0;padding-left:4px!important;padding-right:0!important;padding-bottom:0!important;border-left:1px solid var(--default-navmenu1-border-treeline)}.navitem-level2-flat{padding-left:4px!important;font-size:small;height:28px!important;color:var(--default-navmenu2-textcolor-inactive)!important}.mat-nav-list a.navitem-level2-active-flat{color:var(--default-navmenu2-textcolor-active)!important}.navitem-level2-flat .mat-icon{transform:scale(.6)}.navitem-level2-flat .active{fill:var(--default-navmenu2-iconcolor-active)}.navitem-level2-flat .inactive{fill:var(--default-navmenu2-iconcolor-inactive)}.navitem-level2-flat span{margin-left:2px!important;padding-left:0!important;font-weight:600}.expansion-panel-header-level2,.expansion-panel-header-level2-active,.expansion-panel-header-level2:hover{height:26px!important;margin:0;font-size:small;padding-left:2px!important}.expansion-panel-header-title-level2,.expansion-panel-header-title-level2:hover{color:var(--default-navmenu2-textcolor-inactive)!important;font-weight:600}.expansion-panel-header-title-level2-active,.expansion-panel-header-title-level2-active:hover{color:var(--default-navmenu2-textcolor-active)!important;font-weight:600}.expansion-panel-header-title-level2 .mat-icon,.expansion-panel-header-title-level2-active .mat-icon{transform:scale(.7)}.expansion-panel-header-title-level2 .active,.expansion-panel-header-title-level2-active .active{fill:var(--default-navmenu2-iconcolor-active)}.expansion-panel-header-title-level2 .inactive,.expansion-panel-header-title-level2-active .inactive{fill:var(--default-navmenu2-iconcolor-inactive)}.expansion-panel-header-title-level2 span,.expansion-panel-header-title-level2-active span{margin-left:4px;margin-top:3px}.expansion-panel-header-level2 .mat-expansion-panel-header-description,::ng-deep .expansion-panel-header-level2 .mat-expansion-indicator:after{color:var(--default-navmenu2-textcolor-inactive)!important}.expansion-panel-header-level2-active .mat-expansion-panel-header-description,::ng-deep .expansion-panel-header-level2-active .mat-expansion-indicator:after{color:var(--default-navmenu2-textcolor-active)!important}::ng-deep .expansion-panel-level2 .mat-expansion-panel-body{margin-left:16px;margin-top:0;padding-top:0;padding-left:0!important;padding-right:0!important;padding-bottom:0!important;border-left:0}.navitem-level3-flat{padding-left:4px!important;font-size:small;height:28px!important;color:var(--default-navmenu3-textcolor-inactive)!important}.mat-nav-list a.navitem-level3-active-flat{color:var(--default-navmenu3-textcolor-active)!important}.navitem-level3-flat .mat-icon{transform:scale(.6)}.navitem-level3-flat .active{fill:var(--default-navmenu3-iconcolor-active)}.navitem-level3-flat .inactive{fill:var(--default-navmenu3-iconcolor-inactive)}.navitem-level3-flat span{margin-left:0!important;padding-left:0!important;font-weight:600}"]
|
|
491
|
+
},] }
|
|
492
|
+
];
|
|
493
|
+
MainNavComponent.ctorParameters = function () { return [
|
|
494
|
+
{ type: layout.BreakpointObserver },
|
|
495
|
+
{ type: router.Router },
|
|
496
|
+
{ type: mobicloudCore.MobicloudCoreService }
|
|
82
497
|
]; };
|
|
83
498
|
MainNavComponent.propDecorators = {
|
|
84
499
|
menuNodes: [{ type: core.Input }],
|
|
@@ -302,451 +717,139 @@
|
|
|
302
717
|
configurable: true
|
|
303
718
|
});
|
|
304
719
|
Object.defineProperty(MessageBoxDialogComponent.prototype, "ButtonClass_Primary", {
|
|
305
|
-
get: function () {
|
|
306
|
-
var classList = '';
|
|
307
|
-
if (this.isError) {
|
|
308
|
-
classList = 'dialog-button dialog-button-accent';
|
|
309
|
-
}
|
|
310
|
-
else if (this.isWarning) {
|
|
311
|
-
classList = 'dialog-button dialog-button-accent';
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
classList = 'dialog-button dialog-button-primary';
|
|
315
|
-
}
|
|
316
|
-
return classList;
|
|
317
|
-
},
|
|
318
|
-
enumerable: false,
|
|
319
|
-
configurable: true
|
|
320
|
-
});
|
|
321
|
-
return MessageBoxDialogComponent;
|
|
322
|
-
}());
|
|
323
|
-
MessageBoxDialogComponent.decorators = [
|
|
324
|
-
{ type: core.Component, args: [{
|
|
325
|
-
selector: 'mobicloud-message-box-dialog',
|
|
326
|
-
template: "<div mat-dialog-container class=\"simple-dialog-container\">\n <mat-toolbar *ngIf=\"style==1\" [ngClass]=\"ToolbarClass\">\n {{caption}}\n </mat-toolbar>\n <div class=\"title\" *ngIf=\"title!==''\">\n <p>\n {{title}}\n </p>\n </div>\n <div class=\"message\" *ngIf=\"message!==''\">\n <p>{{message}}</p>\n </div>\n <div class=\"dialog-button-container\">\n <div *ngIf=\"button==0\">\n <button mat-flat-button (click)=\"onOk()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Ok\">Ok</button>\n </div>\n <div *ngIf=\"button==1\">\n <button mat-flat-button (click)=\"onOk()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Ok\">Ok</button>\n <button mat-flat-button (click)=\"onCancel()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-Cancel\">Cancel</button>\n </div>\n <div *ngIf=\"button==2\">\n <button mat-flat-button (click)=\"onYes()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Yes\">Yes</button>\n <button mat-flat-button (click)=\"onNo()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-No\">No</button>\n </div>\n <div *ngIf=\"button==3\">\n <button mat-flat-button (click)=\"onAccept()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Accept\">Accept</button>\n <button mat-flat-button (click)=\"onReject()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-Reject\">Reject</button>\n </div>\n </div>\n </div>",
|
|
327
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
328
|
-
styles: [".mat-dialog-container{padding:0!important}.caption{background-color:var(--default-basecolor-dark);color:var(--default-basecolor-background-light)}.caption,.caption_error{margin:0!important;height:30px;font-size:medium}.caption_error{background-color:var(--default-buttoncolor-error)!important;color:var(--default-buttoncolor-text-error)}.caption_warning{margin:0!important;background-color:var(--default-buttoncolor-warn)!important;color:var(--default-buttoncolor-text-warn)!important;height:30px;font-size:medium}div.title{font-weight:700;padding-left:25px;padding-right:25px;padding-bottom:0}div.message{padding:0 25px;font-size:12pt}.dialog-button-container{padding:10px;float:right}.dialog-button{margin-left:5px}.dialog-button-primary{background-color:var(--default-buttoncolor-primary);color:var(--default-buttoncolor-text-primary)}.dialog-button-accent,.dialog-button-error,.dialog-button-warn{background-color:var(--default-buttoncolor-accent);color:var(--default-buttoncolor-text-accent)}"]
|
|
329
|
-
},] }
|
|
330
|
-
];
|
|
331
|
-
MessageBoxDialogComponent.ctorParameters = function () { return [
|
|
332
|
-
{ type: dialog.MatDialogRef },
|
|
333
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
334
|
-
]; };
|
|
335
|
-
|
|
336
|
-
var ContentToolbarComponent = /** @class */ (function () {
|
|
337
|
-
function ContentToolbarComponent() {
|
|
338
|
-
this.toobarEnabled = true;
|
|
339
|
-
this.toobarTitleIcon = "";
|
|
340
|
-
this.toobarTitle = "";
|
|
341
|
-
this.ToolbarItemClick = new core.EventEmitter();
|
|
342
|
-
}
|
|
343
|
-
ContentToolbarComponent.prototype.ngOnInit = function () {
|
|
344
|
-
};
|
|
345
|
-
ContentToolbarComponent.prototype.onToolbarItemClick = function (name, parameters) {
|
|
346
|
-
this.ToolbarItemClick.emit({ name: name, parameters: parameters });
|
|
347
|
-
};
|
|
348
|
-
return ContentToolbarComponent;
|
|
349
|
-
}());
|
|
350
|
-
ContentToolbarComponent.decorators = [
|
|
351
|
-
{ type: core.Component, args: [{
|
|
352
|
-
selector: 'mobicloud-content-toolbar',
|
|
353
|
-
template: "<mat-toolbar class=\"content-toolbar\" *ngIf=\"toobarEnabled\">\n <mat-toolbar-row class=\"content-toolbar-row\">\n <ng-container *ngIf=\"preToolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of preToolbarItems\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-pre-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <mat-icon svgIcon=\"{{toolbarItem.svg}}\" class=\"content-pre-toolbar-button-icon\"></mat-icon>\n </button>\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container> \n <div class=\"content-toolbar-title\">\n <!-- <mat-icon svgIcon=\"{{toobarTitleIcon}}\" class=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></mat-icon> -->\n <svg-icon [name]=\"toobarTitleIcon\" svgClass=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></svg-icon>\n {{toobarTitle}}\n </div>\n \n <ng-content></ng-content>\n <span class=\"content-toolbar-divider\"></span>\n \n <ng-container *ngIf=\"toolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of toolbarItems\">\n \n <ng-container *ngIf=\"toolbarItem.children\">\n <button aria-label=\"Button\" [matMenuTriggerFor]=\"toolbarChildMenu\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n <mat-menu #toolbarChildMenu>\n <ng-container *ngFor=\"let childToolbarItem of toolbarItem.children\">\n <button aria-label=\"button\" mat-menu-item [routerLink]=\"childToolbarItem.link ? childToolbarItem.link : null\" (click)=\"[childToolbarItem.click ? onToolbarItemClick(childToolbarItem.click, childToolbarItem.click_paramters) : null]\">\n <mat-icon [svgIcon]=\"childToolbarItem.svg\" class=\"content-toolbar-menu-item-icon\"></mat-icon>\n <span>{{childToolbarItem.caption}}</span>\n </button>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngIf=\"!toolbarItem.children\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n </ng-container>\n\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container>\n </mat-toolbar-row>\n</mat-toolbar> ",
|
|
354
|
-
styles: [".content-toolbar{background-color:transparent!important;min-height:32px!important;max-height:32px!important;margin-bottom:14px}.content-toolbar-row{padding:0}.content-pre-toolbar-button{background-color:transparent!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-right:10px!important}.content-pre-toolbar-button-icon{margin-bottom:8px;width:20px;fill:var(--default-toolbar-iconcolor-nobackground)}.content-toolbar-title{font-size:large;font-weight:600;color:var(--default-pagecaption-textcolor);display:flex}.content-toolbar-title-icon{height:20px;width:20px;margin-right:8px;margin-top:5px;fill:var(--default-pagecaption-iconcolor)}.content-toolbar-divider{flex:1 1 auto}.content-toolbar-button{background-color:var(--default-toolbar-iconcolor-withbackground)!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-left:8px!important}.content-toolbar-button-icon{pointer-events:none;fill:var(--default-toolbar-iconcolor);width:16px;height:16px;margin-top:6px}.content-toolbar-menu-item-icon{fill:var(--default-popup-iconcolor)}"]
|
|
355
|
-
},] }
|
|
356
|
-
];
|
|
357
|
-
ContentToolbarComponent.ctorParameters = function () { return []; };
|
|
358
|
-
ContentToolbarComponent.propDecorators = {
|
|
359
|
-
toobarEnabled: [{ type: core.Input }],
|
|
360
|
-
preToolbarItems: [{ type: core.Input }],
|
|
361
|
-
toobarTitleIcon: [{ type: core.Input }],
|
|
362
|
-
toobarTitle: [{ type: core.Input }],
|
|
363
|
-
toolbarItems: [{ type: core.Input }],
|
|
364
|
-
ToolbarItemClick: [{ type: core.Output }]
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
var MaterialElevationDirective = /** @class */ (function () {
|
|
368
|
-
function MaterialElevationDirective(element, renderer) {
|
|
369
|
-
this.element = element;
|
|
370
|
-
this.renderer = renderer;
|
|
371
|
-
this.defaultElevation = 0;
|
|
372
|
-
this.raisedElevation = 8;
|
|
373
|
-
this.setElevation(this.defaultElevation);
|
|
374
|
-
}
|
|
375
|
-
MaterialElevationDirective.prototype.ngOnChanges = function (_changes) {
|
|
376
|
-
this.setElevation(this.defaultElevation);
|
|
377
|
-
};
|
|
378
|
-
MaterialElevationDirective.prototype.onMouseEnter = function () {
|
|
379
|
-
this.setElevation(this.raisedElevation);
|
|
380
|
-
};
|
|
381
|
-
MaterialElevationDirective.prototype.onMouseLeave = function () {
|
|
382
|
-
this.setElevation(this.defaultElevation);
|
|
383
|
-
};
|
|
384
|
-
MaterialElevationDirective.prototype.setElevation = function (amount) {
|
|
385
|
-
var _this = this;
|
|
386
|
-
var classesToRemove = Array.from(this.element.nativeElement.classList).filter(function (c) { return c.startsWith('mat-elevation-z'); });
|
|
387
|
-
classesToRemove.forEach(function (c) {
|
|
388
|
-
_this.renderer.removeClass(_this.element.nativeElement, c);
|
|
389
|
-
});
|
|
390
|
-
var newClass = "mat-elevation-z" + amount;
|
|
391
|
-
this.renderer.addClass(this.element.nativeElement, newClass);
|
|
392
|
-
};
|
|
393
|
-
return MaterialElevationDirective;
|
|
394
|
-
}());
|
|
395
|
-
MaterialElevationDirective.decorators = [
|
|
396
|
-
{ type: core.Directive, args: [{
|
|
397
|
-
selector: '[appMaterialElevation]'
|
|
398
|
-
},] }
|
|
399
|
-
];
|
|
400
|
-
MaterialElevationDirective.ctorParameters = function () { return [
|
|
401
|
-
{ type: core.ElementRef },
|
|
402
|
-
{ type: core.Renderer2 }
|
|
403
|
-
]; };
|
|
404
|
-
MaterialElevationDirective.propDecorators = {
|
|
405
|
-
defaultElevation: [{ type: core.Input }],
|
|
406
|
-
raisedElevation: [{ type: core.Input }],
|
|
407
|
-
onMouseEnter: [{ type: core.HostListener, args: ['mouseenter',] }],
|
|
408
|
-
onMouseLeave: [{ type: core.HostListener, args: ['mouseleave',] }]
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
var ProfilePageComponent = /** @class */ (function () {
|
|
412
|
-
function ProfilePageComponent(coreService) {
|
|
413
|
-
this.coreService = coreService;
|
|
414
|
-
this.isSystemUser = false;
|
|
415
|
-
this.isEmployee = false;
|
|
416
|
-
this.isCustomerUser = false;
|
|
417
|
-
this.isVendorUser = false;
|
|
418
|
-
}
|
|
419
|
-
ProfilePageComponent.prototype.ngOnInit = function () {
|
|
420
|
-
var _this = this;
|
|
421
|
-
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isSystemUser = p === null || p === void 0 ? void 0 : p.isOrganizationUser; });
|
|
422
|
-
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isEmployee = p === null || p === void 0 ? void 0 : p.isEmployeeUser; });
|
|
423
|
-
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isCustomerUser = p === null || p === void 0 ? void 0 : p.isCustomerUser; });
|
|
424
|
-
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isVendorUser = p === null || p === void 0 ? void 0 : p.isVendorUser; });
|
|
425
|
-
};
|
|
426
|
-
return ProfilePageComponent;
|
|
427
|
-
}());
|
|
428
|
-
ProfilePageComponent.decorators = [
|
|
429
|
-
{ type: core.Component, args: [{
|
|
430
|
-
selector: 'mobicloud-profile-page',
|
|
431
|
-
template: "<div class=\"profile-container\"> \n\n <mobicloud-profile-page-system-user *ngIf=\"isSystemUser\"></mobicloud-profile-page-system-user>\n <mobicloud-profile-page-employee *ngIf=\"isEmployee\"></mobicloud-profile-page-employee>\n <mobicloud-profile-page-customer-user *ngIf=\"isCustomerUser\"></mobicloud-profile-page-customer-user>\n <mobicloud-profile-page-vendor-user *ngIf=\"isVendorUser\"></mobicloud-profile-page-vendor-user>\n\n</div>\n",
|
|
432
|
-
styles: [".profile-container{margin:20px 20px 10px}"]
|
|
433
|
-
},] }
|
|
434
|
-
];
|
|
435
|
-
ProfilePageComponent.ctorParameters = function () { return [
|
|
436
|
-
{ type: mobicloudCore.MobicloudCoreService }
|
|
437
|
-
]; };
|
|
438
|
-
|
|
439
|
-
/*! *****************************************************************************
|
|
440
|
-
Copyright (c) Microsoft Corporation.
|
|
441
|
-
|
|
442
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
443
|
-
purpose with or without fee is hereby granted.
|
|
444
|
-
|
|
445
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
446
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
447
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
448
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
449
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
450
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
452
|
-
***************************************************************************** */
|
|
453
|
-
/* global Reflect, Promise */
|
|
454
|
-
var extendStatics = function (d, b) {
|
|
455
|
-
extendStatics = Object.setPrototypeOf ||
|
|
456
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
457
|
-
function (d, b) { for (var p in b)
|
|
458
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
459
|
-
d[p] = b[p]; };
|
|
460
|
-
return extendStatics(d, b);
|
|
461
|
-
};
|
|
462
|
-
function __extends(d, b) {
|
|
463
|
-
if (typeof b !== "function" && b !== null)
|
|
464
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
465
|
-
extendStatics(d, b);
|
|
466
|
-
function __() { this.constructor = d; }
|
|
467
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
468
|
-
}
|
|
469
|
-
var __assign = function () {
|
|
470
|
-
__assign = Object.assign || function __assign(t) {
|
|
471
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
472
|
-
s = arguments[i];
|
|
473
|
-
for (var p in s)
|
|
474
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
475
|
-
t[p] = s[p];
|
|
476
|
-
}
|
|
477
|
-
return t;
|
|
478
|
-
};
|
|
479
|
-
return __assign.apply(this, arguments);
|
|
480
|
-
};
|
|
481
|
-
function __rest(s, e) {
|
|
482
|
-
var t = {};
|
|
483
|
-
for (var p in s)
|
|
484
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
485
|
-
t[p] = s[p];
|
|
486
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
487
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
488
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
489
|
-
t[p[i]] = s[p[i]];
|
|
490
|
-
}
|
|
491
|
-
return t;
|
|
492
|
-
}
|
|
493
|
-
function __decorate(decorators, target, key, desc) {
|
|
494
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
495
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
496
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
497
|
-
else
|
|
498
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
499
|
-
if (d = decorators[i])
|
|
500
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
501
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
502
|
-
}
|
|
503
|
-
function __param(paramIndex, decorator) {
|
|
504
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
505
|
-
}
|
|
506
|
-
function __metadata(metadataKey, metadataValue) {
|
|
507
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
508
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
509
|
-
}
|
|
510
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
511
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
512
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
513
|
-
function fulfilled(value) { try {
|
|
514
|
-
step(generator.next(value));
|
|
515
|
-
}
|
|
516
|
-
catch (e) {
|
|
517
|
-
reject(e);
|
|
518
|
-
} }
|
|
519
|
-
function rejected(value) { try {
|
|
520
|
-
step(generator["throw"](value));
|
|
521
|
-
}
|
|
522
|
-
catch (e) {
|
|
523
|
-
reject(e);
|
|
524
|
-
} }
|
|
525
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
526
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
function __generator(thisArg, body) {
|
|
530
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
531
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
532
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
533
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
534
|
-
function step(op) {
|
|
535
|
-
if (f)
|
|
536
|
-
throw new TypeError("Generator is already executing.");
|
|
537
|
-
while (_)
|
|
538
|
-
try {
|
|
539
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
540
|
-
return t;
|
|
541
|
-
if (y = 0, t)
|
|
542
|
-
op = [op[0] & 2, t.value];
|
|
543
|
-
switch (op[0]) {
|
|
544
|
-
case 0:
|
|
545
|
-
case 1:
|
|
546
|
-
t = op;
|
|
547
|
-
break;
|
|
548
|
-
case 4:
|
|
549
|
-
_.label++;
|
|
550
|
-
return { value: op[1], done: false };
|
|
551
|
-
case 5:
|
|
552
|
-
_.label++;
|
|
553
|
-
y = op[1];
|
|
554
|
-
op = [0];
|
|
555
|
-
continue;
|
|
556
|
-
case 7:
|
|
557
|
-
op = _.ops.pop();
|
|
558
|
-
_.trys.pop();
|
|
559
|
-
continue;
|
|
560
|
-
default:
|
|
561
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
562
|
-
_ = 0;
|
|
563
|
-
continue;
|
|
564
|
-
}
|
|
565
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
566
|
-
_.label = op[1];
|
|
567
|
-
break;
|
|
568
|
-
}
|
|
569
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
570
|
-
_.label = t[1];
|
|
571
|
-
t = op;
|
|
572
|
-
break;
|
|
573
|
-
}
|
|
574
|
-
if (t && _.label < t[2]) {
|
|
575
|
-
_.label = t[2];
|
|
576
|
-
_.ops.push(op);
|
|
577
|
-
break;
|
|
578
|
-
}
|
|
579
|
-
if (t[2])
|
|
580
|
-
_.ops.pop();
|
|
581
|
-
_.trys.pop();
|
|
582
|
-
continue;
|
|
583
|
-
}
|
|
584
|
-
op = body.call(thisArg, _);
|
|
585
|
-
}
|
|
586
|
-
catch (e) {
|
|
587
|
-
op = [6, e];
|
|
588
|
-
y = 0;
|
|
589
|
-
}
|
|
590
|
-
finally {
|
|
591
|
-
f = t = 0;
|
|
592
|
-
}
|
|
593
|
-
if (op[0] & 5)
|
|
594
|
-
throw op[1];
|
|
595
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
599
|
-
if (k2 === undefined)
|
|
600
|
-
k2 = k;
|
|
601
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
602
|
-
}) : (function (o, m, k, k2) {
|
|
603
|
-
if (k2 === undefined)
|
|
604
|
-
k2 = k;
|
|
605
|
-
o[k2] = m[k];
|
|
606
|
-
});
|
|
607
|
-
function __exportStar(m, o) {
|
|
608
|
-
for (var p in m)
|
|
609
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
610
|
-
__createBinding(o, m, p);
|
|
611
|
-
}
|
|
612
|
-
function __values(o) {
|
|
613
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
614
|
-
if (m)
|
|
615
|
-
return m.call(o);
|
|
616
|
-
if (o && typeof o.length === "number")
|
|
617
|
-
return {
|
|
618
|
-
next: function () {
|
|
619
|
-
if (o && i >= o.length)
|
|
620
|
-
o = void 0;
|
|
621
|
-
return { value: o && o[i++], done: !o };
|
|
720
|
+
get: function () {
|
|
721
|
+
var classList = '';
|
|
722
|
+
if (this.isError) {
|
|
723
|
+
classList = 'dialog-button dialog-button-accent';
|
|
622
724
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
/** @deprecated */
|
|
657
|
-
function __spreadArrays() {
|
|
658
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
659
|
-
s += arguments[i].length;
|
|
660
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
661
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
662
|
-
r[k] = a[j];
|
|
663
|
-
return r;
|
|
664
|
-
}
|
|
665
|
-
function __spreadArray(to, from) {
|
|
666
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
667
|
-
to[j] = from[i];
|
|
668
|
-
return to;
|
|
669
|
-
}
|
|
670
|
-
function __await(v) {
|
|
671
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
672
|
-
}
|
|
673
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
674
|
-
if (!Symbol.asyncIterator)
|
|
675
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
676
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
677
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
678
|
-
function verb(n) { if (g[n])
|
|
679
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
680
|
-
function resume(n, v) { try {
|
|
681
|
-
step(g[n](v));
|
|
725
|
+
else if (this.isWarning) {
|
|
726
|
+
classList = 'dialog-button dialog-button-accent';
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
classList = 'dialog-button dialog-button-primary';
|
|
730
|
+
}
|
|
731
|
+
return classList;
|
|
732
|
+
},
|
|
733
|
+
enumerable: false,
|
|
734
|
+
configurable: true
|
|
735
|
+
});
|
|
736
|
+
return MessageBoxDialogComponent;
|
|
737
|
+
}());
|
|
738
|
+
MessageBoxDialogComponent.decorators = [
|
|
739
|
+
{ type: core.Component, args: [{
|
|
740
|
+
selector: 'mobicloud-message-box-dialog',
|
|
741
|
+
template: "<div mat-dialog-container class=\"simple-dialog-container\">\n <mat-toolbar *ngIf=\"style==1\" [ngClass]=\"ToolbarClass\">\n {{caption}}\n </mat-toolbar>\n <div class=\"title\" *ngIf=\"title!==''\">\n <p>\n {{title}}\n </p>\n </div>\n <div class=\"message\" *ngIf=\"message!==''\">\n <p>{{message}}</p>\n </div>\n <div class=\"dialog-button-container\">\n <div *ngIf=\"button==0\">\n <button mat-flat-button (click)=\"onOk()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Ok\">Ok</button>\n </div>\n <div *ngIf=\"button==1\">\n <button mat-flat-button (click)=\"onOk()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Ok\">Ok</button>\n <button mat-flat-button (click)=\"onCancel()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-Cancel\">Cancel</button>\n </div>\n <div *ngIf=\"button==2\">\n <button mat-flat-button (click)=\"onYes()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Yes\">Yes</button>\n <button mat-flat-button (click)=\"onNo()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-No\">No</button>\n </div>\n <div *ngIf=\"button==3\">\n <button mat-flat-button (click)=\"onAccept()\" tabindex=\"-1\" [ngClass]=\"ButtonClass_Primary\" i18n=\"@@Button-Accept\">Accept</button>\n <button mat-flat-button (click)=\"onReject()\" tabindex=\"-1\" class=\"dialog-button dialog-button-accent\" i18n=\"@@Button-Reject\">Reject</button>\n </div>\n </div>\n </div>",
|
|
742
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
743
|
+
styles: [".mat-dialog-container{padding:0!important}.caption{background-color:var(--default-basecolor-dark);color:var(--default-basecolor-background-light)}.caption,.caption_error{margin:0!important;height:30px;font-size:medium}.caption_error{background-color:var(--default-buttoncolor-error)!important;color:var(--default-buttoncolor-text-error)}.caption_warning{margin:0!important;background-color:var(--default-buttoncolor-warn)!important;color:var(--default-buttoncolor-text-warn)!important;height:30px;font-size:medium}div.title{font-weight:700;padding-left:25px;padding-right:25px;padding-bottom:0}div.message{padding:0 25px;font-size:12pt}.dialog-button-container{padding:10px;float:right}.dialog-button{margin-left:5px}.dialog-button-primary{background-color:var(--default-buttoncolor-primary);color:var(--default-buttoncolor-text-primary)}.dialog-button-accent,.dialog-button-error,.dialog-button-warn{background-color:var(--default-buttoncolor-accent);color:var(--default-buttoncolor-text-accent)}"]
|
|
744
|
+
},] }
|
|
745
|
+
];
|
|
746
|
+
MessageBoxDialogComponent.ctorParameters = function () { return [
|
|
747
|
+
{ type: dialog.MatDialogRef },
|
|
748
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
749
|
+
]; };
|
|
750
|
+
|
|
751
|
+
var ContentToolbarComponent = /** @class */ (function () {
|
|
752
|
+
function ContentToolbarComponent() {
|
|
753
|
+
this.toobarEnabled = true;
|
|
754
|
+
this.toobarTitleIcon = "";
|
|
755
|
+
this.toobarTitle = "";
|
|
756
|
+
this.ToolbarItemClick = new core.EventEmitter();
|
|
682
757
|
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
function
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
758
|
+
ContentToolbarComponent.prototype.ngOnInit = function () {
|
|
759
|
+
};
|
|
760
|
+
ContentToolbarComponent.prototype.onToolbarItemClick = function (name, parameters) {
|
|
761
|
+
this.ToolbarItemClick.emit({ name: name, parameters: parameters });
|
|
762
|
+
};
|
|
763
|
+
return ContentToolbarComponent;
|
|
764
|
+
}());
|
|
765
|
+
ContentToolbarComponent.decorators = [
|
|
766
|
+
{ type: core.Component, args: [{
|
|
767
|
+
selector: 'mobicloud-content-toolbar',
|
|
768
|
+
template: "<mat-toolbar class=\"content-toolbar\" *ngIf=\"toobarEnabled\">\n <mat-toolbar-row class=\"content-toolbar-row\">\n <ng-container *ngIf=\"preToolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of preToolbarItems\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-pre-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <mat-icon svgIcon=\"{{toolbarItem.svg}}\" class=\"content-pre-toolbar-button-icon\"></mat-icon>\n </button>\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container> \n <div class=\"content-toolbar-title\">\n <!-- <mat-icon svgIcon=\"{{toobarTitleIcon}}\" class=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></mat-icon> -->\n <svg-icon [name]=\"toobarTitleIcon\" svgClass=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></svg-icon>\n {{toobarTitle}}\n </div>\n \n <ng-content></ng-content>\n <span class=\"content-toolbar-divider\"></span>\n \n <ng-container *ngIf=\"toolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of toolbarItems\">\n \n <ng-container *ngIf=\"toolbarItem.children\">\n <button aria-label=\"Button\" [matMenuTriggerFor]=\"toolbarChildMenu\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n <mat-menu #toolbarChildMenu>\n <ng-container *ngFor=\"let childToolbarItem of toolbarItem.children\">\n <button aria-label=\"button\" mat-menu-item [routerLink]=\"childToolbarItem.link ? childToolbarItem.link : null\" (click)=\"[childToolbarItem.click ? onToolbarItemClick(childToolbarItem.click, childToolbarItem.click_paramters) : null]\">\n <mat-icon [svgIcon]=\"childToolbarItem.svg\" class=\"content-toolbar-menu-item-icon\"></mat-icon>\n <span>{{childToolbarItem.caption}}</span>\n </button>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngIf=\"!toolbarItem.children\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n </ng-container>\n\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container>\n </mat-toolbar-row>\n</mat-toolbar> ",
|
|
769
|
+
styles: [".content-toolbar{background-color:transparent!important;min-height:32px!important;max-height:32px!important;margin-bottom:14px}.content-toolbar-row{padding:0}.content-pre-toolbar-button{background-color:transparent!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-right:10px!important}.content-pre-toolbar-button-icon{margin-bottom:8px;width:20px;fill:var(--default-toolbar-iconcolor-nobackground)}.content-toolbar-title{font-size:large;font-weight:600;color:var(--default-pagecaption-textcolor);display:flex}.content-toolbar-title-icon{height:20px;width:20px;margin-right:8px;margin-top:5px;fill:var(--default-pagecaption-iconcolor)}.content-toolbar-divider{flex:1 1 auto}.content-toolbar-button{background-color:var(--default-toolbar-iconcolor-withbackground)!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-left:8px!important}.content-toolbar-button-icon{pointer-events:none;fill:var(--default-toolbar-iconcolor);width:16px;height:16px;margin-top:6px}.content-toolbar-menu-item-icon{fill:var(--default-popup-iconcolor)}"]
|
|
770
|
+
},] }
|
|
771
|
+
];
|
|
772
|
+
ContentToolbarComponent.ctorParameters = function () { return []; };
|
|
773
|
+
ContentToolbarComponent.propDecorators = {
|
|
774
|
+
toobarEnabled: [{ type: core.Input }],
|
|
775
|
+
preToolbarItems: [{ type: core.Input }],
|
|
776
|
+
toobarTitleIcon: [{ type: core.Input }],
|
|
777
|
+
toobarTitle: [{ type: core.Input }],
|
|
778
|
+
toolbarItems: [{ type: core.Input }],
|
|
779
|
+
ToolbarItemClick: [{ type: core.Output }]
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
var MaterialElevationDirective = /** @class */ (function () {
|
|
783
|
+
function MaterialElevationDirective(element, renderer) {
|
|
784
|
+
this.element = element;
|
|
785
|
+
this.renderer = renderer;
|
|
786
|
+
this.defaultElevation = 0;
|
|
787
|
+
this.raisedElevation = 8;
|
|
788
|
+
this.setElevation(this.defaultElevation);
|
|
708
789
|
}
|
|
709
|
-
|
|
710
|
-
|
|
790
|
+
MaterialElevationDirective.prototype.ngOnChanges = function (_changes) {
|
|
791
|
+
this.setElevation(this.defaultElevation);
|
|
792
|
+
};
|
|
793
|
+
MaterialElevationDirective.prototype.onMouseEnter = function () {
|
|
794
|
+
this.setElevation(this.raisedElevation);
|
|
795
|
+
};
|
|
796
|
+
MaterialElevationDirective.prototype.onMouseLeave = function () {
|
|
797
|
+
this.setElevation(this.defaultElevation);
|
|
798
|
+
};
|
|
799
|
+
MaterialElevationDirective.prototype.setElevation = function (amount) {
|
|
800
|
+
var _this = this;
|
|
801
|
+
var classesToRemove = Array.from(this.element.nativeElement.classList).filter(function (c) { return c.startsWith('mat-elevation-z'); });
|
|
802
|
+
classesToRemove.forEach(function (c) {
|
|
803
|
+
_this.renderer.removeClass(_this.element.nativeElement, c);
|
|
804
|
+
});
|
|
805
|
+
var newClass = "mat-elevation-z" + amount;
|
|
806
|
+
this.renderer.addClass(this.element.nativeElement, newClass);
|
|
807
|
+
};
|
|
808
|
+
return MaterialElevationDirective;
|
|
809
|
+
}());
|
|
810
|
+
MaterialElevationDirective.decorators = [
|
|
811
|
+
{ type: core.Directive, args: [{
|
|
812
|
+
selector: '[appMaterialElevation]'
|
|
813
|
+
},] }
|
|
814
|
+
];
|
|
815
|
+
MaterialElevationDirective.ctorParameters = function () { return [
|
|
816
|
+
{ type: core.ElementRef },
|
|
817
|
+
{ type: core.Renderer2 }
|
|
818
|
+
]; };
|
|
819
|
+
MaterialElevationDirective.propDecorators = {
|
|
820
|
+
defaultElevation: [{ type: core.Input }],
|
|
821
|
+
raisedElevation: [{ type: core.Input }],
|
|
822
|
+
onMouseEnter: [{ type: core.HostListener, args: ['mouseenter',] }],
|
|
823
|
+
onMouseLeave: [{ type: core.HostListener, args: ['mouseleave',] }]
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
var ProfilePageComponent = /** @class */ (function () {
|
|
827
|
+
function ProfilePageComponent(coreService) {
|
|
828
|
+
this.coreService = coreService;
|
|
829
|
+
this.isSystemUser = false;
|
|
830
|
+
this.isEmployee = false;
|
|
831
|
+
this.isCustomerUser = false;
|
|
832
|
+
this.isVendorUser = false;
|
|
711
833
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
function __importDefault(mod) {
|
|
732
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
733
|
-
}
|
|
734
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
735
|
-
if (kind === "a" && !f)
|
|
736
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
737
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
738
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
739
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
740
|
-
}
|
|
741
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
742
|
-
if (kind === "m")
|
|
743
|
-
throw new TypeError("Private method is not writable");
|
|
744
|
-
if (kind === "a" && !f)
|
|
745
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
746
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
747
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
748
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
749
|
-
}
|
|
834
|
+
ProfilePageComponent.prototype.ngOnInit = function () {
|
|
835
|
+
var _this = this;
|
|
836
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isSystemUser = p === null || p === void 0 ? void 0 : p.isOrganizationUser; });
|
|
837
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isEmployee = p === null || p === void 0 ? void 0 : p.isEmployeeUser; });
|
|
838
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isCustomerUser = p === null || p === void 0 ? void 0 : p.isCustomerUser; });
|
|
839
|
+
this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.isVendorUser = p === null || p === void 0 ? void 0 : p.isVendorUser; });
|
|
840
|
+
};
|
|
841
|
+
return ProfilePageComponent;
|
|
842
|
+
}());
|
|
843
|
+
ProfilePageComponent.decorators = [
|
|
844
|
+
{ type: core.Component, args: [{
|
|
845
|
+
selector: 'mobicloud-profile-page',
|
|
846
|
+
template: "<div class=\"profile-container\"> \n\n <mobicloud-profile-page-system-user *ngIf=\"isSystemUser\"></mobicloud-profile-page-system-user>\n <mobicloud-profile-page-employee *ngIf=\"isEmployee\"></mobicloud-profile-page-employee>\n <mobicloud-profile-page-customer-user *ngIf=\"isCustomerUser\"></mobicloud-profile-page-customer-user>\n <mobicloud-profile-page-vendor-user *ngIf=\"isVendorUser\"></mobicloud-profile-page-vendor-user>\n\n</div>\n",
|
|
847
|
+
styles: [".profile-container{margin:20px 20px 10px}"]
|
|
848
|
+
},] }
|
|
849
|
+
];
|
|
850
|
+
ProfilePageComponent.ctorParameters = function () { return [
|
|
851
|
+
{ type: mobicloudCore.MobicloudCoreService }
|
|
852
|
+
]; };
|
|
750
853
|
|
|
751
854
|
var ProfilePageSystemUserComponent = /** @class */ (function () {
|
|
752
855
|
function ProfilePageSystemUserComponent(route, coreService, cloudDataService, router, location) {
|
|
@@ -1946,12 +2049,15 @@
|
|
|
1946
2049
|
EmployeeProfileImageComponent.prototype.onRetryClick = function () {
|
|
1947
2050
|
this.imageEdit.upload();
|
|
1948
2051
|
};
|
|
2052
|
+
EmployeeProfileImageComponent.prototype.isUploadedChange = function (success) {
|
|
2053
|
+
this.coreService.fetchProfileDetails();
|
|
2054
|
+
};
|
|
1949
2055
|
return EmployeeProfileImageComponent;
|
|
1950
2056
|
}());
|
|
1951
2057
|
EmployeeProfileImageComponent.decorators = [
|
|
1952
2058
|
{ type: core.Component, args: [{
|
|
1953
2059
|
selector: 'mobicloud-employee-profile-image',
|
|
1954
|
-
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"employeeProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
2060
|
+
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"employeeProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\" (isUploadedChange)=\"isUploadedChange($event)\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
1955
2061
|
styles: [""]
|
|
1956
2062
|
},] }
|
|
1957
2063
|
];
|
|
@@ -2976,12 +3082,15 @@
|
|
|
2976
3082
|
CustomerUserImageComponent.prototype.onRetryClick = function () {
|
|
2977
3083
|
this.imageEdit.upload();
|
|
2978
3084
|
};
|
|
3085
|
+
CustomerUserImageComponent.prototype.isUploadedChange = function (success) {
|
|
3086
|
+
this.coreService.fetchProfileDetails();
|
|
3087
|
+
};
|
|
2979
3088
|
return CustomerUserImageComponent;
|
|
2980
3089
|
}());
|
|
2981
3090
|
CustomerUserImageComponent.decorators = [
|
|
2982
3091
|
{ type: core.Component, args: [{
|
|
2983
3092
|
selector: 'mobicloud-customer-user-image',
|
|
2984
|
-
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"customerUserProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
3093
|
+
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"customerUserProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\" (isUploadedChange)=\"isUploadedChange($event)\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
2985
3094
|
styles: [""]
|
|
2986
3095
|
},] }
|
|
2987
3096
|
];
|
|
@@ -3604,12 +3713,15 @@
|
|
|
3604
3713
|
VendorUserImageComponent.prototype.onRetryClick = function () {
|
|
3605
3714
|
this.imageEdit.upload();
|
|
3606
3715
|
};
|
|
3716
|
+
VendorUserImageComponent.prototype.isUploadedChange = function (success) {
|
|
3717
|
+
this.coreService.fetchProfileDetails();
|
|
3718
|
+
};
|
|
3607
3719
|
return VendorUserImageComponent;
|
|
3608
3720
|
}());
|
|
3609
3721
|
VendorUserImageComponent.decorators = [
|
|
3610
3722
|
{ type: core.Component, args: [{
|
|
3611
3723
|
selector: 'mobicloud-vendor-user-image',
|
|
3612
|
-
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"vendorUserProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
3724
|
+
template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"vendorUserProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\" (isUploadedChange)=\"isUploadedChange($event)\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
|
|
3613
3725
|
styles: [""]
|
|
3614
3726
|
},] }
|
|
3615
3727
|
];
|