shirkasoft-ui-components 1.13.18 → 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.
- package/README.md +415 -42
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +37 -7
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +357 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
- package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
- package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
- package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
- package/types/shirkasoft-ui-components-knob.d.ts +151 -64
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -132
- package/types/shirkasoft-ui-components-notification.d.ts +63 -58
- package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +301 -192
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -649
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
- package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
- package/types/shirkasoft-ui-components-theme.d.ts +80 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +26 -17
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
- package/types/shirkasoft-ui-components.d.ts +1 -2
- 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 { LucideDynamicIcon, LucideChevronRight } from '@lucide/angular';\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 lucide icon 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 standalone: true,\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 standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, LucideDynamicIcon],\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 lucide icon 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 dark:[border-color:var(--shk-surface-200)] 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 [lucideIcon]=\"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 [lucideIcon]=\"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 dark:[color:var(--shk-surface-800)] truncate\">\n {{ headerTitle() }}\n </h1>\n @if (headerSubtitle()) {\n <p class=\"text-xs _shk-text-surface-500 dark:[color:var(--shk-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 [lucideIcon]=\"getIcon(step.icon || 'check')\" class=\"w-4 h-4\"></svg>\n } @else if (step.icon) {\n <svg [lucideIcon]=\"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 [class.dark:[color:var(--shk-surface-800)]]=\"currentIndex() === i\"\n [class.dark:[color:var(--shk-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 dark:[background-color:var(--shk-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 dark:[color:var(--shk-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 dark:[border-color:var(--shk-surface-200)] 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 dark:[color:var(--shk-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 [lucideIcon]=\"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 [lucideIcon]=\"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 [lucideIcon]=\"getIcon('loader-circle')\" class=\"w-4 h-4 shk-wizard-spin\"></svg>\n } @else {\n @if (primaryActionIcon()) {\n <svg [lucideIcon]=\"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;MAKa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,CAAmB,WAAiC,EAAA;QAAjC,IAAA,CAAA,WAAW,GAAX,WAAW;QAD9B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,6EAAoB,KAAK,EAAE,sBAAsB,EAAA,CAAG;IACpB;+GAF5C,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mCAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mCAAmC;AAC7C,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;AAMD,IAAI,aAAa,GAAG,CAAC;AAErB;;;;AAIG;AAEH;;;AAGG;MA6HU,eAAe,CAAA;AA5H5B,IAAA,WAAA,GAAA;AA6HY,QAAA,IAAA,CAAA,OAAO,GAAG,CAAC,IAAS,KAAKA,OAAkB,CAAC,IAAI,EAAE,kBAAkB,CAAC;;AAG/E,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,EAAE,4EAAC;;AAE/B,QAAA,IAAA,CAAA,WAAW,GAAG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MAAM,EAAE;QACf;IACF;+GA3HW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,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,EC1O9D,u1NA6JA,EAAA,MAAA,EAAA,CAAA,ivEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDxGY,YAAY,sMAAE,iBAAiB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAwH9B,eAAe,EAAA,UAAA,EAAA,CAAA;kBA5H3B,SAAS;+BACE,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,YAAY,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,u1NAAA,EAAA,MAAA,EAAA,CAAA,ivEAAA,CAAA,EAAA;4oGAqLF,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1O9D;;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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,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,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,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shirkasoft-ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Angular UI Components Library — themeable via CSS custom properties",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
7
|
"ui",
|
|
8
8
|
"components",
|
|
9
|
-
"
|
|
9
|
+
"css",
|
|
10
|
+
"themes",
|
|
10
11
|
"shirkasoft",
|
|
11
12
|
"theming"
|
|
12
13
|
],
|
|
@@ -21,23 +22,36 @@
|
|
|
21
22
|
},
|
|
22
23
|
"homepage": "https://ui-library.shirkasoft.com/",
|
|
23
24
|
"peerDependencies": {
|
|
24
|
-
"@angular/common": "^
|
|
25
|
-
"@angular/core": "^
|
|
26
|
-
"@angular/forms": "^
|
|
27
|
-
"@angular/router": "^
|
|
25
|
+
"@angular/common": "^22.3.0",
|
|
26
|
+
"@angular/core": "^22.3.0",
|
|
27
|
+
"@angular/forms": "^22.3.0",
|
|
28
|
+
"@angular/router": "^22.3.0",
|
|
28
29
|
"rxjs": "^7.8.0",
|
|
29
30
|
"@jsverse/transloco": ">= 8.0.0",
|
|
30
|
-
"@lucide/angular": "^1.30.0",
|
|
31
31
|
"chart.js": "^4.4.0"
|
|
32
32
|
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"@jsverse/transloco": {
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
"chart.js": {
|
|
38
|
+
"optional": true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
33
41
|
"dependencies": {
|
|
34
42
|
"tslib": "^2.3.0"
|
|
35
43
|
},
|
|
36
44
|
"sideEffects": false,
|
|
37
45
|
"exports": {
|
|
46
|
+
"./tokens.css": {
|
|
47
|
+
"default": "./src/tokens.css"
|
|
48
|
+
},
|
|
38
49
|
"./theme.css": {
|
|
39
50
|
"default": "./src/theme.css"
|
|
40
51
|
},
|
|
52
|
+
"./themes/*.css": {
|
|
53
|
+
"default": "./src/themes/*.css"
|
|
54
|
+
},
|
|
41
55
|
"./package.json": {
|
|
42
56
|
"default": "./package.json"
|
|
43
57
|
},
|
|
@@ -57,6 +71,10 @@
|
|
|
57
71
|
"types": "./types/shirkasoft-ui-components-chart.d.ts",
|
|
58
72
|
"default": "./fesm2022/shirkasoft-ui-components-chart.mjs"
|
|
59
73
|
},
|
|
74
|
+
"./config": {
|
|
75
|
+
"types": "./types/shirkasoft-ui-components-config.d.ts",
|
|
76
|
+
"default": "./fesm2022/shirkasoft-ui-components-config.mjs"
|
|
77
|
+
},
|
|
60
78
|
"./confirm-dialog": {
|
|
61
79
|
"types": "./types/shirkasoft-ui-components-confirm-dialog.d.ts",
|
|
62
80
|
"default": "./fesm2022/shirkasoft-ui-components-confirm-dialog.mjs"
|
|
@@ -73,6 +91,10 @@
|
|
|
73
91
|
"types": "./types/shirkasoft-ui-components-file-upload.d.ts",
|
|
74
92
|
"default": "./fesm2022/shirkasoft-ui-components-file-upload.mjs"
|
|
75
93
|
},
|
|
94
|
+
"./icons": {
|
|
95
|
+
"types": "./types/shirkasoft-ui-components-icons.d.ts",
|
|
96
|
+
"default": "./fesm2022/shirkasoft-ui-components-icons.mjs"
|
|
97
|
+
},
|
|
76
98
|
"./knob": {
|
|
77
99
|
"types": "./types/shirkasoft-ui-components-knob.d.ts",
|
|
78
100
|
"default": "./fesm2022/shirkasoft-ui-components-knob.mjs"
|
|
@@ -125,6 +147,14 @@
|
|
|
125
147
|
"types": "./types/shirkasoft-ui-components-text-field.d.ts",
|
|
126
148
|
"default": "./fesm2022/shirkasoft-ui-components-text-field.mjs"
|
|
127
149
|
},
|
|
150
|
+
"./theme": {
|
|
151
|
+
"types": "./types/shirkasoft-ui-components-theme.d.ts",
|
|
152
|
+
"default": "./fesm2022/shirkasoft-ui-components-theme.mjs"
|
|
153
|
+
},
|
|
154
|
+
"./theme-picker": {
|
|
155
|
+
"types": "./types/shirkasoft-ui-components-theme-picker.d.ts",
|
|
156
|
+
"default": "./fesm2022/shirkasoft-ui-components-theme-picker.mjs"
|
|
157
|
+
},
|
|
128
158
|
"./timeline": {
|
|
129
159
|
"types": "./types/shirkasoft-ui-components-timeline.d.ts",
|
|
130
160
|
"default": "./fesm2022/shirkasoft-ui-components-timeline.mjs"
|