Fundamental white label web component features for your design system.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
adfa29a0: [switch] remove one of the two role="switch" (nested-interactive). Only leave it on the switch-button.
0d4c42ab: [listbox] allow use of arrow keys when focus is not on listbox
42a463ee: Set padding of to 0 so it doesn't show a weird 1em width/height box due to user agent styles.
3256892c: lion-switch: checked-changed event is no longer fired on element initialization when checked is set through attribute
3f1c83a1: 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
a2b81b26: [combobox] Multiple improvements:
requireOptionMatch
flag.MatchesOption
validator to check if the value is matching an option.1f018baf: feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
showAllOnEmpty
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
d40fd90b: Fixes:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
allowOverridesForExistingNamespaces
option to constructor
argument to allow for changing data in a namespace for a given localetrapsKeyboardFocus:true
, like the bottomsheet created via withBottomSheetConfig()
. When the overlay is closed the attribute is removed.Published by github-actions[bot] over 1 year ago
cee40e55: 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:
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();
// ...
}
}
0efce8e1: [localize] parse negative numbers
a47a6e61: lion-select: added test to assert that modelValue of lion-select is updated when the value or text of one or more options are changed
Published by github-actions[bot] over 1 year ago
@lion/ui
beta 0.1.0Published by github-actions[bot] over 1 year ago
localizeNamespaces()
of the localize mixin to allow NamespaceObject[]
Published by github-actions[bot] almost 2 years ago
accordion
: rearranging invokers and content for a correct tab order is now implemented by changing the slot attributes of both instead of moving them, changed css for this implementation, updated testsPublished by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
accordion
: narrowed the scope of the selectors that query [slot=invoker] and [slot=content] to prevent that any nested elements with [slot=invoker] and [slot=content] are moved to slot=_accordion as well