@orangesix/react 2.4.0-beta.3 → 2.4.0
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/accordion/@types/index.d.ts +55 -55
- package/accordion/accordion/index.esm.js.map +1 -1
- package/api/@types/css.d.ts +91 -91
- package/api/@types/field.d.ts +161 -159
- package/api/@types/index.d.ts +29 -27
- package/api/input/index.esm.js.map +1 -1
- package/autocomplete/@types/index.d.ts +69 -67
- package/autocomplete/autocomplete/index.esm.js.map +1 -1
- package/autocomplete/core/core/index.esm.js.map +1 -1
- package/autocomplete/core/event/index.esm.js.map +1 -1
- package/box/@types/index.d.ts +28 -26
- package/box/_box.scss +56 -56
- package/box/box/index.esm.js.map +1 -1
- package/button/@types/index.d.ts +72 -70
- package/button/button/index.esm.js.map +1 -1
- package/button/package.json +5 -5
- package/calendar/@types/index.d.ts +27 -25
- package/calendar/calendar/index.esm.js.map +1 -1
- package/calendar/core/controlled/index.esm.js.map +1 -1
- package/calendar/core/handle/index.esm.js.map +1 -1
- package/calendar/core/hookForm/index.esm.js.map +1 -1
- package/calendar/core/locale/index.esm.js.map +1 -1
- package/calendar/package.json +5 -5
- package/editor/@types/index.d.ts +45 -43
- package/editor/_editor.scss +106 -106
- package/editor/const/index.esm.js.map +1 -1
- package/editor/core/bold/index.esm.js.map +1 -1
- package/editor/core/bulletlist/index.esm.js.map +1 -1
- package/editor/core/code/index.esm.js.map +1 -1
- package/editor/core/color/index.esm.js.map +1 -1
- package/editor/core/highlight/index.esm.js.map +1 -1
- package/editor/core/image/index.esm.js.map +1 -1
- package/editor/core/index/index.esm.js.map +1 -1
- package/editor/core/italic/index.esm.js.map +1 -1
- package/editor/core/link/index.esm.js.map +1 -1
- package/editor/core/orderlist/index.esm.js.map +1 -1
- package/editor/core/strike/index.esm.js.map +1 -1
- package/editor/core/text/index.esm.js.map +1 -1
- package/editor/core/underline/index.esm.js.map +1 -1
- package/editor/editor/index.esm.js.map +1 -1
- package/input/@types/index.d.ts +109 -107
- package/input/core/controlled/index.esm.js.map +1 -1
- package/input/core/hookForm/index.esm.js.map +1 -1
- package/input/input/index.esm.js.map +1 -1
- package/inputfilter/@types/autocomplete.d.ts +20 -20
- package/inputfilter/@types/index.d.ts +42 -40
- package/inputfilter/_inputfilter.scss +58 -58
- package/inputfilter/const/index.esm.js.map +1 -1
- package/inputfilter/core/autocomplete/index.esm.js.map +1 -1
- package/inputfilter/core/date/index.esm.js.map +1 -1
- package/inputfilter/core/number/index.esm.js.map +1 -1
- package/inputfilter/core/text/index.esm.js.map +1 -1
- package/inputfilter/function/handle/index.esm.js.map +1 -1
- package/inputfilter/function/validate/index.esm.js.map +1 -1
- package/inputfilter/inputfilter/index.esm.js.map +1 -1
- package/inputfilter/legend/index.esm.js.map +1 -1
- package/lightbox/@types/index.d.ts +12 -10
- package/lightbox/_lightbox.scss +6 -6
- package/lightbox/core/handle/index.esm.js.map +1 -1
- package/lightbox/lightbox/index.esm.js.map +1 -1
- package/lightbox/package.json +5 -5
- package/loading/@types/index.d.ts +44 -42
- package/loading/_loading.scss +10 -10
- package/loading/loading/index.esm.js.map +1 -1
- package/loading/package.json +5 -5
- package/message/@types/index.d.ts +102 -102
- package/message/core/modal/index.esm.js.map +1 -1
- package/message/message/index.esm.js.map +1 -1
- package/message/package.json +5 -5
- package/modal/@types/index.d.ts +63 -61
- package/modal/core/core/index.esm.js.map +1 -1
- package/modal/modal/index.esm.js.map +1 -1
- package/multiselect/@types/index.d.ts +77 -75
- package/multiselect/core/controlled/index.esm.js.map +1 -1
- package/multiselect/core/hookForm/index.esm.js.map +1 -1
- package/multiselect/multiselect/index.esm.js.map +1 -1
- package/multiselect/package.json +5 -5
- package/package.json +15 -15
- package/pdf/@types/index.d.ts +12 -10
- package/pdf/package.json +5 -5
- package/pdf/pdf/index.esm.js.map +1 -1
- package/pdf/style/pdf.css +53 -53
- package/picklist/@types/index.d.ts +41 -40
- package/picklist/core/core/index.esm.js.map +1 -1
- package/picklist/picklist/index.esm.js.map +1 -1
- package/picklist/types.d.ts +35 -33
- package/radio/@types/index.d.ts +41 -39
- package/radio/core/controlled/index.esm.js.map +1 -1
- package/radio/core/hookForm/index.esm.js.map +1 -1
- package/radio/radio/index.esm.js.map +1 -1
- package/select/@types/index.d.ts +46 -44
- package/select/core/controlled/index.esm.js.map +1 -1
- package/select/core/hookForm/index.esm.js.map +1 -1
- package/select/select/index.esm.js.map +1 -1
- package/style/scss/_variables.scss +929 -929
- package/style/scss/bootstrap.scss +33 -33
- package/style/scss/core/_reset.scss +75 -75
- package/switch/@types/index.d.ts +22 -20
- package/switch/core/controlled/index.esm.js.map +1 -1
- package/switch/core/hookForm/index.esm.js.map +1 -1
- package/switch/switch/index.esm.js.map +1 -1
- package/table/@types/click.d.ts +7 -5
- package/table/@types/column.d.ts +58 -56
- package/table/@types/edit.d.ts +5 -5
- package/table/@types/expand.d.ts +32 -32
- package/table/@types/group.d.ts +20 -20
- package/table/@types/index.d.ts +63 -61
- package/table/@types/pagination.d.ts +26 -26
- package/table/@types/reorder.d.ts +16 -16
- package/table/@types/selection.d.ts +15 -15
- package/table/@types/sort.d.ts +8 -6
- package/table/@types/style.d.ts +20 -20
- package/table/@types/template.d.ts +22 -20
- package/table/core/click/index.esm.js.map +1 -1
- package/table/core/core/index.esm.js.map +1 -1
- package/table/core/expand/index.esm.js.map +1 -1
- package/table/core/group/index.esm.js.map +1 -1
- package/table/core/pagination/index.esm.js.map +1 -1
- package/table/core/reorder/index.esm.js.map +1 -1
- package/table/core/selection/index.esm.js.map +1 -1
- package/table/core/sort/index.esm.js.map +1 -1
- package/table/styled/index.esm.js.map +1 -1
- package/table/table/index.esm.js.map +1 -1
- package/tablepivot/@types/index.d.ts +50 -50
- package/tablepivot/@types/webdatarocks.d.ts +166 -166
- package/tablepivot/_tablepivot.scss +84 -84
- package/tablepivot/function/handle/index.esm.js.map +1 -1
- package/tablepivot/lang/pt-br/index.esm.js.map +1 -1
- package/tablepivot/tablepivot/index.esm.js.map +1 -1
- package/tabview/@types/index.d.ts +61 -59
- package/tabview/_tabview.scss +25 -25
- package/tabview/tabview/index.esm.js.map +1 -1
- package/textarea/@types/index.d.ts +18 -16
- package/textarea/core/controlled/index.esm.js.map +1 -1
- package/textarea/core/hookForm/index.esm.js.map +1 -1
- package/textarea/textarea/index.esm.js.map +1 -1
- package/tooltip/@types/index.d.ts +59 -57
- package/tooltip/core/handle/index.esm.js.map +1 -1
- package/tooltip/package.json +5 -5
- package/tooltip/tooltip/index.esm.js.map +1 -1
- package/utils/@types/index.d.ts +2 -2
- package/utils/@types/message.d.ts +18 -16
- package/utils/@types/request.d.ts +22 -22
- package/utils/@types/response.d.ts +55 -55
- package/utils/const/index.esm.js.map +1 -1
- package/utils/handle/index.esm.js.map +1 -1
- package/utils/helper/index.esm.js.map +1 -1
- package/utils/message/index.esm.js.map +1 -1
- package/utils/request/index.esm.js.map +1 -1
- package/utils/response/index.esm.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/editor/core/text.tsx"],"sourcesContent":["import React from \"react\";\nimport { EditorCoreProps } from \"..\";\n\n/**\n * Core - `Text`\n * Extensão para formatar o texto com tamanho específico\n */\nexport const Text = ({ editor, active }: EditorCoreProps & { active: boolean }) => {\n\n return active && (\n <>\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 1 }) ? \" active\" : \"\")}\n href=\"#\"\n style={{ fontSize: \".975em\" }}\n onClick={event => {\n event.preventDefault();\n editor.chain().focus().toggleHeading({ level: 1 }).run();\n }}><i className=\"bi bi-type-h1\"/></a>\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 2 }) ? \" active\" : \"\")}\n href=\"#\"\n style={{ fontSize: \".975em\" }}\n onClick={event => {\n event.preventDefault();\n editor.chain().focus().toggleHeading({ level: 2 }).run();\n }}><i className=\"bi bi-type-h2\"/></a>\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 3 }) ? \" active\" : \"\")}\n href=\"#\"\n style={{ fontSize: \".975em\" }}\n onClick={event => {\n event.preventDefault();\n editor.chain().focus().toggleHeading({ level: 3 }).run();\n }}><i className=\"bi bi-type-h3\"/></a>\n </>\n );\n};"],"mappings":";;;AAOA,IAAa,KAAQ,EAAE,WAAQ,gBAEpB,KACH,kBAAA,GAAA,EAAA,UAAA;CACI,kBAAC,KAAD;EAAG,WAAW,sBAAsB,EAAO,SAAS,WAAW,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/editor/core/text.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { EditorCoreProps } from \"..\";\r\n\r\n/**\r\n * Core - `Text`\r\n * Extensão para formatar o texto com tamanho específico\r\n */\r\nexport const Text = ({ editor, active }: EditorCoreProps & { active: boolean }) => {\r\n\r\n return active && (\r\n <>\r\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 1 }) ? \" active\" : \"\")}\r\n href=\"#\"\r\n style={{ fontSize: \".975em\" }}\r\n onClick={event => {\r\n event.preventDefault();\r\n editor.chain().focus().toggleHeading({ level: 1 }).run();\r\n }}><i className=\"bi bi-type-h1\"/></a>\r\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 2 }) ? \" active\" : \"\")}\r\n href=\"#\"\r\n style={{ fontSize: \".975em\" }}\r\n onClick={event => {\r\n event.preventDefault();\r\n editor.chain().focus().toggleHeading({ level: 2 }).run();\r\n }}><i className=\"bi bi-type-h2\"/></a>\r\n <a className={\"editor-menu-item\" + (editor.isActive(\"heading\", { level: 3 }) ? \" active\" : \"\")}\r\n href=\"#\"\r\n style={{ fontSize: \".975em\" }}\r\n onClick={event => {\r\n event.preventDefault();\r\n editor.chain().focus().toggleHeading({ level: 3 }).run();\r\n }}><i className=\"bi bi-type-h3\"/></a>\r\n </>\r\n );\r\n};"],"mappings":";;;AAOA,IAAa,KAAQ,EAAE,WAAQ,gBAEpB,KACH,kBAAA,GAAA,EAAA,UAAA;CACI,kBAAC,KAAD;EAAG,WAAW,sBAAsB,EAAO,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,IAAI,YAAY;EACvF,MAAK;EACL,OAAO,EAAE,UAAU,SAAS;EAC5B,UAAS,MAAS;GAEd,AADA,EAAM,eAAe,GACrB,EAAO,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI;EAC3D;YAAG,kBAAC,KAAD,EAAG,WAAU,gBAAgB,CAAA;CAAI,CAAA;CACxC,kBAAC,KAAD;EAAG,WAAW,sBAAsB,EAAO,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,IAAI,YAAY;EACvF,MAAK;EACL,OAAO,EAAE,UAAU,SAAS;EAC5B,UAAS,MAAS;GAEd,AADA,EAAM,eAAe,GACrB,EAAO,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI;EAC3D;YAAG,kBAAC,KAAD,EAAG,WAAU,gBAAgB,CAAA;CAAI,CAAA;CACxC,kBAAC,KAAD;EAAG,WAAW,sBAAsB,EAAO,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,IAAI,YAAY;EACvF,MAAK;EACL,OAAO,EAAE,UAAU,SAAS;EAC5B,UAAS,MAAS;GAEd,AADA,EAAM,eAAe,GACrB,EAAO,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI;EAC3D;YAAG,kBAAC,KAAD,EAAG,WAAU,gBAAgB,CAAA;CAAI,CAAA;AAC1C,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/editor/core/underline.tsx"],"sourcesContent":["import React from \"react\";\nimport { EditorCoreProps } from \"..\";\n\n/**\n * Core - `Underline`\n * Extensão para renderizar texto em underline text\n */\nexport const Underline = ({ editor, active }: EditorCoreProps & { active: boolean }) => {\n return active && (\n <a className={\"editor-menu-item\" + (editor.isActive(\"underline\") ? \" active\" : \"\")}\n href=\"#\"\n onClick={event => {\n event.preventDefault();\n editor.chain().focus().toggleUnderline().run();\n }}><i className=\"bi bi-type-underline\"/></a>\n );\n};"],"mappings":";;;AAOA,IAAa,KAAa,EAAE,WAAQ,gBACzB,KACH,kBAAC,KAAD;CAAG,WAAW,sBAAsB,EAAO,SAAS,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/editor/core/underline.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { EditorCoreProps } from \"..\";\r\n\r\n/**\r\n * Core - `Underline`\r\n * Extensão para renderizar texto em underline text\r\n */\r\nexport const Underline = ({ editor, active }: EditorCoreProps & { active: boolean }) => {\r\n return active && (\r\n <a className={\"editor-menu-item\" + (editor.isActive(\"underline\") ? \" active\" : \"\")}\r\n href=\"#\"\r\n onClick={event => {\r\n event.preventDefault();\r\n editor.chain().focus().toggleUnderline().run();\r\n }}><i className=\"bi bi-type-underline\"/></a>\r\n );\r\n};"],"mappings":";;;AAOA,IAAa,KAAa,EAAE,WAAQ,gBACzB,KACH,kBAAC,KAAD;CAAG,WAAW,sBAAsB,EAAO,SAAS,WAAW,IAAI,YAAY;CAC3E,MAAK;CACL,UAAS,MAAS;EAEd,AADA,EAAM,eAAe,GACrB,EAAO,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,IAAI;CACjD;WAAG,kBAAC,KAAD,EAAG,WAAU,uBAAuB,CAAA;AAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/editor/editor.tsx"],"sourcesContent":["import { Box } from \"../box\";\nimport { EditorProps } from \".\";\nimport { EditorMenu } from \"./core\";\nimport Link from \"@tiptap/extension-link\";\nimport Image from \"@tiptap/extension-image\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { Color } from \"@tiptap/extension-color\";\nimport { editorBasic, editorFull } from \"./const\";\nimport { InputFeedback, InputLabel } from \"../api\";\nimport React, { useEffect, useState } from \"react\";\nimport Underline from \"@tiptap/extension-underline\";\nimport Highlight from \"@tiptap/extension-highlight\";\nimport { TextStyle } from \"@tiptap/extension-text-style\";\nimport { EditorContent as EditorTipTap, useEditor } from \"@tiptap/react\";\n\n/**\n * Componente - `Editor`\n *\n * Um componente versátil que pode ser utilizado para criar container de edição de texto.\n * Permite personalizar o estilo e o conteúdo através de propriedades.\n */\nexport const Editor = ({ options = \"basic\", iconPrefix = \"bi bi-\", ...props }: EditorProps) => {\n const [edition, setEdition] = useState(false);\n const editor = useEditor({\n extensions: [\n StarterKit,\n Underline,\n Highlight,\n Color,\n TextStyle,\n Link.configure({\n validate: (href) => /^https?:\\/\\//.test(href),\n HTMLAttributes: {\n rel: \"\"\n }\n }),\n Image.configure({\n allowBase64: true\n })\n ],\n editable: !props.disabled,\n content: props.value ?? \"\",\n onFocus: () => setEdition(true),\n onBlur: () => setEdition(false),\n onUpdate: ({ editor }) => {\n props.onChange(editor.getHTML());\n }\n });\n\n if (!editor) {\n console.error(\"Não foi possível realizar o carregamento do editor de texto.\");\n return null;\n }\n\n useEffect(() => {\n if (editor && !edition) {\n editor?.commands.setContent(props.value);\n }\n }, [props.value]);\n\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Box className={props.className}\n css={props.css}\n size={props.size ?? \"100\"}>\n <InputLabel {...props}/>\n <div className=\"editor-container\">\n {!props.disabled\n && <EditorMenu\n editor={editor}\n options={options === \"basic\" ? editorBasic : options === \"full\" ? editorFull : options}/>}\n <EditorTipTap\n className=\"editor\"\n disabled={props.disabled}\n editor={editor}\n id={props.id}\n name={props.name}\n style={{ minHeight: (props.height ?? 100) + \"px\" }}/>\n </div>\n <InputFeedback {...props}/>\n </Box>\n );\n};\nEditor.displayName = \"Editor\";"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAa,KAAU,EAAE,aAAU,SAAS,gBAAa,UAAU,GAAG,QAAyB;CAC3F,IAAM,CAAC,GAAS,KAAc,EAAS,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/editor/editor.tsx"],"sourcesContent":["import { Box } from \"../box\";\r\nimport { EditorProps } from \".\";\r\nimport { EditorMenu } from \"./core\";\r\nimport Link from \"@tiptap/extension-link\";\r\nimport Image from \"@tiptap/extension-image\";\r\nimport StarterKit from \"@tiptap/starter-kit\";\r\nimport { Color } from \"@tiptap/extension-color\";\r\nimport { editorBasic, editorFull } from \"./const\";\r\nimport { InputFeedback, InputLabel } from \"../api\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport Underline from \"@tiptap/extension-underline\";\r\nimport Highlight from \"@tiptap/extension-highlight\";\r\nimport { TextStyle } from \"@tiptap/extension-text-style\";\r\nimport { EditorContent as EditorTipTap, useEditor } from \"@tiptap/react\";\r\n\r\n/**\r\n * Componente - `Editor`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar container de edição de texto.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n */\r\nexport const Editor = ({ options = \"basic\", iconPrefix = \"bi bi-\", ...props }: EditorProps) => {\r\n const [edition, setEdition] = useState(false);\r\n const editor = useEditor({\r\n extensions: [\r\n StarterKit,\r\n Underline,\r\n Highlight,\r\n Color,\r\n TextStyle,\r\n Link.configure({\r\n validate: (href) => /^https?:\\/\\//.test(href),\r\n HTMLAttributes: {\r\n rel: \"\"\r\n }\r\n }),\r\n Image.configure({\r\n allowBase64: true\r\n })\r\n ],\r\n editable: !props.disabled,\r\n content: props.value ?? \"\",\r\n onFocus: () => setEdition(true),\r\n onBlur: () => setEdition(false),\r\n onUpdate: ({ editor }) => {\r\n props.onChange(editor.getHTML());\r\n }\r\n });\r\n\r\n if (!editor) {\r\n console.error(\"Não foi possível realizar o carregamento do editor de texto.\");\r\n return null;\r\n }\r\n\r\n useEffect(() => {\r\n if (editor && !edition) {\r\n editor?.commands.setContent(props.value);\r\n }\r\n }, [props.value]);\r\n\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Box className={props.className}\r\n css={props.css}\r\n size={props.size ?? \"100\"}>\r\n <InputLabel {...props}/>\r\n <div className=\"editor-container\">\r\n {!props.disabled\r\n && <EditorMenu\r\n editor={editor}\r\n options={options === \"basic\" ? editorBasic : options === \"full\" ? editorFull : options}/>}\r\n <EditorTipTap\r\n className=\"editor\"\r\n disabled={props.disabled}\r\n editor={editor}\r\n id={props.id}\r\n name={props.name}\r\n style={{ minHeight: (props.height ?? 100) + \"px\" }}/>\r\n </div>\r\n <InputFeedback {...props}/>\r\n </Box>\r\n );\r\n};\r\nEditor.displayName = \"Editor\";"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAa,KAAU,EAAE,aAAU,SAAS,gBAAa,UAAU,GAAG,QAAyB;CAC3F,IAAM,CAAC,GAAS,KAAc,EAAS,EAAK,GACtC,IAAS,EAAU;EACrB,YAAY;GACR;GACA;GACA;GACA;GACA;GACA,EAAK,UAAU;IACX,WAAW,MAAS,eAAe,KAAK,CAAI;IAC5C,gBAAgB,EACZ,KAAK,GACT;GACJ,CAAC;GACD,EAAM,UAAU,EACZ,aAAa,GACjB,CAAC;EACL;EACA,UAAU,CAAC,EAAM;EACjB,SAAS,EAAM,SAAS;EACxB,eAAe,EAAW,EAAI;EAC9B,cAAc,EAAW,EAAK;EAC9B,WAAW,EAAE,gBAAa;GACtB,EAAM,SAAS,EAAO,QAAQ,CAAC;EACnC;CACJ,CAAC;CAkBD,OAhBK,KAKL,QAAgB;EACZ,AAAI,KAAU,CAAC,KACX,GAAQ,SAAS,WAAW,EAAM,KAAK;CAE/C,GAAG,CAAC,EAAM,KAAK,CAAC,GAQZ,kBAAC,GAAD;EAAK,WAAW,EAAM;EAClB,KAAK,EAAM;EACX,MAAM,EAAM,QAAQ;YAFxB;GAGI,kBAAC,GAAD,EAAY,GAAI,EAAO,CAAA;GACvB,kBAAC,OAAD;IAAK,WAAU;cAAf,CACK,CAAC,EAAM,YACD,kBAAC,GAAD;KACS;KACR,SAAS,MAAY,UAAU,IAAc,MAAY,SAAS,IAAa;IAAS,CAAA,GAChG,kBAAC,GAAD;KACI,WAAU;KACV,UAAU,EAAM;KACR;KACR,IAAI,EAAM;KACV,MAAM,EAAM;KACZ,OAAO,EAAE,YAAY,EAAM,UAAU,OAAO,KAAK;IAAG,CAAA,CACvD;;GACL,kBAAC,GAAD,EAAe,GAAI,EAAO,CAAA;EACzB;QAlCL,QAAQ,MAAM,8DAA8D,GACrE;AAmCf;AACA,EAAO,cAAc"}
|
package/input/@types/index.d.ts
CHANGED
|
@@ -1,111 +1,113 @@
|
|
|
1
1
|
import { PasswordProps } from 'primereact/password';
|
|
2
2
|
import { default as React, HTMLInputTypeAttribute } from 'react';
|
|
3
3
|
import { ApiComponentProps, ApiFieldModeProps, ApiFieldHookFormProps, ApiFieldComponentProps, ApiFieldControlledProps } from '../../api';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
interface InputMaskProps {
|
|
7
|
+
/**
|
|
8
|
+
* Define mascara no campo de dados
|
|
9
|
+
*/
|
|
10
|
+
mask?: string | "cpf" | "cnpj"
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Define se campo vai ser limpo se mascara tiver imcompleta
|
|
14
|
+
*/
|
|
15
|
+
maskAutoClear?: boolean
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface InputPasswordProps {
|
|
19
|
+
/**
|
|
20
|
+
* Define se vai ou não mostra o botão para exibir a senha
|
|
21
|
+
*/
|
|
22
|
+
passwordShow?: boolean
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Define se vai ou não mostra a legenda da senha
|
|
26
|
+
*/
|
|
27
|
+
passwordFeedback?: boolean
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Define o template do cabeçalho do password
|
|
31
|
+
*/
|
|
32
|
+
passwordHeaderTemplate?: (props: PasswordProps) => React.ReactNode
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Define o template do Rodapé do password
|
|
36
|
+
*/
|
|
37
|
+
passwordFooterTemplate?: (props: PasswordProps) => React.ReactNode
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Define o template do password
|
|
41
|
+
*/
|
|
42
|
+
passwordTemplate?: (props: PasswordProps) => React.ReactNode
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface InputNumberProps {
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Define o tamanho mínimo para input do tipo 'Number'
|
|
49
|
+
*/
|
|
50
|
+
numberMin?: number
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Define o tamanho máximo para input do tipo 'Number'
|
|
54
|
+
*/
|
|
55
|
+
numberMax?: number
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Define o modo para input do tipo 'Number'
|
|
59
|
+
*/
|
|
60
|
+
numberMode?: "decimal" | "currency"
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Define o modo de dinheiro para input do tipo 'Number'
|
|
64
|
+
*/
|
|
65
|
+
numberCurrency?: "BRL" | string
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Define o prfixo para input do tipo 'Number'
|
|
69
|
+
*/
|
|
70
|
+
numberPrefix?: string
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Define o sufixo para input do tipo 'Number'
|
|
74
|
+
*/
|
|
75
|
+
numberSuffix?: string
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Define se separador decimal vai ser exibibo para input do tipo 'Number'
|
|
79
|
+
*/
|
|
80
|
+
numberDecimalSeparator?: boolean
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Define o mínimo de casas decimais para input do tipo 'Number'
|
|
84
|
+
*/
|
|
85
|
+
numberMaxFractionDigits?: number
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Define o máximo de casas decimais para input do tipo 'Number'
|
|
89
|
+
*/
|
|
90
|
+
numberMinFractionDigits?: number
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface InputBaseProps extends ApiComponentProps, ApiFieldComponentProps, InputPasswordProps, InputMaskProps, InputNumberProps {
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Define o tipo de dados do componente
|
|
97
|
+
*/
|
|
98
|
+
type?: Extract<HTMLInputTypeAttribute, "text" | "date" | "email" | "time" | "number" | "password">
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A propriedade `ref` retorna a referência do componente
|
|
102
|
+
*/
|
|
103
|
+
ref?: React.Ref<HTMLInputElement>
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Define o tamanho do componente
|
|
107
|
+
*/
|
|
108
|
+
sizes?: "small" | "large"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type InputProps<T extends ApiFieldModeProps> = T extends "Controlled"
|
|
112
|
+
? InputBaseProps & ApiFieldControlledProps
|
|
111
113
|
: InputBaseProps & ApiFieldHookFormProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/input/core/controlled.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputProps } from \"..\";\nimport { InputFeedback } from \"../../api\";\nimport { InputText } from \"primereact/inputtext\";\nimport { InputNumber } from \"primereact/inputnumber\";\nimport { Password, PasswordProps } from \"primereact/password\";\nimport { InputMask, InputMaskProps } from \"primereact/inputmask\";\n\ntype Props = {\n masker: InputMaskProps,\n password: PasswordProps\n core: any & { ref: React.Ref<HTMLInputElement> | undefined },\n};\n\n/**\n * Core - `InputControlled`\n * Define o componente controlled\n */\nexport function InputControlled({ core, password, masker, ...props }: InputProps<\"Controlled\"> & Props) {\n const { type, ...coreNumber } = core;\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <>\n {props.mask !== undefined\n ? <InputMask\n {...core}\n {...masker}\n readOnly={props.readonly}\n ref={props.ref}\n value={props.value}\n onBlur={event => {\n if (props.onBlur) {\n props.onBlur(event.target.value);\n }\n }}\n onChange={event => {\n if (props.onChange) {\n props.onChange(event.target.value);\n }\n }}/>\n : (props.type === \"password\"\n ? <Password\n {...core}\n {...password}\n autoComplete=\"current-password\"\n readOnly={props.readonly}\n ref={props.ref}\n value={props.value}\n onBlur={event => {\n if (props.onBlur) {\n props.onBlur(event.target.value);\n }\n }}\n onChange={event => {\n if (props.onChange) {\n props.onChange(event.target.value);\n }\n }}/>\n : (props.type === \"number\"\n ? <InputNumber\n {...coreNumber}\n currency={props.numberCurrency ?? \"BRL\"}\n locale=\"pt-BR\"\n max={props.numberMax}\n maxFractionDigits={props.numberMaxFractionDigits}\n min={props.numberMin}\n minFractionDigits={props.numberMinFractionDigits}\n mode={props.numberMode}\n prefix={props.numberPrefix}\n pt={{ input: { root: { className: \"w-100\" } } }}\n readOnly={props.readonly}\n ref={props.ref}\n suffix={props.numberSuffix}\n useGrouping={props.numberDecimalSeparator ?? false}\n value={props.value}\n onBlur={event => {\n if (props.onBlur) {\n props.onBlur(event.target.value);\n }\n }}\n onValueChange={event => {\n if (props.onChange) {\n props.onChange(event.value);\n }\n }}/>\n : <InputText {...core}\n readOnly={props.readonly}\n ref={props.ref}\n value={props.value}\n onBlur={event => {\n if (props.onBlur) {\n props.onBlur(event.target.value);\n }\n }}\n onChange={event => {\n if (props.onChange) {\n props.onChange(event.target.value);\n }\n }}/>\n ))}\n <InputFeedback {...props}/>\n </>\n );\n}"],"mappings":";;;;;;;;;AAkBA,SAAgB,EAAgB,EAAE,SAAM,aAAU,WAAQ,GAAG,KAA2C;CACpG,IAAM,EAAE,SAAM,GAAG,MAAe;CAMhC,OACI,kBAAA,GAAA,EAAA,UAAA,CACK,EAAM,SAAS,KAAA,IAiBT,EAAM,SAAS,aACZ,kBAAC,GAAD;EACE,GAAI;EACJ,GAAI;EACJ,cAAa;EACb,UAAU,EAAM;EAChB,KAAK,EAAM;EACX,OAAO,EAAM;EACb,SAAQ,MAAS;GACb,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/input/core/controlled.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { InputProps } from \"..\";\r\nimport { InputFeedback } from \"../../api\";\r\nimport { InputText } from \"primereact/inputtext\";\r\nimport { InputNumber } from \"primereact/inputnumber\";\r\nimport { Password, PasswordProps } from \"primereact/password\";\r\nimport { InputMask, InputMaskProps } from \"primereact/inputmask\";\r\n\r\ntype Props = {\r\n masker: InputMaskProps,\r\n password: PasswordProps\r\n core: any & { ref: React.Ref<HTMLInputElement> | undefined },\r\n};\r\n\r\n/**\r\n * Core - `InputControlled`\r\n * Define o componente controlled\r\n */\r\nexport function InputControlled({ core, password, masker, ...props }: InputProps<\"Controlled\"> & Props) {\r\n const { type, ...coreNumber } = core;\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <>\r\n {props.mask !== undefined\r\n ? <InputMask\r\n {...core}\r\n {...masker}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n value={props.value}\r\n onBlur={event => {\r\n if (props.onBlur) {\r\n props.onBlur(event.target.value);\r\n }\r\n }}\r\n onChange={event => {\r\n if (props.onChange) {\r\n props.onChange(event.target.value);\r\n }\r\n }}/>\r\n : (props.type === \"password\"\r\n ? <Password\r\n {...core}\r\n {...password}\r\n autoComplete=\"current-password\"\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n value={props.value}\r\n onBlur={event => {\r\n if (props.onBlur) {\r\n props.onBlur(event.target.value);\r\n }\r\n }}\r\n onChange={event => {\r\n if (props.onChange) {\r\n props.onChange(event.target.value);\r\n }\r\n }}/>\r\n : (props.type === \"number\"\r\n ? <InputNumber\r\n {...coreNumber}\r\n currency={props.numberCurrency ?? \"BRL\"}\r\n locale=\"pt-BR\"\r\n max={props.numberMax}\r\n maxFractionDigits={props.numberMaxFractionDigits}\r\n min={props.numberMin}\r\n minFractionDigits={props.numberMinFractionDigits}\r\n mode={props.numberMode}\r\n prefix={props.numberPrefix}\r\n pt={{ input: { root: { className: \"w-100\" } } }}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n suffix={props.numberSuffix}\r\n useGrouping={props.numberDecimalSeparator ?? false}\r\n value={props.value}\r\n onBlur={event => {\r\n if (props.onBlur) {\r\n props.onBlur(event.target.value);\r\n }\r\n }}\r\n onValueChange={event => {\r\n if (props.onChange) {\r\n props.onChange(event.value);\r\n }\r\n }}/>\r\n : <InputText {...core}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n value={props.value}\r\n onBlur={event => {\r\n if (props.onBlur) {\r\n props.onBlur(event.target.value);\r\n }\r\n }}\r\n onChange={event => {\r\n if (props.onChange) {\r\n props.onChange(event.target.value);\r\n }\r\n }}/>\r\n ))}\r\n <InputFeedback {...props}/>\r\n </>\r\n );\r\n}"],"mappings":";;;;;;;;;AAkBA,SAAgB,EAAgB,EAAE,SAAM,aAAU,WAAQ,GAAG,KAA2C;CACpG,IAAM,EAAE,SAAM,GAAG,MAAe;CAMhC,OACI,kBAAA,GAAA,EAAA,UAAA,CACK,EAAM,SAAS,KAAA,IAiBT,EAAM,SAAS,aACZ,kBAAC,GAAD;EACE,GAAI;EACJ,GAAI;EACJ,cAAa;EACb,UAAU,EAAM;EAChB,KAAK,EAAM;EACX,OAAO,EAAM;EACb,SAAQ,MAAS;GACb,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,OAAO,KAAK;EAEvC;EACA,WAAU,MAAS;GACf,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,OAAO,KAAK;EAEzC;CAAG,CAAA,IACJ,EAAM,SAAS,WACZ,kBAAC,GAAD;EACE,GAAI;EACJ,UAAU,EAAM,kBAAkB;EAClC,QAAO;EACP,KAAK,EAAM;EACX,mBAAmB,EAAM;EACzB,KAAK,EAAM;EACX,mBAAmB,EAAM;EACzB,MAAM,EAAM;EACZ,QAAQ,EAAM;EACd,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,QAAQ,EAAE,EAAE;EAC9C,UAAU,EAAM;EAChB,KAAK,EAAM;EACX,QAAQ,EAAM;EACd,aAAa,EAAM,0BAA0B;EAC7C,OAAO,EAAM;EACb,SAAQ,MAAS;GACb,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,OAAO,KAAK;EAEvC;EACA,gBAAe,MAAS;GACpB,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,KAAK;EAElC;CAAG,CAAA,IACL,kBAAC,GAAD;EAAW,GAAI;EACb,UAAU,EAAM;EAChB,KAAK,EAAM;EACX,OAAO,EAAM;EACb,SAAQ,MAAS;GACb,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,OAAO,KAAK;EAEvC;EACA,WAAU,MAAS;GACf,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,OAAO,KAAK;EAEzC;CAAG,CAAA,IA1Eb,kBAAC,GAAD;EACE,GAAI;EACJ,GAAI;EACJ,UAAU,EAAM;EAChB,KAAK,EAAM;EACX,OAAO,EAAM;EACb,SAAQ,MAAS;GACb,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,OAAO,KAAK;EAEvC;EACA,WAAU,MAAS;GACf,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,OAAO,KAAK;EAEzC;CAAG,CAAA,GA6DX,kBAAC,GAAD,EAAe,GAAI,EAAO,CAAA,CAC5B,EAAA,CAAA;AAEV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/input/core/hookForm.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputProps } from \"..\";\nimport { InputFeedback } from \"../../api\";\nimport { Controller } from \"react-hook-form\";\nimport { InputText } from \"primereact/inputtext\";\nimport { InputNumber } from \"primereact/inputnumber\";\nimport { Password, PasswordProps } from \"primereact/password\";\nimport { InputMask, InputMaskProps } from \"primereact/inputmask\";\n\ntype Props = {\n masker: InputMaskProps\n password: PasswordProps\n core: any & { ref: React.Ref<HTMLInputElement> | undefined }\n};\n\n/**\n * Core - `InputHookForm`\n * Define o componente utilizando o HookForm\n */\nexport function InputHookForm({ core, password, masker, ...props }: InputProps<\"HookForm\"> & Props) {\n const { type, ...coreNumber } = core;\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Controller\n render={({ field, formState: { errors } }) => {\n return (\n <>\n {props.mask !== undefined\n ? <InputMask\n {...core}\n {...field}\n {...masker}\n invalid={!!errors[props.name]}\n readOnly={props.readonly}\n ref={props.ref}\n required={props.required}\n value={field.value ?? \"\"}\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\n : (props.type === \"password\"\n ? <Password\n {...core}\n {...field}\n {...password}\n autoComplete=\"current-password\"\n invalid={!!errors[props.name]}\n readOnly={props.readonly}\n ref={props.ref}\n required={props.required}\n value={field.value ?? \"\"}\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\n : (props.type === \"number\"\n ? <InputNumber\n {...coreNumber}\n {...field}\n currency={props.numberCurrency ?? \"BRL\"}\n invalid={!!errors[props.name]}\n locale=\"pt-BR\"\n max={props.numberMax}\n maxFractionDigits={props.numberMaxFractionDigits}\n min={props.numberMin}\n minFractionDigits={props.numberMinFractionDigits}\n mode={props.numberMode}\n prefix={props.numberPrefix}\n pt={{ input: { root: { className: \"w-100\" } } }}\n readOnly={props.readonly}\n ref={props.ref}\n suffix={props.numberSuffix}\n useGrouping={props.numberDecimalSeparator ?? false}\n value={field.value ?? \"\"}\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\n onChange={e => props.onChange !== undefined ? props.onChange(e.value) : field.onChange(e.value)}/>\n : <InputText\n {...core}\n {...field}\n invalid={!!errors[props.name]}\n readOnly={props.readonly}\n ref={props.ref}\n required={props.required}\n value={field.value ?? \"\"}\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\n ))}\n <InputFeedback\n {...props}\n errors={errors}/>\n </>\n );\n }}\n control={props.control}\n name={props.name}\n rules={{ required: !props.required ? false : \"Campo obrigatório\" }}/>\n );\n}"],"mappings":";;;;;;;;;;AAmBA,SAAgB,EAAc,EAAE,SAAM,aAAU,WAAQ,GAAG,KAAyC;CAChG,IAAM,EAAE,SAAM,GAAG,MAAe;CAMhC,OACI,kBAAC,GAAD;EACI,SAAS,EAAE,UAAO,WAAW,EAAE,kBAEvB,kBAAA,GAAA,EAAA,UAAA,CACK,EAAM,SAAS,KAAA,IAYT,EAAM,SAAS,aACZ,kBAAC,GAAD;GACE,GAAI;GACJ,GAAI;GACJ,GAAI;GACJ,cAAa;GACb,SAAS,CAAC,CAAC,EAAO,EAAM;GACxB,UAAU,EAAM;GAChB,KAAK,EAAM;GACX,UAAU,EAAM;GAChB,OAAO,EAAM,SAAS;GACtB,SAAQ,MAAK,EAAM,SAAS,EAAM,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/input/core/hookForm.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { InputProps } from \"..\";\r\nimport { InputFeedback } from \"../../api\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { InputText } from \"primereact/inputtext\";\r\nimport { InputNumber } from \"primereact/inputnumber\";\r\nimport { Password, PasswordProps } from \"primereact/password\";\r\nimport { InputMask, InputMaskProps } from \"primereact/inputmask\";\r\n\r\ntype Props = {\r\n masker: InputMaskProps\r\n password: PasswordProps\r\n core: any & { ref: React.Ref<HTMLInputElement> | undefined }\r\n};\r\n\r\n/**\r\n * Core - `InputHookForm`\r\n * Define o componente utilizando o HookForm\r\n */\r\nexport function InputHookForm({ core, password, masker, ...props }: InputProps<\"HookForm\"> & Props) {\r\n const { type, ...coreNumber } = core;\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Controller\r\n render={({ field, formState: { errors } }) => {\r\n return (\r\n <>\r\n {props.mask !== undefined\r\n ? <InputMask\r\n {...core}\r\n {...field}\r\n {...masker}\r\n invalid={!!errors[props.name]}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n required={props.required}\r\n value={field.value ?? \"\"}\r\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\r\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\r\n : (props.type === \"password\"\r\n ? <Password\r\n {...core}\r\n {...field}\r\n {...password}\r\n autoComplete=\"current-password\"\r\n invalid={!!errors[props.name]}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n required={props.required}\r\n value={field.value ?? \"\"}\r\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\r\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\r\n : (props.type === \"number\"\r\n ? <InputNumber\r\n {...coreNumber}\r\n {...field}\r\n currency={props.numberCurrency ?? \"BRL\"}\r\n invalid={!!errors[props.name]}\r\n locale=\"pt-BR\"\r\n max={props.numberMax}\r\n maxFractionDigits={props.numberMaxFractionDigits}\r\n min={props.numberMin}\r\n minFractionDigits={props.numberMinFractionDigits}\r\n mode={props.numberMode}\r\n prefix={props.numberPrefix}\r\n pt={{ input: { root: { className: \"w-100\" } } }}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n suffix={props.numberSuffix}\r\n useGrouping={props.numberDecimalSeparator ?? false}\r\n value={field.value ?? \"\"}\r\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\r\n onChange={e => props.onChange !== undefined ? props.onChange(e.value) : field.onChange(e.value)}/>\r\n : <InputText\r\n {...core}\r\n {...field}\r\n invalid={!!errors[props.name]}\r\n readOnly={props.readonly}\r\n ref={props.ref}\r\n required={props.required}\r\n value={field.value ?? \"\"}\r\n onBlur={e => props.onBlur ? props.onBlur(e.target.value) : field.onBlur()}\r\n onChange={e => props.onChange !== undefined ? props.onChange(e.target.value) : field.onChange(e)}/>\r\n ))}\r\n <InputFeedback\r\n {...props}\r\n errors={errors}/>\r\n </>\r\n );\r\n }}\r\n control={props.control}\r\n name={props.name}\r\n rules={{ required: !props.required ? false : \"Campo obrigatório\" }}/>\r\n );\r\n}"],"mappings":";;;;;;;;;;AAmBA,SAAgB,EAAc,EAAE,SAAM,aAAU,WAAQ,GAAG,KAAyC;CAChG,IAAM,EAAE,SAAM,GAAG,MAAe;CAMhC,OACI,kBAAC,GAAD;EACI,SAAS,EAAE,UAAO,WAAW,EAAE,kBAEvB,kBAAA,GAAA,EAAA,UAAA,CACK,EAAM,SAAS,KAAA,IAYT,EAAM,SAAS,aACZ,kBAAC,GAAD;GACE,GAAI;GACJ,GAAI;GACJ,GAAI;GACJ,cAAa;GACb,SAAS,CAAC,CAAC,EAAO,EAAM;GACxB,UAAU,EAAM;GAChB,KAAK,EAAM;GACX,UAAU,EAAM;GAChB,OAAO,EAAM,SAAS;GACtB,SAAQ,MAAK,EAAM,SAAS,EAAM,OAAO,EAAE,OAAO,KAAK,IAAI,EAAM,OAAO;GACxE,WAAU,MAAK,EAAM,aAAa,KAAA,IAA6C,EAAM,SAAS,CAAC,IAAjD,EAAM,SAAS,EAAE,OAAO,KAAK;EAAuB,CAAA,IACnG,EAAM,SAAS,WACZ,kBAAC,GAAD;GACE,GAAI;GACJ,GAAI;GACJ,UAAU,EAAM,kBAAkB;GAClC,SAAS,CAAC,CAAC,EAAO,EAAM;GACxB,QAAO;GACP,KAAK,EAAM;GACX,mBAAmB,EAAM;GACzB,KAAK,EAAM;GACX,mBAAmB,EAAM;GACzB,MAAM,EAAM;GACZ,QAAQ,EAAM;GACd,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,QAAQ,EAAE,EAAE;GAC9C,UAAU,EAAM;GAChB,KAAK,EAAM;GACX,QAAQ,EAAM;GACd,aAAa,EAAM,0BAA0B;GAC7C,OAAO,EAAM,SAAS;GACtB,SAAQ,MAAK,EAAM,SAAS,EAAM,OAAO,EAAE,OAAO,KAAK,IAAI,EAAM,OAAO;GACxE,WAAU,MAAK,EAAM,aAAa,KAAA,IAAsC,EAAM,SAAS,EAAE,KAAK,IAAhD,EAAM,SAAS,EAAE,KAAK;EAA6B,CAAA,IACnG,kBAAC,GAAD;GACE,GAAI;GACJ,GAAI;GACJ,SAAS,CAAC,CAAC,EAAO,EAAM;GACxB,UAAU,EAAM;GAChB,KAAK,EAAM;GACX,UAAU,EAAM;GAChB,OAAO,EAAM,SAAS;GACtB,SAAQ,MAAK,EAAM,SAAS,EAAM,OAAO,EAAE,OAAO,KAAK,IAAI,EAAM,OAAO;GACxE,WAAU,MAAK,EAAM,aAAa,KAAA,IAA6C,EAAM,SAAS,CAAC,IAAjD,EAAM,SAAS,EAAE,OAAO,KAAK;EAAuB,CAAA,IAtD5G,kBAAC,GAAD;GACE,GAAI;GACJ,GAAI;GACJ,GAAI;GACJ,SAAS,CAAC,CAAC,EAAO,EAAM;GACxB,UAAU,EAAM;GAChB,KAAK,EAAM;GACX,UAAU,EAAM;GAChB,OAAO,EAAM,SAAS;GACtB,SAAQ,MAAK,EAAM,SAAS,EAAM,OAAO,EAAE,OAAO,KAAK,IAAI,EAAM,OAAO;GACxE,WAAU,MAAK,EAAM,aAAa,KAAA,IAA6C,EAAM,SAAS,CAAC,IAAjD,EAAM,SAAS,EAAE,OAAO,KAAK;EAAuB,CAAA,GA8C1G,kBAAC,GAAD;GACI,GAAI;GACI;EAAQ,CAAA,CACtB,EAAA,CAAA;EAGV,SAAS,EAAM;EACf,MAAM,EAAM;EACZ,OAAO,EAAE,UAAW,EAAM,WAAmB,sBAAR,GAA4B;CAAG,CAAA;AAEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/input/input.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box } from \"../box\";\nimport { InputProps } from \".\";\nimport { ApiFieldModeProps } from \"../api\";\nimport { InputHookForm } from \"./core/hookForm\";\nimport { PasswordProps } from \"primereact/password\";\nimport { InputControlled } from \"./core/controlled\";\nimport { InputMaskProps } from \"primereact/inputmask\";\nimport { InputTextProps } from \"primereact/inputtext\";\nimport { InputLabel, InputProps as getInputProps } from \"../api\";\n\n/**\n * Componente - `Input`\n *\n * Um componente versátil utilizado para entrada de dados simples.\n */\nexport function Input<T extends ApiFieldModeProps = \"Controlled\">(props: InputProps<T> & { mode?: T }) {\n\n let propsCore = props as any;\n let sizes = props.sizes === \"small\" ? \"p-inputtext-sm\" : props.sizes === \"large\" ? \"p-inputtext-lg\" : \"\";\n\n let core: InputTextProps & { ref: React.Ref<HTMLInputElement> | undefined } = {\n ...getInputProps(propsCore),\n className: sizes,\n type: props.type ?? \"text\",\n };\n let password: PasswordProps = {\n appendTo: \"self\",\n feedback: props.passwordFeedback,\n footer: props.passwordFooterTemplate,\n header: props.passwordHeaderTemplate,\n mediumLabel: \"Média\",\n promptLabel: \"Por favor, insira uma senha\",\n pt: { input: { className: \"w-100\" } },\n strongLabel: \"Forte\",\n toggleMask: props.passwordShow,\n weakLabel: \"Fraca\",\n content: props.passwordTemplate\n };\n let mask: InputMaskProps = {\n mask: props.mask === \"cpf\"\n ? \"999.999.999-99\"\n : props.mask === \"cnpj\"\n ? \"99.999.999/9999-99\"\n : props.mask,\n autoClear: props.maskAutoClear\n };\n\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Box\n className={props.className}\n css={props.css}\n size={props.size ?? \"100\"}>\n <InputLabel {...props}/>\n {/*@ts-ignore*/}\n {props.readonly && props.readonlyType === \"label\"\n ? (\n //@ts-ignore\n <p className={\"w-100 form-label-readonly \" + (props.readonlyClassName ?? \"\")}>{props.value}</p>\n )\n : (!props.mode || props.mode === \"Controlled\"\n ? <InputControlled\n core={core}\n masker={mask}\n password={password}\n {...propsCore}/>\n : <InputHookForm\n core={core}\n masker={mask}\n password={password}\n {...propsCore}/>)}\n </Box>\n );\n}\n\nInput.displayName = \"Input\";"],"mappings":";;;;;;;;;AAgBA,SAAgB,EAAkD,GAAqC;CAEnG,IAAI,IAAY,GACZ,IAAQ,EAAM,UAAU,UAAU,mBAAmB,EAAM,UAAU,UAAU,mBAAmB,IAElG,IAA0E;EAC1E,GAAG,EAAc,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/input/input.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { Box } from \"../box\";\r\nimport { InputProps } from \".\";\r\nimport { ApiFieldModeProps } from \"../api\";\r\nimport { InputHookForm } from \"./core/hookForm\";\r\nimport { PasswordProps } from \"primereact/password\";\r\nimport { InputControlled } from \"./core/controlled\";\r\nimport { InputMaskProps } from \"primereact/inputmask\";\r\nimport { InputTextProps } from \"primereact/inputtext\";\r\nimport { InputLabel, InputProps as getInputProps } from \"../api\";\r\n\r\n/**\r\n * Componente - `Input`\r\n *\r\n * Um componente versátil utilizado para entrada de dados simples.\r\n */\r\nexport function Input<T extends ApiFieldModeProps = \"Controlled\">(props: InputProps<T> & { mode?: T }) {\r\n\r\n let propsCore = props as any;\r\n let sizes = props.sizes === \"small\" ? \"p-inputtext-sm\" : props.sizes === \"large\" ? \"p-inputtext-lg\" : \"\";\r\n\r\n let core: InputTextProps & { ref: React.Ref<HTMLInputElement> | undefined } = {\r\n ...getInputProps(propsCore),\r\n className: sizes,\r\n type: props.type ?? \"text\",\r\n };\r\n let password: PasswordProps = {\r\n appendTo: \"self\",\r\n feedback: props.passwordFeedback,\r\n footer: props.passwordFooterTemplate,\r\n header: props.passwordHeaderTemplate,\r\n mediumLabel: \"Média\",\r\n promptLabel: \"Por favor, insira uma senha\",\r\n pt: { input: { className: \"w-100\" } },\r\n strongLabel: \"Forte\",\r\n toggleMask: props.passwordShow,\r\n weakLabel: \"Fraca\",\r\n content: props.passwordTemplate\r\n };\r\n let mask: InputMaskProps = {\r\n mask: props.mask === \"cpf\"\r\n ? \"999.999.999-99\"\r\n : props.mask === \"cnpj\"\r\n ? \"99.999.999/9999-99\"\r\n : props.mask,\r\n autoClear: props.maskAutoClear\r\n };\r\n\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Box\r\n className={props.className}\r\n css={props.css}\r\n size={props.size ?? \"100\"}>\r\n <InputLabel {...props}/>\r\n {/*@ts-ignore*/}\r\n {props.readonly && props.readonlyType === \"label\"\r\n ? (\r\n //@ts-ignore\r\n <p className={\"w-100 form-label-readonly \" + (props.readonlyClassName ?? \"\")}>{props.value}</p>\r\n )\r\n : (!props.mode || props.mode === \"Controlled\"\r\n ? <InputControlled\r\n core={core}\r\n masker={mask}\r\n password={password}\r\n {...propsCore}/>\r\n : <InputHookForm\r\n core={core}\r\n masker={mask}\r\n password={password}\r\n {...propsCore}/>)}\r\n </Box>\r\n );\r\n}\r\n\r\nInput.displayName = \"Input\";"],"mappings":";;;;;;;;;AAgBA,SAAgB,EAAkD,GAAqC;CAEnG,IAAI,IAAY,GACZ,IAAQ,EAAM,UAAU,UAAU,mBAAmB,EAAM,UAAU,UAAU,mBAAmB,IAElG,IAA0E;EAC1E,GAAG,EAAc,CAAS;EAC1B,WAAW;EACX,MAAM,EAAM,QAAQ;CACxB,GACI,IAA0B;EAC1B,UAAU;EACV,UAAU,EAAM;EAChB,QAAQ,EAAM;EACd,QAAQ,EAAM;EACd,aAAa;EACb,aAAa;EACb,IAAI,EAAE,OAAO,EAAE,WAAW,QAAQ,EAAE;EACpC,aAAa;EACb,YAAY,EAAM;EAClB,WAAW;EACX,SAAS,EAAM;CACnB,GACI,IAAuB;EACvB,MAAM,EAAM,SAAS,QACf,mBACA,EAAM,SAAS,SACX,uBACA,EAAM;EAChB,WAAW,EAAM;CACrB;CAOA,OACI,kBAAC,GAAD;EACI,WAAW,EAAM;EACjB,KAAK,EAAM;EACX,MAAM,EAAM,QAAQ;YAHxB,CAII,kBAAC,GAAD,EAAY,GAAI,EAAO,CAAA,GAEtB,EAAM,YAAY,EAAM,iBAAiB,UAGlC,kBAAC,KAAD;GAAG,WAAW,gCAAgC,EAAM,qBAAqB;aAAM,EAAM;EAAS,CAAA,IAE/F,CAAC,EAAM,QAAQ,EAAM,SAAS,eAC3B,kBAAC,GAAD;GACQ;GACN,QAAQ;GACE;GACV,GAAI;EAAW,CAAA,IACjB,kBAAC,GAAD;GACQ;GACN,QAAQ;GACE;GACV,GAAI;EAAW,CAAA,CAC1B;;AAEb;AAEA,EAAM,cAAc"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export interface InputFilterAutocompleteProps {
|
|
2
|
-
/**
|
|
3
|
-
* Sugestões do autocomplete
|
|
4
|
-
*/
|
|
5
|
-
data: Array<{ id: number, label: string }>
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Realiza a pesquisa do autocomplete de acordo com query
|
|
9
|
-
*/
|
|
10
|
-
onSearch(query: string, selected?: number[]): void
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Define o número de elementos que poser ser selecionado no autocomplete
|
|
14
|
-
*/
|
|
15
|
-
autocompleteSelectLimit?: number
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Define a altura da caixa de seleção dos dados
|
|
19
|
-
*/
|
|
20
|
-
autocompleteScrollHeight?: string
|
|
1
|
+
export interface InputFilterAutocompleteProps {
|
|
2
|
+
/**
|
|
3
|
+
* Sugestões do autocomplete
|
|
4
|
+
*/
|
|
5
|
+
data: Array<{ id: number, label: string }>
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Realiza a pesquisa do autocomplete de acordo com query
|
|
9
|
+
*/
|
|
10
|
+
onSearch(query: string, selected?: number[]): void
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Define o número de elementos que poser ser selecionado no autocomplete
|
|
14
|
+
*/
|
|
15
|
+
autocompleteSelectLimit?: number
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Define a altura da caixa de seleção dos dados
|
|
19
|
+
*/
|
|
20
|
+
autocompleteScrollHeight?: string
|
|
21
21
|
}
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
import { InputFilterAutocompleteProps } from './autocomplete';
|
|
2
2
|
import { ApiComponentProps, ApiFieldComponentProps } from '../../api';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export type InputFilterOptionsProps = "=" | "!=" | "<" | ">" | "<=" | ">=" | "{}" | "%" | "!%";
|
|
6
|
+
|
|
7
|
+
export type InputFilterOptionsMap = {
|
|
8
|
+
text: "=" | "!=" | "%" | "!%"
|
|
9
|
+
date: "=" | "!=" | "<" | ">" | "<=" | ">=" | "{}"
|
|
10
|
+
autocomplete: "=" | "!=" | "%" | "!%"
|
|
11
|
+
number: "=" | "!=" | "<" | ">" | "<=" | ">="
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type InputFilterCoreProps<T extends keyof InputFilterOptionsMap> = InputFilterProps<T> & {
|
|
15
|
+
options: any[],
|
|
16
|
+
select: string
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
interface InputFilterBaseProps<T extends keyof InputFilterOptionsMap> extends ApiComponentProps, ApiFieldComponentProps {
|
|
20
|
+
/**
|
|
21
|
+
* Valor inicial do componente
|
|
22
|
+
*/
|
|
23
|
+
value?: string
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Retorna o valor modificado pelo componente
|
|
27
|
+
*/
|
|
28
|
+
onChange(value: string | null): void
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Define o tipo do filtro
|
|
32
|
+
*/
|
|
33
|
+
type?: T;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Define as opções do filtro
|
|
37
|
+
*/
|
|
38
|
+
options?: Array<InputFilterOptionsMap[T]>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type InputFilterProps<T extends keyof InputFilterOptionsMap> = T extends "autocomplete"
|
|
42
|
+
? InputFilterBaseProps<"autocomplete"> & InputFilterAutocompleteProps
|
|
43
|
+
: InputFilterBaseProps<T>;
|
|
44
|
+
|
|
43
45
|
export * from './autocomplete';
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
.input-filter-container {
|
|
2
|
-
border-radius: $borderRadius;
|
|
3
|
-
border: 1px dashed #{$shade300};
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.input-filter-content {
|
|
7
|
-
width: 100%;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
gap: .5rem;
|
|
11
|
-
|
|
12
|
-
.p-autocomplete-multiple {
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-autocomplete-multiple-container {
|
|
17
|
-
width: 100%;
|
|
18
|
-
padding: .2rem .5rem;
|
|
19
|
-
|
|
20
|
-
.form-control {
|
|
21
|
-
border: none;
|
|
22
|
-
padding: .2rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.p-autocomplete-token {
|
|
26
|
-
padding: .2rem .5rem;
|
|
27
|
-
margin: 0;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.p-autocomplete-multiple-container.p-focus {
|
|
32
|
-
box-shadow: none;
|
|
33
|
-
border-color: var(--input-filter-border-color);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.input-filter-select {
|
|
38
|
-
width: 40%;
|
|
39
|
-
max-width: 200px;
|
|
40
|
-
min-width: 130px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.input-filter-field {
|
|
44
|
-
width: 100% !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.input-filter-field-date {
|
|
48
|
-
flex: 1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.input-filter-field-date.year {
|
|
52
|
-
flex: 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.input-filter-autocomplete-panel {
|
|
56
|
-
.p-autocomplete-items {
|
|
57
|
-
padding-left: 0 !important;
|
|
58
|
-
}
|
|
1
|
+
.input-filter-container {
|
|
2
|
+
border-radius: $borderRadius;
|
|
3
|
+
border: 1px dashed #{$shade300};
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.input-filter-content {
|
|
7
|
+
width: 100%;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
gap: .5rem;
|
|
11
|
+
|
|
12
|
+
.p-autocomplete-multiple {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.p-autocomplete-multiple-container {
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: .2rem .5rem;
|
|
19
|
+
|
|
20
|
+
.form-control {
|
|
21
|
+
border: none;
|
|
22
|
+
padding: .2rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p-autocomplete-token {
|
|
26
|
+
padding: .2rem .5rem;
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.p-autocomplete-multiple-container.p-focus {
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
border-color: var(--input-filter-border-color);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.input-filter-select {
|
|
38
|
+
width: 40%;
|
|
39
|
+
max-width: 200px;
|
|
40
|
+
min-width: 130px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.input-filter-field {
|
|
44
|
+
width: 100% !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.input-filter-field-date {
|
|
48
|
+
flex: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.input-filter-field-date.year {
|
|
52
|
+
flex: 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.input-filter-autocomplete-panel {
|
|
56
|
+
.p-autocomplete-items {
|
|
57
|
+
padding-left: 0 !important;
|
|
58
|
+
}
|
|
59
59
|
}
|