Socket
Socket
Sign inDemoInstall

@lion/core

Package Overview
Dependencies
Maintainers
1
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.20.0 to 0.21.1

src/ScopedStylesController.d.ts

8

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/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/components/inputs/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/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/components/inputs/input/overview.md).
> In case you want to extend a native element, follow [Extend a native Input](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/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/7c52c12bfb025c98f93b5f0be984cedd3028a20a/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 framework to enrich the user interface, get
validation support and all other [benefits of LionField](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/components/inputs/input/overview.md).
validation support and all other [benefits of LionField](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/components/inputs/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/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/docs/systems/form/model-value.md), which can be regarded as
You now synchronized [modelValue](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/docs/systems/form/model-value.md), which can be regarded as
the glue to integrate all other functionality like parsing/formatting/serializing, validating,

@@ -145,0 +145,0 @@ tracking interaction states etc.

@@ -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/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/components/inputs/input/overview.md).
Input fields can be created by extending [LionInput](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/components/inputs/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/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/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/7c52c12bfb025c98f93b5f0be984cedd3028a20a/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]`.

@@ -9,4 +9,3 @@ # How To >> Get Started ||10

- [lit-html](https://lit-html.polymer-project.org) - An efficient, expressive, extensible HTML templating library for JavaScript.
- [lit-element](https://lit-element.polymer-project.org) - A simple base class for creating fast, lightweight web components.
- [lit](https://lit.dev/) - Building on top of the Web Components standards, Lit adds just what you need to be happy and productive: reactivity, declarative templates and a handful of thoughtful features to reduce boilerplate and make your job easier.
- [modern-web](https://modern-web.dev) - Guides, tools and libraries for modern web development.

@@ -13,0 +12,0 @@ - [open-wc](https://open-wc.org) - Open Web Components provides guides, tools and libraries for developing web components.

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

- [Definitions and Terms](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/principles/scoped-elements.md)
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/principles/definitions-and-terms.md)
- [Styling](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/principles/styling.md)
- [Scoped Elements](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/principles/scoped-elements.md)

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

- [Subclasser APIs](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/blog/extending-documentation)
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/principles/subclasser-apis.md)
- [Extend documentation](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/blog/extending-documentation)

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

- [Get started](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/how-to/get-started.md)
- [Create a custom field](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/guides/how-to/create-a-custom-field.md)
- [Get started](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/how-to/get-started.md)
- [Create a custom field](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/guides/how-to/create-a-custom-field.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/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/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/7c52c12bfb025c98f93b5f0be984cedd3028a20a/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 frameworks is taken as a lead.

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

- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/docs/systems/core/#deduping-of-mixins)
- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/docs/systems/core/#deduping-of-mixins)
- Mixin to handle disabled (DisabledMixin)
- Mixin to handle disabled AND tabIndex (DisabledWithTabIndexMixin)
- Mixin to manage auto generated needed slot elements in light dom (SlotMixin)
- Mixin to manage auto-generated needed slot elements in light dom (SlotMixin)
- Mixin to create scoped styles in LightDOM-using components (ScopedStylesMixin)

@@ -53,3 +54,3 @@ > These features are not well documented - care to help out?

The more generic the mixin is, the higher the chance of being appliend more than once. As a mixin author you can't control how it is used, and can't always predict it. So as a safety measure it is always recommended to create deduping mixins.
The more generic the mixin is, the higher the chance of being applied more than once. As a mixin author you can't control how it is used, and can't always predict it. So as a safety measure it is always recommended to create deduping mixins.

@@ -56,0 +57,0 @@ ### Usage of dedupeMixin()

@@ -83,2 +83,3 @@ export {

export { DisabledWithTabIndexMixin } from './src/DisabledWithTabIndexMixin.js';
export { ScopedStylesController } from './src/ScopedStylesController.js';
export { SlotMixin } from './src/SlotMixin.js';

@@ -85,0 +86,0 @@ export { UpdateStylesMixin } from './src/UpdateStylesMixin.js';

@@ -74,2 +74,3 @@ export {

export { DisabledWithTabIndexMixin } from './src/DisabledWithTabIndexMixin.js';
export { ScopedStylesController } from './src/ScopedStylesController.js';
export { SlotMixin } from './src/SlotMixin.js';

@@ -76,0 +77,0 @@ export { UpdateStylesMixin } from './src/UpdateStylesMixin.js';

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

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

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

- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/745c809ce06b2dce0ee4e47749ce2b5ca23bd769/docs/docs/systems/core/#deduping-of-mixins)
- [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/7c52c12bfb025c98f93b5f0be984cedd3028a20a/docs/docs/systems/core/#deduping-of-mixins)
- Mixin to handle disabled (DisabledMixin)
- Mixin to handle disabled AND tabIndex (DisabledWithTabIndexMixin)
- Mixin to manage auto generated needed slot elements in light dom (SlotMixin)
- Mixin to manage auto-generated needed slot elements in light dom (SlotMixin)
- Mixin to create scoped styles in LightDOM-using components (ScopedStylesMixin)

@@ -53,3 +54,3 @@ > These features are not well documented - care to help out?

The more generic the mixin is, the higher the chance of being appliend more than once. As a mixin author you can't control how it is used, and can't always predict it. So as a safety measure it is always recommended to create deduping mixins.
The more generic the mixin is, the higher the chance of being applied more than once. As a mixin author you can't control how it is used, and can't always predict it. So as a safety measure it is always recommended to create deduping mixins.

@@ -56,0 +57,0 @@ ### Usage of dedupeMixin()

export namespace browserDetection {
export const isIE11: boolean;
export const isChrome: boolean | RegExpMatchArray | null | undefined;
export const isIOSChrome: boolean | RegExpMatchArray | null | undefined;
export const isChromium: boolean | RegExpMatchArray | null | undefined;
export const isMac: boolean;
const isIE11: boolean;
const isChrome: boolean | RegExpMatchArray | null | undefined;
const isIOSChrome: boolean | RegExpMatchArray | null | undefined;
const isChromium: boolean | RegExpMatchArray | null | undefined;
const isMac: boolean;
}

@@ -1,2 +0,2 @@

export type DelegateMixin = typeof import("../types/DelegateMixinTypes").DelegateMixinImplementation;
export type DelegateMixin = import('../types/DelegateMixinTypes').DelegateMixin;
export const DelegateMixin: typeof import("../types/DelegateMixinTypes").DelegateMixinImplementation;

@@ -12,3 +12,3 @@ export type DelegateEvent = {

handler: (event: Event) => unknown;
opts?: boolean | AddEventListenerOptions;
opts?: boolean | AddEventListenerOptions | undefined;
};

@@ -21,2 +21,3 @@ /* eslint-disable class-methods-use-this */

// eslint-disable-next-line
// @ts-ignore https://github.com/microsoft/TypeScript/issues/36821#issuecomment-588375051
class extends superclass {

@@ -23,0 +24,0 @@ constructor() {

@@ -1,2 +0,2 @@

export type DisabledMixin = typeof import("../types/DisabledMixinTypes").DisabledMixinImplementation;
export type DisabledMixin = import('../types/DisabledMixinTypes').DisabledMixin;
export const DisabledMixin: typeof import("../types/DisabledMixinTypes").DisabledMixinImplementation;

@@ -13,2 +13,3 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';

// eslint-disable-next-line no-shadow
// @ts-ignore https://github.com/microsoft/TypeScript/issues/36821#issuecomment-588375051
class extends superclass {

@@ -15,0 +16,0 @@ static get properties() {

@@ -1,2 +0,2 @@

export type DisabledWithTabIndexMixin = typeof import("../types/DisabledWithTabIndexMixinTypes.js").DisabledWithTabIndexMixinImplementation;
export const DisabledWithTabIndexMixin: typeof import("../types/DisabledWithTabIndexMixinTypes.js").DisabledWithTabIndexMixinImplementation;
export type DisabledWithTabIndexMixin = import('../types/DisabledWithTabIndexMixinTypes').DisabledWithTabIndexMixin;
export const DisabledWithTabIndexMixin: typeof import("../types/DisabledWithTabIndexMixinTypes").DisabledWithTabIndexMixinImplementation;

@@ -14,2 +14,3 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';

// eslint-disable-next-line no-shadow
// @ts-ignore https://github.com/microsoft/TypeScript/issues/36821#issuecomment-588375051
class extends DisabledMixin(superclass) {

@@ -16,0 +17,0 @@ static get properties() {

@@ -1,6 +0,4 @@

export type SlotMixin = typeof import("../types/SlotMixinTypes").SlotMixinImplementation;
export type SlotMixin = import('../types/SlotMixinTypes').SlotMixin;
export const SlotMixin: typeof import("../types/SlotMixinTypes").SlotMixinImplementation;
export type SlotsMap = {
[key: string]: typeof import("../types/SlotMixinTypes").slotFunction;
};
export type LitElement = import("lit").LitElement;
export type SlotsMap = import('../types/SlotMixinTypes').SlotsMap;
export type LitElement = import('../index').LitElement;

@@ -17,2 +17,3 @@ /* eslint-disable class-methods-use-this */

const SlotMixinImplementation = superclass =>
// @ts-ignore https://github.com/microsoft/TypeScript/issues/36821#issuecomment-588375051
class SlotMixin extends superclass {

@@ -19,0 +20,0 @@ /**

@@ -1,5 +0,3 @@

export type UpdateStylesMixin = typeof import("../types/UpdateStylesMixinTypes").UpdateStylesMixinImplementation;
export type UpdateStylesMixin = import('../types/UpdateStylesMixinTypes').UpdateStylesMixin;
export const UpdateStylesMixin: typeof import("../types/UpdateStylesMixinTypes").UpdateStylesMixinImplementation;
export type StylesMap = {
[key: string]: string;
};
export type StylesMap = import('../types/UpdateStylesMixinTypes').StylesMap;

@@ -15,2 +15,3 @@ /* global ShadyCSS */

// eslint-disable-next-line no-shadow
// @ts-ignore https://github.com/microsoft/TypeScript/issues/36821#issuecomment-588375051
class extends superclass {

@@ -17,0 +18,0 @@ /**

@@ -13,3 +13,3 @@ import { Constructor } from '@open-wc/dedupe-mixin';

export declare class DelegateHost {
delegations: Delegations;
protected get delegations(): Delegations;

@@ -16,0 +16,0 @@ protected _connectDelegateMixin(): void;

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