# Change Log ## 0.8.4 ### Patch Changes - 6b91c92d: Remove .prototype accessor when accessing super.constructor from a constructor. This causes maximum call stack exceeded in latest chrome. - 701aadce: Fix types of mixins to include LitElement static props and methods, and use Pick generic type instead of fake constructors. - Updated dependencies [701aadce] - @lion/core@0.14.1 - @lion/localize@0.16.1 ## 0.8.3 ### Patch Changes - b2a1c1ef: Make sure prev validation result is always an array (of validators) and not undefined. ## 0.8.2 ### Patch Changes - d0b37e62: Do a deep equals check for choice group children that have complex modelValues, enabling modelValue setter to work on the group level. ## 0.8.1 ### Patch Changes - deb95d13: Add data-tag-name manually to scoped child slottables as the ScopedElementsMixin only does this transform for elements inside render templates. ## 0.8.0 ### Minor Changes - b2f981db: Add exports field in package.json Note that some tools can break with this change as long as they respect the exports field. If that is the case, check that you always access the elements included in the exports field, with the same name which they are exported. Any item not exported is considered private to the package and should not be accessed from the outside. ### Patch Changes - Updated dependencies [b2f981db] - @lion/core@0.14.0 - @lion/localize@0.16.0 ## 0.7.3 ### Patch Changes - a7b27502: Sync name to parent form group conditionally and allow overriding. Also fix sync properly to prevent infinite loop. ## 0.7.2 ### Patch Changes - 77114753: Stop propagation of label click event in choice inputs to deduplicate the click event on the choice input. - f98aab23: Make \_\_parentFormGroup --> \_parentFormGroup so it is protected and not private - f98aab23: Make \_\_toggleChecked protected property (\_toggleChecked) ## 0.7.1 ### Patch Changes - 8fb7e7a1: Fix type issues where base constructors would not have the same return type. This allows us to remove a LOT of @ts-expect-errors/@ts-ignores across lion. - 9112d243: Fix missing types and update to latest scoped elements to fix constructor type. - Updated dependencies [8fb7e7a1] - Updated dependencies [9112d243] - @lion/core@0.13.8 - @lion/localize@0.15.5 ## 0.7.0 ### Minor Changes - a8cf4215: Added `isTriggeredByUser` meta data in `model-value-changed` event Sometimes it can be helpful to detect whether a value change was caused by a user or via a programmatical change. This feature acts as a normalization layer: since we use `model-value-changed` as a single source of truth event for all FormControls, there should be no use cases for (inconsistently implemented (cross browser)) events like `input`/`change`/`user-input-changed` etc. ### Patch Changes - 5302ec89: Minimise dependencies by removing integration demos to form-integrations and form-core packages. - 98f1bb7e: Ensure all lit imports are imported from @lion/core. Remove devDependencies in all subpackages and move to root package.json. Add demo dependencies as real dependencies for users that extend our docs/demos. - Updated dependencies [a8cf4215] - Updated dependencies [98f1bb7e] - @lion/localize@0.15.4 - @lion/core@0.13.7 ## 0.6.14 ### Patch Changes - Updated dependencies [9fba9007] - @lion/core@0.13.6 - @lion/localize@0.15.3 ## 0.6.13 ### Patch Changes - Updated dependencies [41edf033] - @lion/core@0.13.5 - @lion/localize@0.15.2 ## 0.6.12 ### Patch Changes - 5553e43e: fix: point to parent constructor in styles getter ## 0.6.11 ### Patch Changes - aa8ad0e6: - (RadioGroup) fix reset bug when selected value was behind inital value - Add ChoiceInputMixin test suite - Make use of ChoiceGroupMixin test suite - 4bacc17b: Adding form elements at the top of a form now adds them to the beginning of the `.formElements` to keep it in sync with the dom order. - @lion/localize@0.15.1 ## 0.6.10 ### Patch Changes - c5c4d4ba: Normalize input values in date comparison validators - Updated dependencies [3ada1aef] - @lion/localize@0.15.0 ## 0.6.9 ### Patch Changes - cf0967fe: Fix type definition file for CSSResultArray ## 0.6.8 ### Patch Changes - b222fd78: Always use CSSResultArray for styles getters and be consistent. This makes typing for subclassers significantly easier. Also added some fixes for missing types in mixins where the superclass was not typed properly. This highlighted some issues with incomplete mixin contracts ## 0.6.7 ### Patch Changes - cfbcccb5: Fix type imports to reuse lion where possible, in case Lit updates with new types that may break us. - Updated dependencies [cfbcccb5] - @lion/core@0.13.4 - @lion/localize@0.14.9 ## 0.6.6 ### Patch Changes - Updated dependencies [e2e4deec] - Updated dependencies [8ca71b8f] - @lion/core@0.13.3 - @lion/localize@0.14.8 ## 0.6.5 ### Patch Changes - 618f2698: Run tests also on webkit - Updated dependencies [20ba0ca8] - Updated dependencies [618f2698] - @lion/core@0.13.2 - @lion/localize@0.14.7 ## 0.6.4 ### Patch Changes - 2907649b: filter feedback messages according feedback conditions - 68e3e749: Add missing interaction states that could act as feedback conditions. Fix the interactive demo that showcases dynamic feedback conditions. - fd297a28: Properly update formElements when the name attribute changes, in order to get an updated serializedValue. - 9fcb67f0: Allow flexibility for extending the repropagation prevention conditions, which is needed for combobox, so that a model-value-changed event is propagated when no option matches after an input change. This allows validation to work properly e.g. for Required. - 247e64a3: Ensure that the name of a child choice field is always synced with the parent choice field(set) when it changes. No longer error when a child is added with a different name than the parent, simply sync it. - Updated dependencies [7682e520] - Updated dependencies [e92b98a4] - @lion/localize@0.14.6 - @lion/core@0.13.1 ## 0.6.3 ### Patch Changes - d5faa459: ChoiceGroupMixin: On value change uncheck all formElements that do not meet the requested condition - 0aa4480e: Refactor of some fields to ensure that \_inputNode has the right type. It starts as HTMLElement for LionField, and all HTMLInputElement, HTMLSelectElement and HTMLTextAreaElement logic, are moved to the right places. ## 0.6.2 ### Patch Changes - 4b7bea96: Added some type fixes/adjustments. - 01a798e5: Combobox package ## Features - combobox: new combobox package - core: expanded browsers detection utils - core: closest() polyfill for IE - overlays: allow OverlayMixin to specify reference node (when invokerNode should not be positioned against) - form-core: add `_onLabelClick` to FormControlMixin. Subclassers should override this ## Patches - form-core: make ChoiceGroupMixin a suite - listbox: move generic tests from combobox to listbox - select-rich: enhance tests - a31b7217: Added submitGroup to types definition file for FormGroupMixin. - 85720654: - prevent toggle of checked state when disabled - dispatch checked-changed on label click - 32202a88: Added index definition file to git, to allow for importing LionField module definition. Adjust some types now that LionInput will be typed - b9327627: These packages were using out of sync type definitions for FormatOptions, and the types were missing a bunch of options that Intl would normally accept. We now extend Intl's NumberFormatOptions and DateTimeFormatOptions properly, so we always have the right types and are more consistent on it. - 02145a06: for ChoiceInputs override clear() so modelValue doesn't get erased - Updated dependencies [01a798e5] - Updated dependencies [b9327627] - @lion/core@0.13.0 - @lion/localize@0.14.5 ## 0.6.1 ### Patch Changes - 60d5d1d3: Remove usage of Public Class Fields to not break builds - Updated dependencies [75107a4b] - @lion/core@0.12.0 - @lion/localize@0.14.4 ## 0.6.0 ### Minor Changes - 874ff483: Form-core typings #### Features Provided typings for the form-core package and core package. This also means that mixins that previously had implicit dependencies, now have explicit ones. #### Patches - lion-select-rich: invoker selectedElement now also clones text nodes (fix) - fieldset: runs a FormGroup suite ### Patch Changes - Updated dependencies [874ff483] - @lion/core@0.11.0 - @lion/localize@0.14.3 ## 0.5.0 ### Minor Changes - 65ecd432: Update to lit-element 2.4.0, changed all uses of \_requestUpdate into requestUpdateInterval ### Patch Changes - Updated dependencies [65ecd432] - Updated dependencies [4dc621a0] - @lion/core@0.10.0 - @lion/localize@0.14.2 ## 0.4.4 ### Patch Changes - c347fce4: Field population fix #### Bugfixes - allow population conditionally rendered fields in formGroup/fieldset/form ## 0.4.3 ### Patch Changes - Updated dependencies [4b3ac525] - @lion/core@0.9.1 - @lion/localize@0.14.1 ## 0.4.2 ### Patch Changes - dd021e43: Groups need a valid formattedValue representing the value of it's form elements - 07c598fd: Form should be able to access formattedValue of children ## 0.4.1 ### Patch Changes - fb236975: Add index.d.ts file so that its types can be used across lion. Add package root index.js to TSC build config exclude filter to prevent TSC from erroring on already existing type definition files. ## 0.4.0 ### Minor Changes - 3c61fd29: Add types to form-core, for everything except form-group, choice-group and validate. Also added index.d.ts (re-)export files to git so that interdependent packages can use their types locally. ### Patch Changes - Updated dependencies [3c61fd29] - Updated dependencies [09d96759] - Updated dependencies [9ecab4d5] - @lion/core@0.9.0 - @lion/localize@0.14.0 All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [0.3.1](https://github.com/ing-bank/lion/compare/@lion/form-core@0.3.0...@lion/form-core@0.3.1) (2020-07-28) ### Bug Fixes - resolve registrationComplete via microtask to be sync ([6b8daef](https://github.com/ing-bank/lion/commit/6b8daef5099ab7bab40f9bdd8aaa1a0795b56214)) # [0.3.0](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.6...@lion/form-core@0.3.0) (2020-07-27) ### Features - synchronous form registration system ([8698f73](https://github.com/ing-bank/lion/commit/8698f734186eb88c4669bbadf8d5ae461f1c27f5)) ## [0.2.6](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.5...@lion/form-core@0.2.6) (2020-07-16) ### Bug Fixes - **form-core:** remove possible untrusted input value callback ([e06196d](https://github.com/ing-bank/lion/commit/e06196dec86f6d99fda0ed1c5dac3f62e3e34f6d)) ## [0.2.5](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.4...@lion/form-core@0.2.5) (2020-07-13) **Note:** Version bump only for package @lion/form-core ## [0.2.4](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.3...@lion/form-core@0.2.4) (2020-07-09) **Note:** Version bump only for package @lion/form-core ## [0.2.3](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.2...@lion/form-core@0.2.3) (2020-07-09) ### Bug Fixes - **formgroup:** wait for formElements to register ([780383d](https://github.com/ing-bank/lion/commit/780383d081607c0099004c2824a1493ced3d78a9)) ## [0.2.2](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.1...@lion/form-core@0.2.2) (2020-07-09) ### Bug Fixes - **select-rich:** instantiation after first update ([184898c](https://github.com/ing-bank/lion/commit/184898c111dcb81f269fffc6b82688cc6f25aac2)) ## [0.2.1](https://github.com/ing-bank/lion/compare/@lion/form-core@0.2.0...@lion/form-core@0.2.1) (2020-07-07) **Note:** Version bump only for package @lion/form-core # [0.2.0](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.6...@lion/form-core@0.2.0) (2020-07-06) ### Features - **choice-input:** add rendering of help-text ([5cd36ca](https://github.com/ing-bank/lion/commit/5cd36cac20c763d47ee495daede421bb66c4d0ba)) ## [0.1.6](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.5...@lion/form-core@0.1.6) (2020-06-18) **Note:** Version bump only for package @lion/form-core ## [0.1.5](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.4...@lion/form-core@0.1.5) (2020-06-10) **Note:** Version bump only for package @lion/form-core ## [0.1.4](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.3...@lion/form-core@0.1.4) (2020-06-09) ### Bug Fixes - **form-core:** on reset the submitted values becomes false ([#753](https://github.com/ing-bank/lion/issues/753)) ([d86cfc5](https://github.com/ing-bank/lion/commit/d86cfc59018a2e5dcff0b2f5728683fc4e4861e6)) ## [0.1.3](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.2...@lion/form-core@0.1.3) (2020-06-08) **Note:** Version bump only for package @lion/form-core ## [0.1.2](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.1...@lion/form-core@0.1.2) (2020-06-08) **Note:** Version bump only for package @lion/form-core ## [0.1.1](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.0...@lion/form-core@0.1.1) (2020-06-03) ### Bug Fixes - **field:** remove validation toggled disable ([e24f2ef](https://github.com/ing-bank/lion/commit/e24f2efcff7ffba6076faa4f3ce17ca4c8062b72)) - remove all stories folders from npm ([1e04d06](https://github.com/ing-bank/lion/commit/1e04d06921f9d5e1a446b6d14045154ff83771c3)) # 0.1.0 (2020-05-29) ### Features - merge field/validate/choice-input/form-group into @lion/form-core ([6170374](https://github.com/ing-bank/lion/commit/6170374ee8c058cb95fff79b4953b0535219e9b4))