@lion/ui 0.14.3 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -12
- package/components/combobox/test/lion-combobox.test.js +50 -2
- package/components/core/src/SlotMixin.js +52 -0
- package/components/core/test/SlotMixin.test.js +85 -0
- package/components/icon/src/icons.js +14 -2
- package/components/icon/test/hammer.svg.js +5 -2
- package/components/icon/test/heart.svg.js +5 -2
- package/components/icon/test/lion-icon.test.js +10 -4
- package/components/input-stepper/src/LionInputStepper.js +10 -10
- package/components/listbox/src/ListboxMixin.js +3 -35
- package/components/localize/src/getLocalizeManager.js +16 -10
- package/components/localize/test/getLocalizeManager.test.js +15 -7
- package/components/localize/test/side-effect-free-entrypoint.test.js +9 -3
- package/components/overlays/src/ArrowMixin.js +10 -4
- package/components/overlays/src/singleton.js +14 -4
- package/components/overlays/test/OverlayController.test.js +4 -1
- package/custom-elements.json +3014 -220
- package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
- package/dist-types/components/core/src/SlotMixin.d.ts +35 -0
- package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
- package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
- package/dist-types/components/icon/src/LionIcon.d.ts +1 -1
- package/dist-types/components/icon/src/LionIcon.d.ts.map +1 -1
- package/dist-types/components/icon/src/icons.d.ts +2 -1
- package/dist-types/components/icon/src/icons.d.ts.map +1 -1
- package/dist-types/components/icon/test/hammer.svg.d.ts +1 -1
- package/dist-types/components/icon/test/hammer.svg.d.ts.map +1 -1
- package/dist-types/components/icon/test/heart.svg.d.ts +1 -1
- package/dist-types/components/icon/test/heart.svg.d.ts.map +1 -1
- package/dist-types/components/input-stepper/src/LionInputStepper.d.ts +4 -4
- package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
- package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
- package/dist-types/components/localize/src/getLocalizeManager.d.ts +2 -58
- package/dist-types/components/localize/src/getLocalizeManager.d.ts.map +1 -1
- package/dist-types/components/localize/test/getLocalizeManager.test.d.ts +4 -1
- package/dist-types/components/localize/test/getLocalizeManager.test.d.ts.map +1 -1
- package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts +4 -0
- package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts.map +1 -1
- package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
- package/dist-types/components/overlays/src/singleton.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/index.md +1 -1
- package/docs/components/accordion/overview.md +1 -1
- package/docs/components/accordion/reference.md +1 -1
- package/docs/components/accordion/use-cases.md +1 -1
- package/docs/components/button/{extensions/bootstrap-button.mjs → assets/bootstrap-button.js} +10 -5
- package/docs/components/button/examples.md +1 -1
- package/docs/components/button/extensions.md +2 -2
- package/docs/components/button/index.md +2 -2
- package/docs/components/button/overview.md +4 -4
- package/docs/components/button/use-cases.md +6 -6
- package/docs/components/calendar/index.md +1 -1
- package/docs/components/calendar/overview.md +1 -1
- package/docs/components/calendar/use-cases.md +2 -2
- package/docs/components/checkbox-group/index.md +1 -1
- package/docs/components/checkbox-group/overview.md +3 -3
- package/docs/components/checkbox-group/use-cases.md +1 -1
- package/docs/components/collapsible/examples.md +1 -1
- package/docs/components/collapsible/index.md +1 -1
- package/docs/components/collapsible/overview.md +2 -2
- package/docs/components/collapsible/use-cases.md +1 -1
- package/docs/components/combobox/extensions.md +2 -1
- package/docs/components/combobox/index.md +1 -1
- package/docs/components/combobox/overview.md +2 -2
- package/docs/components/combobox/use-cases.md +2 -2
- package/docs/components/dialog/index.md +1 -1
- package/docs/components/dialog/overview.md +2 -2
- package/docs/components/dialog/use-cases.md +1 -1
- package/docs/components/drawer/index.md +1 -1
- package/docs/components/drawer/overview.md +1 -1
- package/docs/components/drawer/use-cases.md +1 -1
- package/docs/components/fieldset/index.md +1 -1
- package/docs/components/fieldset/overview.md +6 -6
- package/docs/components/fieldset/use-cases.md +1 -1
- package/docs/components/form/index.md +1 -1
- package/docs/components/form/overview.md +4 -4
- package/docs/components/form/use-cases.md +3 -3
- package/docs/components/icon/index.md +1 -1
- package/docs/components/icon/overview.md +1 -1
- package/docs/components/icon/use-cases.md +2 -15
- package/docs/components/index.md +1 -1
- package/docs/components/input/index.md +1 -1
- package/docs/components/input/overview.md +2 -2
- package/docs/components/input/use-cases.md +1 -1
- package/docs/components/input-amount/index.md +1 -1
- package/docs/components/input-amount/overview.md +4 -4
- package/docs/components/input-amount/use-cases.md +1 -1
- package/docs/components/input-amount-dropdown/index.md +1 -1
- package/docs/components/input-amount-dropdown/use-cases.md +1 -1
- package/docs/components/input-date/index.md +1 -1
- package/docs/components/input-date/overview.md +4 -4
- package/docs/components/input-date/use-cases.md +1 -1
- package/docs/components/input-datepicker/index.md +1 -1
- package/docs/components/input-datepicker/overview.md +6 -6
- package/docs/components/input-datepicker/use-cases.md +1 -1
- package/docs/components/input-email/index.md +1 -1
- package/docs/components/input-email/overview.md +3 -3
- package/docs/components/input-email/use-cases.md +1 -1
- package/docs/components/input-file/index.md +1 -1
- package/docs/components/input-file/overview.md +2 -2
- package/docs/components/input-file/use-cases.md +1 -1
- package/docs/components/input-iban/index.md +1 -1
- package/docs/components/input-iban/overview.md +3 -3
- package/docs/components/input-iban/use-cases.md +1 -1
- package/docs/components/input-range/index.md +1 -1
- package/docs/components/input-range/overview.md +3 -3
- package/docs/components/input-range/use-cases.md +1 -1
- package/docs/components/input-stepper/api-table.md +2 -0
- package/docs/components/input-stepper/index.md +1 -1
- package/docs/components/input-stepper/overview.md +2 -2
- package/docs/components/input-stepper/use-cases.md +1 -1
- package/docs/components/input-tel/index.md +1 -1
- package/docs/components/input-tel/overview.md +2 -2
- package/docs/components/input-tel/use-cases.md +7 -7
- package/docs/components/input-tel-dropdown/extensions.md +1 -1
- package/docs/components/input-tel-dropdown/index.md +1 -1
- package/docs/components/input-tel-dropdown/overview.md +2 -2
- package/docs/components/input-tel-dropdown/use-cases.md +1 -1
- package/docs/components/listbox/index.md +1 -1
- package/docs/components/listbox/overview.md +1 -1
- package/docs/components/listbox/use-cases.md +2 -2
- package/docs/components/pagination/index.md +1 -1
- package/docs/components/pagination/overview.md +1 -1
- package/docs/components/pagination/use-cases.md +1 -1
- package/docs/components/progress-indicator/examples.md +1 -1
- package/docs/components/progress-indicator/index.md +1 -1
- package/docs/components/progress-indicator/overview.md +1 -1
- package/docs/components/radio-group/index.md +1 -1
- package/docs/components/radio-group/overview.md +4 -4
- package/docs/components/radio-group/use-cases.md +1 -1
- package/docs/components/select/index.md +1 -1
- package/docs/components/select/overview.md +1 -1
- package/docs/components/select/use-cases.md +2 -2
- package/docs/components/select-rich/examples.md +1 -1
- package/docs/components/select-rich/index.md +1 -1
- package/docs/components/select-rich/overview.md +1 -1
- package/docs/components/select-rich/use-cases.md +3 -3
- package/docs/components/steps/index.md +1 -1
- package/docs/components/steps/overview.md +1 -1
- package/docs/components/steps/use-cases.md +1 -1
- package/docs/components/switch/index.md +1 -1
- package/docs/components/switch/overview.md +1 -1
- package/docs/components/switch/reference.md +1 -1
- package/docs/components/switch/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +2 -2
- package/docs/components/tabs/index.md +1 -1
- package/docs/components/tabs/overview.md +1 -1
- package/docs/components/tabs/use-cases.md +1 -1
- package/docs/components/textarea/index.md +1 -1
- package/docs/components/textarea/overview.md +1 -1
- package/docs/components/textarea/use-cases.md +1 -1
- package/docs/components/tooltip/examples.md +1 -1
- package/docs/components/tooltip/index.md +1 -1
- package/docs/components/tooltip/overview.md +1 -1
- package/docs/components/tooltip/use-cases.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +1 -1
- package/docs/fundamentals/node-tools/index.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/index.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +1 -1
- package/docs/fundamentals/node-tools/publish-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/publish-docs/overview.md +4 -4
- package/docs/fundamentals/node-tools/remark-extend/index.md +1 -1
- package/docs/fundamentals/node-tools/remark-extend/overview.md +1 -1
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +3 -3
- package/docs/fundamentals/rationales/TypeScript.md +1 -1
- package/docs/fundamentals/rationales/accessibility.md +2 -2
- package/docs/fundamentals/rationales/index.md +1 -1
- package/docs/fundamentals/rationales/side-effects.md +1 -1
- package/docs/fundamentals/rationales/versioning.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +2 -2
- package/docs/fundamentals/systems/core/index.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +2 -2
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +5 -5
- package/docs/fundamentals/systems/form/index.md +1 -1
- package/docs/fundamentals/systems/form/interaction-states.md +1 -1
- package/docs/fundamentals/systems/form/model-value.md +2 -2
- package/docs/fundamentals/systems/form/overview.md +29 -29
- package/docs/fundamentals/systems/form/styling.md +1 -1
- package/docs/fundamentals/systems/form/use-cases.md +1 -1
- package/docs/fundamentals/systems/form/validate.md +3 -3
- package/docs/fundamentals/systems/icon/index.md +1 -1
- package/docs/fundamentals/systems/icon/overview.md +1 -1
- package/docs/fundamentals/systems/index.md +1 -1
- package/docs/fundamentals/systems/localize/api-table.md +3 -0
- package/docs/fundamentals/systems/localize/dates.md +1 -1
- package/docs/fundamentals/systems/localize/index.md +1 -1
- package/docs/fundamentals/systems/localize/numbers.md +1 -1
- package/docs/fundamentals/systems/localize/overview.md +5 -5
- package/docs/fundamentals/systems/localize/rationale.md +1 -1
- package/docs/fundamentals/systems/localize/text.md +5 -4
- package/docs/fundamentals/systems/localize/use-cases.md +1 -1
- package/docs/fundamentals/systems/overlays/_configuration-positioning.md +3 -3
- package/docs/fundamentals/systems/overlays/_edge-cases.md +3 -3
- package/docs/fundamentals/systems/overlays/api-table.md +3 -0
- package/docs/fundamentals/systems/overlays/assets/demo-overlay-positioning.mjs +1 -1
- package/docs/fundamentals/systems/overlays/configuration.md +5 -5
- package/docs/fundamentals/systems/overlays/index.md +1 -1
- package/docs/fundamentals/systems/overlays/overview.md +6 -6
- package/docs/fundamentals/systems/overlays/rationale.md +1 -1
- package/docs/fundamentals/systems/overlays/use-cases.md +6 -6
- package/docs/fundamentals/tools/ajax/index.md +1 -1
- package/docs/fundamentals/tools/ajax/overview.md +2 -2
- package/docs/fundamentals/tools/ajax/use-cases.md +3 -3
- package/docs/fundamentals/tools/helpers/action-logger.md +1 -1
- package/docs/fundamentals/tools/helpers/index.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +2 -2
- package/docs/fundamentals/tools/index.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +4 -4
- package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-a/page-a.js → page-c/page-c.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b/page-b.js → page-d/page-d.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +4 -4
- package/docs/fundamentals/tools/singleton-manager/example-success/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-a/page-a.js → page-e/page-e.js} +2 -3
- package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b/page-b.js → page-f/page-f.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/overview.md +5 -5
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +2 -2
- /package/docs/fundamentals/systems/overlays/assets/{applyDemoOverlayStyles.mjs → applyDemoOverlayStyles.js} +0 -0
- /package/docs/fundamentals/systems/overlays/assets/{demo-el-using-overlaymixin.mjs → demo-el-using-overlaymixin.js} +0 -0
- /package/docs/fundamentals/systems/overlays/assets/{demo-overlay-backdrop.mjs → demo-overlay-backdrop.js} +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/index.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/instance.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/index.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/instance.js +0 -0
package/docs/components/button/{extensions/bootstrap-button.mjs → assets/bootstrap-button.js}
RENAMED
|
@@ -18,8 +18,9 @@ export class BootstrapButton extends LionButton {
|
|
|
18
18
|
--bs-border-radius: 0.375rem;
|
|
19
19
|
--bs-border-width: 1px;
|
|
20
20
|
|
|
21
|
-
--bs-btn-font-family:
|
|
22
|
-
|
|
21
|
+
--bs-btn-font-family:
|
|
22
|
+
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans',
|
|
23
|
+
'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
23
24
|
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
24
25
|
margin: 0.25rem 0.125rem;
|
|
25
26
|
|
|
@@ -34,7 +35,8 @@ export class BootstrapButton extends LionButton {
|
|
|
34
35
|
--bs-btn-border-color: transparent;
|
|
35
36
|
--bs-btn-border-radius: var(--bs-border-radius);
|
|
36
37
|
--bs-btn-hover-border-color: transparent;
|
|
37
|
-
--bs-btn-box-shadow:
|
|
38
|
+
--bs-btn-box-shadow:
|
|
39
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
38
40
|
--bs-btn-disabled-opacity: 0.65;
|
|
39
41
|
--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
|
|
40
42
|
display: inline-block;
|
|
@@ -54,8 +56,11 @@ export class BootstrapButton extends LionButton {
|
|
|
54
56
|
border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
|
|
55
57
|
border-radius: var(--bs-btn-border-radius);
|
|
56
58
|
background-color: var(--bs-btn-bg);
|
|
57
|
-
transition:
|
|
58
|
-
|
|
59
|
+
transition:
|
|
60
|
+
color 0.15s ease-in-out,
|
|
61
|
+
background-color 0.15s ease-in-out,
|
|
62
|
+
border-color 0.15s ease-in-out,
|
|
63
|
+
box-shadow 0.15s ease-in-out;
|
|
59
64
|
text-transform: none;
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Button: Extensions'
|
|
2
3
|
parts:
|
|
3
4
|
- Button
|
|
4
5
|
- Extensions
|
|
5
|
-
title: 'Button: Extensions'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Button: Extensions'
|
|
8
8
|
order: 90
|
|
@@ -14,7 +14,7 @@ eleventyNavigation:
|
|
|
14
14
|
|
|
15
15
|
```js script
|
|
16
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
17
|
-
import './
|
|
17
|
+
import './assets/bootstrap-button.js';
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Bootstrap button
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Button: Overview'
|
|
2
3
|
parts:
|
|
3
|
-
- Button
|
|
4
4
|
- Overview
|
|
5
|
-
|
|
5
|
+
- Button
|
|
6
6
|
eleventyNavigation:
|
|
7
|
-
key:
|
|
7
|
+
key: Button >> Overview
|
|
8
|
+
title: Overview
|
|
8
9
|
order: 10
|
|
9
10
|
parent: Button
|
|
10
|
-
title: Overview
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Button: Overview
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Button: Use Cases'
|
|
2
3
|
parts:
|
|
3
|
-
- Button
|
|
4
4
|
- Use Cases
|
|
5
|
-
|
|
5
|
+
- Button
|
|
6
6
|
eleventyNavigation:
|
|
7
|
-
key:
|
|
7
|
+
key: Button >> Use Cases
|
|
8
|
+
title: Use Cases
|
|
8
9
|
order: 20
|
|
9
10
|
parent: Button
|
|
10
|
-
title: Use Cases
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Button: Use Cases
|
|
@@ -74,10 +74,10 @@ export const withinForm = () => html`
|
|
|
74
74
|
<input id="firstNameId" name="firstName" />
|
|
75
75
|
<label for="lastNameId">Last name</label>
|
|
76
76
|
<input id="lastNameId" name="lastName" />
|
|
77
|
-
<lion-button-submit @click
|
|
77
|
+
<lion-button-submit @click=${ev => console.log('click submit handler', ev.target)}
|
|
78
78
|
>Submit</lion-button-submit
|
|
79
79
|
>
|
|
80
|
-
<lion-button-reset @click
|
|
80
|
+
<lion-button-reset @click=${ev => console.log('click reset handler', ev.target)}
|
|
81
81
|
>Reset</lion-button-reset
|
|
82
82
|
>
|
|
83
83
|
</form>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Checkbox Group: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Checkbox Group
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Checkbox Group: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Checkbox Group: Overview'
|
|
8
8
|
order: 10
|
|
@@ -31,11 +31,11 @@ import '@lion/ui/define/lion-checkbox.js';
|
|
|
31
31
|
</lion-checkbox-group>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
> Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/
|
|
34
|
+
> Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/form/overview.md)'s serialization result.
|
|
35
35
|
|
|
36
36
|
## Features
|
|
37
37
|
|
|
38
|
-
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/
|
|
38
|
+
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/fieldset/overview.md),
|
|
39
39
|
it has all the features a fieldset has.
|
|
40
40
|
|
|
41
41
|
## Installation
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Collapsible: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Collapsible
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Collapsible: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Collapsible: Overview'
|
|
8
8
|
order: 10
|
|
@@ -34,7 +34,7 @@ export const main = () => html`
|
|
|
34
34
|
## Features
|
|
35
35
|
|
|
36
36
|
- Use `opened` attribute or `toggle()` method to render default open.
|
|
37
|
-
- `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
- `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/button/overview.md) or native `button` with custom styling.
|
|
38
38
|
- Observe the state with the help of `@opened-changed` event.
|
|
39
39
|
- `show()` and `hide()` are helper methods to hide or show the content from outside.
|
|
40
40
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Combobox: Extensions'
|
|
2
3
|
parts:
|
|
3
4
|
- Combobox
|
|
4
5
|
- Extensions
|
|
5
|
-
title: 'Combobox: Extensions'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Combobox: Extensions'
|
|
8
8
|
order: 30
|
|
@@ -59,6 +59,7 @@ export const Github = () => html`
|
|
|
59
59
|
|
|
60
60
|
```js preview-story
|
|
61
61
|
export const Whatsapp = () => {
|
|
62
|
+
// in Rocket this is resolved based on the URL, in astro this is resolved based on filesystem (or is it?)
|
|
62
63
|
const obamaImgUrl = new URL('../src/wa-combobox/assets/obama.jpeg', import.meta.url).href;
|
|
63
64
|
const trumpImgUrl = new URL('../src/wa-combobox/assets/trump.jpeg', import.meta.url).href;
|
|
64
65
|
const bidenImgUrl = new URL('../src/wa-combobox/assets/biden.jpeg', import.meta.url).href;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Combobox: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Combobox
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Combobox: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Combobox: Overview'
|
|
8
8
|
order: 10
|
|
@@ -46,7 +46,7 @@ export const main = () => html`
|
|
|
46
46
|
`;
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
[...show more](https://github.com/ing-bank/lion/blob/
|
|
49
|
+
[...show more](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/combobox/extensions.md)
|
|
50
50
|
|
|
51
51
|
## Features
|
|
52
52
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Combobox: Use Cases'
|
|
2
3
|
parts:
|
|
3
4
|
- Combobox
|
|
4
5
|
- Use Cases
|
|
5
|
-
title: 'Combobox: Use Cases'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Combobox: Use Cases'
|
|
8
8
|
order: 20
|
|
@@ -558,4 +558,4 @@ export const complexObjectChoiceValue = () =>
|
|
|
558
558
|
## Listbox compatibility
|
|
559
559
|
|
|
560
560
|
All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
|
|
561
|
-
See the [listbox documentation](https://github.com/ing-bank/lion/blob/
|
|
561
|
+
See the [listbox documentation](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/listbox/overview.md) for more information.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Dialog: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Dialog
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Dialog: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Dialog: Overview'
|
|
8
8
|
order: 10
|
|
@@ -66,6 +66,6 @@ import '@lion/ui/define/lion-dialog.js';
|
|
|
66
66
|
## Changing the configuration
|
|
67
67
|
|
|
68
68
|
You can use the `.config` property on the dialog to change the configuration.
|
|
69
|
-
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/
|
|
69
|
+
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/overlays/configuration.md).
|
|
70
70
|
|
|
71
71
|
The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Fieldset: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Fieldset
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Fieldset: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Fieldset: Overview'
|
|
8
8
|
order: 10
|
|
@@ -32,9 +32,9 @@ export const main = () => html`
|
|
|
32
32
|
|
|
33
33
|
We have three specific fieldset implementations:
|
|
34
34
|
|
|
35
|
-
- [form](https://github.com/ing-bank/lion/blob/
|
|
36
|
-
- [checkbox-group](https://github.com/ing-bank/lion/blob/
|
|
37
|
-
- [radio-group](https://github.com/ing-bank/lion/blob/
|
|
35
|
+
- [form](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/form/overview.md)
|
|
36
|
+
- [checkbox-group](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/checkbox-group/overview.md)
|
|
37
|
+
- [radio-group](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/radio-group/overview.md)
|
|
38
38
|
|
|
39
39
|
A native fieldset element should always have a legend-element for a11y purposes.
|
|
40
40
|
However, our fieldset element is not native and should not have a legend-element.
|
|
@@ -43,8 +43,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or
|
|
|
43
43
|
## Features
|
|
44
44
|
|
|
45
45
|
- Easy retrieval of form data based on field names
|
|
46
|
-
- Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/
|
|
47
|
-
- Can have [validate](https://github.com/ing-bank/lion/blob/
|
|
46
|
+
- Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/interaction-states.md)
|
|
47
|
+
- Can have [validate](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
|
|
48
48
|
- Can disable input fields on fieldset level
|
|
49
49
|
- Accessible out of the box
|
|
50
50
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Form: Overview'
|
|
2
3
|
parts:
|
|
3
4
|
- Form
|
|
4
5
|
- Overview
|
|
5
|
-
title: 'Form: Overview'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Form: Overview'
|
|
8
8
|
order: 10
|
|
@@ -20,7 +20,7 @@ import '@lion/ui/define/lion-form.js';
|
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
A web component that enhances the functionality of the native `form` component.
|
|
23
|
-
It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/
|
|
23
|
+
It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/overview.md).
|
|
24
24
|
|
|
25
25
|
```js preview-story
|
|
26
26
|
export const main = () => {
|
|
@@ -49,11 +49,11 @@ export const main = () => {
|
|
|
49
49
|
- Data synchronization with models
|
|
50
50
|
- Easy retrieval of form data based on field names
|
|
51
51
|
- Advanced validation possibilities
|
|
52
|
-
- Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/
|
|
52
|
+
- Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/interaction-states.md)
|
|
53
53
|
- Registration mechanism for form controls
|
|
54
54
|
- Accessible out of the box
|
|
55
55
|
|
|
56
|
-
For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/
|
|
56
|
+
For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/overview.md).
|
|
57
57
|
|
|
58
58
|
## Installation
|
|
59
59
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Form: Use Cases'
|
|
2
3
|
parts:
|
|
3
4
|
- Form
|
|
4
5
|
- Use Cases
|
|
5
|
-
title: 'Form: Use Cases'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Form: Use Cases'
|
|
8
8
|
order: 20
|
|
@@ -26,7 +26,7 @@ import '@lion/ui/define/lion-form.js';
|
|
|
26
26
|
To submit a form, use a regular `<button>` (or `<lion-button-submit>`) somewhere inside the native `<form>`. Then, add a `submit` handler on the `<lion-form>`. You can use this event to do your own (pre-)submit logic, like getting the serialized form data and sending it to a backend API.
|
|
27
27
|
|
|
28
28
|
Another example is checking if the form has errors, and focusing the first field with a validation error.
|
|
29
|
-
To learn more about form validation, please take a look at [validate](https://github.com/ing-bank/lion/blob/
|
|
29
|
+
To learn more about form validation, please take a look at [validate](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/validate.md).
|
|
30
30
|
|
|
31
31
|
To fire a submit from JavaScript, select the `<lion-form>` element and call `.submit()`.
|
|
32
32
|
|
|
@@ -128,7 +128,7 @@ export const prefilledData = () => {
|
|
|
128
128
|
};
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
Learn more about [formatting and parsing](https://github.com/ing-bank/lion/blob/
|
|
131
|
+
Learn more about [formatting and parsing](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/formatting-and-parsing.md).
|
|
132
132
|
|
|
133
133
|
## Sub forms
|
|
134
134
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: 'Icon: Use Cases'
|
|
2
3
|
parts:
|
|
3
4
|
- Icon
|
|
4
5
|
- Use Cases
|
|
5
|
-
title: 'Icon: Use Cases'
|
|
6
6
|
eleventyNavigation:
|
|
7
7
|
key: 'Icon: Use Cases'
|
|
8
8
|
order: 20
|
|
@@ -20,25 +20,12 @@ import './assets/iconset-misc.js';
|
|
|
20
20
|
import * as spaceSet from './assets/iconset-space.js';
|
|
21
21
|
|
|
22
22
|
import '@lion/ui/define/lion-icon.js';
|
|
23
|
-
|
|
24
|
-
icons.addIconResolver('lion', (iconset, name) => {
|
|
25
|
-
switch (iconset) {
|
|
26
|
-
case 'bugs':
|
|
27
|
-
return import('./assets/iconset-bugs.js').then(module => module[name]);
|
|
28
|
-
case 'space':
|
|
29
|
-
return import('./assets/iconset-space.js').then(module => module[name]);
|
|
30
|
-
case 'misc':
|
|
31
|
-
return import('./assets/iconset-misc.js').then(module => module[name]);
|
|
32
|
-
default:
|
|
33
|
-
throw new Error(`Unknown iconset ${iconset}`);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
23
|
```
|
|
37
24
|
|
|
38
25
|
## Icon sets
|
|
39
26
|
|
|
40
27
|
Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance.
|
|
41
|
-
See the [system documentation](https://github.com/ing-bank/lion/blob/
|
|
28
|
+
See the [system documentation](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
|
|
42
29
|
|
|
43
30
|
```js preview-story
|
|
44
31
|
export const iconSets = () => html`
|
package/docs/components/index.md
CHANGED