@asd20/ui 3.2.504 → 3.2.505
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/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
<!-- Salary Calculator -->
|
|
85
85
|
<div class="salary-calculator">
|
|
86
|
-
<h2>Licensed Teacher Starting Salary Calculator</h2>
|
|
86
|
+
<h2 ref="scrollToMe">Licensed Teacher Starting Salary Calculator</h2>
|
|
87
87
|
<p>(Includes Special Services Providers)</p>
|
|
88
88
|
<asd20-select-input
|
|
89
89
|
class="years-selector"
|
|
@@ -102,7 +102,10 @@
|
|
|
102
102
|
:items="educationLevelOptions"
|
|
103
103
|
/>
|
|
104
104
|
<asd20-button
|
|
105
|
-
@click.native="
|
|
105
|
+
@click.native="
|
|
106
|
+
computedSalaryRange()
|
|
107
|
+
scrollToElement()
|
|
108
|
+
"
|
|
106
109
|
class="calculate"
|
|
107
110
|
icon="chevron"
|
|
108
111
|
label="Calculate"
|
|
@@ -632,20 +635,28 @@ export default {
|
|
|
632
635
|
const salaryRangesByEducationLevel = this.salaryRanges.filter(
|
|
633
636
|
s => s.requiredEducationLevel === this.educationLevel
|
|
634
637
|
)
|
|
635
|
-
console.log(this.educationLevel)
|
|
636
|
-
console.log(salaryRangesByEducationLevel)
|
|
638
|
+
// console.log(this.educationLevel)
|
|
639
|
+
// console.log(salaryRangesByEducationLevel)
|
|
637
640
|
|
|
638
641
|
const salaryRangesByExperience = salaryRangesByEducationLevel
|
|
639
642
|
.filter(smin => smin.minYearsOfExperience <= numberOfYears)
|
|
640
643
|
.filter(smax => smax.maxYearsOfExperience >= numberOfYears)
|
|
641
|
-
console.log(this.years, numberOfYears)
|
|
642
|
-
console.log(salaryRangesByExperience)
|
|
644
|
+
// console.log(this.years, numberOfYears)
|
|
645
|
+
// console.log(salaryRangesByExperience)
|
|
643
646
|
|
|
644
647
|
this.minSalary = salaryRangesByExperience[0].minSalary
|
|
645
648
|
this.maxSalary = salaryRangesByExperience[0].maxSalary
|
|
646
649
|
|
|
647
|
-
console.log(salaryRangesByExperience[0].minSalary)
|
|
648
|
-
console.log(this.minSalary)
|
|
650
|
+
// console.log(salaryRangesByExperience[0].minSalary)
|
|
651
|
+
// console.log(this.minSalary)
|
|
652
|
+
},
|
|
653
|
+
scrollToElement() {
|
|
654
|
+
const el = this.$refs.scrollToMe
|
|
655
|
+
|
|
656
|
+
if (el) {
|
|
657
|
+
// Use el.scrollIntoView() to instantly scroll to the element
|
|
658
|
+
el.scrollIntoView({ behavior: 'smooth' })
|
|
659
|
+
}
|
|
649
660
|
},
|
|
650
661
|
},
|
|
651
662
|
}
|