@smart-webcomponents-angular/columnpanel 9.2.22 → 13.0.9

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 (34) hide show
  1. package/README.md +10 -2
  2. package/columnpanel/index.d.ts +1 -0
  3. package/columnpanel/smart-webcomponents-angular-columnpanel.d.ts +2 -2
  4. package/columnpanel/smart.columnpanel.d.ts +3 -0
  5. package/columnpanel/smart.columnpanel.module.d.ts +5 -0
  6. package/columnpanel/smart.element.d.ts +4 -1
  7. package/esm2020/columnpanel/index.mjs +2 -0
  8. package/{esm2015/columnpanel/public_api.js → esm2020/columnpanel/public_api.mjs} +0 -0
  9. package/{esm2015/columnpanel/smart-webcomponents-angular-columnpanel.js → esm2020/columnpanel/smart-webcomponents-angular-columnpanel.mjs} +2 -3
  10. package/esm2020/columnpanel/smart.columnpanel.mjs +167 -0
  11. package/esm2020/columnpanel/smart.columnpanel.module.mjs +18 -0
  12. package/esm2020/columnpanel/smart.element.mjs +99 -0
  13. package/fesm2015/{smart-webcomponents-angular-columnpanel.js → smart-webcomponents-angular-columnpanel.mjs} +71 -42
  14. package/fesm2015/smart-webcomponents-angular-columnpanel.mjs.map +1 -0
  15. package/fesm2020/smart-webcomponents-angular-columnpanel.mjs +292 -0
  16. package/fesm2020/smart-webcomponents-angular-columnpanel.mjs.map +1 -0
  17. package/images/flags.png +0 -0
  18. package/index.d.ts +3578 -658
  19. package/package.json +26 -24
  20. package/styles/font/smart-icons.eot +0 -0
  21. package/styles/font/smart-icons.svg +64 -2
  22. package/styles/font/smart-icons.ttf +0 -0
  23. package/styles/font/smart-icons.woff +0 -0
  24. package/styles/font/smart-icons.woff2 +0 -0
  25. package/styles/smart.base.css +4 -4
  26. package/styles/smart.columnpanel.css +4 -4
  27. package/styles/smart.common.css +1 -1
  28. package/bundles/smart-webcomponents-angular-columnpanel.umd.js +0 -653
  29. package/bundles/smart-webcomponents-angular-columnpanel.umd.min.js +0 -25
  30. package/columnpanel/smart-webcomponents-angular-columnpanel.metadata.json +0 -1
  31. package/esm2015/columnpanel/smart.columnpanel.js +0 -157
  32. package/esm2015/columnpanel/smart.columnpanel.module.js +0 -13
  33. package/esm2015/columnpanel/smart.element.js +0 -83
  34. package/fesm2015/smart-webcomponents-angular-columnpanel.js.map +0 -1
@@ -0,0 +1,292 @@
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
+ import * as i0 from '@angular/core';
11
+ import { EventEmitter, Component, Output, Input, Directive, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
12
+
13
+ class BaseElement {
14
+ constructor(ref) {
15
+ this.onCreate = new EventEmitter();
16
+ this.onReady = new EventEmitter();
17
+ this.onAttach = new EventEmitter();
18
+ this.onDetach = new EventEmitter();
19
+ const that = this;
20
+ this.nativeElement = ref.nativeElement;
21
+ that.nativeElement.onAttached = () => {
22
+ that.onAttach.emit(that.nativeElement);
23
+ };
24
+ that.nativeElement.onDetached = () => {
25
+ that.onDetach.emit(that.nativeElement);
26
+ };
27
+ }
28
+ addEventListener(type, listener, options = false) {
29
+ this.nativeElement.addEventListener(type, listener, options);
30
+ }
31
+ removeEventListener(type, listener, options = false) {
32
+ this.nativeElement.removeEventListener(type, listener, options);
33
+ }
34
+ dispatchEvent(event) {
35
+ return this.nativeElement.dispatchEvent(event);
36
+ }
37
+ blur() {
38
+ this.nativeElement.blur();
39
+ }
40
+ click() {
41
+ this.nativeElement.click();
42
+ }
43
+ focus(options) {
44
+ this.nativeElement.focus(options);
45
+ }
46
+ /** @description Sets or gets the language. Used in conjunction with the property messages. */
47
+ get locale() {
48
+ return this.nativeElement ? this.nativeElement.locale : undefined;
49
+ }
50
+ set locale(value) {
51
+ this.nativeElement ? this.nativeElement.locale = value : undefined;
52
+ }
53
+ /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
54
+ get localizeFormatFunction() {
55
+ return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
56
+ }
57
+ set localizeFormatFunction(value) {
58
+ this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
59
+ }
60
+ /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
61
+ get messages() {
62
+ return this.nativeElement ? this.nativeElement.messages : undefined;
63
+ }
64
+ set messages(value) {
65
+ this.nativeElement ? this.nativeElement.messages = value : undefined;
66
+ }
67
+ /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
68
+ get rightToLeft() {
69
+ return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
70
+ }
71
+ set rightToLeft(value) {
72
+ this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
73
+ }
74
+ /** @description Determines the theme. Theme defines the look of the element */
75
+ get theme() {
76
+ return this.nativeElement ? this.nativeElement.theme : undefined;
77
+ }
78
+ set theme(value) {
79
+ this.nativeElement ? this.nativeElement.theme = value : undefined;
80
+ }
81
+ }
82
+ BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
83
+ BaseElement.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BaseElement, selector: "ng-component", inputs: { locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0, template: '', isInline: true });
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, decorators: [{
85
+ type: Component,
86
+ args: [{
87
+ template: ''
88
+ }]
89
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onCreate: [{
90
+ type: Output
91
+ }], onReady: [{
92
+ type: Output
93
+ }], onAttach: [{
94
+ type: Output
95
+ }], onDetach: [{
96
+ type: Output
97
+ }], locale: [{
98
+ type: Input
99
+ }], localizeFormatFunction: [{
100
+ type: Input
101
+ }], messages: [{
102
+ type: Input
103
+ }], rightToLeft: [{
104
+ type: Input
105
+ }], theme: [{
106
+ type: Input
107
+ }] } });
108
+ const Smart = window.Smart;
109
+
110
+ class ColumnPanelComponent extends BaseElement {
111
+ constructor(ref) {
112
+ super(ref);
113
+ this.eventHandlers = [];
114
+ /** @description This event is triggered when the "Apply" button is clicked.
115
+ * @param event. The custom event. Custom event was created with: event.detail( value, positionChanged)
116
+ * value - The current configuration of columns (data source).
117
+ * positionChanged - A boolean detail that shows whether the columns have been reordered.
118
+ */
119
+ this.onApply = new EventEmitter();
120
+ /** @description This event is triggered when the "Cancel" button is clicked.
121
+ * @param event. The custom event. */
122
+ this.onCancel = new EventEmitter();
123
+ this.nativeElement = ref.nativeElement;
124
+ }
125
+ /** @description Creates the component on demand.
126
+ * @param properties An optional object of properties, which will be added to the template binded ones.
127
+ */
128
+ createComponent(properties = {}) {
129
+ this.nativeElement = document.createElement('smart-column-panel');
130
+ for (let propertyName in properties) {
131
+ this.nativeElement[propertyName] = properties[propertyName];
132
+ }
133
+ return this.nativeElement;
134
+ }
135
+ /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
136
+ get animation() {
137
+ return this.nativeElement ? this.nativeElement.animation : undefined;
138
+ }
139
+ set animation(value) {
140
+ this.nativeElement ? this.nativeElement.animation = value : undefined;
141
+ }
142
+ /** @description Determines the data source that will be loaded to the column panel. */
143
+ get dataSource() {
144
+ return this.nativeElement ? this.nativeElement.dataSource : undefined;
145
+ }
146
+ set dataSource(value) {
147
+ this.nativeElement ? this.nativeElement.dataSource = value : undefined;
148
+ }
149
+ /** @description Enables or disables the column panel. */
150
+ get disabled() {
151
+ return this.nativeElement ? this.nativeElement.disabled : undefined;
152
+ }
153
+ set disabled(value) {
154
+ this.nativeElement ? this.nativeElement.disabled = value : undefined;
155
+ }
156
+ /** @description Sets or gets the language. Used in conjunction with the property messages. */
157
+ get locale() {
158
+ return this.nativeElement ? this.nativeElement.locale : undefined;
159
+ }
160
+ set locale(value) {
161
+ this.nativeElement ? this.nativeElement.locale = value : undefined;
162
+ }
163
+ /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
164
+ get localizeFormatFunction() {
165
+ return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
166
+ }
167
+ set localizeFormatFunction(value) {
168
+ this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
169
+ }
170
+ /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
171
+ get messages() {
172
+ return this.nativeElement ? this.nativeElement.messages : undefined;
173
+ }
174
+ set messages(value) {
175
+ this.nativeElement ? this.nativeElement.messages = value : undefined;
176
+ }
177
+ /** @description If the element is readonly, users cannot interact with it. */
178
+ get readonly() {
179
+ return this.nativeElement ? this.nativeElement.readonly : undefined;
180
+ }
181
+ set readonly(value) {
182
+ this.nativeElement ? this.nativeElement.readonly = value : undefined;
183
+ }
184
+ /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
185
+ get rightToLeft() {
186
+ return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
187
+ }
188
+ set rightToLeft(value) {
189
+ this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
190
+ }
191
+ /** @description If is set to true, the element cannot be focused. */
192
+ get unfocusable() {
193
+ return this.nativeElement ? this.nativeElement.unfocusable : undefined;
194
+ }
195
+ set unfocusable(value) {
196
+ this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
197
+ }
198
+ get isRendered() {
199
+ return this.nativeElement ? this.nativeElement.isRendered : false;
200
+ }
201
+ ngOnInit() {
202
+ }
203
+ ngAfterViewInit() {
204
+ const that = this;
205
+ that.onCreate.emit(that.nativeElement);
206
+ Smart.Render();
207
+ this.nativeElement.classList.add('smart-angular');
208
+ this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
209
+ this.listen();
210
+ }
211
+ ngOnDestroy() {
212
+ this.unlisten();
213
+ }
214
+ ngOnChanges(changes) {
215
+ if (this.nativeElement && this.nativeElement.isRendered) {
216
+ for (const propName in changes) {
217
+ if (changes.hasOwnProperty(propName)) {
218
+ this.nativeElement[propName] = changes[propName].currentValue;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ /** @description Add event listeners. */
224
+ listen() {
225
+ const that = this;
226
+ that.eventHandlers['applyHandler'] = (event) => { that.onApply.emit(event); };
227
+ that.nativeElement.addEventListener('apply', that.eventHandlers['applyHandler']);
228
+ that.eventHandlers['cancelHandler'] = (event) => { that.onCancel.emit(event); };
229
+ that.nativeElement.addEventListener('cancel', that.eventHandlers['cancelHandler']);
230
+ }
231
+ /** @description Remove event listeners. */
232
+ unlisten() {
233
+ const that = this;
234
+ if (that.eventHandlers['applyHandler']) {
235
+ that.nativeElement.removeEventListener('apply', that.eventHandlers['applyHandler']);
236
+ }
237
+ if (that.eventHandlers['cancelHandler']) {
238
+ that.nativeElement.removeEventListener('cancel', that.eventHandlers['cancelHandler']);
239
+ }
240
+ }
241
+ }
242
+ ColumnPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
243
+ ColumnPanelComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: ColumnPanelComponent, selector: "smart-column-panel, [smart-column-panel]", inputs: { animation: "animation", dataSource: "dataSource", disabled: "disabled", locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", readonly: "readonly", rightToLeft: "rightToLeft", unfocusable: "unfocusable" }, outputs: { onApply: "onApply", onCancel: "onCancel" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelComponent, decorators: [{
245
+ type: Directive,
246
+ args: [{
247
+ selector: 'smart-column-panel, [smart-column-panel]'
248
+ }]
249
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { animation: [{
250
+ type: Input
251
+ }], dataSource: [{
252
+ type: Input
253
+ }], disabled: [{
254
+ type: Input
255
+ }], locale: [{
256
+ type: Input
257
+ }], localizeFormatFunction: [{
258
+ type: Input
259
+ }], messages: [{
260
+ type: Input
261
+ }], readonly: [{
262
+ type: Input
263
+ }], rightToLeft: [{
264
+ type: Input
265
+ }], unfocusable: [{
266
+ type: Input
267
+ }], onApply: [{
268
+ type: Output
269
+ }], onCancel: [{
270
+ type: Output
271
+ }] } });
272
+
273
+ class ColumnPanelModule {
274
+ }
275
+ ColumnPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
276
+ ColumnPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelModule, declarations: [ColumnPanelComponent], exports: [ColumnPanelComponent] });
277
+ ColumnPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelModule });
278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ColumnPanelModule, decorators: [{
279
+ type: NgModule,
280
+ args: [{
281
+ declarations: [ColumnPanelComponent],
282
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
283
+ exports: [ColumnPanelComponent]
284
+ }]
285
+ }] });
286
+
287
+ /**
288
+ * Generated bundle index. Do not edit.
289
+ */
290
+
291
+ export { ColumnPanelComponent, ColumnPanelModule, Smart };
292
+ //# sourceMappingURL=smart-webcomponents-angular-columnpanel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-webcomponents-angular-columnpanel.mjs","sources":["../../columnpanel/src/smart.element.ts","../../columnpanel/src/smart.columnpanel.ts","../../columnpanel/src/smart.columnpanel.module.ts","../../columnpanel/src/smart-webcomponents-angular-columnpanel.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Component, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Component({\n template: ''\n})\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { ColumnPanel } from './../index';\nimport { Animation, ColumnPanelDataSource, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { Animation, ColumnPanelDataSource, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { ColumnPanel } from './../index';\n\n\n@Directive({\n\tselector: 'smart-column-panel, [smart-column-panel]'\n})\n\nexport class ColumnPanelComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<ColumnPanel>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as ColumnPanel;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: ColumnPanel;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <ColumnPanel>document.createElement('smart-column-panel');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @description Determines the data source that will be loaded to the column panel. */\n\t@Input()\n\tget dataSource(): ColumnPanelDataSource[] {\n\t\treturn this.nativeElement ? this.nativeElement.dataSource : undefined;\n\t}\n\tset dataSource(value: ColumnPanelDataSource[]) {\n\t\tthis.nativeElement ? this.nativeElement.dataSource = value : undefined;\n\t}\n\n\t/** @description Enables or disables the column panel. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the \"Apply\" button is clicked.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\tvalue, \tpositionChanged)\n\t* value - The current configuration of columns (data source).\n\t* positionChanged - A boolean detail that shows whether the columns have been reordered.\n\t*/\n\t@Output() onApply: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the \"Cancel\" button is clicked.\n\t* @param event. The custom event. \t*/\n\t@Output() onCancel: EventEmitter<CustomEvent> = new EventEmitter();\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['applyHandler'] = (event: CustomEvent) => { that.onApply.emit(event); }\n\t\tthat.nativeElement.addEventListener('apply', that.eventHandlers['applyHandler']);\n\n\t\tthat.eventHandlers['cancelHandler'] = (event: CustomEvent) => { that.onCancel.emit(event); }\n\t\tthat.nativeElement.addEventListener('cancel', that.eventHandlers['cancelHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['applyHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('apply', that.eventHandlers['applyHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['cancelHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('cancel', that.eventHandlers['cancelHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { ColumnPanelComponent } from './smart.columnpanel';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [ColumnPanelComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [ColumnPanelComponent]\n})\n\nexport class ColumnPanelModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAca,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAA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