@leanix/components 0.4.679 → 0.4.681

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.
@@ -1109,6 +1109,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
1109
1109
  * - `fullSpaceFixed`: Sets position to fixed with full height and width => fills window
1110
1110
  * (or ancestor with new rendering context, created, for example, with `transform: translate(0, 0)`
1111
1111
  * - `fadeBackground`: Sets background to 60% transparent white. TODO: Always use for fullSpace* classes and remove.
1112
+ *
1113
+ * @deprecated Use the `ui5-busy-indicator` component instead.
1112
1114
  */
1113
1115
  class SpinnerComponent {
1114
1116
  constructor() {
@@ -1817,6 +1819,9 @@ function getContrastColor(colorHex) {
1817
1819
  }
1818
1820
  }
1819
1821
  function shorthandHexHandle(hex) {
1822
+ if (!hex || typeof hex !== 'string') {
1823
+ return '';
1824
+ }
1820
1825
  const shorthandRegex = /^(#)([a-f\d])([a-f\d])([a-f\d])$/i;
1821
1826
  const shorthand = hex.match(shorthandRegex);
1822
1827
  if (shorthand) {
@@ -11561,9 +11566,10 @@ function formatInterpolatedInputProperty(propertyName, value) {
11561
11566
  let interpolatedValue = undefined;
11562
11567
  switch (typeof value) {
11563
11568
  case 'string':
11564
- interpolatedValue = `'${value.replace("'", "\\'")}'`;
11569
+ interpolatedValue = `${value.replace("'", "\\'")}`;
11565
11570
  break;
11566
11571
  case 'object':
11572
+ propertyName = `[${propertyName}]`;
11567
11573
  interpolatedValue = safeStringify(value)
11568
11574
  .replace(/'/g, '\u2019')
11569
11575
  .replace(/\\"/g, '\u201D')
@@ -11577,13 +11583,16 @@ function formatInterpolatedInputProperty(propertyName, value) {
11577
11583
  case 'bigint':
11578
11584
  case 'number':
11579
11585
  case 'boolean':
11586
+ case 'function':
11587
+ propertyName = `[${propertyName}]`;
11588
+ interpolatedValue = value;
11589
+ break;
11580
11590
  case 'symbol':
11581
11591
  case 'undefined':
11582
- case 'function':
11583
11592
  default:
11584
11593
  interpolatedValue = value;
11585
11594
  }
11586
- return interpolatedValue != null ? `[${propertyName}]="${interpolatedValue}"` : '';
11595
+ return interpolatedValue != null ? `${propertyName}="${interpolatedValue}"` : '';
11587
11596
  }
11588
11597
 
11589
11598
  /**