@esri/calcite-components 1.0.0-next.646 → 1.0.0-next.648
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 +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/p-00d2d773.entry.js +6 -0
- package/dist/calcite/p-01951f49.entry.js +6 -0
- package/dist/calcite/p-05dcda7b.entry.js +6 -0
- package/dist/calcite/p-065d1961.entry.js +6 -0
- package/dist/calcite/{p-0a72e753.js → p-08b637c8.js} +2 -2
- package/dist/calcite/{p-a24f2e9b.js → p-0b90715c.js} +1 -1
- package/dist/calcite/{p-71036e63.entry.js → p-0ffdcdc0.entry.js} +2 -2
- package/dist/calcite/p-123393a5.js +6 -0
- package/dist/calcite/{p-6bef39d4.js → p-12b0f2c6.js} +1 -1
- package/dist/calcite/p-146e6fec.entry.js +6 -0
- package/dist/calcite/{p-6980b5a2.js → p-1772492f.js} +2 -2
- package/dist/calcite/p-27f9c706.entry.js +6 -0
- package/dist/calcite/p-28af412d.entry.js +6 -0
- package/dist/calcite/p-2bf231e6.entry.js +6 -0
- package/dist/calcite/p-2df94b10.entry.js +6 -0
- package/dist/calcite/{p-7ab7c115.js → p-3420b873.js} +1 -1
- package/dist/calcite/{p-8fde650c.js → p-349515d1.js} +2 -2
- package/dist/calcite/p-393f5e31.entry.js +6 -0
- package/dist/calcite/{p-4abff9db.js → p-3dee2426.js} +2 -2
- package/dist/calcite/p-3e729da6.entry.js +6 -0
- package/dist/calcite/p-4171bc38.entry.js +6 -0
- package/dist/calcite/p-447e09ea.entry.js +6 -0
- package/dist/calcite/p-44ba1ef9.entry.js +6 -0
- package/dist/calcite/{p-668fc2c9.js → p-47429a01.js} +1 -1
- package/dist/calcite/p-4e425d6d.entry.js +6 -0
- package/dist/calcite/{p-daaa5a91.js → p-4eea0858.js} +1 -1
- package/dist/calcite/{p-df6c1c46.js → p-5132e56e.js} +2 -2
- package/dist/calcite/p-51db2c02.entry.js +6 -0
- package/dist/calcite/p-540a1d98.entry.js +6 -0
- package/dist/calcite/{p-db705df7.js → p-5d213adf.js} +2 -2
- package/dist/calcite/p-62ed162f.entry.js +6 -0
- package/dist/calcite/p-63dbaaa6.entry.js +6 -0
- package/dist/calcite/p-641676a3.entry.js +6 -0
- package/dist/calcite/{p-671132e5.entry.js → p-67d85cbe.entry.js} +2 -2
- package/dist/calcite/p-6cca7988.entry.js +6 -0
- package/dist/calcite/{p-c06fdd97.js → p-7000e938.js} +1 -1
- package/dist/calcite/{p-f22a85d4.js → p-76595820.js} +1 -1
- package/dist/calcite/p-7882040c.entry.js +6 -0
- package/dist/calcite/p-7b0f24d1.entry.js +6 -0
- package/dist/calcite/p-7d218367.entry.js +6 -0
- package/dist/calcite/p-814781cb.entry.js +6 -0
- package/dist/calcite/{p-7ed485cb.js → p-899bb6c9.js} +1 -1
- package/dist/calcite/p-8ae970c1.entry.js +6 -0
- package/dist/calcite/{p-be230f5f.js → p-8bec15c8.js} +1 -1
- package/dist/calcite/{p-671c1ca9.js → p-8d698c02.js} +2 -2
- package/dist/calcite/{p-02c24326.js → p-8dc39c82.js} +2 -2
- package/dist/calcite/{p-275c0aa3.js → p-90701611.js} +1 -1
- package/dist/calcite/p-9361cf84.entry.js +6 -0
- package/dist/calcite/{p-e40fd4f3.entry.js → p-97aa02a7.entry.js} +2 -2
- package/dist/calcite/{p-a35a58d0.js → p-98482c33.js} +1 -1
- package/dist/calcite/p-9a49dffd.entry.js +6 -0
- package/dist/calcite/p-9ba0329d.entry.js +6 -0
- package/dist/calcite/p-9cd58cea.entry.js +6 -0
- package/dist/calcite/p-9d716dd8.entry.js +6 -0
- package/dist/calcite/p-a153ceb9.entry.js +6 -0
- package/dist/calcite/{p-86313cdd.js → p-a524f551.js} +1 -1
- package/dist/calcite/p-a7f09914.js +6 -0
- package/dist/calcite/p-aa73ca1a.entry.js +6 -0
- package/dist/calcite/p-acdfbe58.entry.js +6 -0
- package/dist/calcite/{p-72fc195d.js → p-ad9d35c9.js} +2 -2
- package/dist/calcite/{p-32a4762f.js → p-b1ec2e57.js} +1 -1
- package/dist/calcite/{p-b388ce43.js → p-b52f7d75.js} +1 -1
- package/dist/calcite/{p-797251fd.js → p-b6776fe1.js} +2 -2
- package/dist/calcite/p-b8723343.entry.js +6 -0
- package/dist/calcite/p-baa8f7bc.entry.js +6 -0
- package/dist/calcite/p-bc2e3363.entry.js +6 -0
- package/dist/calcite/p-bc83a040.entry.js +6 -0
- package/dist/calcite/p-bf4b49d3.entry.js +6 -0
- package/dist/calcite/p-bfbb104f.js +6 -0
- package/dist/calcite/p-c38f2146.entry.js +6 -0
- package/dist/calcite/p-c438b39c.entry.js +6 -0
- package/dist/calcite/{p-085bae9c.entry.js → p-c84dc5ee.entry.js} +2 -2
- package/dist/calcite/{p-011c833d.js → p-ccd997a5.js} +2 -2
- package/dist/calcite/{p-72506e1c.js → p-ccee598f.js} +1 -1
- package/dist/calcite/p-cee46df8.entry.js +6 -0
- package/dist/calcite/p-cf1c6c75.entry.js +6 -0
- package/dist/calcite/p-dbc6b9f3.entry.js +6 -0
- package/dist/calcite/p-e009ff8c.entry.js +6 -0
- package/dist/calcite/p-e5daf36b.entry.js +6 -0
- package/dist/calcite/p-e6808a92.entry.js +6 -0
- package/dist/calcite/{p-f76ed555.js → p-e8458683.js} +1 -1
- package/dist/calcite/p-e86de5cd.entry.js +6 -0
- package/dist/calcite/p-ea7d6712.entry.js +6 -0
- package/dist/calcite/p-eab112a6.entry.js +6 -0
- package/dist/calcite/p-ec0702ea.entry.js +6 -0
- package/dist/calcite/p-ee839eac.entry.js +6 -0
- package/dist/calcite/p-f2b2590f.entry.js +6 -0
- package/dist/calcite/{p-36263e21.js → p-f3ed0fa6.js} +1 -1
- package/dist/calcite/p-fb2d9c76.entry.js +6 -0
- package/dist/calcite/p-fd60a197.entry.js +6 -0
- package/dist/calcite/p-fe41558d.entry.js +6 -0
- package/dist/cjs/{ExpandToggle-d530737f.js → ExpandToggle-ffd89d79.js} +5 -5
- package/dist/cjs/{Heading-2e646368.js → Heading-9512d69c.js} +2 -2
- package/dist/cjs/{app-globals-64dfc815.js → app-globals-48762390.js} +2 -2
- package/dist/cjs/{array-6cbf9470.js → array-c58adfeb.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +20 -70
- package/dist/cjs/calcite-action-bar.cjs.entry.js +20 -33
- package/dist/cjs/calcite-action-group.cjs.entry.js +15 -26
- package/dist/cjs/calcite-action-menu.cjs.entry.js +18 -37
- package/dist/cjs/calcite-action-pad.cjs.entry.js +18 -28
- package/dist/cjs/calcite-action.cjs.entry.js +21 -49
- package/dist/cjs/calcite-alert.cjs.entry.js +27 -47
- package/dist/cjs/calcite-avatar.cjs.entry.js +10 -17
- package/dist/cjs/calcite-block_2.cjs.entry.js +27 -73
- package/dist/cjs/calcite-button.cjs.entry.js +32 -51
- package/dist/cjs/calcite-card.cjs.entry.js +14 -38
- package/dist/cjs/calcite-checkbox.cjs.entry.js +20 -41
- package/dist/cjs/calcite-chip.cjs.entry.js +18 -37
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +60 -227
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +52 -87
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +72 -68
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +33 -77
- package/dist/cjs/calcite-fab.cjs.entry.js +9 -35
- package/dist/cjs/calcite-filter.cjs.entry.js +17 -37
- package/dist/cjs/calcite-flow-item.cjs.entry.js +24 -33
- package/dist/cjs/calcite-flow.cjs.entry.js +6 -6
- package/dist/cjs/calcite-graph_2.cjs.entry.js +49 -72
- package/dist/cjs/calcite-handle.cjs.entry.js +8 -19
- package/dist/cjs/calcite-icon.cjs.entry.js +8 -20
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +18 -40
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +50 -94
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -18
- package/dist/cjs/calcite-input-number.cjs.entry.js +47 -88
- package/dist/cjs/calcite-input-text.cjs.entry.js +35 -67
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +70 -156
- package/dist/cjs/calcite-input.cjs.entry.js +52 -102
- package/dist/cjs/calcite-label.cjs.entry.js +13 -35
- package/dist/cjs/calcite-link.cjs.entry.js +15 -20
- package/dist/cjs/calcite-list_3.cjs.entry.js +43 -121
- package/dist/cjs/calcite-loader.cjs.entry.js +5 -23
- package/dist/cjs/calcite-modal.cjs.entry.js +26 -57
- package/dist/cjs/calcite-notice.cjs.entry.js +16 -40
- package/dist/cjs/calcite-option_3.cjs.entry.js +23 -52
- package/dist/cjs/calcite-pagination.cjs.entry.js +32 -58
- package/dist/cjs/calcite-panel.cjs.entry.js +30 -39
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +38 -92
- package/dist/cjs/{calcite-popover_2.cjs.entry.js → calcite-popover.cjs.entry.js} +33 -145
- package/dist/cjs/calcite-progress.cjs.entry.js +4 -10
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +9 -18
- package/dist/cjs/calcite-radio-button.cjs.entry.js +21 -37
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +21 -43
- package/dist/cjs/calcite-rating.cjs.entry.js +24 -43
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -15
- package/dist/cjs/calcite-shell_3.cjs.entry.js +16 -62
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +12 -22
- package/dist/cjs/calcite-split-button.cjs.entry.js +11 -27
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +29 -63
- package/dist/cjs/calcite-switch.cjs.entry.js +17 -27
- package/dist/cjs/calcite-tab_4.cjs.entry.js +33 -103
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +11 -39
- package/dist/cjs/calcite-tile.cjs.entry.js +12 -30
- package/dist/cjs/calcite-tip_3.cjs.entry.js +27 -36
- package/dist/cjs/calcite-tooltip.cjs.entry.js +17 -44
- package/dist/cjs/calcite-tree_2.cjs.entry.js +20 -51
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +41 -94
- package/dist/cjs/calcite.cjs.js +6 -6
- package/dist/cjs/{conditionalSlot-e2ec6e00.js → conditionalSlot-ab38a07e.js} +3 -3
- package/dist/cjs/{debounce-afd54443.js → debounce-b8ece744.js} +1 -1
- package/dist/cjs/{dom-81242a2a.js → dom-8dcbe60b.js} +3 -3
- package/dist/cjs/{filter-fc5ae778.js → filter-dcf36f89.js} +2 -2
- package/dist/cjs/{floating-ui-0ebd19a8.js → floating-ui-58bc577e.js} +57 -89
- package/dist/cjs/{focusTrapComponent-30c7c8ee.js → focusTrapComponent-4575255a.js} +2 -2
- package/dist/cjs/{form-66a5b3fc.js → form-54565442.js} +3 -3
- package/dist/cjs/{guid-5b4f687e.js → guid-4caf8697.js} +1 -1
- package/dist/cjs/{index-964a2875.js → index-66bfeb5a.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-58105b6c.js → interactive-61857e22.js} +1 -1
- package/dist/cjs/{interfaces-072b9615.js → interfaces-f9527bdd.js} +1 -1
- package/dist/cjs/{key-e3a69c1b.js → key-aa68c66b.js} +1 -1
- package/dist/cjs/{label-125b7cd1.js → label-ebe09dfe.js} +2 -2
- package/dist/cjs/{loadable-d48dcbfa.js → loadable-f0410eb8.js} +1 -1
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/{locale-e2250b5b.js → locale-6b2788ff.js} +4 -4
- package/dist/cjs/{math-0355d616.js → math-92197020.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-08e930fd.js → nonChromiumPlatformUtils-d9338106.js} +6 -6
- package/dist/cjs/{observers-695d3a8d.js → observers-b2096d49.js} +1 -1
- package/dist/cjs/{openCloseComponent-b4926038.js → openCloseComponent-7d4eb009.js} +1 -1
- package/dist/cjs/{resources-5b8c7ec7.js → resources-15b63465.js} +1 -1
- package/dist/cjs/{resources-45d41060.js → resources-a8623473.js} +5 -5
- package/dist/cjs/{resources-e2ae989b.js → resources-aab81366.js} +1 -1
- package/dist/cjs/{resources-ae67a7a9.js → resources-bfbd2af1.js} +1 -1
- package/dist/cjs/{resources-4cf7d7cf.js → resources-c00001d9.js} +3 -3
- package/dist/cjs/{resources-26b6359a.js → resources-df673a39.js} +1 -1
- package/dist/cjs/{sortable.esm-109c70ff.js → sortable.esm-05f24e8e.js} +1 -1
- package/dist/cjs/{utils-ca1da91a.js → utils-2e6032bf.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -8
- package/dist/collection/components/accordion/accordion.js +6 -19
- package/dist/collection/components/accordion-item/accordion-item.js +9 -136
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +14 -42
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +9 -22
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +7 -18
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +10 -29
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +8 -18
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +17 -37
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +5 -12
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +12 -52
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +7 -13
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +23 -42
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +8 -32
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +11 -32
- package/dist/collection/components/chip/chip.js +11 -30
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +42 -173
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +8 -34
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +2 -12
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +26 -58
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +11 -16
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +3 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +69 -73
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +19 -25
- package/dist/collection/components/date-picker-month/date-picker-month.js +13 -6
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +21 -14
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +27 -65
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +8 -10
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +23 -27
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +14 -40
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +21 -41
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +4 -4
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +39 -48
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +7 -11
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +3 -14
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +11 -20
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +23 -45
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +40 -90
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +35 -79
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +3 -14
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +35 -76
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +26 -58
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +28 -55
- package/dist/collection/components/label/label.js +8 -30
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +9 -14
- package/dist/collection/components/list/list.js +14 -51
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +21 -55
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +2 -9
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +3 -21
- package/dist/collection/components/modal/modal.js +17 -48
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +8 -32
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +5 -10
- package/dist/collection/components/option-group/option-group.js +2 -9
- package/dist/collection/components/pagination/pagination.js +28 -51
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +20 -29
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +13 -48
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +5 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +12 -33
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +20 -67
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +3 -9
- package/dist/collection/components/radio-button/radio-button.js +12 -28
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +7 -16
- package/dist/collection/components/radio-group/radio-group.js +9 -23
- package/dist/collection/components/radio-group-item/radio-group-item.js +5 -13
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +15 -34
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -14
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +9 -26
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -9
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -15
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +9 -33
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.css +2 -2
- package/dist/collection/components/slider/slider.js +30 -49
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +8 -18
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +9 -25
- package/dist/collection/components/stepper/stepper.js +6 -14
- package/dist/collection/components/stepper-item/stepper-item.js +15 -41
- package/dist/collection/components/switch/switch.js +8 -18
- package/dist/collection/components/tab/tab.js +4 -17
- package/dist/collection/components/tab-nav/tab-nav.js +11 -17
- package/dist/collection/components/tab-title/tab-title.js +14 -28
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -38
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +5 -23
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +7 -24
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -12
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +32 -91
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +7 -20
- package/dist/collection/components/tip-group/tip-group.js +4 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +13 -10
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +10 -37
- package/dist/collection/components/tree/tree.js +2 -19
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +12 -26
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +18 -52
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +12 -31
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +7 -18
- package/dist/components/action-menu.js +10 -29
- package/dist/components/action.js +14 -42
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +23 -42
- package/dist/components/calcite-accordion-item.js +9 -50
- package/dist/components/calcite-accordion.js +6 -19
- package/dist/components/calcite-action-bar.js +9 -22
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +8 -18
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +17 -37
- package/dist/components/calcite-avatar.js +5 -12
- package/dist/components/calcite-block-section.js +7 -13
- package/dist/components/calcite-block.js +12 -52
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +8 -32
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +43 -174
- package/dist/components/calcite-combobox-item-group.js +3 -1
- package/dist/components/calcite-combobox-item.js +11 -16
- package/dist/components/calcite-combobox.js +27 -59
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +3 -5
- package/dist/components/calcite-dropdown-item.js +8 -12
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +3 -29
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +17 -26
- package/dist/components/calcite-flow.js +4 -4
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +10 -32
- package/dist/components/calcite-input-date-picker.js +37 -81
- package/dist/components/calcite-input-message.js +3 -14
- package/dist/components/calcite-input-number.js +36 -77
- package/dist/components/calcite-input-text.js +27 -59
- package/dist/components/calcite-input-time-picker.js +28 -55
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +2 -9
- package/dist/components/calcite-list-item.js +21 -55
- package/dist/components/calcite-list.js +14 -51
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +17 -48
- package/dist/components/calcite-notice.js +8 -32
- package/dist/components/calcite-option-group.js +2 -9
- package/dist/components/calcite-option.js +5 -10
- package/dist/components/calcite-pagination.js +25 -51
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +3 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +13 -48
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +7 -16
- package/dist/components/calcite-radio-button.js +12 -28
- package/dist/components/calcite-radio-group-item.js +5 -13
- package/dist/components/calcite-radio-group.js +9 -23
- package/dist/components/calcite-rating.js +15 -34
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +9 -26
- package/dist/components/calcite-shell-center-row.js +1 -15
- package/dist/components/calcite-shell-panel.js +9 -33
- package/dist/components/calcite-shell.js +1 -9
- package/dist/components/calcite-slider.js +31 -50
- package/dist/components/calcite-sortable-list.js +8 -18
- package/dist/components/calcite-split-button.js +9 -25
- package/dist/components/calcite-stepper-item.js +15 -41
- package/dist/components/calcite-stepper.js +6 -14
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -12
- package/dist/components/calcite-tile-select.js +7 -24
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +2 -1
- package/dist/components/calcite-tip-manager.js +13 -10
- package/dist/components/calcite-tip.js +7 -20
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +12 -26
- package/dist/components/calcite-tree.js +2 -19
- package/dist/components/calcite-value-list-item.js +12 -31
- package/dist/components/calcite-value-list.js +18 -52
- package/dist/components/checkbox.js +11 -32
- package/dist/components/chip.js +11 -30
- package/dist/components/color-picker-hex-input.js +9 -35
- package/dist/components/color-picker-swatch.js +2 -12
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +13 -19
- package/dist/components/date-picker-month-header.js +14 -7
- package/dist/components/date-picker-month.js +10 -3
- package/dist/components/date-picker.js +28 -32
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +14 -52
- package/dist/components/filter.js +9 -29
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +54 -86
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +7 -11
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +3 -14
- package/dist/components/icon.js +3 -15
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +41 -91
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +8 -30
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +9 -14
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +3 -21
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +20 -29
- package/dist/components/pick-list-item.js +12 -33
- package/dist/components/popover.js +21 -68
- package/dist/components/progress.js +3 -9
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -14
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +8 -18
- package/dist/components/tab-nav.js +11 -17
- package/dist/components/tab-title.js +14 -28
- package/dist/components/tab.js +4 -17
- package/dist/components/tabs.js +1 -38
- package/dist/components/tile.js +5 -23
- package/dist/components/time-picker.js +32 -91
- package/dist/components/tooltip.js +11 -38
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-37340e21.js → ExpandToggle-29af15e2.js} +5 -5
- package/dist/esm/{Heading-694715b2.js → Heading-97239409.js} +2 -2
- package/dist/esm/{app-globals-29545d61.js → app-globals-5b1771bd.js} +2 -2
- package/dist/esm/{array-33f45c9b.js → array-a3b6f69b.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +20 -70
- package/dist/esm/calcite-action-bar.entry.js +20 -33
- package/dist/esm/calcite-action-group.entry.js +15 -26
- package/dist/esm/calcite-action-menu.entry.js +18 -37
- package/dist/esm/calcite-action-pad.entry.js +18 -28
- package/dist/esm/calcite-action.entry.js +21 -49
- package/dist/esm/calcite-alert.entry.js +27 -47
- package/dist/esm/calcite-avatar.entry.js +10 -17
- package/dist/esm/calcite-block_2.entry.js +27 -73
- package/dist/esm/calcite-button.entry.js +32 -51
- package/dist/esm/calcite-card.entry.js +14 -38
- package/dist/esm/calcite-checkbox.entry.js +20 -41
- package/dist/esm/calcite-chip.entry.js +18 -37
- package/dist/esm/calcite-color-picker_3.entry.js +60 -227
- package/dist/esm/calcite-combobox_3.entry.js +52 -87
- package/dist/esm/calcite-date-picker_4.entry.js +72 -68
- package/dist/esm/calcite-dropdown_3.entry.js +33 -77
- package/dist/esm/calcite-fab.entry.js +9 -35
- package/dist/esm/calcite-filter.entry.js +17 -37
- package/dist/esm/calcite-flow-item.entry.js +24 -33
- package/dist/esm/calcite-flow.entry.js +6 -6
- package/dist/esm/calcite-graph_2.entry.js +49 -72
- package/dist/esm/calcite-handle.entry.js +8 -19
- package/dist/esm/calcite-icon.entry.js +8 -20
- package/dist/esm/calcite-inline-editable.entry.js +18 -40
- package/dist/esm/calcite-input-date-picker.entry.js +50 -94
- package/dist/esm/calcite-input-message.entry.js +7 -18
- package/dist/esm/calcite-input-number.entry.js +47 -88
- package/dist/esm/calcite-input-text.entry.js +35 -67
- package/dist/esm/calcite-input-time-picker_2.entry.js +70 -156
- package/dist/esm/calcite-input.entry.js +52 -102
- package/dist/esm/calcite-label.entry.js +13 -35
- package/dist/esm/calcite-link.entry.js +15 -20
- package/dist/esm/calcite-list_3.entry.js +43 -121
- package/dist/esm/calcite-loader.entry.js +5 -23
- package/dist/esm/calcite-modal.entry.js +26 -57
- package/dist/esm/calcite-notice.entry.js +16 -40
- package/dist/esm/calcite-option_3.entry.js +23 -52
- package/dist/esm/calcite-pagination.entry.js +32 -58
- package/dist/esm/calcite-panel.entry.js +30 -39
- package/dist/esm/calcite-pick-list_3.entry.js +38 -92
- package/dist/esm/{calcite-popover_2.entry.js → calcite-popover.entry.js} +34 -145
- package/dist/esm/calcite-progress.entry.js +4 -10
- package/dist/esm/calcite-radio-button-group.entry.js +9 -18
- package/dist/esm/calcite-radio-button.entry.js +21 -37
- package/dist/esm/calcite-radio-group_2.entry.js +21 -43
- package/dist/esm/calcite-rating.entry.js +24 -43
- package/dist/esm/calcite-scrim.entry.js +2 -15
- package/dist/esm/calcite-shell_3.entry.js +16 -62
- package/dist/esm/calcite-sortable-list.entry.js +12 -22
- package/dist/esm/calcite-split-button.entry.js +11 -27
- package/dist/esm/calcite-stepper_2.entry.js +29 -63
- package/dist/esm/calcite-switch.entry.js +17 -27
- package/dist/esm/calcite-tab_4.entry.js +33 -103
- package/dist/esm/calcite-tile-select_2.entry.js +11 -39
- package/dist/esm/calcite-tile.entry.js +12 -30
- package/dist/esm/calcite-tip_3.entry.js +27 -36
- package/dist/esm/calcite-tooltip.entry.js +17 -44
- package/dist/esm/calcite-tree_2.entry.js +20 -51
- package/dist/esm/calcite-value-list_2.entry.js +41 -94
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-a259d062.js → conditionalSlot-18733fbb.js} +3 -3
- package/dist/esm/{debounce-a80cea2e.js → debounce-6bf69804.js} +1 -1
- package/dist/esm/{dom-c7442d5a.js → dom-c8898dc4.js} +3 -3
- package/dist/esm/{filter-5334a2b2.js → filter-978322da.js} +2 -2
- package/dist/esm/{floating-ui-39e24e16.js → floating-ui-fc1dd50c.js} +57 -89
- package/dist/esm/{focusTrapComponent-94194c83.js → focusTrapComponent-abc370ad.js} +2 -2
- package/dist/esm/{form-a676c099.js → form-44011828.js} +3 -3
- package/dist/esm/{guid-2a3eda01.js → guid-eaa87c08.js} +1 -1
- package/dist/esm/{index-3db52168.js → index-d13d66db.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-26387dc4.js → interactive-ee7f9950.js} +1 -1
- package/dist/esm/{interfaces-65ac0d72.js → interfaces-e740f58c.js} +1 -1
- package/dist/esm/{key-411c120d.js → key-23509709.js} +1 -1
- package/dist/esm/{label-2102b073.js → label-226b0181.js} +2 -2
- package/dist/esm/{loadable-b4a4f025.js → loadable-5df6cd58.js} +1 -1
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-c396b3ba.js → locale-c6e1a8e3.js} +4 -4
- package/dist/esm/{math-e6e57679.js → math-e1907584.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-ab5672bb.js → nonChromiumPlatformUtils-38b56ea7.js} +6 -6
- package/dist/esm/{observers-92bc8914.js → observers-32d3cec9.js} +1 -1
- package/dist/esm/{openCloseComponent-092b548c.js → openCloseComponent-333b893d.js} +1 -1
- package/dist/esm/{resources-7f14e588.js → resources-279b99d2.js} +5 -5
- package/dist/esm/{resources-147d3786.js → resources-301e3b5e.js} +3 -3
- package/dist/esm/{resources-526a78c2.js → resources-70b572b1.js} +1 -1
- package/dist/esm/{resources-ffa9b8d6.js → resources-72c02e33.js} +1 -1
- package/dist/esm/{resources-13aa14c3.js → resources-904b70a4.js} +1 -1
- package/dist/esm/{resources-ddde9e2f.js → resources-e7476473.js} +1 -1
- package/dist/esm/{sortable.esm-fa924523.js → sortable.esm-e68f2907.js} +1 -1
- package/dist/esm/{utils-4cfc4b8d.js → utils-52beb63a.js} +1 -1
- package/dist/extras/docs-json.d.ts +24 -0
- package/dist/extras/docs-json.json +179 -337
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion-item/accordion-item.d.ts +0 -28
- package/dist/types/components/date-picker/date-picker.d.ts +45 -41
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +6 -6
- package/dist/types/components/date-picker-month/date-picker-month.d.ts +3 -3
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +7 -7
- package/dist/types/components/dropdown/dropdown.d.ts +28 -16
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +8 -6
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +19 -15
- package/dist/types/components/fab/fab.d.ts +11 -11
- package/dist/types/components/filter/filter.d.ts +17 -13
- package/dist/types/components/flow-item/flow-item.d.ts +22 -22
- package/dist/types/components/icon/icon.d.ts +6 -4
- package/dist/types/components/inline-editable/inline-editable.d.ts +17 -13
- package/dist/types/components/pagination/pagination.d.ts +1 -6
- package/dist/types/components.d.ts +247 -316
- package/dist/types/preact.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +5 -0
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +1023 -2829
- package/package.json +20 -20
- package/dist/calcite/p-003195f2.entry.js +0 -6
- package/dist/calcite/p-03ff7195.entry.js +0 -6
- package/dist/calcite/p-04c1bef7.entry.js +0 -6
- package/dist/calcite/p-0c0c5a0e.entry.js +0 -6
- package/dist/calcite/p-119f206c.entry.js +0 -6
- package/dist/calcite/p-135e8810.entry.js +0 -6
- package/dist/calcite/p-1373e4cd.entry.js +0 -6
- package/dist/calcite/p-164e8c9d.entry.js +0 -6
- package/dist/calcite/p-1a12e8be.entry.js +0 -6
- package/dist/calcite/p-1b367f30.entry.js +0 -6
- package/dist/calcite/p-24cb396c.entry.js +0 -6
- package/dist/calcite/p-281f1106.entry.js +0 -6
- package/dist/calcite/p-2a44dffb.entry.js +0 -6
- package/dist/calcite/p-2a535853.entry.js +0 -6
- package/dist/calcite/p-3e1c09bf.entry.js +0 -6
- package/dist/calcite/p-3e8c3592.entry.js +0 -6
- package/dist/calcite/p-3eb2ffb8.entry.js +0 -6
- package/dist/calcite/p-45b9c33f.js +0 -6
- package/dist/calcite/p-4bc96359.entry.js +0 -6
- package/dist/calcite/p-4db1678d.entry.js +0 -6
- package/dist/calcite/p-5a660d62.entry.js +0 -6
- package/dist/calcite/p-69acc19d.js +0 -6
- package/dist/calcite/p-6bff7bcf.entry.js +0 -6
- package/dist/calcite/p-6dccc47d.entry.js +0 -6
- package/dist/calcite/p-70e5f8e1.entry.js +0 -6
- package/dist/calcite/p-74b03586.entry.js +0 -6
- package/dist/calcite/p-771c5de7.entry.js +0 -6
- package/dist/calcite/p-7ce1e758.entry.js +0 -6
- package/dist/calcite/p-7f84921d.entry.js +0 -6
- package/dist/calcite/p-8ac01035.entry.js +0 -6
- package/dist/calcite/p-8cacf936.entry.js +0 -6
- package/dist/calcite/p-8fbb2fce.entry.js +0 -6
- package/dist/calcite/p-90ab292c.entry.js +0 -6
- package/dist/calcite/p-95962655.entry.js +0 -6
- package/dist/calcite/p-9b25074a.entry.js +0 -6
- package/dist/calcite/p-a5a412d4.entry.js +0 -6
- package/dist/calcite/p-a61f18b6.js +0 -6
- package/dist/calcite/p-a7396468.entry.js +0 -6
- package/dist/calcite/p-a9901770.entry.js +0 -6
- package/dist/calcite/p-b0e193b4.entry.js +0 -6
- package/dist/calcite/p-b0ff665f.entry.js +0 -6
- package/dist/calcite/p-b630f4dc.entry.js +0 -6
- package/dist/calcite/p-b67971fe.entry.js +0 -6
- package/dist/calcite/p-c46db736.entry.js +0 -6
- package/dist/calcite/p-c4c80d1b.entry.js +0 -6
- package/dist/calcite/p-d0b2f0c1.entry.js +0 -6
- package/dist/calcite/p-d30c167e.entry.js +0 -6
- package/dist/calcite/p-d67f0c69.entry.js +0 -6
- package/dist/calcite/p-da097122.entry.js +0 -6
- package/dist/calcite/p-df2934bb.entry.js +0 -6
- package/dist/calcite/p-e224efc9.entry.js +0 -6
- package/dist/calcite/p-e9f89a1d.entry.js +0 -6
- package/dist/calcite/p-eb02de24.entry.js +0 -6
- package/dist/calcite/p-ecae74a5.entry.js +0 -6
- package/dist/calcite/p-eedc40f4.entry.js +0 -6
- package/dist/calcite/p-efb733cc.entry.js +0 -6
- package/dist/calcite/p-f0c68fa8.entry.js +0 -6
- package/dist/calcite/p-f32c0a5c.entry.js +0 -6
- package/dist/calcite/p-fd2070b4.entry.js +0 -6
- package/dist/collection/components/popover-manager/popover-manager.css +0 -89
- package/dist/collection/components/popover-manager/popover-manager.js +0 -127
- package/dist/components/calcite-popover-manager.d.ts +0 -11
- package/dist/components/calcite-popover-manager.js +0 -94
- package/dist/types/components/popover-manager/popover-manager.d.ts +0 -24
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as e,h as a,H as i,g as r,F as s}from"./p-6bef39d4.js";import{T as o,h as n,b as c,c as l,g as h,f as d,e as u,s as p,j as g,i as f,k as v,n as m,p as w}from"./p-6980b5a2.js";import{c as y,d as x,n as b}from"./p-72fc195d.js";import{c as k,a as D}from"./p-671c1ca9.js";import{C as z}from"./p-275c0aa3.js";import{u as _}from"./p-86313cdd.js";import{i as C}from"./p-36263e21.js";import{H as A}from"./p-69acc19d.js";import"./p-7ed485cb.js";import"./p-f22a85d4.js";const P=class{constructor(a){t(this,a),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",6),this.intlPrevMonth=o.prevMonth,this.intlNextMonth=o.nextMonth,this.intlYear=o.year,this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.globalAttributes={},this.effectiveLocale="",this.keyDownHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=n(e,this.startAsDate),a=n(e,this.endAsDate);a>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>a?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,a,i,r,s;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(a=this.startAsDate)||void 0===a?void 0:a.getTime())!==(null===(i=this.activeStartDate)||void 0===i?void 0:i.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(s=this.activeEndDate)||void 0===s?void 0:s.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail),a=c(e);if(this.range||a!==c(this.valueAsDate)){if(!this.range)return this.value=a||"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=n(e,this.startAsDate),a=n(e,this.endAsDate);0===a||t<0?this.setStartDate(e):0===t||a<0?this.setEndDate(e):t<a?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}}}activeDateWatcher(t){"end"===this.activeRange&&(this.activeEndDate=t)}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){y(this),Array.isArray(this.value)?(this.valueAsDate=h(this.value),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}disconnectedCallback(){x(this)}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const s=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,o=this.getActiveEndDate(s,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!s)||!o||(r=o),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),a(i,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&s||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,s))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=h(t),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){b.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await u(this.effectiveLocale)}renderCalendar(t,e,i,r,s){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),a("calcite-date-picker-month",{activeDate:t,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t?p(t):t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?c(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?c(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,a){return d(this.activeDate,e,a)||t||d(new Date,e,a)}getActiveEndDate(t,e,a){return d(this.activeEndDate,e,a)||t||d(new Date,e,a)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],effectiveLocale:["loadLocaleData"]}}};P.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}";const S=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",6),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",6),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{C(t.key)&&(!this.disabled&&this.calciteDaySelect.emit(),t.preventDefault())}}mouseoverHandler(){this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}render(){if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const t=b.localize(String(this.day)),e=D(this.el);return a(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},a("div",{class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}componentDidRender(){_(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};S.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;min-inline-size:0px;cursor:pointer;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--end) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";const M=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",6),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",6),this.activeDate=new Date,this.keyDownHandler=t=>{if(t.defaultPrevented)return;const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;e.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:n}=this.localeData.days,c="s"===this.scale?n||o||s:o||s||n,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),u=this.getNextMonthDays(t,e,r),p=[...d.map((a=>{const i=new Date(e,t-1,a);return this.renderDateDay(!1,a,i)})),...h.map((a=>{const i=new Date(e,t,a),r=g(i,this.activeDate);return this.renderDateDay(r,a,i,!0,!0)})),...u.map((a=>{const i=new Date(e,t+1,a);return this.renderDateDay(!1,a,i)}))],f=[];for(let t=0;t<p.length;t+=7)f.push(p.slice(t,t+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},l.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),f.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const i=new Date(e,t,0),r=i.getDate(),s=[];if(i.getDay()-6===a)return s;for(let t=i.getDay()-a;t>=0;t--)s.push(r-t);return s}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),i=[];for(let t=0;t<a;t++)i.push(t+1);return i}getNextMonthDays(t,e,a){const i=new Date(e,t+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let t=0;t<(6-(i-a))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(g(t,this.selectedDate)||this.startDate&&g(t,this.startDate)||this.endDate&&g(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||g(this.startDate,this.endDate)||!g(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!g(this.startDate,this.endDate)&&g(this.endDate,t)||!this.endDate&&this.hoverRange&&g(this.startDate,this.hoverRange.end)&&g(t,this.hoverRange.end))}renderDateDay(t,e,i,r,s){var o;const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&g(null===(o=this.hoverRange)||void 0===o?void 0:o.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:r,day:e,disabled:!f(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!g(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{s&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!i&&t>this.startDate&&(t<a||g(t,a))||i&&t<this.endDate&&(t>e||g(t,e))),o=!r&&(!i&&t>=this.endDate&&(t<a||g(t,a))||i&&(t<this.startDate||this.endDate&&g(t,this.startDate))&&(t>e||g(t,e)));return s||o}get el(){return r(this)}};M.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const j=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.globalAttributes={},this.onYearKey=t=>{const e=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{C(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{C(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{t.preventDefault(),this.calciteDatePickerSelect.emit(e)}}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const e=this.activeDate.getMonth(),{months:i,unitOrder:r}=this.localeData,o=(i.wide||i.narrow||i.abbreviated)[e],n=this.formatCalendarYear(this.activeDate.getFullYear()),c="l"===this.scale?"m":"s",l=v(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return a(s,null,a("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===e}`,"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),a("div",{class:{text:!0,"text--reverse":h}},a(A,{class:"month",level:this.headingLevel},o),a("span",{class:"year-wrap"},a("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:n}),d&&a("span",{class:"suffix"},d))),a("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===e}`,"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(m(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(t){const{localeData:e}=this;return b.localize(`${t+("buddhist"===e["default-calendar"]?543:0)}`)}parseCalendarYear(t){const{localeData:e}=this,a="buddhist"===e["default-calendar"]?543:0,i=Number(b.delocalize(t))-a;return b.localize(`${i}`)}getInRangeDate({localizedYear:t,offset:e=0}){const{min:a,max:i,activeDate:r}=this,s=Number(b.delocalize(t)),o=s.toString().length,n=!isNaN(s)&&s+e,c=n&&(!a||a.getFullYear()<=n)&&(!i||i.getFullYear()>=n);if(n&&c&&o===t.length){const t=new Date(r);return t.setFullYear(n),d(t,a,i)}}setYear({localizedYear:t,commit:e=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,s=this.getInRangeDate({localizedYear:t,offset:a});s&&this.calciteDatePickerSelect.emit(s),e&&(i.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};j.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";export{P as calcite_date_picker,S as calcite_date_picker_day,M as calcite_date_picker_month,j as calcite_date_picker_month_header}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import{r as a,c as t,h as i,H as n,g as o}from"./p-6bef39d4.js";import{c as e}from"./p-7ed485cb.js";const c=class{constructor(i){a(this,i),this.calciteRadioButtonGroupChange=t(this,"calciteRadioButtonGroupChange",6),this.disabled=!1,this.hidden=!1,this.layout="horizontal",this.required=!1,this.scale="m",this.mutationObserver=e("mutation",(()=>this.passPropsToRadioButtons())),this.passPropsToRadioButtons=()=>{const a=this.el.querySelectorAll("calcite-radio-button");a.length>0&&a.forEach((a=>{a.disabled=this.disabled||a.disabled,a.hidden=this.hidden,a.name=this.name,a.required=this.required,a.scale=this.scale}))}}onDisabledChange(){this.passPropsToRadioButtons()}onHiddenChange(){this.passPropsToRadioButtons()}onLayoutChange(){this.passPropsToRadioButtons()}onScaleChange(){this.passPropsToRadioButtons()}connectedCallback(){var a;this.passPropsToRadioButtons(),null===(a=this.mutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var a;null===(a=this.mutationObserver)||void 0===a||a.disconnect()}radioButtonChangeHandler(a){this.calciteRadioButtonGroupChange.emit(a.target.value)}render(){return i(n,{role:"radiogroup"},i("slot",null))}get el(){return o(this)}static get watchers(){return{disabled:["onDisabledChange"],hidden:["onHiddenChange"],layout:["onLayoutChange"],scale:["onScaleChange"]}}};c.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;max-inline-size:100vw}:host([layout=horizontal]){flex-direction:row;flex-wrap:wrap}:host([layout=horizontal][scale=s]){gap:1rem}:host([layout=horizontal][scale=m]){gap:1.25rem}:host([layout=horizontal][scale=l]){gap:1.5rem}:host([layout=vertical]){flex-direction:column}";export{c as calcite_radio_button_group}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,g as s}from"./p-6bef39d4.js";import{T as n,d as r,a as o,i as c,b as l,g as h,s as d,c as p,e as m,f as u}from"./p-6980b5a2.js";import{c as f,d as g,g as v}from"./p-db705df7.js";import{s as y,c as b,d as w,H as x}from"./p-4abff9db.js";import{d as k,f as D,c as C,u as I,r as P,a as z,F as A}from"./p-a61f18b6.js";import{u as j}from"./p-86313cdd.js";import{t as R}from"./p-671c1ca9.js";import{c as _,d as H}from"./p-7ab7c115.js";import{n as O,c as W,d as E}from"./p-72fc195d.js";import{n as S}from"./p-36263e21.js";import{c as L,s as M,a as B}from"./p-a35a58d0.js";import"./p-b388ce43.js";import"./p-275c0aa3.js";import"./p-f22a85d4.js";import"./p-7ed485cb.js";const F=class{constructor(a){t(this,a),this.calciteDatePickerChange=i(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=i(this,"calciteDatePickerRangeChange",6),this.calciteInputDatePickerChange=i(this,"calciteInputDatePickerChange",6),this.calciteInputDatePickerBeforeClose=i(this,"calciteInputDatePickerBeforeClose",6),this.calciteInputDatePickerClose=i(this,"calciteInputDatePickerClose",6),this.calciteInputDatePickerBeforeOpen=i(this,"calciteInputDatePickerBeforeOpen",6),this.calciteInputDatePickerOpen=i(this,"calciteInputDatePickerOpen",6),this.disabled=!1,this.readOnly=!1,this.value="",this.active=!1,this.open=!1,this.intlPrevMonth=n.prevMonth,this.intlNextMonth=n.nextMonth,this.intlYear=n.year,this.scale="m",this.placement=k,this.range=!1,this.required=!1,this.overlayPositioning="absolute",this.proximitySelectionDisabled=!1,this.layout="horizontal",this.calciteInternalInputInputHandler=t=>{const i=t.target.value,{year:a}=r(i,this.localeData);if(a&&a.length<4)return;const e=o(i,this.localeData);c(e,this.min,this.max)&&(this.datePickerActiveDate=e)},this.calciteInternalInputBlurHandler=()=>{this.commitValue()},this.effectiveLocale="",this.focusedInput="start",this.globalAttributes={},this.userChangedValue=!1,this.openTransitionProp="opacity",this.valueAsDateChangedExternally=!1,this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?D(i,t):null},this.setTransitionEl=t=>{this.transitionEl=t,_(this)},this.setStartInput=t=>{this.startInput=t},this.setEndInput=t=>{this.endInput=t},this.deactivate=()=>{this.open=!1},this.keyDownHandler=t=>{var i,a;const{defaultPrevented:e,key:s}=t;"Enter"!==s||e?"Escape"!==s||e||(this.active=!1,this.open=!1,t.preventDefault()):(this.commitValue(),this.shouldFocusRangeEnd()?null===(i=this.endInput)||void 0===i||i.setFocus():this.shouldFocusRangeStart()&&(null===(a=this.startInput)||void 0===a||a.setFocus()),y(this)&&t.preventDefault())},this.startInputFocus=()=>{this.readOnly||(this.open=!0),this.focusedInput="start"},this.endInputFocus=()=>{this.readOnly||(this.open=!0),this.focusedInput="end"},this.setFloatingEl=t=>{t&&(this.floatingEl=t,C(this,this.referenceEl,this.floatingEl))},this.setStartWrapper=t=>{this.startWrapper=t,this.setReferenceEl()},this.setEndWrapper=t=>{this.endWrapper=t,this.setReferenceEl()},this.handleDateChange=t=>{this.range||(t.stopPropagation(),this.setValue(t.detail),this.localizeInputValues())},this.handleDateRangeChange=t=>{var i,a;if(!this.range||!t.detail)return;t.stopPropagation();const{startDate:e,endDate:s}=t.detail;this.setRangeValue([e,s]),this.localizeInputValues(),this.shouldFocusRangeEnd()?null===(i=this.endInput)||void 0===i||i.setFocus():this.shouldFocusRangeStart()&&(null===(a=this.startInput)||void 0===a||a.setFocus())},this.setInputValue=(t,i="start")=>{const a=this[`${i}Input`];a&&(a.value=t)},this.setRangeValue=t=>{if(!this.range)return;const{value:i}=this,a=Array.isArray(i),e=Array.isArray(t),s=e?t[0]:"",n=e?l(s):"",r=e?t[1]:"",o=e?l(r):"",c=n||o?[n,o]:"";if(c===i)return;this.userChangedValue=!0,this.value=c,this.valueAsDate=c?h(c):void 0,this.start=n,this.end=o;const p={startDate:s,endDate:r?d(r):null},m=this.calciteInputDatePickerChange.emit(),u=this.calciteDatePickerRangeChange.emit(p);(m&&m.defaultPrevented||u&&u.defaultPrevented)&&(this.value=i,a?(this.setInputValue(i[0],"start"),this.setInputValue(i[1],"end")):(this.value=i,this.setInputValue(i)))},this.setValue=t=>{if(this.range)return;const i=this.value,a=l(t);if(a===i)return;this.userChangedValue=!0,this.valueAsDate=a?p(a):void 0,this.value=a||"";const e=this.calciteInputDatePickerChange.emit(),s=this.calciteDatePickerChange.emit(t);(e.defaultPrevented||s.defaultPrevented)&&(this.value=i,this.setInputValue(i))},this.commonDateSeparators=[".","-","/"],this.formatNumerals=t=>t?t.split("").map((t=>this.commonDateSeparators.includes(t)?this.localeData.separator:S.includes(t)?O.numberFormatter.format(Number(t)):t)).join(""):""}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let i;Array.isArray(t)?(i=h(t),this.start=t[0],this.end=t[1]):i=t?p(t):void 0,this.valueAsDateChangedExternally||i===this.valueAsDate||(this.valueAsDate=i),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){this.datePickerActiveDate=t;const i=this.range&&Array.isArray(t)?[l(t[0]),l(t[1])]:l(t);this.value!==i&&(this.valueAsDateChangedExternally=!0,this.value=i,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMinChanged(t){t&&(this.minAsDate=p(t))}onMaxChanged(t){t&&(this.maxAsDate=p(t))}activeHandler(t){this.open=t}openHandler(t){if(this.active=t,this.disabled||this.readOnly)return t||I(this.floatingEl),void(this.open=!1);t?this.reposition(!0):I(this.floatingEl)}overlayPositioningHandler(){this.reposition(!0)}calciteDaySelectHandler(){this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()||(this.open=!1)}async setFocus(){var t;await L(this),null===(t=this.startInput)||void 0===t||t.setFocus()}async reposition(t=!1){const{floatingEl:i,referenceEl:a,placement:e,overlayPositioning:s,filteredFlipPlacements:n}=this;return P(this,{floatingEl:i,referenceEl:a,overlayPositioning:s,placement:e,flipPlacements:n,type:"menu"},t)}connectedCallback(){W(this);const t=this.active||this.open;if(t&&this.activeHandler(t),t&&this.openHandler(t),Array.isArray(this.value))this.valueAsDate=h(this.value),this.start=this.value[0],this.end=this.value[1];else if(this.value){try{this.valueAsDate=p(this.value)}catch(t){this.warnAboutInvalidValue(this.value),this.value=""}this.start="",this.end=""}else this.range&&this.valueAsDate&&this.setRangeValue(this.valueAsDate);this.start&&(this.startAsDate=p(this.start)),this.end&&(this.endAsDate=d(p(this.end))),this.min&&(this.minAsDate=p(this.min)),this.max&&(this.maxAsDate=p(this.max)),f(this),b(this),_(this),this.setFilteredPlacements(),this.reposition(!0),O.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1}}async componentWillLoad(){M(this),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}componentDidLoad(){B(this),this.localizeInputValues(),this.reposition(!0)}disconnectedCallback(){g(this),w(this),z(this,this.referenceEl,this.floatingEl),H(this),E(this)}componentDidRender(){j(this)}render(){var t,i;const{disabled:s,effectiveLocale:n,numberingSystem:r,readOnly:o}=this;return O.numberFormatOptions={numberingSystem:r,locale:n,useGrouping:!1},a(e,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler,role:"application"},this.localeData&&a("div",{"aria-expanded":R(this.open),class:"input-container",role:"application"},a("div",{class:"input-wrapper",ref:this.setStartWrapper},a("calcite-input",{class:"input "+("vertical"===this.layout&&this.range?"no-bottom-border":""),disabled:s,icon:"calendar",label:v(this),lang:n,"number-button-type":"none",numberingSystem:r,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.startInputFocus,placeholder:null===(t=this.localeData)||void 0===t?void 0:t.placeholder,readOnly:o,ref:this.setStartInput,scale:this.scale,type:"text"})),a("div",{"aria-hidden":R(!this.open),class:{"menu-container":!0,"menu-container--active":this.open},ref:this.setFloatingEl},a("div",{class:{"calendar-picker-wrapper":!0,"calendar-picker-wrapper--end":"end"===this.focusedInput,[A.animation]:!0,[A.animationActive]:this.open},ref:this.setTransitionEl},a("calcite-date-picker",{activeDate:this.datePickerActiveDate,activeRange:this.focusedInput,endAsDate:this.endAsDate,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,lang:n,max:this.max,maxAsDate:this.maxAsDate,min:this.min,minAsDate:this.minAsDate,numberingSystem:r,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,startAsDate:this.startAsDate,tabIndex:0,valueAsDate:this.valueAsDate}))),this.range&&"horizontal"===this.layout&&a("div",{class:"horizontal-arrow-container"},a("calcite-icon",{flipRtl:!0,icon:"arrow-right",scale:"s"})),this.range&&"vertical"===this.layout&&"s"!==this.scale&&a("div",{class:"vertical-arrow-container"},a("calcite-icon",{icon:"arrow-down",scale:"s"})),this.range&&a("div",{class:"input-wrapper",ref:this.setEndWrapper},a("calcite-input",{class:{input:!0,"border-top-color-one":"vertical"===this.layout&&this.range},disabled:s,icon:"calendar",lang:n,"number-button-type":"none",numberingSystem:r,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.endInputFocus,placeholder:null===(i=this.localeData)||void 0===i?void 0:i.placeholder,readOnly:o,ref:this.setEndInput,scale:this.scale,type:"text"}))),a(x,{component:this}))}setReferenceEl(){const{focusedInput:t,layout:i,endWrapper:a,startWrapper:e}=this;this.referenceEl="end"===t||"vertical"===i?a||e:e||a,C(this,this.referenceEl,this.floatingEl)}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit()}commitValue(){const{focusedInput:t,value:i}=this,a=o(this[`${t}Input`].value,this.localeData),e=l(a),s=Array.isArray(i);if(this.range){const n="start"===t?0:1;if(s){if(e===i[n])return;a?(this.setRangeValue(["start"===t?a:p(i[0]),"end"===t?a:p(i[1])]),this.localizeInputValues()):this.setRangeValue(["end"===t&&p(i[0]),"start"===t&&p(i[1])])}else a&&(this.setRangeValue(["start"===t?a:p(i[0]),"end"===t?a:p(i[1])]),this.localizeInputValues())}else{if(e===i)return;this.setValue(a),this.localizeInputValues()}}startWatcher(t){this.startAsDate=p(t)}endWatcher(t){this.endAsDate=t?d(p(t)):p(t)}async loadLocaleData(){this.localeData=await m(this.effectiveLocale)}shouldFocusRangeStart(){return!(!this.endAsDate||this.startAsDate||"end"!==this.focusedInput||!this.startInput)}shouldFocusRangeEnd(){return!(!this.startAsDate||this.endAsDate||"start"!==this.focusedInput||!this.endInput)}localizeInputValues(){const t=u(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate),i=this.range?u(this.endAsDate,this.minAsDate,this.maxAsDate):null,a=t&&this.formatNumerals(t.toLocaleDateString(this.effectiveLocale)),e=i&&this.formatNumerals(i.toLocaleDateString(this.effectiveLocale));a&&this.setInputValue(a,"start"),this.range&&e&&this.setInputValue(e,"end")}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "yyyy-MM-dd".`)}get el(){return s(this)}static get watchers(){return{disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],value:["valueWatcher"],valueAsDate:["valueAsDateWatcher"],flipPlacements:["flipPlacementsHandler"],min:["onMinChanged"],max:["onMaxChanged"],active:["activeHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],start:["startWatcher"],end:["endWatcher"],effectiveLocale:["loadLocaleData"]}}};F.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}: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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible}.menu-container--active{visibility:visible}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{F as calcite_input_date_picker}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import{r as a,h as e,H as i,g as t}from"./p-6bef39d4.js";import{g as r}from"./p-f22a85d4.js";const n=class{constructor(e){a(this,e),this.active=!1,this.inline=!1,this.scale="m",this.value=0,this.text="",this.noPadding=!1}render(){const{el:a,inline:t,label:n,scale:o,text:l,type:s,value:c}=this,d=a.id||r(),m=t?this.getInlineSize(o):this.getSize(o),f=.45*m,v=`0 0 ${m} ${m}`,g="determinate"===s,h=2*f*Math.PI,p=c/100*h,k=h-p,_=Math.floor(c),u={r:f,cx:m/2,cy:m/2},y={"stroke-dasharray":`${p} ${k}`};return e(i,{"aria-label":n,id:d,role:"progressbar",...g?{"aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100,complete:100===_}:{}},e("div",{class:"loader__svgs"},e("svg",{class:"loader__svg loader__svg--1",viewBox:v},e("circle",{...u})),e("svg",{class:"loader__svg loader__svg--2",viewBox:v},e("circle",{...u})),e("svg",{class:"loader__svg loader__svg--3",viewBox:v,...g?{style:y}:{}},e("circle",{...u}))),l&&e("div",{class:"loader__text"},l),g&&e("div",{class:"loader__percentage"},c))}getSize(a){return{s:32,m:56,l:80}[a]}getInlineSize(a){return{s:12,m:16,l:20}[a]}get el(){return t(this)}};n.style='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2);display:inline-block}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}';export{n as calcite_loader}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/* mixins & extensions */
|
|
2
|
-
@keyframes in {
|
|
3
|
-
0% {
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
100% {
|
|
7
|
-
opacity: 1;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
@keyframes in-down {
|
|
11
|
-
0% {
|
|
12
|
-
opacity: 0;
|
|
13
|
-
transform: translate3D(0, -5px, 0);
|
|
14
|
-
}
|
|
15
|
-
100% {
|
|
16
|
-
opacity: 1;
|
|
17
|
-
transform: translate3D(0, 0, 0);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
@keyframes in-up {
|
|
21
|
-
0% {
|
|
22
|
-
opacity: 0;
|
|
23
|
-
transform: translate3D(0, 5px, 0);
|
|
24
|
-
}
|
|
25
|
-
100% {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
transform: translate3D(0, 0, 0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
@keyframes in-scale {
|
|
31
|
-
0% {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transform: scale3D(0.95, 0.95, 1);
|
|
34
|
-
}
|
|
35
|
-
100% {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
transform: scale3D(1, 1, 1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
:root {
|
|
41
|
-
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
42
|
-
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
43
|
-
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
44
|
-
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
45
|
-
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.calcite-animate {
|
|
49
|
-
opacity: 0;
|
|
50
|
-
animation-fill-mode: both;
|
|
51
|
-
animation-duration: var(--calcite-animation-timing);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.calcite-animate__in {
|
|
55
|
-
animation-name: in;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.calcite-animate__in-down {
|
|
59
|
-
animation-name: in-down;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.calcite-animate__in-up {
|
|
63
|
-
animation-name: in-up;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.calcite-animate__in-scale {
|
|
67
|
-
animation-name: in-scale;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (prefers-reduced-motion: reduce) {
|
|
71
|
-
:root {
|
|
72
|
-
--calcite-internal-duration-factor: 0.01;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Currently only used in Checkbox.
|
|
77
|
-
*/
|
|
78
|
-
:root {
|
|
79
|
-
--calcite-floating-ui-transition: var(--calcite-animation-timing);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host([hidden]) {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host {
|
|
87
|
-
position: relative;
|
|
88
|
-
display: block;
|
|
89
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import { h } from "@stencil/core";
|
|
7
|
-
import { createObserver } from "../../utils/observers";
|
|
8
|
-
/**
|
|
9
|
-
* @slot - A slot for adding elements that reference a 'calcite-popover' by the 'selector' property.
|
|
10
|
-
* @deprecated No longer required for popover usage.
|
|
11
|
-
*/
|
|
12
|
-
export class PopoverManager {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.mutationObserver = createObserver("mutation", () => this.setAutoClose());
|
|
15
|
-
// --------------------------------------------------------------------------
|
|
16
|
-
//
|
|
17
|
-
// Properties
|
|
18
|
-
//
|
|
19
|
-
// --------------------------------------------------------------------------
|
|
20
|
-
/**
|
|
21
|
-
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
22
|
-
*
|
|
23
|
-
* @default `[data-calcite-popover-reference]`
|
|
24
|
-
*/
|
|
25
|
-
this.selector = "[data-calcite-popover-reference]";
|
|
26
|
-
/**
|
|
27
|
-
* Automatically closes any currently open popovers when clicking outside of a popover.
|
|
28
|
-
*/
|
|
29
|
-
this.autoClose = false;
|
|
30
|
-
}
|
|
31
|
-
autoCloseHandler() {
|
|
32
|
-
this.setAutoClose();
|
|
33
|
-
}
|
|
34
|
-
// --------------------------------------------------------------------------
|
|
35
|
-
//
|
|
36
|
-
// Lifecycle
|
|
37
|
-
//
|
|
38
|
-
// --------------------------------------------------------------------------
|
|
39
|
-
connectedCallback() {
|
|
40
|
-
var _a;
|
|
41
|
-
this.setAutoClose();
|
|
42
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
43
|
-
}
|
|
44
|
-
disconnectedCallback() {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
47
|
-
}
|
|
48
|
-
// --------------------------------------------------------------------------
|
|
49
|
-
//
|
|
50
|
-
// Render Methods
|
|
51
|
-
//
|
|
52
|
-
// --------------------------------------------------------------------------
|
|
53
|
-
render() {
|
|
54
|
-
return h("slot", null);
|
|
55
|
-
}
|
|
56
|
-
// --------------------------------------------------------------------------
|
|
57
|
-
//
|
|
58
|
-
// Private Methods
|
|
59
|
-
//
|
|
60
|
-
// --------------------------------------------------------------------------
|
|
61
|
-
setAutoClose() {
|
|
62
|
-
const { autoClose, el } = this;
|
|
63
|
-
el.querySelectorAll("calcite-popover").forEach((popover) => (popover.autoClose = autoClose));
|
|
64
|
-
}
|
|
65
|
-
static get is() { return "calcite-popover-manager"; }
|
|
66
|
-
static get encapsulation() { return "shadow"; }
|
|
67
|
-
static get originalStyleUrls() {
|
|
68
|
-
return {
|
|
69
|
-
"$": ["popover-manager.scss"]
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
static get styleUrls() {
|
|
73
|
-
return {
|
|
74
|
-
"$": ["popover-manager.css"]
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
static get properties() {
|
|
78
|
-
return {
|
|
79
|
-
"selector": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"mutable": false,
|
|
82
|
-
"complexType": {
|
|
83
|
-
"original": "string",
|
|
84
|
-
"resolved": "string",
|
|
85
|
-
"references": {}
|
|
86
|
-
},
|
|
87
|
-
"required": false,
|
|
88
|
-
"optional": false,
|
|
89
|
-
"docs": {
|
|
90
|
-
"tags": [{
|
|
91
|
-
"name": "default",
|
|
92
|
-
"text": "`[data-calcite-popover-reference]`"
|
|
93
|
-
}],
|
|
94
|
-
"text": "CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover."
|
|
95
|
-
},
|
|
96
|
-
"attribute": "selector",
|
|
97
|
-
"reflect": true,
|
|
98
|
-
"defaultValue": "\"[data-calcite-popover-reference]\""
|
|
99
|
-
},
|
|
100
|
-
"autoClose": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "boolean",
|
|
105
|
-
"resolved": "boolean",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": "Automatically closes any currently open popovers when clicking outside of a popover."
|
|
113
|
-
},
|
|
114
|
-
"attribute": "auto-close",
|
|
115
|
-
"reflect": true,
|
|
116
|
-
"defaultValue": "false"
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
static get elementRef() { return "el"; }
|
|
121
|
-
static get watchers() {
|
|
122
|
-
return [{
|
|
123
|
-
"propName": "autoClose",
|
|
124
|
-
"methodName": "autoCloseHandler"
|
|
125
|
-
}];
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CalcitePopoverManager extends Components.CalcitePopoverManager, HTMLElement {}
|
|
4
|
-
export const CalcitePopoverManager: {
|
|
5
|
-
prototype: CalcitePopoverManager;
|
|
6
|
-
new (): CalcitePopoverManager;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.646
|
|
5
|
-
*/
|
|
6
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client/index.js';
|
|
7
|
-
import { c as createObserver } from './observers.js';
|
|
8
|
-
|
|
9
|
-
const popoverManagerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}";
|
|
10
|
-
|
|
11
|
-
const PopoverManager = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.mutationObserver = createObserver("mutation", () => this.setAutoClose());
|
|
17
|
-
// --------------------------------------------------------------------------
|
|
18
|
-
//
|
|
19
|
-
// Properties
|
|
20
|
-
//
|
|
21
|
-
// --------------------------------------------------------------------------
|
|
22
|
-
/**
|
|
23
|
-
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
24
|
-
*
|
|
25
|
-
* @default `[data-calcite-popover-reference]`
|
|
26
|
-
*/
|
|
27
|
-
this.selector = "[data-calcite-popover-reference]";
|
|
28
|
-
/**
|
|
29
|
-
* Automatically closes any currently open popovers when clicking outside of a popover.
|
|
30
|
-
*/
|
|
31
|
-
this.autoClose = false;
|
|
32
|
-
}
|
|
33
|
-
autoCloseHandler() {
|
|
34
|
-
this.setAutoClose();
|
|
35
|
-
}
|
|
36
|
-
// --------------------------------------------------------------------------
|
|
37
|
-
//
|
|
38
|
-
// Lifecycle
|
|
39
|
-
//
|
|
40
|
-
// --------------------------------------------------------------------------
|
|
41
|
-
connectedCallback() {
|
|
42
|
-
var _a;
|
|
43
|
-
this.setAutoClose();
|
|
44
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
var _a;
|
|
48
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
49
|
-
}
|
|
50
|
-
// --------------------------------------------------------------------------
|
|
51
|
-
//
|
|
52
|
-
// Render Methods
|
|
53
|
-
//
|
|
54
|
-
// --------------------------------------------------------------------------
|
|
55
|
-
render() {
|
|
56
|
-
return h("slot", null);
|
|
57
|
-
}
|
|
58
|
-
// --------------------------------------------------------------------------
|
|
59
|
-
//
|
|
60
|
-
// Private Methods
|
|
61
|
-
//
|
|
62
|
-
// --------------------------------------------------------------------------
|
|
63
|
-
setAutoClose() {
|
|
64
|
-
const { autoClose, el } = this;
|
|
65
|
-
el.querySelectorAll("calcite-popover").forEach((popover) => (popover.autoClose = autoClose));
|
|
66
|
-
}
|
|
67
|
-
get el() { return this; }
|
|
68
|
-
static get watchers() { return {
|
|
69
|
-
"autoClose": ["autoCloseHandler"]
|
|
70
|
-
}; }
|
|
71
|
-
static get style() { return popoverManagerCss; }
|
|
72
|
-
}, [1, "calcite-popover-manager", {
|
|
73
|
-
"selector": [513],
|
|
74
|
-
"autoClose": [516, "auto-close"]
|
|
75
|
-
}]);
|
|
76
|
-
function defineCustomElement$1() {
|
|
77
|
-
if (typeof customElements === "undefined") {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const components = ["calcite-popover-manager"];
|
|
81
|
-
components.forEach(tagName => { switch (tagName) {
|
|
82
|
-
case "calcite-popover-manager":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
customElements.define(tagName, PopoverManager);
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
} });
|
|
88
|
-
}
|
|
89
|
-
defineCustomElement$1();
|
|
90
|
-
|
|
91
|
-
const CalcitePopoverManager = PopoverManager;
|
|
92
|
-
const defineCustomElement = defineCustomElement$1;
|
|
93
|
-
|
|
94
|
-
export { CalcitePopoverManager, defineCustomElement };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VNode } from "../../stencil-public-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @slot - A slot for adding elements that reference a 'calcite-popover' by the 'selector' property.
|
|
4
|
-
* @deprecated No longer required for popover usage.
|
|
5
|
-
*/
|
|
6
|
-
export declare class PopoverManager {
|
|
7
|
-
el: HTMLCalcitePopoverManagerElement;
|
|
8
|
-
mutationObserver: import("../../utils/observers").ExtendedMutationObserver;
|
|
9
|
-
/**
|
|
10
|
-
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
11
|
-
*
|
|
12
|
-
* @default `[data-calcite-popover-reference]`
|
|
13
|
-
*/
|
|
14
|
-
selector: string;
|
|
15
|
-
/**
|
|
16
|
-
* Automatically closes any currently open popovers when clicking outside of a popover.
|
|
17
|
-
*/
|
|
18
|
-
autoClose: boolean;
|
|
19
|
-
autoCloseHandler(): void;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
disconnectedCallback(): void;
|
|
22
|
-
render(): VNode;
|
|
23
|
-
setAutoClose(): void;
|
|
24
|
-
}
|