Skip to content

Commit c2c1500

Browse files
committed
fix(tree-shaking): marking mkenum /*@__PURE__*/
1 parent e0e5cf7 commit c2c1500

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

projects/igniteui-angular/src/lib/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const copyDescriptors = (obj) => {
7171
return Object.create(
7272
Object.getPrototypeOf(obj),
7373
Object.getOwnPropertyDescriptors(obj)
74-
);
74+
);
7575
}
7676
}
7777

projects/igniteui-angular/src/lib/grids/common/enums.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mkenum } from '../../core/utils';
55
* - quickFilter: Default mode with a filter row UI between the column headers and the first row of records.
66
* - excelStyleFilter: Filter mode where an Excel-style filter is used.
77
*/
8-
export const FilterMode = mkenum({
8+
export const FilterMode = /*@__PURE__*/mkenum({
99
quickFilter: 'quickFilter',
1010
excelStyleFilter: 'excelStyleFilter'
1111
});
@@ -16,7 +16,7 @@ export type FilterMode = (typeof FilterMode)[keyof typeof FilterMode];
1616
* - top: Default value; Summary rows are displayed at the top of the grid.
1717
* - bottom: Summary rows are displayed at the bottom of the grid.
1818
*/
19-
export const GridSummaryPosition = mkenum({
19+
export const GridSummaryPosition = /*@__PURE__*/mkenum({
2020
top: 'top',
2121
bottom: 'bottom'
2222
});
@@ -28,7 +28,7 @@ export type GridSummaryPosition = (typeof GridSummaryPosition)[keyof typeof Grid
2828
* - childLevelsOnly: Summaries are calculated only for child levels.
2929
* - rootAndChildLevels: Default value; Summaries are calculated for both root and child levels.
3030
*/
31-
export const GridSummaryCalculationMode = mkenum({
31+
export const GridSummaryCalculationMode = /*@__PURE__*/mkenum({
3232
rootLevelOnly: 'rootLevelOnly',
3333
childLevelsOnly: 'childLevelsOnly',
3434
rootAndChildLevels: 'rootAndChildLevels'
@@ -42,8 +42,8 @@ export type GridSummaryCalculationMode = (typeof GridSummaryCalculationMode)[key
4242
*/
4343
export type GridValidationTrigger = 'change' | 'blur' ;
4444

45-
/**
46-
* Type representing the type of the target object (elements of the grid) for keydown (fired when a key is pressed) events in the grid.
45+
/**
46+
* Type representing the type of the target object (elements of the grid) for keydown (fired when a key is pressed) events in the grid.
4747
* - 'dataCell': Represents a data cell within the grid. It contains and displays individual data values
4848
* - 'summaryCell': Summary cells display aggregated/summarized data at the bottom of the grid. They provide insights like total record count, min/max values, etc.
4949
* - 'groupRow': Group row within the grid. Group rows are used to group related data rows by columns. Contains the related group expression, level, sub-records and group value.
@@ -66,7 +66,7 @@ export type GridKeydownTargetType =
6666
* - 'multiple': Default cell selection mode. More than one element can be selected at a time.
6767
* - 'multipleCascade': Similar to multiple selection. It is used in hierarchical or tree grids. Allows selection not only to an individual item but also all its related or nested items in a single action
6868
*/
69-
export const GridSelectionMode = mkenum({
69+
export const GridSelectionMode = /*@__PURE__*/mkenum({
7070
none: 'none',
7171
single: 'single',
7272
multiple: 'multiple',
@@ -75,7 +75,7 @@ export const GridSelectionMode = mkenum({
7575
export type GridSelectionMode = (typeof GridSelectionMode)[keyof typeof GridSelectionMode];
7676

7777
/** Enumeration representing different column display order options. */
78-
export const ColumnDisplayOrder = mkenum({
78+
export const ColumnDisplayOrder = /*@__PURE__*/mkenum({
7979
Alphabetical: 'Alphabetical',
8080
DisplayOrder: 'DisplayOrder'
8181
});

projects/igniteui-angular/src/lib/slider/slider.common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface ISliderValueChangeEventArgs {
5656
value: number | IRangeSliderValue;
5757
}
5858

59-
export const IgxSliderType = mkenum({
59+
export const IgxSliderType = /*@__PURE__*/mkenum({
6060
/**
6161
* Slider with single thumb.
6262
*/
@@ -68,7 +68,7 @@ export const IgxSliderType = mkenum({
6868
});
6969
export type IgxSliderType = (typeof IgxSliderType)[keyof typeof IgxSliderType];
7070

71-
export const SliderHandle = mkenum({
71+
export const SliderHandle = /*@__PURE__*/mkenum({
7272
FROM: 'from',
7373
TO: 'to'
7474
});
@@ -77,7 +77,7 @@ export type SliderHandle = (typeof SliderHandle)[keyof typeof SliderHandle];
7777
/**
7878
* Slider Tick labels Orientation
7979
*/
80-
export const TickLabelsOrientation = mkenum({
80+
export const TickLabelsOrientation = /*@__PURE__*/mkenum({
8181
Horizontal: 'horizontal',
8282
TopToBottom: 'toptobottom',
8383
BottomToTop: 'bottomtotop'
@@ -87,7 +87,7 @@ export type TickLabelsOrientation = (typeof TickLabelsOrientation)[keyof typeof
8787
/**
8888
* Slider Ticks orientation
8989
*/
90-
export const TicksOrientation = mkenum({
90+
export const TicksOrientation = /*@__PURE__*/mkenum({
9191
Top: 'top',
9292
Bottom: 'bottom',
9393
Mirror: 'mirror'

0 commit comments

Comments
 (0)