wcs-core 2.9.0 → 2.12.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.
Files changed (98) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{popper-5777994b.js → popper-8cf375ec.js} +130 -71
  3. package/dist/cjs/wcs-accordion-content.cjs.entry.js +19 -0
  4. package/dist/cjs/wcs-accordion-header.cjs.entry.js +16 -0
  5. package/dist/cjs/wcs-accordion-panel.cjs.entry.js +31 -0
  6. package/dist/cjs/wcs-accordion.cjs.entry.js +36 -0
  7. package/dist/cjs/wcs-button.cjs.entry.js +1 -1
  8. package/dist/cjs/wcs-com-nav-category.cjs.entry.js +1 -1
  9. package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +2 -2
  10. package/dist/cjs/wcs-com-nav.cjs.entry.js +24 -2
  11. package/dist/cjs/wcs-dropdown.cjs.entry.js +4 -2
  12. package/dist/cjs/wcs-error_2.cjs.entry.js +6 -9
  13. package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1 -1
  14. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +13 -10
  15. package/dist/cjs/wcs-mat-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/wcs-modal.cjs.entry.js +6 -2
  17. package/dist/cjs/wcs-select_2.cjs.entry.js +2790 -2577
  18. package/dist/cjs/wcs-tooltip.cjs.entry.js +11 -4
  19. package/dist/cjs/wcs.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +4 -0
  21. package/dist/collection/components/accordion/accordion.js +38 -0
  22. package/dist/collection/components/accordion-content/accordion-content.css +4 -0
  23. package/dist/collection/components/accordion-content/accordion-content.js +15 -0
  24. package/dist/collection/components/accordion-header/accordion-header.js +9 -0
  25. package/dist/collection/components/accordion-panel/accordion-panel.css +35 -0
  26. package/dist/collection/components/accordion-panel/accordion-panel.js +89 -0
  27. package/dist/collection/components/button/button.css +12 -4
  28. package/dist/collection/components/com-nav/com-nav.css +68 -10
  29. package/dist/collection/components/com-nav/com-nav.js +34 -5
  30. package/dist/collection/components/com-nav-category/com-nav-category.css +70 -45
  31. package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +123 -72
  32. package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +1 -1
  33. package/dist/collection/components/dropdown/dropdown.js +3 -1
  34. package/dist/collection/components/form-field/form-field.js +6 -9
  35. package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +14 -11
  36. package/dist/collection/components/input/input.js +1 -1
  37. package/dist/collection/components/mat-icon/mat-icon.css +3 -1
  38. package/dist/collection/components/modal/modal.css +16 -29
  39. package/dist/collection/components/modal/modal.js +25 -4
  40. package/dist/collection/components/select/select.js +2 -0
  41. package/dist/collection/components/tooltip/tooltip.js +28 -2
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/{popper-5f42e560.js → popper-548df79b.js} +130 -71
  44. package/dist/esm/wcs-accordion-content.entry.js +15 -0
  45. package/dist/esm/wcs-accordion-header.entry.js +12 -0
  46. package/dist/esm/wcs-accordion-panel.entry.js +27 -0
  47. package/dist/esm/wcs-accordion.entry.js +32 -0
  48. package/dist/esm/wcs-button.entry.js +1 -1
  49. package/dist/esm/wcs-com-nav-category.entry.js +1 -1
  50. package/dist/esm/wcs-com-nav-submenu.entry.js +2 -2
  51. package/dist/esm/wcs-com-nav.entry.js +25 -3
  52. package/dist/esm/wcs-dropdown.entry.js +4 -2
  53. package/dist/esm/wcs-error_2.entry.js +6 -9
  54. package/dist/esm/wcs-galactic-menu.entry.js +1 -1
  55. package/dist/esm/wcs-horizontal-stepper.entry.js +13 -10
  56. package/dist/esm/wcs-mat-icon.entry.js +1 -1
  57. package/dist/esm/wcs-modal.entry.js +6 -2
  58. package/dist/esm/wcs-select_2.entry.js +2790 -2577
  59. package/dist/esm/wcs-tooltip.entry.js +11 -4
  60. package/dist/esm/wcs.js +1 -1
  61. package/dist/types/components/accordion/accordion.d.ts +12 -0
  62. package/dist/types/components/accordion-content/accordion-content.d.ts +3 -0
  63. package/dist/types/components/accordion-header/accordion-header.d.ts +3 -0
  64. package/dist/types/components/accordion-panel/accordion-panel.d.ts +8 -0
  65. package/dist/types/components/com-nav/com-nav.d.ts +7 -0
  66. package/dist/types/components/input/input-interface.d.ts +1 -1
  67. package/dist/types/components/modal/modal.d.ts +4 -0
  68. package/dist/types/components/tooltip/tooltip.d.ts +12 -0
  69. package/dist/types/components.d.ts +72 -0
  70. package/dist/wcs/p-055c20de.entry.js +1 -0
  71. package/dist/wcs/p-0bb5f03a.entry.js +1 -0
  72. package/dist/wcs/p-19e6600c.entry.js +15 -0
  73. package/dist/wcs/p-2507b398.entry.js +1 -0
  74. package/dist/wcs/p-4f15e5f6.entry.js +1 -0
  75. package/dist/wcs/{p-ecbe5165.entry.js → p-600d4d99.entry.js} +2 -2
  76. package/dist/wcs/{p-22813c8e.entry.js → p-66e74651.entry.js} +1 -1
  77. package/dist/wcs/p-706d195a.entry.js +1 -0
  78. package/dist/wcs/{p-4e9e226d.entry.js → p-b69840d6.entry.js} +1 -1
  79. package/dist/wcs/p-bcf381a2.entry.js +1 -0
  80. package/dist/wcs/p-c295cfca.entry.js +1 -0
  81. package/dist/wcs/p-cf77e1d9.entry.js +1 -0
  82. package/dist/wcs/p-d45c7c63.entry.js +1 -0
  83. package/dist/wcs/p-df5baf36.entry.js +1 -0
  84. package/dist/wcs/p-e4fdcd1f.js +1 -0
  85. package/dist/wcs/{p-ff6d0dfd.entry.js → p-f00ef24c.entry.js} +1 -1
  86. package/dist/wcs/p-f43213f5.entry.js +1 -0
  87. package/dist/wcs/wcs.esm.js +1 -1
  88. package/package.json +9 -5
  89. package/CHANGELOG.md +0 -269
  90. package/dist/wcs/p-08a7e84d.entry.js +0 -1
  91. package/dist/wcs/p-1f5aed36.entry.js +0 -1
  92. package/dist/wcs/p-7c26f650.entry.js +0 -1
  93. package/dist/wcs/p-8864a491.entry.js +0 -1
  94. package/dist/wcs/p-94a31f64.entry.js +0 -1
  95. package/dist/wcs/p-b5ffbea8.entry.js +0 -1
  96. package/dist/wcs/p-c7d6d3e1.entry.js +0 -15
  97. package/dist/wcs/p-d3c9a644.js +0 -1
  98. package/dist/wcs/p-db68379f.entry.js +0 -1
@@ -154,7 +154,10 @@ function getBasePlacement(placement) {
154
154
  return placement.split('-')[0];
155
155
  }
156
156
 
157
- var round$1 = Math.round;
157
+ var max = Math.max;
158
+ var min = Math.min;
159
+ var round = Math.round;
160
+
158
161
  function getBoundingClientRect(element, includeScale) {
159
162
  if (includeScale === void 0) {
160
163
  includeScale = false;
@@ -165,20 +168,28 @@ function getBoundingClientRect(element, includeScale) {
165
168
  var scaleY = 1;
166
169
 
167
170
  if (isHTMLElement(element) && includeScale) {
171
+ var offsetHeight = element.offsetHeight;
172
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
168
173
  // Fallback to 1 in case both values are `0`
169
- scaleX = rect.width / element.offsetWidth || 1;
170
- scaleY = rect.height / element.offsetHeight || 1;
174
+
175
+ if (offsetWidth > 0) {
176
+ scaleX = round(rect.width) / offsetWidth || 1;
177
+ }
178
+
179
+ if (offsetHeight > 0) {
180
+ scaleY = round(rect.height) / offsetHeight || 1;
181
+ }
171
182
  }
172
183
 
173
184
  return {
174
- width: round$1(rect.width / scaleX),
175
- height: round$1(rect.height / scaleY),
176
- top: round$1(rect.top / scaleY),
177
- right: round$1(rect.right / scaleX),
178
- bottom: round$1(rect.bottom / scaleY),
179
- left: round$1(rect.left / scaleX),
180
- x: round$1(rect.left / scaleX),
181
- y: round$1(rect.top / scaleY)
185
+ width: rect.width / scaleX,
186
+ height: rect.height / scaleY,
187
+ top: rect.top / scaleY,
188
+ right: rect.right / scaleX,
189
+ bottom: rect.bottom / scaleY,
190
+ left: rect.left / scaleX,
191
+ x: rect.left / scaleX,
192
+ y: rect.top / scaleY
182
193
  };
183
194
  }
184
195
 
@@ -287,6 +298,10 @@ function getContainingBlock(element) {
287
298
 
288
299
  var currentNode = getParentNode(element);
289
300
 
301
+ if (isShadowRoot(currentNode)) {
302
+ currentNode = currentNode.host;
303
+ }
304
+
290
305
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
291
306
  var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
292
307
  // create a containing block.
@@ -323,13 +338,13 @@ function getMainAxisFromPlacement(placement) {
323
338
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
324
339
  }
325
340
 
326
- var max = Math.max;
327
- var min = Math.min;
328
- var round = Math.round;
329
-
330
341
  function within(min$1, value, max$1) {
331
342
  return max(min$1, min(value, max$1));
332
343
  }
344
+ function withinMaxClamp(min, value, max) {
345
+ var v = within(min, value, max);
346
+ return v > max ? max : v;
347
+ }
333
348
 
334
349
  function getFreshSideObject() {
335
350
  return {
@@ -433,6 +448,10 @@ const arrow$1 = {
433
448
  requiresIfExists: ['preventOverflow']
434
449
  };
435
450
 
451
+ function getVariation(placement) {
452
+ return placement.split('-')[1];
453
+ }
454
+
436
455
  var unsetSides = {
437
456
  top: 'auto',
438
457
  right: 'auto',
@@ -448,8 +467,8 @@ function roundOffsetsByDPR(_ref) {
448
467
  var win = window;
449
468
  var dpr = win.devicePixelRatio || 1;
450
469
  return {
451
- x: round(round(x * dpr) / dpr) || 0,
452
- y: round(round(y * dpr) / dpr) || 0
470
+ x: round(x * dpr) / dpr || 0,
471
+ y: round(y * dpr) / dpr || 0
453
472
  };
454
473
  }
455
474
 
@@ -459,18 +478,28 @@ function mapToStyles(_ref2) {
459
478
  var popper = _ref2.popper,
460
479
  popperRect = _ref2.popperRect,
461
480
  placement = _ref2.placement,
481
+ variation = _ref2.variation,
462
482
  offsets = _ref2.offsets,
463
483
  position = _ref2.position,
464
484
  gpuAcceleration = _ref2.gpuAcceleration,
465
485
  adaptive = _ref2.adaptive,
466
- roundOffsets = _ref2.roundOffsets;
467
-
468
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
469
- _ref3$x = _ref3.x,
470
- x = _ref3$x === void 0 ? 0 : _ref3$x,
471
- _ref3$y = _ref3.y,
472
- y = _ref3$y === void 0 ? 0 : _ref3$y;
486
+ roundOffsets = _ref2.roundOffsets,
487
+ isFixed = _ref2.isFixed;
488
+ var _offsets$x = offsets.x,
489
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
490
+ _offsets$y = offsets.y,
491
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
492
+
493
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
494
+ x: x,
495
+ y: y
496
+ }) : {
497
+ x: x,
498
+ y: y
499
+ };
473
500
 
501
+ x = _ref3.x;
502
+ y = _ref3.y;
474
503
  var hasX = offsets.hasOwnProperty('x');
475
504
  var hasY = offsets.hasOwnProperty('y');
476
505
  var sideX = left;
@@ -485,7 +514,7 @@ function mapToStyles(_ref2) {
485
514
  if (offsetParent === getWindow(popper)) {
486
515
  offsetParent = getDocumentElement(popper);
487
516
 
488
- if (getComputedStyle(offsetParent).position !== 'static') {
517
+ if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
489
518
  heightProp = 'scrollHeight';
490
519
  widthProp = 'scrollWidth';
491
520
  }
@@ -494,17 +523,19 @@ function mapToStyles(_ref2) {
494
523
 
495
524
  offsetParent = offsetParent;
496
525
 
497
- if (placement === top) {
498
- sideY = bottom; // $FlowFixMe[prop-missing]
499
-
500
- y -= offsetParent[heightProp] - popperRect.height;
526
+ if (placement === top || (placement === left || placement === right) && variation === end) {
527
+ sideY = bottom;
528
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
529
+ offsetParent[heightProp];
530
+ y -= offsetY - popperRect.height;
501
531
  y *= gpuAcceleration ? 1 : -1;
502
532
  }
503
533
 
504
- if (placement === left) {
505
- sideX = right; // $FlowFixMe[prop-missing]
506
-
507
- x -= offsetParent[widthProp] - popperRect.width;
534
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
535
+ sideX = right;
536
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
537
+ offsetParent[widthProp];
538
+ x -= offsetX - popperRect.width;
508
539
  x *= gpuAcceleration ? 1 : -1;
509
540
  }
510
541
  }
@@ -513,18 +544,29 @@ function mapToStyles(_ref2) {
513
544
  position: position
514
545
  }, adaptive && unsetSides);
515
546
 
547
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
548
+ x: x,
549
+ y: y
550
+ }) : {
551
+ x: x,
552
+ y: y
553
+ };
554
+
555
+ x = _ref4.x;
556
+ y = _ref4.y;
557
+
516
558
  if (gpuAcceleration) {
517
559
  var _Object$assign;
518
560
 
519
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
561
+ 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));
520
562
  }
521
563
 
522
564
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
523
565
  }
524
566
 
525
- function computeStyles(_ref4) {
526
- var state = _ref4.state,
527
- options = _ref4.options;
567
+ function computeStyles(_ref5) {
568
+ var state = _ref5.state,
569
+ options = _ref5.options;
528
570
  var _options$gpuAccelerat = options.gpuAcceleration,
529
571
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
530
572
  _options$adaptive = options.adaptive,
@@ -534,9 +576,11 @@ function computeStyles(_ref4) {
534
576
 
535
577
  var commonStyles = {
536
578
  placement: getBasePlacement(state.placement),
579
+ variation: getVariation(state.placement),
537
580
  popper: state.elements.popper,
538
581
  popperRect: state.rects.popper,
539
- gpuAcceleration: gpuAcceleration
582
+ gpuAcceleration: gpuAcceleration,
583
+ isFixed: state.options.strategy === 'fixed'
540
584
  };
541
585
 
542
586
  if (state.modifiersData.popperOffsets != null) {
@@ -794,7 +838,7 @@ function getInnerBoundingClientRect(element) {
794
838
  }
795
839
 
796
840
  function getClientRectFromMixedType(element, clippingParent) {
797
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
841
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
798
842
  } // A "clipping parent" is an overflowable container with the characteristic of
799
843
  // clipping (or hiding) overflowing elements with a position different from
800
844
  // `initial`
@@ -836,10 +880,6 @@ function getClippingRect(element, boundary, rootBoundary) {
836
880
  return clippingRect;
837
881
  }
838
882
 
839
- function getVariation(placement) {
840
- return placement.split('-')[1];
841
- }
842
-
843
883
  function computeOffsets(_ref) {
844
884
  var reference = _ref.reference,
845
885
  element = _ref.element,
@@ -925,11 +965,10 @@ function detectOverflow(state, options) {
925
965
  padding = _options$padding === void 0 ? 0 : _options$padding;
926
966
  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
927
967
  var altContext = elementContext === popper ? reference : popper;
928
- var referenceElement = state.elements.reference;
929
968
  var popperRect = state.rects.popper;
930
969
  var element = state.elements[altBoundary ? altContext : elementContext];
931
970
  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
932
- var referenceClientRect = getBoundingClientRect(referenceElement);
971
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
933
972
  var popperOffsets = computeOffsets({
934
973
  reference: referenceClientRect,
935
974
  element: popperRect,
@@ -1312,6 +1351,14 @@ function preventOverflow(_ref) {
1312
1351
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1313
1352
  placement: state.placement
1314
1353
  })) : tetherOffset;
1354
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1355
+ mainAxis: tetherOffsetValue,
1356
+ altAxis: tetherOffsetValue
1357
+ } : Object.assign({
1358
+ mainAxis: 0,
1359
+ altAxis: 0
1360
+ }, tetherOffsetValue);
1361
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1315
1362
  var data = {
1316
1363
  x: 0,
1317
1364
  y: 0
@@ -1321,13 +1368,15 @@ function preventOverflow(_ref) {
1321
1368
  return;
1322
1369
  }
1323
1370
 
1324
- if (checkMainAxis || checkAltAxis) {
1371
+ if (checkMainAxis) {
1372
+ var _offsetModifierState$;
1373
+
1325
1374
  var mainSide = mainAxis === 'y' ? top : left;
1326
1375
  var altSide = mainAxis === 'y' ? bottom : right;
1327
1376
  var len = mainAxis === 'y' ? 'height' : 'width';
1328
1377
  var offset = popperOffsets[mainAxis];
1329
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
1330
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
1378
+ var min$1 = offset + overflow[mainSide];
1379
+ var max$1 = offset - overflow[altSide];
1331
1380
  var additive = tether ? -popperRect[len] / 2 : 0;
1332
1381
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
1333
1382
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -1347,36 +1396,45 @@ function preventOverflow(_ref) {
1347
1396
  // width or height)
1348
1397
 
1349
1398
  var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1350
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
1351
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
1399
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1400
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1352
1401
  var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1353
1402
  var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1354
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
1355
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
1356
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
1403
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1404
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1405
+ var tetherMax = offset + maxOffset - offsetModifierValue;
1406
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1407
+ popperOffsets[mainAxis] = preventedOffset;
1408
+ data[mainAxis] = preventedOffset - offset;
1409
+ }
1357
1410
 
1358
- if (checkMainAxis) {
1359
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1360
- popperOffsets[mainAxis] = preventedOffset;
1361
- data[mainAxis] = preventedOffset - offset;
1362
- }
1411
+ if (checkAltAxis) {
1412
+ var _offsetModifierState$2;
1363
1413
 
1364
- if (checkAltAxis) {
1365
- var _mainSide = mainAxis === 'x' ? top : left;
1414
+ var _mainSide = mainAxis === 'x' ? top : left;
1366
1415
 
1367
- var _altSide = mainAxis === 'x' ? bottom : right;
1416
+ var _altSide = mainAxis === 'x' ? bottom : right;
1368
1417
 
1369
- var _offset = popperOffsets[altAxis];
1418
+ var _offset = popperOffsets[altAxis];
1370
1419
 
1371
- var _min = _offset + overflow[_mainSide];
1420
+ var _len = altAxis === 'y' ? 'height' : 'width';
1372
1421
 
1373
- var _max = _offset - overflow[_altSide];
1422
+ var _min = _offset + overflow[_mainSide];
1374
1423
 
1375
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
1424
+ var _max = _offset - overflow[_altSide];
1376
1425
 
1377
- popperOffsets[altAxis] = _preventedOffset;
1378
- data[altAxis] = _preventedOffset - _offset;
1379
- }
1426
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1427
+
1428
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1429
+
1430
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1431
+
1432
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1433
+
1434
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1435
+
1436
+ popperOffsets[altAxis] = _preventedOffset;
1437
+ data[altAxis] = _preventedOffset - _offset;
1380
1438
  }
1381
1439
 
1382
1440
  state.modifiersData[name] = data;
@@ -1408,8 +1466,8 @@ function getNodeScroll(node) {
1408
1466
 
1409
1467
  function isElementScaled(element) {
1410
1468
  var rect = element.getBoundingClientRect();
1411
- var scaleX = rect.width / element.offsetWidth || 1;
1412
- var scaleY = rect.height / element.offsetHeight || 1;
1469
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
1470
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
1413
1471
  return scaleX !== 1 || scaleY !== 1;
1414
1472
  } // Returns the composite rect of an element relative to its offsetParent.
1415
1473
  // Composite means it takes into account transforms as well as layout.
@@ -1577,7 +1635,8 @@ function popperGenerator(generatorOptions) {
1577
1635
  var isDestroyed = false;
1578
1636
  var instance = {
1579
1637
  state: state,
1580
- setOptions: function setOptions(options) {
1638
+ setOptions: function setOptions(setOptionsAction) {
1639
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1581
1640
  cleanupModifierEffects();
1582
1641
  state.options = Object.assign({}, defaultOptions, state.options, options);
1583
1642
  state.scrollParents = {
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-b982604a.js';
2
+
3
+ const accordionContentCss = ":host{margin:calc(3 * var(--wcs-base-margin));display:block}";
4
+
5
+ let AccordionContent = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, { slot: "content" }, h("slot", null)));
11
+ }
12
+ };
13
+ AccordionContent.style = accordionContentCss;
14
+
15
+ export { AccordionContent as wcs_accordion_content };
@@ -0,0 +1,12 @@
1
+ import { r as registerInstance, h, H as Host } from './index-b982604a.js';
2
+
3
+ let AccordionHeader = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ }
7
+ render() {
8
+ return (h(Host, { slot: "header" }, h("slot", null)));
9
+ }
10
+ };
11
+
12
+ export { AccordionHeader as wcs_accordion_header };
@@ -0,0 +1,27 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-b982604a.js';
2
+ import { S as SelectArrow } from './select-arrow-73ac4016.js';
3
+
4
+ const accordionPanelCss = ":host{display:flex;flex-direction:column;cursor:pointer;margin-bottom:16px}:host .header{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-radius:7px;font-weight:500;font-size:16px;color:var(--wcs-primary);background-color:var(--wcs-light)}:host .header-action{display:flex;align-items:center;user-select:none}:host .header-action .arrow{fill:var(--wcs-primary)}:host .content{display:none}:host([open]){margin-bottom:0}:host([open]) .content{display:block}";
5
+
6
+ let AccordionPanel = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.wcsOpenChange = createEvent(this, "wcsOpenChange", 7);
10
+ this.open = false;
11
+ }
12
+ openChange(newValue) {
13
+ this.wcsOpenChange.emit(newValue);
14
+ }
15
+ async close() {
16
+ this.open = false;
17
+ }
18
+ render() {
19
+ return (h(Host, null, h("div", { class: "header", onClick: () => this.open = !this.open }, h("slot", { name: "header" }), h("div", { class: "header-action" }, h("span", null, this.open ? 'Fermez' : 'Ouvrez'), h(SelectArrow, { up: this.open }))), h("div", { class: "content" }, h("slot", { name: "content" }))));
20
+ }
21
+ static get watchers() { return {
22
+ "open": ["openChange"]
23
+ }; }
24
+ };
25
+ AccordionPanel.style = accordionPanelCss;
26
+
27
+ export { AccordionPanel as wcs_accordion_panel };
@@ -0,0 +1,32 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b982604a.js';
2
+
3
+ let Accordion = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.accordionPanels = [];
7
+ }
8
+ componentWillLoad() {
9
+ this.accordionPanels = this.getAllAccordionPanelsFromHostElement();
10
+ }
11
+ wcsOpenChangeHandler(event) {
12
+ if (event.detail) {
13
+ this.closeAllAccordionsExcept(event.target);
14
+ }
15
+ }
16
+ render() {
17
+ return (h(Host, null, h("slot", null)));
18
+ }
19
+ getAllAccordionPanelsFromHostElement() {
20
+ return Array.from(this.el.children)
21
+ .filter(el => el.tagName === 'WCS-ACCORDION-PANEL');
22
+ }
23
+ /**
24
+ * Close all accordion panels except the one that match the eventTarget reference
25
+ */
26
+ closeAllAccordionsExcept(eventTarget) {
27
+ this.accordionPanels.filter(a => a !== eventTarget).forEach(a => a.close());
28
+ }
29
+ get el() { return getElement(this); }
30
+ };
31
+
32
+ export { Accordion as wcs_accordion };
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-b982604a.js';
2
2
  import { h as hasShadowDom } from './helpers-e2993152.js';
3
3
  import { M as MDCRipple } from './component-6b4d470f.js';
4
4
 
5
- const buttonCss = "@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block;--wcs-button-padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);--wcs-button-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-background-color:var(--wcs-base, var(--wcs-primary, #0088CE));--wcs-button-ripple-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-border-radius:var(--wcs-border-radius);--wcs-button-border-color:var(--wcs-base)}:host([mode=clear]){--wcs-button-border-color:transparent}:host([mode=clear]) .wcs-inner-button{box-shadow:none}:host([mode=clear]),:host([mode=stroked]){--wcs-button-color:var(--wcs-base);--wcs-button-background-color:transparent}:host([mode=clear]) .wcs-inner-button::before,:host([mode=clear]) .wcs-inner-button::after,:host([mode=stroked]) .wcs-inner-button::before,:host([mode=stroked]) .wcs-inner-button::after{--wcs-button-ripple-color:var(--wcs-base)}:host([shape=small]){--wcs-button-padding:2px 16px}:host([shape=round]){--wcs-button-padding:0;--wcs-button-border-radius:50%}:host([shape=round]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=square]){--wcs-button-padding:0}:host([shape=square]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=normal]){--wcs-button-padding:calc(var(--wcs-padding) / 2 + 1px) calc(var(--wcs-padding))}:host([mode=stroked]) .wcs-inner-button{box-shadow:inset 0 0 0 1px var(--wcs-button-border-color)}:host([disabled]){--wcs-button-color:var(--wcs-text-disabled);--wcs-button-background-color:var(--wcs-light)}:host([disabled]) .wcs-inner-button{--wcs-button-border-color:var(--wcs-light);opacity:1;cursor:default;pointer-events:none}:host([disabled]):host([mode=clear]),:host([disabled]):host([disabled]){--wcs-button-background-color:transparent}.wcs-inner-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;display:flex;align-content:center;font-family:var(--wcs-font-sans-serif);background-color:var(--wcs-button-background-color);color:var(--wcs-button-color);padding:var(--wcs-button-padding);border-radius:var(--wcs-button-border-radius);border:none;overflow:hidden;outline:0;text-transform:none;margin:0;cursor:pointer;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;font-size:1rem;line-height:1.5;transition:color 175ms ease-in-out, background-color 175ms ease-in-out, box-shadow 175ms cubic-bezier(0.4, 0, 0.2, 1)}.wcs-inner-button::before,.wcs-inner-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.wcs-inner-button::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-inner-button::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-inner-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-inner-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-inner-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-inner-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button::before,.wcs-inner-button::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-inner-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-inner-button:hover::before,.wcs-inner-button.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-inner-button.mdc-ripple-upgraded--background-focused::before,.wcs-inner-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-inner-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-inner-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:white;background-color:var(--mdc-ripple-color, white)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:var(--wcs-button-ripple-color)}.wcs-inner-button:focus{box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)}.wcs-inner-button:hover{box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)}a{text-decoration:none}button::-moz-focus-inner,a::-moz-focus-inner{border:0}";
5
+ const buttonCss = "@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block;--wcs-button-padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);--wcs-button-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-background-color:var(--wcs-base, var(--wcs-primary, #0088CE));--wcs-button-ripple-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-border-radius:var(--wcs-border-radius);--wcs-button-border-color:var(--wcs-base)}:host([mode=clear]){--wcs-button-border-color:transparent}:host([mode=clear]) .wcs-inner-button{box-shadow:none}:host([mode=clear]),:host([mode=stroked]){--wcs-button-color:var(--wcs-base);--wcs-button-background-color:transparent}:host([mode=clear]) .wcs-inner-button::before,:host([mode=clear]) .wcs-inner-button::after,:host([mode=stroked]) .wcs-inner-button::before,:host([mode=stroked]) .wcs-inner-button::after{--wcs-button-ripple-color:var(--wcs-base)}:host([shape=small]){--wcs-button-padding:2px 16px}:host([shape=small]) .wcs-inner-button{min-width:var(--wcs-button-min-width, unset);min-height:var(--wcs-button-min-height, unset)}:host([shape=round]){--wcs-button-padding:0;--wcs-button-border-radius:50%}:host([shape=round]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:var(--wcs-button-min-width, 42px);min-height:var(--wcs-button-min-height, 42px)}:host([shape=square]){--wcs-button-padding:0}:host([shape=square]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:var(--wcs-button-min-width, 42px);min-height:var(--wcs-button-min-height, 42px)}:host([shape=normal]){--wcs-button-padding:calc(var(--wcs-padding) / 2 + 1px) calc(var(--wcs-padding))}:host([shape=normal]) .wcs-inner-button{min-width:var(--wcs-button-min-width, unset);min-height:var(--wcs-button-min-height, unset)}:host([mode=stroked]) .wcs-inner-button{box-shadow:inset 0 0 0 1px var(--wcs-button-border-color)}:host([disabled]){--wcs-button-color:var(--wcs-text-disabled);--wcs-button-background-color:var(--wcs-light)}:host([disabled]) .wcs-inner-button{--wcs-button-border-color:var(--wcs-light);opacity:1;cursor:default;pointer-events:none}:host([disabled]):host([mode=clear]),:host([disabled]):host([disabled]){--wcs-button-background-color:transparent}.wcs-inner-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;display:flex;align-content:center;font-family:var(--wcs-font-sans-serif);background-color:var(--wcs-button-background-color);color:var(--wcs-button-color);padding:var(--wcs-button-padding);border-radius:var(--wcs-button-border-radius);border:none;overflow:hidden;outline:0;text-transform:none;margin:0;cursor:pointer;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;font-size:1rem;line-height:1.5;transition:color 175ms ease-in-out, background-color 175ms ease-in-out, box-shadow 175ms cubic-bezier(0.4, 0, 0.2, 1)}.wcs-inner-button::before,.wcs-inner-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.wcs-inner-button::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-inner-button::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-inner-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-inner-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-inner-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-inner-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button::before,.wcs-inner-button::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-inner-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-inner-button:hover::before,.wcs-inner-button.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-inner-button.mdc-ripple-upgraded--background-focused::before,.wcs-inner-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-inner-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-inner-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:white;background-color:var(--mdc-ripple-color, white)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:var(--wcs-button-ripple-color)}.wcs-inner-button:focus{box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)}.wcs-inner-button:hover{box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)}a{text-decoration:none}button::-moz-focus-inner,a::-moz-focus-inner{border:0}";
6
6
 
7
7
  let Button = class {
8
8
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b982604a.js';
2
2
 
3
- const comNavCategoryCss = ":host{display:block}:host .item-container:not([data-open]){display:none}:host .label:after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host .label-container{cursor:pointer;user-select:none;display:flex;align-items:center}:host .label-container[data-open]:after{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8 - 0.5625rem);z-index:2;display:block;width:1.125rem;height:1.125rem;content:\"\";background-color:var(--wcs-primary);transform:rotate(45deg)}:host .item-container[data-open]{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8);top:0;right:0;padding:50px 0 50px 50px;background-blend-mode:multiply;background-color:rgba(0, 0, 0, 0.15);box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:start}:host .item-container[data-open] ::slotted(a:not(:first-child)){margin-top:24px}:host .item-container[data-open] ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host .item-container[data-open] ::slotted(a){cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-white)}";
3
+ const comNavCategoryCss = ":host{display:block;padding-bottom:var(--wcs-padding)}:host .label-container{display:block;padding-left:calc(9 * var(--wcs-base-margin));color:var(--wcs-gray)}:host ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host ::slotted(a){display:block;cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-gray);padding-left:calc(12 * var(--wcs-base-margin));padding-top:calc(1.5 * var(--wcs-base-margin));padding-bottom:calc(1.5 * var(--wcs-base-margin))}@media screen and (min-width: 576px){:host{padding-bottom:unset}:host .item-container:not([data-open]){display:none}:host .label:after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host .label-container{cursor:pointer;user-select:none;display:flex;align-items:center;padding-left:unset;color:var(--wcs-white)}:host .label-container[data-open]:after{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8 - 0.5625rem);z-index:2;display:block;width:1.125rem;height:1.125rem;content:\"\";background-color:var(--wcs-primary);transform:rotate(45deg)}:host .item-container[data-open]{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8);top:0;right:0;padding:50px 0 50px 50px;background-blend-mode:multiply;background-color:rgba(0, 0, 0, 0.15);box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:start}:host .item-container[data-open] ::slotted(a:not(:first-child)){margin-top:24px}:host .item-container[data-open] ::slotted(a){display:unset;color:var(--wcs-white);padding-left:unset;padding-top:unset;padding-bottom:unset}}";
4
4
 
5
5
  let ComNavCategory = class {
6
6
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b982604a.js';
2
2
 
3
- const comNavSubmenuCss = ":host{display:block;height:100%}:host .menu-button{display:flex;align-items:center;height:100%;cursor:pointer;user-select:none}:host .label{font-size:16px;cursor:pointer;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host .arrow-icon{display:inline-block;font-family:icons;font-size:0.6rem;line-height:1;box-sizing:border-box}:host .arrow-icon:not([data-open]){transform:rotate(90deg)}:host .arrow-icon[data-open]{transform:rotate(-90deg)}:host .arrow-container{margin-left:var(--wcs-base-margin)}:host .drawer{display:none;position:absolute;top:75px;z-index:8888;left:0;width:100%;box-sizing:border-box;padding:50px;background-color:var(--wcs-primary);color:var(--wcs-white)}:host .drawer-content{display:flex;justify-content:space-between;max-width:62.5%;flex:1}:host .drawer-content div:first-child{flex:0.8}:host .drawer-content div{max-width:260px}:host .menu-items{padding:0 80px 0 50px;display:flex;flex-direction:column;align-items:flex-end}:host .menu-items ::slotted(*:not(:first-child)){margin-top:24px}:host .menu-items ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host .menu-items ::slotted(a){user-select:none;cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-white)}:host .drawer-container{display:flex;max-width:var(--wcs-com-content-max-width);margin:0 auto}:host .drawer-container h3{margin:0 0 24px 0;font-size:1.5rem;line-height:1.25;font-weight:400}:host .drawer-container p{margin-top:0;margin-bottom:1rem;font-weight:500;font-size:1rem;line-height:1.375}:host .drawer[data-open]{display:block}";
3
+ const comNavSubmenuCss = ":host{display:block;padding-bottom:var(--wcs-padding)}:host .menu-button{display:block;font-weight:500;padding-left:calc(3 * var(--wcs-base-margin))}:host .arrow-icon{display:none}:host .arrow-container{display:none}:host .label{text-transform:uppercase;font-size:16px;cursor:unset;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host .drawer{display:contents}:host .drawer-container{display:contents}:host .drawer-description{display:none}:host .menu-items ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host .menu-items ::slotted(a){user-select:none;cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-gray);font-weight:500;display:block;padding-top:calc(1.5 * var(--wcs-base-margin));padding-bottom:calc(1.5 * var(--wcs-base-margin));padding-left:calc(6 * var(--wcs-base-margin))}@media screen and (min-width: 576px){:host{height:100%;padding-bottom:unset}:host .menu-button{display:flex;align-items:center;height:100%;cursor:pointer;user-select:none;font-weight:unset;padding-left:unset}:host .label{text-transform:unset;cursor:pointer}:host .arrow-icon{display:inline-block;font-family:icons;font-size:0.6rem;line-height:1;box-sizing:border-box}:host .arrow-container{display:unset;margin-left:var(--wcs-base-margin)}:host .arrow-icon:not([data-open]){transform:rotate(90deg)}:host .arrow-icon[data-open]{transform:rotate(-90deg)}:host .drawer{display:none;position:absolute;top:75px;z-index:8888;left:0;width:100%;box-sizing:border-box;padding:50px;background-color:var(--wcs-primary);color:var(--wcs-white)}:host .drawer-content{display:flex;justify-content:space-between;max-width:62.5%;flex:1}:host .drawer-content div:first-child{flex:0.8}:host .drawer-content div{max-width:260px}:host .menu-items{padding:0 80px 0 50px;display:flex;flex-direction:column;align-items:flex-end}:host .menu-items ::slotted(*:not(:first-child)){margin-top:24px}:host .menu-items ::slotted(a){color:var(--wcs-white);font-weight:400;display:unset;padding-top:unset;padding-bottom:unset;padding-left:unset}:host .drawer-container{display:flex;max-width:var(--wcs-com-content-max-width);margin:0 auto}:host .drawer-container h3{margin:0 0 24px 0;font-size:1.5rem;line-height:1.25;font-weight:400}:host .drawer-container p{margin-top:0;margin-bottom:1rem;font-weight:500;font-size:1rem;line-height:1.375}:host .drawer[data-open]{display:block}:host .drawer-description{display:block}}";
4
4
 
5
5
  let ComNavSubmenu = class {
6
6
  constructor(hostRef) {
@@ -56,7 +56,7 @@ let ComNavSubmenu = class {
56
56
  this.close();
57
57
  }
58
58
  render() {
59
- return (h(Host, { onClick: evt => this.onClick(evt) }, h("div", { onClick: _ => this.menuOpen = !this.menuOpen, class: "menu-button" }, h("span", { class: "label" }, this.label), h("span", { class: "arrow-container" }, h("span", { class: "arrow-icon", "data-open": this.menuOpen }, "\uF107"))), h("div", { class: "drawer", "data-open": this.menuOpen }, h("div", { class: "drawer-container" }, h("div", { class: "drawer-content" }, h("div", null, h("h3", null, this.panelTitle), h("p", null, this.panelDescription)), h("div", { class: "menu-items", onClick: (evt) => this.handleMenuItemsClick(evt) }, h("slot", null)))))));
59
+ return (h(Host, { onClick: evt => this.onClick(evt) }, h("div", { onClick: _ => this.menuOpen = !this.menuOpen, class: "menu-button" }, h("span", { class: "label" }, this.label), h("span", { class: "arrow-container" }, h("span", { class: "arrow-icon", "data-open": this.menuOpen }, "\uF107"))), h("div", { class: "drawer", "data-open": this.menuOpen }, h("div", { class: "drawer-container" }, h("div", { class: "drawer-content" }, h("div", { class: "drawer-description" }, h("h3", null, this.panelTitle), h("p", null, this.panelDescription)), h("div", { class: "menu-items", onClick: (evt) => this.handleMenuItemsClick(evt) }, h("slot", null)))))));
60
60
  }
61
61
  get el() { return getElement(this); }
62
62
  };
@@ -1,14 +1,36 @@
1
- import { r as registerInstance, h, H as Host } from './index-b982604a.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b982604a.js';
2
2
 
3
- const comNavCss = ":host{display:block;position:relative;height:75px;border-bottom:solid 1px var(--wcs-text-light)}:host .container{margin:0 auto;height:100%;display:flex;align-items:center;flex-direction:row;justify-content:space-between;max-width:var(--wcs-com-content-max-width)}:host .container-left{display:flex;height:100%;align-items:center;flex-direction:row}:host .app-name{font-weight:300;font-size:1.5rem;line-height:1.25;color:var(--wcs-gray)}:host .menu-bar{display:flex;align-items:center;height:100%;margin-left:50px}:host .menu-bar ::slotted(*:not(:first-child)){margin-left:40px}:host ::slotted(a){display:flex;align-items:center;height:100%;font-size:16px;cursor:pointer;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}";
3
+ const comNavCss = ":host{display:block;position:relative;height:75px;border-bottom:solid 1px var(--wcs-text-light)}:host .container{margin:0 calc(3 * var(--wcs-base-margin));height:100%;display:flex;align-items:center;flex-direction:row;justify-content:space-between}:host .container-left{display:flex;height:100%;align-items:center;flex-direction:row}:host .container-right{display:flex;align-items:center}:host .app-name{font-weight:400;font-size:1.5rem;line-height:1.25;color:var(--wcs-gray)}:host .menu-bar{display:none}:host ::slotted(a){padding-top:calc(1.5 * var(--wcs-base-margin));padding-bottom:calc(1.5 * var(--wcs-base-margin));padding-left:calc(3 * var(--wcs-base-margin));display:flex;align-items:center;height:100%;font-size:16px;cursor:pointer;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:\"\\f107\";line-height:1;box-sizing:border-box}:host #mobile-menu-icon{height:24px;padding-left:calc(2 * var(--wcs-base-margin));margin-left:var(--wcs-base-margin);border-left:solid 1px var(--wcs-text-light)}:host #mobile-menu-icon:after{font-family:icons;font-size:24px;cursor:pointer;content:\"\\f198\";line-height:1;box-sizing:border-box}:host #mobile-menu-icon[data-mobile-open]:after{content:\"\\f129\"}:host .mobile-overlay{display:none}:host .mobile-overlay[data-mobile-open]{padding-top:calc(2 * var(--wcs-base-margin));padding-bottom:calc(2 * var(--wcs-base-margin));position:relative;top:0;left:0;right:0;display:block;z-index:9999;background-color:var(--wcs-white)}@media screen and (min-width: 576px){:host .container{margin:0 auto;max-width:var(--wcs-com-content-max-width)}:host .menu-bar{display:flex;align-items:center;height:100%;margin-left:50px}:host .menu-bar ::slotted(*:not(:first-child)){margin-left:40px}:host #mobile-menu-icon{display:none}:host .mobile-overlay{display:none !important}:host ::slotted(a){padding-top:unset;padding-bottom:unset;padding-left:unset}}";
4
4
 
5
5
  let ComNav = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
+ this.mobileMenuOpen = true;
9
+ }
10
+ mobileMenuIconClick() {
11
+ this.mobileMenuOpen = !this.mobileMenuOpen;
12
+ }
13
+ disconnectedCallback() {
14
+ this.resizeObserver.disconnect();
15
+ }
16
+ componentWillLoad() {
17
+ this.resizeObserver = new ResizeObserver(entry => {
18
+ const cr = entry[0].contentRect;
19
+ const paddingRight = cr.right - cr.width;
20
+ const paddingLeft = cr.left;
21
+ if (cr.width < 576 - (paddingLeft + paddingRight)) {
22
+ this.currentActiveSizing = 'mobile';
23
+ }
24
+ else {
25
+ this.currentActiveSizing = 'desktop';
26
+ }
27
+ });
28
+ this.resizeObserver.observe(document.body);
8
29
  }
9
30
  render() {
10
- return (h(Host, null, h("div", { class: "container" }, h("div", { class: "container-left" }, h("div", { class: "app-name" }, this.appName, h("slot", { name: "app-name" })), h("div", { class: "menu-bar" }, h("slot", null))), h("div", null, h("slot", { name: "actions" })))));
31
+ return (h(Host, null, h("div", { class: "container" }, h("div", { class: "container-left" }, h("div", { class: "app-name" }, this.appName, h("slot", { name: "app-name" })), h("div", { class: "menu-bar" }, this.currentActiveSizing === 'desktop' ? h("slot", null) : null)), h("div", { class: "container-right" }, h("slot", { name: "actions" }), h("span", { id: "mobile-menu-icon", "data-mobile-open": this.mobileMenuOpen, onClick: () => this.mobileMenuIconClick() }))), h("div", { class: "mobile-overlay", "data-mobile-open": this.mobileMenuOpen }, this.currentActiveSizing === 'mobile' ? h("slot", null) : null)));
11
32
  }
33
+ get el() { return getElement(this); }
12
34
  };
13
35
  ComNav.style = comNavCss;
14
36
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-b982604a.js';
2
2
  import { S as SelectArrow } from './select-arrow-73ac4016.js';
3
3
  import { c as clickTargetIsElementOrChildren } from './helpers-e2993152.js';
4
- import { c as createPopper } from './popper-5f42e560.js';
4
+ import { c as createPopper } from './popper-548df79b.js';
5
5
 
6
6
  const dropdownCss = ":host{display:flex}wcs-button{--wcs-button-padding:8px 10px 8px 16px !important}:host([no-arrow]) wcs-button{--wcs-button-padding:8px 16px 8px 16px !important}:host([shape=small]) wcs-button{--wcs-button-padding:2px 10px 2px 16px !important}:host([shape=small][no-arrow]) wcs-button{--wcs-button-padding:2px 16px 2px 16px !important}.wcs-button-content-wrapper{display:flex}.popover{display:none;border:1px solid #d7d7d7;border-radius:var(--wcs-border-radius);background-color:var(--wcs-white);z-index:9999}.show{display:block}.container{border-radius:inherit;overflow:hidden;padding:calc(var(--wcs-padding) / 2) 0;background-color:var(--wcs-white)}#arrow,#arrow::before{position:absolute;width:8px;height:8px;background:inherit;border:solid 1px #d7d7d7}#arrow{visibility:hidden;z-index:-1}#arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.popover[data-popper-placement^=top]>#arrow{bottom:-5px}.popover[data-popper-placement^=bottom]>#arrow{top:-6px}.popover[data-popper-placement^=left]>#arrow{right:-4px}.popover[data-popper-placement^=right]>#arrow{left:-6px}";
7
7
 
@@ -39,7 +39,9 @@ let Dropdown = class {
39
39
  }
40
40
  ]
41
41
  });
42
- this.el.shadowRoot.querySelector('.arrow').style.fill = this.buttonTextColor;
42
+ if (!this.noArrow) {
43
+ this.el.shadowRoot.querySelector('.arrow').style.fill = this.buttonTextColor;
44
+ }
43
45
  this.fixForFirefoxBelow63();
44
46
  }
45
47
  fixForFirefoxBelow63() {