@ecodev/natural 61.0.2 → 61.1.0
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/esm2022/lib/classes/utility.mjs +15 -1
- package/esm2022/lib/modules/common/services/seo.service.mjs +1 -1
- package/esm2022/lib/modules/dropdown-components/type-date/type-date.component.mjs +2 -2
- package/esm2022/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +2 -2
- package/esm2022/lib/modules/file/component/file.component.mjs +1 -1
- package/esm2022/lib/modules/file/file.service.mjs +1 -1
- package/esm2022/lib/modules/icon/icon.directive.mjs +1 -1
- package/esm2022/lib/modules/logger/error-handler.mjs +1 -1
- package/esm2022/lib/modules/matomo/matomo.service.mjs +1 -1
- package/esm2022/lib/modules/panels/panels.service.mjs +2 -2
- package/esm2022/lib/modules/search/dropdown-container/dropdown-container.component.mjs +1 -1
- package/esm2022/lib/modules/sidenav/sidenav.service.mjs +1 -1
- package/esm2022/lib/services/persistence.service.mjs +1 -1
- package/fesm2022/ecodev-natural.mjs +15 -1
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/utility.d.ts +8 -0
- package/package.json +1 -1
package/lib/classes/utility.d.ts
CHANGED
|
@@ -45,6 +45,14 @@ export declare function replaceObjectKeepingReference(obj: Literal | null, newOb
|
|
|
45
45
|
* @param hexBgColor string in hexadecimals representing the background color
|
|
46
46
|
*/
|
|
47
47
|
export declare function getForegroundColor(hexBgColor: string): 'black' | 'white';
|
|
48
|
+
/**
|
|
49
|
+
* Convert RGB color to hexadecimal color
|
|
50
|
+
*
|
|
51
|
+
* ```ts
|
|
52
|
+
* rgbToHex('rgb(255, 00, 255)'); // '#FF00FF'
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function rgbToHex(rgb: string): string;
|
|
48
56
|
/**
|
|
49
57
|
* During lodash.mergeWith, overrides arrays
|
|
50
58
|
*/
|