@lion/ui 0.6.0-alpha.4 → 0.6.0-beta.0
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/core/src/SlotMixin.js +5 -0
- package/components/core/src/browserDetection.js +1 -0
- package/components/core/test/SlotMixin.test.js +79 -1
- package/components/core/types/SlotMixinTypes.ts +8 -1
- package/components/input-tel-dropdown/test/LionInputTelDropdown.test.js +14 -6
- package/components/overlays/test/local-positioning.test.js +13 -4
- package/components/textarea/src/LionTextarea.js +2 -2
- package/components/textarea/test/lion-textarea.test.js +6 -17
- package/custom-elements.json +1 -1
- package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
- package/dist-types/components/core/src/browserDetection.d.ts +1 -0
- package/dist-types/components/core/types/SlotMixinTypes.d.ts +8 -1
- package/dist-types/components/core/types/SlotMixinTypes.d.ts.map +1 -1
- package/dist-types/components/overlays/test/local-positioning.test.d.ts.map +1 -1
- package/dist-types/components/textarea/src/LionTextarea.d.ts.map +1 -1
- 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/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/radio-group/overview.md +3 -3
- 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/providence-analytics/LocalConfiguration.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
- 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 +8 -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 +1 -1
- 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/scoped-elements.md +17 -14
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +2 -2
|
@@ -195,6 +195,11 @@ const SlotMixinImplementation = superclass =>
|
|
|
195
195
|
} else if (isRerenderConfig(slotFunctionResult)) {
|
|
196
196
|
// Rerenderable slots are scheduled in the "updated loop"
|
|
197
197
|
this.__slotsThatNeedRerender.add(slotName);
|
|
198
|
+
|
|
199
|
+
// For backw. compat, we allow a first render on connectedCallback
|
|
200
|
+
if (slotFunctionResult.firstRenderOnConnected) {
|
|
201
|
+
this.__rerenderSlot(slotName);
|
|
202
|
+
}
|
|
198
203
|
} else {
|
|
199
204
|
throw new Error(
|
|
200
205
|
`Slot "${slotName}" configured inside "get slots()" (in prototype) of ${this.constructor.name} may return these types: TemplateResult | Node | {template:TemplateResult, afterRender?:function} | undefined.
|
|
@@ -35,6 +35,7 @@ export const browserDetection = {
|
|
|
35
35
|
isChrome: checkChrome(),
|
|
36
36
|
isIOSChrome: checkChrome('ios'),
|
|
37
37
|
isChromium: checkChrome('chromium'),
|
|
38
|
+
isFirefox: navigator.userAgent.toLowerCase().indexOf('firefox') > -1,
|
|
38
39
|
isMac: navigator.appVersion.indexOf('Mac') !== -1,
|
|
39
40
|
isIOS: /iPhone|iPad|iPod/i.test(navigator.userAgent),
|
|
40
41
|
isMacSafari:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sinon from 'sinon';
|
|
2
|
-
import { defineCE, expect, fixture, unsafeStatic, html } from '@open-wc/testing';
|
|
2
|
+
import { defineCE, expect, fixture, fixtureSync, unsafeStatic, html } from '@open-wc/testing';
|
|
3
3
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
|
|
4
4
|
import { SlotMixin } from '@lion/ui/core.js';
|
|
5
5
|
import { LitElement } from 'lit';
|
|
@@ -297,6 +297,83 @@ describe('SlotMixin', () => {
|
|
|
297
297
|
expect(document.activeElement).to.equal(el._focusableNode);
|
|
298
298
|
expect(el._focusableNode.shadowRoot.activeElement).to.equal(el._focusableNode._buttonNode);
|
|
299
299
|
});
|
|
300
|
+
|
|
301
|
+
describe('firstRenderOnConnected (for backwards compatibility)', () => {
|
|
302
|
+
it('does render on connected when firstRenderOnConnected:true', async () => {
|
|
303
|
+
// Start with elem that does not render on connectedCallback
|
|
304
|
+
const tag = defineCE(
|
|
305
|
+
// @ts-expect-error
|
|
306
|
+
class extends SlotMixin(LitElement) {
|
|
307
|
+
static properties = { currentValue: Number };
|
|
308
|
+
|
|
309
|
+
constructor() {
|
|
310
|
+
super();
|
|
311
|
+
this.currentValue = 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
get slots() {
|
|
315
|
+
return {
|
|
316
|
+
...super.slots,
|
|
317
|
+
template: () => ({
|
|
318
|
+
firstRenderOnConnected: true,
|
|
319
|
+
template: html`<span>${this.currentValue}</span> `,
|
|
320
|
+
}),
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
render() {
|
|
325
|
+
return html`<slot name="template"></slot>`;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
get _templateNode() {
|
|
329
|
+
return /** @type HTMLSpanElement */ (
|
|
330
|
+
Array.from(this.children).find(elm => elm.slot === 'template')
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
);
|
|
335
|
+
const el = /** @type {* & SlotHost} */ (fixtureSync(`<${tag}></${tag}>`));
|
|
336
|
+
expect(el._templateNode.slot).to.equal('template');
|
|
337
|
+
expect(el._templateNode.textContent?.trim()).to.equal('0');
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
it('does not render on connected when firstRenderOnConnected:false', async () => {
|
|
341
|
+
// Start with elem that does not render on connectedCallback
|
|
342
|
+
const tag = defineCE(
|
|
343
|
+
// @ts-expect-error
|
|
344
|
+
class extends SlotMixin(LitElement) {
|
|
345
|
+
static properties = { currentValue: Number };
|
|
346
|
+
|
|
347
|
+
constructor() {
|
|
348
|
+
super();
|
|
349
|
+
this.currentValue = 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
get slots() {
|
|
353
|
+
return {
|
|
354
|
+
...super.slots,
|
|
355
|
+
template: () => ({ template: html`<span>${this.currentValue}</span> ` }),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
render() {
|
|
360
|
+
return html`<slot name="template"></slot>`;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
get _templateNode() {
|
|
364
|
+
return /** @type HTMLSpanElement */ (
|
|
365
|
+
Array.from(this.children).find(elm => elm.slot === 'template')
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
);
|
|
370
|
+
const el = /** @type {* & SlotHost} */ (fixtureSync(`<${tag}></${tag}>`));
|
|
371
|
+
expect(el._templateNode).to.be.undefined;
|
|
372
|
+
await el.updateComplete;
|
|
373
|
+
expect(el._templateNode.slot).to.equal('template');
|
|
374
|
+
expect(el._templateNode.textContent?.trim()).to.equal('0');
|
|
375
|
+
});
|
|
376
|
+
});
|
|
300
377
|
});
|
|
301
378
|
|
|
302
379
|
describe('SlotFunctionResult types', () => {
|
|
@@ -434,6 +511,7 @@ describe('SlotMixin', () => {
|
|
|
434
511
|
class ScopedEl extends LitElement {}
|
|
435
512
|
|
|
436
513
|
const tagName = defineCE(
|
|
514
|
+
// @ts-ignore
|
|
437
515
|
class extends ScopedElementsMixin(SlotMixin(LitElement)) {
|
|
438
516
|
static get scopedElements() {
|
|
439
517
|
return {
|
|
@@ -8,9 +8,16 @@ export type SlotRerenderObject = {
|
|
|
8
8
|
template: TemplateResult;
|
|
9
9
|
/**
|
|
10
10
|
* Add logic that will be performed after the render
|
|
11
|
-
* @deprecated
|
|
11
|
+
* @deprecated use regular ReactiveElement/LitElement reactive cycle callbacks instead
|
|
12
12
|
*/
|
|
13
13
|
afterRender?: Function;
|
|
14
|
+
/**
|
|
15
|
+
* For backward compat with traditional light render methods,
|
|
16
|
+
* it might be needed to have slot contents available in `connectedCallback`.
|
|
17
|
+
* Only enable this for existing components that rely on light content availability in connectedCallback.
|
|
18
|
+
* For new components, please align with ReactiveElement/LitElement reactive cycle callbacks.
|
|
19
|
+
*/
|
|
20
|
+
firstRenderOnConnected?: boolean;
|
|
14
21
|
};
|
|
15
22
|
|
|
16
23
|
export type SlotFunctionResult = TemplateResult | Element | SlotRerenderObject | undefined;
|
|
@@ -4,10 +4,10 @@ import { repeat } from 'lit/directives/repeat.js';
|
|
|
4
4
|
import { ref } from 'lit/directives/ref.js';
|
|
5
5
|
|
|
6
6
|
import { LionInputTelDropdown } from '@lion/ui/input-tel-dropdown.js';
|
|
7
|
+
import { LionOption } from '@lion/ui/listbox.js';
|
|
8
|
+
import { LionSelectRich } from '@lion/ui/select-rich.js';
|
|
7
9
|
import { runInputTelDropdownSuite } from '@lion/ui/input-tel-dropdown-test-suites.js';
|
|
8
|
-
|
|
9
|
-
import '@lion/ui/define/lion-option.js';
|
|
10
|
-
import '@lion/ui/define/lion-select-rich.js';
|
|
10
|
+
import { ScopedElementsMixin } from '../../core/src/ScopedElementsMixin.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {import('lit').TemplateResult} TemplateResult
|
|
@@ -16,7 +16,16 @@ import '@lion/ui/define/lion-select-rich.js';
|
|
|
16
16
|
* @typedef {import('../types/index.js').RegionMeta} RegionMeta
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
class WithFormControlInputTelDropdown extends LionInputTelDropdown {
|
|
19
|
+
class WithFormControlInputTelDropdown extends ScopedElementsMixin(LionInputTelDropdown) {
|
|
20
|
+
/**
|
|
21
|
+
* @configure ScopedElementsMixin
|
|
22
|
+
*/
|
|
23
|
+
static scopedElements = {
|
|
24
|
+
...super.scopedElements,
|
|
25
|
+
'lion-select-rich': LionSelectRich,
|
|
26
|
+
'lion-option': LionOption,
|
|
27
|
+
};
|
|
28
|
+
|
|
20
29
|
static templates = {
|
|
21
30
|
...(super.templates || {}),
|
|
22
31
|
/**
|
|
@@ -49,8 +58,7 @@ class WithFormControlInputTelDropdown extends LionInputTelDropdown {
|
|
|
49
58
|
runInputTelSuite({ klass: LionInputTelDropdown });
|
|
50
59
|
runInputTelDropdownSuite();
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
describe.skip('WithFormControlInputTelDropdown', () => {
|
|
61
|
+
describe('WithFormControlInputTelDropdown', () => {
|
|
54
62
|
// @ts-expect-error
|
|
55
63
|
// Runs it for LionSelectRich, which uses .modelValue/@model-value-changed instead of .value/@change
|
|
56
64
|
runInputTelDropdownSuite({ klass: WithFormControlInputTelDropdown });
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { expect, fixture, fixtureSync } from '@open-wc/testing';
|
|
3
3
|
import { html } from 'lit/static-html.js';
|
|
4
4
|
import { OverlayController } from '@lion/ui/overlays.js';
|
|
5
|
+
import { browserDetection } from '@lion/ui/core.js';
|
|
5
6
|
import { normalizeTransformStyle } from '../test-helpers/normalizeTransformStyle.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -65,8 +66,7 @@ describe('Local Positioning', () => {
|
|
|
65
66
|
expect(ctrl._popper.state.modifiersData).to.exist;
|
|
66
67
|
});
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
it.skip('positions correctly', async () => {
|
|
69
|
+
it('positions correctly', async () => {
|
|
70
70
|
// smoke test for integration of popper
|
|
71
71
|
const ctrl = new OverlayController({
|
|
72
72
|
...withLocalTestConfig(),
|
|
@@ -86,6 +86,11 @@ describe('Local Positioning', () => {
|
|
|
86
86
|
`);
|
|
87
87
|
await ctrl.show();
|
|
88
88
|
|
|
89
|
+
// TODO: test fails on Firefox, but looks fine in browser => try again in a later version and investigate when persists (or move to anchor positioning when available in all browsers)
|
|
90
|
+
if (browserDetection.isFirefox) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
expect(normalizeTransformStyle(ctrl.contentWrapperNode.style.transform)).to.equal(
|
|
90
95
|
'translate(70px, -508px)',
|
|
91
96
|
);
|
|
@@ -207,8 +212,7 @@ describe('Local Positioning', () => {
|
|
|
207
212
|
expect(ctrl._popper.state.modifiersData.offset.auto).to.eql({ x: 0, y: 16 });
|
|
208
213
|
});
|
|
209
214
|
|
|
210
|
-
|
|
211
|
-
it.skip('positions the Popper element correctly on show', async () => {
|
|
215
|
+
it('positions the Popper element correctly on show', async () => {
|
|
212
216
|
const ctrl = new OverlayController({
|
|
213
217
|
...withLocalTestConfig(),
|
|
214
218
|
contentNode: createContentSync({ width: 80, height: 20 }),
|
|
@@ -225,6 +229,11 @@ describe('Local Positioning', () => {
|
|
|
225
229
|
|
|
226
230
|
await ctrl.show();
|
|
227
231
|
|
|
232
|
+
// TODO: test fails on Firefox, but looks fine in browser => try again in a later version and investigate when persists (or move to anchor positioning when available in all browsers)
|
|
233
|
+
if (browserDetection.isFirefox) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
|
|
228
237
|
// N.B. margin between invoker and content = 8px
|
|
229
238
|
expect(normalizeTransformStyle(ctrl.contentWrapperNode.style.transform)).to.equal(
|
|
230
239
|
'translate(110px, -308px)',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable max-classes-per-file */
|
|
2
|
-
|
|
3
|
-
import autosize from 'autosize/src/autosize.js';
|
|
2
|
+
import autosize from 'autosize';
|
|
4
3
|
import { LionField, NativeTextFieldMixin } from '@lion/ui/form-core.js';
|
|
5
4
|
import { css } from 'lit';
|
|
6
5
|
|
|
@@ -155,6 +154,7 @@ export class LionTextarea extends NativeTextFieldMixin(LionFieldWithTextArea) {
|
|
|
155
154
|
...super.styles,
|
|
156
155
|
css`
|
|
157
156
|
.input-group__container > .input-group__input ::slotted(.form-control) {
|
|
157
|
+
box-sizing: content-box;
|
|
158
158
|
overflow-x: hidden; /* for FF adds height to the TextArea to reserve place for scroll-bars */
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -12,11 +12,6 @@ import '@lion/ui/define/lion-textarea.js';
|
|
|
12
12
|
|
|
13
13
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionTextarea>} */ (_fixture);
|
|
14
14
|
|
|
15
|
-
const isFirefox = (() => {
|
|
16
|
-
const ua = navigator.userAgent.toLowerCase();
|
|
17
|
-
return ua.indexOf('firefox') !== -1 && ua.indexOf('safari') === -1 && ua.indexOf('chrome') === -1;
|
|
18
|
-
})();
|
|
19
|
-
|
|
20
15
|
function hasBrowserResizeSupport() {
|
|
21
16
|
const textarea = document.createElement('textarea');
|
|
22
17
|
return textarea.style.resize !== undefined;
|
|
@@ -98,10 +93,9 @@ describe('<lion-textarea>', () => {
|
|
|
98
93
|
expect(hightWith1Line < hightWith5TextLines).to.equal(true);
|
|
99
94
|
});
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
it.skip(`starts growing when content is bigger than "rows"
|
|
96
|
+
it(`starts growing when content is bigger than "rows"
|
|
103
97
|
'and stops growing after property "maxRows" is reached`, async () => {
|
|
104
|
-
const el = await fixture(`<lion-textarea></lion-textarea>`);
|
|
98
|
+
const el = await fixture(html`<lion-textarea></lion-textarea>`);
|
|
105
99
|
return [1, 2, 3, 4, 5, 6, 7, 8].reduce(async (heightPromise, i) => {
|
|
106
100
|
const oldHeight = await heightPromise;
|
|
107
101
|
el.modelValue += '\n';
|
|
@@ -120,11 +114,9 @@ describe('<lion-textarea>', () => {
|
|
|
120
114
|
}, Promise.resolve(0));
|
|
121
115
|
});
|
|
122
116
|
|
|
123
|
-
// TODO: make test simpler => no reduce please
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const el = await fixture(html`<lion-textarea .modelValue="${'1\n2\n3'}"></lion-textarea>`);
|
|
127
|
-
|
|
117
|
+
// TODO: make test simpler => no reduce please
|
|
118
|
+
it('stops growing after property "maxRows" is reached when there was an initial value', async () => {
|
|
119
|
+
const el = await fixture(html` <lion-textarea .modelValue="${'1\n2\n3'}"></lion-textarea> `);
|
|
128
120
|
return [4, 5, 6, 7, 8].reduce(async (heightPromise, i) => {
|
|
129
121
|
const oldHeight = await heightPromise;
|
|
130
122
|
el.modelValue += `\n`;
|
|
@@ -133,10 +125,7 @@ describe('<lion-textarea>', () => {
|
|
|
133
125
|
|
|
134
126
|
if (i > el.maxRows) {
|
|
135
127
|
// stop growing
|
|
136
|
-
|
|
137
|
-
if (!isFirefox) {
|
|
138
|
-
expect(newHeight).to.equal(oldHeight);
|
|
139
|
-
}
|
|
128
|
+
expect(newHeight).to.equal(oldHeight);
|
|
140
129
|
} else if (i > el.rows) {
|
|
141
130
|
// growing normally
|
|
142
131
|
expect(newHeight >= oldHeight).to.equal(true);
|
package/custom-elements.json
CHANGED
|
@@ -21892,7 +21892,7 @@
|
|
|
21892
21892
|
"type": {
|
|
21893
21893
|
"text": "object"
|
|
21894
21894
|
},
|
|
21895
|
-
"default": "{\n isIE11: /Trident/.test(window.navigator.userAgent),\n isChrome: checkChrome(),\n isIOSChrome: checkChrome('ios'),\n isChromium: checkChrome('chromium'),\n isMac: navigator.appVersion.indexOf('Mac') !== -1,\n isIOS: /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isMacSafari:\n navigator.vendor &&\n navigator.vendor.indexOf('Apple') > -1 &&\n navigator.userAgent &&\n navigator.userAgent.indexOf('CriOS') === -1 &&\n navigator.userAgent.indexOf('FxiOS') === -1 &&\n navigator.appVersion.indexOf('Mac') !== -1,\n}"
|
|
21895
|
+
"default": "{\n isIE11: /Trident/.test(window.navigator.userAgent),\n isChrome: checkChrome(),\n isIOSChrome: checkChrome('ios'),\n isChromium: checkChrome('chromium'),\n isFirefox: navigator.userAgent.toLowerCase().indexOf('firefox') > -1,\n isMac: navigator.appVersion.indexOf('Mac') !== -1,\n isIOS: /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isMacSafari:\n navigator.vendor &&\n navigator.vendor.indexOf('Apple') > -1 &&\n navigator.userAgent &&\n navigator.userAgent.indexOf('CriOS') === -1 &&\n navigator.userAgent.indexOf('FxiOS') === -1 &&\n navigator.appVersion.indexOf('Mac') !== -1,\n}"
|
|
21896
21896
|
}
|
|
21897
21897
|
],
|
|
21898
21898
|
"exports": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlotMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/SlotMixin.js"],"names":[],"mappings":"wBAMa,OAAO,4BAA4B,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"SlotMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/SlotMixin.js"],"names":[],"mappings":"wBAMa,OAAO,4BAA4B,EAAE,SAAS;AAmP3D,4nBAA8D;uBAlPjD,OAAO,4BAA4B,EAAE,QAAQ;iCAC7C,OAAO,4BAA4B,EAAE,kBAAkB;iCACvD,OAAO,4BAA4B,EAAE,kBAAkB;yBACvD,OAAO,KAAK,EAAE,UAAU"}
|
|
@@ -3,6 +3,7 @@ export namespace browserDetection {
|
|
|
3
3
|
const isChrome: boolean | RegExpMatchArray | null | undefined;
|
|
4
4
|
const isIOSChrome: boolean | RegExpMatchArray | null | undefined;
|
|
5
5
|
const isChromium: boolean | RegExpMatchArray | null | undefined;
|
|
6
|
+
const isFirefox: boolean;
|
|
6
7
|
const isMac: boolean;
|
|
7
8
|
const isIOS: boolean;
|
|
8
9
|
const isMacSafari: boolean | "";
|
|
@@ -7,9 +7,16 @@ export declare type SlotRerenderObject = {
|
|
|
7
7
|
template: TemplateResult;
|
|
8
8
|
/**
|
|
9
9
|
* Add logic that will be performed after the render
|
|
10
|
-
* @deprecated
|
|
10
|
+
* @deprecated use regular ReactiveElement/LitElement reactive cycle callbacks instead
|
|
11
11
|
*/
|
|
12
12
|
afterRender?: Function;
|
|
13
|
+
/**
|
|
14
|
+
* For backward compat with traditional light render methods,
|
|
15
|
+
* it might be needed to have slot contents available in `connectedCallback`.
|
|
16
|
+
* Only enable this for existing components that rely on light content availability in connectedCallback.
|
|
17
|
+
* For new components, please align with ReactiveElement/LitElement reactive cycle callbacks.
|
|
18
|
+
*/
|
|
19
|
+
firstRenderOnConnected?: boolean;
|
|
13
20
|
};
|
|
14
21
|
export declare type SlotFunctionResult = TemplateResult | Element | SlotRerenderObject | undefined;
|
|
15
22
|
declare function slotFunction(): SlotFunctionResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlotMixinTypes.d.ts","sourceRoot":"","sources":["../../../../components/core/types/SlotMixinTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjD;;GAEG;AACH,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"SlotMixinTypes.d.ts","sourceRoot":"","sources":["../../../../components/core/types/SlotMixinTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjD;;GAEG;AACH,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,cAAc,GAAG,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAE3F,OAAO,UAAU,YAAY,IAAI,kBAAkB,CAAC;AAEpD,oBAAY,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,YAAY,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B;;OAEG;IACH,IAAW,KAAK,IAAI,QAAQ,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAEnC;;;;;;OAMG;IACH,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAEnD,iBAAiB,IAAI,IAAI;CAC1B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,UAAU,uBAAuB,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EACxE,UAAU,EAAE,CAAC,GACZ,CAAC,GACF,WAAW,CAAC,QAAQ,CAAC,GACrB,IAAI,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC,GAC5C,IAAI,CAAC,OAAO,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC,CAAC;AAEnD,oBAAY,SAAS,GAAG,OAAO,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-positioning.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/local-positioning.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-positioning.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/local-positioning.test.js"],"names":[],"mappings":"4BAQa,OAAO,2BAA2B,EAAE,aAAa;gCACjD,OAAO,2BAA2B,EAAE,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionTextarea.d.ts","sourceRoot":"","sources":["../../../../components/textarea/src/LionTextarea.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LionTextarea.d.ts","sourceRoot":"","sources":["../../../../components/textarea/src/LionTextarea.js"],"names":[],"mappings":";AAiBA;;;;GAIG;AACH;IACE,kBAAkB;IAClB,6BAoBC;IA2GD,wFAeC;IAxHD;;MAcC;IAIC,aAAa;IACb,gBAAgB;IAEhB,oBAAqB;IAOrB,yDAAmF;IAIrF,+DAA+D;IAC/D,2BADY,OAAO,KAAK,EAAE,cAAc,QA8CvC;IAOD;;OAEG;IACH,6BAeC;IAmBD;;OAEG;IACH,sDAKC;IAED,uBAEC;IAED,eAAe;IACf,+BAUC;IAPG,8BAGE;IAMN,eAAe;IACf,2CAQC;IAED,eAAe;IACf,0BAGC;CACF;AA9MD;IACE;;;OAGG;IACH,gDAIC;CACF"}
|