Skip to content

Commit

Permalink
rollback: remove babel private methods transformer + code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cyprien.glepin committed Apr 9, 2020
1 parent 2ff4ff6 commit d489f9d
Show file tree
Hide file tree
Showing 11 changed files with 1,687 additions and 273 deletions.
3 changes: 1 addition & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ module.exports = {
],
plugins: [
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-class-properties', { "loose": false }],
["@babel/plugin-proposal-private-methods", { "loose": false }],
'@babel/plugin-proposal-class-properties',
["@babel/plugin-transform-modules-commonjs", {
"allowTopLevelThis": true
}]
Expand Down
2 changes: 1 addition & 1 deletion dist/zangdar.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/zangdar.node.js

This file was deleted.

184 changes: 142 additions & 42 deletions docs/WizardStep.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ <h3 class="applicationName"><a href="index.html"></a></h3>

<span class="subtitle">Members</span>

<li class="parent " data-name="WizardStep#active"><a href="WizardStep.html#active">active</a></li>
<li class="parent " data-name="WizardStep#_completed"><a href="WizardStep.html#_completed">_completed</a></li>

<li class="parent " data-name="WizardStep#completed"><a href="WizardStep.html#completed">completed</a></li>
<li class="parent " data-name="WizardStep#_errors"><a href="WizardStep.html#_errors">_errors</a></li>

<li class="parent " data-name="WizardStep#completed"><a href="WizardStep.html#completed">completed</a></li>
<li class="parent " data-name="WizardStep#_fields"><a href="WizardStep.html#_fields">_fields</a></li>

<li class="parent " data-name="WizardStep#element"><a href="WizardStep.html#element">element</a></li>
<li class="parent " data-name="WizardStep#active"><a href="WizardStep.html#active">active</a></li>

<li class="parent " data-name="WizardStep#errors"><a href="WizardStep.html#errors">errors</a></li>
<li class="parent " data-name="WizardStep#completed"><a href="WizardStep.html#completed">completed</a></li>

<li class="parent " data-name="WizardStep#fields"><a href="WizardStep.html#fields">fields</a></li>
<li class="parent " data-name="WizardStep#element"><a href="WizardStep.html#element">element</a></li>

<li class="parent " data-name="WizardStep#index"><a href="WizardStep.html#index">index</a></li>

Expand All @@ -84,6 +84,8 @@ <h3 class="applicationName"><a href="index.html"></a></h3>

<span class="subtitle">Methods</span>

<li class="parent " data-name="WizardStep#_setFields"><a href="WizardStep.html#_setFields">_setFields</a></li>

<li class="parent " data-name="WizardStep#addError"><a href="WizardStep.html#addError">addError</a></li>

<li class="parent " data-name="WizardStep#clearErrors"><a href="WizardStep.html#clearErrors">clearErrors</a></li>
Expand Down Expand Up @@ -126,24 +128,24 @@ <h3 class="applicationName"><a href="index.html"></a></h3>

<span class="subtitle">Members</span>

<li class="parent " data-name="Zangdar#$form"><a href="Zangdar.html#$form">$form</a></li>
<li class="parent " data-name="Zangdar#_$form"><a href="Zangdar.html#_$form">_$form</a></li>

<li class="parent " data-name="Zangdar#$prevButtons"><a href="Zangdar.html#$prevButtons">$prevButtons</a></li>
<li class="parent " data-name="Zangdar#_$prevButtons"><a href="Zangdar.html#_$prevButtons">_$prevButtons</a></li>

<li class="parent " data-name="Zangdar#currentIndex"><a href="Zangdar.html#currentIndex">currentIndex</a></li>
<li class="parent " data-name="Zangdar#_currentIndex"><a href="Zangdar.html#_currentIndex">_currentIndex</a></li>

<li class="parent " data-name="Zangdar#currentIndex"><a href="Zangdar.html#currentIndex">currentIndex</a></li>
<li class="parent " data-name="Zangdar#_params"><a href="Zangdar.html#_params">_params</a></li>

<li class="parent " data-name="Zangdar#params"><a href="Zangdar.html#params">params</a></li>
<li class="parent " data-name="Zangdar#_steps"><a href="Zangdar.html#_steps">_steps</a></li>

<li class="parent " data-name="Zangdar#steps"><a href="Zangdar.html#steps">steps</a></li>
<li class="parent " data-name="Zangdar#_uuid"><a href="Zangdar.html#_uuid">_uuid</a></li>

<li class="parent " data-name="Zangdar#currentIndex"><a href="Zangdar.html#currentIndex">currentIndex</a></li>

<li class="parent " data-name="Zangdar#steps"><a href="Zangdar.html#steps">steps</a></li>

<li class="parent " data-name="Zangdar#uniqueId"><a href="Zangdar.html#uniqueId">uniqueId</a></li>

<li class="parent " data-name="Zangdar#uuid"><a href="Zangdar.html#uuid">uuid</a></li>

</ul>

<ul class="typedefs itemMembers">
Expand All @@ -158,6 +160,36 @@ <h3 class="applicationName"><a href="index.html"></a></h3>

<span class="subtitle">Methods</span>

<li class="parent " data-name="Zangdar#_bindEventsContext"><a href="Zangdar.html#_bindEventsContext">_bindEventsContext</a></li>

<li class="parent " data-name="Zangdar#_buildForm"><a href="Zangdar.html#_buildForm">_buildForm</a></li>

<li class="parent " data-name="Zangdar#_buildPrevButton"><a href="Zangdar.html#_buildPrevButton">_buildPrevButton</a></li>

<li class="parent " data-name="Zangdar#_buildSection"><a href="Zangdar.html#_buildSection">_buildSection</a></li>

<li class="parent " data-name="Zangdar#_buildStep"><a href="Zangdar.html#_buildStep">_buildStep</a></li>

<li class="parent " data-name="Zangdar#_buildSteps"><a href="Zangdar.html#_buildSteps">_buildSteps</a></li>

<li class="parent " data-name="Zangdar#_firstStep"><a href="Zangdar.html#_firstStep">_firstStep</a></li>

<li class="parent " data-name="Zangdar#_hidePrevBtns"><a href="Zangdar.html#_hidePrevBtns">_hidePrevBtns</a></li>

<li class="parent " data-name="Zangdar#_init"><a href="Zangdar.html#_init">_init</a></li>

<li class="parent " data-name="Zangdar#_lastStep"><a href="Zangdar.html#_lastStep">_lastStep</a></li>

<li class="parent " data-name="Zangdar#_nextStep"><a href="Zangdar.html#_nextStep">_nextStep</a></li>

<li class="parent " data-name="Zangdar#_onStepChange"><a href="Zangdar.html#_onStepChange">_onStepChange</a></li>

<li class="parent " data-name="Zangdar#_prevStep"><a href="Zangdar.html#_prevStep">_prevStep</a></li>

<li class="parent " data-name="Zangdar#_revealStep"><a href="Zangdar.html#_revealStep">_revealStep</a></li>

<li class="parent " data-name="Zangdar#_validateCurrentStep"><a href="Zangdar.html#_validateCurrentStep">_validateCurrentStep</a></li>

<li class="parent " data-name="Zangdar#count"><a href="Zangdar.html#count">count</a></li>

<li class="parent " data-name="Zangdar#createFromTemplate"><a href="Zangdar.html#createFromTemplate">createFromTemplate</a></li>
Expand Down Expand Up @@ -480,12 +512,12 @@ <h3 class="subsection-title">Members</h3>

<dt>
<div class="nameContainer">
<h4 class="name" id="active">
<a class="share-icon" href="#active"><span class="glyphicon glyphicon-link"></span></a>
<span class="">active</span>
<h4 class="name" id="_completed">
<a class="share-icon" href="#_completed"><span class="glyphicon glyphicon-link"></span></a>
<span class="">_completed</span>
<span class="type-signature type">Boolean</span>


<span class="access-signature">private</span>


</h4>
Expand Down Expand Up @@ -527,10 +559,10 @@ <h4 class="name" id="active">

<dt>
<div class="nameContainer">
<h4 class="name" id="completed">
<a class="share-icon" href="#completed"><span class="glyphicon glyphicon-link"></span></a>
<span class="">completed</span>
<span class="type-signature type">Boolean</span>
<h4 class="name" id="_errors">
<a class="share-icon" href="#_errors"><span class="glyphicon glyphicon-link"></span></a>
<span class="">_errors</span>
<span class="type-signature type">Object</span>

<span class="access-signature">private</span>

Expand Down Expand Up @@ -574,12 +606,12 @@ <h4 class="name" id="completed">

<dt>
<div class="nameContainer">
<h4 class="name" id="completed">
<a class="share-icon" href="#completed"><span class="glyphicon glyphicon-link"></span></a>
<span class="">completed</span>


<h4 class="name" id="_fields">
<a class="share-icon" href="#_fields"><span class="glyphicon glyphicon-link"></span></a>
<span class="">_fields</span>
<span class="type-signature type">Object</span>

<span class="access-signature">private</span>


</h4>
Expand Down Expand Up @@ -621,10 +653,10 @@ <h4 class="name" id="completed">

<dt>
<div class="nameContainer">
<h4 class="name" id="element">
<a class="share-icon" href="#element"><span class="glyphicon glyphicon-link"></span></a>
<span class="">element</span>
<span class="type-signature type">HTMLElement</span>
<h4 class="name" id="active">
<a class="share-icon" href="#active"><span class="glyphicon glyphicon-link"></span></a>
<span class="">active</span>
<span class="type-signature type">Boolean</span>



Expand Down Expand Up @@ -668,12 +700,12 @@ <h4 class="name" id="element">

<dt>
<div class="nameContainer">
<h4 class="name" id="errors">
<a class="share-icon" href="#errors"><span class="glyphicon glyphicon-link"></span></a>
<span class="">errors</span>
<span class="type-signature type">Object</span>
<h4 class="name" id="completed">
<a class="share-icon" href="#completed"><span class="glyphicon glyphicon-link"></span></a>
<span class="">completed</span>



<span class="access-signature">private</span>


</h4>
Expand Down Expand Up @@ -715,12 +747,12 @@ <h4 class="name" id="errors">

<dt>
<div class="nameContainer">
<h4 class="name" id="fields">
<a class="share-icon" href="#fields"><span class="glyphicon glyphicon-link"></span></a>
<span class="">fields</span>
<span class="type-signature type">Object</span>
<h4 class="name" id="element">
<a class="share-icon" href="#element"><span class="glyphicon glyphicon-link"></span></a>
<span class="">element</span>
<span class="type-signature type">HTMLElement</span>


<span class="access-signature">private</span>


</h4>
Expand Down Expand Up @@ -907,6 +939,74 @@ <h3 class="subsection-title">Methods</h3>

<dl class="list-methods">

<dt>
<div class="nameContainer">
<h4 class="name" id="_setFields">
<a class="share-icon" href="#_setFields"><span class="glyphicon glyphicon-link"></span></a>
<span class="">
_setFields
</span>
<span class="signature">()</span>

<span class="access-signature">private</span>


</h4>


</div>


</dt>
<dd>










<dl class="details">



















</dl>













</dd>



<dt>
<div class="nameContainer">
<h4 class="name" id="addError">
Expand Down Expand Up @@ -2116,7 +2216,7 @@ <h5>Returns:</h5>

<footer class="content-size">
<div class="footer">
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Apr 09 2020 11:16:29 GMT+0200 (GMT+02:00)
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Apr 09 2020 12:14:20 GMT+0200 (GMT+02:00)
</div>
</footer>
</div>
Expand Down
Loading

0 comments on commit d489f9d

Please sign in to comment.