@esri/calcite-components 1.0.0-next.316 → 1.0.0-next.317
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/p-01c9406e.js +5 -0
- package/dist/calcite/p-0b53c2c6.system.entry.js +5 -0
- package/dist/calcite/p-0d67d5bf.system.entry.js +5 -0
- package/dist/calcite/p-12a9599d.system.entry.js +5 -0
- package/dist/calcite/p-141051c4.entry.js +5 -0
- package/dist/calcite/{p-dacd3cf8.entry.js → p-19d3c50f.system.entry.js} +2 -2
- package/dist/calcite/p-1de453ba.entry.js +5 -0
- package/dist/calcite/p-1e4955d7.entry.js +5 -0
- package/dist/calcite/p-1eb85972.entry.js +5 -0
- package/dist/calcite/p-26f8f2d1.js +5 -0
- package/dist/calcite/{p-051cc8c6.entry.js → p-29d4765b.entry.js} +1 -1
- package/dist/calcite/p-2b137143.system.entry.js +5 -0
- package/dist/calcite/{p-99de28b4.system.entry.js → p-30afa3c6.system.entry.js} +1 -1
- package/dist/calcite/p-35c5e6bd.entry.js +5 -0
- package/dist/calcite/{p-abdc7a4b.system.entry.js → p-3f07a3e7.system.entry.js} +1 -1
- package/dist/calcite/p-3f82f702.system.entry.js +5 -0
- package/dist/calcite/p-41f87fe7.entry.js +5 -0
- package/dist/calcite/p-437e9d52.entry.js +5 -0
- package/dist/calcite/p-4af85388.system.entry.js +5 -0
- package/dist/calcite/p-4bd82e40.system.js +5 -0
- package/dist/calcite/p-4e47f1a5.entry.js +5 -0
- package/dist/calcite/p-535d635b.system.entry.js +5 -0
- package/dist/calcite/p-58e21391.system.entry.js +5 -0
- package/dist/calcite/p-5c606579.entry.js +5 -0
- package/dist/calcite/{p-ab9c6a18.entry.js → p-5dc52ebc.entry.js} +1 -1
- package/dist/calcite/p-5dce20e5.system.entry.js +5 -0
- package/dist/calcite/{p-dff7dc90.system.js → p-60916f97.system.js} +1 -1
- package/dist/calcite/p-65748440.entry.js +5 -0
- package/dist/calcite/p-6af46786.entry.js +5 -0
- package/dist/calcite/p-7311f615.entry.js +5 -0
- package/dist/calcite/p-732d4acf.entry.js +5 -0
- package/dist/calcite/p-7bf46f12.system.entry.js +5 -0
- package/dist/calcite/p-88784777.system.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-fb8b2c96.entry.js → p-9339cca3.entry.js} +1 -1
- package/dist/calcite/{p-f07d3627.js → p-935ff1d1.js} +1 -1
- package/dist/calcite/p-949c8f43.system.entry.js +5 -0
- package/dist/calcite/{p-83fca16e.system.entry.js → p-95a17f62.system.entry.js} +1 -1
- package/dist/calcite/p-9634f89d.entry.js +5 -0
- package/dist/calcite/p-97f8034a.system.entry.js +5 -0
- package/dist/calcite/p-9dff8dc8.system.entry.js +5 -0
- package/dist/calcite/p-a7be885b.entry.js +5 -0
- package/dist/calcite/p-ab8ce668.system.entry.js +5 -0
- package/dist/calcite/{p-e956e279.js → p-b22ebcf2.js} +1 -1
- package/dist/calcite/p-b6aabc24.entry.js +5 -0
- package/dist/calcite/p-bf82491b.entry.js +5 -0
- package/dist/calcite/p-d4e9d7bb.system.entry.js +5 -0
- package/dist/calcite/p-dab6ebab.system.entry.js +5 -0
- package/dist/calcite/p-ddcf2620.system.entry.js +5 -0
- package/dist/calcite/p-e1da1646.entry.js +5 -0
- package/dist/calcite/p-e9e13891.entry.js +5 -0
- package/dist/calcite/{p-4035444d.system.js → p-f825e054.system.js} +1 -1
- package/dist/calcite/{p-c937f25f.system.js → p-f8266626.system.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -4
- package/dist/cjs/calcite-card.cjs.entry.js +1 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +17 -18
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -3
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +5 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -15
- package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -11
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -5
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +23 -24
- package/dist/cjs/calcite-input.cjs.entry.js +4 -5
- package/dist/cjs/calcite-modal.cjs.entry.js +1 -2
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +5 -6
- package/dist/cjs/calcite-radio_2.cjs.entry.js +6 -7
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +2 -3
- package/dist/cjs/calcite-switch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -2
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-69dc9583.js → locale-d223548e.js} +1 -1
- package/dist/cjs/{number-e6448e15.js → number-7d42a856.js} +8 -3
- package/dist/cjs/{resources-3f7b51c8.js → resources-c2496817.js} +1 -1
- package/dist/cjs/{resources-1177e39b.js → resources-fee43dc4.js} +3 -3
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -2
- package/dist/collection/components/calcite-card/calcite-card.js +1 -2
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +3 -4
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +1 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +2 -3
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +1 -2
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +1 -2
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +3 -4
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -3
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +1 -2
- package/dist/collection/components/calcite-filter/calcite-filter.js +3 -37
- package/dist/collection/components/calcite-input/calcite-input.js +1 -2
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +1 -2
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +1 -2
- package/dist/collection/components/calcite-modal/calcite-modal.js +1 -2
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +1 -2
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +1 -2
- package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +1 -2
- package/dist/collection/components/calcite-switch/calcite-switch.js +1 -2
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +1 -2
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +7 -7
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
- package/dist/collection/utils/key.js +0 -23
- package/dist/components/calcite-accordion-item.js +1 -2
- package/dist/components/calcite-accordion.js +1 -2
- package/dist/components/calcite-card.js +1 -2
- package/dist/components/calcite-color-picker-hex-input2.js +1 -2
- package/dist/components/calcite-color-picker.js +3 -4
- package/dist/components/calcite-combobox.js +2 -3
- package/dist/components/calcite-date-picker-day2.js +1 -2
- package/dist/components/calcite-date-picker-month-header2.js +3 -4
- package/dist/components/calcite-date-picker-month2.js +1 -2
- package/dist/components/calcite-date-picker2.js +1 -2
- package/dist/components/calcite-dropdown-item.js +1 -2
- package/dist/components/calcite-dropdown2.js +2 -3
- package/dist/components/calcite-filter2.js +1 -16
- package/dist/components/calcite-input-date-picker.js +1 -2
- package/dist/components/calcite-input-time-picker.js +1 -2
- package/dist/components/calcite-input2.js +2 -3
- package/dist/components/calcite-modal.js +1 -2
- package/dist/components/calcite-popover2.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -2
- package/dist/components/calcite-radio-group.js +1 -2
- package/dist/components/calcite-slider.js +1 -2
- package/dist/components/calcite-stepper-item.js +1 -2
- package/dist/components/calcite-stepper.js +1 -2
- package/dist/components/calcite-switch2.js +1 -2
- package/dist/components/calcite-tab-title2.js +1 -2
- package/dist/components/calcite-time-picker2.js +7 -8
- package/dist/components/calcite-tooltip-manager2.js +1 -2
- package/dist/components/calcite-tree-item.js +1 -2
- package/dist/components/number.js +5 -2
- package/dist/components/shared-list-render.js +3 -3
- package/dist/custom-elements/index.js +47 -84
- package/dist/esm/calcite-accordion_2.entry.js +2 -3
- package/dist/esm/calcite-card.entry.js +1 -2
- package/dist/esm/calcite-color-picker_3.entry.js +4 -5
- package/dist/esm/calcite-combobox_3.entry.js +2 -3
- package/dist/esm/calcite-date-picker_4.entry.js +9 -10
- package/dist/esm/calcite-dropdown_3.entry.js +3 -4
- package/dist/esm/calcite-filter.entry.js +1 -15
- package/dist/esm/calcite-graph_2.entry.js +1 -2
- package/dist/esm/calcite-input-date-picker.entry.js +4 -5
- package/dist/esm/calcite-input-time-picker_2.entry.js +8 -9
- package/dist/esm/calcite-input.entry.js +3 -4
- package/dist/esm/calcite-modal.entry.js +1 -2
- package/dist/esm/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm/calcite-popover_2.entry.js +1 -1
- package/dist/esm/calcite-radio-group_2.entry.js +1 -2
- package/dist/esm/calcite-radio_2.entry.js +1 -2
- package/dist/esm/calcite-stepper_2.entry.js +2 -3
- package/dist/esm/calcite-switch.entry.js +1 -2
- package/dist/esm/calcite-tab_4.entry.js +1 -2
- package/dist/esm/calcite-tooltip_2.entry.js +1 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -2
- package/dist/esm/calcite-value-list_2.entry.js +1 -1
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-6c1b85c7.js → locale-641b6af3.js} +1 -1
- package/dist/esm/{number-e7393766.js → number-2609a8bc.js} +5 -2
- package/dist/esm/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
- package/dist/esm/{resources-eafda211.js → resources-c31631e5.js} +3 -3
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- 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-input.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-641b6af3.js +5 -0
- package/dist/esm-es5/number-2609a8bc.js +5 -0
- package/dist/esm-es5/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
- package/dist/esm-es5/{resources-eafda211.js → resources-c31631e5.js} +1 -1
- package/dist/extras/docs-json.json +2 -23
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +2 -1
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
- package/dist/types/components.d.ts +1 -11
- package/dist/types/utils/key.d.ts +0 -4
- package/hydrate/index.js +46 -84
- package/package.json +4 -4
- package/readme.md +2 -2
- package/dist/calcite/p-04a2538a.entry.js +0 -5
- package/dist/calcite/p-0c827dec.entry.js +0 -5
- package/dist/calcite/p-1161e56f.js +0 -5
- package/dist/calcite/p-18fbf2af.system.entry.js +0 -5
- package/dist/calcite/p-20f91a4e.system.entry.js +0 -5
- package/dist/calcite/p-227bc238.system.entry.js +0 -5
- package/dist/calcite/p-239b44dd.system.entry.js +0 -5
- package/dist/calcite/p-2c66fb61.entry.js +0 -5
- package/dist/calcite/p-343cd887.entry.js +0 -5
- package/dist/calcite/p-42c7e2f0.system.entry.js +0 -5
- package/dist/calcite/p-4cc182af.system.entry.js +0 -5
- package/dist/calcite/p-50273eed.entry.js +0 -5
- package/dist/calcite/p-538e542a.system.entry.js +0 -5
- package/dist/calcite/p-56b352bf.system.js +0 -5
- package/dist/calcite/p-57e9b7cb.system.entry.js +0 -5
- package/dist/calcite/p-6ca051ef.entry.js +0 -5
- package/dist/calcite/p-72563742.js +0 -5
- package/dist/calcite/p-80a527ef.entry.js +0 -5
- package/dist/calcite/p-837f9bb4.system.entry.js +0 -5
- package/dist/calcite/p-84d6696b.entry.js +0 -5
- package/dist/calcite/p-8da7ad4b.entry.js +0 -5
- package/dist/calcite/p-91645bf7.system.js +0 -5
- package/dist/calcite/p-b0b6baf4.system.entry.js +0 -5
- package/dist/calcite/p-b174f9ac.entry.js +0 -5
- package/dist/calcite/p-b2ab0485.js +0 -5
- package/dist/calcite/p-b3e418f0.entry.js +0 -5
- package/dist/calcite/p-b5f412fb.entry.js +0 -5
- package/dist/calcite/p-b7518275.system.entry.js +0 -5
- package/dist/calcite/p-b75ffebb.system.entry.js +0 -5
- package/dist/calcite/p-bef1f0d9.entry.js +0 -5
- package/dist/calcite/p-d830efad.entry.js +0 -5
- package/dist/calcite/p-dcc6b40f.entry.js +0 -5
- package/dist/calcite/p-dccb5ffd.entry.js +0 -5
- package/dist/calcite/p-ea3fee96.entry.js +0 -5
- package/dist/calcite/p-eb0f1e0f.system.entry.js +0 -5
- package/dist/calcite/p-ed3f000d.system.entry.js +0 -5
- package/dist/calcite/p-ee40deba.system.entry.js +0 -5
- package/dist/calcite/p-ee45cff5.system.entry.js +0 -5
- package/dist/calcite/p-f05b5dc9.system.entry.js +0 -5
- package/dist/calcite/p-f1832595.system.entry.js +0 -5
- package/dist/calcite/p-f6323ffa.system.entry.js +0 -5
- package/dist/calcite/p-fb817417.entry.js +0 -5
- package/dist/cjs/key-8bfb93ec.js +0 -37
- package/dist/components/key.js +0 -33
- package/dist/esm/key-69001a68.js +0 -33
- package/dist/esm-es5/key-69001a68.js +0 -5
- package/dist/esm-es5/locale-6c1b85c7.js +0 -5
- package/dist/esm-es5/number-e7393766.js +0 -5
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
const dom = require('./dom-41ce6029.js');
|
|
13
12
|
const math = require('./math-145c80e2.js');
|
|
14
13
|
const label = require('./label-98a31f7d.js');
|
|
@@ -509,34 +508,34 @@ let CalciteSlider = class {
|
|
|
509
508
|
const mirror = this.shouldMirror();
|
|
510
509
|
const { activeProp, max, min, pageStep, step } = this;
|
|
511
510
|
const value = this[activeProp];
|
|
512
|
-
const key
|
|
513
|
-
if (key
|
|
511
|
+
const key = event.key;
|
|
512
|
+
if (key === "Enter" || key === " ") {
|
|
514
513
|
event.preventDefault();
|
|
515
514
|
return;
|
|
516
515
|
}
|
|
517
516
|
let adjustment;
|
|
518
|
-
if (key
|
|
519
|
-
const directionFactor = mirror && key
|
|
517
|
+
if (key === "ArrowUp" || key === "ArrowRight") {
|
|
518
|
+
const directionFactor = mirror && key === "ArrowRight" ? -1 : 1;
|
|
520
519
|
adjustment = value + step * directionFactor;
|
|
521
520
|
}
|
|
522
|
-
else if (key
|
|
523
|
-
const directionFactor = mirror && key
|
|
521
|
+
else if (key === "ArrowDown" || key === "ArrowLeft") {
|
|
522
|
+
const directionFactor = mirror && key === "ArrowLeft" ? -1 : 1;
|
|
524
523
|
adjustment = value - step * directionFactor;
|
|
525
524
|
}
|
|
526
|
-
else if (key
|
|
525
|
+
else if (key === "PageUp") {
|
|
527
526
|
if (pageStep) {
|
|
528
527
|
adjustment = value + pageStep;
|
|
529
528
|
}
|
|
530
529
|
}
|
|
531
|
-
else if (key
|
|
530
|
+
else if (key === "PageDown") {
|
|
532
531
|
if (pageStep) {
|
|
533
532
|
adjustment = value - pageStep;
|
|
534
533
|
}
|
|
535
534
|
}
|
|
536
|
-
else if (key
|
|
535
|
+
else if (key === "Home") {
|
|
537
536
|
adjustment = min;
|
|
538
537
|
}
|
|
539
|
-
else if (key
|
|
538
|
+
else if (key === "End") {
|
|
540
539
|
adjustment = max;
|
|
541
540
|
}
|
|
542
541
|
if (isNaN(adjustment)) {
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
10
|
+
const resources = require('./resources-c2496817.js');
|
|
11
11
|
const dom = require('./dom-41ce6029.js');
|
|
12
|
-
const key = require('./key-8bfb93ec.js');
|
|
13
12
|
const label = require('./label-98a31f7d.js');
|
|
14
13
|
const form = require('./form-7f276aa5.js');
|
|
15
14
|
const popper = require('./popper-4c24a334.js');
|
|
16
|
-
require('./locale-
|
|
17
|
-
require('./number-
|
|
15
|
+
require('./locale-d223548e.js');
|
|
16
|
+
require('./number-7d42a856.js');
|
|
18
17
|
require('./guid-b270f0db.js');
|
|
19
18
|
|
|
20
19
|
const calciteInputDatePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible}:host .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{-webkit-box-shadow:none;box-shadow:none;position:static;width:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{background-color:var(--calcite-ui-background);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;border-right-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;left:0;padding-left:0.625rem;padding-right:0.625rem;margin-left:1px;margin-right:1px;position:absolute;z-index:10;background-color:var(--calcite-ui-foreground-1)}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}:host([active]) .menu-container{visibility:visible;pointer-events:auto}.input .calcite-input__wrapper{margin-top:0}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{width:0.75rem;height:0.75rem;min-width:0}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
@@ -83,7 +82,7 @@ let CalciteInputDatePicker = class {
|
|
|
83
82
|
this.active = false;
|
|
84
83
|
};
|
|
85
84
|
this.keyUpHandler = (e) => {
|
|
86
|
-
if (
|
|
85
|
+
if (e.key === "Escape") {
|
|
87
86
|
this.active = false;
|
|
88
87
|
}
|
|
89
88
|
};
|
|
@@ -8,8 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const
|
|
12
|
-
const number = require('./number-e6448e15.js');
|
|
11
|
+
const number = require('./number-7d42a856.js');
|
|
13
12
|
const label = require('./label-98a31f7d.js');
|
|
14
13
|
const form = require('./form-7f276aa5.js');
|
|
15
14
|
require('./dom-41ce6029.js');
|
|
@@ -181,7 +180,7 @@ let CalciteInputTimePicker = class {
|
|
|
181
180
|
this.internalValueChange = false;
|
|
182
181
|
}
|
|
183
182
|
keyUpHandler(event) {
|
|
184
|
-
if (
|
|
183
|
+
if (event.key === "Escape" && this.active) {
|
|
185
184
|
this.active = false;
|
|
186
185
|
}
|
|
187
186
|
}
|
|
@@ -423,9 +422,9 @@ let CalciteTimePicker = class {
|
|
|
423
422
|
}
|
|
424
423
|
};
|
|
425
424
|
this.hourKeyDownHandler = (event) => {
|
|
426
|
-
const key
|
|
427
|
-
if (
|
|
428
|
-
const keyAsNumber = parseInt(key
|
|
425
|
+
const key = event.key;
|
|
426
|
+
if (number.numberKeys.includes(key)) {
|
|
427
|
+
const keyAsNumber = parseInt(key);
|
|
429
428
|
let newHour;
|
|
430
429
|
if (number.isValidNumber(this.hour)) {
|
|
431
430
|
switch (this.hourDisplayFormat) {
|
|
@@ -454,7 +453,7 @@ let CalciteTimePicker = class {
|
|
|
454
453
|
this.setTime("hour", newHour);
|
|
455
454
|
}
|
|
456
455
|
else {
|
|
457
|
-
switch (key
|
|
456
|
+
switch (key) {
|
|
458
457
|
case "Backspace":
|
|
459
458
|
case "Delete":
|
|
460
459
|
this.setTime("hour", null);
|
|
@@ -511,7 +510,7 @@ let CalciteTimePicker = class {
|
|
|
511
510
|
}
|
|
512
511
|
};
|
|
513
512
|
this.meridiemKeyDownHandler = (event) => {
|
|
514
|
-
switch (
|
|
513
|
+
switch (event.key) {
|
|
515
514
|
case "a":
|
|
516
515
|
this.setTime("meridiem", "AM");
|
|
517
516
|
break;
|
|
@@ -547,9 +546,9 @@ let CalciteTimePicker = class {
|
|
|
547
546
|
}
|
|
548
547
|
};
|
|
549
548
|
this.minuteKeyDownHandler = (event) => {
|
|
550
|
-
const key
|
|
551
|
-
if (
|
|
552
|
-
const keyAsNumber = parseInt(key
|
|
549
|
+
const key = event.key;
|
|
550
|
+
if (number.numberKeys.includes(key)) {
|
|
551
|
+
const keyAsNumber = parseInt(key);
|
|
553
552
|
let newMinute;
|
|
554
553
|
if (number.isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
555
554
|
const minuteAsNumber = parseInt(this.minute);
|
|
@@ -564,7 +563,7 @@ let CalciteTimePicker = class {
|
|
|
564
563
|
this.setTime("minute", newMinute);
|
|
565
564
|
}
|
|
566
565
|
else {
|
|
567
|
-
switch (key
|
|
566
|
+
switch (key) {
|
|
568
567
|
case "Backspace":
|
|
569
568
|
case "Delete":
|
|
570
569
|
this.setTime("minute", null);
|
|
@@ -595,9 +594,9 @@ let CalciteTimePicker = class {
|
|
|
595
594
|
}
|
|
596
595
|
};
|
|
597
596
|
this.secondKeyDownHandler = (event) => {
|
|
598
|
-
const key
|
|
599
|
-
if (
|
|
600
|
-
const keyAsNumber = parseInt(key
|
|
597
|
+
const key = event.key;
|
|
598
|
+
if (number.numberKeys.includes(key)) {
|
|
599
|
+
const keyAsNumber = parseInt(key);
|
|
601
600
|
let newSecond;
|
|
602
601
|
if (number.isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
603
602
|
const secondAsNumber = parseInt(this.second);
|
|
@@ -612,7 +611,7 @@ let CalciteTimePicker = class {
|
|
|
612
611
|
this.setTime("second", newSecond);
|
|
613
612
|
}
|
|
614
613
|
else {
|
|
615
|
-
switch (key
|
|
614
|
+
switch (key) {
|
|
616
615
|
case "Backspace":
|
|
617
616
|
case "Delete":
|
|
618
617
|
this.setTime("second", null);
|
|
@@ -704,15 +703,15 @@ let CalciteTimePicker = class {
|
|
|
704
703
|
this.calciteTimePickerFocus.emit();
|
|
705
704
|
}
|
|
706
705
|
keyDownHandler(event) {
|
|
707
|
-
const key
|
|
706
|
+
const key = event.key;
|
|
708
707
|
switch (this.activeEl) {
|
|
709
708
|
case this.hourEl:
|
|
710
|
-
if (key
|
|
709
|
+
if (key === "ArrowRight") {
|
|
711
710
|
this.setFocus("minute");
|
|
712
711
|
}
|
|
713
712
|
break;
|
|
714
713
|
case this.minuteEl:
|
|
715
|
-
switch (key
|
|
714
|
+
switch (key) {
|
|
716
715
|
case "ArrowLeft":
|
|
717
716
|
this.setFocus("hour");
|
|
718
717
|
break;
|
|
@@ -727,7 +726,7 @@ let CalciteTimePicker = class {
|
|
|
727
726
|
}
|
|
728
727
|
break;
|
|
729
728
|
case this.secondEl:
|
|
730
|
-
switch (key
|
|
729
|
+
switch (key) {
|
|
731
730
|
case "ArrowLeft":
|
|
732
731
|
this.setFocus("minute");
|
|
733
732
|
break;
|
|
@@ -739,7 +738,7 @@ let CalciteTimePicker = class {
|
|
|
739
738
|
}
|
|
740
739
|
break;
|
|
741
740
|
case this.meridiemEl:
|
|
742
|
-
switch (key
|
|
741
|
+
switch (key) {
|
|
743
742
|
case "ArrowLeft":
|
|
744
743
|
if (this.step !== 60) {
|
|
745
744
|
this.setFocus("second");
|
|
@@ -763,11 +762,11 @@ let CalciteTimePicker = class {
|
|
|
763
762
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
764
763
|
}
|
|
765
764
|
buttonActivated(event) {
|
|
766
|
-
const key
|
|
767
|
-
if (key
|
|
765
|
+
const key = event.key;
|
|
766
|
+
if (key === " ") {
|
|
768
767
|
event.preventDefault();
|
|
769
768
|
}
|
|
770
|
-
return
|
|
769
|
+
return number.isActivationKey(key);
|
|
771
770
|
}
|
|
772
771
|
getDisplayHour() {
|
|
773
772
|
if (!this.hour) {
|
|
@@ -8,11 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-41ce6029.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
const label = require('./label-98a31f7d.js');
|
|
13
12
|
const form = require('./form-7f276aa5.js');
|
|
14
|
-
const locale = require('./locale-
|
|
15
|
-
const number = require('./number-
|
|
13
|
+
const locale = require('./locale-d223548e.js');
|
|
14
|
+
const number = require('./number-7d42a856.js');
|
|
16
15
|
const math = require('./math-145c80e2.js');
|
|
17
16
|
require('./guid-b270f0db.js');
|
|
18
17
|
|
|
@@ -123,7 +122,7 @@ let CalciteInput = class {
|
|
|
123
122
|
if (this.readOnly || this.disabled) {
|
|
124
123
|
return;
|
|
125
124
|
}
|
|
126
|
-
if (this.isClearable &&
|
|
125
|
+
if (this.isClearable && event.key === "Escape") {
|
|
127
126
|
this.clearInputValue(event);
|
|
128
127
|
event.preventDefault();
|
|
129
128
|
}
|
|
@@ -197,7 +196,7 @@ let CalciteInput = class {
|
|
|
197
196
|
return;
|
|
198
197
|
}
|
|
199
198
|
const supportedKeys = [
|
|
200
|
-
...
|
|
199
|
+
...number.numberKeys,
|
|
201
200
|
"ArrowLeft",
|
|
202
201
|
"ArrowRight",
|
|
203
202
|
"Backspace",
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-41ce6029.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
const observers = require('./observers-41837607.js');
|
|
13
12
|
require('./guid-b270f0db.js');
|
|
14
13
|
|
|
@@ -293,7 +292,7 @@ let CalciteModal = class {
|
|
|
293
292
|
//
|
|
294
293
|
//--------------------------------------------------------------------------
|
|
295
294
|
handleEscape(e) {
|
|
296
|
-
if (this.active && !this.disableEscape &&
|
|
295
|
+
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
297
296
|
this.close();
|
|
298
297
|
}
|
|
299
298
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
10
|
+
const resources = require('./resources-fee43dc4.js');
|
|
11
11
|
const observers = require('./observers-41837607.js');
|
|
12
12
|
const dom = require('./dom-41ce6029.js');
|
|
13
13
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
@@ -31,7 +31,7 @@ const ARIA_CONTROLS = "aria-controls";
|
|
|
31
31
|
const ARIA_EXPANDED = "aria-expanded";
|
|
32
32
|
const HEADING_LEVEL = 2;
|
|
33
33
|
|
|
34
|
-
const calcitePopoverCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%;width:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
34
|
+
const calcitePopoverCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;overflow:hidden;height:100%;width:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
35
35
|
|
|
36
36
|
let CalcitePopover = class {
|
|
37
37
|
constructor(hostRef) {
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-41ce6029.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
const label = require('./label-98a31f7d.js');
|
|
13
12
|
const form = require('./form-7f276aa5.js');
|
|
14
13
|
const observers = require('./observers-41837607.js');
|
|
@@ -109,17 +108,17 @@ let CalciteRadioGroup = class {
|
|
|
109
108
|
}
|
|
110
109
|
handleKeyDown(event) {
|
|
111
110
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
112
|
-
const key
|
|
111
|
+
const key = event.key;
|
|
113
112
|
const { el, selectedItem } = this;
|
|
114
|
-
if (keys.indexOf(key
|
|
113
|
+
if (keys.indexOf(key) === -1) {
|
|
115
114
|
return;
|
|
116
115
|
}
|
|
117
|
-
let adjustedKey = key
|
|
116
|
+
let adjustedKey = key;
|
|
118
117
|
if (dom.getElementStyleDir(el) === "rtl") {
|
|
119
|
-
if (key
|
|
118
|
+
if (key === "ArrowRight") {
|
|
120
119
|
adjustedKey = "ArrowLeft";
|
|
121
120
|
}
|
|
122
|
-
if (key
|
|
121
|
+
if (key === "ArrowLeft") {
|
|
123
122
|
adjustedKey = "ArrowRight";
|
|
124
123
|
}
|
|
125
124
|
}
|
|
@@ -11,7 +11,6 @@ const guid = require('./guid-b270f0db.js');
|
|
|
11
11
|
const dom = require('./dom-41ce6029.js');
|
|
12
12
|
const label = require('./label-98a31f7d.js');
|
|
13
13
|
const form = require('./form-7f276aa5.js');
|
|
14
|
-
const key = require('./key-8bfb93ec.js');
|
|
15
14
|
const array = require('./array-a5dedf5a.js');
|
|
16
15
|
|
|
17
16
|
const calciteRadioCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .radio{background-color:var(--calcite-ui-foreground-1);border-radius:9999px;cursor:pointer;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([hidden]){display:none}";
|
|
@@ -124,21 +123,21 @@ let CalciteRadioButton = class {
|
|
|
124
123
|
};
|
|
125
124
|
this.handleKeyDown = (event) => {
|
|
126
125
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
127
|
-
const key
|
|
126
|
+
const key = event.key;
|
|
128
127
|
const { el } = this;
|
|
129
|
-
if (keys.indexOf(key
|
|
128
|
+
if (keys.indexOf(key) === -1) {
|
|
130
129
|
return;
|
|
131
130
|
}
|
|
132
|
-
if (key
|
|
131
|
+
if (key === " ") {
|
|
133
132
|
this.check();
|
|
134
133
|
return;
|
|
135
134
|
}
|
|
136
|
-
let adjustedKey = key
|
|
135
|
+
let adjustedKey = key;
|
|
137
136
|
if (dom.getElementStyleDir(el) === "rtl") {
|
|
138
|
-
if (key
|
|
137
|
+
if (key === "ArrowRight") {
|
|
139
138
|
adjustedKey = "ArrowLeft";
|
|
140
139
|
}
|
|
141
|
-
if (key
|
|
140
|
+
if (key === "ArrowLeft") {
|
|
142
141
|
adjustedKey = "ArrowRight";
|
|
143
142
|
}
|
|
144
143
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const key = require('./key-8bfb93ec.js');
|
|
11
10
|
const dom = require('./dom-41ce6029.js');
|
|
12
11
|
require('./guid-b270f0db.js');
|
|
13
12
|
|
|
@@ -80,7 +79,7 @@ let CalciteStepper = class {
|
|
|
80
79
|
const itemToFocus = e.target;
|
|
81
80
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
82
81
|
const isLastItem = this.itemIndex(itemToFocus) === this.sortedItems.length - 1;
|
|
83
|
-
switch (
|
|
82
|
+
switch (item.key) {
|
|
84
83
|
case "ArrowDown":
|
|
85
84
|
case "ArrowRight":
|
|
86
85
|
if (isLastItem) {
|
|
@@ -293,7 +292,7 @@ let CalciteStepperItem = class {
|
|
|
293
292
|
//--------------------------------------------------------------------------
|
|
294
293
|
keyDownHandler(e) {
|
|
295
294
|
if (!this.disabled && e.target === this.el) {
|
|
296
|
-
switch (
|
|
295
|
+
switch (e.key) {
|
|
297
296
|
case " ":
|
|
298
297
|
case "Enter":
|
|
299
298
|
this.emitRequestedItem();
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-41ce6029.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
const label = require('./label-98a31f7d.js');
|
|
13
12
|
const form = require('./form-7f276aa5.js');
|
|
14
13
|
require('./guid-b270f0db.js');
|
|
@@ -40,8 +39,8 @@ let CalciteSwitch = class {
|
|
|
40
39
|
//
|
|
41
40
|
//--------------------------------------------------------------------------
|
|
42
41
|
this.keyDownHandler = (e) => {
|
|
43
|
-
const key
|
|
44
|
-
if (!this.disabled && (key
|
|
42
|
+
const key = e.key;
|
|
43
|
+
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
45
44
|
this.toggle();
|
|
46
45
|
}
|
|
47
46
|
};
|
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
11
|
const dom = require('./dom-41ce6029.js');
|
|
12
|
-
const key = require('./key-8bfb93ec.js');
|
|
13
12
|
const observers = require('./observers-41837607.js');
|
|
14
13
|
|
|
15
14
|
const calciteTabCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([active]) section{display:block}:host{display:none;color:var(--calcite-ui-text-3);width:100%;height:100%}:host([active]){display:block;width:100%;height:100%;overflow:auto}section{height:100%;width:100%;display:none}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem}";
|
|
@@ -395,7 +394,7 @@ let CalciteTabTitle = class {
|
|
|
395
394
|
this.emitActiveTab();
|
|
396
395
|
}
|
|
397
396
|
keyDownHandler(e) {
|
|
398
|
-
switch (
|
|
397
|
+
switch (e.key) {
|
|
399
398
|
case " ":
|
|
400
399
|
case "Enter":
|
|
401
400
|
this.emitActiveTab();
|
|
@@ -10,7 +10,6 @@ const index = require('./index-6b5d2de5.js');
|
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
11
|
const popper = require('./popper-4c24a334.js');
|
|
12
12
|
const dom = require('./dom-41ce6029.js');
|
|
13
|
-
const key = require('./key-8bfb93ec.js');
|
|
14
13
|
|
|
15
14
|
const CSS = {
|
|
16
15
|
container: "container",
|
|
@@ -317,7 +316,7 @@ let CalciteTooltipManager = class {
|
|
|
317
316
|
//
|
|
318
317
|
//--------------------------------------------------------------------------
|
|
319
318
|
keyUpHandler(event) {
|
|
320
|
-
if (
|
|
319
|
+
if (event.key === "Escape") {
|
|
321
320
|
const { tooltipEl } = this;
|
|
322
321
|
if (tooltipEl) {
|
|
323
322
|
this.clearHoverTimeout(tooltipEl);
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-41ce6029.js');
|
|
11
|
-
const key = require('./key-8bfb93ec.js');
|
|
12
11
|
require('./guid-b270f0db.js');
|
|
13
12
|
|
|
14
13
|
var TreeSelectionMode;
|
|
@@ -370,7 +369,7 @@ let CalciteTreeItem = class {
|
|
|
370
369
|
}
|
|
371
370
|
keyDownHandler(e) {
|
|
372
371
|
let root;
|
|
373
|
-
switch (
|
|
372
|
+
switch (e.key) {
|
|
374
373
|
case " ":
|
|
375
374
|
this.calciteTreeItemSelect.emit({
|
|
376
375
|
modifyCurrentSelection: e.shiftKey,
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const sortable_esm = require('./sortable.esm-d7a4560b.js');
|
|
11
|
-
const resources = require('./resources-
|
|
11
|
+
const resources = require('./resources-fee43dc4.js');
|
|
12
12
|
const array = require('./array-a5dedf5a.js');
|
|
13
13
|
const observers = require('./observers-41837607.js');
|
|
14
14
|
const guid = require('./guid-b270f0db.js');
|