PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.1.6
JetFormBuilder — Dynamic Blocks Form Builder v3.1.6
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / assets / src / package / actions / store / selectors.js
jetformbuilder / assets / src / package / actions / store Last commit date
actions.js 2 years ago constants.js 2 years ago default.state.js 2 years ago dispatchers.js 2 years ago functions.js 2 years ago index.js 2 years ago loading.state.js 2 years ago reducer.js 2 years ago selectors.js 2 years ago
selectors.js
63 lines
1 import DEFAULT_LOADING_STATE from './loading.state';
2
3 const self = {
4 getLoadingIndex( state, actionId ) {
5 return state.loadingState.findIndex( action => action.id === actionId );
6 },
7 getLoading( state, actionId ) {
8 const actionIndex = self.getLoadingIndex( state, actionId );
9
10 return -1 !== actionIndex
11 ? state.loadingState[ actionIndex ]
12 : { ...DEFAULT_LOADING_STATE };
13 },
14 getCallback( state, actionType ) {
15 return state.callbacks[ actionType ];
16 },
17 getDetail( state, actionType ) {
18 return state.details[ actionType ];
19 },
20 getComputedFields( state ) {
21 return state.computedFields;
22 },
23 };
24
25 export default {
26 ...self,
27 isSettingsModal( state ) {
28 return 'settings' === state.meta?.modalType;
29 },
30 isConditionalModal( state ) {
31 return 'conditions' === state.meta?.modalType;
32 },
33 getMetaIndex( state ) {
34 return state.meta?.index;
35 },
36 getCurrentAction( state ) {
37 return state.currentAction;
38 },
39 getCurrentCallback( state ) {
40 const type = state.currentAction?.type ?? false;
41
42 return self.getCallback( state, type );
43 },
44 getCurrentDetail( state ) {
45 const type = state.currentAction?.type ?? false;
46
47 return self.getDetail( state, type );
48 },
49 getCurrentSettings( state ) {
50 const settings = state.currentAction?.settings ?? {};
51 const type = state.currentAction?.type ?? false;
52
53 return settings[ type ] ?? {};
54 },
55 getCurrentLoading( state ) {
56 const actionId = state.currentAction?.id;
57
58 return self.getLoading( state, actionId );
59 },
60 dangerGetAllLoading( state ) {
61 return state.loadingState;
62 },
63 };