@sixbell-telco/sdk 3.1.0 → 3.2.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/CHANGELOG.md +121 -16
- package/README.md +76 -58
- package/_index.css +297 -122
- package/components/accordion/README.md +20 -0
- package/components/audio-player/README.md +18 -0
- package/components/avatar/README.md +17 -0
- package/components/badge/README.md +17 -0
- package/components/badge/src/badge.component.d.ts +3 -3
- package/components/button/README.md +18 -0
- package/components/button/src/button.component.d.ts +2 -2
- package/components/card/README.md +36 -0
- package/components/countdown/README.md +18 -0
- package/components/data-table/README.md +31 -0
- package/components/data-table/src/data-table.component.d.ts +6 -1
- package/components/dialog/README.md +24 -0
- package/components/dialog/src/dialog.component.d.ts +4 -1
- package/components/divider/README.md +17 -0
- package/components/dropdown/README.md +25 -0
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
- package/components/dropdown-menu/README.md +24 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
- package/components/dual-list/README.md +17 -0
- package/components/file-upload/README.md +17 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
- package/components/forms/checkbox/README.md +17 -0
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
- package/components/forms/combobox/README.md +26 -0
- package/components/forms/combobox/src/combobox.component.d.ts +16 -4
- package/components/forms/date-picker/README.md +27 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +21 -0
- package/components/forms/form-group/src/form-group.component.d.ts +27 -38
- package/components/forms/input/README.md +18 -0
- package/components/forms/input/src/input.component.d.ts +2 -2
- package/components/forms/radio/README.md +14 -0
- package/components/forms/radio/src/radio.component.d.ts +2 -2
- package/components/forms/range/README.md +13 -0
- package/components/forms/range/src/range.component.d.ts +2 -2
- package/components/forms/select/README.md +18 -0
- package/components/forms/select/src/select.component.d.ts +15 -4
- package/components/forms/switch/README.md +13 -0
- package/components/forms/switch/src/switch.component.d.ts +2 -2
- package/components/forms/textarea/README.md +17 -0
- package/components/forms/textarea/src/textarea.component.d.ts +2 -2
- package/components/forms/toggle/README.md +13 -0
- package/components/forms/toggle/src/toggle.component.d.ts +5 -36
- package/components/icon/README.md +18 -0
- package/components/link/README.md +17 -0
- package/components/link/src/link.component.d.ts +2 -2
- package/components/notification/README.md +13 -0
- package/components/notification/src/notification.component.d.ts +3 -3
- package/components/overlay/README.md +33 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +34 -0
- package/components/paginator/README.md +17 -0
- package/components/product-card/README.md +13 -0
- package/components/progress/README.md +17 -0
- package/components/progress/src/progress.component.d.ts +3 -3
- package/components/sonner/README.md +23 -0
- package/components/sonner/src/sonner.component.d.ts +2 -2
- package/components/tab/README.md +17 -0
- package/components/table/README.md +20 -0
- package/components/table/src/table.component.d.ts +6 -1
- package/components/table/table-action/table-action.component.d.ts +26 -3
- package/components/text/README.md +14 -0
- package/components/tooltip/README.md +29 -0
- package/components/tooltip/src/tooltip.component.d.ts +64 -4
- package/components/wizard/README.md +25 -0
- package/components/wizard/services/wizard.service.d.ts +1 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +24 -24
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +6 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +42 -42
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +40 -34
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +21 -18
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +36 -30
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +46 -46
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +49 -40
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +11 -11
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +95 -26
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +31 -9
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +30 -41
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +56 -24
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +9 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +102 -156
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +5 -4
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +26 -5
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +319 -30
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +38 -28
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +6 -5
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +8 -8
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +10 -10
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +56 -24
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +369 -13
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +81 -61
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +299 -160
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +96 -91
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +34 -19
- package/utils/theme/public-api.d.ts +2 -2
- package/utils/theme/src/constants.d.ts +6 -6
- package/utils/theme/src/models/theme.d.ts +14 -6
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
- package/utils/theme/src/utils/utils.d.ts +9 -3
|
@@ -19,6 +19,7 @@ const WIZARD_STEP_STATUS = {
|
|
|
19
19
|
IN_PROGRESS: 'in progress',
|
|
20
20
|
PENDING: 'pending',
|
|
21
21
|
COMPLETED: 'completed',
|
|
22
|
+
ERROR: 'error',
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Service for managing wizard state and navigation
|
|
@@ -310,10 +311,10 @@ class WizardService {
|
|
|
310
311
|
this._lastStepIndex.set(0);
|
|
311
312
|
this._isTransitioning.set(false);
|
|
312
313
|
}
|
|
313
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
314
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
315
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardService, providedIn: 'root' });
|
|
315
316
|
}
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardService, decorators: [{
|
|
317
318
|
type: Injectable,
|
|
318
319
|
args: [{
|
|
319
320
|
providedIn: 'root',
|
|
@@ -324,16 +325,16 @@ class WizardActionsComponent {
|
|
|
324
325
|
// Base table properties
|
|
325
326
|
alignment = input('left');
|
|
326
327
|
componentClass = computed(() => {
|
|
327
|
-
return cn('flex
|
|
328
|
+
return cn('flex-w font-body flex items-center gap-2 leading-normal text-pretty', {
|
|
328
329
|
'justify-start': this.alignment() === 'left',
|
|
329
330
|
'justify-end': this.alignment() === 'right',
|
|
330
331
|
'justify-center': this.alignment() === 'center',
|
|
331
332
|
});
|
|
332
333
|
});
|
|
333
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
334
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
335
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: WizardActionsComponent, isStandalone: true, selector: "st-wizard-actions", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
335
336
|
}
|
|
336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardActionsComponent, decorators: [{
|
|
337
338
|
type: Component,
|
|
338
339
|
args: [{ selector: 'st-wizard-actions', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n" }]
|
|
339
340
|
}] });
|
|
@@ -399,7 +400,7 @@ class WizardContentComponent {
|
|
|
399
400
|
* @returns {string} Animation classes
|
|
400
401
|
* @internal
|
|
401
402
|
*/
|
|
402
|
-
componentClass = computed(() => cn('animate-fade-in animate-duration-300
|
|
403
|
+
componentClass = computed(() => cn('animate-fade-in animate-duration-300 font-body leading-normal text-pretty'));
|
|
403
404
|
/**
|
|
404
405
|
* Sets up validation state synchronization
|
|
405
406
|
* @remarks Uses takeUntilDestroyed for automatic cleanup
|
|
@@ -409,10 +410,10 @@ class WizardContentComponent {
|
|
|
409
410
|
this.wizardService.updateStepIsValid(this.stepIndex(), isValid);
|
|
410
411
|
});
|
|
411
412
|
}
|
|
412
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
413
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
413
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
414
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardContentComponent, isStandalone: true, selector: "st-wizard-content", inputs: { stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: false, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" });
|
|
414
415
|
}
|
|
415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardContentComponent, decorators: [{
|
|
416
417
|
type: Component,
|
|
417
418
|
args: [{ selector: 'st-wizard-content', imports: [], template: "@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n" }]
|
|
418
419
|
}], ctorParameters: () => [] });
|
|
@@ -464,13 +465,16 @@ class WizardMarkerComponent {
|
|
|
464
465
|
inProgress = signal('in progress');
|
|
465
466
|
/** @internal Signal holding translated "pending" text */
|
|
466
467
|
pending = signal('pending');
|
|
468
|
+
/** @internal Signal holding translated "error" text */
|
|
469
|
+
error = signal('error');
|
|
467
470
|
/** @internal Base CSS classes for the marker */
|
|
468
|
-
baseClasses = 'rounded-
|
|
471
|
+
baseClasses = 'rounded-selector transition-colors duration-300 ease-out delay-150 text-nowrap w-max';
|
|
469
472
|
/** @internal Status-to-class mapping */
|
|
470
473
|
statusClassMap = {
|
|
471
|
-
completed: 'bg-
|
|
472
|
-
'in progress': 'bg-
|
|
473
|
-
pending: 'bg-
|
|
474
|
+
completed: 'bg-success/20 text-success border-[2px] border-success px-3 py-[5px]',
|
|
475
|
+
'in progress': 'bg-primary text-primary-content border-[2px] border-primary px-[10px] py-[3px]',
|
|
476
|
+
pending: 'bg-base-200 text-base-content border-[2px] border-base-300 px-[10px] py-[3px]',
|
|
477
|
+
error: 'bg-error/20 text-error border-[2px] border-error px-[10px] py-[3px]',
|
|
474
478
|
};
|
|
475
479
|
/**
|
|
476
480
|
* Initializes component translations
|
|
@@ -485,7 +489,13 @@ class WizardMarkerComponent {
|
|
|
485
489
|
* @internal
|
|
486
490
|
*/
|
|
487
491
|
getStatusMarkerMessage() {
|
|
488
|
-
|
|
492
|
+
if (this.status() === 'completed')
|
|
493
|
+
return this.completed();
|
|
494
|
+
if (this.status() === 'in progress')
|
|
495
|
+
return this.inProgress();
|
|
496
|
+
if (this.status() === 'error')
|
|
497
|
+
return this.error();
|
|
498
|
+
return this.pending();
|
|
489
499
|
}
|
|
490
500
|
/**
|
|
491
501
|
* Computes CSS classes based on current status
|
|
@@ -513,11 +523,14 @@ class WizardMarkerComponent {
|
|
|
513
523
|
this.translateService.get(_('sdk.wizard.wizardMarker.pending')).subscribe((res) => {
|
|
514
524
|
this.pending.set(res);
|
|
515
525
|
});
|
|
526
|
+
this.translateService.get(_('sdk.wizard.wizardMarker.error')).subscribe((res) => {
|
|
527
|
+
this.error.set(res);
|
|
528
|
+
});
|
|
516
529
|
}
|
|
517
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
518
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
530
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"statusMarkerClasses()\">\n\t<span stText=\"10\" stTextWeight=\"medium\">{{ statusMarkerMessage() }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
519
532
|
}
|
|
520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardMarkerComponent, decorators: [{
|
|
521
534
|
type: Component,
|
|
522
535
|
args: [{ selector: 'st-wizard-marker', imports: [TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"statusMarkerClasses()\">\n\t<span stText=\"10\" stTextWeight=\"medium\">{{ statusMarkerMessage() }}</span>\n</div>\n" }]
|
|
523
536
|
}] });
|
|
@@ -579,27 +592,24 @@ class WizardStepComponent {
|
|
|
579
592
|
* @internal
|
|
580
593
|
*/
|
|
581
594
|
stepClasses = computed(() => {
|
|
582
|
-
// Base classes
|
|
583
595
|
const baseOuterClasses = 'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content';
|
|
584
|
-
const baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full
|
|
585
|
-
// State variables
|
|
586
|
-
const isCurrentStep = this.wizardService.currentStepIndex() === this.stepIndex();
|
|
596
|
+
const baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full';
|
|
587
597
|
const currentStatus = this.status();
|
|
588
598
|
const isCompleted = currentStatus === 'completed';
|
|
589
599
|
const isInProgress = currentStatus === 'in progress';
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
const isCompletedNotCurrent = !isCurrentStep && isCompleted;
|
|
593
|
-
const isPendingNotCurrent = !isCurrentStep && currentStatus === 'pending';
|
|
600
|
+
const isPending = currentStatus === 'pending';
|
|
601
|
+
const isError = currentStatus === 'error';
|
|
594
602
|
const outerClasses = cn(baseOuterClasses, {
|
|
595
|
-
'border-primary currentStep transition-colors duration-300 ease-out':
|
|
596
|
-
'border-
|
|
597
|
-
'border-
|
|
603
|
+
'border-primary currentStep transition-colors duration-300 ease-out': isInProgress,
|
|
604
|
+
'border-success notCurrentStep transition-colors duration-300 ease-out': isCompleted,
|
|
605
|
+
'border-error notCurrentStep transition-colors duration-300 ease-out': isError,
|
|
606
|
+
'border-base-300 notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPending,
|
|
598
607
|
});
|
|
599
608
|
const innerClasses = cn(baseInnerClasses, {
|
|
600
|
-
'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out':
|
|
601
|
-
'bg-
|
|
602
|
-
'bg-
|
|
609
|
+
'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out': isInProgress,
|
|
610
|
+
'bg-success text-success-content notCurrentStep transition-colors duration-300 ease-out': isCompleted,
|
|
611
|
+
'bg-error text-error-content notCurrentStep transition-colors duration-300 ease-out': isError,
|
|
612
|
+
'bg-base-200 text-base-content notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPending,
|
|
603
613
|
});
|
|
604
614
|
return { outerClasses, innerClasses };
|
|
605
615
|
});
|
|
@@ -613,8 +623,8 @@ class WizardStepComponent {
|
|
|
613
623
|
*/
|
|
614
624
|
stepNumberClasses = computed(() => {
|
|
615
625
|
const isCompleted = this.status() === 'completed';
|
|
616
|
-
return cn({
|
|
617
|
-
'
|
|
626
|
+
return cn('col-start-1 row-start-1 grid place-items-center leading-none', {
|
|
627
|
+
'invisible opacity-0': isCompleted,
|
|
618
628
|
'animate-fade-in animate-duration-300 opacity-100 delay-[350ms]': !isCompleted,
|
|
619
629
|
});
|
|
620
630
|
});
|
|
@@ -628,17 +638,17 @@ class WizardStepComponent {
|
|
|
628
638
|
*/
|
|
629
639
|
stepIconClasses = computed(() => {
|
|
630
640
|
const isCompleted = this.status() === 'completed';
|
|
631
|
-
return cn({
|
|
641
|
+
return cn('col-start-1 row-start-1 grid place-items-center leading-none', {
|
|
632
642
|
'animate-fade-in animate-duration-300 opacity-100 delay-[350ms]': isCompleted,
|
|
633
|
-
'
|
|
643
|
+
'invisible opacity-0': !isCompleted,
|
|
634
644
|
});
|
|
635
645
|
});
|
|
636
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
637
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
646
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
647
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div class=\"wizard-step-overlay grid h-full w-full place-items-center\">\n\t\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t\t@let iconVar = icon();\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t} @else {\n\t\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
638
648
|
}
|
|
639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardStepComponent, decorators: [{
|
|
640
650
|
type: Component,
|
|
641
|
-
args: [{ selector: 'st-wizard-step', imports: [TextDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t@let iconVar = icon();\n\t\t\t@if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t} @else {\n\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t</div>\n\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
651
|
+
args: [{ selector: 'st-wizard-step', imports: [TextDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div class=\"wizard-step-overlay grid h-full w-full place-items-center\">\n\t\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t\t@let iconVar = icon();\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t} @else {\n\t\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
642
652
|
}] });
|
|
643
653
|
|
|
644
654
|
/**
|
|
@@ -698,8 +708,9 @@ class WizardSubStepComponent {
|
|
|
698
708
|
horizontalLeftClasses = computed(() => {
|
|
699
709
|
const isCompleted = this.stepStatus() === 'completed';
|
|
700
710
|
const isInProgress = this.stepStatus() === 'in progress';
|
|
701
|
-
const
|
|
702
|
-
|
|
711
|
+
const isError = this.stepStatus() === 'error';
|
|
712
|
+
const afterWidthClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:w-full' : 'after:w-0';
|
|
713
|
+
return cn('bg-secondary relative h-[2px] w-full', 'after:absolute after:bottom-0 after:left-0 after:h-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
|
|
703
714
|
});
|
|
704
715
|
/**
|
|
705
716
|
* Computed classes for horizontal center indicator
|
|
@@ -707,8 +718,11 @@ class WizardSubStepComponent {
|
|
|
707
718
|
* @internal
|
|
708
719
|
*/
|
|
709
720
|
horizontalCenterClasses = computed(() => {
|
|
710
|
-
const
|
|
711
|
-
|
|
721
|
+
const isCompleted = this.stepStatus() === 'completed';
|
|
722
|
+
const isInProgress = this.stepStatus() === 'in progress';
|
|
723
|
+
const isError = this.stepStatus() === 'error';
|
|
724
|
+
const isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);
|
|
725
|
+
return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
|
|
712
726
|
});
|
|
713
727
|
/**
|
|
714
728
|
* Computed classes for horizontal right connector segment
|
|
@@ -717,8 +731,9 @@ class WizardSubStepComponent {
|
|
|
717
731
|
*/
|
|
718
732
|
horizontalRightClasses = computed(() => {
|
|
719
733
|
const isCompleted = this.stepStatus() === 'completed';
|
|
720
|
-
const
|
|
721
|
-
|
|
734
|
+
const isError = this.stepStatus() === 'error';
|
|
735
|
+
const afterWidthClass = isCompleted || isError ? 'after:w-full' : 'after:w-0';
|
|
736
|
+
return cn('bg-secondary relative h-[2px] w-full', 'after:absolute after:bottom-0 after:left-0 after:h-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
|
|
722
737
|
});
|
|
723
738
|
/**
|
|
724
739
|
* Computed classes for vertical left connector segment
|
|
@@ -728,8 +743,9 @@ class WizardSubStepComponent {
|
|
|
728
743
|
verticalLeftClasses = computed(() => {
|
|
729
744
|
const isCompleted = this.stepStatus() === 'completed';
|
|
730
745
|
const isInProgress = this.stepStatus() === 'in progress';
|
|
731
|
-
const
|
|
732
|
-
|
|
746
|
+
const isError = this.stepStatus() === 'error';
|
|
747
|
+
const afterHeightClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:h-full' : 'after:h-0';
|
|
748
|
+
return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:absolute after:bottom-0 after:left-0 after:w-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
|
|
733
749
|
});
|
|
734
750
|
/**
|
|
735
751
|
* Computed classes for vertical center indicator
|
|
@@ -737,8 +753,11 @@ class WizardSubStepComponent {
|
|
|
737
753
|
* @internal
|
|
738
754
|
*/
|
|
739
755
|
verticalCenterClasses = computed(() => {
|
|
740
|
-
const
|
|
741
|
-
|
|
756
|
+
const isCompleted = this.stepStatus() === 'completed';
|
|
757
|
+
const isInProgress = this.stepStatus() === 'in progress';
|
|
758
|
+
const isError = this.stepStatus() === 'error';
|
|
759
|
+
const isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);
|
|
760
|
+
return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
|
|
742
761
|
});
|
|
743
762
|
/**
|
|
744
763
|
* Computed classes for vertical right connector segment
|
|
@@ -747,15 +766,16 @@ class WizardSubStepComponent {
|
|
|
747
766
|
*/
|
|
748
767
|
verticalRightClasses = computed(() => {
|
|
749
768
|
const isCompleted = this.stepStatus() === 'completed';
|
|
750
|
-
const
|
|
751
|
-
|
|
769
|
+
const isError = this.stepStatus() === 'error';
|
|
770
|
+
const afterHeightClass = isCompleted || isError ? 'after:h-full' : 'after:h-0';
|
|
771
|
+
return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:absolute after:bottom-0 after:left-0 after:w-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
|
|
752
772
|
});
|
|
753
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
754
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
773
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardSubStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
774
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardSubStepComponent, isStandalone: true, selector: "st-wizard-sub-step", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null }, stepStatus: { classPropertyName: "stepStatus", publicName: "stepStatus", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (variant() === 'horizontal') {\n\t<div class=\"wizard-sub-step-horizontal flex w-full min-w-full -translate-y-[25px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"wizard-sub-step-vertical flex h-20 min-h-20 w-fit translate-x-[25px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" });
|
|
755
775
|
}
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardSubStepComponent, decorators: [{
|
|
757
777
|
type: Component,
|
|
758
|
-
args: [{ selector: 'st-wizard-sub-step', imports: [], template: "@if (variant() === 'horizontal') {\n\t<div class=\"flex w-full min-w-full -translate-y-[
|
|
778
|
+
args: [{ selector: 'st-wizard-sub-step', imports: [], template: "@if (variant() === 'horizontal') {\n\t<div class=\"wizard-sub-step-horizontal flex w-full min-w-full -translate-y-[25px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"wizard-sub-step-vertical flex h-20 min-h-20 w-fit translate-x-[25px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" }]
|
|
759
779
|
}] });
|
|
760
780
|
|
|
761
781
|
/**
|
|
@@ -918,10 +938,10 @@ class WizardWrapperComponent {
|
|
|
918
938
|
handleComplete() {
|
|
919
939
|
this.complete.emit();
|
|
920
940
|
}
|
|
921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
922
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
941
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
942
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", previous: "previous", next: "next", complete: "complete" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["icon", "status", "stepIndex"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["status"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["variant", "stepIndex", "stepStatus"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
|
|
923
943
|
}
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardWrapperComponent, decorators: [{
|
|
925
945
|
type: Component,
|
|
926
946
|
args: [{ selector: 'st-wizard', imports: [
|
|
927
947
|
WizardStepComponent,
|
|
@@ -932,7 +952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
932
952
|
WizardSubStepComponent,
|
|
933
953
|
TranslatePipe,
|
|
934
954
|
IconComponent,
|
|
935
|
-
], template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button
|
|
955
|
+
], template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n" }]
|
|
936
956
|
}] });
|
|
937
957
|
|
|
938
958
|
/**
|