@esri/calcite-components 1.0.0-next.360 → 1.0.0-next.364
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/{p-84738edb.system.entry.js → p-02589ad3.system.entry.js} +1 -1
- package/dist/calcite/{p-3e8cf990.entry.js → p-05dc6806.entry.js} +1 -1
- package/dist/calcite/{p-e62edb4d.system.entry.js → p-088a096d.system.entry.js} +1 -1
- package/dist/calcite/{p-481366ac.entry.js → p-0af820bf.entry.js} +1 -1
- package/dist/calcite/{p-6dbcd698.system.entry.js → p-0cf878ed.system.entry.js} +1 -1
- package/dist/calcite/p-10f1a096.system.entry.js +5 -0
- package/dist/calcite/{p-d00fbd1e.entry.js → p-132d55c2.entry.js} +1 -1
- package/dist/calcite/{p-1ae01548.system.js → p-14ff4cbd.system.js} +1 -1
- package/dist/calcite/{p-f63b9411.entry.js → p-16cfe8e8.entry.js} +1 -1
- package/dist/calcite/p-1894562d.system.entry.js +5 -0
- package/dist/calcite/{p-ad81283a.entry.js → p-1a5dae4a.entry.js} +1 -1
- package/dist/calcite/{p-082c3059.system.entry.js → p-1d7a9909.system.entry.js} +1 -1
- package/dist/calcite/{p-770c1d6b.entry.js → p-21f26f77.entry.js} +1 -1
- package/dist/calcite/{p-a88d8075.entry.js → p-253efee4.entry.js} +1 -1
- package/dist/calcite/{p-d5b221b1.entry.js → p-2618de8a.entry.js} +1 -1
- package/dist/calcite/p-26fd946c.entry.js +5 -0
- package/dist/calcite/{p-b55fa7bc.entry.js → p-273cd5ab.entry.js} +1 -1
- package/dist/calcite/{p-26755e82.system.js → p-28dea60a.system.js} +1 -1
- package/dist/calcite/{p-1d26d522.system.entry.js → p-2a8938c7.system.entry.js} +1 -1
- package/dist/calcite/p-2b48aa8c.entry.js +5 -0
- package/dist/calcite/{p-e5130ebf.system.entry.js → p-2c954eaa.system.entry.js} +1 -1
- package/dist/calcite/p-320ef3e6.system.entry.js +5 -0
- package/dist/calcite/{p-55d683e1.system.entry.js → p-3280f0ac.system.entry.js} +1 -1
- package/dist/calcite/p-32f6f7df.entry.js +5 -0
- package/dist/calcite/{p-f8c99ef3.system.entry.js → p-37bddb73.system.entry.js} +1 -1
- package/dist/calcite/{p-475b5015.entry.js → p-38e64c6b.entry.js} +1 -1
- package/dist/calcite/{p-07284a52.system.js → p-3a20f93d.system.js} +1 -1
- package/dist/calcite/{p-ac234622.system.entry.js → p-3ab992ff.system.entry.js} +1 -1
- package/dist/calcite/{p-74365957.system.entry.js → p-3b73b785.system.entry.js} +1 -1
- package/dist/calcite/{p-26481e18.js → p-3d4c34e5.js} +1 -1
- package/dist/calcite/{p-bccf787f.entry.js → p-3e9e4992.entry.js} +1 -1
- package/dist/calcite/p-409d0a3f.entry.js +5 -0
- package/dist/calcite/p-40bb088d.entry.js +5 -0
- package/dist/calcite/{p-12c57970.js → p-41894582.js} +1 -1
- package/dist/calcite/{p-bb4dcd31.js → p-41e2198b.js} +1 -1
- package/dist/calcite/{p-3baf4001.system.entry.js → p-436d9f0e.system.entry.js} +1 -1
- package/dist/calcite/{p-5dcd2088.system.entry.js → p-45bfe5bf.system.entry.js} +1 -1
- package/dist/calcite/{p-b63dfa63.entry.js → p-4659df78.entry.js} +1 -1
- package/dist/calcite/{p-6cd93563.entry.js → p-46b63d75.entry.js} +1 -1
- package/dist/calcite/{p-a57bd5e6.entry.js → p-4d22b788.entry.js} +1 -1
- package/dist/calcite/{p-e7103edc.entry.js → p-51550014.entry.js} +1 -1
- package/dist/calcite/{p-92ad7d95.entry.js → p-51a85436.entry.js} +1 -1
- package/dist/calcite/{p-cbea8bac.system.js → p-52871e84.system.js} +1 -1
- package/dist/calcite/{p-57555baa.system.entry.js → p-54e271c9.system.entry.js} +1 -1
- package/dist/calcite/{p-2c278864.entry.js → p-57558d4b.entry.js} +1 -1
- package/dist/calcite/{p-5cce1e8b.entry.js → p-59133b9b.entry.js} +1 -1
- package/dist/calcite/{p-b5bb4618.system.entry.js → p-5c256f31.system.entry.js} +1 -1
- package/dist/calcite/{p-18c9da83.entry.js → p-5df1936f.entry.js} +1 -1
- package/dist/calcite/{p-4aa28569.entry.js → p-6515e0a5.entry.js} +1 -1
- package/dist/calcite/{p-6e0fd056.entry.js → p-698167ac.entry.js} +1 -1
- package/dist/calcite/{p-6173cf08.system.js → p-781ebed0.system.js} +1 -1
- package/dist/calcite/{p-c5761666.entry.js → p-799f0655.entry.js} +1 -1
- package/dist/calcite/p-7cf09784.system.entry.js +5 -0
- package/dist/calcite/{p-b01c3a89.system.entry.js → p-7d355abe.system.entry.js} +1 -1
- package/dist/calcite/p-7ed5b78e.system.entry.js +5 -0
- package/dist/calcite/{p-afa72097.system.entry.js → p-7f32a681.system.entry.js} +1 -1
- package/dist/calcite/{p-557f31e6.system.entry.js → p-7f5bd070.system.entry.js} +1 -1
- package/dist/calcite/{p-cd54c8d0.system.entry.js → p-8468ddb0.system.entry.js} +1 -1
- package/dist/calcite/{p-917e53a2.system.entry.js → p-897fc280.system.entry.js} +1 -1
- package/dist/calcite/p-8a237191.system.entry.js +5 -0
- package/dist/calcite/{p-a07e9c46.system.entry.js → p-8b145872.system.entry.js} +1 -1
- package/dist/calcite/{p-bc00846c.entry.js → p-8d36bc7c.entry.js} +1 -1
- package/dist/calcite/{p-e8270c76.system.entry.js → p-8ebed170.system.entry.js} +1 -1
- package/dist/calcite/{p-7bd71ff0.system.entry.js → p-8f4ea148.system.entry.js} +1 -1
- package/dist/calcite/{p-4fee156d.system.entry.js → p-99d29b5c.system.entry.js} +1 -1
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9b05c3fd.js +5 -0
- package/dist/calcite/p-9bfe6679.system.entry.js +5 -0
- package/dist/calcite/{p-6fb2082b.entry.js → p-9d81d229.entry.js} +1 -1
- package/dist/calcite/p-9f349c92.entry.js +5 -0
- package/dist/calcite/{p-d6e8d643.entry.js → p-a0043c61.entry.js} +1 -1
- package/dist/calcite/{p-cc63f8f9.entry.js → p-a1f65f6e.entry.js} +1 -1
- package/dist/calcite/{p-1509da0f.system.entry.js → p-a4dec1f6.system.entry.js} +1 -1
- package/dist/calcite/{p-90f7c357.system.entry.js → p-a9c50960.system.entry.js} +1 -1
- package/dist/calcite/{p-f8f128a2.entry.js → p-aaed1677.entry.js} +1 -1
- package/dist/calcite/{p-70566b09.system.entry.js → p-ac778725.system.entry.js} +1 -1
- package/dist/calcite/{p-9acd0a18.entry.js → p-ac8cf248.entry.js} +1 -1
- package/dist/calcite/{p-bfd9f64a.entry.js → p-b4d3f1c1.entry.js} +1 -1
- package/dist/calcite/{p-fc3c1e91.entry.js → p-b80ab9ba.entry.js} +1 -1
- package/dist/calcite/{p-3c14f089.system.entry.js → p-bb9fb183.system.entry.js} +1 -1
- package/dist/calcite/{p-2015299a.entry.js → p-bda51610.entry.js} +1 -1
- package/dist/calcite/{p-d6bfa9b1.entry.js → p-c0ed9eff.entry.js} +1 -1
- package/dist/calcite/{p-c3124245.system.entry.js → p-cb9cd28c.system.entry.js} +1 -1
- package/dist/calcite/p-d1794edd.entry.js +5 -0
- package/dist/calcite/{p-9a0a29a7.system.entry.js → p-d578e568.system.entry.js} +1 -1
- package/dist/calcite/{p-94398466.system.entry.js → p-d5d91f34.system.entry.js} +1 -1
- package/dist/calcite/{p-6f0c4739.system.entry.js → p-e0fa3b13.system.entry.js} +1 -1
- package/dist/calcite/{p-7017ca05.js → p-e1944963.js} +1 -1
- package/dist/calcite/{p-227da2a5.system.entry.js → p-e564004a.system.entry.js} +1 -1
- package/dist/calcite/{p-0ac72794.system.entry.js → p-e606e9ae.system.entry.js} +1 -1
- package/dist/calcite/{p-f70f5521.system.entry.js → p-e690993e.system.entry.js} +1 -1
- package/dist/calcite/{p-ae224016.system.entry.js → p-e6d14bc5.system.entry.js} +1 -1
- package/dist/calcite/{p-83d41684.entry.js → p-eea18662.entry.js} +1 -1
- package/dist/calcite/{p-3c1841bd.entry.js → p-f09810e7.entry.js} +1 -1
- package/dist/calcite/{p-0134e87c.system.entry.js → p-f5469b62.system.entry.js} +1 -1
- package/dist/calcite/p-f6559122.entry.js +5 -0
- package/dist/calcite/{p-a76aa7d2.system.entry.js → p-f6fc151d.system.entry.js} +1 -1
- package/dist/calcite/{p-c077d664.entry.js → p-f73124d0.entry.js} +1 -1
- package/dist/calcite/{p-59222393.entry.js → p-f90b2e7f.entry.js} +1 -1
- package/dist/calcite/{p-4364e76a.system.js → p-fbcaa23c.system.js} +1 -1
- package/dist/calcite/{p-f3b489d9.js → p-fcd62e97.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-38ca208f.js → CalciteExpandToggle-65468585.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +13 -6
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -2
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -10
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +18 -11
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +9 -4
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input.cjs.entry.js +6 -3
- package/dist/cjs/calcite-link.cjs.entry.js +1 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
- package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/{dom-db7722f2.js → dom-0de9fb18.js} +17 -4
- package/dist/cjs/{form-ad18d4fc.js → form-4b7c317e.js} +1 -1
- package/dist/cjs/{label-4776bb0e.js → label-1bca211b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-adfdc032.js → popper-09105f6f.js} +1 -1
- package/dist/cjs/{resources-8273cb31.js → resources-405cc2c4.js} +1 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +28 -3
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +2 -1
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -7
- package/dist/collection/components/calcite-graph/calcite-graph.css +3 -5
- package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +15 -21
- package/dist/collection/components/calcite-input/calcite-input.js +3 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +38 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +10 -0
- package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
- package/dist/collection/utils/dom.js +17 -4
- package/dist/components/calcite-color-picker-swatch2.js +15 -0
- package/dist/components/calcite-combobox.js +8 -3
- package/dist/components/calcite-date-picker2.js +2 -1
- package/dist/components/calcite-dropdown2.js +12 -8
- package/dist/components/calcite-graph2.js +14 -9
- package/dist/components/calcite-inline-editable.js +5 -5
- package/dist/components/calcite-input-date-picker.js +6 -1
- package/dist/components/calcite-input2.js +3 -0
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/dom.js +17 -4
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +137 -83
- package/dist/esm/{CalciteExpandToggle-1b1bf600.js → CalciteExpandToggle-48b6e955.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +2 -2
- package/dist/esm/calcite-action-group.entry.js +1 -1
- package/dist/esm/calcite-action-menu.entry.js +1 -1
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +1 -1
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +1 -1
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +16 -1
- package/dist/esm/calcite-combobox_3.entry.js +13 -6
- package/dist/esm/calcite-date-picker_4.entry.js +3 -2
- package/dist/esm/calcite-dropdown_3.entry.js +14 -10
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +19 -12
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +9 -4
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
- package/dist/esm/calcite-input.entry.js +6 -3
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-list_3.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +3 -3
- package/dist/esm/calcite-panel.entry.js +1 -1
- package/dist/esm/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm/calcite-popover_2.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +4 -4
- package/dist/esm/calcite-radio-group_2.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-tip_3.entry.js +1 -1
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/{dom-e55f9eaf.js → dom-037dc374.js} +17 -4
- package/dist/esm/{form-147bc6d7.js → form-72369b73.js} +1 -1
- package/dist/esm/{label-240ef148.js → label-712646d2.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-1814b3c1.js → popper-7a7fd3b5.js} +1 -1
- package/dist/esm/{resources-a6abee37.js → resources-03c0a433.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-1b1bf600.js → CalciteExpandToggle-48b6e955.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/dom-037dc374.js +5 -0
- package/dist/esm-es5/{form-147bc6d7.js → form-72369b73.js} +1 -1
- package/dist/esm-es5/{label-240ef148.js → label-712646d2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{popper-1814b3c1.js → popper-7a7fd3b5.js} +1 -1
- package/dist/esm-es5/{resources-a6abee37.js → resources-03c0a433.js} +1 -1
- package/dist/extras/docs-json.json +75 -38
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +1 -0
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +3 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -5
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +9 -0
- package/dist/types/components.d.ts +24 -16
- package/dist/types/preact.d.ts +5 -4
- package/dist/types/utils/dom.d.ts +4 -2
- package/hydrate/index.js +136 -83
- package/package.json +13 -13
- package/readme.md +2 -2
- package/dist/calcite/p-0b187e6a.system.entry.js +0 -5
- package/dist/calcite/p-15a38242.system.entry.js +0 -5
- package/dist/calcite/p-428412b9.entry.js +0 -5
- package/dist/calcite/p-55e6b0b2.entry.js +0 -5
- package/dist/calcite/p-5c0e75f5.system.entry.js +0 -5
- package/dist/calcite/p-634115dd.entry.js +0 -5
- package/dist/calcite/p-765d6b57.system.entry.js +0 -5
- package/dist/calcite/p-7f4866eb.entry.js +0 -5
- package/dist/calcite/p-805c94b9.entry.js +0 -5
- package/dist/calcite/p-b43f2e28.entry.js +0 -5
- package/dist/calcite/p-c13560e5.system.entry.js +0 -5
- package/dist/calcite/p-e39173ae.entry.js +0 -5
- package/dist/calcite/p-ef6f8370.entry.js +0 -5
- package/dist/calcite/p-f65fdcde.system.entry.js +0 -5
- package/dist/calcite/p-f87c1273.js +0 -5
- package/dist/calcite/p-fbcdf667.system.entry.js +0 -5
- package/dist/esm-es5/dom-e55f9eaf.js +0 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { f as forceUpdate, h } from './index-9de00868.js';
|
|
6
|
-
import { a as getElementDir } from './dom-
|
|
6
|
+
import { a as getElementDir } from './dom-037dc374.js';
|
|
7
7
|
import { S as SLOTS } from './resources-584acd9b.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-7c6029b6.js';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-9de00868.js';
|
|
6
|
-
import { d as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom-
|
|
6
|
+
import { d as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom-037dc374.js';
|
|
7
7
|
import './guid-196bd5ea.js';
|
|
8
8
|
|
|
9
9
|
const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-
|
|
7
|
-
import { f as focusElement, g as getSlotted } from './dom-
|
|
6
|
+
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-48b6e955.js';
|
|
7
|
+
import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
|
|
8
8
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
9
|
import { d as debounce } from './debounce-79648d42.js';
|
|
10
10
|
import './resources-584acd9b.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { S as SLOTS, I as ICONS, T as TEXT } from './resources-7c6029b6.js';
|
|
7
|
-
import { g as getSlotted } from './dom-
|
|
7
|
+
import { g as getSlotted } from './dom-037dc374.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-584acd9b.js';
|
|
9
9
|
import './guid-196bd5ea.js';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { C as CSS, I as ICONS, S as SLOTS } from './resources-584acd9b.js';
|
|
7
|
-
import { g as getSlotted, f as focusElement } from './dom-
|
|
7
|
+
import { g as getSlotted, f as focusElement } from './dom-037dc374.js';
|
|
8
8
|
import { g as getRoundRobinIndex } from './array-91a648e2.js';
|
|
9
9
|
import { g as guid } from './guid-196bd5ea.js';
|
|
10
10
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-
|
|
7
|
-
import { f as focusElement, g as getSlotted } from './dom-
|
|
6
|
+
import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-48b6e955.js';
|
|
7
|
+
import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
|
|
8
8
|
import './resources-584acd9b.js';
|
|
9
9
|
import './resources-7c6029b6.js';
|
|
10
10
|
import './guid-196bd5ea.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { s as setRequestedIcon } from './dom-
|
|
6
|
+
import { s as setRequestedIcon } from './dom-037dc374.js';
|
|
7
7
|
import { S as StatusIcons } from './interfaces-51dc4e1b.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { h as hexToRGB, i as isValidHex } from './utils-6beb0662.js';
|
|
7
|
-
import { b as getThemeName } from './dom-
|
|
7
|
+
import { b as getThemeName } from './dom-037dc374.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { g as getSlotted, a as getElementDir } from './dom-
|
|
6
|
+
import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
|
|
7
7
|
import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { c as closestElementCrossShadowBoundary } from './dom-
|
|
7
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
6
|
+
import { c as closestElementCrossShadowBoundary } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
|
|
8
8
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
9
|
import './guid-196bd5ea.js';
|
|
10
10
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as guid } from './guid-196bd5ea.js';
|
|
7
|
-
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
|
8
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
9
|
-
import './dom-
|
|
7
|
+
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-72369b73.js';
|
|
8
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
|
|
9
|
+
import './dom-037dc374.js';
|
|
10
10
|
|
|
11
11
|
const calciteCheckboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing)}:host([disabled]){pointer-events:none;cursor:default;opacity:var(--calcite-ui-opacity-disabled)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { g as getSlotted } from './dom-
|
|
6
|
+
import { g as getSlotted } from './dom-037dc374.js';
|
|
7
7
|
import { g as guid } from './guid-196bd5ea.js';
|
|
8
8
|
|
|
9
9
|
const CSS = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { f as focusElement, b as getThemeName } from './dom-
|
|
6
|
+
import { f as focusElement, b as getThemeName } from './dom-037dc374.js';
|
|
7
7
|
import { n as normalizeHex, C as CSSColorMode, p as parseMode, c as colorEqual, i as isValidHex, a as isLonghandHex, r as rgbToHex, h as hexToRGB, b as hexChar } from './utils-6beb0662.js';
|
|
8
8
|
import { c as clamp } from './math-456207f5.js';
|
|
9
9
|
import { d as debounce, i as isObject } from './debounce-79648d42.js';
|
|
@@ -1945,6 +1945,21 @@ Color.prototype = {
|
|
|
1945
1945
|
return colorString.to.hex(this.rgb().round().color);
|
|
1946
1946
|
},
|
|
1947
1947
|
|
|
1948
|
+
hexa(value) {
|
|
1949
|
+
if (arguments.length > 0) {
|
|
1950
|
+
return new Color(value);
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
const rgbArray = this.rgb().round().color;
|
|
1954
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
|
1955
|
+
|
|
1956
|
+
if (alphaHex.length === 1) {
|
|
1957
|
+
alphaHex = '0' + alphaHex;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
|
1961
|
+
},
|
|
1962
|
+
|
|
1948
1963
|
rgbNumber() {
|
|
1949
1964
|
const rgb = this.rgb().color;
|
|
1950
1965
|
return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { a as isSymbol, S as Symbol, d as debounce } from './debounce-79648d42.js';
|
|
7
7
|
import { i as isArray, f as forIn } from './forIn-48d8fb84.js';
|
|
8
|
-
import { u as updatePopper, c as createPopper, C as CSS$2 } from './popper-
|
|
8
|
+
import { u as updatePopper, c as createPopper, C as CSS$2 } from './popper-7a7fd3b5.js';
|
|
9
9
|
import { g as guid } from './guid-196bd5ea.js';
|
|
10
|
-
import { n as nodeListToArray, d as getElementProp } from './dom-
|
|
11
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
12
|
-
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
|
10
|
+
import { n as nodeListToArray, d as getElementProp } from './dom-037dc374.js';
|
|
11
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
|
|
12
|
+
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form-72369b73.js';
|
|
13
13
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -155,6 +155,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
155
155
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
156
156
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
157
157
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
158
|
+
const TEXT = {
|
|
159
|
+
removeTag: "Remove tag"
|
|
160
|
+
};
|
|
158
161
|
|
|
159
162
|
function getAncestors(element) {
|
|
160
163
|
var _a, _b;
|
|
@@ -219,6 +222,10 @@ let CalciteCombobox = class {
|
|
|
219
222
|
this.scale = "m";
|
|
220
223
|
/** The value(s) of the selectedItem(s) */
|
|
221
224
|
this.value = null;
|
|
225
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
226
|
+
* @default "Remove tag"
|
|
227
|
+
*/
|
|
228
|
+
this.intlRemoveTag = TEXT.removeTag;
|
|
222
229
|
//--------------------------------------------------------------------------
|
|
223
230
|
//
|
|
224
231
|
// Private State/Props
|
|
@@ -824,7 +831,7 @@ let CalciteCombobox = class {
|
|
|
824
831
|
//
|
|
825
832
|
//--------------------------------------------------------------------------
|
|
826
833
|
renderChips() {
|
|
827
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
834
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
828
835
|
return this.selectedItems.map((item, i) => {
|
|
829
836
|
const chipClasses = {
|
|
830
837
|
chip: true,
|
|
@@ -833,7 +840,7 @@ let CalciteCombobox = class {
|
|
|
833
840
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
834
841
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
835
842
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
836
|
-
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel:
|
|
843
|
+
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `chip-${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
837
844
|
});
|
|
838
845
|
}
|
|
839
846
|
renderInput() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from './index-9de00868.js';
|
|
6
6
|
import { T as TEXT, c as getDaysDiff, d as dateToISO, a as dateFromISO, b as dateFromRange, g as getLocaleData, H as HEADING_LEVEL, s as sameDate, i as inRange, l as localizeNumber, e as getOrder, n as nextMonth, f as prevMonth, h as parseNumber } from './resources-90193940.js';
|
|
7
|
-
import { a as getElementDir, C as CSS_UTILITY } from './dom-
|
|
7
|
+
import { a as getElementDir, C as CSS_UTILITY } from './dom-037dc374.js';
|
|
8
8
|
import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
|
|
9
9
|
import './locale-fc850b7c.js';
|
|
10
10
|
import './number-8779395f.js';
|
|
@@ -173,6 +173,7 @@ let CalciteDatePicker = class {
|
|
|
173
173
|
this.value = date ? dateToISO(date) : "";
|
|
174
174
|
this.valueAsDate = date || null;
|
|
175
175
|
this.activeDate = date || null;
|
|
176
|
+
this.calciteDatePickerChange.emit(date);
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
179
|
if (!this.startAsDate || (!this.endAsDate && date < this.startAsDate)) {
|
|
@@ -221,12 +222,12 @@ let CalciteDatePicker = class {
|
|
|
221
222
|
this.endAsDate = this.activeEndDate = this.end = undefined;
|
|
222
223
|
}
|
|
223
224
|
}
|
|
225
|
+
this.calciteDatePickerChange.emit(date);
|
|
224
226
|
};
|
|
225
227
|
}
|
|
226
228
|
handleValueAsDate(date) {
|
|
227
229
|
if (!Array.isArray(date) && date && date !== this.activeDate) {
|
|
228
230
|
this.activeDate = date;
|
|
229
|
-
this.calciteDatePickerChange.emit(date);
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
233
|
handleRangeChange() {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { f as focusElement, d as getElementProp } from './dom-
|
|
7
|
-
import { C as CSS$2, u as updatePopper, c as createPopper } from './popper-
|
|
6
|
+
import { f as focusElement, d as getElementProp } from './dom-037dc374.js';
|
|
7
|
+
import { C as CSS$2, u as updatePopper, c as createPopper } from './popper-7a7fd3b5.js';
|
|
8
8
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
9
|
import './guid-196bd5ea.js';
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ const SLOTS = {
|
|
|
13
13
|
dropdownTrigger: "dropdown-trigger"
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);
|
|
16
|
+
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
17
17
|
|
|
18
18
|
let CalciteDropdown = class {
|
|
19
19
|
constructor(hostRef) {
|
|
@@ -67,6 +67,7 @@ let CalciteDropdown = class {
|
|
|
67
67
|
this.items = [];
|
|
68
68
|
this.activeTransitionProp = "visibility";
|
|
69
69
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
70
|
+
this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
|
|
70
71
|
//--------------------------------------------------------------------------
|
|
71
72
|
//
|
|
72
73
|
// Private Methods
|
|
@@ -79,13 +80,15 @@ let CalciteDropdown = class {
|
|
|
79
80
|
this.reposition();
|
|
80
81
|
};
|
|
81
82
|
this.setMaxScrollerHeight = () => {
|
|
82
|
-
const { scrollerEl } = this;
|
|
83
|
-
if (scrollerEl) {
|
|
84
|
-
|
|
85
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
83
|
+
const { active, scrollerEl } = this;
|
|
84
|
+
if (!scrollerEl || !active) {
|
|
85
|
+
return;
|
|
86
86
|
}
|
|
87
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
88
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
87
89
|
};
|
|
88
90
|
this.setScrollerEl = (scrollerEl) => {
|
|
91
|
+
this.resizeObserver.observe(scrollerEl);
|
|
89
92
|
this.scrollerEl = scrollerEl;
|
|
90
93
|
};
|
|
91
94
|
this.transitionEnd = (event) => {
|
|
@@ -141,6 +144,7 @@ let CalciteDropdown = class {
|
|
|
141
144
|
}
|
|
142
145
|
maxItemsHandler() {
|
|
143
146
|
this.reposition();
|
|
147
|
+
this.setMaxScrollerHeight();
|
|
144
148
|
}
|
|
145
149
|
placementHandler() {
|
|
146
150
|
this.reposition();
|
|
@@ -160,8 +164,9 @@ let CalciteDropdown = class {
|
|
|
160
164
|
this.reposition();
|
|
161
165
|
}
|
|
162
166
|
disconnectedCallback() {
|
|
163
|
-
var _a;
|
|
167
|
+
var _a, _b;
|
|
164
168
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
169
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
165
170
|
this.destroyPopper();
|
|
166
171
|
}
|
|
167
172
|
render() {
|
|
@@ -170,7 +175,7 @@ let CalciteDropdown = class {
|
|
|
170
175
|
["calcite-dropdown-content"]: true,
|
|
171
176
|
[CSS$2.animation]: true,
|
|
172
177
|
[CSS$2.animationActive]: active
|
|
173
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
178
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !this.active }, h("slot", null))))));
|
|
174
179
|
}
|
|
175
180
|
//--------------------------------------------------------------------------
|
|
176
181
|
//
|
|
@@ -180,7 +185,6 @@ let CalciteDropdown = class {
|
|
|
180
185
|
/** Updates the position of the component. */
|
|
181
186
|
async reposition() {
|
|
182
187
|
const { popper, menuEl, placement } = this;
|
|
183
|
-
this.setMaxScrollerHeight();
|
|
184
188
|
const modifiers = this.getModifiers();
|
|
185
189
|
popper
|
|
186
190
|
? await updatePopper({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { f as focusElement } from './dom-
|
|
6
|
+
import { f as focusElement } from './dom-037dc374.js';
|
|
7
7
|
import './guid-196bd5ea.js';
|
|
8
8
|
|
|
9
9
|
const CSS = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { f as focusElement } from './dom-
|
|
6
|
+
import { f as focusElement } from './dom-037dc374.js';
|
|
7
7
|
import { d as debounce } from './debounce-79648d42.js';
|
|
8
8
|
import { f as forIn } from './forIn-48d8fb84.js';
|
|
9
9
|
import './guid-196bd5ea.js';
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, g as getElement, c as createEvent, H as Host } from './index-9de00868.js';
|
|
5
|
+
import { r as registerInstance, f as forceUpdate, h, g as getElement, c as createEvent, H as Host } from './index-9de00868.js';
|
|
6
6
|
import { g as guid } from './guid-196bd5ea.js';
|
|
7
|
-
import {
|
|
7
|
+
import { c as createObserver } from './observers-8f0bc419.js';
|
|
8
|
+
import { j as intersects } from './dom-037dc374.js';
|
|
8
9
|
import { d as decimalPlaces, c as clamp } from './math-456207f5.js';
|
|
9
|
-
import { c as connectLabel, d as disconnectLabel } from './label-
|
|
10
|
-
import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form-
|
|
10
|
+
import { c as connectLabel, d as disconnectLabel } from './label-712646d2.js';
|
|
11
|
+
import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form-72369b73.js';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Calculate slope of the tangents
|
|
@@ -108,7 +109,7 @@ function area({ data, min, max, t }) {
|
|
|
108
109
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
const calciteGraphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;
|
|
112
|
+
const calciteGraphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}.svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
112
113
|
|
|
113
114
|
let CalciteGraph = class {
|
|
114
115
|
constructor(hostRef) {
|
|
@@ -123,25 +124,31 @@ let CalciteGraph = class {
|
|
|
123
124
|
* These data points should be sorted by x-axis value
|
|
124
125
|
*/
|
|
125
126
|
this.data = [];
|
|
126
|
-
/** Width of graph in pixels*/
|
|
127
|
-
this.width = 300;
|
|
128
|
-
/** Width of graph in pixels*/
|
|
129
|
-
this.height = 100;
|
|
130
127
|
//--------------------------------------------------------------------------
|
|
131
128
|
//
|
|
132
129
|
// Private State/Props
|
|
133
130
|
//
|
|
134
131
|
//--------------------------------------------------------------------------
|
|
135
132
|
this.graphId = `calcite-graph-${guid()}`;
|
|
133
|
+
this.resizeObserver = createObserver("resize", () => forceUpdate(this));
|
|
136
134
|
}
|
|
137
135
|
//--------------------------------------------------------------------------
|
|
138
136
|
//
|
|
139
137
|
// Lifecycle
|
|
140
138
|
//
|
|
141
139
|
//--------------------------------------------------------------------------
|
|
140
|
+
connectedCallback() {
|
|
141
|
+
var _a;
|
|
142
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
143
|
+
}
|
|
144
|
+
disconnectedCallback() {
|
|
145
|
+
var _a;
|
|
146
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
147
|
+
}
|
|
142
148
|
render() {
|
|
143
|
-
const { data, colorStops,
|
|
149
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
144
150
|
const id = this.graphId;
|
|
151
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
145
152
|
// if we have no data, return empty svg
|
|
146
153
|
if (!data || data.length === 0) {
|
|
147
154
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -191,7 +198,7 @@ let CalciteGraph = class {
|
|
|
191
198
|
};
|
|
192
199
|
CalciteGraph.style = calciteGraphCss;
|
|
193
200
|
|
|
194
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
201
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
195
202
|
|
|
196
203
|
let CalciteSlider = class {
|
|
197
204
|
constructor(hostRef) {
|
|
@@ -446,7 +453,7 @@ let CalciteSlider = class {
|
|
|
446
453
|
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
|
447
454
|
}
|
|
448
455
|
renderGraph() {
|
|
449
|
-
return this.histogram ? (h("
|
|
456
|
+
return this.histogram ? (h("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.isRange ? this.maxValue : this.value, highlightMin: this.isRange ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
|
450
457
|
}
|
|
451
458
|
renderTickLabel(tick) {
|
|
452
459
|
const isMinTickLabel = tick === this.min;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { a as getAssetPath, r as registerInstance, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { a as getElementDir } from './dom-
|
|
6
|
+
import { a as getElementDir } from './dom-037dc374.js';
|
|
7
7
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { d as getElementProp } from './dom-
|
|
7
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
6
|
+
import { d as getElementProp } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
10
10
|
const CSS = {
|
|
@@ -27,8 +27,8 @@ const calciteInlineEditableCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacit
|
|
|
27
27
|
let CalciteInlineEditable = class {
|
|
28
28
|
constructor(hostRef) {
|
|
29
29
|
registerInstance(this, hostRef);
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
30
|
+
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
31
|
+
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
32
32
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
33
33
|
//--------------------------------------------------------------------------
|
|
34
34
|
//
|
|
@@ -55,9 +55,9 @@ let CalciteInlineEditable = class {
|
|
|
55
55
|
* @default "Save"
|
|
56
56
|
*/
|
|
57
57
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
58
|
-
this.transitionEnd = (
|
|
58
|
+
this.transitionEnd = () => {
|
|
59
59
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
60
|
-
this.
|
|
60
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
this.enableEditing = () => {
|
|
@@ -109,7 +109,7 @@ let CalciteInlineEditable = class {
|
|
|
109
109
|
this.confirmChangesHandler = async (e) => {
|
|
110
110
|
e.preventDefault();
|
|
111
111
|
e.stopPropagation();
|
|
112
|
-
this.
|
|
112
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
113
113
|
try {
|
|
114
114
|
if (this.afterConfirm) {
|
|
115
115
|
this.loading = true;
|