json-crud-ui-comp-table 1.3.4 → 1.4.2
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/cli.js +1 -1
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/ShowAll/config.json +59 -59
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/WithSearch/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/WithSerial/config.json +62 -62
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/ShowAll/config.json +59 -59
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSearch/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSerial/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/ShowAll/config.json +65 -65
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSearch/config.json +74 -74
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSerial/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/keydownFunc.js +15 -15
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/start.js +7 -7
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/confirmLogout.js +4 -4
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/index.js +16 -16
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/start.js +11 -11
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/api/postLogin.js +15 -15
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getLoginPayload.js +9 -9
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getPassword.js +4 -4
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getUserName.js +4 -4
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/index.js +16 -16
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/index.js +7 -7
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/showLoginError.js +15 -15
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/hideLoginError.js +11 -11
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/index.js +11 -11
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/start.js +10 -10
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/ApplyMenuFromCookie/index.js +16 -16
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/decodeJwt.js +10 -10
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/deleteKSTokenCookie.js +5 -5
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getTokenFromCookie.js +7 -7
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getUserCode.js +12 -12
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/LoginModal/hide.js +7 -7
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedInMenu.js +11 -11
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedOutMenu.js +11 -11
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideLoginMenu.js +8 -8
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideUserMenu.js +8 -8
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/resetUserHeader.js +8 -8
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showLoginMenu.js +8 -8
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showUserMenu.js +8 -8
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/updateUserHeader.js +10 -10
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +7 -7
- package/bin/{v2 → v4}/commands/TableComp/steps/AlterJson/index.js +0 -3
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/Create/config.json +64 -64
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/ShowAll/config.json +59 -59
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/WithSearch/config.json +68 -68
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/WithSerial/config.json +62 -62
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/Create/config.json +65 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/ShowAll/config.json +60 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/WithSearch/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +18 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc.js +47 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/start.js +15 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/start.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/headers.json +51 -0
- package/bin/v4/commands/TableComp/template/v3/Index/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/index.html +132 -0
- package/bin/v4/commands/TableComp/template/v3/script.js +276 -0
- package/bin/v4/commands/TableComp/template/v3/tailwind-3.css +1 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/Create/config.json +65 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/ShowAll/config.json +66 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/WithSearch/config.json +75 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/keydownFunc.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/confirmLogout.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/api/postLogin.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getLoginPayload.js +9 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getPassword.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getUserName.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/index.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/showLoginError.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/hideLoginError.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/index.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc copy.js +74 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/start.js +19 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/ApplyMenuFromCookie/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/decodeJwt.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/deleteKSTokenCookie.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getTokenFromCookie.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getUserCode.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/LoginModal/hide.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedInMenu.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedOutMenu.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideLoginMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideUserMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/resetUserHeader.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showLoginMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showUserMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/updateUserHeader.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onReadFail.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +14 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/start.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/headers.json +63 -0
- package/bin/v4/commands/TableComp/template/v4/Index/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/index.html +117 -0
- package/bin/v4/commands/TableComp/template/v4/script.js +278 -0
- package/bin/v4/commands/TableComp/template/v4/tailwind-3.css +1 -0
- package/index.js +6 -1
- package/package.json +1 -1
- /package/bin/{v2 → v4}/commands/TableComp/steps/AlterJson/updateColumnsConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/alterJson.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/announce.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/checks.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/createProject.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/locateDestination.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/locateSource.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/Create/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/ShowAll/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/WithSearch/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/WithSerial/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/buildHeader.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/headers.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/index.html +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/script.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/tailwind-3.css +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/buildHeader.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/headers.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/index.html +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/script.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/tailwind-3.css +0 -0
- /package/bin/{v2 → v4}/commands/tableComp.js +0 -0
- /package/bin/{v2 → v4}/core/getAllVersions.js +0 -0
- /package/bin/{v2 → v4}/core/parseInput.js +0 -0
- /package/bin/{v2 → v4}/core/resolveCommand.js +0 -0
- /package/bin/{v2 → v4}/core/showUsage.js +0 -0
- /package/bin/{v2 → v4}/start.js +0 -0
|
@@ -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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const onReadFail = (inResponseStatus) => {
|
|
2
|
+
console.log("onReadFail", inResponseStatus);
|
|
3
|
+
const loginModal =
|
|
4
|
+
document.getElementById("loginModal");
|
|
5
|
+
|
|
6
|
+
loginModal.classList.remove("hidden");
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getKSTableConfig = async () => {
|
|
10
|
+
|
|
11
|
+
const config = await fetch("./Index/Configs/WithSerial/config.json");
|
|
12
|
+
// debugger;
|
|
13
|
+
const configJson = await config.json();
|
|
14
|
+
|
|
15
|
+
configJson.callbacks.table.onReadFail = onReadFail;
|
|
16
|
+
|
|
17
|
+
return configJson;
|
|
18
|
+
};
|
|
@@ -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('WithSerialHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const clickFuncToRun = async () => {
|
|
2
|
+
const UserName =
|
|
3
|
+
document.getElementById("Username").value;
|
|
4
|
+
|
|
5
|
+
const Password =
|
|
6
|
+
document.getElementById("Password").value;
|
|
7
|
+
|
|
8
|
+
const response = await fetch("/Secured/V1/GenerateToken/ToCookie", {
|
|
9
|
+
method: "POST",
|
|
10
|
+
headers: {
|
|
11
|
+
"Content-Type": "application/json"
|
|
12
|
+
},
|
|
13
|
+
body: JSON.stringify({
|
|
14
|
+
UserName,
|
|
15
|
+
Password
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
if (response.status === 200) {
|
|
20
|
+
document
|
|
21
|
+
.getElementById("loginError")
|
|
22
|
+
.classList.add("hidden");
|
|
23
|
+
|
|
24
|
+
document
|
|
25
|
+
.getElementById("loginModalContent")
|
|
26
|
+
.classList.remove("border-2", "border-red-500");
|
|
27
|
+
|
|
28
|
+
const loginModal =
|
|
29
|
+
document.getElementById("loginModal");
|
|
30
|
+
|
|
31
|
+
loginModal.classList.add("hidden");
|
|
32
|
+
} else {
|
|
33
|
+
document
|
|
34
|
+
.getElementById("loginError")
|
|
35
|
+
.textContent = "Invalid username or password";
|
|
36
|
+
|
|
37
|
+
document
|
|
38
|
+
.getElementById("loginError")
|
|
39
|
+
.classList.remove("hidden");
|
|
40
|
+
|
|
41
|
+
document
|
|
42
|
+
.getElementById("loginModalContent")
|
|
43
|
+
.classList.add("border-2", "border-red-500");
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('loginButtonId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
2
|
+
const loginModal =
|
|
3
|
+
document.getElementById("loginModal");
|
|
4
|
+
|
|
5
|
+
loginModal.classList.remove("hidden");
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
9
|
+
const localCurrentTarget = inCurrentTarget;
|
|
10
|
+
|
|
11
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
12
|
+
|
|
13
|
+
menu.querySelectorAll("li a.active")
|
|
14
|
+
.forEach(a => a.classList.remove("active"));
|
|
15
|
+
|
|
16
|
+
localCurrentTarget.classList.add("active");
|
|
17
|
+
|
|
18
|
+
localCurrentTarget.classList.add("active");
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('loginHeaderHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/start.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import showAllHtmlId from "./ShowAllHtmlId/start.js";
|
|
2
|
+
import withSerialHtmlId from "./WithSerialHtmlId/start.js";
|
|
3
|
+
import withSearchHtmlId from "./WithSearchHtmlId/start.js";
|
|
4
|
+
import loginHeaderHtmlId from "./loginHeaderHtmlId/start.js";
|
|
5
|
+
import loginButtonId from "./loginButtonId/start.js";
|
|
6
|
+
|
|
7
|
+
const hookAllListeners = () => {
|
|
8
|
+
showAllHtmlId();
|
|
9
|
+
withSerialHtmlId();
|
|
10
|
+
withSearchHtmlId();
|
|
11
|
+
loginHeaderHtmlId();
|
|
12
|
+
loginButtonId();
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { hookAllListeners };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import onSuccessFunc from "./onSuccess.js";
|
|
2
|
+
|
|
3
|
+
const afterHeadSave = async (inPk) => {
|
|
4
|
+
const config = await fetch("Index/Configs/AddItem/config.json");
|
|
5
|
+
const configJson = await config.json();
|
|
6
|
+
|
|
7
|
+
configJson.endPoints.findFromParams = configJson.endPoints.findFromParams.replace("{pk}", inPk);
|
|
8
|
+
configJson.callbacks.vertical.onSuccess = onSuccessFunc;
|
|
9
|
+
|
|
10
|
+
if (window.KSTable) {
|
|
11
|
+
console.log("table loaded from cdn");
|
|
12
|
+
|
|
13
|
+
await window.KSTable.initCreate(configJson);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const configForSubTable = await fetch("Index/Configs/AddItem/configForSubTable.json");
|
|
17
|
+
const configForSubTableJson = await configForSubTable.json();
|
|
18
|
+
|
|
19
|
+
const findColumn = configForSubTableJson.columnsConfig.find(element => {
|
|
20
|
+
return element.columnName === "ParentPk";
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
findColumn.defaultValue = inPk.toString();
|
|
24
|
+
configForSubTableJson.endPoints.read += inPk.toString();
|
|
25
|
+
|
|
26
|
+
if (window.KSTable) {
|
|
27
|
+
console.log("table loaded from cdn");
|
|
28
|
+
|
|
29
|
+
await window.KSTable.initTableWithFooter(configForSubTableJson);
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default afterHeadSave;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import afterHeadSave from "./afterHeadSave.js";
|
|
2
|
+
|
|
3
|
+
const onSuccessFunc = async (res) => {
|
|
4
|
+
const fromReponse = await res.json();
|
|
5
|
+
// console.log("fromReponse : ", fromReponse);
|
|
6
|
+
|
|
7
|
+
document.getElementById("htmlId").innerHTML = fromReponse.pk;
|
|
8
|
+
|
|
9
|
+
// window.location.href = `../WithSubTable/index.html?pk=${fromReponse.pk}`;
|
|
10
|
+
await afterHeadSave(fromReponse.pk);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default onSuccessFunc;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// import headerBuild from "/header/v3/initHeader.js";
|
|
2
|
+
|
|
3
|
+
const buildHeader = async () => {
|
|
4
|
+
const fromFetch = await fetch("./Index/headers.json");
|
|
5
|
+
const headerConfig = await fromFetch.json();
|
|
6
|
+
// debugger;
|
|
7
|
+
await window.KSHeader(headerConfig);
|
|
8
|
+
|
|
9
|
+
// await headerBuild(headerConfig);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { buildHeader };
|
package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildHeader } from "./buildHeader.js";
|
|
2
|
+
import { hookAllListeners } from "./AddListeners/start.js";
|
|
3
|
+
|
|
4
|
+
const runAfterDomLoad = () => {
|
|
5
|
+
import("../../../script.js").then(fromPromise => {
|
|
6
|
+
buildHeader().then(fromPromise => {
|
|
7
|
+
hookAllListeners();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { runAfterDomLoad };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uiClasses": {
|
|
3
|
+
"ulClass1": "[&_svg]:size-6"
|
|
4
|
+
},
|
|
5
|
+
"title": {
|
|
6
|
+
"text": "Items",
|
|
7
|
+
"htmlId": "htmlId"
|
|
8
|
+
},
|
|
9
|
+
"items": [
|
|
10
|
+
{
|
|
11
|
+
"text": "ShowAll",
|
|
12
|
+
"id": "ShowAllHtmlId",
|
|
13
|
+
"icon": [],
|
|
14
|
+
"uiClasses": {
|
|
15
|
+
"aClass": "",
|
|
16
|
+
"svgDivClass": "size-10"
|
|
17
|
+
},
|
|
18
|
+
"svgName": "home"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"text": "WithSerial",
|
|
22
|
+
"id": "WithSerialHtmlId",
|
|
23
|
+
"icon": [],
|
|
24
|
+
"uiClasses": {
|
|
25
|
+
"aClass": "",
|
|
26
|
+
"svgDivClass": "size-10"
|
|
27
|
+
},
|
|
28
|
+
"svgName": "serial"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"text": "WithSearch",
|
|
32
|
+
"id": "WithSearchHtmlId",
|
|
33
|
+
"icon": [],
|
|
34
|
+
"uiClasses": {
|
|
35
|
+
"aClass": "",
|
|
36
|
+
"svgDivClass": "size-10"
|
|
37
|
+
},
|
|
38
|
+
"svgName": "search"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"text": "Login",
|
|
42
|
+
"id": "loginHeaderHtmlId",
|
|
43
|
+
"icon": [],
|
|
44
|
+
"uiClasses": {
|
|
45
|
+
"aClass": "",
|
|
46
|
+
"svgDivClass": "size-8"
|
|
47
|
+
},
|
|
48
|
+
"svgName": "home"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|