@smart-webcomponents-angular/columnpanel 9.2.21 → 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 (44) hide show
  1. package/columnpanel/index.d.ts +1 -0
  2. package/columnpanel/smart-webcomponents-angular-columnpanel.d.ts +2 -2
  3. package/columnpanel/smart.columnpanel.d.ts +3 -0
  4. package/columnpanel/smart.columnpanel.module.d.ts +5 -0
  5. package/columnpanel/smart.element.d.ts +4 -1
  6. package/esm2020/columnpanel/index.mjs +2 -0
  7. package/{esm2015/columnpanel/public_api.js → esm2020/columnpanel/public_api.mjs} +0 -0
  8. package/{esm2015/columnpanel/smart-webcomponents-angular-columnpanel.js → esm2020/columnpanel/smart-webcomponents-angular-columnpanel.mjs} +2 -3
  9. package/esm2020/columnpanel/smart.columnpanel.mjs +167 -0
  10. package/esm2020/columnpanel/smart.columnpanel.module.mjs +18 -0
  11. package/esm2020/columnpanel/smart.element.mjs +96 -0
  12. package/fesm2015/{smart-webcomponents-angular-columnpanel.js → smart-webcomponents-angular-columnpanel.mjs} +68 -42
  13. package/fesm2015/smart-webcomponents-angular-columnpanel.mjs.map +1 -0
  14. package/fesm2020/smart-webcomponents-angular-columnpanel.mjs +289 -0
  15. package/fesm2020/smart-webcomponents-angular-columnpanel.mjs.map +1 -0
  16. package/images/dropable_zone_image.svg +25 -0
  17. package/images/error.png +0 -0
  18. package/images/flags.png +0 -0
  19. package/images/icons-sprite.svg +85 -0
  20. package/images/icons-stack.svg +132 -0
  21. package/images/info.png +0 -0
  22. package/images/magnifier.png +0 -0
  23. package/images/mail.png +0 -0
  24. package/images/radial.svg +1 -0
  25. package/images/success.png +0 -0
  26. package/images/time.png +0 -0
  27. package/images/warning.png +0 -0
  28. package/index.d.ts +3548 -647
  29. package/package.json +26 -24
  30. package/styles/font/smart-icons.eot +0 -0
  31. package/styles/font/smart-icons.svg +64 -2
  32. package/styles/font/smart-icons.ttf +0 -0
  33. package/styles/font/smart-icons.woff +0 -0
  34. package/styles/font/smart-icons.woff2 +0 -0
  35. package/styles/smart.base.css +4 -4
  36. package/styles/smart.columnpanel.css +4 -4
  37. package/styles/smart.common.css +1 -1
  38. package/bundles/smart-webcomponents-angular-columnpanel.umd.js +0 -653
  39. package/bundles/smart-webcomponents-angular-columnpanel.umd.min.js +0 -25
  40. package/columnpanel/smart-webcomponents-angular-columnpanel.metadata.json +0 -1
  41. package/esm2015/columnpanel/smart.columnpanel.js +0 -157
  42. package/esm2015/columnpanel/smart.columnpanel.module.js +0 -13
  43. package/esm2015/columnpanel/smart.element.js +0 -83
  44. package/fesm2015/smart-webcomponents-angular-columnpanel.js.map +0 -1
@@ -1,653 +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.gridpanel';
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/columnpanel', ['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'].columnpanel = {}), 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 ColumnPanelComponent = /** @class */ (function (_super) {
431
- __extends(ColumnPanelComponent, _super);
432
- function ColumnPanelComponent(ref) {
433
- var _this = _super.call(this, ref) || this;
434
- _this.eventHandlers = [];
435
- /** @description This event is triggered when the "Apply" button is clicked.
436
- * @param event. The custom event. Custom event was created with: event.detail( value, positionChanged)
437
- * value - The current configuration of columns (data source).
438
- * positionChanged - A boolean detail that shows whether the columns have been reordered.
439
- */
440
- _this.onApply = new core.EventEmitter();
441
- /** @description This event is triggered when the "Cancel" button is clicked.
442
- * @param event. The custom event. */
443
- _this.onCancel = new core.EventEmitter();
444
- _this.nativeElement = ref.nativeElement;
445
- return _this;
446
- }
447
- /** @description Creates the component on demand.
448
- * @param properties An optional object of properties, which will be added to the template binded ones.
449
- */
450
- ColumnPanelComponent.prototype.createComponent = function (properties) {
451
- if (properties === void 0) { properties = {}; }
452
- this.nativeElement = document.createElement('smart-column-panel');
453
- for (var propertyName in properties) {
454
- this.nativeElement[propertyName] = properties[propertyName];
455
- }
456
- return this.nativeElement;
457
- };
458
- Object.defineProperty(ColumnPanelComponent.prototype, "animation", {
459
- /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
460
- get: function () {
461
- return this.nativeElement ? this.nativeElement.animation : undefined;
462
- },
463
- set: function (value) {
464
- this.nativeElement ? this.nativeElement.animation = value : undefined;
465
- },
466
- enumerable: false,
467
- configurable: true
468
- });
469
- Object.defineProperty(ColumnPanelComponent.prototype, "dataSource", {
470
- /** @description Determines the data source that will be loaded to the column panel. */
471
- get: function () {
472
- return this.nativeElement ? this.nativeElement.dataSource : undefined;
473
- },
474
- set: function (value) {
475
- this.nativeElement ? this.nativeElement.dataSource = value : undefined;
476
- },
477
- enumerable: false,
478
- configurable: true
479
- });
480
- Object.defineProperty(ColumnPanelComponent.prototype, "disabled", {
481
- /** @description Enables or disables the column panel. */
482
- get: function () {
483
- return this.nativeElement ? this.nativeElement.disabled : undefined;
484
- },
485
- set: function (value) {
486
- this.nativeElement ? this.nativeElement.disabled = value : undefined;
487
- },
488
- enumerable: false,
489
- configurable: true
490
- });
491
- Object.defineProperty(ColumnPanelComponent.prototype, "locale", {
492
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
493
- get: function () {
494
- return this.nativeElement ? this.nativeElement.locale : undefined;
495
- },
496
- set: function (value) {
497
- this.nativeElement ? this.nativeElement.locale = value : undefined;
498
- },
499
- enumerable: false,
500
- configurable: true
501
- });
502
- Object.defineProperty(ColumnPanelComponent.prototype, "localizeFormatFunction", {
503
- /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
504
- get: function () {
505
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
506
- },
507
- set: function (value) {
508
- this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
509
- },
510
- enumerable: false,
511
- configurable: true
512
- });
513
- Object.defineProperty(ColumnPanelComponent.prototype, "messages", {
514
- /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
515
- get: function () {
516
- return this.nativeElement ? this.nativeElement.messages : undefined;
517
- },
518
- set: function (value) {
519
- this.nativeElement ? this.nativeElement.messages = value : undefined;
520
- },
521
- enumerable: false,
522
- configurable: true
523
- });
524
- Object.defineProperty(ColumnPanelComponent.prototype, "readonly", {
525
- /** @description If the element is readonly, users cannot interact with it. */
526
- get: function () {
527
- return this.nativeElement ? this.nativeElement.readonly : undefined;
528
- },
529
- set: function (value) {
530
- this.nativeElement ? this.nativeElement.readonly = value : undefined;
531
- },
532
- enumerable: false,
533
- configurable: true
534
- });
535
- Object.defineProperty(ColumnPanelComponent.prototype, "rightToLeft", {
536
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
537
- get: function () {
538
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
539
- },
540
- set: function (value) {
541
- this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
542
- },
543
- enumerable: false,
544
- configurable: true
545
- });
546
- Object.defineProperty(ColumnPanelComponent.prototype, "unfocusable", {
547
- /** @description If is set to true, the element cannot be focused. */
548
- get: function () {
549
- return this.nativeElement ? this.nativeElement.unfocusable : undefined;
550
- },
551
- set: function (value) {
552
- this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
553
- },
554
- enumerable: false,
555
- configurable: true
556
- });
557
- Object.defineProperty(ColumnPanelComponent.prototype, "isRendered", {
558
- get: function () {
559
- return this.nativeElement ? this.nativeElement.isRendered : false;
560
- },
561
- enumerable: false,
562
- configurable: true
563
- });
564
- ColumnPanelComponent.prototype.ngOnInit = function () {
565
- };
566
- ColumnPanelComponent.prototype.ngAfterViewInit = function () {
567
- var that = this;
568
- that.onCreate.emit(that.nativeElement);
569
- Smart.Render();
570
- this.nativeElement.classList.add('smart-angular');
571
- this.nativeElement.whenRendered(function () { that.onReady.emit(that.nativeElement); });
572
- this.listen();
573
- };
574
- ColumnPanelComponent.prototype.ngOnDestroy = function () {
575
- this.unlisten();
576
- };
577
- ColumnPanelComponent.prototype.ngOnChanges = function (changes) {
578
- if (this.nativeElement && this.nativeElement.isRendered) {
579
- for (var propName in changes) {
580
- if (changes.hasOwnProperty(propName)) {
581
- this.nativeElement[propName] = changes[propName].currentValue;
582
- }
583
- }
584
- }
585
- };
586
- /** @description Add event listeners. */
587
- ColumnPanelComponent.prototype.listen = function () {
588
- var that = this;
589
- that.eventHandlers['applyHandler'] = function (event) { that.onApply.emit(event); };
590
- that.nativeElement.addEventListener('apply', that.eventHandlers['applyHandler']);
591
- that.eventHandlers['cancelHandler'] = function (event) { that.onCancel.emit(event); };
592
- that.nativeElement.addEventListener('cancel', that.eventHandlers['cancelHandler']);
593
- };
594
- /** @description Remove event listeners. */
595
- ColumnPanelComponent.prototype.unlisten = function () {
596
- var that = this;
597
- if (that.eventHandlers['applyHandler']) {
598
- that.nativeElement.removeEventListener('apply', that.eventHandlers['applyHandler']);
599
- }
600
- if (that.eventHandlers['cancelHandler']) {
601
- that.nativeElement.removeEventListener('cancel', that.eventHandlers['cancelHandler']);
602
- }
603
- };
604
- return ColumnPanelComponent;
605
- }(BaseElement));
606
- ColumnPanelComponent.decorators = [
607
- { type: core.Directive, args: [{
608
- selector: 'smart-column-panel, [smart-column-panel]'
609
- },] }
610
- ];
611
- ColumnPanelComponent.ctorParameters = function () { return [
612
- { type: core.ElementRef }
613
- ]; };
614
- ColumnPanelComponent.propDecorators = {
615
- animation: [{ type: core.Input }],
616
- dataSource: [{ type: core.Input }],
617
- disabled: [{ type: core.Input }],
618
- locale: [{ type: core.Input }],
619
- localizeFormatFunction: [{ type: core.Input }],
620
- messages: [{ type: core.Input }],
621
- readonly: [{ type: core.Input }],
622
- rightToLeft: [{ type: core.Input }],
623
- unfocusable: [{ type: core.Input }],
624
- onApply: [{ type: core.Output }],
625
- onCancel: [{ type: core.Output }]
626
- };
627
-
628
- var ColumnPanelModule = /** @class */ (function () {
629
- function ColumnPanelModule() {
630
- }
631
- return ColumnPanelModule;
632
- }());
633
- ColumnPanelModule.decorators = [
634
- { type: core.NgModule, args: [{
635
- declarations: [ColumnPanelComponent],
636
- schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
637
- exports: [ColumnPanelComponent]
638
- },] }
639
- ];
640
-
641
- /**
642
- * Generated bundle index. Do not edit.
643
- */
644
-
645
- exports.ColumnPanelComponent = ColumnPanelComponent;
646
- exports.ColumnPanelModule = ColumnPanelModule;
647
- exports.Smart = Smart;
648
- exports.ɵa = BaseElement;
649
-
650
- Object.defineProperty(exports, '__esModule', { value: true });
651
-
652
- })));
653
- //# sourceMappingURL=smart-webcomponents-angular-columnpanel.umd.js.map