@esri/calcite-components 1.0.0-next.355 → 1.0.0-next.359

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 (141) hide show
  1. package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
  4. package/dist/calcite/calcite.esm.js +1 -1
  5. package/dist/calcite/calcite.js +1 -1
  6. package/dist/calcite/{p-3e308abf.system.entry.js → p-019c8036.system.entry.js} +1 -1
  7. package/dist/calcite/{p-5044316a.system.entry.js → p-0ac72794.system.entry.js} +1 -1
  8. package/dist/calcite/{p-1d59e70a.system.entry.js → p-0b187e6a.system.entry.js} +1 -1
  9. package/dist/calcite/p-12c57970.js +5 -0
  10. package/dist/calcite/{p-2787571e.system.entry.js → p-2c3bbbb4.system.entry.js} +2 -2
  11. package/dist/calcite/{p-b57ddca8.entry.js → p-3366ef60.entry.js} +1 -1
  12. package/dist/calcite/p-3c34f20d.system.js +5 -0
  13. package/dist/calcite/{p-be8c7dbb.system.entry.js → p-3f51ac4b.system.entry.js} +1 -1
  14. package/dist/calcite/{p-52966b4c.js → p-4f9b0b0f.js} +1 -1
  15. package/dist/calcite/{p-d6e20af1.system.entry.js → p-4fee156d.system.entry.js} +1 -1
  16. package/dist/calcite/{p-c25f34d6.entry.js → p-55e6b0b2.entry.js} +1 -1
  17. package/dist/calcite/{p-7f68da96.entry.js → p-5d9fe852.entry.js} +1 -1
  18. package/dist/calcite/p-5f285d1d.entry.js +5 -0
  19. package/dist/calcite/p-6173cf08.system.js +5 -0
  20. package/dist/calcite/{p-a7f8b343.entry.js → p-634115dd.entry.js} +1 -1
  21. package/dist/calcite/{p-23a085a3.system.entry.js → p-748c198c.system.entry.js} +1 -1
  22. package/dist/calcite/p-83d41684.entry.js +5 -0
  23. package/dist/calcite/{p-cf9debce.entry.js → p-92ad7d95.entry.js} +1 -1
  24. package/dist/calcite/p-99d32fc3.system.js +5 -0
  25. package/dist/calcite/{p-eca26cba.system.entry.js → p-9a0a29a7.system.entry.js} +1 -1
  26. package/dist/calcite/p-a07e9c46.system.entry.js +5 -0
  27. package/dist/calcite/p-ad81283a.entry.js +5 -0
  28. package/dist/calcite/p-bc00846c.entry.js +5 -0
  29. package/dist/calcite/{p-6c453fd0.system.entry.js → p-c13560e5.system.entry.js} +1 -1
  30. package/dist/calcite/{p-da3b96f9.entry.js → p-d00fbd1e.entry.js} +1 -1
  31. package/dist/calcite/{p-834ec82a.system.js → p-d4bafc77.system.js} +1 -1
  32. package/dist/calcite/{p-a918eec6.entry.js → p-d8653ba3.entry.js} +1 -1
  33. package/dist/calcite/p-dd9f2e61.js +5 -0
  34. package/dist/calcite/{p-15bc7ccd.system.entry.js → p-e8270c76.system.entry.js} +1 -1
  35. package/dist/calcite/p-f3d02833.js +5 -0
  36. package/dist/calcite/p-fcde21ce.system.js +5 -0
  37. package/dist/cjs/calcite-alert.cjs.entry.js +7 -4
  38. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  39. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  40. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
  41. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
  42. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -4
  43. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
  44. package/dist/cjs/calcite-input.cjs.entry.js +19 -4
  45. package/dist/cjs/calcite-popover_2.cjs.entry.js +1 -1
  46. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
  47. package/dist/cjs/calcite-tree_2.cjs.entry.js +0 -1
  48. package/dist/cjs/calcite.cjs.js +2 -2
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/locale-b9b153dd.js +127 -0
  51. package/dist/cjs/number-e813e801.js +84 -0
  52. package/dist/cjs/{popper-ccef76e3.js → popper-adfdc032.js} +28 -9
  53. package/dist/cjs/{resources-d3c42dc4.js → resources-c524c005.js} +1 -1
  54. package/dist/collection/collection-manifest.json +1 -1
  55. package/dist/collection/components/calcite-alert/calcite-alert.css +28 -6
  56. package/dist/collection/components/calcite-alert/calcite-alert.js +30 -4
  57. package/dist/collection/components/calcite-color-picker-swatch/resources.js +1 -1
  58. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
  59. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
  60. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
  61. package/dist/collection/components/calcite-input/calcite-input.js +17 -2
  62. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +2 -2
  63. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -4
  64. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +0 -1
  65. package/dist/collection/utils/locale.js +42 -38
  66. package/dist/collection/utils/number.js +41 -23
  67. package/dist/components/calcite-alert.js +8 -4
  68. package/dist/components/calcite-color-picker-swatch2.js +1 -1
  69. package/dist/components/calcite-input-time-picker.js +1 -1
  70. package/dist/components/calcite-input2.js +17 -2
  71. package/dist/components/calcite-time-picker2.js +3 -3
  72. package/dist/components/calcite-tree-item.js +0 -1
  73. package/dist/components/locale.js +42 -38
  74. package/dist/components/number.js +42 -24
  75. package/dist/components/popper.js +28 -9
  76. package/dist/custom-elements/index.js +139 -81
  77. package/dist/esm/calcite-alert.entry.js +7 -4
  78. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  79. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  80. package/dist/esm/calcite-date-picker_4.entry.js +3 -3
  81. package/dist/esm/calcite-dropdown_3.entry.js +1 -1
  82. package/dist/esm/calcite-input-date-picker.entry.js +4 -4
  83. package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
  84. package/dist/esm/calcite-input.entry.js +19 -4
  85. package/dist/esm/calcite-popover_2.entry.js +1 -1
  86. package/dist/esm/calcite-tooltip_2.entry.js +1 -1
  87. package/dist/esm/calcite-tree_2.entry.js +0 -1
  88. package/dist/esm/calcite.js +2 -2
  89. package/dist/esm/loader.js +2 -2
  90. package/dist/esm/locale-1b48f64f.js +122 -0
  91. package/dist/esm/number-8779395f.js +76 -0
  92. package/dist/esm/{popper-405efdae.js → popper-1814b3c1.js} +28 -9
  93. package/dist/esm/{resources-421133b2.js → resources-74c807b4.js} +1 -1
  94. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  95. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  96. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  97. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  98. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  99. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  100. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  101. package/dist/esm-es5/calcite-input.entry.js +1 -1
  102. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  103. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  104. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  105. package/dist/esm-es5/calcite.js +1 -1
  106. package/dist/esm-es5/loader.js +1 -1
  107. package/dist/esm-es5/locale-1b48f64f.js +5 -0
  108. package/dist/esm-es5/number-8779395f.js +5 -0
  109. package/dist/esm-es5/popper-1814b3c1.js +5 -0
  110. package/dist/esm-es5/{resources-421133b2.js → resources-74c807b4.js} +1 -1
  111. package/dist/extras/docs-json.json +44 -6
  112. package/dist/types/components/calcite-alert/calcite-alert.d.ts +4 -2
  113. package/dist/types/components/calcite-alert/interfaces.d.ts +1 -0
  114. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +1 -1
  115. package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +2 -2
  116. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +2 -2
  117. package/dist/types/components.d.ts +17 -9
  118. package/dist/types/stencil-public-runtime.d.ts +6 -4
  119. package/dist/types/utils/number.d.ts +2 -1
  120. package/hydrate/index.js +140 -81
  121. package/package.json +17 -17
  122. package/readme.md +2 -2
  123. package/dist/calcite/p-0140ba79.entry.js +0 -5
  124. package/dist/calcite/p-11b9e4bb.system.js +0 -5
  125. package/dist/calcite/p-18c4af8f.system.js +0 -5
  126. package/dist/calcite/p-18d9a261.system.js +0 -5
  127. package/dist/calcite/p-22523fc5.entry.js +0 -5
  128. package/dist/calcite/p-54e07c75.entry.js +0 -5
  129. package/dist/calcite/p-6d0d9bba.js +0 -5
  130. package/dist/calcite/p-732a0005.system.entry.js +0 -5
  131. package/dist/calcite/p-8396a2d2.js +0 -5
  132. package/dist/calcite/p-91300144.js +0 -5
  133. package/dist/calcite/p-db85eed9.entry.js +0 -5
  134. package/dist/calcite/p-fc998713.system.js +0 -5
  135. package/dist/cjs/locale-ccfa66f6.js +0 -123
  136. package/dist/cjs/number-f57fd111.js +0 -65
  137. package/dist/esm/locale-86b789f9.js +0 -118
  138. package/dist/esm/number-eb92427e.js +0 -58
  139. package/dist/esm-es5/locale-86b789f9.js +0 -5
  140. package/dist/esm-es5/number-eb92427e.js +0 -5
  141. package/dist/esm-es5/popper-405efdae.js +0 -5
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2022-01-01T01:16:52",
2
+ "timestamp": "2022-01-06T22:04:12",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "2.12.0",
5
+ "version": "2.12.1",
6
6
  "typescriptVersion": "4.3.5"
7
7
  },
8
8
  "components": [
@@ -1740,13 +1740,51 @@
1740
1740
  "optional": false,
1741
1741
  "required": true
1742
1742
  },
1743
+ {
1744
+ "name": "placement",
1745
+ "type": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"top\" | \"top-end\" | \"top-start\"",
1746
+ "mutable": false,
1747
+ "attr": "placement",
1748
+ "reflectToAttr": false,
1749
+ "docs": "specify the placement of the alert",
1750
+ "docsTags": [],
1751
+ "default": "\"bottom\"",
1752
+ "values": [
1753
+ {
1754
+ "value": "bottom",
1755
+ "type": "string"
1756
+ },
1757
+ {
1758
+ "value": "bottom-end",
1759
+ "type": "string"
1760
+ },
1761
+ {
1762
+ "value": "bottom-start",
1763
+ "type": "string"
1764
+ },
1765
+ {
1766
+ "value": "top",
1767
+ "type": "string"
1768
+ },
1769
+ {
1770
+ "value": "top-end",
1771
+ "type": "string"
1772
+ },
1773
+ {
1774
+ "value": "top-start",
1775
+ "type": "string"
1776
+ }
1777
+ ],
1778
+ "optional": false,
1779
+ "required": false
1780
+ },
1743
1781
  {
1744
1782
  "name": "scale",
1745
1783
  "type": "\"l\" | \"m\" | \"s\"",
1746
1784
  "mutable": false,
1747
1785
  "attr": "scale",
1748
1786
  "reflectToAttr": true,
1749
- "docs": "specify the scale of the button, defaults to m",
1787
+ "docs": "specify the scale of the alert, defaults to m",
1750
1788
  "docsTags": [],
1751
1789
  "default": "\"m\"",
1752
1790
  "values": [
@@ -9957,7 +9995,7 @@
9957
9995
  "mutable": true,
9958
9996
  "attr": "value",
9959
9997
  "reflectToAttr": false,
9960
- "docs": "The selected time (always 24-hour format)",
9998
+ "docs": "The selected time in UTC (always 24-hour format)",
9961
9999
  "docsTags": [],
9962
10000
  "default": "null",
9963
10001
  "values": [
@@ -18289,7 +18327,7 @@
18289
18327
  "mutable": false,
18290
18328
  "attr": "step",
18291
18329
  "reflectToAttr": false,
18292
- "docs": "number that specifies the granularity that the value must adhere to",
18330
+ "docs": "number (seconds) that specifies the granularity that the value must adhere to",
18293
18331
  "docsTags": [],
18294
18332
  "default": "60",
18295
18333
  "values": [
@@ -18306,7 +18344,7 @@
18306
18344
  "mutable": true,
18307
18345
  "attr": "value",
18308
18346
  "reflectToAttr": false,
18309
- "docs": "The selected time in UTC",
18347
+ "docs": "The selected time in UTC (always 24-hour format)",
18310
18348
  "docsTags": [],
18311
18349
  "default": "null",
18312
18350
  "values": [
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
2
  import { Scale } from "../interfaces";
3
- import { StatusColor, AlertDuration } from "./interfaces";
3
+ import { AlertDuration, AlertPlacement, StatusColor } from "./interfaces";
4
4
  /** Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
5
5
  * at the bottom of the page. Multiple opened alerts will be added to a queue, allowing users to dismiss them in the order they are provided.
6
6
  */
@@ -29,7 +29,9 @@ export declare class CalciteAlert {
29
29
  intlClose: string;
30
30
  /** Accessible name for the component */
31
31
  label: string;
32
- /** specify the scale of the button, defaults to m */
32
+ /** specify the placement of the alert */
33
+ placement: AlertPlacement;
34
+ /** specify the scale of the alert, defaults to m */
33
35
  scale: Scale;
34
36
  updateRequestedIcon(): void;
35
37
  updateDuration(): void;
@@ -1,5 +1,6 @@
1
1
  export declare type StatusColor = "blue" | "green" | "red" | "yellow";
2
2
  export declare type AlertDuration = "fast" | "medium" | "slow";
3
+ export declare type AlertPlacement = "bottom" | "bottom-end" | "bottom-start" | "top" | "top-end" | "top-start";
3
4
  export declare enum StatusIcons {
4
5
  green = "checkCircle",
5
6
  yellow = "exclamationMarkTriangle",
@@ -50,7 +50,7 @@ export declare class CalciteInputTimePicker implements LabelableComponent, FormC
50
50
  scale: Scale;
51
51
  /** number (seconds) that specifies the granularity that the value must adhere to */
52
52
  step: number;
53
- /** The selected time (always 24-hour format)*/
53
+ /** The selected time in UTC (always 24-hour format) */
54
54
  value: string;
55
55
  valueWatcher(newValue: string): void;
56
56
  labelEl: HTMLCalciteLabelElement;
@@ -2,7 +2,7 @@ import { FunctionalComponent } from "../../stencil-public-runtime";
2
2
  import { JSXBase } from "../../stencil-public-runtime";
3
3
  import { handleFilter } from "./shared-list-logic";
4
4
  import DOMAttributes = JSXBase.DOMAttributes;
5
- interface ListProps extends DOMAttributes {
5
+ interface ListProps extends DOMAttributes<any> {
6
6
  disabled: boolean;
7
7
  loading: boolean;
8
8
  filterEnabled: boolean;
@@ -14,5 +14,5 @@ interface ListProps extends DOMAttributes {
14
14
  }
15
15
  export declare const List: FunctionalComponent<{
16
16
  props: ListProps;
17
- } & DOMAttributes>;
17
+ } & DOMAttributes<any>>;
18
18
  export default List;
@@ -59,9 +59,9 @@ export declare class CalciteTimePicker {
59
59
  localeWatcher(newLocale: string): void;
60
60
  /** The scale (size) of the time picker */
61
61
  scale: Scale;
62
- /** number that specifies the granularity that the value must adhere to */
62
+ /** number (seconds) that specifies the granularity that the value must adhere to */
63
63
  step: number;
64
- /** The selected time in UTC */
64
+ /** The selected time in UTC (always 24-hour format) */
65
65
  value: string;
66
66
  valueWatcher(newValue: string): void;
67
67
  private activeEl;
@@ -9,7 +9,7 @@ import { AccordionAppearance } from "./components/calcite-accordion/interfaces";
9
9
  import { Alignment, Appearance, Columns, FlipContext, Layout, Position, Scale, Status, Width } from "./components/interfaces";
10
10
  import { Placement } from "@popperjs/core";
11
11
  import { OverlayPositioning, PopperPlacement } from "./utils/popper";
12
- import { AlertDuration, StatusColor } from "./components/calcite-alert/interfaces";
12
+ import { AlertDuration, AlertPlacement, StatusColor } from "./components/calcite-alert/interfaces";
13
13
  import { HeadingLevel } from "./components/functional/CalciteHeading";
14
14
  import { BlockSectionToggleDisplay } from "./components/calcite-block-section/interfaces";
15
15
  import { ButtonAlignment, ButtonAppearance, ButtonColor, DropdownIconType } from "./components/calcite-button/interfaces";
@@ -300,7 +300,11 @@ export namespace Components {
300
300
  */
301
301
  "label": string;
302
302
  /**
303
- * specify the scale of the button, defaults to m
303
+ * specify the placement of the alert
304
+ */
305
+ "placement": AlertPlacement;
306
+ /**
307
+ * specify the scale of the alert, defaults to m
304
308
  */
305
309
  "scale": Scale;
306
310
  /**
@@ -1785,7 +1789,7 @@ export namespace Components {
1785
1789
  */
1786
1790
  "step": number;
1787
1791
  /**
1788
- * The selected time (always 24-hour format)
1792
+ * The selected time in UTC (always 24-hour format)
1789
1793
  */
1790
1794
  "value": string;
1791
1795
  }
@@ -3216,11 +3220,11 @@ export namespace Components {
3216
3220
  */
3217
3221
  "setFocus": (target: TimePart) => Promise<void>;
3218
3222
  /**
3219
- * number that specifies the granularity that the value must adhere to
3223
+ * number (seconds) that specifies the granularity that the value must adhere to
3220
3224
  */
3221
3225
  "step": number;
3222
3226
  /**
3223
- * The selected time in UTC
3227
+ * The selected time in UTC (always 24-hour format)
3224
3228
  */
3225
3229
  "value": string;
3226
3230
  }
@@ -4376,7 +4380,11 @@ declare namespace LocalJSX {
4376
4380
  */
4377
4381
  "onCalciteAlertOpen"?: (event: CustomEvent<any>) => void;
4378
4382
  /**
4379
- * specify the scale of the button, defaults to m
4383
+ * specify the placement of the alert
4384
+ */
4385
+ "placement"?: AlertPlacement;
4386
+ /**
4387
+ * specify the scale of the alert, defaults to m
4380
4388
  */
4381
4389
  "scale"?: Scale;
4382
4390
  }
@@ -5864,7 +5872,7 @@ declare namespace LocalJSX {
5864
5872
  */
5865
5873
  "step"?: number;
5866
5874
  /**
5867
- * The selected time (always 24-hour format)
5875
+ * The selected time in UTC (always 24-hour format)
5868
5876
  */
5869
5877
  "value"?: string;
5870
5878
  }
@@ -7239,11 +7247,11 @@ declare namespace LocalJSX {
7239
7247
  */
7240
7248
  "scale"?: Scale;
7241
7249
  /**
7242
- * number that specifies the granularity that the value must adhere to
7250
+ * number (seconds) that specifies the granularity that the value must adhere to
7243
7251
  */
7244
7252
  "step"?: number;
7245
7253
  /**
7246
- * The selected time in UTC
7254
+ * The selected time in UTC (always 24-hour format)
7247
7255
  */
7248
7256
  "value"?: string;
7249
7257
  }
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
666
666
  use: JSXBase.SVGAttributes;
667
667
  view: JSXBase.SVGAttributes;
668
668
  }
669
- interface SlotAttributes {
669
+ interface SlotAttributes extends JSXAttributes {
670
670
  name?: string;
671
671
  slot?: string;
672
672
  onSlotchange?: (event: Event) => void;
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
1427
1427
  z?: number | string;
1428
1428
  zoomAndPan?: string;
1429
1429
  }
1430
- interface DOMAttributes<T = Element> {
1431
- key?: string | number;
1432
- ref?: (elm?: T) => void;
1430
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1433
1431
  slot?: string;
1434
1432
  part?: string;
1435
1433
  exportparts?: string;
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
1550
1548
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1551
1549
  }
1552
1550
  }
1551
+ export interface JSXAttributes<T = Element> {
1552
+ key?: string | number;
1553
+ ref?: (elm?: T) => void;
1554
+ }
1553
1555
  export interface CustomElementsDefineOptions {
1554
1556
  exclude?: string[];
1555
1557
  resourcesUrl?: string;
@@ -3,4 +3,5 @@ export declare function parseNumberString(numberString?: string): string;
3
3
  export declare function sanitizeDecimalString(decimalString: string): string;
4
4
  export declare function sanitizeNegativeString(negativeString: string): string;
5
5
  export declare function sanitizeLeadingZeroString(zeroString: string): string;
6
- export declare function sanitizeNumberString(value: string): string;
6
+ export declare function sanitizeNumberString(numberString: string): string;
7
+ export declare function sanitizeExponentialNumberString(numberString: string, func: (s: string) => string): string;