Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-class-properties",
"@babel/plugin-syntax-jsx",
"css-modules-transform"
]
Expand Down
894 changes: 434 additions & 460 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dev:
npm install --dev

clean:
npm --rm
npm cache clean --force && rm -rf node_modules

fresh: clean install

Expand Down
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
"@babel/preset-typescript",
],
plugins: [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-class-properties",
"@babel/plugin-syntax-jsx",
"css-modules-transform",
],
Expand Down
680 changes: 369 additions & 311 deletions dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

680 changes: 369 additions & 311 deletions dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

60 changes: 33 additions & 27 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,16 @@ declare var blob_files_utilities: Readonly<{
declare var class_name_constants: Readonly<{
__proto__: null;
ALERT_BASE_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass";
ALERT_DANGER_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-red-800 bg-red-100 border-red-200 alertDangerClass";
ALERT_INFO_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-cyan-800 bg-cyan-100 border-cyan-200 alertInfoClass";
ALERT_SUCCESS_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-green-800 bg-green-100 border-green-200 alertSuccessClass";
ALERT_WARNING_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-yellow-800 bg-yellow-100 border-yellow-200 alertWarningClass";
ALERT_DANGER_CLASS: string;
ALERT_INFO_CLASS: string;
ALERT_SUCCESS_CLASS: string;
ALERT_WARNING_CLASS: string;
APP_FOOTER_CONTAINER_CLASS: "p-1 text-white text-center appFooterContainerClass";
APP_FORMPAGE_CHILD_COMPONENTS_TOP_DIV_CLASS: "mt-6 appFormPageChildComponentsTopDivClass";
APP_FORMPAGE_FIELD_BASE_CLASS: "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 bg-white formControlClass border border-gray-300 p-2 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 appFormPageFieldBaseClass";
APP_FORMPAGE_FIELD_CLASS: "flex flex-col mb-4 formGroupClass appFormPageFieldClass";
APP_FORMPAGE_FIELD_GOOD_CLASS: "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 bg-white formControlClass border border-gray-300 p-2 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 appFormPageFieldBaseClass appFormPageFieldGoodClass";
APP_FORMPAGE_FIELD_INVALID_CLASS: "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 bg-white formControlClass border border-gray-300 p-2 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 appFormPageFieldBaseClass is-invalid appFormPageFieldInvalidClass";
APP_FORMPAGE_FIELD_BASE_CLASS: string;
APP_FORMPAGE_FIELD_CLASS: string;
APP_FORMPAGE_FIELD_GOOD_CLASS: string;
APP_FORMPAGE_FIELD_INVALID_CLASS: string;
APP_FORMPAGE_FORM_BUTTON_BAR_CLASS: "flex align-middle space-x-4 appFormPageFormButtonBarClass";
APP_FORMPAGE_LABEL_CLASS: "font-medium appFormPageLabelClass";
APP_FORMPAGE_LABEL_REQUIRED_CLASS: "font-medium text-red-700 appFormPageLabelRequiredClass";
Expand All @@ -226,16 +226,16 @@ declare var class_name_constants: Readonly<{
APP_LEVEL2_DIV_CLASS: "overflow-x-auto appLevel2DivClass";
APP_LISTING_SEARCH_BOX_INPUT_CLASS: "p-2 rounded-sm border border-gray-300 bg-white w-40 text-sm appListingSearchBoxInputClass";
APP_LISTING_SEARCH_BOX_LABEL_CLASS: "mr-2 text-sm appListingSearchBoxLabelClass";
APP_LISTING_SEARCH_BOX_STOP_BUTTON_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass mr-2 text-xs appListingSearchBoxStopButtonClass";
APP_LISTING_SEARCH_BOX_SUBMIT_BUTTON_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass ml-2 mr-2 text-xs appListingSearchBoxSubmitButtonClass";
APP_LISTING_SEARCH_BOX_STOP_BUTTON_CLASS: string;
APP_LISTING_SEARCH_BOX_SUBMIT_BUTTON_CLASS: string;
APP_LISTING_SEARCH_BOX_TOP_DIV_CLASS: "flex items-center space-x-2 appListingSearchBoxTopDivClass";
APP_LISTING_TABLE_BODY_TBODY_CLASS: "appListingTableBodyTbodyClass";
APP_LISTING_TABLE_BODY_TD_ACTIONS_EVEN_CLASS: "p-2 appListingTableBodyTdBaseEvenClass bg-opacity-80 whitespace-nowrap text-sm space-x-2 appListingTableBodyTdActionsEvenClass";
APP_LISTING_TABLE_BODY_TD_ACTIONS_ODD_CLASS: "p-2 appListingTableBodyTdBaseOddClass bg-opacity-80 whitespace-nowrap text-sm space-x-2 appListingTableBodyTdActionsOddClass";
APP_LISTING_TABLE_BODY_TD_ACTIONS_EVEN_CLASS: string;
APP_LISTING_TABLE_BODY_TD_ACTIONS_ODD_CLASS: string;
APP_LISTING_TABLE_BODY_TD_BASE_EVEN_CLASS: "p-2 appListingTableBodyTdBaseEvenClass";
APP_LISTING_TABLE_BODY_TD_BASE_ODD_CLASS: "p-2 appListingTableBodyTdBaseOddClass";
APP_LISTING_TABLE_BODY_TD_EVEN_CLASS: "p-2 appListingTableBodyTdBaseEvenClass break-words appListingTableBodyTdEvenClass";
APP_LISTING_TABLE_BODY_TD_ODD_CLASS: "p-2 appListingTableBodyTdBaseOddClass break-words appListingTableBodyTdOddClass";
APP_LISTING_TABLE_BODY_TD_EVEN_CLASS: string;
APP_LISTING_TABLE_BODY_TD_ODD_CLASS: string;
APP_LISTING_TABLE_BODY_TR_ACTIONS_EVEN_CLASS: "appListingTableBodyTrActionsEvenClass";
APP_LISTING_TABLE_BODY_TR_ACTIONS_ODD_CLASS: "appListingTableBodyTrActionsOddClass";
APP_LISTING_TABLE_BODY_TR_EVEN_CLASS: "hover:bg-opacity-80 appListingTableBodyTrEvenClass";
Expand All @@ -260,12 +260,12 @@ declare var class_name_constants: Readonly<{
APP_SIDE_MENU_BG_COLOR_CLASS: "bg-white dark:bg-gray-800 appSideMenuBgColorClass";
APP_TITLE_H1_CLASS: "text-xl font-bold mb-4 appTitleH1Class";
APP_TITLE_RECYCLE_BUTTON_CLASS: "pl-2 align-bottom appTitleRecycleButtonClass";
APP_TOP_DIV_CLASS: "mt-2 mb-2 ml-2 mr-2 p-2 rounded-lg appGeneralMarginsClass rounded-lg appTopDivClass";
APP_TOP_DIV_CLASS: string;
BUTTON_COMPOSED_LABEL_CLASS: "flex items-center buttonComposedLabelClass";
BUTTON_LISTING_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass";
BUTTON_LISTING_DISABLED_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass opacity-50 buttonListingDisabledClass";
BUTTON_LISTING_NEW_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass buttonListingNewClass";
BUTTON_LISTING_REFRESH_CLASS: "bg-blue-500 text-white p-2 rounded-sm text-sm buttonListingClass text-xs buttonListingRefreshClass";
BUTTON_LISTING_DISABLED_CLASS: string;
BUTTON_LISTING_NEW_CLASS: string;
BUTTON_LISTING_REFRESH_CLASS: string;
BUTTON_PRIMARY_CLASS: "bg-blue-500 text-white font-medium py-2 px-4 rounded-md hover:bg-blue-600 focus:outline-hidden focus:ring-2 focus:ring-blue-500 buttonPrimaryClass";
BUTTON_SECONDARY_CLASS: "bg-gray-200 text-gray-700 font-medium py-2 px-4 rounded-md hover:bg-gray-400 focus:outline-hidden focus:ring-2 focus:ring-gray-500 buttonSecondaryClass";
CENTERED_BOX_CONTAINER_DIV_1_CLASS: "z-50 overflow-auto centeredBoxContainerDiv1Class";
Expand All @@ -276,18 +276,18 @@ declare var class_name_constants: Readonly<{
DARK_MODE_BUTTON_SVG_CLASS: "w-6 h-6 darkModeButtonSvgClass";
DARK_MODE_BUTTON_TOP_DIV_CLASS: "mt-1 darkModeButtonTopDivClass";
DISABLE_FIELD_BACKGROUND_COLOR_CLASS: "bg-gray-200 disableFieldBackgroundColorClass";
ERROR_MSG_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-red-800 bg-red-100 border-red-200 alertDangerClass mt-4 p-2 rounded-md errorMsgClass";
ERROR_MSG_CLASS: string;
FORM_CONTROL_CLASS: "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 bg-white formControlClass";
FORM_GROUP_CLASS: "mb-4 formGroupClass";
GRAY_BOX_MSG_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-black bg-gray-200 mt-4 p-2 rounded-md grayBoxMsgClass";
GRAY_BOX_MSG_CLASS: string;
HIDDEN_CLASS: "hidden hiddenClass";
HORIZONTALLY_CENTERED_CLASS: "flex flex-col items-center horizontallyCenteredClass";
INFO_MSG_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-cyan-800 bg-cyan-100 border-cyan-200 alertInfoClass mt-4 p-2 rounded-md infoMsgClass";
INFO_MSG_CLASS: string;
INLINE_CLASS: "inline inlineClass";
INPUT_FLEXIBLE_CLASS: "pl-1 pb-1 pt-1 pr-1 block w-full border border-gray-400 focus:outline-hidden focus:ring-2 focus:ring-blue-500 rounded-md resize-none overflow-hidden inputFlexibleClass";
INVALID_FEEDBACK_CLASS: "text-red-800 text-sm mt-1 invalidFeedbackClass";
IS_INVALID_CLASS: "border-red-500 isInvalidClass";
LOGIN_BUTTON_IN_APP_COMPONENT_CLASS: "flex flex-col items-center horizontallyCenteredClass p-4 loginButtonInAppComponentClass";
LOGIN_BUTTON_IN_APP_COMPONENT_CLASS: string;
LOGIN_PAGE_APP_LOGO_CLASS: "mx-auto my-0 loginPageAppLogoClass";
MAIN_CONTAINER_FOR_SIDE_MENU_CLASS: "flex min-h-screen mainContainerForSideMenuClass";
MAIN_CONTAINER_FOR_TOP_MENU_CLASS: "flex flex-col min-h-screen mainContainerForTopMenuClass";
Expand All @@ -301,8 +301,8 @@ declare var class_name_constants: Readonly<{
MODALIB_BUTTON_BASESTYLE_NOT_WIDE_CLASS: "w-full flex justify-center modalibButtonBaseStyleNotWideClass";
MODALIB_BUTTON_BASESTYLE_WIDE_CLASS: "flex-1 modalibButtonBaseStyleWideClass";
MODALIB_BUTTON_DANGER_CLASS: "bg-red-500 hover:bg-red-600 text-white focus:ring-red-400 modalibButtonDangerClass";
MODALIB_BUTTON_PRIMARY_CLASS: "bg-blue-500 text-white font-medium py-2 px-4 rounded-md hover:bg-blue-600 focus:outline-hidden focus:ring-2 focus:ring-blue-500 buttonPrimaryClass modalibButtonPrimaryClass";
MODALIB_BUTTON_SECONDARY_CLASS: "bg-gray-200 text-gray-700 font-medium py-2 px-4 rounded-md hover:bg-gray-400 focus:outline-hidden focus:ring-2 focus:ring-gray-500 buttonSecondaryClass modalibButtonSecondaryClass";
MODALIB_BUTTON_PRIMARY_CLASS: string;
MODALIB_BUTTON_SECONDARY_CLASS: string;
MODALIB_BUTTON_SUCCESS_CLASS: "bg-green-500 hover:bg-green-600 text-white focus:ring-green-400 modalibButtonSuccessClass";
MODALIB_MODAL_BODY_CLASS: "text-center mb-6 max-h-80 overflow-auto modalibModalBodyClass";
MODALIB_MODAL_DIV_1_CLASS: "z-50 fixed inset-0 1-bg-black 1-bg-opacity-50 flex items-center justify-center p-4 modalibModalDiv1Class";
Expand Down Expand Up @@ -380,13 +380,13 @@ declare var class_name_constants: Readonly<{
SHOW_HIDE_PAGE_ANIMATION_DISABLED_CLASS: "ml-3 mr-3 hidden showHidePageAnimationDisabledClass";
SHOW_HIDE_PAGE_ANIMATION_ENABLED_CLASS: "ml-3 mr-3 showHidePageAnimationEnabledClass";
STROKE_WHITE_ICON_CLASS: "stroke-white";
SUCCESS_MSG_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-green-800 bg-green-100 border-green-200 alertSuccessClass mt-4 p-2 rounded-md successMsgClass";
SUCCESS_MSG_CLASS: string;
SUGGESTION_DROPDOWN_CLASS: "align-middle flex";
TOP0_Z50_CLASS: "top-0 z-50 top0z50Class";
VERTICALLY_CENTERED_CLASS: "flex items-center justify-center verticallyCenteredClass";
VERTICAL_SLIDER_ICON_CLASS: "h-8 w-1.5 rounded-full bg-slate-400";
VISIBLE_CLASS: "visible visibleClass";
WARNING_MSG_CLASS: "1-relative p-3 border border-transparent rounded-sm alertBaseClass text-yellow-800 bg-yellow-100 border-yellow-200 alertWarningClass mt-4 p-2 rounded-md warningMsgClass";
WARNING_MSG_CLASS: string;
defaultTheme: {
light: {
primary: string;
Expand Down Expand Up @@ -783,6 +783,13 @@ declare function authHeader(): {
'x-access-tokens'?: undefined;
Authorization?: undefined;
};
declare function login(username: any, password: any): Promise<{
id: any;
firstName: any;
pref_side_menu: any;
pref_dark_mode: any;
}>;
declare function logout(...args: any[]): void;
declare class dbApiService {
constructor(props: any);
props: any;
Expand Down Expand Up @@ -814,7 +821,6 @@ declare function getPrefix(...args: any[]): string;
declare function console_debug_log(debug_message: any, ...args: any[]): void;
declare function get_debug_flag(): any;

declare function logout(...args: any[]): void;
declare function IsJsonString(str: any): boolean;
declare function handleFetchError(error: any): Promise<never>;
declare function handleResponse(response: any): any;
Expand Down
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
testEnvironment: "jsdom",
testEnvironmentOptions: { url: "http://localhost:3000/" },
setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
};
Loading