@dso-toolkit/core 27.4.0 → 29.0.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/dist/cjs/dso-alert.cjs.entry.js +2 -2
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +2 -2
- package/dist/cjs/dso-autosuggest.cjs.entry.js +3 -3
- package/dist/cjs/dso-badge.cjs.entry.js +2 -3
- package/dist/cjs/dso-banner.cjs.entry.js +2 -2
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +47 -7
- package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -2
- package/dist/cjs/dso-icon.cjs.entry.js +9 -3
- package/dist/cjs/dso-info_3.cjs.entry.js +4 -4
- package/dist/cjs/dso-label.cjs.entry.js +6 -7
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
- package/dist/cjs/dso-ozon-content.cjs.entry.js +443 -0
- package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-tooltip.cjs.entry.js +55 -23
- package/dist/cjs/{index-5c4e19ff.js → index-fcdfdd38.js} +97 -34
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{v4-14140ff3.js → v4-8e8d6fbc.js} +0 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/badge/badge.js +0 -1
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +2 -0
- package/dist/collection/components/label/label.css +8 -0
- package/dist/collection/components/label/label.js +5 -6
- package/dist/collection/components/ozon-content/ozon-content.css +100 -0
- package/dist/collection/components/ozon-content/ozon-content.interfaces.js +2 -0
- package/dist/collection/components/ozon-content/ozon-content.js +80 -0
- package/dist/collection/components/ozon-content/ozon-content.template.js +9 -0
- package/dist/collection/components/ozon-content/ozon-content.transformer.js +91 -0
- package/dist/collection/icon/dso-icon-sass-function.js +2 -2
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +567 -52
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-08427682.entry.js +1 -0
- package/dist/dso-toolkit/p-0a7cb861.entry.js +1 -0
- package/dist/dso-toolkit/p-12f7e7d7.entry.js +5 -0
- package/dist/dso-toolkit/{p-ad90fe4d.js → p-19b890a3.js} +0 -0
- package/dist/dso-toolkit/p-262858dd.entry.js +1 -0
- package/dist/dso-toolkit/p-2c6e9460.entry.js +1 -0
- package/dist/dso-toolkit/p-2e7d535c.entry.js +1 -0
- package/dist/dso-toolkit/p-94500196.entry.js +1 -0
- package/dist/dso-toolkit/p-968d9e1d.entry.js +1 -0
- package/dist/dso-toolkit/p-a2357726.entry.js +1 -0
- package/dist/dso-toolkit/p-a40eeb32.js +1 -0
- package/dist/dso-toolkit/p-ae6209c6.entry.js +1 -0
- package/dist/dso-toolkit/p-b5b946de.entry.js +1 -0
- package/dist/dso-toolkit/p-c5acf7e2.entry.js +1 -0
- package/dist/dso-toolkit/p-c9c1bc8f.entry.js +1 -0
- package/dist/dso-toolkit/p-d748df48.entry.js +1 -0
- package/dist/dso-toolkit/p-dff52fb0.entry.js +1 -0
- package/dist/dso-toolkit/p-e4269e02.entry.js +1 -0
- package/dist/dso-toolkit/p-e7700d9e.entry.js +1 -0
- package/dist/dso-toolkit/p-eadba8c3.entry.js +1 -0
- package/dist/esm/dso-alert.entry.js +2 -2
- package/dist/esm/dso-attachments-counter.entry.js +2 -2
- package/dist/esm/dso-autosuggest.entry.js +3 -3
- package/dist/esm/dso-badge.entry.js +2 -3
- package/dist/esm/dso-banner.entry.js +2 -2
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-dropdown-menu.entry.js +47 -7
- package/dist/esm/dso-highlight-box.entry.js +2 -2
- package/dist/esm/dso-icon.entry.js +9 -3
- package/dist/esm/dso-info_3.entry.js +4 -4
- package/dist/esm/dso-label.entry.js +6 -7
- package/dist/esm/dso-map-base-layers.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-map-overlays.entry.js +2 -2
- package/dist/esm/dso-ozon-content.entry.js +439 -0
- package/dist/esm/dso-progress-bar.entry.js +2 -2
- package/dist/esm/dso-progress-indicator.entry.js +2 -2
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +55 -23
- package/dist/esm/{index-fbcbba93.js → index-61410be2.js} +97 -34
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{v4-929670b7.js → v4-fa4bb814.js} +0 -0
- package/dist/types/components/alert/alert.template.d.ts +2 -2
- package/dist/types/components/attachments-counter/attachments-counter.template.d.ts +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +2 -3
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/types/components/badge/badge.template.d.ts +1 -1
- package/dist/types/components/banner/banner.template.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.template.d.ts +3 -3
- package/dist/types/components/dropdown-menu/dropdown-menu.template.d.ts +1 -1
- package/dist/types/components/highlight-box/highlight-box.template.d.ts +1 -1
- package/dist/types/components/icon/icon.template.d.ts +1 -1
- package/dist/types/components/info/info.template.d.ts +1 -1
- package/dist/types/components/info-button/info-button.template.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +1 -1
- package/dist/types/components/label/label.template.d.ts +1 -1
- package/dist/types/components/map-controls/map-controls.template.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +13 -0
- package/dist/types/components/ozon-content/ozon-content.interfaces.d.ts +5 -0
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +2 -0
- package/dist/types/components/ozon-content/ozon-content.transformer.d.ts +15 -0
- package/dist/types/components/progress-bar/progress-bar.template.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.template.d.ts +1 -1
- package/dist/types/components/selectable/selectable.template.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/types/components.d.ts +19 -2
- package/dist/types/globals.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +190 -182
- package/loader/index.d.ts +0 -1
- package/package.json +34 -32
- package/dist/dso-toolkit/p-0acdd660.entry.js +0 -1
- package/dist/dso-toolkit/p-17e062d6.entry.js +0 -1
- package/dist/dso-toolkit/p-1b4843e8.entry.js +0 -1
- package/dist/dso-toolkit/p-28aaf3b6.entry.js +0 -1
- package/dist/dso-toolkit/p-372742ef.entry.js +0 -1
- package/dist/dso-toolkit/p-5d6816e3.entry.js +0 -1
- package/dist/dso-toolkit/p-6f031e8a.entry.js +0 -1
- package/dist/dso-toolkit/p-6f5a1e4e.entry.js +0 -1
- package/dist/dso-toolkit/p-70a658a0.entry.js +0 -1
- package/dist/dso-toolkit/p-8662814d.entry.js +0 -1
- package/dist/dso-toolkit/p-9174121a.entry.js +0 -1
- package/dist/dso-toolkit/p-a58e3c64.entry.js +0 -1
- package/dist/dso-toolkit/p-acae4c27.entry.js +0 -1
- package/dist/dso-toolkit/p-ae985488.js +0 -1
- package/dist/dso-toolkit/p-c06e43cd.entry.js +0 -1
- package/dist/dso-toolkit/p-e29b0619.entry.js +0 -1
- package/dist/dso-toolkit/p-e4ba88f4.entry.js +0 -5
- package/dist/dso-toolkit/p-f952c084.entry.js +0 -1
|
@@ -13,8 +13,8 @@ const doc = win.document || { head: {} };
|
|
|
13
13
|
const plt = {
|
|
14
14
|
$flags$: 0,
|
|
15
15
|
$resourcesUrl$: '',
|
|
16
|
-
jmp: h => h(),
|
|
17
|
-
raf: h => requestAnimationFrame(h),
|
|
16
|
+
jmp: (h) => h(),
|
|
17
|
+
raf: (h) => requestAnimationFrame(h),
|
|
18
18
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
19
19
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
20
20
|
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;
|
|
@@ -113,7 +113,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
113
113
|
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
114
114
|
}
|
|
115
115
|
if (!appliedStyles.has(scopeId)) {
|
|
116
|
-
if (styleContainerNode.host &&
|
|
116
|
+
if (styleContainerNode.host &&
|
|
117
|
+
(styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
|
|
117
118
|
// This is only happening on native shadow-dom, do not needs CSS var shim
|
|
118
119
|
styleElm.innerHTML = style;
|
|
119
120
|
}
|
|
@@ -234,7 +235,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
234
235
|
typeof classData !== 'object'
|
|
235
236
|
? classData
|
|
236
237
|
: Object.keys(classData)
|
|
237
|
-
.filter(k => classData[k])
|
|
238
|
+
.filter((k) => classData[k])
|
|
238
239
|
.join(' ');
|
|
239
240
|
}
|
|
240
241
|
}
|
|
@@ -323,8 +324,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
323
324
|
const classList = elm.classList;
|
|
324
325
|
const oldClasses = parseClassList(oldValue);
|
|
325
326
|
const newClasses = parseClassList(newValue);
|
|
326
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
327
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
327
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
328
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
328
329
|
}
|
|
329
330
|
else if (memberName === 'style') {
|
|
330
331
|
// update style attribute, css properties and values
|
|
@@ -359,7 +360,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
359
360
|
newValue(elm);
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
else if ((!isProp ) &&
|
|
363
|
+
else if ((!isProp ) &&
|
|
364
|
+
memberName[0] === 'o' &&
|
|
365
|
+
memberName[1] === 'n') {
|
|
363
366
|
// Event Handlers
|
|
364
367
|
// so if the member name starts with "on" and the 3rd characters is
|
|
365
368
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -440,7 +443,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
440
443
|
// if the element passed in is a shadow root, which is a document fragment
|
|
441
444
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
442
445
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
443
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
446
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
447
|
+
? newVnode.$elm$.host
|
|
448
|
+
: newVnode.$elm$;
|
|
444
449
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
445
450
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
446
451
|
{
|
|
@@ -484,14 +489,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
484
489
|
}
|
|
485
490
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
486
491
|
// create a slot reference node
|
|
487
|
-
elm = newVNode.$elm$ =
|
|
492
|
+
elm = newVNode.$elm$ =
|
|
493
|
+
doc.createTextNode('');
|
|
488
494
|
}
|
|
489
495
|
else {
|
|
490
496
|
if (!isSvgMode) {
|
|
491
497
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
492
498
|
}
|
|
493
499
|
// create element
|
|
494
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
500
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
501
|
+
? 'slot-fb'
|
|
502
|
+
: newVNode.$tag$)
|
|
495
503
|
);
|
|
496
504
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
497
505
|
isSvgMode = false;
|
|
@@ -858,7 +866,7 @@ const relocateSlotContent = (elm) => {
|
|
|
858
866
|
// that is suppose to always represent the original content location
|
|
859
867
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
860
868
|
// it's possible we've already decided to relocate this node
|
|
861
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
869
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
862
870
|
// made some changes to slots
|
|
863
871
|
// let's make sure we also double check
|
|
864
872
|
// fallbacks are correctly hidden or shown
|
|
@@ -877,9 +885,9 @@ const relocateSlotContent = (elm) => {
|
|
|
877
885
|
});
|
|
878
886
|
}
|
|
879
887
|
if (node['s-sr']) {
|
|
880
|
-
relocateNodes.map(relocateNode => {
|
|
888
|
+
relocateNodes.map((relocateNode) => {
|
|
881
889
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
882
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
890
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
883
891
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
884
892
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
885
893
|
}
|
|
@@ -887,7 +895,7 @@ const relocateSlotContent = (elm) => {
|
|
|
887
895
|
});
|
|
888
896
|
}
|
|
889
897
|
}
|
|
890
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
898
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
891
899
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
892
900
|
// if we never find a home for this element then we'll need to hide it
|
|
893
901
|
relocateNodes.push({
|
|
@@ -967,7 +975,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
967
975
|
if (!nodeToRelocate['s-ol']) {
|
|
968
976
|
// add a reference node marking this node's original location
|
|
969
977
|
// keep a reference to this node for later lookups
|
|
970
|
-
orgLocationNode =
|
|
978
|
+
orgLocationNode =
|
|
979
|
+
doc.createTextNode('');
|
|
971
980
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
972
981
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
973
982
|
}
|
|
@@ -991,7 +1000,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
991
1000
|
}
|
|
992
1001
|
}
|
|
993
1002
|
}
|
|
994
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1003
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1004
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
995
1005
|
// we've checked that it's worth while to relocate
|
|
996
1006
|
// since that the node to relocate
|
|
997
1007
|
// has a different next sibling or parent relocated
|
|
@@ -1037,6 +1047,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1037
1047
|
},
|
|
1038
1048
|
};
|
|
1039
1049
|
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1052
|
+
* @param elm the target of the Event
|
|
1053
|
+
* @param name the name to give the custom Event
|
|
1054
|
+
* @param opts options for configuring a custom Event
|
|
1055
|
+
* @returns the custom Event
|
|
1056
|
+
*/
|
|
1040
1057
|
const emitEvent = (elm, name, opts) => {
|
|
1041
1058
|
const ev = plt.ce(name, opts);
|
|
1042
1059
|
elm.dispatchEvent(ev);
|
|
@@ -1044,7 +1061,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1044
1061
|
};
|
|
1045
1062
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1046
1063
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1047
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1064
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1048
1065
|
}
|
|
1049
1066
|
};
|
|
1050
1067
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1074,6 +1091,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1074
1091
|
hostRef.$queuedListeners$ = null;
|
|
1075
1092
|
}
|
|
1076
1093
|
}
|
|
1094
|
+
{
|
|
1095
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
1096
|
+
}
|
|
1077
1097
|
}
|
|
1078
1098
|
{
|
|
1079
1099
|
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
@@ -1098,7 +1118,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1098
1118
|
// ok, so turns out there are some child host elements
|
|
1099
1119
|
// waiting on this parent element to load
|
|
1100
1120
|
// let's fire off all update callbacks waiting
|
|
1101
|
-
rc.map(cb => cb());
|
|
1121
|
+
rc.map((cb) => cb());
|
|
1102
1122
|
elm['s-rc'] = undefined;
|
|
1103
1123
|
}
|
|
1104
1124
|
endRender();
|
|
@@ -1193,7 +1213,8 @@ const forceUpdate = (ref) => {
|
|
|
1193
1213
|
{
|
|
1194
1214
|
const hostRef = getHostRef(ref);
|
|
1195
1215
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1196
|
-
if (isConnected &&
|
|
1216
|
+
if (isConnected &&
|
|
1217
|
+
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1197
1218
|
scheduleUpdate(hostRef, false);
|
|
1198
1219
|
}
|
|
1199
1220
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1222,7 +1243,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1222
1243
|
const then = (promise, thenFn) => {
|
|
1223
1244
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1224
1245
|
};
|
|
1225
|
-
const addHydratedFlag = (elm) =>
|
|
1246
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1247
|
+
;
|
|
1226
1248
|
const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1227
1249
|
const endHydrate = createTime('hydrateClient', tagName);
|
|
1228
1250
|
const shadowRoot = hostElm.shadowRoot;
|
|
@@ -1236,7 +1258,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1236
1258
|
hostElm[HYDRATE_ID] = hostId;
|
|
1237
1259
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
1238
1260
|
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
1239
|
-
childRenderNodes.map(c => {
|
|
1261
|
+
childRenderNodes.map((c) => {
|
|
1240
1262
|
const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
|
|
1241
1263
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1242
1264
|
const node = c.$elm$;
|
|
@@ -1253,7 +1275,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1253
1275
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1254
1276
|
});
|
|
1255
1277
|
if (shadowRoot) {
|
|
1256
|
-
shadowRootNodes.map(shadowRootNode => {
|
|
1278
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
1257
1279
|
if (shadowRootNode) {
|
|
1258
1280
|
shadowRoot.appendChild(shadowRootNode);
|
|
1259
1281
|
}
|
|
@@ -1471,7 +1493,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1471
1493
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1472
1494
|
if (watchMethods) {
|
|
1473
1495
|
// this instance is watching for when this property changed
|
|
1474
|
-
watchMethods.map(watchMethodName => {
|
|
1496
|
+
watchMethods.map((watchMethodName) => {
|
|
1475
1497
|
try {
|
|
1476
1498
|
// fire off each of the watch methods that are watching this property
|
|
1477
1499
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1501,7 +1523,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1501
1523
|
const members = Object.entries(cmpMeta.$members$);
|
|
1502
1524
|
const prototype = Cstr.prototype;
|
|
1503
1525
|
members.map(([memberName, [memberFlags]]) => {
|
|
1504
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1526
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1527
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1505
1528
|
// proxyComponent - prop
|
|
1506
1529
|
Object.defineProperty(prototype, memberName, {
|
|
1507
1530
|
get() {
|
|
@@ -1516,7 +1539,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1516
1539
|
enumerable: true,
|
|
1517
1540
|
});
|
|
1518
1541
|
}
|
|
1519
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1542
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1543
|
+
memberFlags & 64 /* Method */) {
|
|
1520
1544
|
// proxyComponent - method
|
|
1521
1545
|
Object.defineProperty(prototype, memberName, {
|
|
1522
1546
|
value(...args) {
|
|
@@ -1531,6 +1555,43 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1531
1555
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1532
1556
|
plt.jmp(() => {
|
|
1533
1557
|
const propName = attrNameToPropName.get(attrName);
|
|
1558
|
+
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1559
|
+
// in the case where an attribute was set inline.
|
|
1560
|
+
// ```html
|
|
1561
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1562
|
+
// ```
|
|
1563
|
+
//
|
|
1564
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1565
|
+
// changes it before it has been upgraded as shown below:
|
|
1566
|
+
//
|
|
1567
|
+
// ```html
|
|
1568
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1569
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1570
|
+
// <script>
|
|
1571
|
+
// // grab non-upgraded component
|
|
1572
|
+
// el = document.querySelector("#test");
|
|
1573
|
+
// el.someAttribute = "another-value";
|
|
1574
|
+
// // upgrade component
|
|
1575
|
+
// cutsomElements.define('my-component', MyComponent);
|
|
1576
|
+
// </script>
|
|
1577
|
+
// ```
|
|
1578
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1579
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1580
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1581
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1582
|
+
//
|
|
1583
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1584
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1585
|
+
//
|
|
1586
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1587
|
+
//
|
|
1588
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1589
|
+
// properties here given that this goes against best practices outlined here
|
|
1590
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1591
|
+
if (this.hasOwnProperty(propName)) {
|
|
1592
|
+
newValue = this[propName];
|
|
1593
|
+
delete this[propName];
|
|
1594
|
+
}
|
|
1534
1595
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1535
1596
|
});
|
|
1536
1597
|
};
|
|
@@ -1567,7 +1628,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1567
1628
|
endLoad();
|
|
1568
1629
|
}
|
|
1569
1630
|
if (!Cstr.isProxied) {
|
|
1570
|
-
// we'
|
|
1631
|
+
// we've never proxied this Constructor before
|
|
1571
1632
|
// let's add the getters/setters to its prototype before
|
|
1572
1633
|
// the first time we create an instance of the implementation
|
|
1573
1634
|
{
|
|
@@ -1669,7 +1730,9 @@ const connectedCallback = (elm) => {
|
|
|
1669
1730
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1670
1731
|
// climb up the ancestors looking for the first
|
|
1671
1732
|
// component that hasn't finished its lifecycle update yet
|
|
1672
|
-
if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
|
|
1733
|
+
if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
|
|
1734
|
+
ancestorComponent.hasAttribute('s-id') &&
|
|
1735
|
+
ancestorComponent['s-p']) ||
|
|
1673
1736
|
ancestorComponent['s-p']) {
|
|
1674
1737
|
// we found this components first ancestor component
|
|
1675
1738
|
// keep a reference to this component's ancestor component
|
|
@@ -1721,7 +1784,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1721
1784
|
const instance = hostRef.$lazyInstance$ ;
|
|
1722
1785
|
{
|
|
1723
1786
|
if (hostRef.$rmListeners$) {
|
|
1724
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1787
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1725
1788
|
hostRef.$rmListeners$ = undefined;
|
|
1726
1789
|
}
|
|
1727
1790
|
}
|
|
@@ -1755,7 +1818,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1755
1818
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1756
1819
|
}
|
|
1757
1820
|
}
|
|
1758
|
-
lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
|
|
1821
|
+
lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
|
|
1759
1822
|
const cmpMeta = {
|
|
1760
1823
|
$flags$: compactMeta[0],
|
|
1761
1824
|
$tagName$: compactMeta[1],
|
|
@@ -1828,7 +1891,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1828
1891
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1829
1892
|
isBootstrapping = false;
|
|
1830
1893
|
if (deferredConnectedCallbacks.length) {
|
|
1831
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1894
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1832
1895
|
}
|
|
1833
1896
|
else {
|
|
1834
1897
|
{
|
|
@@ -1850,10 +1913,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1850
1913
|
$instanceValues$: new Map(),
|
|
1851
1914
|
};
|
|
1852
1915
|
{
|
|
1853
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1916
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1854
1917
|
}
|
|
1855
1918
|
{
|
|
1856
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1919
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1857
1920
|
elm['s-p'] = [];
|
|
1858
1921
|
elm['s-rc'] = [];
|
|
1859
1922
|
}
|
|
@@ -1875,7 +1938,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1875
1938
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1876
1939
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1877
1940
|
/* webpackMode: "lazy" */
|
|
1878
|
-
`./${bundleId}.entry.js${''}`).then(importedModule => {
|
|
1941
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
1879
1942
|
{
|
|
1880
1943
|
cmpModules.set(bundleId, importedModule);
|
|
1881
1944
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-61410be2.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["dso-map-base-layers",[[1,"dso-map-base-layers",{"baseLayers":[16],"selectedBaseLayer":[1040]}]]],["dso-map-overlays",[[1,"dso-map-overlays",{"overlays":[16],"checkedOverlays":[1040]}]]],["dso-date-picker",[[1,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"value":[513],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-label",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-alert",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest",[[6,"dso-autosuggest",{"fetchSuggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"suggestions":[32],"showSuggestions":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge",[[1,"dso-badge",{"status":[1]}]]],["dso-banner",[[1,"dso-banner",{"status":[1]}]]],["dso-dropdown-menu",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-highlight-box",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-progress-bar",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-progress-indicator",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip",[[1,"dso-tooltip",{"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-icon",[[1,"dso-icon",{"icon":[1]}]]],["dso-info_3",[[1,"dso-selectable",{"type":[1],"identifier":[1],"name":[1],"value":[1],"invalid":[4],"describedById":[1,"described-by-id"],"disabled":[4],"required":[4],"checked":[4],"indeterminate":[4],"infoFixed":[4,"info-fixed"],"infoActive":[32]}],[1,"dso-info",{"fixed":[516],"active":[516]}],[1,"dso-info-button",{"active":[1540],"label":[1]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["dso-map-base-layers",[[1,"dso-map-base-layers",{"baseLayers":[16],"selectedBaseLayer":[1040]}]]],["dso-map-overlays",[[1,"dso-map-overlays",{"overlays":[16],"checkedOverlays":[1040]}]]],["dso-date-picker",[[1,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"value":[513],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-label",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-alert",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest",[[6,"dso-autosuggest",{"fetchSuggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"suggestions":[32],"showSuggestions":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge",[[1,"dso-badge",{"status":[1]}]]],["dso-banner",[[1,"dso-banner",{"status":[1]}]]],["dso-dropdown-menu",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-highlight-box",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content",[[0,"dso-ozon-content",{"content":[1]},[[0,"click","handleClick"]]]]],["dso-progress-bar",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-progress-indicator",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip",[[1,"dso-tooltip",{"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-icon",[[1,"dso-icon",{"icon":[1]}]]],["dso-info_3",[[1,"dso-selectable",{"type":[1],"identifier":[1],"name":[1],"value":[1],"invalid":[4],"describedById":[1,"described-by-id"],"disabled":[4],"required":[4],"checked":[4],"indeterminate":[4],"infoFixed":[4,"info-fixed"],"infoActive":[32]}],[1,"dso-info",{"fixed":[516],"active":[516]}],[1,"dso-info-button",{"active":[1540],"label":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Alert, AlertWithHeadingsContent } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function alertTemplate({ status, message, onClick, withRoleAlert }: Alert<TemplateResult>): TemplateResult
|
|
4
|
-
export declare function alertWithHeadingsTemplate({ h2, h3, h4, h5, h6, content }: AlertWithHeadingsContent): TemplateResult
|
|
3
|
+
export declare function alertTemplate({ status, message, onClick, withRoleAlert }: Alert<TemplateResult>): TemplateResult<1>;
|
|
4
|
+
export declare function alertWithHeadingsTemplate({ h2, h3, h4, h5, h6, content }: AlertWithHeadingsContent): TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AttachmentsCounter } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function attachmentsCounterTemplate({ count }: AttachmentsCounter): import("lit-html").TemplateResult
|
|
2
|
+
export declare function attachmentsCounterTemplate({ count }: AttachmentsCounter): import("lit-html").TemplateResult<1>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Event, EventEmitter } from "../../stencil-public-runtime";
|
|
1
|
+
import { Event, EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
3
2
|
export interface Suggestion {
|
|
4
3
|
value: string;
|
|
5
4
|
type?: string;
|
|
@@ -44,7 +43,7 @@ export declare class Autosuggest {
|
|
|
44
43
|
onDocumentClick(event: MouseEvent): void;
|
|
45
44
|
connectedCallback(): void;
|
|
46
45
|
disconnectedCallback(): void;
|
|
47
|
-
markTerms(suggestionValue: string, terms: string[]): (
|
|
46
|
+
markTerms(suggestionValue: string, terms: string[]): (VNode | string)[];
|
|
48
47
|
setSelectedSuggestion(index: number): void;
|
|
49
48
|
onMouseEnterOption: (event: MouseEvent) => void;
|
|
50
49
|
onMouseLeaveOption: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Autosuggest } from "@dso-toolkit/sources";
|
|
2
|
-
export declare function autosuggestTemplate({ fetchSuggestions, suggestOnFocus, }: Autosuggest): import("lit-html").TemplateResult
|
|
2
|
+
export declare function autosuggestTemplate({ fetchSuggestions, suggestOnFocus, }: Autosuggest): import("lit-html").TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Badge } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function badgeTemplate({ status, message }: Badge): import("lit-html").TemplateResult
|
|
2
|
+
export declare function badgeTemplate({ status, message }: Badge): import("lit-html").TemplateResult<1>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Banner } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function bannerTemplate({ status, richContent, onClick }: Banner<TemplateResult>): TemplateResult
|
|
3
|
+
export declare function bannerTemplate({ status, richContent, onClick }: Banner<TemplateResult>): TemplateResult<1>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePicker } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function datePickerTemplate({ id, onDateChange, value, min, max, disabled }: DatePicker): TemplateResult
|
|
4
|
-
export declare function datePickerWithLabelTemplate(datePicker: TemplateResult, id: string, label: string): TemplateResult
|
|
5
|
-
export declare function datePickerShowByScriptingTemplate(datePicker: TemplateResult, id: string): TemplateResult
|
|
3
|
+
export declare function datePickerTemplate({ id, onDateChange, value, min, max, disabled }: DatePicker): TemplateResult<1>;
|
|
4
|
+
export declare function datePickerWithLabelTemplate(datePicker: TemplateResult, id: string, label: string): TemplateResult<1>;
|
|
5
|
+
export declare function datePickerShowByScriptingTemplate(datePicker: TemplateResult, id: string): TemplateResult<1>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DropdownMenu } from "@dso-toolkit/sources";
|
|
2
2
|
import { TemplateResult } from "lit-html";
|
|
3
|
-
export declare function dropdownMenuTemplate({ id, button, dropdownAlign, isCheckable, children }: DropdownMenu<TemplateResult>): TemplateResult
|
|
3
|
+
export declare function dropdownMenuTemplate({ id, button, dropdownAlign, isCheckable, children }: DropdownMenu<TemplateResult>): TemplateResult<1>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HighlightBox } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function highlightBoxTemplate({ yellow, white, dropShadow, border, step, icon, richContent }: HighlightBox<TemplateResult>): TemplateResult
|
|
3
|
+
export declare function highlightBoxTemplate({ yellow, white, dropShadow, border, step, icon, richContent }: HighlightBox<TemplateResult>): TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Icon } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function iconTemplate({ icon }: Icon, slot?: string): import("lit-html").TemplateResult
|
|
2
|
+
export declare function iconTemplate({ icon }: Icon, slot?: string): import("lit-html").TemplateResult<1>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Info } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function infoTemplate({ fixed, active, richContent, onClose }: Info<TemplateResult>): TemplateResult
|
|
3
|
+
export declare function infoTemplate({ fixed, active, richContent, onClose }: Info<TemplateResult>): TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InfoButton } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function infoButtonTemplate({ label, active, onClick }: InfoButton): import("lit-html").TemplateResult
|
|
2
|
+
export declare function infoButtonTemplate({ label, active, onClick }: InfoButton): import("lit-html").TemplateResult<1>;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export declare class Label {
|
|
3
3
|
compact?: boolean;
|
|
4
4
|
removable?: boolean;
|
|
5
|
-
status?: 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
5
|
+
status?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'bright';
|
|
6
6
|
hover?: boolean;
|
|
7
7
|
removeClick: EventEmitter<MouseEvent>;
|
|
8
8
|
private static statusMap;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Label } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function labelTemplate({ status, label, button, compact }: Label): import("lit-html").TemplateResult
|
|
2
|
+
export declare function labelTemplate({ status, label, button, compact }: Label): import("lit-html").TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MapControls } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function mapControlsTemplate({ zoomIn, zoomOut, open, baseLayers, selectedBaseLayer, baseLayerChange, overlays, checkedOverlays, checkedOverlaysChange, disableZoom }: MapControls): import("lit-html").TemplateResult
|
|
2
|
+
export declare function mapControlsTemplate({ zoomIn, zoomOut, open, baseLayers, selectedBaseLayer, baseLayerChange, overlays, checkedOverlays, checkedOverlaysChange, disableZoom }: MapControls): import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ContentAnchor } from './ozon-content.interfaces';
|
|
3
|
+
export declare class OzonContent implements ComponentInterface {
|
|
4
|
+
content: string;
|
|
5
|
+
anchorClick: EventEmitter<ContentAnchor>;
|
|
6
|
+
handleClick(event: PointerEvent): void;
|
|
7
|
+
private container?;
|
|
8
|
+
private transformer;
|
|
9
|
+
componentWillLoad(): void;
|
|
10
|
+
componentWillRender(): void;
|
|
11
|
+
render(): any;
|
|
12
|
+
componentDidRender(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ContentAnchor } from './ozon-content.interfaces';
|
|
3
|
+
export declare class OzonContentTransformer {
|
|
4
|
+
private anchorClick;
|
|
5
|
+
private domParser;
|
|
6
|
+
constructor(anchorClick: EventEmitter<ContentAnchor>);
|
|
7
|
+
content?: HTMLCollection;
|
|
8
|
+
setContent(content: string): void;
|
|
9
|
+
handleClickEvent(event: PointerEvent): void;
|
|
10
|
+
private handleDescriptionNoteClick;
|
|
11
|
+
private handleContentAnchor;
|
|
12
|
+
private handleValidUrls;
|
|
13
|
+
private eventHandlers;
|
|
14
|
+
private isHostElement;
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProgressBar } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function progressBarTemplate({ progress, label, min, max }: ProgressBar): import("lit-html").TemplateResult
|
|
2
|
+
export declare function progressBarTemplate({ progress, label, min, max }: ProgressBar): import("lit-html").TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProgressIndicator } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function progressIndicatorTemplate({ label, block, size }: ProgressIndicator): import("lit-html").TemplateResult
|
|
2
|
+
export declare function progressIndicatorTemplate({ label, block, size }: ProgressIndicator): import("lit-html").TemplateResult<1>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Selectable } from '@dso-toolkit/sources';
|
|
2
2
|
import { TemplateResult } from 'lit-html';
|
|
3
|
-
export declare function selectableTemplate({ type, id, name, label, value, required, invalid, describedById, checked, indeterminate, disabled, onChange, info }: Selectable<TemplateResult>): TemplateResult
|
|
3
|
+
export declare function selectableTemplate({ type, id, name, label, value, required, invalid, describedById, checked, indeterminate, disabled, onChange, info }: Selectable<TemplateResult>): TemplateResult<1>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tooltip } from '@dso-toolkit/sources';
|
|
2
|
-
export declare function tooltipTemplate({ active, position, label, id }: Tooltip): import("lit-html").TemplateResult
|
|
2
|
+
export declare function tooltipTemplate({ active, position, label, id }: Tooltip): import("lit-html").TemplateResult<1>;
|