@leanix/components 0.4.622 → 0.4.624

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.
@@ -1,4 +1,4 @@
1
- import { makeEnvironmentProviders, APP_INITIALIZER } from '@angular/core';
1
+ import { provideAppInitializer } from '@angular/core';
2
2
  import { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';
3
3
  import { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';
4
4
  export { IconComponent } from '@ui5/webcomponents-ngx/main/icon';
@@ -30,16 +30,10 @@ async function registerIconsWithUi5() {
30
30
  * });
31
31
  * ```
32
32
  */
33
- const provideUi5 = () => makeEnvironmentProviders([
34
- {
35
- provide: APP_INITIALIZER,
36
- multi: true,
37
- useValue: async () => {
38
- setDefaultFontLoading(false);
39
- await registerIconsWithUi5();
40
- }
41
- }
42
- ]);
33
+ const provideUi5 = () => provideAppInitializer(async () => {
34
+ setDefaultFontLoading(false);
35
+ await registerIconsWithUi5();
36
+ });
43
37
 
44
38
  /**
45
39
  * All UI5-related components / directives supported by the SAP LeanIX Design System.
@@ -1 +1 @@
1
- {"version":3,"file":"leanix-components-ui5.mjs","sources":["../../../../libs/components/ui5/icons/register-icons.ts","../../../../libs/components/ui5/ui5.provider.ts","../../../../libs/components/ui5/index.ts","../../../../libs/components/ui5/leanix-components-ui5.ts"],"sourcesContent":["// eslint-disable-next-line no-restricted-imports\nimport { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';\n\n/**\n * Registers icon libraries with UI5.\n */\nexport async function registerIconsWithUi5() {\n await Promise.all([\n import('@ui5/webcomponents-icons-business-suite/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons-tnt/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons/dist/AllIcons.js')\n ]);\n\n registerIconLoader('lx-icons', () => import('./lx-icons.json'));\n}\n","import { APP_INITIALIZER, makeEnvironmentProviders } from '@angular/core';\n// eslint-disable-next-line no-restricted-imports\nimport { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';\nimport { registerIconsWithUi5 } from './icons/register-icons';\n\n/**\n * Sets up providers necessary to use UI5 components in the application.\n *\n * @usageNotes\n *\n * Basic example of how you can add UI5 to your application:\n * ```ts\n * import { provideUi5 } from '@leanix/components/ui5';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [provideUi5()]\n * });\n * ```\n */\nexport const provideUi5 = () =>\n makeEnvironmentProviders([\n {\n provide: APP_INITIALIZER,\n multi: true,\n useValue: async () => {\n setDefaultFontLoading(false);\n await registerIconsWithUi5();\n }\n }\n ]);\n","/**\n * All UI5-related components / directives supported by the SAP LeanIX Design System.\n */\nexport * from './ui5.provider';\n\n// UI5 Components\n// eslint-disable-next-line no-restricted-imports\nexport { IconComponent } from '@ui5/webcomponents-ngx/main/icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAGA;;AAEG;AACI,eAAe,oBAAoB,GAAA;IACxC,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,OAAO,0DAA0D,CAAC;QAClE,OAAO,+CAA+C,CAAC;QACvD,OAAO,2CAA2C;AACnD,KAAA,CAAC;IAEF,kBAAkB,CAAC,UAAU,EAAE,MAAM,OAAO,+CAAiB,CAAC,CAAC;AACjE;;ACTA;;;;;;;;;;;;;AAaG;MACU,UAAU,GAAG,MACxB,wBAAwB,CAAC;AACvB,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,YAAW;YACnB,qBAAqB,CAAC,KAAK,CAAC;YAC5B,MAAM,oBAAoB,EAAE;;AAE/B;AACF,CAAA;;AC7BH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"leanix-components-ui5.mjs","sources":["../../../../libs/components/ui5/icons/register-icons.ts","../../../../libs/components/ui5/ui5.provider.ts","../../../../libs/components/ui5/index.ts","../../../../libs/components/ui5/leanix-components-ui5.ts"],"sourcesContent":["// eslint-disable-next-line no-restricted-imports\nimport { registerIconLoader } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';\n\n/**\n * Registers icon libraries with UI5.\n */\nexport async function registerIconsWithUi5() {\n await Promise.all([\n import('@ui5/webcomponents-icons-business-suite/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons-tnt/dist/AllIcons.js'),\n import('@ui5/webcomponents-icons/dist/AllIcons.js')\n ]);\n\n registerIconLoader('lx-icons', () => import('./lx-icons.json'));\n}\n","import { provideAppInitializer } from '@angular/core';\n// eslint-disable-next-line no-restricted-imports\nimport { setDefaultFontLoading } from '@ui5/webcomponents-base/dist/config/Fonts.js';\nimport { registerIconsWithUi5 } from './icons/register-icons';\n\n/**\n * Sets up providers necessary to use UI5 components in the application.\n *\n * @usageNotes\n *\n * Basic example of how you can add UI5 to your application:\n * ```ts\n * import { provideUi5 } from '@leanix/components/ui5';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [provideUi5()]\n * });\n * ```\n */\nexport const provideUi5 = () =>\n provideAppInitializer(async () => {\n setDefaultFontLoading(false);\n await registerIconsWithUi5();\n });\n","/**\n * All UI5-related components / directives supported by the SAP LeanIX Design System.\n */\nexport * from './ui5.provider';\n\n// UI5 Components\n// eslint-disable-next-line no-restricted-imports\nexport { IconComponent } from '@ui5/webcomponents-ngx/main/icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAGA;;AAEG;AACI,eAAe,oBAAoB,GAAA;IACxC,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,OAAO,0DAA0D,CAAC;QAClE,OAAO,+CAA+C,CAAC;QACvD,OAAO,2CAA2C;AACnD,KAAA,CAAC;IAEF,kBAAkB,CAAC,UAAU,EAAE,MAAM,OAAO,+CAAiB,CAAC,CAAC;AACjE;;ACTA;;;;;;;;;;;;;AAaG;AACU,MAAA,UAAU,GAAG,MACxB,qBAAqB,CAAC,YAAW;IAC/B,qBAAqB,CAAC,KAAK,CAAC;IAC5B,MAAM,oBAAoB,EAAE;AAC9B,CAAC;;ACvBH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -107,6 +107,7 @@ const ICON_MAP = {
107
107
  'fa-arrow-from-bottom': ['upload'],
108
108
  'fa-arrow-left': ['arrow-left'],
109
109
  'fa-arrow-right': ['arrow-right'],
110
+ 'fa-arrow-to-bottom': ['download'],
110
111
  'fa-arrow-to-top': ['back-to-top'],
111
112
  'fa-arrow-up': ['arrow-top'],
112
113
  'fa-arrows-h': ['resize-horizontal'],
@@ -185,6 +186,7 @@ const ICON_MAP = {
185
186
  'fa-file': ['document'],
186
187
  'fa-file-alt': ['document'],
187
188
  'fa-file-audio': ['attachment-audio'],
189
+ 'fa-file-download': ['download'],
188
190
  'fa-file-excel': ['excel-attachment'],
189
191
  'fa-file-image': ['attachment-photo'],
190
192
  'fa-file-pdf': ['pdf-attachment'],