@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-fcdfdd38.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
8
|
var top = 'top';
|
|
@@ -161,17 +161,39 @@ function getBasePlacement(placement) {
|
|
|
161
161
|
return placement.split('-')[0];
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
// import { isHTMLElement } from './instanceOf';
|
|
165
|
+
function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
|
|
166
|
+
includeScale) {
|
|
167
|
+
|
|
165
168
|
var rect = element.getBoundingClientRect();
|
|
169
|
+
var scaleX = 1;
|
|
170
|
+
var scaleY = 1; // FIXME:
|
|
171
|
+
// `offsetWidth` returns an integer while `getBoundingClientRect`
|
|
172
|
+
// returns a float. This results in `scaleX` or `scaleY` being
|
|
173
|
+
// non-1 when it should be for elements that aren't a full pixel in
|
|
174
|
+
// width or height.
|
|
175
|
+
// if (isHTMLElement(element) && includeScale) {
|
|
176
|
+
// const offsetHeight = element.offsetHeight;
|
|
177
|
+
// const offsetWidth = element.offsetWidth;
|
|
178
|
+
// // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
179
|
+
// // Fallback to 1 in case both values are `0`
|
|
180
|
+
// if (offsetWidth > 0) {
|
|
181
|
+
// scaleX = rect.width / offsetWidth || 1;
|
|
182
|
+
// }
|
|
183
|
+
// if (offsetHeight > 0) {
|
|
184
|
+
// scaleY = rect.height / offsetHeight || 1;
|
|
185
|
+
// }
|
|
186
|
+
// }
|
|
187
|
+
|
|
166
188
|
return {
|
|
167
|
-
width: rect.width,
|
|
168
|
-
height: rect.height,
|
|
169
|
-
top: rect.top,
|
|
170
|
-
right: rect.right,
|
|
171
|
-
bottom: rect.bottom,
|
|
172
|
-
left: rect.left,
|
|
173
|
-
x: rect.left,
|
|
174
|
-
y: rect.top
|
|
189
|
+
width: rect.width / scaleX,
|
|
190
|
+
height: rect.height / scaleY,
|
|
191
|
+
top: rect.top / scaleY,
|
|
192
|
+
right: rect.right / scaleX,
|
|
193
|
+
bottom: rect.bottom / scaleY,
|
|
194
|
+
left: rect.left / scaleX,
|
|
195
|
+
x: rect.left / scaleX,
|
|
196
|
+
y: rect.top / scaleY
|
|
175
197
|
};
|
|
176
198
|
}
|
|
177
199
|
|
|
@@ -426,6 +448,10 @@ const arrow$1 = {
|
|
|
426
448
|
requiresIfExists: ['preventOverflow']
|
|
427
449
|
};
|
|
428
450
|
|
|
451
|
+
function getVariation(placement) {
|
|
452
|
+
return placement.split('-')[1];
|
|
453
|
+
}
|
|
454
|
+
|
|
429
455
|
var unsetSides = {
|
|
430
456
|
top: 'auto',
|
|
431
457
|
right: 'auto',
|
|
@@ -452,6 +478,7 @@ function mapToStyles(_ref2) {
|
|
|
452
478
|
var popper = _ref2.popper,
|
|
453
479
|
popperRect = _ref2.popperRect,
|
|
454
480
|
placement = _ref2.placement,
|
|
481
|
+
variation = _ref2.variation,
|
|
455
482
|
offsets = _ref2.offsets,
|
|
456
483
|
position = _ref2.position,
|
|
457
484
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
@@ -478,7 +505,7 @@ function mapToStyles(_ref2) {
|
|
|
478
505
|
if (offsetParent === getWindow(popper)) {
|
|
479
506
|
offsetParent = getDocumentElement(popper);
|
|
480
507
|
|
|
481
|
-
if (getComputedStyle(offsetParent).position !== 'static') {
|
|
508
|
+
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
482
509
|
heightProp = 'scrollHeight';
|
|
483
510
|
widthProp = 'scrollWidth';
|
|
484
511
|
}
|
|
@@ -487,14 +514,14 @@ function mapToStyles(_ref2) {
|
|
|
487
514
|
|
|
488
515
|
offsetParent = offsetParent;
|
|
489
516
|
|
|
490
|
-
if (placement === top) {
|
|
517
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
491
518
|
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
492
519
|
|
|
493
520
|
y -= offsetParent[heightProp] - popperRect.height;
|
|
494
521
|
y *= gpuAcceleration ? 1 : -1;
|
|
495
522
|
}
|
|
496
523
|
|
|
497
|
-
if (placement === left) {
|
|
524
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
498
525
|
sideX = right; // $FlowFixMe[prop-missing]
|
|
499
526
|
|
|
500
527
|
x -= offsetParent[widthProp] - popperRect.width;
|
|
@@ -509,7 +536,7 @@ function mapToStyles(_ref2) {
|
|
|
509
536
|
if (gpuAcceleration) {
|
|
510
537
|
var _Object$assign;
|
|
511
538
|
|
|
512
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1)
|
|
539
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
513
540
|
}
|
|
514
541
|
|
|
515
542
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
@@ -527,6 +554,7 @@ function computeStyles(_ref4) {
|
|
|
527
554
|
|
|
528
555
|
var commonStyles = {
|
|
529
556
|
placement: getBasePlacement(state.placement),
|
|
557
|
+
variation: getVariation(state.placement),
|
|
530
558
|
popper: state.elements.popper,
|
|
531
559
|
popperRect: state.rects.popper,
|
|
532
560
|
gpuAcceleration: gpuAcceleration
|
|
@@ -829,10 +857,6 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
829
857
|
return clippingRect;
|
|
830
858
|
}
|
|
831
859
|
|
|
832
|
-
function getVariation(placement) {
|
|
833
|
-
return placement.split('-')[1];
|
|
834
|
-
}
|
|
835
|
-
|
|
836
860
|
function computeOffsets(_ref) {
|
|
837
861
|
var reference = _ref.reference,
|
|
838
862
|
element = _ref.element,
|
|
@@ -918,11 +942,10 @@ function detectOverflow(state, options) {
|
|
|
918
942
|
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
919
943
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
920
944
|
var altContext = elementContext === popper ? reference : popper;
|
|
921
|
-
var referenceElement = state.elements.reference;
|
|
922
945
|
var popperRect = state.rects.popper;
|
|
923
946
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
924
947
|
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
925
|
-
var referenceClientRect = getBoundingClientRect(
|
|
948
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
926
949
|
var popperOffsets = computeOffsets({
|
|
927
950
|
reference: referenceClientRect,
|
|
928
951
|
element: popperRect,
|
|
@@ -1399,16 +1422,24 @@ function getNodeScroll(node) {
|
|
|
1399
1422
|
}
|
|
1400
1423
|
}
|
|
1401
1424
|
|
|
1425
|
+
function isElementScaled(element) {
|
|
1426
|
+
var rect = element.getBoundingClientRect();
|
|
1427
|
+
var scaleX = rect.width / element.offsetWidth || 1;
|
|
1428
|
+
var scaleY = rect.height / element.offsetHeight || 1;
|
|
1429
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
1430
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
1402
1431
|
// Composite means it takes into account transforms as well as layout.
|
|
1403
1432
|
|
|
1433
|
+
|
|
1404
1434
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
1405
1435
|
if (isFixed === void 0) {
|
|
1406
1436
|
isFixed = false;
|
|
1407
1437
|
}
|
|
1408
1438
|
|
|
1439
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1440
|
+
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1409
1441
|
var documentElement = getDocumentElement(offsetParent);
|
|
1410
1442
|
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
1411
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1412
1443
|
var scroll = {
|
|
1413
1444
|
scrollLeft: 0,
|
|
1414
1445
|
scrollTop: 0
|
|
@@ -1562,7 +1593,8 @@ function popperGenerator(generatorOptions) {
|
|
|
1562
1593
|
var isDestroyed = false;
|
|
1563
1594
|
var instance = {
|
|
1564
1595
|
state: state,
|
|
1565
|
-
setOptions: function setOptions(
|
|
1596
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
1597
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
1566
1598
|
cleanupModifierEffects();
|
|
1567
1599
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
1568
1600
|
state.scrollParents = {
|
|
@@ -1715,7 +1747,7 @@ const tooltipCss = ":host(:not([hidden])){display:block}*,*::after,*::before{box
|
|
|
1715
1747
|
|
|
1716
1748
|
// Keep const in sync with $tooltip-transition-duration in @dso-toolkit/sources/tooltip.scss tooltip_root() mixin
|
|
1717
1749
|
const transitionDuration = 150;
|
|
1718
|
-
|
|
1750
|
+
let Tooltip = class {
|
|
1719
1751
|
constructor(hostRef) {
|
|
1720
1752
|
index.registerInstance(this, hostRef);
|
|
1721
1753
|
/**
|
|
@@ -35,8 +35,8 @@ const doc = win.document || { head: {} };
|
|
|
35
35
|
const plt = {
|
|
36
36
|
$flags$: 0,
|
|
37
37
|
$resourcesUrl$: '',
|
|
38
|
-
jmp: h => h(),
|
|
39
|
-
raf: h => requestAnimationFrame(h),
|
|
38
|
+
jmp: (h) => h(),
|
|
39
|
+
raf: (h) => requestAnimationFrame(h),
|
|
40
40
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
41
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
42
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -46,7 +46,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
46
46
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
47
47
|
try {
|
|
48
48
|
new CSSStyleSheet();
|
|
49
|
-
return typeof
|
|
49
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
50
50
|
}
|
|
51
51
|
catch (e) { }
|
|
52
52
|
return false;
|
|
@@ -135,7 +135,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
135
135
|
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
136
136
|
}
|
|
137
137
|
if (!appliedStyles.has(scopeId)) {
|
|
138
|
-
if (styleContainerNode.host &&
|
|
138
|
+
if (styleContainerNode.host &&
|
|
139
|
+
(styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
|
|
139
140
|
// This is only happening on native shadow-dom, do not needs CSS var shim
|
|
140
141
|
styleElm.innerHTML = style;
|
|
141
142
|
}
|
|
@@ -256,7 +257,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
256
257
|
typeof classData !== 'object'
|
|
257
258
|
? classData
|
|
258
259
|
: Object.keys(classData)
|
|
259
|
-
.filter(k => classData[k])
|
|
260
|
+
.filter((k) => classData[k])
|
|
260
261
|
.join(' ');
|
|
261
262
|
}
|
|
262
263
|
}
|
|
@@ -345,8 +346,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
345
346
|
const classList = elm.classList;
|
|
346
347
|
const oldClasses = parseClassList(oldValue);
|
|
347
348
|
const newClasses = parseClassList(newValue);
|
|
348
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
349
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
349
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
350
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
350
351
|
}
|
|
351
352
|
else if (memberName === 'style') {
|
|
352
353
|
// update style attribute, css properties and values
|
|
@@ -381,7 +382,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
381
382
|
newValue(elm);
|
|
382
383
|
}
|
|
383
384
|
}
|
|
384
|
-
else if ((!isProp ) &&
|
|
385
|
+
else if ((!isProp ) &&
|
|
386
|
+
memberName[0] === 'o' &&
|
|
387
|
+
memberName[1] === 'n') {
|
|
385
388
|
// Event Handlers
|
|
386
389
|
// so if the member name starts with "on" and the 3rd characters is
|
|
387
390
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -462,7 +465,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
462
465
|
// if the element passed in is a shadow root, which is a document fragment
|
|
463
466
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
464
467
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
465
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
468
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
469
|
+
? newVnode.$elm$.host
|
|
470
|
+
: newVnode.$elm$;
|
|
466
471
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
467
472
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
468
473
|
{
|
|
@@ -506,14 +511,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
506
511
|
}
|
|
507
512
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
508
513
|
// create a slot reference node
|
|
509
|
-
elm = newVNode.$elm$ =
|
|
514
|
+
elm = newVNode.$elm$ =
|
|
515
|
+
doc.createTextNode('');
|
|
510
516
|
}
|
|
511
517
|
else {
|
|
512
518
|
if (!isSvgMode) {
|
|
513
519
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
514
520
|
}
|
|
515
521
|
// create element
|
|
516
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
522
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
523
|
+
? 'slot-fb'
|
|
524
|
+
: newVNode.$tag$)
|
|
517
525
|
);
|
|
518
526
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
519
527
|
isSvgMode = false;
|
|
@@ -880,7 +888,7 @@ const relocateSlotContent = (elm) => {
|
|
|
880
888
|
// that is suppose to always represent the original content location
|
|
881
889
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
882
890
|
// it's possible we've already decided to relocate this node
|
|
883
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
891
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
884
892
|
// made some changes to slots
|
|
885
893
|
// let's make sure we also double check
|
|
886
894
|
// fallbacks are correctly hidden or shown
|
|
@@ -899,9 +907,9 @@ const relocateSlotContent = (elm) => {
|
|
|
899
907
|
});
|
|
900
908
|
}
|
|
901
909
|
if (node['s-sr']) {
|
|
902
|
-
relocateNodes.map(relocateNode => {
|
|
910
|
+
relocateNodes.map((relocateNode) => {
|
|
903
911
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
904
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
912
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
905
913
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
906
914
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
907
915
|
}
|
|
@@ -909,7 +917,7 @@ const relocateSlotContent = (elm) => {
|
|
|
909
917
|
});
|
|
910
918
|
}
|
|
911
919
|
}
|
|
912
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
920
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
913
921
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
914
922
|
// if we never find a home for this element then we'll need to hide it
|
|
915
923
|
relocateNodes.push({
|
|
@@ -989,7 +997,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
989
997
|
if (!nodeToRelocate['s-ol']) {
|
|
990
998
|
// add a reference node marking this node's original location
|
|
991
999
|
// keep a reference to this node for later lookups
|
|
992
|
-
orgLocationNode =
|
|
1000
|
+
orgLocationNode =
|
|
1001
|
+
doc.createTextNode('');
|
|
993
1002
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
994
1003
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
995
1004
|
}
|
|
@@ -1013,7 +1022,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1013
1022
|
}
|
|
1014
1023
|
}
|
|
1015
1024
|
}
|
|
1016
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1025
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1026
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1017
1027
|
// we've checked that it's worth while to relocate
|
|
1018
1028
|
// since that the node to relocate
|
|
1019
1029
|
// has a different next sibling or parent relocated
|
|
@@ -1059,6 +1069,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1059
1069
|
},
|
|
1060
1070
|
};
|
|
1061
1071
|
};
|
|
1072
|
+
/**
|
|
1073
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1074
|
+
* @param elm the target of the Event
|
|
1075
|
+
* @param name the name to give the custom Event
|
|
1076
|
+
* @param opts options for configuring a custom Event
|
|
1077
|
+
* @returns the custom Event
|
|
1078
|
+
*/
|
|
1062
1079
|
const emitEvent = (elm, name, opts) => {
|
|
1063
1080
|
const ev = plt.ce(name, opts);
|
|
1064
1081
|
elm.dispatchEvent(ev);
|
|
@@ -1066,7 +1083,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1066
1083
|
};
|
|
1067
1084
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1068
1085
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1069
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1086
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1070
1087
|
}
|
|
1071
1088
|
};
|
|
1072
1089
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1096,6 +1113,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1096
1113
|
hostRef.$queuedListeners$ = null;
|
|
1097
1114
|
}
|
|
1098
1115
|
}
|
|
1116
|
+
{
|
|
1117
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
1118
|
+
}
|
|
1099
1119
|
}
|
|
1100
1120
|
{
|
|
1101
1121
|
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
@@ -1120,7 +1140,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1120
1140
|
// ok, so turns out there are some child host elements
|
|
1121
1141
|
// waiting on this parent element to load
|
|
1122
1142
|
// let's fire off all update callbacks waiting
|
|
1123
|
-
rc.map(cb => cb());
|
|
1143
|
+
rc.map((cb) => cb());
|
|
1124
1144
|
elm['s-rc'] = undefined;
|
|
1125
1145
|
}
|
|
1126
1146
|
endRender();
|
|
@@ -1215,7 +1235,8 @@ const forceUpdate = (ref) => {
|
|
|
1215
1235
|
{
|
|
1216
1236
|
const hostRef = getHostRef(ref);
|
|
1217
1237
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1218
|
-
if (isConnected &&
|
|
1238
|
+
if (isConnected &&
|
|
1239
|
+
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1219
1240
|
scheduleUpdate(hostRef, false);
|
|
1220
1241
|
}
|
|
1221
1242
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1244,7 +1265,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1244
1265
|
const then = (promise, thenFn) => {
|
|
1245
1266
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1246
1267
|
};
|
|
1247
|
-
const addHydratedFlag = (elm) =>
|
|
1268
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1269
|
+
;
|
|
1248
1270
|
const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1249
1271
|
const endHydrate = createTime('hydrateClient', tagName);
|
|
1250
1272
|
const shadowRoot = hostElm.shadowRoot;
|
|
@@ -1258,7 +1280,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1258
1280
|
hostElm[HYDRATE_ID] = hostId;
|
|
1259
1281
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
1260
1282
|
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
1261
|
-
childRenderNodes.map(c => {
|
|
1283
|
+
childRenderNodes.map((c) => {
|
|
1262
1284
|
const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
|
|
1263
1285
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1264
1286
|
const node = c.$elm$;
|
|
@@ -1275,7 +1297,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1275
1297
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1276
1298
|
});
|
|
1277
1299
|
if (shadowRoot) {
|
|
1278
|
-
shadowRootNodes.map(shadowRootNode => {
|
|
1300
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
1279
1301
|
if (shadowRootNode) {
|
|
1280
1302
|
shadowRoot.appendChild(shadowRootNode);
|
|
1281
1303
|
}
|
|
@@ -1493,7 +1515,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1493
1515
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1494
1516
|
if (watchMethods) {
|
|
1495
1517
|
// this instance is watching for when this property changed
|
|
1496
|
-
watchMethods.map(watchMethodName => {
|
|
1518
|
+
watchMethods.map((watchMethodName) => {
|
|
1497
1519
|
try {
|
|
1498
1520
|
// fire off each of the watch methods that are watching this property
|
|
1499
1521
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1523,7 +1545,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1523
1545
|
const members = Object.entries(cmpMeta.$members$);
|
|
1524
1546
|
const prototype = Cstr.prototype;
|
|
1525
1547
|
members.map(([memberName, [memberFlags]]) => {
|
|
1526
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1548
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1549
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1527
1550
|
// proxyComponent - prop
|
|
1528
1551
|
Object.defineProperty(prototype, memberName, {
|
|
1529
1552
|
get() {
|
|
@@ -1538,7 +1561,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1538
1561
|
enumerable: true,
|
|
1539
1562
|
});
|
|
1540
1563
|
}
|
|
1541
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1564
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1565
|
+
memberFlags & 64 /* Method */) {
|
|
1542
1566
|
// proxyComponent - method
|
|
1543
1567
|
Object.defineProperty(prototype, memberName, {
|
|
1544
1568
|
value(...args) {
|
|
@@ -1553,6 +1577,43 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1553
1577
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1554
1578
|
plt.jmp(() => {
|
|
1555
1579
|
const propName = attrNameToPropName.get(attrName);
|
|
1580
|
+
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1581
|
+
// in the case where an attribute was set inline.
|
|
1582
|
+
// ```html
|
|
1583
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1584
|
+
// ```
|
|
1585
|
+
//
|
|
1586
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1587
|
+
// changes it before it has been upgraded as shown below:
|
|
1588
|
+
//
|
|
1589
|
+
// ```html
|
|
1590
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1591
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1592
|
+
// <script>
|
|
1593
|
+
// // grab non-upgraded component
|
|
1594
|
+
// el = document.querySelector("#test");
|
|
1595
|
+
// el.someAttribute = "another-value";
|
|
1596
|
+
// // upgrade component
|
|
1597
|
+
// cutsomElements.define('my-component', MyComponent);
|
|
1598
|
+
// </script>
|
|
1599
|
+
// ```
|
|
1600
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1601
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1602
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1603
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1604
|
+
//
|
|
1605
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1606
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1607
|
+
//
|
|
1608
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1609
|
+
//
|
|
1610
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1611
|
+
// properties here given that this goes against best practices outlined here
|
|
1612
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1613
|
+
if (this.hasOwnProperty(propName)) {
|
|
1614
|
+
newValue = this[propName];
|
|
1615
|
+
delete this[propName];
|
|
1616
|
+
}
|
|
1556
1617
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1557
1618
|
});
|
|
1558
1619
|
};
|
|
@@ -1589,7 +1650,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1589
1650
|
endLoad();
|
|
1590
1651
|
}
|
|
1591
1652
|
if (!Cstr.isProxied) {
|
|
1592
|
-
// we'
|
|
1653
|
+
// we've never proxied this Constructor before
|
|
1593
1654
|
// let's add the getters/setters to its prototype before
|
|
1594
1655
|
// the first time we create an instance of the implementation
|
|
1595
1656
|
{
|
|
@@ -1691,7 +1752,9 @@ const connectedCallback = (elm) => {
|
|
|
1691
1752
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1692
1753
|
// climb up the ancestors looking for the first
|
|
1693
1754
|
// component that hasn't finished its lifecycle update yet
|
|
1694
|
-
if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
|
|
1755
|
+
if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
|
|
1756
|
+
ancestorComponent.hasAttribute('s-id') &&
|
|
1757
|
+
ancestorComponent['s-p']) ||
|
|
1695
1758
|
ancestorComponent['s-p']) {
|
|
1696
1759
|
// we found this components first ancestor component
|
|
1697
1760
|
// keep a reference to this component's ancestor component
|
|
@@ -1743,7 +1806,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1743
1806
|
const instance = hostRef.$lazyInstance$ ;
|
|
1744
1807
|
{
|
|
1745
1808
|
if (hostRef.$rmListeners$) {
|
|
1746
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1809
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1747
1810
|
hostRef.$rmListeners$ = undefined;
|
|
1748
1811
|
}
|
|
1749
1812
|
}
|
|
@@ -1777,7 +1840,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1777
1840
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1778
1841
|
}
|
|
1779
1842
|
}
|
|
1780
|
-
lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
|
|
1843
|
+
lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
|
|
1781
1844
|
const cmpMeta = {
|
|
1782
1845
|
$flags$: compactMeta[0],
|
|
1783
1846
|
$tagName$: compactMeta[1],
|
|
@@ -1850,7 +1913,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1850
1913
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1851
1914
|
isBootstrapping = false;
|
|
1852
1915
|
if (deferredConnectedCallbacks.length) {
|
|
1853
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1916
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1854
1917
|
}
|
|
1855
1918
|
else {
|
|
1856
1919
|
{
|
|
@@ -1872,10 +1935,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1872
1935
|
$instanceValues$: new Map(),
|
|
1873
1936
|
};
|
|
1874
1937
|
{
|
|
1875
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1938
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1876
1939
|
}
|
|
1877
1940
|
{
|
|
1878
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1941
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1879
1942
|
elm['s-p'] = [];
|
|
1880
1943
|
elm['s-rc'] = [];
|
|
1881
1944
|
}
|
|
@@ -1897,7 +1960,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1897
1960
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1898
1961
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1899
1962
|
/* webpackMode: "lazy" */
|
|
1900
|
-
`./${bundleId}.entry.js${''}`)); }).then(importedModule => {
|
|
1963
|
+
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1901
1964
|
{
|
|
1902
1965
|
cmpModules.set(bundleId, importedModule);
|
|
1903
1966
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-fcdfdd38.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16],"selectedBaseLayer":[1040]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16],"checkedOverlays":[1040]}]]],["dso-date-picker.cjs",[[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.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"fetchSuggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"suggestions":[32],"showSuggestions":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip.cjs",[[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.cjs",[[1,"dso-icon",{"icon":[1]}]]],["dso-info_3.cjs",[[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);
|
|
17
|
+
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16],"selectedBaseLayer":[1040]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16],"checkedOverlays":[1040]}]]],["dso-date-picker.cjs",[[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.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"fetchSuggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"suggestions":[32],"showSuggestions":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[0,"dso-ozon-content",{"content":[1]},[[0,"click","handleClick"]]]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip.cjs",[[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.cjs",[[1,"dso-icon",{"icon":[1]}]]],["dso-info_3.cjs",[[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);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
File without changes
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"./components/map-base-layers/map-base-layers.js",
|
|
17
17
|
"./components/map-controls/map-controls.js",
|
|
18
18
|
"./components/map-overlays/map-overlays.js",
|
|
19
|
+
"./components/ozon-content/ozon-content.js",
|
|
19
20
|
"./components/progress-bar/progress-bar.js",
|
|
20
21
|
"./components/progress-indicator/progress-indicator.js",
|
|
21
22
|
"./components/tooltip/tooltip.js"
|
|
22
23
|
],
|
|
23
24
|
"compiler": {
|
|
24
25
|
"name": "@stencil/core",
|
|
25
|
-
"version": "2.
|
|
26
|
+
"version": "2.9.0",
|
|
26
27
|
"typescriptVersion": "4.2.3"
|
|
27
28
|
},
|
|
28
29
|
"collections": [],
|
|
@@ -43,6 +43,7 @@ import landscape from '@dso-toolkit/sources/src/icons/landscape.svg';
|
|
|
43
43
|
import layers from '@dso-toolkit/sources/src/icons/layers.svg';
|
|
44
44
|
import location from '@dso-toolkit/sources/src/icons/location.svg';
|
|
45
45
|
import locationOutline from '@dso-toolkit/sources/src/icons/location-outline.svg';
|
|
46
|
+
import locationSearch from '@dso-toolkit/sources/src/icons/location-search.svg';
|
|
46
47
|
import lock from '@dso-toolkit/sources/src/icons/lock.svg';
|
|
47
48
|
import magnet from '@dso-toolkit/sources/src/icons/magnet.svg';
|
|
48
49
|
import mapLocation from '@dso-toolkit/sources/src/icons/map-location.svg';
|
|
@@ -131,6 +132,7 @@ const icons = [
|
|
|
131
132
|
{ alias: 'layers', svg: layers },
|
|
132
133
|
{ alias: 'location', svg: location },
|
|
133
134
|
{ alias: 'location-outline', svg: locationOutline },
|
|
135
|
+
{ alias: 'location-search', svg: locationSearch },
|
|
134
136
|
{ alias: 'lock', svg: lock },
|
|
135
137
|
{ alias: 'magnet', svg: magnet },
|
|
136
138
|
{ alias: 'map-location', svg: mapLocation },
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
color: #191919;
|
|
29
29
|
display: inline-block;
|
|
30
30
|
line-height: 1.5;
|
|
31
|
+
}
|
|
32
|
+
.dso-label:not(.dso-label-bright) {
|
|
31
33
|
padding: 4px 8px;
|
|
32
34
|
}
|
|
33
35
|
.dso-label:focus-within, .dso-label.dso-hover {
|
|
@@ -76,4 +78,10 @@
|
|
|
76
78
|
.dso-label.dso-label-danger {
|
|
77
79
|
background-color: #ce3f51;
|
|
78
80
|
color: #fff;
|
|
81
|
+
}
|
|
82
|
+
.dso-label.dso-label-bright {
|
|
83
|
+
background-color: #fff;
|
|
84
|
+
color: #191919;
|
|
85
|
+
border: 1px solid #ccc;
|
|
86
|
+
padding: 3px 7px;
|
|
79
87
|
}
|