@africanies/angular-web-sdk 0.1.6 → 0.1.8

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