@angular/material 15.0.0-next.2 → 15.0.0-next.3

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 (67) hide show
  1. package/core/_core.scss +1 -6
  2. package/esm2020/autocomplete/autocomplete.mjs +2 -1
  3. package/esm2020/chips/chip-set.mjs +2 -1
  4. package/esm2020/core/version.mjs +1 -1
  5. package/esm2020/expansion/accordion.mjs +2 -1
  6. package/esm2020/legacy-chips/chip-list.mjs +3 -4
  7. package/esm2020/legacy-list/selection-list.mjs +3 -4
  8. package/esm2020/list/selection-list.mjs +3 -4
  9. package/esm2020/menu/menu.mjs +4 -6
  10. package/esm2020/select/select.mjs +4 -3
  11. package/esm2020/tabs/paginated-tab-header.mjs +3 -2
  12. package/fesm2015/autocomplete.mjs +2 -0
  13. package/fesm2015/autocomplete.mjs.map +1 -1
  14. package/fesm2015/chips.mjs +2 -0
  15. package/fesm2015/chips.mjs.map +1 -1
  16. package/fesm2015/core.mjs +1 -1
  17. package/fesm2015/core.mjs.map +1 -1
  18. package/fesm2015/expansion.mjs +2 -0
  19. package/fesm2015/expansion.mjs.map +1 -1
  20. package/fesm2015/legacy-chips.mjs +3 -3
  21. package/fesm2015/legacy-chips.mjs.map +1 -1
  22. package/fesm2015/legacy-list.mjs +3 -3
  23. package/fesm2015/legacy-list.mjs.map +1 -1
  24. package/fesm2015/list.mjs +3 -3
  25. package/fesm2015/list.mjs.map +1 -1
  26. package/fesm2015/menu.mjs +4 -5
  27. package/fesm2015/menu.mjs.map +1 -1
  28. package/fesm2015/select.mjs +4 -2
  29. package/fesm2015/select.mjs.map +1 -1
  30. package/fesm2015/tabs.mjs +3 -1
  31. package/fesm2015/tabs.mjs.map +1 -1
  32. package/fesm2020/autocomplete.mjs +1 -0
  33. package/fesm2020/autocomplete.mjs.map +1 -1
  34. package/fesm2020/chips.mjs +1 -0
  35. package/fesm2020/chips.mjs.map +1 -1
  36. package/fesm2020/core.mjs +1 -1
  37. package/fesm2020/core.mjs.map +1 -1
  38. package/fesm2020/expansion.mjs +1 -0
  39. package/fesm2020/expansion.mjs.map +1 -1
  40. package/fesm2020/legacy-chips.mjs +2 -3
  41. package/fesm2020/legacy-chips.mjs.map +1 -1
  42. package/fesm2020/legacy-list.mjs +2 -3
  43. package/fesm2020/legacy-list.mjs.map +1 -1
  44. package/fesm2020/list.mjs +2 -3
  45. package/fesm2020/list.mjs.map +1 -1
  46. package/fesm2020/menu.mjs +3 -5
  47. package/fesm2020/menu.mjs.map +1 -1
  48. package/fesm2020/select.mjs +3 -2
  49. package/fesm2020/select.mjs.map +1 -1
  50. package/fesm2020/tabs.mjs +2 -1
  51. package/fesm2020/tabs.mjs.map +1 -1
  52. package/legacy-core/_core.scss +1 -7
  53. package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +1 -1
  54. package/legacy-prebuilt-themes/legacy-indigo-pink.css +1 -1
  55. package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +1 -1
  56. package/legacy-prebuilt-themes/legacy-purple-green.css +1 -1
  57. package/menu/index.d.ts +0 -2
  58. package/package.json +2 -2
  59. package/prebuilt-themes/deeppurple-amber.css +1 -1
  60. package/prebuilt-themes/indigo-pink.css +1 -1
  61. package/prebuilt-themes/pink-bluegrey.css +1 -1
  62. package/prebuilt-themes/purple-green.css +1 -1
  63. package/schematics/ng-add/index.js +1 -1
  64. package/schematics/ng-add/index.mjs +1 -1
  65. package/schematics/ng-update/index_bundled.js +19 -5
  66. package/schematics/ng-update/index_bundled.js.map +2 -2
  67. package/schematics/ng-update/ng_update_index_metadata.json +1 -1
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~15.0.0-next.2`;
21
+ const fallbackMaterialVersionRange = `~15.0.0-next.2+sha-d9b545a`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~15.0.0-next.2`;
21
+ const fallbackMaterialVersionRange = `~15.0.0-next.2+sha-d9b545a`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -9192,8 +9192,7 @@ var require_constants = __commonJS({
9192
9192
  "all-component-themes": "all-legacy-component-themes",
9193
9193
  "all-component-colors": "all-legacy-component-colors",
9194
9194
  "all-component-typographies": "all-legacy-component-typographies",
9195
- "private-all-component-densities": "private-all-legacy-component-densities",
9196
- "core": "legacy-core"
9195
+ "private-all-component-densities": "private-all-legacy-component-densities"
9197
9196
  };
9198
9197
  exports.CUSTOM_SASS_FUNCTION_RENAMINGS = {
9199
9198
  "define-typography-config": "define-legacy-typography-config"
@@ -9258,12 +9257,27 @@ var require_legacy_components_v15 = __commonJS({
9258
9257
  return;
9259
9258
  }
9260
9259
  _handleAtInclude(node, filePath, namespace) {
9261
- var _a;
9260
+ var _a, _b;
9262
9261
  if (!namespace || !((_a = node.source) == null ? void 0 : _a.start)) {
9263
9262
  return;
9264
9263
  }
9265
- const mixinName = node.params.split(/[.(;]/)[1];
9266
- if (constants_1.CUSTOM_SASS_MIXIN_RENAMINGS[mixinName]) {
9264
+ const original = node.toString();
9265
+ const [atInclude, delim, mixinName, ...rest] = original.split(/([.(;])/);
9266
+ if (mixinName === "core") {
9267
+ const updatedFunctionsRest = Object.keys(constants_1.CUSTOM_SASS_FUNCTION_RENAMINGS).reduce((s, r) => s.replace(new RegExp(r, "g"), constants_1.CUSTOM_SASS_FUNCTION_RENAMINGS[r]), rest.join(""));
9268
+ const includeTypography = [atInclude, delim, mixinName, updatedFunctionsRest].join("").replace(`${namespace}.core`, `${namespace}.all-legacy-component-typographies`);
9269
+ const indent = ((_b = original.match(/^\s*/)) == null ? void 0 : _b[0]) || "";
9270
+ this._replaceAt(filePath, node.source.start.offset, {
9271
+ old: original,
9272
+ new: [
9273
+ `${indent}// TODO(v15): As of v15 ${namespace}.legacy-core no longer includes default typography styles.`,
9274
+ `${indent}// Instead an explicit typography include has been automatically added here.`,
9275
+ `${indent}// If you add typography styles elsewhere, you may want to remove this.`,
9276
+ `${includeTypography};`,
9277
+ `${indent}@include ${namespace}.legacy-core()`
9278
+ ].join("\n")
9279
+ });
9280
+ } else if (constants_1.CUSTOM_SASS_MIXIN_RENAMINGS[mixinName]) {
9267
9281
  this._replaceAt(filePath, node.source.start.offset, {
9268
9282
  old: `${namespace}.${mixinName}`,
9269
9283
  new: `${namespace}.${constants_1.CUSTOM_SASS_MIXIN_RENAMINGS[mixinName]}`