@lion/ui 0.8.6 → 0.8.8
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/components/calendar/src/LionCalendar.js +5 -1
- package/components/combobox/test/lion-combobox.test.js +13 -11
- package/components/core/test/SlotMixin.test.js +6 -5
- package/components/core/test-helpers/isActiveElement.js +14 -0
- package/components/dialog/test/lion-dialog.test.js +6 -5
- package/components/form/test/lion-form.test.js +20 -18
- package/components/form-core/test/lion-field.test.js +15 -14
- package/components/form-core/test-suites/NativeTextFieldMixin.suite.js +8 -6
- package/components/form-integrations/test/dialog-integrations.test.js +6 -5
- package/components/input-datepicker/test/lion-input-datepicker.test.js +25 -1
- package/components/overlays/src/utils/contain-focus.js +1 -1
- package/components/overlays/test/OverlayController.test.js +13 -11
- package/components/overlays/test/utils-tests/contain-focus.test.js +21 -16
- package/components/pagination/src/LionPagination.js +1 -0
- package/components/pagination/test/lion-pagination.test.js +16 -0
- package/components/select-rich/test/lion-select-rich.test.js +15 -17
- package/components/switch/test/lion-switch.test.js +7 -6
- package/custom-elements.json +51 -7
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/combobox/test/lion-combobox.test.d.ts.map +1 -1
- package/dist-types/components/{overlays/src/utils/get-deep-active-element.d.ts → core/src/getDeepActiveElement.d.ts} +1 -1
- package/dist-types/components/core/src/getDeepActiveElement.d.ts.map +1 -0
- package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
- package/dist-types/components/core/test-helpers/isActiveElement.d.ts +13 -0
- package/dist-types/components/core/test-helpers/isActiveElement.d.ts.map +1 -0
- package/dist-types/components/dialog/test/lion-dialog.test.d.ts.map +1 -1
- package/dist-types/components/form/test/lion-form.test.d.ts.map +1 -1
- package/dist-types/components/form-core/test/lion-field.test.d.ts +2 -2
- package/dist-types/components/form-core/test/lion-field.test.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/NativeTextFieldMixin.suite.d.ts +2 -2
- package/dist-types/components/form-core/test-suites/NativeTextFieldMixin.suite.d.ts.map +1 -1
- package/dist-types/components/form-integrations/test/dialog-integrations.test.d.ts.map +1 -1
- package/dist-types/components/overlays/test/OverlayController.test.d.ts.map +1 -1
- package/dist-types/components/pagination/src/LionPagination.d.ts.map +1 -1
- package/dist-types/components/select-rich/test/lion-select-rich.test.d.ts +2 -2
- package/dist-types/components/select-rich/test/lion-select-rich.test.d.ts.map +1 -1
- package/dist-types/components/switch/test/lion-switch.test.d.ts +1 -1
- package/dist-types/components/switch/test/lion-switch.test.d.ts.map +1 -1
- package/dist-types/exports/overlays.d.ts +2 -2
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/form/use-cases.md +157 -8
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +2 -2
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- 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/exports/overlays.js +3 -2
- package/overlays.js +3 -2
- package/package.json +1 -1
- package/dist-types/components/overlays/src/utils/get-deep-active-element.d.ts.map +0 -1
- /package/components/{overlays/src/utils/get-deep-active-element.js → core/src/getDeepActiveElement.js} +0 -0
|
@@ -105,6 +105,22 @@ describe('Pagination', () => {
|
|
|
105
105
|
expect(el.current).to.equal(2);
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
+
it('should announce next and previous page using `next()` and `previous()`', async () => {
|
|
109
|
+
const el = await fixture(html` <lion-pagination count="6" current="2"></lion-pagination> `);
|
|
110
|
+
const buttons = Array.from(
|
|
111
|
+
/** @type {ShadowRoot} */ (el.shadowRoot).querySelectorAll('button'),
|
|
112
|
+
);
|
|
113
|
+
expect(buttons[2].getAttribute('aria-live')).to.equal('polite');
|
|
114
|
+
el.next();
|
|
115
|
+
await el.updateComplete;
|
|
116
|
+
expect(buttons[3].getAttribute('aria-live')).to.equal('polite');
|
|
117
|
+
expect(buttons[2].getAttribute('aria-live')).to.equal('off');
|
|
118
|
+
el.previous();
|
|
119
|
+
await el.updateComplete;
|
|
120
|
+
expect(buttons[3].getAttribute('aria-live')).to.equal('off');
|
|
121
|
+
expect(buttons[2].getAttribute('aria-live')).to.equal('polite');
|
|
122
|
+
});
|
|
123
|
+
|
|
108
124
|
it('should goto next and previous page using `next()` and `previous()`', async () => {
|
|
109
125
|
const el = await fixture(html` <lion-pagination count="6" current="2"></lion-pagination> `);
|
|
110
126
|
el.next();
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { LionOption } from '@lion/ui/listbox.js';
|
|
3
|
-
import { OverlayController } from '@lion/ui/overlays.js';
|
|
4
|
-
import { mimicClick } from '@lion/ui/overlays-test-helpers.js';
|
|
5
1
|
import { LionSelectInvoker, LionSelectRich } from '@lion/ui/select-rich.js';
|
|
6
|
-
|
|
7
|
-
import '@lion/ui/
|
|
8
|
-
import '@lion/ui/
|
|
2
|
+
import { getSelectRichMembers } from '@lion/ui/select-rich-test-helpers.js';
|
|
3
|
+
import { mimicClick } from '@lion/ui/overlays-test-helpers.js';
|
|
4
|
+
import { OverlayController } from '@lion/ui/overlays.js';
|
|
5
|
+
import { LionOption } from '@lion/ui/listbox.js';
|
|
9
6
|
import '@lion/ui/define/lion-select-rich.js';
|
|
7
|
+
import '@lion/ui/define/lion-listbox.js';
|
|
8
|
+
import '@lion/ui/define/lion-option.js';
|
|
9
|
+
import { LitElement } from 'lit';
|
|
10
10
|
import {
|
|
11
|
+
fixture as _fixture,
|
|
12
|
+
unsafeStatic,
|
|
13
|
+
nextFrame,
|
|
11
14
|
aTimeout,
|
|
12
15
|
defineCE,
|
|
13
16
|
expect,
|
|
14
|
-
fixture as _fixture,
|
|
15
17
|
html,
|
|
16
|
-
nextFrame,
|
|
17
|
-
unsafeStatic,
|
|
18
18
|
} from '@open-wc/testing';
|
|
19
|
-
import { getSelectRichMembers } from '@lion/ui/select-rich-test-helpers.js';
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
* @typedef {import('../../listbox/src/LionOptions.js').LionOptions} LionOptions
|
|
23
|
-
* @typedef {import('../../listbox/types/ListboxMixinTypes.js').ListboxHost} ListboxHost
|
|
24
|
-
* @typedef {import('../../form-core/types/FormControlMixinTypes.js').FormControlHost} FormControlHost
|
|
25
|
-
*/
|
|
20
|
+
import { isActiveElement } from '../../core/test-helpers/isActiveElement.js';
|
|
26
21
|
|
|
27
22
|
/**
|
|
23
|
+
* @typedef {import('../../form-core/types/FormControlMixinTypes.js').FormControlHost} FormControlHost
|
|
24
|
+
* @typedef {import('../../listbox/types/ListboxMixinTypes.js').ListboxHost} ListboxHost
|
|
25
|
+
* @typedef {import('../../listbox/src/LionOptions.js').LionOptions} LionOptions
|
|
28
26
|
* @typedef {import('lit').TemplateResult} TemplateResult
|
|
29
27
|
*/
|
|
30
28
|
|
|
@@ -478,7 +476,7 @@ describe('lion-select-rich', () => {
|
|
|
478
476
|
|
|
479
477
|
el.opened = true;
|
|
480
478
|
await el.updateComplete;
|
|
481
|
-
expect(
|
|
479
|
+
expect(isActiveElement(_listboxNode)).to.be.true;
|
|
482
480
|
|
|
483
481
|
el.opened = false;
|
|
484
482
|
await el.updateComplete;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { getFormControlMembers } from '@lion/ui/form-core-test-helpers.js';
|
|
1
2
|
import { expect, fixture as _fixture } from '@open-wc/testing';
|
|
2
|
-
import { html } from 'lit/static-html.js';
|
|
3
|
-
import sinon from 'sinon';
|
|
4
3
|
import { Validator } from '@lion/ui/form-core.js';
|
|
5
4
|
import { LionSwitch } from '@lion/ui/switch.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { html } from 'lit/static-html.js';
|
|
8
6
|
import '@lion/ui/define/lion-switch.js';
|
|
7
|
+
import sinon from 'sinon';
|
|
8
|
+
|
|
9
|
+
import { isActiveElement } from '../../core/test-helpers/isActiveElement.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @typedef {import('../src/LionSwitchButton.js').LionSwitchButton} LionSwitchButton
|
|
12
|
-
* @typedef {import('lit').TemplateResult} TemplateResult
|
|
13
13
|
* @typedef {import('@lion/ui/types/form-core.js').FormControlHost} FormControlHost
|
|
14
|
+
* @typedef {import('lit').TemplateResult} TemplateResult
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const IsTrue = class extends Validator {
|
|
@@ -60,7 +61,7 @@ describe('lion-switch', () => {
|
|
|
60
61
|
const { _inputNode, _labelNode } = getSwitchMembers(el);
|
|
61
62
|
|
|
62
63
|
_labelNode.click();
|
|
63
|
-
expect(
|
|
64
|
+
expect(isActiveElement(_inputNode)).to.be.true;
|
|
64
65
|
});
|
|
65
66
|
|
|
66
67
|
it('clicking the label should not focus the toggle button when disabled', async () => {
|
package/custom-elements.json
CHANGED
|
@@ -1812,7 +1812,7 @@
|
|
|
1812
1812
|
"name": "getDeepActiveElement",
|
|
1813
1813
|
"declaration": {
|
|
1814
1814
|
"name": "getDeepActiveElement",
|
|
1815
|
-
"module": "../components/
|
|
1815
|
+
"module": "../components/core/src/getDeepActiveElement.js"
|
|
1816
1816
|
}
|
|
1817
1817
|
},
|
|
1818
1818
|
{
|
|
@@ -1825,17 +1825,17 @@
|
|
|
1825
1825
|
},
|
|
1826
1826
|
{
|
|
1827
1827
|
"kind": "js",
|
|
1828
|
-
"name": "
|
|
1828
|
+
"name": "unsetSiblingsInert",
|
|
1829
1829
|
"declaration": {
|
|
1830
|
-
"name": "
|
|
1830
|
+
"name": "unsetSiblingsInert",
|
|
1831
1831
|
"module": "../components/overlays/src/utils/inert-siblings.js"
|
|
1832
1832
|
}
|
|
1833
1833
|
},
|
|
1834
1834
|
{
|
|
1835
1835
|
"kind": "js",
|
|
1836
|
-
"name": "
|
|
1836
|
+
"name": "setSiblingsInert",
|
|
1837
1837
|
"declaration": {
|
|
1838
|
-
"name": "
|
|
1838
|
+
"name": "setSiblingsInert",
|
|
1839
1839
|
"module": "../components/overlays/src/utils/inert-siblings.js"
|
|
1840
1840
|
}
|
|
1841
1841
|
},
|
|
@@ -116603,7 +116603,7 @@
|
|
|
116603
116603
|
},
|
|
116604
116604
|
{
|
|
116605
116605
|
"kind": "javascript-module",
|
|
116606
|
-
"path": "components/
|
|
116606
|
+
"path": "components/core/src/getDeepActiveElement.js",
|
|
116607
116607
|
"declarations": [
|
|
116608
116608
|
{
|
|
116609
116609
|
"kind": "function",
|
|
@@ -116622,7 +116622,7 @@
|
|
|
116622
116622
|
"name": "getDeepActiveElement",
|
|
116623
116623
|
"declaration": {
|
|
116624
116624
|
"name": "getDeepActiveElement",
|
|
116625
|
-
"module": "components/
|
|
116625
|
+
"module": "components/core/src/getDeepActiveElement.js"
|
|
116626
116626
|
}
|
|
116627
116627
|
}
|
|
116628
116628
|
]
|
|
@@ -142723,6 +142723,50 @@
|
|
|
142723
142723
|
}
|
|
142724
142724
|
]
|
|
142725
142725
|
},
|
|
142726
|
+
{
|
|
142727
|
+
"kind": "javascript-module",
|
|
142728
|
+
"path": "components/core/test-helpers/isActiveElement.js",
|
|
142729
|
+
"declarations": [
|
|
142730
|
+
{
|
|
142731
|
+
"kind": "function",
|
|
142732
|
+
"name": "isActiveElement",
|
|
142733
|
+
"parameters": [
|
|
142734
|
+
{
|
|
142735
|
+
"name": "el",
|
|
142736
|
+
"type": {
|
|
142737
|
+
"text": "Element"
|
|
142738
|
+
}
|
|
142739
|
+
},
|
|
142740
|
+
{
|
|
142741
|
+
"name": "{ deep = false }",
|
|
142742
|
+
"default": "{}"
|
|
142743
|
+
},
|
|
142744
|
+
{
|
|
142745
|
+
"name": "opts",
|
|
142746
|
+
"type": {
|
|
142747
|
+
"text": "{deep?: boolean}"
|
|
142748
|
+
}
|
|
142749
|
+
}
|
|
142750
|
+
],
|
|
142751
|
+
"description": "Readable alternative for `expect(el).to.equal(document.activeElement);`.\nWhile this is readable by itself, it makes Web Test Runner hang completely in many occasions.\nTherefore it's better to write:\n`expect(isActiveElement(el)).to.be.true;`",
|
|
142752
|
+
"return": {
|
|
142753
|
+
"type": {
|
|
142754
|
+
"text": "boolean"
|
|
142755
|
+
}
|
|
142756
|
+
}
|
|
142757
|
+
}
|
|
142758
|
+
],
|
|
142759
|
+
"exports": [
|
|
142760
|
+
{
|
|
142761
|
+
"kind": "js",
|
|
142762
|
+
"name": "isActiveElement",
|
|
142763
|
+
"declaration": {
|
|
142764
|
+
"name": "isActiveElement",
|
|
142765
|
+
"module": "components/core/test-helpers/isActiveElement.js"
|
|
142766
|
+
}
|
|
142767
|
+
}
|
|
142768
|
+
]
|
|
142769
|
+
},
|
|
142726
142770
|
{
|
|
142727
142771
|
"kind": "javascript-module",
|
|
142728
142772
|
"path": "components/form-core/src/utils/getAriaElementsInRightDomOrder.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCalendar.d.ts","sourceRoot":"","sources":["../../../../components/calendar/src/LionCalendar.js"],"names":[],"mappings":";AAoCA;;GAEG;AACH;IAkEE;QAEI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;;WAGG;;;;QAGH;;;;WAIG;;;;QAGH;;;;WAIG;;;;QAGH;;;;;;WAMG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IA4CD,+CAEC;
|
|
1
|
+
{"version":3,"file":"LionCalendar.d.ts","sourceRoot":"","sources":["../../../../components/calendar/src/LionCalendar.js"],"names":[],"mappings":";AAoCA;;GAEG;AACH;IAkEE;QAEI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;;WAGG;;;;QAGH;;;;WAIG;;;;QAGH;;;;WAIG;;;;QAGH;;;;;;WAMG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IA4CD,+CAEC;IAmKD;;;OAGG;IACH,oDAA4F;IAjN1F;;OAEG;IACH,eAA4B;IAC5B,cAA0B;IAE1B,cAAyC;IACzC,uBAAuB;IACvB,uBADY,GAAG,mCACkB;IAEjC,wBAAwB;IAExB,oBAFY,IAAI,aAEgB;IAEhC,uBAAuB;IACvB,8BAAoC;IACpC,eAAe;IACf,gBAA4C;IAC5C,mBAAmB;IACnB,aADW,IAAI,CACgB;IAC/B;;;OAGG;IACH,sBAAyB;IACzB,eAAe;IACf,gCAAoC;IACpC,eAAe;IACf,sBAA0B;IAC1B,eAAgB;IAChB,eAAe;IACf,uCAA+E;IAC/E,eAAe;IACf,mCAAuE;IACvE,eAAe;IACf,mCAAuE;IACvE,eAAe;IACf,kCAAsE;IAOxE,+CAMC;IAED,+BAEC;IAED,sBAEC;IAED,0BAEC;IAED,qBAEC;IAED,yBAEC;IAED;;OAEG;IACH,gBAFW,IAAI,iBAMd;IAED,yBAOC;IAED,mCAIC;IAED,mCAkCC;IATG,uDAEC;IAkBL,6BAaC;IAUD;;;;;OAKG;IACH,oDAJW,OAAO,sEAEL,IAAI,CAkBhB;IAED;;;OAGG;IACH,wBAWC;IAQD;;OAEG;IACH,sCASC;IAFC,mBAAmB;IACnB,uCAA4C;IAG9C;;;;OAIG;IACH,gCAkBC;IAED;;;;OAIG;IACH,+BAWC;IAED;;OAEG;IACH,2BAQC;IAED;;OAEG;IACH,qBAeC;IAED;;;;;OAKG;IACH,8BAiBC;IAED;;;;;OAKG;IACH,0BAiBC;IAED;;;;;OAKG;IAEH,uCANW,MAAM,iBACN,MAAM,gBACN,MAAM,wCA0BhB;IAGD,8DAEC;IAED;;;;;OAKG;IAEH,mCANW,MAAM,aACN,MAAM,YACN,MAAM,wCA0BhB;IAGD,0DAEC;IAED;;;;;;;OAOG;IACH,6BAEC;IAED;;;OAGG;IACH,iCAuBC;IAED;;;;;OAKG;IACH,8BA0CC;IAED;;;OAGG;IACH,qBAkBC;IAED;;;OAGG;IACH,6BAUC;IATC,+BAAgC;IAWlC;;OAEG;IACH,6BAIC;IAED;;;OAGG;IACH,mDAGC;IAED;;;OAGG;IACH,uDAGC;IAED;;;OAGG;IACH,sDAGC;IAED;;;OAGG;IACH,wBAGC;IAED;;;;;OAKG;IACH,iCAmCC;IAED;;;OAGG;IACH,8BAKC;IAED;;OAEG;IACH,8BASC;IAED;;OAEG;IACH,6BASC;IAED;;;OAGG;IACH,6BAIC;IAED;;;OAGG;IACH,kCAsDC;IAED;;;;;;;OAOG;IACH,qBAeC;IAED;;OAEG;IACH,oBAEC;CACF;kBAp6BY,OAAO,iBAAiB,EAAE,GAAG;mBAC7B,OAAO,iBAAiB,EAAE,IAAI;oBAC9B,OAAO,iBAAiB,EAAE,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-combobox.test.d.ts","sourceRoot":"","sources":["../../../../components/combobox/test/lion-combobox.test.js"],"names":[],"mappings":"+
|
|
1
|
+
{"version":3,"file":"lion-combobox.test.d.ts","sourceRoot":"","sources":["../../../../components/combobox/test/lion-combobox.test.js"],"names":[],"mappings":"+BAqBa,OAAO,8BAA8B,EAAE,gBAAgB;yBACvD,OAAO,qBAAqB,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDeepActiveElement.d.ts","sourceRoot":"","sources":["../../../../components/core/src/getDeepActiveElement.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wCAFa,OAAO,CAQnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlotMixin.test.d.ts","sourceRoot":"","sources":["../../../../components/core/test/SlotMixin.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlotMixin.test.d.ts","sourceRoot":"","sources":["../../../../components/core/test/SlotMixin.test.js"],"names":[],"mappings":"uBASa,OAAO,4BAA4B,EAAE,QAAQ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Readable alternative for `expect(el).to.equal(document.activeElement);`.
|
|
3
|
+
* While this is readable by itself, it makes Web Test Runner hang completely in many occasions.
|
|
4
|
+
* Therefore it's better to write:
|
|
5
|
+
* `expect(isActiveElement(el)).to.be.true;`
|
|
6
|
+
* @param {Element} el
|
|
7
|
+
* @param {{deep?: boolean}} opts
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
export function isActiveElement(el: Element, { deep }?: {
|
|
11
|
+
deep?: boolean;
|
|
12
|
+
}): boolean;
|
|
13
|
+
//# sourceMappingURL=isActiveElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isActiveElement.d.ts","sourceRoot":"","sources":["../../../../components/core/test-helpers/isActiveElement.js"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,oCAJW,OAAO,aACP;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAC,GACd,OAAO,CAKnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-dialog.test.d.ts","sourceRoot":"","sources":["../../../../components/dialog/test/lion-dialog.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lion-dialog.test.d.ts","sourceRoot":"","sources":["../../../../components/dialog/test/lion-dialog.test.js"],"names":[],"mappings":"yBAOa,OAAO,sBAAsB,EAAE,UAAU;6BACzC,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-form.test.d.ts","sourceRoot":"","sources":["../../../../components/form/test/lion-form.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lion-form.test.d.ts","sourceRoot":"","sources":["../../../../components/form/test/lion-form.test.js"],"names":[],"mappings":"uBA0Ba,OAAO,oBAAoB,EAAE,QAAQ;6BACrC,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export type LionField = import('../src/LionField.js').LionField;
|
|
2
|
-
export type FormControlHost = import('../types/FormControlMixinTypes.js').FormControlHost;
|
|
3
1
|
export type FormControl = FormControlHost & HTMLElement & {
|
|
4
2
|
_parentFormGroup?: HTMLElement;
|
|
5
3
|
checked?: boolean;
|
|
@@ -8,4 +6,6 @@ export type ShadowHTMLElement = HTMLElement & {
|
|
|
8
6
|
shadowRoot: HTMLElement;
|
|
9
7
|
assignedNodes: Function;
|
|
10
8
|
};
|
|
9
|
+
export type FormControlHost = import('../types/FormControlMixinTypes.js').FormControlHost;
|
|
10
|
+
export type LionField = import('../src/LionField.js').LionField;
|
|
11
11
|
//# sourceMappingURL=lion-field.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-field.test.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test/lion-field.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lion-field.test.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test/lion-field.test.js"],"names":[],"mappings":"0BAmBa,eAAe,GAAG,WAAW,GAAG;IAAC,gBAAgB,CAAC,EAAC,WAAW,CAAC;IAAC,OAAO,CAAC,EAAC,OAAO,CAAA;CAAC;gCACjF,WAAW,GAAG;IAAC,UAAU,EAAE,WAAW,CAAC;IAAC,aAAa,WAAU;CAAC;8BAChE,OAAO,mCAAmC,EAAE,eAAe;wBAC3D,OAAO,qBAAqB,EAAE,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import('../types/FormControlMixinTypes.js').FormControlHost} FormControlHost
|
|
3
2
|
* @typedef {ArrayConstructor | ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor | DateConstructor | 'iban' | 'email'} modelValueType
|
|
3
|
+
* @typedef {import('../types/FormControlMixinTypes.js').FormControlHost} FormControlHost
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @param {{tagString?: string, modelValueType?: modelValueType}} [customConfig]
|
|
@@ -9,6 +9,6 @@ export function runNativeTextFieldMixinSuite(customConfig?: {
|
|
|
9
9
|
tagString?: string | undefined;
|
|
10
10
|
modelValueType?: modelValueType | undefined;
|
|
11
11
|
} | undefined): void;
|
|
12
|
-
export type FormControlHost = import('../types/FormControlMixinTypes.js').FormControlHost;
|
|
13
12
|
export type modelValueType = ArrayConstructor | ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor | DateConstructor | 'iban' | 'email';
|
|
13
|
+
export type FormControlHost = import('../types/FormControlMixinTypes.js').FormControlHost;
|
|
14
14
|
//# sourceMappingURL=NativeTextFieldMixin.suite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeTextFieldMixin.suite.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test-suites/NativeTextFieldMixin.suite.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeTextFieldMixin.suite.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test-suites/NativeTextFieldMixin.suite.js"],"names":[],"mappings":"AAUA;;;GAGG;AAEH;;GAEG;AACH;;;qBA4DC;6BAnEY,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,GAAG,MAAM,GAAG,OAAO;8BACtI,OAAO,mCAAmC,EAAE,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-integrations.test.d.ts","sourceRoot":"","sources":["../../../../components/form-integrations/test/dialog-integrations.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog-integrations.test.d.ts","sourceRoot":"","sources":["../../../../components/form-integrations/test/dialog-integrations.test.js"],"names":[],"mappings":"2BAYa,OAAO,4BAA4B,EAAE,YAAY;yBACjD,OAAO,gCAAgC,EAAE,UAAU;uBACnD,OAAO,4BAA4B,EAAE,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayController.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/OverlayController.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OverlayController.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/OverlayController.test.js"],"names":[],"mappings":"gCAqBa,OAAO,2BAA2B,EAAE,iBAAiB;4BACrD,OAAO,2BAA2B,EAAE,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionPagination.d.ts","sourceRoot":"","sources":["../../../../components/pagination/src/LionPagination.js"],"names":[],"mappings":";AAIA;;GAEG;AAEH;;;;GAIG;AACH;IACE,+CAsBC;IAoDD;;;;;;;;;MAWC;IAED,4BAA4B;IAC5B,yBAOC;IAED,wBAAwB;IACxB,sBAEC;IATG,8BAAsB;IAaxB,eAAe;IACf,uBAAuB;IAEvB,cAAc;IAGhB;;;OAGG;IACH,oBAIC;IAED;;;OAGG;IACH,qBAIC;IAED;;;OAGG;IACH,oBAIC;IAED;;;;OAIG;IACH,wBAHW,MAAM,QAOhB;IAED;;;OAGG;IACH,wBAIC;IAED;;;;OAIG;IACH,eAIC;IAED;;;;OAIG;IACH,2BAiCC;IAED;;;;;;OAMG;IAEH,gDAJa,cAAc,CAM1B;IAED;;;;;;;;OAQG;IACH,0FAHa,cAAc,CAc1B;IAED;;;;;;OAMG;IACH,kDAHa,cAAc,CAS1B;IAED;;;;OAIG;IACH,4BAHa,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"LionPagination.d.ts","sourceRoot":"","sources":["../../../../components/pagination/src/LionPagination.js"],"names":[],"mappings":";AAIA;;GAEG;AAEH;;;;GAIG;AACH;IACE,+CAsBC;IAoDD;;;;;;;;;MAWC;IAED,4BAA4B;IAC5B,yBAOC;IAED,wBAAwB;IACxB,sBAEC;IATG,8BAAsB;IAaxB,eAAe;IACf,uBAAuB;IAEvB,cAAc;IAGhB;;;OAGG;IACH,oBAIC;IAED;;;OAGG;IACH,qBAIC;IAED;;;OAGG;IACH,oBAIC;IAED;;;;OAIG;IACH,wBAHW,MAAM,QAOhB;IAED;;;OAGG;IACH,wBAIC;IAED;;;;OAIG;IACH,eAIC;IAED;;;;OAIG;IACH,2BAiCC;IAED;;;;;;OAMG;IAEH,gDAJa,cAAc,CAM1B;IAED;;;;;;;;OAQG;IACH,0FAHa,cAAc,CAc1B;IAED;;;;;;OAMG;IACH,kDAHa,cAAc,CAS1B;IAED;;;;OAIG;IACH,4BAHa,cAAc,EAAE,CAoB5B;IAED,+CAcC;CACF;6BArTY,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type LionOptions = import('../../listbox/src/LionOptions.js').LionOptions;
|
|
2
|
-
export type ListboxHost = import('../../listbox/types/ListboxMixinTypes.js').ListboxHost;
|
|
3
1
|
export type FormControlHost = import('../../form-core/types/FormControlMixinTypes.js').FormControlHost;
|
|
2
|
+
export type ListboxHost = import('../../listbox/types/ListboxMixinTypes.js').ListboxHost;
|
|
3
|
+
export type LionOptions = import('../../listbox/src/LionOptions.js').LionOptions;
|
|
4
4
|
export type TemplateResult = import('lit').TemplateResult;
|
|
5
5
|
//# sourceMappingURL=lion-select-rich.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-select-rich.test.d.ts","sourceRoot":"","sources":["../../../../components/select-rich/test/lion-select-rich.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lion-select-rich.test.d.ts","sourceRoot":"","sources":["../../../../components/select-rich/test/lion-select-rich.test.js"],"names":[],"mappings":"8BAsBa,OAAO,gDAAgD,EAAE,eAAe;0BACxE,OAAO,0CAA0C,EAAE,WAAW;0BAC9D,OAAO,kCAAkC,EAAE,WAAW;6BACtD,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type LionSwitchButton = import('../src/LionSwitchButton.js').LionSwitchButton;
|
|
2
|
-
export type TemplateResult = import('lit').TemplateResult;
|
|
3
2
|
export type FormControlHost = import('@lion/ui/types/form-core.js').FormControlHost;
|
|
3
|
+
export type TemplateResult = import('lit').TemplateResult;
|
|
4
4
|
//# sourceMappingURL=lion-switch.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lion-switch.test.d.ts","sourceRoot":"","sources":["../../../../components/switch/test/lion-switch.test.js"],"names":[],"mappings":"+
|
|
1
|
+
{"version":3,"file":"lion-switch.test.d.ts","sourceRoot":"","sources":["../../../../components/switch/test/lion-switch.test.js"],"names":[],"mappings":"+BAWa,OAAO,4BAA4B,EAAE,gBAAgB;8BACrD,OAAO,6BAA6B,EAAE,eAAe;6BACrD,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -7,9 +7,9 @@ export { withModalDialogConfig } from "../components/overlays/src/configurations
|
|
|
7
7
|
export { withDropdownConfig } from "../components/overlays/src/configurations/withDropdownConfig.js";
|
|
8
8
|
export { withTooltipConfig } from "../components/overlays/src/configurations/withTooltipConfig.js";
|
|
9
9
|
export { deepContains } from "../components/overlays/src/utils/deep-contains.js";
|
|
10
|
-
export { getDeepActiveElement } from "../components/
|
|
10
|
+
export { getDeepActiveElement } from "../components/core/src/getDeepActiveElement.js";
|
|
11
11
|
export { getFocusableElements } from "../components/overlays/src/utils/get-focusable-elements.js";
|
|
12
12
|
export { overlays } from "../components/overlays/src/singleton.js";
|
|
13
13
|
export { containFocus, rotateFocus } from "../components/overlays/src/utils/contain-focus.js";
|
|
14
|
-
export {
|
|
14
|
+
export { unsetSiblingsInert, setSiblingsInert } from "../components/overlays/src/utils/inert-siblings.js";
|
|
15
15
|
//# sourceMappingURL=overlays.d.ts.map
|