@solcre-org/core-ui 2.11.21 → 2.11.23
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/fesm2022/solcre-org-core-ui.mjs +289 -48
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +57 -14
- package/package.json +1 -1
|
@@ -10224,11 +10224,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
10224
10224
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
10225
10225
|
// No edites manualmente este archivo
|
|
10226
10226
|
const VERSION = {
|
|
10227
|
-
full: '2.11.
|
|
10227
|
+
full: '2.11.23',
|
|
10228
10228
|
major: 2,
|
|
10229
10229
|
minor: 11,
|
|
10230
|
-
patch:
|
|
10231
|
-
timestamp: '2025-08-
|
|
10230
|
+
patch: 23,
|
|
10231
|
+
timestamp: '2025-08-28T12:25:25.950Z',
|
|
10232
10232
|
buildDate: '28/8/2025'
|
|
10233
10233
|
};
|
|
10234
10234
|
|
|
@@ -10794,29 +10794,183 @@ var StepSize;
|
|
|
10794
10794
|
StepSize["LARGE"] = "large";
|
|
10795
10795
|
})(StepSize || (StepSize = {}));
|
|
10796
10796
|
|
|
10797
|
+
class StepsService {
|
|
10798
|
+
_steps = signal([]);
|
|
10799
|
+
_activeStepId = signal('');
|
|
10800
|
+
_stepsInstanceId = signal('');
|
|
10801
|
+
steps = computed(() => this._steps());
|
|
10802
|
+
activeStepId = computed(() => this._activeStepId());
|
|
10803
|
+
activeStep = computed(() => {
|
|
10804
|
+
const activeId = this._activeStepId();
|
|
10805
|
+
return this._steps().find(step => step.id === activeId);
|
|
10806
|
+
});
|
|
10807
|
+
activeStepIndex = computed(() => {
|
|
10808
|
+
const activeId = this._activeStepId();
|
|
10809
|
+
return this._steps().findIndex(step => step.id === activeId);
|
|
10810
|
+
});
|
|
10811
|
+
initializeSteps(steps, activeStepId, instanceId) {
|
|
10812
|
+
this._steps.set([...steps]);
|
|
10813
|
+
this._stepsInstanceId.set(instanceId || 'default');
|
|
10814
|
+
if (activeStepId) {
|
|
10815
|
+
this._activeStepId.set(activeStepId);
|
|
10816
|
+
}
|
|
10817
|
+
else if (steps.length > 0) {
|
|
10818
|
+
const activeStep = steps.find(step => step.status === StepStatus.ACTIVE) || steps[0];
|
|
10819
|
+
this._activeStepId.set(activeStep.id);
|
|
10820
|
+
}
|
|
10821
|
+
}
|
|
10822
|
+
setActiveStep(stepId) {
|
|
10823
|
+
const step = this._steps().find(s => s.id === stepId);
|
|
10824
|
+
if (!step) {
|
|
10825
|
+
return null;
|
|
10826
|
+
}
|
|
10827
|
+
if (step.disabled) {
|
|
10828
|
+
return null;
|
|
10829
|
+
}
|
|
10830
|
+
const previousStepId = this._activeStepId();
|
|
10831
|
+
this._activeStepId.set(stepId);
|
|
10832
|
+
return {
|
|
10833
|
+
step,
|
|
10834
|
+
index: this._steps().findIndex(s => s.id === stepId),
|
|
10835
|
+
previousStepId
|
|
10836
|
+
};
|
|
10837
|
+
}
|
|
10838
|
+
nextStep() {
|
|
10839
|
+
const currentIndex = this.activeStepIndex();
|
|
10840
|
+
if (currentIndex < this._steps().length - 1) {
|
|
10841
|
+
this.completeStep(this._activeStepId());
|
|
10842
|
+
const nextStep = this._steps()[currentIndex + 1];
|
|
10843
|
+
this.updateStepStatus(nextStep.id, StepStatus.ACTIVE);
|
|
10844
|
+
return this.setActiveStep(nextStep.id);
|
|
10845
|
+
}
|
|
10846
|
+
return null;
|
|
10847
|
+
}
|
|
10848
|
+
previousStep() {
|
|
10849
|
+
const currentIndex = this.activeStepIndex();
|
|
10850
|
+
if (currentIndex > 0) {
|
|
10851
|
+
const prevStep = this._steps()[currentIndex - 1];
|
|
10852
|
+
return this.setActiveStep(prevStep.id);
|
|
10853
|
+
}
|
|
10854
|
+
return null;
|
|
10855
|
+
}
|
|
10856
|
+
completeStep(stepId) {
|
|
10857
|
+
this.updateStepStatus(stepId, StepStatus.COMPLETE);
|
|
10858
|
+
}
|
|
10859
|
+
setPendingStep(stepId) {
|
|
10860
|
+
this.updateStepStatus(stepId, StepStatus.PENDING);
|
|
10861
|
+
}
|
|
10862
|
+
setActiveStepStatus(stepId) {
|
|
10863
|
+
this.updateStepStatus(stepId, StepStatus.ACTIVE);
|
|
10864
|
+
}
|
|
10865
|
+
updateStepStatus(stepId, status) {
|
|
10866
|
+
const stepIndex = this._steps().findIndex(s => s.id === stepId);
|
|
10867
|
+
if (stepIndex !== -1) {
|
|
10868
|
+
const updatedSteps = [...this._steps()];
|
|
10869
|
+
updatedSteps[stepIndex] = { ...updatedSteps[stepIndex], status };
|
|
10870
|
+
this._steps.set(updatedSteps);
|
|
10871
|
+
}
|
|
10872
|
+
}
|
|
10873
|
+
setStepDisabled(stepId, disabled) {
|
|
10874
|
+
const stepIndex = this._steps().findIndex(s => s.id === stepId);
|
|
10875
|
+
if (stepIndex !== -1) {
|
|
10876
|
+
const updatedSteps = [...this._steps()];
|
|
10877
|
+
updatedSteps[stepIndex] = { ...updatedSteps[stepIndex], disabled };
|
|
10878
|
+
this._steps.set(updatedSteps);
|
|
10879
|
+
}
|
|
10880
|
+
}
|
|
10881
|
+
getProgress() {
|
|
10882
|
+
const completedSteps = this._steps().filter(step => step.status === StepStatus.COMPLETE).length;
|
|
10883
|
+
return this._steps().length > 0 ? (completedSteps / this._steps().length) * 100 : 0;
|
|
10884
|
+
}
|
|
10885
|
+
canGoNext() {
|
|
10886
|
+
const currentIndex = this.activeStepIndex();
|
|
10887
|
+
return currentIndex < this._steps().length - 1;
|
|
10888
|
+
}
|
|
10889
|
+
canGoPrevious() {
|
|
10890
|
+
const currentIndex = this.activeStepIndex();
|
|
10891
|
+
return currentIndex > 0;
|
|
10892
|
+
}
|
|
10893
|
+
getCompletedSteps() {
|
|
10894
|
+
return this._steps().filter(step => step.status === StepStatus.COMPLETE);
|
|
10895
|
+
}
|
|
10896
|
+
getPendingSteps() {
|
|
10897
|
+
return this._steps().filter(step => step.status === StepStatus.PENDING);
|
|
10898
|
+
}
|
|
10899
|
+
resetSteps() {
|
|
10900
|
+
const updatedSteps = this._steps().map((step, index) => ({
|
|
10901
|
+
...step,
|
|
10902
|
+
status: index === 0 ? StepStatus.ACTIVE : StepStatus.PENDING,
|
|
10903
|
+
disabled: index === 0 ? false : step.disabled
|
|
10904
|
+
}));
|
|
10905
|
+
this._steps.set(updatedSteps);
|
|
10906
|
+
if (updatedSteps.length > 0) {
|
|
10907
|
+
this._activeStepId.set(updatedSteps[0].id);
|
|
10908
|
+
}
|
|
10909
|
+
}
|
|
10910
|
+
completeStepsUpTo(stepId) {
|
|
10911
|
+
const targetIndex = this._steps().findIndex(s => s.id === stepId);
|
|
10912
|
+
if (targetIndex !== -1) {
|
|
10913
|
+
const updatedSteps = [...this._steps()];
|
|
10914
|
+
for (let i = 0; i <= targetIndex; i++) {
|
|
10915
|
+
updatedSteps[i] = { ...updatedSteps[i], status: StepStatus.COMPLETE };
|
|
10916
|
+
}
|
|
10917
|
+
this._steps.set(updatedSteps);
|
|
10918
|
+
}
|
|
10919
|
+
}
|
|
10920
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: StepsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10921
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: StepsService, providedIn: 'root' });
|
|
10922
|
+
}
|
|
10923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: StepsService, decorators: [{
|
|
10924
|
+
type: Injectable,
|
|
10925
|
+
args: [{
|
|
10926
|
+
providedIn: 'root'
|
|
10927
|
+
}]
|
|
10928
|
+
}] });
|
|
10929
|
+
|
|
10797
10930
|
class GenericStepsComponent {
|
|
10798
|
-
|
|
10931
|
+
stepsService = inject(StepsService);
|
|
10799
10932
|
config = input.required();
|
|
10800
|
-
|
|
10933
|
+
useService = input(false);
|
|
10934
|
+
instanceId = input('default');
|
|
10801
10935
|
stepClick = output();
|
|
10802
10936
|
stepChange = output();
|
|
10803
|
-
|
|
10937
|
+
serviceStepChange = output();
|
|
10804
10938
|
activeStepId = signal('');
|
|
10805
10939
|
steps = signal([]);
|
|
10806
10940
|
customColors = signal({});
|
|
10807
|
-
// Computed
|
|
10808
10941
|
activeStep = computed(() => {
|
|
10942
|
+
if (this.useService()) {
|
|
10943
|
+
return this.stepsService.activeStep();
|
|
10944
|
+
}
|
|
10809
10945
|
const activeId = this.activeStepId();
|
|
10810
10946
|
return this.steps().find(step => step.id === activeId);
|
|
10811
10947
|
});
|
|
10812
10948
|
activeStepIndex = computed(() => {
|
|
10949
|
+
if (this.useService()) {
|
|
10950
|
+
return this.stepsService.activeStepIndex();
|
|
10951
|
+
}
|
|
10813
10952
|
const activeId = this.activeStepId();
|
|
10814
10953
|
return this.steps().findIndex(step => step.id === activeId);
|
|
10815
10954
|
});
|
|
10816
|
-
|
|
10955
|
+
currentSteps = computed(() => {
|
|
10956
|
+
return this.useService() ? this.stepsService.steps() : this.steps();
|
|
10957
|
+
});
|
|
10958
|
+
currentActiveStepId = computed(() => {
|
|
10959
|
+
return this.useService() ? this.stepsService.activeStepId() : this.activeStepId();
|
|
10960
|
+
});
|
|
10817
10961
|
StepStatus = StepStatus;
|
|
10818
10962
|
StepType = StepType;
|
|
10819
10963
|
StepSize = StepSize;
|
|
10964
|
+
constructor() {
|
|
10965
|
+
if (this.useService()) {
|
|
10966
|
+
effect(() => {
|
|
10967
|
+
const serviceStepChange = this.stepsService.activeStepId();
|
|
10968
|
+
if (serviceStepChange) {
|
|
10969
|
+
this.handleServiceStepChange();
|
|
10970
|
+
}
|
|
10971
|
+
});
|
|
10972
|
+
}
|
|
10973
|
+
}
|
|
10820
10974
|
ngOnInit() {
|
|
10821
10975
|
this.initializeSteps();
|
|
10822
10976
|
this.setupCustomColors();
|
|
@@ -10829,13 +10983,30 @@ class GenericStepsComponent {
|
|
|
10829
10983
|
}
|
|
10830
10984
|
initializeSteps() {
|
|
10831
10985
|
const config = this.config();
|
|
10832
|
-
this.
|
|
10833
|
-
|
|
10834
|
-
|
|
10986
|
+
if (this.useService()) {
|
|
10987
|
+
this.stepsService.initializeSteps(config.steps || [], config.activeStepId, this.instanceId());
|
|
10988
|
+
}
|
|
10989
|
+
else {
|
|
10990
|
+
this.steps.set(config.steps || []);
|
|
10991
|
+
if (config.activeStepId) {
|
|
10992
|
+
this.activeStepId.set(config.activeStepId);
|
|
10993
|
+
}
|
|
10994
|
+
else if (this.steps().length > 0) {
|
|
10995
|
+
const activeStep = this.steps().find(step => step.status === StepStatus.ACTIVE) || this.steps()[0];
|
|
10996
|
+
this.activeStepId.set(activeStep.id);
|
|
10997
|
+
}
|
|
10835
10998
|
}
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10999
|
+
}
|
|
11000
|
+
handleServiceStepChange() {
|
|
11001
|
+
const activeStep = this.stepsService.activeStep();
|
|
11002
|
+
const activeIndex = this.stepsService.activeStepIndex();
|
|
11003
|
+
if (activeStep) {
|
|
11004
|
+
const changeEvent = {
|
|
11005
|
+
step: activeStep,
|
|
11006
|
+
index: activeIndex
|
|
11007
|
+
};
|
|
11008
|
+
this.serviceStepChange.emit(changeEvent);
|
|
11009
|
+
this.stepChange.emit({ step: activeStep, index: activeIndex });
|
|
10839
11010
|
}
|
|
10840
11011
|
}
|
|
10841
11012
|
setupCustomColors() {
|
|
@@ -10875,8 +11046,16 @@ class GenericStepsComponent {
|
|
|
10875
11046
|
};
|
|
10876
11047
|
this.stepClick.emit(clickEvent);
|
|
10877
11048
|
if (this.config().clickable) {
|
|
10878
|
-
this.
|
|
10879
|
-
|
|
11049
|
+
if (this.useService()) {
|
|
11050
|
+
const changeEvent = this.stepsService.setActiveStep(step.id);
|
|
11051
|
+
if (changeEvent) {
|
|
11052
|
+
this.serviceStepChange.emit(changeEvent);
|
|
11053
|
+
}
|
|
11054
|
+
}
|
|
11055
|
+
else {
|
|
11056
|
+
this.activeStepId.set(step.id);
|
|
11057
|
+
this.stepChange.emit({ step, index });
|
|
11058
|
+
}
|
|
10880
11059
|
}
|
|
10881
11060
|
}
|
|
10882
11061
|
getStepClasses(step) {
|
|
@@ -10887,7 +11066,8 @@ class GenericStepsComponent {
|
|
|
10887
11066
|
if (step.status === StepStatus.COMPLETE) {
|
|
10888
11067
|
classes.push('is-complete');
|
|
10889
11068
|
}
|
|
10890
|
-
|
|
11069
|
+
const currentActiveId = this.currentActiveStepId();
|
|
11070
|
+
if (step.id === currentActiveId) {
|
|
10891
11071
|
classes.push('is-active-step');
|
|
10892
11072
|
}
|
|
10893
11073
|
if (step.status === StepStatus.PENDING) {
|
|
@@ -10898,7 +11078,6 @@ class GenericStepsComponent {
|
|
|
10898
11078
|
}
|
|
10899
11079
|
const size = this.config().size || StepSize.MEDIUM;
|
|
10900
11080
|
classes.push(`c-steps__item--${size}`);
|
|
10901
|
-
console.log(`Step ${step.id} size class: c-steps__item--${size}`);
|
|
10902
11081
|
if (step.customClass) {
|
|
10903
11082
|
classes.push(step.customClass);
|
|
10904
11083
|
}
|
|
@@ -10919,57 +11098,119 @@ class GenericStepsComponent {
|
|
|
10919
11098
|
return step.content?.toString() || '';
|
|
10920
11099
|
}
|
|
10921
11100
|
}
|
|
11101
|
+
getTranslatedStepContent(step) {
|
|
11102
|
+
if (step.status === StepStatus.COMPLETE && !step.icon) {
|
|
11103
|
+
return 'icon-check';
|
|
11104
|
+
}
|
|
11105
|
+
switch (step.type) {
|
|
11106
|
+
case StepType.NUMBER:
|
|
11107
|
+
case StepType.TEXT:
|
|
11108
|
+
return step.content?.toString() || '';
|
|
11109
|
+
case StepType.ICON:
|
|
11110
|
+
return step.icon || step.content?.toString() || 'icon-check';
|
|
11111
|
+
default:
|
|
11112
|
+
return step.content?.toString() || '';
|
|
11113
|
+
}
|
|
11114
|
+
}
|
|
11115
|
+
shouldTranslateContent(step) {
|
|
11116
|
+
if (step.status === StepStatus.COMPLETE && !step.icon) {
|
|
11117
|
+
return false;
|
|
11118
|
+
}
|
|
11119
|
+
const content = step.content?.toString() || '';
|
|
11120
|
+
if (step.type === StepType.NUMBER && /^\d+$/.test(content)) {
|
|
11121
|
+
return false;
|
|
11122
|
+
}
|
|
11123
|
+
if (step.type === StepType.ICON) {
|
|
11124
|
+
return false;
|
|
11125
|
+
}
|
|
11126
|
+
return step.type === StepType.TEXT || step.type === StepType.NUMBER;
|
|
11127
|
+
}
|
|
10922
11128
|
isStepClickable(step) {
|
|
10923
11129
|
return !step.disabled && (step.clickable !== false) && this.config().clickable !== false;
|
|
10924
11130
|
}
|
|
10925
11131
|
getConnectorClasses(index) {
|
|
10926
11132
|
const classes = ['c-steps__connector'];
|
|
10927
|
-
const
|
|
10928
|
-
const
|
|
11133
|
+
const currentSteps = this.currentSteps();
|
|
11134
|
+
const currentStep = currentSteps[index];
|
|
11135
|
+
const nextStep = currentSteps[index + 1];
|
|
10929
11136
|
if (currentStep?.status === StepStatus.COMPLETE) {
|
|
10930
11137
|
classes.push('is-complete');
|
|
10931
11138
|
}
|
|
10932
|
-
else if (currentStep?.status === StepStatus.ACTIVE || currentStep?.id === this.
|
|
11139
|
+
else if (currentStep?.status === StepStatus.ACTIVE || currentStep?.id === this.currentActiveStepId()) {
|
|
10933
11140
|
classes.push('is-active');
|
|
10934
11141
|
}
|
|
10935
11142
|
return classes.join(' ');
|
|
10936
11143
|
}
|
|
10937
11144
|
setActiveStep(stepId) {
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
11145
|
+
if (this.useService()) {
|
|
11146
|
+
const changeEvent = this.stepsService.setActiveStep(stepId);
|
|
11147
|
+
if (changeEvent) {
|
|
11148
|
+
this.serviceStepChange.emit(changeEvent);
|
|
11149
|
+
}
|
|
11150
|
+
}
|
|
11151
|
+
else {
|
|
11152
|
+
const step = this.steps().find(s => s.id === stepId);
|
|
11153
|
+
if (step) {
|
|
11154
|
+
this.activeStepId.set(stepId);
|
|
11155
|
+
this.stepChange.emit({ step, index: this.steps().findIndex(s => s.id === stepId) });
|
|
11156
|
+
}
|
|
10942
11157
|
}
|
|
10943
11158
|
}
|
|
10944
11159
|
nextStep() {
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
this.
|
|
11160
|
+
if (this.useService()) {
|
|
11161
|
+
const changeEvent = this.stepsService.nextStep();
|
|
11162
|
+
if (changeEvent) {
|
|
11163
|
+
this.serviceStepChange.emit(changeEvent);
|
|
11164
|
+
}
|
|
11165
|
+
}
|
|
11166
|
+
else {
|
|
11167
|
+
const currentIndex = this.activeStepIndex();
|
|
11168
|
+
if (currentIndex < this.steps().length - 1) {
|
|
11169
|
+
const updatedSteps = [...this.steps()];
|
|
11170
|
+
updatedSteps[currentIndex] = { ...updatedSteps[currentIndex], status: StepStatus.COMPLETE };
|
|
11171
|
+
const nextStep = updatedSteps[currentIndex + 1];
|
|
11172
|
+
updatedSteps[currentIndex + 1] = { ...nextStep, status: StepStatus.ACTIVE };
|
|
11173
|
+
this.steps.set(updatedSteps);
|
|
11174
|
+
this.setActiveStep(nextStep.id);
|
|
11175
|
+
}
|
|
10953
11176
|
}
|
|
10954
11177
|
}
|
|
10955
11178
|
previousStep() {
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
11179
|
+
if (this.useService()) {
|
|
11180
|
+
const changeEvent = this.stepsService.previousStep();
|
|
11181
|
+
if (changeEvent) {
|
|
11182
|
+
this.serviceStepChange.emit(changeEvent);
|
|
11183
|
+
}
|
|
11184
|
+
}
|
|
11185
|
+
else {
|
|
11186
|
+
const currentIndex = this.activeStepIndex();
|
|
11187
|
+
if (currentIndex > 0) {
|
|
11188
|
+
const prevStep = this.steps()[currentIndex - 1];
|
|
11189
|
+
this.setActiveStep(prevStep.id);
|
|
11190
|
+
}
|
|
10960
11191
|
}
|
|
10961
11192
|
}
|
|
10962
11193
|
completeStep(stepId) {
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
this.steps.
|
|
11194
|
+
if (this.useService()) {
|
|
11195
|
+
this.stepsService.completeStep(stepId);
|
|
11196
|
+
}
|
|
11197
|
+
else {
|
|
11198
|
+
const stepIndex = this.steps().findIndex(s => s.id === stepId);
|
|
11199
|
+
if (stepIndex !== -1) {
|
|
11200
|
+
const updatedSteps = [...this.steps()];
|
|
11201
|
+
updatedSteps[stepIndex] = { ...updatedSteps[stepIndex], status: StepStatus.COMPLETE };
|
|
11202
|
+
this.steps.set(updatedSteps);
|
|
11203
|
+
}
|
|
10968
11204
|
}
|
|
10969
11205
|
}
|
|
10970
11206
|
getStepProgress() {
|
|
10971
|
-
|
|
10972
|
-
|
|
11207
|
+
if (this.useService()) {
|
|
11208
|
+
return this.stepsService.getProgress();
|
|
11209
|
+
}
|
|
11210
|
+
else {
|
|
11211
|
+
const completedSteps = this.steps().filter(step => step.status === StepStatus.COMPLETE).length;
|
|
11212
|
+
return (completedSteps / this.steps().length) * 100;
|
|
11213
|
+
}
|
|
10973
11214
|
}
|
|
10974
11215
|
getCustomStyles() {
|
|
10975
11216
|
const colors = this.customColors();
|
|
@@ -10978,12 +11219,12 @@ class GenericStepsComponent {
|
|
|
10978
11219
|
.join('; ');
|
|
10979
11220
|
}
|
|
10980
11221
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: GenericStepsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10981
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: GenericStepsComponent, isStandalone: true, selector: "core-generic-steps", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { stepClick: "stepClick", stepChange: "stepChange" }, usesOnChanges: true, hostDirectives: [{ directive: CoreHostDirective }], ngImport: i0, template: "<nav class=\"c-steps-container\" [class]=\"config().customClass\" [style]=\"getCustomStyles()\">\n <ol class=\"c-steps\" [class]=\"'c-steps--' + (config().layout || 'horizontal') + ' c-steps--' + (config().size || StepSize.MEDIUM)\">\n @for (step of
|
|
11222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: GenericStepsComponent, isStandalone: true, selector: "core-generic-steps", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, useService: { classPropertyName: "useService", publicName: "useService", isSignal: true, isRequired: false, transformFunction: null }, instanceId: { classPropertyName: "instanceId", publicName: "instanceId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stepClick: "stepClick", stepChange: "stepChange", serviceStepChange: "serviceStepChange" }, usesOnChanges: true, hostDirectives: [{ directive: CoreHostDirective }], ngImport: i0, template: "<nav class=\"c-steps-container\" [class]=\"config().customClass\" [style]=\"getCustomStyles()\">\n <ol class=\"c-steps\" [class]=\"'c-steps--' + (config().layout || 'horizontal') + ' c-steps--' + (config().size || StepSize.MEDIUM)\">\n @for (step of currentSteps(); track step.id; let i = $index) {\n <li class=\"c-steps__step\">\n <button \n type=\"button\"\n class=\"c-steps__item\"\n [class]=\"getStepClasses(step)\"\n [disabled]=\"step.disabled\"\n [title]=\"step.tooltip || step.title\"\n (click)=\"onStepClick(step, i, $event)\"\n [attr.data-step-id]=\"step.id\">\n \n <span class=\"c-steps__num\" [class]=\"'c-steps__num--' + step.type\" [style]=\"step.id === currentActiveStepId() ? '--step-border: var(--step-active-border); font-weight: 800' : ''\">\n @if (step.type === StepType.ICON || step.status === StepStatus.COMPLETE) {\n <i [ngClass]=\"getStepContent(step) | coreIconCompat\"></i>\n } @else {\n @if (shouldTranslateContent(step)) {\n <strong *ngIf=\"step.id === currentActiveStepId()\">{{ getTranslatedStepContent(step) | translate }}</strong>\n <span *ngIf=\"step.id !== currentActiveStepId()\">{{ getTranslatedStepContent(step) | translate }}</span>\n } @else {\n <strong *ngIf=\"step.id === currentActiveStepId()\">{{ getStepContent(step) }}</strong>\n <span *ngIf=\"step.id !== currentActiveStepId()\">{{ getStepContent(step) }}</span>\n }\n }\n </span>\n \n @if (config().showLabels !== false) {\n <span class=\"c-steps__text\">{{ step.title }}</span>\n }\n </button>\n \n @if (config().showConnectors !== false && i < currentSteps().length - 1) {\n <div class=\"c-steps__connector\" [class]=\"getConnectorClasses(i)\"></div>\n }\n </li>\n }\n </ol>\n</nav>\n\n@if (activeStep()) {\n <div class=\"c-steps__content\" [attr.data-active-step]=\"currentActiveStepId()\">\n <ng-content></ng-content>\n </div>\n}", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: IconCompatPipe, name: "coreIconCompat" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
|
|
10982
11223
|
}
|
|
10983
11224
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: GenericStepsComponent, decorators: [{
|
|
10984
11225
|
type: Component,
|
|
10985
|
-
args: [{ selector: 'core-generic-steps', standalone: true, imports: [CommonModule, IconCompatPipe], hostDirectives: [CoreHostDirective], template: "<nav class=\"c-steps-container\" [class]=\"config().customClass\" [style]=\"getCustomStyles()\">\n <ol class=\"c-steps\" [class]=\"'c-steps--' + (config().layout || 'horizontal') + ' c-steps--' + (config().size || StepSize.MEDIUM)\">\n @for (step of
|
|
10986
|
-
}] });
|
|
11226
|
+
args: [{ selector: 'core-generic-steps', standalone: true, imports: [CommonModule, IconCompatPipe, TranslateModule], hostDirectives: [CoreHostDirective], template: "<nav class=\"c-steps-container\" [class]=\"config().customClass\" [style]=\"getCustomStyles()\">\n <ol class=\"c-steps\" [class]=\"'c-steps--' + (config().layout || 'horizontal') + ' c-steps--' + (config().size || StepSize.MEDIUM)\">\n @for (step of currentSteps(); track step.id; let i = $index) {\n <li class=\"c-steps__step\">\n <button \n type=\"button\"\n class=\"c-steps__item\"\n [class]=\"getStepClasses(step)\"\n [disabled]=\"step.disabled\"\n [title]=\"step.tooltip || step.title\"\n (click)=\"onStepClick(step, i, $event)\"\n [attr.data-step-id]=\"step.id\">\n \n <span class=\"c-steps__num\" [class]=\"'c-steps__num--' + step.type\" [style]=\"step.id === currentActiveStepId() ? '--step-border: var(--step-active-border); font-weight: 800' : ''\">\n @if (step.type === StepType.ICON || step.status === StepStatus.COMPLETE) {\n <i [ngClass]=\"getStepContent(step) | coreIconCompat\"></i>\n } @else {\n @if (shouldTranslateContent(step)) {\n <strong *ngIf=\"step.id === currentActiveStepId()\">{{ getTranslatedStepContent(step) | translate }}</strong>\n <span *ngIf=\"step.id !== currentActiveStepId()\">{{ getTranslatedStepContent(step) | translate }}</span>\n } @else {\n <strong *ngIf=\"step.id === currentActiveStepId()\">{{ getStepContent(step) }}</strong>\n <span *ngIf=\"step.id !== currentActiveStepId()\">{{ getStepContent(step) }}</span>\n }\n }\n </span>\n \n @if (config().showLabels !== false) {\n <span class=\"c-steps__text\">{{ step.title }}</span>\n }\n </button>\n \n @if (config().showConnectors !== false && i < currentSteps().length - 1) {\n <div class=\"c-steps__connector\" [class]=\"getConnectorClasses(i)\"></div>\n }\n </li>\n }\n </ol>\n</nav>\n\n@if (activeStep()) {\n <div class=\"c-steps__content\" [attr.data-active-step]=\"currentActiveStepId()\">\n <ng-content></ng-content>\n </div>\n}" }]
|
|
11227
|
+
}], ctorParameters: () => [] });
|
|
10987
11228
|
|
|
10988
11229
|
var RatingSize;
|
|
10989
11230
|
(function (RatingSize) {
|
|
@@ -11753,5 +11994,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
11753
11994
|
* Generated bundle index. Do not edit.
|
|
11754
11995
|
*/
|
|
11755
11996
|
|
|
11756
|
-
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 };
|
|
11997
|
+
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 };
|
|
11757
11998
|
//# sourceMappingURL=solcre-org-core-ui.mjs.map
|