jclib-ui 1.0.65 → 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 +7 -8
- package/dist/jclib-ui.es.js +130 -31
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +5 -5
- 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,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as InputCep } from './InputCep';
|
|
2
|
+
import { default as InputFone } from './InputFone';
|
|
3
|
+
import { FormatValor, FormatQuant, FormatPercent, FormatData } from './Formats';
|
|
4
|
+
export function InputValor({ name, onChange, onClick, allowNegative, ...rest }: {
|
|
2
5
|
[x: string]: any;
|
|
3
6
|
name: any;
|
|
4
7
|
onChange: any;
|
|
8
|
+
onClick: any;
|
|
5
9
|
allowNegative?: boolean | undefined;
|
|
6
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export function InputQuant({ name, onChange, allowNegative, decimalScale, ...rest }: {
|
|
11
|
+
export function InputQuant({ name, onChange, onClick, allowNegative, decimalScale, ...rest }: {
|
|
8
12
|
[x: string]: any;
|
|
9
13
|
name: any;
|
|
10
14
|
onChange: any;
|
|
15
|
+
onClick: any;
|
|
11
16
|
allowNegative?: boolean | undefined;
|
|
12
17
|
decimalScale?: number | undefined;
|
|
13
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -40,10 +45,4 @@ export function InputFinder({ title, onFind, children, ...rest }: {
|
|
|
40
45
|
onFind: any;
|
|
41
46
|
children: any;
|
|
42
47
|
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
import InputCep from './InputCep';
|
|
44
|
-
import InputFone from './InputFone';
|
|
45
|
-
import { FormatValor } from './Formats';
|
|
46
|
-
import { FormatQuant } from './Formats';
|
|
47
|
-
import { FormatPercent } from './Formats';
|
|
48
|
-
import { FormatData } from './Formats';
|
|
49
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() {
|
|
@@ -19561,7 +19573,20 @@ function handleChangeLocal(values, name, onChange) {
|
|
|
19561
19573
|
onChange(newEvent);
|
|
19562
19574
|
}
|
|
19563
19575
|
}
|
|
19564
|
-
const InputValor = ({
|
|
19576
|
+
const InputValor = ({
|
|
19577
|
+
name,
|
|
19578
|
+
onChange,
|
|
19579
|
+
onClick,
|
|
19580
|
+
allowNegative = false,
|
|
19581
|
+
...rest
|
|
19582
|
+
}) => {
|
|
19583
|
+
function handleClick(e) {
|
|
19584
|
+
if (onClick) {
|
|
19585
|
+
onClick(e);
|
|
19586
|
+
} else {
|
|
19587
|
+
e.target.select();
|
|
19588
|
+
}
|
|
19589
|
+
}
|
|
19565
19590
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19566
19591
|
NumberFormat,
|
|
19567
19592
|
{
|
|
@@ -19573,6 +19598,7 @@ const InputValor = ({ name, onChange, allowNegative = false, ...rest }) => {
|
|
|
19573
19598
|
className: "form-control",
|
|
19574
19599
|
allowNegative,
|
|
19575
19600
|
onValueChange: (values) => handleChangeLocal(values, name, onChange),
|
|
19601
|
+
onClick: handleClick,
|
|
19576
19602
|
...rest
|
|
19577
19603
|
}
|
|
19578
19604
|
);
|
|
@@ -19580,10 +19606,18 @@ const InputValor = ({ name, onChange, allowNegative = false, ...rest }) => {
|
|
|
19580
19606
|
const InputQuant = ({
|
|
19581
19607
|
name,
|
|
19582
19608
|
onChange,
|
|
19609
|
+
onClick,
|
|
19583
19610
|
allowNegative = true,
|
|
19584
19611
|
decimalScale = 2,
|
|
19585
19612
|
...rest
|
|
19586
19613
|
}) => {
|
|
19614
|
+
function handleClick(e) {
|
|
19615
|
+
if (onClick) {
|
|
19616
|
+
onClick(e);
|
|
19617
|
+
} else {
|
|
19618
|
+
e.target.select();
|
|
19619
|
+
}
|
|
19620
|
+
}
|
|
19587
19621
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19588
19622
|
NumberFormat,
|
|
19589
19623
|
{
|
|
@@ -19595,6 +19629,7 @@ const InputQuant = ({
|
|
|
19595
19629
|
decimalScale,
|
|
19596
19630
|
allowNegative,
|
|
19597
19631
|
onValueChange: (values) => handleChangeLocal(values, name, onChange),
|
|
19632
|
+
onClick: handleClick,
|
|
19598
19633
|
...rest
|
|
19599
19634
|
}
|
|
19600
19635
|
);
|
|
@@ -19895,16 +19930,36 @@ function InputFinder({
|
|
|
19895
19930
|
)
|
|
19896
19931
|
] });
|
|
19897
19932
|
}
|
|
19898
|
-
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
|
+
}
|
|
19899
19946
|
switch (props.type) {
|
|
19900
19947
|
case "cep":
|
|
19901
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCep, { ...props });
|
|
19948
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCep, { onClick: handleClick, ...props });
|
|
19902
19949
|
case "cpf":
|
|
19903
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCpf, { ...props });
|
|
19950
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCpf, { onClick: handleClick, ...props });
|
|
19904
19951
|
case "cnpj":
|
|
19905
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCnpj, { ...props });
|
|
19952
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputCnpj, { onClick: handleClick, ...props });
|
|
19906
19953
|
case "codigo":
|
|
19907
|
-
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
|
+
);
|
|
19908
19963
|
case "fone":
|
|
19909
19964
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19910
19965
|
InputFone,
|
|
@@ -19912,23 +19967,48 @@ function Input(props) {
|
|
|
19912
19967
|
name: props.name,
|
|
19913
19968
|
onChange: props.onChange,
|
|
19914
19969
|
value: props.value,
|
|
19970
|
+
onClick: handleClick,
|
|
19915
19971
|
...props
|
|
19916
19972
|
}
|
|
19917
19973
|
);
|
|
19918
19974
|
case "uf":
|
|
19919
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputEstado, { ...props });
|
|
19975
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputEstado, { onClick: handleClick, ...props });
|
|
19920
19976
|
case "hora":
|
|
19921
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputHora, { ...props });
|
|
19977
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputHora, { onClick: handleClick, ...props });
|
|
19922
19978
|
case "percent":
|
|
19923
|
-
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
|
+
);
|
|
19924
19988
|
case "quant":
|
|
19925
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19989
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19990
|
+
InputQuant,
|
|
19991
|
+
{
|
|
19992
|
+
name: props.name,
|
|
19993
|
+
onChange: props.onChange,
|
|
19994
|
+
onClick: handleClick,
|
|
19995
|
+
...props
|
|
19996
|
+
}
|
|
19997
|
+
);
|
|
19926
19998
|
case "real":
|
|
19927
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19999
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20000
|
+
InputValor,
|
|
20001
|
+
{
|
|
20002
|
+
name: props.name,
|
|
20003
|
+
onChange: props.onChange,
|
|
20004
|
+
onClick: handleClick,
|
|
20005
|
+
...props
|
|
20006
|
+
}
|
|
20007
|
+
);
|
|
19928
20008
|
case "finder":
|
|
19929
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputFinder, { ...props });
|
|
20009
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputFinder, { onClick: handleClick, ...props });
|
|
19930
20010
|
default:
|
|
19931
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "form-control", ...props });
|
|
20011
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("input", { className: "form-control", onClick: handleClick, ...props });
|
|
19932
20012
|
}
|
|
19933
20013
|
}
|
|
19934
20014
|
const Container$3 = styled.div`
|
|
@@ -19992,15 +20072,32 @@ const InputPasswordContainer = styled.div`
|
|
|
19992
20072
|
}
|
|
19993
20073
|
}
|
|
19994
20074
|
`;
|
|
19995
|
-
function InputPassword({ disabled, ...rest }) {
|
|
20075
|
+
function InputPassword({ disabled, autoSelect, ...rest }) {
|
|
19996
20076
|
const [showPass, setShowPass] = useState(false);
|
|
19997
20077
|
const handleClickEye = () => {
|
|
19998
20078
|
if (!disabled) {
|
|
19999
20079
|
setShowPass(!showPass);
|
|
20000
20080
|
}
|
|
20001
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
|
+
}
|
|
20002
20091
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(InputPasswordContainer, { disabled, children: [
|
|
20003
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20092
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20093
|
+
"input",
|
|
20094
|
+
{
|
|
20095
|
+
type: showPass ? "text" : "password",
|
|
20096
|
+
disabled,
|
|
20097
|
+
onClick: handleClick,
|
|
20098
|
+
...rest
|
|
20099
|
+
}
|
|
20100
|
+
),
|
|
20004
20101
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20005
20102
|
"i",
|
|
20006
20103
|
{
|
|
@@ -20098,6 +20195,9 @@ function ModalBoxDrag({
|
|
|
20098
20195
|
return null;
|
|
20099
20196
|
}
|
|
20100
20197
|
function startDrag(e) {
|
|
20198
|
+
if (isMobile()) {
|
|
20199
|
+
return;
|
|
20200
|
+
}
|
|
20101
20201
|
controls.start(e);
|
|
20102
20202
|
}
|
|
20103
20203
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$2, { maxWidth, ref: modalRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -20497,7 +20597,6 @@ const Container = styled.div`
|
|
|
20497
20597
|
function CheckUpdates() {
|
|
20498
20598
|
const showRef = useRef();
|
|
20499
20599
|
function checkUpdate() {
|
|
20500
|
-
console.info("App:", window.location.origin);
|
|
20501
20600
|
if ("serviceWorker" in navigator && window.location.origin.startsWith("http")) {
|
|
20502
20601
|
console.log("Procurando atualizações...");
|
|
20503
20602
|
navigator.serviceWorker.getRegistration().then((registration) => {
|