@esri/calcite-components 1.0.0-next.319 → 1.0.0-next.322

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 (84) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-04bce033.entry.js +5 -0
  3. package/dist/calcite/p-1480eb2d.entry.js +5 -0
  4. package/dist/calcite/p-414ce3c1.system.entry.js +5 -0
  5. package/dist/calcite/p-4d4ba7df.entry.js +5 -0
  6. package/dist/calcite/{p-8b2d4eac.system.entry.js → p-4e95e13d.system.entry.js} +1 -1
  7. package/dist/calcite/p-58208234.system.entry.js +5 -0
  8. package/dist/calcite/{p-9be50494.entry.js → p-77600274.entry.js} +1 -1
  9. package/dist/calcite/p-8e252799.system.js +1 -1
  10. package/dist/calcite/{p-f97e1a2d.entry.js → p-a57aa5d0.entry.js} +1 -1
  11. package/dist/calcite/{p-6c5b849f.system.entry.js → p-ac417011.system.entry.js} +1 -1
  12. package/dist/calcite/p-ad617a5a.entry.js +5 -0
  13. package/dist/calcite/p-ed82600e.system.entry.js +5 -0
  14. package/dist/calcite/p-fa9a1d8f.system.entry.js +5 -0
  15. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  16. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -1
  17. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +349 -223
  18. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  19. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -1
  20. package/dist/cjs/{calcite-radio_2.cjs.entry.js → calcite-radio-button.cjs.entry.js} +2 -43
  21. package/dist/cjs/calcite.cjs.js +1 -1
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/collection/collection-manifest.json +5 -7
  24. package/dist/collection/components/calcite-button/calcite-button.js +3 -2
  25. package/dist/collection/components/calcite-combobox/calcite-combobox.js +4 -1
  26. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +81 -76
  27. package/dist/collection/components/calcite-label/calcite-label.css +0 -1
  28. package/dist/collection/components/calcite-option/calcite-option.js +3 -1
  29. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +69 -0
  30. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +1 -1
  31. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +56 -91
  32. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +254 -289
  33. package/dist/collection/components/calcite-time-picker/resources.js +15 -9
  34. package/dist/collection/utils/time.js +144 -36
  35. package/dist/components/calcite-button2.js +2 -2
  36. package/dist/components/calcite-combobox.js +4 -1
  37. package/dist/components/calcite-input-time-picker.js +51 -48
  38. package/dist/components/calcite-label2.js +1 -1
  39. package/dist/components/calcite-option.js +3 -1
  40. package/dist/components/calcite-radio-button.js +3 -9
  41. package/dist/components/calcite-time-picker2.js +320 -187
  42. package/dist/custom-elements/index.d.ts +0 -6
  43. package/dist/custom-elements/index.js +364 -277
  44. package/dist/esm/calcite-button.entry.js +2 -2
  45. package/dist/esm/calcite-combobox_3.entry.js +4 -1
  46. package/dist/esm/calcite-input-time-picker_2.entry.js +349 -223
  47. package/dist/esm/calcite-label.entry.js +1 -1
  48. package/dist/esm/calcite-option_3.entry.js +3 -1
  49. package/dist/esm/{calcite-radio_2.entry.js → calcite-radio-button.entry.js} +4 -44
  50. package/dist/esm/calcite.js +1 -1
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/esm-es5/calcite-button.entry.js +1 -1
  53. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  54. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  55. package/dist/esm-es5/calcite-label.entry.js +1 -1
  56. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  57. package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
  58. package/dist/esm-es5/calcite.js +1 -1
  59. package/dist/esm-es5/loader.js +1 -1
  60. package/dist/extras/docs-json.json +24 -211
  61. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +12 -4
  62. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +35 -23
  63. package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
  64. package/dist/types/components.d.ts +16 -93
  65. package/dist/types/preact.d.ts +0 -2
  66. package/dist/types/utils/time.d.ts +18 -5
  67. package/hydrate/index.js +381 -296
  68. package/package.json +1 -1
  69. package/readme.md +2 -2
  70. package/dist/calcite/p-12a9599d.system.entry.js +0 -5
  71. package/dist/calcite/p-1e4955d7.entry.js +0 -5
  72. package/dist/calcite/p-2b137143.system.entry.js +0 -5
  73. package/dist/calcite/p-35c5e6bd.entry.js +0 -5
  74. package/dist/calcite/p-4af85388.system.entry.js +0 -5
  75. package/dist/calcite/p-9634f89d.entry.js +0 -5
  76. package/dist/calcite/p-a98e5444.system.entry.js +0 -5
  77. package/dist/calcite/p-fccc1605.entry.js +0 -5
  78. package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
  79. package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
  80. package/dist/components/calcite-radio.d.ts +0 -11
  81. package/dist/components/calcite-radio.js +0 -10
  82. package/dist/components/calcite-radio2.js +0 -71
  83. package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
  84. package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
@@ -146,11 +146,11 @@ let CalciteButton = class {
146
146
  render() {
147
147
  const dir = getElementDir(this.el);
148
148
  const Tag = this.childElType;
149
- const loader = (h("div", { class: CSS.buttonLoader }, this.hasLoader ? (h("calcite-loader", { active: true, class: this.loading ? CSS.loadingIn : CSS.loadingOut, inline: true, label: this.intlLoading, scale: "m" })) : null));
149
+ const loaderNode = this.hasLoader ? (h("div", { class: CSS.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS.loadingIn : CSS.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
150
150
  const iconStartEl = (h("calcite-icon", { class: { [CSS.icon]: true, [CSS.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
151
151
  const iconEndEl = (h("calcite-icon", { class: { [CSS.icon]: true, [CSS.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
152
152
  const contentEl = (h("span", { class: CSS.content }, h("slot", null)));
153
- return (h(Tag, { "aria-label": getLabelText(this), class: { [CSS_UTILITY.rtl]: dir === "rtl", [CSS.contentSlotted]: this.hasContent }, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loader, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
153
+ return (h(Tag, { "aria-label": getLabelText(this), class: { [CSS_UTILITY.rtl]: dir === "rtl", [CSS.contentSlotted]: this.hasContent }, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
154
154
  }
155
155
  //--------------------------------------------------------------------------
156
156
  //
@@ -357,7 +357,9 @@ let CalciteCombobox = class {
357
357
  };
358
358
  this.setInactiveIfNotContained = (event) => {
359
359
  const composedPath = event.composedPath();
360
- if (!this.active || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
360
+ if ((!this.active && !this.open) ||
361
+ composedPath.includes(this.el) ||
362
+ composedPath.includes(this.referenceEl)) {
361
363
  return;
362
364
  }
363
365
  if (this.allowCustomValues && this.text) {
@@ -372,6 +374,7 @@ let CalciteCombobox = class {
372
374
  this.updateActiveItemIndex(-1);
373
375
  }
374
376
  this.active = false;
377
+ this.open = false;
375
378
  };
376
379
  this.setMenuEl = (el) => {
377
380
  this.menuEl = el;