@esri/calcite-components 1.0.0-next.421 → 1.0.0-next.424
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/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-0ba91238.system.entry.js +5 -0
- package/dist/calcite/{p-afe59546.entry.js → p-2139226c.entry.js} +1 -1
- package/dist/calcite/p-2692ac43.entry.js +5 -0
- package/dist/calcite/p-58392046.system.entry.js +5 -0
- package/dist/calcite/p-62afcb36.system.js +5 -0
- package/dist/calcite/p-69d5736f.entry.js +5 -0
- package/dist/calcite/p-7fb5fec5.entry.js +5 -0
- package/dist/calcite/p-958600ba.system.entry.js +5 -0
- package/dist/calcite/{p-9ad8c7c5.system.entry.js → p-fe3f4e0e.system.entry.js} +1 -1
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +27 -19
- package/dist/cjs/calcite-graph_2.cjs.entry.js +67 -38
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -5
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +6 -1
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +27 -19
- package/dist/collection/components/input-date-picker/input-date-picker.css +5 -0
- package/dist/collection/components/input-date-picker/input-date-picker.js +35 -4
- package/dist/collection/components/input-time-picker/input-time-picker.js +32 -1
- package/dist/collection/components/slider/slider.js +76 -41
- package/dist/components/calcite-input-date-picker.js +12 -6
- package/dist/components/calcite-input-time-picker.js +7 -1
- package/dist/components/calcite-slider.js +67 -38
- package/dist/components/date-picker-month-header.js +27 -19
- package/dist/custom-elements/index.js +112 -65
- package/dist/esm/calcite-date-picker_4.entry.js +27 -19
- package/dist/esm/calcite-graph_2.entry.js +67 -38
- package/dist/esm/calcite-input-date-picker.entry.js +11 -6
- package/dist/esm/calcite-input-time-picker_2.entry.js +6 -1
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +94 -4
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +3 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +6 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +6 -0
- package/dist/types/components/slider/slider.d.ts +5 -2
- package/dist/types/components.d.ts +22 -2
- package/hydrate/index.js +115 -66
- package/package.json +14 -14
- package/readme.md +2 -2
- package/dist/calcite/p-872e82a6.system.entry.js +0 -5
- package/dist/calcite/p-a3527241.system.entry.js +0 -5
- package/dist/calcite/p-a38fe099.entry.js +0 -5
- package/dist/calcite/p-c4cb35ba.system.entry.js +0 -5
- package/dist/calcite/p-cb847074.entry.js +0 -5
- package/dist/calcite/p-e22ab8fa.entry.js +0 -5
- package/dist/calcite/p-fe9380a0.system.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2022-03-
|
|
2
|
+
"timestamp": "2022-03-18T01:11:36",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "2.14.
|
|
5
|
+
"version": "2.14.2",
|
|
6
6
|
"typescriptVersion": "4.5.4"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -9402,6 +9402,65 @@
|
|
|
9402
9402
|
"optional": false,
|
|
9403
9403
|
"required": false
|
|
9404
9404
|
},
|
|
9405
|
+
{
|
|
9406
|
+
"name": "placement",
|
|
9407
|
+
"type": "\"bottom\" | \"bottom-end\" | \"bottom-leading\" | \"bottom-start\" | \"bottom-trailing\" | \"top\" | \"top-end\" | \"top-leading\" | \"top-start\" | \"top-trailing\"",
|
|
9408
|
+
"mutable": false,
|
|
9409
|
+
"attr": "placement",
|
|
9410
|
+
"reflectToAttr": true,
|
|
9411
|
+
"docs": "Determines where the date-picker component will be positioned relative to the input.",
|
|
9412
|
+
"docsTags": [
|
|
9413
|
+
{
|
|
9414
|
+
"name": "default",
|
|
9415
|
+
"text": "\"bottom-leading\""
|
|
9416
|
+
}
|
|
9417
|
+
],
|
|
9418
|
+
"default": "defaultMenuPlacement",
|
|
9419
|
+
"values": [
|
|
9420
|
+
{
|
|
9421
|
+
"value": "bottom",
|
|
9422
|
+
"type": "string"
|
|
9423
|
+
},
|
|
9424
|
+
{
|
|
9425
|
+
"value": "bottom-end",
|
|
9426
|
+
"type": "string"
|
|
9427
|
+
},
|
|
9428
|
+
{
|
|
9429
|
+
"value": "bottom-leading",
|
|
9430
|
+
"type": "string"
|
|
9431
|
+
},
|
|
9432
|
+
{
|
|
9433
|
+
"value": "bottom-start",
|
|
9434
|
+
"type": "string"
|
|
9435
|
+
},
|
|
9436
|
+
{
|
|
9437
|
+
"value": "bottom-trailing",
|
|
9438
|
+
"type": "string"
|
|
9439
|
+
},
|
|
9440
|
+
{
|
|
9441
|
+
"value": "top",
|
|
9442
|
+
"type": "string"
|
|
9443
|
+
},
|
|
9444
|
+
{
|
|
9445
|
+
"value": "top-end",
|
|
9446
|
+
"type": "string"
|
|
9447
|
+
},
|
|
9448
|
+
{
|
|
9449
|
+
"value": "top-leading",
|
|
9450
|
+
"type": "string"
|
|
9451
|
+
},
|
|
9452
|
+
{
|
|
9453
|
+
"value": "top-start",
|
|
9454
|
+
"type": "string"
|
|
9455
|
+
},
|
|
9456
|
+
{
|
|
9457
|
+
"value": "top-trailing",
|
|
9458
|
+
"type": "string"
|
|
9459
|
+
}
|
|
9460
|
+
],
|
|
9461
|
+
"optional": false,
|
|
9462
|
+
"required": false
|
|
9463
|
+
},
|
|
9405
9464
|
{
|
|
9406
9465
|
"name": "proximitySelectionDisabled",
|
|
9407
9466
|
"type": "boolean",
|
|
@@ -10068,6 +10127,34 @@
|
|
|
10068
10127
|
"optional": false,
|
|
10069
10128
|
"required": false
|
|
10070
10129
|
},
|
|
10130
|
+
{
|
|
10131
|
+
"name": "placement",
|
|
10132
|
+
"type": "Placement | PlacementRtl | VariationRtl",
|
|
10133
|
+
"mutable": false,
|
|
10134
|
+
"attr": "placement",
|
|
10135
|
+
"reflectToAttr": true,
|
|
10136
|
+
"docs": "Determines where the popover will be positioned relative to the input.",
|
|
10137
|
+
"docsTags": [
|
|
10138
|
+
{
|
|
10139
|
+
"name": "see",
|
|
10140
|
+
"text": "[PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)"
|
|
10141
|
+
}
|
|
10142
|
+
],
|
|
10143
|
+
"default": "\"auto\"",
|
|
10144
|
+
"values": [
|
|
10145
|
+
{
|
|
10146
|
+
"type": "Placement"
|
|
10147
|
+
},
|
|
10148
|
+
{
|
|
10149
|
+
"type": "PlacementRtl"
|
|
10150
|
+
},
|
|
10151
|
+
{
|
|
10152
|
+
"type": "VariationRtl"
|
|
10153
|
+
}
|
|
10154
|
+
],
|
|
10155
|
+
"optional": false,
|
|
10156
|
+
"required": false
|
|
10157
|
+
},
|
|
10071
10158
|
{
|
|
10072
10159
|
"name": "scale",
|
|
10073
10160
|
"type": "\"l\" | \"m\" | \"s\"",
|
|
@@ -15936,16 +16023,19 @@
|
|
|
15936
16023
|
},
|
|
15937
16024
|
{
|
|
15938
16025
|
"name": "value",
|
|
15939
|
-
"type": "number",
|
|
16026
|
+
"type": "number | number[]",
|
|
15940
16027
|
"mutable": true,
|
|
15941
16028
|
"attr": "value",
|
|
15942
16029
|
"reflectToAttr": true,
|
|
15943
16030
|
"docs": "Currently selected number (if single select)",
|
|
15944
16031
|
"docsTags": [],
|
|
15945
|
-
"default": "
|
|
16032
|
+
"default": "0",
|
|
15946
16033
|
"values": [
|
|
15947
16034
|
{
|
|
15948
16035
|
"type": "number"
|
|
16036
|
+
},
|
|
16037
|
+
{
|
|
16038
|
+
"type": "number[]"
|
|
15949
16039
|
}
|
|
15950
16040
|
],
|
|
15951
16041
|
"optional": false,
|
|
@@ -43,12 +43,14 @@ export declare class DatePickerMonthHeader {
|
|
|
43
43
|
* Increment year on UP/DOWN keys
|
|
44
44
|
*/
|
|
45
45
|
private onYearKey;
|
|
46
|
-
private
|
|
46
|
+
private onYearChange;
|
|
47
|
+
private onYearInput;
|
|
47
48
|
private prevMonthClick;
|
|
48
49
|
private prevMonthKeydown;
|
|
49
50
|
private nextMonthClick;
|
|
50
51
|
private nextMonthKeydown;
|
|
51
52
|
private handleArrowClick;
|
|
53
|
+
private getInRangeDate;
|
|
52
54
|
/**
|
|
53
55
|
* Parse localized year string from input,
|
|
54
56
|
* set to active if in range
|
|
@@ -2,7 +2,7 @@ import { VNode, EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { HeadingLevel } from "../functional/Heading";
|
|
3
3
|
import { LabelableComponent } from "../../utils/label";
|
|
4
4
|
import { FormComponent } from "../../utils/form";
|
|
5
|
-
import { OverlayPositioning, ComputedPlacement } from "../../utils/popper";
|
|
5
|
+
import { OverlayPositioning, ComputedPlacement, MenuPlacement } from "../../utils/popper";
|
|
6
6
|
import { StrictModifiers } from "@popperjs/core";
|
|
7
7
|
import { DateRangeChange } from "../date-picker/interfaces";
|
|
8
8
|
import { InteractiveComponent } from "../../utils/interactive";
|
|
@@ -69,6 +69,11 @@ export declare class InputDatePicker implements LabelableComponent, FormComponen
|
|
|
69
69
|
locale?: string;
|
|
70
70
|
/** specify the scale of the date picker */
|
|
71
71
|
scale: "s" | "m" | "l";
|
|
72
|
+
/**
|
|
73
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
74
|
+
* @default "bottom-leading"
|
|
75
|
+
*/
|
|
76
|
+
placement: MenuPlacement;
|
|
72
77
|
/** Range mode activation */
|
|
73
78
|
range: boolean;
|
|
74
79
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VNode, EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Scale } from "../interfaces";
|
|
3
|
+
import { PopperPlacement } from "../../utils/popper";
|
|
3
4
|
import { LabelableComponent } from "../../utils/label";
|
|
4
5
|
import { FormComponent } from "../../utils/form";
|
|
5
6
|
import { InteractiveComponent } from "../../utils/interactive";
|
|
@@ -51,6 +52,11 @@ export declare class InputTimePicker implements LabelableComponent, FormComponen
|
|
|
51
52
|
required: boolean;
|
|
52
53
|
/** The scale (size) of the time input */
|
|
53
54
|
scale: Scale;
|
|
55
|
+
/**
|
|
56
|
+
* Determines where the popover will be positioned relative to the input.
|
|
57
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
58
|
+
*/
|
|
59
|
+
placement: PopperPlacement;
|
|
54
60
|
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
55
61
|
step: number;
|
|
56
62
|
/** The selected time in UTC (always 24-hour format) */
|
|
@@ -59,7 +59,9 @@ export declare class Slider implements LabelableComponent, FormComponent, Intera
|
|
|
59
59
|
/** Show tick marks on the number line at provided interval */
|
|
60
60
|
ticks?: number;
|
|
61
61
|
/** Currently selected number (if single select) */
|
|
62
|
-
value: null | number;
|
|
62
|
+
value: null | number | number[];
|
|
63
|
+
valueHandler(): void;
|
|
64
|
+
minMaxValueHandler(): void;
|
|
63
65
|
/**
|
|
64
66
|
* Specify the scale of the slider, defaults to m
|
|
65
67
|
*/
|
|
@@ -102,7 +104,6 @@ export declare class Slider implements LabelableComponent, FormComponent, Intera
|
|
|
102
104
|
formEl: HTMLFormElement;
|
|
103
105
|
defaultValue: Slider["value"];
|
|
104
106
|
private guid;
|
|
105
|
-
private isRange;
|
|
106
107
|
private dragProp;
|
|
107
108
|
private lastDragProp;
|
|
108
109
|
private lastDragPropValue;
|
|
@@ -114,6 +115,8 @@ export declare class Slider implements LabelableComponent, FormComponent, Intera
|
|
|
114
115
|
private minValueDragRange;
|
|
115
116
|
private maxValueDragRange;
|
|
116
117
|
private tickValues;
|
|
118
|
+
setValueFromMinMax(): void;
|
|
119
|
+
setMinMaxFromValue(): void;
|
|
117
120
|
onLabelClick(): void;
|
|
118
121
|
private shouldMirror;
|
|
119
122
|
private shouldUseMinValue;
|
|
@@ -1657,6 +1657,11 @@ export namespace Components {
|
|
|
1657
1657
|
* Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.
|
|
1658
1658
|
*/
|
|
1659
1659
|
"overlayPositioning": OverlayPositioning;
|
|
1660
|
+
/**
|
|
1661
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
1662
|
+
* @default "bottom-leading"
|
|
1663
|
+
*/
|
|
1664
|
+
"placement": MenuPlacement;
|
|
1660
1665
|
/**
|
|
1661
1666
|
* Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range.
|
|
1662
1667
|
*/
|
|
@@ -1788,6 +1793,11 @@ export namespace Components {
|
|
|
1788
1793
|
* The name of the time input
|
|
1789
1794
|
*/
|
|
1790
1795
|
"name": string;
|
|
1796
|
+
/**
|
|
1797
|
+
* Determines where the popover will be positioned relative to the input.
|
|
1798
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
1799
|
+
*/
|
|
1800
|
+
"placement": PopperPlacement;
|
|
1791
1801
|
/**
|
|
1792
1802
|
* When true, makes the component required for form-submission.
|
|
1793
1803
|
*/
|
|
@@ -2798,7 +2808,7 @@ export namespace Components {
|
|
|
2798
2808
|
/**
|
|
2799
2809
|
* Currently selected number (if single select)
|
|
2800
2810
|
*/
|
|
2801
|
-
"value": null | number;
|
|
2811
|
+
"value": null | number | number[];
|
|
2802
2812
|
}
|
|
2803
2813
|
interface CalciteSortableList {
|
|
2804
2814
|
/**
|
|
@@ -5809,6 +5819,11 @@ declare namespace LocalJSX {
|
|
|
5809
5819
|
* Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.
|
|
5810
5820
|
*/
|
|
5811
5821
|
"overlayPositioning"?: OverlayPositioning;
|
|
5822
|
+
/**
|
|
5823
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
5824
|
+
* @default "bottom-leading"
|
|
5825
|
+
*/
|
|
5826
|
+
"placement"?: MenuPlacement;
|
|
5812
5827
|
/**
|
|
5813
5828
|
* Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range.
|
|
5814
5829
|
*/
|
|
@@ -5928,6 +5943,11 @@ declare namespace LocalJSX {
|
|
|
5928
5943
|
* Fires when the time value is changed as a result of user input.
|
|
5929
5944
|
*/
|
|
5930
5945
|
"onCalciteInputTimePickerChange"?: (event: CustomEvent<string>) => void;
|
|
5946
|
+
/**
|
|
5947
|
+
* Determines where the popover will be positioned relative to the input.
|
|
5948
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
5949
|
+
*/
|
|
5950
|
+
"placement"?: PopperPlacement;
|
|
5931
5951
|
/**
|
|
5932
5952
|
* The scale (size) of the time input
|
|
5933
5953
|
*/
|
|
@@ -6911,7 +6931,7 @@ declare namespace LocalJSX {
|
|
|
6911
6931
|
/**
|
|
6912
6932
|
* Currently selected number (if single select)
|
|
6913
6933
|
*/
|
|
6914
|
-
"value"?: null | number;
|
|
6934
|
+
"value"?: null | number | number[];
|
|
6915
6935
|
}
|
|
6916
6936
|
interface CalciteSortableList {
|
|
6917
6937
|
/**
|