chore: internal import updates to improve bundling (#21400)

* chore: internal import updates to improve bundling

- Rename keyboard.ts so it has a good filename after custom element bundling
- Import util fns directly instead of from top level index
- Do not export with *

* chore(angular): bump ng-packagr

Co-authored-by: Mike Hartington <mikehartington@gmail.com>
This commit is contained in:
Adam Bradley
2020-05-29 10:04:12 -05:00
committed by GitHub
parent 53fc8e37c8
commit 323e15003f
18 changed files with 24 additions and 31 deletions

View File

@ -1,5 +1,7 @@
import { AnimationKeyFrames } from './animation-interface';
let animationPrefix: string | undefined;
/**
* Web Animations requires hyphenated CSS properties
* to be written in camelCase when animating
@ -33,8 +35,6 @@ const convertCamelCaseToHypen = (str: string) => {
return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
};
let animationPrefix: string | undefined;
export const getAnimationPrefix = (el: HTMLElement): string => {
if (animationPrefix === undefined) {
const supportsUnprefixed = (el.style as any).animationName !== undefined;