Skip to content

Commit dcd5f91

Browse files
committed
Reorganize and rename
1 parent 2b14cd2 commit dcd5f91

File tree

119 files changed

+217
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+217
-260
lines changed

dist/angular-ts.cjs.js

+2-24
Original file line numberDiff line numberDiff line change
@@ -6434,7 +6434,6 @@ function $SceProvider() {
64346434
*
64356435
*/
64366436

6437-
64386437
/*
64396438
* A collection of directives that allows creation of custom event handlers that are defined as
64406439
* AngularJS expressions and are compiled and executed within the current scope.
@@ -11652,9 +11651,6 @@ function htmlAnchorDirective() {
1165211651
};
1165311652
}
1165411653

11655-
/* eslint-disable no-use-before-define */
11656-
11657-
1165811654
const nullFormCtrl = {
1165911655
$addControl: () => {},
1166011656
$getControls: valueFn([]),
@@ -12872,7 +12868,6 @@ function defaults(dst, src) {
1287212868
});
1287312869
}
1287412870

12875-
/* eslint-disable no-use-before-define */
1287612871
const ngModelMinErr = minErr("ngModel");
1287712872

1287812873
/**
@@ -14212,9 +14207,6 @@ const ngModelDirective = [
1421214207
}),
1421314208
];
1421414209

14215-
/* eslint-disable no-unused-vars */
14216-
/* eslint-disable no-use-before-define */
14217-
1421814210
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
1421914211
const ISO_DATE_REGEXP =
1422014212
/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;
@@ -16772,13 +16764,6 @@ const ngBindHtmlDirective = [
1677216764
},
1677316765
];
1677416766

16775-
/* exported
16776-
ngClassDirective,
16777-
ngClassEvenDirective,
16778-
ngClassOddDirective
16779-
*/
16780-
16781-
1678216767
function classDirective(name, selector) {
1678316768
// eslint-disable-next-line no-param-reassign
1678416769
name = `ngClass${name}`;
@@ -17027,8 +17012,6 @@ const ngClassOddDirective = classDirective("Odd", 0);
1702717012
*/
1702817013
const ngClassEvenDirective = classDirective("Even", 1);
1702917014

17030-
/* eslint-disable no-param-reassign */
17031-
1703217015
function ngDirective(directive) {
1703317016
if (isFunction(directive)) {
1703417017
directive = {
@@ -20339,7 +20322,6 @@ function AnchorScrollProvider() {
2033920322
}
2034020323

2034120324
const $animateMinErr = minErr("$animate");
20342-
const ELEMENT_NODE$1 = 1;
2034320325
const NG_ANIMATE_CLASSNAME$1 = "ng-animate";
2034420326

2034520327
function mergeClasses(a, b) {
@@ -20355,7 +20337,7 @@ function extractElementNode$1(element) {
2035520337
const { length } = element;
2035620338
for (let i = 0; i < length; i++) {
2035720339
const elm = element[i];
20358-
if (elm.nodeType === ELEMENT_NODE$1) {
20340+
if (elm.nodeType === Node.ELEMENT_NODE) {
2035920341
return elm;
2036020342
}
2036120343
}
@@ -22242,8 +22224,6 @@ function $LocationProvider() {
2224222224
];
2224322225
}
2224422226

22245-
/* eslint-disable no-use-before-define */
22246-
2224722227
// This variable should be used *only* inside the cacheState function.
2224822228
let lastCachedState = null;
2224922229

@@ -23417,8 +23397,6 @@ function $ExceptionHandlerProvider() {
2341723397
// };
2341823398
// }
2341923399

23420-
/* eslint-disable no-use-before-define */
23421-
2342223400
/**
2342323401
* @ngdoc filter
2342423402
* @name filter
@@ -31691,7 +31669,7 @@ function $TimeoutProvider() {
3169131669
/**
3169231670
*
3169331671
* @description
31694-
* Private service to sanitize uris for links and images. Used by $compile and $sanitize.
31672+
* Private service to sanitize uris for links and images. Used by $compile.
3169531673
*/
3169631674
function SanitizeUriProvider() {
3169731675
let aHrefSanitizationTrustedUrlList = /^\s*(https?|s?ftp|mailto|tel|file):/;

dist/angular-ts.esm.js

+2-24
Original file line numberDiff line numberDiff line change
@@ -6432,7 +6432,6 @@ function $SceProvider() {
64326432
*
64336433
*/
64346434

6435-
64366435
/*
64376436
* A collection of directives that allows creation of custom event handlers that are defined as
64386437
* AngularJS expressions and are compiled and executed within the current scope.
@@ -11650,9 +11649,6 @@ function htmlAnchorDirective() {
1165011649
};
1165111650
}
1165211651

11653-
/* eslint-disable no-use-before-define */
11654-
11655-
1165611652
const nullFormCtrl = {
1165711653
$addControl: () => {},
1165811654
$getControls: valueFn([]),
@@ -12870,7 +12866,6 @@ function defaults(dst, src) {
1287012866
});
1287112867
}
1287212868

12873-
/* eslint-disable no-use-before-define */
1287412869
const ngModelMinErr = minErr("ngModel");
1287512870

1287612871
/**
@@ -14210,9 +14205,6 @@ const ngModelDirective = [
1421014205
}),
1421114206
];
1421214207

14213-
/* eslint-disable no-unused-vars */
14214-
/* eslint-disable no-use-before-define */
14215-
1421614208
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
1421714209
const ISO_DATE_REGEXP =
1421814210
/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;
@@ -16770,13 +16762,6 @@ const ngBindHtmlDirective = [
1677016762
},
1677116763
];
1677216764

16773-
/* exported
16774-
ngClassDirective,
16775-
ngClassEvenDirective,
16776-
ngClassOddDirective
16777-
*/
16778-
16779-
1678016765
function classDirective(name, selector) {
1678116766
// eslint-disable-next-line no-param-reassign
1678216767
name = `ngClass${name}`;
@@ -17025,8 +17010,6 @@ const ngClassOddDirective = classDirective("Odd", 0);
1702517010
*/
1702617011
const ngClassEvenDirective = classDirective("Even", 1);
1702717012

17028-
/* eslint-disable no-param-reassign */
17029-
1703017013
function ngDirective(directive) {
1703117014
if (isFunction(directive)) {
1703217015
directive = {
@@ -20337,7 +20320,6 @@ function AnchorScrollProvider() {
2033720320
}
2033820321

2033920322
const $animateMinErr = minErr("$animate");
20340-
const ELEMENT_NODE$1 = 1;
2034120323
const NG_ANIMATE_CLASSNAME$1 = "ng-animate";
2034220324

2034320325
function mergeClasses(a, b) {
@@ -20353,7 +20335,7 @@ function extractElementNode$1(element) {
2035320335
const { length } = element;
2035420336
for (let i = 0; i < length; i++) {
2035520337
const elm = element[i];
20356-
if (elm.nodeType === ELEMENT_NODE$1) {
20338+
if (elm.nodeType === Node.ELEMENT_NODE) {
2035720339
return elm;
2035820340
}
2035920341
}
@@ -22240,8 +22222,6 @@ function $LocationProvider() {
2224022222
];
2224122223
}
2224222224

22243-
/* eslint-disable no-use-before-define */
22244-
2224522225
// This variable should be used *only* inside the cacheState function.
2224622226
let lastCachedState = null;
2224722227

@@ -23415,8 +23395,6 @@ function $ExceptionHandlerProvider() {
2341523395
// };
2341623396
// }
2341723397

23418-
/* eslint-disable no-use-before-define */
23419-
2342023398
/**
2342123399
* @ngdoc filter
2342223400
* @name filter
@@ -31689,7 +31667,7 @@ function $TimeoutProvider() {
3168931667
/**
3169031668
*
3169131669
* @description
31692-
* Private service to sanitize uris for links and images. Used by $compile and $sanitize.
31670+
* Private service to sanitize uris for links and images. Used by $compile.
3169331671
*/
3169431672
function SanitizeUriProvider() {
3169531673
let aHrefSanitizationTrustedUrlList = /^\s*(https?|s?ftp|mailto|tel|file):/;

dist/angular-ts.umd.js

+2-24
Original file line numberDiff line numberDiff line change
@@ -6437,7 +6437,6 @@
64376437
*
64386438
*/
64396439

6440-
64416440
/*
64426441
* A collection of directives that allows creation of custom event handlers that are defined as
64436442
* AngularJS expressions and are compiled and executed within the current scope.
@@ -11655,9 +11654,6 @@
1165511654
};
1165611655
}
1165711656

11658-
/* eslint-disable no-use-before-define */
11659-
11660-
1166111657
const nullFormCtrl = {
1166211658
$addControl: () => {},
1166311659
$getControls: valueFn([]),
@@ -12875,7 +12871,6 @@
1287512871
});
1287612872
}
1287712873

12878-
/* eslint-disable no-use-before-define */
1287912874
const ngModelMinErr = minErr("ngModel");
1288012875

1288112876
/**
@@ -14215,9 +14210,6 @@
1421514210
}),
1421614211
];
1421714212

14218-
/* eslint-disable no-unused-vars */
14219-
/* eslint-disable no-use-before-define */
14220-
1422114213
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
1422214214
const ISO_DATE_REGEXP =
1422314215
/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;
@@ -16775,13 +16767,6 @@
1677516767
},
1677616768
];
1677716769

16778-
/* exported
16779-
ngClassDirective,
16780-
ngClassEvenDirective,
16781-
ngClassOddDirective
16782-
*/
16783-
16784-
1678516770
function classDirective(name, selector) {
1678616771
// eslint-disable-next-line no-param-reassign
1678716772
name = `ngClass${name}`;
@@ -17030,8 +17015,6 @@
1703017015
*/
1703117016
const ngClassEvenDirective = classDirective("Even", 1);
1703217017

17033-
/* eslint-disable no-param-reassign */
17034-
1703517018
function ngDirective(directive) {
1703617019
if (isFunction(directive)) {
1703717020
directive = {
@@ -20342,7 +20325,6 @@
2034220325
}
2034320326

2034420327
const $animateMinErr = minErr("$animate");
20345-
const ELEMENT_NODE$1 = 1;
2034620328
const NG_ANIMATE_CLASSNAME$1 = "ng-animate";
2034720329

2034820330
function mergeClasses(a, b) {
@@ -20358,7 +20340,7 @@
2035820340
const { length } = element;
2035920341
for (let i = 0; i < length; i++) {
2036020342
const elm = element[i];
20361-
if (elm.nodeType === ELEMENT_NODE$1) {
20343+
if (elm.nodeType === Node.ELEMENT_NODE) {
2036220344
return elm;
2036320345
}
2036420346
}
@@ -22245,8 +22227,6 @@
2224522227
];
2224622228
}
2224722229

22248-
/* eslint-disable no-use-before-define */
22249-
2225022230
// This variable should be used *only* inside the cacheState function.
2225122231
let lastCachedState = null;
2225222232

@@ -23420,8 +23400,6 @@
2342023400
// };
2342123401
// }
2342223402

23423-
/* eslint-disable no-use-before-define */
23424-
2342523403
/**
2342623404
* @ngdoc filter
2342723405
* @name filter
@@ -31694,7 +31672,7 @@
3169431672
/**
3169531673
*
3169631674
* @description
31697-
* Private service to sanitize uris for links and images. Used by $compile and $sanitize.
31675+
* Private service to sanitize uris for links and images. Used by $compile.
3169831676
*/
3169931677
function SanitizeUriProvider() {
3170031678
let aHrefSanitizationTrustedUrlList = /^\s*(https?|s?ftp|mailto|tel|file):/;
File renamed without changes.

src/ngAnimate/animateChildrenDirective.js renamed to src/animations/animateChildrenDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isString } from "../ng/utils";
1+
import { isString } from "../core/utils";
22
import { NG_ANIMATE_CHILDREN_DATA } from "./shared";
33

44
/**

src/ngAnimate/animateCss.js renamed to src/animations/animateCss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { jqLite } from "../jqLite";
2-
import { forEach, isDefined, isArray } from "../ng/utils";
2+
import { forEach, isDefined, isArray } from "../core/utils";
33
import {
44
TRANSITION_DURATION_PROP,
55
TRANSITION_DELAY_PROP,

src/ngAnimate/animateCssDriver.js renamed to src/animations/animateCssDriver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { jqLite } from "../jqLite";
2-
import { forEach, isString } from "../ng/utils";
2+
import { forEach, isString } from "../core/utils";
33
import { getDomNode } from "./shared";
44

55
export const $$AnimateCssDriverProvider = [

src/ngAnimate/animateJs.js renamed to src/animations/animateJs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { jqLite } from "../jqLite";
2-
import { forEach, isArray, isObject, isFunction } from "../ng/utils";
2+
import { forEach, isArray, isObject, isFunction } from "../core/utils";
33
import {
44
applyAnimationClassesFactory,
55
applyAnimationStyles,

src/ngAnimate/animateJsDriver.js renamed to src/animations/animateJsDriver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { forEach } from "../ng/utils";
1+
import { forEach } from "../core/utils";
22

33
export const $$AnimateJsDriverProvider = [
44
"$$animationProvider",

src/ngAnimate/animateQueue.js renamed to src/animations/animateQueue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
isElement,
99
isDefined,
1010
extend,
11-
} from "../ng/utils";
11+
} from "../core/utils";
1212
import {
1313
ELEMENT_NODE,
1414
NG_ANIMATE_CHILDREN_DATA,

src/ngAnimate/animation.js renamed to src/animations/animation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { jqLite } from "../jqLite";
2-
import { forEach, mergeClasses } from "../ng/utils";
2+
import { forEach, mergeClasses } from "../core/utils";
33
import {
44
NG_ANIMATE_CLASSNAME,
55
PREPARE_CLASS_SUFFIX,
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/ngAnimate/shared.js renamed to src/animations/shared.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { forEach, isArray, isString, minErr, extend } from "../ng/utils";
1+
import { forEach, isArray, isString, minErr, extend } from "../core/utils";
22
import { jqLite } from "../jqLite";
33

44
export const ELEMENT_NODE = 1;

src/ng/animate.js renamed to src/core/animate.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import { jqLite, jqLiteAddClass, jqLiteRemoveClass } from "../jqLite";
1212

1313
const $animateMinErr = minErr("$animate");
14-
const ELEMENT_NODE = 1;
1514
const NG_ANIMATE_CLASSNAME = "ng-animate";
1615

1716
function mergeClasses(a, b) {
@@ -27,7 +26,7 @@ function extractElementNode(element) {
2726
const { length } = element;
2827
for (let i = 0; i < length; i++) {
2928
const elm = element[i];
30-
if (elm.nodeType === ELEMENT_NODE) {
29+
if (elm.nodeType === Node.ELEMENT_NODE) {
3130
return elm;
3231
}
3332
}
File renamed without changes.
File renamed without changes.

src/ng/compile.js renamed to src/core/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242

4343
import { SCE_CONTEXTS } from "./sce";
4444
import { PREFIX_REGEXP } from "../constants";
45-
import { createEventDirective } from "./directive/ngEventDirs";
45+
import { createEventDirective } from "../directive/ngEventDirs";
4646

4747
/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
4848
*
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)