attrs
2 years ago
calc.module
2 years ago
html.macro
2 years ago
init
2 years ago
inputs
2 years ago
reactive
2 years ago
reporting
2 years ago
signals
2 years ago
submit
2 years ago
Observable.js
2 years ago
functions.js
2 years ago
main.js
2 years ago
supports.js
2 years ago
main.js
100 lines
| 1 | import initElementor from './init/initElementor'; |
| 2 | import BaseSignal from './signals/BaseSignal'; |
| 3 | import ReactiveVar from './reactive/ReactiveVar'; |
| 4 | import ReactiveHook from './reactive/ReactiveHook'; |
| 5 | import ReactiveSet from './reactive/ReactiveSet'; |
| 6 | import LoadingReactiveVar from './reactive/LoadingReactiveVar'; |
| 7 | import InputData from './inputs/InputData'; |
| 8 | import Observable from './Observable'; |
| 9 | import ReportingInterface from './reporting/ReportingInterface'; |
| 10 | import CheckboxData from './inputs/CheckboxData'; |
| 11 | import MultiSelectData from './inputs/MultiSelectData'; |
| 12 | import { |
| 13 | allRejected, |
| 14 | getLanguage, |
| 15 | toHTML, |
| 16 | isEmpty, |
| 17 | getOffsetTop, |
| 18 | focusOnInvalidInput, |
| 19 | isVisible, |
| 20 | } from './functions'; |
| 21 | import Restriction from './reporting/restrictions/Restriction'; |
| 22 | import RestrictionError from './reporting/RestrictionError'; |
| 23 | import { |
| 24 | validateInputs, |
| 25 | validateInputsAll, |
| 26 | getValidateCallbacks, |
| 27 | } from './reporting/functions'; |
| 28 | |
| 29 | import './calc.module/main'; |
| 30 | import { |
| 31 | getParsedName, |
| 32 | populateInputs, |
| 33 | } from './inputs/functions'; |
| 34 | import initForm from './init/initForm'; |
| 35 | import BaseHtmlAttr from './attrs/BaseHtmlAttr'; |
| 36 | import { |
| 37 | queryByAttrValue, |
| 38 | iterateComments, |
| 39 | observeMacroAttr, |
| 40 | observeComment, |
| 41 | iterateJfbComments, |
| 42 | } from './html.macro/functions'; |
| 43 | import RequiredRestriction from './reporting/restrictions/RequiredRestriction'; |
| 44 | |
| 45 | window.JetFormBuilderAbstract = { |
| 46 | ...( |
| 47 | window.JetFormBuilderAbstract ?? {} |
| 48 | ), |
| 49 | InputData, |
| 50 | BaseSignal, |
| 51 | ReactiveVar, |
| 52 | ReactiveHook, |
| 53 | LoadingReactiveVar, |
| 54 | Observable, |
| 55 | ReportingInterface, |
| 56 | CheckboxData, |
| 57 | MultiSelectData, |
| 58 | Restriction, |
| 59 | RestrictionError, |
| 60 | BaseHtmlAttr, |
| 61 | ReactiveSet, |
| 62 | RequiredRestriction, |
| 63 | }; |
| 64 | |
| 65 | window.JetFormBuilderFunctions = { |
| 66 | ...( |
| 67 | window.JetFormBuilderFunctions ?? {} |
| 68 | ), |
| 69 | allRejected, |
| 70 | getLanguage, |
| 71 | toHTML, |
| 72 | validateInputs, |
| 73 | validateInputsAll, |
| 74 | getParsedName, |
| 75 | isEmpty, |
| 76 | getValidateCallbacks, |
| 77 | getOffsetTop, |
| 78 | focusOnInvalidInput, |
| 79 | populateInputs, |
| 80 | isVisible, |
| 81 | queryByAttrValue, |
| 82 | iterateComments, |
| 83 | observeMacroAttr, |
| 84 | observeComment, |
| 85 | iterateJfbComments, |
| 86 | }; |
| 87 | |
| 88 | jQuery( () => JetPlugins.init() ); |
| 89 | |
| 90 | JetPlugins.bulkBlocksInit( [ |
| 91 | { |
| 92 | block: 'jet-forms.form-block', |
| 93 | callback: initForm, |
| 94 | condition: () => 'loading' !== document.readyState, |
| 95 | }, |
| 96 | ] ); |
| 97 | |
| 98 | jQuery( window ).on( 'elementor/frontend/init', initElementor ); |
| 99 | |
| 100 |