json-crud-ui-comp-table 1.3.2 → 1.3.4
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/bin/v3/commands/TableComp/template/v3/Index/Configs/Create/config.json +65 -0
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/ShowAll/config.json +60 -0
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSearch/config.json +69 -0
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +18 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc.js +47 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/start.js +15 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +12 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/Index/FormLoad/start.js +5 -0
- package/bin/v3/commands/TableComp/template/v3/Index/headers.json +51 -0
- package/bin/v3/commands/TableComp/template/v3/Index/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v3/index.html +132 -0
- package/bin/v3/commands/TableComp/template/v3/script.js +276 -0
- package/bin/v3/commands/TableComp/template/v3/tailwind-3.css +1 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/Create/config.json +65 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/ShowAll/config.json +66 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSearch/config.json +75 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/keydownFunc.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/confirmLogout.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/api/postLogin.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getLoginPayload.js +9 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getPassword.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getUserName.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/index.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/showLoginError.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/hideLoginError.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/index.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc copy.js +74 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/start.js +19 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/ApplyMenuFromCookie/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/decodeJwt.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/deleteKSTokenCookie.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getTokenFromCookie.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getUserCode.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/LoginModal/hide.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedInMenu.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedOutMenu.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideLoginMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideUserMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/resetUserHeader.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showLoginMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showUserMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/updateUserHeader.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onReadFail.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +14 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/start.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/headers.json +63 -0
- package/bin/v3/commands/TableComp/template/v4/Index/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/index.html +117 -0
- package/bin/v3/commands/TableComp/template/v4/script.js +278 -0
- package/bin/v3/commands/TableComp/template/v4/tailwind-3.css +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"containerId": "kSTableContainer",
|
|
3
|
+
"tableName": "",
|
|
4
|
+
"mode": "create",
|
|
5
|
+
"layout": {
|
|
6
|
+
"verticalPosition": "top",
|
|
7
|
+
"type": "table"
|
|
8
|
+
},
|
|
9
|
+
"endPoints": {
|
|
10
|
+
"create": "/Api/V1/StockItems/Insert",
|
|
11
|
+
"update": "",
|
|
12
|
+
"delete": "",
|
|
13
|
+
"read": "/Api/V1/LedgerNames/ShowAll",
|
|
14
|
+
"find": "",
|
|
15
|
+
"filter": "",
|
|
16
|
+
"dataLists": {}
|
|
17
|
+
},
|
|
18
|
+
"options": {
|
|
19
|
+
"enabledSections": [
|
|
20
|
+
"vertical",
|
|
21
|
+
"table",
|
|
22
|
+
"footer"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"columnsConfig": [
|
|
26
|
+
{
|
|
27
|
+
"columnName": "LedgerName",
|
|
28
|
+
"title": "LedgerName",
|
|
29
|
+
"cellConfig": {
|
|
30
|
+
"width": "150px"
|
|
31
|
+
},
|
|
32
|
+
"isSearchable": false,
|
|
33
|
+
"dataListSource": "Dates.Date"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"columnName": "LedgerParentName",
|
|
37
|
+
"title": "Parent Name",
|
|
38
|
+
"cellConfig": {
|
|
39
|
+
"width": "100px"
|
|
40
|
+
},
|
|
41
|
+
"isSearchable": false,
|
|
42
|
+
"dataListSource": "AccountNames.AccountName"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"columnName": "GstRegistrationType",
|
|
46
|
+
"title": "Registration Type",
|
|
47
|
+
"cellConfig": {
|
|
48
|
+
"width": "100px"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"columnName": "PartyGSTIN",
|
|
53
|
+
"title": "GSTIN",
|
|
54
|
+
"cellConfig": {
|
|
55
|
+
"width": "100px",
|
|
56
|
+
"tableFooter": {}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"callbacks": {
|
|
61
|
+
"vertical": {
|
|
62
|
+
"onSuccess": "func"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"containerId": "kSTableContainer",
|
|
3
|
+
"tableName": "",
|
|
4
|
+
"mode": "create",
|
|
5
|
+
"layout": {
|
|
6
|
+
"verticalPosition": "top",
|
|
7
|
+
"type": "table"
|
|
8
|
+
},
|
|
9
|
+
"endPoints": {
|
|
10
|
+
"create": "",
|
|
11
|
+
"update": "",
|
|
12
|
+
"delete": "",
|
|
13
|
+
"read": "/Api/V4/LedgerNames/ShowAll",
|
|
14
|
+
"find": "",
|
|
15
|
+
"filter": "",
|
|
16
|
+
"dataLists": {}
|
|
17
|
+
},
|
|
18
|
+
"options": {
|
|
19
|
+
"enabledSections": [
|
|
20
|
+
"vertical",
|
|
21
|
+
"table",
|
|
22
|
+
"footer"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"columnsConfig": [
|
|
26
|
+
{
|
|
27
|
+
"columnName": "LedgerName",
|
|
28
|
+
"title": "LedgerName",
|
|
29
|
+
"cellConfig": {
|
|
30
|
+
"width": "150px"
|
|
31
|
+
},
|
|
32
|
+
"isSearchable": false,
|
|
33
|
+
"dataListSource": "Dates.Date"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"columnName": "LedgerParentName",
|
|
37
|
+
"title": "Parent Name",
|
|
38
|
+
"cellConfig": {
|
|
39
|
+
"width": "100px"
|
|
40
|
+
},
|
|
41
|
+
"isSearchable": false,
|
|
42
|
+
"dataListSource": "AccountNames.AccountName"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"columnName": "GstRegistrationType",
|
|
46
|
+
"title": "Registration Type",
|
|
47
|
+
"cellConfig": {
|
|
48
|
+
"width": "100px"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"columnName": "PartyGSTIN",
|
|
53
|
+
"title": "GSTIN",
|
|
54
|
+
"cellConfig": {
|
|
55
|
+
"width": "100px",
|
|
56
|
+
"tableFooter": {}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"containerId": "kSTableContainer",
|
|
3
|
+
"tableName": "Ledger Names",
|
|
4
|
+
"mode": "create",
|
|
5
|
+
"layout": {
|
|
6
|
+
"verticalPosition": "top",
|
|
7
|
+
"type": "table"
|
|
8
|
+
},
|
|
9
|
+
"endPoints": {
|
|
10
|
+
"create": "",
|
|
11
|
+
"update": "",
|
|
12
|
+
"delete": "",
|
|
13
|
+
"read": "/Api/V1/LedgerNames/ShowAll",
|
|
14
|
+
"find": "",
|
|
15
|
+
"filter": "",
|
|
16
|
+
"dataLists": {}
|
|
17
|
+
},
|
|
18
|
+
"options": {
|
|
19
|
+
"firstRow": {
|
|
20
|
+
"showSearch": true
|
|
21
|
+
},
|
|
22
|
+
"enabledSections": [
|
|
23
|
+
"vertical",
|
|
24
|
+
"table",
|
|
25
|
+
"footer"
|
|
26
|
+
],
|
|
27
|
+
"table": {
|
|
28
|
+
"showSerial": true,
|
|
29
|
+
"showFooterRows": true,
|
|
30
|
+
"showBalance": true,
|
|
31
|
+
"showTotals": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"columnsConfig": [
|
|
35
|
+
{
|
|
36
|
+
"columnName": "LedgerName",
|
|
37
|
+
"title": "LedgerName",
|
|
38
|
+
"cellConfig": {
|
|
39
|
+
"width": "150px"
|
|
40
|
+
},
|
|
41
|
+
"isSearchable": false,
|
|
42
|
+
"dataListSource": "Dates.Date"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"columnName": "LedgerParentName",
|
|
46
|
+
"title": "Parent Name",
|
|
47
|
+
"cellConfig": {
|
|
48
|
+
"width": "100px"
|
|
49
|
+
},
|
|
50
|
+
"isSearchable": false,
|
|
51
|
+
"dataListSource": "AccountNames.AccountName"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"columnName": "GstRegistrationType",
|
|
55
|
+
"title": "Registration Type",
|
|
56
|
+
"cellConfig": {
|
|
57
|
+
"width": "100px"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"columnName": "PartyGSTIN",
|
|
62
|
+
"title": "GSTIN",
|
|
63
|
+
"cellConfig": {
|
|
64
|
+
"width": "100px",
|
|
65
|
+
"tableFooter": {}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"containerId": "kSTableContainer",
|
|
3
|
+
"tableName": "",
|
|
4
|
+
"mode": "create",
|
|
5
|
+
"layout": {
|
|
6
|
+
"verticalPosition": "top",
|
|
7
|
+
"type": "table"
|
|
8
|
+
},
|
|
9
|
+
"endPoints": {
|
|
10
|
+
"create": "",
|
|
11
|
+
"update": "",
|
|
12
|
+
"delete": "",
|
|
13
|
+
"read": "/Protected/V1/LedgerNames/ShowAll",
|
|
14
|
+
"find": "",
|
|
15
|
+
"filter": "",
|
|
16
|
+
"dataLists": {}
|
|
17
|
+
},
|
|
18
|
+
"options": {
|
|
19
|
+
"enabledSections": [
|
|
20
|
+
"vertical",
|
|
21
|
+
"table",
|
|
22
|
+
"footer"
|
|
23
|
+
],
|
|
24
|
+
"table": {
|
|
25
|
+
"showSerial": true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"columnsConfig": [
|
|
29
|
+
{
|
|
30
|
+
"columnName": "LedgerName",
|
|
31
|
+
"title": "LedgerName",
|
|
32
|
+
"cellConfig": {
|
|
33
|
+
"width": "150px"
|
|
34
|
+
},
|
|
35
|
+
"isSearchable": false,
|
|
36
|
+
"dataListSource": "Dates.Date"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"columnName": "LedgerParentName",
|
|
40
|
+
"title": "Parent Name",
|
|
41
|
+
"cellConfig": {
|
|
42
|
+
"width": "100px"
|
|
43
|
+
},
|
|
44
|
+
"isSearchable": false,
|
|
45
|
+
"dataListSource": "AccountNames.AccountName"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"columnName": "GstRegistrationType",
|
|
49
|
+
"title": "Registration Type",
|
|
50
|
+
"cellConfig": {
|
|
51
|
+
"width": "100px"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"columnName": "PartyGSTIN",
|
|
56
|
+
"title": "GSTIN",
|
|
57
|
+
"cellConfig": {
|
|
58
|
+
"width": "100px",
|
|
59
|
+
"tableFooter": {}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"callbacks": {
|
|
64
|
+
"table": {
|
|
65
|
+
"onDelete": "function",
|
|
66
|
+
"onReadFail": "function"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { initTableWithFooter } from "/KSTableAi/V46/entry.js";
|
|
2
|
+
|
|
3
|
+
const callKSSubTable = async (config) => {
|
|
4
|
+
if (window?.KSTable) {
|
|
5
|
+
console.log("loaded from cdn");
|
|
6
|
+
|
|
7
|
+
return window.KSTable.initTableWithFooter(config);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return initTableWithFooter(config);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default callKSSubTable;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { formSearchParamsFunc } from "./formSearchParamsFunc.js";
|
|
2
|
+
|
|
3
|
+
const onSuccessFunc = async (res) => {
|
|
4
|
+
const fromReponse = await res.json();
|
|
5
|
+
console.log("fromReponse : ", fromReponse);
|
|
6
|
+
window.location.href = `../WithSubTable/index.html?pk=${fromReponse.pk}`;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getKSTableConfig = async ({ tableName }) => {
|
|
10
|
+
const config = await fetch("config.json");
|
|
11
|
+
// debugger;
|
|
12
|
+
const configJson = await config.json();
|
|
13
|
+
|
|
14
|
+
const pkFromParams = formSearchParamsFunc({ inKeyName: "pk" });
|
|
15
|
+
|
|
16
|
+
// configJson.tableName = tableName;
|
|
17
|
+
|
|
18
|
+
configJson.endPoints.read = `/Api/V4/${tableName}/ShowAll`;
|
|
19
|
+
// configJson.endPoints.filter = `/Api/V1/${tableName}/FilterColumns`;
|
|
20
|
+
configJson.endPoints.findFromParams = configJson.endPoints.findFromParams.replace("{pk}", pkFromParams);
|
|
21
|
+
|
|
22
|
+
configJson.callbacks.vertical.onSuccess = onSuccessFunc;
|
|
23
|
+
// configJson.endPoints.dataListEndpoints.AccountNames = `/Api/V1/${tableName}/Distinct/AccountName`;
|
|
24
|
+
// configJson.endPoints.dataListEndpoints.Dates = `/Api/V1/${tableName}/Distinct/Date`;
|
|
25
|
+
|
|
26
|
+
return configJson;
|
|
27
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { initCreate, initTableWithFooter } from "/KSTableAi/V4/entry.js";
|
|
2
|
+
import { formSearchParamsFunc } from "./formSearchParamsFunc.js";
|
|
3
|
+
|
|
4
|
+
const onSuccessFunc = async (res) => {
|
|
5
|
+
const fromReponse = await res.json();
|
|
6
|
+
console.log("fromReponse : ", fromReponse);
|
|
7
|
+
window.location.href = `../WithSubTable/index.html?pk=${fromReponse.pk}`;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const startFunc = async () => {
|
|
11
|
+
debugger;
|
|
12
|
+
const pkFromParams = formSearchParamsFunc({ inKeyName: "pk" });
|
|
13
|
+
|
|
14
|
+
const config = await fetch("Index/Configs/AddItem/config.json");
|
|
15
|
+
const configJson = await config.json();
|
|
16
|
+
|
|
17
|
+
configJson.endPoints.findFromParams = configJson.endPoints.findFromParams.replace("{pk}", pkFromParams);
|
|
18
|
+
configJson.callbacks.vertical.onSuccess = onSuccessFunc;
|
|
19
|
+
|
|
20
|
+
await initCreate(configJson);
|
|
21
|
+
|
|
22
|
+
const configForSubTable = await fetch("Index/Configs/AddItem/configForSubTable.json");
|
|
23
|
+
const configForSubTableJson = await configForSubTable.json();
|
|
24
|
+
|
|
25
|
+
const findColumn = configForSubTableJson.columnsConfig.find(element => {
|
|
26
|
+
return element.columnName === "ParentPk";
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
findColumn.defaultValue = pkFromParams;
|
|
30
|
+
|
|
31
|
+
await initTableWithFooter(configForSubTableJson);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default startFunc;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
let StartFunc = ({ inResponse }) => {
|
|
2
|
+
// const jVarLocalRedirectUrl = ConfigJson.Protected.RedirectUrl;
|
|
3
|
+
|
|
4
|
+
// window.location.href = jVarLocalRedirectUrl;
|
|
5
|
+
|
|
6
|
+
jFLocalAddUrlParams({ inSuccessUrl: "../ShowAll/AsIs.html" });
|
|
7
|
+
// console.log("aaaaaaa : ", jVarLocalRedirectUrl);
|
|
8
|
+
// http://localhost:9113/V5/StudentNames/pages/ShowAll/AsIs.html#top
|
|
9
|
+
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const jFLocalAddUrlParams = ({ inSuccessUrl }) => {
|
|
13
|
+
const jVarLocalRedirectUrl = ConfigJson.Protected.RedirectUrl;
|
|
14
|
+
|
|
15
|
+
const url = new URL(window.location.href);
|
|
16
|
+
|
|
17
|
+
let NewURl = new URL(jVarLocalRedirectUrl, url);
|
|
18
|
+
|
|
19
|
+
NewURl.searchParams.append('SuccessUrl', inSuccessUrl);
|
|
20
|
+
window.location.href = NewURl.href;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { StartFunc };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import getUrlJson from './getUrl.json' with {type: 'json'};
|
|
2
|
+
|
|
3
|
+
let StartFunc = async ({ inPk }) => {
|
|
4
|
+
let jVarLocalGetEndPoint = `${getUrlJson.GetEndPoint}/${inPk}`;
|
|
5
|
+
|
|
6
|
+
let response = await fetch(jVarLocalGetEndPoint);
|
|
7
|
+
|
|
8
|
+
return await response;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { StartFunc };
|
|
12
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StartFunc as StartFuncFetchFuncs } from './fetchFuncs.js';
|
|
2
|
+
import { StartFunc as StartFuncFromAfterFetch } from './AfterFetch/entryFile.js';
|
|
3
|
+
|
|
4
|
+
const startFunc = async ({ inPk }) => {
|
|
5
|
+
let localResponse = await StartFuncFetchFuncs({ inPk });
|
|
6
|
+
|
|
7
|
+
return await StartFuncFromAfterFetch({
|
|
8
|
+
inResponse: localResponse,
|
|
9
|
+
inPk
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default startFunc;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import afterHeadSave from "../../CommonFuncs/afterHeadSave.js";
|
|
2
|
+
import fetchAsGet from "./FetchAsGet/start.js";
|
|
3
|
+
|
|
4
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
|
|
7
|
+
const pk = prompt("Enter PK");
|
|
8
|
+
|
|
9
|
+
if (pk === null || pk.trim() === "") return;
|
|
10
|
+
|
|
11
|
+
jFLocalToInputhtmlId(pk);
|
|
12
|
+
|
|
13
|
+
afterHeadSave(pk).then();
|
|
14
|
+
// debugger;
|
|
15
|
+
let jVarLocaltoTallyId = document.getElementById('toTallyId');
|
|
16
|
+
|
|
17
|
+
jVarLocaltoTallyId.classList.remove("danger");
|
|
18
|
+
|
|
19
|
+
fetchAsGet({ inPk: pk }).then(fromPromise => {
|
|
20
|
+
if (fromPromise?.insertedToTally) jVarLocaltoTallyId.classList.add("danger");
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
25
|
+
const localCurrentTarget = inCurrentTarget;
|
|
26
|
+
|
|
27
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
28
|
+
|
|
29
|
+
menu.querySelectorAll("li a.active")
|
|
30
|
+
.forEach(a => a.classList.remove("active"));
|
|
31
|
+
|
|
32
|
+
localCurrentTarget.classList.add("active");
|
|
33
|
+
|
|
34
|
+
localCurrentTarget.classList.add("active");
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
let jFLocalToInputhtmlId = (inValue) => {
|
|
38
|
+
let jVarLocalHtmlId = 'htmlId';
|
|
39
|
+
let jVarLocalhtmlId = document.getElementById(jVarLocalHtmlId);
|
|
40
|
+
|
|
41
|
+
if (jVarLocalhtmlId === null === false) {
|
|
42
|
+
jVarLocalhtmlId.innerHTML = inValue;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('AddItemHtmlId');
|
|
5
|
+
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { funcToRun };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import buildTable from "./BuildTable/index.js";
|
|
2
|
+
|
|
3
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
4
|
+
// console.log("inCurrentTarget : ", inCurrentTarget);
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
// inCurrentTarget.classList.add("active");
|
|
7
|
+
debugger;
|
|
8
|
+
buildTable().then();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
12
|
+
const localCurrentTarget = inCurrentTarget;
|
|
13
|
+
|
|
14
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
15
|
+
|
|
16
|
+
menu.querySelectorAll("li a.active")
|
|
17
|
+
.forEach(a => a.classList.remove("active"));
|
|
18
|
+
|
|
19
|
+
localCurrentTarget.classList.add("active");
|
|
20
|
+
|
|
21
|
+
localCurrentTarget.classList.add("active");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('ShowAllHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import buildTable from "./BuildTable/index.js";
|
|
2
|
+
|
|
3
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
4
|
+
// console.log("inCurrentTarget : ", inCurrentTarget);
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
// inCurrentTarget.classList.add("active");
|
|
7
|
+
|
|
8
|
+
buildTable().then();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
12
|
+
const localCurrentTarget = inCurrentTarget;
|
|
13
|
+
|
|
14
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
15
|
+
|
|
16
|
+
menu.querySelectorAll("li a.active")
|
|
17
|
+
.forEach(a => a.classList.remove("active"));
|
|
18
|
+
|
|
19
|
+
localCurrentTarget.classList.add("active");
|
|
20
|
+
|
|
21
|
+
localCurrentTarget.classList.add("active");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('WithSearchHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|