@dugararchit/flex-layout 13.0.0-dugararchit

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.
Files changed (226) hide show
  1. package/README.md +7 -0
  2. package/_private-utils/angular-flex-layout-_private-utils.d.ts +5 -0
  3. package/_private-utils/auto-prefixer.d.ts +24 -0
  4. package/_private-utils/index.d.ts +10 -0
  5. package/_private-utils/layout-validator.d.ts +32 -0
  6. package/_private-utils/object-extend.d.ts +15 -0
  7. package/_private-utils/package.json +10 -0
  8. package/_private-utils/testing/angular-flex-layout-_private-utils-testing.d.ts +5 -0
  9. package/_private-utils/testing/custom-matchers.d.ts +65 -0
  10. package/_private-utils/testing/dom-tools.d.ts +47 -0
  11. package/_private-utils/testing/helpers.d.ts +24 -0
  12. package/_private-utils/testing/index.d.ts +10 -0
  13. package/_private-utils/testing/package.json +10 -0
  14. package/angular-flex-layout-13.0.0-beta.38.tgz +0 -0
  15. package/angular-flex-layout.d.ts +5 -0
  16. package/core/README.md +25 -0
  17. package/core/add-alias.d.ts +14 -0
  18. package/core/angular-flex-layout-core.d.ts +5 -0
  19. package/core/base/base2.d.ts +60 -0
  20. package/core/base/index.d.ts +8 -0
  21. package/core/basis-validator/basis-validator.d.ts +13 -0
  22. package/core/breakpoints/break-point-registry.d.ts +42 -0
  23. package/core/breakpoints/break-point.d.ts +14 -0
  24. package/core/breakpoints/break-points-token.d.ts +14 -0
  25. package/core/breakpoints/breakpoint-tools.d.ts +19 -0
  26. package/core/breakpoints/data/break-points.d.ts +12 -0
  27. package/core/breakpoints/data/orientation-break-points.d.ts +23 -0
  28. package/core/breakpoints/index.d.ts +12 -0
  29. package/core/browser-provider.d.ts +24 -0
  30. package/core/match-media/index.d.ts +9 -0
  31. package/core/match-media/match-media.d.ts +59 -0
  32. package/core/match-media/mock/mock-match-media.d.ts +92 -0
  33. package/core/media-change.d.ts +30 -0
  34. package/core/media-marshaller/media-marshaller.d.ts +123 -0
  35. package/core/media-marshaller/print-hook.d.ts +95 -0
  36. package/core/media-observer/index.d.ts +8 -0
  37. package/core/media-observer/media-observer.d.ts +115 -0
  38. package/core/media-trigger/index.d.ts +8 -0
  39. package/core/media-trigger/media-trigger.d.ts +73 -0
  40. package/core/module.d.ts +11 -0
  41. package/core/multiply/multiplier.d.ts +5 -0
  42. package/core/package.json +10 -0
  43. package/core/public-api.d.ts +25 -0
  44. package/core/sass/_layout-bp.scss +76 -0
  45. package/core/style-builder/style-builder.d.ts +21 -0
  46. package/core/style-utils/style-utils.d.ts +53 -0
  47. package/core/stylesheet-map/index.d.ts +8 -0
  48. package/core/stylesheet-map/stylesheet-map.d.ts +24 -0
  49. package/core/tokens/breakpoint-token.d.ts +10 -0
  50. package/core/tokens/index.d.ts +10 -0
  51. package/core/tokens/library-config.d.ts +26 -0
  52. package/core/tokens/server-token.d.ts +15 -0
  53. package/core/utils/array.d.ts +9 -0
  54. package/core/utils/index.d.ts +9 -0
  55. package/core/utils/sort.d.ts +15 -0
  56. package/esm2020/_private-utils/angular-flex-layout-_private-utils.mjs +5 -0
  57. package/esm2020/_private-utils/auto-prefixer.mjs +65 -0
  58. package/esm2020/_private-utils/index.mjs +11 -0
  59. package/esm2020/_private-utils/layout-validator.mjs +83 -0
  60. package/esm2020/_private-utils/object-extend.mjs +30 -0
  61. package/esm2020/_private-utils/testing/angular-flex-layout-_private-utils-testing.mjs +5 -0
  62. package/esm2020/_private-utils/testing/custom-matchers.mjs +201 -0
  63. package/esm2020/_private-utils/testing/dom-tools.mjs +101 -0
  64. package/esm2020/_private-utils/testing/helpers.mjs +43 -0
  65. package/esm2020/_private-utils/testing/index.mjs +11 -0
  66. package/esm2020/angular-flex-layout.mjs +5 -0
  67. package/esm2020/core/add-alias.mjs +23 -0
  68. package/esm2020/core/angular-flex-layout-core.mjs +5 -0
  69. package/esm2020/core/base/base2.mjs +131 -0
  70. package/esm2020/core/base/index.mjs +9 -0
  71. package/esm2020/core/basis-validator/basis-validator.mjs +48 -0
  72. package/esm2020/core/breakpoints/break-point-registry.mjs +76 -0
  73. package/esm2020/core/breakpoints/break-point.mjs +2 -0
  74. package/esm2020/core/breakpoints/break-points-token.mjs +30 -0
  75. package/esm2020/core/breakpoints/breakpoint-tools.mjs +53 -0
  76. package/esm2020/core/breakpoints/data/break-points.mjs +78 -0
  77. package/esm2020/core/breakpoints/data/orientation-break-points.mjs +40 -0
  78. package/esm2020/core/breakpoints/index.mjs +13 -0
  79. package/esm2020/core/browser-provider.mjs +41 -0
  80. package/esm2020/core/match-media/index.mjs +10 -0
  81. package/esm2020/core/match-media/match-media.mjs +186 -0
  82. package/esm2020/core/match-media/mock/mock-match-media.mjs +224 -0
  83. package/esm2020/core/media-change.mjs +25 -0
  84. package/esm2020/core/media-marshaller/media-marshaller.mjs +317 -0
  85. package/esm2020/core/media-marshaller/print-hook.mjs +265 -0
  86. package/esm2020/core/media-observer/index.mjs +9 -0
  87. package/esm2020/core/media-observer/media-observer.mjs +195 -0
  88. package/esm2020/core/media-trigger/index.mjs +9 -0
  89. package/esm2020/core/media-trigger/media-trigger.mjs +188 -0
  90. package/esm2020/core/module.mjs +27 -0
  91. package/esm2020/core/multiply/multiplier.mjs +16 -0
  92. package/esm2020/core/public-api.mjs +26 -0
  93. package/esm2020/core/style-builder/style-builder.mjs +15 -0
  94. package/esm2020/core/style-utils/style-utils.mjs +174 -0
  95. package/esm2020/core/stylesheet-map/index.mjs +9 -0
  96. package/esm2020/core/stylesheet-map/stylesheet-map.mjs +59 -0
  97. package/esm2020/core/tokens/breakpoint-token.mjs +13 -0
  98. package/esm2020/core/tokens/index.mjs +11 -0
  99. package/esm2020/core/tokens/library-config.mjs +30 -0
  100. package/esm2020/core/tokens/server-token.mjs +19 -0
  101. package/esm2020/core/utils/array.mjs +12 -0
  102. package/esm2020/core/utils/index.mjs +10 -0
  103. package/esm2020/core/utils/sort.mjs +20 -0
  104. package/esm2020/extended/angular-flex-layout-extended.mjs +5 -0
  105. package/esm2020/extended/class/class.mjs +88 -0
  106. package/esm2020/extended/img-src/img-src.mjs +106 -0
  107. package/esm2020/extended/module.mjs +45 -0
  108. package/esm2020/extended/public-api.mjs +13 -0
  109. package/esm2020/extended/show-hide/show-hide.mjs +176 -0
  110. package/esm2020/extended/style/style-transforms.mjs +76 -0
  111. package/esm2020/extended/style/style.mjs +130 -0
  112. package/esm2020/flex/angular-flex-layout-flex.mjs +5 -0
  113. package/esm2020/flex/flex/flex.mjs +291 -0
  114. package/esm2020/flex/flex-align/flex-align.mjs +80 -0
  115. package/esm2020/flex/flex-fill/flex-fill.mjs +50 -0
  116. package/esm2020/flex/flex-offset/flex-offset.mjs +121 -0
  117. package/esm2020/flex/flex-order/flex-order.mjs +66 -0
  118. package/esm2020/flex/layout/layout.mjs +86 -0
  119. package/esm2020/flex/layout-align/layout-align.mjs +194 -0
  120. package/esm2020/flex/layout-gap/layout-gap.mjs +282 -0
  121. package/esm2020/flex/module.mjs +62 -0
  122. package/esm2020/flex/public-api.mjs +17 -0
  123. package/esm2020/grid/align-columns/align-columns.mjs +137 -0
  124. package/esm2020/grid/align-rows/align-rows.mjs +119 -0
  125. package/esm2020/grid/angular-flex-layout-grid.mjs +5 -0
  126. package/esm2020/grid/area/area.mjs +67 -0
  127. package/esm2020/grid/areas/areas.mjs +86 -0
  128. package/esm2020/grid/auto/auto.mjs +89 -0
  129. package/esm2020/grid/column/column.mjs +67 -0
  130. package/esm2020/grid/columns/columns.mjs +96 -0
  131. package/esm2020/grid/gap/gap.mjs +85 -0
  132. package/esm2020/grid/grid-align/grid-align.mjs +111 -0
  133. package/esm2020/grid/module.mjs +73 -0
  134. package/esm2020/grid/public-api.mjs +20 -0
  135. package/esm2020/grid/row/row.mjs +67 -0
  136. package/esm2020/grid/rows/rows.mjs +96 -0
  137. package/esm2020/module.mjs +64 -0
  138. package/esm2020/public-api.mjs +20 -0
  139. package/esm2020/server/angular-flex-layout-server.mjs +5 -0
  140. package/esm2020/server/module.mjs +22 -0
  141. package/esm2020/server/public-api.mjs +10 -0
  142. package/esm2020/server/server-match-media.mjs +151 -0
  143. package/esm2020/server/server-provider.mjs +140 -0
  144. package/esm2020/version.mjs +11 -0
  145. package/extended/README.md +18 -0
  146. package/extended/angular-flex-layout-extended.d.ts +5 -0
  147. package/extended/class/class.d.ts +38 -0
  148. package/extended/img-src/img-src.d.ts +51 -0
  149. package/extended/module.d.ts +16 -0
  150. package/extended/package.json +10 -0
  151. package/extended/public-api.d.ts +12 -0
  152. package/extended/show-hide/show-hide.d.ts +61 -0
  153. package/extended/style/style-transforms.d.ts +36 -0
  154. package/extended/style/style.d.ts +45 -0
  155. package/fesm2015/angular-flex-layout-_private-utils-testing.mjs +357 -0
  156. package/fesm2015/angular-flex-layout-_private-utils-testing.mjs.map +1 -0
  157. package/fesm2015/angular-flex-layout-_private-utils.mjs +193 -0
  158. package/fesm2015/angular-flex-layout-_private-utils.mjs.map +1 -0
  159. package/fesm2015/angular-flex-layout-core.mjs +2331 -0
  160. package/fesm2015/angular-flex-layout-core.mjs.map +1 -0
  161. package/fesm2015/angular-flex-layout-extended.mjs +621 -0
  162. package/fesm2015/angular-flex-layout-extended.mjs.map +1 -0
  163. package/fesm2015/angular-flex-layout-flex.mjs +1206 -0
  164. package/fesm2015/angular-flex-layout-flex.mjs.map +1 -0
  165. package/fesm2015/angular-flex-layout-grid.mjs +1047 -0
  166. package/fesm2015/angular-flex-layout-grid.mjs.map +1 -0
  167. package/fesm2015/angular-flex-layout-server.mjs +324 -0
  168. package/fesm2015/angular-flex-layout-server.mjs.map +1 -0
  169. package/fesm2015/angular-flex-layout.mjs +94 -0
  170. package/fesm2015/angular-flex-layout.mjs.map +1 -0
  171. package/fesm2020/angular-flex-layout-_private-utils-testing.mjs +357 -0
  172. package/fesm2020/angular-flex-layout-_private-utils-testing.mjs.map +1 -0
  173. package/fesm2020/angular-flex-layout-_private-utils.mjs +192 -0
  174. package/fesm2020/angular-flex-layout-_private-utils.mjs.map +1 -0
  175. package/fesm2020/angular-flex-layout-core.mjs +2304 -0
  176. package/fesm2020/angular-flex-layout-core.mjs.map +1 -0
  177. package/fesm2020/angular-flex-layout-extended.mjs +612 -0
  178. package/fesm2020/angular-flex-layout-extended.mjs.map +1 -0
  179. package/fesm2020/angular-flex-layout-flex.mjs +1198 -0
  180. package/fesm2020/angular-flex-layout-flex.mjs.map +1 -0
  181. package/fesm2020/angular-flex-layout-grid.mjs +1047 -0
  182. package/fesm2020/angular-flex-layout-grid.mjs.map +1 -0
  183. package/fesm2020/angular-flex-layout-server.mjs +322 -0
  184. package/fesm2020/angular-flex-layout-server.mjs.map +1 -0
  185. package/fesm2020/angular-flex-layout.mjs +92 -0
  186. package/fesm2020/angular-flex-layout.mjs.map +1 -0
  187. package/flex/README.md +19 -0
  188. package/flex/angular-flex-layout-flex.d.ts +5 -0
  189. package/flex/flex/flex.d.ts +59 -0
  190. package/flex/flex-align/flex-align.d.ts +32 -0
  191. package/flex/flex-fill/flex-fill.d.ts +33 -0
  192. package/flex/flex-offset/flex-offset.d.ts +44 -0
  193. package/flex/flex-order/flex-order.d.ts +34 -0
  194. package/flex/layout/layout.d.ts +43 -0
  195. package/flex/layout-align/layout-align.d.ts +49 -0
  196. package/flex/layout-gap/layout-gap.d.ts +65 -0
  197. package/flex/module.d.ts +21 -0
  198. package/flex/package.json +10 -0
  199. package/flex/public-api.d.ts +16 -0
  200. package/grid/README.md +19 -0
  201. package/grid/align-columns/align-columns.d.ts +39 -0
  202. package/grid/align-rows/align-rows.d.ts +39 -0
  203. package/grid/angular-flex-layout-grid.d.ts +5 -0
  204. package/grid/area/area.d.ts +34 -0
  205. package/grid/areas/areas.d.ts +41 -0
  206. package/grid/auto/auto.d.ts +41 -0
  207. package/grid/column/column.d.ts +34 -0
  208. package/grid/columns/columns.d.ts +43 -0
  209. package/grid/gap/gap.d.ts +42 -0
  210. package/grid/grid-align/grid-align.d.ts +37 -0
  211. package/grid/module.d.ts +23 -0
  212. package/grid/package.json +10 -0
  213. package/grid/public-api.d.ts +19 -0
  214. package/grid/row/row.d.ts +34 -0
  215. package/grid/rows/rows.d.ts +43 -0
  216. package/module.d.ts +30 -0
  217. package/package.json +100 -0
  218. package/public-api.d.ts +18 -0
  219. package/server/README.md +23 -0
  220. package/server/angular-flex-layout-server.d.ts +5 -0
  221. package/server/module.d.ts +6 -0
  222. package/server/package.json +10 -0
  223. package/server/public-api.d.ts +9 -0
  224. package/server/server-match-media.d.ts +61 -0
  225. package/server/server-provider.d.ts +44 -0
  226. package/version.d.ts +10 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ Angular Flex-Layout
2
+ =======
3
+
4
+ The sources for this package are in the main [Angular Flex-Layout](https://github.com/angular/flex-layout) repo.
5
+ Please file issues and pull requests against that repo.
6
+
7
+ License: MIT
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@angular/flex-layout/_private-utils" />
5
+ export * from './index';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /**
9
+ * Applies CSS prefixes to appropriate style keys.
10
+ *
11
+ * Note: `-ms-`, `-moz` and `-webkit-box` are no longer supported. e.g.
12
+ * {
13
+ * display: -webkit-flex; NEW - Safari 6.1+. iOS 7.1+, BB10
14
+ * display: flex; NEW, Spec - Firefox, Chrome, Opera
15
+ * // display: -webkit-box; OLD - iOS 6-, Safari 3.1-6, BB7
16
+ * // display: -ms-flexbox; TWEENER - IE 10
17
+ * // display: -moz-flexbox; OLD - Firefox
18
+ * }
19
+ */
20
+ export declare function applyCssPrefixes(target: {
21
+ [key: string]: any | null;
22
+ }): {
23
+ [key: string]: any;
24
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export * from './auto-prefixer';
9
+ export * from './layout-validator';
10
+ export * from './object-extend';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export declare const INLINE = "inline";
9
+ export declare const LAYOUT_VALUES: string[];
10
+ /**
11
+ * Validate the direction|'direction wrap' value and then update the host's inline flexbox styles
12
+ */
13
+ export declare function buildLayoutCSS(value: string): {
14
+ display: string;
15
+ 'box-sizing': string;
16
+ 'flex-direction': string;
17
+ 'flex-wrap': string | null;
18
+ };
19
+ /**
20
+ * Validate the value to be one of the acceptable value options
21
+ * Use default fallback of 'row'
22
+ */
23
+ export declare function validateValue(value: string): [string, string, boolean];
24
+ /**
25
+ * Determine if the validated, flex-direction value specifies
26
+ * a horizontal/row flow.
27
+ */
28
+ export declare function isFlowHorizontal(value: string): boolean;
29
+ /**
30
+ * Convert layout-wrap='<value>' to expected flex-wrap style
31
+ */
32
+ export declare function validateWrapValue(value: string): string;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /**
9
+ * Extends an object with the *enumerable* and *own* properties of one or more source objects,
10
+ * similar to Object.assign.
11
+ *
12
+ * @param dest The object which will have properties copied to it.
13
+ * @param sources The source objects from which properties will be copied.
14
+ */
15
+ export declare function extendObject(dest: any, ...sources: any[]): any;
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/angular-flex-layout-_private-utils.mjs",
3
+ "es2020": "../fesm2020/angular-flex-layout-_private-utils.mjs",
4
+ "esm2020": "../esm2020/_private-utils/angular-flex-layout-_private-utils.mjs",
5
+ "fesm2020": "../fesm2020/angular-flex-layout-_private-utils.mjs",
6
+ "fesm2015": "../fesm2015/angular-flex-layout-_private-utils.mjs",
7
+ "typings": "angular-flex-layout-_private-utils.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@angular/flex-layout/_private-utils"
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@angular/flex-layout/_private-utils/testing" />
5
+ export * from './index';
@@ -0,0 +1,65 @@
1
+ /// <reference types="jasmine" />
2
+ export declare const expect: (actual: any) => NgMatchers;
3
+ /**
4
+ * Jasmine matchers that check Angular specific conditions.
5
+ */
6
+ export interface NgMatchers extends jasmine.Matchers<any> {
7
+ /**
8
+ * Expect the element to have exactly the given text.
9
+ *
10
+ * ## Example
11
+ *
12
+ * {@example testing/ts/matchers.ts region='toHaveText'}
13
+ */
14
+ toHaveText(expected: string): boolean;
15
+ /**
16
+ * Compare key:value pairs as matching EXACTLY
17
+ */
18
+ toHaveMap(expected: {
19
+ [k: string]: string;
20
+ }): boolean;
21
+ /**
22
+ * Expect the element to have the given CSS class.
23
+ *
24
+ * ## Example
25
+ *
26
+ * {@example testing/ts/matchers.ts region='toHaveCssClass'}
27
+ */
28
+ toHaveCssClass(expected: string): boolean;
29
+ /**
30
+ * Expect the element to have the given pairs of attribute name and attribute value
31
+ */
32
+ toHaveAttributes(expected: {
33
+ [k: string]: string;
34
+ }): boolean;
35
+ /**
36
+ * Expect the element to have the given CSS styles injected INLINE
37
+ *
38
+ * ## Example
39
+ *
40
+ * {@example testing/ts/matchers.ts region='toHaveStyle'}
41
+ */
42
+ toHaveStyle(expected: {
43
+ [k: string]: string;
44
+ } | string): boolean;
45
+ /**
46
+ * Expect the element to have the given CSS inline OR computed styles.
47
+ *
48
+ * ## Example
49
+ *
50
+ * {@example testing/ts/matchers.ts region='toHaveStyle'}
51
+ */
52
+ toHaveStyle(expected: {
53
+ [k: string]: string;
54
+ } | string): boolean;
55
+ /**
56
+ * Invert the matchers.
57
+ */
58
+ not: NgMatchers;
59
+ }
60
+ /**
61
+ * NOTE: These custom JASMINE Matchers are used only
62
+ * in the Karma/Jasmine testing for the Layout Directives
63
+ * in `src/lib/flex/api`
64
+ */
65
+ export declare const customMatchers: jasmine.CustomMatcherFactories;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /**
9
+ * Exported DOM accessor utility functions
10
+ */
11
+ export declare const _dom: {
12
+ hasStyle: typeof hasStyle;
13
+ getDistributedNodes: typeof getDistributedNodes;
14
+ getShadowRoot: typeof getShadowRoot;
15
+ getText: typeof getText;
16
+ getStyle: typeof getStyle;
17
+ childNodes: typeof childNodes;
18
+ childNodesAsList: typeof childNodesAsList;
19
+ hasClass: typeof hasClass;
20
+ hasAttribute: typeof hasAttribute;
21
+ getAttribute: typeof getAttribute;
22
+ hasShadowRoot: typeof hasShadowRoot;
23
+ isCommentNode: typeof isCommentNode;
24
+ isElementNode: typeof isElementNode;
25
+ isPresent: typeof isPresent;
26
+ isShadowRoot: typeof isShadowRoot;
27
+ tagName: typeof tagName;
28
+ lastElementChild: typeof lastElementChild;
29
+ };
30
+ declare function getStyle(element: any, stylename: string): string;
31
+ declare function hasStyle(element: any, styleName: string, styleValue?: string, inlineOnly?: boolean): boolean;
32
+ declare function getDistributedNodes(el: HTMLElement): Node[];
33
+ declare function getShadowRoot(el: HTMLElement): DocumentFragment;
34
+ declare function getText(el: Node): string;
35
+ declare function childNodesAsList(el: Node): any[];
36
+ declare function hasClass(element: any, className: string): boolean;
37
+ declare function hasAttribute(element: any, attributeName: string): boolean;
38
+ declare function getAttribute(element: any, attributeName: string): string;
39
+ declare function childNodes(el: any): Node[];
40
+ declare function hasShadowRoot(node: any): boolean;
41
+ declare function isCommentNode(node: Node): boolean;
42
+ declare function isElementNode(node: Node): boolean;
43
+ declare function isShadowRoot(node: any): boolean;
44
+ declare function isPresent(obj: any): boolean;
45
+ declare function tagName(element: any): string;
46
+ declare function lastElementChild(element: any): Node | null;
47
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { Type, DebugElement } from '@angular/core';
9
+ import { ComponentFixture } from '@angular/core/testing';
10
+ export declare type ComponentClazzFn = () => Type<any>;
11
+ /**
12
+ * Function generator that captures a Component Type accessor and enables
13
+ * `createTestComponent()` to be reusable for *any* captured Component class.
14
+ */
15
+ export declare function makeCreateTestComponent(getClass: ComponentClazzFn): (template: string, styles?: any) => ComponentFixture<Type<any>>;
16
+ /**
17
+ *
18
+ */
19
+ export declare function expectNativeEl(fixture: ComponentFixture<any>, instanceOptions?: any): any;
20
+ /**
21
+ *
22
+ */
23
+ export declare function expectEl(debugEl: DebugElement): any;
24
+ export declare function queryFor(fixture: ComponentFixture<any>, selector: string): DebugElement[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export * from './custom-matchers';
9
+ export * from './dom-tools';
10
+ export * from './helpers';
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../fesm2015/angular-flex-layout-_private-utils-testing.mjs",
3
+ "es2020": "../../fesm2020/angular-flex-layout-_private-utils-testing.mjs",
4
+ "esm2020": "../../esm2020/_private-utils/testing/angular-flex-layout-_private-utils-testing.mjs",
5
+ "fesm2020": "../../fesm2020/angular-flex-layout-_private-utils-testing.mjs",
6
+ "fesm2015": "../../fesm2015/angular-flex-layout-_private-utils-testing.mjs",
7
+ "typings": "angular-flex-layout-_private-utils-testing.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@angular/flex-layout/_private-utils/testing"
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@angular/flex-layout" />
5
+ export * from './public-api';
package/core/README.md ADDED
@@ -0,0 +1,25 @@
1
+ The `core` entrypoint contains all of the common utilities to build Layout
2
+ components. Its primary exports are the `MediaQuery` utility
3
+ `MediaObserver` and the module that encapsulates the imports of these
4
+ providers, the `CoreModule`, and the base directive for layout
5
+ components, `BaseDirective2`. These utilities can be imported separately
6
+ from the root module to take advantage of tree shaking.
7
+
8
+ ```typescript
9
+ import {NgModule} from '@angular/core';
10
+ import {CoreModule} from '@angular/flex-layout/core';
11
+
12
+ @NgModule(({
13
+ imports: [
14
+ ... other imports here
15
+ CoreModule,
16
+ ]
17
+ }))
18
+ export class AppModule {}
19
+ ```
20
+
21
+ ```typescript
22
+ import {BaseDirective2} from '@angular/flex-layout/core';
23
+
24
+ export class NewLayoutDirective extends BaseDirective2 {}
25
+ ```
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { MediaChange } from './media-change';
9
+ import { BreakPoint } from './breakpoints/break-point';
10
+ /**
11
+ * For the specified MediaChange, make sure it contains the breakpoint alias
12
+ * and suffix (if available).
13
+ */
14
+ export declare function mergeAlias(dest: MediaChange, source: BreakPoint | null): MediaChange;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@angular/flex-layout/core" />
5
+ export * from './public-api';
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
9
+ import { Observable, Subject } from 'rxjs';
10
+ import { StyleDefinition, StyleUtils } from '../style-utils/style-utils';
11
+ import { StyleBuilder } from '../style-builder/style-builder';
12
+ import { MediaMarshaller } from '../media-marshaller/media-marshaller';
13
+ import * as i0 from "@angular/core";
14
+ export declare abstract class BaseDirective2 implements OnChanges, OnDestroy {
15
+ protected elementRef: ElementRef;
16
+ protected styleBuilder: StyleBuilder;
17
+ protected styler: StyleUtils;
18
+ protected marshal: MediaMarshaller;
19
+ protected DIRECTIVE_KEY: string;
20
+ protected inputs: string[];
21
+ /** The most recently used styles for the builder */
22
+ protected mru: StyleDefinition;
23
+ protected destroySubject: Subject<void>;
24
+ protected currentValue: any;
25
+ /** Access to host element's parent DOM node */
26
+ protected get parentElement(): HTMLElement | null;
27
+ /** Access to the HTMLElement for the directive */
28
+ protected get nativeElement(): HTMLElement;
29
+ /** Access to the activated value for the directive */
30
+ get activatedValue(): string;
31
+ set activatedValue(value: string);
32
+ /** Cache map for style computation */
33
+ protected styleCache: Map<string, StyleDefinition>;
34
+ protected constructor(elementRef: ElementRef, styleBuilder: StyleBuilder, styler: StyleUtils, marshal: MediaMarshaller);
35
+ /** For @Input changes */
36
+ ngOnChanges(changes: SimpleChanges): void;
37
+ ngOnDestroy(): void;
38
+ /** Register with central marshaller service */
39
+ protected init(extraTriggers?: Observable<any>[]): void;
40
+ /** Add styles to the element using predefined style builder */
41
+ protected addStyles(input: string, parent?: Object): void;
42
+ /** Remove generated styles from an element using predefined style builder */
43
+ protected clearStyles(): void;
44
+ /** Force trigger style updates on DOM element */
45
+ protected triggerUpdate(): void;
46
+ /**
47
+ * Determine the DOM element's Flexbox flow (flex-direction).
48
+ *
49
+ * Check inline style first then check computed (stylesheet) style.
50
+ * And optionally add the flow value to element's inline style.
51
+ */
52
+ protected getFlexFlowDirection(target: HTMLElement, addIfMissing?: boolean): string;
53
+ protected hasWrap(target: HTMLElement): boolean;
54
+ /** Applies styles given via string pair or object map to the directive element */
55
+ protected applyStyleToElement(style: StyleDefinition, value?: string | number, element?: HTMLElement): void;
56
+ protected setValue(val: any, bp: string): void;
57
+ protected updateWithValue(input: string): void;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseDirective2, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseDirective2, never, never, {}, {}, never>;
60
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export * from './base2';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /**
9
+ * The flex API permits 3 or 1 parts of the value:
10
+ * - `flex-grow flex-shrink flex-basis`, or
11
+ * - `flex-basis`
12
+ */
13
+ export declare function validateBasis(basis: string, grow?: string, shrink?: string): string[];
@@ -0,0 +1,42 @@
1
+ import { BreakPoint } from './break-point';
2
+ import * as i0 from "@angular/core";
3
+ export declare type OptionalBreakPoint = BreakPoint | null;
4
+ /**
5
+ * Registry of 1..n MediaQuery breakpoint ranges
6
+ * This is published as a provider and may be overridden from custom, application-specific ranges
7
+ *
8
+ */
9
+ export declare class BreakPointRegistry {
10
+ readonly items: BreakPoint[];
11
+ constructor(list: BreakPoint[]);
12
+ /**
13
+ * Search breakpoints by alias (e.g. gt-xs)
14
+ */
15
+ findByAlias(alias: string): OptionalBreakPoint;
16
+ findByQuery(query: string): OptionalBreakPoint;
17
+ /**
18
+ * Get all the breakpoints whose ranges could overlapping `normal` ranges;
19
+ * e.g. gt-sm overlaps md, lg, and xl
20
+ */
21
+ get overlappings(): BreakPoint[];
22
+ /**
23
+ * Get list of all registered (non-empty) breakpoint aliases
24
+ */
25
+ get aliases(): string[];
26
+ /**
27
+ * Aliases are mapped to properties using suffixes
28
+ * e.g. 'gt-sm' for property 'layout' uses suffix 'GtSm'
29
+ * for property layoutGtSM.
30
+ */
31
+ get suffixes(): string[];
32
+ /**
33
+ * Memoized lookup using custom predicate function
34
+ */
35
+ private findWithPredicate;
36
+ /**
37
+ * Memoized BreakPoint Lookups
38
+ */
39
+ private readonly findByMap;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreakPointRegistry, never>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<BreakPointRegistry>;
42
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export interface BreakPoint {
9
+ mediaQuery: string;
10
+ alias: string;
11
+ suffix?: string;
12
+ overlapping?: boolean;
13
+ priority?: number;
14
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import { BreakPoint } from './break-point';
10
+ /**
11
+ * Injection token unique to the flex-layout library.
12
+ * Use this token when build a custom provider (see below).
13
+ */
14
+ export declare const BREAKPOINTS: InjectionToken<BreakPoint[]>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { BreakPoint } from './break-point';
9
+ /**
10
+ * For each breakpoint, ensure that a Suffix is defined;
11
+ * fallback to UpperCamelCase the unique Alias value
12
+ */
13
+ export declare function validateSuffixes(list: BreakPoint[]): BreakPoint[];
14
+ /**
15
+ * Merge a custom breakpoint list with the default list based on unique alias values
16
+ * - Items are added if the alias is not in the default list
17
+ * - Items are merged with the custom override if the alias exists in the default list
18
+ */
19
+ export declare function mergeByAlias(defaults: BreakPoint[], custom?: BreakPoint[]): BreakPoint[];
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { BreakPoint } from '../break-point';
9
+ /**
10
+ * NOTE: Smaller ranges have HIGHER priority since the match is more specific
11
+ */
12
+ export declare const DEFAULT_BREAKPOINTS: BreakPoint[];
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { BreakPoint } from '../break-point';
9
+ export declare const ScreenTypes: {
10
+ HANDSET: string;
11
+ TABLET: string;
12
+ WEB: string;
13
+ HANDSET_PORTRAIT: string;
14
+ TABLET_PORTRAIT: string;
15
+ WEB_PORTRAIT: string;
16
+ HANDSET_LANDSCAPE: string;
17
+ TABLET_LANDSCAPE: string;
18
+ WEB_LANDSCAPE: string;
19
+ };
20
+ /**
21
+ * Extended Breakpoints for handset/tablets with landscape or portrait orientations
22
+ */
23
+ export declare const ORIENTATION_BREAKPOINTS: BreakPoint[];
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export * from './data/break-points';
9
+ export * from './data/orientation-break-points';
10
+ export * from './break-point';
11
+ export * from './break-point-registry';
12
+ export * from './break-points-token';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ /**
10
+ * Find all of the server-generated stylings, if any, and remove them
11
+ * This will be in the form of inline classes and the style block in the
12
+ * head of the DOM
13
+ */
14
+ export declare function removeStyles(_document: Document, platformId: Object): () => void;
15
+ /**
16
+ * Provider to remove SSR styles on the browser
17
+ */
18
+ export declare const BROWSER_PROVIDER: {
19
+ provide: InjectionToken<(() => void)[]>;
20
+ useFactory: typeof removeStyles;
21
+ deps: InjectionToken<Object>[];
22
+ multi: boolean;
23
+ };
24
+ export declare const CLASS_NAME = "flex-layout-";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ export * from './match-media';
9
+ export * from './mock/mock-match-media';