@orangesix/react 1.4.0 → 2.0.3
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 +57 -0
- package/accordion/accordion/index.cjs.js +2 -0
- package/accordion/accordion/index.cjs.js.map +1 -0
- package/accordion/accordion/index.esm.js +38 -0
- package/accordion/accordion/index.esm.js.map +1 -0
- package/accordion/accordion.d.ts +11 -0
- package/accordion/index.cjs.js +1 -1
- package/accordion/index.cjs.js.map +1 -1
- package/accordion/index.d.ts +2 -99
- package/accordion/index.esm.js +4 -1
- package/accordion/index.esm.js.map +1 -1
- package/api/@types/css.d.ts +92 -0
- package/api/@types/field.d.ts +157 -0
- package/api/@types/index.d.ts +29 -0
- package/api/index.cjs.js +1 -1
- package/api/index.cjs.js.map +1 -1
- package/api/index.d.ts +2 -310
- package/api/index.esm.js +6 -1
- package/api/index.esm.js.map +1 -1
- package/api/input/index.cjs.js +2 -0
- package/api/input/index.cjs.js.map +1 -0
- package/api/input/index.esm.js +40 -0
- package/api/input/index.esm.js.map +1 -0
- package/api/input.d.ts +38 -0
- package/autocomplete/@types/index.d.ts +70 -0
- package/autocomplete/autocomplete/index.cjs.js +2 -0
- package/autocomplete/autocomplete/index.cjs.js.map +1 -0
- package/autocomplete/autocomplete/index.esm.js +41 -0
- package/autocomplete/autocomplete/index.esm.js.map +1 -0
- package/autocomplete/autocomplete.d.ts +11 -0
- package/autocomplete/core/core/index.cjs.js +2 -0
- package/autocomplete/core/core/index.cjs.js.map +1 -0
- package/autocomplete/core/core/index.esm.js +21 -0
- package/autocomplete/core/core/index.esm.js.map +1 -0
- package/autocomplete/core/core.d.ts +8 -0
- package/autocomplete/core/event/index.cjs.js +2 -0
- package/autocomplete/core/event/index.cjs.js.map +1 -0
- package/autocomplete/core/event/index.esm.js +17 -0
- package/autocomplete/core/event/index.esm.js.map +1 -0
- package/autocomplete/core/event.d.ts +8 -0
- package/autocomplete/index.cjs.js +1 -1
- package/autocomplete/index.cjs.js.map +1 -1
- package/autocomplete/index.d.ts +2 -179
- package/autocomplete/index.esm.js +4 -1
- package/autocomplete/index.esm.js.map +1 -1
- package/box/@types/index.d.ts +29 -0
- package/box/_box.scss +56 -56
- package/box/box/index.cjs.js +2 -0
- package/box/box/index.cjs.js.map +1 -0
- package/box/box/index.esm.js +27 -0
- package/box/box/index.esm.js.map +1 -0
- package/box/box.d.ts +12 -0
- package/box/index.cjs.js +1 -1
- package/box/index.cjs.js.map +1 -1
- package/box/index.d.ts +2 -153
- package/box/index.esm.js +4 -1
- package/box/index.esm.js.map +1 -1
- package/button/@types/index.d.ts +73 -0
- package/button/button/index.cjs.js +2 -0
- package/button/button/index.cjs.js.map +1 -0
- package/button/button/index.esm.js +29 -0
- package/button/button/index.esm.js.map +1 -0
- package/button/button.d.ts +12 -0
- package/button/index.cjs.js +1 -1
- package/button/index.cjs.js.map +1 -1
- package/button/index.d.ts +2 -112
- package/button/index.esm.js +4 -1
- package/button/index.esm.js.map +1 -1
- package/button/package.json +5 -5
- package/editor/@types/index.d.ts +46 -0
- package/editor/_editor.scss +106 -106
- package/editor/const/index.cjs.js +2 -0
- package/editor/const/index.cjs.js.map +1 -0
- package/editor/const/index.esm.js +32 -0
- package/editor/const/index.esm.js.map +1 -0
- package/editor/const.d.ts +3 -0
- package/editor/core/bold/index.cjs.js +2 -0
- package/editor/core/bold/index.cjs.js.map +1 -0
- package/editor/core/bold/index.esm.js +16 -0
- package/editor/core/bold/index.esm.js.map +1 -0
- package/editor/core/bold.d.ts +9 -0
- package/editor/core/bulletlist/index.cjs.js +2 -0
- package/editor/core/bulletlist/index.cjs.js.map +1 -0
- package/editor/core/bulletlist/index.esm.js +16 -0
- package/editor/core/bulletlist/index.esm.js.map +1 -0
- package/editor/core/bulletlist.d.ts +9 -0
- package/editor/core/code/index.cjs.js +2 -0
- package/editor/core/code/index.cjs.js.map +1 -0
- package/editor/core/code/index.esm.js +17 -0
- package/editor/core/code/index.esm.js.map +1 -0
- package/editor/core/code.d.ts +9 -0
- package/editor/core/color/index.cjs.js +2 -0
- package/editor/core/color/index.cjs.js.map +1 -0
- package/editor/core/color/index.esm.js +20 -0
- package/editor/core/color/index.esm.js.map +1 -0
- package/editor/core/color.d.ts +9 -0
- package/editor/core/highlight/index.cjs.js +2 -0
- package/editor/core/highlight/index.cjs.js.map +1 -0
- package/editor/core/highlight/index.esm.js +17 -0
- package/editor/core/highlight/index.esm.js.map +1 -0
- package/editor/core/highlight.d.ts +9 -0
- package/editor/core/image/index.cjs.js +2 -0
- package/editor/core/image/index.cjs.js.map +1 -0
- package/editor/core/image/index.esm.js +50 -0
- package/editor/core/image/index.esm.js.map +1 -0
- package/editor/core/image.d.ts +9 -0
- package/editor/core/index/index.cjs.js +2 -0
- package/editor/core/index/index.cjs.js.map +1 -0
- package/editor/core/index/index.esm.js +107 -0
- package/editor/core/index/index.esm.js.map +1 -0
- package/editor/core/index.d.ts +9 -0
- package/editor/core/italic/index.cjs.js +2 -0
- package/editor/core/italic/index.cjs.js.map +1 -0
- package/editor/core/italic/index.esm.js +16 -0
- package/editor/core/italic/index.esm.js.map +1 -0
- package/editor/core/italic.d.ts +9 -0
- package/editor/core/link/index.cjs.js +2 -0
- package/editor/core/link/index.cjs.js.map +1 -0
- package/editor/core/link/index.esm.js +56 -0
- package/editor/core/link/index.esm.js.map +1 -0
- package/editor/core/link.d.ts +9 -0
- package/editor/core/orderlist/index.cjs.js +2 -0
- package/editor/core/orderlist/index.cjs.js.map +1 -0
- package/editor/core/orderlist/index.esm.js +16 -0
- package/editor/core/orderlist/index.esm.js.map +1 -0
- package/editor/core/orderlist.d.ts +9 -0
- package/editor/core/strike/index.cjs.js +2 -0
- package/editor/core/strike/index.cjs.js.map +1 -0
- package/editor/core/strike/index.esm.js +16 -0
- package/editor/core/strike/index.esm.js.map +1 -0
- package/editor/core/strike.d.ts +9 -0
- package/editor/core/text/index.cjs.js +2 -0
- package/editor/core/text/index.cjs.js.map +1 -0
- package/editor/core/text/index.esm.js +43 -0
- package/editor/core/text/index.esm.js.map +1 -0
- package/editor/core/text.d.ts +9 -0
- package/editor/core/underline/index.cjs.js +2 -0
- package/editor/core/underline/index.cjs.js.map +1 -0
- package/editor/core/underline/index.esm.js +16 -0
- package/editor/core/underline/index.esm.js.map +1 -0
- package/editor/core/underline.d.ts +9 -0
- package/editor/editor/index.cjs.js +2 -0
- package/editor/editor/index.cjs.js.map +1 -0
- package/editor/editor/index.esm.js +80 -0
- package/editor/editor/index.esm.js.map +1 -0
- package/editor/editor.d.ts +12 -0
- package/editor/index.cjs.js +1 -1
- package/editor/index.cjs.js.map +1 -1
- package/editor/index.d.ts +2 -130
- package/editor/index.esm.js +4 -1
- package/editor/index.esm.js.map +1 -1
- package/input/@types/index.d.ts +111 -0
- package/input/core/controlled/index.cjs.js +2 -0
- package/input/core/controlled/index.cjs.js.map +1 -0
- package/input/core/controlled/index.esm.js +87 -0
- package/input/core/controlled/index.esm.js.map +1 -0
- package/input/core/controlled.d.ts +17 -0
- package/input/core/hookForm/index.cjs.js +2 -0
- package/input/core/hookForm/index.cjs.js.map +1 -0
- package/input/core/hookForm/index.esm.js +97 -0
- package/input/core/hookForm/index.esm.js.map +1 -0
- package/input/core/hookForm.d.ts +17 -0
- package/input/index.cjs.js +1 -1
- package/input/index.cjs.js.map +1 -1
- package/input/index.d.ts +2 -309
- package/input/index.esm.js +4 -1
- package/input/index.esm.js.map +1 -1
- package/input/input/index.cjs.js +2 -0
- package/input/input/index.cjs.js.map +1 -0
- package/input/input/index.esm.js +63 -0
- package/input/input/index.esm.js.map +1 -0
- package/input/input.d.ts +14 -0
- package/inputfilter/@types/autocomplete.d.ts +21 -0
- package/inputfilter/@types/index.d.ts +43 -0
- package/inputfilter/_inputfilter.scss +58 -58
- package/inputfilter/const/index.cjs.js +2 -0
- package/inputfilter/const/index.cjs.js.map +1 -0
- package/inputfilter/const/index.esm.js +16 -0
- package/inputfilter/const/index.esm.js.map +1 -0
- package/inputfilter/const.d.ts +6 -0
- package/inputfilter/core/autocomplete/index.cjs.js +2 -0
- package/inputfilter/core/autocomplete/index.cjs.js.map +1 -0
- package/inputfilter/core/autocomplete/index.esm.js +36 -0
- package/inputfilter/core/autocomplete/index.esm.js.map +1 -0
- package/inputfilter/core/autocomplete.d.ts +7 -0
- package/inputfilter/core/date/index.cjs.js +2 -0
- package/inputfilter/core/date/index.cjs.js.map +1 -0
- package/inputfilter/core/date/index.esm.js +46 -0
- package/inputfilter/core/date/index.esm.js.map +1 -0
- package/inputfilter/core/date.d.ts +7 -0
- package/inputfilter/core/number/index.cjs.js +2 -0
- package/inputfilter/core/number/index.cjs.js.map +1 -0
- package/inputfilter/core/number/index.esm.js +26 -0
- package/inputfilter/core/number/index.esm.js.map +1 -0
- package/inputfilter/core/number.d.ts +7 -0
- package/inputfilter/core/text/index.cjs.js +2 -0
- package/inputfilter/core/text/index.cjs.js.map +1 -0
- package/inputfilter/core/text/index.esm.js +20 -0
- package/inputfilter/core/text/index.esm.js.map +1 -0
- package/inputfilter/core/text.d.ts +7 -0
- package/inputfilter/function/handle/index.cjs.js +2 -0
- package/inputfilter/function/handle/index.cjs.js.map +1 -0
- package/inputfilter/function/handle/index.esm.js +59 -0
- package/inputfilter/function/handle/index.esm.js.map +1 -0
- package/inputfilter/function/handle.d.ts +69 -0
- package/inputfilter/function/validate/index.cjs.js +2 -0
- package/inputfilter/function/validate/index.cjs.js.map +1 -0
- package/inputfilter/function/validate/index.esm.js +16 -0
- package/inputfilter/function/validate/index.esm.js.map +1 -0
- package/inputfilter/function/validate.d.ts +7 -0
- package/inputfilter/index.cjs.js +1 -1
- package/inputfilter/index.cjs.js.map +1 -1
- package/inputfilter/index.d.ts +3 -185
- package/inputfilter/index.esm.js +9 -1
- package/inputfilter/index.esm.js.map +1 -1
- package/inputfilter/inputfilter/index.cjs.js +2 -0
- package/inputfilter/inputfilter/index.cjs.js.map +1 -0
- package/inputfilter/inputfilter/index.esm.js +103 -0
- package/inputfilter/inputfilter/index.esm.js.map +1 -0
- package/inputfilter/inputfilter.d.ts +12 -0
- package/inputfilter/legend/index.cjs.js +6 -0
- package/inputfilter/legend/index.cjs.js.map +1 -0
- package/inputfilter/legend/index.esm.js +48 -0
- package/inputfilter/legend/index.esm.js.map +1 -0
- package/inputfilter/legend.d.ts +22 -0
- package/loading/@types/index.d.ts +44 -0
- package/loading/_loading.scss +10 -10
- package/loading/index.cjs.js +1 -1
- package/loading/index.cjs.js.map +1 -1
- package/loading/index.d.ts +2 -175
- package/loading/index.esm.js +4 -1
- package/loading/index.esm.js.map +1 -1
- package/loading/loading/index.cjs.js +2 -0
- package/loading/loading/index.cjs.js.map +1 -0
- package/loading/loading/index.esm.js +30 -0
- package/loading/loading/index.esm.js.map +1 -0
- package/loading/loading.d.ts +12 -0
- package/loading/package.json +5 -5
- package/message/@types/index.d.ts +97 -0
- package/message/core/modal/index.cjs.js +2 -0
- package/message/core/modal/index.cjs.js.map +1 -0
- package/message/core/modal/index.esm.js +67 -0
- package/message/core/modal/index.esm.js.map +1 -0
- package/message/core/modal.d.ts +7 -0
- package/message/index.cjs.js +1 -1
- package/message/index.cjs.js.map +1 -1
- package/message/index.d.ts +2 -113
- package/message/index.esm.js +4 -1
- package/message/index.esm.js.map +1 -1
- package/message/message/index.cjs.js +2 -0
- package/message/message/index.cjs.js.map +1 -0
- package/message/message/index.esm.js +10 -0
- package/message/message/index.esm.js.map +1 -0
- package/message/message.d.ts +13 -0
- package/message/package.json +5 -5
- package/modal/@types/index.d.ts +63 -0
- package/modal/core/core/index.cjs.js +2 -0
- package/modal/core/core/index.cjs.js.map +1 -0
- package/modal/core/core/index.esm.js +28 -0
- package/modal/core/core/index.esm.js.map +1 -0
- package/modal/core/core.d.ts +7 -0
- package/modal/index.cjs.js +1 -1
- package/modal/index.cjs.js.map +1 -1
- package/modal/index.d.ts +2 -76
- package/modal/index.esm.js +4 -1
- package/modal/index.esm.js.map +1 -1
- package/modal/modal/index.cjs.js +2 -0
- package/modal/modal/index.cjs.js.map +1 -0
- package/modal/modal/index.esm.js +28 -0
- package/modal/modal/index.esm.js.map +1 -0
- package/modal/modal.d.ts +11 -0
- package/package.json +45 -43
- package/pdf/@types/index.d.ts +12 -0
- package/pdf/index.cjs.js +2 -0
- package/pdf/index.d.ts +2 -0
- package/pdf/index.esm.js +5 -0
- package/{style → pdf}/index.esm.js.map +1 -1
- package/pdf/package.json +5 -0
- package/pdf/pdf/index.cjs.js +2 -0
- package/pdf/pdf/index.cjs.js.map +1 -0
- package/pdf/pdf/index.esm.js +99 -0
- package/pdf/pdf/index.esm.js.map +1 -0
- package/pdf/pdf.d.ts +8 -0
- package/pdf/style/pdf.css +54 -0
- package/picklist/@types/index.d.ts +36 -0
- package/picklist/core/core/index.cjs.js +2 -0
- package/picklist/core/core/index.cjs.js.map +1 -0
- package/picklist/core/core/index.esm.js +33 -0
- package/picklist/core/core/index.esm.js.map +1 -0
- package/picklist/core/core.d.ts +7 -0
- package/picklist/index.cjs.js +1 -1
- package/picklist/index.cjs.js.map +1 -1
- package/picklist/index.d.ts +2 -77
- package/picklist/index.esm.js +4 -1
- package/picklist/index.esm.js.map +1 -1
- package/picklist/picklist/index.cjs.js +2 -0
- package/picklist/picklist/index.cjs.js.map +1 -0
- package/picklist/picklist/index.esm.js +44 -0
- package/picklist/picklist/index.esm.js.map +1 -0
- package/picklist/picklist.d.ts +11 -0
- package/picklist/types.d.ts +35 -0
- package/radio/@types/index.d.ts +40 -0
- package/radio/core/controlled/index.cjs.js +2 -0
- package/radio/core/controlled/index.cjs.js.map +1 -0
- package/radio/core/controlled/index.esm.js +41 -0
- package/radio/core/controlled/index.esm.js.map +1 -0
- package/radio/core/controlled.d.ts +11 -0
- package/radio/core/hookForm/index.cjs.js +2 -0
- package/radio/core/hookForm/index.cjs.js.map +1 -0
- package/radio/core/hookForm/index.esm.js +58 -0
- package/radio/core/hookForm/index.esm.js.map +1 -0
- package/radio/core/hookForm.d.ts +11 -0
- package/radio/index.cjs.js +1 -1
- package/radio/index.cjs.js.map +1 -1
- package/radio/index.d.ts +2 -239
- package/radio/index.esm.js +4 -1
- package/radio/index.esm.js.map +1 -1
- package/radio/radio/index.cjs.js +2 -0
- package/radio/radio/index.cjs.js.map +1 -0
- package/radio/radio/index.esm.js +39 -0
- package/radio/radio/index.esm.js.map +1 -0
- package/radio/radio.d.ts +14 -0
- package/select/@types/index.d.ts +46 -0
- package/select/core/controlled/index.cjs.js +2 -0
- package/select/core/controlled/index.cjs.js.map +1 -0
- package/select/core/controlled/index.esm.js +42 -0
- package/select/core/controlled/index.esm.js.map +1 -0
- package/select/core/controlled.d.ts +9 -0
- package/select/core/hookForm/index.cjs.js +2 -0
- package/select/core/hookForm/index.cjs.js.map +1 -0
- package/select/core/hookForm/index.esm.js +53 -0
- package/select/core/hookForm/index.esm.js.map +1 -0
- package/select/core/hookForm.d.ts +9 -0
- package/select/index.cjs.js +1 -1
- package/select/index.cjs.js.map +1 -1
- package/select/index.d.ts +2 -247
- package/select/index.esm.js +4 -1
- package/select/index.esm.js.map +1 -1
- package/select/select/index.cjs.js +2 -0
- package/select/select/index.cjs.js.map +1 -0
- package/select/select/index.esm.js +25 -0
- package/select/select/index.esm.js.map +1 -0
- package/select/select.d.ts +14 -0
- package/style/scss/_accordion.scss +118 -0
- package/style/scss/_autocomplete.scss +106 -0
- package/style/scss/_avatar.scss +34 -0
- package/style/scss/_badge.scss +77 -0
- package/style/scss/_breadcrumb.scss +42 -0
- package/style/scss/_button.scss +644 -0
- package/style/scss/_calendar.scss +251 -0
- package/style/scss/_card.scss +30 -0
- package/style/scss/_carousel.scss +39 -0
- package/style/scss/_cascadeselect.scss +107 -0
- package/style/scss/_checkbox.scss +181 -0
- package/style/scss/_chip.scss +39 -0
- package/style/scss/_chips.scss +102 -0
- package/style/scss/_colorpicker.scss +18 -0
- package/style/scss/_colors.scss +18 -0
- package/style/scss/_confirmpopup.scss +72 -0
- package/style/scss/_contextmenu.scss +39 -0
- package/style/scss/_datascroller.scss +47 -0
- package/style/scss/_datatable.scss +415 -0
- package/style/scss/_dataview.scss +47 -0
- package/style/scss/_dialog.scss +78 -0
- package/style/scss/_divider.scss +31 -0
- package/style/scss/_dock.scss +109 -0
- package/style/scss/_dropdown.scss +255 -0
- package/style/scss/_editor.scss +122 -0
- package/style/scss/_extensions.scss +27 -0
- package/style/scss/_fieldset.scss +47 -0
- package/style/scss/_fileupload.scss +41 -0
- package/style/scss/_filter.scss +138 -0
- package/style/scss/_galleria.scss +153 -0
- package/style/scss/_iconfield.scss +11 -0
- package/style/scss/_image.scss +54 -0
- package/style/scss/_inlinemessage.scss +69 -0
- package/style/scss/_inplace.scss +17 -0
- package/style/scss/_inputgroup.scss +74 -0
- package/style/scss/_inputicon.scss +15 -0
- package/style/scss/_inputnumber.scss +5 -0
- package/style/scss/_inputotp.scss +10 -0
- package/style/scss/_inputswitch.scss +110 -0
- package/style/scss/_inputtext.scss +101 -0
- package/style/scss/_listbox.scss +139 -0
- package/style/scss/_megamenu.scss +141 -0
- package/style/scss/_mention.scss +31 -0
- package/style/scss/_menu.scss +33 -0
- package/style/scss/_menubar.scss +216 -0
- package/style/scss/_message.scss +107 -0
- package/style/scss/_metergroup.scss +81 -0
- package/style/scss/_mixins.scss +243 -0
- package/style/scss/_multiselect.scss +278 -0
- package/style/scss/_orderlist.scss +86 -0
- package/style/scss/_organizationchart.scss +50 -0
- package/style/scss/_overlaypanel.scss +64 -0
- package/style/scss/_paginator.scss +91 -0
- package/style/scss/_panel.scss +47 -0
- package/style/scss/_panelmenu.scss +153 -0
- package/style/scss/_password.scss +33 -0
- package/style/scss/_picklist.scss +74 -0
- package/style/scss/_progressbar.scss +17 -0
- package/style/scss/_radiobutton.scss +170 -0
- package/style/scss/_rating.scss +81 -0
- package/style/scss/_reset.scss +76 -0
- package/style/scss/_root.scss +110 -0
- package/style/scss/_scrollpanel.scss +10 -0
- package/style/scss/_scrolltop.scss +25 -0
- package/style/scss/_selectbutton.scss +50 -0
- package/style/scss/_sidebar.scss +23 -0
- package/style/scss/_skeleton.scss +8 -0
- package/style/scss/_slidemenu.scss +60 -0
- package/style/scss/_slider.scss +49 -0
- package/style/scss/_speeddial.scss +91 -0
- package/style/scss/_splitbutton.scss +359 -0
- package/style/scss/_splitter.scss +23 -0
- package/style/scss/_stepper.scss +136 -0
- package/style/scss/_steps.scss +57 -0
- package/style/scss/_tabmenu.scss +50 -0
- package/style/scss/_tabview.scss +148 -0
- package/style/scss/_tag.scss +40 -0
- package/style/scss/_terminal.scss +12 -0
- package/style/scss/_tieredmenu.scss +43 -0
- package/style/scss/_timeline.scss +38 -0
- package/style/scss/_toast.scss +100 -0
- package/style/scss/_togglebutton.scss +99 -0
- package/style/scss/_toolbar.scss +11 -0
- package/style/scss/_tooltip.scss +33 -0
- package/style/scss/_tree.scss +184 -0
- package/style/scss/_treeselect.scss +151 -0
- package/style/scss/_treetable.scss +431 -0
- package/style/scss/_tristatecheckbox.scss +46 -0
- package/style/scss/_variables.scss +929 -929
- package/style/scss/bootstrap.scss +31 -31
- package/style/scss/button/_button.scss +644 -0
- package/style/scss/button/_speeddial.scss +91 -0
- package/style/scss/button/_splitbutton.scss +359 -0
- package/style/scss/core/_reset.scss +75 -75
- package/style/scss/data/_carousel.scss +39 -0
- package/style/scss/data/_datascroller.scss +47 -0
- package/style/scss/data/_datatable.scss +415 -0
- package/style/scss/data/_dataview.scss +47 -0
- package/style/scss/data/_filter.scss +138 -0
- package/style/scss/data/_orderlist.scss +86 -0
- package/style/scss/data/_organizationchart.scss +50 -0
- package/style/scss/data/_paginator.scss +91 -0
- package/style/scss/data/_picklist.scss +74 -0
- package/style/scss/data/_timeline.scss +38 -0
- package/style/scss/data/_tree.scss +184 -0
- package/style/scss/data/_treetable.scss +431 -0
- package/style/scss/file/_fileupload.scss +41 -0
- package/style/scss/input/_autocomplete.scss +106 -0
- package/style/scss/input/_calendar.scss +251 -0
- package/style/scss/input/_cascadeselect.scss +107 -0
- package/style/scss/input/_checkbox.scss +181 -0
- package/style/scss/input/_chips.scss +102 -0
- package/style/scss/input/_colorpicker.scss +18 -0
- package/style/scss/input/_dropdown.scss +255 -0
- package/style/scss/input/_editor.scss +122 -0
- package/style/scss/input/_iconfield.scss +11 -0
- package/style/scss/input/_inputgroup.scss +74 -0
- package/style/scss/input/_inputicon.scss +15 -0
- package/style/scss/input/_inputnumber.scss +5 -0
- package/style/scss/input/_inputotp.scss +10 -0
- package/style/scss/input/_inputswitch.scss +110 -0
- package/style/scss/input/_inputtext.scss +101 -0
- package/style/scss/input/_listbox.scss +139 -0
- package/style/scss/input/_mention.scss +31 -0
- package/style/scss/input/_multiselect.scss +278 -0
- package/style/scss/input/_password.scss +33 -0
- package/style/scss/input/_radiobutton.scss +170 -0
- package/style/scss/input/_rating.scss +81 -0
- package/style/scss/input/_selectbutton.scss +50 -0
- package/style/scss/input/_slider.scss +49 -0
- package/style/scss/input/_togglebutton.scss +99 -0
- package/style/scss/input/_treeselect.scss +151 -0
- package/style/scss/input/_tristatecheckbox.scss +46 -0
- package/style/scss/menu/_breadcrumb.scss +42 -0
- package/style/scss/menu/_contextmenu.scss +39 -0
- package/style/scss/menu/_dock.scss +109 -0
- package/style/scss/menu/_megamenu.scss +141 -0
- package/style/scss/menu/_menu.scss +33 -0
- package/style/scss/menu/_menubar.scss +216 -0
- package/style/scss/menu/_panelmenu.scss +153 -0
- package/style/scss/menu/_slidemenu.scss +60 -0
- package/style/scss/menu/_steps.scss +57 -0
- package/style/scss/menu/_tabmenu.scss +50 -0
- package/style/scss/menu/_tieredmenu.scss +43 -0
- package/style/scss/messages/_inlinemessage.scss +69 -0
- package/style/scss/messages/_message.scss +107 -0
- package/style/scss/messages/_toast.scss +100 -0
- package/style/scss/misc/_avatar.scss +34 -0
- package/style/scss/misc/_badge.scss +77 -0
- package/style/scss/misc/_blockui.scss +0 -0
- package/style/scss/misc/_chip.scss +39 -0
- package/style/scss/misc/_inplace.scss +17 -0
- package/style/scss/misc/_metergroup.scss +81 -0
- package/style/scss/misc/_progressbar.scss +17 -0
- package/style/scss/misc/_scrolltop.scss +25 -0
- package/style/scss/misc/_skeleton.scss +8 -0
- package/style/scss/misc/_tag.scss +40 -0
- package/style/scss/misc/_terminal.scss +12 -0
- package/style/scss/multimedia/_galleria.scss +153 -0
- package/style/scss/multimedia/_image.scss +54 -0
- package/style/scss/overlay/_confirmpopup.scss +72 -0
- package/style/scss/overlay/_dialog.scss +78 -0
- package/style/scss/overlay/_overlaypanel.scss +64 -0
- package/style/scss/overlay/_sidebar.scss +23 -0
- package/style/scss/overlay/_tooltip.scss +33 -0
- package/style/scss/panel/_accordion.scss +118 -0
- package/style/scss/panel/_card.scss +30 -0
- package/style/scss/panel/_divider.scss +31 -0
- package/style/scss/panel/_fieldset.scss +47 -0
- package/style/scss/panel/_panel.scss +47 -0
- package/style/scss/panel/_scrollpanel.scss +10 -0
- package/style/scss/panel/_splitter.scss +23 -0
- package/style/scss/panel/_stepper.scss +136 -0
- package/style/scss/panel/_tabview.scss +148 -0
- package/style/scss/panel/_toolbar.scss +11 -0
- package/switch/@types/index.d.ts +21 -0
- package/switch/core/controlled/index.cjs.js +2 -0
- package/switch/core/controlled/index.cjs.js.map +1 -0
- package/switch/core/controlled/index.esm.js +29 -0
- package/switch/core/controlled/index.esm.js.map +1 -0
- package/switch/core/controlled.d.ts +7 -0
- package/switch/core/hookForm/index.cjs.js +2 -0
- package/switch/core/hookForm/index.cjs.js.map +1 -0
- package/switch/core/hookForm/index.esm.js +41 -0
- package/switch/core/hookForm/index.esm.js.map +1 -0
- package/switch/core/hookForm.d.ts +7 -0
- package/switch/index.cjs.js +1 -1
- package/switch/index.cjs.js.map +1 -1
- package/switch/index.d.ts +2 -220
- package/switch/index.esm.js +4 -1
- package/switch/index.esm.js.map +1 -1
- package/switch/switch/index.cjs.js +2 -0
- package/switch/switch/index.cjs.js.map +1 -0
- package/switch/switch/index.esm.js +25 -0
- package/switch/switch/index.esm.js.map +1 -0
- package/switch/switch.d.ts +14 -0
- package/table/@types/click.d.ts +7 -0
- package/table/@types/column.d.ts +59 -0
- package/table/@types/edit.d.ts +6 -0
- package/table/@types/group.d.ts +26 -0
- package/table/@types/index.d.ts +73 -0
- package/table/@types/pagination.d.ts +27 -0
- package/table/@types/reorder.d.ts +12 -0
- package/table/@types/selection.d.ts +16 -0
- package/table/@types/sort.d.ts +8 -0
- package/table/@types/style.d.ts +21 -0
- package/table/@types/template.d.ts +22 -0
- package/table/core/click/index.cjs.js +2 -0
- package/table/core/click/index.cjs.js.map +1 -0
- package/table/core/click/index.esm.js +12 -0
- package/table/core/click/index.esm.js.map +1 -0
- package/table/core/click.d.ts +8 -0
- package/table/core/core/index.cjs.js +2 -0
- package/table/core/core/index.cjs.js.map +1 -0
- package/table/core/core/index.esm.js +23 -0
- package/table/core/core/index.esm.js.map +1 -0
- package/table/core/core.d.ts +8 -0
- package/table/core/group/index.cjs.js +2 -0
- package/table/core/group/index.cjs.js.map +1 -0
- package/table/core/group/index.esm.js +17 -0
- package/table/core/group/index.esm.js.map +1 -0
- package/table/core/group.d.ts +9 -0
- package/table/core/pagination/index.cjs.js +2 -0
- package/table/core/pagination/index.cjs.js.map +1 -0
- package/table/core/pagination/index.esm.js +36 -0
- package/table/core/pagination/index.esm.js.map +1 -0
- package/table/core/pagination.d.ts +8 -0
- package/table/core/reorder/index.cjs.js +2 -0
- package/table/core/reorder/index.cjs.js.map +1 -0
- package/table/core/reorder/index.esm.js +22 -0
- package/table/core/reorder/index.esm.js.map +1 -0
- package/table/core/reorder.d.ts +8 -0
- package/table/core/selection/index.cjs.js +2 -0
- package/table/core/selection/index.cjs.js.map +1 -0
- package/table/core/selection/index.esm.js +15 -0
- package/table/core/selection/index.esm.js.map +1 -0
- package/table/core/selection.d.ts +8 -0
- package/table/core/sort/index.cjs.js +2 -0
- package/table/core/sort/index.cjs.js.map +1 -0
- package/table/core/sort/index.esm.js +14 -0
- package/table/core/sort/index.esm.js.map +1 -0
- package/table/core/sort.d.ts +8 -0
- package/table/index.cjs.js +1 -1
- package/table/index.cjs.js.map +1 -1
- package/table/index.d.ts +2 -315
- package/table/index.esm.js +4 -1
- package/table/index.esm.js.map +1 -1
- package/table/styled/index.cjs.js +2 -0
- package/table/styled/index.cjs.js.map +1 -0
- package/table/styled/index.esm.js +16 -0
- package/table/styled/index.esm.js.map +1 -0
- package/table/styled.d.ts +6 -0
- package/table/table/index.cjs.js +2 -0
- package/table/table/index.cjs.js.map +1 -0
- package/table/table/index.esm.js +85 -0
- package/table/table/index.esm.js.map +1 -0
- package/table/table.d.ts +12 -0
- package/tablepivot/@types/index.d.ts +52 -0
- package/tablepivot/@types/webdatarocks.d.ts +166 -0
- package/tablepivot/_tablepivot.scss +84 -84
- package/tablepivot/function/handle/index.cjs.js +2 -0
- package/tablepivot/function/handle/index.cjs.js.map +1 -0
- package/tablepivot/function/handle/index.esm.js +12 -0
- package/tablepivot/function/handle/index.esm.js.map +1 -0
- package/tablepivot/function/handle.d.ts +6 -0
- package/tablepivot/index.cjs.js +1 -1
- package/tablepivot/index.cjs.js.map +1 -1
- package/tablepivot/index.d.ts +2 -257
- package/tablepivot/index.esm.js +4 -1
- package/tablepivot/index.esm.js.map +1 -1
- package/tablepivot/lang/pt-br/index.cjs.js +2 -0
- package/tablepivot/lang/pt-br/index.cjs.js.map +1 -0
- package/tablepivot/lang/pt-br/index.esm.js +392 -0
- package/tablepivot/lang/pt-br/index.esm.js.map +1 -0
- package/tablepivot/lang/pt-br.d.ts +388 -0
- package/tablepivot/tablepivot/index.cjs.js +2 -0
- package/tablepivot/tablepivot/index.cjs.js.map +1 -0
- package/tablepivot/tablepivot/index.esm.js +43 -0
- package/tablepivot/tablepivot/index.esm.js.map +1 -0
- package/tablepivot/tablepivot.d.ts +8 -0
- package/tabview/@types/index.d.ts +58 -0
- package/tabview/index.cjs.js +1 -1
- package/tabview/index.cjs.js.map +1 -1
- package/tabview/index.d.ts +2 -167
- package/tabview/index.esm.js +4 -1
- package/tabview/index.esm.js.map +1 -1
- package/tabview/tabview/index.cjs.js +2 -0
- package/tabview/tabview/index.cjs.js.map +1 -0
- package/tabview/tabview/index.esm.js +33 -0
- package/tabview/tabview/index.esm.js.map +1 -0
- package/tabview/tabview.d.ts +11 -0
- package/textarea/@types/index.d.ts +18 -0
- package/textarea/core/controlled/index.cjs.js +2 -0
- package/textarea/core/controlled/index.cjs.js.map +1 -0
- package/textarea/core/controlled/index.esm.js +26 -0
- package/textarea/core/controlled/index.esm.js.map +1 -0
- package/textarea/core/controlled.d.ts +14 -0
- package/textarea/core/hookForm/index.cjs.js +2 -0
- package/textarea/core/hookForm/index.cjs.js.map +1 -0
- package/textarea/core/hookForm/index.esm.js +40 -0
- package/textarea/core/hookForm/index.esm.js.map +1 -0
- package/textarea/core/hookForm.d.ts +14 -0
- package/textarea/index.cjs.js +1 -1
- package/textarea/index.cjs.js.map +1 -1
- package/textarea/index.d.ts +2 -216
- package/textarea/index.esm.js +4 -1
- package/textarea/index.esm.js.map +1 -1
- package/textarea/textarea/index.cjs.js +2 -0
- package/textarea/textarea/index.cjs.js.map +1 -0
- package/textarea/textarea/index.esm.js +40 -0
- package/textarea/textarea/index.esm.js.map +1 -0
- package/textarea/textarea.d.ts +14 -0
- package/tooltip/@types/index.d.ts +59 -0
- package/tooltip/core/handle/index.cjs.js +2 -0
- package/tooltip/core/handle/index.cjs.js.map +1 -0
- package/tooltip/core/handle/index.esm.js +13 -0
- package/tooltip/core/handle/index.esm.js.map +1 -0
- package/tooltip/core/handle.d.ts +4 -0
- package/tooltip/index.cjs.js +2 -0
- package/tooltip/index.cjs.js.map +1 -0
- package/tooltip/index.d.ts +2 -0
- package/tooltip/index.esm.js +5 -0
- package/tooltip/index.esm.js.map +1 -0
- package/tooltip/package.json +5 -0
- package/tooltip/tooltip/index.cjs.js +2 -0
- package/tooltip/tooltip/index.cjs.js.map +1 -0
- package/tooltip/tooltip/index.esm.js +30 -0
- package/tooltip/tooltip/index.esm.js.map +1 -0
- package/tooltip/tooltip.d.ts +12 -0
- package/utils/@types/index.d.ts +3 -0
- package/utils/@types/message.d.ts +18 -0
- package/utils/@types/request.d.ts +23 -0
- package/utils/@types/response.d.ts +55 -0
- package/utils/const/index.cjs.js +2 -0
- package/utils/const/index.cjs.js.map +1 -0
- package/utils/const/index.esm.js +51 -0
- package/utils/const/index.esm.js.map +1 -0
- package/utils/const.d.ts +11 -0
- package/utils/handle/index.cjs.js +2 -0
- package/utils/handle/index.cjs.js.map +1 -0
- package/utils/handle/index.esm.js +42 -0
- package/utils/handle/index.esm.js.map +1 -0
- package/utils/handle.d.ts +29 -0
- package/utils/helper/index.cjs.js +2 -0
- package/utils/helper/index.cjs.js.map +1 -0
- package/utils/helper/index.esm.js +53 -0
- package/utils/helper/index.esm.js.map +1 -0
- package/utils/helper.d.ts +19 -0
- package/utils/index.cjs.js +1 -1
- package/utils/index.cjs.js.map +1 -1
- package/utils/index.d.ts +7 -187
- package/utils/index.esm.js +27 -1
- package/utils/index.esm.js.map +1 -1
- package/utils/message/index.cjs.js +2 -0
- package/utils/message/index.cjs.js.map +1 -0
- package/utils/message/index.esm.js +55 -0
- package/utils/message/index.esm.js.map +1 -0
- package/utils/message.d.ts +9 -0
- package/utils/request/index.cjs.js +2 -0
- package/utils/request/index.cjs.js.map +1 -0
- package/utils/request/index.esm.js +28 -0
- package/utils/request/index.esm.js.map +1 -0
- package/utils/request.d.ts +5 -0
- package/utils/response/index.cjs.js +2 -0
- package/utils/response/index.cjs.js.map +1 -0
- package/utils/response/index.esm.js +44 -0
- package/utils/response/index.esm.js.map +1 -0
- package/utils/response.d.ts +13 -0
- package/README.md +0 -42
- package/button/_button.scss +0 -56
- package/style/index.cjs.js +0 -2
- package/style/index.d.ts +0 -2
- package/style/index.esm.js +0 -2
- /package/{style → pdf}/index.cjs.js.map +0 -0
- /package/style/{index.ts → scss/_blockui.scss} +0 -0
|
@@ -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
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=["=","!=","%","!%"],e=[{options:"=",label:"Igual a"},{options:"!=",label:"Diferente de"},{options:"<",label:"Menor do que"},{options:">",label:"Maior do que"},{options:"<=",label:"Menor ou igual a"},{options:">=",label:"Maior ou igual a"},{options:"{}",label:"Intervalo"},{options:"%",label:"Contém o que"},{options:"!%",label:"Não contém o que"}];exports.optionsDefault=o;exports.optionsLabel=e;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/inputfilter/const.ts"],"sourcesContent":["import { InputFilterOptionsMap, InputFilterOptionsProps } from \".\";\n\nexport const optionsDefault: Array<InputFilterOptionsMap[\"text\"]> = [\"=\", \"!=\", \"%\", \"!%\"];\n\nexport const optionsLabel: Array<{\n options: InputFilterOptionsProps,\n label: string\n}> = [\n { options: \"=\", label: \"Igual a\" },\n { options: \"!=\", label: \"Diferente de\" },\n { options: \"<\", label: \"Menor do que\" },\n { options: \">\", label: \"Maior do que\" },\n { options: \"<=\", label: \"Menor ou igual a\" },\n { options: \">=\", label: \"Maior ou igual a\" },\n { options: \"{}\", label: \"Intervalo\" },\n { options: \"%\", label: \"Contém o que\" },\n { options: \"!%\", label: \"Não contém o que\" },\n];"],"names":["optionsDefault","optionsLabel"],"mappings":"gFAEO,MAAMA,EAAuD,CAAC,IAAK,KAAM,IAAK,IAAI,EAE5EC,EAGR,CACD,CAAE,QAAS,IAAK,MAAO,SAAA,EACvB,CAAE,QAAS,KAAM,MAAO,cAAA,EACxB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,KAAM,MAAO,kBAAA,EACxB,CAAE,QAAS,KAAM,MAAO,kBAAA,EACxB,CAAE,QAAS,KAAM,MAAO,WAAA,EACxB,CAAE,QAAS,IAAK,MAAO,cAAA,EACvB,CAAE,QAAS,KAAM,MAAO,kBAAA,CAC5B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const o = ["=", "!=", "%", "!%"], l = [
|
|
2
|
+
{ options: "=", label: "Igual a" },
|
|
3
|
+
{ options: "!=", label: "Diferente de" },
|
|
4
|
+
{ options: "<", label: "Menor do que" },
|
|
5
|
+
{ options: ">", label: "Maior do que" },
|
|
6
|
+
{ options: "<=", label: "Menor ou igual a" },
|
|
7
|
+
{ options: ">=", label: "Maior ou igual a" },
|
|
8
|
+
{ options: "{}", label: "Intervalo" },
|
|
9
|
+
{ options: "%", label: "Contém o que" },
|
|
10
|
+
{ options: "!%", label: "Não contém o que" }
|
|
11
|
+
];
|
|
12
|
+
export {
|
|
13
|
+
o as optionsDefault,
|
|
14
|
+
l as optionsLabel
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/inputfilter/const.ts"],"sourcesContent":["import { InputFilterOptionsMap, InputFilterOptionsProps } from \".\";\n\nexport const optionsDefault: Array<InputFilterOptionsMap[\"text\"]> = [\"=\", \"!=\", \"%\", \"!%\"];\n\nexport const optionsLabel: Array<{\n options: InputFilterOptionsProps,\n label: string\n}> = [\n { options: \"=\", label: \"Igual a\" },\n { options: \"!=\", label: \"Diferente de\" },\n { options: \"<\", label: \"Menor do que\" },\n { options: \">\", label: \"Maior do que\" },\n { options: \"<=\", label: \"Menor ou igual a\" },\n { options: \">=\", label: \"Maior ou igual a\" },\n { options: \"{}\", label: \"Intervalo\" },\n { options: \"%\", label: \"Contém o que\" },\n { options: \"!%\", label: \"Não contém o que\" },\n];"],"names":["optionsDefault","optionsLabel"],"mappings":"AAEO,MAAMA,IAAuD,CAAC,KAAK,MAAM,KAAK,IAAI,GAE5EC,IAGR;AAAA,EACD,EAAE,SAAS,KAAK,OAAO,UAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,eAAA;AAAA,EACxB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAAA,EACxB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAAA,EACxB,EAAE,SAAS,MAAM,OAAO,YAAA;AAAA,EACxB,EAAE,SAAS,KAAK,OAAO,eAAA;AAAA,EACvB,EAAE,SAAS,MAAM,OAAO,mBAAA;AAC5B;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("primereact/autocomplete"),o=require("../../function/handle/index.cjs.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const m=c(i);function r(e){const l=o.handleGetValueAutocomplete(e.value,e.options,e.data);return u.jsx(m.AutoComplete,{multiple:!0,completeMethod:t=>{let a=l.map(n=>n.id);e.onSearch(t.query,a)},appendTo:"self",className:"w-100",disabled:e.disabled,emptyMessage:"Não encontramos dados.",field:"label",id:(e.id??"input-filter")+"-autocomplete",inputClassName:"form-control",name:(e.name??"input-filter")+"-autocomplete",panelClassName:"input-filter-autocomplete-panel",placeholder:e.placeholder,required:e.required,scrollHeight:e.autocompleteScrollHeight,selectionLimit:e.autocompleteSelectLimit,suggestions:e.data,value:l,onChange:t=>e.onChange(o.handleSetValueAutocomplete(t.value,e.select))})}exports.Autocomplete=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/autocomplete.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport * as AutocompletePrimeReact from \"primereact/autocomplete\";\nimport { handleGetValueAutocomplete, handleSetValueAutocomplete } from \"../function/handle\";\n\n/**\n * Core - `Autocomplete`\n * Campo do filtro tipo autocomplete\n */\nexport function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<\"autocomplete\">) {\n const value = handleGetValueAutocomplete(props.value, props.options, props.data);\n\n return (\n <AutocompletePrimeReact.AutoComplete\n multiple\n completeMethod={event => {\n let ids = value.map(item => item.id);\n props.onSearch(event.query, ids);\n }}\n appendTo=\"self\"\n className=\"w-100\"\n disabled={props.disabled}\n emptyMessage=\"Não encontramos dados.\"\n field=\"label\"\n id={(props.id ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n inputClassName=\"form-control\"\n name={(props.name ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n panelClassName=\"input-filter-autocomplete-panel\"\n placeholder={props.placeholder}\n required={props.required}\n scrollHeight={props.autocompleteScrollHeight}\n selectionLimit={props.autocompleteSelectLimit}\n suggestions={props.data}\n value={value}\n onChange={event => props.onChange(handleSetValueAutocomplete(event.value, props.select))}/>\n );\n}"],"names":["Autocomplete","props","value","handleGetValueAutocomplete","jsx","AutocompletePrimeReact","event","ids","item","handleSetValueAutocomplete"],"mappings":"oeASO,SAASA,EAAoDC,EAA6C,CAC7G,MAAMC,EAAQC,EAAAA,2BAA2BF,EAAM,MAAOA,EAAM,QAASA,EAAM,IAAI,EAE/E,OACIG,EAAAA,IAACC,EAAuB,aAAvB,CACG,SAAQ,GACR,eAAgBC,GAAS,CACrB,IAAIC,EAAML,EAAM,IAAIM,GAAQA,EAAK,EAAE,EACnCP,EAAM,SAASK,EAAM,MAAOC,CAAG,CACnC,EACA,SAAS,OACT,UAAU,QACV,SAAUN,EAAM,SAChB,aAAa,yBACb,MAAM,QACN,IAAKA,EAAM,IAAM,gBAAkB,gBACnC,eAAe,eACf,MAAOA,EAAM,MAAQ,gBAAkB,gBACvC,eAAe,kCACf,YAAaA,EAAM,YACnB,SAAUA,EAAM,SAChB,aAAcA,EAAM,yBACpB,eAAgBA,EAAM,wBACtB,YAAaA,EAAM,KACnB,MAAAC,EACA,YAAmBD,EAAM,SAASQ,EAAAA,2BAA2BH,EAAM,MAAOL,EAAM,MAAM,CAAC,CAAA,CAAA,CAEnG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "primereact/autocomplete";
|
|
3
|
+
import { handleGetValueAutocomplete as u, handleSetValueAutocomplete as n } from "../../function/handle/index.esm.js";
|
|
4
|
+
function r(e) {
|
|
5
|
+
const l = u(e.value, e.options, e.data);
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
m.AutoComplete,
|
|
8
|
+
{
|
|
9
|
+
multiple: !0,
|
|
10
|
+
completeMethod: (t) => {
|
|
11
|
+
let a = l.map((o) => o.id);
|
|
12
|
+
e.onSearch(t.query, a);
|
|
13
|
+
},
|
|
14
|
+
appendTo: "self",
|
|
15
|
+
className: "w-100",
|
|
16
|
+
disabled: e.disabled,
|
|
17
|
+
emptyMessage: "Não encontramos dados.",
|
|
18
|
+
field: "label",
|
|
19
|
+
id: (e.id ?? "input-filter") + "-autocomplete",
|
|
20
|
+
inputClassName: "form-control",
|
|
21
|
+
name: (e.name ?? "input-filter") + "-autocomplete",
|
|
22
|
+
panelClassName: "input-filter-autocomplete-panel",
|
|
23
|
+
placeholder: e.placeholder,
|
|
24
|
+
required: e.required,
|
|
25
|
+
scrollHeight: e.autocompleteScrollHeight,
|
|
26
|
+
selectionLimit: e.autocompleteSelectLimit,
|
|
27
|
+
suggestions: e.data,
|
|
28
|
+
value: l,
|
|
29
|
+
onChange: (t) => e.onChange(n(t.value, e.select))
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
r as Autocomplete
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/autocomplete.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport * as AutocompletePrimeReact from \"primereact/autocomplete\";\nimport { handleGetValueAutocomplete, handleSetValueAutocomplete } from \"../function/handle\";\n\n/**\n * Core - `Autocomplete`\n * Campo do filtro tipo autocomplete\n */\nexport function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<\"autocomplete\">) {\n const value = handleGetValueAutocomplete(props.value, props.options, props.data);\n\n return (\n <AutocompletePrimeReact.AutoComplete\n multiple\n completeMethod={event => {\n let ids = value.map(item => item.id);\n props.onSearch(event.query, ids);\n }}\n appendTo=\"self\"\n className=\"w-100\"\n disabled={props.disabled}\n emptyMessage=\"Não encontramos dados.\"\n field=\"label\"\n id={(props.id ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n inputClassName=\"form-control\"\n name={(props.name ?? \"input-filter\") + \"-\" + \"autocomplete\"}\n panelClassName=\"input-filter-autocomplete-panel\"\n placeholder={props.placeholder}\n required={props.required}\n scrollHeight={props.autocompleteScrollHeight}\n selectionLimit={props.autocompleteSelectLimit}\n suggestions={props.data}\n value={value}\n onChange={event => props.onChange(handleSetValueAutocomplete(event.value, props.select))}/>\n );\n}"],"names":["Autocomplete","props","value","handleGetValueAutocomplete","jsx","AutocompletePrimeReact","event","ids","item","handleSetValueAutocomplete"],"mappings":";;;AASO,SAASA,EAAoDC,GAA6C;AAC7G,QAAMC,IAAQC,EAA2BF,EAAM,OAAOA,EAAM,SAASA,EAAM,IAAI;AAE/E,SACI,gBAAAG;AAAA,IAACC,EAAuB;AAAA,IAAvB;AAAA,MACG,UAAQ;AAAA,MACR,gBAAgB,CAAAC,MAAS;AACrB,YAAIC,IAAML,EAAM,IAAI,CAAAM,MAAQA,EAAK,EAAE;AACnC,QAAAP,EAAM,SAASK,EAAM,OAAOC,CAAG;AAAA,MACnC;AAAA,MACA,UAAS;AAAA,MACT,WAAU;AAAA,MACV,UAAUN,EAAM;AAAA,MAChB,cAAa;AAAA,MACb,OAAM;AAAA,MACN,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,gBAAe;AAAA,MACf,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,gBAAe;AAAA,MACf,aAAaA,EAAM;AAAA,MACnB,UAAUA,EAAM;AAAA,MAChB,cAAcA,EAAM;AAAA,MACpB,gBAAgBA,EAAM;AAAA,MACtB,aAAaA,EAAM;AAAA,MACnB,OAAAC;AAAA,MACA,UAAU,OAASD,EAAM,SAASQ,EAA2BH,EAAM,OAAOL,EAAM,MAAM,CAAC;AAAA,IAAA;AAAA,EAAA;AAEnG;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Core - `Autocomplete`
|
|
5
|
+
* Campo do filtro tipo autocomplete
|
|
6
|
+
*/
|
|
7
|
+
export declare function Autocomplete<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<"autocomplete">): React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=require("../../function/handle/index.cjs.js");function c(e){let l=u.handleGetValueDate(e.value,e.options,e.select);function d(t){e.select==="{}"&&t==="0/0/0{}0/0/0"||(l[0]==0||isNaN(l[0]))&&(l[1]==0||isNaN(l[1]))&&(l[2]==0||isNaN(l[2]))?e.onChange(null):e.onChange(t)}return n.jsxs("div",{className:"d-flex w-100 flex-column",children:[n.jsx("div",{className:"w-100 d-flex gap-2",children:l.map((t,a)=>{if(a<=2)return n.jsx("input",{className:"form-control input-filter-field-date"+(a==2?" year":""),disabled:e.disabled,id:(e.id??"input-filter")+"-"+a,name:(e.name??"input-filter")+"-"+a,placeholder:e.placeholder,value:t===0?"":t,onChange:i=>d(u.handleSetValueDate(i.target.value,a,l))},a)})}),e.select==="{}"&&l.length>4&&n.jsx("div",{className:"w-100 d-flex gap-2 mt-2",children:l.map((t,a)=>{if(a>=4)return n.jsx("input",{className:"form-control input-filter-field-date"+(a==6?" year":""),disabled:e.disabled,id:(e.id??"input-filter")+"-"+a,name:(e.name??"input-filter")+"-"+a,placeholder:e.placeholder,value:t===0?"":t,onChange:i=>d(u.handleSetValueDate(i.target.value,a,l))},a)})})]})}exports.Date=c;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/date.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport { handleGetValueDate, handleSetValueDate } from \"../function/handle\";\n\n/**\n * Core - `Date`\n * Campo do filtro tipo data\n */\nexport function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n let date = handleGetValueDate(props.value, props.options, props.select);\n\n function handleChangeValue(value: string) {\n if (props.select === \"{}\" && value === \"0/0/0{}0/0/0\") {\n props.onChange(null);\n } else {\n if ((date[0] == 0 || isNaN(date[0] as number)) &&\n (date[1] == 0 || isNaN(date[1] as number)) &&\n (date[2] == 0 || isNaN(date[2] as number))) {\n props.onChange(null);\n } else {\n props.onChange(value);\n }\n }\n }\n\n return (\n <div className=\"d-flex w-100 flex-column\">\n <div className=\"w-100 d-flex gap-2\">\n {date.map((item, index) => {\n if (index <= 2) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 2 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>\n {props.select === \"{}\" && date.length > 4\n && <div className=\"w-100 d-flex gap-2 mt-2\">\n {date.map((item, index) => {\n if (index >= 4) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 6 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>}\n </div>\n );\n}"],"names":["Date","props","date","handleGetValueDate","handleChangeValue","value","jsxs","jsx","item","index","handleSetValueDate","event"],"mappings":"qKAQO,SAASA,EAA4CC,EAAgC,CACxF,IAAIC,EAAOC,EAAAA,mBAAmBF,EAAM,MAAOA,EAAM,QAASA,EAAM,MAAM,EAEtE,SAASG,EAAkBC,EAAe,CAClCJ,EAAM,SAAW,MAAQI,IAAU,iBAG9BH,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,KACvCA,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,KACvCA,EAAK,CAAC,GAAK,GAAK,MAAMA,EAAK,CAAC,CAAW,GAJ5CD,EAAM,SAAS,IAAI,EAOfA,EAAM,SAASI,CAAK,CAGhC,CAEA,OACIC,EAAAA,KAAC,MAAA,CAAI,UAAU,2BACX,SAAA,CAAAC,MAAC,OAAI,UAAU,qBACV,WAAK,IAAI,CAACC,EAAMC,IAAU,CACvB,GAAIA,GAAS,EACT,OACIF,EAAAA,IAAC,QAAA,CAAM,UAAW,wCAA0CE,GAAS,EAAI,QAAU,IAC5E,SAAUR,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,IAAMQ,EAEzC,MAAOR,EAAM,MAAQ,gBAAkB,IAAMQ,EAC7C,YAAaR,EAAM,YACnB,MAAOO,IAAS,EAAI,GAAKA,EACzB,YAAmBJ,EAAkBM,EAAAA,mBAAmBC,EAAM,OAAO,MAAOF,EAAOP,CAAI,CAAC,CAAA,EAJnFO,CAAA,CAOxB,CAAC,CAAA,CACL,EACCR,EAAM,SAAW,MAAQC,EAAK,OAAS,GACjCK,MAAC,MAAA,CAAI,UAAU,0BACb,SAAAL,EAAK,IAAI,CAACM,EAAMC,IAAU,CACvB,GAAIA,GAAS,EACT,OACIF,EAAAA,IAAC,QAAA,CAAM,UAAW,wCAA0CE,GAAS,EAAI,QAAU,IAC5E,SAAUR,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,IAAMQ,EAEzC,MAAOR,EAAM,MAAQ,gBAAkB,IAAMQ,EAC7C,YAAaR,EAAM,YACnB,MAAOO,IAAS,EAAI,GAAKA,EACzB,YAAmBJ,EAAkBM,EAAAA,mBAAmBC,EAAM,OAAO,MAAOF,EAAOP,CAAI,CAAC,CAAA,EAJnFO,CAAA,CAOxB,CAAC,CAAA,CACL,CAAA,EACR,CAER"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { handleGetValueDate as c, handleSetValueDate as u } from "../../function/handle/index.esm.js";
|
|
3
|
+
function r(e) {
|
|
4
|
+
let a = c(e.value, e.options, e.select);
|
|
5
|
+
function d(t) {
|
|
6
|
+
e.select === "{}" && t === "0/0/0{}0/0/0" || (a[0] == 0 || isNaN(a[0])) && (a[1] == 0 || isNaN(a[1])) && (a[2] == 0 || isNaN(a[2])) ? e.onChange(null) : e.onChange(t);
|
|
7
|
+
}
|
|
8
|
+
return /* @__PURE__ */ f("div", { className: "d-flex w-100 flex-column", children: [
|
|
9
|
+
/* @__PURE__ */ n("div", { className: "w-100 d-flex gap-2", children: a.map((t, l) => {
|
|
10
|
+
if (l <= 2)
|
|
11
|
+
return /* @__PURE__ */ n(
|
|
12
|
+
"input",
|
|
13
|
+
{
|
|
14
|
+
className: "form-control input-filter-field-date" + (l == 2 ? " year" : ""),
|
|
15
|
+
disabled: e.disabled,
|
|
16
|
+
id: (e.id ?? "input-filter") + "-" + l,
|
|
17
|
+
name: (e.name ?? "input-filter") + "-" + l,
|
|
18
|
+
placeholder: e.placeholder,
|
|
19
|
+
value: t === 0 ? "" : t,
|
|
20
|
+
onChange: (i) => d(u(i.target.value, l, a))
|
|
21
|
+
},
|
|
22
|
+
l
|
|
23
|
+
);
|
|
24
|
+
}) }),
|
|
25
|
+
e.select === "{}" && a.length > 4 && /* @__PURE__ */ n("div", { className: "w-100 d-flex gap-2 mt-2", children: a.map((t, l) => {
|
|
26
|
+
if (l >= 4)
|
|
27
|
+
return /* @__PURE__ */ n(
|
|
28
|
+
"input",
|
|
29
|
+
{
|
|
30
|
+
className: "form-control input-filter-field-date" + (l == 6 ? " year" : ""),
|
|
31
|
+
disabled: e.disabled,
|
|
32
|
+
id: (e.id ?? "input-filter") + "-" + l,
|
|
33
|
+
name: (e.name ?? "input-filter") + "-" + l,
|
|
34
|
+
placeholder: e.placeholder,
|
|
35
|
+
value: t === 0 ? "" : t,
|
|
36
|
+
onChange: (i) => d(u(i.target.value, l, a))
|
|
37
|
+
},
|
|
38
|
+
l
|
|
39
|
+
);
|
|
40
|
+
}) })
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
r as Date
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/date.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\nimport { handleGetValueDate, handleSetValueDate } from \"../function/handle\";\n\n/**\n * Core - `Date`\n * Campo do filtro tipo data\n */\nexport function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n let date = handleGetValueDate(props.value, props.options, props.select);\n\n function handleChangeValue(value: string) {\n if (props.select === \"{}\" && value === \"0/0/0{}0/0/0\") {\n props.onChange(null);\n } else {\n if ((date[0] == 0 || isNaN(date[0] as number)) &&\n (date[1] == 0 || isNaN(date[1] as number)) &&\n (date[2] == 0 || isNaN(date[2] as number))) {\n props.onChange(null);\n } else {\n props.onChange(value);\n }\n }\n }\n\n return (\n <div className=\"d-flex w-100 flex-column\">\n <div className=\"w-100 d-flex gap-2\">\n {date.map((item, index) => {\n if (index <= 2) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 2 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>\n {props.select === \"{}\" && date.length > 4\n && <div className=\"w-100 d-flex gap-2 mt-2\">\n {date.map((item, index) => {\n if (index >= 4) {\n return (\n <input className={\"form-control input-filter-field-date\" + (index == 6 ? \" year\" : \"\")}\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-\" + index}\n key={index}\n name={(props.name ?? \"input-filter\") + \"-\" + index}\n placeholder={props.placeholder}\n value={item === 0 ? \"\" : item}\n onChange={event => handleChangeValue(handleSetValueDate(event.target.value, index, date))}/>\n );\n }\n })}\n </div>}\n </div>\n );\n}"],"names":["Date","props","date","handleGetValueDate","handleChangeValue","value","jsxs","jsx","item","index","handleSetValueDate","event"],"mappings":";;AAQO,SAASA,EAA4CC,GAAgC;AACxF,MAAIC,IAAOC,EAAmBF,EAAM,OAAOA,EAAM,SAASA,EAAM,MAAM;AAEtE,WAASG,EAAkBC,GAAe;AACtC,IAAIJ,EAAM,WAAW,QAAQI,MAAU,mBAG9BH,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,OACvCA,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,OACvCA,EAAK,CAAC,KAAK,KAAK,MAAMA,EAAK,CAAC,CAAW,KAJ5CD,EAAM,SAAS,IAAI,IAOfA,EAAM,SAASI,CAAK;AAAA,EAGhC;AAEA,SACI,gBAAAC,EAAC,OAAA,EAAI,WAAU,4BACX,UAAA;AAAA,IAAA,gBAAAC,EAAC,SAAI,WAAU,sBACV,YAAK,IAAI,CAACC,GAAMC,MAAU;AACvB,UAAIA,KAAS;AACT,eACI,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YAAM,WAAW,0CAA0CE,KAAS,IAAI,UAAU;AAAA,YAC5E,UAAUR,EAAM;AAAA,YAChB,KAAKA,EAAM,MAAM,kBAAkB,MAAMQ;AAAA,YAEzC,OAAOR,EAAM,QAAQ,kBAAkB,MAAMQ;AAAA,YAC7C,aAAaR,EAAM;AAAA,YACnB,OAAOO,MAAS,IAAI,KAAKA;AAAA,YACzB,UAAU,OAASJ,EAAkBM,EAAmBC,EAAM,OAAO,OAAOF,GAAOP,CAAI,CAAC;AAAA,UAAA;AAAA,UAJnFO;AAAA,QAAA;AAAA,IAOxB,CAAC,EAAA,CACL;AAAA,IACCR,EAAM,WAAW,QAAQC,EAAK,SAAS,KACjC,gBAAAK,EAAC,OAAA,EAAI,WAAU,2BACb,UAAAL,EAAK,IAAI,CAACM,GAAMC,MAAU;AACvB,UAAIA,KAAS;AACT,eACI,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YAAM,WAAW,0CAA0CE,KAAS,IAAI,UAAU;AAAA,YAC5E,UAAUR,EAAM;AAAA,YAChB,KAAKA,EAAM,MAAM,kBAAkB,MAAMQ;AAAA,YAEzC,OAAOR,EAAM,QAAQ,kBAAkB,MAAMQ;AAAA,YAC7C,aAAaR,EAAM;AAAA,YACnB,OAAOO,MAAS,IAAI,KAAKA;AAAA,YACzB,UAAU,OAASJ,EAAkBM,EAAmBC,EAAM,OAAO,OAAOF,GAAOP,CAAI,CAAC;AAAA,UAAA;AAAA,UAJnFO;AAAA,QAAA;AAAA,IAOxB,CAAC,EAAA,CACL;AAAA,EAAA,GACR;AAER;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Core - `Date`
|
|
5
|
+
* Campo do filtro tipo data
|
|
6
|
+
*/
|
|
7
|
+
export declare function Date<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime");require("../../../utils/const/index.cjs.js");const i=require("../../../utils/handle/index.cjs.js");require("jquery");require("axios");require("node-snackbar");require("sweetalert2");const n=require("../../function/handle/index.cjs.js");function l(e){return u.jsx("input",{className:"form-control input-filter-field",disabled:e.disabled,id:(e.id??"input-filter")+"-number",name:(e.name??"input-filter")+"-number",placeholder:e.placeholder,value:n.handleGetValueNumber(e.value,e.options??""),onChange:r=>e.onChange(i.handleNumber(r.target.value,"decimal",0)+e.select)})}exports.Number=l;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/number.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleNumber } from \"../../utils\";\nimport { handleGetValueNumber } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Number`\n * Campo do filtro tipo numero\n */\nexport function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-number\"}\n name={(props.name ?? \"input-filter\") + \"-number\"}\n placeholder={props.placeholder}\n value={handleGetValueNumber(props.value, props.options ?? \"\")}\n onChange={event => props.onChange(handleNumber(event.target.value, \"decimal\", 0) + props.select)}/>\n );\n}"],"names":["Number","props","jsx","handleGetValueNumber","event","handleNumber"],"mappings":"iWASO,SAASA,EAA8CC,EAAgC,CAC1F,OACIC,EAAAA,IAAC,QAAA,CAAM,UAAU,kCACV,SAAUD,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,UACnC,MAAOA,EAAM,MAAQ,gBAAkB,UACvC,YAAaA,EAAM,YACnB,MAAOE,EAAAA,qBAAqBF,EAAM,MAAOA,EAAM,SAAW,EAAE,EAC5D,SAAUG,GAASH,EAAM,SAASI,EAAAA,aAAaD,EAAM,OAAO,MAAO,UAAW,CAAC,EAAIH,EAAM,MAAM,CAAA,CAAA,CAE9G"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "../../../utils/const/index.esm.js";
|
|
3
|
+
import { handleNumber as m } from "../../../utils/handle/index.esm.js";
|
|
4
|
+
import "jquery";
|
|
5
|
+
import "axios";
|
|
6
|
+
import "node-snackbar";
|
|
7
|
+
import "sweetalert2";
|
|
8
|
+
import { handleGetValueNumber as l } from "../../function/handle/index.esm.js";
|
|
9
|
+
function c(e) {
|
|
10
|
+
return /* @__PURE__ */ i(
|
|
11
|
+
"input",
|
|
12
|
+
{
|
|
13
|
+
className: "form-control input-filter-field",
|
|
14
|
+
disabled: e.disabled,
|
|
15
|
+
id: (e.id ?? "input-filter") + "-number",
|
|
16
|
+
name: (e.name ?? "input-filter") + "-number",
|
|
17
|
+
placeholder: e.placeholder,
|
|
18
|
+
value: l(e.value, e.options ?? ""),
|
|
19
|
+
onChange: (t) => e.onChange(m(t.target.value, "decimal", 0) + e.select)
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
c as Number
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/number.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleNumber } from \"../../utils\";\nimport { handleGetValueNumber } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Number`\n * Campo do filtro tipo numero\n */\nexport function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-number\"}\n name={(props.name ?? \"input-filter\") + \"-number\"}\n placeholder={props.placeholder}\n value={handleGetValueNumber(props.value, props.options ?? \"\")}\n onChange={event => props.onChange(handleNumber(event.target.value, \"decimal\", 0) + props.select)}/>\n );\n}"],"names":["Number","props","jsx","handleGetValueNumber","event","handleNumber"],"mappings":";;;;;;;;AASO,SAASA,EAA8CC,GAAgC;AAC1F,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MAAM,WAAU;AAAA,MACV,UAAUD,EAAM;AAAA,MAChB,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,aAAaA,EAAM;AAAA,MACnB,OAAOE,EAAqBF,EAAM,OAAOA,EAAM,WAAW,EAAE;AAAA,MAC5D,UAAU,CAAAG,MAASH,EAAM,SAASI,EAAaD,EAAM,OAAO,OAAO,WAAW,CAAC,IAAIH,EAAM,MAAM;AAAA,IAAA;AAAA,EAAA;AAE9G;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Core - `Number`
|
|
5
|
+
* Campo do filtro tipo numero
|
|
6
|
+
*/
|
|
7
|
+
export declare function Number<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("../../function/handle/index.cjs.js");function i(e){return l.jsx("input",{className:"form-control input-filter-field",disabled:e.disabled,id:(e.id??"input-filter")+"-text",name:(e.name??"input-filter")+"-text",placeholder:e.placeholder,value:n.handleGetValueText(e.value,e.options)??"",onChange:t=>e.onChange(t.target.value+e.select)})}exports.Text=i;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/core/text.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleGetValueText } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Text`\n * Campo do filtro tipo texto\n */\nexport function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-text\"}\n name={(props.name ?? \"input-filter\") + \"-text\"}\n placeholder={props.placeholder}\n value={handleGetValueText(props.value, props.options) ?? \"\"}\n onChange={event => props.onChange(event.target.value + props.select)}/>\n );\n}"],"names":["Text","props","jsx","handleGetValueText","event"],"mappings":"qKAQO,SAASA,EAA4CC,EAAgC,CACxF,OACIC,EAAAA,IAAC,QAAA,CAAM,UAAU,kCACV,SAAUD,EAAM,SAChB,IAAKA,EAAM,IAAM,gBAAkB,QACnC,MAAOA,EAAM,MAAQ,gBAAkB,QACvC,YAAaA,EAAM,YACnB,MAAOE,EAAAA,mBAAmBF,EAAM,MAAOA,EAAM,OAAO,GAAK,GACzD,YAAmBA,EAAM,SAASG,EAAM,OAAO,MAAQH,EAAM,MAAM,CAAA,CAAA,CAElF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { handleGetValueText as a } from "../../function/handle/index.esm.js";
|
|
3
|
+
function d(e) {
|
|
4
|
+
return /* @__PURE__ */ l(
|
|
5
|
+
"input",
|
|
6
|
+
{
|
|
7
|
+
className: "form-control input-filter-field",
|
|
8
|
+
disabled: e.disabled,
|
|
9
|
+
id: (e.id ?? "input-filter") + "-text",
|
|
10
|
+
name: (e.name ?? "input-filter") + "-text",
|
|
11
|
+
placeholder: e.placeholder,
|
|
12
|
+
value: a(e.value, e.options) ?? "",
|
|
13
|
+
onChange: (t) => e.onChange(t.target.value + e.select)
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as Text
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/core/text.tsx"],"sourcesContent":["import React from \"react\";\nimport { handleGetValueText } from \"../function/handle\";\nimport { InputFilterCoreProps, InputFilterOptionsMap } from \"..\";\n\n/**\n * Core - `Text`\n * Campo do filtro tipo texto\n */\nexport function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>) {\n return (\n <input className=\"form-control input-filter-field\"\n disabled={props.disabled}\n id={(props.id ?? \"input-filter\") + \"-text\"}\n name={(props.name ?? \"input-filter\") + \"-text\"}\n placeholder={props.placeholder}\n value={handleGetValueText(props.value, props.options) ?? \"\"}\n onChange={event => props.onChange(event.target.value + props.select)}/>\n );\n}"],"names":["Text","props","jsx","handleGetValueText","event"],"mappings":";;AAQO,SAASA,EAA4CC,GAAgC;AACxF,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MAAM,WAAU;AAAA,MACV,UAAUD,EAAM;AAAA,MAChB,KAAKA,EAAM,MAAM,kBAAkB;AAAA,MACnC,OAAOA,EAAM,QAAQ,kBAAkB;AAAA,MACvC,aAAaA,EAAM;AAAA,MACnB,OAAOE,EAAmBF,EAAM,OAAOA,EAAM,OAAO,KAAK;AAAA,MACzD,UAAU,OAASA,EAAM,SAASG,EAAM,OAAO,QAAQH,EAAM,MAAM;AAAA,IAAA;AAAA,EAAA;AAElF;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputFilterCoreProps, InputFilterOptionsMap } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Core - `Text`
|
|
5
|
+
* Campo do filtro tipo texto
|
|
6
|
+
*/
|
|
7
|
+
export declare function Text<T extends keyof InputFilterOptionsMap>(props: InputFilterCoreProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../validate/index.cjs.js");require("../../../utils/const/index.cjs.js");const o=require("../../../utils/handle/index.cjs.js");require("jquery");require("axios");require("node-snackbar");require("sweetalert2");function f(a,n){let e=n.filter(l=>a?.includes(l));return e[e.length-1]??n[0]}function m(a,n){let e=a,l=n.slice().reverse().find(t=>e?.endsWith(t));return l&&e!==void 0?e.slice(0,-l.length):e??null}function v(a,n,e=null){let l=a,t=/(=|!=|<|>|<=|>=|\{\})/,i=a?.match(t),s=i?i[0].trim():n[0],r=[];return(l?.split("{}")??[]).forEach((p,c)=>{let h=p.replace(t,"").trim();if(h.includes("/"))r[c]=h.split("/").map(d=>parseInt(d));else{let d=parseInt(h);r[c]=[isNaN(d)?0:d]}for(;r[c].length<3;)r[c].unshift(0)}),r[1]&&s==="{}"?[...u.validateDate(r[0]),e??s].concat(...u.validateDate(r[1])):r.length===0?[0,0,0,s]:[...u.validateDate(r[0]),e??s]}function V(a,n,e){n!==null&&(e[n]=parseInt(a));let l=e[3],t=e.slice(0,3);if(t=u.validateDate(t),l!=="{}")return`${t[0]}/${t[1]}/${t[2]}${l}`;let i=isNaN(parseInt(e[e.length-1]))&&n===null?[0,0,0]:e.slice(-3);return i=u.validateDate(i),`${t[0]}/${t[1]}/${t[2]}${l}${i[0]}/${i[1]}/${i[2]}`}function D(a,n,e){let l=a?.split(";").map(t=>parseInt(t))??[];return e.filter(t=>l.includes(t.id))}function $(a,n){let e=a.map(l=>l.id);return e.length===0?null:e.join(";")+n}function g(a,n){let e=a,l=n.slice().reverse().find(t=>e?.endsWith(t));return l&&e!==void 0?o.handleNumber(e.slice(0,-l.length),"decimal",0):o.handleNumber(e??"","decimal",0)}exports.handleGetOption=f;exports.handleGetValueAutocomplete=D;exports.handleGetValueDate=v;exports.handleGetValueNumber=g;exports.handleGetValueText=m;exports.handleSetValueAutocomplete=$;exports.handleSetValueDate=V;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/function/handle.ts"],"sourcesContent":["import { validateDate } from \"./validate\";\nimport { handleNumber } from \"../../utils\";\nimport { InputFilterOptionsMap } from \"..\";\n\n/**\n * Obtém a opção de filtro correspondente ao valor fornecido.\n *\n * @param value - O valor para buscar uma opção correspondente.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.\n */\nexport function handleGetOption<T extends keyof InputFilterOptionsMap>(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[T]>\n): string {\n let exists = options.filter(option => value?.includes(option));\n return exists[exists.length - 1] ?? options[0];\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Text`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueText(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string | null {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return str.slice(0, -exists.length);\n }\n return str ?? null;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Date`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @param select - Seletor do tipo de filtro\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueDate(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"date\"]>,\n select: null | string = null\n): Array<number | string> {\n let str = value;\n let optsRegex = /(=|!=|<|>|<=|>=|\\{\\})/;\n let optsMatch = value?.match(optsRegex);\n let opts = optsMatch ? optsMatch[0].trim() : options[0];\n\n let parts: any[] = [];\n let interval = str?.split(\"{}\") ?? [];\n\n interval.forEach((value, index) => {\n let clean = value.replace(optsRegex, \"\").trim();\n\n if (clean.includes(\"/\")) {\n parts[index] = clean.split(\"/\").map(item => parseInt(item));\n } else {\n let number = parseInt(clean);\n parts[index] = [isNaN(number) ? 0 : number];\n }\n\n while (parts[index].length < 3) {\n parts[index].unshift(0);\n }\n });\n\n if (parts[1] && opts === \"{}\") {\n return [...validateDate(parts[0]), select ?? opts].concat(...validateDate(parts[1]));\n }\n return parts.length === 0\n ? [0, 0, 0, opts]\n : [...validateDate(parts[0]), select ?? opts];\n}\n\n/**\n * Atualiza um valor de data em uma posição específica e retorna a data formatada.\n *\n * @param value - O novo valor a ser inserido na data\n * @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)\n * @param date - O array da data atual, incluindo as opções\n * @returns A data atualizada e formatada como string\n */\nexport function handleSetValueDate(\n value: string,\n position: number | null,\n date: (number | string)[]\n): string {\n if (position !== null) {\n date[position] = parseInt(value);\n }\n\n let opts = date[3];\n let firstDate = date.slice(0, 3);\n firstDate = validateDate(firstDate as number[]);\n\n if (opts !== \"{}\") {\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}`;\n }\n\n let lastDate = isNaN(parseInt(date[date.length - 1] as string)) && position === null\n ? [0, 0, 0]\n : date.slice(-3);\n lastDate = validateDate(lastDate as number[]);\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}${lastDate[0]}/${lastDate[1]}/${lastDate[2]}`;\n}\n\n/**\n * Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.\n *\n * @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.\n * @param options - Array de opções de filtro disponíveis para o autocomplete.\n * @param data - Array de objetos contendo os dados disponíveis para seleção.\n * @returns Array de objetos correspondentes aos IDs selecionados.\n */\nexport function handleGetValueAutocomplete(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"autocomplete\"]>,\n data: Array<{ id: number, label: string }>\n) {\n let values: any[] = value?.split(\";\").map(item => parseInt(item)) ?? [];\n return data.filter(item => values.includes(item.id));\n}\n\n/**\n * Converte os valores selecionados do autocomplete em uma string formatada para o filtro.\n *\n * @param value - Array de objetos selecionados no autocomplete.\n * @param select - String representando a opção de filtro selecionada.\n * @returns String formatada com os IDs dos itens selecionados e a opção de filtro.\n */\nexport function handleSetValueAutocomplete(\n value: Array<{ id: number, label: string }>,\n select: string,\n): string | null {\n let ids = value.map(item => item.id);\n return ids.length === 0 ? null : ids.join(\";\") + select;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Number`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueNumber(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return handleNumber(str.slice(0, -exists.length), \"decimal\", 0);\n }\n return handleNumber(str ?? \"\", \"decimal\", 0);\n}"],"names":["handleGetOption","value","options","exists","option","handleGetValueText","str","item","handleGetValueDate","select","optsRegex","optsMatch","opts","parts","index","clean","number","validateDate","handleSetValueDate","position","date","firstDate","lastDate","handleGetValueAutocomplete","data","values","handleSetValueAutocomplete","ids","handleGetValueNumber","handleNumber"],"mappings":"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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { validateDate as a } from "../validate/index.esm.js";
|
|
2
|
+
import "../../../utils/const/index.esm.js";
|
|
3
|
+
import { handleNumber as f } from "../../../utils/handle/index.esm.js";
|
|
4
|
+
import "jquery";
|
|
5
|
+
import "axios";
|
|
6
|
+
import "node-snackbar";
|
|
7
|
+
import "sweetalert2";
|
|
8
|
+
function G(r, n) {
|
|
9
|
+
let e = n.filter((l) => r?.includes(l));
|
|
10
|
+
return e[e.length - 1] ?? n[0];
|
|
11
|
+
}
|
|
12
|
+
function I(r, n) {
|
|
13
|
+
let e = r, l = n.slice().reverse().find((t) => e?.endsWith(t));
|
|
14
|
+
return l && e !== void 0 ? e.slice(0, -l.length) : e ?? null;
|
|
15
|
+
}
|
|
16
|
+
function b(r, n, e = null) {
|
|
17
|
+
let l = r, t = /(=|!=|<|>|<=|>=|\{\})/, s = r?.match(t), u = s ? s[0].trim() : n[0], i = [];
|
|
18
|
+
return (l?.split("{}") ?? []).forEach((h, o) => {
|
|
19
|
+
let p = h.replace(t, "").trim();
|
|
20
|
+
if (p.includes("/"))
|
|
21
|
+
i[o] = p.split("/").map((c) => parseInt(c));
|
|
22
|
+
else {
|
|
23
|
+
let c = parseInt(p);
|
|
24
|
+
i[o] = [isNaN(c) ? 0 : c];
|
|
25
|
+
}
|
|
26
|
+
for (; i[o].length < 3; )
|
|
27
|
+
i[o].unshift(0);
|
|
28
|
+
}), i[1] && u === "{}" ? [...a(i[0]), e ?? u].concat(...a(i[1])) : i.length === 0 ? [0, 0, 0, u] : [...a(i[0]), e ?? u];
|
|
29
|
+
}
|
|
30
|
+
function x(r, n, e) {
|
|
31
|
+
n !== null && (e[n] = parseInt(r));
|
|
32
|
+
let l = e[3], t = e.slice(0, 3);
|
|
33
|
+
if (t = a(t), l !== "{}")
|
|
34
|
+
return `${t[0]}/${t[1]}/${t[2]}${l}`;
|
|
35
|
+
let s = isNaN(parseInt(e[e.length - 1])) && n === null ? [0, 0, 0] : e.slice(-3);
|
|
36
|
+
return s = a(s), `${t[0]}/${t[1]}/${t[2]}${l}${s[0]}/${s[1]}/${s[2]}`;
|
|
37
|
+
}
|
|
38
|
+
function A(r, n, e) {
|
|
39
|
+
let l = r?.split(";").map((t) => parseInt(t)) ?? [];
|
|
40
|
+
return e.filter((t) => l.includes(t.id));
|
|
41
|
+
}
|
|
42
|
+
function S(r, n) {
|
|
43
|
+
let e = r.map((l) => l.id);
|
|
44
|
+
return e.length === 0 ? null : e.join(";") + n;
|
|
45
|
+
}
|
|
46
|
+
function W(r, n) {
|
|
47
|
+
let e = r, l = n.slice().reverse().find((t) => e?.endsWith(t));
|
|
48
|
+
return l && e !== void 0 ? f(e.slice(0, -l.length), "decimal", 0) : f(e ?? "", "decimal", 0);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
G as handleGetOption,
|
|
52
|
+
A as handleGetValueAutocomplete,
|
|
53
|
+
b as handleGetValueDate,
|
|
54
|
+
W as handleGetValueNumber,
|
|
55
|
+
I as handleGetValueText,
|
|
56
|
+
S as handleSetValueAutocomplete,
|
|
57
|
+
x as handleSetValueDate
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/inputfilter/function/handle.ts"],"sourcesContent":["import { validateDate } from \"./validate\";\nimport { handleNumber } from \"../../utils\";\nimport { InputFilterOptionsMap } from \"..\";\n\n/**\n * Obtém a opção de filtro correspondente ao valor fornecido.\n *\n * @param value - O valor para buscar uma opção correspondente.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.\n */\nexport function handleGetOption<T extends keyof InputFilterOptionsMap>(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[T]>\n): string {\n let exists = options.filter(option => value?.includes(option));\n return exists[exists.length - 1] ?? options[0];\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Text`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueText(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string | null {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return str.slice(0, -exists.length);\n }\n return str ?? null;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Date`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @param select - Seletor do tipo de filtro\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueDate(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"date\"]>,\n select: null | string = null\n): Array<number | string> {\n let str = value;\n let optsRegex = /(=|!=|<|>|<=|>=|\\{\\})/;\n let optsMatch = value?.match(optsRegex);\n let opts = optsMatch ? optsMatch[0].trim() : options[0];\n\n let parts: any[] = [];\n let interval = str?.split(\"{}\") ?? [];\n\n interval.forEach((value, index) => {\n let clean = value.replace(optsRegex, \"\").trim();\n\n if (clean.includes(\"/\")) {\n parts[index] = clean.split(\"/\").map(item => parseInt(item));\n } else {\n let number = parseInt(clean);\n parts[index] = [isNaN(number) ? 0 : number];\n }\n\n while (parts[index].length < 3) {\n parts[index].unshift(0);\n }\n });\n\n if (parts[1] && opts === \"{}\") {\n return [...validateDate(parts[0]), select ?? opts].concat(...validateDate(parts[1]));\n }\n return parts.length === 0\n ? [0, 0, 0, opts]\n : [...validateDate(parts[0]), select ?? opts];\n}\n\n/**\n * Atualiza um valor de data em uma posição específica e retorna a data formatada.\n *\n * @param value - O novo valor a ser inserido na data\n * @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)\n * @param date - O array da data atual, incluindo as opções\n * @returns A data atualizada e formatada como string\n */\nexport function handleSetValueDate(\n value: string,\n position: number | null,\n date: (number | string)[]\n): string {\n if (position !== null) {\n date[position] = parseInt(value);\n }\n\n let opts = date[3];\n let firstDate = date.slice(0, 3);\n firstDate = validateDate(firstDate as number[]);\n\n if (opts !== \"{}\") {\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}`;\n }\n\n let lastDate = isNaN(parseInt(date[date.length - 1] as string)) && position === null\n ? [0, 0, 0]\n : date.slice(-3);\n lastDate = validateDate(lastDate as number[]);\n return `${firstDate[0]}/${firstDate[1]}/${firstDate[2]}${opts}${lastDate[0]}/${lastDate[1]}/${lastDate[2]}`;\n}\n\n/**\n * Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.\n *\n * @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.\n * @param options - Array de opções de filtro disponíveis para o autocomplete.\n * @param data - Array de objetos contendo os dados disponíveis para seleção.\n * @returns Array de objetos correspondentes aos IDs selecionados.\n */\nexport function handleGetValueAutocomplete(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"autocomplete\"]>,\n data: Array<{ id: number, label: string }>\n) {\n let values: any[] = value?.split(\";\").map(item => parseInt(item)) ?? [];\n return data.filter(item => values.includes(item.id));\n}\n\n/**\n * Converte os valores selecionados do autocomplete em uma string formatada para o filtro.\n *\n * @param value - Array de objetos selecionados no autocomplete.\n * @param select - String representando a opção de filtro selecionada.\n * @returns String formatada com os IDs dos itens selecionados e a opção de filtro.\n */\nexport function handleSetValueAutocomplete(\n value: Array<{ id: number, label: string }>,\n select: string,\n): string | null {\n let ids = value.map(item => item.id);\n return ids.length === 0 ? null : ids.join(\";\") + select;\n}\n\n/**\n * Retorna apenas o valor sem os operadores filtro tipo `Number`.\n *\n * @param value - O valor completo, incluindo a opção de filtro.\n * @param options - Um array de opções de filtro disponíveis.\n * @returns O valor sem as opções de filtro.\n */\nexport function handleGetValueNumber(\n value: string | undefined,\n options: Array<InputFilterOptionsMap[\"text\"]>\n): string {\n let str = value;\n let exists = options\n .slice()\n .reverse()\n .find(item => str?.endsWith(item));\n if (exists && str !== undefined) {\n return handleNumber(str.slice(0, -exists.length), \"decimal\", 0);\n }\n return handleNumber(str ?? \"\", \"decimal\", 0);\n}"],"names":["handleGetOption","value","options","exists","option","handleGetValueText","str","item","handleGetValueDate","select","optsRegex","optsMatch","opts","parts","index","clean","number","validateDate","handleSetValueDate","position","date","firstDate","lastDate","handleGetValueAutocomplete","data","values","handleSetValueAutocomplete","ids","handleGetValueNumber","handleNumber"],"mappings":"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"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { InputFilterOptionsMap } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Obtém a opção de filtro correspondente ao valor fornecido.
|
|
4
|
+
*
|
|
5
|
+
* @param value - O valor para buscar uma opção correspondente.
|
|
6
|
+
* @param options - Um array de opções de filtro disponíveis.
|
|
7
|
+
* @returns A opção de filtro correspondente ou a primeira opção se nenhuma correspondência for encontrada.
|
|
8
|
+
*/
|
|
9
|
+
export declare function handleGetOption<T extends keyof InputFilterOptionsMap>(value: string | undefined, options: Array<InputFilterOptionsMap[T]>): string;
|
|
10
|
+
/**
|
|
11
|
+
* Retorna apenas o valor sem os operadores filtro tipo `Text`.
|
|
12
|
+
*
|
|
13
|
+
* @param value - O valor completo, incluindo a opção de filtro.
|
|
14
|
+
* @param options - Um array de opções de filtro disponíveis.
|
|
15
|
+
* @returns O valor sem as opções de filtro.
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleGetValueText(value: string | undefined, options: Array<InputFilterOptionsMap["text"]>): string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Retorna apenas o valor sem os operadores filtro tipo `Date`.
|
|
20
|
+
*
|
|
21
|
+
* @param value - O valor completo, incluindo a opção de filtro.
|
|
22
|
+
* @param options - Um array de opções de filtro disponíveis.
|
|
23
|
+
* @param select - Seletor do tipo de filtro
|
|
24
|
+
* @returns O valor sem as opções de filtro.
|
|
25
|
+
*/
|
|
26
|
+
export declare function handleGetValueDate(value: string | undefined, options: Array<InputFilterOptionsMap["date"]>, select?: null | string): Array<number | string>;
|
|
27
|
+
/**
|
|
28
|
+
* Atualiza um valor de data em uma posição específica e retorna a data formatada.
|
|
29
|
+
*
|
|
30
|
+
* @param value - O novo valor a ser inserido na data
|
|
31
|
+
* @param position - A posição do valor a ser atualizado (0 para dia, 1 para mês, 2 para ano)
|
|
32
|
+
* @param date - O array da data atual, incluindo as opções
|
|
33
|
+
* @returns A data atualizada e formatada como string
|
|
34
|
+
*/
|
|
35
|
+
export declare function handleSetValueDate(value: string, position: number | null, date: (number | string)[]): string;
|
|
36
|
+
/**
|
|
37
|
+
* Obtém os valores selecionados do autocomplete a partir da string de valor e dos dados disponíveis.
|
|
38
|
+
*
|
|
39
|
+
* @param value - String contendo os IDs dos itens selecionados, separados por ponto e vírgula.
|
|
40
|
+
* @param options - Array de opções de filtro disponíveis para o autocomplete.
|
|
41
|
+
* @param data - Array de objetos contendo os dados disponíveis para seleção.
|
|
42
|
+
* @returns Array de objetos correspondentes aos IDs selecionados.
|
|
43
|
+
*/
|
|
44
|
+
export declare function handleGetValueAutocomplete(value: string | undefined, options: Array<InputFilterOptionsMap["autocomplete"]>, data: Array<{
|
|
45
|
+
id: number;
|
|
46
|
+
label: string;
|
|
47
|
+
}>): {
|
|
48
|
+
id: number;
|
|
49
|
+
label: string;
|
|
50
|
+
}[];
|
|
51
|
+
/**
|
|
52
|
+
* Converte os valores selecionados do autocomplete em uma string formatada para o filtro.
|
|
53
|
+
*
|
|
54
|
+
* @param value - Array de objetos selecionados no autocomplete.
|
|
55
|
+
* @param select - String representando a opção de filtro selecionada.
|
|
56
|
+
* @returns String formatada com os IDs dos itens selecionados e a opção de filtro.
|
|
57
|
+
*/
|
|
58
|
+
export declare function handleSetValueAutocomplete(value: Array<{
|
|
59
|
+
id: number;
|
|
60
|
+
label: string;
|
|
61
|
+
}>, select: string): string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Retorna apenas o valor sem os operadores filtro tipo `Number`.
|
|
64
|
+
*
|
|
65
|
+
* @param value - O valor completo, incluindo a opção de filtro.
|
|
66
|
+
* @param options - Um array de opções de filtro disponíveis.
|
|
67
|
+
* @returns O valor sem as opções de filtro.
|
|
68
|
+
*/
|
|
69
|
+
export declare function handleGetValueNumber(value: string | undefined, options: Array<InputFilterOptionsMap["text"]>): string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(u){const[a,t,e]=u,r=t>=1&&t<=12,n=e>0&&e<99999,i=a>=1&&a<=31;if(n&&!r&&!i)return[0,0,e];if(n&&r&&!i)return[0,t,e];if(n&&r&&i){let o=new Date(e,t,0);return o.getDate()<a?[o.getDate(),t,e]:u}return!n&&r&&!i?[0,t,0]:!n&&r&&i?[a,t,0]:!n&&!r&&i?[a,0,0]:n&&!r&&i?[a,0,e]:[0,0,0]}exports.validateDate=f;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/inputfilter/function/validate.ts"],"sourcesContent":["/**\n * Valida e ajusta uma data fornecida como um array de números.\n *\n * @param date - Um array de números representando [dia, mês, ano].\n * @returns Um array de números representando a data validada e ajustada.\n */\nexport function validateDate(date: number[]): number[] {\n const [day, month, year] = date;\n\n const isMonthValid = month >= 1 && month <= 12;\n const isYearValid = year > 0 && year < 99999;\n const isDayValid = day >= 1 && day <= 31;\n\n if (isYearValid && !isMonthValid && !isDayValid) {\n return [0, 0, year];\n }\n\n if (isYearValid && isMonthValid && !isDayValid) {\n return [0, month, year];\n }\n\n if (isYearValid && isMonthValid && isDayValid) {\n let currentDate = new Date(year, month, 0);\n if (currentDate.getDate() < day) {\n return [currentDate.getDate(), month, year];\n }\n return date;\n }\n\n if (!isYearValid && isMonthValid && !isDayValid) {\n return [0, month, 0];\n }\n\n if (!isYearValid && isMonthValid && isDayValid) {\n return [day, month, 0];\n }\n\n if (!isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, 0];\n }\n\n if (isYearValid && !isMonthValid && isDayValid) {\n return [day, 0, year];\n }\n\n return [0, 0, 0];\n}"],"names":["validateDate","date","day","month","year","isMonthValid","isYearValid","isDayValid","currentDate"],"mappings":"gFAMO,SAASA,EAAaC,EAA0B,CACnD,KAAM,CAACC,EAAKC,EAAOC,CAAI,EAAIH,EAErBI,EAAeF,GAAS,GAAKA,GAAS,GACtCG,EAAcF,EAAO,GAAKA,EAAO,MACjCG,EAAaL,GAAO,GAAKA,GAAO,GAEtC,GAAII,GAAe,CAACD,GAAgB,CAACE,EACjC,MAAO,CAAC,EAAG,EAAGH,CAAI,EAGtB,GAAIE,GAAeD,GAAgB,CAACE,EAChC,MAAO,CAAC,EAAGJ,EAAOC,CAAI,EAG1B,GAAIE,GAAeD,GAAgBE,EAAY,CAC3C,IAAIC,EAAc,IAAI,KAAKJ,EAAMD,EAAO,CAAC,EACzC,OAAIK,EAAY,QAAA,EAAYN,EACjB,CAACM,EAAY,UAAWL,EAAOC,CAAI,EAEvCH,CACX,CAEA,MAAI,CAACK,GAAeD,GAAgB,CAACE,EAC1B,CAAC,EAAGJ,EAAO,CAAC,EAGnB,CAACG,GAAeD,GAAgBE,EACzB,CAACL,EAAKC,EAAO,CAAC,EAGrB,CAACG,GAAe,CAACD,GAAgBE,EAC1B,CAACL,EAAK,EAAG,CAAC,EAGjBI,GAAe,CAACD,GAAgBE,EACzB,CAACL,EAAK,EAAGE,CAAI,EAGjB,CAAC,EAAG,EAAG,CAAC,CACnB"}
|