@angular-wave/angular.ts 0.0.9 → 0.0.11

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.
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@angular-wave/angular.ts",
3
3
  "license": "MIT",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "type": "module",
6
- "main": "dist/angular-ts.cjs.js",
7
- "module": "dist/angular-ts.esm.js",
6
+ "main": "dist/angular-ts.esm.js",
8
7
  "browser": "dist/angular-ts.umd.js",
9
8
  "repository": {
10
9
  "type": "git",
package/rollup.config.js CHANGED
@@ -24,7 +24,7 @@ export default [
24
24
  {
25
25
  input: 'src/index.js',
26
26
  external: ['ms'],
27
- output: { file: pkg.module, format: 'es' },
27
+ output: { file: pkg.main, format: 'es' },
28
28
  plugins: [terser()],
29
29
  },
30
30
  ];
@@ -910,7 +910,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
910
910
  }
911
911
  }
912
912
 
913
- /**
913
+ /**
914
914
  * @ngdoc method
915
915
  * @name $compile.directive.Attributes#$observe
916
916
  * @kind function
@@ -977,18 +977,6 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
977
977
  };
978
978
  const NG_PREFIX_BINDING = /^ng(Attr|Prop|On)([A-Z].*)$/;
979
979
  const MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;
980
-
981
- compile.$$addScopeInfo = debugInfoEnabled
982
- ? ($element, scope, isolated, noTemplate) => {
983
- const dataName = isolated
984
- ? noTemplate
985
- ? "$isolateScopeNoTemplate"
986
- : "$isolateScope"
987
- : "$scope";
988
- $element.data(dataName, scope);
989
- }
990
- : () => {};
991
-
992
980
  return compile;
993
981
 
994
982
  //= ===============================
@@ -1047,9 +1035,11 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
1047
1035
  }
1048
1036
 
1049
1037
  options = options || {};
1050
- let { parentBoundTranscludeFn } = options;
1051
- const { transcludeControllers } = options;
1052
- const { futureParentElement } = options;
1038
+ let {
1039
+ transcludeControllers,
1040
+ parentBoundTranscludeFn,
1041
+ futureParentElement,
1042
+ } = options;
1053
1043
 
1054
1044
  // When `parentBoundTranscludeFn` is passed, it is a
1055
1045
  // `controllersBoundTransclude` function (it was previously passed
@@ -1096,9 +1086,6 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
1096
1086
  );
1097
1087
  }
1098
1088
  }
1099
-
1100
- compile.$$addScopeInfo($linkNode, scope);
1101
-
1102
1089
  if (cloneConnectFn) cloneConnectFn($linkNode, scope);
1103
1090
  if (compositeLinkFn)
1104
1091
  compositeLinkFn(
@@ -1253,7 +1240,6 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
1253
1240
  if (nodeLinkFn) {
1254
1241
  if (nodeLinkFn.scope) {
1255
1242
  childScope = scope.$new();
1256
- compile.$$addScopeInfo(jqLite(node), childScope);
1257
1243
  } else {
1258
1244
  childScope = scope;
1259
1245
  }
@@ -2119,19 +2105,6 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
2119
2105
  }
2120
2106
 
2121
2107
  if (newIsolateScopeDirective) {
2122
- // Initialize isolate scope bindings for new isolate scope directive.
2123
- compile.$$addScopeInfo(
2124
- $element,
2125
- isolateScope,
2126
- true,
2127
- !(
2128
- templateDirective &&
2129
- (templateDirective === newIsolateScopeDirective ||
2130
- templateDirective ===
2131
- newIsolateScopeDirective.$$originalDirective)
2132
- ),
2133
- );
2134
-
2135
2108
  isolateScope.$$isolateBindings =
2136
2109
  newIsolateScopeDirective.$$isolateBindings;
2137
2110
  scopeBindingInfo = initializeDirectiveBindings(
@@ -1044,7 +1044,7 @@ class Scope {
1044
1044
  * Application code can register a `$destroy` event handler that will give it a chance to
1045
1045
  * perform any necessary cleanup.
1046
1046
  *
1047
- * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
1047
+ * Note that, in AngularJS, there is also a `$destroy` event, which can be used to
1048
1048
  * clean up DOM bindings before an element is removed from the DOM.
1049
1049
  */
1050
1050
  $destroy() {
@@ -518,33 +518,33 @@ _ {@link module:ngMessages Click here} to learn more about`ngMessages`and`ngMess
518
518
  _ @param {string} ngMessageExp|whenExp an expression value corresponding to the message key.
519
519
  _/
520
520
 
521
- /**
522
- * @ngdoc directive
523
- * @name ngMessageDefault
524
- * @restrict AE
525
- * @scope
526
- *
527
- * @description
528
- * `ngMessageDefault` is a directive with the purpose to show and hide a default message for
529
- * {@link directive:ngMessages}, when none of provided messages matches.
530
- *
531
- * More information about using `ngMessageDefault` can be found in the
532
- * {@link module:ngMessages `ngMessages` module documentation}.
533
- *
534
- * @usage
535
- * ```html
536
- * <!-- using attribute directives -->
537
- * <ANY ng-messages="expression" role="alert">
538
- * <ANY ng-message="stringValue">...</ANY>
539
- * <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
540
- * <ANY ng-message-default>...</ANY>
541
- * </ANY>
542
- *
543
- * <!-- or by using element directives -->
544
- * <ng-messages for="expression" role="alert">
545
- * <ng-message when="stringValue">...</ng-message>
546
- * <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
547
- * <ng-message-default>...</ng-message-default>
548
- * </ng-messages>
549
- *
550
- */
521
+ /**
522
+ * @ngdoc directive
523
+ * @name ngMessageDefault
524
+ * @restrict AE
525
+ * @scope
526
+ *
527
+ * @description
528
+ * `ngMessageDefault` is a directive with the purpose to show and hide a default message for
529
+ * {@link directive:ngMessages}, when none of provided messages matches.
530
+ *
531
+ * More information about using `ngMessageDefault` can be found in the
532
+ * {@link module:ngMessages `ngMessages` module documentation}.
533
+ *
534
+ * @usage
535
+ * ```html
536
+ * <!-- using attribute directives -->
537
+ * <ANY ng-messages="expression" role="alert">
538
+ * <ANY ng-message="stringValue">...</ANY>
539
+ * <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
540
+ * <ANY ng-message-default>...</ANY>
541
+ * </ANY>
542
+ *
543
+ * <!-- or by using element directives -->
544
+ * <ng-messages for="expression" role="alert">
545
+ * <ng-message when="stringValue">...</ng-message>
546
+ * <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
547
+ * <ng-message-default>...</ng-message-default>
548
+ * </ng-messages>
549
+ *
550
+ */
package/src/jqLite.js CHANGED
@@ -281,6 +281,8 @@ export function JQLite(element) {
281
281
  }
282
282
  export var jqLite = JQLite;
283
283
 
284
+ jqLite.CACHE = CACHE;
285
+
284
286
  /**
285
287
  * @param {Element} element
286
288
  * @param {boolean} [onlyDescendants]
@@ -827,7 +829,7 @@ function specialMouseHandlerWrapper(target, event, handler) {
827
829
  forEach(
828
830
  {
829
831
  removeData: jqLiteRemoveData,
830
- on: function jqLiteOn(element, type, fn, unsupported) {
832
+ on: (element, type, fn, unsupported) => {
831
833
  if (isDefined(unsupported))
832
834
  throw jqLiteMinErr(
833
835
  "onargs",