igniteui-angular 12.2.4 → 12.2.8

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 (78) hide show
  1. package/bundles/igniteui-angular.umd.js +466 -521
  2. package/bundles/igniteui-angular.umd.js.map +1 -1
  3. package/esm2015/igniteui-angular.js +106 -107
  4. package/esm2015/lib/action-strip/action-strip.component.js +19 -2
  5. package/esm2015/lib/action-strip/grid-actions/grid-action-button.component.js +2 -2
  6. package/esm2015/lib/action-strip/grid-actions/grid-editing-actions.component.js +4 -4
  7. package/esm2015/lib/action-strip/grid-actions/grid-pinning-actions.component.js +5 -5
  8. package/esm2015/lib/banner/banner.component.js +1 -1
  9. package/esm2015/lib/core/i18n/action-strip-resources.js +4 -0
  10. package/esm2015/lib/core/i18n/resources.js +5 -3
  11. package/esm2015/lib/core/utils.js +24 -2
  12. package/esm2015/lib/data-operations/data-clone-strategy.js +7 -0
  13. package/esm2015/lib/data-operations/data-util.js +8 -8
  14. package/esm2015/lib/data-operations/grouping-strategy.js +1 -1
  15. package/esm2015/lib/directives/radio/radio-group.directive.js +5 -13
  16. package/esm2015/lib/drop-down/drop-down-item.base.js +1 -5
  17. package/esm2015/lib/grids/api.service.js +2 -2
  18. package/esm2015/lib/grids/cell.component.js +1 -17
  19. package/esm2015/lib/grids/column-actions/column-actions.component.js +3 -7
  20. package/esm2015/lib/grids/common/crud.service.js +4 -3
  21. package/esm2015/lib/grids/common/grid.interface.js +1 -1
  22. package/esm2015/lib/grids/common/pipes.js +2 -2
  23. package/esm2015/lib/grids/common/row.interface.js +1 -1
  24. package/esm2015/lib/grids/grid/grid.component.js +21 -8
  25. package/esm2015/lib/grids/grid/grid.pipes.js +3 -3
  26. package/esm2015/lib/grids/grid-base.directive.js +82 -118
  27. package/esm2015/lib/grids/grid-public-row.js +18 -16
  28. package/esm2015/lib/grids/headers/grid-header-row.component.js +2 -2
  29. package/esm2015/lib/grids/hierarchical-grid/hierarchical-grid.component.js +3 -7
  30. package/esm2015/lib/grids/row.directive.js +2 -3
  31. package/esm2015/lib/grids/summaries/grid-summary.service.js +2 -2
  32. package/esm2015/lib/grids/tree-grid/tree-grid.component.js +3 -7
  33. package/esm2015/lib/grids/tree-grid/tree-grid.pipes.js +3 -3
  34. package/esm2015/lib/icon/icon.component.js +1 -6
  35. package/esm2015/lib/services/exporter-common/base-export-service.js +2 -2
  36. package/esm2015/lib/services/overlay/overlay.js +2 -1
  37. package/esm2015/lib/services/overlay/utilities.js +1 -1
  38. package/esm2015/lib/services/transaction/base-transaction.js +17 -4
  39. package/esm2015/lib/services/transaction/igx-hierarchical-transaction.js +3 -4
  40. package/esm2015/lib/services/transaction/igx-transaction.js +3 -3
  41. package/esm2015/lib/services/transaction/transaction-factory.service.js +1 -2
  42. package/esm2015/lib/services/transaction/transaction.js +1 -1
  43. package/esm2015/lib/toast/toast.component.js +43 -21
  44. package/esm2015/public_api.js +2 -1
  45. package/fesm2015/igniteui-angular.js +265 -330
  46. package/fesm2015/igniteui-angular.js.map +1 -1
  47. package/igniteui-angular.d.ts +105 -106
  48. package/igniteui-angular.metadata.json +1 -1
  49. package/lib/action-strip/action-strip.component.d.ts +10 -0
  50. package/lib/banner/banner.component.d.ts +1 -2
  51. package/lib/core/i18n/action-strip-resources.d.ts +4 -0
  52. package/lib/core/i18n/resources.d.ts +3 -1
  53. package/lib/core/utils.d.ts +12 -0
  54. package/lib/data-operations/data-clone-strategy.d.ts +6 -0
  55. package/lib/data-operations/data-util.d.ts +5 -3
  56. package/lib/data-operations/grouping-strategy.d.ts +5 -2
  57. package/lib/directives/radio/radio-group.directive.d.ts +4 -4
  58. package/lib/grids/cell.component.d.ts +0 -9
  59. package/lib/grids/column-actions/column-actions.component.d.ts +2 -1
  60. package/lib/grids/common/grid.interface.d.ts +2 -0
  61. package/lib/grids/common/row.interface.d.ts +1 -0
  62. package/lib/grids/grid/grid.component.d.ts +19 -1
  63. package/lib/grids/grid/grid.pipes.d.ts +2 -1
  64. package/lib/grids/grid-base.directive.d.ts +66 -37
  65. package/lib/grids/grid-public-row.d.ts +10 -3
  66. package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +2 -1
  67. package/lib/grids/tree-grid/tree-grid.component.d.ts +2 -1
  68. package/lib/icon/icon.component.d.ts +2 -2
  69. package/lib/services/overlay/utilities.d.ts +2 -1
  70. package/lib/services/transaction/base-transaction.d.ts +7 -0
  71. package/lib/services/transaction/transaction.d.ts +5 -0
  72. package/lib/toast/toast.component.d.ts +10 -4
  73. package/migrations/common/filterSourceDirs.d.ts +2 -2
  74. package/migrations/common/filterSourceDirs.js +2 -2
  75. package/package.json +1 -1
  76. package/public_api.d.ts +2 -0
  77. package/esm2015/lib/core/deprecateDecorators.js +0 -101
  78. package/lib/core/deprecateDecorators.d.ts +0 -20
@@ -29,6 +29,14 @@ declare abstract class BaseRow implements RowType {
29
29
  * ```
30
30
  */
31
31
  get key(): any;
32
+ /**
33
+ * Gets if this represents add row UI
34
+ *
35
+ * ```typescript
36
+ * let isAddRow = row.addRowUI;
37
+ * ```
38
+ */
39
+ get addRowUI(): boolean;
32
40
  /**
33
41
  * The data record that populates the row.
34
42
  *
@@ -38,14 +46,13 @@ declare abstract class BaseRow implements RowType {
38
46
  */
39
47
  get data(): any;
40
48
  /**
41
- * @deprecated Use 'data' instead.
49
+ * @deprecated Use 'data' instead
42
50
  *
43
51
  * The data record that populates the row
44
52
  */
45
53
  get rowData(): any;
46
54
  /**
47
- * @deprecated Use 'key' instead.
48
- *
55
+ * @deprecated Use 'key' instead
49
56
  */
50
57
  get rowID(): any;
51
58
  /**
@@ -149,7 +149,8 @@ export declare class IgxHierarchicalGridComponent extends IgxHierarchicalGridBas
149
149
  */
150
150
  get expandChildren(): boolean;
151
151
  /**
152
- * @deprecated
152
+ * @deprecated in version 12.1.0. Use `getCellByColumn` or `getCellByKey` instead
153
+ *
153
154
  * Returns a `CellType` object that matches the conditions.
154
155
  *
155
156
  * @example
@@ -271,7 +271,8 @@ export declare class IgxTreeGridComponent extends IgxGridBaseDirective implement
271
271
  private get _gridAPI();
272
272
  constructor(selectionService: IgxGridSelectionService, colResizingService: IgxColumnResizingService, gridAPI: GridBaseAPIService<IgxGridBaseDirective & GridType>, transactionFactory: IgxHierarchicalTransactionFactory, _elementRef: ElementRef<HTMLElement>, _zone: NgZone, document: any, cdr: ChangeDetectorRef, resolver: ComponentFactoryResolver, differs: IterableDiffers, viewRef: ViewContainerRef, navigation: IgxGridNavigationService, filteringService: IgxFilteringService, overlayService: IgxOverlayService, summaryService: IgxGridSummaryService, _displayDensityOptions: IDisplayDensityOptions, localeId: string, platform: PlatformUtil, _diTransactions?: HierarchicalTransactionService<HierarchicalTransaction, HierarchicalState>);
273
273
  /**
274
- * @deprecated
274
+ * @deprecated in version 12.1.0. Use `getCellByColumn` or `getCellByKey` instead
275
+ *
275
276
  * Returns a `CellType` object that matches the conditions.
276
277
  *
277
278
  * @example
@@ -67,9 +67,9 @@ export declare class IgxIconComponent implements OnInit, OnDestroy {
67
67
  */
68
68
  active: boolean;
69
69
  /**
70
- * An @Input property that allows you to change the `color` of the icon.
70
+ * @deprecated in version 11.1.0. `color` is deprecated
71
71
  *
72
- * * @deprecated
72
+ * An @Input property that allows you to change the `color` of the icon.
73
73
  *
74
74
  * @example
75
75
  * ```html
@@ -54,7 +54,8 @@ export interface OutOfViewPort {
54
54
  }
55
55
  export interface PositionSettings {
56
56
  /**
57
- * @deprecated Set the target point/element in the overlay settings instead.
57
+ * @deprecated in version 10.2.0. Set the target point/element in the overlay settings instead
58
+ *
58
59
  * Attaching target for the component to show
59
60
  */
60
61
  target?: Point | HTMLElement;
@@ -1,6 +1,12 @@
1
1
  import { TransactionService, Transaction, State, StateUpdateEvent } from './transaction';
2
2
  import { EventEmitter } from '@angular/core';
3
+ import { IDataCloneStrategy } from '../../data-operations/data-clone-strategy';
3
4
  export declare class IgxBaseTransactionService<T extends Transaction, S extends State> implements TransactionService<T, S> {
5
+ /**
6
+ * @inheritdoc
7
+ */
8
+ get cloneStrategy(): IDataCloneStrategy;
9
+ set cloneStrategy(strategy: IDataCloneStrategy);
4
10
  /**
5
11
  * @inheritdoc
6
12
  */
@@ -20,6 +26,7 @@ export declare class IgxBaseTransactionService<T extends Transaction, S extends
20
26
  protected _isPending: boolean;
21
27
  protected _pendingTransactions: T[];
22
28
  protected _pendingStates: Map<any, S>;
29
+ private _cloneStrategy;
23
30
  /**
24
31
  * @inheritdoc
25
32
  */
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { IDataCloneStrategy } from '../../data-operations/data-clone-strategy';
2
3
  export declare enum TransactionType {
3
4
  ADD = "add",
4
5
  DELETE = "delete",
@@ -48,6 +49,10 @@ export interface TransactionService<T extends Transaction, S extends State> {
48
49
  * Returns whether transaction is enabled for this service
49
50
  */
50
51
  readonly enabled: boolean;
52
+ /**
53
+ * Gets/Sets the data clone strategy used to clone data
54
+ */
55
+ cloneStrategy: IDataCloneStrategy;
51
56
  /**
52
57
  * Event fired when transaction state has changed - add transaction, commit all transactions, undo and redo
53
58
  */
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IgxNavigationService } from '../core/navigation';
3
3
  import { IgxOverlayService, PositionSettings } from '../services/public_api';
4
4
  import { IgxNotificationsDirective } from '../directives/notification/notifications.directive';
@@ -31,7 +31,7 @@ export declare type IgxToastPosition = (typeof IgxToastPosition)[keyof typeof Ig
31
31
  * </igx-toast>
32
32
  * ```
33
33
  */
34
- export declare class IgxToastComponent extends IgxNotificationsDirective implements OnInit {
34
+ export declare class IgxToastComponent extends IgxNotificationsDirective implements OnInit, OnChanges {
35
35
  private _element;
36
36
  /**
37
37
  * @hidden
@@ -66,6 +66,8 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
66
66
  */
67
67
  isVisibleChange: EventEmitter<ToggleViewEventArgs>;
68
68
  /**
69
+ * @deprecated in version 12.2.3. We suggest using `positionSettings` property instead
70
+ *
69
71
  * Sets/gets the position of the toast.
70
72
  * If not set, the `position` attribute will have value `IgxToastPosition.Bottom`.
71
73
  * ```html
@@ -77,7 +79,8 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
77
79
  *
78
80
  * @memberof IgxToastComponent
79
81
  */
80
- position: IgxToastPosition;
82
+ get position(): IgxToastPosition;
83
+ set position(position: IgxToastPosition);
81
84
  /**
82
85
  * Get the position and animation settings used by the toast.
83
86
  * ```typescript
@@ -107,6 +110,7 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
107
110
  * ```
108
111
  */
109
112
  set positionSettings(settings: PositionSettings);
113
+ private _position;
110
114
  private _positionSettings;
111
115
  /**
112
116
  * Gets the nativeElement of the toast.
@@ -126,7 +130,7 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
126
130
  * this.toast.open();
127
131
  * ```
128
132
  */
129
- open(message?: string): void;
133
+ open(message?: string, settings?: PositionSettings): void;
130
134
  /**
131
135
  * Opens or closes the toast, depending on its current state.
132
136
  *
@@ -139,6 +143,8 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
139
143
  * @hidden
140
144
  */
141
145
  ngOnInit(): void;
146
+ ngOnChanges(changes: SimpleChanges): void;
147
+ private calculatePosition;
142
148
  }
143
149
  /**
144
150
  * @hidden
@@ -1,7 +1,7 @@
1
1
  import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
2
2
  /**
3
- * Filter tree to project source dirs
4
- *
5
3
  * @deprecated Temporary
4
+ *
5
+ * Filter tree to project source dirs
6
6
  */
7
7
  export declare const filterSourceDirs: (host: Tree, context: SchematicContext) => Rule;
@@ -4,9 +4,9 @@ exports.filterSourceDirs = void 0;
4
4
  const schematics_1 = require("@angular-devkit/schematics");
5
5
  const util_1 = require("./util");
6
6
  /**
7
- * Filter tree to project source dirs
8
- *
9
7
  * @deprecated Temporary
8
+ *
9
+ * Filter tree to project source dirs
10
10
  */
11
11
  const filterSourceDirs = (host, context) => {
12
12
  const configPath = util_1.getWorkspacePath(host);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "12.2.4",
3
+ "version": "12.2.8",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/public_api.d.ts CHANGED
@@ -26,6 +26,7 @@ export * from './lib/directives/date-time-editor/public_api';
26
26
  /**
27
27
  * Data operations
28
28
  */
29
+ export * from './lib/data-operations/data-clone-strategy';
29
30
  export * from './lib/data-operations/filtering-expression.interface';
30
31
  export * from './lib/data-operations/filtering-expressions-tree';
31
32
  export * from './lib/data-operations/filtering-condition';
@@ -115,5 +116,6 @@ export { IListResourceStrings } from './lib/core/i18n/list-resources';
115
116
  export { ITreeResourceStrings } from './lib/core/i18n/tree-resources';
116
117
  export { IInputResourceStrings } from './lib/core/i18n/input-resources';
117
118
  export { IChipResourceStrings } from './lib/core/i18n/chip-resources';
119
+ export { IActionStripResourceStrings } from './lib/core/i18n/action-strip-resources';
118
120
  export { PickerInteractionMode } from './lib/date-common/types';
119
121
  export { SplitterType } from './lib/splitter/splitter.component';
@@ -1,101 +0,0 @@
1
- import { isDevMode } from '@angular/core';
2
- /**
3
- * @hidden
4
- */
5
- export const DeprecateClass = (message) => {
6
- let isMessageShown = false;
7
- return (originalClass) => class extends originalClass {
8
- constructor(...args) {
9
- const target = originalClass;
10
- const targetName = typeof target === 'function' ? target.name : target.constructor.name;
11
- isMessageShown = showMessage(`${targetName}: ${message}`, isMessageShown);
12
- super(...args);
13
- }
14
- };
15
- };
16
- /**
17
- * @hidden
18
- */
19
- export function DeprecateMethod(message) {
20
- let isMessageShown = false;
21
- return function (target, key, descriptor) {
22
- if (descriptor && descriptor.value) {
23
- const originalMethod = descriptor.value;
24
- descriptor.value = function () {
25
- const targetName = typeof target === 'function' ? target.name : target.constructor.name;
26
- isMessageShown = showMessage(`${targetName}.${key}: ${message}`, isMessageShown);
27
- const args = [];
28
- for (const x of arguments) {
29
- args.push(x);
30
- }
31
- return originalMethod.call(this, ...args);
32
- };
33
- return descriptor;
34
- }
35
- };
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export function DeprecateProperty(message) {
41
- return function (target, key) {
42
- let isMessageShown = false;
43
- const messageToDisplay = `${target.constructor.name}.${key}: ${message}`;
44
- // if the target already has the property defined
45
- const originalDescriptor = Object.getOwnPropertyDescriptor(target, key);
46
- if (originalDescriptor) {
47
- const getter = originalDescriptor.get;
48
- const setter = originalDescriptor.set;
49
- if (getter) {
50
- originalDescriptor.get = function () {
51
- isMessageShown = showMessage(messageToDisplay, isMessageShown);
52
- return getter.call(this);
53
- };
54
- }
55
- if (setter) {
56
- originalDescriptor.set = function (value) {
57
- isMessageShown = showMessage(messageToDisplay, isMessageShown);
58
- setter.call(this, value);
59
- };
60
- }
61
- return originalDescriptor;
62
- }
63
- // the target doesn't contain a descriptor for that property, so create one
64
- // use backing field to set/get the value of the property to ensure there won't be infinite recursive calls
65
- const newKey = generateUniqueKey(target, key);
66
- Object.defineProperty(target, key, {
67
- configurable: true,
68
- enumerable: true,
69
- set(value) {
70
- isMessageShown = showMessage(messageToDisplay, isMessageShown);
71
- this[newKey] = value;
72
- },
73
- get() {
74
- isMessageShown = showMessage(messageToDisplay, isMessageShown);
75
- return this[newKey];
76
- }
77
- });
78
- };
79
- }
80
- /**
81
- * @hidden
82
- */
83
- const generateUniqueKey = (target, key) => {
84
- let newKey = '_' + key;
85
- while (target.hasOwnProperty(newKey)) {
86
- newKey = '_' + newKey;
87
- }
88
- return newKey;
89
- };
90
- const ɵ0 = generateUniqueKey;
91
- /**
92
- * @hidden
93
- */
94
- export const showMessage = (message, isMessageShown) => {
95
- if (!isMessageShown && isDevMode()) {
96
- console.warn(message);
97
- }
98
- return true;
99
- };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wdG9yID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcih0YXJnZXQsIGtleSk7XG4gICAgICAgIGlmIChvcmlnaW5hbERlc2NyaXB0b3IpIHtcbiAgICAgICAgICAgIGNvbnN0IGdldHRlciA9IG9yaWdpbmFsRGVzY3JpcHRvci5nZXQ7XG4gICAgICAgICAgICBjb25zdCBzZXR0ZXIgPSBvcmlnaW5hbERlc2NyaXB0b3Iuc2V0O1xuXG4gICAgICAgICAgICBpZiAoZ2V0dGVyKSB7XG4gICAgICAgICAgICAgICAgb3JpZ2luYWxEZXNjcmlwdG9yLmdldCA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICBpc01lc3NhZ2VTaG93biA9IHNob3dNZXNzYWdlKG1lc3NhZ2VUb0Rpc3BsYXksIGlzTWVzc2FnZVNob3duKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGdldHRlci5jYWxsKHRoaXMpO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChzZXR0ZXIpIHtcbiAgICAgICAgICAgICAgICBvcmlnaW5hbERlc2NyaXB0b3Iuc2V0ID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgaXNNZXNzYWdlU2hvd24gPSBzaG93TWVzc2FnZShtZXNzYWdlVG9EaXNwbGF5LCBpc01lc3NhZ2VTaG93bik7XG4gICAgICAgICAgICAgICAgICAgIHNldHRlci5jYWxsKHRoaXMsIHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gb3JpZ2luYWxEZXNjcmlwdG9yO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gdGhlIHRhcmdldCBkb2Vzbid0IGNvbnRhaW4gYSBkZXNjcmlwdG9yIGZvciB0aGF0IHByb3BlcnR5LCBzbyBjcmVhdGUgb25lXG4gICAgICAgIC8vIHVzZSBiYWNraW5nIGZpZWxkIHRvIHNldC9nZXQgdGhlIHZhbHVlIG9mIHRoZSBwcm9wZXJ0eSB0byBlbnN1cmUgdGhlcmUgd29uJ3QgYmUgaW5maW5pdGUgcmVjdXJzaXZlIGNhbGxzXG4gICAgICAgIGNvbnN0IG5ld0tleSA9IGdlbmVyYXRlVW5pcXVlS2V5KHRhcmdldCwga2V5KTtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwga2V5LCB7XG4gICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUsXG4gICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLFxuICAgICAgICAgICAgc2V0KHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgaXNNZXNzYWdlU2hvd24gPSBzaG93TWVzc2FnZShtZXNzYWdlVG9EaXNwbGF5LCBpc01lc3NhZ2VTaG93bik7XG4gICAgICAgICAgICAgICAgdGhpc1tuZXdLZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZ2V0KCkge1xuICAgICAgICAgICAgICAgIGlzTWVzc2FnZVNob3duID0gc2hvd01lc3NhZ2UobWVzc2FnZVRvRGlzcGxheSwgaXNNZXNzYWdlU2hvd24pO1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzW25ld0tleV07XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG59XG5cbi8qKlxuICogQGhpZGRlblxuICovXG5jb25zdCBnZW5lcmF0ZVVuaXF1ZUtleSA9ICh0YXJnZXQ6IGFueSwga2V5OiBzdHJpbmcpOiBzdHJpbmcgPT4ge1xuICAgIGxldCBuZXdLZXkgPSAnXycgKyBrZXk7XG4gICAgd2hpbGUgKHRhcmdldC5oYXNPd25Qcm9wZXJ0eShuZXdLZXkpKSB7XG4gICAgICAgIG5ld0tleSA9ICdfJyArIG5ld0tleTtcbiAgICB9XG5cbiAgICByZXR1cm4gbmV3S2V5O1xufTtcblxuLyoqXG4gKiBAaGlkZGVuXG4gKi9cbmV4cG9ydCBjb25zdCBzaG93TWVzc2FnZSA9IChtZXNzYWdlOiBzdHJpbmcsIGlzTWVzc2FnZVNob3duOiBib29sZWFuKTogYm9vbGVhbiA9PiB7XG4gICAgaWYgKCFpc01lc3NhZ2VTaG93biAmJiBpc0Rldk1vZGUoKSkge1xuICAgICAgICBjb25zb2xlLndhcm4obWVzc2FnZSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRydWU7XG59O1xuIl19
@@ -1,20 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare const DeprecateClass: (message: string) => <T extends new (...args: any[]) => any>(originalClass: T) => {
5
- new (...args: any[]): {
6
- [x: string]: any;
7
- };
8
- } & T;
9
- /**
10
- * @hidden
11
- */
12
- export declare function DeprecateMethod(message: string): MethodDecorator;
13
- /**
14
- * @hidden
15
- */
16
- export declare function DeprecateProperty(message: string): PropertyDecorator;
17
- /**
18
- * @hidden
19
- */
20
- export declare const showMessage: (message: string, isMessageShown: boolean) => boolean;