@africanies/angular-web-sdk 0.1.11 → 0.1.12

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 (93) hide show
  1. package/.nx/cache/{14995846848874973576 → 7821397806208783174}/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +2572 -962
  2. package/.nx/cache/7821397806208783174/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -0
  3. package/.nx/cache/{14995846848874973576 → 7821397806208783174}/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +450 -140
  4. package/.nx/cache/run.json +15 -15
  5. package/.nx/cache/terminalOutputs/16208231681037145050 +85 -0
  6. package/.nx/cache/terminalOutputs/{14995846848874973576 → 7821397806208783174} +2 -2
  7. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db +0 -0
  8. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-shm +0 -0
  9. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-wal +0 -0
  10. package/.nx/workspace-data/d/daemon.log +1317 -0
  11. package/.nx/workspace-data/d/server-process.json +2 -2
  12. package/.nx/workspace-data/file-map.json +3458 -3424
  13. package/.nx/workspace-data/nx_files.nxt +0 -0
  14. package/.nx/workspace-data/project-graph.json +2 -2
  15. package/apps/playground/src/app/pages/forms-page.ts +70 -14
  16. package/apps/playground/src/app/snippets/forms.snippets.ts +41 -6
  17. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +1000 -8
  18. package/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +1 -1
  19. package/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +201 -15
  20. package/libs/africanies-ui/src/index.ts +18 -0
  21. package/libs/africanies-ui/src/lib/forms/index.ts +20 -0
  22. package/libs/africanies-ui/src/lib/forms/phone-input/index.ts +21 -0
  23. package/libs/africanies-ui/src/lib/forms/phone-input/phone-codes.ts +264 -0
  24. package/libs/africanies-ui/src/lib/forms/phone-input/phone-input.component.ts +477 -0
  25. package/libs/africanies-ui/src/lib/forms/phone-input/phone-input.types.ts +35 -0
  26. package/libs/africanies-ui/src/lib/forms/phone-input/phone-input.utils.spec.ts +81 -0
  27. package/libs/africanies-ui/src/lib/forms/phone-input/phone-input.utils.ts +275 -0
  28. package/libs/africanies-ui/src/lib/modules/africanies-forms.module.ts +2 -0
  29. package/libs/africanies-ui/src/lib/navigation/segment/segment.component.ts +2 -1
  30. package/package.json +1 -1
  31. package/.nx/cache/13466509747676776487/dist/libs/africanies-core/README.md +0 -85
  32. package/.nx/cache/13466509747676776487/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs +0 -4634
  33. package/.nx/cache/13466509747676776487/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +0 -1
  34. package/.nx/cache/13466509747676776487/dist/libs/africanies-core/package.json +0 -31
  35. package/.nx/cache/13466509747676776487/dist/libs/africanies-core/types/africanies-africanies-core.d.ts +0 -2743
  36. package/.nx/cache/14416694322692463866/dist/libs/africanies-models/README.md +0 -60
  37. package/.nx/cache/14416694322692463866/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs +0 -599
  38. package/.nx/cache/14416694322692463866/dist/libs/africanies-models/fesm2022/africanies-africanies-models.mjs.map +0 -1
  39. package/.nx/cache/14416694322692463866/dist/libs/africanies-models/package.json +0 -23
  40. package/.nx/cache/14416694322692463866/dist/libs/africanies-models/types/africanies-africanies-models.d.ts +0 -1452
  41. package/.nx/cache/14876618240301288353/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs +0 -19375
  42. package/.nx/cache/14876618240301288353/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +0 -1
  43. package/.nx/cache/14876618240301288353/dist/libs/africanies-ui/types/africanies-africanies-ui.d.ts +0 -5490
  44. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/README.md +0 -68
  45. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/assets/brand/africanies-logo-mini.png +0 -0
  46. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/assets/brand/africanies-logo.png +0 -0
  47. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/assets/brand/africanies-logo.svg +0 -5
  48. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/assets/carriers/dhl.svg +0 -7
  49. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/fesm2022/africanies-africanies-ui.mjs.map +0 -1
  50. package/.nx/cache/14995846848874973576/dist/libs/africanies-ui/package.json +0 -35
  51. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/README.md +0 -46
  52. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +0 -221
  53. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +0 -1
  54. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/package.json +0 -35
  55. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/tailwind-preset.cjs +0 -253
  56. package/.nx/cache/17626862048742598274/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +0 -166
  57. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/README.md +0 -69
  58. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/assets/icons.sprite.svg +0 -1844
  59. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs +0 -832
  60. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/fesm2022/africanies-africanies-icons.mjs.map +0 -1
  61. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/package.json +0 -30
  62. package/.nx/cache/6664915487114632770/dist/libs/africanies-icons/types/africanies-africanies-icons.d.ts +0 -108
  63. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/README.md +0 -46
  64. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs +0 -231
  65. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/fesm2022/africanies-africanies-theme.mjs.map +0 -1
  66. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/package.json +0 -35
  67. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/tailwind-preset.cjs +0 -262
  68. package/.nx/cache/6673686859704879504/dist/libs/africanies-theme/types/africanies-africanies-theme.d.ts +0 -174
  69. package/.nx/cache/9040451482998546630/dist/libs/africanies-core/README.md +0 -85
  70. package/.nx/cache/9040451482998546630/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs +0 -4511
  71. package/.nx/cache/9040451482998546630/dist/libs/africanies-core/fesm2022/africanies-africanies-core.mjs.map +0 -1
  72. package/.nx/cache/9040451482998546630/dist/libs/africanies-core/package.json +0 -31
  73. package/.nx/cache/9040451482998546630/dist/libs/africanies-core/types/africanies-africanies-core.d.ts +0 -2741
  74. package/.nx/cache/terminalOutputs/13466509747676776487 +0 -21
  75. package/.nx/cache/terminalOutputs/13555699813138069787 +0 -6
  76. package/.nx/cache/terminalOutputs/14061940909886036014 +0 -173
  77. package/.nx/cache/terminalOutputs/14416694322692463866 +0 -108
  78. package/.nx/cache/terminalOutputs/1446890025183346611 +0 -32
  79. package/.nx/cache/terminalOutputs/14876618240301288353 +0 -21
  80. package/.nx/cache/terminalOutputs/17394769338046050914 +0 -8
  81. package/.nx/cache/terminalOutputs/17626862048742598274 +0 -21
  82. package/.nx/cache/terminalOutputs/6337357866566791975 +0 -6
  83. package/.nx/cache/terminalOutputs/6664915487114632770 +0 -44
  84. package/.nx/cache/terminalOutputs/6673686859704879504 +0 -21
  85. package/.nx/cache/terminalOutputs/783228502946611950 +0 -19
  86. package/.nx/cache/terminalOutputs/7978448102466861029 +0 -32
  87. package/.nx/cache/terminalOutputs/9040451482998546630 +0 -21
  88. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/README.md +0 -0
  89. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/assets/brand/africanies-logo-mini.png +0 -0
  90. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/assets/brand/africanies-logo.png +0 -0
  91. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/assets/brand/africanies-logo.svg +0 -0
  92. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/assets/carriers/dhl.svg +0 -0
  93. /package/.nx/cache/{14876618240301288353 → 7821397806208783174}/dist/libs/africanies-ui/package.json +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"africanies-africanies-icons.mjs","sources":["../../../../libs/africanies-icons/src/lib/icon-registry.service.ts","../../../../libs/africanies-icons/src/lib/africanies-icon.component.ts","../../../../libs/africanies-icons/src/lib/icon-name.ts","../../../../libs/africanies-icons/src/africanies-africanies-icons.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n inject,\n Injectable,\n InjectionToken,\n} from '@angular/core';\n\n/**\n * URL of the SVG sprite served by the host application.\n *\n * Default assumes the published asset is copied to\n * `/assets/africanies-icons/icons.sprite.svg` (see package README). The leading\n * slash is required: Angular `[src]` / `fetch()` resolve relative URLs\n * against the current route (`/login/assets/…`), not `<base href=\"/\">`.\n * Override when the host uses a CDN or a different assets path.\n */\nexport const AFRICANIES_ICON_SPRITE_URL = new InjectionToken<string>(\n 'AFRICANIES_ICON_SPRITE_URL',\n {\n providedIn: 'root',\n factory: () => '/assets/africanies-icons/icons.sprite.svg',\n },\n);\n\n/**\n * Fetches and inlines the icon sprite once into `document.body`.\n *\n * WHY inline (not external `<use href=\"sprite.svg#id\">`):\n * - External fragment references break under some CSP / cross-origin setups.\n * - Inlining once lets every `<africanies-icon>` use cheap `#symbol-id` hrefs and\n * keeps a single network request for 600+ icons.\n *\n * Call {@link ensureLoaded} from `AfricaniesIconComponent` (or app bootstrap). Safe\n * to invoke repeatedly — concurrent callers share one in-flight promise.\n */\n@Injectable({ providedIn: 'root' })\nexport class IconRegistryService {\n private readonly document = inject(DOCUMENT);\n private readonly spriteUrl = inject(AFRICANIES_ICON_SPRITE_URL);\n\n private loadPromise: Promise<void> | null = null;\n private loaded = false;\n\n /**\n * Ensures the sprite `<svg>` is present in the DOM.\n *\n * @returns Resolves when the sprite is inlined (or already present).\n * @throws {Error} When the sprite URL cannot be fetched.\n */\n ensureLoaded(): Promise<void> {\n if (this.loaded) {\n return Promise.resolve();\n }\n if (this.loadPromise) {\n return this.loadPromise;\n }\n\n this.loadPromise = this.fetchAndInline().finally(() => {\n this.loadPromise = null;\n });\n return this.loadPromise;\n }\n\n /**\n * Whether the sprite has been successfully inlined.\n *\n * @returns `true` after a successful {@link ensureLoaded}.\n */\n isLoaded(): boolean {\n return this.loaded;\n }\n\n private async fetchAndInline(): Promise<void> {\n if (this.document.getElementById('africanies-icon-sprite')) {\n this.loaded = true;\n return;\n }\n\n const response = await fetch(this.spriteUrl);\n if (!response.ok) {\n throw new Error(\n `Failed to load AFRICANIES icon sprite from \"${this.spriteUrl}\" (${response.status})`,\n );\n }\n\n const markup = await response.text();\n const container = this.document.createElement('div');\n container.id = 'africanies-icon-sprite';\n container.setAttribute('hidden', '');\n container.setAttribute('aria-hidden', 'true');\n // WHY innerHTML: sprite is trusted first-party SVG from this package.\n container.innerHTML = markup;\n this.document.body.prepend(container);\n this.loaded = true;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n} from '@angular/core';\n\nimport type { IconName } from './icon-name';\nimport { IconRegistryService } from './icon-registry.service';\n\n/**\n * Renders a single icon from the shared SVG sprite.\n *\n * WHY sprite + `<use>`: one network fetch (via {@link IconRegistryService})\n * serves every icon instead of shipping hundreds of Angular components or\n * individual SVG HTTP requests.\n *\n * Host apps must serve `icons.sprite.svg` (see package README) or override\n * {@link AFRICANIES_ICON_SPRITE_URL}.\n *\n * @example\n * ```html\n * <africanies-icon name=\"truck\" />\n * <africanies-icon name=\"search\" [size]=\"32\" />\n * ```\n */\n@Component({\n selector: 'africanies-icon',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <svg\n [attr.width]=\"resolvedSize()\"\n [attr.height]=\"resolvedSize()\"\n [attr.aria-hidden]=\"true\"\n focusable=\"false\"\n part=\"svg\"\n >\n <use [attr.href]=\"href()\" />\n </svg>\n `,\n styles: `\n :host {\n display: inline-flex;\n line-height: 0;\n vertical-align: middle;\n /* Inherit surrounding text so dark:text-white / mode accents paint the glyph. */\n color: inherit;\n }\n\n svg {\n display: block;\n fill: currentColor;\n color: inherit;\n }\n `,\n host: {\n '[attr.data-icon]': 'name()',\n },\n})\nexport class AfricaniesIconComponent {\n private readonly registry = inject(IconRegistryService);\n\n /**\n * Icon id matching a `<symbol>` in the sprite / {@link IconName} union.\n */\n readonly name = input.required<IconName>();\n\n /**\n * CSS pixel size for width and height. Accepts a number (`24`) or CSS length\n * (`'1.5rem'`). Defaults to `24`.\n */\n readonly size = input<number | string>(24);\n\n constructor() {\n // Kick off sprite load on first icon render; failures surface as rejected\n // promises / console errors rather than blanking the whole app.\n effect(() => {\n // Track name so HMR / late registry overrides still trigger ensureLoaded.\n void this.name();\n void this.registry.ensureLoaded().catch((err: unknown) => {\n console.error('[africanies-icon] sprite load failed', err);\n });\n });\n }\n\n /**\n * Fragment href into the inlined sprite (`#truck`).\n *\n * @returns Hash fragment pointing at the named symbol.\n */\n protected href(): string {\n return `#${this.name()}`;\n }\n\n /**\n * Normalized size attribute value.\n *\n * @returns Size as a string suitable for the SVG `width`/`height` attrs.\n */\n protected resolvedSize(): string {\n const value = this.size();\n return typeof value === 'number' ? String(value) : value;\n }\n}\n","/**\n * Generated by `tools/build-icon-sprite.mjs` — do not edit by hand.\n *\n * Closed list of every symbol id in `icons.sprite.svg` so typos fail at\n * compile time, editors autocomplete valid names, and the playground gallery\n * can iterate without maintaining a second list.\n *\n * To add an icon: drop an SVG into `/svg`, then run `npm run icons:build`.\n */\nexport const ICON_NAMES = [\n 'abacus',\n 'absolute-position',\n 'academy-cap',\n 'accessibility',\n 'accordion-menu',\n 'add-dock',\n 'adjust',\n 'adobe-flash',\n 'airplane',\n 'alarm',\n 'align-center',\n 'align-justify',\n 'align-left',\n 'align-right',\n 'alt-a',\n 'alt',\n 'ambulance',\n 'anchor',\n 'angle-double-down',\n 'angle-double-left',\n 'angle-double-right',\n 'angle-double-up',\n 'angle-down',\n 'angle-left',\n 'angle-right',\n 'angle-up',\n 'archive',\n 'archives',\n 'area-select',\n 'arrow-backward',\n 'arrow-circle-down-o',\n 'arrow-circle-down',\n 'arrow-circle-left-o',\n 'arrow-circle-left',\n 'arrow-circle-right-o',\n 'arrow-circle-right',\n 'arrow-circle-up-o',\n 'arrow-circle-up',\n 'arrow-down',\n 'arrow-forward',\n 'arrow-left',\n 'arrow-long-down',\n 'arrow-long-left',\n 'arrow-right',\n 'arrow-up',\n 'arrows-cross',\n 'arrows-long-h',\n 'arrows-long-right',\n 'arrows-long-up',\n 'arrows-long-v',\n 'arrows',\n 'asterisk',\n 'at',\n 'automation',\n 'backspace-a',\n 'backspace',\n 'backwards',\n 'ban',\n 'bar-chart-h',\n 'bar-chart-v',\n 'bar-chart',\n 'barcode',\n 'bed',\n 'bell-o',\n 'bell-slash-o',\n 'bell-slash',\n 'bell',\n 'boat',\n 'bold',\n 'bolt',\n 'bomb',\n 'book-dollar',\n 'book-percent',\n 'book',\n 'bookmark-o',\n 'bookmark',\n 'briefcase',\n 'browser',\n 'bug-o',\n 'bug',\n 'building-o',\n 'building',\n 'bullets',\n 'bullseye',\n 'bus',\n 'button',\n 'calc-book',\n 'calc',\n 'calendar-briefcase',\n 'calendar-clock',\n 'calendar-envelope',\n 'calendar-o',\n 'calendar-user',\n 'calendar',\n 'camera',\n 'car',\n 'caret-down',\n 'caret-left',\n 'caret-right',\n 'caret-square-down-o',\n 'caret-square-left-o',\n 'caret-square-right-o',\n 'caret-square-up-o',\n 'caret-up',\n 'cart-o',\n 'cart',\n 'cash',\n 'chart-3d',\n 'chart-grid',\n 'chart-line',\n 'chart-timeline',\n 'chart',\n 'chat',\n 'check-circle-o',\n 'check-circle',\n 'check-square-o',\n 'check-square',\n 'check',\n 'chevron-circle-down-o',\n 'chevron-circle-down',\n 'chevron-circle-left-o',\n 'chevron-circle-left',\n 'chevron-circle-right-o',\n 'chevron-circle-right',\n 'chevron-circle-up-o',\n 'chevron-circle-up',\n 'chevron-down-small',\n 'chevron-down',\n 'chevron-left-small',\n 'chevron-left',\n 'chevron-right-small',\n 'chevron-right',\n 'chevron-up-small',\n 'chevron-up',\n 'child',\n 'circle-thin',\n 'circle',\n 'clipboard-check',\n 'clipboard-cross',\n 'clipboard-heart',\n 'clipboard-pulse',\n 'clipboard-text',\n 'clipboard-user',\n 'clipboard',\n 'clock',\n 'close-big',\n 'close-circle-o',\n 'close-circle',\n 'close-small',\n 'close',\n 'cloud-download-o',\n 'cloud-download',\n 'cloud-o',\n 'cloud-upload-o',\n 'cloud-upload',\n 'cloud',\n 'cluster',\n 'code',\n 'coffee',\n 'cog-o',\n 'cog',\n 'cogs',\n 'coin-piles',\n 'coins',\n 'combobox',\n 'comment-ellipsis-o',\n 'comment-ellipsis',\n 'comment-o',\n 'comment',\n 'comments-o',\n 'comments',\n 'compile',\n 'compress-square',\n 'compress',\n 'connect-o',\n 'connect',\n 'controller',\n 'copy-o',\n 'copy',\n 'copyright',\n 'corner-lower-left',\n 'corner-lower-right',\n 'corner-upper-left',\n 'corner-upper-right',\n 'credit-card',\n 'crop',\n 'cross-cutlery',\n 'crosshairs',\n 'css',\n 'ctrl-a',\n 'ctrl',\n 'cube',\n 'cubes',\n 'curly-brackets',\n 'cursor-o',\n 'cursor',\n 'cutlery',\n 'dashboard',\n 'database',\n 'date-input',\n 'deindent',\n 'del-a',\n 'del',\n 'dental-chair',\n 'desktop',\n 'diamond-o',\n 'diamond',\n 'diasporan-partner',\n 'diploma-scroll',\n 'diploma',\n 'disc',\n 'doctor-briefcase',\n 'doctor',\n 'dollar',\n 'dot-circle',\n 'download-alt',\n 'download',\n 'drop',\n 'edit',\n 'eject',\n 'elastic',\n 'ellipsis-circle-o',\n 'ellipsis-circle',\n 'ellipsis-dots-h',\n 'ellipsis-dots-v',\n 'ellipsis-h',\n 'ellipsis-v',\n 'enter-arrow',\n 'enter',\n 'envelope-o',\n 'envelope-open-o',\n 'envelope-open',\n 'envelope',\n 'envelopes-o',\n 'envelopes',\n 'eraser',\n 'esc-a',\n 'esc',\n 'euro',\n 'exchange',\n 'exclamation-circle-o',\n 'exclamation-circle',\n 'exclamation',\n 'exit-o',\n 'exit',\n 'expand-full',\n 'expand-square',\n 'expand',\n 'external-browser',\n 'external-link',\n 'eye-slash',\n 'eye',\n 'eyedropper',\n 'facebook-square',\n 'facebook',\n 'factory',\n 'family',\n 'fast-backward',\n 'fast-forward',\n 'female',\n 'file-add',\n 'file-code',\n 'file-font',\n 'file-movie',\n 'file-o',\n 'file-picture',\n 'file-presentation',\n 'file-process',\n 'file-refresh',\n 'file-remove',\n 'file-search',\n 'file-sound',\n 'file-start',\n 'file-table',\n 'file-text-o',\n 'file-text',\n 'file-tree-small',\n 'file-tree-sub',\n 'file-tree',\n 'file-zip',\n 'file',\n 'fill',\n 'film',\n 'filter',\n 'fire',\n 'flag-checkered',\n 'flag-o',\n 'flag',\n 'flash',\n 'flask',\n 'flight-landing',\n 'flight-takeoff',\n 'flip-h',\n 'flip-v',\n 'folder-add',\n 'folder-o',\n 'folder-open-o',\n 'folder-open',\n 'folder-remove',\n 'folder-search',\n 'folder',\n 'font',\n 'form',\n 'forward',\n 'frown-o',\n 'funcion',\n 'funnel',\n 'gamepad',\n 'gavel',\n 'gift',\n 'glass',\n 'glasses',\n 'globe-wire',\n 'globe',\n 'golf',\n 'google-plus-square',\n 'google-plus',\n 'grab',\n 'grid-bevel',\n 'grid-big-o',\n 'grid-big',\n 'grid-h',\n 'grid-small-o',\n 'grid-small',\n 'grid-v',\n 'grid',\n 'group',\n 'hammer',\n 'hand',\n 'handle-corner',\n 'hands-up',\n 'handshake',\n 'harddrive-o',\n 'harddrive',\n 'hash',\n 'header',\n 'headphones',\n 'headset',\n 'health-card',\n 'heart-o',\n 'heart',\n 'home-o',\n 'home',\n 'hospital',\n 'hourglass-empty',\n 'hourglass-end',\n 'hourglass-start',\n 'hourglass',\n 'inbox',\n 'indent',\n 'info-circle-o',\n 'info-circle',\n 'info',\n 'input',\n 'insert',\n 'institution',\n 'invoice',\n 'italic',\n 'key-o',\n 'key',\n 'keyboard-o',\n 'keyboard',\n 'laptop',\n 'layout',\n 'level-down-bold',\n 'level-down',\n 'level-left-bold',\n 'level-left',\n 'level-right-bold',\n 'level-right',\n 'level-up-bold',\n 'level-up',\n 'lifebuoy',\n 'lightbulb',\n 'line-bar-chart',\n 'line-chart',\n 'line-h',\n 'line-v',\n 'lines-list',\n 'lines',\n 'link',\n 'list-ol',\n 'list-select',\n 'list-ul',\n 'list',\n 'location-arrow-circle-o',\n 'location-arrow-circle',\n 'location-arrow',\n 'lock',\n 'magic',\n 'magnet',\n 'mailbox',\n 'male',\n 'map-marker',\n 'margin-bottom',\n 'margin-left',\n 'margin-right',\n 'margin-top',\n 'margin',\n 'medal',\n 'megaphone',\n 'meh-o',\n 'menu',\n 'microphone',\n 'mini-partner',\n 'minus-circle-o',\n 'minus-circle',\n 'minus-square-o',\n 'minus',\n 'mobile-browser',\n 'mobile-retro',\n 'mobile',\n 'modal-list',\n 'modal',\n 'money-deposit',\n 'money-exchange',\n 'money-withdraw',\n 'money',\n 'moon-o',\n 'moon',\n 'morning',\n 'movie',\n 'music',\n 'mute',\n 'native-button',\n 'newspaper',\n 'notebook',\n 'number-count',\n 'nurse',\n 'office',\n 'open-book',\n 'option-a',\n 'option',\n 'options',\n 'orientation',\n 'out',\n 'outbox',\n 'package',\n 'padding-bottom',\n 'padding-left',\n 'padding-right',\n 'padding-top',\n 'padding',\n 'paint-roll',\n 'paintbrush',\n 'palette',\n 'panel',\n 'paperclip',\n 'paperplane-o',\n 'paperplane',\n 'paragraph',\n 'partner',\n 'password',\n 'paste',\n 'pause',\n 'pencil',\n 'phone-landline',\n 'phone',\n 'picture',\n 'pie-bar-chart',\n 'pie-chart',\n 'piggy-bank-coin',\n 'piggy-bank',\n 'pill',\n 'pills',\n 'pin-post',\n 'pin',\n 'play-circle-o',\n 'play-circle',\n 'play',\n 'plug',\n 'plus-circle-o',\n 'plus-circle',\n 'plus-minus',\n 'plus-square-o',\n 'plus',\n 'pointer',\n 'power-off',\n 'presentation',\n 'print',\n 'progressbar',\n 'puzzle-piece',\n 'pyramid-chart',\n 'qrcode',\n 'question-circle-o',\n 'question-circle',\n 'question',\n 'quote-left',\n 'quote-right',\n 'random',\n 'raster-lower-left',\n 'raster',\n 'records',\n 'recycle',\n 'refresh',\n 'reply-all',\n 'reply',\n 'resize-h',\n 'resize-v',\n 'retweet',\n 'rhombus',\n 'road-branch',\n 'road-branches',\n 'road-split',\n 'road',\n 'rocket',\n 'rotate-left',\n 'rotate-right',\n 'rss-square',\n 'rss',\n 'safe-lock',\n 'safe',\n 'scale-unbalance',\n 'scale',\n 'scatter-chart',\n 'scissors',\n 'screwdriver',\n 'search-minus',\n 'search-plus',\n 'search',\n 'select',\n 'server',\n 'share-square',\n 'share',\n 'shield',\n 'shift-arrow',\n 'shift',\n 'shop',\n 'sign-in-alt',\n 'sign-in',\n 'sign-out-alt',\n 'sign-out',\n 'signal',\n 'sitemap',\n 'slider',\n 'sliders',\n 'smiley-o',\n 'sort',\n 'sound-disable',\n 'spark-line',\n 'specialist',\n 'spinner-arc',\n 'spinner-third',\n 'spinner',\n 'spline-area-chart',\n 'spline-chart',\n 'split-h',\n 'split-v',\n 'split',\n 'spoon',\n 'square-shadow',\n 'star-half-left-o',\n 'star-half-left',\n 'star-half-right-o',\n 'star-half-right',\n 'star-o',\n 'star',\n 'start-cog',\n 'step-backward',\n 'step-forward',\n 'stethoscope',\n 'stock',\n 'stop-cog',\n 'stop',\n 'stopwatch',\n 'storage',\n 'strikethrough',\n 'subscript',\n 'suitcase',\n 'sun-down',\n 'sun-o',\n 'sun-rise',\n 'superscript',\n 'sword',\n 'tab-a',\n 'tab',\n 'table',\n 'tablet',\n 'tabs',\n 'tag',\n 'tags',\n 'tasks',\n 'taxi',\n 'teeth',\n 'terminal',\n 'text-height',\n 'text-input',\n 'text-label',\n 'text-width',\n 'thin-square',\n 'thumbs-down-o',\n 'thumbs-down',\n 'thumbs-up-o',\n 'thumbs-up',\n 'ticket',\n 'time-backward',\n 'time-forward',\n 'timer',\n 'toolbox',\n 'tools',\n 'tooth',\n 'touch',\n 'train',\n 'trash',\n 'tree-table',\n 'trending-down',\n 'trending-up',\n 'trophy',\n 'truck',\n 'twin-col-select',\n 'twitter-square',\n 'twitter',\n 'umbrella',\n 'underline',\n 'unlink',\n 'unlock',\n 'upload-alt',\n 'upload',\n 'user-card',\n 'user-check',\n 'user-clock',\n 'user-heart',\n 'user-star',\n 'user',\n 'users',\n 'vaadin-h',\n 'vaadin-v',\n 'viewport',\n 'vimeo-square',\n 'vimeo',\n 'volume-down',\n 'volume-off',\n 'volume-up',\n 'volume',\n 'wallet',\n 'warehouse',\n 'warning',\n 'workplace',\n 'wrench',\n 'youtube-square',\n 'youtube',\n] as const;\n\n/**\n * Union of every icon id in {@link ICON_NAMES}.\n */\nexport type IconName = (typeof ICON_NAMES)[number];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAOA;;;;;;;;AAQG;MACU,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B,EAC5B;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,2CAA2C;AAC3D,CAAA;AAGH;;;;;;;;;;AAUG;MAEU,mBAAmB,CAAA;AACb,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,SAAS,GAAG,MAAM,CAAC,0BAA0B,CAAC;IAEvD,WAAW,GAA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;IACV,cAAc;IACd,OAAO;IACP,aAAa;IACb,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,SAAS;IACT,WAAW;IACX,QAAQ;IACR,gBAAgB;IAChB,SAAS;;;AC1oBX;;AAEG;;;;"}
@@ -1,30 +0,0 @@
1
- {
2
- "name": "@africanies/africanies-icons",
3
- "version": "0.0.1",
4
- "peerDependencies": {
5
- "@angular/common": "^22.0.0",
6
- "@angular/core": "^22.0.0"
7
- },
8
- "sideEffects": false,
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "files": [
13
- "**/*"
14
- ],
15
- "module": "fesm2022/africanies-africanies-icons.mjs",
16
- "typings": "types/africanies-africanies-icons.d.ts",
17
- "exports": {
18
- "./package.json": {
19
- "default": "./package.json"
20
- },
21
- ".": {
22
- "types": "./types/africanies-africanies-icons.d.ts",
23
- "default": "./fesm2022/africanies-africanies-icons.mjs"
24
- }
25
- },
26
- "type": "module",
27
- "dependencies": {
28
- "tslib": "^2.3.0"
29
- }
30
- }
@@ -1,108 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken } from '@angular/core';
3
-
4
- /**
5
- * Renders a single icon from the shared SVG sprite.
6
- *
7
- * WHY sprite + `<use>`: one network fetch (via {@link IconRegistryService})
8
- * serves every icon instead of shipping hundreds of Angular components or
9
- * individual SVG HTTP requests.
10
- *
11
- * Host apps must serve `icons.sprite.svg` (see package README) or override
12
- * {@link AFRICANIES_ICON_SPRITE_URL}.
13
- *
14
- * @example
15
- * ```html
16
- * <africanies-icon name="truck" />
17
- * <africanies-icon name="search" [size]="32" />
18
- * ```
19
- */
20
- declare class AfricaniesIconComponent {
21
- private readonly registry;
22
- /**
23
- * Icon id matching a `<symbol>` in the sprite / {@link IconName} union.
24
- */
25
- readonly name: i0.InputSignal<"abacus" | "absolute-position" | "academy-cap" | "accessibility" | "accordion-menu" | "add-dock" | "adjust" | "adobe-flash" | "airplane" | "alarm" | "align-center" | "align-justify" | "align-left" | "align-right" | "alt-a" | "alt" | "ambulance" | "anchor" | "angle-double-down" | "angle-double-left" | "angle-double-right" | "angle-double-up" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "archive" | "archives" | "area-select" | "arrow-backward" | "arrow-circle-down-o" | "arrow-circle-down" | "arrow-circle-left-o" | "arrow-circle-left" | "arrow-circle-right-o" | "arrow-circle-right" | "arrow-circle-up-o" | "arrow-circle-up" | "arrow-down" | "arrow-forward" | "arrow-left" | "arrow-long-down" | "arrow-long-left" | "arrow-right" | "arrow-up" | "arrows-cross" | "arrows-long-h" | "arrows-long-right" | "arrows-long-up" | "arrows-long-v" | "arrows" | "asterisk" | "at" | "automation" | "backspace-a" | "backspace" | "backwards" | "ban" | "bar-chart-h" | "bar-chart-v" | "bar-chart" | "barcode" | "bed" | "bell-o" | "bell-slash-o" | "bell-slash" | "bell" | "boat" | "bold" | "bolt" | "bomb" | "book-dollar" | "book-percent" | "book" | "bookmark-o" | "bookmark" | "briefcase" | "browser" | "bug-o" | "bug" | "building-o" | "building" | "bullets" | "bullseye" | "bus" | "button" | "calc-book" | "calc" | "calendar-briefcase" | "calendar-clock" | "calendar-envelope" | "calendar-o" | "calendar-user" | "calendar" | "camera" | "car" | "caret-down" | "caret-left" | "caret-right" | "caret-square-down-o" | "caret-square-left-o" | "caret-square-right-o" | "caret-square-up-o" | "caret-up" | "cart-o" | "cart" | "cash" | "chart-3d" | "chart-grid" | "chart-line" | "chart-timeline" | "chart" | "chat" | "check-circle-o" | "check-circle" | "check-square-o" | "check-square" | "check" | "chevron-circle-down-o" | "chevron-circle-down" | "chevron-circle-left-o" | "chevron-circle-left" | "chevron-circle-right-o" | "chevron-circle-right" | "chevron-circle-up-o" | "chevron-circle-up" | "chevron-down-small" | "chevron-down" | "chevron-left-small" | "chevron-left" | "chevron-right-small" | "chevron-right" | "chevron-up-small" | "chevron-up" | "child" | "circle-thin" | "circle" | "clipboard-check" | "clipboard-cross" | "clipboard-heart" | "clipboard-pulse" | "clipboard-text" | "clipboard-user" | "clipboard" | "clock" | "close-big" | "close-circle-o" | "close-circle" | "close-small" | "close" | "cloud-download-o" | "cloud-download" | "cloud-o" | "cloud-upload-o" | "cloud-upload" | "cloud" | "cluster" | "code" | "coffee" | "cog-o" | "cog" | "cogs" | "coin-piles" | "coins" | "combobox" | "comment-ellipsis-o" | "comment-ellipsis" | "comment-o" | "comment" | "comments-o" | "comments" | "compile" | "compress-square" | "compress" | "connect-o" | "connect" | "controller" | "copy-o" | "copy" | "copyright" | "corner-lower-left" | "corner-lower-right" | "corner-upper-left" | "corner-upper-right" | "credit-card" | "crop" | "cross-cutlery" | "crosshairs" | "css" | "ctrl-a" | "ctrl" | "cube" | "cubes" | "curly-brackets" | "cursor-o" | "cursor" | "cutlery" | "dashboard" | "database" | "date-input" | "deindent" | "del-a" | "del" | "dental-chair" | "desktop" | "diamond-o" | "diamond" | "diasporan-partner" | "diploma-scroll" | "diploma" | "disc" | "doctor-briefcase" | "doctor" | "dollar" | "dot-circle" | "download-alt" | "download" | "drop" | "edit" | "eject" | "elastic" | "ellipsis-circle-o" | "ellipsis-circle" | "ellipsis-dots-h" | "ellipsis-dots-v" | "ellipsis-h" | "ellipsis-v" | "enter-arrow" | "enter" | "envelope-o" | "envelope-open-o" | "envelope-open" | "envelope" | "envelopes-o" | "envelopes" | "eraser" | "esc-a" | "esc" | "euro" | "exchange" | "exclamation-circle-o" | "exclamation-circle" | "exclamation" | "exit-o" | "exit" | "expand-full" | "expand-square" | "expand" | "external-browser" | "external-link" | "eye-slash" | "eye" | "eyedropper" | "facebook-square" | "facebook" | "factory" | "family" | "fast-backward" | "fast-forward" | "female" | "file-add" | "file-code" | "file-font" | "file-movie" | "file-o" | "file-picture" | "file-presentation" | "file-process" | "file-refresh" | "file-remove" | "file-search" | "file-sound" | "file-start" | "file-table" | "file-text-o" | "file-text" | "file-tree-small" | "file-tree-sub" | "file-tree" | "file-zip" | "file" | "fill" | "film" | "filter" | "fire" | "flag-checkered" | "flag-o" | "flag" | "flash" | "flask" | "flight-landing" | "flight-takeoff" | "flip-h" | "flip-v" | "folder-add" | "folder-o" | "folder-open-o" | "folder-open" | "folder-remove" | "folder-search" | "folder" | "font" | "form" | "forward" | "frown-o" | "funcion" | "funnel" | "gamepad" | "gavel" | "gift" | "glass" | "glasses" | "globe-wire" | "globe" | "golf" | "google-plus-square" | "google-plus" | "grab" | "grid-bevel" | "grid-big-o" | "grid-big" | "grid-h" | "grid-small-o" | "grid-small" | "grid-v" | "grid" | "group" | "hammer" | "hand" | "handle-corner" | "hands-up" | "handshake" | "harddrive-o" | "harddrive" | "hash" | "header" | "headphones" | "headset" | "health-card" | "heart-o" | "heart" | "home-o" | "home" | "hospital" | "hourglass-empty" | "hourglass-end" | "hourglass-start" | "hourglass" | "inbox" | "indent" | "info-circle-o" | "info-circle" | "info" | "input" | "insert" | "institution" | "invoice" | "italic" | "key-o" | "key" | "keyboard-o" | "keyboard" | "laptop" | "layout" | "level-down-bold" | "level-down" | "level-left-bold" | "level-left" | "level-right-bold" | "level-right" | "level-up-bold" | "level-up" | "lifebuoy" | "lightbulb" | "line-bar-chart" | "line-chart" | "line-h" | "line-v" | "lines-list" | "lines" | "link" | "list-ol" | "list-select" | "list-ul" | "list" | "location-arrow-circle-o" | "location-arrow-circle" | "location-arrow" | "lock" | "magic" | "magnet" | "mailbox" | "male" | "map-marker" | "margin-bottom" | "margin-left" | "margin-right" | "margin-top" | "margin" | "medal" | "megaphone" | "meh-o" | "menu" | "microphone" | "mini-partner" | "minus-circle-o" | "minus-circle" | "minus-square-o" | "minus" | "mobile-browser" | "mobile-retro" | "mobile" | "modal-list" | "modal" | "money-deposit" | "money-exchange" | "money-withdraw" | "money" | "moon-o" | "moon" | "morning" | "movie" | "music" | "mute" | "native-button" | "newspaper" | "notebook" | "number-count" | "nurse" | "office" | "open-book" | "option-a" | "option" | "options" | "orientation" | "out" | "outbox" | "package" | "padding-bottom" | "padding-left" | "padding-right" | "padding-top" | "padding" | "paint-roll" | "paintbrush" | "palette" | "panel" | "paperclip" | "paperplane-o" | "paperplane" | "paragraph" | "partner" | "password" | "paste" | "pause" | "pencil" | "phone-landline" | "phone" | "picture" | "pie-bar-chart" | "pie-chart" | "piggy-bank-coin" | "piggy-bank" | "pill" | "pills" | "pin-post" | "pin" | "play-circle-o" | "play-circle" | "play" | "plug" | "plus-circle-o" | "plus-circle" | "plus-minus" | "plus-square-o" | "plus" | "pointer" | "power-off" | "presentation" | "print" | "progressbar" | "puzzle-piece" | "pyramid-chart" | "qrcode" | "question-circle-o" | "question-circle" | "question" | "quote-left" | "quote-right" | "random" | "raster-lower-left" | "raster" | "records" | "recycle" | "refresh" | "reply-all" | "reply" | "resize-h" | "resize-v" | "retweet" | "rhombus" | "road-branch" | "road-branches" | "road-split" | "road" | "rocket" | "rotate-left" | "rotate-right" | "rss-square" | "rss" | "safe-lock" | "safe" | "scale-unbalance" | "scale" | "scatter-chart" | "scissors" | "screwdriver" | "search-minus" | "search-plus" | "search" | "select" | "server" | "share-square" | "share" | "shield" | "shift-arrow" | "shift" | "shop" | "sign-in-alt" | "sign-in" | "sign-out-alt" | "sign-out" | "signal" | "sitemap" | "slider" | "sliders" | "smiley-o" | "sort" | "sound-disable" | "spark-line" | "specialist" | "spinner-arc" | "spinner-third" | "spinner" | "spline-area-chart" | "spline-chart" | "split-h" | "split-v" | "split" | "spoon" | "square-shadow" | "star-half-left-o" | "star-half-left" | "star-half-right-o" | "star-half-right" | "star-o" | "star" | "start-cog" | "step-backward" | "step-forward" | "stethoscope" | "stock" | "stop-cog" | "stop" | "stopwatch" | "storage" | "strikethrough" | "subscript" | "suitcase" | "sun-down" | "sun-o" | "sun-rise" | "superscript" | "sword" | "tab-a" | "tab" | "table" | "tablet" | "tabs" | "tag" | "tags" | "tasks" | "taxi" | "teeth" | "terminal" | "text-height" | "text-input" | "text-label" | "text-width" | "thin-square" | "thumbs-down-o" | "thumbs-down" | "thumbs-up-o" | "thumbs-up" | "ticket" | "time-backward" | "time-forward" | "timer" | "toolbox" | "tools" | "tooth" | "touch" | "train" | "trash" | "tree-table" | "trending-down" | "trending-up" | "trophy" | "truck" | "twin-col-select" | "twitter-square" | "twitter" | "umbrella" | "underline" | "unlink" | "unlock" | "upload-alt" | "upload" | "user-card" | "user-check" | "user-clock" | "user-heart" | "user-star" | "user" | "users" | "vaadin-h" | "vaadin-v" | "viewport" | "vimeo-square" | "vimeo" | "volume-down" | "volume-off" | "volume-up" | "volume" | "wallet" | "warehouse" | "warning" | "workplace" | "wrench" | "youtube-square" | "youtube">;
26
- /**
27
- * CSS pixel size for width and height. Accepts a number (`24`) or CSS length
28
- * (`'1.5rem'`). Defaults to `24`.
29
- */
30
- readonly size: i0.InputSignal<string | number>;
31
- constructor();
32
- /**
33
- * Fragment href into the inlined sprite (`#truck`).
34
- *
35
- * @returns Hash fragment pointing at the named symbol.
36
- */
37
- protected href(): string;
38
- /**
39
- * Normalized size attribute value.
40
- *
41
- * @returns Size as a string suitable for the SVG `width`/`height` attrs.
42
- */
43
- protected resolvedSize(): string;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<AfricaniesIconComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<AfricaniesIconComponent, "africanies-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
46
- }
47
-
48
- /**
49
- * Generated by `tools/build-icon-sprite.mjs` — do not edit by hand.
50
- *
51
- * Closed list of every symbol id in `icons.sprite.svg` so typos fail at
52
- * compile time, editors autocomplete valid names, and the playground gallery
53
- * can iterate without maintaining a second list.
54
- *
55
- * To add an icon: drop an SVG into `/svg`, then run `npm run icons:build`.
56
- */
57
- declare const ICON_NAMES: readonly ["abacus", "absolute-position", "academy-cap", "accessibility", "accordion-menu", "add-dock", "adjust", "adobe-flash", "airplane", "alarm", "align-center", "align-justify", "align-left", "align-right", "alt-a", "alt", "ambulance", "anchor", "angle-double-down", "angle-double-left", "angle-double-right", "angle-double-up", "angle-down", "angle-left", "angle-right", "angle-up", "archive", "archives", "area-select", "arrow-backward", "arrow-circle-down-o", "arrow-circle-down", "arrow-circle-left-o", "arrow-circle-left", "arrow-circle-right-o", "arrow-circle-right", "arrow-circle-up-o", "arrow-circle-up", "arrow-down", "arrow-forward", "arrow-left", "arrow-long-down", "arrow-long-left", "arrow-right", "arrow-up", "arrows-cross", "arrows-long-h", "arrows-long-right", "arrows-long-up", "arrows-long-v", "arrows", "asterisk", "at", "automation", "backspace-a", "backspace", "backwards", "ban", "bar-chart-h", "bar-chart-v", "bar-chart", "barcode", "bed", "bell-o", "bell-slash-o", "bell-slash", "bell", "boat", "bold", "bolt", "bomb", "book-dollar", "book-percent", "book", "bookmark-o", "bookmark", "briefcase", "browser", "bug-o", "bug", "building-o", "building", "bullets", "bullseye", "bus", "button", "calc-book", "calc", "calendar-briefcase", "calendar-clock", "calendar-envelope", "calendar-o", "calendar-user", "calendar", "camera", "car", "caret-down", "caret-left", "caret-right", "caret-square-down-o", "caret-square-left-o", "caret-square-right-o", "caret-square-up-o", "caret-up", "cart-o", "cart", "cash", "chart-3d", "chart-grid", "chart-line", "chart-timeline", "chart", "chat", "check-circle-o", "check-circle", "check-square-o", "check-square", "check", "chevron-circle-down-o", "chevron-circle-down", "chevron-circle-left-o", "chevron-circle-left", "chevron-circle-right-o", "chevron-circle-right", "chevron-circle-up-o", "chevron-circle-up", "chevron-down-small", "chevron-down", "chevron-left-small", "chevron-left", "chevron-right-small", "chevron-right", "chevron-up-small", "chevron-up", "child", "circle-thin", "circle", "clipboard-check", "clipboard-cross", "clipboard-heart", "clipboard-pulse", "clipboard-text", "clipboard-user", "clipboard", "clock", "close-big", "close-circle-o", "close-circle", "close-small", "close", "cloud-download-o", "cloud-download", "cloud-o", "cloud-upload-o", "cloud-upload", "cloud", "cluster", "code", "coffee", "cog-o", "cog", "cogs", "coin-piles", "coins", "combobox", "comment-ellipsis-o", "comment-ellipsis", "comment-o", "comment", "comments-o", "comments", "compile", "compress-square", "compress", "connect-o", "connect", "controller", "copy-o", "copy", "copyright", "corner-lower-left", "corner-lower-right", "corner-upper-left", "corner-upper-right", "credit-card", "crop", "cross-cutlery", "crosshairs", "css", "ctrl-a", "ctrl", "cube", "cubes", "curly-brackets", "cursor-o", "cursor", "cutlery", "dashboard", "database", "date-input", "deindent", "del-a", "del", "dental-chair", "desktop", "diamond-o", "diamond", "diasporan-partner", "diploma-scroll", "diploma", "disc", "doctor-briefcase", "doctor", "dollar", "dot-circle", "download-alt", "download", "drop", "edit", "eject", "elastic", "ellipsis-circle-o", "ellipsis-circle", "ellipsis-dots-h", "ellipsis-dots-v", "ellipsis-h", "ellipsis-v", "enter-arrow", "enter", "envelope-o", "envelope-open-o", "envelope-open", "envelope", "envelopes-o", "envelopes", "eraser", "esc-a", "esc", "euro", "exchange", "exclamation-circle-o", "exclamation-circle", "exclamation", "exit-o", "exit", "expand-full", "expand-square", "expand", "external-browser", "external-link", "eye-slash", "eye", "eyedropper", "facebook-square", "facebook", "factory", "family", "fast-backward", "fast-forward", "female", "file-add", "file-code", "file-font", "file-movie", "file-o", "file-picture", "file-presentation", "file-process", "file-refresh", "file-remove", "file-search", "file-sound", "file-start", "file-table", "file-text-o", "file-text", "file-tree-small", "file-tree-sub", "file-tree", "file-zip", "file", "fill", "film", "filter", "fire", "flag-checkered", "flag-o", "flag", "flash", "flask", "flight-landing", "flight-takeoff", "flip-h", "flip-v", "folder-add", "folder-o", "folder-open-o", "folder-open", "folder-remove", "folder-search", "folder", "font", "form", "forward", "frown-o", "funcion", "funnel", "gamepad", "gavel", "gift", "glass", "glasses", "globe-wire", "globe", "golf", "google-plus-square", "google-plus", "grab", "grid-bevel", "grid-big-o", "grid-big", "grid-h", "grid-small-o", "grid-small", "grid-v", "grid", "group", "hammer", "hand", "handle-corner", "hands-up", "handshake", "harddrive-o", "harddrive", "hash", "header", "headphones", "headset", "health-card", "heart-o", "heart", "home-o", "home", "hospital", "hourglass-empty", "hourglass-end", "hourglass-start", "hourglass", "inbox", "indent", "info-circle-o", "info-circle", "info", "input", "insert", "institution", "invoice", "italic", "key-o", "key", "keyboard-o", "keyboard", "laptop", "layout", "level-down-bold", "level-down", "level-left-bold", "level-left", "level-right-bold", "level-right", "level-up-bold", "level-up", "lifebuoy", "lightbulb", "line-bar-chart", "line-chart", "line-h", "line-v", "lines-list", "lines", "link", "list-ol", "list-select", "list-ul", "list", "location-arrow-circle-o", "location-arrow-circle", "location-arrow", "lock", "magic", "magnet", "mailbox", "male", "map-marker", "margin-bottom", "margin-left", "margin-right", "margin-top", "margin", "medal", "megaphone", "meh-o", "menu", "microphone", "mini-partner", "minus-circle-o", "minus-circle", "minus-square-o", "minus", "mobile-browser", "mobile-retro", "mobile", "modal-list", "modal", "money-deposit", "money-exchange", "money-withdraw", "money", "moon-o", "moon", "morning", "movie", "music", "mute", "native-button", "newspaper", "notebook", "number-count", "nurse", "office", "open-book", "option-a", "option", "options", "orientation", "out", "outbox", "package", "padding-bottom", "padding-left", "padding-right", "padding-top", "padding", "paint-roll", "paintbrush", "palette", "panel", "paperclip", "paperplane-o", "paperplane", "paragraph", "partner", "password", "paste", "pause", "pencil", "phone-landline", "phone", "picture", "pie-bar-chart", "pie-chart", "piggy-bank-coin", "piggy-bank", "pill", "pills", "pin-post", "pin", "play-circle-o", "play-circle", "play", "plug", "plus-circle-o", "plus-circle", "plus-minus", "plus-square-o", "plus", "pointer", "power-off", "presentation", "print", "progressbar", "puzzle-piece", "pyramid-chart", "qrcode", "question-circle-o", "question-circle", "question", "quote-left", "quote-right", "random", "raster-lower-left", "raster", "records", "recycle", "refresh", "reply-all", "reply", "resize-h", "resize-v", "retweet", "rhombus", "road-branch", "road-branches", "road-split", "road", "rocket", "rotate-left", "rotate-right", "rss-square", "rss", "safe-lock", "safe", "scale-unbalance", "scale", "scatter-chart", "scissors", "screwdriver", "search-minus", "search-plus", "search", "select", "server", "share-square", "share", "shield", "shift-arrow", "shift", "shop", "sign-in-alt", "sign-in", "sign-out-alt", "sign-out", "signal", "sitemap", "slider", "sliders", "smiley-o", "sort", "sound-disable", "spark-line", "specialist", "spinner-arc", "spinner-third", "spinner", "spline-area-chart", "spline-chart", "split-h", "split-v", "split", "spoon", "square-shadow", "star-half-left-o", "star-half-left", "star-half-right-o", "star-half-right", "star-o", "star", "start-cog", "step-backward", "step-forward", "stethoscope", "stock", "stop-cog", "stop", "stopwatch", "storage", "strikethrough", "subscript", "suitcase", "sun-down", "sun-o", "sun-rise", "superscript", "sword", "tab-a", "tab", "table", "tablet", "tabs", "tag", "tags", "tasks", "taxi", "teeth", "terminal", "text-height", "text-input", "text-label", "text-width", "thin-square", "thumbs-down-o", "thumbs-down", "thumbs-up-o", "thumbs-up", "ticket", "time-backward", "time-forward", "timer", "toolbox", "tools", "tooth", "touch", "train", "trash", "tree-table", "trending-down", "trending-up", "trophy", "truck", "twin-col-select", "twitter-square", "twitter", "umbrella", "underline", "unlink", "unlock", "upload-alt", "upload", "user-card", "user-check", "user-clock", "user-heart", "user-star", "user", "users", "vaadin-h", "vaadin-v", "viewport", "vimeo-square", "vimeo", "volume-down", "volume-off", "volume-up", "volume", "wallet", "warehouse", "warning", "workplace", "wrench", "youtube-square", "youtube"];
58
- /**
59
- * Union of every icon id in {@link ICON_NAMES}.
60
- */
61
- type IconName = (typeof ICON_NAMES)[number];
62
-
63
- /**
64
- * URL of the SVG sprite served by the host application.
65
- *
66
- * Default assumes the published asset is copied to
67
- * `/assets/africanies-icons/icons.sprite.svg` (see package README). The leading
68
- * slash is required: Angular `[src]` / `fetch()` resolve relative URLs
69
- * against the current route (`/login/assets/…`), not `<base href="/">`.
70
- * Override when the host uses a CDN or a different assets path.
71
- */
72
- declare const AFRICANIES_ICON_SPRITE_URL: InjectionToken<string>;
73
- /**
74
- * Fetches and inlines the icon sprite once into `document.body`.
75
- *
76
- * WHY inline (not external `<use href="sprite.svg#id">`):
77
- * - External fragment references break under some CSP / cross-origin setups.
78
- * - Inlining once lets every `<africanies-icon>` use cheap `#symbol-id` hrefs and
79
- * keeps a single network request for 600+ icons.
80
- *
81
- * Call {@link ensureLoaded} from `AfricaniesIconComponent` (or app bootstrap). Safe
82
- * to invoke repeatedly — concurrent callers share one in-flight promise.
83
- */
84
- declare class IconRegistryService {
85
- private readonly document;
86
- private readonly spriteUrl;
87
- private loadPromise;
88
- private loaded;
89
- /**
90
- * Ensures the sprite `<svg>` is present in the DOM.
91
- *
92
- * @returns Resolves when the sprite is inlined (or already present).
93
- * @throws {Error} When the sprite URL cannot be fetched.
94
- */
95
- ensureLoaded(): Promise<void>;
96
- /**
97
- * Whether the sprite has been successfully inlined.
98
- *
99
- * @returns `true` after a successful {@link ensureLoaded}.
100
- */
101
- isLoaded(): boolean;
102
- private fetchAndInline;
103
- static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistryService, never>;
104
- static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistryService>;
105
- }
106
-
107
- export { AFRICANIES_ICON_SPRITE_URL, AfricaniesIconComponent, ICON_NAMES, IconRegistryService };
108
- export type { IconName };
@@ -1,46 +0,0 @@
1
- # @africanies/africanies-theme
2
-
3
- AFRICANIES design tokens (Tailwind preset), light/dark {@link ThemeService}, and shipping-mode accent helpers ({@link ModeColorService}).
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install @africanies/africanies-theme @africanies/africanies-storage @africanies/africanies-core
9
- ```
10
-
11
- ## Tailwind
12
-
13
- ```js
14
- // tailwind.config.js
15
- module.exports = {
16
- presets: [require('@africanies/africanies-theme/tailwind-preset')],
17
- content: [
18
- './src/**/*.{html,ts}',
19
- './node_modules/@africanies/africanies-ui/**/*.{js,mjs}',
20
- ],
21
- };
22
- ```
23
-
24
- > The preset file is published as `tailwind-preset.cjs` (package is ESM) but resolved via the `./tailwind-preset` export above.
25
-
26
- See [THEME.md](./THEME.md) for the full palette, provisional typography scale, and legacy `$border-gray` mapping notes.
27
-
28
- ## ThemeService
29
-
30
- ```ts
31
- import { inject, provideAppInitializer } from '@angular/core';
32
- import { ThemeService } from '@africanies/africanies-theme';
33
-
34
- provideAppInitializer(() => {
35
- inject(ThemeService);
36
- });
37
- ```
38
-
39
- ## ModeColorService
40
-
41
- ```ts
42
- const modeColor = inject(ModeColorService);
43
- const { text, bg, bgSubtle } = modeColor.classes();
44
- ```
45
-
46
- Class strings are literals so Tailwind does not purge them.
@@ -1,231 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, computed, Injectable, signal } from '@angular/core';
3
- import { ShippingModeService } from '@africanies/africanies-core';
4
- import { DOCUMENT } from '@angular/common';
5
- import { STORAGE_TOKEN, AFRICANIES_THEME_KEY } from '@africanies/africanies-storage';
6
-
7
- /**
8
- * Tailwind safelist side-effect for shipping-mode color utilities.
9
- *
10
- * WHY this file exists: JIT/content scanning only keeps class names that appear
11
- * as *literal strings* in scanned sources. {@link ModeColorService} already
12
- * returns these literals, but keeping a dedicated comment list makes the
13
- * contract obvious for consumers who configure `safelist` or purge plugins.
14
- *
15
- * Do not rename these strings without updating ModeColorService and THEME.md.
16
- *
17
- * SFN (export / green):
18
- * text-export bg-export bg-export-subtle bg-export-light border-export
19
- * hover:bg-export-light hover:bg-export-subtle dark:bg-export/15 dark:hover:bg-export/15
20
- * dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)] dark:bg-export dark:text-export dark:border-export
21
- *
22
- * STN (import / orange):
23
- * text-import bg-import bg-import-subtle bg-import-light border-import
24
- * hover:bg-import-light hover:bg-import-subtle dark:bg-import/15 dark:hover:bg-import/15
25
- * dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)] dark:bg-import dark:text-import dark:border-import
26
- */
27
- const MODE_COLOR_SAFELIST = [
28
- 'text-export',
29
- 'bg-export',
30
- 'bg-export-subtle',
31
- 'bg-export-light',
32
- 'border-export',
33
- 'hover:bg-export-light',
34
- 'hover:bg-export-subtle',
35
- 'dark:bg-export/15',
36
- 'dark:hover:bg-export/15',
37
- 'dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)]',
38
- 'dark:bg-export',
39
- 'dark:text-export',
40
- 'dark:border-export',
41
- 'text-import',
42
- 'bg-import',
43
- 'bg-import-subtle',
44
- 'bg-import-light',
45
- 'border-import',
46
- 'hover:bg-import-light',
47
- 'hover:bg-import-subtle',
48
- 'dark:bg-import/15',
49
- 'dark:hover:bg-import/15',
50
- 'dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)]',
51
- 'dark:bg-import',
52
- 'dark:text-import',
53
- 'dark:border-import',
54
- ];
55
-
56
- /**
57
- * Maps {@link ShippingModeService} to mode-accent Tailwind classes.
58
- *
59
- * - **SFN** → export green is primary
60
- * - **STN** → import orange is primary
61
- *
62
- * WHY literal class strings: Tailwind's scanner cannot see dynamically built
63
- * names like `` `text-${token}` ``. Returning full literals (`text-export`, …)
64
- * keeps utilities in the compiled CSS. See {@link MODE_COLOR_SAFELIST}.
65
- *
66
- * @example
67
- * ```html
68
- * @let colors = modeColor.classes();
69
- * <button type="button" [class]="colors.primary">Save</button>
70
- * <span [class]="colors.text">Mode accent</span>
71
- * ```
72
- */
73
- class ModeColorService {
74
- shippingMode = inject(ShippingModeService);
75
- /**
76
- * Mode-dependent utility classes. Recomputes when shipping mode changes.
77
- */
78
- classes = computed(() => {
79
- // Literal strings required for Tailwind content detection — do not interpolate.
80
- if (this.shippingMode.mode() === 'sfn') {
81
- return {
82
- text: 'text-export',
83
- bg: 'bg-export',
84
- bgSubtle: 'bg-export-subtle',
85
- border: 'border-export',
86
- primary: 'bg-export text-white border-transparent hover:bg-export-light',
87
- ghostPrimary: 'bg-transparent text-export border-transparent hover:bg-export-subtle dark:hover:bg-export/15',
88
- soft: 'bg-export-subtle dark:bg-export/15',
89
- softSolid: 'bg-export-subtle dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)]',
90
- softHover: 'hover:bg-export-subtle dark:hover:bg-export/15',
91
- activeFill: 'bg-export text-white border-transparent dark:bg-export dark:text-white',
92
- stroked: 'bg-white text-export border-export hover:bg-export-subtle dark:bg-ink-950 dark:text-export dark:border-export dark:hover:bg-export/15',
93
- };
94
- }
95
- return {
96
- text: 'text-import',
97
- bg: 'bg-import',
98
- bgSubtle: 'bg-import-subtle',
99
- border: 'border-import',
100
- primary: 'bg-import text-white border-transparent hover:bg-import-light',
101
- ghostPrimary: 'bg-transparent text-import border-transparent hover:bg-import-subtle dark:hover:bg-import/15',
102
- soft: 'bg-import-subtle dark:bg-import/15',
103
- softSolid: 'bg-import-subtle dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)]',
104
- softHover: 'hover:bg-import-subtle dark:hover:bg-import/15',
105
- activeFill: 'bg-import text-white border-transparent dark:bg-import dark:text-white',
106
- stroked: 'bg-white text-import border-import hover:bg-import-subtle dark:bg-ink-950 dark:text-import dark:border-import dark:hover:bg-import/15',
107
- };
108
- }, /* @ts-ignore */
109
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
110
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ModeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
111
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ModeColorService, providedIn: 'root' });
112
- }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ModeColorService, decorators: [{
114
- type: Injectable,
115
- args: [{ providedIn: 'root' }]
116
- }] });
117
-
118
- /**
119
- * Application light/dark theme preference.
120
- *
121
- * WHY signals (not BehaviorSubject): theme is synchronous UI state read from
122
- * templates and other services; a signal avoids RxJS subscription boilerplate
123
- * and matches Angular 22 change detection. Persistence goes through
124
- * {@link STORAGE_TOKEN} so tests can swap storage without touching `localStorage`.
125
- *
126
- * Applies the Tailwind `darkMode: 'class'` contract by toggling `dark` on
127
- * `document.documentElement`, and sets `color-scheme` so native UI (date
128
- * pickers, scrollbars, form controls) matches the app theme — class-based
129
- * dark mode alone does not restyle browser chrome.
130
- *
131
- * @example
132
- * ```ts
133
- * // app.config.ts
134
- * import { inject, provideAppInitializer } from '@angular/core';
135
- * import { ThemeService } from '@africanies/africanies-theme';
136
- *
137
- * export const appConfig = {
138
- * providers: [
139
- * provideAppInitializer(() => {
140
- * inject(ThemeService); // applies stored / system theme once
141
- * }),
142
- * ],
143
- * };
144
- *
145
- * // In a component
146
- * const theme = inject(ThemeService);
147
- * theme.toggle();
148
- * theme.setTheme('dark');
149
- * const current = theme.theme(); // 'light' | 'dark'
150
- * ```
151
- */
152
- class ThemeService {
153
- storage = inject(STORAGE_TOKEN);
154
- document = inject(DOCUMENT);
155
- /**
156
- * Current theme. Prefer reading via `theme()` in templates / computed values
157
- * rather than caching the string, so dark-class consumers stay in sync.
158
- */
159
- theme = signal(this.resolveInitialTheme(), /* @ts-ignore */
160
- ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
161
- constructor() {
162
- this.applyToDocument(this.theme());
163
- }
164
- /**
165
- * Sets and persists the theme, updating the `dark` class and `color-scheme`
166
- * on `<html>`.
167
- *
168
- * @param theme - Absolute preference to store.
169
- */
170
- setTheme(theme) {
171
- this.theme.set(theme);
172
- this.applyToDocument(theme);
173
- try {
174
- this.storage.set(AFRICANIES_THEME_KEY, theme);
175
- }
176
- catch {
177
- // Persistence failure must not block the in-session visual toggle —
178
- // private browsing / quota issues are transient for theme preference.
179
- }
180
- }
181
- /**
182
- * Flips between light and dark.
183
- *
184
- * @returns The theme after the toggle.
185
- */
186
- toggle() {
187
- const next = this.theme() === 'light' ? 'dark' : 'light';
188
- this.setTheme(next);
189
- return next;
190
- }
191
- resolveInitialTheme() {
192
- try {
193
- const stored = this.storage.get(AFRICANIES_THEME_KEY);
194
- if (stored === 'light' || stored === 'dark') {
195
- return stored;
196
- }
197
- }
198
- catch {
199
- // Fall through to system preference when storage is unavailable.
200
- }
201
- return this.prefersDark() ? 'dark' : 'light';
202
- }
203
- prefersDark() {
204
- const win = this.document.defaultView;
205
- return !!win?.matchMedia?.('(prefers-color-scheme: dark)').matches;
206
- }
207
- applyToDocument(theme) {
208
- const root = this.document.documentElement;
209
- if (theme === 'dark') {
210
- root.classList.add('dark');
211
- }
212
- else {
213
- root.classList.remove('dark');
214
- }
215
- // Native date/time pickers follow `color-scheme`, not Tailwind's `dark` class.
216
- root.style.colorScheme = theme;
217
- }
218
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
219
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeService, providedIn: 'root' });
220
- }
221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeService, decorators: [{
222
- type: Injectable,
223
- args: [{ providedIn: 'root' }]
224
- }], ctorParameters: () => [] });
225
-
226
- /**
227
- * Generated bundle index. Do not edit.
228
- */
229
-
230
- export { MODE_COLOR_SAFELIST, ModeColorService, ThemeService };
231
- //# sourceMappingURL=africanies-africanies-theme.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"africanies-africanies-theme.mjs","sources":["../../../../libs/africanies-theme/src/lib/mode-color.safelist.ts","../../../../libs/africanies-theme/src/lib/mode-color.service.ts","../../../../libs/africanies-theme/src/lib/theme.service.ts","../../../../libs/africanies-theme/src/africanies-africanies-theme.ts"],"sourcesContent":["/**\n * Tailwind safelist side-effect for shipping-mode color utilities.\n *\n * WHY this file exists: JIT/content scanning only keeps class names that appear\n * as *literal strings* in scanned sources. {@link ModeColorService} already\n * returns these literals, but keeping a dedicated comment list makes the\n * contract obvious for consumers who configure `safelist` or purge plugins.\n *\n * Do not rename these strings without updating ModeColorService and THEME.md.\n *\n * SFN (export / green):\n * text-export bg-export bg-export-subtle bg-export-light border-export\n * hover:bg-export-light hover:bg-export-subtle dark:bg-export/15 dark:hover:bg-export/15\n * dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)] dark:bg-export dark:text-export dark:border-export\n *\n * STN (import / orange):\n * text-import bg-import bg-import-subtle bg-import-light border-import\n * hover:bg-import-light hover:bg-import-subtle dark:bg-import/15 dark:hover:bg-import/15\n * dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)] dark:bg-import dark:text-import dark:border-import\n */\nexport const MODE_COLOR_SAFELIST = [\n 'text-export',\n 'bg-export',\n 'bg-export-subtle',\n 'bg-export-light',\n 'border-export',\n 'hover:bg-export-light',\n 'hover:bg-export-subtle',\n 'dark:bg-export/15',\n 'dark:hover:bg-export/15',\n 'dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)]',\n 'dark:bg-export',\n 'dark:text-export',\n 'dark:border-export',\n 'text-import',\n 'bg-import',\n 'bg-import-subtle',\n 'bg-import-light',\n 'border-import',\n 'hover:bg-import-light',\n 'hover:bg-import-subtle',\n 'dark:bg-import/15',\n 'dark:hover:bg-import/15',\n 'dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)]',\n 'dark:bg-import',\n 'dark:text-import',\n 'dark:border-import',\n] as const;\n","import { computed, inject, Injectable } from '@angular/core';\n\nimport { ShippingModeService } from '@africanies/africanies-core';\n\n/**\n * Tailwind class bundle for the active shipping mode (SFN export / STN import).\n *\n * Use these for **primary** product chrome: CTAs, selected controls, progress,\n * and accent text. Semantic colors (danger / warning) stay mode-independent.\n */\nexport interface ModeColorClasses {\n /** Text color utility, e.g. `text-export`. */\n text: string;\n /** Solid background utility, e.g. `bg-export`. */\n bg: string;\n /** Soft background utility, e.g. `bg-export-subtle`. */\n bgSubtle: string;\n /** Border matching the mode accent, e.g. `border-export`. */\n border: string;\n /**\n * Filled primary CTA — `variant=\"primary\"` on buttons.\n * Includes hover utility as a literal so Tailwind keeps it.\n */\n primary: string;\n /**\n * Transparent / text-only CTA — `variant=\"ghost-primary\"` on buttons.\n * Mode accent text + soft hover fill.\n */\n ghostPrimary: string;\n /**\n * Soft highlight for selected / active rows (works in dark mode).\n * Dark uses a translucent tint — fine over solid surfaces, not for\n * sticky overlays (see {@link softSolid}).\n */\n soft: string;\n /**\n * Opaque soft fill — same tint as {@link soft}, but dark mode mixes into\n * ink so scrolled content cannot show through (sticky table headers/cells).\n */\n softSolid: string;\n /**\n * Soft hover highlight for menus and lists.\n */\n softHover: string;\n /**\n * Active nav leaf / collapsed rail — solid mode fill + white text.\n */\n activeFill: string;\n /**\n * Stroked secondary CTA — white fill, mode border + text (portal `.btn-stroked`).\n */\n stroked: string;\n}\n\n/**\n * Maps {@link ShippingModeService} to mode-accent Tailwind classes.\n *\n * - **SFN** → export green is primary\n * - **STN** → import orange is primary\n *\n * WHY literal class strings: Tailwind's scanner cannot see dynamically built\n * names like `` `text-${token}` ``. Returning full literals (`text-export`, …)\n * keeps utilities in the compiled CSS. See {@link MODE_COLOR_SAFELIST}.\n *\n * @example\n * ```html\n * @let colors = modeColor.classes();\n * <button type=\"button\" [class]=\"colors.primary\">Save</button>\n * <span [class]=\"colors.text\">Mode accent</span>\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class ModeColorService {\n private readonly shippingMode = inject(ShippingModeService);\n\n /**\n * Mode-dependent utility classes. Recomputes when shipping mode changes.\n */\n readonly classes = computed<ModeColorClasses>(() => {\n // Literal strings required for Tailwind content detection — do not interpolate.\n if (this.shippingMode.mode() === 'sfn') {\n return {\n text: 'text-export',\n bg: 'bg-export',\n bgSubtle: 'bg-export-subtle',\n border: 'border-export',\n primary:\n 'bg-export text-white border-transparent hover:bg-export-light',\n ghostPrimary:\n 'bg-transparent text-export border-transparent hover:bg-export-subtle dark:hover:bg-export/15',\n soft: 'bg-export-subtle dark:bg-export/15',\n softSolid:\n 'bg-export-subtle dark:bg-[color-mix(in_srgb,#1cbd5d_15%,#212529)]',\n softHover: 'hover:bg-export-subtle dark:hover:bg-export/15',\n activeFill:\n 'bg-export text-white border-transparent dark:bg-export dark:text-white',\n stroked:\n 'bg-white text-export border-export hover:bg-export-subtle dark:bg-ink-950 dark:text-export dark:border-export dark:hover:bg-export/15',\n };\n }\n return {\n text: 'text-import',\n bg: 'bg-import',\n bgSubtle: 'bg-import-subtle',\n border: 'border-import',\n primary:\n 'bg-import text-white border-transparent hover:bg-import-light',\n ghostPrimary:\n 'bg-transparent text-import border-transparent hover:bg-import-subtle dark:hover:bg-import/15',\n soft: 'bg-import-subtle dark:bg-import/15',\n softSolid:\n 'bg-import-subtle dark:bg-[color-mix(in_srgb,#f08829_15%,#212529)]',\n softHover: 'hover:bg-import-subtle dark:hover:bg-import/15',\n activeFill:\n 'bg-import text-white border-transparent dark:bg-import dark:text-white',\n stroked:\n 'bg-white text-import border-import hover:bg-import-subtle dark:bg-ink-950 dark:text-import dark:border-import dark:hover:bg-import/15',\n };\n });\n}\n","import { DOCUMENT } from '@angular/common';\nimport { inject, Injectable, signal } from '@angular/core';\n\nimport { AFRICANIES_THEME_KEY, STORAGE_TOKEN } from '@africanies/africanies-storage';\n\nimport type { Theme } from './theme.types';\n\n/**\n * Application light/dark theme preference.\n *\n * WHY signals (not BehaviorSubject): theme is synchronous UI state read from\n * templates and other services; a signal avoids RxJS subscription boilerplate\n * and matches Angular 22 change detection. Persistence goes through\n * {@link STORAGE_TOKEN} so tests can swap storage without touching `localStorage`.\n *\n * Applies the Tailwind `darkMode: 'class'` contract by toggling `dark` on\n * `document.documentElement`, and sets `color-scheme` so native UI (date\n * pickers, scrollbars, form controls) matches the app theme — class-based\n * dark mode alone does not restyle browser chrome.\n *\n * @example\n * ```ts\n * // app.config.ts\n * import { inject, provideAppInitializer } from '@angular/core';\n * import { ThemeService } from '@africanies/africanies-theme';\n *\n * export const appConfig = {\n * providers: [\n * provideAppInitializer(() => {\n * inject(ThemeService); // applies stored / system theme once\n * }),\n * ],\n * };\n *\n * // In a component\n * const theme = inject(ThemeService);\n * theme.toggle();\n * theme.setTheme('dark');\n * const current = theme.theme(); // 'light' | 'dark'\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class ThemeService {\n private readonly storage = inject(STORAGE_TOKEN);\n private readonly document = inject(DOCUMENT);\n\n /**\n * Current theme. Prefer reading via `theme()` in templates / computed values\n * rather than caching the string, so dark-class consumers stay in sync.\n */\n readonly theme = signal<Theme>(this.resolveInitialTheme());\n\n constructor() {\n this.applyToDocument(this.theme());\n }\n\n /**\n * Sets and persists the theme, updating the `dark` class and `color-scheme`\n * on `<html>`.\n *\n * @param theme - Absolute preference to store.\n */\n setTheme(theme: Theme): void {\n this.theme.set(theme);\n this.applyToDocument(theme);\n try {\n this.storage.set(AFRICANIES_THEME_KEY, theme);\n } catch {\n // Persistence failure must not block the in-session visual toggle —\n // private browsing / quota issues are transient for theme preference.\n }\n }\n\n /**\n * Flips between light and dark.\n *\n * @returns The theme after the toggle.\n */\n toggle(): Theme {\n const next: Theme = this.theme() === 'light' ? 'dark' : 'light';\n this.setTheme(next);\n return next;\n }\n\n private resolveInitialTheme(): Theme {\n try {\n const stored = this.storage.get<Theme>(AFRICANIES_THEME_KEY);\n if (stored === 'light' || stored === 'dark') {\n return stored;\n }\n } catch {\n // Fall through to system preference when storage is unavailable.\n }\n return this.prefersDark() ? 'dark' : 'light';\n }\n\n private prefersDark(): boolean {\n const win = this.document.defaultView;\n return !!win?.matchMedia?.('(prefers-color-scheme: dark)').matches;\n }\n\n private applyToDocument(theme: Theme): void {\n const root = this.document.documentElement;\n if (theme === 'dark') {\n root.classList.add('dark');\n } else {\n root.classList.remove('dark');\n }\n // Native date/time pickers follow `color-scheme`, not Tailwind's `dark` class.\n root.style.colorScheme = theme;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AACI,MAAM,mBAAmB,GAAG;IACjC,aAAa;IACb,WAAW;IACX,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;IACf,uBAAuB;IACvB,wBAAwB;IACxB,mBAAmB;IACnB,yB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
- "version": "0.0.2",
4
- "peerDependencies": {
5
- "@angular/common": "^22.0.0",
6
- "@angular/core": "^22.0.0",
7
- "@africanies/africanies-core": ">=0.0.2 <0.1.0",
8
- "@africanies/africanies-storage": ">=0.0.1 <0.1.0"
9
- },
10
- "sideEffects": false,
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "exports": {
15
- "./tailwind-preset": "./tailwind-preset.cjs",
16
- "./package.json": {
17
- "default": "./package.json"
18
- },
19
- ".": {
20
- "types": "./types/africanies-africanies-theme.d.ts",
21
- "default": "./fesm2022/africanies-africanies-theme.mjs"
22
- }
23
- },
24
- "files": [
25
- "**/*",
26
- "tailwind-preset.cjs",
27
- "THEME.md"
28
- ],
29
- "module": "fesm2022/africanies-africanies-theme.mjs",
30
- "typings": "types/africanies-africanies-theme.d.ts",
31
- "type": "module",
32
- "dependencies": {
33
- "tslib": "^2.3.0"
34
- }
35
- }