@solcre-org/core-ui 2.11.21 → 2.11.22

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/index.d.ts CHANGED
@@ -3179,7 +3179,7 @@ declare enum StepSize {
3179
3179
  LARGE = "large"
3180
3180
  }
3181
3181
 
3182
- interface StepConfig {
3182
+ interface StepItemConfig {
3183
3183
  id: string;
3184
3184
  title: string;
3185
3185
  status: StepStatus;
@@ -3194,7 +3194,7 @@ interface StepConfig {
3194
3194
  }
3195
3195
 
3196
3196
  interface StepsConfig {
3197
- steps: StepConfig[];
3197
+ steps: StepItemConfig[];
3198
3198
  activeStepId?: string;
3199
3199
  size?: StepSize;
3200
3200
  showConnectors?: boolean;
@@ -3209,41 +3209,81 @@ interface StepsConfig {
3209
3209
  layout?: 'horizontal' | 'vertical';
3210
3210
  showLabels?: boolean;
3211
3211
  showNumbers?: boolean;
3212
- onStepClick?: (step: StepConfig) => void;
3212
+ onStepClick?: (step: StepItemConfig) => void;
3213
3213
  }
3214
3214
 
3215
3215
  interface StepClickEvent {
3216
- step: StepConfig;
3216
+ step: StepItemConfig;
3217
3217
  stepIndex: number;
3218
3218
  event: MouseEvent;
3219
3219
  }
3220
3220
 
3221
+ interface StepChangeEvent {
3222
+ step: StepItemConfig;
3223
+ index: number;
3224
+ previousStepId?: string;
3225
+ }
3226
+ declare class StepsService {
3227
+ private _steps;
3228
+ private _activeStepId;
3229
+ private _stepsInstanceId;
3230
+ steps: _angular_core.Signal<StepItemConfig[]>;
3231
+ activeStepId: _angular_core.Signal<string>;
3232
+ activeStep: _angular_core.Signal<StepItemConfig | undefined>;
3233
+ activeStepIndex: _angular_core.Signal<number>;
3234
+ initializeSteps(steps: StepItemConfig[], activeStepId?: string, instanceId?: string): void;
3235
+ setActiveStep(stepId: string): StepChangeEvent | null;
3236
+ nextStep(): StepChangeEvent | null;
3237
+ previousStep(): StepChangeEvent | null;
3238
+ completeStep(stepId: string): void;
3239
+ setPendingStep(stepId: string): void;
3240
+ setActiveStepStatus(stepId: string): void;
3241
+ private updateStepStatus;
3242
+ setStepDisabled(stepId: string, disabled: boolean): void;
3243
+ getProgress(): number;
3244
+ canGoNext(): boolean;
3245
+ canGoPrevious(): boolean;
3246
+ getCompletedSteps(): StepItemConfig[];
3247
+ getPendingSteps(): StepItemConfig[];
3248
+ resetSteps(): void;
3249
+ completeStepsUpTo(stepId: string): void;
3250
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepsService, never>;
3251
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<StepsService>;
3252
+ }
3253
+
3221
3254
  declare class GenericStepsComponent implements OnInit, OnChanges {
3255
+ private stepsService;
3222
3256
  config: _angular_core.InputSignal<StepsConfig>;
3257
+ useService: _angular_core.InputSignal<boolean>;
3258
+ instanceId: _angular_core.InputSignal<string>;
3223
3259
  stepClick: _angular_core.OutputEmitterRef<StepClickEvent>;
3224
3260
  stepChange: _angular_core.OutputEmitterRef<{
3225
- step: StepConfig;
3261
+ step: StepItemConfig;
3226
3262
  index: number;
3227
3263
  }>;
3264
+ serviceStepChange: _angular_core.OutputEmitterRef<StepChangeEvent>;
3228
3265
  activeStepId: _angular_core.WritableSignal<string>;
3229
- steps: _angular_core.WritableSignal<StepConfig[]>;
3266
+ steps: _angular_core.WritableSignal<StepItemConfig[]>;
3230
3267
  customColors: _angular_core.WritableSignal<{
3231
3268
  [key: string]: string;
3232
3269
  }>;
3233
- activeStep: _angular_core.Signal<StepConfig | undefined>;
3270
+ activeStep: _angular_core.Signal<StepItemConfig | undefined>;
3234
3271
  activeStepIndex: _angular_core.Signal<number>;
3272
+ currentSteps: _angular_core.Signal<StepItemConfig[]>;
3273
+ currentActiveStepId: _angular_core.Signal<string>;
3235
3274
  StepStatus: typeof StepStatus;
3236
3275
  StepType: typeof StepType;
3237
3276
  StepSize: typeof StepSize;
3238
3277
  ngOnInit(): void;
3239
3278
  ngOnChanges(changes: SimpleChanges): void;
3240
3279
  private initializeSteps;
3280
+ private handleServiceStepChange;
3241
3281
  private setupCustomColors;
3242
3282
  private lightenColor;
3243
- onStepClick(step: StepConfig, index: number, event: MouseEvent): void;
3244
- getStepClasses(step: StepConfig): string;
3245
- getStepContent(step: StepConfig): string;
3246
- isStepClickable(step: StepConfig): boolean;
3283
+ onStepClick(step: StepItemConfig, index: number, event: MouseEvent): void;
3284
+ getStepClasses(step: StepItemConfig): string;
3285
+ getStepContent(step: StepItemConfig): string;
3286
+ isStepClickable(step: StepItemConfig): boolean;
3247
3287
  getConnectorClasses(index: number): string;
3248
3288
  setActiveStep(stepId: string): void;
3249
3289
  nextStep(): void;
@@ -3252,7 +3292,7 @@ declare class GenericStepsComponent implements OnInit, OnChanges {
3252
3292
  getStepProgress(): number;
3253
3293
  getCustomStyles(): string;
3254
3294
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericStepsComponent, never>;
3255
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericStepsComponent, "core-generic-steps", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "stepClick": "stepClick"; "stepChange": "stepChange"; }, never, ["*"], true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
3295
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericStepsComponent, "core-generic-steps", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "useService": { "alias": "useService"; "required": false; "isSignal": true; }; "instanceId": { "alias": "instanceId"; "required": false; "isSignal": true; }; }, { "stepClick": "stepClick"; "stepChange": "stepChange"; "serviceStepChange": "serviceStepChange"; }, never, ["*"], true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
3256
3296
  }
3257
3297
 
3258
3298
  declare class GenericRatingComponent implements OnInit {
@@ -3711,5 +3751,5 @@ declare const VERSION: {
3711
3751
  buildDate: string;
3712
3752
  };
3713
3753
 
3714
- export { ActiveFiltersComponent, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, CacheBustingInterceptor, CardComponent, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, DataListComponent, DataListItemComponent, DateFieldComponent, DateUtility, DatetimeFieldComponent, DialogActions, DocumentAction, DocumentDisplayMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, GenericButtonComponent, GenericDocumentationComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSidebarComponent, GenericStepsComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MainNavComponent, MainNavService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsInterceptor, PermissionsResources, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SmartFieldComponent, StepSize, StepStatus, StepType, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, UsersModel, VERSION, equalToValidator, isSameDate, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader };
3715
- export type { ActiveFilterItem, ActiveFiltersConfig, AdditionalPermissionResources, AddressModel, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DocumentActionEvent, DocumentConfig, DocumentItem, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FileUploadConfig, FilterConfig, FilterParams, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ModalButtonConfig, ModalFieldConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SearchResponse, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, StepClickEvent, StepConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, TableActionConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimelineConfig, TimelineItem };
3754
+ export { ActiveFiltersComponent, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, CacheBustingInterceptor, CardComponent, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, DataListComponent, DataListItemComponent, DateFieldComponent, DateUtility, DatetimeFieldComponent, DialogActions, DocumentAction, DocumentDisplayMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, GenericButtonComponent, GenericDocumentationComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSidebarComponent, GenericStepsComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MainNavComponent, MainNavService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsInterceptor, PermissionsResources, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SmartFieldComponent, StepSize, StepStatus, StepType, StepsService, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, UsersModel, VERSION, equalToValidator, isSameDate, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader };
3755
+ export type { ActiveFilterItem, ActiveFiltersConfig, AdditionalPermissionResources, AddressModel, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DocumentActionEvent, DocumentConfig, DocumentItem, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FileUploadConfig, FilterConfig, FilterParams, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ModalButtonConfig, ModalFieldConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SearchResponse, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, StepChangeEvent, StepClickEvent, StepItemConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, TableActionConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimelineConfig, TimelineItem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.11.21",
3
+ "version": "2.11.22",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"