@esri/calcite-components 1.0.0-next.521 → 1.0.0-next.524
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.css +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-3ebebd84.system.entry.js → p-0021e287.system.entry.js} +3 -3
- package/dist/calcite/{p-66240c05.entry.js → p-0198ffdc.entry.js} +2 -2
- package/dist/calcite/p-046ec290.entry.js +6 -0
- package/dist/calcite/{p-25129b54.system.entry.js → p-067f770e.system.entry.js} +2 -2
- package/dist/calcite/{p-1934cb89.entry.js → p-073db535.entry.js} +2 -2
- package/dist/calcite/{p-0c8eb394.js → p-077ff084.js} +1 -1
- package/dist/calcite/{p-fc76a97f.system.js → p-0b11c342.system.js} +1 -1
- package/dist/calcite/{p-46c73e88.entry.js → p-0c376871.entry.js} +2 -2
- package/dist/calcite/{p-f4a4e6fd.entry.js → p-0cc91f9e.entry.js} +2 -2
- package/dist/calcite/p-0f16fcf2.system.js +6 -0
- package/dist/calcite/p-0f539167.system.js +6 -0
- package/dist/calcite/p-0fe02887.js +6 -0
- package/dist/calcite/p-10d09cd6.entry.js +6 -0
- package/dist/calcite/{p-503ffd79.js → p-143abf64.js} +1 -1
- package/dist/calcite/{p-709ffc8a.system.entry.js → p-14796d0f.system.entry.js} +2 -2
- package/dist/calcite/{p-922cca1a.system.js → p-15c964c6.system.js} +2 -2
- package/dist/calcite/{p-5c81572b.entry.js → p-1646ec88.entry.js} +2 -2
- package/dist/calcite/{p-74508b15.system.js → p-16ca542c.system.js} +1 -1
- package/dist/calcite/{p-f5fcb884.system.entry.js → p-184ebb3b.system.entry.js} +2 -2
- package/dist/calcite/{p-a799c49f.system.entry.js → p-19bdcf8c.system.entry.js} +2 -2
- package/dist/calcite/{p-1a7dcfc0.system.entry.js → p-19f3559b.system.entry.js} +2 -2
- package/dist/calcite/{p-22d40d65.entry.js → p-1d943758.entry.js} +2 -2
- package/dist/calcite/{p-ef10300b.entry.js → p-1e059893.entry.js} +2 -2
- package/dist/calcite/{p-1786fb93.js → p-1e3a412f.js} +1 -1
- package/dist/calcite/{p-e0edddf8.entry.js → p-200a4df9.entry.js} +2 -2
- package/dist/calcite/{p-c9878d39.system.entry.js → p-203b84e0.system.entry.js} +2 -2
- package/dist/calcite/{p-5b2d7828.js → p-217da6af.js} +2 -2
- package/dist/calcite/{p-5c335596.system.entry.js → p-23f06b74.system.entry.js} +3 -3
- package/dist/calcite/{p-06332d21.system.entry.js → p-25506e7a.system.entry.js} +2 -2
- package/dist/calcite/{p-d9e6af1c.system.entry.js → p-25ac8f0f.system.entry.js} +2 -2
- package/dist/calcite/{p-43e7a8f1.system.js → p-26556d6d.system.js} +3 -3
- package/dist/calcite/{p-3111a501.system.js → p-2ec417aa.system.js} +1 -1
- package/dist/calcite/{p-d9d2294a.entry.js → p-2f1d4aae.entry.js} +2 -2
- package/dist/calcite/{p-803997da.system.entry.js → p-32448d28.system.entry.js} +2 -2
- package/dist/calcite/{p-c57bfa50.system.entry.js → p-35dc2f85.system.entry.js} +2 -2
- package/dist/calcite/{p-196346bf.system.entry.js → p-360e30b3.system.entry.js} +3 -3
- package/dist/calcite/{p-956aea00.system.entry.js → p-361aa924.system.entry.js} +2 -2
- package/dist/calcite/{p-d4a4f33e.entry.js → p-3a5f669d.entry.js} +2 -2
- package/dist/calcite/{p-0df3ffa0.system.entry.js → p-3aa6117f.system.entry.js} +2 -2
- package/dist/calcite/p-3c567654.entry.js +6 -0
- package/dist/calcite/{p-9ed3942c.system.js → p-3cea6fdc.system.js} +2 -2
- package/dist/calcite/{p-3ecd2c17.entry.js → p-3e9ed951.entry.js} +2 -2
- package/dist/calcite/{p-dc5fb654.system.entry.js → p-40a76d39.system.entry.js} +2 -2
- package/dist/calcite/{p-a6339811.system.entry.js → p-41d85ce9.system.entry.js} +2 -2
- package/dist/calcite/{p-18e94c9f.entry.js → p-434242b1.entry.js} +2 -2
- package/dist/calcite/{p-d8bf5b29.js → p-442951a7.js} +1 -1
- package/dist/calcite/{p-08e28998.system.entry.js → p-4545dbb5.system.entry.js} +2 -2
- package/dist/calcite/{p-53cb1579.system.js → p-454d0d3b.system.js} +1 -1
- package/dist/calcite/{p-98d13115.entry.js → p-463c0ed8.entry.js} +2 -2
- package/dist/calcite/{p-3ecec156.entry.js → p-4b4c8b1f.entry.js} +2 -2
- package/dist/calcite/{p-0e88270b.js → p-4c684c84.js} +2 -2
- package/dist/calcite/{p-0ff0ca0b.system.entry.js → p-4cc8bda0.system.entry.js} +2 -2
- package/dist/calcite/{p-ea37aa52.entry.js → p-4da07432.entry.js} +2 -2
- package/dist/calcite/{p-0c6874b0.system.entry.js → p-4fe7e777.system.entry.js} +2 -2
- package/dist/calcite/{p-a63dc521.system.entry.js → p-505be8f5.system.entry.js} +2 -2
- package/dist/calcite/{p-5b152346.entry.js → p-510ddd53.entry.js} +2 -2
- package/dist/calcite/{p-18de0e0b.system.entry.js → p-56c11b0f.system.entry.js} +2 -2
- package/dist/calcite/{p-e72532a8.entry.js → p-5c0773d2.entry.js} +2 -2
- package/dist/calcite/{p-62a0f380.system.entry.js → p-5d050e71.system.entry.js} +2 -2
- package/dist/calcite/{p-f105b00b.system.entry.js → p-5d23d9e9.system.entry.js} +2 -2
- package/dist/calcite/{p-19f87399.system.js → p-5ded25b4.system.js} +1 -1
- package/dist/calcite/{p-8aafc60e.system.js → p-5df04b2f.system.js} +2 -2
- package/dist/calcite/{p-df8177da.system.entry.js → p-5e4b8fc3.system.entry.js} +2 -2
- package/dist/calcite/{p-4565c114.system.js → p-6021e7db.system.js} +2 -2
- package/dist/calcite/{p-01b638d1.entry.js → p-60ec029f.entry.js} +2 -2
- package/dist/calcite/{p-ec3ac306.system.entry.js → p-617e01a1.system.entry.js} +2 -2
- package/dist/calcite/{p-a7ae0c54.system.entry.js → p-61cd8cfb.system.entry.js} +2 -2
- package/dist/calcite/{p-8d193648.system.js → p-620d4b91.system.js} +1 -1
- package/dist/calcite/{p-b80bbe57.entry.js → p-63be3fc7.entry.js} +2 -2
- package/dist/calcite/{p-7609b260.entry.js → p-63bf0acf.entry.js} +2 -2
- package/dist/calcite/{p-1d7e2d4a.js → p-63cea60e.js} +1 -1
- package/dist/calcite/p-6431a87e.js +6 -0
- package/dist/calcite/{p-302615c5.system.entry.js → p-65e5f903.system.entry.js} +2 -2
- package/dist/calcite/{p-4d012e6d.entry.js → p-674bd6ed.entry.js} +2 -2
- package/dist/calcite/{p-8ad36643.entry.js → p-6c279d51.entry.js} +2 -2
- package/dist/calcite/{p-bc269b24.js → p-6c8e9009.js} +2 -2
- package/dist/calcite/{p-7f80ef30.entry.js → p-6ed34f0c.entry.js} +2 -2
- package/dist/calcite/{p-05a4b9dd.entry.js → p-6f29031f.entry.js} +2 -2
- package/dist/calcite/{p-490d284a.entry.js → p-6f7f0f67.entry.js} +2 -2
- package/dist/calcite/{p-1c45719a.system.js → p-7086770b.system.js} +1 -1
- package/dist/calcite/{p-82894cb4.system.entry.js → p-76c1bcd7.system.entry.js} +3 -3
- package/dist/calcite/{p-f6032fac.entry.js → p-7724bf19.entry.js} +2 -2
- package/dist/calcite/{p-f8360ef0.system.entry.js → p-791eb72e.system.entry.js} +2 -2
- package/dist/calcite/{p-be33578d.js → p-794df25d.js} +2 -2
- package/dist/calcite/{p-68c538e6.js → p-79750027.js} +2 -2
- package/dist/calcite/{p-10fe1682.entry.js → p-7990754a.entry.js} +2 -2
- package/dist/calcite/{p-2b8e9cae.system.entry.js → p-7a538f4d.system.entry.js} +2 -2
- package/dist/calcite/{p-cea960cf.entry.js → p-7d3a5cee.entry.js} +2 -2
- package/dist/calcite/{p-c7e7cc3f.js → p-803e1fdf.js} +1 -1
- package/dist/calcite/{p-b72717bd.entry.js → p-80b15fa9.entry.js} +2 -2
- package/dist/calcite/{p-5a8d424e.system.entry.js → p-80c67e43.system.entry.js} +2 -2
- package/dist/calcite/{p-5956ae2b.system.js → p-82189690.system.js} +1 -1
- package/dist/calcite/p-87ddf5b2.entry.js +6 -0
- package/dist/calcite/{p-5d1ea183.system.entry.js → p-8a15bb81.system.entry.js} +2 -2
- package/dist/calcite/{p-9814a422.system.entry.js → p-8b26bb66.system.entry.js} +2 -2
- package/dist/calcite/{p-ba1931db.entry.js → p-8bc93584.entry.js} +2 -2
- package/dist/calcite/p-8c91f5b7.system.entry.js +6 -0
- package/dist/calcite/{p-68605411.entry.js → p-8eb1ad9d.entry.js} +2 -2
- package/dist/calcite/{p-a7a4705c.entry.js → p-8f4e9d9b.entry.js} +2 -2
- package/dist/calcite/{p-adcd9271.system.js → p-95ac8e64.system.js} +1 -1
- package/dist/calcite/{p-8469c3f5.system.entry.js → p-96239dc0.system.entry.js} +2 -2
- package/dist/calcite/p-9a9b35e0.system.entry.js +6 -0
- package/dist/calcite/{p-d44c6b32.system.js → p-9d4195ba.system.js} +1 -1
- package/dist/calcite/{p-3bbfc3a1.js → p-9e416f64.js} +1 -1
- package/dist/calcite/{p-f0f828f4.js → p-9e9297fc.js} +1 -1
- package/dist/calcite/{p-02a3583d.entry.js → p-9f5327fe.entry.js} +2 -2
- package/dist/calcite/{p-08f334c1.js → p-a18960d1.js} +2 -2
- package/dist/calcite/{p-ab5101d8.system.js → p-a21681bf.system.js} +1 -1
- package/dist/calcite/{p-836254a6.system.entry.js → p-a25613a9.system.entry.js} +2 -2
- package/dist/calcite/{p-477ca75f.entry.js → p-a8863e85.entry.js} +2 -2
- package/dist/calcite/{p-71a5a7b9.js → p-aa0aafda.js} +1 -1
- package/dist/calcite/{p-b64ac51f.entry.js → p-aba8619b.entry.js} +2 -2
- package/dist/calcite/{p-0d86e14f.entry.js → p-b0067d82.entry.js} +2 -2
- package/dist/calcite/{p-e029f7a3.entry.js → p-b43e23a4.entry.js} +2 -2
- package/dist/calcite/{p-4a08a094.js → p-b44a4212.js} +2 -2
- package/dist/calcite/{p-c74ae0e9.system.entry.js → p-b4698639.system.entry.js} +2 -2
- package/dist/calcite/{p-bee3c541.js → p-b47b772e.js} +1 -1
- package/dist/calcite/{p-bcbe7ce6.system.entry.js → p-b78e0aa4.system.entry.js} +2 -2
- package/dist/calcite/{p-80dd019b.js → p-b9b838ca.js} +1 -1
- package/dist/calcite/{p-ca13fa8e.entry.js → p-bb286f7b.entry.js} +2 -2
- package/dist/calcite/{p-2981a893.js → p-bba345b0.js} +2 -2
- package/dist/calcite/{p-f463e742.system.entry.js → p-bd1af8e6.system.entry.js} +2 -2
- package/dist/calcite/{p-5321532e.entry.js → p-be44dd8c.entry.js} +2 -2
- package/dist/calcite/{p-f2efb50c.system.entry.js → p-bf01ccef.system.entry.js} +2 -2
- package/dist/calcite/{p-5bbaac2e.system.entry.js → p-bf24e24e.system.entry.js} +2 -2
- package/dist/calcite/{p-90bd223c.system.entry.js → p-bffc203d.system.entry.js} +2 -2
- package/dist/calcite/{p-d7a237ba.system.js → p-c0137931.system.js} +1 -1
- package/dist/calcite/{p-37ae8843.system.js → p-c0564473.system.js} +2 -2
- package/dist/calcite/{p-616f05fa.entry.js → p-c0dd3393.entry.js} +2 -2
- package/dist/calcite/{p-a56d7998.system.js → p-c17fcd09.system.js} +2 -2
- package/dist/calcite/{p-b2f3fc3d.system.entry.js → p-c4296f0f.system.entry.js} +2 -2
- package/dist/calcite/{p-037f81e1.entry.js → p-ca864d50.entry.js} +2 -2
- package/dist/calcite/{p-b2f5c885.system.entry.js → p-d06a66d5.system.entry.js} +2 -2
- package/dist/calcite/{p-d418b98e.system.entry.js → p-d2024d78.system.entry.js} +2 -2
- package/dist/calcite/{p-c9962a82.system.entry.js → p-d40e2e5e.system.entry.js} +2 -2
- package/dist/calcite/{p-7779dcec.entry.js → p-d48eb3f4.entry.js} +2 -2
- package/dist/calcite/{p-3ade5098.js → p-d94193be.js} +1 -1
- package/dist/calcite/{p-e99806ce.entry.js → p-da460566.entry.js} +2 -2
- package/dist/calcite/{p-a186a81b.entry.js → p-da83c7b8.entry.js} +2 -2
- package/dist/calcite/{p-0e8275de.entry.js → p-db9c0de1.entry.js} +2 -2
- package/dist/calcite/{p-0664c198.entry.js → p-de9f177a.entry.js} +2 -2
- package/dist/calcite/{p-a056927a.entry.js → p-e0e764bb.entry.js} +2 -2
- package/dist/calcite/{p-ed2772f3.system.entry.js → p-e18bb14e.system.entry.js} +2 -2
- package/dist/calcite/{p-d6299c4e.system.js → p-e1ded583.system.js} +2 -2
- package/dist/calcite/{p-eef3c9fd.entry.js → p-e6c703fa.entry.js} +2 -2
- package/dist/calcite/{p-60224344.js → p-e8576375.js} +1 -1
- package/dist/calcite/{p-bd5694e0.system.entry.js → p-eb913caa.system.entry.js} +2 -2
- package/dist/calcite/{p-ce9659f4.entry.js → p-ebdf2dcb.entry.js} +2 -2
- package/dist/calcite/{p-28b4be8f.system.entry.js → p-ed735bdc.system.entry.js} +2 -2
- package/dist/calcite/{p-597100a7.entry.js → p-f1316f46.entry.js} +2 -2
- package/dist/calcite/{p-8e6d31eb.system.js → p-f2b4047b.system.js} +1 -1
- package/dist/calcite/{p-3c9fb8a0.system.entry.js → p-f316435a.system.entry.js} +3 -3
- package/dist/calcite/{p-54bc93ca.system.entry.js → p-f4c0780c.system.entry.js} +2 -2
- package/dist/calcite/{p-f18df807.system.entry.js → p-f5333892.system.entry.js} +2 -2
- package/dist/calcite/{p-0f7446cb.entry.js → p-f601b375.entry.js} +2 -2
- package/dist/calcite/{p-7b5c7678.system.js → p-f68f7eac.system.js} +1 -1
- package/dist/calcite/{p-22ffda43.system.js → p-f7c9c5f2.system.js} +2 -2
- package/dist/calcite/{p-d461e15b.system.entry.js → p-f7f7e330.system.entry.js} +2 -2
- package/dist/calcite/{p-9109755c.entry.js → p-f8055fa4.entry.js} +2 -2
- package/dist/calcite/{p-67f1f6b9.system.entry.js → p-f9642904.system.entry.js} +2 -2
- package/dist/calcite/p-fa13fecc.entry.js +6 -0
- package/dist/calcite/{p-dd9f25da.entry.js → p-fa95edee.entry.js} +2 -2
- package/dist/calcite/{p-b905df83.system.entry.js → p-fe1a1f2b.system.entry.js} +2 -2
- package/dist/calcite/p-fe48f6e1.system.js +6 -0
- package/dist/calcite/{p-fa49f87b.system.entry.js → p-fe9b9938.system.entry.js} +2 -2
- package/dist/calcite/{p-2bceb3cc.js → p-ff900ff3.js} +2 -2
- package/dist/cjs/{ExpandToggle-8aaaf12b.js → ExpandToggle-5914d027.js} +5 -5
- package/dist/cjs/{Heading-5f2ed366.js → Heading-5b6728fa.js} +2 -2
- package/dist/cjs/{array-332f1ad8.js → array-10d140a1.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +531 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input.cjs.entry.js +11 -11
- package/dist/cjs/calcite-label.cjs.entry.js +12 -6
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-345c638f.js → conditionalSlot-2fa6c7c0.js} +3 -3
- package/dist/cjs/{debounce-cff73118.js → debounce-a569f7e8.js} +1 -1
- package/dist/cjs/{dom-006119f9.js → dom-ab156ed7.js} +2 -2
- package/dist/cjs/{forIn-63725cb3.js → forIn-5b249337.js} +2 -2
- package/dist/cjs/{form-4aa36914.js → form-9fd7e527.js} +3 -3
- package/dist/cjs/{guid-7ac09c7c.js → guid-e3ed3471.js} +1 -1
- package/dist/cjs/{index-345bd03e.js → index-688507d2.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-4c089305.js → interactive-4c3bdfce.js} +1 -1
- package/dist/cjs/{interfaces-ed5629c9.js → interfaces-8feed84a.js} +1 -1
- package/dist/cjs/{key-ad47ec79.js → key-7c21c694.js} +1 -1
- package/dist/cjs/{label-cbd2fca0.js → label-585aa37d.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-a7606dce.js → locale-33c1aad6.js} +2 -2
- package/dist/cjs/{math-cb0eba16.js → math-f61b24ca.js} +1 -1
- package/dist/cjs/{observers-e7215a23.js → observers-1e86c439.js} +1 -1
- package/dist/cjs/{popper-a6799f73.js → popper-bf284b6f.js} +2 -2
- package/dist/cjs/{resources-ec4ddd5b.js → resources-010f3e62.js} +3 -3
- package/dist/cjs/{resources-e4f2b649.js → resources-1d8b7492.js} +1 -1
- package/dist/cjs/{resources-e78d08e9.js → resources-a1c7bd83.js} +5 -5
- package/dist/cjs/{resources-3dfb6262.js → resources-ac47df12.js} +1 -1
- package/dist/cjs/{sortable.esm-75596196.js → sortable.esm-a16d43ef.js} +1 -1
- package/dist/cjs/{utils-cd5ed41f.js → utils-daa542d3.js} +1 -1
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.css +1 -0
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- 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 +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.css +1 -0
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- 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 +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- 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 +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/interfaces.js +1 -1
- 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 +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- 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 +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/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 +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- 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 +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +509 -0
- package/dist/collection/components/input-number/input-number.js +1251 -0
- package/dist/collection/components/input-number/interfaces.js +6 -0
- package/dist/collection/components/input-number/resources.js +27 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.css +15 -10
- package/dist/collection/components/label/label.js +28 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- 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 +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- 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 +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- 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 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- 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 +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.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/form.js +1 -1
- package/dist/collection/utils/globalAttributes.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/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/popper.js +1 -1
- package/dist/collection/utils/resources.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 +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +3 -3
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- 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 +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +3 -3
- 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 +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- 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 +2 -2
- package/dist/components/calcite-input-date-picker.js +4 -4
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.d.ts +11 -0
- package/dist/components/calcite-input-number.js +592 -0
- package/dist/components/calcite-input-time-picker.js +2 -2
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +2 -2
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +2 -2
- package/dist/components/calcite-rating.js +2 -2
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +3 -3
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- 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 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +2 -2
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +2 -2
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +5 -90
- package/dist/components/index.js +1 -91
- package/dist/components/input.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +112 -80
- package/dist/components/label2.js +87 -112
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/popper.js +2 -2
- package/dist/components/progress.js +1 -1
- 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 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +2 -2
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +793 -273
- package/dist/esm/{ExpandToggle-f015017d.js → ExpandToggle-6bd463d8.js} +5 -5
- package/dist/esm/{Heading-d8e9c4d0.js → Heading-129c5b2e.js} +2 -2
- package/dist/esm/{array-cc249c07.js → array-5d83abf9.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +4 -4
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +5 -5
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +12 -12
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +7 -7
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +11 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +527 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +9 -9
- package/dist/esm/calcite-input.entry.js +11 -11
- package/dist/esm/calcite-label.entry.js +12 -6
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +8 -8
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +5 -5
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +11 -11
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-251f048d.js → conditionalSlot-a00e8dca.js} +3 -3
- package/dist/esm/{debounce-671be4ab.js → debounce-031e6c4d.js} +1 -1
- package/dist/esm/{dom-1d25d90d.js → dom-f9756282.js} +2 -2
- package/dist/esm/{forIn-61b8f555.js → forIn-dbccb332.js} +2 -2
- package/dist/esm/{form-9231bd75.js → form-e4f2868c.js} +3 -3
- package/dist/esm/{guid-681ada01.js → guid-db5de792.js} +1 -1
- package/dist/esm/{index-3d4e33c9.js → index-258b111b.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-206f3e33.js → interactive-2d24af9c.js} +1 -1
- package/dist/esm/{interfaces-1e8297e0.js → interfaces-a34a97a3.js} +1 -1
- package/dist/esm/{key-aaa7a17a.js → key-1ad35d1e.js} +1 -1
- package/dist/esm/{label-78ef6888.js → label-dad4147d.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-ddc99d54.js → locale-4b78a8a2.js} +2 -2
- package/dist/esm/{math-6704b0cd.js → math-f9aa9265.js} +1 -1
- package/dist/esm/{observers-f4b26851.js → observers-d73acf67.js} +1 -1
- package/dist/esm/{popper-0f8ca820.js → popper-862cce4a.js} +2 -2
- package/dist/esm/{resources-c23513d4.js → resources-76735425.js} +5 -5
- package/dist/esm/{resources-9cd6c136.js → resources-a1573fa8.js} +3 -3
- package/dist/esm/{resources-8bc22c30.js → resources-a53d5723.js} +1 -1
- package/dist/esm/{resources-f108bb2c.js → resources-ecb7ae7e.js} +1 -1
- package/dist/esm/{sortable.esm-b5154dfc.js → sortable.esm-e4772b0a.js} +1 -1
- package/dist/esm/{utils-29143248.js → utils-aa0bb6c4.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-f015017d.js → ExpandToggle-6bd463d8.js} +2 -2
- package/dist/esm-es5/Heading-129c5b2e.js +6 -0
- package/dist/esm-es5/{array-cc249c07.js → array-5d83abf9.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +6 -0
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-251f048d.js → conditionalSlot-a00e8dca.js} +2 -2
- package/dist/esm-es5/{debounce-671be4ab.js → debounce-031e6c4d.js} +1 -1
- package/dist/esm-es5/{dom-1d25d90d.js → dom-f9756282.js} +2 -2
- package/dist/esm-es5/{forIn-61b8f555.js → forIn-dbccb332.js} +2 -2
- package/dist/esm-es5/{form-9231bd75.js → form-e4f2868c.js} +2 -2
- package/dist/esm-es5/{guid-681ada01.js → guid-db5de792.js} +1 -1
- package/dist/esm-es5/{index-3d4e33c9.js → index-258b111b.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-206f3e33.js → interactive-2d24af9c.js} +1 -1
- package/dist/esm-es5/{interfaces-1e8297e0.js → interfaces-a34a97a3.js} +1 -1
- package/dist/esm-es5/{key-aaa7a17a.js → key-1ad35d1e.js} +1 -1
- package/dist/esm-es5/{label-78ef6888.js → label-dad4147d.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-ddc99d54.js → locale-4b78a8a2.js} +2 -2
- package/dist/esm-es5/{math-6704b0cd.js → math-f9aa9265.js} +1 -1
- package/dist/esm-es5/{observers-f4b26851.js → observers-d73acf67.js} +1 -1
- package/dist/esm-es5/{popper-0f8ca820.js → popper-862cce4a.js} +2 -2
- package/dist/esm-es5/{resources-c23513d4.js → resources-76735425.js} +2 -2
- package/dist/esm-es5/{resources-9cd6c136.js → resources-a1573fa8.js} +2 -2
- package/dist/esm-es5/{resources-8bc22c30.js → resources-a53d5723.js} +1 -1
- package/dist/esm-es5/{resources-f108bb2c.js → resources-ecb7ae7e.js} +1 -1
- package/dist/esm-es5/{sortable.esm-b5154dfc.js → sortable.esm-e4772b0a.js} +1 -1
- package/dist/esm-es5/{utils-29143248.js → utils-aa0bb6c4.js} +1 -1
- package/dist/extras/docs-json.json +806 -111
- 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/input-number/input-number.d.ts +216 -0
- package/dist/types/components/input-number/interfaces.d.ts +1 -0
- package/dist/types/components/input-number/resources.d.ts +22 -0
- package/dist/types/components/label/label.d.ts +6 -0
- package/dist/types/components.d.ts +307 -0
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +825 -396
- package/package.json +2 -2
- package/readme.md +2 -2
- package/dist/calcite/p-15a2f2b5.entry.js +0 -6
- package/dist/calcite/p-3854aaa3.entry.js +0 -6
- package/dist/calcite/p-56fad8eb.system.entry.js +0 -6
- package/dist/calcite/p-9a775e97.entry.js +0 -6
- package/dist/calcite/p-aa04303b.system.js +0 -6
- package/dist/calcite/p-ab08ad49.system.js +0 -6
- package/dist/calcite/p-b9ba2995.system.js +0 -6
- package/dist/calcite/p-cc236a7d.js +0 -6
- package/dist/calcite/p-ce350a0c.js +0 -6
- package/dist/calcite/p-fb4d2cca.entry.js +0 -6
- package/dist/esm-es5/Heading-d8e9c4d0.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
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
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.524
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
/*!
|
|
11
|
-
Stencil Mock Doc v2.
|
|
11
|
+
Stencil Mock Doc v2.16.1 | MIT Licensed | https://stenciljs.com
|
|
12
12
|
*/
|
|
13
13
|
const CONTENT_REF_ID = 'r';
|
|
14
14
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -1607,9 +1607,6 @@ class MockElement extends MockNode {
|
|
|
1607
1607
|
this.shadowRoot = shadowRoot;
|
|
1608
1608
|
return shadowRoot;
|
|
1609
1609
|
}
|
|
1610
|
-
blur() {
|
|
1611
|
-
/**/
|
|
1612
|
-
}
|
|
1613
1610
|
get shadowRoot() {
|
|
1614
1611
|
return this.__shadowRoot || null;
|
|
1615
1612
|
}
|
|
@@ -1678,7 +1675,6 @@ class MockElement extends MockNode {
|
|
|
1678
1675
|
get firstElementChild() {
|
|
1679
1676
|
return this.children[0] || null;
|
|
1680
1677
|
}
|
|
1681
|
-
focus(_options) { }
|
|
1682
1678
|
getAttribute(attrName) {
|
|
1683
1679
|
if (attrName === 'style') {
|
|
1684
1680
|
if (this.__style != null && this.__style.length > 0) {
|
|
@@ -2582,28 +2578,7 @@ function createElementNS(ownerDocument, namespaceURI, tagName) {
|
|
|
2582
2578
|
return createElement(ownerDocument, tagName);
|
|
2583
2579
|
}
|
|
2584
2580
|
else if (namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
2585
|
-
|
|
2586
|
-
case 'text':
|
|
2587
|
-
case 'tspan':
|
|
2588
|
-
case 'tref':
|
|
2589
|
-
case 'altglyph':
|
|
2590
|
-
case 'textpath':
|
|
2591
|
-
return new MockSVGTextContentElement(ownerDocument, tagName);
|
|
2592
|
-
case 'circle':
|
|
2593
|
-
case 'ellipse':
|
|
2594
|
-
case 'image':
|
|
2595
|
-
case 'line':
|
|
2596
|
-
case 'path':
|
|
2597
|
-
case 'polygon':
|
|
2598
|
-
case 'polyline':
|
|
2599
|
-
case 'rect':
|
|
2600
|
-
case 'use':
|
|
2601
|
-
return new MockSVGGraphicsElement(ownerDocument, tagName);
|
|
2602
|
-
case 'svg':
|
|
2603
|
-
return new MockSVGSVGElement(ownerDocument, tagName);
|
|
2604
|
-
default:
|
|
2605
|
-
return new MockSVGElement(ownerDocument, tagName);
|
|
2606
|
-
}
|
|
2581
|
+
return new MockSVGElement(ownerDocument, tagName);
|
|
2607
2582
|
}
|
|
2608
2583
|
else {
|
|
2609
2584
|
return new MockElement(ownerDocument, tagName);
|
|
@@ -2750,98 +2725,6 @@ class MockScriptElement extends MockHTMLElement {
|
|
|
2750
2725
|
patchPropAttributes(MockScriptElement.prototype, {
|
|
2751
2726
|
type: String,
|
|
2752
2727
|
});
|
|
2753
|
-
class MockDOMMatrix {
|
|
2754
|
-
constructor() {
|
|
2755
|
-
this.a = 1;
|
|
2756
|
-
this.b = 0;
|
|
2757
|
-
this.c = 0;
|
|
2758
|
-
this.d = 1;
|
|
2759
|
-
this.e = 0;
|
|
2760
|
-
this.f = 0;
|
|
2761
|
-
this.m11 = 1;
|
|
2762
|
-
this.m12 = 0;
|
|
2763
|
-
this.m13 = 0;
|
|
2764
|
-
this.m14 = 0;
|
|
2765
|
-
this.m21 = 0;
|
|
2766
|
-
this.m22 = 1;
|
|
2767
|
-
this.m23 = 0;
|
|
2768
|
-
this.m24 = 0;
|
|
2769
|
-
this.m31 = 0;
|
|
2770
|
-
this.m32 = 0;
|
|
2771
|
-
this.m33 = 1;
|
|
2772
|
-
this.m34 = 0;
|
|
2773
|
-
this.m41 = 0;
|
|
2774
|
-
this.m42 = 0;
|
|
2775
|
-
this.m43 = 0;
|
|
2776
|
-
this.m44 = 1;
|
|
2777
|
-
this.is2D = true;
|
|
2778
|
-
this.isIdentity = true;
|
|
2779
|
-
}
|
|
2780
|
-
static fromMatrix() {
|
|
2781
|
-
return new MockDOMMatrix();
|
|
2782
|
-
}
|
|
2783
|
-
inverse() {
|
|
2784
|
-
return new MockDOMMatrix();
|
|
2785
|
-
}
|
|
2786
|
-
flipX() {
|
|
2787
|
-
return new MockDOMMatrix();
|
|
2788
|
-
}
|
|
2789
|
-
flipY() {
|
|
2790
|
-
return new MockDOMMatrix();
|
|
2791
|
-
}
|
|
2792
|
-
multiply() {
|
|
2793
|
-
return new MockDOMMatrix();
|
|
2794
|
-
}
|
|
2795
|
-
rotate() {
|
|
2796
|
-
return new MockDOMMatrix();
|
|
2797
|
-
}
|
|
2798
|
-
rotateAxisAngle() {
|
|
2799
|
-
return new MockDOMMatrix();
|
|
2800
|
-
}
|
|
2801
|
-
rotateFromVector() {
|
|
2802
|
-
return new MockDOMMatrix();
|
|
2803
|
-
}
|
|
2804
|
-
scale() {
|
|
2805
|
-
return new MockDOMMatrix();
|
|
2806
|
-
}
|
|
2807
|
-
scaleNonUniform() {
|
|
2808
|
-
return new MockDOMMatrix();
|
|
2809
|
-
}
|
|
2810
|
-
skewX() {
|
|
2811
|
-
return new MockDOMMatrix();
|
|
2812
|
-
}
|
|
2813
|
-
skewY() {
|
|
2814
|
-
return new MockDOMMatrix();
|
|
2815
|
-
}
|
|
2816
|
-
toJSON() { }
|
|
2817
|
-
toString() { }
|
|
2818
|
-
transformPoint() {
|
|
2819
|
-
return new MockDOMPoint();
|
|
2820
|
-
}
|
|
2821
|
-
translate() {
|
|
2822
|
-
return new MockDOMMatrix();
|
|
2823
|
-
}
|
|
2824
|
-
}
|
|
2825
|
-
class MockDOMPoint {
|
|
2826
|
-
constructor() {
|
|
2827
|
-
this.w = 1;
|
|
2828
|
-
this.x = 0;
|
|
2829
|
-
this.y = 0;
|
|
2830
|
-
this.z = 0;
|
|
2831
|
-
}
|
|
2832
|
-
toJSON() { }
|
|
2833
|
-
matrixTransform() {
|
|
2834
|
-
return new MockDOMMatrix();
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
class MockSVGRect {
|
|
2838
|
-
constructor() {
|
|
2839
|
-
this.height = 10;
|
|
2840
|
-
this.width = 10;
|
|
2841
|
-
this.x = 0;
|
|
2842
|
-
this.y = 0;
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2845
2728
|
class MockStyleElement extends MockHTMLElement {
|
|
2846
2729
|
constructor(ownerDocument) {
|
|
2847
2730
|
super(ownerDocument, 'style');
|
|
@@ -2874,6 +2757,9 @@ class MockSVGElement extends MockElement {
|
|
|
2874
2757
|
get viewportElement() {
|
|
2875
2758
|
return null;
|
|
2876
2759
|
}
|
|
2760
|
+
focus() {
|
|
2761
|
+
/**/
|
|
2762
|
+
}
|
|
2877
2763
|
onunload() {
|
|
2878
2764
|
/**/
|
|
2879
2765
|
}
|
|
@@ -2891,27 +2777,6 @@ class MockSVGElement extends MockElement {
|
|
|
2891
2777
|
return 0;
|
|
2892
2778
|
}
|
|
2893
2779
|
}
|
|
2894
|
-
class MockSVGGraphicsElement extends MockSVGElement {
|
|
2895
|
-
getBBox(_options) {
|
|
2896
|
-
return new MockSVGRect();
|
|
2897
|
-
}
|
|
2898
|
-
getCTM() {
|
|
2899
|
-
return new MockDOMMatrix();
|
|
2900
|
-
}
|
|
2901
|
-
getScreenCTM() {
|
|
2902
|
-
return new MockDOMMatrix();
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
class MockSVGSVGElement extends MockSVGGraphicsElement {
|
|
2906
|
-
createSVGPoint() {
|
|
2907
|
-
return new MockDOMPoint();
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
class MockSVGTextContentElement extends MockSVGGraphicsElement {
|
|
2911
|
-
getComputedTextLength() {
|
|
2912
|
-
return 0;
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
2780
|
class MockBaseElement extends MockHTMLElement {
|
|
2916
2781
|
constructor(ownerDocument) {
|
|
2917
2782
|
super(ownerDocument, 'base');
|
|
@@ -5869,7 +5734,7 @@ const CSS_UTILITY = {
|
|
|
5869
5734
|
lightTheme,
|
|
5870
5735
|
rtl: "calcite--rtl"
|
|
5871
5736
|
};
|
|
5872
|
-
const TEXT$
|
|
5737
|
+
const TEXT$t = {
|
|
5873
5738
|
loading: "Loading"
|
|
5874
5739
|
};
|
|
5875
5740
|
|
|
@@ -6207,7 +6072,7 @@ class AccordionItem {
|
|
|
6207
6072
|
}; }
|
|
6208
6073
|
}
|
|
6209
6074
|
|
|
6210
|
-
const CSS$
|
|
6075
|
+
const CSS$Q = {
|
|
6211
6076
|
button: "button",
|
|
6212
6077
|
buttonTextVisible: "button--text-visible",
|
|
6213
6078
|
buttonCompact: "button--compact",
|
|
@@ -6217,7 +6082,7 @@ const CSS$P = {
|
|
|
6217
6082
|
textContainer: "text-container",
|
|
6218
6083
|
textContainerVisible: "text-container--visible"
|
|
6219
6084
|
};
|
|
6220
|
-
const TEXT$
|
|
6085
|
+
const TEXT$s = {
|
|
6221
6086
|
loading: "Loading"
|
|
6222
6087
|
};
|
|
6223
6088
|
|
|
@@ -6309,7 +6174,7 @@ class Action {
|
|
|
6309
6174
|
*
|
|
6310
6175
|
* @default "Loading"
|
|
6311
6176
|
*/
|
|
6312
|
-
this.intlLoading = TEXT$
|
|
6177
|
+
this.intlLoading = TEXT$s.loading;
|
|
6313
6178
|
/**
|
|
6314
6179
|
* When true, a busy indicator is displayed.
|
|
6315
6180
|
*/
|
|
@@ -6368,8 +6233,8 @@ class Action {
|
|
|
6368
6233
|
renderTextContainer() {
|
|
6369
6234
|
const { text, textEnabled } = this;
|
|
6370
6235
|
const textContainerClasses = {
|
|
6371
|
-
[CSS$
|
|
6372
|
-
[CSS$
|
|
6236
|
+
[CSS$Q.textContainer]: true,
|
|
6237
|
+
[CSS$Q.textContainerVisible]: textEnabled
|
|
6373
6238
|
};
|
|
6374
6239
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6375
6240
|
}
|
|
@@ -6383,18 +6248,18 @@ class Action {
|
|
|
6383
6248
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6384
6249
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6385
6250
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6386
|
-
[CSS$
|
|
6387
|
-
[CSS$
|
|
6251
|
+
[CSS$Q.slotContainer]: true,
|
|
6252
|
+
[CSS$Q.slotContainerHidden]: loading
|
|
6388
6253
|
} }, hAsync("slot", null)));
|
|
6389
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6254
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$Q.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6390
6255
|
}
|
|
6391
6256
|
render() {
|
|
6392
6257
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6393
6258
|
const ariaLabel = label || text;
|
|
6394
6259
|
const buttonClasses = {
|
|
6395
|
-
[CSS$
|
|
6396
|
-
[CSS$
|
|
6397
|
-
[CSS$
|
|
6260
|
+
[CSS$Q.button]: true,
|
|
6261
|
+
[CSS$Q.buttonTextVisible]: textEnabled,
|
|
6262
|
+
[CSS$Q.buttonCompact]: compact
|
|
6398
6263
|
};
|
|
6399
6264
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
6400
6265
|
}
|
|
@@ -6425,11 +6290,11 @@ class Action {
|
|
|
6425
6290
|
}; }
|
|
6426
6291
|
}
|
|
6427
6292
|
|
|
6428
|
-
const CSS$
|
|
6293
|
+
const CSS$P = {
|
|
6429
6294
|
menu: "menu",
|
|
6430
6295
|
defaultTrigger: "default-trigger"
|
|
6431
6296
|
};
|
|
6432
|
-
const SLOTS$
|
|
6297
|
+
const SLOTS$q = {
|
|
6433
6298
|
tooltip: "tooltip",
|
|
6434
6299
|
trigger: "trigger"
|
|
6435
6300
|
};
|
|
@@ -6437,11 +6302,11 @@ const ICONS$f = {
|
|
|
6437
6302
|
menu: "ellipsis"
|
|
6438
6303
|
};
|
|
6439
6304
|
|
|
6440
|
-
const SLOTS$
|
|
6305
|
+
const SLOTS$p = {
|
|
6441
6306
|
menuActions: "menu-actions",
|
|
6442
6307
|
menuTooltip: "menu-tooltip"
|
|
6443
6308
|
};
|
|
6444
|
-
const TEXT$
|
|
6309
|
+
const TEXT$r = {
|
|
6445
6310
|
more: "More"
|
|
6446
6311
|
};
|
|
6447
6312
|
const ICONS$e = {
|
|
@@ -6457,7 +6322,7 @@ const getOverflowCount = ({ actionCount, actionHeight, height, groupCount }) =>
|
|
|
6457
6322
|
return Math.max(actionCount - getMaxActionCount({ height, actionHeight, groupCount }), 0);
|
|
6458
6323
|
};
|
|
6459
6324
|
const queryActions = (el) => {
|
|
6460
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
6325
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$q.trigger : true);
|
|
6461
6326
|
};
|
|
6462
6327
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
6463
6328
|
let needToSlotCount = overflowCount;
|
|
@@ -6465,7 +6330,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6465
6330
|
let slottedWithinGroupCount = 0;
|
|
6466
6331
|
const groupActions = queryActions(group).reverse();
|
|
6467
6332
|
groupActions.forEach((groupAction) => {
|
|
6468
|
-
if (groupAction.slot === SLOTS$
|
|
6333
|
+
if (groupAction.slot === SLOTS$p.menuActions) {
|
|
6469
6334
|
groupAction.removeAttribute("slot");
|
|
6470
6335
|
groupAction.textEnabled = expanded;
|
|
6471
6336
|
}
|
|
@@ -6475,7 +6340,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6475
6340
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
6476
6341
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
6477
6342
|
groupAction.textEnabled = true;
|
|
6478
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
6343
|
+
groupAction.setAttribute("slot", SLOTS$p.menuActions);
|
|
6479
6344
|
slottedWithinGroupCount++;
|
|
6480
6345
|
if (slottedWithinGroupCount > 1) {
|
|
6481
6346
|
needToSlotCount--;
|
|
@@ -6498,7 +6363,7 @@ function getCalcitePosition(position, el) {
|
|
|
6498
6363
|
}
|
|
6499
6364
|
function toggleChildActionText({ parent, expanded }) {
|
|
6500
6365
|
queryActions(parent)
|
|
6501
|
-
.filter((el) => el.slot !== SLOTS$
|
|
6366
|
+
.filter((el) => el.slot !== SLOTS$p.menuActions)
|
|
6502
6367
|
.forEach((action) => (action.textEnabled = expanded));
|
|
6503
6368
|
parent
|
|
6504
6369
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -6527,14 +6392,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
6527
6392
|
return actionNode;
|
|
6528
6393
|
};
|
|
6529
6394
|
|
|
6530
|
-
const CSS$
|
|
6395
|
+
const CSS$O = {
|
|
6531
6396
|
actionGroupBottom: "action-group--bottom"
|
|
6532
6397
|
};
|
|
6533
|
-
const SLOTS$
|
|
6398
|
+
const SLOTS$o = {
|
|
6534
6399
|
bottomActions: "bottom-actions",
|
|
6535
6400
|
expandTooltip: "expand-tooltip"
|
|
6536
6401
|
};
|
|
6537
|
-
const TEXT$
|
|
6402
|
+
const TEXT$q = {
|
|
6538
6403
|
expand: "Expand",
|
|
6539
6404
|
collapse: "Collapse"
|
|
6540
6405
|
};
|
|
@@ -7838,7 +7703,7 @@ function processMutations$1(mutations) {
|
|
|
7838
7703
|
});
|
|
7839
7704
|
}
|
|
7840
7705
|
|
|
7841
|
-
const actionBarCss = "@-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*/.sc-calcite-action-bar: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*/.calcite-animate.sc-calcite-action-bar{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*/.calcite-animate__in.sc-calcite-action-bar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-bar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-bar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-bar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-bar-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-bar-h *.sc-calcite-action-bar{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-bar:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-bar-h{display:none}/*!@:host*/.sc-calcite-action-bar-h{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}/*!@:host([overflow-actions-disabled])*/[overflow-actions-disabled].sc-calcite-action-bar-h{overflow-y:auto}/*!@:host([expanded])*/[expanded].sc-calcite-action-bar-h{max-width:20vw}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-bar-s>calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@::slotted(calcite-action-group:last-child)*/.sc-calcite-action-bar-s>calcite-action-group:last-child{border-bottom-width:0px}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-bar{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
7706
|
+
const actionBarCss = "@-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*/.sc-calcite-action-bar: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*/.calcite-animate.sc-calcite-action-bar{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*/.calcite-animate__in.sc-calcite-action-bar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-bar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-bar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-bar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-bar-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-bar-h *.sc-calcite-action-bar{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-bar:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-bar-h{display:none}/*!@:host*/.sc-calcite-action-bar-h{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw;background:transparent}/*!@:host([overflow-actions-disabled])*/[overflow-actions-disabled].sc-calcite-action-bar-h{overflow-y:auto}/*!@:host([expanded])*/[expanded].sc-calcite-action-bar-h{max-width:20vw}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-bar-s>calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@::slotted(calcite-action-group:last-child)*/.sc-calcite-action-bar-s>calcite-action-group:last-child{border-bottom-width:0px}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-bar{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
7842
7707
|
|
|
7843
7708
|
/**
|
|
7844
7709
|
* @slot - A slot for adding `calcite-action`s that will appear at the top of the action bar.
|
|
@@ -7899,7 +7764,7 @@ class ActionBar {
|
|
|
7899
7764
|
const actions = queryActions(el);
|
|
7900
7765
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
7901
7766
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
7902
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
7767
|
+
const groupCount = getSlotted(el, SLOTS$o.bottomActions) || !expandDisabled
|
|
7903
7768
|
? actionGroups.length + 1
|
|
7904
7769
|
: actionGroups.length;
|
|
7905
7770
|
const overflowCount = getOverflowCount({
|
|
@@ -7996,11 +7861,11 @@ class ActionBar {
|
|
|
7996
7861
|
// --------------------------------------------------------------------------
|
|
7997
7862
|
renderBottomActionGroup() {
|
|
7998
7863
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7999
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
8000
|
-
const expandLabel = intlExpand || TEXT$
|
|
8001
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7864
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
7865
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
7866
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
8002
7867
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8003
|
-
return getSlotted(el, SLOTS$
|
|
7868
|
+
return getSlotted(el, SLOTS$o.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$O.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$o.bottomActions }), hAsync("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
8004
7869
|
}
|
|
8005
7870
|
render() {
|
|
8006
7871
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8089,13 +7954,13 @@ class ActionGroup {
|
|
|
8089
7954
|
// --------------------------------------------------------------------------
|
|
8090
7955
|
renderTooltip() {
|
|
8091
7956
|
const { el } = this;
|
|
8092
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
8093
|
-
return hasTooltip ? hAsync("slot", { name: SLOTS$
|
|
7957
|
+
const hasTooltip = getSlotted(el, SLOTS$p.menuTooltip);
|
|
7958
|
+
return hasTooltip ? hAsync("slot", { name: SLOTS$p.menuTooltip, slot: SLOTS$q.tooltip }) : null;
|
|
8094
7959
|
}
|
|
8095
7960
|
renderMenu() {
|
|
8096
7961
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
8097
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
8098
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7962
|
+
const hasMenuItems = getSlotted(el, SLOTS$p.menuActions);
|
|
7963
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$r.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$q.trigger, text: intlMore || TEXT$r.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$p.menuActions }), this.renderTooltip())) : null;
|
|
8099
7964
|
}
|
|
8100
7965
|
render() {
|
|
8101
7966
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8173,7 +8038,7 @@ class ActionMenu {
|
|
|
8173
8038
|
// --------------------------------------------------------------------------
|
|
8174
8039
|
this.connectMenuButtonEl = () => {
|
|
8175
8040
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
8176
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
8041
|
+
const menuButtonEl = getSlotted(el, SLOTS$q.trigger) || this.defaultMenuButtonEl;
|
|
8177
8042
|
if (this.menuButtonEl === menuButtonEl) {
|
|
8178
8043
|
return;
|
|
8179
8044
|
}
|
|
@@ -8387,17 +8252,17 @@ class ActionMenu {
|
|
|
8387
8252
|
}
|
|
8388
8253
|
renderMenuButton() {
|
|
8389
8254
|
const { label, scale, expanded } = this;
|
|
8390
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
8255
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$q.trigger }, hAsync("calcite-action", { class: CSS$P.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
8391
8256
|
return menuButtonSlot;
|
|
8392
8257
|
}
|
|
8393
8258
|
renderMenuItems() {
|
|
8394
8259
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
8395
8260
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8396
8261
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8397
|
-
return (hAsync("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8262
|
+
return (hAsync("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$P.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, hAsync("slot", null))));
|
|
8398
8263
|
}
|
|
8399
8264
|
render() {
|
|
8400
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
8265
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$q.tooltip, onSlotchange: this.updateTooltip })));
|
|
8401
8266
|
}
|
|
8402
8267
|
isValidKey(key, supportedKeys) {
|
|
8403
8268
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -8429,19 +8294,19 @@ class ActionMenu {
|
|
|
8429
8294
|
}; }
|
|
8430
8295
|
}
|
|
8431
8296
|
|
|
8432
|
-
const CSS$
|
|
8297
|
+
const CSS$N = {
|
|
8433
8298
|
actionGroupBottom: "action-group--bottom",
|
|
8434
8299
|
container: "container"
|
|
8435
8300
|
};
|
|
8436
|
-
const TEXT$
|
|
8301
|
+
const TEXT$p = {
|
|
8437
8302
|
expand: "Expand",
|
|
8438
8303
|
collapse: "Collapse"
|
|
8439
8304
|
};
|
|
8440
|
-
const SLOTS$
|
|
8305
|
+
const SLOTS$n = {
|
|
8441
8306
|
expandTooltip: "expand-tooltip"
|
|
8442
8307
|
};
|
|
8443
8308
|
|
|
8444
|
-
const actionPadCss = "@-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*/.sc-calcite-action-pad: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*/.calcite-animate.sc-calcite-action-pad{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*/.calcite-animate__in.sc-calcite-action-pad{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-pad{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-pad{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-pad{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-pad-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-pad-h *.sc-calcite-action-pad{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-pad:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-pad-h{display:none}/*!@:host*/.sc-calcite-action-pad-h{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@:host*/.sc-calcite-action-pad-h{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem}/*!@:host([expanded])*/[expanded].sc-calcite-action-pad-h{max-width:20vw}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-pad-s>calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-bottom:0px;padding-top:0px}/*!@.container*/.container.sc-calcite-action-pad{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-width:15vw}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-pad{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-action-pad-h .container.sc-calcite-action-pad{-ms-flex-direction:row;flex-direction:row;max-width:unset}/*!@:host([layout=horizontal]) .container .action-group--bottom*/[layout=horizontal].sc-calcite-action-pad-h .container.sc-calcite-action-pad .action-group--bottom.sc-calcite-action-pad{padding:0px}/*!@:host([layout=horizontal]) .container ::slotted(calcite-action-group)*/.sc-calcite-action-pad-h[layout=horizontal] .container .sc-calcite-action-pad-s>calcite-action-group{border-width:0px;padding:0px;border-inline-end-width:1px}/*!@::slotted(calcite-action-group:last-child)*/.sc-calcite-action-pad-s>calcite-action-group:last-child{border-bottom-width:0px}";
|
|
8309
|
+
const actionPadCss = "@-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*/.sc-calcite-action-pad: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*/.calcite-animate.sc-calcite-action-pad{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*/.calcite-animate__in.sc-calcite-action-pad{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-pad{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-pad{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-pad{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-pad-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-pad-h *.sc-calcite-action-pad{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-pad:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-pad-h{display:none}/*!@:host*/.sc-calcite-action-pad-h{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@:host*/.sc-calcite-action-pad-h{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem}/*!@:host([expanded])*/[expanded].sc-calcite-action-pad-h{max-width:20vw;background:transparent}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-pad-s>calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-bottom:0px;padding-top:0px}/*!@.container*/.container.sc-calcite-action-pad{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-width:15vw}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-pad{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-action-pad-h .container.sc-calcite-action-pad{-ms-flex-direction:row;flex-direction:row;max-width:unset}/*!@:host([layout=horizontal]) .container .action-group--bottom*/[layout=horizontal].sc-calcite-action-pad-h .container.sc-calcite-action-pad .action-group--bottom.sc-calcite-action-pad{padding:0px}/*!@:host([layout=horizontal]) .container ::slotted(calcite-action-group)*/.sc-calcite-action-pad-h[layout=horizontal] .container .sc-calcite-action-pad-s>calcite-action-group{border-width:0px;padding:0px;border-inline-end-width:1px}/*!@::slotted(calcite-action-group:last-child)*/.sc-calcite-action-pad-s>calcite-action-group:last-child{border-bottom-width:0px}";
|
|
8445
8310
|
|
|
8446
8311
|
/**
|
|
8447
8312
|
* @slot - A slot for adding `calcite-action`s to the component.
|
|
@@ -8534,14 +8399,14 @@ class ActionPad {
|
|
|
8534
8399
|
// --------------------------------------------------------------------------
|
|
8535
8400
|
renderBottomActionGroup() {
|
|
8536
8401
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8537
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
8538
|
-
const expandLabel = intlExpand || TEXT$
|
|
8539
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8402
|
+
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
8403
|
+
const expandLabel = intlExpand || TEXT$p.expand;
|
|
8404
|
+
const collapseLabel = intlCollapse || TEXT$p.collapse;
|
|
8540
8405
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8541
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8406
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
8542
8407
|
}
|
|
8543
8408
|
render() {
|
|
8544
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8409
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$N.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8545
8410
|
}
|
|
8546
8411
|
get el() { return getElement(this); }
|
|
8547
8412
|
static get watchers() { return {
|
|
@@ -8567,7 +8432,7 @@ class ActionPad {
|
|
|
8567
8432
|
}; }
|
|
8568
8433
|
}
|
|
8569
8434
|
|
|
8570
|
-
const TEXT$
|
|
8435
|
+
const TEXT$o = {
|
|
8571
8436
|
intlClose: "Close"
|
|
8572
8437
|
};
|
|
8573
8438
|
const DURATIONS = {
|
|
@@ -8575,7 +8440,7 @@ const DURATIONS = {
|
|
|
8575
8440
|
medium: 10000,
|
|
8576
8441
|
fast: 6000
|
|
8577
8442
|
};
|
|
8578
|
-
const SLOTS$
|
|
8443
|
+
const SLOTS$m = {
|
|
8579
8444
|
title: "title",
|
|
8580
8445
|
message: "message",
|
|
8581
8446
|
link: "link"
|
|
@@ -8627,7 +8492,7 @@ class Alert {
|
|
|
8627
8492
|
*
|
|
8628
8493
|
* @default "Close"
|
|
8629
8494
|
*/
|
|
8630
|
-
this.intlClose = TEXT$
|
|
8495
|
+
this.intlClose = TEXT$o.intlClose;
|
|
8631
8496
|
/** Specifies the placement of the component */
|
|
8632
8497
|
this.placement = "bottom";
|
|
8633
8498
|
/** Specifies the size of the component. */
|
|
@@ -8722,7 +8587,7 @@ class Alert {
|
|
|
8722
8587
|
container: true,
|
|
8723
8588
|
queued,
|
|
8724
8589
|
[placement]: true
|
|
8725
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$
|
|
8590
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$m.title }), hAsync("slot", { name: SLOTS$m.message }), hAsync("slot", { name: SLOTS$m.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8726
8591
|
}
|
|
8727
8592
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8728
8593
|
alertSync(event) {
|
|
@@ -9090,7 +8955,7 @@ class Avatar {
|
|
|
9090
8955
|
}; }
|
|
9091
8956
|
}
|
|
9092
8957
|
|
|
9093
|
-
const CSS$
|
|
8958
|
+
const CSS$M = {
|
|
9094
8959
|
article: "article",
|
|
9095
8960
|
content: "content",
|
|
9096
8961
|
headerContainer: "header-container",
|
|
@@ -9109,13 +8974,13 @@ const CSS$L = {
|
|
|
9109
8974
|
invalid: "invalid",
|
|
9110
8975
|
loading: "loading"
|
|
9111
8976
|
};
|
|
9112
|
-
const TEXT$
|
|
8977
|
+
const TEXT$n = {
|
|
9113
8978
|
collapse: "Collapse",
|
|
9114
8979
|
expand: "Expand",
|
|
9115
8980
|
loading: "Loading",
|
|
9116
8981
|
options: "Options"
|
|
9117
8982
|
};
|
|
9118
|
-
const SLOTS$
|
|
8983
|
+
const SLOTS$l = {
|
|
9119
8984
|
icon: "icon",
|
|
9120
8985
|
control: "control",
|
|
9121
8986
|
headerMenuActions: "header-menu-actions"
|
|
@@ -9172,25 +9037,25 @@ class Block {
|
|
|
9172
9037
|
*
|
|
9173
9038
|
* @default "Collapse"
|
|
9174
9039
|
*/
|
|
9175
|
-
this.intlCollapse = TEXT$
|
|
9040
|
+
this.intlCollapse = TEXT$n.collapse;
|
|
9176
9041
|
/**
|
|
9177
9042
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
9178
9043
|
*
|
|
9179
9044
|
* @default "Expand"
|
|
9180
9045
|
*/
|
|
9181
|
-
this.intlExpand = TEXT$
|
|
9046
|
+
this.intlExpand = TEXT$n.expand;
|
|
9182
9047
|
/**
|
|
9183
9048
|
* string to override English loading text
|
|
9184
9049
|
*
|
|
9185
9050
|
* @default "Loading"
|
|
9186
9051
|
*/
|
|
9187
|
-
this.intlLoading = TEXT$
|
|
9052
|
+
this.intlLoading = TEXT$n.loading;
|
|
9188
9053
|
/**
|
|
9189
9054
|
* Text string used for the actions menu
|
|
9190
9055
|
*
|
|
9191
9056
|
* @default "Options"
|
|
9192
9057
|
*/
|
|
9193
|
-
this.intlOptions = TEXT$
|
|
9058
|
+
this.intlOptions = TEXT$n.options;
|
|
9194
9059
|
/**
|
|
9195
9060
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
9196
9061
|
*/
|
|
@@ -9245,32 +9110,32 @@ class Block {
|
|
|
9245
9110
|
const { el, status } = this;
|
|
9246
9111
|
const showingLoadingStatus = this.loading && !this.open;
|
|
9247
9112
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
9248
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
9249
|
-
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$
|
|
9250
|
-
[CSS$
|
|
9251
|
-
[CSS$
|
|
9252
|
-
[CSS$
|
|
9253
|
-
[CSS$
|
|
9113
|
+
const hasIcon = getSlotted(el, SLOTS$l.icon) || statusIcon;
|
|
9114
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$l.icon })) : (hAsync("calcite-icon", { class: {
|
|
9115
|
+
[CSS$M.statusIcon]: true,
|
|
9116
|
+
[CSS$M.valid]: status == "valid",
|
|
9117
|
+
[CSS$M.invalid]: status == "invalid",
|
|
9118
|
+
[CSS$M.loading]: showingLoadingStatus
|
|
9254
9119
|
}, icon: statusIcon, scale: "m" }));
|
|
9255
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
9120
|
+
return hasIcon ? hAsync("div", { class: CSS$M.icon }, iconEl) : null;
|
|
9256
9121
|
}
|
|
9257
9122
|
renderTitle() {
|
|
9258
9123
|
const { heading, headingLevel, summary, description } = this;
|
|
9259
|
-
return heading || summary || description ? (hAsync("div", { class: CSS$
|
|
9124
|
+
return heading || summary || description ? (hAsync("div", { class: CSS$M.title }, hAsync(Heading, { class: CSS$M.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (hAsync("div", { class: CSS$M.description }, summary || description)) : null)) : null;
|
|
9260
9125
|
}
|
|
9261
9126
|
render() {
|
|
9262
9127
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
9263
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9264
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
9265
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
9266
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
9128
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
9129
|
+
const headerContent = (hAsync("header", { class: CSS$M.header }, this.renderIcon(), this.renderTitle()));
|
|
9130
|
+
const hasControl = !!getSlotted(el, SLOTS$l.control);
|
|
9131
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$l.headerMenuActions);
|
|
9267
9132
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
9268
9133
|
const { guid } = this;
|
|
9269
9134
|
const regionId = `${guid}-region`;
|
|
9270
9135
|
const buttonId = `${guid}-button`;
|
|
9271
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
9136
|
+
const headerNode = (hAsync("div", { class: CSS$M.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$M.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$M.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$M.controlContainer }, hAsync("slot", { name: SLOTS$l.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$n.options }, hAsync("slot", { name: SLOTS$l.headerMenuActions }))) : null));
|
|
9272
9137
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
9273
|
-
[CSS$
|
|
9138
|
+
[CSS$M.article]: true
|
|
9274
9139
|
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
9275
9140
|
content: true,
|
|
9276
9141
|
"content--spaced": !this.disablePadding
|
|
@@ -9304,7 +9169,7 @@ class Block {
|
|
|
9304
9169
|
}; }
|
|
9305
9170
|
}
|
|
9306
9171
|
|
|
9307
|
-
const CSS$
|
|
9172
|
+
const CSS$L = {
|
|
9308
9173
|
content: "content",
|
|
9309
9174
|
invalid: "invalid",
|
|
9310
9175
|
toggle: "toggle",
|
|
@@ -9316,7 +9181,7 @@ const CSS$K = {
|
|
|
9316
9181
|
statusIcon: "status-icon",
|
|
9317
9182
|
valid: "valid"
|
|
9318
9183
|
};
|
|
9319
|
-
const TEXT$
|
|
9184
|
+
const TEXT$m = {
|
|
9320
9185
|
collapse: "Collapse",
|
|
9321
9186
|
expand: "Expand"
|
|
9322
9187
|
};
|
|
@@ -9375,9 +9240,9 @@ class BlockSection {
|
|
|
9375
9240
|
const { status } = this;
|
|
9376
9241
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
9377
9242
|
const statusIconClasses = {
|
|
9378
|
-
[CSS$
|
|
9379
|
-
[CSS$
|
|
9380
|
-
[CSS$
|
|
9243
|
+
[CSS$L.statusIcon]: true,
|
|
9244
|
+
[CSS$L.valid]: status == "valid",
|
|
9245
|
+
[CSS$L.invalid]: status == "invalid"
|
|
9381
9246
|
};
|
|
9382
9247
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
9383
9248
|
}
|
|
@@ -9389,18 +9254,18 @@ class BlockSection {
|
|
|
9389
9254
|
: dir === "rtl"
|
|
9390
9255
|
? ICONS$b.menuClosedLeft
|
|
9391
9256
|
: ICONS$b.menuClosedRight;
|
|
9392
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9257
|
+
const toggleLabel = open ? intlCollapse || TEXT$m.collapse : intlExpand || TEXT$m.expand;
|
|
9393
9258
|
const { guid } = this;
|
|
9394
9259
|
const regionId = `${guid}-region`;
|
|
9395
9260
|
const buttonId = `${guid}-button`;
|
|
9396
9261
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9397
|
-
[CSS$
|
|
9398
|
-
[CSS$
|
|
9399
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
9400
|
-
[CSS$
|
|
9401
|
-
[CSS$
|
|
9402
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
9403
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
9262
|
+
[CSS$L.toggle]: true,
|
|
9263
|
+
[CSS$L.toggleSwitch]: true
|
|
9264
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$L.toggleSwitchContent }, hAsync("span", { class: CSS$L.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9265
|
+
[CSS$L.sectionHeader]: true,
|
|
9266
|
+
[CSS$L.toggle]: true
|
|
9267
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$L.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
9268
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$L.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
9404
9269
|
}
|
|
9405
9270
|
get el() { return getElement(this); }
|
|
9406
9271
|
static get style() { return blockSectionCss; }
|
|
@@ -9449,7 +9314,7 @@ class BlockSection {
|
|
|
9449
9314
|
}
|
|
9450
9315
|
})(HTMLFormElement.prototype);
|
|
9451
9316
|
|
|
9452
|
-
const CSS$
|
|
9317
|
+
const CSS$K = {
|
|
9453
9318
|
buttonLoader: "calcite-button--loader",
|
|
9454
9319
|
content: "content",
|
|
9455
9320
|
contentSlotted: "content--slotted",
|
|
@@ -9461,7 +9326,7 @@ const CSS$J = {
|
|
|
9461
9326
|
iconStartEmpty: "icon-start-empty",
|
|
9462
9327
|
iconEndEmpty: "icon-end-empty"
|
|
9463
9328
|
};
|
|
9464
|
-
const TEXT$
|
|
9329
|
+
const TEXT$l = {
|
|
9465
9330
|
loading: "Loading"
|
|
9466
9331
|
};
|
|
9467
9332
|
|
|
@@ -9809,7 +9674,7 @@ class Button {
|
|
|
9809
9674
|
*
|
|
9810
9675
|
* @default "Loading"
|
|
9811
9676
|
*/
|
|
9812
|
-
this.intlLoading = TEXT$
|
|
9677
|
+
this.intlLoading = TEXT$l.loading;
|
|
9813
9678
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9814
9679
|
this.loading = false;
|
|
9815
9680
|
/** optionally add a round style to the button */
|
|
@@ -9878,14 +9743,14 @@ class Button {
|
|
|
9878
9743
|
render() {
|
|
9879
9744
|
const childElType = this.href ? "a" : "button";
|
|
9880
9745
|
const Tag = childElType;
|
|
9881
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9882
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9883
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9884
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9746
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$K.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$K.loadingIn : CSS$K.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9747
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$K.icon]: true, [CSS$K.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9748
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$K.icon]: true, [CSS$K.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9749
|
+
const contentEl = (hAsync("span", { class: CSS$K.content }, hAsync("slot", null)));
|
|
9885
9750
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9886
|
-
[CSS$
|
|
9887
|
-
[CSS$
|
|
9888
|
-
[CSS$
|
|
9751
|
+
[CSS$K.contentSlotted]: this.hasContent,
|
|
9752
|
+
[CSS$K.iconStartEmpty]: !this.iconStart,
|
|
9753
|
+
[CSS$K.iconEndEmpty]: !this.iconEnd
|
|
9889
9754
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
9890
9755
|
}
|
|
9891
9756
|
//--------------------------------------------------------------------------
|
|
@@ -9958,7 +9823,7 @@ class Button {
|
|
|
9958
9823
|
}; }
|
|
9959
9824
|
}
|
|
9960
9825
|
|
|
9961
|
-
const CSS$
|
|
9826
|
+
const CSS$J = {
|
|
9962
9827
|
container: "container",
|
|
9963
9828
|
header: "header",
|
|
9964
9829
|
footer: "footer",
|
|
@@ -9967,14 +9832,14 @@ const CSS$I = {
|
|
|
9967
9832
|
checkboxWrapper: "checkbox-wrapper",
|
|
9968
9833
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
9969
9834
|
};
|
|
9970
|
-
const SLOTS$
|
|
9835
|
+
const SLOTS$k = {
|
|
9971
9836
|
thumbnail: "thumbnail",
|
|
9972
9837
|
title: "title",
|
|
9973
9838
|
subtitle: "subtitle",
|
|
9974
9839
|
footerLeading: "footer-leading",
|
|
9975
9840
|
footerTrailing: "footer-trailing"
|
|
9976
9841
|
};
|
|
9977
|
-
const TEXT$
|
|
9842
|
+
const TEXT$k = {
|
|
9978
9843
|
select: "Select",
|
|
9979
9844
|
deselect: "Deselect",
|
|
9980
9845
|
loading: "Loading"
|
|
@@ -10014,19 +9879,19 @@ class Card {
|
|
|
10014
9879
|
*
|
|
10015
9880
|
* @default "Loading"
|
|
10016
9881
|
*/
|
|
10017
|
-
this.intlLoading = TEXT$
|
|
9882
|
+
this.intlLoading = TEXT$k.loading;
|
|
10018
9883
|
/**
|
|
10019
9884
|
* string to override English select text for checkbox when selectable is true
|
|
10020
9885
|
*
|
|
10021
9886
|
* @default "Select"
|
|
10022
9887
|
*/
|
|
10023
|
-
this.intlSelect = TEXT$
|
|
9888
|
+
this.intlSelect = TEXT$k.select;
|
|
10024
9889
|
/**
|
|
10025
9890
|
* string to override English deselect text for checkbox when selectable is true
|
|
10026
9891
|
*
|
|
10027
9892
|
* @default "Deselect"
|
|
10028
9893
|
*/
|
|
10029
|
-
this.intlDeselect = TEXT$
|
|
9894
|
+
this.intlDeselect = TEXT$k.deselect;
|
|
10030
9895
|
this.thumbnailPosition = "block-start";
|
|
10031
9896
|
//--------------------------------------------------------------------------
|
|
10032
9897
|
//
|
|
@@ -10065,32 +9930,32 @@ class Card {
|
|
|
10065
9930
|
render() {
|
|
10066
9931
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
10067
9932
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
10068
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
9933
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$J.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
10069
9934
|
}
|
|
10070
9935
|
selectCard() {
|
|
10071
9936
|
this.selected = !this.selected;
|
|
10072
9937
|
this.calciteCardSelect.emit();
|
|
10073
9938
|
}
|
|
10074
9939
|
renderThumbnail() {
|
|
10075
|
-
return getSlotted(this.el, SLOTS$
|
|
9940
|
+
return getSlotted(this.el, SLOTS$k.thumbnail) ? (hAsync("section", { class: CSS$J.thumbnailWrapper }, hAsync("slot", { name: SLOTS$k.thumbnail }))) : null;
|
|
10076
9941
|
}
|
|
10077
9942
|
renderCheckbox() {
|
|
10078
9943
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
10079
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9944
|
+
return (hAsync("calcite-label", { class: CSS$J.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
10080
9945
|
}
|
|
10081
9946
|
renderHeader() {
|
|
10082
9947
|
const { el } = this;
|
|
10083
|
-
const title = getSlotted(el, SLOTS$
|
|
10084
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
9948
|
+
const title = getSlotted(el, SLOTS$k.title);
|
|
9949
|
+
const subtitle = getSlotted(el, SLOTS$k.subtitle);
|
|
10085
9950
|
const hasHeader = title || subtitle;
|
|
10086
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
9951
|
+
return hasHeader ? (hAsync("header", { class: CSS$J.header }, hAsync("slot", { name: SLOTS$k.title }), hAsync("slot", { name: SLOTS$k.subtitle }))) : null;
|
|
10087
9952
|
}
|
|
10088
9953
|
renderFooter() {
|
|
10089
9954
|
const { el } = this;
|
|
10090
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
10091
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
9955
|
+
const leadingFooter = getSlotted(el, SLOTS$k.footerLeading);
|
|
9956
|
+
const trailingFooter = getSlotted(el, SLOTS$k.footerTrailing);
|
|
10092
9957
|
const hasFooter = leadingFooter || trailingFooter;
|
|
10093
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
9958
|
+
return hasFooter ? (hAsync("footer", { class: CSS$J.footer }, hAsync("slot", { name: SLOTS$k.footerLeading }), hAsync("slot", { name: SLOTS$k.footerTrailing }))) : null;
|
|
10094
9959
|
}
|
|
10095
9960
|
get el() { return getElement(this); }
|
|
10096
9961
|
static get style() { return cardCss; }
|
|
@@ -10253,17 +10118,17 @@ class Checkbox {
|
|
|
10253
10118
|
}; }
|
|
10254
10119
|
}
|
|
10255
10120
|
|
|
10256
|
-
const CSS$
|
|
10121
|
+
const CSS$I = {
|
|
10257
10122
|
title: "title",
|
|
10258
10123
|
close: "close",
|
|
10259
10124
|
imageContainer: "image-container",
|
|
10260
10125
|
chipIcon: "chip-icon",
|
|
10261
10126
|
closeIcon: "close-icon"
|
|
10262
10127
|
};
|
|
10263
|
-
const TEXT$
|
|
10128
|
+
const TEXT$j = {
|
|
10264
10129
|
close: "Close"
|
|
10265
10130
|
};
|
|
10266
|
-
const SLOTS$
|
|
10131
|
+
const SLOTS$j = {
|
|
10267
10132
|
image: "image"
|
|
10268
10133
|
};
|
|
10269
10134
|
const ICONS$a = {
|
|
@@ -10296,7 +10161,7 @@ class Chip {
|
|
|
10296
10161
|
*
|
|
10297
10162
|
* @default "Close"
|
|
10298
10163
|
*/
|
|
10299
|
-
this.dismissLabel = TEXT$
|
|
10164
|
+
this.dismissLabel = TEXT$j.close;
|
|
10300
10165
|
/** flip the icon in rtl */
|
|
10301
10166
|
this.iconFlipRtl = false;
|
|
10302
10167
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -10343,13 +10208,13 @@ class Chip {
|
|
|
10343
10208
|
//--------------------------------------------------------------------------
|
|
10344
10209
|
renderChipImage() {
|
|
10345
10210
|
const { el } = this;
|
|
10346
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
10347
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
10211
|
+
const hasChipImage = getSlotted(el, SLOTS$j.image);
|
|
10212
|
+
return hasChipImage ? (hAsync("div", { class: CSS$I.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$j.image }))) : null;
|
|
10348
10213
|
}
|
|
10349
10214
|
render() {
|
|
10350
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
10351
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
10352
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
10215
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$I.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
10216
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$I.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$I.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
10217
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$I.title, id: this.guid }, hAsync("slot", null)), this.dismissible ? closeButton : null));
|
|
10353
10218
|
}
|
|
10354
10219
|
get el() { return getElement(this); }
|
|
10355
10220
|
static get style() { return chipCss; }
|
|
@@ -12484,7 +12349,7 @@ function zeroArray(array, length) {
|
|
|
12484
12349
|
|
|
12485
12350
|
var color = Color;
|
|
12486
12351
|
|
|
12487
|
-
const CSS$
|
|
12352
|
+
const CSS$H = {
|
|
12488
12353
|
container: "container",
|
|
12489
12354
|
controlSection: "control-section",
|
|
12490
12355
|
hexOptions: "color-hex-options",
|
|
@@ -12522,7 +12387,7 @@ const HSV_LIMITS = {
|
|
|
12522
12387
|
s: 100,
|
|
12523
12388
|
v: 100
|
|
12524
12389
|
};
|
|
12525
|
-
const TEXT$
|
|
12390
|
+
const TEXT$i = {
|
|
12526
12391
|
b: "B",
|
|
12527
12392
|
blue: "Blue",
|
|
12528
12393
|
deleteColor: "Delete color",
|
|
@@ -12650,115 +12515,115 @@ class ColorPicker {
|
|
|
12650
12515
|
*
|
|
12651
12516
|
* @default "B"
|
|
12652
12517
|
*/
|
|
12653
|
-
this.intlB = TEXT$
|
|
12518
|
+
this.intlB = TEXT$i.b;
|
|
12654
12519
|
/**
|
|
12655
12520
|
* Label used for the blue channel description
|
|
12656
12521
|
*
|
|
12657
12522
|
* @default "Blue"
|
|
12658
12523
|
*/
|
|
12659
|
-
this.intlBlue = TEXT$
|
|
12524
|
+
this.intlBlue = TEXT$i.blue;
|
|
12660
12525
|
/**
|
|
12661
12526
|
* Label used for the delete color button.
|
|
12662
12527
|
*
|
|
12663
12528
|
* @default "Delete color"
|
|
12664
12529
|
*/
|
|
12665
|
-
this.intlDeleteColor = TEXT$
|
|
12530
|
+
this.intlDeleteColor = TEXT$i.deleteColor;
|
|
12666
12531
|
/**
|
|
12667
12532
|
* Label used for the green channel
|
|
12668
12533
|
*
|
|
12669
12534
|
* @default "G"
|
|
12670
12535
|
*/
|
|
12671
|
-
this.intlG = TEXT$
|
|
12536
|
+
this.intlG = TEXT$i.g;
|
|
12672
12537
|
/**
|
|
12673
12538
|
* Label used for the green channel description
|
|
12674
12539
|
*
|
|
12675
12540
|
* @default "Green"
|
|
12676
12541
|
*/
|
|
12677
|
-
this.intlGreen = TEXT$
|
|
12542
|
+
this.intlGreen = TEXT$i.green;
|
|
12678
12543
|
/**
|
|
12679
12544
|
* Label used for the hue channel
|
|
12680
12545
|
*
|
|
12681
12546
|
* @default "H"
|
|
12682
12547
|
*/
|
|
12683
|
-
this.intlH = TEXT$
|
|
12548
|
+
this.intlH = TEXT$i.h;
|
|
12684
12549
|
/**
|
|
12685
12550
|
* Label used for the HSV mode
|
|
12686
12551
|
*
|
|
12687
12552
|
* @default "HSV"
|
|
12688
12553
|
*/
|
|
12689
|
-
this.intlHsv = TEXT$
|
|
12554
|
+
this.intlHsv = TEXT$i.hsv;
|
|
12690
12555
|
/**
|
|
12691
12556
|
* Label used for the hex input
|
|
12692
12557
|
*
|
|
12693
12558
|
* @default "Hex"
|
|
12694
12559
|
*/
|
|
12695
|
-
this.intlHex = TEXT$
|
|
12560
|
+
this.intlHex = TEXT$i.hex;
|
|
12696
12561
|
/**
|
|
12697
12562
|
* Label used for the hue channel description
|
|
12698
12563
|
*
|
|
12699
12564
|
* @default "Hue"
|
|
12700
12565
|
*/
|
|
12701
|
-
this.intlHue = TEXT$
|
|
12566
|
+
this.intlHue = TEXT$i.hue;
|
|
12702
12567
|
/**
|
|
12703
12568
|
* Label used for the hex input when there is no color selected.
|
|
12704
12569
|
*
|
|
12705
12570
|
* @default "No color"
|
|
12706
12571
|
*/
|
|
12707
|
-
this.intlNoColor = TEXT$
|
|
12572
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
12708
12573
|
/**
|
|
12709
12574
|
* Label used for the red channel
|
|
12710
12575
|
*
|
|
12711
12576
|
* @default "R"
|
|
12712
12577
|
*/
|
|
12713
|
-
this.intlR = TEXT$
|
|
12578
|
+
this.intlR = TEXT$i.r;
|
|
12714
12579
|
/**
|
|
12715
12580
|
* Label used for the red channel description
|
|
12716
12581
|
*
|
|
12717
12582
|
* @default "Red"
|
|
12718
12583
|
*/
|
|
12719
|
-
this.intlRed = TEXT$
|
|
12584
|
+
this.intlRed = TEXT$i.red;
|
|
12720
12585
|
/**
|
|
12721
12586
|
* Label used for the RGB mode
|
|
12722
12587
|
*
|
|
12723
12588
|
* @default "RGB"
|
|
12724
12589
|
*/
|
|
12725
|
-
this.intlRgb = TEXT$
|
|
12590
|
+
this.intlRgb = TEXT$i.rgb;
|
|
12726
12591
|
/**
|
|
12727
12592
|
* Label used for the saturation channel
|
|
12728
12593
|
*
|
|
12729
12594
|
* @default "S"
|
|
12730
12595
|
*/
|
|
12731
|
-
this.intlS = TEXT$
|
|
12596
|
+
this.intlS = TEXT$i.s;
|
|
12732
12597
|
/**
|
|
12733
12598
|
* Label used for the saturation channel description
|
|
12734
12599
|
*
|
|
12735
12600
|
* @default "Saturation"
|
|
12736
12601
|
*/
|
|
12737
|
-
this.intlSaturation = TEXT$
|
|
12602
|
+
this.intlSaturation = TEXT$i.saturation;
|
|
12738
12603
|
/**
|
|
12739
12604
|
* Label used for the save color button.
|
|
12740
12605
|
*
|
|
12741
12606
|
* @default "Save color"
|
|
12742
12607
|
*/
|
|
12743
|
-
this.intlSaveColor = TEXT$
|
|
12608
|
+
this.intlSaveColor = TEXT$i.saveColor;
|
|
12744
12609
|
/**
|
|
12745
12610
|
* Label used for the saved colors section
|
|
12746
12611
|
*
|
|
12747
12612
|
* @default "Saved"
|
|
12748
12613
|
*/
|
|
12749
|
-
this.intlSaved = TEXT$
|
|
12614
|
+
this.intlSaved = TEXT$i.saved;
|
|
12750
12615
|
/**
|
|
12751
12616
|
* Label used for the value channel
|
|
12752
12617
|
*
|
|
12753
12618
|
* @default "V"
|
|
12754
12619
|
*/
|
|
12755
|
-
this.intlV = TEXT$
|
|
12620
|
+
this.intlV = TEXT$i.v;
|
|
12756
12621
|
/**
|
|
12757
12622
|
* Label used for the
|
|
12758
12623
|
*
|
|
12759
12624
|
* @default "Value"
|
|
12760
12625
|
*/
|
|
12761
|
-
this.intlValue = TEXT$
|
|
12626
|
+
this.intlValue = TEXT$i.value;
|
|
12762
12627
|
/**
|
|
12763
12628
|
* The scale of the color picker.
|
|
12764
12629
|
*/
|
|
@@ -13025,7 +12890,7 @@ class ColorPicker {
|
|
|
13025
12890
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
13026
12891
|
const active = channelMode === activeChannelMode;
|
|
13027
12892
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
13028
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12893
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$H.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
13029
12894
|
};
|
|
13030
12895
|
this.renderChannelsTab = (channelMode) => {
|
|
13031
12896
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -13036,11 +12901,11 @@ class ColorPicker {
|
|
|
13036
12901
|
? [intlRed, intlGreen, intlBlue]
|
|
13037
12902
|
: [intlHue, intlSaturation, intlValue];
|
|
13038
12903
|
const direction = getElementDir(this.el);
|
|
13039
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12904
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$H.control, key: channelMode }, hAsync("div", { class: CSS$H.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
13040
12905
|
/* the channel container is ltr, so we apply the host's direction */
|
|
13041
12906
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
13042
12907
|
};
|
|
13043
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$
|
|
12908
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$H.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
13044
12909
|
this.deleteColor = () => {
|
|
13045
12910
|
const colorToDelete = this.color.hex();
|
|
13046
12911
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -13143,7 +13008,7 @@ class ColorPicker {
|
|
|
13143
13008
|
this.shiftKeyChannelAdjustment = 0;
|
|
13144
13009
|
const key = event.key;
|
|
13145
13010
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
13146
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
13011
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$H.channel); })) {
|
|
13147
13012
|
return;
|
|
13148
13013
|
}
|
|
13149
13014
|
const { shiftKey } = event;
|
|
@@ -13214,20 +13079,20 @@ class ColorPicker {
|
|
|
13214
13079
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
13215
13080
|
const noColor = color === null;
|
|
13216
13081
|
const vertical = scopeOrientation === "vertical";
|
|
13217
|
-
return (hAsync("div", { class: CSS$
|
|
13218
|
-
[CSS$
|
|
13219
|
-
[CSS$
|
|
13220
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
13221
|
-
[CSS$
|
|
13222
|
-
[CSS$
|
|
13223
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
13224
|
-
[CSS$
|
|
13225
|
-
[CSS$
|
|
13226
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
13227
|
-
[CSS$
|
|
13228
|
-
[CSS$
|
|
13229
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
13230
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
13082
|
+
return (hAsync("div", { class: CSS$H.container }, hAsync("div", { class: CSS$H.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
13083
|
+
[CSS$H.colorFieldAndSlider]: true,
|
|
13084
|
+
[CSS$H.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
13085
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$H.scope]: true, [CSS$H.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$H.scope]: true, [CSS$H.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
|
|
13086
|
+
[CSS$H.controlSection]: true,
|
|
13087
|
+
[CSS$H.section]: true
|
|
13088
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$H.hexOptions }, hAsync("span", { class: {
|
|
13089
|
+
[CSS$H.header]: true,
|
|
13090
|
+
[CSS$H.headerHex]: true
|
|
13091
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$H.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
13092
|
+
[CSS$H.colorModeContainer]: true,
|
|
13093
|
+
[CSS$H.splitSection]: true
|
|
13094
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$H.savedColorsSection]: true, [CSS$H.section]: true } }, hAsync("div", { class: CSS$H.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$H.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$H.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$H.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$H.savedColors }, [
|
|
13095
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$H.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
13231
13096
|
])) : null))));
|
|
13232
13097
|
}
|
|
13233
13098
|
// --------------------------------------------------------------------------
|
|
@@ -13473,7 +13338,7 @@ class ColorPicker {
|
|
|
13473
13338
|
}; }
|
|
13474
13339
|
}
|
|
13475
13340
|
|
|
13476
|
-
const CSS$
|
|
13341
|
+
const CSS$G = {
|
|
13477
13342
|
container: "container",
|
|
13478
13343
|
preview: "preview",
|
|
13479
13344
|
input: "input"
|
|
@@ -13502,13 +13367,13 @@ class ColorPickerHexInput {
|
|
|
13502
13367
|
*
|
|
13503
13368
|
* @default "Hex"
|
|
13504
13369
|
*/
|
|
13505
|
-
this.intlHex = TEXT$
|
|
13370
|
+
this.intlHex = TEXT$i.hex;
|
|
13506
13371
|
/**
|
|
13507
13372
|
* Label used for the hex input when there is no color selected.
|
|
13508
13373
|
*
|
|
13509
13374
|
* @default "No color"
|
|
13510
13375
|
*/
|
|
13511
|
-
this.intlNoColor = TEXT$
|
|
13376
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
13512
13377
|
/**
|
|
13513
13378
|
* The component's scale.
|
|
13514
13379
|
*/
|
|
@@ -13602,7 +13467,7 @@ class ColorPickerHexInput {
|
|
|
13602
13467
|
render() {
|
|
13603
13468
|
const { intlHex, value } = this;
|
|
13604
13469
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13605
|
-
return (hAsync("div", { class: CSS$
|
|
13470
|
+
return (hAsync("div", { class: CSS$G.container }, hAsync("calcite-input", { class: CSS$G.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$G.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13606
13471
|
}
|
|
13607
13472
|
//--------------------------------------------------------------------------
|
|
13608
13473
|
//
|
|
@@ -13678,7 +13543,7 @@ class ColorPickerHexInput {
|
|
|
13678
13543
|
}; }
|
|
13679
13544
|
}
|
|
13680
13545
|
|
|
13681
|
-
const CSS$
|
|
13546
|
+
const CSS$F = {
|
|
13682
13547
|
swatch: "swatch",
|
|
13683
13548
|
noColorIcon: "no-color-icon"
|
|
13684
13549
|
};
|
|
@@ -13723,7 +13588,7 @@ class ColorPickerSwatch {
|
|
|
13723
13588
|
const hex = internalColor.hex();
|
|
13724
13589
|
const theme = getThemeName(el);
|
|
13725
13590
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13726
|
-
return (hAsync("svg", { class: CSS$
|
|
13591
|
+
return (hAsync("svg", { class: CSS$F.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
13727
13592
|
}
|
|
13728
13593
|
get el() { return getElement(this); }
|
|
13729
13594
|
static get watchers() { return {
|
|
@@ -15588,7 +15453,7 @@ const popperMenuComputedPlacements = [
|
|
|
15588
15453
|
"bottom",
|
|
15589
15454
|
"bottom-end"
|
|
15590
15455
|
];
|
|
15591
|
-
const CSS$
|
|
15456
|
+
const CSS$E = {
|
|
15592
15457
|
animation: "calcite-popper-anim",
|
|
15593
15458
|
animationActive: "calcite-popper-anim--active"
|
|
15594
15459
|
};
|
|
@@ -15641,7 +15506,7 @@ const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePo
|
|
|
15641
15506
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
15642
15507
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
15643
15508
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
15644
|
-
const TEXT$
|
|
15509
|
+
const TEXT$h = {
|
|
15645
15510
|
removeTag: "Remove tag"
|
|
15646
15511
|
};
|
|
15647
15512
|
|
|
@@ -15731,7 +15596,7 @@ class Combobox {
|
|
|
15731
15596
|
*
|
|
15732
15597
|
* @default "Remove tag"
|
|
15733
15598
|
*/
|
|
15734
|
-
this.intlRemoveTag = TEXT$
|
|
15599
|
+
this.intlRemoveTag = TEXT$h.removeTag;
|
|
15735
15600
|
this.internalValueChangeFlag = false;
|
|
15736
15601
|
this.items = [];
|
|
15737
15602
|
this.groupItems = [];
|
|
@@ -16463,8 +16328,8 @@ class Combobox {
|
|
|
16463
16328
|
const { active, setMenuEl, setListContainerEl, open } = this;
|
|
16464
16329
|
const classes = {
|
|
16465
16330
|
"list-container": true,
|
|
16466
|
-
[CSS$
|
|
16467
|
-
[CSS$
|
|
16331
|
+
[CSS$E.animation]: true,
|
|
16332
|
+
[CSS$E.animationActive]: open || active
|
|
16468
16333
|
};
|
|
16469
16334
|
return (hAsync("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": open || active }, ref: setMenuEl }, hAsync("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, hAsync("ul", { class: { list: true, "list--hide": !(open || active) } }, hAsync("slot", null)))));
|
|
16470
16335
|
}
|
|
@@ -16539,7 +16404,7 @@ class Combobox {
|
|
|
16539
16404
|
}; }
|
|
16540
16405
|
}
|
|
16541
16406
|
|
|
16542
|
-
const CSS$
|
|
16407
|
+
const CSS$D = {
|
|
16543
16408
|
icon: "icon",
|
|
16544
16409
|
iconActive: "icon--active",
|
|
16545
16410
|
custom: "icon--custom",
|
|
@@ -16631,18 +16496,18 @@ class ComboboxItem {
|
|
|
16631
16496
|
// --------------------------------------------------------------------------
|
|
16632
16497
|
renderIcon(isSingle) {
|
|
16633
16498
|
const { icon, disabled, selected } = this;
|
|
16634
|
-
const level = `${CSS$
|
|
16499
|
+
const level = `${CSS$D.icon}--indent`;
|
|
16635
16500
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
16636
16501
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
16637
16502
|
const showDot = isSingle && !icon && !disabled;
|
|
16638
16503
|
return showDot ? (hAsync("span", { class: {
|
|
16639
|
-
[CSS$
|
|
16640
|
-
[CSS$
|
|
16504
|
+
[CSS$D.icon]: true,
|
|
16505
|
+
[CSS$D.dot]: true,
|
|
16641
16506
|
[level]: true
|
|
16642
16507
|
} })) : (hAsync("calcite-icon", { class: {
|
|
16643
|
-
[CSS$
|
|
16644
|
-
[CSS$
|
|
16645
|
-
[CSS$
|
|
16508
|
+
[CSS$D.icon]: !icon,
|
|
16509
|
+
[CSS$D.custom]: !!icon,
|
|
16510
|
+
[CSS$D.iconActive]: icon && selected,
|
|
16646
16511
|
[level]: true
|
|
16647
16512
|
}, icon: icon || iconPath, scale: "s" }));
|
|
16648
16513
|
}
|
|
@@ -16655,13 +16520,13 @@ class ComboboxItem {
|
|
|
16655
16520
|
render() {
|
|
16656
16521
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
16657
16522
|
const classes = {
|
|
16658
|
-
[CSS$
|
|
16659
|
-
[CSS$
|
|
16660
|
-
[CSS$
|
|
16661
|
-
[CSS$
|
|
16523
|
+
[CSS$D.label]: true,
|
|
16524
|
+
[CSS$D.selected]: this.selected,
|
|
16525
|
+
[CSS$D.active]: this.active,
|
|
16526
|
+
[CSS$D.single]: isSingleSelect
|
|
16662
16527
|
};
|
|
16663
16528
|
const depth = getDepth();
|
|
16664
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
16529
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$D.title }, this.textLabel)), this.renderChildren())));
|
|
16665
16530
|
}
|
|
16666
16531
|
get el() { return getElement(this); }
|
|
16667
16532
|
static get watchers() { return {
|
|
@@ -16690,7 +16555,7 @@ class ComboboxItem {
|
|
|
16690
16555
|
}; }
|
|
16691
16556
|
}
|
|
16692
16557
|
|
|
16693
|
-
const CSS$
|
|
16558
|
+
const CSS$C = {
|
|
16694
16559
|
list: "list",
|
|
16695
16560
|
label: "label",
|
|
16696
16561
|
title: "title"
|
|
@@ -16723,8 +16588,8 @@ class ComboboxItemGroup {
|
|
|
16723
16588
|
// --------------------------------------------------------------------------
|
|
16724
16589
|
render() {
|
|
16725
16590
|
const { el, scale } = this;
|
|
16726
|
-
const indent = `${CSS$
|
|
16727
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
16591
|
+
const indent = `${CSS$C.label}--indent-${getDepth()}`;
|
|
16592
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$C.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$C.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$C.title }, this.label)), hAsync("slot", null)));
|
|
16728
16593
|
}
|
|
16729
16594
|
get el() { return getElement(this); }
|
|
16730
16595
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -17131,7 +16996,7 @@ function getDaysDiff(date1, date2) {
|
|
|
17131
16996
|
}
|
|
17132
16997
|
|
|
17133
16998
|
const HEADING_LEVEL$6 = 2;
|
|
17134
|
-
const TEXT$
|
|
16999
|
+
const TEXT$g = {
|
|
17135
17000
|
nextMonth: "Next month",
|
|
17136
17001
|
prevMonth: "Previous month",
|
|
17137
17002
|
year: "Year"
|
|
@@ -17149,19 +17014,19 @@ class DatePicker {
|
|
|
17149
17014
|
*
|
|
17150
17015
|
* @default "Previous month"
|
|
17151
17016
|
*/
|
|
17152
|
-
this.intlPrevMonth = TEXT$
|
|
17017
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
17153
17018
|
/**
|
|
17154
17019
|
* Localized string for "next month" (used for aria label)
|
|
17155
17020
|
*
|
|
17156
17021
|
* @default "Next month"
|
|
17157
17022
|
*/
|
|
17158
|
-
this.intlNextMonth = TEXT$
|
|
17023
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
17159
17024
|
/**
|
|
17160
17025
|
* Localized string for "year" (used for aria label)
|
|
17161
17026
|
*
|
|
17162
17027
|
* @default "Year"
|
|
17163
17028
|
*/
|
|
17164
|
-
this.intlYear = TEXT$
|
|
17029
|
+
this.intlYear = TEXT$g.year;
|
|
17165
17030
|
/** BCP 47 language tag for desired language and country format */
|
|
17166
17031
|
this.locale = document.documentElement.lang || "en";
|
|
17167
17032
|
/** specify the scale of the date picker */
|
|
@@ -18178,7 +18043,7 @@ class DatePickerMonthHeader {
|
|
|
18178
18043
|
}; }
|
|
18179
18044
|
}
|
|
18180
18045
|
|
|
18181
|
-
const SLOTS$
|
|
18046
|
+
const SLOTS$i = {
|
|
18182
18047
|
dropdownTrigger: "dropdown-trigger"
|
|
18183
18048
|
};
|
|
18184
18049
|
|
|
@@ -18415,10 +18280,10 @@ class Dropdown {
|
|
|
18415
18280
|
}
|
|
18416
18281
|
render() {
|
|
18417
18282
|
const { active, open } = this;
|
|
18418
|
-
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$
|
|
18283
|
+
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$i.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!(active || open)), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
18419
18284
|
["calcite-dropdown-content"]: true,
|
|
18420
|
-
[CSS$
|
|
18421
|
-
[CSS$
|
|
18285
|
+
[CSS$E.animation]: true,
|
|
18286
|
+
[CSS$E.animationActive]: active || open
|
|
18422
18287
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("div", { hidden: !(open || active) }, hAsync("slot", { onSlotchange: this.updateGroups }))))));
|
|
18423
18288
|
}
|
|
18424
18289
|
//--------------------------------------------------------------------------
|
|
@@ -18657,7 +18522,7 @@ class Dropdown {
|
|
|
18657
18522
|
}; }
|
|
18658
18523
|
}
|
|
18659
18524
|
|
|
18660
|
-
const CSS$
|
|
18525
|
+
const CSS$B = {
|
|
18661
18526
|
containerSmall: "container--s",
|
|
18662
18527
|
containerMedium: "container--m",
|
|
18663
18528
|
containerLarge: "container--l"
|
|
@@ -18692,9 +18557,9 @@ class DropdownGroup {
|
|
|
18692
18557
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
18693
18558
|
return (hAsync(Host, { role: "menu" }, hAsync("div", { class: {
|
|
18694
18559
|
container: true,
|
|
18695
|
-
[CSS$
|
|
18696
|
-
[CSS$
|
|
18697
|
-
[CSS$
|
|
18560
|
+
[CSS$B.containerSmall]: scale === "s",
|
|
18561
|
+
[CSS$B.containerMedium]: scale === "m",
|
|
18562
|
+
[CSS$B.containerLarge]: scale === "l"
|
|
18698
18563
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
18699
18564
|
}
|
|
18700
18565
|
//--------------------------------------------------------------------------
|
|
@@ -18734,7 +18599,7 @@ class DropdownGroup {
|
|
|
18734
18599
|
}; }
|
|
18735
18600
|
}
|
|
18736
18601
|
|
|
18737
|
-
const CSS$
|
|
18602
|
+
const CSS$A = {
|
|
18738
18603
|
containerLink: "container--link",
|
|
18739
18604
|
containerSmall: "container--s",
|
|
18740
18605
|
containerMedium: "container--m",
|
|
@@ -18807,13 +18672,13 @@ class DropdownItem {
|
|
|
18807
18672
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
18808
18673
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
18809
18674
|
container: true,
|
|
18810
|
-
[CSS$
|
|
18811
|
-
[CSS$
|
|
18812
|
-
[CSS$
|
|
18813
|
-
[CSS$
|
|
18814
|
-
[CSS$
|
|
18815
|
-
[CSS$
|
|
18816
|
-
[CSS$
|
|
18675
|
+
[CSS$A.containerLink]: !!this.href,
|
|
18676
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
18677
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
18678
|
+
[CSS$A.containerLarge]: scale === "l",
|
|
18679
|
+
[CSS$A.containerMulti]: this.selectionMode === "multi",
|
|
18680
|
+
[CSS$A.containerSingle]: this.selectionMode === "single",
|
|
18681
|
+
[CSS$A.containerNone]: this.selectionMode === "none"
|
|
18817
18682
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
18818
18683
|
}
|
|
18819
18684
|
//--------------------------------------------------------------------------
|
|
@@ -18919,7 +18784,7 @@ class DropdownItem {
|
|
|
18919
18784
|
}; }
|
|
18920
18785
|
}
|
|
18921
18786
|
|
|
18922
|
-
const CSS$
|
|
18787
|
+
const CSS$z = {
|
|
18923
18788
|
button: "button"
|
|
18924
18789
|
};
|
|
18925
18790
|
const ICONS$9 = {
|
|
@@ -18992,7 +18857,7 @@ class Fab {
|
|
|
18992
18857
|
render() {
|
|
18993
18858
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
18994
18859
|
const title = !textEnabled ? label || text || null : null;
|
|
18995
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
18860
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$z.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
18996
18861
|
this.buttonEl = buttonEl;
|
|
18997
18862
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
18998
18863
|
}
|
|
@@ -19019,11 +18884,11 @@ class Fab {
|
|
|
19019
18884
|
}; }
|
|
19020
18885
|
}
|
|
19021
18886
|
|
|
19022
|
-
const CSS$
|
|
18887
|
+
const CSS$y = {
|
|
19023
18888
|
container: "container",
|
|
19024
18889
|
searchIcon: "search-icon"
|
|
19025
18890
|
};
|
|
19026
|
-
const TEXT$
|
|
18891
|
+
const TEXT$f = {
|
|
19027
18892
|
filterLabel: "Filter",
|
|
19028
18893
|
clear: "Clear filter"
|
|
19029
18894
|
};
|
|
@@ -19164,7 +19029,7 @@ class Filter {
|
|
|
19164
19029
|
// --------------------------------------------------------------------------
|
|
19165
19030
|
render() {
|
|
19166
19031
|
const { disabled, scale } = this;
|
|
19167
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
19032
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$y.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$f.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$f.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
19168
19033
|
this.textInput = el;
|
|
19169
19034
|
}, scale: scale, type: "text", value: this.value })))));
|
|
19170
19035
|
}
|
|
@@ -19194,7 +19059,7 @@ class Filter {
|
|
|
19194
19059
|
}; }
|
|
19195
19060
|
}
|
|
19196
19061
|
|
|
19197
|
-
const CSS$
|
|
19062
|
+
const CSS$x = {
|
|
19198
19063
|
frame: "frame",
|
|
19199
19064
|
frameAdvancing: "frame--advancing",
|
|
19200
19065
|
frameRetreating: "frame--retreating"
|
|
@@ -19296,9 +19161,9 @@ class Flow {
|
|
|
19296
19161
|
render() {
|
|
19297
19162
|
const { flowDirection } = this;
|
|
19298
19163
|
const frameDirectionClasses = {
|
|
19299
|
-
[CSS$
|
|
19300
|
-
[CSS$
|
|
19301
|
-
[CSS$
|
|
19164
|
+
[CSS$x.frame]: true,
|
|
19165
|
+
[CSS$x.frameAdvancing]: flowDirection === "advancing",
|
|
19166
|
+
[CSS$x.frameRetreating]: flowDirection === "retreating"
|
|
19302
19167
|
};
|
|
19303
19168
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
19304
19169
|
}
|
|
@@ -19550,7 +19415,7 @@ class Graph {
|
|
|
19550
19415
|
}; }
|
|
19551
19416
|
}
|
|
19552
19417
|
|
|
19553
|
-
const CSS$
|
|
19418
|
+
const CSS$w = {
|
|
19554
19419
|
handle: "handle",
|
|
19555
19420
|
handleActivated: "handle--activated"
|
|
19556
19421
|
};
|
|
@@ -19619,7 +19484,7 @@ class Handle {
|
|
|
19619
19484
|
render() {
|
|
19620
19485
|
return (
|
|
19621
19486
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
19622
|
-
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
19487
|
+
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$w.handle]: true, [CSS$w.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
19623
19488
|
this.handleButton = el;
|
|
19624
19489
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
19625
19490
|
}
|
|
@@ -19639,7 +19504,7 @@ class Handle {
|
|
|
19639
19504
|
}; }
|
|
19640
19505
|
}
|
|
19641
19506
|
|
|
19642
|
-
const CSS$
|
|
19507
|
+
const CSS$v = {
|
|
19643
19508
|
icon: "icon",
|
|
19644
19509
|
flipRtl: "flip-rtl"
|
|
19645
19510
|
};
|
|
@@ -19700,7 +19565,7 @@ class Icon {
|
|
|
19700
19565
|
const semantic = !!textLabel;
|
|
19701
19566
|
const paths = [].concat(pathData || "");
|
|
19702
19567
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
19703
|
-
[CSS$
|
|
19568
|
+
[CSS$v.flipRtl]: dir === "rtl" && flipRtl,
|
|
19704
19569
|
svg: true
|
|
19705
19570
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
19706
19571
|
}
|
|
@@ -19746,7 +19611,7 @@ class Icon {
|
|
|
19746
19611
|
}; }
|
|
19747
19612
|
}
|
|
19748
19613
|
|
|
19749
|
-
const CSS$
|
|
19614
|
+
const CSS$u = {
|
|
19750
19615
|
wrapper: "wrapper",
|
|
19751
19616
|
confirmChangesButton: "confirm-changes-button",
|
|
19752
19617
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -19755,7 +19620,7 @@ const CSS$t = {
|
|
|
19755
19620
|
enableEditingButton: "enable-editing-button",
|
|
19756
19621
|
controlsWrapper: "controls-wrapper"
|
|
19757
19622
|
};
|
|
19758
|
-
const TEXT$
|
|
19623
|
+
const TEXT$e = {
|
|
19759
19624
|
intlEnablingEditing: "Click to edit",
|
|
19760
19625
|
intlCancelEditing: "Cancel",
|
|
19761
19626
|
intlConfirmChanges: "Save"
|
|
@@ -19790,19 +19655,19 @@ class InlineEditable {
|
|
|
19790
19655
|
*
|
|
19791
19656
|
* @default "Click to edit"
|
|
19792
19657
|
*/
|
|
19793
|
-
this.intlEnableEditing = TEXT$
|
|
19658
|
+
this.intlEnableEditing = TEXT$e.intlEnablingEditing;
|
|
19794
19659
|
/**
|
|
19795
19660
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
19796
19661
|
*
|
|
19797
19662
|
* @default "Cancel"
|
|
19798
19663
|
*/
|
|
19799
|
-
this.intlCancelEditing = TEXT$
|
|
19664
|
+
this.intlCancelEditing = TEXT$e.intlCancelEditing;
|
|
19800
19665
|
/**
|
|
19801
19666
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
19802
19667
|
*
|
|
19803
19668
|
* @default "Save"
|
|
19804
19669
|
*/
|
|
19805
|
-
this.intlConfirmChanges = TEXT$
|
|
19670
|
+
this.intlConfirmChanges = TEXT$e.intlConfirmChanges;
|
|
19806
19671
|
this.mutationObserver = createObserver();
|
|
19807
19672
|
this.enableEditing = () => {
|
|
19808
19673
|
var _a, _b;
|
|
@@ -19907,12 +19772,12 @@ class InlineEditable {
|
|
|
19907
19772
|
updateHostInteraction(this);
|
|
19908
19773
|
}
|
|
19909
19774
|
render() {
|
|
19910
|
-
return (hAsync("div", { class: CSS$
|
|
19775
|
+
return (hAsync("div", { class: CSS$u.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$u.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$u.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$u.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
19911
19776
|
opacity: this.editingEnabled ? "0" : "1",
|
|
19912
19777
|
width: this.editingEnabled ? "0" : "inherit"
|
|
19913
19778
|
}, type: "button" }), this.shouldShowControls && [
|
|
19914
|
-
hAsync("div", { class: CSS$
|
|
19915
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
19779
|
+
hAsync("div", { class: CSS$u.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$u.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
19780
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$u.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, ref: (el) => (this.confirmEditingButton = el), scale: this.scale, type: "button" })
|
|
19916
19781
|
])));
|
|
19917
19782
|
}
|
|
19918
19783
|
//--------------------------------------------------------------------------
|
|
@@ -19994,7 +19859,7 @@ class InlineEditable {
|
|
|
19994
19859
|
}; }
|
|
19995
19860
|
}
|
|
19996
19861
|
|
|
19997
|
-
const CSS$
|
|
19862
|
+
const CSS$t = {
|
|
19998
19863
|
loader: "loader",
|
|
19999
19864
|
clearButton: "clear-button",
|
|
20000
19865
|
editingEnabled: "editing-enabled",
|
|
@@ -20018,10 +19883,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
20018
19883
|
time: "clock",
|
|
20019
19884
|
search: "search"
|
|
20020
19885
|
};
|
|
20021
|
-
const SLOTS$
|
|
19886
|
+
const SLOTS$h = {
|
|
20022
19887
|
action: "action"
|
|
20023
19888
|
};
|
|
20024
|
-
const TEXT$
|
|
19889
|
+
const TEXT$d = {
|
|
20025
19890
|
clear: "Clear value"
|
|
20026
19891
|
};
|
|
20027
19892
|
|
|
@@ -20075,7 +19940,7 @@ class Input {
|
|
|
20075
19940
|
*
|
|
20076
19941
|
* @default "Loading"
|
|
20077
19942
|
*/
|
|
20078
|
-
this.intlLoading = TEXT$
|
|
19943
|
+
this.intlLoading = TEXT$t.loading;
|
|
20079
19944
|
/** When true, the icon is flipped in RTL. */
|
|
20080
19945
|
this.iconFlipRtl = false;
|
|
20081
19946
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -20560,34 +20425,34 @@ class Input {
|
|
|
20560
20425
|
// --------------------------------------------------------------------------
|
|
20561
20426
|
render() {
|
|
20562
20427
|
const dir = getElementDir(this.el);
|
|
20563
|
-
const loader = (hAsync("div", { class: CSS$
|
|
20564
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
20565
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
20428
|
+
const loader = (hAsync("div", { class: CSS$t.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
20429
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$t.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
20430
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$t.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
20566
20431
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
20567
20432
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
20568
|
-
[CSS$
|
|
20569
|
-
[CSS$
|
|
20433
|
+
[CSS$t.numberButtonItem]: true,
|
|
20434
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20570
20435
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
20571
20436
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
20572
|
-
[CSS$
|
|
20573
|
-
[CSS$
|
|
20437
|
+
[CSS$t.numberButtonItem]: true,
|
|
20438
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20574
20439
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
20575
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
20576
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
20577
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
20440
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$t.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
20441
|
+
const prefixText = hAsync("div", { class: CSS$t.prefix }, this.prefixText);
|
|
20442
|
+
const suffixText = hAsync("div", { class: CSS$t.suffix }, this.suffixText);
|
|
20578
20443
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
20579
20444
|
const childEl = this.type !== "number"
|
|
20580
20445
|
? [
|
|
20581
20446
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
20582
|
-
[CSS$
|
|
20583
|
-
[CSS$
|
|
20447
|
+
[CSS$t.editingEnabled]: this.editingEnabled,
|
|
20448
|
+
[CSS$t.inlineChild]: !!this.inlineEditableEl
|
|
20584
20449
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
20585
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
20450
|
+
this.isTextarea ? (hAsync("div", { class: CSS$t.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
20586
20451
|
]
|
|
20587
20452
|
: null;
|
|
20588
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
20453
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$t.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20589
20454
|
? numberButtonsHorizontalDown
|
|
20590
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
20455
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$t.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$t.actionWrapper }, hAsync("slot", { name: SLOTS$h.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
20591
20456
|
? numberButtonsVertical
|
|
20592
20457
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20593
20458
|
? numberButtonsHorizontalUp
|
|
@@ -20676,19 +20541,19 @@ class InputDatePicker {
|
|
|
20676
20541
|
*
|
|
20677
20542
|
* @default "Previous month"
|
|
20678
20543
|
*/
|
|
20679
|
-
this.intlPrevMonth = TEXT$
|
|
20544
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
20680
20545
|
/**
|
|
20681
20546
|
* Localized string for "next month" (used for aria label)
|
|
20682
20547
|
*
|
|
20683
20548
|
* @default "Next month"
|
|
20684
20549
|
*/
|
|
20685
|
-
this.intlNextMonth = TEXT$
|
|
20550
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
20686
20551
|
/**
|
|
20687
20552
|
* Localized string for "year" (used for aria label)
|
|
20688
20553
|
*
|
|
20689
20554
|
* @default "Year"
|
|
20690
20555
|
*/
|
|
20691
|
-
this.intlYear = TEXT$
|
|
20556
|
+
this.intlYear = TEXT$g.year;
|
|
20692
20557
|
/** BCP 47 language tag for desired language and country format */
|
|
20693
20558
|
this.locale = document.documentElement.lang || "en";
|
|
20694
20559
|
/** specify the scale of the date picker */
|
|
@@ -20948,8 +20813,8 @@ class InputDatePicker {
|
|
|
20948
20813
|
}, ref: this.setMenuEl }, hAsync("div", { class: {
|
|
20949
20814
|
["calendar-picker-wrapper"]: true,
|
|
20950
20815
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
20951
|
-
[CSS$
|
|
20952
|
-
[CSS$
|
|
20816
|
+
[CSS$E.animation]: true,
|
|
20817
|
+
[CSS$E.animationActive]: this.active
|
|
20953
20818
|
}, onTransitionEnd: this.transitionEnd }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, 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 && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
20954
20819
|
input: true,
|
|
20955
20820
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -21276,6 +21141,562 @@ class InputMessage {
|
|
|
21276
21141
|
}; }
|
|
21277
21142
|
}
|
|
21278
21143
|
|
|
21144
|
+
const CSS$s = {
|
|
21145
|
+
loader: "loader",
|
|
21146
|
+
clearButton: "clear-button",
|
|
21147
|
+
editingEnabled: "editing-enabled",
|
|
21148
|
+
inlineChild: "inline-child",
|
|
21149
|
+
inputIcon: "icon",
|
|
21150
|
+
prefix: "prefix",
|
|
21151
|
+
suffix: "suffix",
|
|
21152
|
+
numberButtonWrapper: "number-button-wrapper",
|
|
21153
|
+
buttonItemHorizontal: "number-button-item--horizontal",
|
|
21154
|
+
wrapper: "element-wrapper",
|
|
21155
|
+
inputWrapper: "wrapper",
|
|
21156
|
+
actionWrapper: "action-wrapper",
|
|
21157
|
+
resizeIconWrapper: "resize-icon-wrapper",
|
|
21158
|
+
numberButtonItem: "number-button-item"
|
|
21159
|
+
};
|
|
21160
|
+
const SLOTS$g = {
|
|
21161
|
+
action: "action"
|
|
21162
|
+
};
|
|
21163
|
+
const TEXT$c = {
|
|
21164
|
+
clear: "Clear value"
|
|
21165
|
+
};
|
|
21166
|
+
|
|
21167
|
+
const inputNumberCss = "@-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*/.sc-calcite-input-number: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*/.calcite-animate.sc-calcite-input-number{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*/.calcite-animate__in.sc-calcite-input-number{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-number{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-number{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-number{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-input-number:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-number-h{display:none}/*!@:host*/.sc-calcite-input-number-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:1.5rem;min-width:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:2rem;min-width:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:2.75rem;min-width:2.75rem}/*!@:host([disabled])*/[disabled].sc-calcite-input-number-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-number-h[disabled] .sc-calcite-input-number-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-number-h [calcite-hydrated][disabled].sc-calcite-input-number{opacity:1}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-number-h input.sc-calcite-input-number::placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-number-h calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-3)}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{outline-color:transparent}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:2rem;padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:3rem;padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-number{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}/*!@.icon*/.icon.sc-calcite-input-number{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button*/.clear-button.sc-calcite-input-number{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-number:active calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-number:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-number{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-number{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-number,.suffix.sc-calcite-input-number{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input-number{-ms-flex-order:2;order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-number{-ms-flex-order:5;order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:end}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input-number{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-number-h .wrapper.sc-calcite-input-number{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}/*!@:host([number-button-type=vertical]) input*/[number-button-type=vertical].sc-calcite-input-number-h input.sc-calcite-input-number{-ms-flex-order:2;order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon, .number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(90deg);transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{-ms-flex-order:5;order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number{border-top-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input-number{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input-number calcite-icon.sc-calcite-input-number{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input-number:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input-number:focus calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input-number:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input-number{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input-number{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input-number .resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(45deg);transform:rotate(45deg)}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-number-h input.sc-calcite-input-number{border-bottom-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-number-h input.sc-calcite-input-number{border-top-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number .editing-enabled.sc-calcite-input-number{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-number-s>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}";
|
|
21168
|
+
|
|
21169
|
+
/**
|
|
21170
|
+
* @slot action - A slot for positioning a button next to the component.
|
|
21171
|
+
*/
|
|
21172
|
+
class InputNumber {
|
|
21173
|
+
constructor(hostRef) {
|
|
21174
|
+
registerInstance(this, hostRef);
|
|
21175
|
+
this.calciteInternalInputNumberFocus = createEvent(this, "calciteInternalInputNumberFocus", 7);
|
|
21176
|
+
this.calciteInternalInputNumberBlur = createEvent(this, "calciteInternalInputNumberBlur", 7);
|
|
21177
|
+
this.calciteInputNumberInput = createEvent(this, "calciteInputNumberInput", 7);
|
|
21178
|
+
this.calciteInputNumberChange = createEvent(this, "calciteInputNumberChange", 7);
|
|
21179
|
+
//--------------------------------------------------------------------------
|
|
21180
|
+
//
|
|
21181
|
+
// Properties
|
|
21182
|
+
//
|
|
21183
|
+
//--------------------------------------------------------------------------
|
|
21184
|
+
/** Specifies the text alignment of the component's value. */
|
|
21185
|
+
this.alignment = "start";
|
|
21186
|
+
/**
|
|
21187
|
+
* When true, the component is focused on page load.
|
|
21188
|
+
*
|
|
21189
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
21190
|
+
*/
|
|
21191
|
+
this.autofocus = false;
|
|
21192
|
+
/**
|
|
21193
|
+
* When true, a clear button is displayed when the component has a value.
|
|
21194
|
+
*/
|
|
21195
|
+
this.clearable = false;
|
|
21196
|
+
/**
|
|
21197
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
21198
|
+
*
|
|
21199
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
21200
|
+
*/
|
|
21201
|
+
this.disabled = false;
|
|
21202
|
+
/**
|
|
21203
|
+
* When true, number values are displayed with the locale's group separator.
|
|
21204
|
+
*/
|
|
21205
|
+
this.groupSeparator = false;
|
|
21206
|
+
/**
|
|
21207
|
+
* When true, the component will not be visible.
|
|
21208
|
+
*
|
|
21209
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
21210
|
+
*/
|
|
21211
|
+
this.hidden = false;
|
|
21212
|
+
/**
|
|
21213
|
+
* Accessible name that will appear while loading.
|
|
21214
|
+
*
|
|
21215
|
+
* @default "Loading"
|
|
21216
|
+
*/
|
|
21217
|
+
this.intlLoading = TEXT$t.loading;
|
|
21218
|
+
/** When true, the icon is flipped in RTL. */
|
|
21219
|
+
this.iconFlipRtl = false;
|
|
21220
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
21221
|
+
this.loading = false;
|
|
21222
|
+
/** Specifies the BCP 47 language tag for the desired language and country format. */
|
|
21223
|
+
this.locale = document.documentElement.lang || "en";
|
|
21224
|
+
/**
|
|
21225
|
+
* Toggles locale formatting for numbers.
|
|
21226
|
+
*
|
|
21227
|
+
* @internal
|
|
21228
|
+
*/
|
|
21229
|
+
this.localeFormat = false;
|
|
21230
|
+
/** Specifies the placement of the buttons. */
|
|
21231
|
+
this.numberButtonType = "vertical";
|
|
21232
|
+
/**
|
|
21233
|
+
* When true, the value cannot be modified.
|
|
21234
|
+
*
|
|
21235
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
21236
|
+
*/
|
|
21237
|
+
this.readOnly = false;
|
|
21238
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
21239
|
+
this.required = false;
|
|
21240
|
+
/** Specifies the size of the component. */
|
|
21241
|
+
this.scale = "m";
|
|
21242
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
21243
|
+
this.status = "idle";
|
|
21244
|
+
/**
|
|
21245
|
+
* @internal
|
|
21246
|
+
*/
|
|
21247
|
+
this.editingEnabled = false;
|
|
21248
|
+
/** The component's value. */
|
|
21249
|
+
this.value = "";
|
|
21250
|
+
this.previousValueOrigin = "initial";
|
|
21251
|
+
this.mutationObserver = createObserver();
|
|
21252
|
+
this.userChangedValue = false;
|
|
21253
|
+
//--------------------------------------------------------------------------
|
|
21254
|
+
//
|
|
21255
|
+
// Private Methods
|
|
21256
|
+
//
|
|
21257
|
+
//--------------------------------------------------------------------------
|
|
21258
|
+
this.keyDownHandler = (event) => {
|
|
21259
|
+
if (this.readOnly || this.disabled) {
|
|
21260
|
+
return;
|
|
21261
|
+
}
|
|
21262
|
+
if (this.isClearable && event.key === "Escape") {
|
|
21263
|
+
this.clearInputValue(event);
|
|
21264
|
+
event.preventDefault();
|
|
21265
|
+
}
|
|
21266
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
21267
|
+
submitForm(this);
|
|
21268
|
+
}
|
|
21269
|
+
};
|
|
21270
|
+
this.clearInputValue = (nativeEvent) => {
|
|
21271
|
+
this.setNumberValue({
|
|
21272
|
+
committing: true,
|
|
21273
|
+
nativeEvent,
|
|
21274
|
+
origin: "user",
|
|
21275
|
+
value: ""
|
|
21276
|
+
});
|
|
21277
|
+
};
|
|
21278
|
+
this.emitChangeIfUserModified = () => {
|
|
21279
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
21280
|
+
this.calciteInputNumberChange.emit();
|
|
21281
|
+
}
|
|
21282
|
+
this.previousEmittedValue = this.value;
|
|
21283
|
+
};
|
|
21284
|
+
this.inputNumberBlurHandler = () => {
|
|
21285
|
+
this.calciteInternalInputNumberBlur.emit({
|
|
21286
|
+
element: this.childNumberEl,
|
|
21287
|
+
value: this.value
|
|
21288
|
+
});
|
|
21289
|
+
this.emitChangeIfUserModified();
|
|
21290
|
+
};
|
|
21291
|
+
this.inputNumberFocusHandler = (event) => {
|
|
21292
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21293
|
+
if (event.target !== slottedActionEl) {
|
|
21294
|
+
this.setFocus();
|
|
21295
|
+
}
|
|
21296
|
+
this.calciteInternalInputNumberFocus.emit({
|
|
21297
|
+
element: this.childNumberEl,
|
|
21298
|
+
value: this.value
|
|
21299
|
+
});
|
|
21300
|
+
};
|
|
21301
|
+
this.inputNumberInputHandler = (nativeEvent) => {
|
|
21302
|
+
if (this.disabled || this.readOnly) {
|
|
21303
|
+
return;
|
|
21304
|
+
}
|
|
21305
|
+
const value = nativeEvent.target.value;
|
|
21306
|
+
const delocalizedValue = delocalizeNumberString(value, this.locale);
|
|
21307
|
+
if (nativeEvent.inputType === "insertFromPaste") {
|
|
21308
|
+
if (!isValidNumber(delocalizedValue)) {
|
|
21309
|
+
nativeEvent.preventDefault();
|
|
21310
|
+
}
|
|
21311
|
+
this.setNumberValue({
|
|
21312
|
+
nativeEvent,
|
|
21313
|
+
origin: "user",
|
|
21314
|
+
value: parseNumberString(delocalizedValue)
|
|
21315
|
+
});
|
|
21316
|
+
this.childNumberEl.value = this.localizedValue;
|
|
21317
|
+
}
|
|
21318
|
+
else {
|
|
21319
|
+
this.setNumberValue({
|
|
21320
|
+
nativeEvent,
|
|
21321
|
+
origin: "user",
|
|
21322
|
+
value: delocalizedValue
|
|
21323
|
+
});
|
|
21324
|
+
}
|
|
21325
|
+
};
|
|
21326
|
+
this.inputNumberKeyDownHandler = (event) => {
|
|
21327
|
+
if (this.disabled || this.readOnly) {
|
|
21328
|
+
return;
|
|
21329
|
+
}
|
|
21330
|
+
if (event.key === "ArrowUp") {
|
|
21331
|
+
/* prevent default behavior of moving cursor to the beginning of the input when holding down ArrowUp */
|
|
21332
|
+
event.preventDefault();
|
|
21333
|
+
this.nudgeNumberValue("up", event);
|
|
21334
|
+
return;
|
|
21335
|
+
}
|
|
21336
|
+
if (event.key === "ArrowDown") {
|
|
21337
|
+
this.nudgeNumberValue("down", event);
|
|
21338
|
+
return;
|
|
21339
|
+
}
|
|
21340
|
+
const supportedKeys = [
|
|
21341
|
+
...numberKeys,
|
|
21342
|
+
"ArrowLeft",
|
|
21343
|
+
"ArrowRight",
|
|
21344
|
+
"Backspace",
|
|
21345
|
+
"Delete",
|
|
21346
|
+
"Enter",
|
|
21347
|
+
"Escape",
|
|
21348
|
+
"Tab"
|
|
21349
|
+
];
|
|
21350
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
21351
|
+
return;
|
|
21352
|
+
}
|
|
21353
|
+
const isShiftTabEvent = event.shiftKey && event.key === "Tab";
|
|
21354
|
+
if (supportedKeys.includes(event.key) && (!event.shiftKey || isShiftTabEvent)) {
|
|
21355
|
+
if (event.key === "Enter") {
|
|
21356
|
+
this.emitChangeIfUserModified();
|
|
21357
|
+
}
|
|
21358
|
+
return;
|
|
21359
|
+
}
|
|
21360
|
+
const decimalSeparator = getDecimalSeparator(this.locale);
|
|
21361
|
+
if (event.key === decimalSeparator) {
|
|
21362
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21363
|
+
return;
|
|
21364
|
+
}
|
|
21365
|
+
if (this.value && this.childNumberEl.value.indexOf(decimalSeparator) === -1) {
|
|
21366
|
+
return;
|
|
21367
|
+
}
|
|
21368
|
+
}
|
|
21369
|
+
if (/[eE]/.test(event.key)) {
|
|
21370
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21371
|
+
return;
|
|
21372
|
+
}
|
|
21373
|
+
if (this.value && !/[eE]/.test(this.childNumberEl.value)) {
|
|
21374
|
+
return;
|
|
21375
|
+
}
|
|
21376
|
+
}
|
|
21377
|
+
if (event.key === "-") {
|
|
21378
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21379
|
+
return;
|
|
21380
|
+
}
|
|
21381
|
+
if (this.value && this.childNumberEl.value.split("-").length <= 2) {
|
|
21382
|
+
return;
|
|
21383
|
+
}
|
|
21384
|
+
}
|
|
21385
|
+
event.preventDefault();
|
|
21386
|
+
};
|
|
21387
|
+
this.nudgeNumberValue = (direction, nativeEvent) => {
|
|
21388
|
+
if (nativeEvent instanceof KeyboardEvent && nativeEvent.repeat) {
|
|
21389
|
+
return;
|
|
21390
|
+
}
|
|
21391
|
+
const inputMax = this.maxString ? parseFloat(this.maxString) : null;
|
|
21392
|
+
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
21393
|
+
const valueNudgeDelayInMs = 100;
|
|
21394
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
21395
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
21396
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21397
|
+
}
|
|
21398
|
+
let firstValueNudge = true;
|
|
21399
|
+
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
21400
|
+
if (firstValueNudge) {
|
|
21401
|
+
firstValueNudge = false;
|
|
21402
|
+
return;
|
|
21403
|
+
}
|
|
21404
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
21405
|
+
}, valueNudgeDelayInMs);
|
|
21406
|
+
};
|
|
21407
|
+
this.nudgeButtonPointerUpAndOutHandler = () => {
|
|
21408
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21409
|
+
};
|
|
21410
|
+
this.nudgeButtonPointerDownHandler = (event) => {
|
|
21411
|
+
event.preventDefault();
|
|
21412
|
+
const direction = event.target.dataset.adjustment;
|
|
21413
|
+
if (!this.disabled) {
|
|
21414
|
+
this.nudgeNumberValue(direction, event);
|
|
21415
|
+
}
|
|
21416
|
+
};
|
|
21417
|
+
this.setChildNumberElRef = (el) => {
|
|
21418
|
+
this.childNumberEl = el;
|
|
21419
|
+
};
|
|
21420
|
+
this.setInputNumberValue = (newInputValue) => {
|
|
21421
|
+
if (!this.childNumberEl) {
|
|
21422
|
+
return;
|
|
21423
|
+
}
|
|
21424
|
+
this.childNumberEl.value = newInputValue;
|
|
21425
|
+
};
|
|
21426
|
+
this.setPreviousEmittedNumberValue = (newPreviousEmittedValue) => {
|
|
21427
|
+
this.previousEmittedValue = isValidNumber(newPreviousEmittedValue)
|
|
21428
|
+
? newPreviousEmittedValue
|
|
21429
|
+
: "";
|
|
21430
|
+
};
|
|
21431
|
+
this.setPreviousNumberValue = (newPreviousValue) => {
|
|
21432
|
+
this.previousValue = isValidNumber(newPreviousValue) ? newPreviousValue : "";
|
|
21433
|
+
};
|
|
21434
|
+
this.setNumberValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
21435
|
+
const previousLocalizedValue = localizeNumberString(this.previousValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
21436
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
21437
|
+
const newValue = value && !sanitizedValue
|
|
21438
|
+
? isValidNumber(this.previousValue)
|
|
21439
|
+
? this.previousValue
|
|
21440
|
+
: ""
|
|
21441
|
+
: sanitizedValue;
|
|
21442
|
+
const newLocalizedValue = localizeNumberString(newValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
21443
|
+
this.setPreviousNumberValue(previousValue || this.value);
|
|
21444
|
+
this.previousValueOrigin = origin;
|
|
21445
|
+
this.userChangedValue = origin === "user" && this.value !== newValue;
|
|
21446
|
+
this.value = newValue;
|
|
21447
|
+
this.localizedValue = newLocalizedValue;
|
|
21448
|
+
if (origin === "direct") {
|
|
21449
|
+
this.setInputNumberValue(newLocalizedValue);
|
|
21450
|
+
}
|
|
21451
|
+
if (nativeEvent) {
|
|
21452
|
+
const calciteInputNumberInputEvent = this.calciteInputNumberInput.emit({
|
|
21453
|
+
element: this.childNumberEl,
|
|
21454
|
+
nativeEvent,
|
|
21455
|
+
value: this.value
|
|
21456
|
+
});
|
|
21457
|
+
if (calciteInputNumberInputEvent.defaultPrevented) {
|
|
21458
|
+
this.value = this.previousValue;
|
|
21459
|
+
this.localizedValue = previousLocalizedValue;
|
|
21460
|
+
}
|
|
21461
|
+
else if (committing) {
|
|
21462
|
+
this.emitChangeIfUserModified();
|
|
21463
|
+
}
|
|
21464
|
+
}
|
|
21465
|
+
};
|
|
21466
|
+
this.inputNumberKeyUpHandler = () => {
|
|
21467
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21468
|
+
};
|
|
21469
|
+
}
|
|
21470
|
+
disabledWatcher() {
|
|
21471
|
+
this.setDisabledAction();
|
|
21472
|
+
}
|
|
21473
|
+
/** watcher to update number-to-string for max */
|
|
21474
|
+
maxWatcher() {
|
|
21475
|
+
var _a;
|
|
21476
|
+
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21477
|
+
}
|
|
21478
|
+
/** watcher to update number-to-string for min */
|
|
21479
|
+
minWatcher() {
|
|
21480
|
+
var _a;
|
|
21481
|
+
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21482
|
+
}
|
|
21483
|
+
valueWatcher(newValue, previousValue) {
|
|
21484
|
+
if (!this.userChangedValue) {
|
|
21485
|
+
this.setNumberValue({
|
|
21486
|
+
origin: "direct",
|
|
21487
|
+
previousValue,
|
|
21488
|
+
value: newValue == null || newValue == ""
|
|
21489
|
+
? ""
|
|
21490
|
+
: isValidNumber(newValue)
|
|
21491
|
+
? newValue
|
|
21492
|
+
: this.previousValue || ""
|
|
21493
|
+
});
|
|
21494
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
21495
|
+
}
|
|
21496
|
+
this.userChangedValue = false;
|
|
21497
|
+
}
|
|
21498
|
+
updateRequestedIcon() {
|
|
21499
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21500
|
+
}
|
|
21501
|
+
get isClearable() {
|
|
21502
|
+
return this.clearable && this.value.length > 0;
|
|
21503
|
+
}
|
|
21504
|
+
//--------------------------------------------------------------------------
|
|
21505
|
+
//
|
|
21506
|
+
// Lifecycle
|
|
21507
|
+
//
|
|
21508
|
+
//--------------------------------------------------------------------------
|
|
21509
|
+
connectedCallback() {
|
|
21510
|
+
var _a;
|
|
21511
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
21512
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
21513
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
21514
|
+
if (this.inlineEditableEl) {
|
|
21515
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
21516
|
+
}
|
|
21517
|
+
this.setPreviousEmittedNumberValue(this.value);
|
|
21518
|
+
this.setPreviousNumberValue(this.value);
|
|
21519
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
21520
|
+
this.setNumberValue({
|
|
21521
|
+
origin: "connected",
|
|
21522
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
21523
|
+
});
|
|
21524
|
+
connectLabel(this);
|
|
21525
|
+
connectForm(this);
|
|
21526
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
21527
|
+
this.setDisabledAction();
|
|
21528
|
+
}
|
|
21529
|
+
disconnectedCallback() {
|
|
21530
|
+
var _a;
|
|
21531
|
+
disconnectLabel(this);
|
|
21532
|
+
disconnectForm(this);
|
|
21533
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21534
|
+
}
|
|
21535
|
+
componentWillLoad() {
|
|
21536
|
+
var _a, _b;
|
|
21537
|
+
this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
|
|
21538
|
+
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
21539
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21540
|
+
}
|
|
21541
|
+
componentShouldUpdate(newValue, oldValue, property) {
|
|
21542
|
+
if (property === "value" && newValue && !isValidNumber(newValue)) {
|
|
21543
|
+
this.setNumberValue({
|
|
21544
|
+
origin: "reset",
|
|
21545
|
+
value: oldValue
|
|
21546
|
+
});
|
|
21547
|
+
return false;
|
|
21548
|
+
}
|
|
21549
|
+
return true;
|
|
21550
|
+
}
|
|
21551
|
+
componentDidRender() {
|
|
21552
|
+
updateHostInteraction(this);
|
|
21553
|
+
}
|
|
21554
|
+
//--------------------------------------------------------------------------
|
|
21555
|
+
//
|
|
21556
|
+
// Public Methods
|
|
21557
|
+
//
|
|
21558
|
+
//--------------------------------------------------------------------------
|
|
21559
|
+
/** Sets focus on the component. */
|
|
21560
|
+
async setFocus() {
|
|
21561
|
+
var _a;
|
|
21562
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21563
|
+
}
|
|
21564
|
+
/** Selects all text of the component's `value`. */
|
|
21565
|
+
async selectText() {
|
|
21566
|
+
var _a;
|
|
21567
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
21568
|
+
}
|
|
21569
|
+
onLabelClick() {
|
|
21570
|
+
this.setFocus();
|
|
21571
|
+
}
|
|
21572
|
+
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
21573
|
+
const { value } = this;
|
|
21574
|
+
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
21575
|
+
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
21576
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
21577
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
21578
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
21579
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
21580
|
+
? inputVal
|
|
21581
|
+
: nudgedValue;
|
|
21582
|
+
const inputValPlaces = decimalPlaces(inputVal);
|
|
21583
|
+
const inputStepPlaces = decimalPlaces(inputStep);
|
|
21584
|
+
this.setNumberValue({
|
|
21585
|
+
committing: true,
|
|
21586
|
+
nativeEvent,
|
|
21587
|
+
origin: "user",
|
|
21588
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
21589
|
+
});
|
|
21590
|
+
}
|
|
21591
|
+
onFormReset() {
|
|
21592
|
+
this.setNumberValue({
|
|
21593
|
+
origin: "reset",
|
|
21594
|
+
value: this.defaultValue
|
|
21595
|
+
});
|
|
21596
|
+
}
|
|
21597
|
+
syncHiddenFormInput(input) {
|
|
21598
|
+
var _a, _b, _c, _d;
|
|
21599
|
+
input.type = "number";
|
|
21600
|
+
input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
|
|
21601
|
+
input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
|
|
21602
|
+
}
|
|
21603
|
+
setDisabledAction() {
|
|
21604
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21605
|
+
if (!slottedActionEl) {
|
|
21606
|
+
return;
|
|
21607
|
+
}
|
|
21608
|
+
this.disabled
|
|
21609
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
21610
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
21611
|
+
}
|
|
21612
|
+
warnAboutInvalidNumberValue(value) {
|
|
21613
|
+
if (value && !isValidNumber(value)) {
|
|
21614
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
21615
|
+
}
|
|
21616
|
+
}
|
|
21617
|
+
// --------------------------------------------------------------------------
|
|
21618
|
+
//
|
|
21619
|
+
// Render Methods
|
|
21620
|
+
//
|
|
21621
|
+
// --------------------------------------------------------------------------
|
|
21622
|
+
render() {
|
|
21623
|
+
const dir = getElementDir(this.el);
|
|
21624
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
21625
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
21626
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
21627
|
+
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
21628
|
+
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
21629
|
+
[CSS$s.numberButtonItem]: true,
|
|
21630
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21631
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
21632
|
+
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
21633
|
+
[CSS$s.numberButtonItem]: true,
|
|
21634
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21635
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
21636
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
21637
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
21638
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
21639
|
+
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue }));
|
|
21640
|
+
return (hAsync(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21641
|
+
? numberButtonsHorizontalDown
|
|
21642
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$s.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21643
|
+
? numberButtonsHorizontalUp
|
|
21644
|
+
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
21645
|
+
}
|
|
21646
|
+
get el() { return getElement(this); }
|
|
21647
|
+
static get watchers() { return {
|
|
21648
|
+
"disabled": ["disabledWatcher"],
|
|
21649
|
+
"max": ["maxWatcher"],
|
|
21650
|
+
"min": ["minWatcher"],
|
|
21651
|
+
"value": ["valueWatcher"],
|
|
21652
|
+
"icon": ["updateRequestedIcon"]
|
|
21653
|
+
}; }
|
|
21654
|
+
static get style() { return inputNumberCss; }
|
|
21655
|
+
static get cmpMeta() { return {
|
|
21656
|
+
"$flags$": 9,
|
|
21657
|
+
"$tagName$": "calcite-input-number",
|
|
21658
|
+
"$members$": {
|
|
21659
|
+
"alignment": [513],
|
|
21660
|
+
"autofocus": [4],
|
|
21661
|
+
"clearable": [516],
|
|
21662
|
+
"disabled": [516],
|
|
21663
|
+
"groupSeparator": [4, "group-separator"],
|
|
21664
|
+
"hidden": [4],
|
|
21665
|
+
"icon": [520],
|
|
21666
|
+
"intlClear": [1, "intl-clear"],
|
|
21667
|
+
"intlLoading": [1, "intl-loading"],
|
|
21668
|
+
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
21669
|
+
"label": [1],
|
|
21670
|
+
"loading": [516],
|
|
21671
|
+
"locale": [1],
|
|
21672
|
+
"numberingSystem": [1, "numbering-system"],
|
|
21673
|
+
"localeFormat": [4, "locale-format"],
|
|
21674
|
+
"max": [514],
|
|
21675
|
+
"min": [514],
|
|
21676
|
+
"maxLength": [514, "max-length"],
|
|
21677
|
+
"minLength": [514, "min-length"],
|
|
21678
|
+
"name": [513],
|
|
21679
|
+
"numberButtonType": [513, "number-button-type"],
|
|
21680
|
+
"placeholder": [1],
|
|
21681
|
+
"prefixText": [1, "prefix-text"],
|
|
21682
|
+
"readOnly": [4, "read-only"],
|
|
21683
|
+
"required": [4],
|
|
21684
|
+
"scale": [1537],
|
|
21685
|
+
"status": [1537],
|
|
21686
|
+
"step": [520],
|
|
21687
|
+
"suffixText": [1, "suffix-text"],
|
|
21688
|
+
"editingEnabled": [1540, "editing-enabled"],
|
|
21689
|
+
"value": [1025],
|
|
21690
|
+
"localizedValue": [32],
|
|
21691
|
+
"setFocus": [64],
|
|
21692
|
+
"selectText": [64]
|
|
21693
|
+
},
|
|
21694
|
+
"$listeners$": undefined,
|
|
21695
|
+
"$lazyBundleId$": "-",
|
|
21696
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["clearable", "clearable"], ["disabled", "disabled"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"]]
|
|
21697
|
+
}; }
|
|
21698
|
+
}
|
|
21699
|
+
|
|
21279
21700
|
const maxTenthForMinuteAndSecond = 5;
|
|
21280
21701
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
21281
21702
|
try {
|
|
@@ -21727,7 +22148,7 @@ const CSS$r = {
|
|
|
21727
22148
|
container: "container"
|
|
21728
22149
|
};
|
|
21729
22150
|
|
|
21730
|
-
const labelCss = "@-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*/.sc-calcite-label: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*/.calcite-animate.sc-calcite-label{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*/.calcite-animate__in.sc-calcite-label{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-label{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-label{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-label{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-label:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-label-h{display:none}/*!@:host*/.sc-calcite-label-h{display:inline}/*!@:host([alignment=start])*/[alignment=start].sc-calcite-label-h{text-align:start}/*!@:host([alignment=end])*/[alignment=end].sc-calcite-label-h{text-align:end}/*!@:host([alignment=center])*/[alignment=center].sc-calcite-label-h{text-align:center}/*!@:host([scale=s])
|
|
22151
|
+
const labelCss = "@-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*/.sc-calcite-label: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*/.calcite-animate.sc-calcite-label{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*/.calcite-animate__in.sc-calcite-label{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-label{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-label{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-label{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-label:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-label-h{display:none}/*!@:host*/.sc-calcite-label-h{display:inline}/*!@:host([alignment=start])*/[alignment=start].sc-calcite-label-h{text-align:start}/*!@:host([alignment=end])*/[alignment=end].sc-calcite-label-h{text-align:end}/*!@:host([alignment=center])*/[alignment=center].sc-calcite-label-h{text-align:center}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-label-h .container.sc-calcite-label{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host(:not([disable-spacing])[scale=s]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=s] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 0.5rem)}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-label-h .container.sc-calcite-label{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host(:not([disable-spacing])[scale=m]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=m] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 0.75rem)}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-label-h .container.sc-calcite-label{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:not([disable-spacing])[scale=l]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=l] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 1rem)}/*!@:host .container*/.sc-calcite-label-h .container.sc-calcite-label{margin-left:0px;margin-right:0px;margin-top:0px;width:100%;line-height:1.375;color:var(--calcite-ui-text-1)}/*!@:host([layout=default]) .container*/[layout=default].sc-calcite-label-h .container.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([layout=inline]) .container, \n:host([layout=inline-space-between]) .container*/[layout=inline].sc-calcite-label-h .container.sc-calcite-label,[layout=inline-space-between].sc-calcite-label-h .container.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:0.5rem}/*!@:host([layout=inline][scale=l]) .container*/[layout=inline][scale=l].sc-calcite-label-h .container.sc-calcite-label{gap:0.75rem}/*!@:host([layout=inline-space-between]) .container*/[layout=inline-space-between].sc-calcite-label-h .container.sc-calcite-label{-ms-flex-pack:justify;justify-content:space-between}/*!@:host([disabled])*/[disabled].sc-calcite-label-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) > .container*/[disabled].sc-calcite-label-h>.container.sc-calcite-label{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted(*)*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>*{pointer-events:none}/*!@:host([disabled]) ::slotted(*[disabled]), \n:host([disabled]) ::slotted(*[disabled] *)*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>*[disabled],.sc-calcite-label-h[disabled] .sc-calcite-label-s>*[disabled] *{--tw-bg-opacity:1}/*!@:host([disabled]) ::slotted(calcite-input-message:not([active]))*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>calcite-input-message:not([active]){--tw-bg-opacity:0}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>[calcite-hydrated][disabled],[disabled].sc-calcite-label-h [calcite-hydrated][disabled].sc-calcite-label{opacity:1}/*!@:host([disable-spacing]) .container*/[disable-spacing].sc-calcite-label-h .container.sc-calcite-label{margin:0px;gap:0px}";
|
|
21731
22152
|
|
|
21732
22153
|
/**
|
|
21733
22154
|
* @slot - A slot for adding text and a component that can be labeled.
|
|
@@ -21759,6 +22180,12 @@ class Label {
|
|
|
21759
22180
|
* @deprecated use the `disabled` property on the interactive components instead
|
|
21760
22181
|
*/
|
|
21761
22182
|
this.disabled = false;
|
|
22183
|
+
/**
|
|
22184
|
+
* eliminates any space around the label
|
|
22185
|
+
*
|
|
22186
|
+
* @deprecated set the --calcite-label-margin-bottom css variable to 0 instead
|
|
22187
|
+
*/
|
|
22188
|
+
this.disableSpacing = false;
|
|
21762
22189
|
//--------------------------------------------------------------------------
|
|
21763
22190
|
//
|
|
21764
22191
|
// Private Methods
|
|
@@ -21795,7 +22222,8 @@ class Label {
|
|
|
21795
22222
|
"for": [513],
|
|
21796
22223
|
"scale": [513],
|
|
21797
22224
|
"layout": [513],
|
|
21798
|
-
"disabled": [516]
|
|
22225
|
+
"disabled": [516],
|
|
22226
|
+
"disableSpacing": [4, "disable-spacing"]
|
|
21799
22227
|
},
|
|
21800
22228
|
"$listeners$": undefined,
|
|
21801
22229
|
"$lazyBundleId$": "-",
|
|
@@ -23412,7 +23840,7 @@ class Panel {
|
|
|
23412
23840
|
renderMenu() {
|
|
23413
23841
|
const { el, intlOptions, menuOpen } = this;
|
|
23414
23842
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
23415
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$
|
|
23843
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$q.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
23416
23844
|
}
|
|
23417
23845
|
renderHeaderNode() {
|
|
23418
23846
|
const { el, showBackButton } = this;
|
|
@@ -24615,8 +25043,8 @@ class Popover {
|
|
|
24615
25043
|
const hidden = !displayed;
|
|
24616
25044
|
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
24617
25045
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
24618
|
-
[CSS$
|
|
24619
|
-
[CSS$
|
|
25046
|
+
[CSS$E.animation]: true,
|
|
25047
|
+
[CSS$E.animationActive]: displayed
|
|
24620
25048
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, hAsync("div", { class: {
|
|
24621
25049
|
[CSS$g.hasHeader]: !!heading,
|
|
24622
25050
|
[CSS$g.container]: true
|
|
@@ -33511,8 +33939,8 @@ class Tooltip {
|
|
|
33511
33939
|
const displayed = effectiveReferenceElement && open;
|
|
33512
33940
|
const hidden = !displayed;
|
|
33513
33941
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
|
|
33514
|
-
[CSS$
|
|
33515
|
-
[CSS$
|
|
33942
|
+
[CSS$E.animation]: true,
|
|
33943
|
+
[CSS$E.animationActive]: displayed
|
|
33516
33944
|
} }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
|
|
33517
33945
|
}
|
|
33518
33946
|
get el() { return getElement(this); }
|
|
@@ -34538,6 +34966,7 @@ registerComponents([
|
|
|
34538
34966
|
Input,
|
|
34539
34967
|
InputDatePicker,
|
|
34540
34968
|
InputMessage,
|
|
34969
|
+
InputNumber,
|
|
34541
34970
|
InputTimePicker,
|
|
34542
34971
|
Label,
|
|
34543
34972
|
Link,
|