shirkasoft-ui-components 1.14.0 → 2.0.0

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 (92) hide show
  1. package/README.md +4 -8
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1440
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -300
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -327
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -819
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -402
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +95 -134
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +5 -5
  62. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  63. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  64. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  65. package/types/shirkasoft-ui-components-config.d.ts +193 -204
  66. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
  67. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -112
  70. package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
  71. package/types/shirkasoft-ui-components-knob.d.ts +144 -78
  72. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  73. package/types/shirkasoft-ui-components-modal.d.ts +134 -136
  74. package/types/shirkasoft-ui-components-notification.d.ts +63 -59
  75. package/types/shirkasoft-ui-components-price-input.d.ts +198 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +301 -196
  78. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
  79. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  80. package/types/shirkasoft-ui-components-table.d.ts +849 -660
  81. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  82. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  83. package/types/shirkasoft-ui-components-text-field.d.ts +231 -127
  84. package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
  85. package/types/shirkasoft-ui-components-theme.d.ts +56 -64
  86. package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
  87. package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
  88. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  89. package/types/shirkasoft-ui-components-utils.d.ts +15 -16
  90. package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
  91. package/types/shirkasoft-ui-components.d.ts +1 -2
  92. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"shirkasoft-ui-components-wizard.mjs","sources":["../../../projects/ui-components/wizard/wizard.component.ts","../../../projects/ui-components/wizard/wizard.component.html","../../../projects/ui-components/wizard/shirkasoft-ui-components-wizard.ts"],"sourcesContent":["import {\n Component,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n computed,\n contentChildren,\n input,\n model,\n output,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ShkIconDirective, LucideChevronRight } from 'shirkasoft-ui-components/icons';\nimport { getIcon as getIconFromCentral } from 'shirkasoft-ui-components/utils';\n\n/** A step of the wizard shown in the stepper. */\nexport interface WizardStep {\n id: string | number;\n label: string;\n /** Optional icon (name or `IconNode` data) rendered inside the step circle. */\n icon?: string;\n /** Overrides the primary footer button label for this step. */\n primaryLabel?: string;\n /** Overrides the primary footer button icon for this step. */\n primaryIcon?: string;\n}\n\n/** Declares a step's content template: <ng-template shkWizardStepContent=\"stepId\">…</ng-template>. */\n@Directive({\n selector: 'ng-template[shkWizardStepContent]',\n})\nexport class ShkWizardStepContent {\n stepId = input.required<string | number>({ alias: 'shkWizardStepContent' });\n constructor(public templateRef: TemplateRef<unknown>) {}\n}\n\nlet wizardCounter = 0;\n\n/**\n * Shirkasoft UI Components.\n * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).\n * Belongs to Shirkasoft.\n */\n\n/**\n * Multi-step wizard with a progress stepper, header, footer actions and\n * content templates declared with `shkWizardStepContent`.\n */\n@Component({\n selector: 'shk-wizard',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, ShkIconDirective],\n templateUrl: './wizard.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n .shk-wizard-icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 9999px;\n color: var(--shk-surface-600);\n transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;\n }\n .shk-wizard-icon-btn:hover:not(:disabled) {\n background-color: var(--shk-surface-100);\n color: var(--shk-surface-800);\n }\n .shk-wizard-icon-btn:disabled {\n cursor: default;\n }\n .shk-wizard-icon-btn svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-stepper-dot {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2.25rem;\n height: 2.25rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n font-weight: 700;\n flex-shrink: 0;\n transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;\n }\n .shk-wizard-stepper-dot svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-btn-secondary {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--shk-surface-700);\n background-color: transparent;\n border: 1px solid var(--shk-surface-200);\n transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\n color 0.15s ease-in-out;\n }\n .shk-wizard-btn-secondary:hover:not(:disabled) {\n background-color: var(--shk-surface-100);\n border-color: var(--shk-surface-300);\n color: var(--shk-surface-900);\n }\n .shk-wizard-btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n .shk-wizard-btn-secondary svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-btn-primary {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #fff;\n background-color: var(--shk-primary-600);\n box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--shk-primary-600) 55%, transparent);\n transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;\n }\n .shk-wizard-btn-primary:hover:not(:disabled) {\n background-color: var(--shk-primary-700);\n }\n .shk-wizard-btn-primary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n box-shadow: none;\n }\n .shk-wizard-btn-primary svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-spin {\n animation: shk-wizard-spin 0.8s linear infinite;\n }\n @keyframes shk-wizard-spin {\n to {\n transform: rotate(360deg);\n }\n }\n .shk-wizard-fade {\n animation: shk-wizard-fade 0.25s ease-out;\n }\n @keyframes shk-wizard-fade {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n `,\n ],\n})\nexport class WizardComponent {\n protected getIcon = (name: any) => getIconFromCentral(name, LucideChevronRight);\n\n /** Steps definition shown in the stepper and used to resolve step content. */\n steps = input<WizardStep[]>([]);\n /** Active step id. Two-way bindable with [(currentStep)]. Null resolves to the first step. */\n currentStep = model<string | number | null>(null);\n\n // Header\n /** Shows the sticky header (back button + title). */\n showHeader = input<boolean>(true);\n headerTitle = input<string>('');\n headerSubtitle = input<string>('');\n /** Shows the round back button in the header. */\n showBackButton = input<boolean>(true);\n backTooltip = input<string>('Atrás');\n /** Optional icon (name or `IconNode` data) shown before the title. */\n headerIcon = input<string>('');\n\n // Stepper\n /** Shows the progress stepper (hide it for edit mode, like wac-app does). */\n showStepper = input<boolean>(true);\n /** Lets the user click on previous steps to jump back. */\n stepperClickable = input<boolean>(false);\n\n // Footer\n showFooter = input<boolean>(true);\n /** Shows a \"Paso X / N\" counter on the left of the footer. */\n showStepCounter = input<boolean>(false);\n stepCounterPrefix = input<string>('Paso');\n /** Shows the Cancel button on the first step (instead of a back button). */\n showCancel = input<boolean>(true);\n /** Auto-advances to the next step on the primary button when it is not the last step. */\n advanceOnNext = input<boolean>(true);\n\n prevLabel = input<string>('Atrás');\n prevIcon = input<string>('chevron-left');\n cancelLabel = input<string>('Cancelar');\n cancelIcon = input<string>('x');\n nextLabel = input<string>('Continuar');\n nextIcon = input<string>('chevron-right');\n finishLabel = input<string>('Finalizar');\n finishIcon = input<string>('check');\n\n /** Overrides the primary footer button label for every step. */\n primaryLabel = input<string | null>(null);\n /** Overrides the primary footer button icon for every step. */\n primaryIcon = input<string | null>(null);\n /** Shows a loading spinner on the primary button and disables it. */\n primaryLoading = input<boolean>(false);\n /** Disables the primary footer button (e.g. while the step form is invalid). */\n primaryDisabled = input<boolean>(false);\n\n // Outputs\n back = output<void>();\n cancel = output<void>();\n prev = output<void>();\n next = output<void>();\n finish = output<void>();\n stepChange = output<{ step: WizardStep | null; index: number }>();\n\n readonly stepContents = contentChildren(ShkWizardStepContent);\n\n currentIndex = computed(() => {\n const id = this.currentStep();\n if (id == null) return this.steps().length > 0 ? 0 : -1;\n return this.steps().findIndex((s) => s.id === id);\n });\n\n currentStepObj = computed(() => this.steps()[this.currentIndex()] ?? null);\n isFirstStep = computed(() => this.currentIndex() === 0);\n isLastStep = computed(() => this.currentIndex() === this.steps().length - 1);\n\n primaryActionLabel = computed(() => {\n if (this.primaryLabel()) return this.primaryLabel()!;\n const step = this.currentStepObj();\n if (step?.primaryLabel) return step.primaryLabel;\n return this.isLastStep() ? this.finishLabel() : this.nextLabel();\n });\n\n primaryActionIcon = computed(() => {\n if (this.primaryIcon()) return this.primaryIcon()!;\n const step = this.currentStepObj();\n if (step?.primaryIcon) return step.primaryIcon;\n return this.isLastStep() ? this.finishIcon() : this.nextIcon();\n });\n\n getStepTemplate(id: string | number): TemplateRef<unknown> | undefined {\n return this.stepContents().find((c) => c.stepId() === id)?.templateRef;\n }\n\n goTo(stepId: string | number): void {\n const idx = this.steps().findIndex((s) => s.id === stepId);\n if (idx < 0) return;\n if (this.currentStep() === stepId) return;\n this.currentStep.set(stepId);\n this.stepChange.emit({ step: this.steps()[idx], index: idx });\n }\n\n onPrev(): void {\n const idx = this.currentIndex();\n if (idx <= 0) return;\n this.prev.emit();\n this.goTo(this.steps()[idx - 1].id);\n }\n\n onNext(): void {\n const idx = this.currentIndex();\n const next = this.steps()[idx + 1];\n if (!next) return;\n this.next.emit();\n if (this.advanceOnNext()) {\n this.goTo(next.id);\n }\n }\n\n onPrimary(): void {\n if (this.primaryLoading() || this.primaryDisabled()) return;\n if (this.isLastStep()) {\n this.finish.emit();\n } else {\n this.onNext();\n }\n }\n}\n","<div class=\"min-h-full bg-transparent\">\n\n <!-- ============ Sticky Header + Stepper ============ -->\n @if (showHeader()) {\n <div\n class=\"sticky top-0 z-20 bg-white dark:[background-color:var(--shk-surface-50)] border-b _shk-border shadow-sm\"\n >\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-4\">\n <div class=\"flex items-center gap-4 mb-4\">\n @if (showBackButton()) {\n <button\n type=\"button\"\n (click)=\"back.emit()\"\n [attr.aria-label]=\"backTooltip()\"\n [attr.title]=\"backTooltip()\"\n class=\"shk-wizard-icon-btn shrink-0\"\n >\n <svg [shkIcon]=\"getIcon('arrow-left')\" class=\"w-4 h-4\"></svg>\n </button>\n }\n <div class=\"flex-1 min-w-0 flex items-center gap-2.5\">\n @if (headerIcon()) {\n <span class=\"w-9 h-9 rounded-lg _shk-bg-primary-soft _shk-text-primary flex items-center justify-center shrink-0\">\n <svg [shkIcon]=\"getIcon(headerIcon())\" class=\"w-4 h-4\"></svg>\n </span>\n }\n <div class=\"min-w-0\">\n <h1 class=\"text-xl font-bold _shk-text-surface-800 truncate\">\n {{ headerTitle() }}\n </h1>\n @if (headerSubtitle()) {\n <p class=\"text-xs _shk-text-surface-500 mt-0.5 truncate\">\n {{ headerSubtitle() }}\n </p>\n }\n </div>\n </div>\n <ng-content select=\"[shkWizardHeaderActions]\"></ng-content>\n </div>\n\n <!-- Stepper -->\n @if (showStepper() && steps().length > 1) {\n <div class=\"flex items-center gap-2 w-full max-w-3xl mx-auto\">\n @for (step of steps(); track step.id; let i = $index, last = $last) {\n <div class=\"flex items-center gap-3 shrink-0\">\n <button\n type=\"button\"\n (click)=\"goTo(step.id)\"\n [disabled]=\"!stepperClickable() || currentIndex() < i\"\n [attr.aria-label]=\"step.label\"\n class=\"shk-wizard-stepper-dot\"\n [class._shk-bg-primary]=\"currentIndex() > i || currentIndex() === i\"\n [class.text-white]=\"currentIndex() > i || currentIndex() === i\"\n [class._shk-bg-surface-200]=\"currentIndex() < i\"\n [class._shk-text-surface-500]=\"currentIndex() < i\"\n [class.cursor-pointer]=\"stepperClickable() && currentIndex() >= i\"\n [class.cursor-default]=\"!stepperClickable() || currentIndex() < i\"\n >\n @if (currentIndex() > i) {\n <svg [shkIcon]=\"getIcon(step.icon || 'check')\" class=\"w-4 h-4\"></svg>\n } @else if (step.icon) {\n <svg [shkIcon]=\"getIcon(step.icon)\" class=\"w-4 h-4\"></svg>\n } @else {\n {{ i + 1 }}\n }\n </button>\n <span\n class=\"text-sm font-semibold transition-colors whitespace-nowrap hidden sm:inline\"\n [class._shk-text-surface-800]=\"currentIndex() === i\"\n [class._shk-text-surface-500]=\"currentIndex() !== i\"\n >\n {{ step.label }}\n </span>\n </div>\n\n @if (!last) {\n <div class=\"flex-1 h-0.5 _shk-bg-surface-200 relative overflow-hidden rounded-full\">\n <div\n class=\"absolute inset-y-0 left-0 _shk-bg-primary transition-all duration-300\"\n [class.w-full]=\"currentIndex() > i\"\n [class.w-0]=\"currentIndex() <= i\"\n ></div>\n </div>\n }\n }\n </div>\n }\n </div>\n </div>\n }\n\n <!-- ============ Active step content ============ -->\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-6 pb-28\">\n @if (currentIndex() >= 0) {\n @if (getStepTemplate(steps()[currentIndex()].id); as tpl) {\n <div class=\"shk-wizard-fade\" [style.view-transition-name]=\"'shk-wizard-step'\">\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { step: currentStepObj(), index: currentIndex() }\"\n ></ng-container>\n </div>\n } @else {\n <p class=\"text-sm _shk-text-surface-400\">\n No hay contenido definido para el paso «{{ steps()[currentIndex()].label }}».\n </p>\n }\n }\n </div>\n\n <!-- ============ Sticky Footer ============ -->\n @if (showFooter() && steps().length > 0) {\n <div\n class=\"sticky bottom-0 z-20 bg-white dark:[background-color:var(--shk-surface-50)] border-t _shk-border shadow-[0_-4px_12px_rgba(0,0,0,0.04)] mt-8\"\n >\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-4 flex items-center justify-end gap-3\">\n @if (showStepCounter()) {\n <span class=\"text-sm _shk-text-surface-500 mr-auto\">\n {{ stepCounterPrefix() }} {{ currentIndex() + 1 }} / {{ steps().length }}\n </span>\n }\n\n @if (isFirstStep()) {\n @if (showCancel()) {\n <button type=\"button\" (click)=\"cancel.emit()\" class=\"shk-wizard-btn-secondary\">\n @if (cancelIcon()) {\n <svg [shkIcon]=\"getIcon(cancelIcon())\" class=\"w-4 h-4\"></svg>\n }\n {{ cancelLabel() }}\n </button>\n }\n } @else {\n <button type=\"button\" (click)=\"onPrev()\" class=\"shk-wizard-btn-secondary\">\n <svg [shkIcon]=\"getIcon(prevIcon())\" class=\"w-4 h-4\"></svg>\n {{ prevLabel() }}\n </button>\n }\n\n <button\n type=\"button\"\n (click)=\"onPrimary()\"\n [disabled]=\"primaryDisabled() || primaryLoading()\"\n class=\"shk-wizard-btn-primary\"\n >\n @if (primaryLoading()) {\n <svg [shkIcon]=\"getIcon('loader-circle')\" class=\"w-4 h-4 shk-wizard-spin\"></svg>\n } @else {\n @if (primaryActionIcon()) {\n <svg [shkIcon]=\"getIcon(primaryActionIcon())\" class=\"w-4 h-4\"></svg>\n }\n }\n {{ primaryActionLabel() }}\n </button>\n </div>\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["getIconFromCentral"],"mappings":";;;;;;;AA2BA;MAIa,oBAAoB,CAAA;AAE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AAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,+6HA6Dc,oBAAoB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxO9D,03MA2JA,EAAA,MAAA,EAAA,CAAA,ivEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDxGY,YAAY,sMAAE,gBAAgB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAwH7B,eAAe,EAAA,UAAA,EAAA,CAAA;kBA3H3B,SAAS;+BACE,YAAY,EAAA,eAAA,EACL,uBAAuB,CAAC,MAAM,WACtC,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,03MAAA,EAAA,MAAA,EAAA,CAAA,ivEAAA,CAAA,EAAA;4oGAqLD,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExO9D;;AAEG;;;;"}
1
+ {"version":3,"file":"shirkasoft-ui-components-wizard.mjs","names":["getIconFromCentral"],"sources":["../../../projects/ui-components/wizard/wizard.component.ts","../../../projects/ui-components/wizard/wizard.component.html"],"sourcesContent":["import {\n Component,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n computed,\n contentChildren,\n input,\n model,\n output,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ShkIconDirective, LucideChevronRight } from 'shirkasoft-ui-components/icons';\nimport { getIcon as getIconFromCentral } from 'shirkasoft-ui-components/utils';\n\n/** A step of the wizard shown in the stepper. */\nexport interface WizardStep {\n id: string | number;\n label: string;\n /** Optional icon (name or `IconNode` data) rendered inside the step circle. */\n icon?: string;\n /** Overrides the primary footer button label for this step. */\n primaryLabel?: string;\n /** Overrides the primary footer button icon for this step. */\n primaryIcon?: string;\n}\n\n/** Declares a step's content template: <ng-template shkWizardStepContent=\"stepId\">…</ng-template>. */\n@Directive({\n selector: 'ng-template[shkWizardStepContent]',\n})\nexport class ShkWizardStepContent {\n stepId = input.required<string | number>({ alias: 'shkWizardStepContent' });\n constructor(public templateRef: TemplateRef<unknown>) {}\n}\n\nlet wizardCounter = 0;\n\n/**\n * Shirkasoft UI Components.\n * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).\n * Belongs to Shirkasoft.\n */\n\n/**\n * Multi-step wizard with a progress stepper, header, footer actions and\n * content templates declared with `shkWizardStepContent`.\n */\n@Component({\n selector: 'shk-wizard',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, ShkIconDirective],\n templateUrl: './wizard.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n .shk-wizard-icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 9999px;\n color: var(--shk-surface-600);\n transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;\n }\n .shk-wizard-icon-btn:hover:not(:disabled) {\n background-color: var(--shk-surface-100);\n color: var(--shk-surface-800);\n }\n .shk-wizard-icon-btn:disabled {\n cursor: default;\n }\n .shk-wizard-icon-btn svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-stepper-dot {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2.25rem;\n height: 2.25rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n font-weight: 700;\n flex-shrink: 0;\n transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;\n }\n .shk-wizard-stepper-dot svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-btn-secondary {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--shk-surface-700);\n background-color: transparent;\n border: 1px solid var(--shk-surface-200);\n transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\n color 0.15s ease-in-out;\n }\n .shk-wizard-btn-secondary:hover:not(:disabled) {\n background-color: var(--shk-surface-100);\n border-color: var(--shk-surface-300);\n color: var(--shk-surface-900);\n }\n .shk-wizard-btn-secondary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n .shk-wizard-btn-secondary svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-btn-primary {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #fff;\n background-color: var(--shk-primary-600);\n box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--shk-primary-600) 55%, transparent);\n transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;\n }\n .shk-wizard-btn-primary:hover:not(:disabled) {\n background-color: var(--shk-primary-700);\n }\n .shk-wizard-btn-primary:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n box-shadow: none;\n }\n .shk-wizard-btn-primary svg {\n width: 1rem !important;\n height: 1rem !important;\n }\n .shk-wizard-spin {\n animation: shk-wizard-spin 0.8s linear infinite;\n }\n @keyframes shk-wizard-spin {\n to {\n transform: rotate(360deg);\n }\n }\n .shk-wizard-fade {\n animation: shk-wizard-fade 0.25s ease-out;\n }\n @keyframes shk-wizard-fade {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n `,\n ],\n})\nexport class WizardComponent {\n protected getIcon = (name: any) => getIconFromCentral(name, LucideChevronRight);\n\n /** Steps definition shown in the stepper and used to resolve step content. */\n steps = input<WizardStep[]>([]);\n /** Active step id. Two-way bindable with [(currentStep)]. Null resolves to the first step. */\n currentStep = model<string | number | null>(null);\n\n // Header\n /** Shows the sticky header (back button + title). */\n showHeader = input<boolean>(true);\n headerTitle = input<string>('');\n headerSubtitle = input<string>('');\n /** Shows the round back button in the header. */\n showBackButton = input<boolean>(true);\n backTooltip = input<string>('Atrás');\n /** Optional icon (name or `IconNode` data) shown before the title. */\n headerIcon = input<string>('');\n\n // Stepper\n /** Shows the progress stepper (hide it for edit mode, like wac-app does). */\n showStepper = input<boolean>(true);\n /** Lets the user click on previous steps to jump back. */\n stepperClickable = input<boolean>(false);\n\n // Footer\n showFooter = input<boolean>(true);\n /** Shows a \"Paso X / N\" counter on the left of the footer. */\n showStepCounter = input<boolean>(false);\n stepCounterPrefix = input<string>('Paso');\n /** Shows the Cancel button on the first step (instead of a back button). */\n showCancel = input<boolean>(true);\n /** Auto-advances to the next step on the primary button when it is not the last step. */\n advanceOnNext = input<boolean>(true);\n\n prevLabel = input<string>('Atrás');\n prevIcon = input<string>('chevron-left');\n cancelLabel = input<string>('Cancelar');\n cancelIcon = input<string>('x');\n nextLabel = input<string>('Continuar');\n nextIcon = input<string>('chevron-right');\n finishLabel = input<string>('Finalizar');\n finishIcon = input<string>('check');\n\n /** Overrides the primary footer button label for every step. */\n primaryLabel = input<string | null>(null);\n /** Overrides the primary footer button icon for every step. */\n primaryIcon = input<string | null>(null);\n /** Shows a loading spinner on the primary button and disables it. */\n primaryLoading = input<boolean>(false);\n /** Disables the primary footer button (e.g. while the step form is invalid). */\n primaryDisabled = input<boolean>(false);\n\n // Outputs\n back = output<void>();\n cancel = output<void>();\n prev = output<void>();\n next = output<void>();\n finish = output<void>();\n stepChange = output<{ step: WizardStep | null; index: number }>();\n\n readonly stepContents = contentChildren(ShkWizardStepContent);\n\n currentIndex = computed(() => {\n const id = this.currentStep();\n if (id == null) return this.steps().length > 0 ? 0 : -1;\n return this.steps().findIndex((s) => s.id === id);\n });\n\n currentStepObj = computed(() => this.steps()[this.currentIndex()] ?? null);\n isFirstStep = computed(() => this.currentIndex() === 0);\n isLastStep = computed(() => this.currentIndex() === this.steps().length - 1);\n\n primaryActionLabel = computed(() => {\n if (this.primaryLabel()) return this.primaryLabel()!;\n const step = this.currentStepObj();\n if (step?.primaryLabel) return step.primaryLabel;\n return this.isLastStep() ? this.finishLabel() : this.nextLabel();\n });\n\n primaryActionIcon = computed(() => {\n if (this.primaryIcon()) return this.primaryIcon()!;\n const step = this.currentStepObj();\n if (step?.primaryIcon) return step.primaryIcon;\n return this.isLastStep() ? this.finishIcon() : this.nextIcon();\n });\n\n getStepTemplate(id: string | number): TemplateRef<unknown> | undefined {\n return this.stepContents().find((c) => c.stepId() === id)?.templateRef;\n }\n\n goTo(stepId: string | number): void {\n const idx = this.steps().findIndex((s) => s.id === stepId);\n if (idx < 0) return;\n if (this.currentStep() === stepId) return;\n this.currentStep.set(stepId);\n this.stepChange.emit({ step: this.steps()[idx], index: idx });\n }\n\n onPrev(): void {\n const idx = this.currentIndex();\n if (idx <= 0) return;\n this.prev.emit();\n this.goTo(this.steps()[idx - 1].id);\n }\n\n onNext(): void {\n const idx = this.currentIndex();\n const next = this.steps()[idx + 1];\n if (!next) return;\n this.next.emit();\n if (this.advanceOnNext()) {\n this.goTo(next.id);\n }\n }\n\n onPrimary(): void {\n if (this.primaryLoading() || this.primaryDisabled()) return;\n if (this.isLastStep()) {\n this.finish.emit();\n } else {\n this.onNext();\n }\n }\n}\n","<div class=\"min-h-full bg-transparent\">\n\n <!-- ============ Sticky Header + Stepper ============ -->\n @if (showHeader()) {\n <div\n class=\"sticky top-0 z-20 bg-white dark:[background-color:var(--shk-surface-50)] border-b _shk-border shadow-sm\"\n >\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-4\">\n <div class=\"flex items-center gap-4 mb-4\">\n @if (showBackButton()) {\n <button\n type=\"button\"\n (click)=\"back.emit()\"\n [attr.aria-label]=\"backTooltip()\"\n [attr.title]=\"backTooltip()\"\n class=\"shk-wizard-icon-btn shrink-0\"\n >\n <svg [shkIcon]=\"getIcon('arrow-left')\" class=\"w-4 h-4\"></svg>\n </button>\n }\n <div class=\"flex-1 min-w-0 flex items-center gap-2.5\">\n @if (headerIcon()) {\n <span class=\"w-9 h-9 rounded-lg _shk-bg-primary-soft _shk-text-primary flex items-center justify-center shrink-0\">\n <svg [shkIcon]=\"getIcon(headerIcon())\" class=\"w-4 h-4\"></svg>\n </span>\n }\n <div class=\"min-w-0\">\n <h1 class=\"text-xl font-bold _shk-text-surface-800 truncate\">\n {{ headerTitle() }}\n </h1>\n @if (headerSubtitle()) {\n <p class=\"text-xs _shk-text-surface-500 mt-0.5 truncate\">\n {{ headerSubtitle() }}\n </p>\n }\n </div>\n </div>\n <ng-content select=\"[shkWizardHeaderActions]\"></ng-content>\n </div>\n\n <!-- Stepper -->\n @if (showStepper() && steps().length > 1) {\n <div class=\"flex items-center gap-2 w-full max-w-3xl mx-auto\">\n @for (step of steps(); track step.id; let i = $index, last = $last) {\n <div class=\"flex items-center gap-3 shrink-0\">\n <button\n type=\"button\"\n (click)=\"goTo(step.id)\"\n [disabled]=\"!stepperClickable() || currentIndex() < i\"\n [attr.aria-label]=\"step.label\"\n class=\"shk-wizard-stepper-dot\"\n [class._shk-bg-primary]=\"currentIndex() > i || currentIndex() === i\"\n [class.text-white]=\"currentIndex() > i || currentIndex() === i\"\n [class._shk-bg-surface-200]=\"currentIndex() < i\"\n [class._shk-text-surface-500]=\"currentIndex() < i\"\n [class.cursor-pointer]=\"stepperClickable() && currentIndex() >= i\"\n [class.cursor-default]=\"!stepperClickable() || currentIndex() < i\"\n >\n @if (currentIndex() > i) {\n <svg [shkIcon]=\"getIcon(step.icon || 'check')\" class=\"w-4 h-4\"></svg>\n } @else if (step.icon) {\n <svg [shkIcon]=\"getIcon(step.icon)\" class=\"w-4 h-4\"></svg>\n } @else {\n {{ i + 1 }}\n }\n </button>\n <span\n class=\"text-sm font-semibold transition-colors whitespace-nowrap hidden sm:inline\"\n [class._shk-text-surface-800]=\"currentIndex() === i\"\n [class._shk-text-surface-500]=\"currentIndex() !== i\"\n >\n {{ step.label }}\n </span>\n </div>\n\n @if (!last) {\n <div class=\"flex-1 h-0.5 _shk-bg-surface-200 relative overflow-hidden rounded-full\">\n <div\n class=\"absolute inset-y-0 left-0 _shk-bg-primary transition-all duration-300\"\n [class.w-full]=\"currentIndex() > i\"\n [class.w-0]=\"currentIndex() <= i\"\n ></div>\n </div>\n }\n }\n </div>\n }\n </div>\n </div>\n }\n\n <!-- ============ Active step content ============ -->\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-6 pb-28\">\n @if (currentIndex() >= 0) {\n @if (getStepTemplate(steps()[currentIndex()].id); as tpl) {\n <div class=\"shk-wizard-fade\" [style.view-transition-name]=\"'shk-wizard-step'\">\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { step: currentStepObj(), index: currentIndex() }\"\n ></ng-container>\n </div>\n } @else {\n <p class=\"text-sm _shk-text-surface-400\">\n No hay contenido definido para el paso «{{ steps()[currentIndex()].label }}».\n </p>\n }\n }\n </div>\n\n <!-- ============ Sticky Footer ============ -->\n @if (showFooter() && steps().length > 0) {\n <div\n class=\"sticky bottom-0 z-20 bg-white dark:[background-color:var(--shk-surface-50)] border-t _shk-border shadow-[0_-4px_12px_rgba(0,0,0,0.04)] mt-8\"\n >\n <div class=\"w-full px-4 sm:px-6 lg:px-8 py-4 flex items-center justify-end gap-3\">\n @if (showStepCounter()) {\n <span class=\"text-sm _shk-text-surface-500 mr-auto\">\n {{ stepCounterPrefix() }} {{ currentIndex() + 1 }} / {{ steps().length }}\n </span>\n }\n\n @if (isFirstStep()) {\n @if (showCancel()) {\n <button type=\"button\" (click)=\"cancel.emit()\" class=\"shk-wizard-btn-secondary\">\n @if (cancelIcon()) {\n <svg [shkIcon]=\"getIcon(cancelIcon())\" class=\"w-4 h-4\"></svg>\n }\n {{ cancelLabel() }}\n </button>\n }\n } @else {\n <button type=\"button\" (click)=\"onPrev()\" class=\"shk-wizard-btn-secondary\">\n <svg [shkIcon]=\"getIcon(prevIcon())\" class=\"w-4 h-4\"></svg>\n {{ prevLabel() }}\n </button>\n }\n\n <button\n type=\"button\"\n (click)=\"onPrimary()\"\n [disabled]=\"primaryDisabled() || primaryLoading()\"\n class=\"shk-wizard-btn-primary\"\n >\n @if (primaryLoading()) {\n <svg [shkIcon]=\"getIcon('loader-circle')\" class=\"w-4 h-4 shk-wizard-spin\"></svg>\n } @else {\n @if (primaryActionIcon()) {\n <svg [shkIcon]=\"getIcon(primaryActionIcon())\" class=\"w-4 h-4\"></svg>\n }\n }\n {{ primaryActionLabel() }}\n </button>\n </div>\n </div>\n }\n</div>\n"],"mappings":";;;;;;AA+BA,IAAa,uBAAb,MAAa,qBAAoB;CAE/B,YAAmB,aAAiC;EAAjC,KAAA,cAAA;EADnB,KAAA,SAAS,MAAM,SAAQ;GAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;GAAoB,OAAO;EAAsB,CAAA;CACjB;CAF5C;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA,CAAA,EAAA,OAAA,YAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA,EAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EAHhC,MAAA;EAAU,MAAA,CAAA,EACT,UAAU,oCACX,CAAA;;;;;;;;;;;;AA6ID,IAAa,kBAAb,MAAa,gBAAe;CA3H5B,cAAA;EA4HY,KAAA,WAAW,SAAcA,QAAmB,MAAM,kBAAkB;EAG9E,KAAA,QAAQ,MAAoB,C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,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,MAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,MAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,MAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,oBAAoB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,9 +0,0 @@
1
- /* Theme — import theme.css in your global styles.css:
2
- @import '@shirkasoft/ui-components/theme.css';
3
- Override --shk-* CSS variables at :root or .dark to theme.
4
- */
5
-
6
- /**
7
- * Generated bundle index. Do not edit.
8
- */
9
- //# sourceMappingURL=shirkasoft-ui-components.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shirkasoft-ui-components",
3
- "version": "1.14.0",
3
+ "version": "2.0.0",
4
4
  "description": "Angular UI Components Library — themeable via CSS custom properties",
5
5
  "keywords": [
6
6
  "angular",
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "homepage": "https://ui-library.shirkasoft.com/",
24
24
  "peerDependencies": {
25
- "@angular/common": "^21.2.0",
26
- "@angular/core": "^21.2.0",
27
- "@angular/forms": "^21.2.0",
28
- "@angular/router": "^21.2.0",
25
+ "@angular/common": "^22.3.0",
26
+ "@angular/core": "^22.3.0",
27
+ "@angular/forms": "^22.3.0",
28
+ "@angular/router": "^22.3.0",
29
29
  "rxjs": "^7.8.0",
30
30
  "@jsverse/transloco": ">= 8.0.0",
31
31
  "chart.js": "^4.4.0"
@@ -1,7 +1,9 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { OnDestroy, OnInit } from "@angular/core";
6
+ import { Observable } from "rxjs";
5
7
  /**
6
8
  * Shirkasoft UI Components.
7
9
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -9,28 +11,27 @@ import { Observable } from 'rxjs';
9
11
  */
10
12
  /** A single breadcrumb entry with an optional navigation route. */
11
13
  interface BreadcrumbItem {
12
- label: string;
13
- route?: string;
14
+ label: string;
15
+ route?: string;
14
16
  }
15
17
  /**
16
18
  * Global breadcrumb state. Components and pages write the current trail via
17
19
  * `set()` and observatories read it through `breadcrumbs$`.
18
20
  */
19
- declare class BreadcrumbService {
20
- /** Internal buffer holding the current breadcrumb trail. */
21
- private breadcrumbsSubject;
22
- /** Observable emitted with the latest breadcrumb trail. */
23
- breadcrumbs$: Observable<BreadcrumbItem[]>;
24
- /** Replaces the whole breadcrumb trail. */
25
- set(items: BreadcrumbItem[]): void;
26
- /** Empties the breadcrumb trail. */
27
- clear(): void;
28
- /** Returns the breadcrumb trail currently held (snapshot). */
29
- getCurrent(): BreadcrumbItem[];
30
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbService, never>;
31
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreadcrumbService>;
21
+ export declare class BreadcrumbService {
22
+ /** Internal buffer holding the current breadcrumb trail. */
23
+ private breadcrumbsSubject;
24
+ /** Observable emitted with the latest breadcrumb trail. */
25
+ breadcrumbs$: Observable<BreadcrumbItem[]>;
26
+ /** Replaces the whole breadcrumb trail. */
27
+ set(items: BreadcrumbItem[]): void;
28
+ /** Empties the breadcrumb trail. */
29
+ clear(): void;
30
+ /** Returns the breadcrumb trail currently held (snapshot). */
31
+ getCurrent(): BreadcrumbItem[];
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
32
34
  }
33
-
34
35
  type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
35
36
  /**
36
37
  * Shirkasoft UI Components.
@@ -41,28 +42,42 @@ type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
41
42
  * Navigation breadcrumb showing the current page hierarchy. Can be fed with
42
43
  * static items or driven by the shared BreadcrumbService.
43
44
  */
44
- declare class BreadcrumbComponent implements OnInit, OnDestroy {
45
- private readonly breadcrumbService;
46
- /** Static list of breadcrumb items. Takes precedence over the service items. */
47
- items: _angular_core.InputSignal<BreadcrumbItem[]>;
48
- /** Visual separator between items: 'chevron', 'slash' or 'arrow'. */
49
- separator: _angular_core.InputSignal<BreadcrumbSeparator>;
50
- /** When true, subscribes to the BreadcrumbService to resolve items. */
51
- useService: _angular_core.InputSignal<boolean>;
52
- /** Items received from the BreadcrumbService. */
53
- protected serviceItems: _angular_core.WritableSignal<BreadcrumbItem[]>;
54
- /** Final items: static `items` if provided, otherwise the service items. */
55
- protected resolvedItems: _angular_core.Signal<BreadcrumbItem[]>;
56
- /** Active subscription to the breadcrumb stream. */
57
- private serviceSub;
58
- constructor();
59
- /** Subscribes to the BreadcrumbService when `useService` is enabled. */
60
- ngOnInit(): void;
61
- /** Unsubscribes from the breadcrumb stream to avoid leaks. */
62
- ngOnDestroy(): void;
63
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
64
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "shk-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "useService": { "alias": "useService"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
45
+ export declare class BreadcrumbComponent implements OnInit, OnDestroy {
46
+ private readonly breadcrumbService;
47
+ /** Static list of breadcrumb items. Takes precedence over the service items. */
48
+ items: import("@angular/core").InputSignal<BreadcrumbItem[]>;
49
+ /** Visual separator between items: 'chevron', 'slash' or 'arrow'. */
50
+ separator: import("@angular/core").InputSignal<BreadcrumbSeparator>;
51
+ /** When true, subscribes to the BreadcrumbService to resolve items. */
52
+ useService: import("@angular/core").InputSignal<boolean>;
53
+ /** Items received from the BreadcrumbService. */
54
+ protected serviceItems: import("@angular/core").WritableSignal<BreadcrumbItem[]>;
55
+ /** Final items: static `items` if provided, otherwise the service items. */
56
+ protected resolvedItems: import("@angular/core").Signal<BreadcrumbItem[]>;
57
+ /** Active subscription to the breadcrumb stream. */
58
+ private serviceSub;
59
+ constructor();
60
+ /** Subscribes to the BreadcrumbService when `useService` is enabled. */
61
+ ngOnInit(): void;
62
+ /** Unsubscribes from the breadcrumb stream to avoid leaks. */
63
+ ngOnDestroy(): void;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "shk-breadcrumb", never, {
66
+ "items": {
67
+ "alias": "items";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "separator": {
72
+ "alias": "separator";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "useService": {
77
+ "alias": "useService";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ }, {}, never, never, true, never>;
65
82
  }
66
-
67
- export { BreadcrumbComponent, BreadcrumbService };
68
- export type { BreadcrumbItem, BreadcrumbSeparator };
83
+ export type { BreadcrumbItem, BreadcrumbSeparator };
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { getIcon } from 'shirkasoft-ui-components/utils';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { getIcon } from "shirkasoft-ui-components/utils";
5
+ import * as i0 from "@angular/core";
4
6
  type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'help' | 'contrast';
5
7
  type ButtonSize = 'small' | 'large';
6
8
  type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
@@ -10,50 +12,141 @@ type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
10
12
  * Belongs to Shirkasoft.
11
13
  */
12
14
  /** Generic button with icon, severity variants, loading state and sizes. */
13
- declare class ButtonComponent {
14
- /** Text shown inside the button. */
15
- label: _angular_core.InputSignal<string>;
16
- /** Optional leading icon: registered name (e.g. `'plus'`) or `IconNode` data. */
17
- icon: _angular_core.InputSignal<any>;
18
- /** Position of the icon relative to the label. */
19
- iconPos: _angular_core.InputSignal<ButtonIconPosition>;
20
- /** Color variant. Defaults to 'primary'. */
21
- severity: _angular_core.InputSignal<ButtonSeverity>;
22
- /** Transparent background with a colored border. */
23
- outlined: _angular_core.InputSignal<boolean>;
24
- /** Borderless button with a colored label. */
25
- text: _angular_core.InputSignal<boolean>;
26
- /** Adds a soft shadow. */
27
- raised: _angular_core.InputSignal<boolean>;
28
- /** Fully rounded corners (pill). */
29
- rounded: _angular_core.InputSignal<boolean>;
30
- /** Size variant. */
31
- size: _angular_core.InputSignal<ButtonSize | undefined>;
32
- /** Disables the button. */
33
- disabled: _angular_core.InputSignal<boolean>;
34
- /** Shows a spinner and disables the button. */
35
- loading: _angular_core.InputSignal<boolean>;
36
- /** Icon shown while loading. Defaults to 'refresh'. */
37
- loadingIcon: _angular_core.InputSignal<string>;
38
- /** Optional text shown instead of the label while loading. */
39
- loadingText: _angular_core.InputSignal<string>;
40
- /** Native button type. */
41
- type: _angular_core.InputSignal<"button" | "submit" | "reset">;
42
- /** Accessible label when the button is icon-only. */
43
- ariaLabel: _angular_core.InputSignal<string>;
44
- /** Native title tooltip. */
45
- title: _angular_core.InputSignal<string>;
46
- /** Inline styles applied to the button. */
47
- style: _angular_core.InputSignal<Record<string, string | number>>;
48
- /** Extra CSS classes. */
49
- styleClass: _angular_core.InputSignal<string>;
50
- /** Emitted on click with the original MouseEvent. */
51
- onClick: _angular_core.OutputEmitterRef<MouseEvent>;
52
- protected getIcon: typeof getIcon;
53
- protected iconOnly: _angular_core.Signal<boolean>;
54
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
55
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "shk-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
15
+ export declare class ButtonComponent {
16
+ /** Text shown inside the button. */
17
+ label: import("@angular/core").InputSignal<string>;
18
+ /** Optional leading icon: registered name (e.g. `'plus'`) or `IconNode` data. */
19
+ icon: import("@angular/core").InputSignal<any>;
20
+ /** Position of the icon relative to the label. */
21
+ iconPos: import("@angular/core").InputSignal<ButtonIconPosition>;
22
+ /** Color variant. Defaults to 'primary'. */
23
+ severity: import("@angular/core").InputSignal<ButtonSeverity>;
24
+ /** Transparent background with a colored border. */
25
+ outlined: import("@angular/core").InputSignal<boolean>;
26
+ /** Borderless button with a colored label. */
27
+ text: import("@angular/core").InputSignal<boolean>;
28
+ /** Adds a soft shadow. */
29
+ raised: import("@angular/core").InputSignal<boolean>;
30
+ /** Fully rounded corners (pill). */
31
+ rounded: import("@angular/core").InputSignal<boolean>;
32
+ /** Size variant. */
33
+ size: import("@angular/core").InputSignal<ButtonSize | undefined>;
34
+ /** Disables the button. */
35
+ disabled: import("@angular/core").InputSignal<boolean>;
36
+ /** Shows a spinner and disables the button. */
37
+ loading: import("@angular/core").InputSignal<boolean>;
38
+ /** Icon shown while loading. Defaults to 'refresh'. */
39
+ loadingIcon: import("@angular/core").InputSignal<string>;
40
+ /** Optional text shown instead of the label while loading. */
41
+ loadingText: import("@angular/core").InputSignal<string>;
42
+ /** Native button type. */
43
+ type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
44
+ /** Accessible label when the button is icon-only. */
45
+ ariaLabel: import("@angular/core").InputSignal<string>;
46
+ /** Native title tooltip. */
47
+ title: import("@angular/core").InputSignal<string>;
48
+ /** Inline styles applied to the button. */
49
+ style: import("@angular/core").InputSignal<Record<string, string | number>>;
50
+ /** Extra CSS classes. */
51
+ styleClass: import("@angular/core").InputSignal<string>;
52
+ /** Emitted on click with the original MouseEvent. */
53
+ onClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
54
+ protected getIcon: typeof getIcon;
55
+ protected iconOnly: import("@angular/core").Signal<boolean>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "shk-button", never, {
58
+ "label": {
59
+ "alias": "label";
60
+ "required": false;
61
+ "isSignal": true;
62
+ };
63
+ "icon": {
64
+ "alias": "icon";
65
+ "required": false;
66
+ "isSignal": true;
67
+ };
68
+ "iconPos": {
69
+ "alias": "iconPos";
70
+ "required": false;
71
+ "isSignal": true;
72
+ };
73
+ "severity": {
74
+ "alias": "severity";
75
+ "required": false;
76
+ "isSignal": true;
77
+ };
78
+ "outlined": {
79
+ "alias": "outlined";
80
+ "required": false;
81
+ "isSignal": true;
82
+ };
83
+ "text": {
84
+ "alias": "text";
85
+ "required": false;
86
+ "isSignal": true;
87
+ };
88
+ "raised": {
89
+ "alias": "raised";
90
+ "required": false;
91
+ "isSignal": true;
92
+ };
93
+ "rounded": {
94
+ "alias": "rounded";
95
+ "required": false;
96
+ "isSignal": true;
97
+ };
98
+ "size": {
99
+ "alias": "size";
100
+ "required": false;
101
+ "isSignal": true;
102
+ };
103
+ "disabled": {
104
+ "alias": "disabled";
105
+ "required": false;
106
+ "isSignal": true;
107
+ };
108
+ "loading": {
109
+ "alias": "loading";
110
+ "required": false;
111
+ "isSignal": true;
112
+ };
113
+ "loadingIcon": {
114
+ "alias": "loadingIcon";
115
+ "required": false;
116
+ "isSignal": true;
117
+ };
118
+ "loadingText": {
119
+ "alias": "loadingText";
120
+ "required": false;
121
+ "isSignal": true;
122
+ };
123
+ "type": {
124
+ "alias": "type";
125
+ "required": false;
126
+ "isSignal": true;
127
+ };
128
+ "ariaLabel": {
129
+ "alias": "ariaLabel";
130
+ "required": false;
131
+ "isSignal": true;
132
+ };
133
+ "title": {
134
+ "alias": "title";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "style": {
139
+ "alias": "style";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "styleClass": {
144
+ "alias": "styleClass";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ }, {
149
+ "onClick": "onClick";
150
+ }, never, ["*"], true, never>;
56
151
  }
57
-
58
- export { ButtonComponent };
59
- export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
152
+ export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { AfterViewInit, OnDestroy } from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { AfterViewInit, OnDestroy } from "@angular/core";
4
6
  /**
5
7
  * Shirkasoft UI Components.
6
8
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -10,56 +12,69 @@ import { AfterViewInit, OnDestroy } from '@angular/core';
10
12
  * Chart.js wrapper that renders line, bar, pie, doughnut or polarArea charts
11
13
  * and updates them reactively as the inputs change.
12
14
  */
13
- declare class ChartComponent implements AfterViewInit, OnDestroy {
14
- /** Guarantees Chart.js plugins are only registered once. */
15
- private static registered;
16
- /** Type of chart to render. */
17
- type: _angular_core.InputSignal<"line" | "bar" | "pie" | "doughnut" | "polarArea">;
18
- /** Chart.js datasets payload. */
19
- data: _angular_core.InputSignal<any>;
20
- /** Chart.js options object. */
21
- options: _angular_core.InputSignal<any>;
22
- /** Reference to the inner canvas element. */
23
- private canvasRef;
24
- /** Live Chart.js instance. */
25
- private chartInstance;
26
- /** Whether the view has been initialized yet. */
27
- private initialized;
28
- constructor();
29
- /** Creates the initial chart once the canvas is available. */
30
- ngAfterViewInit(): void;
31
- /** Destroys the Chart.js instance. */
32
- ngOnDestroy(): void;
33
- /** Clears the canvas by reassigning its width. */
34
- private resetCanvas;
35
- /** Creates a new Chart.js instance on the canvas. */
36
- private initChart;
37
- /** Deep clones a value to detach it from Angular's reactive objects. */
38
- private deepClone;
39
- /** Applies the new data/options, rebuilding the chart when the type changes. */
40
- private updateChart;
41
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartComponent, never>;
42
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "shk-chart", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
+ export declare class ChartComponent implements AfterViewInit, OnDestroy {
16
+ /** Guarantees Chart.js plugins are only registered once. */
17
+ private static registered;
18
+ /** Type of chart to render. */
19
+ type: import("@angular/core").InputSignal<"line" | "bar" | "pie" | "doughnut" | "polarArea">;
20
+ /** Chart.js datasets payload. */
21
+ data: import("@angular/core").InputSignal<any>;
22
+ /** Chart.js options object. */
23
+ options: import("@angular/core").InputSignal<any>;
24
+ /** Reference to the inner canvas element. */
25
+ private canvasRef;
26
+ /** Live Chart.js instance. */
27
+ private chartInstance;
28
+ /** Whether the view has been initialized yet. */
29
+ private initialized;
30
+ constructor();
31
+ /** Creates the initial chart once the canvas is available. */
32
+ ngAfterViewInit(): void;
33
+ /** Destroys the Chart.js instance. */
34
+ ngOnDestroy(): void;
35
+ /** Clears the canvas by reassigning its width. */
36
+ private resetCanvas;
37
+ /** Creates a new Chart.js instance on the canvas. */
38
+ private initChart;
39
+ /** Deep clones a value to detach it from Angular's reactive objects. */
40
+ private deepClone;
41
+ /** Applies the new data/options, rebuilding the chart when the type changes. */
42
+ private updateChart;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "shk-chart", never, {
45
+ "type": {
46
+ "alias": "type";
47
+ "required": false;
48
+ "isSignal": true;
49
+ };
50
+ "data": {
51
+ "alias": "data";
52
+ "required": false;
53
+ "isSignal": true;
54
+ };
55
+ "options": {
56
+ "alias": "options";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ }, {}, never, never, true, never>;
43
61
  }
44
-
45
62
  /**
46
63
  * Shirkasoft UI Components.
47
64
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
48
65
  * Belongs to Shirkasoft.
49
66
  */
50
67
  /** Default dataset colors used by the ChartComponent when no palette is provided. */
51
- declare const COLOR_PALETTE: {
52
- bg: string;
53
- border: string;
68
+ export declare const COLOR_PALETTE: {
69
+ bg: string;
70
+ border: string;
54
71
  }[];
55
72
  /**
56
73
  * Reads the current `--shk-*` CSS variables from the document and returns
57
74
  * the text, muted and border colors used by charts to follow the active theme.
58
75
  */
59
- declare function readThemeColors(): {
60
- text: string;
61
- muted: string;
62
- border: string;
63
- };
64
-
65
- export { COLOR_PALETTE, ChartComponent, readThemeColors };
76
+ export declare function readThemeColors(): {
77
+ text: string;
78
+ muted: string;
79
+ border: string;
80
+ };