smoothly 0.1.77 → 0.1.81
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/dist/cjs/{App-eff713bd.js → App-ffc56e72.js} +1 -1
- package/dist/cjs/{Notice-e43922ea.js → Notice-9120d311.js} +1 -1
- package/dist/cjs/{css-shim-e3f30f9a.js → css-shim-88cc6900.js} +1 -1
- package/dist/cjs/{dom-c8b6d1a7.js → dom-95afd968.js} +1 -1
- package/dist/cjs/{generate-7f7f7d99.js → generate-14aca5d2.js} +1 -1
- package/dist/cjs/{index-b7e6a72c.js → index-138c41c2.js} +342 -147
- package/dist/cjs/{index-5537d93a.js → index-41a36ce2.js} +154 -88
- package/dist/cjs/{index-7c9d0102.js → index-42db74b3.js} +2 -2
- package/dist/cjs/{index-c973259c.js → index-de5d1ee1.js} +10 -7
- package/dist/cjs/{index-e37f73fe.js → index-fc82954f.js} +311 -12
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{shadow-css-6cbb23a9.js → shadow-css-71d0f821.js} +12 -6
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{smoothly-accordion_46.cjs.entry.js → smoothly-accordion_47.cjs.entry.js} +7965 -2493
- package/dist/cjs/smoothly-app-demo.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-app.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-calendar.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +5707 -504
- package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-dialog.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-display.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-frame.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-icon-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-icon.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-input-date.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-input-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-input-month.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-input.cjs.entry.js +19 -12
- package/dist/cjs/smoothly-item.cjs.entry.js +6 -2
- package/dist/cjs/smoothly-menu-options.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-notification.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-notifier.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-option.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-picker.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-popup.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-quiet.cjs.entry.js +19 -0
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-radio.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-reorder.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-room.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-select-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-select.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-selector.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-spinner.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-submit.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-tab-switch.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-tab.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-header.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table-row.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-table.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-trigger.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-tuple.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-urlencoded.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +10 -7
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/display-demo/index.js +4 -1
- package/dist/collection/components/input/index.js +16 -9
- package/dist/collection/components/item/index.js +4 -0
- package/dist/collection/components/quiet/index.js +34 -0
- package/dist/collection/components/quiet/style.css +3 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +8186 -2655
- package/dist/{smoothly/App-bf78807d.js → esm/App-c5f6000f.js} +1 -1
- package/dist/esm/{Notice-966edc54.js → Notice-d87d90f7.js} +1 -1
- package/dist/esm/{css-shim-003e9264.js → css-shim-c64026cd.js} +1 -1
- package/dist/esm/{dom-1b195079.js → dom-a712b575.js} +1 -1
- package/dist/esm/{generate-7090dc14.js → generate-be25a8d1.js} +1 -1
- package/dist/esm/{index-0dd5f791.js → index-02a70ac1.js} +342 -147
- package/dist/{smoothly/index-01fedb5b.js → esm/index-36a04e8c.js} +2 -2
- package/dist/esm/{index-531e2f06.js → index-68492ed9.js} +10 -7
- package/dist/{smoothly/index-13251390.js → esm/index-a28d88cf.js} +311 -12
- package/dist/esm/{index-9d550804.js → index-dcb2b612.js} +154 -88
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{shadow-css-c1ad5fdc.js → shadow-css-1e16431b.js} +12 -6
- package/dist/esm/smoothly-accordion-item.entry.js +2 -2
- package/dist/esm/smoothly-accordion.entry.js +2 -2
- package/dist/esm/{smoothly-accordion_46.entry.js → smoothly-accordion_47.entry.js} +7965 -2494
- package/dist/esm/smoothly-app-demo.entry.js +3 -3
- package/dist/esm/smoothly-app.entry.js +2 -2
- package/dist/esm/smoothly-calendar.entry.js +4 -4
- package/dist/esm/smoothly-checkbox.entry.js +5703 -500
- package/dist/esm/smoothly-dialog-demo.entry.js +2 -2
- package/dist/esm/smoothly-dialog.entry.js +3 -3
- package/dist/esm/smoothly-display-amount.entry.js +3 -3
- package/dist/esm/smoothly-display-date-time.entry.js +2 -2
- package/dist/esm/smoothly-display-demo.entry.js +4 -4
- package/dist/esm/smoothly-display.entry.js +3 -3
- package/dist/esm/smoothly-frame.entry.js +3 -3
- package/dist/esm/smoothly-icon-demo.entry.js +2 -2
- package/dist/esm/smoothly-icon.entry.js +2 -2
- package/dist/esm/smoothly-input-date-range.entry.js +3 -3
- package/dist/esm/smoothly-input-date.entry.js +3 -3
- package/dist/esm/smoothly-input-demo.entry.js +2 -2
- package/dist/esm/smoothly-input-month.entry.js +4 -4
- package/dist/esm/smoothly-input.entry.js +19 -12
- package/dist/esm/smoothly-item.entry.js +6 -2
- package/dist/esm/smoothly-menu-options.entry.js +2 -2
- package/dist/esm/smoothly-notification.entry.js +2 -2
- package/dist/esm/smoothly-notifier.entry.js +2 -2
- package/dist/esm/smoothly-option.entry.js +2 -2
- package/dist/esm/smoothly-picker.entry.js +2 -2
- package/dist/esm/smoothly-popup.entry.js +2 -2
- package/dist/esm/smoothly-quiet.entry.js +15 -0
- package/dist/esm/smoothly-radio-group.entry.js +2 -2
- package/dist/esm/smoothly-radio.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-room.entry.js +2 -2
- package/dist/esm/smoothly-select-demo.entry.js +2 -2
- package/dist/esm/smoothly-select.entry.js +2 -2
- package/dist/esm/smoothly-selector.entry.js +2 -2
- package/dist/esm/smoothly-spinner.entry.js +2 -2
- package/dist/esm/smoothly-submit.entry.js +2 -2
- package/dist/esm/smoothly-tab-switch.entry.js +2 -2
- package/dist/esm/smoothly-tab.entry.js +2 -2
- package/dist/esm/smoothly-table-cell.entry.js +2 -2
- package/dist/esm/smoothly-table-demo.entry.js +2 -2
- package/dist/esm/smoothly-table-expandable-cell.entry.js +2 -2
- package/dist/esm/smoothly-table-expandable-row.entry.js +2 -2
- package/dist/esm/smoothly-table-header.entry.js +2 -2
- package/dist/esm/smoothly-table-row.entry.js +2 -2
- package/dist/esm/smoothly-table.entry.js +2 -2
- package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
- package/dist/esm/smoothly-trigger-source.entry.js +3 -3
- package/dist/esm/smoothly-trigger.entry.js +2 -2
- package/dist/esm/smoothly-tuple.entry.js +2 -2
- package/dist/esm/smoothly-urlencoded.entry.js +2 -2
- package/dist/esm/smoothly.js +10 -7
- package/dist/{esm/App-bf78807d.js → smoothly/App-c5f6000f.js} +1 -1
- package/dist/smoothly/{css-shim-003e9264.js → css-shim-c64026cd.js} +1 -1
- package/dist/smoothly/{dom-1b195079.js → dom-a712b575.js} +1 -1
- package/dist/smoothly/{generate-7090dc14.js → generate-be25a8d1.js} +1 -1
- package/dist/smoothly/{index-0dd5f791.js → index-02a70ac1.js} +342 -147
- package/dist/{esm/index-01fedb5b.js → smoothly/index-36a04e8c.js} +2 -2
- package/dist/smoothly/{index-531e2f06.js → index-68492ed9.js} +10 -7
- package/dist/{esm/index-13251390.js → smoothly/index-a28d88cf.js} +311 -12
- package/dist/smoothly/index.esm.js +3 -3
- package/dist/smoothly/{p-0906d4b2.js → p-074a0448.js} +1 -1
- package/dist/smoothly/p-09d633f8.entry.js +1 -0
- package/dist/smoothly/p-0c1e9588.entry.js +1 -0
- package/dist/smoothly/p-1a81597b.entry.js +1 -0
- package/dist/smoothly/{p-7f5dd95f.js → p-1e768876.js} +1 -1
- package/dist/smoothly/p-9fa3ab06.entry.js +1 -0
- package/dist/smoothly/p-c9d01e9b.entry.js +1 -0
- package/dist/smoothly/{shadow-css-c1ad5fdc.js → shadow-css-1e16431b.js} +12 -6
- package/dist/smoothly/smoothly-accordion-item.entry.js +2 -2
- package/dist/smoothly/smoothly-accordion.entry.js +2 -2
- package/dist/smoothly/smoothly-app-demo.entry.js +3 -3
- package/dist/smoothly/smoothly-app.entry.js +2 -2
- package/dist/smoothly/smoothly-calendar.entry.js +4 -4
- package/dist/smoothly/smoothly-checkbox.entry.js +5703 -500
- package/dist/smoothly/smoothly-dialog-demo.entry.js +2 -2
- package/dist/smoothly/smoothly-dialog.entry.js +3 -3
- package/dist/smoothly/smoothly-display-amount.entry.js +3 -3
- package/dist/smoothly/smoothly-display-date-time.entry.js +2 -2
- package/dist/smoothly/smoothly-display-demo.entry.js +4 -4
- package/dist/smoothly/smoothly-display.entry.js +3 -3
- package/dist/smoothly/smoothly-frame.entry.js +3 -3
- package/dist/smoothly/smoothly-icon-demo.entry.js +2 -2
- package/dist/smoothly/smoothly-icon.entry.js +2 -2
- package/dist/smoothly/smoothly-input-date-range.entry.js +3 -3
- package/dist/smoothly/smoothly-input-date.entry.js +3 -3
- package/dist/smoothly/smoothly-input-demo.entry.js +2 -2
- package/dist/smoothly/smoothly-input-month.entry.js +4 -4
- package/dist/smoothly/smoothly-input.entry.js +19 -12
- package/dist/smoothly/smoothly-item.entry.js +6 -2
- package/dist/smoothly/smoothly-menu-options.entry.js +2 -2
- package/dist/smoothly/smoothly-notification.entry.js +2 -2
- package/dist/smoothly/smoothly-notifier.entry.js +2 -2
- package/dist/smoothly/smoothly-option.entry.js +2 -2
- package/dist/smoothly/smoothly-picker.entry.js +2 -2
- package/dist/smoothly/smoothly-popup.entry.js +2 -2
- package/dist/smoothly/smoothly-quiet.entry.js +15 -0
- package/dist/smoothly/smoothly-radio-group.entry.js +2 -2
- package/dist/smoothly/smoothly-radio.entry.js +2 -2
- package/dist/smoothly/smoothly-reorder.entry.js +2 -2
- package/dist/smoothly/smoothly-room.entry.js +2 -2
- package/dist/smoothly/smoothly-select-demo.entry.js +2 -2
- package/dist/smoothly/smoothly-select.entry.js +2 -2
- package/dist/smoothly/smoothly-selector.entry.js +2 -2
- package/dist/smoothly/smoothly-spinner.entry.js +2 -2
- package/dist/smoothly/smoothly-submit.entry.js +2 -2
- package/dist/smoothly/smoothly-tab-switch.entry.js +2 -2
- package/dist/smoothly/smoothly-tab.entry.js +2 -2
- package/dist/smoothly/smoothly-table-cell.entry.js +2 -2
- package/dist/smoothly/smoothly-table-demo.entry.js +2 -2
- package/dist/smoothly/smoothly-table-expandable-cell.entry.js +2 -2
- package/dist/smoothly/smoothly-table-expandable-row.entry.js +2 -2
- package/dist/smoothly/smoothly-table-header.entry.js +2 -2
- package/dist/smoothly/smoothly-table-row.entry.js +2 -2
- package/dist/smoothly/smoothly-table.entry.js +2 -2
- package/dist/smoothly/smoothly-trigger-sink.entry.js +3 -3
- package/dist/smoothly/smoothly-trigger-source.entry.js +3 -3
- package/dist/smoothly/smoothly-trigger.entry.js +2 -2
- package/dist/smoothly/smoothly-tuple.entry.js +2 -2
- package/dist/smoothly/smoothly-urlencoded.entry.js +2 -2
- package/dist/smoothly/smoothly.esm.js +10 -7
- package/dist/types/components/item/index.d.ts +1 -0
- package/dist/types/components/quiet/index.d.ts +4 -0
- package/dist/types/components.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +183 -182
- package/loader/index.d.ts +0 -1
- package/package.json +89 -90
- package/dist/smoothly/p-22bce579.entry.js +0 -1
- package/dist/smoothly/p-41528fcb.entry.js +0 -1
- package/dist/smoothly/p-89fe12b0.entry.js +0 -1
- package/dist/smoothly/p-e3d91e7a.entry.js +0 -1
- package/dist/smoothly/p-e79800d9.entry.js +0 -1
|
@@ -14,8 +14,8 @@ const doc = win.document || { head: {} };
|
|
|
14
14
|
const plt = {
|
|
15
15
|
$flags$: 0,
|
|
16
16
|
$resourcesUrl$: '',
|
|
17
|
-
jmp: h => h(),
|
|
18
|
-
raf: h => requestAnimationFrame(h),
|
|
17
|
+
jmp: (h) => h(),
|
|
18
|
+
raf: (h) => requestAnimationFrame(h),
|
|
19
19
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
20
20
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
21
21
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -24,7 +24,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
24
24
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
25
25
|
try {
|
|
26
26
|
new CSSStyleSheet();
|
|
27
|
-
return typeof
|
|
27
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
28
28
|
}
|
|
29
29
|
catch (e) { }
|
|
30
30
|
return false;
|
|
@@ -218,7 +218,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
218
218
|
typeof classData !== 'object'
|
|
219
219
|
? classData
|
|
220
220
|
: Object.keys(classData)
|
|
221
|
-
.filter(k => classData[k])
|
|
221
|
+
.filter((k) => classData[k])
|
|
222
222
|
.join(' ');
|
|
223
223
|
}
|
|
224
224
|
}
|
|
@@ -307,8 +307,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
307
307
|
const classList = elm.classList;
|
|
308
308
|
const oldClasses = parseClassList(oldValue);
|
|
309
309
|
const newClasses = parseClassList(newValue);
|
|
310
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
311
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
310
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
311
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
312
312
|
}
|
|
313
313
|
else if (memberName === 'style') {
|
|
314
314
|
// update style attribute, css properties and values
|
|
@@ -343,7 +343,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
343
343
|
newValue(elm);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
else if ((!isProp ) &&
|
|
346
|
+
else if ((!isProp ) &&
|
|
347
|
+
memberName[0] === 'o' &&
|
|
348
|
+
memberName[1] === 'n') {
|
|
347
349
|
// Event Handlers
|
|
348
350
|
// so if the member name starts with "on" and the 3rd characters is
|
|
349
351
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -390,7 +392,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
390
392
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
391
393
|
if (memberName === 'list') {
|
|
392
394
|
isProp = false;
|
|
393
|
-
// tslint:disable-next-line: triple-equals
|
|
394
395
|
}
|
|
395
396
|
else if (oldValue == null || elm[memberName] != n) {
|
|
396
397
|
elm[memberName] = n;
|
|
@@ -444,7 +445,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
444
445
|
// if the element passed in is a shadow root, which is a document fragment
|
|
445
446
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
446
447
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
447
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
448
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
449
|
+
? newVnode.$elm$.host
|
|
450
|
+
: newVnode.$elm$;
|
|
448
451
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
449
452
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
450
453
|
{
|
|
@@ -488,14 +491,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
488
491
|
}
|
|
489
492
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
490
493
|
// create a slot reference node
|
|
491
|
-
elm = newVNode.$elm$ =
|
|
494
|
+
elm = newVNode.$elm$ =
|
|
495
|
+
doc.createTextNode('');
|
|
492
496
|
}
|
|
493
497
|
else {
|
|
494
498
|
if (!isSvgMode) {
|
|
495
499
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
496
500
|
}
|
|
497
501
|
// create element
|
|
498
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
502
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
503
|
+
? 'slot-fb'
|
|
504
|
+
: newVNode.$tag$)
|
|
499
505
|
);
|
|
500
506
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
501
507
|
isSvgMode = false;
|
|
@@ -862,7 +868,7 @@ const relocateSlotContent = (elm) => {
|
|
|
862
868
|
// that is suppose to always represent the original content location
|
|
863
869
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
864
870
|
// it's possible we've already decided to relocate this node
|
|
865
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
871
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
866
872
|
// made some changes to slots
|
|
867
873
|
// let's make sure we also double check
|
|
868
874
|
// fallbacks are correctly hidden or shown
|
|
@@ -881,9 +887,9 @@ const relocateSlotContent = (elm) => {
|
|
|
881
887
|
});
|
|
882
888
|
}
|
|
883
889
|
if (node['s-sr']) {
|
|
884
|
-
relocateNodes.map(relocateNode => {
|
|
890
|
+
relocateNodes.map((relocateNode) => {
|
|
885
891
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
886
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
892
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
887
893
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
888
894
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
889
895
|
}
|
|
@@ -891,7 +897,7 @@ const relocateSlotContent = (elm) => {
|
|
|
891
897
|
});
|
|
892
898
|
}
|
|
893
899
|
}
|
|
894
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
900
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
895
901
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
896
902
|
// if we never find a home for this element then we'll need to hide it
|
|
897
903
|
relocateNodes.push({
|
|
@@ -971,7 +977,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
971
977
|
if (!nodeToRelocate['s-ol']) {
|
|
972
978
|
// add a reference node marking this node's original location
|
|
973
979
|
// keep a reference to this node for later lookups
|
|
974
|
-
orgLocationNode =
|
|
980
|
+
orgLocationNode =
|
|
981
|
+
doc.createTextNode('');
|
|
975
982
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
976
983
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
977
984
|
}
|
|
@@ -995,7 +1002,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
995
1002
|
}
|
|
996
1003
|
}
|
|
997
1004
|
}
|
|
998
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1005
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1006
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
999
1007
|
// we've checked that it's worth while to relocate
|
|
1000
1008
|
// since that the node to relocate
|
|
1001
1009
|
// has a different next sibling or parent relocated
|
|
@@ -1041,6 +1049,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1041
1049
|
},
|
|
1042
1050
|
};
|
|
1043
1051
|
};
|
|
1052
|
+
/**
|
|
1053
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1054
|
+
* @param elm the target of the Event
|
|
1055
|
+
* @param name the name to give the custom Event
|
|
1056
|
+
* @param opts options for configuring a custom Event
|
|
1057
|
+
* @returns the custom Event
|
|
1058
|
+
*/
|
|
1044
1059
|
const emitEvent = (elm, name, opts) => {
|
|
1045
1060
|
const ev = plt.ce(name, opts);
|
|
1046
1061
|
elm.dispatchEvent(ev);
|
|
@@ -1048,7 +1063,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1048
1063
|
};
|
|
1049
1064
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1050
1065
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1051
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1066
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1052
1067
|
}
|
|
1053
1068
|
};
|
|
1054
1069
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1102,7 +1117,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1102
1117
|
// ok, so turns out there are some child host elements
|
|
1103
1118
|
// waiting on this parent element to load
|
|
1104
1119
|
// let's fire off all update callbacks waiting
|
|
1105
|
-
rc.map(cb => cb());
|
|
1120
|
+
rc.map((cb) => cb());
|
|
1106
1121
|
elm['s-rc'] = undefined;
|
|
1107
1122
|
}
|
|
1108
1123
|
endRender();
|
|
@@ -1200,7 +1215,8 @@ const forceUpdate = (ref) => {
|
|
|
1200
1215
|
{
|
|
1201
1216
|
const hostRef = getHostRef(ref);
|
|
1202
1217
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1203
|
-
if (isConnected &&
|
|
1218
|
+
if (isConnected &&
|
|
1219
|
+
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1204
1220
|
scheduleUpdate(hostRef, false);
|
|
1205
1221
|
}
|
|
1206
1222
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1229,7 +1245,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1229
1245
|
const then = (promise, thenFn) => {
|
|
1230
1246
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1231
1247
|
};
|
|
1232
|
-
const addHydratedFlag = (elm) =>
|
|
1248
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1249
|
+
;
|
|
1233
1250
|
const parsePropertyValue = (propValue, propType) => {
|
|
1234
1251
|
// ensure this value is of the correct prop type
|
|
1235
1252
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1273,7 +1290,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1273
1290
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1274
1291
|
if (watchMethods) {
|
|
1275
1292
|
// this instance is watching for when this property changed
|
|
1276
|
-
watchMethods.map(watchMethodName => {
|
|
1293
|
+
watchMethods.map((watchMethodName) => {
|
|
1277
1294
|
try {
|
|
1278
1295
|
// fire off each of the watch methods that are watching this property
|
|
1279
1296
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1303,7 +1320,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1303
1320
|
const members = Object.entries(cmpMeta.$members$);
|
|
1304
1321
|
const prototype = Cstr.prototype;
|
|
1305
1322
|
members.map(([memberName, [memberFlags]]) => {
|
|
1306
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1323
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1324
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1307
1325
|
// proxyComponent - prop
|
|
1308
1326
|
Object.defineProperty(prototype, memberName, {
|
|
1309
1327
|
get() {
|
|
@@ -1318,7 +1336,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1318
1336
|
enumerable: true,
|
|
1319
1337
|
});
|
|
1320
1338
|
}
|
|
1321
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1339
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1340
|
+
memberFlags & 64 /* Method */) {
|
|
1322
1341
|
// proxyComponent - method
|
|
1323
1342
|
Object.defineProperty(prototype, memberName, {
|
|
1324
1343
|
value(...args) {
|
|
@@ -1333,6 +1352,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1333
1352
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1334
1353
|
plt.jmp(() => {
|
|
1335
1354
|
const propName = attrNameToPropName.get(attrName);
|
|
1355
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1356
|
+
// in the case where an attribute was set inline.
|
|
1357
|
+
// ```html
|
|
1358
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1359
|
+
// ```
|
|
1360
|
+
//
|
|
1361
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1362
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1363
|
+
//
|
|
1364
|
+
// ```html
|
|
1365
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1366
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1367
|
+
// <script>
|
|
1368
|
+
// // grab non-upgraded component
|
|
1369
|
+
// el = document.querySelector("#test");
|
|
1370
|
+
// el.someAttribute = "another-value";
|
|
1371
|
+
// // upgrade component
|
|
1372
|
+
// customElements.define('my-component', MyComponent);
|
|
1373
|
+
// </script>
|
|
1374
|
+
// ```
|
|
1375
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1376
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1377
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1378
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1379
|
+
//
|
|
1380
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1381
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1382
|
+
//
|
|
1383
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1384
|
+
//
|
|
1385
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1386
|
+
// properties here given that this goes against best practices outlined here
|
|
1387
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1388
|
+
if (this.hasOwnProperty(propName)) {
|
|
1389
|
+
newValue = this[propName];
|
|
1390
|
+
delete this[propName];
|
|
1391
|
+
}
|
|
1392
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1393
|
+
typeof this[propName] === 'number' &&
|
|
1394
|
+
this[propName] == newValue) {
|
|
1395
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1396
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1397
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1398
|
+
return;
|
|
1399
|
+
}
|
|
1336
1400
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1337
1401
|
});
|
|
1338
1402
|
};
|
|
@@ -1369,7 +1433,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1369
1433
|
endLoad();
|
|
1370
1434
|
}
|
|
1371
1435
|
if (!Cstr.isProxied) {
|
|
1372
|
-
// we'
|
|
1436
|
+
// we've never proxied this Constructor before
|
|
1373
1437
|
// let's add the getters/setters to its prototype before
|
|
1374
1438
|
// the first time we create an instance of the implementation
|
|
1375
1439
|
{
|
|
@@ -1418,7 +1482,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1418
1482
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1419
1483
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1420
1484
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1421
|
-
// this is the
|
|
1485
|
+
// this is the initial load and this component it has an ancestor component
|
|
1422
1486
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1423
1487
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1424
1488
|
// this will get fired off when the ancestor component
|
|
@@ -1503,7 +1567,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1503
1567
|
const instance = hostRef.$lazyInstance$ ;
|
|
1504
1568
|
{
|
|
1505
1569
|
if (hostRef.$rmListeners$) {
|
|
1506
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1570
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1507
1571
|
hostRef.$rmListeners$ = undefined;
|
|
1508
1572
|
}
|
|
1509
1573
|
}
|
|
@@ -1525,71 +1589,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1525
1589
|
let isBootstrapping = true;
|
|
1526
1590
|
Object.assign(plt, options);
|
|
1527
1591
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1528
|
-
lazyBundles.map(lazyBundle =>
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1592
|
+
lazyBundles.map((lazyBundle) => {
|
|
1593
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1594
|
+
const cmpMeta = {
|
|
1595
|
+
$flags$: compactMeta[0],
|
|
1596
|
+
$tagName$: compactMeta[1],
|
|
1597
|
+
$members$: compactMeta[2],
|
|
1598
|
+
$listeners$: compactMeta[3],
|
|
1599
|
+
};
|
|
1600
|
+
{
|
|
1601
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1602
|
+
}
|
|
1603
|
+
{
|
|
1604
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1605
|
+
}
|
|
1606
|
+
{
|
|
1607
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1608
|
+
}
|
|
1609
|
+
{
|
|
1610
|
+
cmpMeta.$watchers$ = {};
|
|
1611
|
+
}
|
|
1612
|
+
const tagName = cmpMeta.$tagName$;
|
|
1613
|
+
const HostElement = class extends HTMLElement {
|
|
1614
|
+
// StencilLazyHost
|
|
1615
|
+
constructor(self) {
|
|
1616
|
+
// @ts-ignore
|
|
1617
|
+
super(self);
|
|
1618
|
+
self = this;
|
|
1619
|
+
registerHost(self, cmpMeta);
|
|
1620
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1621
|
+
// this component is using shadow dom
|
|
1622
|
+
// and this browser supports shadow dom
|
|
1623
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1624
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1561
1625
|
{
|
|
1562
|
-
|
|
1626
|
+
{
|
|
1627
|
+
self.attachShadow({ mode: 'open' });
|
|
1628
|
+
}
|
|
1563
1629
|
}
|
|
1564
1630
|
}
|
|
1565
1631
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1632
|
+
connectedCallback() {
|
|
1633
|
+
if (appLoadFallback) {
|
|
1634
|
+
clearTimeout(appLoadFallback);
|
|
1635
|
+
appLoadFallback = null;
|
|
1636
|
+
}
|
|
1637
|
+
if (isBootstrapping) {
|
|
1638
|
+
// connectedCallback will be processed once all components have been registered
|
|
1639
|
+
deferredConnectedCallbacks.push(this);
|
|
1640
|
+
}
|
|
1641
|
+
else {
|
|
1642
|
+
plt.jmp(() => connectedCallback(this));
|
|
1643
|
+
}
|
|
1571
1644
|
}
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
deferredConnectedCallbacks.push(this);
|
|
1645
|
+
disconnectedCallback() {
|
|
1646
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1575
1647
|
}
|
|
1576
|
-
|
|
1577
|
-
|
|
1648
|
+
componentOnReady() {
|
|
1649
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1578
1650
|
}
|
|
1651
|
+
};
|
|
1652
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1653
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1654
|
+
cmpTags.push(tagName);
|
|
1655
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1579
1656
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1583
|
-
componentOnReady() {
|
|
1584
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1588
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1589
|
-
cmpTags.push(tagName);
|
|
1590
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1591
|
-
}
|
|
1592
|
-
}));
|
|
1657
|
+
});
|
|
1658
|
+
});
|
|
1593
1659
|
{
|
|
1594
1660
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1595
1661
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1598,7 +1664,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1598
1664
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1599
1665
|
isBootstrapping = false;
|
|
1600
1666
|
if (deferredConnectedCallbacks.length) {
|
|
1601
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1667
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1602
1668
|
}
|
|
1603
1669
|
else {
|
|
1604
1670
|
{
|
|
@@ -1619,10 +1685,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1619
1685
|
$instanceValues$: new Map(),
|
|
1620
1686
|
};
|
|
1621
1687
|
{
|
|
1622
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1688
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1623
1689
|
}
|
|
1624
1690
|
{
|
|
1625
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1691
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1626
1692
|
elm['s-p'] = [];
|
|
1627
1693
|
elm['s-rc'] = [];
|
|
1628
1694
|
}
|
|
@@ -1644,7 +1710,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1644
1710
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1645
1711
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1646
1712
|
/* webpackMode: "lazy" */
|
|
1647
|
-
`./${bundleId}.entry.js${''}`).then(importedModule => {
|
|
1713
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
1648
1714
|
{
|
|
1649
1715
|
cmpModules.set(bundleId, importedModule);
|
|
1650
1716
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as App } from './App-
|
|
2
|
-
export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-
|
|
3
|
-
import './index-
|
|
1
|
+
export { A as App } from './App-c5f6000f.js';
|
|
2
|
+
export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-68492ed9.js';
|
|
3
|
+
import './index-02a70ac1.js';
|
|
4
4
|
|
|
5
5
|
const colorNames = {
|
|
6
6
|
aliceblue: "#f0f8ff",
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as BUILD, C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { B as BUILD, C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-02a70ac1.js';
|
|
2
2
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
// NOTE!! This fn cannot use async/await!
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-
|
|
12
|
+
return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-c64026cd.js').then(() => {
|
|
13
13
|
if ((plt.$cssShim$ = win.__cssshim)) {
|
|
14
14
|
return plt.$cssShim$.i();
|
|
15
15
|
}
|
|
@@ -26,7 +26,7 @@ const defineCustomElements = (win, options) => {
|
|
|
26
26
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
27
27
|
return patchEsm().then(() => {
|
|
28
28
|
globalScripts();
|
|
29
|
-
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-tab",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-
|
|
29
|
+
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-quiet",[[6,"smoothly-quiet",{"color":[1]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-tab",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date",[[6,"smoothly-input-date",{"value":[1025],"open":[1028]}]]],["smoothly-notification",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-option",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-menu-options",[[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]]]],["smoothly-display",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-tuple",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-item",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-trigger",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Client Platform v2.
|
|
2
|
+
Stencil Client Platform v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
@@ -295,7 +295,7 @@ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
|
295
295
|
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
296
296
|
return selector
|
|
297
297
|
.split(',')
|
|
298
|
-
.map(shallowPart => {
|
|
298
|
+
.map((shallowPart) => {
|
|
299
299
|
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
300
300
|
return shallowPart.trim();
|
|
301
301
|
}
|
|
@@ -315,7 +315,10 @@ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector,
|
|
|
315
315
|
if (rule.selector[0] !== '@') {
|
|
316
316
|
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
317
317
|
}
|
|
318
|
-
else if (rule.selector.startsWith('@media') ||
|
|
318
|
+
else if (rule.selector.startsWith('@media') ||
|
|
319
|
+
rule.selector.startsWith('@supports') ||
|
|
320
|
+
rule.selector.startsWith('@page') ||
|
|
321
|
+
rule.selector.startsWith('@document')) {
|
|
319
322
|
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
320
323
|
}
|
|
321
324
|
const cssRule = {
|
|
@@ -356,11 +359,14 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
356
359
|
rule.selector = placeholder + rule.selector;
|
|
357
360
|
return rule;
|
|
358
361
|
};
|
|
359
|
-
cssText = processRules(cssText, rule => {
|
|
362
|
+
cssText = processRules(cssText, (rule) => {
|
|
360
363
|
if (rule.selector[0] !== '@') {
|
|
361
364
|
return processCommentedSelector(rule);
|
|
362
365
|
}
|
|
363
|
-
else if (rule.selector.startsWith('@media') ||
|
|
366
|
+
else if (rule.selector.startsWith('@media') ||
|
|
367
|
+
rule.selector.startsWith('@supports') ||
|
|
368
|
+
rule.selector.startsWith('@page') ||
|
|
369
|
+
rule.selector.startsWith('@document')) {
|
|
364
370
|
rule.content = processRules(rule.content, processCommentedSelector);
|
|
365
371
|
return rule;
|
|
366
372
|
}
|
|
@@ -374,7 +380,7 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
374
380
|
cssText = cssText.replace(placeholder, comment);
|
|
375
381
|
});
|
|
376
382
|
}
|
|
377
|
-
scoped.slottedSelectors.forEach(slottedSelector => {
|
|
383
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
378
384
|
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
379
385
|
});
|
|
380
386
|
return cssText;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, i as createEvent, h, j as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, i as createEvent, h, j as getElement } from './index-02a70ac1.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = ".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
let SmoothlyAccordionItem = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
this.smoothlyAccordionItemDidLoad = createEvent(this, "smoothlyAccordionItemDidLoad", 7);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, j as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, j as getElement } from './index-02a70ac1.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
let SmoothlyAccordion = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
this.items = [];
|