Skip to content

Commit

Permalink
Merge pull request #169 from shamalijadhav/feature/component-creation
Browse files Browse the repository at this point in the history
Feature/component creation
  • Loading branch information
Sm1pleScr1pt authored Jul 2, 2024
2 parents 95b6535 + 4c90695 commit 3b092d7
Show file tree
Hide file tree
Showing 9 changed files with 2,255 additions and 6 deletions.
1,888 changes: 1,888 additions & 0 deletions blocks/applyloanform/applyloanform.css

Large diffs are not rendered by default.

Empty file.
334 changes: 334 additions & 0 deletions blocks/applyloanform/applyloantemplate.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blocks/eligibilitycalculator/eligibilitycalculator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderCalculatorData } from "../emiandeligiblitycalc/renderhpcal.js";
import { homeLoanCalcFunc } from "../emiandeligiblitycalc/homeloancalculators.js";
import { CalcHTM } from "../emiandeligiblitycalc/templatehtml1.js";
import { xfShowHideBodyClick, firstTabActive } from "../emiandeligiblitycalc/commonfile.js";
import { firstTabActive } from "../emiandeligiblitycalc/commonfile.js";
import { targetObject } from "../../scripts/scripts.js";

let calculatorType, elgCalDiv, elgOverlay, overlay;
Expand Down
6 changes: 3 additions & 3 deletions blocks/emiandeligiblitycalc/commonfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { resetCalculator } from "../emiandeligiblitycalc/resetCalculator.js";


export function xfShowHideBodyClick(findSectionXFShow) {
/* export function xfShowHideBodyClick(findSectionXFShow) {
body.addEventListener("click", function (e) {
});
}
} */

export function firstTabActive(cuurentSection) {
let calculator = cuurentSection.querySelector(".overlayDiv.show .homeloancalculator");
let firstTab = calculator.querySelector(".tab-emi-calc");
let firstCalDiv = calculator.querySelector(".emicalculator");
resetCalculator(firstCalDiv);
// firstTab.click();
firstTab.click();
}
2 changes: 1 addition & 1 deletion blocks/homeloancalculator/homeloancalculator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderCalculatorData } from "../emiandeligiblitycalc/renderhpcal.js";
import { homeLoanCalcFunc } from "../emiandeligiblitycalc/homeloancalculators.js";
import { CalcHTM } from "../emiandeligiblitycalc/templatehtml1.js";
import {xfShowHideBodyClick, firstTabActive } from "../emiandeligiblitycalc/commonfile.js";
import {firstTabActive } from "../emiandeligiblitycalc/commonfile.js";
import { targetObject } from "../../scripts/scripts.js";

let calculatorType, emiCalDiv, emiOverlay, overlay;
Expand Down
15 changes: 15 additions & 0 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,21 @@
}
}
}
},
{
"title": "Apply Loan Form",
"id": "applyloanform",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "applyloanform",
"model": "applyloanform"
}
}
}
}
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"embed",
"homeloancalculator",
"emiandeligiblitycalc",
"eligibilitycalculator"
"eligibilitycalculator",
"applyloanform"
]
},
{
Expand Down
11 changes: 11 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -1830,5 +1830,16 @@
{
"id": "emiandeligiblitycalc",
"fields": []
},
{
"id": "applyloanform",
"fields": [
{
"component": "text-input",
"label": "URL of Content Fragment",
"name": "text",
"valueType": "string"
}
]
}
]

0 comments on commit 3b092d7

Please sign in to comment.