@smart-webcomponents-angular/scrollbar 9.2.73 → 13.0.1

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.
Files changed (39) hide show
  1. package/common/i18n.phonenumbers.min.js +501 -0
  2. package/common/runtime.js +748 -0
  3. package/esm2020/scrollbar/index.mjs +2 -0
  4. package/{esm2015/scrollbar/public_api.js → esm2020/scrollbar/public_api.mjs} +1 -1
  5. package/{esm2015/scrollbar/smart-webcomponents-angular-scrollbar.js → esm2020/scrollbar/smart-webcomponents-angular-scrollbar.mjs} +2 -3
  6. package/esm2020/scrollbar/smart.element.mjs +96 -0
  7. package/esm2020/scrollbar/smart.scrollbar.mjs +243 -0
  8. package/esm2020/scrollbar/smart.scrollbar.module.mjs +18 -0
  9. package/fesm2015/{smart-webcomponents-angular-scrollbar.js → smart-webcomponents-angular-scrollbar.mjs} +88 -50
  10. package/fesm2015/smart-webcomponents-angular-scrollbar.mjs.map +1 -0
  11. package/fesm2020/smart-webcomponents-angular-scrollbar.mjs +365 -0
  12. package/fesm2020/smart-webcomponents-angular-scrollbar.mjs.map +1 -0
  13. package/images/flags.png +0 -0
  14. package/index.d.ts +31816 -28915
  15. package/package.json +26 -24
  16. package/scrollbar/index.d.ts +1 -0
  17. package/scrollbar/smart-webcomponents-angular-scrollbar.d.ts +2 -2
  18. package/scrollbar/smart.element.d.ts +4 -1
  19. package/scrollbar/smart.scrollbar.d.ts +9 -1
  20. package/scrollbar/smart.scrollbar.module.d.ts +5 -0
  21. package/source/modules/smart.scrollbar.js +1 -1
  22. package/source/smart.button.js +2 -2
  23. package/source/smart.element.js +2 -2
  24. package/source/smart.scrollbar.js +2 -2
  25. package/styles/font/smart-icons.eot +0 -0
  26. package/styles/font/smart-icons.svg +64 -2
  27. package/styles/font/smart-icons.ttf +0 -0
  28. package/styles/font/smart-icons.woff +0 -0
  29. package/styles/font/smart-icons.woff2 +0 -0
  30. package/styles/smart.base.css +4 -4
  31. package/styles/smart.common.css +1 -1
  32. package/styles/smart.scrollbar.css +2 -2
  33. package/bundles/smart-webcomponents-angular-scrollbar.umd.js +0 -750
  34. package/bundles/smart-webcomponents-angular-scrollbar.umd.min.js +0 -25
  35. package/esm2015/scrollbar/smart.element.js +0 -83
  36. package/esm2015/scrollbar/smart.scrollbar.js +0 -221
  37. package/esm2015/scrollbar/smart.scrollbar.module.js +0 -13
  38. package/fesm2015/smart-webcomponents-angular-scrollbar.js.map +0 -1
  39. package/scrollbar/smart-webcomponents-angular-scrollbar.metadata.json +0 -1
@@ -1,750 +0,0 @@
1
-
2
- if (!window['Smart']) {
3
- window['Smart'] = { RenderMode: 'manual' };
4
- }
5
- else {
6
- window['Smart'].RenderMode = 'manual';
7
- }
8
- import './../source/modules/smart.scrollbar';
9
-
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
12
- typeof define === 'function' && define.amd ? define('smart-webcomponents-angular/scrollbar', ['exports', '@angular/core'], factory) :
13
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['smart-webcomponents-angular'] = global['smart-webcomponents-angular'] || {}, global['smart-webcomponents-angular'].scrollbar = {}), global.ng.core));
14
- }(this, (function (exports, core) { 'use strict';
15
-
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;
55
- };
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, _);
162
- }
163
- catch (e) {
164
- op = [6, e];
165
- y = 0;
166
- }
167
- finally {
168
- f = t = 0;
169
- }
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 };
199
- }
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);
219
- }
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, privateMap) {
312
- if (!privateMap.has(receiver)) {
313
- throw new TypeError("attempted to get private field on non-instance");
314
- }
315
- return privateMap.get(receiver);
316
- }
317
- function __classPrivateFieldSet(receiver, privateMap, value) {
318
- if (!privateMap.has(receiver)) {
319
- throw new TypeError("attempted to set private field on non-instance");
320
- }
321
- privateMap.set(receiver, value);
322
- return value;
323
- }
324
-
325
- var BaseElement = /** @class */ (function () {
326
- function BaseElement(ref) {
327
- this.onCreate = new core.EventEmitter();
328
- this.onReady = new core.EventEmitter();
329
- this.onAttach = new core.EventEmitter();
330
- this.onDetach = new core.EventEmitter();
331
- var that = this;
332
- this.nativeElement = ref.nativeElement;
333
- that.nativeElement.onAttached = function () {
334
- that.onAttach.emit(that.nativeElement);
335
- };
336
- that.nativeElement.onDetached = function () {
337
- that.onDetach.emit(that.nativeElement);
338
- };
339
- }
340
- BaseElement.prototype.addEventListener = function (type, listener, options) {
341
- if (options === void 0) { options = false; }
342
- this.nativeElement.addEventListener(type, listener, options);
343
- };
344
- BaseElement.prototype.removeEventListener = function (type, listener, options) {
345
- if (options === void 0) { options = false; }
346
- this.nativeElement.removeEventListener(type, listener, options);
347
- };
348
- BaseElement.prototype.dispatchEvent = function (event) {
349
- return this.nativeElement.dispatchEvent(event);
350
- };
351
- BaseElement.prototype.blur = function () {
352
- this.nativeElement.blur();
353
- };
354
- BaseElement.prototype.click = function () {
355
- this.nativeElement.click();
356
- };
357
- BaseElement.prototype.focus = function (options) {
358
- this.nativeElement.focus(options);
359
- };
360
- Object.defineProperty(BaseElement.prototype, "locale", {
361
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
362
- get: function () {
363
- return this.nativeElement ? this.nativeElement.locale : undefined;
364
- },
365
- set: function (value) {
366
- this.nativeElement ? this.nativeElement.locale = value : undefined;
367
- },
368
- enumerable: false,
369
- configurable: true
370
- });
371
- Object.defineProperty(BaseElement.prototype, "localizeFormatFunction", {
372
- /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
373
- get: function () {
374
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
375
- },
376
- set: function (value) {
377
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
378
- },
379
- enumerable: false,
380
- configurable: true
381
- });
382
- Object.defineProperty(BaseElement.prototype, "messages", {
383
- /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
384
- get: function () {
385
- return this.nativeElement ? this.nativeElement.messages : undefined;
386
- },
387
- set: function (value) {
388
- this.nativeElement ? this.nativeElement.messages = value : undefined;
389
- },
390
- enumerable: false,
391
- configurable: true
392
- });
393
- Object.defineProperty(BaseElement.prototype, "rightToLeft", {
394
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
395
- get: function () {
396
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
397
- },
398
- set: function (value) {
399
- this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
400
- },
401
- enumerable: false,
402
- configurable: true
403
- });
404
- Object.defineProperty(BaseElement.prototype, "theme", {
405
- /** @description Determines the theme. Theme defines the look of the element */
406
- get: function () {
407
- return this.nativeElement ? this.nativeElement.theme : undefined;
408
- },
409
- set: function (value) {
410
- this.nativeElement ? this.nativeElement.theme = value : undefined;
411
- },
412
- enumerable: false,
413
- configurable: true
414
- });
415
- return BaseElement;
416
- }());
417
- BaseElement.propDecorators = {
418
- onCreate: [{ type: core.Output }],
419
- onReady: [{ type: core.Output }],
420
- onAttach: [{ type: core.Output }],
421
- onDetach: [{ type: core.Output }],
422
- locale: [{ type: core.Input }],
423
- localizeFormatFunction: [{ type: core.Input }],
424
- messages: [{ type: core.Input }],
425
- rightToLeft: [{ type: core.Input }],
426
- theme: [{ type: core.Input }]
427
- };
428
- var Smart = window.Smart;
429
-
430
- var ScrollBarComponent = /** @class */ (function (_super) {
431
- __extends(ScrollBarComponent, _super);
432
- function ScrollBarComponent(ref) {
433
- var _this = _super.call(this, ref) || this;
434
- _this.eventHandlers = [];
435
- /** @description This event is triggered when the value is changed.
436
- * @param event. The custom event. */
437
- _this.onChange = new core.EventEmitter();
438
- _this.nativeElement = ref.nativeElement;
439
- return _this;
440
- }
441
- /** @description Creates the component on demand.
442
- * @param properties An optional object of properties, which will be added to the template binded ones.
443
- */
444
- ScrollBarComponent.prototype.createComponent = function (properties) {
445
- if (properties === void 0) { properties = {}; }
446
- this.nativeElement = document.createElement('smart-scroll-bar');
447
- for (var propertyName in properties) {
448
- this.nativeElement[propertyName] = properties[propertyName];
449
- }
450
- return this.nativeElement;
451
- };
452
- Object.defineProperty(ScrollBarComponent.prototype, "animation", {
453
- /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
454
- get: function () {
455
- return this.nativeElement ? this.nativeElement.animation : undefined;
456
- },
457
- set: function (value) {
458
- this.nativeElement ? this.nativeElement.animation = value : undefined;
459
- },
460
- enumerable: false,
461
- configurable: true
462
- });
463
- Object.defineProperty(ScrollBarComponent.prototype, "disabled", {
464
- /** @description Enables or disables the element. */
465
- get: function () {
466
- return this.nativeElement ? this.nativeElement.disabled : undefined;
467
- },
468
- set: function (value) {
469
- this.nativeElement ? this.nativeElement.disabled = value : undefined;
470
- },
471
- enumerable: false,
472
- configurable: true
473
- });
474
- Object.defineProperty(ScrollBarComponent.prototype, "largeStep", {
475
- /** @description Sets or gets the scrollbar's largestep. The value is increased/decreased with this largestep when the user presses the left mouse button in the area between a scrollbar button and thumb. */
476
- get: function () {
477
- return this.nativeElement ? this.nativeElement.largeStep : undefined;
478
- },
479
- set: function (value) {
480
- this.nativeElement ? this.nativeElement.largeStep = value : undefined;
481
- },
482
- enumerable: false,
483
- configurable: true
484
- });
485
- Object.defineProperty(ScrollBarComponent.prototype, "locale", {
486
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
487
- get: function () {
488
- return this.nativeElement ? this.nativeElement.locale : undefined;
489
- },
490
- set: function (value) {
491
- this.nativeElement ? this.nativeElement.locale = value : undefined;
492
- },
493
- enumerable: false,
494
- configurable: true
495
- });
496
- Object.defineProperty(ScrollBarComponent.prototype, "localizeFormatFunction", {
497
- /** @description Callback, related to localization module. */
498
- get: function () {
499
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
500
- },
501
- set: function (value) {
502
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
503
- },
504
- enumerable: false,
505
- configurable: true
506
- });
507
- Object.defineProperty(ScrollBarComponent.prototype, "max", {
508
- /** @description Sets or gets the scrollbar's maximum value. */
509
- get: function () {
510
- return this.nativeElement ? this.nativeElement.max : undefined;
511
- },
512
- set: function (value) {
513
- this.nativeElement ? this.nativeElement.max = value : undefined;
514
- },
515
- enumerable: false,
516
- configurable: true
517
- });
518
- Object.defineProperty(ScrollBarComponent.prototype, "mechanicalAction", {
519
- /** @description Sets or gets the type of used mechanical action. The mechanical action defines in which moment the value of the element will be updated. */
520
- get: function () {
521
- return this.nativeElement ? this.nativeElement.mechanicalAction : undefined;
522
- },
523
- set: function (value) {
524
- this.nativeElement ? this.nativeElement.mechanicalAction = value : undefined;
525
- },
526
- enumerable: false,
527
- configurable: true
528
- });
529
- Object.defineProperty(ScrollBarComponent.prototype, "messages", {
530
- /** @description Sets an object with string values, related to the different states of passwords strength. */
531
- get: function () {
532
- return this.nativeElement ? this.nativeElement.messages : undefined;
533
- },
534
- set: function (value) {
535
- this.nativeElement ? this.nativeElement.messages = value : undefined;
536
- },
537
- enumerable: false,
538
- configurable: true
539
- });
540
- Object.defineProperty(ScrollBarComponent.prototype, "min", {
541
- /** @description Sets or gets the scrollbar's minimum value. */
542
- get: function () {
543
- return this.nativeElement ? this.nativeElement.min : undefined;
544
- },
545
- set: function (value) {
546
- this.nativeElement ? this.nativeElement.min = value : undefined;
547
- },
548
- enumerable: false,
549
- configurable: true
550
- });
551
- Object.defineProperty(ScrollBarComponent.prototype, "orientation", {
552
- /** @description Sets or gets the scrollbar's orientation */
553
- get: function () {
554
- return this.nativeElement ? this.nativeElement.orientation : undefined;
555
- },
556
- set: function (value) {
557
- this.nativeElement ? this.nativeElement.orientation = value : undefined;
558
- },
559
- enumerable: false,
560
- configurable: true
561
- });
562
- Object.defineProperty(ScrollBarComponent.prototype, "readonly", {
563
- /** @description If the element is readonly, users cannot interact with it. */
564
- get: function () {
565
- return this.nativeElement ? this.nativeElement.readonly : undefined;
566
- },
567
- set: function (value) {
568
- this.nativeElement ? this.nativeElement.readonly = value : undefined;
569
- },
570
- enumerable: false,
571
- configurable: true
572
- });
573
- Object.defineProperty(ScrollBarComponent.prototype, "rightToLeft", {
574
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
575
- get: function () {
576
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
577
- },
578
- set: function (value) {
579
- this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
580
- },
581
- enumerable: false,
582
- configurable: true
583
- });
584
- Object.defineProperty(ScrollBarComponent.prototype, "showButtons", {
585
- /** @description Sets or gets scrollbar buttons visibility. */
586
- get: function () {
587
- return this.nativeElement ? this.nativeElement.showButtons : undefined;
588
- },
589
- set: function (value) {
590
- this.nativeElement ? this.nativeElement.showButtons = value : undefined;
591
- },
592
- enumerable: false,
593
- configurable: true
594
- });
595
- Object.defineProperty(ScrollBarComponent.prototype, "step", {
596
- /** @description Sets or gets the scrollbar's step. The value is increased/decreased with this step when the user presses a scrollbar button. */
597
- get: function () {
598
- return this.nativeElement ? this.nativeElement.step : undefined;
599
- },
600
- set: function (value) {
601
- this.nativeElement ? this.nativeElement.step = value : undefined;
602
- },
603
- enumerable: false,
604
- configurable: true
605
- });
606
- Object.defineProperty(ScrollBarComponent.prototype, "theme", {
607
- /** @description Determines the theme. Theme defines the look of the element */
608
- get: function () {
609
- return this.nativeElement ? this.nativeElement.theme : undefined;
610
- },
611
- set: function (value) {
612
- this.nativeElement ? this.nativeElement.theme = value : undefined;
613
- },
614
- enumerable: false,
615
- configurable: true
616
- });
617
- Object.defineProperty(ScrollBarComponent.prototype, "unfocusable", {
618
- /** @description If is set to true, the element cannot be focused. */
619
- get: function () {
620
- return this.nativeElement ? this.nativeElement.unfocusable : undefined;
621
- },
622
- set: function (value) {
623
- this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
624
- },
625
- enumerable: false,
626
- configurable: true
627
- });
628
- Object.defineProperty(ScrollBarComponent.prototype, "value", {
629
- /** @description Sets or gets the widget's value. */
630
- get: function () {
631
- return this.nativeElement ? this.nativeElement.value : undefined;
632
- },
633
- set: function (value) {
634
- this.nativeElement ? this.nativeElement.value = value : undefined;
635
- },
636
- enumerable: false,
637
- configurable: true
638
- });
639
- /** @description Redraws the element.
640
- */
641
- ScrollBarComponent.prototype.refresh = function () {
642
- var _this = this;
643
- if (this.nativeElement.isRendered) {
644
- this.nativeElement.refresh();
645
- }
646
- else {
647
- this.nativeElement.whenRendered(function () {
648
- _this.nativeElement.refresh();
649
- });
650
- }
651
- };
652
- Object.defineProperty(ScrollBarComponent.prototype, "isRendered", {
653
- get: function () {
654
- return this.nativeElement ? this.nativeElement.isRendered : false;
655
- },
656
- enumerable: false,
657
- configurable: true
658
- });
659
- ScrollBarComponent.prototype.ngOnInit = function () {
660
- };
661
- ScrollBarComponent.prototype.ngAfterViewInit = function () {
662
- var that = this;
663
- that.onCreate.emit(that.nativeElement);
664
- Smart.Render();
665
- this.nativeElement.classList.add('smart-angular');
666
- this.nativeElement.whenRendered(function () { that.onReady.emit(that.nativeElement); });
667
- this.listen();
668
- };
669
- ScrollBarComponent.prototype.ngOnDestroy = function () {
670
- this.unlisten();
671
- };
672
- ScrollBarComponent.prototype.ngOnChanges = function (changes) {
673
- if (this.nativeElement && this.nativeElement.isRendered) {
674
- for (var propName in changes) {
675
- if (changes.hasOwnProperty(propName)) {
676
- this.nativeElement[propName] = changes[propName].currentValue;
677
- }
678
- }
679
- }
680
- };
681
- /** @description Add event listeners. */
682
- ScrollBarComponent.prototype.listen = function () {
683
- var that = this;
684
- that.eventHandlers['changeHandler'] = function (event) { that.onChange.emit(event); };
685
- that.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);
686
- };
687
- /** @description Remove event listeners. */
688
- ScrollBarComponent.prototype.unlisten = function () {
689
- var that = this;
690
- if (that.eventHandlers['changeHandler']) {
691
- that.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);
692
- }
693
- };
694
- return ScrollBarComponent;
695
- }(BaseElement));
696
- ScrollBarComponent.decorators = [
697
- { type: core.Directive, args: [{
698
- selector: 'smart-scroll-bar, [smart-scroll-bar]'
699
- },] }
700
- ];
701
- ScrollBarComponent.ctorParameters = function () { return [
702
- { type: core.ElementRef }
703
- ]; };
704
- ScrollBarComponent.propDecorators = {
705
- animation: [{ type: core.Input }],
706
- disabled: [{ type: core.Input }],
707
- largeStep: [{ type: core.Input }],
708
- locale: [{ type: core.Input }],
709
- localizeFormatFunction: [{ type: core.Input }],
710
- max: [{ type: core.Input }],
711
- mechanicalAction: [{ type: core.Input }],
712
- messages: [{ type: core.Input }],
713
- min: [{ type: core.Input }],
714
- orientation: [{ type: core.Input }],
715
- readonly: [{ type: core.Input }],
716
- rightToLeft: [{ type: core.Input }],
717
- showButtons: [{ type: core.Input }],
718
- step: [{ type: core.Input }],
719
- theme: [{ type: core.Input }],
720
- unfocusable: [{ type: core.Input }],
721
- value: [{ type: core.Input }],
722
- onChange: [{ type: core.Output }]
723
- };
724
-
725
- var ScrollBarModule = /** @class */ (function () {
726
- function ScrollBarModule() {
727
- }
728
- return ScrollBarModule;
729
- }());
730
- ScrollBarModule.decorators = [
731
- { type: core.NgModule, args: [{
732
- declarations: [ScrollBarComponent],
733
- schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
734
- exports: [ScrollBarComponent]
735
- },] }
736
- ];
737
-
738
- /**
739
- * Generated bundle index. Do not edit.
740
- */
741
-
742
- exports.ScrollBarComponent = ScrollBarComponent;
743
- exports.ScrollBarModule = ScrollBarModule;
744
- exports.Smart = Smart;
745
- exports.ɵa = BaseElement;
746
-
747
- Object.defineProperty(exports, '__esModule', { value: true });
748
-
749
- })));
750
- //# sourceMappingURL=smart-webcomponents-angular-scrollbar.umd.js.map