phx-react 1.3.218 → 1.3.219

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.
@@ -436,7 +436,7 @@ var PHXMainWrap = function (_a) {
436
436
  : 'text-gray-400 hover:bg-gray-200', 'mb-2 inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg'), href: item.path, onClick: function () { return handleClicked(item.path); } },
437
437
  react_2["default"].createElement("span", { className: 'sr-only' }, item.name),
438
438
  react_2["default"].createElement("span", { className: 'group relative cursor-pointer p-4 hover:fixed hover:z-10 hover:overflow-visible focus-visible:outline-none' },
439
- react_2["default"].createElement(react_fontawesome_1.FontAwesomeIcon, { className: 'h-4 w-4', icon: item.image }),
439
+ react_2["default"].createElement(react_fontawesome_1.FontAwesomeIcon, { className: 'h-5 w-5', icon: item.image }),
440
440
  react_2["default"].createElement("span", { className: 'invisible absolute left-full top-1/2 z-10 ml-[-1em] w-32 -translate-y-1/2 rounded bg-white p-2 text-xs font-medium text-black opacity-0 shadow-2xl drop-shadow-2xl transition-all group-hover:visible group-hover:block group-hover:opacity-100', role: 'tooltip' }, item.name)))))); }))))))),
441
441
  !hiddenLeftMenu && (react_2["default"].createElement(react_1.Transition, { as: react_2.Fragment, enter: 'transition ease-in-out duration-300 transform', enterFrom: '-translate-x-full', enterTo: 'translate-x-0', leave: 'transition ease-in-out duration-300 transform', leaveFrom: 'translate-x-0', leaveTo: '-translate-x-full', show: openSubMenu },
442
442
  react_2["default"].createElement("aside", { className: 'z-9 fixed ml-[3.438rem] hidden h-full bg-[#ebebeb] lg:block lg:flex-shrink-0' },
@@ -447,7 +447,7 @@ var PHXMainWrap = function (_a) {
447
447
  react_2["default"].createElement("button", { className: 'inline-flex items-center rounded-lg border-gray-300 bg-transparent mr-1 px-2 py-1 text-xs font-medium text-gray-700 hover:bg-gray-200 active:bg-gray-300 active:pb-[0.2rem] active:pt-[0.3rem] active:shadow-[0rem_0.125rem_0.1rem_0rem_#0004_inset]', onClick: function () { return handleBackMenu(); }, type: 'button' },
448
448
  react_2["default"].createElement(solid_1.ArrowLeftIcon, { className: 'h-5 w-5' })),
449
449
  react_2["default"].createElement("p", { className: 'font-medium text-sm text-slate-600' }, campaignName))),
450
- react_2["default"].createElement("div", { className: 'flex-1 overflow-y-auto pt-2' }, subNavigation.map(function (item) { return (react_2["default"].createElement(react_2["default"].Fragment, null, (roleCode === null || roleCode === void 0 ? void 0 : roleCode.length) > 0 ? (react_2["default"].createElement(react_2["default"].Fragment, null, enablePer(item.code, perCode) && (react_2["default"].createElement(react_2["default"].Fragment, null,
450
+ react_2["default"].createElement("div", { className: 'flex-1 overflow-y-auto pt-3' }, subNavigation.map(function (item) { return (react_2["default"].createElement(react_2["default"].Fragment, null, (roleCode === null || roleCode === void 0 ? void 0 : roleCode.length) > 0 ? (react_2["default"].createElement(react_2["default"].Fragment, null, enablePer(item.code, perCode) && (react_2["default"].createElement(react_2["default"].Fragment, null,
451
451
  react_2["default"].createElement("p", { key: item === null || item === void 0 ? void 0 : item.name, "aria-current": (item === null || item === void 0 ? void 0 : item.current) ? 'page' : undefined, className: classNames((item === null || item === void 0 ? void 0 : item.current)
452
452
  ? 'rounded-lg bg-white'
453
453
  : 'hover:rounded-lg hover:bg-white hover:bg-opacity-50', 'mx-1 flex cursor-pointer border-slate-200 p-2'), onClick: function () { return subNavigationTriggerClicked(item); } }, !loadingMenu ? (react_2["default"].createElement("div", { className: 'ml-3 text-[0.86rem] flex items-center' },
@@ -4,7 +4,7 @@ exports.getOTP = exports.insertOTP = exports.updatePassword = exports.verifyEmai
4
4
  var tslib_1 = require("tslib");
5
5
  var client_1 = require("@apollo/client");
6
6
  exports.getUserInfo = (0, client_1.gql)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"])));
7
- exports.getUserInfoPn28 = (0, client_1.gql)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n auth_users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n username\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n auth_users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n username\n password\n }\n }\n"])));
7
+ exports.getUserInfoPn28 = (0, client_1.gql)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"])));
8
8
  exports.verifyEmail = (0, client_1.gql)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"], ["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"])));
9
9
  exports.updatePassword = (0, client_1.gql)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"], ["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"])));
10
10
  exports.insertOTP = (0, client_1.gql)(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"], ["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"])));
@@ -1 +1 @@
1
- {"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,khBAAA,scAuB7B,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,kTAAA,sOAQjC,KAAA;AAEY,QAAA,WAAW,OAAG,YAAG,0MAAA,8HAO7B,KAAA;AAEY,QAAA,cAAc,OAAG,YAAG,mQAAA,uLAOhC,KAAA;AAEY,QAAA,SAAS,OAAG,YAAG,+XAAA,mTAU3B,KAAA;AAEY,QAAA,MAAM,OAAG,YAAG,gPAAA,oKAQxB,KAAA"}
1
+ {"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,khBAAA,scAuB7B,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,0SAAA,8NAQjC,KAAA;AAEY,QAAA,WAAW,OAAG,YAAG,0MAAA,8HAO7B,KAAA;AAEY,QAAA,cAAc,OAAG,YAAG,mQAAA,uLAOhC,KAAA;AAEY,QAAA,SAAS,OAAG,YAAG,+XAAA,mTAU3B,KAAA;AAEY,QAAA,MAAM,OAAG,YAAG,gPAAA,oKAQxB,KAAA"}
@@ -433,7 +433,7 @@ export var PHXMainWrap = function (_a) {
433
433
  : 'text-gray-400 hover:bg-gray-200', 'mb-2 inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg'), href: item.path, onClick: function () { return handleClicked(item.path); } },
434
434
  React.createElement("span", { className: 'sr-only' }, item.name),
435
435
  React.createElement("span", { className: 'group relative cursor-pointer p-4 hover:fixed hover:z-10 hover:overflow-visible focus-visible:outline-none' },
436
- React.createElement(FontAwesomeIcon, { className: 'h-4 w-4', icon: item.image }),
436
+ React.createElement(FontAwesomeIcon, { className: 'h-5 w-5', icon: item.image }),
437
437
  React.createElement("span", { className: 'invisible absolute left-full top-1/2 z-10 ml-[-1em] w-32 -translate-y-1/2 rounded bg-white p-2 text-xs font-medium text-black opacity-0 shadow-2xl drop-shadow-2xl transition-all group-hover:visible group-hover:block group-hover:opacity-100', role: 'tooltip' }, item.name)))))); }))))))),
438
438
  !hiddenLeftMenu && (React.createElement(Transition, { as: Fragment, enter: 'transition ease-in-out duration-300 transform', enterFrom: '-translate-x-full', enterTo: 'translate-x-0', leave: 'transition ease-in-out duration-300 transform', leaveFrom: 'translate-x-0', leaveTo: '-translate-x-full', show: openSubMenu },
439
439
  React.createElement("aside", { className: 'z-9 fixed ml-[3.438rem] hidden h-full bg-[#ebebeb] lg:block lg:flex-shrink-0' },
@@ -444,7 +444,7 @@ export var PHXMainWrap = function (_a) {
444
444
  React.createElement("button", { className: 'inline-flex items-center rounded-lg border-gray-300 bg-transparent mr-1 px-2 py-1 text-xs font-medium text-gray-700 hover:bg-gray-200 active:bg-gray-300 active:pb-[0.2rem] active:pt-[0.3rem] active:shadow-[0rem_0.125rem_0.1rem_0rem_#0004_inset]', onClick: function () { return handleBackMenu(); }, type: 'button' },
445
445
  React.createElement(ArrowLeftIcon, { className: 'h-5 w-5' })),
446
446
  React.createElement("p", { className: 'font-medium text-sm text-slate-600' }, campaignName))),
447
- React.createElement("div", { className: 'flex-1 overflow-y-auto pt-2' }, subNavigation.map(function (item) { return (React.createElement(React.Fragment, null, (roleCode === null || roleCode === void 0 ? void 0 : roleCode.length) > 0 ? (React.createElement(React.Fragment, null, enablePer(item.code, perCode) && (React.createElement(React.Fragment, null,
447
+ React.createElement("div", { className: 'flex-1 overflow-y-auto pt-3' }, subNavigation.map(function (item) { return (React.createElement(React.Fragment, null, (roleCode === null || roleCode === void 0 ? void 0 : roleCode.length) > 0 ? (React.createElement(React.Fragment, null, enablePer(item.code, perCode) && (React.createElement(React.Fragment, null,
448
448
  React.createElement("p", { key: item === null || item === void 0 ? void 0 : item.name, "aria-current": (item === null || item === void 0 ? void 0 : item.current) ? 'page' : undefined, className: classNames((item === null || item === void 0 ? void 0 : item.current)
449
449
  ? 'rounded-lg bg-white'
450
450
  : 'hover:rounded-lg hover:bg-white hover:bg-opacity-50', 'mx-1 flex cursor-pointer border-slate-200 p-2'), onClick: function () { return subNavigationTriggerClicked(item); } }, !loadingMenu ? (React.createElement("div", { className: 'ml-3 text-[0.86rem] flex items-center' },
@@ -1,7 +1,7 @@
1
1
  import { __makeTemplateObject } from "tslib";
2
2
  import { gql } from '@apollo/client';
3
3
  export var getUserInfo = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n id\n email\n phone_number\n full_name\n school_id\n school {\n group_id\n mail\n id\n phone\n name\n }\n user_roles(where: { is_active: { _eq: true } }) {\n role_id\n role {\n role_code\n }\n }\n }\n }\n"])));
4
- export var getUserInfoPn28 = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n auth_users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n username\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n auth_users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n username\n password\n }\n }\n"])));
4
+ export var getUserInfoPn28 = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($email: String, $password: String) {\n users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"], ["\n query MyQuery($email: String, $password: String) {\n users(where: { username: { _eq: $email }, password: { _eq: $password }, deleted_at: { _is_null: true } }) {\n id\n email\n password\n }\n }\n"])));
5
5
  export var verifyEmail = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"], ["\n query VerityEmail($email: String) {\n users(where: { email: { _eq: $email } }) {\n id\n email\n }\n }\n"])));
6
6
  export var updatePassword = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"], ["\n mutation UpdatePassword($id: Int!, $password: String) {\n update_users_by_pk(_set: { password: $password }, pk_columns: { id: $id }) {\n id\n password\n }\n }\n"])));
7
7
  export var insertOTP = gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"], ["\n mutation InsertOTP($users_id: Int, $otp_code: Int, $expiration_time: timestamptz) {\n insert_otp_verify(objects: { users_id: $users_id, otp_code: $otp_code, expiration_time: $expiration_time }) {\n returning {\n otp_code\n users_id\n expiration_time\n }\n }\n }\n"])));
@@ -1 +1 @@
1
- {"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,ygBAAA,scAuB7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,ySAAA,sOAQjC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,iMAAA,8HAO7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,GAAG,0PAAA,uLAOhC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,SAAS,GAAG,GAAG,sXAAA,mTAU3B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,MAAM,GAAG,GAAG,uOAAA,oKAQxB,IAAA,CAAA"}
1
+ {"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,ygBAAA,scAuB7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,iSAAA,8NAQjC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,iMAAA,8HAO7B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,GAAG,0PAAA,uLAOhC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,SAAS,GAAG,GAAG,sXAAA,mTAU3B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,MAAM,GAAG,GAAG,uOAAA,oKAQxB,IAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.218",
3
+ "version": "1.3.219",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",