@breadstone/mosaik-elements-angular 0.0.79 → 0.0.81

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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 0.0.81 (2025-07-30)
2
+
3
+ ### 🚀 Features
4
+
5
+ - enhance HTML code generation with new abstract methods and self-closing tag support feat: update icon registration to support aliases for icons style: adjust drawer component styles to use line thickness variable chore: add line thickness property to drawer theme tokens in Cosmopolitan, Joy, and Retro themes ([0174ad7acb](https://github.com/RueDeRennes/mosaik/commit/0174ad7acb))
6
+ - update release version to 0.0.80 in package.json ([96a94fca93](https://github.com/RueDeRennes/mosaik/commit/96a94fca93))
7
+
8
+ ## 0.0.80 (2025-07-30)
9
+
10
+ This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
11
+
1
12
  ## 0.0.79 (2025-07-30)
2
13
 
3
14
  ### 🚀 Features
@@ -55107,6 +55107,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
55107
55107
  class IconRegistry {
55108
55108
  // #region Fields
55109
55109
  _icons;
55110
+ _aliases;
55110
55111
  // #endregion
55111
55112
  // #region Ctor
55112
55113
  /**
@@ -55116,6 +55117,7 @@ class IconRegistry {
55116
55117
  */
55117
55118
  constructor() {
55118
55119
  this._icons = {};
55120
+ this._aliases = {};
55119
55121
  }
55120
55122
  // #endregion
55121
55123
  // #region Properties
@@ -55133,16 +55135,28 @@ class IconRegistry {
55133
55135
  /**
55134
55136
  * Registers a set of icons with the registry.
55135
55137
  *
55136
- * @param icons - An object where keys are icon names and values are their SVG data.
55138
+ * @param icons - An object mapping icon names to their SVG data or an object containing data and optional aliases.
55137
55139
  * @throws Will throw an error if the icon name or data is not provided.
55138
55140
  * @public
55139
55141
  */
55140
55142
  register(icons) {
55141
- Object.entries(icons).forEach(([name, data]) => {
55142
- if (!name || !data) {
55143
+ Object.entries(icons).forEach(([name, value]) => {
55144
+ if (!name || !value) {
55143
55145
  throw new Error('[IconRegistry]: Icon name and data content must be provided.');
55144
55146
  }
55145
- this._icons[name] = data;
55147
+ if (typeof value === 'object' && 'data' in value) {
55148
+ this._icons[name] = value.data;
55149
+ if (value.alias) {
55150
+ const aliases = Array.isArray(value.alias) ? value.alias : [value.alias];
55151
+ this._aliases[name] = aliases;
55152
+ aliases.forEach((alias) => {
55153
+ this._icons[alias] = value.data;
55154
+ });
55155
+ }
55156
+ }
55157
+ else {
55158
+ this._icons[name] = value;
55159
+ }
55146
55160
  });
55147
55161
  }
55148
55162
  /**