Skip to content

Releases: ing-bank/lion

[email protected]

12 Feb 12:02
38c495b
Compare
Choose a tag to compare

Patch Changes

  • 5b64da8: fix: update @web/dev-server version

@lion/[email protected]

12 Feb 12:02
38c495b
Compare
Choose a tag to compare

Patch Changes

  • 69c9da8: [validation-messages] get correct validation min and max dates in French

@lion/[email protected]

07 Feb 19:25
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Moved to scoped-elements v3

Patch Changes

  • [validation-messages] get correct validation min and max dates in French

@lion/[email protected]

19 Dec 13:25
Compare
Choose a tag to compare
Pre-release

@lion/ui

0.5.2

Patch Changes

  • d997e52: [tooltip] hide tooltip if the invoker gets disabled
  • c80bca7: Fix scroll behavior when closing an overlay
  • db96e8c: fix(tabs): set selectedIndex only if value differ from previous value

0.5.1

Patch Changes

  • 9b5edf3: [localize] parseDate by default to 2000 instead of 1900 when date is below 49
  • bf78222: do not run disabled property reflection unless it was part of the changeset in LionSwitchButton
  • 322b065: Export isIOS and isMacSafari functions as part of browserDetection utility
  • 322b065: Use traditional styleSheet on IOS for overlays
  • bf78222: reuse uuid function from the core in LionButton and LionInputDatepicker
  • bf78222: invoke parent class updated callback in LionCollapsible, LionDrawer and LionSwitchButton
  • cb25a60: fix: DE locale typo for validation messages
  • Updated dependencies [ef9b1e4]

0.5.0

Minor Changes

  • 7f644cd: feat: [combobox] add allow-custom-choice (former requireOptionMatch=false) and make it compatible with multiple-choice

Patch Changes

  • be4e25a: fix: [combobox] single choice with allow-custom-choice(former requireOptionMatch=false) doesn't clear selection
  • e923ba4: fix: [radio-group] resetting a radio-group containing options with formatters doesn't check the default value
  • 7235a4f: fix: [combobox] model-value-changed event emitted when clearing a combobox sends stale value
  • c459ded: fix: [combobox] autocomplete feature for the lion-combobox component. It used to autoselect a wrong item

0.4.2

Patch Changes

  • b1320a9: avoid calling push in iterable object to avoid error loading overlays in old chromium versions
  • dcf3a4b: Fix search issues when modifying the middle of the input word in LionCombobox.
  • be36bf3: Fix accessibility currency linking to label after setting currency from undefined in LionInputAmount.
  • 63a8e72: lion-calendar: when determining if user interacted with a day button, use event.composedPath()[0] instead of event.target to fix Firefox 111+ issue

0.4.1

Patch Changes

  • a58d8ce: export more type definitions

0.4.0

Minor Changes

  • a3738b5: Bypass the requirement to support export & import map to consume @lion/ui

Patch Changes

  • ebe13e1: fix: undefined document.body
  • b0a74f2: fix(progress-indicator): accept 0 as a valid value
  • b89d889: Render exactly 6 weeks in every months.
  • 9b9485d: [calendar] focusCentralDate function should only use buttons inside the dates table
  • d1f92a3: Make disabled date buttons not selectable via keyboard navigation in LionCalendar.
  • d597c07: [localize] with localizeNameSpaces type
  • 6ccfb27: [input-datepicker] only disable dates is the validator type is "error"
  • 4cc72b1: feat: allow Required validator on Fieldset and Form;
  • cecf5ed: lion-accordion now replaces expanded with a copy when it changes on click of an invoker button.
  • 857d47a: Handle focusin event in invokers in LionAccordion. Fix tabbing issues.

0.4.0-prerelease-bypass-export-map.0

Minor Changes

  • Bypass the requirement to support export & import map to consume @lion/ui

0.3.5

Patch Changes

  • 5eafa1f: hide overlay arrow from screen readers

0.3.4

Patch Changes

  • b44bfc5: [calendar] updates:

    • Enables focus to disabled dates to make it more reasonable for screen readers
    • Do not automatically force selection of a valid date
    • Add helper functions to find next/previous/nearest enabled date
  • 137a1b6: lion-input-file: added isDragging property

0.3.3

Patch Changes

  • ecf853d: fixed exporting types of lion-input-file

0.3.2

Patch Changes

  • 259e0dd: lion-selected-filelist: removed composed: true and bubbles: true and set eventlistener directly on lion-selected-file-list inside lion-input-file

0.3.1

Patch Changes

  • 7ec90dc: add CheckboxIndeterminate test suite
  • 1ea5730: [localize] align currency symbol usage for all browsers
  • 33c0ff1: Added vs-code json file to enable auto-completion
  • dbc3fc2: [combobox] submits form on [Enter]

0.3.0

Minor Changes

  • e310c08: fix: LionInputDatePicker enters an endless loop on InvalidDate modelValue
  • d2de984: [input-file] Create input-file component
  • 6893421: fix(ui): align light dom with internal reactivity cycle of LitElement/ReactiveElement.
    Since light dom render is now aligned inside update instead of updated (like it already was for shadow dom),
    we can rely on the fact that all dom (light and shadow) has rendered inside our updated loop.

Patch Changes

  • bdc7455: Allow customization of currency label's slot in Input Amount
  • 2683a73: [FocusMixin] now syncs autofocus between host and the focusable node.

0.2.2

Patch Changes

  • 88e6ca0: [localize] parseNumbers as heuristic if there is only 1 separator and 2 or less decimals e.g. 12.34

0.2.1

Patch Changes

  • 5b8d655: OverlayController: fixed check to determine if native dialog is supported, fixed check to determine if user has moved focus while dialog is open, added test to assert if element specified in dialog config key elementToFocusAfterHide is in viewport when dialog is closed
  • a5f3515: feat(@lion/ui): add _previousIconTemplate and _nextIconTemplate to LionCalendar
  • ddea63b: [combobox] update option list after clear
  • 12f1800: lion-calendar: when determining if user interacted with a day button we no longer examine event.target but event.composedPath()[0] since it otherwise fails in Firefox 111+

0.2.0

Minor Changes

  • 183c86a: Changed spelling/grammar of the german error message for an invalid IBAN.

Patch Changes

  • adfa29a: [switch] remove one of the two role="switch" (nested-interactive). Only leave it on the switch-button.

  • 0d4c42a: [listbox] allow use of arrow keys when focus is not on listbox

  • 42a463e: Set padding of to 0 so it doesn't show a weird 1em width/height box due to user agent styles.

  • 3256892: lion-switch: checked-changed event is no longer fired on element initialization when checked is set through attribute

  • 3f1c83a: lion-accordion: changed selectors for invokers and content to only select slotted elements that are direct descendants. This is to prevent that slotted elements in accordion content and invokers are also selected and the amount of invokers and content is incorrect

  • a2b81b2: [combobox] Multiple improvements:

    • Allow textbox values to be entered that do not match a listbox option, via requireOptionMatch flag.
    • Added an MatchesOption validator to check if the value is matching an option.
    • Exports combobox test helpers
  • 1f018ba: feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker

0.1.5

Patch Changes

  • 943618f: [combobox] fix direct open and closing of the overlay on focus of empty input when showAllOnEmpty
  • 4226a01: [combobox] add translations

0.1.4

Patch Changes

  • 1c18057: [combobox] make the first occurrence of a string highlighted, instead of the last.
  • 974e9ea: fix(@lion/ui): declare sideEffects in package.json

0.1.3

Patch Changes

  • e871fe6: fix(@lion/ui): export types necessary for type inference of core.js

0.1.2

Patch Changes

  • 9ff7cd7: fix(@lion/ui): export types necessary for type inference of mixins (fixes #1903)
  • 74b4b68: don't set unparseable for negative timezones
  • eff3259: LocalizeManager: added allowOverridesForExistingNamespaces option to constructor argument to allow for changing data in a namespace for a given locale
  • 84173cd: lion-select-rich: when the overlay is shown, the "autofocus" attribute is added to _listboxNode (_inputNode) to make sure that keyboard navigation continues to work when the element is inside a an element with trapsKeyboardFocus:true, like the bottomsheet created via withBottomSheetConfig(). When the overlay is closed the attribute is removed.

0.1.1

Patch Changes

  • cee40e5: Side-effect-free alternative for localize (the globally shared instance of LocalizeManager).
    When this function is imported, no side-effect happened yet, i.e. no global instance was registered yet.
    The side effect-free approach generates:

    • smaller, optimized bundles
    • a predictable loading order, that allows for:
      • deduping strategies when multiple instances of the localizeManager are on a page
      • providing a customized extension of LocalizeManager

    Also see: https://github.com/ing-bank/lion/discussions/1861

    Use it like this:

    function myFunction() {
      // note that 'localizeManager' is the same as former 'localize'
      const localizeManager = getLocalizeManger();
      // ...
    }

    In a class, we advise a shared instance:

    class MyClass {
      constructor() {
        this._localizeManager = getLocalizeManger();
      }
      // ...
    }

    Make sure to always call this method inside a function or class (otherwise side effects are created)

    Do you want to register your own LocalizeManager?
    Make sure it's registered before anyone called getLocalizeManager()

    import { singletonManager } from 'singleton-manager';
    import { getLocalizeManger } from '@lion/ui/localize-no-side-effects.js';
    
    // First register your own LocalizeManager (for deduping or other reasons)
    singletonManager.set('lion/ui::localize::0.x', class MyLocalizeManager extends LocalizeManager {});
    
    // Now, all your code gets the right instance
    export function myFn() {
      const localizeManager = getLocalizeManager();
      // ...
    }
    
    export class myClass() {
      constructor() {
        this._localizeManager = getLocalizeManager();

...

Read more

@lion/[email protected]

14 Dec 09:18
Compare
Choose a tag to compare

Patch Changes

  • d997e52: [tooltip] hide tooltip if the invoker gets disabled
  • c80bca7: Fix scroll behavior when closing an overlay
  • db96e8c: fix(tabs): set selectedIndex only if value differ from previous value

[email protected]

30 Nov 10:41
Compare
Choose a tag to compare

Patch Changes

  • 7f6eb15: feat: allow to resolve outside node_modules as well
  • 7f6eb15: feat: do not throw on unparseable files, but allow to proceed run for rest of projects
  • 7f6eb15: fix: swc-traverse does not fail on object proto builtins like "toString"
  • 292dcfc: fix: corrected export path for MatchImportAnalyzer

[email protected]

29 Nov 10:48
40ddf2c
Compare
Choose a tag to compare

Minor Changes

@lion/[email protected]

29 Nov 10:49
40ddf2c
Compare
Choose a tag to compare

Patch Changes

  • 9b5edf3: [localize] parseDate by default to 2000 instead of 1900 when date is below 49
  • bf78222: do not run disabled property reflection unless it was part of the changeset in LionSwitchButton
  • 322b065: Export isIOS and isMacSafari functions as part of browserDetection utility
  • 322b065: Use traditional styleSheet on IOS for overlays
  • bf78222: reuse uuid function from the core in LionButton and LionInputDatepicker
  • bf78222: invoke parent class updated callback in LionCollapsible, LionDrawer and LionSwitchButton
  • cb25a60: fix: DE locale typo for validation messages
  • Updated dependencies [ef9b1e4]

[email protected]

09 Nov 11:40
64a1b65
Compare
Choose a tag to compare

Minor Changes

  • bdb038e: Many improvements:

    • rewritten from babel to swc
    • swcTraverse tool, compatible with babel traverse api
    • increased performance
    • better windows compatibility

    BREAKING:

    • package fully written as esm
    • entrypoints changed:
      • @providence-analytics/src/cli => @providence-analytics/cli.js
      • @providence-analytics/analyzers => @providence-analytics/analyzers.js

@lion/[email protected]

09 Nov 11:40
64a1b65
Compare
Choose a tag to compare

Minor Changes

  • 7f644cd: feat: [combobox] add allow-custom-choice (former requireOptionMatch=false) and make it compatible with multiple-choice

Patch Changes

  • be4e25a: fix: [combobox] single choice with allow-custom-choice(former requireOptionMatch=false) doesn't clear selection
  • e923ba4: fix: [radio-group] resetting a radio-group containing options with formatters doesn't check the default value
  • 7235a4f: fix: [combobox] model-value-changed event emitted when clearing a combobox sends stale value
  • c459ded: fix: [combobox] autocomplete feature for the lion-combobox component. It used to autoselect a wrong item