Skip to content

Commit

Permalink
Fixed the export for formio.core.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 14, 2021
1 parent bf5a346 commit 588b67f
Show file tree
Hide file tree
Showing 84 changed files with 375 additions and 366 deletions.
6 changes: 4 additions & 2 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ module.exports = {
'validator/index.js': './src/validator/index.ts'
},
output: {
library: 'Formio',
libraryTarget: 'umd',
library: {
name: 'Formio',
type: 'umd'
},
path: path.resolve(__dirname, '../lib'),
filename: '[name]',
environment: {
Expand Down
7 changes: 7 additions & 0 deletions config/webpack.core.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');
const config = require('./webpack.config');
config.mode = 'production';
config.entry = {'formio.core.min.js': './src/core.ts'};
config.output.path = path.resolve(__dirname, '../dist');
config.output.library.export = 'Formio';
module.exports = config;
1 change: 0 additions & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const path = require('path');
const config = require('./webpack.config');
config.mode = 'production';
config.entry = {
'formio.core.min.js': './src/index.ts',
'formio.base.min.js': './src/base/index.ts',
'formio.components.min.js': './src/components/index.ts',
'formio.model.min.js': './src/model/index.ts',
Expand Down
2 changes: 1 addition & 1 deletion dist/formio.core.min.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/base_components.components.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> components</h3>
<div class="tsd-signature tsd-kind-icon">components<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L8">src/base/Components.ts:8</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L8">src/base/Components.ts:8</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -154,7 +154,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> decorators</h3>
<div class="tsd-signature tsd-kind-icon">decorators<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L9">src/base/Components.ts:9</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L9">src/base/Components.ts:9</a></li>
</ul>
</aside>
</section>
Expand All @@ -171,7 +171,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Component</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L62">src/base/Components.ts:62</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L62">src/base/Components.ts:62</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -205,7 +205,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Decorator</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L52">src/base/Components.ts:52</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L52">src/base/Components.ts:52</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -238,7 +238,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> component</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L18">src/base/Components.ts:18</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L18">src/base/Components.ts:18</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -269,7 +269,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> create</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L42">src/base/Components.ts:42</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L42">src/base/Components.ts:42</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -318,7 +318,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> import<wbr>Component</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L77">src/base/Components.ts:77</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L77">src/base/Components.ts:77</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -346,7 +346,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr>Components</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Components.ts#L88">src/base/Components.ts:88</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Components.ts#L88">src/base/Components.ts:88</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
24 changes: 12 additions & 12 deletions docs/classes/base_template.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> _current</h3>
<div class="tsd-signature tsd-kind-icon">_current<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L8">src/base/Template.ts:8</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L8">src/base/Template.ts:8</a></li>
</ul>
</aside>
</section>
Expand All @@ -156,7 +156,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> _framework</h3>
<div class="tsd-signature tsd-kind-icon">_framework<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#x27;bootstrap&#x27;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L9">src/base/Template.ts:9</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L9">src/base/Template.ts:9</a></li>
</ul>
</aside>
</section>
Expand All @@ -166,7 +166,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> templates</h3>
<div class="tsd-signature tsd-kind-icon">templates<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L7">src/base/Template.ts:7</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L7">src/base/Template.ts:7</a></li>
</ul>
</aside>
</section>
Expand All @@ -184,7 +184,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> current</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L59">src/base/Template.ts:59</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L59">src/base/Template.ts:59</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -197,7 +197,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L51">src/base/Template.ts:51</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L51">src/base/Template.ts:51</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -226,7 +226,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> framework</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L76">src/base/Template.ts:76</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L76">src/base/Template.ts:76</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -239,7 +239,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L66">src/base/Template.ts:66</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L66">src/base/Template.ts:66</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -270,7 +270,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Template</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L26">src/base/Template.ts:26</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L26">src/base/Template.ts:26</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -303,7 +303,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Templates</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L15">src/base/Template.ts:15</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L15">src/base/Template.ts:15</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -333,7 +333,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> extend<wbr>Template</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L35">src/base/Template.ts:35</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L35">src/base/Template.ts:35</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -366,7 +366,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> render</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L87">src/base/Template.ts:87</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L87">src/base/Template.ts:87</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -403,7 +403,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr>Template</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/base/Template.ts#L44">src/base/Template.ts:44</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/base/Template.ts#L44">src/base/Template.ts:44</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/components_datatable_datatable.datatable.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L7">src/components/datatable/datatable.ts:7</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L7">src/components/datatable/datatable.ts:7</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -193,7 +193,7 @@ <h3>render<wbr>Classes</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L9">src/components/datatable/datatable.ts:9</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L9">src/components/datatable/datatable.ts:9</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -210,7 +210,7 @@ <h3>render<wbr>Context</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L26">src/components/datatable/datatable.ts:26</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L26">src/components/datatable/datatable.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_datatable_datatable.datatable.html">DataTable</a>.<a href="components_datatable_datatable.datatable.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L7">src/components/datatable/datatable.ts:7</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L7">src/components/datatable/datatable.ts:7</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h3>render<wbr>Classes</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_datatable_datatable.datatable.html">DataTable</a>.<a href="components_datatable_datatable.datatable.html#renderclasses">renderClasses</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L9">src/components/datatable/datatable.ts:9</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L9">src/components/datatable/datatable.ts:9</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -200,7 +200,7 @@ <h3>render<wbr>Context</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_datatable_datatable.datatable.html">DataTable</a>.<a href="components_datatable_datatable.datatable.html#rendercontext">renderContext</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/datatable/datatable.ts#L26">src/components/datatable/datatable.ts:26</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/datatable/datatable.ts#L26">src/components/datatable/datatable.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_html_html.html.html">HTML</a>.<a href="components_html_html.html.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L19">src/components/html/html.ts:19</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L19">src/components/html/html.ts:19</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h3>get<wbr>Attributes</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_html_html.html.html">HTML</a>.<a href="components_html_html.html.html#getattributes">getAttributes</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L21">src/components/html/html.ts:21</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L21">src/components/html/html.ts:21</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -200,7 +200,7 @@ <h3>render<wbr>Context</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="components_html_html.html.html">HTML</a>.<a href="components_html_html.html.html#rendercontext">renderContext</a></p>
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L43">src/components/html/html.ts:43</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L43">src/components/html/html.ts:43</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/components_html_html.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L19">src/components/html/html.ts:19</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L19">src/components/html/html.ts:19</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -202,7 +202,7 @@ <h3>get<wbr>Attributes</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L21">src/components/html/html.ts:21</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L21">src/components/html/html.ts:21</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -219,7 +219,7 @@ <h3>render<wbr>Context</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/formio/core/blob/58bf9ec/src/components/html/html.ts#L43">src/components/html/html.ts:43</a></li>
<li>Defined in <a href="https://github.com/formio/core/blob/bf5a346/src/components/html/html.ts#L43">src/components/html/html.ts:43</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Loading

0 comments on commit 588b67f

Please sign in to comment.