jclib-ui 1.0.66 → 1.0.67
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/dist/BoxSearch/BoxSearch.d.ts +2 -1
- package/dist/FormConsulta/FormConsulta.d.ts +1 -0
- package/dist/InputPass/InputPass.d.ts +1 -1
- package/dist/InputPass/InputPass.styles.d.ts +1 -1
- package/dist/MainComponents.d.ts +6 -6
- package/dist/ScrollContainer/ScrollContainer.styles.d.ts +1 -1
- package/dist/alerta/Alerta.d.ts +2 -2
- package/dist/alerta/JCAlert.d.ts +2 -1
- package/dist/boxInfo/BoxInfo.styles.d.ts +1 -1
- package/dist/buttonClose/buttonStyled.d.ts +1 -1
- package/dist/buttonTop/ButtonTop.styles.d.ts +1 -1
- package/dist/context/libContext.d.ts +1 -1
- package/dist/formEdit/formEdit.d.ts +1 -0
- package/dist/hooks/createApiConfig.d.ts +1 -0
- package/dist/hooks/useApi.d.ts +3 -2
- package/dist/hooks/useLocalForage.d.ts +1 -0
- package/dist/hooks/useStorage.d.ts +1 -0
- package/dist/index.d.ts +1 -6
- package/dist/inputColor/inputColor.d.ts +1 -2
- package/dist/inputs/CheckBox.d.ts +1 -1
- package/dist/inputs/Formats.d.ts +1 -1
- package/dist/inputs/Input.d.ts +2 -2
- package/dist/inputs/Input.types.d.ts +4 -0
- package/dist/inputs/InputCep.d.ts +5 -3
- package/dist/inputs/inputs.d.ts +3 -6
- package/dist/jclib-ui.es.js +90 -30
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +4 -4
- package/dist/jclib-ui.umd.js.map +1 -1
- package/dist/labelHint/LabelHint.d.ts +1 -0
- package/dist/links/Links.d.ts +1 -0
- package/dist/links/Links.types.d.ts +1 -0
- package/dist/loadingBar/loadingBar.styles.d.ts +1 -1
- package/dist/modalBox/ModalBox.d.ts +2 -1
- package/dist/modalBox/ModalBox.styles.d.ts +1 -1
- package/dist/modalBoxDrag/ModalBoxDrag.styles.d.ts +1 -1
- package/dist/navbar/MenuOption.styles.d.ts +3 -3
- package/dist/navbar/Navbar.d.ts +2 -1
- package/dist/navbar/OpcoesMenu.d.ts +1 -0
- package/dist/navbar/OpcoesMenu.types.d.ts +1 -0
- package/dist/paginacao/Paginacao.d.ts +1 -0
- package/dist/panel/panelHeader.d.ts +1 -1
- package/dist/panelDashboard/PanelDashboard.d.ts +1 -0
- package/dist/panelDashboard/PanelDashboard.styles.d.ts +1 -1
- package/dist/radioGroup/RadioGroup.d.ts +1 -0
- package/dist/table/table.d.ts +1 -0
- package/dist/table/table.styles.d.ts +3 -3
- package/dist/table/table.types.d.ts +1 -0
- package/dist/table/tableUtils.d.ts +1 -0
- package/dist/toggle/Toggle.styles.d.ts +1 -1
- package/dist/update/update.styles.d.ts +1 -1
- package/package.json +29 -30
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FormConsultaProps } from './FormConsulta.types';
|
|
2
|
+
|
|
2
3
|
declare function FormConsulta({ titulo, rotaApi, headersApi, rotaApp, cols, ordens, ordemPadrao, campoChave, placeHolder, }: FormConsultaProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare namespace FormConsulta {
|
|
4
5
|
var defaultProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const InputPasswordContainer: import(
|
|
1
|
+
export const InputPasswordContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/MainComponents.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export const ButtonEditContainer: import(
|
|
1
|
+
export const ButtonEditContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
2
|
export function ButtonEdit({ hint, children, ...rest }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
hint: any;
|
|
5
5
|
children: any;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export const Panel: import(
|
|
8
|
-
export const PanelTitle: import(
|
|
9
|
-
export const PanelBody: import(
|
|
10
|
-
export const Title: import(
|
|
11
|
-
export const CheckBox: import(
|
|
7
|
+
export const Panel: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export const PanelTitle: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export const PanelBody: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export const Title: import('styled-components').StyledComponent<"h3", any, {}, never>;
|
|
11
|
+
export const CheckBox: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export function IconToggleOn({ color }: {
|
|
13
13
|
color: any;
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MainContainer: import(
|
|
1
|
+
export const MainContainer: import('styled-components').StyledComponent<"main", any, {}, never>;
|
package/dist/alerta/Alerta.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Aviso } from './Aviso';
|
|
2
|
+
import { Confirma } from './Confirma';
|
|
1
3
|
export default function Alerta({ onConfirm, text, children }: {
|
|
2
4
|
onConfirm: any;
|
|
3
5
|
text?: string | undefined;
|
|
4
6
|
children: any;
|
|
5
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
import { Aviso } from './Aviso';
|
|
7
|
-
import { Confirma } from './Confirma';
|
|
8
8
|
export { Aviso, Confirma };
|
package/dist/alerta/JCAlert.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Container: import(
|
|
1
|
+
export const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ButtonStyled: import(
|
|
1
|
+
export const ButtonStyled: import('styled-components').StyledComponent<"button", any, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Container: import(
|
|
1
|
+
export const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @returns {any}
|
|
10
10
|
*/
|
|
11
11
|
export function LibProvider({ apiConfig, children, versionApp, useTheme }: {
|
|
12
|
-
apiConfig: import(
|
|
12
|
+
apiConfig: import('../hooks/createApiConfig').GlobalApiConfig;
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
versionApp: string;
|
|
15
15
|
useTheme: boolean;
|
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import axios,
|
|
2
|
-
import { globalApiConfig } from './useApi'
|
|
1
|
+
import { default as axios, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import { globalApiConfig } from './useApi';
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
export type ApiRequestConfig = AxiosRequestConfig & {
|
|
5
6
|
cache?: boolean
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import './styles/styles.colors.scss';
|
|
3
|
-
import './styles/styles.global.scss';
|
|
4
|
-
import './styles/styles.scrollbars.scss';
|
|
5
|
-
import './styles/styles.bootstrap.css';
|
|
6
|
-
import './styles/styles.animations.css';
|
|
1
|
+
|
|
7
2
|
export { default as Alerta, Aviso, Confirma } from './alerta/Alerta';
|
|
8
3
|
export { LibProvider, useLibContext } from './context/libContext';
|
|
9
4
|
export { createApiConfig } from './hooks/createApiConfig';
|
|
@@ -4,4 +4,4 @@ export default function CheckBox({ enabled, onChange, children, ...rest }: {
|
|
|
4
4
|
onChange: any;
|
|
5
5
|
children: any;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export const LabelArea: import(
|
|
7
|
+
export const LabelArea: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/inputs/Formats.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function FormatValor({ value, money, decimalScale, ...rest }: {
|
|
2
|
-
[x: string]: any;
|
|
3
2
|
value: any;
|
|
4
3
|
money?: any;
|
|
5
4
|
decimalScale?: any;
|
|
5
|
+
[x: string]: any;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export namespace FormatValor {
|
|
8
8
|
namespace defaultProps {
|
package/dist/inputs/Input.d.ts
CHANGED
|
@@ -5,12 +5,15 @@ type Variants = {
|
|
|
5
5
|
dados?: any;
|
|
6
6
|
setDados?: (value: any) => void;
|
|
7
7
|
onSearch?: (result: any) => any;
|
|
8
|
+
autoSelect?: boolean;
|
|
8
9
|
} | {
|
|
9
10
|
type: 'percent' | 'quant' | 'real';
|
|
10
11
|
allowNegative?: boolean;
|
|
11
12
|
decimalScale?: number;
|
|
13
|
+
autoSelect?: boolean;
|
|
12
14
|
} | {
|
|
13
15
|
type: 'finder';
|
|
16
|
+
autoSelect?: boolean;
|
|
14
17
|
children: React.ReactNode;
|
|
15
18
|
findTitle?: string;
|
|
16
19
|
findPlaceHolder?: string;
|
|
@@ -21,6 +24,7 @@ type Variants = {
|
|
|
21
24
|
findOnSelect: (keyValue: any, item: any) => void;
|
|
22
25
|
} | {
|
|
23
26
|
type: InputTypes;
|
|
27
|
+
autoSelect?: boolean;
|
|
24
28
|
};
|
|
25
29
|
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & Variants;
|
|
26
30
|
export {};
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* dados?: {}
|
|
5
5
|
* setDados?: (value: any) => void
|
|
6
6
|
* onSearch?: (result) => void
|
|
7
|
+
* [x: string]: any
|
|
7
8
|
* }} props
|
|
8
9
|
* @returns {React.JSX.Element}
|
|
9
10
|
*/
|
|
10
11
|
export default function InputCep({ dados, setDados, onSearch, ...rest }: {
|
|
11
|
-
dados?: {}
|
|
12
|
-
setDados?: (
|
|
13
|
-
onSearch?: (
|
|
12
|
+
dados?: {};
|
|
13
|
+
setDados?: (value: any) => void;
|
|
14
|
+
onSearch?: (result) => void;
|
|
15
|
+
[x: string]: any;
|
|
14
16
|
}): React.JSX.Element;
|
package/dist/inputs/inputs.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { default as InputCep } from './InputCep';
|
|
2
|
+
import { default as InputFone } from './InputFone';
|
|
3
|
+
import { FormatValor, FormatQuant, FormatPercent, FormatData } from './Formats';
|
|
1
4
|
export function InputValor({ name, onChange, onClick, allowNegative, ...rest }: {
|
|
2
5
|
[x: string]: any;
|
|
3
6
|
name: any;
|
|
@@ -42,10 +45,4 @@ export function InputFinder({ title, onFind, children, ...rest }: {
|
|
|
42
45
|
onFind: any;
|
|
43
46
|
children: any;
|
|
44
47
|
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
import InputCep from './InputCep';
|
|
46
|
-
import InputFone from './InputFone';
|
|
47
|
-
import { FormatValor } from './Formats';
|
|
48
|
-
import { FormatQuant } from './Formats';
|
|
49
|
-
import { FormatPercent } from './Formats';
|
|
50
|
-
import { FormatData } from './Formats';
|
|
51
48
|
export { InputCep, InputFone, FormatValor, FormatQuant, FormatPercent, FormatData };
|
package/dist/jclib-ui.es.js
CHANGED
|
@@ -3842,11 +3842,6 @@ function requireReactJsxRuntime_development() {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
function getSourceInfoErrorAddendum(source) {
|
|
3844
3844
|
{
|
|
3845
|
-
if (source !== void 0) {
|
|
3846
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
3847
|
-
var lineNumber = source.lineNumber;
|
|
3848
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
3849
|
-
}
|
|
3850
3845
|
return "";
|
|
3851
3846
|
}
|
|
3852
3847
|
}
|
|
@@ -3963,6 +3958,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3963
3958
|
}
|
|
3964
3959
|
}
|
|
3965
3960
|
}
|
|
3961
|
+
var didWarnAboutKeySpread = {};
|
|
3966
3962
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
3967
3963
|
{
|
|
3968
3964
|
var validType = isValidElementType(type);
|
|
@@ -3971,7 +3967,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3971
3967
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3972
3968
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
3973
3969
|
}
|
|
3974
|
-
var sourceInfo = getSourceInfoErrorAddendum(
|
|
3970
|
+
var sourceInfo = getSourceInfoErrorAddendum();
|
|
3975
3971
|
if (sourceInfo) {
|
|
3976
3972
|
info += sourceInfo;
|
|
3977
3973
|
} else {
|
|
@@ -4013,6 +4009,20 @@ function requireReactJsxRuntime_development() {
|
|
|
4013
4009
|
}
|
|
4014
4010
|
}
|
|
4015
4011
|
}
|
|
4012
|
+
{
|
|
4013
|
+
if (hasOwnProperty.call(props, "key")) {
|
|
4014
|
+
var componentName = getComponentNameFromType(type);
|
|
4015
|
+
var keys = Object.keys(props).filter(function(k2) {
|
|
4016
|
+
return k2 !== "key";
|
|
4017
|
+
});
|
|
4018
|
+
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
4019
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
4020
|
+
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
4021
|
+
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
4022
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4016
4026
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
4017
4027
|
validateFragmentProps(element);
|
|
4018
4028
|
} else {
|
|
@@ -7695,11 +7705,11 @@ function useApi(initialConfig = {}) {
|
|
|
7695
7705
|
}
|
|
7696
7706
|
}
|
|
7697
7707
|
async function callRequest(localConfig) {
|
|
7698
|
-
var _a, _b, _c;
|
|
7708
|
+
var _a, _b, _c, _d, _e2;
|
|
7699
7709
|
let response;
|
|
7700
7710
|
let auth = {
|
|
7701
|
-
username: globalApiConfig.auth.username,
|
|
7702
|
-
password: globalApiConfig.auth.password
|
|
7711
|
+
username: (_a = globalApiConfig.auth) == null ? void 0 : _a.username,
|
|
7712
|
+
password: (_b = globalApiConfig.auth) == null ? void 0 : _b.password
|
|
7703
7713
|
};
|
|
7704
7714
|
initialConfig.headers = { ...initialConfig.headers, ...localConfig == null ? void 0 : localConfig.headers };
|
|
7705
7715
|
if (globalApiConfig.getToken) {
|
|
@@ -7748,6 +7758,7 @@ function useApi(initialConfig = {}) {
|
|
|
7748
7758
|
};
|
|
7749
7759
|
} catch (err) {
|
|
7750
7760
|
if ((err == null ? void 0 : err.code) == "ERR_NETWORK") {
|
|
7761
|
+
console.log("Erro original:", err);
|
|
7751
7762
|
response = {
|
|
7752
7763
|
...initialRequestInfo,
|
|
7753
7764
|
isError: true,
|
|
@@ -7759,8 +7770,8 @@ function useApi(initialConfig = {}) {
|
|
|
7759
7770
|
...initialRequestInfo,
|
|
7760
7771
|
isError: true,
|
|
7761
7772
|
status: err.response.status,
|
|
7762
|
-
message: (
|
|
7763
|
-
code: (
|
|
7773
|
+
message: (_c = err.response.data) == null ? void 0 : _c.error,
|
|
7774
|
+
code: (_d = err.response.data) == null ? void 0 : _d.code
|
|
7764
7775
|
};
|
|
7765
7776
|
switch (err.response.status) {
|
|
7766
7777
|
case 400: {
|
|
@@ -7782,7 +7793,7 @@ function useApi(initialConfig = {}) {
|
|
|
7782
7793
|
break;
|
|
7783
7794
|
}
|
|
7784
7795
|
case 405: {
|
|
7785
|
-
response.message = `Método [${((
|
|
7796
|
+
response.message = `Método [${((_e2 = finalConfig.method) == null ? void 0 : _e2.toUpperCase()) || "GET"}] indisponível!`;
|
|
7786
7797
|
break;
|
|
7787
7798
|
}
|
|
7788
7799
|
}
|
|
@@ -7794,8 +7805,9 @@ function useApi(initialConfig = {}) {
|
|
|
7794
7805
|
};
|
|
7795
7806
|
}
|
|
7796
7807
|
const vmens = `timeout of ${globalApiConfig.timeout}ms exceeded`;
|
|
7797
|
-
if (response.message == vmens || response.message == "Network Error")
|
|
7808
|
+
if (response.message == vmens || response.message == "Network Error") {
|
|
7798
7809
|
response.message = "Sem conexão com o servidor!";
|
|
7810
|
+
}
|
|
7799
7811
|
if (response.isError) {
|
|
7800
7812
|
response.error = response.message;
|
|
7801
7813
|
} else {
|
|
@@ -9387,7 +9399,7 @@ var D, P = function() {
|
|
|
9387
9399
|
t4(e2);
|
|
9388
9400
|
})).then(a2, u2);
|
|
9389
9401
|
}
|
|
9390
|
-
s2((n2 = n2.apply(t2,
|
|
9402
|
+
s2((n2 = n2.apply(t2, [])).next());
|
|
9391
9403
|
});
|
|
9392
9404
|
}, J = function(t2, e) {
|
|
9393
9405
|
var r, n2, o2, i2, a2 = { label: 0, sent: function() {
|
|
@@ -18403,7 +18415,7 @@ var bo = function() {
|
|
|
18403
18415
|
t4(e2);
|
|
18404
18416
|
})).then(a2, u2);
|
|
18405
18417
|
}
|
|
18406
|
-
s2((n2 = n2.apply(t2,
|
|
18418
|
+
s2((n2 = n2.apply(t2, [])).next());
|
|
18407
18419
|
});
|
|
18408
18420
|
}, No = function(t2, e) {
|
|
18409
18421
|
var r, n2, o2, i2, a2 = { label: 0, sent: function() {
|
|
@@ -19918,16 +19930,36 @@ function InputFinder({
|
|
|
19918
19930
|
)
|
|
19919
19931
|
] });
|
|
19920
19932
|
}
|
|
19921
|
-
function Input(
|
|
19933
|
+
function Input({
|
|
19934
|
+
autoSelect,
|
|
19935
|
+
...props
|
|
19936
|
+
}) {
|
|
19937
|
+
function handleClick(e) {
|
|
19938
|
+
if (props.onClick) {
|
|
19939
|
+
props.onClick(e);
|
|
19940
|
+
} else {
|
|
19941
|
+
if (autoSelect) {
|
|
19942
|
+
e.currentTarget.select();
|
|
19943
|
+
}
|
|
19944
|
+
}
|
|
19945
|
+
}
|
|
19922
19946
|
switch (props.type) {
|
|
19923
19947
|
case "cep":
|
|
19924
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCep, { ...props });
|
|
19948
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCep, { onClick: handleClick, ...props });
|
|
19925
19949
|
case "cpf":
|
|
19926
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCpf, { ...props });
|
|
19950
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCpf, { onClick: handleClick, ...props });
|
|
19927
19951
|
case "cnpj":
|
|
19928
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCnpj, { ...props });
|
|
19952
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCnpj, { onClick: handleClick, ...props });
|
|
19929
19953
|
case "codigo":
|
|
19930
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19954
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19955
|
+
InputCodigo,
|
|
19956
|
+
{
|
|
19957
|
+
name: props.name,
|
|
19958
|
+
onChange: props.onChange,
|
|
19959
|
+
onClick: handleClick,
|
|
19960
|
+
...props
|
|
19961
|
+
}
|
|
19962
|
+
);
|
|
19931
19963
|
case "fone":
|
|
19932
19964
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19933
19965
|
InputFone,
|
|
@@ -19935,22 +19967,31 @@ function Input(props) {
|
|
|
19935
19967
|
name: props.name,
|
|
19936
19968
|
onChange: props.onChange,
|
|
19937
19969
|
value: props.value,
|
|
19970
|
+
onClick: handleClick,
|
|
19938
19971
|
...props
|
|
19939
19972
|
}
|
|
19940
19973
|
);
|
|
19941
19974
|
case "uf":
|
|
19942
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputEstado, { ...props });
|
|
19975
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputEstado, { onClick: handleClick, ...props });
|
|
19943
19976
|
case "hora":
|
|
19944
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputHora, { ...props });
|
|
19977
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputHora, { onClick: handleClick, ...props });
|
|
19945
19978
|
case "percent":
|
|
19946
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19979
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19980
|
+
InputPercent,
|
|
19981
|
+
{
|
|
19982
|
+
name: props.name,
|
|
19983
|
+
onChange: props.onChange,
|
|
19984
|
+
onClick: handleClick,
|
|
19985
|
+
...props
|
|
19986
|
+
}
|
|
19987
|
+
);
|
|
19947
19988
|
case "quant":
|
|
19948
19989
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19949
19990
|
InputQuant,
|
|
19950
19991
|
{
|
|
19951
19992
|
name: props.name,
|
|
19952
19993
|
onChange: props.onChange,
|
|
19953
|
-
onClick:
|
|
19994
|
+
onClick: handleClick,
|
|
19954
19995
|
...props
|
|
19955
19996
|
}
|
|
19956
19997
|
);
|
|
@@ -19960,14 +20001,14 @@ function Input(props) {
|
|
|
19960
20001
|
{
|
|
19961
20002
|
name: props.name,
|
|
19962
20003
|
onChange: props.onChange,
|
|
19963
|
-
onClick:
|
|
20004
|
+
onClick: handleClick,
|
|
19964
20005
|
...props
|
|
19965
20006
|
}
|
|
19966
20007
|
);
|
|
19967
20008
|
case "finder":
|
|
19968
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputFinder, { ...props });
|
|
20009
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputFinder, { onClick: handleClick, ...props });
|
|
19969
20010
|
default:
|
|
19970
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "form-control", ...props });
|
|
20011
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "form-control", onClick: handleClick, ...props });
|
|
19971
20012
|
}
|
|
19972
20013
|
}
|
|
19973
20014
|
const Container$3 = styled.div`
|
|
@@ -20031,15 +20072,32 @@ const InputPasswordContainer = styled.div`
|
|
|
20031
20072
|
}
|
|
20032
20073
|
}
|
|
20033
20074
|
`;
|
|
20034
|
-
function InputPassword({ disabled, ...rest }) {
|
|
20075
|
+
function InputPassword({ disabled, autoSelect, ...rest }) {
|
|
20035
20076
|
const [showPass, setShowPass] = useState(false);
|
|
20036
20077
|
const handleClickEye = () => {
|
|
20037
20078
|
if (!disabled) {
|
|
20038
20079
|
setShowPass(!showPass);
|
|
20039
20080
|
}
|
|
20040
20081
|
};
|
|
20082
|
+
function handleClick(e) {
|
|
20083
|
+
if (rest.onClick) {
|
|
20084
|
+
rest.onClick(e);
|
|
20085
|
+
} else {
|
|
20086
|
+
if (autoSelect) {
|
|
20087
|
+
e.currentTarget.select();
|
|
20088
|
+
}
|
|
20089
|
+
}
|
|
20090
|
+
}
|
|
20041
20091
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(InputPasswordContainer, { disabled, children: [
|
|
20042
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20092
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20093
|
+
"input",
|
|
20094
|
+
{
|
|
20095
|
+
type: showPass ? "text" : "password",
|
|
20096
|
+
disabled,
|
|
20097
|
+
onClick: handleClick,
|
|
20098
|
+
...rest
|
|
20099
|
+
}
|
|
20100
|
+
),
|
|
20043
20101
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20044
20102
|
"i",
|
|
20045
20103
|
{
|
|
@@ -20137,6 +20195,9 @@ function ModalBoxDrag({
|
|
|
20137
20195
|
return null;
|
|
20138
20196
|
}
|
|
20139
20197
|
function startDrag(e) {
|
|
20198
|
+
if (isMobile()) {
|
|
20199
|
+
return;
|
|
20200
|
+
}
|
|
20140
20201
|
controls.start(e);
|
|
20141
20202
|
}
|
|
20142
20203
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$2, { maxWidth, ref: modalRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -20536,7 +20597,6 @@ const Container = styled.div`
|
|
|
20536
20597
|
function CheckUpdates() {
|
|
20537
20598
|
const showRef = useRef();
|
|
20538
20599
|
function checkUpdate() {
|
|
20539
|
-
console.info("App:", window.location.origin);
|
|
20540
20600
|
if ("serviceWorker" in navigator && window.location.origin.startsWith("http")) {
|
|
20541
20601
|
console.log("Procurando atualizações...");
|
|
20542
20602
|
navigator.serviceWorker.getRegistration().then((registration) => {
|