@rxap/directives 12.3.0 → 13.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +13 -0
- package/esm2020/lib/avatar-background-image.directive.mjs +58 -0
- package/esm2020/lib/background-image.directive.mjs +134 -0
- package/esm2020/lib/confirm-click.mjs +34 -0
- package/esm2020/lib/contenteditable.directive.mjs +81 -0
- package/esm2020/lib/full-width.directive.mjs +31 -0
- package/esm2020/lib/if-truthy.directive.mjs +72 -0
- package/esm2020/lib/method.directive.mjs +118 -0
- package/esm2020/lib/movable-divider.directive.mjs +101 -0
- package/esm2020/lib/prevent-default.directive.mjs +31 -0
- package/esm2020/lib/share-button.directive.mjs +75 -0
- package/esm2020/lib/stop-immediate-propagation.directive.mjs +31 -0
- package/esm2020/lib/stop-propagation.directive.mjs +31 -0
- package/esm2020/rxap-directives.mjs +5 -0
- package/fesm2015/{rxap-directives.js → rxap-directives.mjs} +111 -107
- package/fesm2015/rxap-directives.mjs.map +1 -0
- package/fesm2020/rxap-directives.mjs +773 -0
- package/fesm2020/rxap-directives.mjs.map +1 -0
- package/package.json +29 -15
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-directives.umd.js +0 -1273
- package/bundles/rxap-directives.umd.js.map +0 -1
- package/esm2015/index.js +0 -13
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/avatar-background-image.directive.js +0 -58
- package/esm2015/lib/avatar-background-image.directive.js.map +0 -1
- package/esm2015/lib/background-image.directive.js +0 -137
- package/esm2015/lib/background-image.directive.js.map +0 -1
- package/esm2015/lib/confirm-click.js +0 -34
- package/esm2015/lib/confirm-click.js.map +0 -1
- package/esm2015/lib/contenteditable.directive.js +0 -84
- package/esm2015/lib/contenteditable.directive.js.map +0 -1
- package/esm2015/lib/full-width.directive.js +0 -31
- package/esm2015/lib/full-width.directive.js.map +0 -1
- package/esm2015/lib/if-truthy.directive.js +0 -75
- package/esm2015/lib/if-truthy.directive.js.map +0 -1
- package/esm2015/lib/method.directive.js +0 -122
- package/esm2015/lib/method.directive.js.map +0 -1
- package/esm2015/lib/movable-divider.directive.js +0 -102
- package/esm2015/lib/movable-divider.directive.js.map +0 -1
- package/esm2015/lib/prevent-default.directive.js +0 -31
- package/esm2015/lib/prevent-default.directive.js.map +0 -1
- package/esm2015/lib/share-button.directive.js +0 -77
- package/esm2015/lib/share-button.directive.js.map +0 -1
- package/esm2015/lib/stop-immediate-propagation.directive.js +0 -31
- package/esm2015/lib/stop-immediate-propagation.directive.js.map +0 -1
- package/esm2015/lib/stop-propagation.directive.js +0 -31
- package/esm2015/lib/stop-propagation.directive.js.map +0 -1
- package/esm2015/rxap-directives.js +0 -5
- package/esm2015/rxap-directives.js.map +0 -1
- package/fesm2015/rxap-directives.js.map +0 -1
|
@@ -1,1273 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@rxap/services'), require('@rxap/utilities'), require('@rxap/utilities/rxjs'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rxap/directives', ['exports', '@angular/core', '@rxap/services', '@rxap/utilities', '@rxap/utilities/rxjs', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.directives = {}), global.ng.core, global.i1, global.utilities, global.rxjs, global.rxjs, global.rxjs.operators));
|
|
5
|
-
}(this, (function (exports, i0, i1, utilities, rxjs, rxjs$1, operators) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
|
|
30
|
-
/*! *****************************************************************************
|
|
31
|
-
Copyright (c) Microsoft Corporation.
|
|
32
|
-
|
|
33
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
-
purpose with or without fee is hereby granted.
|
|
35
|
-
|
|
36
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
-
***************************************************************************** */
|
|
44
|
-
/* global Reflect, Promise */
|
|
45
|
-
var extendStatics = function (d, b) {
|
|
46
|
-
extendStatics = Object.setPrototypeOf ||
|
|
47
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48
|
-
function (d, b) { for (var p in b)
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
50
|
-
d[p] = b[p]; };
|
|
51
|
-
return extendStatics(d, b);
|
|
52
|
-
};
|
|
53
|
-
function __extends(d, b) {
|
|
54
|
-
if (typeof b !== "function" && b !== null)
|
|
55
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
-
extendStatics(d, b);
|
|
57
|
-
function __() { this.constructor = d; }
|
|
58
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
-
}
|
|
60
|
-
var __assign = function () {
|
|
61
|
-
__assign = Object.assign || function __assign(t) {
|
|
62
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
-
s = arguments[i];
|
|
64
|
-
for (var p in s)
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
-
t[p] = s[p];
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
69
|
-
};
|
|
70
|
-
return __assign.apply(this, arguments);
|
|
71
|
-
};
|
|
72
|
-
function __rest(s, e) {
|
|
73
|
-
var t = {};
|
|
74
|
-
for (var p in s)
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
76
|
-
t[p] = s[p];
|
|
77
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
78
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
79
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
80
|
-
t[p[i]] = s[p[i]];
|
|
81
|
-
}
|
|
82
|
-
return t;
|
|
83
|
-
}
|
|
84
|
-
function __decorate(decorators, target, key, desc) {
|
|
85
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
87
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
88
|
-
else
|
|
89
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
90
|
-
if (d = decorators[i])
|
|
91
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
-
}
|
|
94
|
-
function __param(paramIndex, decorator) {
|
|
95
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
96
|
-
}
|
|
97
|
-
function __metadata(metadataKey, metadataValue) {
|
|
98
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
99
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
100
|
-
}
|
|
101
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
102
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
103
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
104
|
-
function fulfilled(value) { try {
|
|
105
|
-
step(generator.next(value));
|
|
106
|
-
}
|
|
107
|
-
catch (e) {
|
|
108
|
-
reject(e);
|
|
109
|
-
} }
|
|
110
|
-
function rejected(value) { try {
|
|
111
|
-
step(generator["throw"](value));
|
|
112
|
-
}
|
|
113
|
-
catch (e) {
|
|
114
|
-
reject(e);
|
|
115
|
-
} }
|
|
116
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
117
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function __generator(thisArg, body) {
|
|
121
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
122
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
123
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
124
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
125
|
-
function step(op) {
|
|
126
|
-
if (f)
|
|
127
|
-
throw new TypeError("Generator is already executing.");
|
|
128
|
-
while (_)
|
|
129
|
-
try {
|
|
130
|
-
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)
|
|
131
|
-
return t;
|
|
132
|
-
if (y = 0, t)
|
|
133
|
-
op = [op[0] & 2, t.value];
|
|
134
|
-
switch (op[0]) {
|
|
135
|
-
case 0:
|
|
136
|
-
case 1:
|
|
137
|
-
t = op;
|
|
138
|
-
break;
|
|
139
|
-
case 4:
|
|
140
|
-
_.label++;
|
|
141
|
-
return { value: op[1], done: false };
|
|
142
|
-
case 5:
|
|
143
|
-
_.label++;
|
|
144
|
-
y = op[1];
|
|
145
|
-
op = [0];
|
|
146
|
-
continue;
|
|
147
|
-
case 7:
|
|
148
|
-
op = _.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
default:
|
|
152
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
153
|
-
_ = 0;
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
157
|
-
_.label = op[1];
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
161
|
-
_.label = t[1];
|
|
162
|
-
t = op;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
if (t && _.label < t[2]) {
|
|
166
|
-
_.label = t[2];
|
|
167
|
-
_.ops.push(op);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (t[2])
|
|
171
|
-
_.ops.pop();
|
|
172
|
-
_.trys.pop();
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
op = body.call(thisArg, _);
|
|
176
|
-
}
|
|
177
|
-
catch (e) {
|
|
178
|
-
op = [6, e];
|
|
179
|
-
y = 0;
|
|
180
|
-
}
|
|
181
|
-
finally {
|
|
182
|
-
f = t = 0;
|
|
183
|
-
}
|
|
184
|
-
if (op[0] & 5)
|
|
185
|
-
throw op[1];
|
|
186
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
190
|
-
if (k2 === undefined)
|
|
191
|
-
k2 = k;
|
|
192
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
193
|
-
}) : (function (o, m, k, k2) {
|
|
194
|
-
if (k2 === undefined)
|
|
195
|
-
k2 = k;
|
|
196
|
-
o[k2] = m[k];
|
|
197
|
-
});
|
|
198
|
-
function __exportStar(m, o) {
|
|
199
|
-
for (var p in m)
|
|
200
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
201
|
-
__createBinding(o, m, p);
|
|
202
|
-
}
|
|
203
|
-
function __values(o) {
|
|
204
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
205
|
-
if (m)
|
|
206
|
-
return m.call(o);
|
|
207
|
-
if (o && typeof o.length === "number")
|
|
208
|
-
return {
|
|
209
|
-
next: function () {
|
|
210
|
-
if (o && i >= o.length)
|
|
211
|
-
o = void 0;
|
|
212
|
-
return { value: o && o[i++], done: !o };
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
216
|
-
}
|
|
217
|
-
function __read(o, n) {
|
|
218
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
219
|
-
if (!m)
|
|
220
|
-
return o;
|
|
221
|
-
var i = m.call(o), r, ar = [], e;
|
|
222
|
-
try {
|
|
223
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
224
|
-
ar.push(r.value);
|
|
225
|
-
}
|
|
226
|
-
catch (error) {
|
|
227
|
-
e = { error: error };
|
|
228
|
-
}
|
|
229
|
-
finally {
|
|
230
|
-
try {
|
|
231
|
-
if (r && !r.done && (m = i["return"]))
|
|
232
|
-
m.call(i);
|
|
233
|
-
}
|
|
234
|
-
finally {
|
|
235
|
-
if (e)
|
|
236
|
-
throw e.error;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return ar;
|
|
240
|
-
}
|
|
241
|
-
/** @deprecated */
|
|
242
|
-
function __spread() {
|
|
243
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
244
|
-
ar = ar.concat(__read(arguments[i]));
|
|
245
|
-
return ar;
|
|
246
|
-
}
|
|
247
|
-
/** @deprecated */
|
|
248
|
-
function __spreadArrays() {
|
|
249
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
250
|
-
s += arguments[i].length;
|
|
251
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
252
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
253
|
-
r[k] = a[j];
|
|
254
|
-
return r;
|
|
255
|
-
}
|
|
256
|
-
function __spreadArray(to, from) {
|
|
257
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
258
|
-
to[j] = from[i];
|
|
259
|
-
return to;
|
|
260
|
-
}
|
|
261
|
-
function __await(v) {
|
|
262
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
263
|
-
}
|
|
264
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
265
|
-
if (!Symbol.asyncIterator)
|
|
266
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
267
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
268
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n) { if (g[n])
|
|
270
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
271
|
-
function resume(n, v) { try {
|
|
272
|
-
step(g[n](v));
|
|
273
|
-
}
|
|
274
|
-
catch (e) {
|
|
275
|
-
settle(q[0][3], e);
|
|
276
|
-
} }
|
|
277
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
278
|
-
function fulfill(value) { resume("next", value); }
|
|
279
|
-
function reject(value) { resume("throw", value); }
|
|
280
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
281
|
-
resume(q[0][0], q[0][1]); }
|
|
282
|
-
}
|
|
283
|
-
function __asyncDelegator(o) {
|
|
284
|
-
var i, p;
|
|
285
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
286
|
-
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; }
|
|
287
|
-
}
|
|
288
|
-
function __asyncValues(o) {
|
|
289
|
-
if (!Symbol.asyncIterator)
|
|
290
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
291
|
-
var m = o[Symbol.asyncIterator], i;
|
|
292
|
-
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);
|
|
293
|
-
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); }); }; }
|
|
294
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
295
|
-
}
|
|
296
|
-
function __makeTemplateObject(cooked, raw) {
|
|
297
|
-
if (Object.defineProperty) {
|
|
298
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
cooked.raw = raw;
|
|
302
|
-
}
|
|
303
|
-
return cooked;
|
|
304
|
-
}
|
|
305
|
-
;
|
|
306
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
307
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
308
|
-
}) : function (o, v) {
|
|
309
|
-
o["default"] = v;
|
|
310
|
-
};
|
|
311
|
-
function __importStar(mod) {
|
|
312
|
-
if (mod && mod.__esModule)
|
|
313
|
-
return mod;
|
|
314
|
-
var result = {};
|
|
315
|
-
if (mod != null)
|
|
316
|
-
for (var k in mod)
|
|
317
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
318
|
-
__createBinding(result, mod, k);
|
|
319
|
-
__setModuleDefault(result, mod);
|
|
320
|
-
return result;
|
|
321
|
-
}
|
|
322
|
-
function __importDefault(mod) {
|
|
323
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
324
|
-
}
|
|
325
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
326
|
-
if (kind === "a" && !f)
|
|
327
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
328
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
329
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
330
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
331
|
-
}
|
|
332
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
333
|
-
if (kind === "m")
|
|
334
|
-
throw new TypeError("Private method is not writable");
|
|
335
|
-
if (kind === "a" && !f)
|
|
336
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
337
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
exports.GlobalStyleOptions = void 0;
|
|
343
|
-
(function (GlobalStyleOptions) {
|
|
344
|
-
GlobalStyleOptions["INITIAL"] = "initial";
|
|
345
|
-
GlobalStyleOptions["INHERIT"] = "inherit";
|
|
346
|
-
})(exports.GlobalStyleOptions || (exports.GlobalStyleOptions = {}));
|
|
347
|
-
// TODO : complete description
|
|
348
|
-
// https://www.w3schools.com/cssref/css3_pr_background-size.asp
|
|
349
|
-
exports.BackgroundSizeOptions = void 0;
|
|
350
|
-
(function (BackgroundSizeOptions) {
|
|
351
|
-
BackgroundSizeOptions["AUTO"] = "auto";
|
|
352
|
-
BackgroundSizeOptions["COVER"] = "cover";
|
|
353
|
-
BackgroundSizeOptions["CONTAIN"] = "contain";
|
|
354
|
-
})(exports.BackgroundSizeOptions || (exports.BackgroundSizeOptions = {}));
|
|
355
|
-
// TODO : complete options and description
|
|
356
|
-
// https://www.w3schools.com/cssref/pr_background-repeat.asp
|
|
357
|
-
exports.BackgroundRepeatOptions = void 0;
|
|
358
|
-
(function (BackgroundRepeatOptions) {
|
|
359
|
-
BackgroundRepeatOptions["NO_REPEAT"] = "no-repeat";
|
|
360
|
-
})(exports.BackgroundRepeatOptions || (exports.BackgroundRepeatOptions = {}));
|
|
361
|
-
// TODO : complete options and description
|
|
362
|
-
// https://www.w3schools.com/cssref/pr_background-position.asp
|
|
363
|
-
exports.BackgroundPositionOptions = void 0;
|
|
364
|
-
(function (BackgroundPositionOptions) {
|
|
365
|
-
BackgroundPositionOptions["CENTER"] = "center";
|
|
366
|
-
BackgroundPositionOptions["CENTER_CENTER"] = "center center";
|
|
367
|
-
})(exports.BackgroundPositionOptions || (exports.BackgroundPositionOptions = {}));
|
|
368
|
-
var BackgroundImageDirective = /** @class */ (function () {
|
|
369
|
-
// TODO : add inputs for all 'background-*' styles
|
|
370
|
-
function BackgroundImageDirective(host, renderer, imageLoader) {
|
|
371
|
-
this.host = host;
|
|
372
|
-
this.renderer = renderer;
|
|
373
|
-
this.imageLoader = imageLoader;
|
|
374
|
-
this.imageUrl = null;
|
|
375
|
-
}
|
|
376
|
-
BackgroundImageDirective.prototype.ngOnInit = function () {
|
|
377
|
-
if (this.size) {
|
|
378
|
-
this.sizeChange(this.size);
|
|
379
|
-
}
|
|
380
|
-
if (this.position) {
|
|
381
|
-
this.positionChange(this.position);
|
|
382
|
-
}
|
|
383
|
-
if (this.repeat) {
|
|
384
|
-
this.repeatChange(this.repeat);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
BackgroundImageDirective.prototype.ngOnChanges = function (changes) {
|
|
388
|
-
var e_1, _a;
|
|
389
|
-
try {
|
|
390
|
-
for (var _b = __values(Object.keys(changes)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
391
|
-
var propertyKey = _c.value;
|
|
392
|
-
switch (propertyKey) {
|
|
393
|
-
case 'imageUrl':
|
|
394
|
-
if (changes.imageUrl.currentValue) {
|
|
395
|
-
this.imageUrlChange(changes.imageUrl.currentValue);
|
|
396
|
-
}
|
|
397
|
-
break;
|
|
398
|
-
case 'size':
|
|
399
|
-
this.sizeChange(changes.size.currentValue);
|
|
400
|
-
break;
|
|
401
|
-
case 'repeat':
|
|
402
|
-
this.repeatChange(changes.repeat.currentValue);
|
|
403
|
-
break;
|
|
404
|
-
case 'position':
|
|
405
|
-
this.positionChange(changes.position.currentValue);
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
411
|
-
finally {
|
|
412
|
-
try {
|
|
413
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
414
|
-
}
|
|
415
|
-
finally { if (e_1) throw e_1.error; }
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
BackgroundImageDirective.prototype.repeatChange = function (repeat) {
|
|
419
|
-
this.renderer.setStyle(this.host.nativeElement, 'background-repeat', repeat);
|
|
420
|
-
};
|
|
421
|
-
BackgroundImageDirective.prototype.positionChange = function (position) {
|
|
422
|
-
this.renderer.setStyle(this.host.nativeElement, 'background-position', position);
|
|
423
|
-
};
|
|
424
|
-
BackgroundImageDirective.prototype.sizeChange = function (size) {
|
|
425
|
-
this.renderer.setStyle(this.host.nativeElement, 'background-size', size);
|
|
426
|
-
};
|
|
427
|
-
BackgroundImageDirective.prototype.imageUrlChange = function (imageUrl) {
|
|
428
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
429
|
-
return __generator(this, function (_a) {
|
|
430
|
-
switch (_a.label) {
|
|
431
|
-
case 0:
|
|
432
|
-
if (this.placeholderImageUrl) {
|
|
433
|
-
this.renderer.setStyle(this.host.nativeElement, 'background-image', "url(\"" + this.placeholderImageUrl + "\")");
|
|
434
|
-
}
|
|
435
|
-
if (!imageUrl) return [3 /*break*/, 2];
|
|
436
|
-
return [4 /*yield*/, this.imageLoader.load(imageUrl)];
|
|
437
|
-
case 1:
|
|
438
|
-
_a.sent();
|
|
439
|
-
this.renderer.setStyle(this.host.nativeElement, 'background-image', "url(\"" + imageUrl + "\")");
|
|
440
|
-
return [3 /*break*/, 3];
|
|
441
|
-
case 2:
|
|
442
|
-
if (i0.isDevMode()) {
|
|
443
|
-
console.warn('background image url is not defined');
|
|
444
|
-
}
|
|
445
|
-
_a.label = 3;
|
|
446
|
-
case 3: return [2 /*return*/];
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
});
|
|
450
|
-
};
|
|
451
|
-
return BackgroundImageDirective;
|
|
452
|
-
}());
|
|
453
|
-
BackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ImageLoaderService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
454
|
-
BackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
455
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirective, decorators: [{
|
|
456
|
-
type: i0.Directive,
|
|
457
|
-
args: [{
|
|
458
|
-
selector: '[rxapBackgroundImage]',
|
|
459
|
-
}]
|
|
460
|
-
}], ctorParameters: function () {
|
|
461
|
-
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
462
|
-
type: i0.Inject,
|
|
463
|
-
args: [i0.ElementRef]
|
|
464
|
-
}] }, { type: i0__namespace.Renderer2, decorators: [{
|
|
465
|
-
type: i0.Inject,
|
|
466
|
-
args: [i0.Renderer2]
|
|
467
|
-
}] }, { type: i1__namespace.ImageLoaderService, decorators: [{
|
|
468
|
-
type: i0.Inject,
|
|
469
|
-
args: [i1.ImageLoaderService]
|
|
470
|
-
}] }];
|
|
471
|
-
}, propDecorators: { imageUrl: [{
|
|
472
|
-
type: i0.Input,
|
|
473
|
-
args: ['rxapBackgroundImage']
|
|
474
|
-
}], placeholderImageUrl: [{
|
|
475
|
-
type: i0.Input
|
|
476
|
-
}], size: [{
|
|
477
|
-
type: i0.Input
|
|
478
|
-
}], repeat: [{
|
|
479
|
-
type: i0.Input
|
|
480
|
-
}], position: [{
|
|
481
|
-
type: i0.Input
|
|
482
|
-
}] } });
|
|
483
|
-
var BackgroundImageDirectiveModule = /** @class */ (function () {
|
|
484
|
-
function BackgroundImageDirectiveModule() {
|
|
485
|
-
}
|
|
486
|
-
return BackgroundImageDirectiveModule;
|
|
487
|
-
}());
|
|
488
|
-
BackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
489
|
-
BackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, declarations: [BackgroundImageDirective], exports: [BackgroundImageDirective] });
|
|
490
|
-
BackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirectiveModule });
|
|
491
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, decorators: [{
|
|
492
|
-
type: i0.NgModule,
|
|
493
|
-
args: [{
|
|
494
|
-
declarations: [BackgroundImageDirective],
|
|
495
|
-
exports: [BackgroundImageDirective],
|
|
496
|
-
}]
|
|
497
|
-
}] });
|
|
498
|
-
|
|
499
|
-
var PreventDefaultDirective = /** @class */ (function () {
|
|
500
|
-
function PreventDefaultDirective() {
|
|
501
|
-
}
|
|
502
|
-
PreventDefaultDirective.prototype.onClick = function ($event) {
|
|
503
|
-
$event.preventDefault();
|
|
504
|
-
};
|
|
505
|
-
return PreventDefaultDirective;
|
|
506
|
-
}());
|
|
507
|
-
PreventDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
508
|
-
PreventDefaultDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: PreventDefaultDirective, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
509
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirective, decorators: [{
|
|
510
|
-
type: i0.Directive,
|
|
511
|
-
args: [{
|
|
512
|
-
selector: '[rxapPreventDefault]'
|
|
513
|
-
}]
|
|
514
|
-
}], propDecorators: { onClick: [{
|
|
515
|
-
type: i0.HostListener,
|
|
516
|
-
args: ['click', ['$event']]
|
|
517
|
-
}] } });
|
|
518
|
-
var PreventDefaultDirectiveModule = /** @class */ (function () {
|
|
519
|
-
function PreventDefaultDirectiveModule() {
|
|
520
|
-
}
|
|
521
|
-
return PreventDefaultDirectiveModule;
|
|
522
|
-
}());
|
|
523
|
-
PreventDefaultDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
524
|
-
PreventDefaultDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] });
|
|
525
|
-
PreventDefaultDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirectiveModule });
|
|
526
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, decorators: [{
|
|
527
|
-
type: i0.NgModule,
|
|
528
|
-
args: [{
|
|
529
|
-
exports: [PreventDefaultDirective],
|
|
530
|
-
declarations: [PreventDefaultDirective]
|
|
531
|
-
}]
|
|
532
|
-
}] });
|
|
533
|
-
|
|
534
|
-
var StopImmediatePropagationDirective = /** @class */ (function () {
|
|
535
|
-
function StopImmediatePropagationDirective() {
|
|
536
|
-
}
|
|
537
|
-
StopImmediatePropagationDirective.prototype.onClick = function ($event) {
|
|
538
|
-
$event.stopImmediatePropagation();
|
|
539
|
-
};
|
|
540
|
-
return StopImmediatePropagationDirective;
|
|
541
|
-
}());
|
|
542
|
-
StopImmediatePropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
543
|
-
StopImmediatePropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: StopImmediatePropagationDirective, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
544
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirective, decorators: [{
|
|
545
|
-
type: i0.Directive,
|
|
546
|
-
args: [{
|
|
547
|
-
selector: '[rxapStopImmediatePropagation]'
|
|
548
|
-
}]
|
|
549
|
-
}], propDecorators: { onClick: [{
|
|
550
|
-
type: i0.HostListener,
|
|
551
|
-
args: ['click', ['$event']]
|
|
552
|
-
}] } });
|
|
553
|
-
var StopImmediatePropagationDirectiveModule = /** @class */ (function () {
|
|
554
|
-
function StopImmediatePropagationDirectiveModule() {
|
|
555
|
-
}
|
|
556
|
-
return StopImmediatePropagationDirectiveModule;
|
|
557
|
-
}());
|
|
558
|
-
StopImmediatePropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
559
|
-
StopImmediatePropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] });
|
|
560
|
-
StopImmediatePropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule });
|
|
561
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, decorators: [{
|
|
562
|
-
type: i0.NgModule,
|
|
563
|
-
args: [{
|
|
564
|
-
exports: [StopImmediatePropagationDirective],
|
|
565
|
-
declarations: [StopImmediatePropagationDirective]
|
|
566
|
-
}]
|
|
567
|
-
}] });
|
|
568
|
-
|
|
569
|
-
var StopPropagationDirective = /** @class */ (function () {
|
|
570
|
-
function StopPropagationDirective() {
|
|
571
|
-
}
|
|
572
|
-
StopPropagationDirective.prototype.onClick = function ($event) {
|
|
573
|
-
$event.stopPropagation();
|
|
574
|
-
};
|
|
575
|
-
return StopPropagationDirective;
|
|
576
|
-
}());
|
|
577
|
-
StopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
578
|
-
StopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: StopPropagationDirective, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
579
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirective, decorators: [{
|
|
580
|
-
type: i0.Directive,
|
|
581
|
-
args: [{
|
|
582
|
-
selector: '[rxapStopPropagation]'
|
|
583
|
-
}]
|
|
584
|
-
}], propDecorators: { onClick: [{
|
|
585
|
-
type: i0.HostListener,
|
|
586
|
-
args: ['click', ['$event']]
|
|
587
|
-
}] } });
|
|
588
|
-
var StopPropagationDirectiveModule = /** @class */ (function () {
|
|
589
|
-
function StopPropagationDirectiveModule() {
|
|
590
|
-
}
|
|
591
|
-
return StopPropagationDirectiveModule;
|
|
592
|
-
}());
|
|
593
|
-
StopPropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
594
|
-
StopPropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] });
|
|
595
|
-
StopPropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirectiveModule });
|
|
596
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: StopPropagationDirectiveModule, decorators: [{
|
|
597
|
-
type: i0.NgModule,
|
|
598
|
-
args: [{
|
|
599
|
-
exports: [StopPropagationDirective],
|
|
600
|
-
declarations: [StopPropagationDirective]
|
|
601
|
-
}]
|
|
602
|
-
}] });
|
|
603
|
-
|
|
604
|
-
var ShareService = /** @class */ (function () {
|
|
605
|
-
function ShareService() {
|
|
606
|
-
}
|
|
607
|
-
ShareService.prototype.share = function (data) {
|
|
608
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
609
|
-
return __generator(this, function (_a) {
|
|
610
|
-
switch (_a.label) {
|
|
611
|
-
case 0:
|
|
612
|
-
if (!this.isShareSupported()) return [3 /*break*/, 4];
|
|
613
|
-
if (!navigator.canShare(data)) return [3 /*break*/, 2];
|
|
614
|
-
return [4 /*yield*/, navigator.share(data)];
|
|
615
|
-
case 1:
|
|
616
|
-
_a.sent();
|
|
617
|
-
return [3 /*break*/, 3];
|
|
618
|
-
case 2:
|
|
619
|
-
console.debug('share data:', data);
|
|
620
|
-
throw new Error('Can not share data. Data is invalid!');
|
|
621
|
-
case 3: return [3 /*break*/, 5];
|
|
622
|
-
case 4:
|
|
623
|
-
alert('Native share is not supported!');
|
|
624
|
-
_a.label = 5;
|
|
625
|
-
case 5: return [2 /*return*/];
|
|
626
|
-
}
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
};
|
|
630
|
-
ShareService.prototype.isShareSupported = function () {
|
|
631
|
-
return !!navigator.share;
|
|
632
|
-
};
|
|
633
|
-
return ShareService;
|
|
634
|
-
}());
|
|
635
|
-
ShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
636
|
-
ShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareService, providedIn: 'root' });
|
|
637
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareService, decorators: [{
|
|
638
|
-
type: i0.Injectable,
|
|
639
|
-
args: [{ providedIn: 'root' }]
|
|
640
|
-
}] });
|
|
641
|
-
var ShareButtonDirective = /** @class */ (function () {
|
|
642
|
-
function ShareButtonDirective(shareService) {
|
|
643
|
-
this.shareService = shareService;
|
|
644
|
-
}
|
|
645
|
-
ShareButtonDirective.prototype.share = function () {
|
|
646
|
-
this.shareService.share({ url: this.url, text: this.text, files: this.files, title: this.title })
|
|
647
|
-
.then(function () { return console.log('share successfully'); })
|
|
648
|
-
.catch(function (err) { return console.error('share failed', err.message); });
|
|
649
|
-
};
|
|
650
|
-
return ShareButtonDirective;
|
|
651
|
-
}());
|
|
652
|
-
ShareButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
653
|
-
ShareButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ShareButtonDirective, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0__namespace });
|
|
654
|
-
__decorate([
|
|
655
|
-
utilities.Required,
|
|
656
|
-
__metadata("design:type", String)
|
|
657
|
-
], ShareButtonDirective.prototype, "title", void 0);
|
|
658
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirective, decorators: [{
|
|
659
|
-
type: i0.Directive,
|
|
660
|
-
args: [{
|
|
661
|
-
selector: '[rxapShareButton]'
|
|
662
|
-
}]
|
|
663
|
-
}], ctorParameters: function () { return [{ type: ShareService }]; }, propDecorators: { url: [{
|
|
664
|
-
type: i0.Input
|
|
665
|
-
}], text: [{
|
|
666
|
-
type: i0.Input
|
|
667
|
-
}], title: [{
|
|
668
|
-
type: i0.Input
|
|
669
|
-
}], files: [{
|
|
670
|
-
type: i0.Input
|
|
671
|
-
}], share: [{
|
|
672
|
-
type: i0.HostListener,
|
|
673
|
-
args: ['click']
|
|
674
|
-
}] } });
|
|
675
|
-
var ShareButtonDirectiveModule = /** @class */ (function () {
|
|
676
|
-
function ShareButtonDirectiveModule() {
|
|
677
|
-
}
|
|
678
|
-
return ShareButtonDirectiveModule;
|
|
679
|
-
}());
|
|
680
|
-
ShareButtonDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
681
|
-
ShareButtonDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] });
|
|
682
|
-
ShareButtonDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirectiveModule });
|
|
683
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ShareButtonDirectiveModule, decorators: [{
|
|
684
|
-
type: i0.NgModule,
|
|
685
|
-
args: [{
|
|
686
|
-
exports: [ShareButtonDirective],
|
|
687
|
-
declarations: [ShareButtonDirective]
|
|
688
|
-
}]
|
|
689
|
-
}] });
|
|
690
|
-
|
|
691
|
-
var FullWidthDirective = /** @class */ (function () {
|
|
692
|
-
function FullWidthDirective() {
|
|
693
|
-
this.width = '100%';
|
|
694
|
-
}
|
|
695
|
-
return FullWidthDirective;
|
|
696
|
-
}());
|
|
697
|
-
FullWidthDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
698
|
-
FullWidthDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: FullWidthDirective, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0__namespace });
|
|
699
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirective, decorators: [{
|
|
700
|
-
type: i0.Directive,
|
|
701
|
-
args: [{
|
|
702
|
-
selector: '[rxapFullWidth]',
|
|
703
|
-
}]
|
|
704
|
-
}], propDecorators: { width: [{
|
|
705
|
-
type: i0.HostBinding,
|
|
706
|
-
args: ['style.width']
|
|
707
|
-
}] } });
|
|
708
|
-
var FullWidthDirectiveModule = /** @class */ (function () {
|
|
709
|
-
function FullWidthDirectiveModule() {
|
|
710
|
-
}
|
|
711
|
-
return FullWidthDirectiveModule;
|
|
712
|
-
}());
|
|
713
|
-
FullWidthDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
714
|
-
FullWidthDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirectiveModule, declarations: [FullWidthDirective], exports: [FullWidthDirective] });
|
|
715
|
-
FullWidthDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirectiveModule });
|
|
716
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FullWidthDirectiveModule, decorators: [{
|
|
717
|
-
type: i0.NgModule,
|
|
718
|
-
args: [{
|
|
719
|
-
declarations: [FullWidthDirective],
|
|
720
|
-
exports: [FullWidthDirective]
|
|
721
|
-
}]
|
|
722
|
-
}] });
|
|
723
|
-
|
|
724
|
-
var AvatarBackgroundImageDirective = /** @class */ (function (_super) {
|
|
725
|
-
__extends(AvatarBackgroundImageDirective, _super);
|
|
726
|
-
function AvatarBackgroundImageDirective(host, renderer, imageLoader, avatarImage) {
|
|
727
|
-
var _this = _super.call(this, host, renderer, imageLoader) || this;
|
|
728
|
-
_this.avatarImage = avatarImage;
|
|
729
|
-
_this.imageUrl = null;
|
|
730
|
-
_this.size = exports.BackgroundSizeOptions.COVER;
|
|
731
|
-
_this.repeat = exports.BackgroundRepeatOptions.NO_REPEAT;
|
|
732
|
-
return _this;
|
|
733
|
-
}
|
|
734
|
-
Object.defineProperty(AvatarBackgroundImageDirective.prototype, "name", {
|
|
735
|
-
set: function (name) {
|
|
736
|
-
if (!this.placeholderImageUrl) {
|
|
737
|
-
this.placeholderImageUrl = this.avatarImage.get({ name: name });
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
enumerable: false,
|
|
741
|
-
configurable: true
|
|
742
|
-
});
|
|
743
|
-
return AvatarBackgroundImageDirective;
|
|
744
|
-
}(BackgroundImageDirective));
|
|
745
|
-
AvatarBackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ImageLoaderService }, { token: i1.AvatarImageService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
746
|
-
AvatarBackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: { name: "name", imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"] }, usesInheritance: true, ngImport: i0__namespace });
|
|
747
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirective, decorators: [{
|
|
748
|
-
type: i0.Directive,
|
|
749
|
-
args: [{
|
|
750
|
-
// tslint:disable-next-line:directive-selector
|
|
751
|
-
selector: '[rxapAvatarBackgroundImage]',
|
|
752
|
-
}]
|
|
753
|
-
}], ctorParameters: function () {
|
|
754
|
-
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
755
|
-
type: i0.Inject,
|
|
756
|
-
args: [i0.ElementRef]
|
|
757
|
-
}] }, { type: i0__namespace.Renderer2, decorators: [{
|
|
758
|
-
type: i0.Inject,
|
|
759
|
-
args: [i0.Renderer2]
|
|
760
|
-
}] }, { type: i1__namespace.ImageLoaderService, decorators: [{
|
|
761
|
-
type: i0.Inject,
|
|
762
|
-
args: [i1.ImageLoaderService]
|
|
763
|
-
}] }, { type: i1__namespace.AvatarImageService, decorators: [{
|
|
764
|
-
type: i0.Inject,
|
|
765
|
-
args: [i1.AvatarImageService]
|
|
766
|
-
}] }];
|
|
767
|
-
}, propDecorators: { name: [{
|
|
768
|
-
type: i0.Input
|
|
769
|
-
}], imageUrl: [{
|
|
770
|
-
type: i0.Input,
|
|
771
|
-
args: ['rxapAvatarBackgroundImage']
|
|
772
|
-
}] } });
|
|
773
|
-
var AvatarBackgroundImageDirectiveModule = /** @class */ (function () {
|
|
774
|
-
function AvatarBackgroundImageDirectiveModule() {
|
|
775
|
-
}
|
|
776
|
-
return AvatarBackgroundImageDirectiveModule;
|
|
777
|
-
}());
|
|
778
|
-
AvatarBackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
779
|
-
AvatarBackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, declarations: [AvatarBackgroundImageDirective], exports: [AvatarBackgroundImageDirective] });
|
|
780
|
-
AvatarBackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule });
|
|
781
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, decorators: [{
|
|
782
|
-
type: i0.NgModule,
|
|
783
|
-
args: [{
|
|
784
|
-
declarations: [AvatarBackgroundImageDirective],
|
|
785
|
-
exports: [AvatarBackgroundImageDirective],
|
|
786
|
-
}]
|
|
787
|
-
}] });
|
|
788
|
-
|
|
789
|
-
var ContenteditableDirective = /** @class */ (function () {
|
|
790
|
-
function ContenteditableDirective(elementRef) {
|
|
791
|
-
this.elementRef = elementRef;
|
|
792
|
-
this.contenteditable = true;
|
|
793
|
-
this.spellcheck = false;
|
|
794
|
-
this.change = new i0.EventEmitter();
|
|
795
|
-
}
|
|
796
|
-
ContenteditableDirective.prototype.onClick = function ($event) {
|
|
797
|
-
$event.stopPropagation();
|
|
798
|
-
};
|
|
799
|
-
ContenteditableDirective.prototype.onInput = function ($event) {
|
|
800
|
-
var _a, _b;
|
|
801
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
802
|
-
var value, event, result;
|
|
803
|
-
return __generator(this, function (_c) {
|
|
804
|
-
switch (_c.label) {
|
|
805
|
-
case 0:
|
|
806
|
-
value = (_a = ($event.target.textContent)) === null || _a === void 0 ? void 0 : _a.trim();
|
|
807
|
-
if (!(value && value.length >= 2)) return [3 /*break*/, 2];
|
|
808
|
-
event = {
|
|
809
|
-
value: value,
|
|
810
|
-
parameters: this.parameters
|
|
811
|
-
};
|
|
812
|
-
this.change.emit(event);
|
|
813
|
-
return [4 /*yield*/, ((_b = this.method) === null || _b === void 0 ? void 0 : _b.call(event))];
|
|
814
|
-
case 1:
|
|
815
|
-
result = _c.sent();
|
|
816
|
-
if (result && typeof result === 'string') {
|
|
817
|
-
this.initial = this.elementRef.nativeElement.innerText = result;
|
|
818
|
-
}
|
|
819
|
-
else if (this.initial) {
|
|
820
|
-
this.elementRef.nativeElement.innerText = this.initial;
|
|
821
|
-
}
|
|
822
|
-
_c.label = 2;
|
|
823
|
-
case 2: return [2 /*return*/];
|
|
824
|
-
}
|
|
825
|
-
});
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
return ContenteditableDirective;
|
|
829
|
-
}());
|
|
830
|
-
ContenteditableDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
831
|
-
ContenteditableDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ContenteditableDirective, selector: "[rxapContenteditable]", inputs: { method: ["rxapContenteditable", "method"], parameters: "parameters", initial: "initial" }, outputs: { change: "rxapContenteditable" }, host: { listeners: { "click": "onClick($event)", "input": "onInput($event)" }, properties: { "attr.contenteditable": "this.contenteditable", "attr.spellcheck": "this.spellcheck" } }, ngImport: i0__namespace });
|
|
832
|
-
__decorate([
|
|
833
|
-
utilities.DebounceCall(1000),
|
|
834
|
-
__metadata("design:type", Function),
|
|
835
|
-
__metadata("design:paramtypes", [Object]),
|
|
836
|
-
__metadata("design:returntype", Promise)
|
|
837
|
-
], ContenteditableDirective.prototype, "onInput", null);
|
|
838
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirective, decorators: [{
|
|
839
|
-
type: i0.Directive,
|
|
840
|
-
args: [{
|
|
841
|
-
selector: '[rxapContenteditable]'
|
|
842
|
-
}]
|
|
843
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { contenteditable: [{
|
|
844
|
-
type: i0.HostBinding,
|
|
845
|
-
args: ['attr.contenteditable']
|
|
846
|
-
}], spellcheck: [{
|
|
847
|
-
type: i0.HostBinding,
|
|
848
|
-
args: ['attr.spellcheck']
|
|
849
|
-
}], method: [{
|
|
850
|
-
type: i0.Input,
|
|
851
|
-
args: ['rxapContenteditable']
|
|
852
|
-
}], change: [{
|
|
853
|
-
type: i0.Output,
|
|
854
|
-
args: ['rxapContenteditable']
|
|
855
|
-
}], parameters: [{
|
|
856
|
-
type: i0.Input
|
|
857
|
-
}], initial: [{
|
|
858
|
-
type: i0.Input
|
|
859
|
-
}], onClick: [{
|
|
860
|
-
type: i0.HostListener,
|
|
861
|
-
args: ['click', ['$event']]
|
|
862
|
-
}], onInput: [{
|
|
863
|
-
type: i0.HostListener,
|
|
864
|
-
args: ['input', ['$event']]
|
|
865
|
-
}] } });
|
|
866
|
-
var ContenteditableDirectiveModule = /** @class */ (function () {
|
|
867
|
-
function ContenteditableDirectiveModule() {
|
|
868
|
-
}
|
|
869
|
-
return ContenteditableDirectiveModule;
|
|
870
|
-
}());
|
|
871
|
-
ContenteditableDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
872
|
-
ContenteditableDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirectiveModule, declarations: [ContenteditableDirective], exports: [ContenteditableDirective] });
|
|
873
|
-
ContenteditableDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirectiveModule });
|
|
874
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ContenteditableDirectiveModule, decorators: [{
|
|
875
|
-
type: i0.NgModule,
|
|
876
|
-
args: [{
|
|
877
|
-
declarations: [ContenteditableDirective],
|
|
878
|
-
exports: [ContenteditableDirective]
|
|
879
|
-
}]
|
|
880
|
-
}] });
|
|
881
|
-
|
|
882
|
-
var ConfirmClick = /** @class */ (function () {
|
|
883
|
-
function ConfirmClick() {
|
|
884
|
-
this._hasConfirmDirective = false;
|
|
885
|
-
}
|
|
886
|
-
Object.defineProperty(ConfirmClick.prototype, "hasConfirmDirective", {
|
|
887
|
-
set: function (value) {
|
|
888
|
-
this._hasConfirmDirective = utilities.coerceBoolean(value);
|
|
889
|
-
},
|
|
890
|
-
enumerable: false,
|
|
891
|
-
configurable: true
|
|
892
|
-
});
|
|
893
|
-
ConfirmClick.prototype.onClick = function () {
|
|
894
|
-
if (!this._hasConfirmDirective) {
|
|
895
|
-
this.execute();
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
ConfirmClick.prototype.onConfirm = function () {
|
|
899
|
-
this.execute();
|
|
900
|
-
};
|
|
901
|
-
return ConfirmClick;
|
|
902
|
-
}());
|
|
903
|
-
ConfirmClick.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmClick, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
904
|
-
ConfirmClick.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmClick });
|
|
905
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmClick, decorators: [{
|
|
906
|
-
type: i0.Injectable
|
|
907
|
-
}], propDecorators: { hasConfirmDirective: [{
|
|
908
|
-
type: i0.Input,
|
|
909
|
-
args: ['rxapConfirm']
|
|
910
|
-
}], onClick: [{
|
|
911
|
-
type: i0.HostListener,
|
|
912
|
-
args: ['click']
|
|
913
|
-
}], onConfirm: [{
|
|
914
|
-
type: i0.HostListener,
|
|
915
|
-
args: ['confirmed']
|
|
916
|
-
}] } });
|
|
917
|
-
|
|
918
|
-
var MethodDirective = /** @class */ (function () {
|
|
919
|
-
function MethodDirective() {
|
|
920
|
-
this._hasConfirmDirective = false;
|
|
921
|
-
this.immediately = false;
|
|
922
|
-
this.executed$ = new i0.EventEmitter();
|
|
923
|
-
this.failure$ = new i0.EventEmitter();
|
|
924
|
-
this.successful$ = new i0.EventEmitter();
|
|
925
|
-
/**
|
|
926
|
-
* true - a remote method call is in progress
|
|
927
|
-
*/
|
|
928
|
-
this.executing$ = new rxjs.ToggleSubject();
|
|
929
|
-
}
|
|
930
|
-
Object.defineProperty(MethodDirective.prototype, "hasConfirmDirective", {
|
|
931
|
-
set: function (value) {
|
|
932
|
-
this._hasConfirmDirective = utilities.coerceBoolean(value);
|
|
933
|
-
},
|
|
934
|
-
enumerable: false,
|
|
935
|
-
configurable: true
|
|
936
|
-
});
|
|
937
|
-
MethodDirective.prototype.ngOnInit = function () {
|
|
938
|
-
if (this.immediately) {
|
|
939
|
-
this.execute();
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
MethodDirective.prototype.onConfirmed = function () {
|
|
943
|
-
return this.execute();
|
|
944
|
-
};
|
|
945
|
-
MethodDirective.prototype.onClick = function () {
|
|
946
|
-
if (!this._hasConfirmDirective) {
|
|
947
|
-
return this.execute();
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
if (i0.isDevMode()) {
|
|
951
|
-
console.debug('Skip method call. Wait for confirmation.');
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
return Promise.resolve();
|
|
955
|
-
};
|
|
956
|
-
MethodDirective.prototype.execute = function () {
|
|
957
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
958
|
-
var result, error_1;
|
|
959
|
-
return __generator(this, function (_b) {
|
|
960
|
-
switch (_b.label) {
|
|
961
|
-
case 0:
|
|
962
|
-
this.executing$.enable();
|
|
963
|
-
_b.label = 1;
|
|
964
|
-
case 1:
|
|
965
|
-
_b.trys.push([1, 3, 4, 5]);
|
|
966
|
-
return [4 /*yield*/, this.method.call(this.parameters)];
|
|
967
|
-
case 2:
|
|
968
|
-
result = _b.sent();
|
|
969
|
-
this.executed(result);
|
|
970
|
-
this.successful(result);
|
|
971
|
-
return [3 /*break*/, 5];
|
|
972
|
-
case 3:
|
|
973
|
-
error_1 = _b.sent();
|
|
974
|
-
if (i0.isDevMode()) {
|
|
975
|
-
console.error("Method directive execution failed:", error_1.message);
|
|
976
|
-
}
|
|
977
|
-
this.failure(error_1);
|
|
978
|
-
return [3 /*break*/, 5];
|
|
979
|
-
case 4:
|
|
980
|
-
this.executing$.disable();
|
|
981
|
-
return [7 /*endfinally*/];
|
|
982
|
-
case 5: return [2 /*return*/];
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
MethodDirective.prototype.setParameter = function (parameterKey, value) {
|
|
988
|
-
var _b;
|
|
989
|
-
this.updateParameters((_b = {}, _b[parameterKey] = value, _b));
|
|
990
|
-
};
|
|
991
|
-
MethodDirective.prototype.updateParameters = function (parameters) {
|
|
992
|
-
var _a;
|
|
993
|
-
this.parameters = Object.assign(Object.assign({}, ((_a = this.parameters) !== null && _a !== void 0 ? _a : {})), parameters);
|
|
994
|
-
};
|
|
995
|
-
MethodDirective.prototype.executed = function (result) {
|
|
996
|
-
this.executed$.emit(result);
|
|
997
|
-
};
|
|
998
|
-
MethodDirective.prototype.failure = function (error) {
|
|
999
|
-
this.failure$.emit(error);
|
|
1000
|
-
};
|
|
1001
|
-
MethodDirective.prototype.successful = function (result) {
|
|
1002
|
-
this.successful$.emit(result);
|
|
1003
|
-
};
|
|
1004
|
-
return MethodDirective;
|
|
1005
|
-
}());
|
|
1006
|
-
MethodDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1007
|
-
MethodDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: MethodDirective, selector: "[rxapMethod]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0__namespace });
|
|
1008
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirective, decorators: [{
|
|
1009
|
-
type: i0.Directive,
|
|
1010
|
-
args: [{
|
|
1011
|
-
selector: '[rxapMethod]',
|
|
1012
|
-
exportAs: 'rxapMethod'
|
|
1013
|
-
}]
|
|
1014
|
-
}], ctorParameters: function () { return []; }, propDecorators: { hasConfirmDirective: [{
|
|
1015
|
-
type: i0.Input,
|
|
1016
|
-
args: ['rxapConfirm']
|
|
1017
|
-
}], method: [{
|
|
1018
|
-
type: i0.Input,
|
|
1019
|
-
args: ['rxapMethod']
|
|
1020
|
-
}], parameters: [{
|
|
1021
|
-
type: i0.Input
|
|
1022
|
-
}], immediately: [{
|
|
1023
|
-
type: i0.Input
|
|
1024
|
-
}], executed$: [{
|
|
1025
|
-
type: i0.Output,
|
|
1026
|
-
args: ['executed']
|
|
1027
|
-
}], failure$: [{
|
|
1028
|
-
type: i0.Output,
|
|
1029
|
-
args: ['failure']
|
|
1030
|
-
}], successful$: [{
|
|
1031
|
-
type: i0.Output,
|
|
1032
|
-
args: ['successful']
|
|
1033
|
-
}], onConfirmed: [{
|
|
1034
|
-
type: i0.HostListener,
|
|
1035
|
-
args: ['confirmed']
|
|
1036
|
-
}], onClick: [{
|
|
1037
|
-
type: i0.HostListener,
|
|
1038
|
-
args: ['click']
|
|
1039
|
-
}] } });
|
|
1040
|
-
var MethodDirectiveModule = /** @class */ (function () {
|
|
1041
|
-
function MethodDirectiveModule() {
|
|
1042
|
-
}
|
|
1043
|
-
return MethodDirectiveModule;
|
|
1044
|
-
}());
|
|
1045
|
-
MethodDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1046
|
-
MethodDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] });
|
|
1047
|
-
MethodDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirectiveModule });
|
|
1048
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MethodDirectiveModule, decorators: [{
|
|
1049
|
-
type: i0.NgModule,
|
|
1050
|
-
args: [{
|
|
1051
|
-
declarations: [MethodDirective],
|
|
1052
|
-
exports: [MethodDirective]
|
|
1053
|
-
}]
|
|
1054
|
-
}] });
|
|
1055
|
-
|
|
1056
|
-
var MovableDividerDirective = /** @class */ (function () {
|
|
1057
|
-
function MovableDividerDirective(renderer) {
|
|
1058
|
-
this.renderer = renderer;
|
|
1059
|
-
this.origin = 'right';
|
|
1060
|
-
this.cursor = 'ew-resize';
|
|
1061
|
-
this._subscription = new rxjs$1.Subscription();
|
|
1062
|
-
/**
|
|
1063
|
-
* Indicates that the divider is moved with mouse down
|
|
1064
|
-
* @private
|
|
1065
|
-
*/
|
|
1066
|
-
this._moveDivider = false;
|
|
1067
|
-
/**
|
|
1068
|
-
* Holds the current fixed element width.
|
|
1069
|
-
* If null the move divider feature was not yet used and the initial
|
|
1070
|
-
* fixed element width is not calculated
|
|
1071
|
-
* @private
|
|
1072
|
-
*/
|
|
1073
|
-
this._fixedElementWidth = null;
|
|
1074
|
-
}
|
|
1075
|
-
MovableDividerDirective.prototype.ngOnDestroy = function () {
|
|
1076
|
-
var _a;
|
|
1077
|
-
(_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1078
|
-
};
|
|
1079
|
-
MovableDividerDirective.prototype.ngOnInit = function () {
|
|
1080
|
-
var _this = this;
|
|
1081
|
-
this._subscription.add(rxjs$1.fromEvent(this.containerElement, 'mousemove').pipe(operators.tap(function ($event) {
|
|
1082
|
-
if (_this._moveDivider) {
|
|
1083
|
-
if (!_this._fixedElementWidth) {
|
|
1084
|
-
_this._fixedElementWidth = _this.fixedElement.clientWidth;
|
|
1085
|
-
}
|
|
1086
|
-
if (_this.origin === 'right') {
|
|
1087
|
-
_this._fixedElementWidth = $event.clientX - _this.containerElement.getBoundingClientRect().left;
|
|
1088
|
-
}
|
|
1089
|
-
else if (_this.origin === 'left') {
|
|
1090
|
-
console.log({
|
|
1091
|
-
clientWidth: _this.containerElement.clientWidth,
|
|
1092
|
-
clientX: $event.clientX,
|
|
1093
|
-
clientLeft: _this.containerElement.getBoundingClientRect().left
|
|
1094
|
-
});
|
|
1095
|
-
_this._fixedElementWidth = _this.containerElement.clientWidth - $event.clientX + _this.containerElement.getBoundingClientRect().left;
|
|
1096
|
-
}
|
|
1097
|
-
else {
|
|
1098
|
-
throw new Error("The origin '" + _this.origin + "' is not supported.");
|
|
1099
|
-
}
|
|
1100
|
-
var width = _this._fixedElementWidth + 'px';
|
|
1101
|
-
_this.renderer.setStyle(_this.fixedElement, 'max-width', width);
|
|
1102
|
-
_this.renderer.setStyle(_this.fixedElement, 'min-width', width);
|
|
1103
|
-
_this.renderer.setStyle(_this.fixedElement, 'flex-basis', width);
|
|
1104
|
-
}
|
|
1105
|
-
})).subscribe());
|
|
1106
|
-
this._subscription.add(rxjs$1.fromEvent(this.containerElement, 'mouseup').pipe(operators.tap(function () { return _this._moveDivider = false; })).subscribe());
|
|
1107
|
-
};
|
|
1108
|
-
MovableDividerDirective.prototype.onMousedown = function () {
|
|
1109
|
-
this._moveDivider = true;
|
|
1110
|
-
};
|
|
1111
|
-
return MovableDividerDirective;
|
|
1112
|
-
}());
|
|
1113
|
-
MovableDividerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirective, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1114
|
-
MovableDividerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0__namespace });
|
|
1115
|
-
__decorate([
|
|
1116
|
-
utilities.Required,
|
|
1117
|
-
__metadata("design:type", HTMLDivElement)
|
|
1118
|
-
], MovableDividerDirective.prototype, "containerElement", void 0);
|
|
1119
|
-
__decorate([
|
|
1120
|
-
utilities.Required,
|
|
1121
|
-
__metadata("design:type", HTMLDivElement)
|
|
1122
|
-
], MovableDividerDirective.prototype, "fixedElement", void 0);
|
|
1123
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirective, decorators: [{
|
|
1124
|
-
type: i0.Directive,
|
|
1125
|
-
args: [{
|
|
1126
|
-
selector: '[rxapMovableDivider]'
|
|
1127
|
-
}]
|
|
1128
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }]; }, propDecorators: { containerElement: [{
|
|
1129
|
-
type: i0.Input
|
|
1130
|
-
}], fixedElement: [{
|
|
1131
|
-
type: i0.Input
|
|
1132
|
-
}], origin: [{
|
|
1133
|
-
type: i0.Input
|
|
1134
|
-
}], cursor: [{
|
|
1135
|
-
type: i0.HostBinding,
|
|
1136
|
-
args: ['style.cursor']
|
|
1137
|
-
}], onMousedown: [{
|
|
1138
|
-
type: i0.HostListener,
|
|
1139
|
-
args: ['mousedown']
|
|
1140
|
-
}] } });
|
|
1141
|
-
var MovableDividerDirectiveModule = /** @class */ (function () {
|
|
1142
|
-
function MovableDividerDirectiveModule() {
|
|
1143
|
-
}
|
|
1144
|
-
return MovableDividerDirectiveModule;
|
|
1145
|
-
}());
|
|
1146
|
-
MovableDividerDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1147
|
-
MovableDividerDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] });
|
|
1148
|
-
MovableDividerDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirectiveModule });
|
|
1149
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: MovableDividerDirectiveModule, decorators: [{
|
|
1150
|
-
type: i0.NgModule,
|
|
1151
|
-
args: [{
|
|
1152
|
-
declarations: [MovableDividerDirective],
|
|
1153
|
-
exports: [MovableDividerDirective]
|
|
1154
|
-
}]
|
|
1155
|
-
}] });
|
|
1156
|
-
|
|
1157
|
-
// TODO : mv to rxap package
|
|
1158
|
-
var IfTruthyDirective = /** @class */ (function () {
|
|
1159
|
-
function IfTruthyDirective(templateRef, viewContainerRef, cdr) {
|
|
1160
|
-
this.templateRef = templateRef;
|
|
1161
|
-
this.viewContainerRef = viewContainerRef;
|
|
1162
|
-
this.cdr = cdr;
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
1166
|
-
*
|
|
1167
|
-
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
1168
|
-
* `NgForOf` structural directive renders its template with a specific context type.
|
|
1169
|
-
*/
|
|
1170
|
-
IfTruthyDirective.ngTemplateContextGuard = function (dir, ctx) {
|
|
1171
|
-
return true;
|
|
1172
|
-
};
|
|
1173
|
-
IfTruthyDirective.prototype.ngOnChanges = function (changes) {
|
|
1174
|
-
if (this.method && this.parameters) {
|
|
1175
|
-
this.execute();
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
|
-
IfTruthyDirective.prototype.execute = function () {
|
|
1179
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1180
|
-
var result;
|
|
1181
|
-
return __generator(this, function (_a) {
|
|
1182
|
-
switch (_a.label) {
|
|
1183
|
-
case 0: return [4 /*yield*/, this.method.call(this.parameters)];
|
|
1184
|
-
case 1:
|
|
1185
|
-
result = _a.sent();
|
|
1186
|
-
if (this.hasChanged(result)) {
|
|
1187
|
-
this.viewContainerRef.clear();
|
|
1188
|
-
if (result) {
|
|
1189
|
-
this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
this.cdr.detectChanges();
|
|
1193
|
-
return [2 /*return*/];
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
1196
|
-
});
|
|
1197
|
-
};
|
|
1198
|
-
IfTruthyDirective.prototype.hasChanged = function (current) {
|
|
1199
|
-
if (this._last !== undefined) {
|
|
1200
|
-
var currentTrackBy = this.trackBy ? this.trackBy(current) : current;
|
|
1201
|
-
var lastTrackBy = this.trackBy ? this.trackBy(this._last) : this._last;
|
|
1202
|
-
return currentTrackBy !== lastTrackBy;
|
|
1203
|
-
}
|
|
1204
|
-
return true;
|
|
1205
|
-
};
|
|
1206
|
-
return IfTruthyDirective;
|
|
1207
|
-
}());
|
|
1208
|
-
IfTruthyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1209
|
-
IfTruthyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: IfTruthyDirective, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1210
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirective, decorators: [{
|
|
1211
|
-
type: i0.Directive,
|
|
1212
|
-
args: [{
|
|
1213
|
-
selector: '[rxapIfTruthy]'
|
|
1214
|
-
}]
|
|
1215
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { method: [{
|
|
1216
|
-
type: i0.Input,
|
|
1217
|
-
args: ['rxapIfTruthy']
|
|
1218
|
-
}], parameters: [{
|
|
1219
|
-
type: i0.Input,
|
|
1220
|
-
args: ['rxapIfTruthyParameters']
|
|
1221
|
-
}], trackBy: [{
|
|
1222
|
-
type: i0.Input,
|
|
1223
|
-
args: ['rxapIfTruthyTrackBy']
|
|
1224
|
-
}] } });
|
|
1225
|
-
var IfTruthyDirectiveModule = /** @class */ (function () {
|
|
1226
|
-
function IfTruthyDirectiveModule() {
|
|
1227
|
-
}
|
|
1228
|
-
return IfTruthyDirectiveModule;
|
|
1229
|
-
}());
|
|
1230
|
-
IfTruthyDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1231
|
-
IfTruthyDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirectiveModule, declarations: [IfTruthyDirective], exports: [IfTruthyDirective] });
|
|
1232
|
-
IfTruthyDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirectiveModule });
|
|
1233
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IfTruthyDirectiveModule, decorators: [{
|
|
1234
|
-
type: i0.NgModule,
|
|
1235
|
-
args: [{
|
|
1236
|
-
declarations: [IfTruthyDirective],
|
|
1237
|
-
exports: [IfTruthyDirective]
|
|
1238
|
-
}]
|
|
1239
|
-
}] });
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* Generated bundle index. Do not edit.
|
|
1243
|
-
*/
|
|
1244
|
-
|
|
1245
|
-
exports.AvatarBackgroundImageDirective = AvatarBackgroundImageDirective;
|
|
1246
|
-
exports.AvatarBackgroundImageDirectiveModule = AvatarBackgroundImageDirectiveModule;
|
|
1247
|
-
exports.BackgroundImageDirective = BackgroundImageDirective;
|
|
1248
|
-
exports.BackgroundImageDirectiveModule = BackgroundImageDirectiveModule;
|
|
1249
|
-
exports.ConfirmClick = ConfirmClick;
|
|
1250
|
-
exports.ContenteditableDirective = ContenteditableDirective;
|
|
1251
|
-
exports.ContenteditableDirectiveModule = ContenteditableDirectiveModule;
|
|
1252
|
-
exports.FullWidthDirective = FullWidthDirective;
|
|
1253
|
-
exports.FullWidthDirectiveModule = FullWidthDirectiveModule;
|
|
1254
|
-
exports.IfTruthyDirective = IfTruthyDirective;
|
|
1255
|
-
exports.IfTruthyDirectiveModule = IfTruthyDirectiveModule;
|
|
1256
|
-
exports.MethodDirective = MethodDirective;
|
|
1257
|
-
exports.MethodDirectiveModule = MethodDirectiveModule;
|
|
1258
|
-
exports.MovableDividerDirective = MovableDividerDirective;
|
|
1259
|
-
exports.MovableDividerDirectiveModule = MovableDividerDirectiveModule;
|
|
1260
|
-
exports.PreventDefaultDirective = PreventDefaultDirective;
|
|
1261
|
-
exports.PreventDefaultDirectiveModule = PreventDefaultDirectiveModule;
|
|
1262
|
-
exports.ShareButtonDirective = ShareButtonDirective;
|
|
1263
|
-
exports.ShareButtonDirectiveModule = ShareButtonDirectiveModule;
|
|
1264
|
-
exports.ShareService = ShareService;
|
|
1265
|
-
exports.StopImmediatePropagationDirective = StopImmediatePropagationDirective;
|
|
1266
|
-
exports.StopImmediatePropagationDirectiveModule = StopImmediatePropagationDirectiveModule;
|
|
1267
|
-
exports.StopPropagationDirective = StopPropagationDirective;
|
|
1268
|
-
exports.StopPropagationDirectiveModule = StopPropagationDirectiveModule;
|
|
1269
|
-
|
|
1270
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1271
|
-
|
|
1272
|
-
})));
|
|
1273
|
-
//# sourceMappingURL=rxap-directives.umd.js.map
|