@datarailsshared/datarailsshared 1.6.97 → 1.6.101
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/datarailsshared-datarailsshared-1.6.101.tgz +0 -0
- package/esm2022/lib/stepper/stepper.component.mjs +127 -101
- package/fesm2022/datarailsshared-datarailsshared.mjs +132 -106
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/stepper/stepper.component.d.ts +3 -2
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.97.tgz +0 -0
|
@@ -1111,7 +1111,7 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1111
1111
|
i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
|
|
1112
1112
|
} }
|
|
1113
1113
|
const _c3$7 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
|
|
1114
|
-
const _c4$
|
|
1114
|
+
const _c4$5 = ["[prefixIcon]", "[suffixIcon]"];
|
|
1115
1115
|
class DrInputComponent {
|
|
1116
1116
|
set disabled(value) {
|
|
1117
1117
|
this.setDisabledState(value);
|
|
@@ -1296,7 +1296,7 @@ class DrInputComponent {
|
|
|
1296
1296
|
useExisting: forwardRef((() => DrInputComponent)),
|
|
1297
1297
|
multi: true,
|
|
1298
1298
|
},
|
|
1299
|
-
])], ngContentSelectors: _c4$
|
|
1299
|
+
])], ngContentSelectors: _c4$5, decls: 8, vars: 5, consts: [[4, "ngIf", "ngIfElse"], ["maskedInput", ""], ["class", "clear-icon", 3, "click", 4, "ngIf"], ["class", "search-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], ["inputRef", ""], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "mask", "suffix", "prefix", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], [1, "clear-icon", 3, "click"], [1, "search-icon", 3, "click"], [3, "click"]], template: function DrInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1300
1300
|
i0.ɵɵprojectionDef(_c3$7);
|
|
1301
1301
|
i0.ɵɵprojection(0);
|
|
1302
1302
|
i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 12, "ng-container", 0);
|
|
@@ -1402,14 +1402,14 @@ const _c0$H = ["labelTemplate"];
|
|
|
1402
1402
|
const _c1$i = ["multiLabelTemplate"];
|
|
1403
1403
|
const _c2$8 = ["optionTemplate"];
|
|
1404
1404
|
const _c3$6 = ["optionHeaderTemplate"];
|
|
1405
|
-
const _c4$
|
|
1406
|
-
const _c5$
|
|
1405
|
+
const _c4$4 = ["optionFooterTemplate"];
|
|
1406
|
+
const _c5$2 = function (a0) { return { item: a0 }; };
|
|
1407
1407
|
function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
1408
1408
|
i0.ɵɵelementContainer(0, 6);
|
|
1409
1409
|
} if (rf & 2) {
|
|
1410
1410
|
const item_r12 = ctx.item;
|
|
1411
1411
|
const ctx_r11 = i0.ɵɵnextContext(2);
|
|
1412
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r11.optionHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$
|
|
1412
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r11.optionHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$2, item_r12));
|
|
1413
1413
|
} }
|
|
1414
1414
|
function DrSelectComponent_2_Template(rf, ctx) { if (rf & 1) {
|
|
1415
1415
|
i0.ɵɵtemplate(0, DrSelectComponent_2_ng_template_0_Template, 1, 4, "ng-template", 5);
|
|
@@ -1432,7 +1432,7 @@ function DrSelectComponent_4_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1432
1432
|
} if (rf & 2) {
|
|
1433
1433
|
const item_r18 = ctx.item;
|
|
1434
1434
|
const ctx_r17 = i0.ɵɵnextContext(2);
|
|
1435
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r17.labelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$
|
|
1435
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r17.labelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$2, item_r18));
|
|
1436
1436
|
} }
|
|
1437
1437
|
function DrSelectComponent_4_Template(rf, ctx) { if (rf & 1) {
|
|
1438
1438
|
i0.ɵɵtemplate(0, DrSelectComponent_4_ng_template_0_Template, 1, 4, "ng-template", 8);
|
|
@@ -1644,7 +1644,7 @@ class DrSelectComponent {
|
|
|
1644
1644
|
i0.ɵɵcontentQuery(dirIndex, _c1$i, 5);
|
|
1645
1645
|
i0.ɵɵcontentQuery(dirIndex, _c2$8, 5);
|
|
1646
1646
|
i0.ɵɵcontentQuery(dirIndex, _c3$6, 5);
|
|
1647
|
-
i0.ɵɵcontentQuery(dirIndex, _c4$
|
|
1647
|
+
i0.ɵɵcontentQuery(dirIndex, _c4$4, 5);
|
|
1648
1648
|
} if (rf & 2) {
|
|
1649
1649
|
let _t;
|
|
1650
1650
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);
|
|
@@ -5591,181 +5591,198 @@ class TooltipInfoComponent {
|
|
|
5591
5591
|
type: Input
|
|
5592
5592
|
}] }); })();
|
|
5593
5593
|
|
|
5594
|
-
const _c0$w = ["
|
|
5594
|
+
const _c0$w = ["stepTextLabel"];
|
|
5595
|
+
const _c1$d = ["stepper"];
|
|
5595
5596
|
function StepperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5596
|
-
const
|
|
5597
|
-
i0.ɵɵelementStart(0, "div",
|
|
5598
|
-
i0.ɵɵlistener("click", function StepperComponent_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
5599
|
-
i0.ɵɵelement(1, "i",
|
|
5597
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
5598
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
5599
|
+
i0.ɵɵlistener("click", function StepperComponent_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.scrollLeft()); });
|
|
5600
|
+
i0.ɵɵelement(1, "i", 8);
|
|
5600
5601
|
i0.ɵɵelementEnd();
|
|
5601
5602
|
} }
|
|
5602
5603
|
function StepperComponent_ng_container_3_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
5603
|
-
i0.ɵɵelement(0, "div",
|
|
5604
|
+
i0.ɵɵelement(0, "div", 21);
|
|
5604
5605
|
} }
|
|
5605
5606
|
function StepperComponent_ng_container_3_div_1_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
5606
|
-
i0.ɵɵelementStart(0, "div",
|
|
5607
|
-
i0.ɵɵelement(1, "i",
|
|
5607
|
+
i0.ɵɵelementStart(0, "div", 22);
|
|
5608
|
+
i0.ɵɵelement(1, "i", 23);
|
|
5608
5609
|
i0.ɵɵelementEnd();
|
|
5609
5610
|
} }
|
|
5610
|
-
const
|
|
5611
|
+
const _c2$7 = function (a0) { return { "blue with-ellipse": a0 }; };
|
|
5611
5612
|
function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
5612
|
-
i0.ɵɵelementStart(0, "div",
|
|
5613
|
+
i0.ɵɵelementStart(0, "div", 24)(1, "div", 25);
|
|
5613
5614
|
i0.ɵɵtext(2);
|
|
5614
5615
|
i0.ɵɵelementEnd()();
|
|
5615
5616
|
} if (rf & 2) {
|
|
5616
|
-
const
|
|
5617
|
-
const
|
|
5618
|
-
const
|
|
5619
|
-
const
|
|
5620
|
-
i0.ɵɵclassProp("gray",
|
|
5621
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5,
|
|
5617
|
+
const ctx_r25 = i0.ɵɵnextContext(2);
|
|
5618
|
+
const step_r12 = ctx_r25.$implicit;
|
|
5619
|
+
const index_r13 = ctx_r25.index;
|
|
5620
|
+
const ctx_r20 = i0.ɵɵnextContext();
|
|
5621
|
+
i0.ɵɵclassProp("gray", step_r12 !== ctx_r20.currentStep);
|
|
5622
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c2$7, step_r12 === ctx_r20.currentStep));
|
|
5622
5623
|
i0.ɵɵadvance(1);
|
|
5623
|
-
i0.ɵɵproperty("hidden",
|
|
5624
|
+
i0.ɵɵproperty("hidden", step_r12 === ctx_r20.currentStep || ctx_r20.hiddenIndex);
|
|
5624
5625
|
i0.ɵɵadvance(1);
|
|
5625
|
-
i0.ɵɵtextInterpolate(
|
|
5626
|
+
i0.ɵɵtextInterpolate(index_r13 + 1);
|
|
5627
|
+
} }
|
|
5628
|
+
function StepperComponent_ng_container_3_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
5629
|
+
i0.ɵɵelementContainer(0);
|
|
5626
5630
|
} }
|
|
5627
|
-
const
|
|
5628
|
-
function
|
|
5629
|
-
i0.ɵɵelementContainer(0,
|
|
5631
|
+
const _c3$5 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
|
|
5632
|
+
function StepperComponent_ng_container_3_div_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
5633
|
+
i0.ɵɵelementContainer(0, 26);
|
|
5630
5634
|
} if (rf & 2) {
|
|
5631
|
-
const
|
|
5632
|
-
const
|
|
5633
|
-
const
|
|
5634
|
-
const
|
|
5635
|
+
const ctx_r26 = i0.ɵɵnextContext(2);
|
|
5636
|
+
const index_r13 = ctx_r26.index;
|
|
5637
|
+
const isLast_r14 = ctx_r26.last;
|
|
5638
|
+
const step_r12 = ctx_r26.$implicit;
|
|
5635
5639
|
i0.ɵɵnextContext();
|
|
5636
5640
|
const _r6 = i0.ɵɵreference(8);
|
|
5637
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2,
|
|
5641
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c3$5, index_r13, isLast_r14, step_r12));
|
|
5638
5642
|
} }
|
|
5639
|
-
function
|
|
5640
|
-
i0.ɵɵelementStart(0, "span",
|
|
5643
|
+
function StepperComponent_ng_container_3_div_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
5644
|
+
i0.ɵɵelementStart(0, "span", 27);
|
|
5641
5645
|
i0.ɵɵtext(1);
|
|
5642
5646
|
i0.ɵɵelementEnd();
|
|
5643
5647
|
} if (rf & 2) {
|
|
5644
|
-
const
|
|
5648
|
+
const step_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
5645
5649
|
i0.ɵɵadvance(1);
|
|
5646
|
-
i0.ɵɵtextInterpolate1(" ", (
|
|
5650
|
+
i0.ɵɵtextInterpolate1(" ", (step_r12.requiredTasks ? step_r12.completedTasks : step_r12.requiredTasks) + "/" + step_r12.requiredTasks, " ");
|
|
5647
5651
|
} }
|
|
5648
|
-
function
|
|
5649
|
-
i0.ɵɵelementContainer(0,
|
|
5652
|
+
function StepperComponent_ng_container_3_div_1_ng_container_11_Template(rf, ctx) { if (rf & 1) {
|
|
5653
|
+
i0.ɵɵelementContainer(0, 26);
|
|
5650
5654
|
} if (rf & 2) {
|
|
5651
|
-
const
|
|
5652
|
-
const
|
|
5653
|
-
const
|
|
5654
|
-
const
|
|
5655
|
+
const ctx_r28 = i0.ɵɵnextContext(2);
|
|
5656
|
+
const index_r13 = ctx_r28.index;
|
|
5657
|
+
const isLast_r14 = ctx_r28.last;
|
|
5658
|
+
const step_r12 = ctx_r28.$implicit;
|
|
5655
5659
|
i0.ɵɵnextContext();
|
|
5656
5660
|
const _r6 = i0.ɵɵreference(8);
|
|
5657
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2,
|
|
5661
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c3$5, index_r13, isLast_r14, step_r12));
|
|
5658
5662
|
} }
|
|
5659
|
-
const
|
|
5663
|
+
const _c4$3 = function (a0) { return { step: a0 }; };
|
|
5664
|
+
const _c5$1 = function (a0, a1) { return { step: a0, index: a1 }; };
|
|
5660
5665
|
function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5661
|
-
const
|
|
5662
|
-
i0.ɵɵelementStart(0, "div",
|
|
5663
|
-
i0.ɵɵlistener("click", function StepperComponent_ng_container_3_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
5664
|
-
i0.ɵɵelementStart(1, "div",
|
|
5665
|
-
i0.ɵɵtemplate(3, StepperComponent_ng_container_3_div_1_div_3_Template, 1, 0, "div",
|
|
5666
|
-
i0.ɵɵelementContainerStart(4,
|
|
5667
|
-
i0.ɵɵtemplate(5, StepperComponent_ng_container_3_div_1_ng_template_5_Template, 2, 0, "ng-template",
|
|
5668
|
-
i0.ɵɵtemplate(6, StepperComponent_ng_container_3_div_1_ng_template_6_Template, 3, 7, "ng-template",
|
|
5666
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
5667
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
5668
|
+
i0.ɵɵlistener("click", function StepperComponent_ng_container_3_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r31); const step_r12 = i0.ɵɵnextContext().$implicit; const ctx_r29 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r29.selectStep(step_r12)); });
|
|
5669
|
+
i0.ɵɵelementStart(1, "div", 12)(2, "div", 13);
|
|
5670
|
+
i0.ɵɵtemplate(3, StepperComponent_ng_container_3_div_1_div_3_Template, 1, 0, "div", 14);
|
|
5671
|
+
i0.ɵɵelementContainerStart(4, 15);
|
|
5672
|
+
i0.ɵɵtemplate(5, StepperComponent_ng_container_3_div_1_ng_template_5_Template, 2, 0, "ng-template", 16);
|
|
5673
|
+
i0.ɵɵtemplate(6, StepperComponent_ng_container_3_div_1_ng_template_6_Template, 3, 7, "ng-template", 16);
|
|
5669
5674
|
i0.ɵɵelementContainerEnd();
|
|
5670
5675
|
i0.ɵɵelementEnd();
|
|
5671
|
-
i0.ɵɵelementStart(7, "div",
|
|
5672
|
-
i0.ɵɵ
|
|
5673
|
-
i0.ɵɵelementEnd()();
|
|
5674
|
-
i0.ɵɵtemplate(10, StepperComponent_ng_container_3_div_1_ng_container_10_Template, 1, 6, "ng-container", 18);
|
|
5675
|
-
i0.ɵɵtemplate(11, StepperComponent_ng_container_3_div_1_span_11_Template, 2, 1, "span", 19);
|
|
5676
|
+
i0.ɵɵelementStart(7, "div", 17);
|
|
5677
|
+
i0.ɵɵtemplate(8, StepperComponent_ng_container_3_div_1_ng_container_8_Template, 1, 0, "ng-container", 18);
|
|
5676
5678
|
i0.ɵɵelementEnd();
|
|
5677
|
-
i0.ɵɵtemplate(
|
|
5679
|
+
i0.ɵɵtemplate(9, StepperComponent_ng_container_3_div_1_ng_container_9_Template, 1, 6, "ng-container", 19);
|
|
5680
|
+
i0.ɵɵtemplate(10, StepperComponent_ng_container_3_div_1_span_10_Template, 2, 1, "span", 20);
|
|
5681
|
+
i0.ɵɵelementEnd();
|
|
5682
|
+
i0.ɵɵtemplate(11, StepperComponent_ng_container_3_div_1_ng_container_11_Template, 1, 6, "ng-container", 19);
|
|
5678
5683
|
i0.ɵɵelementEnd();
|
|
5679
5684
|
} if (rf & 2) {
|
|
5680
|
-
const
|
|
5681
|
-
const
|
|
5685
|
+
const ctx_r32 = i0.ɵɵnextContext();
|
|
5686
|
+
const step_r12 = ctx_r32.$implicit;
|
|
5687
|
+
const index_r13 = ctx_r32.index;
|
|
5688
|
+
const ctx_r16 = i0.ɵɵnextContext();
|
|
5682
5689
|
const _r4 = i0.ɵɵreference(6);
|
|
5683
|
-
i0.ɵɵ
|
|
5684
|
-
i0.ɵɵ
|
|
5690
|
+
const _r8 = i0.ɵɵreference(10);
|
|
5691
|
+
i0.ɵɵclassProp("step-setup", ctx_r16.inlineLabels);
|
|
5692
|
+
i0.ɵɵattribute("data-analytics", ctx_r16.getDataAnalyticsTag(step_r12));
|
|
5685
5693
|
i0.ɵɵadvance(1);
|
|
5686
|
-
i0.ɵɵproperty("drTooltip",
|
|
5694
|
+
i0.ɵɵproperty("drTooltip", step_r12.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(22, _c4$3, step_r12))("drTooltipPosition", "bottom");
|
|
5687
5695
|
i0.ɵɵadvance(1);
|
|
5688
|
-
i0.ɵɵclassProp("active",
|
|
5696
|
+
i0.ɵɵclassProp("active", ctx_r16.currentStep === step_r12)("completed", step_r12.completed);
|
|
5689
5697
|
i0.ɵɵadvance(1);
|
|
5690
|
-
i0.ɵɵproperty("ngIf",
|
|
5698
|
+
i0.ɵɵproperty("ngIf", step_r12 === ctx_r16.currentStep);
|
|
5691
5699
|
i0.ɵɵadvance(1);
|
|
5692
|
-
i0.ɵɵproperty("ngSwitch",
|
|
5700
|
+
i0.ɵɵproperty("ngSwitch", step_r12.completed);
|
|
5693
5701
|
i0.ɵɵadvance(1);
|
|
5694
5702
|
i0.ɵɵproperty("ngSwitchCase", true);
|
|
5695
5703
|
i0.ɵɵadvance(1);
|
|
5696
5704
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
5697
5705
|
i0.ɵɵadvance(1);
|
|
5698
|
-
i0.ɵɵclassProp("active",
|
|
5699
|
-
i0.ɵɵproperty("ngClass",
|
|
5700
|
-
i0.ɵɵadvance(1);
|
|
5701
|
-
i0.ɵɵproperty("hidden", ctx_r14.hiddenNames);
|
|
5706
|
+
i0.ɵɵclassProp("active", ctx_r16.currentStep === step_r12);
|
|
5707
|
+
i0.ɵɵproperty("ngClass", step_r12.completed ? "completed" : "uncompleted");
|
|
5702
5708
|
i0.ɵɵadvance(1);
|
|
5703
|
-
i0.ɵɵ
|
|
5709
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r16.stepTextLabelTemplate || _r8)("ngTemplateOutletContext", i0.ɵɵpureFunction2(24, _c5$1, step_r12, index_r13));
|
|
5704
5710
|
i0.ɵɵadvance(1);
|
|
5705
|
-
i0.ɵɵproperty("ngIf",
|
|
5711
|
+
i0.ɵɵproperty("ngIf", ctx_r16.inlineLabels);
|
|
5706
5712
|
i0.ɵɵadvance(1);
|
|
5707
|
-
i0.ɵɵproperty("ngIf",
|
|
5713
|
+
i0.ɵɵproperty("ngIf", step_r12.showProgress);
|
|
5708
5714
|
i0.ɵɵadvance(1);
|
|
5709
|
-
i0.ɵɵproperty("ngIf", !
|
|
5715
|
+
i0.ɵɵproperty("ngIf", !ctx_r16.inlineLabels);
|
|
5710
5716
|
} }
|
|
5711
5717
|
function StepperComponent_ng_container_3_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
5712
|
-
i0.ɵɵelement(0, "div",
|
|
5718
|
+
i0.ɵɵelement(0, "div", 28);
|
|
5713
5719
|
} }
|
|
5714
5720
|
function StepperComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
5715
5721
|
i0.ɵɵelementContainerStart(0);
|
|
5716
|
-
i0.ɵɵtemplate(1, StepperComponent_ng_container_3_div_1_Template,
|
|
5717
|
-
i0.ɵɵtemplate(2, StepperComponent_ng_container_3_div_2_Template, 1, 0, "div",
|
|
5722
|
+
i0.ɵɵtemplate(1, StepperComponent_ng_container_3_div_1_Template, 12, 27, "div", 9);
|
|
5723
|
+
i0.ɵɵtemplate(2, StepperComponent_ng_container_3_div_2_Template, 1, 0, "div", 10);
|
|
5718
5724
|
i0.ɵɵelementContainerEnd();
|
|
5719
5725
|
} if (rf & 2) {
|
|
5720
|
-
const
|
|
5726
|
+
const step_r12 = ctx.$implicit;
|
|
5721
5727
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
5722
5728
|
i0.ɵɵadvance(1);
|
|
5723
|
-
i0.ɵɵproperty("ngIf", !
|
|
5729
|
+
i0.ɵɵproperty("ngIf", !step_r12.hide);
|
|
5724
5730
|
i0.ɵɵadvance(1);
|
|
5725
5731
|
i0.ɵɵproperty("ngIf", ctx_r2.mini);
|
|
5726
5732
|
} }
|
|
5727
5733
|
function StepperComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
5728
|
-
const
|
|
5729
|
-
i0.ɵɵelementStart(0, "div",
|
|
5730
|
-
i0.ɵɵlistener("click", function StepperComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
5731
|
-
i0.ɵɵelement(1, "i",
|
|
5734
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
5735
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
5736
|
+
i0.ɵɵlistener("click", function StepperComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r33.scrollRight()); });
|
|
5737
|
+
i0.ɵɵelement(1, "i", 8);
|
|
5732
5738
|
i0.ɵɵelementEnd();
|
|
5733
5739
|
} }
|
|
5734
5740
|
function StepperComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
5735
|
-
i0.ɵɵelementStart(0, "div",
|
|
5741
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "div", 30);
|
|
5736
5742
|
i0.ɵɵtext(2);
|
|
5737
5743
|
i0.ɵɵelementEnd();
|
|
5738
|
-
i0.ɵɵelementStart(3, "div",
|
|
5744
|
+
i0.ɵɵelementStart(3, "div", 31);
|
|
5739
5745
|
i0.ɵɵtext(4);
|
|
5740
5746
|
i0.ɵɵelementEnd()();
|
|
5741
5747
|
} if (rf & 2) {
|
|
5742
|
-
const
|
|
5748
|
+
const step_r35 = ctx.step;
|
|
5743
5749
|
i0.ɵɵadvance(2);
|
|
5744
|
-
i0.ɵɵtextInterpolate(
|
|
5750
|
+
i0.ɵɵtextInterpolate(step_r35.name);
|
|
5745
5751
|
i0.ɵɵadvance(2);
|
|
5746
|
-
i0.ɵɵtextInterpolate(
|
|
5752
|
+
i0.ɵɵtextInterpolate(step_r35.description);
|
|
5747
5753
|
} }
|
|
5748
5754
|
function StepperComponent_ng_template_7_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5749
|
-
i0.ɵɵelementStart(0, "div",
|
|
5750
|
-
i0.ɵɵelement(1, "div",
|
|
5755
|
+
i0.ɵɵelementStart(0, "div", 33);
|
|
5756
|
+
i0.ɵɵelement(1, "div", 34);
|
|
5751
5757
|
i0.ɵɵelementEnd();
|
|
5752
5758
|
} if (rf & 2) {
|
|
5753
|
-
const
|
|
5754
|
-
const
|
|
5755
|
-
const
|
|
5756
|
-
const
|
|
5757
|
-
i0.ɵɵclassMap("step-connector--" + (!
|
|
5758
|
-
i0.ɵɵstyleProp("visibility",
|
|
5759
|
-
i0.ɵɵclassProp("only-one-step",
|
|
5759
|
+
const ctx_r40 = i0.ɵɵnextContext();
|
|
5760
|
+
const step_r36 = ctx_r40.step;
|
|
5761
|
+
const index_r38 = ctx_r40.index;
|
|
5762
|
+
const ctx_r39 = i0.ɵɵnextContext();
|
|
5763
|
+
i0.ɵɵclassMap("step-connector--" + (!ctx_r39.inlineLabels ? "absolute" : "inline"));
|
|
5764
|
+
i0.ɵɵstyleProp("visibility", ctx_r39.withoutConnectors || (ctx_r39.steps[step_r36.index + 1] == null ? null : ctx_r39.steps[step_r36.index + 1].hide) ? "hidden" : "unset");
|
|
5765
|
+
i0.ɵɵclassProp("only-one-step", ctx_r39.steps.length === 1)("connector-grand", !ctx_r39.inlineLabels && (index_r38 === 0 || index_r38 === ctx_r39.steps.length - 2));
|
|
5760
5766
|
i0.ɵɵadvance(1);
|
|
5761
|
-
i0.ɵɵstyleProp("width",
|
|
5767
|
+
i0.ɵɵstyleProp("width", ctx_r39.getWidth(step_r36));
|
|
5762
5768
|
} }
|
|
5763
5769
|
function StepperComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
5764
|
-
i0.ɵɵtemplate(0, StepperComponent_ng_template_7_div_0_Template, 2, 10, "div",
|
|
5770
|
+
i0.ɵɵtemplate(0, StepperComponent_ng_template_7_div_0_Template, 2, 10, "div", 32);
|
|
5765
5771
|
} if (rf & 2) {
|
|
5766
|
-
const
|
|
5772
|
+
const isLast_r37 = ctx.isLast;
|
|
5767
5773
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
5768
|
-
i0.ɵɵproperty("ngIf", ctx_r7.steps.length === 1 || !
|
|
5774
|
+
i0.ɵɵproperty("ngIf", ctx_r7.steps.length === 1 || !isLast_r37);
|
|
5775
|
+
} }
|
|
5776
|
+
function StepperComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
5777
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
5778
|
+
i0.ɵɵtext(1);
|
|
5779
|
+
i0.ɵɵelementEnd();
|
|
5780
|
+
} if (rf & 2) {
|
|
5781
|
+
const step_r41 = ctx.step;
|
|
5782
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
5783
|
+
i0.ɵɵproperty("hidden", ctx_r9.hiddenNames);
|
|
5784
|
+
i0.ɵɵadvance(1);
|
|
5785
|
+
i0.ɵɵtextInterpolate(step_r41.name);
|
|
5769
5786
|
} }
|
|
5770
5787
|
class StepperComponent {
|
|
5771
5788
|
constructor() {
|
|
@@ -5804,12 +5821,17 @@ class StepperComponent {
|
|
|
5804
5821
|
return this.dataAnalytics ? this.dataAnalytics + '_' + step.name?.toLowerCase().replace(/ /g, '-') : null;
|
|
5805
5822
|
}
|
|
5806
5823
|
/** @nocollapse */ static { this.ɵfac = function StepperComponent_Factory(t) { return new (t || StepperComponent)(); }; }
|
|
5807
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]],
|
|
5808
|
-
i0.ɵɵ
|
|
5824
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]], contentQueries: function StepperComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
5825
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$w, 5);
|
|
5826
|
+
} if (rf & 2) {
|
|
5827
|
+
let _t;
|
|
5828
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepTextLabelTemplate = _t.first);
|
|
5829
|
+
} }, viewQuery: function StepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5830
|
+
i0.ɵɵviewQuery(_c1$d, 5, ElementRef);
|
|
5809
5831
|
} if (rf & 2) {
|
|
5810
5832
|
let _t;
|
|
5811
5833
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepper = _t.first);
|
|
5812
|
-
} }, inputs: { steps: "steps", currentStep: "currentStep", withoutConnectors: "withoutConnectors", hiddenNames: "hiddenNames", inlineLabels: "inlineLabels", disabled: "disabled", hiddenIndex: "hiddenIndex", mini: "mini", dataAnalytics: ["data-analytics", "dataAnalytics"] }, outputs: { stepChange: "stepChange" }, decls:
|
|
5834
|
+
} }, inputs: { steps: "steps", currentStep: "currentStep", withoutConnectors: "withoutConnectors", hiddenNames: "hiddenNames", inlineLabels: "inlineLabels", disabled: "disabled", hiddenIndex: "hiddenIndex", mini: "mini", dataAnalytics: ["data-analytics", "dataAnalytics"] }, outputs: { stepChange: "stepChange" }, decls: 11, vars: 7, consts: [["class", "scroll-section", 3, "click", 4, "ngIf"], [1, "stepper"], ["stepper", ""], [4, "ngFor", "ngForOf"], ["tooltip", ""], ["connector", ""], ["defaultStepTextLabel", ""], [1, "scroll-section", 3, "click"], [1, "dr-icon-arrow-right"], ["class", "step", 3, "step-setup", "click", 4, "ngIf"], ["class", "stepper--mini-connector", 4, "ngIf"], [1, "step", 3, "click"], [1, "step-wrapper", 3, "drTooltip", "drTooltipContext", "drTooltipPosition"], ["data-test", "step_point", 1, "step-point"], ["class", "ellipse", 4, "ngIf"], [3, "ngSwitch"], [3, "ngSwitchCase"], ["data-test", "step_label_name", 1, "step-label", 3, "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["data-test", "step_progress", "class", "step-progress", 4, "ngIf"], [1, "ellipse"], [1, "pointer", "blue"], [1, "dr-icon-approve"], [1, "pointer", 3, "ngClass"], [1, "text", 3, "hidden"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["data-test", "step_progress", 1, "step-progress"], [1, "stepper--mini-connector"], [1, "step-tooltip"], [1, "step-tooltip_name"], [1, "step-tooltip_description"], ["class", "step-connector", 3, "only-one-step", "class", "visibility", "connector-grand", 4, "ngIf"], [1, "step-connector"], [1, "progress"], [3, "hidden"]], template: function StepperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5813
5835
|
i0.ɵɵtemplate(0, StepperComponent_div_0_Template, 2, 0, "div", 0);
|
|
5814
5836
|
i0.ɵɵelementStart(1, "div", 1, 2);
|
|
5815
5837
|
i0.ɵɵtemplate(3, StepperComponent_ng_container_3_Template, 3, 2, "ng-container", 3);
|
|
@@ -5817,6 +5839,7 @@ class StepperComponent {
|
|
|
5817
5839
|
i0.ɵɵtemplate(4, StepperComponent_div_4_Template, 2, 0, "div", 0);
|
|
5818
5840
|
i0.ɵɵtemplate(5, StepperComponent_ng_template_5_Template, 5, 2, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
5819
5841
|
i0.ɵɵtemplate(7, StepperComponent_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
5842
|
+
i0.ɵɵtemplate(9, StepperComponent_ng_template_9_Template, 2, 2, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
5820
5843
|
} if (rf & 2) {
|
|
5821
5844
|
const _r1 = i0.ɵɵreference(2);
|
|
5822
5845
|
i0.ɵɵproperty("ngIf", (_r1 == null ? null : _r1.scrollLeft) !== 0);
|
|
@@ -5830,7 +5853,7 @@ class StepperComponent {
|
|
|
5830
5853
|
}
|
|
5831
5854
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StepperComponent, [{
|
|
5832
5855
|
type: Component,
|
|
5833
|
-
args: [{ selector: 'dr-stepper', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"scroll-section\" *ngIf=\"stepper?.scrollLeft !== 0\" (click)=\"scrollLeft()\">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n<div #stepper class=\"stepper\" [class.stepper--disabled]=\"disabled\" [class.stepper--mini]=\"mini\">\n <ng-container *ngFor=\"let step of steps; let index = index; last as isLast; first as isFirst\">\n <div\n *ngIf=\"!step.hide\"\n class=\"step\"\n (click)=\"selectStep(step)\"\n [class.step-setup]=\"inlineLabels\"\n [attr.data-analytics]=\"getDataAnalyticsTag(step)\">\n <div\n class=\"step-wrapper\"\n [drTooltip]=\"step.description && tooltip\"\n [drTooltipContext]=\"{ step: step }\"\n [drTooltipPosition]=\"'bottom'\">\n <div\n data-test=\"step_point\"\n class=\"step-point\"\n [class.active]=\"currentStep === step\"\n [class.completed]=\"step.completed\">\n <div *ngIf=\"step === currentStep\" class=\"ellipse\"></div>\n <ng-container [ngSwitch]=\"step.completed\">\n <ng-template [ngSwitchCase]=\"true\">\n <div class=\"pointer blue\">\n <i class=\"dr-icon-approve\"></i>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"false\">\n <div\n class=\"pointer\"\n [class.gray]=\"step !== currentStep\"\n [ngClass]=\"{ 'blue with-ellipse': step === currentStep }\">\n <div [hidden]=\"step === currentStep || hiddenIndex\" class=\"text\">{{ index + 1 }}</div>\n </div>\n </ng-template>\n </ng-container>\n </div>\n <div\n data-test=\"step_label_name\"\n class=\"step-label\"\n [class.active]=\"currentStep === step\"\n [ngClass]=\"step.completed ? 'completed' : 'uncompleted'\">\n <span [hidden]=\"hiddenNames\">{{ step.name }}</span>\n </div>\n <ng-container\n *ngIf=\"inlineLabels\"\n [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n <span *ngIf=\"step.showProgress\" data-test=\"step_progress\" class=\"step-progress\">\n {{ (step.requiredTasks ? step.completedTasks : step.requiredTasks) + '/' + step.requiredTasks }}\n </span>\n </div>\n <ng-container\n *ngIf=\"!inlineLabels\"\n [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n </div>\n <div *ngIf=\"mini\" class=\"stepper--mini-connector\"></div>\n </ng-container>\n</div>\n<div\n (click)=\"scrollRight()\"\n class=\"scroll-section\"\n *ngIf=\"\n stepper?.scrollWidth > stepper?.clientWidth &&\n roundWidth(stepper?.scrollLeft + stepper?.clientWidth) < stepper?.scrollWidth\n \">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n\n<ng-template #tooltip let-step=\"step\">\n <div class=\"step-tooltip\">\n <div class=\"step-tooltip_name\">{{ step.name }}</div>\n <div class=\"step-tooltip_description\">{{ step.description }}</div>\n </div>\n</ng-template>\n\n<ng-template #connector let-step=\"step\" let-isLast=\"isLast\" let-index=\"index\">\n <div\n class=\"step-connector\"\n [class.only-one-step]=\"steps.length === 1\"\n [class]=\"'step-connector--' + (!inlineLabels ? 'absolute' : 'inline')\"\n *ngIf=\"steps.length === 1 || !isLast\"\n [style.visibility]=\"withoutConnectors || steps[step.index + 1]?.hide ? 'hidden' : 'unset'\"\n [class.connector-grand]=\"!inlineLabels && (index === 0 || index === steps.length - 2)\">\n <div class=\"progress\" [style.width]=\"getWidth(step)\"></div>\n </div>\n</ng-template>\n", styles: [":host{font-family:Poppins,sans-serif;display:flex;justify-content:center;height:100%;position:relative}:host .scroll-section{position:absolute;top:0;height:100%;width:108px;display:flex;align-items:center;z-index:10}:host .scroll-section i{font-size:24px;color:#2969b0;background:#f3f7ff;border-radius:24px}:host .scroll-section i:hover{background:#cde1fb;cursor:pointer}:host .scroll-section:first-child{left:0;padding-left:16px;background:linear-gradient(90deg,#fff 36.08%,#fff0 87.17%)}:host .scroll-section:first-child i{transform:rotate(180deg)}:host .scroll-section:last-child{right:0;padding-right:16px;background:linear-gradient(270deg,#fff 36.08%,#fff0 87.17%);justify-content:flex-end}:host .stepper{display:flex;align-items:center;height:100%;width:100%;overflow:auto;scroll-behavior:smooth}:host .stepper::-webkit-scrollbar{display:none}:host .stepper--disabled .step:hover{cursor:default}:host .stepper--disabled .step-point .ellipse{border-color:#bcbcbc}:host .stepper--disabled .step-point .pointer{color:#fff;background-color:#bcbcbc;cursor:default}:host .stepper--disabled .step-label{color:#bcbcbc}:host .stepper--disabled .step-connector{background-color:#bcbcbc}:host .stepper--disabled .step-connector .progress{background-color:#bcbcbc}:host .stepper--mini .step-connector{display:none}:host .stepper--mini-connector{flex-grow:1;display:flex;margin:0 8px;background-color:#dfe0e3;height:2px}:host .stepper--mini-connector:last-child{display:none}:host .stepper--mini .step-setup{flex-grow:unset}:host .stepper--mini .step-point{width:18px!important;height:18px!important}:host .stepper--mini .step-point.active .pointer{width:12px;height:12px}:host .stepper--mini .step-point.active .pointer i{display:none}:host .stepper--mini .step-point.active .ellipse{width:18px;height:18px}:host .stepper--mini .step-point .pointer{width:16px;height:16px}:host .stepper--mini .step-point .pointer .text{font-size:12px!important;font-weight:500;line-height:20px}:host .stepper--mini .step-point .pointer i{font-size:12px!important}:host .stepper--mini .step-label{margin-left:8px}:host .stepper--mini .step-label span{font-size:12px;font-weight:400;line-height:20px}:host .stepper--mini .step-label.active span{font-weight:600}:host .step{position:relative;display:flex;flex-direction:column;width:120px;align-items:center;flex-shrink:0;flex-grow:1}:host .step:hover{cursor:pointer}:host .step:not(.step-setup) .step-wrapper{width:100%}:host .step:not(.step-setup):first-child .step-wrapper,:host .step:not(.step-setup):first-child .step-point,:host .step:not(.step-setup):first-child .step-label,:host .step:not(.step-setup):first-child .step-progress{margin-left:8px}:host .step:not(.step-setup):first-child .only-one-step{left:0!important;margin-left:25px}:host .step-point{display:flex;justify-content:center;width:100%;height:28px;position:relative;align-items:center}:host .step-point .ellipse{width:28px;height:28px;position:absolute;border-radius:50px;border-color:#4646ce;border-style:solid;border-width:2px;background:#fff;display:flex;justify-content:center;align-items:center;z-index:2}:host .step-point .pointer{width:24px;height:24px;position:absolute;z-index:4;border-radius:20px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;line-height:1.4;color:#6d6e6f;transition:box-shadow .2s ease-in-out}:host .step-point .pointer i{color:#fff;font-size:22px}:host .step-point .pointer.blue{background:#4646ce}:host .step-point .pointer.gray{background:#dfe0e3}:host .step-point .pointer.gray:hover{box-shadow:0 0 4px 2px #00000026}:host .step-point.completed :host .step-point.active{background:#4646ce}:host .step-point.active .ellipse{width:28px;height:28px}:host .step-point.active .pointer{width:20px;height:20px}:host .step-label{font-weight:400;font-size:14px;line-height:22px;line-height:1.5;color:#6d6e6f;display:flex;justify-content:center;overflow:hidden;margin-top:8px}:host .step-label span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host .step-label.active{font-weight:600;color:#333}:host .step-label:last-child{margin-bottom:23px}:host .step-progress{margin-top:3px;font-style:normal;font-weight:400;font-size:12px;line-height:1.4;display:flex;justify-content:center}:host .step-connector{background-color:#dfe0e3;height:2px}:host .step-connector.connector-grand{width:calc(100% - 25px)}:host .step-connector.connector-grand.only-one-step{width:calc(100% - 50px)}:host .step-connector .progress{background-color:#4646ce;height:2px;width:0}:host .step-connector--absolute{position:absolute;top:14px;width:100%;left:calc(50% + 12px)}:host .step-connector--inline{width:50px;margin-left:32px;margin-right:32px}:host .step-setup{width:auto}:host .step-setup .step-wrapper{display:flex;flex-direction:row;align-items:center;width:auto}:host .step-setup+.step-setup{margin-left:0}:host .step-setup .step-progress{display:none}:host .step-setup .step-label{position:relative;transform:none;align-items:center;justify-content:start;margin:0 0 0 8px;font-size:16px}:host .step-setup .step-point{width:28px;height:28px}:host .step-setup .step-point .pointer i{font-size:22px}:host .step-setup .step-point .pointer .text{font-size:16px}::ng-deep .step-tooltip{max-width:250px;font-size:14px;line-height:22px;padding:10px 12px}::ng-deep .step-tooltip_name{font-weight:700;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 1367px){.stepper .step-label{font-size:14px}}\n"] }]
|
|
5856
|
+
args: [{ selector: 'dr-stepper', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"scroll-section\" *ngIf=\"stepper?.scrollLeft !== 0\" (click)=\"scrollLeft()\">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n<div #stepper class=\"stepper\" [class.stepper--disabled]=\"disabled\" [class.stepper--mini]=\"mini\">\n <ng-container *ngFor=\"let step of steps; let index = index; last as isLast; first as isFirst\">\n <div\n *ngIf=\"!step.hide\"\n class=\"step\"\n (click)=\"selectStep(step)\"\n [class.step-setup]=\"inlineLabels\"\n [attr.data-analytics]=\"getDataAnalyticsTag(step)\">\n <div\n class=\"step-wrapper\"\n [drTooltip]=\"step.description && tooltip\"\n [drTooltipContext]=\"{ step: step }\"\n [drTooltipPosition]=\"'bottom'\">\n <div\n data-test=\"step_point\"\n class=\"step-point\"\n [class.active]=\"currentStep === step\"\n [class.completed]=\"step.completed\">\n <div *ngIf=\"step === currentStep\" class=\"ellipse\"></div>\n <ng-container [ngSwitch]=\"step.completed\">\n <ng-template [ngSwitchCase]=\"true\">\n <div class=\"pointer blue\">\n <i class=\"dr-icon-approve\"></i>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"false\">\n <div\n class=\"pointer\"\n [class.gray]=\"step !== currentStep\"\n [ngClass]=\"{ 'blue with-ellipse': step === currentStep }\">\n <div [hidden]=\"step === currentStep || hiddenIndex\" class=\"text\">{{ index + 1 }}</div>\n </div>\n </ng-template>\n </ng-container>\n </div>\n <div\n data-test=\"step_label_name\"\n class=\"step-label\"\n [class.active]=\"currentStep === step\"\n [ngClass]=\"step.completed ? 'completed' : 'uncompleted'\">\n <ng-container\n *ngTemplateOutlet=\"\n stepTextLabelTemplate || defaultStepTextLabel;\n context: { step: step, index: index }\n \"></ng-container>\n </div>\n <ng-container\n *ngIf=\"inlineLabels\"\n [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n <span *ngIf=\"step.showProgress\" data-test=\"step_progress\" class=\"step-progress\">\n {{ (step.requiredTasks ? step.completedTasks : step.requiredTasks) + '/' + step.requiredTasks }}\n </span>\n </div>\n <ng-container\n *ngIf=\"!inlineLabels\"\n [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n </div>\n <div *ngIf=\"mini\" class=\"stepper--mini-connector\"></div>\n </ng-container>\n</div>\n<div\n (click)=\"scrollRight()\"\n class=\"scroll-section\"\n *ngIf=\"\n stepper?.scrollWidth > stepper?.clientWidth &&\n roundWidth(stepper?.scrollLeft + stepper?.clientWidth) < stepper?.scrollWidth\n \">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n\n<ng-template #tooltip let-step=\"step\">\n <div class=\"step-tooltip\">\n <div class=\"step-tooltip_name\">{{ step.name }}</div>\n <div class=\"step-tooltip_description\">{{ step.description }}</div>\n </div>\n</ng-template>\n\n<ng-template #connector let-step=\"step\" let-isLast=\"isLast\" let-index=\"index\">\n <div\n class=\"step-connector\"\n [class.only-one-step]=\"steps.length === 1\"\n [class]=\"'step-connector--' + (!inlineLabels ? 'absolute' : 'inline')\"\n *ngIf=\"steps.length === 1 || !isLast\"\n [style.visibility]=\"withoutConnectors || steps[step.index + 1]?.hide ? 'hidden' : 'unset'\"\n [class.connector-grand]=\"!inlineLabels && (index === 0 || index === steps.length - 2)\">\n <div class=\"progress\" [style.width]=\"getWidth(step)\"></div>\n </div>\n</ng-template>\n\n<ng-template #defaultStepTextLabel let-step=\"step\" let-index=\"index\">\n <span [hidden]=\"hiddenNames\">{{ step.name }}</span>\n</ng-template>\n", styles: [":host{font-family:Poppins,sans-serif;display:flex;justify-content:center;height:100%;position:relative}:host .scroll-section{position:absolute;top:0;height:100%;width:108px;display:flex;align-items:center;z-index:10}:host .scroll-section i{font-size:24px;color:#2969b0;background:#f3f7ff;border-radius:24px}:host .scroll-section i:hover{background:#cde1fb;cursor:pointer}:host .scroll-section:first-child{left:0;padding-left:16px;background:linear-gradient(90deg,#fff 36.08%,#fff0 87.17%)}:host .scroll-section:first-child i{transform:rotate(180deg)}:host .scroll-section:last-child{right:0;padding-right:16px;background:linear-gradient(270deg,#fff 36.08%,#fff0 87.17%);justify-content:flex-end}:host .stepper{display:flex;align-items:center;height:100%;width:100%;overflow:auto;scroll-behavior:smooth}:host .stepper::-webkit-scrollbar{display:none}:host .stepper--disabled .step:hover{cursor:default}:host .stepper--disabled .step-point .ellipse{border-color:#bcbcbc}:host .stepper--disabled .step-point .pointer{color:#fff;background-color:#bcbcbc;cursor:default}:host .stepper--disabled .step-label{color:#bcbcbc}:host .stepper--disabled .step-connector{background-color:#bcbcbc}:host .stepper--disabled .step-connector .progress{background-color:#bcbcbc}:host .stepper--mini .step-connector{display:none}:host .stepper--mini-connector{flex-grow:1;display:flex;margin:0 8px;background-color:#dfe0e3;height:2px}:host .stepper--mini-connector:last-child{display:none}:host .stepper--mini .step-setup{flex-grow:unset}:host .stepper--mini .step-point{width:18px!important;height:18px!important}:host .stepper--mini .step-point.active .pointer{width:12px;height:12px}:host .stepper--mini .step-point.active .pointer i{display:none}:host .stepper--mini .step-point.active .ellipse{width:18px;height:18px}:host .stepper--mini .step-point .pointer{width:16px;height:16px}:host .stepper--mini .step-point .pointer .text{font-size:12px!important;font-weight:500;line-height:20px}:host .stepper--mini .step-point .pointer i{font-size:12px!important}:host .stepper--mini .step-label{margin-left:8px}:host .stepper--mini .step-label span{font-size:12px;font-weight:400;line-height:20px}:host .stepper--mini .step-label.active span{font-weight:600}:host .step{position:relative;display:flex;flex-direction:column;width:120px;align-items:center;flex-shrink:0;flex-grow:1}:host .step:hover{cursor:pointer}:host .step:not(.step-setup) .step-wrapper{width:100%}:host .step:not(.step-setup):first-child .step-wrapper,:host .step:not(.step-setup):first-child .step-point,:host .step:not(.step-setup):first-child .step-label,:host .step:not(.step-setup):first-child .step-progress{margin-left:8px}:host .step:not(.step-setup):first-child .only-one-step{left:0!important;margin-left:25px}:host .step-point{display:flex;justify-content:center;width:100%;height:28px;position:relative;align-items:center}:host .step-point .ellipse{width:28px;height:28px;position:absolute;border-radius:50px;border-color:#4646ce;border-style:solid;border-width:2px;background:#fff;display:flex;justify-content:center;align-items:center;z-index:2}:host .step-point .pointer{width:24px;height:24px;position:absolute;z-index:4;border-radius:20px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;line-height:1.4;color:#6d6e6f;transition:box-shadow .2s ease-in-out}:host .step-point .pointer i{color:#fff;font-size:22px}:host .step-point .pointer.blue{background:#4646ce}:host .step-point .pointer.gray{background:#dfe0e3}:host .step-point .pointer.gray:hover{box-shadow:0 0 4px 2px #00000026}:host .step-point.completed :host .step-point.active{background:#4646ce}:host .step-point.active .ellipse{width:28px;height:28px}:host .step-point.active .pointer{width:20px;height:20px}:host .step-label{font-weight:400;font-size:14px;line-height:22px;line-height:1.5;color:#6d6e6f;display:flex;justify-content:center;overflow:hidden;margin-top:8px}:host .step-label span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host .step-label.active{font-weight:600;color:#333}:host .step-label:last-child{margin-bottom:23px}:host .step-progress{margin-top:3px;font-style:normal;font-weight:400;font-size:12px;line-height:1.4;display:flex;justify-content:center}:host .step-connector{background-color:#dfe0e3;height:2px}:host .step-connector.connector-grand{width:calc(100% - 25px)}:host .step-connector.connector-grand.only-one-step{width:calc(100% - 50px)}:host .step-connector .progress{background-color:#4646ce;height:2px;width:0}:host .step-connector--absolute{position:absolute;top:14px;width:100%;left:calc(50% + 12px)}:host .step-connector--inline{width:50px;margin-left:32px;margin-right:32px}:host .step-setup{width:auto}:host .step-setup .step-wrapper{display:flex;flex-direction:row;align-items:center;width:auto}:host .step-setup+.step-setup{margin-left:0}:host .step-setup .step-progress{display:none}:host .step-setup .step-label{position:relative;transform:none;align-items:center;justify-content:start;margin:0 0 0 8px;font-size:16px}:host .step-setup .step-point{width:28px;height:28px}:host .step-setup .step-point .pointer i{font-size:22px}:host .step-setup .step-point .pointer .text{font-size:16px}::ng-deep .step-tooltip{max-width:250px;font-size:14px;line-height:22px;padding:10px 12px}::ng-deep .step-tooltip_name{font-weight:700;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 1367px){.stepper .step-label{font-size:14px}}\n"] }]
|
|
5834
5857
|
}], null, { steps: [{
|
|
5835
5858
|
type: Input
|
|
5836
5859
|
}], currentStep: [{
|
|
@@ -5855,6 +5878,9 @@ class StepperComponent {
|
|
|
5855
5878
|
}], stepper: [{
|
|
5856
5879
|
type: ViewChild,
|
|
5857
5880
|
args: ['stepper', { read: ElementRef }]
|
|
5881
|
+
}], stepTextLabelTemplate: [{
|
|
5882
|
+
type: ContentChild,
|
|
5883
|
+
args: ['stepTextLabel']
|
|
5858
5884
|
}] }); })();
|
|
5859
5885
|
|
|
5860
5886
|
const IMAGE_TYPES = ['image/png', 'image/jpeg', 'image/gif'];
|