@africanies/angular-web-sdk 0.1.7 → 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 (133) hide show
  1. package/.nx/cache/{4082520855419352840 → 15302120112746851896}/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +30 -8
  2. package/.nx/cache/15302120112746851896/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +1 -0
  3. package/.nx/cache/{4082520855419352840 → 15302120112746851896}/dist/libs/africanies-theme/tailwind-preset.cjs +89 -12
  4. package/.nx/cache/{4082520855419352840 → 15302120112746851896}/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +14 -4
  5. package/.nx/cache/{17491371155400585077 → 18393832731522001121}/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs +139 -51
  6. package/.nx/cache/18393832731522001121/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +1 -0
  7. package/.nx/cache/{17491371155400585077 → 18393832731522001121}/dist/libs/africanies-core/types/africanies-africanies-core.d.ts +14 -11
  8. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/README.md +69 -0
  9. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/assets/icons.sprite.svg +1851 -0
  10. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs +833 -0
  11. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs.map +1 -0
  12. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/package.json +30 -0
  13. package/.nx/cache/5151121439688073678/dist/libs/africanies-icons/types/africanies-africanies-icons.d.ts +108 -0
  14. package/.nx/cache/877026836685850193/dist/libs/africanies-models/README.md +60 -0
  15. package/.nx/cache/877026836685850193/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs +613 -0
  16. package/.nx/cache/877026836685850193/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs.map +1 -0
  17. package/.nx/cache/877026836685850193/dist/libs/africanies-models/package.json +23 -0
  18. package/.nx/cache/877026836685850193/dist/libs/africanies-models/types/africanies-africanies-models.d.ts +1452 -0
  19. package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +765 -615
  20. package/.nx/cache/9406544675747598148/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -0
  21. package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +149 -116
  22. package/.nx/cache/run.json +40 -40
  23. package/.nx/cache/terminalOutputs/{7126777490381568487 → 15149466893522345489} +10 -5
  24. package/.nx/cache/terminalOutputs/{4082520855419352840 → 15302120112746851896} +1 -1
  25. package/.nx/cache/terminalOutputs/{8648260256613557249 → 15835338512221847842} +18 -8
  26. package/.nx/cache/terminalOutputs/{9408529484792607601 → 17960163310445607219} +1 -1
  27. package/.nx/cache/terminalOutputs/{17491371155400585077 → 18393832731522001121} +2 -2
  28. package/.nx/cache/terminalOutputs/{3314955264390318442 → 5151121439688073678} +6 -6
  29. package/.nx/cache/terminalOutputs/7462873189468732296 +17 -0
  30. package/.nx/cache/terminalOutputs/8032148447904822353 +184 -182
  31. package/.nx/cache/terminalOutputs/{12276756491762927325 → 877026836685850193} +7 -7
  32. package/.nx/cache/terminalOutputs/9406544675747598148 +21 -0
  33. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db +0 -0
  34. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-shm +0 -0
  35. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-wal +0 -0
  36. package/.nx/workspace-data/d/daemon.log +2353 -0
  37. package/.nx/workspace-data/d/server-process.json +2 -2
  38. package/.nx/workspace-data/file-map.json +1802 -1736
  39. package/.nx/workspace-data/nx_files.nxt +0 -0
  40. package/.nx/workspace-data/project-graph.json +7 -2
  41. package/apps/playground/src/app/pages/tokens-page.ts +17 -13
  42. package/apps/playground/src/app/snippets/filters.snippets.ts +10 -0
  43. package/dist/libs/africanies-icons/assets/icons.sprite.svg +7 -0
  44. package/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs +1 -0
  45. package/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs.map +1 -1
  46. package/dist/libs/africanies-icons/types/africanies-africanies-icons.d.ts +2 -2
  47. package/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs +22 -8
  48. package/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs.map +1 -1
  49. package/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +22 -10
  50. package/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +1 -1
  51. package/dist/libs/africanies-theme/tailwind-preset.cjs +84 -16
  52. package/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +4 -2
  53. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +555 -425
  54. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -1
  55. package/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +140 -110
  56. package/libs/africanies-icons/src/assets/icons.sprite.svg +7 -0
  57. package/libs/africanies-icons/src/lib/icon-name.ts +1 -0
  58. package/libs/africanies-models/src/lib/filters/configs/seed-configs.ts +22 -8
  59. package/libs/africanies-theme/src/lib/mode-color.safelist.ts +12 -0
  60. package/libs/africanies-theme/src/lib/mode-color.service.spec.ts +55 -0
  61. package/libs/africanies-theme/src/lib/mode-color.service.ts +11 -11
  62. package/libs/africanies-theme/tailwind-preset.cjs +84 -16
  63. package/libs/africanies-ui/src/lib/action-menu/action-menu.component.ts +3 -3
  64. package/libs/africanies-ui/src/lib/alert/alert.component.ts +4 -4
  65. package/libs/africanies-ui/src/lib/avatar/avatar-menu.component.ts +2 -2
  66. package/libs/africanies-ui/src/lib/button/button.component.spec.ts +7 -7
  67. package/libs/africanies-ui/src/lib/button/button.component.ts +5 -5
  68. package/libs/africanies-ui/src/lib/chip/chip.component.ts +4 -4
  69. package/libs/africanies-ui/src/lib/content-stack/content-stack.component.ts +1 -1
  70. package/libs/africanies-ui/src/lib/feedback/error-indicator.component.ts +3 -3
  71. package/libs/africanies-ui/src/lib/feedback/error-state.component.ts +2 -2
  72. package/libs/africanies-ui/src/lib/filters/filter-drawer.panel.ts +44 -27
  73. package/libs/africanies-ui/src/lib/forms/checkbox/checkbox.component.ts +2 -1
  74. package/libs/africanies-ui/src/lib/forms/file-upload/file-preview.dialog.ts +1 -1
  75. package/libs/africanies-ui/src/lib/forms/file-upload/file-upload.component.ts +1 -1
  76. package/libs/africanies-ui/src/lib/forms/form-field.classes.ts +36 -6
  77. package/libs/africanies-ui/src/lib/forms/otp-input/otp-input.component.ts +2 -1
  78. package/libs/africanies-ui/src/lib/forms/radio/radio.component.ts +2 -1
  79. package/libs/africanies-ui/src/lib/forms/select/select.component.ts +1 -1
  80. package/libs/africanies-ui/src/lib/forms/toggle/toggle.component.ts +1 -1
  81. package/libs/africanies-ui/src/lib/image/image.component.ts +1 -1
  82. package/libs/africanies-ui/src/lib/info-popover/info-popover.component.ts +2 -2
  83. package/libs/africanies-ui/src/lib/layout/app-shell-content-header.component.ts +1 -1
  84. package/libs/africanies-ui/src/lib/layout/app-shell-header.component.ts +5 -5
  85. package/libs/africanies-ui/src/lib/layout/app-shell.component.html +2 -2
  86. package/libs/africanies-ui/src/lib/layout/app-shell.component.ts +3 -3
  87. package/libs/africanies-ui/src/lib/navigation/shipping-mode-switch/shipping-mode-switch.component.ts +6 -6
  88. package/libs/africanies-ui/src/lib/navigation/side-nav/africanies-side-nav.component.html +21 -13
  89. package/libs/africanies-ui/src/lib/navigation/side-nav/africanies-side-nav.component.ts +13 -7
  90. package/libs/africanies-ui/src/lib/notifications/notification-drawer.panel.ts +6 -6
  91. package/libs/africanies-ui/src/lib/overlay/confirm-dialog.component.ts +2 -2
  92. package/libs/africanies-ui/src/lib/overlay/drawer.service.ts +2 -2
  93. package/libs/africanies-ui/src/lib/overlay/modal.service.ts +3 -3
  94. package/libs/africanies-ui/src/lib/overlay/overlay-frame.component.ts +1 -1
  95. package/libs/africanies-ui/src/lib/pagination/pagination.component.ts +1 -1
  96. package/libs/africanies-ui/src/lib/stepper/stepper.component.ts +7 -7
  97. package/libs/africanies-ui/src/lib/table/table-column.ts +9 -0
  98. package/libs/africanies-ui/src/lib/table/table.component.spec.ts +99 -0
  99. package/libs/africanies-ui/src/lib/table/table.component.ts +72 -30
  100. package/libs/africanies-ui/src/lib/toast/toast-item.component.ts +6 -6
  101. package/package.json +1 -1
  102. package/svg/hand-coins.svg +9 -0
  103. package/.nx/cache/12276756491762927325/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +0 -215
  104. package/.nx/cache/12276756491762927325/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +0 -1
  105. package/.nx/cache/12276756491762927325/dist/libs/africanies-theme/tailwind-preset.cjs +0 -245
  106. package/.nx/cache/12276756491762927325/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +0 -157
  107. package/.nx/cache/17491371155400585077/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +0 -1
  108. package/.nx/cache/17499961385238663835/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +0 -1
  109. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/README.md +0 -68
  110. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/assets/brand/africanies-logo-mini.png +0 -0
  111. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/assets/brand/africanies-logo.png +0 -0
  112. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/assets/brand/africanies-logo.svg +0 -5
  113. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/assets/carriers/dhl.svg +0 -7
  114. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +0 -19291
  115. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +0 -1
  116. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/package.json +0 -35
  117. package/.nx/cache/3314955264390318442/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +0 -5483
  118. package/.nx/cache/4082520855419352840/dist/libs/africanies-theme/README.md +0 -46
  119. package/.nx/cache/4082520855419352840/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +0 -1
  120. package/.nx/cache/4082520855419352840/dist/libs/africanies-theme/package.json +0 -35
  121. package/.nx/cache/terminalOutputs/17499961385238663835 +0 -21
  122. package/.nx/cache/terminalOutputs/3017748574492080228 +0 -28
  123. /package/.nx/cache/{12276756491762927325 → 15302120112746851896}/dist/libs/africanies-theme/README.md +0 -0
  124. /package/.nx/cache/{12276756491762927325 → 15302120112746851896}/dist/libs/africanies-theme/package.json +0 -0
  125. /package/.nx/cache/{17491371155400585077 → 18393832731522001121}/dist/libs/africanies-core/README.md +0 -0
  126. /package/.nx/cache/{17491371155400585077 → 18393832731522001121}/dist/libs/africanies-core/package.json +0 -0
  127. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/README.md +0 -0
  128. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/assets/brand/africanies-logo-mini.png +0 -0
  129. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/assets/brand/africanies-logo.png +0 -0
  130. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/assets/brand/africanies-logo.svg +0 -0
  131. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/assets/carriers/dhl.svg +0 -0
  132. /package/.nx/cache/{17499961385238663835 → 9406544675747598148}/dist/libs/africanies-ui/package.json +0 -0
  133. /package/.nx/cache/terminalOutputs/{16279119293212733518 → 14005735098959303198} +0 -0
@@ -484,7 +484,8 @@ interface ApiRequestOptions {
484
484
  * - HTTP failures rethrown as `Error` whose `.message` is already
485
485
  * user-facing ({@link formatApiErrorMessage}) — consumers do not need to
486
486
  * parse `HttpErrorResponse` bodies
487
- * - Exponential-backoff retry (max 1) for **GET only**
487
+ * - **No automatic retry** fail fast so UIs can show Select / table /
488
+ * error-state Retry instead of a stuck loading spinner
488
489
  * - Optional per-GET TTL cache via `cacheTtlMs`
489
490
  *
490
491
  * @example
@@ -1066,8 +1067,8 @@ declare function listFetchKind(options: {
1066
1067
  * (no caret/tilde): TanStack marks the Angular adapter experimental and
1067
1068
  * breaking changes land without major bumps.
1068
1069
  *
1069
- * Retry/backoff here mirrors {@link ApiClient}'s GET retry (max 3,
1070
- * exponential) so HTTP-layer and query-layer behavior stay aligned.
1070
+ * Query retries default to **0** to match {@link ApiClient} (fail fast;
1071
+ * screens use manual Retry). Apps can override per `QueryClient` if needed.
1071
1072
  */
1072
1073
  /**
1073
1074
  * Shape compatible with TanStack `QueryClient` `defaultOptions` without
@@ -1079,9 +1080,9 @@ interface AfricaniesQueryClientDefaults {
1079
1080
  staleTime: number;
1080
1081
  /** Unused-query garbage-collection time (ms). */
1081
1082
  gcTime: number;
1082
- /** Max failed-fetch retries for queries. */
1083
+ /** Max failed-fetch retries for queries (default 0 — fail fast). */
1083
1084
  retry: number;
1084
- /** Exponential delay matching ApiClient GET backoff. */
1085
+ /** Delay between retries when {@link AfricaniesQueryClientDefaults.queries.retry} > 0. */
1085
1086
  retryDelay: (attemptIndex: number) => number;
1086
1087
  };
1087
1088
  mutations: {
@@ -2240,13 +2241,15 @@ declare class NotificationService {
2240
2241
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
2241
2242
  }
2242
2243
 
2244
+ /** Signed export downloads and other hosts that must not be rewritten in-app. */
2245
+ declare function isNotificationExternalLink(link: string): boolean;
2243
2246
  /**
2244
- * Rewrite a notification portal URL for the active {@link ShippingMode}.
2247
+ * Rewrite a notification href for the active {@link ShippingMode}.
2245
2248
  *
2246
- * Swaps `-export` / `-import` host segments and sets `shipment_app` to
2247
- * `shipfromnaija` (SFN) or `shiptonaija` (STN).
2248
- * @param link
2249
- * @param mode
2249
+ * - Export / download URLs (S3, spreadsheets) pass through unchanged (no `shipment_app`).
2250
+ * - Legacy portal hosts become relative `/portal/...` paths with query preserved.
2251
+ * - When the notification already includes `shipment_app`, it is kept as-is.
2252
+ * - Otherwise classic host / `shipment_app` rewriting applies for portal URLs.
2250
2253
  */
2251
2254
  declare function resolveNotificationLinkForMode(link: string | null | undefined, mode: ShippingMode): string;
2252
2255
 
@@ -2736,5 +2739,5 @@ declare function toCsvString(options: Pick<DownloadCsvOptions, 'headers' | 'rows
2736
2739
  */
2737
2740
  declare function downloadCsv(options: DownloadCsvOptions): boolean;
2738
2741
 
2739
- export { AFRICANIES_HTTP_TOAST, AFRICANIES_SDK_CONFIG, AUTH_FORGOT_PASSWORD_PATH, ApiClient, AuthService, AuthTokenService, COUNTRY_FLAG_CDN_BASE, COUNTRY_READ_PATH, CURRENCY_CREATE_PATH, CURRENCY_DELETE_PATH, CURRENCY_READ_PATH, CURRENCY_UPDATE_PATH, CountryService, CurrencyService, DOCUMENT_READ_PATH, DRAWER_SERVICE, DocumentService, FILE_READ_MULTIPLE_PARAM, FILE_READ_PATH, FileService, FilterOptionsResolver, HttpResponseCache, MODAL_SERVICE, MODE_CONFIG_PATH, ModeConfigService, NOTIFICATION_READ_PATH, NOTIFICATION_UPDATE_PATH, NotificationService, OVERLAY_ROUTE_CONFIGS, PAYMENT_METHOD_READ_PATH, PAYMENT_METHOD_UPDATE_PATH, PLAN_READ_PATH, PRODUCT_READ_PATH, PaymentMethodService, PlanService, ProductService, RouteOverlayService, SERVICE_READ_PATH, SHIPMENT_METHOD_READ_PATH, SHIPPING_MODE_OVERRIDE, ServiceService, ShipmentMethodService, ShippingModeService, TOAST_HTTP_OPTIONS, USER_CHANGE_PASSWORD_PATH, USER_LOGOUT_FROM_ALL_SESSIONS_PATH, USER_PATH, UserService, WAREHOUSE_READ_PATH, WarehouseService, ZONE_READ_PATH, ZoneService, asArray, asBoolean, asNullableBoolean, asNullableFlag01, asNullableNumber, asNullableString, asNumber, asRecord, asShippingMode, asString, authInterceptor, buildResourcePath, buildResourceQueryParams, collectFilterOptionsSources, collectResolvableSelectFields, copyToClipboard, countryFlagUrl, createAfricaniesQueryClientDefaults, csvCell, downloadCsv, fieldErrorsMap, formatApiErrorMessage, httpToastInterceptor, isLaravelValidationBag, isValidEmail, joinApiErrorMessages, listFetchKind, mapApiJsonList, mapApiJsonValue, mapArray, mapCountry, mapCountryList, mapCountrySelectOptions, mapCountryState, mapCurrency, mapCurrencyList, mapCurrencyPaymentMethod, mapCurrencyPaymentMethodPivot, mapDocument, mapDocumentList, mapFileRead, mapFileReadList, mapLaravelValidationBag, mapList, mapModeConfigData, mapNotification, mapNotificationInboxItem, mapNotificationList, mapNotificationPayload, mapPaymentMethod, mapPaymentMethodCurrency, mapPaymentMethodList, mapPlan, mapPlanList, mapPlanPackage, mapProduct, mapProductList, mapResourcePayload, mapService, mapServiceList, mapShipmentMethod, mapShipmentMethodFilterOptions, mapShipmentMethodList, mapShipmentMethodZoneLink, mapShipmentMethodZonePage, mapShipmentZone, mapUser, mapUserAccountManager, mapUserBusinessAccount, mapUserCountry, mapUserCountryState, mapUserGatewayPayload, mapUserPaymentPayload, mapUserPlan, mapUserPlanPackage, mapUserStateLabel, mapUserSubscription, mapWarehouse, mapWarehouseCountry, mapWarehouseFilterOptions, mapWarehouseList, mapWarehouseState, mapZone, mapZoneList, mergeFilterOptionLists, normalize, normalizePagination, provideAfricaniesHttpClient, provideAfricaniesQueryDefaults, provideAfricaniesSdk, provideModeConfig, provideOverlayRoutes, resolveModeRegionConfig, resolveNotificationLinkForMode, resourceCacheTtlMs, shipmentModeInterceptor, toCsvString, toCurrencyCreateBody, toCurrencyDeleteBody, toCurrencyFlag01, toCurrencyUpdateBody, toFlag01, toPaymentMethodFlag01, toPaymentMethodUpdateBody, unwrapLaravelPaginator, withShippingMode, withToast };
2742
+ export { AFRICANIES_HTTP_TOAST, AFRICANIES_SDK_CONFIG, AUTH_FORGOT_PASSWORD_PATH, ApiClient, AuthService, AuthTokenService, COUNTRY_FLAG_CDN_BASE, COUNTRY_READ_PATH, CURRENCY_CREATE_PATH, CURRENCY_DELETE_PATH, CURRENCY_READ_PATH, CURRENCY_UPDATE_PATH, CountryService, CurrencyService, DOCUMENT_READ_PATH, DRAWER_SERVICE, DocumentService, FILE_READ_MULTIPLE_PARAM, FILE_READ_PATH, FileService, FilterOptionsResolver, HttpResponseCache, MODAL_SERVICE, MODE_CONFIG_PATH, ModeConfigService, NOTIFICATION_READ_PATH, NOTIFICATION_UPDATE_PATH, NotificationService, OVERLAY_ROUTE_CONFIGS, PAYMENT_METHOD_READ_PATH, PAYMENT_METHOD_UPDATE_PATH, PLAN_READ_PATH, PRODUCT_READ_PATH, PaymentMethodService, PlanService, ProductService, RouteOverlayService, SERVICE_READ_PATH, SHIPMENT_METHOD_READ_PATH, SHIPPING_MODE_OVERRIDE, ServiceService, ShipmentMethodService, ShippingModeService, TOAST_HTTP_OPTIONS, USER_CHANGE_PASSWORD_PATH, USER_LOGOUT_FROM_ALL_SESSIONS_PATH, USER_PATH, UserService, WAREHOUSE_READ_PATH, WarehouseService, ZONE_READ_PATH, ZoneService, asArray, asBoolean, asNullableBoolean, asNullableFlag01, asNullableNumber, asNullableString, asNumber, asRecord, asShippingMode, asString, authInterceptor, buildResourcePath, buildResourceQueryParams, collectFilterOptionsSources, collectResolvableSelectFields, copyToClipboard, countryFlagUrl, createAfricaniesQueryClientDefaults, csvCell, downloadCsv, fieldErrorsMap, formatApiErrorMessage, httpToastInterceptor, isLaravelValidationBag, isNotificationExternalLink, isValidEmail, joinApiErrorMessages, listFetchKind, mapApiJsonList, mapApiJsonValue, mapArray, mapCountry, mapCountryList, mapCountrySelectOptions, mapCountryState, mapCurrency, mapCurrencyList, mapCurrencyPaymentMethod, mapCurrencyPaymentMethodPivot, mapDocument, mapDocumentList, mapFileRead, mapFileReadList, mapLaravelValidationBag, mapList, mapModeConfigData, mapNotification, mapNotificationInboxItem, mapNotificationList, mapNotificationPayload, mapPaymentMethod, mapPaymentMethodCurrency, mapPaymentMethodList, mapPlan, mapPlanList, mapPlanPackage, mapProduct, mapProductList, mapResourcePayload, mapService, mapServiceList, mapShipmentMethod, mapShipmentMethodFilterOptions, mapShipmentMethodList, mapShipmentMethodZoneLink, mapShipmentMethodZonePage, mapShipmentZone, mapUser, mapUserAccountManager, mapUserBusinessAccount, mapUserCountry, mapUserCountryState, mapUserGatewayPayload, mapUserPaymentPayload, mapUserPlan, mapUserPlanPackage, mapUserStateLabel, mapUserSubscription, mapWarehouse, mapWarehouseCountry, mapWarehouseFilterOptions, mapWarehouseList, mapWarehouseState, mapZone, mapZoneList, mergeFilterOptionLists, normalize, normalizePagination, provideAfricaniesHttpClient, provideAfricaniesQueryDefaults, provideAfricaniesSdk, provideModeConfig, provideOverlayRoutes, resolveModeRegionConfig, resolveNotificationLinkForMode, resourceCacheTtlMs, shipmentModeInterceptor, toCsvString, toCurrencyCreateBody, toCurrencyDeleteBody, toCurrencyFlag01, toCurrencyUpdateBody, toFlag01, toPaymentMethodFlag01, toPaymentMethodUpdateBody, unwrapLaravelPaginator, withShippingMode, withToast };
2740
2743
  export type { AfricaniesHttpClientOptions, AfricaniesHttpToastHandler, AfricaniesQueryClientDefaults, AfricaniesSdkConfig, AfricaniesSdkHttpToasts, ApiRequestOptions, CountryFlagFormat, CountryFlagUrlOptions, CountrySelectOption, CsvCellValue, DownloadCsvOptions, FilterOptionLists, FilterSelectOption, ListFetchKind, ListFetchReason, OverlayHandle, OverlayOpener, OverlayRouteConfig, OverlayRouteEntry, ResourceQueryParams, ShippingModeChangeGuard, ToastHttpOptions };
@@ -0,0 +1,69 @@
1
+ # @africanies/africanies-icons
2
+
3
+ Typed SVG icon system for AFRICANIES apps. Icons ship as a **single sprite** plus an
4
+ `IconName` union — not one Angular component per glyph.
5
+
6
+ ## Why a sprite?
7
+
8
+ There are 600–1000+ icons in `/svg`. Generating a component (or HTTP request)
9
+ per file would hurt bundle size, compile time, and runtime waterfalls. The build
10
+ script packs every SVG into `icons.sprite.svg`; `IconRegistryService` fetches
11
+ that file **once** and inlines it into the DOM so `<africanies-icon>` can use
12
+ `<use href="#name">`.
13
+
14
+ ## Usage
15
+
16
+ ```ts
17
+ import { AfricaniesIconComponent, AFRICANIES_ICON_SPRITE_URL } from '@africanies/africanies-icons';
18
+
19
+ // Provide the URL where you serve the published sprite asset:
20
+ providers: [
21
+ {
22
+ provide: AFRICANIES_ICON_SPRITE_URL,
23
+ useValue: '/assets/africanies-icons/icons.sprite.svg',
24
+ },
25
+ ],
26
+ ```
27
+
28
+ ```html
29
+ <africanies-icon name="truck" />
30
+ <africanies-icon name="search" [size]="32" />
31
+ ```
32
+
33
+ ### Serving the sprite
34
+
35
+ After installing `@africanies/africanies-icons`, copy (or angular.json `assets` map) the
36
+ published file:
37
+
38
+ `node_modules/@africanies/africanies-icons/assets/icons.sprite.svg`
39
+ → `src/assets/africanies-icons/icons.sprite.svg`
40
+
41
+ Then point {@link AFRICANIES_ICON_SPRITE_URL} at `/assets/africanies-icons/icons.sprite.svg`
42
+ (the package default). Use a leading `/` so the sprite loads on nested routes.
43
+
44
+ ## Adding a new icon
45
+
46
+ 1. Drop a new `.svg` into the monorepo `/svg` folder (kebab-case filename;
47
+ spaces are normalized to hyphens).
48
+ 2. From the repo root run:
49
+
50
+ ```bash
51
+ npm run icons:build
52
+ ```
53
+
54
+ 3. Commit the regenerated files:
55
+ - `libs/africanies-icons/src/assets/icons.sprite.svg`
56
+ - `libs/africanies-icons/src/lib/icon-name.ts` (`ICON_NAMES` + `IconName`)
57
+
58
+ The new name appears in `ICON_NAMES` / `IconName` for autocomplete, type-checking,
59
+ and the playground gallery.
60
+
61
+ ## Public API
62
+
63
+ | Export | Role |
64
+ | --- | --- |
65
+ | `ICON_NAMES` | Generated `as const` array of every icon id (for galleries / iteration) |
66
+ | `IconName` | `typeof ICON_NAMES[number]` — closed union for typed `name` inputs |
67
+ | `AfricaniesIconComponent` | `<africanies-icon name="…">` |
68
+ | `IconRegistryService` | Fetches/inlines the sprite once |
69
+ | `AFRICANIES_ICON_SPRITE_URL` | InjectionToken for the sprite URL |