@lion/ui 0.11.0 → 0.11.2
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 +4 -4
- package/components/checkbox-group/src/LionCheckboxIndeterminate.js +39 -16
- package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +189 -1
- package/components/combobox/test/lion-combobox.test.js +75 -1
- package/components/form-core/src/FocusMixin.js +4 -4
- package/components/form-core/src/LionField.js +1 -1
- package/components/localize/src/date/parseDate.js +6 -1
- package/components/localize/src/date/utils/checkYearFormat.js +8 -0
- package/components/localize/test/date/parseDate.test.js +6 -0
- package/components/localize/types/LocalizeMixinTypes.ts +0 -5
- package/components/select-rich/src/LionSelectRich.js +1 -1
- package/components/select-rich/test/lion-select-rich.test.js +13 -1
- package/custom-elements.json +47758 -47690
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +10 -0
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/parseDate.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/utils/checkYearFormat.d.ts +7 -0
- package/dist-types/components/localize/src/date/utils/checkYearFormat.d.ts.map +1 -0
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +0 -4
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +19 -7
- package/docs/components/accordion/index.md +10 -0
- package/docs/components/accordion/overview.md +13 -1
- package/docs/components/accordion/reference.md +13 -1
- package/docs/components/accordion/use-cases.md +13 -1
- package/docs/components/button/api-table.md +40 -31
- package/docs/components/button/examples.md +13 -1
- package/docs/components/button/extensions.md +13 -1
- package/docs/components/button/index.md +11 -1
- package/docs/components/button/overview.md +13 -1
- package/docs/components/button/use-cases.md +13 -1
- package/docs/components/calendar/api-table.md +26 -14
- package/docs/components/calendar/index.md +11 -1
- package/docs/components/calendar/overview.md +13 -1
- package/docs/components/calendar/use-cases.md +13 -1
- package/docs/components/checkbox-group/api-table.md +318 -330
- package/docs/components/checkbox-group/index.md +11 -1
- package/docs/components/checkbox-group/overview.md +15 -3
- package/docs/components/checkbox-group/use-cases.md +13 -1
- package/docs/components/collapsible/api-table.md +18 -6
- package/docs/components/collapsible/examples.md +13 -1
- package/docs/components/collapsible/index.md +11 -1
- package/docs/components/collapsible/overview.md +14 -2
- package/docs/components/collapsible/use-cases.md +13 -1
- package/docs/components/combobox/api-table.md +163 -155
- package/docs/components/combobox/extensions.md +13 -1
- package/docs/components/combobox/index.md +11 -1
- package/docs/components/combobox/overview.md +14 -2
- package/docs/components/combobox/use-cases.md +14 -2
- package/docs/components/dialog/api-table.md +25 -13
- package/docs/components/dialog/index.md +11 -1
- package/docs/components/dialog/overview.md +14 -2
- package/docs/components/dialog/use-cases.md +13 -1
- package/docs/components/drawer/api-table.md +22 -11
- package/docs/components/drawer/index.md +11 -1
- package/docs/components/drawer/overview.md +13 -1
- package/docs/components/drawer/use-cases.md +13 -1
- package/docs/components/fieldset/api-table.md +117 -119
- package/docs/components/fieldset/index.md +11 -1
- package/docs/components/fieldset/overview.md +18 -6
- package/docs/components/fieldset/use-cases.md +13 -1
- package/docs/components/form/api-table.md +12 -1
- package/docs/components/form/index.md +11 -1
- package/docs/components/form/overview.md +16 -4
- package/docs/components/form/use-cases.md +15 -3
- package/docs/components/icon/api-table.md +16 -4
- package/docs/components/icon/index.md +11 -1
- package/docs/components/icon/overview.md +13 -1
- package/docs/components/icon/use-cases.md +14 -2
- package/docs/components/index.md +11 -1
- package/docs/components/input/api-table.md +123 -121
- package/docs/components/input/index.md +11 -1
- package/docs/components/input/overview.md +14 -2
- package/docs/components/input/use-cases.md +13 -1
- package/docs/components/input-amount/api-table.md +142 -143
- package/docs/components/input-amount/index.md +11 -1
- package/docs/components/input-amount/overview.md +16 -4
- package/docs/components/input-amount/use-cases.md +13 -1
- package/docs/components/input-date/api-table.md +123 -121
- package/docs/components/input-date/index.md +11 -1
- package/docs/components/input-date/overview.md +16 -4
- package/docs/components/input-date/use-cases.md +13 -1
- package/docs/components/input-datepicker/api-table.md +161 -161
- package/docs/components/input-datepicker/index.md +11 -1
- package/docs/components/input-datepicker/overview.md +18 -6
- package/docs/components/input-datepicker/use-cases.md +13 -1
- package/docs/components/input-email/api-table.md +123 -121
- package/docs/components/input-email/index.md +11 -1
- package/docs/components/input-email/overview.md +15 -3
- package/docs/components/input-email/use-cases.md +13 -1
- package/docs/components/input-file/api-table.md +145 -144
- package/docs/components/input-file/index.md +11 -1
- package/docs/components/input-file/overview.md +14 -2
- package/docs/components/input-file/use-cases.md +13 -1
- package/docs/components/input-iban/api-table.md +123 -121
- package/docs/components/input-iban/index.md +11 -1
- package/docs/components/input-iban/overview.md +15 -3
- package/docs/components/input-iban/use-cases.md +13 -1
- package/docs/components/input-range/api-table.md +129 -127
- package/docs/components/input-range/index.md +11 -1
- package/docs/components/input-range/overview.md +15 -3
- package/docs/components/input-range/use-cases.md +13 -1
- package/docs/components/input-stepper/api-table.md +136 -134
- package/docs/components/input-stepper/index.md +11 -1
- package/docs/components/input-stepper/overview.md +14 -2
- package/docs/components/input-stepper/use-cases.md +13 -1
- package/docs/components/input-tel/api-table.md +131 -129
- package/docs/components/input-tel/index.md +11 -1
- package/docs/components/input-tel/overview.md +14 -2
- package/docs/components/input-tel/use-cases.md +19 -7
- package/docs/components/input-tel-dropdown/api-table.md +138 -136
- package/docs/components/input-tel-dropdown/extensions.md +13 -1
- package/docs/components/input-tel-dropdown/index.md +11 -1
- package/docs/components/input-tel-dropdown/overview.md +14 -2
- package/docs/components/input-tel-dropdown/use-cases.md +13 -1
- package/docs/components/listbox/api-table.md +139 -132
- package/docs/components/listbox/index.md +11 -1
- package/docs/components/listbox/overview.md +13 -1
- package/docs/components/listbox/use-cases.md +14 -2
- package/docs/components/pagination/api-table.md +18 -6
- package/docs/components/pagination/index.md +11 -1
- package/docs/components/pagination/overview.md +13 -1
- package/docs/components/pagination/use-cases.md +13 -1
- package/docs/components/progress-indicator/api-table.md +22 -11
- package/docs/components/progress-indicator/examples.md +13 -1
- package/docs/components/progress-indicator/index.md +11 -1
- package/docs/components/progress-indicator/overview.md +13 -1
- package/docs/components/radio-group/api-table.md +247 -259
- package/docs/components/radio-group/index.md +11 -1
- package/docs/components/radio-group/overview.md +16 -4
- package/docs/components/radio-group/use-cases.md +13 -1
- package/docs/components/select/api-table.md +119 -117
- package/docs/components/select/index.md +11 -1
- package/docs/components/select/overview.md +13 -1
- package/docs/components/select/use-cases.md +14 -2
- package/docs/components/select-rich/api-table.md +182 -179
- package/docs/components/select-rich/examples.md +13 -1
- package/docs/components/select-rich/index.md +11 -1
- package/docs/components/select-rich/overview.md +13 -1
- package/docs/components/select-rich/use-cases.md +14 -2
- package/docs/components/steps/api-table.md +19 -7
- package/docs/components/steps/index.md +11 -1
- package/docs/components/steps/overview.md +13 -1
- package/docs/components/steps/use-cases.md +13 -1
- package/docs/components/switch/api-table.md +130 -129
- package/docs/components/switch/index.md +11 -1
- package/docs/components/switch/overview.md +13 -1
- package/docs/components/switch/reference.md +13 -1
- package/docs/components/switch/use-cases.md +13 -1
- package/docs/components/tabs/api-table.md +14 -2
- package/docs/components/tabs/examples.md +14 -2
- package/docs/components/tabs/index.md +11 -1
- package/docs/components/tabs/overview.md +13 -1
- package/docs/components/tabs/use-cases.md +13 -1
- package/docs/components/textarea/api-table.md +127 -125
- package/docs/components/textarea/index.md +11 -1
- package/docs/components/textarea/overview.md +13 -1
- package/docs/components/textarea/use-cases.md +13 -1
- package/docs/components/tooltip/api-table.md +26 -14
- package/docs/components/tooltip/examples.md +13 -1
- package/docs/components/tooltip/index.md +11 -1
- package/docs/components/tooltip/overview.md +13 -1
- package/docs/components/tooltip/use-cases.md +13 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +13 -0
- package/docs/fundamentals/node-tools/index.md +10 -0
- package/docs/fundamentals/node-tools/providence-analytics/index.md +12 -0
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +13 -0
- package/docs/fundamentals/node-tools/publish-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/publish-docs/overview.md +16 -3
- package/docs/fundamentals/node-tools/remark-extend/index.md +12 -0
- package/docs/fundamentals/node-tools/remark-extend/overview.md +13 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +15 -2
- package/docs/fundamentals/rationales/TypeScript.md +12 -0
- package/docs/fundamentals/rationales/accessibility.md +13 -1
- package/docs/fundamentals/rationales/index.md +10 -0
- package/docs/fundamentals/rationales/side-effects.md +12 -0
- package/docs/fundamentals/rationales/versioning.md +12 -0
- package/docs/fundamentals/systems/core/SlotMixin.md +14 -1
- package/docs/fundamentals/systems/core/api-table.md +22 -12
- package/docs/fundamentals/systems/core/index.md +12 -0
- package/docs/fundamentals/systems/core/overview.md +14 -1
- package/docs/fundamentals/systems/form/api-table.md +91 -83
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +17 -4
- package/docs/fundamentals/systems/form/index.md +12 -0
- package/docs/fundamentals/systems/form/interaction-states.md +13 -0
- package/docs/fundamentals/systems/form/model-value.md +14 -1
- package/docs/fundamentals/systems/form/overview.md +41 -28
- package/docs/fundamentals/systems/form/styling.md +13 -0
- package/docs/fundamentals/systems/form/use-cases.md +13 -0
- package/docs/fundamentals/systems/form/validate.md +15 -2
- package/docs/fundamentals/systems/icon/index.md +12 -0
- package/docs/fundamentals/systems/icon/overview.md +13 -0
- package/docs/fundamentals/systems/index.md +10 -0
- package/docs/fundamentals/systems/localize/api-table.md +33 -20
- package/docs/fundamentals/systems/localize/dates.md +13 -0
- package/docs/fundamentals/systems/localize/index.md +12 -0
- package/docs/fundamentals/systems/localize/numbers.md +13 -0
- package/docs/fundamentals/systems/localize/overview.md +17 -4
- package/docs/fundamentals/systems/localize/rationale.md +13 -0
- package/docs/fundamentals/systems/localize/text.md +13 -0
- package/docs/fundamentals/systems/localize/use-cases.md +13 -0
- package/docs/fundamentals/systems/overlays/_configuration-positioning.md +11 -0
- package/docs/fundamentals/systems/overlays/_edge-cases.md +10 -0
- package/docs/fundamentals/systems/overlays/api-table.md +59 -47
- package/docs/fundamentals/systems/overlays/configuration.md +15 -2
- package/docs/fundamentals/systems/overlays/index.md +12 -0
- package/docs/fundamentals/systems/overlays/overview.md +18 -5
- package/docs/fundamentals/systems/overlays/rationale.md +13 -0
- package/docs/fundamentals/systems/overlays/use-cases.md +15 -2
- package/docs/fundamentals/tools/ajax/index.md +12 -0
- package/docs/fundamentals/tools/ajax/overview.md +13 -0
- package/docs/fundamentals/tools/ajax/use-cases.md +13 -0
- package/docs/fundamentals/tools/helpers/action-logger.md +13 -0
- package/docs/fundamentals/tools/helpers/index.md +12 -0
- package/docs/fundamentals/tools/helpers/overview.md +14 -1
- package/docs/fundamentals/tools/index.md +10 -0
- package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/example-success/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/index.md +12 -0
- package/docs/fundamentals/tools/singleton-manager/overview.md +17 -4
- package/docs/guides/how-to/create-a-custom-field.md +18 -6
- package/docs/guides/how-to/create-a-form.md +17 -5
- package/docs/guides/how-to/extend-a-native-input.md +15 -3
- package/docs/guides/how-to/get-started.md +13 -1
- package/docs/guides/how-to/index.md +11 -1
- package/docs/guides/index.md +19 -9
- package/docs/guides/principles/definitions-and-terms.md +13 -1
- package/docs/guides/principles/index.md +16 -6
- package/docs/guides/principles/scoped-elements.md +13 -1
- package/docs/guides/principles/styling.md +14 -2
- package/docs/guides/principles/subclasser-apis.md +13 -1
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Accordion
|
|
5
|
+
title: 'Accordion: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Accordion
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Accordion
|
|
11
|
+
---
|
|
12
|
+
# Accordion: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionAccordion`, `lion-accordion`
|
|
4
16
|
|
|
@@ -6,21 +18,21 @@
|
|
|
6
18
|
|
|
7
19
|
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
20
|
| -------------- | ------- | --------- | ------- | ---------------------------------------------------------------------- | -------------- |
|
|
9
|
-
| `focusedIndex` | public | `number` | | index number of the focused accordion | |
|
|
10
|
-
| `expanded` | public | `array` | | array of indices of the expanded accordions | |
|
|
11
21
|
| `exclusive` | public | `boolean` | `false` | exclusive property allows only one accordion slot to be open at a time | |
|
|
22
|
+
| `expanded` | public | `array` | | array of indices of the expanded accordions | |
|
|
23
|
+
| `focusedIndex` | public | `number` | | index number of the focused accordion | |
|
|
12
24
|
|
|
13
25
|
### Methods
|
|
14
26
|
|
|
15
27
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
16
28
|
| ----------------- | --------- | ----------- | ------------------- | ------ | -------------- |
|
|
17
|
-
| `_setupContent` | protected | | `entry: StoreEntry` | | |
|
|
18
|
-
| `_setupInvoker` | protected | | `entry: StoreEntry` | | |
|
|
19
29
|
| `_cleanInvoker` | protected | | `entry: StoreEntry` | | |
|
|
20
|
-
| `_focusInvoker` | protected | | `entry: StoreEntry` | | |
|
|
21
|
-
| `_unfocusInvoker` | protected | | `entry: StoreEntry` | | |
|
|
22
30
|
| `_collapse` | protected | | `entry: StoreEntry` | | |
|
|
23
31
|
| `_expand` | protected | | `entry: StoreEntry` | | |
|
|
32
|
+
| `_focusInvoker` | protected | | `entry: StoreEntry` | | |
|
|
33
|
+
| `_setupContent` | protected | | `entry: StoreEntry` | | |
|
|
34
|
+
| `_setupInvoker` | protected | | `entry: StoreEntry` | | |
|
|
35
|
+
| `_unfocusInvoker` | protected | | `entry: StoreEntry` | | |
|
|
24
36
|
|
|
25
37
|
### Attributes
|
|
26
38
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Accordion: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Overview
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">An accordion is a vertically stacked set of interactive headings that each contain a title representing a section of content. It allows users to toggle the display of sections of content.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Reference
|
|
5
|
+
title: 'Accordion: Reference'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Reference'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Reference
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Reference
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">Everything you need to re-use the accordion.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Accordion: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html as previewHtml } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Button
|
|
5
|
+
title: 'Button: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Button
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Button
|
|
11
|
+
---
|
|
12
|
+
# Button: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionButton`, `lion-button`
|
|
4
16
|
|
|
@@ -6,20 +18,20 @@
|
|
|
6
18
|
|
|
7
19
|
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
20
|
| ------------------------ | --------- | --------- | ---------- | ----------- | ------------------------- |
|
|
9
|
-
| `type` | public | `string` | `'button'` | | |
|
|
10
21
|
| `active` | public | `boolean` | `false` | | |
|
|
11
|
-
| `
|
|
22
|
+
| `disabled` | public | `boolean` | `false` | | DisabledMixin |
|
|
12
23
|
| `tabIndex` | public | `number` | | | DisabledWithTabIndexMixin |
|
|
24
|
+
| `type` | public | `string` | `'button'` | | |
|
|
25
|
+
| `_buttonId` | protected | | | | |
|
|
13
26
|
| `_requestedToBeDisabled` | protected | `boolean` | `false` | | DisabledMixin |
|
|
14
|
-
| `disabled` | public | `boolean` | `false` | | DisabledMixin |
|
|
15
27
|
|
|
16
28
|
### Methods
|
|
17
29
|
|
|
18
30
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
19
31
|
| ---------------------------- | ------- | ----------- | ---------- | ------ | -------------- |
|
|
32
|
+
| `click` | public | | | | DisabledMixin |
|
|
20
33
|
| `makeRequestToBeDisabled` | public | | | | DisabledMixin |
|
|
21
34
|
| `retractRequestToBeDisabled` | public | | | | DisabledMixin |
|
|
22
|
-
| `click` | public | | | | DisabledMixin |
|
|
23
35
|
|
|
24
36
|
### Attributes
|
|
25
37
|
|
|
@@ -37,25 +49,24 @@
|
|
|
37
49
|
|
|
38
50
|
### Fields
|
|
39
51
|
|
|
40
|
-
| Name
|
|
41
|
-
|
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `tabIndex`
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `_buttonId` | protected | | | | LionButton |
|
|
52
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
53
|
+
| ------------------------ | --------- | --------- | --------- | ----------- | -------------- |
|
|
54
|
+
| `active` | public | `boolean` | `false` | | LionButton |
|
|
55
|
+
| `disabled` | public | `boolean` | `false` | | LionButton |
|
|
56
|
+
| `tabIndex` | public | `number` | | | LionButton |
|
|
57
|
+
| `type` | public | `string` | `'reset'` | | LionButton |
|
|
58
|
+
| `_buttonId` | protected | | | | LionButton |
|
|
59
|
+
| `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
|
|
49
60
|
|
|
50
61
|
### Methods
|
|
51
62
|
|
|
52
63
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
53
64
|
| --------------------------------------------- | --------- | ----------- | ---------- | ------ | -------------- |
|
|
54
|
-
| `
|
|
55
|
-
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | |
|
|
65
|
+
| `click` | public | | | | LionButton |
|
|
56
66
|
| `makeRequestToBeDisabled` | public | | | | LionButton |
|
|
57
67
|
| `retractRequestToBeDisabled` | public | | | | LionButton |
|
|
58
|
-
| `
|
|
68
|
+
| `_setupSubmitAndResetHelperOnConnected` | protected | | | | |
|
|
69
|
+
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | |
|
|
59
70
|
|
|
60
71
|
### Attributes
|
|
61
72
|
|
|
@@ -73,27 +84,25 @@
|
|
|
73
84
|
|
|
74
85
|
### Fields
|
|
75
86
|
|
|
76
|
-
| Name
|
|
77
|
-
|
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `active` | public | `boolean` | `false` | | LionButton |
|
|
86
|
-
| `_buttonId` | protected | | | | LionButton |
|
|
87
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
88
|
+
| ------------------------ | --------- | ------------------------- | ---------- | ----------- | -------------- |
|
|
89
|
+
| `active` | public | `boolean` | `false` | | LionButton |
|
|
90
|
+
| `disabled` | public | `boolean` | `false` | | LionButton |
|
|
91
|
+
| `tabIndex` | public | `number` | | | LionButton |
|
|
92
|
+
| `type` | public | `string` | `'submit'` | | LionButton |
|
|
93
|
+
| `_buttonId` | protected | | | | LionButton |
|
|
94
|
+
| `_nativeButtonNode` | protected | `HTMLButtonElement\|null` | | | |
|
|
95
|
+
| `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
|
|
87
96
|
|
|
88
97
|
### Methods
|
|
89
98
|
|
|
90
99
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
91
100
|
| --------------------------------------------- | --------- | ----------- | ---------- | ------ | --------------- |
|
|
92
|
-
| `
|
|
93
|
-
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | LionButtonReset |
|
|
101
|
+
| `click` | public | | | | LionButton |
|
|
94
102
|
| `makeRequestToBeDisabled` | public | | | | LionButton |
|
|
95
103
|
| `retractRequestToBeDisabled` | public | | | | LionButton |
|
|
96
|
-
| `
|
|
104
|
+
| `_setupSubmitAndResetHelperOnConnected` | protected | | | | LionButtonReset |
|
|
105
|
+
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | LionButtonReset |
|
|
97
106
|
|
|
98
107
|
### Attributes
|
|
99
108
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Button: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Extensions
|
|
5
|
+
title: 'Button: Extensions'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Extensions'
|
|
8
|
+
order: 90
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Extensions
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Extensions
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Button: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Overview
|
|
2
14
|
|
|
3
15
|
A button web component that is easily stylable and accessible.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Button: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Calendar
|
|
5
|
+
title: 'Calendar: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Calendar
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Calendar
|
|
11
|
+
---
|
|
12
|
+
# Calendar: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionCalendar`, `lion-calendar`
|
|
4
16
|
|
|
@@ -6,34 +18,34 @@
|
|
|
6
18
|
|
|
7
19
|
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
20
|
| ----------------------- | ------- | -------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
9
|
-
| `
|
|
10
|
-
| `minDate` | public | | `new Date(0)` | Minimum date. All dates before will be disabled | |
|
|
11
|
-
| `maxDate` | public | | `new Date(8640000000000000)` | Maximum date. All dates after will be disabled | |
|
|
21
|
+
| `centralDate` | public | `Date` | | The date that
1\. determines the currently visible month
2\. will be focused when the month grid gets focused by the keyboard | |
|
|
12
22
|
| `dayPreprocessor` | public | | | | |
|
|
13
23
|
| `disableDates` | public | | | Disable certain dates | |
|
|
14
24
|
| `firstDayOfWeek` | public | `number` | `0` | Weekday that will be displayed in first column of month grid.
0: sunday, 1: monday, 2: tuesday, 3: wednesday , 4: thursday, 5: friday, 6: saturday
Default is 0 | |
|
|
15
|
-
| `
|
|
16
|
-
| `centralDate` | public | `Date` | | The date that
1\. determines the currently visible month
2\. will be focused when the month grid gets focused by the keyboard | |
|
|
25
|
+
| `focusedDate` | public | | | | |
|
|
17
26
|
| `locale` | public | `string` | `''` | Different locale for this component scope | |
|
|
27
|
+
| `maxDate` | public | | `new Date(8640000000000000)` | Maximum date. All dates after will be disabled | |
|
|
28
|
+
| `minDate` | public | | `new Date(0)` | Minimum date. All dates before will be disabled | |
|
|
18
29
|
| `selectedDate` | public | | | The selected date, usually synchronized with datepicker-input
Not to be confused with the focused date (therefore not necessarily in active month view) | |
|
|
30
|
+
| `weekdayHeaderNotation` | public | `string` | `'short'` | Weekday header notation, based on Intl DatetimeFormat:
- 'long' (e.g., Thursday)
- 'short' (e.g., Thu)
- 'narrow' (e.g., T).
Default is 'short' | |
|
|
19
31
|
|
|
20
32
|
### Methods
|
|
21
33
|
|
|
22
34
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
23
35
|
| ------------------------- | --------- | ----------------------------------------------------------------------------------------------- | ------------ | ------ | -------------- |
|
|
36
|
+
| `findNearestEnabledDate` | public | | `date: Date` | | |
|
|
37
|
+
| `findNextEnabledDate` | public | | `date: Date` | | |
|
|
38
|
+
| `findPreviousEnabledDate` | public | | `date: Date` | | |
|
|
39
|
+
| `focusCentralDate` | public | | | | |
|
|
40
|
+
| `focusDate` | public | | `date: Date` | | |
|
|
41
|
+
| `focusSelectedDate` | public | | | | |
|
|
24
42
|
| `goToNextMonth` | public | | | | |
|
|
25
|
-
| `goToPreviousMonth` | public | | | | |
|
|
26
43
|
| `goToNextYear` | public | | | | |
|
|
44
|
+
| `goToPreviousMonth` | public | | | | |
|
|
27
45
|
| `goToPreviousYear` | public | | | | |
|
|
28
|
-
| `focusDate` | public | | `date: Date` | | |
|
|
29
|
-
| `focusCentralDate` | public | | | | |
|
|
30
|
-
| `focusSelectedDate` | public | | | | |
|
|
31
46
|
| `initCentralDate` | public | This exposes an interface for datepickers that want to
reinitialize when calendar is opened | | | |
|
|
32
|
-
| `_previousIconTemplate` | protected | | | | |
|
|
33
47
|
| `_nextIconTemplate` | protected | | | | |
|
|
34
|
-
| `
|
|
35
|
-
| `findPreviousEnabledDate` | public | | `date: Date` | | |
|
|
36
|
-
| `findNearestEnabledDate` | public | | `date: Date` | | |
|
|
48
|
+
| `_previousIconTemplate` | protected | | | | |
|
|
37
49
|
|
|
38
50
|
### Events
|
|
39
51
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Calendar
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Calendar: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Calendar: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Calendar
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Calendar: Overview
|
|
2
14
|
|
|
3
15
|
A reusable and accessible calendar view web component.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Calendar
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Calendar: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Calendar: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Calendar
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Calendar: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html, css } from '@mdjs/mdjs-preview';
|