@esri/calcite-components 1.0.0-next.311 → 1.0.0-next.312
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/calcite/assets/calcite-icon/checkSquareF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-0229a408.js +5 -0
- package/dist/calcite/{p-54394dfe.system.entry.js → p-0d807182.system.entry.js} +1 -1
- package/dist/calcite/{p-b1351c3e.system.entry.js → p-21290fba.system.entry.js} +1 -1
- package/dist/calcite/{p-3a592bf3.system.entry.js → p-34038a94.system.entry.js} +1 -1
- package/dist/calcite/{p-d550ee4d.entry.js → p-34e89de8.entry.js} +1 -1
- package/dist/calcite/p-35a5c74c.system.js +5 -0
- package/dist/calcite/{p-688f06b9.entry.js → p-3b29e94a.entry.js} +1 -1
- package/dist/calcite/{p-fc643963.entry.js → p-45b4443f.entry.js} +1 -1
- package/dist/calcite/{p-dd464e44.system.entry.js → p-55a5535b.system.entry.js} +1 -1
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-502ea583.entry.js → p-9a3bed69.entry.js} +1 -1
- package/dist/calcite/{p-109049e6.system.entry.js → p-aaec0d11.system.entry.js} +1 -1
- package/dist/calcite/{p-75264173.entry.js → p-bab99544.entry.js} +1 -1
- package/dist/calcite/{p-968ea270.entry.js → p-bdb92546.entry.js} +1 -1
- package/dist/calcite/{p-ca6025ab.system.entry.js → p-cbbfa133.system.entry.js} +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/calcite-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/{popper-87bf13e6.js → popper-a7580aca.js} +90 -64
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +1 -0
- package/dist/collection/components/calcite-label/interfaces.js +1 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +1 -0
- package/dist/collection/demos/_assets/demo-spacer.js +17 -0
- package/dist/collection/demos/_assets/demo-template.js +13 -0
- package/dist/collection/demos/_assets/head.js +45 -0
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/popper.js +90 -64
- package/dist/custom-elements/index.js +91 -65
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm/calcite-popover_2.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +1 -1
- package/dist/esm/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm/{popper-dc4b45cf.js → popper-f5caedc4.js} +90 -64
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/popper-f5caedc4.js +5 -0
- package/dist/extras/docs-json.json +1 -1
- package/hydrate/index.js +91 -65
- package/package.json +7 -7
- package/readme.md +2 -2
- package/dist/calcite/p-b1f88d45.system.js +0 -5
- package/dist/calcite/p-d53cc958.js +0 -5
- package/dist/esm-es5/popper-dc4b45cf.js +0 -5
|
@@ -162,29 +162,32 @@ function getBasePlacement(placement) {
|
|
|
162
162
|
return placement.split('-')[0];
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
var max = Math.max;
|
|
166
|
+
var min = Math.min;
|
|
167
|
+
var round = Math.round;
|
|
168
|
+
|
|
169
|
+
function getBoundingClientRect(element, includeScale) {
|
|
170
|
+
if (includeScale === void 0) {
|
|
171
|
+
includeScale = false;
|
|
172
|
+
}
|
|
168
173
|
|
|
169
174
|
var rect = element.getBoundingClientRect();
|
|
170
175
|
var scaleX = 1;
|
|
171
|
-
var scaleY = 1;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
// }
|
|
187
|
-
// }
|
|
176
|
+
var scaleY = 1;
|
|
177
|
+
|
|
178
|
+
if (isHTMLElement(element) && includeScale) {
|
|
179
|
+
var offsetHeight = element.offsetHeight;
|
|
180
|
+
var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
181
|
+
// Fallback to 1 in case both values are `0`
|
|
182
|
+
|
|
183
|
+
if (offsetWidth > 0) {
|
|
184
|
+
scaleX = round(rect.width) / offsetWidth || 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (offsetHeight > 0) {
|
|
188
|
+
scaleY = round(rect.height) / offsetHeight || 1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
188
191
|
|
|
189
192
|
return {
|
|
190
193
|
width: rect.width / scaleX,
|
|
@@ -339,13 +342,13 @@ function getMainAxisFromPlacement(placement) {
|
|
|
339
342
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
340
343
|
}
|
|
341
344
|
|
|
342
|
-
var max = Math.max;
|
|
343
|
-
var min = Math.min;
|
|
344
|
-
var round = Math.round;
|
|
345
|
-
|
|
346
345
|
function within(min$1, value, max$1) {
|
|
347
346
|
return max(min$1, min(value, max$1));
|
|
348
347
|
}
|
|
348
|
+
function withinMaxClamp(min, value, max) {
|
|
349
|
+
var v = within(min, value, max);
|
|
350
|
+
return v > max ? max : v;
|
|
351
|
+
}
|
|
349
352
|
|
|
350
353
|
function getFreshSideObject() {
|
|
351
354
|
return {
|
|
@@ -468,8 +471,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
468
471
|
var win = window;
|
|
469
472
|
var dpr = win.devicePixelRatio || 1;
|
|
470
473
|
return {
|
|
471
|
-
x: round(
|
|
472
|
-
y: round(
|
|
474
|
+
x: round(x * dpr) / dpr || 0,
|
|
475
|
+
y: round(y * dpr) / dpr || 0
|
|
473
476
|
};
|
|
474
477
|
}
|
|
475
478
|
|
|
@@ -484,7 +487,8 @@ function mapToStyles(_ref2) {
|
|
|
484
487
|
position = _ref2.position,
|
|
485
488
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
486
489
|
adaptive = _ref2.adaptive,
|
|
487
|
-
roundOffsets = _ref2.roundOffsets
|
|
490
|
+
roundOffsets = _ref2.roundOffsets,
|
|
491
|
+
isFixed = _ref2.isFixed;
|
|
488
492
|
|
|
489
493
|
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
490
494
|
_ref3$x = _ref3.x,
|
|
@@ -516,16 +520,18 @@ function mapToStyles(_ref2) {
|
|
|
516
520
|
offsetParent = offsetParent;
|
|
517
521
|
|
|
518
522
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
519
|
-
sideY = bottom;
|
|
520
|
-
|
|
521
|
-
|
|
523
|
+
sideY = bottom;
|
|
524
|
+
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
525
|
+
offsetParent[heightProp];
|
|
526
|
+
y -= offsetY - popperRect.height;
|
|
522
527
|
y *= gpuAcceleration ? 1 : -1;
|
|
523
528
|
}
|
|
524
529
|
|
|
525
530
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
526
|
-
sideX = right;
|
|
527
|
-
|
|
528
|
-
|
|
531
|
+
sideX = right;
|
|
532
|
+
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
533
|
+
offsetParent[widthProp];
|
|
534
|
+
x -= offsetX - popperRect.width;
|
|
529
535
|
x *= gpuAcceleration ? 1 : -1;
|
|
530
536
|
}
|
|
531
537
|
}
|
|
@@ -558,7 +564,8 @@ function computeStyles(_ref4) {
|
|
|
558
564
|
variation: getVariation(state.placement),
|
|
559
565
|
popper: state.elements.popper,
|
|
560
566
|
popperRect: state.rects.popper,
|
|
561
|
-
gpuAcceleration: gpuAcceleration
|
|
567
|
+
gpuAcceleration: gpuAcceleration,
|
|
568
|
+
isFixed: state.options.strategy === 'fixed'
|
|
562
569
|
};
|
|
563
570
|
|
|
564
571
|
if (state.modifiersData.popperOffsets != null) {
|
|
@@ -816,7 +823,7 @@ function getInnerBoundingClientRect(element) {
|
|
|
816
823
|
}
|
|
817
824
|
|
|
818
825
|
function getClientRectFromMixedType(element, clippingParent) {
|
|
819
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) :
|
|
826
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
820
827
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
821
828
|
// clipping (or hiding) overflowing elements with a position different from
|
|
822
829
|
// `initial`
|
|
@@ -833,7 +840,7 @@ function getClippingParents(element) {
|
|
|
833
840
|
|
|
834
841
|
|
|
835
842
|
return clippingParents.filter(function (clippingParent) {
|
|
836
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
843
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle(clippingParent).position !== 'static' : true);
|
|
837
844
|
});
|
|
838
845
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
839
846
|
// clipping parents
|
|
@@ -1329,6 +1336,14 @@ function preventOverflow(_ref) {
|
|
|
1329
1336
|
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
1330
1337
|
placement: state.placement
|
|
1331
1338
|
})) : tetherOffset;
|
|
1339
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
1340
|
+
mainAxis: tetherOffsetValue,
|
|
1341
|
+
altAxis: tetherOffsetValue
|
|
1342
|
+
} : Object.assign({
|
|
1343
|
+
mainAxis: 0,
|
|
1344
|
+
altAxis: 0
|
|
1345
|
+
}, tetherOffsetValue);
|
|
1346
|
+
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
1332
1347
|
var data = {
|
|
1333
1348
|
x: 0,
|
|
1334
1349
|
y: 0
|
|
@@ -1338,13 +1353,15 @@ function preventOverflow(_ref) {
|
|
|
1338
1353
|
return;
|
|
1339
1354
|
}
|
|
1340
1355
|
|
|
1341
|
-
if (checkMainAxis
|
|
1356
|
+
if (checkMainAxis) {
|
|
1357
|
+
var _offsetModifierState$;
|
|
1358
|
+
|
|
1342
1359
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
1343
1360
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
1344
1361
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
1345
1362
|
var offset = popperOffsets[mainAxis];
|
|
1346
|
-
var min$1 =
|
|
1347
|
-
var max$1 =
|
|
1363
|
+
var min$1 = offset + overflow[mainSide];
|
|
1364
|
+
var max$1 = offset - overflow[altSide];
|
|
1348
1365
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
1349
1366
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
1350
1367
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -1364,36 +1381,45 @@ function preventOverflow(_ref) {
|
|
|
1364
1381
|
// width or height)
|
|
1365
1382
|
|
|
1366
1383
|
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
1367
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin -
|
|
1368
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax +
|
|
1384
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
1385
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
1369
1386
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
1370
1387
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
1371
|
-
var offsetModifierValue =
|
|
1372
|
-
var tetherMin =
|
|
1373
|
-
var tetherMax =
|
|
1388
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
1389
|
+
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
1390
|
+
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
1391
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
1392
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
1393
|
+
data[mainAxis] = preventedOffset - offset;
|
|
1394
|
+
}
|
|
1374
1395
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
1378
|
-
data[mainAxis] = preventedOffset - offset;
|
|
1379
|
-
}
|
|
1396
|
+
if (checkAltAxis) {
|
|
1397
|
+
var _offsetModifierState$2;
|
|
1380
1398
|
|
|
1381
|
-
|
|
1382
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
1399
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
1383
1400
|
|
|
1384
|
-
|
|
1401
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
1385
1402
|
|
|
1386
|
-
|
|
1403
|
+
var _offset = popperOffsets[altAxis];
|
|
1387
1404
|
|
|
1388
|
-
|
|
1405
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
1389
1406
|
|
|
1390
|
-
|
|
1407
|
+
var _min = _offset + overflow[_mainSide];
|
|
1391
1408
|
|
|
1392
|
-
|
|
1409
|
+
var _max = _offset - overflow[_altSide];
|
|
1393
1410
|
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1411
|
+
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
1412
|
+
|
|
1413
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
1414
|
+
|
|
1415
|
+
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
1416
|
+
|
|
1417
|
+
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
1418
|
+
|
|
1419
|
+
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
1420
|
+
|
|
1421
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
1422
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
1397
1423
|
}
|
|
1398
1424
|
|
|
1399
1425
|
state.modifiersData[name] = data;
|
|
@@ -1425,8 +1451,8 @@ function getNodeScroll(node) {
|
|
|
1425
1451
|
|
|
1426
1452
|
function isElementScaled(element) {
|
|
1427
1453
|
var rect = element.getBoundingClientRect();
|
|
1428
|
-
var scaleX = rect.width / element.offsetWidth || 1;
|
|
1429
|
-
var scaleY = rect.height / element.offsetHeight || 1;
|
|
1454
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
1455
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
1430
1456
|
return scaleX !== 1 || scaleY !== 1;
|
|
1431
1457
|
} // Returns the composite rect of an element relative to its offsetParent.
|
|
1432
1458
|
// Composite means it takes into account transforms as well as layout.
|
|
@@ -1438,9 +1464,9 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1438
1464
|
}
|
|
1439
1465
|
|
|
1440
1466
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1441
|
-
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1467
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1442
1468
|
var documentElement = getDocumentElement(offsetParent);
|
|
1443
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
1469
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1444
1470
|
var scroll = {
|
|
1445
1471
|
scrollLeft: 0,
|
|
1446
1472
|
scrollTop: 0
|
|
@@ -1457,7 +1483,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1457
1483
|
}
|
|
1458
1484
|
|
|
1459
1485
|
if (isHTMLElement(offsetParent)) {
|
|
1460
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
1486
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
1461
1487
|
offsets.x += offsetParent.clientLeft;
|
|
1462
1488
|
offsets.y += offsetParent.clientTop;
|
|
1463
1489
|
} else if (documentElement) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M14.071 2H2.93a.929.929 0 0 0-.93.929V14.07a.929.929 0 0 0 .929.929H14.07a.929.929 0 0 0 .929-.929V2.93a.929.929 0 0 0-.928-.93zM7.557 12.451L4.452 9.346l1.02-1.022 2.085 2.09 4.77-4.771 1.02 1.02z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M20.719 3H4.28A1.281 1.281 0 0 0 3 4.281v16.437A1.282 1.282 0 0 0 4.281 22h16.437A1.282 1.282 0 0 0 22 20.718V4.281A1.281 1.281 0 0 0 20.719 3zM10.502 17.277l-3.79-3.585.92-.918 2.865 2.676 7.027-6.874.92.92z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M27.198 4h-21.4A1.8 1.8 0 0 0 4 5.798V27.2A1.8 1.8 0 0 0 5.8 29h21.4a1.8 1.8 0 0 0 1.8-1.8V5.798A1.802 1.802 0 0 0 27.198 4zm-13.69 18.291l-4.213-4.01.92-.92 3.288 3.1 10.077-9.924.92.92z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M23 13H1v-2h22z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M2.929 2H14.07a.929.929 0 0 1 .929.929V14.07a.929.929 0 0 1-.929.929H2.93a.929.929 0 0 1-.93-.928V2.93A.929.929 0 0 1 2.929 2z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M4.281 3h16.437A1.281 1.281 0 0 1 22 4.281v16.437A1.282 1.282 0 0 1 20.718 22H4.282A1.282 1.282 0 0 1 3 20.718V4.281A1.281 1.281 0 0 1 4.281 3z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M5.798 4h21.404A1.798 1.798 0 0 1 29 5.798V27.2a1.8 1.8 0 0 1-1.8 1.8H5.8A1.8 1.8 0 0 1 4 27.2V5.798A1.798 1.798 0 0 1 5.798 4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M11.192 2H5.808L2 5.808v5.384L5.808 15h5.384L15 11.192V5.808zM14 10.778L10.778 14H6.222L3 10.778V6.222L6.222 3h4.556L14 6.222zM8.5 7.793l2.828-2.829.708.708L9.207 8.5l2.829 2.828-.708.708L8.5 9.207l-2.828 2.829-.708-.708L7.793 8.5 4.964 5.672l.708-.708z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16.435 3h-7.87L3 8.565v7.87L8.565 22h7.87L22 16.435v-7.87zM21 16.02L16.021 21H8.979L4 16.02V8.98L8.979 4h7.042L21 8.98zm-8.5-4.227l4.243-4.243.707.707-4.243 4.243 4.243 4.243-.707.707-4.243-4.243-4.243 4.243-.707-.707 4.243-4.243L7.55 8.257l.707-.707z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M21.678 4H11.322L4 11.322v10.356L11.322 29h10.356L29 21.678V11.322zM28 21.264L21.264 28h-9.528L5 21.264v-9.528L11.736 5h9.528L28 11.736zm-11.5-5.471l5.657-5.657.707.707-5.657 5.657 5.657 5.657-.707.707-5.657-5.657-5.657 5.657-.707-.707 5.657-5.657-5.657-5.657.707-.707z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M11.192 2H5.808L2 5.808v5.384L5.808 15h5.384L15 11.192V5.808zm1.126 9.328l-.99.99L8.5 9.49l-2.828 2.828-.99-.99L7.51 8.5 4.682 5.672l.99-.99L8.5 7.51l2.828-2.828.99.99L9.49 8.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16.435 3h-7.87L3 8.565v7.87L8.565 22h7.87L22 16.435v-7.87zm1.298 13.742l-.99.991-4.243-4.242-4.242 4.242-.991-.99 4.242-4.243-4.242-4.242.99-.991 4.243 4.242 4.242-4.242.991.99-4.242 4.243z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M21.678 4H11.322L4 11.322v10.356L11.322 29h10.356L29 21.678V11.322zm1.47 18.157l-.99.99L16.5 17.49l-5.657 5.657-.99-.99L15.51 16.5l-5.657-5.657.99-.99L16.5 15.51l5.657-5.657.99.99L17.49 16.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M11.192 2H5.808L2 5.808v5.384L5.808 15h5.384L15 11.192V5.808zm1.126 9.328l-.99.99L8.5 9.49l-2.828 2.828-.99-.99L7.51 8.5 4.682 5.672l.99-.99L8.5 7.51l2.828-2.828.99.99L9.49 8.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16.435 3h-7.87L3 8.565v7.87L8.565 22h7.87L22 16.435v-7.87zm1.298 13.742l-.99.991-4.243-4.242-4.242 4.242-.991-.99 4.242-4.243-4.242-4.242.99-.991 4.243 4.242 4.242-4.242.991.99-4.242 4.243z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M21.678 4H11.322L4 11.322v10.356L11.322 29h10.356L29 21.678V11.322zm1.47 18.157l-.99.99L16.5 17.49l-5.657 5.657-.99-.99L15.51 16.5l-5.657-5.657.99-.99L16.5 15.51l5.657-5.657.99.99L17.49 16.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class DemoSpacer extends HTMLElement {
|
|
2
|
+
constructor() {
|
|
3
|
+
super();
|
|
4
|
+
this.attachShadow({ mode: "open" });
|
|
5
|
+
this.shadowRoot.innerHTML = `
|
|
6
|
+
<style>
|
|
7
|
+
:host {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
grid-gap: ${this.getAttribute("gap") || "12px"};
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
13
|
+
<slot></slot>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.define("demo-spacer", DemoSpacer);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const toggleDir = () => {
|
|
2
|
+
document.dir = document.dir === "rtl" ? "ltr" : "rtl";
|
|
3
|
+
};
|
|
4
|
+
const toggleTheme = () => {
|
|
5
|
+
document.body.classList.toggle("calcite-theme-dark");
|
|
6
|
+
};
|
|
7
|
+
const loadDemoToggles = () => {
|
|
8
|
+
document.querySelectorAll("h1:not(#demo-heading)").forEach((h1) => h1.remove());
|
|
9
|
+
document.getElementById("demo-heading").textContent = document.title;
|
|
10
|
+
document.getElementById("toggle-dir").addEventListener("calciteSwitchChange", toggleDir);
|
|
11
|
+
document.getElementById("toggle-theme").addEventListener("calciteSwitchChange", toggleTheme);
|
|
12
|
+
};
|
|
13
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", loadDemoToggles) : loadDemoToggles();
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const DEMO_ROOT = "demos";
|
|
3
|
+
const ASSETS_PATH = "demos/_assets";
|
|
4
|
+
const CSS = [`${ASSETS_PATH}/demos.css`, "build/calcite.css"];
|
|
5
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
6
|
+
const DISABLE_HEADER_URL_PARAM = "header-disabled";
|
|
7
|
+
const SCRIPTS = [
|
|
8
|
+
{
|
|
9
|
+
src: "build/calcite.esm.js",
|
|
10
|
+
type: "module"
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
const parseTemplate = (text) => {
|
|
14
|
+
const parser = new DOMParser();
|
|
15
|
+
const doc = parser.parseFromString(text, "text/html");
|
|
16
|
+
return doc.head.querySelector("template");
|
|
17
|
+
};
|
|
18
|
+
const loadHeader = async () => {
|
|
19
|
+
const root = window.location.pathname.split(DEMO_ROOT).shift();
|
|
20
|
+
const response = await window.fetch(`${root}${ASSETS_PATH}/demo-template.html`);
|
|
21
|
+
const text = await response.text();
|
|
22
|
+
const template = parseTemplate(text);
|
|
23
|
+
const firstChild = document.body.firstChild;
|
|
24
|
+
firstChild && document.body.insertBefore(template.content, firstChild);
|
|
25
|
+
};
|
|
26
|
+
if (window.location.pathname.includes("/demos/") && !urlParams.has(DISABLE_HEADER_URL_PARAM)) {
|
|
27
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", loadHeader) : loadHeader();
|
|
28
|
+
}
|
|
29
|
+
const ROOT = window.location.pathname.split(DEMO_ROOT).shift();
|
|
30
|
+
function loadCss(url) {
|
|
31
|
+
const link = document.createElement("link");
|
|
32
|
+
link.rel = "stylesheet";
|
|
33
|
+
link.href = ROOT + url;
|
|
34
|
+
document.head.appendChild(link);
|
|
35
|
+
}
|
|
36
|
+
function loadScript(script) {
|
|
37
|
+
const scriptElement = document.createElement("script");
|
|
38
|
+
Object.keys(script).forEach((key) => {
|
|
39
|
+
scriptElement[key] = key === "src" ? ROOT + script[key] : script[key];
|
|
40
|
+
});
|
|
41
|
+
document.head.appendChild(scriptElement);
|
|
42
|
+
}
|
|
43
|
+
CSS.forEach(loadCss);
|
|
44
|
+
SCRIPTS.forEach(loadScript);
|
|
45
|
+
})();
|
|
@@ -22,7 +22,7 @@ const TEXT = {
|
|
|
22
22
|
resize: "Resize"
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
|
|
25
|
+
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;pointer-events:none;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
|
|
26
26
|
|
|
27
27
|
let CalciteShellPanel$1 = class extends HTMLElement {
|
|
28
28
|
constructor() {
|