Socket
Socket
Sign inDemoInstall

@lion/core

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/core - npm Package Compare versions

Comparing version 0.23.0 to 0.23.1

10

docs/guides/how-to/create-a-custom-field.md

@@ -76,5 +76,5 @@ # How To >> Create a custom field ||20

Custom Fields can be created in just a few steps. All you need is an interaction element (like for instance a slider, a listbox or a combobox) and connect it to the [LionField](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/components/input/overview.md).
Custom Fields can be created in just a few steps. All you need is an interaction element (like for instance a slider, a listbox or a combobox) and connect it to the [LionField](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/components/input/overview.md).
> In case you want to extend a native element, follow [Extend a native Input](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/how-to/extend-a-native-input.md).
> In case you want to extend a native element, follow [Extend a native Input](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/how-to/extend-a-native-input.md).

@@ -128,3 +128,3 @@ ## A) an interaction element

Now we want to integrate the slider in our form system to enrich the user interface, get
validation support and all other [benefits of LionField](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/components/input/overview.md).
validation support and all other [benefits of LionField](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/components/input/overview.md).
We start by creating a component `<slider-field>` that extends from `LionField`.

@@ -142,3 +142,3 @@ Then we follow the steps below:

equivalent of the `input` event of the platform, but for custom built interaction elements.
You now synchronized [modelValue](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/systems/form/model-value.md), which can be regarded as
You now synchronized [modelValue](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/fundamentals/systems/form/model-value.md), which can be regarded as
the glue to integrate all other functionality like parsing/formatting/serializing, validating,

@@ -151,3 +151,3 @@ tracking interaction states etc.

> Whenever a .modelValue/.formattedValue/.serializedValue needs to be computed, use
> [parser/formatter/serializer](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/systems/form/formatting-and-parsing.md)
> [parser/formatter/serializer](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/fundamentals/systems/form/formatting-and-parsing.md)

@@ -154,0 +154,0 @@ Implement with the following code:

@@ -14,5 +14,5 @@ # How To >> Extend a native Input ||20

Input fields can be created by extending [LionInput](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/components/input/overview.md).
Input fields can be created by extending [LionInput](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/components/input/overview.md).
> In case you want to wrap a custom form element, follow [Create a custom Field](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/how-to/create-a-custom-field.md).
> In case you want to wrap a custom form element, follow [Create a custom Field](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/how-to/create-a-custom-field.md).

@@ -19,0 +19,0 @@ For this tutorial, we create an input that wraps native `input[type=datetime-local]`.

@@ -15,5 +15,5 @@ # Guides ||30

- [Definitions and Terms](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/scoped-elements.md)
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/scoped-elements.md)

@@ -26,4 +26,4 @@ ## Extending Developer

- [Subclasser APIs](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/blog/extending-documentation.md)
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/blog/extending-documentation.md)

@@ -34,4 +34,4 @@ ## How To

- [Get started](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/how-to/get-started.md)
- [Create a custom field](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/how-to/create-a-custom-field.md)
- [Extend a native input](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/how-to/extend-a-native-input.md)
- [Get started](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/how-to/get-started.md)
- [Create a custom field](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/how-to/create-a-custom-field.md)
- [Extend a native input](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/how-to/extend-a-native-input.md)

@@ -15,5 +15,5 @@ # Principles ||10

- [Definitions and Terms](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/scoped-elements.md)
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/scoped-elements.md)

@@ -26,3 +26,3 @@ ## Extending Developer

- [Subclasser APIs](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/blog/extending-documentation.md)
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/blog/extending-documentation.md)

@@ -22,3 +22,3 @@ # Principles >> Styling ||30

readable by screen readers, but invisible for end users.
- When an html table is used, we allow [subclassers](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/guides/principles/subclasser-apis.md) to override the display property (`table-cell`) to `flex`. By putting the proper accessible roles (`role="cell"`) in the markup, we guarantee our markup stays accessible.
- When an html table is used, we allow [subclassers](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/guides/principles/subclasser-apis.md) to override the display property (`table-cell`) to `flex`. By putting the proper accessible roles (`role="cell"`) in the markup, we guarantee our markup stays accessible.

@@ -25,0 +25,0 @@ Although Lion components try to stay as unbiased as possible with regard to styling, defaults will be needed. In these cases we try to follow the platform as much as possible. If the platform doesn't provide defaults, the largest common denominator across existing UI systems is taken as a lead.

@@ -18,3 +18,3 @@ # Systems >> Core >> Overview ||10

- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/systems/core/#deduping-of-mixins)
- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/fundamentals/systems/core/#deduping-of-mixins)
- Mixin to handle disabled (DisabledMixin)

@@ -21,0 +21,0 @@ - Mixin to handle disabled AND tabIndex (DisabledWithTabIndexMixin)

{
"name": "@lion/core",
"version": "0.23.0",
"version": "0.23.1",
"description": "Core functionality that is shared across all Lion Web Components",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -18,3 +18,3 @@ # Systems >> Core >> Overview ||10

- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/systems/core/#deduping-of-mixins)
- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/5be7776e1e5fe4dbc91c087b36ac615b047d1c66/docs/fundamentals/systems/core/#deduping-of-mixins)
- Mixin to handle disabled (DisabledMixin)

@@ -21,0 +21,0 @@ - Mixin to handle disabled AND tabIndex (DisabledWithTabIndexMixin)

@@ -47,3 +47,5 @@ /* eslint-disable class-methods-use-this */

const tempRenderTarget = registryRoot.createElement('div');
render(template, tempRenderTarget, this.renderOptions);
// Providing all options breaks Safari; keep host and creationScope
const { creationScope, host } = this.renderOptions;
render(template, tempRenderTarget, { creationScope, host });
return Array.from(tempRenderTarget.childNodes);

@@ -50,0 +52,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc