tag:github.com,2008:https://github.com/autoNumeric/vue-autoNumeric/releasesTags from vue-autoNumeric2018-09-14T19:07:47Ztag:github.com,2008:Repository/79446349/v1.2.62018-09-14T19:07:47Zv1.2.6: Fixes #24 VueAutonumeric value prop validator should accept strings<p><span class="issue-keyword tooltipped tooltipped-se">Fixes</span> <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/24">#24</a> VueAutonumeric value prop validator should accept strings</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.2.52018-05-25T19:54:10Zv1.2.5<p><span class="issue-keyword tooltipped tooltipped-se">Fixes</span> <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/14">#14</a> The `readOnly` option is not respected for non-input tags (…</p>
<p>…`contenteditable` is always set to `true`)</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.2.42018-05-25T19:28:02Zv1.2.4<p><span class="issue-keyword tooltipped tooltipped-se">Fixes</span> <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/18">#18</a> Require of AutoNumeric is ES6 module and not the distributi…</p>
<p>…on version</p>
<p>Fix how using vue-autonumeric with a CDN did not work since the external library it searched was in lowercase.
<br />Update the documentation about using `vue-autonumeric` in an ES6 module setup with Webpack</p>
<p>Important note:
<br />- We need to use `<npmPath>: 'AutoNumeric'` in the `vue-autonumeric`'s webpack configuration since we want the user to be able to just use a CDN link to the AutoNumeric library and make sure `vue-autonumeric` will correctly use this name (since it's exported as `AutoNumeric`, with this case).
<br />- However if you are using `vue-autonumeric` in an ES6 module setup with a bundling tool (ie. Webpack), then you'll need to declare in your project an alias so that Webpack will know how to recognize the correct library name case.
<br /> - The alias configuration example for Webpack:
<br />```js
<br />resolve: {
<br /> extensions: ['.js', '.vue', '.json'],
<br /> alias : {
<br /> '~' : resolve('node_modules'),
<br /> '@' : resolve('src'),
<br /> 'AutoNumeric': resolve('node_modules/autonumeric/dist/autoNumeric.min'),
<br /> },
<br />},
<br />```</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.2.32018-05-09T21:34:33Zv1.2.3: Fixes #15 Prop Validation Returns Error if Empty String<p><span class="issue-keyword tooltipped tooltipped-se">Fixes</span> <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/15">#15</a> Prop Validation Returns Error if Empty String</p>
<p><span class="issue-keyword tooltipped tooltipped-se">Fixes</span> <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/16">#16</a> build fails on linux</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.2.12018-05-08T02:00:53Zv1.2.1<p>Update the examples with another way to set the empty value, via the …</p>
<p>…v-model</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.2.02018-03-27T21:21:50Zv1.2.0: Simplify how the decimal places are set<p>Simplify how the decimal places are set</p>
<p>In `v1.1.*`, whenever the options were changed, the number of decimal places for the `rawValue` was calculated based of the previous options, and not only the new given options.
<br />This was useful when two vue-autonumeric components shared the same v-model, but different options that have different values for the `rawValue` decimal places count.</p>
<p>For instance if one of the `vue-autonumeric` component had a `decimalPlaces` option set to `2`, and another set to `5`, then when the user modified the value of one of those components, vue-autonumeric would detect a programmatic value change in the other component (since it did not come from a user interaction), and it would then use `set()` to set the new value.
<br />The first component would drop the additional decimal places when using `set()`...which in turn would make the other components aware of that new value change, and the second component would then use that new cropped value as well.</p>
<p>However, this special decimal places management is complexifying the code quite a bit, and is not 100% effective since some use cases were difficult, if even possible, to manage.
<br />This `rawValueDecimalPlaces` *hack* is now reverted to a more sane and legible code.</p>
<p>From now on, the user will have to explicitly declare the `rawValueDecimalPlaces` value when updating the options, if he does not want to lose the precision when switching options.</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.1.02018-03-01T02:55:41Zv1.1.0<p>Fix issue <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/10">#10</a> When using an object to modify both the `:value` and `:…</p>
<p>…options` props, the options is not always modified before the value</p>
<p>Fix the issue where updating the `options` to new ones with a higher `decimalPlacesRawValue` loses the additional decimal places
<br />Now allows to update the `options` by passing an array of options (with objects and predefined option names)</p>
<p>When the `options` and `value` are both set at the same time, `vue-autonumeric` now always update the `options` first, before setting the `value`.
<br />- This allows to use objects with the value and a predefined option name to modify the vue-autonumeric component.
<br />- Note: There is a know bug yet; if you use multiple `vue-autonumeric` component sharing the same `v-model` but *different* options, changing the value/option *may* not work correctly.
<br /> - This is due to the fact that when vue-autonumeric detects a value change, it `set()` it since it does not come from a user interaction.
<br /> - However if one of the `vue-autonumeric` component has a `decimalPlaces` option set to `2`, and another set to `5`, then the first component will drop the additional decimal places when using `set()`...which in turn will make the other component aware of that new value change, and the second component will then use that new cropped value as well.</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.0.72018-02-27T02:23:00Zv1.0.7<p>Fix issue <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/9">#9</a> Modifying the `options` will always lose the decimal pla…</p>
<p>…ces precision after `2` places</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.0.62018-02-27T00:55:13Zv1.0.6<p>Fix issue <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/8">#8</a> Add a new `resetOnOptions` props so that updating the `o…</p>
<p>…ptions` one first reset to the default options</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneautag:github.com,2008:Repository/79446349/v1.0.52018-02-01T22:43:21Zv1.0.5<p>Fix issue <a class="issue-link js-issue-link" href="https://github.com/autoNumeric/vue-autoNumeric/issues/2">#2</a> Allow the component to generate any supported Html eleme…</p>
<p>…nt instead of only `<input>`</p>
<p>Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu></p>AlexandreBonneau