@africanies/angular-web-sdk 0.1.12 → 0.1.13

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 (181) hide show
  1. package/.nx/cache/13293303228070520113/dist/libs/africanies-core/README.md +85 -0
  2. package/.nx/cache/13293303228070520113/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs +4699 -0
  3. package/.nx/cache/13293303228070520113/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +1 -0
  4. package/.nx/cache/13293303228070520113/dist/libs/africanies-core/package.json +31 -0
  5. package/.nx/cache/13293303228070520113/dist/libs/africanies-core/types/africanies-africanies-core.d.ts +2748 -0
  6. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/README.md +46 -0
  7. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +249 -0
  8. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +1 -0
  9. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/package.json +35 -0
  10. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/tailwind-preset.cjs +330 -0
  11. package/.nx/cache/13387631073062967069/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +178 -0
  12. package/.nx/cache/16704640000606796352/dist/libs/africanies-storage/README.md +31 -0
  13. package/.nx/cache/16704640000606796352/dist/libs/africanies-storage/fesm2022/africanies-africanies-storage.mjs +249 -0
  14. package/.nx/cache/16704640000606796352/dist/libs/africanies-storage/fesm2022/africanies-africanies-storage.mjs.map +1 -0
  15. package/.nx/cache/16704640000606796352/dist/libs/africanies-storage/package.json +26 -0
  16. package/.nx/cache/16704640000606796352/dist/libs/africanies-storage/types/africanies-africanies-storage.d.ts +210 -0
  17. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/README.md +68 -0
  18. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/assets/brand/africanies-logo-mini.png +0 -0
  19. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/assets/brand/africanies-logo.png +0 -0
  20. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/assets/brand/africanies-logo.svg +5 -0
  21. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/assets/carriers/dhl.svg +7 -0
  22. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +21251 -0
  23. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -0
  24. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/package.json +35 -0
  25. package/.nx/cache/2427575433215940812/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +5803 -0
  26. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/README.md +69 -0
  27. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/assets/icons.sprite.svg +1851 -0
  28. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs +839 -0
  29. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs.map +1 -0
  30. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/package.json +30 -0
  31. package/.nx/cache/7730350229628359718/dist/libs/africanies-icons/types/africanies-africanies-icons.d.ts +108 -0
  32. package/.nx/cache/run.json +35 -35
  33. package/.nx/cache/terminalOutputs/10603154579345867998 +397 -0
  34. package/.nx/cache/terminalOutputs/12354163057083828162 +80 -0
  35. package/.nx/cache/terminalOutputs/13293303228070520113 +21 -0
  36. package/.nx/cache/terminalOutputs/13387631073062967069 +21 -0
  37. package/.nx/cache/terminalOutputs/14876351543379349919 +176 -0
  38. package/.nx/cache/terminalOutputs/15336883221450327589 +21 -0
  39. package/.nx/cache/terminalOutputs/16208231681037145050 +86 -84
  40. package/.nx/cache/terminalOutputs/16704640000606796352 +21 -0
  41. package/.nx/cache/terminalOutputs/1811006905937373707 +74 -0
  42. package/.nx/cache/terminalOutputs/2005781115771702035 +8 -0
  43. package/.nx/cache/terminalOutputs/2360743690449633551 +21 -0
  44. package/.nx/cache/terminalOutputs/2427575433215940812 +21 -0
  45. package/.nx/cache/terminalOutputs/2981230413857865352 +8 -0
  46. package/.nx/cache/terminalOutputs/3243550283886864639 +8 -0
  47. package/.nx/cache/terminalOutputs/3380188914363501109 +231 -0
  48. package/.nx/cache/terminalOutputs/3699068646900552690 +8 -0
  49. package/.nx/cache/terminalOutputs/5175669339257931410 +8 -0
  50. package/.nx/cache/terminalOutputs/6040230831125637867 +8 -0
  51. package/.nx/cache/terminalOutputs/7730350229628359718 +21 -0
  52. package/.nx/cache/terminalOutputs/8098730470212963224 +87 -0
  53. package/.nx/cache/terminalOutputs/8928690901537686687 +21 -0
  54. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db +0 -0
  55. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-shm +0 -0
  56. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-wal +0 -0
  57. package/.nx/workspace-data/d/daemon.log +2859 -0
  58. package/.nx/workspace-data/d/server-process.json +2 -2
  59. package/.nx/workspace-data/file-map.json +2155 -2183
  60. package/.nx/workspace-data/nx_files.nxt +0 -0
  61. package/.nx/workspace-data/project-graph.json +2 -2
  62. package/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs +60 -0
  63. package/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +1 -1
  64. package/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs +6 -0
  65. package/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs.map +1 -1
  66. package/dist/libs/africanies-storage/fesm2022/africanies-africanies-storage.mjs +6 -0
  67. package/dist/libs/africanies-storage/fesm2022/africanies-africanies-storage.mjs.map +1 -1
  68. package/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +6 -0
  69. package/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +1 -1
  70. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +297 -51
  71. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -1
  72. package/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +12 -12
  73. package/libs/africanies-core/src/lib/auth/auth-token.service.ts +3 -0
  74. package/libs/africanies-core/src/lib/auth/auth.service.ts +3 -0
  75. package/libs/africanies-core/src/lib/country/country.service.ts +3 -0
  76. package/libs/africanies-core/src/lib/currency/currency.service.ts +3 -0
  77. package/libs/africanies-core/src/lib/document/document.service.ts +3 -0
  78. package/libs/africanies-core/src/lib/file/file.service.ts +3 -0
  79. package/libs/africanies-core/src/lib/filters/filter-options.resolver.ts +3 -0
  80. package/libs/africanies-core/src/lib/http/api-client.ts +3 -0
  81. package/libs/africanies-core/src/lib/mode/mode-config.service.ts +3 -0
  82. package/libs/africanies-core/src/lib/notification/notification.service.ts +3 -0
  83. package/libs/africanies-core/src/lib/overlay/route-overlay.service.ts +3 -0
  84. package/libs/africanies-core/src/lib/payment-method/payment-method.service.ts +3 -0
  85. package/libs/africanies-core/src/lib/plan/plan.service.ts +3 -0
  86. package/libs/africanies-core/src/lib/product/product.service.ts +3 -0
  87. package/libs/africanies-core/src/lib/service/service.service.ts +3 -0
  88. package/libs/africanies-core/src/lib/shipment-method/shipment-method.service.ts +3 -0
  89. package/libs/africanies-core/src/lib/shipping/shipping-mode.service.ts +3 -0
  90. package/libs/africanies-core/src/lib/user/user.service.ts +3 -0
  91. package/libs/africanies-core/src/lib/warehouse/warehouse.service.ts +3 -0
  92. package/libs/africanies-core/src/lib/zone/zone.service.ts +3 -0
  93. package/libs/africanies-icons/src/lib/africanies-icon.component.ts +3 -0
  94. package/libs/africanies-icons/src/lib/icon-registry.service.ts +3 -0
  95. package/libs/africanies-storage/src/lib/local-storage.service.ts +3 -0
  96. package/libs/africanies-storage/src/lib/session-storage.service.ts +3 -0
  97. package/libs/africanies-theme/src/lib/mode-color.service.ts +3 -0
  98. package/libs/africanies-theme/src/lib/theme.service.ts +3 -0
  99. package/libs/africanies-ui/src/index.ts +11 -11
  100. package/libs/africanies-ui/src/lib/accordion/accordion.component.ts +3 -0
  101. package/libs/africanies-ui/src/lib/action-menu/action-menu-trigger.directive.ts +3 -0
  102. package/libs/africanies-ui/src/lib/action-menu/action-menu.component.ts +3 -0
  103. package/libs/africanies-ui/src/lib/alert/alert.component.ts +3 -0
  104. package/libs/africanies-ui/src/lib/avatar/avatar-menu.component.ts +3 -0
  105. package/libs/africanies-ui/src/lib/avatar/avatar.component.ts +3 -0
  106. package/libs/africanies-ui/src/lib/brand/brand-logo.component.ts +3 -0
  107. package/libs/africanies-ui/src/lib/button/button.component.ts +3 -0
  108. package/libs/africanies-ui/src/lib/carrier/carrier-logo.component.ts +3 -0
  109. package/libs/africanies-ui/src/lib/chip/chip.component.ts +3 -0
  110. package/libs/africanies-ui/src/lib/content-stack/content-stack.component.ts +3 -0
  111. package/libs/africanies-ui/src/lib/copy-button/copy-button.component.ts +3 -0
  112. package/libs/africanies-ui/src/lib/feedback/async-state.component.ts +3 -0
  113. package/libs/africanies-ui/src/lib/feedback/empty-state.component.ts +3 -0
  114. package/libs/africanies-ui/src/lib/feedback/error-indicator.component.ts +3 -0
  115. package/libs/africanies-ui/src/lib/feedback/error-state.component.ts +3 -0
  116. package/libs/africanies-ui/src/lib/feedback/loading-state.component.ts +3 -0
  117. package/libs/africanies-ui/src/lib/filters/filter-drawer.panel.ts +3 -0
  118. package/libs/africanies-ui/src/lib/filters/filter-drawer.service.ts +3 -0
  119. package/libs/africanies-ui/src/lib/filters/filter-query.service.ts +3 -0
  120. package/libs/africanies-ui/src/lib/forms/address-input/address-input.component.ts +3 -0
  121. package/libs/africanies-ui/src/lib/forms/address-input/google-places.service.ts +3 -0
  122. package/libs/africanies-ui/src/lib/forms/checkbox/checkbox.component.ts +3 -0
  123. package/libs/africanies-ui/src/lib/forms/date-picker/date-picker.component.ts +3 -0
  124. package/libs/africanies-ui/src/lib/forms/file-upload/camera-capture.dialog.ts +3 -0
  125. package/libs/africanies-ui/src/lib/forms/file-upload/file-preview.dialog.ts +3 -0
  126. package/libs/africanies-ui/src/lib/forms/file-upload/file-upload.component.ts +3 -0
  127. package/libs/africanies-ui/src/lib/forms/index.ts +3 -3
  128. package/libs/africanies-ui/src/lib/forms/number-input/number-input.component.ts +3 -0
  129. package/libs/africanies-ui/src/lib/forms/otp-input/otp-input.component.ts +3 -0
  130. package/libs/africanies-ui/src/lib/forms/phone-input/phone-input.component.ts +9 -6
  131. package/libs/africanies-ui/src/lib/forms/radio/radio.component.ts +3 -0
  132. package/libs/africanies-ui/src/lib/forms/search-combobox/search-combobox.component.ts +3 -0
  133. package/libs/africanies-ui/src/lib/forms/select/select.component.ts +3 -0
  134. package/libs/africanies-ui/src/lib/forms/text-input/text-input.component.ts +3 -0
  135. package/libs/africanies-ui/src/lib/forms/textarea/textarea.component.ts +3 -0
  136. package/libs/africanies-ui/src/lib/forms/toggle/toggle.component.ts +3 -0
  137. package/libs/africanies-ui/src/lib/image/image.component.ts +3 -0
  138. package/libs/africanies-ui/src/lib/info-popover/info-popover-content.directive.ts +3 -0
  139. package/libs/africanies-ui/src/lib/info-popover/info-popover-trigger.directive.ts +3 -0
  140. package/libs/africanies-ui/src/lib/info-popover/info-popover.component.ts +3 -0
  141. package/libs/africanies-ui/src/lib/layout/app-shell-content-header.component.ts +3 -0
  142. package/libs/africanies-ui/src/lib/layout/app-shell-header-slot.directive.ts +3 -0
  143. package/libs/africanies-ui/src/lib/layout/app-shell-header.component.ts +9 -0
  144. package/libs/africanies-ui/src/lib/layout/app-shell.component.ts +3 -0
  145. package/libs/africanies-ui/src/lib/layout/header-weather.spec.ts +62 -94
  146. package/libs/africanies-ui/src/lib/layout/header-weather.ts +54 -61
  147. package/libs/africanies-ui/src/lib/layout/page-header.component.ts +3 -0
  148. package/libs/africanies-ui/src/lib/modules/africanies-actions.module.ts +3 -0
  149. package/libs/africanies-ui/src/lib/modules/africanies-feedback.module.ts +3 -0
  150. package/libs/africanies-ui/src/lib/modules/africanies-forms.module.ts +3 -0
  151. package/libs/africanies-ui/src/lib/modules/africanies-info-popover.module.ts +3 -0
  152. package/libs/africanies-ui/src/lib/modules/africanies-navigation.module.ts +3 -0
  153. package/libs/africanies-ui/src/lib/modules/africanies-stepper.module.ts +3 -0
  154. package/libs/africanies-ui/src/lib/modules/africanies-table.module.ts +3 -0
  155. package/libs/africanies-ui/src/lib/modules/africanies-tooltip.module.ts +3 -0
  156. package/libs/africanies-ui/src/lib/navigation/breadcrumb/breadcrumb.component.ts +3 -0
  157. package/libs/africanies-ui/src/lib/navigation/segment/segment.component.ts +3 -0
  158. package/libs/africanies-ui/src/lib/navigation/shipping-mode-switch/shipping-mode-switch.component.ts +3 -0
  159. package/libs/africanies-ui/src/lib/navigation/side-nav/africanies-side-nav.component.ts +3 -0
  160. package/libs/africanies-ui/src/lib/navigation/tabs/tab-def.directive.ts +3 -0
  161. package/libs/africanies-ui/src/lib/navigation/tabs/tabs.component.ts +3 -0
  162. package/libs/africanies-ui/src/lib/notifications/notification-drawer.panel.ts +3 -0
  163. package/libs/africanies-ui/src/lib/notifications/notification-drawer.service.ts +3 -0
  164. package/libs/africanies-ui/src/lib/overlay/confirm-dialog.component.ts +3 -0
  165. package/libs/africanies-ui/src/lib/overlay/confirm.service.ts +3 -0
  166. package/libs/africanies-ui/src/lib/overlay/drawer.service.ts +3 -0
  167. package/libs/africanies-ui/src/lib/overlay/modal.service.ts +3 -0
  168. package/libs/africanies-ui/src/lib/overlay/overlay-frame.component.ts +9 -0
  169. package/libs/africanies-ui/src/lib/pagination/pagination.component.ts +3 -0
  170. package/libs/africanies-ui/src/lib/stepper/step-def.directive.ts +3 -0
  171. package/libs/africanies-ui/src/lib/stepper/stepper.component.ts +3 -0
  172. package/libs/africanies-ui/src/lib/table/cell-def.directive.ts +3 -0
  173. package/libs/africanies-ui/src/lib/table/header-cell-def.directive.ts +3 -0
  174. package/libs/africanies-ui/src/lib/table/row-detail-def.directive.ts +3 -0
  175. package/libs/africanies-ui/src/lib/table/table.component.ts +3 -0
  176. package/libs/africanies-ui/src/lib/toast/toast-host.component.ts +4 -1
  177. package/libs/africanies-ui/src/lib/toast/toast-item.component.ts +3 -0
  178. package/libs/africanies-ui/src/lib/toast/toast.service.ts +3 -0
  179. package/libs/africanies-ui/src/lib/tooltip/tooltip-trigger.directive.ts +3 -0
  180. package/libs/africanies-ui/src/lib/tooltip/tooltip.component.ts +3 -0
  181. package/package.json +1 -1
@@ -0,0 +1,839 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, Injectable, input, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { DOCUMENT } from '@angular/common';
4
+
5
+ /**
6
+ * URL of the SVG sprite served by the host application.
7
+ *
8
+ * Default assumes the published asset is copied to
9
+ * `/assets/africanies-icons/icons.sprite.svg` (see package README). The leading
10
+ * slash is required: Angular `[src]` / `fetch()` resolve relative URLs
11
+ * against the current route (`/login/assets/…`), not `<base href="/">`.
12
+ * Override when the host uses a CDN or a different assets path.
13
+ */
14
+ const AFRICANIES_ICON_SPRITE_URL = new InjectionToken('AFRICANIES_ICON_SPRITE_URL', {
15
+ providedIn: 'root',
16
+ factory: () => '/assets/africanies-icons/icons.sprite.svg',
17
+ });
18
+ /**
19
+ * Fetches and inlines the icon sprite once into `document.body`.
20
+ *
21
+ * WHY inline (not external `<use href="sprite.svg#id">`):
22
+ * - External fragment references break under some CSP / cross-origin setups.
23
+ * - Inlining once lets every `<africanies-icon>` use cheap `#symbol-id` hrefs and
24
+ * keeps a single network request for 600+ icons.
25
+ *
26
+ * Call {@link ensureLoaded} from `AfricaniesIconComponent` (or app bootstrap). Safe
27
+ * to invoke repeatedly — concurrent callers share one in-flight promise.
28
+ */
29
+ /**
30
+ * Fetches and inlines the icon sprite once into `document.body`.
31
+ */
32
+ class IconRegistryService {
33
+ document = inject(DOCUMENT);
34
+ spriteUrl = inject(AFRICANIES_ICON_SPRITE_URL);
35
+ loadPromise = null;
36
+ loaded = false;
37
+ /**
38
+ * Ensures the sprite `<svg>` is present in the DOM.
39
+ *
40
+ * @returns Resolves when the sprite is inlined (or already present).
41
+ * @throws {Error} When the sprite URL cannot be fetched.
42
+ */
43
+ ensureLoaded() {
44
+ if (this.loaded) {
45
+ return Promise.resolve();
46
+ }
47
+ if (this.loadPromise) {
48
+ return this.loadPromise;
49
+ }
50
+ this.loadPromise = this.fetchAndInline().finally(() => {
51
+ this.loadPromise = null;
52
+ });
53
+ return this.loadPromise;
54
+ }
55
+ /**
56
+ * Whether the sprite has been successfully inlined.
57
+ *
58
+ * @returns `true` after a successful {@link ensureLoaded}.
59
+ */
60
+ isLoaded() {
61
+ return this.loaded;
62
+ }
63
+ async fetchAndInline() {
64
+ if (this.document.getElementById('africanies-icon-sprite')) {
65
+ this.loaded = true;
66
+ return;
67
+ }
68
+ const response = await fetch(this.spriteUrl);
69
+ if (!response.ok) {
70
+ throw new Error(`Failed to load AFRICANIES icon sprite from "${this.spriteUrl}" (${response.status})`);
71
+ }
72
+ const markup = await response.text();
73
+ const container = this.document.createElement('div');
74
+ container.id = 'africanies-icon-sprite';
75
+ container.setAttribute('hidden', '');
76
+ container.setAttribute('aria-hidden', 'true');
77
+ // WHY innerHTML: sprite is trusted first-party SVG from this package.
78
+ container.innerHTML = markup;
79
+ this.document.body.prepend(container);
80
+ this.loaded = true;
81
+ }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IconRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
83
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IconRegistryService, providedIn: 'root' });
84
+ }
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IconRegistryService, decorators: [{
86
+ type: Injectable,
87
+ args: [{ providedIn: 'root' }]
88
+ }] });
89
+
90
+ /**
91
+ * Renders a single icon from the shared SVG sprite.
92
+ *
93
+ * WHY sprite + `<use>`: one network fetch (via {@link IconRegistryService})
94
+ * serves every icon instead of shipping hundreds of Angular components or
95
+ * individual SVG HTTP requests.
96
+ *
97
+ * Host apps must serve `icons.sprite.svg` (see package README) or override
98
+ * {@link AFRICANIES_ICON_SPRITE_URL}.
99
+ *
100
+ * @example
101
+ * ```html
102
+ * <africanies-icon name="truck" />
103
+ * <africanies-icon name="search" [size]="32" />
104
+ * ```
105
+ */
106
+ /**
107
+ * Renders a single icon from the shared SVG sprite.
108
+ */
109
+ class AfricaniesIconComponent {
110
+ registry = inject(IconRegistryService);
111
+ /**
112
+ * Icon id matching a `<symbol>` in the sprite / {@link IconName} union.
113
+ */
114
+ name = input.required(/* @ts-ignore */
115
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
116
+ /**
117
+ * CSS pixel size for width and height. Accepts a number (`24`) or CSS length
118
+ * (`'1.5rem'`). Defaults to `24`.
119
+ */
120
+ size = input(24, /* @ts-ignore */
121
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
122
+ constructor() {
123
+ // Kick off sprite load on first icon render; failures surface as rejected
124
+ // promises / console errors rather than blanking the whole app.
125
+ effect(() => {
126
+ // Track name so HMR / late registry overrides still trigger ensureLoaded.
127
+ void this.name();
128
+ void this.registry.ensureLoaded().catch((err) => {
129
+ console.error('[africanies-icon] sprite load failed', err);
130
+ });
131
+ });
132
+ }
133
+ /**
134
+ * Fragment href into the inlined sprite (`#truck`).
135
+ *
136
+ * @returns Hash fragment pointing at the named symbol.
137
+ */
138
+ href() {
139
+ return `#${this.name()}`;
140
+ }
141
+ /**
142
+ * Normalized size attribute value.
143
+ *
144
+ * @returns Size as a string suitable for the SVG `width`/`height` attrs.
145
+ */
146
+ resolvedSize() {
147
+ const value = this.size();
148
+ return typeof value === 'number' ? String(value) : value;
149
+ }
150
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AfricaniesIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: AfricaniesIconComponent, isStandalone: true, selector: "africanies-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-icon": "name()" } }, ngImport: i0, template: `
152
+ <svg
153
+ [attr.width]="resolvedSize()"
154
+ [attr.height]="resolvedSize()"
155
+ [attr.aria-hidden]="true"
156
+ focusable="false"
157
+ part="svg"
158
+ >
159
+ <use [attr.href]="href()" />
160
+ </svg>
161
+ `, isInline: true, styles: [":host{display:inline-flex;line-height:0;vertical-align:middle;color:inherit}svg{display:block;fill:currentColor;color:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
162
+ }
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AfricaniesIconComponent, decorators: [{
164
+ type: Component,
165
+ args: [{ selector: 'africanies-icon', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
166
+ <svg
167
+ [attr.width]="resolvedSize()"
168
+ [attr.height]="resolvedSize()"
169
+ [attr.aria-hidden]="true"
170
+ focusable="false"
171
+ part="svg"
172
+ >
173
+ <use [attr.href]="href()" />
174
+ </svg>
175
+ `, host: {
176
+ '[attr.data-icon]': 'name()',
177
+ }, styles: [":host{display:inline-flex;line-height:0;vertical-align:middle;color:inherit}svg{display:block;fill:currentColor;color:inherit}\n"] }]
178
+ }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
179
+
180
+ /**
181
+ * Generated by `tools/build-icon-sprite.mjs` — do not edit by hand.
182
+ *
183
+ * Closed list of every symbol id in `icons.sprite.svg` so typos fail at
184
+ * compile time, editors autocomplete valid names, and the playground gallery
185
+ * can iterate without maintaining a second list.
186
+ *
187
+ * To add an icon: drop an SVG into `/svg`, then run `npm run icons:build`.
188
+ */
189
+ const ICON_NAMES = [
190
+ 'abacus',
191
+ 'absolute-position',
192
+ 'academy-cap',
193
+ 'accessibility',
194
+ 'accordion-menu',
195
+ 'add-dock',
196
+ 'adjust',
197
+ 'adobe-flash',
198
+ 'airplane',
199
+ 'alarm',
200
+ 'align-center',
201
+ 'align-justify',
202
+ 'align-left',
203
+ 'align-right',
204
+ 'alt-a',
205
+ 'alt',
206
+ 'ambulance',
207
+ 'anchor',
208
+ 'angle-double-down',
209
+ 'angle-double-left',
210
+ 'angle-double-right',
211
+ 'angle-double-up',
212
+ 'angle-down',
213
+ 'angle-left',
214
+ 'angle-right',
215
+ 'angle-up',
216
+ 'archive',
217
+ 'archives',
218
+ 'area-select',
219
+ 'arrow-backward',
220
+ 'arrow-circle-down-o',
221
+ 'arrow-circle-down',
222
+ 'arrow-circle-left-o',
223
+ 'arrow-circle-left',
224
+ 'arrow-circle-right-o',
225
+ 'arrow-circle-right',
226
+ 'arrow-circle-up-o',
227
+ 'arrow-circle-up',
228
+ 'arrow-down',
229
+ 'arrow-forward',
230
+ 'arrow-left',
231
+ 'arrow-long-down',
232
+ 'arrow-long-left',
233
+ 'arrow-right',
234
+ 'arrow-up',
235
+ 'arrows-cross',
236
+ 'arrows-long-h',
237
+ 'arrows-long-right',
238
+ 'arrows-long-up',
239
+ 'arrows-long-v',
240
+ 'arrows',
241
+ 'asterisk',
242
+ 'at',
243
+ 'automation',
244
+ 'backspace-a',
245
+ 'backspace',
246
+ 'backwards',
247
+ 'ban',
248
+ 'bar-chart-h',
249
+ 'bar-chart-v',
250
+ 'bar-chart',
251
+ 'barcode',
252
+ 'bed',
253
+ 'bell-o',
254
+ 'bell-slash-o',
255
+ 'bell-slash',
256
+ 'bell',
257
+ 'boat',
258
+ 'bold',
259
+ 'bolt',
260
+ 'bomb',
261
+ 'book-dollar',
262
+ 'book-percent',
263
+ 'book',
264
+ 'bookmark-o',
265
+ 'bookmark',
266
+ 'briefcase',
267
+ 'browser',
268
+ 'bug-o',
269
+ 'bug',
270
+ 'building-o',
271
+ 'building',
272
+ 'bullets',
273
+ 'bullseye',
274
+ 'bus',
275
+ 'button',
276
+ 'calc-book',
277
+ 'calc',
278
+ 'calendar-briefcase',
279
+ 'calendar-clock',
280
+ 'calendar-envelope',
281
+ 'calendar-o',
282
+ 'calendar-user',
283
+ 'calendar',
284
+ 'camera',
285
+ 'car',
286
+ 'caret-down',
287
+ 'caret-left',
288
+ 'caret-right',
289
+ 'caret-square-down-o',
290
+ 'caret-square-left-o',
291
+ 'caret-square-right-o',
292
+ 'caret-square-up-o',
293
+ 'caret-up',
294
+ 'cart-o',
295
+ 'cart',
296
+ 'cash',
297
+ 'chart-3d',
298
+ 'chart-grid',
299
+ 'chart-line',
300
+ 'chart-timeline',
301
+ 'chart',
302
+ 'chat',
303
+ 'check-circle-o',
304
+ 'check-circle',
305
+ 'check-square-o',
306
+ 'check-square',
307
+ 'check',
308
+ 'chevron-circle-down-o',
309
+ 'chevron-circle-down',
310
+ 'chevron-circle-left-o',
311
+ 'chevron-circle-left',
312
+ 'chevron-circle-right-o',
313
+ 'chevron-circle-right',
314
+ 'chevron-circle-up-o',
315
+ 'chevron-circle-up',
316
+ 'chevron-down-small',
317
+ 'chevron-down',
318
+ 'chevron-left-small',
319
+ 'chevron-left',
320
+ 'chevron-right-small',
321
+ 'chevron-right',
322
+ 'chevron-up-small',
323
+ 'chevron-up',
324
+ 'child',
325
+ 'circle-thin',
326
+ 'circle',
327
+ 'clipboard-check',
328
+ 'clipboard-cross',
329
+ 'clipboard-heart',
330
+ 'clipboard-pulse',
331
+ 'clipboard-text',
332
+ 'clipboard-user',
333
+ 'clipboard',
334
+ 'clock',
335
+ 'close-big',
336
+ 'close-circle-o',
337
+ 'close-circle',
338
+ 'close-small',
339
+ 'close',
340
+ 'cloud-download-o',
341
+ 'cloud-download',
342
+ 'cloud-o',
343
+ 'cloud-upload-o',
344
+ 'cloud-upload',
345
+ 'cloud',
346
+ 'cluster',
347
+ 'code',
348
+ 'coffee',
349
+ 'cog-o',
350
+ 'cog',
351
+ 'cogs',
352
+ 'coin-piles',
353
+ 'coins',
354
+ 'combobox',
355
+ 'comment-ellipsis-o',
356
+ 'comment-ellipsis',
357
+ 'comment-o',
358
+ 'comment',
359
+ 'comments-o',
360
+ 'comments',
361
+ 'compile',
362
+ 'compress-square',
363
+ 'compress',
364
+ 'connect-o',
365
+ 'connect',
366
+ 'controller',
367
+ 'copy-o',
368
+ 'copy',
369
+ 'copyright',
370
+ 'corner-lower-left',
371
+ 'corner-lower-right',
372
+ 'corner-upper-left',
373
+ 'corner-upper-right',
374
+ 'credit-card',
375
+ 'crop',
376
+ 'cross-cutlery',
377
+ 'crosshairs',
378
+ 'css',
379
+ 'ctrl-a',
380
+ 'ctrl',
381
+ 'cube',
382
+ 'cubes',
383
+ 'curly-brackets',
384
+ 'cursor-o',
385
+ 'cursor',
386
+ 'cutlery',
387
+ 'dashboard',
388
+ 'database',
389
+ 'date-input',
390
+ 'deindent',
391
+ 'del-a',
392
+ 'del',
393
+ 'dental-chair',
394
+ 'desktop',
395
+ 'diamond-o',
396
+ 'diamond',
397
+ 'diasporan-partner',
398
+ 'diploma-scroll',
399
+ 'diploma',
400
+ 'disc',
401
+ 'doctor-briefcase',
402
+ 'doctor',
403
+ 'dollar',
404
+ 'dot-circle',
405
+ 'download-alt',
406
+ 'download',
407
+ 'drop',
408
+ 'edit',
409
+ 'eject',
410
+ 'elastic',
411
+ 'ellipsis-circle-o',
412
+ 'ellipsis-circle',
413
+ 'ellipsis-dots-h',
414
+ 'ellipsis-dots-v',
415
+ 'ellipsis-h',
416
+ 'ellipsis-v',
417
+ 'enter-arrow',
418
+ 'enter',
419
+ 'envelope-o',
420
+ 'envelope-open-o',
421
+ 'envelope-open',
422
+ 'envelope',
423
+ 'envelopes-o',
424
+ 'envelopes',
425
+ 'eraser',
426
+ 'esc-a',
427
+ 'esc',
428
+ 'euro',
429
+ 'exchange',
430
+ 'exclamation-circle-o',
431
+ 'exclamation-circle',
432
+ 'exclamation',
433
+ 'exit-o',
434
+ 'exit',
435
+ 'expand-full',
436
+ 'expand-square',
437
+ 'expand',
438
+ 'external-browser',
439
+ 'external-link',
440
+ 'eye-slash',
441
+ 'eye',
442
+ 'eyedropper',
443
+ 'facebook-square',
444
+ 'facebook',
445
+ 'factory',
446
+ 'family',
447
+ 'fast-backward',
448
+ 'fast-forward',
449
+ 'female',
450
+ 'file-add',
451
+ 'file-code',
452
+ 'file-font',
453
+ 'file-movie',
454
+ 'file-o',
455
+ 'file-picture',
456
+ 'file-presentation',
457
+ 'file-process',
458
+ 'file-refresh',
459
+ 'file-remove',
460
+ 'file-search',
461
+ 'file-sound',
462
+ 'file-start',
463
+ 'file-table',
464
+ 'file-text-o',
465
+ 'file-text',
466
+ 'file-tree-small',
467
+ 'file-tree-sub',
468
+ 'file-tree',
469
+ 'file-zip',
470
+ 'file',
471
+ 'fill',
472
+ 'film',
473
+ 'filter',
474
+ 'fire',
475
+ 'flag-checkered',
476
+ 'flag-o',
477
+ 'flag',
478
+ 'flash',
479
+ 'flask',
480
+ 'flight-landing',
481
+ 'flight-takeoff',
482
+ 'flip-h',
483
+ 'flip-v',
484
+ 'folder-add',
485
+ 'folder-o',
486
+ 'folder-open-o',
487
+ 'folder-open',
488
+ 'folder-remove',
489
+ 'folder-search',
490
+ 'folder',
491
+ 'font',
492
+ 'form',
493
+ 'forward',
494
+ 'frown-o',
495
+ 'funcion',
496
+ 'funnel',
497
+ 'gamepad',
498
+ 'gavel',
499
+ 'gift',
500
+ 'glass',
501
+ 'glasses',
502
+ 'globe-wire',
503
+ 'globe',
504
+ 'golf',
505
+ 'google-plus-square',
506
+ 'google-plus',
507
+ 'grab',
508
+ 'grid-bevel',
509
+ 'grid-big-o',
510
+ 'grid-big',
511
+ 'grid-h',
512
+ 'grid-small-o',
513
+ 'grid-small',
514
+ 'grid-v',
515
+ 'grid',
516
+ 'group',
517
+ 'hammer',
518
+ 'hand-coins',
519
+ 'hand',
520
+ 'handle-corner',
521
+ 'hands-up',
522
+ 'handshake',
523
+ 'harddrive-o',
524
+ 'harddrive',
525
+ 'hash',
526
+ 'header',
527
+ 'headphones',
528
+ 'headset',
529
+ 'health-card',
530
+ 'heart-o',
531
+ 'heart',
532
+ 'home-o',
533
+ 'home',
534
+ 'hospital',
535
+ 'hourglass-empty',
536
+ 'hourglass-end',
537
+ 'hourglass-start',
538
+ 'hourglass',
539
+ 'inbox',
540
+ 'indent',
541
+ 'info-circle-o',
542
+ 'info-circle',
543
+ 'info',
544
+ 'input',
545
+ 'insert',
546
+ 'institution',
547
+ 'invoice',
548
+ 'italic',
549
+ 'key-o',
550
+ 'key',
551
+ 'keyboard-o',
552
+ 'keyboard',
553
+ 'laptop',
554
+ 'layout',
555
+ 'level-down-bold',
556
+ 'level-down',
557
+ 'level-left-bold',
558
+ 'level-left',
559
+ 'level-right-bold',
560
+ 'level-right',
561
+ 'level-up-bold',
562
+ 'level-up',
563
+ 'lifebuoy',
564
+ 'lightbulb',
565
+ 'line-bar-chart',
566
+ 'line-chart',
567
+ 'line-h',
568
+ 'line-v',
569
+ 'lines-list',
570
+ 'lines',
571
+ 'link',
572
+ 'list-ol',
573
+ 'list-select',
574
+ 'list-ul',
575
+ 'list',
576
+ 'location-arrow-circle-o',
577
+ 'location-arrow-circle',
578
+ 'location-arrow',
579
+ 'lock',
580
+ 'magic',
581
+ 'magnet',
582
+ 'mailbox',
583
+ 'male',
584
+ 'map-marker',
585
+ 'margin-bottom',
586
+ 'margin-left',
587
+ 'margin-right',
588
+ 'margin-top',
589
+ 'margin',
590
+ 'medal',
591
+ 'megaphone',
592
+ 'meh-o',
593
+ 'menu',
594
+ 'microphone',
595
+ 'mini-partner',
596
+ 'minus-circle-o',
597
+ 'minus-circle',
598
+ 'minus-square-o',
599
+ 'minus',
600
+ 'mobile-browser',
601
+ 'mobile-retro',
602
+ 'mobile',
603
+ 'modal-list',
604
+ 'modal',
605
+ 'money-deposit',
606
+ 'money-exchange',
607
+ 'money-withdraw',
608
+ 'money',
609
+ 'moon-o',
610
+ 'moon',
611
+ 'morning',
612
+ 'movie',
613
+ 'music',
614
+ 'mute',
615
+ 'native-button',
616
+ 'newspaper',
617
+ 'notebook',
618
+ 'number-count',
619
+ 'nurse',
620
+ 'office',
621
+ 'open-book',
622
+ 'option-a',
623
+ 'option',
624
+ 'options',
625
+ 'orientation',
626
+ 'out',
627
+ 'outbox',
628
+ 'package',
629
+ 'padding-bottom',
630
+ 'padding-left',
631
+ 'padding-right',
632
+ 'padding-top',
633
+ 'padding',
634
+ 'paint-roll',
635
+ 'paintbrush',
636
+ 'palette',
637
+ 'panel',
638
+ 'paperclip',
639
+ 'paperplane-o',
640
+ 'paperplane',
641
+ 'paragraph',
642
+ 'partner',
643
+ 'password',
644
+ 'paste',
645
+ 'pause',
646
+ 'pencil',
647
+ 'phone-landline',
648
+ 'phone',
649
+ 'picture',
650
+ 'pie-bar-chart',
651
+ 'pie-chart',
652
+ 'piggy-bank-coin',
653
+ 'piggy-bank',
654
+ 'pill',
655
+ 'pills',
656
+ 'pin-post',
657
+ 'pin',
658
+ 'play-circle-o',
659
+ 'play-circle',
660
+ 'play',
661
+ 'plug',
662
+ 'plus-circle-o',
663
+ 'plus-circle',
664
+ 'plus-minus',
665
+ 'plus-square-o',
666
+ 'plus',
667
+ 'pointer',
668
+ 'power-off',
669
+ 'presentation',
670
+ 'print',
671
+ 'progressbar',
672
+ 'puzzle-piece',
673
+ 'pyramid-chart',
674
+ 'qrcode',
675
+ 'question-circle-o',
676
+ 'question-circle',
677
+ 'question',
678
+ 'quote-left',
679
+ 'quote-right',
680
+ 'random',
681
+ 'raster-lower-left',
682
+ 'raster',
683
+ 'records',
684
+ 'recycle',
685
+ 'refresh',
686
+ 'reply-all',
687
+ 'reply',
688
+ 'resize-h',
689
+ 'resize-v',
690
+ 'retweet',
691
+ 'rhombus',
692
+ 'road-branch',
693
+ 'road-branches',
694
+ 'road-split',
695
+ 'road',
696
+ 'rocket',
697
+ 'rotate-left',
698
+ 'rotate-right',
699
+ 'rss-square',
700
+ 'rss',
701
+ 'safe-lock',
702
+ 'safe',
703
+ 'scale-unbalance',
704
+ 'scale',
705
+ 'scatter-chart',
706
+ 'scissors',
707
+ 'screwdriver',
708
+ 'search-minus',
709
+ 'search-plus',
710
+ 'search',
711
+ 'select',
712
+ 'server',
713
+ 'share-square',
714
+ 'share',
715
+ 'shield',
716
+ 'shift-arrow',
717
+ 'shift',
718
+ 'shop',
719
+ 'sign-in-alt',
720
+ 'sign-in',
721
+ 'sign-out-alt',
722
+ 'sign-out',
723
+ 'signal',
724
+ 'sitemap',
725
+ 'slider',
726
+ 'sliders',
727
+ 'smiley-o',
728
+ 'sort',
729
+ 'sound-disable',
730
+ 'spark-line',
731
+ 'specialist',
732
+ 'spinner-arc',
733
+ 'spinner-third',
734
+ 'spinner',
735
+ 'spline-area-chart',
736
+ 'spline-chart',
737
+ 'split-h',
738
+ 'split-v',
739
+ 'split',
740
+ 'spoon',
741
+ 'square-shadow',
742
+ 'star-half-left-o',
743
+ 'star-half-left',
744
+ 'star-half-right-o',
745
+ 'star-half-right',
746
+ 'star-o',
747
+ 'star',
748
+ 'start-cog',
749
+ 'step-backward',
750
+ 'step-forward',
751
+ 'stethoscope',
752
+ 'stock',
753
+ 'stop-cog',
754
+ 'stop',
755
+ 'stopwatch',
756
+ 'storage',
757
+ 'strikethrough',
758
+ 'subscript',
759
+ 'suitcase',
760
+ 'sun-down',
761
+ 'sun-o',
762
+ 'sun-rise',
763
+ 'superscript',
764
+ 'sword',
765
+ 'tab-a',
766
+ 'tab',
767
+ 'table',
768
+ 'tablet',
769
+ 'tabs',
770
+ 'tag',
771
+ 'tags',
772
+ 'tasks',
773
+ 'taxi',
774
+ 'teeth',
775
+ 'terminal',
776
+ 'text-height',
777
+ 'text-input',
778
+ 'text-label',
779
+ 'text-width',
780
+ 'thin-square',
781
+ 'thumbs-down-o',
782
+ 'thumbs-down',
783
+ 'thumbs-up-o',
784
+ 'thumbs-up',
785
+ 'ticket',
786
+ 'time-backward',
787
+ 'time-forward',
788
+ 'timer',
789
+ 'toolbox',
790
+ 'tools',
791
+ 'tooth',
792
+ 'touch',
793
+ 'train',
794
+ 'trash',
795
+ 'tree-table',
796
+ 'trending-down',
797
+ 'trending-up',
798
+ 'trophy',
799
+ 'truck',
800
+ 'twin-col-select',
801
+ 'twitter-square',
802
+ 'twitter',
803
+ 'umbrella',
804
+ 'underline',
805
+ 'unlink',
806
+ 'unlock',
807
+ 'upload-alt',
808
+ 'upload',
809
+ 'user-card',
810
+ 'user-check',
811
+ 'user-clock',
812
+ 'user-heart',
813
+ 'user-star',
814
+ 'user',
815
+ 'users',
816
+ 'vaadin-h',
817
+ 'vaadin-v',
818
+ 'viewport',
819
+ 'vimeo-square',
820
+ 'vimeo',
821
+ 'volume-down',
822
+ 'volume-off',
823
+ 'volume-up',
824
+ 'volume',
825
+ 'wallet',
826
+ 'warehouse',
827
+ 'warning',
828
+ 'workplace',
829
+ 'wrench',
830
+ 'youtube-square',
831
+ 'youtube',
832
+ ];
833
+
834
+ /**
835
+ * Generated bundle index. Do not edit.
836
+ */
837
+
838
+ export { AFRICANIES_ICON_SPRITE_URL, AfricaniesIconComponent, ICON_NAMES, IconRegistryService };
839
+ //# sourceMappingURL=africanies-africanies-icons.mjs.map