-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13493 from IgniteUI/utils-i18n-refactor
refactor(i18n, util): tree shaking i18n
- Loading branch information
Showing
147 changed files
with
2,547 additions
and
2,928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<!-- Toolbar --> | ||
<div role="banner"> | ||
<router-outlet></router-outlet> | ||
<igx-chip [resourceStrings]="chipStrings">Chip</igx-chip> | ||
<!-- <router-outlet></router-outlet> --> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { ChipResourceStringsBG } from 'igniteui-angular-i18n'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent { | ||
protected chipStrings = ChipResourceStringsBG; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './src/public-api'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"lib": { | ||
"entryFile": "src/public-api.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export const enum EaseIn { | ||
Quad = `cubic-bezier(0.550, 0.085, 0.680, 0.530)`, | ||
Cubic = `cubic-bezier(0.550, 0.055, 0.675, 0.190)`, | ||
Quart = `cubic-bezier(0.895, 0.030, 0.685, 0.220)`, | ||
Quint = `cubic-bezier(0.755, 0.050, 0.855, 0.060)`, | ||
Sine = `cubic-bezier(0.470, 0.000, 0.745, 0.715)`, | ||
Expo = `cubic-bezier(0.950, 0.050, 0.795, 0.035)`, | ||
Circ = `cubic-bezier(0.600, 0.040, 0.980, 0.335)`, | ||
Back = `cubic-bezier(0.600, -0.280, 0.735, 0.045)` | ||
} | ||
|
||
export const enum EaseOut { | ||
Quad = `cubic-bezier(0.250, 0.460, 0.450, 0.940)`, | ||
Cubic = `cubic-bezier(0.215, 0.610, 0.355, 1.000)`, | ||
Quart = `cubic-bezier(0.165, 0.840, 0.440, 1.000)`, | ||
Quint = `cubic-bezier(0.230, 1.000, 0.320, 1.000)`, | ||
Sine = `cubic-bezier(0.390, 0.575, 0.565, 1.000)`, | ||
Expo = `cubic-bezier(0.190, 1.000, 0.220, 1.000)`, | ||
Circ = `cubic-bezier(0.075, 0.820, 0.165, 1.000)`, | ||
Back = `cubic-bezier(0.175, 0.885, 0.320, 1.275)` | ||
} | ||
|
||
export const enum EaseInOut { | ||
Quad = `cubic-bezier(0.455, 0.030, 0.515, 0.955)`, | ||
Cubic = `cubic-bezier(0.645, 0.045, 0.355, 1.000)`, | ||
Quart = `cubic-bezier(0.770, 0.000, 0.175, 1.000)`, | ||
Quint = `cubic-bezier(0.860, 0.000, 0.070, 1.000)`, | ||
Sine = `cubic-bezier(0.445, 0.050, 0.550, 0.950)`, | ||
Expo = `cubic-bezier(1.000, 0.000, 0.000, 1.000)`, | ||
Circ = `cubic-bezier(0.785, 0.135, 0.150, 0.860)`, | ||
Back = `cubic-bezier(0.680, -0.550, 0.265, 1.550)` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { animate, animation, AnimationMetadata, style } from '@angular/animations'; | ||
import { EaseOut } from '../easings'; | ||
|
||
const base: AnimationMetadata[] = [ | ||
/*@__PURE__*/style({ | ||
opacity: `{{startOpacity}}` | ||
}), | ||
/*@__PURE__*/animate( | ||
`{{duration}} {{delay}} {{easing}}`, | ||
/*@__PURE__*/style({ | ||
opacity: `{{endOpacity}}` | ||
}) | ||
) | ||
]; | ||
|
||
export const fadeIn = /*@__PURE__*/animation(base, { | ||
params: { | ||
delay: '0s', | ||
duration: '350ms', | ||
easing: EaseOut.Sine, | ||
endOpacity: 1, | ||
startOpacity: 0 | ||
} | ||
}); | ||
|
||
export const fadeOut = /*@__PURE__*/animation(base, { | ||
params: { | ||
delay: '0s', | ||
duration: '350ms', | ||
easing: EaseOut.Sine, | ||
endOpacity: 0, | ||
startOpacity: 1 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.